@kubex/zinc 1.1.21 → 1.1.22
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 +83 -75
- package/dist/vscode.html-custom-data.json +12 -12
- package/dist/web-types.json +32 -24
- package/dist/zn.d.ts +2 -0
- package/dist/zn.min.js +2 -2
- package/docs/pages/components/channel-tile.md +30 -7
- package/package.json +1 -1
- package/src/components/channel-tile/channel-tile.component.ts +4 -2
|
@@ -47,79 +47,6 @@
|
|
|
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
|
-
},
|
|
123
50
|
{
|
|
124
51
|
"kind": "javascript-module",
|
|
125
52
|
"path": "components/alert/alert.js",
|
|
@@ -296,6 +223,79 @@
|
|
|
296
223
|
}
|
|
297
224
|
]
|
|
298
225
|
},
|
|
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
299
|
{
|
|
300
300
|
"kind": "javascript-module",
|
|
301
301
|
"path": "components/animated-button/animated-button.js",
|
|
@@ -2584,6 +2584,14 @@
|
|
|
2584
2584
|
}
|
|
2585
2585
|
],
|
|
2586
2586
|
"slots": [
|
|
2587
|
+
{
|
|
2588
|
+
"description": "Replaces the primary line. Falls back to the `title` attribute (or \"Available\" when unset in the available state).",
|
|
2589
|
+
"name": "title"
|
|
2590
|
+
},
|
|
2591
|
+
{
|
|
2592
|
+
"description": "Replaces the secondary line. Falls back to the `subtitle` attribute.",
|
|
2593
|
+
"name": "subtitle"
|
|
2594
|
+
},
|
|
2587
2595
|
{
|
|
2588
2596
|
"description": "Replaces the leading icon in the active state.",
|
|
2589
2597
|
"name": "leading"
|
|
@@ -3077,7 +3085,7 @@
|
|
|
3077
3085
|
"tagNameWithoutPrefix": "channel-tile",
|
|
3078
3086
|
"tagName": "zn-channel-tile",
|
|
3079
3087
|
"customElement": true,
|
|
3080
|
-
"jsDoc": "/**\n * @summary A channel/queue slot tile with two faces: an active (occupied) state\n * showing an in-progress item, and an available (empty) state advertising\n * capacity — optionally reserving an incoming item with an auto-accept countdown.\n * @documentation https://zinc.style/components/channel-tile\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-button\n * @dependency zn-icon\n *\n * @event zn-accept - Emitted when an available tile is accepted (click or auto-accept).\n * Cancelable — call `preventDefault()` to suppress the built-in `accept-uri` fetch.\n * @event zn-reject - Emitted when the reject control is pressed.\n *\n * @slot leading - Replaces the leading icon in the active state.\n * @slot action - Action content for the available state (e.g. a form). Falls back to a default accept button.\n * @slot footer - Trailing content (e.g. status badges) in the active state.\n *\n * @csspart base - The component's base wrapper.\n * @csspart progress - The progress indicator (incoming countdown overlay or active progress bar).\n *\n * @cssproperty --channel-tile-color - Resolved accent color (set from the `color` property).\n */",
|
|
3088
|
+
"jsDoc": "/**\n * @summary A channel/queue slot tile with two faces: an active (occupied) state\n * showing an in-progress item, and an available (empty) state advertising\n * capacity — optionally reserving an incoming item with an auto-accept countdown.\n * @documentation https://zinc.style/components/channel-tile\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-button\n * @dependency zn-icon\n *\n * @event zn-accept - Emitted when an available tile is accepted (click or auto-accept).\n * Cancelable — call `preventDefault()` to suppress the built-in `accept-uri` fetch.\n * @event zn-reject - Emitted when the reject control is pressed.\n *\n * @slot title - Replaces the primary line. Falls back to the `title` attribute (or \"Available\" when unset in the available state).\n * @slot subtitle - Replaces the secondary line. Falls back to the `subtitle` attribute.\n * @slot leading - Replaces the leading icon in the active state.\n * @slot action - Action content for the available state (e.g. a form). Falls back to a default accept button.\n * @slot footer - Trailing content (e.g. status badges) in the active state.\n *\n * @csspart base - The component's base wrapper.\n * @csspart progress - The progress indicator (incoming countdown overlay or active progress bar).\n *\n * @cssproperty --channel-tile-color - Resolved accent color (set from the `color` property).\n */",
|
|
3081
3089
|
"documentation": "https://zinc.style/components/channel-tile",
|
|
3082
3090
|
"status": "experimental",
|
|
3083
3091
|
"since": "1.0",
|
|
@@ -37169,7 +37177,7 @@
|
|
|
37169
37177
|
"package": {
|
|
37170
37178
|
"name": "@kubex/zinc",
|
|
37171
37179
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
37172
|
-
"version": "1.1.
|
|
37180
|
+
"version": "1.1.22",
|
|
37173
37181
|
"author": "",
|
|
37174
37182
|
"license": "MIT"
|
|
37175
37183
|
}
|
|
@@ -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.",
|
|
@@ -63,6 +52,17 @@
|
|
|
63
52
|
}
|
|
64
53
|
]
|
|
65
54
|
},
|
|
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
66
|
{
|
|
67
67
|
"name": "zn-animated-button",
|
|
68
68
|
"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",
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
329
|
"name": "zn-channel-tile",
|
|
330
|
-
"description": "A channel/queue slot tile with two faces: an active (occupied) state\nshowing an in-progress item, and an available (empty) state advertising\ncapacity — optionally reserving an incoming item with an auto-accept countdown.\n---\n\n\n### **Events:**\n - **zn-accept** - Emitted when an available tile is accepted (click or auto-accept). Cancelable — call `preventDefault()` to suppress the built-in `accept-uri` fetch.\n- **zn-reject** - Emitted when the reject control is pressed.\n\n### **Slots:**\n - **leading** - Replaces the leading icon in the active state.\n- **action** - Action content for the available state (e.g. a form). Falls back to a default accept button.\n- **footer** - Trailing content (e.g. status badges) in the active state.\n\n### **CSS Properties:**\n - **--channel-tile-color** - Resolved accent color (set from the `color` property). _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **progress** - The progress indicator (incoming countdown overlay or active progress bar).",
|
|
330
|
+
"description": "A channel/queue slot tile with two faces: an active (occupied) state\nshowing an in-progress item, and an available (empty) state advertising\ncapacity — optionally reserving an incoming item with an auto-accept countdown.\n---\n\n\n### **Events:**\n - **zn-accept** - Emitted when an available tile is accepted (click or auto-accept). Cancelable — call `preventDefault()` to suppress the built-in `accept-uri` fetch.\n- **zn-reject** - Emitted when the reject control is pressed.\n\n### **Slots:**\n - **title** - Replaces the primary line. Falls back to the `title` attribute (or \"Available\" when unset in the available state).\n- **subtitle** - Replaces the secondary line. Falls back to the `subtitle` attribute.\n- **leading** - Replaces the leading icon in the active state.\n- **action** - Action content for the available state (e.g. a form). Falls back to a default accept button.\n- **footer** - Trailing content (e.g. status badges) in the active state.\n\n### **CSS Properties:**\n - **--channel-tile-color** - Resolved accent color (set from the `color` property). _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **progress** - The progress indicator (incoming countdown overlay or active progress bar).",
|
|
331
331
|
"attributes": [
|
|
332
332
|
{
|
|
333
333
|
"name": "available",
|
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.22",
|
|
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.",
|
|
@@ -100,6 +78,28 @@
|
|
|
100
78
|
]
|
|
101
79
|
}
|
|
102
80
|
},
|
|
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
103
|
{
|
|
104
104
|
"name": "zn-animated-button",
|
|
105
105
|
"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",
|
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
},
|
|
636
636
|
{
|
|
637
637
|
"name": "zn-channel-tile",
|
|
638
|
-
"description": "A channel/queue slot tile with two faces: an active (occupied) state\nshowing an in-progress item, and an available (empty) state advertising\ncapacity — optionally reserving an incoming item with an auto-accept countdown.\n---\n\n\n### **Events:**\n - **zn-accept** - Emitted when an available tile is accepted (click or auto-accept). Cancelable — call `preventDefault()` to suppress the built-in `accept-uri` fetch.\n- **zn-reject** - Emitted when the reject control is pressed.\n\n### **Slots:**\n - **leading** - Replaces the leading icon in the active state.\n- **action** - Action content for the available state (e.g. a form). Falls back to a default accept button.\n- **footer** - Trailing content (e.g. status badges) in the active state.\n\n### **CSS Properties:**\n - **--channel-tile-color** - Resolved accent color (set from the `color` property). _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **progress** - The progress indicator (incoming countdown overlay or active progress bar).",
|
|
638
|
+
"description": "A channel/queue slot tile with two faces: an active (occupied) state\nshowing an in-progress item, and an available (empty) state advertising\ncapacity — optionally reserving an incoming item with an auto-accept countdown.\n---\n\n\n### **Events:**\n - **zn-accept** - Emitted when an available tile is accepted (click or auto-accept). Cancelable — call `preventDefault()` to suppress the built-in `accept-uri` fetch.\n- **zn-reject** - Emitted when the reject control is pressed.\n\n### **Slots:**\n - **title** - Replaces the primary line. Falls back to the `title` attribute (or \"Available\" when unset in the available state).\n- **subtitle** - Replaces the secondary line. Falls back to the `subtitle` attribute.\n- **leading** - Replaces the leading icon in the active state.\n- **action** - Action content for the available state (e.g. a form). Falls back to a default accept button.\n- **footer** - Trailing content (e.g. status badges) in the active state.\n\n### **CSS Properties:**\n - **--channel-tile-color** - Resolved accent color (set from the `color` property). _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **progress** - The progress indicator (incoming countdown overlay or active progress bar).",
|
|
639
639
|
"doc-url": "",
|
|
640
640
|
"attributes": [
|
|
641
641
|
{
|
|
@@ -735,6 +735,14 @@
|
|
|
735
735
|
}
|
|
736
736
|
],
|
|
737
737
|
"slots": [
|
|
738
|
+
{
|
|
739
|
+
"name": "title",
|
|
740
|
+
"description": "Replaces the primary line. Falls back to the `title` attribute (or \"Available\" when unset in the available state)."
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"name": "subtitle",
|
|
744
|
+
"description": "Replaces the secondary line. Falls back to the `subtitle` attribute."
|
|
745
|
+
},
|
|
738
746
|
{
|
|
739
747
|
"name": "leading",
|
|
740
748
|
"description": "Replaces the leading icon in the active state."
|
package/dist/zn.d.ts
CHANGED
|
@@ -3691,6 +3691,8 @@ declare module "components/channel-tile/channel-tile.component" {
|
|
|
3691
3691
|
* Cancelable — call `preventDefault()` to suppress the built-in `accept-uri` fetch.
|
|
3692
3692
|
* @event zn-reject - Emitted when the reject control is pressed.
|
|
3693
3693
|
*
|
|
3694
|
+
* @slot title - Replaces the primary line. Falls back to the `title` attribute (or "Available" when unset in the available state).
|
|
3695
|
+
* @slot subtitle - Replaces the secondary line. Falls back to the `subtitle` attribute.
|
|
3694
3696
|
* @slot leading - Replaces the leading icon in the active state.
|
|
3695
3697
|
* @slot action - Action content for the available state (e.g. a form). Falls back to a default accept button.
|
|
3696
3698
|
* @slot footer - Trailing content (e.g. status badges) in the active state.
|
package/dist/zn.min.js
CHANGED
|
@@ -1136,8 +1136,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1136
1136
|
<div class="channel-tile__body">
|
|
1137
1137
|
${this._renderLeading()}
|
|
1138
1138
|
<div class="channel-tile__content">
|
|
1139
|
-
<h3 class="channel-tile__title">${t}</h3>
|
|
1140
|
-
<p class="channel-tile__subtitle">${this.subtitle}</p>
|
|
1139
|
+
<h3 class="channel-tile__title"><slot name="title">${t}</slot></h3>
|
|
1140
|
+
<p class="channel-tile__subtitle"><slot name="subtitle">${this.subtitle}</slot></p>
|
|
1141
1141
|
</div>
|
|
1142
1142
|
<slot name="footer" class="channel-tile__footer"></slot>
|
|
1143
1143
|
</div>
|
|
@@ -7,8 +7,10 @@ layout: component
|
|
|
7
7
|
|
|
8
8
|
The channel tile represents a single slot in a queue or channel rail. It has two faces:
|
|
9
9
|
|
|
10
|
-
- **Active** — the slot is occupied by an in-progress item (header, leading icon, title/subtitle, and a progress/SLA
|
|
11
|
-
|
|
10
|
+
- **Active** — the slot is occupied by an in-progress item (header, leading icon, title/subtitle, and a progress/SLA
|
|
11
|
+
bar).
|
|
12
|
+
- **Available** — the slot is empty and advertising capacity. When `incoming` is set it reserves an arriving item with a
|
|
13
|
+
countdown that can auto-accept.
|
|
12
14
|
|
|
13
15
|
Tiles are designed to sit side by side in a horizontal rail; each is a fixed-width block with a right divider.
|
|
14
16
|
|
|
@@ -31,7 +33,8 @@ Tiles are designed to sit side by side in a horizontal rail; each is a fixed-wid
|
|
|
31
33
|
|
|
32
34
|
### Active Tile
|
|
33
35
|
|
|
34
|
-
The default (occupied) face. Set `header` for the top bar, `icon` + `color` for the leading badge, and `title
|
|
36
|
+
The default (occupied) face. Set `header` for the top bar, `icon` + `color` for the leading badge, and `title`/
|
|
37
|
+
`subtitle` for the item. The `progress` value (0–100) fills the SLA bar along the bottom edge.
|
|
35
38
|
|
|
36
39
|
```html:preview
|
|
37
40
|
<div style="display: flex;">
|
|
@@ -49,7 +52,8 @@ The default (occupied) face. Set `header` for the top bar, `icon` + `color` for
|
|
|
49
52
|
|
|
50
53
|
### Available Tile
|
|
51
54
|
|
|
52
|
-
Set `available` to render the empty face. When `title` is omitted it defaults to "Available". The leading slot shows a
|
|
55
|
+
Set `available` to render the empty face. When `title` is omitted it defaults to "Available". The leading slot shows a
|
|
56
|
+
built-in accept button.
|
|
53
57
|
|
|
54
58
|
```html:preview
|
|
55
59
|
<div style="display: flex;">
|
|
@@ -59,7 +63,8 @@ Set `available` to render the empty face. When `title` is omitted it defaults to
|
|
|
59
63
|
|
|
60
64
|
### Accepting an Item
|
|
61
65
|
|
|
62
|
-
Provide `accept-uri` and the built-in accept button becomes a link to it. When a tile is accepted, a cancelable
|
|
66
|
+
Provide `accept-uri` and the built-in accept button becomes a link to it. When a tile is accepted, a cancelable
|
|
67
|
+
`zn-accept` event fires before the fetch — call `preventDefault()` on it to take over the accept yourself.
|
|
63
68
|
|
|
64
69
|
```html:preview
|
|
65
70
|
<div style="display: flex;">
|
|
@@ -74,7 +79,9 @@ Provide `accept-uri` and the built-in accept button becomes a link to it. When a
|
|
|
74
79
|
|
|
75
80
|
### Incoming with Auto-Accept
|
|
76
81
|
|
|
77
|
-
An `available` tile with `incoming` reserves an arriving item. Provide `reserved-until` (an epoch in seconds or
|
|
82
|
+
An `available` tile with `incoming` reserves an arriving item. Provide `reserved-until` (an epoch in seconds or
|
|
83
|
+
milliseconds marking the end of the window) and `auto-accept-delay` (the window length in milliseconds) to drive the
|
|
84
|
+
countdown overlay. When the window elapses the tile auto-accepts via `accept-uri`.
|
|
78
85
|
|
|
79
86
|
```html:preview
|
|
80
87
|
<div style="display: flex;">
|
|
@@ -118,7 +125,8 @@ Add `rejectable` to an incoming tile to offer a reject control. Pressing it emit
|
|
|
118
125
|
|
|
119
126
|
### Colors
|
|
120
127
|
|
|
121
|
-
The `color` attribute sets the accent (the leading icon badge and the `--channel-tile-color` custom property). Available
|
|
128
|
+
The `color` attribute sets the accent (the leading icon badge and the `--channel-tile-color` custom property). Available
|
|
129
|
+
colors are: `default`, `primary`, `info`, `success`, `warning`, `error`, and `disabled`.
|
|
122
130
|
|
|
123
131
|
```html:preview
|
|
124
132
|
<div style="display: flex; flex-wrap: wrap;">
|
|
@@ -131,6 +139,21 @@ The `color` attribute sets the accent (the leading icon badge and the `--channel
|
|
|
131
139
|
</div>
|
|
132
140
|
```
|
|
133
141
|
|
|
142
|
+
### Custom Title and Subtitle
|
|
143
|
+
|
|
144
|
+
The `title` and `subtitle` attributes cover plain text. For richer content, use the `title` and `subtitle` slots — they
|
|
145
|
+
override the matching attribute (which is used as the fallback when the slot is empty).
|
|
146
|
+
|
|
147
|
+
```html:preview
|
|
148
|
+
<div style="display: flex;">
|
|
149
|
+
<zn-channel-tile header="Acme Support" icon="chat" color="info" progress="60"
|
|
150
|
+
progress-color="rgb(var(--zn-color-info))">
|
|
151
|
+
<span slot="title">Jane <strong>Cooper</strong></span>
|
|
152
|
+
<span slot="subtitle">Billing question · <a href="#">#4821</a></span>
|
|
153
|
+
</zn-channel-tile>
|
|
154
|
+
</div>
|
|
155
|
+
```
|
|
156
|
+
|
|
134
157
|
### Custom Leading Content
|
|
135
158
|
|
|
136
159
|
Use the `leading` slot to replace the leading icon in the active state.
|
package/package.json
CHANGED
|
@@ -23,6 +23,8 @@ export type ChannelTileColor =
|
|
|
23
23
|
* Cancelable — call `preventDefault()` to suppress the built-in `accept-uri` fetch.
|
|
24
24
|
* @event zn-reject - Emitted when the reject control is pressed.
|
|
25
25
|
*
|
|
26
|
+
* @slot title - Replaces the primary line. Falls back to the `title` attribute (or "Available" when unset in the available state).
|
|
27
|
+
* @slot subtitle - Replaces the secondary line. Falls back to the `subtitle` attribute.
|
|
26
28
|
* @slot leading - Replaces the leading icon in the active state.
|
|
27
29
|
* @slot action - Action content for the available state (e.g. a form). Falls back to a default accept button.
|
|
28
30
|
* @slot footer - Trailing content (e.g. status badges) in the active state.
|
|
@@ -213,8 +215,8 @@ export default class ZnChannelTile extends ZincElement {
|
|
|
213
215
|
<div class="channel-tile__body">
|
|
214
216
|
${this._renderLeading()}
|
|
215
217
|
<div class="channel-tile__content">
|
|
216
|
-
<h3 class="channel-tile__title">${title}</h3>
|
|
217
|
-
<p class="channel-tile__subtitle">${this.subtitle}</p>
|
|
218
|
+
<h3 class="channel-tile__title"><slot name="title">${title}</slot></h3>
|
|
219
|
+
<p class="channel-tile__subtitle"><slot name="subtitle">${this.subtitle}</slot></p>
|
|
218
220
|
</div>
|
|
219
221
|
<slot name="footer" class="channel-tile__footer"></slot>
|
|
220
222
|
</div>
|