@smartsoft001/angular 2.192.0 → 2.194.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 +3 -3
- package/fesm2022/smartsoft001-angular.mjs +285 -108
- package/fesm2022/smartsoft001-angular.mjs.map +1 -1
- package/package.json +4 -4
- package/styles.css +187 -0
- package/types/smartsoft001-angular.d.ts +39 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Injectable, InjectionToken, ApplicationRef, NgModuleRef, PLATFORM_ID, Inject, signal, input, output, computed, Directive, ElementRef, ChangeDetectionStrategy, ViewEncapsulation, Component, afterRenderEffect, viewChild, EnvironmentInjector, createComponent, NgModule, ViewContainerRef, HostListener, Pipe, Type, model, ChangeDetectorRef, Injector, effect, runInInjectionContext,
|
|
2
|
+
import { inject, Injectable, InjectionToken, ApplicationRef, NgModuleRef, PLATFORM_ID, Inject, signal, input, output, computed, Directive, ElementRef, ChangeDetectionStrategy, ViewEncapsulation, Component, afterRenderEffect, viewChild, EnvironmentInjector, createComponent, NgModule, ViewContainerRef, HostListener, Pipe, Type, model, ChangeDetectorRef, Injector, effect, runInInjectionContext, DestroyRef, Renderer2, forwardRef, linkedSignal, untracked, afterNextRender } from '@angular/core';
|
|
3
3
|
import { Title, DomSanitizer } from '@angular/platform-browser';
|
|
4
4
|
import { Router, NavigationEnd, NavigationStart, NavigationCancel, NavigationError, RouterModule } from '@angular/router';
|
|
5
5
|
import * as i1 from '@ngx-translate/core';
|
|
@@ -4372,6 +4372,65 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
4372
4372
|
args: [{ selector: 'smart-button-preset', encapsulation: ViewEncapsulation.None, imports: [TranslatePipe, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (mode() !== 'confirm') {\n @let loading = options()?.loading?.();\n <button\n [type]=\"options()?.type ?? 'button'\"\n [class]=\"buttonClasses() + ' ' + cssClass()\"\n [disabled]=\"disabled() || loading\"\n (click)=\"invoke()\"\n >\n @if (loading) {\n <smart-icon name=\"spinner\" />\n } @else {\n <ng-content></ng-content>\n }\n </button>\n} @else {\n <div class=\"smart:inline-flex smart:flex-wrap smart:gap-2\">\n <button\n type=\"button\"\n class=\"smart:inline-flex smart:items-center smart:justify-center smart:gap-x-2 smart:rounded-lg smart:border smart:border-gray-200 smart:bg-white smart:px-4 smart:py-3 smart:text-sm smart:font-medium smart:text-gray-800 smart:shadow-2xs smart:transition-colors smart:hover:bg-gray-50 smart:focus:outline-none smart:focus:bg-gray-50 smart:dark:border-gray-700 smart:dark:bg-gray-800 smart:dark:text-gray-200 smart:dark:hover:bg-gray-700 smart:dark:focus:bg-gray-700\"\n (click)=\"confirmCancel()\"\n >\n {{ 'cancel' | translate }}\n </button>\n <button\n type=\"button\"\n class=\"smart:inline-flex smart:items-center smart:justify-center smart:gap-x-2 smart:rounded-lg smart:border smart:border-blue-600 smart:bg-blue-600 smart:px-4 smart:py-3 smart:text-sm smart:font-medium smart:text-white smart:transition-colors smart:hover:bg-blue-700 smart:focus:outline-none smart:focus:bg-blue-700 smart:dark:border-blue-500 smart:dark:bg-blue-500 smart:dark:hover:bg-blue-600 smart:dark:focus:bg-blue-600\"\n (click)=\"confirmInvoke()\"\n >\n {{ 'confirm' | translate }}\n </button>\n </div>\n}\n" }]
|
|
4373
4373
|
}], propDecorators: { cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "cssClass", required: false }] }] } });
|
|
4374
4374
|
|
|
4375
|
+
/**
|
|
4376
|
+
* Turns a wrapper's captured `<ng-content>` into `NgComponentOutlet` content.
|
|
4377
|
+
*
|
|
4378
|
+
* The wrappers render a custom implementation registered through their
|
|
4379
|
+
* `*_STANDARD_COMPONENT_TOKEN` with `NgComponentOutlet`, which does not see the
|
|
4380
|
+
* wrapper's `<ng-content>`: without this, the implementation renders with an
|
|
4381
|
+
* empty slot. Capture the content once in the wrapper's template
|
|
4382
|
+
* (`<ng-template #content><ng-content /></ng-template>`), render it with
|
|
4383
|
+
* `ngTemplateOutlet` in the standard branch, and pass
|
|
4384
|
+
* `content: projectedContent()` to the outlet in the injected branch. Call it
|
|
4385
|
+
* in an injection context, typically a field initializer, with the template
|
|
4386
|
+
* query declared as a class field
|
|
4387
|
+
* (`viewChild.required<TemplateRef<unknown>>('content')`): Angular only
|
|
4388
|
+
* recognises signal queries declared as fields.
|
|
4389
|
+
*
|
|
4390
|
+
* The outlet takes DOM nodes, not a template, so the returned function renders
|
|
4391
|
+
* the template once into a detached view, destroyed with the wrapper. That
|
|
4392
|
+
* view only holds the `<ng-content>` instruction: the projected nodes belong to
|
|
4393
|
+
* the host's view, which keeps change-detecting them. Its root nodes are moved
|
|
4394
|
+
* into a single `display: contents` element, and that element is what gets
|
|
4395
|
+
* projected into the implementation's default (first) slot: the implementation
|
|
4396
|
+
* moves just that node in and out when it shows or hides its slot (e.g. on
|
|
4397
|
+
* open / close), and control flow at the root of the content keeps inserting
|
|
4398
|
+
* its nodes next to its anchor inside it. Memoised, because a new array makes
|
|
4399
|
+
* the outlet re-create the component.
|
|
4400
|
+
*
|
|
4401
|
+
* The element is a `<span>` for every wrapper rather than a tag parameter: a
|
|
4402
|
+
* `display: contents` element generates no box and has no role, so its tag
|
|
4403
|
+
* only matters for the HTML content model, and a `<span>` is allowed both in
|
|
4404
|
+
* flow content (a layout's `<main>`) and in phrasing-only contexts
|
|
4405
|
+
* (`smart-button` projects into a `<button>`, where a `<div>` is not allowed).
|
|
4406
|
+
* Block content inside a `<span>` would be non-conforming in authored HTML,
|
|
4407
|
+
* but this element is created through the DOM and generates no box, so it
|
|
4408
|
+
* renders exactly like direct children of the slot parent.
|
|
4409
|
+
*
|
|
4410
|
+
* Caveat: the projected nodes are children of that element, not of the
|
|
4411
|
+
* implementation's slot parent. Flex, grid and `gap` are unaffected (the
|
|
4412
|
+
* element's children take part in the parent's layout), but child-combinator
|
|
4413
|
+
* selectors on the slot parent (`> *`, `space-y-*`, `divide-*`, `*:` variants)
|
|
4414
|
+
* do not reach them, and `:first-child` / `:last-child` are evaluated among
|
|
4415
|
+
* the projected nodes only.
|
|
4416
|
+
*/
|
|
4417
|
+
function outletContent(template) {
|
|
4418
|
+
const destroyRef = inject(DestroyRef);
|
|
4419
|
+
const renderer = inject(Renderer2);
|
|
4420
|
+
let content;
|
|
4421
|
+
return () => {
|
|
4422
|
+
if (!content) {
|
|
4423
|
+
const view = template().createEmbeddedView(undefined);
|
|
4424
|
+
const slot = renderer.createElement('span');
|
|
4425
|
+
renderer.setStyle(slot, 'display', 'contents');
|
|
4426
|
+
view.rootNodes.forEach((node) => renderer.appendChild(slot, node));
|
|
4427
|
+
destroyRef.onDestroy(() => view.destroy());
|
|
4428
|
+
content = [[slot]];
|
|
4429
|
+
}
|
|
4430
|
+
return content;
|
|
4431
|
+
};
|
|
4432
|
+
}
|
|
4433
|
+
|
|
4375
4434
|
class ButtonComponent {
|
|
4376
4435
|
injectedComponent = inject(BUTTON_STANDARD_COMPONENT_TOKEN, {
|
|
4377
4436
|
optional: true,
|
|
@@ -4389,11 +4448,21 @@ class ButtonComponent {
|
|
|
4389
4448
|
cssClass: this.cssClass(),
|
|
4390
4449
|
}), /* @ts-ignore */
|
|
4391
4450
|
...(ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []));
|
|
4451
|
+
/** The wrapper's `<ng-content>`, captured once for whichever branch renders. */
|
|
4452
|
+
contentTemplate = viewChild.required('content', /* @ts-ignore */
|
|
4453
|
+
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
4454
|
+
/** The captured content for an implementation registered through the token. */
|
|
4455
|
+
projectedContent = outletContent(this.contentTemplate);
|
|
4392
4456
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4393
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ButtonComponent, isStandalone: true, selector: "smart-button", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, ngImport: i0, template: `
|
|
4457
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ButtonComponent, isStandalone: true, selector: "smart-button", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, viewQueries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
4458
|
+
<ng-template #content><ng-content /></ng-template>
|
|
4394
4459
|
@if (componentType()) {
|
|
4395
4460
|
<ng-container
|
|
4396
|
-
*ngComponentOutlet="
|
|
4461
|
+
*ngComponentOutlet="
|
|
4462
|
+
componentType();
|
|
4463
|
+
inputs: componentInputs();
|
|
4464
|
+
content: projectedContent()
|
|
4465
|
+
"
|
|
4397
4466
|
/>
|
|
4398
4467
|
} @else {
|
|
4399
4468
|
<smart-button-standard
|
|
@@ -4401,12 +4470,9 @@ class ButtonComponent {
|
|
|
4401
4470
|
[disabled]="disabled()"
|
|
4402
4471
|
[class]="cssClass()"
|
|
4403
4472
|
>
|
|
4404
|
-
<ng-container [ngTemplateOutlet]="
|
|
4473
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
4405
4474
|
</smart-button-standard>
|
|
4406
4475
|
}
|
|
4407
|
-
<ng-template #contentRef>
|
|
4408
|
-
<ng-content></ng-content>
|
|
4409
|
-
</ng-template>
|
|
4410
4476
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonStandardComponent, selector: "smart-button-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4411
4477
|
}
|
|
4412
4478
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
@@ -4414,9 +4480,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
4414
4480
|
args: [{
|
|
4415
4481
|
selector: 'smart-button',
|
|
4416
4482
|
template: `
|
|
4483
|
+
<ng-template #content><ng-content /></ng-template>
|
|
4417
4484
|
@if (componentType()) {
|
|
4418
4485
|
<ng-container
|
|
4419
|
-
*ngComponentOutlet="
|
|
4486
|
+
*ngComponentOutlet="
|
|
4487
|
+
componentType();
|
|
4488
|
+
inputs: componentInputs();
|
|
4489
|
+
content: projectedContent()
|
|
4490
|
+
"
|
|
4420
4491
|
/>
|
|
4421
4492
|
} @else {
|
|
4422
4493
|
<smart-button-standard
|
|
@@ -4424,19 +4495,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
4424
4495
|
[disabled]="disabled()"
|
|
4425
4496
|
[class]="cssClass()"
|
|
4426
4497
|
>
|
|
4427
|
-
<ng-container [ngTemplateOutlet]="
|
|
4498
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
4428
4499
|
</smart-button-standard>
|
|
4429
4500
|
}
|
|
4430
|
-
<ng-template #contentRef>
|
|
4431
|
-
<ng-content></ng-content>
|
|
4432
|
-
</ng-template>
|
|
4433
4501
|
`,
|
|
4434
4502
|
encapsulation: ViewEncapsulation.None,
|
|
4435
4503
|
imports: [ButtonStandardComponent, NgComponentOutlet, NgTemplateOutlet],
|
|
4436
4504
|
host: { class: 'smart:contents' },
|
|
4437
4505
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4438
4506
|
}]
|
|
4439
|
-
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
4507
|
+
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], contentTemplate: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }] } });
|
|
4440
4508
|
|
|
4441
4509
|
class ButtonGroupBaseComponent {
|
|
4442
4510
|
static smartType = 'button-group';
|
|
@@ -5931,40 +5999,55 @@ class ContainerComponent {
|
|
|
5931
5999
|
cssClass: this.cssClass(),
|
|
5932
6000
|
}), /* @ts-ignore */
|
|
5933
6001
|
...(ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []));
|
|
6002
|
+
/** The wrapper's `<ng-content>`, captured once for whichever branch renders. */
|
|
6003
|
+
contentTemplate = viewChild.required('content', /* @ts-ignore */
|
|
6004
|
+
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
6005
|
+
/** The captured content for an implementation registered through the token. */
|
|
6006
|
+
projectedContent = outletContent(this.contentTemplate);
|
|
5934
6007
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5935
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ContainerComponent, isStandalone: true, selector: "smart-container", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, ngImport: i0, template: `
|
|
6008
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ContainerComponent, isStandalone: true, selector: "smart-container", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, viewQueries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
6009
|
+
<ng-template #content><ng-content /></ng-template>
|
|
5936
6010
|
@if (componentType()) {
|
|
5937
6011
|
<ng-container
|
|
5938
|
-
*ngComponentOutlet="
|
|
6012
|
+
*ngComponentOutlet="
|
|
6013
|
+
componentType();
|
|
6014
|
+
inputs: componentInputs();
|
|
6015
|
+
content: projectedContent()
|
|
6016
|
+
"
|
|
5939
6017
|
/>
|
|
5940
6018
|
} @else {
|
|
5941
6019
|
<smart-container-standard [options]="options()" [class]="cssClass()">
|
|
5942
|
-
<ng-content />
|
|
6020
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
5943
6021
|
</smart-container-standard>
|
|
5944
6022
|
}
|
|
5945
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ContainerStandardComponent, selector: "smart-container-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6023
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ContainerStandardComponent, selector: "smart-container-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5946
6024
|
}
|
|
5947
6025
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ContainerComponent, decorators: [{
|
|
5948
6026
|
type: Component,
|
|
5949
6027
|
args: [{
|
|
5950
6028
|
selector: 'smart-container',
|
|
5951
6029
|
template: `
|
|
6030
|
+
<ng-template #content><ng-content /></ng-template>
|
|
5952
6031
|
@if (componentType()) {
|
|
5953
6032
|
<ng-container
|
|
5954
|
-
*ngComponentOutlet="
|
|
6033
|
+
*ngComponentOutlet="
|
|
6034
|
+
componentType();
|
|
6035
|
+
inputs: componentInputs();
|
|
6036
|
+
content: projectedContent()
|
|
6037
|
+
"
|
|
5955
6038
|
/>
|
|
5956
6039
|
} @else {
|
|
5957
6040
|
<smart-container-standard [options]="options()" [class]="cssClass()">
|
|
5958
|
-
<ng-content />
|
|
6041
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
5959
6042
|
</smart-container-standard>
|
|
5960
6043
|
}
|
|
5961
6044
|
`,
|
|
5962
6045
|
encapsulation: ViewEncapsulation.None,
|
|
5963
|
-
imports: [ContainerStandardComponent, NgComponentOutlet],
|
|
6046
|
+
imports: [ContainerStandardComponent, NgComponentOutlet, NgTemplateOutlet],
|
|
5964
6047
|
host: { class: 'smart:contents' },
|
|
5965
6048
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5966
6049
|
}]
|
|
5967
|
-
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
6050
|
+
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], contentTemplate: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }] } });
|
|
5968
6051
|
|
|
5969
6052
|
class DateEditBaseComponent {
|
|
5970
6053
|
cd = inject(ChangeDetectorRef);
|
|
@@ -10352,35 +10435,8 @@ class DrawerComponent {
|
|
|
10352
10435
|
/** The wrapper's `<ng-content>`, captured once for whichever branch renders. */
|
|
10353
10436
|
contentTemplate = viewChild.required('content', /* @ts-ignore */
|
|
10354
10437
|
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
projectedNodes;
|
|
10358
|
-
/**
|
|
10359
|
-
* The projected content as `NgComponentOutlet` content, so an implementation
|
|
10360
|
-
* registered through `DRAWER_STANDARD_COMPONENT_TOKEN` receives it in its
|
|
10361
|
-
* (default) `<ng-content>` slot.
|
|
10362
|
-
*
|
|
10363
|
-
* The outlet takes DOM nodes, not a template, so the content template is
|
|
10364
|
-
* rendered once into a detached view, destroyed with the wrapper. That view
|
|
10365
|
-
* only holds the `<ng-content>` instruction: the projected nodes belong to
|
|
10366
|
-
* the host's view, which keeps change-detecting them. Its root nodes are
|
|
10367
|
-
* moved into a single `display: contents` element, and that element is what
|
|
10368
|
-
* gets projected: the implementation moves just that node in and out when it
|
|
10369
|
-
* shows or hides its slot (e.g. on open / close), and control flow at the root
|
|
10370
|
-
* of the content keeps inserting its nodes next to its anchor inside it.
|
|
10371
|
-
* Memoised, because a new array makes the outlet re-create the component.
|
|
10372
|
-
*/
|
|
10373
|
-
projectedContent() {
|
|
10374
|
-
if (!this.projectedNodes) {
|
|
10375
|
-
const view = this.contentTemplate().createEmbeddedView(undefined);
|
|
10376
|
-
const slot = this.renderer.createElement('div');
|
|
10377
|
-
this.renderer.setStyle(slot, 'display', 'contents');
|
|
10378
|
-
view.rootNodes.forEach((node) => this.renderer.appendChild(slot, node));
|
|
10379
|
-
this.destroyRef.onDestroy(() => view.destroy());
|
|
10380
|
-
this.projectedNodes = [[slot]];
|
|
10381
|
-
}
|
|
10382
|
-
return this.projectedNodes;
|
|
10383
|
-
}
|
|
10438
|
+
/** The captured content for an implementation registered through the token. */
|
|
10439
|
+
projectedContent = outletContent(this.contentTemplate);
|
|
10384
10440
|
constructor() {
|
|
10385
10441
|
forwardOutletOutputs(this.outlet, {
|
|
10386
10442
|
open: this.open,
|
|
@@ -10688,6 +10744,11 @@ class DropdownComponent {
|
|
|
10688
10744
|
...(ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []));
|
|
10689
10745
|
outlet = viewChild(NgComponentOutlet, /* @ts-ignore */
|
|
10690
10746
|
...(ngDevMode ? [{ debugName: "outlet" }] : /* istanbul ignore next */ []));
|
|
10747
|
+
/** The wrapper's `<ng-content>`, captured once for whichever branch renders. */
|
|
10748
|
+
contentTemplate = viewChild.required('content', /* @ts-ignore */
|
|
10749
|
+
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
10750
|
+
/** The captured content for an implementation registered through the token. */
|
|
10751
|
+
projectedContent = outletContent(this.contentTemplate);
|
|
10691
10752
|
constructor() {
|
|
10692
10753
|
forwardOutletOutputs(this.outlet, {
|
|
10693
10754
|
selectedItem: this.selectedItem,
|
|
@@ -10695,10 +10756,15 @@ class DropdownComponent {
|
|
|
10695
10756
|
});
|
|
10696
10757
|
}
|
|
10697
10758
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10698
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: DropdownComponent, isStandalone: true, selector: "smart-dropdown", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, triggerLabel: { classPropertyName: "triggerLabel", publicName: "triggerLabel", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", selectedItem: "selectedItem" }, host: { classAttribute: "smart:contents" }, viewQueries: [{ propertyName: "outlet", first: true, predicate: NgComponentOutlet, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
10759
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: DropdownComponent, isStandalone: true, selector: "smart-dropdown", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, triggerLabel: { classPropertyName: "triggerLabel", publicName: "triggerLabel", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", selectedItem: "selectedItem" }, host: { classAttribute: "smart:contents" }, viewQueries: [{ propertyName: "outlet", first: true, predicate: NgComponentOutlet, descendants: true, isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
10760
|
+
<ng-template #content><ng-content /></ng-template>
|
|
10699
10761
|
@if (componentType()) {
|
|
10700
10762
|
<ng-container
|
|
10701
|
-
*ngComponentOutlet="
|
|
10763
|
+
*ngComponentOutlet="
|
|
10764
|
+
componentType();
|
|
10765
|
+
inputs: componentInputs();
|
|
10766
|
+
content: projectedContent()
|
|
10767
|
+
"
|
|
10702
10768
|
/>
|
|
10703
10769
|
} @else {
|
|
10704
10770
|
<smart-dropdown-standard
|
|
@@ -10709,19 +10775,24 @@ class DropdownComponent {
|
|
|
10709
10775
|
[class]="cssClass()"
|
|
10710
10776
|
(selectedItem)="selectedItem.emit($event)"
|
|
10711
10777
|
>
|
|
10712
|
-
<ng-content />
|
|
10778
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
10713
10779
|
</smart-dropdown-standard>
|
|
10714
10780
|
}
|
|
10715
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DropdownStandardComponent, selector: "smart-dropdown-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
10781
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DropdownStandardComponent, selector: "smart-dropdown-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
10716
10782
|
}
|
|
10717
10783
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
10718
10784
|
type: Component,
|
|
10719
10785
|
args: [{
|
|
10720
10786
|
selector: 'smart-dropdown',
|
|
10721
10787
|
template: `
|
|
10788
|
+
<ng-template #content><ng-content /></ng-template>
|
|
10722
10789
|
@if (componentType()) {
|
|
10723
10790
|
<ng-container
|
|
10724
|
-
*ngComponentOutlet="
|
|
10791
|
+
*ngComponentOutlet="
|
|
10792
|
+
componentType();
|
|
10793
|
+
inputs: componentInputs();
|
|
10794
|
+
content: projectedContent()
|
|
10795
|
+
"
|
|
10725
10796
|
/>
|
|
10726
10797
|
} @else {
|
|
10727
10798
|
<smart-dropdown-standard
|
|
@@ -10732,16 +10803,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
10732
10803
|
[class]="cssClass()"
|
|
10733
10804
|
(selectedItem)="selectedItem.emit($event)"
|
|
10734
10805
|
>
|
|
10735
|
-
<ng-content />
|
|
10806
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
10736
10807
|
</smart-dropdown-standard>
|
|
10737
10808
|
}
|
|
10738
10809
|
`,
|
|
10739
10810
|
encapsulation: ViewEncapsulation.None,
|
|
10740
|
-
imports: [DropdownStandardComponent, NgComponentOutlet],
|
|
10811
|
+
imports: [DropdownStandardComponent, NgComponentOutlet, NgTemplateOutlet],
|
|
10741
10812
|
host: { class: 'smart:contents' },
|
|
10742
10813
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10743
10814
|
}]
|
|
10744
|
-
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], triggerLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerLabel", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], selectedItem: [{ type: i0.Output, args: ["selectedItem"] }], outlet: [{ type: i0.ViewChild, args: [i0.forwardRef(() => NgComponentOutlet), { isSignal: true }] }] } });
|
|
10815
|
+
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], triggerLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerLabel", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], selectedItem: [{ type: i0.Output, args: ["selectedItem"] }], outlet: [{ type: i0.ViewChild, args: [i0.forwardRef(() => NgComponentOutlet), { isSignal: true }] }], contentTemplate: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }] } });
|
|
10745
10816
|
|
|
10746
10817
|
class EmptyStateBaseComponent {
|
|
10747
10818
|
static smartType = 'empty-state';
|
|
@@ -23458,40 +23529,59 @@ class ListContainerComponent {
|
|
|
23458
23529
|
cssClass: this.cssClass(),
|
|
23459
23530
|
}), /* @ts-ignore */
|
|
23460
23531
|
...(ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []));
|
|
23532
|
+
/** The wrapper's `<ng-content>`, captured once for whichever branch renders. */
|
|
23533
|
+
contentTemplate = viewChild.required('content', /* @ts-ignore */
|
|
23534
|
+
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
23535
|
+
/** The captured content for an implementation registered through the token. */
|
|
23536
|
+
projectedContent = outletContent(this.contentTemplate);
|
|
23461
23537
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23462
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListContainerComponent, isStandalone: true, selector: "smart-list-container", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, ngImport: i0, template: `
|
|
23538
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListContainerComponent, isStandalone: true, selector: "smart-list-container", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, viewQueries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
23539
|
+
<ng-template #content><ng-content /></ng-template>
|
|
23463
23540
|
@if (componentType()) {
|
|
23464
23541
|
<ng-container
|
|
23465
|
-
*ngComponentOutlet="
|
|
23542
|
+
*ngComponentOutlet="
|
|
23543
|
+
componentType();
|
|
23544
|
+
inputs: componentInputs();
|
|
23545
|
+
content: projectedContent()
|
|
23546
|
+
"
|
|
23466
23547
|
/>
|
|
23467
23548
|
} @else {
|
|
23468
23549
|
<smart-list-container-standard [options]="options()" [class]="cssClass()">
|
|
23469
|
-
<ng-content />
|
|
23550
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
23470
23551
|
</smart-list-container-standard>
|
|
23471
23552
|
}
|
|
23472
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ListContainerStandardComponent, selector: "smart-list-container-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
23553
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ListContainerStandardComponent, selector: "smart-list-container-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
23473
23554
|
}
|
|
23474
23555
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListContainerComponent, decorators: [{
|
|
23475
23556
|
type: Component,
|
|
23476
23557
|
args: [{
|
|
23477
23558
|
selector: 'smart-list-container',
|
|
23478
23559
|
template: `
|
|
23560
|
+
<ng-template #content><ng-content /></ng-template>
|
|
23479
23561
|
@if (componentType()) {
|
|
23480
23562
|
<ng-container
|
|
23481
|
-
*ngComponentOutlet="
|
|
23563
|
+
*ngComponentOutlet="
|
|
23564
|
+
componentType();
|
|
23565
|
+
inputs: componentInputs();
|
|
23566
|
+
content: projectedContent()
|
|
23567
|
+
"
|
|
23482
23568
|
/>
|
|
23483
23569
|
} @else {
|
|
23484
23570
|
<smart-list-container-standard [options]="options()" [class]="cssClass()">
|
|
23485
|
-
<ng-content />
|
|
23571
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
23486
23572
|
</smart-list-container-standard>
|
|
23487
23573
|
}
|
|
23488
23574
|
`,
|
|
23489
23575
|
encapsulation: ViewEncapsulation.None,
|
|
23490
|
-
imports: [
|
|
23576
|
+
imports: [
|
|
23577
|
+
ListContainerStandardComponent,
|
|
23578
|
+
NgComponentOutlet,
|
|
23579
|
+
NgTemplateOutlet,
|
|
23580
|
+
],
|
|
23491
23581
|
host: { class: 'smart:contents' },
|
|
23492
23582
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23493
23583
|
}]
|
|
23494
|
-
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
23584
|
+
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], contentTemplate: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }] } });
|
|
23495
23585
|
|
|
23496
23586
|
class MediaObjectBaseComponent {
|
|
23497
23587
|
static smartType = 'media-object';
|
|
@@ -23538,11 +23628,21 @@ class MediaObjectComponent {
|
|
|
23538
23628
|
cssClass: this.cssClass(),
|
|
23539
23629
|
}), /* @ts-ignore */
|
|
23540
23630
|
...(ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []));
|
|
23631
|
+
/** The wrapper's `<ng-content>`, captured once for whichever branch renders. */
|
|
23632
|
+
contentTemplate = viewChild.required('content', /* @ts-ignore */
|
|
23633
|
+
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
23634
|
+
/** The captured content for an implementation registered through the token. */
|
|
23635
|
+
projectedContent = outletContent(this.contentTemplate);
|
|
23541
23636
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: MediaObjectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23542
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: MediaObjectComponent, isStandalone: true, selector: "smart-media-object", inputs: { mediaUrl: { classPropertyName: "mediaUrl", publicName: "mediaUrl", isSignal: true, isRequired: true, transformFunction: null }, mediaAlt: { classPropertyName: "mediaAlt", publicName: "mediaAlt", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, ngImport: i0, template: `
|
|
23637
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: MediaObjectComponent, isStandalone: true, selector: "smart-media-object", inputs: { mediaUrl: { classPropertyName: "mediaUrl", publicName: "mediaUrl", isSignal: true, isRequired: true, transformFunction: null }, mediaAlt: { classPropertyName: "mediaAlt", publicName: "mediaAlt", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, viewQueries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
23638
|
+
<ng-template #content><ng-content /></ng-template>
|
|
23543
23639
|
@if (componentType()) {
|
|
23544
23640
|
<ng-container
|
|
23545
|
-
*ngComponentOutlet="
|
|
23641
|
+
*ngComponentOutlet="
|
|
23642
|
+
componentType();
|
|
23643
|
+
inputs: componentInputs();
|
|
23644
|
+
content: projectedContent()
|
|
23645
|
+
"
|
|
23546
23646
|
/>
|
|
23547
23647
|
} @else {
|
|
23548
23648
|
<smart-media-object-standard
|
|
@@ -23551,19 +23651,24 @@ class MediaObjectComponent {
|
|
|
23551
23651
|
[options]="options()"
|
|
23552
23652
|
[class]="cssClass()"
|
|
23553
23653
|
>
|
|
23554
|
-
<ng-content />
|
|
23654
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
23555
23655
|
</smart-media-object-standard>
|
|
23556
23656
|
}
|
|
23557
|
-
`, isInline: true, dependencies: [{ kind: "component", type: MediaObjectStandardComponent, selector: "smart-media-object-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
23657
|
+
`, isInline: true, dependencies: [{ kind: "component", type: MediaObjectStandardComponent, selector: "smart-media-object-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
23558
23658
|
}
|
|
23559
23659
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: MediaObjectComponent, decorators: [{
|
|
23560
23660
|
type: Component,
|
|
23561
23661
|
args: [{
|
|
23562
23662
|
selector: 'smart-media-object',
|
|
23563
23663
|
template: `
|
|
23664
|
+
<ng-template #content><ng-content /></ng-template>
|
|
23564
23665
|
@if (componentType()) {
|
|
23565
23666
|
<ng-container
|
|
23566
|
-
*ngComponentOutlet="
|
|
23667
|
+
*ngComponentOutlet="
|
|
23668
|
+
componentType();
|
|
23669
|
+
inputs: componentInputs();
|
|
23670
|
+
content: projectedContent()
|
|
23671
|
+
"
|
|
23567
23672
|
/>
|
|
23568
23673
|
} @else {
|
|
23569
23674
|
<smart-media-object-standard
|
|
@@ -23572,16 +23677,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
23572
23677
|
[options]="options()"
|
|
23573
23678
|
[class]="cssClass()"
|
|
23574
23679
|
>
|
|
23575
|
-
<ng-content />
|
|
23680
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
23576
23681
|
</smart-media-object-standard>
|
|
23577
23682
|
}
|
|
23578
23683
|
`,
|
|
23579
23684
|
encapsulation: ViewEncapsulation.None,
|
|
23580
|
-
imports: [MediaObjectStandardComponent, NgComponentOutlet],
|
|
23685
|
+
imports: [MediaObjectStandardComponent, NgComponentOutlet, NgTemplateOutlet],
|
|
23581
23686
|
host: { class: 'smart:contents' },
|
|
23582
23687
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23583
23688
|
}]
|
|
23584
|
-
}], propDecorators: { mediaUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "mediaUrl", required: true }] }], mediaAlt: [{ type: i0.Input, args: [{ isSignal: true, alias: "mediaAlt", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
23689
|
+
}], propDecorators: { mediaUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "mediaUrl", required: true }] }], mediaAlt: [{ type: i0.Input, args: [{ isSignal: true, alias: "mediaAlt", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], contentTemplate: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }] } });
|
|
23585
23690
|
|
|
23586
23691
|
/** Cross-axis alignment of the media against the body. */
|
|
23587
23692
|
const ALIGNMENT_CLASSES = {
|
|
@@ -23951,6 +24056,11 @@ class ModalComponent {
|
|
|
23951
24056
|
...(ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []));
|
|
23952
24057
|
outlet = viewChild(NgComponentOutlet, /* @ts-ignore */
|
|
23953
24058
|
...(ngDevMode ? [{ debugName: "outlet" }] : /* istanbul ignore next */ []));
|
|
24059
|
+
/** The wrapper's `<ng-content>`, captured once for whichever branch renders. */
|
|
24060
|
+
contentTemplate = viewChild.required('content', /* @ts-ignore */
|
|
24061
|
+
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
24062
|
+
/** The captured content for an implementation registered through the token. */
|
|
24063
|
+
projectedContent = outletContent(this.contentTemplate);
|
|
23954
24064
|
constructor() {
|
|
23955
24065
|
forwardOutletOutputs(this.outlet, {
|
|
23956
24066
|
actionClick: this.actionClick,
|
|
@@ -23959,10 +24069,15 @@ class ModalComponent {
|
|
|
23959
24069
|
});
|
|
23960
24070
|
}
|
|
23961
24071
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23962
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ModalComponent, isStandalone: true, selector: "smart-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", actionClick: "actionClick", closed: "closed" }, host: { classAttribute: "smart:contents" }, viewQueries: [{ propertyName: "outlet", first: true, predicate: NgComponentOutlet, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
24072
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ModalComponent, isStandalone: true, selector: "smart-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", actionClick: "actionClick", closed: "closed" }, host: { classAttribute: "smart:contents" }, viewQueries: [{ propertyName: "outlet", first: true, predicate: NgComponentOutlet, descendants: true, isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
24073
|
+
<ng-template #content><ng-content /></ng-template>
|
|
23963
24074
|
@if (componentType()) {
|
|
23964
24075
|
<ng-container
|
|
23965
|
-
*ngComponentOutlet="
|
|
24076
|
+
*ngComponentOutlet="
|
|
24077
|
+
componentType();
|
|
24078
|
+
inputs: componentInputs();
|
|
24079
|
+
content: projectedContent()
|
|
24080
|
+
"
|
|
23966
24081
|
/>
|
|
23967
24082
|
} @else {
|
|
23968
24083
|
<smart-modal-standard
|
|
@@ -23975,19 +24090,24 @@ class ModalComponent {
|
|
|
23975
24090
|
(actionClick)="actionClick.emit($event)"
|
|
23976
24091
|
(closed)="closed.emit()"
|
|
23977
24092
|
>
|
|
23978
|
-
<ng-content />
|
|
24093
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
23979
24094
|
</smart-modal-standard>
|
|
23980
24095
|
}
|
|
23981
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ModalStandardComponent, selector: "smart-modal-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
24096
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ModalStandardComponent, selector: "smart-modal-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
23982
24097
|
}
|
|
23983
24098
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ModalComponent, decorators: [{
|
|
23984
24099
|
type: Component,
|
|
23985
24100
|
args: [{
|
|
23986
24101
|
selector: 'smart-modal',
|
|
23987
24102
|
template: `
|
|
24103
|
+
<ng-template #content><ng-content /></ng-template>
|
|
23988
24104
|
@if (componentType()) {
|
|
23989
24105
|
<ng-container
|
|
23990
|
-
*ngComponentOutlet="
|
|
24106
|
+
*ngComponentOutlet="
|
|
24107
|
+
componentType();
|
|
24108
|
+
inputs: componentInputs();
|
|
24109
|
+
content: projectedContent()
|
|
24110
|
+
"
|
|
23991
24111
|
/>
|
|
23992
24112
|
} @else {
|
|
23993
24113
|
<smart-modal-standard
|
|
@@ -24000,16 +24120,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
24000
24120
|
(actionClick)="actionClick.emit($event)"
|
|
24001
24121
|
(closed)="closed.emit()"
|
|
24002
24122
|
>
|
|
24003
|
-
<ng-content />
|
|
24123
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
24004
24124
|
</smart-modal-standard>
|
|
24005
24125
|
}
|
|
24006
24126
|
`,
|
|
24007
24127
|
encapsulation: ViewEncapsulation.None,
|
|
24008
|
-
imports: [ModalStandardComponent, NgComponentOutlet],
|
|
24128
|
+
imports: [ModalStandardComponent, NgComponentOutlet, NgTemplateOutlet],
|
|
24009
24129
|
host: { class: 'smart:contents' },
|
|
24010
24130
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24011
24131
|
}]
|
|
24012
|
-
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], actionClick: [{ type: i0.Output, args: ["actionClick"] }], closed: [{ type: i0.Output, args: ["closed"] }], outlet: [{ type: i0.ViewChild, args: [i0.forwardRef(() => NgComponentOutlet), { isSignal: true }] }] } });
|
|
24132
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], actionClick: [{ type: i0.Output, args: ["actionClick"] }], closed: [{ type: i0.Output, args: ["closed"] }], outlet: [{ type: i0.ViewChild, args: [i0.forwardRef(() => NgComponentOutlet), { isSignal: true }] }], contentTemplate: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }] } });
|
|
24013
24133
|
|
|
24014
24134
|
class MultiColumnLayoutBaseComponent {
|
|
24015
24135
|
static smartType = 'multi-column-layout';
|
|
@@ -24046,46 +24166,65 @@ class MultiColumnLayoutComponent {
|
|
|
24046
24166
|
cssClass: this.cssClass(),
|
|
24047
24167
|
}), /* @ts-ignore */
|
|
24048
24168
|
...(ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []));
|
|
24169
|
+
/** The wrapper's `<ng-content>`, captured once for whichever branch renders. */
|
|
24170
|
+
contentTemplate = viewChild.required('content', /* @ts-ignore */
|
|
24171
|
+
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
24172
|
+
/** The captured content for an implementation registered through the token. */
|
|
24173
|
+
projectedContent = outletContent(this.contentTemplate);
|
|
24049
24174
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: MultiColumnLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
24050
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: MultiColumnLayoutComponent, isStandalone: true, selector: "smart-multi-column-layout", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, ngImport: i0, template: `
|
|
24175
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: MultiColumnLayoutComponent, isStandalone: true, selector: "smart-multi-column-layout", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, viewQueries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
24176
|
+
<ng-template #content><ng-content /></ng-template>
|
|
24051
24177
|
@if (componentType()) {
|
|
24052
24178
|
<ng-container
|
|
24053
|
-
*ngComponentOutlet="
|
|
24179
|
+
*ngComponentOutlet="
|
|
24180
|
+
componentType();
|
|
24181
|
+
inputs: componentInputs();
|
|
24182
|
+
content: projectedContent()
|
|
24183
|
+
"
|
|
24054
24184
|
/>
|
|
24055
24185
|
} @else {
|
|
24056
24186
|
<smart-multi-column-layout-standard
|
|
24057
24187
|
[options]="options()"
|
|
24058
24188
|
[class]="cssClass()"
|
|
24059
24189
|
>
|
|
24060
|
-
<ng-content />
|
|
24190
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
24061
24191
|
</smart-multi-column-layout-standard>
|
|
24062
24192
|
}
|
|
24063
|
-
`, isInline: true, dependencies: [{ kind: "component", type: MultiColumnLayoutStandardComponent, selector: "smart-multi-column-layout-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
24193
|
+
`, isInline: true, dependencies: [{ kind: "component", type: MultiColumnLayoutStandardComponent, selector: "smart-multi-column-layout-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
24064
24194
|
}
|
|
24065
24195
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: MultiColumnLayoutComponent, decorators: [{
|
|
24066
24196
|
type: Component,
|
|
24067
24197
|
args: [{
|
|
24068
24198
|
selector: 'smart-multi-column-layout',
|
|
24069
24199
|
template: `
|
|
24200
|
+
<ng-template #content><ng-content /></ng-template>
|
|
24070
24201
|
@if (componentType()) {
|
|
24071
24202
|
<ng-container
|
|
24072
|
-
*ngComponentOutlet="
|
|
24203
|
+
*ngComponentOutlet="
|
|
24204
|
+
componentType();
|
|
24205
|
+
inputs: componentInputs();
|
|
24206
|
+
content: projectedContent()
|
|
24207
|
+
"
|
|
24073
24208
|
/>
|
|
24074
24209
|
} @else {
|
|
24075
24210
|
<smart-multi-column-layout-standard
|
|
24076
24211
|
[options]="options()"
|
|
24077
24212
|
[class]="cssClass()"
|
|
24078
24213
|
>
|
|
24079
|
-
<ng-content />
|
|
24214
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
24080
24215
|
</smart-multi-column-layout-standard>
|
|
24081
24216
|
}
|
|
24082
24217
|
`,
|
|
24083
24218
|
encapsulation: ViewEncapsulation.None,
|
|
24084
|
-
imports: [
|
|
24219
|
+
imports: [
|
|
24220
|
+
MultiColumnLayoutStandardComponent,
|
|
24221
|
+
NgComponentOutlet,
|
|
24222
|
+
NgTemplateOutlet,
|
|
24223
|
+
],
|
|
24085
24224
|
host: { class: 'smart:contents' },
|
|
24086
24225
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24087
24226
|
}]
|
|
24088
|
-
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
24227
|
+
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], contentTemplate: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }] } });
|
|
24089
24228
|
|
|
24090
24229
|
// Preset class recipes for the multi-column-layout preset.
|
|
24091
24230
|
// Every utility is `smart:`-prefixed (Tailwind v4 `prefix(smart)`), and every
|
|
@@ -26237,11 +26376,11 @@ class SidebarLayoutStandardComponent extends SidebarLayoutBaseComponent {
|
|
|
26237
26376
|
isRightSidebar = computed(() => this.options()?.sidebarPosition === 'right', /* @ts-ignore */
|
|
26238
26377
|
...(ngDevMode ? [{ debugName: "isRightSidebar" }] : /* istanbul ignore next */ []));
|
|
26239
26378
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SidebarLayoutStandardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
26240
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: SidebarLayoutStandardComponent, isStandalone: true, selector: "smart-sidebar-layout-standard", usesInheritance: true, ngImport: i0, template: "<div [class]=\"cssClass()\">\n @if (options()?.headerTpl) {\n <header>\n <ng-container [ngTemplateOutlet]=\"options()!.headerTpl!\" />\n </header>\n }\n @if (isRightSidebar()) {\n <main>\n <ng-content />\n </main>\n <aside>\n @if (options()?.sidebarTpl) {\n <ng-container [ngTemplateOutlet]=\"options()!.sidebarTpl!\" />\n }\n </aside>\n } @else {\n <aside>\n @if (options()?.sidebarTpl) {\n <ng-container [ngTemplateOutlet]=\"options()!.sidebarTpl!\" />\n }\n </aside>\n <main>\n <ng-content />\n </main>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
26379
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: SidebarLayoutStandardComponent, isStandalone: true, selector: "smart-sidebar-layout-standard", usesInheritance: true, ngImport: i0, template: "<!--\n Captured once: Angular projects default content into the last wildcard\n <ng-content> only, so one per @if branch would leave <main> empty in the\n other branch.\n-->\n<ng-template #content><ng-content /></ng-template>\n<div [class]=\"cssClass()\">\n @if (options()?.headerTpl) {\n <header>\n <ng-container [ngTemplateOutlet]=\"options()!.headerTpl!\" />\n </header>\n }\n @if (isRightSidebar()) {\n <main>\n <ng-container [ngTemplateOutlet]=\"content\" />\n </main>\n <aside>\n @if (options()?.sidebarTpl) {\n <ng-container [ngTemplateOutlet]=\"options()!.sidebarTpl!\" />\n }\n </aside>\n } @else {\n <aside>\n @if (options()?.sidebarTpl) {\n <ng-container [ngTemplateOutlet]=\"options()!.sidebarTpl!\" />\n }\n </aside>\n <main>\n <ng-container [ngTemplateOutlet]=\"content\" />\n </main>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
26241
26380
|
}
|
|
26242
26381
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SidebarLayoutStandardComponent, decorators: [{
|
|
26243
26382
|
type: Component,
|
|
26244
|
-
args: [{ selector: 'smart-sidebar-layout-standard', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet], template: "<div [class]=\"cssClass()\">\n @if (options()?.headerTpl) {\n <header>\n <ng-container [ngTemplateOutlet]=\"options()!.headerTpl!\" />\n </header>\n }\n @if (isRightSidebar()) {\n <main>\n <ng-content />\n </main>\n <aside>\n @if (options()?.sidebarTpl) {\n <ng-container [ngTemplateOutlet]=\"options()!.sidebarTpl!\" />\n }\n </aside>\n } @else {\n <aside>\n @if (options()?.sidebarTpl) {\n <ng-container [ngTemplateOutlet]=\"options()!.sidebarTpl!\" />\n }\n </aside>\n <main>\n <ng-content />\n </main>\n }\n</div>\n" }]
|
|
26383
|
+
args: [{ selector: 'smart-sidebar-layout-standard', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet], template: "<!--\n Captured once: Angular projects default content into the last wildcard\n <ng-content> only, so one per @if branch would leave <main> empty in the\n other branch.\n-->\n<ng-template #content><ng-content /></ng-template>\n<div [class]=\"cssClass()\">\n @if (options()?.headerTpl) {\n <header>\n <ng-container [ngTemplateOutlet]=\"options()!.headerTpl!\" />\n </header>\n }\n @if (isRightSidebar()) {\n <main>\n <ng-container [ngTemplateOutlet]=\"content\" />\n </main>\n <aside>\n @if (options()?.sidebarTpl) {\n <ng-container [ngTemplateOutlet]=\"options()!.sidebarTpl!\" />\n }\n </aside>\n } @else {\n <aside>\n @if (options()?.sidebarTpl) {\n <ng-container [ngTemplateOutlet]=\"options()!.sidebarTpl!\" />\n }\n </aside>\n <main>\n <ng-container [ngTemplateOutlet]=\"content\" />\n </main>\n }\n</div>\n" }]
|
|
26245
26384
|
}] });
|
|
26246
26385
|
|
|
26247
26386
|
// Preset class recipes for the sidebar-layout preset.
|
|
@@ -26371,40 +26510,59 @@ class SidebarLayoutComponent {
|
|
|
26371
26510
|
cssClass: this.cssClass(),
|
|
26372
26511
|
}), /* @ts-ignore */
|
|
26373
26512
|
...(ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []));
|
|
26513
|
+
/** The wrapper's `<ng-content>`, captured once for whichever branch renders. */
|
|
26514
|
+
contentTemplate = viewChild.required('content', /* @ts-ignore */
|
|
26515
|
+
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
26516
|
+
/** The captured content for an implementation registered through the token. */
|
|
26517
|
+
projectedContent = outletContent(this.contentTemplate);
|
|
26374
26518
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SidebarLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26375
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: SidebarLayoutComponent, isStandalone: true, selector: "smart-sidebar-layout", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, ngImport: i0, template: `
|
|
26519
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: SidebarLayoutComponent, isStandalone: true, selector: "smart-sidebar-layout", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, viewQueries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
26520
|
+
<ng-template #content><ng-content /></ng-template>
|
|
26376
26521
|
@if (componentType()) {
|
|
26377
26522
|
<ng-container
|
|
26378
|
-
*ngComponentOutlet="
|
|
26523
|
+
*ngComponentOutlet="
|
|
26524
|
+
componentType();
|
|
26525
|
+
inputs: componentInputs();
|
|
26526
|
+
content: projectedContent()
|
|
26527
|
+
"
|
|
26379
26528
|
/>
|
|
26380
26529
|
} @else {
|
|
26381
26530
|
<smart-sidebar-layout-standard [options]="options()" [class]="cssClass()">
|
|
26382
|
-
<ng-content />
|
|
26531
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
26383
26532
|
</smart-sidebar-layout-standard>
|
|
26384
26533
|
}
|
|
26385
|
-
`, isInline: true, dependencies: [{ kind: "component", type: SidebarLayoutStandardComponent, selector: "smart-sidebar-layout-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
26534
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SidebarLayoutStandardComponent, selector: "smart-sidebar-layout-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
26386
26535
|
}
|
|
26387
26536
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SidebarLayoutComponent, decorators: [{
|
|
26388
26537
|
type: Component,
|
|
26389
26538
|
args: [{
|
|
26390
26539
|
selector: 'smart-sidebar-layout',
|
|
26391
26540
|
template: `
|
|
26541
|
+
<ng-template #content><ng-content /></ng-template>
|
|
26392
26542
|
@if (componentType()) {
|
|
26393
26543
|
<ng-container
|
|
26394
|
-
*ngComponentOutlet="
|
|
26544
|
+
*ngComponentOutlet="
|
|
26545
|
+
componentType();
|
|
26546
|
+
inputs: componentInputs();
|
|
26547
|
+
content: projectedContent()
|
|
26548
|
+
"
|
|
26395
26549
|
/>
|
|
26396
26550
|
} @else {
|
|
26397
26551
|
<smart-sidebar-layout-standard [options]="options()" [class]="cssClass()">
|
|
26398
|
-
<ng-content />
|
|
26552
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
26399
26553
|
</smart-sidebar-layout-standard>
|
|
26400
26554
|
}
|
|
26401
26555
|
`,
|
|
26402
26556
|
encapsulation: ViewEncapsulation.None,
|
|
26403
|
-
imports: [
|
|
26557
|
+
imports: [
|
|
26558
|
+
SidebarLayoutStandardComponent,
|
|
26559
|
+
NgComponentOutlet,
|
|
26560
|
+
NgTemplateOutlet,
|
|
26561
|
+
],
|
|
26404
26562
|
host: { class: 'smart:contents' },
|
|
26405
26563
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
26406
26564
|
}]
|
|
26407
|
-
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
26565
|
+
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], contentTemplate: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }] } });
|
|
26408
26566
|
|
|
26409
26567
|
class SidebarNavigationBaseComponent {
|
|
26410
26568
|
static smartType = 'sidebar-navigation';
|
|
@@ -26999,40 +27157,59 @@ class StackedLayoutComponent {
|
|
|
26999
27157
|
cssClass: this.cssClass(),
|
|
27000
27158
|
}), /* @ts-ignore */
|
|
27001
27159
|
...(ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []));
|
|
27160
|
+
/** The wrapper's `<ng-content>`, captured once for whichever branch renders. */
|
|
27161
|
+
contentTemplate = viewChild.required('content', /* @ts-ignore */
|
|
27162
|
+
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
27163
|
+
/** The captured content for an implementation registered through the token. */
|
|
27164
|
+
projectedContent = outletContent(this.contentTemplate);
|
|
27002
27165
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: StackedLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27003
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: StackedLayoutComponent, isStandalone: true, selector: "smart-stacked-layout", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, ngImport: i0, template: `
|
|
27166
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: StackedLayoutComponent, isStandalone: true, selector: "smart-stacked-layout", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "smart:contents" }, viewQueries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
27167
|
+
<ng-template #content><ng-content /></ng-template>
|
|
27004
27168
|
@if (componentType()) {
|
|
27005
27169
|
<ng-container
|
|
27006
|
-
*ngComponentOutlet="
|
|
27170
|
+
*ngComponentOutlet="
|
|
27171
|
+
componentType();
|
|
27172
|
+
inputs: componentInputs();
|
|
27173
|
+
content: projectedContent()
|
|
27174
|
+
"
|
|
27007
27175
|
/>
|
|
27008
27176
|
} @else {
|
|
27009
27177
|
<smart-stacked-layout-standard [options]="options()" [class]="cssClass()">
|
|
27010
|
-
<ng-content />
|
|
27178
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
27011
27179
|
</smart-stacked-layout-standard>
|
|
27012
27180
|
}
|
|
27013
|
-
`, isInline: true, dependencies: [{ kind: "component", type: StackedLayoutStandardComponent, selector: "smart-stacked-layout-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
27181
|
+
`, isInline: true, dependencies: [{ kind: "component", type: StackedLayoutStandardComponent, selector: "smart-stacked-layout-standard" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
27014
27182
|
}
|
|
27015
27183
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: StackedLayoutComponent, decorators: [{
|
|
27016
27184
|
type: Component,
|
|
27017
27185
|
args: [{
|
|
27018
27186
|
selector: 'smart-stacked-layout',
|
|
27019
27187
|
template: `
|
|
27188
|
+
<ng-template #content><ng-content /></ng-template>
|
|
27020
27189
|
@if (componentType()) {
|
|
27021
27190
|
<ng-container
|
|
27022
|
-
*ngComponentOutlet="
|
|
27191
|
+
*ngComponentOutlet="
|
|
27192
|
+
componentType();
|
|
27193
|
+
inputs: componentInputs();
|
|
27194
|
+
content: projectedContent()
|
|
27195
|
+
"
|
|
27023
27196
|
/>
|
|
27024
27197
|
} @else {
|
|
27025
27198
|
<smart-stacked-layout-standard [options]="options()" [class]="cssClass()">
|
|
27026
|
-
<ng-content />
|
|
27199
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
27027
27200
|
</smart-stacked-layout-standard>
|
|
27028
27201
|
}
|
|
27029
27202
|
`,
|
|
27030
27203
|
encapsulation: ViewEncapsulation.None,
|
|
27031
|
-
imports: [
|
|
27204
|
+
imports: [
|
|
27205
|
+
StackedLayoutStandardComponent,
|
|
27206
|
+
NgComponentOutlet,
|
|
27207
|
+
NgTemplateOutlet,
|
|
27208
|
+
],
|
|
27032
27209
|
host: { class: 'smart:contents' },
|
|
27033
27210
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27034
27211
|
}]
|
|
27035
|
-
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
27212
|
+
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], contentTemplate: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }] } });
|
|
27036
27213
|
|
|
27037
27214
|
class StackedListBaseComponent {
|
|
27038
27215
|
static smartType = 'stacked-list';
|