@kubex/zinc 1.1.137 → 1.1.139

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 (26) hide show
  1. package/dist/custom-elements.json +186 -57
  2. package/dist/vscode.html-custom-data.json +6 -6
  3. package/dist/web-types.json +10 -10
  4. package/dist/zn.d.ts +30 -6
  5. package/dist/zn.min.js +435 -415
  6. package/package.json +1 -1
  7. package/src/components/collapsible/collapsible.scss +10 -2
  8. package/src/components/filter-container/filter-container.component.ts +3 -6
  9. package/src/components/flow-builder/flow-layout.ts +1 -1
  10. package/src/components/flow-builder/modules/flow-canvas/flow-canvas.component.ts +1 -1
  11. package/src/components/header/header.component.ts +1 -1
  12. package/src/components/icon-picker/icon-picker.component.ts +6 -18
  13. package/src/components/input/input.component.ts +4 -2
  14. package/src/components/menu-item/submenu-controller.ts +7 -7
  15. package/src/components/page-builder/modules/page-section-card/page-section-card.scss +16 -3
  16. package/src/components/page-builder/page-builder.component.ts +147 -2
  17. package/src/components/page-builder/page-builder.scss +22 -0
  18. package/src/components/page-builder/page.types.ts +20 -0
  19. package/src/components/query-builder/query-builder.component.ts +2 -2
  20. package/src/components/sidebar/sidebar.component.ts +3 -3
  21. package/src/components/slideout/slideout.component.ts +2 -2
  22. package/src/components/stat/stat.component.ts +3 -3
  23. package/src/components/stepper/stepper.component.ts +1 -1
  24. package/src/internal/form.ts +2 -2
  25. package/src/internal/zinc-element.ts +1 -1
  26. /package/src/components/hover-container/{hover-container.ts → hover-container.test.ts} +0 -0
@@ -2,6 +2,60 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "readme": "",
4
4
  "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "components/absolute-container/absolute-container.js",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "ZnAbsoluteContainer",
13
+ "slots": [
14
+ {
15
+ "description": "The default slot",
16
+ "name": ""
17
+ }
18
+ ],
19
+ "members": [
20
+ {
21
+ "kind": "field",
22
+ "name": "_resizeFrame",
23
+ "type": {
24
+ "text": "number | null"
25
+ },
26
+ "privacy": "private",
27
+ "default": "null"
28
+ },
29
+ {
30
+ "kind": "method",
31
+ "name": "resize"
32
+ }
33
+ ],
34
+ "superclass": {
35
+ "name": "ZincElement",
36
+ "module": "/src/internal/zinc-element"
37
+ },
38
+ "summary": "The absolute container will take the total inner height of the content (positioned absolute), and set that\nas it's min height, Creating enough space to show the content.",
39
+ "tagNameWithoutPrefix": "absolute-container",
40
+ "tagName": "zn-absolute-container",
41
+ "customElement": true,
42
+ "jsDoc": "/**\n * @summary The absolute container will take the total inner height of the content (positioned absolute), and set that\n * as it's min height, Creating enough space to show the content.\n *\n * @documentation https://zinc.style/components/absolute-container\n * @status experimental\n * @since 1.0\n *\n * @slot - The default slot\n *\n */",
43
+ "documentation": "https://zinc.style/components/absolute-container",
44
+ "status": "experimental",
45
+ "since": "1.0"
46
+ }
47
+ ],
48
+ "exports": [
49
+ {
50
+ "kind": "js",
51
+ "name": "default",
52
+ "declaration": {
53
+ "name": "ZnAbsoluteContainer",
54
+ "module": "components/absolute-container/absolute-container.js"
55
+ }
56
+ }
57
+ ]
58
+ },
5
59
  {
6
60
  "kind": "javascript-module",
7
61
  "path": "components/action-bar/action-bar.js",
@@ -75,60 +129,6 @@
75
129
  }
76
130
  ]
77
131
  },
