@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.
Files changed (170) hide show
  1. package/LICENSE +21 -21
  2. package/{readme.md → README.md} +97 -78
  3. package/dist/cjs/q-button_3.cjs.entry.js +22 -22
  4. package/dist/cjs/q-card.cjs.entry.js +3 -3
  5. package/dist/cjs/q-carousel.cjs.entry.js +2 -2
  6. package/dist/cjs/q-circular-progress_2.cjs.entry.js +5 -5
  7. package/dist/cjs/q-data-table.cjs.entry.js +3 -3
  8. package/dist/cjs/q-dialog.cjs.entry.js +1 -1
  9. package/dist/cjs/q-dropdown.cjs.entry.js +3 -3
  10. package/dist/cjs/q-quantity-selector.cjs.entry.js +5 -5
  11. package/dist/cjs/q-reel.cjs.entry.js +2 -2
  12. package/dist/cjs/q-step-diagram-item.cjs.entry.js +2 -2
  13. package/dist/cjs/q-step-diagram.cjs.entry.js +2 -2
  14. package/dist/cjs/q-textarea.cjs.entry.js +2 -2
  15. package/dist/cjs/q-thumbnail.cjs.entry.js +2 -2
  16. package/dist/cjs/q-toggle.cjs.entry.js +3 -3
  17. package/dist/collection/assets/icons/braces.svg +14 -14
  18. package/dist/collection/assets/icons/check.svg +1 -1
  19. package/dist/collection/assets/icons/chevron-down.svg +1 -1
  20. package/dist/collection/assets/icons/chevron-left.svg +1 -1
  21. package/dist/collection/assets/icons/chevron-right.svg +1 -1
  22. package/dist/collection/assets/icons/chevron-up.svg +1 -1
  23. package/dist/collection/assets/icons/copy.svg +4 -4
  24. package/dist/collection/assets/icons/eye-off.svg +1 -1
  25. package/dist/collection/assets/icons/eye.svg +1 -1
  26. package/dist/collection/assets/icons/minus.svg +1 -1
  27. package/dist/collection/assets/icons/play.svg +1 -1
  28. package/dist/collection/assets/icons/plus.svg +1 -1
  29. package/dist/collection/assets/icons/search.svg +1 -1
  30. package/dist/collection/assets/icons/spinner.svg +1 -1
  31. package/dist/collection/assets/icons/trash-2.svg +1 -1
  32. package/dist/collection/assets/icons/x.svg +1 -1
  33. package/dist/collection/components/card/card.js +3 -3
  34. package/dist/collection/components/carousel/carousel.js +2 -2
  35. package/dist/collection/components/circular-progress/circular-progress.js +2 -2
  36. package/dist/collection/components/data-table/data-table.css +219 -219
  37. package/dist/collection/components/data-table/data-table.js +4 -4
  38. package/dist/collection/components/dialog/dialog.js +1 -1
  39. package/dist/collection/components/dropdown/dropdown.js +5 -5
  40. package/dist/collection/components/icon/icon.js +1 -1
  41. package/dist/collection/components/input/input.js +3 -3
  42. package/dist/collection/components/quantity-selector/quantity-selector.css +131 -131
  43. package/dist/collection/components/quantity-selector/quantity-selector.js +4 -4
  44. package/dist/collection/components/reel/reel.js +2 -2
  45. package/dist/collection/components/scrollable/scrollable.js +22 -22
  46. package/dist/collection/components/sidepanel/sidepanel.js +2 -2
  47. package/dist/collection/components/step-diagram/step-diagram.js +2 -2
  48. package/dist/collection/components/step-diagram-item/step-diagram-item.js +2 -2
  49. package/dist/collection/components/textarea/textarea.js +2 -2
  50. package/dist/collection/components/thumbnail/thumbnail.js +2 -2
  51. package/dist/collection/components/toggle/toggle.js +4 -4
  52. package/dist/collection/playground/components/playground-event-log/playground-event-log.js +3 -3
  53. package/dist/collection/playground/components/sandbox-viewport/sandbox-panel.js +3 -3
  54. package/dist/collection/playground/logo.svg +8 -8
  55. package/dist/collection/playground/playground.bundled.js +590 -590
  56. package/dist/collection/playground/views/q-button-view/q-button-view.js +6 -6
  57. package/dist/collection/playground/views/q-input-view/q-input-view.js +6 -6
  58. package/dist/collection/utils/formatter.unit.test.js +24 -24
  59. package/dist/components/{p-CYfD9z8O.js → p-B4IF9WVv.js} +1 -1
  60. package/dist/components/{p-BRNv11Jn.js → p-DScvq41R.js} +1 -1
  61. package/dist/components/{p-B7e76DLW.js → p-Do2ppeKL.js} +1 -1
  62. package/dist/components/q-card.js +1 -1
  63. package/dist/components/q-carousel.js +1 -1
  64. package/dist/components/q-circular-progress.js +1 -1
  65. package/dist/components/q-data-table.js +1 -1
  66. package/dist/components/q-dialog.js +1 -1
  67. package/dist/components/q-dropdown.js +1 -1
  68. package/dist/components/q-input.js +1 -1
  69. package/dist/components/q-quantity-selector.js +1 -1
  70. package/dist/components/q-reel.js +1 -1
  71. package/dist/components/q-scrollable.js +1 -1
  72. package/dist/components/q-step-diagram-item.js +1 -1
  73. package/dist/components/q-step-diagram.js +1 -1
  74. package/dist/components/q-syntax-box.js +1 -1
  75. package/dist/components/q-textarea.js +1 -1
  76. package/dist/components/q-thumbnail.js +1 -1
  77. package/dist/components/q-toggle.js +1 -1
  78. package/dist/esm/q-button_3.entry.js +22 -22
  79. package/dist/esm/q-card.entry.js +3 -3
  80. package/dist/esm/q-carousel.entry.js +2 -2
  81. package/dist/esm/q-circular-progress_2.entry.js +5 -5
  82. package/dist/esm/q-data-table.entry.js +3 -3
  83. package/dist/esm/q-dialog.entry.js +1 -1
  84. package/dist/esm/q-dropdown.entry.js +3 -3
  85. package/dist/esm/q-quantity-selector.entry.js +5 -5
  86. package/dist/esm/q-reel.entry.js +2 -2
  87. package/dist/esm/q-step-diagram-item.entry.js +2 -2
  88. package/dist/esm/q-step-diagram.entry.js +2 -2
  89. package/dist/esm/q-textarea.entry.js +2 -2
  90. package/dist/esm/q-thumbnail.entry.js +2 -2
  91. package/dist/esm/q-toggle.entry.js +3 -3
  92. package/dist/playground/assets/icons/braces.svg +14 -14
  93. package/dist/playground/assets/icons/check.svg +1 -1
  94. package/dist/playground/assets/icons/chevron-down.svg +1 -1
  95. package/dist/playground/assets/icons/chevron-left.svg +1 -1
  96. package/dist/playground/assets/icons/chevron-right.svg +1 -1
  97. package/dist/playground/assets/icons/chevron-up.svg +1 -1
  98. package/dist/playground/assets/icons/copy.svg +4 -4
  99. package/dist/playground/assets/icons/eye-off.svg +1 -1
  100. package/dist/playground/assets/icons/eye.svg +1 -1
  101. package/dist/playground/assets/icons/minus.svg +1 -1
  102. package/dist/playground/assets/icons/play.svg +1 -1
  103. package/dist/playground/assets/icons/plus.svg +1 -1
  104. package/dist/playground/assets/icons/search.svg +1 -1
  105. package/dist/playground/assets/icons/spinner.svg +1 -1
  106. package/dist/playground/assets/icons/trash-2.svg +1 -1
  107. package/dist/playground/assets/icons/x.svg +1 -1
  108. package/dist/playground/build/{p-4f133a25.entry.js → p-1187e439.entry.js} +1 -1
  109. package/dist/playground/build/{p-c8d6af8e.entry.js → p-38d9e75b.entry.js} +1 -1
  110. package/dist/{webquark/p-f7b5b155.entry.js → playground/build/p-4ce667f1.entry.js} +1 -1
  111. package/dist/{webquark/p-aa9be919.entry.js → playground/build/p-66b0eb0f.entry.js} +1 -1
  112. package/dist/{webquark/p-b1e68119.entry.js → playground/build/p-69d33f9d.entry.js} +1 -1
  113. package/dist/playground/build/{p-679fa494.entry.js → p-76e04a7f.entry.js} +1 -1
  114. package/dist/{webquark/p-f48dd3dd.entry.js → playground/build/p-776a0eb6.entry.js} +1 -1
  115. package/dist/playground/build/{p-5c67a28e.entry.js → p-7c4532f3.entry.js} +1 -1
  116. package/dist/playground/build/p-7d2144cf.entry.js +1 -0
  117. package/dist/playground/build/{p-7083c5ff.entry.js → p-84185204.entry.js} +1 -1
  118. package/dist/{webquark/p-1238a2cc.entry.js → playground/build/p-938cd8a6.entry.js} +1 -1
  119. package/dist/playground/build/{p-7f47861b.entry.js → p-a182b818.entry.js} +1 -1
  120. package/dist/playground/build/p-aa017815.entry.js +1 -0
  121. package/dist/playground/build/{p-8a94a0a2.entry.js → p-d7607e11.entry.js} +1 -1
  122. package/dist/playground/build/webquark.esm.js +1 -1
  123. package/dist/playground/logo.svg +8 -8
  124. package/dist/playground/playground/specs/q-button.sandbox.json +198 -198
  125. package/dist/playground/playground/specs/q-card.sandbox.json +144 -144
  126. package/dist/playground/playground/specs/q-carousel.sandbox.json +120 -120
  127. package/dist/playground/playground/specs/q-circular-progress.sandbox.json +91 -91
  128. package/dist/playground/playground/specs/q-data-table.sandbox.json +108 -108
  129. package/dist/playground/playground/specs/q-dialog.sandbox.json +108 -108
  130. package/dist/playground/playground/specs/q-dropdown.sandbox.json +116 -116
  131. package/dist/playground/playground/specs/q-icon.sandbox.json +138 -138
  132. package/dist/playground/playground/specs/q-input.sandbox.json +192 -192
  133. package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +99 -99
  134. package/dist/playground/playground/specs/q-reel.sandbox.json +70 -70
  135. package/dist/playground/playground/specs/q-scrollable.sandbox.json +102 -102
  136. package/dist/playground/playground/specs/q-sidepanel.sandbox.json +147 -147
  137. package/dist/playground/playground/specs/q-step-diagram.sandbox.json +56 -56
  138. package/dist/playground/playground/specs/q-syntax-box.sandbox.json +160 -160
  139. package/dist/playground/playground/specs/q-textarea.sandbox.json +133 -133
  140. package/dist/playground/playground/specs/q-toggle.sandbox.json +196 -196
  141. package/dist/playground/playground/specs/q-tooltip.sandbox.json +65 -65
  142. package/dist/playground/playground.css +1 -1
  143. package/dist/playground/playground.js +590 -590
  144. package/dist/playground/views/q-button-view/q-button-view.css +1 -1
  145. package/dist/playground/views/q-button-view/q-button-view.html +1 -1
  146. package/dist/playground/views/q-button-view/q-button-view.js +6 -6
  147. package/dist/playground/views/q-input-view/q-input-view.css +1 -1
  148. package/dist/playground/views/q-input-view/q-input-view.html +1 -1
  149. package/dist/playground/views/q-input-view/q-input-view.js +6 -6
  150. package/dist/types/declarations.d.ts +9 -9
  151. package/dist/webquark/{p-4f133a25.entry.js → p-1187e439.entry.js} +1 -1
  152. package/dist/webquark/{p-c8d6af8e.entry.js → p-38d9e75b.entry.js} +1 -1
  153. package/dist/{playground/build/p-f7b5b155.entry.js → webquark/p-4ce667f1.entry.js} +1 -1
  154. package/dist/{playground/build/p-aa9be919.entry.js → webquark/p-66b0eb0f.entry.js} +1 -1
  155. package/dist/{playground/build/p-b1e68119.entry.js → webquark/p-69d33f9d.entry.js} +1 -1
  156. package/dist/webquark/{p-679fa494.entry.js → p-76e04a7f.entry.js} +1 -1
  157. package/dist/{playground/build/p-f48dd3dd.entry.js → webquark/p-776a0eb6.entry.js} +1 -1
  158. package/dist/webquark/{p-5c67a28e.entry.js → p-7c4532f3.entry.js} +1 -1
  159. package/dist/webquark/p-7d2144cf.entry.js +1 -0
  160. package/dist/webquark/{p-7083c5ff.entry.js → p-84185204.entry.js} +1 -1
  161. package/dist/{playground/build/p-1238a2cc.entry.js → webquark/p-938cd8a6.entry.js} +1 -1
  162. package/dist/webquark/{p-7f47861b.entry.js → p-a182b818.entry.js} +1 -1
  163. package/dist/webquark/p-aa017815.entry.js +1 -0
  164. package/dist/webquark/{p-8a94a0a2.entry.js → p-d7607e11.entry.js} +1 -1
  165. package/dist/webquark/webquark.esm.js +1 -1
  166. package/package.json +84 -84
  167. package/dist/playground/build/p-9afa3fe8.entry.js +0 -1
  168. package/dist/playground/build/p-9bb8ed97.entry.js +0 -1
  169. package/dist/webquark/p-9afa3fe8.entry.js +0 -1
  170. package/dist/webquark/p-9bb8ed97.entry.js +0 -1
