@vectoriox/iox-ui 5.87.0 → 5.89.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 +208 -2
- package/design-core/index.d.ts +373 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +30 -4
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +659 -118
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +444 -3
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1082 -51
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +244 -7
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +604 -20
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +375 -2
- package/index.d.ts +196 -2
- package/package.json +1 -1
- package/scene-core/index.d.ts +167 -2
- package/src/actions-core/action.model.ts +3 -0
- package/src/actions-core/element-actions.ts +32 -3
- package/src/composite-core/marquee-runtime.ts +255 -0
- package/src/composite-core/marquee.ts +267 -0
- package/src/composite-core/public-api.ts +3 -0
- package/src/composite-core/scroll-recipes.ts +74 -0
- package/src/composite-core/slider.ts +3 -2
- package/src/composite-core/structure.ts +7 -0
- package/src/design-core/contrast-audit.ts +6 -1
- package/src/design-core/flavor-spec.generated.ts +435 -1
- package/src/generation-core/compose-layout.ts +821 -0
- package/src/generation-core/compose-site.ts +14 -2
- package/src/generation-core/layout-language.ts +354 -0
- package/src/generation-core/node-baselines.generated.ts +5 -1
- package/src/generation-core/public-api.ts +2 -0
- package/src/scene-core/public-api.ts +1 -0
- package/src/scene-core/scroll-driver.ts +98 -0
- package/src/scene-core/scroll-range.ts +208 -0
- package/styles/iox-design.css +66 -1
package/design-core/index.d.ts
CHANGED
|
@@ -1165,6 +1165,38 @@ declare const SPEC_TIERS: {
|
|
|
1165
1165
|
readonly name: "slider-ease";
|
|
1166
1166
|
readonly type: "easing";
|
|
1167
1167
|
readonly default: "var(--iox-ease-standard)";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly name: "marquee-speed";
|
|
1170
|
+
readonly type: "number";
|
|
1171
|
+
readonly default: "40";
|
|
1172
|
+
}, {
|
|
1173
|
+
readonly name: "marquee-gap";
|
|
1174
|
+
readonly type: "spacing";
|
|
1175
|
+
readonly default: "var(--iox-space-gap)";
|
|
1176
|
+
}, {
|
|
1177
|
+
readonly name: "marquee-fade";
|
|
1178
|
+
readonly type: "size";
|
|
1179
|
+
readonly default: "48px";
|
|
1180
|
+
}, {
|
|
1181
|
+
readonly name: "marquee-control-bg";
|
|
1182
|
+
readonly type: "color";
|
|
1183
|
+
readonly default: "var(--iox-surface)";
|
|
1184
|
+
}, {
|
|
1185
|
+
readonly name: "marquee-control-ink";
|
|
1186
|
+
readonly type: "color";
|
|
1187
|
+
readonly default: "var(--iox-text)";
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly name: "marquee-control-border";
|
|
1190
|
+
readonly type: "color";
|
|
1191
|
+
readonly default: "var(--iox-line-strong)";
|
|
1192
|
+
}, {
|
|
1193
|
+
readonly name: "progress-height";
|
|
1194
|
+
readonly type: "size";
|
|
1195
|
+
readonly default: "3px";
|
|
1196
|
+
}, {
|
|
1197
|
+
readonly name: "progress-fill";
|
|
1198
|
+
readonly type: "color";
|
|
1199
|
+
readonly default: "var(--iox-text)";
|
|
1168
1200
|
}];
|
|
1169
1201
|
};
|
|
1170
1202
|
declare const SPEC_TOKEN_TYPES: readonly ["color", "paint", "font", "number", "size", "spacing", "radius", "shadow", "effect", "duration", "easing", "keyword", "other"];
|
|
@@ -1248,6 +1280,7 @@ declare const SPEC_AXES: {
|
|
|
1248
1280
|
readonly "dur-hover": "0ms";
|
|
1249
1281
|
readonly "dur-press": "0ms";
|
|
1250
1282
|
readonly "dur-ui": "0ms";
|
|
1283
|
+
readonly "marquee-speed": "0";
|
|
1251
1284
|
readonly "tooltip-dur-in": "0ms";
|
|
1252
1285
|
readonly "tooltip-dur-out": "0ms";
|
|
1253
1286
|
readonly "popover-dur-in": "0ms";
|
|
@@ -1270,6 +1303,7 @@ declare const SPEC_AXES: {
|
|
|
1270
1303
|
readonly "dur-hover": "80ms";
|
|
1271
1304
|
readonly "dur-press": "60ms";
|
|
1272
1305
|
readonly "dur-ui": "140ms";
|
|
1306
|
+
readonly "marquee-speed": "52";
|
|
1273
1307
|
readonly "tooltip-dur-in": "100ms";
|
|
1274
1308
|
readonly "tooltip-dur-out": "70ms";
|
|
1275
1309
|
readonly "popover-dur-in": "160ms";
|
|
@@ -1292,6 +1326,7 @@ declare const SPEC_AXES: {
|
|
|
1292
1326
|
readonly "dur-hover": "120ms";
|
|
1293
1327
|
readonly "dur-press": "90ms";
|
|
1294
1328
|
readonly "dur-ui": "200ms";
|
|
1329
|
+
readonly "marquee-speed": "40";
|
|
1295
1330
|
readonly "tooltip-dur-in": "125ms";
|
|
1296
1331
|
readonly "tooltip-dur-out": "80ms";
|
|
1297
1332
|
readonly "popover-dur-in": "200ms";
|
|
@@ -1314,6 +1349,7 @@ declare const SPEC_AXES: {
|
|
|
1314
1349
|
readonly "dur-hover": "150ms";
|
|
1315
1350
|
readonly "dur-press": "120ms";
|
|
1316
1351
|
readonly "dur-ui": "300ms";
|
|
1352
|
+
readonly "marquee-speed": "28";
|
|
1317
1353
|
readonly "tooltip-dur-in": "160ms";
|
|
1318
1354
|
readonly "tooltip-dur-out": "110ms";
|
|
1319
1355
|
readonly "popover-dur-in": "260ms";
|
|
@@ -1336,6 +1372,7 @@ declare const SPEC_AXES: {
|
|
|
1336
1372
|
readonly "dur-hover": "150ms";
|
|
1337
1373
|
readonly "dur-press": "100ms";
|
|
1338
1374
|
readonly "dur-ui": "280ms";
|
|
1375
|
+
readonly "marquee-speed": "56";
|
|
1339
1376
|
readonly "tooltip-dur-in": "140ms";
|
|
1340
1377
|
readonly "tooltip-dur-out": "90ms";
|
|
1341
1378
|
readonly "popover-dur-in": "220ms";
|
|
@@ -2281,6 +2318,7 @@ declare const SPEC_A11Y: {
|
|
|
2281
2318
|
readonly "button-press-y": "0px";
|
|
2282
2319
|
readonly "button-press-scale": "1";
|
|
2283
2320
|
readonly "image-hover-scale": "1";
|
|
2321
|
+
readonly "marquee-speed": "0";
|
|
2284
2322
|
};
|
|
2285
2323
|
readonly reducedTransparency: {
|
|
2286
2324
|
readonly "surface-glass": "var(--iox-surface)";
|
|
@@ -3061,6 +3099,49 @@ declare const SPEC_ELEMENT_STYLES: readonly [{
|
|
|
3061
3099
|
readonly color: "var(--iox-text-muted)";
|
|
3062
3100
|
readonly opacity: "0.4";
|
|
3063
3101
|
};
|
|
3102
|
+
}, {
|
|
3103
|
+
readonly id: "marquee";
|
|
3104
|
+
readonly label: "Marquee";
|
|
3105
|
+
readonly group: "Layout";
|
|
3106
|
+
readonly appliesTo: readonly ["Container"];
|
|
3107
|
+
readonly base: {
|
|
3108
|
+
readonly gap: "var(--iox-marquee-gap)";
|
|
3109
|
+
readonly color: "inherit";
|
|
3110
|
+
};
|
|
3111
|
+
}, {
|
|
3112
|
+
readonly id: "marquee-control";
|
|
3113
|
+
readonly label: "Marquee pause";
|
|
3114
|
+
readonly group: "Buttons";
|
|
3115
|
+
readonly appliesTo: readonly ["ButtonBlock"];
|
|
3116
|
+
readonly base: {
|
|
3117
|
+
readonly backgroundColor: "var(--iox-marquee-control-bg)";
|
|
3118
|
+
readonly color: "var(--iox-marquee-control-ink)";
|
|
3119
|
+
readonly borderStyle: "solid";
|
|
3120
|
+
readonly borderWidth: "var(--iox-border-width)";
|
|
3121
|
+
readonly borderColor: "var(--iox-marquee-control-border)";
|
|
3122
|
+
readonly borderRadius: "var(--iox-radius-pill)";
|
|
3123
|
+
readonly transitionDuration: "var(--iox-dur-hover)";
|
|
3124
|
+
readonly transitionTimingFunction: "var(--iox-ease-hover)";
|
|
3125
|
+
};
|
|
3126
|
+
readonly hover: {
|
|
3127
|
+
readonly backgroundColor: "var(--iox-surface-2)";
|
|
3128
|
+
};
|
|
3129
|
+
readonly active: {
|
|
3130
|
+
readonly scaleX: "var(--iox-press-scale)";
|
|
3131
|
+
readonly scaleY: "var(--iox-press-scale)";
|
|
3132
|
+
};
|
|
3133
|
+
readonly focus: {
|
|
3134
|
+
readonly boxShadow: "var(--iox-focus-ring)";
|
|
3135
|
+
};
|
|
3136
|
+
}, {
|
|
3137
|
+
readonly id: "progress-bar";
|
|
3138
|
+
readonly label: "Progress bar";
|
|
3139
|
+
readonly group: "Media";
|
|
3140
|
+
readonly appliesTo: readonly ["Container"];
|
|
3141
|
+
readonly base: {
|
|
3142
|
+
readonly backgroundColor: "var(--iox-progress-fill)";
|
|
3143
|
+
readonly height: "var(--iox-progress-height)";
|
|
3144
|
+
};
|
|
3064
3145
|
}, {
|
|
3065
3146
|
readonly id: "notice-success";
|
|
3066
3147
|
readonly label: "Success message";
|
|
@@ -5457,6 +5538,54 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
|
|
|
5457
5538
|
readonly type: "easing";
|
|
5458
5539
|
readonly group: "components";
|
|
5459
5540
|
readonly value: "var(--iox-ease-standard)";
|
|
5541
|
+
}, {
|
|
5542
|
+
readonly name: "marquee-speed";
|
|
5543
|
+
readonly tier: "component";
|
|
5544
|
+
readonly type: "number";
|
|
5545
|
+
readonly group: "components";
|
|
5546
|
+
readonly value: "40";
|
|
5547
|
+
}, {
|
|
5548
|
+
readonly name: "marquee-gap";
|
|
5549
|
+
readonly tier: "component";
|
|
5550
|
+
readonly type: "spacing";
|
|
5551
|
+
readonly group: "components";
|
|
5552
|
+
readonly value: "var(--iox-space-gap)";
|
|
5553
|
+
}, {
|
|
5554
|
+
readonly name: "marquee-fade";
|
|
5555
|
+
readonly tier: "component";
|
|
5556
|
+
readonly type: "size";
|
|
5557
|
+
readonly group: "components";
|
|
5558
|
+
readonly value: "48px";
|
|
5559
|
+
}, {
|
|
5560
|
+
readonly name: "marquee-control-bg";
|
|
5561
|
+
readonly tier: "component";
|
|
5562
|
+
readonly type: "color";
|
|
5563
|
+
readonly group: "components";
|
|
5564
|
+
readonly value: "var(--iox-surface)";
|
|
5565
|
+
}, {
|
|
5566
|
+
readonly name: "marquee-control-ink";
|
|
5567
|
+
readonly tier: "component";
|
|
5568
|
+
readonly type: "color";
|
|
5569
|
+
readonly group: "components";
|
|
5570
|
+
readonly value: "var(--iox-text)";
|
|
5571
|
+
}, {
|
|
5572
|
+
readonly name: "marquee-control-border";
|
|
5573
|
+
readonly tier: "component";
|
|
5574
|
+
readonly type: "color";
|
|
5575
|
+
readonly group: "components";
|
|
5576
|
+
readonly value: "var(--iox-line-strong)";
|
|
5577
|
+
}, {
|
|
5578
|
+
readonly name: "progress-height";
|
|
5579
|
+
readonly tier: "component";
|
|
5580
|
+
readonly type: "size";
|
|
5581
|
+
readonly group: "components";
|
|
5582
|
+
readonly value: "3px";
|
|
5583
|
+
}, {
|
|
5584
|
+
readonly name: "progress-fill";
|
|
5585
|
+
readonly tier: "component";
|
|
5586
|
+
readonly type: "color";
|
|
5587
|
+
readonly group: "components";
|
|
5588
|
+
readonly value: "var(--iox-text)";
|
|
5460
5589
|
}];
|
|
5461
5590
|
}, {
|
|
5462
5591
|
readonly id: "linen";
|
|
@@ -7253,6 +7382,54 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
|
|
|
7253
7382
|
readonly type: "easing";
|
|
7254
7383
|
readonly group: "components";
|
|
7255
7384
|
readonly value: "var(--iox-ease-standard)";
|
|
7385
|
+
}, {
|
|
7386
|
+
readonly name: "marquee-speed";
|
|
7387
|
+
readonly tier: "component";
|
|
7388
|
+
readonly type: "number";
|
|
7389
|
+
readonly group: "components";
|
|
7390
|
+
readonly value: "28";
|
|
7391
|
+
}, {
|
|
7392
|
+
readonly name: "marquee-gap";
|
|
7393
|
+
readonly tier: "component";
|
|
7394
|
+
readonly type: "spacing";
|
|
7395
|
+
readonly group: "components";
|
|
7396
|
+
readonly value: "var(--iox-space-gap)";
|
|
7397
|
+
}, {
|
|
7398
|
+
readonly name: "marquee-fade";
|
|
7399
|
+
readonly tier: "component";
|
|
7400
|
+
readonly type: "size";
|
|
7401
|
+
readonly group: "components";
|
|
7402
|
+
readonly value: "48px";
|
|
7403
|
+
}, {
|
|
7404
|
+
readonly name: "marquee-control-bg";
|
|
7405
|
+
readonly tier: "component";
|
|
7406
|
+
readonly type: "color";
|
|
7407
|
+
readonly group: "components";
|
|
7408
|
+
readonly value: "var(--iox-surface)";
|
|
7409
|
+
}, {
|
|
7410
|
+
readonly name: "marquee-control-ink";
|
|
7411
|
+
readonly tier: "component";
|
|
7412
|
+
readonly type: "color";
|
|
7413
|
+
readonly group: "components";
|
|
7414
|
+
readonly value: "var(--iox-text)";
|
|
7415
|
+
}, {
|
|
7416
|
+
readonly name: "marquee-control-border";
|
|
7417
|
+
readonly tier: "component";
|
|
7418
|
+
readonly type: "color";
|
|
7419
|
+
readonly group: "components";
|
|
7420
|
+
readonly value: "var(--iox-line-strong)";
|
|
7421
|
+
}, {
|
|
7422
|
+
readonly name: "progress-height";
|
|
7423
|
+
readonly tier: "component";
|
|
7424
|
+
readonly type: "size";
|
|
7425
|
+
readonly group: "components";
|
|
7426
|
+
readonly value: "3px";
|
|
7427
|
+
}, {
|
|
7428
|
+
readonly name: "progress-fill";
|
|
7429
|
+
readonly tier: "component";
|
|
7430
|
+
readonly type: "color";
|
|
7431
|
+
readonly group: "components";
|
|
7432
|
+
readonly value: "var(--iox-text)";
|
|
7256
7433
|
}];
|
|
7257
7434
|
}, {
|
|
7258
7435
|
readonly id: "midnight";
|
|
@@ -9035,6 +9212,54 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
|
|
|
9035
9212
|
readonly type: "easing";
|
|
9036
9213
|
readonly group: "components";
|
|
9037
9214
|
readonly value: "var(--iox-ease-standard)";
|
|
9215
|
+
}, {
|
|
9216
|
+
readonly name: "marquee-speed";
|
|
9217
|
+
readonly tier: "component";
|
|
9218
|
+
readonly type: "number";
|
|
9219
|
+
readonly group: "components";
|
|
9220
|
+
readonly value: "40";
|
|
9221
|
+
}, {
|
|
9222
|
+
readonly name: "marquee-gap";
|
|
9223
|
+
readonly tier: "component";
|
|
9224
|
+
readonly type: "spacing";
|
|
9225
|
+
readonly group: "components";
|
|
9226
|
+
readonly value: "var(--iox-space-gap)";
|
|
9227
|
+
}, {
|
|
9228
|
+
readonly name: "marquee-fade";
|
|
9229
|
+
readonly tier: "component";
|
|
9230
|
+
readonly type: "size";
|
|
9231
|
+
readonly group: "components";
|
|
9232
|
+
readonly value: "48px";
|
|
9233
|
+
}, {
|
|
9234
|
+
readonly name: "marquee-control-bg";
|
|
9235
|
+
readonly tier: "component";
|
|
9236
|
+
readonly type: "color";
|
|
9237
|
+
readonly group: "components";
|
|
9238
|
+
readonly value: "var(--iox-surface)";
|
|
9239
|
+
}, {
|
|
9240
|
+
readonly name: "marquee-control-ink";
|
|
9241
|
+
readonly tier: "component";
|
|
9242
|
+
readonly type: "color";
|
|
9243
|
+
readonly group: "components";
|
|
9244
|
+
readonly value: "var(--iox-text)";
|
|
9245
|
+
}, {
|
|
9246
|
+
readonly name: "marquee-control-border";
|
|
9247
|
+
readonly tier: "component";
|
|
9248
|
+
readonly type: "color";
|
|
9249
|
+
readonly group: "components";
|
|
9250
|
+
readonly value: "var(--iox-line-strong)";
|
|
9251
|
+
}, {
|
|
9252
|
+
readonly name: "progress-height";
|
|
9253
|
+
readonly tier: "component";
|
|
9254
|
+
readonly type: "size";
|
|
9255
|
+
readonly group: "components";
|
|
9256
|
+
readonly value: "3px";
|
|
9257
|
+
}, {
|
|
9258
|
+
readonly name: "progress-fill";
|
|
9259
|
+
readonly tier: "component";
|
|
9260
|
+
readonly type: "color";
|
|
9261
|
+
readonly group: "components";
|
|
9262
|
+
readonly value: "var(--iox-text)";
|
|
9038
9263
|
}];
|
|
9039
9264
|
}, {
|
|
9040
9265
|
readonly id: "glass";
|
|
@@ -10862,6 +11087,54 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
|
|
|
10862
11087
|
readonly type: "easing";
|
|
10863
11088
|
readonly group: "components";
|
|
10864
11089
|
readonly value: "var(--iox-ease-standard)";
|
|
11090
|
+
}, {
|
|
11091
|
+
readonly name: "marquee-speed";
|
|
11092
|
+
readonly tier: "component";
|
|
11093
|
+
readonly type: "number";
|
|
11094
|
+
readonly group: "components";
|
|
11095
|
+
readonly value: "56";
|
|
11096
|
+
}, {
|
|
11097
|
+
readonly name: "marquee-gap";
|
|
11098
|
+
readonly tier: "component";
|
|
11099
|
+
readonly type: "spacing";
|
|
11100
|
+
readonly group: "components";
|
|
11101
|
+
readonly value: "var(--iox-space-gap)";
|
|
11102
|
+
}, {
|
|
11103
|
+
readonly name: "marquee-fade";
|
|
11104
|
+
readonly tier: "component";
|
|
11105
|
+
readonly type: "size";
|
|
11106
|
+
readonly group: "components";
|
|
11107
|
+
readonly value: "48px";
|
|
11108
|
+
}, {
|
|
11109
|
+
readonly name: "marquee-control-bg";
|
|
11110
|
+
readonly tier: "component";
|
|
11111
|
+
readonly type: "color";
|
|
11112
|
+
readonly group: "components";
|
|
11113
|
+
readonly value: "var(--iox-surface)";
|
|
11114
|
+
}, {
|
|
11115
|
+
readonly name: "marquee-control-ink";
|
|
11116
|
+
readonly tier: "component";
|
|
11117
|
+
readonly type: "color";
|
|
11118
|
+
readonly group: "components";
|
|
11119
|
+
readonly value: "var(--iox-text)";
|
|
11120
|
+
}, {
|
|
11121
|
+
readonly name: "marquee-control-border";
|
|
11122
|
+
readonly tier: "component";
|
|
11123
|
+
readonly type: "color";
|
|
11124
|
+
readonly group: "components";
|
|
11125
|
+
readonly value: "var(--iox-line-strong)";
|
|
11126
|
+
}, {
|
|
11127
|
+
readonly name: "progress-height";
|
|
11128
|
+
readonly tier: "component";
|
|
11129
|
+
readonly type: "size";
|
|
11130
|
+
readonly group: "components";
|
|
11131
|
+
readonly value: "3px";
|
|
11132
|
+
}, {
|
|
11133
|
+
readonly name: "progress-fill";
|
|
11134
|
+
readonly tier: "component";
|
|
11135
|
+
readonly type: "color";
|
|
11136
|
+
readonly group: "components";
|
|
11137
|
+
readonly value: "var(--iox-text)";
|
|
10865
11138
|
}];
|
|
10866
11139
|
}, {
|
|
10867
11140
|
readonly id: "bloom";
|
|
@@ -12653,6 +12926,54 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
|
|
|
12653
12926
|
readonly type: "easing";
|
|
12654
12927
|
readonly group: "components";
|
|
12655
12928
|
readonly value: "var(--iox-ease-standard)";
|
|
12929
|
+
}, {
|
|
12930
|
+
readonly name: "marquee-speed";
|
|
12931
|
+
readonly tier: "component";
|
|
12932
|
+
readonly type: "number";
|
|
12933
|
+
readonly group: "components";
|
|
12934
|
+
readonly value: "56";
|
|
12935
|
+
}, {
|
|
12936
|
+
readonly name: "marquee-gap";
|
|
12937
|
+
readonly tier: "component";
|
|
12938
|
+
readonly type: "spacing";
|
|
12939
|
+
readonly group: "components";
|
|
12940
|
+
readonly value: "var(--iox-space-gap)";
|
|
12941
|
+
}, {
|
|
12942
|
+
readonly name: "marquee-fade";
|
|
12943
|
+
readonly tier: "component";
|
|
12944
|
+
readonly type: "size";
|
|
12945
|
+
readonly group: "components";
|
|
12946
|
+
readonly value: "48px";
|
|
12947
|
+
}, {
|
|
12948
|
+
readonly name: "marquee-control-bg";
|
|
12949
|
+
readonly tier: "component";
|
|
12950
|
+
readonly type: "color";
|
|
12951
|
+
readonly group: "components";
|
|
12952
|
+
readonly value: "var(--iox-surface)";
|
|
12953
|
+
}, {
|
|
12954
|
+
readonly name: "marquee-control-ink";
|
|
12955
|
+
readonly tier: "component";
|
|
12956
|
+
readonly type: "color";
|
|
12957
|
+
readonly group: "components";
|
|
12958
|
+
readonly value: "var(--iox-text)";
|
|
12959
|
+
}, {
|
|
12960
|
+
readonly name: "marquee-control-border";
|
|
12961
|
+
readonly tier: "component";
|
|
12962
|
+
readonly type: "color";
|
|
12963
|
+
readonly group: "components";
|
|
12964
|
+
readonly value: "var(--iox-line-strong)";
|
|
12965
|
+
}, {
|
|
12966
|
+
readonly name: "progress-height";
|
|
12967
|
+
readonly tier: "component";
|
|
12968
|
+
readonly type: "size";
|
|
12969
|
+
readonly group: "components";
|
|
12970
|
+
readonly value: "3px";
|
|
12971
|
+
}, {
|
|
12972
|
+
readonly name: "progress-fill";
|
|
12973
|
+
readonly tier: "component";
|
|
12974
|
+
readonly type: "color";
|
|
12975
|
+
readonly group: "components";
|
|
12976
|
+
readonly value: "var(--iox-text)";
|
|
12656
12977
|
}];
|
|
12657
12978
|
}, {
|
|
12658
12979
|
readonly id: "pop";
|
|
@@ -14457,6 +14778,54 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
|
|
|
14457
14778
|
readonly type: "easing";
|
|
14458
14779
|
readonly group: "components";
|
|
14459
14780
|
readonly value: "var(--iox-ease-standard)";
|
|
14781
|
+
}, {
|
|
14782
|
+
readonly name: "marquee-speed";
|
|
14783
|
+
readonly tier: "component";
|
|
14784
|
+
readonly type: "number";
|
|
14785
|
+
readonly group: "components";
|
|
14786
|
+
readonly value: "52";
|
|
14787
|
+
}, {
|
|
14788
|
+
readonly name: "marquee-gap";
|
|
14789
|
+
readonly tier: "component";
|
|
14790
|
+
readonly type: "spacing";
|
|
14791
|
+
readonly group: "components";
|
|
14792
|
+
readonly value: "var(--iox-space-gap)";
|
|
14793
|
+
}, {
|
|
14794
|
+
readonly name: "marquee-fade";
|
|
14795
|
+
readonly tier: "component";
|
|
14796
|
+
readonly type: "size";
|
|
14797
|
+
readonly group: "components";
|
|
14798
|
+
readonly value: "48px";
|
|
14799
|
+
}, {
|
|
14800
|
+
readonly name: "marquee-control-bg";
|
|
14801
|
+
readonly tier: "component";
|
|
14802
|
+
readonly type: "color";
|
|
14803
|
+
readonly group: "components";
|
|
14804
|
+
readonly value: "var(--iox-surface)";
|
|
14805
|
+
}, {
|
|
14806
|
+
readonly name: "marquee-control-ink";
|
|
14807
|
+
readonly tier: "component";
|
|
14808
|
+
readonly type: "color";
|
|
14809
|
+
readonly group: "components";
|
|
14810
|
+
readonly value: "var(--iox-text)";
|
|
14811
|
+
}, {
|
|
14812
|
+
readonly name: "marquee-control-border";
|
|
14813
|
+
readonly tier: "component";
|
|
14814
|
+
readonly type: "color";
|
|
14815
|
+
readonly group: "components";
|
|
14816
|
+
readonly value: "var(--iox-line-strong)";
|
|
14817
|
+
}, {
|
|
14818
|
+
readonly name: "progress-height";
|
|
14819
|
+
readonly tier: "component";
|
|
14820
|
+
readonly type: "size";
|
|
14821
|
+
readonly group: "components";
|
|
14822
|
+
readonly value: "3px";
|
|
14823
|
+
}, {
|
|
14824
|
+
readonly name: "progress-fill";
|
|
14825
|
+
readonly tier: "component";
|
|
14826
|
+
readonly type: "color";
|
|
14827
|
+
readonly group: "components";
|
|
14828
|
+
readonly value: "var(--iox-text)";
|
|
14460
14829
|
}];
|
|
14461
14830
|
}];
|
|
14462
14831
|
declare const SPEC_CONTRAST: {
|
|
@@ -15803,6 +16172,9 @@ interface ContrastFinding {
|
|
|
15803
16172
|
min: number;
|
|
15804
16173
|
pass: boolean;
|
|
15805
16174
|
}
|
|
16175
|
+
/** Styles whose fill IS their mark (premium M6: a reading bar): the fill is judged as a graphic (3:1, WCAG 1.4.11) against
|
|
16176
|
+
* the ground it sits on, never its own ink on it — it holds no words. The contract's audit, 1:1. */
|
|
16177
|
+
declare const MARK_STYLES: ReadonlySet<string>;
|
|
15806
16178
|
/** The element a scheme'd container's running text is reported as (iox-ui#15). */
|
|
15807
16179
|
declare const INHERITED_TEXT = "inherited text";
|
|
15808
16180
|
/** Every pair a reader meets, for one set of token rows in one mode. */
|
|
@@ -16501,5 +16873,5 @@ declare function presetChoices(id: string, mode?: DesignMode): DesignChoices | n
|
|
|
16501
16873
|
*/
|
|
16502
16874
|
declare function stylePresetOfChoices(choices: DesignChoices | null | undefined): StylePreset | undefined;
|
|
16503
16875
|
|
|
16504
|
-
export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BUTTON_VARIANT_TO_STYLE, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, EntranceParam, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderTrait, INHERITED_TEXT, LinkType, MAX_FONT_FILE_BYTES, MOOD_IDS, MOOD_LABELS, NEW_NODE_STYLE_DEFAULTS, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, REDUCED_DESIGN_MOTION, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, SCHEME_INK, SCROLL_IDS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FLOATING_BASELINE, SPEC_FONTS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, elementStyleById, elementStyleClass, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerStaysAtTop, headingHref, inSrgbGamut, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, ownedTraitStatus, ownedTraitsOf, packDesignChoices, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, preTintAccentGrounds, presetChoices, presetModes, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, scriptsForLocale, setColorScheme, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, staggerDelay, styleKeyToKebab, stylePresetById, stylePresetOfChoices, switchElementStyle, syncNodeDesignClasses, themeColors, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, withoutScriptPartners, writeOwnedTrait };
|
|
16876
|
+
export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BUTTON_VARIANT_TO_STYLE, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, EntranceParam, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderTrait, INHERITED_TEXT, LinkType, MARK_STYLES, MAX_FONT_FILE_BYTES, MOOD_IDS, MOOD_LABELS, NEW_NODE_STYLE_DEFAULTS, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, REDUCED_DESIGN_MOTION, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, SCHEME_INK, SCROLL_IDS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FLOATING_BASELINE, SPEC_FONTS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, elementStyleById, elementStyleClass, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerStaysAtTop, headingHref, inSrgbGamut, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, ownedTraitStatus, ownedTraitsOf, packDesignChoices, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, preTintAccentGrounds, presetChoices, presetModes, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, scriptsForLocale, setColorScheme, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, staggerDelay, styleKeyToKebab, stylePresetById, stylePresetOfChoices, switchElementStyle, syncNodeDesignClasses, themeColors, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, withoutScriptPartners, writeOwnedTrait };
|
|
16505
16877
|
export type { AccentBackgrounds, AccentGround, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, AnimateId, ApplyElementStyleResult, BetweenId, ButtonBlockLinkProps, ColourCheck, ColourFlavor, ContrastFinding, DensityId, DesignApplyOptions, DesignChoices, DesignClassSource, DesignConfigEntry, DesignMode, DesignMotion, DesignRevertSnapshot, DesignTokenGroup, DesignTokenLike, DesignTokenRow, DesignTokenTier, DesignTokenType, ElementStyle, ElementStyleTarget, ElementStyleTraitLike, FlavorColours, FlavorPack, FlavorPackV2, FlavorPalette, FlavorRevertPlan, FlavorRevertSnapshot, FlavorRevertWrite, FlavorSeedOptions, FlavorSeedPlan, FlavorSpecToken, FlavorTintConfig, FlavorTokenDef, FontDescriptor, FontFamilyGroup, FontFamilyRemoval, FontFamilyToken, FontFormat, FontPair, FontRoleToken, FontStyle, FontWeight, FontWeightRange, FontsForTokensOptions, KeptEdit, LinearSpring, MissingFontRole, MoodId, MotionId, NodeLinkProps, OkLab, OwnedTrait, OwnedTraitStatus, PalettePreset, PresetMode, ResolvedMode, Rgb, Rgba, SchemeId, ScriptId, ScrollId, SeedBaseline, SeedExpectation, ShapeId, SkippedNode, StaggerSpec, StoredDesign, StoredDesignTokenRow, StylePreset, SupersededStyleValue, SwissMigration, SwitchElementStyleResult, ThemeColorOptions, ThemeColors, TimedAction, TintId, TintLevel, TokenCssBlocks, TokenCssOptions };
|
|
@@ -170,6 +170,15 @@ const OPEN_TARGET_ROLES = [...ITEM_TARGET_ROLES, TabsRole.Trigger, SegmentedRole
|
|
|
170
170
|
* `signIn`/`startCheckout` ship greyed with the honest reason (D-A5): no visitor identity, no
|
|
171
171
|
* payments — a subsystem and a product, not dropdown entries.
|
|
172
172
|
*/
|
|
173
|
+
/** The trigger whose actions the scroll plays (premium M6, N7). */
|
|
174
|
+
const SCROLL_PROGRESS_TRIGGER = 'scrollProgress';
|
|
175
|
+
const SCROLL_ONLY = Object.freeze([SCROLL_PROGRESS_TRIGGER]);
|
|
176
|
+
/**
|
|
177
|
+
* The triggers a count waits on (premium M6, N5, D4): it plays the first time its number is seen, so only a trigger that
|
|
178
|
+
* fires on its own — when it comes into view, or with the page in the first screen behind an entrance. Under a click or a
|
|
179
|
+
* hover it would stand at its start value until pressed; it is never armed there, and never offered.
|
|
180
|
+
*/
|
|
181
|
+
const COUNT_UP_TRIGGERS = Object.freeze(['viewportEnter', 'pageLoad']);
|
|
173
182
|
const ELEMENT_ACTION_DESCRIPTORS = Object.freeze([
|
|
174
183
|
// ── Motion (shipped WAAPI actions — timing row applies) ──────────────────
|
|
175
184
|
{ type: 'fadeIn', labelKey: 'builder.actions.fadeIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },
|
|
@@ -197,6 +206,18 @@ const ELEMENT_ACTION_DESCRIPTORS = Object.freeze([
|
|
|
197
206
|
{ value: 'line', labelKey: 'builder.actions.params.byLine' },
|
|
198
207
|
{ value: 'word', labelKey: 'builder.actions.params.byWord' },
|
|
199
208
|
] }] },
|
|
209
|
+
// Premium M6 (N5): a number that counts up ONCE, the first time it comes into view (D4); its final value is always the
|
|
210
|
+
// node's own text, so it is what the page sends. Offered only where it can wait unseen for that moment.
|
|
211
|
+
{ type: 'countUp', labelKey: 'builder.actions.countUp', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: COUNT_UP_TRIGGERS,
|
|
212
|
+
params: [{ name: 'from', type: 'number', label: 'builder.actions.params.countFrom' }] },
|
|
213
|
+
// Premium M6 (N7): what the SCROLL plays — a layer at a depth (round three's trio) and a reading bar. Offered under a
|
|
214
|
+
// `scrollProgress` trigger only; the scroll also plays every entrance above.
|
|
215
|
+
{ type: 'parallax', labelKey: 'builder.actions.parallax', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: SCROLL_ONLY,
|
|
216
|
+
params: [{ name: 'depth', type: 'string', label: 'builder.actions.params.depth', options: [
|
|
217
|
+
{ value: 'back', labelKey: 'builder.actions.params.depthBack' },
|
|
218
|
+
{ value: 'front', labelKey: 'builder.actions.params.depthFront' },
|
|
219
|
+
] }] },
|
|
220
|
+
{ type: 'progressBar', labelKey: 'builder.actions.progressBar', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: SCROLL_ONLY },
|
|
200
221
|
// ── Visibility (shipped) ─────────────────────────────────────────────────
|
|
201
222
|
{ type: 'show', labelKey: 'builder.actions.show', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },
|
|
202
223
|
{ type: 'hide', labelKey: 'builder.actions.hide', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },
|
|
@@ -324,10 +345,15 @@ function itemActionOf(type) {
|
|
|
324
345
|
const CONSENT_ACTION_TYPES = new Set(['grantConsent', 'denyConsent', 'setConsentCategory', 'openConsentPreferences']);
|
|
325
346
|
/** Picker order — most-used groups first, services last (they are the shop window, not the shop). */
|
|
326
347
|
const ELEMENT_ACTION_GROUP_ORDER = Object.freeze(['motion', 'visibility', 'navigate', 'dialog', 'popover', 'notice', 'item', 'form', 'data', 'consent', 'service']);
|
|
327
|
-
/**
|
|
328
|
-
function
|
|
348
|
+
/** True when `d` is offered under `trigger` (its `triggers`, else every trigger) — the picker's rule and the runtimes'. */
|
|
349
|
+
function actionOfferedUnder(d, trigger) {
|
|
350
|
+
return !d.triggers || (!!trigger && d.triggers.includes(trigger));
|
|
351
|
+
}
|
|
352
|
+
/** The catalog, grouped and ordered for the picker — one derivation, no hand-kept second list. `keep` narrows it (the
|
|
353
|
+
* picker keeps what its trigger offers — `actionOfferedUnder` — and, under `scrollProgress`, what the scroll can play). */
|
|
354
|
+
function groupedElementActions(keep = () => true) {
|
|
329
355
|
return ELEMENT_ACTION_GROUP_ORDER
|
|
330
|
-
.map(group => ({ group, actions: ELEMENT_ACTION_DESCRIPTORS.filter(d => d.group === group) }))
|
|
356
|
+
.map(group => ({ group, actions: ELEMENT_ACTION_DESCRIPTORS.filter(d => d.group === group && keep(d)) }))
|
|
331
357
|
.filter(g => g.actions.length > 0);
|
|
332
358
|
}
|
|
333
359
|
|
|
@@ -442,5 +468,5 @@ function focusDialogSheet(dialog) {
|
|
|
442
468
|
* Generated bundle index. Do not edit.
|
|
443
469
|
*/
|
|
444
470
|
|
|
445
|
-
export { BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, DIALOG_ACTION_TYPE_SET, DIALOG_CLOSING_ATTRIBUTE, DIALOG_EXIT_TIMEOUT_MS, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, ITEM_ACTION_TYPES, OpenerAttribute, POPOVER_ACTION_TYPE_SET, POPOVER_NODE_TYPE, POPOVER_OPENER_ACTION_TYPES, SERVER_ELEMENT_ACTION_TYPES, TOAST_ACTION_TYPES, addableActions, cancelExit, closeDialogAnimated, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, dialogTogglesClosed, focusDialogSheet, groupedElementActions, isExiting, itemActionOf, nodeIdOfDialogDomId, nodeIdOfPopoverDomId, openedDialogId, openedPopoverId, openedTargetId, opensAtClickedItem, popoverDomId, popoverOpenerAttributes, popoverOpenersSelector, resolveActionAvailability, runExitMotion };
|
|
471
|
+
export { BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, COUNT_UP_TRIGGERS, DIALOG_ACTION_TYPE_SET, DIALOG_CLOSING_ATTRIBUTE, DIALOG_EXIT_TIMEOUT_MS, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, ITEM_ACTION_TYPES, OpenerAttribute, POPOVER_ACTION_TYPE_SET, POPOVER_NODE_TYPE, POPOVER_OPENER_ACTION_TYPES, SCROLL_PROGRESS_TRIGGER, SERVER_ELEMENT_ACTION_TYPES, TOAST_ACTION_TYPES, actionOfferedUnder, addableActions, cancelExit, closeDialogAnimated, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, dialogTogglesClosed, focusDialogSheet, groupedElementActions, isExiting, itemActionOf, nodeIdOfDialogDomId, nodeIdOfPopoverDomId, openedDialogId, openedPopoverId, openedTargetId, opensAtClickedItem, popoverDomId, popoverOpenerAttributes, popoverOpenersSelector, resolveActionAvailability, runExitMotion };
|
|
446
472
|
//# sourceMappingURL=vectoriox-iox-ui-actions-core.mjs.map
|