@kubex/zinc 1.1.53 → 1.1.55

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.
@@ -47,6 +47,79 @@
47
47
  }
48
48
  ]
49
49
  },
50
+ {
51
+ "kind": "javascript-module",
52
+ "path": "components/action-bar/action-bar.js",
53
+ "declarations": [
54
+ {
55
+ "kind": "class",
56
+ "description": "",
57
+ "name": "ZnActionBar",
58
+ "cssProperties": [
59
+ {
60
+ "description": "An example CSS custom property.",
61
+ "name": "--example"
62
+ }
63
+ ],
64
+ "cssParts": [
65
+ {
66
+ "description": "The component's base wrapper.",
67
+ "name": "base"
68
+ }
69
+ ],
70
+ "slots": [
71
+ {
72
+ "description": "The default slot.",
73
+ "name": ""
74
+ },
75
+ {
76
+ "description": "An example slot.",
77
+ "name": "example"
78
+ }
79
+ ],
80
+ "members": [
81
+ {
82
+ "kind": "field",
83
+ "name": "localize",
84
+ "privacy": "private",
85
+ "readonly": true,
86
+ "default": "new LocalizeController(this)"
87
+ }
88
+ ],
89
+ "events": [
90
+ {
91
+ "description": "Emitted as an example.",
92
+ "name": "zn-event-name"
93
+ }
94
+ ],
95
+ "superclass": {
96
+ "name": "ZincElement",
97
+ "module": "/src/internal/zinc-element"
98
+ },
99
+ "summary": "Short summary of the component's intended use.",
100
+ "tagNameWithoutPrefix": "action-bar",
101
+ "tagName": "zn-action-bar",
102
+ "customElement": true,
103
+ "jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
104
+ "documentation": "https://zinc.style/components/action-bar",
105
+ "status": "experimental",
106
+ "since": "1.0",
107
+ "dependencies": [
108
+ "zn-example"
109
+ ]
110
+ }
111
+ ],
112
+ "exports": [
113
+ {
114
+ "kind": "js",
115
+ "name": "default",
116
+ "declaration": {
117
+ "name": "ZnActionBar",
118
+ "module": "components/action-bar/action-bar.js"
119
+ }
120
+ }
121
+ ]
122
+ },
50
123
  {
51
124
  "kind": "javascript-module",
52
125
  "path": "components/alert/alert.js",
@@ -124,6 +197,16 @@
124
197
  "default": "'info'",
125
198
  "attribute": "level"
126
199
  },
200
+ {
201
+ "kind": "field",
202
+ "name": "center",
203
+ "type": {
204
+ "text": "boolean"
205
+ },
206
+ "default": "false",
207
+ "attribute": "center",
208
+ "reflects": true
209
+ },
127
210
  {
128
211
  "kind": "field",
129
212
  "name": "size",
@@ -186,6 +269,14 @@
186
269
  "default": "'info'",
187
270
  "fieldName": "level"
188
271
  },
272
+ {
273
+ "name": "center",
274
+ "type": {
275
+ "text": "boolean"
276
+ },
277
+ "default": "false",
278
+ "fieldName": "center"
279
+ },
189
280
  {
190
281
  "name": "size",
191
282
  "type": {
@@ -223,79 +314,6 @@
223
314
  }
224
315
  ]
225
316
  },
226
- {
227
- "kind": "javascript-module",
228
- "path": "components/action-bar/action-bar.js",
229
- "declarations": [
230
- {
231
- "kind": "class",
232
- "description": "",
233
- "name": "ZnActionBar",
234
- "cssProperties": [
235
- {
236
- "description": "An example CSS custom property.",
237
- "name": "--example"
238
- }
239
- ],
240
- "cssParts": [
241
- {
242
- "description": "The component's base wrapper.",
243
- "name": "base"
244
- }
245
- ],
246
- "slots": [
247
- {
248
- "description": "The default slot.",
249
- "name": ""
250
- },
251
- {
252
- "description": "An example slot.",
253
- "name": "example"
254
- }
255
- ],
256
- "members": [
257
- {
258
- "kind": "field",
259
- "name": "localize",
260
- "privacy": "private",
261
- "readonly": true,
262
- "default": "new LocalizeController(this)"
263
- }
264
- ],
265
- "events": [
266
- {
267
- "description": "Emitted as an example.",
268
- "name": "zn-event-name"
269
- }
270
- ],
271
- "superclass": {
272
- "name": "ZincElement",
273
- "module": "/src/internal/zinc-element"
274
- },
275
- "summary": "Short summary of the component's intended use.",
276
- "tagNameWithoutPrefix": "action-bar",
277
- "tagName": "zn-action-bar",
278
- "customElement": true,
279
- "jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
280
- "documentation": "https://zinc.style/components/action-bar",
281
- "status": "experimental",
282
- "since": "1.0",
283
- "dependencies": [
284
- "zn-example"
285
- ]
286
- }
287
- ],
288
- "exports": [
289
- {
290
- "kind": "js",
291
- "name": "default",
292
- "declaration": {
293
- "name": "ZnActionBar",
294
- "module": "components/action-bar/action-bar.js"
295
- }
296
- }
297
- ]
298
- },
299
317
  {
300
318
  "kind": "javascript-module",
301
319
  "path": "components/animated-button/animated-button.js",
@@ -2787,7 +2805,7 @@
2787
2805
  "type": {
2788
2806
  "text": "string"
2789
2807
  },
2790
- "default": "'call_end'",
2808
+ "default": "'close'",
2791
2809
  "description": "Icon for the reject control.",
2792
2810
  "attribute": "reject-icon"
2793
2811
  },
