@ibragim-dev-org/ui-forge-library 1.4.61 → 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 from '@angular/router';
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, signal, computed, viewChild, untracked, Injector, afterRenderEffect, contentChildren, contentChild, ViewChildren } from '@angular/core';
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
- const isStuck = entry.boundingClientRect.top < 0;
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, prev);
1227
+ this.updateIcon(i);
1233
1228
  }
1234
1229
  }
1235
1230
  iconApp = '';
1236
- constructor(elementRef, icons, renderer, sanitizer, noScaling, strokeDiff) {
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, previous) {
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.renderer.addClass(this.elementRef.nativeElement, 'icon');
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: i2.DomSanitizer }, { token: 'no-scaling', attribute: true }, { token: 'stroke-diff', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
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, 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"] }]
1290
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: AppIconsLibrary }, { type: i0.Renderer2 }, { type: i2.DomSanitizer }, { type: undefined, decorators: [{
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$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
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,9 +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$1.Router }] });
1721
+ }], ctorParameters: () => [{ type: UiAlertMessagesOverlayService }, { type: i2.Router }] });
1731
1722
 
1732
- const avatarSizes = ['micro', 'extra-small', 'small', 'medium', 'large', 'extra-large'];
1733
1723
  class UiAvatarDirective {
1734
1724
  elementRef;
1735
1725
  renderer;
@@ -1743,39 +1733,42 @@ class UiAvatarDirective {
1743
1733
  this.elementRef = elementRef;
1744
1734
  this.renderer = renderer;
1745
1735
  effect(() => {
1736
+ const src = this.$src()?.trim();
1737
+ const canShow = this.$canShowAvatar();
1746
1738
  const acronym = this.$acronym()
1747
1739
  .trim()
1748
1740
  .split(/\s+/)
1749
1741
  .slice(0, 2)
1750
- .map((word) => word[0]?.toUpperCase() || '')
1742
+ .map((w) => w[0]?.toUpperCase() || '')
1751
1743
  .join('');
1752
- const colorValue = this.$acronym();
1753
- this.renderer.setStyle(this.elementRef.nativeElement, 'background', stringToColorGradient(colorValue));
1754
1744
  this.$text.set(acronym);
1755
- });
1756
- effect(() => {
1757
- if (this.$isRounded()) {
1758
- this.renderer.addClass(this.elementRef.nativeElement, 'rounded');
1759
- }
1760
- else {
1761
- this.renderer.removeClass(this.elementRef.nativeElement, 'rounded');
1745
+ if (src && canShow) {
1746
+ this.renderer.removeStyle(this.elementRef.nativeElement, 'background');
1747
+ return;
1762
1748
  }
1763
- });
1764
- effect(() => {
1765
- avatarSizes.forEach((size) => {
1766
- this.renderer.removeClass(this.elementRef.nativeElement, size);
1767
- });
1768
- const size = this.$size();
1769
- this.renderer.addClass(this.elementRef.nativeElement, size);
1749
+ const colorValue = this.$acronym();
1750
+ this.renderer.setStyle(this.elementRef.nativeElement, 'background', stringToColorGradient(colorValue));
1770
1751
  });
1771
1752
  }
1772
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 });
1773
- 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 });
1774
1755
  }
1775
1756
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiAvatarDirective, decorators: [{
1776
1757
  type: Directive,
1777
1758
  args: [{
1778
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
+ },
1779
1772
  }]
1780
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 }] }] } });
1781
1774
 
@@ -2977,7 +2970,7 @@ class UiPopupService extends UiModal {
2977
2970
  topEnd: '0',
2978
2971
  };
2979
2972
  }
2980
- 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$1.Router }, { token: UiPopupBackdropService }], target: i0.ɵɵFactoryTarget.Injectable });
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 });
2981
2974
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiPopupService, providedIn: 'root' });
2982
2975
  }
2983
2976
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiPopupService, decorators: [{
@@ -2985,7 +2978,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
2985
2978
  args: [{
2986
2979
  providedIn: 'root',
2987
2980
  }]
2988
- }], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.DestroyRef }, { type: i2$1.Router }, { type: UiPopupBackdropService }] });
2981
+ }], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.DestroyRef }, { type: i2.Router }, { type: UiPopupBackdropService }] });
2989
2982
 
2990
2983
  class UiPopupBackdropDirective {
2991
2984
  elementRef;
@@ -3383,7 +3376,7 @@ class UiDropdownService extends UiModal {
3383
3376
  },
3384
3377
  ]);