78
- {
79
- "kind": "javascript-module",
80
- "path": "components/absolute-container/absolute-container.js",
81
- "declarations": [
82
- {
83
- "kind": "class",
84
- "description": "",
85
- "name": "ZnAbsoluteContainer",
86
- "slots": [
87
- {
88
- "description": "The default slot",
89
- "name": ""
90
- }
91
- ],
92
- "members": [
93
- {
94
- "kind": "field",
95
- "name": "_resizeFrame",
96
- "type": {
97
- "text": "number | null"
98
- },
99
- "privacy": "private",
100
- "default": "null"
101
- },
102
- {
103
- "kind": "method",
104
- "name": "resize"
105
- }
106
- ],
107
- "superclass": {
108
- "name": "ZincElement",
109
- "module": "/src/internal/zinc-element"
110
- },
111
- "summary": "The absolute container will take the total inner height of the content (positioned absolute), and set that\nas it's min height, Creating enough space to show the content.",
112
- "tagNameWithoutPrefix": "absolute-container",
113
- "tagName": "zn-absolute-container",
114
- "customElement": true,
115
- "jsDoc": "/**\n * @summary The absolute container will take the total inner height of the content (positioned absolute), and set that\n * as it's min height, Creating enough space to show the content.\n *\n * @documentation https://zinc.style/components/absolute-container\n * @status experimental\n * @since 1.0\n *\n * @slot - The default slot\n *\n */",
116
- "documentation": "https://zinc.style/components/absolute-container",
117
- "status": "experimental",
118
- "since": "1.0"
119
- }
120
- ],
121
- "exports": [
122
- {
123
- "kind": "js",
124
- "name": "default",
125
- "declaration": {
126
- "name": "ZnAbsoluteContainer",
127
- "module": "components/absolute-container/absolute-container.js"
128
- }
129
- }
130
- ]
131
- },
132
132
  {
133
133
  "kind": "javascript-module",
134
134
  "path": "components/alert/alert.js",
@@ -28387,6 +28387,24 @@
28387
28387
  "privacy": "private",
28388
28388
  "default": "null"
28389
28389
  },
28390
+ {
28391
+ "kind": "field",
28392
+ "name": "_draggingId",
28393
+ "type": {
28394
+ "text": "string | null"
28395
+ },
28396
+ "privacy": "private",
28397
+ "default": "null"
28398
+ },
28399
+ {
28400
+ "kind": "field",
28401
+ "name": "_dragGhost",
28402
+ "type": {
28403
+ "text": "{ section: PageSection } | { type: PageSectionType } | null"
28404
+ },
28405
+ "privacy": "private",
28406
+ "default": "null"
28407
+ },
28390
28408
  {
28391
28409
  "kind": "field",
28392
28410
  "name": "_slotDragOver",
@@ -29051,6 +29069,25 @@
29051
29069
  }
29052
29070
  ]
29053
29071
  },
29072
+ {
29073
+ "kind": "method",
29074
+ "name": "_focusCard",
29075
+ "privacy": "private",
29076
+ "parameters": [
29077
+ {
29078
+ "name": "id",
29079
+ "type": {
29080
+ "text": "string"
29081
+ }
29082
+ }
29083
+ ],
29084
+ "description": "Hands focus to a card, moving it off the action button that was just used.\nCards render unkeyed, so focus left behind stays with the original card's\nelement and keeps its hover actions showing after the pointer leaves."
29085
+ },
29086
+ {
29087
+ "kind": "method",
29088
+ "name": "_blurActiveCard",
29089
+ "privacy": "private"
29090
+ },
29054
29091
  {
29055
29092
  "kind": "method",
29056
29093
  "name": "_moveSection",
@@ -29116,6 +29153,98 @@
29116
29153
  }
29117
29154
  ]
29118
29155
  },