@@ -3073,7 +3091,7 @@
3073
3091
  "type": {
3074
3092
  "text": "string"
3075
3093
  },
3076
- "default": "'call_end'",
3094
+ "default": "'close'",
3077
3095
  "description": "Icon for the reject control.",
3078
3096
  "fieldName": "rejectIcon"
3079
3097
  },
@@ -7852,7 +7870,7 @@
7852
7870
  "text": "object"
7853
7871
  },
7854
7872
  "static": true,
7855
- "default": "{ 'zn-button': ZnButton, 'zn-empty-state': ZnEmptyState, 'zn-chip': ZnChip, 'zn-hover-container': ZnHoverContainer, 'zn-dropdown': ZnDropdown, 'zn-menu': ZnMenu, 'zn-menu-item': ZnMenuItem, 'zn-button-group': ZnButtonGroup, 'zn-confirm': ZnConfirm, 'zn-skeleton': ZnSkeleton, 'zn-style': ZnStyle, 'zn-data-table-search': ZnDataTableSearch, }"
7873
+ "default": "{ 'zn-alert': ZnAlert, 'zn-button': ZnButton, 'zn-empty-state': ZnEmptyState, 'zn-chip': ZnChip, 'zn-hover-container': ZnHoverContainer, 'zn-dropdown': ZnDropdown, 'zn-menu': ZnMenu, 'zn-menu-item': ZnMenuItem, 'zn-button-group': ZnButtonGroup, 'zn-confirm': ZnConfirm, 'zn-skeleton': ZnSkeleton, 'zn-style': ZnStyle, 'zn-data-table-search': ZnDataTableSearch, }"
7856
7874
  },
7857
7875
  {
7858
7876
  "kind": "field",
@@ -8292,6 +8310,19 @@
8292
8310
  }
8293
8311
  ]
8294
8312
  },
8313
+ {
8314
+ "kind": "method",
8315
+ "name": "renderErrorAlert",
8316
+ "privacy": "private",
8317
+ "parameters": [
8318
+ {
8319
+ "name": "error",
8320
+ "type": {
8321
+ "text": "ResponseError"
8322
+ }
8323
+ }
8324
+ ]
8325
+ },
8295
8326
  {
8296
8327
  "kind": "method",
8297
8328
  "name": "humanize",
@@ -8315,6 +8346,13 @@
8315
8346
  "type": {
8316
8347
  "text": "any"
8317
8348
  }
8349
+ },
8350
+ {
8351
+ "name": "error",
8352
+ "optional": true,
8353
+ "type": {
8354
+ "text": "ResponseError"
8355
+ }
8318
8356
  }
8319
8357
  ]
8320
8358
  },
@@ -8947,11 +8985,12 @@
8947
8985
  "tagNameWithoutPrefix": "data-table",
8948
8986
  "tagName": "zn-data-table",
8949
8987
  "customElement": true,
