@webquark/core 1.0.2 → 1.1.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +111 -98
- package/dist/cjs/Leaflet.GoogleMutant-BCs2oiE0.js +769 -0
- package/dist/cjs/action.props-hpMla743.js +35 -0
- package/dist/cjs/chevron-up-B76247zT.js +30 -0
- package/dist/cjs/collection-identity-CV5HLD9Z.js +141 -0
- package/dist/cjs/data-table-cell-BAv6IIYx.js +46 -0
- package/dist/cjs/{dom-CTqgGpWA.js → dom-Dk77oFF6.js} +15 -6
- package/dist/cjs/form-control-validity-D1ukC0_e.js +49 -0
- package/dist/cjs/{index-CLlvFbDw.js → index-Vzfd3Ljg.js} +58 -3
- package/dist/cjs/index.cjs.js +24 -2
- package/dist/cjs/leaflet-maplibre-gl-RCEffFEM.js +434 -0
- package/dist/cjs/leaflet-src-B0ls4IKq.js +14522 -0
- package/dist/cjs/leaflet-src-BX4jwTf5.js +33 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/map.types-DNrz8rJh.js +24 -0
- package/dist/cjs/q-alert.cjs.entry.js +52 -0
- package/dist/cjs/q-avatar.cjs.entry.js +101 -0
- package/dist/cjs/q-button_2.cjs.entry.js +375 -0
- package/dist/cjs/q-card.cjs.entry.js +31 -9
- package/dist/cjs/q-carousel.cjs.entry.js +121 -78
- package/dist/cjs/q-chip.cjs.entry.js +124 -0
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +70 -0
- package/dist/cjs/q-data-table.cjs.entry.js +470 -118
- package/dist/cjs/q-dialog.cjs.entry.js +136 -22
- package/dist/cjs/q-dropdown.cjs.entry.js +318 -64
- package/dist/cjs/q-form.cjs.entry.js +509 -0
- package/dist/cjs/q-icon.cjs.entry.js +290 -99
- package/dist/cjs/q-input_2.cjs.entry.js +363 -0
- package/dist/cjs/q-link.cjs.entry.js +80 -0
- package/dist/cjs/q-map.cjs.entry.js +3328 -0
- package/dist/cjs/q-navbar.cjs.entry.js +194 -0
- package/dist/cjs/q-pagination.cjs.entry.js +68 -0
- package/dist/cjs/q-panel.cjs.entry.js +67 -0
- package/dist/cjs/q-quantity-selector.cjs.entry.js +112 -93
- package/dist/cjs/q-radio-group.cjs.entry.js +217 -0
- package/dist/cjs/q-reel.cjs.entry.js +86 -33
- package/dist/cjs/q-scrollable.cjs.entry.js +449 -0
- package/dist/cjs/q-sidepanel.cjs.entry.js +562 -114
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +11 -17
- package/dist/cjs/q-step-diagram.cjs.entry.js +9 -10
- package/dist/cjs/q-syntax-box.cjs.entry.js +381 -173
- package/dist/cjs/q-tabs.cjs.entry.js +155 -0
- package/dist/cjs/q-textarea.cjs.entry.js +69 -9
- package/dist/cjs/q-thumbnail.cjs.entry.js +18 -11
- package/dist/cjs/q-toast.cjs.entry.js +400 -0
- package/dist/cjs/q-toggle.cjs.entry.js +57 -26
- package/dist/cjs/q-toolbar.cjs.entry.js +29 -0
- package/dist/cjs/registry-BhkCNgxt.js +179 -0
- package/dist/cjs/toast-controller-CIXagxbV.js +111 -0
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/assets/icons/braces.svg +14 -14
- package/dist/collection/assets/icons/check.svg +1 -1
- package/dist/collection/assets/icons/chevron-down.svg +1 -1
- package/dist/collection/assets/icons/chevron-left.svg +1 -1
- package/dist/collection/assets/icons/chevron-right.svg +1 -1
- package/dist/collection/assets/icons/chevron-up.svg +1 -1
- package/dist/collection/assets/icons/copy.svg +4 -4
- package/dist/collection/assets/icons/eye-off.svg +1 -1
- package/dist/collection/assets/icons/eye.svg +1 -1
- package/dist/collection/assets/icons/minus.svg +1 -1
- package/dist/collection/assets/icons/play.svg +1 -1
- package/dist/collection/assets/icons/plus.svg +1 -1
- package/dist/collection/assets/icons/search.svg +1 -1
- package/dist/collection/assets/icons/spinner.svg +1 -1
- package/dist/collection/assets/icons/trash-2.svg +1 -1
- package/dist/collection/assets/icons/x.svg +1 -1
- package/dist/collection/collection-manifest.json +37 -21
- package/dist/collection/components/actions/action.props.js +130 -0
- package/dist/collection/components/{button → actions/button}/button.css +191 -174
- package/dist/collection/components/{button → actions/button}/button.js +243 -89
- package/dist/collection/components/actions/button/button.types.js +1 -0
- package/dist/collection/components/actions/button/button.utils.js +9 -0
- package/dist/collection/components/actions/button/button.utils.unit.test.js +44 -0
- package/dist/collection/components/actions/chip/chip.css +219 -0
- package/dist/collection/components/actions/chip/chip.js +381 -0
- package/dist/collection/components/actions/chip/chip.types.js +1 -0
- package/dist/collection/components/actions/link/link.css +102 -0
- package/dist/collection/components/actions/link/link.js +313 -0
- package/dist/collection/components/actions/link/link.types.js +1 -0
- package/dist/collection/components/data-display/alert/alert.css +118 -0
- package/dist/collection/components/data-display/alert/alert.js +208 -0
- package/dist/collection/components/data-display/alert/alert.types.js +1 -0
- package/dist/collection/components/data-display/conversation-bubble/conversation-bubble.css +154 -0
- package/dist/collection/components/data-display/conversation-bubble/conversation-bubble.js +207 -0
- package/dist/collection/components/data-display/conversation-bubble/conversation-bubble.types.js +1 -0
- package/dist/collection/components/data-display/data-table/data-table-cell.js +40 -0
- package/dist/collection/components/{data-table → data-display/data-table}/data-table.css +356 -219
- package/dist/collection/components/data-display/data-table/data-table.js +748 -0
- package/dist/collection/components/data-display/data-table/data-table.types.js +1 -0
- package/dist/collection/components/data-display/data-table/internals/data-access.js +43 -0
- package/dist/collection/components/data-display/data-table/internals/render-row-actions.js +22 -0
- package/dist/collection/components/data-display/data-table/internals/render-sort-indicator.js +5 -0
- package/dist/collection/components/data-display/data-table/internals/render-table-body.js +47 -0
- package/dist/collection/components/data-display/data-table/internals/render-table-head.js +42 -0
- package/dist/collection/components/data-display/data-table/internals/render-toolbar.js +6 -0
- package/dist/collection/components/data-display/data-table/internals/row-events.js +27 -0
- package/dist/collection/components/data-display/data-table/internals/selection.js +31 -0
- package/dist/collection/components/data-display/data-table/internals/sort.js +57 -0
- package/dist/collection/components/data-display/data-table/internals/table-model.js +84 -0
- package/dist/collection/components/data-display/map/internals/base-layer.js +140 -0
- package/dist/collection/components/data-display/map/internals/bounds.js +66 -0
- package/dist/collection/components/data-display/map/internals/buffered-tile-layer.js +128 -0
- package/dist/collection/components/data-display/map/internals/cluster-collision.js +73 -0
- package/dist/collection/components/data-display/map/internals/google-maps.js +117 -0
- package/dist/collection/components/data-display/map/internals/google-mutant.js +51 -0
- package/dist/collection/components/data-display/map/internals/maplibre.js +50 -0
- package/dist/collection/components/data-display/map/internals/marker-cluster-index.js +136 -0
- package/dist/collection/components/data-display/map/internals/marker-controller.js +403 -0
- package/dist/collection/components/data-display/map/internals/marker-presentation.js +217 -0
- package/dist/collection/components/data-display/map/internals/marker-visibility.js +158 -0
- package/dist/collection/components/data-display/map/internals/markers.js +176 -0
- package/dist/collection/components/data-display/map/internals/tile-layer-readiness.js +67 -0
- package/dist/collection/components/data-display/map/internals/tile-preload-buffer.js +8 -0
- package/dist/collection/components/data-display/map/internals/vector-padding.js +8 -0
- package/dist/collection/components/data-display/map/map.css +711 -0
- package/dist/collection/components/data-display/map/map.js +1514 -0
- package/dist/collection/components/data-display/map/map.types.js +12 -0
- package/dist/collection/components/data-display/map/test/map.cmp.test.js +748 -0
- package/dist/collection/components/data-display/pagination/pagination.css +81 -0
- package/dist/collection/components/data-display/pagination/pagination.js +240 -0
- package/dist/collection/components/data-display/pagination/test/pagination.cmp.test.js +57 -0
- package/dist/collection/components/data-display/syntax-box/internals/clipboard.js +9 -0
- package/dist/collection/components/data-display/syntax-box/internals/editor-key-action.js +14 -0
- package/dist/collection/components/data-display/syntax-box/internals/value-sync.js +27 -0
- package/dist/collection/components/{syntax-box → data-display/syntax-box}/syntax-box.css +202 -206
- package/dist/collection/components/data-display/syntax-box/syntax-box.js +623 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.types.js +1 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.utils.js +1 -0
- package/dist/collection/components/indicators/progress/progress.css +223 -0
- package/dist/collection/components/indicators/progress/progress.js +275 -0
- package/dist/collection/components/indicators/progress/progress.types.js +1 -0
- package/dist/collection/components/{step-diagram → indicators/step-diagram}/step-diagram.css +21 -21
- package/dist/collection/components/{step-diagram → indicators/step-diagram}/step-diagram.js +42 -12
- package/dist/collection/components/indicators/step-diagram/step-diagram.types.js +1 -0
- package/dist/collection/components/{step-diagram-item → indicators/step-diagram-item}/step-diagram-item.css +252 -253
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +153 -0
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.types.js +1 -0
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.utils.js +3 -0
- package/dist/collection/components/{dropdown → inputs/dropdown}/dropdown.css +344 -292
- package/dist/collection/components/inputs/dropdown/dropdown.js +986 -0
- package/dist/collection/components/inputs/dropdown/dropdown.types.js +1 -0
- package/dist/collection/components/inputs/dropdown/internals/options.js +30 -0
- package/dist/collection/components/inputs/dropdown/internals/position.js +35 -0
- package/dist/collection/components/inputs/dropdown/test/dropdown.cmp.test.js +62 -0
- package/dist/collection/components/{input → inputs/input}/input.css +264 -276
- package/dist/collection/components/{input → inputs/input}/input.js +242 -83
- package/dist/collection/components/inputs/input/input.types.js +1 -0
- package/dist/collection/components/inputs/input/input.utils.js +3 -0
- package/dist/collection/components/inputs/quantity-selector/internals/number-value.js +64 -0
- package/dist/collection/components/{quantity-selector → inputs/quantity-selector}/quantity-selector.css +131 -131
- package/dist/collection/components/{quantity-selector → inputs/quantity-selector}/quantity-selector.js +75 -109
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.types.js +1 -0
- package/dist/collection/components/inputs/radio-group/radio-group.css +177 -0
- package/dist/collection/components/inputs/radio-group/radio-group.js +558 -0
- package/dist/collection/components/inputs/radio-group/radio-group.types.js +1 -0
- package/dist/collection/components/inputs/radio-group/radio-group.utils.js +18 -0
- package/dist/collection/components/{textarea → inputs/textarea}/textarea.css +88 -83
- package/dist/collection/components/{textarea → inputs/textarea}/textarea.js +162 -18
- package/dist/collection/components/inputs/textarea/textarea.types.js +1 -0
- package/dist/collection/components/{toggle → inputs/toggle}/toggle.css +220 -212
- package/dist/collection/components/{toggle → inputs/toggle}/toggle.js +158 -51
- package/dist/collection/components/inputs/toggle/toggle.types.js +1 -0
- package/dist/collection/components/inputs/toggle/toggle.utils.js +3 -0
- package/dist/collection/components/{card → layout/card}/card.css +93 -96
- package/dist/collection/components/{card → layout/card}/card.js +40 -19
- package/dist/collection/components/layout/card/card.types.js +1 -0
- package/dist/collection/components/layout/card/card.utils.js +15 -0
- package/dist/collection/components/{carousel → layout/carousel}/carousel.css +168 -177
- package/dist/collection/components/{carousel → layout/carousel}/carousel.js +103 -105
- package/dist/collection/components/layout/carousel/carousel.types.js +1 -0
- package/dist/collection/components/layout/carousel/carousel.utils.js +1 -0
- package/dist/collection/components/layout/carousel/internals/metrics.js +59 -0
- package/dist/collection/components/layout/form/form.css +49 -0
- package/dist/collection/components/layout/form/form.js +613 -0
- package/dist/collection/components/layout/form/form.types.js +1 -0
- package/dist/collection/components/layout/form/internals/controls.js +79 -0
- package/dist/collection/components/layout/form/internals/enter-behavior.js +36 -0
- package/dist/collection/components/layout/form/internals/values.js +176 -0
- package/dist/collection/components/layout/form/test/form.cmp.test.js +157 -0
- package/dist/collection/components/layout/navbar/navbar.css +465 -0
- package/dist/collection/components/layout/navbar/navbar.js +547 -0
- package/dist/collection/components/layout/navbar/navbar.types.js +1 -0
- package/dist/collection/components/layout/navbar/navbar.utils.js +13 -0
- package/dist/collection/components/layout/navbar/test/navbar.cmp.test.js +53 -0
- package/dist/collection/components/layout/panel/panel.css +113 -0
- package/dist/collection/components/layout/panel/panel.js +265 -0
- package/dist/collection/components/layout/panel/panel.types.js +1 -0
- package/dist/collection/components/layout/scrollable/internals/metrics.js +61 -0
- package/dist/collection/components/layout/scrollable/internals/native-scrollbar.js +41 -0
- package/dist/collection/components/{scrollable → layout/scrollable}/scrollable.css +123 -122
- package/dist/collection/components/{scrollable → layout/scrollable}/scrollable.js +165 -136
- package/dist/collection/components/layout/scrollable/scrollable.types.js +1 -0
- package/dist/collection/components/layout/sidepanel/internals/drawer.js +60 -0
- package/dist/collection/components/layout/sidepanel/internals/groups.js +56 -0
- package/dist/collection/components/layout/sidepanel/internals/nav-items.js +27 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.css +881 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.js +831 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.types.js +1 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.utils.js +17 -0
- package/dist/collection/components/layout/tabs/tabs.css +248 -0
- package/dist/collection/components/layout/tabs/tabs.js +322 -0
- package/dist/collection/components/layout/tabs/tabs.types.js +1 -0
- package/dist/collection/components/layout/tabs/tabs.utils.js +31 -0
- package/dist/collection/components/layout/tabs/test/tabs.cmp.test.js +165 -0
- package/dist/collection/components/layout/toolbar/toolbar.css +145 -0
- package/dist/collection/components/layout/toolbar/toolbar.js +173 -0
- package/dist/collection/components/layout/toolbar/toolbar.types.js +1 -0
- package/dist/collection/components/media/avatar/avatar.css +71 -0
- package/dist/collection/components/media/avatar/avatar.js +302 -0
- package/dist/collection/components/media/avatar/avatar.types.js +1 -0
- package/dist/collection/components/{icon → media/icon}/icon.css +42 -39
- package/dist/collection/components/media/icon/icon.js +449 -0
- package/dist/collection/components/media/icon/icon.types.js +1 -0
- package/dist/collection/components/media/icon/internals/constants.js +3 -0
- package/dist/collection/components/media/icon/internals/fetch-icon.js +18 -0
- package/dist/collection/components/media/icon/internals/registry.js +171 -0
- package/dist/collection/components/media/icon/internals/registry.unit.test.js +42 -0
- package/dist/collection/components/media/icon/internals/render-definition.js +24 -0
- package/dist/collection/components/media/icon/internals/sanitize-svg.js +63 -0
- package/dist/collection/components/media/icon/internals/size.js +12 -0
- package/dist/collection/components/media/icon/internals/url.js +48 -0
- package/dist/collection/components/{reel → media/reel}/reel.css +193 -185
- package/dist/collection/components/{reel → media/reel}/reel.js +99 -34
- package/dist/collection/components/media/reel/reel.types.js +1 -0
- package/dist/collection/components/{thumbnail → media/thumbnail}/thumbnail.css +111 -109
- package/dist/collection/components/{thumbnail → media/thumbnail}/thumbnail.js +32 -19
- package/dist/collection/components/media/thumbnail/thumbnail.types.js +1 -0
- package/dist/collection/components/{dialog → overlays/dialog}/dialog.css +248 -240
- package/dist/collection/components/{dialog → overlays/dialog}/dialog.js +190 -58
- package/dist/collection/components/overlays/dialog/dialog.types.js +1 -0
- package/dist/collection/components/overlays/dialog/internals/backdrop.js +9 -0
- package/dist/collection/components/overlays/dialog/internals/lifecycle.js +53 -0
- package/dist/collection/components/overlays/toast/internals/icons.js +25 -0
- package/dist/collection/components/overlays/toast/internals/queue.js +64 -0
- package/dist/collection/components/overlays/toast/internals/timers.js +75 -0
- package/dist/collection/components/overlays/toast/test/toast.cmp.test.js +38 -0
- package/dist/collection/components/overlays/toast/test/toast.unit.test.js +104 -0
- package/dist/collection/components/overlays/toast/toast-controller.js +105 -0
- package/dist/collection/components/overlays/toast/toast.css +141 -0
- package/dist/collection/components/overlays/toast/toast.js +556 -0
- package/dist/collection/components/overlays/toast/toast.types.js +1 -0
- package/dist/collection/components/overlays/tooltip/internals/aria.js +27 -0
- package/dist/collection/components/overlays/tooltip/internals/positioning.js +69 -0
- package/dist/collection/components/overlays/tooltip/internals/scroll-listeners.js +18 -0
- package/dist/collection/components/{tooltip → overlays/tooltip}/tooltip.css +65 -65
- package/dist/collection/components/overlays/tooltip/tooltip.js +190 -0
- package/dist/collection/components/overlays/tooltip/tooltip.types.js +1 -0
- package/dist/collection/index.js +5 -0
- package/dist/collection/playground/components/playground-event-log/playground-event-log.js +3 -3
- package/dist/collection/playground/components/playground-sidebar/playground-sidebar.js +42 -6
- package/dist/collection/playground/components/properties-panel/properties-panel.js +1 -1
- package/dist/collection/playground/components/sandbox-viewport/sandbox-panel.js +7 -3
- package/dist/collection/playground/components/sandbox-viewport/sandbox-viewport.js +4 -0
- package/dist/collection/playground/components/theme-designer/theme-designer.js +6 -4
- package/dist/collection/playground/logo.svg +8 -8
- package/dist/collection/playground/playground.bundled.js +949 -887
- package/dist/collection/utils/collection-identity.js +136 -0
- package/dist/collection/utils/collection-identity.unit.test.js +107 -0
- package/dist/collection/utils/dom.js +14 -6
- package/dist/collection/utils/form-control-validity.js +44 -0
- package/dist/collection/utils/formatter.unit.test.js +24 -24
- package/dist/components/index.js +1 -1
- package/dist/components/p-2bWqVyTo.js +1 -0
- package/dist/components/p-B6NJEaqd.js +1 -0
- package/dist/components/p-B6g9Pj3f.js +1 -0
- package/dist/components/p-BEBDDqVT.js +1 -0
- package/dist/components/p-BIIQL66b.js +1 -0
- package/dist/components/p-BJiYCN3i.js +1 -0
- package/dist/components/p-BeeM-7Ku.js +5 -0
- package/dist/components/p-Bj2RJb2E.js +1 -0
- package/dist/components/p-BnmIFx4N.js +1 -0
- package/dist/components/p-BvBRW3dl.js +1 -0
- package/dist/components/p-ByfrUWx1.js +1 -0
- package/dist/components/p-C7yQ3tON.js +1 -0
- package/dist/components/p-CDktnDug.js +13 -0
- package/dist/components/p-CGZPmEUB.js +1 -0
- package/dist/components/p-DAl7U6Ms.js +1 -0
- package/dist/components/p-DH-PVHhr.js +1 -0
- package/dist/components/p-DQhiqYeq.js +1 -0
- package/dist/components/p-DcsB8P_Y.js +1 -0
- package/dist/components/p-DmqVhVoj.js +1 -0
- package/dist/components/p-Dnud2v8F.js +1 -0
- package/dist/components/p-QHgICI4w.js +1 -0
- package/dist/components/p-WJHaLJS_.js +1 -0
- package/dist/components/{q-circular-progress.d.ts → q-alert.d.ts} +4 -4
- package/dist/components/q-alert.js +1 -0
- package/dist/components/q-avatar.d.ts +11 -0
- package/dist/components/q-avatar.js +1 -0
- package/dist/components/q-button.js +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-chip.d.ts +11 -0
- package/dist/components/q-chip.js +1 -0
- package/dist/components/q-conversation-bubble.d.ts +11 -0
- package/dist/components/q-conversation-bubble.js +1 -0
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-form.d.ts +11 -0
- package/dist/components/q-form.js +1 -0
- package/dist/components/q-icon.js +1 -1
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-link.d.ts +11 -0
- package/dist/components/q-link.js +1 -0
- package/dist/components/q-map.d.ts +11 -0
- package/dist/components/q-map.js +1 -0
- package/dist/components/q-navbar.d.ts +11 -0
- package/dist/components/q-navbar.js +1 -0
- package/dist/components/q-pagination.d.ts +11 -0
- package/dist/components/q-pagination.js +1 -0
- package/dist/components/q-panel.d.ts +11 -0
- package/dist/components/q-panel.js +1 -0
- package/dist/components/q-progress.d.ts +11 -0
- package/dist/components/q-progress.js +1 -0
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-radio-group.d.ts +11 -0
- package/dist/components/q-radio-group.js +1 -0
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-sidepanel.js +13 -1
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +13 -1
- package/dist/components/q-tabs.d.ts +11 -0
- package/dist/components/q-tabs.js +1 -0
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toast.d.ts +11 -0
- package/dist/components/q-toast.js +1 -0
- package/dist/components/q-toggle.js +1 -1
- package/dist/components/q-toolbar.d.ts +11 -0
- package/dist/components/q-toolbar.js +1 -0
- package/dist/components/q-tooltip.js +1 -1
- package/dist/esm/Leaflet.GoogleMutant-BlvymWLE.js +767 -0
- package/dist/esm/action.props-BJWXy1Ec.js +32 -0
- package/dist/esm/chevron-up-CDktnDug.js +27 -0
- package/dist/esm/collection-identity-CGZPmEUB.js +138 -0
- package/dist/esm/data-table-cell-DmqVhVoj.js +42 -0
- package/dist/esm/{dom-DoQvrOHk.js → dom-ByfrUWx1.js} +15 -7
- package/dist/esm/form-control-validity-Bj2RJb2E.js +46 -0
- package/dist/esm/{index-CYoQ4Zv3.js → index-DweBlExe.js} +58 -4
- package/dist/esm/index.js +6 -1
- package/dist/esm/leaflet-maplibre-gl-Cgb-1z8Q.js +432 -0
- package/dist/esm/leaflet-src-BR13bdVA.js +30 -0
- package/dist/esm/leaflet-src-BeeM-7Ku.js +14520 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/map.types-WJHaLJS_.js +14 -0
- package/dist/esm/q-alert.entry.js +50 -0
- package/dist/esm/q-avatar.entry.js +99 -0
- package/dist/esm/q-button_2.entry.js +372 -0
- package/dist/esm/q-card.entry.js +31 -9
- package/dist/esm/q-carousel.entry.js +121 -78
- package/dist/esm/q-chip.entry.js +122 -0
- package/dist/esm/q-conversation-bubble.entry.js +68 -0
- package/dist/esm/q-data-table.entry.js +470 -118
- package/dist/esm/q-dialog.entry.js +136 -22
- package/dist/esm/q-dropdown.entry.js +318 -64
- package/dist/esm/q-form.entry.js +507 -0
- package/dist/esm/q-icon.entry.js +290 -99
- package/dist/esm/q-input_2.entry.js +360 -0
- package/dist/esm/q-link.entry.js +78 -0
- package/dist/esm/q-map.entry.js +3326 -0
- package/dist/esm/q-navbar.entry.js +192 -0
- package/dist/esm/q-pagination.entry.js +66 -0
- package/dist/esm/q-panel.entry.js +65 -0
- package/dist/esm/q-quantity-selector.entry.js +112 -93
- package/dist/esm/q-radio-group.entry.js +215 -0
- package/dist/esm/q-reel.entry.js +86 -33
- package/dist/esm/q-scrollable.entry.js +447 -0
- package/dist/esm/q-sidepanel.entry.js +562 -114
- package/dist/esm/q-step-diagram-item.entry.js +11 -17
- package/dist/esm/q-step-diagram.entry.js +9 -10
- package/dist/esm/q-syntax-box.entry.js +381 -173
- package/dist/esm/q-tabs.entry.js +153 -0
- package/dist/esm/q-textarea.entry.js +69 -9
- package/dist/esm/q-thumbnail.entry.js +18 -11
- package/dist/esm/q-toast.entry.js +398 -0
- package/dist/esm/q-toggle.entry.js +57 -26
- package/dist/esm/q-toolbar.entry.js +27 -0
- package/dist/esm/registry-BvBRW3dl.js +173 -0
- package/dist/esm/toast-controller-BIIQL66b.js +107 -0
- package/dist/esm/webquark.js +3 -3
- package/dist/playground/assets/icons/braces.svg +14 -14
- package/dist/playground/assets/icons/check.svg +1 -1
- package/dist/playground/assets/icons/chevron-down.svg +1 -1
- package/dist/playground/assets/icons/chevron-left.svg +1 -1
- package/dist/playground/assets/icons/chevron-right.svg +1 -1
- package/dist/playground/assets/icons/chevron-up.svg +1 -1
- package/dist/playground/assets/icons/copy.svg +4 -4
- package/dist/playground/assets/icons/eye-off.svg +1 -1
- package/dist/playground/assets/icons/eye.svg +1 -1
- package/dist/playground/assets/icons/minus.svg +1 -1
- package/dist/playground/assets/icons/play.svg +1 -1
- package/dist/playground/assets/icons/plus.svg +1 -1
- package/dist/playground/assets/icons/search.svg +1 -1
- package/dist/playground/assets/icons/spinner.svg +1 -1
- package/dist/playground/assets/icons/trash-2.svg +1 -1
- package/dist/playground/assets/icons/x.svg +1 -1
- package/dist/playground/build/index.esm.js +1 -1
- package/dist/playground/build/p-06813183.entry.js +1 -0
- package/dist/playground/build/p-09d43469.entry.js +1 -0
- package/dist/playground/build/p-256d199a.entry.js +1 -0
- package/dist/playground/build/p-2bWqVyTo.js +1 -0
- package/dist/playground/build/p-2f0bbb67.entry.js +1 -0
- package/dist/playground/build/p-31d62bd0.entry.js +1 -0
- package/dist/playground/build/p-35c9fa4d.entry.js +1 -0
- package/dist/playground/build/p-3e4d2d19.entry.js +1 -0
- package/dist/playground/build/p-4b38c28f.entry.js +1 -0
- package/dist/playground/build/p-4f8ee3f7.entry.js +1 -0
- package/dist/playground/build/p-53a5c493.entry.js +1 -0
- package/dist/playground/build/p-721d2479.entry.js +1 -0
- package/dist/playground/build/p-7be7478a.entry.js +1 -0
- package/dist/playground/build/p-7c4e6512.entry.js +1 -0
- package/dist/playground/build/p-7c9d705e.entry.js +1 -0
- package/dist/playground/build/p-8ff218f7.entry.js +1 -0
- package/dist/playground/build/p-94eba9a9.entry.js +1 -0
- package/dist/playground/build/p-BEBDDqVT.js +1 -0
- package/dist/playground/build/p-BIIQL66b.js +1 -0
- package/dist/playground/build/p-BeeM-7Ku.js +5 -0
- package/dist/playground/build/p-Bj2RJb2E.js +1 -0
- package/dist/playground/build/p-BvBRW3dl.js +1 -0
- package/dist/playground/build/p-ByfrUWx1.js +1 -0
- package/dist/playground/build/p-CDktnDug.js +13 -0
- package/dist/playground/build/p-CGZPmEUB.js +1 -0
- package/dist/playground/build/p-DNFGt02p.js +1 -0
- package/dist/playground/build/p-DmqVhVoj.js +1 -0
- package/dist/playground/build/p-DweBlExe.js +2 -0
- package/dist/playground/build/p-Dxs6LLBG.js +1 -0
- package/dist/playground/build/p-WJHaLJS_.js +1 -0
- package/dist/playground/build/p-a0861b0e.entry.js +1 -0
- package/dist/playground/build/p-a2a3135f.entry.js +1 -0
- package/dist/playground/build/p-a7b90eef.entry.js +13 -0
- package/dist/playground/build/p-bc0a0428.entry.js +1 -0
- package/dist/playground/build/p-bc7d7cbf.entry.js +13 -0
- package/dist/playground/build/p-c4016e61.entry.js +1 -0
- package/dist/playground/build/p-c64be717.entry.js +1 -0
- package/dist/playground/build/p-d142bb86.entry.js +1 -0
- package/dist/playground/build/p-d22a876a.entry.js +1 -0
- package/dist/playground/build/p-d691a1aa.entry.js +1 -0
- package/dist/playground/build/p-dabaddcb.entry.js +1 -0
- package/dist/playground/build/p-dac913f9.entry.js +1 -0
- package/dist/playground/build/p-de7364cd.entry.js +1 -0
- package/dist/playground/build/p-e298fb31.entry.js +1 -0
- package/dist/playground/build/p-e354a398.entry.js +1 -0
- package/dist/playground/build/p-f1ab576a.entry.js +1 -0
- package/dist/playground/build/webquark.css +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/css/base.css +122 -145
- package/dist/playground/index.html +29 -29
- package/dist/playground/logo.svg +8 -8
- package/dist/playground/playground/components.manifest.json +37 -20
- package/dist/playground/playground/specs/q-avatar.sandbox.json +24 -0
- package/dist/playground/playground/specs/q-button.sandbox.json +209 -198
- package/dist/playground/playground/specs/q-card.sandbox.json +144 -144
- package/dist/playground/playground/specs/q-carousel.sandbox.json +120 -120
- package/dist/playground/playground/specs/q-chip.sandbox.json +105 -0
- package/dist/playground/playground/specs/q-conversation-bubble.sandbox.json +26 -0
- package/dist/playground/playground/specs/q-data-table.sandbox.json +161 -108
- package/dist/playground/playground/specs/q-dialog.sandbox.json +108 -108
- package/dist/playground/playground/specs/q-dropdown.sandbox.json +121 -116
- package/dist/playground/playground/specs/q-form.sandbox.json +20 -0
- package/dist/playground/playground/specs/q-icon.sandbox.json +138 -138
- package/dist/playground/playground/specs/q-input.sandbox.json +192 -192
- package/dist/playground/playground/specs/q-link.sandbox.json +27 -0
- package/dist/playground/playground/specs/q-map.sandbox.json +203 -0
- package/dist/playground/playground/specs/q-navbar.sandbox.json +32 -0
- package/dist/playground/playground/specs/q-panel.sandbox.json +28 -0
- package/dist/playground/playground/specs/q-progress.sandbox.json +117 -0
- package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +99 -99
- package/dist/playground/playground/specs/q-radio-group.sandbox.json +58 -0
- package/dist/playground/playground/specs/q-reel.sandbox.json +70 -70
- package/dist/playground/playground/specs/q-scrollable.sandbox.json +102 -102
- package/dist/playground/playground/specs/q-sidepanel.sandbox.json +152 -147
- package/dist/playground/playground/specs/q-step-diagram.sandbox.json +56 -56
- package/dist/playground/playground/specs/q-syntax-box.sandbox.json +160 -160
- package/dist/playground/playground/specs/q-textarea.sandbox.json +133 -133
- package/dist/playground/playground/specs/q-toast.sandbox.json +32 -0
- package/dist/playground/playground/specs/q-toggle.sandbox.json +196 -196
- package/dist/playground/playground/specs/q-toolbar.sandbox.json +26 -0
- package/dist/playground/playground/specs/q-tooltip.sandbox.json +65 -65
- package/dist/playground/playground.js +949 -887
- package/dist/types/components/actions/action.props.d.ts +19 -0
- package/dist/types/components/actions/button/button.d.ts +61 -0
- package/dist/types/components/actions/button/button.types.d.ts +5 -0
- package/dist/types/components/actions/button/button.utils.d.ts +8 -0
- package/dist/types/components/actions/button/button.utils.unit.test.d.ts +1 -0
- package/dist/types/components/actions/chip/chip.d.ts +55 -0
- package/dist/types/components/actions/chip/chip.types.d.ts +13 -0
- package/dist/types/components/actions/link/link.d.ts +43 -0
- package/dist/types/components/actions/link/link.types.d.ts +3 -0
- package/dist/types/components/data-display/alert/alert.d.ts +32 -0
- package/dist/types/components/data-display/alert/alert.types.d.ts +2 -0
- package/dist/types/components/data-display/conversation-bubble/conversation-bubble.d.ts +38 -0
- package/dist/types/components/data-display/conversation-bubble/conversation-bubble.types.d.ts +1 -0
- package/dist/types/components/data-display/data-table/data-table-cell.d.ts +5 -0
- package/dist/types/components/data-display/data-table/data-table.d.ts +78 -0
- package/dist/types/components/data-display/data-table/data-table.types.d.ts +53 -0
- package/dist/types/components/data-display/data-table/internals/data-access.d.ts +9 -0
- package/dist/types/components/data-display/data-table/internals/render-row-actions.d.ts +9 -0
- package/dist/types/components/data-display/data-table/internals/render-sort-indicator.d.ts +5 -0
- package/dist/types/components/data-display/data-table/internals/render-table-body.d.ts +12 -0
- package/dist/types/components/data-display/data-table/internals/render-table-head.d.ts +8 -0
- package/dist/types/components/data-display/data-table/internals/render-toolbar.d.ts +9 -0
- package/dist/types/components/data-display/data-table/internals/row-events.d.ts +1 -0
- package/dist/types/components/data-display/data-table/internals/selection.d.ts +10 -0
- package/dist/types/components/data-display/data-table/internals/sort.d.ts +3 -0
- package/dist/types/components/data-display/data-table/internals/table-model.d.ts +52 -0
- package/dist/types/components/data-display/map/internals/base-layer.d.ts +63 -0
- package/dist/types/components/data-display/map/internals/bounds.d.ts +23 -0
- package/dist/types/components/data-display/map/internals/buffered-tile-layer.d.ts +10 -0
- package/dist/types/components/data-display/map/internals/cluster-collision.d.ts +15 -0
- package/dist/types/components/data-display/map/internals/google-maps.d.ts +9 -0
- package/dist/types/components/data-display/map/internals/google-mutant-module.d.ts +11 -0
- package/dist/types/components/data-display/map/internals/google-mutant.d.ts +18 -0
- package/dist/types/components/data-display/map/internals/maplibre.d.ts +14 -0
- package/dist/types/components/data-display/map/internals/marker-cluster-index.d.ts +36 -0
- package/dist/types/components/data-display/map/internals/marker-controller.d.ts +55 -0
- package/dist/types/components/data-display/map/internals/marker-presentation.d.ts +8 -0
- package/dist/types/components/data-display/map/internals/marker-visibility.d.ts +10 -0
- package/dist/types/components/data-display/map/internals/markers.d.ts +4 -0
- package/dist/types/components/data-display/map/internals/tile-layer-readiness.d.ts +11 -0
- package/dist/types/components/data-display/map/internals/tile-preload-buffer.d.ts +4 -0
- package/dist/types/components/data-display/map/internals/vector-padding.d.ts +4 -0
- package/dist/types/components/data-display/map/map.d.ts +171 -0
- package/dist/types/components/data-display/map/map.types.d.ts +122 -0
- package/dist/types/components/data-display/map/test/map.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/pagination/pagination.d.ts +33 -0
- package/dist/types/components/data-display/pagination/test/pagination.cmp.test.d.ts +2 -0
- package/dist/types/components/data-display/syntax-box/internals/clipboard.d.ts +2 -0
- package/dist/types/components/data-display/syntax-box/internals/editor-key-action.d.ts +12 -0
- package/dist/types/components/data-display/syntax-box/internals/value-sync.d.ts +18 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +66 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.types.d.ts +2 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.utils.d.ts +1 -0
- package/dist/types/components/indicators/progress/progress.d.ts +30 -0
- package/dist/types/components/indicators/progress/progress.types.d.ts +3 -0
- package/dist/types/components/indicators/step-diagram/step-diagram.d.ts +16 -0
- package/dist/types/components/indicators/step-diagram/step-diagram.types.d.ts +1 -0
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.d.ts +24 -0
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.types.d.ts +3 -0
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.utils.d.ts +1 -0
- package/dist/types/components/inputs/dropdown/dropdown.d.ts +90 -0
- package/dist/types/components/inputs/dropdown/dropdown.types.d.ts +8 -0
- package/dist/types/components/inputs/dropdown/internals/options.d.ts +6 -0
- package/dist/types/components/inputs/dropdown/internals/position.d.ts +26 -0
- package/dist/types/components/inputs/dropdown/test/dropdown.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/input/input.d.ts +77 -0
- package/dist/types/components/inputs/input/input.types.d.ts +2 -0
- package/dist/types/components/inputs/input/input.utils.d.ts +1 -0
- package/dist/types/components/inputs/quantity-selector/internals/number-value.d.ts +13 -0
- package/dist/types/components/{quantity-selector → inputs/quantity-selector}/quantity-selector.d.ts +10 -9
- package/dist/types/components/inputs/quantity-selector/quantity-selector.types.d.ts +1 -0
- package/dist/types/components/inputs/radio-group/radio-group.d.ts +60 -0
- package/dist/types/components/inputs/radio-group/radio-group.types.d.ts +11 -0
- package/dist/types/components/inputs/radio-group/radio-group.utils.d.ts +2 -0
- package/dist/types/components/inputs/textarea/textarea.d.ts +59 -0
- package/dist/types/components/inputs/textarea/textarea.types.d.ts +1 -0
- package/dist/types/components/inputs/toggle/toggle.d.ts +56 -0
- package/dist/types/components/inputs/toggle/toggle.types.d.ts +2 -0
- package/dist/types/components/inputs/toggle/toggle.utils.d.ts +1 -0
- package/dist/types/components/layout/card/card.d.ts +24 -0
- package/dist/types/components/layout/card/card.types.d.ts +1 -0
- package/dist/types/components/layout/card/card.utils.d.ts +5 -0
- package/dist/types/components/{carousel → layout/carousel}/carousel.d.ts +19 -7
- package/dist/types/components/layout/carousel/carousel.types.d.ts +5 -0
- package/dist/types/components/layout/carousel/carousel.utils.d.ts +1 -0
- package/dist/types/components/layout/carousel/internals/metrics.d.ts +23 -0
- package/dist/types/components/layout/form/form.d.ts +69 -0
- package/dist/types/components/layout/form/form.types.d.ts +38 -0
- package/dist/types/components/layout/form/internals/controls.d.ts +5 -0
- package/dist/types/components/layout/form/internals/enter-behavior.d.ts +2 -0
- package/dist/types/components/layout/form/internals/values.d.ts +5 -0
- package/dist/types/components/layout/form/test/form.cmp.test.d.ts +4 -0
- package/dist/types/components/layout/navbar/navbar.d.ts +66 -0
- package/dist/types/components/layout/navbar/navbar.types.d.ts +31 -0
- package/dist/types/components/layout/navbar/navbar.utils.d.ts +2 -0
- package/dist/types/components/layout/navbar/test/navbar.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/panel/panel.d.ts +33 -0
- package/dist/types/components/layout/panel/panel.types.d.ts +2 -0
- package/dist/types/components/layout/scrollable/internals/metrics.d.ts +26 -0
- package/dist/types/components/layout/scrollable/internals/native-scrollbar.d.ts +4 -0
- package/dist/types/components/layout/scrollable/scrollable.d.ts +67 -0
- package/dist/types/components/layout/scrollable/scrollable.types.d.ts +6 -0
- package/dist/types/components/layout/sidepanel/internals/drawer.d.ts +2 -0
- package/dist/types/components/layout/sidepanel/internals/groups.d.ts +7 -0
- package/dist/types/components/layout/sidepanel/internals/nav-items.d.ts +2 -0
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +93 -0
- package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +39 -0
- package/dist/types/components/layout/sidepanel/sidepanel.utils.d.ts +2 -0
- package/dist/types/components/layout/tabs/tabs.d.ts +29 -0
- package/dist/types/components/layout/tabs/tabs.types.d.ts +14 -0
- package/dist/types/components/layout/tabs/tabs.utils.d.ts +4 -0
- package/dist/types/components/layout/tabs/test/tabs.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/toolbar/toolbar.d.ts +23 -0
- package/dist/types/components/layout/toolbar/toolbar.types.d.ts +1 -0
- package/dist/types/components/media/avatar/avatar.d.ts +37 -0
- package/dist/types/components/media/avatar/avatar.types.d.ts +2 -0
- package/dist/types/components/media/icon/icon.d.ts +44 -0
- package/dist/types/components/media/icon/icon.types.d.ts +30 -0
- package/dist/types/components/media/icon/internals/constants.d.ts +3 -0
- package/dist/types/components/media/icon/internals/fetch-icon.d.ts +1 -0
- package/dist/types/components/media/icon/internals/registry.d.ts +11 -0
- package/dist/types/components/media/icon/internals/registry.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/render-definition.d.ts +2 -0
- package/dist/types/components/media/icon/internals/sanitize-svg.d.ts +2 -0
- package/dist/types/components/media/icon/internals/size.d.ts +2 -0
- package/dist/types/components/media/icon/internals/url.d.ts +11 -0
- package/dist/types/components/media/reel/reel.d.ts +34 -0
- package/dist/types/components/media/reel/reel.types.d.ts +3 -0
- package/dist/types/components/media/thumbnail/thumbnail.d.ts +21 -0
- package/dist/types/components/media/thumbnail/thumbnail.types.d.ts +7 -0
- package/dist/types/components/overlays/dialog/dialog.d.ts +71 -0
- package/dist/types/components/overlays/dialog/dialog.types.d.ts +1 -0
- package/dist/types/components/overlays/dialog/internals/backdrop.d.ts +2 -0
- package/dist/types/components/overlays/dialog/internals/lifecycle.d.ts +21 -0
- package/dist/types/components/overlays/toast/internals/icons.d.ts +2 -0
- package/dist/types/components/overlays/toast/internals/queue.d.ts +19 -0
- package/dist/types/components/overlays/toast/internals/timers.d.ts +12 -0
- package/dist/types/components/overlays/toast/test/toast.cmp.test.d.ts +2 -0
- package/dist/types/components/overlays/toast/test/toast.unit.test.d.ts +1 -0
- package/dist/types/components/overlays/toast/toast-controller.d.ts +9 -0
- package/dist/types/components/overlays/toast/toast.d.ts +44 -0
- package/dist/types/components/overlays/toast/toast.types.d.ts +30 -0
- package/dist/types/components/overlays/tooltip/internals/aria.d.ts +13 -0
- package/dist/types/components/overlays/tooltip/internals/positioning.d.ts +7 -0
- package/dist/types/components/overlays/tooltip/internals/scroll-listeners.d.ts +2 -0
- package/dist/types/components/overlays/tooltip/tooltip.d.ts +28 -0
- package/dist/types/components/overlays/tooltip/tooltip.types.d.ts +1 -0
- package/dist/types/components.d.ts +3607 -568
- package/dist/types/declarations.d.ts +14 -9
- package/dist/types/index.d.ts +12 -0
- package/dist/types/playground/components/playground-sidebar/playground-sidebar.d.ts +2 -0
- package/dist/types/utils/collection-identity.d.ts +55 -0
- package/dist/types/utils/collection-identity.unit.test.d.ts +1 -0
- package/dist/types/utils/dom.d.ts +1 -1
- package/dist/types/utils/form-control-validity.d.ts +14 -0
- package/dist/webquark/index.esm.js +1 -1
- package/dist/webquark/p-06813183.entry.js +1 -0
- package/dist/webquark/p-09d43469.entry.js +1 -0
- package/dist/webquark/p-256d199a.entry.js +1 -0
- package/dist/webquark/p-2bWqVyTo.js +1 -0
- package/dist/webquark/p-2f0bbb67.entry.js +1 -0
- package/dist/webquark/p-31d62bd0.entry.js +1 -0
- package/dist/webquark/p-35c9fa4d.entry.js +1 -0
- package/dist/webquark/p-3e4d2d19.entry.js +1 -0
- package/dist/webquark/p-4b38c28f.entry.js +1 -0
- package/dist/webquark/p-4f8ee3f7.entry.js +1 -0
- package/dist/webquark/p-53a5c493.entry.js +1 -0
- package/dist/webquark/p-721d2479.entry.js +1 -0
- package/dist/webquark/p-7be7478a.entry.js +1 -0
- package/dist/webquark/p-7c4e6512.entry.js +1 -0
- package/dist/webquark/p-7c9d705e.entry.js +1 -0
- package/dist/webquark/p-8ff218f7.entry.js +1 -0
- package/dist/webquark/p-94eba9a9.entry.js +1 -0
- package/dist/webquark/p-BEBDDqVT.js +1 -0
- package/dist/webquark/p-BIIQL66b.js +1 -0
- package/dist/webquark/p-BeeM-7Ku.js +5 -0
- package/dist/webquark/p-Bj2RJb2E.js +1 -0
- package/dist/webquark/p-BvBRW3dl.js +1 -0
- package/dist/webquark/p-ByfrUWx1.js +1 -0
- package/dist/webquark/p-CDktnDug.js +13 -0
- package/dist/webquark/p-CGZPmEUB.js +1 -0
- package/dist/webquark/p-DNFGt02p.js +1 -0
- package/dist/webquark/p-DmqVhVoj.js +1 -0
- package/dist/webquark/p-DweBlExe.js +2 -0
- package/dist/webquark/p-Dxs6LLBG.js +1 -0
- package/dist/webquark/p-WJHaLJS_.js +1 -0
- package/dist/webquark/p-a0861b0e.entry.js +1 -0
- package/dist/webquark/p-a2a3135f.entry.js +1 -0
- package/dist/webquark/p-a7b90eef.entry.js +13 -0
- package/dist/webquark/p-bc0a0428.entry.js +1 -0
- package/dist/webquark/p-bc7d7cbf.entry.js +13 -0
- package/dist/webquark/p-c4016e61.entry.js +1 -0
- package/dist/webquark/p-c64be717.entry.js +1 -0
- package/dist/webquark/p-d142bb86.entry.js +1 -0
- package/dist/webquark/p-d22a876a.entry.js +1 -0
- package/dist/webquark/p-d691a1aa.entry.js +1 -0
- package/dist/webquark/p-dabaddcb.entry.js +1 -0
- package/dist/webquark/p-dac913f9.entry.js +1 -0
- package/dist/webquark/p-de7364cd.entry.js +1 -0
- package/dist/webquark/p-e298fb31.entry.js +1 -0
- package/dist/webquark/p-e354a398.entry.js +1 -0
- package/dist/webquark/p-f1ab576a.entry.js +1 -0
- package/dist/webquark/webquark.css +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +113 -84
- package/scripts/webquark-serve.js +0 -0
- package/dist/cjs/q-button_3.cjs.entry.js +0 -603
- package/dist/cjs/q-circular-progress_2.cjs.entry.js +0 -255
- package/dist/collection/components/circular-progress/circular-progress.css +0 -85
- package/dist/collection/components/circular-progress/circular-progress.js +0 -122
- package/dist/collection/components/data-table/data-table.js +0 -481
- package/dist/collection/components/dropdown/dropdown.js +0 -606
- package/dist/collection/components/icon/icon.js +0 -297
- package/dist/collection/components/sidepanel/sidepanel.css +0 -371
- package/dist/collection/components/sidepanel/sidepanel.js +0 -460
- package/dist/collection/components/step-diagram-item/step-diagram-item.js +0 -131
- package/dist/collection/components/syntax-box/syntax-box.js +0 -534
- package/dist/collection/components/tooltip/tooltip.js +0 -249
- package/dist/components/p-91lJS0-v.js +0 -1
- package/dist/components/p-B4IF9WVv.js +0 -1
- package/dist/components/p-BCSpNDGG.js +0 -1
- package/dist/components/p-DScvq41R.js +0 -1
- package/dist/components/p-DfTW9B7V.js +0 -1
- package/dist/components/p-DgaKWrjd.js +0 -1
- package/dist/components/p-Do2ppeKL.js +0 -1
- package/dist/components/p-DoQvrOHk.js +0 -1
- package/dist/components/q-circular-progress.js +0 -1
- package/dist/esm/q-button_3.entry.js +0 -599
- package/dist/esm/q-circular-progress_2.entry.js +0 -252
- package/dist/playground/build/p-095635d3.entry.js +0 -1
- package/dist/playground/build/p-1187e439.entry.js +0 -1
- package/dist/playground/build/p-389e2cd3.entry.js +0 -1
- package/dist/playground/build/p-38d9e75b.entry.js +0 -1
- package/dist/playground/build/p-4ce667f1.entry.js +0 -1
- package/dist/playground/build/p-66b0eb0f.entry.js +0 -1
- package/dist/playground/build/p-69d33f9d.entry.js +0 -1
- package/dist/playground/build/p-6dc7b987.entry.js +0 -1
- package/dist/playground/build/p-76e04a7f.entry.js +0 -1
- package/dist/playground/build/p-776a0eb6.entry.js +0 -1
- package/dist/playground/build/p-7c4532f3.entry.js +0 -1
- package/dist/playground/build/p-7d2144cf.entry.js +0 -1
- package/dist/playground/build/p-84185204.entry.js +0 -1
- package/dist/playground/build/p-938cd8a6.entry.js +0 -1
- package/dist/playground/build/p-CYoQ4Zv3.js +0 -2
- package/dist/playground/build/p-DoQvrOHk.js +0 -1
- package/dist/playground/build/p-a182b818.entry.js +0 -1
- package/dist/playground/build/p-aa017815.entry.js +0 -1
- package/dist/playground/build/p-d7607e11.entry.js +0 -1
- package/dist/playground/playground/specs/q-circular-progress.sandbox.json +0 -91
- package/dist/types/components/button/button.d.ts +0 -26
- package/dist/types/components/card/card.d.ts +0 -12
- package/dist/types/components/circular-progress/circular-progress.d.ts +0 -7
- package/dist/types/components/data-table/data-table.d.ts +0 -45
- package/dist/types/components/dialog/dialog.d.ts +0 -35
- package/dist/types/components/dropdown/dropdown.d.ts +0 -49
- package/dist/types/components/icon/icon.d.ts +0 -33
- package/dist/types/components/input/input.d.ts +0 -43
- package/dist/types/components/reel/reel.d.ts +0 -23
- package/dist/types/components/scrollable/scrollable.d.ts +0 -47
- package/dist/types/components/sidepanel/sidepanel.d.ts +0 -58
- package/dist/types/components/step-diagram/step-diagram.d.ts +0 -10
- package/dist/types/components/step-diagram-item/step-diagram-item.d.ts +0 -12
- package/dist/types/components/syntax-box/syntax-box.d.ts +0 -37
- package/dist/types/components/textarea/textarea.d.ts +0 -36
- package/dist/types/components/thumbnail/thumbnail.d.ts +0 -18
- package/dist/types/components/toggle/toggle.d.ts +0 -36
- package/dist/types/components/tooltip/tooltip.d.ts +0 -29
- package/dist/webquark/p-095635d3.entry.js +0 -1
- package/dist/webquark/p-1187e439.entry.js +0 -1
- package/dist/webquark/p-389e2cd3.entry.js +0 -1
- package/dist/webquark/p-38d9e75b.entry.js +0 -1
- package/dist/webquark/p-4ce667f1.entry.js +0 -1
- package/dist/webquark/p-66b0eb0f.entry.js +0 -1
- package/dist/webquark/p-69d33f9d.entry.js +0 -1
- package/dist/webquark/p-6dc7b987.entry.js +0 -1
- package/dist/webquark/p-76e04a7f.entry.js +0 -1
- package/dist/webquark/p-776a0eb6.entry.js +0 -1
- package/dist/webquark/p-7c4532f3.entry.js +0 -1
- package/dist/webquark/p-7d2144cf.entry.js +0 -1
- package/dist/webquark/p-84185204.entry.js +0 -1
- package/dist/webquark/p-938cd8a6.entry.js +0 -1
- package/dist/webquark/p-CYoQ4Zv3.js +0 -2
- package/dist/webquark/p-DoQvrOHk.js +0 -1
- package/dist/webquark/p-a182b818.entry.js +0 -1
- package/dist/webquark/p-aa017815.entry.js +0 -1
- package/dist/webquark/p-d7607e11.entry.js +0 -1
- /package/dist/cjs/{index-DGQOjEwT.js → utils-DGQOjEwT.js} +0 -0
- /package/dist/esm/{index-BJiYCN3i.js → utils-BJiYCN3i.js} +0 -0
package/dist/esm/loader.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-DweBlExe.js';
|
|
2
|
+
export { s as setNonce } from './index-DweBlExe.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
6
6
|
await globalScripts();
|
|
7
|
-
return bootstrapLazy([["q-syntax-box",[[849,"q-syntax-box",{"variant":[1],"language":[1],"code":[1025],"value":[1025],"heading":[1],"copyable":[4],"height":[1],"editable":[4],"disabled":[516],"required":[516],"copied":[32],"scrollToBottom":[64]},null,{"code":[{"watchCode":0}],"value":[{"watchValue":0}]}]]],["q-data-table",[[769,"q-data-table",{"columns":[1],"items":[1],"loading":[4],"selectable":[4],"selectedKeys":[1040],"keyField":[1,"key-field"],"showToolbar":[4,"show-toolbar"],"toolbarTitle":[1,"toolbar-title"],"showSearch":[4,"show-search"],"searchPlaceholder":[1,"search-placeholder"],"searchValue":[1025,"search-value"]}]]],["q-sidepanel",[[769,"q-sidepanel",{"variant":[513],"open":[516],"side":[513],"panelSize":[1,"panel-size"],"items":[16],"value":[513],"mode":[1],"expanded":[4],"accordion":[4],"isVisible":[32],"isAnimatedOpen":[32],"expandedGroups":[32]},[[8,"keydown","handleGlobalKeyDown"]],{"open":[{"handleOpenChange":0}],"items":[{"handleItemsChange":0}]}]]],["q-card",[[769,"q-card",{"elevation":[520],"interactive":[516],"glass":[516],"lift":[516],"hasHeader":[32]}]]],["q-carousel",[[769,"q-carousel",{"snapAlignment":[513,"snap-alignment"],"showArrows":[516,"show-arrows"],"showIndicators":[516,"show-indicators"],"repeat":[516],"itemWidth":[1,"item-width"],"activeIndex":[32],"maxIndex":[32],"isScrollable":[32],"isAtStart":[32],"isAtEnd":[32],"slideTo":[64],"updateLimits":[64]}]]],["q-dialog",[[769,"q-dialog",{"open":[1540],"dialogTitle":[1,"dialog-title"],"message":[1],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"loading":[4],"confirmLabel":[1,"confirm-label"],"cancelLabel":[1,"cancel-label"],"showCancel":[4,"show-cancel"],"showConfirm":[4,"show-confirm"],"isVisible":[32],"isAnimatedOpen":[32],"show":[64],"close":[64],"confirm":[64],"cancel":[64]},[[8,"keydown","handleGlobalKeyDown"]],{"open":[{"handleOpenChange":0}]}]]],["q-dropdown",[[593,"q-dropdown",{"value":[1025],"label":[1],"placeholder":[1],"options":[1],"disabled":[516],"size":[513],"searchable":[4],"isOpen":[32],"focusedIndex":[32],"searchTerm":[32],"visibleCount":[32],"isScrollingLoading":[32]},[[8,"click","handleClickOutside"]],{"value":[{"watchValue":0}]}]]],["q-quantity-selector",[[513,"q-quantity-selector",{"value":[1026],"step":[2],"min":[2],"max":[2],"variant":[513],"inputValue":[32]},null,{"value":[{"watchValue":0}]}]]],["q-reel",[[769,"q-reel",{"layout":[1],"lightbox":[4],"activeMedia":[32]},[[0,"qMaximize","handleThumbnailMaximize"],[8,"keydown","handleGlobalKeyDown"]]]]],["q-step-diagram",[[769,"q-step-diagram",{"layout":[1]},null,{"layout":[{"handleLayoutChange":0}]}]]],["q-step-diagram-item",[[769,"q-step-diagram-item",{"status":[513],"lineStyle":[513,"line-style"],"layout":[1537]}]]],["q-textarea",[[593,"q-textarea",{"value":[1025],"placeholder":[1],"label":[1],"rows":[2],"autoGrow":[4,"auto-grow"],"resizeMode":[1,"resize-mode"],"disabled":[516],"required":[516],"error":[513],"errorMessage":[1,"error-message"],"focusElement":[64],"adjustHeight":[64]},null,{"value":[{"watchValue":0}]}]]],["q-thumbnail",[[769,"q-thumbnail",{"src":[1],"video":[516],"label":[1],"alt":[1],"highlighted":[516]}]]],["q-toggle",[[833,"q-toggle",{"checked":[1540],"size":[1],"type":[1],"label":[1],"disabled":[516],"required":[516],"error":[1],"hasCheckedIcon":[32],"hasUncheckedIcon":[32],"hasDefaultSlot":[32],"toggle":[64]},null,{"checked":[{"watchChecked":0}]}]]],["q-circular-progress_2",[[513,"q-circular-progress",{"value":[2],"label":[1],"indeterminate":[4],"size":[513]}],[849,"q-input",{"value":[1025],"type":[1],"placeholder":[1],"label":[1],"disabled":[516],"required":[516],"error":[513],"errorMessage":[1,"error-message"],"size":[1],"clearable":[4],"min":[2],"max":[2],"step":[2],"hasPrefix":[32],"hasSuffix":[32],"focusElement":[64],"clearValue":[64]},null,{"value":[{"watchValue":0}]}]]],["q-icon",[[513,"q-icon",{"name":[1],"lib":[1],"size":[1],"color":[1],"localPath":[1,"local-path"],"svgContent":[32],"isBinary":[32],"resolvedUrl":[32],"hasError":[32]},null,{"name":[{"watchHandler":0}],"lib":[{"watchHandler":0}],"localPath":[{"watchHandler":0}]}]]],["q-button_3",[[785,"q-button",{"variant":[1],"size":[1],"disabled":[516],"loading":[516],"type":[1],"expand":[516],"href":[1],"target":[1],"download":[1],"iconOnly":[516,"icon-only"],"autoIconOnly":[32]}],[769,"q-scrollable",{"height":[513],"maxHeight":[513,"max-height"],"autoHide":[516,"auto-hide"],"nativeOnMobile":[516,"native-on-mobile"],"mode":[513],"target":[513],"isScrolling":[32],"isDragging":[32],"scrollToBottom":[64],"scrollToPosition":[64]},null,{"mode":[{"handleModeOrTargetChange":0}],"target":[{"handleModeOrTargetChange":0}]}],[769,"q-tooltip",{"content":[1],"position":[1],"delay":[2],"visible":[32]}]]]], options);
|
|
7
|
+
return bootstrapLazy(JSON.parse("[[\"q-data-table\",[[769,\"q-data-table\",{\"columns\":[1],\"items\":[1],\"keyField\":[1,\"key-field\"],\"rowGroup\":[16],\"rowActions\":[1,\"row-actions\"],\"rowClickable\":[4,\"row-clickable\"],\"selectable\":[4],\"selectedKeys\":[1040],\"sortable\":[4],\"sortMode\":[1,\"sort-mode\"],\"sortColumn\":[1025,\"sort-column\"],\"sortDirection\":[1025,\"sort-direction\"],\"showToolbar\":[4,\"show-toolbar\"],\"toolbarTitle\":[1,\"toolbar-title\"],\"ariaLabel\":[1,\"aria-label\"],\"showSearch\":[4,\"show-search\"],\"searchPlaceholder\":[1,\"search-placeholder\"],\"searchValue\":[1025,\"search-value\"],\"loading\":[4]}]]],[\"q-syntax-box\",[[849,\"q-syntax-box\",{\"code\":[1025],\"value\":[1025],\"heading\":[1],\"ariaLabel\":[1,\"aria-label\"],\"variant\":[1],\"height\":[1],\"copyable\":[4],\"editable\":[516],\"name\":[513],\"required\":[516],\"language\":[1],\"disabled\":[516],\"copied\":[32],\"copyFailed\":[32],\"scrollToBottom\":[64],\"checkValidity\":[64],\"reportValidity\":[64]},null,{\"code\":[{\"watchCode\":0}],\"value\":[{\"watchValue\":0}],\"editable\":[{\"watchEditable\":0}]}]]],[\"q-map\",[[769,\"q-map\",{\"attribution\":[1],\"attributionUrl\":[1,\"attribution-url\"],\"markers\":[1],\"clusterMarkers\":[4,\"cluster-markers\"],\"clusterRadius\":[2,\"cluster-radius\"],\"clusterMinPoints\":[2,\"cluster-min-points\"],\"clusterMaxZoom\":[2,\"cluster-max-zoom\"],\"centerLatitude\":[2,\"center-latitude\"],\"centerLongitude\":[2,\"center-longitude\"],\"zoom\":[2],\"zoomControls\":[4,\"zoom-controls\"],\"minZoom\":[2,\"min-zoom\"],\"maxZoom\":[2,\"max-zoom\"],\"maxBounds\":[1,\"max-bounds\"],\"maxBoundsViscosity\":[2,\"max-bounds-viscosity\"],\"selectedMarkerId\":[8,\"selected-marker-id\"],\"provider\":[1],\"tileUrl\":[1,\"tile-url\"],\"tilePreloadBuffer\":[2,\"tile-preload-buffer\"],\"rasterTileLoadingPolicy\":[1,\"raster-tile-loading-policy\"],\"vectorStyleUrl\":[1,\"vector-style-url\"],\"vectorPadding\":[2,\"vector-padding\"],\"googleApiKey\":[1,\"google-api-key\"],\"googleMapType\":[1,\"google-map-type\"],\"ariaLabel\":[1,\"aria-label\"],\"providerStatus\":[32],\"activeProvider\":[32],\"usingFallback\":[32],\"errorMessage\":[32],\"ensureMarkerVisible\":[64]},null,{\"provider\":[{\"handleBaseLayerChange\":0}],\"tileUrl\":[{\"handleBaseLayerChange\":0}],\"rasterTileLoadingPolicy\":[{\"handleBaseLayerChange\":0}],\"vectorStyleUrl\":[{\"handleBaseLayerChange\":0}],\"googleApiKey\":[{\"handleBaseLayerChange\":0}],\"googleMapType\":[{\"handleBaseLayerChange\":0}],\"tilePreloadBuffer\":[{\"handleTilePreloadBufferChange\":0}],\"vectorPadding\":[{\"handleVectorPaddingChange\":0}],\"markers\":[{\"handleMarkersChange\":0}],\"clusterMarkers\":[{\"handleMarkerClusteringChange\":0}],\"clusterRadius\":[{\"handleMarkerClusteringChange\":0}],\"clusterMinPoints\":[{\"handleMarkerClusteringChange\":0}],\"clusterMaxZoom\":[{\"handleMarkerClusteringChange\":0}],\"selectedMarkerId\":[{\"handleSelectedMarkerChange\":0}],\"centerLatitude\":[{\"handleViewChange\":0}],\"centerLongitude\":[{\"handleViewChange\":0}],\"zoom\":[{\"handleViewChange\":0}],\"minZoom\":[{\"handleZoomLimitsChange\":0}],\"maxZoom\":[{\"handleZoomLimitsChange\":0}],\"maxBounds\":[{\"handleBoundsChange\":0}],\"maxBoundsViscosity\":[{\"handleBoundsChange\":0}],\"zoomControls\":[{\"handleZoomControlsChange\":0}]}]]],[\"q-navbar\",[[769,\"q-navbar\",{\"brand\":[1],\"logoSrc\":[1,\"logo-src\"],\"logoAlt\":[1,\"logo-alt\"],\"brandHref\":[1,\"brand-href\"],\"items\":[1],\"activeValue\":[1,\"active-value\"],\"edge\":[513],\"sticky\":[516],\"compact\":[516],\"transparent\":[516],\"bordered\":[516],\"mobileMode\":[513,\"mobile-mode\"],\"mobileLabel\":[1,\"mobile-label\"],\"ariaLabel\":[1,\"aria-label\"],\"menuOpen\":[32],\"hasMobileContent\":[32]}]]],[\"q-radio-group\",[[593,\"q-radio-group\",{\"label\":[1],\"options\":[1],\"value\":[1025],\"size\":[513],\"orientation\":[513],\"disabled\":[516],\"required\":[516],\"error\":[513],\"errorMessage\":[1,\"error-message\"],\"name\":[513],\"ariaLabel\":[1,\"aria-label\"],\"focusElement\":[64],\"checkValidity\":[64],\"reportValidity\":[64]},null,{\"value\":[{\"watchValue\":0}],\"options\":[{\"watchConstraints\":0}],\"disabled\":[{\"watchConstraints\":0}],\"required\":[{\"watchConstraints\":0}],\"error\":[{\"watchConstraints\":0}],\"errorMessage\":[{\"watchConstraints\":0}]}]]],[\"q-sidepanel\",[[769,\"q-sidepanel\",{\"variant\":[513],\"open\":[1540],\"side\":[513],\"panelSize\":[1,\"panel-size\"],\"items\":[16],\"value\":[513],\"mode\":[1],\"expanded\":[4],\"accordion\":[4],\"collapsible\":[516],\"collapsed\":[1540],\"collapseControl\":[1,\"collapse-control\"],\"collapseControlAppearance\":[513,\"collapse-control-appearance\"],\"collapseControlPosition\":[1,\"collapse-control-position\"],\"collapseMode\":[513,\"collapse-mode\"],\"collapseLabel\":[1,\"collapse-label\"],\"ariaLabel\":[1,\"aria-label\"],\"isVisible\":[32],\"isAnimatedOpen\":[32],\"hasHeaderContent\":[32],\"hasFooterContent\":[32],\"expandedGroups\":[32],\"normalizedItems\":[32]},[[8,\"keydown\",\"handleGlobalKeyDown\"]],{\"open\":[{\"handleOpenChange\":0}],\"items\":[{\"handleItemsChange\":0}]}]]],[\"q-tabs\",[[513,\"q-tabs\",{\"items\":[1],\"value\":[1],\"orientation\":[513],\"size\":[1],\"variant\":[1],\"stretch\":[516],\"ariaLabel\":[1,\"aria-label\"]}]]],[\"q-toast\",[[513,\"q-toast\",{\"position\":[513],\"maxVisible\":[2,\"max-visible\"],\"visibleToasts\":[32],\"announcementText\":[32],\"info\":[64],\"success\":[64],\"warning\":[64],\"danger\":[64],\"error\":[64],\"dismiss\":[64],\"clear\":[64]},null,{\"maxVisible\":[{\"handleMaxVisibleChange\":0}]}]]],[\"q-avatar\",[[769,\"q-avatar\",{\"src\":[1],\"name\":[1],\"initials\":[1],\"alt\":[1],\"size\":[8],\"shape\":[513],\"loading\":[1],\"imageFailed\":[32]},null,{\"src\":[{\"handleSourceChange\":0}]}]]],[\"q-card\",[[769,\"q-card\",{\"elevation\":[520],\"glass\":[516],\"lift\":[516],\"interactive\":[516],\"hasHeader\":[32]}]]],[\"q-carousel\",[[769,\"q-carousel\",{\"snapAlignment\":[513,\"snap-alignment\"],\"itemWidth\":[513,\"item-width\"],\"showArrows\":[516,\"show-arrows\"],\"showIndicators\":[516,\"show-indicators\"],\"repeat\":[516],\"activeIndex\":[32],\"maxIndex\":[32],\"isScrollable\":[32],\"isAtStart\":[32],\"isAtEnd\":[32],\"slideTo\":[64],\"updateLimits\":[64]}]]],[\"q-chip\",[[785,\"q-chip\",{\"label\":[1],\"disabled\":[516],\"href\":[1],\"rel\":[1],\"download\":[1],\"value\":[1],\"variant\":[513],\"size\":[513],\"clickable\":[516],\"removable\":[516],\"selected\":[516],\"target\":[1]}]]],[\"q-conversation-bubble\",[[769,\"q-conversation-bubble\",{\"variant\":[513],\"sender\":[1],\"timestamp\":[1],\"ariaLabel\":[1,\"aria-label\"],\"compact\":[516],\"hasAvatar\":[32],\"hasMeta\":[32],\"hasActions\":[32]}]]],[\"q-dialog\",[[769,\"q-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"ariaLabel\":[1,\"aria-label\"],\"message\":[1],\"backdropEffect\":[513,\"backdrop-effect\"],\"closeOnEsc\":[4,\"close-on-esc\"],\"closeOnOverlayClick\":[4,\"close-on-overlay-click\"],\"showCancel\":[4,\"show-cancel\"],\"cancelLabel\":[1,\"cancel-label\"],\"showConfirm\":[4,\"show-confirm\"],\"confirmLabel\":[1,\"confirm-label\"],\"loading\":[4],\"open\":[1540],\"closeLabel\":[1,\"close-label\"],\"isVisible\":[32],\"isAnimatedOpen\":[32],\"show\":[64],\"close\":[64],\"confirm\":[64],\"cancel\":[64]},[[8,\"keydown\",\"handleGlobalKeyDown\"]],{\"open\":[{\"handleOpenChange\":0}]}]]],[\"q-dropdown\",[[849,\"q-dropdown\",{\"label\":[1],\"ariaLabel\":[1,\"aria-label\"],\"placeholder\":[1],\"options\":[1],\"value\":[1025],\"size\":[513],\"searchable\":[4],\"externalSearch\":[4,\"external-search\"],\"hasMore\":[4,\"has-more\"],\"loading\":[4],\"placement\":[1],\"collisionPadding\":[2,\"collision-padding\"],\"disabled\":[516],\"name\":[513],\"isOpen\":[32],\"focusedIndex\":[32],\"searchTerm\":[32],\"visibleCount\":[32],\"isScrollingLoading\":[32]},[[8,\"click\",\"handleClickOutside\"]],{\"value\":[{\"watchValue\":0}],\"options\":[{\"watchOptions\":0}],\"loading\":[{\"watchLoading\":0}]}]]],[\"q-form\",[[769,\"q-form\",{\"label\":[1],\"preventDefault\":[4,\"prevent-default\"],\"enterBehavior\":[1,\"enter-behavior\"],\"noValidate\":[4,\"no-validate\"],\"action\":[1],\"method\":[1],\"autocomplete\":[1],\"enctype\":[1],\"target\":[1],\"hasHeaderSlot\":[32],\"hasActionsSlot\":[32],\"getValues\":[64],\"setValues\":[64],\"resetForm\":[64],\"submitForm\":[64]},[[0,\"click\",\"handleComposedClick\"],[0,\"qClick\",\"handleButtonClick\"],[0,\"keydown\",\"handleKeyDown\"]]]]],[\"q-link\",[[769,\"q-link\",{\"label\":[1],\"disabled\":[516],\"href\":[1],\"rel\":[1],\"download\":[1],\"variant\":[513],\"underline\":[513],\"url\":[1],\"mailto\":[1],\"tel\":[1],\"target\":[1],\"external\":[516]}]]],[\"q-pagination\",[[513,\"q-pagination\",{\"showSummary\":[4,\"show-summary\"],\"itemLabel\":[1,\"item-label\"],\"page\":[2],\"pageSize\":[2,\"page-size\"],\"totalItems\":[2,\"total-items\"],\"disabled\":[516],\"ariaLabel\":[1,\"aria-label\"]}]]],[\"q-panel\",[[769,\"q-panel\",{\"variant\":[513],\"noBorders\":[516,\"no-borders\"],\"padding\":[513],\"fullHeight\":[516,\"full-height\"],\"scrollable\":[516],\"stickyHeader\":[516,\"sticky-header\"],\"stickyFooter\":[516,\"sticky-footer\"],\"ariaLabel\":[1,\"aria-label\"],\"hasHeader\":[32],\"hasFooter\":[32]}]]],[\"q-quantity-selector\",[[513,\"q-quantity-selector\",{\"value\":[1026],\"min\":[2],\"max\":[2],\"step\":[2],\"variant\":[513],\"inputValue\":[32]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"q-reel\",[[769,\"q-reel\",{\"layout\":[1],\"lightbox\":[4],\"activeMedia\":[32]},[[0,\"qMaximize\",\"handleThumbnailMaximize\"],[8,\"keydown\",\"handleGlobalKeyDown\"]],{\"lightbox\":[{\"handleLightboxChange\":0}]}]]],[\"q-step-diagram\",[[769,\"q-step-diagram\",{\"layout\":[513],\"ariaLabel\":[1,\"aria-label\"]},null,{\"layout\":[{\"handleLayoutChange\":0}]}]]],[\"q-step-diagram-item\",[[769,\"q-step-diagram-item\",{\"lineStyle\":[513,\"line-style\"],\"layout\":[1537],\"status\":[513]}]]],[\"q-textarea\",[[593,\"q-textarea\",{\"value\":[1025],\"placeholder\":[1],\"label\":[1],\"ariaLabel\":[1,\"aria-label\"],\"rows\":[2],\"autoGrow\":[4,\"auto-grow\"],\"resizeMode\":[1,\"resize-mode\"],\"disabled\":[516],\"required\":[516],\"error\":[513],\"errorMessage\":[1,\"error-message\"],\"name\":[513],\"focusElement\":[64],\"adjustHeight\":[64],\"checkValidity\":[64],\"reportValidity\":[64]},null,{\"value\":[{\"watchValue\":0}],\"resizeMode\":[{\"handleResizeModeChange\":0}],\"autoGrow\":[{\"handleResizeModeChange\":0}]}]]],[\"q-thumbnail\",[[769,\"q-thumbnail\",{\"src\":[1],\"video\":[516],\"label\":[1],\"alt\":[1],\"highlighted\":[516]}]]],[\"q-toggle\",[[833,\"q-toggle\",{\"label\":[1],\"size\":[1],\"type\":[1],\"checked\":[1540],\"disabled\":[516],\"required\":[516],\"error\":[1],\"name\":[513],\"hasDefaultSlot\":[32],\"toggle\":[64],\"checkValidity\":[64],\"reportValidity\":[64]},null,{\"checked\":[{\"watchChecked\":0}]}]]],[\"q-toolbar\",[[769,\"q-toolbar\",{\"edge\":[513],\"sticky\":[516],\"compact\":[516],\"transparent\":[516],\"bordered\":[516],\"ariaLabel\":[1,\"aria-label\"]}]]],[\"q-alert\",[[769,\"q-alert\",{\"heading\":[1],\"variant\":[513],\"dismissible\":[4],\"dismissLabel\":[1,\"dismiss-label\"],\"announcement\":[1],\"hasIcon\":[32],\"hasActions\":[32]}]]],[\"q-scrollable\",[[769,\"q-scrollable\",{\"height\":[513],\"maxHeight\":[513,\"max-height\"],\"mode\":[513],\"target\":[513],\"nativeOnMobile\":[516,\"native-on-mobile\"],\"autoHide\":[516,\"auto-hide\"],\"isScrolling\":[32],\"isDragging\":[32],\"scrollValueNow\":[32],\"scrollValueMax\":[32],\"scrollToBottom\":[64],\"scrollToPosition\":[64]},null,{\"mode\":[{\"handleModeOrTargetChange\":0}],\"target\":[{\"handleModeOrTargetChange\":0}]}]]],[\"q-input_2\",[[849,\"q-input\",{\"value\":[1025],\"placeholder\":[1],\"label\":[1],\"ariaLabel\":[1,\"aria-label\"],\"size\":[1],\"clearable\":[4],\"disabled\":[516],\"required\":[516],\"error\":[513],\"errorMessage\":[1,\"error-message\"],\"name\":[513],\"type\":[1],\"min\":[2],\"max\":[2],\"step\":[2],\"hasPrefix\":[32],\"hasSuffix\":[32],\"passwordVisible\":[32],\"focusElement\":[64],\"clearValue\":[64],\"checkValidity\":[64],\"reportValidity\":[64]},null,{\"value\":[{\"watchValue\":0}]}],[513,\"q-progress\",{\"value\":[2],\"label\":[1],\"indeterminate\":[516],\"ariaValueText\":[1,\"aria-valuetext\"],\"variant\":[513],\"size\":[520],\"tone\":[513],\"ariaLabel\":[1,\"aria-label\"]}]]],[\"q-icon\",[[513,\"q-icon\",{\"name\":[1],\"definition\":[16],\"lib\":[1],\"localPath\":[1,\"local-path\"],\"libVersion\":[1,\"lib-version\"],\"fetchTimeout\":[2,\"fetch-timeout\"],\"size\":[8],\"color\":[1],\"label\":[1],\"svgContent\":[32],\"isBinary\":[32],\"resolvedUrl\":[32],\"hasError\":[32],\"resolvedDefinition\":[32]},null,{\"name\":[{\"watchHandler\":0}],\"definition\":[{\"watchHandler\":0}],\"lib\":[{\"watchHandler\":0}],\"localPath\":[{\"watchHandler\":0}],\"libVersion\":[{\"watchHandler\":0}]}]]],[\"q-button_2\",[[785,\"q-button\",{\"disabled\":[516],\"href\":[1],\"rel\":[1],\"download\":[1],\"icon\":[1],\"iconOnly\":[516,\"icon-only\"],\"ariaLabel\":[1,\"aria-label\"],\"variant\":[1],\"size\":[1],\"shape\":[513],\"layout\":[513],\"expand\":[516],\"loading\":[516],\"target\":[1],\"type\":[1],\"autoIconOnly\":[32]},null,{\"icon\":[{\"handleIconAccessibilityChange\":0}],\"iconOnly\":[{\"handleIconAccessibilityChange\":0}],\"ariaLabel\":[{\"handleIconAccessibilityChange\":0}]}],[769,\"q-tooltip\",{\"content\":[1],\"position\":[513],\"delay\":[2],\"visible\":[32]}]]]]"), options);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { defineCustomElements };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const Q_MAP_DEFAULT_CLUSTER_GROUP = 'default';
|
|
2
|
+
const Q_MAP_RASTER_TILE_LOADING_POLICIES = [
|
|
3
|
+
'full-batch',
|
|
4
|
+
'progressive',
|
|
5
|
+
];
|
|
6
|
+
const Q_MAP_MARKER_VARIANTS = ['default', 'success', 'warning', 'danger', 'muted'];
|
|
7
|
+
const Q_MAP_MARKER_KINDS = ['dot', 'avatar', 'icon'];
|
|
8
|
+
const Q_MAP_MARKER_SIZES = ['small', 'medium', 'large'];
|
|
9
|
+
const Q_MAP_MARKER_RINGS = ['none', 'solid', 'dashed'];
|
|
10
|
+
const Q_MAP_MARKER_CALLOUT_PLACEMENTS = ['auto', 'left', 'right', 'top', 'bottom'];
|
|
11
|
+
const Q_MAP_MARKER_CALLOUT_STAT_LAYOUTS = ['compact', 'wide'];
|
|
12
|
+
const Q_MAP_MARKER_CALLOUT_VISIBILITIES = ['always', 'selected'];
|
|
13
|
+
|
|
14
|
+
export { Q_MAP_DEFAULT_CLUSTER_GROUP as Q, Q_MAP_MARKER_CALLOUT_PLACEMENTS as a, Q_MAP_MARKER_CALLOUT_STAT_LAYOUTS as b, Q_MAP_MARKER_CALLOUT_VISIBILITIES as c, Q_MAP_MARKER_KINDS as d, Q_MAP_MARKER_RINGS as e, Q_MAP_MARKER_SIZES as f, Q_MAP_MARKER_VARIANTS as g, Q_MAP_RASTER_TILE_LOADING_POLICIES as h };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DweBlExe.js';
|
|
2
|
+
|
|
3
|
+
const alertCss = () => `:host{display:block;box-sizing:border-box;color:var(--q-alert-fg, var(--q-fg-base, #f9fafb));font-family:var(--q-font-family, inherit)}.alert{--_q-alert-accent:var(--q-color-primary, #60a5fa);--_q-alert-bg:color-mix(in srgb, var(--_q-alert-accent) 12%, transparent);--_q-alert-border:color-mix(in srgb, var(--_q-alert-accent) 55%, transparent);display:flex;align-items:start;gap:var(--q-alert-gap, 10px);box-sizing:border-box;width:100%;padding:var(--q-alert-padding, 12px 14px);border:var(--q-alert-border, 1px solid var(--_q-alert-border));border-left:var(--q-alert-accent-border, 3px solid var(--_q-alert-accent));border-radius:var(--q-alert-radius, var(--q-radius-md, 7px));background:var(--q-alert-bg, var(--_q-alert-bg))}.alert.variant-success{--_q-alert-accent:var(--q-color-success, #34d399)}.alert.variant-warning{--_q-alert-accent:var(--q-color-warning, #fbbf24)}.alert.variant-danger{--_q-alert-accent:var(--q-color-danger, #f87171)}.icon,.actions{display:none}.icon.has-content{display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;min-height:1.25rem;color:var(--_q-alert-accent)}.content{flex:1 1 auto;min-width:0}.heading{margin-bottom:var(--q-alert-heading-gap, 2px);color:var(--q-alert-heading-fg, currentColor);font-size:var(--q-alert-heading-size, var(--q-font-size-base, 0.9rem));font-weight:var(--q-alert-heading-weight, var(--q-font-weight-bold, 600));line-height:1.4}.message{color:var(--q-alert-message-fg, var(--q-fg-muted, #d1d5db));font-size:var(--q-alert-message-size, var(--q-font-size-sm, 0.8125rem));line-height:1.5}.actions{align-items:center;gap:var(--q-alert-actions-gap, 8px)}.actions.has-content{display:inline-flex}.dismiss-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--q-alert-dismiss-size, 28px);height:var(--q-alert-dismiss-size, 28px);margin:-4px -6px -4px 0;padding:0;color:var(--q-alert-dismiss-fg, currentColor);border:0;border-radius:var(--q-alert-dismiss-radius, var(--q-radius-sm, 4px));background:transparent;font:inherit;font-size:1.25rem;line-height:1;cursor:pointer}.dismiss-button:hover{background:var( --q-alert-dismiss-hover-bg, color-mix(in srgb, currentColor 8%, transparent) )}.dismiss-button:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:1px}@media (max-width: 480px){.alert{flex-wrap:wrap}.actions.has-content{flex:1 0 100%}}`;
|
|
4
|
+
|
|
5
|
+
const QAlert = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.qDismiss = createEvent(this, "qDismiss");
|
|
9
|
+
}
|
|
10
|
+
get el() { return getElement(this); }
|
|
11
|
+
heading;
|
|
12
|
+
variant = 'info';
|
|
13
|
+
dismissible = false;
|
|
14
|
+
/** Accessible label for the dismiss button. */
|
|
15
|
+
dismissLabel = 'Dismiss alert';
|
|
16
|
+
/** Live-region behavior. Announcements are off by default to avoid noisy updates. */
|
|
17
|
+
announcement = 'off';
|
|
18
|
+
/** The component remains rendered after dismissal. */
|
|
19
|
+
qDismiss;
|
|
20
|
+
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
21
|
+
hasIcon = false;
|
|
22
|
+
hasActions = false;
|
|
23
|
+
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
24
|
+
componentWillLoad() {
|
|
25
|
+
this.hasIcon = this.el.querySelector('[slot="icon"]') !== null;
|
|
26
|
+
this.hasActions = this.el.querySelector('[slot="actions"]') !== null;
|
|
27
|
+
}
|
|
28
|
+
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
29
|
+
handleSlotChange = (event) => {
|
|
30
|
+
const slot = event.target;
|
|
31
|
+
if (slot.name === 'icon') {
|
|
32
|
+
this.hasIcon = slot.assignedNodes({ flatten: true }).length > 0;
|
|
33
|
+
}
|
|
34
|
+
else if (slot.name === 'actions') {
|
|
35
|
+
this.hasActions = slot.assignedNodes({ flatten: true }).length > 0;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
39
|
+
render() {
|
|
40
|
+
const accessibility = this.announcement === 'assertive'
|
|
41
|
+
? { role: 'alert', ariaLive: 'assertive' }
|
|
42
|
+
: this.announcement === 'polite'
|
|
43
|
+
? { role: 'status', ariaLive: 'polite' }
|
|
44
|
+
: { role: undefined, ariaLive: undefined };
|
|
45
|
+
return (h("div", { key: 'd1cc6ab33b533de24bdd6f4dbb98cff2bf85d107', class: { 'alert': true, [`variant-${this.variant}`]: true }, part: "container", role: accessibility.role, "aria-live": accessibility.ariaLive, "aria-atomic": this.announcement === 'off' ? undefined : 'true' }, h("span", { key: 'e5a437890608457c1e15a3821846b39b8f0e7ce7', class: { 'icon': true, 'has-content': this.hasIcon }, part: "icon", "aria-hidden": "true" }, h("slot", { key: 'a6b7dc0b189f239e734399f971ad818b0228b2ef', name: "icon", onSlotchange: this.handleSlotChange })), h("div", { key: '1cb380d62fc3356ccfa86e4ca333dc5d824e7e71', class: "content", part: "content" }, this.heading && (h("div", { key: '5e239f840b484afe88ef5805b1a8919d7af2be76', class: "heading", part: "heading" }, this.heading)), h("div", { key: '063fe5b15f7dc4b1d22780b6c978b7c8246be529', class: "message", part: "message" }, h("slot", { key: '3e921f605cea18e78a4a8f9332d98af36515bb0c' }))), h("div", { key: '0d6ef9fbbbd572b6e4082229dd7632ccd6013c3c', class: { 'actions': true, 'has-content': this.hasActions }, part: "actions" }, h("slot", { key: '9ade3fbb81b8fe2638fec6bc00b7728f5e5f8370', name: "actions", onSlotchange: this.handleSlotChange })), this.dismissible && (h("button", { key: 'b7a3bed1bd3eb4f69f565090c9aa7874c1ace221', class: "dismiss-button", part: "dismiss-button", type: "button", "aria-label": this.dismissLabel.trim() || 'Dismiss alert', onClick: () => this.qDismiss.emit() }, h("span", { key: '859f84931af9b266d5ddda36a3046b65305ea198', "aria-hidden": "true" }, "\u00D7")))));
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
QAlert.style = alertCss();
|
|
49
|
+
|
|
50
|
+
export { QAlert as q_alert };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DweBlExe.js';
|
|
2
|
+
|
|
3
|
+
const avatarCss = () => `:host{display:inline-flex;flex:0 0 auto;box-sizing:border-box;vertical-align:middle}.avatar{display:inline-flex;align-items:center;justify-content:center;width:var(--q-avatar-resolved-size, var(--q-avatar-size-md, 40px));height:var(--q-avatar-resolved-size, var(--q-avatar-size-md, 40px));box-sizing:border-box;overflow:hidden;color:var(--q-avatar-fg, var(--q-fg-base, #f9fafb));border:var(--q-avatar-border, var(--q-border, 1px solid var(--q-border-color, #374151)));background:var(--q-avatar-bg, var(--q-bg-surface-3, #22304d));font-family:var(--q-font-family, inherit);font-size:var(--q-avatar-font-size, 0.8rem);font-weight:var(--q-avatar-font-weight, var(--q-font-weight-bold, 600));line-height:1;user-select:none}.size-sm{width:var(--q-avatar-size-sm, 28px);height:var(--q-avatar-size-sm, 28px);font-size:var(--q-avatar-font-size-sm, 0.65rem)}.size-lg{width:var(--q-avatar-size-lg, 56px);height:var(--q-avatar-size-lg, 56px);font-size:var(--q-avatar-font-size-lg, 1rem)}.size-custom{width:var(--q-avatar-resolved-size, var(--q-avatar-size-md, 40px));height:var(--q-avatar-resolved-size, var(--q-avatar-size-md, 40px))}.shape-circle{border-radius:50%}.shape-rounded{border-radius:var(--q-avatar-radius, var(--q-radius-md, 7px))}.shape-square{border-radius:0}.avatar-image{display:block;width:100%;height:100%;object-fit:cover}.avatar-fallback{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;letter-spacing:0.02em;text-transform:uppercase}`;
|
|
4
|
+
|
|
5
|
+
const QAvatar = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.qLoad = createEvent(this, "qLoad");
|
|
9
|
+
this.qError = createEvent(this, "qError");
|
|
10
|
+
}
|
|
11
|
+
get el() { return getElement(this); }
|
|
12
|
+
/** Image source. An empty value renders the fallback immediately. */
|
|
13
|
+
src;
|
|
14
|
+
/** Name used to derive fallback initials and, unless `alt` is supplied, the accessible name. */
|
|
15
|
+
name;
|
|
16
|
+
/** Explicit fallback text. Values are normalized to at most two visible characters. */
|
|
17
|
+
initials;
|
|
18
|
+
/** Accessible image text. Set an explicit empty string when the avatar is decorative. */
|
|
19
|
+
alt;
|
|
20
|
+
/** Preset, pixel number, or CSS size. */
|
|
21
|
+
size = 'md';
|
|
22
|
+
shape = 'circle';
|
|
23
|
+
/** Native image loading policy. */
|
|
24
|
+
loading = 'lazy';
|
|
25
|
+
qLoad;
|
|
26
|
+
qError;
|
|
27
|
+
imageFailed = false;
|
|
28
|
+
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
29
|
+
handleSourceChange() {
|
|
30
|
+
this.imageFailed = false;
|
|
31
|
+
}
|
|
32
|
+
componentWillRender() {
|
|
33
|
+
this.syncHostSize();
|
|
34
|
+
}
|
|
35
|
+
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
36
|
+
get accessibleName() {
|
|
37
|
+
if (this.alt !== undefined) {
|
|
38
|
+
return this.alt.trim() || undefined;
|
|
39
|
+
}
|
|
40
|
+
return this.name?.trim() || undefined;
|
|
41
|
+
}
|
|
42
|
+
get fallbackText() {
|
|
43
|
+
const explicitInitials = this.initials?.trim();
|
|
44
|
+
if (explicitInitials) {
|
|
45
|
+
return Array.from(explicitInitials).slice(0, 2).join('').toUpperCase();
|
|
46
|
+
}
|
|
47
|
+
const parts = this.name?.trim().split(/\s+/).filter(Boolean) ?? [];
|
|
48
|
+
if (parts.length === 0)
|
|
49
|
+
return '?';
|
|
50
|
+
if (parts.length === 1)
|
|
51
|
+
return Array.from(parts[0]).slice(0, 2).join('').toUpperCase();
|
|
52
|
+
return `${Array.from(parts[0])[0] ?? ''}${Array.from(parts[parts.length - 1])[0] ?? ''}`.toUpperCase();
|
|
53
|
+
}
|
|
54
|
+
get shouldRenderImage() {
|
|
55
|
+
return Boolean(this.src?.trim()) && !this.imageFailed;
|
|
56
|
+
}
|
|
57
|
+
syncHostSize() {
|
|
58
|
+
if (typeof this.size === 'number') {
|
|
59
|
+
const value = Number.isFinite(this.size) && this.size > 0 ? `${this.size}px` : '';
|
|
60
|
+
this.el.style.setProperty('--q-avatar-resolved-size', value);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const value = String(this.size).trim();
|
|
64
|
+
if (value && !['sm', 'md', 'lg'].includes(value)) {
|
|
65
|
+
this.el.style.setProperty('--q-avatar-resolved-size', value);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
this.el.style.removeProperty('--q-avatar-resolved-size');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
handleImageLoad = () => {
|
|
72
|
+
this.qLoad.emit();
|
|
73
|
+
};
|
|
74
|
+
handleImageError = () => {
|
|
75
|
+
this.imageFailed = true;
|
|
76
|
+
this.qError.emit();
|
|
77
|
+
};
|
|
78
|
+
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
79
|
+
render() {
|
|
80
|
+
const accessibleName = this.accessibleName;
|
|
81
|
+
const preset = typeof this.size === 'string' && ['sm', 'md', 'lg'].includes(this.size)
|
|
82
|
+
? this.size
|
|
83
|
+
: 'custom';
|
|
84
|
+
return (h("div", { key: '9a3b53c140e794e1f9d9bf0b864f85e7852a37c5', class: {
|
|
85
|
+
avatar: true,
|
|
86
|
+
[`size-${preset}`]: true,
|
|
87
|
+
[`shape-${this.shape}`]: true,
|
|
88
|
+
'has-image': this.shouldRenderImage,
|
|
89
|
+
}, part: "container", role: accessibleName ? 'img' : undefined, "aria-label": accessibleName, "aria-hidden": accessibleName ? undefined : 'true' }, this.shouldRenderImage ? (h("img", { class: "avatar-image", part: "image", src: this.src, alt: "", "aria-hidden": "true", loading: this.loading, referrerPolicy: "no-referrer", onLoad: this.handleImageLoad, onError: this.handleImageError })) : (h("span", { class: "avatar-fallback", part: "fallback", "aria-hidden": "true" }, h("slot", { name: "fallback" }, this.fallbackText)))));
|
|
90
|
+
}
|
|
91
|
+
static get watchers() { return {
|
|
92
|
+
"src": [{
|
|
93
|
+
"handleSourceChange": 0
|
|
94
|
+
}]
|
|
95
|
+
}; }
|
|
96
|
+
};
|
|
97
|
+
QAvatar.style = avatarCss();
|
|
98
|
+
|
|
99
|
+
export { QAvatar as q_avatar };
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
import { M as Mixin, r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-DweBlExe.js';
|
|
2
|
+
import { a as withActionProps } from './action.props-BJWXy1Ec.js';
|
|
3
|
+
|
|
4
|
+
const buttonCss = () => `:host{display:inline-block;box-sizing:border-box}:host([expand]){display:block;width:100%}.btn{display:inline-flex;align-items:center;justify-content:center;position:relative;text-decoration:none;border-radius:var(--q-btn-radius, var(--q-radius-md, 7px));font-family:var(--q-font-family, inherit);font-weight:var(--q-btn-font-weight, var(--q-font-weight-bold, 600));border:1px solid transparent;line-height:1.2;box-sizing:border-box;outline:none;cursor:pointer;user-select:none;-webkit-user-select:none;transition:var(--q-btn-transition, all 150ms cubic-bezier(0.4, 0, 0.2, 1))}.btn.is-expanded{width:100%}.size-sm{border-radius:var(--q-btn-radius-sm, var(--q-radius-sm, 4px));padding:var(--q-btn-padding-sm, 6px 10px);font-size:var(--q-font-size-sm, 0.7rem)}.size-md{border-radius:var(--q-btn-radius-md, var(--q-radius-md, 7px));padding:var(--q-btn-padding-md, 5px 8px);font-size:var(--q-btn-font-size, var(--q-font-size-base, 0.9rem))}.size-lg{border-radius:var(--q-btn-radius-lg, var(--q-radius-lg, 11px));padding:var(--q-btn-padding-lg, 9px 16px);font-size:var(--q-font-size-lg, 1rem)}.btn.is-icon-only.size-sm{padding:var(--q-btn-icon-padding-sm, 4px)}.btn.is-icon-only.size-md{padding:var(--q-btn-icon-padding-md, 6px)}.btn.is-icon-only.size-lg{padding:var(--q-btn-icon-padding-lg, 9px)}.btn.shape-pill{border-radius:999px}.btn.shape-circle{width:var(--q-btn-circle-size, 120px);height:var(--q-btn-circle-size, 120px);padding:var(--q-btn-circle-padding, 12px);border-radius:50%}.btn.layout-stacked .btn-content-wrap{flex-direction:column;gap:var(--q-btn-stacked-gap, 8px)}.variant-primary{background:var(--q-color-primary, #60a5fa);color:var(--q-fg-base, #f9fafb)}.variant-primary:hover:not(.is-disabled){background:var(--q-color-primary-hover, #93c5fd)}.variant-secondary{background:var(--q-color-secondary, #4b5563);color:#ffffff}.variant-secondary:hover:not(.is-disabled){opacity:0.9}.variant-success{background:var(--q-color-success, #34d399);color:var(--q-bg-base, #111827)}.variant-success:hover:not(.is-disabled){opacity:0.9}.variant-danger{background:var(--q-color-danger, #f87171);color:var(--q-bg-base, #111827)}.variant-danger:hover:not(.is-disabled){opacity:0.9}.variant-ghost{background:transparent;border:var(--q-border, 1px solid var(--q-border-color, #374151));color:var(--q-fg-base, #f9fafb)}.variant-ghost:hover:not(.is-disabled){background:rgba(249, 250, 251, 0.08);background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent));border-color:var(--q-color-primary, #60a5fa);color:var(--q-color-primary, #60a5fa)}.variant-text{background:transparent;color:var(--q-fg-base, #f9fafb)}.variant-text:hover:not(.is-disabled){color:var(--q-color-primary, #60a5fa);background:rgba(249, 250, 251, 0.05);background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 5%, transparent))}.btn:active:not(.is-disabled){transform:var(--q-btn-active-transform, scale(0.97))}.btn:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.is-disabled{opacity:0.5;cursor:not-allowed}.btn-spinner{position:absolute;width:18px;height:18px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:btn-spin 0.6s linear infinite}.btn-content-wrap{display:inline-flex;align-items:center;gap:var(--q-btn-content-gap, 8px)}.size-sm .btn-content-wrap{gap:var(--q-btn-content-gap-sm, var(--q-btn-content-gap, 4px))}.btn.is-icon-only .btn-label:not(.has-default-slot-icon){display:none}@keyframes btn-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`;
|
|
5
|
+
|
|
6
|
+
const QButton = class extends Mixin(withActionProps) {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
super();
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.qClick = createEvent(this, "qClick");
|
|
11
|
+
this.qFocus = createEvent(this, "qFocus");
|
|
12
|
+
this.qBlur = createEvent(this, "qBlur");
|
|
13
|
+
}
|
|
14
|
+
get el() { return getElement(this); }
|
|
15
|
+
/** Lucide icon rendered before the label. Use icon slots for custom content. */
|
|
16
|
+
icon;
|
|
17
|
+
/** Auto-detected from slotted icon content when omitted. */
|
|
18
|
+
iconOnly;
|
|
19
|
+
/** Required when an icon-only button has no accessible text. */
|
|
20
|
+
ariaLabel = null;
|
|
21
|
+
variant = 'primary';
|
|
22
|
+
size = 'md';
|
|
23
|
+
/** The `circle` shape uses a fixed-size circular presentation. */
|
|
24
|
+
shape = 'default';
|
|
25
|
+
layout = 'inline';
|
|
26
|
+
expand = false;
|
|
27
|
+
/** Shows a spinner and prevents interaction while loading. */
|
|
28
|
+
loading = false;
|
|
29
|
+
target;
|
|
30
|
+
/** Applied to the native `<button>` when `href` is unset. */
|
|
31
|
+
type = 'button';
|
|
32
|
+
/** Emitted on activation unless disabled or loading. */
|
|
33
|
+
qClick;
|
|
34
|
+
qFocus;
|
|
35
|
+
qBlur;
|
|
36
|
+
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
37
|
+
autoIconOnly = false;
|
|
38
|
+
hasWarnedMissingAccessibleName = false;
|
|
39
|
+
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
40
|
+
componentWillLoad() {
|
|
41
|
+
this.checkIconOnly();
|
|
42
|
+
}
|
|
43
|
+
componentDidLoad() {
|
|
44
|
+
this.warnForMissingAccessibleName();
|
|
45
|
+
}
|
|
46
|
+
handleIconAccessibilityChange() {
|
|
47
|
+
this.checkIconOnly();
|
|
48
|
+
this.warnForMissingAccessibleName();
|
|
49
|
+
}
|
|
50
|
+
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
51
|
+
checkIconOnly = () => {
|
|
52
|
+
const text = this.getVisibleText();
|
|
53
|
+
const hasIcon = this.hasShortcutIcon() ||
|
|
54
|
+
this.el.querySelector('q-icon') !== null ||
|
|
55
|
+
this.el.querySelector('[slot="icon-left"]') !== null ||
|
|
56
|
+
this.el.querySelector('[slot="icon-right"]') !== null;
|
|
57
|
+
this.autoIconOnly = text === '' && hasIcon;
|
|
58
|
+
};
|
|
59
|
+
handleSlotChange = () => {
|
|
60
|
+
this.checkIconOnly();
|
|
61
|
+
this.warnForMissingAccessibleName();
|
|
62
|
+
};
|
|
63
|
+
getVisibleText() {
|
|
64
|
+
return Array.from(this.el.childNodes)
|
|
65
|
+
.filter(node => {
|
|
66
|
+
if (node.nodeType !== 1)
|
|
67
|
+
return true;
|
|
68
|
+
const slot = node.slot;
|
|
69
|
+
return slot !== 'icon-left' && slot !== 'icon-right';
|
|
70
|
+
})
|
|
71
|
+
.map(node => node.textContent || '')
|
|
72
|
+
.join('')
|
|
73
|
+
.trim();
|
|
74
|
+
}
|
|
75
|
+
getShortcutIcon() {
|
|
76
|
+
const icon = this.icon?.trim();
|
|
77
|
+
return icon || undefined;
|
|
78
|
+
}
|
|
79
|
+
hasShortcutIcon() {
|
|
80
|
+
return this.getShortcutIcon() !== undefined;
|
|
81
|
+
}
|
|
82
|
+
hasIconContent() {
|
|
83
|
+
return this.hasShortcutIcon() ||
|
|
84
|
+
this.el.querySelector('q-icon') !== null ||
|
|
85
|
+
this.el.querySelector('[slot="icon-left"]') !== null ||
|
|
86
|
+
this.el.querySelector('[slot="icon-right"]') !== null;
|
|
87
|
+
}
|
|
88
|
+
hasDefaultSlotIcon() {
|
|
89
|
+
return this.el.querySelector('q-icon:not([slot])') !== null;
|
|
90
|
+
}
|
|
91
|
+
warnForMissingAccessibleName() {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
handleClick = (e) => {
|
|
95
|
+
if (this.disabled || this.loading) {
|
|
96
|
+
e.preventDefault();
|
|
97
|
+
e.stopPropagation();
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
this.qClick.emit(e);
|
|
101
|
+
};
|
|
102
|
+
handleFocus = (ev) => {
|
|
103
|
+
this.qFocus.emit(ev);
|
|
104
|
+
};
|
|
105
|
+
handleBlur = (ev) => {
|
|
106
|
+
this.qBlur.emit(ev);
|
|
107
|
+
};
|
|
108
|
+
getResolvedRel() {
|
|
109
|
+
if (this.rel)
|
|
110
|
+
return this.rel;
|
|
111
|
+
return this.target === '_blank' ? 'noopener noreferrer' : undefined;
|
|
112
|
+
}
|
|
113
|
+
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
114
|
+
render() {
|
|
115
|
+
const isLink = this.href !== undefined && this.href !== null && this.href !== '';
|
|
116
|
+
const isBtnDisabled = this.disabled || this.loading;
|
|
117
|
+
const isIcon = this.iconOnly !== undefined ? this.iconOnly : this.autoIconOnly;
|
|
118
|
+
const shortcutIcon = this.getShortcutIcon();
|
|
119
|
+
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
120
|
+
const hasDefaultSlotIcon = this.hasDefaultSlotIcon();
|
|
121
|
+
const classes = {
|
|
122
|
+
'btn': true,
|
|
123
|
+
[`variant-${this.variant}`]: true,
|
|
124
|
+
[`size-${this.size}`]: true,
|
|
125
|
+
[`shape-${this.shape}`]: true,
|
|
126
|
+
[`layout-${this.layout}`]: true,
|
|
127
|
+
'is-disabled': isBtnDisabled,
|
|
128
|
+
'is-expanded': this.expand,
|
|
129
|
+
'is-icon-only': isIcon,
|
|
130
|
+
};
|
|
131
|
+
const innerContent = [
|
|
132
|
+
this.loading && h("div", { class: "btn-spinner", part: "spinner" }),
|
|
133
|
+
h("span", { class: "btn-content-wrap", style: { visibility: this.loading ? 'hidden' : 'visible' } }, h("slot", { name: "icon-left", onSlotchange: this.handleSlotChange }, shortcutIcon && h("q-icon", { name: shortcutIcon, size: this.size, part: "icon" })), h("span", { class: { 'btn-label': true, 'has-default-slot-icon': hasDefaultSlotIcon } }, h("slot", { onSlotchange: this.handleSlotChange })), h("slot", { name: "icon-right", onSlotchange: this.handleSlotChange }))
|
|
134
|
+
];
|
|
135
|
+
if (isLink) {
|
|
136
|
+
return (h("a", { class: classes, part: "button", href: this.href, target: this.target, rel: this.getResolvedRel(), download: this.download, tabindex: isBtnDisabled ? -1 : undefined, "aria-disabled": isBtnDisabled ? 'true' : 'false', "aria-busy": this.loading ? 'true' : 'false', "aria-label": ariaLabel, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, innerContent));
|
|
137
|
+
}
|
|
138
|
+
return (h("button", { class: classes, part: "button", type: this.type, disabled: isBtnDisabled, "aria-busy": this.loading ? 'true' : 'false', "aria-label": ariaLabel, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, innerContent));
|
|
139
|
+
}
|
|
140
|
+
static get delegatesFocus() { return true; }
|
|
141
|
+
static get watchers() { return {
|
|
142
|
+
"icon": [{
|
|
143
|
+
"handleIconAccessibilityChange": 0
|
|
144
|
+
}],
|
|
145
|
+
"iconOnly": [{
|
|
146
|
+
"handleIconAccessibilityChange": 0
|
|
147
|
+
}],
|
|
148
|
+
"ariaLabel": [{
|
|
149
|
+
"handleIconAccessibilityChange": 0
|
|
150
|
+
}]
|
|
151
|
+
}; }
|
|
152
|
+
};
|
|
153
|
+
QButton.style = buttonCss();
|
|
154
|
+
|
|
155
|
+
function ensureTooltipDescribedBy(options) {
|
|
156
|
+
const tooltipId = options.host.id || options.fallbackId;
|
|
157
|
+
if (!options.host.id) {
|
|
158
|
+
options.host.id = tooltipId;
|
|
159
|
+
}
|
|
160
|
+
const describedBy = options.trigger.getAttribute('aria-describedby');
|
|
161
|
+
const ids = describedBy ? describedBy.split(/\s+/).filter(Boolean) : [];
|
|
162
|
+
if (ids.includes(tooltipId)) {
|
|
163
|
+
return { tooltipId, added: false };
|
|
164
|
+
}
|
|
165
|
+
options.trigger.setAttribute('aria-describedby', [...ids, tooltipId].join(' '));
|
|
166
|
+
return { tooltipId, added: true };
|
|
167
|
+
}
|
|
168
|
+
function removeTooltipDescribedBy(options) {
|
|
169
|
+
if (!options.trigger || !options.added || !options.tooltipId)
|
|
170
|
+
return;
|
|
171
|
+
const describedBy = options.trigger.getAttribute('aria-describedby');
|
|
172
|
+
if (!describedBy)
|
|
173
|
+
return;
|
|
174
|
+
const ids = describedBy.split(/\s+/).filter(id => id && id !== options.tooltipId);
|
|
175
|
+
if (ids.length) {
|
|
176
|
+
options.trigger.setAttribute('aria-describedby', ids.join(' '));
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
options.trigger.removeAttribute('aria-describedby');
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function getContainingBlock(el) {
|
|
184
|
+
let current = el;
|
|
185
|
+
while (current) {
|
|
186
|
+
let parent = current.parentElement;
|
|
187
|
+
if (!parent && current.parentNode) {
|
|
188
|
+
const node = current.parentNode;
|
|
189
|
+
if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && node.host) {
|
|
190
|
+
parent = node.host;
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
parent = node;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
if (!parent || parent.nodeType !== Node.ELEMENT_NODE) {
|
|
197
|
+
current = parent;
|
|
198
|
+
continue;
|
|
199
|
+
}
|
|
200
|
+
const parentEl = parent;
|
|
201
|
+
const style = window.getComputedStyle(parentEl);
|
|
202
|
+
const backdropFilter = style.backdropFilter || style.webkitBackdropFilter;
|
|
203
|
+
if ((style.transform && style.transform !== 'none') ||
|
|
204
|
+
(style.perspective && style.perspective !== 'none') ||
|
|
205
|
+
(style.filter && style.filter !== 'none') ||
|
|
206
|
+
(backdropFilter && backdropFilter !== 'none') ||
|
|
207
|
+
(style.willChange && (style.willChange.includes('transform') ||
|
|
208
|
+
style.willChange.includes('perspective') ||
|
|
209
|
+
style.willChange.includes('filter') ||
|
|
210
|
+
style.willChange.includes('backdrop-filter'))) ||
|
|
211
|
+
(style.contain && (style.contain.includes('paint') ||
|
|
212
|
+
style.contain.includes('contain') ||
|
|
213
|
+
style.contain.includes('layout') ||
|
|
214
|
+
style.contain.includes('content') ||
|
|
215
|
+
style.contain.includes('strict')))) {
|
|
216
|
+
return parentEl;
|
|
217
|
+
}
|
|
218
|
+
current = parent;
|
|
219
|
+
}
|
|
220
|
+
return null;
|
|
221
|
+
}
|
|
222
|
+
function getTooltipPosition(host, trigger, position) {
|
|
223
|
+
const triggerRect = trigger.getBoundingClientRect();
|
|
224
|
+
const container = getContainingBlock(host);
|
|
225
|
+
const containerRect = container?.getBoundingClientRect();
|
|
226
|
+
const offsetLeft = containerRect?.left || 0;
|
|
227
|
+
const offsetTop = containerRect?.top || 0;
|
|
228
|
+
switch (position) {
|
|
229
|
+
case 'bottom':
|
|
230
|
+
return {
|
|
231
|
+
left: triggerRect.left + triggerRect.width / 2 - offsetLeft,
|
|
232
|
+
top: triggerRect.bottom - offsetTop,
|
|
233
|
+
};
|
|
234
|
+
case 'left':
|
|
235
|
+
return {
|
|
236
|
+
left: triggerRect.left - offsetLeft,
|
|
237
|
+
top: triggerRect.top + triggerRect.height / 2 - offsetTop,
|
|
238
|
+
};
|
|
239
|
+
case 'right':
|
|
240
|
+
return {
|
|
241
|
+
left: triggerRect.right - offsetLeft,
|
|
242
|
+
top: triggerRect.top + triggerRect.height / 2 - offsetTop,
|
|
243
|
+
};
|
|
244
|
+
case 'top':
|
|
245
|
+
default:
|
|
246
|
+
return {
|
|
247
|
+
left: triggerRect.left + triggerRect.width / 2 - offsetLeft,
|
|
248
|
+
top: triggerRect.top - offsetTop,
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
function addTooltipScrollListeners(trigger, listener) {
|
|
254
|
+
window.addEventListener('scroll', listener, { passive: true });
|
|
255
|
+
window.addEventListener('resize', listener);
|
|
256
|
+
let parent = trigger;
|
|
257
|
+
while (parent) {
|
|
258
|
+
parent.addEventListener('scroll', listener, { passive: true });
|
|
259
|
+
parent = parent.parentElement;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function removeTooltipScrollListeners(trigger, listener) {
|
|
263
|
+
window.removeEventListener('scroll', listener);
|
|
264
|
+
window.removeEventListener('resize', listener);
|
|
265
|
+
let parent = trigger;
|
|
266
|
+
while (parent) {
|
|
267
|
+
parent.removeEventListener('scroll', listener);
|
|
268
|
+
parent = parent.parentElement;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const tooltipCss = () => `:host{position:fixed;pointer-events:none;z-index:1000;opacity:0;display:block;transition:opacity 0.15s ease-out, transform 0.15s ease-out}:host(.is-visible){opacity:1}:host([position="top"]){transform:translate(-50%, -100%) translate(0, 4px)}:host([position="top"].is-visible){transform:translate(-50%, -100%) translate(0, -8px)}:host([position="bottom"]){transform:translate(-50%, 0) translate(0, -4px)}:host([position="bottom"].is-visible){transform:translate(-50%, 0) translate(0, 8px)}:host([position="left"]){transform:translate(-100%, -50%) translate(4px, 0)}:host([position="left"].is-visible){transform:translate(-100%, -50%) translate(-8px, 0)}:host([position="right"]){transform:translate(0, -50%) translate(-4px, 0)}:host([position="right"].is-visible){transform:translate(0, -50%) translate(8px, 0)}.tooltip-bubble{background:var(--q-bg-surface-3, #1e293b);color:var(--q-fg-base);border:1px solid var(--q-border-color, rgba(255, 255, 255, 0.08));padding:6px 10px;border-radius:var(--q-radius-sm, 4px);font-family:var(--q-font-family, system-ui, -apple-system, sans-serif);font-size:var(--q-font-size-sm);font-weight:500;white-space:nowrap;box-shadow:0 4px 12px rgba(0, 0, 0, 0.25);line-height:1.2}`;
|
|
273
|
+
|
|
274
|
+
let tooltipId = 0;
|
|
275
|
+
const QTooltip = class {
|
|
276
|
+
constructor(hostRef) {
|
|
277
|
+
registerInstance(this, hostRef);
|
|
278
|
+
}
|
|
279
|
+
get el() { return getElement(this); }
|
|
280
|
+
content;
|
|
281
|
+
position = 'top';
|
|
282
|
+
/** Delay in milliseconds before showing. */
|
|
283
|
+
delay = 200;
|
|
284
|
+
visible = false;
|
|
285
|
+
showTimer;
|
|
286
|
+
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
287
|
+
parentEl = null;
|
|
288
|
+
describedByAdded = false;
|
|
289
|
+
tooltipId = '';
|
|
290
|
+
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
291
|
+
connectedCallback() {
|
|
292
|
+
this.parentEl = this.el.parentElement;
|
|
293
|
+
if (this.parentEl) {
|
|
294
|
+
this.syncAriaDescribedBy();
|
|
295
|
+
this.parentEl.addEventListener('mouseenter', this.show);
|
|
296
|
+
this.parentEl.addEventListener('mouseleave', this.hide);
|
|
297
|
+
this.parentEl.addEventListener('focusin', this.show);
|
|
298
|
+
this.parentEl.addEventListener('focusout', this.hide);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
disconnectedCallback() {
|
|
302
|
+
if (this.parentEl) {
|
|
303
|
+
this.parentEl.removeEventListener('mouseenter', this.show);
|
|
304
|
+
this.parentEl.removeEventListener('mouseleave', this.hide);
|
|
305
|
+
this.parentEl.removeEventListener('focusin', this.show);
|
|
306
|
+
this.parentEl.removeEventListener('focusout', this.hide);
|
|
307
|
+
this.removeAriaDescribedBy();
|
|
308
|
+
}
|
|
309
|
+
this.removeScrollListeners();
|
|
310
|
+
clearTimeout(this.showTimer);
|
|
311
|
+
}
|
|
312
|
+
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
313
|
+
updatePosition = () => {
|
|
314
|
+
if (!this.parentEl)
|
|
315
|
+
return;
|
|
316
|
+
const { left, top } = getTooltipPosition(this.el, this.parentEl, this.position);
|
|
317
|
+
this.el.style.left = `${left}px`;
|
|
318
|
+
this.el.style.top = `${top}px`;
|
|
319
|
+
};
|
|
320
|
+
show = () => {
|
|
321
|
+
clearTimeout(this.showTimer);
|
|
322
|
+
this.showTimer = setTimeout(() => {
|
|
323
|
+
this.visible = true;
|
|
324
|
+
this.updatePosition();
|
|
325
|
+
this.addScrollListeners();
|
|
326
|
+
}, this.delay);
|
|
327
|
+
};
|
|
328
|
+
hide = () => {
|
|
329
|
+
clearTimeout(this.showTimer);
|
|
330
|
+
if (this.visible) {
|
|
331
|
+
this.visible = false;
|
|
332
|
+
this.removeScrollListeners();
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
handleScroll = () => {
|
|
336
|
+
this.hide();
|
|
337
|
+
};
|
|
338
|
+
syncAriaDescribedBy() {
|
|
339
|
+
if (!this.parentEl)
|
|
340
|
+
return;
|
|
341
|
+
const result = ensureTooltipDescribedBy({
|
|
342
|
+
host: this.el,
|
|
343
|
+
trigger: this.parentEl,
|
|
344
|
+
fallbackId: `q-tooltip-${++tooltipId}`,
|
|
345
|
+
});
|
|
346
|
+
this.tooltipId = result.tooltipId;
|
|
347
|
+
this.describedByAdded = result.added;
|
|
348
|
+
}
|
|
349
|
+
removeAriaDescribedBy() {
|
|
350
|
+
removeTooltipDescribedBy({
|
|
351
|
+
trigger: this.parentEl,
|
|
352
|
+
tooltipId: this.tooltipId,
|
|
353
|
+
added: this.describedByAdded,
|
|
354
|
+
});
|
|
355
|
+
this.describedByAdded = false;
|
|
356
|
+
}
|
|
357
|
+
addScrollListeners() {
|
|
358
|
+
addTooltipScrollListeners(this.parentEl, this.handleScroll);
|
|
359
|
+
}
|
|
360
|
+
removeScrollListeners() {
|
|
361
|
+
removeTooltipScrollListeners(this.parentEl, this.handleScroll);
|
|
362
|
+
}
|
|
363
|
+
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
364
|
+
render() {
|
|
365
|
+
return (h(Host, { key: '944cd5ae0ac5dc8a2b0d44672c2b76343edf1d03', class: {
|
|
366
|
+
'is-visible': this.visible,
|
|
367
|
+
}, "aria-hidden": this.visible ? 'false' : 'true', role: "tooltip" }, h("div", { key: '7ed1387a9d4e68666af3f6609d9db919d5f08aba', class: "tooltip-bubble" }, this.content || h("slot", { key: 'e2ff671abf82de5e32cc377dfc51829a096c3021' }))));
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
QTooltip.style = tooltipCss();
|
|
371
|
+
|
|
372
|
+
export { QButton as q_button, QTooltip as q_tooltip };
|