@rededor/cura 1.7.1 → 1.8.1
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/cjs/cura-accordion_20.cjs.entry.js +484 -137
- 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/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 +113 -33
- 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-calendar2.js → p-BGnJiNyu.js} +210 -100
- package/dist/components/p-BGnJiNyu.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-select2.js → p-BTt-pVTn.js} +86 -30
- package/dist/components/p-BTt-pVTn.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-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-9759f26f.entry.js +2 -0
- package/dist/cura/p-9759f26f.entry.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-48f9289b.js → p-sjLA93YY.js} +1 -1
- package/dist/cura/p-sjLA93YY.js.map +1 -0
- package/dist/esm/cura-accordion_20.entry.js +483 -134
- 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 +5 -5
- 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-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-daf422ce.entry.js +0 -2
- package/dist/cura/p-daf422ce.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,19 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const curaIcon_definitions = require('./cura-icon.definitions-5223028b.js');
|
|
9
|
-
const curaTabs_definitions = require('./cura-tabs.definitions-b8955ad4.js');
|
|
3
|
+
var index = require('./index-BK9MSAiE.js');
|
|
4
|
+
var curaButton_definitions = require('./cura-button.definitions-B3SK8MaV.js');
|
|
5
|
+
var curaThemeModule = require('./cura-theme-module-CJkmAxBA.js');
|
|
6
|
+
var curaIcon_definitions = require('./cura-icon.definitions-DT0wF67y.js');
|
|
7
|
+
var curaTabs_definitions = require('./cura-tabs.definitions-CGqqGE2e.js');
|
|
10
8
|
|
|
11
9
|
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)}";
|
|
12
|
-
const CuraAccordionStyle0 = curaAccordionCss;
|
|
13
10
|
|
|
14
11
|
const CuraAccordion = class {
|
|
15
12
|
constructor(hostRef) {
|
|
16
13
|
index.registerInstance(this, hostRef);
|
|
14
|
+
/**
|
|
15
|
+
* Color scheme base color
|
|
16
|
+
*/
|
|
17
|
+
this.color = 'primary';
|
|
18
|
+
/**
|
|
19
|
+
* Set the color mode to dark or light
|
|
20
|
+
*/
|
|
21
|
+
this.colorMode = 'dark';
|
|
22
|
+
/**
|
|
23
|
+
* Accordion items icons
|
|
24
|
+
*/
|
|
25
|
+
this.iconSize = 20;
|
|
26
|
+
this.labelIcon = '';
|
|
27
|
+
this.openIcon = 'down';
|
|
28
|
+
this.closeIcon = 'up';
|
|
29
|
+
/**
|
|
30
|
+
* Color scheme base color
|
|
31
|
+
* (By default, the icon will use the same color of 'color')
|
|
32
|
+
*/
|
|
33
|
+
this.iconColor = '';
|
|
34
|
+
/**
|
|
35
|
+
* Accordion behavior when item is clicked
|
|
36
|
+
* (The default will close all items except the current one)
|
|
37
|
+
*/
|
|
38
|
+
this.behavior = 'default';
|
|
39
|
+
/**
|
|
40
|
+
* Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...
|
|
41
|
+
* Values: 1 to 6 (3 default).
|
|
42
|
+
*/
|
|
43
|
+
this.level = 3;
|
|
17
44
|
this.mutationObserverCallback = (mutations, _) => {
|
|
18
45
|
var _a;
|
|
19
46
|
for (const mutation of mutations) {
|
|
@@ -35,15 +62,6 @@ const CuraAccordion = class {
|
|
|
35
62
|
}
|
|
36
63
|
};
|
|
37
64
|
this.mutationObserver = new MutationObserver(this.mutationObserverCallback);
|
|
38
|
-
this.color = 'primary';
|
|
39
|
-
this.colorMode = 'dark';
|
|
40
|
-
this.iconSize = 20;
|
|
41
|
-
this.labelIcon = '';
|
|
42
|
-
this.openIcon = 'down';
|
|
43
|
-
this.closeIcon = 'up';
|
|
44
|
-
this.iconColor = '';
|
|
45
|
-
this.behavior = 'default';
|
|
46
|
-
this.level = 3;
|
|
47
65
|
this.styles = {};
|
|
48
66
|
}
|
|
49
67
|
handleChangeColor() {
|
|
@@ -93,21 +111,38 @@ const CuraAccordion = class {
|
|
|
93
111
|
"color": ["handleChangeColor"]
|
|
94
112
|
}; }
|
|
95
113
|
};
|
|
96
|
-
CuraAccordion.style =
|
|
114
|
+
CuraAccordion.style = curaAccordionCss;
|
|
97
115
|
|
|
98
116
|
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}}";
|
|
99
|
-
const CuraAccordionItemStyle0 = curaAccordionItemCss;
|
|
100
117
|
|
|
101
118
|
const CuraAccordionItem = class {
|
|
102
119
|
constructor(hostRef) {
|
|
103
120
|
index.registerInstance(this, hostRef);
|
|
121
|
+
/**
|
|
122
|
+
* Text label for accordion item
|
|
123
|
+
*/
|
|
104
124
|
this.label = '';
|
|
125
|
+
/** ***Properties below are inherited from the cura-accordion*** */
|
|
126
|
+
/**
|
|
127
|
+
* Accordion items icons
|
|
128
|
+
*/
|
|
105
129
|
this.iconSize = 20;
|
|
106
130
|
this.labelIcon = '';
|
|
107
131
|
this.openIcon = 'down';
|
|
108
132
|
this.closeIcon = 'up';
|
|
133
|
+
/**
|
|
134
|
+
* Color scheme base color
|
|
135
|
+
* (By default, the icon will use the same color of 'color')
|
|
136
|
+
*/
|
|
109
137
|
this.iconColor = '';
|
|
138
|
+
/**
|
|
139
|
+
* Set the color mode to dark or light
|
|
140
|
+
*/
|
|
110
141
|
this.colorMode = 'dark';
|
|
142
|
+
/**
|
|
143
|
+
* Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...
|
|
144
|
+
* Values: 1 to 6 (3 default).
|
|
145
|
+
*/
|
|
111
146
|
this.level = 3;
|
|
112
147
|
this.opened = false;
|
|
113
148
|
this.styles = {};
|
|
@@ -131,7 +166,7 @@ const CuraAccordionItem = class {
|
|
|
131
166
|
return (index.h(index.Host, { key: '3dd53ab4a597b1726045ec4d3ed066c6c30050d0', slot: "accordion-item" }, index.h("div", { key: '209291c7c9b587ac546e8b9e40b7d94a11a2489e', class: this.getClasses(), style: this.styles }, index.h("div", { key: '9c2de1103c7f30bc9d2cb0a86fc660c98b94be84', class: "label", onClick: e => this.accordionItemClick(e) }, index.h("div", { key: '052a8be2c00edf3907e49970120d9b65937ab031', class: "label-container" }, index.h("div", { key: 'da543cdbcb0c0d5f691c3d2fcabfbfc9ec46f506', class: "label-content" }, this.renderIcon(), index.h("cura-heading", { key: 'f587de080f2c1779ffacf0b557827c24edf5e1ee', size: "small", level: this.level, weight: 'bold', "margin-block": "0", color: "neutral-black" }, this.label)), index.h("cura-icon", { key: '611b48e32dfd7056a563aab56401feb3c8febee2', name: this.opened ? this.closeIcon : this.openIcon, size: this.iconSize, color: "neutral-black" }))), index.h("div", { key: 'e1d5e606f3e9415570a2a5c2ba3d96264d430bd0', class: 'content' }, index.h("div", { key: '62b76ef21093a4d051120e2502936049a186c36a', class: "content-wrapper" }, index.h("slot", { key: '646b3d0163edf473c1a2e824f251f4db85b2fc18' }))))));
|
|
132
167
|
}
|
|
133
168
|
};
|
|
134
|
-
CuraAccordionItem.style =
|
|
169
|
+
CuraAccordionItem.style = curaAccordionItemCss;
|
|
135
170
|
|
|
136
171
|
const avatarSizes = {
|
|
137
172
|
'80': { border: 2.5 },
|
|
@@ -141,20 +176,36 @@ const avatarSizes = {
|
|
|
141
176
|
};
|
|
142
177
|
|
|
143
178
|
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%}";
|
|
144
|
-
const CuraAvatarStyle0 = curaAvatarCss;
|
|
145
179
|
|
|
146
180
|
const CuraAvatar = class {
|
|
147
181
|
constructor(hostRef) {
|
|
148
182
|
index.registerInstance(this, hostRef);
|
|
183
|
+
/**
|
|
184
|
+
* Size of the avatar. Values: 80, 40, 32, 24.
|
|
185
|
+
* @default 80
|
|
186
|
+
*/
|
|
149
187
|
this.size = '80';
|
|
188
|
+
/**
|
|
189
|
+
* Background color of the avatar.
|
|
190
|
+
* Accepts any color from the theme.
|
|
191
|
+
* @default neutral-purewhite
|
|
192
|
+
*/
|
|
150
193
|
this.backgroundColor = 'neutral-purewhite';
|
|
151
|
-
|
|
194
|
+
/**
|
|
195
|
+
* Border radius of the avatar.
|
|
196
|
+
* @default 50%
|
|
197
|
+
*/
|
|
152
198
|
this.borderRadius = '50%';
|
|
199
|
+
/**
|
|
200
|
+
* Show border of the avatar.
|
|
201
|
+
* @default false
|
|
202
|
+
*/
|
|
153
203
|
this.border = false;
|
|
204
|
+
/**
|
|
205
|
+
* Type of the avatar.
|
|
206
|
+
* @default default
|
|
207
|
+
*/
|
|
154
208
|
this.type = 'default';
|
|
155
|
-
this.imageSrc = undefined;
|
|
156
|
-
this.imageSrcDefault = undefined;
|
|
157
|
-
this.floating = undefined;
|
|
158
209
|
this.styles = {};
|
|
159
210
|
}
|
|
160
211
|
sizeHandler(size) {
|
|
@@ -190,20 +241,19 @@ const CuraAvatar = class {
|
|
|
190
241
|
"size": ["sizeHandler"]
|
|
191
242
|
}; }
|
|
192
243
|
};
|
|
193
|
-
CuraAvatar.style =
|
|
244
|
+
CuraAvatar.style = curaAvatarCss;
|
|
194
245
|
|
|
195
246
|
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)}";
|
|
196
|
-
const CuraBadgeDistanceStyle0 = curaBadgeDistanceCss;
|
|
197
247
|
|
|
198
248
|
const CuraDistance = class {
|
|
199
249
|
constructor(hostRef) {
|
|
200
250
|
index.registerInstance(this, hostRef);
|
|
201
|
-
this.isThousandRounded = false;
|
|
202
|
-
this.theme = window.CuraAPI.theme;
|
|
203
251
|
this.distance = 0;
|
|
204
252
|
this.label = 'km';
|
|
205
253
|
this.styles = {};
|
|
206
254
|
this.displayDistance = 0;
|
|
255
|
+
this.isThousandRounded = false;
|
|
256
|
+
this.theme = window.CuraAPI.theme;
|
|
207
257
|
}
|
|
208
258
|
formatDistance() {
|
|
209
259
|
const roundedDistance = this.distance % 1 !== 0 ? parseFloat(this.distance.toFixed(1)) : this.distance;
|
|
@@ -227,10 +277,9 @@ const CuraDistance = class {
|
|
|
227
277
|
"distance": ["formatDistance"]
|
|
228
278
|
}; }
|
|
229
279
|
};
|
|
230
|
-
CuraDistance.style =
|
|
280
|
+
CuraDistance.style = curaBadgeDistanceCss;
|
|
231
281
|
|
|
232
282
|
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}";
|
|
233
|
-
const CuraButtonStyle0 = curaButtonCss;
|
|
234
283
|
|
|
235
284
|
const CuraButton = class {
|
|
236
285
|
constructor(hostRef) {
|
|
@@ -242,20 +291,59 @@ const CuraButton = class {
|
|
|
242
291
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
243
292
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
244
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* Button type: button (default) | submit | reset
|
|
296
|
+
*/
|
|
245
297
|
this.type = 'button';
|
|
298
|
+
/**
|
|
299
|
+
* Button size: small | medium | large (default)
|
|
300
|
+
*/
|
|
246
301
|
this.size = 'large';
|
|
302
|
+
/**
|
|
303
|
+
* Disabled state. Boolean.
|
|
304
|
+
*/
|
|
247
305
|
this.disabled = false;
|
|
306
|
+
/**
|
|
307
|
+
* Loading state. Boolean.
|
|
308
|
+
*/
|
|
248
309
|
this.isLoading = false;
|
|
249
|
-
|
|
310
|
+
/**
|
|
311
|
+
* Custom iconset if needed.
|
|
312
|
+
*/
|
|
250
313
|
this.iconset = 'default';
|
|
314
|
+
/**
|
|
315
|
+
* Icon position: left (default) | right.
|
|
316
|
+
*/
|
|
251
317
|
this.iconPosition = 'left';
|
|
318
|
+
/**
|
|
319
|
+
* Set button to FAB/icon only.
|
|
320
|
+
*/
|
|
252
321
|
this.iconOnly = false;
|
|
253
|
-
|
|
322
|
+
/**
|
|
323
|
+
* Set target if link.
|
|
324
|
+
*/
|
|
254
325
|
this.target = "_self";
|
|
326
|
+
/**
|
|
327
|
+
* Color base from color scheme. Default: accent.
|
|
328
|
+
*/
|
|
255
329
|
this.color = 'accent';
|
|
330
|
+
/**
|
|
331
|
+
* Set the background color to dark or light.
|
|
332
|
+
*/
|
|
256
333
|
this.background = 'light';
|
|
334
|
+
/**
|
|
335
|
+
* Set the font color to dark or light.
|
|
336
|
+
*/
|
|
257
337
|
this.fontColor = 'dark';
|
|
338
|
+
/**
|
|
339
|
+
* Set text aligment for the button label.
|
|
340
|
+
* Vales: left (default) | center | right.
|
|
341
|
+
*/
|
|
258
342
|
this.textAlign = 'left';
|
|
343
|
+
/**
|
|
344
|
+
* Justify icons and label inside the button.
|
|
345
|
+
* Vales: false (default) | true.
|
|
346
|
+
*/
|
|
259
347
|
this.justify = false;
|
|
260
348
|
this.styles = {};
|
|
261
349
|
this.hovered = false;
|
|
@@ -336,10 +424,9 @@ const CuraButton = class {
|
|
|
336
424
|
"color": ["setColors"]
|
|
337
425
|
}; }
|
|
338
426
|
};
|
|
339
|
-
CuraButton.style =
|
|
427
|
+
CuraButton.style = curaButtonCss;
|
|
340
428
|
|
|
341
429
|
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}";
|
|
342
|
-
const CuraButtonTransparentStyle0 = curaButtonTransparentCss;
|
|
343
430
|
|
|
344
431
|
const CuraButtonTransparent = class {
|
|
345
432
|
constructor(hostRef) {
|
|
@@ -351,19 +438,56 @@ const CuraButtonTransparent = class {
|
|
|
351
438
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
352
439
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
353
440
|
}
|
|
441
|
+
/**
|
|
442
|
+
* Button type: button (default) | submit | reset
|
|
443
|
+
*/
|
|
354
444
|
this.type = 'button';
|
|
445
|
+
/**
|
|
446
|
+
* Button size: small | medium | large (default)
|
|
447
|
+
*/
|
|
355
448
|
this.size = 'large';
|
|
449
|
+
/**
|
|
450
|
+
* Disabled state. Boolean.
|
|
451
|
+
*/
|
|
356
452
|
this.disabled = false;
|
|
453
|
+
/**
|
|
454
|
+
* Loading state. Boolean.
|
|
455
|
+
*/
|
|
357
456
|
this.isLoading = false;
|
|
358
|
-
|
|
457
|
+
/**
|
|
458
|
+
* Custom iconset if needed.
|
|
459
|
+
*/
|
|
359
460
|
this.iconset = 'default';
|
|
461
|
+
/**
|
|
462
|
+
* Icon position: left (default) | right.
|
|
463
|
+
*/
|
|
360
464
|
this.iconPosition = 'left';
|
|
465
|
+
/**
|
|
466
|
+
* Set button to FAB/icon only.
|
|
467
|
+
*/
|
|
361
468
|
this.iconOnly = false;
|
|
362
|
-
|
|
469
|
+
/**
|
|
470
|
+
* Set target if link.
|
|
471
|
+
*/
|
|
363
472
|
this.target = "_self";
|
|
473
|
+
/**
|
|
474
|
+
* Color base from color scheme. Default: accent.
|
|
475
|
+
*/
|
|
364
476
|
this.color = 'primary';
|
|
477
|
+
/**
|
|
478
|
+
* Set the font color to dark or light.
|
|
479
|
+
* Default: dark.
|
|
480
|
+
*/
|
|
365
481
|
this.fontColor = 'dark';
|
|
482
|
+
/**
|
|
483
|
+
* Set text aligment for the button label.
|
|
484
|
+
* Vales: left (default) | center | right.
|
|
485
|
+
*/
|
|
366
486
|
this.textAlign = 'left';
|
|
487
|
+
/**
|
|
488
|
+
* Justify icons and label inside the button.
|
|
489
|
+
* Vales: false (default) | true.
|
|
490
|
+
*/
|
|
367
491
|
this.justify = false;
|
|
368
492
|
this.hovered = false;
|
|
369
493
|
this.styles = {};
|
|
@@ -433,10 +557,10 @@ const CuraButtonTransparent = class {
|
|
|
433
557
|
"color": ["getSymbolColor"]
|
|
434
558
|
}; }
|
|
435
559
|
};
|
|
436
|
-
CuraButtonTransparent.style =
|
|
560
|
+
CuraButtonTransparent.style = curaButtonTransparentCss;
|
|
437
561
|
|
|
438
562
|
function checkMobile() {
|
|
439
|
-
return (window === null || window === void 0 ? void 0 : window.innerWidth) <
|
|
563
|
+
return (window === null || window === void 0 ? void 0 : window.innerWidth) < curaThemeModule.Static.breakpoints.medium.min;
|
|
440
564
|
}
|
|
441
565
|
function checkIOS() {
|
|
442
566
|
return [
|
|
@@ -527,17 +651,71 @@ class FixedElementScrollBehavior {
|
|
|
527
651
|
}
|
|
528
652
|
|
|
529
653
|
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}";
|
|
530
|
-
const CuraDropdownSearchStyle0 = curaDropdownSearchCss;
|
|
531
654
|
|
|
532
655
|
const CuraDropdownSearch = class {
|
|
533
656
|
constructor(hostRef) {
|
|
534
657
|
index.registerInstance(this, hostRef);
|
|
535
|
-
this.termchange = index.createEvent(this, "termchange"
|
|
536
|
-
this.optionselect = index.createEvent(this, "optionselect"
|
|
658
|
+
this.termchange = index.createEvent(this, "termchange");
|
|
659
|
+
this.optionselect = index.createEvent(this, "optionselect");
|
|
660
|
+
/**
|
|
661
|
+
* Size of the dropdown search component
|
|
662
|
+
* Values: 'small', 'medium' or 'large' (default).
|
|
663
|
+
*/
|
|
664
|
+
this.size = 'large';
|
|
665
|
+
/**
|
|
666
|
+
* Define component status.
|
|
667
|
+
* Values: 'error' or 'default'.
|
|
668
|
+
*/
|
|
669
|
+
this.status = 'default';
|
|
670
|
+
/**
|
|
671
|
+
* Disabled state. Default: false.
|
|
672
|
+
*/
|
|
673
|
+
this.disabled = false;
|
|
674
|
+
/**
|
|
675
|
+
* Field is required. Default: false.
|
|
676
|
+
*/
|
|
677
|
+
this.required = false;
|
|
678
|
+
/**
|
|
679
|
+
* The placeholder text.
|
|
680
|
+
*/
|
|
681
|
+
this.placeholder = '';
|
|
682
|
+
/**
|
|
683
|
+
* The label.
|
|
684
|
+
*/
|
|
685
|
+
this.label = '';
|
|
686
|
+
/**
|
|
687
|
+
* Custom icon name. Default: search.
|
|
688
|
+
*/
|
|
689
|
+
this.icon = 'search';
|
|
690
|
+
/**
|
|
691
|
+
* CSS max-height property for dropdown item.
|
|
692
|
+
* Can also be used by css property --max-height.
|
|
693
|
+
* Default: 400px
|
|
694
|
+
*/
|
|
695
|
+
this.maxheight = '400px';
|
|
696
|
+
/**
|
|
697
|
+
* Readonly property value.
|
|
698
|
+
* Represents the term on the search input field.
|
|
699
|
+
*/
|
|
700
|
+
this.value = '';
|
|
701
|
+
/**
|
|
702
|
+
* Delay in milliseconds to dispatch search events.
|
|
703
|
+
* Default: 400
|
|
704
|
+
*/
|
|
705
|
+
this.searchdelay = 400;
|
|
706
|
+
/**
|
|
707
|
+
* Min chars to dispatch search events.
|
|
708
|
+
* Default: 3
|
|
709
|
+
*/
|
|
710
|
+
this.searchminchars = 3;
|
|
711
|
+
this.styles = {};
|
|
712
|
+
this.zoomState = false;
|
|
713
|
+
this.isOnFocus = false;
|
|
537
714
|
this.resizeTimeoutMs = 66;
|
|
538
715
|
this.focusTimeoutMs = 500;
|
|
539
716
|
this.blurTimeoutMs = 300;
|
|
540
717
|
this.highlightedIndex = -1;
|
|
718
|
+
this.dropdownItems = [];
|
|
541
719
|
this.dropdownSelectableItems = [];
|
|
542
720
|
this.handleSlotChange = () => { this.getSlotElements(); };
|
|
543
721
|
this.handleWindowResize = () => {
|
|
@@ -617,22 +795,6 @@ const CuraDropdownSearch = class {
|
|
|
617
795
|
ev.preventDefault();
|
|
618
796
|
ev.stopPropagation();
|
|
619
797
|
};
|
|
620
|
-
this.name = undefined;
|
|
621
|
-
this.size = 'large';
|
|
622
|
-
this.status = 'default';
|
|
623
|
-
this.disabled = false;
|
|
624
|
-
this.required = false;
|
|
625
|
-
this.placeholder = '';
|
|
626
|
-
this.label = '';
|
|
627
|
-
this.icon = 'search';
|
|
628
|
-
this.maxheight = '400px';
|
|
629
|
-
this.value = '';
|
|
630
|
-
this.searchdelay = 400;
|
|
631
|
-
this.searchminchars = 3;
|
|
632
|
-
this.styles = {};
|
|
633
|
-
this.zoomState = false;
|
|
634
|
-
this.isOnFocus = false;
|
|
635
|
-
this.dropdownItems = [];
|
|
636
798
|
}
|
|
637
799
|
/**
|
|
638
800
|
* Set focus to input field.
|
|
@@ -805,10 +967,9 @@ const CuraDropdownSearch = class {
|
|
|
805
967
|
}
|
|
806
968
|
get host() { return index.getElement(this); }
|
|
807
969
|
};
|
|
808
|
-
CuraDropdownSearch.style =
|
|
970
|
+
CuraDropdownSearch.style = curaDropdownSearchCss;
|
|
809
971
|
|
|
810
972
|
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}";
|
|
811
|
-
const CuraDropdownSearchCategoryStyle0 = curaDropdownSearchCategoryCss;
|
|
812
973
|
|
|
813
974
|
const CuraDropdownSearchCategory = class {
|
|
814
975
|
constructor(hostRef) {
|
|
@@ -825,23 +986,34 @@ const CuraDropdownSearchCategory = class {
|
|
|
825
986
|
return (index.h(index.Host, { key: '511391a8c6c1c998b04e3093838173ae76549715' }, index.h("div", { key: '63da720bb3d2cc354ef5f1e9ceaf0f2f9c396f4e', class: "component-container", style: this.styles }, index.h("cura-heading", { key: 'ba003607e581d4abaf2e6d617f94e3174d04a4b3', size: 'xsmall', weight: 'bold', color: 'neutral-dark', marginBlock: '0', lineHeight: '1em' }, index.h("slot", { key: '80b14ff99b42a64082895db81b4dbe78cd7545a3' })))));
|
|
826
987
|
}
|
|
827
988
|
};
|
|
828
|
-
CuraDropdownSearchCategory.style =
|
|
989
|
+
CuraDropdownSearchCategory.style = curaDropdownSearchCategoryCss;
|
|
829
990
|
|
|
830
991
|
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}";
|
|
831
|
-
const CuraDropdownSearchOptionStyle0 = curaDropdownSearchOptionCss;
|
|
832
992
|
|
|
833
993
|
const CuraDropdownSearchOption = class {
|
|
834
994
|
constructor(hostRef) {
|
|
835
995
|
index.registerInstance(this, hostRef);
|
|
836
|
-
this.actionclick = index.createEvent(this, "actionclick"
|
|
837
|
-
this.selectoption = index.createEvent(this, "selectoption"
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
996
|
+
this.actionclick = index.createEvent(this, "actionclick");
|
|
997
|
+
this.selectoption = index.createEvent(this, "selectoption");
|
|
998
|
+
/**
|
|
999
|
+
* Enable selection for this option.
|
|
1000
|
+
* Default is true.
|
|
1001
|
+
*/
|
|
842
1002
|
this.selectable = true;
|
|
1003
|
+
/**
|
|
1004
|
+
* Selected state.
|
|
1005
|
+
* This will be managed by the parent component.
|
|
1006
|
+
* Default is false.
|
|
1007
|
+
*/
|
|
843
1008
|
this.selected = false;
|
|
1009
|
+
/**
|
|
1010
|
+
* Highlighted state.
|
|
1011
|
+
* This will be managed by the parent component.
|
|
1012
|
+
* Default is false.
|
|
1013
|
+
*/
|
|
844
1014
|
this.highlighted = false;
|
|
1015
|
+
this.styles = {};
|
|
1016
|
+
this.theme = window.CuraAPI.theme;
|
|
845
1017
|
}
|
|
846
1018
|
connectedCallback() {
|
|
847
1019
|
this.styles = {
|
|
@@ -877,24 +1049,50 @@ const CuraDropdownSearchOption = class {
|
|
|
877
1049
|
return (index.h(index.Host, { key: '6168a95a628d07878f472c310390bf9c45bd5057' }, index.h("div", { key: '29763282f101a9fbe205c91e7b3c70fa51878e63', class: this.getClasses(), style: this.styles }, index.h("div", { key: '46bd7a250ad866b984e6f4184aa4800e89b741c9', class: "selectable-container", onClick: () => this.handleSelect() }, index.h("slot", { key: '77088405f3cc4f077e49a4266fb926348774d9e9', name: 'image' }), index.h("div", { key: '96baef2af4ffe7c5ec809a5adbd0512120b6c71c', class: "content" }, index.h("slot", { key: 'e41794e8eaff6bfe1516e88e8591ca915eb7ad3f' }))), index.h("div", { key: '991bca3b0956519b531d576a1738bc3f200cc73f', class: "actions-container", onClick: () => this.handleActionsClick() }, index.h("slot", { key: '098e8c29ab48ef8e0cfff2a48a31860eafb62487', name: 'actions' })))));
|
|
878
1050
|
}
|
|
879
1051
|
};
|
|
880
|
-
CuraDropdownSearchOption.style =
|
|
1052
|
+
CuraDropdownSearchOption.style = curaDropdownSearchOptionCss;
|
|
881
1053
|
|
|
882
1054
|
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}}";
|
|
883
|
-
const CuraHeadingStyle0 = curaHeadingCss;
|
|
884
1055
|
|
|
885
1056
|
const CuraHeading = class {
|
|
886
1057
|
constructor(hostRef) {
|
|
887
1058
|
index.registerInstance(this, hostRef);
|
|
888
|
-
|
|
1059
|
+
/**
|
|
1060
|
+
* Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...
|
|
1061
|
+
* Values: 1(default) to 6.
|
|
1062
|
+
*/
|
|
889
1063
|
this.level = 1;
|
|
1064
|
+
/**
|
|
1065
|
+
* Heading style size.
|
|
1066
|
+
* Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.
|
|
1067
|
+
*/
|
|
890
1068
|
this.size = 'medium';
|
|
1069
|
+
/**
|
|
1070
|
+
* Heading font weight. It is possible to use regular HTML tags like <b> or <strong> as well.
|
|
1071
|
+
* Values: regular (default) | bold.
|
|
1072
|
+
*/
|
|
891
1073
|
this.weight = 'regular';
|
|
1074
|
+
/**
|
|
1075
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text.
|
|
1076
|
+
* Values: Color from design system scheme. Default to 'accent-dark'.
|
|
1077
|
+
*/
|
|
892
1078
|
this.spotColor = 'accent-dark';
|
|
893
|
-
|
|
1079
|
+
/**
|
|
1080
|
+
* CSS margin-block property values.
|
|
1081
|
+
* Default to 1.25em
|
|
1082
|
+
*/
|
|
894
1083
|
this.marginBlock = '1.25em';
|
|
1084
|
+
/**
|
|
1085
|
+
* CSS line-height property values.
|
|
1086
|
+
* Default to 130%
|
|
1087
|
+
*/
|
|
895
1088
|
this.lineHeight = '130%';
|
|
1089
|
+
/**
|
|
1090
|
+
* Apply text-overflow ellipsis definitions.
|
|
1091
|
+
* Default to none
|
|
1092
|
+
*/
|
|
896
1093
|
this.textOverflow = 'none';
|
|
897
1094
|
this.styles = {};
|
|
1095
|
+
this.theme = window.CuraAPI.theme;
|
|
898
1096
|
}
|
|
899
1097
|
connectedCallback() {
|
|
900
1098
|
this.setFontProperties();
|
|
@@ -947,17 +1145,15 @@ const CuraHeading = class {
|
|
|
947
1145
|
}
|
|
948
1146
|
get host() { return index.getElement(this); }
|
|
949
1147
|
};
|
|
950
|
-
CuraHeading.style =
|
|
1148
|
+
CuraHeading.style = curaHeadingCss;
|
|
951
1149
|
|
|
952
1150
|
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}";
|
|
953
|
-
const CuraIconStyle0 = curaIconCss;
|
|
954
1151
|
|
|
955
1152
|
const CuraIcon = class {
|
|
956
1153
|
constructor(hostRef) {
|
|
957
1154
|
index.registerInstance(this, hostRef);
|
|
958
1155
|
this.name = '';
|
|
959
1156
|
this.color = 'neutral-base';
|
|
960
|
-
this.size = undefined;
|
|
961
1157
|
this.iconset = 'default';
|
|
962
1158
|
this.disabled = false;
|
|
963
1159
|
}
|
|
@@ -989,7 +1185,7 @@ const CuraIcon = class {
|
|
|
989
1185
|
"disabled": ["colorHandler"]
|
|
990
1186
|
}; }
|
|
991
1187
|
};
|
|
992
|
-
CuraIcon.style =
|
|
1188
|
+
CuraIcon.style = curaIconCss;
|
|
993
1189
|
|
|
994
1190
|
/** Checks if value is string */
|
|
995
1191
|
function isString(str) {
|
|
@@ -1500,7 +1696,7 @@ class InputHistory {
|
|
|
1500
1696
|
return this.go(-1);
|
|
1501
1697
|
}
|
|
1502
1698
|
redo() {
|
|
1503
|
-
return this.go(
|
|
1699
|
+
return this.go(1);
|
|
1504
1700
|
}
|
|
1505
1701
|
clear() {
|
|
1506
1702
|
this.states.length = 0;
|
|
@@ -4635,13 +4831,12 @@ const maskOptions = {
|
|
|
4635
4831
|
};
|
|
4636
4832
|
|
|
4637
4833
|
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}";
|
|
4638
|
-
const CuraInputTextStyle0 = curaInputTextCss;
|
|
4639
4834
|
|
|
4640
4835
|
const CuraInputText = class {
|
|
4641
4836
|
constructor(hostRef) {
|
|
4642
4837
|
index.registerInstance(this, hostRef);
|
|
4643
|
-
this.valueChange = index.createEvent(this, "valueChange"
|
|
4644
|
-
this.inputClear = index.createEvent(this, "inputClear"
|
|
4838
|
+
this.valueChange = index.createEvent(this, "valueChange");
|
|
4839
|
+
this.inputClear = index.createEvent(this, "inputClear");
|
|
4645
4840
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
4646
4841
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
4647
4842
|
}
|
|
@@ -4649,31 +4844,89 @@ const CuraInputText = class {
|
|
|
4649
4844
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
4650
4845
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
4651
4846
|
}
|
|
4847
|
+
/**
|
|
4848
|
+
* Mode of the input: 'default' or 'transparent' (default: 'default')
|
|
4849
|
+
*/
|
|
4652
4850
|
this.mode = 'default';
|
|
4851
|
+
/**
|
|
4852
|
+
* Indicates input status(default: default)
|
|
4853
|
+
*/
|
|
4653
4854
|
this.status = 'default';
|
|
4855
|
+
/**
|
|
4856
|
+
* Size of the input mode default: 'small', 'medium', or 'large' (default: 'medium')
|
|
4857
|
+
*/
|
|
4654
4858
|
this.size = 'medium';
|
|
4859
|
+
/**
|
|
4860
|
+
* Type of the input: 'text', 'number' (default: 'text')
|
|
4861
|
+
*/
|
|
4655
4862
|
this.type = 'text';
|
|
4863
|
+
/**
|
|
4864
|
+
* Type of the input: 'text', 'number' (default: 'text')
|
|
4865
|
+
*/
|
|
4656
4866
|
this.inputMode = 'text';
|
|
4867
|
+
/**
|
|
4868
|
+
* Label text for the input
|
|
4869
|
+
*/
|
|
4657
4870
|
this.label = '';
|
|
4871
|
+
/**
|
|
4872
|
+
* Name text for the input
|
|
4873
|
+
*/
|
|
4658
4874
|
this.name = '';
|
|
4875
|
+
/**
|
|
4876
|
+
* Placeholder text for the input
|
|
4877
|
+
*/
|
|
4659
4878
|
this.placeholder = null;
|
|
4879
|
+
/**
|
|
4880
|
+
* Value of the input field
|
|
4881
|
+
*/
|
|
4660
4882
|
this.value = '';
|
|
4883
|
+
/**
|
|
4884
|
+
* Whether to display a cura icon (default: null)
|
|
4885
|
+
*/
|
|
4661
4886
|
this.iconName = '';
|
|
4662
|
-
|
|
4887
|
+
/**
|
|
4888
|
+
* Whether the input is disabled (default: false)
|
|
4889
|
+
*/
|
|
4663
4890
|
this.disabled = false;
|
|
4891
|
+
/**
|
|
4892
|
+
* Whether the input is required (default: false)
|
|
4893
|
+
*/
|
|
4664
4894
|
this.required = false;
|
|
4665
|
-
|
|
4895
|
+
/*
|
|
4896
|
+
* Controls whether the selection functionality is active
|
|
4897
|
+
*/
|
|
4666
4898
|
this.enableSelectionMode = false;
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4899
|
+
/**
|
|
4900
|
+
* Whether the input is read-only (default: false)
|
|
4901
|
+
*/
|
|
4670
4902
|
this.readOnly = false;
|
|
4903
|
+
/**
|
|
4904
|
+
* Whether the input is in loading state (default: false)
|
|
4905
|
+
*/
|
|
4671
4906
|
this.isLoading = false;
|
|
4907
|
+
/**
|
|
4908
|
+
* Internal state: Whether the input is hovered (default: false)
|
|
4909
|
+
*/
|
|
4672
4910
|
this.isHovered = false;
|
|
4911
|
+
/**
|
|
4912
|
+
* Internal state: Whether the input is focused (default: false)
|
|
4913
|
+
*/
|
|
4673
4914
|
this.isFocused = false;
|
|
4915
|
+
/**
|
|
4916
|
+
* Internal state: Styles object for dynamic styling
|
|
4917
|
+
*/
|
|
4674
4918
|
this.styles = {};
|
|
4919
|
+
/**
|
|
4920
|
+
* Icon button name for the clear button (default: 'closeCircle')
|
|
4921
|
+
*/
|
|
4675
4922
|
this.clearIcon = true;
|
|
4923
|
+
/**
|
|
4924
|
+
* Removes the alertCircle icon when necessary(as used in CuraDropdownSearch)
|
|
4925
|
+
*/
|
|
4676
4926
|
this.hideErrorIcon = false;
|
|
4927
|
+
/**
|
|
4928
|
+
* Defines whether the input should have autocomplete
|
|
4929
|
+
*/
|
|
4677
4930
|
this.autocomplete = 'on';
|
|
4678
4931
|
}
|
|
4679
4932
|
async setFocus() {
|
|
@@ -4962,23 +5215,45 @@ const CuraInputText = class {
|
|
|
4962
5215
|
"maskAdvanced": ["initializeMask"]
|
|
4963
5216
|
}; }
|
|
4964
5217
|
};
|
|
4965
|
-
CuraInputText.style =
|
|
5218
|
+
CuraInputText.style = curaInputTextCss;
|
|
4966
5219
|
|
|
4967
5220
|
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}";
|
|
4968
|
-
const CuraLabelStyle0 = curaLabelCss;
|
|
4969
5221
|
|
|
4970
5222
|
const CuraLabel = class {
|
|
4971
5223
|
constructor(hostRef) {
|
|
4972
5224
|
index.registerInstance(this, hostRef);
|
|
4973
|
-
|
|
5225
|
+
/**
|
|
5226
|
+
* Set size of body text.
|
|
5227
|
+
* Values: medium (default) | large | small | xsmall.
|
|
5228
|
+
*/
|
|
4974
5229
|
this.size = 'medium';
|
|
5230
|
+
/**
|
|
5231
|
+
* Label font weight. It is possible to use regular HTML tags like <b> or <strong> as well.
|
|
5232
|
+
* Values: regular (default) | bold.
|
|
5233
|
+
*/
|
|
4975
5234
|
this.weight = 'regular';
|
|
5235
|
+
/**
|
|
5236
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text.
|
|
5237
|
+
* Values: Color from design system scheme. Default to 'accent-dark'.
|
|
5238
|
+
*/
|
|
4976
5239
|
this.spotColor = 'accent-dark';
|
|
4977
|
-
|
|
5240
|
+
/**
|
|
5241
|
+
* CSS margin-block property values.
|
|
5242
|
+
* Default to 1.25em
|
|
5243
|
+
*/
|
|
4978
5244
|
this.marginBlock = '0';
|
|
5245
|
+
/**
|
|
5246
|
+
* CSS line-height property values.
|
|
5247
|
+
* Default to 140%
|
|
5248
|
+
*/
|
|
4979
5249
|
this.lineHeight = '125%';
|
|
5250
|
+
/**
|
|
5251
|
+
* Apply text-overflow ellipsis definitions.
|
|
5252
|
+
* Default to none
|
|
5253
|
+
*/
|
|
4980
5254
|
this.textOverflow = 'none';
|
|
4981
5255
|
this.styles = {};
|
|
5256
|
+
this.theme = window.CuraAPI.theme;
|
|
4982
5257
|
}
|
|
4983
5258
|
handleChangeColor() {
|
|
4984
5259
|
this.setColors();
|
|
@@ -5027,14 +5302,21 @@ const CuraLabel = class {
|
|
|
5027
5302
|
"spotColor": ["handleChangeColor"]
|
|
5028
5303
|
}; }
|
|
5029
5304
|
};
|
|
5030
|
-
CuraLabel.style =
|
|
5305
|
+
CuraLabel.style = curaLabelCss;
|
|
5031
5306
|
|
|
5032
5307
|
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)}}";
|
|
5033
|
-
const CuraLoaderCircleStyle0 = curaLoaderCircleCss;
|
|
5034
5308
|
|
|
5035
5309
|
const CuraLoaderCircle = class {
|
|
5036
5310
|
constructor(hostRef) {
|
|
5037
5311
|
index.registerInstance(this, hostRef);
|
|
5312
|
+
/**
|
|
5313
|
+
* Loader size. Values: small, medium or large.
|
|
5314
|
+
*/
|
|
5315
|
+
this.size = 'medium';
|
|
5316
|
+
/**
|
|
5317
|
+
* One from color scheme. Default: neutral-white.
|
|
5318
|
+
*/
|
|
5319
|
+
this.color = 'neutral-white';
|
|
5038
5320
|
this.sizes = {
|
|
5039
5321
|
xlarge: 32,
|
|
5040
5322
|
large: 24,
|
|
@@ -5043,8 +5325,6 @@ const CuraLoaderCircle = class {
|
|
|
5043
5325
|
default: 16,
|
|
5044
5326
|
};
|
|
5045
5327
|
this.getPxSize = () => this.sizes[this.size] || this.sizes['default'];
|
|
5046
|
-
this.size = 'medium';
|
|
5047
|
-
this.color = 'neutral-white';
|
|
5048
5328
|
}
|
|
5049
5329
|
getStyles() {
|
|
5050
5330
|
return {
|
|
@@ -5056,10 +5336,9 @@ const CuraLoaderCircle = class {
|
|
|
5056
5336
|
return (index.h(index.Host, { key: '09f72e4ec206571c1bfb4333a76da3113f2b386d', style: this.getStyles(), role: "progressbar" }, index.h("svg", { key: 'd446c093c9ae6c1ebca50e023f2eba592f37eb07', viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { key: '8d8bf0fefcb924af391977d672f777face8bf24f' }, index.h("circle", { key: 'd77eaba65fc61c265b7c495e95dae22d9732732b', cx: "8", cy: "8", r: "7", stroke: "url(#paint0_linear_13485_11488)", "stroke-width": "2" }), index.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" })), index.h("defs", { key: '6291d976f90dd54aecaead32f8314e977dad4c3f' }, index.h("linearGradient", { key: '8f213ed3cb1e55f9aae79f18d43f414b48f45a19', id: "paint0_linear_13485_11488", x1: "15.7", y1: "4.5", x2: "4.15", y2: "11.5", gradientUnits: "userSpaceOnUse" }, index.h("stop", { key: 'c723178770cb0d49746a72fff6c9c8dc7fbb07b4' }), index.h("stop", { key: '07bb208a3ca3f3b7a317b1e2386dc9cf683fd155', offset: "1" }))))));
|
|
5057
5337
|
}
|
|
5058
5338
|
};
|
|
5059
|
-
CuraLoaderCircle.style =
|
|
5339
|
+
CuraLoaderCircle.style = curaLoaderCircleCss;
|
|
5060
5340
|
|
|
5061
5341
|
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}}";
|
|
5062
|
-
const CuraPageTemplateStyle0 = curaPageTemplateCss;
|
|
5063
5342
|
|
|
5064
5343
|
const CuraPageTemplate = class {
|
|
5065
5344
|
constructor(hostRef) {
|
|
@@ -5081,22 +5360,40 @@ const CuraPageTemplate = class {
|
|
|
5081
5360
|
}
|
|
5082
5361
|
get host() { return index.getElement(this); }
|
|
5083
5362
|
};
|
|
5084
|
-
CuraPageTemplate.style =
|
|
5363
|
+
CuraPageTemplate.style = curaPageTemplateCss;
|
|
5085
5364
|
|
|
5086
5365
|
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}}";
|
|
5087
|
-
const CuraParagraphStyle0 = curaParagraphCss;
|
|
5088
5366
|
|
|
5089
5367
|
const CuraParagraph = class {
|
|
5090
5368
|
constructor(hostRef) {
|
|
5091
5369
|
index.registerInstance(this, hostRef);
|
|
5092
|
-
|
|
5370
|
+
/**
|
|
5371
|
+
* Set size of body text.
|
|
5372
|
+
* Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.
|
|
5373
|
+
*/
|
|
5093
5374
|
this.size = 'medium';
|
|
5375
|
+
/**
|
|
5376
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text.
|
|
5377
|
+
* Values: Color from design system scheme. Default to 'accent-dark'.
|
|
5378
|
+
*/
|
|
5094
5379
|
this.spotColor = 'accent-dark';
|
|
5095
|
-
|
|
5380
|
+
/**
|
|
5381
|
+
* CSS margin-block property values.
|
|
5382
|
+
* Default to 1.25em
|
|
5383
|
+
*/
|
|
5096
5384
|
this.marginBlock = '1.25em';
|
|
5385
|
+
/**
|
|
5386
|
+
* CSS line-height property values.
|
|
5387
|
+
* Default to 140%
|
|
5388
|
+
*/
|
|
5097
5389
|
this.lineHeight = '140%';
|
|
5390
|
+
/**
|
|
5391
|
+
* Apply text-overflow ellipsis definitions.
|
|
5392
|
+
* Default to none
|
|
5393
|
+
*/
|
|
5098
5394
|
this.textOverflow = 'none';
|
|
5099
5395
|
this.styles = {};
|
|
5396
|
+
this.theme = window.CuraAPI.theme;
|
|
5100
5397
|
}
|
|
5101
5398
|
connectedCallback() {
|
|
5102
5399
|
this.setFontProperties();
|
|
@@ -5135,16 +5432,15 @@ const CuraParagraph = class {
|
|
|
5135
5432
|
}
|
|
5136
5433
|
get host() { return index.getElement(this); }
|
|
5137
5434
|
};
|
|
5138
|
-
CuraParagraph.style =
|
|
5435
|
+
CuraParagraph.style = curaParagraphCss;
|
|
5139
5436
|
|
|
5140
5437
|
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}";
|
|
5141
|
-
const CuraSelectStyle0 = curaSelectCss;
|
|
5142
5438
|
|
|
5143
5439
|
const CuraSelect = class {
|
|
5144
5440
|
constructor(hostRef) {
|
|
5145
5441
|
index.registerInstance(this, hostRef);
|
|
5146
|
-
this.selected = index.createEvent(this, "selected"
|
|
5147
|
-
this.searchTermInput = index.createEvent(this, "searchTermInput"
|
|
5442
|
+
this.selected = index.createEvent(this, "selected");
|
|
5443
|
+
this.searchTermInput = index.createEvent(this, "searchTermInput");
|
|
5148
5444
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
5149
5445
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
5150
5446
|
}
|
|
@@ -5152,6 +5448,79 @@ const CuraSelect = class {
|
|
|
5152
5448
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
5153
5449
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
5154
5450
|
}
|
|
5451
|
+
/**
|
|
5452
|
+
* The label text for the select component.
|
|
5453
|
+
* Reflects as an attribute in the DOM.
|
|
5454
|
+
*/
|
|
5455
|
+
this.label = '';
|
|
5456
|
+
/**
|
|
5457
|
+
* Placeholder text for the input field.
|
|
5458
|
+
* Reflects as an attribute in the DOM.
|
|
5459
|
+
*/
|
|
5460
|
+
this.placeholder = '';
|
|
5461
|
+
/**
|
|
5462
|
+
* Current value of the select component.
|
|
5463
|
+
* Reflects as an attribute in the DOM and is mutable.
|
|
5464
|
+
*/
|
|
5465
|
+
this.value = '';
|
|
5466
|
+
/**
|
|
5467
|
+
* Display mode of the select component.
|
|
5468
|
+
* Can be 'default' or 'transparent'.
|
|
5469
|
+
*/
|
|
5470
|
+
this.mode = 'default';
|
|
5471
|
+
/**
|
|
5472
|
+
* Size of the select component.
|
|
5473
|
+
* Can be 'small', 'medium', or 'large'.
|
|
5474
|
+
*/
|
|
5475
|
+
this.size = 'medium';
|
|
5476
|
+
/**
|
|
5477
|
+
* Status of the select component.
|
|
5478
|
+
* Can be 'success', 'error', or 'default'.
|
|
5479
|
+
*/
|
|
5480
|
+
this.status = 'default';
|
|
5481
|
+
/**
|
|
5482
|
+
* Whether the select component is disabled.
|
|
5483
|
+
* Reflects as an attribute in the DOM.
|
|
5484
|
+
*/
|
|
5485
|
+
this.disabled = false;
|
|
5486
|
+
/**
|
|
5487
|
+
* Whether the select component is required.
|
|
5488
|
+
* Reflects as an attribute in the DOM.
|
|
5489
|
+
*/
|
|
5490
|
+
this.required = false;
|
|
5491
|
+
/**
|
|
5492
|
+
* Enable / Disable search at options by term.
|
|
5493
|
+
* Default: false
|
|
5494
|
+
*/
|
|
5495
|
+
this.searchBehavior = false;
|
|
5496
|
+
/**
|
|
5497
|
+
* The search will be sensitive to accents.
|
|
5498
|
+
* Default: true
|
|
5499
|
+
*/
|
|
5500
|
+
this.caseSensitive = true;
|
|
5501
|
+
/**
|
|
5502
|
+
* CSS max-height property for dropdown item.
|
|
5503
|
+
* Can also be used by css property --max-height.
|
|
5504
|
+
* Default: 285px
|
|
5505
|
+
*/
|
|
5506
|
+
this.maxHeight = '285px';
|
|
5507
|
+
/**
|
|
5508
|
+
* Internal state: Whether the input is hovered.
|
|
5509
|
+
* Default: false
|
|
5510
|
+
*/
|
|
5511
|
+
this.isHovered = false;
|
|
5512
|
+
/**
|
|
5513
|
+
* Internal state: Whether the input is focused.
|
|
5514
|
+
* Default: false
|
|
5515
|
+
*/
|
|
5516
|
+
this.isFocused = false;
|
|
5517
|
+
/**
|
|
5518
|
+
* Internal state: Whether the dropdown menu is open.
|
|
5519
|
+
* Default: false
|
|
5520
|
+
*/
|
|
5521
|
+
this.isOpen = false;
|
|
5522
|
+
this.activeIndex = -1;
|
|
5523
|
+
this.textInput = '';
|
|
5155
5524
|
/**
|
|
5156
5525
|
* Styles to be applied to the component.
|
|
5157
5526
|
*/
|
|
@@ -5222,24 +5591,6 @@ const CuraSelect = class {
|
|
|
5222
5591
|
this.isOpen = false;
|
|
5223
5592
|
}
|
|
5224
5593
|
};
|
|
5225
|
-
this.label = '';
|
|
5226
|
-
this.placeholder = '';
|
|
5227
|
-
this.value = '';
|
|
5228
|
-
this.mode = 'default';
|
|
5229
|
-
this.size = 'medium';
|
|
5230
|
-
this.iconName = undefined;
|
|
5231
|
-
this.status = 'default';
|
|
5232
|
-
this.disabled = false;
|
|
5233
|
-
this.required = false;
|
|
5234
|
-
this.searchBehavior = false;
|
|
5235
|
-
this.caseSensitive = true;
|
|
5236
|
-
this.maxHeight = '285px';
|
|
5237
|
-
this.isHovered = false;
|
|
5238
|
-
this.isFocused = false;
|
|
5239
|
-
this.isOpen = false;
|
|
5240
|
-
this.options = undefined;
|
|
5241
|
-
this.activeIndex = -1;
|
|
5242
|
-
this.textInput = '';
|
|
5243
5594
|
}
|
|
5244
5595
|
updateOptionHighlights(newActiveINdex) {
|
|
5245
5596
|
this.options.forEach((option, index) => (option.active = index === newActiveINdex));
|
|
@@ -5308,6 +5659,7 @@ const CuraSelect = class {
|
|
|
5308
5659
|
* Initializes select-related functionality.
|
|
5309
5660
|
*/
|
|
5310
5661
|
componentDidLoad() {
|
|
5662
|
+
// this.initializeOptions();
|
|
5311
5663
|
this.setupMutationObserver();
|
|
5312
5664
|
this.addOutsideClickListener();
|
|
5313
5665
|
}
|
|
@@ -5456,13 +5808,13 @@ const CuraSelect = class {
|
|
|
5456
5808
|
document.removeEventListener('click', this.handleClickOutside);
|
|
5457
5809
|
}
|
|
5458
5810
|
render() {
|
|
5459
|
-
return (index.h(index.Host, { key: '
|
|
5811
|
+
return (index.h(index.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') }, index.h("div", { key: '00dd10ed04cd3bf0e848d9facc44db794e3580cf', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (index.h("cura-label", { key: 'd0c7293af9ba728293f2b531c2cc0354ba6f9fa0', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && index.h("span", { key: '2d1e87303eab87280dc8668e390bd5aa696814d9', class: "required" }, "* "))), index.h("div", { key: 'd0e8464016796145e088f459532a37dfb1852f96', class: {
|
|
5460
5812
|
'cura-input-field': true,
|
|
5461
5813
|
'open': this.isOpen,
|
|
5462
|
-
} }, this.renderIcon(), index.h("input", { key: '
|
|
5814
|
+
} }, this.renderIcon(), index.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 }), index.h("button", { key: '7b9b18aebd379b004c08f4bcdb4c72357f29c56c', class: "up-down-button" }, index.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" }))), index.h("cura-label", { key: '8e89021a023d6ff69a2adb2fe1b9052d1d813d06', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, index.h("slot", { key: 'a253ffc9f1f1ee84c9dcbc81dc3a650c5105c11e' })), this.isOpen && (index.h("div", { key: '938f552bebac510a7345c8e7b46d2ef911c19e12', class: {
|
|
5463
5815
|
menu: true,
|
|
5464
5816
|
open: this.isOpen,
|
|
5465
|
-
}, style: { '--max-height': this.maxHeight } }, index.h("slot", { key: '
|
|
5817
|
+
}, style: { '--max-height': this.maxHeight } }, index.h("slot", { key: '2d54c15bb8df7dfe33fac77cee7778c450946cf7', name: "option" }))))));
|
|
5466
5818
|
}
|
|
5467
5819
|
static get formAssociated() { return true; }
|
|
5468
5820
|
get host() { return index.getElement(this); }
|
|
@@ -5472,20 +5824,18 @@ const CuraSelect = class {
|
|
|
5472
5824
|
"value": ["handleValueChange"]
|
|
5473
5825
|
}; }
|
|
5474
5826
|
};
|
|
5475
|
-
CuraSelect.style =
|
|
5827
|
+
CuraSelect.style = curaSelectCss;
|
|
5476
5828
|
|
|
5477
5829
|
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}";
|
|
5478
|
-
const CuraSelectOptionStyle0 = curaSelectOptionCss;
|
|
5479
5830
|
|
|
5480
5831
|
const CuraSelectOption = class {
|
|
5481
5832
|
constructor(hostRef) {
|
|
5482
5833
|
index.registerInstance(this, hostRef);
|
|
5483
|
-
this.theme = window.CuraAPI.theme;
|
|
5484
|
-
this.value = undefined;
|
|
5485
5834
|
this.selected = false;
|
|
5486
5835
|
this.active = false;
|
|
5487
5836
|
this.size = 'small';
|
|
5488
5837
|
this.styles = {};
|
|
5838
|
+
this.theme = window.CuraAPI.theme;
|
|
5489
5839
|
}
|
|
5490
5840
|
connectedCallback() {
|
|
5491
5841
|
const colors = [
|
|
@@ -5519,17 +5869,14 @@ const CuraSelectOption = class {
|
|
|
5519
5869
|
"size": ["getSize"]
|
|
5520
5870
|
}; }
|
|
5521
5871
|
};
|
|
5522
|
-
CuraSelectOption.style =
|
|
5872
|
+
CuraSelectOption.style = curaSelectOptionCss;
|
|
5523
5873
|
|
|
5524
5874
|
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}";
|
|
5525
|
-
const CuraTabsStyle0 = curaTabsCss;
|
|
5526
5875
|
|
|
5527
5876
|
const CuraTabs = class {
|
|
5528
5877
|
constructor(hostRef) {
|
|
5529
5878
|
index.registerInstance(this, hostRef);
|
|
5530
|
-
this.tabSelect = index.createEvent(this, "tabSelect"
|
|
5531
|
-
this.name = undefined;
|
|
5532
|
-
this.iconName = undefined;
|
|
5879
|
+
this.tabSelect = index.createEvent(this, "tabSelect");
|
|
5533
5880
|
this.selected = false;
|
|
5534
5881
|
this.disabled = false;
|
|
5535
5882
|
this.borderBottom = true;
|
|
@@ -5619,15 +5966,14 @@ const CuraTabs = class {
|
|
|
5619
5966
|
"colorMode": ["setColors"]
|
|
5620
5967
|
}; }
|
|
5621
5968
|
};
|
|
5622
|
-
CuraTabs.style =
|
|
5969
|
+
CuraTabs.style = curaTabsCss;
|
|
5623
5970
|
|
|
5624
5971
|
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}";
|
|
5625
|
-
const CuraTabsGroupStyle0 = curaTabsGroupCss;
|
|
5626
5972
|
|
|
5627
5973
|
const CuraTabsGroup = class {
|
|
5628
5974
|
constructor(hostRef) {
|
|
5629
5975
|
index.registerInstance(this, hostRef);
|
|
5630
|
-
this.tabChange = index.createEvent(this, "tabChange"
|
|
5976
|
+
this.tabChange = index.createEvent(this, "tabChange");
|
|
5631
5977
|
this.gap = 0;
|
|
5632
5978
|
this.borderBottom = true;
|
|
5633
5979
|
this.colorMode = 'light';
|
|
@@ -5655,7 +6001,7 @@ const CuraTabsGroup = class {
|
|
|
5655
6001
|
}
|
|
5656
6002
|
get host() { return index.getElement(this); }
|
|
5657
6003
|
};
|
|
5658
|
-
CuraTabsGroup.style =
|
|
6004
|
+
CuraTabsGroup.style = curaTabsGroupCss;
|
|
5659
6005
|
|
|
5660
6006
|
exports.cura_accordion = CuraAccordion;
|
|
5661
6007
|
exports.cura_accordion_item = CuraAccordionItem;
|
|
@@ -5677,5 +6023,6 @@ exports.cura_select = CuraSelect;
|
|
|
5677
6023
|
exports.cura_select_option = CuraSelectOption;
|
|
5678
6024
|
exports.cura_tabs = CuraTabs;
|
|
5679
6025
|
exports.cura_tabs_group = CuraTabsGroup;
|
|
6026
|
+
//# 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.cjs.js.map
|
|
5680
6027
|
|
|
5681
6028
|
//# sourceMappingURL=cura-accordion_20.cjs.entry.js.map
|