@kubex/zinc 1.1.174 → 1.1.176

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.
@@ -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.174",
4
+ "version": "1.1.176",
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\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\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.",
@@ -105,6 +83,28 @@
105
83
  ]
106
84
  }
107
85
  },
86
+ {
87
+ "name": "zn-action-bar",
88
+ "description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
89
+ "doc-url": "",
90
+ "attributes": [],
91
+ "slots": [
92
+ { "name": "", "description": "The default slot." },
93
+ { "name": "example", "description": "An example slot." }
94
+ ],
95
+ "events": [
96
+ { "name": "zn-event-name", "description": "Emitted as an example." }
97
+ ],
98
+ "js": {
99
+ "properties": [],
100
+ "events": [
101
+ {
102
+ "name": "zn-event-name",
103
+ "description": "Emitted as an example."
104
+ }
105
+ ]
106
+ }
107
+ },
108
108
  {
109
109
  "name": "zn-animated-button",
110
110
  "description": "\n\n---\n\n\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",
@@ -1251,6 +1251,75 @@
1251
1251
  "events": []
1252
1252
  }
1253
1253
  },
1254
+ {
1255
+ "name": "zn-chat-message-attachment",
1256
+ "description": "A single file or link attachment for a `zn-chat-message` or `zn-content-block`.\nRenders an icon and a label as a link, styled to match the message's attachments row. It is\nintended to be used only inside a `zn-chat-message` or `zn-content-block` and is automatically\nplaced in that component's `attachments` slot.\n\n---\n\n\n### **Slots:**\n - _default_ - The attachment label. Falls back to the `name` attribute when empty.\n\n### **CSS Parts:**\n - **base** - The attachment link.\n- **icon** - The leading icon.\n- **label** - The attachment label.",
1257
+ "doc-url": "",
1258
+ "attributes": [
1259
+ {
1260
+ "name": "href",
1261
+ "description": "The URL the attachment links to.",
1262
+ "value": { "type": "string", "default": "''" }
1263
+ },
1264
+ {
1265
+ "name": "name",
1266
+ "description": "The attachment label (e.g. the file name). Used when the default slot is empty.",
1267
+ "value": { "type": "string", "default": "''" }
1268
+ },
1269
+ {
1270
+ "name": "icon",
1271
+ "description": "The leading icon name.",
1272
+ "value": { "type": "string", "default": "'paperclip@lu'" }
1273
+ },
1274
+ {
1275
+ "name": "target",
1276
+ "description": "Where to open the link. Defaults to a new tab. Reflected so the console's\npagelet link interception (`[href]:not([target])`) skips the host and the\nbrowser handles the click natively (download / new tab) instead of\nloading the file URL as a pagelet.",
1277
+ "value": { "type": "string", "default": "'_blank'" }
1278
+ },
1279
+ {
1280
+ "name": "download",
1281
+ "description": "Prompt a download rather than navigating to the link.",
1282
+ "value": { "type": "boolean", "default": "false" }
1283
+ }
1284
+ ],
1285
+ "slots": [
1286
+ {
1287
+ "name": "",
1288
+ "description": "The attachment label. Falls back to the `name` attribute when empty."
1289
+ }
1290
+ ],
1291
+ "events": [],
1292
+ "js": {
1293
+ "properties": [
1294
+ {
1295
+ "name": "href",
1296
+ "description": "The URL the attachment links to.",
1297
+ "type": "string"
1298
+ },
1299
+ {
1300
+ "name": "name",
1301
+ "description": "The attachment label (e.g. the file name). Used when the default slot is empty.",
1302
+ "type": "string"
1303
+ },
1304
+ {
1305
+ "name": "icon",
1306
+ "description": "The leading icon name.",
1307
+ "type": "string"
1308
+ },
1309
+ {
1310
+ "name": "target",
1311
+ "description": "Where to open the link. Defaults to a new tab. Reflected so the console's\npagelet link interception (`[href]:not([target])`) skips the host and the\nbrowser handles the click natively (download / new tab) instead of\nloading the file URL as a pagelet.",
1312
+ "type": "string"
1313
+ },
1314
+ {
1315
+ "name": "download",
1316
+ "description": "Prompt a download rather than navigating to the link.",
1317
+ "type": "boolean"
1318
+ }
1319
+ ],
1320
+ "events": []
1321
+ }
1322
+ },
1254
1323
  {
1255
1324
  "name": "zn-checkbox",
1256
1325
  "description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the checkbox loses focus.\n- **zn-change** - Emitted when the checked state changes.\n- **zn-focus** - Emitted when the checkbox gains focus.\n- **zn-input** - Emitted when the checkbox receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n- **image** - Replaces the built-in image used by contained checkboxes.\n- **description** - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.\n- **selected-content** - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.\n\n### **CSS Properties:**\n - **--zn-selection-card-image-width** - Width of the built-in card image. _(default: undefined)_\n- **--zn-selection-card-image-height** - Height of the built-in card image. _(default: undefined)_\n- **--zn-selection-card-min-height** - Minimum height of a contained checkbox with an image. _(default: undefined)_\n- **--zn-selection-card-content-min-width** - Width the card text keeps before it wraps below the image. _(default: undefined)_\n- **--zn-selection-card-title-font-size** - Font size of a selection card title. _(default: undefined)_\n- **--zn-selection-card-padding** - Equal inset around the contents of a selection card. _(default: undefined)_\n- **--zn-selection-card-gap** - Space between the image, title, and indicator gutter. _(default: undefined)_\n- **--zn-selection-card-control-offset** - Distance between a positioned control and the card edge. _(default: undefined)_\n- **--zn-selection-card-border-radius** - Corner radius of a contained container. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<zn-icon>` element.\n- **unchecked-icon** - The unchecked icon, an `<zn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<svg>` element.\n- **image-container** - The wrapper around the built-in image or image slot.\n- **image** - The built-in image.\n- **card-title** - The title inside a selection card.\n- **label** - The container that wraps the checkbox's label.\n- **description** - The container that wraps the checkbox's description.\n- **selected-content** - The container that wraps optional content that appears when a checkbox is checked.",
@@ -1601,75 +1670,6 @@
1601
1670
  ]
