@kubex/zinc 1.1.32 → 1.1.34

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.
Files changed (34) hide show
  1. package/dist/chunks/zn.4YKYUIHS.js +3 -0
  2. package/dist/chunks/zn.6RARZYEJ.js +22 -0
  3. package/dist/chunks/zn.7VCR5ZZL.js +1 -0
  4. package/dist/chunks/zn.AI3T35DX.js +1 -0
  5. package/dist/chunks/zn.CU5HCKLN.js +1 -0
  6. package/dist/chunks/zn.EHO4QQOL.js +1 -0
  7. package/dist/chunks/zn.GBBMMHHG.js +8 -0
  8. package/dist/chunks/zn.GRJSS6IO.js +1 -0
  9. package/dist/chunks/zn.HPUEBV7K.js +1 -0
  10. package/dist/chunks/zn.J2JOUV3V.js +8 -0
  11. package/dist/chunks/zn.NKUIXDNI.js +1 -0
  12. package/dist/chunks/zn.S4ZVBYAS.js +3 -0
  13. package/dist/chunks/zn.UBLZO6CI.js +1 -0
  14. package/dist/chunks/zn.XO7QERPZ.js +716 -0
  15. package/dist/chunks/zn.ZGI3WHSG.js +4 -0
  16. package/dist/custom-elements.json +134 -75
  17. package/dist/vscode.html-custom-data.json +11 -11
  18. package/dist/web-types.json +23 -23
  19. package/dist/zn.d.ts +21 -0
  20. package/dist/zn.min.js +1309 -2041
  21. package/index.html +1 -1
  22. package/package.json +3 -3
  23. package/scripts/build.js +10 -5
  24. package/src/components/chart/chart.component.ts +20 -27
  25. package/src/components/chart/echarts-loader.ts +30 -0
  26. package/src/components/editor/modules/emoji/emoji-mart-loader.ts +28 -0
  27. package/src/components/editor/modules/emoji/emoji.ts +3 -9
  28. package/src/components/editor/modules/emoji/headless/headless-emoji.ts +2 -9
  29. package/src/components/icon/icon.component.ts +34 -2
  30. package/src/components/icon-picker/icon-picker.component.ts +35 -35
  31. package/src/components/settings-container/settings-container.scss +2 -2
  32. package/src/components/simple-chart/simple-chart.component.ts +15 -6
  33. package/src/zinc-autoloader.ts +0 -2
  34. package/tsconfig.json +2 -1
@@ -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",
@@ -3270,6 +3270,22 @@
3270
3270
  },
3271
3271
  "privacy": "private"
3272
3272
  },
3273
+ {
3274
+ "kind": "field",
3275
+ "name": "echarts",
3276
+ "type": {
3277
+ "text": "EChartsModule | undefined"
3278
+ },
3279
+ "privacy": "private"
3280
+ },
3281
+ {
3282
+ "kind": "field",
3283
+ "name": "initPromise",
3284
+ "type": {
3285
+ "text": "Promise<void> | undefined"
3286
+ },
3287
+ "privacy": "private"
3288
+ },
3273
3289
  {
3274
3290
  "kind": "field",
3275
3291
  "name": "liveTimer",
@@ -3285,6 +3301,16 @@
3285
3301
  "readonly": true,
3286
3302
  "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => this.chart?.resize(), })"
3287
3303
  },
3304
+ {
3305
+ "kind": "method",
3306
+ "name": "getUpdateComplete",
3307
+ "privacy": "protected",
3308
+ "return": {
3309
+ "type": {
3310
+ "text": "Promise<boolean>"
3311
+ }
3312
+ }
3313
+ },
3288
3314
  {
3289
3315
  "kind": "method",
3290
3316
  "name": "getTheme",
@@ -15454,6 +15480,16 @@
15454
15480
  }
15455
15481
  ]
15456
15482
  },
15483
+ {
15484
+ "kind": "method",
15485
+ "name": "getUpdateComplete",
15486
+ "privacy": "protected",
15487
+ "return": {
15488
+ "type": {
15489
+ "text": "Promise<boolean>"
15490
+ }
15491
+ }
15492
+ },
15457
15493
  {
15458
15494
  "kind": "method",
15459
15495
  "name": "parseSrc",
@@ -16011,7 +16047,7 @@
16011
16047
  "privacy": "private",
16012
16048
  "return": {
16013
16049
  "type": {
16014
- "text": "string[]"
16050
+ "text": "Promise<string[]>"
16015
16051
  }
16016
16052
  },
16017
16053
  "parameters": [
@@ -32693,12 +32729,35 @@
32693
32729
  },
32694
32730
  "privacy": "private"
32695
32731
  },
