snice 2.1.5 → 2.2.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/components/accordion/snice-accordion-item.d.ts +25 -0
- package/dist/components/accordion/snice-accordion-item.js +255 -0
- package/dist/components/accordion/snice-accordion-item.js.map +1 -0
- package/dist/components/accordion/snice-accordion.d.ts +28 -0
- package/dist/components/accordion/snice-accordion.js +206 -0
- package/dist/components/accordion/snice-accordion.js.map +1 -0
- package/dist/components/accordion/snice-accordion.types.d.ts +29 -0
- package/dist/components/alert/snice-alert.d.ts +26 -0
- package/dist/components/alert/snice-alert.js +180 -0
- package/dist/components/alert/snice-alert.js.map +1 -0
- package/{components/alert/snice-alert.types.ts → dist/components/alert/snice-alert.types.d.ts} +8 -9
- package/dist/components/avatar/snice-avatar.d.ts +24 -0
- package/dist/components/avatar/snice-avatar.js +180 -0
- package/dist/components/avatar/snice-avatar.js.map +1 -0
- package/dist/components/avatar/snice-avatar.types.d.ts +12 -0
- package/dist/components/badge/snice-badge.d.ts +25 -0
- package/dist/components/badge/snice-badge.js +169 -0
- package/dist/components/badge/snice-badge.js.map +1 -0
- package/{components/badge/snice-badge.types.ts → dist/components/badge/snice-badge.types.d.ts} +11 -12
- package/dist/components/breadcrumbs/snice-breadcrumbs.d.ts +27 -0
- package/dist/components/breadcrumbs/snice-breadcrumbs.js +214 -0
- package/dist/components/breadcrumbs/snice-breadcrumbs.js.map +1 -0
- package/dist/components/breadcrumbs/snice-breadcrumbs.types.d.ts +23 -0
- package/dist/components/breadcrumbs/snice-crumb.d.ts +9 -0
- package/dist/components/breadcrumbs/snice-crumb.js +63 -0
- package/dist/components/breadcrumbs/snice-crumb.js.map +1 -0
- package/dist/components/button/snice-button.d.ts +32 -0
- package/dist/components/button/snice-button.js +232 -0
- package/dist/components/button/snice-button.js.map +1 -0
- package/dist/components/button/snice-button.types.d.ts +23 -0
- package/dist/components/card/snice-card.d.ts +19 -0
- package/dist/components/card/snice-card.js +136 -0
- package/dist/components/card/snice-card.js.map +1 -0
- package/{components/card/snice-card.types.ts → dist/components/card/snice-card.types.d.ts} +6 -7
- package/dist/components/checkbox/snice-checkbox.d.ts +34 -0
- package/dist/components/checkbox/snice-checkbox.js +286 -0
- package/dist/components/checkbox/snice-checkbox.js.map +1 -0
- package/dist/components/checkbox/snice-checkbox.types.d.ts +20 -0
- package/dist/components/chip/snice-chip.d.ts +28 -0
- package/dist/components/chip/snice-chip.js +199 -0
- package/dist/components/chip/snice-chip.js.map +1 -0
- package/dist/components/chip/snice-chip.types.d.ts +14 -0
- package/dist/components/date-picker/snice-date-picker.d.ts +82 -0
- package/dist/components/date-picker/snice-date-picker.js +847 -0
- package/dist/components/date-picker/snice-date-picker.js.map +1 -0
- package/dist/components/date-picker/snice-date-picker.types.d.ts +71 -0
- package/dist/components/divider/snice-divider.d.ts +17 -0
- package/dist/components/divider/snice-divider.js +122 -0
- package/dist/components/divider/snice-divider.js.map +1 -0
- package/{components/divider/snice-divider.types.ts → dist/components/divider/snice-divider.types.d.ts} +9 -10
- package/dist/components/drawer/snice-drawer.d.ts +37 -0
- package/dist/components/drawer/snice-drawer.js +337 -0
- package/dist/components/drawer/snice-drawer.js.map +1 -0
- package/dist/components/drawer/snice-drawer.types.d.ts +16 -0
- package/dist/components/input/snice-input.d.ts +65 -0
- package/dist/components/input/snice-input.js +567 -0
- package/dist/components/input/snice-input.js.map +1 -0
- package/dist/components/input/snice-input.types.d.ts +53 -0
- package/dist/components/layout/snice-layout-blog.d.ts +4 -0
- package/dist/components/layout/snice-layout-blog.js +67 -0
- package/dist/components/layout/snice-layout-blog.js.map +1 -0
- package/dist/components/layout/snice-layout-card.d.ts +6 -0
- package/dist/components/layout/snice-layout-card.js +64 -0
- package/dist/components/layout/snice-layout-card.js.map +1 -0
- package/dist/components/layout/snice-layout-centered.d.ts +5 -0
- package/dist/components/layout/snice-layout-centered.js +48 -0
- package/dist/components/layout/snice-layout-centered.js.map +1 -0
- package/dist/components/layout/snice-layout-dashboard.d.ts +4 -0
- package/dist/components/layout/snice-layout-dashboard.js +64 -0
- package/dist/components/layout/snice-layout-dashboard.js.map +1 -0
- package/dist/components/layout/snice-layout-fullscreen.d.ts +5 -0
- package/dist/components/layout/snice-layout-fullscreen.js +60 -0
- package/dist/components/layout/snice-layout-fullscreen.js.map +1 -0
- package/dist/components/layout/snice-layout-landing.d.ts +4 -0
- package/dist/components/layout/snice-layout-landing.js +66 -0
- package/dist/components/layout/snice-layout-landing.js.map +1 -0
- package/dist/components/layout/snice-layout-minimal.d.ts +4 -0
- package/dist/components/layout/snice-layout-minimal.js +38 -0
- package/dist/components/layout/snice-layout-minimal.js.map +1 -0
- package/dist/components/layout/snice-layout-sidebar.d.ts +5 -0
- package/dist/components/layout/snice-layout-sidebar.js +74 -0
- package/dist/components/layout/snice-layout-sidebar.js.map +1 -0
- package/dist/components/layout/snice-layout-split.d.ts +6 -0
- package/dist/components/layout/snice-layout-split.js +58 -0
- package/dist/components/layout/snice-layout-split.js.map +1 -0
- package/dist/components/layout/snice-layout.d.ts +4 -0
- package/dist/components/layout/snice-layout.js +54 -0
- package/dist/components/layout/snice-layout.js.map +1 -0
- package/{components/layout/snice-layout.types.ts → dist/components/layout/snice-layout.types.d.ts} +1 -3
- package/dist/components/login/snice-login.d.ts +44 -0
- package/dist/components/login/snice-login.js +382 -0
- package/dist/components/login/snice-login.js.map +1 -0
- package/dist/components/login/snice-login.types.d.ts +26 -0
- package/dist/components/modal/snice-modal.d.ts +32 -0
- package/dist/components/modal/snice-modal.js +280 -0
- package/dist/components/modal/snice-modal.js.map +1 -0
- package/dist/components/modal/snice-modal.types.d.ts +18 -0
- package/dist/components/pagination/snice-pagination.d.ts +26 -0
- package/dist/components/pagination/snice-pagination.js +373 -0
- package/dist/components/pagination/snice-pagination.js.map +1 -0
- package/dist/components/pagination/snice-pagination.types.d.ts +18 -0
- package/dist/components/progress/snice-progress.d.ts +35 -0
- package/dist/components/progress/snice-progress.js +305 -0
- package/dist/components/progress/snice-progress.js.map +1 -0
- package/dist/components/progress/snice-progress.types.d.ts +18 -0
- package/dist/components/radio/snice-radio.d.ts +33 -0
- package/dist/components/radio/snice-radio.js +279 -0
- package/dist/components/radio/snice-radio.js.map +1 -0
- package/dist/components/radio/snice-radio.types.d.ts +19 -0
- package/dist/components/select/snice-option.d.ts +17 -0
- package/dist/components/select/snice-option.js +88 -0
- package/dist/components/select/snice-option.js.map +1 -0
- package/{components/select/snice-option.types.ts → dist/components/select/snice-option.types.d.ts} +8 -8
- package/dist/components/select/snice-select.d.ts +89 -0
- package/dist/components/select/snice-select.js +864 -0
- package/dist/components/select/snice-select.js.map +1 -0
- package/dist/components/select/snice-select.types.d.ts +49 -0
- package/dist/components/skeleton/snice-skeleton.d.ts +16 -0
- package/dist/components/skeleton/snice-skeleton.js +166 -0
- package/dist/components/skeleton/snice-skeleton.js.map +1 -0
- package/{components/skeleton/snice-skeleton.types.ts → dist/components/skeleton/snice-skeleton.types.d.ts} +7 -8
- package/dist/components/snice-cell-C8aBfN72.js +4 -0
- package/dist/components/snice-cell-C8aBfN72.js.map +1 -0
- package/dist/components/switch/snice-switch.d.ts +38 -0
- package/dist/components/switch/snice-switch.js +305 -0
- package/dist/components/switch/snice-switch.js.map +1 -0
- package/dist/components/switch/snice-switch.types.d.ts +21 -0
- package/dist/components/symbols.d.ts +1 -0
- package/dist/components/symbols.js +22 -0
- package/dist/components/symbols.js.map +1 -0
- package/dist/components/table/snice-cell-boolean.d.ts +21 -0
- package/dist/components/table/snice-cell-boolean.js +164 -0
- package/dist/components/table/snice-cell-boolean.js.map +1 -0
- package/dist/components/table/snice-cell-date.d.ts +24 -0
- package/dist/components/table/snice-cell-date.js +253 -0
- package/dist/components/table/snice-cell-date.js.map +1 -0
- package/dist/components/table/snice-cell-duration.d.ts +16 -0
- package/dist/components/table/snice-cell-duration.js +130 -0
- package/dist/components/table/snice-cell-duration.js.map +1 -0
- package/dist/components/table/snice-cell-filesize.d.ts +16 -0
- package/dist/components/table/snice-cell-filesize.js +126 -0
- package/dist/components/table/snice-cell-filesize.js.map +1 -0
- package/dist/components/table/snice-cell-number.d.ts +23 -0
- package/dist/components/table/snice-cell-number.js +215 -0
- package/dist/components/table/snice-cell-number.js.map +1 -0
- package/dist/components/table/snice-cell-progress.d.ts +17 -0
- package/dist/components/table/snice-cell-progress.js +121 -0
- package/dist/components/table/snice-cell-progress.js.map +1 -0
- package/dist/components/table/snice-cell-rating.d.ts +17 -0
- package/dist/components/table/snice-cell-rating.js +120 -0
- package/dist/components/table/snice-cell-rating.js.map +1 -0
- package/dist/components/table/snice-cell-sparkline.d.ts +29 -0
- package/dist/components/table/snice-cell-sparkline.js +306 -0
- package/dist/components/table/snice-cell-sparkline.js.map +1 -0
- package/dist/components/table/snice-cell-text.d.ts +19 -0
- package/dist/components/table/snice-cell-text.js +161 -0
- package/dist/components/table/snice-cell-text.js.map +1 -0
- package/dist/components/table/snice-cell.d.ts +32 -0
- package/dist/components/table/snice-cell.js +458 -0
- package/dist/components/table/snice-cell.js.map +1 -0
- package/dist/components/table/snice-column.d.ts +62 -0
- package/dist/components/table/snice-column.js +506 -0
- package/dist/components/table/snice-column.js.map +1 -0
- package/dist/components/table/snice-header.d.ts +33 -0
- package/dist/components/table/snice-header.js +289 -0
- package/dist/components/table/snice-header.js.map +1 -0
- package/dist/components/table/snice-progress.d.ts +10 -0
- package/dist/components/table/snice-progress.js +105 -0
- package/dist/components/table/snice-progress.js.map +1 -0
- package/dist/components/table/snice-rating.d.ts +9 -0
- package/dist/components/table/snice-rating.js +81 -0
- package/dist/components/table/snice-rating.js.map +1 -0
- package/dist/components/table/snice-row.d.ts +43 -0
- package/dist/components/table/snice-row.js +353 -0
- package/dist/components/table/snice-row.js.map +1 -0
- package/dist/components/table/snice-table.d.ts +69 -0
- package/dist/components/table/snice-table.js +792 -0
- package/dist/components/table/snice-table.js.map +1 -0
- package/dist/components/table/snice-table.types.d.ts +137 -0
- package/dist/components/tabs/snice-tab-panel.d.ts +12 -0
- package/dist/components/tabs/snice-tab-panel.js +87 -0
- package/dist/components/tabs/snice-tab-panel.js.map +1 -0
- package/dist/components/tabs/snice-tab.d.ts +13 -0
- package/dist/components/tabs/snice-tab.js +98 -0
- package/dist/components/tabs/snice-tab.js.map +1 -0
- package/dist/components/tabs/snice-tabs.d.ts +34 -0
- package/dist/components/tabs/snice-tabs.js +375 -0
- package/dist/components/tabs/snice-tabs.js.map +1 -0
- package/dist/components/tabs/snice-tabs.types.d.ts +23 -0
- package/dist/components/toast/snice-toast-container.d.ts +25 -0
- package/dist/components/toast/snice-toast-container.js +252 -0
- package/dist/components/toast/snice-toast-container.js.map +1 -0
- package/dist/components/toast/snice-toast.d.ts +23 -0
- package/dist/components/toast/snice-toast.js +321 -0
- package/dist/components/toast/snice-toast.js.map +1 -0
- package/dist/components/toast/snice-toast.types.d.ts +30 -0
- package/dist/components/tooltip/snice-tooltip.d.ts +50 -0
- package/dist/components/tooltip/snice-tooltip.js +644 -0
- package/dist/components/tooltip/snice-tooltip.js.map +1 -0
- package/dist/components/tooltip/snice-tooltip.types.d.ts +18 -0
- package/dist/components/transitions.d.ts +11 -0
- package/dist/components/transitions.js +72 -0
- package/dist/components/transitions.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/symbols.esm.js +1 -1
- package/dist/transitions.esm.js +1 -1
- package/package.json +10 -6
- package/components/accordion/demo.html +0 -403
- package/components/accordion/snice-accordion-item.css +0 -85
- package/components/accordion/snice-accordion-item.ts +0 -226
- package/components/accordion/snice-accordion.css +0 -31
- package/components/accordion/snice-accordion.ts +0 -182
- package/components/accordion/snice-accordion.types.ts +0 -32
- package/components/alert/demo.html +0 -445
- package/components/alert/snice-alert.css +0 -195
- package/components/alert/snice-alert.ts +0 -141
- package/components/avatar/demo.html +0 -598
- package/components/avatar/snice-avatar.css +0 -131
- package/components/avatar/snice-avatar.ts +0 -136
- package/components/avatar/snice-avatar.types.ts +0 -13
- package/components/badge/demo.html +0 -523
- package/components/badge/snice-badge.css +0 -161
- package/components/badge/snice-badge.ts +0 -117
- package/components/breadcrumbs/demo.html +0 -404
- package/components/breadcrumbs/snice-breadcrumbs.css +0 -133
- package/components/breadcrumbs/snice-breadcrumbs.ts +0 -191
- package/components/breadcrumbs/snice-breadcrumbs.types.ts +0 -26
- package/components/breadcrumbs/snice-crumb.ts +0 -26
- package/components/button/demo.html +0 -42
- package/components/button/snice-button.css +0 -230
- package/components/button/snice-button.ts +0 -169
- package/components/button/snice-button.types.ts +0 -25
- package/components/card/demo.html +0 -525
- package/components/card/snice-card.css +0 -140
- package/components/card/snice-card.ts +0 -102
- package/components/checkbox/demo.html +0 -253
- package/components/checkbox/snice-checkbox.css +0 -164
- package/components/checkbox/snice-checkbox.ts +0 -223
- package/components/checkbox/snice-checkbox.types.ts +0 -22
- package/components/chip/demo.html +0 -383
- package/components/chip/snice-chip.css +0 -195
- package/components/chip/snice-chip.ts +0 -139
- package/components/chip/snice-chip.types.ts +0 -15
- package/components/date-picker/README.md +0 -233
- package/components/date-picker/demo.html +0 -191
- package/components/date-picker/snice-date-picker.css +0 -330
- package/components/date-picker/snice-date-picker.ts +0 -777
- package/components/date-picker/snice-date-picker.types.ts +0 -83
- package/components/divider/demo.html +0 -233
- package/components/divider/snice-divider.css +0 -155
- package/components/divider/snice-divider.ts +0 -69
- package/components/drawer/demo.html +0 -328
- package/components/drawer/snice-drawer.css +0 -476
- package/components/drawer/snice-drawer.ts +0 -287
- package/components/drawer/snice-drawer.types.ts +0 -17
- package/components/global.d.ts +0 -14
- package/components/input/demo.html +0 -303
- package/components/input/snice-input.css +0 -257
- package/components/input/snice-input.ts +0 -442
- package/components/input/snice-input.types.ts +0 -59
- package/components/input/test.html +0 -77
- package/components/layout/README.md +0 -260
- package/components/layout/demo.html +0 -538
- package/components/layout/snice-layout-blog.css +0 -129
- package/components/layout/snice-layout-blog.ts +0 -48
- package/components/layout/snice-layout-card.css +0 -104
- package/components/layout/snice-layout-card.ts +0 -35
- package/components/layout/snice-layout-centered.css +0 -51
- package/components/layout/snice-layout-centered.ts +0 -22
- package/components/layout/snice-layout-dashboard.css +0 -98
- package/components/layout/snice-layout-dashboard.ts +0 -45
- package/components/layout/snice-layout-fullscreen.css +0 -72
- package/components/layout/snice-layout-fullscreen.ts +0 -34
- package/components/layout/snice-layout-landing.css +0 -92
- package/components/layout/snice-layout-landing.ts +0 -47
- package/components/layout/snice-layout-minimal.css +0 -16
- package/components/layout/snice-layout-minimal.ts +0 -19
- package/components/layout/snice-layout-sidebar.css +0 -117
- package/components/layout/snice-layout-sidebar.ts +0 -48
- package/components/layout/snice-layout-split.css +0 -103
- package/components/layout/snice-layout-split.ts +0 -29
- package/components/layout/snice-layout.css +0 -72
- package/components/layout/snice-layout.ts +0 -35
- package/components/login/demo-auth-controller.ts +0 -185
- package/components/login/demo.html +0 -470
- package/components/login/snice-login.css +0 -204
- package/components/login/snice-login.ts +0 -326
- package/components/login/snice-login.types.ts +0 -29
- package/components/modal/demo.html +0 -291
- package/components/modal/snice-modal.css +0 -203
- package/components/modal/snice-modal.ts +0 -233
- package/components/modal/snice-modal.types.ts +0 -21
- package/components/pagination/demo.html +0 -395
- package/components/pagination/snice-pagination.ts +0 -333
- package/components/pagination/snice-pagination.types.ts +0 -21
- package/components/progress/demo.html +0 -510
- package/components/progress/snice-progress.css +0 -267
- package/components/progress/snice-progress.ts +0 -247
- package/components/progress/snice-progress.types.ts +0 -19
- package/components/radio/demo.html +0 -287
- package/components/radio/snice-radio.css +0 -171
- package/components/radio/snice-radio.ts +0 -218
- package/components/radio/snice-radio.types.ts +0 -21
- package/components/select/demo.html +0 -511
- package/components/select/snice-option.ts +0 -52
- package/components/select/snice-select.css +0 -392
- package/components/select/snice-select.ts +0 -796
- package/components/select/snice-select.types.ts +0 -55
- package/components/skeleton/demo.html +0 -514
- package/components/skeleton/snice-skeleton.css +0 -109
- package/components/skeleton/snice-skeleton.ts +0 -126
- package/components/switch/demo.html +0 -284
- package/components/switch/snice-switch.css +0 -221
- package/components/switch/snice-switch.ts +0 -229
- package/components/switch/snice-switch.types.ts +0 -23
- package/components/symbols.ts +0 -23
- package/components/table/demo-table-controller.ts +0 -100
- package/components/table/demo.html +0 -480
- package/components/table/snice-cell-boolean.ts +0 -112
- package/components/table/snice-cell-date.ts +0 -210
- package/components/table/snice-cell-duration.ts +0 -91
- package/components/table/snice-cell-filesize.ts +0 -90
- package/components/table/snice-cell-number.ts +0 -165
- package/components/table/snice-cell-progress.ts +0 -83
- package/components/table/snice-cell-rating.ts +0 -82
- package/components/table/snice-cell-sparkline.ts +0 -253
- package/components/table/snice-cell-text.ts +0 -125
- package/components/table/snice-cell.css +0 -296
- package/components/table/snice-cell.ts +0 -473
- package/components/table/snice-column.ts +0 -353
- package/components/table/snice-header.css +0 -243
- package/components/table/snice-header.ts +0 -261
- package/components/table/snice-progress.ts +0 -66
- package/components/table/snice-rating.ts +0 -45
- package/components/table/snice-row.css +0 -255
- package/components/table/snice-row.ts +0 -331
- package/components/table/snice-table.css +0 -241
- package/components/table/snice-table.ts +0 -737
- package/components/table/snice-table.types.ts +0 -158
- package/components/tabs/demo.html +0 -487
- package/components/tabs/snice-tab-panel.css +0 -264
- package/components/tabs/snice-tab-panel.ts +0 -47
- package/components/tabs/snice-tab.css +0 -96
- package/components/tabs/snice-tab.ts +0 -65
- package/components/tabs/snice-tabs.css +0 -189
- package/components/tabs/snice-tabs.ts +0 -332
- package/components/tabs/snice-tabs.types.ts +0 -28
- package/components/theme/theme.css +0 -234
- package/components/toast/demo.html +0 -329
- package/components/toast/snice-toast-container.ts +0 -256
- package/components/toast/snice-toast.css +0 -213
- package/components/toast/snice-toast.ts +0 -276
- package/components/toast/snice-toast.types.ts +0 -35
- package/components/tooltip/demo.html +0 -350
- package/components/tooltip/snice-tooltip-portal.css +0 -79
- package/components/tooltip/snice-tooltip.css +0 -117
- package/components/tooltip/snice-tooltip.ts +0 -612
- package/components/tooltip/snice-tooltip.types.ts +0 -32
- package/components/transitions.ts +0 -94
- package/components/tsconfig.json +0 -18
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
import { __runInitializers, __esDecorate } from 'tslib';
|
|
2
|
+
import { element, property, query, ready, on, watch, dispatch } from 'snice';
|
|
3
|
+
|
|
4
|
+
var css = '';
|
|
5
|
+
|
|
6
|
+
let SniceInput = (() => {
|
|
7
|
+
let _classDecorators = [element('snice-input')];
|
|
8
|
+
let _classDescriptor;
|
|
9
|
+
let _classExtraInitializers = [];
|
|
10
|
+
let _classThis;
|
|
11
|
+
let _classSuper = HTMLElement;
|
|
12
|
+
let _instanceExtraInitializers = [];
|
|
13
|
+
let _type_decorators;
|
|
14
|
+
let _type_initializers = [];
|
|
15
|
+
let _type_extraInitializers = [];
|
|
16
|
+
let _size_decorators;
|
|
17
|
+
let _size_initializers = [];
|
|
18
|
+
let _size_extraInitializers = [];
|
|
19
|
+
let _variant_decorators;
|
|
20
|
+
let _variant_initializers = [];
|
|
21
|
+
let _variant_extraInitializers = [];
|
|
22
|
+
let _value_decorators;
|
|
23
|
+
let _value_initializers = [];
|
|
24
|
+
let _value_extraInitializers = [];
|
|
25
|
+
let _placeholder_decorators;
|
|
26
|
+
let _placeholder_initializers = [];
|
|
27
|
+
let _placeholder_extraInitializers = [];
|
|
28
|
+
let _label_decorators;
|
|
29
|
+
let _label_initializers = [];
|
|
30
|
+
let _label_extraInitializers = [];
|
|
31
|
+
let _helperText_decorators;
|
|
32
|
+
let _helperText_initializers = [];
|
|
33
|
+
let _helperText_extraInitializers = [];
|
|
34
|
+
let _errorText_decorators;
|
|
35
|
+
let _errorText_initializers = [];
|
|
36
|
+
let _errorText_extraInitializers = [];
|
|
37
|
+
let _disabled_decorators;
|
|
38
|
+
let _disabled_initializers = [];
|
|
39
|
+
let _disabled_extraInitializers = [];
|
|
40
|
+
let _readonly_decorators;
|
|
41
|
+
let _readonly_initializers = [];
|
|
42
|
+
let _readonly_extraInitializers = [];
|
|
43
|
+
let _required_decorators;
|
|
44
|
+
let _required_initializers = [];
|
|
45
|
+
let _required_extraInitializers = [];
|
|
46
|
+
let _invalid_decorators;
|
|
47
|
+
let _invalid_initializers = [];
|
|
48
|
+
let _invalid_extraInitializers = [];
|
|
49
|
+
let _clearable_decorators;
|
|
50
|
+
let _clearable_initializers = [];
|
|
51
|
+
let _clearable_extraInitializers = [];
|
|
52
|
+
let _password_decorators;
|
|
53
|
+
let _password_initializers = [];
|
|
54
|
+
let _password_extraInitializers = [];
|
|
55
|
+
let _min_decorators;
|
|
56
|
+
let _min_initializers = [];
|
|
57
|
+
let _min_extraInitializers = [];
|
|
58
|
+
let _max_decorators;
|
|
59
|
+
let _max_initializers = [];
|
|
60
|
+
let _max_extraInitializers = [];
|
|
61
|
+
let _step_decorators;
|
|
62
|
+
let _step_initializers = [];
|
|
63
|
+
let _step_extraInitializers = [];
|
|
64
|
+
let _pattern_decorators;
|
|
65
|
+
let _pattern_initializers = [];
|
|
66
|
+
let _pattern_extraInitializers = [];
|
|
67
|
+
let _maxlength_decorators;
|
|
68
|
+
let _maxlength_initializers = [];
|
|
69
|
+
let _maxlength_extraInitializers = [];
|
|
70
|
+
let _minlength_decorators;
|
|
71
|
+
let _minlength_initializers = [];
|
|
72
|
+
let _minlength_extraInitializers = [];
|
|
73
|
+
let _autocomplete_decorators;
|
|
74
|
+
let _autocomplete_initializers = [];
|
|
75
|
+
let _autocomplete_extraInitializers = [];
|
|
76
|
+
let _name_decorators;
|
|
77
|
+
let _name_initializers = [];
|
|
78
|
+
let _name_extraInitializers = [];
|
|
79
|
+
let _prefixIcon_decorators;
|
|
80
|
+
let _prefixIcon_initializers = [];
|
|
81
|
+
let _prefixIcon_extraInitializers = [];
|
|
82
|
+
let _suffixIcon_decorators;
|
|
83
|
+
let _suffixIcon_initializers = [];
|
|
84
|
+
let _suffixIcon_extraInitializers = [];
|
|
85
|
+
let _input_decorators;
|
|
86
|
+
let _input_initializers = [];
|
|
87
|
+
let _input_extraInitializers = [];
|
|
88
|
+
let _clearButton_decorators;
|
|
89
|
+
let _clearButton_initializers = [];
|
|
90
|
+
let _clearButton_extraInitializers = [];
|
|
91
|
+
let _passwordToggle_decorators;
|
|
92
|
+
let _passwordToggle_initializers = [];
|
|
93
|
+
let _passwordToggle_extraInitializers = [];
|
|
94
|
+
let _init_decorators;
|
|
95
|
+
let _handleInput_decorators;
|
|
96
|
+
let _handleChange_decorators;
|
|
97
|
+
let _handleFocus_decorators;
|
|
98
|
+
let _handleBlur_decorators;
|
|
99
|
+
let _handleClear_decorators;
|
|
100
|
+
let _handlePasswordToggle_decorators;
|
|
101
|
+
let _handleValueChange_decorators;
|
|
102
|
+
let _handleInvalidChange_decorators;
|
|
103
|
+
let _handleDisabledChange_decorators;
|
|
104
|
+
let _handleReadonlyChange_decorators;
|
|
105
|
+
let _handlePlaceholderChange_decorators;
|
|
106
|
+
let _handleMinChange_decorators;
|
|
107
|
+
let _handleMaxChange_decorators;
|
|
108
|
+
let _handleStepChange_decorators;
|
|
109
|
+
let _handleMaxLengthChange_decorators;
|
|
110
|
+
let _handleMinLengthChange_decorators;
|
|
111
|
+
let _handlePatternChange_decorators;
|
|
112
|
+
let _handleTypeChange_decorators;
|
|
113
|
+
let _handleLabelChange_decorators;
|
|
114
|
+
let _dispatchInputEvent_decorators;
|
|
115
|
+
let _dispatchChangeEvent_decorators;
|
|
116
|
+
let _dispatchFocusEvent_decorators;
|
|
117
|
+
let _dispatchBlurEvent_decorators;
|
|
118
|
+
let _dispatchClearEvent_decorators;
|
|
119
|
+
(class extends _classSuper {
|
|
120
|
+
static { _classThis = this; }
|
|
121
|
+
constructor() {
|
|
122
|
+
super(...arguments);
|
|
123
|
+
this.type = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _type_initializers, 'text'));
|
|
124
|
+
this.size = (__runInitializers(this, _type_extraInitializers), __runInitializers(this, _size_initializers, 'medium'));
|
|
125
|
+
this.variant = (__runInitializers(this, _size_extraInitializers), __runInitializers(this, _variant_initializers, 'outlined'));
|
|
126
|
+
this.value = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _value_initializers, ''));
|
|
127
|
+
this.placeholder = (__runInitializers(this, _value_extraInitializers), __runInitializers(this, _placeholder_initializers, ''));
|
|
128
|
+
this.label = (__runInitializers(this, _placeholder_extraInitializers), __runInitializers(this, _label_initializers, ''));
|
|
129
|
+
this.helperText = (__runInitializers(this, _label_extraInitializers), __runInitializers(this, _helperText_initializers, ''));
|
|
130
|
+
this.errorText = (__runInitializers(this, _helperText_extraInitializers), __runInitializers(this, _errorText_initializers, ''));
|
|
131
|
+
this.disabled = (__runInitializers(this, _errorText_extraInitializers), __runInitializers(this, _disabled_initializers, false));
|
|
132
|
+
this.readonly = (__runInitializers(this, _disabled_extraInitializers), __runInitializers(this, _readonly_initializers, false));
|
|
133
|
+
this.required = (__runInitializers(this, _readonly_extraInitializers), __runInitializers(this, _required_initializers, false));
|
|
134
|
+
this.invalid = (__runInitializers(this, _required_extraInitializers), __runInitializers(this, _invalid_initializers, false));
|
|
135
|
+
this.clearable = (__runInitializers(this, _invalid_extraInitializers), __runInitializers(this, _clearable_initializers, false));
|
|
136
|
+
this.password = (__runInitializers(this, _clearable_extraInitializers), __runInitializers(this, _password_initializers, false));
|
|
137
|
+
this.min = (__runInitializers(this, _password_extraInitializers), __runInitializers(this, _min_initializers, ''));
|
|
138
|
+
this.max = (__runInitializers(this, _min_extraInitializers), __runInitializers(this, _max_initializers, ''));
|
|
139
|
+
this.step = (__runInitializers(this, _max_extraInitializers), __runInitializers(this, _step_initializers, ''));
|
|
140
|
+
this.pattern = (__runInitializers(this, _step_extraInitializers), __runInitializers(this, _pattern_initializers, ''));
|
|
141
|
+
this.maxlength = (__runInitializers(this, _pattern_extraInitializers), __runInitializers(this, _maxlength_initializers, -1));
|
|
142
|
+
this.minlength = (__runInitializers(this, _maxlength_extraInitializers), __runInitializers(this, _minlength_initializers, -1));
|
|
143
|
+
this.autocomplete = (__runInitializers(this, _minlength_extraInitializers), __runInitializers(this, _autocomplete_initializers, ''));
|
|
144
|
+
this.name = (__runInitializers(this, _autocomplete_extraInitializers), __runInitializers(this, _name_initializers, ''));
|
|
145
|
+
this.prefixIcon = (__runInitializers(this, _name_extraInitializers), __runInitializers(this, _prefixIcon_initializers, ''));
|
|
146
|
+
this.suffixIcon = (__runInitializers(this, _prefixIcon_extraInitializers), __runInitializers(this, _suffixIcon_initializers, ''));
|
|
147
|
+
this.input = (__runInitializers(this, _suffixIcon_extraInitializers), __runInitializers(this, _input_initializers, void 0));
|
|
148
|
+
this.clearButton = (__runInitializers(this, _input_extraInitializers), __runInitializers(this, _clearButton_initializers, void 0));
|
|
149
|
+
this.passwordToggle = (__runInitializers(this, _clearButton_extraInitializers), __runInitializers(this, _passwordToggle_initializers, void 0));
|
|
150
|
+
this.showPassword = (__runInitializers(this, _passwordToggle_extraInitializers), false);
|
|
151
|
+
}
|
|
152
|
+
static {
|
|
153
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
154
|
+
_type_decorators = [property({ reflect: true })];
|
|
155
|
+
_size_decorators = [property({ reflect: true })];
|
|
156
|
+
_variant_decorators = [property({ reflect: true })];
|
|
157
|
+
_value_decorators = [property({ reflect: true })];
|
|
158
|
+
_placeholder_decorators = [property({ reflect: true })];
|
|
159
|
+
_label_decorators = [property({ reflect: true })];
|
|
160
|
+
_helperText_decorators = [property({ attribute: 'helper-text', reflect: true })];
|
|
161
|
+
_errorText_decorators = [property({ attribute: 'error-text', reflect: true })];
|
|
162
|
+
_disabled_decorators = [property({ type: Boolean, reflect: true })];
|
|
163
|
+
_readonly_decorators = [property({ type: Boolean, reflect: true })];
|
|
164
|
+
_required_decorators = [property({ type: Boolean, reflect: true })];
|
|
165
|
+
_invalid_decorators = [property({ type: Boolean, reflect: true })];
|
|
166
|
+
_clearable_decorators = [property({ type: Boolean, reflect: true })];
|
|
167
|
+
_password_decorators = [property({ type: Boolean, reflect: true })];
|
|
168
|
+
_min_decorators = [property({ reflect: true })];
|
|
169
|
+
_max_decorators = [property({ reflect: true })];
|
|
170
|
+
_step_decorators = [property({ reflect: true })];
|
|
171
|
+
_pattern_decorators = [property({ reflect: true })];
|
|
172
|
+
_maxlength_decorators = [property({ type: Number, reflect: true })];
|
|
173
|
+
_minlength_decorators = [property({ type: Number, reflect: true })];
|
|
174
|
+
_autocomplete_decorators = [property({ reflect: true })];
|
|
175
|
+
_name_decorators = [property({ reflect: true })];
|
|
176
|
+
_prefixIcon_decorators = [property({ attribute: 'prefix-icon', reflect: true })];
|
|
177
|
+
_suffixIcon_decorators = [property({ attribute: 'suffix-icon', reflect: true })];
|
|
178
|
+
_input_decorators = [query('.input')];
|
|
179
|
+
_clearButton_decorators = [query('.clear-button')];
|
|
180
|
+
_passwordToggle_decorators = [query('.password-toggle')];
|
|
181
|
+
_init_decorators = [ready()];
|
|
182
|
+
_handleInput_decorators = [on('input', '.input')];
|
|
183
|
+
_handleChange_decorators = [on('change', '.input')];
|
|
184
|
+
_handleFocus_decorators = [on('focus', '.input')];
|
|
185
|
+
_handleBlur_decorators = [on('blur', '.input')];
|
|
186
|
+
_handleClear_decorators = [on('click', '.clear-button')];
|
|
187
|
+
_handlePasswordToggle_decorators = [on('click', '.password-toggle')];
|
|
188
|
+
_handleValueChange_decorators = [watch('value')];
|
|
189
|
+
_handleInvalidChange_decorators = [watch('invalid')];
|
|
190
|
+
_handleDisabledChange_decorators = [watch('disabled')];
|
|
191
|
+
_handleReadonlyChange_decorators = [watch('readonly')];
|
|
192
|
+
_handlePlaceholderChange_decorators = [watch('placeholder')];
|
|
193
|
+
_handleMinChange_decorators = [watch('min')];
|
|
194
|
+
_handleMaxChange_decorators = [watch('max')];
|
|
195
|
+
_handleStepChange_decorators = [watch('step')];
|
|
196
|
+
_handleMaxLengthChange_decorators = [watch('maxlength')];
|
|
197
|
+
_handleMinLengthChange_decorators = [watch('minlength')];
|
|
198
|
+
_handlePatternChange_decorators = [watch('pattern')];
|
|
199
|
+
_handleTypeChange_decorators = [watch('type')];
|
|
200
|
+
_handleLabelChange_decorators = [watch('label')];
|
|
201
|
+
_dispatchInputEvent_decorators = [dispatch('@snice/input-input', { bubbles: true, composed: true })];
|
|
202
|
+
_dispatchChangeEvent_decorators = [dispatch('@snice/input-change', { bubbles: true, composed: true })];
|
|
203
|
+
_dispatchFocusEvent_decorators = [dispatch('@snice/input-focus', { bubbles: true, composed: true })];
|
|
204
|
+
_dispatchBlurEvent_decorators = [dispatch('@snice/input-blur', { bubbles: true, composed: true })];
|
|
205
|
+
_dispatchClearEvent_decorators = [dispatch('@snice/input-clear', { bubbles: true, composed: true })];
|
|
206
|
+
__esDecorate(this, null, _init_decorators, { kind: "method", name: "init", static: false, private: false, access: { has: obj => "init" in obj, get: obj => obj.init }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
207
|
+
__esDecorate(this, null, _handleInput_decorators, { kind: "method", name: "handleInput", static: false, private: false, access: { has: obj => "handleInput" in obj, get: obj => obj.handleInput }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
208
|
+
__esDecorate(this, null, _handleChange_decorators, { kind: "method", name: "handleChange", static: false, private: false, access: { has: obj => "handleChange" in obj, get: obj => obj.handleChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
209
|
+
__esDecorate(this, null, _handleFocus_decorators, { kind: "method", name: "handleFocus", static: false, private: false, access: { has: obj => "handleFocus" in obj, get: obj => obj.handleFocus }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
210
|
+
__esDecorate(this, null, _handleBlur_decorators, { kind: "method", name: "handleBlur", static: false, private: false, access: { has: obj => "handleBlur" in obj, get: obj => obj.handleBlur }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
211
|
+
__esDecorate(this, null, _handleClear_decorators, { kind: "method", name: "handleClear", static: false, private: false, access: { has: obj => "handleClear" in obj, get: obj => obj.handleClear }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
212
|
+
__esDecorate(this, null, _handlePasswordToggle_decorators, { kind: "method", name: "handlePasswordToggle", static: false, private: false, access: { has: obj => "handlePasswordToggle" in obj, get: obj => obj.handlePasswordToggle }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
213
|
+
__esDecorate(this, null, _handleValueChange_decorators, { kind: "method", name: "handleValueChange", static: false, private: false, access: { has: obj => "handleValueChange" in obj, get: obj => obj.handleValueChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
214
|
+
__esDecorate(this, null, _handleInvalidChange_decorators, { kind: "method", name: "handleInvalidChange", static: false, private: false, access: { has: obj => "handleInvalidChange" in obj, get: obj => obj.handleInvalidChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
215
|
+
__esDecorate(this, null, _handleDisabledChange_decorators, { kind: "method", name: "handleDisabledChange", static: false, private: false, access: { has: obj => "handleDisabledChange" in obj, get: obj => obj.handleDisabledChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
216
|
+
__esDecorate(this, null, _handleReadonlyChange_decorators, { kind: "method", name: "handleReadonlyChange", static: false, private: false, access: { has: obj => "handleReadonlyChange" in obj, get: obj => obj.handleReadonlyChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
217
|
+
__esDecorate(this, null, _handlePlaceholderChange_decorators, { kind: "method", name: "handlePlaceholderChange", static: false, private: false, access: { has: obj => "handlePlaceholderChange" in obj, get: obj => obj.handlePlaceholderChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
218
|
+
__esDecorate(this, null, _handleMinChange_decorators, { kind: "method", name: "handleMinChange", static: false, private: false, access: { has: obj => "handleMinChange" in obj, get: obj => obj.handleMinChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
219
|
+
__esDecorate(this, null, _handleMaxChange_decorators, { kind: "method", name: "handleMaxChange", static: false, private: false, access: { has: obj => "handleMaxChange" in obj, get: obj => obj.handleMaxChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
220
|
+
__esDecorate(this, null, _handleStepChange_decorators, { kind: "method", name: "handleStepChange", static: false, private: false, access: { has: obj => "handleStepChange" in obj, get: obj => obj.handleStepChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
221
|
+
__esDecorate(this, null, _handleMaxLengthChange_decorators, { kind: "method", name: "handleMaxLengthChange", static: false, private: false, access: { has: obj => "handleMaxLengthChange" in obj, get: obj => obj.handleMaxLengthChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
222
|
+
__esDecorate(this, null, _handleMinLengthChange_decorators, { kind: "method", name: "handleMinLengthChange", static: false, private: false, access: { has: obj => "handleMinLengthChange" in obj, get: obj => obj.handleMinLengthChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
223
|
+
__esDecorate(this, null, _handlePatternChange_decorators, { kind: "method", name: "handlePatternChange", static: false, private: false, access: { has: obj => "handlePatternChange" in obj, get: obj => obj.handlePatternChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
224
|
+
__esDecorate(this, null, _handleTypeChange_decorators, { kind: "method", name: "handleTypeChange", static: false, private: false, access: { has: obj => "handleTypeChange" in obj, get: obj => obj.handleTypeChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
225
|
+
__esDecorate(this, null, _handleLabelChange_decorators, { kind: "method", name: "handleLabelChange", static: false, private: false, access: { has: obj => "handleLabelChange" in obj, get: obj => obj.handleLabelChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
226
|
+
__esDecorate(this, null, _dispatchInputEvent_decorators, { kind: "method", name: "dispatchInputEvent", static: false, private: false, access: { has: obj => "dispatchInputEvent" in obj, get: obj => obj.dispatchInputEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
227
|
+
__esDecorate(this, null, _dispatchChangeEvent_decorators, { kind: "method", name: "dispatchChangeEvent", static: false, private: false, access: { has: obj => "dispatchChangeEvent" in obj, get: obj => obj.dispatchChangeEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
228
|
+
__esDecorate(this, null, _dispatchFocusEvent_decorators, { kind: "method", name: "dispatchFocusEvent", static: false, private: false, access: { has: obj => "dispatchFocusEvent" in obj, get: obj => obj.dispatchFocusEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
229
|
+
__esDecorate(this, null, _dispatchBlurEvent_decorators, { kind: "method", name: "dispatchBlurEvent", static: false, private: false, access: { has: obj => "dispatchBlurEvent" in obj, get: obj => obj.dispatchBlurEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
230
|
+
__esDecorate(this, null, _dispatchClearEvent_decorators, { kind: "method", name: "dispatchClearEvent", static: false, private: false, access: { has: obj => "dispatchClearEvent" in obj, get: obj => obj.dispatchClearEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
231
|
+
__esDecorate(null, null, _type_decorators, { kind: "field", name: "type", static: false, private: false, access: { has: obj => "type" in obj, get: obj => obj.type, set: (obj, value) => { obj.type = value; } }, metadata: _metadata }, _type_initializers, _type_extraInitializers);
|
|
232
|
+
__esDecorate(null, null, _size_decorators, { kind: "field", name: "size", static: false, private: false, access: { has: obj => "size" in obj, get: obj => obj.size, set: (obj, value) => { obj.size = value; } }, metadata: _metadata }, _size_initializers, _size_extraInitializers);
|
|
233
|
+
__esDecorate(null, null, _variant_decorators, { kind: "field", name: "variant", static: false, private: false, access: { has: obj => "variant" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);
|
|
234
|
+
__esDecorate(null, null, _value_decorators, { kind: "field", name: "value", static: false, private: false, access: { has: obj => "value" in obj, get: obj => obj.value, set: (obj, value) => { obj.value = value; } }, metadata: _metadata }, _value_initializers, _value_extraInitializers);
|
|
235
|
+
__esDecorate(null, null, _placeholder_decorators, { kind: "field", name: "placeholder", static: false, private: false, access: { has: obj => "placeholder" in obj, get: obj => obj.placeholder, set: (obj, value) => { obj.placeholder = value; } }, metadata: _metadata }, _placeholder_initializers, _placeholder_extraInitializers);
|
|
236
|
+
__esDecorate(null, null, _label_decorators, { kind: "field", name: "label", static: false, private: false, access: { has: obj => "label" in obj, get: obj => obj.label, set: (obj, value) => { obj.label = value; } }, metadata: _metadata }, _label_initializers, _label_extraInitializers);
|
|
237
|
+
__esDecorate(null, null, _helperText_decorators, { kind: "field", name: "helperText", static: false, private: false, access: { has: obj => "helperText" in obj, get: obj => obj.helperText, set: (obj, value) => { obj.helperText = value; } }, metadata: _metadata }, _helperText_initializers, _helperText_extraInitializers);
|
|
238
|
+
__esDecorate(null, null, _errorText_decorators, { kind: "field", name: "errorText", static: false, private: false, access: { has: obj => "errorText" in obj, get: obj => obj.errorText, set: (obj, value) => { obj.errorText = value; } }, metadata: _metadata }, _errorText_initializers, _errorText_extraInitializers);
|
|
239
|
+
__esDecorate(null, null, _disabled_decorators, { kind: "field", name: "disabled", static: false, private: false, access: { has: obj => "disabled" in obj, get: obj => obj.disabled, set: (obj, value) => { obj.disabled = value; } }, metadata: _metadata }, _disabled_initializers, _disabled_extraInitializers);
|
|
240
|
+
__esDecorate(null, null, _readonly_decorators, { kind: "field", name: "readonly", static: false, private: false, access: { has: obj => "readonly" in obj, get: obj => obj.readonly, set: (obj, value) => { obj.readonly = value; } }, metadata: _metadata }, _readonly_initializers, _readonly_extraInitializers);
|
|
241
|
+
__esDecorate(null, null, _required_decorators, { kind: "field", name: "required", static: false, private: false, access: { has: obj => "required" in obj, get: obj => obj.required, set: (obj, value) => { obj.required = value; } }, metadata: _metadata }, _required_initializers, _required_extraInitializers);
|
|
242
|
+
__esDecorate(null, null, _invalid_decorators, { kind: "field", name: "invalid", static: false, private: false, access: { has: obj => "invalid" in obj, get: obj => obj.invalid, set: (obj, value) => { obj.invalid = value; } }, metadata: _metadata }, _invalid_initializers, _invalid_extraInitializers);
|
|
243
|
+
__esDecorate(null, null, _clearable_decorators, { kind: "field", name: "clearable", static: false, private: false, access: { has: obj => "clearable" in obj, get: obj => obj.clearable, set: (obj, value) => { obj.clearable = value; } }, metadata: _metadata }, _clearable_initializers, _clearable_extraInitializers);
|
|
244
|
+
__esDecorate(null, null, _password_decorators, { kind: "field", name: "password", static: false, private: false, access: { has: obj => "password" in obj, get: obj => obj.password, set: (obj, value) => { obj.password = value; } }, metadata: _metadata }, _password_initializers, _password_extraInitializers);
|
|
245
|
+
__esDecorate(null, null, _min_decorators, { kind: "field", name: "min", static: false, private: false, access: { has: obj => "min" in obj, get: obj => obj.min, set: (obj, value) => { obj.min = value; } }, metadata: _metadata }, _min_initializers, _min_extraInitializers);
|
|
246
|
+
__esDecorate(null, null, _max_decorators, { kind: "field", name: "max", static: false, private: false, access: { has: obj => "max" in obj, get: obj => obj.max, set: (obj, value) => { obj.max = value; } }, metadata: _metadata }, _max_initializers, _max_extraInitializers);
|
|
247
|
+
__esDecorate(null, null, _step_decorators, { kind: "field", name: "step", static: false, private: false, access: { has: obj => "step" in obj, get: obj => obj.step, set: (obj, value) => { obj.step = value; } }, metadata: _metadata }, _step_initializers, _step_extraInitializers);
|
|
248
|
+
__esDecorate(null, null, _pattern_decorators, { kind: "field", name: "pattern", static: false, private: false, access: { has: obj => "pattern" in obj, get: obj => obj.pattern, set: (obj, value) => { obj.pattern = value; } }, metadata: _metadata }, _pattern_initializers, _pattern_extraInitializers);
|
|
249
|
+
__esDecorate(null, null, _maxlength_decorators, { kind: "field", name: "maxlength", static: false, private: false, access: { has: obj => "maxlength" in obj, get: obj => obj.maxlength, set: (obj, value) => { obj.maxlength = value; } }, metadata: _metadata }, _maxlength_initializers, _maxlength_extraInitializers);
|
|
250
|
+
__esDecorate(null, null, _minlength_decorators, { kind: "field", name: "minlength", static: false, private: false, access: { has: obj => "minlength" in obj, get: obj => obj.minlength, set: (obj, value) => { obj.minlength = value; } }, metadata: _metadata }, _minlength_initializers, _minlength_extraInitializers);
|
|
251
|
+
__esDecorate(null, null, _autocomplete_decorators, { kind: "field", name: "autocomplete", static: false, private: false, access: { has: obj => "autocomplete" in obj, get: obj => obj.autocomplete, set: (obj, value) => { obj.autocomplete = value; } }, metadata: _metadata }, _autocomplete_initializers, _autocomplete_extraInitializers);
|
|
252
|
+
__esDecorate(null, null, _name_decorators, { kind: "field", name: "name", static: false, private: false, access: { has: obj => "name" in obj, get: obj => obj.name, set: (obj, value) => { obj.name = value; } }, metadata: _metadata }, _name_initializers, _name_extraInitializers);
|
|
253
|
+
__esDecorate(null, null, _prefixIcon_decorators, { kind: "field", name: "prefixIcon", static: false, private: false, access: { has: obj => "prefixIcon" in obj, get: obj => obj.prefixIcon, set: (obj, value) => { obj.prefixIcon = value; } }, metadata: _metadata }, _prefixIcon_initializers, _prefixIcon_extraInitializers);
|
|
254
|
+
__esDecorate(null, null, _suffixIcon_decorators, { kind: "field", name: "suffixIcon", static: false, private: false, access: { has: obj => "suffixIcon" in obj, get: obj => obj.suffixIcon, set: (obj, value) => { obj.suffixIcon = value; } }, metadata: _metadata }, _suffixIcon_initializers, _suffixIcon_extraInitializers);
|
|
255
|
+
__esDecorate(null, null, _input_decorators, { kind: "field", name: "input", static: false, private: false, access: { has: obj => "input" in obj, get: obj => obj.input, set: (obj, value) => { obj.input = value; } }, metadata: _metadata }, _input_initializers, _input_extraInitializers);
|
|
256
|
+
__esDecorate(null, null, _clearButton_decorators, { kind: "field", name: "clearButton", static: false, private: false, access: { has: obj => "clearButton" in obj, get: obj => obj.clearButton, set: (obj, value) => { obj.clearButton = value; } }, metadata: _metadata }, _clearButton_initializers, _clearButton_extraInitializers);
|
|
257
|
+
__esDecorate(null, null, _passwordToggle_decorators, { kind: "field", name: "passwordToggle", static: false, private: false, access: { has: obj => "passwordToggle" in obj, get: obj => obj.passwordToggle, set: (obj, value) => { obj.passwordToggle = value; } }, metadata: _metadata }, _passwordToggle_initializers, _passwordToggle_extraInitializers);
|
|
258
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
259
|
+
_classThis = _classDescriptor.value;
|
|
260
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
261
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
262
|
+
}
|
|
263
|
+
html() {
|
|
264
|
+
return /*html*/ `
|
|
265
|
+
<div class="input-wrapper">
|
|
266
|
+
${this.label ? /*html*/ `
|
|
267
|
+
<label class="label ${this.required ? 'label--required' : ''}">
|
|
268
|
+
${this.label}
|
|
269
|
+
</label>
|
|
270
|
+
` : ''}
|
|
271
|
+
|
|
272
|
+
<div class="input-container">
|
|
273
|
+
${this.prefixIcon ? /*html*/ `
|
|
274
|
+
<span class="icon icon--prefix">${this.prefixIcon}</span>
|
|
275
|
+
` : ''}
|
|
276
|
+
|
|
277
|
+
<input
|
|
278
|
+
class="input
|
|
279
|
+
input--${this.size}
|
|
280
|
+
input--${this.variant}
|
|
281
|
+
${this.invalid ? 'input--invalid' : ''}
|
|
282
|
+
${this.prefixIcon ? 'input--with-prefix-icon' : ''}
|
|
283
|
+
${this.suffixIcon || (this.type === 'password' && this.password) ? 'input--with-suffix-icon' : ''}
|
|
284
|
+
${this.clearable ? 'input--clearable' : ''}"
|
|
285
|
+
type="${this.type}"
|
|
286
|
+
value="${this.value}"
|
|
287
|
+
placeholder="${this.placeholder}"
|
|
288
|
+
${this.disabled ? 'disabled' : ''}
|
|
289
|
+
${this.readonly ? 'readonly' : ''}
|
|
290
|
+
${this.required ? 'required' : ''}
|
|
291
|
+
${this.min ? `min="${this.min}"` : ''}
|
|
292
|
+
${this.max ? `max="${this.max}"` : ''}
|
|
293
|
+
${this.step ? `step="${this.step}"` : ''}
|
|
294
|
+
${this.pattern ? `pattern="${this.pattern}"` : ''}
|
|
295
|
+
${this.maxlength > 0 ? `maxlength="${this.maxlength}"` : ''}
|
|
296
|
+
${this.minlength > 0 ? `minlength="${this.minlength}"` : ''}
|
|
297
|
+
${this.autocomplete ? `autocomplete="${this.autocomplete}"` : ''}
|
|
298
|
+
${this.name ? `name="${this.name}"` : ''}
|
|
299
|
+
part="input"
|
|
300
|
+
/>
|
|
301
|
+
|
|
302
|
+
<button
|
|
303
|
+
class="clear-button ${this.suffixIcon || (this.type === 'password' && this.password) ? 'clear-button--with-suffix' : ''}"
|
|
304
|
+
type="button"
|
|
305
|
+
aria-label="Clear"
|
|
306
|
+
tabindex="-1"
|
|
307
|
+
part="clear"
|
|
308
|
+
style="display: none;"
|
|
309
|
+
>
|
|
310
|
+
<svg viewBox="0 0 24 24" width="16" height="16">
|
|
311
|
+
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" fill="currentColor"/>
|
|
312
|
+
</svg>
|
|
313
|
+
</button>
|
|
314
|
+
|
|
315
|
+
${this.type === 'password' && this.password ? /*html*/ `
|
|
316
|
+
<button
|
|
317
|
+
class="password-toggle"
|
|
318
|
+
type="button"
|
|
319
|
+
aria-label="Show password"
|
|
320
|
+
tabindex="-1"
|
|
321
|
+
part="password-toggle"
|
|
322
|
+
>
|
|
323
|
+
<svg viewBox="0 0 24 24" width="18" height="18" class="password-icon password-icon--hidden">
|
|
324
|
+
<path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z" fill="currentColor"/>
|
|
325
|
+
</svg>
|
|
326
|
+
<svg viewBox="0 0 24 24" width="18" height="18" class="password-icon password-icon--visible" style="display: none;">
|
|
327
|
+
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z" fill="currentColor"/>
|
|
328
|
+
</svg>
|
|
329
|
+
</button>
|
|
330
|
+
` : this.suffixIcon ? /*html*/ `
|
|
331
|
+
<span class="icon icon--suffix">${this.suffixIcon}</span>
|
|
332
|
+
` : ''}
|
|
333
|
+
</div>
|
|
334
|
+
|
|
335
|
+
${this.errorText ? /*html*/ `
|
|
336
|
+
<span class="error-text" part="error-text">${this.errorText}</span>
|
|
337
|
+
` : this.helperText ? /*html*/ `
|
|
338
|
+
<span class="helper-text" part="helper-text">${this.helperText}</span>
|
|
339
|
+
` : /*html*/ `
|
|
340
|
+
<span class="helper-text" part="helper-text"> </span>
|
|
341
|
+
`}
|
|
342
|
+
</div>
|
|
343
|
+
`;
|
|
344
|
+
}
|
|
345
|
+
css() {
|
|
346
|
+
return css;
|
|
347
|
+
}
|
|
348
|
+
init() {
|
|
349
|
+
// Set initial clear button visibility
|
|
350
|
+
if (this.clearButton && this.clearable) {
|
|
351
|
+
const shouldShow = this.value && !this.disabled && !this.readonly;
|
|
352
|
+
this.clearButton.style.display = shouldShow ? '' : 'none';
|
|
353
|
+
this.clearButton.classList.toggle('clear-button--visible', !!shouldShow);
|
|
354
|
+
}
|
|
355
|
+
// Set initial invalid state
|
|
356
|
+
if (this.input && this.invalid) {
|
|
357
|
+
this.input.setAttribute('aria-invalid', 'true');
|
|
358
|
+
this.input.classList.add('input--invalid');
|
|
359
|
+
}
|
|
360
|
+
// Set initial input properties that may not be properly set via attributes
|
|
361
|
+
if (this.input) {
|
|
362
|
+
// Number input constraints
|
|
363
|
+
if (this.type === 'number') {
|
|
364
|
+
if (this.min)
|
|
365
|
+
this.input.min = this.min;
|
|
366
|
+
if (this.max)
|
|
367
|
+
this.input.max = this.max;
|
|
368
|
+
if (this.step)
|
|
369
|
+
this.input.step = this.step;
|
|
370
|
+
}
|
|
371
|
+
// Text constraints
|
|
372
|
+
if (this.maxlength > 0)
|
|
373
|
+
this.input.maxLength = this.maxlength;
|
|
374
|
+
if (this.minlength > 0)
|
|
375
|
+
this.input.minLength = this.minlength;
|
|
376
|
+
// Other properties
|
|
377
|
+
if (this.pattern)
|
|
378
|
+
this.input.pattern = this.pattern;
|
|
379
|
+
if (this.placeholder)
|
|
380
|
+
this.input.placeholder = this.placeholder;
|
|
381
|
+
if (this.value)
|
|
382
|
+
this.input.value = this.value;
|
|
383
|
+
this.input.disabled = this.disabled;
|
|
384
|
+
this.input.readOnly = this.readonly;
|
|
385
|
+
this.input.required = this.required;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
handleInput(e) {
|
|
389
|
+
const target = e.target;
|
|
390
|
+
this.value = target.value;
|
|
391
|
+
this.dispatchInputEvent();
|
|
392
|
+
}
|
|
393
|
+
handleChange(e) {
|
|
394
|
+
const target = e.target;
|
|
395
|
+
this.value = target.value;
|
|
396
|
+
this.dispatchChangeEvent();
|
|
397
|
+
}
|
|
398
|
+
handleFocus() {
|
|
399
|
+
this.dispatchFocusEvent();
|
|
400
|
+
}
|
|
401
|
+
handleBlur() {
|
|
402
|
+
this.dispatchBlurEvent();
|
|
403
|
+
}
|
|
404
|
+
handleClear() {
|
|
405
|
+
this.clear();
|
|
406
|
+
}
|
|
407
|
+
handlePasswordToggle() {
|
|
408
|
+
this.showPassword = !this.showPassword;
|
|
409
|
+
if (this.input) {
|
|
410
|
+
this.input.type = this.showPassword ? 'text' : 'password';
|
|
411
|
+
}
|
|
412
|
+
if (this.passwordToggle) {
|
|
413
|
+
const hiddenIcon = this.passwordToggle.querySelector('.password-icon--hidden');
|
|
414
|
+
const visibleIcon = this.passwordToggle.querySelector('.password-icon--visible');
|
|
415
|
+
if (hiddenIcon && visibleIcon) {
|
|
416
|
+
hiddenIcon.style.display = this.showPassword ? 'none' : '';
|
|
417
|
+
visibleIcon.style.display = this.showPassword ? '' : 'none';
|
|
418
|
+
this.passwordToggle.setAttribute('aria-label', this.showPassword ? 'Hide password' : 'Show password');
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
handleValueChange() {
|
|
423
|
+
if (this.input) {
|
|
424
|
+
this.input.value = this.value;
|
|
425
|
+
}
|
|
426
|
+
// Show/hide clear button based on value
|
|
427
|
+
if (this.clearButton && this.clearable) {
|
|
428
|
+
const shouldShow = this.value && !this.disabled && !this.readonly;
|
|
429
|
+
this.clearButton.style.display = shouldShow ? '' : 'none';
|
|
430
|
+
this.clearButton.classList.toggle('clear-button--visible', !!shouldShow);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
handleInvalidChange() {
|
|
434
|
+
if (this.input) {
|
|
435
|
+
this.input.setAttribute('aria-invalid', String(this.invalid));
|
|
436
|
+
if (this.invalid) {
|
|
437
|
+
this.input.classList.add('input--invalid');
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
this.input.classList.remove('input--invalid');
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
handleDisabledChange() {
|
|
445
|
+
if (this.input) {
|
|
446
|
+
this.input.disabled = this.disabled;
|
|
447
|
+
}
|
|
448
|
+
// Update clear button visibility
|
|
449
|
+
if (this.clearButton && this.clearable) {
|
|
450
|
+
const shouldShow = this.value && !this.disabled && !this.readonly;
|
|
451
|
+
this.clearButton.style.display = shouldShow ? '' : 'none';
|
|
452
|
+
this.clearButton.classList.toggle('clear-button--visible', !!shouldShow);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
handleReadonlyChange() {
|
|
456
|
+
if (this.input) {
|
|
457
|
+
this.input.readOnly = this.readonly;
|
|
458
|
+
}
|
|
459
|
+
// Update clear button visibility
|
|
460
|
+
if (this.clearButton && this.clearable) {
|
|
461
|
+
const shouldShow = this.value && !this.disabled && !this.readonly;
|
|
462
|
+
this.clearButton.style.display = shouldShow ? '' : 'none';
|
|
463
|
+
this.clearButton.classList.toggle('clear-button--visible', !!shouldShow);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
handlePlaceholderChange() {
|
|
467
|
+
if (this.input) {
|
|
468
|
+
this.input.placeholder = this.placeholder;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
handleMinChange() {
|
|
472
|
+
if (this.input && this.type === 'number') {
|
|
473
|
+
this.input.min = this.min;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
handleMaxChange() {
|
|
477
|
+
if (this.input && this.type === 'number') {
|
|
478
|
+
this.input.max = this.max;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
handleStepChange() {
|
|
482
|
+
if (this.input && this.type === 'number') {
|
|
483
|
+
this.input.step = this.step;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
handleMaxLengthChange() {
|
|
487
|
+
if (this.input && this.maxlength > 0) {
|
|
488
|
+
this.input.maxLength = this.maxlength;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
handleMinLengthChange() {
|
|
492
|
+
if (this.input && this.minlength > 0) {
|
|
493
|
+
this.input.minLength = this.minlength;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
handlePatternChange() {
|
|
497
|
+
if (this.input) {
|
|
498
|
+
this.input.pattern = this.pattern;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
handleTypeChange() {
|
|
502
|
+
if (this.input && this.type !== 'password') {
|
|
503
|
+
// Don't change type for password fields (handled by toggle)
|
|
504
|
+
this.input.type = this.type;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
handleLabelChange() {
|
|
508
|
+
const labelEl = this.shadowRoot?.querySelector('.label');
|
|
509
|
+
if (labelEl) {
|
|
510
|
+
labelEl.textContent = this.label;
|
|
511
|
+
// Show/hide the label wrapper
|
|
512
|
+
const wrapper = labelEl.parentElement;
|
|
513
|
+
if (wrapper) {
|
|
514
|
+
wrapper.style.display = this.label ? '' : 'none';
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
dispatchInputEvent() {
|
|
519
|
+
return { value: this.value, input: this };
|
|
520
|
+
}
|
|
521
|
+
dispatchChangeEvent() {
|
|
522
|
+
return { value: this.value, input: this };
|
|
523
|
+
}
|
|
524
|
+
dispatchFocusEvent() {
|
|
525
|
+
return { input: this };
|
|
526
|
+
}
|
|
527
|
+
dispatchBlurEvent() {
|
|
528
|
+
return { input: this };
|
|
529
|
+
}
|
|
530
|
+
dispatchClearEvent() {
|
|
531
|
+
return { input: this };
|
|
532
|
+
}
|
|
533
|
+
// Public API
|
|
534
|
+
focus() {
|
|
535
|
+
this.input?.focus();
|
|
536
|
+
}
|
|
537
|
+
blur() {
|
|
538
|
+
this.input?.blur();
|
|
539
|
+
}
|
|
540
|
+
select() {
|
|
541
|
+
this.input?.select();
|
|
542
|
+
}
|
|
543
|
+
clear() {
|
|
544
|
+
this.value = '';
|
|
545
|
+
if (this.input) {
|
|
546
|
+
this.input.value = '';
|
|
547
|
+
}
|
|
548
|
+
this.dispatchClearEvent();
|
|
549
|
+
this.dispatchInputEvent();
|
|
550
|
+
this.dispatchChangeEvent();
|
|
551
|
+
this.focus();
|
|
552
|
+
}
|
|
553
|
+
checkValidity() {
|
|
554
|
+
return this.input?.checkValidity() ?? true;
|
|
555
|
+
}
|
|
556
|
+
reportValidity() {
|
|
557
|
+
return this.input?.reportValidity() ?? true;
|
|
558
|
+
}
|
|
559
|
+
setCustomValidity(message) {
|
|
560
|
+
this.input?.setCustomValidity(message);
|
|
561
|
+
}
|
|
562
|
+
});
|
|
563
|
+
return _classThis;
|
|
564
|
+
})();
|
|
565
|
+
|
|
566
|
+
export { SniceInput };
|
|
567
|
+
//# sourceMappingURL=snice-input.js.map
|