@webquark/core 1.0.0 → 1.0.2
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 -21
- package/{readme.md → README.md} +97 -78
- package/dist/cjs/q-button_3.cjs.entry.js +22 -22
- package/dist/cjs/q-card.cjs.entry.js +3 -3
- package/dist/cjs/q-carousel.cjs.entry.js +2 -2
- package/dist/cjs/q-circular-progress_2.cjs.entry.js +5 -5
- package/dist/cjs/q-data-table.cjs.entry.js +3 -3
- package/dist/cjs/q-dialog.cjs.entry.js +1 -1
- package/dist/cjs/q-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/q-quantity-selector.cjs.entry.js +5 -5
- package/dist/cjs/q-reel.cjs.entry.js +2 -2
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +2 -2
- package/dist/cjs/q-step-diagram.cjs.entry.js +2 -2
- package/dist/cjs/q-textarea.cjs.entry.js +2 -2
- package/dist/cjs/q-thumbnail.cjs.entry.js +2 -2
- package/dist/cjs/q-toggle.cjs.entry.js +3 -3
- package/dist/collection/assets/icons/braces.svg +14 -14
- package/dist/collection/assets/icons/check.svg +1 -1
- package/dist/collection/assets/icons/chevron-down.svg +1 -1
- package/dist/collection/assets/icons/chevron-left.svg +1 -1
- package/dist/collection/assets/icons/chevron-right.svg +1 -1
- package/dist/collection/assets/icons/chevron-up.svg +1 -1
- package/dist/collection/assets/icons/copy.svg +4 -4
- package/dist/collection/assets/icons/eye-off.svg +1 -1
- package/dist/collection/assets/icons/eye.svg +1 -1
- package/dist/collection/assets/icons/minus.svg +1 -1
- package/dist/collection/assets/icons/play.svg +1 -1
- package/dist/collection/assets/icons/plus.svg +1 -1
- package/dist/collection/assets/icons/search.svg +1 -1
- package/dist/collection/assets/icons/spinner.svg +1 -1
- package/dist/collection/assets/icons/trash-2.svg +1 -1
- package/dist/collection/assets/icons/x.svg +1 -1
- package/dist/collection/components/card/card.js +3 -3
- package/dist/collection/components/carousel/carousel.js +2 -2
- package/dist/collection/components/circular-progress/circular-progress.js +2 -2
- package/dist/collection/components/data-table/data-table.css +219 -219
- package/dist/collection/components/data-table/data-table.js +4 -4
- package/dist/collection/components/dialog/dialog.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +5 -5
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/input/input.js +3 -3
- package/dist/collection/components/quantity-selector/quantity-selector.css +131 -131
- package/dist/collection/components/quantity-selector/quantity-selector.js +4 -4
- package/dist/collection/components/reel/reel.js +2 -2
- package/dist/collection/components/scrollable/scrollable.js +22 -22
- package/dist/collection/components/sidepanel/sidepanel.js +2 -2
- package/dist/collection/components/step-diagram/step-diagram.js +2 -2
- package/dist/collection/components/step-diagram-item/step-diagram-item.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/toggle/toggle.js +4 -4
- package/dist/collection/playground/components/playground-event-log/playground-event-log.js +3 -3
- package/dist/collection/playground/components/sandbox-viewport/sandbox-panel.js +3 -3
- package/dist/collection/playground/logo.svg +8 -8
- package/dist/collection/playground/playground.bundled.js +590 -590
- package/dist/collection/playground/views/q-button-view/q-button-view.js +6 -6
- package/dist/collection/playground/views/q-input-view/q-input-view.js +6 -6
- package/dist/collection/utils/formatter.unit.test.js +24 -24
- package/dist/components/{p-CYfD9z8O.js → p-B4IF9WVv.js} +1 -1
- package/dist/components/{p-BRNv11Jn.js → p-DScvq41R.js} +1 -1
- package/dist/components/{p-B7e76DLW.js → p-Do2ppeKL.js} +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-circular-progress.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-input.js +1 -1
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- 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 +1 -1
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toggle.js +1 -1
- package/dist/esm/q-button_3.entry.js +22 -22
- package/dist/esm/q-card.entry.js +3 -3
- package/dist/esm/q-carousel.entry.js +2 -2
- package/dist/esm/q-circular-progress_2.entry.js +5 -5
- package/dist/esm/q-data-table.entry.js +3 -3
- package/dist/esm/q-dialog.entry.js +1 -1
- package/dist/esm/q-dropdown.entry.js +3 -3
- package/dist/esm/q-quantity-selector.entry.js +5 -5
- package/dist/esm/q-reel.entry.js +2 -2
- package/dist/esm/q-step-diagram-item.entry.js +2 -2
- package/dist/esm/q-step-diagram.entry.js +2 -2
- package/dist/esm/q-textarea.entry.js +2 -2
- package/dist/esm/q-thumbnail.entry.js +2 -2
- package/dist/esm/q-toggle.entry.js +3 -3
- package/dist/playground/assets/icons/braces.svg +14 -14
- package/dist/playground/assets/icons/check.svg +1 -1
- package/dist/playground/assets/icons/chevron-down.svg +1 -1
- package/dist/playground/assets/icons/chevron-left.svg +1 -1
- package/dist/playground/assets/icons/chevron-right.svg +1 -1
- package/dist/playground/assets/icons/chevron-up.svg +1 -1
- package/dist/playground/assets/icons/copy.svg +4 -4
- package/dist/playground/assets/icons/eye-off.svg +1 -1
- package/dist/playground/assets/icons/eye.svg +1 -1
- package/dist/playground/assets/icons/minus.svg +1 -1
- package/dist/playground/assets/icons/play.svg +1 -1
- package/dist/playground/assets/icons/plus.svg +1 -1
- package/dist/playground/assets/icons/search.svg +1 -1
- package/dist/playground/assets/icons/spinner.svg +1 -1
- package/dist/playground/assets/icons/trash-2.svg +1 -1
- package/dist/playground/assets/icons/x.svg +1 -1
- package/dist/playground/build/{p-4f133a25.entry.js → p-1187e439.entry.js} +1 -1
- package/dist/playground/build/{p-c8d6af8e.entry.js → p-38d9e75b.entry.js} +1 -1
- package/dist/{webquark/p-f7b5b155.entry.js → playground/build/p-4ce667f1.entry.js} +1 -1
- package/dist/{webquark/p-aa9be919.entry.js → playground/build/p-66b0eb0f.entry.js} +1 -1
- package/dist/{webquark/p-b1e68119.entry.js → playground/build/p-69d33f9d.entry.js} +1 -1
- package/dist/playground/build/{p-679fa494.entry.js → p-76e04a7f.entry.js} +1 -1
- package/dist/{webquark/p-f48dd3dd.entry.js → playground/build/p-776a0eb6.entry.js} +1 -1
- package/dist/playground/build/{p-5c67a28e.entry.js → p-7c4532f3.entry.js} +1 -1
- package/dist/playground/build/p-7d2144cf.entry.js +1 -0
- package/dist/playground/build/{p-7083c5ff.entry.js → p-84185204.entry.js} +1 -1
- package/dist/{webquark/p-1238a2cc.entry.js → playground/build/p-938cd8a6.entry.js} +1 -1
- package/dist/playground/build/{p-7f47861b.entry.js → p-a182b818.entry.js} +1 -1
- package/dist/playground/build/p-aa017815.entry.js +1 -0
- package/dist/playground/build/{p-8a94a0a2.entry.js → p-d7607e11.entry.js} +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/logo.svg +8 -8
- package/dist/playground/playground/specs/q-button.sandbox.json +198 -198
- package/dist/playground/playground/specs/q-card.sandbox.json +144 -144
- package/dist/playground/playground/specs/q-carousel.sandbox.json +120 -120
- package/dist/playground/playground/specs/q-circular-progress.sandbox.json +91 -91
- package/dist/playground/playground/specs/q-data-table.sandbox.json +108 -108
- package/dist/playground/playground/specs/q-dialog.sandbox.json +108 -108
- package/dist/playground/playground/specs/q-dropdown.sandbox.json +116 -116
- package/dist/playground/playground/specs/q-icon.sandbox.json +138 -138
- package/dist/playground/playground/specs/q-input.sandbox.json +192 -192
- package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +99 -99
- package/dist/playground/playground/specs/q-reel.sandbox.json +70 -70
- package/dist/playground/playground/specs/q-scrollable.sandbox.json +102 -102
- package/dist/playground/playground/specs/q-sidepanel.sandbox.json +147 -147
- package/dist/playground/playground/specs/q-step-diagram.sandbox.json +56 -56
- package/dist/playground/playground/specs/q-syntax-box.sandbox.json +160 -160
- package/dist/playground/playground/specs/q-textarea.sandbox.json +133 -133
- package/dist/playground/playground/specs/q-toggle.sandbox.json +196 -196
- package/dist/playground/playground/specs/q-tooltip.sandbox.json +65 -65
- package/dist/playground/playground.css +1 -1
- package/dist/playground/playground.js +590 -590
- package/dist/playground/views/q-button-view/q-button-view.css +1 -1
- package/dist/playground/views/q-button-view/q-button-view.html +1 -1
- package/dist/playground/views/q-button-view/q-button-view.js +6 -6
- package/dist/playground/views/q-input-view/q-input-view.css +1 -1
- package/dist/playground/views/q-input-view/q-input-view.html +1 -1
- package/dist/playground/views/q-input-view/q-input-view.js +6 -6
- package/dist/types/declarations.d.ts +9 -9
- package/dist/webquark/{p-4f133a25.entry.js → p-1187e439.entry.js} +1 -1
- package/dist/webquark/{p-c8d6af8e.entry.js → p-38d9e75b.entry.js} +1 -1
- package/dist/{playground/build/p-f7b5b155.entry.js → webquark/p-4ce667f1.entry.js} +1 -1
- package/dist/{playground/build/p-aa9be919.entry.js → webquark/p-66b0eb0f.entry.js} +1 -1
- package/dist/{playground/build/p-b1e68119.entry.js → webquark/p-69d33f9d.entry.js} +1 -1
- package/dist/webquark/{p-679fa494.entry.js → p-76e04a7f.entry.js} +1 -1
- package/dist/{playground/build/p-f48dd3dd.entry.js → webquark/p-776a0eb6.entry.js} +1 -1
- package/dist/webquark/{p-5c67a28e.entry.js → p-7c4532f3.entry.js} +1 -1
- package/dist/webquark/p-7d2144cf.entry.js +1 -0
- package/dist/webquark/{p-7083c5ff.entry.js → p-84185204.entry.js} +1 -1
- package/dist/{playground/build/p-1238a2cc.entry.js → webquark/p-938cd8a6.entry.js} +1 -1
- package/dist/webquark/{p-7f47861b.entry.js → p-a182b818.entry.js} +1 -1
- package/dist/webquark/p-aa017815.entry.js +1 -0
- package/dist/webquark/{p-8a94a0a2.entry.js → p-d7607e11.entry.js} +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +84 -84
- package/dist/playground/build/p-9afa3fe8.entry.js +0 -1
- package/dist/playground/build/p-9bb8ed97.entry.js +0 -1
- package/dist/webquark/p-9afa3fe8.entry.js +0 -1
- package/dist/webquark/p-9bb8ed97.entry.js +0 -1
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Step Diagram",
|
|
3
|
-
"tag": "q-step-diagram",
|
|
4
|
-
"props": {
|
|
5
|
-
"layout": {
|
|
6
|
-
"type": "select",
|
|
7
|
-
"options": [
|
|
8
|
-
"vertical",
|
|
9
|
-
"horizontal"
|
|
10
|
-
],
|
|
11
|
-
"default": "vertical",
|
|
12
|
-
"desc": "Timeline orientation path"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"slots": {
|
|
16
|
-
"default": {
|
|
17
|
-
"type": "html",
|
|
18
|
-
"default": "<q-step-diagram-item status=\"completed\">\n <span slot=\"title\">Step 1: Code Specs</span>\n Establish architectural guidelines.\n</q-step-diagram-item>\n<q-step-diagram-item status=\"active\">\n <span slot=\"title\">Step 2: Interactive Sandbox</span>\n Implement dashboard controls & knobs.\n</q-step-diagram-item>\n<q-step-diagram-item status=\"pending\" line-style=\"dashed\">\n <span slot=\"title\">Step 3: Verification Build</span>\n Transpile assets and execute production checks.\n</q-step-diagram-item>",
|
|
19
|
-
"desc": "Timeline step diagram items list"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"variants": [
|
|
23
|
-
{
|
|
24
|
-
"name": "Vertical Layout timeline",
|
|
25
|
-
"props": {
|
|
26
|
-
"layout": "vertical"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "Horizontal Layout timeline",
|
|
31
|
-
"props": {
|
|
32
|
-
"layout": "horizontal"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"edgeCases": [
|
|
37
|
-
{
|
|
38
|
-
"name": "Timeline Node Styles & Statuses",
|
|
39
|
-
"props": {
|
|
40
|
-
"layout": "vertical"
|
|
41
|
-
},
|
|
42
|
-
"slots": {
|
|
43
|
-
"default": "<q-step-diagram-item status=\"completed\" line-style=\"solid\"><span slot=\"title\">Completed</span>Status Completed</q-step-diagram-item>\n<q-step-diagram-item status=\"active\" line-style=\"dashed\"><span slot=\"title\">Active Status</span>Status Active</q-step-diagram-item>\n<q-step-diagram-item status=\"pending\" line-style=\"dotted\"><span slot=\"title\">Pending Status</span>Status Pending</q-step-diagram-item>\n<q-step-diagram-item status=\"success\" line-style=\"solid\"><span slot=\"title\">Success Status</span>Status Success</q-step-diagram-item>\n<q-step-diagram-item status=\"warning\" line-style=\"solid\"><span slot=\"title\">Warning Status</span>Status Warning</q-step-diagram-item>\n<q-step-diagram-item status=\"danger\" line-style=\"none\"><span slot=\"title\">Danger Status</span>Status Danger (End of path)</q-step-diagram-item>"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "Single Step Element",
|
|
48
|
-
"props": {
|
|
49
|
-
"layout": "vertical"
|
|
50
|
-
},
|
|
51
|
-
"slots": {
|
|
52
|
-
"default": "<q-step-diagram-item status=\"active\" line-style=\"none\"><span slot=\"title\">Isolated Node</span>Lone timeline item</q-step-diagram-item>"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "Step Diagram",
|
|
3
|
+
"tag": "q-step-diagram",
|
|
4
|
+
"props": {
|
|
5
|
+
"layout": {
|
|
6
|
+
"type": "select",
|
|
7
|
+
"options": [
|
|
8
|
+
"vertical",
|
|
9
|
+
"horizontal"
|
|
10
|
+
],
|
|
11
|
+
"default": "vertical",
|
|
12
|
+
"desc": "Timeline orientation path"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"slots": {
|
|
16
|
+
"default": {
|
|
17
|
+
"type": "html",
|
|
18
|
+
"default": "<q-step-diagram-item status=\"completed\">\n <span slot=\"title\">Step 1: Code Specs</span>\n Establish architectural guidelines.\n</q-step-diagram-item>\n<q-step-diagram-item status=\"active\">\n <span slot=\"title\">Step 2: Interactive Sandbox</span>\n Implement dashboard controls & knobs.\n</q-step-diagram-item>\n<q-step-diagram-item status=\"pending\" line-style=\"dashed\">\n <span slot=\"title\">Step 3: Verification Build</span>\n Transpile assets and execute production checks.\n</q-step-diagram-item>",
|
|
19
|
+
"desc": "Timeline step diagram items list"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"variants": [
|
|
23
|
+
{
|
|
24
|
+
"name": "Vertical Layout timeline",
|
|
25
|
+
"props": {
|
|
26
|
+
"layout": "vertical"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "Horizontal Layout timeline",
|
|
31
|
+
"props": {
|
|
32
|
+
"layout": "horizontal"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"edgeCases": [
|
|
37
|
+
{
|
|
38
|
+
"name": "Timeline Node Styles & Statuses",
|
|
39
|
+
"props": {
|
|
40
|
+
"layout": "vertical"
|
|
41
|
+
},
|
|
42
|
+
"slots": {
|
|
43
|
+
"default": "<q-step-diagram-item status=\"completed\" line-style=\"solid\"><span slot=\"title\">Completed</span>Status Completed</q-step-diagram-item>\n<q-step-diagram-item status=\"active\" line-style=\"dashed\"><span slot=\"title\">Active Status</span>Status Active</q-step-diagram-item>\n<q-step-diagram-item status=\"pending\" line-style=\"dotted\"><span slot=\"title\">Pending Status</span>Status Pending</q-step-diagram-item>\n<q-step-diagram-item status=\"success\" line-style=\"solid\"><span slot=\"title\">Success Status</span>Status Success</q-step-diagram-item>\n<q-step-diagram-item status=\"warning\" line-style=\"solid\"><span slot=\"title\">Warning Status</span>Status Warning</q-step-diagram-item>\n<q-step-diagram-item status=\"danger\" line-style=\"none\"><span slot=\"title\">Danger Status</span>Status Danger (End of path)</q-step-diagram-item>"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "Single Step Element",
|
|
48
|
+
"props": {
|
|
49
|
+
"layout": "vertical"
|
|
50
|
+
},
|
|
51
|
+
"slots": {
|
|
52
|
+
"default": "<q-step-diagram-item status=\"active\" line-style=\"none\"><span slot=\"title\">Isolated Node</span>Lone timeline item</q-step-diagram-item>"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -1,160 +1,160 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Syntax Box",
|
|
3
|
-
"tag": "q-syntax-box",
|
|
4
|
-
"props": {
|
|
5
|
-
"variant": {
|
|
6
|
-
"type": "select",
|
|
7
|
-
"options": [
|
|
8
|
-
"panel",
|
|
9
|
-
"plain"
|
|
10
|
-
],
|
|
11
|
-
"default": "panel",
|
|
12
|
-
"desc": "The layout variant of the syntax box container"
|
|
13
|
-
},
|
|
14
|
-
"language": {
|
|
15
|
-
"type": "select",
|
|
16
|
-
"options": [
|
|
17
|
-
"html",
|
|
18
|
-
"javascript",
|
|
19
|
-
"css",
|
|
20
|
-
"json"
|
|
21
|
-
],
|
|
22
|
-
"default": "html",
|
|
23
|
-
"desc": "The programming language highlighting rules to apply"
|
|
24
|
-
},
|
|
25
|
-
"height": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"default": "110px",
|
|
28
|
-
"desc": "The height of the scrollable viewport (e.g. '110px' or 'auto' for fitting content)"
|
|
29
|
-
},
|
|
30
|
-
"copyable": {
|
|
31
|
-
"type": "boolean",
|
|
32
|
-
"default": true,
|
|
33
|
-
"desc": "Renders a copy-to-clipboard button in the header"
|
|
34
|
-
},
|
|
35
|
-
"editable": {
|
|
36
|
-
"type": "boolean",
|
|
37
|
-
"default": false,
|
|
38
|
-
"desc": "Enables interactive code editing inside the syntax box"
|
|
39
|
-
},
|
|
40
|
-
"heading": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"default": "CODE PREVIEW",
|
|
43
|
-
"desc": "The header title displayed in the panel variant"
|
|
44
|
-
},
|
|
45
|
-
"code": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"default": "",
|
|
48
|
-
"desc": "The source code string to highlight (takes precedence over slot content)"
|
|
49
|
-
},
|
|
50
|
-
"required": {
|
|
51
|
-
"type": "boolean",
|
|
52
|
-
"default": false,
|
|
53
|
-
"desc": "Marks the input as required in editable mode"
|
|
54
|
-
},
|
|
55
|
-
"disabled": {
|
|
56
|
-
"type": "boolean",
|
|
57
|
-
"default": false,
|
|
58
|
-
"desc": "Disables interaction in editable mode"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"slots": {
|
|
62
|
-
"default": {
|
|
63
|
-
"type": "text",
|
|
64
|
-
"default": "<div class=\"app-container\">\n <h1>Hello World</h1>\n <q-button variant=\"primary\">Click Me</q-button>\n</div>",
|
|
65
|
-
"desc": "Fallback code/text to highlight if the 'code' property is not set"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"variants": [
|
|
69
|
-
{
|
|
70
|
-
"name": "Panel Variant (HTML)",
|
|
71
|
-
"props": {
|
|
72
|
-
"variant": "panel",
|
|
73
|
-
"heading": "HTML MARKUP",
|
|
74
|
-
"copyable": true,
|
|
75
|
-
"height": "110px"
|
|
76
|
-
},
|
|
77
|
-
"slots": {
|
|
78
|
-
"default": "<div class=\"demo\">\n <span>Interactive Item</span>\n</div>"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "Plain Variant (HTML)",
|
|
83
|
-
"props": {
|
|
84
|
-
"variant": "plain",
|
|
85
|
-
"height": "auto"
|
|
86
|
-
},
|
|
87
|
-
"slots": {
|
|
88
|
-
"default": "<q-button size=\"sm\" disabled>Disabled Button</q-button>"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "JavaScript Highlight",
|
|
93
|
-
"props": {
|
|
94
|
-
"variant": "plain",
|
|
95
|
-
"language": "javascript",
|
|
96
|
-
"height": "auto"
|
|
97
|
-
},
|
|
98
|
-
"slots": {
|
|
99
|
-
"default": "const clickHandler = (event) => {\n console.log('Clicked!', event.target);\n return true;\n};"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"name": "CSS Highlight",
|
|
104
|
-
"props": {
|
|
105
|
-
"variant": "plain",
|
|
106
|
-
"language": "css",
|
|
107
|
-
"height": "auto"
|
|
108
|
-
},
|
|
109
|
-
"slots": {
|
|
110
|
-
"default": ".demo-class {\n display: flex;\n color: var(--q-primary-color, #007bff);\n font-size: 1.2rem;\n}"
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"name": "JSON Highlight",
|
|
115
|
-
"props": {
|
|
116
|
-
"variant": "plain",
|
|
117
|
-
"language": "json",
|
|
118
|
-
"height": "auto"
|
|
119
|
-
},
|
|
120
|
-
"slots": {
|
|
121
|
-
"default": "{\n \"name\": \"q-syntax-box\",\n \"version\": \"1.0.0\",\n \"private\": true\n}"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "Editable Panel (JS)",
|
|
126
|
-
"props": {
|
|
127
|
-
"variant": "panel",
|
|
128
|
-
"language": "javascript",
|
|
129
|
-
"heading": "EDITABLE JS",
|
|
130
|
-
"editable": true,
|
|
131
|
-
"code": "const value = 'You can edit this!';\nconsole.log(value);",
|
|
132
|
-
"height": "110px"
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"name": "Editable Plain (HTML)",
|
|
137
|
-
"props": {
|
|
138
|
-
"variant": "plain",
|
|
139
|
-
"language": "html",
|
|
140
|
-
"editable": true,
|
|
141
|
-
"code": "<div class=\"wrapper\">\n <span>Edit me!</span>\n</div>",
|
|
142
|
-
"height": "auto"
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
"edgeCases": [
|
|
147
|
-
{
|
|
148
|
-
"name": "Long Script Wrapping Test",
|
|
149
|
-
"props": {
|
|
150
|
-
"variant": "panel",
|
|
151
|
-
"language": "javascript",
|
|
152
|
-
"heading": "LONG SCRIPT",
|
|
153
|
-
"height": "110px"
|
|
154
|
-
},
|
|
155
|
-
"slots": {
|
|
156
|
-
"default": "function calculateFibonacciSequence(n) {\n if (n <= 0) return [];\n if (n === 1) return [0];\n let sequence = [0, 1];\n while (sequence.length < n) {\n let nextValue = sequence[sequence.length - 1] + sequence[sequence.length - 2];\n sequence.push(nextValue);\n }\n return sequence;\n}"
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
]
|
|
160
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "Syntax Box",
|
|
3
|
+
"tag": "q-syntax-box",
|
|
4
|
+
"props": {
|
|
5
|
+
"variant": {
|
|
6
|
+
"type": "select",
|
|
7
|
+
"options": [
|
|
8
|
+
"panel",
|
|
9
|
+
"plain"
|
|
10
|
+
],
|
|
11
|
+
"default": "panel",
|
|
12
|
+
"desc": "The layout variant of the syntax box container"
|
|
13
|
+
},
|
|
14
|
+
"language": {
|
|
15
|
+
"type": "select",
|
|
16
|
+
"options": [
|
|
17
|
+
"html",
|
|
18
|
+
"javascript",
|
|
19
|
+
"css",
|
|
20
|
+
"json"
|
|
21
|
+
],
|
|
22
|
+
"default": "html",
|
|
23
|
+
"desc": "The programming language highlighting rules to apply"
|
|
24
|
+
},
|
|
25
|
+
"height": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"default": "110px",
|
|
28
|
+
"desc": "The height of the scrollable viewport (e.g. '110px' or 'auto' for fitting content)"
|
|
29
|
+
},
|
|
30
|
+
"copyable": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"default": true,
|
|
33
|
+
"desc": "Renders a copy-to-clipboard button in the header"
|
|
34
|
+
},
|
|
35
|
+
"editable": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false,
|
|
38
|
+
"desc": "Enables interactive code editing inside the syntax box"
|
|
39
|
+
},
|
|
40
|
+
"heading": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"default": "CODE PREVIEW",
|
|
43
|
+
"desc": "The header title displayed in the panel variant"
|
|
44
|
+
},
|
|
45
|
+
"code": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"default": "",
|
|
48
|
+
"desc": "The source code string to highlight (takes precedence over slot content)"
|
|
49
|
+
},
|
|
50
|
+
"required": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"default": false,
|
|
53
|
+
"desc": "Marks the input as required in editable mode"
|
|
54
|
+
},
|
|
55
|
+
"disabled": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"default": false,
|
|
58
|
+
"desc": "Disables interaction in editable mode"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"slots": {
|
|
62
|
+
"default": {
|
|
63
|
+
"type": "text",
|
|
64
|
+
"default": "<div class=\"app-container\">\n <h1>Hello World</h1>\n <q-button variant=\"primary\">Click Me</q-button>\n</div>",
|
|
65
|
+
"desc": "Fallback code/text to highlight if the 'code' property is not set"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"variants": [
|
|
69
|
+
{
|
|
70
|
+
"name": "Panel Variant (HTML)",
|
|
71
|
+
"props": {
|
|
72
|
+
"variant": "panel",
|
|
73
|
+
"heading": "HTML MARKUP",
|
|
74
|
+
"copyable": true,
|
|
75
|
+
"height": "110px"
|
|
76
|
+
},
|
|
77
|
+
"slots": {
|
|
78
|
+
"default": "<div class=\"demo\">\n <span>Interactive Item</span>\n</div>"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "Plain Variant (HTML)",
|
|
83
|
+
"props": {
|
|
84
|
+
"variant": "plain",
|
|
85
|
+
"height": "auto"
|
|
86
|
+
},
|
|
87
|
+
"slots": {
|
|
88
|
+
"default": "<q-button size=\"sm\" disabled>Disabled Button</q-button>"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "JavaScript Highlight",
|
|
93
|
+
"props": {
|
|
94
|
+
"variant": "plain",
|
|
95
|
+
"language": "javascript",
|
|
96
|
+
"height": "auto"
|
|
97
|
+
},
|
|
98
|
+
"slots": {
|
|
99
|
+
"default": "const clickHandler = (event) => {\n console.log('Clicked!', event.target);\n return true;\n};"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "CSS Highlight",
|
|
104
|
+
"props": {
|
|
105
|
+
"variant": "plain",
|
|
106
|
+
"language": "css",
|
|
107
|
+
"height": "auto"
|
|
108
|
+
},
|
|
109
|
+
"slots": {
|
|
110
|
+
"default": ".demo-class {\n display: flex;\n color: var(--q-primary-color, #007bff);\n font-size: 1.2rem;\n}"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "JSON Highlight",
|
|
115
|
+
"props": {
|
|
116
|
+
"variant": "plain",
|
|
117
|
+
"language": "json",
|
|
118
|
+
"height": "auto"
|
|
119
|
+
},
|
|
120
|
+
"slots": {
|
|
121
|
+
"default": "{\n \"name\": \"q-syntax-box\",\n \"version\": \"1.0.0\",\n \"private\": true\n}"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "Editable Panel (JS)",
|
|
126
|
+
"props": {
|
|
127
|
+
"variant": "panel",
|
|
128
|
+
"language": "javascript",
|
|
129
|
+
"heading": "EDITABLE JS",
|
|
130
|
+
"editable": true,
|
|
131
|
+
"code": "const value = 'You can edit this!';\nconsole.log(value);",
|
|
132
|
+
"height": "110px"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "Editable Plain (HTML)",
|
|
137
|
+
"props": {
|
|
138
|
+
"variant": "plain",
|
|
139
|
+
"language": "html",
|
|
140
|
+
"editable": true,
|
|
141
|
+
"code": "<div class=\"wrapper\">\n <span>Edit me!</span>\n</div>",
|
|
142
|
+
"height": "auto"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"edgeCases": [
|
|
147
|
+
{
|
|
148
|
+
"name": "Long Script Wrapping Test",
|
|
149
|
+
"props": {
|
|
150
|
+
"variant": "panel",
|
|
151
|
+
"language": "javascript",
|
|
152
|
+
"heading": "LONG SCRIPT",
|
|
153
|
+
"height": "110px"
|
|
154
|
+
},
|
|
155
|
+
"slots": {
|
|
156
|
+
"default": "function calculateFibonacciSequence(n) {\n if (n <= 0) return [];\n if (n === 1) return [0];\n let sequence = [0, 1];\n while (sequence.length < n) {\n let nextValue = sequence[sequence.length - 1] + sequence[sequence.length - 2];\n sequence.push(nextValue);\n }\n return sequence;\n}"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|