@kubex/zinc 1.1.36 → 1.1.38

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",
@@ -223,79 +296,6 @@
223
296
  }
224
297
  ]
225
298
  },
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",
@@ -39898,7 +39898,7 @@
39898
39898
  "package": {
39899
39899
  "name": "@kubex/zinc",
39900
39900
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
39901
- "version": "1.1.36",
39901
+ "version": "1.1.38",
39902
39902
  "author": "",
39903
39903
  "license": "MIT"
39904
39904
  }
@@ -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.",
@@ -52,17 +63,6 @@
52
63
  }
53
64
  ]
54
65
  },
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",
@@ -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.36",
4
+ "version": "1.1.38",
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.",
@@ -78,28 +100,6 @@
78
100
  ]
79
101
  }
80
102
  },
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",
package/dist/zn.min.js CHANGED
@@ -194,7 +194,7 @@ import{a as _n,b as D1,c as nr,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var J
194
194
  class="${N({"button-group":!0,"button-group--grow":this.grow,"button-group--start":this.start,"button-group--gap":this.gap})}"
195
195
  role="group">
196
196
  <slot @slotchange=${this.handleSlotChange}></slot>
197
- </div>`}};Xr.styles=T(sb),c([p({})],Xr.prototype,"direction",2),c([p({type:Boolean})],Xr.prototype,"grow",2),c([p({type:Boolean})],Xr.prototype,"wrap",2),c([p({type:Boolean})],Xr.prototype,"start",2),c([p({type:Boolean})],Xr.prototype,"gap",2),c([V("slot")],Xr.prototype,"defaultSlot",2);var Zi=Xr;Xr.define("zn-button-group");function vS(i){return new DOMParser().parseFromString(i,"text/html").body}function xS(i){i.querySelectorAll("script").forEach(o=>{o.remove()})}function yS(i,o){return["src","href","xlink:href"].includes(i)&&(o.includes("javascript:")||o.includes("data:text/html"))?!0:i.startsWith("on")}function zS(i){let o=i.attributes;for(let t=o.length-1;t>=0;t--)yS(o[t].name,o[t].value)&&i.removeAttributeNode(o[t])}function lb(i){let o=i.children;for(let t=o.length-1;t>=0;t--){let r=o[t];zS(r),lb(r)}}function cb(i){let o=vS(i);return xS(o),lb(o),o.innerHTML}var db=A`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));--message-bubble-agent:rgba(4,114,225,0.1);--message-bubble-customer:rgba(48,170,61,0.1);--message-bubble-internal:rgba(255,203,0,0.1)}.message{display:flex;gap:var(--zn-spacing-small);align-items:flex-start}.message__avatar{flex:0 0 36px;display:flex;justify-content:center}.message__body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:var(--zn-spacing-x-small)}.message__header{display:flex;align-items:center;gap:var(--zn-spacing-x-small);min-height:36px}.message__sender{font-family:var(--zn-font-sans);font-size:var(--zn-text-h1-font-size);font-weight:var(--zn-text-h1-font-weight);line-height:var(--zn-text-h1-line-height);color:var(--zn-text-h1-color);text-transform:var(--zn-text-h1-transform)}.message__time{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform)}.message__bubble{box-sizing:border-box;display:flex;align-items:flex-start;gap:var(--zn-spacing-small);padding:11px var(--zn-spacing-small);border-radius:var(--zn-border-radius);background:var(--message-bubble-agent);min-height:46px}.message__bubble--sending{border:1px dashed rgb(var(--zn-border-color));opacity:0.7;flex-direction:column}.message__main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:var(--zn-spacing-small)}.message__attachments{display:none;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--zn-spacing-small)}.message__attachments--visible{display:flex}.message__attachments ::slotted(zn-chat-message-attachment){min-width:0}.message__content{font-family:var(--zn-font-sans);font-size:var(--zn-text-chat-font-size);font-weight:var(--zn-text-chat-font-weight);line-height:var(--zn-text-chat-line-height);color:var(--zn-text-chat-color);text-transform:var(--zn-text-chat-transform);flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.message__content ::slotted(*){font-family:var(--zn-font-sans);font-size:var(--zn-text-chat-font-size);font-weight:var(--zn-text-chat-font-weight);line-height:var(--zn-text-chat-line-height);color:var(--zn-text-chat-color);text-transform:var(--zn-text-chat-transform)}.message__content p{margin:0;padding:0}.message__content pre{background-color:#23241f;border-radius:3px;margin-block:5px;padding:5px 10px;color:#f8f8f2;overflow:auto}.message__content blockquote{border-left:4px solid rgb(var(--zn-border-color));margin:5px 0;padding-left:16px}.message__content ol,.message__content ul{padding:0;margin:0}.message__content li{list-style-type:none;padding-left:1em;position:relative}.message__content ol{counter-reset:list-0 0}.message__content ol>li{counter-increment:list-0 1}.message__content ul>li::before{content:"•"}.message__content ol>li::before{content:counter(list-0) ". "}.message__content ol li::before,.message__content ul li::before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}.message__content img{max-width:100%}.message__content a{color:rgb(var(--zn-color-info))}.message__meta{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform)}.message__actions{flex-shrink:0;display:flex;align-items:center}:host([agent-initiated]) .message__bubble{background:var(--message-background,var(--message-bubble-agent))}:host([customer-initiated]) .message__bubble{background:var(--message-background,var(--message-bubble-customer))}:host([action-type=internal]) .message__bubble{background:var(--message-background,var(--message-bubble-internal))}:host([action-type=error]) .message__bubble{background:var(--message-background,rgba(var(--zn-color-error),0.12))}:host(.message-continued) .message{margin-top:3px}:host(.message-continued) .message__avatar{visibility:hidden}:host(.message-continued) .message__header{display:none}.message--system{margin-top:var(--zn-spacing-x-small)}.system-card{box-sizing:border-box;display:flex;align-items:center;gap:var(--zn-spacing-x-small);padding:6px 12px;border-radius:var(--zn-border-radius);border:1px solid rgb(var(--zn-border-color));font-size:12px;color:rgb(var(--zn-text-color));min-height:46px}.system-card__text{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform)}.system-card__time{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);white-space:nowrap}`;var Ue=class Ue extends C{constructor(){super(...arguments);this.sender="";this.message="";this.time="";this.avatar="";this.actionType="";this.customerInitiated=!1;this.agentInitiated=!1;this.hideSender=!1;this.hasAttachments=!1}connectedCallback(){let t=!this.actionType||this.actionType==="internal",r=t&&this.agentInitiated,n=t&&this.customerInitiated,a=this.previousElementSibling,s=parseInt(this.time)-parseInt(a?.time),l=a?.getAttribute("action-type")??"",d=Ue.SYSTEM_ACTION_TYPES.includes(l),h=l==="internal",m=this.actionType==="internal";a&&!d&&s<60&&h===m&&(a?.hasAttribute("agent-initiated")&&r||a?.hasAttribute("customer-initiated")&&n)&&this.classList.add("message-continued"),super.connectedCallback()}render(){if(!Ue.DISPLAYED_ACTION_TYPES.includes(this.actionType))return W;if(this.isSystemMessage())return this.renderSystemCard();let t=this.actionType==="message-sending";return u`
197
+ </div>`}};Xr.styles=T(sb),c([p({})],Xr.prototype,"direction",2),c([p({type:Boolean})],Xr.prototype,"grow",2),c([p({type:Boolean})],Xr.prototype,"wrap",2),c([p({type:Boolean})],Xr.prototype,"start",2),c([p({type:Boolean})],Xr.prototype,"gap",2),c([V("slot")],Xr.prototype,"defaultSlot",2);var Zi=Xr;Xr.define("zn-button-group");function vS(i){return new DOMParser().parseFromString(i,"text/html").body}function xS(i){i.querySelectorAll("script").forEach(o=>{o.remove()})}function yS(i,o){return["src","href","xlink:href"].includes(i)&&(o.includes("javascript:")||o.includes("data:text/html"))?!0:i.startsWith("on")}function zS(i){let o=i.attributes;for(let t=o.length-1;t>=0;t--)yS(o[t].name,o[t].value)&&i.removeAttributeNode(o[t])}function lb(i){let o=i.children;for(let t=o.length-1;t>=0;t--){let r=o[t];zS(r),lb(r)}}function cb(i){let o=vS(i);return xS(o),lb(o),o.innerHTML}var db=A`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));--message-bubble-agent:rgba(4,114,225,0.1);--message-bubble-customer:rgba(48,170,61,0.1);--message-bubble-internal:rgba(255,203,0,0.1)}.message{display:flex;gap:var(--zn-spacing-small);align-items:flex-start}.message__avatar{flex:0 0 36px;display:flex;justify-content:center}.message__body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:var(--zn-spacing-x-small)}.message__header{display:flex;align-items:center;gap:var(--zn-spacing-x-small);min-height:36px}.message__sender{font-family:var(--zn-font-sans);font-size:var(--zn-text-h1-font-size);font-weight:var(--zn-text-h1-font-weight);line-height:var(--zn-text-h1-line-height);color:var(--zn-text-h1-color);text-transform:var(--zn-text-h1-transform)}.message__time{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform)}.message__bubble{box-sizing:border-box;display:flex;align-items:flex-start;gap:var(--zn-spacing-small);padding:11px var(--zn-spacing-small);border-radius:var(--zn-border-radius);background:var(--message-bubble-agent);min-height:46px}.message__bubble--sending{border:1px dashed rgb(var(--zn-border-color));opacity:0.7;flex-direction:column}.message__main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:var(--zn-spacing-small)}.message__attachments{display:none;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--zn-spacing-small)}.message__attachments--visible{display:flex}.message__attachments ::slotted(zn-chat-message-attachment){min-width:0}.message__content{font-family:var(--zn-font-sans);font-size:var(--zn-text-chat-font-size);font-weight:var(--zn-text-chat-font-weight);line-height:var(--zn-text-chat-line-height);color:var(--zn-text-chat-color);text-transform:var(--zn-text-chat-transform);flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.message__content ::slotted(*){font-family:var(--zn-font-sans);font-size:var(--zn-text-chat-font-size);font-weight:var(--zn-text-chat-font-weight);line-height:var(--zn-text-chat-line-height);color:var(--zn-text-chat-color);text-transform:var(--zn-text-chat-transform)}.message__content p{margin:0;padding:0}.message__content pre{background-color:#23241f;border-radius:3px;margin-block:5px;padding:5px 10px;color:#f8f8f2;overflow:auto}.message__content blockquote{border-left:4px solid rgb(var(--zn-border-color));margin:5px 0;padding-left:16px}.message__content ol,.message__content ul{padding:0;margin:0}.message__content li{list-style-type:none;padding-left:1em;position:relative}.message__content ol{counter-reset:list-0 0}.message__content ol>li{counter-increment:list-0 1}.message__content ul>li::before{content:"•"}.message__content ol>li::before{content:counter(list-0) ". "}.message__content ol li::before,.message__content ul li::before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}.message__content img{max-width:100%}.message__content a{color:rgb(var(--zn-color-info))}.message__meta{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform)}.message__actions{flex-shrink:0;display:flex;align-items:center;height:24px}:host([agent-initiated]) .message__bubble{background:var(--message-background,var(--message-bubble-agent))}:host([customer-initiated]) .message__bubble{background:var(--message-background,var(--message-bubble-customer))}:host([action-type=internal]) .message__bubble{background:var(--message-background,var(--message-bubble-internal))}:host([action-type=error]) .message__bubble{background:var(--message-background,rgba(var(--zn-color-error),0.12))}:host(.message-continued) .message{margin-top:3px}:host(.message-continued) .message__avatar{visibility:hidden}:host(.message-continued) .message__header{display:none}.message--system{margin-top:var(--zn-spacing-x-small)}.system-card{box-sizing:border-box;display:flex;align-items:center;gap:var(--zn-spacing-x-small);padding:6px 12px;border-radius:var(--zn-border-radius);border:1px solid rgb(var(--zn-border-color));font-size:12px;color:rgb(var(--zn-text-color));min-height:46px}.system-card__text{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform)}.system-card__time{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);white-space:nowrap}`;var Ue=class Ue extends C{constructor(){super(...arguments);this.sender="";this.message="";this.time="";this.avatar="";this.actionType="";this.customerInitiated=!1;this.agentInitiated=!1;this.hideSender=!1;this.hasAttachments=!1}connectedCallback(){let t=!this.actionType||this.actionType==="internal",r=t&&this.agentInitiated,n=t&&this.customerInitiated,a=this.previousElementSibling,s=parseInt(this.time)-parseInt(a?.time),l=a?.getAttribute("action-type")??"",d=Ue.SYSTEM_ACTION_TYPES.includes(l),h=l==="internal",m=this.actionType==="internal";a&&!d&&s<60&&h===m&&(a?.hasAttribute("agent-initiated")&&r||a?.hasAttribute("customer-initiated")&&n)&&this.classList.add("message-continued"),super.connectedCallback()}render(){if(!Ue.DISPLAYED_ACTION_TYPES.includes(this.actionType))return W;if(this.isSystemMessage())return this.renderSystemCard();let t=this.actionType==="message-sending";return u`
198
198
  <div part="base" class="message">
199
199
  <div part="avatar" class="message__avatar">
200
200
  <zn-icon library="avatar" src="${this.avatar||this.sender}" size="36" round></zn-icon>
@@ -1337,7 +1337,7 @@ import{a as _n,b as D1,c as nr,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var J
1337
1337
  </div>
1338
1338
  <slot name="bottom"></slot>
1339
1339
  </div>
1340
- `}};$t.styles=T(rv),c([p({attribute:"master-id",reflect:!0})],$t.prototype,"masterId",2),c([p({attribute:"default-uri",reflect:!0})],$t.prototype,"defaultUri",2),c([p({attribute:"active",reflect:!0})],$t.prototype,"_current",2),c([p({attribute:"split",type:Number,reflect:!0})],$t.prototype,"_split",2),c([p({attribute:"split-min",type:Number,reflect:!0})],$t.prototype,"_splitMin",2),c([p({attribute:"split-min-secondary",type:Number,reflect:!0})],$t.prototype,"_splitMinSecondary",2),c([p({attribute:"split-max",type:Number,reflect:!0})],$t.prototype,"_splitMax",2),c([p({attribute:"primary-caption",reflect:!0})],$t.prototype,"primaryCaption",2),c([p({attribute:"secondary-caption",reflect:!0})],$t.prototype,"secondaryCaption",2),c([p({attribute:"no-prefetch",type:Boolean,reflect:!0})],$t.prototype,"noPrefetch",2),c([p({attribute:"no-cache",type:Boolean,reflect:!0})],$t.prototype,"noCache",2),c([p({attribute:"local-storage",type:Boolean,reflect:!0})],$t.prototype,"localStorage",2),c([p({attribute:"store-key"})],$t.prototype,"storeKey",2),c([p({attribute:"store-ttl",type:Number,reflect:!0})],$t.prototype,"storeTtl",2),c([p({attribute:"padded",type:Boolean,reflect:!0})],$t.prototype,"padded",2),c([p({attribute:"fetch-style",type:String,reflect:!0})],$t.prototype,"fetchStyle",2),c([p({attribute:"full-width",type:Boolean,reflect:!0})],$t.prototype,"fullWidth",2),c([p({attribute:"padded-right",type:Boolean,reflect:!0})],$t.prototype,"paddedRight",2),c([p()],$t.prototype,"monitor",2),c([p()],$t.prototype,"caption",2),c([p()],$t.prototype,"description",2);var qn=$t;$t.define("zn-tabs");var ov=A`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}@container (width > 1024px){:host{--zn-gutter:16px}}@container (width > 1400px){:host{--zn-gutter:24px}}@container (width > 1500px){:host{--zn-gutter:32px}}:host{display:block;width:100%;height:100%;min-height:0;container-type:inline-size;--zn-page-content-background:var(--zn-body);--zn-page-header-background:var(--zn-page-surface-background,var(--zn-page-background,var(--zn-body)))}:host([panel]){--zn-page-content-background:var(--zn-panel)}:host([panel-head]){--zn-page-header-background:var(--zn-panel)}:host([panel-nav]){--zn-active-nav-background:var(--zn-panel)}.page__header{flex:0 0 auto;position:sticky;top:0;z-index:2;box-sizing:border-box;background:rgba(var(--zn-page-header-background),95%)}.page__header::after{content:"";position:absolute;right:var(--zn-base-gap);bottom:0;left:var(--zn-base-gap);height:1px;background:rgb(var(--zn-border-color));opacity:0;transition:opacity 180ms ease-in-out;pointer-events:none}.page__header--scrolled-no-navigation::after{opacity:1}.header{display:flex;flex-direction:column;position:relative;margin:0;padding:calc(var(--zn-base-px) * 3) var(--zn-base-gap) calc(var(--zn-base-px) * 3 - var(--zn-base-gap)) var(--zn-base-gap)}.header.header--has-navigation{padding:calc(var(--zn-base-px) * 3) var(--zn-base-gap)}.header .content{display:flex;flex-wrap:wrap;position:relative;width:100%;max-width:100%;height:-moz-fit-content;height:fit-content;gap:var(--zn-base-gap);margin:0 auto;padding:0;box-sizing:border-box}.header--has-navigation .content{min-height:36px}.header .caption{flex-grow:1;display:flex;align-items:flex-start;justify-content:space-between;gap:2px;max-width:100%;min-height:36px}.header .caption a{display:flex;align-items:center;color:inherit;text-decoration:none}.header__left{display:flex;justify-content:flex-start;flex-direction:column;gap:var(--zn-spacing-x-small);min-height:36px;flex-shrink:1;max-width:100%}.header__right{flex-grow:1;flex-shrink:1;overflow:hidden;min-width:20px}.header__caption{font-weight:var(--zn-text-h1-font-weight);font-size:var(--zn-text-h1-font-size);color:rgba(var(--zn-text-panel-title),100%);line-height:18px;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;gap:var(--zn-spacing-x-small);align-items:center;text-wrap:auto}.header__description{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-font-size);font-weight:var(--zn-text-subheading-font-weight);line-height:var(--zn-text-subheading-line-height);color:var(--zn-text-subheading-color);text-transform:var(--zn-text-subheading-transform);display:block}.header .breadcrumb{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);font:inherit;color:inherit}.header .breadcrumb::slotted(a){font:inherit;color:inherit;text-decoration:inherit}.header .breadcrumb::slotted(a:hover){color:rgb(var(--zn-primary))}.header .breadcrumb::slotted([data-breadcrumb-separator]){color:rgb(var(--zn-text-muted))}.header .breadcrumb__separator{color:rgb(var(--zn-text-muted))}.header slot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-x-small);word-break:break-word}.header slot[name=actions]{justify-content:end;flex-wrap:nowrap}.header slot[name=actions]::slotted(zn-button-menu){flex-grow:1;flex-shrink:1}.caption__back{display:flex;justify-content:center;align-items:center;color:inherit}.alt-overlay{display:none}.alt-overlay--visible{display:flex}:host(.alt-pressed) .alt-overlay:empty{display:none !important}:host(.alt-pressed) .alt-overlay{display:flex}.alt-overlay{gap:10px;align-items:flex-end;position:absolute;left:0;top:0;padding:6px 15px;background:rgba(var(--zn-panel),0.95);z-index:10}.alt-overlay a{display:flex}.alt-overlay zn-icon:hover{color:rgb(var(--zn-primary));cursor:pointer}.page{display:flex;flex-direction:column;position:relative;height:100%;min-height:0;max-height:100%;width:100%;max-width:100%;overflow:auto;box-sizing:border-box;padding:0}.page__tabs{flex-grow:1;display:flex;flex-direction:column;min-height:0;width:100%;overflow:visible;box-sizing:border-box;padding:0 var(--zn-base-gap) var(--zn-base-gap);background:rgb(var(--zn-page-content-background,var(--zn-body)))}.page__tabs .page__content{display:flex;flex-direction:column;flex-grow:1;min-height:0;max-width:100%;width:100%;overflow:visible;box-sizing:border-box}.page__tabs #content ::slotted(zn-tab){display:block !important}:host([flush]) .page__tabs,:host([flush]) .page__tabs .page__content#content{padding:0}zn-navbar::part(navbar){height:40px;min-height:40px;max-height:40px;padding-left:var(--zn-base-gap);margin:0}zn-navbar::part(navbar-item){height:40px;box-sizing:border-box;font-size:var(--zn-font-size-medium);line-height:16px}:host .page__header{padding-inline:0}:host .header{padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}:host zn-navbar::part(navbar){padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}:host .page__tabs{padding:0}:host .page__tabs #content.page__content{padding:0 var(--zn-gutter,0)}`;var ze=class extends qn{constructor(){super(...arguments);this.pageSlotController=new J(this,"breadcrumb","actions","caption");this.modal=!1;this.nested=!1;this.primary=!1;this.scrolled=!1;this.tabDefinitions=[];this.hasExpandingActions=!1;this.actionObserver=null;this.tabObserver=null;this.handleAltPress=()=>{this.classList.toggle("alt-pressed",!0)};this.handleAltUp=()=>{this.classList.toggle("alt-pressed",!1)};this.handleBreadcrumbSlotChange=t=>{let n=t.target.assignedElements(),a=n.filter(s=>s.tagName==="A");n.forEach(s=>{if(!s.hasAttribute("data-breadcrumb-separator"))return;let l=s.previousElementSibling;l?.tagName==="A"&&a.indexOf(l)<a.length-1||s.remove()}),a.forEach((s,l)=>{if(l===a.length-1||s.nextElementSibling?.hasAttribute("data-breadcrumb-separator"))return;let h=document.createElement("zn-icon");h.setAttribute("src","arrow-right@lu"),h.setAttribute("size","16"),h.setAttribute("slot","breadcrumb"),h.setAttribute("data-breadcrumb-separator",""),s.after(h)})};this._registerTabs=()=>{this.registerPageNavigationTabs()}}async connectedCallback(){let t=super.connectedCallback();window.addEventListener("alt-press",this.handleAltPress),window.addEventListener("alt-up",this.handleAltUp),this.prepareTabs(),this.refreshExpandingActionsState(),this.tabObserver=new MutationObserver(r=>{r.some(n=>n.type==="childList")&&this.prepareTabs()}),this.tabObserver.observe(this,{childList:!0}),this.actionObserver=new MutationObserver(r=>{r.some(n=>n.type==="childList")&&(this.refreshExpandingActionsState(),this.syncExpandingActionsToNavbar())}),this.actionObserver.observe(this,{childList:!0,subtree:!0}),await t}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("alt-press",this.handleAltPress),window.removeEventListener("alt-up",this.handleAltUp),this.tabObserver?.disconnect(),this.tabObserver=null,this.actionObserver?.disconnect(),this.actionObserver=null}firstUpdated(t){super.firstUpdated(t),this.registerPagePanels(),this.syncExpandingActionsToNavbar(),setTimeout(()=>this.activateInitialPageTab(),20)}getOwnExpandingActions(){return Array.from(this.querySelectorAll("zn-expanding-action")).filter(t=>t.closest("zn-page")===this)}getNavbar(){return this.shadowRoot?.querySelector("zn-navbar")||null}refreshExpandingActionsState(){let t=this.getNavbar(),r=!!(t?.querySelector("zn-expanding-action")||t?.shadowRoot?.querySelector("zn-expanding-action")),n=this.getOwnExpandingActions().length>0||r;this.hasExpandingActions!==n&&(this.hasExpandingActions=n)}syncExpandingActionsToNavbar(){let t=this.getNavbar();t&&(this.getOwnExpandingActions().forEach(r=>t.addExpandingAction(r)),this.refreshExpandingActionsState())}prepareTabs(){let t=[],r=new Set;Array.from(this.children).filter(a=>a.tagName==="ZN-TAB").forEach((a,s)=>{let l=a.getAttribute("caption")||"Tab",d=a.getAttribute("id"),h=this.uniqueId(d!==null?d:this.captionToId(l),r),m=this.parsePriority(a.getAttribute("priority")),f=a.getAttribute("uri"),g=f?null:`page-tab-${s}`,b=a.hasAttribute("selected");a.id=h,f||(a.slot=g),t.push({id:h,caption:l,priority:m,sourceIndex:s,uri:f,slotName:g,selected:b})}),this.tabDefinitions=t.sort((a,s)=>this.compareTabs(a,s))}parsePriority(t){if(t===null||t.trim()==="")return null;let r=Number(t);return Number.isFinite(r)?r:null}compareTabs(t,r){return t.id===""&&r.id!==""?-1:t.id!==""&&r.id===""?1:t.priority!==null&&r.priority!==null&&t.priority!==r.priority?t.priority-r.priority:t.priority!==null&&r.priority===null?-1:t.priority===null&&r.priority!==null?1:t.sourceIndex-r.sourceIndex}captionToId(t){return t.trim().toLowerCase()==="overview"?"":t.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"tab"}uniqueId(t,r){let n=t,a=2;for(;r.has(n);)n=t===""?`tab-${a}`:`${t}-${a}`,a+=1;return r.add(n),n}handlePageScroll(t){let r=t.currentTarget.scrollTop>24;this.scrolled!==r&&(this.scrolled=r)}updated(t){super.updated(t),t.has("tabDefinitions")&&this.registerPagePanels(),(t.has("tabDefinitions")||t.has("hasExpandingActions"))&&this.syncExpandingActionsToNavbar()}handleNavigationSelect(t){let r=t.detail.item,n=r.getAttribute("tab-uri"),a=r.getAttribute("tab");if(n){this.clickTab(r,!1),this.syncNavigationActive(r);return}a!==null&&this.activateTab(a,!0)}activateTab(t,r){this.setActiveTab(t,r,!1);let n=this.shadowRoot?.querySelector(`zn-navbar li[tab="${CSS.escape(t)}"]`);n&&this.syncNavigationActive(n)}activateInitialPageTab(){let t=this.tabDefinitions.find(a=>a.selected);if(t){this.activateTabDefinition(t);return}let r=this.shadowRoot?.querySelector("#content > div[selected]"),n=this.tabDefinitions[0];!r&&n&&this.activateTab(n.id,!1)}activateTabDefinition(t){if(t.uri){let r=this.findNavItemForUri(t.uri);if(r){this.clickTab(r,!1),this.syncNavigationActive(r);return}}this.activateTab(t.id,!1)}findNavItemForUri(t){let r=this.shadowRoot?.querySelectorAll("zn-navbar li[tab-uri]")??[];for(let n of Array.from(r))if(n.getAttribute("tab-uri")===t)return n;return null}registerPagePanels(){this.shadowRoot?.querySelectorAll("#content > div[id]").forEach(t=>{this._addPanel(t)}),this.registerPageNavigationTabs(),setTimeout(()=>this.registerPageNavigationTabs())}registerPageNavigationTabs(){this.shadowRoot?.querySelectorAll("zn-navbar li[tab], zn-navbar li[tab-uri]").forEach(t=>this._addTab(t)),this.shadowRoot?.querySelectorAll("zn-navbar").forEach(t=>{t.shadowRoot?.querySelectorAll("li[tab], li[tab-uri]").forEach(r=>this._addTab(r))})}syncNavigationActive(t){(this.shadowRoot?.querySelectorAll("zn-navbar li[tab], zn-navbar li[tab-uri]")||[]).forEach(n=>{let a=n===t;n.classList.toggle("active",a),n.classList.toggle("zn-tb-active",a)})}render(){let t=!this.modal&&!this.nested&&this.pageSlotController.test("breadcrumb"),r=this.tabDefinitions.length>1||this.hasExpandingActions,n=this.entityId,a=this.fullLocation,s=this.previousPath;return u`
1340
+ `}};$t.styles=T(rv),c([p({attribute:"master-id",reflect:!0})],$t.prototype,"masterId",2),c([p({attribute:"default-uri",reflect:!0})],$t.prototype,"defaultUri",2),c([p({attribute:"active",reflect:!0})],$t.prototype,"_current",2),c([p({attribute:"split",type:Number,reflect:!0})],$t.prototype,"_split",2),c([p({attribute:"split-min",type:Number,reflect:!0})],$t.prototype,"_splitMin",2),c([p({attribute:"split-min-secondary",type:Number,reflect:!0})],$t.prototype,"_splitMinSecondary",2),c([p({attribute:"split-max",type:Number,reflect:!0})],$t.prototype,"_splitMax",2),c([p({attribute:"primary-caption",reflect:!0})],$t.prototype,"primaryCaption",2),c([p({attribute:"secondary-caption",reflect:!0})],$t.prototype,"secondaryCaption",2),c([p({attribute:"no-prefetch",type:Boolean,reflect:!0})],$t.prototype,"noPrefetch",2),c([p({attribute:"no-cache",type:Boolean,reflect:!0})],$t.prototype,"noCache",2),c([p({attribute:"local-storage",type:Boolean,reflect:!0})],$t.prototype,"localStorage",2),c([p({attribute:"store-key"})],$t.prototype,"storeKey",2),c([p({attribute:"store-ttl",type:Number,reflect:!0})],$t.prototype,"storeTtl",2),c([p({attribute:"padded",type:Boolean,reflect:!0})],$t.prototype,"padded",2),c([p({attribute:"fetch-style",type:String,reflect:!0})],$t.prototype,"fetchStyle",2),c([p({attribute:"full-width",type:Boolean,reflect:!0})],$t.prototype,"fullWidth",2),c([p({attribute:"padded-right",type:Boolean,reflect:!0})],$t.prototype,"paddedRight",2),c([p()],$t.prototype,"monitor",2),c([p()],$t.prototype,"caption",2),c([p()],$t.prototype,"description",2);var qn=$t;$t.define("zn-tabs");var ov=A`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}@container (width > 1024px){:host{--zn-gutter:16px}}@container (width > 1400px){:host{--zn-gutter:24px}}@container (width > 1500px){:host{--zn-gutter:32px}}:host{display:block;width:100%;height:100%;min-height:0;container-type:inline-size;--zn-page-content-background:var(--zn-body);--zn-page-header-background:var(--zn-page-surface-background,var(--zn-page-background,var(--zn-body)))}:host([panel]){--zn-page-content-background:var(--zn-panel)}:host([panel-head]){--zn-page-header-background:var(--zn-panel)}:host([panel-nav]){--zn-active-nav-background:var(--zn-panel)}.page__header{flex:0 0 auto;position:sticky;top:0;z-index:2;box-sizing:border-box;background:rgba(var(--zn-page-header-background),95%)}.page__header::after{content:"";position:absolute;right:var(--zn-base-gap);bottom:0;left:var(--zn-base-gap);height:1px;background:rgb(var(--zn-border-color));opacity:0;transition:opacity 180ms ease-in-out;pointer-events:none}.page__header--scrolled-no-navigation::after{opacity:1}.header{display:flex;flex-direction:column;position:relative;margin:0;padding:calc(var(--zn-base-px) * 3) var(--zn-base-gap) calc(var(--zn-base-px) * 3 - var(--zn-base-gap)) var(--zn-base-gap)}.header.header--has-navigation{padding:calc(var(--zn-base-px) * 3) var(--zn-base-gap)}.header .content{display:flex;flex-wrap:wrap;position:relative;width:100%;max-width:100%;height:-moz-fit-content;height:fit-content;gap:var(--zn-base-gap);margin:0 auto;padding:0;box-sizing:border-box}.header--has-navigation .content{min-height:36px}.header .caption{flex-grow:1;display:flex;align-items:flex-start;justify-content:space-between;gap:2px;max-width:100%;min-height:36px}.header .caption a{display:flex;align-items:center;color:inherit;text-decoration:none}.header__left{display:flex;justify-content:flex-start;flex-direction:column;gap:var(--zn-spacing-x-small);min-height:36px;flex-shrink:1;max-width:100%}.header__right{flex-grow:1;flex-shrink:1;overflow:hidden;min-width:20px}.header__caption{font-weight:var(--zn-text-h1-font-weight);font-size:var(--zn-text-h1-font-size);color:rgba(var(--zn-text-panel-title),100%);line-height:var(--zn-spacing-medium);margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;gap:var(--zn-spacing-x-small);align-items:center;text-wrap:auto}.header__description{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-font-size);font-weight:var(--zn-text-subheading-font-weight);line-height:var(--zn-text-subheading-line-height);color:var(--zn-text-subheading-color);text-transform:var(--zn-text-subheading-transform);display:block}.header .breadcrumb{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);font:inherit;color:inherit}.header .breadcrumb::slotted(a){font:inherit;color:inherit;text-decoration:inherit}.header .breadcrumb::slotted(a:hover){color:rgb(var(--zn-primary))}.header .breadcrumb::slotted([data-breadcrumb-separator]){color:rgb(var(--zn-text-muted))}.header .breadcrumb__separator{color:rgb(var(--zn-text-muted))}.header slot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-x-small);word-break:break-word}.header slot[name=actions]{justify-content:end;flex-wrap:nowrap}.header slot[name=actions]::slotted(zn-button-menu){flex-grow:1;flex-shrink:1}.caption__back{display:flex;justify-content:center;align-items:center;color:inherit}.alt-overlay{display:none}.alt-overlay--visible{display:flex}:host(.alt-pressed) .alt-overlay:empty{display:none !important}:host(.alt-pressed) .alt-overlay{display:flex}.alt-overlay{gap:10px;align-items:flex-end;position:absolute;left:0;top:0;padding:6px 15px;background:rgba(var(--zn-panel),0.95);z-index:10}.alt-overlay a{display:flex}.alt-overlay zn-icon:hover{color:rgb(var(--zn-primary));cursor:pointer}.page{display:flex;flex-direction:column;position:relative;height:100%;min-height:0;max-height:100%;width:100%;max-width:100%;overflow:auto;box-sizing:border-box;padding:0}.page__tabs{flex-grow:1;display:flex;flex-direction:column;min-height:0;width:100%;overflow:visible;box-sizing:border-box;padding:0 var(--zn-base-gap) var(--zn-base-gap);background:rgb(var(--zn-page-content-background,var(--zn-body)))}.page__tabs .page__content{display:flex;flex-direction:column;flex-grow:1;min-height:0;max-width:100%;width:100%;overflow:visible;box-sizing:border-box}.page__tabs #content ::slotted(zn-tab){display:block !important}:host([flush]) .page__tabs,:host([flush]) .page__tabs .page__content#content{padding:0}zn-navbar::part(navbar){height:40px;min-height:40px;max-height:40px;padding-left:var(--zn-base-gap);margin:0}zn-navbar::part(navbar-item){height:40px;box-sizing:border-box;font-size:var(--zn-font-size-medium);line-height:16px}:host .page__header{padding-inline:0}:host .header{padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}:host zn-navbar::part(navbar){padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}:host .page__tabs{padding:0}:host .page__tabs #content.page__content{padding:0 var(--zn-gutter,0)}`;var ze=class extends qn{constructor(){super(...arguments);this.pageSlotController=new J(this,"breadcrumb","actions","caption");this.modal=!1;this.nested=!1;this.primary=!1;this.scrolled=!1;this.tabDefinitions=[];this.hasExpandingActions=!1;this.actionObserver=null;this.tabObserver=null;this.handleAltPress=()=>{this.classList.toggle("alt-pressed",!0)};this.handleAltUp=()=>{this.classList.toggle("alt-pressed",!1)};this.handleBreadcrumbSlotChange=t=>{let n=t.target.assignedElements(),a=n.filter(s=>s.tagName==="A");n.forEach(s=>{if(!s.hasAttribute("data-breadcrumb-separator"))return;let l=s.previousElementSibling;l?.tagName==="A"&&a.indexOf(l)<a.length-1||s.remove()}),a.forEach((s,l)=>{if(l===a.length-1||s.nextElementSibling?.hasAttribute("data-breadcrumb-separator"))return;let h=document.createElement("zn-icon");h.setAttribute("src","arrow-right@lu"),h.setAttribute("size","16"),h.setAttribute("slot","breadcrumb"),h.setAttribute("data-breadcrumb-separator",""),s.after(h)})};this._registerTabs=()=>{this.registerPageNavigationTabs()}}async connectedCallback(){let t=super.connectedCallback();window.addEventListener("alt-press",this.handleAltPress),window.addEventListener("alt-up",this.handleAltUp),this.prepareTabs(),this.refreshExpandingActionsState(),this.tabObserver=new MutationObserver(r=>{r.some(n=>n.type==="childList")&&this.prepareTabs()}),this.tabObserver.observe(this,{childList:!0}),this.actionObserver=new MutationObserver(r=>{r.some(n=>n.type==="childList")&&(this.refreshExpandingActionsState(),this.syncExpandingActionsToNavbar())}),this.actionObserver.observe(this,{childList:!0,subtree:!0}),await t}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("alt-press",this.handleAltPress),window.removeEventListener("alt-up",this.handleAltUp),this.tabObserver?.disconnect(),this.tabObserver=null,this.actionObserver?.disconnect(),this.actionObserver=null}firstUpdated(t){super.firstUpdated(t),this.registerPagePanels(),this.syncExpandingActionsToNavbar(),setTimeout(()=>this.activateInitialPageTab(),20)}getOwnExpandingActions(){return Array.from(this.querySelectorAll("zn-expanding-action")).filter(t=>t.closest("zn-page")===this)}getNavbar(){return this.shadowRoot?.querySelector("zn-navbar")||null}refreshExpandingActionsState(){let t=this.getNavbar(),r=!!(t?.querySelector("zn-expanding-action")||t?.shadowRoot?.querySelector("zn-expanding-action")),n=this.getOwnExpandingActions().length>0||r;this.hasExpandingActions!==n&&(this.hasExpandingActions=n)}syncExpandingActionsToNavbar(){let t=this.getNavbar();t&&(this.getOwnExpandingActions().forEach(r=>t.addExpandingAction(r)),this.refreshExpandingActionsState())}prepareTabs(){let t=[],r=new Set;Array.from(this.children).filter(a=>a.tagName==="ZN-TAB").forEach((a,s)=>{let l=a.getAttribute("caption")||"Tab",d=a.getAttribute("id"),h=this.uniqueId(d!==null?d:this.captionToId(l),r),m=this.parsePriority(a.getAttribute("priority")),f=a.getAttribute("uri"),g=f?null:`page-tab-${s}`,b=a.hasAttribute("selected");a.id=h,f||(a.slot=g),t.push({id:h,caption:l,priority:m,sourceIndex:s,uri:f,slotName:g,selected:b})}),this.tabDefinitions=t.sort((a,s)=>this.compareTabs(a,s))}parsePriority(t){if(t===null||t.trim()==="")return null;let r=Number(t);return Number.isFinite(r)?r:null}compareTabs(t,r){return t.id===""&&r.id!==""?-1:t.id!==""&&r.id===""?1:t.priority!==null&&r.priority!==null&&t.priority!==r.priority?t.priority-r.priority:t.priority!==null&&r.priority===null?-1:t.priority===null&&r.priority!==null?1:t.sourceIndex-r.sourceIndex}captionToId(t){return t.trim().toLowerCase()==="overview"?"":t.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"tab"}uniqueId(t,r){let n=t,a=2;for(;r.has(n);)n=t===""?`tab-${a}`:`${t}-${a}`,a+=1;return r.add(n),n}handlePageScroll(t){let r=t.currentTarget.scrollTop>24;this.scrolled!==r&&(this.scrolled=r)}updated(t){super.updated(t),t.has("tabDefinitions")&&this.registerPagePanels(),(t.has("tabDefinitions")||t.has("hasExpandingActions"))&&this.syncExpandingActionsToNavbar()}handleNavigationSelect(t){let r=t.detail.item,n=r.getAttribute("tab-uri"),a=r.getAttribute("tab");if(n){this.clickTab(r,!1),this.syncNavigationActive(r);return}a!==null&&this.activateTab(a,!0)}activateTab(t,r){this.setActiveTab(t,r,!1);let n=this.shadowRoot?.querySelector(`zn-navbar li[tab="${CSS.escape(t)}"]`);n&&this.syncNavigationActive(n)}activateInitialPageTab(){let t=this.tabDefinitions.find(a=>a.selected);if(t){this.activateTabDefinition(t);return}let r=this.shadowRoot?.querySelector("#content > div[selected]"),n=this.tabDefinitions[0];!r&&n&&this.activateTab(n.id,!1)}activateTabDefinition(t){if(t.uri){let r=this.findNavItemForUri(t.uri);if(r){this.clickTab(r,!1),this.syncNavigationActive(r);return}}this.activateTab(t.id,!1)}findNavItemForUri(t){let r=this.shadowRoot?.querySelectorAll("zn-navbar li[tab-uri]")??[];for(let n of Array.from(r))if(n.getAttribute("tab-uri")===t)return n;return null}registerPagePanels(){this.shadowRoot?.querySelectorAll("#content > div[id]").forEach(t=>{this._addPanel(t)}),this.registerPageNavigationTabs(),setTimeout(()=>this.registerPageNavigationTabs())}registerPageNavigationTabs(){this.shadowRoot?.querySelectorAll("zn-navbar li[tab], zn-navbar li[tab-uri]").forEach(t=>this._addTab(t)),this.shadowRoot?.querySelectorAll("zn-navbar").forEach(t=>{t.shadowRoot?.querySelectorAll("li[tab], li[tab-uri]").forEach(r=>this._addTab(r))})}syncNavigationActive(t){(this.shadowRoot?.querySelectorAll("zn-navbar li[tab], zn-navbar li[tab-uri]")||[]).forEach(n=>{let a=n===t;n.classList.toggle("active",a),n.classList.toggle("zn-tb-active",a)})}render(){let t=!this.modal&&!this.nested&&this.pageSlotController.test("breadcrumb"),r=this.tabDefinitions.length>1||this.hasExpandingActions,n=this.entityId,a=this.fullLocation,s=this.previousPath;return u`
1341
1341
  <div class="page" part="base" @scroll="${this.handlePageScroll}">
1342
1342
  <div class="${N({page__header:!0,"page__header--scrolled-no-navigation":this.scrolled&&!r})}" part="header">
1343
1343
  <div class="${N({header:!0,"header--has-breadcrumb":t,"header--has-entity-id":n,"header--has-full-location":a,"header--has-navigation":r,"header--has-previous":s})}">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubex/zinc",
3
- "version": "1.1.36",
3
+ "version": "1.1.38",
4
4
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
5
5
  "keywords": [
6
6
  "web components",
@@ -171,6 +171,7 @@
171
171
  flex-shrink: 0;
172
172
  display: flex;
173
173
  align-items: center;
174
+ height: 24px; // match the chat line height; taller slotted triggers overlap the padding instead of growing the bubble
174
175
  }
175
176
  }
176
177
 
@@ -116,7 +116,7 @@
116
116
  font-weight: var(--zn-text-h1-font-weight);
117
117
  font-size: var(--zn-text-h1-font-size);
118
118
  color: rgba(var(--zn-text-panel-title), 100%);
119
- line-height: 18px;
119
+ line-height: var(--zn-spacing-medium);
120
120
  margin: 0;
121
121
  overflow: hidden;
122
122
  white-space: nowrap;