@webquark/core 1.1.0-dev.8 → 1.1.0-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -138
- package/dist/browser/components/index.d.ts +1 -0
- package/dist/browser/components/index.js +1 -0
- package/dist/browser/components/q-accordion.d.ts +1 -0
- package/dist/browser/components/q-accordion.js +1 -0
- package/dist/browser/components/q-alert.d.ts +1 -0
- package/dist/browser/components/q-alert.js +1 -0
- package/dist/browser/components/q-avatar.d.ts +1 -0
- package/dist/browser/components/q-avatar.js +1 -0
- package/dist/browser/components/q-banner.d.ts +1 -0
- package/dist/browser/components/q-banner.js +1 -0
- package/dist/browser/components/q-button.d.ts +1 -0
- package/dist/browser/components/q-button.js +1 -0
- package/dist/browser/components/q-card.d.ts +1 -0
- package/dist/browser/components/q-card.js +1 -0
- package/dist/browser/components/q-carousel.d.ts +1 -0
- package/dist/browser/components/q-carousel.js +1 -0
- package/dist/browser/components/q-chip.d.ts +1 -0
- package/dist/browser/components/q-chip.js +1 -0
- package/dist/browser/components/q-conversation-bubble.d.ts +1 -0
- package/dist/browser/components/q-conversation-bubble.js +1 -0
- package/dist/browser/components/q-data-table.d.ts +1 -0
- package/dist/browser/components/q-data-table.js +1 -0
- package/dist/browser/components/q-dialog.d.ts +1 -0
- package/dist/browser/components/q-dialog.js +1 -0
- package/dist/browser/components/q-dropdown.d.ts +1 -0
- package/dist/browser/components/q-dropdown.js +1 -0
- package/dist/browser/components/q-form.d.ts +1 -0
- package/dist/browser/components/q-form.js +1 -0
- package/dist/browser/components/q-grid.d.ts +1 -0
- package/dist/browser/components/q-grid.js +1 -0
- package/dist/browser/components/q-icon.d.ts +1 -0
- package/dist/browser/components/q-icon.js +1 -0
- package/dist/browser/components/q-image-comparison.d.ts +1 -0
- package/dist/browser/components/q-image-comparison.js +1 -0
- package/dist/browser/components/q-inline.d.ts +1 -0
- package/dist/browser/components/q-inline.js +1 -0
- package/dist/browser/components/q-input.d.ts +1 -0
- package/dist/browser/components/q-input.js +1 -0
- package/dist/browser/components/q-link.d.ts +1 -0
- package/dist/browser/components/q-link.js +1 -0
- package/dist/browser/components/q-map.d.ts +1 -0
- package/dist/browser/components/q-map.js +1 -0
- package/dist/browser/components/q-media.d.ts +1 -0
- package/dist/browser/components/q-media.js +1 -0
- package/dist/browser/components/q-navbar.d.ts +1 -0
- package/dist/browser/components/q-navbar.js +1 -0
- package/dist/browser/components/q-pagination.d.ts +1 -0
- package/dist/browser/components/q-pagination.js +1 -0
- package/dist/browser/components/q-panel.d.ts +1 -0
- package/dist/browser/components/q-panel.js +1 -0
- package/dist/browser/components/q-progress.d.ts +1 -0
- package/dist/browser/components/q-progress.js +1 -0
- package/dist/browser/components/q-quantity-selector.d.ts +1 -0
- package/dist/browser/components/q-quantity-selector.js +1 -0
- package/dist/browser/components/q-radio-group.d.ts +1 -0
- package/dist/browser/components/q-radio-group.js +1 -0
- package/dist/browser/components/q-reel.d.ts +1 -0
- package/dist/browser/components/q-reel.js +1 -0
- package/dist/browser/components/q-scrollable.d.ts +1 -0
- package/dist/browser/components/q-scrollable.js +1 -0
- package/dist/browser/components/q-section.d.ts +1 -0
- package/dist/browser/components/q-section.js +1 -0
- package/dist/browser/components/q-sidepanel.d.ts +1 -0
- package/dist/browser/components/q-sidepanel.js +1 -0
- package/dist/browser/components/q-stack.d.ts +1 -0
- package/dist/browser/components/q-stack.js +1 -0
- package/dist/browser/components/q-step-diagram-item.d.ts +1 -0
- package/dist/browser/components/q-step-diagram-item.js +1 -0
- package/dist/browser/components/q-step-diagram.d.ts +1 -0
- package/dist/browser/components/q-step-diagram.js +1 -0
- package/dist/browser/components/q-syntax-box.d.ts +1 -0
- package/dist/browser/components/q-syntax-box.js +1 -0
- package/dist/browser/components/q-tabs.d.ts +1 -0
- package/dist/browser/components/q-tabs.js +1 -0
- package/dist/browser/components/q-textarea.d.ts +1 -0
- package/dist/browser/components/q-textarea.js +1 -0
- package/dist/browser/components/q-thumbnail.d.ts +1 -0
- package/dist/browser/components/q-thumbnail.js +1 -0
- package/dist/browser/components/q-toast.d.ts +1 -0
- package/dist/browser/components/q-toast.js +1 -0
- package/dist/browser/components/q-toggle.d.ts +1 -0
- package/dist/browser/components/q-toggle.js +1 -0
- package/dist/browser/components/q-toolbar.d.ts +1 -0
- package/dist/browser/components/q-toolbar.js +1 -0
- package/dist/browser/components/q-tooltip.d.ts +1 -0
- package/dist/browser/components/q-tooltip.js +1 -0
- package/dist/browser/index.cjs +1 -0
- package/dist/browser/index.d.ts +1 -0
- package/dist/browser/index.js +1 -0
- package/dist/browser/loader/index.cjs +1 -0
- package/dist/browser/loader/index.d.ts +1 -0
- package/dist/browser/loader/index.js +1 -0
- package/dist/playground/build/index.esm.js +1 -1
- package/dist/playground/build/{p-1d1f7bc3.entry.js → p-888e46a8.entry.js} +1 -1
- package/dist/playground/build/{p-GHhpSfZU.js → p-CpI3m4_T.js} +1 -1
- package/dist/{webquark/webquark.esm.js → playground/build/p-c923c9c0.js} +1 -1
- package/dist/playground/build/p-e0bb74ae.css +1 -0
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/index.html +1 -29
- package/dist/playground/playground.js +10 -2
- package/dist/playground/views/tooling/adoption/CHANGELOG.md +13 -0
- package/dist/playground/views/tooling/adoption/README.md +47 -0
- package/dist/playground/views/tooling/adoption/changelog.config.ts +12 -0
- package/dist/playground/views/tooling/adoption/docs/changelog/unreleased/README.md +3 -0
- package/dist/playground/views/tooling/adoption/docs/changelog/unreleased/images/release-panel.svg +7 -0
- package/dist/playground/views/tooling/adoption/docs/changelog/unreleased/visuals.json +16 -0
- package/dist/playground/views/tooling/adoption/docs/changelog/v0.1.0/README.md +3 -0
- package/dist/playground/views/tooling/adoption/generate.ts +13 -0
- package/dist/playground/views/tooling/adoption/package.json +10 -0
- package/dist/playground/views/tooling/adoption/serve.ts +24 -0
- package/dist/playground/views/tooling/adoption/viewer.html +16 -0
- package/dist/playground/views/tooling/adoption/viewer.js +54 -0
- package/dist/playground/views/tooling/sample-feed.json +13 -0
- package/dist/playground/views/tooling/sample-notes.md +14 -0
- package/dist/playground/views/tooling/tooling.html +69 -0
- package/dist/tooling/changelog/index.d.ts +1 -0
- package/dist/tooling/changelog/index.js +1 -0
- package/package.json +54 -160
- package/scripts/package.json +1 -0
- package/scripts/webquark-serve.js +3 -1
- package/scripts/wq-changelog.js +4 -0
- package/scripts/wq-switch/README.md +32 -12
- package/scripts/wq-switch/dist/index.js +706 -95
- package/scripts/wq-switch/dist/setup.js +578 -52
- package/dist/cjs/Leaflet.GoogleMutant-i4bYl6qy.js +0 -768
- package/dist/cjs/action.props-N0urQtdP.js +0 -35
- package/dist/cjs/chevron-up-D4t2OSHA.js +0 -30
- package/dist/cjs/collection-identity-CV5HLD9Z.js +0 -141
- package/dist/cjs/data-table-cell-8uUCk2Qz.js +0 -51
- package/dist/cjs/dom-Dk77oFF6.js +0 -247
- package/dist/cjs/field-CsrQGhG-.js +0 -14
- package/dist/cjs/form-control-validity-D1ukC0_e.js +0 -49
- package/dist/cjs/form-field-adapter-D0CJ6poh.js +0 -51
- package/dist/cjs/form-field-state-P63wN30v.js +0 -51
- package/dist/cjs/form-submit-action-C6c4aq6C.js +0 -227
- package/dist/cjs/image-crop-BZD5Cxd7.js +0 -53
- package/dist/cjs/index-DWXhKHCB.js +0 -1869
- package/dist/cjs/index.cjs.js +0 -34
- package/dist/cjs/leaflet-maplibre-gl-JIaCQ-7v.js +0 -1025
- package/dist/cjs/leaflet-src-mrRg-Srs.js +0 -14551
- package/dist/cjs/loader.cjs.js +0 -12
- package/dist/cjs/map.types-BWymIRql.js +0 -24
- package/dist/cjs/q-accordion.cjs.entry.js +0 -18
- package/dist/cjs/q-alert.cjs.entry.js +0 -52
- package/dist/cjs/q-avatar.cjs.entry.js +0 -101
- package/dist/cjs/q-banner.cjs.entry.js +0 -19
- package/dist/cjs/q-button_2.cjs.entry.js +0 -462
- package/dist/cjs/q-card.cjs.entry.js +0 -88
- package/dist/cjs/q-carousel.cjs.entry.js +0 -718
- package/dist/cjs/q-chip.cjs.entry.js +0 -124
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +0 -70
- package/dist/cjs/q-data-table.cjs.entry.js +0 -611
- package/dist/cjs/q-dialog.cjs.entry.js +0 -271
- package/dist/cjs/q-dropdown.cjs.entry.js +0 -699
- package/dist/cjs/q-form.cjs.entry.js +0 -1002
- package/dist/cjs/q-grid.cjs.entry.js +0 -24
- package/dist/cjs/q-icon.cjs.entry.js +0 -439
- package/dist/cjs/q-image-comparison.cjs.entry.js +0 -201
- package/dist/cjs/q-inline.cjs.entry.js +0 -22
- package/dist/cjs/q-input_2.cjs.entry.js +0 -438
- package/dist/cjs/q-link.cjs.entry.js +0 -80
- package/dist/cjs/q-map.cjs.entry.js +0 -3509
- package/dist/cjs/q-media.cjs.entry.js +0 -21
- package/dist/cjs/q-navbar.cjs.entry.js +0 -415
- package/dist/cjs/q-pagination.cjs.entry.js +0 -68
- package/dist/cjs/q-panel.cjs.entry.js +0 -76
- package/dist/cjs/q-quantity-selector.cjs.entry.js +0 -204
- package/dist/cjs/q-radio-group.cjs.entry.js +0 -261
- package/dist/cjs/q-reel.cjs.entry.js +0 -170
- package/dist/cjs/q-scrollable.cjs.entry.js +0 -449
- package/dist/cjs/q-section.cjs.entry.js +0 -20
- package/dist/cjs/q-sidepanel.cjs.entry.js +0 -793
- package/dist/cjs/q-stack.cjs.entry.js +0 -20
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +0 -45
- package/dist/cjs/q-step-diagram.cjs.entry.js +0 -56
- package/dist/cjs/q-syntax-box.cjs.entry.js +0 -782
- package/dist/cjs/q-tabs.cjs.entry.js +0 -155
- package/dist/cjs/q-textarea.cjs.entry.js +0 -295
- package/dist/cjs/q-thumbnail.cjs.entry.js +0 -51
- package/dist/cjs/q-toast.cjs.entry.js +0 -400
- package/dist/cjs/q-toggle.cjs.entry.js +0 -233
- package/dist/cjs/q-toolbar.cjs.entry.js +0 -33
- package/dist/cjs/registry-C3IYlNMp.js +0 -323
- package/dist/cjs/toast-controller-CIXagxbV.js +0 -111
- package/dist/cjs/tokens-RMRaIOqv.js +0 -957
- package/dist/cjs/utils-DGQOjEwT.js +0 -33
- package/dist/cjs/webquark.cjs.js +0 -24
- package/dist/collection/assets/icons/braces.svg +0 -14
- package/dist/collection/assets/icons/check.svg +0 -1
- package/dist/collection/assets/icons/chevron-down.svg +0 -1
- package/dist/collection/assets/icons/chevron-left.svg +0 -1
- package/dist/collection/assets/icons/chevron-right.svg +0 -1
- package/dist/collection/assets/icons/chevron-up.svg +0 -1
- package/dist/collection/assets/icons/copy.svg +0 -4
- package/dist/collection/assets/icons/eye-off.svg +0 -1
- package/dist/collection/assets/icons/eye.svg +0 -1
- package/dist/collection/assets/icons/minus.svg +0 -1
- package/dist/collection/assets/icons/play.svg +0 -1
- package/dist/collection/assets/icons/plus.svg +0 -1
- package/dist/collection/assets/icons/search.svg +0 -1
- package/dist/collection/assets/icons/spinner.svg +0 -1
- package/dist/collection/assets/icons/trash-2.svg +0 -1
- package/dist/collection/assets/icons/x.svg +0 -1
- package/dist/collection/collection-manifest.json +0 -56
- package/dist/collection/components/actions/action.props.js +0 -130
- package/dist/collection/components/actions/button/button.css +0 -242
- package/dist/collection/components/actions/button/button.js +0 -748
- package/dist/collection/components/actions/button/button.types.js +0 -1
- package/dist/collection/components/actions/button/button.utils.js +0 -9
- package/dist/collection/components/actions/button/button.utils.unit.test.js +0 -44
- package/dist/collection/components/actions/button/test/button-slots.cmp.test.js +0 -70
- package/dist/collection/components/actions/link/link.css +0 -102
- package/dist/collection/components/actions/link/link.js +0 -316
- package/dist/collection/components/actions/link/link.types.js +0 -1
- package/dist/collection/components/communication/alert/alert.css +0 -118
- package/dist/collection/components/communication/alert/alert.js +0 -208
- package/dist/collection/components/communication/alert/alert.types.js +0 -1
- package/dist/collection/components/communication/conversation-bubble/conversation-bubble.css +0 -154
- package/dist/collection/components/communication/conversation-bubble/conversation-bubble.js +0 -207
- package/dist/collection/components/communication/conversation-bubble/conversation-bubble.types.js +0 -1
- package/dist/collection/components/communication/toast/internals/icons.js +0 -25
- package/dist/collection/components/communication/toast/internals/queue.js +0 -64
- package/dist/collection/components/communication/toast/internals/timers.js +0 -75
- package/dist/collection/components/communication/toast/test/toast.cmp.test.js +0 -38
- package/dist/collection/components/communication/toast/test/toast.unit.test.js +0 -104
- package/dist/collection/components/communication/toast/toast-controller.js +0 -105
- package/dist/collection/components/communication/toast/toast.css +0 -141
- package/dist/collection/components/communication/toast/toast.js +0 -556
- package/dist/collection/components/communication/toast/toast.types.js +0 -1
- package/dist/collection/components/content/banner/banner.css +0 -1
- package/dist/collection/components/content/banner/banner.js +0 -84
- package/dist/collection/components/content/banner/banner.types.js +0 -1
- package/dist/collection/components/content/card/card.css +0 -105
- package/dist/collection/components/content/card/card.js +0 -308
- package/dist/collection/components/content/card/card.types.js +0 -1
- package/dist/collection/components/content/card/card.utils.js +0 -15
- package/dist/collection/components/content/carousel/carousel.css +0 -254
- package/dist/collection/components/content/carousel/carousel.js +0 -956
- package/dist/collection/components/content/carousel/carousel.types.js +0 -1
- package/dist/collection/components/content/carousel/carousel.utils.js +0 -1
- package/dist/collection/components/content/carousel/internals/autoplay.js +0 -64
- package/dist/collection/components/content/carousel/internals/metrics.js +0 -59
- package/dist/collection/components/content/carousel/internals/slide-state.js +0 -50
- package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +0 -328
- package/dist/collection/components/data-display/accordion/accordion.css +0 -1
- package/dist/collection/components/data-display/accordion/accordion.js +0 -54
- package/dist/collection/components/data-display/accordion/accordion.types.js +0 -1
- package/dist/collection/components/data-display/chip/chip.css +0 -219
- package/dist/collection/components/data-display/chip/chip.js +0 -381
- package/dist/collection/components/data-display/chip/chip.types.js +0 -1
- package/dist/collection/components/data-display/data-table/data-table-cell.js +0 -44
- package/dist/collection/components/data-display/data-table/data-table.css +0 -429
- package/dist/collection/components/data-display/data-table/data-table.js +0 -862
- package/dist/collection/components/data-display/data-table/data-table.types.js +0 -1
- package/dist/collection/components/data-display/data-table/internals/data-access.js +0 -43
- package/dist/collection/components/data-display/data-table/internals/render-row-actions.js +0 -22
- package/dist/collection/components/data-display/data-table/internals/render-sort-indicator.js +0 -5
- package/dist/collection/components/data-display/data-table/internals/render-table-body.js +0 -59
- package/dist/collection/components/data-display/data-table/internals/render-table-head.js +0 -42
- package/dist/collection/components/data-display/data-table/internals/render-toolbar.js +0 -6
- package/dist/collection/components/data-display/data-table/internals/row-events.js +0 -27
- package/dist/collection/components/data-display/data-table/internals/selection.js +0 -31
- package/dist/collection/components/data-display/data-table/internals/sort.js +0 -57
- package/dist/collection/components/data-display/data-table/internals/table-model.js +0 -92
- package/dist/collection/components/data-display/data-table/test/row-gutter.cmp.test.js +0 -104
- package/dist/collection/components/data-display/data-table/test/two-line-rows.cmp.test.js +0 -164
- package/dist/collection/components/data-display/map/internals/base-layer.js +0 -140
- package/dist/collection/components/data-display/map/internals/bounds.js +0 -66
- package/dist/collection/components/data-display/map/internals/buffered-tile-layer.js +0 -128
- package/dist/collection/components/data-display/map/internals/cluster-collision.js +0 -73
- package/dist/collection/components/data-display/map/internals/google-maps.js +0 -117
- package/dist/collection/components/data-display/map/internals/google-mutant.js +0 -51
- package/dist/collection/components/data-display/map/internals/maplibre.js +0 -50
- package/dist/collection/components/data-display/map/internals/marker-cluster-index.js +0 -136
- package/dist/collection/components/data-display/map/internals/marker-controller.js +0 -425
- package/dist/collection/components/data-display/map/internals/marker-presentation.js +0 -266
- package/dist/collection/components/data-display/map/internals/marker-visibility.js +0 -158
- package/dist/collection/components/data-display/map/internals/markers.js +0 -191
- package/dist/collection/components/data-display/map/internals/tile-layer-readiness.js +0 -67
- package/dist/collection/components/data-display/map/internals/tile-preload-buffer.js +0 -8
- package/dist/collection/components/data-display/map/internals/vector-padding.js +0 -8
- package/dist/collection/components/data-display/map/map.css +0 -742
- package/dist/collection/components/data-display/map/map.js +0 -1595
- package/dist/collection/components/data-display/map/map.types.js +0 -12
- package/dist/collection/components/data-display/map/test/map.cmp.test.js +0 -961
- package/dist/collection/components/data-display/pagination/pagination.css +0 -81
- package/dist/collection/components/data-display/pagination/pagination.js +0 -240
- package/dist/collection/components/data-display/pagination/test/pagination.cmp.test.js +0 -57
- package/dist/collection/components/data-display/syntax-box/internals/clipboard.js +0 -9
- package/dist/collection/components/data-display/syntax-box/internals/editor-key-action.js +0 -14
- package/dist/collection/components/data-display/syntax-box/internals/value-sync.js +0 -10
- package/dist/collection/components/data-display/syntax-box/internals/value-sync.unit.test.js +0 -25
- package/dist/collection/components/data-display/syntax-box/syntax-box.css +0 -209
- package/dist/collection/components/data-display/syntax-box/syntax-box.js +0 -678
- package/dist/collection/components/data-display/syntax-box/syntax-box.types.js +0 -1
- package/dist/collection/components/data-display/syntax-box/syntax-box.utils.js +0 -1
- package/dist/collection/components/data-display/syntax-box/test/format-fixtures.js +0 -20
- package/dist/collection/components/data-display/syntax-box/test/syntax-box.cmp.test.js +0 -241
- package/dist/collection/components/data-display/syntax-box/test/syntax-fixtures.js +0 -14
- package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +0 -157
- package/dist/collection/components/indicators/progress/progress.css +0 -223
- package/dist/collection/components/indicators/progress/progress.js +0 -275
- package/dist/collection/components/indicators/progress/progress.types.js +0 -1
- package/dist/collection/components/indicators/step-diagram/step-diagram.css +0 -21
- package/dist/collection/components/indicators/step-diagram/step-diagram.js +0 -143
- package/dist/collection/components/indicators/step-diagram/step-diagram.types.js +0 -1
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.css +0 -252
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +0 -185
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.types.js +0 -1
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.utils.js +0 -3
- package/dist/collection/components/inputs/dropdown/dropdown.css +0 -387
- package/dist/collection/components/inputs/dropdown/dropdown.js +0 -1236
- package/dist/collection/components/inputs/dropdown/dropdown.types.js +0 -1
- package/dist/collection/components/inputs/dropdown/internals/options.js +0 -30
- package/dist/collection/components/inputs/dropdown/internals/position.js +0 -35
- package/dist/collection/components/inputs/dropdown/test/dropdown.cmp.test.js +0 -62
- package/dist/collection/components/inputs/form/form.css +0 -85
- package/dist/collection/components/inputs/form/form.js +0 -808
- package/dist/collection/components/inputs/form/form.types.js +0 -1
- package/dist/collection/components/inputs/form/internals/controls.js +0 -173
- package/dist/collection/components/inputs/form/internals/enter-behavior.js +0 -25
- package/dist/collection/components/inputs/form/internals/field-state.js +0 -129
- package/dist/collection/components/inputs/form/internals/reset.js +0 -50
- package/dist/collection/components/inputs/form/internals/submission.js +0 -140
- package/dist/collection/components/inputs/form/internals/values.js +0 -199
- package/dist/collection/components/inputs/form/internals/values.unit.test.js +0 -59
- package/dist/collection/components/inputs/form/test/form-reset-state.cmp.test.js +0 -559
- package/dist/collection/components/inputs/form/test/form-submit-transport.cmp.test.js +0 -352
- package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +0 -438
- package/dist/collection/components/inputs/form/test/form-values.cmp.test.js +0 -440
- package/dist/collection/components/inputs/form/test/form.cmp.test.js +0 -157
- package/dist/collection/components/inputs/input/input.css +0 -293
- package/dist/collection/components/inputs/input/input.js +0 -907
- package/dist/collection/components/inputs/input/input.types.js +0 -1
- package/dist/collection/components/inputs/input/input.utils.js +0 -3
- package/dist/collection/components/inputs/quantity-selector/internals/number-value.js +0 -64
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +0 -171
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +0 -390
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.types.js +0 -1
- package/dist/collection/components/inputs/radio-group/radio-group.css +0 -224
- package/dist/collection/components/inputs/radio-group/radio-group.js +0 -668
- package/dist/collection/components/inputs/radio-group/radio-group.types.js +0 -1
- package/dist/collection/components/inputs/radio-group/radio-group.utils.js +0 -18
- package/dist/collection/components/inputs/textarea/textarea.css +0 -172
- package/dist/collection/components/inputs/textarea/textarea.js +0 -799
- package/dist/collection/components/inputs/textarea/textarea.types.js +0 -1
- package/dist/collection/components/inputs/toggle/toggle.css +0 -252
- package/dist/collection/components/inputs/toggle/toggle.js +0 -610
- package/dist/collection/components/inputs/toggle/toggle.types.js +0 -1
- package/dist/collection/components/inputs/toggle/toggle.utils.js +0 -3
- package/dist/collection/components/layout/grid/grid.css +0 -11
- package/dist/collection/components/layout/grid/grid.js +0 -152
- package/dist/collection/components/layout/inline/inline.css +0 -4
- package/dist/collection/components/layout/inline/inline.js +0 -118
- package/dist/collection/components/layout/navbar/navbar.css +0 -584
- package/dist/collection/components/layout/navbar/navbar.js +0 -848
- package/dist/collection/components/layout/navbar/navbar.types.js +0 -1
- package/dist/collection/components/layout/navbar/navbar.utils.js +0 -13
- package/dist/collection/components/layout/navbar/test/navbar.cmp.test.js +0 -369
- package/dist/collection/components/layout/panel/panel.css +0 -114
- package/dist/collection/components/layout/panel/panel.js +0 -394
- package/dist/collection/components/layout/panel/panel.types.js +0 -1
- package/dist/collection/components/layout/scrollable/internals/metrics.js +0 -61
- package/dist/collection/components/layout/scrollable/internals/native-scrollbar.js +0 -41
- package/dist/collection/components/layout/scrollable/scrollable.css +0 -123
- package/dist/collection/components/layout/scrollable/scrollable.js +0 -565
- package/dist/collection/components/layout/scrollable/scrollable.types.js +0 -1
- package/dist/collection/components/layout/section/section.css +0 -1
- package/dist/collection/components/layout/section/section.js +0 -98
- package/dist/collection/components/layout/section/section.types.js +0 -1
- package/dist/collection/components/layout/sidepanel/internals/drawer.js +0 -98
- package/dist/collection/components/layout/sidepanel/internals/groups.js +0 -56
- package/dist/collection/components/layout/sidepanel/internals/nav-items.js +0 -30
- package/dist/collection/components/layout/sidepanel/sidepanel.css +0 -1035
- package/dist/collection/components/layout/sidepanel/sidepanel.js +0 -1001
- package/dist/collection/components/layout/sidepanel/sidepanel.types.js +0 -1
- package/dist/collection/components/layout/sidepanel/sidepanel.utils.js +0 -17
- package/dist/collection/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.js +0 -120
- package/dist/collection/components/layout/sidepanel/test/panel-transitions.cmp.test.js +0 -180
- package/dist/collection/components/layout/stack/stack.css +0 -4
- package/dist/collection/components/layout/stack/stack.js +0 -76
- package/dist/collection/components/layout/tabs/tabs.css +0 -248
- package/dist/collection/components/layout/tabs/tabs.js +0 -322
- package/dist/collection/components/layout/tabs/tabs.types.js +0 -1
- package/dist/collection/components/layout/tabs/tabs.utils.js +0 -31
- package/dist/collection/components/layout/tabs/test/tabs.cmp.test.js +0 -165
- package/dist/collection/components/layout/toolbar/toolbar.css +0 -168
- package/dist/collection/components/layout/toolbar/toolbar.js +0 -251
- package/dist/collection/components/layout/toolbar/toolbar.types.js +0 -1
- package/dist/collection/components/media/avatar/avatar.css +0 -71
- package/dist/collection/components/media/avatar/avatar.js +0 -302
- package/dist/collection/components/media/avatar/avatar.types.js +0 -1
- package/dist/collection/components/media/icon/icon.css +0 -42
- package/dist/collection/components/media/icon/icon.js +0 -510
- package/dist/collection/components/media/icon/icon.types.js +0 -1
- package/dist/collection/components/media/icon/internals/constants.js +0 -3
- package/dist/collection/components/media/icon/internals/fetch-icon.js +0 -47
- package/dist/collection/components/media/icon/internals/fetch-icon.unit.test.js +0 -51
- package/dist/collection/components/media/icon/internals/policy.js +0 -184
- package/dist/collection/components/media/icon/internals/policy.unit.test.js +0 -65
- package/dist/collection/components/media/icon/internals/registry-lucide.unit.test.js +0 -78
- package/dist/collection/components/media/icon/internals/registry.js +0 -122
- package/dist/collection/components/media/icon/internals/registry.unit.test.js +0 -42
- package/dist/collection/components/media/icon/internals/render-definition.js +0 -24
- package/dist/collection/components/media/icon/internals/sanitize-svg.js +0 -86
- package/dist/collection/components/media/icon/internals/size.js +0 -12
- package/dist/collection/components/media/icon/internals/url.js +0 -52
- package/dist/collection/components/media/icon/internals/url.unit.test.js +0 -34
- package/dist/collection/components/media/icon/test/icon-fixtures.js +0 -47
- package/dist/collection/components/media/icon/test/icon.cmp.test.js +0 -223
- package/dist/collection/components/media/image-comparison/image-comparison.css +0 -124
- package/dist/collection/components/media/image-comparison/image-comparison.js +0 -468
- package/dist/collection/components/media/image-comparison/test/image-comparison.cmp.test.js +0 -234
- package/dist/collection/components/media/media/media.css +0 -1
- package/dist/collection/components/media/media/media.js +0 -125
- package/dist/collection/components/media/media/media.types.js +0 -1
- package/dist/collection/components/media/reel/reel.css +0 -193
- package/dist/collection/components/media/reel/reel.js +0 -279
- package/dist/collection/components/media/reel/reel.types.js +0 -1
- package/dist/collection/components/media/thumbnail/thumbnail.css +0 -111
- package/dist/collection/components/media/thumbnail/thumbnail.js +0 -184
- package/dist/collection/components/media/thumbnail/thumbnail.types.js +0 -1
- package/dist/collection/components/overlays/dialog/dialog.css +0 -264
- package/dist/collection/components/overlays/dialog/dialog.js +0 -743
- package/dist/collection/components/overlays/dialog/dialog.types.js +0 -1
- package/dist/collection/components/overlays/dialog/internals/backdrop.js +0 -9
- package/dist/collection/components/overlays/dialog/internals/lifecycle.js +0 -53
- package/dist/collection/components/overlays/tooltip/internals/aria.js +0 -27
- package/dist/collection/components/overlays/tooltip/internals/positioning.js +0 -84
- package/dist/collection/components/overlays/tooltip/internals/scroll-listeners.js +0 -18
- package/dist/collection/components/overlays/tooltip/tooltip.css +0 -69
- package/dist/collection/components/overlays/tooltip/tooltip.js +0 -196
- package/dist/collection/components/overlays/tooltip/tooltip.types.js +0 -1
- package/dist/collection/components/shared/field.js +0 -8
- package/dist/collection/components/shared/test/orientation.cmp.test.js +0 -36
- package/dist/collection/index.js +0 -16
- package/dist/collection/playground/assets/comparison-after.svg +0 -1
- package/dist/collection/playground/assets/comparison-before.svg +0 -1
- package/dist/collection/playground/components/playground-code-preview/playground-code-preview.js +0 -48
- package/dist/collection/playground/components/playground-event-log/playground-event-log.js +0 -63
- package/dist/collection/playground/components/playground-header/playground-header.js +0 -65
- package/dist/collection/playground/components/playground-sidebar/playground-sidebar.js +0 -112
- package/dist/collection/playground/components/properties-panel/properties-panel.js +0 -146
- package/dist/collection/playground/components/properties-panel/property-row.js +0 -31
- package/dist/collection/playground/components/properties-panel/slot-row.js +0 -27
- package/dist/collection/playground/components/sandbox-viewport/sandbox-panel.js +0 -338
- package/dist/collection/playground/components/sandbox-viewport/sandbox-viewport.js +0 -159
- package/dist/collection/playground/components/sandbox-viewport/variant-card.js +0 -86
- package/dist/collection/playground/components/sandbox-viewport/viewport-tabs.js +0 -39
- package/dist/collection/playground/components/theme-designer/theme-designer.js +0 -69
- package/dist/collection/playground/components/theme-designer/token-row.js +0 -89
- package/dist/collection/playground/components/theme-designer/token-section.js +0 -19
- package/dist/collection/playground/dom-factory.js +0 -76
- package/dist/collection/playground/events.js +0 -37
- package/dist/collection/playground/logo.svg +0 -8
- package/dist/collection/playground/playground.bundled.js +0 -3865
- package/dist/collection/playground/playground.js +0 -10
- package/dist/collection/playground/state.js +0 -158
- package/dist/collection/playground/utils/color.js +0 -26
- package/dist/collection/playground/utils/dom.js +0 -38
- package/dist/collection/playground/utils/index.js +0 -2
- package/dist/collection/playground/views/q-button-view/q-button-view.js +0 -6
- package/dist/collection/playground/views/q-input-view/q-input-view.js +0 -6
- package/dist/collection/theme/test/foundation.cmp.test.js +0 -353
- package/dist/collection/theme/test/presets.cmp.test.js +0 -129
- package/dist/collection/theme/tokens.js +0 -960
- package/dist/collection/utils/collection-identity.js +0 -136
- package/dist/collection/utils/collection-identity.unit.test.js +0 -107
- package/dist/collection/utils/dom.js +0 -236
- package/dist/collection/utils/form-control-validity.js +0 -44
- package/dist/collection/utils/form-field-adapter.js +0 -44
- package/dist/collection/utils/form-field-state.js +0 -45
- package/dist/collection/utils/form-reset-action.js +0 -60
- package/dist/collection/utils/form-submit-action.js +0 -151
- package/dist/collection/utils/form-submit-action.unit.test.js +0 -15
- package/dist/collection/utils/formatter.js +0 -156
- package/dist/collection/utils/formatter.unit.test.js +0 -71
- package/dist/collection/utils/image-crop.js +0 -47
- package/dist/collection/utils/image-crop.unit.test.js +0 -57
- package/dist/collection/utils/math.js +0 -19
- package/dist/collection/utils/syntax.js +0 -239
- package/dist/collection/utils/syntax.unit.test.js +0 -134
- package/dist/collection/utils/utils.js +0 -28
- package/dist/collection/utils/utils.unit.test.js +0 -16
- package/dist/components/index.d.ts +0 -35
- package/dist/components/index.js +0 -1
- package/dist/components/p-6PPZ2sIO.js +0 -1
- package/dist/components/p-B4Mg1xEw.js +0 -1
- package/dist/components/p-BH4gQWub.js +0 -1
- package/dist/components/p-BIIQL66b.js +0 -1
- package/dist/components/p-BJiYCN3i.js +0 -1
- package/dist/components/p-BOdNg0jc.js +0 -1
- package/dist/components/p-BcL0NVv0.js +0 -1
- package/dist/components/p-Bj2RJb2E.js +0 -1
- package/dist/components/p-BofcK-7Z.js +0 -1
- package/dist/components/p-ByfrUWx1.js +0 -1
- package/dist/components/p-C6vxokHH.js +0 -1
- package/dist/components/p-CGZPmEUB.js +0 -1
- package/dist/components/p-CGml_DQ8.js +0 -1
- package/dist/components/p-CKuPOxKN.js +0 -1
- package/dist/components/p-CN1ut2Lb.js +0 -1
- package/dist/components/p-C_RztzNv.js +0 -5
- package/dist/components/p-CoIMrUb3.js +0 -1
- package/dist/components/p-DKrPmn2y.js +0 -13
- package/dist/components/p-DQhiqYeq.js +0 -1
- package/dist/components/p-DT6k8Yhx.js +0 -1
- package/dist/components/p-DYMWBqU1.js +0 -5
- package/dist/components/p-Dfp_If-_.js +0 -1
- package/dist/components/p-DstNl_WY.js +0 -1
- package/dist/components/p-DuX-9GOi.js +0 -1
- package/dist/components/p-GHhpSfZU.js +0 -1
- package/dist/components/p-SzKf4WZF.js +0 -1
- package/dist/components/p-ye27qtRo.js +0 -1
- package/dist/components/q-accordion.d.ts +0 -11
- package/dist/components/q-accordion.js +0 -1
- package/dist/components/q-alert.d.ts +0 -11
- package/dist/components/q-alert.js +0 -1
- package/dist/components/q-avatar.d.ts +0 -11
- package/dist/components/q-avatar.js +0 -1
- package/dist/components/q-banner.d.ts +0 -11
- package/dist/components/q-banner.js +0 -1
- package/dist/components/q-button.d.ts +0 -11
- package/dist/components/q-button.js +0 -1
- package/dist/components/q-card.d.ts +0 -11
- package/dist/components/q-card.js +0 -1
- package/dist/components/q-carousel.d.ts +0 -11
- package/dist/components/q-carousel.js +0 -1
- package/dist/components/q-chip.d.ts +0 -11
- package/dist/components/q-chip.js +0 -1
- package/dist/components/q-conversation-bubble.d.ts +0 -11
- package/dist/components/q-conversation-bubble.js +0 -1
- package/dist/components/q-data-table.d.ts +0 -11
- package/dist/components/q-data-table.js +0 -1
- package/dist/components/q-dialog.d.ts +0 -11
- package/dist/components/q-dialog.js +0 -1
- package/dist/components/q-dropdown.d.ts +0 -11
- package/dist/components/q-dropdown.js +0 -1
- package/dist/components/q-form.d.ts +0 -11
- package/dist/components/q-form.js +0 -1
- package/dist/components/q-grid.d.ts +0 -11
- package/dist/components/q-grid.js +0 -1
- package/dist/components/q-icon.d.ts +0 -11
- package/dist/components/q-icon.js +0 -1
- package/dist/components/q-image-comparison.d.ts +0 -11
- package/dist/components/q-image-comparison.js +0 -1
- package/dist/components/q-inline.d.ts +0 -11
- package/dist/components/q-inline.js +0 -1
- package/dist/components/q-input.d.ts +0 -11
- package/dist/components/q-input.js +0 -1
- package/dist/components/q-link.d.ts +0 -11
- package/dist/components/q-link.js +0 -1
- package/dist/components/q-map.d.ts +0 -11
- package/dist/components/q-map.js +0 -1
- package/dist/components/q-media.d.ts +0 -11
- package/dist/components/q-media.js +0 -1
- package/dist/components/q-navbar.d.ts +0 -11
- package/dist/components/q-navbar.js +0 -1
- package/dist/components/q-pagination.d.ts +0 -11
- package/dist/components/q-pagination.js +0 -1
- package/dist/components/q-panel.d.ts +0 -11
- package/dist/components/q-panel.js +0 -1
- package/dist/components/q-progress.d.ts +0 -11
- package/dist/components/q-progress.js +0 -1
- package/dist/components/q-quantity-selector.d.ts +0 -11
- package/dist/components/q-quantity-selector.js +0 -1
- package/dist/components/q-radio-group.d.ts +0 -11
- package/dist/components/q-radio-group.js +0 -1
- package/dist/components/q-reel.d.ts +0 -11
- package/dist/components/q-reel.js +0 -1
- package/dist/components/q-scrollable.d.ts +0 -11
- package/dist/components/q-scrollable.js +0 -1
- package/dist/components/q-section.d.ts +0 -11
- package/dist/components/q-section.js +0 -1
- package/dist/components/q-sidepanel.d.ts +0 -11
- package/dist/components/q-sidepanel.js +0 -13
- package/dist/components/q-stack.d.ts +0 -11
- package/dist/components/q-stack.js +0 -1
- package/dist/components/q-step-diagram-item.d.ts +0 -11
- package/dist/components/q-step-diagram-item.js +0 -1
- package/dist/components/q-step-diagram.d.ts +0 -11
- package/dist/components/q-step-diagram.js +0 -1
- package/dist/components/q-syntax-box.d.ts +0 -11
- package/dist/components/q-syntax-box.js +0 -13
- package/dist/components/q-tabs.d.ts +0 -11
- package/dist/components/q-tabs.js +0 -1
- package/dist/components/q-textarea.d.ts +0 -11
- package/dist/components/q-textarea.js +0 -1
- package/dist/components/q-thumbnail.d.ts +0 -11
- package/dist/components/q-thumbnail.js +0 -1
- package/dist/components/q-toast.d.ts +0 -11
- package/dist/components/q-toast.js +0 -1
- package/dist/components/q-toggle.d.ts +0 -11
- package/dist/components/q-toggle.js +0 -1
- package/dist/components/q-toolbar.d.ts +0 -11
- package/dist/components/q-toolbar.js +0 -1
- package/dist/components/q-tooltip.d.ts +0 -11
- package/dist/components/q-tooltip.js +0 -1
- package/dist/esm/Leaflet.GoogleMutant-MpxOb4Jm.js +0 -766
- package/dist/esm/action.props-CpnGza8z.js +0 -32
- package/dist/esm/chevron-up-DKrPmn2y.js +0 -27
- package/dist/esm/collection-identity-CGZPmEUB.js +0 -138
- package/dist/esm/data-table-cell-SzKf4WZF.js +0 -46
- package/dist/esm/dom-ByfrUWx1.js +0 -238
- package/dist/esm/field-zfD6OQ02.js +0 -11
- package/dist/esm/form-control-validity-Bj2RJb2E.js +0 -46
- package/dist/esm/form-field-adapter-CGml_DQ8.js +0 -46
- package/dist/esm/form-field-state-DstNl_WY.js +0 -47
- package/dist/esm/form-submit-action-CoEIvDqE.js +0 -213
- package/dist/esm/image-crop-BcL0NVv0.js +0 -49
- package/dist/esm/index-B5ElFlHv.js +0 -1858
- package/dist/esm/index.js +0 -7
- package/dist/esm/leaflet-maplibre-gl-BvKlNmWf.js +0 -1020
- package/dist/esm/leaflet-src-DYMWBqU1.js +0 -14547
- package/dist/esm/loader.js +0 -10
- package/dist/esm/map.types-CoIMrUb3.js +0 -14
- package/dist/esm/q-accordion.entry.js +0 -16
- package/dist/esm/q-alert.entry.js +0 -50
- package/dist/esm/q-avatar.entry.js +0 -99
- package/dist/esm/q-banner.entry.js +0 -17
- package/dist/esm/q-button_2.entry.js +0 -459
- package/dist/esm/q-card.entry.js +0 -86
- package/dist/esm/q-carousel.entry.js +0 -716
- package/dist/esm/q-chip.entry.js +0 -122
- package/dist/esm/q-conversation-bubble.entry.js +0 -68
- package/dist/esm/q-data-table.entry.js +0 -609
- package/dist/esm/q-dialog.entry.js +0 -269
- package/dist/esm/q-dropdown.entry.js +0 -697
- package/dist/esm/q-form.entry.js +0 -1000
- package/dist/esm/q-grid.entry.js +0 -22
- package/dist/esm/q-icon.entry.js +0 -437
- package/dist/esm/q-image-comparison.entry.js +0 -199
- package/dist/esm/q-inline.entry.js +0 -20
- package/dist/esm/q-input_2.entry.js +0 -435
- package/dist/esm/q-link.entry.js +0 -78
- package/dist/esm/q-map.entry.js +0 -3507
- package/dist/esm/q-media.entry.js +0 -19
- package/dist/esm/q-navbar.entry.js +0 -413
- package/dist/esm/q-pagination.entry.js +0 -66
- package/dist/esm/q-panel.entry.js +0 -74
- package/dist/esm/q-quantity-selector.entry.js +0 -202
- package/dist/esm/q-radio-group.entry.js +0 -259
- package/dist/esm/q-reel.entry.js +0 -168
- package/dist/esm/q-scrollable.entry.js +0 -447
- package/dist/esm/q-section.entry.js +0 -18
- package/dist/esm/q-sidepanel.entry.js +0 -791
- package/dist/esm/q-stack.entry.js +0 -18
- package/dist/esm/q-step-diagram-item.entry.js +0 -43
- package/dist/esm/q-step-diagram.entry.js +0 -54
- package/dist/esm/q-syntax-box.entry.js +0 -780
- package/dist/esm/q-tabs.entry.js +0 -153
- package/dist/esm/q-textarea.entry.js +0 -293
- package/dist/esm/q-thumbnail.entry.js +0 -49
- package/dist/esm/q-toast.entry.js +0 -398
- package/dist/esm/q-toggle.entry.js +0 -231
- package/dist/esm/q-toolbar.entry.js +0 -31
- package/dist/esm/registry-GHhpSfZU.js +0 -308
- package/dist/esm/toast-controller-BIIQL66b.js +0 -107
- package/dist/esm/tokens-B4Mg1xEw.js +0 -953
- package/dist/esm/utils-BJiYCN3i.js +0 -30
- package/dist/esm/webquark.js +0 -20
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -1
- package/dist/loader/index.cjs.js +0 -1
- package/dist/loader/index.d.ts +0 -24
- package/dist/loader/index.es2017.js +0 -1
- package/dist/loader/index.js +0 -2
- package/dist/types/components/actions/action.props.d.ts +0 -19
- package/dist/types/components/actions/button/button.d.ts +0 -87
- package/dist/types/components/actions/button/button.types.d.ts +0 -6
- package/dist/types/components/actions/button/button.utils.d.ts +0 -8
- package/dist/types/components/actions/button/button.utils.unit.test.d.ts +0 -1
- package/dist/types/components/actions/button/test/button-slots.cmp.test.d.ts +0 -1
- package/dist/types/components/actions/link/link.d.ts +0 -43
- package/dist/types/components/actions/link/link.types.d.ts +0 -3
- package/dist/types/components/communication/alert/alert.d.ts +0 -32
- package/dist/types/components/communication/alert/alert.types.d.ts +0 -2
- package/dist/types/components/communication/conversation-bubble/conversation-bubble.d.ts +0 -38
- package/dist/types/components/communication/conversation-bubble/conversation-bubble.types.d.ts +0 -1
- package/dist/types/components/communication/toast/internals/icons.d.ts +0 -2
- package/dist/types/components/communication/toast/internals/queue.d.ts +0 -19
- package/dist/types/components/communication/toast/internals/timers.d.ts +0 -12
- package/dist/types/components/communication/toast/test/toast.cmp.test.d.ts +0 -2
- package/dist/types/components/communication/toast/test/toast.unit.test.d.ts +0 -1
- package/dist/types/components/communication/toast/toast-controller.d.ts +0 -9
- package/dist/types/components/communication/toast/toast.d.ts +0 -44
- package/dist/types/components/communication/toast/toast.types.d.ts +0 -30
- package/dist/types/components/content/banner/banner.d.ts +0 -12
- package/dist/types/components/content/banner/banner.types.d.ts +0 -2
- package/dist/types/components/content/card/card.d.ts +0 -35
- package/dist/types/components/content/card/card.types.d.ts +0 -1
- package/dist/types/components/content/card/card.utils.d.ts +0 -5
- package/dist/types/components/content/carousel/carousel.d.ts +0 -123
- package/dist/types/components/content/carousel/carousel.types.d.ts +0 -10
- package/dist/types/components/content/carousel/carousel.utils.d.ts +0 -1
- package/dist/types/components/content/carousel/internals/autoplay.d.ts +0 -22
- package/dist/types/components/content/carousel/internals/metrics.d.ts +0 -23
- package/dist/types/components/content/carousel/internals/slide-state.d.ts +0 -8
- package/dist/types/components/content/carousel/test/transitions.cmp.test.d.ts +0 -1
- package/dist/types/components/data-display/accordion/accordion.d.ts +0 -9
- package/dist/types/components/data-display/accordion/accordion.types.d.ts +0 -1
- package/dist/types/components/data-display/chip/chip.d.ts +0 -55
- package/dist/types/components/data-display/chip/chip.types.d.ts +0 -13
- package/dist/types/components/data-display/data-table/data-table-cell.d.ts +0 -7
- package/dist/types/components/data-display/data-table/data-table.d.ts +0 -95
- package/dist/types/components/data-display/data-table/data-table.types.d.ts +0 -56
- package/dist/types/components/data-display/data-table/internals/data-access.d.ts +0 -9
- package/dist/types/components/data-display/data-table/internals/render-row-actions.d.ts +0 -9
- package/dist/types/components/data-display/data-table/internals/render-sort-indicator.d.ts +0 -5
- package/dist/types/components/data-display/data-table/internals/render-table-body.d.ts +0 -13
- package/dist/types/components/data-display/data-table/internals/render-table-head.d.ts +0 -8
- package/dist/types/components/data-display/data-table/internals/render-toolbar.d.ts +0 -9
- package/dist/types/components/data-display/data-table/internals/row-events.d.ts +0 -1
- package/dist/types/components/data-display/data-table/internals/selection.d.ts +0 -10
- package/dist/types/components/data-display/data-table/internals/sort.d.ts +0 -3
- package/dist/types/components/data-display/data-table/internals/table-model.d.ts +0 -56
- package/dist/types/components/data-display/data-table/test/row-gutter.cmp.test.d.ts +0 -1
- package/dist/types/components/data-display/data-table/test/two-line-rows.cmp.test.d.ts +0 -1
- package/dist/types/components/data-display/map/internals/base-layer.d.ts +0 -63
- package/dist/types/components/data-display/map/internals/bounds.d.ts +0 -23
- package/dist/types/components/data-display/map/internals/buffered-tile-layer.d.ts +0 -10
- package/dist/types/components/data-display/map/internals/cluster-collision.d.ts +0 -15
- package/dist/types/components/data-display/map/internals/google-maps.d.ts +0 -9
- package/dist/types/components/data-display/map/internals/google-mutant-module.d.ts +0 -11
- package/dist/types/components/data-display/map/internals/google-mutant.d.ts +0 -18
- package/dist/types/components/data-display/map/internals/maplibre.d.ts +0 -14
- package/dist/types/components/data-display/map/internals/marker-cluster-index.d.ts +0 -36
- package/dist/types/components/data-display/map/internals/marker-controller.d.ts +0 -57
- package/dist/types/components/data-display/map/internals/marker-presentation.d.ts +0 -8
- package/dist/types/components/data-display/map/internals/marker-visibility.d.ts +0 -10
- package/dist/types/components/data-display/map/internals/markers.d.ts +0 -4
- package/dist/types/components/data-display/map/internals/tile-layer-readiness.d.ts +0 -11
- package/dist/types/components/data-display/map/internals/tile-preload-buffer.d.ts +0 -4
- package/dist/types/components/data-display/map/internals/vector-padding.d.ts +0 -4
- package/dist/types/components/data-display/map/map.d.ts +0 -175
- package/dist/types/components/data-display/map/map.types.d.ts +0 -132
- package/dist/types/components/data-display/map/test/map.cmp.test.d.ts +0 -1
- package/dist/types/components/data-display/pagination/pagination.d.ts +0 -33
- package/dist/types/components/data-display/pagination/test/pagination.cmp.test.d.ts +0 -2
- package/dist/types/components/data-display/syntax-box/internals/clipboard.d.ts +0 -2
- package/dist/types/components/data-display/syntax-box/internals/editor-key-action.d.ts +0 -12
- package/dist/types/components/data-display/syntax-box/internals/value-sync.d.ts +0 -15
- package/dist/types/components/data-display/syntax-box/internals/value-sync.unit.test.d.ts +0 -1
- package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +0 -72
- package/dist/types/components/data-display/syntax-box/syntax-box.types.d.ts +0 -2
- package/dist/types/components/data-display/syntax-box/syntax-box.utils.d.ts +0 -1
- package/dist/types/components/data-display/syntax-box/test/format-fixtures.d.ts +0 -6
- package/dist/types/components/data-display/syntax-box/test/syntax-box.cmp.test.d.ts +0 -1
- package/dist/types/components/data-display/syntax-box/test/syntax-fixtures.d.ts +0 -9
- package/dist/types/components/data-display/syntax-box/test/syntax-format.cmp.test.d.ts +0 -1
- package/dist/types/components/indicators/progress/progress.d.ts +0 -30
- package/dist/types/components/indicators/progress/progress.types.d.ts +0 -3
- package/dist/types/components/indicators/step-diagram/step-diagram.d.ts +0 -19
- package/dist/types/components/indicators/step-diagram/step-diagram.types.d.ts +0 -3
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.d.ts +0 -26
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.types.d.ts +0 -5
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.utils.d.ts +0 -1
- package/dist/types/components/inputs/dropdown/dropdown.d.ts +0 -108
- package/dist/types/components/inputs/dropdown/dropdown.types.d.ts +0 -9
- package/dist/types/components/inputs/dropdown/internals/options.d.ts +0 -6
- package/dist/types/components/inputs/dropdown/internals/position.d.ts +0 -26
- package/dist/types/components/inputs/dropdown/test/dropdown.cmp.test.d.ts +0 -1
- package/dist/types/components/inputs/form/form.d.ts +0 -80
- package/dist/types/components/inputs/form/form.types.d.ts +0 -40
- package/dist/types/components/inputs/form/internals/controls.d.ts +0 -8
- package/dist/types/components/inputs/form/internals/enter-behavior.d.ts +0 -2
- package/dist/types/components/inputs/form/internals/field-state.d.ts +0 -19
- package/dist/types/components/inputs/form/internals/reset.d.ts +0 -3
- package/dist/types/components/inputs/form/internals/submission.d.ts +0 -17
- package/dist/types/components/inputs/form/internals/values.d.ts +0 -10
- package/dist/types/components/inputs/form/internals/values.unit.test.d.ts +0 -1
- package/dist/types/components/inputs/form/test/form-reset-state.cmp.test.d.ts +0 -1
- package/dist/types/components/inputs/form/test/form-submit-transport.cmp.test.d.ts +0 -1
- package/dist/types/components/inputs/form/test/form-submit.cmp.test.d.ts +0 -1
- package/dist/types/components/inputs/form/test/form-values.cmp.test.d.ts +0 -1
- package/dist/types/components/inputs/form/test/form.cmp.test.d.ts +0 -4
- package/dist/types/components/inputs/input/input.d.ts +0 -89
- package/dist/types/components/inputs/input/input.types.d.ts +0 -3
- package/dist/types/components/inputs/input/input.utils.d.ts +0 -1
- package/dist/types/components/inputs/quantity-selector/internals/number-value.d.ts +0 -13
- package/dist/types/components/inputs/quantity-selector/quantity-selector.d.ts +0 -37
- package/dist/types/components/inputs/quantity-selector/quantity-selector.types.d.ts +0 -3
- package/dist/types/components/inputs/radio-group/radio-group.d.ts +0 -70
- package/dist/types/components/inputs/radio-group/radio-group.types.d.ts +0 -12
- package/dist/types/components/inputs/radio-group/radio-group.utils.d.ts +0 -2
- package/dist/types/components/inputs/textarea/textarea.d.ts +0 -79
- package/dist/types/components/inputs/textarea/textarea.types.d.ts +0 -1
- package/dist/types/components/inputs/toggle/toggle.d.ts +0 -67
- package/dist/types/components/inputs/toggle/toggle.types.d.ts +0 -3
- package/dist/types/components/inputs/toggle/toggle.utils.d.ts +0 -1
- package/dist/types/components/layout/grid/grid.d.ts +0 -13
- package/dist/types/components/layout/inline/inline.d.ts +0 -12
- package/dist/types/components/layout/navbar/navbar.d.ts +0 -94
- package/dist/types/components/layout/navbar/navbar.types.d.ts +0 -33
- package/dist/types/components/layout/navbar/navbar.utils.d.ts +0 -2
- package/dist/types/components/layout/navbar/test/navbar.cmp.test.d.ts +0 -1
- package/dist/types/components/layout/panel/panel.d.ts +0 -41
- package/dist/types/components/layout/panel/panel.types.d.ts +0 -3
- package/dist/types/components/layout/scrollable/internals/metrics.d.ts +0 -26
- package/dist/types/components/layout/scrollable/internals/native-scrollbar.d.ts +0 -4
- package/dist/types/components/layout/scrollable/scrollable.d.ts +0 -67
- package/dist/types/components/layout/scrollable/scrollable.types.d.ts +0 -6
- package/dist/types/components/layout/section/section.d.ts +0 -13
- package/dist/types/components/layout/section/section.types.d.ts +0 -1
- package/dist/types/components/layout/sidepanel/internals/drawer.d.ts +0 -2
- package/dist/types/components/layout/sidepanel/internals/groups.d.ts +0 -7
- package/dist/types/components/layout/sidepanel/internals/nav-items.d.ts +0 -2
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +0 -110
- package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +0 -43
- package/dist/types/components/layout/sidepanel/sidepanel.utils.d.ts +0 -2
- package/dist/types/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.d.ts +0 -1
- package/dist/types/components/layout/sidepanel/test/panel-transitions.cmp.test.d.ts +0 -1
- package/dist/types/components/layout/stack/stack.d.ts +0 -10
- package/dist/types/components/layout/tabs/tabs.d.ts +0 -29
- package/dist/types/components/layout/tabs/tabs.types.d.ts +0 -14
- package/dist/types/components/layout/tabs/tabs.utils.d.ts +0 -4
- package/dist/types/components/layout/tabs/test/tabs.cmp.test.d.ts +0 -1
- package/dist/types/components/layout/toolbar/toolbar.d.ts +0 -27
- package/dist/types/components/layout/toolbar/toolbar.types.d.ts +0 -1
- package/dist/types/components/media/avatar/avatar.d.ts +0 -37
- package/dist/types/components/media/avatar/avatar.types.d.ts +0 -2
- package/dist/types/components/media/icon/icon.d.ts +0 -48
- package/dist/types/components/media/icon/icon.types.d.ts +0 -30
- package/dist/types/components/media/icon/internals/constants.d.ts +0 -3
- package/dist/types/components/media/icon/internals/fetch-icon.d.ts +0 -1
- package/dist/types/components/media/icon/internals/fetch-icon.unit.test.d.ts +0 -1
- package/dist/types/components/media/icon/internals/policy.d.ts +0 -19
- package/dist/types/components/media/icon/internals/policy.unit.test.d.ts +0 -1
- package/dist/types/components/media/icon/internals/registry-lucide.unit.test.d.ts +0 -1
- package/dist/types/components/media/icon/internals/registry.d.ts +0 -11
- package/dist/types/components/media/icon/internals/registry.unit.test.d.ts +0 -1
- package/dist/types/components/media/icon/internals/render-definition.d.ts +0 -2
- package/dist/types/components/media/icon/internals/sanitize-svg.d.ts +0 -2
- package/dist/types/components/media/icon/internals/size.d.ts +0 -2
- package/dist/types/components/media/icon/internals/url.d.ts +0 -11
- package/dist/types/components/media/icon/internals/url.unit.test.d.ts +0 -1
- package/dist/types/components/media/icon/test/icon-fixtures.d.ts +0 -4
- package/dist/types/components/media/icon/test/icon.cmp.test.d.ts +0 -1
- package/dist/types/components/media/image-comparison/image-comparison.d.ts +0 -63
- package/dist/types/components/media/image-comparison/test/image-comparison.cmp.test.d.ts +0 -1
- package/dist/types/components/media/media/media.d.ts +0 -13
- package/dist/types/components/media/media/media.types.d.ts +0 -2
- package/dist/types/components/media/reel/reel.d.ts +0 -34
- package/dist/types/components/media/reel/reel.types.d.ts +0 -3
- package/dist/types/components/media/thumbnail/thumbnail.d.ts +0 -21
- package/dist/types/components/media/thumbnail/thumbnail.types.d.ts +0 -7
- package/dist/types/components/overlays/dialog/dialog.d.ts +0 -83
- package/dist/types/components/overlays/dialog/dialog.types.d.ts +0 -1
- package/dist/types/components/overlays/dialog/internals/backdrop.d.ts +0 -2
- package/dist/types/components/overlays/dialog/internals/lifecycle.d.ts +0 -21
- package/dist/types/components/overlays/tooltip/internals/aria.d.ts +0 -13
- package/dist/types/components/overlays/tooltip/internals/positioning.d.ts +0 -7
- package/dist/types/components/overlays/tooltip/internals/scroll-listeners.d.ts +0 -2
- package/dist/types/components/overlays/tooltip/tooltip.d.ts +0 -33
- package/dist/types/components/overlays/tooltip/tooltip.types.d.ts +0 -1
- package/dist/types/components/shared/field.d.ts +0 -3
- package/dist/types/components/shared/test/orientation.cmp.test.d.ts +0 -1
- package/dist/types/components.d.ts +0 -6047
- package/dist/types/declarations.d.ts +0 -14
- package/dist/types/index.d.ts +0 -31
- package/dist/types/playground/components/playground-code-preview/playground-code-preview.d.ts +0 -9
- package/dist/types/playground/components/playground-event-log/playground-event-log.d.ts +0 -11
- package/dist/types/playground/components/playground-header/playground-header.d.ts +0 -10
- package/dist/types/playground/components/playground-sidebar/playground-sidebar.d.ts +0 -13
- package/dist/types/playground/components/properties-panel/properties-panel.d.ts +0 -15
- package/dist/types/playground/components/properties-panel/property-row.d.ts +0 -6
- package/dist/types/playground/components/properties-panel/slot-row.d.ts +0 -7
- package/dist/types/playground/components/sandbox-viewport/sandbox-panel.d.ts +0 -15
- package/dist/types/playground/components/sandbox-viewport/sandbox-viewport.d.ts +0 -14
- package/dist/types/playground/components/sandbox-viewport/variant-card.d.ts +0 -7
- package/dist/types/playground/components/sandbox-viewport/viewport-tabs.d.ts +0 -5
- package/dist/types/playground/components/theme-designer/theme-designer.d.ts +0 -15
- package/dist/types/playground/components/theme-designer/token-row.d.ts +0 -14
- package/dist/types/playground/components/theme-designer/token-section.d.ts +0 -7
- package/dist/types/playground/dom-factory.d.ts +0 -12
- package/dist/types/playground/events.d.ts +0 -24
- package/dist/types/playground/playground.d.ts +0 -7
- package/dist/types/playground/state.d.ts +0 -44
- package/dist/types/playground/utils/color.d.ts +0 -8
- package/dist/types/playground/utils/dom.d.ts +0 -15
- package/dist/types/playground/utils/index.d.ts +0 -2
- package/dist/types/stencil-public-runtime.d.ts +0 -1879
- package/dist/types/theme/test/assets.d.ts +0 -4
- package/dist/types/theme/test/foundation.cmp.test.d.ts +0 -16
- package/dist/types/theme/test/presets.cmp.test.d.ts +0 -7
- package/dist/types/theme/tokens.d.ts +0 -141
- package/dist/types/utils/collection-identity.d.ts +0 -55
- package/dist/types/utils/collection-identity.unit.test.d.ts +0 -1
- package/dist/types/utils/dom.d.ts +0 -68
- package/dist/types/utils/form-control-validity.d.ts +0 -14
- package/dist/types/utils/form-field-adapter.d.ts +0 -17
- package/dist/types/utils/form-field-state.d.ts +0 -4
- package/dist/types/utils/form-reset-action.d.ts +0 -5
- package/dist/types/utils/form-submit-action.d.ts +0 -17
- package/dist/types/utils/form-submit-action.unit.test.d.ts +0 -1
- package/dist/types/utils/formatter.d.ts +0 -15
- package/dist/types/utils/formatter.unit.test.d.ts +0 -1
- package/dist/types/utils/image-crop.d.ts +0 -30
- package/dist/types/utils/image-crop.unit.test.d.ts +0 -1
- package/dist/types/utils/math.d.ts +0 -10
- package/dist/types/utils/syntax.d.ts +0 -13
- package/dist/types/utils/syntax.unit.test.d.ts +0 -1
- package/dist/types/utils/utils.d.ts +0 -11
- package/dist/types/utils/utils.unit.test.d.ts +0 -1
- package/dist/webquark/index.esm.js +0 -1
- package/dist/webquark/native-content.css +0 -24
- package/dist/webquark/p-023f8437.entry.js +0 -1
- package/dist/webquark/p-030ecde3.entry.js +0 -1
- package/dist/webquark/p-04c8cb9e.entry.js +0 -1
- package/dist/webquark/p-059daa8a.entry.js +0 -1
- package/dist/webquark/p-09cca7b9.entry.js +0 -1
- package/dist/webquark/p-0aa74ad6.entry.js +0 -1
- package/dist/webquark/p-0ae43d6c.entry.js +0 -1
- package/dist/webquark/p-0c3aac3f.entry.js +0 -1
- package/dist/webquark/p-144ef339.entry.js +0 -1
- package/dist/webquark/p-1d1f7bc3.entry.js +0 -1
- package/dist/webquark/p-296fbdb1.entry.js +0 -1
- package/dist/webquark/p-36118d90.entry.js +0 -1
- package/dist/webquark/p-3bc4629c.entry.js +0 -1
- package/dist/webquark/p-48fb5228.entry.js +0 -1
- package/dist/webquark/p-4d61b70d.entry.js +0 -1
- package/dist/webquark/p-5f232b44.entry.js +0 -13
- package/dist/webquark/p-64096386.entry.js +0 -1
- package/dist/webquark/p-6bfffa79.entry.js +0 -1
- package/dist/webquark/p-6e28cfe2.entry.js +0 -1
- package/dist/webquark/p-70d9ffde.entry.js +0 -1
- package/dist/webquark/p-8ece2c62.entry.js +0 -1
- package/dist/webquark/p-90b0858c.entry.js +0 -1
- package/dist/webquark/p-91fff6b6.entry.js +0 -1
- package/dist/webquark/p-923dac41.entry.js +0 -1
- package/dist/webquark/p-97a89cae.entry.js +0 -1
- package/dist/webquark/p-99d785ca.entry.js +0 -1
- package/dist/webquark/p-9e78b796.entry.js +0 -1
- package/dist/webquark/p-9ff7e5a4.entry.js +0 -1
- package/dist/webquark/p-B4Mg1xEw.js +0 -1
- package/dist/webquark/p-B5ElFlHv.js +0 -3
- package/dist/webquark/p-BIIQL66b.js +0 -1
- package/dist/webquark/p-BJiYCN3i.js +0 -1
- package/dist/webquark/p-BOdNg0jc.js +0 -1
- package/dist/webquark/p-BcL0NVv0.js +0 -1
- package/dist/webquark/p-Bj2RJb2E.js +0 -1
- package/dist/webquark/p-ByfrUWx1.js +0 -1
- package/dist/webquark/p-CGZPmEUB.js +0 -1
- package/dist/webquark/p-CGml_DQ8.js +0 -1
- package/dist/webquark/p-C_RztzNv.js +0 -5
- package/dist/webquark/p-CoIMrUb3.js +0 -1
- package/dist/webquark/p-DKrPmn2y.js +0 -13
- package/dist/webquark/p-DWO-pleQ.js +0 -1
- package/dist/webquark/p-DYMWBqU1.js +0 -5
- package/dist/webquark/p-Dhsn99q4.js +0 -1
- package/dist/webquark/p-DstNl_WY.js +0 -1
- package/dist/webquark/p-DuX-9GOi.js +0 -1
- package/dist/webquark/p-GHhpSfZU.js +0 -1
- package/dist/webquark/p-SzKf4WZF.js +0 -1
- package/dist/webquark/p-c523ec6f.entry.js +0 -1
- package/dist/webquark/p-d0253d64.entry.js +0 -1
- package/dist/webquark/p-d0fbd2b1.entry.js +0 -1
- package/dist/webquark/p-dd115868.entry.js +0 -1
- package/dist/webquark/p-f1bac94c.entry.js +0 -1
- package/dist/webquark/p-f4f97e74.entry.js +0 -1
- package/dist/webquark/p-f63b7214.entry.js +0 -1
- package/dist/webquark/p-f98f9439.entry.js +0 -1
- package/dist/webquark/p-f9ad63ff.entry.js +0 -1
- package/dist/webquark/p-fe200f68.entry.js +0 -1
- package/dist/webquark/p-fe8c634a.entry.js +0 -13
- package/dist/webquark/p-fec6fe0a.entry.js +0 -1
- /package/dist/{collection → browser}/native-content.css +0 -0
- /package/dist/{webquark → browser}/webquark.css +0 -0
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
export function escapeHtml(text) {
|
|
2
|
-
return text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
3
|
-
}
|
|
4
|
-
/** Each token and gap is an unchanged slice of the source; generated markup is never scanned. */
|
|
5
|
-
function scan(text, pattern, classify) {
|
|
6
|
-
const tokens = [];
|
|
7
|
-
let offset = 0;
|
|
8
|
-
let match;
|
|
9
|
-
while ((match = pattern.exec(text)) !== null) {
|
|
10
|
-
if (offset < match.index)
|
|
11
|
-
tokens.push({ text: text.slice(offset, match.index) });
|
|
12
|
-
tokens.push({ text: match[0], className: classify(match) });
|
|
13
|
-
offset = match.index + match[0].length;
|
|
14
|
-
}
|
|
15
|
-
if (offset < text.length)
|
|
16
|
-
tokens.push({ text: text.slice(offset) });
|
|
17
|
-
return tokens;
|
|
18
|
-
}
|
|
19
|
-
/** Keep unhighlighted runs together so long edits do not create a text node per character. */
|
|
20
|
-
function tokenWriter(text) {
|
|
21
|
-
const tokens = [];
|
|
22
|
-
let plainStart = 0;
|
|
23
|
-
return {
|
|
24
|
-
emit(start, end, className) {
|
|
25
|
-
if (plainStart < start)
|
|
26
|
-
tokens.push({ text: text.slice(plainStart, start) });
|
|
27
|
-
tokens.push({ text: text.slice(start, end), className });
|
|
28
|
-
plainStart = end;
|
|
29
|
-
},
|
|
30
|
-
finish() {
|
|
31
|
-
if (plainStart < text.length)
|
|
32
|
-
tokens.push({ text: text.slice(plainStart) });
|
|
33
|
-
return tokens;
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function isLetter(char) {
|
|
38
|
-
return char >= 'a' && char <= 'z' || char >= 'A' && char <= 'Z';
|
|
39
|
-
}
|
|
40
|
-
function isDigit(char) {
|
|
41
|
-
return char >= '0' && char <= '9';
|
|
42
|
-
}
|
|
43
|
-
function isWord(char) {
|
|
44
|
-
return isLetter(char) || isDigit(char) || char === '_';
|
|
45
|
-
}
|
|
46
|
-
function skipWhitespace(text, offset) {
|
|
47
|
-
while (offset < text.length && /\s/.test(text[offset]))
|
|
48
|
-
offset++;
|
|
49
|
-
return offset;
|
|
50
|
-
}
|
|
51
|
-
function quotedEnd(text, start, escaped) {
|
|
52
|
-
const quote = text[start];
|
|
53
|
-
let offset = start + 1;
|
|
54
|
-
while (offset < text.length) {
|
|
55
|
-
if (escaped && text[offset] === '\\')
|
|
56
|
-
offset = Math.min(text.length, offset + 2);
|
|
57
|
-
else if (text[offset++] === quote)
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
return offset;
|
|
61
|
-
}
|
|
62
|
-
/** Consume each name once instead of retrying an attribute lookahead at every suffix. */
|
|
63
|
-
function tokenizeHtml(text) {
|
|
64
|
-
const writer = tokenWriter(text);
|
|
65
|
-
let offset = 0;
|
|
66
|
-
while (offset < text.length) {
|
|
67
|
-
const start = offset;
|
|
68
|
-
const char = text[offset];
|
|
69
|
-
if (text.startsWith('<!--', offset)) {
|
|
70
|
-
const end = text.indexOf('-->', offset + 4);
|
|
71
|
-
offset = end === -1 ? text.length : end + 3;
|
|
72
|
-
writer.emit(start, offset, 'code-comment');
|
|
73
|
-
}
|
|
74
|
-
else if (char === '<' && isLetter(text[offset + (text[offset + 1] === '/' ? 2 : 1)])) {
|
|
75
|
-
offset += text[offset + 1] === '/' ? 3 : 2;
|
|
76
|
-
while (offset < text.length && (isWord(text[offset]) || text[offset] === ':' || text[offset] === '-'))
|
|
77
|
-
offset++;
|
|
78
|
-
writer.emit(start, offset, 'code-tag');
|
|
79
|
-
}
|
|
80
|
-
else if (char === '"' || char === "'") {
|
|
81
|
-
// HTML uses entities for embedded quotes; a backslash does not escape its delimiter.
|
|
82
|
-
offset = quotedEnd(text, start, false);
|
|
83
|
-
writer.emit(start, offset, 'code-value');
|
|
84
|
-
}
|
|
85
|
-
else if (char === '>' || char === '/' && text[offset + 1] === '>') {
|
|
86
|
-
offset += char === '/' ? 2 : 1;
|
|
87
|
-
writer.emit(start, offset, 'code-tag');
|
|
88
|
-
}
|
|
89
|
-
else if (isWord(char) || char === ':' || char === '-') {
|
|
90
|
-
offset++;
|
|
91
|
-
while (offset < text.length && (isWord(text[offset]) || text[offset] === ':' || text[offset] === '-'))
|
|
92
|
-
offset++;
|
|
93
|
-
if (text[skipWhitespace(text, offset)] === '=')
|
|
94
|
-
writer.emit(start, offset, 'code-attr');
|
|
95
|
-
}
|
|
96
|
-
else
|
|
97
|
-
offset++;
|
|
98
|
-
}
|
|
99
|
-
return writer.finish();
|
|
100
|
-
}
|
|
101
|
-
const JAVASCRIPT_KEYWORDS = new Set([
|
|
102
|
-
'const', 'let', 'var', 'function', 'return', 'if', 'else', 'for', 'while', 'do', 'switch', 'case',
|
|
103
|
-
'break', 'continue', 'class', 'export', 'import', 'from', 'new', 'this', 'typeof', 'instanceof',
|
|
104
|
-
'try', 'catch', 'finally', 'throw', 'async', 'await', 'null', 'undefined', 'true', 'false',
|
|
105
|
-
]);
|
|
106
|
-
/** Consume strings/comments before identifiers so their contents are never scanned as code. */
|
|
107
|
-
function tokenizeJavascript(text) {
|
|
108
|
-
const writer = tokenWriter(text);
|
|
109
|
-
let offset = 0;
|
|
110
|
-
while (offset < text.length) {
|
|
111
|
-
const start = offset;
|
|
112
|
-
const char = text[offset];
|
|
113
|
-
if (char === '/' && text[offset + 1] === '/') {
|
|
114
|
-
offset += 2;
|
|
115
|
-
while (offset < text.length && !/[\r\n\u2028\u2029]/.test(text[offset]))
|
|
116
|
-
offset++;
|
|
117
|
-
writer.emit(start, offset, 'code-comment');
|
|
118
|
-
}
|
|
119
|
-
else if (char === '/' && text[offset + 1] === '*') {
|
|
120
|
-
const end = text.indexOf('*/', offset + 2);
|
|
121
|
-
offset = end === -1 ? text.length : end + 2;
|
|
122
|
-
writer.emit(start, offset, 'code-comment');
|
|
123
|
-
}
|
|
124
|
-
else if (char === '"' || char === "'" || char === '`') {
|
|
125
|
-
offset = quotedEnd(text, start, true);
|
|
126
|
-
writer.emit(start, offset, 'code-value');
|
|
127
|
-
}
|
|
128
|
-
else if (isLetter(char) || char === '_' || char === '$') {
|
|
129
|
-
offset++;
|
|
130
|
-
while (offset < text.length && (isWord(text[offset]) || text[offset] === '$'))
|
|
131
|
-
offset++;
|
|
132
|
-
if (JAVASCRIPT_KEYWORDS.has(text.slice(start, offset)))
|
|
133
|
-
writer.emit(start, offset, 'code-tag');
|
|
134
|
-
else if (text[skipWhitespace(text, offset)] === '(')
|
|
135
|
-
writer.emit(start, offset, 'code-attr');
|
|
136
|
-
}
|
|
137
|
-
else if (isDigit(char)) {
|
|
138
|
-
while (offset < text.length && isDigit(text[offset]))
|
|
139
|
-
offset++;
|
|
140
|
-
if (text[offset] === '.' && isDigit(text[offset + 1])) {
|
|
141
|
-
offset++;
|
|
142
|
-
while (offset < text.length && isDigit(text[offset]))
|
|
143
|
-
offset++;
|
|
144
|
-
}
|
|
145
|
-
if (isWord(text[offset]) || text[offset] === '$') {
|
|
146
|
-
// An unfinished number/identifier is one plain run, not a highlighted suffix.
|
|
147
|
-
while (offset < text.length && (isWord(text[offset]) || text[offset] === '$'))
|
|
148
|
-
offset++;
|
|
149
|
-
}
|
|
150
|
-
else
|
|
151
|
-
writer.emit(start, offset, 'code-number');
|
|
152
|
-
}
|
|
153
|
-
else
|
|
154
|
-
offset++;
|
|
155
|
-
}
|
|
156
|
-
return writer.finish();
|
|
157
|
-
}
|
|
158
|
-
/** Consume CSS once, including incomplete edits; never retry a selector suffix. */
|
|
159
|
-
function tokenizeCss(text) {
|
|
160
|
-
const tokens = [];
|
|
161
|
-
let mode = 'selector';
|
|
162
|
-
let depth = 0;
|
|
163
|
-
let offset = 0;
|
|
164
|
-
const emit = (start, end, className) => {
|
|
165
|
-
if (end > start)
|
|
166
|
-
tokens.push({ text: text.slice(start, end), className });
|
|
167
|
-
};
|
|
168
|
-
while (offset < text.length) {
|
|
169
|
-
const start = offset;
|
|
170
|
-
const char = text[offset];
|
|
171
|
-
if (char === '/' && text[offset + 1] === '*') {
|
|
172
|
-
const end = text.indexOf('*/', offset + 2);
|
|
173
|
-
offset = end === -1 ? text.length : end + 2;
|
|
174
|
-
emit(start, offset, 'code-comment');
|
|
175
|
-
}
|
|
176
|
-
else if (char === '"' || char === "'") {
|
|
177
|
-
offset++;
|
|
178
|
-
while (offset < text.length) {
|
|
179
|
-
if (text[offset] === '\\')
|
|
180
|
-
offset = Math.min(text.length, offset + 2);
|
|
181
|
-
else if (text[offset++] === char)
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
emit(start, offset, 'code-value');
|
|
185
|
-
}
|
|
186
|
-
else if (char === '{' || char === '}' || char === ';' || (char === ':' && mode === 'property')) {
|
|
187
|
-
offset++;
|
|
188
|
-
emit(start, offset);
|
|
189
|
-
if (char === '{') {
|
|
190
|
-
depth++;
|
|
191
|
-
mode = 'property';
|
|
192
|
-
}
|
|
193
|
-
else if (char === '}') {
|
|
194
|
-
depth = Math.max(0, depth - 1);
|
|
195
|
-
mode = depth ? 'property' : 'selector';
|
|
196
|
-
}
|
|
197
|
-
else if (char === ';')
|
|
198
|
-
mode = depth ? 'property' : 'selector';
|
|
199
|
-
else
|
|
200
|
-
mode = 'value';
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
// Each character belongs to exactly one run or lexical token.
|
|
204
|
-
while (offset < text.length) {
|
|
205
|
-
const next = text[offset];
|
|
206
|
-
if (next === '"' || next === "'" || next === '{' || next === '}' || next === ';' ||
|
|
207
|
-
(next === ':' && mode === 'property') || (next === '/' && text[offset + 1] === '*'))
|
|
208
|
-
break;
|
|
209
|
-
offset++;
|
|
210
|
-
}
|
|
211
|
-
emit(start, offset, mode === 'selector' ? 'code-tag' : mode === 'property' ? 'code-attr' : 'code-value');
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return tokens;
|
|
215
|
-
}
|
|
216
|
-
export function tokenizeSyntax(text, language) {
|
|
217
|
-
switch (language) {
|
|
218
|
-
case 'html':
|
|
219
|
-
return tokenizeHtml(text);
|
|
220
|
-
case 'javascript':
|
|
221
|
-
return tokenizeJavascript(text);
|
|
222
|
-
case 'css':
|
|
223
|
-
return tokenizeCss(text);
|
|
224
|
-
case 'json':
|
|
225
|
-
return scan(text, /("(?:[^"\\]|\\[\s\S])*")|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?|\b(?:true|false|null)\b)/g, match => match[1] ? /^\s*:/.test(text.slice(match.index + match[0].length)) ? 'code-tag' : 'code-value' : 'code-attr');
|
|
226
|
-
default:
|
|
227
|
-
return text ? [{ text }] : [];
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
/** HTML-string callers escape each raw segment once; components can render the same tokens as text nodes. */
|
|
231
|
-
export function highlight(text, language) {
|
|
232
|
-
return tokenizeSyntax(text, language).map(token => token.className
|
|
233
|
-
? `<span class="${token.className}">${escapeHtml(token.text)}</span>`
|
|
234
|
-
: escapeHtml(token.text)).join('');
|
|
235
|
-
}
|
|
236
|
-
export const highlightHtml = (text) => highlight(text, 'html');
|
|
237
|
-
export const highlightJavascript = (text) => highlight(text, 'javascript');
|
|
238
|
-
export const highlightCss = (text) => highlight(text, 'css');
|
|
239
|
-
export const highlightJson = (text) => highlight(text, 'json');
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it, vi } from "vitest";
|
|
2
|
-
import { escapeHtml, highlight, tokenizeSyntax } from "./syntax";
|
|
3
|
-
import { LANGUAGE_SOURCE, LITERAL_SOURCES, SYNTAX_LANGUAGES } from "../components/data-display/syntax-box/test/syntax-fixtures";
|
|
4
|
-
describe('literal syntax helpers', () => {
|
|
5
|
-
it('highlights HTML names, values and comments without scanning quoted markup as tags', () => {
|
|
6
|
-
const source = '<x-card data-note = "<b>< 雪" disabled><!-- <i key=\'x\'> -->🐦</x-card>';
|
|
7
|
-
const tokens = tokenizeSyntax(source, 'html');
|
|
8
|
-
expect(tokens.map(token => token.text).join('')).toBe(source);
|
|
9
|
-
expect(tokens.filter(token => token.className)).toEqual([
|
|
10
|
-
{ text: '<x-card', className: 'code-tag' },
|
|
11
|
-
{ text: 'data-note', className: 'code-attr' },
|
|
12
|
-
{ text: '"<b>< 雪"', className: 'code-value' },
|
|
13
|
-
{ text: '>', className: 'code-tag' },
|
|
14
|
-
{ text: '<!-- <i key=\'x\'> -->', className: 'code-comment' },
|
|
15
|
-
{ text: '</x-card', className: 'code-tag' },
|
|
16
|
-
{ text: '>', className: 'code-tag' },
|
|
17
|
-
]);
|
|
18
|
-
});
|
|
19
|
-
it('uses HTML quote termination while preserving literal backslashes', () => {
|
|
20
|
-
const source = String.raw `<a title="x\">`;
|
|
21
|
-
expect(tokenizeSyntax(source, 'html').filter(token => token.className)).toEqual([
|
|
22
|
-
{ text: '<a', className: 'code-tag' },
|
|
23
|
-
{ text: 'title', className: 'code-attr' },
|
|
24
|
-
{ text: String.raw `"x\"`, className: 'code-value' },
|
|
25
|
-
{ text: '>', className: 'code-tag' },
|
|
26
|
-
]);
|
|
27
|
-
});
|
|
28
|
-
it('highlights JavaScript keywords, calls and numbers while treating strings/comments as whole tokens', () => {
|
|
29
|
-
const quoted = String.raw `"keep \"const call(12)\" 雪"`;
|
|
30
|
-
const template = '`keep \\` ${call(1)} 🐦`';
|
|
31
|
-
const source = 'const message = ' + quoted + ';\r\n/* return call(3) */\tinvoke (' + template + ', 12.5); // new(4)';
|
|
32
|
-
const tokens = tokenizeSyntax(source, 'javascript');
|
|
33
|
-
expect(tokens.map(token => token.text).join('')).toBe(source);
|
|
34
|
-
expect(tokens.filter(token => token.className)).toEqual([
|
|
35
|
-
{ text: 'const', className: 'code-tag' },
|
|
36
|
-
{ text: quoted, className: 'code-value' },
|
|
37
|
-
{ text: '/* return call(3) */', className: 'code-comment' },
|
|
38
|
-
{ text: 'invoke', className: 'code-attr' },
|
|
39
|
-
{ text: template, className: 'code-value' },
|
|
40
|
-
{ text: '12.5', className: 'code-number' },
|
|
41
|
-
{ text: '// new(4)', className: 'code-comment' },
|
|
42
|
-
]);
|
|
43
|
-
});
|
|
44
|
-
it('classifies whole JavaScript identifiers and respects Unicode line separators after comments', () => {
|
|
45
|
-
expect(tokenizeSyntax('$const const$ 1const', 'javascript')).toEqual([{ text: '$const const$ 1const' }]);
|
|
46
|
-
expect(tokenizeSyntax('// 雪\u2028const x = true;\u2029// 🐦', 'javascript').filter(token => token.className)).toEqual([
|
|
47
|
-
{ text: '// 雪', className: 'code-comment' },
|
|
48
|
-
{ text: 'const', className: 'code-tag' },
|
|
49
|
-
{ text: 'true', className: 'code-tag' },
|
|
50
|
-
{ text: '// 🐦', className: 'code-comment' },
|
|
51
|
-
]);
|
|
52
|
-
});
|
|
53
|
-
it.each([
|
|
54
|
-
['html', '<!-- unfinished <b key="x">', 'code-comment'],
|
|
55
|
-
['html', '"unfinished <b key=\'x\'>', 'code-value'],
|
|
56
|
-
['javascript', '/* unfinished const call(1)', 'code-comment'],
|
|
57
|
-
['javascript', String.raw `'unfinished \' call(1)`, 'code-value'],
|
|
58
|
-
['javascript', '`unfinished ${call(1)}', 'code-value'],
|
|
59
|
-
])('keeps an incomplete %s comment or quote together: %s', (language, source, className) => {
|
|
60
|
-
expect(tokenizeSyntax(source, language)).toEqual([{ text: source, className }]);
|
|
61
|
-
});
|
|
62
|
-
for (const language of ['html', 'javascript']) {
|
|
63
|
-
it.each(['a', ' ', '1'])(`${language}: keeps a long unmatched lexical run as one token: %s`, char => {
|
|
64
|
-
const source = char.repeat(65536);
|
|
65
|
-
const tokens = tokenizeSyntax(source, language);
|
|
66
|
-
expect(tokens.map(token => token.text).join('')).toBe(source);
|
|
67
|
-
expect(tokens).toHaveLength(1);
|
|
68
|
-
});
|
|
69
|
-
it(`${language}: consumes a long successful name without splitting it into suffixes`, () => {
|
|
70
|
-
const name = 'a'.repeat(65536);
|
|
71
|
-
const source = language === 'html' ? '<x ' + name + ' = "雪">' : name + ' \t(1)';
|
|
72
|
-
const tokens = tokenizeSyntax(source, language);
|
|
73
|
-
expect(tokens.map(token => token.text).join('')).toBe(source);
|
|
74
|
-
expect(tokens).toContainEqual({ text: name, className: 'code-attr' });
|
|
75
|
-
expect(tokens.length).toBeLessThan(8);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
it('highlights CSS selectors, properties, values, comments and escaped strings without rescanning strings', () => {
|
|
79
|
-
const source = '.card:hover { /* } */ color: red; content: "a\\\";{}"; --accent: blue; }';
|
|
80
|
-
const tokens = tokenizeSyntax(source, 'css');
|
|
81
|
-
expect(tokens.map(token => token.text).join('')).toBe(source);
|
|
82
|
-
expect(tokens).toContainEqual({ text: '.card:hover ', className: 'code-tag' });
|
|
83
|
-
expect(tokens).toContainEqual({ text: ' color', className: 'code-attr' });
|
|
84
|
-
expect(tokens).toContainEqual({ text: ' red', className: 'code-value' });
|
|
85
|
-
expect(tokens).toContainEqual({ text: '/* } */', className: 'code-comment' });
|
|
86
|
-
expect(tokens).toContainEqual({ text: '"a\\\";{}"', className: 'code-value' });
|
|
87
|
-
});
|
|
88
|
-
it.each([' ', 'a', '.unfinished:', '/* unfinished ', '"unfinished '])('handles long incomplete CSS runs in bounded time: %s', fragment => {
|
|
89
|
-
const source = fragment.repeat(32768);
|
|
90
|
-
const started = performance.now();
|
|
91
|
-
const tokens = tokenizeSyntax(source, 'css');
|
|
92
|
-
expect(tokens.map(token => token.text).join('')).toBe(source);
|
|
93
|
-
// Generous for CI, but excludes the previous seconds-long suffix retries.
|
|
94
|
-
expect(performance.now() - started).toBeLessThan(300);
|
|
95
|
-
});
|
|
96
|
-
it('escapes mixed raw/entity-looking source without trusting the entire string', () => {
|
|
97
|
-
expect(escapeHtml('<b>< > & ' "\'</b>')).toBe('<b>&lt; &gt; &amp; &#39; "\'</b>');
|
|
98
|
-
expect(escapeHtml('')).toBe('');
|
|
99
|
-
});
|
|
100
|
-
for (const language of SYNTAX_LANGUAGES) {
|
|
101
|
-
it.each([...LITERAL_SOURCES, ['language spacing, strings and comments', LANGUAGE_SOURCE[language]], ['control characters', '\0\ud800\r\n\u2028\u2029']])(`${language}: unchanged token source for %s`, (_case, source) => {
|
|
102
|
-
expect(tokenizeSyntax(source, language).map(token => token.text).join('')).toBe(source);
|
|
103
|
-
expect(highlight(source, language)).not.toContain('<b>');
|
|
104
|
-
expect(highlight(source, language)).not.toContain('<q-button>');
|
|
105
|
-
});
|
|
106
|
-
it(`${language}: preserves arbitrary deterministic source and empty input`, () => {
|
|
107
|
-
let seed = 49;
|
|
108
|
-
const alphabet = '<>"\'&;:=/\\*{}[]()\t \r\n\0\ud800雪🐦0123456789abcdef';
|
|
109
|
-
for (let run = 0; run < 40; run++) {
|
|
110
|
-
let source = '';
|
|
111
|
-
for (let i = 0; i < 120; i++) {
|
|
112
|
-
seed = (Math.imul(seed, 1664525) + 1013904223) >>> 0;
|
|
113
|
-
source += alphabet[seed % alphabet.length];
|
|
114
|
-
}
|
|
115
|
-
expect(tokenizeSyntax(source, language).map(token => token.text).join('')).toBe(source);
|
|
116
|
-
}
|
|
117
|
-
expect(tokenizeSyntax('', language)).toEqual([]);
|
|
118
|
-
expect(highlight('', language)).toBe('');
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
it('imports and highlights without browser globals', async () => {
|
|
122
|
-
vi.stubGlobal('document', undefined);
|
|
123
|
-
vi.stubGlobal('DOMParser', undefined);
|
|
124
|
-
vi.stubGlobal('XMLSerializer', undefined);
|
|
125
|
-
try {
|
|
126
|
-
vi.resetModules();
|
|
127
|
-
const syntax = await import('./syntax');
|
|
128
|
-
expect(syntax.highlightHtml('<b><</b>')).toContain('&lt;');
|
|
129
|
-
}
|
|
130
|
-
finally {
|
|
131
|
-
vi.unstubAllGlobals();
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview General purpose utility functions for WebQuark.
|
|
3
|
-
*/
|
|
4
|
-
export function format(first, middle, last) {
|
|
5
|
-
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Safely parses a JSON string or returns the value if it's already an array or object.
|
|
9
|
-
* @param value The value to parse (string, array, or object).
|
|
10
|
-
* @param fallback The fallback value to return on failure.
|
|
11
|
-
* @param componentName Optional name of the component for better error logging prefix.
|
|
12
|
-
*/
|
|
13
|
-
export function safeParseJson(value, fallback, componentName) {
|
|
14
|
-
if (value === undefined || value === null) {
|
|
15
|
-
return fallback;
|
|
16
|
-
}
|
|
17
|
-
if (typeof value === 'string') {
|
|
18
|
-
try {
|
|
19
|
-
return JSON.parse(value);
|
|
20
|
-
}
|
|
21
|
-
catch (e) {
|
|
22
|
-
const prefix = componentName ? `${componentName}: ` : '';
|
|
23
|
-
console.error(`${prefix}Failed to parse JSON string`, e);
|
|
24
|
-
return fallback;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return value;
|
|
28
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect } from "vitest";
|
|
2
|
-
import { format } from "./utils";
|
|
3
|
-
describe('format', () => {
|
|
4
|
-
it('returns empty string for no names defined', () => {
|
|
5
|
-
expect(format(undefined, undefined, undefined)).toEqual('');
|
|
6
|
-
});
|
|
7
|
-
it('formats just first names', () => {
|
|
8
|
-
expect(format('Joseph', undefined, undefined)).toEqual('Joseph');
|
|
9
|
-
});
|
|
10
|
-
it('formats first and last names', () => {
|
|
11
|
-
expect(format('Joseph', undefined, 'Publique')).toEqual('Joseph Publique');
|
|
12
|
-
});
|
|
13
|
-
it('formats first, middle and last names', () => {
|
|
14
|
-
expect(format('Joseph', 'Quincy', 'Publique')).toEqual('Joseph Quincy Publique');
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get the base path to where the assets can be found. Use "setAssetPath(path)"
|
|
3
|
-
* if the path needs to be customized.
|
|
4
|
-
*/
|
|
5
|
-
export declare const getAssetPath: (path: string) => string;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Used to manually set the base path where assets can be found.
|
|
9
|
-
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
10
|
-
* such as "setAssetPath(import.meta.url)". Other options include
|
|
11
|
-
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
12
|
-
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
13
|
-
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
14
|
-
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
15
|
-
* will have to ensure the static assets are copied to its build directory.
|
|
16
|
-
*/
|
|
17
|
-
export declare const setAssetPath: (path: string) => void;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
21
|
-
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
22
|
-
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
23
|
-
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
24
|
-
* will result in the same behavior.
|
|
25
|
-
*/
|
|
26
|
-
export declare const setNonce: (nonce: string) => void
|
|
27
|
-
|
|
28
|
-
export interface SetPlatformOptions {
|
|
29
|
-
raf?: (c: FrameRequestCallback) => number;
|
|
30
|
-
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
31
|
-
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
32
|
-
}
|
|
33
|
-
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
34
|
-
|
|
35
|
-
export * from '../types';
|
package/dist/components/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-ye27qtRo.js";export{f as format}from"./p-BJiYCN3i.js";export{c as calculateImageCropGeometry,h as hasPartialImageCrop,i as isImageCropValid}from"./p-BcL0NVv0.js";export{i as identifyItems,r as reconcileByIdentity}from"./p-CGZPmEUB.js";export{Q as Q_MAP_DEFAULT_CLUSTER_GROUP,a as Q_MAP_MARKER_CALLOUT_PLACEMENTS,b as Q_MAP_MARKER_CALLOUT_STAT_LAYOUTS,c as Q_MAP_MARKER_CALLOUT_VISIBILITIES,d as Q_MAP_MARKER_KINDS,e as Q_MAP_MARKER_RINGS,f as Q_MAP_MARKER_SIZES,g as Q_MAP_MARKER_VARIANTS,h as Q_MAP_RASTER_TILE_LOADING_POLICIES}from"./p-CoIMrUb3.js";export{g as getDataTableCellSlotName,a as getDataTableCellValue,b as getDataTableItemKey,c as getDataTableRowGutterSlotName}from"./p-SzKf4WZF.js";export{c as configureQIcons,r as registerQIcons}from"./p-GHhpSfZU.js";export{t as toast}from"./p-BIIQL66b.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as r,p as s,H as e,h as a}from"./p-ye27qtRo.js";import{c as i}from"./p-ByfrUWx1.js";const o=2*Math.PI*52,t=new Set(["sm","md","lg"]),l=s(class extends e{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow()}value=0;label;indeterminate=!1;ariaValueText=null;variant="linear";size="md";tone="primary";ariaLabel=null;render(){const r=Number.isFinite(this.value)?this.value:0,s=Math.min(Math.max(r,0),100);return"circular"==("circular"===this.variant?"circular":"linear")?this.renderCircular(s):this.renderLinear(s)}renderLinear(r){return a("div",{class:"progress-linear",style:this.customSizeStyle(),...this.progressAttributes(r,this.ariaValueText?.trim()||`${r}%`),part:"container track"},a("span",{class:{"progress-linear__fill":!0,"is-indeterminate":this.indeterminate},style:this.indeterminate?void 0:{width:`${r}%`},part:"fill"}))}renderCircular(r){const s=void 0!==this.label?this.label:`${r}%`,e=i(s,"var(--q-progress-font-size, var(--_q-progress-font-size))",5),t=this.indeterminate?.75*o:o-r/100*o;return a("div",{class:"progress-circular",style:this.customSizeStyle(),...this.progressAttributes(r,this.ariaValueText?.trim()||s),part:"container"},a("svg",{class:"progress-circular__svg",viewBox:"0 0 120 120"},a("g",{class:"progress-circular__rings"},a("circle",{class:"progress-circular__track",cx:60,cy:60,r:52,part:"track"}),a("circle",{class:"progress-circular__fill",cx:60,cy:60,r:52,"stroke-dasharray":o,"stroke-dashoffset":t,part:"fill"})),!this.indeterminate&&a("text",{class:"progress-circular__label",x:"50%",y:"50%",style:e,part:"label"},s)))}progressAttributes(r,s){return{role:"progressbar","aria-label":this.ariaLabel?.trim()||"Progress","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":this.indeterminate?void 0:r,"aria-valuetext":this.indeterminate?void 0:s}}customSizeStyle(){if("string"==typeof this.size&&t.has(this.size))return;const r="number"==typeof this.size?this.size:Number(this.size);return Number.isFinite(r)?{"--_q-progress-custom-size":`${Math.max(0,r)}px`}:void 0}static get style(){return":host{display:block;width:100%;min-width:0;box-sizing:border-box;--_q-progress-linear-height:var(--q-progress-linear-height-md, 6px);--_q-progress-circular-size:var(--q-progress-circular-size-md, 120px);--_q-progress-stroke-width:var( --q-progress-circular-stroke-width-md, 8px );--_q-progress-font-size:var( --q-progress-circular-font-size-md, var(--q-font-size-lg, 1rem) );--_q-progress-track-color:var(--q-bg-surface-3, #22304d);--_q-progress-tone-color:var(--q-color-primary, #60a5fa)}:host([hidden]){display:none}:host([variant='circular']){display:inline-block;width:auto;--_q-progress-track-color:var(--q-border-color, #374151)}:host([size='sm']){--_q-progress-linear-height:var(--q-progress-linear-height-sm, 4px);--_q-progress-circular-size:var(--q-progress-circular-size-sm, 64px);--_q-progress-stroke-width:var( --q-progress-circular-stroke-width-sm, 6px );--_q-progress-font-size:var( --q-progress-circular-font-size-sm, var(--q-font-size-sm, 0.7rem) )}:host([size='lg']){--_q-progress-linear-height:var(--q-progress-linear-height-lg, 8px);--_q-progress-circular-size:var(--q-progress-circular-size-lg, 180px);--_q-progress-stroke-width:var( --q-progress-circular-stroke-width-lg, 10px );--_q-progress-font-size:var( --q-progress-circular-font-size-lg, calc(var(--q-font-size-lg, 1rem) * 1.5) )}:host([tone='neutral']){--_q-progress-tone-color:var(--q-fg-muted, #9ca3af)}:host([tone='primary']){--_q-progress-tone-color:var(--q-color-primary, #60a5fa)}:host([tone='success']){--_q-progress-tone-color:var(--q-color-success, #34d399)}:host([tone='warning']){--_q-progress-tone-color:var(--q-color-warning, #fbbf24)}:host([tone='danger']){--_q-progress-tone-color:var(--q-color-danger, #f87171)}.progress-linear{position:relative;width:100%;height:var( --q-progress-linear-height, var( --q-progress-bar-height, var(--_q-progress-custom-size, var(--_q-progress-linear-height)) ) );overflow:hidden;border-radius:var( --q-progress-linear-radius, var(--q-progress-bar-radius, 999px) );background:var( --q-progress-track-color, var(--q-progress-bar-track-color, var(--_q-progress-track-color)) )}.progress-linear__fill{display:block;height:100%;border-radius:inherit;background:var( --q-progress-fill-color, var(--q-progress-bar-fill-color, var(--_q-progress-tone-color)) );transition:width var( --q-progress-transition, var(--q-progress-bar-transition, var(--q-transition-normal, 250ms ease)) )}.progress-linear__fill.is-indeterminate{width:42%;animation:q-progress-linear-indeterminate var( --q-progress-indeterminate-duration, var(--q-progress-bar-indeterminate-duration, 1.4s) ) ease-in-out infinite}.progress-circular{width:var( --q-progress-circular-size, var( --q-progress-size, var(--_q-progress-custom-size, var(--_q-progress-circular-size)) ) );height:var( --q-progress-circular-size, var( --q-progress-size, var(--_q-progress-custom-size, var(--_q-progress-circular-size)) ) )}.progress-circular__svg{display:block;width:100%;height:100%}.progress-circular__rings{transform:rotate(-90deg);transform-origin:center}.progress-circular__track,.progress-circular__fill{fill:none;stroke-width:var( --q-progress-circular-stroke-width, var(--q-progress-stroke-width, var(--_q-progress-stroke-width)) )}.progress-circular__track{stroke:var(--q-progress-track-color, var(--_q-progress-track-color))}.progress-circular__fill{stroke:var( --q-progress-fill-color, var(--_q-progress-tone-color) );stroke-linecap:var(--q-progress-circular-linecap, round);transition:stroke-dashoffset var(--q-progress-transition, var(--q-transition-normal, 250ms ease))}.progress-circular__label{fill:var(--q-fg-base, #f9fafb);font-family:var(--q-font-family, inherit);font-size:var( --q-progress-circular-font-size, var(--q-progress-font-size, var(--_q-progress-font-size)) );font-weight:var( --q-progress-circular-font-weight, var(--q-progress-font-weight, var(--q-font-weight-bold, 600)) );text-anchor:middle;dominant-baseline:central}:host([variant='circular'][indeterminate]) .progress-circular__rings{animation:q-progress-circular-indeterminate var(--q-progress-indeterminate-duration, 1.4s) linear infinite}@keyframes q-progress-linear-indeterminate{0%{transform:translateX(-110%)}100%{transform:translateX(255%)}}@keyframes q-progress-circular-indeterminate{0%{transform:rotate(-90deg)}100%{transform:rotate(270deg)}}@media (prefers-reduced-motion: reduce){.progress-linear__fill,.progress-circular__fill{transition:none}.progress-linear__fill.is-indeterminate,:host([variant='circular'][indeterminate]) .progress-circular__rings{animation-duration:2.8s}}"}},[513,"q-progress",{value:[2],label:[1],indeterminate:[516],ariaValueText:[1,"aria-valuetext"],variant:[513],size:[520],tone:[513],ariaLabel:[1,"aria-label"]}]);function n(){"undefined"!=typeof customElements&&["q-progress"].forEach((s=>{"q-progress"===s&&(customElements.get(r(s))||customElements.define(r(s),l))}))}n();export{l as Q,n as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a={none:0,xs:4,sm:8,md:12,lg:16,xl:24,"2xl":32,"3xl":48},e={sm:{height:28,font:12,line:16,padding:8,icon:14,radius:5.5},md:{height:36,font:14,line:20,padding:12,icon:16,radius:7},lg:{height:44,font:16,line:24,padding:16,icon:20,radius:8.5}},r=a=>a/16+"rem",o=[...Object.entries(a).map((([a,e])=>({name:`--q-space-${a}`,value:r(e),label:`Space ${a}`}))),...Object.entries(e).flatMap((([a,e])=>Object.entries(e).map((([e,o])=>({name:`--q-control-${e}-${a}`,value:r(o),label:`${a} control ${e}`})))))];function n(e){return`var(--q-space-${e}, ${r(a[e]??a.lg)})`}function t(a){return{...Object.fromEntries(Object.keys(e).map((e=>[`--_q-context-size-${e}`,"inherit"===a?"":a===e?"1":"0"]))),...Object.fromEntries(Object.keys(e.md).map((e=>[`--q-context-control-${e}`,"inherit"===a?"":"initial"])))}}function l(a){return"transparent"===a?"transparent":`var(--q-bg-${a}, ${{canvas:"var(--q-bg-base, #0b0f19)",panel:"var(--q-bg-surface-1, #111827)",card:"var(--q-bg-surface-2, #19243b)",field:"var(--q-bg-surface-3, #22304d)",floating:"var(--q-bg-surface-4, #2c3a58)",transparent:"transparent"}[a]})`}const m=[{category:"Colors",tokens:[{name:"--q-color-primary",value:"#60a5fa",light:"#3b82f6",dark:"#60a5fa"},{name:"--q-color-primary-hover",value:"#93c5fd",light:"#2563eb",dark:"#93c5fd"},{name:"--q-color-secondary",value:"#9777ea",light:"#7c3aed",dark:"#9777ea"},{name:"--q-color-success",value:"#34d399",light:"#10b981",dark:"#34d399"},{name:"--q-color-warning",value:"#fbbf24",light:"#f59e0b",dark:"#fbbf24"},{name:"--q-color-danger",value:"#f87171",light:"#ef4444",dark:"#f87171"}]},{category:"Hierarchical Surfaces & Backgrounds",tokens:[{name:"--q-bg-base",value:"#0b0f19",light:"#ffffff",dark:"#0b0f19"},{name:"--q-bg-surface-1",value:"#111827",light:"#f0f3f9",dark:"#111827"},{name:"--q-bg-surface-2",value:"#19243b",light:"#dee5f2",dark:"#19243b"},{name:"--q-bg-surface-3",value:"#22304d",light:"#c7d1e6",dark:"#22304d"},{name:"--q-bg-surface-4",value:"#2c3a58",light:"#aab8d5",dark:"#2c3a58"},{name:"--q-bg-surface-5",value:"#374761",light:"#8b9dc1",dark:"#374761"},{name:"--q-bg-glass",value:"rgba(25, 36, 59, 0.85)",light:"rgba(255, 255, 255, 0.85)",dark:"rgba(25, 36, 59, 0.85)"},{name:"--q-bg-overlay",value:"rgba(0, 0, 0, 0.85)",light:"rgba(0, 0, 0, 0.6)",dark:"rgba(0, 0, 0, 0.85)"},{name:"--q-fg-base",value:"#f9fafb",light:"#1f2937",dark:"#f9fafb"},{name:"--q-fg-muted",value:"#9ca3af",light:"#4b5563",dark:"#9ca3af"},{name:"--q-border-color",value:"#374151",light:"#e5e7eb",dark:"#374151"}]},{category:"Shadows & OSR-safe glass surfaces",tokens:[{name:"--q-dialog-backdrop-bg",value:"var(--q-bg-overlay, rgba(0, 0, 0, 0.85))"},{name:"--q-dialog-backdrop-solid-bg",value:"var(--q-bg-overlay, rgba(0, 0, 0, 0.85))"},{name:"--q-shadow-low",value:"0 2px 4px rgba(0, 0, 0, 0.2)",light:"0 2px 4px rgba(0, 0, 0, 0.05)",dark:"0 2px 4px rgba(0, 0, 0, 0.2)"},{name:"--q-shadow-medium",value:"0 8px 16px rgba(0, 0, 0, 0.3)",light:"0 8px 16px rgba(0, 0, 0, 0.08)",dark:"0 8px 16px rgba(0, 0, 0, 0.3)"},{name:"--q-shadow-high",value:"0 16px 32px rgba(0, 0, 0, 0.45)",light:"0 16px 32px rgba(0, 0, 0, 0.12)",dark:"0 16px 32px rgba(0, 0, 0, 0.45)"},{name:"--q-glow-interactive",value:"0 0 20px rgba(96, 165, 250, 0.3)",light:"0 0 20px rgba(59, 130, 246, 0.3)",dark:"0 0 20px rgba(96, 165, 250, 0.3)"}]},{category:"Borders & Outlines",tokens:[{name:"--q-border-width",value:"1px"},{name:"--q-border",value:"var(--q-border-width) solid var(--q-border-color)"},{name:"--q-focus-ring",value:"2px solid var(--q-color-primary)"}]},{category:"Typography",tokens:[{name:"--q-font-family",value:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"},{name:"--q-font-size-sm",value:"0.7rem"},{name:"--q-font-size-base",value:"0.9rem"},{name:"--q-font-size-lg",value:"1rem"},{name:"--q-font-weight-normal",value:"400"},{name:"--q-font-weight-bold",value:"600"}]},{category:"Spacing & Radii",tokens:[{name:"--q-radius-sm",value:"4px"},{name:"--q-radius-md",value:"7px"},{name:"--q-radius-lg",value:"11px"},{name:"--q-padding-sm",value:"var(--q-space-sm, .5rem)"},{name:"--q-padding-md",value:"var(--q-space-md, .75rem)"},{name:"--q-padding-lg",value:"var(--q-space-lg, 1rem)"}]},{category:"Transitions",tokens:[{name:"--q-transition-fast",value:"150ms ease"},{name:"--q-transition-normal",value:"250ms cubic-bezier(0.4, 0, 0.2, 1)"},{name:"--q-transition-slow",value:"400ms cubic-bezier(0.4, 0, 0.2, 1)"}]},{category:"Z-index",tokens:[{name:"--q-z-index-overlay",value:"1000"},{name:"--q-z-index-popover",value:"1100"},{name:"--q-z-index-toast",value:"1200"}]},{category:"Global Animation Base",tokens:[{name:"--q-hover-transform",value:"translateY(-4px) scale(1.02)"}]},{category:"Theme-aware hover overlays (automatically flips in light mode)",tokens:[{name:"--q-btn-hover-overlay",value:"color-mix(in srgb, var(--q-fg-base) 8%, transparent)"}]},{category:"Card (q-card)",tokens:[{name:"--q-card-border",value:"var(--q-border)"},{name:"--q-card-hover-transform",value:"var(--q-hover-transform)"},{name:"--q-card-transition-duration",value:"var(--q-transition-normal)"}]},{category:"Step Diagram (q-step-diagram / q-step-diagram-item)",tokens:[{name:"--q-step-diag-line",value:"2px solid var(--q-border-color)"},{name:"--q-step-diag-border",value:"var(--q-border)"},{name:"--q-step-diag-icon-size",value:"32px"},{name:"--q-step-diag-item-gap",value:"24px"}]},{category:"Media Reel & Thumbnail (q-reel / q-thumbnail)",tokens:[{name:"--q-thumb-aspect-ratio",value:"16 / 9"},{name:"--q-thumb-border",value:"2px solid var(--q-thumb-border-color)"},{name:"--q-thumb-hover-transform",value:"var(--q-hover-transform)"},{name:"--q-thumb-overlay-bg",value:"rgba(0, 0, 0, 0.4)"},{name:"--q-thumb-radius",value:"var(--q-radius-md)"},{name:"--q-thumb-border-color",value:"transparent"},{name:"--q-thumb-glow",value:"var(--q-glow-interactive)"},{name:"--q-reel-gap",value:"12px"},{name:"--q-reel-columns-desktop",value:"repeat(auto-fill, minmax(200px, 1fr))"},{name:"--q-reel-columns-mobile",value:"1fr"},{name:"--q-lightbox-max-size",value:"90vh"},{name:"--q-reel-lightbox-btn-bg",value:"rgba(0, 0, 0, 0.5)"},{name:"--q-reel-lightbox-btn-border",value:"1px solid rgba(255, 255, 255, 0.2)"},{name:"--q-reel-lightbox-btn-color",value:"#ffffff"},{name:"--q-reel-lightbox-btn-hover-bg",value:"rgba(255, 255, 255, 0.2)"}]},{category:"Avatar (q-avatar)",tokens:[{name:"--q-avatar-size-sm",value:"28px"},{name:"--q-avatar-size-md",value:"40px"},{name:"--q-avatar-size-lg",value:"56px"},{name:"--q-avatar-bg",value:"var(--q-bg-surface-3)"},{name:"--q-avatar-fg",value:"var(--q-fg-base)"},{name:"--q-avatar-border",value:"var(--q-border)"}]},{category:"Conversation bubble (q-conversation-bubble)",tokens:[{name:"--q-conversation-incoming-bg",value:"var(--q-bg-surface-2)"},{name:"--q-conversation-outgoing-bg",value:"var(--q-color-primary)"},{name:"--q-conversation-outgoing-fg",value:"#ffffff"},{name:"--q-conversation-system-bg",value:"transparent"},{name:"--q-conversation-system-fg",value:"var(--q-fg-muted)"}]},{category:"Carousel (q-carousel)",tokens:[{name:"--q-carousel-gap",value:"16px"},{name:"--q-carousel-padding",value:"24px 20px"},{name:"--q-carousel-arrow-bg",value:"var(--q-bg-overlay)"},{name:"--q-carousel-arrow-border",value:"var(--q-border)"},{name:"--q-carousel-arrow-color",value:"#ffffff"},{name:"--q-carousel-arrow-size",value:"40px"},{name:"--q-carousel-indicator-gap",value:"8px"},{name:"--q-carousel-indicator-size",value:"6px"}]},{category:"Progress (q-progress)",tokens:[{name:"--q-progress-transition",value:"var(--q-transition-normal)"},{name:"--q-progress-indeterminate-duration",value:"1.4s"},{name:"--q-progress-linear-height-sm",value:"4px"},{name:"--q-progress-linear-height-md",value:"6px"},{name:"--q-progress-linear-height-lg",value:"8px"},{name:"--q-progress-linear-radius",value:"999px"},{name:"--q-progress-circular-size-sm",value:"64px"},{name:"--q-progress-circular-size-md",value:"120px"},{name:"--q-progress-circular-size-lg",value:"180px"},{name:"--q-progress-circular-stroke-width-sm",value:"6px"},{name:"--q-progress-circular-stroke-width-md",value:"8px"},{name:"--q-progress-circular-stroke-width-lg",value:"10px"},{name:"--q-progress-circular-linecap",value:"round"},{name:"--q-progress-circular-font-weight",value:"var(--q-font-weight-bold)"}]},{category:"Button (q-button)",tokens:[{name:"--q-btn-font-weight",value:"var(--q-font-weight-bold)"},{name:"--q-btn-active-transform",value:"scale(0.97)"},{name:"--q-btn-transition",value:"all 150ms cubic-bezier(0.4, 0, 0.2, 1)"},{name:"--q-btn-icon-padding-sm",value:"4px"},{name:"--q-btn-icon-padding-md",value:"6px"},{name:"--q-btn-icon-padding-lg",value:"9px"}]},{category:"Chip (q-chip)",tokens:[{name:"--q-chip-radius",value:"999px"},{name:"--q-chip-border",value:"var(--q-border)"},{name:"--q-chip-font-weight",value:"var(--q-font-weight-bold)"},{name:"--q-chip-padding-sm",value:"4px 9px"},{name:"--q-chip-padding-md",value:"6px 11px"},{name:"--q-chip-padding-lg",value:"8px 14px"},{name:"--q-chip-height-sm",value:"24px"},{name:"--q-chip-height-md",value:"30px"},{name:"--q-chip-height-lg",value:"36px"},{name:"--q-chip-active-transform",value:"scale(0.97)"}]},{category:"Unified Form Field Variables (Borders & Radius Consistency)",tokens:[{name:"--q-field-border",value:"var(--q-border)"},{name:"--q-field-border-color-focus",value:"var(--q-color-primary)"}]},{category:"Input & Textarea (q-input / q-textarea) mapped to unified field tokens",tokens:[{name:"--q-input-border",value:"var(--q-field-border)"}]},{category:"Dropdown (q-dropdown) mapped to unified field tokens",tokens:[{name:"--q-dropdown-border",value:"var(--q-field-border)"}]},{category:"Panel (q-panel)",tokens:[{name:"--q-panel-border",value:"var(--q-border)"}]},{category:"Sidepanel (q-sidepanel)",tokens:[{name:"--q-sidepanel-bg",value:"var(--q-bg-surface-1)",light:"var(--q-bg-surface-1)",dark:"var(--q-bg-surface-1)"},{name:"--q-sidepanel-border",value:"var(--q-border)"},{name:"--q-sidepanel-shadow",value:"var(--q-shadow-high)"},{name:"--q-sidepanel-panel-width",value:"320px"},{name:"--q-sidepanel-panel-padding",value:"var(--q-padding-lg)"},{name:"--q-sidepanel-panel-header-padding",value:"var(--q-padding-lg)"},{name:"--q-sidepanel-panel-footer-padding",value:"var(--q-padding-lg)"},{name:"--q-sidepanel-panel-section-border",value:"var(--q-border)"}]},{category:"Map (q-map)",tokens:[{name:"--q-map-height",value:"100%"},{name:"--q-map-min-height",value:"240px"},{name:"--q-map-bg",value:"var(--q-bg-surface-1)"},{name:"--q-map-border",value:"var(--q-border)"},{name:"--q-map-radius",value:"var(--q-radius-lg)"},{name:"--q-map-marker-size",value:"20px"},{name:"--q-map-marker-size-small",value:"16px"},{name:"--q-map-marker-size-medium",value:"var(--q-map-marker-size)"},{name:"--q-map-marker-size-large",value:"24px"},{name:"--q-map-marker-color",value:"var(--q-color-primary)"},{name:"--q-map-marker-success",value:"var(--q-color-success)"},{name:"--q-map-marker-warning",value:"var(--q-color-warning)"},{name:"--q-map-marker-danger",value:"var(--q-color-danger)"},{name:"--q-map-marker-muted",value:"var(--q-fg-muted)"},{name:"--q-map-marker-selected-color",value:"var(--q-fg-base)"},{name:"--q-map-marker-selected-shadow",value:"var(--q-shadow-medium)"},{name:"--q-map-attribution-bg",value:"var(--q-bg-base)"},{name:"--q-map-attribution-color",value:"var(--q-fg-muted)"}]},{category:"Scrollbars",tokens:[{name:"--q-scrollbar-width",value:"6px"},{name:"--q-scrollbar-width-thin",value:"thin"},{name:"--q-scrollbar-track-color",value:"transparent"},{name:"--q-scrollbar-thumb-color",value:"var(--q-border-color, #374151)"},{name:"--q-scrollbar-thumb-color-hover",value:"var(--q-color-primary, #60a5fa)"},{name:"--q-scrollbar-radius",value:"var(--q-radius-sm, 4px)"}]}],p={"--q-text-body-size":{compact:"var(--q-font-size-base)",comfortable:"var(--q-font-size-base)"},"--q-text-body-line-height":{compact:"1.5",comfortable:"1.6"},"--q-text-small-size":{compact:"var(--q-font-size-sm)",comfortable:"var(--q-font-size-sm)"},"--q-text-small-line-height":{compact:"1.5",comfortable:"1.5"},"--q-heading-display-size":{compact:"var(--q-font-size-lg)",comfortable:"clamp(2.5rem, 1.75rem + 3vw, 4rem)"},"--q-heading-display-line-height":{compact:"1.3",comfortable:"1.1"},"--q-heading-1-size":{compact:"var(--q-font-size-lg)",comfortable:"clamp(27px, 1.5rem + 2vw, 36px)"},"--q-heading-2-size":{compact:"var(--q-font-size-lg)",comfortable:"clamp(1.4rem, 1.1rem + 1.2vw, 2rem)"},"--q-heading-3-size":{compact:"var(--q-font-size-lg)",comfortable:"clamp(1.265625rem, 1.0546875rem + 0.84375vw, 1.6875rem)"},"--q-heading-4-size":{compact:"var(--q-font-size-lg)",comfortable:"1.25rem"},"--q-heading-5-size":{compact:"var(--q-font-size-lg)",comfortable:"1.25rem"},"--q-heading-6-size":{compact:"var(--q-font-size-lg)",comfortable:"1.125rem"},...Object.fromEntries([1,2,3,4,5,6].map((a=>[`--q-heading-${a}-line-height`,{compact:"1.3",comfortable:a<=2?"1.2":"1.3"}]))),"--q-content-paragraph-gap":{compact:"var(--q-padding-lg)",comfortable:"1.5rem"},"--q-content-heading-gap":{compact:"var(--q-padding-lg)",comfortable:"1.5rem"},"--q-content-section-gap":{compact:"var(--q-space-2xl)",comfortable:"clamp(3rem, 2rem + 4vw, 6rem)"},"--q-content-padding":{compact:"var(--q-padding-lg)",comfortable:"clamp(1.5rem, 1rem + 2vw, 3rem)"},"--q-field-text-size":{compact:".75rem",comfortable:".875rem"},"--q-field-text-line":{compact:"1rem",comfortable:"1.25rem"}};Object.entries({"--q-space-none":"0rem","--q-space-xs":"0.375rem","--q-space-sm":"0.75rem","--q-space-md":"1rem","--q-space-lg":"1.5rem","--q-space-xl":"2rem","--q-space-2xl":"3rem","--q-space-3xl":"4rem","--q-control-height-sm":"2.25rem","--q-control-font-sm":"0.875rem","--q-control-line-sm":"1.25rem","--q-control-padding-sm":"0.75rem","--q-control-icon-sm":"1rem","--q-control-height-md":"2.75rem","--q-control-font-md":"1rem","--q-control-line-md":"1.5rem","--q-control-padding-md":"1rem","--q-control-icon-md":"1.25rem","--q-control-height-lg":"3.25rem","--q-control-font-lg":"1.125rem","--q-control-line-lg":"1.75rem","--q-control-padding-lg":"1.25rem","--q-control-icon-lg":"1.5rem","--q-font-size-sm":"0.875rem","--q-font-size-base":"1.125rem","--q-font-size-lg":"1.5rem","--q-padding-sm":"var(--q-space-sm, .75rem)","--q-padding-md":"var(--q-space-md, 1rem)","--q-padding-lg":"var(--q-space-lg, 1.5rem)","--q-step-diag-icon-size":"40px","--q-step-diag-item-gap":"32px","--q-reel-gap":"24px","--q-avatar-size-sm":"32px","--q-avatar-size-md":"48px","--q-avatar-size-lg":"64px","--q-carousel-gap":"24px","--q-carousel-padding":"32px 24px","--q-carousel-arrow-size":"44px","--q-carousel-indicator-gap":"12px","--q-carousel-indicator-size":"8px","--q-progress-linear-height-sm":"6px","--q-progress-linear-height-md":"8px","--q-progress-linear-height-lg":"10px","--q-progress-circular-size-sm":"80px","--q-progress-circular-size-md":"144px","--q-progress-circular-size-lg":"200px","--q-progress-circular-stroke-width-sm":"8px","--q-progress-circular-stroke-width-md":"10px","--q-progress-circular-stroke-width-lg":"12px","--q-btn-icon-padding-sm":"6px","--q-btn-icon-padding-md":"8px","--q-btn-icon-padding-lg":"12px","--q-chip-padding-sm":"6px 12px","--q-chip-padding-md":"8px 16px","--q-chip-padding-lg":"10px 20px","--q-chip-height-sm":"32px","--q-chip-height-md":"40px","--q-chip-height-lg":"48px","--q-sidepanel-panel-padding":"var(--q-padding-lg)","--q-sidepanel-panel-header-padding":"var(--q-padding-lg)","--q-sidepanel-panel-footer-padding":"var(--q-padding-lg)","--q-map-marker-size":"24px","--q-map-marker-size-small":"20px","--q-map-marker-size-medium":"var(--q-map-marker-size)","--q-map-marker-size-large":"28px"}).map((([a,e])=>{const r=[...o,...m.flatMap((a=>a.tokens))].find((e=>e.name===a));if(!r)throw new Error(`Preset token has no compact default: ${a}`);return{name:a,compact:r.value,comfortable:e}})).concat(Object.entries({...p,"--q-toolbar-height":{compact:"0px",comfortable:"72px"},"--q-toolbar-compact-height":{compact:"0px",comfortable:"60px"},"--q-font-size-xs":{compact:"0.7rem",comfortable:"0.8125rem"},"--q-font-size-2xs":{compact:"0.625rem",comfortable:"0.75rem"},"--q-btn-circle-size":{compact:"120px",comfortable:"144px"},"--q-btn-circle-padding":{compact:"12px",comfortable:"16px"},"--q-table-toolbar-padding-block":{compact:"12px",comfortable:"16px"},"--q-table-toolbar-padding-inline":{compact:"16px",comfortable:"24px"},"--q-bar-edge-padding":{compact:"24px",comfortable:"32px"},"--q-bar-edge-compact-padding":{compact:"16px",comfortable:"24px"},"--q-table-cell-padding-block":{compact:"4.5px",comfortable:"10px"},"--q-table-cell-padding-inline":{compact:"8px",comfortable:"14px"},"--q-dropdown-option-padding":{compact:"10px 14px",comfortable:"12px 18px"},"--q-tooltip-padding":{compact:"6px 10px",comfortable:"8px 14px"},"--q-syntax-padding":{compact:"16px",comfortable:"24px"},"--q-syntax-compact-padding":{compact:"10px",comfortable:"16px"},"--q-syntax-header-padding":{compact:"4px 16px",comfortable:"8px 24px"},"--q-sidepanel-nav-font":{compact:"0.875rem",comfortable:"1rem"},"--q-sidepanel-nav-small-font":{compact:"0.75rem",comfortable:"0.875rem"},"--q-sidepanel-nav-badge-font":{compact:"0.65rem",comfortable:"0.75rem"},"--q-navbar-item-height":{compact:"36px",comfortable:"44px"},"--q-navbar-gap":{compact:"20px",comfortable:"28px"},"--q-navbar-height":{compact:"64px",comfortable:"72px"},"--q-navbar-compact-height":{compact:"52px",comfortable:"60px"},"--q-navbar-logo-size":{compact:"32px",comfortable:"40px"},"--q-navbar-brand-size":{compact:"1rem",comfortable:"1.25rem"},"--q-navbar-nav-gap":{compact:"6px",comfortable:"10px"},"--q-navbar-action-gap":{compact:"8px",comfortable:"12px"},"--q-navbar-item-gap":{compact:"8px",comfortable:"12px"},"--q-navbar-item-padding":{compact:"7px 10px",comfortable:"10px 14px"},"--q-navbar-item-size":{compact:"0.9rem",comfortable:"1rem"},"--q-navbar-item-icon-only-size":{compact:"40px",comfortable:"44px"},"--q-navbar-item-icon-only-padding":{compact:"8px",comfortable:"10px"},"--q-navbar-mobile-panel-padding":{compact:"8px 16px 16px",comfortable:"12px 24px 24px"},"--q-avatar-font-size":{compact:"0.8rem",comfortable:"1rem"},"--q-avatar-font-size-sm":{compact:"0.65rem",comfortable:"0.75rem"},"--q-avatar-font-size-lg":{compact:"1rem",comfortable:"1.25rem"},"--q-conversation-gap":{compact:"10px",comfortable:"16px"},"--q-conversation-header-gap":{compact:"4px",comfortable:"6px"},"--q-conversation-header-inset":{compact:"4px",comfortable:"6px"},"--q-conversation-padding":{compact:"11px 13px",comfortable:"16px 20px"},"--q-conversation-footer-gap":{compact:"10px",comfortable:"16px"},"--q-conversation-footer-margin":{compact:"6px",comfortable:"10px"},"--q-conversation-meta-gap":{compact:"6px",comfortable:"10px"},"--q-conversation-compact-padding":{compact:"7px 10px",comfortable:"10px 14px"},"--q-alert-padding":{compact:"12px 14px",comfortable:"16px 20px"},"--q-alert-gap":{compact:"10px",comfortable:"16px"},"--q-alert-actions-gap":{compact:"8px",comfortable:"12px"},"--q-pagination-button-height":{compact:"30px",comfortable:"44px"},"--q-pagination-button-padding":{compact:"5px 8px",comfortable:"8px 12px"}}).map((([a,e])=>({name:a,...e}))));export{l as a,t as c,n as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as a,p as e,H as t,c as i,h as r}from"./p-ye27qtRo.js";const s=e(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.qDismiss=i(this,"qDismiss")}get el(){return this}heading;variant="info";dismissible=!1;dismissLabel="Dismiss alert";announcement="off";qDismiss;hasIcon=!1;hasActions=!1;componentWillLoad(){this.hasIcon=null!==this.el.querySelector('[slot="icon"]'),this.hasActions=null!==this.el.querySelector('[slot="actions"]')}handleSlotChange=a=>{const e=a.target;"icon"===e.name?this.hasIcon=e.assignedNodes({flatten:!0}).length>0:"actions"===e.name&&(this.hasActions=e.assignedNodes({flatten:!0}).length>0)};render(){const a="assertive"===this.announcement?{role:"alert",ariaLive:"assertive"}:"polite"===this.announcement?{role:"status",ariaLive:"polite"}:{role:void 0,ariaLive:void 0};return r("div",{key:"d1cc6ab33b533de24bdd6f4dbb98cff2bf85d107",class:{alert:!0,[`variant-${this.variant}`]:!0},part:"container",role:a.role,"aria-live":a.ariaLive,"aria-atomic":"off"===this.announcement?void 0:"true"},r("span",{key:"e5a437890608457c1e15a3821846b39b8f0e7ce7",class:{icon:!0,"has-content":this.hasIcon},part:"icon","aria-hidden":"true"},r("slot",{key:"a6b7dc0b189f239e734399f971ad818b0228b2ef",name:"icon",onSlotchange:this.handleSlotChange})),r("div",{key:"1cb380d62fc3356ccfa86e4ca333dc5d824e7e71",class:"content",part:"content"},this.heading&&r("div",{key:"5e239f840b484afe88ef5805b1a8919d7af2be76",class:"heading",part:"heading"},this.heading),r("div",{key:"063fe5b15f7dc4b1d22780b6c978b7c8246be529",class:"message",part:"message"},r("slot",{key:"3e921f605cea18e78a4a8f9332d98af36515bb0c"}))),r("div",{key:"0d6ef9fbbbd572b6e4082229dd7632ccd6013c3c",class:{actions:!0,"has-content":this.hasActions},part:"actions"},r("slot",{key:"9ade3fbb81b8fe2638fec6bc00b7728f5e5f8370",name:"actions",onSlotchange:this.handleSlotChange})),this.dismissible&&r("button",{key:"b7a3bed1bd3eb4f69f565090c9aa7874c1ace221",class:"dismiss-button",part:"dismiss-button",type:"button","aria-label":this.dismissLabel.trim()||"Dismiss alert",onClick:()=>this.qDismiss.emit()},r("span",{key:"859f84931af9b266d5ddda36a3046b65305ea198","aria-hidden":"true"},"×")))}static get style(){return":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%}}"}},[769,"q-alert",{heading:[1],variant:[513],dismissible:[4],dismissLabel:[1,"dismiss-label"],announcement:[1],hasIcon:[32],hasActions:[32]}]);function n(){"undefined"!=typeof customElements&&["q-alert"].forEach((e=>{"q-alert"===e&&(customElements.get(a(e))||customElements.define(a(e),s))}))}n();export{s as Q,n as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t="__webquarkToastRuntimeV1__",e=()=>{const e=globalThis;return e[t]||Object.defineProperty(e,t,{value:{bufferedToasts:[],nextId:0},configurable:!1,enumerable:!1,writable:!1}),e[t]},r=()=>{if("undefined"==typeof document)throw new Error("WebQuark toast methods are client-only. Call them after the document is available.")},n=(t,n,o,s)=>{r();const a=(()=>{const t=e();return t.nextId+=1,`q-toast-${Date.now().toString(36)}-${t.nextId.toString(36)}`})(),i=((t,e,r,n={})=>{const o=e.trim(),s=r?.trim();if(!o)throw new TypeError("Toast title must not be empty.");if(void 0!==n.duration&&(!Number.isFinite(n.duration)||n.duration<0))throw new RangeError("Toast duration must be a finite number of milliseconds at least 0.");return{title:o,description:s||void 0,variant:t,duration:n.duration,dismissible:n.dismissible}})(t,n,o,s),u=e();if(u.activeHost)return u.activeHost.enqueue(i,a),a;if(u.bufferedToasts.length>=50)throw new RangeError("Cannot buffer more than 50 toasts before <q-toast> connects.");return u.bufferedToasts=[...u.bufferedToasts,{id:a,request:i}],a},o=t=>{const r=e();if(r.activeHost&&r.activeHost!==t)return console.error("WebQuark QToast: only one global <q-toast> host may be connected at a time."),!1;r.activeHost=t;const n=r.bufferedToasts;return r.bufferedToasts=[],n.forEach((({request:e,id:r})=>t.enqueue(e,r))),!0},s=t=>{const r=e();r.activeHost===t&&(r.activeHost=void 0)},a=Object.freeze({info:(t,e,r)=>n("info",t,e,r),success:(t,e,r)=>n("success",t,e,r),warning:(t,e,r)=>n("warning",t,e,r),danger:(t,e,r)=>n("danger",t,e,r),error:(t,e,r)=>n("danger",t,e,r),dismiss:t=>{r();const n=e();if(n.activeHost)return n.activeHost.dismiss(t);const o=n.bufferedToasts.length;return n.bufferedToasts=n.bufferedToasts.filter((e=>e.id!==t)),n.bufferedToasts.length!==o},clear:()=>{r();const t=e();if(t.activeHost)return t.activeHost.clear();const n=t.bufferedToasts.length;return t.bufferedToasts=[],n}});export{o as r,a as t,s as u}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function r(r,t,n){return(r||"")+(t?` ${t}`:"")+(n?` ${n}`:"")}function t(r,t,n){if(null==r)return t;if("string"==typeof r)try{return JSON.parse(r)}catch(r){return console.error((n?`${n}: `:"")+"Failed to parse JSON string",r),t}return r}export{r as f,t as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as t}from"./p-DstNl_WY.js";const n=new WeakMap;async function o(t){const o=n.get(t);o&&await Promise.all(o)}function e(t,n){if(n)return n;if(t.hasAttribute("form")){const n=t.getRootNode(),o=n.getElementById?.(t.getAttribute("form"));return"FORM"===o?.tagName?o:void 0}return t.closest("form")||(t.closest("q-form")??void 0)}function r(o,r,i,u){const s=e(o,u?.());let f;const c=new Promise((t=>{f=t}));if(s){const t=n.get(s)??new Set;t.add(c),n.set(s,t)}setTimeout((async()=>{try{const n=o;if(!o.isConnected||r.defaultPrevented||i?.defaultPrevented||n.href||n.loading||t(o,Boolean(n.disabled)))return;const s=e(o,u?.());if(!s)return;if("Q-FORM"===s.tagName)await s.resetForm();else{const t=s.ownerDocument.defaultView?.HTMLFormElement?.prototype;t?.reset.call(s)}}catch(t){console.error(t)}finally{s&&n.get(s)?.delete(c),f()}}),0)}const i=Symbol.for("webquark.form.submit-activation.v1"),u=Symbol.for("webquark.form.submit-owner.v1"),s=Symbol.for("webquark.form.submit-busy.v1"),f=new WeakSet;function c(t,n){n?t[s]=!0:delete t[s]}function a(t,n){t[u]=n}function m(t){const n="Q-BUTTON"===t.tagName?t[u]?.():t.form;return e(t,n)}function l(n,o=!1){const e=n;return!(!["BUTTON","INPUT","Q-BUTTON"].includes(n.tagName)||!["submit","image"].includes(e.type??"")||e.href)&&(o||!e.loading&&!t(n,Boolean(e.disabled)))}function b(t){const n=t[i];if(n)return n;const o=t.submitter,e=o&&o[i];if(e&&"click"in e){if(0===e.click.eventPhase&&!e.click.defaultPrevented)return delete o[i],e}else if(e)return e;return{submitter:o??null}}function T(t,n={submitter:null}){const o=new(0,t.ownerDocument.defaultView.Event)("submit",{bubbles:!0,cancelable:!0});o[i]=n,t.dispatchEvent(o)}function d(t,n,o){const e=m(t),r="Q-FORM"===e?.tagName?e.shadowRoot?.querySelector("form"):e;if(r&&r[s])return;const u=n.detail>0?[Math.max(0,Math.floor(n.offsetX)),Math.max(0,Math.floor(n.offsetY))]:[0,0],c={submitter:t,coordinates:u},a="INPUT"===t.tagName&&"image"===t.type&&t.form,b={...c,click:n};if(a)t[i]=b;else{if(f.has(t))return;f.add(t)}setTimeout((()=>{if(a||f.delete(t),a&&t[i]===b&&delete t[i],n.defaultPrevented||o?.defaultPrevented||!t.isConnected||!l(t))return;const e=m(t);if(!e)return;if("Q-BUTTON"!==t.tagName&&t.form)return;if(n.preventDefault(),"Q-FORM"===e.tagName){const t=e.shadowRoot?.querySelector("form");return void(t&&T(t,c))}const r=e,u=r.ownerDocument.createElement("button");u.type="submit",u.hidden=!0,function(t,n){for(const[o,e]of[["name","name"],["value","value"],["formAction","formaction"],["formMethod","formmethod"],["formEnctype","formenctype"],["formTarget","formtarget"]]){const r=y(t,o,e);void 0!==r&&n.setAttribute(e,r)}n.formNoValidate=v(t)}(t,u),u[i]=c,r.append(u);try{r.ownerDocument.defaultView.HTMLFormElement.prototype.requestSubmit.call(r,u)}finally{u.remove()}}))}function y(t,n,o){if("Q-BUTTON"===t.tagName){const o=t[n];if(null!=o)return String(o)}return t.hasAttribute(o)?t.getAttribute(o):void 0}function v(t){return"Q-BUTTON"===t?.tagName?Boolean(t.formNoValidate):Boolean(t&&(t.formNoValidate||t.hasAttribute("formnovalidate")))}function w(t,n){if(!t)return;const o=new Set;return n.querySelectorAll("button,input,q-button").forEach((t=>o.add(t))),t.getRootNode().querySelectorAll("button,input,q-button").forEach((n=>{m(n)===t&&o.add(n)})),Array.from(o).filter((o=>l(o,!0)&&[t,n].includes(m(o)))).sort(((t,n)=>{const o=t.compareDocumentPosition(n);return o&Node.DOCUMENT_POSITION_DISCONNECTED?0:o&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))[0]}function N(t){l(t)&&("Q-BUTTON"===t.tagName?t.shadowRoot?.querySelector("button")?.click():t.click())}export{r as a,N as b,y as c,w as d,o as e,T as f,b as g,c as h,l as i,m as j,v as k,a as r,d as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={x:0,y:0,width:100,height:100};function e(t){if(!t||"object"!=typeof t)return!1;const{x:e,y:i,width:r,height:o}=t;return[e,i,r,o].every((t=>"number"==typeof t&&Number.isFinite(t)))&&e>=0&&i>=0&&r>0&&o>0&&e+r<=100&&i+o<=100}function i(t){return e(t)&&(0!==t.x||0!==t.y||100!==t.width||100!==t.height)}function r(i,r,o,u){if(!Number.isFinite(i)||i<=0||!Number.isFinite(r)||r<=0||void 0!==o&&!e(o)||void 0!==u&&(!Number.isFinite(u)||u<=0))return;const n=o??t,h=i*n.width/100,b=r*n.height/100,c=u??h/b,f=Math.min(c/h,1/b),m=f*h/c*100,a=f*b*100,d={aspectRatio:c,viewport:{left:(100-m)/2,top:(100-a)/2,width:m,height:a},image:{left:-n.x/n.width*100,top:-n.y/n.height*100,width:100/n.width*100,height:100/n.height*100}};return Object.values(d.viewport).every(Number.isFinite)&&Object.values(d.image).every(Number.isFinite)&&Number.isFinite(c)&&c>0?d:void 0}export{r as c,i as h,e as i}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t({internals:t,control:o,disabled:e,customError:n}){if("function"!=typeof t.setValidity||!o.validity)return;if(e)return void t.setValidity({});const r=n?.trim();var s;r?t.setValidity({customError:!0},r,o):o.validity.valid?t.setValidity({}):t.setValidity({badInput:(s=o.validity).badInput,customError:s.customError,patternMismatch:s.patternMismatch,rangeOverflow:s.rangeOverflow,rangeUnderflow:s.rangeUnderflow,stepMismatch:s.stepMismatch,tooLong:s.tooLong,tooShort:s.tooShort,typeMismatch:s.typeMismatch,valueMissing:s.valueMissing},o.validationMessage||"Please enter a valid value.",o)}function o(t,o){"function"==typeof t.setValidity&&(o.disabled||!o.required||o.checked?t.setValidity({}):t.setValidity({valueMissing:!0},"Please select this option to continue.",o.anchor))}export{o as a,t as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./p-ye27qtRo.js";function r(e){return{"--_q-feedback-min":void 0===e?"var(--q-context-feedback-min, calc(var(--_q-context-feedback-reserve, 0) * var(--q-field-text-line, 1rem)))":e?"var(--q-field-text-line, 1rem)":"0px"}}function a(r,a,t){return e("span",{id:r,"aria-live":"polite",class:{"q-field-feedback":!0,"error-msg":!!a},part:a?"feedback error-msg":"feedback description"},a||t)}export{r as a,a as f}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t,n){if(!t)return[];const r=Array.from(t.querySelectorAll("slot"));if(0===r.length){const r=Array.from(t.children);if(n){const t=n.toLowerCase();return r.filter((n=>n.tagName.toLowerCase()===t))}return r}const e=[];if(r.forEach((t=>{const n=t.assignedElements({flatten:!0}).filter((t=>1===t.nodeType));e.push(...n)})),n){const t=n.toLowerCase();return e.filter((n=>n.tagName.toLowerCase()===t))}return e}function n(){let t=document.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function r(t){if(!t)return[];const n=[],r=t=>{if(1!==t.nodeType)return;const e=t,o="undefined"!=typeof window?window.getComputedStyle(e):null;if(o&&"none"===o.display)return;const i="-1"!==e.getAttribute("tabindex"),u="true"===e.getAttribute("aria-hidden");e.matches('button, [href], input, select, textarea, [tabindex="0"], q-button, q-input, q-textarea, q-dropdown, q-radio-group')&&!e.disabled&&i&&!u&&(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0)&&n.push(e),e.shadowRoot&&Array.from(e.shadowRoot.childNodes).forEach(r),"slot"===e.tagName.toLowerCase()?e.assignedElements({flatten:!0}).forEach(r):Array.from(e.childNodes).forEach((t=>r(t)))};return r(t),n}function e(t,e){if("Tab"!==t.key||!e)return;const o=r(e);if(0===o.length)return;const i=o[0],u=o[o.length-1],f=n();if(!o.includes(f))return t.shiftKey?u.focus():i.focus(),void t.preventDefault();t.shiftKey&&f===i?(u.focus(),t.preventDefault()):t.shiftKey||f!==u||(i.focus(),t.preventDefault())}function o(t,n,r,e){if(!t)return;const o=t.shadowRoot?.querySelector("slot"),i=o?o.assignedElements({flatten:!0}):Array.from(t.children),u=n.toLowerCase();let f=0;i.forEach((t=>{t.tagName.toLowerCase()===u&&(t[r]=e,f++)})),0===f&&Array.from(t.querySelectorAll(n)).forEach((t=>{t[r]=e}))}function i(t,n,r=5){return!t||t.length<=r?{fontSize:n}:{fontSize:`calc(${n} * ${Math.max(.4,r/t.length).toFixed(3)})`}}function u(t,n,r){if(!t)return n(),()=>{};let e,o=!1;const i=()=>{void 0!==e&&(clearTimeout(e),e=void 0),t.removeEventListener("transitionend",u)},u=()=>{o||(o=!0,i(),n())};let f=r;if(void 0===f&&"undefined"!=typeof window){const n=window.getComputedStyle(t).transitionDuration||"",r=parseFloat(n)*(n.includes("ms")?1:1e3);f=isNaN(r)||0===r?350:r+50}else void 0===f&&(f=350);return t.addEventListener("transitionend",u),e=setTimeout(u,f),i}function f(t){t&&"function"==typeof t.focus&&t.focus()}function a(t){if(!t)return;const n=r(t);n.length>0?n[0].focus():f(t)}export{o as a,n as b,i as c,a as f,t as g,e as h,f as s,u as w}
|