@kubex/zinc 1.0.7 → 1.0.9

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 (37) hide show
  1. package/dist/custom-elements.json +411 -83
  2. package/dist/vscode.html-custom-data.json +45 -16
  3. package/dist/web-types.json +104 -34
  4. package/dist/zn.d.ts +57 -3
  5. package/dist/zn.min.css +1 -1
  6. package/dist/zn.min.js +464 -408
  7. package/docs/data/products-table.json +203 -0
  8. package/docs/pages/components/button.md +39 -0
  9. package/docs/pages/components/data-table.md +21 -0
  10. package/docs/pages/components/header.md +7 -0
  11. package/docs/pages/components/order-table.md +82 -5
  12. package/package.json +1 -1
  13. package/scss/themes/_light.scss +1 -1
  14. package/src/components/button/button.component.ts +160 -10
  15. package/src/components/button/button.scss +85 -0
  16. package/src/components/content-block/content-block.component.ts +18 -7
  17. package/src/components/content-block/content-block.scss +58 -2
  18. package/src/components/data-select/data-select.component.ts +0 -1
  19. package/src/components/data-table/data-table.component.ts +133 -22
  20. package/src/components/data-table/data-table.scss +14 -3
  21. package/src/components/editor/editor.scss +1 -1
  22. package/src/components/expanding-action/expanding-action.component.ts +1 -1
  23. package/src/components/header/header.component.ts +8 -2
  24. package/src/components/header/header.scss +5 -1
  25. package/src/components/linked-select/linked-select.component.ts +1 -0
  26. package/src/components/menu/menu.component.ts +0 -1
  27. package/src/components/navbar/navbar.component.ts +1 -1
  28. package/src/components/note/note.component.ts +70 -2
  29. package/src/components/note/note.scss +26 -4
  30. package/src/components/order-table/order-table.component.ts +49 -28
  31. package/src/components/panel/panel.component.ts +8 -2
  32. package/src/components/panel/panel.scss +4 -0
  33. package/src/components/rating/rating.component.ts +10 -9
  34. package/src/components/rating/rating.scss +15 -1
  35. package/src/components/settings-container/settings-container.component.ts +1 -1
  36. package/src/components/tabs/tabs.component.ts +24 -6
  37. package/src/internal/form.ts +41 -3
@@ -13,17 +13,6 @@
13
13
  }
14
14
  ]
15
15
  },
16
- {
17
- "name": "zn-action-bar",
18
- "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
19
- "attributes": [],
20
- "references": [
21
- {
22
- "name": "Documentation",
23
- "url": "https://zinc.style/components/action-bar"
24
- }
25
- ]
26
- },
27
16
  {
28
17
  "name": "zn-alert",
29
18
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
@@ -59,6 +48,17 @@
59
48
  }
60
49
  ]
61
50
  },
51
+ {
52
+ "name": "zn-action-bar",
53
+ "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
54
+ "attributes": [],
55
+ "references": [
56
+ {
57
+ "name": "Documentation",
58
+ "url": "https://zinc.style/components/action-bar"
59
+ }
60
+ ]
61
+ },
62
62
  {
63
63
  "name": "zn-bulk-actions",
64
64
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
@@ -76,7 +76,7 @@
76
76
  },
