@vectoriox/iox-builder 9.9.0 → 9.11.0
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/fesm2022/vectoriox-iox-builder.mjs +690 -289
- package/fesm2022/vectoriox-iox-builder.mjs.map +1 -1
- package/index.d.ts +138 -23
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import * as i26 from 'primeng/inputtext';
|
|
|
19
19
|
import * as i27 from 'primeng/select';
|
|
20
20
|
import * as i28 from 'primeng/tooltip';
|
|
21
21
|
import * as i29 from 'primeng/dialog';
|
|
22
|
-
import { AccordionRuntime, CompositeNodeFactory, CompositeNode } from '@vectoriox/iox-ui/composite-core';
|
|
22
|
+
import { AccordionRuntime, ExclusiveRuntime, CompositeNodeFactory, CompositeNode } from '@vectoriox/iox-ui/composite-core';
|
|
23
23
|
import { FormPresetDef } from '@vectoriox/iox-ui/forms-core';
|
|
24
24
|
|
|
25
25
|
declare enum StyleCategory {
|
|
@@ -859,10 +859,16 @@ declare enum CanvasShowState {
|
|
|
859
859
|
interface CanvasDesignSnapshot {
|
|
860
860
|
/** Hidden-at-rest PARTS (R2) the current SELECTION sits in (or is): shown while selected. */
|
|
861
861
|
revealed: ReadonlySet<string>;
|
|
862
|
+
/** The exclusive TRIGGERS (CC4a: tabs) on the selection's path: selecting one turns its item on, live — like a
|
|
863
|
+
* click on it (never forced, so the arrow keys keep working on the canvas). */
|
|
864
|
+
selectedTriggers: ReadonlySet<string>;
|
|
862
865
|
/** Free-standing overlays the selection opened (board A4): shown until closed (X, backdrop, eye). */
|
|
863
866
|
pinned: ReadonlySet<string>;
|
|
864
867
|
/** "Showing on canvas" choices, by the part's node id. */
|
|
865
868
|
shown: ReadonlyMap<string, CanvasShowState>;
|
|
869
|
+
/** "Showing on canvas" for an EXCLUSIVE composite (CC4a Tabs: one option per tab) — the item key shown, by the
|
|
870
|
+
* root's node id. */
|
|
871
|
+
items: ReadonlyMap<string, string>;
|
|
866
872
|
}
|
|
867
873
|
/**
|
|
868
874
|
* The canvas's DESIGN state (complex-components R2; composite plan §5a's CompositeDesignStateService,
|
|
@@ -896,6 +902,10 @@ declare class CanvasDesignStateService {
|
|
|
896
902
|
dismiss(nodeId: string | null | undefined): void;
|
|
897
903
|
/** The switcher's choice for one part (null = back to the saved default). */
|
|
898
904
|
setShown(nodeId: string, state: CanvasShowState | null): void;
|
|
905
|
+
/** Tabs' "Showing on canvas": the item a root shows (null = whatever the canvas shows live). */
|
|
906
|
+
setShownItem(rootId: string, key: string | null): void;
|
|
907
|
+
/** The item a root's "Showing on canvas" shows, or null. */
|
|
908
|
+
shownItem(rootId: string | null | undefined): string | null;
|
|
899
909
|
/** The switcher's current choice for one part. */
|
|
900
910
|
shownState(nodeId: string | null | undefined): CanvasShowState;
|
|
901
911
|
/** True when the canvas shows the part: selected into, or switched open. */
|
|
@@ -1093,11 +1103,28 @@ declare enum InsertRefusal {
|
|
|
1093
1103
|
/** A disclosure's toggle or panel (CC2.1) moved out of it. */
|
|
1094
1104
|
LockedDisclosurePartMove = "lockedDisclosurePartMove",
|
|
1095
1105
|
/** A disclosure's toggle or panel (CC2.1) deleted on its own. */
|
|
1096
|
-
LockedDisclosurePart = "lockedDisclosurePart"
|
|
1106
|
+
LockedDisclosurePart = "lockedDisclosurePart",
|
|
1107
|
+
/** A Slider's control (CC3) works only as its own direct child. */
|
|
1108
|
+
LockedSliderPartMove = "lockedSliderPartMove",
|
|
1109
|
+
/** The pause control stays while Autoplay is on (WCAG 2.2.2) — the Autoplay switch removes it. */
|
|
1110
|
+
LockedSliderPause = "lockedSliderPause",
|
|
1111
|
+
/** A Tabs' tab list or panels holder (CC4a) moved out of it. */
|
|
1112
|
+
LockedTabsPartMove = "lockedTabsPartMove",
|
|
1113
|
+
/** A Tabs' tab list or panels holder (CC4a) deleted on its own. */
|
|
1114
|
+
LockedTabsPart = "lockedTabsPart",
|
|
1115
|
+
/** Something other than a tab dropped into a tab list, or other than a panel into the panels holder (CC4a T18). */
|
|
1116
|
+
TabsAccepts = "tabsAccepts",
|
|
1117
|
+
/** A Tabs' LAST tab (composite plan T18): it keeps at least one. */
|
|
1118
|
+
LastTab = "lastTab",
|
|
1119
|
+
/** A tab or a panel deleted ALONE: the pair goes together — the host offers "Delete tab and its panel". Never said
|
|
1120
|
+
* as a refusal toast. */
|
|
1121
|
+
PairedPart = "pairedPart"
|
|
1097
1122
|
}
|
|
1098
1123
|
declare const FORM_STATE_BLOCK_TYPES: ReadonlySet<string>;
|
|
1099
1124
|
/** The builder-chrome label that says each refusal on screen (English in `BUILDER_CHROME_EN`). */
|
|
1100
1125
|
declare const INSERT_REFUSAL_LABEL_KEYS: Readonly<Record<InsertRefusal, string>>;
|
|
1126
|
+
/** The refusals that are not said as a toast: the host asks instead (a tab's pair). */
|
|
1127
|
+
declare const SILENT_REFUSALS: ReadonlySet<InsertRefusal>;
|
|
1101
1128
|
/** The refusal in the host's language (the library's English when no host resolver is provided). */
|
|
1102
1129
|
declare function insertRefusalLabel(reason: InsertRefusal, labels?: BuilderLabelResolver): string;
|
|
1103
1130
|
interface TypedNode {
|
|
@@ -1113,8 +1140,9 @@ interface TypedNode {
|
|
|
1113
1140
|
*/
|
|
1114
1141
|
declare function insertRefusal(node: TypedNode | null | undefined, ancestors: readonly TypedNode[]): InsertRefusal | null;
|
|
1115
1142
|
/** Why `node` may not be REMOVED from where it is (deleted, cut, made global), or null when it may: a
|
|
1116
|
-
* composite's locked part stays — its Parts switch or deleting the whole composite are the ways out —
|
|
1117
|
-
* accordion keeps its last item
|
|
1143
|
+
* composite's locked part stays — its Parts switch or deleting the whole composite are the ways out — an
|
|
1144
|
+
* accordion keeps its last item, Tabs their last tab, and a tab or a panel never leaves without its pair (the host
|
|
1145
|
+
* offers to delete both). `siblings` = the list `node` sits in (where the caller has it). */
|
|
1118
1146
|
declare function removalRefusal(node: TypedNode | null | undefined, siblings?: readonly TypedNode[] | null): InsertRefusal | null;
|
|
1119
1147
|
|
|
1120
1148
|
/**
|
|
@@ -1177,6 +1205,8 @@ declare class DragEngineService {
|
|
|
1177
1205
|
constructor(registry: ComponentRegistryService, symbolRegistry: SymbolRegistryService, overlayService: OverlayService, labels?: BuilderLabelResolver | null);
|
|
1178
1206
|
/** Every insert the builder refused, for the host to say on screen (a toast). */
|
|
1179
1207
|
readonly insertRefused$: Subject<InsertRefusedEvent>;
|
|
1208
|
+
/** A tab or a panel asked to leave ALONE (CC4a): the builder offers "Delete tab and its panel" for it. */
|
|
1209
|
+
readonly pairRemoval$: Subject<ComponentNode>;
|
|
1180
1210
|
/**
|
|
1181
1211
|
* The ONE acceptance check for every insert path: null when `data` (a panel payload or a node) may go
|
|
1182
1212
|
* under `ancestors`; otherwise the refusal, already announced on `insertRefused$`.
|
|
@@ -1751,6 +1781,8 @@ declare class InteractionEngineService {
|
|
|
1751
1781
|
private executeItemAction;
|
|
1752
1782
|
private executeConsentAction;
|
|
1753
1783
|
private executeDialogAction;
|
|
1784
|
+
/** The slider inside the opened dialog (its canvas twin renders on the next passes) → the row's slide. */
|
|
1785
|
+
private slideDialogToRow;
|
|
1754
1786
|
private executeSwiperAction;
|
|
1755
1787
|
private resolveTarget;
|
|
1756
1788
|
private executeAction;
|
|
@@ -2177,7 +2209,7 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
2177
2209
|
* `utils/responsive-audit.util.ts`.
|
|
2178
2210
|
*/
|
|
2179
2211
|
runAudit(): void;
|
|
2180
|
-
/** An Accordion from content whose source came back with no rows
|
|
2212
|
+
/** An Accordion — or Tabs (CC4a: its list) — from content whose source came back with no rows: what the audit names. */
|
|
2181
2213
|
private emptySourceOf;
|
|
2182
2214
|
/** The node's OWN trait values — the Base layer the responsive `inputs` cascade sits on top of. */
|
|
2183
2215
|
private baseInputMapOf;
|
|
@@ -2219,6 +2251,12 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
2219
2251
|
scrollbarTranslate: number;
|
|
2220
2252
|
activeSidebar: 'components' | 'tree' | 'tokens' | 'pages';
|
|
2221
2253
|
showSaveBlockDialog: boolean;
|
|
2254
|
+
/** A tab or a panel asked to be deleted alone (CC4a): "Delete tab and its panel" is offered for it. */
|
|
2255
|
+
pendingPairRemoval: {
|
|
2256
|
+
node: ComponentNode;
|
|
2257
|
+
root: ComponentNode;
|
|
2258
|
+
label: string;
|
|
2259
|
+
} | null;
|
|
2222
2260
|
saveBlockName: string;
|
|
2223
2261
|
private pendingBlockNode;
|
|
2224
2262
|
isPanning: boolean;
|
|
@@ -2387,6 +2425,18 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
2387
2425
|
/** Toolbar ▸ Add item on an accordion part (CC2): a fresh item after the selection's own item (or at the end
|
|
2388
2426
|
* for the root), the recipe's own item — ONE undo step, then the new item's header is selected. */
|
|
2389
2427
|
private addAccordionItemFrom;
|
|
2428
|
+
/** Toolbar ▸ Add tab on a Tabs part (CC4a): a fresh tab AND its panel after the selection's own tab (or at the end
|
|
2429
|
+
* for the root, the list, the holder) — ONE undo step, then the new tab is selected. False when `node` is no Tabs part. */
|
|
2430
|
+
private addTabPairFrom;
|
|
2431
|
+
/** Duplicate on a tab or a panel (toolbar, layer tree): the PAIR is duplicated under one new key. True when handled. */
|
|
2432
|
+
private duplicateTabPairOf;
|
|
2433
|
+
/** A tab or a panel asked to be deleted ALONE (every delete path asks the one guard): offer the pair. */
|
|
2434
|
+
private offerPairRemoval;
|
|
2435
|
+
/** "Delete tab and its panel": both go, ONE undo step. */
|
|
2436
|
+
confirmPairRemoval(): void;
|
|
2437
|
+
cancelPairRemoval(): void;
|
|
2438
|
+
/** The pair-removal confirm's words, in the host's language. */
|
|
2439
|
+
pairRemovalText(key: string): string;
|
|
2390
2440
|
confirmSaveBlock(): void;
|
|
2391
2441
|
cancelSaveBlock(): void;
|
|
2392
2442
|
private deepCloneWithNewIds;
|
|
@@ -2673,11 +2723,13 @@ declare class OverlayComponent implements OnInit, OnDestroy {
|
|
|
2673
2723
|
private readonly builderLabels;
|
|
2674
2724
|
/** The kind badge's glyph: the composite's kind icon (board 9: "kind icon + 'Accordion · trigger'"). */
|
|
2675
2725
|
get selectedRoleIcon(): string;
|
|
2676
|
-
/** A composite part's kind + role under the selection (board 3/8 "Selection kind badge"), or null.
|
|
2726
|
+
/** A composite part's kind + role under the selection (board 3/8 "Selection kind badge"), or null. A Video says
|
|
2727
|
+
* where it plays from and that the canvas shows its poster only (board 5: "Video · YouTube · poster only"). */
|
|
2677
2728
|
get selectedRoleBadge(): string | null;
|
|
2729
|
+
private videoBadge;
|
|
2678
2730
|
/** The selection toolbar's name: the part's LAYER name (board 3 — "Header", "Accordion"), else its type. */
|
|
2679
2731
|
get toolbarName(): string;
|
|
2680
|
-
/** An accordion part: the toolbar's "Add item" (CC2). */
|
|
2732
|
+
/** An accordion part: the toolbar's "Add item" (CC2); a Tabs part: "Add tab" (CC4a). */
|
|
2681
2733
|
get canAddItem(): boolean;
|
|
2682
2734
|
get addItemLabel(): string;
|
|
2683
2735
|
onAddItem(event: MouseEvent): void;
|
|
@@ -3156,7 +3208,19 @@ declare class SliderContainerComponent implements OnInit, AfterViewInit, OnChang
|
|
|
3156
3208
|
private dataSourceService;
|
|
3157
3209
|
private dsRegistry;
|
|
3158
3210
|
private panelEventService;
|
|
3159
|
-
|
|
3211
|
+
private _children;
|
|
3212
|
+
/** Every child — the slides AND the control parts (CC3). Split once per change, never in a getter. */
|
|
3213
|
+
set children(value: ComponentNode[]);
|
|
3214
|
+
get children(): ComponentNode[];
|
|
3215
|
+
/** The slides (into `.swiper-wrapper`); the template slide of a bound slider is `slides[0]`. */
|
|
3216
|
+
slides: ComponentNode[];
|
|
3217
|
+
/** Control parts before the first slide / after it — rendered beside the wrapper, inside `.swiper`. */
|
|
3218
|
+
leadParts: ComponentNode[];
|
|
3219
|
+
trailParts: ComponentNode[];
|
|
3220
|
+
/** The controls are parts: Swiper draws none of its own. */
|
|
3221
|
+
controlParts: boolean;
|
|
3222
|
+
/** A saved slider whose controls are not parts yet keeps Swiper-drawn ones. */
|
|
3223
|
+
get legacyControls(): boolean;
|
|
3160
3224
|
private _style;
|
|
3161
3225
|
private _previewStyle;
|
|
3162
3226
|
private _editShellStyle;
|
|
@@ -3237,6 +3301,7 @@ declare class SliderContainerComponent implements OnInit, AfterViewInit, OnChang
|
|
|
3237
3301
|
private _isInTemplate;
|
|
3238
3302
|
private _scheduleReinit;
|
|
3239
3303
|
private _initSwiper;
|
|
3304
|
+
private swiperInputs;
|
|
3240
3305
|
private _destroySwiper;
|
|
3241
3306
|
private _onSwiperEvent;
|
|
3242
3307
|
static ɵfac: i0.ɵɵFactoryDeclaration<SliderContainerComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
@@ -3622,20 +3687,22 @@ declare class BuilderHistoryService {
|
|
|
3622
3687
|
}
|
|
3623
3688
|
|
|
3624
3689
|
/**
|
|
3625
|
-
* The composites'
|
|
3626
|
-
* CC2.1) opens and closes on the canvas exactly as on the site: the SAME composite-core
|
|
3627
|
-
* engine attaches. A composite repeated in a Repeater's preview rows runs
|
|
3628
|
-
* (its row folded into the scope id — vectoriox/iox-ui#20). On top of the live
|
|
3629
|
-
* designing (R2, CC1's design state):
|
|
3630
|
-
* - selecting anything inside a CLOSED panel (canvas, tree, crumb, an Items row, SELECT_NODE)
|
|
3631
|
-
* while it is selected, and deselecting
|
|
3632
|
-
* -
|
|
3690
|
+
* The composites' runtimes ON THE CANVAS (CC2, CC4a) — the canvas is a live runtime, so an Accordion (and a Disclosure,
|
|
3691
|
+
* CC2.1) opens and closes, and Tabs switch, on the canvas exactly as on the site: the SAME composite-core runtimes the
|
|
3692
|
+
* live engine attaches (`AccordionRuntime`, `ExclusiveRuntime`). A composite repeated in a Repeater's preview rows runs
|
|
3693
|
+
* one per row, each with its own ARIA ids (its row folded into the scope id — vectoriox/iox-ui#20). On top of the live
|
|
3694
|
+
* state it shows what the author is designing (R2, CC1's design state):
|
|
3695
|
+
* - selecting anything inside a CLOSED panel or an INACTIVE tab panel (canvas, tree, crumb, an Items row, SELECT_NODE)
|
|
3696
|
+
* shows it while it is selected, and deselecting goes back;
|
|
3697
|
+
* - selecting a TAB (from anywhere) turns it on, live, like a click on it;
|
|
3698
|
+
* - "Showing on canvas": All open / As saved (accordion), one option per tab (Tabs).
|
|
3633
3699
|
* Canvas-only: it never writes a node, so the saved page is unchanged and nothing becomes an undo step.
|
|
3634
3700
|
*/
|
|
3635
3701
|
declare class CompositeCanvasService implements OnDestroy {
|
|
3636
3702
|
private readonly designState;
|
|
3637
3703
|
private readonly zone;
|
|
3638
3704
|
private readonly attached;
|
|
3705
|
+
private readonly exclusive;
|
|
3639
3706
|
private readonly sub;
|
|
3640
3707
|
constructor(designState: CanvasDesignStateService | null, zone: NgZone);
|
|
3641
3708
|
ngOnDestroy(): void;
|
|
@@ -3643,15 +3710,21 @@ declare class CompositeCanvasService implements OnDestroy {
|
|
|
3643
3710
|
* root's rendered element. Its ARIA ids are scoped by the preview rows it sits in. */
|
|
3644
3711
|
attach(node: ComponentNode, element: HTMLElement): void;
|
|
3645
3712
|
detach(nodeId: string | null | undefined): void;
|
|
3646
|
-
/** The root's behaviour changed in its panel (Allow several open, Open by default). */
|
|
3713
|
+
/** The root's behaviour changed in its panel (Allow several open, Open by default; Activate on, Orientation). */
|
|
3647
3714
|
refreshBehaviour(node: ComponentNode): void;
|
|
3648
|
-
/** The runtime of an attached root (the e2e harness and the panels read its state). */
|
|
3715
|
+
/** The runtime of an attached Accordion / Disclosure root (the e2e harness and the panels read its state). */
|
|
3649
3716
|
runtimeOf(nodeId: string | null | undefined): AccordionRuntime | null;
|
|
3717
|
+
/** The runtime of an attached Tabs root (CC4a — "Showing on canvas" reads its tabs and the one on). */
|
|
3718
|
+
tabsRuntimeOf(nodeId: string | null | undefined): ExclusiveRuntime | null;
|
|
3650
3719
|
private applyDesignState;
|
|
3720
|
+
/** A Tabs on the canvas follows "Showing on canvas" and a selected tab (live), then shows any forced panel. */
|
|
3721
|
+
private applyExclusive;
|
|
3651
3722
|
/** The keys the design state holds open: every item ("All open"), or the items whose hidden part the
|
|
3652
3723
|
* selection sits in. A preview row shares its template's classes, so the template (row 1) answers — and a
|
|
3653
3724
|
* composite copied into a preview row follows its template's choice. */
|
|
3654
3725
|
private forcedFor;
|
|
3726
|
+
/** The tab forced on: the one whose panel the selection sits in (the template's, in a preview row's copy). */
|
|
3727
|
+
private forcedTab;
|
|
3655
3728
|
static ɵfac: i0.ɵɵFactoryDeclaration<CompositeCanvasService, [{ optional: true; }, null]>;
|
|
3656
3729
|
static ɵprov: i0.ɵɵInjectableDeclaration<CompositeCanvasService>;
|
|
3657
3730
|
}
|
|
@@ -3661,8 +3734,7 @@ declare class CompositeCanvasService implements OnDestroy {
|
|
|
3661
3734
|
* screen until something opens them, so on the canvas they show only while selected into or switched
|
|
3662
3735
|
* open ("Showing on canvas"). The layer tree marks them with the eye-slash glyph. A Dialog (the mobile
|
|
3663
3736
|
* menu's drawer, a consent banner) by its type; an Accordion's PANEL by its role (CC2 — closed until its
|
|
3664
|
-
* item opens); a Disclosure's panel and its "Read less" word (CC2.1 — shown only while it is open).
|
|
3665
|
-
* tab joins in CC4.
|
|
3737
|
+
* item opens); a Disclosure's panel and its "Read less" word (CC2.1 — shown only while it is open).
|
|
3666
3738
|
*/
|
|
3667
3739
|
declare const HIDDEN_AT_REST_TYPES: ReadonlyArray<string>;
|
|
3668
3740
|
declare const HIDDEN_AT_REST_ROLES: ReadonlyArray<string>;
|
|
@@ -3681,6 +3753,17 @@ declare enum SelectionReveal {
|
|
|
3681
3753
|
WhileSelected = "while-selected",
|
|
3682
3754
|
UntilClosed = "until-closed"
|
|
3683
3755
|
}
|
|
3756
|
+
/**
|
|
3757
|
+
* Parts hidden at rest that live in a composite's TOGGLE, not in its panel (CC2.1 follow-up, approved 2026-10-21): a
|
|
3758
|
+
* click on one on the canvas toggles the composite live — selecting it never forces the reveal, so "Read less"
|
|
3759
|
+
* closes the disclosure it was clicked in. Only a part inside a PANEL is revealed by the selection.
|
|
3760
|
+
*/
|
|
3761
|
+
declare const TOGGLE_PART_ROLES: ReadonlyArray<string>;
|
|
3762
|
+
/**
|
|
3763
|
+
* Parts the selection REVEALS though they are not hidden at rest (CC4a): a tab PANEL — one is always on, so the layer
|
|
3764
|
+
* tree draws it no eye-slash (board 3), but selecting anything inside an inactive one shows its tab while selected.
|
|
3765
|
+
*/
|
|
3766
|
+
declare const REVEALED_WHILE_SELECTED_ROLES: ReadonlyArray<string>;
|
|
3684
3767
|
declare function selectionRevealOf(node: {
|
|
3685
3768
|
type?: string;
|
|
3686
3769
|
role?: string | null;
|
|
@@ -3910,10 +3993,12 @@ declare enum CompositePresetId {
|
|
|
3910
3993
|
Badge = "badge",
|
|
3911
3994
|
Chip = "chip",
|
|
3912
3995
|
Accordion = "accordion",
|
|
3913
|
-
Disclosure = "disclosure"
|
|
3996
|
+
Disclosure = "disclosure",
|
|
3997
|
+
Tabs = "tabs",
|
|
3998
|
+
Lightbox = "lightbox"
|
|
3914
3999
|
}
|
|
3915
4000
|
/** Where a composite sits in the Components panel (composite plan §6d): content blocks, or the interactive
|
|
3916
|
-
* composites (the Accordion — CC2, the Disclosure — CC2.1
|
|
4001
|
+
* composites (the Accordion — CC2, the Disclosure — CC2.1, Tabs — CC4a; the floating family later). */
|
|
3917
4002
|
declare enum CompositePaletteGroup {
|
|
3918
4003
|
ContentBlocks = "content-blocks",
|
|
3919
4004
|
Interactive = "interactive"
|
|
@@ -3989,6 +4074,23 @@ declare const FORM_TYPE = "Form";
|
|
|
3989
4074
|
*/
|
|
3990
4075
|
declare function nearestFormNode(path: readonly ComponentNode[] | null | undefined): ComponentNode | null;
|
|
3991
4076
|
|
|
4077
|
+
/**
|
|
4078
|
+
* A tab and its panel go TOGETHER on the canvas (CC4a — composite T18): deleting either deletes both ("Delete tab and
|
|
4079
|
+
* its panel"), duplicating either duplicates both under one fresh key. The pairing is composite-core's (`itemKey`);
|
|
4080
|
+
* this is the builder's tree surgery over it, shared by every path (toolbar, layer tree, the host's Cmd+D / Delete).
|
|
4081
|
+
*/
|
|
4082
|
+
/** The Tabs a tab or a panel belongs to — a MANUAL one (From content, the rows are not nodes) — or null. */
|
|
4083
|
+
declare function tabsRootForPart(layout: ComponentNode[], globals: ComponentNode[], node: ComponentNode): ComponentNode | null;
|
|
4084
|
+
/** The words the pair is named by in the confirm: its tab's. */
|
|
4085
|
+
declare function tabPairLabel(root: ComponentNode, node: ComponentNode): string;
|
|
4086
|
+
/** Delete a tab and its panel. True when the pair was removed. */
|
|
4087
|
+
declare function deleteTabPair(root: ComponentNode, node: ComponentNode): boolean;
|
|
4088
|
+
/**
|
|
4089
|
+
* Duplicate a tab and its panel: copies (`clone` gives fresh ids) placed right after the originals, both under ONE new
|
|
4090
|
+
* key — so the copy's tab shows the copy's panel. Returns the new tab, or null when `node` is no tab or panel of `root`.
|
|
4091
|
+
*/
|
|
4092
|
+
declare function duplicateTabPair(root: ComponentNode, node: ComponentNode, clone: (n: ComponentNode) => ComponentNode): ComponentNode | null;
|
|
4093
|
+
|
|
3992
4094
|
/**
|
|
3993
4095
|
* ROOT ESCAPE — near the top or bottom edge of a ROOT-level container the drop goes to the PAGE, between
|
|
3994
4096
|
* root containers, instead of inside the container. This file is the decision; DragEngineService only
|
|
@@ -4120,6 +4222,19 @@ declare class GalleryConfig extends ComponentConfig {
|
|
|
4120
4222
|
constructor();
|
|
4121
4223
|
}
|
|
4122
4224
|
|
|
4225
|
+
/**
|
|
4226
|
+
* Video (CC3 — complex-components plan §7b, board 5): a LEAF. The RENDER component is the shared `iox-video`
|
|
4227
|
+
* (`IoxVideoComponent` in @vectoriox/iox-ui) — the canvas shows its poster only; Preview and the live site run the
|
|
4228
|
+
* media-core runtime (the YouTube / Vimeo facade behind consent, the background video's pause button).
|
|
4229
|
+
*
|
|
4230
|
+
* Bindings ▸ Media · Behaviour · Accessibility · Privacy (boards 5 and 9). The address and the poster are bindable (a
|
|
4231
|
+
* project's video field) and work inside a Repeater. Background mode and autoplay act on an uploaded file; a YouTube
|
|
4232
|
+
* or Vimeo video is always the facade (D5) and plays on a click, after consent — the panel says so.
|
|
4233
|
+
*/
|
|
4234
|
+
declare class VideoConfig extends ComponentConfig {
|
|
4235
|
+
constructor();
|
|
4236
|
+
}
|
|
4237
|
+
|
|
4123
4238
|
/**
|
|
4124
4239
|
* Field's styleable sub-elements (board 7 — "the failure design"), for the Style panel's picker.
|
|
4125
4240
|
* Class names come from the SHARED `PART_CLASS_NAMES` (`@vectoriox/iox-ui`) — the same map the
|
|
@@ -4223,5 +4338,5 @@ declare class TextBlockComponentConfig extends ComponentConfig {
|
|
|
4223
4338
|
constructor();
|
|
4224
4339
|
}
|
|
4225
4340
|
|
|
4226
|
-
export { ACTION_TYPE_OPTIONS, AuditCode, AuditPanelComponent, AuditSeverity, BODY_CRUMB_LABEL, BOUND_ICON, BREAKPOINT_PRESENTATION, BUILDER_CANVAS_CONTAINER, BUILDER_CHROME_EN, BUILDER_FONT_LINK_ATTR, BUILDER_TOKEN_SCOPE_CLASS, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BreadcrumbBarComponent, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDialogComponent, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderRepeaterComponent, BuilderSpacerComponentConfig, ButtonBlockComponentConfig, CANVAS_EMPTY_IMAGE_LABEL_EN, CANVAS_EMPTY_IMAGE_LABEL_KEY, CANVAS_ROOT_RESET_CSS, COMPOSITE_PRESETS, CanvasDesignStateService, CanvasShowState, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, CompositeCanvasService, CompositePaletteGroup, CompositePresetId, DEFAULT_ESSENTIAL_TRAITS, DESCRIPTOR_MAX_LENGTH, DRAG_HANDLE_ATTR, DROP_REFUSED_CLASS, DataSourceRegistryService, DataSourceType, DialogComponentConfig, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS, EDITOR_CHROME_ATTRIBUTE, ESSENTIAL_TRAITS_BY_TYPE, EffectsGroupStyleConfig, FIELD_KIND_PRESETS, FIELD_PARTS, FORM_STATE_BLOCK_TYPES, FORM_TYPE, FieldComponentConfig, FieldGroupComponentConfig, FormComponentConfig, FormErrorComponentConfig, FormStateService, FormSuccessComponentConfig, GLOBALS_AFTER_CLASS, GalleryConfig, GlobalCanvasLayer, GroupStyleConfig, HIDDEN_AT_REST_LABEL_KEY, HIDDEN_AT_REST_ROLES, HIDDEN_AT_REST_TYPES, INSERT_REFUSAL_LABEL_KEYS, INTERACTION_STATES, INVERSE_ACTION, IOX_BUILDER_CANVAS, IOX_BUILDER_LABELS, IOX_CONTENT_TYPE_LABELS, IOX_DATA_SOURCE_ENDPOINTS, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OverlayComponent, OverlayService, PALETTE_PRESET_DEFS, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, REPEATER_SOURCE_PROP, REPEATER_TYPE, ROOT_ESCAPE_PX, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, RootZone, SCREEN_WIDTH_OPTIONS, STRUCTURAL_STATES, SUPPORTED_STATES, SectionComponent, SectionComponentConfig, SelectionReveal, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StructureFix, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SubmitButtonComponentConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, VALIDATION_STATES, VALIDATION_STATE_CLASS, ViewportService, ZOOM_OPTIONS, arrayItemSchemaFields, arraySchemaFields, auditNodes, bindingLabel, bindingLabels, buildCompositePreset, buildConsentPreset, buildElementStyleSpecimen, buildFieldKindPreset, buildFlavorSpecimen, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPalettePreset, buildPresetStyleTraits, builderCompositeFactory, canFluidise, canvasEmptyImageLabel, collapseColumnsProps, columnCountOf, defaultBuilderLabels, defaultPageSettings, dropChildren, dropTargetLabel, escapesRoot, essentialTraitsFor, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, generateNodeId, globalCanvasLayer, insertRefusal, insertRefusalLabel, isHiddenAt, isHiddenAtRest, isPinnedGlobal, isSpecimen, markSpecimen, matchesControlSearch, nearestFormNode, nodeAncestorPath, nodeAncestorPathInEither, nodeDescriptor, nodeStyleMap, overlayGlobals, pathToNode, refreshSubtree, regenerateNodeIds, removalRefusal, reorderProps, repeaterSourceAlias, repeaterSubLabel, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, retypeNode, rootEscapeBand, rootZone, selectionRevealOf, setStyleTrait, setTrait, shortDescriptor, sourceContentType, sourceTypeLabel, stackChildrenProps, summarise, syncEmptyImagePlaceholder, syncNodeDesign, syncNodeInputs, textNode, upsertNodeStyles, visibilityProps, walkNodes, wrapNode };
|
|
4341
|
+
export { ACTION_TYPE_OPTIONS, AuditCode, AuditPanelComponent, AuditSeverity, BODY_CRUMB_LABEL, BOUND_ICON, BREAKPOINT_PRESENTATION, BUILDER_CANVAS_CONTAINER, BUILDER_CHROME_EN, BUILDER_FONT_LINK_ATTR, BUILDER_TOKEN_SCOPE_CLASS, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BreadcrumbBarComponent, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDialogComponent, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderRepeaterComponent, BuilderSpacerComponentConfig, ButtonBlockComponentConfig, CANVAS_EMPTY_IMAGE_LABEL_EN, CANVAS_EMPTY_IMAGE_LABEL_KEY, CANVAS_ROOT_RESET_CSS, COMPOSITE_PRESETS, CanvasDesignStateService, CanvasShowState, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, CompositeCanvasService, CompositePaletteGroup, CompositePresetId, DEFAULT_ESSENTIAL_TRAITS, DESCRIPTOR_MAX_LENGTH, DRAG_HANDLE_ATTR, DROP_REFUSED_CLASS, DataSourceRegistryService, DataSourceType, DialogComponentConfig, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS, EDITOR_CHROME_ATTRIBUTE, ESSENTIAL_TRAITS_BY_TYPE, EffectsGroupStyleConfig, FIELD_KIND_PRESETS, FIELD_PARTS, FORM_STATE_BLOCK_TYPES, FORM_TYPE, FieldComponentConfig, FieldGroupComponentConfig, FormComponentConfig, FormErrorComponentConfig, FormStateService, FormSuccessComponentConfig, GLOBALS_AFTER_CLASS, GalleryConfig, GlobalCanvasLayer, GroupStyleConfig, HIDDEN_AT_REST_LABEL_KEY, HIDDEN_AT_REST_ROLES, HIDDEN_AT_REST_TYPES, INSERT_REFUSAL_LABEL_KEYS, INTERACTION_STATES, INVERSE_ACTION, IOX_BUILDER_CANVAS, IOX_BUILDER_LABELS, IOX_CONTENT_TYPE_LABELS, IOX_DATA_SOURCE_ENDPOINTS, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OverlayComponent, OverlayService, PALETTE_PRESET_DEFS, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, REPEATER_SOURCE_PROP, REPEATER_TYPE, REVEALED_WHILE_SELECTED_ROLES, ROOT_ESCAPE_PX, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, RootZone, SCREEN_WIDTH_OPTIONS, SILENT_REFUSALS, STRUCTURAL_STATES, SUPPORTED_STATES, SectionComponent, SectionComponentConfig, SelectionReveal, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StructureFix, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SubmitButtonComponentConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TOGGLE_PART_ROLES, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, VALIDATION_STATES, VALIDATION_STATE_CLASS, VideoConfig, ViewportService, ZOOM_OPTIONS, arrayItemSchemaFields, arraySchemaFields, auditNodes, bindingLabel, bindingLabels, buildCompositePreset, buildConsentPreset, buildElementStyleSpecimen, buildFieldKindPreset, buildFlavorSpecimen, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPalettePreset, buildPresetStyleTraits, builderCompositeFactory, canFluidise, canvasEmptyImageLabel, collapseColumnsProps, columnCountOf, defaultBuilderLabels, defaultPageSettings, deleteTabPair, dropChildren, dropTargetLabel, duplicateTabPair, escapesRoot, essentialTraitsFor, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, generateNodeId, globalCanvasLayer, insertRefusal, insertRefusalLabel, isHiddenAt, isHiddenAtRest, isPinnedGlobal, isSpecimen, markSpecimen, matchesControlSearch, nearestFormNode, nodeAncestorPath, nodeAncestorPathInEither, nodeDescriptor, nodeStyleMap, overlayGlobals, pathToNode, refreshSubtree, regenerateNodeIds, removalRefusal, reorderProps, repeaterSourceAlias, repeaterSubLabel, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, retypeNode, rootEscapeBand, rootZone, selectionRevealOf, setStyleTrait, setTrait, shortDescriptor, sourceContentType, sourceTypeLabel, stackChildrenProps, summarise, syncEmptyImagePlaceholder, syncNodeDesign, syncNodeInputs, tabPairLabel, tabsRootForPart, textNode, upsertNodeStyles, visibilityProps, walkNodes, wrapNode };
|
|
4227
4342
|
export type { AuditFinding, AuditNode, BreakpointPresentation, BuilderClipboard, BuilderLabelResolver, CanvasDesignSnapshot, ComponentEventDef, ComponentMethodDef, ComponentNode, ComponentTrait, CompositePresetDef, ConsentPreset, ContentTypeLabelResolver, CreateConfig, Crumb, DesignSpecimenCopy, DragPayload, DsFilterByQueryParam, DsFilterByRouteParam, ElementState, FieldKindDef, FormStateSnapshot, GlobalLayerSource, HistoryChange, HistoryEntry, HistoryStep, InsertRefusedEvent, InsertTarget, InteractionAction, InteractionActionType, InteractionPreset, InteractionTrigger, IoxBinding, IoxDataSource, IoxDropEvent, IoxInteraction, IoxSymbol, LayerMoreRows, LayerRepeaterRows, LayerTreeContext, LayerTreeRow, LayoutPresetChildStyles, LayoutPresetDef, NodeRef, OverlayBoxModel, OverlayBoxSpacing, OverlayEntry, OverlayGlobals, PageRouteAnimationSettings, PageScrollSettings, PageSettings, PalettePresetDef, PanelEvent, QuadSizeSegment, RootEscapeMemory, RouteAnimationPreset, ScreenWidthOption, SelectionBadge, StyleMap, StylePart, StylePreset, StyleTrait, StyleTraitGroup, TraitOptionMap, TraitSelectOption, TraitShowCondition, TreePathNode, UpsertTokensOptions, ViewportState, ZoomOption };
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vectoriox/iox-builder",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.11.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=20.0.0",
|
|
6
6
|
"@angular/core": ">=20.0.0",
|
|
7
7
|
"@angular/animations": ">=20.0.0",
|
|
8
8
|
"@angular/cdk": ">=20.0.0",
|
|
9
|
-
"@vectoriox/iox-ui": ">=5.
|
|
9
|
+
"@vectoriox/iox-ui": ">=5.39.0",
|
|
10
10
|
"interactjs": "^1.10.27",
|
|
11
11
|
"primeng": ">=20.0.0",
|
|
12
12
|
"swiper": ">=12.0.0",
|