@api-client/ui 0.5.26 → 0.5.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/build/src/elements/app-bar/internals/AppBar.d.ts +1 -1
  2. package/build/src/elements/app-bar/internals/AppBar.d.ts.map +1 -1
  3. package/build/src/elements/app-bar/internals/AppBar.js +5 -5
  4. package/build/src/elements/app-bar/internals/AppBar.js.map +1 -1
  5. package/build/src/elements/currency/internals/Picker.d.ts +2 -2
  6. package/build/src/elements/currency/internals/Picker.d.ts.map +1 -1
  7. package/build/src/elements/currency/internals/Picker.js +13 -12
  8. package/build/src/elements/currency/internals/Picker.js.map +1 -1
  9. package/build/src/elements/data-table/DataTable.d.ts +1 -3
  10. package/build/src/elements/data-table/DataTable.d.ts.map +1 -1
  11. package/build/src/elements/data-table/DataTable.js +2 -4
  12. package/build/src/elements/data-table/DataTable.js.map +1 -1
  13. package/build/src/elements/file-system/internals/Breadcrumbs.d.ts +1 -2
  14. package/build/src/elements/file-system/internals/Breadcrumbs.d.ts.map +1 -1
  15. package/build/src/elements/file-system/internals/Breadcrumbs.js +2 -3
  16. package/build/src/elements/file-system/internals/Breadcrumbs.js.map +1 -1
  17. package/build/src/elements/navigation/internals/NavigationItem.js +1 -1
  18. package/build/src/elements/navigation/internals/NavigationItem.js.map +1 -1
  19. package/build/src/md/list/internals/List.d.ts +4 -2
  20. package/build/src/md/list/internals/List.d.ts.map +1 -1
  21. package/build/src/md/list/internals/List.js +16 -6
  22. package/build/src/md/list/internals/List.js.map +1 -1
  23. package/build/src/md/list/internals/ListItem.d.ts +10 -1
  24. package/build/src/md/list/internals/ListItem.d.ts.map +1 -1
  25. package/build/src/md/list/internals/ListItem.js +74 -8
  26. package/build/src/md/list/internals/ListItem.js.map +1 -1
  27. package/build/src/md/list/internals/ListItem.styles.d.ts.map +1 -1
  28. package/build/src/md/list/internals/ListItem.styles.js +38 -28
  29. package/build/src/md/list/internals/ListItem.styles.js.map +1 -1
  30. package/build/src/md/menu/internal/MenuItem.js +4 -4
  31. package/build/src/md/menu/internal/MenuItem.js.map +1 -1
  32. package/build/src/md/progress/internals/CircularProgress.d.ts +93 -0
  33. package/build/src/md/progress/internals/CircularProgress.d.ts.map +1 -0
  34. package/build/src/md/progress/internals/CircularProgress.js +156 -0
  35. package/build/src/md/progress/internals/CircularProgress.js.map +1 -0
  36. package/build/src/md/progress/internals/CircularProgress.styles.d.ts +3 -0
  37. package/build/src/md/progress/internals/CircularProgress.styles.d.ts.map +1 -0
  38. package/build/src/md/progress/internals/CircularProgress.styles.js +220 -0
  39. package/build/src/md/progress/internals/CircularProgress.styles.js.map +1 -0
  40. package/build/src/md/progress/internals/Range.d.ts +6 -0
  41. package/build/src/md/progress/internals/Range.d.ts.map +1 -1
  42. package/build/src/md/progress/internals/Range.js +41 -3
  43. package/build/src/md/progress/internals/Range.js.map +1 -1
  44. package/build/src/md/progress/internals/UiProgress.d.ts +0 -7
  45. package/build/src/md/progress/internals/UiProgress.d.ts.map +1 -1
  46. package/build/src/md/progress/internals/UiProgress.js +2 -36
  47. package/build/src/md/progress/internals/UiProgress.js.map +1 -1
  48. package/build/src/md/progress/ui-circular-progress.d.ts +11 -0
  49. package/build/src/md/progress/ui-circular-progress.d.ts.map +1 -0
  50. package/build/src/md/progress/ui-circular-progress.js +27 -0
  51. package/build/src/md/progress/ui-circular-progress.js.map +1 -0
  52. package/build/src/md/select/internals/Option.js +2 -2
  53. package/build/src/md/select/internals/Option.js.map +1 -1
  54. package/build/src/md/select/internals/Option.styles.d.ts.map +1 -1
  55. package/build/src/md/select/internals/Option.styles.js +0 -127
  56. package/build/src/md/select/internals/Option.styles.js.map +1 -1
  57. package/build/src/md/select/internals/Select.d.ts +11 -1
  58. package/build/src/md/select/internals/Select.d.ts.map +1 -1
  59. package/build/src/md/select/internals/Select.js +21 -2
  60. package/build/src/md/select/internals/Select.js.map +1 -1
  61. package/demo/elements/currency/index.html +2 -2
  62. package/demo/elements/navigation/navigation-item.html +4 -0
  63. package/demo/elements/navigation/navigation-item.ts +19 -0
  64. package/demo/md/list/list.ts +9 -3
  65. package/demo/md/progress/progress.ts +24 -1
  66. package/demo/md/select/index.ts +5 -0
  67. package/demo/md/tabs/tabs.ts +0 -4
  68. package/package.json +1 -1
  69. package/src/elements/app-bar/internals/AppBar.ts +5 -5
  70. package/src/elements/currency/internals/Picker.ts +17 -16
  71. package/src/elements/data-table/DataTable.ts +2 -4
  72. package/src/elements/file-system/internals/Breadcrumbs.ts +2 -3
  73. package/src/elements/navigation/internals/NavigationItem.ts +1 -1
  74. package/src/md/list/internals/List.ts +19 -8
  75. package/src/md/list/internals/ListItem.styles.ts +38 -28
  76. package/src/md/list/internals/ListItem.ts +55 -8
  77. package/src/md/menu/internal/MenuItem.ts +4 -4
  78. package/src/md/progress/internals/CircularProgress.styles.ts +220 -0
  79. package/src/md/progress/internals/CircularProgress.ts +129 -0
  80. package/src/md/progress/internals/Range.ts +29 -1
  81. package/src/md/progress/internals/UiProgress.ts +1 -30
  82. package/src/md/progress/ui-circular-progress.ts +15 -0
  83. package/src/md/select/internals/Option.styles.ts +0 -127
  84. package/src/md/select/internals/Option.ts +2 -2
  85. package/src/md/select/internals/Select.ts +13 -1
  86. package/test/elements/currency/CurrencyPicker.accessibility.test.ts +14 -14
  87. package/test/elements/currency/CurrencyPicker.core.test.ts +6 -6
  88. package/test/elements/currency/CurrencyPicker.integration.test.ts +2 -2
  89. package/test/elements/currency/CurrencyPicker.test.ts +10 -10
  90. package/test/elements/data-table/DataTable.browser.test.ts +2 -2
  91. package/test/md/menu/MenuItem.test.ts +2 -3
  92. package/test/md/progress/UiCircularProgressElement.test.ts +481 -0
@@ -1,6 +1,6 @@
1
1
  import { LitElement, TemplateResult, nothing } from 'lit';
2
- import '@material/web/iconbutton/icon-button.js';
3
2
  import '../../../md/icons/ui-icon.js';
