@rededor/cura 0.5.4 → 1.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/iconset-default-list.ts +1 -1
- package/dist/assets/icons/iconset-default-tmp.svg +8 -0
- package/dist/assets/icons/iconset-default.svg +1 -1
- package/dist/cjs/app-globals-bcffd819.js +511 -0
- package/dist/cjs/app-globals-bcffd819.js.map +1 -0
- package/dist/cjs/cura-accordion_9.cjs.entry.js +544 -0
- package/dist/cjs/cura-accordion_9.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-alert.cjs.entry.js +57 -55
- package/dist/cjs/cura-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-avatar.cjs.entry.js +68 -0
- package/dist/cjs/cura-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-button-outline.cjs.entry.js +102 -71
- package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-button-select.cjs.entry.js +91 -85
- package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-button-transparent_2.cjs.entry.js +4055 -0
- package/dist/cjs/cura-button-transparent_2.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-calendar.cjs.entry.js +3913 -0
- package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-card.cjs.entry.js +53 -0
- package/dist/cjs/cura-card.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-checkbox.cjs.entry.js +168 -131
- package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-display.cjs.entry.js +63 -62
- package/dist/cjs/cura-display.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js +22 -0
- package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-dropdown-search-option.cjs.entry.js +55 -0
- package/dist/cjs/cura-dropdown-search-option.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-dropdown-search.cjs.entry.js +209 -0
- package/dist/cjs/cura-dropdown-search.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-forms.definitions-c164f1b8.js +20 -0
- package/dist/cjs/cura-forms.definitions-c164f1b8.js.map +1 -0
- package/dist/cjs/cura-icon.definitions-8d714f6a.js +21 -0
- package/dist/cjs/cura-icon.definitions-8d714f6a.js.map +1 -0
- package/dist/cjs/cura-icons-view.cjs.entry.js +24 -23
- package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-radio.cjs.entry.js +142 -103
- package/dist/cjs/cura-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-select_2.cjs.entry.js +325 -0
- package/dist/cjs/cura-select_2.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-switch.cjs.entry.js +113 -78
- package/dist/cjs/cura-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/cura.cjs.js +13 -22
- package/dist/cjs/cura.cjs.js.map +1 -1
- package/dist/cjs/index-5b63ff7a.js +1529 -0
- package/dist/cjs/index-5b63ff7a.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +6 -31
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/api/cura-api.js +30 -30
- package/dist/collection/api/cura-api.js.map +1 -1
- package/dist/collection/api/cura-api.type.js +2 -2
- package/dist/collection/api/cura-api.type.js.map +1 -1
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js +10 -10
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +1 -1
- package/dist/collection/api/modules/cura-theme-colors-module.js +72 -72
- package/dist/collection/api/modules/cura-theme-colors-module.js.map +1 -1
- package/dist/collection/api/modules/cura-theme-fonts-module.js +28 -28
- package/dist/collection/api/modules/cura-theme-fonts-module.js.map +1 -1
- package/dist/collection/api/modules/cura-theme-module.js +66 -66
- package/dist/collection/api/modules/cura-theme-module.js.map +1 -1
- package/dist/collection/api/modules/cura-theme-spacing-module.js +9 -9
- package/dist/collection/api/modules/cura-theme-spacing-module.js.map +1 -1
- package/dist/collection/api/theme-presets/static.js +63 -63
- package/dist/collection/api/theme-presets/static.js.map +1 -1
- package/dist/collection/api/theme-presets/theme-default.js +41 -41
- package/dist/collection/api/theme-presets/theme-default.js.map +1 -1
- package/dist/collection/api/theme-presets/theme-legacy-default.js +24 -24
- package/dist/collection/api/theme-presets/theme-legacy-default.js.map +1 -1
- package/dist/collection/api/theme-presets/theme-maternity.js +38 -38
- package/dist/collection/api/theme-presets/theme-maternity.js.map +1 -1
- package/dist/collection/api/theme-presets/theme-oncology.js +46 -46
- package/dist/collection/api/theme-presets/theme-oncology.js.map +1 -1
- package/dist/collection/api/theme-presets/theme-presets.js +8 -8
- package/dist/collection/api/theme-presets/theme-presets.js.map +1 -1
- package/dist/collection/assets/icons/iconset-default-list.js +1 -1
- package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
- package/dist/collection/assets/icons/iconset-default-tmp.svg +8 -0
- package/dist/collection/assets/icons/iconset-default.svg +1 -1
- package/dist/collection/assets/images/avatar/doctor-default.svg +8 -0
- package/dist/collection/assets/images/avatar/dora-default.svg +5 -0
- package/dist/collection/assets/images/avatar/patient-default.svg +12 -0
- package/dist/collection/assets/images/avatar/unit-default.svg +9 -0
- package/dist/collection/assets/images/logoCura.svg +15 -0
- package/dist/collection/assets-raw/icons/default/contacts.svg +3 -0
- package/dist/collection/assets-raw/icons/default/scheduleCancel.svg +3 -0
- package/dist/collection/collection-manifest.json +29 -21
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +267 -267
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +1 -1
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +127 -127
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +1 -1
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +196 -196
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +1 -1
- package/dist/collection/components/buttons/cura-button/cura-button.css +112 -46
- package/dist/collection/components/buttons/cura-button/cura-button.js +368 -306
- package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -1
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js +184 -159
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +37 -64
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +374 -306
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +184 -159
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +36 -23
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +265 -260
- 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.css +32 -50
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +339 -306
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +172 -159
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +1 -1
- package/dist/collection/components/cura-alert/cura-alert.js +182 -164
- package/dist/collection/components/cura-alert/cura-alert.js.map +1 -1
- package/dist/collection/components/cura-alert/cura-alert.stories.js +90 -77
- package/dist/collection/components/cura-alert/cura-alert.stories.js.map +1 -1
- package/dist/collection/components/cura-avatar/cura-avatar.css +24 -0
- package/dist/collection/components/cura-avatar/cura-avatar.definitions.js +7 -0
- package/dist/collection/components/cura-avatar/cura-avatar.definitions.js.map +1 -0
- package/dist/collection/components/cura-avatar/cura-avatar.js +231 -0
- package/dist/collection/components/cura-avatar/cura-avatar.js.map +1 -0
- package/dist/collection/components/cura-avatar/cura-avatar.stories.js +198 -0
- package/dist/collection/components/cura-avatar/cura-avatar.stories.js.map +1 -0
- package/dist/collection/components/cura-calendar/cura-calendar.css +181 -0
- package/dist/collection/components/cura-calendar/cura-calendar.js +681 -0
- package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -0
- package/dist/collection/components/cura-calendar/cura-calendar.stories.js +126 -0
- package/dist/collection/components/cura-calendar/cura-calendar.stories.js.map +1 -0
- package/dist/collection/components/cura-card/cura-card.css +175 -0
- package/dist/collection/components/cura-card/cura-card.js +201 -0
- package/dist/collection/components/cura-card/cura-card.js.map +1 -0
- package/dist/collection/components/cura-card/cura-card.stories.js +127 -0
- package/dist/collection/components/cura-card/cura-card.stories.js.map +1 -0
- package/dist/collection/components/cura-icon/cura-icon.definitions.js +11 -11
- package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +1 -1
- package/dist/collection/components/cura-icon/cura-icon.js +151 -151
- package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
- package/dist/collection/components/cura-icon/cura-icon.stories.js +60 -60
- package/dist/collection/components/cura-icon/cura-icon.stories.js.map +1 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +37 -37
- package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js +7 -7
- package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js.map +1 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js +52 -52
- package/dist/collection/components/cura-page-template/cura-page-template.js.map +1 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.css +19 -11
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +457 -427
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +170 -170
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +1 -1
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.css +50 -0
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +136 -0
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +1 -0
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js +56 -0
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js.map +1 -0
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.css +10 -0
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js +19 -0
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js.map +1 -0
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.css +149 -0
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +384 -0
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js.map +1 -0
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.stories.js +181 -0
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.stories.js.map +1 -0
- package/dist/collection/components/forms/cura-forms.definitions.js +12 -12
- package/dist/collection/components/forms/cura-forms.definitions.js.map +1 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.css +849 -139
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js +732 -641
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +217 -196
- package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +1 -1
- package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +40 -40
- package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +1 -1
- package/dist/collection/components/forms/cura-label/cura-label.js +187 -187
- package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -1
- package/dist/collection/components/forms/cura-label/cura-label.stories.js +108 -108
- package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +1 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.js +395 -363
- package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +150 -150
- package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +1 -1
- package/dist/collection/components/forms/cura-select/cura-select.css +519 -0
- package/dist/collection/components/forms/cura-select/cura-select.js +444 -0
- package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -0
- package/dist/collection/components/forms/cura-select/cura-select.stories.js +144 -0
- package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +1 -0
- package/dist/collection/components/forms/cura-select-options/cura-select-option.css +28 -0
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js +138 -0
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +1 -0
- package/dist/collection/components/forms/cura-switch/cura-switch.css +88 -24
- package/dist/collection/components/forms/cura-switch/cura-switch.js +292 -264
- package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +115 -115
- package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +74 -74
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +41 -41
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +1 -1
- package/dist/collection/components/text/cura-display/cura-display.js +174 -174
- package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
- package/dist/collection/components/text/cura-display/cura-display.stories.js +97 -97
- package/dist/collection/components/text/cura-display/cura-display.stories.js.map +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js +220 -220
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js +117 -117
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +168 -168
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +98 -98
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/rededor-cura-start.js +7 -7
- package/dist/collection/rededor-cura-start.js.map +1 -1
- package/dist/collection/utils/utils.js +11 -11
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/cura-accordion-item.d.ts +2 -2
- package/dist/components/cura-accordion-item.js +62 -61
- package/dist/components/cura-accordion-item.js.map +1 -1
- package/dist/components/cura-accordion.d.ts +2 -2
- package/dist/components/cura-accordion.js +108 -104
- package/dist/components/cura-accordion.js.map +1 -1
- package/dist/components/cura-alert.d.ts +2 -2
- package/dist/components/cura-alert.js +93 -88
- package/dist/components/cura-alert.js.map +1 -1
- package/dist/components/cura-avatar.d.ts +11 -0
- package/dist/components/cura-avatar.js +95 -0
- package/dist/components/cura-avatar.js.map +1 -0
- package/dist/components/cura-button-outline.d.ts +2 -2
- package/dist/components/cura-button-outline.js +147 -109
- package/dist/components/cura-button-outline.js.map +1 -1
- package/dist/components/cura-button-select.d.ts +2 -2
- package/dist/components/cura-button-select.js +129 -113
- package/dist/components/cura-button-select.js.map +1 -1
- package/dist/components/cura-button-transparent.d.ts +2 -2
- package/dist/components/cura-button-transparent.js +1 -116
- package/dist/components/cura-button-transparent.js.map +1 -1
- package/dist/components/cura-button-transparent2.js +144 -0
- package/dist/components/cura-button-transparent2.js.map +1 -0
- package/dist/components/cura-button.d.ts +2 -2
- package/dist/components/cura-button.js +145 -109
- package/dist/components/cura-button.js.map +1 -1
- package/dist/components/cura-calendar.d.ts +11 -0
- package/dist/components/cura-calendar.js +3969 -0
- package/dist/components/cura-calendar.js.map +1 -0
- package/dist/components/cura-card.d.ts +11 -0
- package/dist/components/cura-card.js +75 -0
- package/dist/components/cura-card.js.map +1 -0
- package/dist/components/cura-checkbox.d.ts +2 -2
- package/dist/components/cura-checkbox.js +210 -174
- package/dist/components/cura-checkbox.js.map +1 -1
- package/dist/components/cura-display.d.ts +2 -2
- package/dist/components/cura-display.js +85 -81
- package/dist/components/cura-display.js.map +1 -1
- package/dist/components/cura-dropdown-search-option-title.d.ts +11 -0
- package/dist/components/cura-dropdown-search-option-title.js +42 -0
- package/dist/components/cura-dropdown-search-option-title.js.map +1 -0
- package/dist/components/cura-dropdown-search-option.d.ts +11 -0
- package/dist/components/cura-dropdown-search-option.js +82 -0
- package/dist/components/cura-dropdown-search-option.js.map +1 -0
- package/dist/components/cura-dropdown-search.d.ts +11 -0
- package/dist/components/cura-dropdown-search.js +272 -0
- package/dist/components/cura-dropdown-search.js.map +1 -0
- package/dist/components/cura-forms.definitions.js +12 -12
- package/dist/components/cura-forms.definitions.js.map +1 -1
- package/dist/components/cura-heading.d.ts +2 -2
- package/dist/components/cura-heading2.js +97 -93
- package/dist/components/cura-heading2.js.map +1 -1
- package/dist/components/cura-icon.d.ts +2 -2
- package/dist/components/cura-icon2.js +74 -69
- package/dist/components/cura-icon2.js.map +1 -1
- package/dist/components/cura-icons-view.d.ts +2 -2
- package/dist/components/cura-icons-view.js +57 -56
- package/dist/components/cura-icons-view.js.map +1 -1
- package/dist/components/cura-input-text.d.ts +2 -2
- package/dist/components/cura-input-text.js +1 -3954
- package/dist/components/cura-input-text.js.map +1 -1
- package/dist/{cjs/cura-input-text.cjs.entry.js → components/cura-input-text2.js} +393 -283
- package/dist/components/cura-input-text2.js.map +1 -0
- package/dist/components/cura-label.d.ts +2 -2
- package/dist/components/cura-label2.js +81 -77
- package/dist/components/cura-label2.js.map +1 -1
- package/dist/components/cura-loader-circle.d.ts +2 -2
- package/dist/components/cura-loader-circle2.js +41 -40
- package/dist/components/cura-loader-circle2.js.map +1 -1
- package/dist/components/cura-page-template.d.ts +2 -2
- package/dist/components/cura-page-template.js +36 -35
- package/dist/components/cura-page-template.js.map +1 -1
- package/dist/components/cura-paragraph.d.ts +2 -2
- package/dist/components/cura-paragraph2.js +79 -75
- package/dist/components/cura-paragraph2.js.map +1 -1
- package/dist/components/cura-radio.d.ts +2 -2
- package/dist/components/cura-radio.js +176 -139
- package/dist/components/cura-radio.js.map +1 -1
- package/dist/components/cura-select-option.d.ts +11 -0
- package/dist/components/cura-select-option.js +8 -0
- package/dist/components/cura-select-option.js.map +1 -0
- package/dist/components/cura-select-option2.js +87 -0
- package/dist/components/cura-select-option2.js.map +1 -0
- package/dist/components/cura-select.d.ts +11 -0
- package/dist/components/cura-select.js +8 -0
- package/dist/components/cura-select.js.map +1 -0
- package/dist/components/cura-select2.js +308 -0
- package/dist/components/cura-select2.js.map +1 -0
- package/dist/components/cura-switch.d.ts +2 -2
- package/dist/components/cura-switch.js +138 -105
- package/dist/components/cura-switch.js.map +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +482 -466
- package/dist/components/index.js.map +1 -1
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/cura.esm.js.map +1 -1
- package/dist/cura/index.esm.js.map +1 -1
- package/dist/cura/p-12d75346.entry.js +2 -0
- package/dist/cura/p-12d75346.entry.js.map +1 -0
- package/dist/cura/p-2176f253.entry.js +2 -0
- package/dist/cura/p-2176f253.entry.js.map +1 -0
- package/dist/cura/p-22292bfa.entry.js +2 -0
- package/dist/cura/p-22292bfa.entry.js.map +1 -0
- package/dist/cura/p-2a8be665.entry.js +2 -0
- package/dist/cura/p-2a8be665.entry.js.map +1 -0
- package/dist/cura/p-2d70b515.entry.js +2 -0
- package/dist/cura/p-2d70b515.entry.js.map +1 -0
- package/dist/cura/p-3c2ebc3a.entry.js +2 -0
- package/dist/cura/p-3c2ebc3a.entry.js.map +1 -0
- package/dist/cura/p-45a0a5e8.entry.js +2 -0
- package/dist/cura/p-45a0a5e8.entry.js.map +1 -0
- package/dist/cura/p-586bbe43.js +3 -0
- package/dist/cura/p-586bbe43.js.map +1 -0
- package/dist/cura/p-5d8e3ee3.entry.js +2 -0
- package/dist/cura/p-5d8e3ee3.entry.js.map +1 -0
- package/dist/cura/{p-f8fffdc1.js → p-70c369b1.js} +1 -1
- package/dist/cura/p-70c369b1.js.map +1 -0
- package/dist/cura/p-7c41f034.entry.js +2 -0
- package/dist/cura/p-7c41f034.entry.js.map +1 -0
- package/dist/cura/p-8cecf9e5.entry.js +2 -0
- package/dist/cura/p-8cecf9e5.entry.js.map +1 -0
- package/dist/cura/p-94b5c3b3.entry.js +2 -0
- package/dist/cura/p-94b5c3b3.entry.js.map +1 -0
- package/dist/cura/p-a5456007.entry.js +2 -0
- package/dist/cura/p-a5456007.entry.js.map +1 -0
- package/dist/cura/{p-c791725b.js → p-a7221f0c.js} +1 -1
- package/dist/{esm-es5/cura-icon.definitions-a63d1862.js.map → cura/p-a7221f0c.js.map} +1 -1
- package/dist/cura/p-cd757625.entry.js +2 -0
- package/dist/cura/p-cd757625.entry.js.map +1 -0
- package/dist/cura/p-de870781.entry.js +2 -0
- package/dist/cura/p-de870781.entry.js.map +1 -0
- package/dist/cura/p-e661bcca.entry.js +2 -0
- package/dist/cura/p-e661bcca.entry.js.map +1 -0
- package/dist/cura/p-ee7388a5.entry.js +2 -0
- package/dist/cura/p-ee7388a5.entry.js.map +1 -0
- package/dist/cura/{p-3688570d.js → p-f9b8f665.js} +1 -1
- package/dist/{esm-es5/cura-forms.definitions-0f774253.js.map → cura/p-f9b8f665.js.map} +1 -1
- package/dist/cura/p-fb9bece3.entry.js +2 -0
- package/dist/cura/p-fb9bece3.entry.js.map +1 -0
- package/dist/esm/app-globals-f2da2b14.js +509 -0
- package/dist/esm/app-globals-f2da2b14.js.map +1 -0
- package/dist/esm/cura-accordion_9.entry.js +532 -0
- package/dist/esm/cura-accordion_9.entry.js.map +1 -0
- package/dist/esm/cura-alert.entry.js +57 -55
- package/dist/esm/cura-alert.entry.js.map +1 -1
- package/dist/esm/cura-avatar.entry.js +64 -0
- package/dist/esm/cura-avatar.entry.js.map +1 -0
- package/dist/esm/cura-button-outline.entry.js +102 -71
- package/dist/esm/cura-button-outline.entry.js.map +1 -1
- package/dist/esm/cura-button-select.entry.js +91 -85
- package/dist/esm/cura-button-select.entry.js.map +1 -1
- package/dist/esm/{cura-input-text.entry.js → cura-button-transparent_2.entry.js} +423 -276
- package/dist/esm/cura-button-transparent_2.entry.js.map +1 -0
- package/dist/esm/cura-calendar.entry.js +3909 -0
- package/dist/esm/cura-calendar.entry.js.map +1 -0
- package/dist/esm/cura-card.entry.js +49 -0
- package/dist/esm/cura-card.entry.js.map +1 -0
- package/dist/esm/cura-checkbox.entry.js +168 -131
- package/dist/esm/cura-checkbox.entry.js.map +1 -1
- package/dist/esm/cura-display.entry.js +63 -62
- package/dist/esm/cura-display.entry.js.map +1 -1
- package/dist/esm/cura-dropdown-search-option-title.entry.js +18 -0
- package/dist/esm/cura-dropdown-search-option-title.entry.js.map +1 -0
- package/dist/esm/cura-dropdown-search-option.entry.js +51 -0
- package/dist/esm/cura-dropdown-search-option.entry.js.map +1 -0
- package/dist/esm/cura-dropdown-search.entry.js +205 -0
- package/dist/esm/cura-dropdown-search.entry.js.map +1 -0
- package/dist/esm/cura-forms.definitions-2f963167.js +18 -0
- package/dist/esm/cura-forms.definitions-2f963167.js.map +1 -0
- package/dist/esm/cura-icon.definitions-aaa4e80f.js +18 -0
- package/dist/esm/cura-icon.definitions-aaa4e80f.js.map +1 -0
- package/dist/esm/cura-icons-view.entry.js +24 -23
- package/dist/esm/cura-icons-view.entry.js.map +1 -1
- package/dist/esm/cura-radio.entry.js +142 -103
- package/dist/esm/cura-radio.entry.js.map +1 -1
- package/dist/esm/cura-select_2.entry.js +320 -0
- package/dist/esm/cura-select_2.entry.js.map +1 -0
- package/dist/esm/cura-switch.entry.js +113 -78
- package/dist/esm/cura-switch.entry.js.map +1 -1
- package/dist/esm/cura.js +14 -23
- package/dist/esm/cura.js.map +1 -1
- package/dist/esm/index-b6c443d5.js +1500 -0
- package/dist/esm/index-b6c443d5.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +8 -33
- package/dist/esm/loader.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/loader/cdn.js +1 -3
- package/dist/loader/index.cjs.js +1 -3
- package/dist/loader/index.d.ts +4 -1
- package/dist/loader/index.es2017.js +1 -3
- package/dist/loader/index.js +1 -3
- package/dist/types/api/cura-api.d.ts +3 -3
- package/dist/types/api/cura-api.type.d.ts +44 -44
- package/dist/types/api/modules/cura-theme-breakpoints-module.d.ts +3 -3
- package/dist/types/api/modules/cura-theme-colors-module.d.ts +46 -46
- package/dist/types/api/modules/cura-theme-fonts-module.d.ts +22 -22
- package/dist/types/api/modules/cura-theme-module.d.ts +25 -25
- package/dist/types/api/modules/cura-theme-spacing-module.d.ts +4 -4
- package/dist/types/api/theme-presets/static.d.ts +62 -62
- package/dist/types/api/theme-presets/theme-default.d.ts +38 -38
- package/dist/types/api/theme-presets/theme-legacy-default.d.ts +38 -38
- package/dist/types/api/theme-presets/theme-maternity.d.ts +38 -38
- package/dist/types/api/theme-presets/theme-oncology.d.ts +45 -45
- package/dist/types/api/theme-presets/theme-presets.d.ts +175 -175
- package/dist/types/components/accordion/cura-accordion/cura-accordion.d.ts +37 -37
- package/dist/types/components/accordion/cura-accordion/cura-accordion.stories.d.ts +140 -140
- package/dist/types/components/accordion/cura-accordion-item/cura-accordion-item.d.ts +27 -27
- package/dist/types/components/buttons/cura-button/cura-button.d.ts +70 -59
- package/dist/types/components/buttons/cura-button/cura-button.stories.d.ts +184 -155
- package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +70 -59
- package/dist/types/components/buttons/cura-button-outline/cura-button-outline.stories.d.ts +184 -155
- package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +48 -47
- package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +65 -59
- package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.stories.d.ts +169 -155
- package/dist/types/components/cura-alert/cura-alert.d.ts +14 -13
- package/dist/types/components/cura-alert/cura-alert.stories.d.ts +85 -70
- package/dist/types/components/cura-avatar/cura-avatar.d.ts +24 -0
- package/dist/types/components/cura-avatar/cura-avatar.definitions.d.ts +14 -0
- package/dist/types/components/cura-avatar/cura-avatar.stories.d.ts +167 -0
- package/dist/types/components/cura-calendar/cura-calendar.d.ts +323 -0
- package/dist/types/components/cura-calendar/cura-calendar.stories.d.ts +128 -0
- package/dist/types/components/cura-card/cura-card.d.ts +48 -0
- package/dist/types/components/cura-card/cura-card.stories.d.ts +98 -0
- package/dist/types/components/cura-icon/cura-icon.d.ts +12 -12
- package/dist/types/components/cura-icon/cura-icon.definitions.d.ts +44 -44
- package/dist/types/components/cura-icon/cura-icon.stories.d.ts +56 -56
- package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +6 -6
- package/dist/types/components/cura-icons-view/cura-icons-view.stories.d.ts +3 -3
- package/dist/types/components/cura-page-template/cura-page-template.d.ts +6 -6
- package/dist/types/components/forms/cura-checkbox/cura-checkbox.d.ts +111 -95
- package/dist/types/components/forms/cura-checkbox/cura-checkbox.stories.d.ts +193 -193
- package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.d.ts +27 -0
- package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.d.ts +44 -0
- package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.d.ts +3 -0
- package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.d.ts +103 -0
- package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.stories.d.ts +112 -0
- package/dist/types/components/forms/cura-forms.definitions.d.ts +12 -12
- package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +169 -132
- package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +241 -218
- package/dist/types/components/forms/cura-input-text/mask-presets/input-mask-presets.d.ts +1 -2
- package/dist/types/components/forms/cura-label/cura-label.d.ts +52 -52
- package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +112 -112
- package/dist/types/components/forms/cura-radio/cura-radio.d.ts +96 -74
- package/dist/types/components/forms/cura-radio/cura-radio.stories.d.ts +162 -162
- package/dist/types/components/forms/cura-select/cura-select.d.ts +176 -0
- package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +156 -0
- package/dist/types/components/forms/cura-select-options/cura-select-option.d.ts +17 -0
- package/dist/types/components/forms/cura-switch/cura-switch.d.ts +78 -57
- package/dist/types/components/forms/cura-switch/cura-switch.stories.d.ts +121 -121
- package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.d.ts +21 -21
- package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.stories.d.ts +35 -35
- package/dist/types/components/text/cura-display/cura-display.d.ts +47 -47
- package/dist/types/components/text/cura-display/cura-display.stories.d.ts +101 -101
- package/dist/types/components/text/cura-heading/cura-heading.d.ts +58 -58
- package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +127 -127
- package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +47 -47
- package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +99 -99
- package/dist/types/components.d.ts +689 -13
- package/dist/types/index.d.ts +4 -4
- package/dist/types/rededor-cura-start.d.ts +4 -4
- package/dist/types/stencil-public-runtime.d.ts +51 -15
- package/package.json +5 -5
- package/dist/cjs/app-globals-2988084b.js +0 -511
- package/dist/cjs/app-globals-2988084b.js.map +0 -1
- package/dist/cjs/css-shim-83cf0349.js +0 -8
- package/dist/cjs/css-shim-83cf0349.js.map +0 -1
- package/dist/cjs/cura-accordion_8.cjs.entry.js +0 -445
- package/dist/cjs/cura-accordion_8.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-button-transparent.cjs.entry.js +0 -83
- package/dist/cjs/cura-button-transparent.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-forms.definitions-11be2ebd.js +0 -20
- package/dist/cjs/cura-forms.definitions-11be2ebd.js.map +0 -1
- package/dist/cjs/cura-icon.definitions-b73b0178.js +0 -21
- package/dist/cjs/cura-icon.definitions-b73b0178.js.map +0 -1
- package/dist/cjs/cura-input-text.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-label.cjs.entry.js +0 -69
- package/dist/cjs/cura-label.cjs.entry.js.map +0 -1
- package/dist/cjs/index-7616f620.js +0 -2281
- package/dist/cjs/index-7616f620.js.map +0 -1
- package/dist/cjs/shadow-css-8baae635.js +0 -391
- package/dist/cjs/shadow-css-8baae635.js.map +0 -1
- package/dist/collection/utils/utils.spec.js +0 -16
- package/dist/collection/utils/utils.spec.js.map +0 -1
- package/dist/cura/cura.js +0 -133
- package/dist/cura/p-118112e5.system.js +0 -14
- package/dist/cura/p-118112e5.system.js.map +0 -1
- package/dist/cura/p-120926c5.system.js +0 -2
- package/dist/cura/p-120926c5.system.js.map +0 -1
- package/dist/cura/p-1228e771.entry.js +0 -2
- package/dist/cura/p-1228e771.entry.js.map +0 -1
- package/dist/cura/p-183305c3.js +0 -2
- package/dist/cura/p-183305c3.js.map +0 -1
- package/dist/cura/p-2d42ccf4.entry.js +0 -2
- package/dist/cura/p-2d42ccf4.entry.js.map +0 -1
- package/dist/cura/p-3688570d.js.map +0 -1
- package/dist/cura/p-36a83bc7.system.js +0 -3
- package/dist/cura/p-36a83bc7.system.js.map +0 -1
- package/dist/cura/p-3f3355f3.system.entry.js +0 -2
- package/dist/cura/p-3f3355f3.system.entry.js.map +0 -1
- package/dist/cura/p-3f5de5e2.entry.js +0 -2
- package/dist/cura/p-3f5de5e2.entry.js.map +0 -1
- package/dist/cura/p-3f6aaefc.system.js +0 -2
- package/dist/cura/p-3f6aaefc.system.js.map +0 -1
- package/dist/cura/p-48426f60.system.js +0 -2
- package/dist/cura/p-48426f60.system.js.map +0 -1
- package/dist/cura/p-4db87e8d.system.entry.js +0 -2
- package/dist/cura/p-4db87e8d.system.entry.js.map +0 -1
- package/dist/cura/p-51e00a16.entry.js +0 -2
- package/dist/cura/p-51e00a16.entry.js.map +0 -1
- package/dist/cura/p-72a9ed55.entry.js +0 -2
- package/dist/cura/p-72a9ed55.entry.js.map +0 -1
- package/dist/cura/p-75b2e4d1.system.entry.js +0 -2
- package/dist/cura/p-75b2e4d1.system.entry.js.map +0 -1
- package/dist/cura/p-880917c1.entry.js +0 -2
- package/dist/cura/p-880917c1.entry.js.map +0 -1
- package/dist/cura/p-8d959fb2.entry.js +0 -2
- package/dist/cura/p-8d959fb2.entry.js.map +0 -1
- package/dist/cura/p-9471c93e.system.entry.js +0 -2
- package/dist/cura/p-9471c93e.system.entry.js.map +0 -1
- package/dist/cura/p-98014544.entry.js +0 -2
- package/dist/cura/p-98014544.entry.js.map +0 -1
- package/dist/cura/p-98352c92.system.entry.js +0 -2
- package/dist/cura/p-98352c92.system.entry.js.map +0 -1
- package/dist/cura/p-a32889a4.system.js +0 -2
- package/dist/cura/p-a32889a4.system.js.map +0 -1
- package/dist/cura/p-ab8c9a8f.system.entry.js +0 -2
- package/dist/cura/p-ab8c9a8f.system.entry.js.map +0 -1
- package/dist/cura/p-ad194144.entry.js +0 -2
- package/dist/cura/p-ad194144.entry.js.map +0 -1
- package/dist/cura/p-b0e13882.system.entry.js +0 -2
- package/dist/cura/p-b0e13882.system.entry.js.map +0 -1
- package/dist/cura/p-ba66d7be.js +0 -3
- package/dist/cura/p-ba66d7be.js.map +0 -1
- package/dist/cura/p-bb3f9d05.entry.js +0 -2
- package/dist/cura/p-bb3f9d05.entry.js.map +0 -1
- package/dist/cura/p-beab48cd.js +0 -13
- package/dist/cura/p-beab48cd.js.map +0 -1
- package/dist/cura/p-c791725b.js.map +0 -1
- package/dist/cura/p-cb4e2a0c.system.entry.js +0 -2
- package/dist/cura/p-cb4e2a0c.system.entry.js.map +0 -1
- package/dist/cura/p-d3f9c888.system.js +0 -2
- package/dist/cura/p-d3f9c888.system.js.map +0 -1
- package/dist/cura/p-e5e259fd.system.entry.js +0 -2
- package/dist/cura/p-e5e259fd.system.entry.js.map +0 -1
- package/dist/cura/p-edeffbfc.entry.js +0 -2
- package/dist/cura/p-edeffbfc.entry.js.map +0 -1
- package/dist/cura/p-f51705c2.system.entry.js +0 -2
- package/dist/cura/p-f51705c2.system.entry.js.map +0 -1
- package/dist/cura/p-f89f2ecc.system.entry.js +0 -2
- package/dist/cura/p-f89f2ecc.system.entry.js.map +0 -1
- package/dist/cura/p-f8fffdc1.js.map +0 -1
- package/dist/cura/p-fc4ba4ce.system.js +0 -2
- package/dist/cura/p-fc4ba4ce.system.js.map +0 -1
- package/dist/cura/p-fef52079.entry.js +0 -2
- package/dist/cura/p-fef52079.entry.js.map +0 -1
- package/dist/cura/p-ffd41520.system.entry.js +0 -2
- package/dist/cura/p-ffd41520.system.entry.js.map +0 -1
- package/dist/esm/app-globals-29001758.js +0 -509
- package/dist/esm/app-globals-29001758.js.map +0 -1
- package/dist/esm/css-shim-d13f0738.js +0 -6
- package/dist/esm/css-shim-d13f0738.js.map +0 -1
- package/dist/esm/cura-accordion_8.entry.js +0 -434
- package/dist/esm/cura-accordion_8.entry.js.map +0 -1
- package/dist/esm/cura-button-transparent.entry.js +0 -79
- package/dist/esm/cura-button-transparent.entry.js.map +0 -1
- package/dist/esm/cura-forms.definitions-0f774253.js +0 -18
- package/dist/esm/cura-forms.definitions-0f774253.js.map +0 -1
- package/dist/esm/cura-icon.definitions-a63d1862.js +0 -18
- package/dist/esm/cura-icon.definitions-a63d1862.js.map +0 -1
- package/dist/esm/cura-input-text.entry.js.map +0 -1
- package/dist/esm/cura-label.entry.js +0 -65
- package/dist/esm/cura-label.entry.js.map +0 -1
- package/dist/esm/index-81f1a268.js +0 -2249
- package/dist/esm/index-81f1a268.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/shadow-css-07b0c8c8.js +0 -389
- package/dist/esm/shadow-css-07b0c8c8.js.map +0 -1
- package/dist/esm-es5/app-globals-29001758.js +0 -2
- package/dist/esm-es5/app-globals-29001758.js.map +0 -1
- package/dist/esm-es5/css-shim-d13f0738.js +0 -2
- package/dist/esm-es5/css-shim-d13f0738.js.map +0 -1
- package/dist/esm-es5/cura-accordion_8.entry.js +0 -2
- package/dist/esm-es5/cura-accordion_8.entry.js.map +0 -1
- package/dist/esm-es5/cura-alert.entry.js +0 -2
- package/dist/esm-es5/cura-alert.entry.js.map +0 -1
- package/dist/esm-es5/cura-button-outline.entry.js +0 -2
- package/dist/esm-es5/cura-button-outline.entry.js.map +0 -1
- package/dist/esm-es5/cura-button-select.entry.js +0 -2
- package/dist/esm-es5/cura-button-select.entry.js.map +0 -1
- package/dist/esm-es5/cura-button-transparent.entry.js +0 -2
- package/dist/esm-es5/cura-button-transparent.entry.js.map +0 -1
- package/dist/esm-es5/cura-checkbox.entry.js +0 -2
- package/dist/esm-es5/cura-checkbox.entry.js.map +0 -1
- package/dist/esm-es5/cura-display.entry.js +0 -2
- package/dist/esm-es5/cura-display.entry.js.map +0 -1
- package/dist/esm-es5/cura-forms.definitions-0f774253.js +0 -2
- package/dist/esm-es5/cura-icon.definitions-a63d1862.js +0 -2
- package/dist/esm-es5/cura-icons-view.entry.js +0 -2
- package/dist/esm-es5/cura-icons-view.entry.js.map +0 -1
- package/dist/esm-es5/cura-input-text.entry.js +0 -2
- package/dist/esm-es5/cura-input-text.entry.js.map +0 -1
- package/dist/esm-es5/cura-label.entry.js +0 -2
- package/dist/esm-es5/cura-label.entry.js.map +0 -1
- package/dist/esm-es5/cura-radio.entry.js +0 -2
- package/dist/esm-es5/cura-radio.entry.js.map +0 -1
- package/dist/esm-es5/cura-switch.entry.js +0 -2
- package/dist/esm-es5/cura-switch.entry.js.map +0 -1
- package/dist/esm-es5/cura.js +0 -2
- package/dist/esm-es5/cura.js.map +0 -1
- package/dist/esm-es5/index-81f1a268.js +0 -3
- package/dist/esm-es5/index-81f1a268.js.map +0 -1
- package/dist/esm-es5/index.js +0 -2
- package/dist/esm-es5/index.js.map +0 -1
- package/dist/esm-es5/loader.js +0 -2
- package/dist/esm-es5/loader.js.map +0 -1
- package/dist/esm-es5/shadow-css-07b0c8c8.js +0 -13
- package/dist/esm-es5/shadow-css-07b0c8c8.js.map +0 -1
|
@@ -1,655 +1,746 @@
|
|
|
1
|
-
import { Host, h } from
|
|
2
|
-
import IMask from
|
|
3
|
-
import { maskOptions } from
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import IMask from "imask";
|
|
3
|
+
import { maskOptions } from "./mask-presets/input-mask-presets";
|
|
4
4
|
export class CuraInputText {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
5
|
+
constructor() {
|
|
6
|
+
this.mode = 'default';
|
|
7
|
+
this.status = 'default';
|
|
8
|
+
this.size = 'medium';
|
|
9
|
+
this.type = 'text';
|
|
10
|
+
this.inputMode = 'text';
|
|
11
|
+
this.label = '';
|
|
12
|
+
this.name = '';
|
|
13
|
+
this.placeholder = null;
|
|
14
|
+
this.value = '';
|
|
15
|
+
this.iconName = '';
|
|
16
|
+
this.helperText = undefined;
|
|
17
|
+
this.disabled = false;
|
|
18
|
+
this.required = false;
|
|
19
|
+
this.maskPreset = undefined;
|
|
20
|
+
this.maskRegex = undefined;
|
|
21
|
+
this.maskAdvanced = undefined;
|
|
22
|
+
this.maxlength = undefined;
|
|
23
|
+
this.readOnly = false;
|
|
24
|
+
this.isLoading = false;
|
|
25
|
+
this.isHovered = false;
|
|
26
|
+
this.isFocused = false;
|
|
27
|
+
this.styles = {};
|
|
28
|
+
this.clearIcon = true;
|
|
29
|
+
this.hideErrorIcon = false;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Callback to restore the switch state from the form.
|
|
33
|
+
*/
|
|
34
|
+
formStateRestoreCallback(state) {
|
|
35
|
+
this.value = state.value;
|
|
36
|
+
this.applyValueToMask();
|
|
37
|
+
this.internals.setFormValue(this.value);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Callback for form association.
|
|
41
|
+
*/
|
|
42
|
+
formAssociatedCallback(form) {
|
|
43
|
+
form.ariaLabel = this.label;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Callback to reset the switch state when the form is reset.
|
|
47
|
+
*/
|
|
48
|
+
formResetCallback() {
|
|
49
|
+
this.handleClearInput();
|
|
50
|
+
this.internals.setValidity({});
|
|
51
|
+
this.internals.setFormValue('');
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Callback to update the switch's disabled state when the form's disabled state changes.
|
|
55
|
+
*/
|
|
56
|
+
formDisabledCallback(disabled) {
|
|
57
|
+
this.disabled = disabled;
|
|
58
|
+
}
|
|
59
|
+
connectedCallback() {
|
|
60
|
+
this.styles['--primary-base'] = window.CuraAPI.theme.colors.getColor(`primary-base`);
|
|
61
|
+
this.styles['--neutral-purewhite'] = window.CuraAPI.theme.colors.getColor(`neutral-purewhite`);
|
|
62
|
+
this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);
|
|
63
|
+
this.styles['--neutral-black'] = window.CuraAPI.theme.colors.getColor(`neutral-black`);
|
|
64
|
+
this.styles['--neutral-medium'] = window.CuraAPI.theme.colors.getColor(`neutral-medium`);
|
|
65
|
+
this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
|
|
66
|
+
this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);
|
|
67
|
+
this.styles['--success-dark'] = window.CuraAPI.theme.colors.getColor(`success-dark`);
|
|
68
|
+
this.styles['--success-darker'] = window.CuraAPI.theme.colors.getColor(`success-darker`);
|
|
69
|
+
this.styles['--success-lighter'] = window.CuraAPI.theme.colors.getColor(`success-lighter`);
|
|
70
|
+
this.styles['--error-lighter'] = window.CuraAPI.theme.colors.getColor(`error-lighter`);
|
|
71
|
+
this.styles['--error-dark'] = window.CuraAPI.theme.colors.getColor(`error-dark`);
|
|
72
|
+
this.styles['--error-darker'] = window.CuraAPI.theme.colors.getColor(`error-darker`);
|
|
73
|
+
this.styles['--error-base'] = window.CuraAPI.theme.colors.getColor(`error-base`);
|
|
74
|
+
this.styles['--info-base'] = window.CuraAPI.theme.colors.getColor(`info-base`);
|
|
75
|
+
this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
|
|
76
|
+
this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
|
|
77
|
+
this.styles['--font-color'] = window.CuraAPI.theme.fonts.getColor();
|
|
78
|
+
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
79
|
+
this.styles['--font-weight-medium'] = this.weights.medium;
|
|
80
|
+
this.styles['--font-weight-bold'] = this.weights.bold;
|
|
81
|
+
this.styles['--font-weight-regular'] = this.weights.regular;
|
|
82
|
+
}
|
|
83
|
+
getClasses() {
|
|
84
|
+
return {
|
|
85
|
+
[this.size.toLowerCase()]: this.mode === 'default',
|
|
86
|
+
disabled: this.disabled,
|
|
87
|
+
isLoading: this.isLoading,
|
|
88
|
+
isFocused: this.isFocused && !this.disabled && !this.readOnly && !this.isLoading,
|
|
89
|
+
isHovered: this.isHovered,
|
|
90
|
+
[this.status]: true,
|
|
91
|
+
transparent: this.mode === 'transparent',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
getLabelColor() {
|
|
95
|
+
if (!!this.disabled) {
|
|
96
|
+
return 'neutral-medium';
|
|
97
|
+
}
|
|
98
|
+
else if (this.isLoading && this.mode === 'transparent' && !this.isHovered) {
|
|
99
|
+
return 'neutral-dark';
|
|
100
|
+
}
|
|
101
|
+
else if (((this.isFocused || this.isHovered || this.status === 'success' || this.status === 'error') && !this.readOnly) || this.isHovered) {
|
|
102
|
+
return 'neutral-black';
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
return 'neutral-dark';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
renderIcon() {
|
|
109
|
+
if ((this.iconName === '' && this.status === 'default') || (this.mode === 'transparent' && this.isLoading) || (this.mode === 'transparent' && this.status === 'default')) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
// Used when input is rendered in cura-dropdown-search with error status
|
|
113
|
+
if (this.status === 'error' && this.hideErrorIcon) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const iconSizeDefaultMode = this.size === 'large' ? 20 : 16;
|
|
117
|
+
const baseIconSize = this.mode === 'transparent' ? 20 : iconSizeDefaultMode;
|
|
118
|
+
const iconMap = {
|
|
119
|
+
loading: { name: this.iconName, color: 'primary-base' },
|
|
120
|
+
success: { name: 'checkCircle', color: 'success-dark' },
|
|
121
|
+
error: { name: 'alertCircle', color: 'error-dark' },
|
|
122
|
+
default: { name: this.iconName, color: 'neutral-dark' },
|
|
123
|
+
};
|
|
124
|
+
const iconConfig = iconMap[this.isLoading ? 'loading' : this.status || 'default'];
|
|
125
|
+
return (h("div", { class: "feedback-icon", style: this.styles }, h("cura-icon", { name: iconConfig.name, iconset: "default", size: baseIconSize, color: iconConfig.color })));
|
|
126
|
+
}
|
|
127
|
+
renderHelperText() {
|
|
128
|
+
const isError = this.status === 'error';
|
|
129
|
+
const isSuccess = this.status === 'success';
|
|
130
|
+
const isDefault = this.status === 'default';
|
|
131
|
+
const helperTextSize = this.size === 'large' ? 'small' : 'xsmall';
|
|
132
|
+
const helperTextWeight = this.mode === 'transparent' ? 'bold' : 'regular';
|
|
133
|
+
const colorText = (() => {
|
|
134
|
+
if (this.disabled)
|
|
135
|
+
return 'neutral-medium';
|
|
136
|
+
if (this.isLoading)
|
|
137
|
+
return 'primary-base';
|
|
138
|
+
if (this.isFocused || this.isHovered)
|
|
139
|
+
return 'neutral-black';
|
|
140
|
+
return 'neutral-dark';
|
|
141
|
+
})();
|
|
142
|
+
return (h("div", { style: this.styles, class: "helper-text" }, isDefault && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: colorText, weight: helperTextWeight }, h("slot", null))), isError && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: "error-dark", weight: helperTextWeight }, h("slot", null))), isSuccess && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: "success-dark", weight: helperTextWeight }, h("slot", null)))));
|
|
143
|
+
}
|
|
144
|
+
handleMouseEnter() {
|
|
145
|
+
this.isHovered = true;
|
|
146
|
+
}
|
|
147
|
+
handleMouseLeave() {
|
|
148
|
+
this.isHovered = false;
|
|
149
|
+
}
|
|
150
|
+
componentDidLoad() {
|
|
151
|
+
this.initializeMask();
|
|
152
|
+
}
|
|
153
|
+
disconnectedCallback() {
|
|
154
|
+
this.destroyMask();
|
|
155
|
+
}
|
|
156
|
+
handleMaskUpdate() {
|
|
157
|
+
if (this.maskedInput) {
|
|
158
|
+
this.maskedInput.updateValue();
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
handleClearInput() {
|
|
162
|
+
this.handleMaskUpdate();
|
|
163
|
+
this.value = '';
|
|
164
|
+
this.inputRef.value = '';
|
|
165
|
+
this.valueChange.emit(this.value);
|
|
166
|
+
this.handleMaskUpdate();
|
|
167
|
+
}
|
|
168
|
+
handleInputFocus() {
|
|
169
|
+
this.handleMaskUpdate();
|
|
170
|
+
this.isFocused = true;
|
|
171
|
+
}
|
|
172
|
+
handleInputBlur() {
|
|
173
|
+
this.handleMaskUpdate();
|
|
174
|
+
setTimeout(() => {
|
|
175
|
+
this.isFocused = false;
|
|
176
|
+
}, 150);
|
|
177
|
+
}
|
|
178
|
+
shouldDisplayMask() {
|
|
179
|
+
return this.maskPreset || this.maskRegex || this.maskAdvanced;
|
|
180
|
+
}
|
|
181
|
+
initializeMask() {
|
|
182
|
+
if (this.shouldDisplayMask()) {
|
|
183
|
+
if (this.maskedInput) {
|
|
184
|
+
this.destroyMask();
|
|
185
|
+
}
|
|
186
|
+
if (this.maskPreset) {
|
|
187
|
+
this.initializePresetMask();
|
|
188
|
+
}
|
|
189
|
+
else if (this.maskRegex) {
|
|
190
|
+
this.initializeRegexMask();
|
|
191
|
+
}
|
|
192
|
+
else if (this.maskAdvanced) {
|
|
193
|
+
this.initializeAdvancedMask();
|
|
194
|
+
}
|
|
195
|
+
this.applyValueToMask();
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
this.clearMaskValue();
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
initializeRegexMask() {
|
|
160
202
|
const cleanedRegexString = this.maskRegex.replace(/^\/|\/[gimsuy]*$/g, '');
|
|
161
203
|
const flags = (this.maskRegex.match(/\/[gimsuy]*$/g) || [''])[0].slice(1);
|
|
162
204
|
this.maskedInput = IMask(this.inputRef, { mask: new RegExp(cleanedRegexString, flags) });
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
else if (!!this.maskPreset) {
|
|
171
|
-
const options = maskOptions[this.maskPreset];
|
|
172
|
-
if (!options) {
|
|
173
|
-
console.error(`Mask preset "${this.maskPreset}" not found.`);
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
this.maskedInput = IMask(this.inputRef, options);
|
|
177
|
-
if (options === Date) {
|
|
178
|
-
if (this.value) {
|
|
179
|
-
this.maskedInput.typedValue = this.value;
|
|
205
|
+
}
|
|
206
|
+
initializePresetMask() {
|
|
207
|
+
const options = maskOptions[this.maskPreset];
|
|
208
|
+
if (options) {
|
|
209
|
+
this.maskedInput = IMask(this.inputRef, options);
|
|
180
210
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
if (this.value) {
|
|
184
|
-
this.maskedInput.typedValue = this.value;
|
|
211
|
+
else {
|
|
212
|
+
console.error(`Mask preset "${this.maskPreset}" not found.`);
|
|
185
213
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
else if (!!this.maskAdvanced) {
|
|
192
|
-
try {
|
|
193
|
-
if (this.maskAdvanced.constructor === Object) {
|
|
194
|
-
this.maskedInput = IMask(this.inputRef, this.maskAdvanced);
|
|
214
|
+
}
|
|
215
|
+
initializeAdvancedMask() {
|
|
216
|
+
try {
|
|
217
|
+
const config = typeof this.maskAdvanced === 'string' ? JSON.parse(this.maskAdvanced) : this.maskAdvanced;
|
|
218
|
+
this.maskedInput = IMask(this.inputRef, config);
|
|
195
219
|
}
|
|
196
|
-
|
|
197
|
-
|
|
220
|
+
catch (error) {
|
|
221
|
+
console.error('Error defining maskAdvanced:', error);
|
|
198
222
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
this.handleMaskUpdate();
|
|
205
|
-
}
|
|
206
|
-
handleInputChange(event) {
|
|
207
|
-
const inputValue = event.target.value;
|
|
208
|
-
if (this.type === 'number') {
|
|
209
|
-
const numericValue = parseFloat(inputValue);
|
|
210
|
-
if (!isNaN(numericValue)) {
|
|
211
|
-
this.value = numericValue;
|
|
212
|
-
this.valueChange.emit(numericValue);
|
|
213
|
-
}
|
|
214
|
-
else {
|
|
215
|
-
console.error('Invalid input:', inputValue);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
if (this.maskedInput) {
|
|
219
|
-
if (this.maskedInput.mask instanceof Date || this.maskedInput.mask === Number) {
|
|
220
|
-
this.maskedInput.typedValue = inputValue;
|
|
221
|
-
this.value = this.maskedInput.typedValue;
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
this.maskedInput.value = inputValue;
|
|
225
|
-
this.value = this.maskedInput.value;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
this.value = inputValue;
|
|
229
|
-
this.valueChange.emit(this.value);
|
|
230
|
-
}
|
|
231
|
-
handleKeyDown(event) {
|
|
232
|
-
this.handleMaskUpdate();
|
|
233
|
-
this.type === 'number' ? this.handleBlockInvalidNumber(event) : undefined;
|
|
234
|
-
}
|
|
235
|
-
handleBlockInvalidNumber(e) {
|
|
236
|
-
return ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault();
|
|
237
|
-
}
|
|
238
|
-
render() {
|
|
239
|
-
return (h(Host, null, h("div", { style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-input-group': true }, this.getClasses()) }, h("div", { class: 'input-wrapper' }, this.label && (h("cura-label", { class: 'label', weight: 'bold', size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && h("span", { class: 'required' }, "* "))), h("div", { class: 'cura-input-field', style: this.styles }, this.renderIcon(), h("input", { type: this.type, autocomplete: 'off', "aria-autocomplete": 'none', "aria-required": this.required ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-invalid": this.status === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', onKeyDown: event => this.handleKeyDown(event), onBlur: this.handleInputBlur.bind(this), onFocus: this.handleInputFocus.bind(this), onInput: event => this.handleInputChange(event), class: this.getClasses(), style: this.styles, placeholder: this.placeholder, disabled: this.disabled || this.isLoading, required: this.required, readonly: this.readOnly, maxlength: this.maxlength, value: this.value, ref: ref => (this.inputRef = ref) }), !!this.clearIcon && !this.readOnly && !this.isLoading && !this.disabled && this.value && this.isFocused && (h("cura-icon", { size: this.size === 'large' ? 20 : 16, color: 'primary-base', name: 'closeCircle', iconset: 'default', class: 'clear-button', onClick: () => this.handleClearInput() })), this.isLoading && h("cura-loader-circle", { size: this.size === 'large' ? 'medium' : 'small', color: 'primary-base' })), this.renderHelperText()))));
|
|
240
|
-
}
|
|
241
|
-
static get is() { return "cura-input-text"; }
|
|
242
|
-
static get encapsulation() { return "shadow"; }
|
|
243
|
-
static get originalStyleUrls() {
|
|
244
|
-
return {
|
|
245
|
-
"$": ["cura-input-text.scss"]
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
static get styleUrls() {
|
|
249
|
-
return {
|
|
250
|
-
"$": ["cura-input-text.css"]
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
static get properties() {
|
|
254
|
-
return {
|
|
255
|
-
"mode": {
|
|
256
|
-
"type": "string",
|
|
257
|
-
"mutable": true,
|
|
258
|
-
"complexType": {
|
|
259
|
-
"original": "'default' | 'transparent'",
|
|
260
|
-
"resolved": "\"default\" | \"transparent\"",
|
|
261
|
-
"references": {}
|
|
262
|
-
},
|
|
263
|
-
"required": false,
|
|
264
|
-
"optional": false,
|
|
265
|
-
"docs": {
|
|
266
|
-
"tags": [],
|
|
267
|
-
"text": "Mode of the input: 'default' or 'transparent' (default: 'default')"
|
|
268
|
-
},
|
|
269
|
-
"attribute": "mode",
|
|
270
|
-
"reflect": true,
|
|
271
|
-
"defaultValue": "'default'"
|
|
272
|
-
},
|
|
273
|
-
"status": {
|
|
274
|
-
"type": "string",
|
|
275
|
-
"mutable": true,
|
|
276
|
-
"complexType": {
|
|
277
|
-
"original": "'error' | 'success' | 'default'",
|
|
278
|
-
"resolved": "\"default\" | \"error\" | \"success\"",
|
|
279
|
-
"references": {}
|
|
280
|
-
},
|
|
281
|
-
"required": false,
|
|
282
|
-
"optional": false,
|
|
283
|
-
"docs": {
|
|
284
|
-
"tags": [],
|
|
285
|
-
"text": "Indicates input status(default: default)"
|
|
286
|
-
},
|
|
287
|
-
"attribute": "status",
|
|
288
|
-
"reflect": true,
|
|
289
|
-
"defaultValue": "'default'"
|
|
290
|
-
},
|
|
291
|
-
"size": {
|
|
292
|
-
"type": "string",
|
|
293
|
-
"mutable": true,
|
|
294
|
-
"complexType": {
|
|
295
|
-
"original": "'small' | 'medium' | 'large'",
|
|
296
|
-
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
297
|
-
"references": {}
|
|
298
|
-
},
|
|
299
|
-
"required": false,
|
|
300
|
-
"optional": false,
|
|
301
|
-
"docs": {
|
|
302
|
-
"tags": [],
|
|
303
|
-
"text": "Size of the input mode default: 'small', 'medium', or 'large' (default: 'medium')"
|
|
304
|
-
},
|
|
305
|
-
"attribute": "size",
|
|
306
|
-
"reflect": true,
|
|
307
|
-
"defaultValue": "'medium'"
|
|
308
|
-
},
|
|
309
|
-
"type": {
|
|
310
|
-
"type": "string",
|
|
311
|
-
"mutable": false,
|
|
312
|
-
"complexType": {
|
|
313
|
-
"original": "'text' | 'number'",
|
|
314
|
-
"resolved": "\"number\" | \"text\"",
|
|
315
|
-
"references": {}
|
|
316
|
-
},
|
|
317
|
-
"required": false,
|
|
318
|
-
"optional": false,
|
|
319
|
-
"docs": {
|
|
320
|
-
"tags": [],
|
|
321
|
-
"text": "Type of the input: 'text', 'number' (default: 'text')"
|
|
322
|
-
},
|
|
323
|
-
"attribute": "type",
|
|
324
|
-
"reflect": true,
|
|
325
|
-
"defaultValue": "'text'"
|
|
326
|
-
},
|
|
327
|
-
"label": {
|
|
328
|
-
"type": "string",
|
|
329
|
-
"mutable": false,
|
|
330
|
-
"complexType": {
|
|
331
|
-
"original": "string",
|
|
332
|
-
"resolved": "string",
|
|
333
|
-
"references": {}
|
|
334
|
-
},
|
|
335
|
-
"required": false,
|
|
336
|
-
"optional": false,
|
|
337
|
-
"docs": {
|
|
338
|
-
"tags": [],
|
|
339
|
-
"text": "Label text for the input"
|
|
340
|
-
},
|
|
341
|
-
"attribute": "label",
|
|
342
|
-
"reflect": true,
|
|
343
|
-
"defaultValue": "''"
|
|
344
|
-
},
|
|
345
|
-
"placeholder": {
|
|
346
|
-
"type": "string",
|
|
347
|
-
"mutable": false,
|
|
348
|
-
"complexType": {
|
|
349
|
-
"original": "string | null",
|
|
350
|
-
"resolved": "string",
|
|
351
|
-
"references": {}
|
|
352
|
-
},
|
|
353
|
-
"required": false,
|
|
354
|
-
"optional": true,
|
|
355
|
-
"docs": {
|
|
356
|
-
"tags": [],
|
|
357
|
-
"text": "Placeholder text for the input"
|
|
358
|
-
},
|
|
359
|
-
"attribute": "placeholder",
|
|
360
|
-
"reflect": true,
|
|
361
|
-
"defaultValue": "null"
|
|
362
|
-
},
|
|
363
|
-
"value": {
|
|
364
|
-
"type": "any",
|
|
365
|
-
"mutable": true,
|
|
366
|
-
"complexType": {
|
|
367
|
-
"original": "string | number",
|
|
368
|
-
"resolved": "number | string",
|
|
369
|
-
"references": {}
|
|
370
|
-
},
|
|
371
|
-
"required": false,
|
|
372
|
-
"optional": false,
|
|
373
|
-
"docs": {
|
|
374
|
-
"tags": [],
|
|
375
|
-
"text": "Value of the input field"
|
|
376
|
-
},
|
|
377
|
-
"attribute": "value",
|
|
378
|
-
"reflect": false
|
|
379
|
-
},
|
|
380
|
-
"iconName": {
|
|
381
|
-
"type": "string",
|
|
382
|
-
"mutable": true,
|
|
383
|
-
"complexType": {
|
|
384
|
-
"original": "string",
|
|
385
|
-
"resolved": "string",
|
|
386
|
-
"references": {}
|
|
387
|
-
},
|
|
388
|
-
"required": false,
|
|
389
|
-
"optional": true,
|
|
390
|
-
"docs": {
|
|
391
|
-
"tags": [],
|
|
392
|
-
"text": "Whether to display a cura icon (default: null)"
|
|
393
|
-
},
|
|
394
|
-
"attribute": "icon-name",
|
|
395
|
-
"reflect": true,
|
|
396
|
-
"defaultValue": "''"
|
|
397
|
-
},
|
|
398
|
-
"helperText": {
|
|
399
|
-
"type": "string",
|
|
400
|
-
"mutable": true,
|
|
401
|
-
"complexType": {
|
|
402
|
-
"original": "string",
|
|
403
|
-
"resolved": "string",
|
|
404
|
-
"references": {}
|
|
405
|
-
},
|
|
406
|
-
"required": false,
|
|
407
|
-
"optional": true,
|
|
408
|
-
"docs": {
|
|
409
|
-
"tags": [],
|
|
410
|
-
"text": "Helper text displayed below the input"
|
|
411
|
-
},
|
|
412
|
-
"attribute": "helper-text",
|
|
413
|
-
"reflect": true
|
|
414
|
-
},
|
|
415
|
-
"disabled": {
|
|
416
|
-
"type": "boolean",
|
|
417
|
-
"mutable": false,
|
|
418
|
-
"complexType": {
|
|
419
|
-
"original": "boolean",
|
|
420
|
-
"resolved": "boolean",
|
|
421
|
-
"references": {}
|
|
422
|
-
},
|
|
423
|
-
"required": false,
|
|
424
|
-
"optional": true,
|
|
425
|
-
"docs": {
|
|
426
|
-
"tags": [],
|
|
427
|
-
"text": "Whether the input is disabled (default: false)"
|
|
428
|
-
},
|
|
429
|
-
"attribute": "disabled",
|
|
430
|
-
"reflect": true,
|
|
431
|
-
"defaultValue": "false"
|
|
432
|
-
},
|
|
433
|
-
"required": {
|
|
434
|
-
"type": "boolean",
|
|
435
|
-
"mutable": false,
|
|
436
|
-
"complexType": {
|
|
437
|
-
"original": "boolean",
|
|
438
|
-
"resolved": "boolean",
|
|
439
|
-
"references": {}
|
|
440
|
-
},
|
|
441
|
-
"required": false,
|
|
442
|
-
"optional": true,
|
|
443
|
-
"docs": {
|
|
444
|
-
"tags": [],
|
|
445
|
-
"text": "Whether the input is required (default: false)"
|
|
446
|
-
},
|
|
447
|
-
"attribute": "required",
|
|
448
|
-
"reflect": true,
|
|
449
|
-
"defaultValue": "false"
|
|
450
|
-
},
|
|
451
|
-
"maskPreset": {
|
|
452
|
-
"type": "any",
|
|
453
|
-
"mutable": false,
|
|
454
|
-
"complexType": {
|
|
455
|
-
"original": "MaskPreset",
|
|
456
|
-
"resolved": "number | string",
|
|
457
|
-
"references": {
|
|
458
|
-
"MaskPreset": {
|
|
459
|
-
"location": "local",
|
|
460
|
-
"path": "/Users/fellipesoares/Code/cura/packages/component-lib/src/components/forms/cura-input-text/cura-input-text.tsx"
|
|
223
|
+
}
|
|
224
|
+
applyValueToMask() {
|
|
225
|
+
if (this.maskedInput) {
|
|
226
|
+
if (this.maskedInput.mask === Date || this.maskedInput.mask === Number) {
|
|
227
|
+
this.maskedInput.typedValue = this.value;
|
|
461
228
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
"required": false,
|
|
465
|
-
"optional": true,
|
|
466
|
-
"docs": {
|
|
467
|
-
"tags": [{
|
|
468
|
-
"name": "see",
|
|
469
|
-
"text": " : https://imask.js.org/"
|
|
470
|
-
}],
|
|
471
|
-
"text": "Mask preset for input formatting: 'cpf', 'cnpj', 'phone', 'date', etc. Uses IMask library."
|
|
472
|
-
},
|
|
473
|
-
"attribute": "mask-preset",
|
|
474
|
-
"reflect": false
|
|
475
|
-
},
|
|
476
|
-
"maskRegex": {
|
|
477
|
-
"type": "string",
|
|
478
|
-
"mutable": true,
|
|
479
|
-
"complexType": {
|
|
480
|
-
"original": "MaskedRegExp['mask'] | string | null",
|
|
481
|
-
"resolved": "RegExp | string",
|
|
482
|
-
"references": {
|
|
483
|
-
"MaskedRegExp": {
|
|
484
|
-
"location": "import",
|
|
485
|
-
"path": "imask"
|
|
229
|
+
else {
|
|
230
|
+
this.value = this.maskedInput.value;
|
|
486
231
|
}
|
|
487
|
-
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
232
|
+
this.handleMaskUpdate();
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
clearMaskValue() {
|
|
236
|
+
this.inputRef.value = this.value;
|
|
237
|
+
}
|
|
238
|
+
destroyMask() {
|
|
239
|
+
if (this.maskedInput) {
|
|
240
|
+
this.maskedInput.destroy();
|
|
241
|
+
this.maskedInput = undefined;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
handleInputChange(event) {
|
|
245
|
+
const inputValue = event.target.value;
|
|
246
|
+
if (this.type === 'number') {
|
|
247
|
+
this.handleNumberInputChange(inputValue);
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
this.handleTextInputChange(inputValue);
|
|
251
|
+
}
|
|
252
|
+
this.internals.setFormValue(this.value);
|
|
253
|
+
}
|
|
254
|
+
handleNumberInputChange(inputValue) {
|
|
255
|
+
const numericValue = parseFloat(inputValue);
|
|
256
|
+
if (!isNaN(numericValue)) {
|
|
257
|
+
this.value = numericValue;
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
console.error('Invalid numeric input:', inputValue);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
handleTextInputChange(inputValue) {
|
|
264
|
+
if (this.maskedInput) {
|
|
265
|
+
if (this.maskedInput.mask instanceof Date || this.maskedInput.mask === Number) {
|
|
266
|
+
this.maskedInput.typedValue = inputValue;
|
|
267
|
+
this.value = this.maskedInput.typedValue;
|
|
511
268
|
}
|
|
512
|
-
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
"docs": {
|
|
517
|
-
"tags": [{
|
|
518
|
-
"name": "see",
|
|
519
|
-
"text": " : https://imask.js.org/"
|
|
520
|
-
}],
|
|
521
|
-
"text": "Advanced mask object to be used with IMask library"
|
|
522
|
-
},
|
|
523
|
-
"attribute": "mask-advanced",
|
|
524
|
-
"reflect": true
|
|
525
|
-
},
|
|
526
|
-
"maxlength": {
|
|
527
|
-
"type": "number",
|
|
528
|
-
"mutable": true,
|
|
529
|
-
"complexType": {
|
|
530
|
-
"original": "number | undefined",
|
|
531
|
-
"resolved": "number",
|
|
532
|
-
"references": {}
|
|
533
|
-
},
|
|
534
|
-
"required": false,
|
|
535
|
-
"optional": true,
|
|
536
|
-
"docs": {
|
|
537
|
-
"tags": [],
|
|
538
|
-
"text": "Maximum length of the input value (default: undefined)"
|
|
539
|
-
},
|
|
540
|
-
"attribute": "maxlength",
|
|
541
|
-
"reflect": true
|
|
542
|
-
},
|
|
543
|
-
"readOnly": {
|
|
544
|
-
"type": "boolean",
|
|
545
|
-
"mutable": false,
|
|
546
|
-
"complexType": {
|
|
547
|
-
"original": "boolean",
|
|
548
|
-
"resolved": "boolean",
|
|
549
|
-
"references": {}
|
|
550
|
-
},
|
|
551
|
-
"required": false,
|
|
552
|
-
"optional": true,
|
|
553
|
-
"docs": {
|
|
554
|
-
"tags": [],
|
|
555
|
-
"text": "Whether the input is read-only (default: false)"
|
|
556
|
-
},
|
|
557
|
-
"attribute": "read-only",
|
|
558
|
-
"reflect": true,
|
|
559
|
-
"defaultValue": "false"
|
|
560
|
-
},
|
|
561
|
-
"isLoading": {
|
|
562
|
-
"type": "boolean",
|
|
563
|
-
"mutable": true,
|
|
564
|
-
"complexType": {
|
|
565
|
-
"original": "boolean",
|
|
566
|
-
"resolved": "boolean",
|
|
567
|
-
"references": {}
|
|
568
|
-
},
|
|
569
|
-
"required": false,
|
|
570
|
-
"optional": true,
|
|
571
|
-
"docs": {
|
|
572
|
-
"tags": [],
|
|
573
|
-
"text": "Whether the input is in loading state (default: false)"
|
|
574
|
-
},
|
|
575
|
-
"attribute": "is-loading",
|
|
576
|
-
"reflect": true,
|
|
577
|
-
"defaultValue": "false"
|
|
578
|
-
},
|
|
579
|
-
"clearIcon": {
|
|
580
|
-
"type": "boolean",
|
|
581
|
-
"mutable": true,
|
|
582
|
-
"complexType": {
|
|
583
|
-
"original": "boolean",
|
|
584
|
-
"resolved": "boolean",
|
|
585
|
-
"references": {}
|
|
586
|
-
},
|
|
587
|
-
"required": false,
|
|
588
|
-
"optional": true,
|
|
589
|
-
"docs": {
|
|
590
|
-
"tags": [],
|
|
591
|
-
"text": "Icon button name for the clear button (default: 'closeCircle')"
|
|
592
|
-
},
|
|
593
|
-
"attribute": "clear-icon",
|
|
594
|
-
"reflect": true,
|
|
595
|
-
"defaultValue": "true"
|
|
596
|
-
}
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
static get states() {
|
|
600
|
-
return {
|
|
601
|
-
"isHovered": {},
|
|
602
|
-
"isFocused": {},
|
|
603
|
-
"styles": {}
|
|
604
|
-
};
|
|
605
|
-
}
|
|
606
|
-
static get events() {
|
|
607
|
-
return [{
|
|
608
|
-
"method": "valueChange",
|
|
609
|
-
"name": "valueChange",
|
|
610
|
-
"bubbles": true,
|
|
611
|
-
"cancelable": true,
|
|
612
|
-
"composed": true,
|
|
613
|
-
"docs": {
|
|
614
|
-
"tags": [{
|
|
615
|
-
"name": "type",
|
|
616
|
-
"text": "{EventEmitter<string | number>}"
|
|
617
|
-
}],
|
|
618
|
-
"text": "Emitted when the value of the input changes"
|
|
619
|
-
},
|
|
620
|
-
"complexType": {
|
|
621
|
-
"original": "string | number",
|
|
622
|
-
"resolved": "number | string",
|
|
623
|
-
"references": {}
|
|
269
|
+
this.value = this.maskedInput.value;
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
this.value = inputValue;
|
|
624
273
|
}
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
"
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
274
|
+
}
|
|
275
|
+
handleKeyDown(event) {
|
|
276
|
+
if (this.type === 'number') {
|
|
277
|
+
this.handleBlockInvalidNumber(event);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
handleBlockInvalidNumber(e) {
|
|
281
|
+
if (['e', 'E', '+', '-'].includes(e.key))
|
|
282
|
+
e.preventDefault();
|
|
283
|
+
}
|
|
284
|
+
render() {
|
|
285
|
+
return (h(Host, { key: '958e9c9ce207852a9a89bcbf6b2300a020e57e21' }, h("div", { key: 'a0b0a2dc0cef39d82f922f19a68adc2fea19ada4', style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-input-group': true }, this.getClasses()) }, h("div", { key: '600ac418f5e11b145546efd999e46f6dc439dbe2', class: "input-wrapper" }, this.label && (h("cura-label", { key: 'b7d8c89801d73f6b304b15cb3a1fb053be6c10a3', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && h("span", { key: 'fbfc7e95fae3d2f695af8e966d50c36eaddf83ff', class: "required" }, "* "))), h("div", { key: '50b2e6a4edb17507bcbed66ddb262b5816eeea98', class: "cura-input-field", part: "cura-input-field", style: this.styles }, this.renderIcon(), h("input", { key: 'e0fb2fe18ca4555b15396bc794dc553273f06921', name: this.name ? this.name : '', type: this.type, onKeyDown: event => this.handleKeyDown(event), onBlur: this.handleInputBlur.bind(this), onFocus: this.handleInputFocus.bind(this), onInput: event => this.handleInputChange(event), class: this.getClasses(), style: this.styles, placeholder: this.placeholder, disabled: this.disabled || this.isLoading, required: this.required, readonly: this.readOnly, maxlength: this.maxlength, value: this.value !== undefined && this.value !== null ? this.value : '', inputmode: this.maskPreset ? 'tel' : this.inputMode, ref: ref => (this.inputRef = ref) }), !!this.clearIcon && !this.readOnly && !this.isLoading && !this.disabled && this.value && this.isFocused && (h("cura-icon", { key: 'dde6d704a5fa3aac4bfa2428b636fc7e19301ace', size: this.size === 'large' || this.mode === 'transparent' ? 20 : 16, color: "primary-base", name: "closeCircle", iconset: "default", class: "clear-button", onClick: () => this.handleClearInput() })), this.isLoading && h("cura-loader-circle", { key: '9322c8e784058c1e0880b3d248c5f1272a1518c4', size: this.size === 'large' ? 'medium' : 'small', color: "primary-base" })), this.renderHelperText()))));
|
|
286
|
+
}
|
|
287
|
+
static get is() { return "cura-input-text"; }
|
|
288
|
+
static get encapsulation() { return "shadow"; }
|
|
289
|
+
static get formAssociated() { return true; }
|
|
290
|
+
static get originalStyleUrls() {
|
|
291
|
+
return {
|
|
292
|
+
"$": ["cura-input-text.scss"]
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
static get styleUrls() {
|
|
296
|
+
return {
|
|
297
|
+
"$": ["cura-input-text.css"]
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
static get properties() {
|
|
301
|
+
return {
|
|
302
|
+
"mode": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"mutable": true,
|
|
305
|
+
"complexType": {
|
|
306
|
+
"original": "'default' | 'transparent'",
|
|
307
|
+
"resolved": "\"default\" | \"transparent\"",
|
|
308
|
+
"references": {}
|
|
309
|
+
},
|
|
310
|
+
"required": false,
|
|
311
|
+
"optional": false,
|
|
312
|
+
"docs": {
|
|
313
|
+
"tags": [],
|
|
314
|
+
"text": "Mode of the input: 'default' or 'transparent' (default: 'default')"
|
|
315
|
+
},
|
|
316
|
+
"attribute": "mode",
|
|
317
|
+
"reflect": true,
|
|
318
|
+
"defaultValue": "'default'"
|
|
319
|
+
},
|
|
320
|
+
"status": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"mutable": true,
|
|
323
|
+
"complexType": {
|
|
324
|
+
"original": "'error' | 'success' | 'default'",
|
|
325
|
+
"resolved": "\"default\" | \"error\" | \"success\"",
|
|
326
|
+
"references": {}
|
|
327
|
+
},
|
|
328
|
+
"required": false,
|
|
329
|
+
"optional": false,
|
|
330
|
+
"docs": {
|
|
331
|
+
"tags": [],
|
|
332
|
+
"text": "Indicates input status(default: default)"
|
|
333
|
+
},
|
|
334
|
+
"attribute": "status",
|
|
335
|
+
"reflect": true,
|
|
336
|
+
"defaultValue": "'default'"
|
|
337
|
+
},
|
|
338
|
+
"size": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"mutable": true,
|
|
341
|
+
"complexType": {
|
|
342
|
+
"original": "'small' | 'medium' | 'large'",
|
|
343
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
344
|
+
"references": {}
|
|
345
|
+
},
|
|
346
|
+
"required": false,
|
|
347
|
+
"optional": false,
|
|
348
|
+
"docs": {
|
|
349
|
+
"tags": [],
|
|
350
|
+
"text": "Size of the input mode default: 'small', 'medium', or 'large' (default: 'medium')"
|
|
351
|
+
},
|
|
352
|
+
"attribute": "size",
|
|
353
|
+
"reflect": true,
|
|
354
|
+
"defaultValue": "'medium'"
|
|
355
|
+
},
|
|
356
|
+
"type": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"mutable": false,
|
|
359
|
+
"complexType": {
|
|
360
|
+
"original": "string",
|
|
361
|
+
"resolved": "string",
|
|
362
|
+
"references": {}
|
|
363
|
+
},
|
|
364
|
+
"required": false,
|
|
365
|
+
"optional": false,
|
|
366
|
+
"docs": {
|
|
367
|
+
"tags": [],
|
|
368
|
+
"text": "Type of the input: 'text', 'number' (default: 'text')"
|
|
369
|
+
},
|
|
370
|
+
"attribute": "type",
|
|
371
|
+
"reflect": true,
|
|
372
|
+
"defaultValue": "'text'"
|
|
373
|
+
},
|
|
374
|
+
"inputMode": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"mutable": false,
|
|
377
|
+
"complexType": {
|
|
378
|
+
"original": "string",
|
|
379
|
+
"resolved": "string",
|
|
380
|
+
"references": {}
|
|
381
|
+
},
|
|
382
|
+
"required": false,
|
|
383
|
+
"optional": false,
|
|
384
|
+
"docs": {
|
|
385
|
+
"tags": [],
|
|
386
|
+
"text": "Type of the input: 'text', 'number' (default: 'text')"
|
|
387
|
+
},
|
|
388
|
+
"attribute": "input-mode",
|
|
389
|
+
"reflect": true,
|
|
390
|
+
"defaultValue": "'text'"
|
|
391
|
+
},
|
|
392
|
+
"label": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"mutable": false,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "string",
|
|
397
|
+
"resolved": "string",
|
|
398
|
+
"references": {}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
401
|
+
"optional": true,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [],
|
|
404
|
+
"text": "Label text for the input"
|
|
405
|
+
},
|
|
406
|
+
"attribute": "label",
|
|
407
|
+
"reflect": true,
|
|
408
|
+
"defaultValue": "''"
|
|
409
|
+
},
|
|
410
|
+
"name": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"mutable": false,
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "string",
|
|
415
|
+
"resolved": "string",
|
|
416
|
+
"references": {}
|
|
417
|
+
},
|
|
418
|
+
"required": false,
|
|
419
|
+
"optional": true,
|
|
420
|
+
"docs": {
|
|
421
|
+
"tags": [],
|
|
422
|
+
"text": "Name text for the input"
|
|
423
|
+
},
|
|
424
|
+
"attribute": "name",
|
|
425
|
+
"reflect": true,
|
|
426
|
+
"defaultValue": "''"
|
|
427
|
+
},
|
|
428
|
+
"placeholder": {
|
|
429
|
+
"type": "string",
|
|
430
|
+
"mutable": false,
|
|
431
|
+
"complexType": {
|
|
432
|
+
"original": "string | null",
|
|
433
|
+
"resolved": "string",
|
|
434
|
+
"references": {}
|
|
435
|
+
},
|
|
436
|
+
"required": false,
|
|
437
|
+
"optional": true,
|
|
438
|
+
"docs": {
|
|
439
|
+
"tags": [],
|
|
440
|
+
"text": "Placeholder text for the input"
|
|
441
|
+
},
|
|
442
|
+
"attribute": "placeholder",
|
|
443
|
+
"reflect": true,
|
|
444
|
+
"defaultValue": "null"
|
|
445
|
+
},
|
|
446
|
+
"value": {
|
|
447
|
+
"type": "any",
|
|
448
|
+
"mutable": true,
|
|
449
|
+
"complexType": {
|
|
450
|
+
"original": "string | number",
|
|
451
|
+
"resolved": "number | string",
|
|
452
|
+
"references": {}
|
|
453
|
+
},
|
|
454
|
+
"required": false,
|
|
455
|
+
"optional": true,
|
|
456
|
+
"docs": {
|
|
457
|
+
"tags": [],
|
|
458
|
+
"text": "Value of the input field"
|
|
459
|
+
},
|
|
460
|
+
"attribute": "value",
|
|
461
|
+
"reflect": false,
|
|
462
|
+
"defaultValue": "''"
|
|
463
|
+
},
|
|
464
|
+
"iconName": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"mutable": true,
|
|
467
|
+
"complexType": {
|
|
468
|
+
"original": "string",
|
|
469
|
+
"resolved": "string",
|
|
470
|
+
"references": {}
|
|
471
|
+
},
|
|
472
|
+
"required": false,
|
|
473
|
+
"optional": true,
|
|
474
|
+
"docs": {
|
|
475
|
+
"tags": [],
|
|
476
|
+
"text": "Whether to display a cura icon (default: null)"
|
|
477
|
+
},
|
|
478
|
+
"attribute": "icon-name",
|
|
479
|
+
"reflect": true,
|
|
480
|
+
"defaultValue": "''"
|
|
481
|
+
},
|
|
482
|
+
"helperText": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"mutable": true,
|
|
485
|
+
"complexType": {
|
|
486
|
+
"original": "string",
|
|
487
|
+
"resolved": "string",
|
|
488
|
+
"references": {}
|
|
489
|
+
},
|
|
490
|
+
"required": false,
|
|
491
|
+
"optional": true,
|
|
492
|
+
"docs": {
|
|
493
|
+
"tags": [],
|
|
494
|
+
"text": "Helper text displayed below the input"
|
|
495
|
+
},
|
|
496
|
+
"attribute": "helper-text",
|
|
497
|
+
"reflect": true
|
|
498
|
+
},
|
|
499
|
+
"disabled": {
|
|
500
|
+
"type": "boolean",
|
|
501
|
+
"mutable": false,
|
|
502
|
+
"complexType": {
|
|
503
|
+
"original": "boolean",
|
|
504
|
+
"resolved": "boolean",
|
|
505
|
+
"references": {}
|
|
506
|
+
},
|
|
507
|
+
"required": false,
|
|
508
|
+
"optional": true,
|
|
509
|
+
"docs": {
|
|
510
|
+
"tags": [],
|
|
511
|
+
"text": "Whether the input is disabled (default: false)"
|
|
512
|
+
},
|
|
513
|
+
"attribute": "disabled",
|
|
514
|
+
"reflect": true,
|
|
515
|
+
"defaultValue": "false"
|
|
516
|
+
},
|
|
517
|
+
"required": {
|
|
518
|
+
"type": "boolean",
|
|
519
|
+
"mutable": false,
|
|
520
|
+
"complexType": {
|
|
521
|
+
"original": "boolean",
|
|
522
|
+
"resolved": "boolean",
|
|
523
|
+
"references": {}
|
|
524
|
+
},
|
|
525
|
+
"required": false,
|
|
526
|
+
"optional": true,
|
|
527
|
+
"docs": {
|
|
528
|
+
"tags": [],
|
|
529
|
+
"text": "Whether the input is required (default: false)"
|
|
530
|
+
},
|
|
531
|
+
"attribute": "required",
|
|
532
|
+
"reflect": true,
|
|
533
|
+
"defaultValue": "false"
|
|
534
|
+
},
|
|
535
|
+
"maskPreset": {
|
|
536
|
+
"type": "any",
|
|
537
|
+
"mutable": false,
|
|
538
|
+
"complexType": {
|
|
539
|
+
"original": "MaskPreset",
|
|
540
|
+
"resolved": "number | string",
|
|
541
|
+
"references": {
|
|
542
|
+
"MaskPreset": {
|
|
543
|
+
"location": "local",
|
|
544
|
+
"path": "/Users/fellipesoares/Code/cura/packages/component-lib/src/components/forms/cura-input-text/cura-input-text.tsx",
|
|
545
|
+
"id": "src/components/forms/cura-input-text/cura-input-text.tsx::MaskPreset"
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"required": false,
|
|
550
|
+
"optional": true,
|
|
551
|
+
"docs": {
|
|
552
|
+
"tags": [{
|
|
553
|
+
"name": "see",
|
|
554
|
+
"text": " : https://imask.js.org/"
|
|
555
|
+
}],
|
|
556
|
+
"text": "Mask preset for input formatting: 'cpf', 'cnpj', 'phone', 'date', etc. Uses IMask library."
|
|
557
|
+
},
|
|
558
|
+
"attribute": "mask-preset",
|
|
559
|
+
"reflect": false
|
|
560
|
+
},
|
|
561
|
+
"maskRegex": {
|
|
562
|
+
"type": "string",
|
|
563
|
+
"mutable": true,
|
|
564
|
+
"complexType": {
|
|
565
|
+
"original": "string | null",
|
|
566
|
+
"resolved": "string",
|
|
567
|
+
"references": {}
|
|
568
|
+
},
|
|
569
|
+
"required": false,
|
|
570
|
+
"optional": true,
|
|
571
|
+
"docs": {
|
|
572
|
+
"tags": [{
|
|
573
|
+
"name": "see",
|
|
574
|
+
"text": " : https://imask.js.org/"
|
|
575
|
+
}],
|
|
576
|
+
"text": "Regular expression for custom input masking. Uses IMask library."
|
|
577
|
+
},
|
|
578
|
+
"attribute": "mask-regex",
|
|
579
|
+
"reflect": true
|
|
580
|
+
},
|
|
581
|
+
"maskAdvanced": {
|
|
582
|
+
"type": "any",
|
|
583
|
+
"mutable": true,
|
|
584
|
+
"complexType": {
|
|
585
|
+
"original": "any | string | null",
|
|
586
|
+
"resolved": "any",
|
|
587
|
+
"references": {}
|
|
588
|
+
},
|
|
589
|
+
"required": false,
|
|
590
|
+
"optional": true,
|
|
591
|
+
"docs": {
|
|
592
|
+
"tags": [{
|
|
593
|
+
"name": "see",
|
|
594
|
+
"text": " : https://imask.js.org/"
|
|
595
|
+
}],
|
|
596
|
+
"text": "Advanced mask object to be used with IMask library"
|
|
597
|
+
},
|
|
598
|
+
"attribute": "mask-advanced",
|
|
599
|
+
"reflect": true
|
|
600
|
+
},
|
|
601
|
+
"maxlength": {
|
|
602
|
+
"type": "number",
|
|
603
|
+
"mutable": true,
|
|
604
|
+
"complexType": {
|
|
605
|
+
"original": "number | undefined",
|
|
606
|
+
"resolved": "number",
|
|
607
|
+
"references": {}
|
|
608
|
+
},
|
|
609
|
+
"required": false,
|
|
610
|
+
"optional": true,
|
|
611
|
+
"docs": {
|
|
612
|
+
"tags": [],
|
|
613
|
+
"text": "Maximum length of the input value (default: undefined)"
|
|
614
|
+
},
|
|
615
|
+
"attribute": "maxlength",
|
|
616
|
+
"reflect": true
|
|
617
|
+
},
|
|
618
|
+
"readOnly": {
|
|
619
|
+
"type": "boolean",
|
|
620
|
+
"mutable": false,
|
|
621
|
+
"complexType": {
|
|
622
|
+
"original": "boolean",
|
|
623
|
+
"resolved": "boolean",
|
|
624
|
+
"references": {}
|
|
625
|
+
},
|
|
626
|
+
"required": false,
|
|
627
|
+
"optional": true,
|
|
628
|
+
"docs": {
|
|
629
|
+
"tags": [],
|
|
630
|
+
"text": "Whether the input is read-only (default: false)"
|
|
631
|
+
},
|
|
632
|
+
"attribute": "read-only",
|
|
633
|
+
"reflect": true,
|
|
634
|
+
"defaultValue": "false"
|
|
635
|
+
},
|
|
636
|
+
"isLoading": {
|
|
637
|
+
"type": "boolean",
|
|
638
|
+
"mutable": true,
|
|
639
|
+
"complexType": {
|
|
640
|
+
"original": "boolean",
|
|
641
|
+
"resolved": "boolean",
|
|
642
|
+
"references": {}
|
|
643
|
+
},
|
|
644
|
+
"required": false,
|
|
645
|
+
"optional": true,
|
|
646
|
+
"docs": {
|
|
647
|
+
"tags": [],
|
|
648
|
+
"text": "Whether the input is in loading state (default: false)"
|
|
649
|
+
},
|
|
650
|
+
"attribute": "is-loading",
|
|
651
|
+
"reflect": true,
|
|
652
|
+
"defaultValue": "false"
|
|
653
|
+
},
|
|
654
|
+
"clearIcon": {
|
|
655
|
+
"type": "boolean",
|
|
656
|
+
"mutable": true,
|
|
657
|
+
"complexType": {
|
|
658
|
+
"original": "boolean",
|
|
659
|
+
"resolved": "boolean",
|
|
660
|
+
"references": {}
|
|
661
|
+
},
|
|
662
|
+
"required": false,
|
|
663
|
+
"optional": true,
|
|
664
|
+
"docs": {
|
|
665
|
+
"tags": [],
|
|
666
|
+
"text": "Icon button name for the clear button (default: 'closeCircle')"
|
|
667
|
+
},
|
|
668
|
+
"attribute": "clear-icon",
|
|
669
|
+
"reflect": true,
|
|
670
|
+
"defaultValue": "true"
|
|
671
|
+
},
|
|
672
|
+
"hideErrorIcon": {
|
|
673
|
+
"type": "boolean",
|
|
674
|
+
"mutable": false,
|
|
675
|
+
"complexType": {
|
|
676
|
+
"original": "boolean",
|
|
677
|
+
"resolved": "boolean",
|
|
678
|
+
"references": {}
|
|
679
|
+
},
|
|
680
|
+
"required": false,
|
|
681
|
+
"optional": false,
|
|
682
|
+
"docs": {
|
|
683
|
+
"tags": [],
|
|
684
|
+
"text": "Removes the alertCircle icon when necessary(as used in CuraDropdownSearch)"
|
|
685
|
+
},
|
|
686
|
+
"attribute": "hide-error-icon",
|
|
687
|
+
"reflect": false,
|
|
688
|
+
"defaultValue": "false"
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
static get states() {
|
|
693
|
+
return {
|
|
694
|
+
"isHovered": {},
|
|
695
|
+
"isFocused": {},
|
|
696
|
+
"styles": {}
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
static get events() {
|
|
700
|
+
return [{
|
|
701
|
+
"method": "valueChange",
|
|
702
|
+
"name": "valueChange",
|
|
703
|
+
"bubbles": true,
|
|
704
|
+
"cancelable": true,
|
|
705
|
+
"composed": true,
|
|
706
|
+
"docs": {
|
|
707
|
+
"tags": [{
|
|
708
|
+
"name": "type",
|
|
709
|
+
"text": "{EventEmitter<string | number>}"
|
|
710
|
+
}],
|
|
711
|
+
"text": "Emitted when the value of the input changes"
|
|
712
|
+
},
|
|
713
|
+
"complexType": {
|
|
714
|
+
"original": "string | number",
|
|
715
|
+
"resolved": "number | string",
|
|
716
|
+
"references": {}
|
|
717
|
+
}
|
|
718
|
+
}];
|
|
719
|
+
}
|
|
720
|
+
static get watchers() {
|
|
721
|
+
return [{
|
|
722
|
+
"propName": "styles",
|
|
723
|
+
"methodName": "connectedCallback"
|
|
724
|
+
}, {
|
|
725
|
+
"propName": "size",
|
|
726
|
+
"methodName": "getClasses"
|
|
727
|
+
}, {
|
|
728
|
+
"propName": "status",
|
|
729
|
+
"methodName": "renderIcon"
|
|
730
|
+
}, {
|
|
731
|
+
"propName": "mode",
|
|
732
|
+
"methodName": "renderIcon"
|
|
733
|
+
}, {
|
|
734
|
+
"propName": "maskPreset",
|
|
735
|
+
"methodName": "initializeMask"
|
|
736
|
+
}, {
|
|
737
|
+
"propName": "maskRegex",
|
|
738
|
+
"methodName": "initializeMask"
|
|
739
|
+
}, {
|
|
740
|
+
"propName": "maskAdvanced",
|
|
741
|
+
"methodName": "initializeMask"
|
|
742
|
+
}];
|
|
743
|
+
}
|
|
744
|
+
static get attachInternalsMemberName() { return "internals"; }
|
|
654
745
|
}
|
|
655
746
|
//# sourceMappingURL=cura-input-text.js.map
|