@vectoriox/iox-ui 4.23.0 → 4.25.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.
|
@@ -624,7 +624,15 @@ interface GalleryBoundSource {
|
|
|
624
624
|
* @param bound bound-mode records + image field. When present, takes precedence over `images`.
|
|
625
625
|
* @param ctx render context for per-item bindings (item/route data). Defaults to `{}`.
|
|
626
626
|
*/
|
|
627
|
-
declare function resolveGalleryUrls(images: GalleryImage[] | undefined, bound: GalleryBoundSource | null | undefined, ctx?: Record<string, any>): string[];
|
|
627
|
+
declare function resolveGalleryUrls(images: readonly (GalleryImage | string)[] | undefined, bound: GalleryBoundSource | null | undefined, ctx?: Record<string, any>): string[];
|
|
628
|
+
/**
|
|
629
|
+
* A plain string is a valid entry — a pasted URL list, an older saved node, or a bound field that
|
|
630
|
+
* yielded a URL directly. Accepting it HERE (not in one consumer) is what keeps the two render paths
|
|
631
|
+
* honest: `ClientGalleryComponent` used to normalise privately, so the engine's string-renderer
|
|
632
|
+
* fallback — which calls this function directly — silently dropped every string-shaped image and
|
|
633
|
+
* rendered an empty gallery. One resolver, one answer. See gallery-component-plan.md.
|
|
634
|
+
*/
|
|
635
|
+
declare function normalizeGalleryImage(image: GalleryImage | string | null | undefined): GalleryImage | undefined;
|
|
628
636
|
/**
|
|
629
637
|
* Parse a pasted block of URLs (newline- and/or comma-separated) into `GalleryImage[]`. Used by the
|
|
630
638
|
* MediaList trait editor's "paste URL list" affordance. Pure so it can be unit-tested + reused.
|
|
@@ -678,7 +686,6 @@ declare class ClientGalleryComponent implements AfterViewInit, OnDestroy {
|
|
|
678
686
|
* image is the visible static frame; once running, the effect owns each slide's look. */
|
|
679
687
|
slideStyle(i: number): Record<string, string>;
|
|
680
688
|
private startLoop;
|
|
681
|
-
private normalizeImages;
|
|
682
689
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClientGalleryComponent, never>;
|
|
683
690
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClientGalleryComponent, "iox-gallery", never, { "nodeId": { "alias": "nodeId"; "required": false; }; "effect": { "alias": "effect"; "required": false; }; "autoStart": { "alias": "autoStart"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "images": { "alias": "images"; "required": false; }; "showDuration": { "alias": "showDuration"; "required": false; }; "fadeDuration": { "alias": "fadeDuration"; "required": false; }; }, {}, never, never, false, never>;
|
|
684
691
|
}
|
|
@@ -744,18 +751,33 @@ declare const SUPPRESSED_STYLE_PROPS_BY_TYPE: Readonly<Record<string, readonly s
|
|
|
744
751
|
/** Remove the style props whose value a type's render-default always overrides. Returns the map
|
|
745
752
|
* unchanged (same reference) when the type suppresses nothing. */
|
|
746
753
|
declare function stripSuppressedProps(type: string, styleProps: Record<string, any>): Record<string, any>;
|
|
754
|
+
/**
|
|
755
|
+
* What a compiled rule is FOR — decides whether an initial value is a no-op.
|
|
756
|
+
*
|
|
757
|
+
* In a `Base` rule nothing is being overridden, so `width: auto` or `transform: none` changes
|
|
758
|
+
* nothing and is dropped (see NOOP_INITIAL_VALUES). In an `Override` rule — a breakpoint layer —
|
|
759
|
+
* the initial value is exactly how you UNDO a wider rule (`width: 520px` → `auto` on mobile), so
|
|
760
|
+
* dropping it would silently keep the desktop value.
|
|
761
|
+
*/
|
|
762
|
+
declare enum DeclarationContext {
|
|
763
|
+
Base = "base",
|
|
764
|
+
Override = "override"
|
|
765
|
+
}
|
|
747
766
|
/**
|
|
748
767
|
* Compile a flat, camelCase style map into an array of `"prop: value"` CSS
|
|
749
|
-
* declarations (kebab-cased, viewport-units rewritten, empties
|
|
750
|
-
* optional `!important`). Callers wrap these in whatever selector
|
|
768
|
+
* declarations (kebab-cased, viewport-units rewritten, empties dropped, no-op initials dropped
|
|
769
|
+
* in a `Base` context only, optional `!important`). Callers wrap these in whatever selector
|
|
770
|
+
* they emit.
|
|
751
771
|
*
|
|
752
772
|
* @param props Flat camelCase style map.
|
|
753
773
|
* @param importantProps Keys that must carry `!important` (e.g. `position`, to beat
|
|
754
774
|
* Angular's scoped-CSS specificity boost in the builder). A prop forced
|
|
755
775
|
* `!important` is never dropped as a no-op — the `!important` exists to win
|
|
756
776
|
* the cascade, so its value must always be emitted.
|
|
777
|
+
* @param context `Override` for a rule that overrides a wider one (a breakpoint layer):
|
|
778
|
+
* initial values are kept, because there they reset rather than no-op.
|
|
757
779
|
*/
|
|
758
|
-
declare function compileDeclarations(props: Record<string, any>, importantProps?: ReadonlySet<string
|
|
780
|
+
declare function compileDeclarations(props: Record<string, any>, importantProps?: ReadonlySet<string>, context?: DeclarationContext): string[];
|
|
759
781
|
/**
|
|
760
782
|
* Per-type default `width` that the builder applies from each component's config
|
|
761
783
|
* (NOT persisted in styleProps — see render-parity.md "saved node is not
|
|
@@ -885,11 +907,39 @@ declare const BREAKPOINTS: readonly BreakpointDef[];
|
|
|
885
907
|
declare function breakpointDef(bp: Breakpoint | string): BreakpointDef | undefined;
|
|
886
908
|
/** Base → `bp`, inclusive — the layers whose values apply at `bp`. Unknown → `[Base]`. */
|
|
887
909
|
declare function cascadeChain(bp: Breakpoint | string): Breakpoint[];
|
|
910
|
+
/**
|
|
911
|
+
* The breakpoint a viewport (or canvas) of `width` CSS px falls in — the narrowest one whose
|
|
912
|
+
* `maxWidth` it fits under, else Base. Mirrors how the `max-width` media queries resolve, so the
|
|
913
|
+
* builder's editing scope is always the breakpoint the canvas is actually showing.
|
|
914
|
+
*/
|
|
915
|
+
declare function breakpointForWidth(width: number): Breakpoint;
|
|
888
916
|
/** The next-wider breakpoint (what `bp` inherits from), or `null` for Base / unknown. */
|
|
889
917
|
declare function parentBreakpoint(bp: Breakpoint | string): Breakpoint | null;
|
|
918
|
+
/**
|
|
919
|
+
* What a breakpoint's width is measured against.
|
|
920
|
+
*
|
|
921
|
+
* `Media` — the browser viewport. The SSR engine: a visitor's window IS the page.
|
|
922
|
+
* `Container` — a named CSS size container. The builder: its canvas is a fixed-width frame inside a
|
|
923
|
+
* desktop browser (and `transform: scale`d for zoom), so a media query would read the EDITOR's width.
|
|
924
|
+
* A container query reads the frame's own layout width — which equals the simulated viewport and
|
|
925
|
+
* ignores the zoom transform — so the builder emits the same structure as the engine.
|
|
926
|
+
*/
|
|
927
|
+
declare enum BreakpointQueryKind {
|
|
928
|
+
Media = "media",
|
|
929
|
+
Container = "container"
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* The at-rule prelude for `bp` — `@media (max-width: 767px)`, or with `Container`
|
|
933
|
+
* `@container iox-canvas (max-width: 767px)`. `null` for Base or an unknown id.
|
|
934
|
+
* `containerName` is required for `Container` (an unnamed container query would match
|
|
935
|
+
* whichever ancestor container is nearest, which is not guaranteed to be the canvas).
|
|
936
|
+
*/
|
|
937
|
+
declare function breakpointQueryFor(bp: Breakpoint | string, kind?: BreakpointQueryKind, containerName?: string): string | null;
|
|
938
|
+
/** Wrap already-compiled rules for `bp`. Base (and blank css) passes through unwrapped. */
|
|
939
|
+
declare function wrapInBreakpointQuery(bp: Breakpoint | string, css: string, kind?: BreakpointQueryKind, containerName?: string): string;
|
|
890
940
|
/** `@media (max-width: 767px)` for `bp`; `null` for Base or an unknown id. */
|
|
891
941
|
declare function mediaQueryFor(bp: Breakpoint | string): string | null;
|
|
892
|
-
/** Wrap already-compiled rules for `bp
|
|
942
|
+
/** Wrap already-compiled rules for `bp` in its media query. Base (and blank css) passes through. */
|
|
893
943
|
declare function wrapInMediaQuery(bp: Breakpoint | string, css: string): string;
|
|
894
944
|
type StyleMap = Record<string, any>;
|
|
895
945
|
type StateStyleMap = Record<string, StyleMap>;
|
|
@@ -903,6 +953,13 @@ type ResponsiveOverrides = Partial<Record<OverrideBreakpoint, ResponsiveLayer>>;
|
|
|
903
953
|
declare function resolveStyleProps(styleProps: StyleMap | null | undefined, responsive: ResponsiveOverrides | null | undefined, bp: Breakpoint | string): StyleMap;
|
|
904
954
|
/** The effective per-state maps at `bp`. States with no values anywhere are omitted. */
|
|
905
955
|
declare function resolveStateStyles(stateStyles: StateStyleMap | null | undefined, responsive: ResponsiveOverrides | null | undefined, bp: Breakpoint | string): StateStyleMap;
|
|
956
|
+
/**
|
|
957
|
+
* Every state that has a value anywhere — at base or at any breakpoint — in a stable order
|
|
958
|
+
* (base states first, then any that exist only at a breakpoint). A renderer iterates this, not
|
|
959
|
+
* `Object.keys(stateStyles)`, so a state defined ONLY at a breakpoint (a Mobile-only hover) still
|
|
960
|
+
* gets its selector scope resolved.
|
|
961
|
+
*/
|
|
962
|
+
declare function stateNamesIn(stateStyles: StateStyleMap | null | undefined, responsive: ResponsiveOverrides | null | undefined): string[];
|
|
906
963
|
/** One level of the cascade that sets a value. */
|
|
907
964
|
interface ValueSource {
|
|
908
965
|
breakpoint: Breakpoint;
|
|
@@ -932,8 +989,15 @@ declare function setOverride(responsive: ResponsiveOverrides | null | undefined,
|
|
|
932
989
|
* Returns `undefined` when nothing is left, so a serialiser omits the key entirely.
|
|
933
990
|
*/
|
|
934
991
|
declare function clearOverride(responsive: ResponsiveOverrides | null | undefined, bp: Breakpoint | string, prop?: string, state?: string): ResponsiveOverrides | undefined;
|
|
935
|
-
/**
|
|
936
|
-
*
|
|
992
|
+
/**
|
|
993
|
+
* Everything one breakpoint must emit, already composed. Wrap in `mediaQuery` (engine)
|
|
994
|
+
* or apply directly (builder, flattened).
|
|
995
|
+
*
|
|
996
|
+
* ⚠️ Compile these maps with `compileDeclarations(map, …, DeclarationContext.Override)`. The
|
|
997
|
+
* default Base context drops CSS initial values as no-ops — but here `width: auto` or
|
|
998
|
+
* `transform: none` is how a breakpoint UNDOES the wider value, and dropping it silently keeps
|
|
999
|
+
* the desktop style.
|
|
1000
|
+
*/
|
|
937
1001
|
interface ResponsiveRuleSet {
|
|
938
1002
|
breakpoint: OverrideBreakpoint;
|
|
939
1003
|
mediaQuery: string;
|
|
@@ -1871,5 +1935,5 @@ declare class GalleryLoop {
|
|
|
1871
1935
|
private emit;
|
|
1872
1936
|
}
|
|
1873
1937
|
|
|
1874
|
-
export { AOSService, AnalyticsService, BREAKPOINTS, Breakpoint, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CMSClientInfraModule, CONTEXT_ACTION_TYPES, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ConsentService, ContainerComponent, ContentService, ContextStore, DEFAULT_GALLERY_SCHEDULER, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_WIDTH_BY_TYPE, ENVIRONMENT, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, IOX_BUILDER_EVENTS, IS_PREVIEW, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxPageComponent, IoxPageModule, IoxUiModule, LinkedContainerComponent, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PIPE_DESCRIPTORS, PIPE_REGISTRY, PageScrollProvider, PrivacyModalComponent, PrivacyModalService, PrivacyModelEvent, RESERVED_ALIAS_PREFIX, SUPPRESSED_STYLE_PROPS_BY_TYPE, SectionComponent, TRANSITION_FEELS, TextBlockComponent, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, WebSettingsService, activeActions, applyBindingPipes, applyFeel, breakpointDef, buildDataSourceFilter, buildRelatedFilter, buildTargetedStateSelector, buildTransitionTimeline, cascadeChain, clearOverride, collectContextSlotKeys, collectReferencedAliases, compileDeclarations, composeVirtualTraits, computeRelative, contextActionEffect, contextSlotKeys, countOverrides, dataSourcePlanToRequest, declaredInputNames, effectiveTransitionId, excludeSelf, feelFor, getByPath, initialSlotValues, isActionEnabled, isContextAction, isOverriddenAt, isReservedAlias, isValidSlotKey, legacyEnterToTransition, matchRouteParams, mediaQueryFor, nearestCommonAncestorId, nodeCssId, nodeUsesContext, normalizeCollectionResult, parentBreakpoint, parseUrlList, planDataSource, planResponsiveRules, referencedDataSources, referencedDataSourcesDeep, renderDefaultDeclarations, resolveContextValue, resolveDerivedInto, resolveGalleryEffect, resolveGalleryUrls, resolvePageTransition, resolvePath, resolveRelativeInto, resolveRepeaterItems, resolveSiblings, resolveSingleItemId, resolveStateStyles, resolveStyleProps, resolveValueChain, rewriteViewportUnits, safeSetInput, setOverride, stripSuppressedProps, styleKeyToKebab, variableAliases, variableItemsFrom, withContextSlots, wrapInMediaQuery };
|
|
1938
|
+
export { AOSService, AnalyticsService, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CMSClientInfraModule, CONTEXT_ACTION_TYPES, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ConsentService, ContainerComponent, ContentService, ContextStore, DEFAULT_GALLERY_SCHEDULER, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_WIDTH_BY_TYPE, DeclarationContext, ENVIRONMENT, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, IOX_BUILDER_EVENTS, IS_PREVIEW, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxPageComponent, IoxPageModule, IoxUiModule, LinkedContainerComponent, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PIPE_DESCRIPTORS, PIPE_REGISTRY, PageScrollProvider, PrivacyModalComponent, PrivacyModalService, PrivacyModelEvent, RESERVED_ALIAS_PREFIX, SUPPRESSED_STYLE_PROPS_BY_TYPE, SectionComponent, TRANSITION_FEELS, TextBlockComponent, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, WebSettingsService, activeActions, applyBindingPipes, applyFeel, breakpointDef, breakpointForWidth, breakpointQueryFor, buildDataSourceFilter, buildRelatedFilter, buildTargetedStateSelector, buildTransitionTimeline, cascadeChain, clearOverride, collectContextSlotKeys, collectReferencedAliases, compileDeclarations, composeVirtualTraits, computeRelative, contextActionEffect, contextSlotKeys, countOverrides, dataSourcePlanToRequest, declaredInputNames, effectiveTransitionId, excludeSelf, feelFor, getByPath, initialSlotValues, isActionEnabled, isContextAction, isOverriddenAt, isReservedAlias, isValidSlotKey, legacyEnterToTransition, matchRouteParams, mediaQueryFor, nearestCommonAncestorId, nodeCssId, nodeUsesContext, normalizeCollectionResult, normalizeGalleryImage, parentBreakpoint, parseUrlList, planDataSource, planResponsiveRules, referencedDataSources, referencedDataSourcesDeep, renderDefaultDeclarations, resolveContextValue, resolveDerivedInto, resolveGalleryEffect, resolveGalleryUrls, resolvePageTransition, resolvePath, resolveRelativeInto, resolveRepeaterItems, resolveSiblings, resolveSingleItemId, resolveStateStyles, resolveStyleProps, resolveValueChain, rewriteViewportUnits, safeSetInput, setOverride, stateNamesIn, stripSuppressedProps, styleKeyToKebab, variableAliases, variableItemsFrom, withContextSlots, wrapInBreakpointQuery, wrapInMediaQuery };
|
|
1875
1939
|
export type { BreakpointDef, BuildRelatedFilterOptions, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, DataSourceDomain, DataSourceEndpoints, DataSourceMode, DataSourcePlan, DataSourceQueryFilter, DataSourceRequest, DataSourceRequestSpec, DataSourceRouteFilter, DataSourceSpec, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, IBuilderEventEmitter, IoxContextSlot, IoxPipe, OverrideBreakpoint, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, RelativeInputs, RelativeSourceKind, RelativeSourceSpec, ResolveSiblingsOptions, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteContext, SetContextParams, SiblingsResult, StateStyleMap, StyleMap, StyleTreeNode, ToggleableAction, TransitionFeel, TransitionPhase, TransitionTimelineInput, ValueSource, VirtualTraitGroup };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vectoriox/iox-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.25.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=20.0.0",
|
|
6
6
|
"@angular/core": ">=20.0.0",
|
|
@@ -10,16 +10,15 @@
|
|
|
10
10
|
"tslib": "^2.3.0"
|
|
11
11
|
},
|
|
12
12
|
"module": "fesm2022/vectoriox-iox-ui.mjs",
|
|
13
|
-
"typings": "
|
|
13
|
+
"typings": "index.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
"./package.json": {
|
|
16
16
|
"default": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
".": {
|
|
19
|
-
"types": "./
|
|
19
|
+
"types": "./index.d.ts",
|
|
20
20
|
"default": "./fesm2022/vectoriox-iox-ui.mjs"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
"sideEffects": false
|
|
24
|
-
"type": "module"
|
|
23
|
+
"sideEffects": false
|
|
25
24
|
}
|