@arsedizioni/ars-utils 22.0.53 → 22.0.54
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.
|
@@ -1038,9 +1038,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
1038
1038
|
* • wrap-container basis rewrite (ngx issue 660)
|
|
1039
1039
|
*
|
|
1040
1040
|
* Extensions beyond ngx-layout (documented):
|
|
1041
|
-
* • fxFlex="*"
|
|
1042
|
-
*
|
|
1043
|
-
* it defaults to `0 1 auto`.
|
|
1041
|
+
* • fxFlex="*" → fills like fxFlex="grow" (1 1 100%).
|
|
1042
|
+
* A bare fxFlex keeps the ngx default: 1 1 0%.
|
|
1044
1043
|
* • addFlexToParent → if the direct parent is not a flex container, this directive
|
|
1045
1044
|
* sets display:flex on it so children work without fxLayout
|
|
1046
1045
|
*
|
|
@@ -1178,14 +1177,14 @@ function buildFlexStyles(value, direction, hasWrap) {
|
|
|
1178
1177
|
return out;
|
|
1179
1178
|
}
|
|
1180
1179
|
/**
|
|
1181
|
-
* Resolves the fxFlex
|
|
1182
|
-
*
|
|
1183
|
-
* (`
|
|
1180
|
+
* Resolves the non-ngx `fxFlex="*"` extension to `grow` (`flex: 1 1 100%`, max-* 100%).
|
|
1181
|
+
* Every other value — including a bare `fxFlex` ('') — is returned unchanged, so a bare
|
|
1182
|
+
* fxFlex keeps the ngx-layout default (`1 1 0%` in row, `1 1 0.000000001px` in column).
|
|
1184
1183
|
* @param raw - The resolved fxFlex value for the active breakpoint.
|
|
1185
1184
|
* @returns The value to pass to `buildFlexStyles`.
|
|
1186
1185
|
*/
|
|
1187
1186
|
function resolveFlexInput(raw) {
|
|
1188
|
-
return
|
|
1187
|
+
return raw === '*' ? 'grow' : raw;
|
|
1189
1188
|
}
|
|
1190
1189
|
class FxFlexDirective extends ResponsiveBaseDirective {
|
|
1191
1190
|
constructor() {
|
|
@@ -1241,8 +1240,7 @@ class FxFlexDirective extends ResponsiveBaseDirective {
|
|
|
1241
1240
|
this.r2.setStyle(el.parentElement, 'display', 'flex');
|
|
1242
1241
|
}
|
|
1243
1242
|
}
|
|
1244
|
-
// `*`
|
|
1245
|
-
// siblings use a plain element (no fxFlex) — it defaults to `0 1 auto`.
|
|
1243
|
+
// `*` => grow (1 1 100%); a bare fxFlex keeps the ngx default (1 1 0%).
|
|
1246
1244
|
raw = resolveFlexInput(raw);
|
|
1247
1245
|
// Parent flow: reactive via FxLayoutDirective signals when it is the
|
|
1248
1246
|
// direct parent; getComputedStyle fallback for plain-CSS flex parents.
|