@vectoriox/iox-ui 5.158.0 → 5.159.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/design-core/index.d.ts +18 -2
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +41 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +2900 -2297
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +5 -33
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +528 -411
- package/package.json +1 -1
- package/src/design-core/css-functions.ts +48 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/generation-core/check-free.ts +31 -5
- package/src/generation-core/compose-free.ts +205 -0
- package/src/generation-core/compose-layout.ts +3 -1
- package/src/generation-core/compose-site.ts +74 -9
- package/src/generation-core/free-fallback.ts +11 -3
- package/src/generation-core/free-slots.ts +125 -0
- package/src/generation-core/free-wire.ts +5 -0
- package/src/generation-core/layout-section-fallback.ts +38 -1
- package/src/generation-core/plan-wire.ts +5 -0
- package/src/generation-core/public-api.ts +2 -0
- package/src/generation-core/site-plan.model.ts +12 -0
- package/src/generation-core/site-spec.generated.ts +34 -2
- package/src/generation-core/validate-site-plan.ts +124 -0
|
@@ -6,7 +6,7 @@ import { Subject, fromEvent } from 'rxjs';
|
|
|
6
6
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
8
8
|
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
9
|
-
import { SPEC_AXES, resolveDesignMotion, FieldClass, HeaderAttribute, HeaderBehaviour, HeaderInk, OPENING_ATTRIBUTE, schemeOfClasses, schemeUnderBar, BRAND_NAME_ATTRIBUTE, MENU_ATTRIBUTES, menuDialogAttributes, menuButtonAttributes, headerAttributes, HeaderTrait, BRAND_ROLE, brandNameAttributes, REDUCED_ENTRANCE_MAX_MS, roleClass, preloaderWords, PreloaderKind, preloaderGraphemes, PRELOADER_EXIT_EASE, PRELOADER_CAP_MS, isFirstVisit, PRELOADER_ENTER_EASE, PreloaderExit, PRELOADER_MIN_SHOW_MS, preloaderLeaveAt, preloaderExitMotion, preloaderPercent, inkOnGround, writeFieldError } from '@vectoriox/iox-ui/design-core';
|
|
9
|
+
import { SPEC_AXES, resolveDesignMotion, FILTER_FUNCTIONS, BACKDROP_FUNCTIONS, decomposeCssFunctions, FieldClass, HeaderAttribute, HeaderBehaviour, HeaderInk, OPENING_ATTRIBUTE, schemeOfClasses, schemeUnderBar, BRAND_NAME_ATTRIBUTE, MENU_ATTRIBUTES, menuDialogAttributes, menuButtonAttributes, headerAttributes, HeaderTrait, BRAND_ROLE, brandNameAttributes, REDUCED_ENTRANCE_MAX_MS, roleClass, preloaderWords, PreloaderKind, preloaderGraphemes, PRELOADER_EXIT_EASE, PRELOADER_CAP_MS, isFirstVisit, PRELOADER_ENTER_EASE, PreloaderExit, PRELOADER_MIN_SHOW_MS, preloaderLeaveAt, preloaderExitMotion, preloaderPercent, inkOnGround, writeFieldError } from '@vectoriox/iox-ui/design-core';
|
|
10
10
|
export * from '@vectoriox/iox-ui/design-core';
|
|
11
11
|
import Lenis from 'lenis';
|
|
12
12
|
import { SLIDER_WORDS, sliderPartElement, SliderRole, sliderWords, attachCarouselA11y, attachSliderBar, isSliderPart, MARQUEE_NODE_ATTRIBUTES, SLIDE_TYPE, SLIDE_CAPTION_TRAIT, marqueeRootAttributes, MarqueeRole } from '@vectoriox/iox-ui/composite-core';
|
|
@@ -1558,23 +1558,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
1558
1558
|
// the raw virtual keys (`translate-x`, `filter-blur`, `scale-x`…) as invalid CSS.
|
|
1559
1559
|
// Run this BEFORE compileDeclarations so the CSS output is identical on both sides.
|
|
1560
1560
|
// ─── Filter ──────────────────────────────────────────────────────────────────
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
['filterBrightness', 'brightness', '1'],
|
|
1564
|
-
['filterContrast', 'contrast', '1'],
|
|
1565
|
-
['filterGrayscale', 'grayscale', '0'],
|
|
1566
|
-
['filterSaturate', 'saturate', '1'],
|
|
1567
|
-
['filterHueRotate', 'hue-rotate', '0deg'],
|
|
1568
|
-
['filterSepia', 'sepia', '0'],
|
|
1569
|
-
['filterInvert', 'invert', '0'],
|
|
1570
|
-
];
|
|
1561
|
+
// The function tables live in design-core (framework-free): generation-core's free stamp reads the same ones.
|
|
1562
|
+
const FILTER_FUNS = FILTER_FUNCTIONS;
|
|
1571
1563
|
// ─── Backdrop-filter ─────────────────────────────────────────────────────────
|
|
1572
|
-
const BACKDROP_FUNS =
|
|
1573
|
-
['backdropBlur', 'blur', '0px'],
|
|
1574
|
-
['backdropBrightness', 'brightness', '1'],
|
|
1575
|
-
['backdropContrast', 'contrast', '1'],
|
|
1576
|
-
['backdropSaturate', 'saturate', '1'],
|
|
1577
|
-
];
|
|
1564
|
+
const BACKDROP_FUNS = BACKDROP_FUNCTIONS;
|
|
1578
1565
|
// ─── Transform ───────────────────────────────────────────────────────────────
|
|
1579
1566
|
const TRANSFORM_FUNS = [
|
|
1580
1567
|
['translateX', 'translateX', '0px'],
|
|
@@ -1712,9 +1699,6 @@ function buildFns(funs, src) {
|
|
|
1712
1699
|
function isWholeBackdropSet(value) {
|
|
1713
1700
|
return typeof value === 'string' && value.trim() !== '' && value.trim() !== 'none';
|
|
1714
1701
|
}
|
|
1715
|
-
/** The part controls are 0–3 factor sliders: `140%` reads as `1.4`. */
|
|
1716
|
-
const asFactor = (arg) => arg.endsWith('%') ? String(Math.round(parseFloat(arg) * 100) / 10000) : arg;
|
|
1717
|
-
const BACKDROP_FN = /^([a-z-]+)\(([^()]*)\)$/;
|
|
1718
1702
|
/**
|
|
1719
1703
|
* The inverse of the backdrop composition: a resolved whole value (`blur(16px) saturate(1.4)`) →
|
|
1720
1704
|
* the composed traits, every one of the group present (its default when absent; `140%` → `1.4` for
|
|
@@ -1724,19 +1708,7 @@ const BACKDROP_FN = /^([a-z-]+)\(([^()]*)\)$/;
|
|
|
1724
1708
|
* → null: the caller keeps it whole rather than silently dropping part of the look.
|
|
1725
1709
|
*/
|
|
1726
1710
|
function decomposeBackdropFilter(value) {
|
|
1727
|
-
|
|
1728
|
-
const text = (value ?? '').trim();
|
|
1729
|
-
if (!isWholeBackdropSet(text))
|
|
1730
|
-
return out;
|
|
1731
|
-
const parts = text.split(/\s+(?![^(]*\))/);
|
|
1732
|
-
for (const part of parts) {
|
|
1733
|
-
const m = BACKDROP_FN.exec(part);
|
|
1734
|
-
const fun = m && BACKDROP_FUNS.find(([, fn]) => fn === m[1]);
|
|
1735
|
-
if (!m || !fun || m[2].trim() === '' || m[2].includes('var('))
|
|
1736
|
-
return null;
|
|
1737
|
-
out[fun[0]] = fun[1] === 'blur' ? m[2].trim() : asFactor(m[2].trim());
|
|
1738
|
-
}
|
|
1739
|
-
return out;
|
|
1711
|
+
return decomposeCssFunctions(BACKDROP_FUNS, value);
|
|
1740
1712
|
}
|
|
1741
1713
|
/**
|
|
1742
1714
|
* Strip virtual trait keys from `raw` and emit their composed CSS equivalents.
|