29156
+ {
29157
+ "kind": "field",
29158
+ "name": "_ghostEl",
29159
+ "type": {
29160
+ "text": "HTMLElement | null"
29161
+ },
29162
+ "privacy": "private",
29163
+ "default": "null"
29164
+ },
29165
+ {
29166
+ "kind": "field",
29167
+ "name": "_ghostGrip",
29168
+ "type": {
29169
+ "text": "object"
29170
+ },
29171
+ "privacy": "private",
29172
+ "default": "{ x: 0, y: 0 }",
29173
+ "description": "Where in the card the pointer grabbed it, so the ghost keeps that grip."
29174
+ },
29175
+ {
29176
+ "kind": "field",
29177
+ "name": "_ghostOrigin",
29178
+ "type": {
29179
+ "text": "object"
29180
+ },
29181
+ "privacy": "private",
29182
+ "default": "{ x: 0, y: 0 }",
29183
+ "description": "The host's viewport origin; the ghost is positioned against the host."
29184
+ },
29185
+ {
29186
+ "kind": "method",
29187
+ "name": "_startGhost",
29188
+ "privacy": "private",
29189
+ "parameters": [
29190
+ {
29191
+ "name": "e",
29192
+ "type": {
29193
+ "text": "DragEvent"
29194
+ }
29195
+ },
29196
+ {
29197
+ "name": "ghost",
29198
+ "type": {
29199
+ "text": "NonNullable<typeof this._dragGhost>"
29200
+ }
29201
+ }
29202
+ ]
29203
+ },
29204
+ {
29205
+ "kind": "field",
29206
+ "name": "_onGhostDragOver",
29207
+ "privacy": "private"
29208
+ },
29209
+ {
29210
+ "kind": "field",
29211
+ "name": "_onGhostDrop",
29212
+ "privacy": "private"
29213
+ },
29214
+ {
29215
+ "kind": "field",
29216
+ "name": "_onGhostDragLeave",
29217
+ "privacy": "private"
29218
+ },
29219
+ {
29220
+ "kind": "method",
29221
+ "name": "_moveGhost",
29222
+ "privacy": "private",
29223
+ "parameters": [
29224
+ {
29225
+ "name": "clientX",
29226
+ "type": {
29227
+ "text": "number"
29228
+ }
29229
+ },
29230
+ {
29231
+ "name": "clientY",
29232
+ "type": {
29233
+ "text": "number"
29234
+ }
29235
+ }
29236
+ ]
29237
+ },
29238
+ {
29239
+ "kind": "method",
29240
+ "name": "_endGhost",
29241
+ "privacy": "private"
29242
+ },
29243
+ {
29244
+ "kind": "method",
29245
+ "name": "_renderDragGhost",
29246
+ "privacy": "private"
29247
+ },
29119
29248
  {
29120
29249
  "kind": "method",
29121
29250
  "name": "_isPageDrag",
@@ -33913,7 +34042,7 @@
33913
34042
  {
33914
34043
  "name": "event",
33915
34044
  "type": {
33916
- "text": "Event | {\n target: ZnDatepicker | HTMLDivElement\n }"
34045
+ "text": "Event | {\n target: ZnDatepicker | HTMLDivElement;\n }"
33917
34046
  }
33918
34047
  },
33919
34048
  {
@@ -41659,7 +41788,7 @@
41659
41788
  {
41660
41789
  "name": "e",
41661
41790
  "type": {
41662
- "text": "any"
41791
+ "text": "Event"
41663
41792
  }
41664
41793
  }
41665
41794
  ]
@@ -53005,7 +53134,7 @@
53005
53134
  "package": {
53006
53135
  "name": "@kubex/zinc",
53007
53136
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
53008
- "version": "1.1.137",
53137
+ "version": "1.1.139",
53009
53138
  "author": "",
53010
53139
  "license": "MIT"
53011
53140
  }
@@ -3,24 +3,24 @@
3
3
  "version": 1.1,
4
4
  "tags": [
5
5
  {
6
- "name": "zn-action-bar",
7
- "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.",
6
+ "name": "zn-absolute-container",
7
+ "description": "The absolute container will take the total inner height of the content (positioned absolute), and set that\nas it's min height, Creating enough space to show the content.\n---\n\n\n### **Slots:**\n - _default_ - The default slot",
8
8
  "attributes": [],
9
9
  "references": [
10
10
  {
11
11
  "name": "Documentation",
12
- "url": "https://zinc.style/components/action-bar"
12
+ "url": "https://zinc.style/components/absolute-container"
13
13
  }
14
14
  ]
15
15
  },
16
16
  {
17
- "name": "zn-absolute-container",
18
- "description": "The absolute container will take the total inner height of the content (positioned absolute), and set that\nas it's min height, Creating enough space to show the content.\n---\n\n\n### **Slots:**\n - _default_ - The default slot",
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
19
  "attributes": [],
20
20
  "references": [
21
21
  {
22
22
  "name": "Documentation",
23
- "url": "https://zinc.style/components/absolute-container"
23
+ "url": "https://zinc.style/components/action-bar"
24
24
  }
25
25
  ]
26
26
  },
@@ -1,11 +1,20 @@
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.137",
4
+ "version": "1.1.139",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
+ {
10
+ "name": "zn-absolute-container",
11
+ "description": "The absolute container will take the total inner height of the content (positioned absolute), and set that\nas it's min height, Creating enough space to show the content.\n---\n\n\n### **Slots:**\n - _default_ - The default slot",
12
+ "doc-url": "",
13
+ "attributes": [],
14
+ "slots": [{ "name": "", "description": "The default slot" }],
15
+ "events": [],
16
+ "js": { "properties": [], "events": [] }
17
+ },
9
18
  {
10
19
  "name": "zn-action-bar",
11
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.",
@@ -28,15 +37,6 @@
28
37
  ]
29
38
  }
30
39
  },
