@kubex/zinc 1.1.132 → 1.1.133
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/dist/custom-elements.json +545 -423
- package/dist/vscode.html-custom-data.json +59 -54
- package/dist/web-types.json +148 -138
- package/dist/zn.d.ts +44 -1
- package/dist/zn.min.js +374 -374
- package/docs/pages/components/data-table-filter.md +4 -0
- package/docs/pages/components/data-table.md +44 -3
- package/package.json +1 -1
- package/src/components/data-table/data-table.component.ts +219 -3
- package/src/components/data-table/data-table.test.ts +205 -0
- package/src/components/data-table-filter/data-table-filter.component.ts +45 -0
- package/src/components/data-table-filter/data-table-filter.test.ts +42 -0
- package/src/components/data-table-search/data-table-search.component.ts +16 -13
- package/src/components/data-table-search/data-table-search.test.ts +24 -0
- package/src/components/toggle/toggle.scss +10 -0
|
@@ -13,6 +13,17 @@
|
|
|
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
|
+
},
|
|
16
27
|
{
|
|
17
28
|
"name": "zn-alert",
|
|
18
29
|
"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.",
|
|
@@ -53,17 +64,6 @@
|
|
|
53
64
|
}
|
|
54
65
|
]
|
|
55
66
|
},
|
|
56
|
-
{
|
|
57
|
-
"name": "zn-action-bar",
|
|
58
|
-
"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
|
-
"attributes": [],
|
|
60
|
-
"references": [
|
|
61
|
-
{
|
|
62
|
-
"name": "Documentation",
|
|
63
|
-
"url": "https://zinc.style/components/action-bar"
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
67
|
{
|
|
68
68
|
"name": "zn-animated-button",
|
|
69
69
|
"description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
|
|
@@ -490,48 +490,6 @@
|
|
|
490
490
|
}
|
|
491
491
|
]
|
|
492
492
|
},
|
|
493
|
-
{
|
|
494
|
-
"name": "zn-chart",
|
|
495
|
-
"description": "Chart component powered by Apache ECharts.\n---\n\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
496
|
-
"attributes": [
|
|
497
|
-
{ "name": "type", "values": [{ "name": "ChartType" }] },
|
|
498
|
-
{ "name": "data", "values": [{ "name": "SeriesItem[]" }] },
|
|
499
|
-
{ "name": "categories", "values": [{ "name": "string[]" }] },
|
|
500
|
-
{ "name": "y-categories", "values": [{ "name": "string[]" }] },
|
|
501
|
-
{ "name": "indicators", "values": [{ "name": "RadarIndicator[]" }] },
|
|
502
|
-
{
|
|
503
|
-
"name": "xaxis",
|
|
504
|
-
"values": [
|
|
505
|
-
{ "name": "datetime" },
|
|
506
|
-
{ "name": "category" },
|
|
507
|
-
{ "name": "numeric" }
|
|
508
|
-
]
|
|
509
|
-
},
|
|
510
|
-
{ "name": "d-size", "values": [] },
|
|
511
|
-
{ "name": "stacked", "values": [] },
|
|
512
|
-
{ "name": "live", "values": [] },
|
|
513
|
-
{ "name": "data-url", "values": [] },
|
|
514
|
-
{ "name": "live-interval", "values": [] },
|
|
515
|
-
{ "name": "height", "values": [] },
|
|
516
|
-
{ "name": "enable-animations", "values": [] },
|
|
517
|
-
{ "name": "y-axis-append", "values": [] },
|
|
518
|
-
{ "name": "colors", "values": [{ "name": "string[]" }] },
|
|
519
|
-
{ "name": "sync-group", "values": [] },
|
|
520
|
-
{ "name": "smooth", "values": [] },
|
|
521
|
-
{ "name": "inner-radius", "values": [] },
|
|
522
|
-
{ "name": "outer-radius", "values": [] },
|
|
523
|
-
{ "name": "show-labels", "values": [] },
|
|
524
|
-
{ "name": "min-value", "values": [] },
|
|
525
|
-
{ "name": "max-value", "values": [] },
|
|
526
|
-
{ "name": "scale", "values": [] }
|
|
527
|
-
],
|
|
528
|
-
"references": [
|
|
529
|
-
{
|
|
530
|
-
"name": "Documentation",
|
|
531
|
-
"url": "https://zinc.style/components/chart"
|
|
532
|
-
}
|
|
533
|
-
]
|
|
534
|
-
},
|
|
535
493
|
{
|
|
536
494
|
"name": "zn-chat-message",
|
|
537
495
|
"description": "A single message in a chat-style conversation: avatar, sender,\ntime, optional badge, and a message bubble with optional actions. Also renders\nsystem events (connections, transfers, etc.) as a centred card.\n---\n\n\n### **Slots:**\n - _default_ - The message content. Ignored when the `message` attribute is set.\n- **badge** - Rendered in the header after the sender and time (e.g. an INTERNAL NOTE chip).\n- **attachments** - Attachments displayed beneath the message content. Use `zn-chat-message-attachment`, which auto-assigns itself to this slot.\n- **edit-dialog-trigger** - Action rendered at the end of the bubble (e.g. a remove icon button).\n- **edit-dialog** - Pass-through for an associated dialog element.\n\n### **CSS Properties:**\n - **--message-background** - The bubble's background color. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **avatar** - The avatar column.\n- **body** - The header and bubble column.\n- **header** - The sender/time/badge row.\n- **bubble** - The message bubble.\n- **content** - The message content within the bubble.\n- **attachments** - The attachments row beneath the message content.\n- **system-card** - The card rendered for system action types.",
|
|
@@ -584,6 +542,48 @@
|
|
|
584
542
|
}
|
|
585
543
|
]
|
|
586
544
|
},
|
|
545
|
+
{
|
|
546
|
+
"name": "zn-chart",
|
|
547
|
+
"description": "Chart component powered by Apache ECharts.\n---\n\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
548
|
+
"attributes": [
|
|
549
|
+
{ "name": "type", "values": [{ "name": "ChartType" }] },
|
|
550
|
+
{ "name": "data", "values": [{ "name": "SeriesItem[]" }] },
|
|
551
|
+
{ "name": "categories", "values": [{ "name": "string[]" }] },
|
|
552
|
+
{ "name": "y-categories", "values": [{ "name": "string[]" }] },
|
|
553
|
+
{ "name": "indicators", "values": [{ "name": "RadarIndicator[]" }] },
|
|
554
|
+
{
|
|
555
|
+
"name": "xaxis",
|
|
556
|
+
"values": [
|
|
557
|
+
{ "name": "datetime" },
|
|
558
|
+
{ "name": "category" },
|
|
559
|
+
{ "name": "numeric" }
|
|
560
|
+
]
|
|
561
|
+
},
|
|
562
|
+
{ "name": "d-size", "values": [] },
|
|
563
|
+
{ "name": "stacked", "values": [] },
|
|
564
|
+
{ "name": "live", "values": [] },
|
|
565
|
+
{ "name": "data-url", "values": [] },
|
|
566
|
+
{ "name": "live-interval", "values": [] },
|
|
567
|
+
{ "name": "height", "values": [] },
|
|
568
|
+
{ "name": "enable-animations", "values": [] },
|
|
569
|
+
{ "name": "y-axis-append", "values": [] },
|
|
570
|
+
{ "name": "colors", "values": [{ "name": "string[]" }] },
|
|
571
|
+
{ "name": "sync-group", "values": [] },
|
|
572
|
+
{ "name": "smooth", "values": [] },
|
|
573
|
+
{ "name": "inner-radius", "values": [] },
|
|
574
|
+
{ "name": "outer-radius", "values": [] },
|
|
575
|
+
{ "name": "show-labels", "values": [] },
|
|
576
|
+
{ "name": "min-value", "values": [] },
|
|
577
|
+
{ "name": "max-value", "values": [] },
|
|
578
|
+
{ "name": "scale", "values": [] }
|
|
579
|
+
],
|
|
580
|
+
"references": [
|
|
581
|
+
{
|
|
582
|
+
"name": "Documentation",
|
|
583
|
+
"url": "https://zinc.style/components/chart"
|
|
584
|
+
}
|
|
585
|
+
]
|
|
586
|
+
},
|
|
587
587
|
{
|
|
588
588
|
"name": "zn-chat-message-attachment",
|
|
589
589
|
"description": "A single file or link attachment for a `zn-chat-message` or `zn-content-block`.\nRenders an icon and a label as a link, styled to match the message's attachments row. It is\nintended to be used only inside a `zn-chat-message` or `zn-content-block` and is automatically\nplaced in that component's `attachments` slot.\n---\n\n\n### **Slots:**\n - _default_ - The attachment label. Falls back to the `name` attribute when empty.\n\n### **CSS Parts:**\n - **base** - The attachment link.\n- **icon** - The leading icon.\n- **label** - The attachment label.",
|
|
@@ -1223,6 +1223,11 @@
|
|
|
1223
1223
|
{ "name": "filters", "values": [{ "name": "[]" }] },
|
|
1224
1224
|
{ "name": "method", "values": [{ "name": "GET" }, { "name": "POST" }] },
|
|
1225
1225
|
{ "name": "no-initial-load", "values": [] },
|
|
1226
|
+
{
|
|
1227
|
+
"name": "sharable",
|
|
1228
|
+
"description": "When set, the table's non-default state (search, filter, sort, page, per-page and field values)\nis mirrored to the URL query string and restored from it on load, so the view is shareable.",
|
|
1229
|
+
"values": []
|
|
1230
|
+
},
|
|
1226
1231
|
{ "name": "group-by", "values": [] },
|
|
1227
1232
|
{ "name": "groups", "values": [] },
|
|
1228
1233
|
{ "name": "per-page-size", "values": [] }
|
|
@@ -1285,7 +1290,7 @@
|
|
|
1285
1290
|
},
|
|
1286
1291
|
{
|
|
1287
1292
|
"name": "debounce-delay",
|
|
1288
|
-
"description": "The delay in milliseconds before triggering a search (default:
|
|
1293
|
+
"description": "The delay in milliseconds before triggering a search (default: 350).",
|
|
1289
1294
|
"values": []
|
|
1290
1295
|
}
|
|
1291
1296
|
],
|
package/dist/web-types.json
CHANGED
|
@@ -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.1.
|
|
4
|
+
"version": "1.1.133",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -15,6 +15,28 @@
|
|
|
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
|
+
},
|
|
18
40
|
{
|
|
19
41
|
"name": "zn-alert",
|
|
20
42
|
"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.",
|
|
@@ -83,28 +105,6 @@
|
|
|
83
105
|
]
|
|
84
106
|
}
|
|
85
107
|
},
|
|
86
|
-
{
|
|
87
|
-
"name": "zn-action-bar",
|
|
88
|
-
"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.",
|
|
89
|
-
"doc-url": "",
|
|
90
|
-
"attributes": [],
|
|
91
|
-
"slots": [
|
|
92
|
-
{ "name": "", "description": "The default slot." },
|
|
93
|
-
{ "name": "example", "description": "An example slot." }
|
|
94
|
-
],
|
|
95
|
-
"events": [
|
|
96
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
97
|
-
],
|
|
98
|
-
"js": {
|
|
99
|
-
"properties": [],
|
|
100
|
-
"events": [
|
|
101
|
-
{
|
|
102
|
-
"name": "zn-event-name",
|
|
103
|
-
"description": "Emitted as an example."
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
108
|
{
|
|
109
109
|
"name": "zn-animated-button",
|
|
110
110
|
"description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
|
|
@@ -1003,119 +1003,6 @@
|
|
|
1003
1003
|
]
|
|
1004
1004
|
}
|
|
1005
1005
|
},
|
|
1006
|
-
{
|
|
1007
|
-
"name": "zn-chart",
|
|
1008
|
-
"description": "Chart component powered by Apache ECharts.\n---\n\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
1009
|
-
"doc-url": "",
|
|
1010
|
-
"attributes": [
|
|
1011
|
-
{
|
|
1012
|
-
"name": "type",
|
|
1013
|
-
"value": { "type": "ChartType", "default": "'bar'" }
|
|
1014
|
-
},
|
|
1015
|
-
{
|
|
1016
|
-
"name": "data",
|
|
1017
|
-
"value": { "type": "SeriesItem[]", "default": "[]" }
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
"name": "categories",
|
|
1021
|
-
"value": { "type": "string[]", "default": "[]" }
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
"name": "y-categories",
|
|
1025
|
-
"value": { "type": "string[]", "default": "[]" }
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
"name": "indicators",
|
|
1029
|
-
"value": { "type": "RadarIndicator[]", "default": "[]" }
|
|
1030
|
-
},
|
|
1031
|
-
{
|
|
1032
|
-
"name": "xaxis",
|
|
1033
|
-
"value": { "type": "'datetime' | 'category' | 'numeric'" }
|
|
1034
|
-
},
|
|
1035
|
-
{ "name": "d-size", "value": { "type": "number", "default": "1" } },
|
|
1036
|
-
{
|
|
1037
|
-
"name": "stacked",
|
|
1038
|
-
"value": { "type": "boolean", "default": "false" }
|
|
1039
|
-
},
|
|
1040
|
-
{
|
|
1041
|
-
"name": "live",
|
|
1042
|
-
"value": { "type": "boolean", "default": "false" }
|
|
1043
|
-
},
|
|
1044
|
-
{
|
|
1045
|
-
"name": "data-url",
|
|
1046
|
-
"value": { "type": "string", "default": "''" }
|
|
1047
|
-
},
|
|
1048
|
-
{
|
|
1049
|
-
"name": "live-interval",
|
|
1050
|
-
"value": { "type": "number", "default": "1000" }
|
|
1051
|
-
},
|
|
1052
|
-
{
|
|
1053
|
-
"name": "height",
|
|
1054
|
-
"value": { "type": "number", "default": "300" }
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
"name": "enable-animations",
|
|
1058
|
-
"value": { "type": "boolean | number", "default": "false" }
|
|
1059
|
-
},
|
|
1060
|
-
{ "name": "y-axis-append", "value": { "type": "string" } },
|
|
1061
|
-
{ "name": "colors", "value": { "type": "string[] | undefined" } },
|
|
1062
|
-
{ "name": "sync-group", "value": { "type": "string | undefined" } },
|
|
1063
|
-
{
|
|
1064
|
-
"name": "smooth",
|
|
1065
|
-
"value": { "type": "boolean", "default": "false" }
|
|
1066
|
-
},
|
|
1067
|
-
{
|
|
1068
|
-
"name": "inner-radius",
|
|
1069
|
-
"value": { "type": "number | string | undefined" }
|
|
1070
|
-
},
|
|
1071
|
-
{
|
|
1072
|
-
"name": "outer-radius",
|
|
1073
|
-
"value": { "type": "number | string | undefined" }
|
|
1074
|
-
},
|
|
1075
|
-
{
|
|
1076
|
-
"name": "show-labels",
|
|
1077
|
-
"value": { "type": "boolean | undefined" }
|
|
1078
|
-
},
|
|
1079
|
-
{ "name": "min-value", "value": { "type": "number | undefined" } },
|
|
1080
|
-
{ "name": "max-value", "value": { "type": "number | undefined" } },
|
|
1081
|
-
{
|
|
1082
|
-
"name": "scale",
|
|
1083
|
-
"value": { "type": "boolean | number", "default": "false" }
|
|
1084
|
-
}
|
|
1085
|
-
],
|
|
1086
|
-
"events": [],
|
|
1087
|
-
"js": {
|
|
1088
|
-
"properties": [
|
|
1089
|
-
{ "name": "type", "type": "ChartType" },
|
|
1090
|
-
{ "name": "data", "type": "SeriesItem[]" },
|
|
1091
|
-
{ "name": "categories", "type": "string[]" },
|
|
1092
|
-
{ "name": "yCategories", "type": "string[]" },
|
|
1093
|
-
{ "name": "indicators", "type": "RadarIndicator[]" },
|
|
1094
|
-
{
|
|
1095
|
-
"name": "xAxis",
|
|
1096
|
-
"type": "'datetime' | 'category' | 'numeric'"
|
|
1097
|
-
},
|
|
1098
|
-
{ "name": "datapointSize", "type": "number" },
|
|
1099
|
-
{ "name": "stacked", "type": "boolean" },
|
|
1100
|
-
{ "name": "live", "type": "boolean" },
|
|
1101
|
-
{ "name": "dataUrl", "type": "string" },
|
|
1102
|
-
{ "name": "liveInterval", "type": "number" },
|
|
1103
|
-
{ "name": "height", "type": "number" },
|
|
1104
|
-
{ "name": "enableAnimations", "type": "boolean | number" },
|
|
1105
|
-
{ "name": "yAxisAppend", "type": "string" },
|
|
1106
|
-
{ "name": "colors", "type": "string[] | undefined" },
|
|
1107
|
-
{ "name": "syncGroup", "type": "string | undefined" },
|
|
1108
|
-
{ "name": "smooth", "type": "boolean" },
|
|
1109
|
-
{ "name": "innerRadius", "type": "number | string | undefined" },
|
|
1110
|
-
{ "name": "outerRadius", "type": "number | string | undefined" },
|
|
1111
|
-
{ "name": "showLabels", "type": "boolean | undefined" },
|
|
1112
|
-
{ "name": "minValue", "type": "number | undefined" },
|
|
1113
|
-
{ "name": "maxValue", "type": "number | undefined" },
|
|
1114
|
-
{ "name": "scale", "type": "boolean | number" }
|
|
1115
|
-
],
|
|
1116
|
-
"events": []
|
|
1117
|
-
}
|
|
1118
|
-
},
|
|
1119
1006
|
{
|
|
1120
1007
|
"name": "zn-chat-message",
|
|
1121
1008
|
"description": "A single message in a chat-style conversation: avatar, sender,\ntime, optional badge, and a message bubble with optional actions. Also renders\nsystem events (connections, transfers, etc.) as a centred card.\n---\n\n\n### **Slots:**\n - _default_ - The message content. Ignored when the `message` attribute is set.\n- **badge** - Rendered in the header after the sender and time (e.g. an INTERNAL NOTE chip).\n- **attachments** - Attachments displayed beneath the message content. Use `zn-chat-message-attachment`, which auto-assigns itself to this slot.\n- **edit-dialog-trigger** - Action rendered at the end of the bubble (e.g. a remove icon button).\n- **edit-dialog** - Pass-through for an associated dialog element.\n\n### **CSS Properties:**\n - **--message-background** - The bubble's background color. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **avatar** - The avatar column.\n- **body** - The header and bubble column.\n- **header** - The sender/time/badge row.\n- **bubble** - The message bubble.\n- **content** - The message content within the bubble.\n- **attachments** - The attachments row beneath the message content.\n- **system-card** - The card rendered for system action types.",
|
|
@@ -1231,6 +1118,119 @@
|
|
|
1231
1118
|
"events": []
|
|
1232
1119
|
}
|
|
1233
1120
|
},
|
|
1121
|
+
{
|
|
1122
|
+
"name": "zn-chart",
|
|
1123
|
+
"description": "Chart component powered by Apache ECharts.\n---\n\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
1124
|
+
"doc-url": "",
|
|
1125
|
+
"attributes": [
|
|
1126
|
+
{
|
|
1127
|
+
"name": "type",
|
|
1128
|
+
"value": { "type": "ChartType", "default": "'bar'" }
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"name": "data",
|
|
1132
|
+
"value": { "type": "SeriesItem[]", "default": "[]" }
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"name": "categories",
|
|
1136
|
+
"value": { "type": "string[]", "default": "[]" }
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"name": "y-categories",
|
|
1140
|
+
"value": { "type": "string[]", "default": "[]" }
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"name": "indicators",
|
|
1144
|
+
"value": { "type": "RadarIndicator[]", "default": "[]" }
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"name": "xaxis",
|
|
1148
|
+
"value": { "type": "'datetime' | 'category' | 'numeric'" }
|
|
1149
|
+
},
|
|
1150
|
+
{ "name": "d-size", "value": { "type": "number", "default": "1" } },
|
|
1151
|
+
{
|
|
1152
|
+
"name": "stacked",
|
|
1153
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"name": "live",
|
|
1157
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
"name": "data-url",
|
|
1161
|
+
"value": { "type": "string", "default": "''" }
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
"name": "live-interval",
|
|
1165
|
+
"value": { "type": "number", "default": "1000" }
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"name": "height",
|
|
1169
|
+
"value": { "type": "number", "default": "300" }
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
"name": "enable-animations",
|
|
1173
|
+
"value": { "type": "boolean | number", "default": "false" }
|
|
1174
|
+
},
|
|
1175
|
+
{ "name": "y-axis-append", "value": { "type": "string" } },
|
|
1176
|
+
{ "name": "colors", "value": { "type": "string[] | undefined" } },
|
|
1177
|
+
{ "name": "sync-group", "value": { "type": "string | undefined" } },
|
|
1178
|
+
{
|
|
1179
|
+
"name": "smooth",
|
|
1180
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"name": "inner-radius",
|
|
1184
|
+
"value": { "type": "number | string | undefined" }
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"name": "outer-radius",
|
|
1188
|
+
"value": { "type": "number | string | undefined" }
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"name": "show-labels",
|
|
1192
|
+
"value": { "type": "boolean | undefined" }
|
|
1193
|
+
},
|
|
1194
|
+
{ "name": "min-value", "value": { "type": "number | undefined" } },
|
|
1195
|
+
{ "name": "max-value", "value": { "type": "number | undefined" } },
|
|
1196
|
+
{
|
|
1197
|
+
"name": "scale",
|
|
1198
|
+
"value": { "type": "boolean | number", "default": "false" }
|
|
1199
|
+
}
|
|
1200
|
+
],
|
|
1201
|
+
"events": [],
|
|
1202
|
+
"js": {
|
|
1203
|
+
"properties": [
|
|
1204
|
+
{ "name": "type", "type": "ChartType" },
|
|
1205
|
+
{ "name": "data", "type": "SeriesItem[]" },
|
|
1206
|
+
{ "name": "categories", "type": "string[]" },
|
|
1207
|
+
{ "name": "yCategories", "type": "string[]" },
|
|
1208
|
+
{ "name": "indicators", "type": "RadarIndicator[]" },
|
|
1209
|
+
{
|
|
1210
|
+
"name": "xAxis",
|
|
1211
|
+
"type": "'datetime' | 'category' | 'numeric'"
|
|
1212
|
+
},
|
|
1213
|
+
{ "name": "datapointSize", "type": "number" },
|
|
1214
|
+
{ "name": "stacked", "type": "boolean" },
|
|
1215
|
+
{ "name": "live", "type": "boolean" },
|
|
1216
|
+
{ "name": "dataUrl", "type": "string" },
|
|
1217
|
+
{ "name": "liveInterval", "type": "number" },
|
|
1218
|
+
{ "name": "height", "type": "number" },
|
|
1219
|
+
{ "name": "enableAnimations", "type": "boolean | number" },
|
|
1220
|
+
{ "name": "yAxisAppend", "type": "string" },
|
|
1221
|
+
{ "name": "colors", "type": "string[] | undefined" },
|
|
1222
|
+
{ "name": "syncGroup", "type": "string | undefined" },
|
|
1223
|
+
{ "name": "smooth", "type": "boolean" },
|
|
1224
|
+
{ "name": "innerRadius", "type": "number | string | undefined" },
|
|
1225
|
+
{ "name": "outerRadius", "type": "number | string | undefined" },
|
|
1226
|
+
{ "name": "showLabels", "type": "boolean | undefined" },
|
|
1227
|
+
{ "name": "minValue", "type": "number | undefined" },
|
|
1228
|
+
{ "name": "maxValue", "type": "number | undefined" },
|
|
1229
|
+
{ "name": "scale", "type": "boolean | number" }
|
|
1230
|
+
],
|
|
1231
|
+
"events": []
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
1234
|
{
|
|
1235
1235
|
"name": "zn-chat-message-attachment",
|
|
1236
1236
|
"description": "A single file or link attachment for a `zn-chat-message` or `zn-content-block`.\nRenders an icon and a label as a link, styled to match the message's attachments row. It is\nintended to be used only inside a `zn-chat-message` or `zn-content-block` and is automatically\nplaced in that component's `attachments` slot.\n---\n\n\n### **Slots:**\n - _default_ - The attachment label. Falls back to the `name` attribute when empty.\n\n### **CSS Parts:**\n - **base** - The attachment link.\n- **icon** - The leading icon.\n- **label** - The attachment label.",
|
|
@@ -2746,6 +2746,11 @@
|
|
|
2746
2746
|
"name": "no-initial-load",
|
|
2747
2747
|
"value": { "type": "boolean", "default": "false" }
|
|
2748
2748
|
},
|
|
2749
|
+
{
|
|
2750
|
+
"name": "sharable",
|
|
2751
|
+
"description": "When set, the table's non-default state (search, filter, sort, page, per-page and field values)\nis mirrored to the URL query string and restored from it on load, so the view is shareable.",
|
|
2752
|
+
"value": { "type": "boolean", "default": "false" }
|
|
2753
|
+
},
|
|
2749
2754
|
{
|
|
2750
2755
|
"name": "group-by",
|
|
2751
2756
|
"value": { "type": "string", "default": "''" }
|
|
@@ -2834,6 +2839,11 @@
|
|
|
2834
2839
|
{ "name": "filters", "type": "[]" },
|
|
2835
2840
|
{ "name": "method", "type": "'GET' | 'POST'" },
|
|
2836
2841
|
{ "name": "noInitialLoad", "type": "boolean" },
|
|
2842
|
+
{
|
|
2843
|
+
"name": "sharable",
|
|
2844
|
+
"description": "When set, the table's non-default state (search, filter, sort, page, per-page and field values)\nis mirrored to the URL query string and restored from it on load, so the view is shareable.",
|
|
2845
|
+
"type": "boolean"
|
|
2846
|
+
},
|
|
2837
2847
|
{ "name": "groupBy", "type": "string" },
|
|
2838
2848
|
{ "name": "groups", "type": "string" },
|
|
2839
2849
|
{ "name": "itemsPerPage", "type": "number" },
|
|
@@ -2935,7 +2945,7 @@
|
|
|
2935
2945
|
},
|
|
2936
2946
|
{
|
|
2937
2947
|
"name": "debounce-delay",
|
|
2938
|
-
"description": "The delay in milliseconds before triggering a search (default:
|
|
2948
|
+
"description": "The delay in milliseconds before triggering a search (default: 350).",
|
|
2939
2949
|
"value": { "type": "number", "default": "350" }
|
|
2940
2950
|
}
|
|
2941
2951
|
],
|
|
@@ -2980,7 +2990,7 @@
|
|
|
2980
2990
|
},
|
|
2981
2991
|
{
|
|
2982
2992
|
"name": "debounceDelay",
|
|
2983
|
-
"description": "The delay in milliseconds before triggering a search (default:
|
|
2993
|
+
"description": "The delay in milliseconds before triggering a search (default: 350).",
|
|
2984
2994
|
"type": "number"
|
|
2985
2995
|
},
|
|
2986
2996
|
{ "name": "validationMessage", "type": "string" },
|
package/dist/zn.d.ts
CHANGED
|
@@ -3460,6 +3460,13 @@ declare module "components/data-table-filter/data-table-filter.component" {
|
|
|
3460
3460
|
private toggleOption;
|
|
3461
3461
|
private selectedValues;
|
|
3462
3462
|
private emitChange;
|
|
3463
|
+
/**
|
|
3464
|
+
* Rebuild the active filters from an encoded `value` (the inverse of emitChange), so a filter
|
|
3465
|
+
* restored from a shareable URL shows its pills. Runs only while there are no active filters and
|
|
3466
|
+
* needs the filters schema present to resolve each key. Sets `_active` directly so it neither
|
|
3467
|
+
* re-emits nor overwrites the value it just read.
|
|
3468
|
+
*/
|
|
3469
|
+
private hydrateFromValue;
|
|
3463
3470
|
private handleDateInput;
|
|
3464
3471
|
private serializeDate;
|
|
3465
3472
|
private handleTextInput;
|
|
@@ -3679,7 +3686,7 @@ declare module "components/data-table-search/data-table-search.component" {
|
|
|
3679
3686
|
* @property {string} placeholder - The placeholder text for the search input (default: "Search...").
|
|
3680
3687
|
* @property {string} helpText - Help text, shown from an information icon inside the search input.
|
|
3681
3688
|
* @property {string} searchUri - Optional URI to use for search operations.
|
|
3682
|
-
* @property {number} debounceDelay - The delay in milliseconds before triggering a search (default:
|
|
3689
|
+
* @property {number} debounceDelay - The delay in milliseconds before triggering a search (default: 350).
|
|
3683
3690
|
*/
|
|
3684
3691
|
export default class ZnDataTableSearch extends ZincElement implements ZincFormControl {
|
|
3685
3692
|
static styles: CSSResultGroup;
|
|
@@ -4139,6 +4146,11 @@ declare module "components/data-table/data-table.component" {
|
|
|
4139
4146
|
filters: [];
|
|
4140
4147
|
method: 'GET' | 'POST';
|
|
4141
4148
|
noInitialLoad: boolean;
|
|
4149
|
+
/**
|
|
4150
|
+
* When set, the table's non-default state (search, filter, sort, page, per-page and field values)
|
|
4151
|
+
*is mirrored to the URL query string and restored from it on load, so the view is shareable.
|
|
4152
|
+
*/
|
|
4153
|
+
sharable: boolean;
|
|
4142
4154
|
groupBy: string;
|
|
4143
4155
|
groups: string;
|
|
4144
4156
|
itemsPerPage: number;
|
|
@@ -4147,6 +4159,9 @@ declare module "components/data-table/data-table.component" {
|
|
|
4147
4159
|
private _hasLoadedData;
|
|
4148
4160
|
private _lastLoadHadRows;
|
|
4149
4161
|
private _lastTableContent;
|
|
4162
|
+
private _sharableInitialised;
|
|
4163
|
+
private _sharableDefaults;
|
|
4164
|
+
private readonly _urlManagedKeys;
|
|
4150
4165
|
private readonly resizeObserver;
|
|
4151
4166
|
private page;
|
|
4152
4167
|
private totalPages;
|
|
@@ -4173,8 +4188,36 @@ declare module "components/data-table/data-table.component" {
|
|
|
4173
4188
|
private isColumnVisible;
|
|
4174
4189
|
private applyColumnDefaults;
|
|
4175
4190
|
private toggleColumn;
|
|
4191
|
+
private static readonly _sharableKnownKeys;
|
|
4192
|
+
/**
|
|
4193
|
+
* Snapshot the initial (attribute-provided) value of every managed key, so the URL writer can
|
|
4194
|
+
* omit any key still holding its default - e.g. the table's default sort/direction, page 1 or the
|
|
4195
|
+
* default page size. Captured once, before the URL is read, so URL values are treated as deltas.
|
|
4196
|
+
*/
|
|
4197
|
+
private _captureSharableDefaults;
|
|
4198
|
+
/**
|
|
4199
|
+
* Seed the table state from the URL query string (raw param names) when `sharable` is set. Runs
|
|
4200
|
+
* once, before the first render, so the initial data request already carries the shared state.
|
|
4201
|
+
*/
|
|
4202
|
+
private _readSharableState;
|
|
4203
|
+
/**
|
|
4204
|
+
* Push the shared state back into the actual DOM fields so the UI reflects it. The search value
|
|
4205
|
+
* lives on the slotted <zn-data-table-search>, the filter on <zn-data-table-filter>, and extra
|
|
4206
|
+
* field params on the search/inputs fields (all light-DOM descendants).
|
|
4207
|
+
*/
|
|
4208
|
+
private _populateSharableFields;
|
|
4209
|
+
private _hasFieldNamed;
|
|
4210
|
+
private _setSharableFieldValue;
|
|
4211
|
+
/**
|
|
4212
|
+
* Mirror the current table state to the URL query string (raw param names) via replaceState.
|
|
4213
|
+
* A key is written only when its value differs from the captured default, so the default sort,
|
|
4214
|
+
* page 1, the default page size and empty search/filter/fields never clutter the URL. Unrelated
|
|
4215
|
+
* params (e.g. utm_*) are preserved.
|
|
4216
|
+
*/
|
|
4217
|
+
private _updateSharableUrl;
|
|
4176
4218
|
render(): TemplateResult<1>;
|
|
4177
4219
|
connectedCallback(): void;
|
|
4220
|
+
protected firstUpdated(): void;
|
|
4178
4221
|
protected updated(changed: PropertyValues): void;
|
|
4179
4222
|
private publishFilterSuggestions;
|
|
4180
4223
|
private getTemplate;
|