@webquark/core 1.0.2 → 1.1.0-dev.2
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/LICENSE +21 -21
- package/README.md +111 -98
- package/dist/cjs/Leaflet.GoogleMutant-BCs2oiE0.js +769 -0
- package/dist/cjs/action.props-hpMla743.js +35 -0
- package/dist/cjs/chevron-up-B76247zT.js +30 -0
- package/dist/cjs/collection-identity-CV5HLD9Z.js +141 -0
- package/dist/cjs/data-table-cell-BAv6IIYx.js +46 -0
- package/dist/cjs/{dom-CTqgGpWA.js → dom-Dk77oFF6.js} +15 -6
- package/dist/cjs/form-control-validity-D1ukC0_e.js +49 -0
- package/dist/cjs/{index-CLlvFbDw.js → index-Vzfd3Ljg.js} +58 -3
- package/dist/cjs/index.cjs.js +24 -2
- package/dist/cjs/leaflet-maplibre-gl-RCEffFEM.js +434 -0
- package/dist/cjs/leaflet-src-B0ls4IKq.js +14522 -0
- package/dist/cjs/leaflet-src-BX4jwTf5.js +33 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/map.types-DNrz8rJh.js +24 -0
- package/dist/cjs/q-alert.cjs.entry.js +52 -0
- package/dist/cjs/q-avatar.cjs.entry.js +101 -0
- package/dist/cjs/q-button_2.cjs.entry.js +375 -0
- package/dist/cjs/q-card.cjs.entry.js +31 -9
- package/dist/cjs/q-carousel.cjs.entry.js +121 -78
- package/dist/cjs/q-chip.cjs.entry.js +124 -0
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +70 -0
- package/dist/cjs/q-data-table.cjs.entry.js +470 -118
- package/dist/cjs/q-dialog.cjs.entry.js +136 -22
- package/dist/cjs/q-dropdown.cjs.entry.js +318 -64
- package/dist/cjs/q-form.cjs.entry.js +509 -0
- package/dist/cjs/q-icon.cjs.entry.js +290 -99
- package/dist/cjs/q-input_2.cjs.entry.js +363 -0
- package/dist/cjs/q-link.cjs.entry.js +80 -0
- package/dist/cjs/q-map.cjs.entry.js +3328 -0
- package/dist/cjs/q-navbar.cjs.entry.js +194 -0
- package/dist/cjs/q-pagination.cjs.entry.js +68 -0
- package/dist/cjs/q-panel.cjs.entry.js +67 -0
- package/dist/cjs/q-quantity-selector.cjs.entry.js +112 -93
- package/dist/cjs/q-radio-group.cjs.entry.js +217 -0
- package/dist/cjs/q-reel.cjs.entry.js +86 -33
- package/dist/cjs/q-scrollable.cjs.entry.js +449 -0
- package/dist/cjs/q-sidepanel.cjs.entry.js +562 -114
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +11 -17
- package/dist/cjs/q-step-diagram.cjs.entry.js +9 -10
- package/dist/cjs/q-syntax-box.cjs.entry.js +381 -173
- package/dist/cjs/q-tabs.cjs.entry.js +155 -0
- package/dist/cjs/q-textarea.cjs.entry.js +69 -9
- package/dist/cjs/q-thumbnail.cjs.entry.js +18 -11
- package/dist/cjs/q-toast.cjs.entry.js +400 -0
- package/dist/cjs/q-toggle.cjs.entry.js +57 -26
- package/dist/cjs/q-toolbar.cjs.entry.js +29 -0
- package/dist/cjs/registry-BhkCNgxt.js +179 -0
- package/dist/cjs/toast-controller-CIXagxbV.js +111 -0
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/assets/icons/braces.svg +14 -14
- package/dist/collection/assets/icons/check.svg +1 -1
- package/dist/collection/assets/icons/chevron-down.svg +1 -1
- package/dist/collection/assets/icons/chevron-left.svg +1 -1
- package/dist/collection/assets/icons/chevron-right.svg +1 -1
- package/dist/collection/assets/icons/chevron-up.svg +1 -1
- package/dist/collection/assets/icons/copy.svg +4 -4
- package/dist/collection/assets/icons/eye-off.svg +1 -1
- package/dist/collection/assets/icons/eye.svg +1 -1
- package/dist/collection/assets/icons/minus.svg +1 -1
- package/dist/collection/assets/icons/play.svg +1 -1
- package/dist/collection/assets/icons/plus.svg +1 -1
- package/dist/collection/assets/icons/search.svg +1 -1
- package/dist/collection/assets/icons/spinner.svg +1 -1
- package/dist/collection/assets/icons/trash-2.svg +1 -1
- package/dist/collection/assets/icons/x.svg +1 -1
- package/dist/collection/collection-manifest.json +37 -21
- package/dist/collection/components/actions/action.props.js +130 -0
- package/dist/collection/components/{button → actions/button}/button.css +191 -174
- package/dist/collection/components/{button → actions/button}/button.js +243 -89
- package/dist/collection/components/actions/button/button.types.js +1 -0
- package/dist/collection/components/actions/button/button.utils.js +9 -0
- package/dist/collection/components/actions/button/button.utils.unit.test.js +44 -0
- package/dist/collection/components/actions/chip/chip.css +219 -0
- package/dist/collection/components/actions/chip/chip.js +381 -0
- package/dist/collection/components/actions/chip/chip.types.js +1 -0
- package/dist/collection/components/actions/link/link.css +102 -0
- package/dist/collection/components/actions/link/link.js +313 -0
- package/dist/collection/components/actions/link/link.types.js +1 -0
- package/dist/collection/components/data-display/alert/alert.css +118 -0
- package/dist/collection/components/data-display/alert/alert.js +208 -0
- package/dist/collection/components/data-display/alert/alert.types.js +1 -0
- package/dist/collection/components/data-display/conversation-bubble/conversation-bubble.css +154 -0
- package/dist/collection/components/data-display/conversation-bubble/conversation-bubble.js +207 -0
- package/dist/collection/components/data-display/conversation-bubble/conversation-bubble.types.js +1 -0
- package/dist/collection/components/data-display/data-table/data-table-cell.js +40 -0
- package/dist/collection/components/{data-table → data-display/data-table}/data-table.css +356 -219
- package/dist/collection/components/data-display/data-table/data-table.js +748 -0
- package/dist/collection/components/data-display/data-table/data-table.types.js +1 -0
- package/dist/collection/components/data-display/data-table/internals/data-access.js +43 -0
- package/dist/collection/components/data-display/data-table/internals/render-row-actions.js +22 -0
- package/dist/collection/components/data-display/data-table/internals/render-sort-indicator.js +5 -0
- package/dist/collection/components/data-display/data-table/internals/render-table-body.js +47 -0
- package/dist/collection/components/data-display/data-table/internals/render-table-head.js +42 -0
- package/dist/collection/components/data-display/data-table/internals/render-toolbar.js +6 -0
- package/dist/collection/components/data-display/data-table/internals/row-events.js +27 -0
- package/dist/collection/components/data-display/data-table/internals/selection.js +31 -0
- package/dist/collection/components/data-display/data-table/internals/sort.js +57 -0
- package/dist/collection/components/data-display/data-table/internals/table-model.js +84 -0
- package/dist/collection/components/data-display/map/internals/base-layer.js +140 -0
- package/dist/collection/components/data-display/map/internals/bounds.js +66 -0
- package/dist/collection/components/data-display/map/internals/buffered-tile-layer.js +128 -0
- package/dist/collection/components/data-display/map/internals/cluster-collision.js +73 -0
- package/dist/collection/components/data-display/map/internals/google-maps.js +117 -0
- package/dist/collection/components/data-display/map/internals/google-mutant.js +51 -0
- package/dist/collection/components/data-display/map/internals/maplibre.js +50 -0
- package/dist/collection/components/data-display/map/internals/marker-cluster-index.js +136 -0
- package/dist/collection/components/data-display/map/internals/marker-controller.js +403 -0
- package/dist/collection/components/data-display/map/internals/marker-presentation.js +217 -0
- package/dist/collection/components/data-display/map/internals/marker-visibility.js +158 -0
- package/dist/collection/components/data-display/map/internals/markers.js +176 -0
- package/dist/collection/components/data-display/map/internals/tile-layer-readiness.js +67 -0
- package/dist/collection/components/data-display/map/internals/tile-preload-buffer.js +8 -0
- package/dist/collection/components/data-display/map/internals/vector-padding.js +8 -0
- package/dist/collection/components/data-display/map/map.css +711 -0
- package/dist/collection/components/data-display/map/map.js +1514 -0
- package/dist/collection/components/data-display/map/map.types.js +12 -0
- package/dist/collection/components/data-display/map/test/map.cmp.test.js +748 -0
- package/dist/collection/components/data-display/pagination/pagination.css +81 -0
- package/dist/collection/components/data-display/pagination/pagination.js +240 -0
- package/dist/collection/components/data-display/pagination/test/pagination.cmp.test.js +57 -0
- package/dist/collection/components/data-display/syntax-box/internals/clipboard.js +9 -0
- package/dist/collection/components/data-display/syntax-box/internals/editor-key-action.js +14 -0
- package/dist/collection/components/data-display/syntax-box/internals/value-sync.js +27 -0
- package/dist/collection/components/{syntax-box → data-display/syntax-box}/syntax-box.css +202 -206
- package/dist/collection/components/data-display/syntax-box/syntax-box.js +623 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.types.js +1 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.utils.js +1 -0
- package/dist/collection/components/indicators/progress/progress.css +223 -0
- package/dist/collection/components/indicators/progress/progress.js +275 -0
- package/dist/collection/components/indicators/progress/progress.types.js +1 -0
- package/dist/collection/components/{step-diagram → indicators/step-diagram}/step-diagram.css +21 -21
- package/dist/collection/components/{step-diagram → indicators/step-diagram}/step-diagram.js +42 -12
- package/dist/collection/components/indicators/step-diagram/step-diagram.types.js +1 -0
- package/dist/collection/components/{step-diagram-item → indicators/step-diagram-item}/step-diagram-item.css +252 -253
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +153 -0
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.types.js +1 -0
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.utils.js +3 -0
- package/dist/collection/components/{dropdown → inputs/dropdown}/dropdown.css +344 -292
- package/dist/collection/components/inputs/dropdown/dropdown.js +986 -0
- package/dist/collection/components/inputs/dropdown/dropdown.types.js +1 -0
- package/dist/collection/components/inputs/dropdown/internals/options.js +30 -0
- package/dist/collection/components/inputs/dropdown/internals/position.js +35 -0
- package/dist/collection/components/inputs/dropdown/test/dropdown.cmp.test.js +62 -0
- package/dist/collection/components/{input → inputs/input}/input.css +264 -276
- package/dist/collection/components/{input → inputs/input}/input.js +242 -83
- package/dist/collection/components/inputs/input/input.types.js +1 -0
- package/dist/collection/components/inputs/input/input.utils.js +3 -0
- package/dist/collection/components/inputs/quantity-selector/internals/number-value.js +64 -0
- package/dist/collection/components/{quantity-selector → inputs/quantity-selector}/quantity-selector.css +131 -131
- package/dist/collection/components/{quantity-selector → inputs/quantity-selector}/quantity-selector.js +75 -109
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.types.js +1 -0
- package/dist/collection/components/inputs/radio-group/radio-group.css +177 -0
- package/dist/collection/components/inputs/radio-group/radio-group.js +558 -0
- package/dist/collection/components/inputs/radio-group/radio-group.types.js +1 -0
- package/dist/collection/components/inputs/radio-group/radio-group.utils.js +18 -0
- package/dist/collection/components/{textarea → inputs/textarea}/textarea.css +88 -83
- package/dist/collection/components/{textarea → inputs/textarea}/textarea.js +162 -18
- package/dist/collection/components/inputs/textarea/textarea.types.js +1 -0
- package/dist/collection/components/{toggle → inputs/toggle}/toggle.css +220 -212
- package/dist/collection/components/{toggle → inputs/toggle}/toggle.js +158 -51
- package/dist/collection/components/inputs/toggle/toggle.types.js +1 -0
- package/dist/collection/components/inputs/toggle/toggle.utils.js +3 -0
- package/dist/collection/components/{card → layout/card}/card.css +93 -96
- package/dist/collection/components/{card → layout/card}/card.js +40 -19
- package/dist/collection/components/layout/card/card.types.js +1 -0
- package/dist/collection/components/layout/card/card.utils.js +15 -0
- package/dist/collection/components/{carousel → layout/carousel}/carousel.css +168 -177
- package/dist/collection/components/{carousel → layout/carousel}/carousel.js +103 -105
- package/dist/collection/components/layout/carousel/carousel.types.js +1 -0
- package/dist/collection/components/layout/carousel/carousel.utils.js +1 -0
- package/dist/collection/components/layout/carousel/internals/metrics.js +59 -0
- package/dist/collection/components/layout/form/form.css +49 -0
- package/dist/collection/components/layout/form/form.js +613 -0
- package/dist/collection/components/layout/form/form.types.js +1 -0
- package/dist/collection/components/layout/form/internals/controls.js +79 -0
- package/dist/collection/components/layout/form/internals/enter-behavior.js +36 -0
- package/dist/collection/components/layout/form/internals/values.js +176 -0
- package/dist/collection/components/layout/form/test/form.cmp.test.js +157 -0
- package/dist/collection/components/layout/navbar/navbar.css +465 -0
- package/dist/collection/components/layout/navbar/navbar.js +547 -0
- package/dist/collection/components/layout/navbar/navbar.types.js +1 -0
- package/dist/collection/components/layout/navbar/navbar.utils.js +13 -0
- package/dist/collection/components/layout/navbar/test/navbar.cmp.test.js +53 -0
- package/dist/collection/components/layout/panel/panel.css +113 -0
- package/dist/collection/components/layout/panel/panel.js +265 -0
- package/dist/collection/components/layout/panel/panel.types.js +1 -0
- package/dist/collection/components/layout/scrollable/internals/metrics.js +61 -0
- package/dist/collection/components/layout/scrollable/internals/native-scrollbar.js +41 -0
- package/dist/collection/components/{scrollable → layout/scrollable}/scrollable.css +123 -122
- package/dist/collection/components/{scrollable → layout/scrollable}/scrollable.js +165 -136
- package/dist/collection/components/layout/scrollable/scrollable.types.js +1 -0
- package/dist/collection/components/layout/sidepanel/internals/drawer.js +60 -0
- package/dist/collection/components/layout/sidepanel/internals/groups.js +56 -0
- package/dist/collection/components/layout/sidepanel/internals/nav-items.js +27 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.css +881 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.js +831 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.types.js +1 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.utils.js +17 -0
- package/dist/collection/components/layout/tabs/tabs.css +248 -0
- package/dist/collection/components/layout/tabs/tabs.js +322 -0
- package/dist/collection/components/layout/tabs/tabs.types.js +1 -0
- package/dist/collection/components/layout/tabs/tabs.utils.js +31 -0
- package/dist/collection/components/layout/tabs/test/tabs.cmp.test.js +165 -0
- package/dist/collection/components/layout/toolbar/toolbar.css +145 -0
- package/dist/collection/components/layout/toolbar/toolbar.js +173 -0
- package/dist/collection/components/layout/toolbar/toolbar.types.js +1 -0
- package/dist/collection/components/media/avatar/avatar.css +71 -0
- package/dist/collection/components/media/avatar/avatar.js +302 -0
- package/dist/collection/components/media/avatar/avatar.types.js +1 -0
- package/dist/collection/components/{icon → media/icon}/icon.css +42 -39
- package/dist/collection/components/media/icon/icon.js +449 -0
- package/dist/collection/components/media/icon/icon.types.js +1 -0
- package/dist/collection/components/media/icon/internals/constants.js +3 -0
- package/dist/collection/components/media/icon/internals/fetch-icon.js +18 -0
- package/dist/collection/components/media/icon/internals/registry.js +171 -0
- package/dist/collection/components/media/icon/internals/registry.unit.test.js +42 -0
- package/dist/collection/components/media/icon/internals/render-definition.js +24 -0
- package/dist/collection/components/media/icon/internals/sanitize-svg.js +63 -0
- package/dist/collection/components/media/icon/internals/size.js +12 -0
- package/dist/collection/components/media/icon/internals/url.js +48 -0
- package/dist/collection/components/{reel → media/reel}/reel.css +193 -185
- package/dist/collection/components/{reel → media/reel}/reel.js +99 -34
- package/dist/collection/components/media/reel/reel.types.js +1 -0
- package/dist/collection/components/{thumbnail → media/thumbnail}/thumbnail.css +111 -109
- package/dist/collection/components/{thumbnail → media/thumbnail}/thumbnail.js +32 -19
- package/dist/collection/components/media/thumbnail/thumbnail.types.js +1 -0
- package/dist/collection/components/{dialog → overlays/dialog}/dialog.css +248 -240
- package/dist/collection/components/{dialog → overlays/dialog}/dialog.js +190 -58
- package/dist/collection/components/overlays/dialog/dialog.types.js +1 -0
- package/dist/collection/components/overlays/dialog/internals/backdrop.js +9 -0
- package/dist/collection/components/overlays/dialog/internals/lifecycle.js +53 -0
- package/dist/collection/components/overlays/toast/internals/icons.js +25 -0
- package/dist/collection/components/overlays/toast/internals/queue.js +64 -0
- package/dist/collection/components/overlays/toast/internals/timers.js +75 -0
- package/dist/collection/components/overlays/toast/test/toast.cmp.test.js +38 -0
- package/dist/collection/components/overlays/toast/test/toast.unit.test.js +104 -0
- package/dist/collection/components/overlays/toast/toast-controller.js +105 -0
- package/dist/collection/components/overlays/toast/toast.css +141 -0
- package/dist/collection/components/overlays/toast/toast.js +556 -0
- package/dist/collection/components/overlays/toast/toast.types.js +1 -0
- package/dist/collection/components/overlays/tooltip/internals/aria.js +27 -0
- package/dist/collection/components/overlays/tooltip/internals/positioning.js +69 -0
- package/dist/collection/components/overlays/tooltip/internals/scroll-listeners.js +18 -0
- package/dist/collection/components/{tooltip → overlays/tooltip}/tooltip.css +65 -65
- package/dist/collection/components/overlays/tooltip/tooltip.js +190 -0
- package/dist/collection/components/overlays/tooltip/tooltip.types.js +1 -0
- package/dist/collection/index.js +5 -0
- package/dist/collection/playground/components/playground-event-log/playground-event-log.js +3 -3
- package/dist/collection/playground/components/playground-sidebar/playground-sidebar.js +42 -6
- package/dist/collection/playground/components/properties-panel/properties-panel.js +1 -1
- package/dist/collection/playground/components/sandbox-viewport/sandbox-panel.js +7 -3
- package/dist/collection/playground/components/sandbox-viewport/sandbox-viewport.js +4 -0
- package/dist/collection/playground/components/theme-designer/theme-designer.js +6 -4
- package/dist/collection/playground/logo.svg +8 -8
- package/dist/collection/playground/playground.bundled.js +949 -887
- package/dist/collection/utils/collection-identity.js +136 -0
- package/dist/collection/utils/collection-identity.unit.test.js +107 -0
- package/dist/collection/utils/dom.js +14 -6
- package/dist/collection/utils/form-control-validity.js +44 -0
- package/dist/collection/utils/formatter.unit.test.js +24 -24
- package/dist/components/index.js +1 -1
- package/dist/components/p-2bWqVyTo.js +1 -0
- package/dist/components/p-B6NJEaqd.js +1 -0
- package/dist/components/p-B6g9Pj3f.js +1 -0
- package/dist/components/p-BEBDDqVT.js +1 -0
- package/dist/components/p-BIIQL66b.js +1 -0
- package/dist/components/p-BJiYCN3i.js +1 -0
- package/dist/components/p-BeeM-7Ku.js +5 -0
- package/dist/components/p-Bj2RJb2E.js +1 -0
- package/dist/components/p-BnmIFx4N.js +1 -0
- package/dist/components/p-BvBRW3dl.js +1 -0
- package/dist/components/p-ByfrUWx1.js +1 -0
- package/dist/components/p-C7yQ3tON.js +1 -0
- package/dist/components/p-CDktnDug.js +13 -0
- package/dist/components/p-CGZPmEUB.js +1 -0
- package/dist/components/p-DAl7U6Ms.js +1 -0
- package/dist/components/p-DH-PVHhr.js +1 -0
- package/dist/components/p-DQhiqYeq.js +1 -0
- package/dist/components/p-DcsB8P_Y.js +1 -0
- package/dist/components/p-DmqVhVoj.js +1 -0
- package/dist/components/p-Dnud2v8F.js +1 -0
- package/dist/components/p-QHgICI4w.js +1 -0
- package/dist/components/p-WJHaLJS_.js +1 -0
- package/dist/components/{q-circular-progress.d.ts → q-alert.d.ts} +4 -4
- package/dist/components/q-alert.js +1 -0
- package/dist/components/q-avatar.d.ts +11 -0
- package/dist/components/q-avatar.js +1 -0
- package/dist/components/q-button.js +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-chip.d.ts +11 -0
- package/dist/components/q-chip.js +1 -0
- package/dist/components/q-conversation-bubble.d.ts +11 -0
- package/dist/components/q-conversation-bubble.js +1 -0
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-form.d.ts +11 -0
- package/dist/components/q-form.js +1 -0
- package/dist/components/q-icon.js +1 -1
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-link.d.ts +11 -0
- package/dist/components/q-link.js +1 -0
- package/dist/components/q-map.d.ts +11 -0
- package/dist/components/q-map.js +1 -0
- package/dist/components/q-navbar.d.ts +11 -0
- package/dist/components/q-navbar.js +1 -0
- package/dist/components/q-pagination.d.ts +11 -0
- package/dist/components/q-pagination.js +1 -0
- package/dist/components/q-panel.d.ts +11 -0
- package/dist/components/q-panel.js +1 -0
- package/dist/components/q-progress.d.ts +11 -0
- package/dist/components/q-progress.js +1 -0
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-radio-group.d.ts +11 -0
- package/dist/components/q-radio-group.js +1 -0
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-sidepanel.js +13 -1
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +13 -1
- package/dist/components/q-tabs.d.ts +11 -0
- package/dist/components/q-tabs.js +1 -0
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toast.d.ts +11 -0
- package/dist/components/q-toast.js +1 -0
- package/dist/components/q-toggle.js +1 -1
- package/dist/components/q-toolbar.d.ts +11 -0
- package/dist/components/q-toolbar.js +1 -0
- package/dist/components/q-tooltip.js +1 -1
- package/dist/esm/Leaflet.GoogleMutant-BlvymWLE.js +767 -0
- package/dist/esm/action.props-BJWXy1Ec.js +32 -0
- package/dist/esm/chevron-up-CDktnDug.js +27 -0
- package/dist/esm/collection-identity-CGZPmEUB.js +138 -0
- package/dist/esm/data-table-cell-DmqVhVoj.js +42 -0
- package/dist/esm/{dom-DoQvrOHk.js → dom-ByfrUWx1.js} +15 -7
- package/dist/esm/form-control-validity-Bj2RJb2E.js +46 -0
- package/dist/esm/{index-CYoQ4Zv3.js → index-DweBlExe.js} +58 -4
- package/dist/esm/index.js +6 -1
- package/dist/esm/leaflet-maplibre-gl-Cgb-1z8Q.js +432 -0
- package/dist/esm/leaflet-src-BR13bdVA.js +30 -0
- package/dist/esm/leaflet-src-BeeM-7Ku.js +14520 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/map.types-WJHaLJS_.js +14 -0
- package/dist/esm/q-alert.entry.js +50 -0
- package/dist/esm/q-avatar.entry.js +99 -0
- package/dist/esm/q-button_2.entry.js +372 -0
- package/dist/esm/q-card.entry.js +31 -9
- package/dist/esm/q-carousel.entry.js +121 -78
- package/dist/esm/q-chip.entry.js +122 -0
- package/dist/esm/q-conversation-bubble.entry.js +68 -0
- package/dist/esm/q-data-table.entry.js +470 -118
- package/dist/esm/q-dialog.entry.js +136 -22
- package/dist/esm/q-dropdown.entry.js +318 -64
- package/dist/esm/q-form.entry.js +507 -0
- package/dist/esm/q-icon.entry.js +290 -99
- package/dist/esm/q-input_2.entry.js +360 -0
- package/dist/esm/q-link.entry.js +78 -0
- package/dist/esm/q-map.entry.js +3326 -0
- package/dist/esm/q-navbar.entry.js +192 -0
- package/dist/esm/q-pagination.entry.js +66 -0
- package/dist/esm/q-panel.entry.js +65 -0
- package/dist/esm/q-quantity-selector.entry.js +112 -93
- package/dist/esm/q-radio-group.entry.js +215 -0
- package/dist/esm/q-reel.entry.js +86 -33
- package/dist/esm/q-scrollable.entry.js +447 -0
- package/dist/esm/q-sidepanel.entry.js +562 -114
- package/dist/esm/q-step-diagram-item.entry.js +11 -17
- package/dist/esm/q-step-diagram.entry.js +9 -10
- package/dist/esm/q-syntax-box.entry.js +381 -173
- package/dist/esm/q-tabs.entry.js +153 -0
- package/dist/esm/q-textarea.entry.js +69 -9
- package/dist/esm/q-thumbnail.entry.js +18 -11
- package/dist/esm/q-toast.entry.js +398 -0
- package/dist/esm/q-toggle.entry.js +57 -26
- package/dist/esm/q-toolbar.entry.js +27 -0
- package/dist/esm/registry-BvBRW3dl.js +173 -0
- package/dist/esm/toast-controller-BIIQL66b.js +107 -0
- package/dist/esm/webquark.js +3 -3
- package/dist/playground/assets/icons/braces.svg +14 -14
- package/dist/playground/assets/icons/check.svg +1 -1
- package/dist/playground/assets/icons/chevron-down.svg +1 -1
- package/dist/playground/assets/icons/chevron-left.svg +1 -1
- package/dist/playground/assets/icons/chevron-right.svg +1 -1
- package/dist/playground/assets/icons/chevron-up.svg +1 -1
- package/dist/playground/assets/icons/copy.svg +4 -4
- package/dist/playground/assets/icons/eye-off.svg +1 -1
- package/dist/playground/assets/icons/eye.svg +1 -1
- package/dist/playground/assets/icons/minus.svg +1 -1
- package/dist/playground/assets/icons/play.svg +1 -1
- package/dist/playground/assets/icons/plus.svg +1 -1
- package/dist/playground/assets/icons/search.svg +1 -1
- package/dist/playground/assets/icons/spinner.svg +1 -1
- package/dist/playground/assets/icons/trash-2.svg +1 -1
- package/dist/playground/assets/icons/x.svg +1 -1
- package/dist/playground/build/index.esm.js +1 -1
- package/dist/playground/build/p-06813183.entry.js +1 -0
- package/dist/playground/build/p-09d43469.entry.js +1 -0
- package/dist/playground/build/p-256d199a.entry.js +1 -0
- package/dist/playground/build/p-2bWqVyTo.js +1 -0
- package/dist/playground/build/p-2f0bbb67.entry.js +1 -0
- package/dist/playground/build/p-31d62bd0.entry.js +1 -0
- package/dist/playground/build/p-35c9fa4d.entry.js +1 -0
- package/dist/playground/build/p-3e4d2d19.entry.js +1 -0
- package/dist/playground/build/p-4b38c28f.entry.js +1 -0
- package/dist/playground/build/p-4f8ee3f7.entry.js +1 -0
- package/dist/playground/build/p-53a5c493.entry.js +1 -0
- package/dist/playground/build/p-721d2479.entry.js +1 -0
- package/dist/playground/build/p-7be7478a.entry.js +1 -0
- package/dist/playground/build/p-7c4e6512.entry.js +1 -0
- package/dist/playground/build/p-7c9d705e.entry.js +1 -0
- package/dist/playground/build/p-8ff218f7.entry.js +1 -0
- package/dist/playground/build/p-94eba9a9.entry.js +1 -0
- package/dist/playground/build/p-BEBDDqVT.js +1 -0
- package/dist/playground/build/p-BIIQL66b.js +1 -0
- package/dist/playground/build/p-BeeM-7Ku.js +5 -0
- package/dist/playground/build/p-Bj2RJb2E.js +1 -0
- package/dist/playground/build/p-BvBRW3dl.js +1 -0
- package/dist/playground/build/p-ByfrUWx1.js +1 -0
- package/dist/playground/build/p-CDktnDug.js +13 -0
- package/dist/playground/build/p-CGZPmEUB.js +1 -0
- package/dist/playground/build/p-DNFGt02p.js +1 -0
- package/dist/playground/build/p-DmqVhVoj.js +1 -0
- package/dist/playground/build/p-DweBlExe.js +2 -0
- package/dist/playground/build/p-Dxs6LLBG.js +1 -0
- package/dist/playground/build/p-WJHaLJS_.js +1 -0
- package/dist/playground/build/p-a0861b0e.entry.js +1 -0
- package/dist/playground/build/p-a2a3135f.entry.js +1 -0
- package/dist/playground/build/p-a7b90eef.entry.js +13 -0
- package/dist/playground/build/p-bc0a0428.entry.js +1 -0
- package/dist/playground/build/p-bc7d7cbf.entry.js +13 -0
- package/dist/playground/build/p-c4016e61.entry.js +1 -0
- package/dist/playground/build/p-c64be717.entry.js +1 -0
- package/dist/playground/build/p-d142bb86.entry.js +1 -0
- package/dist/playground/build/p-d22a876a.entry.js +1 -0
- package/dist/playground/build/p-d691a1aa.entry.js +1 -0
- package/dist/playground/build/p-dabaddcb.entry.js +1 -0
- package/dist/playground/build/p-dac913f9.entry.js +1 -0
- package/dist/playground/build/p-de7364cd.entry.js +1 -0
- package/dist/playground/build/p-e298fb31.entry.js +1 -0
- package/dist/playground/build/p-e354a398.entry.js +1 -0
- package/dist/playground/build/p-f1ab576a.entry.js +1 -0
- package/dist/playground/build/webquark.css +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/css/base.css +122 -145
- package/dist/playground/index.html +29 -29
- package/dist/playground/logo.svg +8 -8
- package/dist/playground/playground/components.manifest.json +37 -20
- package/dist/playground/playground/specs/q-avatar.sandbox.json +24 -0
- package/dist/playground/playground/specs/q-button.sandbox.json +209 -198
- package/dist/playground/playground/specs/q-card.sandbox.json +144 -144
- package/dist/playground/playground/specs/q-carousel.sandbox.json +120 -120
- package/dist/playground/playground/specs/q-chip.sandbox.json +105 -0
- package/dist/playground/playground/specs/q-conversation-bubble.sandbox.json +26 -0
- package/dist/playground/playground/specs/q-data-table.sandbox.json +161 -108
- package/dist/playground/playground/specs/q-dialog.sandbox.json +108 -108
- package/dist/playground/playground/specs/q-dropdown.sandbox.json +121 -116
- package/dist/playground/playground/specs/q-form.sandbox.json +20 -0
- package/dist/playground/playground/specs/q-icon.sandbox.json +138 -138
- package/dist/playground/playground/specs/q-input.sandbox.json +192 -192
- package/dist/playground/playground/specs/q-link.sandbox.json +27 -0
- package/dist/playground/playground/specs/q-map.sandbox.json +203 -0
- package/dist/playground/playground/specs/q-navbar.sandbox.json +32 -0
- package/dist/playground/playground/specs/q-panel.sandbox.json +28 -0
- package/dist/playground/playground/specs/q-progress.sandbox.json +117 -0
- package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +99 -99
- package/dist/playground/playground/specs/q-radio-group.sandbox.json +58 -0
- package/dist/playground/playground/specs/q-reel.sandbox.json +70 -70
- package/dist/playground/playground/specs/q-scrollable.sandbox.json +102 -102
- package/dist/playground/playground/specs/q-sidepanel.sandbox.json +152 -147
- package/dist/playground/playground/specs/q-step-diagram.sandbox.json +56 -56
- package/dist/playground/playground/specs/q-syntax-box.sandbox.json +160 -160
- package/dist/playground/playground/specs/q-textarea.sandbox.json +133 -133
- package/dist/playground/playground/specs/q-toast.sandbox.json +32 -0
- package/dist/playground/playground/specs/q-toggle.sandbox.json +196 -196
- package/dist/playground/playground/specs/q-toolbar.sandbox.json +26 -0
- package/dist/playground/playground/specs/q-tooltip.sandbox.json +65 -65
- package/dist/playground/playground.js +949 -887
- package/dist/types/components/actions/action.props.d.ts +19 -0
- package/dist/types/components/actions/button/button.d.ts +61 -0
- package/dist/types/components/actions/button/button.types.d.ts +5 -0
- package/dist/types/components/actions/button/button.utils.d.ts +8 -0
- package/dist/types/components/actions/button/button.utils.unit.test.d.ts +1 -0
- package/dist/types/components/actions/chip/chip.d.ts +55 -0
- package/dist/types/components/actions/chip/chip.types.d.ts +13 -0
- package/dist/types/components/actions/link/link.d.ts +43 -0
- package/dist/types/components/actions/link/link.types.d.ts +3 -0
- package/dist/types/components/data-display/alert/alert.d.ts +32 -0
- package/dist/types/components/data-display/alert/alert.types.d.ts +2 -0
- package/dist/types/components/data-display/conversation-bubble/conversation-bubble.d.ts +38 -0
- package/dist/types/components/data-display/conversation-bubble/conversation-bubble.types.d.ts +1 -0
- package/dist/types/components/data-display/data-table/data-table-cell.d.ts +5 -0
- package/dist/types/components/data-display/data-table/data-table.d.ts +78 -0
- package/dist/types/components/data-display/data-table/data-table.types.d.ts +53 -0
- package/dist/types/components/data-display/data-table/internals/data-access.d.ts +9 -0
- package/dist/types/components/data-display/data-table/internals/render-row-actions.d.ts +9 -0
- package/dist/types/components/data-display/data-table/internals/render-sort-indicator.d.ts +5 -0
- package/dist/types/components/data-display/data-table/internals/render-table-body.d.ts +12 -0
- package/dist/types/components/data-display/data-table/internals/render-table-head.d.ts +8 -0
- package/dist/types/components/data-display/data-table/internals/render-toolbar.d.ts +9 -0
- package/dist/types/components/data-display/data-table/internals/row-events.d.ts +1 -0
- package/dist/types/components/data-display/data-table/internals/selection.d.ts +10 -0
- package/dist/types/components/data-display/data-table/internals/sort.d.ts +3 -0
- package/dist/types/components/data-display/data-table/internals/table-model.d.ts +52 -0
- package/dist/types/components/data-display/map/internals/base-layer.d.ts +63 -0
- package/dist/types/components/data-display/map/internals/bounds.d.ts +23 -0
- package/dist/types/components/data-display/map/internals/buffered-tile-layer.d.ts +10 -0
- package/dist/types/components/data-display/map/internals/cluster-collision.d.ts +15 -0
- package/dist/types/components/data-display/map/internals/google-maps.d.ts +9 -0
- package/dist/types/components/data-display/map/internals/google-mutant-module.d.ts +11 -0
- package/dist/types/components/data-display/map/internals/google-mutant.d.ts +18 -0
- package/dist/types/components/data-display/map/internals/maplibre.d.ts +14 -0
- package/dist/types/components/data-display/map/internals/marker-cluster-index.d.ts +36 -0
- package/dist/types/components/data-display/map/internals/marker-controller.d.ts +55 -0
- package/dist/types/components/data-display/map/internals/marker-presentation.d.ts +8 -0
- package/dist/types/components/data-display/map/internals/marker-visibility.d.ts +10 -0
- package/dist/types/components/data-display/map/internals/markers.d.ts +4 -0
- package/dist/types/components/data-display/map/internals/tile-layer-readiness.d.ts +11 -0
- package/dist/types/components/data-display/map/internals/tile-preload-buffer.d.ts +4 -0
- package/dist/types/components/data-display/map/internals/vector-padding.d.ts +4 -0
- package/dist/types/components/data-display/map/map.d.ts +171 -0
- package/dist/types/components/data-display/map/map.types.d.ts +122 -0
- package/dist/types/components/data-display/map/test/map.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/pagination/pagination.d.ts +33 -0
- package/dist/types/components/data-display/pagination/test/pagination.cmp.test.d.ts +2 -0
- package/dist/types/components/data-display/syntax-box/internals/clipboard.d.ts +2 -0
- package/dist/types/components/data-display/syntax-box/internals/editor-key-action.d.ts +12 -0
- package/dist/types/components/data-display/syntax-box/internals/value-sync.d.ts +18 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +66 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.types.d.ts +2 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.utils.d.ts +1 -0
- package/dist/types/components/indicators/progress/progress.d.ts +30 -0
- package/dist/types/components/indicators/progress/progress.types.d.ts +3 -0
- package/dist/types/components/indicators/step-diagram/step-diagram.d.ts +16 -0
- package/dist/types/components/indicators/step-diagram/step-diagram.types.d.ts +1 -0
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.d.ts +24 -0
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.types.d.ts +3 -0
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.utils.d.ts +1 -0
- package/dist/types/components/inputs/dropdown/dropdown.d.ts +90 -0
- package/dist/types/components/inputs/dropdown/dropdown.types.d.ts +8 -0
- package/dist/types/components/inputs/dropdown/internals/options.d.ts +6 -0
- package/dist/types/components/inputs/dropdown/internals/position.d.ts +26 -0
- package/dist/types/components/inputs/dropdown/test/dropdown.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/input/input.d.ts +77 -0
- package/dist/types/components/inputs/input/input.types.d.ts +2 -0
- package/dist/types/components/inputs/input/input.utils.d.ts +1 -0
- package/dist/types/components/inputs/quantity-selector/internals/number-value.d.ts +13 -0
- package/dist/types/components/{quantity-selector → inputs/quantity-selector}/quantity-selector.d.ts +10 -9
- package/dist/types/components/inputs/quantity-selector/quantity-selector.types.d.ts +1 -0
- package/dist/types/components/inputs/radio-group/radio-group.d.ts +60 -0
- package/dist/types/components/inputs/radio-group/radio-group.types.d.ts +11 -0
- package/dist/types/components/inputs/radio-group/radio-group.utils.d.ts +2 -0
- package/dist/types/components/inputs/textarea/textarea.d.ts +59 -0
- package/dist/types/components/inputs/textarea/textarea.types.d.ts +1 -0
- package/dist/types/components/inputs/toggle/toggle.d.ts +56 -0
- package/dist/types/components/inputs/toggle/toggle.types.d.ts +2 -0
- package/dist/types/components/inputs/toggle/toggle.utils.d.ts +1 -0
- package/dist/types/components/layout/card/card.d.ts +24 -0
- package/dist/types/components/layout/card/card.types.d.ts +1 -0
- package/dist/types/components/layout/card/card.utils.d.ts +5 -0
- package/dist/types/components/{carousel → layout/carousel}/carousel.d.ts +19 -7
- package/dist/types/components/layout/carousel/carousel.types.d.ts +5 -0
- package/dist/types/components/layout/carousel/carousel.utils.d.ts +1 -0
- package/dist/types/components/layout/carousel/internals/metrics.d.ts +23 -0
- package/dist/types/components/layout/form/form.d.ts +69 -0
- package/dist/types/components/layout/form/form.types.d.ts +38 -0
- package/dist/types/components/layout/form/internals/controls.d.ts +5 -0
- package/dist/types/components/layout/form/internals/enter-behavior.d.ts +2 -0
- package/dist/types/components/layout/form/internals/values.d.ts +5 -0
- package/dist/types/components/layout/form/test/form.cmp.test.d.ts +4 -0
- package/dist/types/components/layout/navbar/navbar.d.ts +66 -0
- package/dist/types/components/layout/navbar/navbar.types.d.ts +31 -0
- package/dist/types/components/layout/navbar/navbar.utils.d.ts +2 -0
- package/dist/types/components/layout/navbar/test/navbar.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/panel/panel.d.ts +33 -0
- package/dist/types/components/layout/panel/panel.types.d.ts +2 -0
- package/dist/types/components/layout/scrollable/internals/metrics.d.ts +26 -0
- package/dist/types/components/layout/scrollable/internals/native-scrollbar.d.ts +4 -0
- package/dist/types/components/layout/scrollable/scrollable.d.ts +67 -0
- package/dist/types/components/layout/scrollable/scrollable.types.d.ts +6 -0
- package/dist/types/components/layout/sidepanel/internals/drawer.d.ts +2 -0
- package/dist/types/components/layout/sidepanel/internals/groups.d.ts +7 -0
- package/dist/types/components/layout/sidepanel/internals/nav-items.d.ts +2 -0
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +93 -0
- package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +39 -0
- package/dist/types/components/layout/sidepanel/sidepanel.utils.d.ts +2 -0
- package/dist/types/components/layout/tabs/tabs.d.ts +29 -0
- package/dist/types/components/layout/tabs/tabs.types.d.ts +14 -0
- package/dist/types/components/layout/tabs/tabs.utils.d.ts +4 -0
- package/dist/types/components/layout/tabs/test/tabs.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/toolbar/toolbar.d.ts +23 -0
- package/dist/types/components/layout/toolbar/toolbar.types.d.ts +1 -0
- package/dist/types/components/media/avatar/avatar.d.ts +37 -0
- package/dist/types/components/media/avatar/avatar.types.d.ts +2 -0
- package/dist/types/components/media/icon/icon.d.ts +44 -0
- package/dist/types/components/media/icon/icon.types.d.ts +30 -0
- package/dist/types/components/media/icon/internals/constants.d.ts +3 -0
- package/dist/types/components/media/icon/internals/fetch-icon.d.ts +1 -0
- package/dist/types/components/media/icon/internals/registry.d.ts +11 -0
- package/dist/types/components/media/icon/internals/registry.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/render-definition.d.ts +2 -0
- package/dist/types/components/media/icon/internals/sanitize-svg.d.ts +2 -0
- package/dist/types/components/media/icon/internals/size.d.ts +2 -0
- package/dist/types/components/media/icon/internals/url.d.ts +11 -0
- package/dist/types/components/media/reel/reel.d.ts +34 -0
- package/dist/types/components/media/reel/reel.types.d.ts +3 -0
- package/dist/types/components/media/thumbnail/thumbnail.d.ts +21 -0
- package/dist/types/components/media/thumbnail/thumbnail.types.d.ts +7 -0
- package/dist/types/components/overlays/dialog/dialog.d.ts +71 -0
- package/dist/types/components/overlays/dialog/dialog.types.d.ts +1 -0
- package/dist/types/components/overlays/dialog/internals/backdrop.d.ts +2 -0
- package/dist/types/components/overlays/dialog/internals/lifecycle.d.ts +21 -0
- package/dist/types/components/overlays/toast/internals/icons.d.ts +2 -0
- package/dist/types/components/overlays/toast/internals/queue.d.ts +19 -0
- package/dist/types/components/overlays/toast/internals/timers.d.ts +12 -0
- package/dist/types/components/overlays/toast/test/toast.cmp.test.d.ts +2 -0
- package/dist/types/components/overlays/toast/test/toast.unit.test.d.ts +1 -0
- package/dist/types/components/overlays/toast/toast-controller.d.ts +9 -0
- package/dist/types/components/overlays/toast/toast.d.ts +44 -0
- package/dist/types/components/overlays/toast/toast.types.d.ts +30 -0
- package/dist/types/components/overlays/tooltip/internals/aria.d.ts +13 -0
- package/dist/types/components/overlays/tooltip/internals/positioning.d.ts +7 -0
- package/dist/types/components/overlays/tooltip/internals/scroll-listeners.d.ts +2 -0
- package/dist/types/components/overlays/tooltip/tooltip.d.ts +28 -0
- package/dist/types/components/overlays/tooltip/tooltip.types.d.ts +1 -0
- package/dist/types/components.d.ts +3607 -568
- package/dist/types/declarations.d.ts +14 -9
- package/dist/types/index.d.ts +12 -0
- package/dist/types/playground/components/playground-sidebar/playground-sidebar.d.ts +2 -0
- package/dist/types/utils/collection-identity.d.ts +55 -0
- package/dist/types/utils/collection-identity.unit.test.d.ts +1 -0
- package/dist/types/utils/dom.d.ts +1 -1
- package/dist/types/utils/form-control-validity.d.ts +14 -0
- package/dist/webquark/index.esm.js +1 -1
- package/dist/webquark/p-06813183.entry.js +1 -0
- package/dist/webquark/p-09d43469.entry.js +1 -0
- package/dist/webquark/p-256d199a.entry.js +1 -0
- package/dist/webquark/p-2bWqVyTo.js +1 -0
- package/dist/webquark/p-2f0bbb67.entry.js +1 -0
- package/dist/webquark/p-31d62bd0.entry.js +1 -0
- package/dist/webquark/p-35c9fa4d.entry.js +1 -0
- package/dist/webquark/p-3e4d2d19.entry.js +1 -0
- package/dist/webquark/p-4b38c28f.entry.js +1 -0
- package/dist/webquark/p-4f8ee3f7.entry.js +1 -0
- package/dist/webquark/p-53a5c493.entry.js +1 -0
- package/dist/webquark/p-721d2479.entry.js +1 -0
- package/dist/webquark/p-7be7478a.entry.js +1 -0
- package/dist/webquark/p-7c4e6512.entry.js +1 -0
- package/dist/webquark/p-7c9d705e.entry.js +1 -0
- package/dist/webquark/p-8ff218f7.entry.js +1 -0
- package/dist/webquark/p-94eba9a9.entry.js +1 -0
- package/dist/webquark/p-BEBDDqVT.js +1 -0
- package/dist/webquark/p-BIIQL66b.js +1 -0
- package/dist/webquark/p-BeeM-7Ku.js +5 -0
- package/dist/webquark/p-Bj2RJb2E.js +1 -0
- package/dist/webquark/p-BvBRW3dl.js +1 -0
- package/dist/webquark/p-ByfrUWx1.js +1 -0
- package/dist/webquark/p-CDktnDug.js +13 -0
- package/dist/webquark/p-CGZPmEUB.js +1 -0
- package/dist/webquark/p-DNFGt02p.js +1 -0
- package/dist/webquark/p-DmqVhVoj.js +1 -0
- package/dist/webquark/p-DweBlExe.js +2 -0
- package/dist/webquark/p-Dxs6LLBG.js +1 -0
- package/dist/webquark/p-WJHaLJS_.js +1 -0
- package/dist/webquark/p-a0861b0e.entry.js +1 -0
- package/dist/webquark/p-a2a3135f.entry.js +1 -0
- package/dist/webquark/p-a7b90eef.entry.js +13 -0
- package/dist/webquark/p-bc0a0428.entry.js +1 -0
- package/dist/webquark/p-bc7d7cbf.entry.js +13 -0
- package/dist/webquark/p-c4016e61.entry.js +1 -0
- package/dist/webquark/p-c64be717.entry.js +1 -0
- package/dist/webquark/p-d142bb86.entry.js +1 -0
- package/dist/webquark/p-d22a876a.entry.js +1 -0
- package/dist/webquark/p-d691a1aa.entry.js +1 -0
- package/dist/webquark/p-dabaddcb.entry.js +1 -0
- package/dist/webquark/p-dac913f9.entry.js +1 -0
- package/dist/webquark/p-de7364cd.entry.js +1 -0
- package/dist/webquark/p-e298fb31.entry.js +1 -0
- package/dist/webquark/p-e354a398.entry.js +1 -0
- package/dist/webquark/p-f1ab576a.entry.js +1 -0
- package/dist/webquark/webquark.css +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +113 -84
- package/scripts/webquark-serve.js +0 -0
- package/dist/cjs/q-button_3.cjs.entry.js +0 -603
- package/dist/cjs/q-circular-progress_2.cjs.entry.js +0 -255
- package/dist/collection/components/circular-progress/circular-progress.css +0 -85
- package/dist/collection/components/circular-progress/circular-progress.js +0 -122
- package/dist/collection/components/data-table/data-table.js +0 -481
- package/dist/collection/components/dropdown/dropdown.js +0 -606
- package/dist/collection/components/icon/icon.js +0 -297
- package/dist/collection/components/sidepanel/sidepanel.css +0 -371
- package/dist/collection/components/sidepanel/sidepanel.js +0 -460
- package/dist/collection/components/step-diagram-item/step-diagram-item.js +0 -131
- package/dist/collection/components/syntax-box/syntax-box.js +0 -534
- package/dist/collection/components/tooltip/tooltip.js +0 -249
- package/dist/components/p-91lJS0-v.js +0 -1
- package/dist/components/p-B4IF9WVv.js +0 -1
- package/dist/components/p-BCSpNDGG.js +0 -1
- package/dist/components/p-DScvq41R.js +0 -1
- package/dist/components/p-DfTW9B7V.js +0 -1
- package/dist/components/p-DgaKWrjd.js +0 -1
- package/dist/components/p-Do2ppeKL.js +0 -1
- package/dist/components/p-DoQvrOHk.js +0 -1
- package/dist/components/q-circular-progress.js +0 -1
- package/dist/esm/q-button_3.entry.js +0 -599
- package/dist/esm/q-circular-progress_2.entry.js +0 -252
- package/dist/playground/build/p-095635d3.entry.js +0 -1
- package/dist/playground/build/p-1187e439.entry.js +0 -1
- package/dist/playground/build/p-389e2cd3.entry.js +0 -1
- package/dist/playground/build/p-38d9e75b.entry.js +0 -1
- package/dist/playground/build/p-4ce667f1.entry.js +0 -1
- package/dist/playground/build/p-66b0eb0f.entry.js +0 -1
- package/dist/playground/build/p-69d33f9d.entry.js +0 -1
- package/dist/playground/build/p-6dc7b987.entry.js +0 -1
- package/dist/playground/build/p-76e04a7f.entry.js +0 -1
- package/dist/playground/build/p-776a0eb6.entry.js +0 -1
- package/dist/playground/build/p-7c4532f3.entry.js +0 -1
- package/dist/playground/build/p-7d2144cf.entry.js +0 -1
- package/dist/playground/build/p-84185204.entry.js +0 -1
- package/dist/playground/build/p-938cd8a6.entry.js +0 -1
- package/dist/playground/build/p-CYoQ4Zv3.js +0 -2
- package/dist/playground/build/p-DoQvrOHk.js +0 -1
- package/dist/playground/build/p-a182b818.entry.js +0 -1
- package/dist/playground/build/p-aa017815.entry.js +0 -1
- package/dist/playground/build/p-d7607e11.entry.js +0 -1
- package/dist/playground/playground/specs/q-circular-progress.sandbox.json +0 -91
- package/dist/types/components/button/button.d.ts +0 -26
- package/dist/types/components/card/card.d.ts +0 -12
- package/dist/types/components/circular-progress/circular-progress.d.ts +0 -7
- package/dist/types/components/data-table/data-table.d.ts +0 -45
- package/dist/types/components/dialog/dialog.d.ts +0 -35
- package/dist/types/components/dropdown/dropdown.d.ts +0 -49
- package/dist/types/components/icon/icon.d.ts +0 -33
- package/dist/types/components/input/input.d.ts +0 -43
- package/dist/types/components/reel/reel.d.ts +0 -23
- package/dist/types/components/scrollable/scrollable.d.ts +0 -47
- package/dist/types/components/sidepanel/sidepanel.d.ts +0 -58
- package/dist/types/components/step-diagram/step-diagram.d.ts +0 -10
- package/dist/types/components/step-diagram-item/step-diagram-item.d.ts +0 -12
- package/dist/types/components/syntax-box/syntax-box.d.ts +0 -37
- package/dist/types/components/textarea/textarea.d.ts +0 -36
- package/dist/types/components/thumbnail/thumbnail.d.ts +0 -18
- package/dist/types/components/toggle/toggle.d.ts +0 -36
- package/dist/types/components/tooltip/tooltip.d.ts +0 -29
- package/dist/webquark/p-095635d3.entry.js +0 -1
- package/dist/webquark/p-1187e439.entry.js +0 -1
- package/dist/webquark/p-389e2cd3.entry.js +0 -1
- package/dist/webquark/p-38d9e75b.entry.js +0 -1
- package/dist/webquark/p-4ce667f1.entry.js +0 -1
- package/dist/webquark/p-66b0eb0f.entry.js +0 -1
- package/dist/webquark/p-69d33f9d.entry.js +0 -1
- package/dist/webquark/p-6dc7b987.entry.js +0 -1
- package/dist/webquark/p-76e04a7f.entry.js +0 -1
- package/dist/webquark/p-776a0eb6.entry.js +0 -1
- package/dist/webquark/p-7c4532f3.entry.js +0 -1
- package/dist/webquark/p-7d2144cf.entry.js +0 -1
- package/dist/webquark/p-84185204.entry.js +0 -1
- package/dist/webquark/p-938cd8a6.entry.js +0 -1
- package/dist/webquark/p-CYoQ4Zv3.js +0 -2
- package/dist/webquark/p-DoQvrOHk.js +0 -1
- package/dist/webquark/p-a182b818.entry.js +0 -1
- package/dist/webquark/p-aa017815.entry.js +0 -1
- package/dist/webquark/p-d7607e11.entry.js +0 -1
- /package/dist/cjs/{index-DGQOjEwT.js → utils-DGQOjEwT.js} +0 -0
- /package/dist/esm/{index-BJiYCN3i.js → utils-BJiYCN3i.js} +0 -0
|
@@ -1,24 +1,46 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { syncNativeControlValidity } from "../../../utils/form-control-validity";
|
|
3
|
+
import { hasAssignedSlotContent } from "./input.utils";
|
|
4
|
+
/**
|
|
5
|
+
* Form-associated input field with optional prefix/suffix slots, clear button, password visibility toggle, and numeric spinner controls.
|
|
6
|
+
* @slot prefix - Content displayed before the native input.
|
|
7
|
+
* @slot suffix - Content displayed after the native input when no clear or password toggle button is visible.
|
|
8
|
+
* @part label - Optional field label.
|
|
9
|
+
* @part control - Wrapper around the native input and inline controls.
|
|
10
|
+
* @part prefix - Prefix slot container.
|
|
11
|
+
* @part suffix - Suffix slot container.
|
|
12
|
+
* @part spinners - Numeric spinner button container.
|
|
13
|
+
* @part error-msg - Validation helper text.
|
|
14
|
+
*/
|
|
2
15
|
export class QInput {
|
|
3
16
|
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
4
17
|
value = "";
|
|
5
|
-
type = 'text';
|
|
6
18
|
placeholder = "";
|
|
7
19
|
label;
|
|
20
|
+
/** Accessible name for the native input when a visible label is not used. */
|
|
21
|
+
ariaLabel = null;
|
|
22
|
+
size = 'md';
|
|
23
|
+
/** Shows a clear button when the field has a value. */
|
|
24
|
+
clearable = false;
|
|
8
25
|
disabled = false;
|
|
9
26
|
required = false;
|
|
27
|
+
/** Validation error text or error-state flag. */
|
|
10
28
|
error;
|
|
29
|
+
/** Validation helper text displayed when the field is in an error state. */
|
|
11
30
|
errorMessage;
|
|
12
|
-
|
|
13
|
-
|
|
31
|
+
name;
|
|
32
|
+
/** `password` adds a visibility toggle; `number` adds spinner controls. */
|
|
33
|
+
type = 'text';
|
|
14
34
|
min;
|
|
15
35
|
max;
|
|
16
36
|
step = 1;
|
|
17
|
-
el;
|
|
18
37
|
internals;
|
|
19
38
|
hasPrefix = false;
|
|
20
39
|
hasSuffix = false;
|
|
40
|
+
passwordVisible = false;
|
|
41
|
+
/** Emitted when the committed value changes. */
|
|
21
42
|
qChange;
|
|
43
|
+
/** Emitted as the user types or spinner controls update the value. */
|
|
22
44
|
qInput;
|
|
23
45
|
qBlur;
|
|
24
46
|
qFocus;
|
|
@@ -38,6 +60,9 @@ export class QInput {
|
|
|
38
60
|
this.internals.setFormValue(this.value);
|
|
39
61
|
}
|
|
40
62
|
}
|
|
63
|
+
componentDidRender() {
|
|
64
|
+
this.syncValidity();
|
|
65
|
+
}
|
|
41
66
|
formResetCallback() {
|
|
42
67
|
this.value = this.initialValue;
|
|
43
68
|
if (this.internals && typeof this.internals.setFormValue === 'function') {
|
|
@@ -45,21 +70,49 @@ export class QInput {
|
|
|
45
70
|
}
|
|
46
71
|
}
|
|
47
72
|
// ============================ [4] EXPOSED METHODS ============================
|
|
73
|
+
/** Moves focus to the native input. */
|
|
48
74
|
async focusElement() {
|
|
49
75
|
this.inputEl?.focus();
|
|
50
76
|
}
|
|
77
|
+
/** Clears the current value and focuses the native input. */
|
|
51
78
|
async clearValue() {
|
|
52
79
|
this.handleClear();
|
|
53
80
|
}
|
|
81
|
+
/** Returns whether the control satisfies native and custom constraints. */
|
|
82
|
+
async checkValidity() {
|
|
83
|
+
this.syncValidity();
|
|
84
|
+
if (typeof this.internals.checkValidity === 'function') {
|
|
85
|
+
return this.internals.checkValidity();
|
|
86
|
+
}
|
|
87
|
+
return this.inputEl?.checkValidity?.() ?? true;
|
|
88
|
+
}
|
|
89
|
+
/** Reports native or custom constraint violations and returns whether the control is valid. */
|
|
90
|
+
async reportValidity() {
|
|
91
|
+
this.syncValidity();
|
|
92
|
+
if (typeof this.internals.reportValidity === 'function') {
|
|
93
|
+
return this.internals.reportValidity();
|
|
94
|
+
}
|
|
95
|
+
return this.inputEl?.reportValidity?.() ?? true;
|
|
96
|
+
}
|
|
54
97
|
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
55
98
|
handlePrefixSlotChange = (ev) => {
|
|
56
99
|
const slot = ev.target;
|
|
57
|
-
this.hasPrefix = slot
|
|
100
|
+
this.hasPrefix = hasAssignedSlotContent(slot);
|
|
58
101
|
};
|
|
59
102
|
handleSuffixSlotChange = (ev) => {
|
|
60
103
|
const slot = ev.target;
|
|
61
|
-
this.hasSuffix = slot
|
|
104
|
+
this.hasSuffix = hasAssignedSlotContent(slot);
|
|
62
105
|
};
|
|
106
|
+
syncValidity() {
|
|
107
|
+
if (!this.inputEl || !this.internals)
|
|
108
|
+
return;
|
|
109
|
+
syncNativeControlValidity({
|
|
110
|
+
internals: this.internals,
|
|
111
|
+
control: this.inputEl,
|
|
112
|
+
disabled: this.disabled,
|
|
113
|
+
customError: this.error || this.errorMessage,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
63
116
|
handleInput = (ev) => {
|
|
64
117
|
const target = ev.target;
|
|
65
118
|
this.value = target.value;
|
|
@@ -70,9 +123,7 @@ export class QInput {
|
|
|
70
123
|
this.value = target.value;
|
|
71
124
|
this.qChange.emit(this.value);
|
|
72
125
|
};
|
|
73
|
-
|
|
74
|
-
if (this.disabled)
|
|
75
|
-
return;
|
|
126
|
+
resolveNumericBase() {
|
|
76
127
|
let base = parseFloat(this.value);
|
|
77
128
|
if (isNaN(base)) {
|
|
78
129
|
if (this.min !== undefined && this.min !== null && this.min > 0) {
|
|
@@ -85,14 +136,23 @@ export class QInput {
|
|
|
85
136
|
base = 0;
|
|
86
137
|
}
|
|
87
138
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
139
|
+
return base;
|
|
140
|
+
}
|
|
141
|
+
clampNumericValue(value) {
|
|
142
|
+
let clamped = value;
|
|
93
143
|
if (this.min !== undefined && this.min !== null) {
|
|
94
|
-
|
|
144
|
+
clamped = Math.max(this.min, clamped);
|
|
145
|
+
}
|
|
146
|
+
if (this.max !== undefined && this.max !== null) {
|
|
147
|
+
clamped = Math.min(this.max, clamped);
|
|
95
148
|
}
|
|
149
|
+
return clamped;
|
|
150
|
+
}
|
|
151
|
+
stepValue(direction) {
|
|
152
|
+
if (this.disabled)
|
|
153
|
+
return;
|
|
154
|
+
const stepVal = (this.step !== undefined && this.step !== null) ? this.step : 1;
|
|
155
|
+
const newValue = this.clampNumericValue(this.resolveNumericBase() + (stepVal * direction));
|
|
96
156
|
this.value = String(newValue);
|
|
97
157
|
// Imperatively update the native input so the display refreshes immediately.
|
|
98
158
|
// Stencil's async VDOM re-render can be skipped when this.value was already
|
|
@@ -101,36 +161,12 @@ export class QInput {
|
|
|
101
161
|
this.inputEl.value = this.value;
|
|
102
162
|
this.qInput.emit(this.value);
|
|
103
163
|
this.qChange.emit(this.value);
|
|
164
|
+
}
|
|
165
|
+
handleIncrement = () => {
|
|
166
|
+
this.stepValue(1);
|
|
104
167
|
};
|
|
105
168
|
handleDecrement = () => {
|
|
106
|
-
|
|
107
|
-
return;
|
|
108
|
-
let base = parseFloat(this.value);
|
|
109
|
-
if (isNaN(base)) {
|
|
110
|
-
if (this.min !== undefined && this.min !== null && this.min > 0) {
|
|
111
|
-
base = this.min;
|
|
112
|
-
}
|
|
113
|
-
else if (this.max !== undefined && this.max !== null && this.max < 0) {
|
|
114
|
-
base = this.max;
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
base = 0;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
const stepVal = (this.step !== undefined && this.step !== null) ? this.step : 1;
|
|
121
|
-
let newValue = base - stepVal;
|
|
122
|
-
if (this.min !== undefined && this.min !== null) {
|
|
123
|
-
newValue = Math.max(this.min, newValue);
|
|
124
|
-
}
|
|
125
|
-
if (this.max !== undefined && this.max !== null) {
|
|
126
|
-
newValue = Math.min(this.max, newValue);
|
|
127
|
-
}
|
|
128
|
-
this.value = String(newValue);
|
|
129
|
-
// Same imperative update as handleIncrement — see comment there.
|
|
130
|
-
if (this.inputEl)
|
|
131
|
-
this.inputEl.value = this.value;
|
|
132
|
-
this.qInput.emit(this.value);
|
|
133
|
-
this.qChange.emit(this.value);
|
|
169
|
+
this.stepValue(-1);
|
|
134
170
|
};
|
|
135
171
|
handleBlur = (ev) => {
|
|
136
172
|
if (this.type === 'number' && this.value !== undefined && this.value !== null && this.value !== "") {
|
|
@@ -171,22 +207,58 @@ export class QInput {
|
|
|
171
207
|
this.inputEl.focus();
|
|
172
208
|
}
|
|
173
209
|
};
|
|
210
|
+
handlePasswordToggle = (ev) => {
|
|
211
|
+
ev.preventDefault();
|
|
212
|
+
ev.stopPropagation();
|
|
213
|
+
if (this.disabled || this.type !== 'password')
|
|
214
|
+
return;
|
|
215
|
+
const selectionStart = this.inputEl?.selectionStart ?? null;
|
|
216
|
+
const selectionEnd = this.inputEl?.selectionEnd ?? null;
|
|
217
|
+
this.passwordVisible = !this.passwordVisible;
|
|
218
|
+
requestAnimationFrame(() => {
|
|
219
|
+
if (!this.inputEl)
|
|
220
|
+
return;
|
|
221
|
+
this.inputEl.focus();
|
|
222
|
+
if (selectionStart !== null && selectionEnd !== null) {
|
|
223
|
+
this.inputEl.setSelectionRange(selectionStart, selectionEnd);
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
handleKeyDown = (ev) => {
|
|
228
|
+
if (this.type !== 'number' || this.disabled)
|
|
229
|
+
return;
|
|
230
|
+
if (ev.key === 'ArrowUp') {
|
|
231
|
+
ev.preventDefault();
|
|
232
|
+
this.handleIncrement();
|
|
233
|
+
}
|
|
234
|
+
else if (ev.key === 'ArrowDown') {
|
|
235
|
+
ev.preventDefault();
|
|
236
|
+
this.handleDecrement();
|
|
237
|
+
}
|
|
238
|
+
};
|
|
174
239
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
175
240
|
render() {
|
|
176
241
|
const hasError = !!(this.error || this.errorMessage);
|
|
177
242
|
const displayError = this.error || this.errorMessage;
|
|
178
243
|
const showClearBtn = this.clearable && !this.disabled && this.value.length > 0;
|
|
179
|
-
const
|
|
180
|
-
|
|
244
|
+
const showPasswordToggle = this.type === 'password' && !this.disabled;
|
|
245
|
+
const inputType = showPasswordToggle && this.passwordVisible ? 'text' : this.type;
|
|
246
|
+
const showSuffixContainer = this.hasSuffix || showClearBtn || showPasswordToggle;
|
|
247
|
+
const numericValue = parseFloat(this.value);
|
|
248
|
+
const hasNumericValue = this.type === 'number' && !isNaN(numericValue);
|
|
249
|
+
const isMinDisabled = hasNumericValue && this.min !== undefined && this.min !== null && numericValue <= this.min;
|
|
250
|
+
const isMaxDisabled = hasNumericValue && this.max !== undefined && this.max !== null && numericValue >= this.max;
|
|
251
|
+
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
252
|
+
return (h("div", { key: '08aa1cfd2e3f3c32bbc109dd0ced6d4f9ccbd5d2', class: {
|
|
181
253
|
'input-wrapper': true,
|
|
182
254
|
'is-disabled': this.disabled,
|
|
183
255
|
'has-error': hasError,
|
|
184
256
|
[`size-${this.size}`]: true
|
|
185
|
-
} }, this.label && (h("label", { key: '
|
|
257
|
+
} }, this.label && (h("label", { key: 'd6b6cd29067f2d5bcd872c4e0173c6df87cc41ae', class: "input-label", htmlFor: "q-field", part: "label" }, this.label)), h("div", { key: '06d4836978707b81d40dbbcbc2ca7a0547ea1031', class: "input-control", part: "control" }, h("span", { key: '24b6d8d13280d030312a79f17b703aa259b00641', class: "prefix-container", style: { display: this.hasPrefix ? 'flex' : 'none' }, part: "prefix" }, h("slot", { key: 'a82f32bc02cd210dcc10de561dd58baa25c6fd98', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), h("input", { key: this.type, ref: (el) => (this.inputEl = el), id: "q-field", class: {
|
|
186
258
|
'input-box': true,
|
|
187
259
|
'has-prefix-padding': this.hasPrefix,
|
|
188
260
|
'has-suffix-padding': showSuffixContainer
|
|
189
|
-
}, type: this.
|
|
261
|
+
}, type: inputType, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.disabled, required: this.required, min: this.min, max: this.max, step: this.step, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, onKeyDown: this.handleKeyDown, role: this.type === 'number' ? 'spinbutton' : undefined, "aria-valuenow": hasNumericValue ? String(numericValue) : undefined, "aria-valuemin": this.type === 'number' && this.min !== undefined && this.min !== null ? String(this.min) : undefined, "aria-valuemax": this.type === 'number' && this.max !== undefined && this.max !== null ? String(this.max) : undefined, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError ? 'q-field-error' : undefined, "aria-label": ariaLabel }), this.type === 'number' && !this.disabled && (h("div", { key: '08151e8325b52cb1363090527e58e282f75c2ba5', class: "input-spinners", part: "spinners" }, h("button", { key: '6210ff28366658b6de497f0ab94343859dfdcb43', class: "spinner-btn spinner-up", type: "button", onClick: this.handleIncrement, disabled: isMaxDisabled, "aria-label": "Increase value" }, h("svg", { key: 'a138085cebfd388f28796127e54eaf40009b546a', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { key: 'ca8d2fc490c22b35cb87714e8091a9fb14d85357', d: "M18 15l-6-6-6 6" }))), h("button", { key: 'acfd745899edc9124bdcbefcc42ee87480583982', class: "spinner-btn spinner-down", type: "button", onClick: this.handleDecrement, disabled: isMinDisabled, "aria-label": "Decrease value" }, h("svg", { key: 'da2417827c7b14538ad7437f0ce084174f46d00e', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { key: '9a16d88f27c724581cc7d9f30aa27c2766b72429', d: "M6 9l6 6 6-6" }))))), h("span", { key: '3393389368a778907b4a0de49ff5d6813912ee57', class: "suffix-container", style: { display: showSuffixContainer ? 'flex' : 'none' }, part: "suffix" }, showClearBtn && (h("button", { key: 'c3eedebb165feb59fb7cf1d2956e55df57e9ea4b', class: "clear-btn", type: "button", onClick: this.handleClear, "aria-label": "Clear input" }, h("svg", { key: '76351a3446784a5dc62060bea64b359aa1830da2', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("path", { key: 'cb8c0fad30b1214b6689571e9905c07db158e092', d: "M18 6L6 18M6 6l12 12" })))), showPasswordToggle && (h("button", { key: '0cbfd055abf302836fbfc7d4be8143d5e935022f', class: "password-toggle-btn", type: "button", onClick: this.handlePasswordToggle, "aria-label": this.passwordVisible ? 'Hide password' : 'Show password', "aria-pressed": this.passwordVisible ? 'true' : 'false' }, this.passwordVisible ? (h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { d: "M3 3l18 18" }), h("path", { d: "M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58" }), h("path", { d: "M9.88 4.24A10.2 10.2 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-4.08 5.19" }), h("path", { d: "M6.61 6.61A18.5 18.5 0 0 0 2 12s3 8 10 8a10.7 10.7 0 0 0 5.39-1.61" }))) : (h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, h("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }), h("circle", { cx: "12", cy: "12", r: "3" }))))), h("span", { key: 'b1ca65ea1a0d63f5d521c5b7ae822d790f9e4cf7', style: { display: !showClearBtn && this.hasSuffix ? 'block' : 'none' } }, h("slot", { key: '5374bbe5306e458245fbeffdcfeb487366b1ddb7', name: "suffix", onSlotchange: this.handleSuffixSlotChange })))), hasError && (h("span", { key: '3598e2888edc92705b862fb7197470378bbcfd2e', id: "q-field-error", class: "error-msg", part: "error-msg" }, displayError))));
|
|
190
262
|
}
|
|
191
263
|
static get is() { return "q-input"; }
|
|
192
264
|
static get encapsulation() { return "shadow"; }
|
|
@@ -224,12 +296,12 @@ export class QInput {
|
|
|
224
296
|
"attribute": "value",
|
|
225
297
|
"defaultValue": "\"\""
|
|
226
298
|
},
|
|
227
|
-
"
|
|
299
|
+
"placeholder": {
|
|
228
300
|
"type": "string",
|
|
229
301
|
"mutable": false,
|
|
230
302
|
"complexType": {
|
|
231
|
-
"original": "
|
|
232
|
-
"resolved": "
|
|
303
|
+
"original": "string",
|
|
304
|
+
"resolved": "string",
|
|
233
305
|
"references": {}
|
|
234
306
|
},
|
|
235
307
|
"required": false,
|
|
@@ -241,10 +313,10 @@ export class QInput {
|
|
|
241
313
|
"getter": false,
|
|
242
314
|
"setter": false,
|
|
243
315
|
"reflect": false,
|
|
244
|
-
"attribute": "
|
|
245
|
-
"defaultValue": "
|
|
316
|
+
"attribute": "placeholder",
|
|
317
|
+
"defaultValue": "\"\""
|
|
246
318
|
},
|
|
247
|
-
"
|
|
319
|
+
"label": {
|
|
248
320
|
"type": "string",
|
|
249
321
|
"mutable": false,
|
|
250
322
|
"complexType": {
|
|
@@ -253,7 +325,7 @@ export class QInput {
|
|
|
253
325
|
"references": {}
|
|
254
326
|
},
|
|
255
327
|
"required": false,
|
|
256
|
-
"optional":
|
|
328
|
+
"optional": true,
|
|
257
329
|
"docs": {
|
|
258
330
|
"tags": [],
|
|
259
331
|
"text": ""
|
|
@@ -261,19 +333,45 @@ export class QInput {
|
|
|
261
333
|
"getter": false,
|
|
262
334
|
"setter": false,
|
|
263
335
|
"reflect": false,
|
|
264
|
-
"attribute": "
|
|
265
|
-
"defaultValue": "\"\""
|
|
336
|
+
"attribute": "label"
|
|
266
337
|
},
|
|
267
|
-
"
|
|
338
|
+
"ariaLabel": {
|
|
268
339
|
"type": "string",
|
|
269
340
|
"mutable": false,
|
|
270
341
|
"complexType": {
|
|
271
|
-
"original": "string",
|
|
342
|
+
"original": "string | null",
|
|
272
343
|
"resolved": "string",
|
|
273
344
|
"references": {}
|
|
274
345
|
},
|
|
275
346
|
"required": false,
|
|
276
|
-
"optional":
|
|
347
|
+
"optional": false,
|
|
348
|
+
"docs": {
|
|
349
|
+
"tags": [],
|
|
350
|
+
"text": "Accessible name for the native input when a visible label is not used."
|
|
351
|
+
},
|
|
352
|
+
"getter": false,
|
|
353
|
+
"setter": false,
|
|
354
|
+
"reflect": false,
|
|
355
|
+
"attribute": "aria-label",
|
|
356
|
+
"defaultValue": "null"
|
|
357
|
+
},
|
|
358
|
+
"size": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"mutable": false,
|
|
361
|
+
"complexType": {
|
|
362
|
+
"original": "QInputSize",
|
|
363
|
+
"resolved": "\"lg\" | \"md\" | \"sm\"",
|
|
364
|
+
"references": {
|
|
365
|
+
"QInputSize": {
|
|
366
|
+
"location": "import",
|
|
367
|
+
"path": "./input.types",
|
|
368
|
+
"id": "src/components/inputs/input/input.types.ts::QInputSize",
|
|
369
|
+
"referenceLocation": "QInputSize"
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"required": false,
|
|
374
|
+
"optional": false,
|
|
277
375
|
"docs": {
|
|
278
376
|
"tags": [],
|
|
279
377
|
"text": ""
|
|
@@ -281,7 +379,28 @@ export class QInput {
|
|
|
281
379
|
"getter": false,
|
|
282
380
|
"setter": false,
|
|
283
381
|
"reflect": false,
|
|
284
|
-
"attribute": "
|
|
382
|
+
"attribute": "size",
|
|
383
|
+
"defaultValue": "'md'"
|
|
384
|
+
},
|
|
385
|
+
"clearable": {
|
|
386
|
+
"type": "boolean",
|
|
387
|
+
"mutable": false,
|
|
388
|
+
"complexType": {
|
|
389
|
+
"original": "boolean",
|
|
390
|
+
"resolved": "boolean",
|
|
391
|
+
"references": {}
|
|
392
|
+
},
|
|
393
|
+
"required": false,
|
|
394
|
+
"optional": false,
|
|
395
|
+
"docs": {
|
|
396
|
+
"tags": [],
|
|
397
|
+
"text": "Shows a clear button when the field has a value."
|
|
398
|
+
},
|
|
399
|
+
"getter": false,
|
|
400
|
+
"setter": false,
|
|
401
|
+
"reflect": false,
|
|
402
|
+
"attribute": "clearable",
|
|
403
|
+
"defaultValue": "false"
|
|
285
404
|
},
|
|
286
405
|
"disabled": {
|
|
287
406
|
"type": "boolean",
|
|
@@ -335,7 +454,7 @@ export class QInput {
|
|
|
335
454
|
"optional": true,
|
|
336
455
|
"docs": {
|
|
337
456
|
"tags": [],
|
|
338
|
-
"text": ""
|
|
457
|
+
"text": "Validation error text or error-state flag."
|
|
339
458
|
},
|
|
340
459
|
"getter": false,
|
|
341
460
|
"setter": false,
|
|
@@ -354,52 +473,58 @@ export class QInput {
|
|
|
354
473
|
"optional": true,
|
|
355
474
|
"docs": {
|
|
356
475
|
"tags": [],
|
|
357
|
-
"text": ""
|
|
476
|
+
"text": "Validation helper text displayed when the field is in an error state."
|
|
358
477
|
},
|
|
359
478
|
"getter": false,
|
|
360
479
|
"setter": false,
|
|
361
480
|
"reflect": false,
|
|
362
481
|
"attribute": "error-message"
|
|
363
482
|
},
|
|
364
|
-
"
|
|
483
|
+
"name": {
|
|
365
484
|
"type": "string",
|
|
366
485
|
"mutable": false,
|
|
367
486
|
"complexType": {
|
|
368
|
-
"original": "
|
|
369
|
-
"resolved": "
|
|
487
|
+
"original": "string",
|
|
488
|
+
"resolved": "string",
|
|
370
489
|
"references": {}
|
|
371
490
|
},
|
|
372
491
|
"required": false,
|
|
373
|
-
"optional":
|
|
492
|
+
"optional": true,
|
|
374
493
|
"docs": {
|
|
375
494
|
"tags": [],
|
|
376
495
|
"text": ""
|
|
377
496
|
},
|
|
378
497
|
"getter": false,
|
|
379
498
|
"setter": false,
|
|
380
|
-
"reflect":
|
|
381
|
-
"attribute": "
|
|
382
|
-
"defaultValue": "'md'"
|
|
499
|
+
"reflect": true,
|
|
500
|
+
"attribute": "name"
|
|
383
501
|
},
|
|
384
|
-
"
|
|
385
|
-
"type": "
|
|
502
|
+
"type": {
|
|
503
|
+
"type": "string",
|
|
386
504
|
"mutable": false,
|
|
387
505
|
"complexType": {
|
|
388
|
-
"original": "
|
|
389
|
-
"resolved": "
|
|
390
|
-
"references": {
|
|
506
|
+
"original": "QInputType",
|
|
507
|
+
"resolved": "\"color\" | \"date\" | \"datetime-local\" | \"email\" | \"month\" | \"number\" | \"password\" | \"search\" | \"text\" | \"time\" | \"url\" | \"week\"",
|
|
508
|
+
"references": {
|
|
509
|
+
"QInputType": {
|
|
510
|
+
"location": "import",
|
|
511
|
+
"path": "./input.types",
|
|
512
|
+
"id": "src/components/inputs/input/input.types.ts::QInputType",
|
|
513
|
+
"referenceLocation": "QInputType"
|
|
514
|
+
}
|
|
515
|
+
}
|
|
391
516
|
},
|
|
392
517
|
"required": false,
|
|
393
518
|
"optional": false,
|
|
394
519
|
"docs": {
|
|
395
520
|
"tags": [],
|
|
396
|
-
"text": ""
|
|
521
|
+
"text": "`password` adds a visibility toggle; `number` adds spinner controls."
|
|
397
522
|
},
|
|
398
523
|
"getter": false,
|
|
399
524
|
"setter": false,
|
|
400
525
|
"reflect": false,
|
|
401
|
-
"attribute": "
|
|
402
|
-
"defaultValue": "
|
|
526
|
+
"attribute": "type",
|
|
527
|
+
"defaultValue": "'text'"
|
|
403
528
|
},
|
|
404
529
|
"min": {
|
|
405
530
|
"type": "number",
|
|
@@ -464,7 +589,8 @@ export class QInput {
|
|
|
464
589
|
static get states() {
|
|
465
590
|
return {
|
|
466
591
|
"hasPrefix": {},
|
|
467
|
-
"hasSuffix": {}
|
|
592
|
+
"hasSuffix": {},
|
|
593
|
+
"passwordVisible": {}
|
|
468
594
|
};
|
|
469
595
|
}
|
|
470
596
|
static get events() {
|
|
@@ -476,7 +602,7 @@ export class QInput {
|
|
|
476
602
|
"composed": true,
|
|
477
603
|
"docs": {
|
|
478
604
|
"tags": [],
|
|
479
|
-
"text": ""
|
|
605
|
+
"text": "Emitted when the committed value changes."
|
|
480
606
|
},
|
|
481
607
|
"complexType": {
|
|
482
608
|
"original": "string",
|
|
@@ -491,7 +617,7 @@ export class QInput {
|
|
|
491
617
|
"composed": true,
|
|
492
618
|
"docs": {
|
|
493
619
|
"tags": [],
|
|
494
|
-
"text": ""
|
|
620
|
+
"text": "Emitted as the user types or spinner controls update the value."
|
|
495
621
|
},
|
|
496
622
|
"complexType": {
|
|
497
623
|
"original": "string",
|
|
@@ -575,7 +701,7 @@ export class QInput {
|
|
|
575
701
|
"return": "Promise<void>"
|
|
576
702
|
},
|
|
577
703
|
"docs": {
|
|
578
|
-
"text": "",
|
|
704
|
+
"text": "Moves focus to the native input.",
|
|
579
705
|
"tags": []
|
|
580
706
|
}
|
|
581
707
|
},
|
|
@@ -592,13 +718,46 @@ export class QInput {
|
|
|
592
718
|
"return": "Promise<void>"
|
|
593
719
|
},
|
|
594
720
|
"docs": {
|
|
595
|
-
"text": "",
|
|
721
|
+
"text": "Clears the current value and focuses the native input.",
|
|
722
|
+
"tags": []
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"checkValidity": {
|
|
726
|
+
"complexType": {
|
|
727
|
+
"signature": "() => Promise<boolean>",
|
|
728
|
+
"parameters": [],
|
|
729
|
+
"references": {
|
|
730
|
+
"Promise": {
|
|
731
|
+
"location": "global",
|
|
732
|
+
"id": "global::Promise"
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
"return": "Promise<boolean>"
|
|
736
|
+
},
|
|
737
|
+
"docs": {
|
|
738
|
+
"text": "Returns whether the control satisfies native and custom constraints.",
|
|
739
|
+
"tags": []
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"reportValidity": {
|
|
743
|
+
"complexType": {
|
|
744
|
+
"signature": "() => Promise<boolean>",
|
|
745
|
+
"parameters": [],
|
|
746
|
+
"references": {
|
|
747
|
+
"Promise": {
|
|
748
|
+
"location": "global",
|
|
749
|
+
"id": "global::Promise"
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
"return": "Promise<boolean>"
|
|
753
|
+
},
|
|
754
|
+
"docs": {
|
|
755
|
+
"text": "Reports native or custom constraint violations and returns whether the control is valid.",
|
|
596
756
|
"tags": []
|
|
597
757
|
}
|
|
598
758
|
}
|
|
599
759
|
};
|
|
600
760
|
}
|
|
601
|
-
static get elementRef() { return "el"; }
|
|
602
761
|
static get watchers() {
|
|
603
762
|
return [{
|
|
604
763
|
"propName": "value",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export function hasQuantityBound(value) {
|
|
2
|
+
return value !== undefined && value !== null;
|
|
3
|
+
}
|
|
4
|
+
export function toFiniteQuantity(value, fallback = 0) {
|
|
5
|
+
return Number.isFinite(value) ? value : fallback;
|
|
6
|
+
}
|
|
7
|
+
export function clampQuantityValue(value, bounds) {
|
|
8
|
+
let clamped = value;
|
|
9
|
+
if (hasQuantityBound(bounds.min)) {
|
|
10
|
+
clamped = Math.max(bounds.min, clamped);
|
|
11
|
+
}
|
|
12
|
+
if (hasQuantityBound(bounds.max)) {
|
|
13
|
+
clamped = Math.min(bounds.max, clamped);
|
|
14
|
+
}
|
|
15
|
+
return clamped;
|
|
16
|
+
}
|
|
17
|
+
export function stepQuantityValue(value, step, direction, bounds) {
|
|
18
|
+
const current = toFiniteQuantity(value);
|
|
19
|
+
return clampQuantityValue(current + step * direction, bounds);
|
|
20
|
+
}
|
|
21
|
+
export function sanitizeQuantityInput(rawValue) {
|
|
22
|
+
let value = rawValue.replace(/[^0-9.-]/g, '');
|
|
23
|
+
if (value.startsWith('-')) {
|
|
24
|
+
value = '-' + value.slice(1).replace(/-/g, '');
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
value = value.replace(/-/g, '');
|
|
28
|
+
}
|
|
29
|
+
const parts = value.split('.');
|
|
30
|
+
if (parts.length > 2) {
|
|
31
|
+
value = parts[0] + '.' + parts.slice(1).join('');
|
|
32
|
+
}
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
35
|
+
export function parseQuantityInput(value) {
|
|
36
|
+
const parsed = parseFloat(value);
|
|
37
|
+
return Number.isNaN(parsed) ? undefined : parsed;
|
|
38
|
+
}
|
|
39
|
+
export function isWithinQuantityBounds(value, bounds) {
|
|
40
|
+
const isAboveMin = !hasQuantityBound(bounds.min) || value >= bounds.min;
|
|
41
|
+
const isBelowMax = !hasQuantityBound(bounds.max) || value <= bounds.max;
|
|
42
|
+
return isAboveMin && isBelowMax;
|
|
43
|
+
}
|
|
44
|
+
export function reconcileQuantityInput(value, bounds) {
|
|
45
|
+
let parsed = parseQuantityInput(value);
|
|
46
|
+
if (parsed === undefined) {
|
|
47
|
+
if (hasQuantityBound(bounds.min)) {
|
|
48
|
+
parsed = bounds.min;
|
|
49
|
+
}
|
|
50
|
+
else if (hasQuantityBound(bounds.max)) {
|
|
51
|
+
parsed = Math.min(0, bounds.max);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
parsed = 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return clampQuantityValue(parsed, bounds);
|
|
58
|
+
}
|
|
59
|
+
export function getQuantityInputCharCount(value, bounds) {
|
|
60
|
+
if (hasQuantityBound(bounds.min) || hasQuantityBound(bounds.max)) {
|
|
61
|
+
return Math.max(3, bounds.min?.toString().length ?? 0, bounds.max?.toString().length ?? 0);
|
|
62
|
+
}
|
|
63
|
+
return Math.max(3, value?.toString().length ?? 0);
|
|
64
|
+
}
|