32732
+ {
32733
+ "kind": "field",
32734
+ "name": "initPromise",
32735
+ "type": {
32736
+ "text": "Promise<void> | undefined"
32737
+ },
32738
+ "privacy": "private"
32739
+ },
32696
32740
  {
32697
32741
  "kind": "field",
32698
32742
  "name": "resizeObserver",
32699
32743
  "privacy": "private",
32700
32744
  "readonly": true,
32701
32745
  "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => this.chart?.resize(), })"
32746
+ },
32747
+ {
32748
+ "kind": "method",
32749
+ "name": "getUpdateComplete",
32750
+ "privacy": "protected",
32751
+ "return": {
32752
+ "type": {
32753
+ "text": "Promise<boolean>"
32754
+ }
32755
+ }
32756
+ },
32757
+ {
32758
+ "kind": "method",
32759
+ "name": "initChart",
32760
+ "privacy": "private"
32702
32761
  }
32703
32762
  ],
32704
32763
  "attributes": [
@@ -39819,7 +39878,7 @@
39819
39878
  "package": {
39820
39879
  "name": "@kubex/zinc",
39821
39880
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
39822
- "version": "1.1.32",
39881
+ "version": "1.1.34",
39823
39882
  "author": "",
39824
39883
  "license": "MIT"
39825
39884
  }
@@ -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.32",
4
+ "version": "1.1.34",
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.d.ts CHANGED
@@ -560,6 +560,7 @@ declare module "components/icon/icon.component" {
560
560
  private convertIndicatorToLibrary;
561
561
  connectedCallback(): void;
562
562
  protected willUpdate(changedProperties: PropertyValues<this>): void;
563
+ protected getUpdateComplete(): Promise<boolean>;
563
564
  private parseSrc;
564
565
  private applyHashFragment;
565
566
  private normalizeRavatarEmail;
@@ -3807,6 +3808,11 @@ declare module "components/chart/builders" {
3807
3808
  export function buildAreaOption(props: BuilderProps): EChartsOption;
3808
3809
  export function buildSankeyOption(props: BuilderProps): EChartsOption;
3809
3810
  }
3811
+ declare module "components/chart/echarts-loader" {
3812
+ import type * as echartsCore from 'echarts/core';
3813
+ export type EChartsModule = typeof echartsCore;
3814
+ export function loadECharts(): Promise<EChartsModule>;
3815
+ }
3810
3816
  declare module "components/chart/chart.component" {
3811
3817
  import { type ChartType, type SeriesItem } from "components/chart/builders";
3812
3818
  import { type CSSResultGroup, type PropertyValues } from 'lit';
@@ -3838,9 +3844,12 @@ declare module "components/chart/chart.component" {
3838
3844
  smooth: boolean;
3839
3845
  scale: boolean | number;
3840
3846
  private chart?;
3847
+ private echarts?;
3848
+ private initPromise?;
3841
3849
  private liveTimer?;
3842
3850
  private readonly resizeObserver;
3843
3851
  protected firstUpdated(_changedProperties: PropertyValues): void;
3852
+ protected getUpdateComplete(): Promise<boolean>;
3844
3853
  private getTheme;
3845
3854
  private getTextColor;
3846
3855
  private getBorderColor;
@@ -3880,8 +3889,11 @@ declare module "components/simple-chart/simple-chart.component" {
3880
3889
  labels?: string[];
3881
3890
  enableAnimations: boolean | number;
3882
3891
  private chart?;
3892
+ private initPromise?;
3883
3893
  private readonly resizeObserver;
3884
3894
  firstUpdated(): void;
3895
+ protected getUpdateComplete(): Promise<boolean>;
3896
+ private initChart;
3885
3897
  disconnectedCallback(): void;
3886
3898
  render(): import("lit-html").TemplateResult<1>;
3887
3899
  }
@@ -5505,6 +5517,15 @@ declare module "components/editor/modules/dialog/dialog" {
5505
5517
  }
5506
5518
  export default Dialog;
5507
5519
  }
5520
+ declare module "components/editor/modules/emoji/emoji-mart-loader" {
5521
+ import type { Picker, SearchIndex } from 'emoji-mart';
5522
+ export interface EmojiMart {
5523
+ Picker: typeof Picker;
5524
+ SearchIndex: typeof SearchIndex;
5525
+ data: Record<string, unknown>;
5526
+ }
5527
+ export function loadEmojiMart(): Promise<EmojiMart>;
5528
+ }
5508
5529
  declare module "components/editor/modules/emoji/emoji" {
5509
5530
  import Quill from 'quill';
5510
5531
  export interface EmojiResult {