@kubex/zinc 1.1.0 → 1.1.2
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 +92 -74
- package/dist/vscode.html-custom-data.json +11 -11
- package/dist/web-types.json +23 -23
- package/dist/zn.d.ts +8 -2
- package/dist/zn.min.css +1 -1
- package/dist/zn.min.js +152 -152
- package/package.json +1 -1
- package/scss/shared/_table.scss +2 -2
- package/src/components/collapsible/collapsible.scss +4 -0
- package/src/components/data-table/data-table.scss +2 -2
- package/src/components/expanding-action/expanding-action.component.ts +38 -0
- package/src/components/expanding-action/expanding-action.scss +17 -9
- package/src/components/menu/menu.scss +2 -2
- package/src/components/navbar/navbar.scss +5 -7
- package/src/internal/zinc-element.ts +6 -1
|
@@ -47,79 +47,6 @@
|
|
|
47
47
|
}
|
|
48
48
|
]
|
|
49
49
|
},
|
|
50
|
-
{
|
|
51
|
-
"kind": "javascript-module",
|
|
52
|
-
"path": "components/action-bar/action-bar.js",
|
|
53
|
-
"declarations": [
|
|
54
|
-
{
|
|
55
|
-
"kind": "class",
|
|
56
|
-
"description": "",
|
|
57
|
-
"name": "ZnActionBar",
|
|
58
|
-
"cssProperties": [
|
|
59
|
-
{
|
|
60
|
-
"description": "An example CSS custom property.",
|
|
61
|
-
"name": "--example"
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
"cssParts": [
|
|
65
|
-
{
|
|
66
|
-
"description": "The component's base wrapper.",
|
|
67
|
-
"name": "base"
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"slots": [
|
|
71
|
-
{
|
|
72
|
-
"description": "The default slot.",
|
|
73
|
-
"name": ""
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"description": "An example slot.",
|
|
77
|
-
"name": "example"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"members": [
|
|
81
|
-
{
|
|
82
|
-
"kind": "field",
|
|
83
|
-
"name": "localize",
|
|
84
|
-
"privacy": "private",
|
|
85
|
-
"readonly": true,
|
|
86
|
-
"default": "new LocalizeController(this)"
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"events": [
|
|
90
|
-
{
|
|
91
|
-
"description": "Emitted as an example.",
|
|
92
|
-
"name": "zn-event-name"
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"superclass": {
|
|
96
|
-
"name": "ZincElement",
|
|
97
|
-
"module": "/src/internal/zinc-element"
|
|
98
|
-
},
|
|
99
|
-
"summary": "Short summary of the component's intended use.",
|
|
100
|
-
"tagNameWithoutPrefix": "action-bar",
|
|
101
|
-
"tagName": "zn-action-bar",
|
|
102
|
-
"customElement": true,
|
|
103
|
-
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
|
|
104
|
-
"documentation": "https://zinc.style/components/action-bar",
|
|
105
|
-
"status": "experimental",
|
|
106
|
-
"since": "1.0",
|
|
107
|
-
"dependencies": [
|
|
108
|
-
"zn-example"
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
],
|
|
112
|
-
"exports": [
|
|
113
|
-
{
|
|
114
|
-
"kind": "js",
|
|
115
|
-
"name": "default",
|
|
116
|
-
"declaration": {
|
|
117
|
-
"name": "ZnActionBar",
|
|
118
|
-
"module": "components/action-bar/action-bar.js"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
50
|
{
|
|
124
51
|
"kind": "javascript-module",
|
|
125
52
|
"path": "components/alert/alert.js",
|
|
@@ -278,6 +205,79 @@
|
|
|
278
205
|
}
|
|
279
206
|
]
|
|
280
207
|
},
|
|
208
|
+
{
|
|
209
|
+
"kind": "javascript-module",
|
|
210
|
+
"path": "components/action-bar/action-bar.js",
|
|
211
|
+
"declarations": [
|
|
212
|
+
{
|
|
213
|
+
"kind": "class",
|
|
214
|
+
"description": "",
|
|
215
|
+
"name": "ZnActionBar",
|
|
216
|
+
"cssProperties": [
|
|
217
|
+
{
|
|
218
|
+
"description": "An example CSS custom property.",
|
|
219
|
+
"name": "--example"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"cssParts": [
|
|
223
|
+
{
|
|
224
|
+
"description": "The component's base wrapper.",
|
|
225
|
+
"name": "base"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"slots": [
|
|
229
|
+
{
|
|
230
|
+
"description": "The default slot.",
|
|
231
|
+
"name": ""
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"description": "An example slot.",
|
|
235
|
+
"name": "example"
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"members": [
|
|
239
|
+
{
|
|
240
|
+
"kind": "field",
|
|
241
|
+
"name": "localize",
|
|
242
|
+
"privacy": "private",
|
|
243
|
+
"readonly": true,
|
|
244
|
+
"default": "new LocalizeController(this)"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"events": [
|
|
248
|
+
{
|
|
249
|
+
"description": "Emitted as an example.",
|
|
250
|
+
"name": "zn-event-name"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"superclass": {
|
|
254
|
+
"name": "ZincElement",
|
|
255
|
+
"module": "/src/internal/zinc-element"
|
|
256
|
+
},
|
|
257
|
+
"summary": "Short summary of the component's intended use.",
|
|
258
|
+
"tagNameWithoutPrefix": "action-bar",
|
|
259
|
+
"tagName": "zn-action-bar",
|
|
260
|
+
"customElement": true,
|
|
261
|
+
"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 */",
|
|
262
|
+
"documentation": "https://zinc.style/components/action-bar",
|
|
263
|
+
"status": "experimental",
|
|
264
|
+
"since": "1.0",
|
|
265
|
+
"dependencies": [
|
|
266
|
+
"zn-example"
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"exports": [
|
|
271
|
+
{
|
|
272
|
+
"kind": "js",
|
|
273
|
+
"name": "default",
|
|
274
|
+
"declaration": {
|
|
275
|
+
"name": "ZnActionBar",
|
|
276
|
+
"module": "components/action-bar/action-bar.js"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
281
|
{
|
|
282
282
|
"kind": "javascript-module",
|
|
283
283
|
"path": "components/animated-button/animated-button.js",
|
|
@@ -10867,6 +10867,14 @@
|
|
|
10867
10867
|
"privacy": "private",
|
|
10868
10868
|
"default": "false"
|
|
10869
10869
|
},
|
|
10870
|
+
{
|
|
10871
|
+
"kind": "field",
|
|
10872
|
+
"name": "_placementObserver",
|
|
10873
|
+
"type": {
|
|
10874
|
+
"text": "MutationObserver | undefined"
|
|
10875
|
+
},
|
|
10876
|
+
"privacy": "private"
|
|
10877
|
+
},
|
|
10870
10878
|
{
|
|
10871
10879
|
"kind": "field",
|
|
10872
10880
|
"name": "_countObserver",
|
|
@@ -10995,6 +11003,16 @@
|
|
|
10995
11003
|
"kind": "field",
|
|
10996
11004
|
"name": "handleIconCloseClicked"
|
|
10997
11005
|
},
|
|
11006
|
+
{
|
|
11007
|
+
"kind": "field",
|
|
11008
|
+
"name": "_updateTriggerSide",
|
|
11009
|
+
"privacy": "private"
|
|
11010
|
+
},
|
|
11011
|
+
{
|
|
11012
|
+
"kind": "method",
|
|
11013
|
+
"name": "_observePlacement",
|
|
11014
|
+
"privacy": "private"
|
|
11015
|
+
},
|
|
10998
11016
|
{
|
|
10999
11017
|
"kind": "method",
|
|
11000
11018
|
"name": "renderDropdown",
|
|
@@ -36133,7 +36151,7 @@
|
|
|
36133
36151
|
"package": {
|
|
36134
36152
|
"name": "@kubex/zinc",
|
|
36135
36153
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
36136
|
-
"version": "1.1.
|
|
36154
|
+
"version": "1.1.2",
|
|
36137
36155
|
"author": "",
|
|
36138
36156
|
"license": "MIT"
|
|
36139
36157
|
}
|
|
@@ -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.",
|
|
@@ -59,6 +48,17 @@
|
|
|
59
48
|
}
|
|
60
49
|
]
|
|
61
50
|
},
|
|
51
|
+
{
|
|
52
|
+
"name": "zn-action-bar",
|
|
53
|
+
"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.",
|
|
54
|
+
"attributes": [],
|
|
55
|
+
"references": [
|
|
56
|
+
{
|
|
57
|
+
"name": "Documentation",
|
|
58
|
+
"url": "https://zinc.style/components/action-bar"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
62
|
{
|
|
63
63
|
"name": "zn-animated-button",
|
|
64
64
|
"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/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.2",
|
|
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.",
|
|
@@ -92,6 +70,28 @@
|
|
|
92
70
|
]
|
|
93
71
|
}
|
|
94
72
|
},
|
|
73
|
+
{
|
|
74
|
+
"name": "zn-action-bar",
|
|
75
|
+
"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.",
|
|
76
|
+
"doc-url": "",
|
|
77
|
+
"attributes": [],
|
|
78
|
+
"slots": [
|
|
79
|
+
{ "name": "", "description": "The default slot." },
|
|
80
|
+
{ "name": "example", "description": "An example slot." }
|
|
81
|
+
],
|
|
82
|
+
"events": [
|
|
83
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
84
|
+
],
|
|
85
|
+
"js": {
|
|
86
|
+
"properties": [],
|
|
87
|
+
"events": [
|
|
88
|
+
{
|
|
89
|
+
"name": "zn-event-name",
|
|
90
|
+
"description": "Emitted as an example."
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
95
|
{
|
|
96
96
|
"name": "zn-animated-button",
|
|
97
97
|
"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.d.ts
CHANGED
|
@@ -61,8 +61,10 @@ declare module "internal/event" {
|
|
|
61
61
|
declare module "internal/zinc-element" {
|
|
62
62
|
import { LitElement, type PropertyValues } from "lit";
|
|
63
63
|
import type { EventTypeDoesNotRequireDetail, EventTypeRequiresDetail, EventTypesWithoutRequiredDetail, EventTypesWithRequiredDetail, GetCustomEventType, ZincEventInit } from "internal/event";
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
import type { SignalWatcherApi } from "@lit-labs/signals";
|
|
65
|
+
type Constructor<T = NonNullable<unknown>> = new (...args: any[]) => T;
|
|
66
|
+
const ZincElementBase: typeof LitElement & Constructor<SignalWatcherApi>;
|
|
67
|
+
export default class ZincElement extends ZincElementBase {
|
|
66
68
|
dir: string;
|
|
67
69
|
lang: string;
|
|
68
70
|
t: string;
|
|
@@ -3904,6 +3906,7 @@ declare module "components/expanding-action/expanding-action.component" {
|
|
|
3904
3906
|
private _actions;
|
|
3905
3907
|
private _preload;
|
|
3906
3908
|
private _metaObserved;
|
|
3909
|
+
private _placementObserver?;
|
|
3907
3910
|
private readonly _countObserver;
|
|
3908
3911
|
private readonly _colorObserver;
|
|
3909
3912
|
constructor();
|
|
@@ -3920,6 +3923,9 @@ declare module "components/expanding-action/expanding-action.component" {
|
|
|
3920
3923
|
clickAction(target: HTMLElement): void;
|
|
3921
3924
|
handleIconClicked: () => void;
|
|
3922
3925
|
handleIconCloseClicked: () => void;
|
|
3926
|
+
private _updateTriggerSide;
|
|
3927
|
+
private _observePlacement;
|
|
3928
|
+
disconnectedCallback(): void;
|
|
3923
3929
|
render(): import("lit-html").TemplateResult<1>;
|
|
3924
3930
|
protected renderDropdown(): import("lit-html").TemplateResult<1>;
|
|
3925
3931
|
protected renderFill(): import("lit-html").TemplateResult<1>;
|