@descope/web-components-ui 1.100.0 → 1.101.0

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 (101) hide show
  1. package/dist/cjs/index.cjs.js +1913 -1637
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1863 -1586
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/umd/1995.js +22 -7
  6. package/dist/umd/1995.js.LICENSE.txt +6 -0
  7. package/dist/umd/1995.js.map +1 -1
  8. package/dist/umd/6063.js +18 -0
  9. package/dist/umd/6063.js.map +1 -0
  10. package/dist/umd/6818.js +3 -0
  11. package/dist/umd/6818.js.map +1 -0
  12. package/dist/umd/{189.js → 8248.js} +4 -4
  13. package/dist/umd/8248.js.map +1 -0
  14. package/dist/umd/8961.js +1 -1
  15. package/dist/umd/8961.js.map +1 -1
  16. package/dist/umd/8968.js +432 -0
  17. package/dist/umd/8968.js.map +1 -0
  18. package/dist/umd/8983.js +324 -7
  19. package/dist/umd/8983.js.map +1 -1
  20. package/dist/umd/{384.js → 9117.js} +9 -121
  21. package/dist/umd/9117.js.map +1 -0
  22. package/dist/umd/9275.js +18 -0
  23. package/dist/umd/9275.js.LICENSE.txt +23 -0
  24. package/dist/umd/9275.js.map +1 -0
  25. package/dist/umd/DescopeDev.js +1 -1
  26. package/dist/umd/DescopeDev.js.map +1 -1
  27. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
  28. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js.map +1 -1
  29. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
  30. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js.map +1 -1
  31. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +338 -1
  32. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js.LICENSE.txt +5 -0
  33. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js.map +1 -1
  34. package/dist/umd/descope-apps-list-index-js.js +1 -1
  35. package/dist/umd/descope-apps-list-index-js.js.map +1 -1
  36. package/dist/umd/descope-button.js +4 -4
  37. package/dist/umd/descope-button.js.LICENSE.txt +0 -6
  38. package/dist/umd/descope-button.js.map +1 -1
  39. package/dist/umd/descope-collapsible-container.js +1 -1
  40. package/dist/umd/descope-collapsible-container.js.map +1 -1
  41. package/dist/umd/descope-divider-index-js.js +1 -1
  42. package/dist/umd/descope-divider-index-js.js.map +1 -1
  43. package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +321 -4
  44. package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js.LICENSE.txt +6 -0
  45. package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js.map +1 -1
  46. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js +322 -5
  47. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js.map +1 -1
  48. package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +321 -4
  49. package/dist/umd/descope-grid-descope-grid-text-column-index-js.js.LICENSE.txt +6 -0
  50. package/dist/umd/descope-grid-descope-grid-text-column-index-js.js.map +1 -1
  51. package/dist/umd/descope-link-index-js.js +1 -1
  52. package/dist/umd/descope-link-index-js.js.map +1 -1
  53. package/dist/umd/descope-recovery-codes.js +2 -0
  54. package/dist/umd/descope-recovery-codes.js.map +1 -0
  55. package/dist/umd/descope-security-questions-verify-index-js.js +1 -1
  56. package/dist/umd/descope-security-questions-verify-index-js.js.map +1 -1
  57. package/dist/umd/descope-text.js +1 -1
  58. package/dist/umd/descope-text.js.map +1 -1
  59. package/dist/umd/descope-timer-button.js +338 -1
  60. package/dist/umd/descope-timer-button.js.LICENSE.txt +5 -0
  61. package/dist/umd/descope-timer-button.js.map +1 -1
  62. package/dist/umd/descope-upload-file-index-js.js +338 -1
  63. package/dist/umd/descope-upload-file-index-js.js.LICENSE.txt +5 -0
  64. package/dist/umd/descope-upload-file-index-js.js.map +1 -1
  65. package/dist/umd/descope-user-attribute-index-js.js +338 -1
  66. package/dist/umd/descope-user-attribute-index-js.js.map +1 -1
  67. package/dist/umd/descope-user-auth-method-index-js.js +338 -1
  68. package/dist/umd/descope-user-auth-method-index-js.js.map +1 -1
  69. package/dist/umd/index.js +1 -1
  70. package/dist/umd/index.js.map +1 -1
  71. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
  72. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js.map +1 -1
  73. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
  74. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js.map +1 -1
  75. package/package.json +15 -14
  76. package/src/theme/components/index.js +2 -0
  77. package/dist/umd/189.js.map +0 -1
  78. package/dist/umd/2894.js +0 -339
  79. package/dist/umd/2894.js.map +0 -1
  80. package/dist/umd/3792.js +0 -339
  81. package/dist/umd/3792.js.map +0 -1
  82. package/dist/umd/384.js.map +0 -1
  83. package/dist/umd/513.js +0 -339
  84. package/dist/umd/513.js.map +0 -1
  85. package/dist/umd/6227.js +0 -320
  86. package/dist/umd/6227.js.map +0 -1
  87. package/dist/umd/6649.js +0 -339
  88. package/dist/umd/6649.js.LICENSE.txt +0 -11
  89. package/dist/umd/6649.js.map +0 -1
  90. package/dist/umd/9030.js +0 -339
  91. package/dist/umd/9030.js.LICENSE.txt +0 -11
  92. package/dist/umd/9030.js.map +0 -1
  93. package/dist/umd/9380.js +0 -130
  94. package/dist/umd/9380.js.map +0 -1
  95. /package/dist/umd/{189.js.LICENSE.txt → 6063.js.LICENSE.txt} +0 -0
  96. /package/dist/umd/{6227.js.LICENSE.txt → 6818.js.LICENSE.txt} +0 -0
  97. /package/dist/umd/{9380.js.LICENSE.txt → 8248.js.LICENSE.txt} +0 -0
  98. /package/dist/umd/{2894.js.LICENSE.txt → 8968.js.LICENSE.txt} +0 -0
  99. /package/dist/umd/{3792.js.LICENSE.txt → 9117.js.LICENSE.txt} +0 -0
  100. /package/dist/umd/{384.js.LICENSE.txt → descope-user-attribute-index-js.js.LICENSE.txt} +0 -0
  101. /package/dist/umd/{513.js.LICENSE.txt → descope-user-auth-method-index-js.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/web-components-ui",
3
- "version": "1.100.0",
3
+ "version": "1.101.0",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -76,19 +76,20 @@
76
76
  "lodash.debounce": "4.0.8",
77
77
  "lodash.merge": "4.6.2",
78
78
  "markdown-it": "14.1.0",
79
- "@descope-ui/common": "0.0.14",
80
- "@descope-ui/descope-button": "0.0.12",
81
- "@descope-ui/descope-image": "0.0.5",
82
- "@descope-ui/descope-icon": "0.0.11",
83
- "@descope-ui/descope-text": "0.0.14",
84
- "@descope-ui/descope-avatar": "0.0.14",
85
- "@descope-ui/descope-combo-box": "0.1.3",
86
- "@descope-ui/descope-autocomplete-field": "0.0.16",
87
- "@descope-ui/descope-address-field": "0.0.15",
88
- "@descope-ui/descope-timer": "0.0.10",
89
- "@descope-ui/descope-timer-button": "0.0.12",
90
- "@descope-ui/descope-password-strength": "0.0.7",
91
- "@descope-ui/descope-collapsible-container": "0.0.11"
79
+ "@descope-ui/common": "0.0.15",
80
+ "@descope-ui/descope-button": "0.0.13",
81
+ "@descope-ui/descope-image": "0.0.6",
82
+ "@descope-ui/descope-icon": "0.0.12",
83
+ "@descope-ui/descope-text": "0.0.15",
84
+ "@descope-ui/descope-avatar": "0.0.15",
85
+ "@descope-ui/descope-combo-box": "0.1.4",
86
+ "@descope-ui/descope-autocomplete-field": "0.0.17",
87
+ "@descope-ui/descope-address-field": "0.0.16",
88
+ "@descope-ui/descope-timer": "0.0.11",
89
+ "@descope-ui/descope-timer-button": "0.0.13",
90
+ "@descope-ui/descope-password-strength": "0.0.8",
91
+ "@descope-ui/descope-collapsible-container": "0.0.12",
92
+ "@descope-ui/descope-recovery-codes": "0.0.1"
92
93
  },
