@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,3 +1,4 @@
|
|
|
1
|
+
import { fieldFeedback, feedbackStyle } from "../../shared/field";
|
|
1
2
|
import { h } from "@stencil/core";
|
|
2
3
|
import { identifyItems } from "../../../utils/collection-identity";
|
|
3
4
|
import { getDropdownOptions, getFilteredOptions, getOptionLabel, getSelectedOption, getVisibleOptions } from "./internals/options";
|
|
@@ -16,11 +17,17 @@ export class QDropdown {
|
|
|
16
17
|
label;
|
|
17
18
|
/** Accessible name for the trigger and option list when no visible label is available. */
|
|
18
19
|
ariaLabel = null;
|
|
20
|
+
/** Supporting text, replaced by an active error. */
|
|
21
|
+
description;
|
|
19
22
|
placeholder = 'Select an option...';
|
|
20
23
|
/** Options to render; strings use the same text for label and value, while objects allow separate values. */
|
|
21
24
|
options = [];
|
|
22
25
|
value = '';
|
|
23
|
-
|
|
26
|
+
/** Keep the label accessible without displaying it. */
|
|
27
|
+
labelHidden = false;
|
|
28
|
+
/** Omitted inherits the enclosing form; false cancels reservation. */
|
|
29
|
+
reserveFeedback;
|
|
30
|
+
size = 'inherit';
|
|
24
31
|
searchable = false;
|
|
25
32
|
/** Delegates filtering and pagination to the consumer. */
|
|
26
33
|
externalSearch = false;
|
|
@@ -32,6 +39,9 @@ export class QDropdown {
|
|
|
32
39
|
/** Minimum distance maintained between the open menu and viewport edges. */
|
|
33
40
|
collisionPadding = 8;
|
|
34
41
|
disabled = false;
|
|
42
|
+
required = false;
|
|
43
|
+
/** Custom validation error; independent of currently loaded options. */
|
|
44
|
+
error;
|
|
35
45
|
name;
|
|
36
46
|
isOpen = false;
|
|
37
47
|
focusedIndex = -1;
|
|
@@ -68,6 +78,7 @@ export class QDropdown {
|
|
|
68
78
|
this.stopFloatingUpdates();
|
|
69
79
|
}
|
|
70
80
|
componentDidRender() {
|
|
81
|
+
this.syncValidity();
|
|
71
82
|
if (this.isOpen) {
|
|
72
83
|
this.openFloatingMenu();
|
|
73
84
|
return;
|
|
@@ -78,6 +89,28 @@ export class QDropdown {
|
|
|
78
89
|
if (this.internals && typeof this.internals.setFormValue === 'function') {
|
|
79
90
|
this.internals.setFormValue(newValue);
|
|
80
91
|
}
|
|
92
|
+
this.syncValidity();
|
|
93
|
+
}
|
|
94
|
+
syncValidity() {
|
|
95
|
+
if (typeof this.internals?.setValidity !== 'function')
|
|
96
|
+
return;
|
|
97
|
+
const message = this.disabled ? '' : this.error?.trim() || (this.required && !this.value ? 'Please select an option.' : '');
|
|
98
|
+
this.internals.setValidity(message ? this.error?.trim() ? { customError: true } : { valueMissing: true } : {}, message, this.triggerEl);
|
|
99
|
+
}
|
|
100
|
+
async checkValidity() {
|
|
101
|
+
this.syncValidity();
|
|
102
|
+
return this.disabled || !(this.error?.trim() || (this.required && !this.value));
|
|
103
|
+
}
|
|
104
|
+
async reportValidity() {
|
|
105
|
+
const valid = await this.checkValidity();
|
|
106
|
+
if (!valid) {
|
|
107
|
+
this.triggerEl?.focus();
|
|
108
|
+
this.internals?.reportValidity?.();
|
|
109
|
+
}
|
|
110
|
+
return valid;
|
|
111
|
+
}
|
|
112
|
+
async focusElement() {
|
|
113
|
+
this.triggerEl?.focus();
|
|
81
114
|
}
|
|
82
115
|
watchOptions() {
|
|
83
116
|
if (this.externalSearch) {
|
|
@@ -97,12 +130,14 @@ export class QDropdown {
|
|
|
97
130
|
if (!this.searchTerm) {
|
|
98
131
|
this.searchTerm = '';
|
|
99
132
|
}
|
|
133
|
+
this.syncValidity();
|
|
100
134
|
}
|
|
101
135
|
formResetCallback() {
|
|
102
136
|
this.value = this.initialValue;
|
|
103
137
|
if (this.internals && typeof this.internals.setFormValue === 'function') {
|
|
104
138
|
this.internals.setFormValue(this.value);
|
|
105
139
|
}
|
|
140
|
+
this.syncValidity();
|
|
106
141
|
}
|
|
107
142
|
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
108
143
|
clearScrollLoading() {
|
|
@@ -456,16 +491,16 @@ export class QDropdown {
|
|
|
456
491
|
const displayLabel = selectedOption && selectedLabel ? selectedLabel : this.placeholder;
|
|
457
492
|
const hasSelection = selectedOption !== undefined;
|
|
458
493
|
const ariaLabel = this.ariaLabel?.trim() || undefined;
|
|
459
|
-
return (h("div", { key: '
|
|
494
|
+
return (h("div", { key: 'a6f10c4ca5341bffc7c130664c19241fcf4ab25c', style: feedbackStyle(this.reserveFeedback), class: {
|
|
460
495
|
'dropdown-wrapper': true,
|
|
461
496
|
'is-open': this.isOpen,
|
|
462
497
|
'is-disabled': this.disabled,
|
|
463
498
|
[`size-${this.size}`]: true
|
|
464
|
-
}, onKeyDown: this.handleKeyDown }, this.label && (h("label", { key: '
|
|
499
|
+
}, onKeyDown: this.handleKeyDown }, this.label && (h("label", { key: '862569b26c74fafb2cd01ece2ca26990e6ebed56', class: { 'dropdown-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), 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 }, h("span", { key: '3f2035f700291d11c6c48d592a8cbaf533fbcebe', class: "trigger-content" }, h("slot", { key: '8041c1a4e9f634c49d4121f7d9cf1fa9c24f2902', name: "icon-left" }), h("span", { key: '677081d737d98e8f8902eca7cef2b4a0db332c6d', class: { 'trigger-text': true, 'is-placeholder': !hasSelection } }, displayLabel)), h("svg", { key: 'f1c8942fe9081869a5112d5058a7efca4aa62a4a', class: "chevron-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: 'cc5b5fc75efc22b2b2d864376839557f742c6bbf', points: "6 9 12 15 18 9" }))), fieldFeedback('q-field-error', this.error, this.description), this.isOpen && (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 && (h("div", { key: '45369b8e80215adfb4f77916048302286a1ffec5', class: "dropdown-search-container" }, 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 }))), h("ul", { key: '57e165a2d8cdb0244626b986fb216bb3a1c40af1', ref: (el) => (this.itemsListEl = el), class: "dropdown-items-list", onScroll: this.handleScroll }, opts.length === 0 && !this.loading ? (h("li", { class: "menu-item is-empty" }, "No matches found")) : (identifiedOptions.map(({ item: option, index, key }) => (h("li", { key: key, id: `q-field-item-${index}`, class: {
|
|
465
500
|
'menu-item': true,
|
|
466
501
|
'is-selected': option.value === this.value,
|
|
467
502
|
'is-focused': index === this.focusedIndex
|
|
468
|
-
}, tabindex: -1, part: `item ${option.value === this.value ? 'selected-item' : ''} ${index === this.focusedIndex ? 'focused-item' : ''}`, role: "option", "aria-selected": option.value === this.value ? 'true' : 'false', onClick: () => this.handleSelect(option) }, this.getOptionLabel(option))))), (this.loading || this.isScrollingLoading) && (h("li", { key: '
|
|
503
|
+
}, tabindex: -1, part: `item ${option.value === this.value ? 'selected-item' : ''} ${index === this.focusedIndex ? 'focused-item' : ''}`, role: "option", "aria-selected": option.value === this.value ? 'true' : 'false', onClick: () => this.handleSelect(option) }, this.getOptionLabel(option))))), (this.loading || this.isScrollingLoading) && (h("li", { key: '549ee293d9c186af7393fa3ab7d63b4f91dab061', class: "menu-item is-loading-more" }, h("span", { key: 'e35295ba4f99353c4c198d316f10141292d819f8', class: "spinner-circle" }), h("span", { key: '914f1c4b3e8e27fceed50397dbe99a1edd24fabe' }, "Loading..."))))))));
|
|
469
504
|
}
|
|
470
505
|
static get is() { return "q-dropdown"; }
|
|
471
506
|
static get encapsulation() { return "shadow"; }
|
|
@@ -522,6 +557,25 @@ export class QDropdown {
|
|
|
522
557
|
"attribute": "aria-label",
|
|
523
558
|
"defaultValue": "null"
|
|
524
559
|
},
|
|
560
|
+
"description": {
|
|
561
|
+
"type": "string",
|
|
562
|
+
"mutable": false,
|
|
563
|
+
"complexType": {
|
|
564
|
+
"original": "string",
|
|
565
|
+
"resolved": "string",
|
|
566
|
+
"references": {}
|
|
567
|
+
},
|
|
568
|
+
"required": false,
|
|
569
|
+
"optional": true,
|
|
570
|
+
"docs": {
|
|
571
|
+
"tags": [],
|
|
572
|
+
"text": "Supporting text, replaced by an active error."
|
|
573
|
+
},
|
|
574
|
+
"getter": false,
|
|
575
|
+
"setter": false,
|
|
576
|
+
"reflect": false,
|
|
577
|
+
"attribute": "description"
|
|
578
|
+
},
|
|
525
579
|
"placeholder": {
|
|
526
580
|
"type": "string",
|
|
527
581
|
"mutable": false,
|
|
@@ -589,12 +643,51 @@ export class QDropdown {
|
|
|
589
643
|
"attribute": "value",
|
|
590
644
|
"defaultValue": "''"
|
|
591
645
|
},
|
|
646
|
+
"labelHidden": {
|
|
647
|
+
"type": "boolean",
|
|
648
|
+
"mutable": false,
|
|
649
|
+
"complexType": {
|
|
650
|
+
"original": "boolean",
|
|
651
|
+
"resolved": "boolean",
|
|
652
|
+
"references": {}
|
|
653
|
+
},
|
|
654
|
+
"required": false,
|
|
655
|
+
"optional": false,
|
|
656
|
+
"docs": {
|
|
657
|
+
"tags": [],
|
|
658
|
+
"text": "Keep the label accessible without displaying it."
|
|
659
|
+
},
|
|
660
|
+
"getter": false,
|
|
661
|
+
"setter": false,
|
|
662
|
+
"reflect": false,
|
|
663
|
+
"attribute": "label-hidden",
|
|
664
|
+
"defaultValue": "false"
|
|
665
|
+
},
|
|
666
|
+
"reserveFeedback": {
|
|
667
|
+
"type": "boolean",
|
|
668
|
+
"mutable": false,
|
|
669
|
+
"complexType": {
|
|
670
|
+
"original": "boolean",
|
|
671
|
+
"resolved": "boolean",
|
|
672
|
+
"references": {}
|
|
673
|
+
},
|
|
674
|
+
"required": false,
|
|
675
|
+
"optional": true,
|
|
676
|
+
"docs": {
|
|
677
|
+
"tags": [],
|
|
678
|
+
"text": "Omitted inherits the enclosing form; false cancels reservation."
|
|
679
|
+
},
|
|
680
|
+
"getter": false,
|
|
681
|
+
"setter": false,
|
|
682
|
+
"reflect": false,
|
|
683
|
+
"attribute": "reserve-feedback"
|
|
684
|
+
},
|
|
592
685
|
"size": {
|
|
593
686
|
"type": "string",
|
|
594
687
|
"mutable": false,
|
|
595
688
|
"complexType": {
|
|
596
689
|
"original": "QDropdownSize",
|
|
597
|
-
"resolved": "\"lg\" | \"md\" | \"sm\"",
|
|
690
|
+
"resolved": "\"inherit\" | \"lg\" | \"md\" | \"sm\"",
|
|
598
691
|
"references": {
|
|
599
692
|
"QDropdownSize": {
|
|
600
693
|
"location": "import",
|
|
@@ -614,7 +707,7 @@ export class QDropdown {
|
|
|
614
707
|
"setter": false,
|
|
615
708
|
"reflect": true,
|
|
616
709
|
"attribute": "size",
|
|
617
|
-
"defaultValue": "'
|
|
710
|
+
"defaultValue": "'inherit'"
|
|
618
711
|
},
|
|
619
712
|
"searchable": {
|
|
620
713
|
"type": "boolean",
|
|
@@ -763,6 +856,45 @@ export class QDropdown {
|
|
|
763
856
|
"attribute": "disabled",
|
|
764
857
|
"defaultValue": "false"
|
|
765
858
|
},
|
|
859
|
+
"required": {
|
|
860
|
+
"type": "boolean",
|
|
861
|
+
"mutable": false,
|
|
862
|
+
"complexType": {
|
|
863
|
+
"original": "boolean",
|
|
864
|
+
"resolved": "boolean",
|
|
865
|
+
"references": {}
|
|
866
|
+
},
|
|
867
|
+
"required": false,
|
|
868
|
+
"optional": false,
|
|
869
|
+
"docs": {
|
|
870
|
+
"tags": [],
|
|
871
|
+
"text": ""
|
|
872
|
+
},
|
|
873
|
+
"getter": false,
|
|
874
|
+
"setter": false,
|
|
875
|
+
"reflect": true,
|
|
876
|
+
"attribute": "required",
|
|
877
|
+
"defaultValue": "false"
|
|
878
|
+
},
|
|
879
|
+
"error": {
|
|
880
|
+
"type": "string",
|
|
881
|
+
"mutable": false,
|
|
882
|
+
"complexType": {
|
|
883
|
+
"original": "string",
|
|
884
|
+
"resolved": "string",
|
|
885
|
+
"references": {}
|
|
886
|
+
},
|
|
887
|
+
"required": false,
|
|
888
|
+
"optional": true,
|
|
889
|
+
"docs": {
|
|
890
|
+
"tags": [],
|
|
891
|
+
"text": "Custom validation error; independent of currently loaded options."
|
|
892
|
+
},
|
|
893
|
+
"getter": false,
|
|
894
|
+
"setter": false,
|
|
895
|
+
"reflect": false,
|
|
896
|
+
"attribute": "error"
|
|
897
|
+
},
|
|
766
898
|
"name": {
|
|
767
899
|
"type": "string",
|
|
768
900
|
"mutable": false,
|
|
@@ -923,11 +1055,75 @@ export class QDropdown {
|
|
|
923
1055
|
}
|
|
924
1056
|
}];
|
|
925
1057
|
}
|
|
1058
|
+
static get methods() {
|
|
1059
|
+
return {
|
|
1060
|
+
"checkValidity": {
|
|
1061
|
+
"complexType": {
|
|
1062
|
+
"signature": "() => Promise<boolean>",
|
|
1063
|
+
"parameters": [],
|
|
1064
|
+
"references": {
|
|
1065
|
+
"Promise": {
|
|
1066
|
+
"location": "global",
|
|
1067
|
+
"id": "global::Promise"
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
1070
|
+
"return": "Promise<boolean>"
|
|
1071
|
+
},
|
|
1072
|
+
"docs": {
|
|
1073
|
+
"text": "",
|
|
1074
|
+
"tags": []
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
"reportValidity": {
|
|
1078
|
+
"complexType": {
|
|
1079
|
+
"signature": "() => Promise<boolean>",
|
|
1080
|
+
"parameters": [],
|
|
1081
|
+
"references": {
|
|
1082
|
+
"Promise": {
|
|
1083
|
+
"location": "global",
|
|
1084
|
+
"id": "global::Promise"
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
"return": "Promise<boolean>"
|
|
1088
|
+
},
|
|
1089
|
+
"docs": {
|
|
1090
|
+
"text": "",
|
|
1091
|
+
"tags": []
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
"focusElement": {
|
|
1095
|
+
"complexType": {
|
|
1096
|
+
"signature": "() => Promise<void>",
|
|
1097
|
+
"parameters": [],
|
|
1098
|
+
"references": {
|
|
1099
|
+
"Promise": {
|
|
1100
|
+
"location": "global",
|
|
1101
|
+
"id": "global::Promise"
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
"return": "Promise<void>"
|
|
1105
|
+
},
|
|
1106
|
+
"docs": {
|
|
1107
|
+
"text": "",
|
|
1108
|
+
"tags": []
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
};
|
|
1112
|
+
}
|
|
926
1113
|
static get elementRef() { return "el"; }
|
|
927
1114
|
static get watchers() {
|
|
928
1115
|
return [{
|
|
929
1116
|
"propName": "value",
|
|
930
1117
|
"methodName": "watchValue"
|
|
1118
|
+
}, {
|
|
1119
|
+
"propName": "required",
|
|
1120
|
+
"methodName": "syncValidity"
|
|
1121
|
+
}, {
|
|
1122
|
+
"propName": "error",
|
|
1123
|
+
"methodName": "syncValidity"
|
|
1124
|
+
}, {
|
|
1125
|
+
"propName": "disabled",
|
|
1126
|
+
"methodName": "syncValidity"
|
|
931
1127
|
}, {
|
|
932
1128
|
"propName": "options",
|
|
933
1129
|
"methodName": "watchOptions"
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.form-shell {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: var(--q-form-gap, var(--q-space-xl, 1.5rem));
|
|
10
|
+
width: 100%;
|
|
11
|
+
color: var(--q-form-fg, var(--q-fg-base, #172033));
|
|
12
|
+
font-family: var(--q-font-family, inherit);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.form-header.is-hidden,
|
|
16
|
+
.form-actions.is-hidden {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.form-title {
|
|
21
|
+
margin: 0;
|
|
22
|
+
color: var(--q-form-title-color, var(--q-fg-base, #172033));
|
|
23
|
+
font-size: var(--q-form-title-size, var(--q-font-size-lg, 1rem));
|
|
24
|
+
font-weight: var(--q-font-weight-bold, 600);
|
|
25
|
+
line-height: 1.3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
form {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: var(--q-form-gap, var(--q-space-xl, 1.5rem));
|
|
32
|
+
width: 100%;
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.form-body {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
gap: var(--q-form-field-gap, 12px);
|
|
40
|
+
min-width: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.form-actions {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: flex-end;
|
|
47
|
+
flex-wrap: wrap;
|
|
48
|
+
gap: var(--q-form-action-gap, var(--q-space-sm, .5rem));
|
|
49
|
+
padding-top: var(--q-form-actions-padding-top, 4px);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host { min-width: 0; }
|
|
53
|
+
.q-label-hidden {
|
|
54
|
+
position: absolute !important;
|
|
55
|
+
width: 1px !important;
|
|
56
|
+
height: 1px !important;
|
|
57
|
+
padding: 0 !important;
|
|
58
|
+
margin: -1px !important;
|
|
59
|
+
overflow: hidden !important;
|
|
60
|
+
clip-path: inset(50%);
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
border: 0 !important;
|
|
63
|
+
}
|
|
64
|
+
.q-field-feedback {
|
|
65
|
+
display: block;
|
|
66
|
+
min-block-size: var(--_q-feedback-min, var(--q-context-feedback-min, 0px));
|
|
67
|
+
font-family: var(--q-font-family, inherit);
|
|
68
|
+
font-size: var(--q-field-feedback-font, .75rem);
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
line-height: 1rem;
|
|
71
|
+
color: var(--q-fg-muted, #9ca3af);
|
|
72
|
+
overflow-wrap: anywhere;
|
|
73
|
+
margin: min(var(--q-space-xs, .25rem), var(--_q-feedback-min, var(--q-context-feedback-min, 0px))) 0 0;
|
|
74
|
+
}
|
|
75
|
+
.q-field-feedback:not(:empty) { margin-top: var(--q-space-xs, .25rem); }
|
|
76
|
+
.q-field-feedback.error-msg { color: var(--_q-field-error-color, var(--q-color-danger, #f87171)); }
|
|
77
|
+
[part='label']:not(.q-label-hidden) {
|
|
78
|
+
font-family: var(--q-font-family, inherit);
|
|
79
|
+
font-size: var(--q-field-label-font, .75rem);
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
line-height: 1rem;
|
|
82
|
+
margin-bottom: var(--q-space-xs, .25rem);
|
|
83
|
+
overflow-wrap: anywhere;
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { controlScope } from "../../../theme/tokens";
|
|
2
|
+
import { Host, h } from "@stencil/core";
|
|
2
3
|
import { handleEnterBehavior } from "./internals/enter-behavior";
|
|
3
4
|
import { getNamedControls, shouldSkipControl } from "./internals/controls";
|
|
4
5
|
import { applyValues, collectValues, createFormData, resetValues } from "./internals/values";
|
|
@@ -22,6 +23,9 @@ export class QForm {
|
|
|
22
23
|
el;
|
|
23
24
|
/** Names the native form when no custom header is slotted. */
|
|
24
25
|
label;
|
|
26
|
+
size = 'inherit';
|
|
27
|
+
reserveFeedback;
|
|
28
|
+
labelHidden = false;
|
|
25
29
|
/** Prevents the native submit event's default navigation. */
|
|
26
30
|
preventDefault = true;
|
|
27
31
|
/** Controls how Enter behaves inside text-like controls. */
|
|
@@ -32,6 +36,8 @@ export class QForm {
|
|
|
32
36
|
autocomplete = 'on';
|
|
33
37
|
enctype = 'application/x-www-form-urlencoded';
|
|
34
38
|
target;
|
|
39
|
+
/** Names the native form without requiring a visible heading. */
|
|
40
|
+
ariaLabel = null;
|
|
35
41
|
/** Emitted after a valid submit with collected values and FormData. */
|
|
36
42
|
qSubmit;
|
|
37
43
|
qReset;
|
|
@@ -215,9 +221,9 @@ export class QForm {
|
|
|
215
221
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
216
222
|
render() {
|
|
217
223
|
const hasHeaderContent = Boolean(this.label) || this.hasHeaderSlot;
|
|
218
|
-
const formLabelledBy = this.label && !this.hasHeaderSlot ? this.titleId : undefined;
|
|
219
|
-
const formAriaLabel = this.label && this.hasHeaderSlot ? this.label : undefined;
|
|
220
|
-
return (h("div", { key: '
|
|
224
|
+
const formLabelledBy = !this.ariaLabel && this.label && !this.hasHeaderSlot ? this.titleId : undefined;
|
|
225
|
+
const formAriaLabel = this.ariaLabel?.trim() || (this.label && this.hasHeaderSlot ? this.label : undefined);
|
|
226
|
+
return (h(Host, { key: '85fff51774e0bb0e73948cd14b8100aef6556c31', style: { ...controlScope(this.size), '--q-context-feedback-min': this.reserveFeedback === undefined ? '' : this.reserveFeedback ? '1rem' : '0px' } }, h("div", { key: 'f3dff40fcdfddc896787295c59c3e97f5d6c15ad', class: "form-shell" }, h("div", { key: '0b1fb2465c7ce04185d9cc65524562c46efe152f', class: { 'form-header': true, 'is-hidden': !hasHeaderContent, 'q-label-hidden': this.labelHidden }, part: "header" }, h("slot", { key: '391f9944a4c920a639bc62f0f1583d0cf3920884', name: "header", ref: (el) => (this.headerSlot = el), onSlotchange: this.handleHeaderSlotChange }, this.label && h("h2", { key: '54bd0774bbde169fd1f6f960fce0567daecb9db4', id: this.titleId, class: "form-title" }, this.label))), 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 }, h("div", { key: '7f5d47a6e57c2e7e3972d705e8e556e159584445', class: "form-body", part: "body" }, h("slot", { key: '3515728fd810c3c6d6352932ce56c07cbecc5d39' })), h("div", { key: '09e06d1ef03559336d7ac40de72c824ad8e7d656', class: { 'form-actions': true, 'is-hidden': !this.hasActionsSlot }, part: "actions" }, h("slot", { key: '05a368aea36d4c18d569d60831cb31f737ac5854', name: "actions", ref: (el) => (this.actionsSlot = el), onSlotchange: this.handleActionsSlotChange }))))));
|
|
221
227
|
}
|
|
222
228
|
static get is() { return "q-form"; }
|
|
223
229
|
static get encapsulation() { return "shadow"; }
|
|
@@ -252,6 +258,72 @@ export class QForm {
|
|
|
252
258
|
"reflect": false,
|
|
253
259
|
"attribute": "label"
|
|
254
260
|
},
|
|
261
|
+
"size": {
|
|
262
|
+
"type": "string",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "QControlSize",
|
|
266
|
+
"resolved": "\"inherit\" | \"lg\" | \"md\" | \"sm\"",
|
|
267
|
+
"references": {
|
|
268
|
+
"QControlSize": {
|
|
269
|
+
"location": "import",
|
|
270
|
+
"path": "../../../theme/tokens",
|
|
271
|
+
"id": "src/theme/tokens.ts::QControlSize",
|
|
272
|
+
"referenceLocation": "QControlSize"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"required": false,
|
|
277
|
+
"optional": false,
|
|
278
|
+
"docs": {
|
|
279
|
+
"tags": [],
|
|
280
|
+
"text": ""
|
|
281
|
+
},
|
|
282
|
+
"getter": false,
|
|
283
|
+
"setter": false,
|
|
284
|
+
"reflect": false,
|
|
285
|
+
"attribute": "size",
|
|
286
|
+
"defaultValue": "'inherit'"
|
|
287
|
+
},
|
|
288
|
+
"reserveFeedback": {
|
|
289
|
+
"type": "boolean",
|
|
290
|
+
"mutable": false,
|
|
291
|
+
"complexType": {
|
|
292
|
+
"original": "boolean",
|
|
293
|
+
"resolved": "boolean",
|
|
294
|
+
"references": {}
|
|
295
|
+
},
|
|
296
|
+
"required": false,
|
|
297
|
+
"optional": true,
|
|
298
|
+
"docs": {
|
|
299
|
+
"tags": [],
|
|
300
|
+
"text": ""
|
|
301
|
+
},
|
|
302
|
+
"getter": false,
|
|
303
|
+
"setter": false,
|
|
304
|
+
"reflect": false,
|
|
305
|
+
"attribute": "reserve-feedback"
|
|
306
|
+
},
|
|
307
|
+
"labelHidden": {
|
|
308
|
+
"type": "boolean",
|
|
309
|
+
"mutable": false,
|
|
310
|
+
"complexType": {
|
|
311
|
+
"original": "boolean",
|
|
312
|
+
"resolved": "boolean",
|
|
313
|
+
"references": {}
|
|
314
|
+
},
|
|
315
|
+
"required": false,
|
|
316
|
+
"optional": false,
|
|
317
|
+
"docs": {
|
|
318
|
+
"tags": [],
|
|
319
|
+
"text": ""
|
|
320
|
+
},
|
|
321
|
+
"getter": false,
|
|
322
|
+
"setter": false,
|
|
323
|
+
"reflect": false,
|
|
324
|
+
"attribute": "label-hidden",
|
|
325
|
+
"defaultValue": "false"
|
|
326
|
+
},
|
|
255
327
|
"preventDefault": {
|
|
256
328
|
"type": "boolean",
|
|
257
329
|
"mutable": false,
|
|
@@ -282,7 +354,7 @@ export class QForm {
|
|
|
282
354
|
"QFormEnterBehavior": {
|
|
283
355
|
"location": "import",
|
|
284
356
|
"path": "./form.types",
|
|
285
|
-
"id": "src/components/
|
|
357
|
+
"id": "src/components/inputs/form/form.types.ts::QFormEnterBehavior",
|
|
286
358
|
"referenceLocation": "QFormEnterBehavior"
|
|
287
359
|
}
|
|
288
360
|
}
|
|
@@ -348,7 +420,7 @@ export class QForm {
|
|
|
348
420
|
"QFormMethod": {
|
|
349
421
|
"location": "import",
|
|
350
422
|
"path": "./form.types",
|
|
351
|
-
"id": "src/components/
|
|
423
|
+
"id": "src/components/inputs/form/form.types.ts::QFormMethod",
|
|
352
424
|
"referenceLocation": "QFormMethod"
|
|
353
425
|
}
|
|
354
426
|
}
|
|
@@ -375,7 +447,7 @@ export class QForm {
|
|
|
375
447
|
"QFormAutocomplete": {
|
|
376
448
|
"location": "import",
|
|
377
449
|
"path": "./form.types",
|
|
378
|
-
"id": "src/components/
|
|
450
|
+
"id": "src/components/inputs/form/form.types.ts::QFormAutocomplete",
|
|
379
451
|
"referenceLocation": "QFormAutocomplete"
|
|
380
452
|
}
|
|
381
453
|
}
|
|
@@ -402,7 +474,7 @@ export class QForm {
|
|
|
402
474
|
"QFormEnctype": {
|
|
403
475
|
"location": "import",
|
|
404
476
|
"path": "./form.types",
|
|
405
|
-
"id": "src/components/
|
|
477
|
+
"id": "src/components/inputs/form/form.types.ts::QFormEnctype",
|
|
406
478
|
"referenceLocation": "QFormEnctype"
|
|
407
479
|
}
|
|
408
480
|
}
|
|
@@ -429,7 +501,7 @@ export class QForm {
|
|
|
429
501
|
"QFormTarget": {
|
|
430
502
|
"location": "import",
|
|
431
503
|
"path": "./form.types",
|
|
432
|
-
"id": "src/components/
|
|
504
|
+
"id": "src/components/inputs/form/form.types.ts::QFormTarget",
|
|
433
505
|
"referenceLocation": "QFormTarget"
|
|
434
506
|
}
|
|
435
507
|
}
|
|
@@ -444,6 +516,26 @@ export class QForm {
|
|
|
444
516
|
"setter": false,
|
|
445
517
|
"reflect": false,
|
|
446
518
|
"attribute": "target"
|
|
519
|
+
},
|
|
520
|
+
"ariaLabel": {
|
|
521
|
+
"type": "string",
|
|
522
|
+
"mutable": false,
|
|
523
|
+
"complexType": {
|
|
524
|
+
"original": "string | null",
|
|
525
|
+
"resolved": "string",
|
|
526
|
+
"references": {}
|
|
527
|
+
},
|
|
528
|
+
"required": false,
|
|
529
|
+
"optional": false,
|
|
530
|
+
"docs": {
|
|
531
|
+
"tags": [],
|
|
532
|
+
"text": "Names the native form without requiring a visible heading."
|
|
533
|
+
},
|
|
534
|
+
"getter": false,
|
|
535
|
+
"setter": false,
|
|
536
|
+
"reflect": false,
|
|
537
|
+
"attribute": "aria-label",
|
|
538
|
+
"defaultValue": "null"
|
|
447
539
|
}
|
|
448
540
|
};
|
|
449
541
|
}
|
|
@@ -471,7 +563,7 @@ export class QForm {
|
|
|
471
563
|
"QFormSubmitDetail": {
|
|
472
564
|
"location": "import",
|
|
473
565
|
"path": "./form.types",
|
|
474
|
-
"id": "src/components/
|
|
566
|
+
"id": "src/components/inputs/form/form.types.ts::QFormSubmitDetail",
|
|
475
567
|
"referenceLocation": "QFormSubmitDetail"
|
|
476
568
|
}
|
|
477
569
|
}
|
|
@@ -493,7 +585,7 @@ export class QForm {
|
|
|
493
585
|
"QFormResetDetail": {
|
|
494
586
|
"location": "import",
|
|
495
587
|
"path": "./form.types",
|
|
496
|
-
"id": "src/components/
|
|
588
|
+
"id": "src/components/inputs/form/form.types.ts::QFormResetDetail",
|
|
497
589
|
"referenceLocation": "QFormResetDetail"
|
|
498
590
|
}
|
|
499
591
|
}
|
|
@@ -514,7 +606,7 @@ export class QForm {
|
|
|
514
606
|
"QFormValues": {
|
|
515
607
|
"location": "import",
|
|
516
608
|
"path": "./form.types",
|
|
517
|
-
"id": "src/components/
|
|
609
|
+
"id": "src/components/inputs/form/form.types.ts::QFormValues",
|
|
518
610
|
"referenceLocation": "QFormValues"
|
|
519
611
|
}
|
|
520
612
|
},
|
|
@@ -541,7 +633,7 @@ export class QForm {
|
|
|
541
633
|
"QFormValues": {
|
|
542
634
|
"location": "import",
|
|
543
635
|
"path": "./form.types",
|
|
544
|
-
"id": "src/components/
|
|
636
|
+
"id": "src/components/inputs/form/form.types.ts::QFormValues",
|
|
545
637
|
"referenceLocation": "QFormValues"
|
|
546
638
|
}
|
|
547
639
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|