@vectoriox/iox-builder 11.40.0 → 11.41.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 +253 -37
- package/fesm2022/vectoriox-iox-builder.mjs.map +1 -1
- package/index.d.ts +107 -11
- package/package.json +1 -1
|
@@ -17,11 +17,11 @@ import { TooltipModule } from 'primeng/tooltip';
|
|
|
17
17
|
import * as i20 from 'primeng/dialog';
|
|
18
18
|
import { DialogModule } from 'primeng/dialog';
|
|
19
19
|
import * as i2$1 from '@vectoriox/iox-ui';
|
|
20
|
-
import { nodeCssId, needsGroupName, resolveBoundValue, isBoundStyleProp, STRUCTURAL_STATES as STRUCTURAL_STATES$1, VALIDATION_STATES as VALIDATION_STATES$1, VALIDATION_STATE_CLASS as VALIDATION_STATE_CLASS$1, DEFAULT_WIDTH_BY_TYPE, TEXT_DIRECTION_KEY, TEXT_ALIGN_KEY, TextAlign, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, LinkType, MAX_LINES_KEY, A11yTrait, BREAKPOINTS, Breakpoint, withSchemeInk, stripSuppressedProps, DeclarationContext, planPartRule, gateHoverRule, planResponsiveRules, resolveStyleProps, planStateRule, splitOuterProps, OUTER_STYLE_PROPS, siteColumnOf, compileTokenCssBlocks, catalogFontId, fontsForTokens, GOOGLE_FONTS_FILE_ORIGIN, googleFontHref, compileDeclarations, isLastEmittedStateKey, wrapInBreakpointQuery, BreakpointQueryKind, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, applyElementStyle, planDataSource, dataSourcePlanToRequest, normalizeCollectionResult, resolveRepeaterItems, getByPath, computeRelative, PROGRESS_ATTRIBUTE, interactionMarkerAttributes, cascadeChain, attachScrollProgress, ContextStore, ENTRANCE_ACTION_TYPES, EXIT_ACTION_TYPES, ComponentInstanceRegistryService, syncInteractionMarkers, entranceStartsHidden, isActionEnabled, restoreCountUp, SCROLL_PROGRESS_TRIGGER, armInteractionCounts, splitPressFeedback, isHoverPointer, isContextAction, contextActionEffect, resolveContextValue, effectiveActionType, INTERACTION_HIDDEN_ATTRIBUTE, COUNT_UP_ACTION, motionAllowed, reducedEntranceRun, settleInteraction, settleModeFor, SettleMode, playInteraction, entranceDelay, repeatedRowIndex, resolveInteractionEasing, entrancePreStateStyle, buildInteractionKeyframes, showToast, declaredInputNames, emptyImagePlaceholder, syncNodeDesignClasses, nodeTraitValue, syncNodeA11yAttributes, nodeA11yAttributes,
|
|
20
|
+
import { nodeCssId, needsGroupName, resolveBoundValue, isBoundStyleProp, STRUCTURAL_STATES as STRUCTURAL_STATES$1, VALIDATION_STATES as VALIDATION_STATES$1, VALIDATION_STATE_CLASS as VALIDATION_STATE_CLASS$1, DEFAULT_WIDTH_BY_TYPE, TEXT_DIRECTION_KEY, TEXT_ALIGN_KEY, TextAlign, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, LinkType, MAX_LINES_KEY, A11yTrait, BREAKPOINTS, Breakpoint, withSchemeInk, stripSuppressedProps, DeclarationContext, planPartRule, gateHoverRule, planResponsiveRules, resolveStyleProps, planStateRule, splitOuterProps, OUTER_STYLE_PROPS, siteColumnOf, compileTokenCssBlocks, catalogFontId, fontsForTokens, GOOGLE_FONTS_FILE_ORIGIN, googleFontHref, compileDeclarations, isLastEmittedStateKey, wrapInBreakpointQuery, BreakpointQueryKind, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, applyElementStyle, planDataSource, dataSourcePlanToRequest, normalizeCollectionResult, resolveRepeaterItems, getByPath, computeRelative, PROGRESS_ATTRIBUTE, interactionMarkerAttributes, cascadeChain, attachScrollProgress, ContextStore, ENTRANCE_ACTION_TYPES, EXIT_ACTION_TYPES, ComponentInstanceRegistryService, syncInteractionMarkers, entranceStartsHidden, isActionEnabled, restoreCountUp, SCROLL_PROGRESS_TRIGGER, armInteractionCounts, splitPressFeedback, isHoverPointer, isContextAction, contextActionEffect, resolveContextValue, effectiveActionType, INTERACTION_HIDDEN_ATTRIBUTE, COUNT_UP_ACTION, motionAllowed, reducedEntranceRun, settleInteraction, settleModeFor, SettleMode, playInteraction, entranceDelay, repeatedRowIndex, resolveInteractionEasing, entrancePreStateStyle, buildInteractionKeyframes, showToast, applyBoundStyle, safeSetInput, IS_PREVIEW, declaredInputNames, emptyImagePlaceholder, syncNodeDesignClasses, nodeTraitValue, syncNodeA11yAttributes, nodeA11yAttributes, colorSchemeOf, withStateTransitions, composeVirtualTraits, stateNamesIn, partClassName, applyBoundStyles, switchElementStyle, releaseElementStyle, countOverrides, setOverride, breakpointDef, breakpointForWidth, FormRenderState, collectContextSlotKeys, withContextSlots, needsAccessibleName, resolveInputs, setInputOverride, barReserveClass, compilePageStyle, nodeUsesContext, attachTooltips, showToastDesign, TOOLTIP_ATTRIBUTE, hidingHeadersIn, HeaderRuntime, inkFollowingHeadersIn, HeaderInkRuntime, isScrolled, SCROLLED_ATTRIBUTE, syncSubmitButtons, buttonBlockHref, layerFrame, rectInLayer, placeFloating, FloatingAlign, popoverSide, bootSlider, IoxPageModule, PALETTE_PRESETS, elementStyleById, PART_CLASS_NAMES } from '@vectoriox/iox-ui';
|
|
21
21
|
export { ComponentInstanceRegistryService, VIRTUAL_TRAIT_KEYS, composeVirtualTraits } from '@vectoriox/iox-ui';
|
|
22
22
|
import { StructureEdit, isAccordionPart, isDisclosurePart, isSliderPart, isTabsPart, isSegmentedPart, structureRefusal, StructureRefusal, SegmentedRole, SEGMENTED_MAX_OPTIONS, AccordionRole, SEGMENTED_MIN_OPTIONS, isExclusiveItemPart, TabsRole, ITEM_OPEN_STATE, readStyle, isSegmentedRoot, segmentedDefaultOn, segmentedOptions, isTabsRoot, isTabsFromContent, tabsTriggers, isAccordionRoot, isAccordionFromContent, accordionItems, initialAccordionOpen, accordionBehaviour, exclusiveItemLabel, exclusiveRootOf, tabTriggerOf, tabLabel, removeTabPair, tabPanelOf, tabsListOf, tabsPanelsOf, nextTabKey, CompositeBehaviourTrait, ACCORDION_DEFAULT_ONS, TabsBehaviourTrait, TABS_ACTIVATE_ONS, TABS_ORIENTATIONS, MarqueeTrait, MarqueeSpeed, MarqueeDirection, PopupTrait, PopupKind, PopupForm, PopupArrive, PopupAgain, DIALOG_MODAL_TRAIT, DisclosureRole, isExclusiveTrigger, onCompositeItemState, isCompositeItemOn, runAccountAction, ShopActionType, runShopAction, runCompositeItemAction, shouldScrollToItem, rowIndexOf as rowIndexOf$1, slideIndexForRow, isMarqueeRoot, compositeScopeId, compositeRowKeys, isExclusiveRoot, ExclusiveRuntime, exclusiveDefaultOf, exclusiveLabelOf, exclusiveBehaviourOf, exclusiveKindOf, compositeKindOfRole, AccordionRuntime, isToggleKind, MarqueeRuntime, closestAccordionItem, isAnyCompositeRoot, SceneRole, isExclusiveList, buildCardRecipe, buildBadge, buildChip, buildAccordionRecipe, buildDisclosureRecipe, buildTabsRecipe, buildSegmentedRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildCounterRecipe, buildReadingBarRecipe, SHOP_RECIPES, ShopRecipe, ACCOUNT_RECIPES, AccountRecipe, NO_ELEMENT_STYLE, CompositeKind, PopupRole, SliderRole, accordionItemLabel, segmentedOptionLabel, isExclusivePanels, isLockedPart, attachShop, ShopRole, attachAccount, AccountRole, accordionRootOf, accordionItemOf, addAccordionItem, addTabPair, segmentedAddRefusal, addSegmentedOption, isCompositeItem, accordionHeadingLevel, isCompositePanel, isCompositeTrigger, popupFormOf, splitSliderChildren, hasSliderParts, buildConsentRecipe, SLIDE_CAPTION_TRAIT, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_PLACEMENT_TRAIT, SliderPlacement, SliderFlag } from '@vectoriox/iox-ui/composite-core';
|
|
23
23
|
import { formContentInHost, isInteractiveHost, findFormContentInHosts, formPresetById, presetFormActions, busyWord, fieldKindWords, channelWords, FORM_CHANNEL_ROLE, channelHref, channelOpensNewTab, FORM_ACTIONS_ROLE, SUBMIT_BUTTON_NODE_TYPE, FORM_NODE_TYPE, FIELD_NODE_TYPE, formWordIn, DEFAULT_BUSY_WORDS, FORM_AFTER_SEND_TRAIT, FormAfterSend, baselineFormWords } from '@vectoriox/iox-ui/forms-core';
|
|
24
|
-
import { Subject, BehaviorSubject, of, forkJoin } from 'rxjs';
|
|
24
|
+
import { Subject, BehaviorSubject, of, forkJoin, combineLatest } from 'rxjs';
|
|
25
25
|
import interact from 'interactjs';
|
|
26
26
|
import { HeaderTrait, HeaderBehaviour, HeaderEdge, HeaderInk, SECTION_EDGE_TRAIT, SECTION_EDGES, SECTION_SHAPE_TRAIT, SectionShape, MenuTrait, MenuForm, MenuReveal, MenuHover, MenuPhoneForm, MenuButtonKind, localeDirection, pageColumn, pageOpeningScheme, menuDialogAttributes, MenuAttribute } from '@vectoriox/iox-ui/design-core';
|
|
27
27
|
import { map, catchError, skip } from 'rxjs/operators';
|
|
@@ -30,6 +30,7 @@ import { SAMPLE_PRODUCT, productInScope, simulatedCartTransport, storefrontCatal
|
|
|
30
30
|
import { POPOVER_ACTION_TYPE_SET, TOAST_ACTION_TYPES, itemActionOf, BEHAVIOUR_ACTION_TYPES, SHOP_ACTION_TYPES, ACCOUNT_ACTION_TYPES, SERVER_ELEMENT_ACTION_TYPES, CONSENT_ACTION_TYPES, opensAtClickedItem, openedDialogId, DIALOG_CLOSING_ATTRIBUTE, cancelExit, runExitMotion, dialogOpenersSelector, dialogDomId, revealOrigin, holdClosedWhile, revealOriginStyle, popoverOpenersSelector, popoverDomId } from '@vectoriox/iox-ui/actions-core';
|
|
31
31
|
import { NavRole, navShapeBreakpoint, isScrubbedEntrance, ENTRANCE_TRIGGER, entranceInteraction, entranceAction, sectionEntrances, EntrancePart } from '@vectoriox/iox-ui/generation-core';
|
|
32
32
|
import { ScrollDriver, syncSceneAttributes, SCENE_LAND_TRIGGER, onSceneLand, watchArrival, arrivedWithin, buildSceneRecipe } from '@vectoriox/iox-ui/scene-core';
|
|
33
|
+
import { variableAliases } from '@vectoriox/iox-ui/data-core';
|
|
33
34
|
import Lenis from 'lenis';
|
|
34
35
|
import { simulatedSiteAuthTransport } from '@vectoriox/iox-ui/identity-core';
|
|
35
36
|
import Moveable from 'moveable';
|
|
@@ -4134,6 +4135,95 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
4134
4135
|
args: [IOX_BUILDER_LABELS]
|
|
4135
4136
|
}] }] });
|
|
4136
4137
|
|
|
4138
|
+
/** The binding prop that names the data source a list (Repeater, SliderContainer) repeats. */
|
|
4139
|
+
const SOURCE_BINDING_PROP = 'source';
|
|
4140
|
+
/**
|
|
4141
|
+
* A node's `source` binding — the canonical carrier of what a list repeats (the composer writes it, the engine reads it
|
|
4142
|
+
* first: `repeaterSource`). Its value is the ALIAS itself, never data, so the render applies it the moment the node is
|
|
4143
|
+
* drawn (vectoriox/iox-ui#162): the canvas once took it from the Bindings PANEL alone, and Preview, which mounts no
|
|
4144
|
+
* panel, drew a composed list unsourced — one empty card. Null when the node has no source binding.
|
|
4145
|
+
*/
|
|
4146
|
+
function sourceBindingOf(node) {
|
|
4147
|
+
const binding = node?.bindings?.find(b => b?.prop === SOURCE_BINDING_PROP && !!b.source);
|
|
4148
|
+
return binding ? { source: binding.source, path: binding.path ?? '' } : null;
|
|
4149
|
+
}
|
|
4150
|
+
|
|
4151
|
+
/** No address params — design time: a route filter falls back to `defaultId`, a query filter to its `defaultValue`. */
|
|
4152
|
+
const NO_PAGE_PARAMS = Object.freeze({ route: Object.freeze({}), query: Object.freeze({}) });
|
|
4153
|
+
/** How a PAGE binding (one bound outside any list row) reads its source's value. */
|
|
4154
|
+
var PageBindingRead;
|
|
4155
|
+
(function (PageBindingRead) {
|
|
4156
|
+
/** As the SSR engine's `resolveProps`: path + pipes on the source's value itself. A list read outside a row
|
|
4157
|
+
* answers nothing, so the part keeps its own default. Preview reads this way — it must draw what the site draws. */
|
|
4158
|
+
PageBindingRead["AsEngine"] = "asEngine";
|
|
4159
|
+
/** The editing canvas's design aid: a list source is read as its FIRST row, so a part bound to a list outside a
|
|
4160
|
+
* Repeater still shows a real value while the owner designs it. */
|
|
4161
|
+
PageBindingRead["FirstRow"] = "firstRow";
|
|
4162
|
+
})(PageBindingRead || (PageBindingRead = {}));
|
|
4163
|
+
/**
|
|
4164
|
+
* ONE value rule for a page binding — `undefined` means "leave the part as it is". `AsEngine` mirrors the engine's
|
|
4165
|
+
* `resolveProps` (a null or undefined value is not written); `FirstRow` is the canvas reading the Bindings panel did
|
|
4166
|
+
* before it delegated here. Both go through the shared `resolveBoundValue` (path, then pipes).
|
|
4167
|
+
*/
|
|
4168
|
+
function pageBindingValue(raw, binding, read) {
|
|
4169
|
+
const data = read === PageBindingRead.FirstRow && Array.isArray(raw) ? raw[0] : raw;
|
|
4170
|
+
if (data == null)
|
|
4171
|
+
return undefined;
|
|
4172
|
+
const value = resolveBoundValue(data, binding);
|
|
4173
|
+
return value == null ? undefined : value;
|
|
4174
|
+
}
|
|
4175
|
+
/** The trait a SliderContainer stores what it repeats in (a Repeater's `source` binding is canonical, #162). */
|
|
4176
|
+
const SOURCE_PATH_PROP = 'sourcePath';
|
|
4177
|
+
function traitDefault(node, name) {
|
|
4178
|
+
const value = node.traits?.find(t => t.name === name)?.default;
|
|
4179
|
+
return typeof value === 'string' ? value : '';
|
|
4180
|
+
}
|
|
4181
|
+
/**
|
|
4182
|
+
* The aliases a list's ROWS bind to — the engine's row scope (`{ [source]: item, [itemAlias]: item }`): the source it
|
|
4183
|
+
* repeats, and the item alias named after the repeated path's last segment (`product.gallery` → `gallery`). Empty for a
|
|
4184
|
+
* node that repeats nothing. Reads the `source` binding first, then the `source` / `sourcePath` traits — the engine's
|
|
4185
|
+
* `repeaterSource` / `repeaterItemAlias` order.
|
|
4186
|
+
*/
|
|
4187
|
+
function listScopeAliases(node) {
|
|
4188
|
+
const bound = sourceBindingOf(node);
|
|
4189
|
+
const source = bound?.source ?? traitDefault(node, SOURCE_BINDING_PROP);
|
|
4190
|
+
if (!source)
|
|
4191
|
+
return [];
|
|
4192
|
+
const path = bound ? bound.path : traitDefault(node, SOURCE_PATH_PROP);
|
|
4193
|
+
const itemAlias = path.split('.').filter(Boolean).pop() || source;
|
|
4194
|
+
return itemAlias === source ? [source] : [source, itemAlias];
|
|
4195
|
+
}
|
|
4196
|
+
/**
|
|
4197
|
+
* Every node inside a list's template → the aliases its enclosing lists own (nested lists add up). A binding to one of
|
|
4198
|
+
* them is the LIST's to apply per row (the Repeater writes row 1, its copies carry the rest), never the page's.
|
|
4199
|
+
*/
|
|
4200
|
+
function listOwnedAliases(nodes) {
|
|
4201
|
+
const owned = new Map();
|
|
4202
|
+
const mark = (children, aliases) => {
|
|
4203
|
+
for (const child of children ?? []) {
|
|
4204
|
+
const set = owned.get(child) ?? new Set();
|
|
4205
|
+
aliases.forEach(a => set.add(a));
|
|
4206
|
+
owned.set(child, set);
|
|
4207
|
+
const inner = listScopeAliases(child);
|
|
4208
|
+
mark(child.children, inner.length ? new Set([...set, ...inner]) : set);
|
|
4209
|
+
}
|
|
4210
|
+
};
|
|
4211
|
+
for (const node of nodes) {
|
|
4212
|
+
const aliases = listScopeAliases(node);
|
|
4213
|
+
if (aliases.length)
|
|
4214
|
+
mark(node.children, new Set([...(owned.get(node) ?? []), ...aliases]));
|
|
4215
|
+
}
|
|
4216
|
+
return owned;
|
|
4217
|
+
}
|
|
4218
|
+
/**
|
|
4219
|
+
* A node's PAGE bindings — the ones the page resolver writes: not a list's `source` binding (the render applies it,
|
|
4220
|
+
* #162), not one without a source, not one whose source is `skip`ped (an enclosing list's alias, a variable — the
|
|
4221
|
+
* context engine writes those).
|
|
4222
|
+
*/
|
|
4223
|
+
function pageBindingsOf(node, skip = new Set()) {
|
|
4224
|
+
return (node.bindings ?? []).filter(b => !!b?.source && b.prop !== SOURCE_BINDING_PROP && !skip.has(b.source));
|
|
4225
|
+
}
|
|
4226
|
+
|
|
4137
4227
|
/**
|
|
4138
4228
|
* Public content bases the builder canvas resolves data against — the SAME `@Public()` controllers
|
|
4139
4229
|
* the live storefront (SSR engine) hits, so the canvas preview shows what the published page shows.
|
|
@@ -4160,19 +4250,19 @@ class BuilderDataSourceService {
|
|
|
4160
4250
|
get isConfigured() { return !!this.endpoints; }
|
|
4161
4251
|
/**
|
|
4162
4252
|
* Resolve a data source to the value its MODE describes: the item for a `single` source, the
|
|
4163
|
-
* array for a `list`.
|
|
4164
|
-
* a route filter falls back to `defaultId` and
|
|
4165
|
-
* exactly what `planDataSource` does with empty params.
|
|
4253
|
+
* array for a `list`. `params` are the page's address params — Preview passes the ones it opened with
|
|
4254
|
+
* (vectoriox/iox-ui#164); the editing canvas has none, so a route filter falls back to `defaultId` and
|
|
4255
|
+
* a query filter to its `defaultValue`, exactly what `planDataSource` does with empty params.
|
|
4166
4256
|
*
|
|
4167
4257
|
* Callers pass the source itself (resolved from their own page-scoped
|
|
4168
4258
|
* `DataSourceRegistryService`) rather than an alias: this service is module-scoped and must not
|
|
4169
4259
|
* capture a registry from the wrong injector. Emits `null` when the source resolves to no
|
|
4170
4260
|
* request or the fetch fails — the canvas degrades to an empty preview, it never throws.
|
|
4171
4261
|
*/
|
|
4172
|
-
fetch(ds) {
|
|
4262
|
+
fetch(ds, params = NO_PAGE_PARAMS) {
|
|
4173
4263
|
if (!ds)
|
|
4174
4264
|
return of(null);
|
|
4175
|
-
const plan = planDataSource(ds);
|
|
4265
|
+
const plan = planDataSource(ds, params.route, params.query);
|
|
4176
4266
|
if (plan.kind === 'static')
|
|
4177
4267
|
return of(plan.data);
|
|
4178
4268
|
if (plan.kind === 'none' || !this.endpoints)
|
|
@@ -4189,16 +4279,16 @@ class BuilderDataSourceService {
|
|
|
4189
4279
|
: normalizeCollectionResult(mode, data)), catchError(() => of(null)));
|
|
4190
4280
|
}
|
|
4191
4281
|
/** Same fetch, always as an array — for the canvas components that repeat over the source. */
|
|
4192
|
-
fetchItems(ds) {
|
|
4193
|
-
return this.fetchRepeaterItems(ds);
|
|
4282
|
+
fetchItems(ds, params = NO_PAGE_PARAMS) {
|
|
4283
|
+
return this.fetchRepeaterItems(ds, undefined, params);
|
|
4194
4284
|
}
|
|
4195
4285
|
/**
|
|
4196
4286
|
* Items a Repeater/Slider iterates over. With `sourcePath` it repeats over an array PROPERTY of a
|
|
4197
4287
|
* SINGLE-resource source (e.g. `product.gallery`); without it the source itself is the list.
|
|
4198
4288
|
* Uses the SHARED `resolveRepeaterItems` so the canvas preview matches the SSR engine.
|
|
4199
4289
|
*/
|
|
4200
|
-
fetchRepeaterItems(ds, sourcePath) {
|
|
4201
|
-
return this.fetch(ds).pipe(map(value => resolveRepeaterItems(value, sourcePath)));
|
|
4290
|
+
fetchRepeaterItems(ds, sourcePath, params = NO_PAGE_PARAMS) {
|
|
4291
|
+
return this.fetch(ds, params).pipe(map(value => resolveRepeaterItems(value, sourcePath)));
|
|
4202
4292
|
}
|
|
4203
4293
|
/**
|
|
4204
4294
|
* Resolve a data source BY ALIAS, following `derived` aliases (a VIEW into another variable:
|
|
@@ -4209,9 +4299,9 @@ class BuilderDataSourceService {
|
|
|
4209
4299
|
* The builder is design time: `relative` sources resolve their dependency aliases (subject +
|
|
4210
4300
|
* collection) — a single source falls back to its `defaultId`, a list to the whole collection —
|
|
4211
4301
|
* then run the SHARED `computeRelative`, so the canvas shows the SAME neighbours the SSR engine
|
|
4212
|
-
* bakes into the live page. `$route`
|
|
4302
|
+
* bakes into the live page. `$route` is the page's route params (`{}` at design time).
|
|
4213
4303
|
*/
|
|
4214
|
-
fetchByAlias(alias, findByAlias) {
|
|
4304
|
+
fetchByAlias(alias, findByAlias, params = NO_PAGE_PARAMS) {
|
|
4215
4305
|
const ds = findByAlias(alias);
|
|
4216
4306
|
if (!ds)
|
|
4217
4307
|
return of(null);
|
|
@@ -4219,26 +4309,26 @@ class BuilderDataSourceService {
|
|
|
4219
4309
|
const d = ds.request?.derived;
|
|
4220
4310
|
if (!d?.from)
|
|
4221
4311
|
return of(null);
|
|
4222
|
-
return this.fetchByAlias(d.from, findByAlias).pipe(map(parent => getByPath(parent, d.path ?? '')));
|
|
4312
|
+
return this.fetchByAlias(d.from, findByAlias, params).pipe(map(parent => getByPath(parent, d.path ?? '')));
|
|
4223
4313
|
}
|
|
4224
4314
|
if (ds.type === 'relative') {
|
|
4225
4315
|
const spec = ds.request?.relative;
|
|
4226
4316
|
if (!spec)
|
|
4227
4317
|
return of(null);
|
|
4228
4318
|
if (spec.kind === 'route')
|
|
4229
|
-
return of({});
|
|
4319
|
+
return of(computeRelative(spec, { routeParams: params.route }));
|
|
4230
4320
|
const subjectAlias = spec.kind === 'current' ? spec.from : (spec.subjectFrom ?? spec.from);
|
|
4231
4321
|
const needsCollection = spec.kind === 'siblings' || spec.kind === 'related';
|
|
4232
4322
|
return forkJoin({
|
|
4233
|
-
subject: subjectAlias ? this.fetchByAlias(subjectAlias, findByAlias) : of(undefined),
|
|
4234
|
-
collection: needsCollection && spec.from ? this.fetchByAlias(spec.from, findByAlias) : of(undefined),
|
|
4235
|
-
}).pipe(map(({ subject, collection }) => computeRelative(spec, { subject, collection, routeParams:
|
|
4323
|
+
subject: subjectAlias ? this.fetchByAlias(subjectAlias, findByAlias, params) : of(undefined),
|
|
4324
|
+
collection: needsCollection && spec.from ? this.fetchByAlias(spec.from, findByAlias, params) : of(undefined),
|
|
4325
|
+
}).pipe(map(({ subject, collection }) => computeRelative(spec, { subject, collection, routeParams: params.route })));
|
|
4236
4326
|
}
|
|
4237
|
-
return this.fetch(ds);
|
|
4327
|
+
return this.fetch(ds, params);
|
|
4238
4328
|
}
|
|
4239
4329
|
/** Repeater items for an alias (follows derived aliases + applies an optional sourcePath). */
|
|
4240
|
-
fetchRepeaterItemsByAlias(alias, findByAlias, sourcePath) {
|
|
4241
|
-
return this.fetchByAlias(alias, findByAlias).pipe(map(value => resolveRepeaterItems(value, sourcePath)));
|
|
4330
|
+
fetchRepeaterItemsByAlias(alias, findByAlias, sourcePath, params = NO_PAGE_PARAMS) {
|
|
4331
|
+
return this.fetchByAlias(alias, findByAlias, params).pipe(map(value => resolveRepeaterItems(value, sourcePath)));
|
|
4242
4332
|
}
|
|
4243
4333
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderDataSourceService, deps: [{ token: i1.HttpClient }, { token: IOX_DATA_SOURCE_ENDPOINTS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4244
4334
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderDataSourceService }); }
|
|
@@ -4264,6 +4354,11 @@ class DataSourceRegistryService {
|
|
|
4264
4354
|
constructor() {
|
|
4265
4355
|
this._ds$ = new BehaviorSubject([]);
|
|
4266
4356
|
this.dataSources$ = this._ds$.asObservable();
|
|
4357
|
+
this._params$ = new BehaviorSubject(NO_PAGE_PARAMS);
|
|
4358
|
+
/** The page's address params (vectoriox/iox-ui#164): Preview sets the route params it opened with (`?slug=…`, the
|
|
4359
|
+
* param prompt) so a route-filtered source resolves to THAT item, as the engine resolves it. The editing canvas
|
|
4360
|
+
* never sets them — design time keeps `planDataSource`'s fallbacks (`defaultId`, the first item). */
|
|
4361
|
+
this.pageParams$ = this._params$.asObservable();
|
|
4267
4362
|
}
|
|
4268
4363
|
setDataSources(ds) {
|
|
4269
4364
|
this._ds$.next(ds);
|
|
@@ -4277,6 +4372,12 @@ class DataSourceRegistryService {
|
|
|
4277
4372
|
getAliasOptions() {
|
|
4278
4373
|
return this._ds$.value.map(ds => ({ label: ds.alias, value: ds.alias }));
|
|
4279
4374
|
}
|
|
4375
|
+
get pageParams() {
|
|
4376
|
+
return this._params$.value;
|
|
4377
|
+
}
|
|
4378
|
+
setPageParams(params) {
|
|
4379
|
+
this._params$.next({ route: { ...(params?.route ?? {}) }, query: { ...(params?.query ?? {}) } });
|
|
4380
|
+
}
|
|
4280
4381
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: DataSourceRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4281
4382
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: DataSourceRegistryService }); }
|
|
4282
4383
|
}
|
|
@@ -5633,6 +5734,129 @@ function showCanvasToast(text, edge, from) {
|
|
|
5633
5734
|
showToast(doc, typeof text === 'string' ? text : '', { edge: typeof edge === 'string' ? edge : null, from, topLayer: false, container: canvasFloatingContainer(from) });
|
|
5634
5735
|
}
|
|
5635
5736
|
|
|
5737
|
+
/**
|
|
5738
|
+
* Draws a page's bindings — every part bound OUTSIDE a list row (a detail page's title bound to `piece`, a heading bound
|
|
5739
|
+
* to a single source) — on the canvas and in Preview alike (vectoriox/iox-ui#164). Before it, only the admin's Bindings
|
|
5740
|
+
* PANEL did this, so Preview (which mounts no panel) drew those parts empty, and no fetch ever saw the page's route
|
|
5741
|
+
* params.
|
|
5742
|
+
*
|
|
5743
|
+
* Page-scoped: a host provides it beside `DataSourceRegistryService`; the RenderDirective tells it when a node is drawn,
|
|
5744
|
+
* and it applies the page bindings of every registered node in ONE deferred pass. Values come through the library's
|
|
5745
|
+
* `BuilderDataSourceService.fetchByAlias` with the registry's page params, once per alias, cached until the page's
|
|
5746
|
+
* sources or params change. What it leaves alone: a list's `source` binding (the render applies it, #162), a binding an
|
|
5747
|
+
* enclosing list owns (its rows), and a variable (the context engine fills it at run time).
|
|
5748
|
+
*/
|
|
5749
|
+
class PageBindingResolverService {
|
|
5750
|
+
constructor(overlay, registry, dataSources, isPreview) {
|
|
5751
|
+
this.overlay = overlay;
|
|
5752
|
+
this.registry = registry;
|
|
5753
|
+
this.dataSources = dataSources;
|
|
5754
|
+
this.cache = new Map();
|
|
5755
|
+
this.inFlight = new Map();
|
|
5756
|
+
this.resolvedSubject = new Subject();
|
|
5757
|
+
/** The alias whose value just landed — the panel re-reads its selected node's bound rows on it. */
|
|
5758
|
+
this.resolved$ = this.resolvedSubject.asObservable();
|
|
5759
|
+
this.fingerprint = '';
|
|
5760
|
+
this.passTimer = null;
|
|
5761
|
+
this.destroyed = false;
|
|
5762
|
+
this.read = isPreview ? PageBindingRead.AsEngine : PageBindingRead.FirstRow;
|
|
5763
|
+
this.sub = combineLatest([registry.dataSources$, registry.pageParams$]).subscribe(([sources, params]) => {
|
|
5764
|
+
// A new definition or new params change what every alias resolves to (a derived or relative alias follows
|
|
5765
|
+
// others), so the whole page refetches; an identical re-emit (the panel re-seeds the registry) does not.
|
|
5766
|
+
const next = JSON.stringify([sources, params]);
|
|
5767
|
+
if (next === this.fingerprint)
|
|
5768
|
+
return;
|
|
5769
|
+
this.fingerprint = next;
|
|
5770
|
+
this.reset();
|
|
5771
|
+
this.schedule();
|
|
5772
|
+
});
|
|
5773
|
+
}
|
|
5774
|
+
/** A node was drawn (the RenderDirective calls this): apply the page's bindings in one deferred pass. */
|
|
5775
|
+
nodeRendered() {
|
|
5776
|
+
this.schedule();
|
|
5777
|
+
}
|
|
5778
|
+
/** The resolved value of `alias`, `undefined` until it lands. */
|
|
5779
|
+
valueOf(alias) {
|
|
5780
|
+
return this.cache.get(alias);
|
|
5781
|
+
}
|
|
5782
|
+
/** Make sure `alias` is fetched (a panel row reads its fields before any part binds to it). */
|
|
5783
|
+
ensure(alias) {
|
|
5784
|
+
if (!alias || this.cache.has(alias) || this.inFlight.has(alias) || !this.registry.findByAlias(alias))
|
|
5785
|
+
return;
|
|
5786
|
+
const sub = this.dataSources
|
|
5787
|
+
.fetchByAlias(alias, a => this.registry.findByAlias(a), this.registry.pageParams)
|
|
5788
|
+
.subscribe(value => {
|
|
5789
|
+
this.inFlight.delete(alias);
|
|
5790
|
+
if (this.destroyed)
|
|
5791
|
+
return;
|
|
5792
|
+
this.cache.set(alias, value);
|
|
5793
|
+
this.resolvedSubject.next(alias);
|
|
5794
|
+
this.schedule();
|
|
5795
|
+
});
|
|
5796
|
+
// A synchronous answer (a static source, `$route`) has already landed and removed itself.
|
|
5797
|
+
if (!this.cache.has(alias))
|
|
5798
|
+
this.inFlight.set(alias, sub);
|
|
5799
|
+
}
|
|
5800
|
+
/** Apply every registered node's page bindings now (the deferred pass; public for hosts and specs). */
|
|
5801
|
+
applyAll() {
|
|
5802
|
+
const entries = Array.from(this.overlay.getAllNodeEntries());
|
|
5803
|
+
const owned = listOwnedAliases(entries.map(([node]) => node));
|
|
5804
|
+
const variables = variableAliases(this.registry.getDataSources());
|
|
5805
|
+
for (const [node, ref] of entries) {
|
|
5806
|
+
if (!ref?.componentRef?.instance || node.__previewClone)
|
|
5807
|
+
continue;
|
|
5808
|
+
const skip = new Set([...variables, ...(owned.get(node) ?? [])]);
|
|
5809
|
+
for (const binding of pageBindingsOf(node, skip)) {
|
|
5810
|
+
if (!this.cache.has(binding.source)) {
|
|
5811
|
+
this.ensure(binding.source);
|
|
5812
|
+
continue;
|
|
5813
|
+
}
|
|
5814
|
+
const value = pageBindingValue(this.cache.get(binding.source), binding, this.read);
|
|
5815
|
+
if (value === undefined)
|
|
5816
|
+
continue;
|
|
5817
|
+
// A `style:` binding is written on the element (the shared carrier), never pushed into an input.
|
|
5818
|
+
if (applyBoundStyle(ref.element, binding.prop, value))
|
|
5819
|
+
continue;
|
|
5820
|
+
safeSetInput(ref.componentRef, binding.prop, value);
|
|
5821
|
+
ref.componentRef.changeDetectorRef.markForCheck();
|
|
5822
|
+
}
|
|
5823
|
+
}
|
|
5824
|
+
}
|
|
5825
|
+
ngOnDestroy() {
|
|
5826
|
+
this.destroyed = true;
|
|
5827
|
+
if (this.passTimer)
|
|
5828
|
+
clearTimeout(this.passTimer);
|
|
5829
|
+
this.sub.unsubscribe();
|
|
5830
|
+
this.reset();
|
|
5831
|
+
this.resolvedSubject.complete();
|
|
5832
|
+
}
|
|
5833
|
+
schedule() {
|
|
5834
|
+
if (this.destroyed || this.passTimer)
|
|
5835
|
+
return;
|
|
5836
|
+
// Nodes render in bursts (first load, a drop): one pass after the burst, never one per node.
|
|
5837
|
+
this.passTimer = setTimeout(() => {
|
|
5838
|
+
this.passTimer = null;
|
|
5839
|
+
if (!this.destroyed)
|
|
5840
|
+
this.applyAll();
|
|
5841
|
+
}, 0);
|
|
5842
|
+
}
|
|
5843
|
+
reset() {
|
|
5844
|
+
this.inFlight.forEach(sub => sub.unsubscribe());
|
|
5845
|
+
this.inFlight.clear();
|
|
5846
|
+
this.cache.clear();
|
|
5847
|
+
}
|
|
5848
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: PageBindingResolverService, deps: [{ token: OverlayService }, { token: DataSourceRegistryService }, { token: BuilderDataSourceService }, { token: IS_PREVIEW, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5849
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: PageBindingResolverService }); }
|
|
5850
|
+
}
|
|
5851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: PageBindingResolverService, decorators: [{
|
|
5852
|
+
type: Injectable
|
|
5853
|
+
}], ctorParameters: () => [{ type: OverlayService }, { type: DataSourceRegistryService }, { type: BuilderDataSourceService }, { type: undefined, decorators: [{
|
|
5854
|
+
type: Optional
|
|
5855
|
+
}, {
|
|
5856
|
+
type: Inject,
|
|
5857
|
+
args: [IS_PREVIEW]
|
|
5858
|
+
}] }] });
|
|
5859
|
+
|
|
5636
5860
|
// Virtual trait composition now lives in @vectoriox/iox-ui so the SSR engine (which does NOT depend
|
|
5637
5861
|
// on iox-builder) can use the SAME logic — otherwise the engine emitted raw virtual keys
|
|
5638
5862
|
// (translate-x, filter-blur…) as invalid CSS. This is a re-export passthrough to keep existing
|
|
@@ -5873,19 +6097,6 @@ function syncNodeDesign(ref, node, emptyLabel) {
|
|
|
5873
6097
|
syncEmptyImagePlaceholder(ref, node, emptyLabel);
|
|
5874
6098
|
}
|
|
5875
6099
|
|
|
5876
|
-
/** The binding prop that names the data source a list (Repeater, SliderContainer) repeats. */
|
|
5877
|
-
const SOURCE_BINDING_PROP = 'source';
|
|
5878
|
-
/**
|
|
5879
|
-
* A node's `source` binding — the canonical carrier of what a list repeats (the composer writes it, the engine reads it
|
|
5880
|
-
* first: `repeaterSource`). Its value is the ALIAS itself, never data, so the render applies it the moment the node is
|
|
5881
|
-
* drawn (vectoriox/iox-ui#162): the canvas once took it from the Bindings PANEL alone, and Preview, which mounts no
|
|
5882
|
-
* panel, drew a composed list unsourced — one empty card. Null when the node has no source binding.
|
|
5883
|
-
*/
|
|
5884
|
-
function sourceBindingOf(node) {
|
|
5885
|
-
const binding = node?.bindings?.find(b => b?.prop === SOURCE_BINDING_PROP && !!b.source);
|
|
5886
|
-
return binding ? { source: binding.source, path: binding.path ?? '' } : null;
|
|
5887
|
-
}
|
|
5888
|
-
|
|
5889
6100
|
/** The Field type, whose Date control has a design-time Open state on the canvas. */
|
|
5890
6101
|
const FIELD_TYPE = 'Field';
|
|
5891
6102
|
// Module-level counter — unique drop-list ID per Section instance across the whole app session.
|
|
@@ -5980,6 +6191,8 @@ class RenderDirective {
|
|
|
5980
6191
|
this.designState = inject(CanvasDesignStateService, { optional: true });
|
|
5981
6192
|
this.compositeCanvas = inject(CompositeCanvasService, { optional: true });
|
|
5982
6193
|
this.sceneCanvas = inject(SceneCanvasService, { optional: true });
|
|
6194
|
+
/** The page's binding resolver, when the host provides one (the canvas, Preview — vectoriox/iox-ui#164). */
|
|
6195
|
+
this.pageBindings = inject(PageBindingResolverService, { optional: true });
|
|
5983
6196
|
/** The Scene root this directive drives. */
|
|
5984
6197
|
this.sceneRootEl = null;
|
|
5985
6198
|
/** The node this directive attached a composite runtime for (an accordion root). */
|
|
@@ -6368,6 +6581,8 @@ class RenderDirective {
|
|
|
6368
6581
|
// ComponentRef — needed after cross-container drag where Angular
|
|
6369
6582
|
// creates a fresh instance that hasn't had bindings pushed to it yet.
|
|
6370
6583
|
this.panelEventService.emit(PanelEventTypes.NODE_RENDERED, { node });
|
|
6584
|
+
// …and the page's resolver, which draws every part bound outside a list row (Preview has no panel, #164).
|
|
6585
|
+
this.pageBindings?.nodeRendered();
|
|
6371
6586
|
nativeEl.addEventListener('mouseenter', (event) => {
|
|
6372
6587
|
if (event._fromClick)
|
|
6373
6588
|
return;
|
|
@@ -6709,7 +6924,8 @@ class BuilderRepeaterComponent {
|
|
|
6709
6924
|
this.cdr.markForCheck();
|
|
6710
6925
|
// Resolve BY ALIAS so `derived` sources (e.g. galleryImages = product.gallery) follow their
|
|
6711
6926
|
// parent. `sourcePath` (legacy/back-compat) still repeats over an array property inline.
|
|
6712
|
-
|
|
6927
|
+
// The page's address params (Preview's `?slug=…`, iox-ui#164); none on the editing canvas.
|
|
6928
|
+
this.dataSourceService.fetchRepeaterItemsByAlias(this._source, (a) => this.dsRegistry.findByAlias(a), this._sourcePath, this.dsRegistry.pageParams).subscribe(items => {
|
|
6713
6929
|
if (seq !== this._fetchSeq)
|
|
6714
6930
|
return; // a newer fetch superseded this one — ignore stale items
|
|
6715
6931
|
this.items = items.slice(0, this._limit);
|
|
@@ -13780,7 +13996,7 @@ class SliderContainerComponent {
|
|
|
13780
13996
|
return;
|
|
13781
13997
|
this.isLoading = true;
|
|
13782
13998
|
this.cdr.markForCheck();
|
|
13783
|
-
this.dataSourceService.fetchItems(this.dsRegistry.findByAlias(this._source)).subscribe(items => {
|
|
13999
|
+
this.dataSourceService.fetchItems(this.dsRegistry.findByAlias(this._source), this.dsRegistry.pageParams).subscribe(items => {
|
|
13784
14000
|
this.items = items.slice(0, this._limit);
|
|
13785
14001
|
// Preview draws its template slide only once there are rows: draw it NOW, so slide 1 takes item[0]'s values
|
|
13786
14002
|
// in this same turn — never an empty slide first (iox-ui#162).
|
|
@@ -16620,5 +16836,5 @@ class BuilderSpacerComponentConfig extends ComponentConfig {
|
|
|
16620
16836
|
* Generated bundle index. Do not edit.
|
|
16621
16837
|
*/
|
|
16622
16838
|
|
|
16623
|
-
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, BuilderPopoverComponent, BuilderRepeaterComponent, BuilderSpacerComponentConfig, BusinessSpecimenView, ButtonBlockComponentConfig, CANVAS_EMPTY_IMAGE_LABEL_EN, CANVAS_EMPTY_IMAGE_LABEL_KEY, CANVAS_ROOT_RESET_CSS, CANVAS_TOKEN_SCOPE, COMPOSITE_PRESETS, CanvasDesignStateService, CanvasShowGroup, 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, FOOTER_MIX_TRAIT, FORM_STATE_BLOCK_TYPES, FORM_TYPE, FORM_WORD_TYPES, FieldComponentConfig, FieldGroupComponentConfig, FieldTrait, 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, IOX_RENDER_DISPLAY_ONLY, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LIST_MIX_TRAIT, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OPENING_MIX_TRAIT, OverlayComponent, OverlayService, PAGE_TRANSITION_EASING_OPTIONS, PALETTE_PRESET_DEFS, POPOVER_PLACEMENT_OPTIONS, POPOVER_SHEET_MAX_WIDTH, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PhoneMenuOpenerAction, PopoverComponentConfig, 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, SENT_LABEL_TRAIT, SILENT_REFUSALS, SLIDER_CREATIVE_PRESET_TRAIT, STRUCTURAL_STATES, SUPPORTED_STATES, SceneCanvasService, 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, addFormChannel, arrayItemSchemaFields, arraySchemaFields, auditNodes, bindingLabel, bindingLabels, buildBusinessSpecimen, buildCompositePreset, buildConsentPreset, buildElementStyleSpecimen, buildFieldKindPreset, buildFlavorSpecimen, buildFormActionsRow, buildFormChannel, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPalettePreset, buildPresetStyleTraits, builderCompositeFactory, canFluidise, canvasEmptyImageLabel, canvasFloatingContainer, canvasHostDisplay, channelLabel, collapseColumnsProps, columnCountOf, compositeStructureFindings, defaultBuilderLabels, defaultPageSettings, deleteTabPair, displayTrigger, displayTriggerOf, dropChildren, dropSectionStamps, dropTargetLabel, duplicateTabPair, escapesRoot, essentialTraitsFor, findNodeByIdInEither, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, followsScroll, formChannelOf, generateNodeId, globalCanvasLayer, hiddenAtBase, hiddenUntilItemOn, inPhoneMenuContext, insertRefusal, insertRefusalLabel, interactionTargets, isDisplayOnlyNode, isHiddenAt, isHiddenAtRest, isPhoneMenuOpener, isPinnedGlobal, isReadingBar, isSpecimen, itemsOnAtRest, markSpecimen, matchesControlSearch, nearestFormNode, neverShown, nodeAncestorPath, nodeAncestorPathInEither, nodeDescriptor, nodeStyleMap, overlayGlobals, pathToNode, phoneMenuOf, phoneMenuShowsAt, refreshSubtree, regenerateNodeIds, removalRefusal, reorderProps, repeaterSourceAlias, repeaterSubLabel, resolveDragData, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, retypeNode, rootEscapeBand, rootZone, rowInsertIndex, selectionRevealOf, setChannelAddress, setOverlayPreview, setStyleTrait, setTrait, shortDescriptor, showCanvasToast, shownBeforeControl, sourceContentType, sourceTypeLabel, stackChildrenProps, summarise, syncEmptyImagePlaceholder, syncNodeDesign, syncNodeInputs, tabPairLabel, tabsRootForPart, textNode, upsertNodeStyles, visibilityProps, walkNodes, wearFormWords, wrapNode };
|
|
16839
|
+
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, BuilderPopoverComponent, BuilderRepeaterComponent, BuilderSpacerComponentConfig, BusinessSpecimenView, ButtonBlockComponentConfig, CANVAS_EMPTY_IMAGE_LABEL_EN, CANVAS_EMPTY_IMAGE_LABEL_KEY, CANVAS_ROOT_RESET_CSS, CANVAS_TOKEN_SCOPE, COMPOSITE_PRESETS, CanvasDesignStateService, CanvasShowGroup, 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, FOOTER_MIX_TRAIT, FORM_STATE_BLOCK_TYPES, FORM_TYPE, FORM_WORD_TYPES, FieldComponentConfig, FieldGroupComponentConfig, FieldTrait, 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, IOX_RENDER_DISPLAY_ONLY, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LIST_MIX_TRAIT, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NO_PAGE_PARAMS, NodeAction, OPENING_MIX_TRAIT, OverlayComponent, OverlayService, PAGE_TRANSITION_EASING_OPTIONS, PALETTE_PRESET_DEFS, POPOVER_PLACEMENT_OPTIONS, POPOVER_SHEET_MAX_WIDTH, PageBindingRead, PageBindingResolverService, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PhoneMenuOpenerAction, PopoverComponentConfig, 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, SENT_LABEL_TRAIT, SILENT_REFUSALS, SLIDER_CREATIVE_PRESET_TRAIT, STRUCTURAL_STATES, SUPPORTED_STATES, SceneCanvasService, 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, addFormChannel, arrayItemSchemaFields, arraySchemaFields, auditNodes, bindingLabel, bindingLabels, buildBusinessSpecimen, buildCompositePreset, buildConsentPreset, buildElementStyleSpecimen, buildFieldKindPreset, buildFlavorSpecimen, buildFormActionsRow, buildFormChannel, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPalettePreset, buildPresetStyleTraits, builderCompositeFactory, canFluidise, canvasEmptyImageLabel, canvasFloatingContainer, canvasHostDisplay, channelLabel, collapseColumnsProps, columnCountOf, compositeStructureFindings, defaultBuilderLabels, defaultPageSettings, deleteTabPair, displayTrigger, displayTriggerOf, dropChildren, dropSectionStamps, dropTargetLabel, duplicateTabPair, escapesRoot, essentialTraitsFor, findNodeByIdInEither, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, followsScroll, formChannelOf, generateNodeId, globalCanvasLayer, hiddenAtBase, hiddenUntilItemOn, inPhoneMenuContext, insertRefusal, insertRefusalLabel, interactionTargets, isDisplayOnlyNode, isHiddenAt, isHiddenAtRest, isPhoneMenuOpener, isPinnedGlobal, isReadingBar, isSpecimen, itemsOnAtRest, listOwnedAliases, listScopeAliases, markSpecimen, matchesControlSearch, nearestFormNode, neverShown, nodeAncestorPath, nodeAncestorPathInEither, nodeDescriptor, nodeStyleMap, overlayGlobals, pageBindingValue, pageBindingsOf, pathToNode, phoneMenuOf, phoneMenuShowsAt, refreshSubtree, regenerateNodeIds, removalRefusal, reorderProps, repeaterSourceAlias, repeaterSubLabel, resolveDragData, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, retypeNode, rootEscapeBand, rootZone, rowInsertIndex, selectionRevealOf, setChannelAddress, setOverlayPreview, setStyleTrait, setTrait, shortDescriptor, showCanvasToast, shownBeforeControl, sourceContentType, sourceTypeLabel, stackChildrenProps, summarise, syncEmptyImagePlaceholder, syncNodeDesign, syncNodeInputs, tabPairLabel, tabsRootForPart, textNode, upsertNodeStyles, visibilityProps, walkNodes, wearFormWords, wrapNode };
|
|
16624
16840
|
//# sourceMappingURL=vectoriox-iox-builder.mjs.map
|