@ibragim-dev-org/ui-forge-library 1.4.62 → 1.4.67
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.
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import * as i2
|
|
1
|
+
import * as i2 from '@angular/router';
|
|
2
2
|
import { NavigationEnd, NavigationStart, ActivationEnd } from '@angular/router';
|
|
3
3
|
import { BehaviorSubject, filter, take, scheduled, fromEvent, asyncScheduler, mergeAll, tap, debounceTime, Subject, Subscription, timer, switchMap, interval, takeWhile, finalize, takeUntil as takeUntil$1 } from 'rxjs';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { model, effect, Directive, Injectable, output, Input, input, PLATFORM_ID, Inject, EventEmitter, Output, inject, Pipe, Attribute, ChangeDetectionStrategy, Component,
|
|
5
|
+
import { model, effect, Directive, Injectable, output, Input, input, PLATFORM_ID, Inject, EventEmitter, Output, signal, inject, Pipe, Attribute, ChangeDetectionStrategy, Component, computed, viewChild, untracked, Injector, afterRenderEffect, contentChildren, contentChild, ViewChildren } from '@angular/core';
|
|
6
6
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
7
7
|
import { isPlatformBrowser, DOCUMENT, NgStyle } from '@angular/common';
|
|
8
8
|
import { throttleTime, tap as tap$1, takeUntil, debounceTime as debounceTime$1 } from 'rxjs/operators';
|
|
9
|
-
import * as i2 from '@angular/platform-browser';
|
|
10
9
|
import { ulid } from 'ulid';
|
|
11
10
|
import * as i1 from '@angular/cdk/overlay';
|
|
12
11
|
import { OverlayConfig, FlexibleConnectedPositionStrategy } from '@angular/cdk/overlay';
|
|
@@ -617,6 +616,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
617
616
|
class StickyObserverDirective {
|
|
618
617
|
elementRef;
|
|
619
618
|
renderer;
|
|
619
|
+
$isStuck = signal(false, ...(ngDevMode ? [{ debugName: "$isStuck" }] : []));
|
|
620
620
|
observer;
|
|
621
621
|
sentinel;
|
|
622
622
|
constructor(elementRef, renderer) {
|
|
@@ -633,13 +633,7 @@ class StickyObserverDirective {
|
|
|
633
633
|
const parent = stickyEl.parentElement;
|
|
634
634
|
parent.insertBefore(this.sentinel, stickyEl);
|
|
635
635
|
this.observer = new IntersectionObserver(([entry]) => {
|
|
636
|
-
|
|
637
|
-
if (isStuck) {
|
|
638
|
-
this.renderer.addClass(stickyEl, 'sticked');
|
|
639
|
-
}
|
|
640
|
-
else {
|
|
641
|
-
this.renderer.removeClass(stickyEl, 'sticked');
|
|
642
|
-
}
|
|
636
|
+
this.$isStuck.set(entry.boundingClientRect.top < 0);
|
|
643
637
|
}, { threshold: [1] });
|
|
644
638
|
this.observer.observe(this.sentinel);
|
|
645
639
|
}
|
|
@@ -648,12 +642,15 @@ class StickyObserverDirective {
|
|
|
648
642
|
this.sentinel?.remove();
|
|
649
643
|
}
|
|
650
644
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: StickyObserverDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
651
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.1", type: StickyObserverDirective, isStandalone: true, selector: "[appStickyObserver]", ngImport: i0 });
|
|
645
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.1", type: StickyObserverDirective, isStandalone: true, selector: "[appStickyObserver]", host: { properties: { "class.sticked": "$isStuck()" } }, ngImport: i0 });
|
|
652
646
|
}
|
|
653
647
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: StickyObserverDirective, decorators: [{
|
|
654
648
|
type: Directive,
|
|
655
649
|
args: [{
|
|
656
650
|
selector: '[appStickyObserver]',
|
|
651
|
+
host: {
|
|
652
|
+
'[class.sticked]': '$isStuck()',
|
|
653
|
+
},
|
|
657
654
|
}]
|
|
658
655
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
659
656
|
|
|
@@ -1221,30 +1218,27 @@ class IconComponent {
|
|
|
1221
1218
|
elementRef;
|
|
1222
1219
|
icons;
|
|
1223
1220
|
renderer;
|
|
1224
|
-
sanitizer;
|
|
1225
1221
|
noScaling;
|
|
1226
1222
|
strokeDiff;
|
|
1227
1223
|
set icon(i) {
|
|
1228
1224
|
if (i !== this.iconApp) {
|
|
1229
1225
|
i = i || '';
|
|
1230
|
-
const prev = this.iconApp;
|
|
1231
1226
|
this.iconApp = i;
|
|
1232
|
-
this.updateIcon(i
|
|
1227
|
+
this.updateIcon(i);
|
|
1233
1228
|
}
|
|
1234
1229
|
}
|
|
1235
1230
|
iconApp = '';
|
|
1236
|
-
|
|
1231
|
+
iconClass = '';
|
|
1232
|
+
constructor(elementRef, icons, renderer, noScaling, strokeDiff) {
|
|
1237
1233
|
this.elementRef = elementRef;
|
|
1238
1234
|
this.icons = icons;
|
|
1239
1235
|
this.renderer = renderer;
|
|
1240
|
-
this.sanitizer = sanitizer;
|
|
1241
1236
|
this.noScaling = noScaling;
|
|
1242
1237
|
this.strokeDiff = strokeDiff;
|
|
1243
1238
|
}
|
|
1244
|
-
updateIcon(current
|
|
1239
|
+
updateIcon(current) {
|
|
1245
1240
|
let rawSvg;
|
|
1246
1241
|
let currentClass = '';
|
|
1247
|
-
const previousClass = typeof previous === 'object' ? previous.name : previous;
|
|
1248
1242
|
if (typeof current === 'object') {
|
|
1249
1243
|
rawSvg = current.svgData;
|
|
1250
1244
|
currentClass = current.name;
|
|
@@ -1267,13 +1261,7 @@ class IconComponent {
|
|
|
1267
1261
|
rawSvg = this.adjustStrokeWidth(rawSvg, +this.strokeDiff);
|
|
1268
1262
|
}
|
|
1269
1263
|
this.renderer.setProperty(this.elementRef.nativeElement, 'innerHTML', rawSvg);
|
|
1270
|
-
this.
|
|
1271
|
-
if (previousClass) {
|
|
1272
|
-
this.renderer.removeClass(this.elementRef.nativeElement, previousClass);
|
|
1273
|
-
}
|
|
1274
|
-
if (currentClass) {
|
|
1275
|
-
this.renderer.addClass(this.elementRef.nativeElement, currentClass);
|
|
1276
|
-
}
|
|
1264
|
+
this.iconClass = currentClass;
|
|
1277
1265
|
}
|
|
1278
1266
|
adjustStrokeWidth(svgString, strokeDiff) {
|
|
1279
1267
|
return svgString.replace(/stroke-width="([\d.]+)"/g, (_, n) => {
|
|
@@ -1281,13 +1269,16 @@ class IconComponent {
|
|
|
1281
1269
|
return `stroke-width="${updatedWidth}"`;
|
|
1282
1270
|
});
|
|
1283
1271
|
}
|
|
1284
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: IconComponent, deps: [{ token: i0.ElementRef }, { token: AppIconsLibrary }, { token: i0.Renderer2 }, { token:
|
|
1285
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: IconComponent, isStandalone: true, selector: "app-icon", inputs: { icon: "icon" }, ngImport: i0, template: ``, isInline: true, styles: [":host{display:inline-block;line-height:0!important}:host ::ng-deep .svg-icon{display:inline-block;font-size:inherit;height:1em;width:1em;overflow:visible;position:relative;vertical-align:-.1em}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1272
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: IconComponent, deps: [{ token: i0.ElementRef }, { token: AppIconsLibrary }, { token: i0.Renderer2 }, { token: 'no-scaling', attribute: true }, { token: 'stroke-diff', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1273
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: IconComponent, isStandalone: true, selector: "app-icon", inputs: { icon: "icon" }, host: { properties: { "class": "iconClass" }, classAttribute: "icon" }, ngImport: i0, template: ``, isInline: true, styles: [":host{display:inline-block;line-height:0!important}:host ::ng-deep .svg-icon{display:inline-block;font-size:inherit;height:1em;width:1em;overflow:visible;position:relative;vertical-align:-.1em}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1286
1274
|
}
|
|
1287
1275
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: IconComponent, decorators: [{
|
|
1288
1276
|
type: Component,
|
|
1289
|
-
args: [{ selector: 'app-icon', template: ``, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1290
|
-
|
|
1277
|
+
args: [{ selector: 'app-icon', template: ``, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
1278
|
+
class: 'icon',
|
|
1279
|
+
'[class]': 'iconClass',
|
|
1280
|
+
}, styles: [":host{display:inline-block;line-height:0!important}:host ::ng-deep .svg-icon{display:inline-block;font-size:inherit;height:1em;width:1em;overflow:visible;position:relative;vertical-align:-.1em}\n"] }]
|
|
1281
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: AppIconsLibrary }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
|
|
1291
1282
|
type: Attribute,
|
|
1292
1283
|
args: ['no-scaling']
|
|
1293
1284
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1719,7 +1710,7 @@ class UiAlertMessagesService {
|
|
|
1719
1710
|
.subscribe();
|
|
1720
1711
|
this.timerSubscriptions.set(alert.id, subscription);
|
|
1721
1712
|
}
|
|
1722
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiAlertMessagesService, deps: [{ token: UiAlertMessagesOverlayService }, { token: i2
|
|
1713
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiAlertMessagesService, deps: [{ token: UiAlertMessagesOverlayService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1723
1714
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiAlertMessagesService, providedIn: 'root' });
|
|
1724
1715
|
}
|
|
1725
1716
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiAlertMessagesService, decorators: [{
|
|
@@ -1727,19 +1718,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1727
1718
|
args: [{
|
|
1728
1719
|
providedIn: 'root',
|
|
1729
1720
|
}]
|
|
1730
|
-
}], ctorParameters: () => [{ type: UiAlertMessagesOverlayService }, { type: i2
|
|
1721
|
+
}], ctorParameters: () => [{ type: UiAlertMessagesOverlayService }, { type: i2.Router }] });
|
|
1731
1722
|
|
|
1732
|
-
const avatarSizes = [
|
|
1733
|
-
'nano',
|
|
1734
|
-
'micro',
|
|
1735
|
-
'extra-small',
|
|
1736
|
-
'small',
|
|
1737
|
-
'medium',
|
|
1738
|
-
'large',
|
|
1739
|
-
'extra-large',
|
|
1740
|
-
'xx-large',
|
|
1741
|
-
'xxx-large',
|
|
1742
|
-
];
|
|
1743
1723
|
class UiAvatarDirective {
|
|
1744
1724
|
elementRef;
|
|
1745
1725
|
renderer;
|
|
@@ -1753,39 +1733,45 @@ class UiAvatarDirective {
|
|
|
1753
1733
|
this.elementRef = elementRef;
|
|
1754
1734
|
this.renderer = renderer;
|
|
1755
1735
|
effect(() => {
|
|
1756
|
-
|
|
1757
|
-
.trim()
|
|
1758
|
-
.split(/\s+/)
|
|
1759
|
-
.slice(0, 2)
|
|
1760
|
-
.map((word) => word[0]?.toUpperCase() || '')
|
|
1761
|
-
.join('');
|
|
1762
|
-
const colorValue = this.$acronym();
|
|
1763
|
-
this.renderer.setStyle(this.elementRef.nativeElement, 'background', stringToColorGradient(colorValue));
|
|
1764
|
-
this.$text.set(acronym);
|
|
1765
|
-
});
|
|
1766
|
-
effect(() => {
|
|
1767
|
-
if (this.$isRounded()) {
|
|
1768
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'rounded');
|
|
1769
|
-
}
|
|
1770
|
-
else {
|
|
1771
|
-
this.renderer.removeClass(this.elementRef.nativeElement, 'rounded');
|
|
1772
|
-
}
|
|
1773
|
-
});
|
|
1774
|
-
effect(() => {
|
|
1775
|
-
avatarSizes.forEach((size) => {
|
|
1776
|
-
this.renderer.removeClass(this.elementRef.nativeElement, size);
|
|
1777
|
-
});
|
|
1778
|
-
const size = this.$size();
|
|
1779
|
-
this.renderer.addClass(this.elementRef.nativeElement, size);
|
|
1736
|
+
this.setStyleBackground();
|
|
1780
1737
|
});
|
|
1781
1738
|
}
|
|
1739
|
+
setStyleBackground() {
|
|
1740
|
+
const src = this.$src()?.trim();
|
|
1741
|
+
const canShow = this.$canShowAvatar();
|
|
1742
|
+
const acronym = this.$acronym()
|
|
1743
|
+
.trim()
|
|
1744
|
+
.split(/\s+/)
|
|
1745
|
+
.slice(0, 2)
|
|
1746
|
+
.map((w) => w[0]?.toUpperCase() || '')
|
|
1747
|
+
.join('');
|
|
1748
|
+
this.$text.set(acronym);
|
|
1749
|
+
if (src && canShow) {
|
|
1750
|
+
this.renderer.removeStyle(this.elementRef.nativeElement, 'background');
|
|
1751
|
+
return;
|
|
1752
|
+
}
|
|
1753
|
+
const colorValue = this.$acronym();
|
|
1754
|
+
this.renderer.setStyle(this.elementRef.nativeElement, 'background', stringToColorGradient(colorValue));
|
|
1755
|
+
}
|
|
1782
1756
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiAvatarDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1783
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: UiAvatarDirective, isStandalone: true, selector: "app-ui-avatar", inputs: { $size: { classPropertyName: "$size", publicName: "$size", isSignal: true, isRequired: false, transformFunction: null }, $isRounded: { classPropertyName: "$isRounded", publicName: "$isRounded", isSignal: true, isRequired: false, transformFunction: null }, $src: { classPropertyName: "$src", publicName: "$src", isSignal: true, isRequired: true, transformFunction: null }, $acronym: { classPropertyName: "$acronym", publicName: "$acronym", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
1757
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: UiAvatarDirective, isStandalone: true, selector: "app-ui-avatar", inputs: { $size: { classPropertyName: "$size", publicName: "$size", isSignal: true, isRequired: false, transformFunction: null }, $isRounded: { classPropertyName: "$isRounded", publicName: "$isRounded", isSignal: true, isRequired: false, transformFunction: null }, $src: { classPropertyName: "$src", publicName: "$src", isSignal: true, isRequired: true, transformFunction: null }, $acronym: { classPropertyName: "$acronym", publicName: "$acronym", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.nano": "$size() === 'nano'", "class.micro": "$size() === 'micro'", "class.extra-small": "$size() === 'extra-small'", "class.small": "$size() === 'small'", "class.medium": "$size() === 'medium'", "class.large": "$size() === 'large'", "class.extra-large": "$size() === 'extra-large'", "class.xx-large": "$size() === 'xx-large'", "class.xxx-large": "$size() === 'xxx-large'", "class.rounded": "$isRounded()" } }, ngImport: i0 });
|
|
1784
1758
|
}
|
|
1785
1759
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiAvatarDirective, decorators: [{
|
|
1786
1760
|
type: Directive,
|
|
1787
1761
|
args: [{
|
|
1788
1762
|
selector: 'app-ui-avatar',
|
|
1763
|
+
host: {
|
|
1764
|
+
'[class.nano]': "$size() === 'nano'",
|
|
1765
|
+
'[class.micro]': "$size() === 'micro'",
|
|
1766
|
+
'[class.extra-small]': "$size() === 'extra-small'",
|
|
1767
|
+
'[class.small]': "$size() === 'small'",
|
|
1768
|
+
'[class.medium]': "$size() === 'medium'",
|
|
1769
|
+
'[class.large]': "$size() === 'large'",
|
|
1770
|
+
'[class.extra-large]': "$size() === 'extra-large'",
|
|
1771
|
+
'[class.xx-large]': "$size() === 'xx-large'",
|
|
1772
|
+
'[class.xxx-large]': "$size() === 'xxx-large'",
|
|
1773
|
+
'[class.rounded]': '$isRounded()',
|
|
1774
|
+
},
|
|
1789
1775
|
}]
|
|
1790
1776
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { $size: [{ type: i0.Input, args: [{ isSignal: true, alias: "$size", required: false }] }], $isRounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "$isRounded", required: false }] }], $src: [{ type: i0.Input, args: [{ isSignal: true, alias: "$src", required: true }] }], $acronym: [{ type: i0.Input, args: [{ isSignal: true, alias: "$acronym", required: true }] }] } });
|
|
1791
1777
|
|
|
@@ -2987,7 +2973,7 @@ class UiPopupService extends UiModal {
|
|
|
2987
2973
|
topEnd: '0',
|
|
2988
2974
|
};
|
|
2989
2975
|
}
|
|
2990
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiPopupService, deps: [{ token: i1.Overlay }, { token: i0.Injector }, { token: i0.DestroyRef }, { token: i2
|
|
2976
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiPopupService, deps: [{ token: i1.Overlay }, { token: i0.Injector }, { token: i0.DestroyRef }, { token: i2.Router }, { token: UiPopupBackdropService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2991
2977
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiPopupService, providedIn: 'root' });
|
|
2992
2978
|
}
|
|
2993
2979
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiPopupService, decorators: [{
|
|
@@ -2995,7 +2981,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
2995
2981
|
args: [{
|
|
2996
2982
|
providedIn: 'root',
|
|
2997
2983
|
}]
|
|
2998
|
-
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.DestroyRef }, { type: i2
|
|
2984
|
+
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.DestroyRef }, { type: i2.Router }, { type: UiPopupBackdropService }] });
|
|
2999
2985
|
|
|
3000
2986
|
class UiPopupBackdropDirective {
|
|
3001
2987
|
elementRef;
|
|
@@ -3393,7 +3379,7 @@ class UiDropdownService extends UiModal {
|
|
|
3393
3379
|
},
|
|
3394
3380
|
]);
|
|
3395
3381
|
}
|
|
3396
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiDropdownService, deps: [{ token: i1.Overlay }, { token: i0.Injector }, { token: i0.DestroyRef }, { token: i2
|
|
3382
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiDropdownService, deps: [{ token: i1.Overlay }, { token: i0.Injector }, { token: i0.DestroyRef }, { token: i2.Router }, { token: UiPopupBackdropService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3397
3383
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiDropdownService, providedIn: 'root' });
|
|
3398
3384
|
}
|
|
3399
3385
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiDropdownService, decorators: [{
|
|
@@ -3401,7 +3387,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
3401
3387
|
args: [{
|
|
3402
3388
|
providedIn: 'root',
|
|
3403
3389
|
}]
|
|
3404
|
-
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.DestroyRef }, { type: i2
|
|
3390
|
+
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.DestroyRef }, { type: i2.Router }, { type: UiPopupBackdropService }] });
|
|
3405
3391
|
|
|
3406
3392
|
class UiDropdownContainerDirective extends UiPopupContainerDirective {
|
|
3407
3393
|
dropDownService;
|
|
@@ -3630,17 +3616,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
3630
3616
|
}]
|
|
3631
3617
|
}], propDecorators: { $hasNext: [{ type: i0.Input, args: [{ isSignal: true, alias: "$hasNext", required: true }] }], $hasPrevious: [{ type: i0.Input, args: [{ isSignal: true, alias: "$hasPrevious", required: true }] }], $nextClicked: [{ type: i0.Output, args: ["$nextClicked"] }], $previousClicked: [{ type: i0.Output, args: ["$previousClicked"] }] } });
|
|
3632
3618
|
|
|
3633
|
-
const buttonColors = [
|
|
3634
|
-
'primary',
|
|
3635
|
-
'secondary',
|
|
3636
|
-
'tertiary',
|
|
3637
|
-
'quaternary',
|
|
3638
|
-
'success',
|
|
3639
|
-
'warning',
|
|
3640
|
-
'info',
|
|
3641
|
-
'danger',
|
|
3642
|
-
];
|
|
3643
|
-
const buttonSizes = ['micro', 'extra-small', 'small', 'medium', 'large', 'extra-large'];
|
|
3644
3619
|
class UiButtonDirective {
|
|
3645
3620
|
elementRef;
|
|
3646
3621
|
renderer;
|
|
@@ -3654,75 +3629,39 @@ class UiButtonDirective {
|
|
|
3654
3629
|
constructor(elementRef, renderer) {
|
|
3655
3630
|
this.elementRef = elementRef;
|
|
3656
3631
|
this.renderer = renderer;
|
|
3657
|
-
effect(() => {
|
|
3658
|
-
if (this.$sizeBehavior() === 'block') {
|
|
3659
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'block');
|
|
3660
|
-
}
|
|
3661
|
-
else {
|
|
3662
|
-
this.renderer.removeClass(this.elementRef.nativeElement, 'block');
|
|
3663
|
-
}
|
|
3664
|
-
});
|
|
3665
|
-
effect(() => {
|
|
3666
|
-
const isOutlined = this.$isOutlined();
|
|
3667
|
-
if (isOutlined) {
|
|
3668
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'outline');
|
|
3669
|
-
}
|
|
3670
|
-
else {
|
|
3671
|
-
this.renderer.removeClass(this.elementRef.nativeElement, 'outline');
|
|
3672
|
-
}
|
|
3673
|
-
});
|
|
3674
|
-
effect(() => {
|
|
3675
|
-
const isRounded = this.$isRounded();
|
|
3676
|
-
if (isRounded) {
|
|
3677
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'rounded');
|
|
3678
|
-
}
|
|
3679
|
-
else {
|
|
3680
|
-
this.renderer.removeClass(this.elementRef.nativeElement, 'rounded');
|
|
3681
|
-
}
|
|
3682
|
-
});
|
|
3683
|
-
effect(() => {
|
|
3684
|
-
buttonSizes.forEach((size) => {
|
|
3685
|
-
this.renderer.removeClass(this.elementRef.nativeElement, size);
|
|
3686
|
-
});
|
|
3687
|
-
const size = this.$size();
|
|
3688
|
-
this.renderer.addClass(this.elementRef.nativeElement, size);
|
|
3689
|
-
});
|
|
3690
|
-
effect(() => {
|
|
3691
|
-
if (this.$isDisabled()) {
|
|
3692
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'disabled');
|
|
3693
|
-
}
|
|
3694
|
-
else {
|
|
3695
|
-
this.renderer.removeClass(this.elementRef.nativeElement, 'disabled');
|
|
3696
|
-
}
|
|
3697
|
-
});
|
|
3698
|
-
effect(() => {
|
|
3699
|
-
if (this.$isLoading()) {
|
|
3700
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'loading');
|
|
3701
|
-
}
|
|
3702
|
-
else {
|
|
3703
|
-
this.renderer.removeClass(this.elementRef.nativeElement, 'loading');
|
|
3704
|
-
}
|
|
3705
|
-
});
|
|
3706
|
-
effect(() => {
|
|
3707
|
-
const color = this.$color();
|
|
3708
|
-
buttonColors.forEach((color) => {
|
|
3709
|
-
this.renderer.removeClass(this.elementRef.nativeElement, color);
|
|
3710
|
-
});
|
|
3711
|
-
this.renderer.addClass(this.elementRef.nativeElement, color);
|
|
3712
|
-
});
|
|
3713
3632
|
}
|
|
3714
3633
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiButtonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3715
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: UiButtonDirective, isStandalone: true, selector: "app-ui-button", inputs: { $color: { classPropertyName: "$color", publicName: "$color", isSignal: true, isRequired: true, transformFunction: null }, $isOutlined: { classPropertyName: "$isOutlined", publicName: "$isOutlined", isSignal: true, isRequired: false, transformFunction: null }, $isRounded: { classPropertyName: "$isRounded", publicName: "$isRounded", isSignal: true, isRequired: false, transformFunction: null }, $sizeBehavior: { classPropertyName: "$sizeBehavior", publicName: "$sizeBehavior", isSignal: true, isRequired: false, transformFunction: null }, $size: { classPropertyName: "$size", publicName: "$size", isSignal: true, isRequired: false, transformFunction: null }, $isDisabled: { classPropertyName: "$isDisabled", publicName: "$isDisabled", isSignal: true, isRequired: false, transformFunction: null }, $isLoading: { classPropertyName: "$isLoading", publicName: "$isLoading", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
3634
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: UiButtonDirective, isStandalone: true, selector: "app-ui-button", inputs: { $color: { classPropertyName: "$color", publicName: "$color", isSignal: true, isRequired: true, transformFunction: null }, $isOutlined: { classPropertyName: "$isOutlined", publicName: "$isOutlined", isSignal: true, isRequired: false, transformFunction: null }, $isRounded: { classPropertyName: "$isRounded", publicName: "$isRounded", isSignal: true, isRequired: false, transformFunction: null }, $sizeBehavior: { classPropertyName: "$sizeBehavior", publicName: "$sizeBehavior", isSignal: true, isRequired: false, transformFunction: null }, $size: { classPropertyName: "$size", publicName: "$size", isSignal: true, isRequired: false, transformFunction: null }, $isDisabled: { classPropertyName: "$isDisabled", publicName: "$isDisabled", isSignal: true, isRequired: false, transformFunction: null }, $isLoading: { classPropertyName: "$isLoading", publicName: "$isLoading", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.block": "$sizeBehavior() === 'block'", "class.outline": "$isOutlined()", "class.rounded": "$isRounded()", "class.micro": "$size() === 'micro'", "class.extra-small": "$size() === 'extra-small'", "class.small": "$size() === 'small'", "class.medium": "$size() === 'medium'", "class.large": "$size() === 'large'", "class.extra-large": "$size() === 'extra-large'", "class.disabled": "$isDisabled()", "class.loading": "$isLoading()", "class.primary": "$color() === 'primary'", "class.secondary": "$color() === 'secondary'", "class.tertiary": "$color() === 'tertiary'", "class.quaternary": "$color() === 'quaternary'", "class.success": "$color() === 'success'", "class.warning": "$color() === 'warning'", "class.info": "$color() === 'info'", "class.danger": "$color() === 'danger'" } }, ngImport: i0 });
|
|
3716
3635
|
}
|
|
3717
3636
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiButtonDirective, decorators: [{
|
|
3718
3637
|
type: Directive,
|
|
3719
3638
|
args: [{
|
|
3720
3639
|
selector: 'app-ui-button',
|
|
3640
|
+
host: {
|
|
3641
|
+
'[class.block]': "$sizeBehavior() === 'block'",
|
|
3642
|
+
'[class.outline]': '$isOutlined()',
|
|
3643
|
+
'[class.rounded]': '$isRounded()',
|
|
3644
|
+
'[class.micro]': "$size() === 'micro'",
|
|
3645
|
+
'[class.extra-small]': "$size() === 'extra-small'",
|
|
3646
|
+
'[class.small]': "$size() === 'small'",
|
|
3647
|
+
'[class.medium]': "$size() === 'medium'",
|
|
3648
|
+
'[class.large]': "$size() === 'large'",
|
|
3649
|
+
'[class.extra-large]': "$size() === 'extra-large'",
|
|
3650
|
+
'[class.disabled]': '$isDisabled()',
|
|
3651
|
+
'[class.loading]': '$isLoading()',
|
|
3652
|
+
'[class.primary]': "$color() === 'primary'",
|
|
3653
|
+
'[class.secondary]': "$color() === 'secondary'",
|
|
3654
|
+
'[class.tertiary]': "$color() === 'tertiary'",
|
|
3655
|
+
'[class.quaternary]': "$color() === 'quaternary'",
|
|
3656
|
+
'[class.success]': "$color() === 'success'",
|
|
3657
|
+
'[class.warning]': "$color() === 'warning'",
|
|
3658
|
+
'[class.info]': "$color() === 'info'",
|
|
3659
|
+
'[class.danger]': "$color() === 'danger'",
|
|
3660
|
+
},
|
|
3721
3661
|
}]
|
|
3722
3662
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { $color: [{ type: i0.Input, args: [{ isSignal: true, alias: "$color", required: true }] }], $isOutlined: [{ type: i0.Input, args: [{ isSignal: true, alias: "$isOutlined", required: false }] }], $isRounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "$isRounded", required: false }] }], $sizeBehavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "$sizeBehavior", required: false }] }], $size: [{ type: i0.Input, args: [{ isSignal: true, alias: "$size", required: false }] }], $isDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "$isDisabled", required: false }] }], $isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "$isLoading", required: false }] }] } });
|
|
3723
3663
|
|
|
3724
3664
|
class UiSelectButtonsDirective {
|
|
3725
|
-
renderer;
|
|
3726
3665
|
elementRef;
|
|
3727
3666
|
destroyRef;
|
|
3728
3667
|
platformId;
|
|
@@ -3732,16 +3671,11 @@ class UiSelectButtonsDirective {
|
|
|
3732
3671
|
$overflowMode = input('scroll', ...(ngDevMode ? [{ debugName: "$overflowMode" }] : []));
|
|
3733
3672
|
$buttonChanged = output();
|
|
3734
3673
|
$isScrollable = signal(false, ...(ngDevMode ? [{ debugName: "$isScrollable" }] : []));
|
|
3735
|
-
constructor(
|
|
3736
|
-
this.renderer = renderer;
|
|
3674
|
+
constructor(elementRef, destroyRef, platformId) {
|
|
3737
3675
|
this.elementRef = elementRef;
|
|
3738
3676
|
this.destroyRef = destroyRef;
|
|
3739
3677
|
this.platformId = platformId;
|
|
3740
3678
|
}
|
|
3741
|
-
ngOnInit() {
|
|
3742
|
-
this.renderer.addClass(this.elementRef.nativeElement, this.$alignment());
|
|
3743
|
-
this.renderer.addClass(this.elementRef.nativeElement, this.$overflowMode());
|
|
3744
|
-
}
|
|
3745
3679
|
ngAfterViewInit() {
|
|
3746
3680
|
this.checkScroll();
|
|
3747
3681
|
if (isPlatformBrowser(this.platformId)) {
|
|
@@ -3762,22 +3696,24 @@ class UiSelectButtonsDirective {
|
|
|
3762
3696
|
const el = this.elementRef.nativeElement;
|
|
3763
3697
|
const isScrollable = el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight;
|
|
3764
3698
|
this.$isScrollable.set(isScrollable);
|
|
3765
|
-
if (isScrollable) {
|
|
3766
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'scrollable');
|
|
3767
|
-
}
|
|
3768
|
-
else {
|
|
3769
|
-
this.renderer.removeClass(this.elementRef.nativeElement, 'scrollable');
|
|
3770
|
-
}
|
|
3771
3699
|
}
|
|
3772
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiSelectButtonsDirective, deps: [{ token: i0.
|
|
3773
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: UiSelectButtonsDirective, isStandalone: true, selector: "app-ui-select-buttons", inputs: { $buttons: { classPropertyName: "$buttons", publicName: "$buttons", isSignal: true, isRequired: true, transformFunction: null }, $alignment: { classPropertyName: "$alignment", publicName: "$alignment", isSignal: true, isRequired: false, transformFunction: null }, $overflowMode: { classPropertyName: "$overflowMode", publicName: "$overflowMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { $buttonChanged: "$buttonChanged" }, ngImport: i0 });
|
|
3700
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiSelectButtonsDirective, deps: [{ token: i0.ElementRef }, { token: i0.DestroyRef }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3701
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: UiSelectButtonsDirective, isStandalone: true, selector: "app-ui-select-buttons", inputs: { $buttons: { classPropertyName: "$buttons", publicName: "$buttons", isSignal: true, isRequired: true, transformFunction: null }, $alignment: { classPropertyName: "$alignment", publicName: "$alignment", isSignal: true, isRequired: false, transformFunction: null }, $overflowMode: { classPropertyName: "$overflowMode", publicName: "$overflowMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { $buttonChanged: "$buttonChanged" }, host: { properties: { "class.justified": "$alignment() === 'justified'", "class.vertical": "$alignment() === 'vertical'", "class.left": "$alignment() === 'left'", "class.scroll": "$overflowMode() === 'scroll'", "class.wrap": "$overflowMode() === 'wrap'", "class.scrollable": "$isScrollable()" } }, ngImport: i0 });
|
|
3774
3702
|
}
|
|
3775
3703
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiSelectButtonsDirective, decorators: [{
|
|
3776
3704
|
type: Directive,
|
|
3777
3705
|
args: [{
|
|
3778
3706
|
selector: 'app-ui-select-buttons',
|
|
3707
|
+
host: {
|
|
3708
|
+
'[class.justified]': "$alignment() === 'justified'",
|
|
3709
|
+
'[class.vertical]': "$alignment() === 'vertical'",
|
|
3710
|
+
'[class.left]': "$alignment() === 'left'",
|
|
3711
|
+
'[class.scroll]': "$overflowMode() === 'scroll'",
|
|
3712
|
+
'[class.wrap]': "$overflowMode() === 'wrap'",
|
|
3713
|
+
'[class.scrollable]': '$isScrollable()',
|
|
3714
|
+
},
|
|
3779
3715
|
}]
|
|
3780
|
-
}], ctorParameters: () => [{ type: i0.
|
|
3716
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.DestroyRef }, { type: undefined, decorators: [{
|
|
3781
3717
|
type: Inject,
|
|
3782
3718
|
args: [PLATFORM_ID]
|
|
3783
3719
|
}] }], propDecorators: { $buttons: [{ type: i0.Input, args: [{ isSignal: true, alias: "$buttons", required: true }] }], $alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "$alignment", required: false }] }], $overflowMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "$overflowMode", required: false }] }], $buttonChanged: [{ type: i0.Output, args: ["$buttonChanged"] }] } });
|
|
@@ -3843,17 +3779,21 @@ class UiTabsDirective {
|
|
|
3843
3779
|
});
|
|
3844
3780
|
});
|
|
3845
3781
|
}
|
|
3846
|
-
ngOnInit() {
|
|
3847
|
-
this.renderer.addClass(this.elementRef.nativeElement, this.$alignment());
|
|
3848
|
-
}
|
|
3849
3782
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiTabsDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3850
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.1.1", type: UiTabsDirective, isStandalone: true, selector: "[appUiTabs]", inputs: { $tabs: { classPropertyName: "$tabs", publicName: "$tabs", isSignal: true, isRequired: true, transformFunction: null }, $alignment: { classPropertyName: "$alignment", publicName: "$alignment", isSignal: true, isRequired: false, transformFunction: null }, $selectedTabIndex: { classPropertyName: "$selectedTabIndex", publicName: "$selectedTabIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { $tabs: "$tabsChange", $selectedTabIndex: "$selectedTabIndexChange" }, queries: [{ propertyName: "$templates", predicate: ["tab"], isSignal: true }, { propertyName: "$headContent", first: true, predicate: ["head"], descendants: true, isSignal: true }], exportAs: ["uiTabs"], ngImport: i0 });
|
|
3783
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.1.1", type: UiTabsDirective, isStandalone: true, selector: "[appUiTabs]", inputs: { $tabs: { classPropertyName: "$tabs", publicName: "$tabs", isSignal: true, isRequired: true, transformFunction: null }, $alignment: { classPropertyName: "$alignment", publicName: "$alignment", isSignal: true, isRequired: false, transformFunction: null }, $selectedTabIndex: { classPropertyName: "$selectedTabIndex", publicName: "$selectedTabIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { $tabs: "$tabsChange", $selectedTabIndex: "$selectedTabIndexChange" }, host: { properties: { "class.justified": "$alignment() === 'justified'", "class.vertical": "$alignment() === 'vertical'", "class.left": "$alignment() === 'left'", "class.right": "$alignment() === 'right'", "class.vertical-reverse": "$alignment() === 'vertical-reverse'" } }, queries: [{ propertyName: "$templates", predicate: ["tab"], isSignal: true }, { propertyName: "$headContent", first: true, predicate: ["head"], descendants: true, isSignal: true }], exportAs: ["uiTabs"], ngImport: i0 });
|
|
3851
3784
|
}
|
|
3852
3785
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiTabsDirective, decorators: [{
|
|
3853
3786
|
type: Directive,
|
|
3854
3787
|
args: [{
|
|
3855
3788
|
selector: '[appUiTabs]',
|
|
3856
3789
|
exportAs: 'uiTabs',
|
|
3790
|
+
host: {
|
|
3791
|
+
'[class.justified]': "$alignment() === 'justified'",
|
|
3792
|
+
'[class.vertical]': "$alignment() === 'vertical'",
|
|
3793
|
+
'[class.left]': "$alignment() === 'left'",
|
|
3794
|
+
'[class.right]': "$alignment() === 'right'",
|
|
3795
|
+
'[class.vertical-reverse]': "$alignment() === 'vertical-reverse'",
|
|
3796
|
+
},
|
|
3857
3797
|
}]
|
|
3858
3798
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { $tabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "$tabs", required: true }] }, { type: i0.Output, args: ["$tabsChange"] }], $alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "$alignment", required: false }] }], $selectedTabIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "$selectedTabIndex", required: false }] }, { type: i0.Output, args: ["$selectedTabIndexChange"] }], $templates: [{ type: i0.ContentChildren, args: ['tab', { isSignal: true }] }], $headContent: [{ type: i0.ContentChild, args: ['head', { isSignal: true }] }] } });
|
|
3859
3799
|
|
|
@@ -3910,8 +3850,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
3910
3850
|
}]
|
|
3911
3851
|
}], 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 }] }], $hasValidators: [{ type: i0.Input, args: [{ isSignal: true, alias: "$hasValidators", 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"] }] } });
|
|
3912
3852
|
|
|
3913
|
-
const sizes = ['micro', 'extra-small', 'small', 'medium', 'large', 'extra-large'];
|
|
3914
|
-
const styles = ['primary', 'secondary', 'tertiary', 'quaternary'];
|
|
3915
3853
|
class UiInputDirective extends UiFieldBaseDirective {
|
|
3916
3854
|
elementRef;
|
|
3917
3855
|
renderer;
|
|
@@ -3932,37 +3870,27 @@ class UiInputDirective extends UiFieldBaseDirective {
|
|
|
3932
3870
|
super();
|
|
3933
3871
|
this.elementRef = elementRef;
|
|
3934
3872
|
this.renderer = renderer;
|
|
3935
|
-
effect(() => {
|
|
3936
|
-
const style = this.$style();
|
|
3937
|
-
styles.forEach((style) => {
|
|
3938
|
-
this.renderer.removeClass(this.elementRef.nativeElement, style);
|
|
3939
|
-
});
|
|
3940
|
-
this.renderer.addClass(this.elementRef.nativeElement, style);
|
|
3941
|
-
});
|
|
3942
|
-
effect(() => {
|
|
3943
|
-
sizes.forEach((size) => {
|
|
3944
|
-
this.renderer.removeClass(this.elementRef.nativeElement, size);
|
|
3945
|
-
});
|
|
3946
|
-
const size = this.$size();
|
|
3947
|
-
this.renderer.addClass(this.elementRef.nativeElement, size);
|
|
3948
|
-
});
|
|
3949
|
-
effect(() => {
|
|
3950
|
-
const isRounded = this.$isRounded();
|
|
3951
|
-
if (isRounded) {
|
|
3952
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'rounded');
|
|
3953
|
-
}
|
|
3954
|
-
else {
|
|
3955
|
-
this.renderer.removeClass(this.elementRef.nativeElement, 'rounded');
|
|
3956
|
-
}
|
|
3957
|
-
});
|
|
3958
3873
|
}
|
|
3959
3874
|
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 });
|
|
3960
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: UiInputDirective, isStandalone: true, selector: "app-ui-input", inputs: { $style: { classPropertyName: "$style", publicName: "$style", isSignal: true, isRequired: false, transformFunction: null }, $size: { classPropertyName: "$size", publicName: "$size", isSignal: true, isRequired: false, transformFunction: null }, $placeholder: { classPropertyName: "$placeholder", publicName: "$placeholder", isSignal: true, isRequired: false, transformFunction: null }, $maxLength: { classPropertyName: "$maxLength", publicName: "$maxLength", isSignal: true, isRequired: false, transformFunction: null }, $inputMode: { classPropertyName: "$inputMode", publicName: "$inputMode", isSignal: true, isRequired: false, transformFunction: null }, $label: { classPropertyName: "$label", publicName: "$label", isSignal: true, isRequired: false, transformFunction: null }, $focus: { classPropertyName: "$focus", publicName: "$focus", isSignal: true, isRequired: false, transformFunction: null }, $isRounded: { classPropertyName: "$isRounded", publicName: "$isRounded", isSignal: true, isRequired: false, transformFunction: null }, $hasValidators: { classPropertyName: "$hasValidators", publicName: "$hasValidators", isSignal: true, isRequired: false, transformFunction: null }, $icon: { classPropertyName: "$icon", publicName: "$icon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { $focus: "$focusChange" }, usesInheritance: true, ngImport: i0 });
|
|
3875
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: UiInputDirective, isStandalone: true, selector: "app-ui-input", inputs: { $style: { classPropertyName: "$style", publicName: "$style", isSignal: true, isRequired: false, transformFunction: null }, $size: { classPropertyName: "$size", publicName: "$size", isSignal: true, isRequired: false, transformFunction: null }, $placeholder: { classPropertyName: "$placeholder", publicName: "$placeholder", isSignal: true, isRequired: false, transformFunction: null }, $maxLength: { classPropertyName: "$maxLength", publicName: "$maxLength", isSignal: true, isRequired: false, transformFunction: null }, $inputMode: { classPropertyName: "$inputMode", publicName: "$inputMode", isSignal: true, isRequired: false, transformFunction: null }, $label: { classPropertyName: "$label", publicName: "$label", isSignal: true, isRequired: false, transformFunction: null }, $focus: { classPropertyName: "$focus", publicName: "$focus", isSignal: true, isRequired: false, transformFunction: null }, $isRounded: { classPropertyName: "$isRounded", publicName: "$isRounded", isSignal: true, isRequired: false, transformFunction: null }, $hasValidators: { classPropertyName: "$hasValidators", publicName: "$hasValidators", isSignal: true, isRequired: false, transformFunction: null }, $icon: { classPropertyName: "$icon", publicName: "$icon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { $focus: "$focusChange" }, host: { properties: { "class.primary": "$style() === 'primary'", "class.secondary": "$style() === 'secondary'", "class.tertiary": "$style() === 'tertiary'", "class.quaternary": "$style() === 'quaternary'", "class.micro": "$size() === 'micro'", "class.extra-small": "$size() === 'extra-small'", "class.small": "$size() === 'small'", "class.medium": "$size() === 'medium'", "class.large": "$size() === 'large'", "class.extra-large": "$size() === 'extra-large'", "class.rounded": "$isRounded()" } }, usesInheritance: true, ngImport: i0 });
|
|
3961
3876
|
}
|
|
3962
3877
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiInputDirective, decorators: [{
|
|
3963
3878
|
type: Directive,
|
|
3964
3879
|
args: [{
|
|
3965
3880
|
selector: 'app-ui-input',
|
|
3881
|
+
host: {
|
|
3882
|
+
'[class.primary]': "$style() === 'primary'",
|
|
3883
|
+
'[class.secondary]': "$style() === 'secondary'",
|
|
3884
|
+
'[class.tertiary]': "$style() === 'tertiary'",
|
|
3885
|
+
'[class.quaternary]': "$style() === 'quaternary'",
|
|
3886
|
+
'[class.micro]': "$size() === 'micro'",
|
|
3887
|
+
'[class.extra-small]': "$size() === 'extra-small'",
|
|
3888
|
+
'[class.small]': "$size() === 'small'",
|
|
3889
|
+
'[class.medium]': "$size() === 'medium'",
|
|
3890
|
+
'[class.large]': "$size() === 'large'",
|
|
3891
|
+
'[class.extra-large]': "$size() === 'extra-large'",
|
|
3892
|
+
'[class.rounded]': '$isRounded()',
|
|
3893
|
+
},
|
|
3966
3894
|
}]
|
|
3967
3895
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { $style: [{ type: i0.Input, args: [{ isSignal: true, alias: "$style", required: false }] }], $size: [{ type: i0.Input, args: [{ isSignal: true, alias: "$size", required: false }] }], $placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "$placeholder", required: false }] }], $maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "$maxLength", required: false }] }], $inputMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "$inputMode", required: false }] }], $label: [{ type: i0.Input, args: [{ isSignal: true, alias: "$label", required: false }] }], $focus: [{ type: i0.Input, args: [{ isSignal: true, alias: "$focus", required: false }] }, { type: i0.Output, args: ["$focusChange"] }], $isRounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "$isRounded", required: false }] }], $hasValidators: [{ type: i0.Input, args: [{ isSignal: true, alias: "$hasValidators", required: false }] }], $icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "$icon", required: false }] }] } });
|
|
3968
3896
|
|