8950
- "jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/data-table\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-button\n * @dependency zn-empty-state\n * @dependency zn-chip\n * @dependency zn-hover-container\n * @dependency zn-dropdown\n * @dependency zn-menu\n * @dependency zn-menu-item\n * @dependency zn-button-group\n * @dependency zn-confirm\n * @dependency zn-skeleton\n * @dependency zn-data-table-search\n *\n * @slot - The default slot.\n * @slot search - Slot for search component.\n * @slot sort - Slot for sort component.\n * @slot filter - Slot for filter component.\n * @slot filter-top - Slot for top-level filter component.\n * @slot delete-action - Slot for delete action button.\n * @slot modify-action - Slot for modify action button.\n * @slot create-action - Slot for create action button.\n * @slot inputs - Slot for additional input controls.\n * @slot empty-state - Slot for custom empty state.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
8988
+ "jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/data-table\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-alert\n * @dependency zn-button\n * @dependency zn-empty-state\n * @dependency zn-chip\n * @dependency zn-hover-container\n * @dependency zn-dropdown\n * @dependency zn-menu\n * @dependency zn-menu-item\n * @dependency zn-button-group\n * @dependency zn-confirm\n * @dependency zn-skeleton\n * @dependency zn-data-table-search\n *\n * @slot - The default slot.\n * @slot search - Slot for search component.\n * @slot sort - Slot for sort component.\n * @slot filter - Slot for filter component.\n * @slot filter-top - Slot for top-level filter component.\n * @slot delete-action - Slot for delete action button.\n * @slot modify-action - Slot for modify action button.\n * @slot create-action - Slot for create action button.\n * @slot inputs - Slot for additional input controls.\n * @slot empty-state - Slot for custom empty state.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
8951
8989
  "documentation": "https://zinc.style/components/data-table",
8952
8990
  "status": "experimental",
8953
8991
  "since": "1.0",
8954
8992
  "dependencies": [
8993
+ "zn-alert",
8955
8994
  "zn-button",
8956
8995
  "zn-empty-state",
8957
8996
  "zn-chip",
@@ -9857,6 +9896,7 @@
9857
9896
  "type": {
9858
9897
  "text": "string | HTMLElement | undefined"
9859
9898
  },
9899
+ "description": "Overrides where the calendar popup is mounted. By default it renders at the document level\n(or inside the containing dialog/popover) so it can't be clipped by ancestor shadow roots\nor overflow containers — you rarely need to set this.",
9860
9900
  "attribute": "container"
9861
9901
  },
9862
9902
  {
@@ -9965,6 +10005,28 @@
9965
10005
  "kind": "method",
9966
10006
  "name": "init"
9967
10007
  },
10008
+ {
10009
+ "kind": "method",
10010
+ "name": "getCalendarContainer",
10011
+ "privacy": "private",
10012
+ "return": {
10013
+ "type": {
10014
+ "text": "HTMLElement | undefined"
10015
+ }
10016
+ },
10017
+ "description": "Resolves where the calendar should be mounted. By default AirDatepicker mounts it in a global\ncontainer on `document.body`, so ancestor shadow roots and overflow containers can't clip it.\nHowever, when the datepicker is inside a top-layer element (a modal `<dialog>` or a popover),\na document-level calendar would render behind it and be inert, so we mount inside that element."
10018
+ },
10019
+ {
10020
+ "kind": "method",
10021
+ "name": "findTopLayerAncestor",
10022
+ "privacy": "private",
10023
+ "return": {
10024
+ "type": {
10025
+ "text": "HTMLElement | null"
10026
+ }
10027
+ },
10028
+ "description": "Finds the closest `<dialog>` or popover ancestor, crossing shadow DOM boundaries."
10029
+ },
9968
10030
  {
9969
10031
  "kind": "method",
9970
10032
  "name": "handleInput",
@@ -10402,6 +10464,7 @@
10402
10464
  "type": {
10403
10465
  "text": "string | HTMLElement | undefined"
10404
10466
  },
10467
+ "description": "Overrides where the calendar popup is mounted. By default it renders at the document level\n(or inside the containing dialog/popover) so it can't be clipped by ancestor shadow roots\nor overflow containers — you rarely need to set this.",
10405
10468
  "fieldName": "container"
10406
10469
  }
10407
10470
  ],
@@ -40688,7 +40751,7 @@
40688
40751
  "package": {
40689
40752
  "name": "@kubex/zinc",
40690
40753
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
40691
- "version": "1.1.53",
40754
+ "version": "1.1.55",
40692
40755
  "author": "",
40693
40756
  "license": "MIT"
40694
40757
  }
@@ -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.",
@@ -36,6 +47,7 @@
36
47
  { "name": "cosmic" }
37
48
  ]
38
49
  },
50
+ { "name": "center", "values": [] },
39
51
  {
40
52
  "name": "size",
41
53
  "values": [
@@ -52,17 +64,6 @@
52
64
  }
53
65
  ]
54
66
  },
