@webquark/core 1.1.0-dev.4 → 1.1.0-dev.6
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 +41 -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 +229 -8
- 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.css +119 -0
- package/dist/collection/components/layout/navbar/navbar.js +310 -9
- package/dist/collection/components/layout/navbar/test/navbar.cmp.test.js +317 -1
- 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 +229 -8
- 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-0aecd9b1.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/{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 +11 -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 +29 -1
- package/dist/types/components/layout/navbar/navbar.types.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 +911 -68
- package/dist/types/index.d.ts +8 -3
- 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-0aecd9b1.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/{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 +141 -0
- package/scripts/wq-switch/dist/index.js +543 -0
- package/scripts/wq-switch/dist/setup.js +349 -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-5c08aa94.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-5c08aa94.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
|
@@ -6,7 +6,7 @@ let dialogId = 0;
|
|
|
6
6
|
/**
|
|
7
7
|
* Modal confirmation or message dialog with focus trapping and safe solid backdrops.
|
|
8
8
|
* @slot - Custom dialog body content.
|
|
9
|
-
* @slot header - Custom header content. Provide an accessible name when replacing `
|
|
9
|
+
* @slot header - Custom header content. Provide an accessible name when replacing `heading`.
|
|
10
10
|
* @slot footer - Custom action content. Consumers own disabled/loading behavior for slotted controls.
|
|
11
11
|
* @part backdrop - Backdrop click target.
|
|
12
12
|
* @part modal - Dialog surface.
|
|
@@ -20,14 +20,25 @@ let dialogId = 0;
|
|
|
20
20
|
export class QDialog {
|
|
21
21
|
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
22
22
|
/** Rendered by the default dialog header. */
|
|
23
|
+
heading;
|
|
24
|
+
/** @deprecated Use heading. Used only when heading is unset. */
|
|
23
25
|
dialogTitle;
|
|
24
|
-
/** Accessible name for the dialog, especially when using a custom header without
|
|
26
|
+
/** Accessible name for the dialog, especially when using a custom header without heading. */
|
|
25
27
|
ariaLabel = null;
|
|
26
28
|
/** Rendered by the default dialog body. */
|
|
27
29
|
message;
|
|
30
|
+
size = 'md';
|
|
28
31
|
/** `solid` is CEF-safe; `none` keeps only a transparent click layer. */
|
|
32
|
+
backdrop;
|
|
33
|
+
/** @deprecated Use backdrop. Used only when backdrop is unset. */
|
|
29
34
|
backdropEffect = 'solid';
|
|
35
|
+
/** Allows Escape to close the dialog when not loading. Defaults to true. */
|
|
36
|
+
closeOnEscape;
|
|
37
|
+
/** @deprecated Use closeOnEscape. Used only when closeOnEscape is unset. */
|
|
30
38
|
closeOnEsc = true;
|
|
39
|
+
/** Allows a backdrop click to close the dialog when not loading. Defaults to true. */
|
|
40
|
+
closeOnBackdropClick;
|
|
41
|
+
/** @deprecated Use closeOnBackdropClick. Used only when closeOnBackdropClick is unset. */
|
|
31
42
|
closeOnOverlayClick = true;
|
|
32
43
|
showCancel = true;
|
|
33
44
|
cancelLabel = 'Cancel';
|
|
@@ -44,6 +55,7 @@ export class QDialog {
|
|
|
44
55
|
qClose;
|
|
45
56
|
isVisible = false;
|
|
46
57
|
isAnimatedOpen = false;
|
|
58
|
+
hasFooter = false;
|
|
47
59
|
dialogEl;
|
|
48
60
|
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
49
61
|
previousActiveElement = null;
|
|
@@ -113,7 +125,7 @@ export class QDialog {
|
|
|
113
125
|
}
|
|
114
126
|
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
115
127
|
handleGlobalKeyDown(event) {
|
|
116
|
-
if (this.open && event.key === 'Escape' && this.closeOnEsc) {
|
|
128
|
+
if (this.open && event.key === 'Escape' && (this.closeOnEscape ?? this.closeOnEsc)) {
|
|
117
129
|
this.handleCancel();
|
|
118
130
|
}
|
|
119
131
|
}
|
|
@@ -123,7 +135,7 @@ export class QDialog {
|
|
|
123
135
|
}
|
|
124
136
|
};
|
|
125
137
|
handleBackdropClick = () => {
|
|
126
|
-
if (this.closeOnOverlayClick && !this.loading) {
|
|
138
|
+
if ((this.closeOnBackdropClick ?? this.closeOnOverlayClick) && !this.loading) {
|
|
127
139
|
this.handleCancel();
|
|
128
140
|
}
|
|
129
141
|
};
|
|
@@ -170,11 +182,11 @@ export class QDialog {
|
|
|
170
182
|
clearDialogTransitionWait(this.lifecycleState);
|
|
171
183
|
}
|
|
172
184
|
getResolvedBackdropEffect() {
|
|
173
|
-
return resolveDialogBackdropEffect(this.backdropEffect);
|
|
185
|
+
return resolveDialogBackdropEffect(this.backdrop ?? this.backdropEffect);
|
|
174
186
|
}
|
|
175
187
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
176
188
|
render() {
|
|
177
|
-
const titleText = this.dialogTitle;
|
|
189
|
+
const titleText = this.heading ?? this.dialogTitle;
|
|
178
190
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
179
191
|
const classes = {
|
|
180
192
|
'dialog-wrapper': true,
|
|
@@ -186,7 +198,9 @@ export class QDialog {
|
|
|
186
198
|
'dialog-backdrop': true,
|
|
187
199
|
[`effect-${backdropEffect}`]: true,
|
|
188
200
|
};
|
|
189
|
-
return (h("div", { key: '
|
|
201
|
+
return (h("div", { key: '6f4f623998914a87ff98d78799d53ca3c20f3555', class: classes, onKeyDown: this.handleKeyDown, inert: !this.open ? true : undefined }, h("div", { key: 'aa79771790f45070761516ed8ae2c81b11a8360f', class: backdropClasses, onClick: this.handleBackdropClick, part: "backdrop" }), 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" }, h("header", { key: '35bcb00625ed785cf53472337ea0bbdbd210159d', class: "dialog-header", part: "header" }, h("slot", { key: '93a34f7a8fcbe5e4f6b4014c33d296657ba941c5', name: "header" }, titleText && h("h2", { key: 'c6934914f2b02b9173eb4919b81c9791d62e34fa', id: this.titleId, class: "dialog-title" }, titleText)), h("button", { key: 'bf23a027c31222d79c1b9d9b829edd9fec223e1e', class: "dialog-close-btn", onClick: this.handleCloseButton, "aria-label": this.closeLabel, disabled: this.loading, part: "close-btn" }, h("svg", { key: '4a9c3cc58652ae38afc505987a1f2a76259743a2', class: "close-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: 'e794da24d95a5d4976fd78d628b7f42343a018c2', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '4a1f257f6a4e0b46b8c683b89dbd8927dc42c1e8', x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { key: '88339a0987a3e7b51645a473f4b56c6edfbc3ca0', class: "dialog-body", part: "body" }, h("slot", { key: '1899e12069176e097112516e4ef4197472de136c' }, this.message && h("p", { key: '8b08f2ba71257e4399d586e17f570764c3db1c94', id: this.descriptionId, class: "dialog-message" }, this.message))), h("footer", { key: '57c631fe35f40f3aeec3b9c398a6a283c013196f', class: { 'dialog-footer': true, 'is-hidden': !this.showCancel && !this.showConfirm && !this.hasFooter }, part: "footer" }, h("slot", { key: 'c85dce4c97a9dc2bc4351d71fe1b7a6da0dfab8f', name: "footer", onSlotchange: event => {
|
|
202
|
+
this.hasFooter = event.target.assignedNodes().some(node => node.nodeType === 1 || !!node.textContent?.trim());
|
|
203
|
+
} }, h("div", { key: '37eadaecaafdbd81c3f9a1a792bd1085dcb52ebb', class: "dialog-actions" }, this.showCancel && (h("button", { key: 'c94cf5d01d6bccd1a5d18f0d0763ba6ac4aab9af', class: "btn-cancel", onClick: this.handleCancel, disabled: this.loading, part: "cancel-btn" }, this.cancelLabel)), this.showConfirm && (h("button", { key: '0361c2e5080a8fcbf67bfbf0c00616ceae729f00', class: "btn-confirm", onClick: this.handleConfirm, disabled: this.loading, "aria-busy": this.loading ? 'true' : 'false', part: "confirm-btn" }, this.loading && h("span", { key: 'd1ac9a340da13bb754dda8328fe937e0de87732b', class: "spinner-el" }), h("span", { key: '0f54afe3126e58fc83882c8baf1b92a763ad33ae', class: "btn-label" }, this.confirmLabel)))))))));
|
|
190
204
|
}
|
|
191
205
|
static get is() { return "q-dialog"; }
|
|
192
206
|
static get encapsulation() { return "shadow"; }
|
|
@@ -202,7 +216,7 @@ export class QDialog {
|
|
|
202
216
|
}
|
|
203
217
|
static get properties() {
|
|
204
218
|
return {
|
|
205
|
-
"
|
|
219
|
+
"heading": {
|
|
206
220
|
"type": "string",
|
|
207
221
|
"mutable": false,
|
|
208
222
|
"complexType": {
|
|
@@ -219,6 +233,28 @@ export class QDialog {
|
|
|
219
233
|
"getter": false,
|
|
220
234
|
"setter": false,
|
|
221
235
|
"reflect": false,
|
|
236
|
+
"attribute": "heading"
|
|
237
|
+
},
|
|
238
|
+
"dialogTitle": {
|
|
239
|
+
"type": "string",
|
|
240
|
+
"mutable": false,
|
|
241
|
+
"complexType": {
|
|
242
|
+
"original": "string",
|
|
243
|
+
"resolved": "string",
|
|
244
|
+
"references": {}
|
|
245
|
+
},
|
|
246
|
+
"required": false,
|
|
247
|
+
"optional": true,
|
|
248
|
+
"docs": {
|
|
249
|
+
"tags": [{
|
|
250
|
+
"name": "deprecated",
|
|
251
|
+
"text": "Use heading. Used only when heading is unset."
|
|
252
|
+
}],
|
|
253
|
+
"text": ""
|
|
254
|
+
},
|
|
255
|
+
"getter": false,
|
|
256
|
+
"setter": false,
|
|
257
|
+
"reflect": false,
|
|
222
258
|
"attribute": "dialog-title"
|
|
223
259
|
},
|
|
224
260
|
"ariaLabel": {
|
|
@@ -233,7 +269,7 @@ export class QDialog {
|
|
|
233
269
|
"optional": false,
|
|
234
270
|
"docs": {
|
|
235
271
|
"tags": [],
|
|
236
|
-
"text": "Accessible name for the dialog, especially when using a custom header without
|
|
272
|
+
"text": "Accessible name for the dialog, especially when using a custom header without heading."
|
|
237
273
|
},
|
|
238
274
|
"getter": false,
|
|
239
275
|
"setter": false,
|
|
@@ -260,7 +296,27 @@ export class QDialog {
|
|
|
260
296
|
"reflect": false,
|
|
261
297
|
"attribute": "message"
|
|
262
298
|
},
|
|
263
|
-
"
|
|
299
|
+
"size": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"mutable": false,
|
|
302
|
+
"complexType": {
|
|
303
|
+
"original": "'sm' | 'md' | 'lg' | 'full'",
|
|
304
|
+
"resolved": "\"full\" | \"lg\" | \"md\" | \"sm\"",
|
|
305
|
+
"references": {}
|
|
306
|
+
},
|
|
307
|
+
"required": false,
|
|
308
|
+
"optional": false,
|
|
309
|
+
"docs": {
|
|
310
|
+
"tags": [],
|
|
311
|
+
"text": ""
|
|
312
|
+
},
|
|
313
|
+
"getter": false,
|
|
314
|
+
"setter": false,
|
|
315
|
+
"reflect": true,
|
|
316
|
+
"attribute": "size",
|
|
317
|
+
"defaultValue": "'md'"
|
|
318
|
+
},
|
|
319
|
+
"backdrop": {
|
|
264
320
|
"type": "string",
|
|
265
321
|
"mutable": false,
|
|
266
322
|
"complexType": {
|
|
@@ -276,7 +332,7 @@ export class QDialog {
|
|
|
276
332
|
}
|
|
277
333
|
},
|
|
278
334
|
"required": false,
|
|
279
|
-
"optional":
|
|
335
|
+
"optional": true,
|
|
280
336
|
"docs": {
|
|
281
337
|
"tags": [],
|
|
282
338
|
"text": "`solid` is CEF-safe; `none` keeps only a transparent click layer."
|
|
@@ -284,9 +340,57 @@ export class QDialog {
|
|
|
284
340
|
"getter": false,
|
|
285
341
|
"setter": false,
|
|
286
342
|
"reflect": true,
|
|
343
|
+
"attribute": "backdrop"
|
|
344
|
+
},
|
|
345
|
+
"backdropEffect": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"mutable": false,
|
|
348
|
+
"complexType": {
|
|
349
|
+
"original": "QDialogBackdropEffect",
|
|
350
|
+
"resolved": "\"none\" | \"solid\"",
|
|
351
|
+
"references": {
|
|
352
|
+
"QDialogBackdropEffect": {
|
|
353
|
+
"location": "import",
|
|
354
|
+
"path": "./dialog.types",
|
|
355
|
+
"id": "src/components/overlays/dialog/dialog.types.ts::QDialogBackdropEffect",
|
|
356
|
+
"referenceLocation": "QDialogBackdropEffect"
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"required": false,
|
|
361
|
+
"optional": false,
|
|
362
|
+
"docs": {
|
|
363
|
+
"tags": [{
|
|
364
|
+
"name": "deprecated",
|
|
365
|
+
"text": "Use backdrop. Used only when backdrop is unset."
|
|
366
|
+
}],
|
|
367
|
+
"text": ""
|
|
368
|
+
},
|
|
369
|
+
"getter": false,
|
|
370
|
+
"setter": false,
|
|
371
|
+
"reflect": true,
|
|
287
372
|
"attribute": "backdrop-effect",
|
|
288
373
|
"defaultValue": "'solid'"
|
|
289
374
|
},
|
|
375
|
+
"closeOnEscape": {
|
|
376
|
+
"type": "boolean",
|
|
377
|
+
"mutable": false,
|
|
378
|
+
"complexType": {
|
|
379
|
+
"original": "boolean",
|
|
380
|
+
"resolved": "boolean",
|
|
381
|
+
"references": {}
|
|
382
|
+
},
|
|
383
|
+
"required": false,
|
|
384
|
+
"optional": true,
|
|
385
|
+
"docs": {
|
|
386
|
+
"tags": [],
|
|
387
|
+
"text": "Allows Escape to close the dialog when not loading. Defaults to true."
|
|
388
|
+
},
|
|
389
|
+
"getter": false,
|
|
390
|
+
"setter": false,
|
|
391
|
+
"reflect": false,
|
|
392
|
+
"attribute": "close-on-escape"
|
|
393
|
+
},
|
|
290
394
|
"closeOnEsc": {
|
|
291
395
|
"type": "boolean",
|
|
292
396
|
"mutable": false,
|
|
@@ -298,7 +402,10 @@ export class QDialog {
|
|
|
298
402
|
"required": false,
|
|
299
403
|
"optional": false,
|
|
300
404
|
"docs": {
|
|
301
|
-
"tags": [
|
|
405
|
+
"tags": [{
|
|
406
|
+
"name": "deprecated",
|
|
407
|
+
"text": "Use closeOnEscape. Used only when closeOnEscape is unset."
|
|
408
|
+
}],
|
|
302
409
|
"text": ""
|
|
303
410
|
},
|
|
304
411
|
"getter": false,
|
|
@@ -307,6 +414,25 @@ export class QDialog {
|
|
|
307
414
|
"attribute": "close-on-esc",
|
|
308
415
|
"defaultValue": "true"
|
|
309
416
|
},
|
|
417
|
+
"closeOnBackdropClick": {
|
|
418
|
+
"type": "boolean",
|
|
419
|
+
"mutable": false,
|
|
420
|
+
"complexType": {
|
|
421
|
+
"original": "boolean",
|
|
422
|
+
"resolved": "boolean",
|
|
423
|
+
"references": {}
|
|
424
|
+
},
|
|
425
|
+
"required": false,
|
|
426
|
+
"optional": true,
|
|
427
|
+
"docs": {
|
|
428
|
+
"tags": [],
|
|
429
|
+
"text": "Allows a backdrop click to close the dialog when not loading. Defaults to true."
|
|
430
|
+
},
|
|
431
|
+
"getter": false,
|
|
432
|
+
"setter": false,
|
|
433
|
+
"reflect": false,
|
|
434
|
+
"attribute": "close-on-backdrop-click"
|
|
435
|
+
},
|
|
310
436
|
"closeOnOverlayClick": {
|
|
311
437
|
"type": "boolean",
|
|
312
438
|
"mutable": false,
|
|
@@ -318,7 +444,10 @@ export class QDialog {
|
|
|
318
444
|
"required": false,
|
|
319
445
|
"optional": false,
|
|
320
446
|
"docs": {
|
|
321
|
-
"tags": [
|
|
447
|
+
"tags": [{
|
|
448
|
+
"name": "deprecated",
|
|
449
|
+
"text": "Use closeOnBackdropClick. Used only when closeOnBackdropClick is unset."
|
|
450
|
+
}],
|
|
322
451
|
"text": ""
|
|
323
452
|
},
|
|
324
453
|
"getter": false,
|
|
@@ -472,7 +601,8 @@ export class QDialog {
|
|
|
472
601
|
static get states() {
|
|
473
602
|
return {
|
|
474
603
|
"isVisible": {},
|
|
475
|
-
"isAnimatedOpen": {}
|
|
604
|
+
"isAnimatedOpen": {},
|
|
605
|
+
"hasFooter": {}
|
|
476
606
|
};
|
|
477
607
|
}
|
|
478
608
|
static get events() {
|
|
@@ -95,9 +95,9 @@ export class QTooltip {
|
|
|
95
95
|
}
|
|
96
96
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
97
97
|
render() {
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: 'caabdb699db1cae6b1d64f6289fedb10331a23db', class: {
|
|
99
99
|
'is-visible': this.visible,
|
|
100
|
-
}, "aria-hidden": this.visible ? 'false' : 'true', role: "tooltip" }, h("div", { key: '
|
|
100
|
+
}, "aria-hidden": this.visible ? 'false' : 'true', role: "tooltip" }, h("div", { key: 'e331e10f1a300c53d4dd68874300391fe0ee5be4', class: "tooltip-bubble" }, this.content || h("slot", { key: 'a2cfcdc4ea2f01ad66f5302296fff3688de4d6f8' }))));
|
|
101
101
|
}
|
|
102
102
|
static get is() { return "q-tooltip"; }
|
|
103
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export function feedbackStyle(reserve) {
|
|
3
|
+
return { '--_q-feedback-min': reserve === undefined ? 'var(--q-context-feedback-min, 0px)' : reserve ? '1rem' : '0px' };
|
|
4
|
+
}
|
|
5
|
+
/** Kept in the control's own shadow root so describedby never crosses a boundary. */
|
|
6
|
+
export function fieldFeedback(id, error, description) {
|
|
7
|
+
return h("span", { id: id, "aria-live": "polite", class: { 'q-field-feedback': true, 'error-msg': !!error }, part: error ? 'feedback error-msg' : 'feedback description' }, error || description);
|
|
8
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { afterEach, expect, it } from "vitest";
|
|
2
|
+
// Exercise emitted component CSS as well as the generated attribute API.
|
|
3
|
+
// @ts-ignore Production loader is generated by the package build.
|
|
4
|
+
import { defineCustomElements } from "../../../../dist/loader";
|
|
5
|
+
defineCustomElements();
|
|
6
|
+
const update = async () => { await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve))); };
|
|
7
|
+
afterEach(() => { document.body.innerHTML = ''; });
|
|
8
|
+
it('applies canonical orientation to standalone and parent-controlled step geometry', async () => {
|
|
9
|
+
document.body.innerHTML = '<q-step-diagram-item orientation="horizontal" layout="vertical"></q-step-diagram-item><q-step-diagram orientation="horizontal"><q-step-diagram-item></q-step-diagram-item></q-step-diagram>';
|
|
10
|
+
await customElements.whenDefined('q-step-diagram-item');
|
|
11
|
+
await customElements.whenDefined('q-step-diagram');
|
|
12
|
+
await Promise.all(Array.from(document.querySelectorAll('q-step-diagram, q-step-diagram-item')).map(el => el.componentOnReady()));
|
|
13
|
+
await update();
|
|
14
|
+
const items = Array.from(document.querySelectorAll('q-step-diagram-item'));
|
|
15
|
+
for (const item of items)
|
|
16
|
+
expect(getComputedStyle(item.shadowRoot.querySelector('.step-item')).flexDirection).toBe('column');
|
|
17
|
+
document.querySelector('q-step-diagram').orientation = 'vertical';
|
|
18
|
+
items[0].orientation = 'vertical';
|
|
19
|
+
await update();
|
|
20
|
+
for (const item of items)
|
|
21
|
+
expect(getComputedStyle(item.shadowRoot.querySelector('.step-item')).flexDirection).toBe('row');
|
|
22
|
+
});
|
|
23
|
+
it('changes quantity control order and geometry using orientation', async () => {
|
|
24
|
+
document.body.innerHTML = '<q-quantity-selector orientation="vertical" variant="horizontal"></q-quantity-selector>';
|
|
25
|
+
await customElements.whenDefined('q-quantity-selector');
|
|
26
|
+
await document.querySelector('q-quantity-selector').componentOnReady();
|
|
27
|
+
await update();
|
|
28
|
+
const el = document.querySelector('q-quantity-selector');
|
|
29
|
+
const root = el.shadowRoot.querySelector('.quantity-selector');
|
|
30
|
+
expect(getComputedStyle(root).flexDirection).toBe('column');
|
|
31
|
+
expect(root.firstElementChild.classList.contains('quantity-btn-increment')).toBe(true);
|
|
32
|
+
el.orientation = 'horizontal';
|
|
33
|
+
await update();
|
|
34
|
+
expect(getComputedStyle(root).flexDirection).toBe('row');
|
|
35
|
+
expect(root.firstElementChild.classList.contains('quantity-btn-decrement')).toBe(true);
|
|
36
|
+
});
|
package/dist/collection/index.js
CHANGED
|
@@ -12,4 +12,4 @@ export { identifyItems, reconcileByIdentity, } from './utils/collection-identity
|
|
|
12
12
|
export { Q_MAP_DEFAULT_CLUSTER_GROUP, Q_MAP_MARKER_CALLOUT_PLACEMENTS, Q_MAP_MARKER_CALLOUT_STAT_LAYOUTS, Q_MAP_MARKER_CALLOUT_VISIBILITIES, Q_MAP_MARKER_KINDS, Q_MAP_MARKER_RINGS, Q_MAP_MARKER_SIZES, Q_MAP_MARKER_VARIANTS, Q_MAP_RASTER_TILE_LOADING_POLICIES, } from './components/data-display/map/map.types';
|
|
13
13
|
export { getDataTableCellSlotName, getDataTableCellValue, getDataTableItemKey, } from './components/data-display/data-table/data-table-cell';
|
|
14
14
|
export { configureQIcons, registerQIcons, } from './components/media/icon/internals/registry';
|
|
15
|
-
export { toast } from './components/
|
|
15
|
+
export { toast } from './components/communication/toast/toast-controller';
|
|
@@ -8,7 +8,7 @@ class PlaygroundEventLog extends HTMLElement {
|
|
|
8
8
|
connectedCallback() {
|
|
9
9
|
// 1. Render template via TSX
|
|
10
10
|
this.innerHTML = '';
|
|
11
|
-
this.appendChild(h("q-syntax-box", { variant: "panel", heading: "Event Dispatches Log", id: "eventLogBox" }, h("q-button", { slot: "actions", variant: "ghost", size: "sm", id: "clearLogBtn", onClick: () => this.clearLog() }, h("q-icon", { slot: "icon-left",
|
|
11
|
+
this.appendChild(h("q-syntax-box", { variant: "panel", heading: "Event Dispatches Log", id: "eventLogBox" }, h("q-button", { slot: "actions", variant: "ghost", size: "sm", id: "clearLogBtn", onClick: () => this.clearLog() }, h("q-icon", { slot: "icon-left", library: "local", name: "trash-2", size: "sm" }), h("q-tooltip", { slot: "icon-left", position: "bottom", content: "Clear Log" })), h("div", { id: "eventLogBody", class: "event-log-body" }, h("span", { class: "log-placeholder" }, "Interactive events will appear here in real-time..."))));
|
|
12
12
|
// 2. Inject CSS stylesheet (scoped style wrapper)
|
|
13
13
|
const styleId = 'playground-event-log-style';
|
|
14
14
|
if (!document.getElementById(styleId)) {
|
|
@@ -3,9 +3,11 @@ import { activeComponent, activeTab, fetchComponentSpec, effect } from "../../st
|
|
|
3
3
|
import css from "./playground-sidebar.css";
|
|
4
4
|
const CATEGORY_LABELS = {
|
|
5
5
|
actions: 'Actions',
|
|
6
|
-
|
|
6
|
+
communication: 'Communication',
|
|
7
|
+
content: 'Content',
|
|
8
|
+
'data-display': 'Data display',
|
|
9
|
+
inputs: 'Forms & inputs',
|
|
7
10
|
indicators: 'Indicators',
|
|
8
|
-
inputs: 'Inputs',
|
|
9
11
|
layout: 'Layout',
|
|
10
12
|
media: 'Media',
|
|
11
13
|
overlays: 'Overlays',
|
|
@@ -31,7 +33,7 @@ class PlaygroundSidebar extends HTMLElement {
|
|
|
31
33
|
}
|
|
32
34
|
// Render template via TSX
|
|
33
35
|
this.innerHTML = '';
|
|
34
|
-
this.appendChild(h("q-sidepanel", { id: "sidebarNav", variant: "nav", mode: "tree" }, h("div", { slot: "footer" }, h("button", { id: "globalStylingBtn", class: "global-styling-btn", type: "button", onClick: () => activeComponent.set('global-styling') }, h("q-icon", { name: "globe",
|
|
36
|
+
this.appendChild(h("q-sidepanel", { id: "sidebarNav", variant: "nav", mode: "tree" }, h("div", { slot: "footer" }, h("button", { id: "globalStylingBtn", class: "global-styling-btn", type: "button", onClick: () => activeComponent.set('global-styling') }, h("q-icon", { name: "globe", library: "lucide", size: "16" }), h("span", null, "Global Styling")))));
|
|
35
37
|
// Inject CSS stylesheet (scoped style wrapper)
|
|
36
38
|
const styleId = 'playground-sidebar-style';
|
|
37
39
|
if (!document.getElementById(styleId)) {
|
|
@@ -2,49 +2,27 @@ import { h } from "../../dom-factory";
|
|
|
2
2
|
import { theme, effect } from "../../state";
|
|
3
3
|
import "./token-section";
|
|
4
4
|
import css from "./theme-designer.css";
|
|
5
|
+
import { dimensionTokens, themeGroups } from "../../../theme/tokens";
|
|
5
6
|
const THEME_TOKENS = [
|
|
6
7
|
{
|
|
7
|
-
category: '
|
|
8
|
-
tokens:
|
|
9
|
-
{ name: '--q-color-primary', label: 'Primary Color', type: 'color', desc: 'Main brand/accent color' },
|
|
10
|
-
{ name: '--q-color-primary-hover', label: 'Primary Hover', type: 'color', desc: 'Hover state for primary actions' },
|
|
11
|
-
{ name: '--q-color-secondary', label: 'Secondary Color', type: 'color', desc: 'Secondary/muted accent color' },
|
|
12
|
-
{ name: '--q-color-success', label: 'Success Color', type: 'color', desc: 'Success indicator' },
|
|
13
|
-
{ name: '--q-color-warning', label: 'Warning Color', type: 'color', desc: 'Warning indicator' },
|
|
14
|
-
{ name: '--q-color-danger', label: 'Danger Color', type: 'color', desc: 'Danger/Error indicator' }
|
|
15
|
-
]
|
|
8
|
+
category: 'Spacing & Control Sizing',
|
|
9
|
+
tokens: dimensionTokens.map(token => ({ ...token, type: 'dimension', min: 0, max: 64, desc: token.name })),
|
|
16
10
|
},
|
|
17
|
-
{
|
|
18
|
-
category:
|
|
19
|
-
tokens:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
category: 'Borders & Outlines',
|
|
30
|
-
tokens: [
|
|
31
|
-
{ name: '--q-border-color', label: 'Border Color', type: 'color', desc: 'Subtle container border' }
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
category: 'Border Radii',
|
|
36
|
-
tokens: [
|
|
37
|
-
{ name: '--q-radius-sm', label: 'Small Radius', type: 'radius', min: 0, max: 40, desc: 'Badges and small components' },
|
|
38
|
-
{ name: '--q-radius-md', label: 'Medium Radius', type: 'radius', min: 0, max: 40, desc: 'Buttons, inputs, thumbnails' },
|
|
39
|
-
{ name: '--q-radius-lg', label: 'Large Radius', type: 'radius', min: 0, max: 40, desc: 'Cards, dropdown menus, panels' }
|
|
40
|
-
]
|
|
41
|
-
}
|
|
11
|
+
...themeGroups.map(group => ({
|
|
12
|
+
category: group.category,
|
|
13
|
+
tokens: group.tokens.map(token => ({
|
|
14
|
+
name: token.name,
|
|
15
|
+
label: token.name.replace('--q-', '').replaceAll('-', ' '),
|
|
16
|
+
type: /^#[0-9a-f]{6}$/i.test(token.value) ? 'color' : token.name.startsWith('--q-radius-') ? 'radius' : 'text',
|
|
17
|
+
desc: token.name,
|
|
18
|
+
})),
|
|
19
|
+
})),
|
|
42
20
|
];
|
|
43
21
|
export class ThemeDesigner extends HTMLElement {
|
|
44
22
|
cleanupThemeSync;
|
|
45
23
|
connectedCallback() {
|
|
46
24
|
this.innerHTML = '';
|
|
47
|
-
this.appendChild(h("div", { class: "theme-designer-container" }, h("div", { class: "theme-designer-header" }, h("div", { style: "flex: 1" }, h("h2", { style: "margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--q-fg-base)" }, "
|
|
25
|
+
this.appendChild(h("div", { class: "theme-designer-container" }, h("div", { class: "theme-designer-header" }, h("div", { style: "flex: 1" }, h("h2", { style: "margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--q-fg-base)" }, "Theme Designer"), h("p", { class: "theme-designer-desc" }, "Customize colors, dimensions, and component defaults. Overrides apply to all sandbox components.")), h("button", { id: "resetThemeBtn", class: "reset-theme-btn", type: "button", onClick: () => this.resetTheme() }, h("q-icon", { name: "refresh-cw", library: "lucide", size: "16" }), h("span", null, "Reset to Default"))), this.renderGrid()));
|
|
48
26
|
// Inject CSS stylesheet (scoped style wrapper)
|
|
49
27
|
const styleId = 'theme-designer-style';
|
|
50
28
|
if (!document.getElementById(styleId)) {
|
|
@@ -2,10 +2,19 @@ import { h } from "../../dom-factory";
|
|
|
2
2
|
import { convertToHex } from "../../utils";
|
|
3
3
|
export class TokenRow extends HTMLElement {
|
|
4
4
|
token;
|
|
5
|
+
pixelValue(value) {
|
|
6
|
+
const rootSize = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
7
|
+
return (parseFloat(value) || 0) * (value.endsWith('rem') ? rootSize : 1);
|
|
8
|
+
}
|
|
5
9
|
syncValue() {
|
|
6
10
|
const computedStyle = window.getComputedStyle(document.documentElement);
|
|
7
11
|
const val = computedStyle.getPropertyValue(this.token.name).trim();
|
|
8
|
-
if (this.token.type === '
|
|
12
|
+
if (this.token.type === 'text') {
|
|
13
|
+
const input = this.querySelector('.token-text-input');
|
|
14
|
+
if (input)
|
|
15
|
+
input.value = val;
|
|
16
|
+
}
|
|
17
|
+
else if (this.token.type === 'color') {
|
|
9
18
|
const hexVal = convertToHex(val);
|
|
10
19
|
const picker = this.querySelector('.color-swatch-picker');
|
|
11
20
|
const textInput = this.querySelector('.color-text-input');
|
|
@@ -14,8 +23,8 @@ export class TokenRow extends HTMLElement {
|
|
|
14
23
|
if (textInput)
|
|
15
24
|
textInput.value = hexVal;
|
|
16
25
|
}
|
|
17
|
-
else
|
|
18
|
-
const numVal =
|
|
26
|
+
else {
|
|
27
|
+
const numVal = this.pixelValue(val);
|
|
19
28
|
const slider = this.querySelector('.range-slider-input');
|
|
20
29
|
const display = this.querySelector('.range-slider-value');
|
|
21
30
|
if (slider)
|
|
@@ -32,7 +41,16 @@ export class TokenRow extends HTMLElement {
|
|
|
32
41
|
const computedStyle = window.getComputedStyle(document.documentElement);
|
|
33
42
|
const val = computedStyle.getPropertyValue(this.token.name).trim();
|
|
34
43
|
let control;
|
|
35
|
-
if (this.token.type === '
|
|
44
|
+
if (this.token.type === 'text') {
|
|
45
|
+
control = h("input", { type: "text", class: "color-text-input token-text-input", "aria-label": this.token.label, value: val, onChange: (event) => {
|
|
46
|
+
const value = event.target.value.trim();
|
|
47
|
+
if (value)
|
|
48
|
+
document.documentElement.style.setProperty(this.token.name, value);
|
|
49
|
+
else
|
|
50
|
+
document.documentElement.style.removeProperty(this.token.name);
|
|
51
|
+
} });
|
|
52
|
+
}
|
|
53
|
+
else if (this.token.type === 'color') {
|
|
36
54
|
const hexVal = convertToHex(val);
|
|
37
55
|
const picker = (h("input", { type: "color", class: "color-swatch-picker", "data-token": this.token.name, value: hexVal, onInput: (e) => {
|
|
38
56
|
const target = e.target;
|
|
@@ -54,12 +72,13 @@ export class TokenRow extends HTMLElement {
|
|
|
54
72
|
control = (h("div", { class: "color-input-container" }, h("div", { class: "color-picker-wrapper" }, picker), textInput));
|
|
55
73
|
}
|
|
56
74
|
else {
|
|
57
|
-
const numVal =
|
|
75
|
+
const numVal = this.pixelValue(val);
|
|
58
76
|
const valDisplay = (h("span", { class: "range-slider-value", "data-token": this.token.name }, numVal, "px"));
|
|
59
|
-
const slider = (h("input", { type: "range", class: "range-slider-input", min: String(this.token.min ?? 0), max: String(this.token.max ?? 40), value: String(numVal), "data-token": this.token.name, onInput: (e) => {
|
|
77
|
+
const slider = (h("input", { type: "range", step: "0.5", class: "range-slider-input", min: String(this.token.min ?? 0), max: String(this.token.max ?? 40), value: String(numVal), "data-token": this.token.name, onInput: (e) => {
|
|
60
78
|
const target = e.target;
|
|
61
79
|
valDisplay.innerText = `${target.value}px`;
|
|
62
|
-
document.documentElement.
|
|
80
|
+
const rootSize = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
81
|
+
document.documentElement.style.setProperty(this.token.name, this.token.type === 'dimension' ? `${Number(target.value) / rootSize}rem` : `${target.value}px`);
|
|
63
82
|
} }));
|
|
64
83
|
control = (h("div", { class: "range-slider-container" }, slider, valDisplay));
|
|
65
84
|
}
|