@unipin/angular-applet 21.1.2 → 21.1.3
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 +1 -1
- package/fesm2022/unipin-angular-applet-accordion.mjs +23 -23
- package/fesm2022/unipin-angular-applet-accordion.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-alert-dialog.mjs +27 -10
- package/fesm2022/unipin-angular-applet-alert-dialog.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-alert.mjs +13 -13
- package/fesm2022/unipin-angular-applet-alert.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-approval.mjs +10 -10
- package/fesm2022/unipin-angular-applet-approval.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-auth.mjs +23 -23
- package/fesm2022/unipin-angular-applet-auth.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-avatar.mjs +4 -4
- package/fesm2022/unipin-angular-applet-avatar.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-badge.mjs +5 -5
- package/fesm2022/unipin-angular-applet-badge.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-buttons.mjs +10 -10
- package/fesm2022/unipin-angular-applet-buttons.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-calendar.mjs +23 -23
- package/fesm2022/unipin-angular-applet-calendar.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-collapsible.mjs +14 -14
- package/fesm2022/unipin-angular-applet-collapsible.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-common.mjs +25 -25
- package/fesm2022/unipin-angular-applet-common.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-containers.mjs +20 -20
- package/fesm2022/unipin-angular-applet-containers.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-dialog.mjs +72 -53
- package/fesm2022/unipin-angular-applet-dialog.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-forms.mjs +437 -267
- package/fesm2022/unipin-angular-applet-forms.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-froala.mjs +8 -8
- package/fesm2022/unipin-angular-applet-froala.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-infinite-scroll.mjs +5 -5
- package/fesm2022/unipin-angular-applet-infinite-scroll.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-json-viewer.mjs +7 -7
- package/fesm2022/unipin-angular-applet-json-viewer.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-kbd.mjs +4 -4
- package/fesm2022/unipin-angular-applet-kbd.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-loading-dialog.mjs +8 -8
- package/fesm2022/unipin-angular-applet-loading-dialog.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-markdown.mjs +17 -17
- package/fesm2022/unipin-angular-applet-markdown.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-popover.mjs +18 -18
- package/fesm2022/unipin-angular-applet-popover.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-progress-bar.mjs +7 -7
- package/fesm2022/unipin-angular-applet-progress-bar.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-skeleton.mjs +4 -4
- package/fesm2022/unipin-angular-applet-skeleton.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-spinner.mjs +5 -5
- package/fesm2022/unipin-angular-applet-spinner.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-stepper.mjs +288 -0
- package/fesm2022/unipin-angular-applet-stepper.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-swipeable.mjs +24 -24
- package/fesm2022/unipin-angular-applet-swipeable.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-tabs.mjs +19 -19
- package/fesm2022/unipin-angular-applet-tabs.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-tooltip.mjs +5 -5
- package/fesm2022/unipin-angular-applet-tooltip.mjs.map +1 -1
- package/package.json +5 -1
- package/types/unipin-angular-applet-alert-dialog.d.ts +12 -1
- package/types/unipin-angular-applet-dialog.d.ts +5 -2
- package/types/unipin-angular-applet-forms.d.ts +87 -45
- package/types/unipin-angular-applet-stepper.d.ts +43 -0
|
@@ -26,16 +26,16 @@ const tabsVariants = cva(`
|
|
|
26
26
|
|
|
27
27
|
class UpTabsComponent {
|
|
28
28
|
constructor() {
|
|
29
|
-
this.size = input('md',
|
|
30
|
-
this.variant = input('default',
|
|
29
|
+
this.size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
30
|
+
this.variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
31
31
|
this.inlineStyle = input('', { ...(ngDevMode ? { debugName: "inlineStyle" } : {}), alias: 'class' });
|
|
32
32
|
this.defaultActiveTab = input(null, { ...(ngDevMode ? { debugName: "defaultActiveTab" } : {}), alias: 'default' });
|
|
33
|
-
this.activeTab = signal(null,
|
|
33
|
+
this.activeTab = signal(null, ...(ngDevMode ? [{ debugName: "activeTab" }] : []));
|
|
34
34
|
this.tabsClass = computed(() => {
|
|
35
35
|
return up(tabsVariants({
|
|
36
36
|
variant: this.variant()
|
|
37
37
|
}), this.inlineStyle());
|
|
38
|
-
},
|
|
38
|
+
}, ...(ngDevMode ? [{ debugName: "tabsClass" }] : []));
|
|
39
39
|
effect(() => {
|
|
40
40
|
if (this.activeTab() === null &&
|
|
41
41
|
this.defaultActiveTab()) {
|
|
@@ -46,8 +46,8 @@ class UpTabsComponent {
|
|
|
46
46
|
setActive(tab) {
|
|
47
47
|
this.activeTab.set(tab);
|
|
48
48
|
}
|
|
49
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
50
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: UpTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
50
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: UpTabsComponent, isStandalone: true, selector: "up-tabs", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, inlineStyle: { classPropertyName: "inlineStyle", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, defaultActiveTab: { classPropertyName: "defaultActiveTab", publicName: "default", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
51
51
|
<div [class]="tabsClass()">
|
|
52
52
|
<ng-content select="[upTabsTrigger]" />
|
|
53
53
|
</div>
|
|
@@ -55,7 +55,7 @@ class UpTabsComponent {
|
|
|
55
55
|
<ng-content select="[upTabsContent]" />
|
|
56
56
|
`, isInline: true }); }
|
|
57
57
|
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: UpTabsComponent, decorators: [{
|
|
59
59
|
type: Component,
|
|
60
60
|
args: [{
|
|
61
61
|
standalone: true,
|
|
@@ -73,12 +73,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImpor
|
|
|
73
73
|
class UpTabsContentDirective {
|
|
74
74
|
constructor(parent) {
|
|
75
75
|
this.parent = parent;
|
|
76
|
-
this.value = input.required(
|
|
76
|
+
this.value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
77
77
|
this.inlineStyle = input('', { ...(ngDevMode ? { debugName: "inlineStyle" } : {}), alias: 'class' });
|
|
78
|
-
this.isActive = signal(false,
|
|
78
|
+
this.isActive = signal(false, ...(ngDevMode ? [{ debugName: "isActive" }] : []));
|
|
79
79
|
this.tabsContentClass = computed(() => {
|
|
80
80
|
return up('block', this.inlineStyle());
|
|
81
|
-
},
|
|
81
|
+
}, ...(ngDevMode ? [{ debugName: "tabsContentClass" }] : []));
|
|
82
82
|
effect(() => {
|
|
83
83
|
if (!this.parent) {
|
|
84
84
|
return;
|
|
@@ -86,10 +86,10 @@ class UpTabsContentDirective {
|
|
|
86
86
|
this.isActive.set(this.parent.activeTab() === this.value());
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
90
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.
|
|
89
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: UpTabsContentDirective, deps: [{ token: UpTabsComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
90
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.6", type: UpTabsContentDirective, isStandalone: true, selector: "[upTabsContent]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, inlineStyle: { classPropertyName: "inlineStyle", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "hidden": "!isActive()", "class": "tabsContentClass()" } }, exportAs: ["upTabsContent"], ngImport: i0 }); }
|
|
91
91
|
}
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: UpTabsContentDirective, decorators: [{
|
|
93
93
|
type: Directive,
|
|
94
94
|
args: [{
|
|
95
95
|
standalone: true,
|
|
@@ -105,9 +105,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImpor
|
|
|
105
105
|
class UpTabsTriggerDirective {
|
|
106
106
|
constructor(parent) {
|
|
107
107
|
this.parent = parent;
|
|
108
|
-
this.value = input.required(
|
|
109
|
-
this.isActive = signal(false,
|
|
110
|
-
this.tabsTriggerClass = computed(() => up('tabs-trigger'),
|
|
108
|
+
this.value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
109
|
+
this.isActive = signal(false, ...(ngDevMode ? [{ debugName: "isActive" }] : []));
|
|
110
|
+
this.tabsTriggerClass = computed(() => up('tabs-trigger font-medium'), ...(ngDevMode ? [{ debugName: "tabsTriggerClass" }] : []));
|
|
111
111
|
effect(() => {
|
|
112
112
|
if (!this.parent)
|
|
113
113
|
return;
|
|
@@ -117,10 +117,10 @@ class UpTabsTriggerDirective {
|
|
|
117
117
|
activate() {
|
|
118
118
|
this.parent?.setActive(this.value());
|
|
119
119
|
}
|
|
120
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
121
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.
|
|
120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: UpTabsTriggerDirective, deps: [{ token: UpTabsComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
121
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.6", type: UpTabsTriggerDirective, isStandalone: true, selector: "[upTabsTrigger]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "click": "activate()" }, properties: { "class": "tabsTriggerClass()", "attr.data-state": "isActive()? 'active' : 'inactive'" } }, exportAs: ["upTabsTrigger"], ngImport: i0 }); }
|
|
122
122
|
}
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: UpTabsTriggerDirective, decorators: [{
|
|
124
124
|
type: Directive,
|
|
125
125
|
args: [{
|
|
126
126
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unipin-angular-applet-tabs.mjs","sources":["../../../projects/unipin-angular/tabs/variants/tabs.variant.ts","../../../projects/unipin-angular/tabs/components/tabs.component.ts","../../../projects/unipin-angular/tabs/directives/tabs-content.directive.ts","../../../projects/unipin-angular/tabs/directives/tabs-trigger.directive.ts","../../../projects/unipin-angular/tabs/unipin-angular-applet-tabs.ts"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\n\nexport const tabsVariants = cva(\n `\n flex mb-2 w-max p-1 rounded-lg\n [&>.tabs-trigger]:px-2.5 [&>.tabs-trigger]:py-1.5 [&>.tabs-trigger]:text-sm [&>.tabs-trigger]:transition-colors [&>.tabs-trigger]:cursor-pointer\n `,\n {\n variants: {\n variant: {\n default: `\n bg-gray-100 \n [&>.tabs-trigger]:data-[state=active]:bg-white [&>.tabs-trigger]:data-[state=active]:shadow-lg [&>.tabs-trigger]:data-[state=active]:rounded-lg [&>.tabs-trigger]:hover:opacity-[60%]\n `,\n underline: `\n bg-none \n [&>.tabs-trigger]:border-b-2 [&>.tabs-trigger]:border-transparent [&>.tabs-trigger]:hover:text-primary [&>.tabs-trigger]:text-gray-500 [&>.tabs-trigger]:data-[state=active]:border-primary [&>.tabs-trigger]:data-[state=active]:text-primary\n `,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\nexport type TabsVariants = VariantProps<typeof tabsVariants>;\n","import { Component, computed, effect, input, InputSignal, signal, WritableSignal } from '@angular/core';\nimport type { ClassValue } from 'clsx';\nimport { up } from '@unipin/angular-applet/common';\nimport { tabsVariants } from '../variants/tabs.variant';\n\n@Component({\n standalone: true,\n selector: 'up-tabs',\n template: `\n <div [class]=\"tabsClass()\">\n <ng-content select=\"[upTabsTrigger]\" />\n </div>\n\n <ng-content select=\"[upTabsContent]\" />\n `,\n})\nexport class UpTabsComponent {\n\n public readonly size: InputSignal<'sm' | 'md' | 'lg'> = input<'sm' | 'md' | 'lg'>('md');\n public readonly variant: InputSignal<'underline' | 'default'> = input<'underline' | 'default'>('default');\n\n public readonly inlineStyle: InputSignal<ClassValue> = input<ClassValue>('', { alias: 'class' });\n public readonly defaultActiveTab: InputSignal<string | null> = input<string | null>(null, { alias: 'default' });\n\n public readonly activeTab: WritableSignal<string | null> = signal<string | null>(null);\n public readonly tabsClass = computed(\n () => {\n return up(\n tabsVariants(\n {\n variant: this.variant()\n }\n ),\n this.inlineStyle()\n );\n }\n );\n\n constructor() {\n effect(\n () => {\n if (\n this.activeTab() === null && \n this.defaultActiveTab()\n ) {\n this.activeTab.set(this.defaultActiveTab());\n }\n }\n );\n }\n\n public setActive(tab: string): void{\n this.activeTab.set(tab);\n }\n}\n","import { computed, Directive, effect, input, InputSignal, signal, WritableSignal } from '@angular/core';\nimport { ClassValue } from 'clsx';\nimport { up } from '@unipin/angular-applet/common';\nimport { UpTabsComponent } from '../components/tabs.component';\n\n@Directive({\n standalone: true,\n exportAs: 'upTabsContent',\n selector: '[upTabsContent]',\n host: {\n '[hidden]': '!isActive()',\n '[class]': 'tabsContentClass()',\n }\n})\nexport class UpTabsContentDirective {\n\n public readonly value: InputSignal<string> = input.required<string>();\n public readonly inlineStyle: InputSignal<ClassValue> = input<ClassValue>('', { alias: 'class' });\n\n public readonly isActive: WritableSignal<boolean> = signal(false);\n public readonly tabsContentClass = computed(\n () => {\n return up('block', this.inlineStyle());\n }\n );\n\n constructor(\n protected readonly parent: UpTabsComponent\n ) {\n effect(\n () => {\n if (!this.parent) {\n return;\n }\n \n this.isActive.set(\n this.parent.activeTab() === this.value()\n );\n }\n );\n }\n}\n","import { computed, Directive, effect, input, signal } from '@angular/core';\nimport { up } from '@unipin/angular-applet/common';\nimport { UpTabsComponent } from '../components/tabs.component';\n\n@Directive({\n standalone: true,\n exportAs: 'upTabsTrigger',\n selector: '[upTabsTrigger]',\n host: {\n '(click)': 'activate()',\n '[class]': 'tabsTriggerClass()',\n '[attr.data-state]': `isActive()? 'active' : 'inactive'`,\n }\n})\nexport class UpTabsTriggerDirective {\n \n public readonly value = input.required<string>();\n \n public readonly isActive = signal(false);\n public readonly tabsTriggerClass = computed(() => up('tabs-trigger'));\n\n constructor(\n protected readonly parent: UpTabsComponent\n ) {\n effect(\n () => {\n if (!this.parent) return;\n this.isActive.set(this.parent.activeTab() === this.value());\n }\n );\n }\n\n public activate(): void{\n this.parent?.setActive(this.value());\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.UpTabsComponent"],"mappings":";;;;;AAEO,MAAM,YAAY,GAAG,GAAG,CAC7B;;;GAGC,EACD;AACE,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE;;;AAGR,QAAA,CAAA;AACD,YAAA,SAAS,EAAE;;;AAGV,QAAA,CAAA;AACF,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,SAAS;AACnB,KAAA;AACF,CAAA,CACF;;MCRY,eAAe,CAAA;AAsB1B,IAAA,WAAA,GAAA;AApBgB,QAAA,IAAA,CAAA,IAAI,GAAoC,KAAK,CAAqB,IAAI,kDAAC;AACvE,QAAA,IAAA,CAAA,OAAO,GAAyC,KAAK,CAA0B,SAAS,qDAAC;QAEzF,IAAA,CAAA,WAAW,GAA4B,KAAK,CAAa,EAAE,wDAAI,KAAK,EAAE,OAAO,EAAA,CAAG;QAChF,IAAA,CAAA,gBAAgB,GAA+B,KAAK,CAAgB,IAAI,6DAAI,KAAK,EAAE,SAAS,EAAA,CAAG;AAE/F,QAAA,IAAA,CAAA,SAAS,GAAkC,MAAM,CAAgB,IAAI,uDAAC;AACtE,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAClC,MAAK;YACH,OAAO,EAAE,CACP,YAAY,CACV;AACE,gBAAA,OAAO,EAAE,IAAI,CAAC,OAAO;AACtB,aAAA,CACF,EACD,IAAI,CAAC,WAAW,EAAE,CACnB;AACH,QAAA,CAA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
|
1
|
+
{"version":3,"file":"unipin-angular-applet-tabs.mjs","sources":["../../../projects/unipin-angular/tabs/variants/tabs.variant.ts","../../../projects/unipin-angular/tabs/components/tabs.component.ts","../../../projects/unipin-angular/tabs/directives/tabs-content.directive.ts","../../../projects/unipin-angular/tabs/directives/tabs-trigger.directive.ts","../../../projects/unipin-angular/tabs/unipin-angular-applet-tabs.ts"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\n\nexport const tabsVariants = cva(\n `\n flex mb-2 w-max p-1 rounded-lg\n [&>.tabs-trigger]:px-2.5 [&>.tabs-trigger]:py-1.5 [&>.tabs-trigger]:text-sm [&>.tabs-trigger]:transition-colors [&>.tabs-trigger]:cursor-pointer\n `,\n {\n variants: {\n variant: {\n default: `\n bg-gray-100 \n [&>.tabs-trigger]:data-[state=active]:bg-white [&>.tabs-trigger]:data-[state=active]:shadow-lg [&>.tabs-trigger]:data-[state=active]:rounded-lg [&>.tabs-trigger]:hover:opacity-[60%]\n `,\n underline: `\n bg-none \n [&>.tabs-trigger]:border-b-2 [&>.tabs-trigger]:border-transparent [&>.tabs-trigger]:hover:text-primary [&>.tabs-trigger]:text-gray-500 [&>.tabs-trigger]:data-[state=active]:border-primary [&>.tabs-trigger]:data-[state=active]:text-primary\n `,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\nexport type TabsVariants = VariantProps<typeof tabsVariants>;\n","import { Component, computed, effect, input, InputSignal, signal, WritableSignal } from '@angular/core';\nimport type { ClassValue } from 'clsx';\nimport { up } from '@unipin/angular-applet/common';\nimport { tabsVariants } from '../variants/tabs.variant';\n\n@Component({\n standalone: true,\n selector: 'up-tabs',\n template: `\n <div [class]=\"tabsClass()\">\n <ng-content select=\"[upTabsTrigger]\" />\n </div>\n\n <ng-content select=\"[upTabsContent]\" />\n `,\n})\nexport class UpTabsComponent {\n\n public readonly size: InputSignal<'sm' | 'md' | 'lg'> = input<'sm' | 'md' | 'lg'>('md');\n public readonly variant: InputSignal<'underline' | 'default'> = input<'underline' | 'default'>('default');\n\n public readonly inlineStyle: InputSignal<ClassValue> = input<ClassValue>('', { alias: 'class' });\n public readonly defaultActiveTab: InputSignal<string | null> = input<string | null>(null, { alias: 'default' });\n\n public readonly activeTab: WritableSignal<string | null> = signal<string | null>(null);\n public readonly tabsClass = computed(\n () => {\n return up(\n tabsVariants(\n {\n variant: this.variant()\n }\n ),\n this.inlineStyle()\n );\n }\n );\n\n constructor() {\n effect(\n () => {\n if (\n this.activeTab() === null && \n this.defaultActiveTab()\n ) {\n this.activeTab.set(this.defaultActiveTab());\n }\n }\n );\n }\n\n public setActive(tab: string): void{\n this.activeTab.set(tab);\n }\n}\n","import { computed, Directive, effect, input, InputSignal, signal, WritableSignal } from '@angular/core';\nimport { ClassValue } from 'clsx';\nimport { up } from '@unipin/angular-applet/common';\nimport { UpTabsComponent } from '../components/tabs.component';\n\n@Directive({\n standalone: true,\n exportAs: 'upTabsContent',\n selector: '[upTabsContent]',\n host: {\n '[hidden]': '!isActive()',\n '[class]': 'tabsContentClass()',\n }\n})\nexport class UpTabsContentDirective {\n\n public readonly value: InputSignal<string> = input.required<string>();\n public readonly inlineStyle: InputSignal<ClassValue> = input<ClassValue>('', { alias: 'class' });\n\n public readonly isActive: WritableSignal<boolean> = signal(false);\n public readonly tabsContentClass = computed(\n () => {\n return up('block', this.inlineStyle());\n }\n );\n\n constructor(\n protected readonly parent: UpTabsComponent\n ) {\n effect(\n () => {\n if (!this.parent) {\n return;\n }\n \n this.isActive.set(\n this.parent.activeTab() === this.value()\n );\n }\n );\n }\n}\n","import { computed, Directive, effect, input, signal } from '@angular/core';\nimport { up } from '@unipin/angular-applet/common';\nimport { UpTabsComponent } from '../components/tabs.component';\n\n@Directive({\n standalone: true,\n exportAs: 'upTabsTrigger',\n selector: '[upTabsTrigger]',\n host: {\n '(click)': 'activate()',\n '[class]': 'tabsTriggerClass()',\n '[attr.data-state]': `isActive()? 'active' : 'inactive'`,\n }\n})\nexport class UpTabsTriggerDirective {\n \n public readonly value = input.required<string>();\n \n public readonly isActive = signal(false);\n public readonly tabsTriggerClass = computed(() => up('tabs-trigger font-medium'));\n\n constructor(\n protected readonly parent: UpTabsComponent\n ) {\n effect(\n () => {\n if (!this.parent) return;\n this.isActive.set(this.parent.activeTab() === this.value());\n }\n );\n }\n\n public activate(): void{\n this.parent?.setActive(this.value());\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.UpTabsComponent"],"mappings":";;;;;AAEO,MAAM,YAAY,GAAG,GAAG,CAC7B;;;GAGC,EACD;AACE,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE;;;AAGR,QAAA,CAAA;AACD,YAAA,SAAS,EAAE;;;AAGV,QAAA,CAAA;AACF,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,SAAS;AACnB,KAAA;AACF,CAAA,CACF;;MCRY,eAAe,CAAA;AAsB1B,IAAA,WAAA,GAAA;AApBgB,QAAA,IAAA,CAAA,IAAI,GAAoC,KAAK,CAAqB,IAAI,gDAAC;AACvE,QAAA,IAAA,CAAA,OAAO,GAAyC,KAAK,CAA0B,SAAS,mDAAC;QAEzF,IAAA,CAAA,WAAW,GAA4B,KAAK,CAAa,EAAE,wDAAI,KAAK,EAAE,OAAO,EAAA,CAAG;QAChF,IAAA,CAAA,gBAAgB,GAA+B,KAAK,CAAgB,IAAI,6DAAI,KAAK,EAAE,SAAS,EAAA,CAAG;AAE/F,QAAA,IAAA,CAAA,SAAS,GAAkC,MAAM,CAAgB,IAAI,qDAAC;AACtE,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAClC,MAAK;YACH,OAAO,EAAE,CACP,YAAY,CACV;AACE,gBAAA,OAAO,EAAE,IAAI,CAAC,OAAO;AACtB,aAAA,CACF,EACD,IAAI,CAAC,WAAW,EAAE,CACnB;AACH,QAAA,CAAC,qDACF;QAGC,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 +12,13 @@ class UpTooltipDirective {
|
|
|
12
12
|
* @type {InputSignal<string>}
|
|
13
13
|
* @default ''
|
|
14
14
|
*/
|
|
15
|
-
this.toolTipText = input.required(
|
|
15
|
+
this.toolTipText = input.required(...(ngDevMode ? [{ debugName: "toolTipText" }] : []));
|
|
16
16
|
/**
|
|
17
17
|
* Input variable specifying the position of the tooltip relative to the host element.
|
|
18
18
|
* @type {InputSignal<string>}
|
|
19
19
|
* @default 'top'
|
|
20
20
|
*/
|
|
21
|
-
this.position = input('top',
|
|
21
|
+
this.position = input('top', ...(ngDevMode ? [{ debugName: "position" }] : []));
|
|
22
22
|
this._winListener = [];
|
|
23
23
|
this._hostListener = [];
|
|
24
24
|
this._tooltipElement = null;
|
|
@@ -95,10 +95,10 @@ class UpTooltipDirective {
|
|
|
95
95
|
this.renderer.setStyle(tooltipEl, 'top', `${Math.round(top)}px`);
|
|
96
96
|
this.renderer.setStyle(tooltipEl, 'left', `${Math.round(left)}px`);
|
|
97
97
|
}
|
|
98
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
99
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.
|
|
98
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: UpTooltipDirective, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
99
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.6", type: UpTooltipDirective, isStandalone: true, selector: "[upTooltip]", inputs: { toolTipText: { classPropertyName: "toolTipText", publicName: "toolTipText", isSignal: true, isRequired: true, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["upTooltip"], ngImport: i0 }); }
|
|
100
100
|
}
|
|
101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: UpTooltipDirective, decorators: [{
|
|
102
102
|
type: Directive,
|
|
103
103
|
args: [{
|
|
104
104
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unipin-angular-applet-tooltip.mjs","sources":["../../../projects/unipin-angular/tooltip/tooltip.directive.ts","../../../projects/unipin-angular/tooltip/unipin-angular-applet-tooltip.ts"],"sourcesContent":["import { Directive, ElementRef, Renderer2, OnInit, OnDestroy, input, Inject } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\n\n@Directive({\n standalone: true,\n exportAs: 'upTooltip',\n selector: '[upTooltip]',\n})\nexport class UpTooltipDirective implements OnInit, OnDestroy {\n\n /**\n * Input variable specifying the text displayed in the tooltip helper, which provides a hint to the user about the purpose of the element.\n * @type {InputSignal<string>}\n * @default ''\n */\n public readonly toolTipText = input.required<string>();\n \n /**\n * Input variable specifying the position of the tooltip relative to the host element.\n * @type {InputSignal<string>}\n * @default 'top'\n */\n public readonly position = input<'top' | 'right' | 'bottom' | 'left'>('top');\n \n protected _winListener: Array<() => void> = [];\n protected _hostListener: Array<() => void> = [];\n protected _tooltipElement: HTMLElement | null = null;\n\n constructor(\n @Inject(DOCUMENT) protected readonly doc: Document,\n protected readonly renderer: Renderer2,\n protected readonly el: ElementRef<HTMLElement>,\n ) {}\n\n public ngOnInit(): void{\n this._hostListener.push(\n this.renderer.listen(\n this.el.nativeElement, \n 'mouseenter', \n () => {\n if (this._tooltipElement) {\n this.renderer.removeClass(this._tooltipElement, 'invisible');\n return;\n }\n this._tooltipElement = this.renderer.createElement('span');\n \n this.renderer.setAttribute(\n this._tooltipElement, \n 'class', \n 'fixed z-[10000] text-white max-w-xs text-xs w-max whitespace-normal bg-[#2D3336] rounded-lg px-2 py-1 break-words pointer-events-none'\n );\n\n this.renderer.appendChild(\n this._tooltipElement, \n this.renderer.createText(\n this.toolTipText()\n )\n );\n this.renderer.appendChild(this.doc.body, this._tooltipElement);\n \n this.positionTooltip(); \n this._winListener.push(\n this.renderer.listen('window', 'scroll', () => this.positionTooltip()),\n this.renderer.listen('window', 'resize', () => this.positionTooltip())\n );\n }\n ),\n \n this.renderer.listen(\n this.el.nativeElement, \n 'mouseleave', \n () => {\n this.hideTooltip();\n }\n )\n );\n }\n\n public ngOnDestroy(): void{\n this.hideTooltip();\n\n for (const off of this._hostListener) {\n try { \n off(); \n } catch {}\n }\n this._hostListener.length = 0;\n\n for (const off of this._winListener) {\n try { \n off(); \n } catch {}\n }\n this._winListener.length = 0;\n }\n\n protected hideTooltip(): void{\n if (this._tooltipElement) {\n this.renderer.addClass(this._tooltipElement, 'invisible');\n }\n }\n\n protected positionTooltip(): void{\n if (!this._tooltipElement) {\n return;\n }\n\n const hostRect = this.el.nativeElement.getBoundingClientRect();\n const tooltipEl = this._tooltipElement as HTMLElement;\n const tooltipRect = tooltipEl.getBoundingClientRect();\n\n const gap = 8;\n let top = 0;\n let left = 0;\n\n switch (this.position()) {\n case 'top':\n top = hostRect.top - tooltipRect.height - gap;\n left = hostRect.left + (hostRect.width - tooltipRect.width) / 2;\n break;\n\n case 'left':\n top = hostRect.top + (hostRect.height - tooltipRect.height) / 2;\n left = hostRect.left - tooltipRect.width - gap;\n break;\n\n case 'right':\n top = hostRect.top + (hostRect.height - tooltipRect.height) / 2;\n left = hostRect.right + gap;\n break;\n\n default:\n top = hostRect.bottom + gap;\n left = hostRect.left + (hostRect.width - tooltipRect.width) / 2;\n break;\n }\n\n const margin = 4;\n left = Math.max(\n margin, \n Math.min(\n left, \n this.doc.defaultView?.innerWidth?? 0 - tooltipRect.width - margin\n )\n );\n \n top = Math.max(\n margin, \n Math.min(\n top, \n this.doc.defaultView?.innerHeight?? 0 - tooltipRect.height - margin\n )\n );\n this.renderer.setStyle(tooltipEl, 'top', `${ Math.round(top) }px`);\n this.renderer.setStyle(tooltipEl, 'left', `${ Math.round(left) }px`);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAQa,kBAAkB,CAAA;AAoB7B,IAAA,WAAA,CACuC,GAAa,EAC/B,QAAmB,EACnB,EAA2B,EAAA;QAFT,IAAA,CAAA,GAAG,GAAH,GAAG;QACrB,IAAA,CAAA,QAAQ,GAAR,QAAQ;QACR,IAAA,CAAA,EAAE,GAAF,EAAE;AArBvB;;;;AAIG;AACa,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"unipin-angular-applet-tooltip.mjs","sources":["../../../projects/unipin-angular/tooltip/tooltip.directive.ts","../../../projects/unipin-angular/tooltip/unipin-angular-applet-tooltip.ts"],"sourcesContent":["import { Directive, ElementRef, Renderer2, OnInit, OnDestroy, input, Inject } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\n\n@Directive({\n standalone: true,\n exportAs: 'upTooltip',\n selector: '[upTooltip]',\n})\nexport class UpTooltipDirective implements OnInit, OnDestroy {\n\n /**\n * Input variable specifying the text displayed in the tooltip helper, which provides a hint to the user about the purpose of the element.\n * @type {InputSignal<string>}\n * @default ''\n */\n public readonly toolTipText = input.required<string>();\n \n /**\n * Input variable specifying the position of the tooltip relative to the host element.\n * @type {InputSignal<string>}\n * @default 'top'\n */\n public readonly position = input<'top' | 'right' | 'bottom' | 'left'>('top');\n \n protected _winListener: Array<() => void> = [];\n protected _hostListener: Array<() => void> = [];\n protected _tooltipElement: HTMLElement | null = null;\n\n constructor(\n @Inject(DOCUMENT) protected readonly doc: Document,\n protected readonly renderer: Renderer2,\n protected readonly el: ElementRef<HTMLElement>,\n ) {}\n\n public ngOnInit(): void{\n this._hostListener.push(\n this.renderer.listen(\n this.el.nativeElement, \n 'mouseenter', \n () => {\n if (this._tooltipElement) {\n this.renderer.removeClass(this._tooltipElement, 'invisible');\n return;\n }\n this._tooltipElement = this.renderer.createElement('span');\n \n this.renderer.setAttribute(\n this._tooltipElement, \n 'class', \n 'fixed z-[10000] text-white max-w-xs text-xs w-max whitespace-normal bg-[#2D3336] rounded-lg px-2 py-1 break-words pointer-events-none'\n );\n\n this.renderer.appendChild(\n this._tooltipElement, \n this.renderer.createText(\n this.toolTipText()\n )\n );\n this.renderer.appendChild(this.doc.body, this._tooltipElement);\n \n this.positionTooltip(); \n this._winListener.push(\n this.renderer.listen('window', 'scroll', () => this.positionTooltip()),\n this.renderer.listen('window', 'resize', () => this.positionTooltip())\n );\n }\n ),\n \n this.renderer.listen(\n this.el.nativeElement, \n 'mouseleave', \n () => {\n this.hideTooltip();\n }\n )\n );\n }\n\n public ngOnDestroy(): void{\n this.hideTooltip();\n\n for (const off of this._hostListener) {\n try { \n off(); \n } catch {}\n }\n this._hostListener.length = 0;\n\n for (const off of this._winListener) {\n try { \n off(); \n } catch {}\n }\n this._winListener.length = 0;\n }\n\n protected hideTooltip(): void{\n if (this._tooltipElement) {\n this.renderer.addClass(this._tooltipElement, 'invisible');\n }\n }\n\n protected positionTooltip(): void{\n if (!this._tooltipElement) {\n return;\n }\n\n const hostRect = this.el.nativeElement.getBoundingClientRect();\n const tooltipEl = this._tooltipElement as HTMLElement;\n const tooltipRect = tooltipEl.getBoundingClientRect();\n\n const gap = 8;\n let top = 0;\n let left = 0;\n\n switch (this.position()) {\n case 'top':\n top = hostRect.top - tooltipRect.height - gap;\n left = hostRect.left + (hostRect.width - tooltipRect.width) / 2;\n break;\n\n case 'left':\n top = hostRect.top + (hostRect.height - tooltipRect.height) / 2;\n left = hostRect.left - tooltipRect.width - gap;\n break;\n\n case 'right':\n top = hostRect.top + (hostRect.height - tooltipRect.height) / 2;\n left = hostRect.right + gap;\n break;\n\n default:\n top = hostRect.bottom + gap;\n left = hostRect.left + (hostRect.width - tooltipRect.width) / 2;\n break;\n }\n\n const margin = 4;\n left = Math.max(\n margin, \n Math.min(\n left, \n this.doc.defaultView?.innerWidth?? 0 - tooltipRect.width - margin\n )\n );\n \n top = Math.max(\n margin, \n Math.min(\n top, \n this.doc.defaultView?.innerHeight?? 0 - tooltipRect.height - margin\n )\n );\n this.renderer.setStyle(tooltipEl, 'top', `${ Math.round(top) }px`);\n this.renderer.setStyle(tooltipEl, 'left', `${ Math.round(left) }px`);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAQa,kBAAkB,CAAA;AAoB7B,IAAA,WAAA,CACuC,GAAa,EAC/B,QAAmB,EACnB,EAA2B,EAAA;QAFT,IAAA,CAAA,GAAG,GAAH,GAAG;QACrB,IAAA,CAAA,QAAQ,GAAR,QAAQ;QACR,IAAA,CAAA,EAAE,GAAF,EAAE;AArBvB;;;;AAIG;AACa,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,sDAAU;AAEtD;;;;AAIG;AACa,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAsC,KAAK,oDAAC;QAElE,IAAA,CAAA,YAAY,GAAsB,EAAE;QACpC,IAAA,CAAA,aAAa,GAAsB,EAAE;QACrC,IAAA,CAAA,eAAe,GAAuB,IAAI;IAMjD;IAEI,QAAQ,GAAA;QACb,IAAI,CAAC,aAAa,CAAC,IAAI,CACrB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAClB,IAAI,CAAC,EAAE,CAAC,aAAa,EACrB,YAAY,EACZ,MAAK;AACH,YAAA,IAAI,IAAI,CAAC,eAAe,EAAE;gBACxB,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC;gBAC5D;YACF;YACA,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC;AAE1D,YAAA,IAAI,CAAC,QAAQ,CAAC,YAAY,CACxB,IAAI,CAAC,eAAe,EACpB,OAAO,EACP,uIAAuI,CACxI;YAED,IAAI,CAA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AA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,WAAW;AACrB,oBAAA,QAAQ,EAAE,aAAa;AACxB,iBAAA;;0BAsBI,MAAM;2BAAC,QAAQ;;;AC7BpB;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unipin/angular-applet",
|
|
3
|
-
"version": "21.1.
|
|
3
|
+
"version": "21.1.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "21.x.x",
|
|
6
6
|
"@angular/common": "21.x.x",
|
|
@@ -138,6 +138,10 @@
|
|
|
138
138
|
"types": "./types/unipin-angular-applet-spinner.d.ts",
|
|
139
139
|
"default": "./fesm2022/unipin-angular-applet-spinner.mjs"
|
|
140
140
|
},
|
|
141
|
+
"./stepper": {
|
|
142
|
+
"types": "./types/unipin-angular-applet-stepper.d.ts",
|
|
143
|
+
"default": "./fesm2022/unipin-angular-applet-stepper.mjs"
|
|
144
|
+
},
|
|
141
145
|
"./swipeable": {
|
|
142
146
|
"types": "./types/unipin-angular-applet-swipeable.d.ts",
|
|
143
147
|
"default": "./fesm2022/unipin-angular-applet-swipeable.mjs"
|
|
@@ -15,12 +15,23 @@ type AlertButton = {
|
|
|
15
15
|
handler?: (form?: Record<string, any>) => void;
|
|
16
16
|
};
|
|
17
17
|
type AlertFormField = {
|
|
18
|
+
type: 'text' | 'number' | 'checkbox' | 'password';
|
|
19
|
+
name: string;
|
|
20
|
+
label: string;
|
|
21
|
+
value?: unknown;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
} | {
|
|
25
|
+
type: 'select';
|
|
18
26
|
name: string;
|
|
19
27
|
label: string;
|
|
20
|
-
type: 'text' | 'number' | 'checkbox' | 'password';
|
|
21
28
|
value?: unknown;
|
|
22
29
|
required?: boolean;
|
|
23
30
|
placeholder?: string;
|
|
31
|
+
items: {
|
|
32
|
+
label: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}[];
|
|
24
35
|
};
|
|
25
36
|
|
|
26
37
|
declare class UpAlertController {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { StaticProvider, ElementRef, InjectOptions, ValueProvider, Signal, WritableSignal, Injector, RendererFactory2, TemplateRef, ViewContainerRef, EffectRef, OnDestroy, OutputRefSubscription } from '@angular/core';
|
|
2
|
+
import { StaticProvider, ElementRef, InjectOptions, ValueProvider, Signal, WritableSignal, Injector, RendererFactory2, TemplateRef, ViewContainerRef, EffectRef, AfterViewInit, OnDestroy, OutputRefSubscription } from '@angular/core';
|
|
3
3
|
import * as _angular_cdk_dialog from '@angular/cdk/dialog';
|
|
4
4
|
import { AutoFocusTarget, DialogRef, Dialog } from '@angular/cdk/dialog';
|
|
5
5
|
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
@@ -130,11 +130,14 @@ declare class UpDialogCloseDirective {
|
|
|
130
130
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpDialogCloseDirective, "button[upDialogClose]", never, { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
declare class UpDialogContentDirective {
|
|
133
|
+
declare class UpDialogContentDirective implements AfterViewInit, OnDestroy {
|
|
134
134
|
readonly dialogRef: UpDialogRef<any>;
|
|
135
135
|
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
136
136
|
readonly state: _angular_core.Signal<"open" | "closed">;
|
|
137
137
|
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
138
|
+
protected _mutationObserver: MutationObserver;
|
|
139
|
+
ngAfterViewInit(): void;
|
|
140
|
+
ngOnDestroy(): void;
|
|
138
141
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpDialogContentDirective, never>;
|
|
139
142
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpDialogContentDirective, "[upDialogContent]", ["upDialogContent"], { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
140
143
|
}
|
|
@@ -79,32 +79,6 @@ declare class UpNumberDirective extends UpInputDirective implements ControlValue
|
|
|
79
79
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpNumberDirective, "[upNumber]", ["upNumber"], { "magnifyValue": { "alias": "magnifyValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
declare class UpCheckboxDirective extends UpFieldControlComponent {
|
|
83
|
-
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
84
|
-
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
85
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpCheckboxDirective, never>;
|
|
86
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpCheckboxDirective, "[upCheckbox]", ["upCheckbox"], { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
declare class UpSwitchComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
90
|
-
readonly checked: _angular_core.ModelSignal<boolean>;
|
|
91
|
-
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
92
|
-
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
93
|
-
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
94
|
-
isTouched: boolean;
|
|
95
|
-
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
96
|
-
protected _onChange: (_val: any) => void;
|
|
97
|
-
protected _onTouched: () => void;
|
|
98
|
-
constructor();
|
|
99
|
-
writeValue(value: boolean): void;
|
|
100
|
-
registerOnChange(fn: any): void;
|
|
101
|
-
registerOnTouched(fn: any): void;
|
|
102
|
-
touch(): void;
|
|
103
|
-
toggle(): void;
|
|
104
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpSwitchComponent, never>;
|
|
105
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpSwitchComponent, "up-switch", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, never, true, never>;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
82
|
declare class UpPasswordComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
109
83
|
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
110
84
|
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
@@ -168,23 +142,68 @@ declare class UpPasswordComponent extends UpFieldControlComponent implements Con
|
|
|
168
142
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpPasswordComponent, "up-password", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; }, never, never, true, never>;
|
|
169
143
|
}
|
|
170
144
|
|
|
145
|
+
declare class UpRadioDirective extends UpFieldControlComponent {
|
|
146
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
147
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
148
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpRadioDirective, never>;
|
|
149
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpRadioDirective, "[upRadio]", ["upRadio"], { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
declare class UpSwitchComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
153
|
+
readonly checked: _angular_core.ModelSignal<boolean>;
|
|
154
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
155
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
156
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
157
|
+
isTouched: boolean;
|
|
158
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
159
|
+
protected _onChange: (_val: any) => void;
|
|
160
|
+
protected _onTouched: () => void;
|
|
161
|
+
constructor();
|
|
162
|
+
writeValue(value: boolean): void;
|
|
163
|
+
registerOnChange(fn: any): void;
|
|
164
|
+
registerOnTouched(fn: any): void;
|
|
165
|
+
touch(): void;
|
|
166
|
+
toggle(): void;
|
|
167
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpSwitchComponent, never>;
|
|
168
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpSwitchComponent, "up-switch", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, never, true, never>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare class UpCheckboxDirective extends UpFieldControlComponent {
|
|
172
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
173
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
174
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpCheckboxDirective, never>;
|
|
175
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpCheckboxDirective, "[upCheckbox]", ["upCheckbox"], { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
declare class UpOptionComponent {
|
|
179
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
180
|
+
readonly value: _angular_core.InputSignal<any>;
|
|
181
|
+
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
182
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
183
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
184
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpOptionComponent, never>;
|
|
185
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpOptionComponent, "up-option", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
186
|
+
}
|
|
187
|
+
|
|
171
188
|
declare class UpSelectComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
172
|
-
readonly
|
|
189
|
+
readonly options: Signal<readonly UpOptionComponent[]>;
|
|
173
190
|
readonly label: InputSignal<string>;
|
|
174
|
-
readonly appendTo: InputSignal<string>;
|
|
175
191
|
readonly placeholder: InputSignal<string>;
|
|
176
192
|
readonly bindLabel: InputSignal<string>;
|
|
177
193
|
readonly bindValue: InputSignal<string>;
|
|
178
|
-
readonly
|
|
194
|
+
readonly appendTo: InputSignal<(string & {}) | "body" | ".cdk-overlay-pane">;
|
|
179
195
|
readonly inlineClass: InputSignal<ClassValue>;
|
|
180
|
-
readonly loading:
|
|
181
|
-
readonly multiple:
|
|
182
|
-
readonly required:
|
|
183
|
-
readonly disabled:
|
|
184
|
-
readonly clearable:
|
|
196
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
197
|
+
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
198
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
199
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
200
|
+
readonly clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
185
201
|
readonly addTag: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
186
202
|
readonly searchable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
187
203
|
readonly virtualScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
204
|
+
readonly items: InputSignal<any[] | undefined>;
|
|
205
|
+
readonly _items: Signal<any[]>;
|
|
206
|
+
readonly value: ModelSignal<any | null>;
|
|
188
207
|
readonly changed: OutputEmitterRef<any>;
|
|
189
208
|
readonly control: Signal<UpFieldControl | undefined>;
|
|
190
209
|
readonly _computedClass: Signal<any>;
|
|
@@ -225,7 +244,7 @@ declare class UpSelectComponent extends UpFieldControlComponent implements Contr
|
|
|
225
244
|
*/
|
|
226
245
|
change(e?: any): void;
|
|
227
246
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpSelectComponent, never>;
|
|
228
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpSelectComponent, "up-select", never, { "
|
|
247
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpSelectComponent, "up-select", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "bindLabel": { "alias": "bindLabel"; "required": false; "isSignal": true; }; "bindValue": { "alias": "bindValue"; "required": false; "isSignal": true; }; "appendTo": { "alias": "appendTo"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "addTag": { "alias": "addTag"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, ["options", "control"], never, true, never>;
|
|
229
248
|
}
|
|
230
249
|
|
|
231
250
|
declare class UpCountrySelectComponent extends UpFieldControlComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
@@ -291,11 +310,11 @@ declare class UpCurrencySelectComponent extends UpFieldControlComponent implemen
|
|
|
291
310
|
declare class UpSearchableSelectComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
292
311
|
readonly query: InputSignal<(keyword: string) => Observable<any>>;
|
|
293
312
|
readonly label: InputSignal<string>;
|
|
294
|
-
readonly appendTo: InputSignal<string>;
|
|
295
313
|
readonly placeholder: InputSignal<string>;
|
|
296
314
|
readonly initialItems: InputSignal<any[]>;
|
|
297
315
|
readonly bindLabel: InputSignal<string>;
|
|
298
316
|
readonly bindValue: InputSignal<string>;
|
|
317
|
+
readonly appendTo: InputSignal<(string & {}) | "body" | ".cdk-overlay-pane">;
|
|
299
318
|
readonly inlineClass: InputSignal<ClassValue>;
|
|
300
319
|
readonly addTag: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
301
320
|
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -323,17 +342,17 @@ declare class UpSearchableSelectComponent extends UpFieldControlComponent implem
|
|
|
323
342
|
touch(): void;
|
|
324
343
|
change(e?: any): void;
|
|
325
344
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpSearchableSelectComponent, never>;
|
|
326
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpSearchableSelectComponent, "up-searchable-select", never, { "query": { "alias": "query"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "
|
|
345
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpSearchableSelectComponent, "up-searchable-select", never, { "query": { "alias": "query"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "initialItems": { "alias": "initialItems"; "required": false; "isSignal": true; }; "bindLabel": { "alias": "bindLabel"; "required": false; "isSignal": true; }; "bindValue": { "alias": "bindValue"; "required": false; "isSignal": true; }; "appendTo": { "alias": "appendTo"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "addTag": { "alias": "addTag"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "loading": "loadingChange"; "value": "valueChange"; "changed": "changed"; }, ["control"], never, true, never>;
|
|
327
346
|
}
|
|
328
347
|
|
|
329
348
|
declare class UpRateGroupCodeSelectComponent extends UpFieldControlComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
330
349
|
protected readonly service: RateGroupCodeService;
|
|
331
|
-
readonly
|
|
332
|
-
readonly
|
|
333
|
-
readonly
|
|
334
|
-
readonly disabled:
|
|
335
|
-
readonly multiple:
|
|
336
|
-
readonly clearable:
|
|
350
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
351
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
352
|
+
readonly appendTo: _angular_core.InputSignal<(string & {}) | "body" | ".cdk-overlay-pane">;
|
|
353
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
354
|
+
readonly multiple: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
355
|
+
readonly clearable: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
337
356
|
readonly value: ModelSignal<string | null>;
|
|
338
357
|
readonly changed: OutputEmitterRef<string>;
|
|
339
358
|
readonly isLoading: WritableSignal<boolean>;
|
|
@@ -360,7 +379,7 @@ declare class UpRateGroupCodeSelectComponent extends UpFieldControlComponent imp
|
|
|
360
379
|
onTouched(): void;
|
|
361
380
|
change(value: any): void;
|
|
362
381
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpRateGroupCodeSelectComponent, never>;
|
|
363
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpRateGroupCodeSelectComponent, "up-rate-group-code-select", never, { "
|
|
382
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpRateGroupCodeSelectComponent, "up-rate-group-code-select", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "appendTo": { "alias": "appendTo"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, never, never, true, never>;
|
|
364
383
|
}
|
|
365
384
|
|
|
366
385
|
declare class UpDatepickerComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
@@ -428,6 +447,29 @@ declare class UpFormFieldComponent {
|
|
|
428
447
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpFormFieldComponent, "up-form-field", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["control"], ["*"], true, never>;
|
|
429
448
|
}
|
|
430
449
|
|
|
450
|
+
declare class UpImagePickerComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
451
|
+
readonly ratio: _angular_core.InputSignal<string>;
|
|
452
|
+
readonly imgSrc: _angular_core.ModelSignal<string>;
|
|
453
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
454
|
+
readonly changed: _angular_core.OutputEmitterRef<File>;
|
|
455
|
+
file: any;
|
|
456
|
+
fileName: string;
|
|
457
|
+
isTouched: WritableSignal<boolean>;
|
|
458
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
459
|
+
protected _onTouched: () => void;
|
|
460
|
+
protected _onChange: (_val: any) => void;
|
|
461
|
+
constructor();
|
|
462
|
+
ngOnDestroy(): void;
|
|
463
|
+
registerOnChange(fn: any): void;
|
|
464
|
+
registerOnTouched(fn: any): void;
|
|
465
|
+
writeValue(val: any): void;
|
|
466
|
+
clear(ev?: Event): void;
|
|
467
|
+
touch(): void;
|
|
468
|
+
selectPhoto(files: any): Promise<void>;
|
|
469
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpImagePickerComponent, never>;
|
|
470
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpImagePickerComponent, "up-image-picker", never, { "ratio": { "alias": "ratio"; "required": false; "isSignal": true; }; "imgSrc": { "alias": "src"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "imgSrc": "srcChange"; "changed": "changed"; }, never, never, true, never>;
|
|
471
|
+
}
|
|
472
|
+
|
|
431
473
|
declare function setValidator(form: FormGroup, keys: string[], validators: ValidatorFn | ValidatorFn[]): void;
|
|
432
474
|
|
|
433
475
|
declare function toggleFormControls(form: FormGroup, keys: string[], mode: 'enable' | 'disable'): void;
|
|
@@ -477,4 +519,4 @@ declare function isEqualValidator(controlNames: string[], message?: string): Val
|
|
|
477
519
|
*/
|
|
478
520
|
declare function isNotEqualValidator(controlNames: string[], message?: string): ValidatorFn;
|
|
479
521
|
|
|
480
|
-
export { UpCheckboxDirective, UpCountrySelectComponent, UpCurrencySelectComponent, UpDateRangePickerComponent, UpDatepickerComponent, UpFieldControl, UpFieldControlComponent, UpFormFieldComponent, UpInputDirective, UpNumberDirective, UpPasswordComponent, UpRateGroupCodeSelectComponent, UpSearchableSelectComponent, UpSelectComponent, UpSwitchComponent, isEqualValidator, isNotEqualValidator, setValidator, toggleFormControls, validRangeValidator };
|
|
522
|
+
export { UpCheckboxDirective, UpCountrySelectComponent, UpCurrencySelectComponent, UpDateRangePickerComponent, UpDatepickerComponent, UpFieldControl, UpFieldControlComponent, UpFormFieldComponent, UpImagePickerComponent, UpInputDirective, UpNumberDirective, UpOptionComponent, UpPasswordComponent, UpRadioDirective, UpRateGroupCodeSelectComponent, UpSearchableSelectComponent, UpSelectComponent, UpSwitchComponent, isEqualValidator, isNotEqualValidator, setValidator, toggleFormControls, validRangeValidator };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
declare class UpStepperContentDirective {
|
|
6
|
+
readonly parent: any;
|
|
7
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
8
|
+
readonly allowReopen: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
9
|
+
readonly isActive: _angular_core.WritableSignal<boolean>;
|
|
10
|
+
readonly index: _angular_core.WritableSignal<number | null>;
|
|
11
|
+
constructor();
|
|
12
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpStepperContentDirective, never>;
|
|
13
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpStepperContentDirective, "[upStepperContent]", ["upStepperContent"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; "allowReopen": { "alias": "allowReopen"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type StepperStep = {
|
|
17
|
+
label: string;
|
|
18
|
+
allowReopen: boolean;
|
|
19
|
+
status: 'PENDING' | 'DISABLED' | 'COMPLETED';
|
|
20
|
+
};
|
|
21
|
+
declare class UpStepperComponent implements OnInit {
|
|
22
|
+
readonly stepContents: _angular_core.Signal<readonly any[]>;
|
|
23
|
+
readonly initialStep: _angular_core.InputSignal<number>;
|
|
24
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
25
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
26
|
+
readonly activeStep: _angular_core.WritableSignal<number>;
|
|
27
|
+
readonly steps: _angular_core.WritableSignal<StepperStep[]>;
|
|
28
|
+
readonly visibleSteps: _angular_core.Signal<{
|
|
29
|
+
index: number;
|
|
30
|
+
label: string;
|
|
31
|
+
allowReopen: boolean;
|
|
32
|
+
status: "PENDING" | "DISABLED" | "COMPLETED";
|
|
33
|
+
}[]>;
|
|
34
|
+
constructor();
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
prevStep(): void;
|
|
37
|
+
nextStep(): void;
|
|
38
|
+
protected getStepperStatus(i: number, initialStep: number): StepperStep['status'];
|
|
39
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpStepperComponent, never>;
|
|
40
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpStepperComponent, "up-stepper", never, { "initialStep": { "alias": "initialStep"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["stepContents"], ["*"], true, never>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { UpStepperComponent, UpStepperContentDirective };
|