@unipin/angular-applet 21.6.1 → 21.6.5
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/fesm2022/unipin-angular-applet-accordion.mjs +29 -17
- package/fesm2022/unipin-angular-applet-accordion.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-alert-dialog.mjs +7 -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 +10 -10
- package/fesm2022/unipin-angular-applet-approval.mjs.map +1 -1
- package/fesm2022/{unipin-angular-applet-audit-audit-modal.component-BYf0y6cO.mjs → unipin-angular-applet-audit-audit-modal.component-Fhzj6tsh.mjs} +4 -4
- package/fesm2022/{unipin-angular-applet-audit-audit-modal.component-BYf0y6cO.mjs.map → unipin-angular-applet-audit-audit-modal.component-Fhzj6tsh.mjs.map} +1 -1
- package/fesm2022/unipin-angular-applet-audit.mjs +11 -12
- package/fesm2022/unipin-angular-applet-audit.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-auth.mjs +51 -39
- package/fesm2022/unipin-angular-applet-auth.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-avatar.mjs +7 -10
- package/fesm2022/unipin-angular-applet-avatar.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-badge.mjs +6 -3
- package/fesm2022/unipin-angular-applet-badge.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-buttons.mjs +6 -6
- package/fesm2022/unipin-angular-applet-calendar.mjs +13 -13
- 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 +40 -39
- package/fesm2022/unipin-angular-applet-common.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-containers.mjs +18 -18
- package/fesm2022/unipin-angular-applet-containers.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-dialog.mjs +22 -22
- package/fesm2022/unipin-angular-applet-dialog.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-forms.mjs +469 -374
- package/fesm2022/unipin-angular-applet-forms.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-froala.mjs +14 -15
- package/fesm2022/unipin-angular-applet-froala.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-grids.mjs +19 -19
- 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 +20 -22
- package/fesm2022/unipin-angular-applet-markdown.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-micro-frontend.mjs +3 -3
- package/fesm2022/unipin-angular-applet-micro-frontend.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-popover.mjs +19 -15
- package/fesm2022/unipin-angular-applet-popover.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-progress-bar.mjs +14 -4
- package/fesm2022/unipin-angular-applet-progress-bar.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-skeleton.mjs +3 -3
- package/fesm2022/unipin-angular-applet-spinner.mjs +16 -20
- package/fesm2022/unipin-angular-applet-spinner.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-stepper.mjs +17 -9
- package/fesm2022/unipin-angular-applet-stepper.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-swipeable.mjs +14 -13
- package/fesm2022/unipin-angular-applet-swipeable.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-tabs.mjs +9 -9
- package/fesm2022/unipin-angular-applet-tooltip.mjs +4 -4
- package/fesm2022/unipin-angular-applet-tooltip.mjs.map +1 -1
- package/package.json +1 -1
- package/types/unipin-angular-applet-accordion.d.ts +1 -0
- package/types/unipin-angular-applet-approval.d.ts +2 -2
- package/types/unipin-angular-applet-badge.d.ts +2 -2
- package/types/unipin-angular-applet-common.d.ts +4 -4
- package/types/unipin-angular-applet-forms.d.ts +47 -8
- package/types/unipin-angular-applet-grids.d.ts +1 -1
- package/types/unipin-angular-applet-markdown.d.ts +2 -2
- package/types/unipin-angular-applet-progress-bar.d.ts +2 -0
- package/types/unipin-angular-applet-spinner.d.ts +2 -2
- package/types/unipin-angular-applet-swipeable.d.ts +1 -1
|
@@ -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\n@Directive({\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
|
|
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\n@Directive({\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 tooltipEl = this._tooltipElement;\n const hostRect = this.el.nativeElement.getBoundingClientRect();\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,iFAAU;AAEtD;;;;AAIG;AACa,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAsC,KAAK,+EAAC;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,CA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AA,CAAA,SAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGArBP,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,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;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,WAAW;AACrB,oBAAA,QAAQ,EAAE,aAAa;AACxB,iBAAA;;0BAsBI,MAAM;2BAAC,QAAQ;;;AC7BpB;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -28,6 +28,7 @@ declare class UpAccordionItemDirective {
|
|
|
28
28
|
protected _computedClass: _angular_core.Signal<string>;
|
|
29
29
|
constructor(wrapper: UpAccordionDirective);
|
|
30
30
|
setOpen(value: boolean): void;
|
|
31
|
+
protected normalizeWrapperValueToArray<T>(value: T | T[] | undefined): T[];
|
|
31
32
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpAccordionItemDirective, never>;
|
|
32
33
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpAccordionItemDirective, "[upAccordionItem]", ["upAccordionItem"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "isOpened": { "alias": "isOpened"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "isOpened": "isOpenedChange"; }, never, never, true, never>;
|
|
33
34
|
}
|
|
@@ -2,7 +2,7 @@ import { Observable, Subscription } from 'rxjs';
|
|
|
2
2
|
import { GqlParser, CacheStrategy, QueryResult, MutationResult } from '@unipin/angular-gql';
|
|
3
3
|
import { ApprovalCriteria, PageableResponse, MutationApprovalMsApproveOrDeclineRequestArgs, Approval } from '@unipin/graphql-schema';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Provider, InputSignal } from '@angular/core';
|
|
5
|
+
import { Provider, OnDestroy, InputSignal } from '@angular/core';
|
|
6
6
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
7
7
|
import { ClassValue } from 'clsx';
|
|
8
8
|
import { ColDef, GridApi } from 'ag-grid-community';
|
|
@@ -59,7 +59,7 @@ declare class UpApprovalFormComponent {
|
|
|
59
59
|
static ɵcmp: i0.ɵɵComponentDeclaration<UpApprovalFormComponent, "up-approval-form", never, { "approvalData": { "alias": "approvalData"; "required": true; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; }, { "isLoading": "isLoadingChange"; }, never, never, true, never>;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
declare class UpApprovalGridComponent {
|
|
62
|
+
declare class UpApprovalGridComponent implements OnDestroy {
|
|
63
63
|
readonly entities: string[];
|
|
64
64
|
protected readonly router: Router;
|
|
65
65
|
protected readonly route: ActivatedRoute;
|
|
@@ -4,12 +4,12 @@ import * as _angular_core from '@angular/core';
|
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
declare const badgeVariants: (props?: ({
|
|
7
|
-
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
7
|
+
variant?: "default" | "secondary" | "destructive" | "success" | "warning" | "info" | "outline" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
type BadgeVariants = VariantProps<typeof badgeVariants>;
|
|
10
10
|
|
|
11
11
|
declare class UpBadgeDirective {
|
|
12
|
-
readonly variant: _angular_core.InputSignal<"default" | "secondary" | "destructive" | "outline" | null | undefined>;
|
|
12
|
+
readonly variant: _angular_core.InputSignal<"default" | "secondary" | "destructive" | "success" | "warning" | "info" | "outline" | null | undefined>;
|
|
13
13
|
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
14
14
|
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
15
15
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpBadgeDirective, never>;
|
|
@@ -35,7 +35,7 @@ declare class UpInitialPipe implements PipeTransform {
|
|
|
35
35
|
}
|
|
36
36
|
declare function formatInitial(value: string): string;
|
|
37
37
|
|
|
38
|
-
declare class UpLinkifyPipe {
|
|
38
|
+
declare class UpLinkifyPipe implements PipeTransform {
|
|
39
39
|
protected readonly sanitizer: DomSanitizer;
|
|
40
40
|
constructor(sanitizer: DomSanitizer);
|
|
41
41
|
transform(value: any): SafeHtml;
|
|
@@ -44,7 +44,7 @@ declare class UpLinkifyPipe {
|
|
|
44
44
|
}
|
|
45
45
|
declare function formatLinkify(value: string, sanitizer: DomSanitizer): SafeHtml;
|
|
46
46
|
|
|
47
|
-
declare class UpCapitalizaPipe {
|
|
47
|
+
declare class UpCapitalizaPipe implements PipeTransform {
|
|
48
48
|
transform(value: string | string[], onlyFirstWord?: boolean): string;
|
|
49
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<UpCapitalizaPipe, never>;
|
|
50
50
|
static ɵpipe: i0.ɵɵPipeDeclaration<UpCapitalizaPipe, "upCapitalize", true>;
|
|
@@ -60,7 +60,7 @@ declare function formatCapitalize(str: string | string[], onlyFirstWord?: boolea
|
|
|
60
60
|
declare class CountryService {
|
|
61
61
|
protected readonly gql: GqlParser;
|
|
62
62
|
constructor(gql: GqlParser);
|
|
63
|
-
query(
|
|
63
|
+
query({ page, pageSize, sortBy, sortDirection }?: CountryQueryCriteria): Observable<QueryResult<{
|
|
64
64
|
webConfigMsCountry: CountryResult;
|
|
65
65
|
}>>;
|
|
66
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<CountryService, never>;
|
|
@@ -70,7 +70,7 @@ declare class CountryService {
|
|
|
70
70
|
declare class CurrencyService {
|
|
71
71
|
protected readonly gql: GqlParser;
|
|
72
72
|
constructor(gql: GqlParser);
|
|
73
|
-
query(
|
|
73
|
+
query({ page, pageSize, sortBy, sortDirection }?: CurrencyQueryCriteria): Observable<QueryResult<{
|
|
74
74
|
webConfigMsCurrency: CurrencyResult;
|
|
75
75
|
}>>;
|
|
76
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyService, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormGroup, ValidatorFn, NgControl, AbstractControl, NgForm, FormGroupDirective
|
|
1
|
+
import { FormGroup, ValidatorFn, ControlValueAccessor, NgControl, AbstractControl, NgForm, FormGroupDirective } from '@angular/forms';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { Signal, DoCheck, Injector, Renderer2,
|
|
3
|
+
import { ElementRef, WritableSignal, Signal, DoCheck, Injector, Renderer2, OnInit, InputSignal, ModelSignal, OutputEmitterRef, OnDestroy } from '@angular/core';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
5
5
|
import { Subscription, Observable, Subject } from 'rxjs';
|
|
6
6
|
import { Country, Currency } from '@unipin/graphql-schema';
|
|
@@ -61,6 +61,37 @@ declare function isEqualValidator(controlNames: string[], message?: string): Val
|
|
|
61
61
|
*/
|
|
62
62
|
declare function isNotEqualValidator(controlNames: string[], message?: string): ValidatorFn;
|
|
63
63
|
|
|
64
|
+
declare class UpPinComponent implements ControlValueAccessor {
|
|
65
|
+
readonly length: _angular_core.InputSignal<number>;
|
|
66
|
+
readonly obscure: _angular_core.ModelSignal<boolean>;
|
|
67
|
+
readonly disabled: _angular_core.ModelSignal<boolean>;
|
|
68
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
69
|
+
protected readonly _pinInputs: _angular_core.Signal<readonly ElementRef<HTMLInputElement>[]>;
|
|
70
|
+
protected readonly _focusedIndex: WritableSignal<number>;
|
|
71
|
+
protected readonly _values: WritableSignal<string[]>;
|
|
72
|
+
protected readonly _slots: _angular_core.Signal<number[]>;
|
|
73
|
+
protected readonly _displayValues: _angular_core.Signal<string[]>;
|
|
74
|
+
protected readonly _hostClass: _angular_core.Signal<string>;
|
|
75
|
+
protected readonly _inputClass: _angular_core.Signal<string>;
|
|
76
|
+
protected _isTouched: boolean;
|
|
77
|
+
protected _onTouched: () => void;
|
|
78
|
+
protected _onChange: (val: string) => void;
|
|
79
|
+
registerOnChange(fn: (val: string) => void): void;
|
|
80
|
+
registerOnTouched(fn: () => void): void;
|
|
81
|
+
setDisabledState(isDisabled: boolean): void;
|
|
82
|
+
writeValue(val: string | null | undefined): void;
|
|
83
|
+
protected _emitChange(): void;
|
|
84
|
+
protected _onBlur(): void;
|
|
85
|
+
protected _moveFocus(index: number): void;
|
|
86
|
+
protected _onFocus(index: number): void;
|
|
87
|
+
protected _getValues(): string[];
|
|
88
|
+
protected _onPaste(event: ClipboardEvent): void;
|
|
89
|
+
protected _onInput(event: Event, index: number): void;
|
|
90
|
+
protected _onKeydown(event: KeyboardEvent, index: number): void;
|
|
91
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpPinComponent, never>;
|
|
92
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpPinComponent, "up-pin", never, { "length": { "alias": "length"; "required": false; "isSignal": true; }; "obscure": { "alias": "obscure"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "inlineClass"; "required": false; "isSignal": true; }; }, { "obscure": "obscureChange"; "disabled": "disabledChange"; }, never, never, true, never>;
|
|
93
|
+
}
|
|
94
|
+
|
|
64
95
|
declare abstract class UpFieldControl {
|
|
65
96
|
abstract readonly error: Signal<string>;
|
|
66
97
|
abstract readonly ngControl: NgControl | AbstractControl | null;
|
|
@@ -262,7 +293,7 @@ declare class UpOptionComponent {
|
|
|
262
293
|
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>;
|
|
263
294
|
}
|
|
264
295
|
|
|
265
|
-
declare class UpSelectComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
296
|
+
declare class UpSelectComponent extends UpFieldControlComponent implements OnInit, ControlValueAccessor {
|
|
266
297
|
readonly options: Signal<readonly UpOptionComponent[]>;
|
|
267
298
|
readonly label: InputSignal<string>;
|
|
268
299
|
readonly placeholder: InputSignal<string>;
|
|
@@ -280,7 +311,7 @@ declare class UpSelectComponent extends UpFieldControlComponent implements Contr
|
|
|
280
311
|
readonly virtualScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
281
312
|
readonly items: InputSignal<any[] | undefined>;
|
|
282
313
|
readonly _items: Signal<any[]>;
|
|
283
|
-
readonly value: ModelSignal<any
|
|
314
|
+
readonly value: ModelSignal<any>;
|
|
284
315
|
readonly changed: OutputEmitterRef<any>;
|
|
285
316
|
readonly control: Signal<UpFieldControl | undefined>;
|
|
286
317
|
readonly _computedClass: Signal<any>;
|
|
@@ -386,7 +417,7 @@ declare class UpCurrencySelectComponent extends UpFieldControlComponent implemen
|
|
|
386
417
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpCurrencySelectComponent, "up-currency-select", never, { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "appendTo": { "alias": "appendTo"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, never, never, true, never>;
|
|
387
418
|
}
|
|
388
419
|
|
|
389
|
-
declare class UpSearchableSelectComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
420
|
+
declare class UpSearchableSelectComponent extends UpFieldControlComponent implements OnInit, ControlValueAccessor {
|
|
390
421
|
readonly query: InputSignal<(keyword: string) => Observable<any>>;
|
|
391
422
|
readonly label: InputSignal<string>;
|
|
392
423
|
readonly placeholder: InputSignal<string>;
|
|
@@ -402,7 +433,7 @@ declare class UpSearchableSelectComponent extends UpFieldControlComponent implem
|
|
|
402
433
|
readonly clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
403
434
|
readonly virtualScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
404
435
|
readonly loading: ModelSignal<boolean>;
|
|
405
|
-
readonly value: ModelSignal<any
|
|
436
|
+
readonly value: ModelSignal<any>;
|
|
406
437
|
readonly changed: OutputEmitterRef<any>;
|
|
407
438
|
readonly control: Signal<UpFieldControl | undefined>;
|
|
408
439
|
readonly _computedClass: Signal<any>;
|
|
@@ -559,6 +590,14 @@ declare class UpTimeComponent {
|
|
|
559
590
|
scrollToMinuteImmediate(index: number): void;
|
|
560
591
|
clampTime(time: TimeValue): TimeValue;
|
|
561
592
|
protected emitTime(): void;
|
|
593
|
+
protected updateHourIndex(index: number): void;
|
|
594
|
+
protected updateMinuteIndex(index: number): void;
|
|
595
|
+
protected findHourIndex(target: number): number;
|
|
596
|
+
protected snapMinuteToInterval(minute: number): number;
|
|
597
|
+
protected clampToMin(time: TimeValue): TimeValue;
|
|
598
|
+
protected clampToMax(time: TimeValue): TimeValue;
|
|
599
|
+
protected clampHourSelection(): void;
|
|
600
|
+
protected clampMinuteSelection(): void;
|
|
562
601
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpTimeComponent, never>;
|
|
563
602
|
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>;
|
|
564
603
|
}
|
|
@@ -603,7 +642,7 @@ declare class UpFormFieldComponent {
|
|
|
603
642
|
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; }; "hideAsterisk": { "alias": "hideAsterisk"; "required": false; "isSignal": true; }; }, {}, ["control"], ["*"], true, never>;
|
|
604
643
|
}
|
|
605
644
|
|
|
606
|
-
declare class UpImagePickerComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
645
|
+
declare class UpImagePickerComponent extends UpFieldControlComponent implements ControlValueAccessor, OnDestroy {
|
|
607
646
|
readonly ratio: _angular_core.InputSignal<string>;
|
|
608
647
|
readonly imgSrc: _angular_core.ModelSignal<string>;
|
|
609
648
|
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
@@ -626,5 +665,5 @@ declare class UpImagePickerComponent extends UpFieldControlComponent implements
|
|
|
626
665
|
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>;
|
|
627
666
|
}
|
|
628
667
|
|
|
629
|
-
export { UpCheckboxDirective, UpCountrySelectComponent, UpCurrencySelectComponent, UpDateRangePickerComponent, UpDatepickerComponent, UpFieldControl, UpFieldControlComponent, UpFormFieldComponent, UpImagePickerComponent, UpInputDirective, UpNumberDirective, UpOptionComponent, UpPasswordComponent, UpRadioDirective, UpRadioGroupComponent, UpRateGroupCodeSelectComponent, UpSearchableSelectComponent, UpSelectComponent, UpSwitchComponent, UpTimeComponent, UpTimepickerComponent, isEqualValidator, isNotEqualValidator, setValidator, toggleFormControls, validRangeValidator };
|
|
668
|
+
export { UpCheckboxDirective, UpCountrySelectComponent, UpCurrencySelectComponent, UpDateRangePickerComponent, UpDatepickerComponent, UpFieldControl, UpFieldControlComponent, UpFormFieldComponent, UpImagePickerComponent, UpInputDirective, UpNumberDirective, UpOptionComponent, UpPasswordComponent, UpPinComponent, UpRadioDirective, UpRadioGroupComponent, UpRateGroupCodeSelectComponent, UpSearchableSelectComponent, UpSelectComponent, UpSwitchComponent, UpTimeComponent, UpTimepickerComponent, isEqualValidator, isNotEqualValidator, setValidator, toggleFormControls, validRangeValidator };
|
|
630
669
|
export type { TimeValue };
|
|
@@ -43,7 +43,7 @@ type RenderGridBadgeOptions = {
|
|
|
43
43
|
isAutoGenerateColor?: boolean;
|
|
44
44
|
variant?: BadgeVariants['variant'];
|
|
45
45
|
};
|
|
46
|
-
declare function renderGridBadge(value: string, {
|
|
46
|
+
declare function renderGridBadge(value: string, { variant, additionalClass, isAutoGenerateColor, }: RenderGridBadgeOptions): string;
|
|
47
47
|
|
|
48
48
|
type RenderStatusBadgeOptions = Omit<RenderGridBadgeOptions, 'isAutoGenerateColor' | 'variant'> & {
|
|
49
49
|
additionalStatus?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { OnDestroy, InputSignal, ElementRef, Renderer2, WritableSignal } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
import { Observable, Subscription } from 'rxjs';
|
|
5
5
|
import { ClassValue } from 'clsx';
|
|
@@ -22,7 +22,7 @@ declare class MarkdownService {
|
|
|
22
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<MarkdownService>;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
declare class UpMarkdownInputComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
25
|
+
declare class UpMarkdownInputComponent extends UpFieldControlComponent implements OnDestroy, ControlValueAccessor {
|
|
26
26
|
protected readonly markdownService: MarkdownService;
|
|
27
27
|
readonly value: i0.ModelSignal<string>;
|
|
28
28
|
readonly placeholder: InputSignal<string>;
|
|
@@ -6,6 +6,8 @@ declare class UpProgressBarDirective {
|
|
|
6
6
|
readonly progress: _angular_core.InputSignal<number>;
|
|
7
7
|
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
8
8
|
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
9
|
+
protected readonly _safeMax: _angular_core.Signal<number>;
|
|
10
|
+
protected readonly _clampedProgress: _angular_core.Signal<number>;
|
|
9
11
|
protected readonly _progressWidth: _angular_core.Signal<string>;
|
|
10
12
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpProgressBarDirective, never>;
|
|
11
13
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpProgressBarDirective, "[upProgressBar]", ["upProgressBar"], { "max": { "alias": "max"; "required": true; "isSignal": true; }; "progress": { "alias": "progress"; "required": true; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -2,11 +2,11 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { ClassValue } from 'clsx';
|
|
3
3
|
|
|
4
4
|
declare class UpSpinnerComponent {
|
|
5
|
-
readonly
|
|
5
|
+
readonly strokeWidth: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
6
6
|
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
7
7
|
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
8
8
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpSpinnerComponent, never>;
|
|
9
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpSpinnerComponent, "up-spinner", never, { "
|
|
9
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpSpinnerComponent, "up-spinner", never, { "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export { UpSpinnerComponent };
|
|
@@ -21,7 +21,7 @@ declare class UpSwipeableButtonsDirective {
|
|
|
21
21
|
|
|
22
22
|
declare class UpSwipeableDirective {
|
|
23
23
|
readonly threshold: _angular_core.InputSignal<number>;
|
|
24
|
-
readonly overSwipeThreshold: _angular_core.InputSignal<number>;
|
|
24
|
+
readonly overSwipeThreshold: _angular_core.InputSignal<number | null>;
|
|
25
25
|
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
26
26
|
readonly clicked: _angular_core.OutputEmitterRef<void>;
|
|
27
27
|
readonly leftSwiped: _angular_core.OutputEmitterRef<void>;
|