3385
3378
  }
3386
- 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$1.Router }, { token: UiPopupBackdropService }], target: i0.ɵɵFactoryTarget.Injectable });
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 });
3387
3380
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiDropdownService, providedIn: 'root' });
3388
3381
  }
3389
3382
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiDropdownService, decorators: [{
@@ -3391,7 +3384,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
3391
3384
  args: [{
3392
3385
  providedIn: 'root',
3393
3386
  }]
3394
- }], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.DestroyRef }, { type: i2$1.Router }, { type: UiPopupBackdropService }] });
3387
+ }], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.DestroyRef }, { type: i2.Router }, { type: UiPopupBackdropService }] });
3395
3388
 
3396
3389
  class UiDropdownContainerDirective extends UiPopupContainerDirective {
3397
3390
  dropDownService;
@@ -3620,17 +3613,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
3620
3613
  }]
3621
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"] }] } });
3622
3615
 
3623
- const buttonColors = [
3624
- 'primary',
3625
- 'secondary',
3626
- 'tertiary',
3627
- 'quaternary',
3628
- 'success',
3629
- 'warning',
3630
- 'info',
3631
- 'danger',
3632
- ];
3633
- const buttonSizes = ['micro', 'extra-small', 'small', 'medium', 'large', 'extra-large'];
3634
3616
  class UiButtonDirective {
3635
3617
  elementRef;
3636
3618
  renderer;
@@ -3644,75 +3626,39 @@ class UiButtonDirective {
3644
3626
  constructor(elementRef, renderer) {
3645
3627
  this.elementRef = elementRef;
3646
3628
  this.renderer = renderer;
3647
- effect(() => {
3648
- if (this.$sizeBehavior() === 'block') {
3649
- this.renderer.addClass(this.elementRef.nativeElement, 'block');
3650
- }
3651
- else {
3652
- this.renderer.removeClass(this.elementRef.nativeElement, 'block');
3653
- }
3654
- });
3655
- effect(() => {
3656
- const isOutlined = this.$isOutlined();
3657
- if (isOutlined) {
3658
- this.renderer.addClass(this.elementRef.nativeElement, 'outline');
3659
- }
3660
- else {
3661
- this.renderer.removeClass(this.elementRef.nativeElement, 'outline');
3662
- }
3663
- });
3664
- effect(() => {
3665
- const isRounded = this.$isRounded();
3666
- if (isRounded) {
3667
- this.renderer.addClass(this.elementRef.nativeElement, 'rounded');
3668
- }
3669
- else {
3670
- this.renderer.removeClass(this.elementRef.nativeElement, 'rounded');
3671
- }
3672
- });
3673
- effect(() => {
3674
- buttonSizes.forEach((size) => {
3675
- this.renderer.removeClass(this.elementRef.nativeElement, size);
3676
- });
3677
- const size = this.$size();
3678
- this.renderer.addClass(this.elementRef.nativeElement, size);
3679
- });
3680
- effect(() => {
3681
- if (this.$isDisabled()) {
3682
- this.renderer.addClass(this.elementRef.nativeElement, 'disabled');
3683
- }
3684
- else {
3685
- this.renderer.removeClass(this.elementRef.nativeElement, 'disabled');
3686
- }
3687
- });
3688
- effect(() => {
3689
- if (this.$isLoading()) {
3690
- this.renderer.addClass(this.elementRef.nativeElement, 'loading');
3691
- }
3692
- else {
3693
- this.renderer.removeClass(this.elementRef.nativeElement, 'loading');
3694
- }
3695
- });
3696
- effect(() => {
3697
- const color = this.$color();
3698
- buttonColors.forEach((color) => {
3699
- this.renderer.removeClass(this.elementRef.nativeElement, color);
3700
- });
3701
- this.renderer.addClass(this.elementRef.nativeElement, color);
3702
- });
3703
3629
  }
3704
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 });
3705
- 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 });
3706
3632
  }
3707
3633
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiButtonDirective, decorators: [{
3708
3634
  type: Directive,
3709
3635
  args: [{
3710
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
+ },
3711
3658
  }]
3712
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 }] }] } });
3713
3660
 