93
94
  "overrides": {
94
95
  "@vaadin/avatar": "24.3.4",
@@ -58,6 +58,7 @@ import * as timer from '@descope-ui/descope-timer/theme';
58
58
  import * as timerButton from '@descope-ui/descope-timer-button/theme';
59
59
  import * as passwordStrength from '@descope-ui/descope-password-strength/theme';
60
60
  import * as collapsibleContainer from '@descope-ui/descope-collapsible-container/theme';
61
+ import * as recoveryCodes from '@descope-ui/descope-recovery-codes/theme';
61
62
 
62
63
  const components = {
63
64
  button,
@@ -121,6 +122,7 @@ const components = {
121
122
  timerButton,
122
123
  passwordStrength,
123
124
  collapsibleContainer,
125
+ recoveryCodes,
124
126
  };
125
127
 
126
128
  const theme = Object.keys(components).reduce(
@@ -1 +0,0 @@
1
- {"version":3,"file":"189.js","mappings":";wJAYO,MAAMA,GAAgB,eAC1BC,GACC,cAAiCA,EAC/B,qBAAWC,GACT,MAAO,CAILC,SAAU,CACRC,KAAMC,QACNC,OAAO,EACPC,SAAU,mBACVC,oBAAoB,GAG1B,CAMA,gBAAAC,CAAiBN,GACfO,KAAKC,iBAAiBR,EACxB,CAMA,gBAAAQ,CAAiBR,GACXA,EACFO,KAAKE,aAAa,gBAAiB,QAEnCF,KAAKG,gBAAgB,gBAEzB,CAQA,KAAAC,GACOJ,KAAKP,UACRY,MAAMD,OAEV,sCC7CC,MAAME,GAAgB,eAC1Bf,GACC,cAAiCA,EAE/B,KAAAgB,GACEF,MAAME,QAENP,KAAKQ,iBAAiB,WAAYC,IAChCT,KAAKU,WAAWD,EAAM,IAGxBT,KAAKQ,iBAAiB,SAAUC,IAC9BT,KAAKW,SAASF,EAAM,GAExB,CAUA,UAAAC,CAAWD,GACT,OAAQA,EAAMG,KACZ,IAAK,QACHZ,KAAKa,SAASJ,GACd,MACF,IAAK,SACHT,KAAKc,UAAUL,GAKrB,CASA,QAAAE,CAASI,GAET,CASA,QAAAF,CAASE,GAET,CASA,SAAAD,CAAUC,GAEV,uFCvEN,MA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modules/@vaadin/a11y-base/src/disabled-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/keyboard-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/vaadin-lumo-styles/mixins/required-field.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/component-base/src/slot-child-observe-controller.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/delegate-focus-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/field-base/src/error-controller.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/field-base/src/helper-controller.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/field-base/src/field-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/field-base/src/input-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/tabindex-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/field-base/src/labelled-input-controller.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/field-base/src/validate-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/aria-id-reference.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/field-aria-controller.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/vaadin-lumo-styles/mixins/helper.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/field-base/src/label-controller.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/field-base/src/label-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/component-base/src/delegate-state-mixin.js"],"sourcesContent":["/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';\n\n/**\n * A mixin to provide disabled property for field components.\n *\n * @polymerMixin\n */\nexport const DisabledMixin = dedupingMixin(\n (superclass) =>\n class DisabledMixinClass extends superclass {\n static get properties() {\n return {\n /**\n * If true, the user cannot interact with this element.\n */\n disabled: {\n type: Boolean,\n value: false,\n observer: '_disabledChanged',\n reflectToAttribute: true,\n },\n };\n }\n\n /**\n * @param {boolean} disabled\n * @protected\n */\n _disabledChanged(disabled) {\n this._setAriaDisabled(disabled);\n }\n\n /**\n * @param {boolean} disabled\n * @protected\n */\n _setAriaDisabled(disabled) {\n if (disabled) {\n this.setAttribute('aria-disabled', 'true');\n } else {\n this.removeAttribute('aria-disabled');\n }\n }\n\n /**\n * Overrides the default element `click` method in order to prevent\n * firing the `click` event when the element is disabled.\n * @protected\n * @override\n */\n click() {\n if (!this.disabled) {\n super.click();\n }\n }\n },\n);\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';\n\n/**\n * A mixin that manages keyboard handling.\n * The mixin subscribes to the keyboard events while an actual implementation\n * for the event handlers is left to the client (a component or another mixin).\n *\n * @polymerMixin\n */\nexport const KeyboardMixin = dedupingMixin(\n (superclass) =>\n class KeyboardMixinClass extends superclass {\n /** @protected */\n ready() {\n super.ready();\n\n this.addEventListener('keydown', (event) => {\n this._onKeyDown(event);\n });\n\n this.addEventListener('keyup', (event) => {\n this._onKeyUp(event);\n });\n }\n\n /**\n * A handler for the `keydown` event. By default, it calls\n * separate methods for handling \"Enter\" and \"Escape\" keys.\n * Override the method to implement your own behavior.\n *\n * @param {KeyboardEvent} event\n * @protected\n */\n _onKeyDown(event) {\n switch (event.key) {\n case 'Enter':\n this._onEnter(event);\n break;\n case 'Escape':\n this._onEscape(event);\n break;\n default:\n break;\n }\n }\n\n /**\n * A handler for the `keyup` event. By default, it does nothing.\n * Override the method to implement your own behavior.\n *\n * @param {KeyboardEvent} _event\n * @protected\n */\n _onKeyUp(_event) {\n // To be implemented.\n }\n\n /**\n * A handler for the \"Enter\" key. By default, it does nothing.\n * Override the method to implement your own behavior.\n *\n * @param {KeyboardEvent} _event\n * @protected\n */\n _onEnter(_event) {\n // To be implemented.\n }\n\n /**\n * A handler for the \"Escape\" key. By default, it does nothing.\n * Override the method to implement your own behavior.\n *\n * @param {KeyboardEvent} _event\n * @protected\n */\n _onEscape(_event) {\n // To be implemented.\n }\n },\n);\n","/**\n * @license\n * Copyright (c) 2017 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport '../color.js';\nimport '../spacing.js';\nimport '../style.js';\nimport '../typography.js';\nimport { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';\n\nconst requiredField = css`\n [part='label'] {\n align-self: flex-start;\n color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));\n font-weight: var(--vaadin-input-field-label-font-weight, 500);\n font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n transition: color 0.2s;\n line-height: 1;\n padding-right: 1em;\n padding-bottom: 0.5em;\n /* As a workaround for diacritics being cut off, add a top padding and a\n negative margin to compensate */\n padding-top: 0.25em;\n margin-top: -0.25em;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n position: relative;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n :host([focused]:not([readonly])) [part='label'] {\n color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));\n }\n\n :host(:hover:not([readonly]):not([focused])) [part='label'] {\n color: var(--vaadin-input-field-hovered-label-color, var(--lumo-body-text-color));\n }\n\n /* Touch device adjustment */\n @media (pointer: coarse) {\n :host(:hover:not([readonly]):not([focused])) [part='label'] {\n color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));\n }\n }\n\n :host([has-label])::before {\n margin-top: calc(var(--lumo-font-size-s) * 1.5);\n }\n\n :host([has-label][theme~='small'])::before {\n margin-top: calc(var(--lumo-font-size-xs) * 1.5);\n }\n\n :host([has-label]) {\n padding-top: var(--lumo-space-m);\n }\n\n :host([has-label]) ::slotted([slot='tooltip']) {\n --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);\n }\n\n :host([required]) [part='required-indicator']::after {\n content: var(--lumo-required-field-indicator, '\\\\2022');\n transition: opacity 0.2s;\n color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));\n position: absolute;\n right: 0;\n width: 1em;\n text-align: center;\n }\n\n :host([invalid]) [part='required-indicator']::after {\n color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));\n }\n\n [part='error-message'] {\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));\n line-height: var(--lumo-line-height-xs);\n font-weight: var(--vaadin-input-field-error-font-weight, 400);\n color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));\n will-change: max-height;\n transition: 0.4s max-height;\n max-height: 5em;\n }\n\n :host([has-error-message]) [part='error-message']::before,\n :host([has-error-message]) [part='error-message']::after {\n content: '';\n display: block;\n height: 0.4em;\n }\n\n :host(:not([invalid])) [part='error-message'] {\n max-height: 0;\n overflow: hidden;\n }\n\n /* RTL specific styles */\n\n :host([dir='rtl']) [part='label'] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n :host([dir='rtl']) [part='label'] {\n padding-left: 1em;\n padding-right: 0;\n }\n\n :host([dir='rtl']) [part='required-indicator']::after {\n right: auto;\n left: 0;\n }\n\n :host([dir='rtl']) [part='error-message'] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n`;\n\nregisterStyles('', requiredField, { moduleId: 'lumo-required-field' });\n\nexport { requiredField };\n","/**\n * @license\n * Copyright (c) 2022 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { SlotController } from './slot-controller.js';\n\n/**\n * A controller that observes slotted element mutations, especially ID attribute\n * and the text content, and fires an event to notify host element about those.\n */\nexport class SlotChildObserveController extends SlotController {\n constructor(host, slot, tagName, config = {}) {\n super(host, slot, tagName, { ...config, useUniqueId: true });\n }\n\n /**\n * Override to initialize the newly added custom node.\n *\n * @param {Node} node\n * @protected\n * @override\n */\n initCustomNode(node) {\n this.__updateNodeId(node);\n this.__notifyChange(node);\n }\n\n /**\n * Override to notify the controller host about removal of\n * the custom node, and to apply the default one if needed.\n *\n * @param {Node} _node\n * @protected\n * @override\n */\n teardownNode(_node) {\n const node = this.getSlotChild();\n\n // Custom node is added to the slot\n if (node && node !== this.defaultNode) {\n this.__notifyChange(node);\n } else {\n this.restoreDefaultNode();\n this.updateDefaultNode(this.node);\n }\n }\n\n /**\n * Override method inherited from `SlotMixin`\n * to set ID attribute on the default node.\n *\n * @return {Node}\n * @protected\n * @override\n */\n attachDefaultNode() {\n const node = super.attachDefaultNode();\n\n if (node) {\n this.__updateNodeId(node);\n }\n\n return node;\n }\n\n /**\n * Override to restore default node when a custom one is removed.\n *\n * @protected\n */\n restoreDefaultNode() {\n // To be implemented\n }\n\n /**\n * Override to update default node text on property change.\n *\n * @param {Node} node\n * @protected\n */\n updateDefaultNode(node) {\n this.__notifyChange(node);\n }\n\n /**\n * Setup the mutation observer on the node to update ID and notify host.\n * Node doesn't get observed automatically until this method is called.\n *\n * @param {Node} node\n * @protected\n */\n observeNode(node) {\n // Stop observing the previous node, if any.\n if (this.__nodeObserver) {\n this.__nodeObserver.disconnect();\n }\n\n this.__nodeObserver = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n const target = mutation.target;\n\n // Ensure the mutation target is the currently connected node\n // to ignore async mutations dispatched for removed element.\n const isCurrentNodeMutation = target === this.node;\n\n if (mutation.type === 'attributes') {\n // We use attributeFilter to only observe ID mutation,\n // no need to check for attribute name separately.\n if (isCurrentNodeMutation) {\n this.__updateNodeId(target);\n }\n } else if (isCurrentNodeMutation || target.parentElement === this.node) {\n // Node text content has changed.\n this.__notifyChange(this.node);\n }\n });\n });\n\n // Observe changes to node ID attribute, text content and children.\n this.__nodeObserver.observe(node, {\n attributes: true,\n attributeFilter: ['id'],\n childList: true,\n subtree: true,\n characterData: true,\n });\n }\n\n /**\n * Returns true if a node is an HTML element with children,\n * or is a defined custom element, or has non-empty text.\n *\n * @param {Node} node\n * @return {boolean}\n * @private\n */\n __hasContent(node) {\n if (!node) {\n return false;\n }\n\n return (\n (node.nodeType === Node.ELEMENT_NODE && (customElements.get(node.localName) || node.children.length > 0)) ||\n (node.textContent && node.textContent.trim() !== '')\n );\n }\n\n /**\n * Fire an event to notify the controller host about node changes.\n *\n * @param {Node} node\n * @private\n */\n __notifyChange(node) {\n this.dispatchEvent(\n new CustomEvent('slot-content-changed', {\n detail: { hasContent: this.__hasContent(node), node },\n }),\n );\n }\n\n /**\n * Set default ID on the node in case it is an HTML element.\n *\n * @param {Node} node\n * @private\n */\n __updateNodeId(node) {\n // When in multiple mode, only set ID attribute on the element in default slot.\n const isFirstNode = !this.nodes || node === this.nodes[0];\n if (node.nodeType === Node.ELEMENT_NODE && (!this.multiple || isFirstNode) && !node.id) {\n node.id = this.defaultId;\n }\n }\n}\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';\nimport { FocusMixin } from './focus-mixin.js';\nimport { TabindexMixin } from './tabindex-mixin.js';\n\n/**\n * A mixin to forward focus to an element in the light DOM.\n *\n * @polymerMixin\n * @mixes FocusMixin\n * @mixes TabindexMixin\n */\nexport const DelegateFocusMixin = dedupingMixin(\n (superclass) =>\n class DelegateFocusMixinClass extends FocusMixin(TabindexMixin(superclass)) {\n static get properties() {\n return {\n /**\n * Specify that this control should have input focus when the page loads.\n */\n autofocus: {\n type: Boolean,\n },\n\n /**\n * A reference to the focusable element controlled by the mixin.\n * It can be an input, textarea, button or any element with tabindex > -1.\n *\n * Any component implementing this mixin is expected to provide it\n * by using `this._setFocusElement(input)` Polymer API.\n *\n * Toggling `tabindex` attribute on the host element propagates its value to `focusElement`.\n *\n * @protected\n * @type {!HTMLElement}\n */\n focusElement: {\n type: Object,\n readOnly: true,\n observer: '_focusElementChanged',\n },\n\n /**\n * Override the property from `TabIndexMixin`\n * to ensure the `tabindex` attribute of the focus element\n * will be restored to `0` after re-enabling the element.\n *\n * @protected\n * @override\n */\n _lastTabIndex: {\n value: 0,\n },\n };\n }\n\n constructor() {\n super();\n\n this._boundOnBlur = this._onBlur.bind(this);\n this._boundOnFocus = this._onFocus.bind(this);\n }\n\n /** @protected */\n ready() {\n super.ready();\n\n if (this.autofocus && !this.disabled) {\n requestAnimationFrame(() => {\n this.focus();\n this.setAttribute('focus-ring', '');\n });\n }\n }\n\n /**\n * @protected\n * @override\n */\n focus() {\n if (this.focusElement && !this.disabled) {\n this.focusElement.focus();\n }\n }\n\n /**\n * @protected\n * @override\n */\n blur() {\n if (this.focusElement) {\n this.focusElement.blur();\n }\n }\n\n /**\n * @protected\n * @override\n */\n click() {\n if (this.focusElement && !this.disabled) {\n this.focusElement.click();\n }\n }\n\n /** @protected */\n _focusElementChanged(element, oldElement) {\n if (element) {\n element.disabled = this.disabled;\n this._addFocusListeners(element);\n this.__forwardTabIndex(this.tabindex);\n } else if (oldElement) {\n this._removeFocusListeners(oldElement);\n }\n }\n\n /**\n * @param {HTMLElement} element\n * @protected\n */\n _addFocusListeners(element) {\n element.addEventListener('blur', this._boundOnBlur);\n element.addEventListener('focus', this._boundOnFocus);\n }\n\n /**\n * @param {HTMLElement} element\n * @protected\n */\n _removeFocusListeners(element) {\n element.removeEventListener('blur', this._boundOnBlur);\n element.removeEventListener('focus', this._boundOnFocus);\n }\n\n /**\n * Focus event does not bubble, so we dispatch it manually\n * on the host element to support adding focus listeners\n * when the focusable element is placed in light DOM.\n * @param {FocusEvent} event\n * @protected\n */\n _onFocus(event) {\n event.stopPropagation();\n this.dispatchEvent(new Event('focus'));\n }\n\n /**\n * Blur event does not bubble, so we dispatch it manually\n * on the host element to support adding blur listeners\n * when the focusable element is placed in light DOM.\n * @param {FocusEvent} event\n * @protected\n */\n _onBlur(event) {\n event.stopPropagation();\n this.dispatchEvent(new Event('blur'));\n }\n\n /**\n * @param {FocusEvent} event\n * @return {boolean}\n * @protected\n * @override\n */\n _shouldSetFocus(event) {\n return event.target === this.focusElement;\n }\n\n /**\n * @param {FocusEvent} event\n * @return {boolean}\n * @protected\n * @override\n */\n _shouldRemoveFocus(event) {\n return event.target === this.focusElement;\n }\n\n /**\n * @param {boolean} disabled\n * @param {boolean} oldDisabled\n * @protected\n * @override\n */\n _disabledChanged(disabled, oldDisabled) {\n super._disabledChanged(disabled, oldDisabled);\n\n if (this.focusElement) {\n this.focusElement.disabled = disabled;\n }\n\n if (disabled) {\n this.blur();\n }\n }\n\n /**\n * Override an observer from `TabindexMixin`.\n * Do not call super to remove tabindex attribute\n * from the host after it has been forwarded.\n * @param {string} tabindex\n * @protected\n * @override\n */\n _tabindexChanged(tabindex) {\n this.__forwardTabIndex(tabindex);\n }\n\n /** @private */\n __forwardTabIndex(tabindex) {\n if (tabindex !== undefined && this.focusElement) {\n this.focusElement.tabIndex = tabindex;\n\n // Preserve tabindex=\"-1\" on the host element\n if (tabindex !== -1) {\n this.tabindex = undefined;\n }\n }\n\n if (this.disabled && tabindex) {\n // If tabindex attribute was changed while component was disabled\n if (tabindex !== -1) {\n this._lastTabIndex = tabindex;\n }\n this.tabindex = undefined;\n }\n }\n },\n);\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js';\n\n/**\n * A controller that manages the error message node content.\n */\nexport class ErrorController extends SlotChildObserveController {\n constructor(host) {\n super(host, 'error-message', 'div');\n }\n\n /**\n * Set the error message element text content.\n *\n * @param {string} errorMessage\n */\n setErrorMessage(errorMessage) {\n this.errorMessage = errorMessage;\n\n this.updateDefaultNode(this.node);\n }\n\n /**\n * Set invalid state for detecting whether to show error message.\n *\n * @param {boolean} invalid\n */\n setInvalid(invalid) {\n this.invalid = invalid;\n\n this.updateDefaultNode(this.node);\n }\n\n /**\n * Override method inherited from `SlotController` to not run\n * initializer on the custom slotted node unnecessarily.\n *\n * @param {Node} node\n * @protected\n * @override\n */\n initAddedNode(node) {\n if (node !== this.defaultNode) {\n // There is no need to run `initNode`.\n this.initCustomNode(node);\n }\n }\n\n /**\n * Override to initialize the newly added default error message.\n *\n * @param {Node} errorNode\n * @protected\n * @override\n */\n initNode(errorNode) {\n this.updateDefaultNode(errorNode);\n }\n\n /**\n * Override to initialize the newly added custom error message.\n *\n * @param {Node} errorNode\n * @protected\n * @override\n */\n initCustomNode(errorNode) {\n // Save the custom error message content on the host.\n if (errorNode.textContent && !this.errorMessage) {\n this.errorMessage = errorNode.textContent.trim();\n }\n\n // Notify the host about custom node.\n super.initCustomNode(errorNode);\n }\n\n /**\n * Override method inherited from `SlotChildObserveController`\n * to restore the default error message element.\n *\n * @protected\n * @override\n */\n restoreDefaultNode() {\n this.attachDefaultNode();\n }\n\n /**\n * Override method inherited from `SlotChildObserveController`\n * to update the error message text and hidden state.\n *\n * Note: unlike with other controllers, this method is\n * called for both default and custom error message.\n *\n * @param {Node | undefined} node\n * @protected\n * @override\n */\n updateDefaultNode(errorNode) {\n const { errorMessage, invalid } = this;\n const hasError = Boolean(invalid && errorMessage && errorMessage.trim() !== '');\n\n if (errorNode) {\n errorNode.textContent = hasError ? errorMessage : '';\n errorNode.hidden = !hasError;\n\n // Role alert will make the error message announce immediately\n // as the field becomes invalid\n if (hasError) {\n errorNode.setAttribute('role', 'alert');\n } else {\n errorNode.removeAttribute('role');\n }\n }\n\n // Notify the host after update.\n super.updateDefaultNode(errorNode);\n }\n}\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js';\n\n/**\n * A controller that manages the helper node content.\n */\nexport class HelperController extends SlotChildObserveController {\n constructor(host) {\n // Do not provide tag name, as we create helper lazily.\n super(host, 'helper', null);\n }\n\n /**\n * Set helper text based on corresponding host property.\n *\n * @param {string} helperText\n */\n setHelperText(helperText) {\n this.helperText = helperText;\n\n // Restore the default helper, if needed.\n const helperNode = this.getSlotChild();\n if (!helperNode) {\n this.restoreDefaultNode();\n }\n\n // When default helper is used, update it.\n if (this.node === this.defaultNode) {\n this.updateDefaultNode(this.node);\n }\n }\n\n /**\n * Override method inherited from `SlotChildObserveController`\n * to create the default helper element lazily as needed.\n *\n * @param {Node | undefined} node\n * @protected\n * @override\n */\n restoreDefaultNode() {\n const { helperText } = this;\n\n // No helper yet, create one.\n if (helperText && helperText.trim() !== '') {\n this.tagName = 'div';\n\n const helperNode = this.attachDefaultNode();\n\n // Observe the default node.\n this.observeNode(helperNode);\n }\n }\n\n /**\n * Override method inherited from `SlotChildObserveController`\n * to update the default helper element text content.\n *\n * @param {Node | undefined} node\n * @protected\n * @override\n */\n updateDefaultNode(node) {\n if (node) {\n node.textContent = this.helperText;\n }\n\n // Notify the host after update.\n super.updateDefaultNode(node);\n }\n\n /**\n * Override to observe the newly added custom node.\n *\n * @param {Node} node\n * @protected\n * @override\n */\n initCustomNode(node) {\n // Notify the host about a custom slotted helper.\n super.initCustomNode(node);\n\n this.observeNode(node);\n }\n}\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { FieldAriaController } from '@vaadin/a11y-base/src/field-aria-controller.js';\nimport { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';\nimport { ErrorController } from './error-controller.js';\nimport { HelperController } from './helper-controller.js';\nimport { LabelMixin } from './label-mixin.js';\nimport { ValidateMixin } from './validate-mixin.js';\n\n/**\n * A mixin to provide common field logic: label, error message and helper text.\n *\n * @polymerMixin\n * @mixes ControllerMixin\n * @mixes LabelMixin\n * @mixes ValidateMixin\n */\nexport const FieldMixin = (superclass) =>\n class FieldMixinClass extends ValidateMixin(LabelMixin(ControllerMixin(superclass))) {\n static get properties() {\n return {\n /**\n * A target element to which ARIA attributes are set.\n * @protected\n */\n ariaTarget: {\n type: Object,\n observer: '_ariaTargetChanged',\n },\n\n /**\n * Error to show when the field is invalid.\n *\n * @attr {string} error-message\n */\n errorMessage: {\n type: String,\n observer: '_errorMessageChanged',\n },\n\n /**\n * String used for the helper text.\n * @attr {string} helper-text\n */\n helperText: {\n type: String,\n observer: '_helperTextChanged',\n },\n\n /**\n * String used to label the component to screen reader users.\n * @attr {string} accessible-name\n */\n accessibleName: {\n type: String,\n observer: '_accessibleNameChanged',\n },\n\n /**\n * Id of the element used as label of the component to screen reader users.\n * @attr {string} accessible-name-ref\n */\n accessibleNameRef: {\n type: String,\n observer: '_accessibleNameRefChanged',\n },\n };\n }\n\n static get observers() {\n return ['_invalidChanged(invalid)', '_requiredChanged(required)'];\n }\n\n constructor() {\n super();\n\n this._fieldAriaController = new FieldAriaController(this);\n this._helperController = new HelperController(this);\n this._errorController = new ErrorController(this);\n\n this._errorController.addEventListener('slot-content-changed', (event) => {\n this.toggleAttribute('has-error-message', event.detail.hasContent);\n });\n\n this._labelController.addEventListener('slot-content-changed', (event) => {\n const { hasContent, node } = event.detail;\n this.__labelChanged(hasContent, node);\n });\n\n this._helperController.addEventListener('slot-content-changed', (event) => {\n const { hasContent, node } = event.detail;\n this.toggleAttribute('has-helper', hasContent);\n this.__helperChanged(hasContent, node);\n });\n }\n\n /**\n * @protected\n * @return {HTMLElement}\n */\n get _errorNode() {\n return this._errorController.node;\n }\n\n /**\n * @protected\n * @return {HTMLElement}\n */\n get _helperNode() {\n return this._helperController.node;\n }\n\n /** @protected */\n ready() {\n super.ready();\n\n this.addController(this._fieldAriaController);\n this.addController(this._helperController);\n this.addController(this._errorController);\n }\n\n /** @private */\n __helperChanged(hasHelper, helperNode) {\n if (hasHelper) {\n this._fieldAriaController.setHelperId(helperNode.id);\n } else {\n this._fieldAriaController.setHelperId(null);\n }\n }\n\n /** @protected */\n _accessibleNameChanged(accessibleName) {\n this._fieldAriaController.setAriaLabel(accessibleName);\n }\n\n /** @protected */\n _accessibleNameRefChanged(accessibleNameRef) {\n this._fieldAriaController.setLabelId(accessibleNameRef, true);\n }\n\n /** @private */\n __labelChanged(hasLabel, labelNode) {\n // Label ID should be only added when the label content is present.\n // Otherwise, it may conflict with an `aria-label` attribute possibly added by the user.\n if (hasLabel) {\n this._fieldAriaController.setLabelId(labelNode.id);\n } else {\n this._fieldAriaController.setLabelId(null);\n }\n }\n\n /**\n * @param {string | null | undefined} errorMessage\n * @protected\n */\n _errorMessageChanged(errorMessage) {\n this._errorController.setErrorMessage(errorMessage);\n }\n\n /**\n * @param {string} helperText\n * @protected\n */\n _helperTextChanged(helperText) {\n this._helperController.setHelperText(helperText);\n }\n\n /**\n * @param {HTMLElement | null | undefined} target\n * @protected\n */\n _ariaTargetChanged(target) {\n if (target) {\n this._fieldAriaController.setTarget(target);\n }\n }\n\n /**\n * @param {boolean} required\n * @protected\n */\n _requiredChanged(required) {\n this._fieldAriaController.setRequired(required);\n }\n\n /**\n * @param {boolean} invalid\n * @protected\n */\n _invalidChanged(invalid) {\n this._errorController.setInvalid(invalid);\n\n // This timeout is needed to prevent NVDA from announcing the error message twice:\n // 1. Once adding the `[role=alert]` attribute when updating `has-error-message` (OK).\n // 2. Once linking the error ID with the ARIA target here (unwanted).\n // Related issue: https://github.com/vaadin/web-components/issues/3061.\n setTimeout(() => {\n // Error message ID needs to be dynamically added / removed based on the validity\n // Otherwise assistive technologies would announce the error, even if we hide it.\n if (invalid) {\n const node = this._errorNode;\n this._fieldAriaController.setErrorId(node && node.id);\n } else {\n this._fieldAriaController.setErrorId(null);\n }\n });\n }\n };\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';\n\n/**\n * A mixin to store the reference to an input element\n * and add input and change event listeners to it.\n *\n * @polymerMixin\n */\nexport const InputMixin = dedupingMixin(\n (superclass) =>\n class InputMixinClass extends superclass {\n static get properties() {\n return {\n /**\n * A reference to the input element controlled by the mixin.\n * Any component implementing this mixin is expected to provide it\n * by using `this._setInputElement(input)` Polymer API.\n *\n * A typical case is using `InputController` that does this automatically.\n * However, the input element does not have to always be native <input>:\n * as an example, <vaadin-combo-box-light> accepts other components.\n *\n * @protected\n * @type {!HTMLElement}\n */\n inputElement: {\n type: Object,\n readOnly: true,\n observer: '_inputElementChanged',\n },\n\n /**\n * String used to define input type.\n * @protected\n */\n type: {\n type: String,\n readOnly: true,\n },\n\n /**\n * The value of the field.\n */\n value: {\n type: String,\n value: '',\n observer: '_valueChanged',\n notify: true,\n sync: true,\n },\n\n /**\n * Whether the input element has a non-empty value.\n *\n * @protected\n */\n _hasInputValue: {\n type: Boolean,\n value: false,\n observer: '_hasInputValueChanged',\n },\n };\n }\n\n constructor() {\n super();\n\n this._boundOnInput = this.__onInput.bind(this);\n this._boundOnChange = this._onChange.bind(this);\n }\n\n /**\n * Indicates whether the value is different from the default one.\n * Override if the `value` property has a type other than `string`.\n *\n * @protected\n */\n get _hasValue() {\n return this.value != null && this.value !== '';\n }\n\n /**\n * A property for accessing the input element's value.\n *\n * Override this getter if the property is different from the default `value` one.\n *\n * @protected\n * @return {string}\n */\n get _inputElementValueProperty() {\n return 'value';\n }\n\n /**\n * The input element's value.\n *\n * @protected\n * @return {string}\n */\n get _inputElementValue() {\n return this.inputElement ? this.inputElement[this._inputElementValueProperty] : undefined;\n }\n\n /**\n * The input element's value.\n *\n * @protected\n */\n set _inputElementValue(value) {\n if (this.inputElement) {\n this.inputElement[this._inputElementValueProperty] = value;\n }\n }\n\n /**\n * Clear the value of the field.\n */\n clear() {\n this._hasInputValue = false;\n\n this.value = '';\n\n // Clear the input immediately without waiting for the observer.\n // Otherwise, when using Lit, the old value would be restored.\n this._inputElementValue = '';\n }\n\n /**\n * Add event listeners to the input element instance.\n * Override this method to add custom listeners.\n * @param {!HTMLElement} input\n * @protected\n */\n _addInputListeners(input) {\n input.addEventListener('input', this._boundOnInput);\n input.addEventListener('change', this._boundOnChange);\n }\n\n /**\n * Remove event listeners from the input element instance.\n * @param {!HTMLElement} input\n * @protected\n */\n _removeInputListeners(input) {\n input.removeEventListener('input', this._boundOnInput);\n input.removeEventListener('change', this._boundOnChange);\n }\n\n /**\n * A method to forward the value property set on the field\n * programmatically back to the input element value.\n * Override this method to perform additional checks,\n * for example to skip this in certain conditions.\n * @param {string} value\n * @protected\n */\n _forwardInputValue(value) {\n // Value might be set before an input element is initialized.\n // This case should be handled separately by a component that\n // implements this mixin, for example in `connectedCallback`.\n if (!this.inputElement) {\n return;\n }\n\n this._inputElementValue = value != null ? value : '';\n }\n\n /**\n * @param {HTMLElement | undefined} input\n * @param {HTMLElement | undefined} oldInput\n * @protected\n */\n _inputElementChanged(input, oldInput) {\n if (input) {\n this._addInputListeners(input);\n } else if (oldInput) {\n this._removeInputListeners(oldInput);\n }\n }\n\n /**\n * Observer to notify about the change of private property.\n *\n * @private\n */\n _hasInputValueChanged(hasValue, oldHasValue) {\n if (hasValue || oldHasValue) {\n this.dispatchEvent(new CustomEvent('has-input-value-changed'));\n }\n }\n\n /**\n * An input event listener used to update `_hasInputValue` property.\n * Do not override this method.\n *\n * @param {Event} event\n * @private\n */\n __onInput(event) {\n this._setHasInputValue(event);\n this._onInput(event);\n }\n\n /**\n * An input event listener used to update the field value.\n *\n * @param {Event} event\n * @protected\n */\n _onInput(event) {\n // In the case a custom web component is passed as `inputElement`,\n // the actual native input element, on which the event occurred,\n // can be inside shadow trees.\n const target = event.composedPath()[0];\n // Ignore fake input events e.g. used by clear button.\n this.__userInput = event.isTrusted;\n this.value = target.value;\n this.__userInput = false;\n }\n\n /**\n * A change event listener.\n * Override this method with an actual implementation.\n * @param {Event} _event\n * @protected\n */\n _onChange(_event) {}\n\n /**\n * Toggle the has-value attribute based on the value property.\n *\n * @param {boolean} hasValue\n * @protected\n */\n _toggleHasValue(hasValue) {\n this.toggleAttribute('has-value', hasValue);\n }\n\n /**\n * Observer called when a value property changes.\n * @param {string | undefined} newVal\n * @param {string | undefined} oldVal\n * @protected\n */\n _valueChanged(newVal, oldVal) {\n this._toggleHasValue(this._hasValue);\n\n // Setting initial value to empty string, do nothing.\n if (newVal === '' && oldVal === undefined) {\n return;\n }\n\n // Value is set by the user, no need to sync it back to input.\n if (this.__userInput) {\n return;\n }\n\n // Setting a value programmatically, sync it to input element.\n this._forwardInputValue(newVal);\n }\n\n /**\n * Sets the `_hasInputValue` property based on the `input` event.\n *\n * @param {InputEvent} event\n * @protected\n */\n _setHasInputValue(event) {\n // In the case a custom web component is passed as `inputElement`,\n // the actual native input element, on which the event occurred,\n // can be inside shadow trees.\n const target = event.composedPath()[0];\n this._hasInputValue = target.value.length > 0;\n }\n },\n);\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { DisabledMixin } from './disabled-mixin.js';\n\n/**\n * A mixin to toggle the `tabindex` attribute.\n *\n * The attribute is set to -1 whenever the user disables the element\n * and restored with the last known value once the element is enabled.\n *\n * @polymerMixin\n * @mixes DisabledMixin\n */\nexport const TabindexMixin = (superclass) =>\n class TabindexMixinClass extends DisabledMixin(superclass) {\n static get properties() {\n return {\n /**\n * Indicates whether the element can be focused and where it participates in sequential keyboard navigation.\n *\n * @protected\n */\n tabindex: {\n type: Number,\n reflectToAttribute: true,\n observer: '_tabindexChanged',\n },\n\n /**\n * Stores the last known tabindex since the element has been disabled.\n *\n * @protected\n */\n _lastTabIndex: {\n type: Number,\n },\n };\n }\n\n /**\n * When the element gets disabled, the observer saves the last known tabindex\n * and makes the element not focusable by setting tabindex to -1.\n * As soon as the element gets enabled, the observer restores the last known tabindex\n * so that the element can be focusable again.\n *\n * @protected\n * @override\n */\n _disabledChanged(disabled, oldDisabled) {\n super._disabledChanged(disabled, oldDisabled);\n\n if (disabled) {\n if (this.tabindex !== undefined) {\n this._lastTabIndex = this.tabindex;\n }\n this.tabindex = -1;\n } else if (oldDisabled) {\n this.tabindex = this._lastTabIndex;\n }\n }\n\n /**\n * When the user has changed tabindex while the element is disabled,\n * the observer reverts tabindex to -1 and rather saves the new tabindex value to apply it later.\n * The new value will be applied as soon as the element becomes enabled.\n *\n * @protected\n */\n _tabindexChanged(tabindex) {\n if (this.disabled && tabindex !== -1) {\n this._lastTabIndex = tabindex;\n this.tabindex = -1;\n }\n }\n };\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\n\n/**\n * A controller for linking a `<label>` element with an `<input>` element.\n */\nexport class LabelledInputController {\n constructor(input, labelController) {\n this.input = input;\n this.__preventDuplicateLabelClick = this.__preventDuplicateLabelClick.bind(this);\n\n labelController.addEventListener('slot-content-changed', (event) => {\n this.__initLabel(event.detail.node);\n });\n\n // Initialize the default label element\n this.__initLabel(labelController.node);\n }\n\n /**\n * @param {HTMLElement} label\n * @private\n */\n __initLabel(label) {\n if (label) {\n label.addEventListener('click', this.__preventDuplicateLabelClick);\n\n if (this.input) {\n label.setAttribute('for', this.input.id);\n }\n }\n }\n\n /**\n * The native platform fires an event for both the click on the label, and also\n * the subsequent click on the native input element caused by label click.\n * This results in two click events arriving at the host, but we only want one.\n * This method prevents the duplicate click and ensures the correct isTrusted event\n * with the correct event.target arrives at the host.\n * @private\n */\n __preventDuplicateLabelClick() {\n const inputClickHandler = (e) => {\n e.stopImmediatePropagation();\n this.input.removeEventListener('click', inputClickHandler);\n };\n this.input.addEventListener('click', inputClickHandler);\n }\n}\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';\n\n/**\n * A mixin to provide required state and validation logic.\n *\n * @polymerMixin\n */\nexport const ValidateMixin = dedupingMixin(\n (superclass) =>\n class ValidateMixinClass extends superclass {\n static get properties() {\n return {\n /**\n * Set to true when the field is invalid.\n */\n invalid: {\n type: Boolean,\n reflectToAttribute: true,\n notify: true,\n value: false,\n },\n\n /**\n * Specifies that the user must fill in a value.\n */\n required: {\n type: Boolean,\n reflectToAttribute: true,\n },\n };\n }\n\n /**\n * Validates the field and sets the `invalid` property based on the result.\n *\n * The method fires a `validated` event with the result of the validation.\n *\n * @return {boolean} True if the value is valid.\n */\n validate() {\n const isValid = this.checkValidity();\n this._setInvalid(!isValid);\n this.dispatchEvent(new CustomEvent('validated', { detail: { valid: isValid } }));\n return isValid;\n }\n\n /**\n * Returns true if the field value satisfies all constraints (if any).\n *\n * @return {boolean}\n */\n checkValidity() {\n return !this.required || !!this.value;\n }\n\n /**\n * @param {boolean} invalid\n * @protected\n */\n _setInvalid(invalid) {\n if (this._shouldSetInvalid(invalid)) {\n this.invalid = invalid;\n }\n }\n\n /**\n * Override this method to define whether the given `invalid` state should be set.\n *\n * @param {boolean} _invalid\n * @return {boolean}\n * @protected\n */\n _shouldSetInvalid(_invalid) {\n return true;\n }\n\n /**\n * Fired whenever the field is validated.\n *\n * @event validated\n * @param {Object} detail\n * @param {boolean} detail.valid the result of the validation.\n */\n },\n);\n","/**\n * @license\n * Copyright (c) 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport {\n addValueToAttribute,\n deserializeAttributeValue,\n removeValueFromAttribute,\n serializeAttributeValue,\n} from '@vaadin/component-base/src/dom-utils.js';\n\nconst attributeToTargets = new Map();\n\n/**\n * Gets or creates a Set with the stored values for each element controlled by this helper\n *\n * @param {string} attr the attribute name used as key in the map\n *\n * @returns {WeakMap<HTMLElement, Set<string>} a weak map with the stored values for the elements being controlled by the helper\n */\nfunction getAttrMap(attr) {\n if (!attributeToTargets.has(attr)) {\n attributeToTargets.set(attr, new WeakMap());\n }\n return attributeToTargets.get(attr);\n}\n\n/**\n * Cleans the values set on the attribute to the given element.\n * It also stores the current values in the map, if `storeValue` is `true`.\n *\n * @param {HTMLElement} target\n * @param {string} attr the attribute to be cleared\n * @param {boolean} storeValue whether or not the current value of the attribute should be stored on the map\n * @returns\n */\nfunction cleanAriaIDReference(target, attr) {\n if (!target) {\n return;\n }\n\n target.removeAttribute(attr);\n}\n\n/**\n * Storing values of the accessible attributes in a Set inside of the WeakMap.\n *\n * @param {HTMLElement} target\n * @param {string} attr the attribute to be stored\n */\nfunction storeAriaIDReference(target, attr) {\n if (!target || !attr) {\n return;\n }\n const attributeMap = getAttrMap(attr);\n if (attributeMap.has(target)) {\n return;\n }\n const values = deserializeAttributeValue(target.getAttribute(attr));\n attributeMap.set(target, new Set(values));\n}\n\n/**\n * Restores the generated values of the attribute to the given element.\n *\n * @param {HTMLElement} target\n * @param {string} attr\n */\nexport function restoreGeneratedAriaIDReference(target, attr) {\n if (!target || !attr) {\n return;\n }\n const attributeMap = getAttrMap(attr);\n const values = attributeMap.get(target);\n if (!values || values.size === 0) {\n target.removeAttribute(attr);\n } else {\n addValueToAttribute(target, attr, serializeAttributeValue(values));\n }\n attributeMap.delete(target);\n}\n\n/**\n * Sets a new ID reference for a target element and an ARIA attribute.\n *\n * @typedef {Object} AriaIdReferenceConfig\n * @property {string | null | undefined} newId\n * @property {string | null | undefined} oldId\n * @property {boolean | null | undefined} fromUser\n * @param {HTMLElement} target\n * @param {string} attr\n * @param {AriaIdReferenceConfig | null | undefined} config\n * @param config.newId The new ARIA ID reference to set. If `null`, the attribute is removed,\n * and `config.fromUser` is true, any stored values are restored. If there are stored values\n * and `config.fromUser` is `false`, then `config.newId` is added to the stored values set.\n * @param config.oldId The ARIA ID reference to be removed from the attribute. If there are\n * stored values and `config.fromUser` is `false`, then `config.oldId` is removed from the\n * stored values set.\n * @param config.fromUser Indicates whether the function is called by the user or internally.\n * When `config.fromUser` is called with `true` for the first time, the function will clear\n * and store the attribute value for the given element.\n */\nexport function setAriaIDReference(target, attr, config = { newId: null, oldId: null, fromUser: false }) {\n if (!target || !attr) {\n return;\n }\n\n const { newId, oldId, fromUser } = config;\n\n const attributeMap = getAttrMap(attr);\n const storedValues = attributeMap.get(target);\n\n if (!fromUser && !!storedValues) {\n // If there's any stored values, it means the attribute is being handled by the user\n // Replace the \"oldId\" with \"newId\" on the stored values set and leave\n oldId && storedValues.delete(oldId);\n newId && storedValues.add(newId);\n return;\n }\n\n if (fromUser) {\n if (!storedValues) {\n // If it's called from user and there's no stored values for the attribute,\n // then store the current value\n storeAriaIDReference(target, attr);\n } else if (!newId) {\n // If called from user with newId == null, it means the attribute will no longer\n // be in control of the user and the stored values should be restored\n // Removing the entry on the map for this target\n attributeMap.delete(target);\n }\n\n // If it's from user, then clear the attribute value before setting newId\n cleanAriaIDReference(target, attr);\n }\n\n removeValueFromAttribute(target, attr, oldId);\n\n const attributeValue = !newId ? serializeAttributeValue(storedValues) : newId;\n if (attributeValue) {\n addValueToAttribute(target, attr, attributeValue);\n }\n}\n\n/**\n * Removes the {@link attr | attribute} value of the given {@link target} element.\n * It also stores the current value, if no stored values are present.\n *\n * @param {HTMLElement} target\n * @param {string} attr\n */\nexport function removeAriaIDReference(target, attr) {\n storeAriaIDReference(target, attr);\n cleanAriaIDReference(target, attr);\n}\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport {\n removeAriaIDReference,\n restoreGeneratedAriaIDReference,\n setAriaIDReference,\n} from '@vaadin/a11y-base/src/aria-id-reference.js';\n\n/**\n * A controller for managing ARIA attributes for a field element:\n * either the component itself or slotted `<input>` element.\n */\nexport class FieldAriaController {\n constructor(host) {\n this.host = host;\n this.__required = false;\n }\n\n /**\n * Sets a target element to which ARIA attributes are added.\n *\n * @param {HTMLElement} target\n */\n setTarget(target) {\n this.__target = target;\n this.__setAriaRequiredAttribute(this.__required);\n // We need to make sure that value in __labelId is stored\n this.__setLabelIdToAriaAttribute(this.__labelId, this.__labelId);\n if (this.__labelIdFromUser != null) {\n this.__setLabelIdToAriaAttribute(this.__labelIdFromUser, this.__labelIdFromUser, true);\n }\n this.__setErrorIdToAriaAttribute(this.__errorId);\n this.__setHelperIdToAriaAttribute(this.__helperId);\n this.setAriaLabel(this.__label);\n }\n\n /**\n * Toggles the `aria-required` attribute on the target element\n * if the target is the host component (e.g. a field group).\n * Otherwise, it does nothing.\n *\n * @param {boolean} required\n */\n setRequired(required) {\n this.__setAriaRequiredAttribute(required);\n this.__required = required;\n }\n\n /**\n * Defines the `aria-label` attribute of the target element.\n *\n * To remove the attribute, pass `null` as `label`.\n *\n * @param {string | null | undefined} label\n */\n setAriaLabel(label) {\n this.__setAriaLabelToAttribute(label);\n this.__label = label;\n }\n\n /**\n * Links the target element with a slotted label element\n * via the target's attribute `aria-labelledby`.\n *\n * To unlink the previous slotted label element, pass `null` as `labelId`.\n *\n * @param {string | null} labelId\n */\n setLabelId(labelId, fromUser = false) {\n const oldLabelId = fromUser ? this.__labelIdFromUser : this.__labelId;\n this.__setLabelIdToAriaAttribute(labelId, oldLabelId, fromUser);\n if (fromUser) {\n this.__labelIdFromUser = labelId;\n } else {\n this.__labelId = labelId;\n }\n }\n\n /**\n * Links the target element with a slotted error element via the target's attribute:\n * - `aria-labelledby` if the target is the host component (e.g a field group).\n * - `aria-describedby` otherwise.\n *\n * To unlink the previous slotted error element, pass `null` as `errorId`.\n *\n * @param {string | null} errorId\n */\n setErrorId(errorId) {\n this.__setErrorIdToAriaAttribute(errorId, this.__errorId);\n this.__errorId = errorId;\n }\n\n /**\n * Links the target element with a slotted helper element via the target's attribute:\n * - `aria-labelledby` if the target is the host component (e.g a field group).\n * - `aria-describedby` otherwise.\n *\n * To unlink the previous slotted helper element, pass `null` as `helperId`.\n *\n * @param {string | null} helperId\n */\n setHelperId(helperId) {\n this.__setHelperIdToAriaAttribute(helperId, this.__helperId);\n this.__helperId = helperId;\n }\n\n /**\n * @param {string | null | undefined} label\n * @private\n * */\n __setAriaLabelToAttribute(label) {\n if (!this.__target) {\n return;\n }\n if (label) {\n removeAriaIDReference(this.__target, 'aria-labelledby');\n this.__target.setAttribute('aria-label', label);\n } else if (this.__label) {\n restoreGeneratedAriaIDReference(this.__target, 'aria-labelledby');\n this.__target.removeAttribute('aria-label');\n }\n }\n\n /**\n * @param {string | null | undefined} labelId\n * @param {string | null | undefined} oldLabelId\n * @param {boolean | null | undefined} fromUser\n * @private\n */\n __setLabelIdToAriaAttribute(labelId, oldLabelId, fromUser) {\n setAriaIDReference(this.__target, 'aria-labelledby', { newId: labelId, oldId: oldLabelId, fromUser });\n }\n\n /**\n * @param {string | null | undefined} errorId\n * @param {string | null | undefined} oldErrorId\n * @private\n */\n __setErrorIdToAriaAttribute(errorId, oldErrorId) {\n setAriaIDReference(this.__target, 'aria-describedby', { newId: errorId, oldId: oldErrorId, fromUser: false });\n }\n\n /**\n * @param {string | null | undefined} helperId\n * @param {string | null | undefined} oldHelperId\n * @private\n */\n __setHelperIdToAriaAttribute(helperId, oldHelperId) {\n setAriaIDReference(this.__target, 'aria-describedby', { newId: helperId, oldId: oldHelperId, fromUser: false });\n }\n\n /**\n * @param {boolean} required\n * @private\n */\n __setAriaRequiredAttribute(required) {\n if (!this.__target) {\n return;\n }\n\n if (['input', 'textarea'].includes(this.__target.localName)) {\n // Native <input> or <textarea>, required is enough\n return;\n }\n\n if (required) {\n this.__target.setAttribute('aria-required', 'true');\n } else {\n this.__target.removeAttribute('aria-required');\n }\n }\n}\n","/**\n * @license\n * Copyright (c) 2017 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport '../color.js';\nimport '../sizing.js';\nimport '../style.js';\nimport '../typography.js';\nimport { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';\n\nexport const helper = css`\n :host {\n --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);\n }\n\n :host([has-helper]) [part='helper-text']::before {\n content: '';\n display: block;\n height: var(--_helper-spacing);\n }\n\n [part='helper-text'] {\n display: block;\n color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));\n font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));\n line-height: var(--lumo-line-height-xs);\n font-weight: var(--vaadin-input-field-helper-font-weight, 400);\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n transition: color 0.2s;\n }\n\n :host(:hover:not([readonly])) [part='helper-text'] {\n color: var(--lumo-body-text-color);\n }\n\n :host([disabled]) [part='helper-text'] {\n color: var(--lumo-disabled-text-color);\n -webkit-text-fill-color: var(--lumo-disabled-text-color);\n }\n\n :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {\n display: none;\n }\n\n :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {\n content: '';\n display: block;\n height: var(--_helper-spacing);\n }\n\n :host([has-helper][theme~='helper-above-field']) [part='label'] {\n order: 0;\n padding-bottom: var(--_helper-spacing);\n }\n\n :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {\n order: 1;\n }\n\n :host([has-helper][theme~='helper-above-field']) [part='label'] + * {\n order: 2;\n }\n\n :host([has-helper][theme~='helper-above-field']) [part='error-message'] {\n order: 3;\n }\n`;\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js';\n\n/**\n * A controller to manage the label element.\n */\nexport class LabelController extends SlotChildObserveController {\n constructor(host) {\n super(host, 'label', 'label');\n }\n\n /**\n * Set label based on corresponding host property.\n *\n * @param {string} label\n */\n setLabel(label) {\n this.label = label;\n\n // Restore the default label, if needed.\n const labelNode = this.getSlotChild();\n if (!labelNode) {\n this.restoreDefaultNode();\n }\n\n // When default label is used, update it.\n if (this.node === this.defaultNode) {\n this.updateDefaultNode(this.node);\n }\n }\n\n /**\n * Override method inherited from `SlotChildObserveController`\n * to restore and observe the default label element.\n *\n * @protected\n * @override\n */\n restoreDefaultNode() {\n const { label } = this;\n\n // Restore the default label.\n if (label && label.trim() !== '') {\n const labelNode = this.attachDefaultNode();\n\n // Observe the default label.\n this.observeNode(labelNode);\n }\n }\n\n /**\n * Override method inherited from `SlotChildObserveController`\n * to update the default label element text content.\n *\n * @param {Node | undefined} node\n * @protected\n * @override\n */\n updateDefaultNode(node) {\n if (node) {\n node.textContent = this.label;\n }\n\n // Notify the host after update.\n super.updateDefaultNode(node);\n }\n\n /**\n * Override to observe the newly added custom node.\n *\n * @param {Node} node\n * @protected\n * @override\n */\n initCustomNode(node) {\n // Notify the host about adding a custom node.\n super.initCustomNode(node);\n\n this.observeNode(node);\n }\n}\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';\nimport { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';\nimport { LabelController } from './label-controller.js';\n\n/**\n * A mixin to provide label via corresponding property or named slot.\n *\n * @polymerMixin\n * @mixes ControllerMixin\n */\nexport const LabelMixin = dedupingMixin(\n (superclass) =>\n class LabelMixinClass extends ControllerMixin(superclass) {\n static get properties() {\n return {\n /**\n * The label text for the input node.\n * When no light dom defined via [slot=label], this value will be used.\n */\n label: {\n type: String,\n observer: '_labelChanged',\n },\n };\n }\n\n constructor() {\n super();\n\n this._labelController = new LabelController(this);\n\n this._labelController.addEventListener('slot-content-changed', (event) => {\n this.toggleAttribute('has-label', event.detail.hasContent);\n });\n }\n\n /** @protected */\n get _labelId() {\n const node = this._labelNode;\n return node && node.id;\n }\n\n /** @protected */\n get _labelNode() {\n return this._labelController.node;\n }\n\n /** @protected */\n ready() {\n super.ready();\n\n this.addController(this._labelController);\n }\n\n /** @protected */\n _labelChanged(label) {\n this._labelController.setLabel(label);\n }\n },\n);\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';\n\n/**\n * A mixin to delegate properties and attributes to a target element.\n *\n * @polymerMixin\n */\nexport const DelegateStateMixin = dedupingMixin(\n (superclass) =>\n class DelegateStateMixinClass extends superclass {\n static get properties() {\n return {\n /**\n * A target element to which attributes and properties are delegated.\n * @protected\n */\n stateTarget: {\n type: Object,\n observer: '_stateTargetChanged',\n },\n };\n }\n\n /**\n * An array of the host attributes to delegate to the target element.\n */\n static get delegateAttrs() {\n return [];\n }\n\n /**\n * An array of the host properties to delegate to the target element.\n */\n static get delegateProps() {\n return [];\n }\n\n /** @protected */\n ready() {\n super.ready();\n\n this._createDelegateAttrsObserver();\n this._createDelegatePropsObserver();\n }\n\n /** @protected */\n _stateTargetChanged(target) {\n if (target) {\n this._ensureAttrsDelegated();\n this._ensurePropsDelegated();\n }\n }\n\n /** @protected */\n _createDelegateAttrsObserver() {\n this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(', ')})`);\n }\n\n /** @protected */\n _createDelegatePropsObserver() {\n this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(', ')})`);\n }\n\n /** @protected */\n _ensureAttrsDelegated() {\n this.constructor.delegateAttrs.forEach((name) => {\n this._delegateAttribute(name, this[name]);\n });\n }\n\n /** @protected */\n _ensurePropsDelegated() {\n this.constructor.delegateProps.forEach((name) => {\n this._delegateProperty(name, this[name]);\n });\n }\n\n /** @protected */\n _delegateAttrsChanged(...values) {\n this.constructor.delegateAttrs.forEach((name, index) => {\n this._delegateAttribute(name, values[index]);\n });\n }\n\n /** @protected */\n _delegatePropsChanged(...values) {\n this.constructor.delegateProps.forEach((name, index) => {\n this._delegateProperty(name, values[index]);\n });\n }\n\n /** @protected */\n _delegateAttribute(name, value) {\n if (!this.stateTarget) {\n return;\n }\n\n if (name === 'invalid') {\n this._delegateAttribute('aria-invalid', value ? 'true' : false);\n }\n\n if (typeof value === 'boolean') {\n this.stateTarget.toggleAttribute(name, value);\n } else if (value) {\n this.stateTarget.setAttribute(name, value);\n } else {\n this.stateTarget.removeAttribute(name);\n }\n }\n\n /** @protected */\n _delegateProperty(name, value) {\n if (!this.stateTarget) {\n return;\n }\n\n this.stateTarget[name] = value;\n }\n },\n);\n"],"names":["DisabledMixin","superclass","properties","disabled","type","Boolean","value","observer","reflectToAttribute","_disabledChanged","this","_setAriaDisabled","setAttribute","removeAttribute","click","super","KeyboardMixin","ready","addEventListener","event","_onKeyDown","_onKeyUp","key","_onEnter","_onEscape","_event","requiredField","moduleId","SlotChildObserveController","constructor","host","slot","tagName","config","useUniqueId","initCustomNode","node","__updateNodeId","__notifyChange","teardownNode","_node","getSlotChild","defaultNode","restoreDefaultNode","updateDefaultNode","attachDefaultNode","observeNode","__nodeObserver","disconnect","MutationObserver","mutations","forEach","mutation","target","isCurrentNodeMutation","parentElement","observe","attributes","attributeFilter","childList","subtree","characterData","__hasContent","nodeType","Node","ELEMENT_NODE","customElements","get","localName","children","length","textContent","trim","dispatchEvent","CustomEvent","detail","hasContent","isFirstNode","nodes","multiple","id","defaultId","DelegateFocusMixin","autofocus","focusElement","Object","readOnly","_lastTabIndex","_boundOnBlur","_onBlur","bind","_boundOnFocus","_onFocus","requestAnimationFrame","focus","blur","_focusElementChanged","element","oldElement","_addFocusListeners","__forwardTabIndex","tabindex","_removeFocusListeners","removeEventListener","stopPropagation","Event","_shouldSetFocus","_shouldRemoveFocus","oldDisabled","_tabindexChanged","undefined","tabIndex","ErrorController","setErrorMessage","errorMessage","setInvalid","invalid","initAddedNode","initNode","errorNode","hasError","hidden","HelperController","setHelperText","helperText","helperNode","FieldMixin","ariaTarget","String","accessibleName","accessibleNameRef","observers","_fieldAriaController","_helperController","_errorController","toggleAttribute","_labelController","__labelChanged","__helperChanged","_errorNode","_helperNode","addController","hasHelper","setHelperId","_accessibleNameChanged","setAriaLabel","_accessibleNameRefChanged","setLabelId","hasLabel","labelNode","_errorMessageChanged","_helperTextChanged","_ariaTargetChanged","setTarget","_requiredChanged","required","setRequired","_invalidChanged","setTimeout","setErrorId","InputMixin","inputElement","notify","sync","_hasInputValue","_boundOnInput","__onInput","_boundOnChange","_onChange","_hasValue","_inputElementValueProperty","_inputElementValue","clear","_addInputListeners","input","_removeInputListeners","_forwardInputValue","_inputElementChanged","oldInput","_hasInputValueChanged","hasValue","oldHasValue","_setHasInputValue","_onInput","composedPath","__userInput","isTrusted","_toggleHasValue","_valueChanged","newVal","oldVal","TabindexMixin","Number","LabelledInputController","labelController","__preventDuplicateLabelClick","__initLabel","label","inputClickHandler","e","stopImmediatePropagation","ValidateMixin","validate","isValid","checkValidity","_setInvalid","valid","_shouldSetInvalid","_invalid","attributeToTargets","Map","getAttrMap","attr","has","set","WeakMap","cleanAriaIDReference","storeAriaIDReference","attributeMap","values","getAttribute","Set","setAriaIDReference","newId","oldId","fromUser","storedValues","delete","add","attributeValue","FieldAriaController","__required","__target","__setAriaRequiredAttribute","__setLabelIdToAriaAttribute","__labelId","__labelIdFromUser","__setErrorIdToAriaAttribute","__errorId","__setHelperIdToAriaAttribute","__helperId","__label","__setAriaLabelToAttribute","labelId","oldLabelId","errorId","helperId","size","restoreGeneratedAriaIDReference","oldErrorId","oldHelperId","includes","helper","LabelController","setLabel","LabelMixin","_labelId","_labelNode","_labelChanged","DelegateStateMixin","stateTarget","delegateAttrs","delegateProps","_createDelegateAttrsObserver","_createDelegatePropsObserver","_stateTargetChanged","_ensureAttrsDelegated","_ensurePropsDelegated","_createMethodObserver","join","name","_delegateAttribute","_delegateProperty","_delegateAttrsChanged","index","_delegatePropsChanged"],"sourceRoot":""}
package/dist/umd/2894.js DELETED
@@ -1,339 +0,0 @@
1
- /*! For license information please see 2894.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[513,2894,3792,6649,9030],{4080:(t,e,o)=>{o.d(e,{CI:()=>u,H8:()=>n,gm:()=>s,m0:()=>i,nr:()=>c,un:()=>d});const r=t=>t.test(navigator.userAgent),a=t=>t.test(navigator.platform),i=r(/Android/u),n=r(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),s=r(/Firefox/u),l=a(/^iPad/u)||a(/^Mac/u)&&navigator.maxTouchPoints>1,d=a(/^iPhone/u)||l,c=r(/^((?!chrome|android).)*safari/iu),u=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})()},5745:(t,e,o)=>{o.d(e,{i:()=>r});const r=(0,o(98741).y)((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}))},7888:(t,e,o)=>{o.d(e,{f:()=>r});const r=(0,o(98741).y)((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}}))},21961:(t,e,o)=>{o.d(e,{C:()=>i});var r=o(98741);const a=new WeakMap,i=(0,r.y)((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return a.has(t)||a.set(t,new Set),a.get(t)}(t);this.slotStyles.forEach((o=>{e.has(o)||(function(t,e){const o=document.createElement("style");window.DESCOPE_NONCE&&o.setAttribute("nonce",window.DESCOPE_NONCE),o.textContent=t,e===document?document.head.appendChild(o):e.insertBefore(o,e.firstChild)}(o,t),e.add(o))}))}}))},36176:(t,e,o)=>{o.d(e,{l:()=>a});var r=o(5745);const a=t=>class extends((0,r.i)(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}},83799:(t,e,o)=>{o(93555),o(89389)},89389:(t,e,o)=>{o.d(e,{$:()=>b});var r=o(13256),a=o(55774),i=o(82901),n=o(90676),s=o(81488),l=o(87550);const d=o(51450).AH`
3
- :host {
4
- display: inline-block;
5
- position: relative;
6
- outline: none;
7
- white-space: nowrap;
8
- -webkit-user-select: none;
9
- -moz-user-select: none;
10
- user-select: none;
11
- }
12
-
13
- :host([hidden]) {
14
- display: none !important;
15
- }
16
-
17
- /* Aligns the button with form fields when placed on the same line.
18
- Note, to make it work, the form fields should have the same "::before" pseudo-element. */
19
- .vaadin-button-container::before {
20
- content: '\\2003';
21
- display: inline-block;
22
- width: 0;
23
- max-height: 100%;
24
- }
25
-
26
- .vaadin-button-container {
27
- display: inline-flex;
28
- align-items: center;
29
- justify-content: center;
30
- text-align: center;
31
- width: 100%;
32
- height: 100%;
33
- min-height: inherit;
34
- text-shadow: inherit;
35
- }
36
-
37
- [part='prefix'],
38
- [part='suffix'] {
39
- flex: none;
40
- }
41
-
42
- [part='label'] {
43
- white-space: nowrap;
44
- overflow: hidden;
45
- text-overflow: ellipsis;
46
- }
47
-
48
- @media (forced-colors: active) {
49
- :host {
50
- outline: 1px solid;
51
- outline-offset: -1px;
52
- }
53
-
54
- :host([focused]) {
55
- outline-width: 2px;
56
- }
57
-
58
- :host([disabled]) {
59
- outline-color: GrayText;
60
- }
61
- }
62
- `;var c=o(84467),u=o(53149),h=o(36176);const m=t=>class extends((0,c.e)((0,h.l)((0,u.y)(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};(0,l.SF)("vaadin-button",d,{moduleId:"vaadin-button-styles"});class b extends(m((0,n.q)((0,l.cp)((0,a.w)(r.Pu))))){static get is(){return"vaadin-button"}static get template(){return r.qy`
63
- <div class="vaadin-button-container">
64
- <span part="prefix" aria-hidden="true">
65
- <slot name="prefix"></slot>
66
- </span>
67
- <span part="label">
68
- <slot></slot>
69
- </span>
70
- <span part="suffix" aria-hidden="true">
71
- <slot name="suffix"></slot>
72
- </span>
73
- </div>
74
- <slot name="tooltip"></slot>
75
- `}ready(){super.ready(),this._tooltipController=new s.I(this),this.addController(this._tooltipController)}}(0,i.X)(b)},93555:(t,e,o)=>{o.d(e,{x:()=>a}),o(64511),o(42068),o(9433),o(3241),o(83315);var r=o(87550);const a=r.AH`
76
- :host {
77
- /* Sizing */
78
- --lumo-button-size: var(--lumo-size-m);
79
- min-width: var(--vaadin-button-min-width, calc(var(--_button-size) * 2));
80
- height: var(--_button-size);
81
- padding: var(--vaadin-button-padding, 0 calc(var(--_button-size) / 3 + var(--lumo-border-radius-m) / 2));
82
- margin: var(--vaadin-button-margin, var(--lumo-space-xs) 0);
83
- box-sizing: border-box;
84
- /* Style */
85
- font-family: var(--lumo-font-family);
86
- font-size: var(--vaadin-button-font-size, var(--lumo-font-size-m));
87
- font-weight: var(--vaadin-button-font-weight, 500);
88
- color: var(--_lumo-button-text-color);
89
- background: var(--_lumo-button-background);
90
- border: var(--vaadin-button-border, none);
91
- border-radius: var(--vaadin-button-border-radius, var(--lumo-border-radius-m));
92
- cursor: var(--lumo-clickable-cursor);
93
- -webkit-tap-highlight-color: transparent;
94
- -webkit-font-smoothing: antialiased;
95
- -moz-osx-font-smoothing: grayscale;
96
- flex-shrink: 0;
97
- --_button-size: var(--vaadin-button-height, var(--lumo-button-size));
98
- --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
99
- --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
100
- /* Used by notification */
101
- --_lumo-button-background: var(--vaadin-button-background, var(--lumo-contrast-5pct));
102
- --_lumo-button-text-color: var(--vaadin-button-text-color, var(--lumo-primary-text-color));
103
- --_lumo-button-primary-background: var(--vaadin-button-primary-background, var(--lumo-primary-color));
104
- --_lumo-button-primary-text-color: var(--vaadin-button-primary-text-color, var(--lumo-primary-contrast-color));
105
- }
106
-
107
- /* Set only for the internal parts so we don't affect the host vertical alignment */
108
- [part='label'],
109
- [part='prefix'],
110
- [part='suffix'] {
111
- line-height: var(--lumo-line-height-xs);
112
- }
113
-
114
- [part='label'] {
115
- padding: calc(var(--lumo-button-size) / 6) 0;
116
- }
117
-
118
- :host([theme~='small']) {
119
- font-size: var(--lumo-font-size-s);
120
- --lumo-button-size: var(--lumo-size-s);
121
- }
122
-
123
- :host([theme~='large']) {
124
- font-size: var(--lumo-font-size-l);
125
- --lumo-button-size: var(--lumo-size-l);
126
- }
127
-
128
- /* For interaction states */
129
- :host::before,
130
- :host::after {
131
- content: '';
132
- /* We rely on the host always being relative */
133
- position: absolute;
134
- z-index: 1;
135
- inset: 0;
136
- background-color: currentColor;
137
- border-radius: inherit;
138
- opacity: 0;
139
- pointer-events: none;
140
- }
141
-
142
- /* Hover */
143
-
144
- @media (any-hover: hover) {
145
- :host(:hover)::before {
146
- opacity: 0.02;
147
- }
148
- }
149
-
150
- /* Active */
151
-
152
- :host::after {
153
- transition: opacity 1.4s, transform 0.1s;
154
- filter: blur(8px);
155
- }
156
-
157
- :host([active])::before {
158
- opacity: 0.05;
159
- transition-duration: 0s;
160
- }
161
-
162
- :host([active])::after {
163
- opacity: 0.1;
164
- transition-duration: 0s, 0s;
165
- transform: scale(0);
166
- }
167
-
168
- /* Keyboard focus */
169
-
170
- :host([focus-ring]) {
171
- box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
172
- }
173
-
174
- :host([theme~='primary'][focus-ring]) {
175
- box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
176
- }
177
-
178
- /* Types (primary, tertiary, tertiary-inline */
179
-
180
- :host([theme~='tertiary']),
181
- :host([theme~='tertiary-inline']) {
182
- --_background: transparent !important;
183
- background: var(--vaadin-button-tertiary-background, var(--_background));
184
- min-width: 0;
185
- }
186
-
187
- :host([theme~='tertiary']) {
188
- border: var(--vaadin-button-tertiary-border, none);
189
- color: var(--vaadin-button-tertiary-text-color, var(--lumo-primary-text-color));
190
- font-weight: var(--vaadin-button-tertiary-font-weight, 500);
191
- padding: var(--vaadin-button-tertiary-padding, 0 calc(var(--_button-size) / 6));
192
- }
193
-
194
- :host([theme~='tertiary-inline'])::before {
195
- display: none;
196
- }
197
-
198
- :host([theme~='tertiary-inline']) {
199
- margin: 0;
200
- height: auto;
201
- padding: 0;
202
- line-height: inherit;
203
- font-size: inherit;
204
- }
205
-
206
- :host([theme~='tertiary-inline']) [part='label'] {
207
- padding: 0;
208
- overflow: visible;
209
- line-height: inherit;
210
- }
211
-
212
- :host([theme~='primary']) {
213
- background: var(--_lumo-button-primary-background);
214
- border: var(--vaadin-button-primary-border, none);
215
- color: var(--_lumo-button-primary-text-color);
216
- font-weight: var(--vaadin-button-primary-font-weight, 600);
217
- min-width: calc(var(--lumo-button-size) * 2.5);
218
- }
219
-
220
- :host([theme~='primary'])::before {
221
- background-color: black;
222
- }
223
-
224
- @media (any-hover: hover) {
225
- :host([theme~='primary']:hover)::before {
226
- opacity: 0.05;
227
- }
228
- }
229
-
230
- :host([theme~='primary'][active])::before {
231
- opacity: 0.1;
232
- }
233
-
234
- :host([theme~='primary'][active])::after {
235
- opacity: 0.2;
236
- }
237
-
238
- /* Colors (success, error, contrast) */
239
-
240
- :host([theme~='success']) {
241
- color: var(--lumo-success-text-color);
242
- }
243
-
244
- :host([theme~='success'][theme~='primary']) {
245
- background-color: var(--lumo-success-color);
246
- color: var(--lumo-success-contrast-color);
247
- }
248
-
249
- :host([theme~='error']) {
250
- color: var(--lumo-error-text-color);
251
- }
252
-
253
- :host([theme~='error'][theme~='primary']) {
254
- background-color: var(--lumo-error-color);
255
- color: var(--lumo-error-contrast-color);
256
- }
257
-
258
- :host([theme~='contrast']) {
259
- color: var(--lumo-contrast);
260
- }
261
-
262
- :host([theme~='contrast'][theme~='primary']) {
263
- background-color: var(--lumo-contrast);
264
- color: var(--lumo-base-color);
265
- }
266
-
267
- /* Disabled state. Keep selectors after other color variants. */
268
-
269
- :host([disabled]) {
270
- pointer-events: none;
271
- color: var(--lumo-disabled-text-color);
272
- }
273
-
274
- :host([theme~='primary'][disabled]) {
275
- background-color: var(--lumo-contrast-30pct);
276
- color: var(--lumo-base-color);
277
- }
278
-
279
- :host([theme~='primary'][disabled]) [part] {
280
- opacity: 0.7;
281
- }
282
-
283
- /* Icons */
284
-
285
- [part] ::slotted(vaadin-icon) {
286
- display: inline-block;
287
- width: var(--lumo-icon-size-m);
288
- height: var(--lumo-icon-size-m);
289
- }
290
-
291
- /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
292
- [part] ::slotted(vaadin-icon[icon^='vaadin:']) {
293
- padding: 0.25em;
294
- box-sizing: border-box !important;
295
- }
296
-
297
- [part='prefix'] {
298
- margin-left: -0.25em;
299
- margin-right: 0.25em;
300
- }
301
-
302
- [part='suffix'] {
303
- margin-left: 0.25em;
304
- margin-right: -0.25em;
305
- }
306
-
307
- /* Icon-only */
308
-
309
- :host([theme~='icon']:not([theme~='tertiary-inline'])) {
310
- min-width: var(--lumo-button-size);
311
- padding-left: calc(var(--lumo-button-size) / 4);
312
- padding-right: calc(var(--lumo-button-size) / 4);
313
- }
314
-
315
- :host([theme~='icon']) [part='prefix'],
316
- :host([theme~='icon']) [part='suffix'] {
317
- margin-left: 0;
318
- margin-right: 0;
319
- }
320
-
321
- /* RTL specific styles */
322
-
323
- :host([dir='rtl']) [part='prefix'] {
324
- margin-left: 0.25em;
325
- margin-right: -0.25em;
326
- }
327
-
328
- :host([dir='rtl']) [part='suffix'] {
329
- margin-left: -0.25em;
330
- margin-right: 0.25em;
331
- }
332
-
333
- :host([dir='rtl'][theme~='icon']) [part='prefix'],
334
- :host([dir='rtl'][theme~='icon']) [part='suffix'] {
335
- margin-left: 0;
336
- margin-right: 0;
337
- }
338
- `;(0,r.SF)("vaadin-button",a,{moduleId:"lumo-button"})}}]);
339
- //# sourceMappingURL=2894.js.map