@vectoriox/iox-ui 4.23.0 → 4.24.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.
|
@@ -744,18 +744,33 @@ declare const SUPPRESSED_STYLE_PROPS_BY_TYPE: Readonly<Record<string, readonly s
|
|
|
744
744
|
/** Remove the style props whose value a type's render-default always overrides. Returns the map
|
|
745
745
|
* unchanged (same reference) when the type suppresses nothing. */
|
|
746
746
|
declare function stripSuppressedProps(type: string, styleProps: Record<string, any>): Record<string, any>;
|
|
747
|
+
/**
|
|
748
|
+
* What a compiled rule is FOR — decides whether an initial value is a no-op.
|
|
749
|
+
*
|
|
750
|
+
* In a `Base` rule nothing is being overridden, so `width: auto` or `transform: none` changes
|
|
751
|
+
* nothing and is dropped (see NOOP_INITIAL_VALUES). In an `Override` rule — a breakpoint layer —
|
|
752
|
+
* the initial value is exactly how you UNDO a wider rule (`width: 520px` → `auto` on mobile), so
|
|
753
|
+
* dropping it would silently keep the desktop value.
|
|
754
|
+
*/
|
|
755
|
+
declare enum DeclarationContext {
|
|
756
|
+
Base = "base",
|
|
757
|
+
Override = "override"
|
|
758
|
+
}
|
|
747
759
|
/**
|
|
748
760
|
* 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
|
|
761
|
+
* declarations (kebab-cased, viewport-units rewritten, empties dropped, no-op initials dropped
|
|
762
|
+
* in a `Base` context only, optional `!important`). Callers wrap these in whatever selector
|
|
763
|
+
* they emit.
|
|
751
764
|
*
|
|
752
765
|
* @param props Flat camelCase style map.
|
|
753
766
|
* @param importantProps Keys that must carry `!important` (e.g. `position`, to beat
|
|
754
767
|
* Angular's scoped-CSS specificity boost in the builder). A prop forced
|
|
755
768
|
* `!important` is never dropped as a no-op — the `!important` exists to win
|
|
756
769
|
* the cascade, so its value must always be emitted.
|
|
770
|
+
* @param context `Override` for a rule that overrides a wider one (a breakpoint layer):
|
|
771
|
+
* initial values are kept, because there they reset rather than no-op.
|
|
757
772
|
*/
|
|
758
|
-
declare function compileDeclarations(props: Record<string, any>, importantProps?: ReadonlySet<string
|
|
773
|
+
declare function compileDeclarations(props: Record<string, any>, importantProps?: ReadonlySet<string>, context?: DeclarationContext): string[];
|
|
759
774
|
/**
|
|
760
775
|
* Per-type default `width` that the builder applies from each component's config
|
|
761
776
|
* (NOT persisted in styleProps — see render-parity.md "saved node is not
|
|
@@ -885,11 +900,39 @@ declare const BREAKPOINTS: readonly BreakpointDef[];
|
|
|
885
900
|
declare function breakpointDef(bp: Breakpoint | string): BreakpointDef | undefined;
|
|
886
901
|
/** Base → `bp`, inclusive — the layers whose values apply at `bp`. Unknown → `[Base]`. */
|
|
887
902
|
declare function cascadeChain(bp: Breakpoint | string): Breakpoint[];
|
|
903
|
+
/**
|
|
904
|
+
* The breakpoint a viewport (or canvas) of `width` CSS px falls in — the narrowest one whose
|
|
905
|
+
* `maxWidth` it fits under, else Base. Mirrors how the `max-width` media queries resolve, so the
|
|
906
|
+
* builder's editing scope is always the breakpoint the canvas is actually showing.
|
|
907
|
+
*/
|
|
908
|
+
declare function breakpointForWidth(width: number): Breakpoint;
|
|
888
909
|
/** The next-wider breakpoint (what `bp` inherits from), or `null` for Base / unknown. */
|
|
889
910
|
declare function parentBreakpoint(bp: Breakpoint | string): Breakpoint | null;
|
|
911
|
+
/**
|
|
912
|
+
* What a breakpoint's width is measured against.
|
|
913
|
+
*
|
|
914
|
+
* `Media` — the browser viewport. The SSR engine: a visitor's window IS the page.
|
|
915
|
+
* `Container` — a named CSS size container. The builder: its canvas is a fixed-width frame inside a
|
|
916
|
+
* desktop browser (and `transform: scale`d for zoom), so a media query would read the EDITOR's width.
|
|
917
|
+
* A container query reads the frame's own layout width — which equals the simulated viewport and
|
|
918
|
+
* ignores the zoom transform — so the builder emits the same structure as the engine.
|
|
919
|
+
*/
|
|
920
|
+
declare enum BreakpointQueryKind {
|
|
921
|
+
Media = "media",
|
|
922
|
+
Container = "container"
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* The at-rule prelude for `bp` — `@media (max-width: 767px)`, or with `Container`
|
|
926
|
+
* `@container iox-canvas (max-width: 767px)`. `null` for Base or an unknown id.
|
|
927
|
+
* `containerName` is required for `Container` (an unnamed container query would match
|
|
928
|
+
* whichever ancestor container is nearest, which is not guaranteed to be the canvas).
|
|
929
|
+
*/
|
|
930
|
+
declare function breakpointQueryFor(bp: Breakpoint | string, kind?: BreakpointQueryKind, containerName?: string): string | null;
|
|
931
|
+
/** Wrap already-compiled rules for `bp`. Base (and blank css) passes through unwrapped. */
|
|
932
|
+
declare function wrapInBreakpointQuery(bp: Breakpoint | string, css: string, kind?: BreakpointQueryKind, containerName?: string): string;
|
|
890
933
|
/** `@media (max-width: 767px)` for `bp`; `null` for Base or an unknown id. */
|
|
891
934
|
declare function mediaQueryFor(bp: Breakpoint | string): string | null;
|
|
892
|
-
/** Wrap already-compiled rules for `bp
|
|
935
|
+
/** Wrap already-compiled rules for `bp` in its media query. Base (and blank css) passes through. */
|
|
893
936
|
declare function wrapInMediaQuery(bp: Breakpoint | string, css: string): string;
|
|
894
937
|
type StyleMap = Record<string, any>;
|
|
895
938
|
type StateStyleMap = Record<string, StyleMap>;
|
|
@@ -903,6 +946,13 @@ type ResponsiveOverrides = Partial<Record<OverrideBreakpoint, ResponsiveLayer>>;
|
|
|
903
946
|
declare function resolveStyleProps(styleProps: StyleMap | null | undefined, responsive: ResponsiveOverrides | null | undefined, bp: Breakpoint | string): StyleMap;
|
|
904
947
|
/** The effective per-state maps at `bp`. States with no values anywhere are omitted. */
|
|
905
948
|
declare function resolveStateStyles(stateStyles: StateStyleMap | null | undefined, responsive: ResponsiveOverrides | null | undefined, bp: Breakpoint | string): StateStyleMap;
|
|
949
|
+
/**
|
|
950
|
+
* Every state that has a value anywhere — at base or at any breakpoint — in a stable order
|
|
951
|
+
* (base states first, then any that exist only at a breakpoint). A renderer iterates this, not
|
|
952
|
+
* `Object.keys(stateStyles)`, so a state defined ONLY at a breakpoint (a Mobile-only hover) still
|
|
953
|
+
* gets its selector scope resolved.
|
|
954
|
+
*/
|
|
955
|
+
declare function stateNamesIn(stateStyles: StateStyleMap | null | undefined, responsive: ResponsiveOverrides | null | undefined): string[];
|
|
906
956
|
/** One level of the cascade that sets a value. */
|
|
907
957
|
interface ValueSource {
|
|
908
958
|
breakpoint: Breakpoint;
|
|
@@ -932,8 +982,15 @@ declare function setOverride(responsive: ResponsiveOverrides | null | undefined,
|
|
|
932
982
|
* Returns `undefined` when nothing is left, so a serialiser omits the key entirely.
|
|
933
983
|
*/
|
|
934
984
|
declare function clearOverride(responsive: ResponsiveOverrides | null | undefined, bp: Breakpoint | string, prop?: string, state?: string): ResponsiveOverrides | undefined;
|
|
935
|
-
/**
|
|
936
|
-
*
|
|
985
|
+
/**
|
|
986
|
+
* Everything one breakpoint must emit, already composed. Wrap in `mediaQuery` (engine)
|
|
987
|
+
* or apply directly (builder, flattened).
|
|
988
|
+
*
|
|
989
|
+
* ⚠️ Compile these maps with `compileDeclarations(map, …, DeclarationContext.Override)`. The
|
|
990
|
+
* default Base context drops CSS initial values as no-ops — but here `width: auto` or
|
|
991
|
+
* `transform: none` is how a breakpoint UNDOES the wider value, and dropping it silently keeps
|
|
992
|
+
* the desktop style.
|
|
993
|
+
*/
|
|
937
994
|
interface ResponsiveRuleSet {
|
|
938
995
|
breakpoint: OverrideBreakpoint;
|
|
939
996
|
mediaQuery: string;
|
|
@@ -1871,5 +1928,5 @@ declare class GalleryLoop {
|
|
|
1871
1928
|
private emit;
|
|
1872
1929
|
}
|
|
1873
1930
|
|
|
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 };
|
|
1931
|
+
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, 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
1932
|
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.24.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
|
}
|