@ibragim-dev-org/ui-forge-library 1.2.2 → 1.2.4
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.
|
@@ -740,6 +740,8 @@ class UiAccordionComponent {
|
|
|
740
740
|
$transition = computed(() => `all ${this.$durationMs()}ms linear`, ...(ngDevMode ? [{ debugName: "$transition" }] : []));
|
|
741
741
|
$overflow = signal('hidden', ...(ngDevMode ? [{ debugName: "$overflow" }] : []));
|
|
742
742
|
$content = viewChild('container', ...(ngDevMode ? [{ debugName: "$content" }] : []));
|
|
743
|
+
$button = viewChild('buttonContainer', ...(ngDevMode ? [{ debugName: "$button" }] : []));
|
|
744
|
+
$hasButtonContent = signal(false, ...(ngDevMode ? [{ debugName: "$hasButtonContent" }] : []));
|
|
743
745
|
resizeDebounceTimer = new Subscription();
|
|
744
746
|
constructor(destroyRef, platformId) {
|
|
745
747
|
this.destroyRef = destroyRef;
|
|
@@ -755,7 +757,20 @@ class UiAccordionComponent {
|
|
|
755
757
|
});
|
|
756
758
|
}
|
|
757
759
|
ngAfterViewInit() {
|
|
760
|
+
this.setButtonContentState();
|
|
758
761
|
this.setSize();
|
|
762
|
+
const button = this.$button();
|
|
763
|
+
if (button && isPlatformBrowser(this.platformId)) {
|
|
764
|
+
const mutationObserver = new MutationObserver(() => {
|
|
765
|
+
this.setButtonContentState();
|
|
766
|
+
});
|
|
767
|
+
mutationObserver.observe(button.nativeElement, {
|
|
768
|
+
childList: true,
|
|
769
|
+
subtree: true,
|
|
770
|
+
characterData: true,
|
|
771
|
+
});
|
|
772
|
+
this.destroyRef.onDestroy(() => mutationObserver.disconnect());
|
|
773
|
+
}
|
|
759
774
|
const content = this.$content();
|
|
760
775
|
if (content && isPlatformBrowser(this.platformId)) {
|
|
761
776
|
const resizeObserver = new ResizeObserver(() => {
|
|
@@ -768,6 +783,23 @@ class UiAccordionComponent {
|
|
|
768
783
|
this.destroyRef.onDestroy(() => resizeObserver.disconnect());
|
|
769
784
|
}
|
|
770
785
|
}
|
|
786
|
+
setButtonContentState() {
|
|
787
|
+
const button = this.$button();
|
|
788
|
+
if (!button) {
|
|
789
|
+
this.$hasButtonContent.set(false);
|
|
790
|
+
return;
|
|
791
|
+
}
|
|
792
|
+
const hasContent = Array.from(button.nativeElement.childNodes).some((node) => {
|
|
793
|
+
if (node.nodeType === 1) {
|
|
794
|
+
return true;
|
|
795
|
+
}
|
|
796
|
+
if (node.nodeType === 3) {
|
|
797
|
+
return Boolean(node.textContent?.trim());
|
|
798
|
+
}
|
|
799
|
+
return false;
|
|
800
|
+
});
|
|
801
|
+
this.$hasButtonContent.set(hasContent);
|
|
802
|
+
}
|
|
771
803
|
setSize() {
|
|
772
804
|
const content = this.$content();
|
|
773
805
|
if (content) {
|
|
@@ -776,15 +808,15 @@ class UiAccordionComponent {
|
|
|
776
808
|
}
|
|
777
809
|
}
|
|
778
810
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiAccordionComponent, deps: [{ token: i0.DestroyRef }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component });
|
|
779
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.1.1", type: UiAccordionComponent, isStandalone: true, selector: "app-ui-accordion", inputs: { $isOpen: { classPropertyName: "$isOpen", publicName: "$isOpen", isSignal: true, isRequired: false, transformFunction: null }, $durationMs: { classPropertyName: "$durationMs", publicName: "$durationMs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { $isOpen: "$isOpenChange" }, viewQueries: [{ propertyName: "$content", first: true, predicate: ["container"], descendants: true, isSignal: true }], ngImport: i0, template: "<button
|
|
811
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.1.1", type: UiAccordionComponent, isStandalone: true, selector: "app-ui-accordion", inputs: { $isOpen: { classPropertyName: "$isOpen", publicName: "$isOpen", isSignal: true, isRequired: false, transformFunction: null }, $durationMs: { classPropertyName: "$durationMs", publicName: "$durationMs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { $isOpen: "$isOpenChange" }, viewQueries: [{ propertyName: "$content", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "$button", first: true, predicate: ["buttonContainer"], descendants: true, isSignal: true }], ngImport: i0, template: "<button\r\n #buttonContainer\r\n class=\"button\"\r\n type=\"button\"\r\n [style.display]=\"$hasButtonContent() ? null : 'none'\"\r\n (click)=\"$isOpen.set(!$isOpen())\"\r\n>\r\n <ng-content select=\"[button]\"></ng-content>\r\n</button>\r\n\r\n<div\r\n class=\"content\"\r\n [ngStyle]=\"{\r\n maxHeight: $isOpen() ? $contentHeight() : 0 + 'px',\r\n transition: $transition(),\r\n overflow: $overflow(),\r\n }\"\r\n>\r\n <div #container>\r\n <ng-content select=\"[content]\"></ng-content>\r\n </div>\r\n</div>\r\n", styles: [":host{display:block;width:100%}.button{width:100%;cursor:pointer}.content{width:100%;overflow:hidden;max-height:auto}\n"], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
780
812
|
}
|
|
781
813
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiAccordionComponent, decorators: [{
|
|
782
814
|
type: Component,
|
|
783
|
-
args: [{ selector: 'app-ui-accordion', standalone: true, imports: [NgStyle], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button
|
|
815
|
+
args: [{ selector: 'app-ui-accordion', standalone: true, imports: [NgStyle], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\r\n #buttonContainer\r\n class=\"button\"\r\n type=\"button\"\r\n [style.display]=\"$hasButtonContent() ? null : 'none'\"\r\n (click)=\"$isOpen.set(!$isOpen())\"\r\n>\r\n <ng-content select=\"[button]\"></ng-content>\r\n</button>\r\n\r\n<div\r\n class=\"content\"\r\n [ngStyle]=\"{\r\n maxHeight: $isOpen() ? $contentHeight() : 0 + 'px',\r\n transition: $transition(),\r\n overflow: $overflow(),\r\n }\"\r\n>\r\n <div #container>\r\n <ng-content select=\"[content]\"></ng-content>\r\n </div>\r\n</div>\r\n", styles: [":host{display:block;width:100%}.button{width:100%;cursor:pointer}.content{width:100%;overflow:hidden;max-height:auto}\n"] }]
|
|
784
816
|
}], ctorParameters: () => [{ type: i0.DestroyRef }, { type: undefined, decorators: [{
|
|
785
817
|
type: Inject,
|
|
786
818
|
args: [PLATFORM_ID]
|
|
787
|
-
}] }], propDecorators: { $isOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "$isOpen", required: false }] }, { type: i0.Output, args: ["$isOpenChange"] }], $durationMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "$durationMs", required: false }] }], $content: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }] } });
|
|
819
|
+
}] }], propDecorators: { $isOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "$isOpen", required: false }] }, { type: i0.Output, args: ["$isOpenChange"] }], $durationMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "$durationMs", required: false }] }], $content: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], $button: [{ type: i0.ViewChild, args: ['buttonContainer', { isSignal: true }] }] } });
|
|
788
820
|
|
|
789
821
|
var AlertType;
|
|
790
822
|
(function (AlertType) {
|
|
@@ -1388,6 +1420,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1388
1420
|
class UiPopupInstance {
|
|
1389
1421
|
overlayRef;
|
|
1390
1422
|
destroyRef;
|
|
1423
|
+
onClose;
|
|
1391
1424
|
id = '';
|
|
1392
1425
|
width = 0;
|
|
1393
1426
|
animationOrigin$ = new BehaviorSubject('center');
|
|
@@ -1399,7 +1432,8 @@ class UiPopupInstance {
|
|
|
1399
1432
|
};
|
|
1400
1433
|
closed = new Subject();
|
|
1401
1434
|
shouldClose = new Subject();
|
|
1402
|
-
|
|
1435
|
+
isClosing = false;
|
|
1436
|
+
constructor(overlayRef, destroyRef, onClose = () => { }, options = {
|
|
1403
1437
|
positionX: 0,
|
|
1404
1438
|
positionY: 0,
|
|
1405
1439
|
startTransition: 'scale(0.8)',
|
|
@@ -1407,6 +1441,7 @@ class UiPopupInstance {
|
|
|
1407
1441
|
}) {
|
|
1408
1442
|
this.overlayRef = overlayRef;
|
|
1409
1443
|
this.destroyRef = destroyRef;
|
|
1444
|
+
this.onClose = onClose;
|
|
1410
1445
|
this.options = options;
|
|
1411
1446
|
this.overlayRef
|
|
1412
1447
|
.detachments()
|
|
@@ -1418,6 +1453,11 @@ class UiPopupInstance {
|
|
|
1418
1453
|
});
|
|
1419
1454
|
}
|
|
1420
1455
|
close() {
|
|
1456
|
+
if (this.isClosing) {
|
|
1457
|
+
return;
|
|
1458
|
+
}
|
|
1459
|
+
this.isClosing = true;
|
|
1460
|
+
this.onClose();
|
|
1421
1461
|
this.shouldClose.next();
|
|
1422
1462
|
this.shouldClose.complete();
|
|
1423
1463
|
}
|
|
@@ -1545,7 +1585,7 @@ class UiPopupService {
|
|
|
1545
1585
|
*/
|
|
1546
1586
|
createPopup(overlayRef, component, options, id, parameters) {
|
|
1547
1587
|
const newParameters = this.fetchPopupParameters(parameters);
|
|
1548
|
-
const uiPopupInstance = new UiPopupInstance(overlayRef, this.destroyRef, newParameters.animationOptions);
|
|
1588
|
+
const uiPopupInstance = new UiPopupInstance(overlayRef, this.destroyRef, options.onClose, newParameters.animationOptions);
|
|
1549
1589
|
if (newParameters.width > 0) {
|
|
1550
1590
|
uiPopupInstance.width = newParameters.width;
|
|
1551
1591
|
}
|
|
@@ -2882,48 +2922,57 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
2882
2922
|
}]
|
|
2883
2923
|
}], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }, { type: i0.Output, args: ["invalidChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], $style: [{ type: i0.Input, args: [{ isSignal: true, alias: "$style", required: false }] }], $label: [{ type: i0.Input, args: [{ isSignal: true, alias: "$label", required: false }] }], $hideValidatorErrors: [{ type: i0.Input, args: [{ isSignal: true, alias: "$hideValidatorErrors", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], dirty: [{ type: i0.Input, args: [{ isSignal: true, alias: "dirty", required: false }] }, { type: i0.Output, args: ["dirtyChange"] }] } });
|
|
2884
2924
|
|
|
2885
|
-
const sizes =
|
|
2886
|
-
small: {
|
|
2887
|
-
padding: 'padding-xs',
|
|
2888
|
-
font: 'paragraph-sm',
|
|
2889
|
-
borderRadius: 'border-radius-m',
|
|
2890
|
-
},
|
|
2891
|
-
medium: {
|
|
2892
|
-
padding: 'padding-sm',
|
|
2893
|
-
font: 'paragraph-l',
|
|
2894
|
-
borderRadius: 'border-radius-m',
|
|
2895
|
-
},
|
|
2896
|
-
};
|
|
2925
|
+
const sizes = ['small', 'medium', 'large'];
|
|
2897
2926
|
class UiInputDirective extends UiFieldBaseDirective {
|
|
2927
|
+
elementRef;
|
|
2928
|
+
renderer;
|
|
2898
2929
|
$size = input('medium', ...(ngDevMode ? [{ debugName: "$size" }] : []));
|
|
2899
2930
|
$placeholder = input('', ...(ngDevMode ? [{ debugName: "$placeholder" }] : []));
|
|
2900
2931
|
$label = input('', ...(ngDevMode ? [{ debugName: "$label" }] : []));
|
|
2901
2932
|
$shouldFocusedAfterViewInit = input(false, ...(ngDevMode ? [{ debugName: "$shouldFocusedAfterViewInit" }] : []));
|
|
2933
|
+
$isRounded = input(false, ...(ngDevMode ? [{ debugName: "$isRounded" }] : []));
|
|
2902
2934
|
$hideValidatorErrors = input(false, ...(ngDevMode ? [{ debugName: "$hideValidatorErrors" }] : []));
|
|
2903
2935
|
$icon = input(null, ...(ngDevMode ? [{ debugName: "$icon" }] : []));
|
|
2904
|
-
$layoutSize = computed(() => {
|
|
2905
|
-
const size = this.$size();
|
|
2906
|
-
return sizes[size];
|
|
2907
|
-
}, ...(ngDevMode ? [{ debugName: "$layoutSize" }] : []));
|
|
2908
2936
|
$isError = computed(() => {
|
|
2909
2937
|
return (this.touched() || (this.dirty() && this.touched())) && this.invalid();
|
|
2910
2938
|
}, ...(ngDevMode ? [{ debugName: "$isError" }] : []));
|
|
2911
|
-
|
|
2912
|
-
|
|
2939
|
+
constructor(elementRef, renderer) {
|
|
2940
|
+
super();
|
|
2941
|
+
this.elementRef = elementRef;
|
|
2942
|
+
this.renderer = renderer;
|
|
2943
|
+
effect(() => {
|
|
2944
|
+
sizes.forEach((size) => {
|
|
2945
|
+
this.renderer.removeClass(this.elementRef.nativeElement, size);
|
|
2946
|
+
});
|
|
2947
|
+
const size = this.$size();
|
|
2948
|
+
this.renderer.addClass(this.elementRef.nativeElement, size);
|
|
2949
|
+
});
|
|
2950
|
+
effect(() => {
|
|
2951
|
+
const isRounded = this.$isRounded();
|
|
2952
|
+
if (isRounded) {
|
|
2953
|
+
this.renderer.addClass(this.elementRef.nativeElement, 'rounded');
|
|
2954
|
+
}
|
|
2955
|
+
else {
|
|
2956
|
+
this.renderer.removeClass(this.elementRef.nativeElement, 'rounded');
|
|
2957
|
+
}
|
|
2958
|
+
});
|
|
2959
|
+
}
|
|
2960
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiInputDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2961
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: UiInputDirective, isStandalone: true, selector: "app-ui-input", inputs: { $size: { classPropertyName: "$size", publicName: "$size", isSignal: true, isRequired: false, transformFunction: null }, $placeholder: { classPropertyName: "$placeholder", publicName: "$placeholder", isSignal: true, isRequired: false, transformFunction: null }, $label: { classPropertyName: "$label", publicName: "$label", isSignal: true, isRequired: false, transformFunction: null }, $shouldFocusedAfterViewInit: { classPropertyName: "$shouldFocusedAfterViewInit", publicName: "$shouldFocusedAfterViewInit", isSignal: true, isRequired: false, transformFunction: null }, $isRounded: { classPropertyName: "$isRounded", publicName: "$isRounded", isSignal: true, isRequired: false, transformFunction: null }, $hideValidatorErrors: { classPropertyName: "$hideValidatorErrors", publicName: "$hideValidatorErrors", isSignal: true, isRequired: false, transformFunction: null }, $icon: { classPropertyName: "$icon", publicName: "$icon", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
2913
2962
|
}
|
|
2914
2963
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiInputDirective, decorators: [{
|
|
2915
2964
|
type: Directive,
|
|
2916
2965
|
args: [{
|
|
2917
2966
|
selector: 'app-ui-input',
|
|
2918
2967
|
}]
|
|
2919
|
-
}], propDecorators: { $size: [{ type: i0.Input, args: [{ isSignal: true, alias: "$size", required: false }] }], $placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "$placeholder", required: false }] }], $label: [{ type: i0.Input, args: [{ isSignal: true, alias: "$label", required: false }] }], $shouldFocusedAfterViewInit: [{ type: i0.Input, args: [{ isSignal: true, alias: "$shouldFocusedAfterViewInit", required: false }] }], $hideValidatorErrors: [{ type: i0.Input, args: [{ isSignal: true, alias: "$hideValidatorErrors", required: false }] }], $icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "$icon", required: false }] }] } });
|
|
2968
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { $size: [{ type: i0.Input, args: [{ isSignal: true, alias: "$size", required: false }] }], $placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "$placeholder", required: false }] }], $label: [{ type: i0.Input, args: [{ isSignal: true, alias: "$label", required: false }] }], $shouldFocusedAfterViewInit: [{ type: i0.Input, args: [{ isSignal: true, alias: "$shouldFocusedAfterViewInit", required: false }] }], $isRounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "$isRounded", required: false }] }], $hideValidatorErrors: [{ type: i0.Input, args: [{ isSignal: true, alias: "$hideValidatorErrors", required: false }] }], $icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "$icon", required: false }] }] } });
|
|
2920
2969
|
|
|
2921
2970
|
class UiInputCountryDirective extends UiInputDirective {
|
|
2922
2971
|
$selectedCountry = signal(emptyCountry, ...(ngDevMode ? [{ debugName: "$selectedCountry" }] : []));
|
|
2923
2972
|
$isOpen = signal(false, ...(ngDevMode ? [{ debugName: "$isOpen" }] : []));
|
|
2924
2973
|
$inputElement = viewChild('input', ...(ngDevMode ? [{ debugName: "$inputElement" }] : []));
|
|
2925
|
-
constructor() {
|
|
2926
|
-
super();
|
|
2974
|
+
constructor(elementRef, renderer) {
|
|
2975
|
+
super(elementRef, renderer);
|
|
2927
2976
|
}
|
|
2928
2977
|
ngAfterViewInit() {
|
|
2929
2978
|
this.autoSetCountry();
|
|
@@ -2966,7 +3015,7 @@ class UiInputCountryDirective extends UiInputDirective {
|
|
|
2966
3015
|
this.$selectedCountry.set(country);
|
|
2967
3016
|
}
|
|
2968
3017
|
}
|
|
2969
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiInputCountryDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3018
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiInputCountryDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2970
3019
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.1.1", type: UiInputCountryDirective, isStandalone: true, selector: "app-ui-input-country", viewQueries: [{ propertyName: "$inputElement", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0 });
|
|
2971
3020
|
}
|
|
2972
3021
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiInputCountryDirective, decorators: [{
|
|
@@ -2974,7 +3023,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
2974
3023
|
args: [{
|
|
2975
3024
|
selector: 'app-ui-input-country',
|
|
2976
3025
|
}]
|
|
2977
|
-
}], ctorParameters: () => [], propDecorators: { $inputElement: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }] } });
|
|
3026
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { $inputElement: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }] } });
|
|
2978
3027
|
|
|
2979
3028
|
class UIInputDateDirective extends UiInputDirective {
|
|
2980
3029
|
$isOpen = signal(false, ...(ngDevMode ? [{ debugName: "$isOpen" }] : []));
|
|
@@ -3072,8 +3121,8 @@ class UIPhoneNumberDirective extends UiInputDirective {
|
|
|
3072
3121
|
$isOpen = signal(false, ...(ngDevMode ? [{ debugName: "$isOpen" }] : []));
|
|
3073
3122
|
$countryCode = signal('', ...(ngDevMode ? [{ debugName: "$countryCode" }] : []));
|
|
3074
3123
|
$inputElement = viewChild('input', ...(ngDevMode ? [{ debugName: "$inputElement" }] : []));
|
|
3075
|
-
constructor() {
|
|
3076
|
-
super();
|
|
3124
|
+
constructor(elementRef, renderer) {
|
|
3125
|
+
super(elementRef, renderer);
|
|
3077
3126
|
}
|
|
3078
3127
|
ngAfterViewInit() {
|
|
3079
3128
|
const selectedCountry = CountryService.getCountryByCode('US') ?? emptyCountry;
|
|
@@ -3110,7 +3159,7 @@ class UIPhoneNumberDirective extends UiInputDirective {
|
|
|
3110
3159
|
inputElement.focus();
|
|
3111
3160
|
}
|
|
3112
3161
|
}
|
|
3113
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UIPhoneNumberDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UIPhoneNumberDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3114
3163
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.1.1", type: UIPhoneNumberDirective, isStandalone: true, selector: "app-ui-input-phone-number", viewQueries: [{ propertyName: "$inputElement", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0 });
|
|
3115
3164
|
}
|
|
3116
3165
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UIPhoneNumberDirective, decorators: [{
|
|
@@ -3118,7 +3167,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
3118
3167
|
args: [{
|
|
3119
3168
|
selector: 'app-ui-input-phone-number',
|
|
3120
3169
|
}]
|
|
3121
|
-
}], ctorParameters: () => [], propDecorators: { $inputElement: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }] } });
|
|
3170
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { $inputElement: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }] } });
|
|
3122
3171
|
|
|
3123
3172
|
class UiInputSelectDirective extends UiInputDirective {
|
|
3124
3173
|
$items = input.required(...(ngDevMode ? [{ debugName: "$items" }] : []));
|