@webquark/core 0.0.1
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/LICENSE +21 -0
- package/dist/cjs/dom-CTqgGpWA.js +238 -0
- package/dist/cjs/index-CLlvFbDw.js +1774 -0
- package/dist/cjs/index-DGQOjEwT.js +33 -0
- package/dist/cjs/index.cjs.js +7 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/q-button_3.cjs.entry.js +603 -0
- package/dist/cjs/q-card.cjs.entry.js +55 -0
- package/dist/cjs/q-carousel.cjs.entry.js +288 -0
- package/dist/cjs/q-circular-progress_2.cjs.entry.js +255 -0
- package/dist/cjs/q-data-table.cjs.entry.js +197 -0
- package/dist/cjs/q-dialog.cjs.entry.js +143 -0
- package/dist/cjs/q-dropdown.cjs.entry.js +348 -0
- package/dist/cjs/q-icon.cjs.entry.js +184 -0
- package/dist/cjs/q-quantity-selector.cjs.entry.js +178 -0
- package/dist/cjs/q-reel.cjs.entry.js +117 -0
- package/dist/cjs/q-sidepanel.cjs.entry.js +215 -0
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +48 -0
- package/dist/cjs/q-step-diagram.cjs.entry.js +47 -0
- package/dist/cjs/q-syntax-box.cjs.entry.js +457 -0
- package/dist/cjs/q-textarea.cjs.entry.js +136 -0
- package/dist/cjs/q-thumbnail.cjs.entry.js +44 -0
- package/dist/cjs/q-toggle.cjs.entry.js +148 -0
- package/dist/cjs/webquark.cjs.js +24 -0
- package/dist/collection/assets/icons/braces.svg +14 -0
- package/dist/collection/assets/icons/check.svg +1 -0
- package/dist/collection/assets/icons/chevron-down.svg +1 -0
- package/dist/collection/assets/icons/chevron-left.svg +1 -0
- package/dist/collection/assets/icons/chevron-right.svg +1 -0
- package/dist/collection/assets/icons/chevron-up.svg +1 -0
- package/dist/collection/assets/icons/copy.svg +4 -0
- package/dist/collection/assets/icons/eye-off.svg +1 -0
- package/dist/collection/assets/icons/eye.svg +1 -0
- package/dist/collection/assets/icons/minus.svg +1 -0
- package/dist/collection/assets/icons/play.svg +1 -0
- package/dist/collection/assets/icons/plus.svg +1 -0
- package/dist/collection/assets/icons/search.svg +1 -0
- package/dist/collection/assets/icons/spinner.svg +1 -0
- package/dist/collection/assets/icons/trash-2.svg +1 -0
- package/dist/collection/assets/icons/x.svg +1 -0
- package/dist/collection/collection-manifest.json +32 -0
- package/dist/collection/components/button/button.css +174 -0
- package/dist/collection/components/button/button.js +358 -0
- package/dist/collection/components/card/card.css +96 -0
- package/dist/collection/components/card/card.js +147 -0
- package/dist/collection/components/carousel/carousel.css +177 -0
- package/dist/collection/components/carousel/carousel.js +467 -0
- package/dist/collection/components/circular-progress/circular-progress.css +85 -0
- package/dist/collection/components/circular-progress/circular-progress.js +122 -0
- package/dist/collection/components/data-table/data-table.css +219 -0
- package/dist/collection/components/data-table/data-table.js +481 -0
- package/dist/collection/components/dialog/dialog.css +240 -0
- package/dist/collection/components/dialog/dialog.js +481 -0
- package/dist/collection/components/dropdown/dropdown.css +292 -0
- package/dist/collection/components/dropdown/dropdown.js +606 -0
- package/dist/collection/components/icon/icon.css +39 -0
- package/dist/collection/components/icon/icon.js +297 -0
- package/dist/collection/components/input/input.css +276 -0
- package/dist/collection/components/input/input.js +609 -0
- package/dist/collection/components/quantity-selector/quantity-selector.css +131 -0
- package/dist/collection/components/quantity-selector/quantity-selector.js +361 -0
- package/dist/collection/components/reel/reel.css +185 -0
- package/dist/collection/components/reel/reel.js +214 -0
- package/dist/collection/components/scrollable/scrollable.css +122 -0
- package/dist/collection/components/scrollable/scrollable.js +536 -0
- package/dist/collection/components/sidepanel/sidepanel.css +371 -0
- package/dist/collection/components/sidepanel/sidepanel.js +460 -0
- package/dist/collection/components/step-diagram/step-diagram.css +21 -0
- package/dist/collection/components/step-diagram/step-diagram.js +74 -0
- package/dist/collection/components/step-diagram-item/step-diagram-item.css +253 -0
- package/dist/collection/components/step-diagram-item/step-diagram-item.js +131 -0
- package/dist/collection/components/syntax-box/syntax-box.css +206 -0
- package/dist/collection/components/syntax-box/syntax-box.js +534 -0
- package/dist/collection/components/textarea/textarea.css +83 -0
- package/dist/collection/components/textarea/textarea.js +461 -0
- package/dist/collection/components/thumbnail/thumbnail.css +109 -0
- package/dist/collection/components/thumbnail/thumbnail.js +171 -0
- package/dist/collection/components/toggle/toggle.css +212 -0
- package/dist/collection/components/toggle/toggle.js +390 -0
- package/dist/collection/components/tooltip/tooltip.css +65 -0
- package/dist/collection/components/tooltip/tooltip.js +249 -0
- package/dist/collection/index.js +10 -0
- package/dist/collection/playground/components/playground-code-preview/playground-code-preview.js +48 -0
- package/dist/collection/playground/components/playground-event-log/playground-event-log.js +63 -0
- package/dist/collection/playground/components/playground-header/playground-header.js +65 -0
- package/dist/collection/playground/components/playground-sidebar/playground-sidebar.js +74 -0
- package/dist/collection/playground/components/properties-panel/properties-panel.js +146 -0
- package/dist/collection/playground/components/properties-panel/property-row.js +31 -0
- package/dist/collection/playground/components/properties-panel/slot-row.js +27 -0
- package/dist/collection/playground/components/sandbox-viewport/sandbox-panel.js +334 -0
- package/dist/collection/playground/components/sandbox-viewport/sandbox-viewport.js +155 -0
- package/dist/collection/playground/components/sandbox-viewport/variant-card.js +86 -0
- package/dist/collection/playground/components/sandbox-viewport/viewport-tabs.js +39 -0
- package/dist/collection/playground/components/theme-designer/theme-designer.js +89 -0
- package/dist/collection/playground/components/theme-designer/token-row.js +70 -0
- package/dist/collection/playground/components/theme-designer/token-section.js +19 -0
- package/dist/collection/playground/dom-factory.js +76 -0
- package/dist/collection/playground/events.js +37 -0
- package/dist/collection/playground/logo.svg +8 -0
- package/dist/collection/playground/playground.bundled.js +2831 -0
- package/dist/collection/playground/playground.js +10 -0
- package/dist/collection/playground/state.js +158 -0
- package/dist/collection/playground/utils/color.js +26 -0
- package/dist/collection/playground/utils/dom.js +38 -0
- package/dist/collection/playground/utils/index.js +2 -0
- package/dist/collection/playground/views/q-button-view/q-button-view.js +6 -0
- package/dist/collection/playground/views/q-input-view/q-input-view.js +6 -0
- package/dist/collection/utils/dom.js +228 -0
- package/dist/collection/utils/formatter.js +177 -0
- package/dist/collection/utils/formatter.unit.test.js +53 -0
- package/dist/collection/utils/math.js +19 -0
- package/dist/collection/utils/syntax.js +110 -0
- package/dist/collection/utils/utils.js +28 -0
- package/dist/collection/utils/utils.unit.test.js +16 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-91lJS0-v.js +1 -0
- package/dist/components/p-B7e76DLW.js +1 -0
- package/dist/components/p-BCSpNDGG.js +1 -0
- package/dist/components/p-BRNv11Jn.js +1 -0
- package/dist/components/p-CYfD9z8O.js +1 -0
- package/dist/components/p-DfTW9B7V.js +1 -0
- package/dist/components/p-DgaKWrjd.js +1 -0
- package/dist/components/p-DoQvrOHk.js +1 -0
- package/dist/components/q-button.d.ts +11 -0
- package/dist/components/q-button.js +1 -0
- package/dist/components/q-card.d.ts +11 -0
- package/dist/components/q-card.js +1 -0
- package/dist/components/q-carousel.d.ts +11 -0
- package/dist/components/q-carousel.js +1 -0
- package/dist/components/q-circular-progress.d.ts +11 -0
- package/dist/components/q-circular-progress.js +1 -0
- package/dist/components/q-data-table.d.ts +11 -0
- package/dist/components/q-data-table.js +1 -0
- package/dist/components/q-dialog.d.ts +11 -0
- package/dist/components/q-dialog.js +1 -0
- package/dist/components/q-dropdown.d.ts +11 -0
- package/dist/components/q-dropdown.js +1 -0
- package/dist/components/q-icon.d.ts +11 -0
- package/dist/components/q-icon.js +1 -0
- package/dist/components/q-input.d.ts +11 -0
- package/dist/components/q-input.js +1 -0
- package/dist/components/q-quantity-selector.d.ts +11 -0
- package/dist/components/q-quantity-selector.js +1 -0
- package/dist/components/q-reel.d.ts +11 -0
- package/dist/components/q-reel.js +1 -0
- package/dist/components/q-scrollable.d.ts +11 -0
- package/dist/components/q-scrollable.js +1 -0
- package/dist/components/q-sidepanel.d.ts +11 -0
- package/dist/components/q-sidepanel.js +1 -0
- package/dist/components/q-step-diagram-item.d.ts +11 -0
- package/dist/components/q-step-diagram-item.js +1 -0
- package/dist/components/q-step-diagram.d.ts +11 -0
- package/dist/components/q-step-diagram.js +1 -0
- package/dist/components/q-syntax-box.d.ts +11 -0
- package/dist/components/q-syntax-box.js +1 -0
- package/dist/components/q-textarea.d.ts +11 -0
- package/dist/components/q-textarea.js +1 -0
- package/dist/components/q-thumbnail.d.ts +11 -0
- package/dist/components/q-thumbnail.js +1 -0
- package/dist/components/q-toggle.d.ts +11 -0
- package/dist/components/q-toggle.js +1 -0
- package/dist/components/q-tooltip.d.ts +11 -0
- package/dist/components/q-tooltip.js +1 -0
- package/dist/esm/dom-DoQvrOHk.js +230 -0
- package/dist/esm/index-BJiYCN3i.js +30 -0
- package/dist/esm/index-CYoQ4Zv3.js +1764 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/q-button_3.entry.js +599 -0
- package/dist/esm/q-card.entry.js +53 -0
- package/dist/esm/q-carousel.entry.js +286 -0
- package/dist/esm/q-circular-progress_2.entry.js +252 -0
- package/dist/esm/q-data-table.entry.js +195 -0
- package/dist/esm/q-dialog.entry.js +141 -0
- package/dist/esm/q-dropdown.entry.js +346 -0
- package/dist/esm/q-icon.entry.js +182 -0
- package/dist/esm/q-quantity-selector.entry.js +176 -0
- package/dist/esm/q-reel.entry.js +115 -0
- package/dist/esm/q-sidepanel.entry.js +213 -0
- package/dist/esm/q-step-diagram-item.entry.js +46 -0
- package/dist/esm/q-step-diagram.entry.js +45 -0
- package/dist/esm/q-syntax-box.entry.js +455 -0
- package/dist/esm/q-textarea.entry.js +134 -0
- package/dist/esm/q-thumbnail.entry.js +42 -0
- package/dist/esm/q-toggle.entry.js +146 -0
- package/dist/esm/webquark.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/playground/assets/icons/braces.svg +14 -0
- package/dist/playground/assets/icons/check.svg +1 -0
- package/dist/playground/assets/icons/chevron-down.svg +1 -0
- package/dist/playground/assets/icons/chevron-left.svg +1 -0
- package/dist/playground/assets/icons/chevron-right.svg +1 -0
- package/dist/playground/assets/icons/chevron-up.svg +1 -0
- package/dist/playground/assets/icons/copy.svg +4 -0
- package/dist/playground/assets/icons/eye-off.svg +1 -0
- package/dist/playground/assets/icons/eye.svg +1 -0
- package/dist/playground/assets/icons/minus.svg +1 -0
- package/dist/playground/assets/icons/play.svg +1 -0
- package/dist/playground/assets/icons/plus.svg +1 -0
- package/dist/playground/assets/icons/search.svg +1 -0
- package/dist/playground/assets/icons/spinner.svg +1 -0
- package/dist/playground/assets/icons/trash-2.svg +1 -0
- package/dist/playground/assets/icons/x.svg +1 -0
- package/dist/playground/build/index.esm.js +1 -0
- package/dist/playground/build/p-095635d3.entry.js +1 -0
- package/dist/playground/build/p-1238a2cc.entry.js +1 -0
- package/dist/playground/build/p-389e2cd3.entry.js +1 -0
- package/dist/playground/build/p-4f133a25.entry.js +1 -0
- package/dist/playground/build/p-5c67a28e.entry.js +1 -0
- package/dist/playground/build/p-679fa494.entry.js +1 -0
- package/dist/playground/build/p-6dc7b987.entry.js +1 -0
- package/dist/playground/build/p-7083c5ff.entry.js +1 -0
- package/dist/playground/build/p-7f47861b.entry.js +1 -0
- package/dist/playground/build/p-8a94a0a2.entry.js +1 -0
- package/dist/playground/build/p-9afa3fe8.entry.js +1 -0
- package/dist/playground/build/p-9bb8ed97.entry.js +1 -0
- package/dist/playground/build/p-BJiYCN3i.js +1 -0
- package/dist/playground/build/p-CYoQ4Zv3.js +2 -0
- package/dist/playground/build/p-DoQvrOHk.js +1 -0
- package/dist/playground/build/p-aa9be919.entry.js +1 -0
- package/dist/playground/build/p-b1e68119.entry.js +1 -0
- package/dist/playground/build/p-c8d6af8e.entry.js +1 -0
- package/dist/playground/build/p-f48dd3dd.entry.js +1 -0
- package/dist/playground/build/p-f7b5b155.entry.js +1 -0
- package/dist/playground/build/webquark.css +1 -0
- package/dist/playground/build/webquark.esm.js +1 -0
- package/dist/playground/build/webquark.js +33 -0
- package/dist/playground/css/base.css +145 -0
- package/dist/playground/host.config.json +15 -0
- package/dist/playground/index.html +29 -0
- package/dist/playground/logo.svg +8 -0
- package/dist/playground/playground/components.manifest.json +20 -0
- package/dist/playground/playground/specs/q-button.sandbox.json +198 -0
- package/dist/playground/playground/specs/q-card.sandbox.json +144 -0
- package/dist/playground/playground/specs/q-carousel.sandbox.json +120 -0
- package/dist/playground/playground/specs/q-circular-progress.sandbox.json +91 -0
- package/dist/playground/playground/specs/q-data-table.sandbox.json +108 -0
- package/dist/playground/playground/specs/q-dialog.sandbox.json +108 -0
- package/dist/playground/playground/specs/q-dropdown.sandbox.json +116 -0
- package/dist/playground/playground/specs/q-icon.sandbox.json +138 -0
- package/dist/playground/playground/specs/q-input.sandbox.json +192 -0
- package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +99 -0
- package/dist/playground/playground/specs/q-reel.sandbox.json +70 -0
- package/dist/playground/playground/specs/q-scrollable.sandbox.json +102 -0
- package/dist/playground/playground/specs/q-sidepanel.sandbox.json +147 -0
- package/dist/playground/playground/specs/q-step-diagram.sandbox.json +56 -0
- package/dist/playground/playground/specs/q-syntax-box.sandbox.json +160 -0
- package/dist/playground/playground/specs/q-textarea.sandbox.json +133 -0
- package/dist/playground/playground/specs/q-toggle.sandbox.json +196 -0
- package/dist/playground/playground/specs/q-tooltip.sandbox.json +65 -0
- package/dist/playground/playground.css +1 -0
- package/dist/playground/playground.js +2831 -0
- package/dist/playground/views/q-button-view/q-button-view.css +1 -0
- package/dist/playground/views/q-button-view/q-button-view.html +1 -0
- package/dist/playground/views/q-button-view/q-button-view.js +6 -0
- package/dist/playground/views/q-input-view/q-input-view.css +1 -0
- package/dist/playground/views/q-input-view/q-input-view.html +1 -0
- package/dist/playground/views/q-input-view/q-input-view.js +6 -0
- package/dist/types/components/button/button.d.ts +26 -0
- package/dist/types/components/card/card.d.ts +12 -0
- package/dist/types/components/carousel/carousel.d.ts +44 -0
- package/dist/types/components/circular-progress/circular-progress.d.ts +7 -0
- package/dist/types/components/data-table/data-table.d.ts +45 -0
- package/dist/types/components/dialog/dialog.d.ts +35 -0
- package/dist/types/components/dropdown/dropdown.d.ts +49 -0
- package/dist/types/components/icon/icon.d.ts +33 -0
- package/dist/types/components/input/input.d.ts +43 -0
- package/dist/types/components/quantity-selector/quantity-selector.d.ts +31 -0
- package/dist/types/components/reel/reel.d.ts +23 -0
- package/dist/types/components/scrollable/scrollable.d.ts +47 -0
- package/dist/types/components/sidepanel/sidepanel.d.ts +58 -0
- package/dist/types/components/step-diagram/step-diagram.d.ts +10 -0
- package/dist/types/components/step-diagram-item/step-diagram-item.d.ts +12 -0
- package/dist/types/components/syntax-box/syntax-box.d.ts +37 -0
- package/dist/types/components/textarea/textarea.d.ts +36 -0
- package/dist/types/components/thumbnail/thumbnail.d.ts +18 -0
- package/dist/types/components/toggle/toggle.d.ts +36 -0
- package/dist/types/components/tooltip/tooltip.d.ts +29 -0
- package/dist/types/components.d.ts +1752 -0
- package/dist/types/declarations.d.ts +9 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/playground/components/playground-code-preview/playground-code-preview.d.ts +9 -0
- package/dist/types/playground/components/playground-event-log/playground-event-log.d.ts +11 -0
- package/dist/types/playground/components/playground-header/playground-header.d.ts +10 -0
- package/dist/types/playground/components/playground-sidebar/playground-sidebar.d.ts +11 -0
- package/dist/types/playground/components/properties-panel/properties-panel.d.ts +15 -0
- package/dist/types/playground/components/properties-panel/property-row.d.ts +6 -0
- package/dist/types/playground/components/properties-panel/slot-row.d.ts +7 -0
- package/dist/types/playground/components/sandbox-viewport/sandbox-panel.d.ts +15 -0
- package/dist/types/playground/components/sandbox-viewport/sandbox-viewport.d.ts +14 -0
- package/dist/types/playground/components/sandbox-viewport/variant-card.d.ts +7 -0
- package/dist/types/playground/components/sandbox-viewport/viewport-tabs.d.ts +5 -0
- package/dist/types/playground/components/theme-designer/theme-designer.d.ts +15 -0
- package/dist/types/playground/components/theme-designer/token-row.d.ts +13 -0
- package/dist/types/playground/components/theme-designer/token-section.d.ts +7 -0
- package/dist/types/playground/dom-factory.d.ts +12 -0
- package/dist/types/playground/events.d.ts +24 -0
- package/dist/types/playground/playground.d.ts +7 -0
- package/dist/types/playground/state.d.ts +44 -0
- package/dist/types/playground/utils/color.d.ts +8 -0
- package/dist/types/playground/utils/dom.d.ts +15 -0
- package/dist/types/playground/utils/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +1861 -0
- package/dist/types/utils/dom.d.ts +68 -0
- package/dist/types/utils/formatter.d.ts +24 -0
- package/dist/types/utils/formatter.unit.test.d.ts +1 -0
- package/dist/types/utils/math.d.ts +10 -0
- package/dist/types/utils/syntax.d.ts +9 -0
- package/dist/types/utils/utils.d.ts +11 -0
- package/dist/types/utils/utils.unit.test.d.ts +1 -0
- package/dist/webquark/index.esm.js +1 -0
- package/dist/webquark/p-095635d3.entry.js +1 -0
- package/dist/webquark/p-1238a2cc.entry.js +1 -0
- package/dist/webquark/p-389e2cd3.entry.js +1 -0
- package/dist/webquark/p-4f133a25.entry.js +1 -0
- package/dist/webquark/p-5c67a28e.entry.js +1 -0
- package/dist/webquark/p-679fa494.entry.js +1 -0
- package/dist/webquark/p-6dc7b987.entry.js +1 -0
- package/dist/webquark/p-7083c5ff.entry.js +1 -0
- package/dist/webquark/p-7f47861b.entry.js +1 -0
- package/dist/webquark/p-8a94a0a2.entry.js +1 -0
- package/dist/webquark/p-9afa3fe8.entry.js +1 -0
- package/dist/webquark/p-9bb8ed97.entry.js +1 -0
- package/dist/webquark/p-BJiYCN3i.js +1 -0
- package/dist/webquark/p-CYoQ4Zv3.js +2 -0
- package/dist/webquark/p-DoQvrOHk.js +1 -0
- package/dist/webquark/p-aa9be919.entry.js +1 -0
- package/dist/webquark/p-b1e68119.entry.js +1 -0
- package/dist/webquark/p-c8d6af8e.entry.js +1 -0
- package/dist/webquark/p-f48dd3dd.entry.js +1 -0
- package/dist/webquark/p-f7b5b155.entry.js +1 -0
- package/dist/webquark/webquark.css +1 -0
- package/dist/webquark/webquark.esm.js +1 -0
- package/package.json +84 -0
- package/readme.md +79 -0
- package/scripts/webquark-serve.js +79 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
flex: 1; /* For equal horizontal spacing */
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.step-item {
|
|
8
|
+
display: flex;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Vertical Positioning */
|
|
14
|
+
:host([layout="vertical"]) .step-item {
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
padding-bottom: var(--q-step-diag-item-gap, 24px);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Horizontal Positioning */
|
|
20
|
+
:host([layout="horizontal"]) .step-item {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: center;
|
|
23
|
+
padding-right: var(--q-step-diag-item-gap, 24px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Badge Circle Node - decorative */
|
|
27
|
+
.step-badge {
|
|
28
|
+
position: relative;
|
|
29
|
+
width: var(--q-step-diag-icon-size, 32px);
|
|
30
|
+
height: var(--q-step-diag-icon-size, 32px);
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
background: var(--q-bg-surface-2, #374151);
|
|
33
|
+
border: var(--q-step-diag-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
z-index: 2;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
outline: none;
|
|
40
|
+
|
|
41
|
+
transition: all var(--q-transition-normal, 250ms ease);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.badge-dot {
|
|
45
|
+
width: 8px;
|
|
46
|
+
height: 8px;
|
|
47
|
+
border-radius: 50%;
|
|
48
|
+
background: var(--q-color-secondary, #9ca3af);
|
|
49
|
+
transition: background var(--q-transition-normal, 250ms ease);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Connector Line Paths */
|
|
53
|
+
.step-line-container {
|
|
54
|
+
display: flex;
|
|
55
|
+
position: relative;
|
|
56
|
+
align-items: center;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([layout="vertical"]) .step-line-container {
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
width: var(--q-step-diag-icon-size, 32px);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host([layout="horizontal"]) .step-line-container {
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
width: 100%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.step-connector {
|
|
70
|
+
position: absolute;
|
|
71
|
+
z-index: 1;
|
|
72
|
+
border-color: var(--q-border-color, #4b5563);
|
|
73
|
+
transition: border-color var(--q-transition-normal, 250ms ease);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Vertical Line path */
|
|
77
|
+
:host([layout="vertical"]) .step-connector {
|
|
78
|
+
top: var(--q-step-diag-icon-size, 32px);
|
|
79
|
+
left: calc(50% - 1px);
|
|
80
|
+
height: 100%;
|
|
81
|
+
border-left: var(--q-step-diag-line, 2px solid var(--q-border-color, #4b5563));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Horizontal Line path */
|
|
85
|
+
:host([layout="horizontal"]) .step-connector {
|
|
86
|
+
left: var(--q-step-diag-icon-size, 32px);
|
|
87
|
+
top: calc(50% - 1px);
|
|
88
|
+
width: 100%;
|
|
89
|
+
border-top: var(--q-step-diag-line, 2px solid var(--q-border-color, #4b5563));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Line Styles Overrides */
|
|
93
|
+
.line-dashed .step-connector { border-style: dashed; }
|
|
94
|
+
.line-dotted .step-connector { border-style: dotted; }
|
|
95
|
+
.line-none .step-connector { display: none; }
|
|
96
|
+
|
|
97
|
+
/* Status Color Mappings */
|
|
98
|
+
/* Completed / Success */
|
|
99
|
+
.status-completed .step-badge,
|
|
100
|
+
.status-success .step-badge {
|
|
101
|
+
background: var(--q-color-success, #34d399);
|
|
102
|
+
border-color: var(--q-color-success, #34d399);
|
|
103
|
+
}
|
|
104
|
+
.status-completed .badge-dot,
|
|
105
|
+
.status-success .badge-dot {
|
|
106
|
+
background: var(--q-bg-base, #111827);
|
|
107
|
+
}
|
|
108
|
+
.status-completed .step-connector,
|
|
109
|
+
.status-success .step-connector {
|
|
110
|
+
border-color: var(--q-color-success, #34d399);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Active status GPU-friendly pulse animation (opacity/scale overlay) */
|
|
114
|
+
.status-active .step-badge {
|
|
115
|
+
background: var(--q-bg-surface-2, #374151);
|
|
116
|
+
border-color: var(--q-color-primary, #60a5fa);
|
|
117
|
+
}
|
|
118
|
+
.status-active .badge-dot {
|
|
119
|
+
background: var(--q-color-primary, #60a5fa);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.status-active .step-badge::after {
|
|
123
|
+
content: '';
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: -2px;
|
|
126
|
+
left: -2px;
|
|
127
|
+
right: -2px;
|
|
128
|
+
bottom: -2px;
|
|
129
|
+
border-radius: 50%;
|
|
130
|
+
border: 2px solid var(--q-color-primary, #60a5fa);
|
|
131
|
+
opacity: 0;
|
|
132
|
+
animation: active-pulse-gpu 2s infinite ease-out;
|
|
133
|
+
pointer-events: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Warning */
|
|
137
|
+
.status-warning .step-badge {
|
|
138
|
+
background: var(--q-bg-surface-2, #374151);
|
|
139
|
+
border-color: var(--q-color-warning, #fbbf24);
|
|
140
|
+
}
|
|
141
|
+
.status-warning .badge-dot {
|
|
142
|
+
background: var(--q-color-warning, #fbbf24);
|
|
143
|
+
}
|
|
144
|
+
.status-warning .step-connector {
|
|
145
|
+
border-color: var(--q-color-warning, #fbbf24);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Danger */
|
|
149
|
+
.status-danger .step-badge {
|
|
150
|
+
background: var(--q-bg-surface-2, #374151);
|
|
151
|
+
border-color: var(--q-color-danger, #ef4444);
|
|
152
|
+
}
|
|
153
|
+
.status-danger .badge-dot {
|
|
154
|
+
background: var(--q-color-danger, #ef4444);
|
|
155
|
+
}
|
|
156
|
+
.status-danger .step-connector {
|
|
157
|
+
border-color: var(--q-color-danger, #ef4444);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Pending */
|
|
161
|
+
.status-pending .step-badge {
|
|
162
|
+
background: transparent;
|
|
163
|
+
border-color: var(--q-border-color, #4b5563);
|
|
164
|
+
}
|
|
165
|
+
.status-pending .badge-dot {
|
|
166
|
+
background: var(--q-color-secondary, #9ca3af);
|
|
167
|
+
opacity: 0.5;
|
|
168
|
+
}
|
|
169
|
+
.status-pending .step-connector {
|
|
170
|
+
border-color: var(--q-border-color, #4b5563);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* Content Box Styling */
|
|
174
|
+
.step-content {
|
|
175
|
+
flex: 1;
|
|
176
|
+
background: var(--q-bg-surface-1, #1f2937);
|
|
177
|
+
border: var(--q-step-diag-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));
|
|
178
|
+
border-radius: var(--q-radius-lg, 12px);
|
|
179
|
+
padding: var(--q-padding-md, 16px);
|
|
180
|
+
margin-left: var(--q-padding-md, 16px);
|
|
181
|
+
cursor: pointer;
|
|
182
|
+
outline: none;
|
|
183
|
+
|
|
184
|
+
transition: all var(--q-transition-normal, 250ms ease);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:host([layout="horizontal"]) .step-content {
|
|
188
|
+
margin-left: 0;
|
|
189
|
+
margin-top: var(--q-padding-md, 16px);
|
|
190
|
+
width: 100%;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.step-content:hover,
|
|
194
|
+
.step-content:focus-visible {
|
|
195
|
+
border-color: var(--q-color-primary, #60a5fa);
|
|
196
|
+
transform: translateY(-2px);
|
|
197
|
+
box-shadow: var(--q-shadow-low, 0 2px 4px rgba(0,0,0,0.1));
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* Keyboard Focus Indicators */
|
|
201
|
+
.step-content:focus-visible {
|
|
202
|
+
outline: var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));
|
|
203
|
+
outline-offset: 2px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* Content Text Typographies */
|
|
207
|
+
.step-title {
|
|
208
|
+
font-family: var(--q-font-family, inherit);
|
|
209
|
+
font-size: var(--q-font-size-sm, 0.7rem);
|
|
210
|
+
font-weight: var(--q-font-weight-bold, 700);
|
|
211
|
+
color: var(--q-color-primary, #60a5fa);
|
|
212
|
+
margin-bottom: 4px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.status-completed .step-title,
|
|
216
|
+
.status-success .step-title {
|
|
217
|
+
color: var(--q-color-success, #34d399);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.status-active .step-title {
|
|
221
|
+
color: var(--q-color-primary, #60a5fa);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.status-warning .step-title {
|
|
225
|
+
color: var(--q-color-warning, #fbbf24);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.status-danger .step-title {
|
|
229
|
+
color: var(--q-color-danger, #ef4444);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.status-pending .step-title {
|
|
233
|
+
color: var(--q-fg-muted, #9ca3af);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.step-body {
|
|
237
|
+
font-family: var(--q-font-family, inherit);
|
|
238
|
+
font-size: var(--q-font-size-base, 1rem);
|
|
239
|
+
font-weight: var(--q-font-weight-normal, 400);
|
|
240
|
+
color: var(--q-fg-base, #f9fafb);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* GPU Optimized Scale and Opacity pulse */
|
|
244
|
+
@keyframes active-pulse-gpu {
|
|
245
|
+
0% {
|
|
246
|
+
transform: scale(0.95);
|
|
247
|
+
opacity: 0.8;
|
|
248
|
+
}
|
|
249
|
+
100% {
|
|
250
|
+
transform: scale(1.35);
|
|
251
|
+
opacity: 0;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class QStepDiagramItem {
|
|
3
|
+
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
4
|
+
status = 'completed';
|
|
5
|
+
lineStyle = 'solid';
|
|
6
|
+
layout = 'vertical';
|
|
7
|
+
el;
|
|
8
|
+
qItemClick;
|
|
9
|
+
componentWillLoad() {
|
|
10
|
+
const parent = this.el.closest('q-step-diagram');
|
|
11
|
+
if (parent) {
|
|
12
|
+
this.layout = parent.layout;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
// =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
|
|
16
|
+
handleTrigger = (e) => {
|
|
17
|
+
e.stopPropagation();
|
|
18
|
+
this.qItemClick.emit();
|
|
19
|
+
};
|
|
20
|
+
handleKeyDown = (e) => {
|
|
21
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
22
|
+
e.preventDefault();
|
|
23
|
+
e.stopPropagation();
|
|
24
|
+
this.qItemClick.emit();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
28
|
+
render() {
|
|
29
|
+
return (h("div", { key: '9cccbc15939e9192205a5d6efd37c81f13e0eccb', class: {
|
|
30
|
+
'step-item': true,
|
|
31
|
+
[`status-${this.status}`]: true,
|
|
32
|
+
[`line-${this.lineStyle}`]: true,
|
|
33
|
+
[`layout-${this.layout}`]: true
|
|
34
|
+
} }, h("div", { key: '53361dba74377dcdb2b8cc7118fdf01a677e1099', class: "step-line-container" }, h("div", { key: 'a0bece09834c856eeadd40eb089d25b1fb04271e', class: "step-badge", onClick: this.handleTrigger, "aria-hidden": "true", part: "badge" }, h("slot", { key: 'e388b8c453834ac12a5983df68288145f868646b', name: "badge" }, h("div", { key: '6b730ae80a7eabc1a3f7768df86a34d709be2d79', class: "badge-dot" }))), h("div", { key: '63c90f4cab64e81e427f37c0350326115bc987dc', class: "step-connector", part: "connector" })), h("div", { key: 'dee57a6882fe871295e52da970515771e19e900b', class: "step-content", onClick: this.handleTrigger, onKeyDown: this.handleKeyDown, tabindex: "0", role: "button", part: "content" }, h("div", { key: '2985ceed5413a2b78cdf55421fab06d3c91e77d0', class: "step-title", part: "title" }, h("slot", { key: '4d0fd865662d83602268eb23bd9ebe7ec8c83dce', name: "title" })), h("div", { key: '8b7f93fed3d0bf117acbb0354009186493fe44cf', class: "step-body", part: "body" }, h("slot", { key: '1c3ee8084521a9a799e3b2444b1edc0c1cee5066' })))));
|
|
35
|
+
}
|
|
36
|
+
static get is() { return "q-step-diagram-item"; }
|
|
37
|
+
static get encapsulation() { return "shadow"; }
|
|
38
|
+
static get originalStyleUrls() {
|
|
39
|
+
return {
|
|
40
|
+
"$": ["step-diagram-item.css"]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
static get styleUrls() {
|
|
44
|
+
return {
|
|
45
|
+
"$": ["step-diagram-item.css"]
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static get properties() {
|
|
49
|
+
return {
|
|
50
|
+
"status": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"mutable": false,
|
|
53
|
+
"complexType": {
|
|
54
|
+
"original": "'pending' | 'active' | 'completed' | 'success' | 'warning' | 'danger'",
|
|
55
|
+
"resolved": "\"active\" | \"completed\" | \"danger\" | \"pending\" | \"success\" | \"warning\"",
|
|
56
|
+
"references": {}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": false,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"getter": false,
|
|
65
|
+
"setter": false,
|
|
66
|
+
"reflect": true,
|
|
67
|
+
"attribute": "status",
|
|
68
|
+
"defaultValue": "'completed'"
|
|
69
|
+
},
|
|
70
|
+
"lineStyle": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "'solid' | 'dashed' | 'dotted' | 'none'",
|
|
75
|
+
"resolved": "\"dashed\" | \"dotted\" | \"none\" | \"solid\"",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": ""
|
|
83
|
+
},
|
|
84
|
+
"getter": false,
|
|
85
|
+
"setter": false,
|
|
86
|
+
"reflect": true,
|
|
87
|
+
"attribute": "line-style",
|
|
88
|
+
"defaultValue": "'solid'"
|
|
89
|
+
},
|
|
90
|
+
"layout": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"mutable": true,
|
|
93
|
+
"complexType": {
|
|
94
|
+
"original": "'vertical' | 'horizontal'",
|
|
95
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
96
|
+
"references": {}
|
|
97
|
+
},
|
|
98
|
+
"required": false,
|
|
99
|
+
"optional": false,
|
|
100
|
+
"docs": {
|
|
101
|
+
"tags": [],
|
|
102
|
+
"text": ""
|
|
103
|
+
},
|
|
104
|
+
"getter": false,
|
|
105
|
+
"setter": false,
|
|
106
|
+
"reflect": true,
|
|
107
|
+
"attribute": "layout",
|
|
108
|
+
"defaultValue": "'vertical'"
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
static get events() {
|
|
113
|
+
return [{
|
|
114
|
+
"method": "qItemClick",
|
|
115
|
+
"name": "qItemClick",
|
|
116
|
+
"bubbles": true,
|
|
117
|
+
"cancelable": true,
|
|
118
|
+
"composed": true,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": ""
|
|
122
|
+
},
|
|
123
|
+
"complexType": {
|
|
124
|
+
"original": "void",
|
|
125
|
+
"resolved": "void",
|
|
126
|
+
"references": {}
|
|
127
|
+
}
|
|
128
|
+
}];
|
|
129
|
+
}
|
|
130
|
+
static get elementRef() { return "el"; }
|
|
131
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--q-syntax-bg: #0d1117;
|
|
3
|
+
--q-syntax-border: #21262d;
|
|
4
|
+
--q-syntax-header-bg: #161b22;
|
|
5
|
+
--q-syntax-text: #c9d1d9;
|
|
6
|
+
--q-syntax-comment: #8b949e;
|
|
7
|
+
--q-syntax-tag: #ff7b72;
|
|
8
|
+
--q-syntax-attr: #79c0ff;
|
|
9
|
+
--q-syntax-value: #a5d6ff;
|
|
10
|
+
--q-syntax-number: #f0883e;
|
|
11
|
+
|
|
12
|
+
display: block;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Panel Layout */
|
|
17
|
+
.panel-container {
|
|
18
|
+
position: relative;
|
|
19
|
+
border-radius: var(--q-radius-lg, 12px);
|
|
20
|
+
background: var(--q-syntax-bg);
|
|
21
|
+
border: 1px solid var(--q-syntax-border);
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
height: 100%;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.panel-header {
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: 16px;
|
|
34
|
+
padding: 4px 16px;
|
|
35
|
+
background: var(--q-syntax-header-bg);
|
|
36
|
+
border-bottom: 1px solid var(--q-syntax-border);
|
|
37
|
+
font-size: 0.8rem;
|
|
38
|
+
color: var(--q-syntax-comment);
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.panel-header > span {
|
|
44
|
+
flex-shrink: 1;
|
|
45
|
+
min-width: 0;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
text-overflow: ellipsis;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.panel-actions {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: 8px;
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/* Plain Layout */
|
|
60
|
+
.plain-container {
|
|
61
|
+
margin: 0;
|
|
62
|
+
padding: 0;
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Code Typography and Style */
|
|
67
|
+
.code-body {
|
|
68
|
+
margin: 0;
|
|
69
|
+
padding: 16px;
|
|
70
|
+
overflow-x: hidden;
|
|
71
|
+
overflow-y: auto;
|
|
72
|
+
font-family:
|
|
73
|
+
ui-monospace,
|
|
74
|
+
SFMono-Regular,
|
|
75
|
+
SF Mono,
|
|
76
|
+
Menlo,
|
|
77
|
+
Consolas,
|
|
78
|
+
Liberation Mono,
|
|
79
|
+
monospace;
|
|
80
|
+
font-size: 0.85rem;
|
|
81
|
+
line-height: 1.5;
|
|
82
|
+
color: var(--q-syntax-text);
|
|
83
|
+
white-space: pre-wrap;
|
|
84
|
+
word-wrap: break-word;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* For plain variant custom classes if needed */
|
|
88
|
+
:host(.variant-card-code) .code-body {
|
|
89
|
+
padding: 10px;
|
|
90
|
+
font-size: 0.75rem;
|
|
91
|
+
border-radius: var(--q-radius-md, 8px);
|
|
92
|
+
background: var(--q-syntax-bg);
|
|
93
|
+
border: 1px solid var(--q-syntax-border);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Syntax Highlighting Tokens */
|
|
97
|
+
.code-comment {
|
|
98
|
+
color: var(--q-syntax-comment);
|
|
99
|
+
font-style: italic;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.code-tag {
|
|
103
|
+
color: var(--q-syntax-tag);
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.code-attr {
|
|
108
|
+
color: var(--q-syntax-attr);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.code-value {
|
|
112
|
+
color: var(--q-syntax-value);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.code-number {
|
|
116
|
+
color: var(--q-syntax-number);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Editor Layer Layout */
|
|
120
|
+
.editor-area {
|
|
121
|
+
position: relative;
|
|
122
|
+
width: 100%;
|
|
123
|
+
box-sizing: border-box;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.editor-textarea {
|
|
127
|
+
position: absolute;
|
|
128
|
+
top: 0;
|
|
129
|
+
left: 0;
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: 100%;
|
|
132
|
+
margin: 0;
|
|
133
|
+
padding: 16px;
|
|
134
|
+
box-sizing: border-box;
|
|
135
|
+
font-family:
|
|
136
|
+
ui-monospace,
|
|
137
|
+
SFMono-Regular,
|
|
138
|
+
SF Mono,
|
|
139
|
+
Menlo,
|
|
140
|
+
Consolas,
|
|
141
|
+
Liberation Mono,
|
|
142
|
+
monospace;
|
|
143
|
+
font-size: 0.85rem;
|
|
144
|
+
line-height: 1.5;
|
|
145
|
+
white-space: pre-wrap;
|
|
146
|
+
word-wrap: break-word;
|
|
147
|
+
overflow-x: hidden;
|
|
148
|
+
overflow-y: auto;
|
|
149
|
+
background: transparent;
|
|
150
|
+
color: transparent;
|
|
151
|
+
caret-color: var(--q-color-primary, #60a5fa);
|
|
152
|
+
border: none;
|
|
153
|
+
outline: none;
|
|
154
|
+
resize: none;
|
|
155
|
+
z-index: 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.editor-textarea::selection {
|
|
159
|
+
background: rgba(96, 165, 250, 0.3);
|
|
160
|
+
color: transparent;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.editor-area .code-body {
|
|
164
|
+
position: relative;
|
|
165
|
+
width: 100%;
|
|
166
|
+
height: 100%;
|
|
167
|
+
margin: 0;
|
|
168
|
+
padding: 16px;
|
|
169
|
+
box-sizing: border-box;
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
pointer-events: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* Panel focus and active state styling */
|
|
175
|
+
.panel-container:focus-within {
|
|
176
|
+
outline: var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));
|
|
177
|
+
outline-offset: -1px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Plain variant editor styles */
|
|
181
|
+
:host(.is-editable) .plain-container:focus-within {
|
|
182
|
+
outline: var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));
|
|
183
|
+
border-radius: var(--q-radius-md, 8px);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* Disabled State Visual Styling */
|
|
187
|
+
:host([disabled]),
|
|
188
|
+
:host(.is-disabled) {
|
|
189
|
+
opacity: 0.6;
|
|
190
|
+
cursor: not-allowed !important;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:host([disabled]) .editor-textarea,
|
|
194
|
+
:host(.is-disabled) .editor-textarea,
|
|
195
|
+
.editor-textarea:disabled,
|
|
196
|
+
:host([disabled]) .code-body,
|
|
197
|
+
:host(.is-disabled) .code-body,
|
|
198
|
+
:host([disabled]) .code-body *,
|
|
199
|
+
:host(.is-disabled) .code-body * {
|
|
200
|
+
cursor: not-allowed !important;
|
|
201
|
+
user-select: none;
|
|
202
|
+
-webkit-user-select: none;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|