3
+ import '../../../md/icon-button/ui-icon-button.js';
4
4
  export default class AppBar extends LitElement {
5
5
  /**
6
6
  * Deep navigation bar renders the back button and the title only.
@@ -1 +1 @@
1
- {"version":3,"file":"AppBar.d.ts","sourceRoot":"","sources":["../../../../../src/elements/app-bar/internals/AppBar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAQ,OAAO,EAAE,MAAM,KAAK,CAAA;AAE/D,OAAO,yCAAyC,CAAA;AAChD,OAAO,8BAA8B,CAAA;AAErC,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,UAAU;IAC5C;;OAEG;IAC0B,QAAQ,CAAC,IAAI,UAAQ;;cAO/B,MAAM,IAAI,cAAc;IAW3C,SAAS,CAAC,gBAAgB,IAAI,cAAc,GAAG,OAAO,OAAO;IAY7D,SAAS,CAAC,uBAAuB,IAAI,cAAc,GAAG,OAAO,OAAO;IAYpE,SAAS,CAAC,WAAW,IAAI,cAAc;IAIvC,SAAS,CAAC,gBAAgB,IAAI,cAAc;IAI5C,SAAS,CAAC,gBAAgB,IAAI,cAAc;IAI5C,SAAS,CAAC,gBAAgB,IAAI,cAAc;CAG7C"}
1
+ {"version":3,"file":"AppBar.d.ts","sourceRoot":"","sources":["../../../../../src/elements/app-bar/internals/AppBar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAQ,OAAO,EAAE,MAAM,KAAK,CAAA;AAE/D,OAAO,8BAA8B,CAAA;AACrC,OAAO,2CAA2C,CAAA;AAElD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,UAAU;IAC5C;;OAEG;IAC0B,QAAQ,CAAC,IAAI,UAAQ;;cAO/B,MAAM,IAAI,cAAc;IAW3C,SAAS,CAAC,gBAAgB,IAAI,cAAc,GAAG,OAAO,OAAO;IAY7D,SAAS,CAAC,uBAAuB,IAAI,cAAc,GAAG,OAAO,OAAO;IAYpE,SAAS,CAAC,WAAW,IAAI,cAAc;IAIvC,SAAS,CAAC,gBAAgB,IAAI,cAAc;IAI5C,SAAS,CAAC,gBAAgB,IAAI,cAAc;IAI5C,SAAS,CAAC,gBAAgB,IAAI,cAAc;CAG7C"}
@@ -1,8 +1,8 @@
1
1
  import { __esDecorate, __runInitializers } from "tslib";
2
2
  import { LitElement, html, nothing } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
- import '@material/web/iconbutton/icon-button.js';
5
4
  import '../../../md/icons/ui-icon.js';
5
+ import '../../../md/icon-button/ui-icon-button.js';
6
6
  let AppBar = (() => {
7
7
  let _classSuper = LitElement;
8
8
  let _deep_decorators;
@@ -42,9 +42,9 @@ let AppBar = (() => {
42
42
  return nothing;
43
43
  }
44
44
  return html `
45
- <md-icon-button class="back-button">
45
+ <ui-icon-button class="back-button">
46
46
  <ui-icon icon="arrowBack"></ui-icon>
47
- </md-icon-button>
47
+ </ui-icon-button>
48
48
  `;
49
49
  }
50
50
  renderMenuTriggerButton() {
@@ -53,9 +53,9 @@ let AppBar = (() => {
53
53
  return nothing;
54
54
  }
55
55
  return html `
56
- <md-icon-button class="menu-button">
56
+ <ui-icon-button class="menu-button">
57
57
  <ui-icon icon="menu"></ui-icon>
58
- </md-icon-button>
58
+ </ui-icon-button>
59
59
  `;
60
60
  }
61
61
  renderTitle() {
@@ -1 +1 @@
1
- {"version":3,"file":"AppBar.js","sourceRoot":"","sources":["../../../../../src/elements/app-bar/internals/AppBar.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAkB,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAA;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,yCAAyC,CAAA;AAChD,OAAO,8BAA8B,CAAA;;sBAED,UAAU;;;;iBAAzB,MAAO,SAAQ,WAAU;;;gCAI3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;YAAC,iKAAS,IAAI,6BAAJ,IAAI,mFAAQ;;;QAArB,qEAAgB,KAAK,EAAA;QAHlD;;WAEG;QAC0B,IAAS,IAAI,0CAAQ;QAArB,IAAS,IAAI,gDAAQ;QAElD;YACE,KAAK,EAAE,CAAA;;YACP,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAA;SACrB;QAEkB,MAAM;YACvB,OAAO,IAAI,CAAA;;;YAGH,IAAI,CAAC,gBAAgB,EAAE,IAAI,IAAI,CAAC,uBAAuB,EAAE,IAAI,IAAI,CAAC,WAAW,EAAE;;mCAExD,IAAI,CAAC,gBAAgB,EAAE,IAAI,IAAI,CAAC,gBAAgB,EAAE,IAAI,IAAI,CAAC,gBAAgB,EAAE;;KAE3G,CAAA;QACH,CAAC;QAES,gBAAgB;YACxB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;YACrB,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA;;;;KAIV,CAAA;QACH,CAAC;QAES,uBAAuB;YAC/B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;YACrB,IAAI,IAAI,EAAE,CAAC;gBACT,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA;;;;KAIV,CAAA;QACH,CAAC;QAES,WAAW;YACnB,OAAO,IAAI,CAAA,qDAAqD,CAAA;QAClE,CAAC;QAES,gBAAgB;YACxB,OAAO,IAAI,CAAA,wDAAwD,CAAA;QACrE,CAAC;QAES,gBAAgB;YACxB,OAAO,IAAI,CAAA,uDAAuD,CAAA;QACpE,CAAC;QAES,gBAAgB;YACxB,OAAO,IAAI,CAAA,uDAAuD,CAAA;QACpE,CAAC;;;AA5DH,sBA6DC","sourcesContent":["import { LitElement, TemplateResult, html, nothing } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport '@material/web/iconbutton/icon-button.js'\nimport '../../../md/icons/ui-icon.js'\n\nexport default class AppBar extends LitElement {\n /**\n * Deep navigation bar renders the back button and the title only.\n */\n @property({ type: Boolean }) accessor deep = false\n\n constructor() {\n super()\n this.role = 'header'\n }\n\n protected override render(): TemplateResult {\n return html`\n <div class=\"app-bar\">\n <div class=\"drawer-sizer\">\n ${this.renderBackButton()} ${this.renderMenuTriggerButton()} ${this.renderTitle()}\n </div>\n <div class=\"bar-content\">${this.renderSearchSlot()} ${this.renderAppActions()} ${this.renderUserAvatar()}</div>\n </div>\n `\n }\n\n protected renderBackButton(): TemplateResult | typeof nothing {\n const { deep } = this\n if (!deep) {\n return nothing\n }\n return html`\n <md-icon-button class=\"back-button\">\n <ui-icon icon=\"arrowBack\"></ui-icon>\n </md-icon-button>\n `\n }\n\n protected renderMenuTriggerButton(): TemplateResult | typeof nothing {\n const { deep } = this\n if (deep) {\n return nothing\n }\n return html`\n <md-icon-button class=\"menu-button\">\n <ui-icon icon=\"menu\"></ui-icon>\n </md-icon-button>\n `\n }\n\n protected renderTitle(): TemplateResult {\n return html`<div class=\"title\"><slot name=\"title\"></slot></div>`\n }\n\n protected renderAppActions(): TemplateResult {\n return html`<div class=\"actions\"><slot name=\"action\"></slot></div>`\n }\n\n protected renderSearchSlot(): TemplateResult {\n return html`<div class=\"search\"><slot name=\"search\"></slot></div>`\n }\n\n protected renderUserAvatar(): TemplateResult {\n return html`<div class=\"avatar\"><slot name=\"avatar\"></slot></div>`\n }\n}\n"]}
1
+ {"version":3,"file":"AppBar.js","sourceRoot":"","sources":["../../../../../src/elements/app-bar/internals/AppBar.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAkB,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAA;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,8BAA8B,CAAA;AACrC,OAAO,2CAA2C,CAAA;;sBAEd,UAAU;;;;iBAAzB,MAAO,SAAQ,WAAU;;;gCAI3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;YAAC,iKAAS,IAAI,6BAAJ,IAAI,mFAAQ;;;QAArB,qEAAgB,KAAK,EAAA;QAHlD;;WAEG;QAC0B,IAAS,IAAI,0CAAQ;QAArB,IAAS,IAAI,gDAAQ;QAElD;YACE,KAAK,EAAE,CAAA;;YACP,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAA;SACrB;QAEkB,MAAM;YACvB,OAAO,IAAI,CAAA;;;YAGH,IAAI,CAAC,gBAAgB,EAAE,IAAI,IAAI,CAAC,uBAAuB,EAAE,IAAI,IAAI,CAAC,WAAW,EAAE;;mCAExD,IAAI,CAAC,gBAAgB,EAAE,IAAI,IAAI,CAAC,gBAAgB,EAAE,IAAI,IAAI,CAAC,gBAAgB,EAAE;;KAE3G,CAAA;QACH,CAAC;QAES,gBAAgB;YACxB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;YACrB,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA;;;;KAIV,CAAA;QACH,CAAC;QAES,uBAAuB;YAC/B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;YACrB,IAAI,IAAI,EAAE,CAAC;gBACT,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,OAAO,IAAI,CAAA;;;;KAIV,CAAA;QACH,CAAC;QAES,WAAW;YACnB,OAAO,IAAI,CAAA,qDAAqD,CAAA;QAClE,CAAC;QAES,gBAAgB;YACxB,OAAO,IAAI,CAAA,wDAAwD,CAAA;QACrE,CAAC;QAES,gBAAgB;YACxB,OAAO,IAAI,CAAA,uDAAuD,CAAA;QACpE,CAAC;QAES,gBAAgB;YACxB,OAAO,IAAI,CAAA,uDAAuD,CAAA;QACpE,CAAC;;;AA5DH,sBA6DC","sourcesContent":["import { LitElement, TemplateResult, html, nothing } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport '../../../md/icons/ui-icon.js'\nimport '../../../md/icon-button/ui-icon-button.js'\n\nexport default class AppBar extends LitElement {\n /**\n * Deep navigation bar renders the back button and the title only.\n */\n @property({ type: Boolean }) accessor deep = false\n\n constructor() {\n super()\n this.role = 'header'\n }\n\n protected override render(): TemplateResult {\n return html`\n <div class=\"app-bar\">\n <div class=\"drawer-sizer\">\n ${this.renderBackButton()} ${this.renderMenuTriggerButton()} ${this.renderTitle()}\n </div>\n <div class=\"bar-content\">${this.renderSearchSlot()} ${this.renderAppActions()} ${this.renderUserAvatar()}</div>\n </div>\n `\n }\n\n protected renderBackButton(): TemplateResult | typeof nothing {\n const { deep } = this\n if (!deep) {\n return nothing\n }\n return html`\n <ui-icon-button class=\"back-button\">\n <ui-icon icon=\"arrowBack\"></ui-icon>\n </ui-icon-button>\n `\n }\n\n protected renderMenuTriggerButton(): TemplateResult | typeof nothing {\n const { deep } = this\n if (deep) {\n return nothing\n }\n return html`\n <ui-icon-button class=\"menu-button\">\n <ui-icon icon=\"menu\"></ui-icon>\n </ui-icon-button>\n `\n }\n\n protected renderTitle(): TemplateResult {\n return html`<div class=\"title\"><slot name=\"title\"></slot></div>`\n }\n\n protected renderAppActions(): TemplateResult {\n return html`<div class=\"actions\"><slot name=\"action\"></slot></div>`\n }\n\n protected renderSearchSlot(): TemplateResult {\n return html`<div class=\"search\"><slot name=\"search\"></slot></div>`\n }\n\n protected renderUserAvatar(): TemplateResult {\n return html`<div class=\"avatar\"><slot name=\"avatar\"></slot></div>`\n }\n}\n"]}
@@ -1,8 +1,8 @@
1
1
  import { LitElement, type TemplateResult, type PropertyValues, nothing } from 'lit';
2
- import '@material/web/select/outlined-select.js';
3
- import '@material/web/select/select-option.js';
4
2
  import '../../../md/chip/ui-chip-set.js';
5
3
  import '../../../md/chip/ui-chip.js';
4
+ import '../../../md/select/ui-select.js';
5
+ import '../../../md/select/ui-option.js';
6
6
  /**
7
7
  * Represents a currency with all its display information.
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Picker.d.ts","sourceRoot":"","sources":["../../../../../src/elements/currency/internals/Picker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,KAAK,cAAc,EAAE,KAA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AAa;IAIb;;;;OAIG;IACH,cAAc;IAId;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,UAAU,CA0B1B;;IAOQ,iBAAiB;IAM1B;;OAEG;IACH,OAAO,CAAC,eAAe;cAKJ,UAAU,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IA0FlE;;;OAGG;cACgB,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAe/D;;;;OAIG;IACH,OAAO,CAAC,QAAQ;IAShB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;OAEG;IACH,OAAO,CAAC,UAAU;IAKlB;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IAI7B;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IA8B9B;;;;OAIG;IACH,OAAO,CAAC,4BAA4B;IAwBpC,OAAO,CAAC,0BAA0B;IAkBlC,OAAO,CAAC,oBAAoB;IA6D5B,OAAO,CAAC,oBAAoB;IAoC5B,OAAO,CAAC,mBAAmB;IAgB3B;;;;OAIG;IACH,IAAI,qBAAqB,IAAI,MAAM,EAAE,CAEpC;IAED;;;;;OAKG;IACH,qBAAqB,IAAI,QAAQ,EAAE;IAWnC;;;;;;OAMG;IACH,cAAc;IA+Bd;;;;;;;OAOG;IACH,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAgB/D;;;;OAIG;IACH,iBAAiB,IAAI,IAAI;IAczB;;;;;OAKG;IACM,MAAM,IAAI,cAAc;IA0CjC;;;;OAIG;IACH,SAAS,CAAC,WAAW,IAAI,cAAc,GAAG,OAAO,OAAO;IAYxD;;;;;OAKG;IACH,SAAS,CAAC,cAAc,IAAI,cAAc,GAAG,OAAO,OAAO;CA2B5D"}
@@ -2,10 +2,10 @@ import { __esDecorate, __runInitializers } from "tslib";
2
2
  import { LitElement, html, nothing } from 'lit';
3
3
  import { property, state, query } from 'lit/decorators.js';
4
4
  import { repeat } from 'lit/directives/repeat.js';
5
- import '@material/web/select/outlined-select.js';
6
- import '@material/web/select/select-option.js';
7
5
  import '../../../md/chip/ui-chip-set.js';
8
6
  import '../../../md/chip/ui-chip.js';
7
+ import '../../../md/select/ui-select.js';
8
+ import '../../../md/select/ui-option.js';
9
9
  let CurrencyPicker = (() => {
10
10
  let _classSuper = LitElement;
11
11
  let _selected_decorators;
@@ -54,7 +54,7 @@ let CurrencyPicker = (() => {
54
54
  _multi_decorators = [property({ type: Boolean })];
55
55
  _showErrors_decorators = [property({ type: Boolean })];
56
56
  _selectableCurrencies_decorators = [state()];
57
- _selectElement_decorators = [query('md-outlined-select')];
57
+ _selectElement_decorators = [query('ui-select')];
58
58
  __esDecorate(this, null, _selected_decorators, { kind: "accessor", name: "selected", static: false, private: false, access: { has: obj => "selected" in obj, get: obj => obj.selected, set: (obj, value) => { obj.selected = value; } }, metadata: _metadata }, _selected_initializers, _selected_extraInitializers);
59
59
  __esDecorate(this, null, _allowedCurrencies_decorators, { kind: "accessor", name: "allowedCurrencies", static: false, private: false, access: { has: obj => "allowedCurrencies" in obj, get: obj => obj.allowedCurrencies, set: (obj, value) => { obj.allowedCurrencies = value; } }, metadata: _metadata }, _allowedCurrencies_initializers, _allowedCurrencies_extraInitializers);
60
60
  __esDecorate(this, null, _label_decorators, { kind: "accessor", name: "label", static: false, private: false, access: { has: obj => "label" in obj, get: obj => obj.label, set: (obj, value) => { obj.label = value; } }, metadata: _metadata }, _label_initializers, _label_extraInitializers);
@@ -525,6 +525,7 @@ let CurrencyPicker = (() => {
525
525
  }
526
526
  }
527
527
  handleCurrencySelect(event) {
528
+ event.stopPropagation();
528
529
  try {
529
530
  const select = event.target;
530
531
  const selectedCode = select.value;
@@ -733,7 +734,7 @@ let CurrencyPicker = (() => {
733
734
  const hasError = !this.internals.validity.valid;
734
735
  return html `
735
736
  <div class="currency-picker" role="group" aria-label="${ariaLabel}">
736
- <md-outlined-select
737
+ <ui-select
737
738
  label="${this.label}"
738
739
  @change="${this.handleCurrencySelect}"
739
740
  menuPositioning="popover"
@@ -744,19 +745,19 @@ let CurrencyPicker = (() => {
744
745
  aria-describedby="${this.supportingText ? 'supporting-text' : ''}"
745
746
  aria-invalid="${hasError ? 'true' : 'false'}"
746
747
  >
747
- <md-select-option value="">
748
- <div slot="headline">Select a currency...</div>
749
- </md-select-option>
748
+ <ui-option value="">
749
+ <div>Select a currency...</div>
750
+ </ui-option>
750
751
  ${repeat(this.selectableCurrencies, (currency) => currency.code, (currency) => html `
751
- <md-select-option value="${currency.code}">
752
+ <ui-option value="${currency.code}">
752
753
  <div slot="overline">${currency.country}</div>
753
754
  <div slot="supporting-text">${currency.name}</div>
754
- <div slot="trailing-supporting-text" class="currency-symbol">${currency.symbol}</div>
755
+ <div slot="end-text" class="currency-symbol">${currency.symbol}</div>
755
756
  <div slot="start" class="flag">${currency.flag}</div>
756
- <div slot="headline">${currency.code}</div>
757
- </md-select-option>
757
+ <div>${currency.code}</div>
758
+ </ui-option>
758
759
  `)}
759
- </md-outlined-select>
760
+ </ui-select>
760
761
  ${this.renderSelected()}${this.renderError()}
761
762
  </div>
762
763
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"Picker.js","sourceRoot":"","sources":["../../../../../src/elements/currency/internals/Picker.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAA4C,OAAO,EAAE,MAAM,KAAK,CAAA;AACzF,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AAEjD,OAAO,yCAAyC,CAAA;AAChD,OAAO,uCAAuC,CAAA;AAC9C,OAAO,iCAAiC,CAAA;AACxC,OAAO,6BAA6B,CAAA;;sBAoFQ,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAjC,cAAe,SAAQ,WAAU;;;oCA0BnD,QAAQ,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BAChB,OAAO,OAAO,CAAA;YAChB,CAAC;YACD,MAAM,QAAQ,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAA;YAC7C,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,OAAO,CAAA;YAEzC,OAAO,IAAI,CAAA;;UAEL,MAAM,CACN,QAAQ,EACR,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAC3B,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAA;;2BAED,QAAQ,CAAC,IAAI;;yBAEf,IAAI,CAAC,oBAAoB;4BACtB,IAAI;;oDAEoB,QAAQ,CAAC,IAAI;wCACzB,QAAQ,CAAC,IAAI;;WAE1C,CACF;;KAEJ,CAAA;QACH,CAAC;;;AA/xBH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH","sourcesContent":["import { LitElement, html, type TemplateResult, type PropertyValues, nothing } from 'lit'\nimport { property, state, query } from 'lit/decorators.js'\nimport { repeat } from 'lit/directives/repeat.js'\n\nimport '@material/web/select/outlined-select.js'\nimport '@material/web/select/select-option.js'\nimport '../../../md/chip/ui-chip-set.js'\nimport '../../../md/chip/ui-chip.js'\n\n/**\n * Represents a currency with all its display information.\n */\nexport interface Currency {\n /** ISO 4217 currency code (e.g., 'USD', 'EUR') */\n code: string\n /** Full name of the currency (e.g., 'US Dollar', 'Euro') */\n name: string\n /** Currency symbol (e.g., '$', '€') */\n symbol: string\n /** Country or region name (e.g., 'United States', 'European Union') */\n country: string\n /** Flag emoji representing the currency's origin */\n flag: string\n}\n\n/**\n * Represents an error that can occur in the CurrencyPicker component.\n */\nexport interface CurrencyPickerError {\n /** Type of error: validation, selection constraint, or internal error */\n type: 'validation' | 'selection' | 'internal'\n /** Human-readable error message */\n message: string\n /** Optional additional details about the error for debugging */\n details?: Record<string, unknown>\n}\n\n/**\n * Event detail interface for currency picker error events.\n */\nexport interface CurrencyPickerErrorEvent {\n /** The error information */\n error: CurrencyPickerError\n}\n\n/**\n * A web component for selecting currencies with chips display.\n * Provides a searchable interface with country flags and currency information.\n *\n * This component uses ElementInternals for native form integration and\n * follows web standards for error handling and validation.\n *\n * ## Features\n * - Single or multi-select currency selection\n * - Visual chips display for selected currencies\n * - Native form integration with ElementInternals\n * - Comprehensive validation and error handling\n * - Accessibility support with ARIA attributes\n * - Keyboard navigation support\n * - Currency filtering based on allowed currencies\n *\n * ## Usage\n * ```html\n * <!-- Basic usage -->\n * <currency-picker></currency-picker>\n *\n * <!-- Multi-select with allowed currencies -->\n * <currency-picker multi .allowedCurrencies=\"${['USD', 'EUR', 'GBP']}\"></currency-picker>\n *\n * <!-- Form integration -->\n * <form>\n * <currency-picker name=\"currencies\" required></currency-picker>\n * </form>\n * ```\n *\n * @fires change - Dispatched when selected currencies change due to user interaction.\n * Contains {currencies: Currency[], codes: string[]} in event.detail\n * @fires error - Dispatched when validation or other errors occur.\n * Contains {error: CurrencyPickerError} in event.detail\n *\n * @example\n * ```typescript\n * const picker = document.querySelector('currency-picker');\n * picker.addEventListener('change', (e) => {\n * console.log('Selected currencies:', e.detail.currencies);\n * });\n * picker.addEventListener('error', (e) => {\n * console.error('Picker error:', e.detail.error.message);\n * });\n * ```\n */\nexport default class CurrencyPicker extends LitElement {\n /**\n * Indicates that this custom element is form-associated and can participate in form submission.\n * This enables the component to work with native HTML forms and use ElementInternals.\n */\n static formAssociated = true\n\n /**\n * Private ElementInternals instance for form integration and validation.\n * Provides access to form APIs like setFormValue, setValidity, etc.\n */\n private internals: ElementInternals\n\n /**\n * Shadow root configuration for the component.\n * Uses 'open' mode for accessibility and delegates focus to enable proper focus management.\n */\n static override shadowRootOptions: ShadowRootInit = {\n mode: 'open',\n delegatesFocus: true,\n }\n\n /**\n * The currently selected currency codes.\n * This is an array of ISO 4217 currency codes (e.g., 'USD', 'EUR').\n */\n @property({ type: Array }) accessor selected: string[] = []\n\n /**\n * The currencies that should be available for selection.\n * If not specified, all supported currencies will be available.\n * This is an array of ISO 4217 currency codes (e.g., 'USD', 'EUR').\n */\n @property({ type: Array }) accessor allowedCurrencies: string[] = []\n\n /**\n * The label for the currency selection dropdown.\n * This is displayed as the label for the select input.\n * @attribute\n */\n @property({ type: String }) accessor label = 'Add Currency'\n\n /**\n * The name attribute for the currency selection dropdown.\n * This is used when submitting forms that include this component.\n * @attribute\n */\n @property({ type: String }) accessor name: string | undefined\n\n /**\n * Supporting text for the currency selection dropdown.\n * This is displayed below the select input.\n * @attribute\n */\n @property({ type: String }) accessor supportingText: string | undefined\n\n /**\n * Whether the currency selection is required.\n * If true, the component will enforce at least one currency to be selected.\n * @attribute\n */\n @property({ type: Boolean }) accessor required = false\n\n /**\n * Whether the currency selection is disabled.\n * If true, the component will not allow any changes to the selected currencies.\n * @attribute\n */\n @property({ type: Boolean }) accessor disabled = false\n /**\n * Whether multiple currencies can be selected.\n * If true, the component allows selecting multiple currencies.\n * If false, only one currency can be selected at a time.\n * @attribute\n */\n @property({ type: Boolean }) accessor multi = false\n\n /**\n * Whether to show errors inline within the component.\n * If true, errors will be displayed below the component.\n * If false, errors will only be dispatched as events.\n * @attribute\n */\n @property({ type: Boolean }) accessor showErrors = true\n\n /**\n * The currently selectable currencies (filtered based on selection and allowed currencies).\n * This is automatically updated based on the selected currencies and allowedCurrencies property.\n */\n @state() private accessor selectableCurrencies: Currency[] = []\n\n /**\n * Reference to the Material Design outlined select element.\n * Used to manage the select's internal state and keep it synchronized with the component's selected property.\n */\n @query('md-outlined-select')\n private accessor selectElement!: HTMLElement & { value: string }\n\n /**\n * Returns the form element that contains this component, if any.\n * Part of the ElementInternals API for form-associated custom elements.\n */\n get form() {\n return this.internals.form\n }\n\n /**\n * Returns the validity state of the component.\n * Part of the ElementInternals API for form-associated custom elements.\n */\n get validity() {\n return this.internals.validity\n }\n\n /**\n * Returns the validation message for the component.\n * Part of the ElementInternals API for form-associated custom elements.\n */\n get validationMessage() {\n return this.internals.validationMessage\n }\n\n /**\n * Returns whether the component will be validated when the form is submitted.\n * Part of the ElementInternals API for form-associated custom elements.\n */\n get willValidate() {\n return this.internals.willValidate\n }\n\n /**\n * Checks the validity of the component without displaying validation UI.\n * Part of the ElementInternals API for form-associated custom elements.\n * @returns True if the component is valid, false otherwise\n */\n checkValidity() {\n return this.internals.checkValidity()\n }\n\n /**\n * Checks the validity of the component and displays validation UI if invalid.\n * Part of the ElementInternals API for form-associated custom elements.\n * @returns True if the component is valid, false otherwise\n */\n reportValidity() {\n return this.internals.reportValidity()\n }\n\n /**\n * Master list of supported currencies with their display information.\n * This includes popular currencies with their ISO codes, names, symbols, countries, and flag emojis.\n * Private and readonly to ensure data integrity.\n */\n private readonly currencies: Currency[] = [\n { code: 'USD', name: 'US Dollar', symbol: '$', country: 'United States', flag: '🇺🇸' },\n { code: 'EUR', name: 'Euro', symbol: '€', country: 'European Union', flag: '🇪🇺' },\n { code: 'GBP', name: 'British Pound', symbol: '£', country: 'United Kingdom', flag: '🇬🇧' },\n { code: 'JPY', name: 'Japanese Yen', symbol: '¥', country: 'Japan', flag: '🇯🇵' },\n { code: 'CAD', name: 'Canadian Dollar', symbol: 'C$', country: 'Canada', flag: '🇨🇦' },\n { code: 'AUD', name: 'Australian Dollar', symbol: 'A$', country: 'Australia', flag: '🇦🇺' },\n { code: 'CHF', name: 'Swiss Franc', symbol: 'Fr', country: 'Switzerland', flag: '🇨🇭' },\n { code: 'CNY', name: 'Chinese Yuan', symbol: '¥', country: 'China', flag: '🇨🇳' },\n { code: 'INR', name: 'Indian Rupee', symbol: '₹', country: 'India', flag: '🇮🇳' },\n { code: 'KRW', name: 'South Korean Won', symbol: '₩', country: 'South Korea', flag: '🇰🇷' },\n { code: 'BRL', name: 'Brazilian Real', symbol: 'R$', country: 'Brazil', flag: '🇧🇷' },\n { code: 'MXN', name: 'Mexican Peso', symbol: '$', country: 'Mexico', flag: '🇲🇽' },\n { code: 'SGD', name: 'Singapore Dollar', symbol: 'S$', country: 'Singapore', flag: '🇸🇬' },\n { code: 'HKD', name: 'Hong Kong Dollar', symbol: 'HK$', country: 'Hong Kong', flag: '🇭🇰' },\n { code: 'NOK', name: 'Norwegian Krone', symbol: 'kr', country: 'Norway', flag: '🇳🇴' },\n { code: 'SEK', name: 'Swedish Krona', symbol: 'kr', country: 'Sweden', flag: '🇸🇪' },\n { code: 'DKK', name: 'Danish Krone', symbol: 'kr', country: 'Denmark', flag: '🇩🇰' },\n { code: 'PLN', name: 'Polish Zloty', symbol: 'zł', country: 'Poland', flag: '🇵🇱' },\n { code: 'RUB', name: 'Russian Ruble', symbol: '₽', country: 'Russia', flag: '🇷🇺' },\n { code: 'ZAR', name: 'South African Rand', symbol: 'R', country: 'South Africa', flag: '🇿🇦' },\n { code: 'TRY', name: 'Turkish Lira', symbol: '₺', country: 'Turkey', flag: '🇹🇷' },\n { code: 'NZD', name: 'New Zealand Dollar', symbol: 'NZ$', country: 'New Zealand', flag: '🇳🇿' },\n { code: 'THB', name: 'Thai Baht', symbol: '฿', country: 'Thailand', flag: '🇹🇭' },\n { code: 'ILS', name: 'Israeli Shekel', symbol: '₪', country: 'Israel', flag: '🇮🇱' },\n { code: 'AED', name: 'UAE Dirham', symbol: 'د.إ', country: 'United Arab Emirates', flag: '🇦🇪' },\n ]\n\n constructor() {\n super()\n this.internals = this.attachInternals()\n }\n\n override connectedCallback() {\n super.connectedCallback()\n this.updateSelectableCurrencies()\n this.updateFormValue()\n }\n\n /**\n * Updates the form value using ElementInternals.\n */\n private updateFormValue(): void {\n const value = this.selected.length > 0 ? this.selected.join(',') : null\n this.internals.setFormValue(value)\n }\n\n protected override willUpdate(changed: PropertyValues<this>): void {\n super.willUpdate(changed)\n\n // Validate selected currencies with error handling\n if (changed.has('selected')) {\n this.selected = this.safeCurrencyValidation(this.selected, 'selected')\n\n // Also validate against allowedCurrencies if specified\n if (this.allowedCurrencies.length > 0) {\n const allowedSet = new Set(this.allowedCurrencies)\n const invalidSelectedCodes = this.selected.filter((code) => !allowedSet.has(code))\n\n if (invalidSelectedCodes.length > 0) {\n this.setError({\n type: 'validation',\n message: `Selected currencies not in allowed list: ${invalidSelectedCodes.join(', ')}`,\n details: {\n property: 'selected',\n invalidCodes: invalidSelectedCodes,\n allowedCurrencies: this.allowedCurrencies,\n },\n })\n\n // Filter out invalid codes\n this.selected = this.selected.filter((code) => allowedSet.has(code))\n }\n }\n\n // Also validate selection constraints when property changes\n if (!this.multi && this.selected.length > 1) {\n // In single-select mode, keep only the first valid selection\n this.selected = this.selected.slice(0, 1)\n this.setError({\n type: 'selection',\n message: 'Multiple currency selection is not allowed when multi=false. Only first selection kept.',\n details: { multi: this.multi, originalSelection: changed.get('selected') },\n })\n }\n\n // Validate required constraint\n if (this.required && this.selected.length === 0) {\n this.internals.setValidity({ valueMissing: true }, 'At least one currency must be selected')\n this.setAttribute('aria-invalid', 'true')\n this.dispatchErrorEvent({\n type: 'selection',\n message: 'At least one currency must be selected when required=true',\n details: { required: this.required, currentSelection: this.selected },\n })\n } else if (!this.required || this.selected.length > 0) {\n // Clear validation if not required or has selection\n this.internals.setValidity({})\n this.setAttribute('aria-invalid', 'false')\n }\n }\n // Validate allowed currencies with error handling\n if (changed.has('allowedCurrencies')) {\n this.allowedCurrencies = this.safeCurrencyValidation(this.allowedCurrencies, 'allowedCurrencies')\n\n // Filter selected currencies to only include allowed ones\n if (this.allowedCurrencies.length > 0) {\n const allowedSet = new Set(this.allowedCurrencies)\n const filteredSelected = this.selected.filter((code) => allowedSet.has(code))\n if (filteredSelected.length !== this.selected.length) {\n this.selected = filteredSelected\n }\n }\n }\n\n if (changed.has('selected') || changed.has('allowedCurrencies') || changed.has('multi')) {\n this.updateSelectableCurrencies()\n }\n\n // Update form value when selected changes\n if (changed.has('selected')) {\n this.updateFormValue()\n }\n\n // Synchronize the select element's value with the component's selected state\n if (changed.has('selected') && this.selectElement) {\n // In single-select mode, set the select value to the first selected currency or empty\n // In multi-select mode, always clear the select after selection to allow adding more\n if (!this.multi) {\n this.selectElement.value = this.selected.length > 0 ? this.selected[0] : ''\n } else {\n // For multi-select, always keep the select cleared to allow adding more currencies\n this.selectElement.value = ''\n }\n }\n }\n\n /**\n * Called after the component has been updated and rendered.\n * Ensures the select element's value stays synchronized with the component's selected state.\n */\n protected override updated(changed: PropertyValues<this>): void {\n super.updated(changed)\n\n // Ensure select element is synchronized after rendering\n if (this.selectElement && (changed.has('selected') || changed.has('multi'))) {\n if (!this.multi) {\n // In single-select mode, show the selected currency or clear the select\n this.selectElement.value = this.selected.length > 0 ? this.selected[0] : ''\n } else {\n // In multi-select mode, always keep the select cleared to allow adding more currencies\n this.selectElement.value = ''\n }\n }\n }\n\n /**\n * Sets an error state using ElementInternals and optionally dispatches an error event.\n * @param error The error to set\n * @param dispatch Whether to dispatch an error event (default: true)\n */\n private setError(error: CurrencyPickerError, dispatch = true): void {\n // Use ElementInternals for native form validation\n this.internals.setValidity({ customError: true }, error.message)\n this.setAttribute('aria-invalid', 'true')\n if (dispatch) {\n this.dispatchErrorEvent(error)\n }\n }\n\n /**\n * Dispatches an error event.\n * @param error The error to dispatch\n */\n private dispatchErrorEvent(error: CurrencyPickerError): void {\n this.dispatchEvent(\n new CustomEvent('error', {\n detail: { error },\n bubbles: false,\n })\n )\n }\n\n /**\n * Clears the current error state using ElementInternals.\n */\n private clearError(): void {\n this.internals.setValidity({})\n this.setAttribute('aria-invalid', 'false')\n }\n\n /**\n * Validates currency codes against the supported currencies.\n * @param codes Array of currency codes to validate\n * @returns Array of invalid currency codes\n */\n private validateCurrencyCodes(codes: string[]): string[] {\n return codes.filter((code) => !this.currencies.some((c) => c.code === code))\n }\n\n /**\n * Safely validates and filters currency codes, setting errors for invalid codes.\n * @param codes Array of currency codes to validate\n * @param property Name of the property being validated\n * @returns Array of valid currency codes\n */\n private safeCurrencyValidation(codes: string[], property: string): string[] {\n if (!Array.isArray(codes)) {\n this.setError({\n type: 'validation',\n message: `Invalid ${property}: expected array of currency codes`,\n details: { property, value: codes },\n })\n return []\n }\n\n const invalidCodes = this.validateCurrencyCodes(codes)\n if (invalidCodes.length > 0) {\n this.setError({\n type: 'validation',\n message: `Invalid currency codes in ${property}: ${invalidCodes.join(', ')}`,\n details: { property, invalidCodes, validCodes: this.currencies.map((c) => c.code) },\n }) // Dispatch error event for validation errors\n\n // Return only valid codes\n return codes.filter((code) => !invalidCodes.includes(code))\n }\n\n // Clear any previous validation errors for this property\n if (!this.internals.validity.valid) {\n this.clearError()\n }\n\n return codes\n }\n\n /**\n * Validates selection constraints using ElementInternals.\n * @param newSelection The new selection to validate\n * @returns Whether the selection is valid\n */\n private validateSelectionConstraints(newSelection: string[]): boolean {\n if (!this.multi && newSelection.length > 1) {\n this.setError({\n type: 'selection',\n message: 'Multiple currency selection is not allowed when multi=false',\n details: { multi: this.multi, attemptedSelection: newSelection },\n })\n return false\n }\n\n if (this.required && newSelection.length === 0) {\n this.internals.setValidity({ valueMissing: true }, 'At least one currency must be selected')\n this.setAttribute('aria-invalid', 'true')\n this.dispatchErrorEvent({\n type: 'selection',\n message: 'At least one currency must be selected when required=true',\n details: { required: this.required, currentSelection: newSelection },\n })\n return false\n }\n\n return true\n }\n\n private updateSelectableCurrencies() {\n const selectedCodes = new Set(this.selected)\n\n // If allowedCurrencies is specified, filter the master list by it\n let availableCurrencies = this.currencies\n if (this.allowedCurrencies.length > 0) {\n const allowedSet = new Set(this.allowedCurrencies)\n availableCurrencies = this.currencies.filter((c) => allowedSet.has(c.code))\n }\n if (this.multi) {\n // Then filter out already selected currencies\n this.selectableCurrencies = availableCurrencies.filter((c) => !selectedCodes.has(c.code))\n } else {\n // If single-select, just use the available currencies\n this.selectableCurrencies = availableCurrencies\n }\n }\n\n private handleCurrencySelect(event: Event) {\n try {\n const select = event.target as HTMLSelectElement\n const selectedCode = select.value\n\n if (!selectedCode) return\n\n const currency = this.currencies.find((c) => c.code === selectedCode)\n if (!currency) {\n this.setError({\n type: 'selection',\n message: `Currency not found: ${selectedCode}`,\n details: { attemptedCode: selectedCode },\n })\n return\n }\n\n let newSelection: string[]\n\n if (this.multi) {\n // If multi-select, add the currency to the selection\n if (!this.selected.includes(currency.code)) {\n newSelection = [...this.selected, currency.code]\n } else {\n // Currency already selected, clear any selection errors but don't add duplicate\n if (!this.internals.validity.valid) {\n this.clearError()\n }\n return\n }\n } else {\n // If single-select, replace the current selection\n newSelection = [currency.code]\n }\n\n // Validate the new selection\n if (!this.validateSelectionConstraints(newSelection)) {\n return // Error was set in validateSelectionConstraints\n }\n\n this.selected = newSelection\n this.updateSelectableCurrencies()\n\n // Reset the select for multi-select mode\n if (this.multi) {\n select.value = ''\n }\n\n // Clear any previous errors on successful selection\n this.clearError()\n this.dispatchChangeEvent()\n } catch (error) {\n this.setError({\n type: 'internal',\n message: `Internal error during currency selection: ${error instanceof Error ? error.message : String(error)}`,\n details: { originalError: error },\n })\n }\n }\n\n private handleRemoveCurrency(event: Event) {\n try {\n const chip = event.target as HTMLElement\n const currencyCode = chip.dataset.code\n\n if (!currencyCode) {\n this.setError({\n type: 'internal',\n message: 'Unable to determine currency code from chip element',\n details: { chipElement: chip },\n })\n return\n }\n\n const newSelection = this.selected.filter((code) => code !== currencyCode)\n\n // Validate the new selection (e.g., required constraint)\n if (!this.validateSelectionConstraints(newSelection)) {\n return // Error was set in validateSelectionConstraints\n }\n\n this.selected = newSelection\n this.updateSelectableCurrencies()\n\n // Clear any previous errors on successful removal\n this.clearError()\n this.dispatchChangeEvent()\n } catch (error) {\n this.setError({\n type: 'internal',\n message: `Internal error during currency removal: ${error instanceof Error ? error.message : String(error)}`,\n details: { originalError: error },\n })\n }\n }\n\n private dispatchChangeEvent() {\n const selectedCurrencies = this.getSelectedCurrencies()\n\n // Update form value using ElementInternals\n this.updateFormValue()\n\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: {\n currencies: selectedCurrencies,\n codes: this.selected,\n },\n bubbles: false,\n })\n )\n }\n\n /**\n * Get the currently selected currency codes as a copy of the array.\n * This is a read-only getter that returns a shallow copy to prevent external modification.\n * @returns Array of selected ISO 4217 currency codes\n */\n get selectedCurrencyCodes(): string[] {\n return [...this.selected]\n }\n\n /**\n * Get the full currency objects for currently selected currencies.\n * This method looks up each selected currency code in the master currencies list\n * and returns the complete currency information including name, symbol, country, and flag.\n * @returns Array of complete Currency objects for selected currencies\n */\n getSelectedCurrencies(): Currency[] {\n const result: Currency[] = []\n for (const code of this.selected) {\n const currency = this.currencies.find((c) => c.code === code)\n if (currency) {\n result.push(currency)\n }\n }\n return result\n }\n\n /**\n * Clear all selected currencies.\n * This method removes all selections, validates constraints (such as required),\n * updates the UI, and dispatches a change event. If validation fails (e.g.,\n * component is required), the operation will be cancelled and an error will be set.\n * @throws Will dispatch an error event if validation fails or an internal error occurs\n */\n clearSelection() {\n try {\n const newSelection: string[] = []\n\n // Validate clearing selection (e.g., required constraint)\n if (!this.validateSelectionConstraints(newSelection)) {\n return // Error was set in validateSelectionConstraints\n }\n\n this.selected = newSelection\n this.updateSelectableCurrencies()\n\n // Clear any previous errors on successful clear\n this.clearError()\n this.dispatchChangeEvent()\n\n // Synchronize the select element to show no selection\n if (this.selectElement) {\n this.selectElement.value = ''\n }\n } catch (error) {\n this.setError({\n type: 'internal',\n message: `Internal error during selection clear: ${error instanceof Error ? error.message : String(error)}`,\n details: { originalError: error },\n })\n } finally {\n this.requestUpdate()\n }\n }\n\n /**\n * Form state restore callback for ElementInternals.\n * This method is called by the browser when form state is being restored\n * (e.g., browser back/forward navigation, form autofill).\n * It parses a comma-separated string of currency codes and restores the selection.\n * @param state The state to restore - typically a comma-separated string of currency codes\n * @param _mode The restore mode (unused in this implementation)\n */\n formStateRestoreCallback(state: string | FormData | null): void {\n if (typeof state === 'string' && state) {\n this.selected = state.split(',').filter(Boolean)\n this.updateSelectableCurrencies()\n\n // Synchronize the select element with restored state\n if (this.selectElement) {\n if (!this.multi && this.selected.length > 0) {\n this.selectElement.value = this.selected[0]\n } else {\n this.selectElement.value = ''\n }\n }\n }\n }\n\n /**\n * Form reset callback for ElementInternals.\n * This method is called by the browser when the containing form is reset.\n * It clears all selections, updates the UI, clears any errors, and updates the form value.\n */\n formResetCallback(): void {\n this.selected = []\n this.updateSelectableCurrencies()\n this.clearError()\n this.updateFormValue()\n\n // Synchronize the select element to show no selection\n if (this.selectElement) {\n this.selectElement.value = ''\n }\n\n this.requestUpdate()\n }\n\n /**\n * Main render method for the component.\n * Renders the currency selector with dropdown, selected chips (if multi-select), and error display.\n * Updates ARIA attributes and error states based on current component state.\n * @returns TemplateResult containing the complete component HTML\n */\n override render(): TemplateResult {\n const ariaLabel = this.multi\n ? `Currency selector. ${this.selected.length} currencies selected.`\n : `Currency selector. ${this.selected.length > 0 ? this.selected[0] + ' selected' : 'No currency selected'}.`\n\n const hasError = !this.internals.validity.valid\n\n return html`\n <div class=\"currency-picker\" role=\"group\" aria-label=\"${ariaLabel}\">\n <md-outlined-select\n label=\"${this.label}\"\n @change=\"${this.handleCurrencySelect}\"\n menuPositioning=\"popover\"\n ?disabled=\"${this.disabled}\"\n ?required=\"${this.required}\"\n .supportingText=\"${this.supportingText || ''}\"\n .name=\"${this.name || ''}\"\n aria-describedby=\"${this.supportingText ? 'supporting-text' : ''}\"\n aria-invalid=\"${hasError ? 'true' : 'false'}\"\n >\n <md-select-option value=\"\">\n <div slot=\"headline\">Select a currency...</div>\n </md-select-option>\n ${repeat(\n this.selectableCurrencies,\n (currency) => currency.code,\n (currency) => html`\n <md-select-option value=\"${currency.code}\">\n <div slot=\"overline\">${currency.country}</div>\n <div slot=\"supporting-text\">${currency.name}</div>\n <div slot=\"trailing-supporting-text\" class=\"currency-symbol\">${currency.symbol}</div>\n <div slot=\"start\" class=\"flag\">${currency.flag}</div>\n <div slot=\"headline\">${currency.code}</div>\n </md-select-option>\n `\n )}\n </md-outlined-select>\n ${this.renderSelected()}${this.renderError()}\n </div>\n `\n }\n\n /**\n * Renders error messages when showErrors is true and the component is invalid.\n * The error display uses ARIA live regions for accessibility.\n * @returns TemplateResult with error display or nothing if no errors should be shown\n */\n protected renderError(): TemplateResult | typeof nothing {\n if (!this.showErrors || this.internals.validity.valid) {\n return nothing\n }\n\n return html`\n <div class=\"error\" role=\"alert\" aria-live=\"polite\">\n <span class=\"error-message\">${this.internals.validationMessage}</span>\n </div>\n `\n }\n\n /**\n * Renders the selected currencies as removable chips in multi-select mode.\n * Only renders when multi=true and there are selected currencies.\n * Each chip displays the currency flag and code, and can be removed by the user.\n * @returns TemplateResult with chip display or nothing if not applicable\n */\n protected renderSelected(): TemplateResult | typeof nothing {\n if (!this.multi) {\n return nothing\n }\n const selected = this.getSelectedCurrencies()\n if (selected.length === 0) return nothing\n\n return html`\n <ui-chip-set>\n ${repeat(\n selected,\n (currency) => currency.code,\n (currency) => html`\n <ui-chip\n data-code=\"${currency.code}\"\n type=\"input\"\n @remove=\"${this.handleRemoveCurrency}\"\n ?removable=\"${true}\"\n >\n <span slot=\"icon\" class=\"chip-flag\">${currency.flag}</span>\n <span class=\"chip-code\">${currency.code}</span>\n </ui-chip>\n `\n )}\n </ui-chip-set>\n `\n }\n}\n"]}
1
+ {"version":3,"file":"Picker.js","sourceRoot":"","sources":["../../../../../src/elements/currency/internals/Picker.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAA4C,OAAO,EAAE,MAAM,KAAK,CAAA;AACzF,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AAGjD,OAAO,iCAAiC,CAAA;AACxC,OAAO,6BAA6B,CAAA;AACpC,OAAO,iCAAiC,CAAA;AACxC,OAAO,iCAAiC,CAAA;;sBAoFI,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAjC,cAAe,SAAQ,WAAU;;;oCA0BnD,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;6CAOzB,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;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I,CAAC,qBAAqB,EAAE,CAAA;YAC7C,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,OAAO,CAAA;YAEzC,OAAO,IAAI,CAAA;;UAEL,MAAM,CACN,QAAQ,EACR,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAC3B,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAA;;2BAED,QAAQ,CAAC,IAAI;;yBAEf,IAAI,CAAC,oBAAoB;4BACtB,IAAI;;oDAEoB,QAAQ,CAAC,IAAI;wCACzB,QAAQ,CAAC,IAAI;;WAE1C,CACF;;KAEJ,CAAA;QACH,CAAC;;;AA/xBH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH","sourcesContent":["import { LitElement, html, type TemplateResult, type PropertyValues, nothing } from 'lit'\nimport { property, state, query } from 'lit/decorators.js'\nimport { repeat } from 'lit/directives/repeat.js'\nimport type { UiSelectChangeEvent, UiSelectElement } from '../../../md/select/ui-select.js'\n\nimport '../../../md/chip/ui-chip-set.js'\nimport '../../../md/chip/ui-chip.js'\nimport '../../../md/select/ui-select.js'\nimport '../../../md/select/ui-option.js'\n\n/**\n * Represents a currency with all its display information.\n */\nexport interface Currency {\n /** ISO 4217 currency code (e.g., 'USD', 'EUR') */\n code: string\n /** Full name of the currency (e.g., 'US Dollar', 'Euro') */\n name: string\n /** Currency symbol (e.g., '$', '€') */\n symbol: string\n /** Country or region name (e.g., 'United States', 'European Union') */\n country: string\n /** Flag emoji representing the currency's origin */\n flag: string\n}\n\n/**\n * Represents an error that can occur in the CurrencyPicker component.\n */\nexport interface CurrencyPickerError {\n /** Type of error: validation, selection constraint, or internal error */\n type: 'validation' | 'selection' | 'internal'\n /** Human-readable error message */\n message: string\n /** Optional additional details about the error for debugging */\n details?: Record<string, unknown>\n}\n\n/**\n * Event detail interface for currency picker error events.\n */\nexport interface CurrencyPickerErrorEvent {\n /** The error information */\n error: CurrencyPickerError\n}\n\n/**\n * A web component for selecting currencies with chips display.\n * Provides a searchable interface with country flags and currency information.\n *\n * This component uses ElementInternals for native form integration and\n * follows web standards for error handling and validation.\n *\n * ## Features\n * - Single or multi-select currency selection\n * - Visual chips display for selected currencies\n * - Native form integration with ElementInternals\n * - Comprehensive validation and error handling\n * - Accessibility support with ARIA attributes\n * - Keyboard navigation support\n * - Currency filtering based on allowed currencies\n *\n * ## Usage\n * ```html\n * <!-- Basic usage -->\n * <currency-picker></currency-picker>\n *\n * <!-- Multi-select with allowed currencies -->\n * <currency-picker multi .allowedCurrencies=\"${['USD', 'EUR', 'GBP']}\"></currency-picker>\n *\n * <!-- Form integration -->\n * <form>\n * <currency-picker name=\"currencies\" required></currency-picker>\n * </form>\n * ```\n *\n * @fires change - Dispatched when selected currencies change due to user interaction.\n * Contains {currencies: Currency[], codes: string[]} in event.detail\n * @fires error - Dispatched when validation or other errors occur.\n * Contains {error: CurrencyPickerError} in event.detail\n *\n * @example\n * ```typescript\n * const picker = document.querySelector('currency-picker');\n * picker.addEventListener('change', (e) => {\n * console.log('Selected currencies:', e.detail.currencies);\n * });\n * picker.addEventListener('error', (e) => {\n * console.error('Picker error:', e.detail.error.message);\n * });\n * ```\n */\nexport default class CurrencyPicker extends LitElement {\n /**\n * Indicates that this custom element is form-associated and can participate in form submission.\n * This enables the component to work with native HTML forms and use ElementInternals.\n */\n static formAssociated = true\n\n /**\n * Private ElementInternals instance for form integration and validation.\n * Provides access to form APIs like setFormValue, setValidity, etc.\n */\n private internals: ElementInternals\n\n /**\n * Shadow root configuration for the component.\n * Uses 'open' mode for accessibility and delegates focus to enable proper focus management.\n */\n static override shadowRootOptions: ShadowRootInit = {\n mode: 'open',\n delegatesFocus: true,\n }\n\n /**\n * The currently selected currency codes.\n * This is an array of ISO 4217 currency codes (e.g., 'USD', 'EUR').\n */\n @property({ type: Array }) accessor selected: string[] = []\n\n /**\n * The currencies that should be available for selection.\n * If not specified, all supported currencies will be available.\n * This is an array of ISO 4217 currency codes (e.g., 'USD', 'EUR').\n */\n @property({ type: Array }) accessor allowedCurrencies: string[] = []\n\n /**\n * The label for the currency selection dropdown.\n * This is displayed as the label for the select input.\n * @attribute\n */\n @property({ type: String }) accessor label = 'Add Currency'\n\n /**\n * The name attribute for the currency selection dropdown.\n * This is used when submitting forms that include this component.\n * @attribute\n */\n @property({ type: String }) accessor name: string | undefined\n\n /**\n * Supporting text for the currency selection dropdown.\n * This is displayed below the select input.\n * @attribute\n */\n @property({ type: String }) accessor supportingText: string | undefined\n\n /**\n * Whether the currency selection is required.\n * If true, the component will enforce at least one currency to be selected.\n * @attribute\n */\n @property({ type: Boolean }) accessor required = false\n\n /**\n * Whether the currency selection is disabled.\n * If true, the component will not allow any changes to the selected currencies.\n * @attribute\n */\n @property({ type: Boolean }) accessor disabled = false\n /**\n * Whether multiple currencies can be selected.\n * If true, the component allows selecting multiple currencies.\n * If false, only one currency can be selected at a time.\n * @attribute\n */\n @property({ type: Boolean }) accessor multi = false\n\n /**\n * Whether to show errors inline within the component.\n * If true, errors will be displayed below the component.\n * If false, errors will only be dispatched as events.\n * @attribute\n */\n @property({ type: Boolean }) accessor showErrors = true\n\n /**\n * The currently selectable currencies (filtered based on selection and allowed currencies).\n * This is automatically updated based on the selected currencies and allowedCurrencies property.\n */\n @state() private accessor selectableCurrencies: Currency[] = []\n\n /**\n * Reference to the Material Design outlined select element.\n * Used to manage the select's internal state and keep it synchronized with the component's selected property.\n */\n @query('ui-select')\n private accessor selectElement!: UiSelectElement\n\n /**\n * Returns the form element that contains this component, if any.\n * Part of the ElementInternals API for form-associated custom elements.\n */\n get form() {\n return this.internals.form\n }\n\n /**\n * Returns the validity state of the component.\n * Part of the ElementInternals API for form-associated custom elements.\n */\n get validity() {\n return this.internals.validity\n }\n\n /**\n * Returns the validation message for the component.\n * Part of the ElementInternals API for form-associated custom elements.\n */\n get validationMessage() {\n return this.internals.validationMessage\n }\n\n /**\n * Returns whether the component will be validated when the form is submitted.\n * Part of the ElementInternals API for form-associated custom elements.\n */\n get willValidate() {\n return this.internals.willValidate\n }\n\n /**\n * Checks the validity of the component without displaying validation UI.\n * Part of the ElementInternals API for form-associated custom elements.\n * @returns True if the component is valid, false otherwise\n */\n checkValidity() {\n return this.internals.checkValidity()\n }\n\n /**\n * Checks the validity of the component and displays validation UI if invalid.\n * Part of the ElementInternals API for form-associated custom elements.\n * @returns True if the component is valid, false otherwise\n */\n reportValidity() {\n return this.internals.reportValidity()\n }\n\n /**\n * Master list of supported currencies with their display information.\n * This includes popular currencies with their ISO codes, names, symbols, countries, and flag emojis.\n * Private and readonly to ensure data integrity.\n */\n private readonly currencies: Currency[] = [\n { code: 'USD', name: 'US Dollar', symbol: '$', country: 'United States', flag: '🇺🇸' },\n { code: 'EUR', name: 'Euro', symbol: '€', country: 'European Union', flag: '🇪🇺' },\n { code: 'GBP', name: 'British Pound', symbol: '£', country: 'United Kingdom', flag: '🇬🇧' },\n { code: 'JPY', name: 'Japanese Yen', symbol: '¥', country: 'Japan', flag: '🇯🇵' },\n { code: 'CAD', name: 'Canadian Dollar', symbol: 'C$', country: 'Canada', flag: '🇨🇦' },\n { code: 'AUD', name: 'Australian Dollar', symbol: 'A$', country: 'Australia', flag: '🇦🇺' },\n { code: 'CHF', name: 'Swiss Franc', symbol: 'Fr', country: 'Switzerland', flag: '🇨🇭' },\n { code: 'CNY', name: 'Chinese Yuan', symbol: '¥', country: 'China', flag: '🇨🇳' },\n { code: 'INR', name: 'Indian Rupee', symbol: '₹', country: 'India', flag: '🇮🇳' },\n { code: 'KRW', name: 'South Korean Won', symbol: '₩', country: 'South Korea', flag: '🇰🇷' },\n { code: 'BRL', name: 'Brazilian Real', symbol: 'R$', country: 'Brazil', flag: '🇧🇷' },\n { code: 'MXN', name: 'Mexican Peso', symbol: '$', country: 'Mexico', flag: '🇲🇽' },\n { code: 'SGD', name: 'Singapore Dollar', symbol: 'S$', country: 'Singapore', flag: '🇸🇬' },\n { code: 'HKD', name: 'Hong Kong Dollar', symbol: 'HK$', country: 'Hong Kong', flag: '🇭🇰' },\n { code: 'NOK', name: 'Norwegian Krone', symbol: 'kr', country: 'Norway', flag: '🇳🇴' },\n { code: 'SEK', name: 'Swedish Krona', symbol: 'kr', country: 'Sweden', flag: '🇸🇪' },\n { code: 'DKK', name: 'Danish Krone', symbol: 'kr', country: 'Denmark', flag: '🇩🇰' },\n { code: 'PLN', name: 'Polish Zloty', symbol: 'zł', country: 'Poland', flag: '🇵🇱' },\n { code: 'RUB', name: 'Russian Ruble', symbol: '₽', country: 'Russia', flag: '🇷🇺' },\n { code: 'ZAR', name: 'South African Rand', symbol: 'R', country: 'South Africa', flag: '🇿🇦' },\n { code: 'TRY', name: 'Turkish Lira', symbol: '₺', country: 'Turkey', flag: '🇹🇷' },\n { code: 'NZD', name: 'New Zealand Dollar', symbol: 'NZ$', country: 'New Zealand', flag: '🇳🇿' },\n { code: 'THB', name: 'Thai Baht', symbol: '฿', country: 'Thailand', flag: '🇹🇭' },\n { code: 'ILS', name: 'Israeli Shekel', symbol: '₪', country: 'Israel', flag: '🇮🇱' },\n { code: 'AED', name: 'UAE Dirham', symbol: 'د.إ', country: 'United Arab Emirates', flag: '🇦🇪' },\n ]\n\n constructor() {\n super()\n this.internals = this.attachInternals()\n }\n\n override connectedCallback() {\n super.connectedCallback()\n this.updateSelectableCurrencies()\n this.updateFormValue()\n }\n\n /**\n * Updates the form value using ElementInternals.\n */\n private updateFormValue(): void {\n const value = this.selected.length > 0 ? this.selected.join(',') : null\n this.internals.setFormValue(value)\n }\n\n protected override willUpdate(changed: PropertyValues<this>): void {\n super.willUpdate(changed)\n\n // Validate selected currencies with error handling\n if (changed.has('selected')) {\n this.selected = this.safeCurrencyValidation(this.selected, 'selected')\n\n // Also validate against allowedCurrencies if specified\n if (this.allowedCurrencies.length > 0) {\n const allowedSet = new Set(this.allowedCurrencies)\n const invalidSelectedCodes = this.selected.filter((code) => !allowedSet.has(code))\n\n if (invalidSelectedCodes.length > 0) {\n this.setError({\n type: 'validation',\n message: `Selected currencies not in allowed list: ${invalidSelectedCodes.join(', ')}`,\n details: {\n property: 'selected',\n invalidCodes: invalidSelectedCodes,\n allowedCurrencies: this.allowedCurrencies,\n },\n })\n\n // Filter out invalid codes\n this.selected = this.selected.filter((code) => allowedSet.has(code))\n }\n }\n\n // Also validate selection constraints when property changes\n if (!this.multi && this.selected.length > 1) {\n // In single-select mode, keep only the first valid selection\n this.selected = this.selected.slice(0, 1)\n this.setError({\n type: 'selection',\n message: 'Multiple currency selection is not allowed when multi=false. Only first selection kept.',\n details: { multi: this.multi, originalSelection: changed.get('selected') },\n })\n }\n\n // Validate required constraint\n if (this.required && this.selected.length === 0) {\n this.internals.setValidity({ valueMissing: true }, 'At least one currency must be selected')\n this.setAttribute('aria-invalid', 'true')\n this.dispatchErrorEvent({\n type: 'selection',\n message: 'At least one currency must be selected when required=true',\n details: { required: this.required, currentSelection: this.selected },\n })\n } else if (!this.required || this.selected.length > 0) {\n // Clear validation if not required or has selection\n this.internals.setValidity({})\n this.setAttribute('aria-invalid', 'false')\n }\n }\n // Validate allowed currencies with error handling\n if (changed.has('allowedCurrencies')) {\n this.allowedCurrencies = this.safeCurrencyValidation(this.allowedCurrencies, 'allowedCurrencies')\n\n // Filter selected currencies to only include allowed ones\n if (this.allowedCurrencies.length > 0) {\n const allowedSet = new Set(this.allowedCurrencies)\n const filteredSelected = this.selected.filter((code) => allowedSet.has(code))\n if (filteredSelected.length !== this.selected.length) {\n this.selected = filteredSelected\n }\n }\n }\n\n if (changed.has('selected') || changed.has('allowedCurrencies') || changed.has('multi')) {\n this.updateSelectableCurrencies()\n }\n\n // Update form value when selected changes\n if (changed.has('selected')) {\n this.updateFormValue()\n }\n\n // Synchronize the select element's value with the component's selected state\n if (changed.has('selected') && this.selectElement) {\n // In single-select mode, set the select value to the first selected currency or empty\n // In multi-select mode, always clear the select after selection to allow adding more\n if (!this.multi) {\n this.selectElement.value = this.selected.length > 0 ? this.selected[0] : ''\n } else {\n // For multi-select, always keep the select cleared to allow adding more currencies\n this.selectElement.value = ''\n }\n }\n }\n\n /**\n * Called after the component has been updated and rendered.\n * Ensures the select element's value stays synchronized with the component's selected state.\n */\n protected override updated(changed: PropertyValues<this>): void {\n super.updated(changed)\n\n // Ensure select element is synchronized after rendering\n if (this.selectElement && (changed.has('selected') || changed.has('multi'))) {\n if (!this.multi) {\n // In single-select mode, show the selected currency or clear the select\n this.selectElement.value = this.selected.length > 0 ? this.selected[0] : ''\n } else {\n // In multi-select mode, always keep the select cleared to allow adding more currencies\n this.selectElement.value = ''\n }\n }\n }\n\n /**\n * Sets an error state using ElementInternals and optionally dispatches an error event.\n * @param error The error to set\n * @param dispatch Whether to dispatch an error event (default: true)\n */\n private setError(error: CurrencyPickerError, dispatch = true): void {\n // Use ElementInternals for native form validation\n this.internals.setValidity({ customError: true }, error.message)\n this.setAttribute('aria-invalid', 'true')\n if (dispatch) {\n this.dispatchErrorEvent(error)\n }\n }\n\n /**\n * Dispatches an error event.\n * @param error The error to dispatch\n */\n private dispatchErrorEvent(error: CurrencyPickerError): void {\n this.dispatchEvent(\n new CustomEvent('error', {\n detail: { error },\n bubbles: false,\n })\n )\n }\n\n /**\n * Clears the current error state using ElementInternals.\n */\n private clearError(): void {\n this.internals.setValidity({})\n this.setAttribute('aria-invalid', 'false')\n }\n\n /**\n * Validates currency codes against the supported currencies.\n * @param codes Array of currency codes to validate\n * @returns Array of invalid currency codes\n */\n private validateCurrencyCodes(codes: string[]): string[] {\n return codes.filter((code) => !this.currencies.some((c) => c.code === code))\n }\n\n /**\n * Safely validates and filters currency codes, setting errors for invalid codes.\n * @param codes Array of currency codes to validate\n * @param property Name of the property being validated\n * @returns Array of valid currency codes\n */\n private safeCurrencyValidation(codes: string[], property: string): string[] {\n if (!Array.isArray(codes)) {\n this.setError({\n type: 'validation',\n message: `Invalid ${property}: expected array of currency codes`,\n details: { property, value: codes },\n })\n return []\n }\n\n const invalidCodes = this.validateCurrencyCodes(codes)\n if (invalidCodes.length > 0) {\n this.setError({\n type: 'validation',\n message: `Invalid currency codes in ${property}: ${invalidCodes.join(', ')}`,\n details: { property, invalidCodes, validCodes: this.currencies.map((c) => c.code) },\n }) // Dispatch error event for validation errors\n\n // Return only valid codes\n return codes.filter((code) => !invalidCodes.includes(code))\n }\n\n // Clear any previous validation errors for this property\n if (!this.internals.validity.valid) {\n this.clearError()\n }\n\n return codes\n }\n\n /**\n * Validates selection constraints using ElementInternals.\n * @param newSelection The new selection to validate\n * @returns Whether the selection is valid\n */\n private validateSelectionConstraints(newSelection: string[]): boolean {\n if (!this.multi && newSelection.length > 1) {\n this.setError({\n type: 'selection',\n message: 'Multiple currency selection is not allowed when multi=false',\n details: { multi: this.multi, attemptedSelection: newSelection },\n })\n return false\n }\n\n if (this.required && newSelection.length === 0) {\n this.internals.setValidity({ valueMissing: true }, 'At least one currency must be selected')\n this.setAttribute('aria-invalid', 'true')\n this.dispatchErrorEvent({\n type: 'selection',\n message: 'At least one currency must be selected when required=true',\n details: { required: this.required, currentSelection: newSelection },\n })\n return false\n }\n\n return true\n }\n\n private updateSelectableCurrencies() {\n const selectedCodes = new Set(this.selected)\n\n // If allowedCurrencies is specified, filter the master list by it\n let availableCurrencies = this.currencies\n if (this.allowedCurrencies.length > 0) {\n const allowedSet = new Set(this.allowedCurrencies)\n availableCurrencies = this.currencies.filter((c) => allowedSet.has(c.code))\n }\n if (this.multi) {\n // Then filter out already selected currencies\n this.selectableCurrencies = availableCurrencies.filter((c) => !selectedCodes.has(c.code))\n } else {\n // If single-select, just use the available currencies\n this.selectableCurrencies = availableCurrencies\n }\n }\n\n private handleCurrencySelect(event: CustomEvent<UiSelectChangeEvent>) {\n event.stopPropagation()\n try {\n const select = event.target as UiSelectElement\n const selectedCode = select.value\n\n if (!selectedCode) return\n\n const currency = this.currencies.find((c) => c.code === selectedCode)\n if (!currency) {\n this.setError({\n type: 'selection',\n message: `Currency not found: ${selectedCode}`,\n details: { attemptedCode: selectedCode },\n })\n return\n }\n\n let newSelection: string[]\n\n if (this.multi) {\n // If multi-select, add the currency to the selection\n if (!this.selected.includes(currency.code)) {\n newSelection = [...this.selected, currency.code]\n } else {\n // Currency already selected, clear any selection errors but don't add duplicate\n if (!this.internals.validity.valid) {\n this.clearError()\n }\n return\n }\n } else {\n // If single-select, replace the current selection\n newSelection = [currency.code]\n }\n\n // Validate the new selection\n if (!this.validateSelectionConstraints(newSelection)) {\n return // Error was set in validateSelectionConstraints\n }\n\n this.selected = newSelection\n this.updateSelectableCurrencies()\n\n // Reset the select for multi-select mode\n if (this.multi) {\n select.value = ''\n }\n\n // Clear any previous errors on successful selection\n this.clearError()\n this.dispatchChangeEvent()\n } catch (error) {\n this.setError({\n type: 'internal',\n message: `Internal error during currency selection: ${error instanceof Error ? error.message : String(error)}`,\n details: { originalError: error },\n })\n }\n }\n\n private handleRemoveCurrency(event: Event) {\n try {\n const chip = event.target as HTMLElement\n const currencyCode = chip.dataset.code\n\n if (!currencyCode) {\n this.setError({\n type: 'internal',\n message: 'Unable to determine currency code from chip element',\n details: { chipElement: chip },\n })\n return\n }\n\n const newSelection = this.selected.filter((code) => code !== currencyCode)\n\n // Validate the new selection (e.g., required constraint)\n if (!this.validateSelectionConstraints(newSelection)) {\n return // Error was set in validateSelectionConstraints\n }\n\n this.selected = newSelection\n this.updateSelectableCurrencies()\n\n // Clear any previous errors on successful removal\n this.clearError()\n this.dispatchChangeEvent()\n } catch (error) {\n this.setError({\n type: 'internal',\n message: `Internal error during currency removal: ${error instanceof Error ? error.message : String(error)}`,\n details: { originalError: error },\n })\n }\n }\n\n private dispatchChangeEvent() {\n const selectedCurrencies = this.getSelectedCurrencies()\n\n // Update form value using ElementInternals\n this.updateFormValue()\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: {\n currencies: selectedCurrencies,\n codes: this.selected,\n },\n bubbles: false,\n })\n )\n }\n\n /**\n * Get the currently selected currency codes as a copy of the array.\n * This is a read-only getter that returns a shallow copy to prevent external modification.\n * @returns Array of selected ISO 4217 currency codes\n */\n get selectedCurrencyCodes(): string[] {\n return [...this.selected]\n }\n\n /**\n * Get the full currency objects for currently selected currencies.\n * This method looks up each selected currency code in the master currencies list\n * and returns the complete currency information including name, symbol, country, and flag.\n * @returns Array of complete Currency objects for selected currencies\n */\n getSelectedCurrencies(): Currency[] {\n const result: Currency[] = []\n for (const code of this.selected) {\n const currency = this.currencies.find((c) => c.code === code)\n if (currency) {\n result.push(currency)\n }\n }\n return result\n }\n\n /**\n * Clear all selected currencies.\n * This method removes all selections, validates constraints (such as required),\n * updates the UI, and dispatches a change event. If validation fails (e.g.,\n * component is required), the operation will be cancelled and an error will be set.\n * @throws Will dispatch an error event if validation fails or an internal error occurs\n */\n clearSelection() {\n try {\n const newSelection: string[] = []\n\n // Validate clearing selection (e.g., required constraint)\n if (!this.validateSelectionConstraints(newSelection)) {\n return // Error was set in validateSelectionConstraints\n }\n\n this.selected = newSelection\n this.updateSelectableCurrencies()\n\n // Clear any previous errors on successful clear\n this.clearError()\n this.dispatchChangeEvent()\n\n // Synchronize the select element to show no selection\n if (this.selectElement) {\n this.selectElement.value = ''\n }\n } catch (error) {\n this.setError({\n type: 'internal',\n message: `Internal error during selection clear: ${error instanceof Error ? error.message : String(error)}`,\n details: { originalError: error },\n })\n } finally {\n this.requestUpdate()\n }\n }\n\n /**\n * Form state restore callback for ElementInternals.\n * This method is called by the browser when form state is being restored\n * (e.g., browser back/forward navigation, form autofill).\n * It parses a comma-separated string of currency codes and restores the selection.\n * @param state The state to restore - typically a comma-separated string of currency codes\n * @param _mode The restore mode (unused in this implementation)\n */\n formStateRestoreCallback(state: string | FormData | null): void {\n if (typeof state === 'string' && state) {\n this.selected = state.split(',').filter(Boolean)\n this.updateSelectableCurrencies()\n\n // Synchronize the select element with restored state\n if (this.selectElement) {\n if (!this.multi && this.selected.length > 0) {\n this.selectElement.value = this.selected[0]\n } else {\n this.selectElement.value = ''\n }\n }\n }\n }\n\n /**\n * Form reset callback for ElementInternals.\n * This method is called by the browser when the containing form is reset.\n * It clears all selections, updates the UI, clears any errors, and updates the form value.\n */\n formResetCallback(): void {\n this.selected = []\n this.updateSelectableCurrencies()\n this.clearError()\n this.updateFormValue()\n\n // Synchronize the select element to show no selection\n if (this.selectElement) {\n this.selectElement.value = ''\n }\n\n this.requestUpdate()\n }\n\n /**\n * Main render method for the component.\n * Renders the currency selector with dropdown, selected chips (if multi-select), and error display.\n * Updates ARIA attributes and error states based on current component state.\n * @returns TemplateResult containing the complete component HTML\n */\n override render(): TemplateResult {\n const ariaLabel = this.multi\n ? `Currency selector. ${this.selected.length} currencies selected.`\n : `Currency selector. ${this.selected.length > 0 ? this.selected[0] + ' selected' : 'No currency selected'}.`\n\n const hasError = !this.internals.validity.valid\n\n return html`\n <div class=\"currency-picker\" role=\"group\" aria-label=\"${ariaLabel}\">\n <ui-select\n label=\"${this.label}\"\n @change=\"${this.handleCurrencySelect}\"\n menuPositioning=\"popover\"\n ?disabled=\"${this.disabled}\"\n ?required=\"${this.required}\"\n .supportingText=\"${this.supportingText || ''}\"\n .name=\"${this.name || ''}\"\n aria-describedby=\"${this.supportingText ? 'supporting-text' : ''}\"\n aria-invalid=\"${hasError ? 'true' : 'false'}\"\n >\n <ui-option value=\"\">\n <div>Select a currency...</div>\n </ui-option>\n ${repeat(\n this.selectableCurrencies,\n (currency) => currency.code,\n (currency) => html`\n <ui-option value=\"${currency.code}\">\n <div slot=\"overline\">${currency.country}</div>\n <div slot=\"supporting-text\">${currency.name}</div>\n <div slot=\"end-text\" class=\"currency-symbol\">${currency.symbol}</div>\n <div slot=\"start\" class=\"flag\">${currency.flag}</div>\n <div>${currency.code}</div>\n </ui-option>\n `\n )}\n </ui-select>\n ${this.renderSelected()}${this.renderError()}\n </div>\n `\n }\n\n /**\n * Renders error messages when showErrors is true and the component is invalid.\n * The error display uses ARIA live regions for accessibility.\n * @returns TemplateResult with error display or nothing if no errors should be shown\n */\n protected renderError(): TemplateResult | typeof nothing {\n if (!this.showErrors || this.internals.validity.valid) {\n return nothing\n }\n\n return html`\n <div class=\"error\" role=\"alert\" aria-live=\"polite\">\n <span class=\"error-message\">${this.internals.validationMessage}</span>\n </div>\n `\n }\n\n /**\n * Renders the selected currencies as removable chips in multi-select mode.\n * Only renders when multi=true and there are selected currencies.\n * Each chip displays the currency flag and code, and can be removed by the user.\n * @returns TemplateResult with chip display or nothing if not applicable\n */\n protected renderSelected(): TemplateResult | typeof nothing {\n if (!this.multi) {\n return nothing\n }\n const selected = this.getSelectedCurrencies()\n if (selected.length === 0) return nothing\n\n return html`\n <ui-chip-set>\n ${repeat(\n selected,\n (currency) => currency.code,\n (currency) => html`\n <ui-chip\n data-code=\"${currency.code}\"\n type=\"input\"\n @remove=\"${this.handleRemoveCurrency}\"\n ?removable=\"${true}\"\n >\n <span slot=\"icon\" class=\"chip-flag\">${currency.flag}</span>\n <span class=\"chip-code\">${currency.code}</span>\n </ui-chip>\n `\n )}\n </ui-chip-set>\n `\n }\n}\n"]}
@@ -1,9 +1,7 @@
1
1
  import { LitElement, PropertyValues, TemplateResult } from 'lit';
2
2
  import { LiveData } from '../../reactive/LiveData.js';
3
- import '@material/web/icon/icon.js';
4
- import '@material/web/menu/menu.js';
5
- import '@material/web/menu/menu-item.js';
6
3
  import '@material/web/focus/md-focus-ring.js';
4
+ import '../../md/icons/ui-icon.js';
7
5
  /**
8
6
  * Options for rendering a table cell.
9
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/elements/data-table/DataTable.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,UAAU,EAAW,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAM/E,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAErD,OAAO,4BAA4B,CAAA;AACnC,OAAO,4BAA4B,CAAA;AACnC,OAAO,iCAAiC,CAAA;AACxC,OAAO,sCAAsC,CAAA;AAE7C;;GAEG;AACH,MAAM,WAAW,iBA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E;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,cAAc;IAiB3D;;;;;;;;;OASG;IACH,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,iBAAsB,GAAG,cAAc;IAmD9G;;;;;OAKG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,uBAA4B,GAAG,cAAc;CAwC9G"}
@@ -6,10 +6,8 @@ import { classMap } from 'lit/directives/class-map.js';
6
6
  import { ref, createRef } from 'lit/directives/ref.js';
7
7
  import { ifDefined } from 'lit/directives/if-defined.js';
8
8
  import { dataAttr } from '../../directives/data-attr.js';
9
- import '@material/web/icon/icon.js';
10
- import '@material/web/menu/menu.js';
11
- import '@material/web/menu/menu-item.js';
12
9
  import '@material/web/focus/md-focus-ring.js';
10
+ import '../../md/icons/ui-icon.js';
13
11
  /**
14
12
  * A versatile and accessible data table web component.
15
13
  *
@@ -1004,7 +1002,7 @@ let DataTable = (() => {
1004
1002
  <md-focus-ring .inward="${this.overflow ? true : false}"></md-focus-ring>
1005
1003
  <div class="cell-content">
1006
1004
  ${content}
1007
- ${isSortable && sortIcon ? html `<md-icon class="sort-icon" role="presentation">${sortIcon}</md-icon>` : nothing}
1005
+ ${isSortable && sortIcon ? html `<ui-icon class="sort-icon" role="presentation">${sortIcon}</ui-icon>` : nothing}
1008
1006
  </div>
1009
1007
  </th> `;
1010
1008
  }