3714
3661
  class UiSelectButtonsDirective {
3715
- renderer;
3716
3662
  elementRef;
3717
3663
  destroyRef;
3718
3664
  platformId;
@@ -3722,16 +3668,11 @@ class UiSelectButtonsDirective {
3722
3668
  $overflowMode = input('scroll', ...(ngDevMode ? [{ debugName: "$overflowMode" }] : []));
3723
3669
  $buttonChanged = output();
3724
3670
  $isScrollable = signal(false, ...(ngDevMode ? [{ debugName: "$isScrollable" }] : []));
3725
- constructor(renderer, elementRef, destroyRef, platformId) {
3726
- this.renderer = renderer;
3671
+ constructor(elementRef, destroyRef, platformId) {
3727
3672
  this.elementRef = elementRef;
3728
3673
  this.destroyRef = destroyRef;
3729
3674
  this.platformId = platformId;
3730
3675
  }
3731
- ngOnInit() {
3732
- this.renderer.addClass(this.elementRef.nativeElement, this.$alignment());
3733
- this.renderer.addClass(this.elementRef.nativeElement, this.$overflowMode());
3734
- }
3735
3676
  ngAfterViewInit() {
3736
3677
  this.checkScroll();
3737
3678
  if (isPlatformBrowser(this.platformId)) {
@@ -3752,22 +3693,24 @@ class UiSelectButtonsDirective {
3752
3693
  const el = this.elementRef.nativeElement;
3753
3694
  const isScrollable = el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight;
3754
3695
  this.$isScrollable.set(isScrollable);
3755
- if (isScrollable) {
3756
- this.renderer.addClass(this.elementRef.nativeElement, 'scrollable');
3757
- }
3758
- else {
3759
- this.renderer.removeClass(this.elementRef.nativeElement, 'scrollable');
3760
- }
3761
3696
  }
3762
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiSelectButtonsDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.DestroyRef }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive });
3763
- 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 });
3764
3699
  }
3765
3700
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiSelectButtonsDirective, decorators: [{
3766
3701
  type: Directive,
3767
3702
  args: [{
3768
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
+ },
3769
3712
  }]
3770
- }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.DestroyRef }, { type: undefined, decorators: [{
3713
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.DestroyRef }, { type: undefined, decorators: [{
3771
3714
  type: Inject,
3772
3715
  args: [PLATFORM_ID]
3773
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"] }] } });
@@ -3833,17 +3776,21 @@ class UiTabsDirective {
3833
3776
  });
3834
3777
  });
3835
3778
  }
3836
- ngOnInit() {
3837
- this.renderer.addClass(this.elementRef.nativeElement, this.$alignment());
3838
- }
3839
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 });
3840
- 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 });
3841
3781
  }
3842
3782
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiTabsDirective, decorators: [{
3843
3783
  type: Directive,
3844
3784
  args: [{
3845
3785
  selector: '[appUiTabs]',
3846
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
+ },
3847
3794
  }]
3848
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 }] }] } });
3849
3796
 
@@ -3900,8 +3847,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
3900
3847
  }]
3901
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"] }] } });
3902
3849
 
3903
- const sizes = ['micro', 'extra-small', 'small', 'medium', 'large', 'extra-large'];
3904
- const styles = ['primary', 'secondary', 'tertiary', 'quaternary'];
3905
3850
  class UiInputDirective extends UiFieldBaseDirective {
3906
3851
  elementRef;
3907
3852
  renderer;
@@ -3922,37 +3867,27 @@ class UiInputDirective extends UiFieldBaseDirective {
3922
3867
  super();
3923
3868
  this.elementRef = elementRef;
3924
3869
  this.renderer = renderer;
3925
- effect(() => {
3926
- const style = this.$style();
3927
- styles.forEach((style) => {
3928
- this.renderer.removeClass(this.elementRef.nativeElement, style);
3929
- });
3930
- this.renderer.addClass(this.elementRef.nativeElement, style);
3931
- });
3932
- effect(() => {
3933
- sizes.forEach((size) => {
3934
- this.renderer.removeClass(this.elementRef.nativeElement, size);
3935
- });
3936
- const size = this.$size();
3937
- this.renderer.addClass(this.elementRef.nativeElement, size);
3938
- });
3939
- effect(() => {
3940
- const isRounded = this.$isRounded();
3941
- if (isRounded) {
3942
- this.renderer.addClass(this.elementRef.nativeElement, 'rounded');
3943
- }
3944
- else {
3945
- this.renderer.removeClass(this.elementRef.nativeElement, 'rounded');
3946
- }
3947
- });
3948
3870
  }
3949
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 });
3950
- 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 });
3951
3873
  }
3952
3874
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: UiInputDirective, decorators: [{
3953
3875
  type: Directive,
3954
3876
  args: [{
3955
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
+ },
3956
3891
  }]
3957
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 }] }] } });
3958
3893