77
77
  {
78
78
  "name": "zn-button",
79
- "description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the button loses focus.\n- **zn-focus** - Emitted when the button gains focus.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **prefix** - The container that wraps the prefix.\n- **label** - The button's label.\n- **suffix** - The container that wraps the suffix.\n- **caret** - The button's caret icon, an `<zn-icon>` element.\n- **spinner** - The spinner that shows when the button is in the loading state.",
79
+ "description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the button loses focus.\n- **zn-focus** - Emitted when the button gains focus.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n- **cancel** - Slot for custom cancel button/content when autoClick is active.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **prefix** - The container that wraps the prefix.\n- **label** - The button's label.\n- **suffix** - The container that wraps the suffix.\n- **caret** - The button's caret icon, an `<zn-icon>` element.\n- **spinner** - The spinner that shows when the button is in the loading state.",
80
80
  "attributes": [
81
81
  {
82
82
  "name": "color",
@@ -175,7 +175,19 @@
175
175
  "values": [{ "name": "modal" }, { "name": "slide" }]
176
176
  },
177
177
  { "name": "rel", "values": [] },
178
- { "name": "tooltip", "values": [] }
178
+ { "name": "tooltip", "values": [] },
179
+ { "name": "auto-click", "values": [] },
180
+ { "name": "auto-click-delay", "values": [] },
181
+ { "name": "loading-text", "values": [] },
182
+ {
183
+ "name": "loading-text-position",
184
+ "values": [
185
+ { "name": "left" },
186
+ { "name": "right" },
187
+ { "name": "center" }
188
+ ]
189
+ },
190
+ { "name": "loading", "values": [] }
179
191
  ],
180
192
  "references": [
181
193
  {
@@ -551,6 +563,7 @@
551
563
  { "name": "sender", "values": [] },
552
564
  { "name": "avatar", "values": [] },
553
565
  { "name": "outbound", "values": [] },
566
+ { "name": "no-collapse", "values": [] },
554
567
  { "name": "short", "values": [] },
555
568
  {
556
569
  "name": "default-display",
@@ -703,7 +716,9 @@
703
716
  { "name": "hide-checkboxes", "values": [] },
704
717
  { "name": "filters", "values": [{ "name": "[]" }] },
705
718
  { "name": "method", "values": [{ "name": "GET" }, { "name": "POST" }] },
706
- { "name": "no-initial-load", "values": [] }
719
+ { "name": "no-initial-load", "values": [] },
720
+ { "name": "group-by", "values": [] },
721
+ { "name": "groups", "values": [] }
707
722
  ],
708
723
  "references": [
709
724
  {
@@ -1183,6 +1198,7 @@
1183
1198
  { "name": "entity-id-show", "values": [] },
1184
1199
  { "name": "transparent", "values": [] },
1185
1200
  { "name": "caption", "values": [] },
1201
+ { "name": "icon", "values": [] },
1186
1202
  { "name": "description", "values": [] },
1187
1203
  { "name": "navigation", "values": [{ "name": "array" }] },
1188
1204
  { "name": "full-width", "values": [] },
@@ -1665,7 +1681,8 @@
1665
1681
  { "name": "color", "values": [{ "name": "typeof colors[number]" }] },
1666
1682
  { "name": "caption", "values": [] },
1667
1683
  { "name": "date", "values": [] },
1668
- { "name": "body", "values": [] }
1684
+ { "name": "body", "values": [] },
1685
+ { "name": "collapse-at-lines", "values": [] }
1669
1686
  ],
1670
1687
  "references": [
1671
1688
  { "name": "Documentation", "url": "https://zinc.style/components/note" }
@@ -1696,7 +1713,9 @@
1696
1713
  {
1697
1714
  "name": "zn-order-table",
1698
1715
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
1699
- "attributes": [{ "name": "data", "values": [{ "name": "Object" }] }],
1716
+ "attributes": [
1717
+ { "name": "data", "values": [{ "name": "OrderTableData" }] }
1718
+ ],
1700
1719
  "references": [
1701
1720
  {
1702
1721
  "name": "Documentation",
@@ -1766,8 +1785,10 @@
1766
1785
  "attributes": [
1767
1786
  { "name": "basis-px", "values": [] },
1768
1787
  { "name": "caption", "values": [] },
1788
+ { "name": "icon", "values": [] },
1769
1789
  { "name": "description", "values": [] },
1770
1790
  { "name": "tabbed", "values": [] },
1791
+ { "name": "header-underline", "values": [] },
1771
1792
  { "name": "cosmic", "values": [] },
1772
1793
  { "name": "flush", "values": [] },
1773
1794
  { "name": "flush-x", "values": [] },
@@ -2131,6 +2152,14 @@
2131
2152
  { "name": "precision", "values": [] },
2132
2153
  { "name": "readonly", "values": [] },
2133
2154
  { "name": "disabled", "values": [] },
2155
+ {
2156
+ "name": "size",
2157
+ "values": [
2158
+ { "name": "small" },
2159
+ { "name": "medium" },
2160
+ { "name": "large" }
2161
+ ]
2162
+ },
2134
2163
  {
2135
2164
  "name": "getSymbol",
2136
2165
  "values": [{ "name": "(value: number) => string" }]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@kubex/zinc",
4
- "version": "1.0.7",
4
+ "version": "1.0.9",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,28 +15,6 @@
15
15
  "events": [],
16
16
  "js": { "properties": [], "events": [] }
17
17
  },
18
- {
19
- "name": "zn-action-bar",
20
- "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
21
- "doc-url": "",
22
- "attributes": [],
23
- "slots": [
24
- { "name": "", "description": "The default slot." },
25
- { "name": "example", "description": "An example slot." }
26
- ],
27
- "events": [
28
- { "name": "zn-event-name", "description": "Emitted as an example." }
29
- ],
30
- "js": {
31
- "properties": [],
32
- "events": [
33
- {
34
- "name": "zn-event-name",
35
- "description": "Emitted as an example."
36
- }
37
- ]
38
- }
39
- },
40
18
  {
41
19
  "name": "zn-alert",
42
20
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
@@ -92,6 +70,28 @@
92
70
  ]
93
71
  }
94
72
  },
73
+ {
74
+ "name": "zn-action-bar",
75
+ "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
76
+ "doc-url": "",
77
+ "attributes": [],
78
+ "slots": [
79
+ { "name": "", "description": "The default slot." },
80
+ { "name": "example", "description": "An example slot." }
81
+ ],
82
+ "events": [
83
+ { "name": "zn-event-name", "description": "Emitted as an example." }
84
+ ],
85
+ "js": {
86
+ "properties": [],
87
+ "events": [
88
+ {
89
+ "name": "zn-event-name",
90
+ "description": "Emitted as an example."
91
+ }
92
+ ]
93
+ }
94
+ },
95
95
  {
96
96
  "name": "zn-bulk-actions",
97
97
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
@@ -132,7 +132,7 @@
132
132
  },
133
133
  {
134
134
  "name": "zn-button",
135
- "description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the button loses focus.\n- **zn-focus** - Emitted when the button gains focus.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **prefix** - The container that wraps the prefix.\n- **label** - The button's label.\n- **suffix** - The container that wraps the suffix.\n- **caret** - The button's caret icon, an `<zn-icon>` element.\n- **spinner** - The spinner that shows when the button is in the loading state.",
135
+ "description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the button loses focus.\n- **zn-focus** - Emitted when the button gains focus.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n- **cancel** - Slot for custom cancel button/content when autoClick is active.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **prefix** - The container that wraps the prefix.\n- **label** - The button's label.\n- **suffix** - The container that wraps the suffix.\n- **caret** - The button's caret icon, an `<zn-icon>` element.\n- **spinner** - The spinner that shows when the button is in the loading state.",
136
136
  "doc-url": "",
137
137
  "attributes": [
138
138
  {
@@ -231,7 +231,30 @@
231
231
  "name": "rel",
232
232
  "value": { "type": "string", "default": "'noreferrer noopener'" }
233
233
  },
234
- { "name": "tooltip", "value": { "type": "string" } }
234
+ { "name": "tooltip", "value": { "type": "string" } },
235
+ {
236
+ "name": "auto-click",
237
+ "value": { "type": "boolean", "default": "false" }
238
+ },
239
+ {
240
+ "name": "auto-click-delay",
241
+ "value": { "type": "number", "default": "2000" }
242
+ },
243
+ {
244
+ "name": "loading-text",
245
+ "value": { "type": "string", "default": "'Loading...'" }
246
+ },
247
+ {
248
+ "name": "loading-text-position",
249
+ "value": {
250
+ "type": "'left' | 'right' | 'center' | string",
251
+ "default": "'center'"
252
+ }
253
+ },
254
+ {
255
+ "name": "loading",
256
+ "value": { "type": "boolean", "default": "false" }
257
+ }
235
258
  ],
236
259
  "slots": [
237
260
  { "name": "", "description": "The button's label." },
@@ -242,6 +265,10 @@
242
265
  {
243
266
  "name": "suffix",
244
267
  "description": "A presentational suffix icon or similar element."
268
+ },
269
+ {
270
+ "name": "cancel",
271
+ "description": "Slot for custom cancel button/content when autoClick is active."
245
272
  }
246
273
  ],
247
274
  "events": [
@@ -261,6 +288,7 @@
261
288
  "js": {
262
289
  "properties": [
263
290
  { "name": "button", "type": "HTMLButtonElement" },
291
+ { "name": "countdownContainer", "type": "HTMLElement[]" },
264
292
  {
265
293
  "name": "color",
266
294
  "type": "'default' | 'secondary' | 'error' | 'info' | 'success' | 'warning' |\n 'transparent' | 'star'"
@@ -307,6 +335,14 @@
307
335
  { "name": "dataTarget", "type": "'modal' | 'slide' | string" },
308
336
  { "name": "rel", "type": "string" },
309
337
  { "name": "tooltip", "type": "string" },
338
+ { "name": "autoClick", "type": "boolean" },
339
+ { "name": "autoClickDelay", "type": "number" },
340
+ { "name": "loadingText", "type": "string" },
341
+ {
342
+ "name": "loadingTextPosition",
343
+ "type": "'left' | 'right' | 'center' | string"
344
+ },
345
+ { "name": "loading", "type": "boolean" },
310
346
  { "name": "validity" },
311
347
  { "name": "validationMessage" },
312
348
  { "name": "handleClick" }
@@ -1195,6 +1231,10 @@
1195
1231
  "name": "outbound",
1196
1232
  "value": { "type": "boolean", "default": "false" }
1197
1233
  },
1234
+ {
1235
+ "name": "no-collapse",
1236
+ "value": { "type": "boolean", "default": "false" }
1237
+ },
1198
1238
  {
1199
1239
  "name": "short",
1200
1240
  "value": { "type": "boolean", "default": "false" }
@@ -1211,6 +1251,7 @@
1211
1251
  { "name": "sender", "type": "string" },
1212
1252
  { "name": "avatar", "type": "string" },
1213
1253
  { "name": "outbound", "type": "boolean" },
1254
+ { "name": "noCollapse", "type": "boolean" },
1214
1255
  { "name": "short", "type": "boolean" },
1215
1256
  { "name": "defaultDisplay", "type": "'text' | 'html'" },
1216
1257
  { "name": "htmlNodes", "type": "Node[]" },
@@ -1503,10 +1544,7 @@
1503
1544
  "name": "empty-state-icon",
1504
1545
  "value": { "type": "string", "default": "\"data_alert\"" }
1505
1546
  },
1506
- {
1507
- "name": "hide-checkboxes",
1508
- "value": { "type": "boolean", "default": "true" }
1509
- },
1547
+ { "name": "hide-checkboxes", "value": { "type": "boolean" } },
1510
1548
  { "name": "filters", "value": { "type": "[]", "default": "[]" } },
1511
1549
  {
1512
1550
  "name": "method",
@@ -1515,7 +1553,12 @@
1515
1553
  {
1516
1554
  "name": "no-initial-load",
1517
1555
  "value": { "type": "boolean", "default": "false" }
1518
- }
1556
+ },
1557
+ {
1558
+ "name": "group-by",
1559
+ "value": { "type": "string", "default": "''" }
1560
+ },
1561
+ { "name": "groups", "value": { "type": "string", "default": "''" } }
1519
1562
  ],
1520
1563
  "slots": [
1521
1564
  { "name": "", "description": "The default slot." },
@@ -1547,6 +1590,9 @@
1547
1590
  { "name": "filters", "type": "[]" },
1548
1591
  { "name": "method", "type": "'GET' | 'POST'" },
1549
1592
  { "name": "noInitialLoad", "type": "boolean" },
1593
+ { "name": "groupBy", "type": "string" },
1594
+ { "name": "groups", "type": "string" },
1595
+ { "name": "selectAllButton", "type": "ZnButton" },
1550
1596
  { "name": "requestParams", "type": "Record<string, any>" },
1551
1597
  { "name": "changeEventListener" }
1552
1598
  ],
@@ -2622,6 +2668,7 @@
2622
2668
  "value": { "type": "boolean", "default": "false" }
2623
2669
  },
2624
2670
  { "name": "caption", "value": { "type": "string" } },
2671
+ { "name": "icon", "value": { "type": "string" } },
2625
2672
  { "name": "description", "value": { "type": "string" } },
2626
2673
  {
2627
2674
  "name": "navigation",
@@ -2645,6 +2692,7 @@
2645
2692
  { "name": "entityIdShow", "type": "boolean" },
2646
2693
  { "name": "transparent", "type": "boolean" },
2647
2694
  { "name": "caption", "type": "string" },
2695
+ { "name": "icon", "type": "string" },
2648
2696
  { "name": "description", "type": "string" },
2649
2697
  { "name": "navigation", "type": "array" },
2650
2698
  { "name": "fullWidth", "type": "boolean" },
@@ -3705,7 +3753,11 @@
3705
3753
  "value": { "type": "string", "default": "''" }
3706
3754
  },
3707
3755
  { "name": "date", "value": { "type": "string", "default": "''" } },
3708
- { "name": "body", "value": { "type": "string", "default": "''" } }
3756
+ { "name": "body", "value": { "type": "string", "default": "''" } },
3757
+ {
3758
+ "name": "collapse-at-lines",
3759
+ "value": { "type": "number", "default": "3" }
3760
+ }
3709
3761
  ],
3710
3762
  "slots": [
3711
3763
  { "name": "caption", "description": "The note's caption." },
@@ -3720,7 +3772,8 @@
3720
3772
  { "name": "color", "type": "typeof colors[number]" },
3721
3773
  { "name": "caption", "type": "string" },
3722
3774
  { "name": "date", "type": "string" },
3723
- { "name": "body", "type": "string" }
3775
+ { "name": "body", "type": "string" },
3776
+ { "name": "collapseAtLines", "type": "number" }
3724
3777
  ],
3725
3778
  "events": [
3726
3779
  {
@@ -3783,7 +3836,9 @@
3783
3836
  "name": "zn-order-table",
3784
3837
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
3785
3838
  "doc-url": "",
3786
- "attributes": [{ "name": "data", "value": { "type": "Object" } }],
3839
+ "attributes": [
3840
+ { "name": "data", "value": { "type": "OrderTableData" } }
3841
+ ],
3787
3842
  "slots": [
3788
3843
  { "name": "", "description": "The default slot." },
3789
3844
  { "name": "example", "description": "An example slot." }
@@ -3792,7 +3847,10 @@
3792
3847
  { "name": "zn-event-name", "description": "Emitted as an example." }
3793
3848
  ],
3794
3849
  "js": {
3795
- "properties": [{ "name": "data", "type": "Object" }],
3850
+ "properties": [
3851
+ { "name": "data", "type": "OrderTableData" },
3852
+ { "name": "resizeEventHandler" }
3853
+ ],
3796
3854
  "events": [
3797
3855
  {
3798
3856
  "name": "zn-event-name",
@@ -3951,8 +4009,10 @@
3951
4009
  "attributes": [
3952
4010
  { "name": "basis-px", "value": { "type": "number" } },
3953
4011
  { "name": "caption", "value": { "type": "string" } },
4012
+ { "name": "icon", "value": { "type": "string" } },
3954
4013
  { "name": "description", "value": { "type": "string" } },
3955
4014
  { "name": "tabbed", "value": { "type": "boolean" } },
4015
+ { "name": "header-underline", "value": { "type": "boolean" } },
3956
4016
  { "name": "cosmic", "value": { "type": "boolean" } },
3957
4017
  { "name": "flush", "value": { "type": "boolean" } },
3958
4018
  { "name": "flush-x", "value": { "type": "boolean" } },
@@ -3970,8 +4030,10 @@
3970
4030
  "properties": [
3971
4031
  { "name": "basis", "type": "number" },
3972
4032
  { "name": "caption", "type": "string" },
4033
+ { "name": "icon", "type": "string" },
3973
4034
  { "name": "description", "type": "string" },
3974
4035
  { "name": "tabbed", "type": "boolean" },
4036
+ { "name": "underlineHeader", "type": "boolean" },
3975
4037
  { "name": "cosmic", "type": "boolean" },
3976
4038
  { "name": "flush", "type": "boolean" },
3977
4039
  { "name": "flushX", "type": "boolean" },
@@ -4709,6 +4771,13 @@
4709
4771
  "name": "disabled",
4710
4772
  "value": { "type": "boolean", "default": "false" }
4711
4773
  },
4774
+ {
4775
+ "name": "size",
4776
+ "value": {
4777
+ "type": "'small' | 'medium' | 'large'",
4778
+ "default": "'medium'"
4779
+ }
4780
+ },
4712
4781
  {
4713
4782
  "name": "getSymbol",
4714
4783
  "value": { "type": "(value: number) => string" }
@@ -4731,6 +4800,7 @@
4731
4800
  { "name": "precision", "type": "number" },
4732
4801
  { "name": "readonly", "type": "boolean" },
4733
4802
  { "name": "disabled", "type": "boolean" },
4803
+ { "name": "size", "type": "'small' | 'medium' | 'large'" },
4734
4804
  { "name": "getSymbol", "type": "(value: number) => string" },
4735
4805
  {
4736
4806
  "name": "validity",
package/dist/zn.d.ts CHANGED
@@ -1058,6 +1058,7 @@ declare module "components/button/button.component" {
1058
1058
  * @slot - The button's label.
1059
1059
  * @slot prefix - A presentational prefix icon or similar element.
1060
1060
  * @slot suffix - A presentational suffix icon or similar element.
1061
+ * @slot cancel - Slot for custom cancel button/content when autoClick is active.
1061
1062
  *
1062
1063
  * @csspart base - The component's base wrapper.
1063
1064
  * @csspart prefix - The container that wraps the prefix.
@@ -1074,7 +1075,10 @@ declare module "components/button/button.component" {
1074
1075
  };
1075
1076
  private readonly formControlController;
1076
1077
  private readonly hasSlotController;
1078
+ private _autoClickTimeout;
1079
+ private _loadingState;
1077
1080
  button: HTMLButtonElement;
1081
+ countdownContainer: HTMLElement[];
1078
1082
  color: 'default' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'transparent' | 'star';
1079
1083
  size: 'content' | 'x-small' | 'small' | 'medium' | 'large';
1080
1084
  text: boolean;
@@ -1106,9 +1110,16 @@ declare module "components/button/button.component" {
1106
1110
  dataTarget: 'modal' | 'slide' | string;
1107
1111
  rel: string;
1108
1112
  tooltip: string;
1113
+ autoClick: boolean;
1114
+ autoClickDelay: number;
1115
+ loadingText: string;
1116
+ loadingTextPosition: 'left' | 'right' | 'center' | string;
1117
+ loading: boolean;
1109
1118
  get validity(): ValidityState;
1110
1119
  get validationMessage(): string;
1111
1120
  firstUpdated(): void;
1121
+ disconnectedCallback(): void;
1122
+ protected updated(changedProps: Map<string, any>): void;
1112
1123
  checkValidity(): boolean;
1113
1124
  getForm(): HTMLFormElement | null;
1114
1125
  reportValidity(): boolean;
@@ -1116,7 +1127,11 @@ declare module "components/button/button.component" {
1116
1127
  handleClick: () => void;
1117
1128
  private _isLink;
1118
1129
  private _isButton;
1130
+ setupAutoClick(): void;
1131
+ updateCountdownText(): void;
1132
+ teardownAutoClick(): void;
1119
1133
  protected render(): unknown;
1134
+ private _getLoadingContainer;
1120
1135
  }
1121
1136
  }
1122
1137
  declare module "components/button/index" {
@@ -2562,6 +2577,8 @@ declare module "components/data-table/data-table.component" {
2562
2577
  default?: boolean;
2563
2578
  sortable?: boolean;
2564
2579
  filterable?: boolean;
2580
+ hideHeader?: boolean;
2581
+ hideColumn?: boolean;
2565
2582
  }
2566
2583
  /**
2567
2584
  * @summary Short summary of the component's intended use.
@@ -2625,6 +2642,9 @@ declare module "components/data-table/data-table.component" {
2625
2642
  filters: [];
2626
2643
  method: 'GET' | 'POST';
2627
2644
  noInitialLoad: boolean;
2645
+ groupBy: string;
2646
+ groups: string;
2647
+ selectAllButton: ZnButton;
2628
2648
  private _initialLoad;
2629
2649
  private _lastTableContent;
2630
2650
  private resizeObserver;
@@ -2646,6 +2666,8 @@ declare module "components/data-table/data-table.component" {
2646
2666
  changeEventListener: (e: ZnFilterChangeEvent) => void;
2647
2667
  emptyState(): TemplateResult<1>;
2648
2668
  renderTable(data: Response): TemplateResult<1>;
2669
+ humanize(str: string): string;
2670
+ renderTableData(data: any): TemplateResult<1>;
2649
2671
  getTableHeader(): TemplateResult<1>;
2650
2672
  getTableFooter(): TemplateResult<1>;
2651
2673
  getRowsSelected(): TemplateResult<1> | null;
@@ -2670,6 +2692,7 @@ declare module "components/data-table/data-table.component" {
2670
2692
  private getRows;
2671
2693
  private getSelectedKeys;
2672
2694
  private updateKeys;
2695
+ private updateSelectAll;
2673
2696
  private updateModifyKeys;
2674
2697
  private updateDeleteKeys;
2675
2698
  private extractComparable;
@@ -2823,6 +2846,13 @@ declare module "components/note/note.component" {
2823
2846
  caption: string;
2824
2847
  date: string;
2825
2848
  body: string;
2849
+ collapseAtLines: number;
2850
+ private expanded;
2851
+ private _isOverflowing;
2852
+ private _toggleExpand;
2853
+ private _measureOverflow;
2854
+ protected firstUpdated(): void;
2855
+ protected updated(): void;
2826
2856
  protected render(): unknown;
2827
2857
  }
2828
2858
  }
@@ -3118,6 +3148,7 @@ declare module "components/header/header.component" {
3118
3148
  entityIdShow: boolean;
3119
3149
  transparent: boolean;
3120
3150
  caption: string;
3151
+ icon: string;
3121
3152
  description: string;
3122
3153
  navigation: never[];
3123
3154
  fullWidth: boolean;
@@ -3448,8 +3479,10 @@ declare module "components/panel/panel.component" {
3448
3479
  private readonly hasSlotController;
3449
3480
  basis: number;
3450
3481
  caption: string;
3482
+ icon: string;
3451
3483
  description: string;
3452
3484
  tabbed: boolean;
3485
+ underlineHeader: boolean;
3453
3486
  cosmic: boolean;
3454
3487
  flush: boolean;
3455
3488
  flushX: boolean;
@@ -3963,6 +3996,24 @@ declare module "components/progress-bar/index" {
3963
3996
  declare module "components/order-table/order-table.component" {
3964
3997
  import { type CSSResultGroup } from 'lit';
3965
3998
  import ZincElement from "internal/zinc-element";
3999
+ interface OrderTableData {
4000
+ headers: string[];
4001
+ items: {
4002
+ caption?: string;
4003
+ summary?: string;
4004
+ data: string[];
4005
+ sub?: {
4006
+ caption?: string;
4007
+ summary?: string;
4008
+ data: string[];
4009
+ }[];
4010
+ }[];
4011
+ tax?: string;
4012
+ discount?: string;
4013
+ total?: string;
4014
+ paid?: string;
4015
+ remaining?: string;
4016
+ }
3966
4017
  /**
3967
4018
  * @summary Short summary of the component's intended use.
3968
4019
  * @documentation https://zinc.style/components/order-table
@@ -3982,11 +4033,12 @@ declare module "components/order-table/order-table.component" {
3982
4033
  */
3983
4034
  export default class ZnOrderTable extends ZincElement {
3984
4035
  static styles: CSSResultGroup;
3985
- data: Object;
4036
+ data: OrderTableData;
3986
4037
  private isMobile;
3987
4038
  private modifiedData;
3988
- constructor();
3989
4039
  connectedCallback(): void;
4040
+ disconnectedCallback(): void;
4041
+ resizeEventHandler: () => void;
3990
4042
  render(): import("lit").TemplateResult<1>;
3991
4043
  getHeaders(): import("lit").TemplateResult<1>;
3992
4044
  getRows(): import("lit").TemplateResult<1>;
@@ -5300,6 +5352,7 @@ declare module "components/rating/rating.component" {
5300
5352
  precision: number;
5301
5353
  readonly: boolean;
5302
5354
  disabled: boolean;
5355
+ size: 'small' | 'medium' | 'large';
5303
5356
  getSymbol: (value: number) => string;
5304
5357
  /** Gets the validity state object */
5305
5358
  get validity(): ValidityState;
@@ -6210,8 +6263,8 @@ declare module "components/split-button/index" {
6210
6263
  }
6211
6264
  }
6212
6265
  declare module "components/content-block/content-block.component" {
6213
- import ZincElement from "internal/zinc-element";
6214
6266
  import type { PropertyValues } from 'lit';
6267
+ import ZincElement from "internal/zinc-element";
6215
6268
  interface TextRow {
6216
6269
  lines: string[];
6217
6270
  type: 'reply' | 'text';
@@ -6228,6 +6281,7 @@ declare module "components/content-block/content-block.component" {
6228
6281
  sender: string;
6229
6282
  avatar: string;
6230
6283
  outbound: boolean;
6284
+ noCollapse: boolean;
6231
6285
  short: boolean;
6232
6286
  defaultDisplay: 'text' | 'html';
6233
6287
  htmlNodes: Node[];