1602
1671
  }
1603
1672
  },
1604
- {
1605
- "name": "zn-chat-message-attachment",
1606
- "description": "A single file or link attachment for a `zn-chat-message` or `zn-content-block`.\nRenders an icon and a label as a link, styled to match the message's attachments row. It is\nintended to be used only inside a `zn-chat-message` or `zn-content-block` and is automatically\nplaced in that component's `attachments` slot.\n\n---\n\n\n### **Slots:**\n - _default_ - The attachment label. Falls back to the `name` attribute when empty.\n\n### **CSS Parts:**\n - **base** - The attachment link.\n- **icon** - The leading icon.\n- **label** - The attachment label.",
1607
- "doc-url": "",
1608
- "attributes": [
1609
- {
1610
- "name": "href",
1611
- "description": "The URL the attachment links to.",
1612
- "value": { "type": "string", "default": "''" }
1613
- },
1614
- {
1615
- "name": "name",
1616
- "description": "The attachment label (e.g. the file name). Used when the default slot is empty.",
1617
- "value": { "type": "string", "default": "''" }
1618
- },
1619
- {
1620
- "name": "icon",
1621
- "description": "The leading icon name.",
1622
- "value": { "type": "string", "default": "'paperclip@lu'" }
1623
- },
1624
- {
1625
- "name": "target",
1626
- "description": "Where to open the link. Defaults to a new tab. Reflected so the console's\npagelet link interception (`[href]:not([target])`) skips the host and the\nbrowser handles the click natively (download / new tab) instead of\nloading the file URL as a pagelet.",
1627
- "value": { "type": "string", "default": "'_blank'" }
1628
- },
1629
- {
1630
- "name": "download",
1631
- "description": "Prompt a download rather than navigating to the link.",
1632
- "value": { "type": "boolean", "default": "false" }
1633
- }
1634
- ],
1635
- "slots": [
1636
- {
1637
- "name": "",
1638
- "description": "The attachment label. Falls back to the `name` attribute when empty."
1639
- }
1640
- ],
1641
- "events": [],
1642
- "js": {
1643
- "properties": [
1644
- {
1645
- "name": "href",
1646
- "description": "The URL the attachment links to.",
1647
- "type": "string"
1648
- },
1649
- {
1650
- "name": "name",
1651
- "description": "The attachment label (e.g. the file name). Used when the default slot is empty.",
1652
- "type": "string"
1653
- },
1654
- {
1655
- "name": "icon",
1656
- "description": "The leading icon name.",
1657
- "type": "string"
1658
- },
1659
- {
1660
- "name": "target",
1661
- "description": "Where to open the link. Defaults to a new tab. Reflected so the console's\npagelet link interception (`[href]:not([target])`) skips the host and the\nbrowser handles the click natively (download / new tab) instead of\nloading the file URL as a pagelet.",
1662
- "type": "string"
1663
- },
1664
- {
1665
- "name": "download",
1666
- "description": "Prompt a download rather than navigating to the link.",
1667
- "type": "boolean"
1668
- }
1669
- ],
1670
- "events": []
1671
- }
1672
- },
1673
1673
  {
1674
1674
  "name": "zn-checkbox-group",
1675
1675
  "description": "Shotrt summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the checkbox group's selected value changes.\n- **zn-input** - Emitted when the checkbox group receives user input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot where `<zn-checkbox>` elements are placed.\n- **label** - The checkbox group's label. Required for proper accessibility. Alternatively, you can use the `label` attribute.\n- **label-tooltip** - Used to add text that is displayed in a tooltip next to the label. Alternatively, you can use the `label-tooltip` attribute.\n- **help-text** - Text that describes how to use the checkbox group. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-checkbox-group-column-width** - Minimum column width used by the horizontal contained grid, or the card basis when `wrap` is set. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.",
package/dist/zn.d.ts CHANGED
@@ -8944,6 +8944,8 @@ declare module "components/content-block/sanitize-html" {
8944
8944
  * except a link's href when it is http(s) or mailto.
8945
8945
  */
8946
8946
  export function sanitizeHtml(source: string): string;
8947
+ /** Plain text of a body that may be HTML source or text holding encoded entities like `&nbsp;`. */
8948
+ export function htmlToText(source: string): string;
8947
8949
  }
8948
8950
  declare module "components/content-block/content-block.component" {
8949
8951
  import ZincElement from "internal/zinc-element";