@kubex/zinc 1.1.179 → 1.1.181
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 +697 -454
- package/dist/vscode.html-custom-data.json +102 -64
- package/dist/web-types.json +243 -163
- package/dist/zn.d.ts +115 -11
- package/dist/zn.min.js +331 -322
- package/docs/pages/components/chart.md +49 -0
- package/docs/pages/components/stat.md +74 -0
- package/docs/pages/components/tile.md +16 -0
- package/package.json +1 -1
- package/src/components/chart/builders.ts +15 -0
- package/src/components/chart/chart-live.test.ts +82 -0
- package/src/components/chart/chart.component.ts +111 -14
- package/src/components/chart/live.test.ts +96 -0
- package/src/components/chart/live.ts +164 -0
- package/src/components/cols/cols.scss +16 -0
- package/src/components/data-table/data-table.component.ts +3 -2
- package/src/components/data-table-filter/data-table-filter.component.ts +2 -2
- package/src/components/data-table-search/data-table-search.component.ts +2 -2
- package/src/components/defined-label/defined-label.component.ts +1 -1
- package/src/components/filter-container/filter-container.component.ts +1 -1
- package/src/components/filter-wrapper/filter-wrapper.component.ts +2 -0
- package/src/components/filter-wrapper/filter-wrapper.test.ts +46 -0
- package/src/components/icon-picker/icon-picker.component.ts +1 -1
- package/src/components/input/input.component.ts +10 -0
- package/src/components/remarkd-editor/remarkd-editor.component.ts +1 -1
- package/src/components/select/select.component.ts +1 -1
- package/src/components/stat/stat.component.ts +81 -12
- package/src/components/stat/stat.scss +64 -0
- package/src/components/tile/tile.component.ts +3 -0
- package/src/components/tile/tile.scss +30 -0
- package/src/internal/form.ts +18 -3
|
@@ -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.",
|
|
@@ -64,6 +53,17 @@
|
|
|
64
53
|
}
|
|
65
54
|
]
|
|
66
55
|
},
|
|
56
|
+
{
|
|
57
|
+
"name": "zn-action-bar",
|
|
58
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
59
|
+
"attributes": [],
|
|
60
|
+
"references": [
|
|
61
|
+
{
|
|
62
|
+
"name": "Documentation",
|
|
63
|
+
"url": "https://zinc.style/components/action-bar"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
67
|
{
|
|
68
68
|
"name": "zn-animated-button",
|
|
69
69
|
"description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
|
|
@@ -525,6 +525,9 @@
|
|
|
525
525
|
{ "name": "stacked", "values": [] },
|
|
526
526
|
{ "name": "live", "values": [] },
|
|
527
527
|
{ "name": "data-url", "values": [] },
|
|
528
|
+
{ "name": "stream-url", "values": [] },
|
|
529
|
+
{ "name": "live-renew-url", "values": [] },
|
|
530
|
+
{ "name": "hide-zero", "values": [] },
|
|
528
531
|
{ "name": "live-interval", "values": [] },
|
|
529
532
|
{ "name": "height", "values": [] },
|
|
530
533
|
{ "name": "enable-animations", "values": [] },
|
|
@@ -1516,58 +1519,6 @@
|
|
|
1516
1519
|
}
|
|
1517
1520
|
]
|
|
1518
1521
|
},
|
|
1519
|
-
{
|
|
1520
|
-
"name": "zn-dialog",
|
|
1521
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-show** - Emitted when the dialog is opens.\n- **zn-close** - Emitted when the dialog is closed.\n- **zn-request-close** - Emitted when the user attempts to close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the dialog open. Avoid using this unless closing the dialog will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the dialog.\n- **hide()** - Hides the dialog.\n\n### **Slots:**\n - _default_ - The default slot.\n- **label** - The dialog's label. Alternatively you can use the `label` attribute.\n- **header-icon** - Optional icon to add to the left of the dialog's label (title). A color will be applied to the icon depending on the dialog variant.\n- **announcement-intro** - Optional Intro text to display below the icon, when using the variant `announcement`.\n- **header-actions** - Optional actions to add to the header. Works best with `<zn-button>` elements.\n- **footer** - The dialog's footer. This is typically used for buttons representing various options.\n- **footer-text** - Optional text to include below the footer buttons, when using the variant `announcement`.\n\n### **CSS Properties:**\n - **--width** - The preferred width of the dialog. Note the dialog will shrink to accommodate smaller screens. _(default: undefined)_\n- **--header-spacing** - The amount of padding to use for the header. _(default: undefined)_\n- **--body-spacing** - The amount of padding to use for the body. _(default: undefined)_\n- **--footer-spacing** - The amount of padding to use for the footer. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **header** - The dialog's header. This element wraps the title and header actions.\n- **header-actions** - Optional actions to add to the header. Works best with `<zn-button>` elements.\n- **title** - The dialog's title.\n- **close-button** - The dialog's close button.\n- **close-button__base** - The close buttons exported `base` part.\n- **body** - The dialog's body.\n- **footer** - The dialog's footer.",
|
|
1522
|
-
"attributes": [
|
|
1523
|
-
{
|
|
1524
|
-
"name": "variant",
|
|
1525
|
-
"description": "The dialog's theme variant.",
|
|
1526
|
-
"values": [
|
|
1527
|
-
{ "name": "default" },
|
|
1528
|
-
{ "name": "warning" },
|
|
1529
|
-
{ "name": "announcement" }
|
|
1530
|
-
]
|
|
1531
|
-
},
|
|
1532
|
-
{
|
|
1533
|
-
"name": "size",
|
|
1534
|
-
"description": "The dialog's size.",
|
|
1535
|
-
"values": [
|
|
1536
|
-
{ "name": "small" },
|
|
1537
|
-
{ "name": "medium" },
|
|
1538
|
-
{ "name": "large" },
|
|
1539
|
-
{ "name": "custom" }
|
|
1540
|
-
]
|
|
1541
|
-
},
|
|
1542
|
-
{
|
|
1543
|
-
"name": "open",
|
|
1544
|
-
"description": "Indicated whether of not the dialog is open. You can toggle this attribute to show and hide the dialog, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the dialog's state.",
|
|
1545
|
-
"values": []
|
|
1546
|
-
},
|
|
1547
|
-
{
|
|
1548
|
-
"name": "label",
|
|
1549
|
-
"description": "The dialog's label as displayed in the header. You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.",
|
|
1550
|
-
"values": []
|
|
1551
|
-
},
|
|
1552
|
-
{ "name": "cosmic", "values": [] },
|
|
1553
|
-
{
|
|
1554
|
-
"name": "no-header",
|
|
1555
|
-
"description": "Disables the header. This will also remove the default close button, so please ensure you provide an easy,\naccessible way to close the dialog.",
|
|
1556
|
-
"values": []
|
|
1557
|
-
},
|
|
1558
|
-
{
|
|
1559
|
-
"name": "trigger",
|
|
1560
|
-
"description": "The dialog's trigger element. This is used to open the dialog when clicked. If you do not provide a trigger, you\nwill need to manually open the dialog using the `show()` method.",
|
|
1561
|
-
"values": []
|
|
1562
|
-
}
|
|
1563
|
-
],
|
|
1564
|
-
"references": [
|
|
1565
|
-
{
|
|
1566
|
-
"name": "Documentation",
|
|
1567
|
-
"url": "https://zinc.style/components/dialog"
|
|
1568
|
-
}
|
|
1569
|
-
]
|
|
1570
|
-
},
|
|
1571
1522
|
{
|
|
1572
1523
|
"name": "zn-dropdown",
|
|
1573
1524
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n - **show()** - Opens the dropdown\n- **hide()** - Closes the dropdown\n- **reposition()** - Instructs the dropdown to reposition itself\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.",
|
|
@@ -1639,6 +1590,58 @@
|
|
|
1639
1590
|
}
|
|
1640
1591
|
]
|
|
1641
1592
|
},
|
|
1593
|
+
{
|
|
1594
|
+
"name": "zn-dialog",
|
|
1595
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-show** - Emitted when the dialog is opens.\n- **zn-close** - Emitted when the dialog is closed.\n- **zn-request-close** - Emitted when the user attempts to close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the dialog open. Avoid using this unless closing the dialog will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the dialog.\n- **hide()** - Hides the dialog.\n\n### **Slots:**\n - _default_ - The default slot.\n- **label** - The dialog's label. Alternatively you can use the `label` attribute.\n- **header-icon** - Optional icon to add to the left of the dialog's label (title). A color will be applied to the icon depending on the dialog variant.\n- **announcement-intro** - Optional Intro text to display below the icon, when using the variant `announcement`.\n- **header-actions** - Optional actions to add to the header. Works best with `<zn-button>` elements.\n- **footer** - The dialog's footer. This is typically used for buttons representing various options.\n- **footer-text** - Optional text to include below the footer buttons, when using the variant `announcement`.\n\n### **CSS Properties:**\n - **--width** - The preferred width of the dialog. Note the dialog will shrink to accommodate smaller screens. _(default: undefined)_\n- **--header-spacing** - The amount of padding to use for the header. _(default: undefined)_\n- **--body-spacing** - The amount of padding to use for the body. _(default: undefined)_\n- **--footer-spacing** - The amount of padding to use for the footer. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **header** - The dialog's header. This element wraps the title and header actions.\n- **header-actions** - Optional actions to add to the header. Works best with `<zn-button>` elements.\n- **title** - The dialog's title.\n- **close-button** - The dialog's close button.\n- **close-button__base** - The close buttons exported `base` part.\n- **body** - The dialog's body.\n- **footer** - The dialog's footer.",
|
|
1596
|
+
"attributes": [
|
|
1597
|
+
{
|
|
1598
|
+
"name": "variant",
|
|
1599
|
+
"description": "The dialog's theme variant.",
|
|
1600
|
+
"values": [
|
|
1601
|
+
{ "name": "default" },
|
|
1602
|
+
{ "name": "warning" },
|
|
1603
|
+
{ "name": "announcement" }
|
|
1604
|
+
]
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
"name": "size",
|
|
1608
|
+
"description": "The dialog's size.",
|
|
1609
|
+
"values": [
|
|
1610
|
+
{ "name": "small" },
|
|
1611
|
+
{ "name": "medium" },
|
|
1612
|
+
{ "name": "large" },
|
|
1613
|
+
{ "name": "custom" }
|
|
1614
|
+
]
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
"name": "open",
|
|
1618
|
+
"description": "Indicated whether of not the dialog is open. You can toggle this attribute to show and hide the dialog, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the dialog's state.",
|
|
1619
|
+
"values": []
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
"name": "label",
|
|
1623
|
+
"description": "The dialog's label as displayed in the header. You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.",
|
|
1624
|
+
"values": []
|
|
1625
|
+
},
|
|
1626
|
+
{ "name": "cosmic", "values": [] },
|
|
1627
|
+
{
|
|
1628
|
+
"name": "no-header",
|
|
1629
|
+
"description": "Disables the header. This will also remove the default close button, so please ensure you provide an easy,\naccessible way to close the dialog.",
|
|
1630
|
+
"values": []
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
"name": "trigger",
|
|
1634
|
+
"description": "The dialog's trigger element. This is used to open the dialog when clicked. If you do not provide a trigger, you\nwill need to manually open the dialog using the `show()` method.",
|
|
1635
|
+
"values": []
|
|
1636
|
+
}
|
|
1637
|
+
],
|
|
1638
|
+
"references": [
|
|
1639
|
+
{
|
|
1640
|
+
"name": "Documentation",
|
|
1641
|
+
"url": "https://zinc.style/components/dialog"
|
|
1642
|
+
}
|
|
1643
|
+
]
|
|
1644
|
+
},
|
|
1642
1645
|
{
|
|
1643
1646
|
"name": "zn-editor",
|
|
1644
1647
|
"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.",
|
|
@@ -4438,7 +4441,7 @@
|
|
|
4438
4441
|
},
|
|
4439
4442
|
{
|
|
4440
4443
|
"name": "zn-stat",
|
|
4441
|
-
"description": "
|
|
4444
|
+
"description": "Displays a key metric, optionally compared with a previous value.\n---\n",
|
|
4442
4445
|
"attributes": [
|
|
4443
4446
|
{ "name": "caption", "values": [] },
|
|
4444
4447
|
{ "name": "description", "values": [] },
|
|
@@ -4457,6 +4460,36 @@
|
|
|
4457
4460
|
{ "name": "success" },
|
|
4458
4461
|
{ "name": "neutral" }
|
|
4459
4462
|
]
|
|
4463
|
+
},
|
|
4464
|
+
{
|
|
4465
|
+
"name": "layout",
|
|
4466
|
+
"description": "`value-first` puts the amount under the caption with the description beneath it, and tints the amount rather\nthan the description with `color`.",
|
|
4467
|
+
"values": [{ "name": "default" }, { "name": "value-first" }]
|
|
4468
|
+
},
|
|
4469
|
+
{
|
|
4470
|
+
"name": "delta-format",
|
|
4471
|
+
"description": "How `show-delta` compares with `previous`: the relative change, or the difference in points.",
|
|
4472
|
+
"values": [{ "name": "percent" }, { "name": "points" }]
|
|
4473
|
+
},
|
|
4474
|
+
{
|
|
4475
|
+
"name": "icon",
|
|
4476
|
+
"description": "An icon shown beside the amount.",
|
|
4477
|
+
"values": []
|
|
4478
|
+
},
|
|
4479
|
+
{
|
|
4480
|
+
"name": "icon-color",
|
|
4481
|
+
"description": "The icon's color; without one it takes the amount's.",
|
|
4482
|
+
"values": [{ "name": "IconColor" }]
|
|
4483
|
+
},
|
|
4484
|
+
{
|
|
4485
|
+
"name": "size",
|
|
4486
|
+
"description": "`large` gives the amount more weight, for a summary row of a few headline figures.",
|
|
4487
|
+
"values": [{ "name": "medium" }, { "name": "large" }]
|
|
4488
|
+
},
|
|
4489
|
+
{
|
|
4490
|
+
"name": "padded",
|
|
4491
|
+
"description": "Pads the stat, for stats laid edge to edge in a flush container such as `zn-cols no-gap divide`.",
|
|
4492
|
+
"values": []
|
|
4460
4493
|
}
|
|
4461
4494
|
],
|
|
4462
4495
|
"references": [
|
|
@@ -5107,6 +5140,11 @@
|
|
|
5107
5140
|
"description": "Renders the caption in the normal table-content weight instead of bold.",
|
|
5108
5141
|
"values": []
|
|
5109
5142
|
},
|
|
5143
|
+
{
|
|
5144
|
+
"name": "stack-actions",
|
|
5145
|
+
"description": "Moves the actions under the caption and description when the tile is narrower than 600px.",
|
|
5146
|
+
"values": []
|
|
5147
|
+
},
|
|
5110
5148
|
{
|
|
5111
5149
|
"name": "grouped",
|
|
5112
5150
|
"description": "Set by `zn-tile-group` to lay the tile out as a shared-column subgrid row.",
|