@webquark/core 1.1.0-dev.4 → 1.1.0-dev.5
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 +24 -9
- package/dist/cjs/{action.props-CkEZpMY6.js → action.props-CtwTiyf6.js} +1 -1
- package/dist/cjs/field-CiEtk37y.js +14 -0
- package/dist/cjs/{index-B7ex88C2.js → index-BLlc_shC.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/q-accordion.cjs.entry.js +18 -0
- package/dist/cjs/q-alert.cjs.entry.js +1 -1
- package/dist/cjs/q-avatar.cjs.entry.js +6 -6
- package/dist/cjs/q-banner.cjs.entry.js +19 -0
- package/dist/cjs/q-button_2.cjs.entry.js +7 -7
- package/dist/cjs/q-card.cjs.entry.js +17 -6
- package/dist/cjs/q-carousel.cjs.entry.js +3 -3
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +6 -6
- package/dist/cjs/q-data-table.cjs.entry.js +4 -4
- package/dist/cjs/q-dialog.cjs.entry.js +22 -8
- package/dist/cjs/q-dropdown.cjs.entry.js +50 -6
- package/dist/cjs/q-form.cjs.entry.js +11 -5
- package/dist/cjs/q-grid.cjs.entry.js +24 -0
- package/dist/cjs/q-icon.cjs.entry.js +16 -6
- package/dist/cjs/q-inline.cjs.entry.js +22 -0
- package/dist/cjs/q-input_2.cjs.entry.js +14 -7
- package/dist/cjs/q-link.cjs.entry.js +5 -5
- package/dist/cjs/q-map.cjs.entry.js +2 -2
- package/dist/cjs/q-media.cjs.entry.js +21 -0
- package/dist/cjs/q-navbar.cjs.entry.js +9 -6
- package/dist/cjs/q-pagination.cjs.entry.js +2 -2
- package/dist/cjs/q-panel.cjs.entry.js +17 -8
- package/dist/cjs/q-quantity-selector.cjs.entry.js +15 -8
- package/dist/cjs/q-radio-group.cjs.entry.js +14 -7
- package/dist/cjs/q-reel.cjs.entry.js +3 -3
- package/dist/cjs/q-scrollable.cjs.entry.js +4 -4
- package/dist/cjs/q-section.cjs.entry.js +20 -0
- package/dist/cjs/q-sidepanel.cjs.entry.js +14 -7
- package/dist/cjs/q-stack.cjs.entry.js +20 -0
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +7 -4
- package/dist/cjs/q-step-diagram.cjs.entry.js +21 -11
- package/dist/cjs/q-syntax-box.cjs.entry.js +1 -1
- package/dist/cjs/q-tabs.cjs.entry.js +3 -3
- package/dist/cjs/q-textarea.cjs.entry.js +61 -7
- package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
- package/dist/cjs/q-toast.cjs.entry.js +3 -3
- package/dist/cjs/q-toggle.cjs.entry.js +14 -6
- package/dist/cjs/q-toolbar.cjs.entry.js +8 -4
- package/dist/cjs/tokens-DGECOqpA.js +42 -0
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +16 -9
- package/dist/collection/components/actions/button/button.css +55 -4
- package/dist/collection/components/actions/button/button.js +4 -4
- package/dist/collection/components/actions/link/link.js +8 -5
- package/dist/collection/components/{data-display → communication}/alert/alert.js +2 -2
- package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.js +40 -40
- package/dist/collection/components/{overlays → communication}/toast/test/toast.cmp.test.js +1 -1
- package/dist/collection/components/{overlays → communication}/toast/toast.js +14 -14
- package/dist/collection/components/content/banner/banner.css +1 -0
- package/dist/collection/components/content/banner/banner.js +84 -0
- package/dist/collection/components/{layout → content}/card/card.css +12 -0
- package/dist/collection/components/content/card/card.js +308 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.js +4 -4
- package/dist/collection/components/data-display/accordion/accordion.css +1 -0
- package/dist/collection/components/data-display/accordion/accordion.js +54 -0
- package/dist/collection/components/{actions → data-display}/chip/chip.js +5 -5
- package/dist/collection/components/data-display/data-table/data-table.js +3 -3
- package/dist/collection/components/data-display/map/map.js +1 -1
- package/dist/collection/components/data-display/pagination/pagination.js +1 -1
- package/dist/collection/components/indicators/step-diagram/step-diagram.js +50 -11
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.css +7 -7
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +36 -4
- package/dist/collection/components/inputs/dropdown/dropdown.css +77 -34
- package/dist/collection/components/inputs/dropdown/dropdown.js +202 -6
- package/dist/collection/components/inputs/form/form.css +85 -0
- package/dist/collection/components/{layout → inputs}/form/form.js +105 -13
- package/dist/collection/components/inputs/form/form.types.js +1 -0
- package/dist/collection/components/inputs/input/input.css +78 -62
- package/dist/collection/components/inputs/input/input.js +77 -9
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +43 -3
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +70 -7
- package/dist/collection/components/inputs/radio-group/radio-group.css +77 -30
- package/dist/collection/components/inputs/radio-group/radio-group.js +77 -9
- package/dist/collection/components/inputs/textarea/textarea.css +85 -1
- package/dist/collection/components/inputs/textarea/textarea.js +149 -7
- package/dist/collection/components/inputs/toggle/toggle.css +80 -48
- package/dist/collection/components/inputs/toggle/toggle.js +72 -6
- package/dist/collection/components/layout/grid/grid.css +11 -0
- package/dist/collection/components/layout/grid/grid.js +152 -0
- package/dist/collection/components/layout/inline/inline.css +4 -0
- package/dist/collection/components/layout/inline/inline.js +118 -0
- package/dist/collection/components/layout/navbar/navbar.js +32 -7
- package/dist/collection/components/layout/panel/panel.css +13 -12
- package/dist/collection/components/layout/panel/panel.js +139 -10
- package/dist/collection/components/layout/scrollable/scrollable.js +3 -3
- package/dist/collection/components/layout/section/section.css +1 -0
- package/dist/collection/components/layout/section/section.js +98 -0
- package/dist/collection/components/layout/section/section.types.js +1 -0
- package/dist/collection/components/layout/sidepanel/internals/nav-items.js +1 -1
- package/dist/collection/components/layout/sidepanel/sidepanel.js +90 -10
- package/dist/collection/components/layout/stack/stack.css +4 -0
- package/dist/collection/components/layout/stack/stack.js +76 -0
- package/dist/collection/components/layout/tabs/tabs.js +2 -2
- package/dist/collection/components/layout/toolbar/toolbar.css +24 -1
- package/dist/collection/components/layout/toolbar/toolbar.js +81 -3
- package/dist/collection/components/media/avatar/avatar.js +43 -43
- package/dist/collection/components/media/icon/icon.js +79 -18
- package/dist/collection/components/media/media/media.css +1 -0
- package/dist/collection/components/media/media/media.js +125 -0
- package/dist/collection/components/media/media/media.types.js +1 -0
- package/dist/collection/components/media/reel/reel.js +2 -2
- package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/overlays/dialog/dialog.css +16 -0
- package/dist/collection/components/overlays/dialog/dialog.js +144 -14
- package/dist/collection/components/overlays/tooltip/tooltip.js +2 -2
- package/dist/collection/components/shared/field.js +8 -0
- package/dist/collection/components/shared/test/orientation.cmp.test.js +36 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/playground/components/playground-event-log/playground-event-log.js +1 -1
- package/dist/collection/playground/components/playground-sidebar/playground-sidebar.js +5 -3
- package/dist/collection/playground/components/theme-designer/theme-designer.js +13 -35
- package/dist/collection/playground/components/theme-designer/token-row.js +26 -7
- package/dist/collection/playground/playground.bundled.js +846 -34
- package/dist/collection/theme/test/foundation.cmp.test.js +347 -0
- package/dist/collection/theme/tokens.js +828 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-0PieXMX9.js +1 -0
- package/dist/components/p-BOYjkCNa.js +1 -0
- package/dist/components/p-Bw4TVbfm.js +1 -0
- package/dist/components/{p-7oXL29Gu.js → p-BxFGkrUe.js} +1 -1
- package/dist/components/{p-CQofbR9q.js → p-CK7avZdv.js} +1 -1
- package/dist/components/p-Cx1vCuMp.js +1 -0
- package/dist/components/{p-Czf3kP0S.js → p-D0Q2vrt5.js} +1 -1
- package/dist/components/p-GU98U1DJ.js +1 -0
- package/dist/components/{p-C8fq-feq.js → p-NEolaUak.js} +1 -1
- package/dist/components/p-f95uguY1.js +1 -0
- package/dist/components/q-accordion.d.ts +11 -0
- package/dist/components/q-accordion.js +1 -0
- package/dist/components/q-alert.js +1 -1
- package/dist/components/q-avatar.js +1 -1
- package/dist/components/q-banner.d.ts +11 -0
- package/dist/components/q-banner.js +1 -0
- package/dist/components/q-button.js +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-chip.js +1 -1
- package/dist/components/q-conversation-bubble.js +1 -1
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-form.js +1 -1
- package/dist/components/q-grid.d.ts +11 -0
- package/dist/components/q-grid.js +1 -0
- package/dist/components/q-icon.js +1 -1
- package/dist/components/q-inline.d.ts +11 -0
- package/dist/components/q-inline.js +1 -0
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-link.js +1 -1
- package/dist/components/q-map.js +1 -1
- package/dist/components/q-media.d.ts +11 -0
- package/dist/components/q-media.js +1 -0
- package/dist/components/q-navbar.js +1 -1
- package/dist/components/q-pagination.js +1 -1
- package/dist/components/q-panel.js +1 -1
- package/dist/components/q-progress.js +1 -1
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-radio-group.js +1 -1
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-section.d.ts +11 -0
- package/dist/components/q-section.js +1 -0
- package/dist/components/q-sidepanel.js +3 -3
- package/dist/components/q-stack.d.ts +11 -0
- package/dist/components/q-stack.js +1 -0
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +2 -2
- package/dist/components/q-tabs.js +1 -1
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toast.js +1 -1
- package/dist/components/q-toggle.js +1 -1
- package/dist/components/q-toolbar.js +1 -1
- package/dist/components/q-tooltip.js +1 -1
- package/dist/esm/{action.props-CJoxGHR7.js → action.props-GP1ameE3.js} +1 -1
- package/dist/esm/field-DkpyvZiX.js +11 -0
- package/dist/esm/{index-VFWyFa-_.js → index-DbGG9Q40.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/q-accordion.entry.js +16 -0
- package/dist/esm/q-alert.entry.js +1 -1
- package/dist/esm/q-avatar.entry.js +6 -6
- package/dist/esm/q-banner.entry.js +17 -0
- package/dist/esm/q-button_2.entry.js +7 -7
- package/dist/esm/q-card.entry.js +17 -6
- package/dist/esm/q-carousel.entry.js +3 -3
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-conversation-bubble.entry.js +6 -6
- package/dist/esm/q-data-table.entry.js +4 -4
- package/dist/esm/q-dialog.entry.js +22 -8
- package/dist/esm/q-dropdown.entry.js +50 -6
- package/dist/esm/q-form.entry.js +11 -5
- package/dist/esm/q-grid.entry.js +22 -0
- package/dist/esm/q-icon.entry.js +16 -6
- package/dist/esm/q-inline.entry.js +20 -0
- package/dist/esm/q-input_2.entry.js +14 -7
- package/dist/esm/q-link.entry.js +5 -5
- package/dist/esm/q-map.entry.js +2 -2
- package/dist/esm/q-media.entry.js +19 -0
- package/dist/esm/q-navbar.entry.js +9 -6
- package/dist/esm/q-pagination.entry.js +2 -2
- package/dist/esm/q-panel.entry.js +17 -8
- package/dist/esm/q-quantity-selector.entry.js +15 -8
- package/dist/esm/q-radio-group.entry.js +14 -7
- package/dist/esm/q-reel.entry.js +3 -3
- package/dist/esm/q-scrollable.entry.js +4 -4
- package/dist/esm/q-section.entry.js +18 -0
- package/dist/esm/q-sidepanel.entry.js +14 -7
- package/dist/esm/q-stack.entry.js +18 -0
- package/dist/esm/q-step-diagram-item.entry.js +7 -4
- package/dist/esm/q-step-diagram.entry.js +21 -11
- package/dist/esm/q-syntax-box.entry.js +1 -1
- package/dist/esm/q-tabs.entry.js +3 -3
- package/dist/esm/q-textarea.entry.js +61 -7
- package/dist/esm/q-thumbnail.entry.js +3 -3
- package/dist/esm/q-toast.entry.js +3 -3
- package/dist/esm/q-toggle.entry.js +14 -6
- package/dist/esm/q-toolbar.entry.js +8 -4
- package/dist/esm/tokens-f95uguY1.js +38 -0
- package/dist/esm/webquark.js +3 -3
- package/dist/playground/build/p-0aea8464.entry.js +1 -0
- package/dist/playground/build/p-0d98e500.entry.js +1 -0
- package/dist/playground/build/p-139fec38.entry.js +1 -0
- package/dist/{webquark/p-0053ec76.entry.js → playground/build/p-15502232.entry.js} +1 -1
- package/dist/playground/build/p-17340abf.entry.js +1 -0
- package/dist/playground/build/p-303dcac8.entry.js +1 -0
- package/dist/playground/build/p-408bf48a.entry.js +1 -0
- package/dist/playground/build/p-47253466.entry.js +1 -0
- package/dist/playground/build/p-5f6860f2.entry.js +13 -0
- package/dist/playground/build/p-6b619655.entry.js +1 -0
- package/dist/playground/build/p-6b63922b.entry.js +1 -0
- package/dist/playground/build/p-71e3d582.entry.js +1 -0
- package/dist/playground/build/p-737ca99e.entry.js +1 -0
- package/dist/playground/build/{p-41421759.entry.js → p-742e39f1.entry.js} +1 -1
- package/dist/playground/build/p-8115ec23.entry.js +1 -0
- package/dist/playground/build/{p-8ada8fc6.entry.js → p-8ad43d7f.entry.js} +1 -1
- package/dist/playground/build/{p-885572ee.entry.js → p-8bdababd.entry.js} +1 -1
- package/dist/playground/build/p-9418caa0.entry.js +1 -0
- package/dist/playground/build/p-96ef2b54.entry.js +1 -0
- package/dist/playground/build/p-97dae970.entry.js +1 -0
- package/dist/{webquark/p-b5066051.entry.js → playground/build/p-989bdc1a.entry.js} +1 -1
- package/dist/playground/build/{p-DoS2fiWw.js → p-BqvCR2U8.js} +1 -1
- package/dist/playground/build/p-DbGG9Q40.js +3 -0
- package/dist/playground/build/p-JgeOdXyP.js +1 -0
- package/dist/playground/build/p-a4b36120.entry.js +1 -0
- package/dist/playground/build/p-abf54361.entry.js +1 -0
- package/dist/playground/build/p-aed4b219.entry.js +1 -0
- package/dist/playground/build/p-b3a07d94.entry.js +1 -0
- package/dist/{webquark/p-8077aa3f.entry.js → playground/build/p-b465aebd.entry.js} +1 -1
- package/dist/playground/build/p-c1f3dca6.entry.js +1 -0
- package/dist/playground/build/p-c4899c2b.entry.js +1 -0
- package/dist/{webquark/p-1c9a82b8.entry.js → playground/build/p-c4fd89b8.entry.js} +1 -1
- package/dist/playground/build/p-cf8f7f2a.entry.js +1 -0
- package/dist/playground/build/{p-2e2b3ca9.entry.js → p-d4a915e5.entry.js} +1 -1
- package/dist/{webquark/p-6c0bc4b9.entry.js → playground/build/p-d7d436c5.entry.js} +1 -1
- package/dist/playground/build/{p-316a92e2.entry.js → p-de8813be.entry.js} +1 -1
- package/dist/{webquark/p-8ec7d250.entry.js → playground/build/p-eb71e335.entry.js} +1 -1
- package/dist/playground/build/p-ecbc0fee.entry.js +1 -0
- package/dist/{webquark/p-d837603c.entry.js → playground/build/p-ed327679.entry.js} +1 -1
- package/dist/{webquark/p-e0e6b68f.entry.js → playground/build/p-f911c90f.entry.js} +1 -1
- package/dist/playground/build/p-f95uguY1.js +1 -0
- package/dist/playground/build/{p-5c08aa94.entry.js → p-fdd85ce4.entry.js} +1 -1
- package/dist/{webquark/p-13329777.entry.js → playground/build/p-ff1e2363.entry.js} +1 -1
- package/dist/playground/build/webquark.css +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/playground/components.manifest.json +40 -35
- package/dist/playground/playground/specs/q-button.sandbox.json +3 -2
- package/dist/playground/playground/specs/q-card.sandbox.json +37 -3
- package/dist/playground/playground/specs/q-dialog.sandbox.json +16 -6
- package/dist/playground/playground/specs/q-dropdown.sandbox.json +12 -2
- package/dist/playground/playground/specs/q-form.sandbox.json +88 -10
- package/dist/playground/playground/specs/q-grid.sandbox.json +56 -0
- package/dist/playground/playground/specs/q-icon.sandbox.json +11 -11
- package/dist/playground/playground/specs/q-inline.sandbox.json +60 -0
- package/dist/playground/playground/specs/q-input.sandbox.json +12 -2
- package/dist/playground/playground/specs/q-navbar.sandbox.json +3 -3
- package/dist/playground/playground/specs/q-panel.sandbox.json +138 -17
- package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +13 -2
- package/dist/playground/playground/specs/q-radio-group.sandbox.json +46 -10
- package/dist/playground/playground/specs/q-sidepanel.sandbox.json +7 -7
- package/dist/playground/playground/specs/q-stack.sandbox.json +56 -0
- package/dist/playground/playground/specs/q-step-diagram.sandbox.json +5 -5
- package/dist/playground/playground/specs/q-textarea.sandbox.json +20 -0
- package/dist/playground/playground/specs/q-toggle.sandbox.json +12 -2
- package/dist/playground/playground/specs/q-toolbar.sandbox.json +99 -14
- package/dist/playground/playground.js +846 -34
- package/dist/types/components/actions/button/button.types.d.ts +2 -1
- package/dist/types/components/actions/link/link.d.ts +1 -1
- package/dist/types/components/communication/toast/test/toast.cmp.test.d.ts +2 -0
- package/dist/types/components/communication/toast/test/toast.unit.test.d.ts +1 -0
- package/dist/types/components/content/banner/banner.d.ts +12 -0
- package/dist/types/components/content/banner/banner.types.d.ts +2 -0
- package/dist/types/components/{layout → content}/card/card.d.ts +11 -0
- package/dist/types/components/content/card/card.types.d.ts +1 -0
- package/dist/types/components/{layout → content}/card/card.utils.d.ts +1 -1
- package/dist/types/components/data-display/accordion/accordion.d.ts +9 -0
- package/dist/types/components/data-display/accordion/accordion.types.d.ts +1 -0
- package/dist/types/components/indicators/step-diagram/step-diagram.d.ts +6 -3
- package/dist/types/components/indicators/step-diagram/step-diagram.types.d.ts +3 -1
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.d.ts +4 -2
- package/dist/types/components/indicators/step-diagram-item/step-diagram-item.types.d.ts +3 -1
- package/dist/types/components/inputs/dropdown/dropdown.d.ts +13 -0
- package/dist/types/components/inputs/dropdown/dropdown.types.d.ts +2 -1
- package/dist/types/components/{layout → inputs}/form/form.d.ts +6 -0
- package/dist/types/components/inputs/input/input.d.ts +7 -1
- package/dist/types/components/inputs/input/input.types.d.ts +2 -1
- package/dist/types/components/inputs/quantity-selector/quantity-selector.d.ts +6 -1
- package/dist/types/components/inputs/quantity-selector/quantity-selector.types.d.ts +3 -1
- package/dist/types/components/inputs/radio-group/radio-group.d.ts +7 -1
- package/dist/types/components/inputs/radio-group/radio-group.types.d.ts +2 -1
- package/dist/types/components/inputs/textarea/textarea.d.ts +16 -1
- package/dist/types/components/inputs/toggle/toggle.d.ts +6 -0
- package/dist/types/components/inputs/toggle/toggle.types.d.ts +2 -1
- package/dist/types/components/layout/grid/grid.d.ts +13 -0
- package/dist/types/components/layout/inline/inline.d.ts +12 -0
- package/dist/types/components/layout/navbar/navbar.d.ts +2 -0
- package/dist/types/components/layout/panel/panel.d.ts +8 -0
- package/dist/types/components/layout/panel/panel.types.d.ts +2 -1
- package/dist/types/components/layout/section/section.d.ts +13 -0
- package/dist/types/components/layout/section/section.types.d.ts +1 -0
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +7 -0
- package/dist/types/components/layout/stack/stack.d.ts +10 -0
- package/dist/types/components/layout/toolbar/toolbar.d.ts +4 -0
- package/dist/types/components/media/avatar/avatar.d.ts +4 -4
- package/dist/types/components/media/icon/icon.d.ts +7 -3
- package/dist/types/components/media/media/media.d.ts +13 -0
- package/dist/types/components/media/media/media.types.d.ts +2 -0
- package/dist/types/components/overlays/dialog/dialog.d.ts +14 -2
- package/dist/types/components/shared/field.d.ts +3 -0
- package/dist/types/components/shared/test/orientation.cmp.test.d.ts +1 -0
- package/dist/types/components.d.ts +887 -66
- package/dist/types/index.d.ts +7 -2
- package/dist/types/playground/components/theme-designer/token-row.d.ts +2 -1
- package/dist/types/theme/test/assets.d.ts +4 -0
- package/dist/types/theme/test/foundation.cmp.test.d.ts +16 -0
- package/dist/types/theme/tokens.d.ts +63 -0
- package/dist/webquark/p-0aea8464.entry.js +1 -0
- package/dist/webquark/p-0d98e500.entry.js +1 -0
- package/dist/webquark/p-139fec38.entry.js +1 -0
- package/dist/{playground/build/p-0053ec76.entry.js → webquark/p-15502232.entry.js} +1 -1
- package/dist/webquark/p-17340abf.entry.js +1 -0
- package/dist/webquark/p-303dcac8.entry.js +1 -0
- package/dist/webquark/p-408bf48a.entry.js +1 -0
- package/dist/webquark/p-47253466.entry.js +1 -0
- package/dist/webquark/p-5f6860f2.entry.js +13 -0
- package/dist/webquark/p-6b619655.entry.js +1 -0
- package/dist/webquark/p-6b63922b.entry.js +1 -0
- package/dist/webquark/p-71e3d582.entry.js +1 -0
- package/dist/webquark/p-737ca99e.entry.js +1 -0
- package/dist/webquark/{p-41421759.entry.js → p-742e39f1.entry.js} +1 -1
- package/dist/webquark/p-8115ec23.entry.js +1 -0
- package/dist/webquark/{p-8ada8fc6.entry.js → p-8ad43d7f.entry.js} +1 -1
- package/dist/webquark/{p-885572ee.entry.js → p-8bdababd.entry.js} +1 -1
- package/dist/webquark/p-9418caa0.entry.js +1 -0
- package/dist/webquark/p-96ef2b54.entry.js +1 -0
- package/dist/webquark/p-97dae970.entry.js +1 -0
- package/dist/{playground/build/p-b5066051.entry.js → webquark/p-989bdc1a.entry.js} +1 -1
- package/dist/webquark/{p-DoS2fiWw.js → p-BqvCR2U8.js} +1 -1
- package/dist/webquark/p-DbGG9Q40.js +3 -0
- package/dist/webquark/p-JgeOdXyP.js +1 -0
- package/dist/webquark/p-a4b36120.entry.js +1 -0
- package/dist/webquark/p-abf54361.entry.js +1 -0
- package/dist/webquark/p-aed4b219.entry.js +1 -0
- package/dist/webquark/p-b3a07d94.entry.js +1 -0
- package/dist/{playground/build/p-8077aa3f.entry.js → webquark/p-b465aebd.entry.js} +1 -1
- package/dist/webquark/p-c1f3dca6.entry.js +1 -0
- package/dist/webquark/p-c4899c2b.entry.js +1 -0
- package/dist/{playground/build/p-1c9a82b8.entry.js → webquark/p-c4fd89b8.entry.js} +1 -1
- package/dist/webquark/p-cf8f7f2a.entry.js +1 -0
- package/dist/webquark/{p-2e2b3ca9.entry.js → p-d4a915e5.entry.js} +1 -1
- package/dist/{playground/build/p-6c0bc4b9.entry.js → webquark/p-d7d436c5.entry.js} +1 -1
- package/dist/webquark/{p-316a92e2.entry.js → p-de8813be.entry.js} +1 -1
- package/dist/{playground/build/p-8ec7d250.entry.js → webquark/p-eb71e335.entry.js} +1 -1
- package/dist/webquark/p-ecbc0fee.entry.js +1 -0
- package/dist/{playground/build/p-d837603c.entry.js → webquark/p-ed327679.entry.js} +1 -1
- package/dist/{playground/build/p-e0e6b68f.entry.js → webquark/p-f911c90f.entry.js} +1 -1
- package/dist/webquark/p-f95uguY1.js +1 -0
- package/dist/webquark/{p-5c08aa94.entry.js → p-fdd85ce4.entry.js} +1 -1
- package/dist/{playground/build/p-13329777.entry.js → webquark/p-ff1e2363.entry.js} +1 -1
- package/dist/webquark/webquark.css +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +68 -5
- package/scripts/wq-switch/README.md +113 -0
- package/scripts/wq-switch/dist/index.js +530 -0
- package/scripts/wq-switch/dist/setup.js +333 -0
- package/dist/collection/components/layout/card/card.js +0 -168
- package/dist/collection/components/layout/form/form.css +0 -49
- package/dist/components/p-BygmcFxM.js +0 -1
- package/dist/components/p-CVtof65h.js +0 -1
- package/dist/components/p-I81wUKud.js +0 -1
- package/dist/components/p-vv3X99Ji.js +0 -1
- package/dist/playground/build/p-0363c0e6.entry.js +0 -1
- package/dist/playground/build/p-0e3dbe01.entry.js +0 -1
- package/dist/playground/build/p-226c2f79.entry.js +0 -13
- package/dist/playground/build/p-38b92be6.entry.js +0 -1
- package/dist/playground/build/p-42831108.entry.js +0 -1
- package/dist/playground/build/p-50ca27f7.entry.js +0 -1
- package/dist/playground/build/p-611ef3e0.entry.js +0 -1
- package/dist/playground/build/p-684292dd.entry.js +0 -1
- package/dist/playground/build/p-7081c96b.entry.js +0 -1
- package/dist/playground/build/p-789eb3c9.entry.js +0 -1
- package/dist/playground/build/p-8d0aa5a7.entry.js +0 -1
- package/dist/playground/build/p-9978ae38.entry.js +0 -1
- package/dist/playground/build/p-VFWyFa-_.js +0 -3
- package/dist/playground/build/p-b99541cd.entry.js +0 -1
- package/dist/playground/build/p-ca1a1d25.entry.js +0 -1
- package/dist/playground/build/p-e15e6d76.entry.js +0 -1
- package/dist/playground/build/p-e272dd45.entry.js +0 -1
- package/dist/playground/build/p-e8003179.entry.js +0 -1
- package/dist/types/components/layout/card/card.types.d.ts +0 -1
- package/dist/types/components/overlays/toast/test/toast.cmp.test.d.ts +0 -2
- package/dist/webquark/p-0363c0e6.entry.js +0 -1
- package/dist/webquark/p-0e3dbe01.entry.js +0 -1
- package/dist/webquark/p-226c2f79.entry.js +0 -13
- package/dist/webquark/p-38b92be6.entry.js +0 -1
- package/dist/webquark/p-42831108.entry.js +0 -1
- package/dist/webquark/p-50ca27f7.entry.js +0 -1
- package/dist/webquark/p-611ef3e0.entry.js +0 -1
- package/dist/webquark/p-684292dd.entry.js +0 -1
- package/dist/webquark/p-7081c96b.entry.js +0 -1
- package/dist/webquark/p-789eb3c9.entry.js +0 -1
- package/dist/webquark/p-8d0aa5a7.entry.js +0 -1
- package/dist/webquark/p-9978ae38.entry.js +0 -1
- package/dist/webquark/p-VFWyFa-_.js +0 -3
- package/dist/webquark/p-b99541cd.entry.js +0 -1
- package/dist/webquark/p-ca1a1d25.entry.js +0 -1
- package/dist/webquark/p-e15e6d76.entry.js +0 -1
- package/dist/webquark/p-e272dd45.entry.js +0 -1
- package/dist/webquark/p-e8003179.entry.js +0 -1
- package/dist/collection/components/{data-display → communication}/alert/alert.css +0 -0
- package/dist/collection/components/{data-display → communication}/alert/alert.types.js +0 -0
- package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.css +0 -0
- package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.types.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/internals/icons.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/internals/queue.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/internals/timers.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/test/toast.unit.test.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/toast-controller.js +0 -0
- package/dist/collection/components/{overlays → communication}/toast/toast.css +0 -0
- package/dist/collection/components/{overlays → communication}/toast/toast.types.js +0 -0
- package/dist/collection/components/{actions/chip/chip.types.js → content/banner/banner.types.js} +0 -0
- package/dist/collection/components/{layout → content}/card/card.types.js +0 -0
- package/dist/collection/components/{layout → content}/card/card.utils.js +0 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.css +0 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.types.js +0 -0
- package/dist/collection/components/{layout → content}/carousel/carousel.utils.js +0 -0
- package/dist/collection/components/{layout → content}/carousel/internals/metrics.js +0 -0
- package/dist/collection/components/{layout/form/form.types.js → data-display/accordion/accordion.types.js} +0 -0
- package/dist/collection/components/{actions → data-display}/chip/chip.css +0 -0
- package/dist/{types/components/overlays/toast/test/toast.unit.test.d.ts → collection/components/data-display/chip/chip.types.js} +0 -0
- package/dist/collection/components/{layout → inputs}/form/internals/controls.js +0 -0
- package/dist/collection/components/{layout → inputs}/form/internals/enter-behavior.js +0 -0
- package/dist/collection/components/{layout → inputs}/form/internals/values.js +0 -0
- package/dist/collection/components/{layout → inputs}/form/test/form.cmp.test.js +0 -0
- package/dist/types/components/{data-display → communication}/alert/alert.d.ts +0 -0
- package/dist/types/components/{data-display → communication}/alert/alert.types.d.ts +0 -0
- package/dist/types/components/{data-display → communication}/conversation-bubble/conversation-bubble.d.ts +3 -3
- /package/dist/types/components/{data-display → communication}/conversation-bubble/conversation-bubble.types.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/internals/icons.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/internals/queue.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/internals/timers.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/toast-controller.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/toast.d.ts +0 -0
- /package/dist/types/components/{overlays → communication}/toast/toast.types.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/carousel.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/carousel.types.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/carousel.utils.d.ts +0 -0
- /package/dist/types/components/{layout → content}/carousel/internals/metrics.d.ts +0 -0
- /package/dist/types/components/{actions → data-display}/chip/chip.d.ts +0 -0
- /package/dist/types/components/{actions → data-display}/chip/chip.types.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/form.types.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/internals/controls.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/internals/enter-behavior.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/internals/values.d.ts +0 -0
- /package/dist/types/components/{layout → inputs}/form/test/form.cmp.test.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
4
|
var utils = require('./utils-DGQOjEwT.js');
|
|
5
5
|
var dataTableCell = require('./data-table-cell-BAv6IIYx.js');
|
|
6
6
|
var chevronUp = require('./chevron-up-Dysp_9UJ.js');
|
|
@@ -522,14 +522,14 @@ const QDataTable = class {
|
|
|
522
522
|
sortColumn: this.sortColumn,
|
|
523
523
|
sortDirection: this.sortDirection,
|
|
524
524
|
});
|
|
525
|
-
return (index.h("div", { key: '
|
|
525
|
+
return (index.h("div", { key: '8f529185fc57de6f77c0109be7589ab4a6fa7066', class: "table-container", role: "grid", "aria-label": this.ariaLabel?.trim() || this.toolbarTitle?.trim() || 'Data table' }, renderDataTableToolbar({
|
|
526
526
|
showToolbar: this.showToolbar,
|
|
527
527
|
toolbarTitle: this.toolbarTitle,
|
|
528
528
|
showSearch: this.showSearch,
|
|
529
529
|
searchPlaceholder: this.searchPlaceholder,
|
|
530
530
|
searchValue: this.searchValue,
|
|
531
531
|
onSearchInput: this.handleSearchInput,
|
|
532
|
-
}), index.h("div", { key: '
|
|
532
|
+
}), index.h("div", { key: 'cccd8e17734d8c0f5737dd771e0c99d4842b1bae', class: "table-scroll-area" }, index.h("table", { key: '135bd88984195dac4c6a15808c2c0177e0a4b5d1', class: "table-el" }, renderDataTableHead({
|
|
533
533
|
model,
|
|
534
534
|
onSelectAllChange: event => this.handleSelectAllChange(event),
|
|
535
535
|
onSortToggle: column => this.handleSortToggle(column),
|
|
@@ -541,7 +541,7 @@ const QDataTable = class {
|
|
|
541
541
|
onRowCheckboxChange: (item, index, event) => this.handleRowCheckboxChange(item, index, event),
|
|
542
542
|
onRowAction: (item, index, action, event) => this.handleRowAction(item, index, action, event),
|
|
543
543
|
renderCell: (item, column) => this.renderCell(item, column),
|
|
544
|
-
}))), index.h("slot", { key: '
|
|
544
|
+
}))), index.h("slot", { key: '3293510b9ca6b5b2c850da1523e5d11beadfcb81', name: "footer" })));
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
QDataTable.style = dataTableCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
4
|
var dom = require('./dom-Dk77oFF6.js');
|
|
5
5
|
|
|
6
6
|
function resolveDialogBackdropEffect(effect) {
|
|
@@ -66,7 +66,7 @@ function closeDialogAfterTransition(options) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
const dialogCss = () => `:host{display:contents}.dialog-wrapper{position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;z-index:var(--q-z-index-overlay, 1000);visibility:hidden;pointer-events:none;font-family:var(--q-font-family, inherit)}.dialog-wrapper.is-visible{visibility:visible;pointer-events:auto}.dialog-backdrop{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--q-dialog-backdrop-bg, var(--q-bg-overlay, rgba(0, 0, 0, 0.85)));opacity:0;transition:opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1));z-index:1}.dialog-backdrop.effect-solid{background:var(--q-dialog-backdrop-solid-bg, var(--q-bg-overlay, rgba(0, 0, 0, 0.85)))}.dialog-backdrop.effect-none{background:transparent}.dialog-wrapper.is-open .dialog-backdrop{opacity:1}.dialog-modal{position:relative;background:var(--q-bg-surface-1, #1f2937);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-lg, 11px);box-shadow:var(--q-shadow-high, 0 16px 32px rgba(0, 0, 0, 0.45));width:90%;max-width:540px;max-height:85vh;display:flex;flex-direction:column;overflow:hidden;z-index:2;opacity:0;transform:scale(0.92) translateY(16px);transition:transform var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1));outline:none}.dialog-wrapper.is-open .dialog-modal{opacity:1;transform:scale(1) translateY(0)}.dialog-modal:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:var(--q-padding-lg, 16px);border-bottom:var(--q-border, 1px solid var(--q-border-color, #374151));background:var(--q-bg-surface-1, #1f2937)}.dialog-title{margin:0;font-size:var(--q-font-size-lg, 1.1rem);font-weight:var(--q-font-weight-bold, 600);color:var(--q-fg-base, #f9fafb)}.dialog-close-btn{background:transparent;border:none;color:var(--q-fg-muted, #9ca3af);width:32px;height:32px;border-radius:var(--q-radius-sm, 4px);display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.dialog-close-btn:hover:not(:disabled){background:var(--q-bg-surface-2, #374151);color:var(--q-fg-base, #f9fafb)}.dialog-close-btn:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa))}.dialog-close-btn:disabled{opacity:0.5;cursor:not-allowed}.close-icon{width:20px;height:20px}.dialog-body{padding:var(--q-padding-lg, 16px);overflow-y:auto;font-size:var(--q-font-size-base, 0.9rem);color:var(--q-fg-base, #f9fafb);line-height:1.5;background:var(--q-bg-base, #111827);flex:1}.dialog-message{margin:0}.dialog-footer{padding:var(--q-padding-lg, 16px);border-top:var(--q-border, 1px solid var(--q-border-color, #374151));background:var(--q-bg-surface-1, #1f2937);display:flex;justify-content:flex-end}.dialog-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center}.btn-cancel,.btn-confirm{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 16px;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-bold, 600);border-radius:var(--q-radius-md, 7px);cursor:pointer;user-select:none;outline:none;transition:all var(--q-transition-fast, 150ms ease);box-sizing:border-box}.btn-cancel{background:transparent;border:var(--q-border, 1px solid var(--q-border-color, #374151));color:var(--q-fg-base, #f9fafb)}.btn-cancel:hover:not(:disabled){background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent));border-color:var(--q-color-primary, #60a5fa);color:var(--q-color-primary, #60a5fa)}.btn-cancel:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.btn-cancel:disabled{opacity:0.5;cursor:not-allowed}.btn-confirm{background:var(--q-color-primary, #60a5fa);border:1px solid transparent;color:var(--q-bg-base, #111827);gap:8px}.btn-confirm:hover:not(:disabled){background:var(--q-color-primary-hover, #93c5fd)}.btn-confirm:active:not(:disabled){transform:scale(0.97)}.btn-confirm:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.btn-confirm:disabled{opacity:0.5;cursor:not-allowed}.spinner-el{width:16px;height:16px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spinner-spin 0.6s linear infinite;display:inline-block}@keyframes spinner-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`;
|
|
69
|
+
const dialogCss = () => `:host{display:contents}.dialog-wrapper{position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;z-index:var(--q-z-index-overlay, 1000);visibility:hidden;pointer-events:none;font-family:var(--q-font-family, inherit)}.dialog-wrapper.is-visible{visibility:visible;pointer-events:auto}.dialog-backdrop{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--q-dialog-backdrop-bg, var(--q-bg-overlay, rgba(0, 0, 0, 0.85)));opacity:0;transition:opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1));z-index:1}.dialog-backdrop.effect-solid{background:var(--q-dialog-backdrop-solid-bg, var(--q-bg-overlay, rgba(0, 0, 0, 0.85)))}.dialog-backdrop.effect-none{background:transparent}.dialog-wrapper.is-open .dialog-backdrop{opacity:1}.dialog-modal{position:relative;background:var(--q-bg-surface-1, #1f2937);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-lg, 11px);box-shadow:var(--q-shadow-high, 0 16px 32px rgba(0, 0, 0, 0.45));width:90%;max-width:540px;max-height:85vh;display:flex;flex-direction:column;overflow:hidden;z-index:2;opacity:0;transform:scale(0.92) translateY(16px);transition:transform var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1));outline:none}.dialog-wrapper.is-open .dialog-modal{opacity:1;transform:scale(1) translateY(0)}.dialog-modal:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:var(--q-padding-lg, 16px);border-bottom:var(--q-border, 1px solid var(--q-border-color, #374151));background:var(--q-bg-surface-1, #1f2937)}.dialog-title{margin:0;font-size:var(--q-font-size-lg, 1.1rem);font-weight:var(--q-font-weight-bold, 600);color:var(--q-fg-base, #f9fafb)}.dialog-close-btn{background:transparent;border:none;color:var(--q-fg-muted, #9ca3af);width:32px;height:32px;border-radius:var(--q-radius-sm, 4px);display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.dialog-close-btn:hover:not(:disabled){background:var(--q-bg-surface-2, #374151);color:var(--q-fg-base, #f9fafb)}.dialog-close-btn:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa))}.dialog-close-btn:disabled{opacity:0.5;cursor:not-allowed}.close-icon{width:20px;height:20px}.dialog-body{padding:var(--q-padding-lg, 16px);overflow-y:auto;font-size:var(--q-font-size-base, 0.9rem);color:var(--q-fg-base, #f9fafb);line-height:1.5;background:var(--q-bg-base, #111827);flex:1}.dialog-message{margin:0}.dialog-footer{padding:var(--q-padding-lg, 16px);border-top:var(--q-border, 1px solid var(--q-border-color, #374151));background:var(--q-bg-surface-1, #1f2937);display:flex;justify-content:flex-end}.dialog-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center}.btn-cancel,.btn-confirm{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 16px;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-bold, 600);border-radius:var(--q-radius-md, 7px);cursor:pointer;user-select:none;outline:none;transition:all var(--q-transition-fast, 150ms ease);box-sizing:border-box}.btn-cancel{background:transparent;border:var(--q-border, 1px solid var(--q-border-color, #374151));color:var(--q-fg-base, #f9fafb)}.btn-cancel:hover:not(:disabled){background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent));border-color:var(--q-color-primary, #60a5fa);color:var(--q-color-primary, #60a5fa)}.btn-cancel:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.btn-cancel:disabled{opacity:0.5;cursor:not-allowed}.btn-confirm{background:var(--q-color-primary, #60a5fa);border:1px solid transparent;color:var(--q-bg-base, #111827);gap:8px}.btn-confirm:hover:not(:disabled){background:var(--q-color-primary-hover, #93c5fd)}.btn-confirm:active:not(:disabled){transform:scale(0.97)}.btn-confirm:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.btn-confirm:disabled{opacity:0.5;cursor:not-allowed}.spinner-el{width:16px;height:16px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spinner-spin 0.6s linear infinite;display:inline-block}@keyframes spinner-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.dialog-wrapper{height:100dvh;box-sizing:border-box;padding:var(--q-dialog-gutter, var(--q-space-lg, 1rem))}.dialog-modal{width:100%;max-width:var(--q-dialog-width, 36rem);max-height:100%;background:var(--q-dialog-bg, var(--q-bg-floating, var(--q-bg-surface-4, #2c3a58)))}:host([size='sm']) .dialog-modal{max-width:var(--q-dialog-width, 24rem)}:host([size='lg']) .dialog-modal{max-width:var(--q-dialog-width, 48rem)}:host([size='full']) .dialog-modal{max-width:none}.dialog-header{padding:var(--q-dialog-header-padding, var(--q-space-lg, 1rem));background:var(--q-dialog-header-bg, transparent)}.dialog-body{padding:var(--q-dialog-body-padding, var(--q-space-lg, 1rem));background:var(--q-dialog-body-bg, transparent)}.dialog-footer{padding:var(--q-dialog-footer-padding, var(--q-space-lg, 1rem));background:var(--q-dialog-footer-bg, transparent);flex-wrap:wrap}.dialog-actions{flex-wrap:wrap;min-width:0}.dialog-actions>*{min-width:0;max-width:100%}.dialog-header,.dialog-footer{flex-shrink:0}.dialog-body{min-height:0}.dialog-footer.is-hidden{display:none}.btn-cancel,.btn-confirm{min-height:var(--q-control-height-md, 2.25rem);height:auto;padding:0 var(--q-control-padding-md, .75rem);font-size:var(--q-control-font-md, .875rem);line-height:var(--q-control-line-md, 1.25rem);overflow-wrap:anywhere}`;
|
|
70
70
|
|
|
71
71
|
let dialogId = 0;
|
|
72
72
|
const QDialog = class {
|
|
@@ -78,14 +78,25 @@ const QDialog = class {
|
|
|
78
78
|
}
|
|
79
79
|
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
80
80
|
/** Rendered by the default dialog header. */
|
|
81
|
+
heading;
|
|
82
|
+
/** @deprecated Use heading. Used only when heading is unset. */
|
|
81
83
|
dialogTitle;
|
|
82
|
-
/** Accessible name for the dialog, especially when using a custom header without
|
|
84
|
+
/** Accessible name for the dialog, especially when using a custom header without heading. */
|
|
83
85
|
ariaLabel = null;
|
|
84
86
|
/** Rendered by the default dialog body. */
|
|
85
87
|
message;
|
|
88
|
+
size = 'md';
|
|
86
89
|
/** `solid` is CEF-safe; `none` keeps only a transparent click layer. */
|
|
90
|
+
backdrop;
|
|
91
|
+
/** @deprecated Use backdrop. Used only when backdrop is unset. */
|
|
87
92
|
backdropEffect = 'solid';
|
|
93
|
+
/** Allows Escape to close the dialog when not loading. Defaults to true. */
|
|
94
|
+
closeOnEscape;
|
|
95
|
+
/** @deprecated Use closeOnEscape. Used only when closeOnEscape is unset. */
|
|
88
96
|
closeOnEsc = true;
|
|
97
|
+
/** Allows a backdrop click to close the dialog when not loading. Defaults to true. */
|
|
98
|
+
closeOnBackdropClick;
|
|
99
|
+
/** @deprecated Use closeOnBackdropClick. Used only when closeOnBackdropClick is unset. */
|
|
89
100
|
closeOnOverlayClick = true;
|
|
90
101
|
showCancel = true;
|
|
91
102
|
cancelLabel = 'Cancel';
|
|
@@ -102,6 +113,7 @@ const QDialog = class {
|
|
|
102
113
|
qClose;
|
|
103
114
|
isVisible = false;
|
|
104
115
|
isAnimatedOpen = false;
|
|
116
|
+
hasFooter = false;
|
|
105
117
|
dialogEl;
|
|
106
118
|
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
107
119
|
previousActiveElement = null;
|
|
@@ -171,7 +183,7 @@ const QDialog = class {
|
|
|
171
183
|
}
|
|
172
184
|
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
173
185
|
handleGlobalKeyDown(event) {
|
|
174
|
-
if (this.open && event.key === 'Escape' && this.closeOnEsc) {
|
|
186
|
+
if (this.open && event.key === 'Escape' && (this.closeOnEscape ?? this.closeOnEsc)) {
|
|
175
187
|
this.handleCancel();
|
|
176
188
|
}
|
|
177
189
|
}
|
|
@@ -181,7 +193,7 @@ const QDialog = class {
|
|
|
181
193
|
}
|
|
182
194
|
};
|
|
183
195
|
handleBackdropClick = () => {
|
|
184
|
-
if (this.closeOnOverlayClick && !this.loading) {
|
|
196
|
+
if ((this.closeOnBackdropClick ?? this.closeOnOverlayClick) && !this.loading) {
|
|
185
197
|
this.handleCancel();
|
|
186
198
|
}
|
|
187
199
|
};
|
|
@@ -228,11 +240,11 @@ const QDialog = class {
|
|
|
228
240
|
clearDialogTransitionWait(this.lifecycleState);
|
|
229
241
|
}
|
|
230
242
|
getResolvedBackdropEffect() {
|
|
231
|
-
return resolveDialogBackdropEffect(this.backdropEffect);
|
|
243
|
+
return resolveDialogBackdropEffect(this.backdrop ?? this.backdropEffect);
|
|
232
244
|
}
|
|
233
245
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
234
246
|
render() {
|
|
235
|
-
const titleText = this.dialogTitle;
|
|
247
|
+
const titleText = this.heading ?? this.dialogTitle;
|
|
236
248
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
237
249
|
const classes = {
|
|
238
250
|
'dialog-wrapper': true,
|
|
@@ -244,7 +256,9 @@ const QDialog = class {
|
|
|
244
256
|
'dialog-backdrop': true,
|
|
245
257
|
[`effect-${backdropEffect}`]: true,
|
|
246
258
|
};
|
|
247
|
-
return (index.h("div", { key: '
|
|
259
|
+
return (index.h("div", { key: '6f4f623998914a87ff98d78799d53ca3c20f3555', class: classes, onKeyDown: this.handleKeyDown, inert: !this.open ? true : undefined }, index.h("div", { key: 'aa79771790f45070761516ed8ae2c81b11a8360f', class: backdropClasses, onClick: this.handleBackdropClick, part: "backdrop" }), index.h("div", { key: '8ec3714a8fc23cefa4797038b7696e5fe6eeece9', ref: el => (this.dialogEl = el), class: "dialog-modal", part: "modal", role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? 'false' : 'true', "aria-label": ariaLabel, "aria-labelledby": !ariaLabel && titleText ? this.titleId : undefined, "aria-describedby": this.message ? this.descriptionId : undefined, tabindex: "-1" }, index.h("header", { key: '35bcb00625ed785cf53472337ea0bbdbd210159d', class: "dialog-header", part: "header" }, index.h("slot", { key: '93a34f7a8fcbe5e4f6b4014c33d296657ba941c5', name: "header" }, titleText && index.h("h2", { key: 'c6934914f2b02b9173eb4919b81c9791d62e34fa', id: this.titleId, class: "dialog-title" }, titleText)), index.h("button", { key: 'bf23a027c31222d79c1b9d9b829edd9fec223e1e', class: "dialog-close-btn", onClick: this.handleCloseButton, "aria-label": this.closeLabel, disabled: this.loading, part: "close-btn" }, index.h("svg", { key: '4a9c3cc58652ae38afc505987a1f2a76259743a2', class: "close-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("line", { key: 'e794da24d95a5d4976fd78d628b7f42343a018c2', x1: "18", y1: "6", x2: "6", y2: "18" }), index.h("line", { key: '4a1f257f6a4e0b46b8c683b89dbd8927dc42c1e8', x1: "6", y1: "6", x2: "18", y2: "18" })))), index.h("div", { key: '88339a0987a3e7b51645a473f4b56c6edfbc3ca0', class: "dialog-body", part: "body" }, index.h("slot", { key: '1899e12069176e097112516e4ef4197472de136c' }, this.message && index.h("p", { key: '8b08f2ba71257e4399d586e17f570764c3db1c94', id: this.descriptionId, class: "dialog-message" }, this.message))), index.h("footer", { key: '57c631fe35f40f3aeec3b9c398a6a283c013196f', class: { 'dialog-footer': true, 'is-hidden': !this.showCancel && !this.showConfirm && !this.hasFooter }, part: "footer" }, index.h("slot", { key: 'c85dce4c97a9dc2bc4351d71fe1b7a6da0dfab8f', name: "footer", onSlotchange: event => {
|
|
260
|
+
this.hasFooter = event.target.assignedNodes().some(node => node.nodeType === 1 || !!node.textContent?.trim());
|
|
261
|
+
} }, index.h("div", { key: '37eadaecaafdbd81c3f9a1a792bd1085dcb52ebb', class: "dialog-actions" }, this.showCancel && (index.h("button", { key: 'c94cf5d01d6bccd1a5d18f0d0763ba6ac4aab9af', class: "btn-cancel", onClick: this.handleCancel, disabled: this.loading, part: "cancel-btn" }, this.cancelLabel)), this.showConfirm && (index.h("button", { key: '0361c2e5080a8fcbf67bfbf0c00616ceae729f00', class: "btn-confirm", onClick: this.handleConfirm, disabled: this.loading, "aria-busy": this.loading ? 'true' : 'false', part: "confirm-btn" }, this.loading && index.h("span", { key: 'd1ac9a340da13bb754dda8328fe937e0de87732b', class: "spinner-el" }), index.h("span", { key: '0f54afe3126e58fc83882c8baf1b92a763ad33ae', class: "btn-label" }, this.confirmLabel)))))))));
|
|
248
262
|
}
|
|
249
263
|
static get watchers() { return {
|
|
250
264
|
"open": [{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
|
+
var field = require('./field-CiEtk37y.js');
|
|
4
5
|
var collectionIdentity = require('./collection-identity-CV5HLD9Z.js');
|
|
5
6
|
var utils = require('./utils-DGQOjEwT.js');
|
|
6
7
|
|
|
@@ -70,7 +71,7 @@ function clamp(value, minimum, maximum) {
|
|
|
70
71
|
return Math.min(Math.max(value, minimum), maximum);
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
const dropdownCss = () => `:host{display:block;width:100%;min-width:0;box-sizing:border-box}.dropdown-wrapper{display:flex;flex-direction:column;position:relative;width:100%;min-width:0;max-width:100%;box-sizing:border-box}.dropdown-label{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-bold, 600);color:var(--q-fg-muted, #9ca3af);margin-bottom:6px}.dropdown-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--q-dropdown-bg, var(--q-bg-surface-2, #374151));border:var(--q-dropdown-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-dropdown-radius, var(--q-radius
|
|
74
|
+
const dropdownCss = () => `:host{min-width:0;--_q-control-height:var(--q-context-control-height, var(--q-control-height-md, 2.25rem));--_q-control-font:var(--q-context-control-font, var(--q-control-font-md, 0.875rem));--_q-control-line:var(--q-context-control-line, var(--q-control-line-md, 1.25rem));--_q-control-padding:var(--q-context-control-padding, var(--q-control-padding-md, 0.75rem));--_q-control-icon:var(--q-context-control-icon, var(--q-control-icon-md, 1rem));--_q-control-radius:var(--q-context-control-radius, var(--q-control-radius-md, 0.4375rem))}.size-sm{--_q-control-height:var(--q-control-height-sm, 1.75rem);--_q-control-font:var(--q-control-font-sm, 0.75rem);--_q-control-line:var(--q-control-line-sm, 1rem);--_q-control-padding:var(--q-control-padding-sm, 0.5rem);--_q-control-icon:var(--q-control-icon-sm, 0.875rem);--_q-control-radius:var(--q-control-radius-sm, 0.34375rem)}.size-md{--_q-control-height:var(--q-control-height-md, 2.25rem);--_q-control-font:var(--q-control-font-md, 0.875rem);--_q-control-line:var(--q-control-line-md, 1.25rem);--_q-control-padding:var(--q-control-padding-md, 0.75rem);--_q-control-icon:var(--q-control-icon-md, 1rem);--_q-control-radius:var(--q-control-radius-md, 0.4375rem)}.size-lg{--_q-control-height:var(--q-control-height-lg, 2.75rem);--_q-control-font:var(--q-control-font-lg, 1rem);--_q-control-line:var(--q-control-line-lg, 1.5rem);--_q-control-padding:var(--q-control-padding-lg, 1rem);--_q-control-icon:var(--q-control-icon-lg, 1.25rem);--_q-control-radius:var(--q-control-radius-lg, 0.53125rem)}:host{display:block;width:100%;min-width:0;box-sizing:border-box}.dropdown-wrapper{display:flex;flex-direction:column;position:relative;width:100%;min-width:0;max-width:100%;box-sizing:border-box}.dropdown-label{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-bold, 600);color:var(--q-fg-muted, #9ca3af);margin-bottom:6px}.dropdown-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--q-dropdown-bg, var(--q-bg-surface-2, #374151));border:var(--q-dropdown-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-dropdown-radius, var(--q-field-radius, var(--_q-control-radius)));padding:var(--q-dropdown-padding, var(--q-field-padding, 10px 14px));line-height:1.2;box-sizing:border-box;outline:none;cursor:pointer;color:var(--q-fg-base, #f9fafb);font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-normal, 400);transition:border-color var(--q-transition-fast, 150ms ease), box-shadow var(--q-transition-fast, 150ms ease)}.dropdown-trigger:focus-visible{border-color:var(--q-color-primary, #60a5fa);box-shadow:0 0 0 1px var(--q-color-primary, #60a5fa)}.trigger-content{display:flex;flex:1;align-items:center;min-width:0;gap:var(--q-dropdown-icon-gap, 10px)}.trigger-content slot[name='icon-left']::slotted(*){flex:0 0 auto}.trigger-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trigger-text.is-placeholder{color:var(--q-fg-muted, #9ca3af);opacity:0.8}.chevron-icon{width:16px;height:16px;color:var(--q-fg-muted, #9ca3af);transition:transform var(--q-transition-fast, 150ms ease)}.is-open .chevron-icon{transform:rotate(180deg)}.dropdown-menu{position:fixed;inset:auto;display:flex;flex-direction:column;width:auto;max-width:calc(100vw - 16px);margin:0;padding:4px 0;overflow:hidden;list-style:none;z-index:1000;visibility:hidden;background:var(--q-dropdown-menu-bg, var(--q-bg-surface-3, #4b5563));border:var(--q-dropdown-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-dropdown-radius, var(--q-radius-md, 8px));box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));box-sizing:border-box}.dropdown-menu[data-placement='top']{transform-origin:bottom center}.dropdown-menu[data-placement='bottom']{transform-origin:top center}.menu-item{padding:10px 14px;cursor:pointer;box-sizing:border-box;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-normal, 400);color:var(--q-fg-base, #f9fafb);transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.menu-item:hover,.menu-item.is-focused,.menu-item:focus{background:var(--q-color-primary, #60a5fa);color:var(--q-fg-base, #f9fafb);outline:none}.menu-item.is-selected{background:rgba(96, 165, 250, 0.15);background:color-mix(in srgb, var(--q-color-primary, #60a5fa) 15%, transparent);font-weight:var(--q-font-weight-bold, 600);border-left:3px solid var(--q-color-primary, #60a5fa);padding-left:11px;}.is-disabled{opacity:0.6}.is-disabled .dropdown-trigger{cursor:not-allowed;pointer-events:none}.dropdown-wrapper.size-sm .menu-item{padding:var(--q-dropdown-padding, 6px 10px);font-size:var(--q-dropdown-font-size, var(--q-font-size-sm, 0.7rem))}.dropdown-wrapper.size-sm .menu-item.is-selected{padding-left:7px}.dropdown-wrapper.size-md .menu-item{padding:var(--q-dropdown-padding, 10px 14px);font-size:var(--q-dropdown-font-size, var(--q-font-size-base, 0.9rem))}.dropdown-wrapper.size-md .menu-item.is-selected{padding-left:11px}.dropdown-wrapper.size-lg .menu-item{padding:var(--q-dropdown-padding, 14px 18px);font-size:var(--q-dropdown-font-size, var(--q-font-size-lg, 1rem))}.dropdown-wrapper.size-lg .menu-item.is-selected{padding-left:15px}.dropdown-search-container{padding:8px;border-bottom:var(--q-dropdown-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));box-sizing:border-box}.dropdown-search-input{width:100%;padding:var(--q-dropdown-padding, 10px 14px);font-family:var(--q-font-family, inherit);font-size:var(--q-dropdown-font-size, var(--q-font-size-base, 0.9rem));color:var(--q-fg-base, #f9fafb);background:var(--q-bg-surface-2, #374151);border:var(--q-dropdown-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-dropdown-radius, var(--q-radius-md, 8px));outline:none;box-sizing:border-box;transition:border-color var(--q-transition-fast, 150ms ease)}.dropdown-search-input:focus{border-color:var(--q-color-primary, #60a5fa)}.dropdown-wrapper.size-sm .dropdown-search-container{padding:4px}.dropdown-wrapper.size-sm .dropdown-search-input{padding:var(--q-dropdown-padding, 6px 10px);font-size:var(--q-dropdown-font-size, var(--q-font-size-sm, 0.7rem))}.dropdown-wrapper.size-md .dropdown-search-container{padding:6px}.dropdown-wrapper.size-md .dropdown-search-input{padding:var(--q-dropdown-padding, 10px 14px);font-size:var(--q-dropdown-font-size, var(--q-font-size-base, 0.9rem))}.dropdown-wrapper.size-lg .dropdown-search-container{padding:8px}.dropdown-wrapper.size-lg .dropdown-search-input{padding:var(--q-dropdown-padding, 14px 18px);font-size:var(--q-dropdown-font-size, var(--q-font-size-lg, 1rem))}.dropdown-items-list{flex:1 1 auto;min-height:0;margin:0;padding:4px 0;list-style:none;max-height:240px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;box-sizing:border-box}.menu-item.is-empty{color:var(--q-fg-muted, #9ca3af);font-style:italic;cursor:default;pointer-events:none}.menu-item.is-loading-more{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-sm, 0.7rem);padding:8px;cursor:default;pointer-events:none;background:transparent !important}.spinner-circle{width:14px;height:14px;border:2px solid var(--q-border-color, #4b5563);border-top-color:var(--q-color-primary, #60a5fa);border-radius:50%;animation:dropdown-spin 0.6s linear infinite;box-sizing:border-box}@keyframes dropdown-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.dropdown-items-list::-webkit-scrollbar{width:var(--q-scrollbar-width, 6px);height:var(--q-scrollbar-width, 6px)}.dropdown-items-list::-webkit-scrollbar-track{background:var(--q-scrollbar-track-color, transparent)}.dropdown-items-list::-webkit-scrollbar-thumb{background:var(--q-scrollbar-thumb-color, var(--q-border-color, #4b5563));border-radius:var(--q-scrollbar-radius, var(--q-radius-sm, 4px))}.dropdown-items-list::-webkit-scrollbar-thumb:hover{background:var(--q-scrollbar-thumb-color-hover, var(--q-color-primary, #60a5fa))}.dropdown-wrapper:is(.size-sm,.size-md,.size-lg,.size-inherit) .dropdown-trigger{min-height:var(--q-dropdown-height, var(--_q-control-height));padding:var(--q-dropdown-padding, 0 var(--_q-control-padding));font-size:var(--q-dropdown-font-size, var(--_q-control-font));line-height:var(--_q-control-line);background:var(--q-dropdown-bg, var(--q-field-bg, var(--q-bg-field, var(--q-bg-surface-3, #22304d))))}.dropdown-wrapper .chevron-icon{width:var(--_q-control-icon);height:var(--_q-control-icon)}.dropdown-menu{background:var(--q-dropdown-menu-bg, var(--q-bg-floating, var(--q-bg-surface-4, #2c3a58)))}.dropdown-trigger[aria-invalid='true']{border-color:var(--q-color-danger, #f87171)}:host{min-width:0}.q-label-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip-path:inset(50%);white-space:nowrap;border:0 !important}.q-field-feedback{display:block;min-block-size:var(--_q-feedback-min, var(--q-context-feedback-min, 0px));font-family:var(--q-font-family, inherit);font-size:var(--q-field-feedback-font, .75rem);font-weight:400;line-height:1rem;color:var(--q-fg-muted, #9ca3af);overflow-wrap:anywhere;margin:min(var(--q-space-xs, .25rem), var(--_q-feedback-min, var(--q-context-feedback-min, 0px))) 0 0}.q-field-feedback:not(:empty){margin-top:var(--q-space-xs, .25rem)}.q-field-feedback.error-msg{color:var(--_q-field-error-color, var(--q-color-danger, #f87171))}[part='label']:not(.q-label-hidden){font-family:var(--q-font-family, inherit);font-size:var(--q-field-label-font, .75rem);font-weight:600;line-height:1rem;margin-bottom:var(--q-space-xs, .25rem);overflow-wrap:anywhere}`;
|
|
74
75
|
|
|
75
76
|
const MENU_OFFSET = 4;
|
|
76
77
|
const QDropdown = class {
|
|
@@ -95,11 +96,17 @@ const QDropdown = class {
|
|
|
95
96
|
label;
|
|
96
97
|
/** Accessible name for the trigger and option list when no visible label is available. */
|
|
97
98
|
ariaLabel = null;
|
|
99
|
+
/** Supporting text, replaced by an active error. */
|
|
100
|
+
description;
|
|
98
101
|
placeholder = 'Select an option...';
|
|
99
102
|
/** Options to render; strings use the same text for label and value, while objects allow separate values. */
|
|
100
103
|
options = [];
|
|
101
104
|
value = '';
|
|
102
|
-
|
|
105
|
+
/** Keep the label accessible without displaying it. */
|
|
106
|
+
labelHidden = false;
|
|
107
|
+
/** Omitted inherits the enclosing form; false cancels reservation. */
|
|
108
|
+
reserveFeedback;
|
|
109
|
+
size = 'inherit';
|
|
103
110
|
searchable = false;
|
|
104
111
|
/** Delegates filtering and pagination to the consumer. */
|
|
105
112
|
externalSearch = false;
|
|
@@ -111,6 +118,9 @@ const QDropdown = class {
|
|
|
111
118
|
/** Minimum distance maintained between the open menu and viewport edges. */
|
|
112
119
|
collisionPadding = 8;
|
|
113
120
|
disabled = false;
|
|
121
|
+
required = false;
|
|
122
|
+
/** Custom validation error; independent of currently loaded options. */
|
|
123
|
+
error;
|
|
114
124
|
name;
|
|
115
125
|
isOpen = false;
|
|
116
126
|
focusedIndex = -1;
|
|
@@ -147,6 +157,7 @@ const QDropdown = class {
|
|
|
147
157
|
this.stopFloatingUpdates();
|
|
148
158
|
}
|
|
149
159
|
componentDidRender() {
|
|
160
|
+
this.syncValidity();
|
|
150
161
|
if (this.isOpen) {
|
|
151
162
|
this.openFloatingMenu();
|
|
152
163
|
return;
|
|
@@ -157,6 +168,28 @@ const QDropdown = class {
|
|
|
157
168
|
if (this.internals && typeof this.internals.setFormValue === 'function') {
|
|
158
169
|
this.internals.setFormValue(newValue);
|
|
159
170
|
}
|
|
171
|
+
this.syncValidity();
|
|
172
|
+
}
|
|
173
|
+
syncValidity() {
|
|
174
|
+
if (typeof this.internals?.setValidity !== 'function')
|
|
175
|
+
return;
|
|
176
|
+
const message = this.disabled ? '' : this.error?.trim() || (this.required && !this.value ? 'Please select an option.' : '');
|
|
177
|
+
this.internals.setValidity(message ? this.error?.trim() ? { customError: true } : { valueMissing: true } : {}, message, this.triggerEl);
|
|
178
|
+
}
|
|
179
|
+
async checkValidity() {
|
|
180
|
+
this.syncValidity();
|
|
181
|
+
return this.disabled || !(this.error?.trim() || (this.required && !this.value));
|
|
182
|
+
}
|
|
183
|
+
async reportValidity() {
|
|
184
|
+
const valid = await this.checkValidity();
|
|
185
|
+
if (!valid) {
|
|
186
|
+
this.triggerEl?.focus();
|
|
187
|
+
this.internals?.reportValidity?.();
|
|
188
|
+
}
|
|
189
|
+
return valid;
|
|
190
|
+
}
|
|
191
|
+
async focusElement() {
|
|
192
|
+
this.triggerEl?.focus();
|
|
160
193
|
}
|
|
161
194
|
watchOptions() {
|
|
162
195
|
if (this.externalSearch) {
|
|
@@ -176,12 +209,14 @@ const QDropdown = class {
|
|
|
176
209
|
if (!this.searchTerm) {
|
|
177
210
|
this.searchTerm = '';
|
|
178
211
|
}
|
|
212
|
+
this.syncValidity();
|
|
179
213
|
}
|
|
180
214
|
formResetCallback() {
|
|
181
215
|
this.value = this.initialValue;
|
|
182
216
|
if (this.internals && typeof this.internals.setFormValue === 'function') {
|
|
183
217
|
this.internals.setFormValue(this.value);
|
|
184
218
|
}
|
|
219
|
+
this.syncValidity();
|
|
185
220
|
}
|
|
186
221
|
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
187
222
|
clearScrollLoading() {
|
|
@@ -535,16 +570,16 @@ const QDropdown = class {
|
|
|
535
570
|
const displayLabel = selectedOption && selectedLabel ? selectedLabel : this.placeholder;
|
|
536
571
|
const hasSelection = selectedOption !== undefined;
|
|
537
572
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
538
|
-
return (index.h("div", { key: '
|
|
573
|
+
return (index.h("div", { key: 'a6f10c4ca5341bffc7c130664c19241fcf4ab25c', style: field.feedbackStyle(this.reserveFeedback), class: {
|
|
539
574
|
'dropdown-wrapper': true,
|
|
540
575
|
'is-open': this.isOpen,
|
|
541
576
|
'is-disabled': this.disabled,
|
|
542
577
|
[`size-${this.size}`]: true
|
|
543
|
-
}, onKeyDown: this.handleKeyDown }, this.label && (index.h("label", { key: '
|
|
578
|
+
}, onKeyDown: this.handleKeyDown }, this.label && (index.h("label", { key: '862569b26c74fafb2cd01ece2ca26990e6ebed56', class: { 'dropdown-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), index.h("button", { key: 'd4292e0a84fadae6ae1ac3efba4037dc8f9378bd', ref: (el) => (this.triggerEl = el), id: "q-field", class: "dropdown-trigger", part: "trigger", type: "button", disabled: this.disabled, onClick: this.handleTriggerClick, onFocus: this.handleFocus, onBlur: this.handleBlur, "aria-haspopup": "listbox", "aria-required": this.required ? 'true' : 'false', "aria-invalid": this.error || (this.required && !this.value) ? 'true' : 'false', "aria-describedby": this.error || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": this.isOpen ? 'q-field-menu' : undefined, "aria-activedescendant": this.isOpen && this.focusedIndex >= 0 ? `q-field-item-${this.focusedIndex}` : undefined }, index.h("span", { key: '3f2035f700291d11c6c48d592a8cbaf533fbcebe', class: "trigger-content" }, index.h("slot", { key: '8041c1a4e9f634c49d4121f7d9cf1fa9c24f2902', name: "icon-left" }), index.h("span", { key: '677081d737d98e8f8902eca7cef2b4a0db332c6d', class: { 'trigger-text': true, 'is-placeholder': !hasSelection } }, displayLabel)), index.h("svg", { key: 'f1c8942fe9081869a5112d5058a7efca4aa62a4a', class: "chevron-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("polyline", { key: 'cc5b5fc75efc22b2b2d864376839557f742c6bbf', points: "6 9 12 15 18 9" }))), field.fieldFeedback('q-field-error', this.error, this.description), this.isOpen && (index.h("div", { key: '8445bfa04456f15ae8c56e1ac04e6d4c2e04fa41', ref: (el) => (this.menuEl = el), id: "q-field-menu", class: "dropdown-menu", part: "menu", role: "listbox", popover: "manual", "aria-label": ariaLabel || this.label || 'Options' }, this.searchable && (index.h("div", { key: '45369b8e80215adfb4f77916048302286a1ffec5', class: "dropdown-search-container" }, index.h("input", { key: 'a48b8c411aca183cd83ed8acb6c082fa7a208212', ref: (el) => (this.searchInputEl = el), type: "text", class: "dropdown-search-input", placeholder: "Search...", value: this.searchTerm, onInput: this.handleSearchInput, role: "combobox", "aria-autocomplete": "list", "aria-controls": "q-field-menu", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-activedescendant": this.focusedIndex >= 0 ? `q-field-item-${this.focusedIndex}` : undefined }))), index.h("ul", { key: '57e165a2d8cdb0244626b986fb216bb3a1c40af1', ref: (el) => (this.itemsListEl = el), class: "dropdown-items-list", onScroll: this.handleScroll }, opts.length === 0 && !this.loading ? (index.h("li", { class: "menu-item is-empty" }, "No matches found")) : (identifiedOptions.map(({ item: option, index: index$1, key }) => (index.h("li", { key: key, id: `q-field-item-${index$1}`, class: {
|
|
544
579
|
'menu-item': true,
|
|
545
580
|
'is-selected': option.value === this.value,
|
|
546
581
|
'is-focused': index$1 === this.focusedIndex
|
|
547
|
-
}, tabindex: -1, part: `item ${option.value === this.value ? 'selected-item' : ''} ${index$1 === this.focusedIndex ? 'focused-item' : ''}`, role: "option", "aria-selected": option.value === this.value ? 'true' : 'false', onClick: () => this.handleSelect(option) }, this.getOptionLabel(option))))), (this.loading || this.isScrollingLoading) && (index.h("li", { key: '
|
|
582
|
+
}, tabindex: -1, part: `item ${option.value === this.value ? 'selected-item' : ''} ${index$1 === this.focusedIndex ? 'focused-item' : ''}`, role: "option", "aria-selected": option.value === this.value ? 'true' : 'false', onClick: () => this.handleSelect(option) }, this.getOptionLabel(option))))), (this.loading || this.isScrollingLoading) && (index.h("li", { key: '549ee293d9c186af7393fa3ab7d63b4f91dab061', class: "menu-item is-loading-more" }, index.h("span", { key: 'e35295ba4f99353c4c198d316f10141292d819f8', class: "spinner-circle" }), index.h("span", { key: '914f1c4b3e8e27fceed50397dbe99a1edd24fabe' }, "Loading..."))))))));
|
|
548
583
|
}
|
|
549
584
|
static get delegatesFocus() { return true; }
|
|
550
585
|
static get formAssociated() { return true; }
|
|
@@ -552,6 +587,15 @@ const QDropdown = class {
|
|
|
552
587
|
"value": [{
|
|
553
588
|
"watchValue": 0
|
|
554
589
|
}],
|
|
590
|
+
"required": [{
|
|
591
|
+
"syncValidity": 0
|
|
592
|
+
}],
|
|
593
|
+
"error": [{
|
|
594
|
+
"syncValidity": 0
|
|
595
|
+
}],
|
|
596
|
+
"disabled": [{
|
|
597
|
+
"syncValidity": 0
|
|
598
|
+
}],
|
|
555
599
|
"options": [{
|
|
556
600
|
"watchOptions": 0
|
|
557
601
|
}],
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
|
+
var tokens = require('./tokens-DGECOqpA.js');
|
|
4
5
|
|
|
5
6
|
const skippedInputTypes = new Set(['button', 'checkbox', 'color', 'file', 'hidden', 'image', 'radio', 'range', 'reset', 'submit']);
|
|
6
7
|
function getNamedControls(formEl, hostEl) {
|
|
@@ -294,7 +295,7 @@ function toBoolean(value) {
|
|
|
294
295
|
return false;
|
|
295
296
|
}
|
|
296
297
|
|
|
297
|
-
const formCss = () => `:host{display:block;box-sizing:border-box}.form-shell{display:flex;flex-direction:column;gap:var(--q-form-gap,
|
|
298
|
+
const formCss = () => `:host{display:block;box-sizing:border-box}.form-shell{display:flex;flex-direction:column;gap:var(--q-form-gap, var(--q-space-xl, 1.5rem));width:100%;color:var(--q-form-fg, var(--q-fg-base, #172033));font-family:var(--q-font-family, inherit)}.form-header.is-hidden,.form-actions.is-hidden{display:none}.form-title{margin:0;color:var(--q-form-title-color, var(--q-fg-base, #172033));font-size:var(--q-form-title-size, var(--q-font-size-lg, 1rem));font-weight:var(--q-font-weight-bold, 600);line-height:1.3}form{display:flex;flex-direction:column;gap:var(--q-form-gap, var(--q-space-xl, 1.5rem));width:100%;margin:0}.form-body{display:flex;flex-direction:column;gap:var(--q-form-field-gap, 12px);min-width:0}.form-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:var(--q-form-action-gap, var(--q-space-sm, .5rem));padding-top:var(--q-form-actions-padding-top, 4px)}:host{min-width:0}.q-label-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip-path:inset(50%);white-space:nowrap;border:0 !important}.q-field-feedback{display:block;min-block-size:var(--_q-feedback-min, var(--q-context-feedback-min, 0px));font-family:var(--q-font-family, inherit);font-size:var(--q-field-feedback-font, .75rem);font-weight:400;line-height:1rem;color:var(--q-fg-muted, #9ca3af);overflow-wrap:anywhere;margin:min(var(--q-space-xs, .25rem), var(--_q-feedback-min, var(--q-context-feedback-min, 0px))) 0 0}.q-field-feedback:not(:empty){margin-top:var(--q-space-xs, .25rem)}.q-field-feedback.error-msg{color:var(--_q-field-error-color, var(--q-color-danger, #f87171))}[part='label']:not(.q-label-hidden){font-family:var(--q-font-family, inherit);font-size:var(--q-field-label-font, .75rem);font-weight:600;line-height:1rem;margin-bottom:var(--q-space-xs, .25rem);overflow-wrap:anywhere}`;
|
|
298
299
|
|
|
299
300
|
let formIds = 0;
|
|
300
301
|
const QForm = class {
|
|
@@ -306,6 +307,9 @@ const QForm = class {
|
|
|
306
307
|
get el() { return index.getElement(this); }
|
|
307
308
|
/** Names the native form when no custom header is slotted. */
|
|
308
309
|
label;
|
|
310
|
+
size = 'inherit';
|
|
311
|
+
reserveFeedback;
|
|
312
|
+
labelHidden = false;
|
|
309
313
|
/** Prevents the native submit event's default navigation. */
|
|
310
314
|
preventDefault = true;
|
|
311
315
|
/** Controls how Enter behaves inside text-like controls. */
|
|
@@ -316,6 +320,8 @@ const QForm = class {
|
|
|
316
320
|
autocomplete = 'on';
|
|
317
321
|
enctype = 'application/x-www-form-urlencoded';
|
|
318
322
|
target;
|
|
323
|
+
/** Names the native form without requiring a visible heading. */
|
|
324
|
+
ariaLabel = null;
|
|
319
325
|
/** Emitted after a valid submit with collected values and FormData. */
|
|
320
326
|
qSubmit;
|
|
321
327
|
qReset;
|
|
@@ -499,9 +505,9 @@ const QForm = class {
|
|
|
499
505
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
500
506
|
render() {
|
|
501
507
|
const hasHeaderContent = Boolean(this.label) || this.hasHeaderSlot;
|
|
502
|
-
const formLabelledBy = this.label && !this.hasHeaderSlot ? this.titleId : undefined;
|
|
503
|
-
const formAriaLabel = this.label && this.hasHeaderSlot ? this.label : undefined;
|
|
504
|
-
return (index.h("div", { key: '
|
|
508
|
+
const formLabelledBy = !this.ariaLabel && this.label && !this.hasHeaderSlot ? this.titleId : undefined;
|
|
509
|
+
const formAriaLabel = this.ariaLabel?.trim() || (this.label && this.hasHeaderSlot ? this.label : undefined);
|
|
510
|
+
return (index.h(index.Host, { key: '85fff51774e0bb0e73948cd14b8100aef6556c31', style: { ...tokens.controlScope(this.size), '--q-context-feedback-min': this.reserveFeedback === undefined ? '' : this.reserveFeedback ? '1rem' : '0px' } }, index.h("div", { key: 'f3dff40fcdfddc896787295c59c3e97f5d6c15ad', class: "form-shell" }, index.h("div", { key: '0b1fb2465c7ce04185d9cc65524562c46efe152f', class: { 'form-header': true, 'is-hidden': !hasHeaderContent, 'q-label-hidden': this.labelHidden }, part: "header" }, index.h("slot", { key: '391f9944a4c920a639bc62f0f1583d0cf3920884', name: "header", ref: (el) => (this.headerSlot = el), onSlotchange: this.handleHeaderSlotChange }, this.label && index.h("h2", { key: '54bd0774bbde169fd1f6f960fce0567daecb9db4', id: this.titleId, class: "form-title" }, this.label))), index.h("form", { key: 'ddb1b7d09ffe4dd64bbec548656ea0c658d56389', ref: (el) => (this.formEl = el), action: this.action, method: this.method, autocomplete: this.autocomplete, enctype: this.enctype, target: this.target, noValidate: this.noValidate, "aria-labelledby": formLabelledBy, "aria-label": formAriaLabel, part: "form", onSubmit: this.handleSubmit, onReset: this.handleReset }, index.h("div", { key: '7f5d47a6e57c2e7e3972d705e8e556e159584445', class: "form-body", part: "body" }, index.h("slot", { key: '3515728fd810c3c6d6352932ce56c07cbecc5d39' })), index.h("div", { key: '09e06d1ef03559336d7ac40de72c824ad8e7d656', class: { 'form-actions': true, 'is-hidden': !this.hasActionsSlot }, part: "actions" }, index.h("slot", { key: '05a368aea36d4c18d569d60831cb31f737ac5854', name: "actions", ref: (el) => (this.actionsSlot = el), onSlotchange: this.handleActionsSlotChange }))))));
|
|
505
511
|
}
|
|
506
512
|
};
|
|
507
513
|
QForm.style = formCss();
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
|
+
var tokens = require('./tokens-DGECOqpA.js');
|
|
5
|
+
|
|
6
|
+
const gridCss = () => `:host{display:block;min-width:0}div{display:grid;min-width:0;align-items:start;column-gap:var(--_q-column-gap);grid-template-columns:repeat(auto-fit, minmax(min(100%, max(var(--_q-min-item), calc((100% - (var(--_q-columns) - 1) * var(--_q-column-gap)) / var(--_q-columns)))), 1fr))}slot{display:contents}::slotted(*){min-width:0}::slotted([data-q-span='full']){grid-column:1 / -1}`;
|
|
7
|
+
|
|
8
|
+
const QGrid = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
}
|
|
12
|
+
columns = 2;
|
|
13
|
+
minItemWidth = '16rem';
|
|
14
|
+
gap = 'lg';
|
|
15
|
+
rowGap;
|
|
16
|
+
columnGap;
|
|
17
|
+
render() {
|
|
18
|
+
const columns = Math.min(4, Math.max(1, Number(this.columns) || 2));
|
|
19
|
+
return index.h("div", { key: '0e35bf62529cfe1534ee7f93878569e678719338', part: "layout", style: { '--_q-columns': String(columns), '--_q-min-item': this.minItemWidth, '--_q-column-gap': tokens.spaceValue(this.columnGap ?? this.gap), rowGap: tokens.spaceValue(this.rowGap ?? this.gap) } }, index.h("slot", { key: 'bc4ace6988aac76c2c225fb8c0dd991a287b960f' }));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
QGrid.style = gridCss();
|
|
23
|
+
|
|
24
|
+
exports.q_grid = QGrid;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
4
|
var registry = require('./registry-BhkCNgxt.js');
|
|
5
5
|
|
|
6
6
|
const LUCIDE_STATIC_VERSION = '0.416.0';
|
|
@@ -183,16 +183,20 @@ const QIcon = class {
|
|
|
183
183
|
get el() { return index.getElement(this); }
|
|
184
184
|
/** Icon name or local asset filename. */
|
|
185
185
|
name;
|
|
186
|
-
/** Trusted compile-time icon data. Takes precedence over `name` and never performs I/O. */
|
|
187
|
-
definition;
|
|
188
186
|
/** Supports built-in libraries, local assets, and custom URL templates. */
|
|
187
|
+
library;
|
|
188
|
+
/** @deprecated Use library. Used only when library is unset. */
|
|
189
189
|
lib = 'lucide';
|
|
190
|
-
/** Base path used when `
|
|
190
|
+
/** Base path used when `library="local"`. */
|
|
191
191
|
localPath = '/assets/icons/';
|
|
192
192
|
/** Overrides the version of built-in remote libraries. */
|
|
193
|
+
libraryVersion;
|
|
194
|
+
/** @deprecated Use libraryVersion. Used only when libraryVersion is unset. */
|
|
193
195
|
libVersion;
|
|
194
196
|
/** SVG fetch timeout in milliseconds. */
|
|
195
197
|
fetchTimeout = DEFAULT_FETCH_TIMEOUT_MS;
|
|
198
|
+
/** Trusted compile-time icon data. Takes precedence over `name` and never performs I/O. */
|
|
199
|
+
definition;
|
|
196
200
|
/** Accepts a preset, pixel number, or CSS size. */
|
|
197
201
|
size = 'md';
|
|
198
202
|
color = 'currentColor';
|
|
@@ -295,9 +299,9 @@ const QIcon = class {
|
|
|
295
299
|
}
|
|
296
300
|
const url = resolveIconUrl({
|
|
297
301
|
name: this.name,
|
|
298
|
-
library: this.lib,
|
|
302
|
+
library: this.library ?? this.lib,
|
|
299
303
|
localPath: this.localPath,
|
|
300
|
-
libraryVersion: this.libVersion,
|
|
304
|
+
libraryVersion: this.libraryVersion ?? this.libVersion,
|
|
301
305
|
});
|
|
302
306
|
if (isBinaryIconUrl(url)) {
|
|
303
307
|
if (this.fetchId === currentFetchId) {
|
|
@@ -362,11 +366,17 @@ const QIcon = class {
|
|
|
362
366
|
"lib": [{
|
|
363
367
|
"watchHandler": 0
|
|
364
368
|
}],
|
|
369
|
+
"library": [{
|
|
370
|
+
"watchHandler": 0
|
|
371
|
+
}],
|
|
365
372
|
"localPath": [{
|
|
366
373
|
"watchHandler": 0
|
|
367
374
|
}],
|
|
368
375
|
"libVersion": [{
|
|
369
376
|
"watchHandler": 0
|
|
377
|
+
}],
|
|
378
|
+
"libraryVersion": [{
|
|
379
|
+
"watchHandler": 0
|
|
370
380
|
}]
|
|
371
381
|
}; }
|
|
372
382
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-BLlc_shC.js');
|
|
4
|
+
var tokens = require('./tokens-DGECOqpA.js');
|
|
5
|
+
|
|
6
|
+
const inlineCss = () => `:host{display:block;min-width:0}div{display:flex;min-width:0}slot{display:contents}::slotted(*){min-width:0}`;
|
|
7
|
+
|
|
8
|
+
const QInline = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
}
|
|
12
|
+
gap = 'sm';
|
|
13
|
+
align = 'center';
|
|
14
|
+
justify = 'start';
|
|
15
|
+
wrap = true;
|
|
16
|
+
render() {
|
|
17
|
+
return index.h("div", { key: 'ebe4ece8eeb27fbe52feda65eda69a7717fc3c44', part: "layout", style: { gap: tokens.spaceValue(this.gap), alignItems: this.align, justifyContent: this.justify === 'between' ? 'space-between' : this.justify, flexWrap: this.wrap ? 'wrap' : 'nowrap' } }, index.h("slot", { key: '939bc58eb0fb9a3bf4246e51f7587c65d1014086' }));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
QInline.style = inlineCss();
|
|
21
|
+
|
|
22
|
+
exports.q_inline = QInline;
|