@vectoriox/iox-ui 5.36.0 → 5.38.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/actions-core/index.d.ts +17 -3
- package/composite-core/index.d.ts +463 -31
- package/design-core/index.d.ts +130 -3
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +33 -3
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +1062 -121
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +172 -3
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +410 -10
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-media-core.mjs +571 -0
- package/fesm2022/vectoriox-iox-ui-media-core.mjs.map +1 -0
- package/fesm2022/vectoriox-iox-ui.mjs +482 -120
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +167 -4
- package/index.d.ts +209 -25
- package/media-core/index.d.ts +277 -0
- package/media-core/package.json +3 -0
- package/package.json +5 -1
- package/src/actions-core/action.model.ts +4 -2
- package/src/actions-core/element-actions.ts +37 -2
- package/src/composite-core/accordion-runtime.ts +117 -28
- package/src/composite-core/accordion.ts +89 -45
- package/src/composite-core/composite-kinds.ts +110 -0
- package/src/composite-core/composite-node.ts +15 -0
- package/src/composite-core/disclosure.ts +125 -0
- package/src/composite-core/lightbox.ts +192 -0
- package/src/composite-core/public-api.ts +7 -1
- package/src/composite-core/slider-runtime.ts +180 -0
- package/src/composite-core/slider.ts +378 -0
- package/src/composite-core/structure.ts +25 -5
- package/src/design-core/element-styles.ts +27 -0
- package/src/design-core/flavor-spec.generated.ts +146 -2
- package/src/generation-core/baseline-roles.ts +2 -0
- package/src/generation-core/compose-site.ts +80 -4
- package/src/generation-core/node-baselines.generated.ts +148 -4
- package/src/generation-core/patterns.ts +17 -0
- package/src/generation-core/site-spec.generated.ts +164 -0
- package/src/media-core/public-api.ts +9 -0
- package/src/media-core/video-runtime.ts +239 -0
- package/src/media-core/video.ts +443 -0
- package/styles/iox-design.css +96 -0
package/actions-core/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CompositeItemAction } from '@vectoriox/iox-ui/composite-core';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* The ONE descriptor shape for everything an author can put in an ordered action list —
|
|
3
5
|
* a form's after-submit steps today, element behaviour actions (A1) next. Promoted out of
|
|
@@ -8,7 +10,7 @@
|
|
|
8
10
|
/** How a step executes — decides which editor fields appear (timing only for `animated`). */
|
|
9
11
|
type ActionKind = 'animated' | 'instant' | 'server';
|
|
10
12
|
/** Picker grouping. Flat lists die at ~10 entries; the group is data, never a second list. */
|
|
11
|
-
type ActionGroup = 'motion' | 'visibility' | 'navigate' | 'dialog' | 'form' | 'data' | 'consent' | 'service';
|
|
13
|
+
type ActionGroup = 'motion' | 'visibility' | 'navigate' | 'dialog' | 'item' | 'form' | 'data' | 'consent' | 'service';
|
|
12
14
|
/**
|
|
13
15
|
* What a step does inside the live builder canvas (the canvas RUNS interactions):
|
|
14
16
|
* `run` for real (open the dialog), `simulate` announce-only (navigate), `inert` with a
|
|
@@ -26,10 +28,12 @@ interface ActionParamSpec {
|
|
|
26
28
|
labelKey: string;
|
|
27
29
|
}[];
|
|
28
30
|
}
|
|
29
|
-
/** Does this action point at another node — and may it be any node or only certain types? */
|
|
31
|
+
/** Does this action point at another node — and may it be any node, or only certain types / composite roles? */
|
|
30
32
|
interface ActionTargetSpec {
|
|
31
33
|
required: boolean;
|
|
32
34
|
types?: string[];
|
|
35
|
+
/** Only nodes playing one of these composite roles (`openItem` targets an accordion item or a disclosure). */
|
|
36
|
+
roles?: string[];
|
|
33
37
|
}
|
|
34
38
|
/**
|
|
35
39
|
* One row of an action catalog. Every field beyond `type`/`labelKey` is optional so the
|
|
@@ -105,6 +109,16 @@ declare const SERVER_ELEMENT_ACTION_TYPES: ReadonlySet<string>;
|
|
|
105
109
|
/** The Tier-A behaviour executors' dispatch set (A1c) — the engines branch on it beside
|
|
106
110
|
* DIALOG/SWIPER. Dialog actions have their own set; context/visibility stay in the legacy path. */
|
|
107
111
|
declare const BEHAVIOUR_ACTION_TYPES: ReadonlySet<string>;
|
|
112
|
+
/** The item actions' dispatch set (T14) and what each does to its item — the engines branch on it beside
|
|
113
|
+
* DIALOG/BEHAVIOUR, and composite-core `runCompositeItemAction` runs it on the target item's own runtime. */
|
|
114
|
+
declare const ITEM_ACTION_TYPES: Readonly<Record<string, CompositeItemAction>>;
|
|
115
|
+
/** The item action an action type runs, or null when it is not one. */
|
|
116
|
+
/** True when an `openDialog` action opens its dialog at the clicked row's slide (CC3 "Open at the clicked item"). */
|
|
117
|
+
declare function opensAtClickedItem(action: {
|
|
118
|
+
type?: string;
|
|
119
|
+
params?: Record<string, unknown> | null;
|
|
120
|
+
} | null | undefined): boolean;
|
|
121
|
+
declare function itemActionOf(type: string | null | undefined): CompositeItemAction | null;
|
|
108
122
|
/** The consent actions' dispatch set (C3) — the engines branch on it beside DIALOG/BEHAVIOUR.
|
|
109
123
|
* `openConsentPreferences` is dialog-opening by nature and included so ONE branch owns consent. */
|
|
110
124
|
declare const CONSENT_ACTION_TYPES: ReadonlySet<string>;
|
|
@@ -166,5 +180,5 @@ declare function dialogOpenerAttributes(node: OpenerNodeLike | null | undefined,
|
|
|
166
180
|
/** The selector of every opener of one dialog (by its DOM id) — what a runtime updates on open/close. */
|
|
167
181
|
declare function dialogOpenersSelector(dialogDomIdValue: string): string;
|
|
168
182
|
|
|
169
|
-
export { BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, DIALOG_ACTION_TYPE_SET, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, OpenerAttribute, SERVER_ELEMENT_ACTION_TYPES, addableActions, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, groupedElementActions, nodeIdOfDialogDomId, openedDialogId, resolveActionAvailability };
|
|
183
|
+
export { BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, DIALOG_ACTION_TYPE_SET, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, ITEM_ACTION_TYPES, OpenerAttribute, SERVER_ELEMENT_ACTION_TYPES, addableActions, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, groupedElementActions, itemActionOf, nodeIdOfDialogDomId, openedDialogId, opensAtClickedItem, resolveActionAvailability };
|
|
170
184
|
export type { ActionAvailability, ActionAvailabilityContext, ActionAvailabilityState, ActionDescriptor, ActionGroup, ActionKind, ActionParamSpec, ActionTargetSpec, BuilderBehaviour, OpenerActionLike, OpenerInteractionLike, OpenerNodeLike };
|