@molecule/app-ui-angular 1.3.1 → 1.4.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/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-22T17:17:46.154Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-ui-angular
|
|
@@ -3077,7 +3077,9 @@ While the auth status is `'loading'` it renders the `loadingFallback` input
|
|
|
3077
3077
|
`data-mol-id="auth-guard-loading"` tag); while
|
|
3078
3078
|
`'unauthenticated'` off the login path it renders nothing and redirects to
|
|
3079
3079
|
`loginPath` (state `from` carries the attempted location); otherwise it
|
|
3080
|
-
renders the projected children
|
|
3080
|
+
renders the projected children, or `<mol-routed-view />` without them (the
|
|
3081
|
+
matched child route, through whichever routing bond the app wired; it throws
|
|
3082
|
+
when the bond has none: project the page then). The host is unwrapped by the DOM normalizer
|
|
3081
3083
|
(`data-parity-unwrap`) and `display: contents` keeps it fragment-like —
|
|
3082
3084
|
React's root is a fragment. On the login path itself the guard renders its
|
|
3083
3085
|
children, so a guard wrapping the whole route tree does not redirect in a
|
|
@@ -3092,7 +3094,7 @@ nothing at all while redirecting.
|
|
|
3092
3094
|
@Component({
|
|
3093
3095
|
selector: 'mol-auth-guard',
|
|
3094
3096
|
standalone: true,
|
|
3095
|
-
imports: [MolTemplateOutlet],
|
|
3097
|
+
imports: [MolTemplateOutlet, RoutedView],
|
|
3096
3098
|
inputs: ['loadingFallback', 'loadingKey', 'loadingDefault', 'loginPath', 'onAuthenticated'],
|
|
3097
3099
|
host: {
|
|
3098
3100
|
'data-parity-unwrap': '',
|
|
@@ -3104,7 +3106,10 @@ nothing at all while redirecting.
|
|
|
3104
3106
|
>{{ nodeText(loadingFallback) }}</span
|
|
3105
3107
|
>
|
|
3106
3108
|
<span #fallbackWrap><ng-content select="[slot=loadingFallback]"></ng-content></span>
|
|
3107
|
-
<span #childrenWrap><ng-content></ng-content></span
|
|
3109
|
+
<span #childrenWrap><ng-content></ng-content></span>
|
|
3110
|
+
@if (routed()) {
|
|
3111
|
+
<mol-routed-view />
|
|
3112
|
+
}`,
|
|
3108
3113
|
})
|
|
3109
3114
|
export class AuthGuard implements AfterViewInit {
|
|
3110
3115
|
/**
|
|
@@ -3153,6 +3158,15 @@ export class AuthGuard implements AfterViewInit {
|
|
|
3153
3158
|
private readonly sync = new SlotWrapper(inject(ElementRef), inject(Renderer2))
|
|
3154
3159
|
private readonly host = inject(ElementRef)
|
|
3155
3160
|
private hasFallback = false
|
|
3161
|
+
/** Whether the guard was given children to project (known by view init). */
|
|
3162
|
+
private hasChildren = false
|
|
3163
|
+
/** Whether the view queries have resolved, so the children capture can be read. */
|
|
3164
|
+
private viewReady = false
|
|
3165
|
+
/**
|
|
3166
|
+
* Whether the routed view renders: the children branch with no projected children. A signal
|
|
3167
|
+
* the template reads, so the routed view is created only then (it throws without one).
|
|
3168
|
+
*/
|
|
3169
|
+
readonly routed = signal(false)
|
|
3156
3170
|
private lastAuthenticated = false
|
|
3157
3171
|
/** The login path the guard navigated to for the current redirect state. */
|
|
3158
3172
|
private redirectedTo: string | null = null
|
|
@@ -3172,11 +3186,13 @@ export class AuthGuard implements AfterViewInit {
|
|
|
3172
3186
|
})
|
|
3173
3187
|
|
|
3174
3188
|
/**
|
|
3175
|
-
* Detects the `loadingFallback` slot
|
|
3176
|
-
* view init).
|
|
3189
|
+
* Detects the `loadingFallback` slot and the children (view queries resolve
|
|
3190
|
+
* only by view init).
|
|
3177
3191
|
*/
|
|
3178
3192
|
ngAfterViewInit(): void {
|
|
3179
3193
|
this.hasFallback = hasNodes(this.fallbackWrap?.nativeElement)
|
|
3194
|
+
this.hasChildren = hasNodes(this.childrenWrap?.nativeElement)
|
|
3195
|
+
this.viewReady = true
|
|
3180
3196
|
this.reconcile()
|
|
3181
3197
|
}
|
|
3182
3198
|
|
|
@@ -3234,6 +3250,7 @@ export class AuthGuard implements AfterViewInit {
|
|
|
3234
3250
|
// The capture span itself never renders (React's children are bare).
|
|
3235
3251
|
this.sync.sync(this.childrenWrap?.nativeElement, false)
|
|
3236
3252
|
}
|
|
3253
|
+
this.routed.set(this.viewReady && branch === 'children' && !this.hasChildren)
|
|
3237
3254
|
const loading = branch === 'loading'
|
|
3238
3255
|
const hasNode = isGiven(this.loadingFallback)
|
|
3239
3256
|
this.sync.sync(this.defaultLoading?.nativeElement, loading && !hasNode && !this.hasFallback)
|
|
@@ -15968,7 +15985,7 @@ Peer dependencies:
|
|
|
15968
15985
|
- `@angular/common` ^22.0.0
|
|
15969
15986
|
- `@angular/core` ^22.0.0
|
|
15970
15987
|
- `@angular/platform-browser` ^22.0.0
|
|
15971
|
-
- `@molecule/app-angular` ^3.
|
|
15988
|
+
- `@molecule/app-angular` ^3.11.0
|
|
15972
15989
|
- `@molecule/app-i18n` ^1.0.1
|
|
15973
15990
|
- `@molecule/app-icons` ^1.0.1
|
|
15974
15991
|
- `@molecule/app-ui` ^1.5.0
|
|
@@ -33,7 +33,9 @@ export interface AuthGuardProps {
|
|
|
33
33
|
* `data-mol-id="auth-guard-loading"` tag); while
|
|
34
34
|
* `'unauthenticated'` off the login path it renders nothing and redirects to
|
|
35
35
|
* `loginPath` (state `from` carries the attempted location); otherwise it
|
|
36
|
-
* renders the projected children
|
|
36
|
+
* renders the projected children, or `<mol-routed-view />` without them (the
|
|
37
|
+
* matched child route, through whichever routing bond the app wired; it throws
|
|
38
|
+
* when the bond has none: project the page then). The host is unwrapped by the DOM normalizer
|
|
37
39
|
* (`data-parity-unwrap`) and `display: contents` keeps it fragment-like —
|
|
38
40
|
* React's root is a fragment. On the login path itself the guard renders its
|
|
39
41
|
* children, so a guard wrapping the whole route tree does not redirect in a
|
|
@@ -86,6 +88,15 @@ export declare class AuthGuard implements AfterViewInit {
|
|
|
86
88
|
private readonly sync;
|
|
87
89
|
private readonly host;
|
|
88
90
|
private hasFallback;
|
|
91
|
+
/** Whether the guard was given children to project (known by view init). */
|
|
92
|
+
private hasChildren;
|
|
93
|
+
/** Whether the view queries have resolved, so the children capture can be read. */
|
|
94
|
+
private viewReady;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the routed view renders: the children branch with no projected children. A signal
|
|
97
|
+
* the template reads, so the routed view is created only then (it throws without one).
|
|
98
|
+
*/
|
|
99
|
+
readonly routed: import("@angular/core").WritableSignal<boolean>;
|
|
89
100
|
private lastAuthenticated;
|
|
90
101
|
/** The login path the guard navigated to for the current redirect state. */
|
|
91
102
|
private redirectedTo;
|
|
@@ -99,8 +110,8 @@ export declare class AuthGuard implements AfterViewInit {
|
|
|
99
110
|
*/
|
|
100
111
|
private readonly guardEffect;
|
|
101
112
|
/**
|
|
102
|
-
* Detects the `loadingFallback` slot
|
|
103
|
-
* view init).
|
|
113
|
+
* Detects the `loadingFallback` slot and the children (view queries resolve
|
|
114
|
+
* only by view init).
|
|
104
115
|
*/
|
|
105
116
|
ngAfterViewInit(): void;
|
|
106
117
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-guard.component.d.ts","sourceRoot":"","sources":["../../src/components/auth-guard.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,aAAa,EAGlB,UAAU,
|
|
1
|
+
{"version":3,"file":"auth-guard.component.d.ts","sourceRoot":"","sources":["../../src/components/auth-guard.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,aAAa,EAGlB,UAAU,EAIV,KAAK,WAAW,EAEjB,MAAM,eAAe,CAAA;AAItB,OAAO,EAAE,UAAU,EAAW,QAAQ,EA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IAC3E,QAAQ,CAAC,MAAM,kDAAc;IAE7B;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;IAExC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyD;IAC9E,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;IAC1C,OAAO,CAAC,WAAW,CAAQ;IAC3B,4EAA4E;IAC5E,OAAO,CAAC,WAAW,CAAQ;IAC3B,mFAAmF;IACnF,OAAO,CAAC,SAAS,CAAQ;IACzB;;;OAGG;IACH,QAAQ,CAAC,MAAM,kDAAgB;IAC/B,OAAO,CAAC,iBAAiB,CAAQ;IACjC,4EAA4E;IAC5E,OAAO,CAAC,YAAY,CAAsB;IAC1C,0DAA0D;IAC1D,OAAO,CAAC,OAAO,CAAa;IAE5B;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,WAAW,CAI1B;IAEF;;;OAGG;IACH,eAAe,IAAI,IAAI;IAOvB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAyBjB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IA2BpB;;;OAGG;IACH,WAAW,IAAI,MAAM;yCAvJV,SAAS;2CAAT,SAAS;CAgKrB"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component, effect, ElementRef, inject, Renderer2, ViewChild, } from '@angular/core';
|
|
7
|
-
import { useAuth, useRouter, useTranslation } from '@molecule/app-angular';
|
|
6
|
+
import { Component, effect, ElementRef, inject, Renderer2, signal, ViewChild, } from '@angular/core';
|
|
7
|
+
import { RoutedView, useAuth, useRouter, useTranslation } from '@molecule/app-angular';
|
|
8
8
|
import { asTemplate, isGiven, nodeText } from '../utilities/node-value.js';
|
|
9
9
|
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
10
10
|
import { MolTemplateOutlet } from './template-outlet.directive.js';
|
|
@@ -15,6 +15,9 @@ const _c2 = ["fallbackWrap"];
|
|
|
15
15
|
const _c3 = ["childrenWrap"];
|
|
16
16
|
const _c4 = [[["", "slot", "loadingfallback"]], "*"];
|
|
17
17
|
const _c5 = ["[slot=loadingFallback]", "*"];
|
|
18
|
+
function AuthGuard_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
+
i0.ɵɵelement(0, "mol-routed-view");
|
|
20
|
+
} }
|
|
18
21
|
/**
|
|
19
22
|
* The pathname part of a login path (`/login?next=x` → `/login`).
|
|
20
23
|
*
|
|
@@ -30,7 +33,9 @@ const loginPathname = (loginPath) => loginPath.split(/[?#]/)[0] || '/';
|
|
|
30
33
|
* `data-mol-id="auth-guard-loading"` tag); while
|
|
31
34
|
* `'unauthenticated'` off the login path it renders nothing and redirects to
|
|
32
35
|
* `loginPath` (state `from` carries the attempted location); otherwise it
|
|
33
|
-
* renders the projected children
|
|
36
|
+
* renders the projected children, or `<mol-routed-view />` without them (the
|
|
37
|
+
* matched child route, through whichever routing bond the app wired; it throws
|
|
38
|
+
* when the bond has none: project the page then). The host is unwrapped by the DOM normalizer
|
|
34
39
|
* (`data-parity-unwrap`) and `display: contents` keeps it fragment-like —
|
|
35
40
|
* React's root is a fragment. On the login path itself the guard renders its
|
|
36
41
|
* children, so a guard wrapping the whole route tree does not redirect in a
|
|
@@ -83,6 +88,16 @@ export class AuthGuard {
|
|
|
83
88
|
sync = new SlotWrapper(inject(ElementRef), inject(Renderer2));
|
|
84
89
|
host = inject(ElementRef);
|
|
85
90
|
hasFallback = false;
|
|
91
|
+
/** Whether the guard was given children to project (known by view init). */
|
|
92
|
+
hasChildren = false;
|
|
93
|
+
/** Whether the view queries have resolved, so the children capture can be read. */
|
|
94
|
+
viewReady = false;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the routed view renders: the children branch with no projected children. A signal
|
|
97
|
+
* the template reads, so the routed view is created only then (it throws without one).
|
|
98
|
+
*/
|
|
99
|
+
routed = signal(false, /* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [{ debugName: "routed" }] : /* istanbul ignore next */ []));
|
|
86
101
|
lastAuthenticated = false;
|
|
87
102
|
/** The login path the guard navigated to for the current redirect state. */
|
|
88
103
|
redirectedTo = null;
|
|
@@ -101,11 +116,13 @@ export class AuthGuard {
|
|
|
101
116
|
}, /* @ts-ignore */
|
|
102
117
|
...(ngDevMode ? [{ debugName: "guardEffect" }] : /* istanbul ignore next */ []));
|
|
103
118
|
/**
|
|
104
|
-
* Detects the `loadingFallback` slot
|
|
105
|
-
* view init).
|
|
119
|
+
* Detects the `loadingFallback` slot and the children (view queries resolve
|
|
120
|
+
* only by view init).
|
|
106
121
|
*/
|
|
107
122
|
ngAfterViewInit() {
|
|
108
123
|
this.hasFallback = hasNodes(this.fallbackWrap?.nativeElement);
|
|
124
|
+
this.hasChildren = hasNodes(this.childrenWrap?.nativeElement);
|
|
125
|
+
this.viewReady = true;
|
|
109
126
|
this.reconcile();
|
|
110
127
|
}
|
|
111
128
|
/**
|
|
@@ -163,6 +180,7 @@ export class AuthGuard {
|
|
|
163
180
|
// The capture span itself never renders (React's children are bare).
|
|
164
181
|
this.sync.sync(this.childrenWrap?.nativeElement, false);
|
|
165
182
|
}
|
|
183
|
+
this.routed.set(this.viewReady && branch === 'children' && !this.hasChildren);
|
|
166
184
|
const loading = branch === 'loading';
|
|
167
185
|
const hasNode = isGiven(this.loadingFallback);
|
|
168
186
|
this.sync.sync(this.defaultLoading?.nativeElement, loading && !hasNode && !this.hasFallback);
|
|
@@ -187,7 +205,7 @@ export class AuthGuard {
|
|
|
187
205
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dataFallback = _t.first);
|
|
188
206
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fallbackWrap = _t.first);
|
|
189
207
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childrenWrap = _t.first);
|
|
190
|
-
} }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { loadingFallback: "loadingFallback", loadingKey: "loadingKey", loadingDefault: "loadingDefault", loginPath: "loginPath", onAuthenticated: "onAuthenticated" }, ngContentSelectors: _c5, decls:
|
|
208
|
+
} }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { loadingFallback: "loadingFallback", loadingKey: "loadingKey", loadingDefault: "loadingDefault", loginPath: "loginPath", onAuthenticated: "onAuthenticated" }, ngContentSelectors: _c5, decls: 14, vars: 4, consts: [["defaultLoading", ""], ["dataFallback", ""], ["fallbackWrap", ""], ["childrenWrap", ""], ["data-mol-id", "auth-guard-loading"], [3, "molTemplateOutlet"]], template: function AuthGuard_Template(rf, ctx) { if (rf & 1) {
|
|
191
209
|
i0.ɵɵprojectionDef(_c4);
|
|
192
210
|
i0.ɵɵelementStart(0, "div", 4, 0);
|
|
193
211
|
i0.ɵɵtext(2);
|
|
@@ -202,6 +220,7 @@ export class AuthGuard {
|
|
|
202
220
|
i0.ɵɵelementStart(10, "span", null, 3);
|
|
203
221
|
i0.ɵɵprojection(12, 1);
|
|
204
222
|
i0.ɵɵelementEnd();
|
|
223
|
+
i0.ɵɵconditionalCreate(13, AuthGuard_Conditional_13_Template, 1, 0, "mol-routed-view");
|
|
205
224
|
} if (rf & 2) {
|
|
206
225
|
i0.ɵɵadvance(2);
|
|
207
226
|
i0.ɵɵtextInterpolate(ctx.loadingText());
|
|
@@ -209,14 +228,16 @@ export class AuthGuard {
|
|
|
209
228
|
i0.ɵɵproperty("molTemplateOutlet", ctx.asTemplate(ctx.loadingFallback));
|
|
210
229
|
i0.ɵɵadvance();
|
|
211
230
|
i0.ɵɵtextInterpolate(ctx.nodeText(ctx.loadingFallback));
|
|
212
|
-
|
|
231
|
+
i0.ɵɵadvance(7);
|
|
232
|
+
i0.ɵɵconditional(ctx.routed() ? 13 : -1);
|
|
233
|
+
} }, dependencies: [MolTemplateOutlet, RoutedView], encapsulation: 2 });
|
|
213
234
|
}
|
|
214
235
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AuthGuard, [{
|
|
215
236
|
type: Component,
|
|
216
237
|
args: [{
|
|
217
238
|
selector: 'mol-auth-guard',
|
|
218
239
|
standalone: true,
|
|
219
|
-
imports: [MolTemplateOutlet],
|
|
240
|
+
imports: [MolTemplateOutlet, RoutedView],
|
|
220
241
|
inputs: ['loadingFallback', 'loadingKey', 'loadingDefault', 'loginPath', 'onAuthenticated'],
|
|
221
242
|
host: {
|
|
222
243
|
'data-parity-unwrap': '',
|
|
@@ -228,7 +249,10 @@ export class AuthGuard {
|
|
|
228
249
|
>{{ nodeText(loadingFallback) }}</span
|
|
229
250
|
>
|
|
230
251
|
<span #fallbackWrap><ng-content select="[slot=loadingFallback]"></ng-content></span>
|
|
231
|
-
<span #childrenWrap><ng-content></ng-content></span
|
|
252
|
+
<span #childrenWrap><ng-content></ng-content></span>
|
|
253
|
+
@if (routed()) {
|
|
254
|
+
<mol-routed-view />
|
|
255
|
+
}`,
|
|
232
256
|
}]
|
|
233
257
|
}], null, { defaultLoading: [{
|
|
234
258
|
type: ViewChild,
|
|
@@ -243,5 +267,5 @@ export class AuthGuard {
|
|
|
243
267
|
type: ViewChild,
|
|
244
268
|
args: ['childrenWrap']
|
|
245
269
|
}] }); })();
|
|
246
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AuthGuard, { className: "AuthGuard", filePath: "components/auth-guard.component.ts", lineNumber:
|
|
270
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AuthGuard, { className: "AuthGuard", filePath: "components/auth-guard.component.ts", lineNumber: 94 }); })();
|
|
247
271
|
//# sourceMappingURL=auth-guard.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-guard.component.js","sourceRoot":"","sources":["../../src/components/auth-guard.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EACT,MAAM,EACN,UAAU,EACV,MAAM,EACN,SAAS,
|
|
1
|
+
{"version":3,"file":"auth-guard.component.js","sourceRoot":"","sources":["../../src/components/auth-guard.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EACT,MAAM,EACN,UAAU,EACV,MAAM,EACN,SAAS,EACT,MAAM,EAEN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtF,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAC1E,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;;;;;;;;;IAoE5D,kCAAmB;;AA9CzB;;;;;GAKG;AACH,MAAM,aAAa,GAAG,CAAC,SAAiB,EAAU,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAA;AAEtF;;;;;;;;;;;;;;;;;;;;GAoBG;AAqBH,MAAM,OAAO,SAAS;IACpB;;;OAGG;IACH,eAAe,CAAoC;IACnD;;;OAGG;IACH,UAAU,CAA+B;IACzC,uEAAuE;IACvE,cAAc,CAAmC;IACjD,mEAAmE;IACnE,SAAS,CAA8B;IACvC,2EAA2E;IAC3E,eAAe,CAAoC;IAEnD,2DAA2D;IAClD,UAAU,GAAG,UAAU,CAAA;IAChC,gDAAgD;IACvC,QAAQ,GAAG,QAAQ,CAAA;IAE5B,+BAA+B;IACF,cAAc,CAA6B;IACxE,gEAAgE;IACrC,YAAY,CAA8B;IACrE,2DAA2D;IAChC,YAAY,CAA8B;IACrE,8EAA8E;IACnD,YAAY,CAA8B;IAErE,6DAA6D;IACpD,IAAI,GAAG,OAAO,EAAE,CAAA;IACzB,2EAA2E;IAClE,MAAM,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ACH,WAAW;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAChB,IAAI,CAAC,UAAU,IAAI,gBAAgB,EACnC,EAAE,EACF;YACE,YAAY,EAAE,IAAI,CAAC,cAAc,IAAI,YAAY;SAClD,CACF,CAAA;IACH,CAAC;mGA/JU,SAAS;6DAAT,SAAS;;;;;;;;;;YAXT,iCAAsD;YAAA,YAAmB;YAAA,iBAAM;YACxF,qCACG;YAAA,2BACA;YAAA,YAA+B;YAAA,iBACjC;YACD,qCAAoB;YAAA,kBAAyD;YAAA,iBAAO;YACpF,sCAAoB;YAAA,sBAAyB;YAAA,iBAAO;YACpD,sFAAgB;;YAP+C,eAAmB;YAAnB,uCAAmB;YAEjE,eAAiD;YAAjD,uEAAiD;YAC/D,cAA+B;YAA/B,uDAA+B;YAIlC,eAEC;YAFD,wCAEC;4BAfO,iBAAiB,EAAE,UAAU;;iFAiB5B,SAAS;cApBrB,SAAS;eAAC;gBACT,QAAQ,EAAE,gBAAgB;gBAC1B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,iBAAiB,EAAE,UAAU,CAAC;gBACxC,MAAM,EAAE,CAAC,iBAAiB,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,CAAC;gBAC3F,IAAI,EAAE;oBACJ,oBAAoB,EAAE,EAAE;oBACxB,KAAK,EAAE,mBAAmB;iBAC3B;gBACD,QAAQ,EAAE;;;;;;;;;MASN;aACL;;kBAyBE,SAAS;mBAAC,gBAAgB;;kBAE1B,SAAS;mBAAC,cAAc;;kBAExB,SAAS;mBAAC,cAAc;;kBAExB,SAAS;mBAAC,cAAc;;kFA9Bd,SAAS"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-ui-angular",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Angular UI components for molecule.dev",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@angular/common": "^22.0.0",
|
|
42
42
|
"@angular/core": "^22.0.0",
|
|
43
43
|
"@angular/platform-browser": "^22.0.0",
|
|
44
|
-
"@molecule/app-angular": "^3.
|
|
44
|
+
"@molecule/app-angular": "^3.11.0",
|
|
45
45
|
"@molecule/app-i18n": "^1.0.1",
|
|
46
46
|
"@molecule/app-icons": "^1.0.1",
|
|
47
47
|
"@molecule/app-ui": "^1.5.0"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@angular/compiler-cli": "22.2.3",
|
|
53
53
|
"@angular/core": "22.2.3",
|
|
54
54
|
"@angular/platform-browser": "22.2.3",
|
|
55
|
-
"@molecule/app-angular": "3.
|
|
55
|
+
"@molecule/app-angular": "3.11.0",
|
|
56
56
|
"@molecule/app-framework-conformance": "0.0.0",
|
|
57
57
|
"@molecule/app-i18n": "1.2.2",
|
|
58
58
|
"@molecule/app-icons": "1.0.4",
|