@ibragim-dev-org/ui-forge-library 1.4.62 → 1.4.64
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,42 @@ class UiAvatarDirective {
|
|
|
1753
1733
|
this.elementRef = elementRef;
|
|
1754
1734
|
this.renderer = renderer;
|
|
1755
1735
|
effect(() => {
|
|
1736
|
+
const src = this.$src()?.trim();
|
|
1737
|
+
const canShow = this.$canShowAvatar();
|
|
1756
1738
|
const acronym = this.$acronym()
|
|
1757
1739
|
.trim()
|
|
1758
1740
|
.split(/\s+/)
|
|
1759
1741
|
.slice(0, 2)
|
|
1760
|
-
.map((
|
|
1742
|
+
.map((w) => w[0]?.toUpperCase() || '')
|
|
1761
1743
|
.join('');
|
|
1762
|
-
const colorValue = this.$acronym();
|
|
1763
|
-
this.renderer.setStyle(this.elementRef.nativeElement, 'background', stringToColorGradient(colorValue));
|
|
1764
1744
|
this.$text.set(acronym);
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'rounded');
|
|
1769
|
-
}
|
|
1770
|
-
else {
|
|
1771
|
-
this.renderer.removeClass(this.elementRef.nativeElement, 'rounded');
|
|
1745
|
+
if (src && canShow) {
|
|
1746
|
+
this.renderer.removeStyle(this.elementRef.nativeElement, 'background');
|
|
1747
|
+
return;
|
|
1772
1748
|
}
|
|
1773
|
-
|
|
1774
|
-
|
|
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);
|
|
1749
|
+
const colorValue = this.$acronym();
|
|
1750
|
+
this.renderer.setStyle(this.elementRef.nativeElement, 'background', stringToColorGradient(colorValue));
|
|
1780
1751
|
});
|
|
1781
1752
|
}
|
|
1782
1753
|
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 });
|
|
1754
|
+
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
1755
|
}
|
|
1785
1756
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiAvatarDirective, decorators: [{
|
|
1786
1757
|
type: Directive,
|
|
1787
1758
|
args: [{
|
|
1788
1759
|
selector: 'app-ui-avatar',
|
|
1760
|
+
host: {
|
|
1761
|
+
'[class.nano]': "$size() === 'nano'",
|
|
1762
|
+
'[class.micro]': "$size() === 'micro'",
|
|
1763
|
+
'[class.extra-small]': "$size() === 'extra-small'",
|
|
1764
|
+
'[class.small]': "$size() === 'small'",
|
|
1765
|
+
'[class.medium]': "$size() === 'medium'",
|
|
1766
|
+
'[class.large]': "$size() === 'large'",
|
|
1767
|
+
'[class.extra-large]': "$size() === 'extra-large'",
|
|
1768
|
+
'[class.xx-large]': "$size() === 'xx-large'",
|
|
1769
|
+
'[class.xxx-large]': "$size() === 'xxx-large'",
|
|
1770
|
+
'[class.rounded]': '$isRounded()',
|
|
1771
|
+
},
|
|
1789
1772
|
}]
|
|
1790
1773
|
}], 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
1774
|
|
|
@@ -2987,7 +2970,7 @@ class UiPopupService extends UiModal {
|
|
|
2987
2970
|
topEnd: '0',
|
|
2988
2971
|
};
|
|
2989
2972
|
}
|
|
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
|
|
2973
|
+
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
2974
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiPopupService, providedIn: 'root' });
|
|
2992
2975
|
}
|
|
2993
2976
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiPopupService, decorators: [{
|
|
@@ -2995,7 +2978,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
2995
2978
|
args: [{
|
|
2996
2979
|
providedIn: 'root',
|
|
2997
2980
|
}]
|
|
2998
|
-
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.DestroyRef }, { type: i2
|
|
2981
|
+
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.DestroyRef }, { type: i2.Router }, { type: UiPopupBackdropService }] });
|
|
2999
2982
|
|
|
3000
2983
|
class UiPopupBackdropDirective {
|
|
3001
2984
|
elementRef;
|
|
@@ -3393,7 +3376,7 @@ class UiDropdownService extends UiModal {
|
|
|
3393
3376
|
},
|
|
3394
3377
|
]);
|
|
3395
3378
|
}
|
|
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
|
|
3379
|
+
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
3380
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiDropdownService, providedIn: 'root' });
|
|
3398
3381
|
}
|
|
3399
3382
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiDropdownService, decorators: [{
|
|
@@ -3401,7 +3384,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
3401
3384
|
args: [{
|
|
3402
3385
|
providedIn: 'root',
|
|
3403
3386
|
}]
|
|
3404
|
-
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.DestroyRef }, { type: i2
|
|
3387
|
+
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.DestroyRef }, { type: i2.Router }, { type: UiPopupBackdropService }] });
|
|
3405
3388
|
|
|
3406
3389
|
class UiDropdownContainerDirective extends UiPopupContainerDirective {
|
|
3407
3390
|
dropDownService;
|
|
@@ -3630,17 +3613,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
3630
3613
|
}]
|
|
3631
3614
|
}], 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
3615
|
|
|
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
3616
|
class UiButtonDirective {
|
|
3645
3617
|
elementRef;
|
|
3646
3618
|
renderer;
|
|
@@ -3654,75 +3626,39 @@ class UiButtonDirective {
|
|
|
3654
3626
|
constructor(elementRef, renderer) {
|
|
3655
3627
|
this.elementRef = elementRef;
|
|
3656
3628
|
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
3629
|
}
|
|
3714
3630
|
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 });
|
|
3631
|
+
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
3632
|
}
|
|
3717
3633
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiButtonDirective, decorators: [{
|
|
3718
3634
|
type: Directive,
|
|
3719
3635
|
args: [{
|
|
3720
3636
|
selector: 'app-ui-button',
|
|
3637
|
+
host: {
|
|
3638
|
+
'[class.block]': "$sizeBehavior() === 'block'",
|
|
3639
|
+
'[class.outline]': '$isOutlined()',
|
|
3640
|
+
'[class.rounded]': '$isRounded()',
|
|
3641
|
+
'[class.micro]': "$size() === 'micro'",
|
|
3642
|
+
'[class.extra-small]': "$size() === 'extra-small'",
|
|
3643
|
+
'[class.small]': "$size() === 'small'",
|
|
3644
|
+
'[class.medium]': "$size() === 'medium'",
|
|
3645
|
+
'[class.large]': "$size() === 'large'",
|
|
3646
|
+
'[class.extra-large]': "$size() === 'extra-large'",
|
|
3647
|
+
'[class.disabled]': '$isDisabled()',
|
|
3648
|
+
'[class.loading]': '$isLoading()',
|
|
3649
|
+
'[class.primary]': "$color() === 'primary'",
|
|
3650
|
+
'[class.secondary]': "$color() === 'secondary'",
|
|
3651
|
+
'[class.tertiary]': "$color() === 'tertiary'",
|
|
3652
|
+
'[class.quaternary]': "$color() === 'quaternary'",
|
|
3653
|
+
'[class.success]': "$color() === 'success'",
|
|
3654
|
+
'[class.warning]': "$color() === 'warning'",
|
|
3655
|
+
'[class.info]': "$color() === 'info'",
|
|
3656
|
+
'[class.danger]': "$color() === 'danger'",
|
|
3657
|
+
},
|
|
3721
3658
|
}]
|
|
3722
3659
|
}], 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
3660
|
|
|
3724
3661
|
class UiSelectButtonsDirective {
|
|
3725
|
-
renderer;
|
|
3726
3662
|
elementRef;
|
|
3727
3663
|
destroyRef;
|
|
3728
3664
|
platformId;
|
|
@@ -3732,16 +3668,11 @@ class UiSelectButtonsDirective {
|
|
|
3732
3668
|
$overflowMode = input('scroll', ...(ngDevMode ? [{ debugName: "$overflowMode" }] : []));
|
|
3733
3669
|
$buttonChanged = output();
|
|
3734
3670
|
$isScrollable = signal(false, ...(ngDevMode ? [{ debugName: "$isScrollable" }] : []));
|
|
3735
|
-
constructor(
|
|
3736
|
-
this.renderer = renderer;
|
|
3671
|
+
constructor(elementRef, destroyRef, platformId) {
|
|
3737
3672
|
this.elementRef = elementRef;
|
|
3738
3673
|
this.destroyRef = destroyRef;
|
|
3739
3674
|
this.platformId = platformId;
|
|
3740
3675
|
}
|
|
3741
|
-
ngOnInit() {
|
|
3742
|
-
this.renderer.addClass(this.elementRef.nativeElement, this.$alignment());
|
|
3743
|
-
this.renderer.addClass(this.elementRef.nativeElement, this.$overflowMode());
|
|
3744
|
-
}
|
|
3745
3676
|
ngAfterViewInit() {
|
|
3746
3677
|
this.checkScroll();
|
|
3747
3678
|
if (isPlatformBrowser(this.platformId)) {
|
|
@@ -3762,22 +3693,24 @@ class UiSelectButtonsDirective {
|
|
|
3762
3693
|
const el = this.elementRef.nativeElement;
|
|
3763
3694
|
const isScrollable = el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight;
|
|
3764
3695
|
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
3696
|
}
|
|
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 });
|
|
3697
|
+
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 });
|
|
3698
|
+
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
3699
|
}
|
|
3775
3700
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiSelectButtonsDirective, decorators: [{
|
|
3776
3701
|
type: Directive,
|
|
3777
3702
|
args: [{
|
|
3778
3703
|
selector: 'app-ui-select-buttons',
|
|
3704
|
+
host: {
|
|
3705
|
+
'[class.justified]': "$alignment() === 'justified'",
|
|
3706
|
+
'[class.vertical]': "$alignment() === 'vertical'",
|
|
3707
|
+
'[class.left]': "$alignment() === 'left'",
|
|
3708
|
+
'[class.scroll]': "$overflowMode() === 'scroll'",
|
|
3709
|
+
'[class.wrap]': "$overflowMode() === 'wrap'",
|
|
3710
|
+
'[class.scrollable]': '$isScrollable()',
|
|
3711
|
+
},
|
|
3779
3712
|
}]
|
|
3780
|
-
}], ctorParameters: () => [{ type: i0.
|
|
3713
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.DestroyRef }, { type: undefined, decorators: [{
|
|
3781
3714
|
type: Inject,
|
|
3782
3715
|
args: [PLATFORM_ID]
|
|
3783
3716
|
}] }], 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 +3776,21 @@ class UiTabsDirective {
|
|
|
3843
3776
|
});
|
|
3844
3777
|
});
|
|
3845
3778
|
}
|
|
3846
|
-
ngOnInit() {
|
|
3847
|
-
this.renderer.addClass(this.elementRef.nativeElement, this.$alignment());
|
|
3848
|
-
}
|
|
3849
3779
|
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 });
|
|
3780
|
+
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
3781
|
}
|
|
3852
3782
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiTabsDirective, decorators: [{
|
|
3853
3783
|
type: Directive,
|
|
3854
3784
|
args: [{
|
|
3855
3785
|
selector: '[appUiTabs]',
|
|
3856
3786
|
exportAs: 'uiTabs',
|
|
3787
|
+
host: {
|
|
3788
|
+
'[class.justified]': "$alignment() === 'justified'",
|
|
3789
|
+
'[class.vertical]': "$alignment() === 'vertical'",
|
|
3790
|
+
'[class.left]': "$alignment() === 'left'",
|
|
3791
|
+
'[class.right]': "$alignment() === 'right'",
|
|
3792
|
+
'[class.vertical-reverse]': "$alignment() === 'vertical-reverse'",
|
|
3793
|
+
},
|
|
3857
3794
|
}]
|
|
3858
3795
|
}], 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
3796
|
|
|
@@ -3910,8 +3847,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
3910
3847
|
}]
|
|
3911
3848
|
}], 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
3849
|
|
|
3913
|
-
const sizes = ['micro', 'extra-small', 'small', 'medium', 'large', 'extra-large'];
|
|
3914
|
-
const styles = ['primary', 'secondary', 'tertiary', 'quaternary'];
|
|
3915
3850
|
class UiInputDirective extends UiFieldBaseDirective {
|
|
3916
3851
|
elementRef;
|
|
3917
3852
|
renderer;
|
|
@@ -3932,37 +3867,27 @@ class UiInputDirective extends UiFieldBaseDirective {
|
|
|
3932
3867
|
super();
|
|
3933
3868
|
this.elementRef = elementRef;
|
|
3934
3869
|
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
3870
|
}
|
|
3959
3871
|
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 });
|
|
3872
|
+
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
3873
|
}
|
|
3962
3874
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiInputDirective, decorators: [{
|
|
3963
3875
|
type: Directive,
|
|
3964
3876
|
args: [{
|
|
3965
3877
|
selector: 'app-ui-input',
|
|
3878
|
+
host: {
|
|
3879
|
+
'[class.primary]': "$style() === 'primary'",
|
|
3880
|
+
'[class.secondary]': "$style() === 'secondary'",
|
|
3881
|
+
'[class.tertiary]': "$style() === 'tertiary'",
|
|
3882
|
+
'[class.quaternary]': "$style() === 'quaternary'",
|
|
3883
|
+
'[class.micro]': "$size() === 'micro'",
|
|
3884
|
+
'[class.extra-small]': "$size() === 'extra-small'",
|
|
3885
|
+
'[class.small]': "$size() === 'small'",
|
|
3886
|
+
'[class.medium]': "$size() === 'medium'",
|
|
3887
|
+
'[class.large]': "$size() === 'large'",
|
|
3888
|
+
'[class.extra-large]': "$size() === 'extra-large'",
|
|
3889
|
+
'[class.rounded]': '$isRounded()',
|
|
3890
|
+
},
|
|
3966
3891
|
}]
|
|
3967
3892
|
}], 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
3893
|
|