@piying-lib/angular-daisyui 1.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 +64 -0
- package/extension/index.d.ts +449 -0
- package/fesm2022/piying-lib-angular-daisyui-extension.mjs +1356 -0
- package/fesm2022/piying-lib-angular-daisyui-extension.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-field-control-props.directive-C5mF89PX.mjs +27 -0
- package/fesm2022/piying-lib-angular-daisyui-field-control-props.directive-C5mF89PX.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-field-control.mjs +616 -0
- package/fesm2022/piying-lib-angular-daisyui-field-control.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-field-group.mjs +345 -0
- package/fesm2022/piying-lib-angular-daisyui-field-group.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-non-field-control.mjs +452 -0
- package/fesm2022/piying-lib-angular-daisyui-non-field-control.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-pipe.mjs +55 -0
- package/fesm2022/piying-lib-angular-daisyui-pipe.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-service.mjs +115 -0
- package/fesm2022/piying-lib-angular-daisyui-service.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-wrapper.mjs +75 -0
- package/fesm2022/piying-lib-angular-daisyui-wrapper.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui.mjs +4 -0
- package/fesm2022/piying-lib-angular-daisyui.mjs.map +1 -0
- package/field-control/index.d.ts +204 -0
- package/field-group/index.d.ts +162 -0
- package/index.d.ts +2 -0
- package/non-field-control/index.d.ts +255 -0
- package/package.json +54 -0
- package/pipe/index.d.ts +25 -0
- package/preset-css/css/style.css +1 -0
- package/preset-css/css/style.split.css +126 -0
- package/preset-css/json/manifest.json +739 -0
- package/preset-css/ts/accordion.ts +9 -0
- package/preset-css/ts/alert.ts +12 -0
- package/preset-css/ts/avatar.ts +7 -0
- package/preset-css/ts/badge.ts +20 -0
- package/preset-css/ts/breadcrumbs.ts +1 -0
- package/preset-css/ts/browser-mockup.ts +1 -0
- package/preset-css/ts/button.ts +27 -0
- package/preset-css/ts/calendar.ts +1 -0
- package/preset-css/ts/card.ts +15 -0
- package/preset-css/ts/carousel.ts +9 -0
- package/preset-css/ts/chat-bubble.ts +17 -0
- package/preset-css/ts/checkbox.ts +16 -0
- package/preset-css/ts/code-mockup.ts +1 -0
- package/preset-css/ts/collapse.ts +9 -0
- package/preset-css/ts/countdown.ts +1 -0
- package/preset-css/ts/diff.ts +1 -0
- package/preset-css/ts/divider.ts +15 -0
- package/preset-css/ts/dock.ts +10 -0
- package/preset-css/ts/drawer-sidebar.ts +11 -0
- package/preset-css/ts/dropdown.ts +13 -0
- package/preset-css/ts/fab-speed-dial.ts +1 -0
- package/preset-css/ts/fieldset.ts +1 -0
- package/preset-css/ts/file-input.ts +17 -0
- package/preset-css/ts/filter.ts +1 -0
- package/preset-css/ts/footer.ts +7 -0
- package/preset-css/ts/hero.ts +1 -0
- package/preset-css/ts/hover-gallery.ts +1 -0
- package/preset-css/ts/index.ts +63 -0
- package/preset-css/ts/indicator.ts +10 -0
- package/preset-css/ts/join.ts +1 -0
- package/preset-css/ts/kbd.ts +1 -0
- package/preset-css/ts/label.ts +1 -0
- package/preset-css/ts/link.ts +12 -0
- package/preset-css/ts/list.ts +1 -0
- package/preset-css/ts/loading.ts +14 -0
- package/preset-css/ts/mask.ts +20 -0
- package/preset-css/ts/menu.ts +17 -0
- package/preset-css/ts/modal.ts +13 -0
- package/preset-css/ts/navbar.ts +1 -0
- package/preset-css/ts/pagination.ts +1 -0
- package/preset-css/ts/phone-mockup.ts +5 -0
- package/preset-css/ts/progress.ts +11 -0
- package/preset-css/ts/radial-progress.ts +1 -0
- package/preset-css/ts/radio.ts +16 -0
- package/preset-css/ts/range-slider.ts +16 -0
- package/preset-css/ts/rating.ts +10 -0
- package/preset-css/ts/select.ts +17 -0
- package/preset-css/ts/skeleton.ts +1 -0
- package/preset-css/ts/stack.ts +1 -0
- package/preset-css/ts/stat.ts +11 -0
- package/preset-css/ts/status.ts +16 -0
- package/preset-css/ts/steps.ts +15 -0
- package/preset-css/ts/swap.ts +9 -0
- package/preset-css/ts/table.ts +11 -0
- package/preset-css/ts/tabs.ts +17 -0
- package/preset-css/ts/text-input.ts +17 -0
- package/preset-css/ts/textarea.ts +17 -0
- package/preset-css/ts/theme-controller.ts +1 -0
- package/preset-css/ts/timeline.ts +11 -0
- package/preset-css/ts/toast.ts +9 -0
- package/preset-css/ts/toggle.ts +16 -0
- package/preset-css/ts/tooltip.ts +17 -0
- package/preset-css/ts/validator.ts +1 -0
- package/preset-css/ts/window-mockup.ts +1 -0
- package/service/index.d.ts +42 -0
- package/wrapper/index.d.ts +27 -0
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import { NgClass, NgTemplateOutlet, NgStyle, JsonPipe } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { viewChild, input, inject, computed, Component, signal } from '@angular/core';
|
|
4
|
+
import { MatIcon, MatIconModule } from '@angular/material/icon';
|
|
5
|
+
import { SelectorlessOutlet } from '@cyia/ngx-common/directive';
|
|
6
|
+
import { StrOrTemplateComponent } from '@piying-lib/angular-core';
|
|
7
|
+
import { CssPrefixPipe, MergeClassPipe, TwPrefixPipe } from '@piying-lib/angular-daisyui/pipe';
|
|
8
|
+
import { ThemeService, useDefaultClass } from '@piying-lib/angular-daisyui/service';
|
|
9
|
+
import { AttributesDirective, PiyingView, PI_INPUT_OPTIONS_TOKEN } from '@piying/view-angular';
|
|
10
|
+
import { RouterLink, RouterLinkActive } from '@angular/router';
|
|
11
|
+
import { PurePipe } from '@cyia/ngx-common/pipe';
|
|
12
|
+
import { FormsModule } from '@angular/forms';
|
|
13
|
+
|
|
14
|
+
class AlertNFCC {
|
|
15
|
+
static __version = 2;
|
|
16
|
+
StrOrTemplateComponent = StrOrTemplateComponent;
|
|
17
|
+
templateRef = viewChild.required('templateRef');
|
|
18
|
+
style = input(...(ngDevMode ? [undefined, { debugName: "style" }] : []));
|
|
19
|
+
color = input(...(ngDevMode ? [undefined, { debugName: "color" }] : []));
|
|
20
|
+
direction = input(...(ngDevMode ? [undefined, { debugName: "direction" }] : []));
|
|
21
|
+
content = input('Default', ...(ngDevMode ? [{ debugName: "content" }] : []));
|
|
22
|
+
#theme = inject(ThemeService);
|
|
23
|
+
wrapperClass$ = computed(() => {
|
|
24
|
+
return this.#theme.setClass(this.#theme.addPrefix('alert'), this.#theme.setColor('alert', this.color()), this.#theme.addPrefix2('alert', this.style()), this.#theme.addPrefix2('alert', this.direction()));
|
|
25
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperClass$" }] : []));
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AlertNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.14", type: AlertNFCC, isStandalone: true, selector: "app-alert", inputs: { style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n <div role=\"alert\" [attributes]=\"attr()\" [ngClass]=\"wrapperClass$()\">\n <ng-template\n [selectlessOutlet]=\"StrOrTemplateComponent\"\n [selectlessOutletInputs]=\"{ content: content }\"\n ></ng-template>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: SelectorlessOutlet, selector: "[selectlessOutlet]", inputs: ["selectlessOutlet", "selectlessOutletInputs", "selectlessOutletOutputs", "selectlessOutletDirectives", "selectlessOutletInjector", "selectlessOutletEnvironmentInjector"], exportAs: ["selectlessOutlet"] }] });
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AlertNFCC, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'app-alert', imports: [
|
|
32
|
+
AttributesDirective,
|
|
33
|
+
MatIcon,
|
|
34
|
+
NgTemplateOutlet,
|
|
35
|
+
NgClass,
|
|
36
|
+
CssPrefixPipe,
|
|
37
|
+
StrOrTemplateComponent,
|
|
38
|
+
SelectorlessOutlet,
|
|
39
|
+
], template: "<ng-template #templateRef let-attr=\"attributes\">\n <div role=\"alert\" [attributes]=\"attr()\" [ngClass]=\"wrapperClass$()\">\n <ng-template\n [selectlessOutlet]=\"StrOrTemplateComponent\"\n [selectlessOutletInputs]=\"{ content: content }\"\n ></ng-template>\n </div>\n</ng-template>\n" }]
|
|
40
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }] } });
|
|
41
|
+
|
|
42
|
+
class AvatarNFCC {
|
|
43
|
+
static __version = 2;
|
|
44
|
+
templateRef = viewChild.required('templateRef');
|
|
45
|
+
placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : []));
|
|
46
|
+
placeholderClass = input('', ...(ngDevMode ? [{ debugName: "placeholderClass" }] : []));
|
|
47
|
+
imgUrl = input(...(ngDevMode ? [undefined, { debugName: "imgUrl" }] : []));
|
|
48
|
+
wrapperClass = input('w-24 rounded', ...(ngDevMode ? [{ debugName: "wrapperClass" }] : []));
|
|
49
|
+
status = input(...(ngDevMode ? [undefined, { debugName: "status" }] : []));
|
|
50
|
+
#theme = inject(ThemeService);
|
|
51
|
+
mainClass$$ = computed(() => {
|
|
52
|
+
return this.#theme.setClass(this.#theme.addPrefix('avatar'), this.#theme.addPrefix2('avatar', this.status()), this.imgUrl() ? this.#theme.addPrefix2('avatar', 'placeholder') : undefined);
|
|
53
|
+
}, ...(ngDevMode ? [{ debugName: "mainClass$$" }] : []));
|
|
54
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AvatarNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
55
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AvatarNFCC, isStandalone: true, selector: "app-avatar", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, placeholderClass: { classPropertyName: "placeholderClass", publicName: "placeholderClass", isSignal: true, isRequired: false, transformFunction: null }, imgUrl: { classPropertyName: "imgUrl", publicName: "imgUrl", isSignal: true, isRequired: false, transformFunction: null }, wrapperClass: { classPropertyName: "wrapperClass", publicName: "wrapperClass", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n <div [attributes]=\"attr()\" [ngClass]=\"mainClass$$()\">\n <div [class]=\"wrapperClass()\">\n @if (imgUrl()) {\n <img [src]=\"imgUrl()\" />\n } @else {\n <span [class]=\"placeholderClass()\">{{ placeholder() }}</span>\n }\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
56
|
+
}
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AvatarNFCC, decorators: [{
|
|
58
|
+
type: Component,
|
|
59
|
+
args: [{ selector: 'app-avatar', imports: [AttributesDirective, NgClass, CssPrefixPipe], template: "<ng-template #templateRef let-attr=\"attributes\">\n <div [attributes]=\"attr()\" [ngClass]=\"mainClass$$()\">\n <div [class]=\"wrapperClass()\">\n @if (imgUrl()) {\n <img [src]=\"imgUrl()\" />\n } @else {\n <span [class]=\"placeholderClass()\">{{ placeholder() }}</span>\n }\n </div>\n </div>\n</ng-template>\n" }]
|
|
60
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], placeholderClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholderClass", required: false }] }], imgUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "imgUrl", required: false }] }], wrapperClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrapperClass", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }] } });
|
|
61
|
+
|
|
62
|
+
// todo 设计上存在问题,可能不需要这个组件
|
|
63
|
+
class BadgeNFCC {
|
|
64
|
+
static __version = 2;
|
|
65
|
+
StrOrTemplateComponent = StrOrTemplateComponent;
|
|
66
|
+
templateRef = viewChild.required('templateRef');
|
|
67
|
+
style = input(...(ngDevMode ? [undefined, { debugName: "style" }] : []));
|
|
68
|
+
color = input(...(ngDevMode ? [undefined, { debugName: "color" }] : []));
|
|
69
|
+
size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
70
|
+
content = input('Badge', ...(ngDevMode ? [{ debugName: "content" }] : []));
|
|
71
|
+
#theme = inject(ThemeService);
|
|
72
|
+
wrapperClass$ = computed(() => {
|
|
73
|
+
return this.#theme.setClass(this.#theme.addPrefix('badge'), this.#theme.setColor('badge', this.color()), this.#theme.setSize('badge', this.size()), this.#theme.setSize('badge', this.style()));
|
|
74
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperClass$" }] : []));
|
|
75
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: BadgeNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
76
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.14", type: BadgeNFCC, isStandalone: true, selector: "app-badge", inputs: { style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n <span [attributes]=\"attr()\" [ngClass]=\"wrapperClass$()\">\n <ng-template\n [selectlessOutlet]=\"StrOrTemplateComponent\"\n [selectlessOutletInputs]=\"{ content: content }\"\n ></ng-template\n ></span>\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: SelectorlessOutlet, selector: "[selectlessOutlet]", inputs: ["selectlessOutlet", "selectlessOutletInputs", "selectlessOutletOutputs", "selectlessOutletDirectives", "selectlessOutletInjector", "selectlessOutletEnvironmentInjector"], exportAs: ["selectlessOutlet"] }] });
|
|
77
|
+
}
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: BadgeNFCC, decorators: [{
|
|
79
|
+
type: Component,
|
|
80
|
+
args: [{ selector: 'app-badge', imports: [
|
|
81
|
+
AttributesDirective,
|
|
82
|
+
NgClass,
|
|
83
|
+
CssPrefixPipe,
|
|
84
|
+
SelectorlessOutlet,
|
|
85
|
+
StrOrTemplateComponent,
|
|
86
|
+
], template: "<ng-template #templateRef let-attr=\"attributes\">\n <span [attributes]=\"attr()\" [ngClass]=\"wrapperClass$()\">\n <ng-template\n [selectlessOutlet]=\"StrOrTemplateComponent\"\n [selectlessOutletInputs]=\"{ content: content }\"\n ></ng-template\n ></span>\n</ng-template>\n" }]
|
|
87
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }] } });
|
|
88
|
+
|
|
89
|
+
class BreadcrumbsNFCC {
|
|
90
|
+
static __version = 2;
|
|
91
|
+
templateRef = viewChild.required('templateRef');
|
|
92
|
+
options = input(...(ngDevMode ? [undefined, { debugName: "options" }] : []));
|
|
93
|
+
optionClass = input(...(ngDevMode ? [undefined, { debugName: "optionClass" }] : []));
|
|
94
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: BreadcrumbsNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
95
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: BreadcrumbsNFCC, isStandalone: true, selector: "app-breadcrumbs", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionClass: { classPropertyName: "optionClass", publicName: "optionClass", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #displayTemp let-item>\n @if (item.icon) {\n <mat-icon\n [inline]=\"item.icon.inline\"\n [fontIcon]=\"item.icon.fontIcon\"\n [fontSet]=\"item.icon.fontSet\"\n [svgIcon]=\"item.icon.svgIcon\"\n ></mat-icon>\n }\n @if (item.label) {\n <span>{{ item.label }}</span>\n }\n @if (item.templateRef) {\n <ng-container *ngTemplateOutlet=\"item.templateRef; context: { $implicit: item }\"></ng-container>\n }\n</ng-template>\n\n<ng-template #templateRef let-attr=\"attributes\">\n <div\n [class]=\"attr()?.class | mergeClass: ('breadcrumbs' | cssPrefix)\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n <ul>\n @for (item of options(); track $index) {\n <li [class]=\"optionClass()\">\n @if (item.url && item.extraLink) {\n <a [href]=\"item.url\" class=\"{{ 'link' | cssPrefix }}\">\n <ng-container\n *ngTemplateOutlet=\"displayTemp; context: { $implicit: item }\"\n ></ng-container>\n </a>\n } @else if (item.url) {\n <a\n [routerLink]=\"item.url\"\n routerLinkActive=\"{{ 'breadcrumbs-item-activate' | cssPrefix }}\"\n class=\"{{ 'link' | cssPrefix }}\"\n >\n <ng-container\n *ngTemplateOutlet=\"displayTemp; context: { $implicit: item }\"\n ></ng-container\n ></a>\n } @else {\n <ng-container\n *ngTemplateOutlet=\"displayTemp; context: { $implicit: item }\"\n ></ng-container>\n }\n </li>\n }\n </ul>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }] });
|
|
96
|
+
}
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: BreadcrumbsNFCC, decorators: [{
|
|
98
|
+
type: Component,
|
|
99
|
+
args: [{ selector: 'app-breadcrumbs', imports: [
|
|
100
|
+
AttributesDirective,
|
|
101
|
+
RouterLink,
|
|
102
|
+
RouterLinkActive,
|
|
103
|
+
MatIcon,
|
|
104
|
+
NgTemplateOutlet,
|
|
105
|
+
CssPrefixPipe,
|
|
106
|
+
MergeClassPipe,
|
|
107
|
+
], template: "<ng-template #displayTemp let-item>\n @if (item.icon) {\n <mat-icon\n [inline]=\"item.icon.inline\"\n [fontIcon]=\"item.icon.fontIcon\"\n [fontSet]=\"item.icon.fontSet\"\n [svgIcon]=\"item.icon.svgIcon\"\n ></mat-icon>\n }\n @if (item.label) {\n <span>{{ item.label }}</span>\n }\n @if (item.templateRef) {\n <ng-container *ngTemplateOutlet=\"item.templateRef; context: { $implicit: item }\"></ng-container>\n }\n</ng-template>\n\n<ng-template #templateRef let-attr=\"attributes\">\n <div\n [class]=\"attr()?.class | mergeClass: ('breadcrumbs' | cssPrefix)\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n <ul>\n @for (item of options(); track $index) {\n <li [class]=\"optionClass()\">\n @if (item.url && item.extraLink) {\n <a [href]=\"item.url\" class=\"{{ 'link' | cssPrefix }}\">\n <ng-container\n *ngTemplateOutlet=\"displayTemp; context: { $implicit: item }\"\n ></ng-container>\n </a>\n } @else if (item.url) {\n <a\n [routerLink]=\"item.url\"\n routerLinkActive=\"{{ 'breadcrumbs-item-activate' | cssPrefix }}\"\n class=\"{{ 'link' | cssPrefix }}\"\n >\n <ng-container\n *ngTemplateOutlet=\"displayTemp; context: { $implicit: item }\"\n ></ng-container\n ></a>\n } @else {\n <ng-container\n *ngTemplateOutlet=\"displayTemp; context: { $implicit: item }\"\n ></ng-container>\n }\n </li>\n }\n </ul>\n </div>\n</ng-template>\n" }]
|
|
108
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], optionClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionClass", required: false }] }] } });
|
|
109
|
+
|
|
110
|
+
class ButtonNFCC {
|
|
111
|
+
static __version = 2;
|
|
112
|
+
StrOrTemplateComponent = StrOrTemplateComponent;
|
|
113
|
+
templateRef = viewChild.required('templateRef');
|
|
114
|
+
color = input(...(ngDevMode ? [undefined, { debugName: "color" }] : []));
|
|
115
|
+
style = input(...(ngDevMode ? [undefined, { debugName: "style" }] : []));
|
|
116
|
+
size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
117
|
+
shape = input(...(ngDevMode ? [undefined, { debugName: "shape" }] : []));
|
|
118
|
+
active = input(...(ngDevMode ? [undefined, { debugName: "active" }] : []));
|
|
119
|
+
content = input('Default', ...(ngDevMode ? [{ debugName: "content" }] : []));
|
|
120
|
+
clicked = input(...(ngDevMode ? [undefined, { debugName: "clicked" }] : []));
|
|
121
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
122
|
+
disableLoadingIcon = input(false, ...(ngDevMode ? [{ debugName: "disableLoadingIcon" }] : []));
|
|
123
|
+
isLoading$ = signal(false, ...(ngDevMode ? [{ debugName: "isLoading$" }] : []));
|
|
124
|
+
async onClick(event) {
|
|
125
|
+
this.isLoading$.set(true);
|
|
126
|
+
try {
|
|
127
|
+
await this.clicked()?.(event);
|
|
128
|
+
}
|
|
129
|
+
catch (error) {
|
|
130
|
+
throw error;
|
|
131
|
+
}
|
|
132
|
+
finally {
|
|
133
|
+
this.isLoading$.set(false);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
#theme = inject(ThemeService);
|
|
137
|
+
wrapperClass$ = computed(() => {
|
|
138
|
+
return this.#theme.setClass(this.#theme.addPrefix('btn'), this.#theme.setColor('btn', this.color()), this.#theme.setSize('btn', this.size()), this.style() ? this.#theme.addPrefix(`btn-${this.style()}`) : undefined, this.shape() ? this.#theme.addPrefix(`btn-${this.shape()}`) : undefined, this.active() ? this.#theme.addPrefix(`btn-active`) : undefined);
|
|
139
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperClass$" }] : []));
|
|
140
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: ButtonNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
141
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: ButtonNFCC, isStandalone: true, selector: "app-button", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, clicked: { classPropertyName: "clicked", publicName: "clicked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, disableLoadingIcon: { classPropertyName: "disableLoadingIcon", publicName: "disableLoadingIcon", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n @let forAttr = attr()?.for;\n @let isDisabled = isLoading$() || disabled();\n @if (forAttr) {\n <label\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [class]=\"\n attr()?.class\n | mergeClass: wrapperClass$() : (isDisabled ? ('btn-disabled' | cssPrefix) : undefined)\n \"\n (click)=\"onClick($event)\"\n [ngClass]=\"wrapperClass$()\"\n tabindex=\"-1\"\n role=\"button\"\n aria-disabled=\"true\"\n >\n @if (isLoading$() && !disableLoadingIcon()) {\n <span class=\"{{ 'loading loading-spinner' | cssPrefix }}\"></span>\n }\n <ng-template\n [selectlessOutlet]=\"StrOrTemplateComponent\"\n [selectlessOutletInputs]=\"{ content: content }\"\n ></ng-template\n ></label>\n } @else {\n <button\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [class]=\"attr()?.class\"\n (click)=\"onClick($event)\"\n [disabled]=\"isLoading$() || disabled()\"\n [ngClass]=\"wrapperClass$()\"\n >\n @if (isLoading$() && !disableLoadingIcon()) {\n <span class=\"{{ 'loading loading-spinner' | cssPrefix }}\"></span>\n }\n <ng-template\n [selectlessOutlet]=\"StrOrTemplateComponent\"\n [selectlessOutletInputs]=\"{ content: content }\"\n ></ng-template>\n </button>\n }\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: SelectorlessOutlet, selector: "[selectlessOutlet]", inputs: ["selectlessOutlet", "selectlessOutletInputs", "selectlessOutletOutputs", "selectlessOutletDirectives", "selectlessOutletInjector", "selectlessOutletEnvironmentInjector"], exportAs: ["selectlessOutlet"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }] });
|
|
142
|
+
}
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: ButtonNFCC, decorators: [{
|
|
144
|
+
type: Component,
|
|
145
|
+
args: [{ selector: 'app-button', imports: [
|
|
146
|
+
AttributesDirective,
|
|
147
|
+
PurePipe,
|
|
148
|
+
NgTemplateOutlet,
|
|
149
|
+
NgClass,
|
|
150
|
+
CssPrefixPipe,
|
|
151
|
+
SelectorlessOutlet,
|
|
152
|
+
MergeClassPipe,
|
|
153
|
+
], template: "<ng-template #templateRef let-attr=\"attributes\">\n @let forAttr = attr()?.for;\n @let isDisabled = isLoading$() || disabled();\n @if (forAttr) {\n <label\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [class]=\"\n attr()?.class\n | mergeClass: wrapperClass$() : (isDisabled ? ('btn-disabled' | cssPrefix) : undefined)\n \"\n (click)=\"onClick($event)\"\n [ngClass]=\"wrapperClass$()\"\n tabindex=\"-1\"\n role=\"button\"\n aria-disabled=\"true\"\n >\n @if (isLoading$() && !disableLoadingIcon()) {\n <span class=\"{{ 'loading loading-spinner' | cssPrefix }}\"></span>\n }\n <ng-template\n [selectlessOutlet]=\"StrOrTemplateComponent\"\n [selectlessOutletInputs]=\"{ content: content }\"\n ></ng-template\n ></label>\n } @else {\n <button\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [class]=\"attr()?.class\"\n (click)=\"onClick($event)\"\n [disabled]=\"isLoading$() || disabled()\"\n [ngClass]=\"wrapperClass$()\"\n >\n @if (isLoading$() && !disableLoadingIcon()) {\n <span class=\"{{ 'loading loading-spinner' | cssPrefix }}\"></span>\n }\n <ng-template\n [selectlessOutlet]=\"StrOrTemplateComponent\"\n [selectlessOutletInputs]=\"{ content: content }\"\n ></ng-template>\n </button>\n }\n</ng-template>\n" }]
|
|
154
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], clicked: [{ type: i0.Input, args: [{ isSignal: true, alias: "clicked", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], disableLoadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableLoadingIcon", required: false }] }] } });
|
|
155
|
+
|
|
156
|
+
class DividerNFCC {
|
|
157
|
+
static __version = 2;
|
|
158
|
+
templateRef = viewChild.required('templateRef');
|
|
159
|
+
color = input(...(ngDevMode ? [undefined, { debugName: "color" }] : []));
|
|
160
|
+
direction = input(...(ngDevMode ? [undefined, { debugName: "direction" }] : []));
|
|
161
|
+
contentPosition = input(...(ngDevMode ? [undefined, { debugName: "contentPosition" }] : []));
|
|
162
|
+
content = input('Default', ...(ngDevMode ? [{ debugName: "content" }] : []));
|
|
163
|
+
#theme = inject(ThemeService);
|
|
164
|
+
wrapperClass$$ = computed(() => {
|
|
165
|
+
return this.#theme.setClass(this.#theme.setColor('divider', this.color()), this.#theme.addPrefix2('divider', this.direction()), this.#theme.addPrefix2('divider', this.contentPosition()));
|
|
166
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperClass$$" }] : []));
|
|
167
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: DividerNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
168
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.14", type: DividerNFCC, isStandalone: true, selector: "app-divider", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, contentPosition: { classPropertyName: "contentPosition", publicName: "contentPosition", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n <div\n [class]=\"attr()?.class | mergeClass: ('divider' | cssPrefix)\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [ngClass]=\"wrapperClass$$()\"\n >\n {{ content() }}\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }] });
|
|
169
|
+
}
|
|
170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: DividerNFCC, decorators: [{
|
|
171
|
+
type: Component,
|
|
172
|
+
args: [{ selector: 'app-divider', imports: [AttributesDirective, NgClass, CssPrefixPipe, MergeClassPipe], template: "<ng-template #templateRef let-attr=\"attributes\">\n <div\n [class]=\"attr()?.class | mergeClass: ('divider' | cssPrefix)\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [ngClass]=\"wrapperClass$$()\"\n >\n {{ content() }}\n </div>\n</ng-template>\n" }]
|
|
173
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], contentPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentPosition", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }] } });
|
|
174
|
+
|
|
175
|
+
class FabItem {
|
|
176
|
+
isLoading$ = signal(false, ...(ngDevMode ? [{ debugName: "isLoading$" }] : []));
|
|
177
|
+
option;
|
|
178
|
+
autoClose;
|
|
179
|
+
constructor(option, autoClose) {
|
|
180
|
+
this.option = option;
|
|
181
|
+
this.autoClose = autoClose;
|
|
182
|
+
}
|
|
183
|
+
async onClick(event) {
|
|
184
|
+
if (!this.option.clicked) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
this.isLoading$.set(true);
|
|
188
|
+
if (this.autoClose()) {
|
|
189
|
+
document.activeElement?.blur();
|
|
190
|
+
}
|
|
191
|
+
try {
|
|
192
|
+
await this.option.clicked(event);
|
|
193
|
+
}
|
|
194
|
+
catch (error) {
|
|
195
|
+
throw error;
|
|
196
|
+
}
|
|
197
|
+
finally {
|
|
198
|
+
this.isLoading$.set(false);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
class FabNFCC {
|
|
203
|
+
static __version = 2;
|
|
204
|
+
templateRef = viewChild.required('templateRef');
|
|
205
|
+
options = input(...(ngDevMode ? [undefined, { debugName: "options" }] : []));
|
|
206
|
+
flower = input(false, ...(ngDevMode ? [{ debugName: "flower" }] : []));
|
|
207
|
+
autoClose = input(true, ...(ngDevMode ? [{ debugName: "autoClose" }] : []));
|
|
208
|
+
resolvedOptions$$ = computed(() => {
|
|
209
|
+
return (this.options()?.map((option) => {
|
|
210
|
+
return new FabItem(option, this.autoClose);
|
|
211
|
+
}) ?? []);
|
|
212
|
+
}, ...(ngDevMode ? [{ debugName: "resolvedOptions$$" }] : []));
|
|
213
|
+
commonClass = input(useDefaultClass('btn btn-lg btn-circle'), ...(ngDevMode ? [{ debugName: "commonClass" }] : []));
|
|
214
|
+
defaultIcon = input({
|
|
215
|
+
label: 'D',
|
|
216
|
+
class: useDefaultClass('btn-primary'),
|
|
217
|
+
}, ...(ngDevMode ? [{ debugName: "defaultIcon" }] : []));
|
|
218
|
+
closeIcon = input({
|
|
219
|
+
label: '✕',
|
|
220
|
+
class: useDefaultClass('btn-error'),
|
|
221
|
+
}, ...(ngDevMode ? [{ debugName: "closeIcon" }] : []));
|
|
222
|
+
mainIcon = input(...(ngDevMode ? [undefined, { debugName: "mainIcon" }] : []));
|
|
223
|
+
defaultIcon$$ = computed(() => {
|
|
224
|
+
return new FabItem(this.defaultIcon(), this.autoClose);
|
|
225
|
+
}, ...(ngDevMode ? [{ debugName: "defaultIcon$$" }] : []));
|
|
226
|
+
closeIcon$$ = computed(() => {
|
|
227
|
+
const item = this.closeIcon();
|
|
228
|
+
return item ? new FabItem(item, this.autoClose) : undefined;
|
|
229
|
+
}, ...(ngDevMode ? [{ debugName: "closeIcon$$" }] : []));
|
|
230
|
+
mainIcon$$ = computed(() => {
|
|
231
|
+
const item = this.mainIcon();
|
|
232
|
+
return item ? new FabItem(item, this.autoClose) : undefined;
|
|
233
|
+
}, ...(ngDevMode ? [{ debugName: "mainIcon$$" }] : []));
|
|
234
|
+
#theme = inject(ThemeService);
|
|
235
|
+
wrapperClass = computed(() => {
|
|
236
|
+
return this.#theme.setClass(this.#theme.addPrefix('fab'), this.flower() ? this.#theme.addPrefix(`fab-flower`) : undefined);
|
|
237
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperClass" }] : []));
|
|
238
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: FabNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
239
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: FabNFCC, isStandalone: true, selector: "app-fab", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, flower: { classPropertyName: "flower", publicName: "flower", isSignal: true, isRequired: false, transformFunction: null }, autoClose: { classPropertyName: "autoClose", publicName: "autoClose", isSignal: true, isRequired: false, transformFunction: null }, commonClass: { classPropertyName: "commonClass", publicName: "commonClass", isSignal: true, isRequired: false, transformFunction: null }, defaultIcon: { classPropertyName: "defaultIcon", publicName: "defaultIcon", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, mainIcon: { classPropertyName: "mainIcon", publicName: "mainIcon", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #iconTemp let-item let-disableButton=\"disableButton\">\n @if (item.option.templateRef) {\n <ng-container\n *ngTemplateOutlet=\"item.option.templateRef; context: { $implicit: item }\"\n ></ng-container>\n } @else if (item.option.label) {\n @if (disableButton) {\n <span [class]=\"item.option.class | mergeClass: commonClass()\" (click)=\"item.onClick($event)\">\n {{ item.option.label }}\n </span>\n } @else {\n <button\n [class]=\"item.option.class\"\n (click)=\"item.onClick($event)\"\n [disabled]=\"item.isLoading$()\"\n >\n {{ item.option.label }}\n </button>\n }\n } @else {\n @let icon = item.option.icon;\n <mat-icon\n [class]=\"item.option.class\"\n (click)=\"item.onClick($event)\"\n [ariaDisabled]=\"item.isLoading$()\"\n [inline]=\"icon.inline\"\n [fontIcon]=\"icon.fontIcon\"\n [fontSet]=\"icon.fontSet\"\n [svgIcon]=\"icon.svgIcon\"\n ></mat-icon>\n }\n</ng-template>\n\n<ng-template #templateRef let-attr=\"attributes\">\n <div\n [class]=\"attr()?.class\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n class=\"{{ 'fab' | cssPrefix }}\"\n [ngClass]=\"wrapperClass()\"\n >\n @let defaultIcon = defaultIcon$$();\n <div tabindex=\"0\" role=\"button\">\n <ng-container\n *ngTemplateOutlet=\"iconTemp; context: { $implicit: defaultIcon, disableButton: true }\"\n ></ng-container>\n </div>\n @if (closeIcon$$(); as closeIcon) {\n <div class=\"{{ 'fab-close' | cssPrefix }}\" role=\"button\" tabindex=\"0\">\n <ng-container\n *ngTemplateOutlet=\"iconTemp; context: { $implicit: closeIcon, disableButton: true }\"\n ></ng-container>\n </div>\n }\n @if (mainIcon$$(); as mainIcon) {\n <div class=\"{{ 'fab-main-action' | cssPrefix }}\">\n <ng-container *ngTemplateOutlet=\"iconTemp; context: { $implicit: mainIcon }\"></ng-container>\n </div>\n }\n\n @for (item of resolvedOptions$$(); track $index) {\n <ng-container *ngTemplateOutlet=\"iconTemp; context: { $implicit: item }\"></ng-container>\n }\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }] });
|
|
240
|
+
}
|
|
241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: FabNFCC, decorators: [{
|
|
242
|
+
type: Component,
|
|
243
|
+
args: [{ selector: 'app-fab', imports: [
|
|
244
|
+
AttributesDirective,
|
|
245
|
+
NgTemplateOutlet,
|
|
246
|
+
MatIcon,
|
|
247
|
+
AttributesDirective,
|
|
248
|
+
CssPrefixPipe,
|
|
249
|
+
MergeClassPipe,
|
|
250
|
+
NgClass,
|
|
251
|
+
], template: "<ng-template #iconTemp let-item let-disableButton=\"disableButton\">\n @if (item.option.templateRef) {\n <ng-container\n *ngTemplateOutlet=\"item.option.templateRef; context: { $implicit: item }\"\n ></ng-container>\n } @else if (item.option.label) {\n @if (disableButton) {\n <span [class]=\"item.option.class | mergeClass: commonClass()\" (click)=\"item.onClick($event)\">\n {{ item.option.label }}\n </span>\n } @else {\n <button\n [class]=\"item.option.class\"\n (click)=\"item.onClick($event)\"\n [disabled]=\"item.isLoading$()\"\n >\n {{ item.option.label }}\n </button>\n }\n } @else {\n @let icon = item.option.icon;\n <mat-icon\n [class]=\"item.option.class\"\n (click)=\"item.onClick($event)\"\n [ariaDisabled]=\"item.isLoading$()\"\n [inline]=\"icon.inline\"\n [fontIcon]=\"icon.fontIcon\"\n [fontSet]=\"icon.fontSet\"\n [svgIcon]=\"icon.svgIcon\"\n ></mat-icon>\n }\n</ng-template>\n\n<ng-template #templateRef let-attr=\"attributes\">\n <div\n [class]=\"attr()?.class\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n class=\"{{ 'fab' | cssPrefix }}\"\n [ngClass]=\"wrapperClass()\"\n >\n @let defaultIcon = defaultIcon$$();\n <div tabindex=\"0\" role=\"button\">\n <ng-container\n *ngTemplateOutlet=\"iconTemp; context: { $implicit: defaultIcon, disableButton: true }\"\n ></ng-container>\n </div>\n @if (closeIcon$$(); as closeIcon) {\n <div class=\"{{ 'fab-close' | cssPrefix }}\" role=\"button\" tabindex=\"0\">\n <ng-container\n *ngTemplateOutlet=\"iconTemp; context: { $implicit: closeIcon, disableButton: true }\"\n ></ng-container>\n </div>\n }\n @if (mainIcon$$(); as mainIcon) {\n <div class=\"{{ 'fab-main-action' | cssPrefix }}\">\n <ng-container *ngTemplateOutlet=\"iconTemp; context: { $implicit: mainIcon }\"></ng-container>\n </div>\n }\n\n @for (item of resolvedOptions$$(); track $index) {\n <ng-container *ngTemplateOutlet=\"iconTemp; context: { $implicit: item }\"></ng-container>\n }\n </div>\n</ng-template>\n" }]
|
|
252
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], flower: [{ type: i0.Input, args: [{ isSignal: true, alias: "flower", required: false }] }], autoClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoClose", required: false }] }], commonClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "commonClass", required: false }] }], defaultIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultIcon", required: false }] }], closeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIcon", required: false }] }], mainIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "mainIcon", required: false }] }] } });
|
|
253
|
+
|
|
254
|
+
class KbdNFCC {
|
|
255
|
+
static __version = 2;
|
|
256
|
+
templateRef = viewChild.required('templateRef');
|
|
257
|
+
size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
258
|
+
content = input('Default', ...(ngDevMode ? [{ debugName: "content" }] : []));
|
|
259
|
+
#theme = inject(ThemeService);
|
|
260
|
+
wrapperClass$ = computed(() => {
|
|
261
|
+
return this.#theme.setClass(this.#theme.setSize('kbd', this.size()));
|
|
262
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperClass$" }] : []));
|
|
263
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: KbdNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
264
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.14", type: KbdNFCC, isStandalone: true, selector: "app-kbd", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n <kbd\n [class]=\"attr()?.class | mergeClass: ('kbd' | cssPrefix)\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [ngClass]=\"wrapperClass$()\"\n >{{ content() }}</kbd\n >\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }] });
|
|
265
|
+
}
|
|
266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: KbdNFCC, decorators: [{
|
|
267
|
+
type: Component,
|
|
268
|
+
args: [{ selector: 'app-kbd', imports: [AttributesDirective, NgClass, CssPrefixPipe, MergeClassPipe], template: "<ng-template #templateRef let-attr=\"attributes\">\n <kbd\n [class]=\"attr()?.class | mergeClass: ('kbd' | cssPrefix)\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [ngClass]=\"wrapperClass$()\"\n >{{ content() }}</kbd\n >\n</ng-template>\n" }]
|
|
269
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }] } });
|
|
270
|
+
|
|
271
|
+
class LoadingNFCC {
|
|
272
|
+
static __version = 2;
|
|
273
|
+
templateRef = viewChild.required('templateRef');
|
|
274
|
+
size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
275
|
+
type = input(...(ngDevMode ? [undefined, { debugName: "type" }] : []));
|
|
276
|
+
#theme = inject(ThemeService);
|
|
277
|
+
wrapperClass$$ = computed(() => {
|
|
278
|
+
return this.#theme.setClass(this.#theme.setSize('loading', this.size()), this.type() ? this.#theme.addPrefix(`loading-${this.type()}`) : undefined);
|
|
279
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperClass$$" }] : []));
|
|
280
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: LoadingNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
281
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.14", type: LoadingNFCC, isStandalone: true, selector: "app-loading", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n <span\n [class]=\"attr()?.class | mergeClass: ('loading' | cssPrefix)\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [ngClass]=\"wrapperClass$$()\"\n ></span>\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }] });
|
|
282
|
+
}
|
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: LoadingNFCC, decorators: [{
|
|
284
|
+
type: Component,
|
|
285
|
+
args: [{ selector: 'app-loading', imports: [AttributesDirective, MatIcon, NgClass, CssPrefixPipe, MergeClassPipe], template: "<ng-template #templateRef let-attr=\"attributes\">\n <span\n [class]=\"attr()?.class | mergeClass: ('loading' | cssPrefix)\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [ngClass]=\"wrapperClass$$()\"\n ></span>\n</ng-template>\n" }]
|
|
286
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
|
|
287
|
+
|
|
288
|
+
class ProgressNFCC {
|
|
289
|
+
static __version = 2;
|
|
290
|
+
templateRef = viewChild.required('templateRef');
|
|
291
|
+
color = input(...(ngDevMode ? [undefined, { debugName: "color" }] : []));
|
|
292
|
+
value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
293
|
+
max = input(100, ...(ngDevMode ? [{ debugName: "max" }] : []));
|
|
294
|
+
#theme = inject(ThemeService);
|
|
295
|
+
wrapperClass$ = computed(() => {
|
|
296
|
+
return this.#theme.setClass(this.#theme.setColor('progress', this.color()));
|
|
297
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperClass$" }] : []));
|
|
298
|
+
isNumber(value) {
|
|
299
|
+
return typeof value === 'number';
|
|
300
|
+
}
|
|
301
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: ProgressNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
302
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: ProgressNFCC, isStandalone: true, selector: "app-progress", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n @if (isNumber | pure: value()) {\n <progress\n [value]=\"value()\"\n [max]=\"max()\"\n [class]=\"attr()?.class | mergeClass: ('progress' | cssPrefix)\"\n [ngClass]=\"wrapperClass$()\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n ></progress>\n } @else {\n <progress\n [max]=\"max()\"\n [class]=\"attr()?.class | mergeClass: ('progress' | cssPrefix)\"\n [ngClass]=\"wrapperClass$()\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n ></progress>\n }\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }, { kind: "pipe", type: PurePipe, name: "pure" }] });
|
|
303
|
+
}
|
|
304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: ProgressNFCC, decorators: [{
|
|
305
|
+
type: Component,
|
|
306
|
+
args: [{ selector: 'app-progress', imports: [AttributesDirective, MatIcon, NgClass, CssPrefixPipe, MergeClassPipe, PurePipe], template: "<ng-template #templateRef let-attr=\"attributes\">\n @if (isNumber | pure: value()) {\n <progress\n [value]=\"value()\"\n [max]=\"max()\"\n [class]=\"attr()?.class | mergeClass: ('progress' | cssPrefix)\"\n [ngClass]=\"wrapperClass$()\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n ></progress>\n } @else {\n <progress\n [max]=\"max()\"\n [class]=\"attr()?.class | mergeClass: ('progress' | cssPrefix)\"\n [ngClass]=\"wrapperClass$()\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n ></progress>\n }\n</ng-template>\n" }]
|
|
307
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }] } });
|
|
308
|
+
|
|
309
|
+
class RadialProgressNFCC {
|
|
310
|
+
static __version = 2;
|
|
311
|
+
templateRef = viewChild.required('templateRef');
|
|
312
|
+
value = input(0, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
313
|
+
valueMap = input((value) => {
|
|
314
|
+
return `${value * 100}%`;
|
|
315
|
+
}, ...(ngDevMode ? [{ debugName: "valueMap" }] : []));
|
|
316
|
+
strokeWidth = input(...(ngDevMode ? [undefined, { debugName: "strokeWidth" }] : []));
|
|
317
|
+
value$$ = computed(() => {
|
|
318
|
+
return this.value() * 100;
|
|
319
|
+
}, ...(ngDevMode ? [{ debugName: "value$$" }] : []));
|
|
320
|
+
#theme = inject(ThemeService);
|
|
321
|
+
wrapperStyle$$ = computed(() => {
|
|
322
|
+
const obj = {};
|
|
323
|
+
if (typeof this.strokeWidth() === 'string') {
|
|
324
|
+
obj[this.#theme.addVarPrefix('thickness')] = this.strokeWidth();
|
|
325
|
+
}
|
|
326
|
+
if (typeof this.value$$() === 'number') {
|
|
327
|
+
obj[this.#theme.addVarPrefix('value')] = `${this.value$$()}`;
|
|
328
|
+
}
|
|
329
|
+
return obj;
|
|
330
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperStyle$$" }] : []));
|
|
331
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: RadialProgressNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
332
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.14", type: RadialProgressNFCC, isStandalone: true, selector: "app-radial-progress", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, valueMap: { classPropertyName: "valueMap", publicName: "valueMap", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n <div\n [aria-valuenow]=\"value$$()\"\n role=\"progressbar\"\n [ngStyle]=\"wrapperStyle$$()\"\n [class]=\"attr()?.class | mergeClass: ('radial-progress' | cssPrefix)\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n {{ valueMap()(value()) }}\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }] });
|
|
333
|
+
}
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: RadialProgressNFCC, decorators: [{
|
|
335
|
+
type: Component,
|
|
336
|
+
args: [{ selector: 'app-radial-progress', imports: [AttributesDirective, MatIcon, NgClass, NgStyle, CssPrefixPipe, MergeClassPipe], template: "<ng-template #templateRef let-attr=\"attributes\">\n <div\n [aria-valuenow]=\"value$$()\"\n role=\"progressbar\"\n [ngStyle]=\"wrapperStyle$$()\"\n [class]=\"attr()?.class | mergeClass: ('radial-progress' | cssPrefix)\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n {{ valueMap()(value()) }}\n </div>\n</ng-template>\n" }]
|
|
337
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], valueMap: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueMap", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }] } });
|
|
338
|
+
|
|
339
|
+
class StatusNFCC {
|
|
340
|
+
static __version = 2;
|
|
341
|
+
templateRef = viewChild.required('templateRef');
|
|
342
|
+
content = input('Default', ...(ngDevMode ? [{ debugName: "content" }] : []));
|
|
343
|
+
color = input(...(ngDevMode ? [undefined, { debugName: "color" }] : []));
|
|
344
|
+
size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
345
|
+
animatePing = input(...(ngDevMode ? [undefined, { debugName: "animatePing" }] : []));
|
|
346
|
+
animateBounce = input(...(ngDevMode ? [undefined, { debugName: "animateBounce" }] : []));
|
|
347
|
+
#theme = inject(ThemeService);
|
|
348
|
+
wrapperClass$ = computed(() => {
|
|
349
|
+
return this.#theme.setClass(this.animatePing() ? this.#theme.addPrefix('animate-ping') : undefined, this.animateBounce() ? this.#theme.addPrefix('animate-bounce') : undefined, this.#theme.setColor('status', this.color()), this.#theme.setSize('status', this.size()));
|
|
350
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperClass$" }] : []));
|
|
351
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: StatusNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
352
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: StatusNFCC, isStandalone: true, selector: "app-status", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, animatePing: { classPropertyName: "animatePing", publicName: "animatePing", isSignal: true, isRequired: false, transformFunction: null }, animateBounce: { classPropertyName: "animateBounce", publicName: "animateBounce", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n <div\n [class]=\"attr()?.class | mergeClass: 'flex items-center gap-2'\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (animatePing()) {\n <div class=\"{{ 'inline-grid *:[grid-area:1/1]' | twPrefix }}\">\n <div class=\"{{ 'status' | cssPrefix }}\" [ngClass]=\"wrapperClass$()\"></div>\n <div class=\"{{ 'status' | cssPrefix }}\" [ngClass]=\"wrapperClass$()\"></div>\n </div>\n } @else {\n <div class=\"{{ 'status' | cssPrefix }}\" [ngClass]=\"wrapperClass$()\"></div>\n }\n @if (content(); as value) {\n <span>\n {{ value }}\n </span>\n }\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: TwPrefixPipe, name: "twPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }] });
|
|
353
|
+
}
|
|
354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: StatusNFCC, decorators: [{
|
|
355
|
+
type: Component,
|
|
356
|
+
args: [{ selector: 'app-status', imports: [AttributesDirective, NgClass, CssPrefixPipe, TwPrefixPipe, MergeClassPipe], template: "<ng-template #templateRef let-attr=\"attributes\">\n <div\n [class]=\"attr()?.class | mergeClass: 'flex items-center gap-2'\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (animatePing()) {\n <div class=\"{{ 'inline-grid *:[grid-area:1/1]' | twPrefix }}\">\n <div class=\"{{ 'status' | cssPrefix }}\" [ngClass]=\"wrapperClass$()\"></div>\n <div class=\"{{ 'status' | cssPrefix }}\" [ngClass]=\"wrapperClass$()\"></div>\n </div>\n } @else {\n <div class=\"{{ 'status' | cssPrefix }}\" [ngClass]=\"wrapperClass$()\"></div>\n }\n @if (content(); as value) {\n <span>\n {{ value }}\n </span>\n }\n </div>\n</ng-template>\n" }]
|
|
357
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], animatePing: [{ type: i0.Input, args: [{ isSignal: true, alias: "animatePing", required: false }] }], animateBounce: [{ type: i0.Input, args: [{ isSignal: true, alias: "animateBounce", required: false }] }] } });
|
|
358
|
+
|
|
359
|
+
class ThemeControllerNFCC {
|
|
360
|
+
static __version = 2;
|
|
361
|
+
templateRef = viewChild.required('templateRef');
|
|
362
|
+
value = input('synthwave', ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
363
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: ThemeControllerNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
364
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.14", type: ThemeControllerNFCC, isStandalone: true, selector: "app-theme-controller", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n <input\n type=\"checkbox\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [class]=\"attr()?.class | mergeClass: ('toggle theme-controller' | cssPrefix)\"\n [value]=\"value()\"\n />\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }] });
|
|
365
|
+
}
|
|
366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: ThemeControllerNFCC, decorators: [{
|
|
367
|
+
type: Component,
|
|
368
|
+
args: [{ selector: 'app-theme-controller', imports: [AttributesDirective, CssPrefixPipe, MergeClassPipe], template: "<ng-template #templateRef let-attr=\"attributes\">\n <input\n type=\"checkbox\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [class]=\"attr()?.class | mergeClass: ('toggle theme-controller' | cssPrefix)\"\n [value]=\"value()\"\n />\n</ng-template>\n" }]
|
|
369
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
|
|
370
|
+
|
|
371
|
+
class DropdownNFCC {
|
|
372
|
+
static __version = 2;
|
|
373
|
+
StrOrTemplateComponent = StrOrTemplateComponent;
|
|
374
|
+
templateRef = viewChild.required('templateRef');
|
|
375
|
+
title = input('Default', ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
376
|
+
titleClass = input(...(ngDevMode ? [undefined, { debugName: "titleClass" }] : []));
|
|
377
|
+
align = input(...(ngDevMode ? [undefined, { debugName: "align" }] : []));
|
|
378
|
+
position = input(...(ngDevMode ? [undefined, { debugName: "position" }] : []));
|
|
379
|
+
triggerAction = input(...(ngDevMode ? [undefined, { debugName: "triggerAction" }] : []));
|
|
380
|
+
content = input(...(ngDevMode ? [undefined, { debugName: "content" }] : []));
|
|
381
|
+
contentClass = input(...(ngDevMode ? [undefined, { debugName: "contentClass" }] : []));
|
|
382
|
+
#theme = inject(ThemeService);
|
|
383
|
+
wrapperClass$ = computed(() => {
|
|
384
|
+
return this.#theme.setClass(this.#theme.addPrefix('dropdown'), this.align() ? this.#theme.addPrefix(`dropdown-${this.align()}`) : undefined, this.position() ? this.#theme.addPrefix(`dropdown-${this.position()}`) : undefined, this.triggerAction() ? this.#theme.addPrefix(`dropdown-${this.triggerAction()}`) : undefined);
|
|
385
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperClass$" }] : []));
|
|
386
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: DropdownNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
387
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.14", type: DropdownNFCC, isStandalone: true, selector: "app-dropdown", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, titleClass: { classPropertyName: "titleClass", publicName: "titleClass", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, triggerAction: { classPropertyName: "triggerAction", publicName: "triggerAction", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, contentClass: { classPropertyName: "contentClass", publicName: "contentClass", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n <div\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [class]=\"attr()?.class\"\n [ngClass]=\"wrapperClass$()\"\n >\n <div\n tabindex=\"0\"\n role=\"button\"\n class=\"{{ 'btn' | cssPrefix | mergeClass: ('m-1' | twPrefix) : titleClass() }}\"\n >\n <ng-template\n [selectlessOutlet]=\"StrOrTemplateComponent\"\n [selectlessOutletInputs]=\"{ content: title }\"\n ></ng-template>\n </div>\n <div tabindex=\"-1\" class=\"{{ 'dropdown-content' | cssPrefix | mergeClass: contentClass() }}\">\n <ng-template\n [selectlessOutlet]=\"StrOrTemplateComponent\"\n [selectlessOutletInputs]=\"{ content: content }\"\n ></ng-template>\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: SelectorlessOutlet, selector: "[selectlessOutlet]", inputs: ["selectlessOutlet", "selectlessOutletInputs", "selectlessOutletOutputs", "selectlessOutletDirectives", "selectlessOutletInjector", "selectlessOutletEnvironmentInjector"], exportAs: ["selectlessOutlet"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }, { kind: "pipe", type: TwPrefixPipe, name: "twPrefix" }] });
|
|
388
|
+
}
|
|
389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: DropdownNFCC, decorators: [{
|
|
390
|
+
type: Component,
|
|
391
|
+
args: [{ selector: 'app-dropdown', imports: [
|
|
392
|
+
FormsModule,
|
|
393
|
+
AttributesDirective,
|
|
394
|
+
NgTemplateOutlet,
|
|
395
|
+
NgClass,
|
|
396
|
+
CssPrefixPipe,
|
|
397
|
+
MergeClassPipe,
|
|
398
|
+
TwPrefixPipe,
|
|
399
|
+
StrOrTemplateComponent,
|
|
400
|
+
SelectorlessOutlet,
|
|
401
|
+
], template: "<ng-template #templateRef let-attr=\"attributes\">\n <div\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n [class]=\"attr()?.class\"\n [ngClass]=\"wrapperClass$()\"\n >\n <div\n tabindex=\"0\"\n role=\"button\"\n class=\"{{ 'btn' | cssPrefix | mergeClass: ('m-1' | twPrefix) : titleClass() }}\"\n >\n <ng-template\n [selectlessOutlet]=\"StrOrTemplateComponent\"\n [selectlessOutletInputs]=\"{ content: title }\"\n ></ng-template>\n </div>\n <div tabindex=\"-1\" class=\"{{ 'dropdown-content' | cssPrefix | mergeClass: contentClass() }}\">\n <ng-template\n [selectlessOutlet]=\"StrOrTemplateComponent\"\n [selectlessOutletInputs]=\"{ content: content }\"\n ></ng-template>\n </div>\n </div>\n</ng-template>\n" }]
|
|
402
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], titleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "titleClass", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], triggerAction: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerAction", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], contentClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentClass", required: false }] }] } });
|
|
403
|
+
|
|
404
|
+
class StatNFCC {
|
|
405
|
+
static __version = 2;
|
|
406
|
+
StrOrTemplateComponent = StrOrTemplateComponent;
|
|
407
|
+
PiyingView = PiyingView;
|
|
408
|
+
templateRef = viewChild.required('templateRef');
|
|
409
|
+
parentPyOptions = inject(PI_INPUT_OPTIONS_TOKEN, { optional: true });
|
|
410
|
+
title = input(...(ngDevMode ? [undefined, { debugName: "title" }] : []));
|
|
411
|
+
titleClass = input(...(ngDevMode ? [undefined, { debugName: "titleClass" }] : []));
|
|
412
|
+
value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
413
|
+
valueClass = input(...(ngDevMode ? [undefined, { debugName: "valueClass" }] : []));
|
|
414
|
+
desc = input(...(ngDevMode ? [undefined, { debugName: "desc" }] : []));
|
|
415
|
+
descClass = input(...(ngDevMode ? [undefined, { debugName: "descClass" }] : []));
|
|
416
|
+
figure = input(...(ngDevMode ? [undefined, { debugName: "figure" }] : []));
|
|
417
|
+
figureClass = input(...(ngDevMode ? [undefined, { debugName: "figureClass" }] : []));
|
|
418
|
+
templateInput = (schema) => {
|
|
419
|
+
return {
|
|
420
|
+
schema: schema,
|
|
421
|
+
options: this.parentPyOptions,
|
|
422
|
+
selectorless: true,
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: StatNFCC, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
426
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: StatNFCC, isStandalone: true, selector: "app-stat", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, titleClass: { classPropertyName: "titleClass", publicName: "titleClass", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, valueClass: { classPropertyName: "valueClass", publicName: "valueClass", isSignal: true, isRequired: false, transformFunction: null }, desc: { classPropertyName: "desc", publicName: "desc", isSignal: true, isRequired: false, transformFunction: null }, descClass: { classPropertyName: "descClass", publicName: "descClass", isSignal: true, isRequired: false, transformFunction: null }, figure: { classPropertyName: "figure", publicName: "figure", isSignal: true, isRequired: false, transformFunction: null }, figureClass: { classPropertyName: "figureClass", publicName: "figureClass", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n <div\n [class]=\"'stat' | cssPrefix | mergeClass: attr?.().class\"\n [attributes]=\"attr?.()\"\n [excludes]=\"['class']\"\n >\n @if (title()) {\n <div [class]=\"'stat-title' | cssPrefix | mergeClass: titleClass()\">\n <ng-template\n [selectlessOutlet]=\"PiyingView\"\n [selectlessOutletInputs]=\"templateInput | pure: title\"\n ></ng-template>\n </div>\n }\n @if (value()) {\n <div [class]=\"'stat-value' | cssPrefix | mergeClass: valueClass()\">\n <ng-template\n [selectlessOutlet]=\"PiyingView\"\n [selectlessOutletInputs]=\"templateInput | pure: value\"\n ></ng-template>\n </div>\n }\n @if (desc()) {\n <div [class]=\"'stat-desc' | cssPrefix | mergeClass: descClass()\">\n <ng-template\n [selectlessOutlet]=\"PiyingView\"\n [selectlessOutletInputs]=\"templateInput | pure: desc\"\n ></ng-template>\n </div>\n }\n @if (figure()) {\n <div [class]=\"'stat-figure' | cssPrefix | mergeClass: figureClass()\">\n <ng-template\n [selectlessOutlet]=\"PiyingView\"\n [selectlessOutletInputs]=\"templateInput | pure: figure\"\n ></ng-template>\n </div>\n }\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: SelectorlessOutlet, selector: "[selectlessOutlet]", inputs: ["selectlessOutlet", "selectlessOutletInputs", "selectlessOutletOutputs", "selectlessOutletDirectives", "selectlessOutletInjector", "selectlessOutletEnvironmentInjector"], exportAs: ["selectlessOutlet"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }, { kind: "pipe", type: PurePipe, name: "pure" }] });
|
|
427
|
+
}
|
|
428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: StatNFCC, decorators: [{
|
|
429
|
+
type: Component,
|
|
430
|
+
args: [{ selector: 'app-stat', imports: [
|
|
431
|
+
AttributesDirective,
|
|
432
|
+
NgClass,
|
|
433
|
+
CssPrefixPipe,
|
|
434
|
+
SelectorlessOutlet,
|
|
435
|
+
StrOrTemplateComponent,
|
|
436
|
+
RouterLink,
|
|
437
|
+
RouterLinkActive,
|
|
438
|
+
NgTemplateOutlet,
|
|
439
|
+
MatIconModule,
|
|
440
|
+
MergeClassPipe,
|
|
441
|
+
JsonPipe,
|
|
442
|
+
MergeClassPipe,
|
|
443
|
+
PurePipe,
|
|
444
|
+
], template: "<ng-template #templateRef let-attr=\"attributes\">\n <div\n [class]=\"'stat' | cssPrefix | mergeClass: attr?.().class\"\n [attributes]=\"attr?.()\"\n [excludes]=\"['class']\"\n >\n @if (title()) {\n <div [class]=\"'stat-title' | cssPrefix | mergeClass: titleClass()\">\n <ng-template\n [selectlessOutlet]=\"PiyingView\"\n [selectlessOutletInputs]=\"templateInput | pure: title\"\n ></ng-template>\n </div>\n }\n @if (value()) {\n <div [class]=\"'stat-value' | cssPrefix | mergeClass: valueClass()\">\n <ng-template\n [selectlessOutlet]=\"PiyingView\"\n [selectlessOutletInputs]=\"templateInput | pure: value\"\n ></ng-template>\n </div>\n }\n @if (desc()) {\n <div [class]=\"'stat-desc' | cssPrefix | mergeClass: descClass()\">\n <ng-template\n [selectlessOutlet]=\"PiyingView\"\n [selectlessOutletInputs]=\"templateInput | pure: desc\"\n ></ng-template>\n </div>\n }\n @if (figure()) {\n <div [class]=\"'stat-figure' | cssPrefix | mergeClass: figureClass()\">\n <ng-template\n [selectlessOutlet]=\"PiyingView\"\n [selectlessOutletInputs]=\"templateInput | pure: figure\"\n ></ng-template>\n </div>\n }\n </div>\n</ng-template>\n" }]
|
|
445
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], titleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "titleClass", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], valueClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueClass", required: false }] }], desc: [{ type: i0.Input, args: [{ isSignal: true, alias: "desc", required: false }] }], descClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "descClass", required: false }] }], figure: [{ type: i0.Input, args: [{ isSignal: true, alias: "figure", required: false }] }], figureClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "figureClass", required: false }] }] } });
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Generated bundle index. Do not edit.
|
|
449
|
+
*/
|
|
450
|
+
|
|
451
|
+
export { AlertNFCC, AvatarNFCC, BadgeNFCC, BreadcrumbsNFCC, ButtonNFCC, DividerNFCC, DropdownNFCC, FabNFCC, KbdNFCC, LoadingNFCC, ProgressNFCC, RadialProgressNFCC, StatNFCC, StatusNFCC, ThemeControllerNFCC };
|
|
452
|
+
//# sourceMappingURL=piying-lib-angular-daisyui-non-field-control.mjs.map
|