@vectoriox/iox-ui 4.43.0 → 5.1.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/index.d.ts CHANGED
@@ -1,12 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { AfterViewInit, EventEmitter, ElementRef, SimpleChanges, OnDestroy, OnInit, Renderer2, ModuleWithProviders, InjectionToken, ChangeDetectorRef, ViewContainerRef, OnChanges, Type, ComponentRef } from '@angular/core';
3
3
  import { AnimationPlayer, AnimationBuilder } from '@angular/animations';
4
- import { Observable, Subject } from 'rxjs';
4
+ import { Observable } from 'rxjs';
5
5
  import * as i3 from '@angular/platform-browser/animations';
6
6
  import Lenis from 'lenis';
7
7
  import * as i2 from '@angular/common';
8
- import { HttpClient } from '@angular/common/http';
9
- import { CookieService } from 'ngx-cookie-service';
10
8
 
11
9
  declare class ViewPositionDirective implements AfterViewInit {
12
10
  private _elr;
@@ -165,91 +163,6 @@ declare class ComponentInstanceRegistryService {
165
163
  static ɵprov: i0.ɵɵInjectableDeclaration<ComponentInstanceRegistryService>;
166
164
  }
167
165
 
168
- declare enum PrivacyModelEvent {
169
- OPEN = 1,
170
- CLOSE = 2
171
- }
172
- declare class PrivacyModalService {
173
- private modalEvent;
174
- private decisionSubject;
175
- constructor();
176
- registerModalEvent(func: Function): void;
177
- openModal(): Subject<boolean>;
178
- closeModal(): void;
179
- notifyDecision(accepted: boolean): void;
180
- static ɵfac: i0.ɵɵFactoryDeclaration<PrivacyModalService, never>;
181
- static ɵprov: i0.ɵɵInjectableDeclaration<PrivacyModalService>;
182
- }
183
-
184
- declare class ConsentService {
185
- private cookieService;
186
- private httpClient;
187
- private _privacyModalService;
188
- environment: any;
189
- private readonly WEB_USER;
190
- constructor(cookieService: CookieService, httpClient: HttpClient, _privacyModalService: PrivacyModalService, environment: any);
191
- private hasAnalyticsConsent;
192
- checkAnalyticsConsent(): Observable<boolean>;
193
- checkMarketingConsent(): any;
194
- setConsent(analytics: boolean, marketing: boolean): void;
195
- private generateAnonymousId;
196
- static ɵfac: i0.ɵɵFactoryDeclaration<ConsentService, never>;
197
- static ɵprov: i0.ɵɵInjectableDeclaration<ConsentService>;
198
- }
199
-
200
- declare class PrivacyModalComponent {
201
- private _privacyModalService;
202
- private _consentService;
203
- isOpen: boolean;
204
- constructor(_privacyModalService: PrivacyModalService, _consentService: ConsentService);
205
- onAccept(): void;
206
- onDecline(): void;
207
- static ɵfac: i0.ɵɵFactoryDeclaration<PrivacyModalComponent, never>;
208
- static ɵcmp: i0.ɵɵComponentDeclaration<PrivacyModalComponent, "privacy-modal", never, {}, {}, never, never, false, never>;
209
- }
210
-
211
- declare const ENVIRONMENT: InjectionToken<any>;
212
- declare class CMSClientInfraModule {
213
- static forRoot(environment: any): ModuleWithProviders<CMSClientInfraModule>;
214
- static ɵfac: i0.ɵɵFactoryDeclaration<CMSClientInfraModule, never>;
215
- static ɵmod: i0.ɵɵNgModuleDeclaration<CMSClientInfraModule, [typeof PrivacyModalComponent], [typeof i2.CommonModule], [typeof PrivacyModalComponent]>;
216
- static ɵinj: i0.ɵɵInjectorDeclaration<CMSClientInfraModule>;
217
- }
218
-
219
- declare class WebSettingsService {
220
- private httpClient;
221
- private environment;
222
- constructor(httpClient: HttpClient, environment: any);
223
- getSettings(): Observable<Object>;
224
- configArrayToObject(arr: any[]): {
225
- [key: string]: any;
226
- };
227
- static ɵfac: i0.ɵɵFactoryDeclaration<WebSettingsService, never>;
228
- static ɵprov: i0.ɵɵInjectableDeclaration<WebSettingsService>;
229
- }
230
-
231
- declare class ContentService {
232
- private httpClient;
233
- private environment;
234
- private appContent;
235
- constructor(httpClient: HttpClient, environment: any);
236
- getContent(contentName: string, id?: string): Observable<any>;
237
- private findOne;
238
- static ɵfac: i0.ɵɵFactoryDeclaration<ContentService, never>;
239
- static ɵprov: i0.ɵɵInjectableDeclaration<ContentService>;
240
- }
241
-
242
- declare class AnalyticsService {
243
- private platformId;
244
- private gaScriptId;
245
- constructor(platformId: Object);
246
- applyGoogleAnalytics(appId: string): void;
247
- sendEvent(eventName: string, params?: object): void;
248
- sendPageView(path: string): void;
249
- static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsService, never>;
250
- static ɵprov: i0.ɵɵInjectableDeclaration<AnalyticsService>;
251
- }
252
-
253
166
  declare const IS_PREVIEW: InjectionToken<boolean>;
254
167
  interface IBuilderEventEmitter {
255
168
  emit(type: string, data?: any): void;
@@ -1598,6 +1511,44 @@ declare function buildSwiperBreakpoints(inputs: InputMap | null | undefined, res
1598
1511
  */
1599
1512
  declare function mergeSwiperBreakpoints(derived: SwiperBreakpointMap, advancedJson: string | null | undefined): SwiperBreakpointMap | undefined;
1600
1513
 
1514
+ /**
1515
+ * Design-token → CSS compilation, shared by BOTH renderers (flavors plan F0).
1516
+ *
1517
+ * A token row is `{ name, value }` plus, since F0, an optional per-scheme override:
1518
+ * `values.dark`. The shape exists NOW — before any dark-mode UI — because retrofitting it
1519
+ * later means rewriting every org's `designtokens` collection (flavors plan §10 C3).
1520
+ *
1521
+ * ⚠️ The appended-last contract: the dark block REDEFINES custom properties under
1522
+ * `@media (prefers-color-scheme: dark)`. Per the responsive-breakpoints A3 lesson, every
1523
+ * consumer appends it AFTER all of its base rules — the engine pushes it after the page's
1524
+ * css blocks, the builder registry keeps it as its last token rule. Custom properties are
1525
+ * order-insensitive against node rules, but keeping one ordering rule for every @media
1526
+ * block in the product is cheaper than remembering which ones are exempt.
1527
+ */
1528
+ /** The transport-agnostic token row. `source` marks seeded rows (`flavor:<id>@<ver>`). */
1529
+ interface DesignTokenLike {
1530
+ name: string;
1531
+ value: string;
1532
+ /** Per-scheme overrides. Only `dark` exists today; absent means the base value everywhere. */
1533
+ values?: {
1534
+ dark?: string;
1535
+ };
1536
+ type?: string;
1537
+ source?: string;
1538
+ }
1539
+ /** `{ 'iox-brand': '#2f6f62', … }` — the builder registry's input shape for base values. */
1540
+ declare function tokensToVarMap(tokens: ReadonlyArray<DesignTokenLike> | null | undefined): Record<string, string>;
1541
+ /** Only the tokens that carry a dark override, as `{ 'iox-name': darkValue }`. */
1542
+ declare function tokensToDarkVarMap(tokens: ReadonlyArray<DesignTokenLike> | null | undefined): Record<string, string>;
1543
+ /**
1544
+ * The two CSS blocks a renderer emits. `base` goes FIRST (before node rules), `dark` goes
1545
+ * LAST (after every base rule); either may be '' when there is nothing to say.
1546
+ */
1547
+ declare function compileTokenCss(tokens: ReadonlyArray<DesignTokenLike> | null | undefined): {
1548
+ base: string;
1549
+ dark: string;
1550
+ };
1551
+
1601
1552
  /**
1602
1553
  * page-style — the ONE compiler that turns a page's style settings into CSS.
1603
1554
  *
@@ -2767,5 +2718,5 @@ declare class GalleryLoop {
2767
2718
  private emit;
2768
2719
  }
2769
2720
 
2770
- 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_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DeclarationContext, ENVIRONMENT, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxSubmitButtonComponent, IoxUiModule, LinkedContainerComponent, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PIPE_DESCRIPTORS, PIPE_REGISTRY, PageScrollProvider, PrivacyModalComponent, PrivacyModalService, PrivacyModelEvent, RESERVED_ALIAS_PREFIX, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_RESPONSIVE_TRAITS, SectionComponent, TRANSITION_FEELS, TextBlockComponent, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, WebSettingsService, activeActions, applyBindingPipes, applyFeel, breakpointDef, breakpointForWidth, breakpointQueryFor, buildDataSourceFilter, buildPartSelector, buildRelatedFilter, buildSwiperBreakpoints, buildTargetedStateSelector, buildTransitionTimeline, cascadeChain, clearInputOverride, clearOverride, collectContextSlotKeys, collectReferencedAliases, compileDeclarations, compilePageStyle, composeVirtualTraits, computeRelative, contextActionEffect, contextSlotKeys, countOverrides, dataSourcePlanToRequest, declaredInputNames, defaultMessageResolver, deriveSeoFromContent, describeSeoFields, effectiveTransitionId, excludeSelf, feelFor, getByPath, getSeoValue, initialSlotValues, isActionEnabled, isContextAction, isInputOverriddenAt, isOverriddenAt, isReservedAlias, isValidSlotKey, legacyEnterToTransition, matchRouteParams, mediaQueryFor, mergeSwiperBreakpoints, nearestCommonAncestorId, nodeCssId, nodeUsesContext, normalizeCollectionResult, normalizeGalleryImage, normalizeIconClass, parentBreakpoint, parseUrlList, partClassName, planDataSource, planResponsiveRules, referencedDataSources, referencedDataSourcesDeep, renderDefaultDeclarations, resetSeoField, resolveBoundValue, resolveContextValue, resolveDerivedInto, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolvePageTransition, resolvePath, resolveRelativeInto, resolveRepeaterItems, resolveSeo, resolveSiblings, resolveSingleItemId, resolveStateStyles, resolveStyleProps, resolveValueChain, rewriteViewportUnits, safeSetInput, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, stateNamesIn, stripSuppressedProps, styleKeyToKebab, variableAliases, variableItemsFrom, withContextSlots, wrapInBreakpointQuery, wrapInMediaQuery };
2771
- export type { BoundValueSpec, BreakpointDef, BuildRelatedFilterOptions, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, DataSourceDomain, DataSourceEndpoints, DataSourceMode, DataSourcePlan, DataSourceQueryFilter, DataSourceRequest, DataSourceRequestSpec, DataSourceRouteFilter, DataSourceSpec, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, IBuilderEventEmitter, InputMap, IoxContextSlot, IoxPipe, OverrideBreakpoint, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, RelativeInputs, RelativeSourceKind, RelativeSourceSpec, ResolveSiblingsOptions, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteContext, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SiblingsResult, StateStyleMap, StyleMap, StyleTreeNode, SwiperBreakpointMap, ToggleableAction, TransitionFeel, TransitionPhase, TransitionTimelineInput, ValueSource, VirtualTraitGroup };
2721
+ export { AOSService, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CONTEXT_ACTION_TYPES, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ContainerComponent, ContextStore, DEFAULT_GALLERY_SCHEDULER, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DeclarationContext, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxSubmitButtonComponent, IoxUiModule, LinkedContainerComponent, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PIPE_DESCRIPTORS, PIPE_REGISTRY, PageScrollProvider, RESERVED_ALIAS_PREFIX, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_RESPONSIVE_TRAITS, SectionComponent, TRANSITION_FEELS, TextBlockComponent, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, activeActions, applyBindingPipes, applyFeel, breakpointDef, breakpointForWidth, breakpointQueryFor, buildDataSourceFilter, buildPartSelector, buildRelatedFilter, buildSwiperBreakpoints, buildTargetedStateSelector, buildTransitionTimeline, cascadeChain, clearInputOverride, clearOverride, collectContextSlotKeys, collectReferencedAliases, compileDeclarations, compilePageStyle, compileTokenCss, composeVirtualTraits, computeRelative, contextActionEffect, contextSlotKeys, countOverrides, dataSourcePlanToRequest, declaredInputNames, defaultMessageResolver, deriveSeoFromContent, describeSeoFields, effectiveTransitionId, excludeSelf, feelFor, getByPath, getSeoValue, initialSlotValues, isActionEnabled, isContextAction, isInputOverriddenAt, isOverriddenAt, isReservedAlias, isValidSlotKey, legacyEnterToTransition, matchRouteParams, mediaQueryFor, mergeSwiperBreakpoints, nearestCommonAncestorId, nodeCssId, nodeUsesContext, normalizeCollectionResult, normalizeGalleryImage, normalizeIconClass, parentBreakpoint, parseUrlList, partClassName, planDataSource, planResponsiveRules, referencedDataSources, referencedDataSourcesDeep, renderDefaultDeclarations, resetSeoField, resolveBoundValue, resolveContextValue, resolveDerivedInto, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolvePageTransition, resolvePath, resolveRelativeInto, resolveRepeaterItems, resolveSeo, resolveSiblings, resolveSingleItemId, resolveStateStyles, resolveStyleProps, resolveValueChain, rewriteViewportUnits, safeSetInput, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, stateNamesIn, stripSuppressedProps, styleKeyToKebab, tokensToDarkVarMap, tokensToVarMap, variableAliases, variableItemsFrom, withContextSlots, wrapInBreakpointQuery, wrapInMediaQuery };
2722
+ export type { BoundValueSpec, BreakpointDef, BuildRelatedFilterOptions, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, DataSourceDomain, DataSourceEndpoints, DataSourceMode, DataSourcePlan, DataSourceQueryFilter, DataSourceRequest, DataSourceRequestSpec, DataSourceRouteFilter, DataSourceSpec, DesignTokenLike, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, IBuilderEventEmitter, InputMap, IoxContextSlot, IoxPipe, OverrideBreakpoint, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, RelativeInputs, RelativeSourceKind, RelativeSourceSpec, ResolveSiblingsOptions, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteContext, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SiblingsResult, StateStyleMap, StyleMap, StyleTreeNode, SwiperBreakpointMap, 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.43.0",
3
+ "version": "5.1.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",