@kubex/zinc 1.1.47 → 1.1.49
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 +383 -74
- package/dist/vscode.html-custom-data.json +54 -11
- package/dist/web-types.json +127 -23
- package/dist/zn.d.ts +69 -0
- package/dist/zn.min.js +342 -318
- package/docs/pages/components/color-select.md +34 -0
- package/package.json +1 -1
- package/src/components/channel-tile/channel-tile.component.ts +18 -2
- package/src/components/channel-tile/channel-tile.scss +2 -2
- package/src/components/color-select/color-select.component.ts +123 -0
- package/src/components/color-select/color-select.scss +78 -0
- package/src/components/color-select/color-select.test.ts +28 -0
- package/src/components/color-select/index.ts +12 -0
- package/src/components/file/file.component.ts +16 -8
- package/src/components/file/file.test.ts +27 -3
- package/src/components/textarea/textarea.scss +6 -0
- package/src/zinc.ts +1 -0
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.49",
|
|
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",
|
|
@@ -1722,6 +1722,110 @@
|
|
|
1722
1722
|
"events": []
|
|
1723
1723
|
}
|
|
1724
1724
|
},
|
|
1725
|
+
{
|
|
1726
|
+
"name": "zn-color-select",
|
|
1727
|
+
"description": "A simple color picker. The dropdown lists color swatches with names; the closed control shows only the selected color's swatch.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the selected color changes.\n- **zn-clear** - Emitted when the clear button is activated.\n\n### **CSS Parts:**\n - **swatch** - The color swatch shown in the closed control.\n- **combobox** - The container that wraps the swatch and expand button (forwarded from zn-select).\n- **form-control-help-text** - The help text's wrapper (forwarded from zn-select).\n- **form-control-input** - The select's wrapper (forwarded from zn-select).",
|
|
1728
|
+
"doc-url": "",
|
|
1729
|
+
"attributes": [
|
|
1730
|
+
{
|
|
1731
|
+
"name": "name",
|
|
1732
|
+
"description": "The name of the select. Used for form submission.",
|
|
1733
|
+
"value": { "type": "string" }
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"name": "value",
|
|
1737
|
+
"description": "The selected color (lowercase name, e.g. \"red\"). Used for form submission.",
|
|
1738
|
+
"value": { "type": "string", "default": "''" }
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
"name": "label",
|
|
1742
|
+
"description": "The select's label.",
|
|
1743
|
+
"value": { "type": "string", "default": "''" }
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"name": "help-text",
|
|
1747
|
+
"description": "The select's help text.",
|
|
1748
|
+
"value": { "type": "string", "default": "''" }
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
"name": "disabled",
|
|
1752
|
+
"description": "Disables the select.",
|
|
1753
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
"name": "required",
|
|
1757
|
+
"description": "Makes the select a required field.",
|
|
1758
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"name": "clearable",
|
|
1762
|
+
"description": "Shows a clear button when a color is selected.",
|
|
1763
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1764
|
+
}
|
|
1765
|
+
],
|
|
1766
|
+
"events": [
|
|
1767
|
+
{
|
|
1768
|
+
"name": "zn-input",
|
|
1769
|
+
"description": "Emitted when the selected color changes."
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"name": "zn-clear",
|
|
1773
|
+
"description": "Emitted when the clear button is activated."
|
|
1774
|
+
}
|
|
1775
|
+
],
|
|
1776
|
+
"js": {
|
|
1777
|
+
"properties": [
|
|
1778
|
+
{ "name": "select", "type": "ZnSelect" },
|
|
1779
|
+
{
|
|
1780
|
+
"name": "name",
|
|
1781
|
+
"description": "The name of the select. Used for form submission.",
|
|
1782
|
+
"type": "string"
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
"name": "value",
|
|
1786
|
+
"description": "The selected color (lowercase name, e.g. \"red\"). Used for form submission.",
|
|
1787
|
+
"type": "string"
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
"name": "label",
|
|
1791
|
+
"description": "The select's label.",
|
|
1792
|
+
"type": "string"
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"name": "helpText",
|
|
1796
|
+
"description": "The select's help text.",
|
|
1797
|
+
"type": "string"
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
"name": "disabled",
|
|
1801
|
+
"description": "Disables the select.",
|
|
1802
|
+
"type": "boolean"
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
"name": "required",
|
|
1806
|
+
"description": "Makes the select a required field.",
|
|
1807
|
+
"type": "boolean"
|
|
1808
|
+
},
|
|
1809
|
+
{
|
|
1810
|
+
"name": "clearable",
|
|
1811
|
+
"description": "Shows a clear button when a color is selected.",
|
|
1812
|
+
"type": "boolean"
|
|
1813
|
+
},
|
|
1814
|
+
{ "name": "validity", "type": "ValidityState" },
|
|
1815
|
+
{ "name": "validationMessage", "type": "string" }
|
|
1816
|
+
],
|
|
1817
|
+
"events": [
|
|
1818
|
+
{
|
|
1819
|
+
"name": "zn-input",
|
|
1820
|
+
"description": "Emitted when the selected color changes."
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
"name": "zn-clear",
|
|
1824
|
+
"description": "Emitted when the clear button is activated."
|
|
1825
|
+
}
|
|
1826
|
+
]
|
|
1827
|
+
}
|
|
1828
|
+
},
|
|
1725
1829
|
{
|
|
1726
1830
|
"name": "zn-cols",
|
|
1727
1831
|
"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.",
|
package/dist/zn.d.ts
CHANGED
|
@@ -3980,6 +3980,7 @@ declare module "components/channel-tile/channel-tile.component" {
|
|
|
3980
3980
|
private _accept;
|
|
3981
3981
|
private _reservedUntilMs;
|
|
3982
3982
|
private _countdownPercent;
|
|
3983
|
+
private _remainingSeconds;
|
|
3983
3984
|
private _handleReject;
|
|
3984
3985
|
private _handleClick;
|
|
3985
3986
|
protected render(): unknown;
|
|
@@ -7352,6 +7353,73 @@ declare module "components/item/index" {
|
|
|
7352
7353
|
}
|
|
7353
7354
|
}
|
|
7354
7355
|
}
|
|
7356
|
+
declare module "components/color-select/color-select.component" {
|
|
7357
|
+
import { type CSSResultGroup } from 'lit';
|
|
7358
|
+
import ZincElement from "internal/zinc-element";
|
|
7359
|
+
import ZnOption from "components/option/index";
|
|
7360
|
+
import ZnSelect from "components/select/index";
|
|
7361
|
+
import type { ZincFormControl } from "internal/zinc-element";
|
|
7362
|
+
/**
|
|
7363
|
+
* @summary A simple color picker. The dropdown lists color swatches with names; the closed control shows only the selected color's swatch.
|
|
7364
|
+
* @documentation https://zinc.style/components/color-select
|
|
7365
|
+
* @status experimental
|
|
7366
|
+
* @since 1.0
|
|
7367
|
+
*
|
|
7368
|
+
* @dependency zn-select
|
|
7369
|
+
* @dependency zn-option
|
|
7370
|
+
*
|
|
7371
|
+
* @event zn-input - Emitted when the selected color changes.
|
|
7372
|
+
* @event zn-clear - Emitted when the clear button is activated.
|
|
7373
|
+
*
|
|
7374
|
+
* @csspart swatch - The color swatch shown in the closed control.
|
|
7375
|
+
* @csspart combobox - The container that wraps the swatch and expand button (forwarded from zn-select).
|
|
7376
|
+
* @csspart form-control-help-text - The help text's wrapper (forwarded from zn-select).
|
|
7377
|
+
* @csspart form-control-input - The select's wrapper (forwarded from zn-select).
|
|
7378
|
+
*/
|
|
7379
|
+
export default class ZnColorSelect extends ZincElement implements ZincFormControl {
|
|
7380
|
+
static styles: CSSResultGroup;
|
|
7381
|
+
static dependencies: {
|
|
7382
|
+
'zn-select': typeof ZnSelect;
|
|
7383
|
+
'zn-option': typeof ZnOption;
|
|
7384
|
+
};
|
|
7385
|
+
select: ZnSelect;
|
|
7386
|
+
/** The name of the select. Used for form submission. */
|
|
7387
|
+
name: string;
|
|
7388
|
+
/** The selected color (lowercase name, e.g. "red"). Used for form submission. */
|
|
7389
|
+
value: string;
|
|
7390
|
+
/** The select's label. */
|
|
7391
|
+
label: string;
|
|
7392
|
+
/** The select's help text. */
|
|
7393
|
+
helpText: string;
|
|
7394
|
+
/** Disables the select. */
|
|
7395
|
+
disabled: boolean;
|
|
7396
|
+
/** Makes the select a required field. */
|
|
7397
|
+
required: boolean;
|
|
7398
|
+
/** Shows a clear button when a color is selected. */
|
|
7399
|
+
clearable: boolean;
|
|
7400
|
+
private readonly formControlController;
|
|
7401
|
+
get validity(): ValidityState;
|
|
7402
|
+
get validationMessage(): string;
|
|
7403
|
+
checkValidity(): boolean;
|
|
7404
|
+
getForm(): HTMLFormElement | null;
|
|
7405
|
+
reportValidity(): boolean;
|
|
7406
|
+
setCustomValidity(message: string): void;
|
|
7407
|
+
handleValueChange(): void;
|
|
7408
|
+
private handleInput;
|
|
7409
|
+
private handleClear;
|
|
7410
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
7411
|
+
}
|
|
7412
|
+
}
|
|
7413
|
+
declare module "components/color-select/index" {
|
|
7414
|
+
import ZnColorSelect from "components/color-select/color-select.component";
|
|
7415
|
+
export * from "components/color-select/color-select.component";
|
|
7416
|
+
export default ZnColorSelect;
|
|
7417
|
+
global {
|
|
7418
|
+
interface HTMLElementTagNameMap {
|
|
7419
|
+
'zn-color-select': ZnColorSelect;
|
|
7420
|
+
}
|
|
7421
|
+
}
|
|
7422
|
+
}
|
|
7355
7423
|
declare module "components/button-menu/button-menu.component" {
|
|
7356
7424
|
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
7357
7425
|
import ZincElement from "internal/zinc-element";
|
|
@@ -10301,6 +10369,7 @@ declare module "zinc" {
|
|
|
10301
10369
|
export { default as CheckboxGroup } from "components/checkbox-group/index";
|
|
10302
10370
|
export { default as Item } from "components/item/index";
|
|
10303
10371
|
export { default as DataSelect } from "components/data-select/index";
|
|
10372
|
+
export { default as ColorSelect } from "components/color-select/index";
|
|
10304
10373
|
export { default as ButtonMenu } from "components/button-menu/index";
|
|
10305
10374
|
export { default as HoverContainer } from "components/hover-container/index";
|
|
10306
10375
|
export { default as Slideout } from "components/slideout/index";
|