@rededor/cura 1.7.0 → 1.8.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.
- package/dist/assets/assets/icons/iconset-default-list.ts +1 -1
- package/dist/assets/assets/icons/iconset-default-tmp.svg +26 -0
- package/dist/assets/assets/icons/iconset-default.svg +1 -1
- package/dist/cjs/cura-accordion_20.cjs.entry.js +485 -138
- package/dist/cjs/cura-accordion_20.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-alert.cjs.entry.js +9 -12
- package/dist/cjs/cura-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-alert.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-badge-counter.cjs.entry.js +16 -8
- package/dist/cjs/cura-badge-counter.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-badge-counter.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-badge-dot.cjs.entry.js +14 -5
- package/dist/cjs/cura-badge-dot.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-badge-dot.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-badge-pill.cjs.entry.js +23 -7
- package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-badge-pill.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-button-outline.cjs.entry.js +46 -8
- package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-button-outline.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-button-select.cjs.entry.js +7 -12
- package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-button-select.entry.cjs.js.map +1 -0
- package/dist/cjs/{cura-button.definitions-f036371c.js → cura-button.definitions-B3SK8MaV.js} +2 -1
- package/dist/cjs/cura-button.definitions-B3SK8MaV.js.map +1 -0
- package/dist/cjs/cura-calendar.cjs.entry.js +203 -94
- package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-calendar.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-card.cjs.entry.js +34 -6
- package/dist/cjs/cura-card.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-card.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-checkbox.cjs.entry.js +72 -20
- package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-checkbox.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-display.cjs.entry.js +25 -7
- package/dist/cjs/cura-display.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-display.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +5 -6
- package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-dropdown-search-not-found.entry.cjs.js.map +1 -0
- package/dist/cjs/{cura-forms.definitions-c164f1b8.js → cura-forms.definitions-DVLuO67c.js} +2 -1
- package/dist/cjs/cura-forms.definitions-DVLuO67c.js.map +1 -0
- package/dist/cjs/{cura-icon.definitions-5223028b.js → cura-icon.definitions-DT0wF67y.js} +2 -1
- package/dist/cjs/cura-icon.definitions-DT0wF67y.js.map +1 -0
- package/dist/cjs/cura-icons-view.cjs.entry.js +7 -8
- package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-icons-view.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-input-date.cjs.entry.js +32 -15
- package/dist/cjs/cura-input-date.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-input-date.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-loader-bar.cjs.entry.js +4 -5
- package/dist/cjs/cura-loader-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-loader-bar.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-modal.cjs.entry.js +46 -15
- package/dist/cjs/cura-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-modal.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-progress-bar.cura-stepper-item.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-progress-bar_2.cjs.entry.js +25 -15
- package/dist/cjs/cura-progress-bar_2.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-radio.cjs.entry.js +73 -21
- package/dist/cjs/cura-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-radio.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-stepper.cjs.entry.js +23 -6
- package/dist/cjs/cura-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-stepper.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-switch.cjs.entry.js +61 -18
- package/dist/cjs/cura-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-switch.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-tabs-button.cjs.entry.js +6 -9
- package/dist/cjs/cura-tabs-button.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-tabs-button.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-tabs-transparent.cjs.entry.js +6 -9
- package/dist/cjs/cura-tabs-transparent.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-tabs-transparent.entry.cjs.js.map +1 -0
- package/dist/cjs/{cura-tabs.definitions-b8955ad4.js → cura-tabs.definitions-CGqqGE2e.js} +2 -1
- package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js.map +1 -0
- package/dist/cjs/{cura-theme-module-09bb63a4.js → cura-theme-module-CJkmAxBA.js} +94 -9
- package/dist/cjs/cura-theme-module-CJkmAxBA.js.map +1 -0
- package/dist/cjs/cura-toast.cjs.entry.js +8 -11
- package/dist/cjs/cura-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-toast.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-tooltip.cjs.entry.js +9 -11
- package/dist/cjs/cura-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-tooltip.entry.cjs.js.map +1 -0
- package/dist/cjs/cura.cjs.js +9 -10
- package/dist/cjs/cura.cjs.js.map +1 -1
- package/dist/cjs/{index-60783089.js → index-BK9MSAiE.js} +947 -289
- package/dist/cjs/index-BK9MSAiE.js.map +1 -0
- package/dist/cjs/{index-6dc29195.js → index-EyP6Zlkd.js} +2 -1
- package/dist/cjs/index-EyP6Zlkd.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +5 -8
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/assets/icons/iconset-default-list.js +1 -1
- package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
- package/dist/collection/assets/icons/iconset-default-tmp.svg +26 -0
- package/dist/collection/assets/icons/iconset-default.svg +1 -1
- package/dist/collection/assets-raw/icons/default/bike.svg +3 -0
- package/dist/collection/assets-raw/icons/default/cart.svg +3 -0
- package/dist/collection/assets-raw/icons/default/coffee.svg +3 -0
- package/dist/collection/assets-raw/icons/default/id.svg +3 -0
- package/dist/collection/assets-raw/icons/default/image.svg +5 -0
- package/dist/collection/assets-raw/icons/default/store.svg +3 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +57 -18
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +1 -1
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +45 -9
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +1 -1
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +24 -7
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +1 -1
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js +8 -4
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js.map +1 -1
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js +19 -3
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js.map +1 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +40 -9
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +1 -1
- package/dist/collection/components/buttons/cura-button/cura-button.js +86 -17
- package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +86 -17
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +25 -13
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +81 -16
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -1
- package/dist/collection/components/cura-alert/cura-alert.js +19 -11
- package/dist/collection/components/cura-alert/cura-alert.js.map +1 -1
- package/dist/collection/components/cura-avatar/cura-avatar.js +48 -13
- package/dist/collection/components/cura-avatar/cura-avatar.js.map +1 -1
- package/dist/collection/components/cura-calendar/cura-calendar.js +196 -24
- package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -1
- package/dist/collection/components/cura-card/cura-card.js +48 -7
- package/dist/collection/components/cura-card/cura-card.js.map +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +31 -9
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +91 -28
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
- package/dist/collection/components/cura-icon/cura-icon.js +15 -6
- package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +1 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
- package/dist/collection/components/cura-modal/cura-modal.css +0 -1
- package/dist/collection/components/cura-modal/cura-modal.js +65 -17
- package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js +3 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js.map +1 -1
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +21 -8
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js.map +1 -1
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +26 -9
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js.map +1 -1
- package/dist/collection/components/cura-stepper/cura-stepper.js +34 -6
- package/dist/collection/components/cura-stepper/cura-stepper.js.map +1 -1
- package/dist/collection/components/cura-toast/cura-toast.js +24 -12
- package/dist/collection/components/cura-toast/cura-toast.js.map +1 -1
- package/dist/collection/components/cura-tooltip/cura-tooltip.js +25 -12
- package/dist/collection/components/cura-tooltip/cura-tooltip.js.map +1 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +114 -29
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.css +1 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js +74 -16
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +1 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +13 -0
- package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +1 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js +132 -28
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
- package/dist/collection/components/forms/cura-label/cura-label.js +46 -9
- package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.js +109 -28
- package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -1
- package/dist/collection/components/forms/cura-select/cura-select.js +114 -34
- package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -1
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js +13 -6
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +1 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.js +85 -21
- package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +6 -2
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +14 -4
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +1 -1
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +21 -9
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.js.map +1 -1
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +21 -9
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js.map +1 -1
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +9 -3
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js.map +1 -1
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +21 -9
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js.map +1 -1
- package/dist/collection/components/text/cura-display/cura-display.js +39 -8
- package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js +53 -10
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +39 -8
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
- package/dist/components/cura-accordion-item.js +24 -6
- package/dist/components/cura-accordion-item.js.map +1 -1
- package/dist/components/cura-accordion.js +34 -13
- package/dist/components/cura-accordion.js.map +1 -1
- package/dist/components/cura-alert.js +12 -14
- package/dist/components/cura-alert.js.map +1 -1
- package/dist/components/cura-avatar.js +25 -8
- package/dist/components/cura-avatar.js.map +1 -1
- package/dist/components/cura-badge-counter.js +2 -1
- package/dist/components/cura-badge-distance.js +7 -7
- package/dist/components/cura-badge-distance.js.map +1 -1
- package/dist/components/cura-badge-dot.js +14 -4
- package/dist/components/cura-badge-dot.js.map +1 -1
- package/dist/components/cura-badge-pill.js +2 -1
- package/dist/components/cura-button-outline.js +49 -10
- package/dist/components/cura-button-outline.js.map +1 -1
- package/dist/components/cura-button-select.js +10 -14
- package/dist/components/cura-button-select.js.map +1 -1
- package/dist/components/cura-button-transparent.js +2 -1
- package/dist/components/cura-button.js +49 -10
- package/dist/components/cura-button.js.map +1 -1
- package/dist/components/cura-calendar.js +2 -1
- package/dist/components/cura-card.js +34 -5
- package/dist/components/cura-card.js.map +1 -1
- package/dist/components/cura-checkbox.js +75 -22
- package/dist/components/cura-checkbox.js.map +1 -1
- package/dist/components/cura-display.js +25 -6
- package/dist/components/cura-display.js.map +1 -1
- package/dist/components/cura-dropdown-search-category.js +5 -5
- package/dist/components/cura-dropdown-search-category.js.map +1 -1
- package/dist/components/cura-dropdown-search-not-found.js +6 -6
- package/dist/components/cura-dropdown-search-not-found.js.map +1 -1
- package/dist/components/cura-dropdown-search-option.js +22 -10
- package/dist/components/cura-dropdown-search-option.js.map +1 -1
- package/dist/components/cura-dropdown-search.js +66 -27
- package/dist/components/cura-dropdown-search.js.map +1 -1
- package/dist/components/cura-heading.js +2 -1
- package/dist/components/cura-icon.js +2 -1
- package/dist/components/cura-icons-view.js +9 -9
- package/dist/components/cura-icons-view.js.map +1 -1
- package/dist/components/cura-input-date.js +40 -21
- package/dist/components/cura-input-date.js.map +1 -1
- package/dist/components/cura-input-text.js +2 -1
- package/dist/components/cura-label.js +2 -1
- package/dist/components/cura-loader-bar.js +2 -1
- package/dist/components/cura-loader-circle.js +2 -1
- package/dist/components/cura-modal.js +50 -18
- package/dist/components/cura-modal.js.map +1 -1
- package/dist/components/cura-page-template.js +4 -4
- package/dist/components/cura-page-template.js.map +1 -1
- package/dist/components/cura-paragraph.js +2 -1
- package/dist/components/cura-progress-bar.js +2 -1
- package/dist/components/cura-radio.js +75 -22
- package/dist/components/cura-radio.js.map +1 -1
- package/dist/components/cura-select-option.js +2 -1
- package/dist/components/cura-select.js +2 -1
- package/dist/components/cura-stepper-item.js +2 -1
- package/dist/components/cura-stepper.js +30 -12
- package/dist/components/cura-stepper.js.map +1 -1
- package/dist/components/cura-switch.js +62 -18
- package/dist/components/cura-switch.js.map +1 -1
- package/dist/components/cura-tabs-button.js +9 -11
- package/dist/components/cura-tabs-button.js.map +1 -1
- package/dist/components/cura-tabs-group.js +5 -5
- package/dist/components/cura-tabs-group.js.map +1 -1
- package/dist/components/cura-tabs-transparent.js +8 -10
- package/dist/components/cura-tabs-transparent.js.map +1 -1
- package/dist/components/cura-tabs.js +8 -10
- package/dist/components/cura-tabs.js.map +1 -1
- package/dist/components/cura-toast.js +12 -14
- package/dist/components/cura-toast.js.map +1 -1
- package/dist/components/cura-tooltip.js +15 -16
- package/dist/components/cura-tooltip.js.map +1 -1
- package/dist/components/index.js +3 -547
- package/dist/components/index.js.map +1 -1
- package/dist/components/{cura-icon2.js → p-B5aO1chh.js} +5 -6
- package/dist/components/p-B5aO1chh.js.map +1 -0
- package/dist/components/{cura-heading2.js → p-BHEafDKD.js} +34 -7
- package/dist/components/p-BHEafDKD.js.map +1 -0
- package/dist/components/{cura-button-transparent2.js → p-BRDqwZ4N.js} +48 -11
- package/dist/components/p-BRDqwZ4N.js.map +1 -0
- package/dist/{esm/cura-button.definitions-617d3bad.js → components/p-BSI2FkNn.js} +2 -1
- package/dist/components/p-BSI2FkNn.js.map +1 -0
- package/dist/components/{cura-badge-counter2.js → p-C72aF-gL.js} +18 -9
- package/dist/components/p-C72aF-gL.js.map +1 -0
- package/dist/components/{cura-tabs.definitions.js → p-CHcd-uKK.js} +2 -1
- package/dist/components/p-CHcd-uKK.js.map +1 -0
- package/dist/components/p-D1cPOZpG.js +2617 -0
- package/dist/components/p-D1cPOZpG.js.map +1 -0
- package/dist/components/{cura-paragraph2.js → p-DI4g-ZH4.js} +26 -7
- package/dist/components/p-DI4g-ZH4.js.map +1 -0
- package/dist/components/{cura-label2.js → p-DR1RHrEX.js} +30 -7
- package/dist/components/p-DR1RHrEX.js.map +1 -0
- package/dist/components/{cura-stepper-item2.js → p-DaPc6Dxl.js} +23 -14
- package/dist/components/p-DaPc6Dxl.js.map +1 -0
- package/dist/components/{cura-forms.definitions.js → p-Dot54hbB.js} +2 -1
- package/dist/components/p-Dot54hbB.js.map +1 -0
- package/dist/components/{cura-select-option2.js → p-DpIu_Oxz.js} +8 -9
- package/dist/components/p-DpIu_Oxz.js.map +1 -0
- package/dist/components/{cura-loader-circle2.js → p-Dqm2sAwv.js} +13 -7
- package/dist/components/p-Dqm2sAwv.js.map +1 -0
- package/dist/components/{cura-progress-bar2.js → p-FTSrgi0q.js} +11 -8
- package/dist/components/p-FTSrgi0q.js.map +1 -0
- package/dist/components/{cura-loader-bar2.js → p-KIQMkSRF.js} +5 -5
- package/dist/components/p-KIQMkSRF.js.map +1 -0
- package/dist/components/{cura-badge-pill2.js → p-cOEGtL9C.js} +26 -9
- package/dist/components/p-cOEGtL9C.js.map +1 -0
- package/dist/components/{cura-calendar2.js → p-e-P5qR3J.js} +210 -100
- package/dist/components/p-e-P5qR3J.js.map +1 -0
- package/dist/components/{cura-select2.js → p-y6Cly9DJ.js} +87 -31
- package/dist/components/p-y6Cly9DJ.js.map +1 -0
- package/dist/components/{cura-input-text2.js → p-zz_zOPBZ.js} +75 -102
- package/dist/components/p-zz_zOPBZ.js.map +1 -0
- package/dist/cura/cura-alert.entry.esm.js.map +1 -0
- package/dist/cura/cura-badge-counter.entry.esm.js.map +1 -0
- package/dist/cura/cura-badge-dot.entry.esm.js.map +1 -0
- package/dist/cura/cura-badge-pill.entry.esm.js.map +1 -0
- package/dist/cura/cura-button-outline.entry.esm.js.map +1 -0
- package/dist/cura/cura-button-select.entry.esm.js.map +1 -0
- package/dist/cura/{p-12a4ae7e.entry.js.map → cura-calendar.entry.esm.js.map} +1 -1
- package/dist/cura/{p-53d68d72.entry.js.map → cura-card.entry.esm.js.map} +1 -1
- package/dist/cura/cura-checkbox.entry.esm.js.map +1 -0
- package/dist/cura/cura-display.entry.esm.js.map +1 -0
- package/dist/cura/cura-dropdown-search-not-found.entry.esm.js.map +1 -0
- package/dist/cura/cura-icons-view.entry.esm.js.map +1 -0
- package/dist/cura/cura-input-date.entry.esm.js.map +1 -0
- package/dist/cura/cura-loader-bar.entry.esm.js.map +1 -0
- package/dist/cura/{p-1ef21ae9.entry.js.map → cura-modal.entry.esm.js.map} +1 -1
- package/dist/cura/cura-progress-bar.cura-stepper-item.entry.esm.js.map +1 -0
- package/dist/cura/cura-radio.entry.esm.js.map +1 -0
- package/dist/cura/cura-stepper.entry.esm.js.map +1 -0
- package/dist/cura/cura-switch.entry.esm.js.map +1 -0
- package/dist/cura/cura-tabs-button.entry.esm.js.map +1 -0
- package/dist/cura/cura-tabs-transparent.entry.esm.js.map +1 -0
- package/dist/cura/cura-toast.entry.esm.js.map +1 -0
- package/dist/cura/cura-tooltip.entry.esm.js.map +1 -0
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/cura.esm.js.map +1 -1
- package/dist/cura/index.esm.js +1 -1
- package/dist/cura/index.esm.js.map +1 -1
- package/dist/cura/loader.esm.js.map +1 -0
- package/dist/cura/p-077019da.entry.js +2 -0
- package/dist/cura/p-077019da.entry.js.map +1 -0
- package/dist/cura/p-07783235.entry.js +2 -0
- package/dist/cura/p-07783235.entry.js.map +1 -0
- package/dist/cura/p-090e297c.entry.js +2 -0
- package/dist/cura/p-090e297c.entry.js.map +1 -0
- package/dist/cura/p-16c0b52c.entry.js +2 -0
- package/dist/cura/p-16c0b52c.entry.js.map +1 -0
- package/dist/cura/p-2632183e.entry.js +2 -0
- package/dist/cura/p-2632183e.entry.js.map +1 -0
- package/dist/cura/p-32015dcc.entry.js +2 -0
- package/dist/cura/p-32015dcc.entry.js.map +1 -0
- package/dist/cura/p-32f94709.entry.js +2 -0
- package/dist/cura/p-32f94709.entry.js.map +1 -0
- package/dist/cura/p-3d6040e2.entry.js +2 -0
- package/dist/cura/p-3d6040e2.entry.js.map +1 -0
- package/dist/cura/p-4ac578a6.entry.js +2 -0
- package/dist/cura/p-4ac578a6.entry.js.map +1 -0
- package/dist/cura/p-4bde448e.entry.js +2 -0
- package/dist/cura/p-4bde448e.entry.js.map +1 -0
- package/dist/cura/p-6feba852.entry.js +2 -0
- package/dist/cura/p-6feba852.entry.js.map +1 -0
- package/dist/cura/p-7586fd07.entry.js +2 -0
- package/dist/cura/p-7586fd07.entry.js.map +1 -0
- package/dist/cura/p-76cbb798.entry.js +2 -0
- package/dist/cura/p-76cbb798.entry.js.map +1 -0
- package/dist/cura/p-7fd143aa.entry.js +2 -0
- package/dist/cura/p-7fd143aa.entry.js.map +1 -0
- package/dist/cura/p-8c83f259.entry.js +2 -0
- package/dist/cura/p-8c83f259.entry.js.map +1 -0
- package/dist/cura/p-95cd7918.entry.js +2 -0
- package/dist/cura/p-95cd7918.entry.js.map +1 -0
- package/dist/cura/{p-272c784a.js → p-964stZ3D.js} +1 -1
- package/dist/cura/p-964stZ3D.js.map +1 -0
- package/dist/cura/p-9ef5444e.entry.js +2 -0
- package/dist/cura/p-9ef5444e.entry.js.map +1 -0
- package/dist/cura/p-BPKQjAwN.js +2 -0
- package/dist/cura/p-BPKQjAwN.js.map +1 -0
- package/dist/cura/{p-53c18ed4.js → p-BSI2FkNn.js} +1 -1
- package/dist/cura/p-BSI2FkNn.js.map +1 -0
- package/dist/cura/{p-efcb32eb.js → p-CHcd-uKK.js} +1 -1
- package/dist/cura/p-CHcd-uKK.js.map +1 -0
- package/dist/cura/{p-f9b8f665.js → p-Dot54hbB.js} +1 -1
- package/dist/cura/p-Dot54hbB.js.map +1 -0
- package/dist/cura/p-PPMZr_VE.js +3 -0
- package/dist/cura/p-PPMZr_VE.js.map +1 -0
- package/dist/cura/p-c6f240f0.entry.js +2 -0
- package/dist/cura/p-c6f240f0.entry.js.map +1 -0
- package/dist/cura/p-ceb646df.entry.js +2 -0
- package/dist/cura/p-ceb646df.entry.js.map +1 -0
- package/dist/cura/p-d040f8b9.entry.js +2 -0
- package/dist/cura/p-d040f8b9.entry.js.map +1 -0
- package/dist/cura/p-deb0b764.entry.js +2 -0
- package/dist/cura/p-deb0b764.entry.js.map +1 -0
- package/dist/cura/p-df7cb250.entry.js +2 -0
- package/dist/cura/p-df7cb250.entry.js.map +1 -0
- package/dist/cura/p-f9af3a3b.entry.js +2 -0
- package/dist/cura/p-f9af3a3b.entry.js.map +1 -0
- package/dist/cura/p-fc3b57a8.entry.js +2 -0
- package/dist/cura/p-fc3b57a8.entry.js.map +1 -0
- package/dist/cura/{p-48f9289b.js → p-sjLA93YY.js} +1 -1
- package/dist/cura/p-sjLA93YY.js.map +1 -0
- package/dist/esm/cura-accordion_20.entry.js +484 -135
- package/dist/esm/cura-accordion_20.entry.js.map +1 -1
- package/dist/esm/cura-alert.entry.js +9 -10
- package/dist/esm/cura-alert.entry.js.map +1 -1
- package/dist/esm/cura-badge-counter.entry.js +16 -6
- package/dist/esm/cura-badge-counter.entry.js.map +1 -1
- package/dist/esm/cura-badge-dot.entry.js +14 -3
- package/dist/esm/cura-badge-dot.entry.js.map +1 -1
- package/dist/esm/cura-badge-pill.entry.js +23 -5
- package/dist/esm/cura-badge-pill.entry.js.map +1 -1
- package/dist/esm/cura-button-outline.entry.js +46 -6
- package/dist/esm/cura-button-outline.entry.js.map +1 -1
- package/dist/esm/cura-button-select.entry.js +7 -10
- package/dist/esm/cura-button-select.entry.js.map +1 -1
- package/dist/{components/cura-button.definitions.js → esm/cura-button.definitions-BSI2FkNn.js} +2 -1
- package/dist/esm/cura-button.definitions-BSI2FkNn.js.map +1 -0
- package/dist/esm/cura-calendar.entry.js +203 -92
- package/dist/esm/cura-calendar.entry.js.map +1 -1
- package/dist/esm/cura-card.entry.js +34 -4
- package/dist/esm/cura-card.entry.js.map +1 -1
- package/dist/esm/cura-checkbox.entry.js +72 -18
- package/dist/esm/cura-checkbox.entry.js.map +1 -1
- package/dist/esm/cura-display.entry.js +25 -5
- package/dist/esm/cura-display.entry.js.map +1 -1
- package/dist/esm/cura-dropdown-search-not-found.entry.js +5 -4
- package/dist/esm/cura-dropdown-search-not-found.entry.js.map +1 -1
- package/dist/esm/{cura-forms.definitions-2f963167.js → cura-forms.definitions-Dot54hbB.js} +2 -1
- package/dist/esm/cura-forms.definitions-Dot54hbB.js.map +1 -0
- package/dist/esm/{cura-icon.definitions-a892c0e2.js → cura-icon.definitions-sjLA93YY.js} +2 -1
- package/dist/esm/cura-icon.definitions-sjLA93YY.js.map +1 -0
- package/dist/esm/cura-icons-view.entry.js +7 -6
- package/dist/esm/cura-icons-view.entry.js.map +1 -1
- package/dist/esm/cura-input-date.entry.js +32 -13
- package/dist/esm/cura-input-date.entry.js.map +1 -1
- package/dist/esm/cura-loader-bar.entry.js +4 -3
- package/dist/esm/cura-loader-bar.entry.js.map +1 -1
- package/dist/esm/cura-modal.entry.js +46 -13
- package/dist/esm/cura-modal.entry.js.map +1 -1
- package/dist/esm/cura-progress-bar.cura-stepper-item.entry.js.map +1 -0
- package/dist/esm/cura-progress-bar_2.entry.js +25 -13
- package/dist/esm/cura-progress-bar_2.entry.js.map +1 -1
- package/dist/esm/cura-radio.entry.js +73 -19
- package/dist/esm/cura-radio.entry.js.map +1 -1
- package/dist/esm/cura-stepper.entry.js +23 -4
- package/dist/esm/cura-stepper.entry.js.map +1 -1
- package/dist/esm/cura-switch.entry.js +61 -16
- package/dist/esm/cura-switch.entry.js.map +1 -1
- package/dist/esm/cura-tabs-button.entry.js +6 -7
- package/dist/esm/cura-tabs-button.entry.js.map +1 -1
- package/dist/esm/cura-tabs-transparent.entry.js +6 -7
- package/dist/esm/cura-tabs-transparent.entry.js.map +1 -1
- package/dist/esm/{cura-tabs.definitions-a017126e.js → cura-tabs.definitions-CHcd-uKK.js} +2 -1
- package/dist/esm/cura-tabs.definitions-CHcd-uKK.js.map +1 -0
- package/dist/esm/{cura-theme-module-bf286f68.js → cura-theme-module-BPKQjAwN.js} +88 -4
- package/dist/esm/cura-theme-module-BPKQjAwN.js.map +1 -0
- package/dist/esm/cura-toast.entry.js +8 -9
- package/dist/esm/cura-toast.entry.js.map +1 -1
- package/dist/esm/cura-tooltip.entry.js +9 -9
- package/dist/esm/cura-tooltip.entry.js.map +1 -1
- package/dist/esm/cura.js +7 -7
- package/dist/esm/cura.js.map +1 -1
- package/dist/esm/{index-fbee309a.js → index-964stZ3D.js} +2 -1
- package/dist/esm/index-964stZ3D.js.map +1 -0
- package/dist/esm/{index-21683715.js → index-OdKytJIH.js} +947 -270
- package/dist/esm/index-OdKytJIH.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +5 -6
- package/dist/esm/loader.js.map +1 -1
- package/dist/types/components/forms/cura-input-date/cura-input-date.d.ts +4 -0
- package/dist/types/components/forms/cura-input-date/cura-input-date.stories.d.ts +14 -0
- package/dist/types/components.d.ts +718 -0
- package/dist/types/stencil-public-runtime.d.ts +25 -1
- package/package.json +13 -16
- package/dist/cjs/app-globals-6d5b51b6.js +0 -70
- package/dist/cjs/app-globals-6d5b51b6.js.map +0 -1
- package/dist/cjs/cura-button.definitions-f036371c.js.map +0 -1
- package/dist/cjs/cura-forms.definitions-c164f1b8.js.map +0 -1
- package/dist/cjs/cura-icon.definitions-5223028b.js.map +0 -1
- package/dist/cjs/cura-tabs.definitions-b8955ad4.js.map +0 -1
- package/dist/cjs/cura-theme-module-09bb63a4.js.map +0 -1
- package/dist/cjs/index-60783089.js.map +0 -1
- package/dist/cjs/index-6dc29195.js.map +0 -1
- package/dist/cjs/static-44199808.js +0 -90
- package/dist/cjs/static-44199808.js.map +0 -1
- package/dist/components/cura-badge-counter2.js.map +0 -1
- package/dist/components/cura-badge-pill2.js.map +0 -1
- package/dist/components/cura-button-transparent2.js.map +0 -1
- package/dist/components/cura-button.definitions.js.map +0 -1
- package/dist/components/cura-calendar2.js.map +0 -1
- package/dist/components/cura-forms.definitions.js.map +0 -1
- package/dist/components/cura-heading2.js.map +0 -1
- package/dist/components/cura-icon2.js.map +0 -1
- package/dist/components/cura-input-text2.js.map +0 -1
- package/dist/components/cura-label2.js.map +0 -1
- package/dist/components/cura-loader-bar2.js.map +0 -1
- package/dist/components/cura-loader-circle2.js.map +0 -1
- package/dist/components/cura-paragraph2.js.map +0 -1
- package/dist/components/cura-progress-bar2.js.map +0 -1
- package/dist/components/cura-select-option2.js.map +0 -1
- package/dist/components/cura-select2.js.map +0 -1
- package/dist/components/cura-stepper-item2.js.map +0 -1
- package/dist/components/cura-tabs.definitions.js.map +0 -1
- package/dist/cura/p-0aeaf57a.entry.js +0 -2
- package/dist/cura/p-0aeaf57a.entry.js.map +0 -1
- package/dist/cura/p-0b872499.entry.js +0 -2
- package/dist/cura/p-0b872499.entry.js.map +0 -1
- package/dist/cura/p-0ccde0ff.entry.js +0 -2
- package/dist/cura/p-0ccde0ff.entry.js.map +0 -1
- package/dist/cura/p-12a4ae7e.entry.js +0 -2
- package/dist/cura/p-137f003b.entry.js +0 -2
- package/dist/cura/p-137f003b.entry.js.map +0 -1
- package/dist/cura/p-197213c0.entry.js +0 -2
- package/dist/cura/p-197213c0.entry.js.map +0 -1
- package/dist/cura/p-1ef21ae9.entry.js +0 -2
- package/dist/cura/p-202dc01a.entry.js +0 -2
- package/dist/cura/p-202dc01a.entry.js.map +0 -1
- package/dist/cura/p-20b05d8f.entry.js +0 -2
- package/dist/cura/p-20b05d8f.entry.js.map +0 -1
- package/dist/cura/p-272c784a.js.map +0 -1
- package/dist/cura/p-2db4deb3.js +0 -2
- package/dist/cura/p-2db4deb3.js.map +0 -1
- package/dist/cura/p-48f9289b.js.map +0 -1
- package/dist/cura/p-4ee8efca.js +0 -3
- package/dist/cura/p-4ee8efca.js.map +0 -1
- package/dist/cura/p-53c18ed4.js.map +0 -1
- package/dist/cura/p-53d68d72.entry.js +0 -2
- package/dist/cura/p-5a43e745.entry.js +0 -2
- package/dist/cura/p-5a43e745.entry.js.map +0 -1
- package/dist/cura/p-5c6f9593.entry.js +0 -2
- package/dist/cura/p-5c6f9593.entry.js.map +0 -1
- package/dist/cura/p-633c13cd.entry.js +0 -2
- package/dist/cura/p-633c13cd.entry.js.map +0 -1
- package/dist/cura/p-6cbd49dd.js +0 -2
- package/dist/cura/p-6cbd49dd.js.map +0 -1
- package/dist/cura/p-7a68835f.entry.js +0 -2
- package/dist/cura/p-7a68835f.entry.js.map +0 -1
- package/dist/cura/p-7e10b146.entry.js +0 -2
- package/dist/cura/p-7e10b146.entry.js.map +0 -1
- package/dist/cura/p-7e2d1229.entry.js +0 -2
- package/dist/cura/p-7e2d1229.entry.js.map +0 -1
- package/dist/cura/p-8aade007.entry.js +0 -2
- package/dist/cura/p-8aade007.entry.js.map +0 -1
- package/dist/cura/p-9f460031.js +0 -2
- package/dist/cura/p-9f460031.js.map +0 -1
- package/dist/cura/p-ac0c90af.entry.js +0 -2
- package/dist/cura/p-ac0c90af.entry.js.map +0 -1
- package/dist/cura/p-b254bbe4.entry.js +0 -2
- package/dist/cura/p-b254bbe4.entry.js.map +0 -1
- package/dist/cura/p-b4ee956b.entry.js +0 -2
- package/dist/cura/p-b4ee956b.entry.js.map +0 -1
- package/dist/cura/p-b60a6aaa.entry.js +0 -2
- package/dist/cura/p-b60a6aaa.entry.js.map +0 -1
- package/dist/cura/p-b6ff8ac1.entry.js +0 -2
- package/dist/cura/p-b6ff8ac1.entry.js.map +0 -1
- package/dist/cura/p-d8e1e182.entry.js +0 -2
- package/dist/cura/p-d8e1e182.entry.js.map +0 -1
- package/dist/cura/p-d97719bc.entry.js +0 -2
- package/dist/cura/p-d97719bc.entry.js.map +0 -1
- package/dist/cura/p-efcb32eb.js.map +0 -1
- package/dist/cura/p-f9b8f665.js.map +0 -1
- package/dist/esm/app-globals-c2abb41c.js +0 -68
- package/dist/esm/app-globals-c2abb41c.js.map +0 -1
- package/dist/esm/cura-button.definitions-617d3bad.js.map +0 -1
- package/dist/esm/cura-forms.definitions-2f963167.js.map +0 -1
- package/dist/esm/cura-icon.definitions-a892c0e2.js.map +0 -1
- package/dist/esm/cura-tabs.definitions-a017126e.js.map +0 -1
- package/dist/esm/cura-theme-module-bf286f68.js.map +0 -1
- package/dist/esm/index-21683715.js.map +0 -1
- package/dist/esm/index-fbee309a.js.map +0 -1
- package/dist/esm/static-090f0088.js +0 -88
- package/dist/esm/static-090f0088.js.map +0 -1
- package/dist/loader/package.json +0 -11
|
@@ -1,15 +1,44 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host,
|
|
2
|
-
import { l as labelSizes } from './cura-button.definitions-
|
|
3
|
-
import { S as Static } from './
|
|
4
|
-
import { i as iconSizes } from './cura-icon.definitions-
|
|
5
|
-
import { l as labelSizes$1 } from './cura-tabs.definitions-
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-OdKytJIH.js';
|
|
2
|
+
import { l as labelSizes } from './cura-button.definitions-BSI2FkNn.js';
|
|
3
|
+
import { S as Static } from './cura-theme-module-BPKQjAwN.js';
|
|
4
|
+
import { i as iconSizes } from './cura-icon.definitions-sjLA93YY.js';
|
|
5
|
+
import { l as labelSizes$1 } from './cura-tabs.definitions-CHcd-uKK.js';
|
|
6
6
|
|
|
7
7
|
const curaAccordionCss = ":host{display:block;color:var(--font-color);font-size:var(--font-size);font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight-regular)}";
|
|
8
|
-
const CuraAccordionStyle0 = curaAccordionCss;
|
|
9
8
|
|
|
10
9
|
const CuraAccordion = class {
|
|
11
10
|
constructor(hostRef) {
|
|
12
11
|
registerInstance(this, hostRef);
|
|
12
|
+
/**
|
|
13
|
+
* Color scheme base color
|
|
14
|
+
*/
|
|
15
|
+
this.color = 'primary';
|
|
16
|
+
/**
|
|
17
|
+
* Set the color mode to dark or light
|
|
18
|
+
*/
|
|
19
|
+
this.colorMode = 'dark';
|
|
20
|
+
/**
|
|
21
|
+
* Accordion items icons
|
|
22
|
+
*/
|
|
23
|
+
this.iconSize = 20;
|
|
24
|
+
this.labelIcon = '';
|
|
25
|
+
this.openIcon = 'down';
|
|
26
|
+
this.closeIcon = 'up';
|
|
27
|
+
/**
|
|
28
|
+
* Color scheme base color
|
|
29
|
+
* (By default, the icon will use the same color of 'color')
|
|
30
|
+
*/
|
|
31
|
+
this.iconColor = '';
|
|
32
|
+
/**
|
|
33
|
+
* Accordion behavior when item is clicked
|
|
34
|
+
* (The default will close all items except the current one)
|
|
35
|
+
*/
|
|
36
|
+
this.behavior = 'default';
|
|
37
|
+
/**
|
|
38
|
+
* Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...
|
|
39
|
+
* Values: 1 to 6 (3 default).
|
|
40
|
+
*/
|
|
41
|
+
this.level = 3;
|
|
13
42
|
this.mutationObserverCallback = (mutations, _) => {
|
|
14
43
|
var _a;
|
|
15
44
|
for (const mutation of mutations) {
|
|
@@ -31,15 +60,6 @@ const CuraAccordion = class {
|
|
|
31
60
|
}
|
|
32
61
|
};
|
|
33
62
|
this.mutationObserver = new MutationObserver(this.mutationObserverCallback);
|
|
34
|
-
this.color = 'primary';
|
|
35
|
-
this.colorMode = 'dark';
|
|
36
|
-
this.iconSize = 20;
|
|
37
|
-
this.labelIcon = '';
|
|
38
|
-
this.openIcon = 'down';
|
|
39
|
-
this.closeIcon = 'up';
|
|
40
|
-
this.iconColor = '';
|
|
41
|
-
this.behavior = 'default';
|
|
42
|
-
this.level = 3;
|
|
43
63
|
this.styles = {};
|
|
44
64
|
}
|
|
45
65
|
handleChangeColor() {
|
|
@@ -89,21 +109,38 @@ const CuraAccordion = class {
|
|
|
89
109
|
"color": ["handleChangeColor"]
|
|
90
110
|
}; }
|
|
91
111
|
};
|
|
92
|
-
CuraAccordion.style =
|
|
112
|
+
CuraAccordion.style = curaAccordionCss;
|
|
93
113
|
|
|
94
114
|
const curaAccordionItemCss = ":host{display:block}:host .accordion-item{width:100%}:host .accordion-item::after{content:\"\";display:block;border-top:solid 1px var(--neutral-base);width:100%}:host .accordion-item:hover:not(.active)::after{content:\"\";display:block;border-top:solid 1px var(--acc-color-icon-hover);width:100%}:host .accordion-item .label{display:flex;flex-direction:column}:host .accordion-item .label .label-container{display:flex;flex-grow:1;justify-content:space-between;align-items:center;gap:calc(var(--cura-spacing-base) * 3px);padding:calc(var(--cura-spacing-base) * 3px);word-break:break-word;cursor:pointer;font-size:1.14em;font-weight:var(--font-weight-regular)}:host .accordion-item .label .label-container .label-content{display:flex;justify-content:center;align-items:center;gap:calc(var(--cura-spacing-base) * 3px)}:host .accordion-item .label .label-container .label-content cura-icon{--color:var(--acc-color) !important}:host .accordion-item .label .label-container .label-content cura-heading{--color-body:var(--acc-color) !important}:host .accordion-item .label .label-container cura-icon{--color:var(--acc-color-icon) !important;margin-right:4px}:host .accordion-item .label .label-container:hover cura-heading{--color-body:var(--acc-color-hover) !important}:host .accordion-item .label .label-container:hover cura-icon{--color:var(--acc-color-icon-hover) !important}:host .accordion-item .content{font-size:1em;overflow:hidden;max-height:0;transition:max-height 0.25s ease}:host .accordion-item .content .content-wrapper{padding:calc(var(--cura-spacing-base) * 3px)}:host .accordion-item.inverted:hover:not(.active)::after{content:\"\";display:block;border-top:solid 1px var(--acc-color-icon-hover-inverted);width:100%}:host .accordion-item.inverted .label .label-container cura-heading{--color-body:var(--acc-color-inverted) !important}:host .accordion-item.inverted .label .label-container cura-icon{--color:var(--acc-color-icon-inverted) !important}:host .accordion-item.inverted .label .label-container:hover cura-heading{--color-body:var(--acc-color-hover-inverted) !important}:host .accordion-item.inverted .label .label-container:hover cura-icon{--color:var(--acc-color-icon-hover-inverted) !important}:host .accordion-item.active .content{max-height:200vh;overflow-y:auto;transition:max-height 0.5s ease 0.14s}@media (min-width: 769px) and (max-width: 992px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}@media (min-width: 993px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}";
|
|
95
|
-
const CuraAccordionItemStyle0 = curaAccordionItemCss;
|
|
96
115
|
|
|
97
116
|
const CuraAccordionItem = class {
|
|
98
117
|
constructor(hostRef) {
|
|
99
118
|
registerInstance(this, hostRef);
|
|
119
|
+
/**
|
|
120
|
+
* Text label for accordion item
|
|
121
|
+
*/
|
|
100
122
|
this.label = '';
|
|
123
|
+
/** ***Properties below are inherited from the cura-accordion*** */
|
|
124
|
+
/**
|
|
125
|
+
* Accordion items icons
|
|
126
|
+
*/
|
|
101
127
|
this.iconSize = 20;
|
|
102
128
|
this.labelIcon = '';
|
|
103
129
|
this.openIcon = 'down';
|
|
104
130
|
this.closeIcon = 'up';
|
|
131
|
+
/**
|
|
132
|
+
* Color scheme base color
|
|
133
|
+
* (By default, the icon will use the same color of 'color')
|
|
134
|
+
*/
|
|
105
135
|
this.iconColor = '';
|
|
136
|
+
/**
|
|
137
|
+
* Set the color mode to dark or light
|
|
138
|
+
*/
|
|
106
139
|
this.colorMode = 'dark';
|
|
140
|
+
/**
|
|
141
|
+
* Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...
|
|
142
|
+
* Values: 1 to 6 (3 default).
|
|
143
|
+
*/
|
|
107
144
|
this.level = 3;
|
|
108
145
|
this.opened = false;
|
|
109
146
|
this.styles = {};
|
|
@@ -127,7 +164,7 @@ const CuraAccordionItem = class {
|
|
|
127
164
|
return (h(Host, { key: '3dd53ab4a597b1726045ec4d3ed066c6c30050d0', slot: "accordion-item" }, h("div", { key: '209291c7c9b587ac546e8b9e40b7d94a11a2489e', class: this.getClasses(), style: this.styles }, h("div", { key: '9c2de1103c7f30bc9d2cb0a86fc660c98b94be84', class: "label", onClick: e => this.accordionItemClick(e) }, h("div", { key: '052a8be2c00edf3907e49970120d9b65937ab031', class: "label-container" }, h("div", { key: 'da543cdbcb0c0d5f691c3d2fcabfbfc9ec46f506', class: "label-content" }, this.renderIcon(), h("cura-heading", { key: 'f587de080f2c1779ffacf0b557827c24edf5e1ee', size: "small", level: this.level, weight: 'bold', "margin-block": "0", color: "neutral-black" }, this.label)), h("cura-icon", { key: '611b48e32dfd7056a563aab56401feb3c8febee2', name: this.opened ? this.closeIcon : this.openIcon, size: this.iconSize, color: "neutral-black" }))), h("div", { key: 'e1d5e606f3e9415570a2a5c2ba3d96264d430bd0', class: 'content' }, h("div", { key: '62b76ef21093a4d051120e2502936049a186c36a', class: "content-wrapper" }, h("slot", { key: '646b3d0163edf473c1a2e824f251f4db85b2fc18' }))))));
|
|
128
165
|
}
|
|
129
166
|
};
|
|
130
|
-
CuraAccordionItem.style =
|
|
167
|
+
CuraAccordionItem.style = curaAccordionItemCss;
|
|
131
168
|
|
|
132
169
|
const avatarSizes = {
|
|
133
170
|
'80': { border: 2.5 },
|
|
@@ -137,20 +174,36 @@ const avatarSizes = {
|
|
|
137
174
|
};
|
|
138
175
|
|
|
139
176
|
const curaAvatarCss = ":host{display:inline-flex}:host .conteiner{display:flex;box-sizing:border-box;justify-content:center;align-items:center;width:var(--size);height:var(--size);border:var(--border) solid var(--border-color);border-radius:var(--border-radius);background:var(--background-color);overflow:hidden}:host .conteiner.floating{box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}:host .conteiner img{outline:none;object-fit:contain;width:100%;height:100%}";
|
|
140
|
-
const CuraAvatarStyle0 = curaAvatarCss;
|
|
141
177
|
|
|
142
178
|
const CuraAvatar = class {
|
|
143
179
|
constructor(hostRef) {
|
|
144
180
|
registerInstance(this, hostRef);
|
|
181
|
+
/**
|
|
182
|
+
* Size of the avatar. Values: 80, 40, 32, 24.
|
|
183
|
+
* @default 80
|
|
184
|
+
*/
|
|
145
185
|
this.size = '80';
|
|
186
|
+
/**
|
|
187
|
+
* Background color of the avatar.
|
|
188
|
+
* Accepts any color from the theme.
|
|
189
|
+
* @default neutral-purewhite
|
|
190
|
+
*/
|
|
146
191
|
this.backgroundColor = 'neutral-purewhite';
|
|
147
|
-
|
|
192
|
+
/**
|
|
193
|
+
* Border radius of the avatar.
|
|
194
|
+
* @default 50%
|
|
195
|
+
*/
|
|
148
196
|
this.borderRadius = '50%';
|
|
197
|
+
/**
|
|
198
|
+
* Show border of the avatar.
|
|
199
|
+
* @default false
|
|
200
|
+
*/
|
|
149
201
|
this.border = false;
|
|
202
|
+
/**
|
|
203
|
+
* Type of the avatar.
|
|
204
|
+
* @default default
|
|
205
|
+
*/
|
|
150
206
|
this.type = 'default';
|
|
151
|
-
this.imageSrc = undefined;
|
|
152
|
-
this.imageSrcDefault = undefined;
|
|
153
|
-
this.floating = undefined;
|
|
154
207
|
this.styles = {};
|
|
155
208
|
}
|
|
156
209
|
sizeHandler(size) {
|
|
@@ -186,20 +239,19 @@ const CuraAvatar = class {
|
|
|
186
239
|
"size": ["sizeHandler"]
|
|
187
240
|
}; }
|
|
188
241
|
};
|
|
189
|
-
CuraAvatar.style =
|
|
242
|
+
CuraAvatar.style = curaAvatarCss;
|
|
190
243
|
|
|
191
244
|
const curaBadgeDistanceCss = ":host .container{display:flex;flex-direction:column;justify-content:center;align-items:center;width:calc(var(--cura-spacing-base) * 10px);height:calc(var(--cura-spacing-base) * 10px);border-radius:calc(var(--cura-spacing-base) * 1px);background:var(--neutral-pale)}";
|
|
192
|
-
const CuraBadgeDistanceStyle0 = curaBadgeDistanceCss;
|
|
193
245
|
|
|
194
246
|
const CuraDistance = class {
|
|
195
247
|
constructor(hostRef) {
|
|
196
248
|
registerInstance(this, hostRef);
|
|
197
|
-
this.isThousandRounded = false;
|
|
198
|
-
this.theme = window.CuraAPI.theme;
|
|
199
249
|
this.distance = 0;
|
|
200
250
|
this.label = 'km';
|
|
201
251
|
this.styles = {};
|
|
202
252
|
this.displayDistance = 0;
|
|
253
|
+
this.isThousandRounded = false;
|
|
254
|
+
this.theme = window.CuraAPI.theme;
|
|
203
255
|
}
|
|
204
256
|
formatDistance() {
|
|
205
257
|
const roundedDistance = this.distance % 1 !== 0 ? parseFloat(this.distance.toFixed(1)) : this.distance;
|
|
@@ -223,10 +275,9 @@ const CuraDistance = class {
|
|
|
223
275
|
"distance": ["formatDistance"]
|
|
224
276
|
}; }
|
|
225
277
|
};
|
|
226
|
-
CuraDistance.style =
|
|
278
|
+
CuraDistance.style = curaBadgeDistanceCss;
|
|
227
279
|
|
|
228
280
|
const curaButtonCss = ":host{--border-radius:4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:var(--color-base-neutral-purewhite);box-sizing:border-box;border:none}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button::before,:host a::before{content:\"\";width:100%;height:100%;position:absolute;left:0px;top:0px;box-sizing:border-box;border:2px solid transparent;border-radius:var(--border-radius)}:host button:not(.disabled):not(.isLoading)::before,:host a:not(.disabled):not(.isLoading)::before{border:2px solid var(--color-base-color-light)}:host button:not(.disabled):hover,:host a:not(.disabled):hover{background:var(--color-base-color-light);box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}:host button:not(.disabled):not(.isLoading):hover::before,:host a:not(.disabled):not(.isLoading):hover::before{border-color:var(--color-dark-color-base)}:host button:not(.isLoading):not(.disabled):active,:host a:not(.isLoading):not(.disabled):active{background-color:var(--color-dark-color-light)}:host button:not(.isLoading):not(.disabled):active::before,:host a:not(.isLoading):not(.disabled):active::before{border-color:var(--color-dark-color-light)}:host button:hover,:host a:hover{box-shadow:0 4px 8px 0 rgba(38, 38, 38, 0.16)}:host button.medium:hover,:host a.medium:hover{box-shadow:0 3px 6px 0 rgba(38, 38, 38, 0.16)}:host button.small:hover,:host a.small:hover{box-shadow:0 2px 5px 0 rgba(38, 38, 38, 0.16)}:host button:active,:host button.disabled:hover,:host button.isLoading:hover,:host a:active,:host a.disabled:hover,:host a.isLoading:hover{box-shadow:none !important}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px);min-height:calc(var(--cura-spacing-base) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px);min-height:calc(var(--cura-spacing-base) * 10px)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px);min-height:calc(var(--cura-spacing-base) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, \"left\")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed;background-color:var(--neutral-pale-neutral-black)}:host button.icon-only,:host a.icon-only{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--cura-spacing-base) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--cura-spacing-base) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}";
|
|
229
|
-
const CuraButtonStyle0 = curaButtonCss;
|
|
230
281
|
|
|
231
282
|
const CuraButton = class {
|
|
232
283
|
constructor(hostRef) {
|
|
@@ -238,20 +289,59 @@ const CuraButton = class {
|
|
|
238
289
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
239
290
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
240
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* Button type: button (default) | submit | reset
|
|
294
|
+
*/
|
|
241
295
|
this.type = 'button';
|
|
296
|
+
/**
|
|
297
|
+
* Button size: small | medium | large (default)
|
|
298
|
+
*/
|
|
242
299
|
this.size = 'large';
|
|
300
|
+
/**
|
|
301
|
+
* Disabled state. Boolean.
|
|
302
|
+
*/
|
|
243
303
|
this.disabled = false;
|
|
304
|
+
/**
|
|
305
|
+
* Loading state. Boolean.
|
|
306
|
+
*/
|
|
244
307
|
this.isLoading = false;
|
|
245
|
-
|
|
308
|
+
/**
|
|
309
|
+
* Custom iconset if needed.
|
|
310
|
+
*/
|
|
246
311
|
this.iconset = 'default';
|
|
312
|
+
/**
|
|
313
|
+
* Icon position: left (default) | right.
|
|
314
|
+
*/
|
|
247
315
|
this.iconPosition = 'left';
|
|
316
|
+
/**
|
|
317
|
+
* Set button to FAB/icon only.
|
|
318
|
+
*/
|
|
248
319
|
this.iconOnly = false;
|
|
249
|
-
|
|
320
|
+
/**
|
|
321
|
+
* Set target if link.
|
|
322
|
+
*/
|
|
250
323
|
this.target = "_self";
|
|
324
|
+
/**
|
|
325
|
+
* Color base from color scheme. Default: accent.
|
|
326
|
+
*/
|
|
251
327
|
this.color = 'accent';
|
|
328
|
+
/**
|
|
329
|
+
* Set the background color to dark or light.
|
|
330
|
+
*/
|
|
252
331
|
this.background = 'light';
|
|
332
|
+
/**
|
|
333
|
+
* Set the font color to dark or light.
|
|
334
|
+
*/
|
|
253
335
|
this.fontColor = 'dark';
|
|
336
|
+
/**
|
|
337
|
+
* Set text aligment for the button label.
|
|
338
|
+
* Vales: left (default) | center | right.
|
|
339
|
+
*/
|
|
254
340
|
this.textAlign = 'left';
|
|
341
|
+
/**
|
|
342
|
+
* Justify icons and label inside the button.
|
|
343
|
+
* Vales: false (default) | true.
|
|
344
|
+
*/
|
|
255
345
|
this.justify = false;
|
|
256
346
|
this.styles = {};
|
|
257
347
|
this.hovered = false;
|
|
@@ -332,10 +422,9 @@ const CuraButton = class {
|
|
|
332
422
|
"color": ["setColors"]
|
|
333
423
|
}; }
|
|
334
424
|
};
|
|
335
|
-
CuraButton.style =
|
|
425
|
+
CuraButton.style = curaButtonCss;
|
|
336
426
|
|
|
337
427
|
const curaButtonTransparentCss = ":host{--border-radius:4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;border:none}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px);min-height:calc(var(--cura-spacing-base) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px);min-height:calc(var(--cura-spacing-base) * 10px)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px);min-height:calc(var(--cura-spacing-base) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, \"left\")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed}:host button.icon-only,:host a.icon-only{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--cura-spacing-base) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--cura-spacing-base) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}";
|
|
338
|
-
const CuraButtonTransparentStyle0 = curaButtonTransparentCss;
|
|
339
428
|
|
|
340
429
|
const CuraButtonTransparent = class {
|
|
341
430
|
constructor(hostRef) {
|
|
@@ -347,19 +436,56 @@ const CuraButtonTransparent = class {
|
|
|
347
436
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
348
437
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
349
438
|
}
|
|
439
|
+
/**
|
|
440
|
+
* Button type: button (default) | submit | reset
|
|
441
|
+
*/
|
|
350
442
|
this.type = 'button';
|
|
443
|
+
/**
|
|
444
|
+
* Button size: small | medium | large (default)
|
|
445
|
+
*/
|
|
351
446
|
this.size = 'large';
|
|
447
|
+
/**
|
|
448
|
+
* Disabled state. Boolean.
|
|
449
|
+
*/
|
|
352
450
|
this.disabled = false;
|
|
451
|
+
/**
|
|
452
|
+
* Loading state. Boolean.
|
|
453
|
+
*/
|
|
353
454
|
this.isLoading = false;
|
|
354
|
-
|
|
455
|
+
/**
|
|
456
|
+
* Custom iconset if needed.
|
|
457
|
+
*/
|
|
355
458
|
this.iconset = 'default';
|
|
459
|
+
/**
|
|
460
|
+
* Icon position: left (default) | right.
|
|
461
|
+
*/
|
|
356
462
|
this.iconPosition = 'left';
|
|
463
|
+
/**
|
|
464
|
+
* Set button to FAB/icon only.
|
|
465
|
+
*/
|
|
357
466
|
this.iconOnly = false;
|
|
358
|
-
|
|
467
|
+
/**
|
|
468
|
+
* Set target if link.
|
|
469
|
+
*/
|
|
359
470
|
this.target = "_self";
|
|
471
|
+
/**
|
|
472
|
+
* Color base from color scheme. Default: accent.
|
|
473
|
+
*/
|
|
360
474
|
this.color = 'primary';
|
|
475
|
+
/**
|
|
476
|
+
* Set the font color to dark or light.
|
|
477
|
+
* Default: dark.
|
|
478
|
+
*/
|
|
361
479
|
this.fontColor = 'dark';
|
|
480
|
+
/**
|
|
481
|
+
* Set text aligment for the button label.
|
|
482
|
+
* Vales: left (default) | center | right.
|
|
483
|
+
*/
|
|
362
484
|
this.textAlign = 'left';
|
|
485
|
+
/**
|
|
486
|
+
* Justify icons and label inside the button.
|
|
487
|
+
* Vales: false (default) | true.
|
|
488
|
+
*/
|
|
363
489
|
this.justify = false;
|
|
364
490
|
this.hovered = false;
|
|
365
491
|
this.styles = {};
|
|
@@ -429,7 +555,7 @@ const CuraButtonTransparent = class {
|
|
|
429
555
|
"color": ["getSymbolColor"]
|
|
430
556
|
}; }
|
|
431
557
|
};
|
|
432
|
-
CuraButtonTransparent.style =
|
|
558
|
+
CuraButtonTransparent.style = curaButtonTransparentCss;
|
|
433
559
|
|
|
434
560
|
function checkMobile() {
|
|
435
561
|
return (window === null || window === void 0 ? void 0 : window.innerWidth) < Static.breakpoints.medium.min;
|
|
@@ -523,17 +649,71 @@ class FixedElementScrollBehavior {
|
|
|
523
649
|
}
|
|
524
650
|
|
|
525
651
|
const curaDropdownSearchCss = ":host{display:block;box-sizing:border-box;position:relative}:host .component-controls{display:flex;align-items:center;justify-content:center;gap:calc(var(--cura-spacing-base) * 1px)}:host .component-controls #button-back{padding:0 0 0 calc(var(--cura-spacing-base) * 3px);width:max-content}:host .component-container{box-sizing:border-box;width:100%;position:relative;display:grid;grid-template-columns:1fr;grid-template-rows:min-content 1fr}:host .component-container.zoom{position:fixed;top:0;left:0;width:100vw;background:var(--purewhite);height:var(--height);z-index:9999;overscroll-behavior:contain}:host .component-container.zoom .component-controls{border-bottom:2px solid var(--primary);padding:calc(var(--cura-spacing-base) * 3px) 0}:host .component-container.zoom.error .component-controls{border-bottom:2px solid var(--error-dark);background-color:var(--error-lighter)}:host .component-container .dropdown-container{box-sizing:border-box;width:100%;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;padding:calc(var(--cura-spacing-base) * 3px);overscroll-behavior:contain}:host .component-container:not(.zoom) .dropdown-container{box-shadow:0px 4px 8px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16));position:absolute;bottom:0;left:0;transform:translateY(100%);max-height:var(--max-height);background-color:var(--purewhite);border-radius:0px 0px calc(var(--cura-spacing-base) * 1px) calc(var(--cura-spacing-base) * 1px);border-bottom:2px solid var(--neutral-light);border-left:2px solid var(--neutral-light);border-right:2px solid var(--neutral-light);display:none;z-index:9997}:host .component-container:not(.zoom).dropdown-visible ::part(cura-input-field){border-radius:4px 4px 0px 0px}:host .component-container:not(.zoom).dropdown-visible ::part(cura-input-text-helper){height:0px;overflow:hidden;margin-top:0px}:host .component-container:not(.zoom).dropdown-visible .dropdown-container{display:block}";
|
|
526
|
-
const CuraDropdownSearchStyle0 = curaDropdownSearchCss;
|
|
527
652
|
|
|
528
653
|
const CuraDropdownSearch = class {
|
|
529
654
|
constructor(hostRef) {
|
|
530
655
|
registerInstance(this, hostRef);
|
|
531
|
-
this.termchange = createEvent(this, "termchange"
|
|
532
|
-
this.optionselect = createEvent(this, "optionselect"
|
|
656
|
+
this.termchange = createEvent(this, "termchange");
|
|
657
|
+
this.optionselect = createEvent(this, "optionselect");
|
|
658
|
+
/**
|
|
659
|
+
* Size of the dropdown search component
|
|
660
|
+
* Values: 'small', 'medium' or 'large' (default).
|
|
661
|
+
*/
|
|
662
|
+
this.size = 'large';
|
|
663
|
+
/**
|
|
664
|
+
* Define component status.
|
|
665
|
+
* Values: 'error' or 'default'.
|
|
666
|
+
*/
|
|
667
|
+
this.status = 'default';
|
|
668
|
+
/**
|
|
669
|
+
* Disabled state. Default: false.
|
|
670
|
+
*/
|
|
671
|
+
this.disabled = false;
|
|
672
|
+
/**
|
|
673
|
+
* Field is required. Default: false.
|
|
674
|
+
*/
|
|
675
|
+
this.required = false;
|
|
676
|
+
/**
|
|
677
|
+
* The placeholder text.
|
|
678
|
+
*/
|
|
679
|
+
this.placeholder = '';
|
|
680
|
+
/**
|
|
681
|
+
* The label.
|
|
682
|
+
*/
|
|
683
|
+
this.label = '';
|
|
684
|
+
/**
|
|
685
|
+
* Custom icon name. Default: search.
|
|
686
|
+
*/
|
|
687
|
+
this.icon = 'search';
|
|
688
|
+
/**
|
|
689
|
+
* CSS max-height property for dropdown item.
|
|
690
|
+
* Can also be used by css property --max-height.
|
|
691
|
+
* Default: 400px
|
|
692
|
+
*/
|
|
693
|
+
this.maxheight = '400px';
|
|
694
|
+
/**
|
|
695
|
+
* Readonly property value.
|
|
696
|
+
* Represents the term on the search input field.
|
|
697
|
+
*/
|
|
698
|
+
this.value = '';
|
|
699
|
+
/**
|
|
700
|
+
* Delay in milliseconds to dispatch search events.
|
|
701
|
+
* Default: 400
|
|
702
|
+
*/
|
|
703
|
+
this.searchdelay = 400;
|
|
704
|
+
/**
|
|
705
|
+
* Min chars to dispatch search events.
|
|
706
|
+
* Default: 3
|
|
707
|
+
*/
|
|
708
|
+
this.searchminchars = 3;
|
|
709
|
+
this.styles = {};
|
|
710
|
+
this.zoomState = false;
|
|
711
|
+
this.isOnFocus = false;
|
|
533
712
|
this.resizeTimeoutMs = 66;
|
|
534
713
|
this.focusTimeoutMs = 500;
|
|
535
714
|
this.blurTimeoutMs = 300;
|
|
536
715
|
this.highlightedIndex = -1;
|
|
716
|
+
this.dropdownItems = [];
|
|
537
717
|
this.dropdownSelectableItems = [];
|
|
538
718
|
this.handleSlotChange = () => { this.getSlotElements(); };
|
|
539
719
|
this.handleWindowResize = () => {
|
|
@@ -613,22 +793,6 @@ const CuraDropdownSearch = class {
|
|
|
613
793
|
ev.preventDefault();
|
|
614
794
|
ev.stopPropagation();
|
|
615
795
|
};
|
|
616
|
-
this.name = undefined;
|
|
617
|
-
this.size = 'large';
|
|
618
|
-
this.status = 'default';
|
|
619
|
-
this.disabled = false;
|
|
620
|
-
this.required = false;
|
|
621
|
-
this.placeholder = '';
|
|
622
|
-
this.label = '';
|
|
623
|
-
this.icon = 'search';
|
|
624
|
-
this.maxheight = '400px';
|
|
625
|
-
this.value = '';
|
|
626
|
-
this.searchdelay = 400;
|
|
627
|
-
this.searchminchars = 3;
|
|
628
|
-
this.styles = {};
|
|
629
|
-
this.zoomState = false;
|
|
630
|
-
this.isOnFocus = false;
|
|
631
|
-
this.dropdownItems = [];
|
|
632
796
|
}
|
|
633
797
|
/**
|
|
634
798
|
* Set focus to input field.
|
|
@@ -801,10 +965,9 @@ const CuraDropdownSearch = class {
|
|
|
801
965
|
}
|
|
802
966
|
get host() { return getElement(this); }
|
|
803
967
|
};
|
|
804
|
-
CuraDropdownSearch.style =
|
|
968
|
+
CuraDropdownSearch.style = curaDropdownSearchCss;
|
|
805
969
|
|
|
806
970
|
const curaDropdownSearchCategoryCss = ":host{display:block;box-sizing:border-box}:host .component-container{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;min-height:calc(var(--cura-spacing-base) * 10px);padding:0 calc(var(--cura-spacing-base) * 1px);border-bottom:1px solid var(--neutral-light);padding:calc(var(--cura-spacing-base) * 3px) 0}:host(:last-child) .component-container{border-bottom:none !important}";
|
|
807
|
-
const CuraDropdownSearchCategoryStyle0 = curaDropdownSearchCategoryCss;
|
|
808
971
|
|
|
809
972
|
const CuraDropdownSearchCategory = class {
|
|
810
973
|
constructor(hostRef) {
|
|
@@ -821,23 +984,34 @@ const CuraDropdownSearchCategory = class {
|
|
|
821
984
|
return (h(Host, { key: '511391a8c6c1c998b04e3093838173ae76549715' }, h("div", { key: '63da720bb3d2cc354ef5f1e9ceaf0f2f9c396f4e', class: "component-container", style: this.styles }, h("cura-heading", { key: 'ba003607e581d4abaf2e6d617f94e3174d04a4b3', size: 'xsmall', weight: 'bold', color: 'neutral-dark', marginBlock: '0', lineHeight: '1em' }, h("slot", { key: '80b14ff99b42a64082895db81b4dbe78cd7545a3' })))));
|
|
822
985
|
}
|
|
823
986
|
};
|
|
824
|
-
CuraDropdownSearchCategory.style =
|
|
987
|
+
CuraDropdownSearchCategory.style = curaDropdownSearchCategoryCss;
|
|
825
988
|
|
|
826
989
|
const curaDropdownSearchOptionCss = ":host{display:block;box-sizing:border-box}:host .component-container{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;min-height:calc(var(--cura-spacing-base) * 10px);padding:0 calc(var(--cura-spacing-base) * 1px);border-bottom:1px solid var(--neutral-light);transition:background-color 0.15s linear}:host .component-container:not(.selected):not(.not-selectable):has(.selectable-container:hover),:host .component-container:not(.selected):not(.not-selectable).highlighted{background-color:var(--neutral-white)}:host .selectable-container{flex:1;display:flex;align-items:center;justify-content:flex-start;padding:calc(var(--cura-spacing-base) * 3px) 0;min-height:calc(var(--cura-spacing-base) * 10px);min-width:0;gap:calc(var(--cura-spacing-base) * 1px);cursor:pointer}:host .selectable-container .content{flex:1;align-items:center;justify-content:flex-end;padding-right:calc(var(--cura-spacing-base) * 1px);min-width:0}:host .selectable-container ::slotted(cura-icon){--color:var(--neutral-dark) !important;margin:0 10px}:host .selectable-container ::slotted(cura-avatar){margin:0 calc(var(--cura-spacing-base) * 1px)}:host .selectable-container ::slotted(cura-heading),:host .selectable-container ::slotted(cura-paragraph){--margin-block:0 !important;--color-spot:var(--primary) !important}:host .selectable-container ::slotted(cura-heading){--color-body:var(--neutral-black) !important}:host .selectable-container ::slotted(cura-paragraph){--color-body:var(--neutral-dark) !important}:host .selected{background-color:var(--primary-lighter-50);border-bottom-color:var(--primary-light)}:host .selected .selectable-container{cursor:default}:host .selected .selectable-container ::slotted(cura-icon){--color:var(--primary) !important}:host .selected .selectable-container ::slotted(cura-heading){--color-body:var(--primary) !important}:host .actions-container{display:flex}:host .actions-container ::slotted(*){padding-left:calc(var(--cura-spacing-base) * 1px)}:host .not-selectable .selectable-container{cursor:default}:host(:last-child) .component-container{border-bottom:none !important}";
|
|
827
|
-
const CuraDropdownSearchOptionStyle0 = curaDropdownSearchOptionCss;
|
|
828
990
|
|
|
829
991
|
const CuraDropdownSearchOption = class {
|
|
830
992
|
constructor(hostRef) {
|
|
831
993
|
registerInstance(this, hostRef);
|
|
832
|
-
this.actionclick = createEvent(this, "actionclick"
|
|
833
|
-
this.selectoption = createEvent(this, "selectoption"
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
994
|
+
this.actionclick = createEvent(this, "actionclick");
|
|
995
|
+
this.selectoption = createEvent(this, "selectoption");
|
|
996
|
+
/**
|
|
997
|
+
* Enable selection for this option.
|
|
998
|
+
* Default is true.
|
|
999
|
+
*/
|
|
838
1000
|
this.selectable = true;
|
|
1001
|
+
/**
|
|
1002
|
+
* Selected state.
|
|
1003
|
+
* This will be managed by the parent component.
|
|
1004
|
+
* Default is false.
|
|
1005
|
+
*/
|
|
839
1006
|
this.selected = false;
|
|
1007
|
+
/**
|
|
1008
|
+
* Highlighted state.
|
|
1009
|
+
* This will be managed by the parent component.
|
|
1010
|
+
* Default is false.
|
|
1011
|
+
*/
|
|
840
1012
|
this.highlighted = false;
|
|
1013
|
+
this.styles = {};
|
|
1014
|
+
this.theme = window.CuraAPI.theme;
|
|
841
1015
|
}
|
|
842
1016
|
connectedCallback() {
|
|
843
1017
|
this.styles = {
|
|
@@ -873,24 +1047,50 @@ const CuraDropdownSearchOption = class {
|
|
|
873
1047
|
return (h(Host, { key: '6168a95a628d07878f472c310390bf9c45bd5057' }, h("div", { key: '29763282f101a9fbe205c91e7b3c70fa51878e63', class: this.getClasses(), style: this.styles }, h("div", { key: '46bd7a250ad866b984e6f4184aa4800e89b741c9', class: "selectable-container", onClick: () => this.handleSelect() }, h("slot", { key: '77088405f3cc4f077e49a4266fb926348774d9e9', name: 'image' }), h("div", { key: '96baef2af4ffe7c5ec809a5adbd0512120b6c71c', class: "content" }, h("slot", { key: 'e41794e8eaff6bfe1516e88e8591ca915eb7ad3f' }))), h("div", { key: '991bca3b0956519b531d576a1738bc3f200cc73f', class: "actions-container", onClick: () => this.handleActionsClick() }, h("slot", { key: '098e8c29ab48ef8e0cfff2a48a31860eafb62487', name: 'actions' })))));
|
|
874
1048
|
}
|
|
875
1049
|
};
|
|
876
|
-
CuraDropdownSearchOption.style =
|
|
1050
|
+
CuraDropdownSearchOption.style = curaDropdownSearchOptionCss;
|
|
877
1051
|
|
|
878
1052
|
const curaHeadingCss = ":host{display:block;font-size:var(--font-size-base)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:1.714em;font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0px}:host h1.bold-weight,:host h2.bold-weight,:host h3.bold-weight,:host h4.bold-weight,:host h5.bold-weight,:host h6.bold-weight{font-weight:var(--font-weight-medium)}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.071em;letter-spacing:-0.58px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.214em;line-height:calc(var(--line-height) + 20%)}:host h1.small.bold-weight,:host h1.small ::slotted(b),:host h1.small ::slotted(strong),:host h2.small.bold-weight,:host h2.small ::slotted(b),:host h2.small ::slotted(strong),:host h3.small.bold-weight,:host h3.small ::slotted(b),:host h3.small ::slotted(strong),:host h4.small.bold-weight,:host h4.small ::slotted(b),:host h4.small ::slotted(strong),:host h5.small.bold-weight,:host h5.small ::slotted(b),:host h5.small ::slotted(strong),:host h6.small.bold-weight,:host h6.small ::slotted(b),:host h6.small ::slotted(strong){font-weight:var(--font-weight-bold)}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.8571428571em;font-weight:var(--font-weight-medium);letter-spacing:0.6px}:host h1.xsmall.bold-weight,:host h1.xsmall ::slotted(b),:host h1.xsmall ::slotted(strong),:host h2.xsmall.bold-weight,:host h2.xsmall ::slotted(b),:host h2.xsmall ::slotted(strong),:host h3.xsmall.bold-weight,:host h3.xsmall ::slotted(b),:host h3.xsmall ::slotted(strong),:host h4.xsmall.bold-weight,:host h4.xsmall ::slotted(b),:host h4.xsmall ::slotted(strong),:host h5.xsmall.bold-weight,:host h5.xsmall ::slotted(b),:host h5.xsmall ::slotted(strong),:host h6.xsmall.bold-weight,:host h6.xsmall ::slotted(b),:host h6.xsmall ::slotted(strong){font-weight:var(--font-weight-bold)}:host h1.textoverflow-single,:host h2.textoverflow-single,:host h3.textoverflow-single,:host h4.textoverflow-single,:host h5.textoverflow-single,:host h6.textoverflow-single{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}:host h1 ::slotted(b),:host h1 ::slotted(strong),:host h2 ::slotted(b),:host h2 ::slotted(strong),:host h3 ::slotted(b),:host h3 ::slotted(strong),:host h4 ::slotted(b),:host h4 ::slotted(strong),:host h5 ::slotted(b),:host h5 ::slotted(strong),:host h6 ::slotted(b),:host h6 ::slotted(strong){font-weight:var(--font-weight-medium)}:host h1 ::slotted(a),:host h2 ::slotted(a),:host h3 ::slotted(a),:host h4 ::slotted(a),:host h5 ::slotted(a),:host h6 ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-spot);text-underline-offset:10%;cursor:pointer}:host h1 ::slotted(u),:host h2 ::slotted(u),:host h3 ::slotted(u),:host h4 ::slotted(u),:host h5 ::slotted(u),:host h6 ::slotted(u){text-underline-offset:10%}:host h1 ::slotted(abbr),:host h2 ::slotted(abbr),:host h3 ::slotted(abbr),:host h4 ::slotted(abbr),:host h5 ::slotted(abbr),:host h6 ::slotted(abbr){color:var(--color-spot);text-decoration:underline dashed 1px var(--color-spot);text-underline-offset:10%;cursor:default}:host h1 ::slotted(i),:host h2 ::slotted(i),:host h3 ::slotted(i),:host h4 ::slotted(i),:host h5 ::slotted(i),:host h6 ::slotted(i){font-weight:var(--font-weight-medium)}:host h1 ::slotted(em),:host h2 ::slotted(em),:host h3 ::slotted(em),:host h4 ::slotted(em),:host h5 ::slotted(em),:host h6 ::slotted(em){color:var(--color-spot);font-weight:var(--font-weight-bold);font-style:normal}@media (min-width: 769px) and (max-width: 1920px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2em}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.357em;letter-spacing:-0.66px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.357em}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.8571428571em;line-height:calc(var(--line-height) + 3%);letter-spacing:0.72px}}@media (min-width: 1921px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2.5em;line-height:calc(var(--line-height) + 5%);letter-spacing:-0.82px}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.929em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.714em;line-height:calc(var(--line-height) + 30%);letter-spacing:0%}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:1em;line-height:calc(var(--line-height) + 12.857%);letter-spacing:0.28px}}";
|
|
879
|
-
const CuraHeadingStyle0 = curaHeadingCss;
|
|
880
1053
|
|
|
881
1054
|
const CuraHeading = class {
|
|
882
1055
|
constructor(hostRef) {
|
|
883
1056
|
registerInstance(this, hostRef);
|
|
884
|
-
|
|
1057
|
+
/**
|
|
1058
|
+
* Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...
|
|
1059
|
+
* Values: 1(default) to 6.
|
|
1060
|
+
*/
|
|
885
1061
|
this.level = 1;
|
|
1062
|
+
/**
|
|
1063
|
+
* Heading style size.
|
|
1064
|
+
* Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.
|
|
1065
|
+
*/
|
|
886
1066
|
this.size = 'medium';
|
|
1067
|
+
/**
|
|
1068
|
+
* Heading font weight. It is possible to use regular HTML tags like <b> or <strong> as well.
|
|
1069
|
+
* Values: regular (default) | bold.
|
|
1070
|
+
*/
|
|
887
1071
|
this.weight = 'regular';
|
|
1072
|
+
/**
|
|
1073
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text.
|
|
1074
|
+
* Values: Color from design system scheme. Default to 'accent-dark'.
|
|
1075
|
+
*/
|
|
888
1076
|
this.spotColor = 'accent-dark';
|
|
889
|
-
|
|
1077
|
+
/**
|
|
1078
|
+
* CSS margin-block property values.
|
|
1079
|
+
* Default to 1.25em
|
|
1080
|
+
*/
|
|
890
1081
|
this.marginBlock = '1.25em';
|
|
1082
|
+
/**
|
|
1083
|
+
* CSS line-height property values.
|
|
1084
|
+
* Default to 130%
|
|
1085
|
+
*/
|
|
891
1086
|
this.lineHeight = '130%';
|
|
1087
|
+
/**
|
|
1088
|
+
* Apply text-overflow ellipsis definitions.
|
|
1089
|
+
* Default to none
|
|
1090
|
+
*/
|
|
892
1091
|
this.textOverflow = 'none';
|
|
893
1092
|
this.styles = {};
|
|
1093
|
+
this.theme = window.CuraAPI.theme;
|
|
894
1094
|
}
|
|
895
1095
|
connectedCallback() {
|
|
896
1096
|
this.setFontProperties();
|
|
@@ -943,17 +1143,15 @@ const CuraHeading = class {
|
|
|
943
1143
|
}
|
|
944
1144
|
get host() { return getElement(this); }
|
|
945
1145
|
};
|
|
946
|
-
CuraHeading.style =
|
|
1146
|
+
CuraHeading.style = curaHeadingCss;
|
|
947
1147
|
|
|
948
1148
|
const curaIconCss = ":host{width:var(--size);height:var(--size);display:inline-block}:host svg{display:inline-block;stroke:var(--color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";
|
|
949
|
-
const CuraIconStyle0 = curaIconCss;
|
|
950
1149
|
|
|
951
1150
|
const CuraIcon = class {
|
|
952
1151
|
constructor(hostRef) {
|
|
953
1152
|
registerInstance(this, hostRef);
|
|
954
1153
|
this.name = '';
|
|
955
1154
|
this.color = 'neutral-base';
|
|
956
|
-
this.size = undefined;
|
|
957
1155
|
this.iconset = 'default';
|
|
958
1156
|
this.disabled = false;
|
|
959
1157
|
}
|
|
@@ -985,7 +1183,7 @@ const CuraIcon = class {
|
|
|
985
1183
|
"disabled": ["colorHandler"]
|
|
986
1184
|
}; }
|
|
987
1185
|
};
|
|
988
|
-
CuraIcon.style =
|
|
1186
|
+
CuraIcon.style = curaIconCss;
|
|
989
1187
|
|
|
990
1188
|
/** Checks if value is string */
|
|
991
1189
|
function isString(str) {
|
|
@@ -1496,7 +1694,7 @@ class InputHistory {
|
|
|
1496
1694
|
return this.go(-1);
|
|
1497
1695
|
}
|
|
1498
1696
|
redo() {
|
|
1499
|
-
return this.go(
|
|
1697
|
+
return this.go(1);
|
|
1500
1698
|
}
|
|
1501
1699
|
clear() {
|
|
1502
1700
|
this.states.length = 0;
|
|
@@ -4631,13 +4829,12 @@ const maskOptions = {
|
|
|
4631
4829
|
};
|
|
4632
4830
|
|
|
4633
4831
|
const curaInputTextCss = ":host{display:block;box-sizing:border-box;width:100%}.required{color:var(--error-base)}.cura-input-group{width:100%;font-family:var(--font-family);text-align:left !important}.cura-input-group .helper-text{margin-top:8px;color:var(--neutral-dark)}.cura-input-group cura-label{margin-bottom:8px}.cura-input-group .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group .cura-input-field cura-loader-circle{margin:0px 12px}.cura-input-group .cura-input-field .feedback-icon{padding-left:12px;padding-top:6px}.cura-input-group .cura-input-field .clear-button{padding-right:12px;cursor:pointer}.cura-input-group .helper-text{margin-top:8px;color:var(--neutral-dark)}.cura-input-group.success .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success .cura-input-field input{color:var(--success-darker) !important}.cura-input-group.success .cura-input-field input::placeholder{color:var(--success-darker) !important}.cura-input-group.success:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--success-dark) !important;background-color:var(--success-lighter) !important}.cura-input-group.success:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.success:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error .cura-input-field input{color:var(--error-darker) !important}.cura-input-group.error .cura-input-field input::placeholder{color:var(--error-darker) !important}.cura-input-group.error:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--error-dark) !important;background-color:var(--error-lighter) !important}.cura-input-group.error:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.error:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field{border-color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input{color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group:focus-within:not(.selection) .cura-input-field{border:2px solid var(--info-base) !important;background-color:var(--neutral-purewhite);outline:none}.cura-input-group:focus-within:not(.selection) .cura-input-field input{color:var(--neutral-black) !important}.cura-input-group:focus-within.selection .cura-input-field{border-radius:4px 4px 0px 0px}.cura-input-group.isLoading{cursor:wait}.cura-input-group.isLoading .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;background-color:var(--neutral-white) !important;border:2px solid var(--primary-base) !important}.cura-input-group.isLoading .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.isLoading .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.isLoading .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.isLoading .cura-input-field input{cursor:wait;color:var(--primary-base) !important}.cura-input-group.isLoading .cura-input-field input::placeholder{color:var(--primary-base) !important}.cura-input-group.readOnly[read-only] .cura-input-field{cursor:default}.cura-input-group.readOnly[read-only] .cura-input-field input{cursor:default}.cura-input-group.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.cura-input-group.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.cura-input-group.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.disabled .cura-input-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.cura-input-group.disabled .cura-input-field input{color:var(--neutral-medium)}.cura-input-group.disabled .cura-input-field input::placeholder{color:var(--neutral-medium)}.cura-input-group.transparent{background-color:transparent;padding:0px;max-height:80px}.cura-input-group.transparent .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;background-color:transparent !important;border:none !important;border-radius:0;height:27px}.cura-input-group.transparent .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.transparent .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.transparent .cura-input-field input{color:var(--neutral-black) !important;font-size:16px;font-weight:var(--font-weight-bold) !important;padding:0}.cura-input-group.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.cura-input-group.transparent .cura-input-field .feedback-icon{order:3;margin:0 20px 0 0}.cura-input-group.transparent:focus-within .cura-input-field{border:none !important;background-color:transparent !important}.cura-input-group.transparent:focus-within .cura-input-field input{border:none !important;outline:none}.cura-input-group.transparent .helper-text{margin-top:0px}.cura-input-group.transparent.transparent{display:flex;background-color:transparent;padding:0px;justify-content:start;align-items:center;max-height:80px;gap:4px}.cura-input-group.transparent.transparent .input-wrapper{display:flex;width:100%;flex-direction:column;justify-content:start}.cura-input-group.transparent.transparent cura-label{margin-bottom:4px;--color-body:var(--neutral-dark) !important}.cura-input-group.transparent.transparent.error cura-label{--color-body:var(--neutral-black) !important}.cura-input-group.transparent.transparent .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;background-color:transparent !important;border:none !important;border-radius:0;height:27px;overflow:hidden}.cura-input-group.transparent.transparent .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.transparent.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.transparent.transparent .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.transparent.transparent .cura-input-field input{order:1;color:var(--neutral-black) !important;font-size:16px;font-weight:var(--font-weight-bold) !important;padding:0}.cura-input-group.transparent.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.cura-input-group.transparent.transparent .cura-input-field .clear-button{order:2;cursor:pointer;margin:0 20px 0 0;padding:0}.cura-input-group.transparent.transparent .cura-input-field .feedback-icon{padding:6px 0 0 0}.cura-input-group.transparent.transparent .cura-input-field cura-loader-circle{order:2;margin:0 20px 0 0}.cura-input-group.error .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error .cura-input-field input{color:var(--error-darker) !important}.cura-input-group.error .cura-input-field input::placeholder{color:var(--error-darker) !important}.cura-input-group.error.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.error.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.cura-input-group.error.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.error.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.error.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.cura-input-group.error.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.error.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.error.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.error:not(.transparent).large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--error-dark) !important;background-color:var(--error-lighter) !important}.cura-input-group.error:not(.transparent).large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.error:not(.transparent).large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error:not(.transparent).large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success .cura-input-field input{color:var(--success-darker) !important}.cura-input-group.success .cura-input-field input::placeholder{color:var(--success-darker) !important}.cura-input-group.success.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.success.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.cura-input-group.success.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.success.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.success.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.cura-input-group.success.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.success.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.success.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.success:not(.transparent).large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--success-dark) !important;background-color:var(--success-lighter) !important}.cura-input-group.success:not(.transparent).large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0px 12px 0px 8px}.cura-input-group.success:not(.transparent).large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success:not(.transparent).large .cura-input-field .feedback-icon{padding-left:12px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}";
|
|
4634
|
-
const CuraInputTextStyle0 = curaInputTextCss;
|
|
4635
4832
|
|
|
4636
4833
|
const CuraInputText = class {
|
|
4637
4834
|
constructor(hostRef) {
|
|
4638
4835
|
registerInstance(this, hostRef);
|
|
4639
|
-
this.valueChange = createEvent(this, "valueChange"
|
|
4640
|
-
this.inputClear = createEvent(this, "inputClear"
|
|
4836
|
+
this.valueChange = createEvent(this, "valueChange");
|
|
4837
|
+
this.inputClear = createEvent(this, "inputClear");
|
|
4641
4838
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
4642
4839
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
4643
4840
|
}
|
|
@@ -4645,31 +4842,89 @@ const CuraInputText = class {
|
|
|
4645
4842
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
4646
4843
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
4647
4844
|
}
|
|
4845
|
+
/**
|
|
4846
|
+
* Mode of the input: 'default' or 'transparent' (default: 'default')
|
|
4847
|
+
*/
|
|
4648
4848
|
this.mode = 'default';
|
|
4849
|
+
/**
|
|
4850
|
+
* Indicates input status(default: default)
|
|
4851
|
+
*/
|
|
4649
4852
|
this.status = 'default';
|
|
4853
|
+
/**
|
|
4854
|
+
* Size of the input mode default: 'small', 'medium', or 'large' (default: 'medium')
|
|
4855
|
+
*/
|
|
4650
4856
|
this.size = 'medium';
|
|
4857
|
+
/**
|
|
4858
|
+
* Type of the input: 'text', 'number' (default: 'text')
|
|
4859
|
+
*/
|
|
4651
4860
|
this.type = 'text';
|
|
4861
|
+
/**
|
|
4862
|
+
* Type of the input: 'text', 'number' (default: 'text')
|
|
4863
|
+
*/
|
|
4652
4864
|
this.inputMode = 'text';
|
|
4865
|
+
/**
|
|
4866
|
+
* Label text for the input
|
|
4867
|
+
*/
|
|
4653
4868
|
this.label = '';
|
|
4869
|
+
/**
|
|
4870
|
+
* Name text for the input
|
|
4871
|
+
*/
|
|
4654
4872
|
this.name = '';
|
|
4873
|
+
/**
|
|
4874
|
+
* Placeholder text for the input
|
|
4875
|
+
*/
|
|
4655
4876
|
this.placeholder = null;
|
|
4877
|
+
/**
|
|
4878
|
+
* Value of the input field
|
|
4879
|
+
*/
|
|
4656
4880
|
this.value = '';
|
|
4881
|
+
/**
|
|
4882
|
+
* Whether to display a cura icon (default: null)
|
|
4883
|
+
*/
|
|
4657
4884
|
this.iconName = '';
|
|
4658
|
-
|
|
4885
|
+
/**
|
|
4886
|
+
* Whether the input is disabled (default: false)
|
|
4887
|
+
*/
|
|
4659
4888
|
this.disabled = false;
|
|
4889
|
+
/**
|
|
4890
|
+
* Whether the input is required (default: false)
|
|
4891
|
+
*/
|
|
4660
4892
|
this.required = false;
|
|
4661
|
-
|
|
4893
|
+
/*
|
|
4894
|
+
* Controls whether the selection functionality is active
|
|
4895
|
+
*/
|
|
4662
4896
|
this.enableSelectionMode = false;
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4897
|
+
/**
|
|
4898
|
+
* Whether the input is read-only (default: false)
|
|
4899
|
+
*/
|
|
4666
4900
|
this.readOnly = false;
|
|
4901
|
+
/**
|
|
4902
|
+
* Whether the input is in loading state (default: false)
|
|
4903
|
+
*/
|
|
4667
4904
|
this.isLoading = false;
|
|
4905
|
+
/**
|
|
4906
|
+
* Internal state: Whether the input is hovered (default: false)
|
|
4907
|
+
*/
|
|
4668
4908
|
this.isHovered = false;
|
|
4909
|
+
/**
|
|
4910
|
+
* Internal state: Whether the input is focused (default: false)
|
|
4911
|
+
*/
|
|
4669
4912
|
this.isFocused = false;
|
|
4913
|
+
/**
|
|
4914
|
+
* Internal state: Styles object for dynamic styling
|
|
4915
|
+
*/
|
|
4670
4916
|
this.styles = {};
|
|
4917
|
+
/**
|
|
4918
|
+
* Icon button name for the clear button (default: 'closeCircle')
|
|
4919
|
+
*/
|
|
4671
4920
|
this.clearIcon = true;
|
|
4921
|
+
/**
|
|
4922
|
+
* Removes the alertCircle icon when necessary(as used in CuraDropdownSearch)
|
|
4923
|
+
*/
|
|
4672
4924
|
this.hideErrorIcon = false;
|
|
4925
|
+
/**
|
|
4926
|
+
* Defines whether the input should have autocomplete
|
|
4927
|
+
*/
|
|
4673
4928
|
this.autocomplete = 'on';
|
|
4674
4929
|
}
|
|
4675
4930
|
async setFocus() {
|
|
@@ -4958,23 +5213,45 @@ const CuraInputText = class {
|
|
|
4958
5213
|
"maskAdvanced": ["initializeMask"]
|
|
4959
5214
|
}; }
|
|
4960
5215
|
};
|
|
4961
|
-
CuraInputText.style =
|
|
5216
|
+
CuraInputText.style = curaInputTextCss;
|
|
4962
5217
|
|
|
4963
5218
|
const curaLabelCss = ":host{display:block;font-size:var(--font-size-base)}:host p{font-family:var(--font-family);font-size:1.143em;font-weight:var(--font-weight-medium);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0.32px}:host p.bold-weight,:host p ::slotted(b),:host p ::slotted(strong),:host p ::slotted(u){font-weight:var(--font-weight-bold)}:host p.large{font-size:1.357em;line-height:calc(var(--line-height) - 4%);letter-spacing:0px}:host p.small{font-size:1em;line-height:calc(var(--line-height) - 4%);letter-spacing:0.56px}:host p.xsmall{font-size:0.857em;line-height:calc(var(--line-height) - 17%);letter-spacing:0.72px}:host p.textoverflow-single{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}:host p ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-underline-offset:10%}:host p ::slotted(u){text-underline-offset:10%}:host p ::slotted(abbr){color:var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
|
|
4964
|
-
const CuraLabelStyle0 = curaLabelCss;
|
|
4965
5219
|
|
|
4966
5220
|
const CuraLabel = class {
|
|
4967
5221
|
constructor(hostRef) {
|
|
4968
5222
|
registerInstance(this, hostRef);
|
|
4969
|
-
|
|
5223
|
+
/**
|
|
5224
|
+
* Set size of body text.
|
|
5225
|
+
* Values: medium (default) | large | small | xsmall.
|
|
5226
|
+
*/
|
|
4970
5227
|
this.size = 'medium';
|
|
5228
|
+
/**
|
|
5229
|
+
* Label font weight. It is possible to use regular HTML tags like <b> or <strong> as well.
|
|
5230
|
+
* Values: regular (default) | bold.
|
|
5231
|
+
*/
|
|
4971
5232
|
this.weight = 'regular';
|
|
5233
|
+
/**
|
|
5234
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text.
|
|
5235
|
+
* Values: Color from design system scheme. Default to 'accent-dark'.
|
|
5236
|
+
*/
|
|
4972
5237
|
this.spotColor = 'accent-dark';
|
|
4973
|
-
|
|
5238
|
+
/**
|
|
5239
|
+
* CSS margin-block property values.
|
|
5240
|
+
* Default to 1.25em
|
|
5241
|
+
*/
|
|
4974
5242
|
this.marginBlock = '0';
|
|
5243
|
+
/**
|
|
5244
|
+
* CSS line-height property values.
|
|
5245
|
+
* Default to 140%
|
|
5246
|
+
*/
|
|
4975
5247
|
this.lineHeight = '125%';
|
|
5248
|
+
/**
|
|
5249
|
+
* Apply text-overflow ellipsis definitions.
|
|
5250
|
+
* Default to none
|
|
5251
|
+
*/
|
|
4976
5252
|
this.textOverflow = 'none';
|
|
4977
5253
|
this.styles = {};
|
|
5254
|
+
this.theme = window.CuraAPI.theme;
|
|
4978
5255
|
}
|
|
4979
5256
|
handleChangeColor() {
|
|
4980
5257
|
this.setColors();
|
|
@@ -5023,14 +5300,21 @@ const CuraLabel = class {
|
|
|
5023
5300
|
"spotColor": ["handleChangeColor"]
|
|
5024
5301
|
}; }
|
|
5025
5302
|
};
|
|
5026
|
-
CuraLabel.style =
|
|
5303
|
+
CuraLabel.style = curaLabelCss;
|
|
5027
5304
|
|
|
5028
5305
|
const curaLoaderCircleCss = ":host{display:inline-block;width:var(--size);height:var(--size)}:host svg{width:var(--size);height:var(--size);animation:rotate 0.7s linear infinite}:host circle,:host path{stroke-miterlimit:10;stroke-linecap:round;stroke-linejoin:round}:host path{stroke:var(--color)}:host stop{stop-color:var(--color)}:host linearGradient stop:first-child{stop-opacity:0.14}@keyframes rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}";
|
|
5029
|
-
const CuraLoaderCircleStyle0 = curaLoaderCircleCss;
|
|
5030
5306
|
|
|
5031
5307
|
const CuraLoaderCircle = class {
|
|
5032
5308
|
constructor(hostRef) {
|
|
5033
5309
|
registerInstance(this, hostRef);
|
|
5310
|
+
/**
|
|
5311
|
+
* Loader size. Values: small, medium or large.
|
|
5312
|
+
*/
|
|
5313
|
+
this.size = 'medium';
|
|
5314
|
+
/**
|
|
5315
|
+
* One from color scheme. Default: neutral-white.
|
|
5316
|
+
*/
|
|
5317
|
+
this.color = 'neutral-white';
|
|
5034
5318
|
this.sizes = {
|
|
5035
5319
|
xlarge: 32,
|
|
5036
5320
|
large: 24,
|
|
@@ -5039,8 +5323,6 @@ const CuraLoaderCircle = class {
|
|
|
5039
5323
|
default: 16,
|
|
5040
5324
|
};
|
|
5041
5325
|
this.getPxSize = () => this.sizes[this.size] || this.sizes['default'];
|
|
5042
|
-
this.size = 'medium';
|
|
5043
|
-
this.color = 'neutral-white';
|
|
5044
5326
|
}
|
|
5045
5327
|
getStyles() {
|
|
5046
5328
|
return {
|
|
@@ -5052,10 +5334,9 @@ const CuraLoaderCircle = class {
|
|
|
5052
5334
|
return (h(Host, { key: '09f72e4ec206571c1bfb4333a76da3113f2b386d', style: this.getStyles(), role: "progressbar" }, h("svg", { key: 'd446c093c9ae6c1ebca50e023f2eba592f37eb07', viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '8d8bf0fefcb924af391977d672f777face8bf24f' }, h("circle", { key: 'd77eaba65fc61c265b7c495e95dae22d9732732b', cx: "8", cy: "8", r: "7", stroke: "url(#paint0_linear_13485_11488)", "stroke-width": "2" }), h("path", { key: 'ab82247a03c327a6eac8f5c0770932e3520aa32c', d: "M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5", "stroke-width": "2" })), h("defs", { key: '6291d976f90dd54aecaead32f8314e977dad4c3f' }, h("linearGradient", { key: '8f213ed3cb1e55f9aae79f18d43f414b48f45a19', id: "paint0_linear_13485_11488", x1: "15.7", y1: "4.5", x2: "4.15", y2: "11.5", gradientUnits: "userSpaceOnUse" }, h("stop", { key: 'c723178770cb0d49746a72fff6c9c8dc7fbb07b4' }), h("stop", { key: '07bb208a3ca3f3b7a317b1e2386dc9cf683fd155', offset: "1" }))))));
|
|
5053
5335
|
}
|
|
5054
5336
|
};
|
|
5055
|
-
CuraLoaderCircle.style =
|
|
5337
|
+
CuraLoaderCircle.style = curaLoaderCircleCss;
|
|
5056
5338
|
|
|
5057
5339
|
const curaPageTemplateCss = ":host{display:block}:host .grid-template{display:grid;grid-template-rows:auto;grid-template-columns:auto;grid-template-areas:\"sub-header\" \"header\" \"pre-content\" \"content-container\" \"post-body\" \"footer\" \"sub-footer\"}:host .grid-template #sub-header{grid-area:sub-header}:host .grid-template #header{grid-area:header}:host .grid-template #pre-content{grid-area:pre-content}:host .grid-template #content-container{grid-area:content-container}:host .grid-template #post-body{grid-area:post-body}:host .grid-template #footer{grid-area:footer}:host .grid-template #sub-footer{grid-area:sub-footer}@media (max-width: 768px){:host .grid-template{padding:0px}}@media (min-width: 769px) and (max-width: 992px){:host .grid-template{padding:0px}}@media (min-width: 993px) and (max-width: 1920px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 5px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 5px)}:host .grid-template #content-container{display:flex}:host .grid-template #content-container #content{flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}}@media (min-width: 1921px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 7px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 7px)}:host .grid-template #content-container{display:flex}:host .grid-template #content-container #content{flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}:host .grid-template #content-container.centered{max-width:1921px;justify-self:center}}";
|
|
5058
|
-
const CuraPageTemplateStyle0 = curaPageTemplateCss;
|
|
5059
5340
|
|
|
5060
5341
|
const CuraPageTemplate = class {
|
|
5061
5342
|
constructor(hostRef) {
|
|
@@ -5077,22 +5358,40 @@ const CuraPageTemplate = class {
|
|
|
5077
5358
|
}
|
|
5078
5359
|
get host() { return getElement(this); }
|
|
5079
5360
|
};
|
|
5080
|
-
CuraPageTemplate.style =
|
|
5361
|
+
CuraPageTemplate.style = curaPageTemplateCss;
|
|
5081
5362
|
|
|
5082
5363
|
const curaParagraphCss = ":host{display:block;font-size:var(--font-size-base);min-width:0}:host p{font-family:var(--font-family);font-size:var(--font-size-base);font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0.28px;width:100%}:host p.large{font-size:1.214em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.small{font-size:0.85em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.48px}:host p.caption,:host p.xsmall{font-size:0.8571428571em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.6px}:host p.textoverflow-single{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}:host p ::slotted(b),:host p ::slotted(strong){font-weight:var(--font-weight-bold)}:host p ::slotted(a),:host p ::slotted(a:-webkit-any-link){font-weight:var(--font-weight-medium);color:var(--color-spot);text-underline-offset:10%}:host p ::slotted(u){font-weight:var(--font-weight-medium);text-underline-offset:10%}:host p ::slotted(i){font-style:italic}:host p ::slotted(em){font-weight:var(--font-weight-bold);color:var(--color-spot);font-style:normal}:host p ::slotted(abbr){color:var(--color-spot);text-decoration:underline dashed 1px var(--color-spot);text-underline-offset:10%;cursor:default}@media (min-width: 769px) and (max-width: 1920px){:host p{font-size:1.143em;line-height:calc(var(--line-height) + 5%);letter-spacing:0.32px}:host p.large{font-size:1.357em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.small{font-size:1em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.56px}:host p.caption,:host p.xsmall{font-size:0.8571428571em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.72px}}@media (min-width: 1921px){:host p{font-size:1.429em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.large{font-size:1.714em;line-height:calc(var(--line-height) + 20%)}:host p.small{font-size:1.21em;line-height:calc(var(--line-height) + 5%);letter-spacing:0px}:host p.caption,:host p.xsmall{font-size:1em;line-height:calc(var(--line-height) + 5%);letter-spacing:0.28px}}";
|
|
5083
|
-
const CuraParagraphStyle0 = curaParagraphCss;
|
|
5084
5364
|
|
|
5085
5365
|
const CuraParagraph = class {
|
|
5086
5366
|
constructor(hostRef) {
|
|
5087
5367
|
registerInstance(this, hostRef);
|
|
5088
|
-
|
|
5368
|
+
/**
|
|
5369
|
+
* Set size of body text.
|
|
5370
|
+
* Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.
|
|
5371
|
+
*/
|
|
5089
5372
|
this.size = 'medium';
|
|
5373
|
+
/**
|
|
5374
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text.
|
|
5375
|
+
* Values: Color from design system scheme. Default to 'accent-dark'.
|
|
5376
|
+
*/
|
|
5090
5377
|
this.spotColor = 'accent-dark';
|
|
5091
|
-
|
|
5378
|
+
/**
|
|
5379
|
+
* CSS margin-block property values.
|
|
5380
|
+
* Default to 1.25em
|
|
5381
|
+
*/
|
|
5092
5382
|
this.marginBlock = '1.25em';
|
|
5383
|
+
/**
|
|
5384
|
+
* CSS line-height property values.
|
|
5385
|
+
* Default to 140%
|
|
5386
|
+
*/
|
|
5093
5387
|
this.lineHeight = '140%';
|
|
5388
|
+
/**
|
|
5389
|
+
* Apply text-overflow ellipsis definitions.
|
|
5390
|
+
* Default to none
|
|
5391
|
+
*/
|
|
5094
5392
|
this.textOverflow = 'none';
|
|
5095
5393
|
this.styles = {};
|
|
5394
|
+
this.theme = window.CuraAPI.theme;
|
|
5096
5395
|
}
|
|
5097
5396
|
connectedCallback() {
|
|
5098
5397
|
this.setFontProperties();
|
|
@@ -5131,16 +5430,15 @@ const CuraParagraph = class {
|
|
|
5131
5430
|
}
|
|
5132
5431
|
get host() { return getElement(this); }
|
|
5133
5432
|
};
|
|
5134
|
-
CuraParagraph.style =
|
|
5433
|
+
CuraParagraph.style = curaParagraphCss;
|
|
5135
5434
|
|
|
5136
5435
|
const curaSelectCss = ":host{display:block;position:relative;font-family:var(--font-family)}.wrapper{width:100%;user-select:none;text-align:left !important}.wrapper cura-label{margin-bottom:8px}.wrapper .helper-text{margin-top:8px;color:var(--neutral-dark)}.wrapper .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper .cura-input-field .feedback-icon{padding-left:12px}.wrapper .cura-input-field .up-down-icon{order:3;padding-right:6px;cursor:pointer;pointer-events:all}.wrapper .cura-input-field .up-down-button{background-color:transparent;border:none}.wrapper .cura-input-field input{padding:0px 12px 0px 8px;cursor:pointer}.wrapper .cura-input-field.open{border-radius:4px 4px 0 0 !important}.wrapper.transparent{background-color:transparent;padding:0px;max-height:80px}.wrapper.transparent .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;background-color:transparent !important;border:none !important;border-radius:0;height:27px}.wrapper.transparent .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.transparent .cura-input-field .feedback-icon{padding-left:12px}.wrapper.transparent .cura-input-field input{color:var(--neutral-black) !important;font-size:16px;font-weight:var(--font-weight-bold) !important;padding:0}.wrapper.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.wrapper.transparent .cura-input-field .feedback-icon{order:3;margin:0 20px 0 0}.wrapper.transparent:focus-within .cura-input-field{border:none !important;background-color:transparent !important}.wrapper.transparent:focus-within .cura-input-field input{border:none !important;outline:none}.wrapper.transparent .helper-text{margin-top:0px}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field{border-color:var(--neutral-dark)}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input{color:var(--neutral-dark)}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper:focus-within:not(.selection) .cura-input-field{border:2px solid var(--info-base) !important;background-color:var(--neutral-purewhite);outline:none}.wrapper:focus-within:not(.selection) .cura-input-field input{color:var(--neutral-black) !important}.wrapper:focus-within.selection .cura-input-field{border-radius:4px 4px 0px 0px}.wrapper.success .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.success .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.success .cura-input-field .feedback-icon{padding-left:12px}.wrapper.success .cura-input-field input{color:var(--success-darker) !important}.wrapper.success .cura-input-field input::placeholder{color:var(--success-darker) !important}.wrapper.success:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--success-dark) !important;background-color:var(--success-lighter) !important}.wrapper.success:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.success:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.success:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.wrapper.error .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.error .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.error .cura-input-field .feedback-icon{padding-left:12px}.wrapper.error .cura-input-field input{color:var(--error-darker) !important}.wrapper.error .cura-input-field input::placeholder{color:var(--error-darker) !important}.wrapper.error:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--error-dark) !important;background-color:var(--error-lighter) !important}.wrapper.error:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.error:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.error:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.wrapper.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.small .cura-input-field .feedback-icon{padding-left:12px}.wrapper.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.wrapper.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.wrapper.small.label .menu{top:53px}.wrapper.small .menu{top:33px}.wrapper.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.medium .cura-input-field .feedback-icon{padding-left:12px}.wrapper.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.wrapper.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.wrapper.medium.label .menu{top:61px}.wrapper.medium .menu{top:40px}.wrapper.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.large .cura-input-field .feedback-icon{padding-left:12px}.wrapper.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.wrapper.large.label .menu{top:69px}.wrapper.large .menu{top:47px}.wrapper.disabled .cura-input-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.wrapper.disabled .cura-input-field input{color:var(--neutral-medium)}.wrapper.disabled .cura-input-field input::placeholder{color:var(--neutral-medium)}.required{color:red}.menu{position:absolute;left:0;right:-1px;background:#fff;border:2px solid var(--neutral-light);border-radius:4px;z-index:1000;max-height:var(--max-height);overflow:hidden;border-top:transparent;align-items:center;scrollbar-color:var(--neutral-medium) var(--neutral-black-20);overflow-y:auto;box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}.menu.open{border-radius:0 !important;padding:12px}";
|
|
5137
|
-
const CuraSelectStyle0 = curaSelectCss;
|
|
5138
5436
|
|
|
5139
5437
|
const CuraSelect = class {
|
|
5140
5438
|
constructor(hostRef) {
|
|
5141
5439
|
registerInstance(this, hostRef);
|
|
5142
|
-
this.selected = createEvent(this, "selected"
|
|
5143
|
-
this.searchTermInput = createEvent(this, "searchTermInput"
|
|
5440
|
+
this.selected = createEvent(this, "selected");
|
|
5441
|
+
this.searchTermInput = createEvent(this, "searchTermInput");
|
|
5144
5442
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
5145
5443
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
5146
5444
|
}
|
|
@@ -5148,6 +5446,79 @@ const CuraSelect = class {
|
|
|
5148
5446
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
5149
5447
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
5150
5448
|
}
|
|
5449
|
+
/**
|
|
5450
|
+
* The label text for the select component.
|
|
5451
|
+
* Reflects as an attribute in the DOM.
|
|
5452
|
+
*/
|
|
5453
|
+
this.label = '';
|
|
5454
|
+
/**
|
|
5455
|
+
* Placeholder text for the input field.
|
|
5456
|
+
* Reflects as an attribute in the DOM.
|
|
5457
|
+
*/
|
|
5458
|
+
this.placeholder = '';
|
|
5459
|
+
/**
|
|
5460
|
+
* Current value of the select component.
|
|
5461
|
+
* Reflects as an attribute in the DOM and is mutable.
|
|
5462
|
+
*/
|
|
5463
|
+
this.value = '';
|
|
5464
|
+
/**
|
|
5465
|
+
* Display mode of the select component.
|
|
5466
|
+
* Can be 'default' or 'transparent'.
|
|
5467
|
+
*/
|
|
5468
|
+
this.mode = 'default';
|
|
5469
|
+
/**
|
|
5470
|
+
* Size of the select component.
|
|
5471
|
+
* Can be 'small', 'medium', or 'large'.
|
|
5472
|
+
*/
|
|
5473
|
+
this.size = 'medium';
|
|
5474
|
+
/**
|
|
5475
|
+
* Status of the select component.
|
|
5476
|
+
* Can be 'success', 'error', or 'default'.
|
|
5477
|
+
*/
|
|
5478
|
+
this.status = 'default';
|
|
5479
|
+
/**
|
|
5480
|
+
* Whether the select component is disabled.
|
|
5481
|
+
* Reflects as an attribute in the DOM.
|
|
5482
|
+
*/
|
|
5483
|
+
this.disabled = false;
|
|
5484
|
+
/**
|
|
5485
|
+
* Whether the select component is required.
|
|
5486
|
+
* Reflects as an attribute in the DOM.
|
|
5487
|
+
*/
|
|
5488
|
+
this.required = false;
|
|
5489
|
+
/**
|
|
5490
|
+
* Enable / Disable search at options by term.
|
|
5491
|
+
* Default: false
|
|
5492
|
+
*/
|
|
5493
|
+
this.searchBehavior = false;
|
|
5494
|
+
/**
|
|
5495
|
+
* The search will be sensitive to accents.
|
|
5496
|
+
* Default: true
|
|
5497
|
+
*/
|
|
5498
|
+
this.caseSensitive = true;
|
|
5499
|
+
/**
|
|
5500
|
+
* CSS max-height property for dropdown item.
|
|
5501
|
+
* Can also be used by css property --max-height.
|
|
5502
|
+
* Default: 285px
|
|
5503
|
+
*/
|
|
5504
|
+
this.maxHeight = '285px';
|
|
5505
|
+
/**
|
|
5506
|
+
* Internal state: Whether the input is hovered.
|
|
5507
|
+
* Default: false
|
|
5508
|
+
*/
|
|
5509
|
+
this.isHovered = false;
|
|
5510
|
+
/**
|
|
5511
|
+
* Internal state: Whether the input is focused.
|
|
5512
|
+
* Default: false
|
|
5513
|
+
*/
|
|
5514
|
+
this.isFocused = false;
|
|
5515
|
+
/**
|
|
5516
|
+
* Internal state: Whether the dropdown menu is open.
|
|
5517
|
+
* Default: false
|
|
5518
|
+
*/
|
|
5519
|
+
this.isOpen = false;
|
|
5520
|
+
this.activeIndex = -1;
|
|
5521
|
+
this.textInput = '';
|
|
5151
5522
|
/**
|
|
5152
5523
|
* Styles to be applied to the component.
|
|
5153
5524
|
*/
|
|
@@ -5218,24 +5589,6 @@ const CuraSelect = class {
|
|
|
5218
5589
|
this.isOpen = false;
|
|
5219
5590
|
}
|
|
5220
5591
|
};
|
|
5221
|
-
this.label = '';
|
|
5222
|
-
this.placeholder = '';
|
|
5223
|
-
this.value = '';
|
|
5224
|
-
this.mode = 'default';
|
|
5225
|
-
this.size = 'medium';
|
|
5226
|
-
this.iconName = undefined;
|
|
5227
|
-
this.status = 'default';
|
|
5228
|
-
this.disabled = false;
|
|
5229
|
-
this.required = false;
|
|
5230
|
-
this.searchBehavior = false;
|
|
5231
|
-
this.caseSensitive = true;
|
|
5232
|
-
this.maxHeight = '285px';
|
|
5233
|
-
this.isHovered = false;
|
|
5234
|
-
this.isFocused = false;
|
|
5235
|
-
this.isOpen = false;
|
|
5236
|
-
this.options = undefined;
|
|
5237
|
-
this.activeIndex = -1;
|
|
5238
|
-
this.textInput = '';
|
|
5239
5592
|
}
|
|
5240
5593
|
updateOptionHighlights(newActiveINdex) {
|
|
5241
5594
|
this.options.forEach((option, index) => (option.active = index === newActiveINdex));
|
|
@@ -5297,13 +5650,14 @@ const CuraSelect = class {
|
|
|
5297
5650
|
* Initializes the options for the select component.
|
|
5298
5651
|
*/
|
|
5299
5652
|
componentWillLoad() {
|
|
5300
|
-
this.initializeOptions();
|
|
5653
|
+
// this.initializeOptions();
|
|
5301
5654
|
}
|
|
5302
5655
|
/**
|
|
5303
5656
|
* Lifecycle method called after the component is rendered.
|
|
5304
5657
|
* Initializes select-related functionality.
|
|
5305
5658
|
*/
|
|
5306
5659
|
componentDidLoad() {
|
|
5660
|
+
this.initializeOptions();
|
|
5307
5661
|
this.setupMutationObserver();
|
|
5308
5662
|
this.addOutsideClickListener();
|
|
5309
5663
|
}
|
|
@@ -5452,13 +5806,13 @@ const CuraSelect = class {
|
|
|
5452
5806
|
document.removeEventListener('click', this.handleClickOutside);
|
|
5453
5807
|
}
|
|
5454
5808
|
render() {
|
|
5455
|
-
return (h(Host, { key: '
|
|
5809
|
+
return (h(Host, { key: '3aeecef0bff82a4b14c4dee8b222fdf6eb33b2f8', style: this.styles, role: "combobox", "aria-label": this.label, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error') }, h("div", { key: '00dd10ed04cd3bf0e848d9facc44db794e3580cf', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (h("cura-label", { key: 'd0c7293af9ba728293f2b531c2cc0354ba6f9fa0', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && h("span", { key: '2d1e87303eab87280dc8668e390bd5aa696814d9', class: "required" }, "* "))), h("div", { key: 'd0e8464016796145e088f459532a37dfb1852f96', class: {
|
|
5456
5810
|
'cura-input-field': true,
|
|
5457
5811
|
'open': this.isOpen,
|
|
5458
|
-
} }, this.renderIcon(), h("input", { key: '
|
|
5812
|
+
} }, this.renderIcon(), h("input", { key: '8110997e13827855169e58bfee9695a60bf4dbfa', type: "text", autocomplete: "off", onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyNavigation, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error'), onInput: this.handleInputChange, style: this.styles, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.textInput, readonly: this.searchBehavior ? null : true }), h("button", { key: '7b9b18aebd379b004c08f4bcdb4c72357f29c56c', class: "up-down-button" }, h("cura-icon", { key: '4e1fac2b43502e38db450e319e2283b97ed22fd7', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), h("cura-label", { key: '8e89021a023d6ff69a2adb2fe1b9052d1d813d06', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, h("slot", { key: 'a253ffc9f1f1ee84c9dcbc81dc3a650c5105c11e' })), this.isOpen && (h("div", { key: '938f552bebac510a7345c8e7b46d2ef911c19e12', class: {
|
|
5459
5813
|
menu: true,
|
|
5460
5814
|
open: this.isOpen,
|
|
5461
|
-
}, style: { '--max-height': this.maxHeight } }, h("slot", { key: '
|
|
5815
|
+
}, style: { '--max-height': this.maxHeight } }, h("slot", { key: '2d54c15bb8df7dfe33fac77cee7778c450946cf7', name: "option" }))))));
|
|
5462
5816
|
}
|
|
5463
5817
|
static get formAssociated() { return true; }
|
|
5464
5818
|
get host() { return getElement(this); }
|
|
@@ -5468,20 +5822,18 @@ const CuraSelect = class {
|
|
|
5468
5822
|
"value": ["handleValueChange"]
|
|
5469
5823
|
}; }
|
|
5470
5824
|
};
|
|
5471
|
-
CuraSelect.style =
|
|
5825
|
+
CuraSelect.style = curaSelectCss;
|
|
5472
5826
|
|
|
5473
5827
|
const curaSelectOptionCss = ":host{display:block}.item{display:flex;padding:12px 8px;cursor:pointer;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--neutral-purewhite)}.item.selected{background-color:var(--primary-lighter-50);border-bottom:1px solid var(--primary-light)}.item:hover:not(.selected){background:var(--neutral-white);border-bottom:1px solid var(--neutral-light)}.item.active{background:var(--neutral-white) !important;border-bottom:1px solid var(--neutral-light)}.item.selected.active{background-color:var(--primary-lighter-50) !important;box-shadow:none}";
|
|
5474
|
-
const CuraSelectOptionStyle0 = curaSelectOptionCss;
|
|
5475
5828
|
|
|
5476
5829
|
const CuraSelectOption = class {
|
|
5477
5830
|
constructor(hostRef) {
|
|
5478
5831
|
registerInstance(this, hostRef);
|
|
5479
|
-
this.theme = window.CuraAPI.theme;
|
|
5480
|
-
this.value = undefined;
|
|
5481
5832
|
this.selected = false;
|
|
5482
5833
|
this.active = false;
|
|
5483
5834
|
this.size = 'small';
|
|
5484
5835
|
this.styles = {};
|
|
5836
|
+
this.theme = window.CuraAPI.theme;
|
|
5485
5837
|
}
|
|
5486
5838
|
connectedCallback() {
|
|
5487
5839
|
const colors = [
|
|
@@ -5515,17 +5867,14 @@ const CuraSelectOption = class {
|
|
|
5515
5867
|
"size": ["getSize"]
|
|
5516
5868
|
}; }
|
|
5517
5869
|
};
|
|
5518
|
-
CuraSelectOption.style =
|
|
5870
|
+
CuraSelectOption.style = curaSelectOptionCss;
|
|
5519
5871
|
|
|
5520
5872
|
const curaTabsCss = ":host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none;min-width:120px;width:fit-content;display:flex;align-items:center;justify-content:center;border-radius:4px 4px 0 0}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button.border-bottom,:host a.border-bottom{border-bottom:1px solid var(--border-bottom-color)}:host button:not(.disabled,.selected):hover,:host a:not(.disabled,.selected):hover{background-color:var(--background-color-hover)}:host button:not(.disabled,.selected):hover.light,:host a:not(.disabled,.selected):hover.light{border-bottom-color:var(--primary-dark)}:host button:not(.disabled,.selected):hover.dark,:host a:not(.disabled,.selected):hover.dark{border-bottom-color:var(--neutral-purewhite)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px) calc(var(--cura-spacing-base) * 2px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px)}:host button:focus,:host a:focus{border:2px solid var(--primary-light)}:host button cura-icon,:host a cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.selected,:host a.selected{cursor:pointer;background-color:var(--background-color-selected)}:host button.selected.disabled,:host a.selected.disabled{background-color:var(--background-disabled-selected)}:host button.disabled,:host a.disabled{cursor:not-allowed}";
|
|
5521
|
-
const CuraTabsStyle0 = curaTabsCss;
|
|
5522
5873
|
|
|
5523
5874
|
const CuraTabs = class {
|
|
5524
5875
|
constructor(hostRef) {
|
|
5525
5876
|
registerInstance(this, hostRef);
|
|
5526
|
-
this.tabSelect = createEvent(this, "tabSelect"
|
|
5527
|
-
this.name = undefined;
|
|
5528
|
-
this.iconName = undefined;
|
|
5877
|
+
this.tabSelect = createEvent(this, "tabSelect");
|
|
5529
5878
|
this.selected = false;
|
|
5530
5879
|
this.disabled = false;
|
|
5531
5880
|
this.borderBottom = true;
|
|
@@ -5615,15 +5964,14 @@ const CuraTabs = class {
|
|
|
5615
5964
|
"colorMode": ["setColors"]
|
|
5616
5965
|
}; }
|
|
5617
5966
|
};
|
|
5618
|
-
CuraTabs.style =
|
|
5967
|
+
CuraTabs.style = curaTabsCss;
|
|
5619
5968
|
|
|
5620
5969
|
const curaTabsGroupCss = ":host{display:flex;gap:var(--gap)}:host(.border-bottom){position:relative}:host(.border-bottom)::after{content:\"\";position:absolute;bottom:0;left:0;right:0;height:1px;background:var(--border-color);z-index:0}::slotted(cura-tabs),::slotted(cura-tabs-transparent){position:relative;z-index:1}";
|
|
5621
|
-
const CuraTabsGroupStyle0 = curaTabsGroupCss;
|
|
5622
5970
|
|
|
5623
5971
|
const CuraTabsGroup = class {
|
|
5624
5972
|
constructor(hostRef) {
|
|
5625
5973
|
registerInstance(this, hostRef);
|
|
5626
|
-
this.tabChange = createEvent(this, "tabChange"
|
|
5974
|
+
this.tabChange = createEvent(this, "tabChange");
|
|
5627
5975
|
this.gap = 0;
|
|
5628
5976
|
this.borderBottom = true;
|
|
5629
5977
|
this.colorMode = 'light';
|
|
@@ -5651,8 +5999,9 @@ const CuraTabsGroup = class {
|
|
|
5651
5999
|
}
|
|
5652
6000
|
get host() { return getElement(this); }
|
|
5653
6001
|
};
|
|
5654
|
-
CuraTabsGroup.style =
|
|
6002
|
+
CuraTabsGroup.style = curaTabsGroupCss;
|
|
5655
6003
|
|
|
5656
6004
|
export { CuraAccordion as cura_accordion, CuraAccordionItem as cura_accordion_item, CuraAvatar as cura_avatar, CuraDistance as cura_badge_distance, CuraButton as cura_button, CuraButtonTransparent as cura_button_transparent, CuraDropdownSearch as cura_dropdown_search, CuraDropdownSearchCategory as cura_dropdown_search_category, CuraDropdownSearchOption as cura_dropdown_search_option, CuraHeading as cura_heading, CuraIcon as cura_icon, CuraInputText as cura_input_text, CuraLabel as cura_label, CuraLoaderCircle as cura_loader_circle, CuraPageTemplate as cura_page_template, CuraParagraph as cura_paragraph, CuraSelect as cura_select, CuraSelectOption as cura_select_option, CuraTabs as cura_tabs, CuraTabsGroup as cura_tabs_group };
|
|
6005
|
+
//# sourceMappingURL=cura-accordion.cura-accordion-item.cura-avatar.cura-badge-distance.cura-button.cura-button-transparent.cura-dropdown-search.cura-dropdown-search-category.cura-dropdown-search-option.cura-heading.cura-icon.cura-input-text.cura-label.cura-loader-circle.cura-page-template.cura-paragraph.cura-select.cura-select-option.cura-tabs.cura-tabs-group.entry.js.map
|
|
5657
6006
|
|
|
5658
6007
|
//# sourceMappingURL=cura-accordion_20.entry.js.map
|