Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(input-time-picker)!: localization support for input-time-picker #3354

Merged
merged 80 commits into from
Dec 8, 2021

Conversation

eriklharper
Copy link
Contributor

@eriklharper eriklharper commented Oct 26, 2021

Related Issue: #1475

Summary

Adds support for localization in both the input-time-picker and time-picker components through the lang attribute.

BREAKING CHANGE: lang replaces the now deprecated hour-display-format prop.

…til and setting up demo page to show all locales
…lue property so that it can also store and display localized time
…eWatcher and localeWatcher anytime the value needs initialized or updated directly from a valid time string
@eriklharper eriklharper requested a review from jcfranco November 17, 2021 00:50
@driskull
Copy link
Member

Seems like we should implement a DOM utility from this Gist to be able to watch native attributes. What do you guys think?

https://gist.github.com/willmartian/b4dd6b57d71dd0438fb9e7c6f4048578

@github-actions
Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale Issues or pull requests that have not had recent activity. label Nov 28, 2021
@benelan benelan removed the Stale Issues or pull requests that have not had recent activity. label Nov 30, 2021
Copy link
Member

@jcfranco jcfranco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, @eriklharper! 🎉 🌮🦃 🦖

@eriklharper eriklharper merged commit 4ef1f2f into master Dec 8, 2021
@eriklharper eriklharper deleted the eriklharper/1475-l10n-time-picker branch December 8, 2021 17:43
driskull added a commit that referenced this pull request Dec 10, 2021
* refactor: Remove setting 'dir' attribute within components. #2079

* fix styles

* fix screener?

* cleanup

* revert link changes

* fix link

* fix merge issue

* alert, action-pad.

* button

* accordion-item

* card

* chip

* color-picker, popper

* combobox

* combobox-item

* combobox-item-group

* popper test fix, dropdown

* filter

* fix test?

* icon

* alert, dropdown-item, link

* input

* input-message

* label

* modal

* notice

* move tile-select to use css logical props

* update tab-title to use css logical props

* update switch to use css logical props

* update stepper-item to use css logical props

* panel

* pick-list-group, pick-list-item

* block-section

* popover

* tree-item

* rating

* update select use css logical props

* update shell-center-row to use css logical props

* fix select styles

* refactor(filter): enforce items prop via type (#3643)

* fix(action-bar): Allow slotting tooltip after initialization (#3642)

* fix(action-bar): Allow slotting tooltip after initialization.  #3495

* review fixes

* build(deps): bump @storybook/cli from 6.4.1 to 6.4.8 (#3638)

Bumps [@storybook/cli](https://github.com/storybookjs/storybook/tree/HEAD/lib/cli) from 6.4.1 to 6.4.8.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.8/lib/cli)

---
updated-dependencies:
- dependency-name: "@storybook/cli"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* 1.0.0-next.318

* build(deps): bump eslint from 8.3.0 to 8.4.1 (#3649)

Bumps [eslint](https://github.com/eslint/eslint) from 8.3.0 to 8.4.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.3.0...v8.4.1)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @esri/calcite-ui-icons from 3.17.6 to 3.17.8 (#3650)

Bumps [@esri/calcite-ui-icons](https://github.com/Esri/calcite-ui-icons) from 3.17.6 to 3.17.8.
- [Release notes](https://github.com/Esri/calcite-ui-icons/releases)
- [Commits](Esri/calcite-ui-icons@v3.17.6...v3.17.8)

---
updated-dependencies:
- dependency-name: "@esri/calcite-ui-icons"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @storybook/addon-docs from 6.4.1 to 6.4.8 (#3648)

Bumps [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/addons/docs) from 6.4.1 to 6.4.8.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.8/addons/docs)

---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump color from 4.0.2 to 4.1.0 (#3656)

Bumps [color](https://github.com/Qix-/color) from 4.0.2 to 4.1.0.
- [Release notes](https://github.com/Qix-/color/releases)
- [Commits](Qix-/color@4.0.2...4.1.0)

---
updated-dependencies:
- dependency-name: color
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @typescript-eslint/parser from 5.5.0 to 5.6.0 (#3655)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.5.0 to 5.6.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.6.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @storybook/addon-a11y from 6.4.1 to 6.4.8 (#3654)

Bumps [@storybook/addon-a11y](https://github.com/storybookjs/storybook/tree/HEAD/addons/a11y) from 6.4.1 to 6.4.8.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.8/addons/a11y)

---
updated-dependencies:
- dependency-name: "@storybook/addon-a11y"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: update component READMEs (#3652)

Co-authored-by: jcfranco <[email protected]>

* build(deps): bump ts-jest from 27.0.7 to 27.1.0 (#3647)

Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.0.7 to 27.1.0.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](kulshekhar/ts-jest@v27.0.7...v27.1.0)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @storybook/html from 6.4.1 to 6.4.8 (#3641)

Bumps [@storybook/html](https://github.com/storybookjs/storybook/tree/HEAD/app/html) from 6.4.1 to 6.4.8.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.8/app/html)

---
updated-dependencies:
- dependency-name: "@storybook/html"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump prettier from 2.5.0 to 2.5.1 (#3658)

Bumps [prettier](https://github.com/prettier/prettier) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.5.0...2.5.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(panel): the panel is now dismissed on escape keydown and not keyup for consistency (#3657)

Co-authored-by: Eliza Khachatryan <[email protected]>

* 1.0.0-next.319

* feat(input-time-picker)!: localization support for input-time-picker (#3354)

* chore: fix linting issues (#3581)

* 1.0.0-next.320

* make sure all values are grabbed from tailwind theme

* first pass at date-picker-day using logical props

* tidy up and add missing text logical prop

* fix test

* cleanup

* remove getElementDir

* cleanup stepper, switch

* fix casing

* fix link animation

* clean up conventions

* use consistent casing for default value

* tidy up

* review fixes

* fix alert padding.

* fix notice

* screener test

* Revert "screener test"

This reverts commit 74c0233.

* fix anim

* revert link change

* fix overlapping border styles from date-picker-day

* fix test

* fix story

* fix test

* split up border radius for range start/ends

* simplify border radius?

* put the 45% radius back.

* revert

Co-authored-by: JC Franco <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ben Elan <[email protected]>
Co-authored-by: jcfranco <[email protected]>
Co-authored-by: Eliza Khachatryan <[email protected]>
Co-authored-by: Eliza Khachatryan <[email protected]>
Co-authored-by: Erik Harper <[email protected]>
Co-authored-by: Duc Phan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues tied to a new feature or request. i18n-l10n issues dealing with internationalization/localization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants