@webquark/browser 0.0.0-stage → 1.1.0-dev.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/LICENSE +21 -0
- package/README.md +12 -2
- package/dist/cjs/Leaflet.GoogleMutant-i4bYl6qy.js +768 -0
- package/dist/cjs/action.props-N0urQtdP.js +35 -0
- package/dist/cjs/chevron-up-D4t2OSHA.js +30 -0
- package/dist/cjs/collection-identity-CV5HLD9Z.js +141 -0
- package/dist/cjs/data-table-cell-8uUCk2Qz.js +51 -0
- package/dist/cjs/dom-Dk77oFF6.js +247 -0
- package/dist/cjs/field-CsrQGhG-.js +14 -0
- package/dist/cjs/form-control-validity-D1ukC0_e.js +49 -0
- package/dist/cjs/form-field-adapter-D0CJ6poh.js +51 -0
- package/dist/cjs/form-field-state-P63wN30v.js +51 -0
- package/dist/cjs/form-submit-action-C6c4aq6C.js +227 -0
- package/dist/cjs/image-crop-BZD5Cxd7.js +53 -0
- package/dist/cjs/index-DWXhKHCB.js +1869 -0
- package/dist/cjs/index.cjs.js +34 -0
- package/dist/cjs/leaflet-maplibre-gl-JIaCQ-7v.js +1025 -0
- package/dist/cjs/leaflet-src-mrRg-Srs.js +14551 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/map.types-BWymIRql.js +24 -0
- package/dist/cjs/q-accordion.cjs.entry.js +18 -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-banner.cjs.entry.js +19 -0
- package/dist/cjs/q-button_2.cjs.entry.js +462 -0
- package/dist/cjs/q-card.cjs.entry.js +88 -0
- package/dist/cjs/q-carousel.cjs.entry.js +718 -0
- 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 +611 -0
- package/dist/cjs/q-dialog.cjs.entry.js +271 -0
- package/dist/cjs/q-dropdown.cjs.entry.js +699 -0
- package/dist/cjs/q-form.cjs.entry.js +1002 -0
- package/dist/cjs/q-grid.cjs.entry.js +24 -0
- package/dist/cjs/q-icon.cjs.entry.js +439 -0
- package/dist/cjs/q-image-comparison.cjs.entry.js +201 -0
- package/dist/cjs/q-inline.cjs.entry.js +22 -0
- package/dist/cjs/q-input_2.cjs.entry.js +438 -0
- package/dist/cjs/q-link.cjs.entry.js +80 -0
- package/dist/cjs/q-map.cjs.entry.js +3509 -0
- package/dist/cjs/q-media.cjs.entry.js +21 -0
- package/dist/cjs/q-navbar.cjs.entry.js +415 -0
- package/dist/cjs/q-pagination.cjs.entry.js +68 -0
- package/dist/cjs/q-panel.cjs.entry.js +76 -0
- package/dist/cjs/q-quantity-selector.cjs.entry.js +204 -0
- package/dist/cjs/q-radio-group.cjs.entry.js +261 -0
- package/dist/cjs/q-reel.cjs.entry.js +170 -0
- package/dist/cjs/q-scrollable.cjs.entry.js +449 -0
- package/dist/cjs/q-section.cjs.entry.js +20 -0
- package/dist/cjs/q-sidepanel.cjs.entry.js +793 -0
- package/dist/cjs/q-stack.cjs.entry.js +20 -0
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +45 -0
- package/dist/cjs/q-step-diagram.cjs.entry.js +56 -0
- package/dist/cjs/q-syntax-box.cjs.entry.js +782 -0
- package/dist/cjs/q-tabs.cjs.entry.js +155 -0
- package/dist/cjs/q-textarea.cjs.entry.js +295 -0
- package/dist/cjs/q-thumbnail.cjs.entry.js +51 -0
- package/dist/cjs/q-toast.cjs.entry.js +400 -0
- package/dist/cjs/q-toggle.cjs.entry.js +233 -0
- package/dist/cjs/q-toolbar.cjs.entry.js +33 -0
- package/dist/cjs/registry-CzkkkaZO.js +323 -0
- package/dist/cjs/toast-controller-CIXagxbV.js +111 -0
- package/dist/cjs/tokens-RMRaIOqv.js +957 -0
- package/dist/cjs/utils-DGQOjEwT.js +33 -0
- package/dist/cjs/webquark.cjs.js +24 -0
- package/dist/collection/assets/icons/braces.svg +14 -0
- package/dist/collection/assets/icons/check.svg +1 -0
- package/dist/collection/assets/icons/chevron-down.svg +1 -0
- package/dist/collection/assets/icons/chevron-left.svg +1 -0
- package/dist/collection/assets/icons/chevron-right.svg +1 -0
- package/dist/collection/assets/icons/chevron-up.svg +1 -0
- package/dist/collection/assets/icons/copy.svg +4 -0
- package/dist/collection/assets/icons/eye-off.svg +1 -0
- package/dist/collection/assets/icons/eye.svg +1 -0
- package/dist/collection/assets/icons/minus.svg +1 -0
- package/dist/collection/assets/icons/play.svg +1 -0
- package/dist/collection/assets/icons/plus.svg +1 -0
- package/dist/collection/assets/icons/search.svg +1 -0
- package/dist/collection/assets/icons/spinner.svg +1 -0
- package/dist/collection/assets/icons/trash-2.svg +1 -0
- package/dist/collection/assets/icons/x.svg +1 -0
- package/dist/collection/collection-manifest.json +56 -0
- package/dist/collection/components/actions/action.props.js +130 -0
- package/dist/collection/components/actions/button/button.css +242 -0
- package/dist/collection/components/actions/button/button.js +748 -0
- 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/test/button-slots.cmp.test.js +70 -0
- package/dist/collection/components/actions/button/test/button.utils.unit.test.js +44 -0
- package/dist/collection/components/actions/link/link.css +102 -0
- package/dist/collection/components/actions/link/link.js +316 -0
- package/dist/collection/components/actions/link/link.types.js +1 -0
- package/dist/collection/components/communication/alert/alert.css +118 -0
- package/dist/collection/components/communication/alert/alert.js +208 -0
- package/dist/collection/components/communication/alert/alert.types.js +1 -0
- package/dist/collection/components/communication/conversation-bubble/conversation-bubble.css +154 -0
- package/dist/collection/components/communication/conversation-bubble/conversation-bubble.js +207 -0
- package/dist/collection/components/communication/conversation-bubble/conversation-bubble.types.js +1 -0
- package/dist/collection/components/communication/toast/internals/icons.js +25 -0
- package/dist/collection/components/communication/toast/internals/queue.js +64 -0
- package/dist/collection/components/communication/toast/internals/timers.js +75 -0
- package/dist/collection/components/communication/toast/test/toast.cmp.test.js +38 -0
- package/dist/collection/components/communication/toast/test/toast.unit.test.js +104 -0
- package/dist/collection/components/communication/toast/toast-controller.js +105 -0
- package/dist/collection/components/communication/toast/toast.css +141 -0
- package/dist/collection/components/communication/toast/toast.js +556 -0
- package/dist/collection/components/communication/toast/toast.types.js +1 -0
- package/dist/collection/components/content/banner/banner.css +1 -0
- package/dist/collection/components/content/banner/banner.js +84 -0
- package/dist/collection/components/content/banner/banner.types.js +1 -0
- package/dist/collection/components/content/card/card.css +105 -0
- package/dist/collection/components/content/card/card.js +308 -0
- package/dist/collection/components/content/card/card.types.js +1 -0
- package/dist/collection/components/content/card/card.utils.js +15 -0
- package/dist/collection/components/content/carousel/carousel.css +254 -0
- package/dist/collection/components/content/carousel/carousel.js +956 -0
- package/dist/collection/components/content/carousel/carousel.types.js +1 -0
- package/dist/collection/components/content/carousel/carousel.utils.js +1 -0
- package/dist/collection/components/content/carousel/internals/autoplay.js +64 -0
- package/dist/collection/components/content/carousel/internals/metrics.js +59 -0
- package/dist/collection/components/content/carousel/internals/slide-state.js +50 -0
- package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +328 -0
- package/dist/collection/components/data-display/accordion/accordion.css +1 -0
- package/dist/collection/components/data-display/accordion/accordion.js +54 -0
- package/dist/collection/components/data-display/accordion/accordion.types.js +1 -0
- package/dist/collection/components/data-display/chip/chip.css +219 -0
- package/dist/collection/components/data-display/chip/chip.js +381 -0
- package/dist/collection/components/data-display/chip/chip.types.js +1 -0
- package/dist/collection/components/data-display/data-table/data-table-cell.js +44 -0
- package/dist/collection/components/data-display/data-table/data-table.css +429 -0
- package/dist/collection/components/data-display/data-table/data-table.js +862 -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 +59 -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 +92 -0
- package/dist/collection/components/data-display/data-table/test/row-gutter.cmp.test.js +104 -0
- package/dist/collection/components/data-display/data-table/test/two-line-rows.cmp.test.js +164 -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 +425 -0
- package/dist/collection/components/data-display/map/internals/marker-presentation.js +266 -0
- package/dist/collection/components/data-display/map/internals/marker-visibility.js +158 -0
- package/dist/collection/components/data-display/map/internals/markers.js +191 -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 +742 -0
- package/dist/collection/components/data-display/map/map.js +1595 -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 +961 -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/formatter.js +156 -0
- package/dist/collection/components/data-display/syntax-box/internals/formatter.unit.test.js +71 -0
- package/dist/collection/components/data-display/syntax-box/internals/syntax.js +239 -0
- package/dist/collection/components/data-display/syntax-box/internals/syntax.unit.test.js +134 -0
- package/dist/collection/components/data-display/syntax-box/internals/value-sync.js +10 -0
- package/dist/collection/components/data-display/syntax-box/internals/value-sync.unit.test.js +25 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.css +209 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.js +678 -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/data-display/syntax-box/test/format-fixtures.js +20 -0
- package/dist/collection/components/data-display/syntax-box/test/syntax-box.cmp.test.js +241 -0
- package/dist/collection/components/data-display/syntax-box/test/syntax-fixtures.js +14 -0
- package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +157 -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/indicators/step-diagram/step-diagram.css +21 -0
- package/dist/collection/components/indicators/step-diagram/step-diagram.js +143 -0
- package/dist/collection/components/indicators/step-diagram/step-diagram.types.js +1 -0
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.css +252 -0
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +185 -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/inputs/dropdown/dropdown.css +387 -0
- package/dist/collection/components/inputs/dropdown/dropdown.js +1236 -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/inputs/form/form.css +85 -0
- package/dist/collection/components/inputs/form/form.js +808 -0
- package/dist/collection/components/inputs/form/form.types.js +1 -0
- package/dist/collection/components/inputs/form/internals/controls.js +173 -0
- package/dist/collection/components/inputs/form/internals/enter-behavior.js +25 -0
- package/dist/collection/components/inputs/form/internals/field-state.js +129 -0
- package/dist/collection/components/inputs/form/internals/reset.js +50 -0
- package/dist/collection/components/inputs/form/internals/submission.js +140 -0
- package/dist/collection/components/inputs/form/internals/values.js +199 -0
- package/dist/collection/components/inputs/form/internals/values.unit.test.js +59 -0
- package/dist/collection/components/inputs/form/test/form-reset-state.cmp.test.js +559 -0
- package/dist/collection/components/inputs/form/test/form-submit-transport.cmp.test.js +352 -0
- package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +438 -0
- package/dist/collection/components/inputs/form/test/form-values.cmp.test.js +440 -0
- package/dist/collection/components/inputs/form/test/form.cmp.test.js +157 -0
- package/dist/collection/components/inputs/input/input.css +293 -0
- package/dist/collection/components/inputs/input/input.js +907 -0
- 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/inputs/quantity-selector/quantity-selector.css +171 -0
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +390 -0
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.types.js +1 -0
- package/dist/collection/components/inputs/radio-group/radio-group.css +224 -0
- package/dist/collection/components/inputs/radio-group/radio-group.js +668 -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/inputs/textarea/textarea.css +172 -0
- package/dist/collection/components/inputs/textarea/textarea.js +799 -0
- package/dist/collection/components/inputs/textarea/textarea.types.js +1 -0
- package/dist/collection/components/inputs/toggle/toggle.css +252 -0
- package/dist/collection/components/inputs/toggle/toggle.js +610 -0
- 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/layout/grid/grid.css +11 -0
- package/dist/collection/components/layout/grid/grid.js +152 -0
- package/dist/collection/components/layout/inline/inline.css +4 -0
- package/dist/collection/components/layout/inline/inline.js +118 -0
- package/dist/collection/components/layout/navbar/navbar.css +584 -0
- package/dist/collection/components/layout/navbar/navbar.js +848 -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 +369 -0
- package/dist/collection/components/layout/panel/panel.css +114 -0
- package/dist/collection/components/layout/panel/panel.js +394 -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/layout/scrollable/scrollable.css +123 -0
- package/dist/collection/components/layout/scrollable/scrollable.js +565 -0
- package/dist/collection/components/layout/scrollable/scrollable.types.js +1 -0
- package/dist/collection/components/layout/section/section.css +1 -0
- package/dist/collection/components/layout/section/section.js +98 -0
- package/dist/collection/components/layout/section/section.types.js +1 -0
- package/dist/collection/components/layout/sidepanel/internals/drawer.js +98 -0
- package/dist/collection/components/layout/sidepanel/internals/groups.js +56 -0
- package/dist/collection/components/layout/sidepanel/internals/nav-items.js +30 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.css +1035 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.js +1001 -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/sidepanel/test/nav-drawer-transitions.cmp.test.js +120 -0
- package/dist/collection/components/layout/sidepanel/test/panel-transitions.cmp.test.js +180 -0
- package/dist/collection/components/layout/stack/stack.css +4 -0
- package/dist/collection/components/layout/stack/stack.js +76 -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 +168 -0
- package/dist/collection/components/layout/toolbar/toolbar.js +251 -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/media/icon/icon.css +42 -0
- package/dist/collection/components/media/icon/icon.js +510 -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 +47 -0
- package/dist/collection/components/media/icon/internals/fetch-icon.unit.test.js +51 -0
- package/dist/collection/components/media/icon/internals/policy.js +184 -0
- package/dist/collection/components/media/icon/internals/policy.unit.test.js +65 -0
- package/dist/collection/components/media/icon/internals/registry-lucide.unit.test.js +78 -0
- package/dist/collection/components/media/icon/internals/registry.js +122 -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 +86 -0
- package/dist/collection/components/media/icon/internals/size.js +12 -0
- package/dist/collection/components/media/icon/internals/url.js +52 -0
- package/dist/collection/components/media/icon/internals/url.unit.test.js +34 -0
- package/dist/collection/components/media/icon/test/icon-fixtures.js +47 -0
- package/dist/collection/components/media/icon/test/icon.cmp.test.js +223 -0
- package/dist/collection/components/media/image-comparison/image-comparison.css +124 -0
- package/dist/collection/components/media/image-comparison/image-comparison.js +468 -0
- package/dist/collection/components/media/image-comparison/test/image-comparison.cmp.test.js +234 -0
- package/dist/collection/components/media/media/media.css +1 -0
- package/dist/collection/components/media/media/media.js +125 -0
- package/dist/collection/components/media/media/media.types.js +1 -0
- package/dist/collection/components/media/reel/reel.css +193 -0
- package/dist/collection/components/media/reel/reel.js +279 -0
- package/dist/collection/components/media/reel/reel.types.js +1 -0
- package/dist/collection/components/media/thumbnail/thumbnail.css +111 -0
- package/dist/collection/components/media/thumbnail/thumbnail.js +184 -0
- package/dist/collection/components/media/thumbnail/thumbnail.types.js +1 -0
- package/dist/collection/components/overlays/dialog/dialog.css +264 -0
- package/dist/collection/components/overlays/dialog/dialog.js +743 -0
- 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/tooltip/internals/aria.js +27 -0
- package/dist/collection/components/overlays/tooltip/internals/positioning.js +84 -0
- package/dist/collection/components/overlays/tooltip/internals/scroll-listeners.js +18 -0
- package/dist/collection/components/overlays/tooltip/tooltip.css +69 -0
- package/dist/collection/components/overlays/tooltip/tooltip.js +196 -0
- package/dist/collection/components/overlays/tooltip/tooltip.types.js +1 -0
- package/dist/collection/components/shared/field.js +8 -0
- package/dist/collection/components/shared/test/orientation.cmp.test.js +36 -0
- package/dist/collection/index.js +16 -0
- package/dist/collection/native-content.css +24 -0
- package/dist/collection/theme/test/foundation.cmp.test.js +353 -0
- package/dist/collection/theme/test/presets.cmp.test.js +129 -0
- package/dist/collection/theme/test/presets.unit.test.js +40 -0
- package/dist/collection/theme/tokens.js +960 -0
- 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 +236 -0
- package/dist/collection/utils/form-control-validity.js +44 -0
- package/dist/collection/utils/form-field-adapter.js +44 -0
- package/dist/collection/utils/form-field-state.js +45 -0
- package/dist/collection/utils/form-reset-action.js +60 -0
- package/dist/collection/utils/form-submit-action.js +151 -0
- package/dist/collection/utils/form-submit-action.unit.test.js +15 -0
- package/dist/collection/utils/image-crop.js +47 -0
- package/dist/collection/utils/image-crop.unit.test.js +57 -0
- package/dist/collection/utils/math.js +19 -0
- package/dist/collection/utils/utils.js +28 -0
- package/dist/collection/utils/utils.unit.test.js +16 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-6PPZ2sIO.js +1 -0
- package/dist/components/p-B4Mg1xEw.js +1 -0
- package/dist/components/p-BH4gQWub.js +1 -0
- package/dist/components/p-BIIQL66b.js +1 -0
- package/dist/components/p-BJiYCN3i.js +1 -0
- package/dist/components/p-BOdNg0jc.js +1 -0
- package/dist/components/p-BcL0NVv0.js +1 -0
- package/dist/components/p-Bj2RJb2E.js +1 -0
- package/dist/components/p-BofcK-7Z.js +1 -0
- package/dist/components/p-ByfrUWx1.js +1 -0
- package/dist/components/p-CGZPmEUB.js +1 -0
- package/dist/components/p-CGml_DQ8.js +1 -0
- package/dist/components/p-CKuPOxKN.js +1 -0
- package/dist/components/p-CN1ut2Lb.js +1 -0
- package/dist/components/p-C_RztzNv.js +5 -0
- package/dist/components/p-Cg0Mv7Vb.js +1 -0
- package/dist/components/p-CoIMrUb3.js +1 -0
- package/dist/components/p-CpI3m4_T.js +1 -0
- package/dist/components/p-DKrPmn2y.js +13 -0
- package/dist/components/p-DQhiqYeq.js +1 -0
- package/dist/components/p-DYMWBqU1.js +5 -0
- package/dist/components/p-Dfp_If-_.js +1 -0
- package/dist/components/p-DlIn_ZWk.js +1 -0
- package/dist/components/p-DstNl_WY.js +1 -0
- package/dist/components/p-DuX-9GOi.js +1 -0
- package/dist/components/p-SzKf4WZF.js +1 -0
- package/dist/components/p-ye27qtRo.js +1 -0
- package/dist/components/q-accordion.d.ts +11 -0
- package/dist/components/q-accordion.js +1 -0
- package/dist/components/q-alert.d.ts +11 -0
- 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-banner.d.ts +11 -0
- package/dist/components/q-banner.js +1 -0
- package/dist/components/q-button.d.ts +11 -0
- package/dist/components/q-button.js +1 -0
- package/dist/components/q-card.d.ts +11 -0
- package/dist/components/q-card.js +1 -0
- package/dist/components/q-carousel.d.ts +11 -0
- package/dist/components/q-carousel.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/q-data-table.js +1 -0
- package/dist/components/q-dialog.d.ts +11 -0
- package/dist/components/q-dialog.js +1 -0
- package/dist/components/q-dropdown.d.ts +11 -0
- package/dist/components/q-dropdown.js +1 -0
- package/dist/components/q-form.d.ts +11 -0
- package/dist/components/q-form.js +1 -0
- package/dist/components/q-grid.d.ts +11 -0
- package/dist/components/q-grid.js +1 -0
- package/dist/components/q-icon.d.ts +11 -0
- package/dist/components/q-icon.js +1 -0
- package/dist/components/q-image-comparison.d.ts +11 -0
- package/dist/components/q-image-comparison.js +1 -0
- package/dist/components/q-inline.d.ts +11 -0
- package/dist/components/q-inline.js +1 -0
- package/dist/components/q-input.d.ts +11 -0
- package/dist/components/q-input.js +1 -0
- 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-media.d.ts +11 -0
- package/dist/components/q-media.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.d.ts +11 -0
- package/dist/components/q-quantity-selector.js +1 -0
- package/dist/components/q-radio-group.d.ts +11 -0
- package/dist/components/q-radio-group.js +1 -0
- package/dist/components/q-reel.d.ts +11 -0
- package/dist/components/q-reel.js +1 -0
- package/dist/components/q-scrollable.d.ts +11 -0
- package/dist/components/q-scrollable.js +1 -0
- package/dist/components/q-section.d.ts +11 -0
- package/dist/components/q-section.js +1 -0
- package/dist/components/q-sidepanel.d.ts +11 -0
- package/dist/components/q-sidepanel.js +13 -0
- package/dist/components/q-stack.d.ts +11 -0
- package/dist/components/q-stack.js +1 -0
- package/dist/components/q-step-diagram-item.d.ts +11 -0
- package/dist/components/q-step-diagram-item.js +1 -0
- package/dist/components/q-step-diagram.d.ts +11 -0
- package/dist/components/q-step-diagram.js +1 -0
- package/dist/components/q-syntax-box.d.ts +11 -0
- package/dist/components/q-syntax-box.js +13 -0
- package/dist/components/q-tabs.d.ts +11 -0
- package/dist/components/q-tabs.js +1 -0
- package/dist/components/q-textarea.d.ts +11 -0
- package/dist/components/q-textarea.js +1 -0
- package/dist/components/q-thumbnail.d.ts +11 -0
- package/dist/components/q-thumbnail.js +1 -0
- package/dist/components/q-toast.d.ts +11 -0
- package/dist/components/q-toast.js +1 -0
- package/dist/components/q-toggle.d.ts +11 -0
- package/dist/components/q-toggle.js +1 -0
- package/dist/components/q-toolbar.d.ts +11 -0
- package/dist/components/q-toolbar.js +1 -0
- package/dist/components/q-tooltip.d.ts +11 -0
- package/dist/components/q-tooltip.js +1 -0
- package/dist/esm/Leaflet.GoogleMutant-MpxOb4Jm.js +766 -0
- package/dist/esm/action.props-CpnGza8z.js +32 -0
- package/dist/esm/chevron-up-DKrPmn2y.js +27 -0
- package/dist/esm/collection-identity-CGZPmEUB.js +138 -0
- package/dist/esm/data-table-cell-SzKf4WZF.js +46 -0
- package/dist/esm/dom-ByfrUWx1.js +238 -0
- package/dist/esm/field-zfD6OQ02.js +11 -0
- package/dist/esm/form-control-validity-Bj2RJb2E.js +46 -0
- package/dist/esm/form-field-adapter-CGml_DQ8.js +46 -0
- package/dist/esm/form-field-state-DstNl_WY.js +47 -0
- package/dist/esm/form-submit-action-CoEIvDqE.js +213 -0
- package/dist/esm/image-crop-BcL0NVv0.js +49 -0
- package/dist/esm/index-B5ElFlHv.js +1858 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/leaflet-maplibre-gl-BvKlNmWf.js +1020 -0
- package/dist/esm/leaflet-src-DYMWBqU1.js +14547 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/map.types-CoIMrUb3.js +14 -0
- package/dist/esm/q-accordion.entry.js +16 -0
- package/dist/esm/q-alert.entry.js +50 -0
- package/dist/esm/q-avatar.entry.js +99 -0
- package/dist/esm/q-banner.entry.js +17 -0
- package/dist/esm/q-button_2.entry.js +459 -0
- package/dist/esm/q-card.entry.js +86 -0
- package/dist/esm/q-carousel.entry.js +716 -0
- 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 +609 -0
- package/dist/esm/q-dialog.entry.js +269 -0
- package/dist/esm/q-dropdown.entry.js +697 -0
- package/dist/esm/q-form.entry.js +1000 -0
- package/dist/esm/q-grid.entry.js +22 -0
- package/dist/esm/q-icon.entry.js +437 -0
- package/dist/esm/q-image-comparison.entry.js +199 -0
- package/dist/esm/q-inline.entry.js +20 -0
- package/dist/esm/q-input_2.entry.js +435 -0
- package/dist/esm/q-link.entry.js +78 -0
- package/dist/esm/q-map.entry.js +3507 -0
- package/dist/esm/q-media.entry.js +19 -0
- package/dist/esm/q-navbar.entry.js +413 -0
- package/dist/esm/q-pagination.entry.js +66 -0
- package/dist/esm/q-panel.entry.js +74 -0
- package/dist/esm/q-quantity-selector.entry.js +202 -0
- package/dist/esm/q-radio-group.entry.js +259 -0
- package/dist/esm/q-reel.entry.js +168 -0
- package/dist/esm/q-scrollable.entry.js +447 -0
- package/dist/esm/q-section.entry.js +18 -0
- package/dist/esm/q-sidepanel.entry.js +791 -0
- package/dist/esm/q-stack.entry.js +18 -0
- package/dist/esm/q-step-diagram-item.entry.js +43 -0
- package/dist/esm/q-step-diagram.entry.js +54 -0
- package/dist/esm/q-syntax-box.entry.js +780 -0
- package/dist/esm/q-tabs.entry.js +153 -0
- package/dist/esm/q-textarea.entry.js +293 -0
- package/dist/esm/q-thumbnail.entry.js +49 -0
- package/dist/esm/q-toast.entry.js +398 -0
- package/dist/esm/q-toggle.entry.js +231 -0
- package/dist/esm/q-toolbar.entry.js +31 -0
- package/dist/esm/registry-CpI3m4_T.js +308 -0
- package/dist/esm/toast-controller-BIIQL66b.js +107 -0
- package/dist/esm/tokens-B4Mg1xEw.js +953 -0
- package/dist/esm/utils-BJiYCN3i.js +30 -0
- package/dist/esm/webquark.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/types/components/actions/action.props.d.ts +19 -0
- package/dist/types/components/actions/button/button.d.ts +87 -0
- package/dist/types/components/actions/button/button.types.d.ts +6 -0
- package/dist/types/components/actions/button/button.utils.d.ts +8 -0
- package/dist/types/components/actions/button/test/button-slots.cmp.test.d.ts +1 -0
- package/dist/types/components/actions/button/test/button.utils.unit.test.d.ts +1 -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/communication/alert/alert.d.ts +32 -0
- package/dist/types/components/communication/alert/alert.types.d.ts +2 -0
- package/dist/types/components/communication/conversation-bubble/conversation-bubble.d.ts +38 -0
- package/dist/types/components/communication/conversation-bubble/conversation-bubble.types.d.ts +1 -0
- package/dist/types/components/communication/toast/internals/icons.d.ts +2 -0
- package/dist/types/components/communication/toast/internals/queue.d.ts +19 -0
- package/dist/types/components/communication/toast/internals/timers.d.ts +12 -0
- package/dist/types/components/communication/toast/test/toast.cmp.test.d.ts +2 -0
- package/dist/types/components/communication/toast/test/toast.unit.test.d.ts +1 -0
- package/dist/types/components/communication/toast/toast-controller.d.ts +9 -0
- package/dist/types/components/communication/toast/toast.d.ts +44 -0
- package/dist/types/components/communication/toast/toast.types.d.ts +30 -0
- package/dist/types/components/content/banner/banner.d.ts +12 -0
- package/dist/types/components/content/banner/banner.types.d.ts +2 -0
- package/dist/types/components/content/card/card.d.ts +35 -0
- package/dist/types/components/content/card/card.types.d.ts +1 -0
- package/dist/types/components/content/card/card.utils.d.ts +5 -0
- package/dist/types/components/content/carousel/carousel.d.ts +123 -0
- package/dist/types/components/content/carousel/carousel.types.d.ts +10 -0
- package/dist/types/components/content/carousel/carousel.utils.d.ts +1 -0
- package/dist/types/components/content/carousel/internals/autoplay.d.ts +22 -0
- package/dist/types/components/content/carousel/internals/metrics.d.ts +23 -0
- package/dist/types/components/content/carousel/internals/slide-state.d.ts +8 -0
- package/dist/types/components/content/carousel/test/transitions.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/accordion/accordion.d.ts +9 -0
- package/dist/types/components/data-display/accordion/accordion.types.d.ts +1 -0
- package/dist/types/components/data-display/chip/chip.d.ts +55 -0
- package/dist/types/components/data-display/chip/chip.types.d.ts +13 -0
- package/dist/types/components/data-display/data-table/data-table-cell.d.ts +7 -0
- package/dist/types/components/data-display/data-table/data-table.d.ts +95 -0
- package/dist/types/components/data-display/data-table/data-table.types.d.ts +56 -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 +13 -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 +56 -0
- package/dist/types/components/data-display/data-table/test/row-gutter.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/data-table/test/two-line-rows.cmp.test.d.ts +1 -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 +57 -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 +175 -0
- package/dist/types/components/data-display/map/map.types.d.ts +132 -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/formatter.d.ts +15 -0
- package/dist/types/components/data-display/syntax-box/internals/formatter.unit.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/internals/syntax.d.ts +13 -0
- package/dist/types/components/data-display/syntax-box/internals/syntax.unit.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/internals/value-sync.d.ts +15 -0
- package/dist/types/components/data-display/syntax-box/internals/value-sync.unit.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +72 -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/data-display/syntax-box/test/format-fixtures.d.ts +6 -0
- package/dist/types/components/data-display/syntax-box/test/syntax-box.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/test/syntax-fixtures.d.ts +9 -0
- package/dist/types/components/data-display/syntax-box/test/syntax-format.cmp.test.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 +19 -0
- package/dist/types/components/indicators/step-diagram/step-diagram.types.d.ts +3 -0
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.d.ts +26 -0
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.types.d.ts +5 -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 +108 -0
- package/dist/types/components/inputs/dropdown/dropdown.types.d.ts +9 -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/form/form.d.ts +80 -0
- package/dist/types/components/inputs/form/form.types.d.ts +40 -0
- package/dist/types/components/inputs/form/internals/controls.d.ts +8 -0
- package/dist/types/components/inputs/form/internals/enter-behavior.d.ts +2 -0
- package/dist/types/components/inputs/form/internals/field-state.d.ts +19 -0
- package/dist/types/components/inputs/form/internals/reset.d.ts +3 -0
- package/dist/types/components/inputs/form/internals/submission.d.ts +17 -0
- package/dist/types/components/inputs/form/internals/values.d.ts +10 -0
- package/dist/types/components/inputs/form/internals/values.unit.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-reset-state.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-submit-transport.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-submit.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-values.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form.cmp.test.d.ts +4 -0
- package/dist/types/components/inputs/input/input.d.ts +89 -0
- package/dist/types/components/inputs/input/input.types.d.ts +3 -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/inputs/quantity-selector/quantity-selector.d.ts +37 -0
- package/dist/types/components/inputs/quantity-selector/quantity-selector.types.d.ts +3 -0
- package/dist/types/components/inputs/radio-group/radio-group.d.ts +70 -0
- package/dist/types/components/inputs/radio-group/radio-group.types.d.ts +12 -0
- package/dist/types/components/inputs/radio-group/radio-group.utils.d.ts +2 -0
- package/dist/types/components/inputs/textarea/textarea.d.ts +79 -0
- package/dist/types/components/inputs/textarea/textarea.types.d.ts +1 -0
- package/dist/types/components/inputs/toggle/toggle.d.ts +67 -0
- package/dist/types/components/inputs/toggle/toggle.types.d.ts +3 -0
- package/dist/types/components/inputs/toggle/toggle.utils.d.ts +1 -0
- package/dist/types/components/layout/grid/grid.d.ts +13 -0
- package/dist/types/components/layout/inline/inline.d.ts +12 -0
- package/dist/types/components/layout/navbar/navbar.d.ts +94 -0
- package/dist/types/components/layout/navbar/navbar.types.d.ts +33 -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 +41 -0
- package/dist/types/components/layout/panel/panel.types.d.ts +3 -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/section/section.d.ts +13 -0
- package/dist/types/components/layout/section/section.types.d.ts +1 -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 +110 -0
- package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +43 -0
- package/dist/types/components/layout/sidepanel/sidepanel.utils.d.ts +2 -0
- package/dist/types/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/sidepanel/test/panel-transitions.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/stack/stack.d.ts +10 -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 +27 -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 +48 -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/fetch-icon.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/policy.d.ts +19 -0
- package/dist/types/components/media/icon/internals/policy.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/registry-lucide.unit.test.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/icon/internals/url.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/test/icon-fixtures.d.ts +4 -0
- package/dist/types/components/media/icon/test/icon.cmp.test.d.ts +1 -0
- package/dist/types/components/media/image-comparison/image-comparison.d.ts +63 -0
- package/dist/types/components/media/image-comparison/test/image-comparison.cmp.test.d.ts +1 -0
- package/dist/types/components/media/media/media.d.ts +13 -0
- package/dist/types/components/media/media/media.types.d.ts +2 -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 +83 -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/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 +33 -0
- package/dist/types/components/overlays/tooltip/tooltip.types.d.ts +1 -0
- package/dist/types/components/shared/field.d.ts +3 -0
- package/dist/types/components/shared/test/orientation.cmp.test.d.ts +1 -0
- package/dist/types/components.d.ts +6047 -0
- package/dist/types/declarations.d.ts +14 -0
- package/dist/types/index.d.ts +31 -0
- package/dist/types/stencil-public-runtime.d.ts +1879 -0
- package/dist/types/theme/test/assets.d.ts +4 -0
- package/dist/types/theme/test/foundation.cmp.test.d.ts +16 -0
- package/dist/types/theme/test/presets.cmp.test.d.ts +7 -0
- package/dist/types/theme/test/presets.unit.test.d.ts +1 -0
- package/dist/types/theme/tokens.d.ts +141 -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 +68 -0
- package/dist/types/utils/form-control-validity.d.ts +14 -0
- package/dist/types/utils/form-field-adapter.d.ts +17 -0
- package/dist/types/utils/form-field-state.d.ts +4 -0
- package/dist/types/utils/form-reset-action.d.ts +5 -0
- package/dist/types/utils/form-submit-action.d.ts +17 -0
- package/dist/types/utils/form-submit-action.unit.test.d.ts +1 -0
- package/dist/types/utils/image-crop.d.ts +30 -0
- package/dist/types/utils/image-crop.unit.test.d.ts +1 -0
- package/dist/types/utils/math.d.ts +10 -0
- package/dist/types/utils/utils.d.ts +11 -0
- package/dist/types/utils/utils.unit.test.d.ts +1 -0
- package/dist/webquark/index.esm.js +1 -0
- package/dist/webquark/native-content.css +24 -0
- package/dist/webquark/p-023f8437.entry.js +1 -0
- package/dist/webquark/p-030ecde3.entry.js +1 -0
- package/dist/webquark/p-04c8cb9e.entry.js +1 -0
- package/dist/webquark/p-059daa8a.entry.js +1 -0
- package/dist/webquark/p-09cca7b9.entry.js +1 -0
- package/dist/webquark/p-0aa74ad6.entry.js +1 -0
- package/dist/webquark/p-0ae43d6c.entry.js +1 -0
- package/dist/webquark/p-0c3aac3f.entry.js +1 -0
- package/dist/webquark/p-144ef339.entry.js +1 -0
- package/dist/webquark/p-296fbdb1.entry.js +1 -0
- package/dist/webquark/p-36118d90.entry.js +1 -0
- package/dist/webquark/p-3bc4629c.entry.js +1 -0
- package/dist/webquark/p-48fb5228.entry.js +1 -0
- package/dist/webquark/p-4d61b70d.entry.js +1 -0
- package/dist/webquark/p-5f232b44.entry.js +13 -0
- package/dist/webquark/p-64096386.entry.js +1 -0
- package/dist/webquark/p-6bfffa79.entry.js +1 -0
- package/dist/webquark/p-6e28cfe2.entry.js +1 -0
- package/dist/webquark/p-70d9ffde.entry.js +1 -0
- package/dist/webquark/p-888e46a8.entry.js +1 -0
- package/dist/webquark/p-8ece2c62.entry.js +1 -0
- package/dist/webquark/p-90b0858c.entry.js +1 -0
- package/dist/webquark/p-91fff6b6.entry.js +1 -0
- package/dist/webquark/p-923dac41.entry.js +1 -0
- package/dist/webquark/p-97a89cae.entry.js +1 -0
- package/dist/webquark/p-99d785ca.entry.js +1 -0
- package/dist/webquark/p-9e78b796.entry.js +1 -0
- package/dist/webquark/p-9ff7e5a4.entry.js +1 -0
- package/dist/webquark/p-B4Mg1xEw.js +1 -0
- package/dist/webquark/p-B5ElFlHv.js +3 -0
- package/dist/webquark/p-BIIQL66b.js +1 -0
- package/dist/webquark/p-BJiYCN3i.js +1 -0
- package/dist/webquark/p-BOdNg0jc.js +1 -0
- package/dist/webquark/p-BcL0NVv0.js +1 -0
- package/dist/webquark/p-Bj2RJb2E.js +1 -0
- package/dist/webquark/p-ByfrUWx1.js +1 -0
- package/dist/webquark/p-CGZPmEUB.js +1 -0
- package/dist/webquark/p-CGml_DQ8.js +1 -0
- package/dist/webquark/p-C_RztzNv.js +5 -0
- package/dist/webquark/p-CoIMrUb3.js +1 -0
- package/dist/webquark/p-CpI3m4_T.js +1 -0
- package/dist/webquark/p-DKrPmn2y.js +13 -0
- package/dist/webquark/p-DWO-pleQ.js +1 -0
- package/dist/webquark/p-DYMWBqU1.js +5 -0
- package/dist/webquark/p-Dhsn99q4.js +1 -0
- package/dist/webquark/p-DstNl_WY.js +1 -0
- package/dist/webquark/p-DuX-9GOi.js +1 -0
- package/dist/webquark/p-SzKf4WZF.js +1 -0
- package/dist/webquark/p-c523ec6f.entry.js +1 -0
- package/dist/webquark/p-d0253d64.entry.js +1 -0
- package/dist/webquark/p-d0fbd2b1.entry.js +1 -0
- package/dist/webquark/p-dd115868.entry.js +1 -0
- package/dist/webquark/p-f1bac94c.entry.js +1 -0
- package/dist/webquark/p-f4f97e74.entry.js +1 -0
- package/dist/webquark/p-f63b7214.entry.js +1 -0
- package/dist/webquark/p-f98f9439.entry.js +1 -0
- package/dist/webquark/p-f9ad63ff.entry.js +1 -0
- package/dist/webquark/p-fe200f68.entry.js +1 -0
- package/dist/webquark/p-fe8c634a.entry.js +13 -0
- package/dist/webquark/p-fec6fe0a.entry.js +1 -0
- package/dist/webquark/webquark.css +1 -0
- package/dist/webquark/webquark.esm.js +1 -0
- package/package.json +78 -4
|
@@ -0,0 +1,1236 @@
|
|
|
1
|
+
import { isFieldDisabled, syncFieldHost } from "../../../utils/form-field-state";
|
|
2
|
+
import { registerFormField } from "../../../utils/form-field-adapter";
|
|
3
|
+
import { fieldFeedback, feedbackStyle } from "../../shared/field";
|
|
4
|
+
import { h } from "@stencil/core";
|
|
5
|
+
import { identifyItems } from "../../../utils/collection-identity";
|
|
6
|
+
import { getDropdownOptions, getFilteredOptions, getOptionLabel, getSelectedOption, getVisibleOptions } from "./internals/options";
|
|
7
|
+
import { computeDropdownPosition } from "./internals/position";
|
|
8
|
+
const MENU_OFFSET = 4;
|
|
9
|
+
/**
|
|
10
|
+
* Form-associated dropdown/select control with optional search, incremental option rendering,
|
|
11
|
+
* and externally loaded option pages.
|
|
12
|
+
* @slot icon-left - Optional leading content rendered inside the trigger.
|
|
13
|
+
* @part label - Optional field label.
|
|
14
|
+
* @part trigger - Button that opens the option menu.
|
|
15
|
+
* @part menu - Floating option menu.
|
|
16
|
+
*/
|
|
17
|
+
export class QDropdown {
|
|
18
|
+
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
19
|
+
label;
|
|
20
|
+
/** Accessible name for the trigger and option list when no visible label is available. */
|
|
21
|
+
ariaLabel = null;
|
|
22
|
+
/** Supporting text, replaced by an active error. */
|
|
23
|
+
description;
|
|
24
|
+
placeholder = 'Select an option...';
|
|
25
|
+
/** Options to render; strings use the same text for label and value, while objects allow separate values. */
|
|
26
|
+
options = [];
|
|
27
|
+
value = '';
|
|
28
|
+
/** Keep the label accessible without displaying it. */
|
|
29
|
+
labelHidden = false;
|
|
30
|
+
/** Omitted inherits the enclosing form; false cancels reservation. */
|
|
31
|
+
reserveFeedback;
|
|
32
|
+
size = 'inherit';
|
|
33
|
+
searchable = false;
|
|
34
|
+
/** Delegates filtering and pagination to the consumer. */
|
|
35
|
+
externalSearch = false;
|
|
36
|
+
/** Indicates another externally loaded option page is available. */
|
|
37
|
+
hasMore = false;
|
|
38
|
+
loading = false;
|
|
39
|
+
/** `auto` uses a side with sufficient viewport space. */
|
|
40
|
+
placement = 'auto';
|
|
41
|
+
/** Minimum distance maintained between the open menu and viewport edges. */
|
|
42
|
+
collisionPadding = 8;
|
|
43
|
+
disabled = false;
|
|
44
|
+
required = false;
|
|
45
|
+
/** Custom validation error; independent of currently loaded options. */
|
|
46
|
+
error;
|
|
47
|
+
name;
|
|
48
|
+
isOpen = false;
|
|
49
|
+
focusedIndex = -1;
|
|
50
|
+
searchTerm = '';
|
|
51
|
+
visibleCount = 20;
|
|
52
|
+
isScrollingLoading = false;
|
|
53
|
+
el;
|
|
54
|
+
internals;
|
|
55
|
+
/** Emitted with the selected option value when selection changes. */
|
|
56
|
+
qChange;
|
|
57
|
+
/** Emitted with the selected option object when selection changes. */
|
|
58
|
+
qSelect;
|
|
59
|
+
/** Emitted with the current search term when a searchable dropdown uses external search. */
|
|
60
|
+
qSearch;
|
|
61
|
+
/** Emitted when an externally loaded option list reaches its scroll boundary. */
|
|
62
|
+
qLoadMore;
|
|
63
|
+
qFocus;
|
|
64
|
+
qBlur;
|
|
65
|
+
/** Emitted before the trigger toggles the menu. */
|
|
66
|
+
qClick;
|
|
67
|
+
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
68
|
+
disabledState = false;
|
|
69
|
+
get isDisabled() {
|
|
70
|
+
return isFieldDisabled(this.el, this.disabled);
|
|
71
|
+
}
|
|
72
|
+
triggerEl;
|
|
73
|
+
searchInputEl;
|
|
74
|
+
menuEl;
|
|
75
|
+
itemsListEl;
|
|
76
|
+
initialValue = '';
|
|
77
|
+
scrollTimeout = null;
|
|
78
|
+
positionFrame = null;
|
|
79
|
+
floatingCleanup;
|
|
80
|
+
floatingResizeObserver;
|
|
81
|
+
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
82
|
+
disconnectedCallback() {
|
|
83
|
+
this.clearScrollLoading();
|
|
84
|
+
this.stopFloatingUpdates();
|
|
85
|
+
}
|
|
86
|
+
formDisabledCallback() {
|
|
87
|
+
this.syncValidity();
|
|
88
|
+
}
|
|
89
|
+
componentDidLoad() {
|
|
90
|
+
registerFormField(this.el, {
|
|
91
|
+
kind: 'selection',
|
|
92
|
+
owner: () => this.internals?.form ?? null,
|
|
93
|
+
active: () => true,
|
|
94
|
+
value: () => this.getFormSelection(),
|
|
95
|
+
assign: value => { this.value = value; },
|
|
96
|
+
reconcile: () => {
|
|
97
|
+
this.syncValidity();
|
|
98
|
+
},
|
|
99
|
+
reset: () => this.formResetCallback(),
|
|
100
|
+
validate: report => report ? this.internals?.reportValidity?.() ?? true : this.internals?.checkValidity?.() ?? true,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
componentDidRender() {
|
|
104
|
+
this.syncValidity();
|
|
105
|
+
if (this.isOpen) {
|
|
106
|
+
this.openFloatingMenu();
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this.stopFloatingUpdates();
|
|
110
|
+
}
|
|
111
|
+
watchValue(newValue) {
|
|
112
|
+
if (this.internals && typeof this.internals.setFormValue === 'function') {
|
|
113
|
+
this.internals.setFormValue(newValue);
|
|
114
|
+
}
|
|
115
|
+
this.syncValidity();
|
|
116
|
+
}
|
|
117
|
+
syncValidity() {
|
|
118
|
+
const disabled = syncFieldHost(this.el, this.disabled, this.name, this.required);
|
|
119
|
+
if (this.disabledState !== disabled)
|
|
120
|
+
this.disabledState = disabled;
|
|
121
|
+
if (this.triggerEl)
|
|
122
|
+
this.triggerEl.disabled = disabled;
|
|
123
|
+
if (this.searchInputEl)
|
|
124
|
+
this.searchInputEl.disabled = disabled;
|
|
125
|
+
if (disabled && this.isOpen) {
|
|
126
|
+
this.isOpen = false;
|
|
127
|
+
this.stopFloatingUpdates();
|
|
128
|
+
}
|
|
129
|
+
const selected = this.getFormSelection();
|
|
130
|
+
this.internals?.setFormValue?.(disabled ? null : selected);
|
|
131
|
+
if (typeof this.internals?.setValidity !== 'function')
|
|
132
|
+
return;
|
|
133
|
+
const message = this.isDisabled ? '' : this.error?.trim() || (this.required && (!this.value || selected === null) ? 'Please select an option.' : '');
|
|
134
|
+
this.internals.setValidity(message ? this.error?.trim() ? { customError: true } : { valueMissing: true } : {}, message, this.triggerEl);
|
|
135
|
+
}
|
|
136
|
+
async checkValidity() {
|
|
137
|
+
this.syncValidity();
|
|
138
|
+
return this.isDisabled || !(this.error?.trim() || (this.required && (!this.value || this.getFormSelection() === null)));
|
|
139
|
+
}
|
|
140
|
+
async reportValidity() {
|
|
141
|
+
const valid = await this.checkValidity();
|
|
142
|
+
if (!valid) {
|
|
143
|
+
this.triggerEl?.focus();
|
|
144
|
+
this.internals?.reportValidity?.();
|
|
145
|
+
}
|
|
146
|
+
return valid;
|
|
147
|
+
}
|
|
148
|
+
async focusElement() {
|
|
149
|
+
this.triggerEl?.focus();
|
|
150
|
+
}
|
|
151
|
+
watchOptions() {
|
|
152
|
+
this.syncValidity();
|
|
153
|
+
if (this.externalSearch) {
|
|
154
|
+
this.isScrollingLoading = false;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
watchLoading(newValue) {
|
|
158
|
+
if (!newValue) {
|
|
159
|
+
this.isScrollingLoading = false;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
componentWillLoad() {
|
|
163
|
+
this.initialValue = this.value || '';
|
|
164
|
+
if (this.internals && typeof this.internals.setFormValue === 'function') {
|
|
165
|
+
this.internals.setFormValue(this.value);
|
|
166
|
+
}
|
|
167
|
+
if (!this.searchTerm) {
|
|
168
|
+
this.searchTerm = '';
|
|
169
|
+
}
|
|
170
|
+
this.syncValidity();
|
|
171
|
+
}
|
|
172
|
+
formResetCallback() {
|
|
173
|
+
this.value = this.initialValue;
|
|
174
|
+
if (this.internals && typeof this.internals.setFormValue === 'function') {
|
|
175
|
+
this.internals.setFormValue(this.value);
|
|
176
|
+
}
|
|
177
|
+
this.syncValidity();
|
|
178
|
+
}
|
|
179
|
+
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
180
|
+
getFormSelection() {
|
|
181
|
+
const selected = getSelectedOption(getDropdownOptions(this.options), this.value);
|
|
182
|
+
if (selected && selected.disabled !== true)
|
|
183
|
+
return selected.value;
|
|
184
|
+
return this.externalSearch && !selected && this.value ? this.value : null;
|
|
185
|
+
}
|
|
186
|
+
clearScrollLoading() {
|
|
187
|
+
this.isScrollingLoading = false;
|
|
188
|
+
if (this.scrollTimeout !== null) {
|
|
189
|
+
clearTimeout(this.scrollTimeout);
|
|
190
|
+
this.scrollTimeout = null;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
getOptionLabel(option) {
|
|
194
|
+
return getOptionLabel(option);
|
|
195
|
+
}
|
|
196
|
+
getAllOptions() {
|
|
197
|
+
return getDropdownOptions(this.options);
|
|
198
|
+
}
|
|
199
|
+
getSelectedOption(options = this.getAllOptions()) {
|
|
200
|
+
return getSelectedOption(options, this.value);
|
|
201
|
+
}
|
|
202
|
+
getFilteredOptions() {
|
|
203
|
+
if (this.externalSearch) {
|
|
204
|
+
return this.getAllOptions();
|
|
205
|
+
}
|
|
206
|
+
return getFilteredOptions(this.getAllOptions(), this.searchTerm, this.searchable);
|
|
207
|
+
}
|
|
208
|
+
get parsedOptions() {
|
|
209
|
+
if (this.externalSearch) {
|
|
210
|
+
return this.getFilteredOptions();
|
|
211
|
+
}
|
|
212
|
+
return getVisibleOptions(this.getFilteredOptions(), this.visibleCount);
|
|
213
|
+
}
|
|
214
|
+
toggleMenu = () => {
|
|
215
|
+
if (this.isDisabled)
|
|
216
|
+
return;
|
|
217
|
+
this.isOpen = !this.isOpen;
|
|
218
|
+
this.clearScrollLoading();
|
|
219
|
+
if (this.isOpen) {
|
|
220
|
+
this.searchTerm = '';
|
|
221
|
+
this.visibleCount = 20;
|
|
222
|
+
if (this.searchable) {
|
|
223
|
+
this.focusedIndex = -1;
|
|
224
|
+
requestAnimationFrame(() => focusWithoutScroll(this.searchInputEl));
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
const activeIdx = this.parsedOptions.findIndex(opt => opt.value === this.value);
|
|
228
|
+
const nextIdx = activeIdx >= 0 ? activeIdx : 0;
|
|
229
|
+
this.updateFocusedIndex(nextIdx);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
this.focusedIndex = -1;
|
|
234
|
+
this.searchTerm = '';
|
|
235
|
+
this.visibleCount = 20;
|
|
236
|
+
requestAnimationFrame(() => focusWithoutScroll(this.triggerEl));
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
handleSelect = (option) => {
|
|
240
|
+
if (this.isDisabled)
|
|
241
|
+
return;
|
|
242
|
+
this.value = option.value;
|
|
243
|
+
this.isOpen = false;
|
|
244
|
+
this.focusedIndex = -1;
|
|
245
|
+
this.searchTerm = '';
|
|
246
|
+
this.clearScrollLoading();
|
|
247
|
+
this.qChange.emit(option.value);
|
|
248
|
+
this.qSelect.emit(option);
|
|
249
|
+
requestAnimationFrame(() => focusWithoutScroll(this.triggerEl));
|
|
250
|
+
};
|
|
251
|
+
handleFocus = (ev) => {
|
|
252
|
+
this.qFocus.emit(ev);
|
|
253
|
+
};
|
|
254
|
+
handleBlur = (ev) => {
|
|
255
|
+
this.qBlur.emit(ev);
|
|
256
|
+
};
|
|
257
|
+
handleTriggerClick = (ev) => {
|
|
258
|
+
if (this.isDisabled)
|
|
259
|
+
return;
|
|
260
|
+
this.qClick.emit(ev);
|
|
261
|
+
this.toggleMenu();
|
|
262
|
+
};
|
|
263
|
+
handleSearchInput = (ev) => {
|
|
264
|
+
if (this.isDisabled)
|
|
265
|
+
return;
|
|
266
|
+
const target = ev.target;
|
|
267
|
+
this.searchTerm = target.value || '';
|
|
268
|
+
this.focusedIndex = -1;
|
|
269
|
+
this.visibleCount = 20;
|
|
270
|
+
this.clearScrollLoading();
|
|
271
|
+
if (this.externalSearch) {
|
|
272
|
+
this.qSearch.emit(this.searchTerm);
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
handleScroll = (ev) => {
|
|
276
|
+
const listEl = ev.target;
|
|
277
|
+
if (!listEl)
|
|
278
|
+
return;
|
|
279
|
+
const threshold = 5;
|
|
280
|
+
const isAtBottom = listEl.scrollHeight - listEl.scrollTop - listEl.clientHeight <= threshold;
|
|
281
|
+
if (isAtBottom && !this.isScrollingLoading) {
|
|
282
|
+
if (this.externalSearch) {
|
|
283
|
+
if (this.hasMore && !this.loading) {
|
|
284
|
+
this.isScrollingLoading = true;
|
|
285
|
+
this.qLoadMore.emit();
|
|
286
|
+
}
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
const totalCount = this.getFilteredOptions().length;
|
|
290
|
+
if (this.visibleCount < totalCount) {
|
|
291
|
+
this.isScrollingLoading = true;
|
|
292
|
+
if (this.scrollTimeout !== null) {
|
|
293
|
+
clearTimeout(this.scrollTimeout);
|
|
294
|
+
}
|
|
295
|
+
this.scrollTimeout = setTimeout(() => {
|
|
296
|
+
this.visibleCount = Math.min(this.visibleCount + 20, totalCount);
|
|
297
|
+
this.isScrollingLoading = false;
|
|
298
|
+
this.scrollTimeout = null;
|
|
299
|
+
}, 800);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
updateFocusedIndex(index) {
|
|
304
|
+
this.focusedIndex = index;
|
|
305
|
+
requestAnimationFrame(() => this.scrollFocusedOptionInsideList());
|
|
306
|
+
}
|
|
307
|
+
scrollFocusedOptionInsideList() {
|
|
308
|
+
const list = this.itemsListEl;
|
|
309
|
+
if (!list || this.focusedIndex < 0 || !this.isOpen) {
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
const option = this.el.shadowRoot?.querySelector(`#q-field-item-${this.focusedIndex}`);
|
|
313
|
+
if (!option) {
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
const optionTop = option.offsetTop;
|
|
317
|
+
const optionBottom = optionTop + option.offsetHeight;
|
|
318
|
+
const visibleTop = list.scrollTop;
|
|
319
|
+
const visibleBottom = visibleTop + list.clientHeight;
|
|
320
|
+
if (optionTop < visibleTop) {
|
|
321
|
+
list.scrollTop = optionTop;
|
|
322
|
+
}
|
|
323
|
+
else if (optionBottom > visibleBottom) {
|
|
324
|
+
list.scrollTop = optionBottom - list.clientHeight;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
openFloatingMenu() {
|
|
328
|
+
if (!this.menuEl || !this.triggerEl) {
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
showPopoverIfSupported(this.menuEl);
|
|
332
|
+
this.startFloatingUpdates();
|
|
333
|
+
this.scheduleMenuPosition();
|
|
334
|
+
}
|
|
335
|
+
startFloatingUpdates() {
|
|
336
|
+
if (this.floatingCleanup || !this.menuEl || !this.triggerEl) {
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
const update = () => this.scheduleMenuPosition();
|
|
340
|
+
window.addEventListener('resize', update);
|
|
341
|
+
window.addEventListener('scroll', update, true);
|
|
342
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
343
|
+
this.floatingResizeObserver = new ResizeObserver(update);
|
|
344
|
+
this.floatingResizeObserver.observe(this.triggerEl);
|
|
345
|
+
this.floatingResizeObserver.observe(this.menuEl);
|
|
346
|
+
}
|
|
347
|
+
this.floatingCleanup = () => {
|
|
348
|
+
window.removeEventListener('resize', update);
|
|
349
|
+
window.removeEventListener('scroll', update, true);
|
|
350
|
+
this.floatingResizeObserver?.disconnect();
|
|
351
|
+
this.floatingResizeObserver = undefined;
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
stopFloatingUpdates() {
|
|
355
|
+
if (this.positionFrame !== null) {
|
|
356
|
+
cancelAnimationFrame(this.positionFrame);
|
|
357
|
+
this.positionFrame = null;
|
|
358
|
+
}
|
|
359
|
+
this.floatingCleanup?.();
|
|
360
|
+
this.floatingCleanup = undefined;
|
|
361
|
+
if (this.menuEl) {
|
|
362
|
+
hidePopoverIfOpen(this.menuEl);
|
|
363
|
+
this.menuEl = undefined;
|
|
364
|
+
}
|
|
365
|
+
this.itemsListEl = undefined;
|
|
366
|
+
}
|
|
367
|
+
scheduleMenuPosition() {
|
|
368
|
+
if (this.positionFrame !== null) {
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
this.positionFrame = requestAnimationFrame(() => {
|
|
372
|
+
this.positionFrame = null;
|
|
373
|
+
this.positionFloatingMenu();
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
positionFloatingMenu() {
|
|
377
|
+
const trigger = this.triggerEl;
|
|
378
|
+
const menu = this.menuEl;
|
|
379
|
+
if (!this.isOpen || !trigger || !menu) {
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
showPopoverIfSupported(menu);
|
|
383
|
+
const triggerRect = trigger.getBoundingClientRect();
|
|
384
|
+
menu.style.visibility = 'hidden';
|
|
385
|
+
menu.style.left = '0px';
|
|
386
|
+
menu.style.top = '0px';
|
|
387
|
+
menu.style.width = `${triggerRect.width}px`;
|
|
388
|
+
menu.style.maxHeight = 'none';
|
|
389
|
+
const menuHeight = menu.getBoundingClientRect().height;
|
|
390
|
+
const position = computeDropdownPosition({
|
|
391
|
+
trigger: triggerRect,
|
|
392
|
+
menuHeight,
|
|
393
|
+
viewportWidth: window.innerWidth,
|
|
394
|
+
viewportHeight: window.innerHeight,
|
|
395
|
+
placement: this.placement,
|
|
396
|
+
collisionPadding: this.collisionPadding,
|
|
397
|
+
offset: MENU_OFFSET,
|
|
398
|
+
});
|
|
399
|
+
menu.dataset['placement'] = position.placement;
|
|
400
|
+
menu.style.left = `${position.left}px`;
|
|
401
|
+
menu.style.top = `${position.top}px`;
|
|
402
|
+
menu.style.width = `${position.width}px`;
|
|
403
|
+
menu.style.maxHeight = `${position.maxHeight}px`;
|
|
404
|
+
menu.style.visibility = 'visible';
|
|
405
|
+
}
|
|
406
|
+
handleKeyDown = (ev) => {
|
|
407
|
+
if (this.isDisabled)
|
|
408
|
+
return;
|
|
409
|
+
const target = ev.target;
|
|
410
|
+
const isInput = target && target.tagName && target.tagName.toLowerCase() === 'input';
|
|
411
|
+
const maxIndex = this.parsedOptions.length - 1;
|
|
412
|
+
switch (ev.key) {
|
|
413
|
+
case 'ArrowDown':
|
|
414
|
+
ev.preventDefault();
|
|
415
|
+
if (!this.isOpen) {
|
|
416
|
+
this.isOpen = true;
|
|
417
|
+
if (this.searchable) {
|
|
418
|
+
this.focusedIndex = -1;
|
|
419
|
+
requestAnimationFrame(() => focusWithoutScroll(this.searchInputEl));
|
|
420
|
+
}
|
|
421
|
+
else {
|
|
422
|
+
const activeIdx = this.parsedOptions.findIndex(opt => opt.value === this.value);
|
|
423
|
+
const nextIdx = activeIdx >= 0 ? activeIdx : 0;
|
|
424
|
+
this.updateFocusedIndex(nextIdx);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
else {
|
|
428
|
+
if (isInput) {
|
|
429
|
+
if (maxIndex >= 0) {
|
|
430
|
+
this.updateFocusedIndex(0);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
else {
|
|
434
|
+
const nextIdx = Math.min(this.focusedIndex + 1, maxIndex);
|
|
435
|
+
this.updateFocusedIndex(nextIdx);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
break;
|
|
439
|
+
case 'ArrowUp':
|
|
440
|
+
ev.preventDefault();
|
|
441
|
+
if (!this.isOpen) {
|
|
442
|
+
this.isOpen = true;
|
|
443
|
+
const activeIdx = this.parsedOptions.findIndex(opt => opt.value === this.value);
|
|
444
|
+
const nextIdx = activeIdx >= 0 ? activeIdx : maxIndex;
|
|
445
|
+
this.updateFocusedIndex(nextIdx);
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
if (this.focusedIndex === 0 && this.searchable) {
|
|
449
|
+
this.focusedIndex = -1;
|
|
450
|
+
requestAnimationFrame(() => focusWithoutScroll(this.searchInputEl));
|
|
451
|
+
}
|
|
452
|
+
else if (this.focusedIndex > 0) {
|
|
453
|
+
const nextIdx = this.focusedIndex - 1;
|
|
454
|
+
this.updateFocusedIndex(nextIdx);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
break;
|
|
458
|
+
case 'Home':
|
|
459
|
+
if (this.isOpen && !isInput) {
|
|
460
|
+
ev.preventDefault();
|
|
461
|
+
this.updateFocusedIndex(0);
|
|
462
|
+
}
|
|
463
|
+
break;
|
|
464
|
+
case 'End':
|
|
465
|
+
if (this.isOpen && !isInput) {
|
|
466
|
+
ev.preventDefault();
|
|
467
|
+
this.updateFocusedIndex(maxIndex);
|
|
468
|
+
}
|
|
469
|
+
break;
|
|
470
|
+
case 'Enter':
|
|
471
|
+
if (isInput) {
|
|
472
|
+
if (this.parsedOptions.length > 0) {
|
|
473
|
+
ev.preventDefault();
|
|
474
|
+
this.handleSelect(this.parsedOptions[0]);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
else {
|
|
478
|
+
ev.preventDefault();
|
|
479
|
+
if (this.isOpen && this.focusedIndex >= 0 && this.focusedIndex < this.parsedOptions.length) {
|
|
480
|
+
this.handleSelect(this.parsedOptions[this.focusedIndex]);
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
this.toggleMenu();
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
break;
|
|
487
|
+
case ' ':
|
|
488
|
+
if (!isInput) {
|
|
489
|
+
ev.preventDefault();
|
|
490
|
+
if (this.isOpen && this.focusedIndex >= 0 && this.focusedIndex < this.parsedOptions.length) {
|
|
491
|
+
this.handleSelect(this.parsedOptions[this.focusedIndex]);
|
|
492
|
+
}
|
|
493
|
+
else {
|
|
494
|
+
this.toggleMenu();
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
break;
|
|
498
|
+
case 'Escape':
|
|
499
|
+
if (this.isOpen) {
|
|
500
|
+
ev.preventDefault();
|
|
501
|
+
this.isOpen = false;
|
|
502
|
+
this.focusedIndex = -1;
|
|
503
|
+
this.searchTerm = '';
|
|
504
|
+
this.clearScrollLoading();
|
|
505
|
+
requestAnimationFrame(() => focusWithoutScroll(this.triggerEl));
|
|
506
|
+
}
|
|
507
|
+
break;
|
|
508
|
+
case 'Tab':
|
|
509
|
+
if (this.isOpen) {
|
|
510
|
+
this.isOpen = false;
|
|
511
|
+
this.focusedIndex = -1;
|
|
512
|
+
this.searchTerm = '';
|
|
513
|
+
this.clearScrollLoading();
|
|
514
|
+
}
|
|
515
|
+
break;
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
// Close dropdown if user clicks outside of the element
|
|
519
|
+
handleClickOutside(ev) {
|
|
520
|
+
const path = ev.composedPath();
|
|
521
|
+
if (this.el && !path.includes(this.el)) {
|
|
522
|
+
this.isOpen = false;
|
|
523
|
+
this.focusedIndex = -1;
|
|
524
|
+
this.searchTerm = '';
|
|
525
|
+
this.visibleCount = 20;
|
|
526
|
+
this.clearScrollLoading();
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
530
|
+
render() {
|
|
531
|
+
const allOptions = this.getAllOptions();
|
|
532
|
+
const opts = this.parsedOptions;
|
|
533
|
+
const identifiedOptions = identifyItems(opts, option => option.value, {
|
|
534
|
+
warningContext: 'q-dropdown options',
|
|
535
|
+
});
|
|
536
|
+
const selectedOption = this.getSelectedOption(allOptions);
|
|
537
|
+
const selectedLabel = this.getOptionLabel(selectedOption);
|
|
538
|
+
const displayLabel = selectedOption && selectedLabel ? selectedLabel : this.placeholder;
|
|
539
|
+
const hasSelection = selectedOption !== undefined;
|
|
540
|
+
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
541
|
+
return (h("div", { key: '1294d517bf3a3094421034b04c22ee248cfd0730', style: feedbackStyle(this.reserveFeedback), class: {
|
|
542
|
+
'dropdown-wrapper': true,
|
|
543
|
+
'is-open': this.isOpen,
|
|
544
|
+
'is-disabled': this.isDisabled,
|
|
545
|
+
[`size-${this.size}`]: true
|
|
546
|
+
}, onKeyDown: this.handleKeyDown }, this.label && (h("label", { key: '6e9b7ea8d8272669c307d3f00975cd2fb3a91db1', class: { 'dropdown-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), h("button", { key: 'ece6703623acdfc325f01a068e5dd0e85a85263e', ref: (el) => (this.triggerEl = el), id: "q-field", class: "dropdown-trigger", part: "trigger", type: "button", disabled: this.isDisabled, onClick: this.handleTriggerClick, onFocus: this.handleFocus, onBlur: this.handleBlur, "aria-haspopup": "listbox", "aria-required": this.required ? 'true' : 'false', "aria-invalid": this.error || (this.required && !this.value) ? 'true' : 'false', "aria-describedby": this.error || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": this.isOpen ? 'q-field-menu' : undefined, "aria-activedescendant": this.isOpen && this.focusedIndex >= 0 ? `q-field-item-${this.focusedIndex}` : undefined }, h("span", { key: 'a3c6a847dc3f04cdcc57c5222b70b0fe18d4d91b', class: "trigger-content" }, h("slot", { key: 'dce0925e5e0c11579e8e8e6a0c8b12555949ce06', name: "icon-left" }), h("span", { key: '60af77209db71dcc5fa49552ea098754e1c56699', class: { 'trigger-text': true, 'is-placeholder': !hasSelection } }, displayLabel)), h("svg", { key: '083f67294926fe7e9cac6f061015b0f99187a14c', class: "chevron-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: 'fc000f99b853cec98b05baf545d7d9deb58f903c', points: "6 9 12 15 18 9" }))), fieldFeedback('q-field-error', this.error, this.description), this.isOpen && (h("div", { key: '3fcf4fa46a7192bd5102218b86622ff68cfcf21e', ref: (el) => (this.menuEl = el), id: "q-field-menu", class: "dropdown-menu", part: "menu", role: "listbox", popover: "manual", "aria-label": ariaLabel || this.label || 'Options' }, this.searchable && (h("div", { key: '6da89836381e1fd4fdaa51567ef76efd115d82ab', class: "dropdown-search-container" }, h("input", { key: '65b9ddc1dd4a3d431e7550cba6c1cdebdbb2481a', ref: (el) => (this.searchInputEl = el), type: "text", class: "dropdown-search-input", placeholder: "Search...", value: this.searchTerm, onInput: this.handleSearchInput, role: "combobox", "aria-autocomplete": "list", "aria-controls": "q-field-menu", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-activedescendant": this.focusedIndex >= 0 ? `q-field-item-${this.focusedIndex}` : undefined }))), h("ul", { key: '6a0f2ed2711cbfd82ed61fd20ff9e19fc8563c3f', ref: (el) => (this.itemsListEl = el), class: "dropdown-items-list", onScroll: this.handleScroll }, opts.length === 0 && !this.loading ? (h("li", { class: "menu-item is-empty" }, "No matches found")) : (identifiedOptions.map(({ item: option, index, key }) => (h("li", { key: key, id: `q-field-item-${index}`, class: {
|
|
547
|
+
'menu-item': true,
|
|
548
|
+
'is-selected': option.value === this.value,
|
|
549
|
+
'is-focused': index === this.focusedIndex
|
|
550
|
+
}, tabindex: -1, part: `item ${option.value === this.value ? 'selected-item' : ''} ${index === this.focusedIndex ? 'focused-item' : ''}`, role: "option", "aria-selected": option.value === this.value ? 'true' : 'false', onClick: () => this.handleSelect(option) }, this.getOptionLabel(option))))), (this.loading || this.isScrollingLoading) && (h("li", { key: 'd79cc4772b8d99a809627de29ccd6da3fbbf2f01', class: "menu-item is-loading-more" }, h("span", { key: '2eea8fb3a471c7aeea5a7cb9e1d7c0be62b4ff5b', class: "spinner-circle" }), h("span", { key: '364f7e446f1f7b6ddad5087480f2ce4e88843ed6' }, "Loading..."))))))));
|
|
551
|
+
}
|
|
552
|
+
static get is() { return "q-dropdown"; }
|
|
553
|
+
static get encapsulation() { return "shadow"; }
|
|
554
|
+
static get delegatesFocus() { return true; }
|
|
555
|
+
static get formAssociated() { return true; }
|
|
556
|
+
static get originalStyleUrls() {
|
|
557
|
+
return {
|
|
558
|
+
"$": ["dropdown.css"]
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
static get styleUrls() {
|
|
562
|
+
return {
|
|
563
|
+
"$": ["dropdown.css"]
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
static get properties() {
|
|
567
|
+
return {
|
|
568
|
+
"label": {
|
|
569
|
+
"type": "string",
|
|
570
|
+
"mutable": false,
|
|
571
|
+
"complexType": {
|
|
572
|
+
"original": "string",
|
|
573
|
+
"resolved": "string",
|
|
574
|
+
"references": {}
|
|
575
|
+
},
|
|
576
|
+
"required": false,
|
|
577
|
+
"optional": true,
|
|
578
|
+
"docs": {
|
|
579
|
+
"tags": [],
|
|
580
|
+
"text": ""
|
|
581
|
+
},
|
|
582
|
+
"getter": false,
|
|
583
|
+
"setter": false,
|
|
584
|
+
"reflect": false,
|
|
585
|
+
"attribute": "label"
|
|
586
|
+
},
|
|
587
|
+
"ariaLabel": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"mutable": false,
|
|
590
|
+
"complexType": {
|
|
591
|
+
"original": "string | null",
|
|
592
|
+
"resolved": "string",
|
|
593
|
+
"references": {}
|
|
594
|
+
},
|
|
595
|
+
"required": false,
|
|
596
|
+
"optional": false,
|
|
597
|
+
"docs": {
|
|
598
|
+
"tags": [],
|
|
599
|
+
"text": "Accessible name for the trigger and option list when no visible label is available."
|
|
600
|
+
},
|
|
601
|
+
"getter": false,
|
|
602
|
+
"setter": false,
|
|
603
|
+
"reflect": false,
|
|
604
|
+
"attribute": "aria-label",
|
|
605
|
+
"defaultValue": "null"
|
|
606
|
+
},
|
|
607
|
+
"description": {
|
|
608
|
+
"type": "string",
|
|
609
|
+
"mutable": false,
|
|
610
|
+
"complexType": {
|
|
611
|
+
"original": "string",
|
|
612
|
+
"resolved": "string",
|
|
613
|
+
"references": {}
|
|
614
|
+
},
|
|
615
|
+
"required": false,
|
|
616
|
+
"optional": true,
|
|
617
|
+
"docs": {
|
|
618
|
+
"tags": [],
|
|
619
|
+
"text": "Supporting text, replaced by an active error."
|
|
620
|
+
},
|
|
621
|
+
"getter": false,
|
|
622
|
+
"setter": false,
|
|
623
|
+
"reflect": false,
|
|
624
|
+
"attribute": "description"
|
|
625
|
+
},
|
|
626
|
+
"placeholder": {
|
|
627
|
+
"type": "string",
|
|
628
|
+
"mutable": false,
|
|
629
|
+
"complexType": {
|
|
630
|
+
"original": "string",
|
|
631
|
+
"resolved": "string",
|
|
632
|
+
"references": {}
|
|
633
|
+
},
|
|
634
|
+
"required": false,
|
|
635
|
+
"optional": false,
|
|
636
|
+
"docs": {
|
|
637
|
+
"tags": [],
|
|
638
|
+
"text": ""
|
|
639
|
+
},
|
|
640
|
+
"getter": false,
|
|
641
|
+
"setter": false,
|
|
642
|
+
"reflect": false,
|
|
643
|
+
"attribute": "placeholder",
|
|
644
|
+
"defaultValue": "'Select an option...'"
|
|
645
|
+
},
|
|
646
|
+
"options": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"mutable": false,
|
|
649
|
+
"complexType": {
|
|
650
|
+
"original": "DropdownOptionInput[] | string",
|
|
651
|
+
"resolved": "DropdownOptionInput[] | string",
|
|
652
|
+
"references": {
|
|
653
|
+
"DropdownOptionInput": {
|
|
654
|
+
"location": "import",
|
|
655
|
+
"path": "./dropdown.types",
|
|
656
|
+
"id": "../../../src/browser/components/inputs/dropdown/dropdown.types.ts::DropdownOptionInput",
|
|
657
|
+
"referenceLocation": "DropdownOptionInput"
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"required": false,
|
|
662
|
+
"optional": false,
|
|
663
|
+
"docs": {
|
|
664
|
+
"tags": [],
|
|
665
|
+
"text": "Options to render; strings use the same text for label and value, while objects allow separate values."
|
|
666
|
+
},
|
|
667
|
+
"getter": false,
|
|
668
|
+
"setter": false,
|
|
669
|
+
"reflect": false,
|
|
670
|
+
"attribute": "options",
|
|
671
|
+
"defaultValue": "[]"
|
|
672
|
+
},
|
|
673
|
+
"value": {
|
|
674
|
+
"type": "string",
|
|
675
|
+
"mutable": true,
|
|
676
|
+
"complexType": {
|
|
677
|
+
"original": "string",
|
|
678
|
+
"resolved": "string",
|
|
679
|
+
"references": {}
|
|
680
|
+
},
|
|
681
|
+
"required": false,
|
|
682
|
+
"optional": false,
|
|
683
|
+
"docs": {
|
|
684
|
+
"tags": [],
|
|
685
|
+
"text": ""
|
|
686
|
+
},
|
|
687
|
+
"getter": false,
|
|
688
|
+
"setter": false,
|
|
689
|
+
"reflect": false,
|
|
690
|
+
"attribute": "value",
|
|
691
|
+
"defaultValue": "''"
|
|
692
|
+
},
|
|
693
|
+
"labelHidden": {
|
|
694
|
+
"type": "boolean",
|
|
695
|
+
"mutable": false,
|
|
696
|
+
"complexType": {
|
|
697
|
+
"original": "boolean",
|
|
698
|
+
"resolved": "boolean",
|
|
699
|
+
"references": {}
|
|
700
|
+
},
|
|
701
|
+
"required": false,
|
|
702
|
+
"optional": false,
|
|
703
|
+
"docs": {
|
|
704
|
+
"tags": [],
|
|
705
|
+
"text": "Keep the label accessible without displaying it."
|
|
706
|
+
},
|
|
707
|
+
"getter": false,
|
|
708
|
+
"setter": false,
|
|
709
|
+
"reflect": false,
|
|
710
|
+
"attribute": "label-hidden",
|
|
711
|
+
"defaultValue": "false"
|
|
712
|
+
},
|
|
713
|
+
"reserveFeedback": {
|
|
714
|
+
"type": "boolean",
|
|
715
|
+
"mutable": false,
|
|
716
|
+
"complexType": {
|
|
717
|
+
"original": "boolean",
|
|
718
|
+
"resolved": "boolean",
|
|
719
|
+
"references": {}
|
|
720
|
+
},
|
|
721
|
+
"required": false,
|
|
722
|
+
"optional": true,
|
|
723
|
+
"docs": {
|
|
724
|
+
"tags": [],
|
|
725
|
+
"text": "Omitted inherits the enclosing form; false cancels reservation."
|
|
726
|
+
},
|
|
727
|
+
"getter": false,
|
|
728
|
+
"setter": false,
|
|
729
|
+
"reflect": false,
|
|
730
|
+
"attribute": "reserve-feedback"
|
|
731
|
+
},
|
|
732
|
+
"size": {
|
|
733
|
+
"type": "string",
|
|
734
|
+
"mutable": false,
|
|
735
|
+
"complexType": {
|
|
736
|
+
"original": "QDropdownSize",
|
|
737
|
+
"resolved": "\"inherit\" | \"lg\" | \"md\" | \"sm\"",
|
|
738
|
+
"references": {
|
|
739
|
+
"QDropdownSize": {
|
|
740
|
+
"location": "import",
|
|
741
|
+
"path": "./dropdown.types",
|
|
742
|
+
"id": "../../../src/browser/components/inputs/dropdown/dropdown.types.ts::QDropdownSize",
|
|
743
|
+
"referenceLocation": "QDropdownSize"
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
"required": false,
|
|
748
|
+
"optional": false,
|
|
749
|
+
"docs": {
|
|
750
|
+
"tags": [],
|
|
751
|
+
"text": ""
|
|
752
|
+
},
|
|
753
|
+
"getter": false,
|
|
754
|
+
"setter": false,
|
|
755
|
+
"reflect": true,
|
|
756
|
+
"attribute": "size",
|
|
757
|
+
"defaultValue": "'inherit'"
|
|
758
|
+
},
|
|
759
|
+
"searchable": {
|
|
760
|
+
"type": "boolean",
|
|
761
|
+
"mutable": false,
|
|
762
|
+
"complexType": {
|
|
763
|
+
"original": "boolean",
|
|
764
|
+
"resolved": "boolean",
|
|
765
|
+
"references": {}
|
|
766
|
+
},
|
|
767
|
+
"required": false,
|
|
768
|
+
"optional": false,
|
|
769
|
+
"docs": {
|
|
770
|
+
"tags": [],
|
|
771
|
+
"text": ""
|
|
772
|
+
},
|
|
773
|
+
"getter": false,
|
|
774
|
+
"setter": false,
|
|
775
|
+
"reflect": false,
|
|
776
|
+
"attribute": "searchable",
|
|
777
|
+
"defaultValue": "false"
|
|
778
|
+
},
|
|
779
|
+
"externalSearch": {
|
|
780
|
+
"type": "boolean",
|
|
781
|
+
"mutable": false,
|
|
782
|
+
"complexType": {
|
|
783
|
+
"original": "boolean",
|
|
784
|
+
"resolved": "boolean",
|
|
785
|
+
"references": {}
|
|
786
|
+
},
|
|
787
|
+
"required": false,
|
|
788
|
+
"optional": false,
|
|
789
|
+
"docs": {
|
|
790
|
+
"tags": [],
|
|
791
|
+
"text": "Delegates filtering and pagination to the consumer."
|
|
792
|
+
},
|
|
793
|
+
"getter": false,
|
|
794
|
+
"setter": false,
|
|
795
|
+
"reflect": false,
|
|
796
|
+
"attribute": "external-search",
|
|
797
|
+
"defaultValue": "false"
|
|
798
|
+
},
|
|
799
|
+
"hasMore": {
|
|
800
|
+
"type": "boolean",
|
|
801
|
+
"mutable": false,
|
|
802
|
+
"complexType": {
|
|
803
|
+
"original": "boolean",
|
|
804
|
+
"resolved": "boolean",
|
|
805
|
+
"references": {}
|
|
806
|
+
},
|
|
807
|
+
"required": false,
|
|
808
|
+
"optional": false,
|
|
809
|
+
"docs": {
|
|
810
|
+
"tags": [],
|
|
811
|
+
"text": "Indicates another externally loaded option page is available."
|
|
812
|
+
},
|
|
813
|
+
"getter": false,
|
|
814
|
+
"setter": false,
|
|
815
|
+
"reflect": false,
|
|
816
|
+
"attribute": "has-more",
|
|
817
|
+
"defaultValue": "false"
|
|
818
|
+
},
|
|
819
|
+
"loading": {
|
|
820
|
+
"type": "boolean",
|
|
821
|
+
"mutable": false,
|
|
822
|
+
"complexType": {
|
|
823
|
+
"original": "boolean",
|
|
824
|
+
"resolved": "boolean",
|
|
825
|
+
"references": {}
|
|
826
|
+
},
|
|
827
|
+
"required": false,
|
|
828
|
+
"optional": false,
|
|
829
|
+
"docs": {
|
|
830
|
+
"tags": [],
|
|
831
|
+
"text": ""
|
|
832
|
+
},
|
|
833
|
+
"getter": false,
|
|
834
|
+
"setter": false,
|
|
835
|
+
"reflect": false,
|
|
836
|
+
"attribute": "loading",
|
|
837
|
+
"defaultValue": "false"
|
|
838
|
+
},
|
|
839
|
+
"placement": {
|
|
840
|
+
"type": "string",
|
|
841
|
+
"mutable": false,
|
|
842
|
+
"complexType": {
|
|
843
|
+
"original": "QDropdownPlacement",
|
|
844
|
+
"resolved": "\"auto\" | \"bottom\" | \"top\"",
|
|
845
|
+
"references": {
|
|
846
|
+
"QDropdownPlacement": {
|
|
847
|
+
"location": "import",
|
|
848
|
+
"path": "./dropdown.types",
|
|
849
|
+
"id": "../../../src/browser/components/inputs/dropdown/dropdown.types.ts::QDropdownPlacement",
|
|
850
|
+
"referenceLocation": "QDropdownPlacement"
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
"required": false,
|
|
855
|
+
"optional": false,
|
|
856
|
+
"docs": {
|
|
857
|
+
"tags": [],
|
|
858
|
+
"text": "`auto` uses a side with sufficient viewport space."
|
|
859
|
+
},
|
|
860
|
+
"getter": false,
|
|
861
|
+
"setter": false,
|
|
862
|
+
"reflect": false,
|
|
863
|
+
"attribute": "placement",
|
|
864
|
+
"defaultValue": "'auto'"
|
|
865
|
+
},
|
|
866
|
+
"collisionPadding": {
|
|
867
|
+
"type": "number",
|
|
868
|
+
"mutable": false,
|
|
869
|
+
"complexType": {
|
|
870
|
+
"original": "number",
|
|
871
|
+
"resolved": "number",
|
|
872
|
+
"references": {}
|
|
873
|
+
},
|
|
874
|
+
"required": false,
|
|
875
|
+
"optional": false,
|
|
876
|
+
"docs": {
|
|
877
|
+
"tags": [],
|
|
878
|
+
"text": "Minimum distance maintained between the open menu and viewport edges."
|
|
879
|
+
},
|
|
880
|
+
"getter": false,
|
|
881
|
+
"setter": false,
|
|
882
|
+
"reflect": false,
|
|
883
|
+
"attribute": "collision-padding",
|
|
884
|
+
"defaultValue": "8"
|
|
885
|
+
},
|
|
886
|
+
"disabled": {
|
|
887
|
+
"type": "boolean",
|
|
888
|
+
"mutable": false,
|
|
889
|
+
"complexType": {
|
|
890
|
+
"original": "boolean",
|
|
891
|
+
"resolved": "boolean",
|
|
892
|
+
"references": {}
|
|
893
|
+
},
|
|
894
|
+
"required": false,
|
|
895
|
+
"optional": false,
|
|
896
|
+
"docs": {
|
|
897
|
+
"tags": [],
|
|
898
|
+
"text": ""
|
|
899
|
+
},
|
|
900
|
+
"getter": false,
|
|
901
|
+
"setter": false,
|
|
902
|
+
"reflect": true,
|
|
903
|
+
"attribute": "disabled",
|
|
904
|
+
"defaultValue": "false"
|
|
905
|
+
},
|
|
906
|
+
"required": {
|
|
907
|
+
"type": "boolean",
|
|
908
|
+
"mutable": false,
|
|
909
|
+
"complexType": {
|
|
910
|
+
"original": "boolean",
|
|
911
|
+
"resolved": "boolean",
|
|
912
|
+
"references": {}
|
|
913
|
+
},
|
|
914
|
+
"required": false,
|
|
915
|
+
"optional": false,
|
|
916
|
+
"docs": {
|
|
917
|
+
"tags": [],
|
|
918
|
+
"text": ""
|
|
919
|
+
},
|
|
920
|
+
"getter": false,
|
|
921
|
+
"setter": false,
|
|
922
|
+
"reflect": true,
|
|
923
|
+
"attribute": "required",
|
|
924
|
+
"defaultValue": "false"
|
|
925
|
+
},
|
|
926
|
+
"error": {
|
|
927
|
+
"type": "string",
|
|
928
|
+
"mutable": false,
|
|
929
|
+
"complexType": {
|
|
930
|
+
"original": "string",
|
|
931
|
+
"resolved": "string",
|
|
932
|
+
"references": {}
|
|
933
|
+
},
|
|
934
|
+
"required": false,
|
|
935
|
+
"optional": true,
|
|
936
|
+
"docs": {
|
|
937
|
+
"tags": [],
|
|
938
|
+
"text": "Custom validation error; independent of currently loaded options."
|
|
939
|
+
},
|
|
940
|
+
"getter": false,
|
|
941
|
+
"setter": false,
|
|
942
|
+
"reflect": false,
|
|
943
|
+
"attribute": "error"
|
|
944
|
+
},
|
|
945
|
+
"name": {
|
|
946
|
+
"type": "string",
|
|
947
|
+
"mutable": false,
|
|
948
|
+
"complexType": {
|
|
949
|
+
"original": "string",
|
|
950
|
+
"resolved": "string",
|
|
951
|
+
"references": {}
|
|
952
|
+
},
|
|
953
|
+
"required": false,
|
|
954
|
+
"optional": true,
|
|
955
|
+
"docs": {
|
|
956
|
+
"tags": [],
|
|
957
|
+
"text": ""
|
|
958
|
+
},
|
|
959
|
+
"getter": false,
|
|
960
|
+
"setter": false,
|
|
961
|
+
"reflect": true,
|
|
962
|
+
"attribute": "name"
|
|
963
|
+
}
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
static get states() {
|
|
967
|
+
return {
|
|
968
|
+
"isOpen": {},
|
|
969
|
+
"focusedIndex": {},
|
|
970
|
+
"searchTerm": {},
|
|
971
|
+
"visibleCount": {},
|
|
972
|
+
"isScrollingLoading": {},
|
|
973
|
+
"disabledState": {}
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
static get events() {
|
|
977
|
+
return [{
|
|
978
|
+
"method": "qChange",
|
|
979
|
+
"name": "qChange",
|
|
980
|
+
"bubbles": true,
|
|
981
|
+
"cancelable": true,
|
|
982
|
+
"composed": true,
|
|
983
|
+
"docs": {
|
|
984
|
+
"tags": [],
|
|
985
|
+
"text": "Emitted with the selected option value when selection changes."
|
|
986
|
+
},
|
|
987
|
+
"complexType": {
|
|
988
|
+
"original": "string",
|
|
989
|
+
"resolved": "string",
|
|
990
|
+
"references": {}
|
|
991
|
+
}
|
|
992
|
+
}, {
|
|
993
|
+
"method": "qSelect",
|
|
994
|
+
"name": "qSelect",
|
|
995
|
+
"bubbles": true,
|
|
996
|
+
"cancelable": true,
|
|
997
|
+
"composed": true,
|
|
998
|
+
"docs": {
|
|
999
|
+
"tags": [],
|
|
1000
|
+
"text": "Emitted with the selected option object when selection changes."
|
|
1001
|
+
},
|
|
1002
|
+
"complexType": {
|
|
1003
|
+
"original": "Option",
|
|
1004
|
+
"resolved": "Option",
|
|
1005
|
+
"references": {
|
|
1006
|
+
"Option": {
|
|
1007
|
+
"location": "import",
|
|
1008
|
+
"path": "./dropdown.types",
|
|
1009
|
+
"id": "../../../src/browser/components/inputs/dropdown/dropdown.types.ts::Option",
|
|
1010
|
+
"referenceLocation": "Option"
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}, {
|
|
1015
|
+
"method": "qSearch",
|
|
1016
|
+
"name": "qSearch",
|
|
1017
|
+
"bubbles": true,
|
|
1018
|
+
"cancelable": true,
|
|
1019
|
+
"composed": true,
|
|
1020
|
+
"docs": {
|
|
1021
|
+
"tags": [],
|
|
1022
|
+
"text": "Emitted with the current search term when a searchable dropdown uses external search."
|
|
1023
|
+
},
|
|
1024
|
+
"complexType": {
|
|
1025
|
+
"original": "string",
|
|
1026
|
+
"resolved": "string",
|
|
1027
|
+
"references": {}
|
|
1028
|
+
}
|
|
1029
|
+
}, {
|
|
1030
|
+
"method": "qLoadMore",
|
|
1031
|
+
"name": "qLoadMore",
|
|
1032
|
+
"bubbles": true,
|
|
1033
|
+
"cancelable": true,
|
|
1034
|
+
"composed": true,
|
|
1035
|
+
"docs": {
|
|
1036
|
+
"tags": [],
|
|
1037
|
+
"text": "Emitted when an externally loaded option list reaches its scroll boundary."
|
|
1038
|
+
},
|
|
1039
|
+
"complexType": {
|
|
1040
|
+
"original": "void",
|
|
1041
|
+
"resolved": "void",
|
|
1042
|
+
"references": {}
|
|
1043
|
+
}
|
|
1044
|
+
}, {
|
|
1045
|
+
"method": "qFocus",
|
|
1046
|
+
"name": "qFocus",
|
|
1047
|
+
"bubbles": true,
|
|
1048
|
+
"cancelable": true,
|
|
1049
|
+
"composed": true,
|
|
1050
|
+
"docs": {
|
|
1051
|
+
"tags": [],
|
|
1052
|
+
"text": ""
|
|
1053
|
+
},
|
|
1054
|
+
"complexType": {
|
|
1055
|
+
"original": "FocusEvent",
|
|
1056
|
+
"resolved": "FocusEvent",
|
|
1057
|
+
"references": {
|
|
1058
|
+
"FocusEvent": {
|
|
1059
|
+
"location": "global",
|
|
1060
|
+
"id": "global::FocusEvent"
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
}, {
|
|
1065
|
+
"method": "qBlur",
|
|
1066
|
+
"name": "qBlur",
|
|
1067
|
+
"bubbles": true,
|
|
1068
|
+
"cancelable": true,
|
|
1069
|
+
"composed": true,
|
|
1070
|
+
"docs": {
|
|
1071
|
+
"tags": [],
|
|
1072
|
+
"text": ""
|
|
1073
|
+
},
|
|
1074
|
+
"complexType": {
|
|
1075
|
+
"original": "FocusEvent",
|
|
1076
|
+
"resolved": "FocusEvent",
|
|
1077
|
+
"references": {
|
|
1078
|
+
"FocusEvent": {
|
|
1079
|
+
"location": "global",
|
|
1080
|
+
"id": "global::FocusEvent"
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
}, {
|
|
1085
|
+
"method": "qClick",
|
|
1086
|
+
"name": "qClick",
|
|
1087
|
+
"bubbles": true,
|
|
1088
|
+
"cancelable": true,
|
|
1089
|
+
"composed": true,
|
|
1090
|
+
"docs": {
|
|
1091
|
+
"tags": [],
|
|
1092
|
+
"text": "Emitted before the trigger toggles the menu."
|
|
1093
|
+
},
|
|
1094
|
+
"complexType": {
|
|
1095
|
+
"original": "MouseEvent",
|
|
1096
|
+
"resolved": "MouseEvent",
|
|
1097
|
+
"references": {
|
|
1098
|
+
"MouseEvent": {
|
|
1099
|
+
"location": "global",
|
|
1100
|
+
"id": "global::MouseEvent"
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}];
|
|
1105
|
+
}
|
|
1106
|
+
static get methods() {
|
|
1107
|
+
return {
|
|
1108
|
+
"checkValidity": {
|
|
1109
|
+
"complexType": {
|
|
1110
|
+
"signature": "() => Promise<boolean>",
|
|
1111
|
+
"parameters": [],
|
|
1112
|
+
"references": {
|
|
1113
|
+
"Promise": {
|
|
1114
|
+
"location": "global",
|
|
1115
|
+
"id": "global::Promise"
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
"return": "Promise<boolean>"
|
|
1119
|
+
},
|
|
1120
|
+
"docs": {
|
|
1121
|
+
"text": "",
|
|
1122
|
+
"tags": []
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
"reportValidity": {
|
|
1126
|
+
"complexType": {
|
|
1127
|
+
"signature": "() => Promise<boolean>",
|
|
1128
|
+
"parameters": [],
|
|
1129
|
+
"references": {
|
|
1130
|
+
"Promise": {
|
|
1131
|
+
"location": "global",
|
|
1132
|
+
"id": "global::Promise"
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
"return": "Promise<boolean>"
|
|
1136
|
+
},
|
|
1137
|
+
"docs": {
|
|
1138
|
+
"text": "",
|
|
1139
|
+
"tags": []
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
"focusElement": {
|
|
1143
|
+
"complexType": {
|
|
1144
|
+
"signature": "() => Promise<void>",
|
|
1145
|
+
"parameters": [],
|
|
1146
|
+
"references": {
|
|
1147
|
+
"Promise": {
|
|
1148
|
+
"location": "global",
|
|
1149
|
+
"id": "global::Promise"
|
|
1150
|
+
}
|
|
1151
|
+
},
|
|
1152
|
+
"return": "Promise<void>"
|
|
1153
|
+
},
|
|
1154
|
+
"docs": {
|
|
1155
|
+
"text": "",
|
|
1156
|
+
"tags": []
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
static get elementRef() { return "el"; }
|
|
1162
|
+
static get watchers() {
|
|
1163
|
+
return [{
|
|
1164
|
+
"propName": "value",
|
|
1165
|
+
"methodName": "watchValue"
|
|
1166
|
+
}, {
|
|
1167
|
+
"propName": "name",
|
|
1168
|
+
"methodName": "syncValidity"
|
|
1169
|
+
}, {
|
|
1170
|
+
"propName": "externalSearch",
|
|
1171
|
+
"methodName": "syncValidity"
|
|
1172
|
+
}, {
|
|
1173
|
+
"propName": "required",
|
|
1174
|
+
"methodName": "syncValidity"
|
|
1175
|
+
}, {
|
|
1176
|
+
"propName": "error",
|
|
1177
|
+
"methodName": "syncValidity"
|
|
1178
|
+
}, {
|
|
1179
|
+
"propName": "disabled",
|
|
1180
|
+
"methodName": "syncValidity"
|
|
1181
|
+
}, {
|
|
1182
|
+
"propName": "options",
|
|
1183
|
+
"methodName": "watchOptions"
|
|
1184
|
+
}, {
|
|
1185
|
+
"propName": "loading",
|
|
1186
|
+
"methodName": "watchLoading"
|
|
1187
|
+
}];
|
|
1188
|
+
}
|
|
1189
|
+
static get listeners() {
|
|
1190
|
+
return [{
|
|
1191
|
+
"name": "click",
|
|
1192
|
+
"method": "handleClickOutside",
|
|
1193
|
+
"target": "window",
|
|
1194
|
+
"capture": false,
|
|
1195
|
+
"passive": false
|
|
1196
|
+
}];
|
|
1197
|
+
}
|
|
1198
|
+
static get attachInternalsMemberName() { return "internals"; }
|
|
1199
|
+
}
|
|
1200
|
+
function focusWithoutScroll(element) {
|
|
1201
|
+
if (!element || typeof element.focus !== 'function') {
|
|
1202
|
+
return;
|
|
1203
|
+
}
|
|
1204
|
+
try {
|
|
1205
|
+
element.focus({ preventScroll: true });
|
|
1206
|
+
}
|
|
1207
|
+
catch {
|
|
1208
|
+
element.focus();
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
function showPopoverIfSupported(element) {
|
|
1212
|
+
if (typeof element.showPopover !== 'function') {
|
|
1213
|
+
return;
|
|
1214
|
+
}
|
|
1215
|
+
try {
|
|
1216
|
+
if (!element.matches(':popover-open')) {
|
|
1217
|
+
element.showPopover();
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
catch {
|
|
1221
|
+
// Fixed positioning remains the fallback when the top-layer API is unavailable.
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
function hidePopoverIfOpen(element) {
|
|
1225
|
+
if (typeof element.hidePopover !== 'function') {
|
|
1226
|
+
return;
|
|
1227
|
+
}
|
|
1228
|
+
try {
|
|
1229
|
+
if (element.matches(':popover-open')) {
|
|
1230
|
+
element.hidePopover();
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
catch {
|
|
1234
|
+
// Removing the rendered menu also removes it from the top layer.
|
|
1235
|
+
}
|
|
1236
|
+
}
|