31
- {
32
- "name": "zn-absolute-container",
33
- "description": "The absolute container will take the total inner height of the content (positioned absolute), and set that\nas it's min height, Creating enough space to show the content.\n---\n\n\n### **Slots:**\n - _default_ - The default slot",
34
- "doc-url": "",
35
- "attributes": [],
36
- "slots": [{ "name": "", "description": "The default slot" }],
37
- "events": [],
38
- "js": { "properties": [], "events": [] }
39
- },
40
40
  {
41
41
  "name": "zn-alert",
42
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.",
package/dist/zn.d.ts CHANGED
@@ -488,8 +488,8 @@ declare module "components/popup/index" {
488
488
  }
489
489
  declare module "components/menu-item/submenu-controller" {
490
490
  import { type HasSlotController } from "internal/slot";
491
- import type { ReactiveController, ReactiveControllerHost } from 'lit';
492
491
  import { type LocalizeController } from "utilities/localize";
492
+ import type { ReactiveController, ReactiveControllerHost } from 'lit';
493
493
  import type ZnMenuItem from "components/menu-item/index";
494
494
  /** A reactive controller to manage the registration of event listeners for submenus. */
495
495
  export class SubmenuController implements ReactiveController {
@@ -2432,7 +2432,7 @@ declare module "components/input/input.component" {
2432
2432
  handleDisabledChange(): void;
2433
2433
  handleStepChange(): void;
2434
2434
  handleValueChange(): Promise<void>;
2435
- handleColorFormatChange(): Promise<void>;
2435
+ handleColorFormatChange(): void;
2436
2436
  /** Sets focus on the input. */
2437
2437
  focus(options?: FocusOptions): void;
2438
2438
  /** Removes focus from the input. */
@@ -5996,7 +5996,7 @@ declare module "components/sidebar/sidebar.component" {
5996
5996
  scrollBottom(): void;
5997
5997
  render(): import("lit-html").TemplateResult<1>;
5998
5998
  _expander(): import("lit-html").TemplateResult<1>;
5999
- handleClick(e: any): void;
5999
+ handleClick(e: Event): void;
6000
6000
  }
6001
6001
  }
6002
6002
  declare module "components/sidebar/index" {
@@ -11516,6 +11516,12 @@ declare module "components/page-builder/page.types" {
11516
11516
  * so a tile reads as its linked item however its other fields were filled in.
11517
11517
  */
11518
11518
  export function sectionSummary(section: PageSection, type?: PageSectionType): string;
11519
+ /**
11520
+ * A cached 1×1 transparent image for `dataTransfer.setDragImage()`. The browser
11521
+ * composites its own snapshot of the dragged node onto an opaque surface, which
11522
+ * squares off a card's rounded corners; the builder draws its own ghost instead.
11523
+ */
11524
+ export function emptyDragImage(): HTMLImageElement;
11519
11525
  }
11520
11526
  declare module "components/page-builder/page-registry" {
11521
11527
  import type { PageSectionType } from "components/page-builder/page.types";
@@ -11720,6 +11726,8 @@ declare module "components/page-builder/page-builder.component" {
11720
11726
  /** Index of the drop zone whose "+" type picker is open, if any. */
11721
11727
  private _pickerIndex;
11722
11728
  private _dragOverIndex;
11729
+ private _draggingId;
11730
+ private _dragGhost;
11723
11731
  /** The container slot a drag is currently over, if any. */
11724
11732
  private _slotDragOver;
11725
11733
  /** The container slot whose "+" type picker is open, if any. */
@@ -11851,6 +11859,13 @@ declare module "components/page-builder/page-builder.component" {
11851
11859
  private _onColumnsEntered;
11852
11860
  private _removeSection;
11853
11861
  private _duplicateSection;
11862
+ /**
11863
+ * Hands focus to a card, moving it off the action button that was just used.
11864
+ * Cards render unkeyed, so focus left behind stays with the original card's
11865
+ * element and keeps its hover actions showing after the pointer leaves.
11866
+ */
11867
+ private _focusCard;
11868
+ private _blurActiveCard;
11854
11869
  /** Moves a section (top-level or slotted) to a top-level position. */
11855
11870
  private _moveSection;
11856
11871
  /**
@@ -11860,6 +11875,18 @@ declare module "components/page-builder/page-builder.component" {
11860
11875
  */
11861
11876
  private _moveToSlot;
11862
11877
  private _onCardDragStart;
11878
+ private _ghostEl;
11879
+ /** Where in the card the pointer grabbed it, so the ghost keeps that grip. */
11880
+ private _ghostGrip;
11881
+ /** The host's viewport origin; the ghost is positioned against the host. */
11882
+ private _ghostOrigin;
11883
+ private _startGhost;
11884
+ private _onGhostDragOver;
11885
+ private _onGhostDrop;
11886
+ private _onGhostDragLeave;
11887
+ private _moveGhost;
11888
+ private _endGhost;
11889
+ private _renderDragGhost;
11863
11890
  /** Whether a drag carries one of the builder's own payloads. */
11864
11891
  private _isPageDrag;
11865
11892
  private _onSlotDragOver;
@@ -13378,9 +13405,6 @@ declare module "components/editor/modules/events/zn-editor-update" {
13378
13405
  }
13379
13406
  }
13380
13407
  }
13381
- declare module "components/hover-container/hover-container" {
13382
- import '../../../dist/zn.min.js';
13383
- }
13384
13408
  declare module "components/remarkd-editor/feature-keys" {
13385
13409
  /**
13386
13410
  * The remarkd feature fixtures, from `node_modules/remarkd-js/requirements/features/`.