@unipin/angular-applet 21.1.3 → 21.3.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/common/assets/styles/theme.css +8 -0
- package/fesm2022/unipin-angular-applet-accordion.mjs +12 -12
- package/fesm2022/unipin-angular-applet-alert-dialog.mjs +10 -7
- package/fesm2022/unipin-angular-applet-alert-dialog.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-alert.mjs +9 -9
- package/fesm2022/unipin-angular-applet-approval.mjs +6 -6
- package/fesm2022/unipin-angular-applet-audit-audit-modal.component-3a2P0bZr.mjs +280 -0
- package/fesm2022/unipin-angular-applet-audit-audit-modal.component-3a2P0bZr.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-audit.mjs +220 -0
- package/fesm2022/unipin-angular-applet-audit.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-auth.mjs +21 -21
- package/fesm2022/unipin-angular-applet-avatar.mjs +25 -8
- package/fesm2022/unipin-angular-applet-avatar.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-badge.mjs +3 -3
- package/fesm2022/unipin-angular-applet-buttons.mjs +6 -6
- package/fesm2022/unipin-angular-applet-calendar.mjs +26 -12
- package/fesm2022/unipin-angular-applet-calendar.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-collapsible.mjs +9 -9
- package/fesm2022/unipin-angular-applet-common.mjs +24 -24
- package/fesm2022/unipin-angular-applet-containers.mjs +12 -12
- package/fesm2022/unipin-angular-applet-dialog.mjs +30 -45
- package/fesm2022/unipin-angular-applet-dialog.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-forms.mjs +710 -61
- package/fesm2022/unipin-angular-applet-forms.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-froala.mjs +4 -4
- package/fesm2022/unipin-angular-applet-froala.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-grids.mjs +17 -1
- package/fesm2022/unipin-angular-applet-grids.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-infinite-scroll.mjs +3 -3
- package/fesm2022/unipin-angular-applet-json-viewer.mjs +3 -3
- package/fesm2022/unipin-angular-applet-kbd.mjs +3 -3
- package/fesm2022/unipin-angular-applet-loading-dialog.mjs +6 -6
- package/fesm2022/unipin-angular-applet-markdown.mjs +10 -10
- 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 +3 -3
- package/fesm2022/unipin-angular-applet-skeleton.mjs +3 -3
- package/fesm2022/unipin-angular-applet-spinner.mjs +3 -3
- package/fesm2022/unipin-angular-applet-stepper.mjs +6 -6
- package/fesm2022/unipin-angular-applet-swipeable.mjs +12 -12
- package/fesm2022/unipin-angular-applet-tabs.mjs +9 -9
- package/fesm2022/unipin-angular-applet-tooltip.mjs +3 -3
- package/package.json +5 -1
- package/types/unipin-angular-applet-audit.d.ts +49 -0
- package/types/unipin-angular-applet-avatar.d.ts +3 -2
- package/types/unipin-angular-applet-containers.d.ts +1 -1
- package/types/unipin-angular-applet-dialog.d.ts +13 -13
- package/types/unipin-angular-applet-forms.d.ts +82 -1
- package/types/unipin-angular-applet-grids.d.ts +17 -1
- package/types/unipin-angular-applet-popover.d.ts +2 -2
|
@@ -21,10 +21,10 @@ class UpSwipeableContentDirective {
|
|
|
21
21
|
translateX(x) {
|
|
22
22
|
this.element.style.transform = `translateX(${x}px)`;
|
|
23
23
|
}
|
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
25
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpSwipeableContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
25
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: UpSwipeableContentDirective, isStandalone: true, selector: "[upSwipeableContent]", inputs: { inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, exportAs: ["upSwipeableContent"], ngImport: i0 }); }
|
|
26
26
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpSwipeableContentDirective, decorators: [{
|
|
28
28
|
type: Directive,
|
|
29
29
|
args: [{
|
|
30
30
|
standalone: true,
|
|
@@ -44,10 +44,10 @@ class UpSwipeableButtonsDirective {
|
|
|
44
44
|
return up('absolute top-px bottom-px h-auto w-2/5 flex items-stretch z-0', this.side() === 'left' ? 'left-px flex-row' : 'right-px flex-row-reverse');
|
|
45
45
|
}, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
46
46
|
}
|
|
47
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
48
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.
|
|
47
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpSwipeableButtonsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
48
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: UpSwipeableButtonsDirective, isStandalone: true, selector: "[upSwipeableButtons]", inputs: { side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, exportAs: ["upSwipeableButtons"], ngImport: i0 }); }
|
|
49
49
|
}
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpSwipeableButtonsDirective, decorators: [{
|
|
51
51
|
type: Directive,
|
|
52
52
|
args: [{
|
|
53
53
|
standalone: true,
|
|
@@ -204,10 +204,10 @@ class UpSwipeableDirective {
|
|
|
204
204
|
}
|
|
205
205
|
this.rightSwiped.emit();
|
|
206
206
|
}
|
|
207
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
208
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.
|
|
207
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpSwipeableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
208
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.1.5", type: UpSwipeableDirective, isStandalone: true, selector: "[upSwipeable]", inputs: { threshold: { classPropertyName: "threshold", publicName: "threshold", isSignal: true, isRequired: false, transformFunction: null }, overSwipeThreshold: { classPropertyName: "overSwipeThreshold", publicName: "overSwipeThreshold", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked", leftSwiped: "leftSwiped", rightSwiped: "rightSwiped" }, host: { listeners: { "mousedown": "onMouseDown($event)", "document:mousemove": "onMouseMove($event)", "document:mouseup": "onMouseUp($event)", "touchstart": "onTouchStart($event)", "touchmove": "onTouchMove($event)", "touchend": "onTouchEnd($event)" }, properties: { "class": "_computedClass()" } }, queries: [{ propertyName: "content", first: true, predicate: UpSwipeableContentDirective, descendants: true, isSignal: true }, { propertyName: "buttonContainers", predicate: UpSwipeableButtonsDirective, isSignal: true }], exportAs: ["upSwipeable"], ngImport: i0 }); }
|
|
209
209
|
}
|
|
210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpSwipeableDirective, decorators: [{
|
|
211
211
|
type: Directive,
|
|
212
212
|
args: [{
|
|
213
213
|
standalone: true,
|
|
@@ -247,10 +247,10 @@ class UpSwipeableButtonDirective extends UpButtonDirective {
|
|
|
247
247
|
}), this.inlineClass(), 'h-full rounded-none flex-1');
|
|
248
248
|
}, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
249
249
|
}
|
|
250
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
251
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpSwipeableButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
251
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.5", type: UpSwipeableButtonDirective, isStandalone: true, selector: "[upSwipeableBtn]", host: { properties: { "class": "_computedClass()" } }, exportAs: ["upSwipeableBtn"], usesInheritance: true, ngImport: i0 }); }
|
|
252
252
|
}
|
|
253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpSwipeableButtonDirective, decorators: [{
|
|
254
254
|
type: Directive,
|
|
255
255
|
args: [{
|
|
256
256
|
standalone: true,
|
|
@@ -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.
|
|
50
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
50
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", 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.
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpTabsComponent, decorators: [{
|
|
59
59
|
type: Component,
|
|
60
60
|
args: [{
|
|
61
61
|
standalone: true,
|
|
@@ -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.
|
|
90
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.
|
|
89
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpTabsContentDirective, deps: [{ token: UpTabsComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
90
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", 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.
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpTabsContentDirective, decorators: [{
|
|
93
93
|
type: Directive,
|
|
94
94
|
args: [{
|
|
95
95
|
standalone: true,
|
|
@@ -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.
|
|
121
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.
|
|
120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpTabsTriggerDirective, deps: [{ token: UpTabsComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
121
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", 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.
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpTabsTriggerDirective, decorators: [{
|
|
124
124
|
type: Directive,
|
|
125
125
|
args: [{
|
|
126
126
|
standalone: true,
|
|
@@ -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.
|
|
99
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.
|
|
98
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", 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.1.5", 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.
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: UpTooltipDirective, decorators: [{
|
|
102
102
|
type: Directive,
|
|
103
103
|
args: [{
|
|
104
104
|
standalone: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unipin/angular-applet",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.3.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "21.x.x",
|
|
6
6
|
"@angular/common": "21.x.x",
|
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
"types": "./types/unipin-angular-applet-approval.d.ts",
|
|
51
51
|
"default": "./fesm2022/unipin-angular-applet-approval.mjs"
|
|
52
52
|
},
|
|
53
|
+
"./audit": {
|
|
54
|
+
"types": "./types/unipin-angular-applet-audit.d.ts",
|
|
55
|
+
"default": "./fesm2022/unipin-angular-applet-audit.mjs"
|
|
56
|
+
},
|
|
53
57
|
"./auth": {
|
|
54
58
|
"types": "./types/unipin-angular-applet-auth.d.ts",
|
|
55
59
|
"default": "./fesm2022/unipin-angular-applet-auth.mjs"
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Observable, Subscription } from 'rxjs';
|
|
2
|
+
import { GqlParser, QueryResult } from '@unipin/angular-gql';
|
|
3
|
+
import { AuditTrailCriteria, AuditTrail } from '@unipin/graphql-schema';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { OnDestroy } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
declare class AuditService {
|
|
8
|
+
protected readonly gql: GqlParser;
|
|
9
|
+
constructor(gql: GqlParser);
|
|
10
|
+
query(input: AuditTrailCriteria): Observable<QueryResult<{
|
|
11
|
+
auditMsAuditTrail: AuditTrail[];
|
|
12
|
+
}>>;
|
|
13
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AuditService, never>;
|
|
14
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AuditService>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type AuditTrailData = AuditTrail & {
|
|
18
|
+
icon: string;
|
|
19
|
+
changedData?: Array<{
|
|
20
|
+
field: string;
|
|
21
|
+
oldValue: any;
|
|
22
|
+
newValue: any;
|
|
23
|
+
}>;
|
|
24
|
+
};
|
|
25
|
+
declare class UpAuditListComponent implements OnDestroy {
|
|
26
|
+
protected readonly service: AuditService;
|
|
27
|
+
readonly tagValues: _angular_core.InputSignal<string[] | undefined>;
|
|
28
|
+
readonly relatedEntities: _angular_core.InputSignal<string[] | undefined>;
|
|
29
|
+
readonly hasMore: _angular_core.WritableSignal<boolean>;
|
|
30
|
+
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
31
|
+
readonly auditTrails: _angular_core.WritableSignal<AuditTrailData[]>;
|
|
32
|
+
readonly selectedTrail: _angular_core.WritableSignal<AuditTrailData | null>;
|
|
33
|
+
protected sub?: Subscription;
|
|
34
|
+
protected readonly criteria: AuditTrailCriteria;
|
|
35
|
+
constructor(service: AuditService);
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
loadData(): void;
|
|
38
|
+
protected getAuditIcon(audit: AuditTrail): string;
|
|
39
|
+
protected getChangedData(data: any): Array<{
|
|
40
|
+
field: string;
|
|
41
|
+
oldValue: any;
|
|
42
|
+
newValue: any;
|
|
43
|
+
}>;
|
|
44
|
+
protected formatValue(value: any): string;
|
|
45
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpAuditListComponent, never>;
|
|
46
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpAuditListComponent, "up-audit-list", never, { "tagValues": { "alias": "tagValues"; "required": false; "isSignal": true; }; "relatedEntities": { "alias": "relatedEntities"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { AuditService, UpAuditListComponent };
|
|
@@ -3,12 +3,13 @@ import { ElementRef, Renderer2 } from '@angular/core';
|
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
declare class UpAvatarDirective {
|
|
6
|
-
protected readonly el: ElementRef
|
|
6
|
+
protected readonly el: ElementRef<HTMLElement>;
|
|
7
7
|
protected readonly renderer: Renderer2;
|
|
8
8
|
readonly initialText: _angular_core.InputSignal<string>;
|
|
9
9
|
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
10
10
|
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
11
|
-
constructor(el: ElementRef
|
|
11
|
+
constructor(el: ElementRef<HTMLElement>, renderer: Renderer2);
|
|
12
|
+
setFallback(): void;
|
|
12
13
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpAvatarDirective, never>;
|
|
13
14
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpAvatarDirective, "[upAvatar]", ["upAvatar"], { "initialText": { "alias": "initial"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, ViewContainerRef, DestroyRef, ComponentRef, ComponentMirror,
|
|
2
|
+
import { OnInit, ViewContainerRef, DestroyRef, ComponentRef, ComponentMirror, InjectionToken, Provider } from '@angular/core';
|
|
3
3
|
import { Router, ActivatedRoute, Route, RedirectFunction } from '@angular/router';
|
|
4
4
|
import { PermissionService } from '@unipin/angular-applet/auth';
|
|
5
5
|
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { StaticProvider, ElementRef, InjectOptions, ValueProvider, Signal, WritableSignal, Injector, RendererFactory2, TemplateRef, ViewContainerRef, EffectRef,
|
|
2
|
+
import { StaticProvider, ElementRef, InjectOptions, ValueProvider, Signal, WritableSignal, Injector, RendererFactory2, TemplateRef, ViewContainerRef, EffectRef, 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';
|
|
6
6
|
import { PositionStrategy, ScrollStrategy, ConnectedPosition, FlexibleConnectedPositionStrategyOrigin, OverlayPositionBuilder, ScrollStrategyOptions, ComponentType } from '@angular/cdk/overlay';
|
|
7
|
-
import
|
|
7
|
+
import * as clsx from 'clsx';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
|
+
import { Observable } from 'rxjs';
|
|
9
10
|
|
|
10
11
|
type UpDialogOptions = {
|
|
11
12
|
id?: string;
|
|
12
13
|
hasBackdrop: boolean;
|
|
13
14
|
disableClose: boolean;
|
|
15
|
+
panelClass: ClassValue;
|
|
14
16
|
role: 'dialog' | 'alertdialog';
|
|
15
17
|
providers?: StaticProvider[] | (() => StaticProvider[]);
|
|
16
18
|
restoreFocus: boolean | string | ElementRef;
|
|
17
|
-
autoFocus?: AutoFocusTarget | (Record<never, never> & string);
|
|
19
|
+
autoFocus?: AutoFocusTarget | (Record<never, never> & string) | boolean;
|
|
18
20
|
closeDelay: number;
|
|
19
21
|
closeOnBackdropClick: boolean;
|
|
20
22
|
closeOnOutsidePointerEvents: boolean;
|
|
@@ -86,7 +88,7 @@ declare class UpDialog {
|
|
|
86
88
|
readonly defaultOptions: UpDialogOptions;
|
|
87
89
|
readonly attachTo: _angular_core.InputSignal<_angular_cdk_overlay.FlexibleConnectedPositionStrategyOrigin | null | undefined>;
|
|
88
90
|
readonly role: _angular_core.InputSignal<"dialog" | "alertdialog">;
|
|
89
|
-
readonly autoFocus: _angular_core.InputSignal<_angular_cdk_dialog.AutoFocusTarget | (Record<never, never> & string) | undefined>;
|
|
91
|
+
readonly autoFocus: _angular_core.InputSignal<boolean | _angular_cdk_dialog.AutoFocusTarget | (Record<never, never> & string) | undefined>;
|
|
90
92
|
readonly restoreFocus: _angular_core.InputSignal<string | boolean | _angular_core.ElementRef<any>>;
|
|
91
93
|
readonly scrollStrategy: _angular_core.InputSignal<ScrollStrategy | "close" | "reposition" | null>;
|
|
92
94
|
readonly attachPositions: _angular_core.InputSignal<_angular_cdk_overlay.ConnectedPosition[]>;
|
|
@@ -97,12 +99,13 @@ declare class UpDialog {
|
|
|
97
99
|
readonly closeOnOutsidePointerEvents: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
98
100
|
readonly closed: _angular_core.OutputEmitterRef<any>;
|
|
99
101
|
readonly stateChanged: _angular_core.OutputEmitterRef<"open" | "closed">;
|
|
100
|
-
readonly state: WritableSignal<boolean>;
|
|
101
|
-
readonly
|
|
102
|
+
readonly state: _angular_core.WritableSignal<boolean>;
|
|
103
|
+
readonly panelClass: _angular_core.WritableSignal<clsx.ClassValue>;
|
|
104
|
+
readonly mutableAttachTo: _angular_core.Signal<_angular_core.WritableSignal<_angular_cdk_overlay.FlexibleConnectedPositionStrategyOrigin | null | undefined>>;
|
|
102
105
|
readonly stateComputed: _angular_core.Signal<"open" | "closed">;
|
|
103
|
-
readonly mutableAttachPositions: _angular_core.Signal<WritableSignal<_angular_cdk_overlay.ConnectedPosition[]>>;
|
|
104
|
-
readonly mutablePositionStrategy: _angular_core.Signal<WritableSignal<_angular_cdk_overlay.PositionStrategy | null | undefined>>;
|
|
105
|
-
readonly mutableCloseOnOutsidePointerEvents: _angular_core.Signal<WritableSignal<boolean>>;
|
|
106
|
+
readonly mutableAttachPositions: _angular_core.Signal<_angular_core.WritableSignal<_angular_cdk_overlay.ConnectedPosition[]>>;
|
|
107
|
+
readonly mutablePositionStrategy: _angular_core.Signal<_angular_core.WritableSignal<_angular_cdk_overlay.PositionStrategy | null | undefined>>;
|
|
108
|
+
readonly mutableCloseOnOutsidePointerEvents: _angular_core.Signal<_angular_core.WritableSignal<boolean>>;
|
|
106
109
|
dialogRef: UpDialogRef | undefined;
|
|
107
110
|
protected readonly attachToState: _angular_core.Signal<_angular_cdk_overlay.FlexibleConnectedPositionStrategyOrigin | null | undefined>;
|
|
108
111
|
protected readonly positionStrategyState: _angular_core.Signal<_angular_cdk_overlay.PositionStrategy | null | undefined>;
|
|
@@ -130,14 +133,11 @@ declare class UpDialogCloseDirective {
|
|
|
130
133
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpDialogCloseDirective, "button[upDialogClose]", never, { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
131
134
|
}
|
|
132
135
|
|
|
133
|
-
declare class UpDialogContentDirective
|
|
136
|
+
declare class UpDialogContentDirective {
|
|
134
137
|
readonly dialogRef: UpDialogRef<any>;
|
|
135
138
|
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
136
139
|
readonly state: _angular_core.Signal<"open" | "closed">;
|
|
137
140
|
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
138
|
-
protected _mutationObserver: MutationObserver;
|
|
139
|
-
ngAfterViewInit(): void;
|
|
140
|
-
ngOnDestroy(): void;
|
|
141
141
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpDialogContentDirective, never>;
|
|
142
142
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpDialogContentDirective, "[upDialogContent]", ["upDialogContent"], { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
143
143
|
}
|
|
@@ -435,6 +435,87 @@ declare class UpDateRangePickerComponent extends UpFieldControlComponent impleme
|
|
|
435
435
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpDateRangePickerComponent, "up-date-range-picker", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "format"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
+
type TimeValue = {
|
|
439
|
+
hour: number;
|
|
440
|
+
minute: number;
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
declare class UpTimeComponent {
|
|
444
|
+
readonly hoursScroll: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
445
|
+
readonly minutesScroll: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
446
|
+
readonly minuteInterval: _angular_core.InputSignal<number>;
|
|
447
|
+
readonly minTime: _angular_core.InputSignal<TimeValue | undefined>;
|
|
448
|
+
readonly maxTime: _angular_core.InputSignal<TimeValue | undefined>;
|
|
449
|
+
readonly value: _angular_core.InputSignal<TimeValue>;
|
|
450
|
+
readonly timeChanged: _angular_core.OutputEmitterRef<TimeValue>;
|
|
451
|
+
readonly selectedHourIndex: _angular_core.WritableSignal<number>;
|
|
452
|
+
readonly selectedMinuteIndex: _angular_core.WritableSignal<number>;
|
|
453
|
+
readonly minHour: _angular_core.Signal<number>;
|
|
454
|
+
readonly maxHour: _angular_core.Signal<number>;
|
|
455
|
+
readonly minMinute: _angular_core.Signal<number>;
|
|
456
|
+
readonly maxMinute: _angular_core.Signal<number>;
|
|
457
|
+
protected readonly hours: number[];
|
|
458
|
+
protected readonly minutes: _angular_core.Signal<number[]>;
|
|
459
|
+
protected readonly hourInvisible: _angular_core.Signal<boolean[]>;
|
|
460
|
+
protected readonly minuteInvisible: _angular_core.Signal<boolean[]>;
|
|
461
|
+
protected readonly validMinuteRange: _angular_core.Signal<{
|
|
462
|
+
min: number;
|
|
463
|
+
max: number;
|
|
464
|
+
}>;
|
|
465
|
+
protected itemHeight: number;
|
|
466
|
+
protected visibleItems: number;
|
|
467
|
+
protected containerHeight: number;
|
|
468
|
+
protected padding: number;
|
|
469
|
+
protected highlightTop: number;
|
|
470
|
+
protected scrollTimeout: any;
|
|
471
|
+
protected lastEmittedTime: TimeValue | null;
|
|
472
|
+
constructor();
|
|
473
|
+
initializeScrollPosition(): void;
|
|
474
|
+
onHoursScroll(): void;
|
|
475
|
+
onMinutesScroll(): void;
|
|
476
|
+
private debounceEmit;
|
|
477
|
+
private clampSelectionToValidRange;
|
|
478
|
+
updateHourSelection(): void;
|
|
479
|
+
updateMinuteSelection(): void;
|
|
480
|
+
snapHours(): void;
|
|
481
|
+
snapMinutes(): void;
|
|
482
|
+
scrollToHour(index: number): void;
|
|
483
|
+
scrollToMinute(index: number): void;
|
|
484
|
+
scrollToHourImmediate(index: number): void;
|
|
485
|
+
scrollToMinuteImmediate(index: number): void;
|
|
486
|
+
clampTime(time: TimeValue): TimeValue;
|
|
487
|
+
protected emitTime(): void;
|
|
488
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpTimeComponent, never>;
|
|
489
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpTimeComponent, "up-time", never, { "minuteInterval": { "alias": "minuteInterval"; "required": false; "isSignal": true; }; "minTime": { "alias": "minTime"; "required": false; "isSignal": true; }; "maxTime": { "alias": "maxTime"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "timeChanged": "timeChanged"; }, never, never, true, never>;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
declare class UpTimepickerComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
493
|
+
readonly minTime: _angular_core.InputSignal<TimeValue | undefined>;
|
|
494
|
+
readonly maxTime: _angular_core.InputSignal<TimeValue | undefined>;
|
|
495
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
496
|
+
readonly initialHour: _angular_core.InputSignal<number>;
|
|
497
|
+
readonly initialMinute: _angular_core.InputSignal<number>;
|
|
498
|
+
readonly minuteInterval: _angular_core.InputSignal<number>;
|
|
499
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
500
|
+
readonly _disabled: _angular_core.WritableSignal<boolean>;
|
|
501
|
+
readonly value: _angular_core.WritableSignal<TimeValue>;
|
|
502
|
+
readonly formattedTime: _angular_core.Signal<string>;
|
|
503
|
+
readonly _computedClass: _angular_core.Signal<string>;
|
|
504
|
+
protected _isTouched: boolean;
|
|
505
|
+
protected _onTouched: () => void;
|
|
506
|
+
protected _onChange: (_val: any) => void;
|
|
507
|
+
constructor();
|
|
508
|
+
registerOnChange(fn: any): void;
|
|
509
|
+
registerOnTouched(fn: any): void;
|
|
510
|
+
touch(): void;
|
|
511
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
512
|
+
writeValue(value: TimeValue): void;
|
|
513
|
+
selectedTime(time: TimeValue): void;
|
|
514
|
+
protected _markTouched(): void;
|
|
515
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpTimepickerComponent, never>;
|
|
516
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpTimepickerComponent, "up-timepicker", never, { "minTime": { "alias": "minTime"; "required": false; "isSignal": true; }; "maxTime": { "alias": "maxTime"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "initialHour": { "alias": "initialHour"; "required": false; "isSignal": true; }; "initialMinute": { "alias": "initialMinute"; "required": false; "isSignal": true; }; "minuteInterval": { "alias": "minuteInterval"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
517
|
+
}
|
|
518
|
+
|
|
438
519
|
declare class UpFormFieldComponent {
|
|
439
520
|
readonly name: _angular_core.InputSignal<string>;
|
|
440
521
|
readonly hint: _angular_core.InputSignal<string>;
|
|
@@ -519,4 +600,4 @@ declare function isEqualValidator(controlNames: string[], message?: string): Val
|
|
|
519
600
|
*/
|
|
520
601
|
declare function isNotEqualValidator(controlNames: string[], message?: string): ValidatorFn;
|
|
521
602
|
|
|
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 };
|
|
603
|
+
export { UpCheckboxDirective, UpCountrySelectComponent, UpCurrencySelectComponent, UpDateRangePickerComponent, UpDatepickerComponent, UpFieldControl, UpFieldControlComponent, UpFormFieldComponent, UpImagePickerComponent, UpInputDirective, UpNumberDirective, UpOptionComponent, UpPasswordComponent, UpRadioDirective, UpRateGroupCodeSelectComponent, UpSearchableSelectComponent, UpSelectComponent, UpSwitchComponent, UpTimeComponent, UpTimepickerComponent, isEqualValidator, isNotEqualValidator, setValidator, toggleFormControls, validRangeValidator };
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { BadgeVariants } from '@unipin/angular-applet/badge';
|
|
2
2
|
|
|
3
|
+
declare const rowNumberColumn: {
|
|
4
|
+
maxWidth: number;
|
|
5
|
+
pinned: string;
|
|
6
|
+
sortable: boolean;
|
|
7
|
+
lockPinned: boolean;
|
|
8
|
+
headerName: string;
|
|
9
|
+
lockPosition: boolean;
|
|
10
|
+
suppressMovable: boolean;
|
|
11
|
+
valueGetter: string;
|
|
12
|
+
cellStyle: {
|
|
13
|
+
fontWeight: number;
|
|
14
|
+
textAlign: string;
|
|
15
|
+
justifyContent: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
|
|
3
19
|
declare function renderFlag(value: string | string[]): string;
|
|
4
20
|
|
|
5
21
|
type RenderGridBadgeOptions = {
|
|
@@ -19,4 +35,4 @@ type RenderStatusBadgeOptions = Omit<RenderGridBadgeOptions, 'isAutoGenerateColo
|
|
|
19
35
|
};
|
|
20
36
|
declare function renderStatusBadge(value: string, { additionalStatus, additionalClass }: RenderStatusBadgeOptions): string;
|
|
21
37
|
|
|
22
|
-
export { renderFlag, renderGridBadge, renderStatusBadge };
|
|
38
|
+
export { renderFlag, renderGridBadge, renderStatusBadge, rowNumberColumn };
|
|
@@ -29,10 +29,10 @@ declare class UpPopoverTriggerDirective extends UpDialogTriggerDirective {
|
|
|
29
29
|
|
|
30
30
|
declare class UpPopoverContentDirective {
|
|
31
31
|
readonly stateProvider: _unipin_angular_applet_dialog.ExposesState;
|
|
32
|
-
readonly
|
|
32
|
+
readonly inlineClass: i0.InputSignal<ClassValue>;
|
|
33
33
|
protected readonly _computedClass: i0.Signal<string>;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<UpPopoverContentDirective, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UpPopoverContentDirective, "[upPopoverContent]", ["upPopoverContent"], { "
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UpPopoverContentDirective, "[upPopoverContent]", ["upPopoverContent"], { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
declare class UpPopoverContentRefDirective<T> extends UpDialogContentRefDirective<T> {
|