@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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fieldFeedback, feedbackStyle } from "../../shared/field";
|
|
1
2
|
import { h } from "@stencil/core";
|
|
2
3
|
import { syncNativeControlValidity } from "../../../utils/form-control-validity";
|
|
3
4
|
/**
|
|
@@ -13,6 +14,13 @@ export class QTextarea {
|
|
|
13
14
|
label;
|
|
14
15
|
/** Accessible name for the native textarea when a visible label is not used. */
|
|
15
16
|
ariaLabel = null;
|
|
17
|
+
/** Supporting text, replaced by an active error. */
|
|
18
|
+
description;
|
|
19
|
+
size = 'inherit';
|
|
20
|
+
/** Keep the label accessible without displaying it. */
|
|
21
|
+
labelHidden = false;
|
|
22
|
+
/** Omitted inherits the enclosing form; false cancels reservation. */
|
|
23
|
+
reserveFeedback;
|
|
16
24
|
rows = 3;
|
|
17
25
|
/** Grows with content when `resizeMode` is `auto`. */
|
|
18
26
|
autoGrow = true;
|
|
@@ -22,7 +30,7 @@ export class QTextarea {
|
|
|
22
30
|
required = false;
|
|
23
31
|
/** Validation error text or error-state flag. */
|
|
24
32
|
error;
|
|
25
|
-
/**
|
|
33
|
+
/** @deprecated Use error. Used when error is empty or unset. */
|
|
26
34
|
errorMessage;
|
|
27
35
|
name;
|
|
28
36
|
internals;
|
|
@@ -33,6 +41,10 @@ export class QTextarea {
|
|
|
33
41
|
qFocus;
|
|
34
42
|
qClick;
|
|
35
43
|
textareaEl;
|
|
44
|
+
sizeProbeEl;
|
|
45
|
+
resizeObserver;
|
|
46
|
+
resizeFrame;
|
|
47
|
+
lastGeometry = '';
|
|
36
48
|
// ========================= [2] INTERNAL STATE & REFS =========================
|
|
37
49
|
initialValue = "";
|
|
38
50
|
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
@@ -58,6 +70,41 @@ export class QTextarea {
|
|
|
58
70
|
componentDidLoad() {
|
|
59
71
|
this.adjustHeightInternal();
|
|
60
72
|
this.syncValidity();
|
|
73
|
+
this.observeGeometry();
|
|
74
|
+
}
|
|
75
|
+
connectedCallback() {
|
|
76
|
+
if (this.textareaEl)
|
|
77
|
+
this.observeGeometry();
|
|
78
|
+
}
|
|
79
|
+
disconnectedCallback() {
|
|
80
|
+
this.resizeObserver?.disconnect();
|
|
81
|
+
this.resizeObserver = undefined;
|
|
82
|
+
if (this.resizeFrame !== undefined)
|
|
83
|
+
cancelAnimationFrame(this.resizeFrame);
|
|
84
|
+
this.resizeFrame = undefined;
|
|
85
|
+
this.lastGeometry = '';
|
|
86
|
+
}
|
|
87
|
+
observeGeometry() {
|
|
88
|
+
if (this.resizeObserver || !this.textareaEl || !this.sizeProbeEl || typeof ResizeObserver === 'undefined')
|
|
89
|
+
return;
|
|
90
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
91
|
+
if (this.resizeFrame !== undefined)
|
|
92
|
+
return;
|
|
93
|
+
this.resizeFrame = requestAnimationFrame(() => {
|
|
94
|
+
this.resizeFrame = undefined;
|
|
95
|
+
if (!this.textareaEl || this.activeResizeMode !== 'auto')
|
|
96
|
+
return;
|
|
97
|
+
const style = getComputedStyle(this.textareaEl);
|
|
98
|
+
// Exclude height: changing it is the result of auto-grow, not a new input.
|
|
99
|
+
const geometry = [style.width, style.font, style.letterSpacing, style.padding, style.borderWidth, this.rows].join('|');
|
|
100
|
+
if (geometry === this.lastGeometry)
|
|
101
|
+
return;
|
|
102
|
+
this.lastGeometry = geometry;
|
|
103
|
+
this.adjustHeightInternal();
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
this.resizeObserver.observe(this.textareaEl);
|
|
107
|
+
this.resizeObserver.observe(this.sizeProbeEl);
|
|
61
108
|
}
|
|
62
109
|
componentDidRender() {
|
|
63
110
|
this.syncValidity();
|
|
@@ -154,14 +201,15 @@ export class QTextarea {
|
|
|
154
201
|
const hasError = !!(this.error || this.errorMessage);
|
|
155
202
|
const displayError = this.error || this.errorMessage;
|
|
156
203
|
const ariaLabel = this.ariaLabel?.trim() || (!this.label && this.placeholder ? this.placeholder : undefined);
|
|
157
|
-
return (h("div", { key: '
|
|
204
|
+
return (h("div", { key: '2a5903876010bed67599eb68af9078719a54bf65', style: feedbackStyle(this.reserveFeedback), class: {
|
|
158
205
|
'textarea-wrapper': true,
|
|
159
206
|
'is-disabled': this.disabled,
|
|
160
|
-
'has-error': hasError
|
|
161
|
-
|
|
207
|
+
'has-error': hasError,
|
|
208
|
+
[`size-${this.size}`]: true
|
|
209
|
+
} }, h("span", { key: '8f12d79c7132c89cf4b67637aa627c60901df37a', class: "textarea-size-probe", "aria-hidden": "true", ref: el => (this.sizeProbeEl = el) }, "M"), this.label && (h("label", { key: 'a7ec4cadaef80883fbf0814c8ed23689d5286e69', class: { 'textarea-label': true, 'q-label-hidden': this.labelHidden }, htmlFor: "q-field", part: "label" }, this.label)), h("textarea", { key: '984ae770743e70a82d3511b6f00c9961027f03de', ref: (el) => (this.textareaEl = el), id: "q-field", class: {
|
|
162
210
|
'textarea-box': true,
|
|
163
211
|
'resize-manual': this.activeResizeMode === 'manual'
|
|
164
|
-
}, part: "textarea", value: this.value, name: this.name, placeholder: this.placeholder, rows: this.rows, disabled: this.disabled, required: this.required, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError ? 'q-field-error' : undefined, "aria-label": ariaLabel }),
|
|
212
|
+
}, part: "textarea", value: this.value, name: this.name, placeholder: this.placeholder, rows: this.rows, disabled: this.disabled, required: this.required, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'q-field-error' : undefined, "aria-label": ariaLabel }), fieldFeedback('q-field-error', displayError, this.description)));
|
|
165
213
|
}
|
|
166
214
|
static get is() { return "q-textarea"; }
|
|
167
215
|
static get encapsulation() { return "shadow"; }
|
|
@@ -258,6 +306,91 @@ export class QTextarea {
|
|
|
258
306
|
"attribute": "aria-label",
|
|
259
307
|
"defaultValue": "null"
|
|
260
308
|
},
|
|
309
|
+
"description": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"mutable": false,
|
|
312
|
+
"complexType": {
|
|
313
|
+
"original": "string",
|
|
314
|
+
"resolved": "string",
|
|
315
|
+
"references": {}
|
|
316
|
+
},
|
|
317
|
+
"required": false,
|
|
318
|
+
"optional": true,
|
|
319
|
+
"docs": {
|
|
320
|
+
"tags": [],
|
|
321
|
+
"text": "Supporting text, replaced by an active error."
|
|
322
|
+
},
|
|
323
|
+
"getter": false,
|
|
324
|
+
"setter": false,
|
|
325
|
+
"reflect": false,
|
|
326
|
+
"attribute": "description"
|
|
327
|
+
},
|
|
328
|
+
"size": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"mutable": false,
|
|
331
|
+
"complexType": {
|
|
332
|
+
"original": "QControlSize",
|
|
333
|
+
"resolved": "\"inherit\" | \"lg\" | \"md\" | \"sm\"",
|
|
334
|
+
"references": {
|
|
335
|
+
"QControlSize": {
|
|
336
|
+
"location": "import",
|
|
337
|
+
"path": "../../../theme/tokens",
|
|
338
|
+
"id": "src/theme/tokens.ts::QControlSize",
|
|
339
|
+
"referenceLocation": "QControlSize"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"required": false,
|
|
344
|
+
"optional": false,
|
|
345
|
+
"docs": {
|
|
346
|
+
"tags": [],
|
|
347
|
+
"text": ""
|
|
348
|
+
},
|
|
349
|
+
"getter": false,
|
|
350
|
+
"setter": false,
|
|
351
|
+
"reflect": false,
|
|
352
|
+
"attribute": "size",
|
|
353
|
+
"defaultValue": "'inherit'"
|
|
354
|
+
},
|
|
355
|
+
"labelHidden": {
|
|
356
|
+
"type": "boolean",
|
|
357
|
+
"mutable": false,
|
|
358
|
+
"complexType": {
|
|
359
|
+
"original": "boolean",
|
|
360
|
+
"resolved": "boolean",
|
|
361
|
+
"references": {}
|
|
362
|
+
},
|
|
363
|
+
"required": false,
|
|
364
|
+
"optional": false,
|
|
365
|
+
"docs": {
|
|
366
|
+
"tags": [],
|
|
367
|
+
"text": "Keep the label accessible without displaying it."
|
|
368
|
+
},
|
|
369
|
+
"getter": false,
|
|
370
|
+
"setter": false,
|
|
371
|
+
"reflect": false,
|
|
372
|
+
"attribute": "label-hidden",
|
|
373
|
+
"defaultValue": "false"
|
|
374
|
+
},
|
|
375
|
+
"reserveFeedback": {
|
|
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": "Omitted inherits the enclosing form; false cancels reservation."
|
|
388
|
+
},
|
|
389
|
+
"getter": false,
|
|
390
|
+
"setter": false,
|
|
391
|
+
"reflect": false,
|
|
392
|
+
"attribute": "reserve-feedback"
|
|
393
|
+
},
|
|
261
394
|
"rows": {
|
|
262
395
|
"type": "number",
|
|
263
396
|
"mutable": false,
|
|
@@ -395,8 +528,11 @@ export class QTextarea {
|
|
|
395
528
|
"required": false,
|
|
396
529
|
"optional": true,
|
|
397
530
|
"docs": {
|
|
398
|
-
"tags": [
|
|
399
|
-
|
|
531
|
+
"tags": [{
|
|
532
|
+
"name": "deprecated",
|
|
533
|
+
"text": "Use error. Used when error is empty or unset."
|
|
534
|
+
}],
|
|
535
|
+
"text": ""
|
|
400
536
|
},
|
|
401
537
|
"getter": false,
|
|
402
538
|
"setter": false,
|
|
@@ -599,6 +735,12 @@ export class QTextarea {
|
|
|
599
735
|
}, {
|
|
600
736
|
"propName": "autoGrow",
|
|
601
737
|
"methodName": "handleResizeModeChange"
|
|
738
|
+
}, {
|
|
739
|
+
"propName": "size",
|
|
740
|
+
"methodName": "handleResizeModeChange"
|
|
741
|
+
}, {
|
|
742
|
+
"propName": "rows",
|
|
743
|
+
"methodName": "handleResizeModeChange"
|
|
602
744
|
}];
|
|
603
745
|
}
|
|
604
746
|
static get attachInternalsMemberName() { return "internals"; }
|
|
@@ -1,11 +1,42 @@
|
|
|
1
|
+
/* Generated by scripts/generate-theme.ts. */
|
|
2
|
+
:host {
|
|
3
|
+
min-width: 0;
|
|
4
|
+
--_q-control-height: var(--q-context-control-height, var(--q-control-height-md, 2.25rem));
|
|
5
|
+
--_q-control-font: var(--q-context-control-font, var(--q-control-font-md, 0.875rem));
|
|
6
|
+
--_q-control-line: var(--q-context-control-line, var(--q-control-line-md, 1.25rem));
|
|
7
|
+
--_q-control-padding: var(--q-context-control-padding, var(--q-control-padding-md, 0.75rem));
|
|
8
|
+
--_q-control-icon: var(--q-context-control-icon, var(--q-control-icon-md, 1rem));
|
|
9
|
+
--_q-control-radius: var(--q-context-control-radius, var(--q-control-radius-md, 0.4375rem));
|
|
10
|
+
}
|
|
11
|
+
.size-sm {
|
|
12
|
+
--_q-control-height: var(--q-control-height-sm, 1.75rem);
|
|
13
|
+
--_q-control-font: var(--q-control-font-sm, 0.75rem);
|
|
14
|
+
--_q-control-line: var(--q-control-line-sm, 1rem);
|
|
15
|
+
--_q-control-padding: var(--q-control-padding-sm, 0.5rem);
|
|
16
|
+
--_q-control-icon: var(--q-control-icon-sm, 0.875rem);
|
|
17
|
+
--_q-control-radius: var(--q-control-radius-sm, 0.34375rem);
|
|
18
|
+
}
|
|
19
|
+
.size-md {
|
|
20
|
+
--_q-control-height: var(--q-control-height-md, 2.25rem);
|
|
21
|
+
--_q-control-font: var(--q-control-font-md, 0.875rem);
|
|
22
|
+
--_q-control-line: var(--q-control-line-md, 1.25rem);
|
|
23
|
+
--_q-control-padding: var(--q-control-padding-md, 0.75rem);
|
|
24
|
+
--_q-control-icon: var(--q-control-icon-md, 1rem);
|
|
25
|
+
--_q-control-radius: var(--q-control-radius-md, 0.4375rem);
|
|
26
|
+
}
|
|
27
|
+
.size-lg {
|
|
28
|
+
--_q-control-height: var(--q-control-height-lg, 2.75rem);
|
|
29
|
+
--_q-control-font: var(--q-control-font-lg, 1rem);
|
|
30
|
+
--_q-control-line: var(--q-control-line-lg, 1.5rem);
|
|
31
|
+
--_q-control-padding: var(--q-control-padding-lg, 1rem);
|
|
32
|
+
--_q-control-icon: var(--q-control-icon-lg, 1.25rem);
|
|
33
|
+
--_q-control-radius: var(--q-control-radius-lg, 0.53125rem);
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
:host {
|
|
2
37
|
/* Toggle Switch Dimensions */
|
|
3
|
-
--q-toggle-switch-width: var(--q-toggle-width, 44px);
|
|
4
|
-
--q-toggle-switch-height: var(--q-toggle-height, 24px);
|
|
5
|
-
--q-toggle-thumb-size: var(--q-toggle-size, 18px);
|
|
6
38
|
|
|
7
39
|
/* Checkbox Mode Dimensions */
|
|
8
|
-
--q-toggle-checkbox-size: var(--q-toggle-box-size, 18px);
|
|
9
40
|
|
|
10
41
|
/* Colors */
|
|
11
42
|
--q-toggle-bg-off: var(--q-bg-surface-2, #374151);
|
|
@@ -174,47 +205,48 @@
|
|
|
174
205
|
}
|
|
175
206
|
|
|
176
207
|
/* Sizing Overrides */
|
|
177
|
-
.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
--q-
|
|
197
|
-
--q-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.
|
|
208
|
-
|
|
209
|
-
--q-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
--q-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
.toggle-wrapper.
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
208
|
+
/* Shared foundation geometry. */
|
|
209
|
+
.toggle-container { --_q-field-error-color: var(--q-toggle-error-color, var(--q-color-danger, #f87171)); }
|
|
210
|
+
.toggle-wrapper { min-height: var(--_q-control-height); gap: var(--q-space-sm, .5rem); }
|
|
211
|
+
.toggle-wrapper:is(.size-sm, .size-md, .size-lg, .size-inherit) .toggle-label-text { font-size: var(--_q-control-font); line-height: var(--_q-control-line); margin-bottom: 0; }
|
|
212
|
+
|
|
213
|
+
:host { min-width: 0; }
|
|
214
|
+
.q-label-hidden {
|
|
215
|
+
position: absolute !important;
|
|
216
|
+
width: 1px !important;
|
|
217
|
+
height: 1px !important;
|
|
218
|
+
padding: 0 !important;
|
|
219
|
+
margin: -1px !important;
|
|
220
|
+
overflow: hidden !important;
|
|
221
|
+
clip-path: inset(50%);
|
|
222
|
+
white-space: nowrap;
|
|
223
|
+
border: 0 !important;
|
|
224
|
+
}
|
|
225
|
+
.q-field-feedback {
|
|
226
|
+
display: block;
|
|
227
|
+
min-block-size: var(--_q-feedback-min, var(--q-context-feedback-min, 0px));
|
|
228
|
+
font-family: var(--q-font-family, inherit);
|
|
229
|
+
font-size: var(--q-field-feedback-font, .75rem);
|
|
230
|
+
font-weight: 400;
|
|
231
|
+
line-height: 1rem;
|
|
232
|
+
color: var(--q-fg-muted, #9ca3af);
|
|
233
|
+
overflow-wrap: anywhere;
|
|
234
|
+
margin: min(var(--q-space-xs, .25rem), var(--_q-feedback-min, var(--q-context-feedback-min, 0px))) 0 0;
|
|
235
|
+
}
|
|
236
|
+
.q-field-feedback:not(:empty) { margin-top: var(--q-space-xs, .25rem); }
|
|
237
|
+
.q-field-feedback.error-msg { color: var(--_q-field-error-color, var(--q-color-danger, #f87171)); }
|
|
238
|
+
[part='label']:not(.q-label-hidden) {
|
|
239
|
+
font-family: var(--q-font-family, inherit);
|
|
240
|
+
font-size: var(--q-field-label-font, .75rem);
|
|
241
|
+
font-weight: 600;
|
|
242
|
+
line-height: 1rem;
|
|
243
|
+
margin-bottom: var(--q-space-xs, .25rem);
|
|
244
|
+
overflow-wrap: anywhere;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
.toggle-wrapper { --_q-switch-width: var(--q-toggle-switch-width, var(--q-toggle-width, calc(var(--_q-control-icon) * 2.75))); --_q-switch-height: var(--q-toggle-switch-height, var(--q-toggle-height, calc(var(--_q-control-icon) * 1.5))); --_q-thumb-size: var(--q-toggle-thumb-size, var(--q-toggle-size, calc(var(--_q-control-icon) * 1.125))); }
|
|
249
|
+
.switch-track { width: var(--_q-switch-width); height: var(--_q-switch-height); }
|
|
250
|
+
.switch-thumb { width: var(--_q-thumb-size); height: var(--_q-thumb-size); }
|
|
251
|
+
.type-switch.is-checked .switch-thumb { transform: translate(calc(var(--_q-switch-width) - var(--_q-thumb-size) - 6px), -50%); }
|
|
252
|
+
.checkbox-box { width: var(--q-toggle-checkbox-size, var(--q-toggle-box-size, var(--_q-control-icon))); height: var(--q-toggle-checkbox-size, var(--q-toggle-box-size, var(--_q-control-icon))); }
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fieldFeedback, feedbackStyle } from "../../shared/field";
|
|
1
2
|
import { h } from "@stencil/core";
|
|
2
3
|
import { syncRequiredBooleanValidity } from "../../../utils/form-control-validity";
|
|
3
4
|
import { isToggleActivationKey } from "./toggle.utils";
|
|
@@ -20,7 +21,13 @@ export class QToggle {
|
|
|
20
21
|
el;
|
|
21
22
|
internals;
|
|
22
23
|
label;
|
|
23
|
-
|
|
24
|
+
/** Supporting text, replaced by an active error. */
|
|
25
|
+
description;
|
|
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
|
/** Controls switch/checkbox visuals and semantics. */
|
|
25
32
|
type = 'switch';
|
|
26
33
|
checked = false;
|
|
@@ -147,7 +154,7 @@ export class QToggle {
|
|
|
147
154
|
const hasLabel = this.label !== undefined && this.label !== '';
|
|
148
155
|
const showLabel = hasLabel || this.hasDefaultSlot;
|
|
149
156
|
const hasError = !!this.error;
|
|
150
|
-
return (h("div", { key: '
|
|
157
|
+
return (h("div", { key: 'b41339e3637d65724c6a0d05fd90229698022701', class: "toggle-container", style: feedbackStyle(this.reserveFeedback) }, h("div", { key: '0b4da93c0facda81241fc136b9745bddd264d3f3', ref: el => (this.controlEl = el), class: {
|
|
151
158
|
'toggle-wrapper': true,
|
|
152
159
|
'is-checked': this.checked,
|
|
153
160
|
'is-disabled': this.disabled,
|
|
@@ -155,10 +162,11 @@ export class QToggle {
|
|
|
155
162
|
'has-error': hasError,
|
|
156
163
|
[`type-${this.type}`]: true,
|
|
157
164
|
[`size-${this.size}`]: true,
|
|
158
|
-
}, role: this.type === 'switch' ? 'switch' : 'checkbox', "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError ? 'toggle-error-msg' : undefined, tabindex: this.disabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
165
|
+
}, role: this.type === 'switch' ? 'switch' : 'checkbox', "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError || this.description ? 'toggle-error-msg' : undefined, tabindex: this.disabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '83232f4eba7feac8b5a1c5678608f627f7747a61', class: "toggle-control", part: "control" }, this.type === 'switch' ? (h("div", { class: "switch-track", part: "track" }, h("div", { class: "switch-thumb", part: "thumb" }))) : (h("div", { class: "checkbox-box", part: "box" }, h("span", { class: { 'icon-wrap': true, 'is-hidden': !this.checked }, part: "icon-checked" }, h("slot", { name: "checked-icon", onSlotchange: this.handleSlotChange }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round", class: "default-check-icon", "aria-hidden": "true" }, h("polyline", { points: "20 6 9 17 4 12" })))), h("span", { class: { 'icon-wrap': true, 'is-hidden': this.checked }, part: "icon-unchecked" }, h("slot", { name: "unchecked-icon", onSlotchange: this.handleSlotChange }))))), h("span", { key: 'f05f1f9f9954995ced27b0f7224e9c65afe5e267', class: {
|
|
159
166
|
'toggle-label-text': true,
|
|
167
|
+
'q-label-hidden': this.labelHidden,
|
|
160
168
|
'is-hidden': !showLabel
|
|
161
|
-
}, part: "label" }, h("slot", { key: '
|
|
169
|
+
}, part: "label" }, h("slot", { key: '34f30ed70f6cffebb5b23d4cc0857f88bb4f598c', onSlotchange: this.handleSlotChange }, this.label))), fieldFeedback('toggle-error-msg', this.error, this.description)));
|
|
162
170
|
}
|
|
163
171
|
static get is() { return "q-toggle"; }
|
|
164
172
|
static get encapsulation() { return "shadow"; }
|
|
@@ -194,12 +202,70 @@ export class QToggle {
|
|
|
194
202
|
"reflect": false,
|
|
195
203
|
"attribute": "label"
|
|
196
204
|
},
|
|
205
|
+
"description": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"mutable": false,
|
|
208
|
+
"complexType": {
|
|
209
|
+
"original": "string",
|
|
210
|
+
"resolved": "string",
|
|
211
|
+
"references": {}
|
|
212
|
+
},
|
|
213
|
+
"required": false,
|
|
214
|
+
"optional": true,
|
|
215
|
+
"docs": {
|
|
216
|
+
"tags": [],
|
|
217
|
+
"text": "Supporting text, replaced by an active error."
|
|
218
|
+
},
|
|
219
|
+
"getter": false,
|
|
220
|
+
"setter": false,
|
|
221
|
+
"reflect": false,
|
|
222
|
+
"attribute": "description"
|
|
223
|
+
},
|
|
224
|
+
"labelHidden": {
|
|
225
|
+
"type": "boolean",
|
|
226
|
+
"mutable": false,
|
|
227
|
+
"complexType": {
|
|
228
|
+
"original": "boolean",
|
|
229
|
+
"resolved": "boolean",
|
|
230
|
+
"references": {}
|
|
231
|
+
},
|
|
232
|
+
"required": false,
|
|
233
|
+
"optional": false,
|
|
234
|
+
"docs": {
|
|
235
|
+
"tags": [],
|
|
236
|
+
"text": "Keep the label accessible without displaying it."
|
|
237
|
+
},
|
|
238
|
+
"getter": false,
|
|
239
|
+
"setter": false,
|
|
240
|
+
"reflect": false,
|
|
241
|
+
"attribute": "label-hidden",
|
|
242
|
+
"defaultValue": "false"
|
|
243
|
+
},
|
|
244
|
+
"reserveFeedback": {
|
|
245
|
+
"type": "boolean",
|
|
246
|
+
"mutable": false,
|
|
247
|
+
"complexType": {
|
|
248
|
+
"original": "boolean",
|
|
249
|
+
"resolved": "boolean",
|
|
250
|
+
"references": {}
|
|
251
|
+
},
|
|
252
|
+
"required": false,
|
|
253
|
+
"optional": true,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [],
|
|
256
|
+
"text": "Omitted inherits the enclosing form; false cancels reservation."
|
|
257
|
+
},
|
|
258
|
+
"getter": false,
|
|
259
|
+
"setter": false,
|
|
260
|
+
"reflect": false,
|
|
261
|
+
"attribute": "reserve-feedback"
|
|
262
|
+
},
|
|
197
263
|
"size": {
|
|
198
264
|
"type": "string",
|
|
199
265
|
"mutable": false,
|
|
200
266
|
"complexType": {
|
|
201
267
|
"original": "QToggleSize",
|
|
202
|
-
"resolved": "\"lg\" | \"md\" | \"sm\"",
|
|
268
|
+
"resolved": "\"inherit\" | \"lg\" | \"md\" | \"sm\"",
|
|
203
269
|
"references": {
|
|
204
270
|
"QToggleSize": {
|
|
205
271
|
"location": "import",
|
|
@@ -219,7 +285,7 @@ export class QToggle {
|
|
|
219
285
|
"setter": false,
|
|
220
286
|
"reflect": false,
|
|
221
287
|
"attribute": "size",
|
|
222
|
-
"defaultValue": "'
|
|
288
|
+
"defaultValue": "'inherit'"
|
|
223
289
|
},
|
|
224
290
|
"type": {
|
|
225
291
|
"type": "string",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
:host { display: block; min-width: 0; }
|
|
2
|
+
div {
|
|
3
|
+
display: grid;
|
|
4
|
+
min-width: 0;
|
|
5
|
+
align-items: start;
|
|
6
|
+
column-gap: var(--_q-column-gap);
|
|
7
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--_q-min-item), calc((100% - (var(--_q-columns) - 1) * var(--_q-column-gap)) / var(--_q-columns)))), 1fr));
|
|
8
|
+
}
|
|
9
|
+
slot { display: contents; }
|
|
10
|
+
::slotted(*) { min-width: 0; }
|
|
11
|
+
::slotted([data-q-span='full']) { grid-column: 1 / -1; }
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { spaceValue } from "../../../theme/tokens";
|
|
3
|
+
/** Container-fitting grid; data-q-span="full" spans a direct child across a row.
|
|
4
|
+
* @slot - Grid items.
|
|
5
|
+
* @part layout - Grid container.
|
|
6
|
+
*/
|
|
7
|
+
export class QGrid {
|
|
8
|
+
columns = 2;
|
|
9
|
+
minItemWidth = '16rem';
|
|
10
|
+
gap = 'lg';
|
|
11
|
+
rowGap;
|
|
12
|
+
columnGap;
|
|
13
|
+
render() {
|
|
14
|
+
const columns = Math.min(4, Math.max(1, Number(this.columns) || 2));
|
|
15
|
+
return h("div", { key: '0e35bf62529cfe1534ee7f93878569e678719338', part: "layout", style: { '--_q-columns': String(columns), '--_q-min-item': this.minItemWidth, '--_q-column-gap': spaceValue(this.columnGap ?? this.gap), rowGap: spaceValue(this.rowGap ?? this.gap) } }, h("slot", { key: 'bc4ace6988aac76c2c225fb8c0dd991a287b960f' }));
|
|
16
|
+
}
|
|
17
|
+
static get is() { return "q-grid"; }
|
|
18
|
+
static get encapsulation() { return "shadow"; }
|
|
19
|
+
static get originalStyleUrls() {
|
|
20
|
+
return {
|
|
21
|
+
"$": ["grid.css"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static get styleUrls() {
|
|
25
|
+
return {
|
|
26
|
+
"$": ["grid.css"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static get properties() {
|
|
30
|
+
return {
|
|
31
|
+
"columns": {
|
|
32
|
+
"type": "number",
|
|
33
|
+
"mutable": false,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "1 | 2 | 3 | 4",
|
|
36
|
+
"resolved": "1 | 2 | 3 | 4",
|
|
37
|
+
"references": {}
|
|
38
|
+
},
|
|
39
|
+
"required": false,
|
|
40
|
+
"optional": false,
|
|
41
|
+
"docs": {
|
|
42
|
+
"tags": [],
|
|
43
|
+
"text": ""
|
|
44
|
+
},
|
|
45
|
+
"getter": false,
|
|
46
|
+
"setter": false,
|
|
47
|
+
"reflect": false,
|
|
48
|
+
"attribute": "columns",
|
|
49
|
+
"defaultValue": "2"
|
|
50
|
+
},
|
|
51
|
+
"minItemWidth": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"mutable": false,
|
|
54
|
+
"complexType": {
|
|
55
|
+
"original": "string",
|
|
56
|
+
"resolved": "string",
|
|
57
|
+
"references": {}
|
|
58
|
+
},
|
|
59
|
+
"required": false,
|
|
60
|
+
"optional": false,
|
|
61
|
+
"docs": {
|
|
62
|
+
"tags": [],
|
|
63
|
+
"text": ""
|
|
64
|
+
},
|
|
65
|
+
"getter": false,
|
|
66
|
+
"setter": false,
|
|
67
|
+
"reflect": false,
|
|
68
|
+
"attribute": "min-item-width",
|
|
69
|
+
"defaultValue": "'16rem'"
|
|
70
|
+
},
|
|
71
|
+
"gap": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "QSpace",
|
|
76
|
+
"resolved": "\"2xl\" | \"3xl\" | \"lg\" | \"md\" | \"none\" | \"sm\" | \"xl\" | \"xs\"",
|
|
77
|
+
"references": {
|
|
78
|
+
"QSpace": {
|
|
79
|
+
"location": "import",
|
|
80
|
+
"path": "../../../theme/tokens",
|
|
81
|
+
"id": "src/theme/tokens.ts::QSpace",
|
|
82
|
+
"referenceLocation": "QSpace"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": false,
|
|
87
|
+
"optional": false,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": ""
|
|
91
|
+
},
|
|
92
|
+
"getter": false,
|
|
93
|
+
"setter": false,
|
|
94
|
+
"reflect": false,
|
|
95
|
+
"attribute": "gap",
|
|
96
|
+
"defaultValue": "'lg'"
|
|
97
|
+
},
|
|
98
|
+
"rowGap": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"mutable": false,
|
|
101
|
+
"complexType": {
|
|
102
|
+
"original": "QSpace",
|
|
103
|
+
"resolved": "\"2xl\" | \"3xl\" | \"lg\" | \"md\" | \"none\" | \"sm\" | \"xl\" | \"xs\"",
|
|
104
|
+
"references": {
|
|
105
|
+
"QSpace": {
|
|
106
|
+
"location": "import",
|
|
107
|
+
"path": "../../../theme/tokens",
|
|
108
|
+
"id": "src/theme/tokens.ts::QSpace",
|
|
109
|
+
"referenceLocation": "QSpace"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": false,
|
|
114
|
+
"optional": true,
|
|
115
|
+
"docs": {
|
|
116
|
+
"tags": [],
|
|
117
|
+
"text": ""
|
|
118
|
+
},
|
|
119
|
+
"getter": false,
|
|
120
|
+
"setter": false,
|
|
121
|
+
"reflect": false,
|
|
122
|
+
"attribute": "row-gap"
|
|
123
|
+
},
|
|
124
|
+
"columnGap": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"mutable": false,
|
|
127
|
+
"complexType": {
|
|
128
|
+
"original": "QSpace",
|
|
129
|
+
"resolved": "\"2xl\" | \"3xl\" | \"lg\" | \"md\" | \"none\" | \"sm\" | \"xl\" | \"xs\"",
|
|
130
|
+
"references": {
|
|
131
|
+
"QSpace": {
|
|
132
|
+
"location": "import",
|
|
133
|
+
"path": "../../../theme/tokens",
|
|
134
|
+
"id": "src/theme/tokens.ts::QSpace",
|
|
135
|
+
"referenceLocation": "QSpace"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"required": false,
|
|
140
|
+
"optional": true,
|
|
141
|
+
"docs": {
|
|
142
|
+
"tags": [],
|
|
143
|
+
"text": ""
|
|
144
|
+
},
|
|
145
|
+
"getter": false,
|
|
146
|
+
"setter": false,
|
|
147
|
+
"reflect": false,
|
|
148
|
+
"attribute": "column-gap"
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}
|