@editora/ui-core 0.1.9 → 0.1.10
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/README.md +35 -0
- package/dist/ElementBase-1b301e7f.js +1 -0
- package/dist/ElementBase-909688f3.mjs +79 -0
- package/dist/accordion.cjs.js +360 -0
- package/dist/accordion.esm.js +647 -0
- package/dist/alert-dialog.cjs.js +567 -0
- package/dist/alert-dialog.esm.js +1043 -0
- package/dist/alert.cjs.js +351 -0
- package/dist/alert.esm.js +450 -0
- package/dist/anchor.cjs.js +30 -0
- package/dist/anchor.esm.js +62 -0
- package/dist/animated-beam.cjs.js +720 -0
- package/dist/animated-beam.esm.js +1540 -0
- package/dist/animated-list.cjs.js +672 -0
- package/dist/animated-list.esm.js +1137 -0
- package/dist/animated-text.cjs.js +683 -0
- package/dist/animated-text.esm.js +1020 -0
- package/dist/app-header.cjs.js +345 -0
- package/dist/app-header.esm.js +398 -0
- package/dist/aspect-ratio.cjs.js +294 -0
- package/dist/aspect-ratio.esm.js +416 -0
- package/dist/avatar.cjs.js +365 -0
- package/dist/avatar.esm.js +513 -0
- package/dist/badge.cjs.js +432 -0
- package/dist/badge.esm.js +554 -0
- package/dist/block-controls.cjs.js +347 -0
- package/dist/block-controls.esm.js +556 -0
- package/dist/box.cjs.js +226 -0
- package/dist/box.esm.js +556 -0
- package/dist/breadcrumb.cjs.js +288 -0
- package/dist/breadcrumb.esm.js +523 -0
- package/dist/button.cjs.js +521 -0
- package/dist/button.esm.js +671 -0
- package/dist/calendar-2c11b824.mjs +1685 -0
- package/dist/calendar-a8735e40.js +741 -0
- package/dist/calendar.cjs.js +1 -0
- package/dist/calendar.esm.js +11 -0
- package/dist/card.cjs.js +306 -0
- package/dist/card.esm.js +378 -0
- package/dist/chart.cjs.js +783 -0
- package/dist/chart.esm.js +1369 -0
- package/dist/checkbox.cjs.js +338 -0
- package/dist/checkbox.esm.js +455 -0
- package/dist/collapsible.cjs.js +381 -0
- package/dist/collapsible.esm.js +548 -0
- package/dist/collection-a1aac0c6.mjs +56 -0
- package/dist/collection-a2969ad2.js +1 -0
- package/dist/collection.cjs.js +1 -0
- package/dist/collection.esm.js +136 -0
- package/dist/color-picker.cjs.js +803 -0
- package/dist/color-picker.esm.js +1809 -0
- package/dist/combobox.cjs.js +525 -0
- package/dist/combobox.esm.js +1023 -0
- package/dist/command-palette.cjs.js +67 -0
- package/dist/command-palette.esm.js +181 -0
- package/dist/command.cjs.js +130 -0
- package/dist/command.esm.js +307 -0
- package/dist/container.cjs.js +115 -0
- package/dist/container.esm.js +156 -0
- package/dist/context-menu.cjs.js +357 -0
- package/dist/context-menu.esm.js +1204 -0
- package/dist/control-group.cjs.js +80 -0
- package/dist/control-group.esm.js +110 -0
- package/dist/data-table.cjs.js +682 -0
- package/dist/data-table.esm.js +1660 -0
- package/dist/date-field.cjs.js +142 -0
- package/dist/date-field.esm.js +384 -0
- package/dist/date-picker.cjs.js +570 -0
- package/dist/date-picker.esm.js +1067 -0
- package/dist/date-range-picker.cjs.js +455 -0
- package/dist/date-range-picker.esm.js +973 -0
- package/dist/date-range-time-picker.cjs.js +573 -0
- package/dist/date-range-time-picker.esm.js +1137 -0
- package/dist/date-time-picker.cjs.js +495 -0
- package/dist/date-time-picker.esm.js +1062 -0
- package/dist/date-time-utils-5cf58cd0.js +1 -0
- package/dist/date-time-utils-bdceb7af.mjs +273 -0
- package/dist/description.cjs.js +85 -0
- package/dist/description.esm.js +136 -0
- package/dist/dialog.cjs.js +406 -0
- package/dist/dialog.esm.js +822 -0
- package/dist/direction-provider.cjs.js +30 -0
- package/dist/direction-provider.esm.js +74 -0
- package/dist/dismissable-layer-193e3bed.js +1 -0
- package/dist/dismissable-layer-9c7e6b58.mjs +112 -0
- package/dist/dismissable-layer.cjs.js +6 -0
- package/dist/dismissable-layer.esm.js +115 -0
- package/dist/dock.cjs.js +347 -0
- package/dist/dock.esm.js +826 -0
- package/dist/drawer.cjs.js +538 -0
- package/dist/drawer.esm.js +872 -0
- package/dist/dropdown.cjs.js +511 -0
- package/dist/dropdown.esm.js +1084 -0
- package/dist/dropzone.cjs.js +1 -0
- package/dist/dropzone.esm.js +11 -0
- package/dist/empty-state.cjs.js +169 -0
- package/dist/empty-state.esm.js +199 -0
- package/dist/field-error.cjs.js +74 -0
- package/dist/field-error.esm.js +125 -0
- package/dist/field.cjs.js +398 -0
- package/dist/field.esm.js +542 -0
- package/dist/fieldset.cjs.js +214 -0
- package/dist/fieldset.esm.js +298 -0
- package/dist/file-upload.cjs.js +353 -0
- package/dist/file-upload.esm.js +740 -0
- package/dist/flex.cjs.js +54 -0
- package/dist/flex.esm.js +168 -0
- package/dist/floating-toolbar.cjs.js +223 -0
- package/dist/floating-toolbar.esm.js +513 -0
- package/dist/focus-scope-103833ee.mjs +147 -0
- package/dist/focus-scope-2b12b4e7.js +1 -0
- package/dist/focus-scope.cjs.js +6 -0
- package/dist/focus-scope.esm.js +97 -0
- package/dist/form.cjs.js +377 -0
- package/dist/form.esm.js +862 -0
- package/dist/gantt.cjs.js +157 -0
- package/dist/gantt.esm.js +214 -0
- package/dist/grid.cjs.js +67 -0
- package/dist/grid.esm.js +211 -0
- package/dist/hover-card.cjs.js +284 -0
- package/dist/hover-card.esm.js +470 -0
- package/dist/icon-9ed13093.mjs +364 -0
- package/dist/icon-cloud.cjs.js +495 -0
- package/dist/icon-cloud.esm.js +828 -0
- package/dist/icon-eaa486b3.js +207 -0
- package/dist/icon.cjs.js +1 -0
- package/dist/icon.esm.js +6 -0
- package/dist/index.cjs.js +1 -36010
- package/dist/index.esm.js +440 -66615
- package/dist/inline-edit.cjs.js +118 -0
- package/dist/inline-edit.esm.js +206 -0
- package/dist/input.cjs.js +535 -0
- package/dist/input.esm.js +790 -0
- package/dist/label.cjs.js +195 -0
- package/dist/label.esm.js +301 -0
- package/dist/layout.cjs.js +266 -0
- package/dist/layout.esm.js +408 -0
- package/dist/listbox-308789a0.mjs +210 -0
- package/dist/listbox-ef2f708e.js +46 -0
- package/dist/listbox.cjs.js +1 -0
- package/dist/listbox.esm.js +6 -0
- package/dist/marquee.cjs.js +513 -0
- package/dist/marquee.esm.js +767 -0
- package/dist/masonry-grid.cjs.js +65 -0
- package/dist/masonry-grid.esm.js +180 -0
- package/dist/menu-item-styles-27fdbac4.mjs +181 -0
- package/dist/menu-item-styles-83ad1e22.js +152 -0
- package/dist/menu.cjs.js +275 -0
- package/dist/menu.esm.js +743 -0
- package/dist/menubar.cjs.js +455 -0
- package/dist/menubar.esm.js +1195 -0
- package/dist/meter.cjs.js +241 -0
- package/dist/meter.esm.js +334 -0
- package/dist/multi-select.cjs.js +549 -0
- package/dist/multi-select.esm.js +914 -0
- package/dist/navigation-menu.cjs.js +382 -0
- package/dist/navigation-menu.esm.js +614 -0
- package/dist/number-field.cjs.js +351 -0
- package/dist/number-field.esm.js +771 -0
- package/dist/number-ticker.cjs.js +209 -0
- package/dist/number-ticker.esm.js +749 -0
- package/dist/odometer.cjs.js +313 -0
- package/dist/odometer.esm.js +565 -0
- package/dist/orbiter.cjs.js +495 -0
- package/dist/orbiter.esm.js +831 -0
- package/dist/overlayManager-86454af7.mjs +58 -0
- package/dist/overlayManager-ece06517.js +1 -0
- package/dist/pagination.cjs.js +201 -0
- package/dist/pagination.esm.js +297 -0
- package/dist/panel-group-40254cdd.js +36 -0
- package/dist/panel-group-a376cc5e.mjs +326 -0
- package/dist/panel-group.cjs.js +1 -0
- package/dist/panel-group.esm.js +7 -0
- package/dist/panel.cjs.js +22 -0
- package/dist/panel.esm.js +46 -0
- package/dist/password-field.cjs.js +626 -0
- package/dist/password-field.esm.js +925 -0
- package/dist/pin-input.cjs.js +185 -0
- package/dist/pin-input.esm.js +412 -0
- package/dist/placement-grid.cjs.js +99 -0
- package/dist/placement-grid.esm.js +486 -0
- package/dist/plugin-panel.cjs.js +131 -0
- package/dist/plugin-panel.esm.js +173 -0
- package/dist/popover.cjs.js +286 -0
- package/dist/popover.esm.js +483 -0
- package/dist/portal-1cf392ca.mjs +114 -0
- package/dist/portal-d8d7fbca.js +1 -0
- package/dist/portal.cjs.js +39 -0
- package/dist/portal.esm.js +187 -0
- package/dist/positioner-accc6e5f.js +1 -0
- package/dist/positioner-fbd61bf1.mjs +132 -0
- package/dist/positioner.cjs.js +6 -0
- package/dist/positioner.esm.js +137 -0
- package/dist/presence.cjs.js +164 -0
- package/dist/presence.esm.js +301 -0
- package/dist/progress.cjs.js +329 -0
- package/dist/progress.esm.js +453 -0
- package/dist/quick-actions.cjs.js +202 -0
- package/dist/quick-actions.esm.js +357 -0
- package/dist/radio-group.cjs.js +257 -0
- package/dist/radio-group.esm.js +477 -0
- package/dist/rating.cjs.js +355 -0
- package/dist/rating.esm.js +637 -0
- package/dist/roving-focus-group-4350c9a7.mjs +50 -0
- package/dist/roving-focus-group-5c059bf9.js +1 -0
- package/dist/roving-focus-group.cjs.js +1 -0
- package/dist/roving-focus-group.esm.js +72 -0
- package/dist/{runtime-3cc1c386.mjs → runtime-4ac0107b.mjs} +348 -459
- package/dist/runtime-5f282bc8.js +1 -0
- package/dist/runtime.cjs.js +1 -1
- package/dist/runtime.esm.js +24 -23
- package/dist/scroll-area.cjs.js +294 -0
- package/dist/scroll-area.esm.js +478 -0
- package/dist/scroll-lock-48793569.js +1 -0
- package/dist/scroll-lock-9de6d328.mjs +53 -0
- package/dist/section.cjs.js +167 -0
- package/dist/section.esm.js +202 -0
- package/dist/select.cjs.js +799 -0
- package/dist/select.esm.js +1266 -0
- package/dist/selection-popup.cjs.js +203 -0
- package/dist/selection-popup.esm.js +392 -0
- package/dist/separator.cjs.js +221 -0
- package/dist/separator.esm.js +241 -0
- package/dist/sidebar.cjs.js +769 -0
- package/dist/sidebar.esm.js +1219 -0
- package/dist/skeleton.cjs.js +205 -0
- package/dist/skeleton.esm.js +249 -0
- package/dist/slider.cjs.js +493 -0
- package/dist/slider.esm.js +694 -0
- package/dist/slot.cjs.js +159 -0
- package/dist/slot.esm.js +227 -0
- package/dist/sortable.cjs.js +855 -1
- package/dist/sortable.esm.js +2176 -2
- package/dist/spinning-text.cjs.js +395 -0
- package/dist/spinning-text.esm.js +635 -0
- package/dist/split-button.cjs.js +410 -0
- package/dist/split-button.esm.js +619 -0
- package/dist/splitter.cjs.js +70 -0
- package/dist/splitter.esm.js +105 -0
- package/dist/standalone/accordion.d.ts +2 -0
- package/dist/standalone/accordion.d.ts.map +1 -0
- package/dist/standalone/alert-dialog.d.ts +2 -0
- package/dist/standalone/alert-dialog.d.ts.map +1 -0
- package/dist/standalone/alert.d.ts +2 -0
- package/dist/standalone/alert.d.ts.map +1 -0
- package/dist/standalone/anchor.d.ts +2 -0
- package/dist/standalone/anchor.d.ts.map +1 -0
- package/dist/standalone/animated-beam.d.ts +2 -0
- package/dist/standalone/animated-beam.d.ts.map +1 -0
- package/dist/standalone/animated-list.d.ts +2 -0
- package/dist/standalone/animated-list.d.ts.map +1 -0
- package/dist/standalone/animated-text.d.ts +2 -0
- package/dist/standalone/animated-text.d.ts.map +1 -0
- package/dist/standalone/app-header.d.ts +2 -0
- package/dist/standalone/app-header.d.ts.map +1 -0
- package/dist/standalone/aspect-ratio.d.ts +2 -0
- package/dist/standalone/aspect-ratio.d.ts.map +1 -0
- package/dist/standalone/avatar.d.ts +2 -0
- package/dist/standalone/avatar.d.ts.map +1 -0
- package/dist/standalone/badge.d.ts +2 -0
- package/dist/standalone/badge.d.ts.map +1 -0
- package/dist/standalone/block-controls.d.ts +2 -0
- package/dist/standalone/block-controls.d.ts.map +1 -0
- package/dist/standalone/box.d.ts +2 -0
- package/dist/standalone/box.d.ts.map +1 -0
- package/dist/standalone/breadcrumb.d.ts +2 -0
- package/dist/standalone/breadcrumb.d.ts.map +1 -0
- package/dist/standalone/button.d.ts +2 -0
- package/dist/standalone/button.d.ts.map +1 -0
- package/dist/standalone/calendar.d.ts +2 -0
- package/dist/standalone/calendar.d.ts.map +1 -0
- package/dist/standalone/card.d.ts +2 -0
- package/dist/standalone/card.d.ts.map +1 -0
- package/dist/standalone/chart.d.ts +2 -0
- package/dist/standalone/chart.d.ts.map +1 -0
- package/dist/standalone/checkbox.d.ts +2 -0
- package/dist/standalone/checkbox.d.ts.map +1 -0
- package/dist/standalone/collapsible.d.ts +2 -0
- package/dist/standalone/collapsible.d.ts.map +1 -0
- package/dist/standalone/collection.d.ts +2 -0
- package/dist/standalone/collection.d.ts.map +1 -0
- package/dist/standalone/color-picker.d.ts +2 -0
- package/dist/standalone/color-picker.d.ts.map +1 -0
- package/dist/standalone/combobox.d.ts +2 -0
- package/dist/standalone/combobox.d.ts.map +1 -0
- package/dist/standalone/command-palette.d.ts +2 -0
- package/dist/standalone/command-palette.d.ts.map +1 -0
- package/dist/standalone/command.d.ts +2 -0
- package/dist/standalone/command.d.ts.map +1 -0
- package/dist/standalone/container.d.ts +2 -0
- package/dist/standalone/container.d.ts.map +1 -0
- package/dist/standalone/context-menu.d.ts +2 -0
- package/dist/standalone/context-menu.d.ts.map +1 -0
- package/dist/standalone/control-group.d.ts +2 -0
- package/dist/standalone/control-group.d.ts.map +1 -0
- package/dist/standalone/data-table.d.ts +2 -0
- package/dist/standalone/data-table.d.ts.map +1 -0
- package/dist/standalone/date-field.d.ts +2 -0
- package/dist/standalone/date-field.d.ts.map +1 -0
- package/dist/standalone/date-picker.d.ts +2 -0
- package/dist/standalone/date-picker.d.ts.map +1 -0
- package/dist/standalone/date-range-picker.d.ts +2 -0
- package/dist/standalone/date-range-picker.d.ts.map +1 -0
- package/dist/standalone/date-range-time-picker.d.ts +2 -0
- package/dist/standalone/date-range-time-picker.d.ts.map +1 -0
- package/dist/standalone/date-time-picker.d.ts +2 -0
- package/dist/standalone/date-time-picker.d.ts.map +1 -0
- package/dist/standalone/description.d.ts +2 -0
- package/dist/standalone/description.d.ts.map +1 -0
- package/dist/standalone/dialog.d.ts +2 -0
- package/dist/standalone/dialog.d.ts.map +1 -0
- package/dist/standalone/direction-provider.d.ts +2 -0
- package/dist/standalone/direction-provider.d.ts.map +1 -0
- package/dist/standalone/dismissable-layer.d.ts +2 -0
- package/dist/standalone/dismissable-layer.d.ts.map +1 -0
- package/dist/standalone/dock.d.ts +2 -0
- package/dist/standalone/dock.d.ts.map +1 -0
- package/dist/standalone/drawer.d.ts +2 -0
- package/dist/standalone/drawer.d.ts.map +1 -0
- package/dist/standalone/dropdown.d.ts +2 -0
- package/dist/standalone/dropdown.d.ts.map +1 -0
- package/dist/standalone/dropzone.d.ts +2 -0
- package/dist/standalone/dropzone.d.ts.map +1 -0
- package/dist/standalone/empty-state.d.ts +2 -0
- package/dist/standalone/empty-state.d.ts.map +1 -0
- package/dist/standalone/field-error.d.ts +2 -0
- package/dist/standalone/field-error.d.ts.map +1 -0
- package/dist/standalone/field.d.ts +2 -0
- package/dist/standalone/field.d.ts.map +1 -0
- package/dist/standalone/fieldset.d.ts +2 -0
- package/dist/standalone/fieldset.d.ts.map +1 -0
- package/dist/standalone/file-upload.d.ts +2 -0
- package/dist/standalone/file-upload.d.ts.map +1 -0
- package/dist/standalone/flex.d.ts +2 -0
- package/dist/standalone/flex.d.ts.map +1 -0
- package/dist/standalone/floating-toolbar.d.ts +2 -0
- package/dist/standalone/floating-toolbar.d.ts.map +1 -0
- package/dist/standalone/focus-scope.d.ts +2 -0
- package/dist/standalone/focus-scope.d.ts.map +1 -0
- package/dist/standalone/form.d.ts +2 -0
- package/dist/standalone/form.d.ts.map +1 -0
- package/dist/standalone/gantt.d.ts +2 -0
- package/dist/standalone/gantt.d.ts.map +1 -0
- package/dist/standalone/grid.d.ts +2 -0
- package/dist/standalone/grid.d.ts.map +1 -0
- package/dist/standalone/hover-card.d.ts +2 -0
- package/dist/standalone/hover-card.d.ts.map +1 -0
- package/dist/standalone/icon-cloud.d.ts +2 -0
- package/dist/standalone/icon-cloud.d.ts.map +1 -0
- package/dist/standalone/icon.d.ts +2 -0
- package/dist/standalone/icon.d.ts.map +1 -0
- package/dist/standalone/inline-edit.d.ts +2 -0
- package/dist/standalone/inline-edit.d.ts.map +1 -0
- package/dist/standalone/input.d.ts +2 -0
- package/dist/standalone/input.d.ts.map +1 -0
- package/dist/standalone/label.d.ts +2 -0
- package/dist/standalone/label.d.ts.map +1 -0
- package/dist/standalone/layout.d.ts +2 -0
- package/dist/standalone/layout.d.ts.map +1 -0
- package/dist/standalone/listbox.d.ts +2 -0
- package/dist/standalone/listbox.d.ts.map +1 -0
- package/dist/standalone/marquee.d.ts +2 -0
- package/dist/standalone/marquee.d.ts.map +1 -0
- package/dist/standalone/masonry-grid.d.ts +2 -0
- package/dist/standalone/masonry-grid.d.ts.map +1 -0
- package/dist/standalone/menu.d.ts +2 -0
- package/dist/standalone/menu.d.ts.map +1 -0
- package/dist/standalone/menubar.d.ts +2 -0
- package/dist/standalone/menubar.d.ts.map +1 -0
- package/dist/standalone/meter.d.ts +2 -0
- package/dist/standalone/meter.d.ts.map +1 -0
- package/dist/standalone/multi-select.d.ts +2 -0
- package/dist/standalone/multi-select.d.ts.map +1 -0
- package/dist/standalone/navigation-menu.d.ts +2 -0
- package/dist/standalone/navigation-menu.d.ts.map +1 -0
- package/dist/standalone/number-field.d.ts +2 -0
- package/dist/standalone/number-field.d.ts.map +1 -0
- package/dist/standalone/number-ticker.d.ts +2 -0
- package/dist/standalone/number-ticker.d.ts.map +1 -0
- package/dist/standalone/odometer.d.ts +2 -0
- package/dist/standalone/odometer.d.ts.map +1 -0
- package/dist/standalone/orbiter.d.ts +2 -0
- package/dist/standalone/orbiter.d.ts.map +1 -0
- package/dist/standalone/pagination.d.ts +2 -0
- package/dist/standalone/pagination.d.ts.map +1 -0
- package/dist/standalone/panel-group.d.ts +2 -0
- package/dist/standalone/panel-group.d.ts.map +1 -0
- package/dist/standalone/panel.d.ts +2 -0
- package/dist/standalone/panel.d.ts.map +1 -0
- package/dist/standalone/password-field.d.ts +2 -0
- package/dist/standalone/password-field.d.ts.map +1 -0
- package/dist/standalone/pin-input.d.ts +2 -0
- package/dist/standalone/pin-input.d.ts.map +1 -0
- package/dist/standalone/placement-grid.d.ts +2 -0
- package/dist/standalone/placement-grid.d.ts.map +1 -0
- package/dist/standalone/plugin-panel.d.ts +2 -0
- package/dist/standalone/plugin-panel.d.ts.map +1 -0
- package/dist/standalone/popover.d.ts +2 -0
- package/dist/standalone/popover.d.ts.map +1 -0
- package/dist/standalone/portal.d.ts +2 -0
- package/dist/standalone/portal.d.ts.map +1 -0
- package/dist/standalone/positioner.d.ts +2 -0
- package/dist/standalone/positioner.d.ts.map +1 -0
- package/dist/standalone/presence.d.ts +2 -0
- package/dist/standalone/presence.d.ts.map +1 -0
- package/dist/standalone/progress.d.ts +2 -0
- package/dist/standalone/progress.d.ts.map +1 -0
- package/dist/standalone/quick-actions.d.ts +2 -0
- package/dist/standalone/quick-actions.d.ts.map +1 -0
- package/dist/standalone/radio-group.d.ts +2 -0
- package/dist/standalone/radio-group.d.ts.map +1 -0
- package/dist/standalone/rating.d.ts +2 -0
- package/dist/standalone/rating.d.ts.map +1 -0
- package/dist/standalone/roving-focus-group.d.ts +2 -0
- package/dist/standalone/roving-focus-group.d.ts.map +1 -0
- package/dist/standalone/scroll-area.d.ts +2 -0
- package/dist/standalone/scroll-area.d.ts.map +1 -0
- package/dist/standalone/section.d.ts +2 -0
- package/dist/standalone/section.d.ts.map +1 -0
- package/dist/standalone/select.d.ts +2 -0
- package/dist/standalone/select.d.ts.map +1 -0
- package/dist/standalone/selection-popup.d.ts +2 -0
- package/dist/standalone/selection-popup.d.ts.map +1 -0
- package/dist/standalone/separator.d.ts +2 -0
- package/dist/standalone/separator.d.ts.map +1 -0
- package/dist/standalone/sidebar.d.ts +2 -0
- package/dist/standalone/sidebar.d.ts.map +1 -0
- package/dist/standalone/skeleton.d.ts +2 -0
- package/dist/standalone/skeleton.d.ts.map +1 -0
- package/dist/standalone/slider.d.ts +2 -0
- package/dist/standalone/slider.d.ts.map +1 -0
- package/dist/standalone/slot.d.ts +2 -0
- package/dist/standalone/slot.d.ts.map +1 -0
- package/dist/standalone/spinning-text.d.ts +2 -0
- package/dist/standalone/spinning-text.d.ts.map +1 -0
- package/dist/standalone/split-button.d.ts +2 -0
- package/dist/standalone/split-button.d.ts.map +1 -0
- package/dist/standalone/splitter.d.ts +2 -0
- package/dist/standalone/splitter.d.ts.map +1 -0
- package/dist/standalone/stepper.d.ts +2 -0
- package/dist/standalone/stepper.d.ts.map +1 -0
- package/dist/standalone/switch.d.ts +2 -0
- package/dist/standalone/switch.d.ts.map +1 -0
- package/dist/standalone/table.d.ts +2 -0
- package/dist/standalone/table.d.ts.map +1 -0
- package/dist/standalone/tabs.d.ts +2 -0
- package/dist/standalone/tabs.d.ts.map +1 -0
- package/dist/standalone/tags-input.d.ts +2 -0
- package/dist/standalone/tags-input.d.ts.map +1 -0
- package/dist/standalone/textarea.d.ts +2 -0
- package/dist/standalone/textarea.d.ts.map +1 -0
- package/dist/standalone/time-field.d.ts +2 -0
- package/dist/standalone/time-field.d.ts.map +1 -0
- package/dist/standalone/time-picker.d.ts +2 -0
- package/dist/standalone/time-picker.d.ts.map +1 -0
- package/dist/standalone/timeline.d.ts +2 -0
- package/dist/standalone/timeline.d.ts.map +1 -0
- package/dist/standalone/toast.d.ts +2 -0
- package/dist/standalone/toast.d.ts.map +1 -0
- package/dist/standalone/toggle-group.d.ts +2 -0
- package/dist/standalone/toggle-group.d.ts.map +1 -0
- package/dist/standalone/toggle.d.ts +2 -0
- package/dist/standalone/toggle.d.ts.map +1 -0
- package/dist/standalone/toolbar.d.ts +2 -0
- package/dist/standalone/toolbar.d.ts.map +1 -0
- package/dist/standalone/tooltip.d.ts +2 -0
- package/dist/standalone/tooltip.d.ts.map +1 -0
- package/dist/standalone/transfer-list.d.ts +2 -0
- package/dist/standalone/transfer-list.d.ts.map +1 -0
- package/dist/standalone/tree-item.d.ts +2 -0
- package/dist/standalone/tree-item.d.ts.map +1 -0
- package/dist/standalone/tree.d.ts +2 -0
- package/dist/standalone/tree.d.ts.map +1 -0
- package/dist/standalone/visually-hidden.d.ts +2 -0
- package/dist/standalone/visually-hidden.d.ts.map +1 -0
- package/dist/standalone/wizard.d.ts +2 -0
- package/dist/standalone/wizard.d.ts.map +1 -0
- package/dist/stepper.cjs.js +337 -0
- package/dist/stepper.esm.js +578 -0
- package/dist/switch.cjs.js +397 -0
- package/dist/switch.esm.js +543 -0
- package/dist/table.cjs.js +212 -0
- package/dist/table.esm.js +432 -0
- package/dist/tabs.cjs.js +515 -0
- package/dist/tabs.esm.js +808 -0
- package/dist/tags-input.cjs.js +202 -0
- package/dist/tags-input.esm.js +436 -0
- package/dist/textarea.cjs.js +329 -0
- package/dist/textarea.esm.js +520 -0
- package/dist/time-field.cjs.js +142 -0
- package/dist/time-field.esm.js +387 -0
- package/dist/time-picker.cjs.js +284 -0
- package/dist/time-picker.esm.js +686 -0
- package/dist/timeline.cjs.js +198 -0
- package/dist/timeline.esm.js +248 -0
- package/dist/toast.cjs.js +234 -0
- package/dist/toast.esm.js +399 -0
- package/dist/toggle-group.cjs.js +131 -0
- package/dist/toggle-group.esm.js +382 -0
- package/dist/toggle.cjs.js +237 -0
- package/dist/toggle.esm.js +346 -0
- package/dist/toolbar.cjs.js +126 -0
- package/dist/toolbar.esm.js +240 -0
- package/dist/tooltip.cjs.js +159 -0
- package/dist/tooltip.esm.js +376 -0
- package/dist/transfer-list.cjs.js +734 -0
- package/dist/transfer-list.esm.js +969 -0
- package/dist/tree-0a7a8d05.js +39 -0
- package/dist/tree-dcd74a4a.mjs +294 -0
- package/dist/tree-item.cjs.js +103 -0
- package/dist/tree-item.esm.js +143 -0
- package/dist/tree.cjs.js +1 -0
- package/dist/tree.esm.js +7 -0
- package/dist/visually-hidden.cjs.js +42 -0
- package/dist/visually-hidden.esm.js +68 -0
- package/dist/wizard.cjs.js +677 -0
- package/dist/wizard.esm.js +1068 -0
- package/package.json +7 -1
- package/dist/runtime-41717c1e.js +0 -1
- package/dist/sortable-06a3bd6c.js +0 -855
- package/dist/sortable-23bf110b.mjs +0 -2254
|
@@ -0,0 +1,771 @@
|
|
|
1
|
+
import { E as I } from "./ElementBase-909688f3.mjs";
|
|
2
|
+
const D = `
|
|
3
|
+
:host {
|
|
4
|
+
--ui-number-field-padding: var(--ui-padding, 10px 12px);
|
|
5
|
+
--ui-number-field-border-color: var(--ui-color-border, var(--ui-border-color, #cbd5e1));
|
|
6
|
+
--ui-number-field-border-width: 1px;
|
|
7
|
+
--ui-number-field-border-style: solid;
|
|
8
|
+
--ui-number-field-border:
|
|
9
|
+
var(--ui-number-field-border-width) var(--ui-number-field-border-style) var(--ui-number-field-border-color);
|
|
10
|
+
--ui-number-field-radius: var(--ui-radius, 10px);
|
|
11
|
+
--ui-number-field-min-height: var(--ui-min-height, 40px);
|
|
12
|
+
--ui-number-field-width: 100%;
|
|
13
|
+
--ui-number-field-bg: var(--ui-color-surface, var(--ui-surface, #ffffff));
|
|
14
|
+
--ui-number-field-color: var(--ui-color-text, var(--ui-text, #0f172a));
|
|
15
|
+
--ui-number-field-muted: var(--ui-color-muted, var(--ui-muted, #64748b));
|
|
16
|
+
--ui-number-field-focus: var(--ui-color-focus-ring, var(--ui-focus-ring, #2563eb));
|
|
17
|
+
--ui-number-field-danger: var(--ui-color-danger, var(--ui-error, #dc2626));
|
|
18
|
+
--ui-number-field-shadow: none;
|
|
19
|
+
--ui-number-field-gap: 8px;
|
|
20
|
+
--ui-number-field-shell-gap: 8px;
|
|
21
|
+
--ui-number-field-meta-gap: 4px;
|
|
22
|
+
--ui-number-field-placeholder: color-mix(in srgb, var(--ui-number-field-color) 40%, transparent);
|
|
23
|
+
color-scheme: light dark;
|
|
24
|
+
display: block;
|
|
25
|
+
inline-size: var(--ui-number-field-width);
|
|
26
|
+
max-inline-size: 100%;
|
|
27
|
+
min-inline-size: 0;
|
|
28
|
+
font-family: "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.root {
|
|
32
|
+
inline-size: 100%;
|
|
33
|
+
min-inline-size: 0;
|
|
34
|
+
display: grid;
|
|
35
|
+
gap: var(--ui-number-field-gap);
|
|
36
|
+
color: var(--ui-number-field-color);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.meta {
|
|
40
|
+
min-inline-size: 0;
|
|
41
|
+
display: grid;
|
|
42
|
+
gap: var(--ui-number-field-meta-gap);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.label {
|
|
46
|
+
margin: 0;
|
|
47
|
+
min-inline-size: 0;
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: 6px;
|
|
51
|
+
color: var(--ui-number-field-muted);
|
|
52
|
+
font: 600 13px/1.35 "IBM Plex Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
53
|
+
letter-spacing: 0.01em;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.required {
|
|
57
|
+
color: var(--ui-number-field-danger);
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
line-height: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.description,
|
|
63
|
+
.error {
|
|
64
|
+
margin: 0;
|
|
65
|
+
font-size: 12px;
|
|
66
|
+
line-height: 1.4;
|
|
67
|
+
letter-spacing: 0.01em;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.description {
|
|
71
|
+
color: var(--ui-number-field-muted);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.error {
|
|
75
|
+
color: var(--ui-number-field-danger);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.meta[hidden],
|
|
79
|
+
.label[hidden],
|
|
80
|
+
.description[hidden],
|
|
81
|
+
.prefix[hidden],
|
|
82
|
+
.suffix[hidden],
|
|
83
|
+
.footer[hidden],
|
|
84
|
+
.error[hidden],
|
|
85
|
+
.steppers[hidden] {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.shell {
|
|
90
|
+
position: relative;
|
|
91
|
+
inline-size: 100%;
|
|
92
|
+
min-inline-size: 0;
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: var(--ui-number-field-shell-gap);
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
min-block-size: var(--ui-number-field-min-height);
|
|
98
|
+
padding-inline: 10px;
|
|
99
|
+
border: var(--ui-number-field-border);
|
|
100
|
+
border-radius: var(--ui-number-field-radius);
|
|
101
|
+
background: var(--ui-number-field-bg);
|
|
102
|
+
box-shadow: var(--ui-number-field-shadow);
|
|
103
|
+
transition: border-color 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.shell[data-show-steppers="true"] {
|
|
107
|
+
padding-inline-end: 4px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.shell:focus-within {
|
|
111
|
+
border-color: color-mix(in srgb, var(--ui-number-field-focus) 56%, var(--ui-number-field-border-color));
|
|
112
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-number-field-focus) 24%, transparent);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.prefix,
|
|
116
|
+
.suffix {
|
|
117
|
+
min-inline-size: 0;
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
color: color-mix(in srgb, var(--ui-number-field-color) 62%, transparent);
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
line-height: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.control {
|
|
127
|
+
flex: 1 1 auto;
|
|
128
|
+
min-inline-size: 0;
|
|
129
|
+
display: grid;
|
|
130
|
+
align-items: center;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
input {
|
|
134
|
+
inline-size: 100%;
|
|
135
|
+
min-inline-size: 0;
|
|
136
|
+
box-sizing: border-box;
|
|
137
|
+
border: none;
|
|
138
|
+
background: transparent;
|
|
139
|
+
color: inherit;
|
|
140
|
+
font: 500 14px/1.4 "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
141
|
+
padding: var(--ui-number-field-padding);
|
|
142
|
+
min-block-size: calc(var(--ui-number-field-min-height) - 2px);
|
|
143
|
+
margin: 0;
|
|
144
|
+
outline: none;
|
|
145
|
+
text-align: var(--ui-number-field-align, right);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
input::placeholder {
|
|
149
|
+
color: var(--ui-number-field-placeholder);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.steppers {
|
|
153
|
+
flex: 0 0 auto;
|
|
154
|
+
display: grid;
|
|
155
|
+
grid-template-rows: 1fr 1fr;
|
|
156
|
+
align-self: stretch;
|
|
157
|
+
align-items: stretch;
|
|
158
|
+
inline-size: 28px;
|
|
159
|
+
min-block-size: calc(var(--ui-number-field-min-height) - 6px);
|
|
160
|
+
margin-inline-start: auto;
|
|
161
|
+
border-inline-start: 1px solid color-mix(in srgb, var(--ui-number-field-border-color) 82%, transparent);
|
|
162
|
+
padding-inline-start: 4px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.stepper-slot {
|
|
166
|
+
display: block;
|
|
167
|
+
min-block-size: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.stepper-btn,
|
|
171
|
+
.steppers ::slotted([slot="increment-trigger"]),
|
|
172
|
+
.steppers ::slotted([slot="decrement-trigger"]) {
|
|
173
|
+
inline-size: 100%;
|
|
174
|
+
min-inline-size: 0;
|
|
175
|
+
block-size: 100%;
|
|
176
|
+
min-block-size: 0;
|
|
177
|
+
border: none;
|
|
178
|
+
border-radius: 7px;
|
|
179
|
+
background: transparent;
|
|
180
|
+
color: color-mix(in srgb, var(--ui-number-field-color) 62%, transparent);
|
|
181
|
+
display: grid;
|
|
182
|
+
place-items: center;
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
padding: 0;
|
|
185
|
+
font: 700 10px/1 "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
186
|
+
line-height: 1;
|
|
187
|
+
transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.stepper-btn:hover,
|
|
191
|
+
.steppers ::slotted([slot="increment-trigger"]:hover),
|
|
192
|
+
.steppers ::slotted([slot="decrement-trigger"]:hover) {
|
|
193
|
+
background: color-mix(in srgb, var(--ui-number-field-color) 8%, transparent);
|
|
194
|
+
color: var(--ui-number-field-color);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.stepper-btn:active,
|
|
198
|
+
.steppers ::slotted([slot="increment-trigger"]:active),
|
|
199
|
+
.steppers ::slotted([slot="decrement-trigger"]:active) {
|
|
200
|
+
background: color-mix(in srgb, var(--ui-number-field-color) 12%, transparent);
|
|
201
|
+
transform: scale(0.97);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.stepper-btn:focus-visible,
|
|
205
|
+
.steppers ::slotted([slot="increment-trigger"]:focus-visible),
|
|
206
|
+
.steppers ::slotted([slot="decrement-trigger"]:focus-visible) {
|
|
207
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--ui-number-field-focus) 28%, transparent);
|
|
208
|
+
outline: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.stepper-icon {
|
|
212
|
+
display: block;
|
|
213
|
+
width: 12px;
|
|
214
|
+
height: 12px;
|
|
215
|
+
user-select: none;
|
|
216
|
+
pointer-events: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.stepper-icon svg {
|
|
220
|
+
width: 100%;
|
|
221
|
+
height: 100%;
|
|
222
|
+
display: block;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.stepper-slot:last-child .stepper-icon {
|
|
226
|
+
transform: translateY(0.5px);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.footer {
|
|
230
|
+
min-inline-size: 0;
|
|
231
|
+
display: flex;
|
|
232
|
+
justify-content: space-between;
|
|
233
|
+
gap: 10px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
:host([disabled]) {
|
|
237
|
+
cursor: not-allowed;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
:host([disabled]) .shell {
|
|
241
|
+
opacity: 0.64;
|
|
242
|
+
filter: saturate(0.85);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
:host([disabled]) input,
|
|
246
|
+
:host([disabled]) .stepper-btn {
|
|
247
|
+
pointer-events: none;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
:host([invalid]),
|
|
251
|
+
:host([data-internal-invalid]) {
|
|
252
|
+
--ui-number-field-border-color: color-mix(in srgb, var(--ui-number-field-danger) 62%, transparent);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
:host([invalid]) .shell,
|
|
256
|
+
:host([data-internal-invalid]) .shell {
|
|
257
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-number-field-danger) 20%, transparent);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
:host([size="sm"]) {
|
|
261
|
+
--ui-number-field-min-height: 34px;
|
|
262
|
+
--ui-number-field-padding: 7px 8px;
|
|
263
|
+
--ui-number-field-shell-gap: 6px;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
:host([size="sm"]) .steppers {
|
|
267
|
+
inline-size: 24px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
:host([size="sm"]) .stepper-icon {
|
|
271
|
+
width: 8px;
|
|
272
|
+
height: 8px;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
:host([size="lg"]) {
|
|
276
|
+
--ui-number-field-min-height: 46px;
|
|
277
|
+
--ui-number-field-padding: 11px 14px;
|
|
278
|
+
--ui-number-field-shell-gap: 10px;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
:host([size="lg"]) .steppers {
|
|
282
|
+
inline-size: 32px;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
:host([size="lg"]) .stepper-icon {
|
|
286
|
+
width: 14px;
|
|
287
|
+
height: 14px;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
:host([variant="surface"]) {
|
|
291
|
+
--ui-number-field-bg: var(--ui-color-surface-alt, var(--ui-surface-alt, #f8fafc));
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
:host([variant="soft"]) {
|
|
295
|
+
--ui-number-field-bg: color-mix(in srgb, var(--ui-color-primary, #2563eb) 8%, var(--ui-color-surface, #ffffff));
|
|
296
|
+
--ui-number-field-border-color: color-mix(in srgb, var(--ui-color-primary, #2563eb) 28%, var(--ui-color-border, #cbd5e1));
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
:host([variant="contrast"]) {
|
|
300
|
+
--ui-number-field-bg: #0f172a;
|
|
301
|
+
--ui-number-field-color: #e2e8f0;
|
|
302
|
+
--ui-number-field-muted: #94a3b8;
|
|
303
|
+
--ui-number-field-border-color: #334155;
|
|
304
|
+
--ui-number-field-focus: #93c5fd;
|
|
305
|
+
--ui-number-field-placeholder: color-mix(in srgb, #e2e8f0 46%, transparent);
|
|
306
|
+
--ui-number-field-shadow: 0 2px 8px rgba(2, 6, 23, 0.24);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
@media (prefers-reduced-motion: reduce) {
|
|
310
|
+
.shell,
|
|
311
|
+
.stepper-btn {
|
|
312
|
+
transition: none !important;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
`;
|
|
316
|
+
function f(s) {
|
|
317
|
+
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
318
|
+
}
|
|
319
|
+
function d(s) {
|
|
320
|
+
if (!s)
|
|
321
|
+
return !1;
|
|
322
|
+
const e = s.assignedNodes({ flatten: !0 });
|
|
323
|
+
return e.length ? e.some((t) => {
|
|
324
|
+
var i;
|
|
325
|
+
return t.nodeType === Node.TEXT_NODE ? !!((i = t.textContent) != null && i.trim()) : t.nodeType === Node.ELEMENT_NODE;
|
|
326
|
+
}) : !1;
|
|
327
|
+
}
|
|
328
|
+
function p(s, e) {
|
|
329
|
+
const t = s.getAttribute(e);
|
|
330
|
+
if (t == null)
|
|
331
|
+
return !1;
|
|
332
|
+
const i = String(t).trim().toLowerCase();
|
|
333
|
+
return i !== "false" && i !== "0";
|
|
334
|
+
}
|
|
335
|
+
function g(s) {
|
|
336
|
+
if (s == null || s.trim() === "")
|
|
337
|
+
return null;
|
|
338
|
+
const e = Number(s);
|
|
339
|
+
return Number.isFinite(e) ? e : null;
|
|
340
|
+
}
|
|
341
|
+
function z(s) {
|
|
342
|
+
const e = String(s), t = e.match(/e-(\d+)$/i);
|
|
343
|
+
if (t)
|
|
344
|
+
return Number(t[1]);
|
|
345
|
+
const i = e.split(".")[1];
|
|
346
|
+
return i ? i.length : 0;
|
|
347
|
+
}
|
|
348
|
+
function m(s, e) {
|
|
349
|
+
if (e == null || e < 0)
|
|
350
|
+
return s;
|
|
351
|
+
const t = 10 ** e;
|
|
352
|
+
return Math.round((s + Number.EPSILON) * t) / t;
|
|
353
|
+
}
|
|
354
|
+
function A(s, e, t) {
|
|
355
|
+
return e != null && s < e ? e : t != null && s > t ? t : s;
|
|
356
|
+
}
|
|
357
|
+
function N(s) {
|
|
358
|
+
return s ?? 0;
|
|
359
|
+
}
|
|
360
|
+
function B(s, e, t, i) {
|
|
361
|
+
if (e == null || e <= 0)
|
|
362
|
+
return !0;
|
|
363
|
+
const r = m((s - t) / e, i != null ? i + 2 : 8);
|
|
364
|
+
return Math.abs(r - Math.round(r)) < 1e-7;
|
|
365
|
+
}
|
|
366
|
+
function C(s) {
|
|
367
|
+
var t, i;
|
|
368
|
+
const e = new Intl.NumberFormat(s).formatToParts(12345.6);
|
|
369
|
+
return {
|
|
370
|
+
group: ((t = e.find((r) => r.type === "group")) == null ? void 0 : t.value) || ",",
|
|
371
|
+
decimal: ((i = e.find((r) => r.type === "decimal")) == null ? void 0 : i.value) || "."
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
function _(s, e) {
|
|
375
|
+
const t = s.trim();
|
|
376
|
+
if (!t)
|
|
377
|
+
return null;
|
|
378
|
+
const { group: i, decimal: r } = C(e);
|
|
379
|
+
let n = t.replace(/[\s\u00a0\u202f]/g, "");
|
|
380
|
+
if (i && (n = n.split(i).join("")), r && r !== "." && (n = n.split(r).join(".")), n = n.replace(/[−–]/g, "-"), !/^[+-]?(?:\d+\.?\d*|\.\d+)$/.test(n))
|
|
381
|
+
return null;
|
|
382
|
+
const a = Number(n);
|
|
383
|
+
return Number.isFinite(a) ? a : null;
|
|
384
|
+
}
|
|
385
|
+
function F(s, e) {
|
|
386
|
+
return e != null && e >= 0 ? s.toFixed(e) : String(s);
|
|
387
|
+
}
|
|
388
|
+
class L extends I {
|
|
389
|
+
constructor() {
|
|
390
|
+
super(), this._input = null, this._formUnregister = null, this._uid = Math.random().toString(36).slice(2, 9), this._rawValue = "", this._isEditing = !1, this._internalInvalidReason = null, this._onInput = this._onInput.bind(this), this._onBlur = this._onBlur.bind(this), this._onFocus = this._onFocus.bind(this), this._onKeyDown = this._onKeyDown.bind(this), this._onWheel = this._onWheel.bind(this), this._onSlotChange = this._onSlotChange.bind(this), this._onClick = this._onClick.bind(this);
|
|
391
|
+
}
|
|
392
|
+
static get observedAttributes() {
|
|
393
|
+
return [
|
|
394
|
+
"value",
|
|
395
|
+
"min",
|
|
396
|
+
"max",
|
|
397
|
+
"step",
|
|
398
|
+
"precision",
|
|
399
|
+
"locale",
|
|
400
|
+
"format",
|
|
401
|
+
"name",
|
|
402
|
+
"placeholder",
|
|
403
|
+
"disabled",
|
|
404
|
+
"readonly",
|
|
405
|
+
"required",
|
|
406
|
+
"invalid",
|
|
407
|
+
"allow-wheel",
|
|
408
|
+
"show-steppers",
|
|
409
|
+
"clamp-on-blur",
|
|
410
|
+
"autocomplete",
|
|
411
|
+
"inputmode",
|
|
412
|
+
"label",
|
|
413
|
+
"description",
|
|
414
|
+
"data-error",
|
|
415
|
+
"size",
|
|
416
|
+
"variant"
|
|
417
|
+
];
|
|
418
|
+
}
|
|
419
|
+
connectedCallback() {
|
|
420
|
+
super.connectedCallback(), this.root.addEventListener("slotchange", this._onSlotChange), this.addEventListener("click", this._onClick), this._registerWithForm();
|
|
421
|
+
}
|
|
422
|
+
disconnectedCallback() {
|
|
423
|
+
this.root.removeEventListener("slotchange", this._onSlotChange), this.removeEventListener("click", this._onClick), this._detachListeners(), this._formUnregister && (this._formUnregister(), this._formUnregister = null), super.disconnectedCallback();
|
|
424
|
+
}
|
|
425
|
+
shouldRenderOnAttributeChange(e) {
|
|
426
|
+
return e === "label" || e === "description" || e === "data-error";
|
|
427
|
+
}
|
|
428
|
+
attributeChangedCallback(e, t, i) {
|
|
429
|
+
if (t !== i) {
|
|
430
|
+
if (e === "value") {
|
|
431
|
+
this._rawValue = i || "", this._clearInternalInvalid(), this._syncDisplayValue(), this._syncAria();
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
if (e === "name" && this._registerWithForm(), e === "min" || e === "max" || e === "step" || e === "precision" || e === "locale" || e === "format" || e === "placeholder" || e === "disabled" || e === "readonly" || e === "required" || e === "allow-wheel" || e === "show-steppers" || e === "clamp-on-blur" || e === "autocomplete" || e === "inputmode" || e === "size" || e === "variant" || e === "invalid") {
|
|
435
|
+
this._syncControlAttrs(), this._syncDisplayValue(), this._syncDerivedState(), this._syncAria();
|
|
436
|
+
return;
|
|
437
|
+
}
|
|
438
|
+
super.attributeChangedCallback(e, t, i);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
get value() {
|
|
442
|
+
return this.getAttribute("value") || "";
|
|
443
|
+
}
|
|
444
|
+
set value(e) {
|
|
445
|
+
e ? this.setAttribute("value", e) : this.removeAttribute("value");
|
|
446
|
+
}
|
|
447
|
+
get valueAsNumber() {
|
|
448
|
+
return g(this.getAttribute("value"));
|
|
449
|
+
}
|
|
450
|
+
get rawValue() {
|
|
451
|
+
return this._rawValue;
|
|
452
|
+
}
|
|
453
|
+
set rawValue(e) {
|
|
454
|
+
this._rawValue = String(e ?? ""), this._input && (this._input.value = this._rawValue), this._syncAria();
|
|
455
|
+
}
|
|
456
|
+
focus(e) {
|
|
457
|
+
if (this._input) {
|
|
458
|
+
this._input.focus(e);
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
super.focus(e);
|
|
462
|
+
}
|
|
463
|
+
blur() {
|
|
464
|
+
var e;
|
|
465
|
+
(e = this._input) == null || e.blur();
|
|
466
|
+
}
|
|
467
|
+
select() {
|
|
468
|
+
var e;
|
|
469
|
+
(e = this._input) == null || e.select();
|
|
470
|
+
}
|
|
471
|
+
stepUp(e = 1) {
|
|
472
|
+
this._stepBy(Math.max(1, Number(e) || 1), "step");
|
|
473
|
+
}
|
|
474
|
+
stepDown(e = 1) {
|
|
475
|
+
this._stepBy(-Math.max(1, Number(e) || 1), "step");
|
|
476
|
+
}
|
|
477
|
+
_locale() {
|
|
478
|
+
return this.getAttribute("locale") || Intl.NumberFormat().resolvedOptions().locale || "en-US";
|
|
479
|
+
}
|
|
480
|
+
_precision() {
|
|
481
|
+
const e = this.getAttribute("precision");
|
|
482
|
+
if (e == null || e.trim() === "")
|
|
483
|
+
return null;
|
|
484
|
+
const t = Number(e);
|
|
485
|
+
return Number.isInteger(t) && t >= 0 ? t : null;
|
|
486
|
+
}
|
|
487
|
+
_step() {
|
|
488
|
+
const e = this.getAttribute("step");
|
|
489
|
+
if (e == null || e === "" || e === "any")
|
|
490
|
+
return null;
|
|
491
|
+
const t = Number(e);
|
|
492
|
+
return Number.isFinite(t) && t > 0 ? t : null;
|
|
493
|
+
}
|
|
494
|
+
_effectivePrecision() {
|
|
495
|
+
const e = this._precision();
|
|
496
|
+
if (e != null)
|
|
497
|
+
return e;
|
|
498
|
+
const t = this._step();
|
|
499
|
+
return t != null ? z(t) : null;
|
|
500
|
+
}
|
|
501
|
+
_min() {
|
|
502
|
+
return g(this.getAttribute("min"));
|
|
503
|
+
}
|
|
504
|
+
_max() {
|
|
505
|
+
return g(this.getAttribute("max"));
|
|
506
|
+
}
|
|
507
|
+
_formatNumber(e) {
|
|
508
|
+
const t = this._effectivePrecision(), i = this.getAttribute("format") !== "plain";
|
|
509
|
+
return new Intl.NumberFormat(this._locale(), {
|
|
510
|
+
useGrouping: i,
|
|
511
|
+
minimumFractionDigits: t ?? 0,
|
|
512
|
+
maximumFractionDigits: t ?? 20
|
|
513
|
+
}).format(e);
|
|
514
|
+
}
|
|
515
|
+
_displayStringForValue() {
|
|
516
|
+
if (this._isEditing)
|
|
517
|
+
return this._rawValue;
|
|
518
|
+
const e = this.valueAsNumber;
|
|
519
|
+
return e == null ? this._rawValue : this._formatNumber(e);
|
|
520
|
+
}
|
|
521
|
+
_syncDisplayValue() {
|
|
522
|
+
if (!this._input)
|
|
523
|
+
return;
|
|
524
|
+
const e = this._displayStringForValue();
|
|
525
|
+
this._input.value !== e && (this._input.value = e);
|
|
526
|
+
const t = this.root.querySelector(".shell");
|
|
527
|
+
t && t.setAttribute("data-has-value", e ? "true" : "false");
|
|
528
|
+
}
|
|
529
|
+
_syncControlAttrs() {
|
|
530
|
+
if (!this._input)
|
|
531
|
+
return;
|
|
532
|
+
this._input.placeholder = this.getAttribute("placeholder") || "", this._input.disabled = p(this, "disabled"), this._input.readOnly = this.hasAttribute("readonly"), this._input.required = this.hasAttribute("required"), this._input.name = this.getAttribute("name") || "", this._input.setAttribute("inputmode", this.getAttribute("inputmode") || "decimal");
|
|
533
|
+
const e = this.getAttribute("autocomplete");
|
|
534
|
+
e ? this._input.setAttribute("autocomplete", e) : this._input.removeAttribute("autocomplete");
|
|
535
|
+
}
|
|
536
|
+
_syncAria() {
|
|
537
|
+
if (!this._input)
|
|
538
|
+
return;
|
|
539
|
+
const e = this.valueAsNumber;
|
|
540
|
+
this._input.setAttribute("role", "spinbutton"), this._input.setAttribute("aria-valuetext", this._input.value || "");
|
|
541
|
+
const t = this._min(), i = this._max();
|
|
542
|
+
t != null ? this._input.setAttribute("aria-valuemin", String(t)) : this._input.removeAttribute("aria-valuemin"), i != null ? this._input.setAttribute("aria-valuemax", String(i)) : this._input.removeAttribute("aria-valuemax"), e != null ? this._input.setAttribute("aria-valuenow", String(e)) : this._input.removeAttribute("aria-valuenow");
|
|
543
|
+
const r = this.root.querySelector('slot[name="label"]'), n = this.root.querySelector('slot[name="description"]'), a = this.root.querySelector('slot[name="error"]'), l = !!(this.getAttribute("label") || "").trim() || d(r), u = !!(this.getAttribute("description") || "").trim() || d(n), o = !!(this.getAttribute("data-error") || "").trim() || d(a);
|
|
544
|
+
l ? this._input.setAttribute("aria-labelledby", `${this._uid}-label`) : this._input.removeAttribute("aria-labelledby");
|
|
545
|
+
const c = [];
|
|
546
|
+
u && c.push(`${this._uid}-description`), o && c.push(`${this._uid}-error`), c.length ? this._input.setAttribute("aria-describedby", c.join(" ")) : this._input.removeAttribute("aria-describedby"), this.hasAttribute("required") ? this._input.setAttribute("aria-required", "true") : this._input.removeAttribute("aria-required"), this.hasAttribute("invalid") || this._internalInvalidReason != null || o ? this._input.setAttribute("aria-invalid", "true") : this._input.removeAttribute("aria-invalid");
|
|
547
|
+
}
|
|
548
|
+
_syncDerivedState() {
|
|
549
|
+
const e = this.root.querySelector('slot[name="label"]'), t = this.root.querySelector('slot[name="description"]'), i = this.root.querySelector('slot[name="error"]'), r = this.root.querySelector('slot[name="prefix"]'), n = this.root.querySelector('slot[name="suffix"]'), a = this.root.querySelector('slot[name="increment-trigger"]'), l = this.root.querySelector('slot[name="decrement-trigger"]'), u = !!(this.getAttribute("label") || "").trim() || d(e), o = !!(this.getAttribute("description") || "").trim() || d(t), c = !!(this.getAttribute("data-error") || "").trim() || d(i), v = d(r), w = d(n), S = d(a), V = d(l), y = p(this, "show-steppers") || S || V, h = (k, E) => {
|
|
550
|
+
const b = this.root.querySelector(k);
|
|
551
|
+
b && (E ? b.removeAttribute("hidden") : b.setAttribute("hidden", ""));
|
|
552
|
+
};
|
|
553
|
+
h(".meta", u || o), h(".label", u), h(".description", o), h(".prefix", v), h(".suffix", w), h(".footer", c), h(".error", c), h(".steppers", y);
|
|
554
|
+
const x = this.root.querySelector(".shell");
|
|
555
|
+
x && x.setAttribute("data-show-steppers", y ? "true" : "false");
|
|
556
|
+
}
|
|
557
|
+
_emitValueEvent(e, t, i, r) {
|
|
558
|
+
this.dispatchEvent(
|
|
559
|
+
new CustomEvent(e, {
|
|
560
|
+
detail: { value: t, previousValue: i, source: r },
|
|
561
|
+
bubbles: !0,
|
|
562
|
+
composed: !0
|
|
563
|
+
})
|
|
564
|
+
);
|
|
565
|
+
}
|
|
566
|
+
_emitInvalid(e) {
|
|
567
|
+
this._internalInvalidReason = e, this.setAttribute("data-internal-invalid", e), this._syncAria(), this.dispatchEvent(
|
|
568
|
+
new CustomEvent("invalid", {
|
|
569
|
+
detail: { reason: e },
|
|
570
|
+
bubbles: !0,
|
|
571
|
+
composed: !0
|
|
572
|
+
})
|
|
573
|
+
);
|
|
574
|
+
}
|
|
575
|
+
_clearInternalInvalid() {
|
|
576
|
+
this._internalInvalidReason = null, this.removeAttribute("data-internal-invalid"), this._syncAria();
|
|
577
|
+
}
|
|
578
|
+
_commitValue(e, t) {
|
|
579
|
+
const i = this.valueAsNumber;
|
|
580
|
+
if (e == null) {
|
|
581
|
+
if (i == null && !this.value) {
|
|
582
|
+
this._rawValue = "", this._syncDisplayValue();
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
585
|
+
this._emitValueEvent("before-value-change", null, i, t), this.removeAttribute("value"), this._rawValue = "", this._clearInternalInvalid(), this._syncDisplayValue(), this._syncAria(), this._emitValueEvent("value-change", null, i, t);
|
|
586
|
+
return;
|
|
587
|
+
}
|
|
588
|
+
const r = this._effectivePrecision(), n = F(m(e, r), r), a = Number(n);
|
|
589
|
+
if (i != null && a === i && this.value === n) {
|
|
590
|
+
this._rawValue = n, this._clearInternalInvalid(), this._syncDisplayValue();
|
|
591
|
+
return;
|
|
592
|
+
}
|
|
593
|
+
this._emitValueEvent("before-value-change", a, i, t), this.setAttribute("value", n), this._rawValue = n, this._clearInternalInvalid(), this._syncDisplayValue(), this._syncAria(), this._emitValueEvent("value-change", a, i, t);
|
|
594
|
+
}
|
|
595
|
+
_commitRaw(e) {
|
|
596
|
+
const t = this._rawValue.trim();
|
|
597
|
+
if (!t) {
|
|
598
|
+
this._commitValue(null, e);
|
|
599
|
+
return;
|
|
600
|
+
}
|
|
601
|
+
const i = _(t, this._locale());
|
|
602
|
+
if (i == null) {
|
|
603
|
+
this._emitInvalid("parse"), this._syncDisplayValue();
|
|
604
|
+
return;
|
|
605
|
+
}
|
|
606
|
+
const r = this._min(), n = this._max(), a = this._effectivePrecision(), l = m(i, a), u = p(this, "clamp-on-blur"), o = u ? A(l, r, n) : l;
|
|
607
|
+
if (!u && r != null && o < r) {
|
|
608
|
+
this._emitInvalid("min"), this._syncDisplayValue();
|
|
609
|
+
return;
|
|
610
|
+
}
|
|
611
|
+
if (!u && n != null && o > n) {
|
|
612
|
+
this._emitInvalid("max"), this._syncDisplayValue();
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
const c = this._step();
|
|
616
|
+
if (!B(o, c, N(r), a)) {
|
|
617
|
+
this._emitInvalid("step"), this._syncDisplayValue();
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
620
|
+
this._commitValue(o, e);
|
|
621
|
+
}
|
|
622
|
+
_stepBy(e, t) {
|
|
623
|
+
if (p(this, "disabled") || this.hasAttribute("readonly"))
|
|
624
|
+
return;
|
|
625
|
+
const i = this._step() ?? 1, r = this._effectivePrecision(), n = this._min(), a = this._max(), u = (this._isEditing ? _(this._rawValue, this._locale()) : this.valueAsNumber) ?? n ?? 0, o = A(m(u + i * e, r), n, a);
|
|
626
|
+
this._commitValue(o, t), this._isEditing && this._input && (this._input.value = this._rawValue);
|
|
627
|
+
}
|
|
628
|
+
_registerWithForm() {
|
|
629
|
+
var e;
|
|
630
|
+
this._formUnregister && (this._formUnregister(), this._formUnregister = null);
|
|
631
|
+
try {
|
|
632
|
+
const i = this.getRootNode().host, n = ((e = i == null ? void 0 : i.closest) == null ? void 0 : e.call(i, "ui-form")) || null || this.closest("ui-form"), a = this.getAttribute("name");
|
|
633
|
+
n && typeof n.registerField == "function" && a && (this._formUnregister = n.registerField(a, {
|
|
634
|
+
name: a,
|
|
635
|
+
getValue: () => this.value,
|
|
636
|
+
setValue: (l) => {
|
|
637
|
+
l == null || l === "" ? this.removeAttribute("value") : this.setAttribute("value", String(l));
|
|
638
|
+
},
|
|
639
|
+
validate: async () => {
|
|
640
|
+
const l = this.valueAsNumber, u = this._min(), o = this._max();
|
|
641
|
+
return this.hasAttribute("required") && l == null ? { valid: !1, message: "A value is required." } : l != null && u != null && l < u ? { valid: !1, message: `Value must be at least ${u}.` } : l != null && o != null && l > o ? { valid: !1, message: `Value must be at most ${o}.` } : { valid: this._internalInvalidReason == null, message: void 0 };
|
|
642
|
+
},
|
|
643
|
+
setError: (l) => {
|
|
644
|
+
l ? (this.setAttribute("data-error", l), this.toggleAttribute("invalid", !0)) : (this.removeAttribute("data-error"), this._internalInvalidReason == null && this.removeAttribute("invalid")), this._syncDerivedState(), this._syncAria();
|
|
645
|
+
}
|
|
646
|
+
}));
|
|
647
|
+
} catch {
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
_detachListeners() {
|
|
651
|
+
this._input && (this._input.removeEventListener("input", this._onInput), this._input.removeEventListener("focus", this._onFocus), this._input.removeEventListener("blur", this._onBlur), this._input.removeEventListener("keydown", this._onKeyDown), this._input.removeEventListener("wheel", this._onWheel));
|
|
652
|
+
}
|
|
653
|
+
_bindInput() {
|
|
654
|
+
this._input && (this._detachListeners(), this._input.addEventListener("input", this._onInput), this._input.addEventListener("focus", this._onFocus), this._input.addEventListener("blur", this._onBlur), this._input.addEventListener("keydown", this._onKeyDown), this._input.addEventListener("wheel", this._onWheel, { passive: !1 }));
|
|
655
|
+
}
|
|
656
|
+
_onInput(e) {
|
|
657
|
+
this._rawValue = e.target.value, this._syncDisplayValue(), this._syncAria();
|
|
658
|
+
const t = _(this._rawValue, this._locale());
|
|
659
|
+
this.dispatchEvent(
|
|
660
|
+
new CustomEvent("input", {
|
|
661
|
+
detail: { rawValue: this._rawValue, value: t, source: "input" },
|
|
662
|
+
bubbles: !0,
|
|
663
|
+
composed: !0
|
|
664
|
+
})
|
|
665
|
+
);
|
|
666
|
+
}
|
|
667
|
+
_onFocus() {
|
|
668
|
+
this._isEditing = !0, this._rawValue = this.value || this._rawValue, this._syncDisplayValue(), this._syncAria();
|
|
669
|
+
}
|
|
670
|
+
_onBlur() {
|
|
671
|
+
this._isEditing = !1, this._commitRaw("blur");
|
|
672
|
+
}
|
|
673
|
+
_onKeyDown(e) {
|
|
674
|
+
if (e.key === "ArrowUp") {
|
|
675
|
+
e.preventDefault(), this._stepBy(1, "keyboard");
|
|
676
|
+
return;
|
|
677
|
+
}
|
|
678
|
+
if (e.key === "ArrowDown") {
|
|
679
|
+
e.preventDefault(), this._stepBy(-1, "keyboard");
|
|
680
|
+
return;
|
|
681
|
+
}
|
|
682
|
+
if (e.key === "PageUp") {
|
|
683
|
+
e.preventDefault(), this._stepBy(10, "keyboard");
|
|
684
|
+
return;
|
|
685
|
+
}
|
|
686
|
+
if (e.key === "PageDown") {
|
|
687
|
+
e.preventDefault(), this._stepBy(-10, "keyboard");
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
if (e.key === "Home") {
|
|
691
|
+
const t = this._min();
|
|
692
|
+
if (t == null)
|
|
693
|
+
return;
|
|
694
|
+
e.preventDefault(), this._commitValue(t, "keyboard");
|
|
695
|
+
return;
|
|
696
|
+
}
|
|
697
|
+
if (e.key === "End") {
|
|
698
|
+
const t = this._max();
|
|
699
|
+
if (t == null)
|
|
700
|
+
return;
|
|
701
|
+
e.preventDefault(), this._commitValue(t, "keyboard");
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
if (e.key === "Enter") {
|
|
705
|
+
e.preventDefault(), this._isEditing = !1, this._commitRaw("keyboard");
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
708
|
+
e.key === "Escape" && (this._isEditing = !1, this._rawValue = this.value, this._clearInternalInvalid(), this._syncDisplayValue());
|
|
709
|
+
}
|
|
710
|
+
_onWheel(e) {
|
|
711
|
+
p(this, "allow-wheel") && (!this._input || this.root.activeElement !== this._input || (e.preventDefault(), this._stepBy(e.deltaY < 0 ? 1 : -1, "wheel")));
|
|
712
|
+
}
|
|
713
|
+
_onClick(e) {
|
|
714
|
+
const i = e.composedPath().find((r) => r instanceof HTMLElement ? r.dataset.stepAction === "up" || r.dataset.stepAction === "down" || r.getAttribute("slot") === "increment-trigger" || r.getAttribute("slot") === "decrement-trigger" : !1);
|
|
715
|
+
if (i) {
|
|
716
|
+
if (i.dataset.stepAction === "up" || i.getAttribute("slot") === "increment-trigger") {
|
|
717
|
+
e.preventDefault(), this._stepBy(1, "step");
|
|
718
|
+
return;
|
|
719
|
+
}
|
|
720
|
+
(i.dataset.stepAction === "down" || i.getAttribute("slot") === "decrement-trigger") && (e.preventDefault(), this._stepBy(-1, "step"));
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
_onSlotChange() {
|
|
724
|
+
this._syncDerivedState(), this._syncAria();
|
|
725
|
+
}
|
|
726
|
+
render() {
|
|
727
|
+
const e = this.getAttribute("label") || "", t = this.getAttribute("description") || "", i = this.getAttribute("data-error") || "";
|
|
728
|
+
this.setContent(`
|
|
729
|
+
<style>${D}</style>
|
|
730
|
+
<div class="root">
|
|
731
|
+
<div class="meta">
|
|
732
|
+
<label class="label" id="${this._uid}-label">
|
|
733
|
+
<slot name="label">${f(e)}</slot>
|
|
734
|
+
<span class="required" ${this.hasAttribute("required") ? "" : "hidden"}>*</span>
|
|
735
|
+
</label>
|
|
736
|
+
<p class="description" id="${this._uid}-description">
|
|
737
|
+
<slot name="description">${f(t)}</slot>
|
|
738
|
+
</p>
|
|
739
|
+
</div>
|
|
740
|
+
<div class="shell">
|
|
741
|
+
<span class="prefix" hidden><slot name="prefix"></slot></span>
|
|
742
|
+
<div class="control">
|
|
743
|
+
<input type="text" spellcheck="false" />
|
|
744
|
+
</div>
|
|
745
|
+
<span class="suffix" hidden><slot name="suffix"></slot></span>
|
|
746
|
+
<div class="steppers">
|
|
747
|
+
<span class="stepper-slot">
|
|
748
|
+
<slot name="decrement-trigger">
|
|
749
|
+
<button class="stepper-btn" type="button" data-step-action="down" aria-label="Decrease value"><span class="stepper-icon" aria-hidden="true"><svg width="12" height="12" viewBox="0 0 12 12" fill="currentColor"><path d="M6 8.5L2.5 5h7L6 8.5z"/></svg></span></button>
|
|
750
|
+
</slot>
|
|
751
|
+
</span>
|
|
752
|
+
<span class="stepper-slot">
|
|
753
|
+
<slot name="increment-trigger">
|
|
754
|
+
<button class="stepper-btn" type="button" data-step-action="up" aria-label="Increase value"><span class="stepper-icon" aria-hidden="true"><svg width="12" height="12" viewBox="0 0 12 12" fill="currentColor"><path d="M6 3.5L9.5 7H2.5L6 3.5z"/></svg></span></button>
|
|
755
|
+
</slot>
|
|
756
|
+
</span>
|
|
757
|
+
</div>
|
|
758
|
+
</div>
|
|
759
|
+
<div class="footer">
|
|
760
|
+
<p class="error" id="${this._uid}-error">
|
|
761
|
+
<slot name="error">${f(i)}</slot>
|
|
762
|
+
</p>
|
|
763
|
+
</div>
|
|
764
|
+
</div>
|
|
765
|
+
`), this._input = this.root.querySelector("input"), this._rawValue = this.value || this._rawValue, this._bindInput(), this._syncControlAttrs(), this._syncDerivedState(), this._syncDisplayValue(), this._syncAria();
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
customElements.get("ui-number-field") || customElements.define("ui-number-field", L);
|
|
769
|
+
export {
|
|
770
|
+
L as UINumberField
|
|
771
|
+
};
|