55
- {
56
- "name": "zn-action-bar",
57
- "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.",
58
- "attributes": [],
59
- "references": [
60
- {
61
- "name": "Documentation",
62
- "url": "https://zinc.style/components/action-bar"
63
- }
64
- ]
65
- },
66
67
  {
67
68
  "name": "zn-animated-button",
68
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",
@@ -1300,7 +1301,11 @@
1300
1301
  "description": "Time format for display and input selector. Uses AirDatepicker format tokens.\nDefault : hh:mm AA\n\nPossible symbols:\nh — hours in 12-hour mode\nhh — hours in 12-hour mode with leading zero\nH — hours in 24-hour mode\nHH — hours in 24-hour mode with leading zero\nm — minutes\nmm — minutes with leading zero\naa — day period lower case\nAA — day period upper case",
1301
1302
  "values": []
1302
1303
  },
1303
- { "name": "container", "values": [{ "name": "HTMLElement" }] }
1304
+ {
1305
+ "name": "container",
1306
+ "description": "Overrides where the calendar popup is mounted. By default it renders at the document level\n(or inside the containing dialog/popover) so it can't be clipped by ancestor shadow roots\nor overflow containers — you rarely need to set this.",
1307
+ "values": [{ "name": "HTMLElement" }]
1308
+ }
1304
1309
  ],
1305
1310
  "references": [
1306
1311
  {
@@ -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.53",
4
+ "version": "1.1.55",
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.",
@@ -43,6 +65,10 @@
43
65
  "default": "'info'"
44
66
  }
45
67
  },
68
+ {
69
+ "name": "center",
70
+ "value": { "type": "boolean", "default": "false" }
71
+ },
46
72
  {
47
73
  "name": "size",
48
74
  "value": {
@@ -68,6 +94,7 @@
68
94
  "name": "level",
69
95
  "type": "'primary' | 'error' | 'info' | 'success' | 'warning' | 'note' | 'cosmic'"
70
96
  },
97
+ { "name": "center", "type": "boolean" },
71
98
  { "name": "size", "type": "'small' | 'medium' | 'large'" }
72
99
  ],
73
100
  "events": [
@@ -78,28 +105,6 @@
78
105
  ]
79
106
  }
80
107
  },
81
- {
82
- "name": "zn-action-bar",
83
- "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.",
84
- "doc-url": "",
85
- "attributes": [],
86
- "slots": [
87
- { "name": "", "description": "The default slot." },
88
- { "name": "example", "description": "An example slot." }
89
- ],
90
- "events": [
91
- { "name": "zn-event-name", "description": "Emitted as an example." }
92
- ],
93
- "js": {
94
- "properties": [],
95
- "events": [
96
- {
97
- "name": "zn-event-name",
98
- "description": "Emitted as an example."
99
- }
100
- ]
101
- }
102
- },
103
108
  {
104
109
  "name": "zn-animated-button",
105
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",
@@ -726,7 +731,7 @@
726
731
  {
727
732
  "name": "reject-icon",
728
733
  "description": "Icon for the reject control.",
729
- "value": { "type": "string", "default": "'call_end'" }
734
+ "value": { "type": "string", "default": "'close'" }
730
735
  },
731
736
  {
732
737
  "name": "reject-label",
@@ -2843,6 +2848,7 @@
2843
2848
  },
2844
2849
  {
2845
2850
  "name": "container",
2851
+ "description": "Overrides where the calendar popup is mounted. By default it renders at the document level\n(or inside the containing dialog/popover) so it can't be clipped by ancestor shadow roots\nor overflow containers — you rarely need to set this.",
2846
2852
  "value": { "type": "string | HTMLElement | undefined" }
2847
2853
  }
2848
2854
  ],
@@ -3007,6 +3013,7 @@
3007
3013
  },
3008
3014
  {
3009
3015
  "name": "container",
3016
+ "description": "Overrides where the calendar popup is mounted. By default it renders at the document level\n(or inside the containing dialog/popover) so it can't be clipped by ancestor shadow roots\nor overflow containers — you rarely need to set this.",
3010
3017
  "type": "string | HTMLElement | undefined"
3011
3018
  },
3012
3019
  { "name": "timestamp", "type": "number" },
