@covalent/core 11.0.0-beta.2 → 11.0.0-beta.4
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/breadcrumbs/index.d.ts +1 -3
- package/common/index.d.ts +6 -16
- package/dialogs/index.d.ts +4 -8
- package/fesm2022/covalent-core-breadcrumbs.mjs +11 -19
- package/fesm2022/covalent-core-breadcrumbs.mjs.map +1 -1
- package/fesm2022/covalent-core-common.mjs +28 -46
- package/fesm2022/covalent-core-common.mjs.map +1 -1
- package/fesm2022/covalent-core-dialogs.mjs +95 -60
- package/fesm2022/covalent-core-dialogs.mjs.map +1 -1
- package/fesm2022/covalent-core-file.mjs +45 -54
- package/fesm2022/covalent-core-file.mjs.map +1 -1
- package/fesm2022/covalent-core-json-formatter.mjs +9 -15
- package/fesm2022/covalent-core-json-formatter.mjs.map +1 -1
- package/fesm2022/covalent-core-layout.mjs +63 -160
- package/fesm2022/covalent-core-layout.mjs.map +1 -1
- package/fesm2022/covalent-core-loading.mjs +27 -50
- package/fesm2022/covalent-core-loading.mjs.map +1 -1
- package/fesm2022/covalent-core-message.mjs +11 -17
- package/fesm2022/covalent-core-message.mjs.map +1 -1
- package/fesm2022/covalent-core-search.mjs +36 -36
- package/fesm2022/covalent-core-search.mjs.map +1 -1
- package/fesm2022/covalent-core-side-sheet.mjs +39 -58
- package/fesm2022/covalent-core-side-sheet.mjs.map +1 -1
- package/file/index.d.ts +8 -11
- package/json-formatter/index.d.ts +1 -4
- package/layout/index.d.ts +17 -30
- package/loading/index.d.ts +75 -79
- package/message/index.d.ts +2 -3
- package/package.json +2 -2
- package/search/README.md +2 -24
- package/search/index.d.ts +7 -10
- package/side-sheet/index.d.ts +71 -76
@@ -1,16 +1,16 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { Component, Input, ViewChild,
|
2
|
+
import { Component, Input, ViewChild, inject, Renderer2, ElementRef, InjectionToken, Directive, HostListener, SecurityContext, ContentChildren, NgModule } from '@angular/core';
|
3
3
|
import { MatSidenav, MatSidenavContainer } from '@angular/material/sidenav';
|
4
4
|
import { mixinDisabled, tdCollapseAnimation } from '@covalent/core/common';
|
5
|
-
import * as
|
5
|
+
import * as i1 from '@angular/common';
|
6
6
|
import { CommonModule } from '@angular/common';
|
7
7
|
import { MatIcon } from '@angular/material/icon';
|
8
8
|
import { MatToolbar } from '@angular/material/toolbar';
|
9
|
-
import
|
10
|
-
import * as i2
|
9
|
+
import { Router } from '@angular/router';
|
10
|
+
import * as i2 from '@angular/material/card';
|
11
11
|
import { MatCardModule } from '@angular/material/card';
|
12
12
|
import { MatDivider } from '@angular/material/divider';
|
13
|
-
import
|
13
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
14
14
|
import { Subject } from 'rxjs';
|
15
15
|
import { takeUntil } from 'rxjs/operators';
|
16
16
|
import { MatIconButton } from '@angular/material/button';
|
@@ -128,9 +128,9 @@ class LayoutToggleBase {
|
|
128
128
|
/* tslint:disable-next-line */
|
129
129
|
const _TdLayoutToggleMixinBase = mixinDisabled(LayoutToggleBase);
|
130
130
|
class BaseLayoutToggleDirective extends _TdLayoutToggleMixinBase {
|
131
|
-
|
132
|
-
|
133
|
-
|
131
|
+
_renderer = inject(Renderer2);
|
132
|
+
_elementRef = inject(ElementRef);
|
133
|
+
_layout = inject(new InjectionToken('ILayoutTogglable'), { optional: true });
|
134
134
|
_toggleSubs;
|
135
135
|
_initialized = false;
|
136
136
|
_hideWhenOpened = false;
|
@@ -145,11 +145,8 @@ class BaseLayoutToggleDirective extends _TdLayoutToggleMixinBase {
|
|
145
145
|
this._toggleVisibility();
|
146
146
|
}
|
147
147
|
}
|
148
|
-
constructor(
|
148
|
+
constructor() {
|
149
149
|
super();
|
150
|
-
this._layout = _layout;
|
151
|
-
this._renderer = _renderer;
|
152
|
-
this._elementRef = _elementRef;
|
153
150
|
// if layout has not been provided
|
154
151
|
// show warn message
|
155
152
|
if (!this._layout) {
|
@@ -204,14 +201,14 @@ class BaseLayoutToggleDirective extends _TdLayoutToggleMixinBase {
|
|
204
201
|
/* tslint:disable-next-line */
|
205
202
|
console.warn('Covalent: Parent layout not found for layout toggle directive');
|
206
203
|
}
|
207
|
-
static ɵfac = function BaseLayoutToggleDirective_Factory(__ngFactoryType__) {
|
204
|
+
static ɵfac = function BaseLayoutToggleDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BaseLayoutToggleDirective)(); };
|
208
205
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseLayoutToggleDirective, hostBindings: function BaseLayoutToggleDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
209
206
|
i0.ɵɵlistener("click", function BaseLayoutToggleDirective_click_HostBindingHandler($event) { return ctx.clickListener($event); });
|
210
207
|
} }, inputs: { hideWhenOpened: "hideWhenOpened" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
211
208
|
}
|
212
209
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseLayoutToggleDirective, [{
|
213
210
|
type: Directive
|
214
|
-
}], () => [
|
211
|
+
}], () => [], { hideWhenOpened: [{
|
215
212
|
type: Input
|
216
213
|
}], clickListener: [{
|
217
214
|
type: HostListener,
|
@@ -222,13 +219,10 @@ class TdLayoutToggleDirective extends BaseLayoutToggleDirective {
|
|
222
219
|
set tdLayoutToggle(tdLayoutToggle) {
|
223
220
|
this.disabled = !(tdLayoutToggle === '' || tdLayoutToggle);
|
224
221
|
}
|
225
|
-
constructor(layout, renderer, elementRef) {
|
226
|
-
super(layout, renderer, elementRef);
|
227
|
-
}
|
228
222
|
onClick() {
|
229
|
-
this._layout
|
223
|
+
this._layout?.toggle();
|
230
224
|
}
|
231
|
-
static ɵfac = function TdLayoutToggleDirective_Factory(__ngFactoryType__) { return
|
225
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵTdLayoutToggleDirective_BaseFactory; return function TdLayoutToggleDirective_Factory(__ngFactoryType__) { return (ɵTdLayoutToggleDirective_BaseFactory || (ɵTdLayoutToggleDirective_BaseFactory = i0.ɵɵgetInheritedFactory(TdLayoutToggleDirective)))(__ngFactoryType__ || TdLayoutToggleDirective); }; })();
|
232
226
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdLayoutToggleDirective, selectors: [["", "tdLayoutToggle", ""]], inputs: { tdLayoutToggle: "tdLayoutToggle" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
233
227
|
}
|
234
228
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutToggleDirective, [{
|
@@ -236,25 +230,17 @@ class TdLayoutToggleDirective extends BaseLayoutToggleDirective {
|
|
236
230
|
args: [{
|
237
231
|
selector: '[tdLayoutToggle]',
|
238
232
|
}]
|
239
|
-
}],
|
240
|
-
type: Optional
|
241
|
-
}, {
|
242
|
-
type: Inject,
|
243
|
-
args: [forwardRef(() => TdLayoutComponent)]
|
244
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }], { tdLayoutToggle: [{
|
233
|
+
}], null, { tdLayoutToggle: [{
|
245
234
|
type: Input
|
246
235
|
}] }); })();
|
247
236
|
class TdLayoutCloseDirective extends BaseLayoutToggleDirective {
|
248
237
|
set tdLayoutClose(tdLayoutClose) {
|
249
238
|
this.disabled = !(tdLayoutClose === '' || tdLayoutClose);
|
250
239
|
}
|
251
|
-
constructor(layout, renderer, elementRef) {
|
252
|
-
super(layout, renderer, elementRef);
|
253
|
-
}
|
254
240
|
onClick() {
|
255
|
-
this._layout
|
241
|
+
this._layout?.close();
|
256
242
|
}
|
257
|
-
static ɵfac = function TdLayoutCloseDirective_Factory(__ngFactoryType__) { return
|
243
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵTdLayoutCloseDirective_BaseFactory; return function TdLayoutCloseDirective_Factory(__ngFactoryType__) { return (ɵTdLayoutCloseDirective_BaseFactory || (ɵTdLayoutCloseDirective_BaseFactory = i0.ɵɵgetInheritedFactory(TdLayoutCloseDirective)))(__ngFactoryType__ || TdLayoutCloseDirective); }; })();
|
258
244
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdLayoutCloseDirective, selectors: [["", "tdLayoutClose", ""]], inputs: { tdLayoutClose: "tdLayoutClose" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
259
245
|
}
|
260
246
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutCloseDirective, [{
|
@@ -262,25 +248,17 @@ class TdLayoutCloseDirective extends BaseLayoutToggleDirective {
|
|
262
248
|
args: [{
|
263
249
|
selector: '[tdLayoutClose]',
|
264
250
|
}]
|
265
|
-
}],
|
266
|
-
type: Optional
|
267
|
-
}, {
|
268
|
-
type: Inject,
|
269
|
-
args: [forwardRef(() => TdLayoutComponent)]
|
270
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }], { tdLayoutClose: [{
|
251
|
+
}], null, { tdLayoutClose: [{
|
271
252
|
type: Input
|
272
253
|
}] }); })();
|
273
254
|
class TdLayoutOpenDirective extends BaseLayoutToggleDirective {
|
274
255
|
set tdLayoutClose(tdLayoutOpen) {
|
275
256
|
this.disabled = !(tdLayoutOpen === '' || tdLayoutOpen);
|
276
257
|
}
|
277
|
-
constructor(layout, renderer, elementRef) {
|
278
|
-
super(layout, renderer, elementRef);
|
279
|
-
}
|
280
258
|
onClick() {
|
281
|
-
this._layout
|
259
|
+
this._layout?.open();
|
282
260
|
}
|
283
|
-
static ɵfac = function TdLayoutOpenDirective_Factory(__ngFactoryType__) { return
|
261
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵTdLayoutOpenDirective_BaseFactory; return function TdLayoutOpenDirective_Factory(__ngFactoryType__) { return (ɵTdLayoutOpenDirective_BaseFactory || (ɵTdLayoutOpenDirective_BaseFactory = i0.ɵɵgetInheritedFactory(TdLayoutOpenDirective)))(__ngFactoryType__ || TdLayoutOpenDirective); }; })();
|
284
262
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdLayoutOpenDirective, selectors: [["", "tdLayoutOpen", ""]], inputs: { tdLayoutClose: [0, "tdLayoutOpen", "tdLayoutClose"] }, features: [i0.ɵɵInheritDefinitionFeature] });
|
285
263
|
}
|
286
264
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutOpenDirective, [{
|
@@ -288,12 +266,7 @@ class TdLayoutOpenDirective extends BaseLayoutToggleDirective {
|
|
288
266
|
args: [{
|
289
267
|
selector: '[tdLayoutOpen]',
|
290
268
|
}]
|
291
|
-
}],
|
292
|
-
type: Optional
|
293
|
-
}, {
|
294
|
-
type: Inject,
|
295
|
-
args: [forwardRef(() => TdLayoutComponent)]
|
296
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }], { tdLayoutClose: [{
|
269
|
+
}], null, { tdLayoutClose: [{
|
297
270
|
type: Input,
|
298
271
|
args: ['tdLayoutOpen']
|
299
272
|
}] }); })();
|
@@ -341,7 +314,7 @@ function TdLayoutNavComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
341
314
|
i0.ɵɵproperty("ngIf", ctx_r1.toolbarTitle);
|
342
315
|
} }
|
343
316
|
class TdLayoutNavComponent {
|
344
|
-
_router;
|
317
|
+
_router = inject(Router, { optional: true });
|
345
318
|
/**
|
346
319
|
* toolbarTitle?: string
|
347
320
|
*
|
@@ -380,15 +353,12 @@ class TdLayoutNavComponent {
|
|
380
353
|
get routerEnabled() {
|
381
354
|
return !!this._router && !!this.navigationRoute;
|
382
355
|
}
|
383
|
-
constructor(_router) {
|
384
|
-
this._router = _router;
|
385
|
-
}
|
386
356
|
handleNavigationClick() {
|
387
357
|
if (this.routerEnabled && this.navigationRoute) {
|
388
|
-
this._router
|
358
|
+
this._router?.navigateByUrl(this.navigationRoute);
|
389
359
|
}
|
390
360
|
}
|
391
|
-
static ɵfac = function TdLayoutNavComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdLayoutNavComponent)(
|
361
|
+
static ɵfac = function TdLayoutNavComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdLayoutNavComponent)(); };
|
392
362
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdLayoutNavComponent, selectors: [["td-layout-nav"]], inputs: { toolbarTitle: "toolbarTitle", icon: "icon", logo: "logo", color: "color", navigationRoute: "navigationRoute" }, ngContentSelectors: _c1$4, decls: 8, vars: 2, consts: [[1, "td-layout-nav-wrapper"], [1, "td-layout-toolbar", 3, "color"], ["class", "td-layout-nav-toolbar-content", 3, "cursor-pointer", "click", 4, "ngIf"], ["cdkScrollable", "", 1, "td-layout-nav-content"], [1, "td-layout-nav-toolbar-content", 3, "click"], [4, "ngIf"], ["class", "mat-icon-logo", 3, "svgIcon", 4, "ngIf"], [1, "mat-icon-logo", 3, "svgIcon"]], template: function TdLayoutNavComponent_Template(rf, ctx) { if (rf & 1) {
|
393
363
|
i0.ɵɵprojectionDef(_c0$5);
|
394
364
|
i0.ɵɵelementStart(0, "div", 0)(1, "mat-toolbar", 1);
|
@@ -406,14 +376,12 @@ class TdLayoutNavComponent {
|
|
406
376
|
i0.ɵɵproperty("color", ctx.color);
|
407
377
|
i0.ɵɵadvance(2);
|
408
378
|
i0.ɵɵproperty("ngIf", ctx.icon || ctx.logo || ctx.toolbarTitle);
|
409
|
-
} }, dependencies: [CommonModule,
|
379
|
+
} }, dependencies: [CommonModule, i1.NgIf, MatToolbar, MatIcon], styles: [".td-menu-button[_ngcontent-%COMP%]{margin-left:0} [dir=rtl] .td-menu-button{margin-right:0;margin-left:6px}[_nghost-%COMP%]{display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}[_nghost-%COMP%] .td-layout-nav-wrapper[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;margin:0;width:100%;min-height:100%;height:100%}[_nghost-%COMP%] .td-layout-nav-wrapper[_ngcontent-%COMP%] .td-layout-nav-toolbar-content[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}[_nghost-%COMP%] .td-layout-nav-wrapper[_ngcontent-%COMP%] .td-layout-nav-content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%]{z-index:2;box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}"] });
|
410
380
|
}
|
411
381
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavComponent, [{
|
412
382
|
type: Component,
|
413
383
|
args: [{ selector: 'td-layout-nav', imports: [CommonModule, MatToolbar, MatIcon], template: "<div class=\"td-layout-nav-wrapper\">\n <mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\">\n <ng-content select=\"[td-menu-button]\"></ng-content>\n <span\n *ngIf=\"icon || logo || toolbarTitle\"\n [class.cursor-pointer]=\"routerEnabled\"\n (click)=\"handleNavigationClick()\"\n class=\"td-layout-nav-toolbar-content\"\n >\n <mat-icon *ngIf=\"icon\">{{ icon }}</mat-icon>\n <mat-icon\n *ngIf=\"logo && !icon\"\n class=\"mat-icon-logo\"\n [svgIcon]=\"logo\"\n ></mat-icon>\n <span *ngIf=\"toolbarTitle\">{{ toolbarTitle }}</span>\n </span>\n <ng-content select=\"[td-toolbar-content]\"></ng-content>\n </mat-toolbar>\n <div class=\"td-layout-nav-content\" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"td-layout-footer\"></ng-content>\n</div>\n", styles: [".td-menu-button{margin-left:0}::ng-deep [dir=rtl] .td-menu-button{margin-right:0;margin-left:6px}:host{display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host .td-layout-nav-wrapper{flex-direction:column;box-sizing:border-box;display:flex;margin:0;width:100%;min-height:100%;height:100%}:host .td-layout-nav-wrapper .td-layout-nav-toolbar-content{flex-direction:row;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}:host .td-layout-nav-wrapper .td-layout-nav-content{flex-direction:column;box-sizing:border-box;display:flex;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host mat-toolbar{z-index:2;box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}\n"] }]
|
414
|
-
}],
|
415
|
-
type: Optional
|
416
|
-
}] }], { toolbarTitle: [{
|
384
|
+
}], null, { toolbarTitle: [{
|
417
385
|
type: Input
|
418
386
|
}], icon: [{
|
419
387
|
type: Input
|
@@ -469,7 +437,7 @@ function TdLayoutNavListComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
469
437
|
i0.ɵɵproperty("ngIf", ctx_r1.toolbarTitle);
|
470
438
|
} }
|
471
439
|
class TdLayoutNavListComponent {
|
472
|
-
_router;
|
440
|
+
_router = inject(Router, { optional: true });
|
473
441
|
sidenav;
|
474
442
|
/**
|
475
443
|
* toolbarTitle?: string
|
@@ -555,12 +523,9 @@ class TdLayoutNavListComponent {
|
|
555
523
|
get routerEnabled() {
|
556
524
|
return !!this._router && !!this.navigationRoute;
|
557
525
|
}
|
558
|
-
constructor(_router) {
|
559
|
-
this._router = _router;
|
560
|
-
}
|
561
526
|
handleNavigationClick() {
|
562
527
|
if (this.routerEnabled && this.navigationRoute) {
|
563
|
-
this._router
|
528
|
+
this._router?.navigateByUrl(this.navigationRoute);
|
564
529
|
}
|
565
530
|
}
|
566
531
|
/**
|
@@ -581,7 +546,7 @@ class TdLayoutNavListComponent {
|
|
581
546
|
close() {
|
582
547
|
return this.sidenav.close();
|
583
548
|
}
|
584
|
-
static ɵfac = function TdLayoutNavListComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdLayoutNavListComponent)(
|
549
|
+
static ɵfac = function TdLayoutNavListComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdLayoutNavListComponent)(); };
|
585
550
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdLayoutNavListComponent, selectors: [["td-layout-nav-list"]], viewQuery: function TdLayoutNavListComponent_Query(rf, ctx) { if (rf & 1) {
|
586
551
|
i0.ɵɵviewQuery(MatSidenav, 7);
|
587
552
|
} if (rf & 2) {
|
@@ -618,14 +583,12 @@ class TdLayoutNavListComponent {
|
|
618
583
|
i0.ɵɵproperty("ngIf", ctx.icon || ctx.logo || ctx.toolbarTitle);
|
619
584
|
i0.ɵɵadvance(5);
|
620
585
|
i0.ɵɵproperty("color", ctx.color);
|
621
|
-
} }, dependencies: [CommonModule,
|
586
|
+
} }, dependencies: [CommonModule, i1.NgIf, MatSidenav, MatSidenavContainer, MatToolbar, MatIcon], styles: ["[_nghost-%COMP%]{margin:0;width:100%;min-height:100%;height:100%;overflow:hidden;flex-direction:column;box-sizing:border-box;display:flex;flex:1}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] > .mat-sidenav-container[_ngcontent-%COMP%] > mat-sidenav.mat-drawer-side[_ngcontent-%COMP%]{border-right:0}[dir=rtl] [_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] > .mat-sidenav-container[_ngcontent-%COMP%] > mat-sidenav.mat-drawer-side[_ngcontent-%COMP%]{border-left:0}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] .td-layout-nav-list-toolbar-content[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] .td-layout-nav-list-content[_ngcontent-%COMP%]{text-align:start;flex:1;display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] .td-layout-nav-list-main[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;margin:0;width:100%;min-height:100%;height:100%;position:relative;overflow:auto}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] .td-layout-nav-list-main[_ngcontent-%COMP%] .td-layout-nav-list-content[_ngcontent-%COMP%]{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;flex:1}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] mat-sidenav-container.td-layout-nav-list[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] mat-sidenav-container.td-layout-nav-list[_ngcontent-%COMP%] > mat-sidenav.mat-drawer-opened[_ngcontent-%COMP%], [_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] mat-sidenav-container.td-layout-nav-list[_ngcontent-%COMP%] > mat-sidenav.mat-drawer-opening[_ngcontent-%COMP%], [_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] mat-sidenav-container.td-layout-nav-list[_ngcontent-%COMP%] > mat-sidenav.mat-drawer-closed[_ngcontent-%COMP%], [_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] mat-sidenav-container.td-layout-nav-list[_ngcontent-%COMP%] > mat-sidenav.mat-drawer-closing[_ngcontent-%COMP%]{box-shadow:none}[_nghost-%COMP%] mat-sidenav-container.td-layout-nav-list>.mat-drawer-content{flex-grow:1}[_nghost-%COMP%] mat-sidenav-container.td-layout-nav-list>.mat-drawer>.mat-drawer-inner-container{box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;box-sizing:border-box;display:flex;flex-direction:column}"] });
|
622
587
|
}
|
623
588
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavListComponent, [{
|
624
589
|
type: Component,
|
625
590
|
args: [{ selector: 'td-layout-nav-list', imports: [CommonModule, MatSidenav, MatSidenavContainer, MatToolbar, MatIcon], template: "<div class=\"td-layout-nav-list-wrapper\">\n <mat-sidenav-container\n fullscreen\n [autosize]=\"containerAutosize\"\n class=\"td-layout-nav-list\"\n >\n <mat-sidenav\n #sidenav\n position=\"start\"\n [mode]=\"mode\"\n [opened]=\"opened\"\n [disableClose]=\"disableClose\"\n [style.max-width]=\"sidenavWidth\"\n [style.min-width]=\"sidenavWidth\"\n >\n <mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\">\n <ng-content select=\"[td-menu-button]\"></ng-content>\n <span\n *ngIf=\"icon || logo || toolbarTitle\"\n class=\"td-layout-nav-list-toolbar-content\"\n [class.cursor-pointer]=\"routerEnabled\"\n (click)=\"handleNavigationClick()\"\n >\n <mat-icon *ngIf=\"icon\">{{ icon }}</mat-icon>\n <mat-icon\n *ngIf=\"logo && !icon\"\n class=\"mat-icon-logo\"\n [svgIcon]=\"logo\"\n ></mat-icon>\n <span *ngIf=\"toolbarTitle\">{{ toolbarTitle }}</span>\n </span>\n <ng-content select=\"[td-sidenav-toolbar-content]\"></ng-content>\n </mat-toolbar>\n <div class=\"td-layout-nav-list-content\" cdkScrollable>\n <ng-content select=\"[td-sidenav-content]\"></ng-content>\n </div>\n </mat-sidenav>\n <div class=\"td-layout-nav-list-main\">\n <mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\">\n <ng-content select=\"[td-toolbar-content]\"></ng-content>\n </mat-toolbar>\n <div class=\"td-layout-nav-list-content\" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"td-layout-footer-inner\"></ng-content>\n </div>\n </mat-sidenav-container>\n</div>\n<ng-content select=\"td-layout-footer\"></ng-content>\n", styles: [":host{margin:0;width:100%;min-height:100%;height:100%;overflow:hidden;flex-direction:column;box-sizing:border-box;display:flex;flex:1}:host .td-layout-nav-list-wrapper>.mat-sidenav-container>mat-sidenav.mat-drawer-side{border-right:0}[dir=rtl] :host .td-layout-nav-list-wrapper>.mat-sidenav-container>mat-sidenav.mat-drawer-side{border-left:0}:host .td-layout-nav-list-wrapper{flex-direction:column;box-sizing:border-box;display:flex;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-nav-list-wrapper .td-layout-nav-list-toolbar-content{flex-direction:row;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}:host .td-layout-nav-list-wrapper .td-layout-nav-list-content{text-align:start;flex:1;display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-nav-list-wrapper .td-layout-nav-list-main{flex-direction:column;box-sizing:border-box;display:flex;margin:0;width:100%;min-height:100%;height:100%;position:relative;overflow:auto}:host .td-layout-nav-list-wrapper .td-layout-nav-list-main .td-layout-nav-list-content{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;flex:1}:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list{flex:1}:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-opened,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-opening,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-closed,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-closing{box-shadow:none}:host ::ng-deep mat-sidenav-container.td-layout-nav-list>.mat-drawer-content{flex-grow:1}:host ::ng-deep mat-sidenav-container.td-layout-nav-list>.mat-drawer>.mat-drawer-inner-container{box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;box-sizing:border-box;display:flex;flex-direction:column}\n"] }]
|
626
|
-
}],
|
627
|
-
type: Optional
|
628
|
-
}] }], { sidenav: [{
|
591
|
+
}], null, { sidenav: [{
|
629
592
|
type: ViewChild,
|
630
593
|
args: [MatSidenav, { static: true }]
|
631
594
|
}], toolbarTitle: [{
|
@@ -647,19 +610,16 @@ class TdLayoutNavListComponent {
|
|
647
610
|
}], navigationRoute: [{
|
648
611
|
type: Input
|
649
612
|
}] }); })();
|
650
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdLayoutNavListComponent, { className: "TdLayoutNavListComponent", filePath: "layout-nav-list/layout-nav-list.component.ts", lineNumber:
|
613
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdLayoutNavListComponent, { className: "TdLayoutNavListComponent", filePath: "layout-nav-list/layout-nav-list.component.ts", lineNumber: 21 }); })();
|
651
614
|
|
652
615
|
class TdLayoutNavListToggleDirective extends BaseLayoutToggleDirective {
|
653
616
|
set tdLayoutNavListToggle(tdLayoutNavListToggle) {
|
654
617
|
this.disabled = !(tdLayoutNavListToggle === '' || tdLayoutNavListToggle);
|
655
618
|
}
|
656
|
-
constructor(layout, renderer, elementRef) {
|
657
|
-
super(layout, renderer, elementRef);
|
658
|
-
}
|
659
619
|
onClick() {
|
660
|
-
this._layout
|
620
|
+
this._layout?.toggle();
|
661
621
|
}
|
662
|
-
static ɵfac = function TdLayoutNavListToggleDirective_Factory(__ngFactoryType__) { return
|
622
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵTdLayoutNavListToggleDirective_BaseFactory; return function TdLayoutNavListToggleDirective_Factory(__ngFactoryType__) { return (ɵTdLayoutNavListToggleDirective_BaseFactory || (ɵTdLayoutNavListToggleDirective_BaseFactory = i0.ɵɵgetInheritedFactory(TdLayoutNavListToggleDirective)))(__ngFactoryType__ || TdLayoutNavListToggleDirective); }; })();
|
663
623
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdLayoutNavListToggleDirective, selectors: [["", "tdLayoutNavListToggle", ""]], inputs: { tdLayoutNavListToggle: "tdLayoutNavListToggle" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
664
624
|
}
|
665
625
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavListToggleDirective, [{
|
@@ -667,25 +627,17 @@ class TdLayoutNavListToggleDirective extends BaseLayoutToggleDirective {
|
|
667
627
|
args: [{
|
668
628
|
selector: '[tdLayoutNavListToggle]',
|
669
629
|
}]
|
670
|
-
}],
|
671
|
-
type: Optional
|
672
|
-
}, {
|
673
|
-
type: Inject,
|
674
|
-
args: [forwardRef(() => TdLayoutNavListComponent)]
|
675
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }], { tdLayoutNavListToggle: [{
|
630
|
+
}], null, { tdLayoutNavListToggle: [{
|
676
631
|
type: Input
|
677
632
|
}] }); })();
|
678
633
|
class TdLayoutNavListCloseDirective extends BaseLayoutToggleDirective {
|
679
634
|
set tdLayoutNavListClose(tdLayoutNavListClose) {
|
680
635
|
this.disabled = !(tdLayoutNavListClose === '' || tdLayoutNavListClose);
|
681
636
|
}
|
682
|
-
constructor(layout, renderer, elementRef) {
|
683
|
-
super(layout, renderer, elementRef);
|
684
|
-
}
|
685
637
|
onClick() {
|
686
|
-
this._layout
|
638
|
+
this._layout?.close();
|
687
639
|
}
|
688
|
-
static ɵfac = function TdLayoutNavListCloseDirective_Factory(__ngFactoryType__) { return
|
640
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵTdLayoutNavListCloseDirective_BaseFactory; return function TdLayoutNavListCloseDirective_Factory(__ngFactoryType__) { return (ɵTdLayoutNavListCloseDirective_BaseFactory || (ɵTdLayoutNavListCloseDirective_BaseFactory = i0.ɵɵgetInheritedFactory(TdLayoutNavListCloseDirective)))(__ngFactoryType__ || TdLayoutNavListCloseDirective); }; })();
|
689
641
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdLayoutNavListCloseDirective, selectors: [["", "tdLayoutNavListClose", ""]], inputs: { tdLayoutNavListClose: "tdLayoutNavListClose" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
690
642
|
}
|
691
643
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavListCloseDirective, [{
|
@@ -693,25 +645,17 @@ class TdLayoutNavListCloseDirective extends BaseLayoutToggleDirective {
|
|
693
645
|
args: [{
|
694
646
|
selector: '[tdLayoutNavListClose]',
|
695
647
|
}]
|
696
|
-
}],
|
697
|
-
type: Optional
|
698
|
-
}, {
|
699
|
-
type: Inject,
|
700
|
-
args: [forwardRef(() => TdLayoutNavListComponent)]
|
701
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }], { tdLayoutNavListClose: [{
|
648
|
+
}], null, { tdLayoutNavListClose: [{
|
702
649
|
type: Input
|
703
650
|
}] }); })();
|
704
651
|
class TdLayoutNavListOpenDirective extends BaseLayoutToggleDirective {
|
705
652
|
set tdLayoutNavListOpen(tdLayoutNavListOpen) {
|
706
653
|
this.disabled = !(tdLayoutNavListOpen === '' || tdLayoutNavListOpen);
|
707
654
|
}
|
708
|
-
constructor(layout, renderer, elementRef) {
|
709
|
-
super(layout, renderer, elementRef);
|
710
|
-
}
|
711
655
|
onClick() {
|
712
|
-
this._layout
|
656
|
+
this._layout?.open();
|
713
657
|
}
|
714
|
-
static ɵfac = function TdLayoutNavListOpenDirective_Factory(__ngFactoryType__) { return
|
658
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵTdLayoutNavListOpenDirective_BaseFactory; return function TdLayoutNavListOpenDirective_Factory(__ngFactoryType__) { return (ɵTdLayoutNavListOpenDirective_BaseFactory || (ɵTdLayoutNavListOpenDirective_BaseFactory = i0.ɵɵgetInheritedFactory(TdLayoutNavListOpenDirective)))(__ngFactoryType__ || TdLayoutNavListOpenDirective); }; })();
|
715
659
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdLayoutNavListOpenDirective, selectors: [["", "tdLayoutNavListOpen", ""]], inputs: { tdLayoutNavListOpen: "tdLayoutNavListOpen" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
716
660
|
}
|
717
661
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavListOpenDirective, [{
|
@@ -719,12 +663,7 @@ class TdLayoutNavListOpenDirective extends BaseLayoutToggleDirective {
|
|
719
663
|
args: [{
|
720
664
|
selector: '[tdLayoutNavListOpen]',
|
721
665
|
}]
|
722
|
-
}],
|
723
|
-
type: Optional
|
724
|
-
}, {
|
725
|
-
type: Inject,
|
726
|
-
args: [forwardRef(() => TdLayoutNavListComponent)]
|
727
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }], { tdLayoutNavListOpen: [{
|
666
|
+
}], null, { tdLayoutNavListOpen: [{
|
728
667
|
type: Input
|
729
668
|
}] }); })();
|
730
669
|
|
@@ -801,7 +740,7 @@ class TdLayoutCardOverComponent {
|
|
801
740
|
i0.ɵɵproperty("ngIf", ctx.cardSubtitle);
|
802
741
|
i0.ɵɵadvance();
|
803
742
|
i0.ɵɵproperty("ngIf", ctx.cardTitle || ctx.cardSubtitle);
|
804
|
-
} }, dependencies: [CommonModule,
|
743
|
+
} }, dependencies: [CommonModule, i1.NgIf, MatToolbar, MatCardModule, i2.MatCard, i2.MatCardContent, i2.MatCardHeader, i2.MatCardSubtitle, i2.MatCardTitle, MatDivider], styles: ["[_nghost-%COMP%]{position:relative;display:block;z-index:2;width:100%;min-height:100%;height:100%}[_nghost-%COMP%] [td-after-card][_ngcontent-%COMP%]{display:block}.td-layout-card-over-wrapper[_ngcontent-%COMP%]{margin:-64px 0;width:100%;min-height:100%;height:100%}@media (min-width: 600px){.td-layout-card-over-wrapper[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;align-items:flex-start;align-content:flex-start;justify-content:center}.td-layout-card-over-wrapper[_ngcontent-%COMP%] .td-layout-card-over[_ngcontent-%COMP%]{max-height:100%;box-sizing:border-box}}@media (max-width: 599px){.td-layout-card-over-wrapper[_ngcontent-%COMP%] .td-layout-card-over[_ngcontent-%COMP%]{max-width:100%!important}}"] });
|
805
744
|
}
|
806
745
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutCardOverComponent, [{
|
807
746
|
type: Component,
|
@@ -935,13 +874,10 @@ class TdLayoutManageListToggleDirective extends BaseLayoutToggleDirective {
|
|
935
874
|
set tdLayoutManageListToggle(tdLayoutManageListToggle) {
|
936
875
|
this.disabled = !(tdLayoutManageListToggle === '' || tdLayoutManageListToggle);
|
937
876
|
}
|
938
|
-
constructor(layout, renderer, elementRef) {
|
939
|
-
super(layout, renderer, elementRef);
|
940
|
-
}
|
941
877
|
onClick() {
|
942
|
-
this._layout
|
878
|
+
this._layout?.toggle();
|
943
879
|
}
|
944
|
-
static ɵfac = function TdLayoutManageListToggleDirective_Factory(__ngFactoryType__) { return
|
880
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵTdLayoutManageListToggleDirective_BaseFactory; return function TdLayoutManageListToggleDirective_Factory(__ngFactoryType__) { return (ɵTdLayoutManageListToggleDirective_BaseFactory || (ɵTdLayoutManageListToggleDirective_BaseFactory = i0.ɵɵgetInheritedFactory(TdLayoutManageListToggleDirective)))(__ngFactoryType__ || TdLayoutManageListToggleDirective); }; })();
|
945
881
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdLayoutManageListToggleDirective, selectors: [["", "tdLayoutManageListToggle", ""]], inputs: { tdLayoutManageListToggle: "tdLayoutManageListToggle" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
946
882
|
}
|
947
883
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutManageListToggleDirective, [{
|
@@ -949,25 +885,17 @@ class TdLayoutManageListToggleDirective extends BaseLayoutToggleDirective {
|
|
949
885
|
args: [{
|
950
886
|
selector: '[tdLayoutManageListToggle]',
|
951
887
|
}]
|
952
|
-
}],
|
953
|
-
type: Optional
|
954
|
-
}, {
|
955
|
-
type: Inject,
|
956
|
-
args: [forwardRef(() => TdLayoutManageListComponent)]
|
957
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }], { tdLayoutManageListToggle: [{
|
888
|
+
}], null, { tdLayoutManageListToggle: [{
|
958
889
|
type: Input
|
959
890
|
}] }); })();
|
960
891
|
class TdLayoutManageListCloseDirective extends BaseLayoutToggleDirective {
|
961
892
|
set tdLayoutManageListClose(tdLayoutManageListClose) {
|
962
893
|
this.disabled = !(tdLayoutManageListClose === '' || tdLayoutManageListClose);
|
963
894
|
}
|
964
|
-
constructor(layout, renderer, elementRef) {
|
965
|
-
super(layout, renderer, elementRef);
|
966
|
-
}
|
967
895
|
onClick() {
|
968
|
-
this._layout
|
896
|
+
this._layout?.close();
|
969
897
|
}
|
970
|
-
static ɵfac = function TdLayoutManageListCloseDirective_Factory(__ngFactoryType__) { return
|
898
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵTdLayoutManageListCloseDirective_BaseFactory; return function TdLayoutManageListCloseDirective_Factory(__ngFactoryType__) { return (ɵTdLayoutManageListCloseDirective_BaseFactory || (ɵTdLayoutManageListCloseDirective_BaseFactory = i0.ɵɵgetInheritedFactory(TdLayoutManageListCloseDirective)))(__ngFactoryType__ || TdLayoutManageListCloseDirective); }; })();
|
971
899
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdLayoutManageListCloseDirective, selectors: [["", "tdLayoutManageListClose", ""]], inputs: { tdLayoutManageListClose: "tdLayoutManageListClose" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
972
900
|
}
|
973
901
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutManageListCloseDirective, [{
|
@@ -975,25 +903,17 @@ class TdLayoutManageListCloseDirective extends BaseLayoutToggleDirective {
|
|
975
903
|
args: [{
|
976
904
|
selector: '[tdLayoutManageListClose]',
|
977
905
|
}]
|
978
|
-
}],
|
979
|
-
type: Optional
|
980
|
-
}, {
|
981
|
-
type: Inject,
|
982
|
-
args: [forwardRef(() => TdLayoutManageListComponent)]
|
983
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }], { tdLayoutManageListClose: [{
|
906
|
+
}], null, { tdLayoutManageListClose: [{
|
984
907
|
type: Input
|
985
908
|
}] }); })();
|
986
909
|
class TdLayoutManageListOpenDirective extends BaseLayoutToggleDirective {
|
987
910
|
set tdLayoutManageListOpen(tdLayoutManageListOpen) {
|
988
911
|
this.disabled = !(tdLayoutManageListOpen === '' || tdLayoutManageListOpen);
|
989
912
|
}
|
990
|
-
constructor(layout, renderer, elementRef) {
|
991
|
-
super(layout, renderer, elementRef);
|
992
|
-
}
|
993
913
|
onClick() {
|
994
|
-
this._layout
|
914
|
+
this._layout?.open();
|
995
915
|
}
|
996
|
-
static ɵfac = function TdLayoutManageListOpenDirective_Factory(__ngFactoryType__) { return
|
916
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵTdLayoutManageListOpenDirective_BaseFactory; return function TdLayoutManageListOpenDirective_Factory(__ngFactoryType__) { return (ɵTdLayoutManageListOpenDirective_BaseFactory || (ɵTdLayoutManageListOpenDirective_BaseFactory = i0.ɵɵgetInheritedFactory(TdLayoutManageListOpenDirective)))(__ngFactoryType__ || TdLayoutManageListOpenDirective); }; })();
|
997
917
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdLayoutManageListOpenDirective, selectors: [["", "tdLayoutManageListOpen", ""]], inputs: { tdLayoutManageListOpen: "tdLayoutManageListOpen" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
998
918
|
}
|
999
919
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutManageListOpenDirective, [{
|
@@ -1001,19 +921,14 @@ class TdLayoutManageListOpenDirective extends BaseLayoutToggleDirective {
|
|
1001
921
|
args: [{
|
1002
922
|
selector: '[tdLayoutManageListOpen]',
|
1003
923
|
}]
|
1004
|
-
}],
|
1005
|
-
type: Optional
|
1006
|
-
}, {
|
1007
|
-
type: Inject,
|
1008
|
-
args: [forwardRef(() => TdLayoutManageListComponent)]
|
1009
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }], { tdLayoutManageListOpen: [{
|
924
|
+
}], null, { tdLayoutManageListOpen: [{
|
1010
925
|
type: Input
|
1011
926
|
}] }); })();
|
1012
927
|
|
1013
928
|
const _c0$1 = ["*"];
|
1014
929
|
class TdLayoutFooterComponent {
|
1015
|
-
_renderer;
|
1016
|
-
_elementRef;
|
930
|
+
_renderer = inject(Renderer2);
|
931
|
+
_elementRef = inject(ElementRef);
|
1017
932
|
_color;
|
1018
933
|
/**
|
1019
934
|
* color?: 'accent' | 'primary' | 'warn'
|
@@ -1030,12 +945,10 @@ class TdLayoutFooterComponent {
|
|
1030
945
|
get color() {
|
1031
946
|
return this._color;
|
1032
947
|
}
|
1033
|
-
constructor(
|
1034
|
-
this._renderer = _renderer;
|
1035
|
-
this._elementRef = _elementRef;
|
948
|
+
constructor() {
|
1036
949
|
this._renderer.addClass(this._elementRef.nativeElement, 'td-layout-footer');
|
1037
950
|
}
|
1038
|
-
static ɵfac = function TdLayoutFooterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdLayoutFooterComponent)(
|
951
|
+
static ɵfac = function TdLayoutFooterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdLayoutFooterComponent)(); };
|
1039
952
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdLayoutFooterComponent, selectors: [["td-layout-footer"], ["td-layout-footer-inner"]], inputs: { color: "color" }, ngContentSelectors: _c0$1, decls: 1, vars: 0, template: function TdLayoutFooterComponent_Template(rf, ctx) { if (rf & 1) {
|
1040
953
|
i0.ɵɵprojectionDef();
|
1041
954
|
i0.ɵɵprojection(0);
|
@@ -1044,7 +957,7 @@ class TdLayoutFooterComponent {
|
|
1044
957
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutFooterComponent, [{
|
1045
958
|
type: Component,
|
1046
959
|
args: [{ selector: 'td-layout-footer,td-layout-footer-inner', template: "<ng-content></ng-content>\n", styles: [":host{display:block;padding:10px 16px}\n"] }]
|
1047
|
-
}], () => [
|
960
|
+
}], () => [], { color: [{
|
1048
961
|
type: Input
|
1049
962
|
}] }); })();
|
1050
963
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdLayoutFooterComponent, { className: "TdLayoutFooterComponent", filePath: "layout-footer/layout-footer.component.ts", lineNumber: 9 }); })();
|
@@ -1179,9 +1092,9 @@ class TdNavigationDrawerToolbarDirective {
|
|
1179
1092
|
}]
|
1180
1093
|
}], null, null); })();
|
1181
1094
|
class TdNavigationDrawerComponent {
|
1182
|
-
_layout;
|
1183
|
-
_router;
|
1184
|
-
_sanitize;
|
1095
|
+
_layout = inject(TdLayoutComponent);
|
1096
|
+
_router = inject(Router, { optional: true });
|
1097
|
+
_sanitize = inject(DomSanitizer);
|
1185
1098
|
_menuToggled = false;
|
1186
1099
|
_backgroundImage;
|
1187
1100
|
_destroy$ = new Subject();
|
@@ -1281,11 +1194,6 @@ class TdNavigationDrawerComponent {
|
|
1281
1194
|
get routerEnabled() {
|
1282
1195
|
return !!this._router && !!this.navigationRoute;
|
1283
1196
|
}
|
1284
|
-
constructor(_layout, _router, _sanitize) {
|
1285
|
-
this._layout = _layout;
|
1286
|
-
this._router = _router;
|
1287
|
-
this._sanitize = _sanitize;
|
1288
|
-
}
|
1289
1197
|
ngOnInit() {
|
1290
1198
|
this._layout.sidenav.openedChange
|
1291
1199
|
.pipe(takeUntil(this._destroy$))
|
@@ -1305,7 +1213,7 @@ class TdNavigationDrawerComponent {
|
|
1305
1213
|
}
|
1306
1214
|
handleNavigationClick() {
|
1307
1215
|
if (this.routerEnabled && this.navigationRoute) {
|
1308
|
-
this._router
|
1216
|
+
this._router?.navigateByUrl(this.navigationRoute);
|
1309
1217
|
this.close();
|
1310
1218
|
}
|
1311
1219
|
}
|
@@ -1327,7 +1235,7 @@ class TdNavigationDrawerComponent {
|
|
1327
1235
|
close() {
|
1328
1236
|
return this._layout.close();
|
1329
1237
|
}
|
1330
|
-
static ɵfac = function TdNavigationDrawerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdNavigationDrawerComponent)(
|
1238
|
+
static ɵfac = function TdNavigationDrawerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdNavigationDrawerComponent)(); };
|
1331
1239
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdNavigationDrawerComponent, selectors: [["td-navigation-drawer"]], contentQueries: function TdNavigationDrawerComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
1332
1240
|
i0.ɵɵcontentQuery(dirIndex, TdNavigationDrawerMenuDirective, 5);
|
1333
1241
|
i0.ɵɵcontentQuery(dirIndex, TdNavigationDrawerToolbarDirective, 5);
|
@@ -1357,17 +1265,12 @@ class TdNavigationDrawerComponent {
|
|
1357
1265
|
i0.ɵɵproperty("@tdCollapse", ctx.menuToggled);
|
1358
1266
|
i0.ɵɵadvance(2);
|
1359
1267
|
i0.ɵɵproperty("@tdCollapse", !ctx.menuToggled);
|
1360
|
-
} }, dependencies: [CommonModule,
|
1268
|
+
} }, dependencies: [CommonModule, i1.NgIf, MatToolbar, MatIcon, MatIconButton], styles: ["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .td-navigation-drawer-content.ng-animating[_ngcontent-%COMP%], [_nghost-%COMP%] .td-navigation-drawer-menu-content.ng-animating[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%]{padding:16px}[_nghost-%COMP%] mat-toolbar.td-toolbar-background[_ngcontent-%COMP%]{background-repeat:no-repeat;background-size:cover}[_nghost-%COMP%] mat-toolbar.td-nagivation-drawer-toolbar[_ngcontent-%COMP%]{flex-direction:column;height:auto!important;display:block!important}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-toolbar-content[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-toolbar-content[_ngcontent-%COMP%] .td-nagivation-drawer-toolbar-avatar[_ngcontent-%COMP%]{border-radius:50%;height:60px;width:60px;margin:0 12px 12px 0}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-toolbar-content[_ngcontent-%COMP%] .td-navigation-drawer-title[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-name[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-menu-toggle[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-menu-toggle[_ngcontent-%COMP%] .td-navigation-drawer-label[_ngcontent-%COMP%]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-menu-toggle[_ngcontent-%COMP%] .td-navigation-drawer-menu-button[_ngcontent-%COMP%]{width:24px;height:24px;padding:0}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{overflow:hidden}"], data: { animation: [tdCollapseAnimation] } });
|
1361
1269
|
}
|
1362
1270
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdNavigationDrawerComponent, [{
|
1363
1271
|
type: Component,
|
1364
1272
|
args: [{ selector: 'td-navigation-drawer', animations: [tdCollapseAnimation], imports: [CommonModule, MatToolbar, MatIcon, MatIconButton], template: "<mat-toolbar\n [color]=\"color\"\n [style.background-image]=\"backgroundImage\"\n [class.td-toolbar-background]=\"!!isBackgroundAvailable\"\n class=\"td-nagivation-drawer-toolbar\"\n>\n <ng-content select=\"[td-navigation-drawer-toolbar]\"></ng-content>\n <ng-container *ngIf=\"!isCustomToolbar\">\n <div\n *ngIf=\"icon || logo || sidenavTitle || avatar\"\n class=\"td-navigation-drawer-toolbar-content\"\n [class.cursor-pointer]=\"routerEnabled\"\n (click)=\"handleNavigationClick()\"\n >\n <mat-icon *ngIf=\"icon\">{{ icon }}</mat-icon>\n <mat-icon\n *ngIf=\"logo && !icon\"\n class=\"mat-icon-logo\"\n [svgIcon]=\"logo\"\n ></mat-icon>\n <img\n *ngIf=\"avatar && !logo && !icon\"\n class=\"td-nagivation-drawer-toolbar-avatar\"\n [attr.src]=\"avatar\"\n />\n <span *ngIf=\"sidenavTitle\" class=\"td-navigation-drawer-title\">{{\n sidenavTitle\n }}</span>\n </div>\n <div class=\"td-navigation-drawer-name\" *ngIf=\"email && name\">\n {{ name }}\n </div>\n <div\n class=\"td-navigation-drawer-menu-toggle\"\n href\n *ngIf=\"email || name\"\n (click)=\"toggleMenu()\"\n >\n <span class=\"td-navigation-drawer-label\">{{ email || name }}</span>\n <button\n mat-icon-button\n class=\"td-navigation-drawer-menu-button\"\n *ngIf=\"isMenuAvailable\"\n >\n <mat-icon *ngIf=\"!menuToggled\">arrow_drop_down</mat-icon>\n <mat-icon *ngIf=\"menuToggled\">arrow_drop_up</mat-icon>\n </button>\n </div>\n </ng-container>\n</mat-toolbar>\n<div class=\"td-navigation-drawer-content\" [@tdCollapse]=\"menuToggled\">\n <ng-content></ng-content>\n</div>\n<div class=\"td-navigation-drawer-menu-content\" [@tdCollapse]=\"!menuToggled\">\n <ng-content select=\"[td-navigation-drawer-menu]\"></ng-content>\n</div>\n", styles: [":host{width:100%}:host .td-navigation-drawer-content.ng-animating,:host .td-navigation-drawer-menu-content.ng-animating{overflow:hidden}:host mat-toolbar{padding:16px}:host mat-toolbar.td-toolbar-background{background-repeat:no-repeat;background-size:cover}:host mat-toolbar.td-nagivation-drawer-toolbar{flex-direction:column;height:auto!important;display:block!important}:host mat-toolbar .td-navigation-drawer-toolbar-content{flex-direction:row;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}:host mat-toolbar .td-navigation-drawer-toolbar-content .td-nagivation-drawer-toolbar-avatar{border-radius:50%;height:60px;width:60px;margin:0 12px 12px 0}:host mat-toolbar .td-navigation-drawer-toolbar-content .td-navigation-drawer-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host mat-toolbar .td-navigation-drawer-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host mat-toolbar .td-navigation-drawer-menu-toggle{flex-direction:row;box-sizing:border-box;display:flex}:host mat-toolbar .td-navigation-drawer-menu-toggle .td-navigation-drawer-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host mat-toolbar .td-navigation-drawer-menu-toggle .td-navigation-drawer-menu-button{width:24px;height:24px;padding:0}:host>div{overflow:hidden}\n"] }]
|
1365
|
-
}],
|
1366
|
-
type: Inject,
|
1367
|
-
args: [forwardRef(() => TdLayoutComponent)]
|
1368
|
-
}] }, { type: i1.Router, decorators: [{
|
1369
|
-
type: Optional
|
1370
|
-
}] }, { type: i2$2.DomSanitizer }], { _drawerMenu: [{
|
1273
|
+
}], null, { _drawerMenu: [{
|
1371
1274
|
type: ContentChildren,
|
1372
1275
|
args: [TdNavigationDrawerMenuDirective, { descendants: true }]
|
1373
1276
|
}], _toolbar: [{
|
@@ -1392,7 +1295,7 @@ class TdNavigationDrawerComponent {
|
|
1392
1295
|
}], email: [{
|
1393
1296
|
type: Input
|
1394
1297
|
}] }); })();
|
1395
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdNavigationDrawerComponent, { className: "TdNavigationDrawerComponent", filePath: "navigation-drawer/navigation-drawer.component.ts", lineNumber:
|
1298
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdNavigationDrawerComponent, { className: "TdNavigationDrawerComponent", filePath: "navigation-drawer/navigation-drawer.component.ts", lineNumber: 44 }); })();
|
1396
1299
|
|
1397
1300
|
const TD_LAYOUTS = [
|
1398
1301
|
TdLayoutComponent,
|