@vectoriox/iox-ui 4.40.0 → 4.42.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-ui.mjs +65 -1
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/index.d.ts +49 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1505,6 +1505,54 @@ declare function nearestCommonAncestorId(root: readonly StyleTreeNode[], styledC
|
|
|
1505
1505
|
*/
|
|
1506
1506
|
declare function buildTargetedStateSelector(scopeCssId: string, triggerCssId: string, styledCssId: string, base: string): string;
|
|
1507
1507
|
|
|
1508
|
+
/**
|
|
1509
|
+
* parts — the failure design (forms-and-inputs-plan.md Part 2, board 7). A compound component
|
|
1510
|
+
* like Field is not one styleable surface: its label, control, help text, error message and
|
|
1511
|
+
* required mark are each their own descendant, addressed by a stable class the component itself
|
|
1512
|
+
* renders (`IoxFieldComponent`'s `iox-field__label`/`__control`/`__help`/`__error`/`__required`).
|
|
1513
|
+
*
|
|
1514
|
+
* Lives in @vectoriox/iox-ui because BOTH renderers depend on iox-ui (the engine does not depend
|
|
1515
|
+
* on iox-builder) — same reason `buildTargetedStateSelector` lives here. No new compiler: this
|
|
1516
|
+
* builds a selector STRING, then the existing `compile()`/`compileDeclarations()` path renders it
|
|
1517
|
+
* exactly like any other rule.
|
|
1518
|
+
*/
|
|
1519
|
+
/**
|
|
1520
|
+
* The selector BODY (no leading `.`, matching the builder's `compile()` convention) for a node,
|
|
1521
|
+
* optionally scoped to one of its parts, optionally further scoped to a validation state.
|
|
1522
|
+
*
|
|
1523
|
+
* buildPartSelector('abc') -> 'iox-node-abc'
|
|
1524
|
+
* buildPartSelector('abc', 'iox-field__error') -> 'iox-node-abc .iox-field__error'
|
|
1525
|
+
* buildPartSelector('abc', undefined, 'iox-invalid') -> 'iox-node-abc.iox-invalid'
|
|
1526
|
+
* buildPartSelector('abc', 'iox-field__error', 'iox-invalid')
|
|
1527
|
+
* -> 'iox-node-abc.iox-invalid .iox-field__error'
|
|
1528
|
+
*
|
|
1529
|
+
* The validation class always attaches to the NODE itself (that's where `IoxFieldComponent` sets
|
|
1530
|
+
* `.iox-invalid`/`.iox-valid`), never to the part — a part has no host class of its own to hang a
|
|
1531
|
+
* compound selector off.
|
|
1532
|
+
*/
|
|
1533
|
+
declare function buildPartSelector(nodeId: string, partClass?: string, validationClass?: string): string;
|
|
1534
|
+
/**
|
|
1535
|
+
* Design-time validation "states" (wrong/accepted) — not real CSS pseudo-classes. `IoxFieldComponent`
|
|
1536
|
+
* already carries `.iox-invalid`/`.iox-valid` host classes it sets from `forceInvalid`/`showValid`
|
|
1537
|
+
* (decision D5), so authoring "Wrong"/"Accepted" styles compiles to a CLASS-compound selector via
|
|
1538
|
+
* `buildPartSelector`, never a `:pseudo-class` (`:wrong` isn't real CSS). Lives here (not
|
|
1539
|
+
* `@vectoriox/iox-builder`'s `ElementState`/`VALIDATION_STATE_CLASS`, which re-export these same
|
|
1540
|
+
* values) because the SSR engine needs the mapping too and does not depend on iox-builder.
|
|
1541
|
+
*/
|
|
1542
|
+
declare const VALIDATION_STATES: readonly ["wrong", "accepted"];
|
|
1543
|
+
declare const VALIDATION_STATE_CLASS: Record<string, string>;
|
|
1544
|
+
/**
|
|
1545
|
+
* type -> part key -> the stable class that part's own template already renders. The single
|
|
1546
|
+
* source of truth for which classes a part maps to, so the builder (render.directive.ts) and the
|
|
1547
|
+
* SSR engine (layout-renderer.service.ts) resolve a part's selector identically without either
|
|
1548
|
+
* duplicating the string literals. `iox-builder`'s `FieldComponentConfig.parts` (the picker's
|
|
1549
|
+
* display labels) is built FROM this map, not the other way round.
|
|
1550
|
+
*/
|
|
1551
|
+
declare const PART_CLASS_NAMES: Record<string, Record<string, string>>;
|
|
1552
|
+
/** The class a declared part compiles against, e.g. ('Field', 'error') -> 'iox-field__error'.
|
|
1553
|
+
* Undefined when the type declares no such part (or no parts at all). */
|
|
1554
|
+
declare function partClassName(type: string, partKey: string): string | undefined;
|
|
1555
|
+
|
|
1508
1556
|
/** Trait names whose value Swiper reads per breakpoint. Anything else is config-wide. */
|
|
1509
1557
|
declare const SWIPER_RESPONSIVE_TRAITS: readonly string[];
|
|
1510
1558
|
/** `{ [minWidth]: { slidesPerView, … } }` — Swiper's own `breakpoints` shape. */
|
|
@@ -2699,5 +2747,5 @@ declare class GalleryLoop {
|
|
|
2699
2747
|
private emit;
|
|
2700
2748
|
}
|
|
2701
2749
|
|
|
2702
|
-
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, PIPE_DESCRIPTORS, PIPE_REGISTRY, PageScrollProvider, PrivacyModalComponent, PrivacyModalService, PrivacyModelEvent, RESERVED_ALIAS_PREFIX, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_RESPONSIVE_TRAITS, SectionComponent, TRANSITION_FEELS, TextBlockComponent, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, WebSettingsService, activeActions, applyBindingPipes, applyFeel, breakpointDef, breakpointForWidth, breakpointQueryFor, buildDataSourceFilter, 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, 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 };
|
|
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 };
|
|
2703
2751
|
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 };
|