package/dist/zn.d.ts CHANGED
@@ -1446,6 +1446,7 @@ declare module "components/alert/alert.component" {
1446
1446
  collapse: boolean;
1447
1447
  appearance: 'transparent' | 'solid';
1448
1448
  level: 'primary' | 'error' | 'info' | 'success' | 'warning' | 'note' | 'cosmic';
1449
+ center: boolean;
1449
1450
  size: 'small' | 'medium' | 'large';
1450
1451
  render(): import("lit-html").TemplateResult<1>;
1451
1452
  hideAlert(): void;
@@ -2929,6 +2930,11 @@ declare module "components/datepicker/datepicker.component" {
2929
2930
  * AA — day period upper case
2930
2931
  */
2931
2932
  timeFormat?: string;
2933
+ /**
2934
+ * Overrides where the calendar popup is mounted. By default it renders at the document level
2935
+ * (or inside the containing dialog/popover) so it can't be clipped by ancestor shadow roots
2936
+ * or overflow containers — you rarely need to set this.
2937
+ */
2932
2938
  container?: string | HTMLElement;
2933
2939
  private _instance;
2934
2940
  get timestamp(): number;
@@ -2954,6 +2960,15 @@ declare module "components/datepicker/datepicker.component" {
2954
2960
  /** Sets a custom validation message. Pass an empty string to restore validity. */
2955
2961
  setCustomValidity(message: string): void;
2956
2962
  init(): void;
2963
+ /**
2964
+ * Resolves where the calendar should be mounted. By default AirDatepicker mounts it in a global
2965
+ * container on `document.body`, so ancestor shadow roots and overflow containers can't clip it.
2966
+ * However, when the datepicker is inside a top-layer element (a modal `<dialog>` or a popover),
2967
+ * a document-level calendar would render behind it and be inert, so we mount inside that element.
2968
+ */
2969
+ private getCalendarContainer;
2970
+ /** Finds the closest `<dialog>` or popover ancestor, crossing shadow DOM boundaries. */
2971
+ private findTopLayerAncestor;
2957
2972
  private handleInput;
2958
2973
  private handleChange;
2959
2974
  private handleInvalid;
@@ -3380,6 +3395,7 @@ declare module "components/data-table/data-table.component" {
3380
3395
  import { type ZnFilterChangeEvent } from "events/zn-filter-change";
3381
3396
  import { type ZnSearchChangeEvent } from "events/zn-search-change";
3382
3397
  import ZincElement from "internal/zinc-element";
3398
+ import ZnAlert from "components/alert/index";
3383
3399
  import ZnButton from "components/button/index";
3384
3400
  import ZnButtonGroup from "components/button-group/index";
3385
3401
  import ZnChip from "components/chip/index";
@@ -3417,11 +3433,17 @@ declare module "components/data-table/data-table.component" {
3417
3433
  actions?: ActionConfig[];
3418
3434
  cells: Cell[];
3419
3435
  }
3436
+ interface ResponseError {
3437
+ text: string;
3438
+ icon?: string;
3439
+ level?: 'primary' | 'error' | 'info' | 'success' | 'warning' | 'note';
3440
+ }
3420
3441
  interface Response {
3421
3442
  rows: Row[];
3422
3443
  perPage: number;
3423
3444
  total: number;
3424
3445
  page: number;
3446
+ error?: ResponseError;
3425
3447
  }
3426
3448
  export enum ActionSlots {
3427
3449
  delete = "delete-action",
@@ -3467,6 +3489,7 @@ declare module "components/data-table/data-table.component" {
3467
3489
  * @status experimental
3468
3490
  * @since 1.0
3469
3491
  *
3492
+ * @dependency zn-alert
3470
3493
  * @dependency zn-button
3471
3494
  * @dependency zn-empty-state
3472
3495
  * @dependency zn-chip
@@ -3497,6 +3520,7 @@ declare module "components/data-table/data-table.component" {
3497
3520
  export default class ZnDataTable extends ZincElement {
3498
3521
  static styles: CSSResultGroup;
3499
3522
  static dependencies: {
3523
+ 'zn-alert': typeof ZnAlert;
3500
3524
  'zn-button': typeof ZnButton;
3501
3525
  'zn-empty-state': typeof ZnEmptyState;
3502
3526
  'zn-chip': typeof ZnChip;
@@ -3565,8 +3589,9 @@ declare module "components/data-table/data-table.component" {
3565
3589
  searchChangeListener: (e: ZnSearchChangeEvent) => void;
3566
3590
  emptyState(): TemplateResult<1>;
3567
3591
  renderTable(data: Response): TemplateResult<1>;
3592
+ private renderErrorAlert;
3568
3593
  humanize(str: string): string;
3569
- renderTableData(data: any): TemplateResult<1>;
3594
+ renderTableData(data: any, error?: ResponseError): TemplateResult<1>;
3570
3595
  getTableHeader(): TemplateResult<1>;
3571
3596
  getTableFooter(): TemplateResult<1>;
3572
3597
  getRowsSelected(): TemplateResult<1> | null;