@@ -1,192 +1,192 @@
1
- {
2
- "name": "Input Field",
3
- "tag": "q-input",
4
- "props": {
5
- "type": {
6
- "type": "select",
7
- "options": [
8
- "text",
9
- "password",
10
- "email",
11
- "number",
12
- "url",
13
- "search",
14
- "color"
15
- ],
16
- "default": "text",
17
- "desc": "Browser native input element type"
18
- },
19
- "size": {
20
- "type": "select",
21
- "options": [
22
- "sm",
23
- "md",
24
- "lg"
25
- ],
26
- "default": "md",
27
- "desc": "Input box and font display size"
28
- },
29
- "clearable": {
30
- "type": "boolean",
31
- "default": true,
32
- "desc": "Displays clean icon button when value is populated"
33
- },
34
- "label": {
35
- "type": "string",
36
- "default": "Credential Login",
37
- "desc": "Floating input title label"
38
- },
39
- "placeholder": {
40
- "type": "string",
41
- "default": "Enter text here...",
42
- "desc": "Native placeholder text"
43
- },
44
- "value": {
45
- "type": "string",
46
- "default": "",
47
- "desc": "Active text content value"
48
- },
49
- "required": {
50
- "type": "boolean",
51
- "default": false,
52
- "desc": "Aria-required validation identifier"
53
- },
54
- "disabled": {
55
- "type": "boolean",
56
- "default": false,
57
- "desc": "Disables typing and styles greyed state"
58
- },
59
- "error": {
60
- "type": "string",
61
- "default": "",
62
- "desc": "Swaps borders to red alert styles and shows text"
63
- }
64
- },
65
- "slots": {
66
- "prefix": {
67
- "type": "html",
68
- "default": "",
69
- "desc": "Left element prefix content slot"
70
- },
71
- "suffix": {
72
- "type": "html",
73
- "default": "",
74
- "desc": "Right element suffix content slot"
75
- }
76
- },
77
- "variants": [
78
- {
79
- "name": "Standard Input Box",
80
- "props": {
81
- "label": "Full Name",
82
- "placeholder": "John Doe"
83
- }
84
- },
85
- {
86
- "name": "Small Input Box",
87
- "props": {
88
- "label": "Small Username",
89
- "placeholder": "sm-user",
90
- "size": "sm"
91
- }
92
- },
93
- {
94
- "name": "Large Input Box",
95
- "props": {
96
- "label": "Large Username",
97
- "placeholder": "lg-user",
98
- "size": "lg"
99
- }
100
- },
101
- {
102
- "name": "Color Picker Input",
103
- "props": {
104
- "label": "Accent Color Theme",
105
- "type": "color",
106
- "value": "#60a5fa"
107
- }
108
- },
109
- {
110
- "name": "Password type input",
111
- "props": {
112
- "label": "Security Password",
113
- "type": "password",
114
- "placeholder": "Enter code..."
115
- }
116
- },
117
- {
118
- "name": "Numeric Input",
119
- "props": {
120
- "label": "Quantity Bound",
121
- "type": "number",
122
- "value": "42",
123
- "placeholder": "Enter number..."
124
- }
125
- },
126
- {
127
- "name": "Email with Error validation",
128
- "props": {
129
- "label": "Email Address",
130
- "type": "email",
131
- "value": "bad-email-format",
132
- "error": "Please enter a valid email address"
133
- }
134
- },
135
- {
136
- "name": "Disabled State lock",
137
- "props": {
138
- "label": "Hardware Address",
139
- "value": "00:1A:2B:3C:4D:5E",
140
- "disabled": true
141
- }
142
- },
143
- {
144
- "name": "Prefix Icon inline",
145
- "props": {
146
- "label": "Search query",
147
- "placeholder": "Type keywords..."
148
- },
149
- "slots": {
150
- "prefix": "<span style=\"padding:0 8px;opacity:0.6\">🔍</span>"
151
- }
152
- },
153
- {
154
- "name": "Suffix Label inline",
155
- "props": {
156
- "label": "Weight bounds",
157
- "placeholder": "0.00"
158
- },
159
- "slots": {
160
- "suffix": "<span style=\"padding:0 8px;opacity:0.6;font-size:0.8rem;font-weight:700\">kg</span>"
161
- }
162
- },
163
- {
164
- "name": "Prefix & Suffix & Clearable",
165
- "props": {
166
- "label": "Price (USD)",
167
- "clearable": true,
168
- "value": "99.95"
169
- },
170
- "slots": {
171
- "prefix": "<span style=\"padding:0 8px;opacity:0.6\">$</span>",
172
- "suffix": "<span style=\"padding:0 8px;opacity:0.6;font-size:0.8rem\">USD</span>"
173
- }
174
- }
175
- ],
176
- "edgeCases": [
177
- {
178
- "name": "Extremely Long Value Text",
179
- "props": {
180
- "label": "Long value",
181
- "value": "This input has a super long value designed to verify horizontal scrolling inside the input field rather than breaking layout constraints."
182
- }
183
- },
184
- {
185
- "name": "Empty Placeholder & Label",
186
- "props": {
187
- "label": "",
188
- "placeholder": ""
189
- }
190
- }
191
- ]
192
- }
1
+ {
2
+ "name": "Input Field",
3
+ "tag": "q-input",
4
+ "props": {
5
+ "type": {
6
+ "type": "select",
7
+ "options": [
8
+ "text",
9
+ "password",
10
+ "email",
11
+ "number",
12
+ "url",
13
+ "search",
14
+ "color"
15
+ ],
16
+ "default": "text",
17
+ "desc": "Browser native input element type"
18
+ },
19
+ "size": {
20
+ "type": "select",
21
+ "options": [
22
+ "sm",
23
+ "md",
24
+ "lg"
25
+ ],
26
+ "default": "md",
27
+ "desc": "Input box and font display size"
28
+ },
29
+ "clearable": {
30
+ "type": "boolean",
31
+ "default": true,
32
+ "desc": "Displays clean icon button when value is populated"
33
+ },
34
+ "label": {
35
+ "type": "string",
36
+ "default": "Credential Login",
37
+ "desc": "Floating input title label"
38
+ },
39
+ "placeholder": {
40
+ "type": "string",
41
+ "default": "Enter text here...",
42
+ "desc": "Native placeholder text"
43
+ },
44
+ "value": {
45
+ "type": "string",
46
+ "default": "",
47
+ "desc": "Active text content value"
48
+ },
49
+ "required": {
50
+ "type": "boolean",
51
+ "default": false,
52
+ "desc": "Aria-required validation identifier"
53
+ },
54
+ "disabled": {
55
+ "type": "boolean",
56
+ "default": false,
57
+ "desc": "Disables typing and styles greyed state"
58
+ },
59
+ "error": {
60
+ "type": "string",
61
+ "default": "",
62
+ "desc": "Swaps borders to red alert styles and shows text"
63
+ }
64
+ },
65
+ "slots": {
66
+ "prefix": {
67
+ "type": "html",
68
+ "default": "",
69
+ "desc": "Left element prefix content slot"
70
+ },
71
+ "suffix": {
72
+ "type": "html",
73
+ "default": "",
74
+ "desc": "Right element suffix content slot"
75
+ }
76
+ },
77
+ "variants": [
78
+ {
79
+ "name": "Standard Input Box",
80
+ "props": {
81
+ "label": "Full Name",
82
+ "placeholder": "John Doe"
83
+ }
84
+ },
85
+ {
86
+ "name": "Small Input Box",
87
+ "props": {
88
+ "label": "Small Username",
89
+ "placeholder": "sm-user",
90
+ "size": "sm"
91
+ }
92
+ },
93
+ {
94
+ "name": "Large Input Box",
95
+ "props": {
96
+ "label": "Large Username",
97
+ "placeholder": "lg-user",
98
+ "size": "lg"
99
+ }
100
+ },
101
+ {
102
+ "name": "Color Picker Input",
103
+ "props": {
104
+ "label": "Accent Color Theme",
105
+ "type": "color",
106
+ "value": "#60a5fa"
107
+ }
108
+ },
109
+ {
110
+ "name": "Password type input",
111
+ "props": {
112
+ "label": "Security Password",
113
+ "type": "password",
114
+ "placeholder": "Enter code..."
115
+ }
116
+ },
117
+ {
118
+ "name": "Numeric Input",
119
+ "props": {
120
+ "label": "Quantity Bound",
121
+ "type": "number",
122
+ "value": "42",
123
+ "placeholder": "Enter number..."
124
+ }
125
+ },
126
+ {
127
+ "name": "Email with Error validation",
128
+ "props": {
129
+ "label": "Email Address",
130
+ "type": "email",
131
+ "value": "bad-email-format",
132
+ "error": "Please enter a valid email address"
133
+ }
134
+ },
135
+ {
136
+ "name": "Disabled State lock",
137
+ "props": {
138
+ "label": "Hardware Address",
139
+ "value": "00:1A:2B:3C:4D:5E",
140
+ "disabled": true
141
+ }
142
+ },
143
+ {
144
+ "name": "Prefix Icon inline",
145
+ "props": {
146
+ "label": "Search query",
147
+ "placeholder": "Type keywords..."
148
+ },
149
+ "slots": {
150
+ "prefix": "<span style=\"padding:0 8px;opacity:0.6\">🔍</span>"
151
+ }
152
+ },
153
+ {
154
+ "name": "Suffix Label inline",
155
+ "props": {
156
+ "label": "Weight bounds",
157
+ "placeholder": "0.00"
158
+ },
159
+ "slots": {
160
+ "suffix": "<span style=\"padding:0 8px;opacity:0.6;font-size:0.8rem;font-weight:700\">kg</span>"
161
+ }
162
+ },
163
+ {
164
+ "name": "Prefix & Suffix & Clearable",
165
+ "props": {
166
+ "label": "Price (USD)",
167
+ "clearable": true,
168
+ "value": "99.95"
169
+ },
170
+ "slots": {
171
+ "prefix": "<span style=\"padding:0 8px;opacity:0.6\">$</span>",
172
+ "suffix": "<span style=\"padding:0 8px;opacity:0.6;font-size:0.8rem\">USD</span>"
173
+ }
174
+ }
175
+ ],
176
+ "edgeCases": [
177
+ {
178
+ "name": "Extremely Long Value Text",
179
+ "props": {
180
+ "label": "Long value",
181
+ "value": "This input has a super long value designed to verify horizontal scrolling inside the input field rather than breaking layout constraints."
182
+ }
183
+ },
184
+ {
185
+ "name": "Empty Placeholder & Label",
186
+ "props": {
187
+ "label": "",
188
+ "placeholder": ""
189
+ }
190
+ }
191
+ ]
192
+ }
@@ -1,99 +1,99 @@
1
- {
2
- "name": "Quantity Selector",
3
- "tag": "q-quantity-selector",
4
- "props": {
5
- "variant": {
6
- "type": "select",
7
- "options": [
8
- "horizontal",
9
- "vertical"
10
- ],
11
- "default": "horizontal",
12
- "desc": "Layout alignment variant"
13
- },
14
- "min": {
15
- "type": "number",
16
- "default": 0,
17
- "desc": "Minimum allowed value limit"
18
- },
19
- "max": {
20
- "type": "number",
21
- "default": 100,
22
- "desc": "Maximum allowed value limit"
23
- },
24
- "step": {
25
- "type": "number",
26
- "default": 1,
27
- "desc": "The increment/decrement step amount"
28
- },
29
- "value": {
30
- "type": "number",
31
- "default": 0,
32
- "desc": "The current quantity value"
33
- }
34
- },
35
- "variants": [
36
- {
37
- "name": "Standard Horizontal",
38
- "props": {
39
- "value": 5
40
- }
41
- },
42
- {
43
- "name": "Vertical Stack",
44
- "props": {
45
- "variant": "vertical",
46
- "value": 10
47
- }
48
- },
49
- {
50
- "name": "Stepping by 5",
51
- "props": {
52
- "value": 25,
53
- "step": 5
54
- }
55
- },
56
- {
57
- "name": "Bounded (1 to 10)",
58
- "props": {
59
- "value": 5,
60
- "min": 1,
61
- "max": 10
62
- }
63
- },
64
- {
65
- "name": "Negative Bounds (-50 to 50)",
66
- "props": {
67
- "value": 0,
68
- "min": -50,
69
- "max": 50
70
- }
71
- }
72
- ],
73
- "edgeCases": [
74
- {
75
- "name": "No limits (unbounded)",
76
- "props": {
77
- "value": 1000,
78
- "min": null,
79
- "max": null
80
- }
81
- },
82
- {
83
- "name": "Locked to Min",
84
- "props": {
85
- "value": 1,
86
- "min": 1,
87
- "max": 10
88
- }
89
- },
90
- {
91
- "name": "Locked to Max",
92
- "props": {
93
- "value": 10,
94
- "min": 1,
95
- "max": 10
96
- }
97
- }
98
- ]
99
- }
1
+ {
2
+ "name": "Quantity Selector",
3
+ "tag": "q-quantity-selector",
4
+ "props": {
5
+ "variant": {
6
+ "type": "select",
7
+ "options": [
8
+ "horizontal",
9
+ "vertical"
10
+ ],
11
+ "default": "horizontal",
12
+ "desc": "Layout alignment variant"
13
+ },
14
+ "min": {
15
+ "type": "number",
16
+ "default": 0,
17
+ "desc": "Minimum allowed value limit"
18
+ },
19
+ "max": {
20
+ "type": "number",
21
+ "default": 100,
22
+ "desc": "Maximum allowed value limit"
23
+ },
24
+ "step": {
25
+ "type": "number",
26
+ "default": 1,
27
+ "desc": "The increment/decrement step amount"
28
+ },
29
+ "value": {
30
+ "type": "number",
31
+ "default": 0,
32
+ "desc": "The current quantity value"
33
+ }
34
+ },
35
+ "variants": [
36
+ {
37
+ "name": "Standard Horizontal",
38
+ "props": {
39
+ "value": 5
40
+ }
41
+ },
42
+ {
43
+ "name": "Vertical Stack",
44
+ "props": {
45
+ "variant": "vertical",
46
+ "value": 10
47
+ }
48
+ },
49
+ {
50
+ "name": "Stepping by 5",
51
+ "props": {
52
+ "value": 25,
53
+ "step": 5
54
+ }
55
+ },
56
+ {
57
+ "name": "Bounded (1 to 10)",
58
+ "props": {
59
+ "value": 5,
60
+ "min": 1,
61
+ "max": 10
62
+ }
63
+ },
64
+ {
65
+ "name": "Negative Bounds (-50 to 50)",
66
+ "props": {
67
+ "value": 0,
68
+ "min": -50,
69
+ "max": 50
70
+ }
71
+ }
72
+ ],
73
+ "edgeCases": [
74
+ {
75
+ "name": "No limits (unbounded)",
76
+ "props": {
77
+ "value": 1000,
78
+ "min": null,
79
+ "max": null
80
+ }
81
+ },
82
+ {
83
+ "name": "Locked to Min",
84
+ "props": {
85
+ "value": 1,
86
+ "min": 1,
87
+ "max": 10
88
+ }
89
+ },
90
+ {
91
+ "name": "Locked to Max",
92
+ "props": {
93
+ "value": 10,
94
+ "min": 1,
95
+ "max": 10
96
+ }
97
+ }
98
+ ]
99
+ }