@design-factory/angular 21.0.0-next.0 → 21.0.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 +61 -1
- package/fesm2022/design-factory-angular-drawer.mjs +112 -116
- package/fesm2022/design-factory-angular-drawer.mjs.map +1 -1
- package/fesm2022/design-factory-angular-internals.mjs +3 -3
- package/fesm2022/design-factory-angular-sidenav.mjs +65 -58
- package/fesm2022/design-factory-angular-sidenav.mjs.map +1 -1
- package/package.json +5 -12
- package/types/design-factory-angular-drawer.d.ts +32 -16
- package/types/design-factory-angular-sidenav.d.ts +6 -11
- package/fesm2022/design-factory-angular-accordion.mjs +0 -55
- package/fesm2022/design-factory-angular-accordion.mjs.map +0 -1
- package/fesm2022/design-factory-angular-config.mjs +0 -22
- package/fesm2022/design-factory-angular-config.mjs.map +0 -1
- package/types/design-factory-angular-accordion.d.ts +0 -47
- package/types/design-factory-angular-config.d.ts +0 -24
|
@@ -68,10 +68,10 @@ class DfSidenavItemBaseComponent {
|
|
|
68
68
|
this.collapsed.set(!this.collapsed());
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
72
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.
|
|
71
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavItemBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
72
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.1.1", type: DfSidenavItemBaseComponent, isStandalone: true, inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, wrapperHasIconContent: { classPropertyName: "wrapperHasIconContent", publicName: "wrapperHasIconContent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange" }, queries: [{ propertyName: "iconContent", first: true, predicate: ["dfSidenavIcon"], descendants: true, isSignal: true }], ngImport: i0 }); }
|
|
73
73
|
}
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavItemBaseComponent, decorators: [{
|
|
75
75
|
type: Directive
|
|
76
76
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], wrapperHasIconContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrapperHasIconContent", required: false }] }], iconContent: [{ type: i0.ContentChild, args: ['dfSidenavIcon', { isSignal: true }] }] } });
|
|
77
77
|
|
|
@@ -111,8 +111,8 @@ class DfSidenavItemDesktopComponent extends DfSidenavItemBaseComponent {
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
115
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
114
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavItemDesktopComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
115
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: DfSidenavItemDesktopComponent, isStandalone: true, selector: "df-sidenav-item-desktop", host: { properties: { "class.d-none": "!isVisible() || (sidenav.isMinimized() && (!isFirstLevel || !wrapperHasIconContent()))" } }, usesInheritance: true, ngImport: i0, template: `
|
|
116
116
|
<button
|
|
117
117
|
class="btn df-sidenav-button d-flex gap-3"
|
|
118
118
|
[class.df-sidenav-active-level]="sidenav.isMinimized() && hasActiveChildren() && isFirstLevel"
|
|
@@ -144,7 +144,7 @@ class DfSidenavItemDesktopComponent extends DfSidenavItemBaseComponent {
|
|
|
144
144
|
</ng-template>
|
|
145
145
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
146
146
|
}
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavItemDesktopComponent, decorators: [{
|
|
148
148
|
type: Component,
|
|
149
149
|
args: [{
|
|
150
150
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -277,8 +277,8 @@ class DfSidenavItemMobileComponent extends DfSidenavItemBaseComponent {
|
|
|
277
277
|
handleBackClick() {
|
|
278
278
|
this.sidenav.navigateBack();
|
|
279
279
|
}
|
|
280
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
281
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
280
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavItemMobileComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
281
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: DfSidenavItemMobileComponent, isStandalone: true, selector: "df-sidenav-item-mobile", host: { properties: { "class.d-none": "shouldHideComponent() || (sidenav.isMinimized() && (!isFirstLevel || !wrapperHasIconContent()))" }, classAttribute: "mobile" }, usesInheritance: true, ngImport: i0, template: `
|
|
282
282
|
@if (shouldShowMobileHeader()) {
|
|
283
283
|
<div class="df-sidenav-mobile-header mobile mb-2" role="listitem">
|
|
284
284
|
<button
|
|
@@ -338,7 +338,7 @@ class DfSidenavItemMobileComponent extends DfSidenavItemBaseComponent {
|
|
|
338
338
|
</ng-template>
|
|
339
339
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
340
340
|
}
|
|
341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavItemMobileComponent, decorators: [{
|
|
342
342
|
type: Component,
|
|
343
343
|
args: [{
|
|
344
344
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -459,10 +459,10 @@ class DfSidenavLinkBaseComponent {
|
|
|
459
459
|
return this.label().toLowerCase().includes(search);
|
|
460
460
|
}, ...(ngDevMode ? [{ debugName: "isVisible" }] : []));
|
|
461
461
|
}
|
|
462
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
463
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.
|
|
462
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavLinkBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
463
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.1.1", type: DfSidenavLinkBaseComponent, isStandalone: true, inputs: { linkPath: { classPropertyName: "linkPath", publicName: "linkPath", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, wrapperHasIconContent: { classPropertyName: "wrapperHasIconContent", publicName: "wrapperHasIconContent", isSignal: true, isRequired: false, transformFunction: null }, routerLinkActiveOptions: { classPropertyName: "routerLinkActiveOptions", publicName: "routerLinkActiveOptions", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "iconContent", first: true, predicate: ["dfSidenavIcon"], descendants: true, isSignal: true }], ngImport: i0 }); }
|
|
464
464
|
}
|
|
465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavLinkBaseComponent, decorators: [{
|
|
466
466
|
type: Directive
|
|
467
467
|
}], propDecorators: { linkPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "linkPath", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], wrapperHasIconContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrapperHasIconContent", required: false }] }], routerLinkActiveOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLinkActiveOptions", required: false }] }], iconContent: [{ type: i0.ContentChild, args: ['dfSidenavIcon', { isSignal: true }] }] } });
|
|
468
468
|
|
|
@@ -475,8 +475,8 @@ class DfSidenavLinkDesktopComponent extends DfSidenavLinkBaseComponent {
|
|
|
475
475
|
super(...arguments);
|
|
476
476
|
this.anchor = viewChild.required('anchor');
|
|
477
477
|
}
|
|
478
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
479
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
478
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavLinkDesktopComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
479
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: DfSidenavLinkDesktopComponent, isStandalone: true, selector: "df-sidenav-link-desktop", host: { properties: { "class.d-none": "!isVisible() || (sidenav.isMinimized() && (!isFirstLevel || !wrapperHasIconContent()))" }, classAttribute: "d-flex" }, viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
480
480
|
<a
|
|
481
481
|
class="btn df-sidenav-button d-flex gap-3"
|
|
482
482
|
[class.w-100]="!sidenav.isMinimized()"
|
|
@@ -503,7 +503,7 @@ class DfSidenavLinkDesktopComponent extends DfSidenavLinkBaseComponent {
|
|
|
503
503
|
</ng-template>
|
|
504
504
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
505
505
|
}
|
|
506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavLinkDesktopComponent, decorators: [{
|
|
507
507
|
type: Component,
|
|
508
508
|
args: [{
|
|
509
509
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -583,8 +583,8 @@ class DfSidenavLinkMobileComponent extends DfSidenavLinkBaseComponent {
|
|
|
583
583
|
return path;
|
|
584
584
|
}, ...(ngDevMode ? [{ debugName: "breadcrumbPath" }] : []));
|
|
585
585
|
}
|
|
586
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
587
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
586
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavLinkMobileComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
587
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: DfSidenavLinkMobileComponent, isStandalone: true, selector: "df-sidenav-link-mobile", host: { properties: { "class.d-none": "!isVisibleInList() || (sidenav.isMinimized() && (!isFirstLevel || !wrapperHasIconContent()))" }, classAttribute: "d-flex" }, usesInheritance: true, ngImport: i0, template: `
|
|
588
588
|
<a
|
|
589
589
|
class="btn df-sidenav-button d-flex gap-3 justify-content-start w-100 df-sidenav-breadcrumb-button"
|
|
590
590
|
routerLinkActive="df-sidenav-active-level"
|
|
@@ -619,7 +619,7 @@ class DfSidenavLinkMobileComponent extends DfSidenavLinkBaseComponent {
|
|
|
619
619
|
</ng-template>
|
|
620
620
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
621
621
|
}
|
|
622
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavLinkMobileComponent, decorators: [{
|
|
623
623
|
type: Component,
|
|
624
624
|
args: [{
|
|
625
625
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -673,10 +673,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
673
673
|
* @since 21.0.0
|
|
674
674
|
*/
|
|
675
675
|
class DfSidenavIconDirective {
|
|
676
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
677
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
676
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
677
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.1", type: DfSidenavIconDirective, isStandalone: true, selector: "[dfSidenavIcon]", ngImport: i0 }); }
|
|
678
678
|
}
|
|
679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavIconDirective, decorators: [{
|
|
680
680
|
type: Directive,
|
|
681
681
|
args: [{
|
|
682
682
|
selector: '[dfSidenavIcon]'
|
|
@@ -724,8 +724,8 @@ class DfSidenavLinkComponent {
|
|
|
724
724
|
this.wrapperHasIconContent = computed(() => this.icon() !== '' || this.iconContentQuery() !== undefined, ...(ngDevMode ? [{ debugName: "wrapperHasIconContent" }] : []));
|
|
725
725
|
this.sidenav = inject(DfSidenavComponent);
|
|
726
726
|
}
|
|
727
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
728
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
727
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
728
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: DfSidenavLinkComponent, isStandalone: true, selector: "df-sidenav-link", inputs: { linkPath: { classPropertyName: "linkPath", publicName: "linkPath", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, routerLinkActiveOptions: { classPropertyName: "routerLinkActiveOptions", publicName: "routerLinkActiveOptions", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "listitem" }, properties: { "class.mobile": "sidenav['isMobileDevice']()" }, classAttribute: "d-block" }, queries: [{ propertyName: "iconContentQuery", first: true, predicate: DfSidenavIconDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "desktopInstance", first: true, predicate: DfSidenavLinkDesktopComponent, descendants: true, isSignal: true }, { propertyName: "mobileInstance", first: true, predicate: DfSidenavLinkMobileComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
729
729
|
<ng-template #iconSlot>
|
|
730
730
|
<ng-content select="[dfSidenavIcon]" />
|
|
731
731
|
</ng-template>
|
|
@@ -733,7 +733,7 @@ class DfSidenavLinkComponent {
|
|
|
733
733
|
<ng-content />
|
|
734
734
|
</ng-template>
|
|
735
735
|
|
|
736
|
-
@if (sidenav['isMobileDevice']) {
|
|
736
|
+
@if (sidenav['isMobileDevice']()) {
|
|
737
737
|
<df-sidenav-link-mobile
|
|
738
738
|
[linkPath]="linkPath()"
|
|
739
739
|
[label]="label()"
|
|
@@ -758,7 +758,7 @@ class DfSidenavLinkComponent {
|
|
|
758
758
|
}
|
|
759
759
|
`, isInline: true, dependencies: [{ kind: "component", type: DfSidenavLinkDesktopComponent, selector: "df-sidenav-link-desktop" }, { kind: "component", type: DfSidenavLinkMobileComponent, selector: "df-sidenav-link-mobile" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
760
760
|
}
|
|
761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
761
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavLinkComponent, decorators: [{
|
|
762
762
|
type: Component,
|
|
763
763
|
args: [{
|
|
764
764
|
selector: 'df-sidenav-link',
|
|
@@ -771,7 +771,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
771
771
|
<ng-content />
|
|
772
772
|
</ng-template>
|
|
773
773
|
|
|
774
|
-
@if (sidenav['isMobileDevice']) {
|
|
774
|
+
@if (sidenav['isMobileDevice']()) {
|
|
775
775
|
<df-sidenav-link-mobile
|
|
776
776
|
[linkPath]="linkPath()"
|
|
777
777
|
[label]="label()"
|
|
@@ -799,7 +799,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
799
799
|
host: {
|
|
800
800
|
role: 'listitem',
|
|
801
801
|
class: 'd-block',
|
|
802
|
-
'[class.mobile]': "sidenav['isMobileDevice']"
|
|
802
|
+
'[class.mobile]': "sidenav['isMobileDevice']()"
|
|
803
803
|
}
|
|
804
804
|
}]
|
|
805
805
|
}], propDecorators: { linkPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "linkPath", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], routerLinkActiveOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLinkActiveOptions", required: false }] }], desktopInstance: [{ type: i0.ViewChild, args: [i0.forwardRef(() => DfSidenavLinkDesktopComponent), { isSignal: true }] }], mobileInstance: [{ type: i0.ViewChild, args: [i0.forwardRef(() => DfSidenavLinkMobileComponent), { isSignal: true }] }], iconContentQuery: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DfSidenavIconDirective), { isSignal: true }] }] } });
|
|
@@ -850,8 +850,8 @@ class DfSidenavItemComponent {
|
|
|
850
850
|
this.wrapperHasIconContent = computed(() => this.icon() !== '' || this.iconContentQuery() !== undefined, ...(ngDevMode ? [{ debugName: "wrapperHasIconContent" }] : []));
|
|
851
851
|
this.sidenav = inject(DfSidenavComponent);
|
|
852
852
|
}
|
|
853
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
854
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
853
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
854
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: DfSidenavItemComponent, isStandalone: true, selector: "df-sidenav-item", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange" }, host: { attributes: { "role": "listitem" }, properties: { "class.mobile": "sidenav['isMobileDevice']()" }, classAttribute: "d-block" }, queries: [{ propertyName: "childrenItems", predicate: DfSidenavItemComponent, descendants: true, isSignal: true }, { propertyName: "childrenLinks", predicate: DfSidenavLinkComponent, descendants: true, isSignal: true }, { propertyName: "iconContentQuery", first: true, predicate: DfSidenavIconDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "desktopInstance", first: true, predicate: DfSidenavItemDesktopComponent, descendants: true, isSignal: true }, { propertyName: "mobileInstance", first: true, predicate: DfSidenavItemMobileComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
855
855
|
<ng-template #iconSlot>
|
|
856
856
|
<ng-content select="[dfSidenavIcon]" />
|
|
857
857
|
</ng-template>
|
|
@@ -859,7 +859,7 @@ class DfSidenavItemComponent {
|
|
|
859
859
|
<ng-content />
|
|
860
860
|
</ng-template>
|
|
861
861
|
|
|
862
|
-
@if (sidenav['isMobileDevice']) {
|
|
862
|
+
@if (sidenav['isMobileDevice']()) {
|
|
863
863
|
<df-sidenav-item-mobile
|
|
864
864
|
[label]="label()"
|
|
865
865
|
[(collapsed)]="collapsed"
|
|
@@ -882,7 +882,7 @@ class DfSidenavItemComponent {
|
|
|
882
882
|
}
|
|
883
883
|
`, isInline: true, dependencies: [{ kind: "component", type: DfSidenavItemDesktopComponent, selector: "df-sidenav-item-desktop" }, { kind: "component", type: DfSidenavItemMobileComponent, selector: "df-sidenav-item-mobile" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
884
884
|
}
|
|
885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavItemComponent, decorators: [{
|
|
886
886
|
type: Component,
|
|
887
887
|
args: [{
|
|
888
888
|
selector: 'df-sidenav-item',
|
|
@@ -895,7 +895,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
895
895
|
<ng-content />
|
|
896
896
|
</ng-template>
|
|
897
897
|
|
|
898
|
-
@if (sidenav['isMobileDevice']) {
|
|
898
|
+
@if (sidenav['isMobileDevice']()) {
|
|
899
899
|
<df-sidenav-item-mobile
|
|
900
900
|
[label]="label()"
|
|
901
901
|
[(collapsed)]="collapsed"
|
|
@@ -921,7 +921,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
921
921
|
host: {
|
|
922
922
|
role: 'listitem',
|
|
923
923
|
class: 'd-block',
|
|
924
|
-
'[class.mobile]': "sidenav['isMobileDevice']"
|
|
924
|
+
'[class.mobile]': "sidenav['isMobileDevice']()"
|
|
925
925
|
}
|
|
926
926
|
}]
|
|
927
927
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], childrenItems: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => DfSidenavItemComponent), { ...{ descendants: true }, isSignal: true }] }], childrenLinks: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => DfSidenavLinkComponent), { ...{ descendants: true }, isSignal: true }] }], desktopInstance: [{ type: i0.ViewChild, args: [i0.forwardRef(() => DfSidenavItemDesktopComponent), { isSignal: true }] }], mobileInstance: [{ type: i0.ViewChild, args: [i0.forwardRef(() => DfSidenavItemMobileComponent), { isSignal: true }] }], iconContentQuery: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DfSidenavIconDirective), { isSignal: true }] }] } });
|
|
@@ -943,32 +943,27 @@ class DfSidenavComponent {
|
|
|
943
943
|
constructor() {
|
|
944
944
|
/**
|
|
945
945
|
* Flag whether the sidenav includes a search input
|
|
946
|
-
* @default
|
|
947
|
-
*/
|
|
948
|
-
this.searchable = input(false, { ...(ngDevMode ? { debugName: "searchable" } : {}), transform: booleanAttribute });
|
|
949
|
-
/**
|
|
950
|
-
* The container element for the sidenav (null for body)
|
|
951
|
-
* @default null
|
|
946
|
+
* @default true
|
|
952
947
|
*/
|
|
953
|
-
this.
|
|
948
|
+
this.searchable = input(true, { ...(ngDevMode ? { debugName: "searchable" } : {}), transform: booleanAttribute });
|
|
954
949
|
/**
|
|
955
950
|
* Flag whether the sidenav should be resizable
|
|
956
|
-
* @default
|
|
951
|
+
* @default true
|
|
957
952
|
*/
|
|
958
|
-
this.resizable = input(
|
|
953
|
+
this.resizable = input(true, { ...(ngDevMode ? { debugName: "resizable" } : {}), transform: booleanAttribute });
|
|
959
954
|
/**
|
|
960
955
|
* Flag whether the sidenav should have the collapse button
|
|
961
|
-
* @default
|
|
956
|
+
* @default true
|
|
962
957
|
*/
|
|
963
|
-
this.collapsible = input(
|
|
958
|
+
this.collapsible = input(true, { ...(ngDevMode ? { debugName: "collapsible" } : {}), transform: booleanAttribute });
|
|
964
959
|
/**
|
|
965
|
-
* Flag to enable mobile
|
|
960
|
+
* Flag to enable the mobile sidenav display of the items.
|
|
966
961
|
* @default true
|
|
967
962
|
*/
|
|
968
963
|
this.enableMobile = input(true, { ...(ngDevMode ? { debugName: "enableMobile" } : {}), transform: booleanAttribute });
|
|
969
964
|
this._isMinimized = linkedSignal(() => {
|
|
970
965
|
// in mobile devices, the default value is true (hiding the drawer) and does not track changes to the screen size
|
|
971
|
-
if (this.isMobileDevice) {
|
|
966
|
+
if (this.isMobileDevice()) {
|
|
972
967
|
return true;
|
|
973
968
|
}
|
|
974
969
|
// in desktop, we track the large screen signal in order to reset the minimized state
|
|
@@ -982,7 +977,7 @@ class DfSidenavComponent {
|
|
|
982
977
|
this.hostRef = inject((ElementRef));
|
|
983
978
|
this.scrollableContainer = viewChild.required('scrollableContainer');
|
|
984
979
|
this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
985
|
-
this.isMobileDevice = (() => {
|
|
980
|
+
this.isMobileDevice = computed(() => {
|
|
986
981
|
if (this.isBrowser) {
|
|
987
982
|
return this.enableMobile() && isMobileUserAgent(navigator.userAgent);
|
|
988
983
|
}
|
|
@@ -1000,7 +995,7 @@ class DfSidenavComponent {
|
|
|
1000
995
|
}
|
|
1001
996
|
return false;
|
|
1002
997
|
}
|
|
1003
|
-
}
|
|
998
|
+
}, ...(ngDevMode ? [{ debugName: "isMobileDevice" }] : []));
|
|
1004
999
|
this.searchInput = viewChild('textInput', ...(ngDevMode ? [{ debugName: "searchInput" }] : []));
|
|
1005
1000
|
// Query all links to find active ones
|
|
1006
1001
|
this.allLinks = contentChildren(DfSidenavLinkComponent, { ...(ngDevMode ? { debugName: "allLinks" } : {}), descendants: true });
|
|
@@ -1036,7 +1031,7 @@ class DfSidenavComponent {
|
|
|
1036
1031
|
useDirectiveForHost(this.navManager.directive, this.navManagerConfig);
|
|
1037
1032
|
afterRenderEffect(() => {
|
|
1038
1033
|
if (this.isBrowser) {
|
|
1039
|
-
if (this.isMobileDevice && !this._isMinimized()) {
|
|
1034
|
+
if (this.isMobileDevice() && !this._isMinimized()) {
|
|
1040
1035
|
// Delay to ensure DOM and contentChildren queries are ready
|
|
1041
1036
|
this.navigateToActiveItem();
|
|
1042
1037
|
}
|
|
@@ -1182,8 +1177,8 @@ class DfSidenavComponent {
|
|
|
1182
1177
|
this.mobileNavigationStack.set([]);
|
|
1183
1178
|
}
|
|
1184
1179
|
}
|
|
1185
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1186
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1181
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: DfSidenavComponent, isStandalone: true, selector: "df-sidenav", inputs: { searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, enableMobile: { classPropertyName: "enableMobile", publicName: "enableMobile", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.df-sidenav-lg": "isLargeUpScreen()", "class.df-sidenav-withicon": "contentHasIcons()", "class.d-none": "isSmallScreen() && _isMinimized()", "class.df-sidenav-drawer": "isMediumScreen() && !_isMinimized()" }, classAttribute: "df-sidenav" }, queries: [{ propertyName: "allLinks", predicate: DfSidenavLinkComponent, descendants: true, isSignal: true }, { propertyName: "allItems", predicate: DfSidenavItemComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "scrollableContainer", first: true, predicate: ["scrollableContainer"], descendants: true, isSignal: true }, { propertyName: "searchInput", first: true, predicate: ["textInput"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1187
1182
|
<df-drawer
|
|
1188
1183
|
#drawer
|
|
1189
1184
|
className="inline-start {{ isSmallScreen() ? 'df-sidenav-mobile-drawer' : '' }}"
|
|
@@ -1196,6 +1191,8 @@ class DfSidenavComponent {
|
|
|
1196
1191
|
[(size)]="width"
|
|
1197
1192
|
[container]="isSmallScreen() ? null : hostRef.nativeElement"
|
|
1198
1193
|
[resizable]="resizable() && !isSmallScreen()"
|
|
1194
|
+
[focusOnInit]="false"
|
|
1195
|
+
[keepInDom]="true"
|
|
1199
1196
|
>
|
|
1200
1197
|
<nav class="d-flex flex-column w-100 h-100 p-5 pb-3">
|
|
1201
1198
|
<div class="df-sidenav-header flex-shrink-0" [class.df-sidenav-header-minimized]="_isMinimized()">
|
|
@@ -1224,8 +1221,12 @@ class DfSidenavComponent {
|
|
|
1224
1221
|
[(ngModel)]="searchTerm"
|
|
1225
1222
|
#textInput
|
|
1226
1223
|
/>
|
|
1227
|
-
<div class="input-group-append"
|
|
1228
|
-
<button
|
|
1224
|
+
<div class="input-group-append">
|
|
1225
|
+
<button
|
|
1226
|
+
class="input-group-text fa-light fa-times"
|
|
1227
|
+
[class.df-sidenav-search-empty]="searchTerm() === ''"
|
|
1228
|
+
(click)="searchTerm.set(''); textInput.focus()"
|
|
1229
|
+
>
|
|
1229
1230
|
<span class="visually-hidden" i18n="@@df.sidenav.search.clearText">Clear text</span>
|
|
1230
1231
|
</button>
|
|
1231
1232
|
</div>
|
|
@@ -1255,9 +1256,9 @@ class DfSidenavComponent {
|
|
|
1255
1256
|
}
|
|
1256
1257
|
</nav>
|
|
1257
1258
|
</df-drawer>
|
|
1258
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: DfDrawerComponent, selector: "df-drawer", inputs: ["className", "bodyScroll", "backdrop", "container", "size", "resizable", "visible", "
|
|
1259
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: DfDrawerComponent, selector: "df-drawer", inputs: ["className", "bodyScroll", "backdrop", "container", "size", "resizable", "visible", "keepInDom", "focusOnInit"], outputs: ["sizeChange", "visibleChange", "minimizedChange", "maximizedChange", "resizingChange", "minSize", "maxSize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1259
1260
|
}
|
|
1260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DfSidenavComponent, decorators: [{
|
|
1261
1262
|
type: Component,
|
|
1262
1263
|
args: [{
|
|
1263
1264
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1275,6 +1276,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
1275
1276
|
[(size)]="width"
|
|
1276
1277
|
[container]="isSmallScreen() ? null : hostRef.nativeElement"
|
|
1277
1278
|
[resizable]="resizable() && !isSmallScreen()"
|
|
1279
|
+
[focusOnInit]="false"
|
|
1280
|
+
[keepInDom]="true"
|
|
1278
1281
|
>
|
|
1279
1282
|
<nav class="d-flex flex-column w-100 h-100 p-5 pb-3">
|
|
1280
1283
|
<div class="df-sidenav-header flex-shrink-0" [class.df-sidenav-header-minimized]="_isMinimized()">
|
|
@@ -1303,8 +1306,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
1303
1306
|
[(ngModel)]="searchTerm"
|
|
1304
1307
|
#textInput
|
|
1305
1308
|
/>
|
|
1306
|
-
<div class="input-group-append"
|
|
1307
|
-
<button
|
|
1309
|
+
<div class="input-group-append">
|
|
1310
|
+
<button
|
|
1311
|
+
class="input-group-text fa-light fa-times"
|
|
1312
|
+
[class.df-sidenav-search-empty]="searchTerm() === ''"
|
|
1313
|
+
(click)="searchTerm.set(''); textInput.focus()"
|
|
1314
|
+
>
|
|
1308
1315
|
<span class="visually-hidden" i18n="@@df.sidenav.search.clearText">Clear text</span>
|
|
1309
1316
|
</button>
|
|
1310
1317
|
</div>
|
|
@@ -1344,7 +1351,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
1344
1351
|
'[class.df-sidenav-drawer]': 'isMediumScreen() && !_isMinimized()'
|
|
1345
1352
|
}
|
|
1346
1353
|
}]
|
|
1347
|
-
}], ctorParameters: () => [], propDecorators: { searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }],
|
|
1354
|
+
}], ctorParameters: () => [], propDecorators: { searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], enableMobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableMobile", required: false }] }], scrollableContainer: [{ type: i0.ViewChild, args: ['scrollableContainer', { isSignal: true }] }], searchInput: [{ type: i0.ViewChild, args: ['textInput', { isSignal: true }] }], allLinks: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => DfSidenavLinkComponent), { ...{ descendants: true }, isSignal: true }] }], allItems: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => DfSidenavItemComponent), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
1348
1355
|
|
|
1349
1356
|
/**
|
|
1350
1357
|
* Generated bundle index. Do not edit.
|