@vectoriox/iox-ui 4.42.0 → 5.0.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;
@@ -1137,6 +1050,20 @@ declare class IoxFormComponent implements OnChanges, OnInit {
1137
1050
  name: string;
1138
1051
  renderState: FormRenderState | string;
1139
1052
  feedback: FeedbackTiming | string;
1053
+ /**
1054
+ * Move focus to the first field that failed, instead of leaving the visitor to hunt for red
1055
+ * text. On by default — the single most valuable thing a failed submit can do.
1056
+ */
1057
+ focusFirstProblem: boolean;
1058
+ /**
1059
+ * Speak the failure the moment it happens. Without this a screen-reader user only learns a
1060
+ * submit failed if they happen to tab back into the message — the error text is rendered, but
1061
+ * nothing directs them to it.
1062
+ */
1063
+ announceFailure: boolean;
1064
+ /** What the live region is currently saying. Empty between attempts so the same failure
1065
+ * announces again rather than being swallowed as an unchanged value. */
1066
+ announcement: string;
1140
1067
  /**
1141
1068
  * Emitted ONLY when client-side validation passes, carrying the collected values. The host
1142
1069
  * (builder canvas or engine runtime) owns the transport — posting, retries and the server's
@@ -1176,9 +1103,15 @@ declare class IoxFormComponent implements OnChanges, OnInit {
1176
1103
  private honeypotValue;
1177
1104
  /** Blank the real DOM controls after a success. The runtime state alone would leave them filled. */
1178
1105
  private resetControls;
1106
+ /**
1107
+ * Put the failure into the live region. Cleared first so two identical failures in a row are
1108
+ * two announcements, not one — a live region only speaks on CHANGE, and "same error again"
1109
+ * is exactly when a visitor most needs telling.
1110
+ */
1111
+ private announce;
1179
1112
  private focusFirstInvalid;
1180
1113
  static ɵfac: i0.ɵɵFactoryDeclaration<IoxFormComponent, [null, null, { optional: true; }, { optional: true; }]>;
1181
- static ɵcmp: i0.ɵɵComponentDeclaration<IoxFormComponent, "form[iox-form]", never, { "nodeId": { "alias": "nodeId"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "name": { "alias": "name"; "required": false; }; "renderState": { "alias": "renderState"; "required": false; }; "feedback": { "alias": "feedback"; "required": false; }; }, { "formSubmit": "formSubmit"; "validationFailed": "validationFailed"; }, never, never, false, never>;
1114
+ static ɵcmp: i0.ɵɵComponentDeclaration<IoxFormComponent, "form[iox-form]", never, { "nodeId": { "alias": "nodeId"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "name": { "alias": "name"; "required": false; }; "renderState": { "alias": "renderState"; "required": false; }; "feedback": { "alias": "feedback"; "required": false; }; "focusFirstProblem": { "alias": "focusFirstProblem"; "required": false; }; "announceFailure": { "alias": "announceFailure"; "required": false; }; }, { "formSubmit": "formSubmit"; "validationFailed": "validationFailed"; }, never, never, false, never>;
1182
1115
  }
1183
1116
 
1184
1117
  /**
@@ -2747,5 +2680,5 @@ declare class GalleryLoop {
2747
2680
  private emit;
2748
2681
  }
2749
2682
 
2750
- 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 };
2683
+ 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, 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 };
2751
2684
  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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "4.42.0",
3
+ "version": "5.0.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/vectoriox-iox-ui-forms-core.mjs"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/vectoriox-iox-ui-seo-core.mjs"
3
- }