@tectra-ng/ui 0.1.5 → 0.1.6

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.
@@ -24,7 +24,7 @@ A date field with a calendar panel — one date, several dates or a range, with
24
24
  | showClear | Shows a clear button in the field when it has a value |
25
25
  | showButtonBar | Today and Clear buttons under the calendar |
26
26
  | showOtherMonths | Shows days of the previous / next month |
27
- | selectOtherMonths | Lets those days be picked; on by default (off in PrimeNG) |
27
+ | selectOtherMonths | Lets those days be picked; on by default |
28
28
  | showWeek | Week numbers (ISO) |
29
29
  | startWeekFromFirstDayOfYear | Counts week 1 from January 1 |
30
30
  | showTime | Hours and minutes under the calendar |
@@ -174,11 +174,10 @@ var TxButton = class TxButton {
174
174
  host.addEventListener("click", blockClick, { capture: true });
175
175
  destroyRef.onDestroy(() => host.removeEventListener("click", blockClick, { capture: true }));
176
176
  afterNextRender(() => {
177
- const content = this.contentElement().nativeElement;
178
- const update = () => this.hasProjectedLabel.set(!!content.textContent?.trim() || content.children.length > 0);
177
+ const update = () => this.hasProjectedLabel.set(this.projectsLabel());
179
178
  update();
180
179
  const observer = new MutationObserver(update);
181
- observer.observe(content, {
180
+ observer.observe(this.contentElement().nativeElement, {
182
181
  childList: true,
183
182
  characterData: true,
184
183
  subtree: true
@@ -186,6 +185,13 @@ var TxButton = class TxButton {
186
185
  destroyRef.onDestroy(() => observer.disconnect());
187
186
  });
188
187
  }
188
+ ngAfterViewInit() {
189
+ this.hasProjectedLabel.set(this.projectsLabel());
190
+ }
191
+ projectsLabel() {
192
+ const content = this.contentElement().nativeElement;
193
+ return !!content.textContent?.trim() || content.children.length > 0;
194
+ }
189
195
  static ɵfac = i0.ɵɵngDeclareFactory({
190
196
  minVersion: "12.0.0",
191
197
  version: "22.2.3",
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-button.mjs","names":[],"sources":["../../../../packages/ui/button/src/button-templates.directive.ts","../../../../packages/ui/button/src/button.component.ts","../../../../packages/ui/button/src/button.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[txButtonIcon]' })\nexport class TxButtonIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txButtonLoadingIcon]' })\nexport class TxButtonLoadingIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { TxRipple } from '@tectra-ng/core/ripple';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraButtonTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxBadge, TxBadgeSeverity } from '@tectra-ng/ui/badge';\nimport { TxButtonIconTemplate, TxButtonLoadingIconTemplate } from './button-templates.directive';\nimport { TxButtonIconPosition, TxButtonPart, TxButtonSeverity, TxButtonSize, TxButtonVariant } from './button.types';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector -- an attribute on native button / a keeps native behaviour\n selector: 'button[txButton], a[txButton]',\n imports: [NgTemplateOutlet, TxIcon, TxBadge],\n templateUrl: './button.component.html',\n styleUrl: './button.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [{ directive: TxRipple, inputs: ['ripple', 'rippleCentered', 'rippleColor'] }],\n host: {\n class: 'tx-button',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-icon-pos]': 'iconPos()',\n '[class.tx-button--rounded]': 'rounded()',\n '[class.tx-button--raised]': 'raised()',\n '[class.tx-button--plain]': 'plain()',\n '[class.tx-button--fluid]': 'isFluid()',\n '[class.tx-button--icon-only]': 'isIconOnly()',\n '[class.tx-button--no-label]': '!hasLabelText() && !hasProjectedLabel()',\n '[class.tx-button--loading]': 'loading()',\n '[class.tx-button--disabled]': 'isDisabled()',\n '[attr.disabled]': 'isNativeButton && isDisabled() ? \"\" : null',\n '[attr.aria-disabled]': '!isNativeButton && isDisabled() ? true : null',\n '[attr.tabindex]': '!isNativeButton && isDisabled() ? -1 : (tabindex() ?? null)',\n '[attr.aria-busy]': 'loading() || null',\n },\n})\nexport class TxButton {\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly label = input<string | number | undefined>(undefined);\n readonly severity = input<TxButtonSeverity>('primary');\n readonly size = input<TxButtonSize>('medium');\n readonly variant = input<TxButtonVariant | undefined>(undefined);\n readonly outlined = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly text = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly link = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly rounded = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly raised = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly plain = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly disabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly iconPos = input<TxButtonIconPosition>('left');\n readonly iconOnly = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loadingIcon = input<TxIconName | (string & {})>('spinner');\n readonly badge = input<string | number | undefined>(undefined);\n readonly badgeSeverity = input<TxBadgeSeverity>('secondary');\n readonly dt = input<TectraDeepPartial<TectraButtonTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxButtonPart, TxButton> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly iconTemplate = contentChild(TxButtonIconTemplate);\n readonly loadingIconTemplate = contentChild(TxButtonLoadingIconTemplate);\n readonly contentElement = viewChild.required<ElementRef<HTMLElement>>('content');\n\n readonly isNativeButton = this.elementRef.nativeElement.tagName === 'BUTTON';\n\n readonly hasProjectedLabel = signal(false);\n isUnstyled = injectUnstyled(this.unstyled);\n isFluid = injectFluid(this.fluid);\n passThrough = injectPassThrough('button', this, this.pt, this.ptOptions);\n\n readonly resolvedVariant = computed<TxButtonVariant | null>(() => {\n const variant = this.variant();\n if (variant) {\n return variant;\n }\n if (this.link()) {\n return 'link';\n }\n if (this.text()) {\n return 'text';\n }\n return this.outlined() ? 'outlined' : null;\n });\n readonly isDisabled = computed(() => this.disabled() || this.loading());\n readonly hasIcon = computed(() => this.loading() || !!this.icon() || !!this.iconTemplate());\n readonly hasLabelText = computed(() => this.label() !== undefined && this.label() !== '');\n readonly isIconOnly = computed(() => this.iconOnly() ?? (this.hasIcon() && !this.hasLabelText() && !this.hasProjectedLabel()));\n readonly iconName = computed(() => {\n const icon = this.icon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly loadingIconName = computed(() => {\n const icon = this.loadingIcon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hasBadge = computed(() => this.badge() !== undefined && this.badge() !== '');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-button'), ...this.passThrough().root?.style }));\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n const host = this.elementRef.nativeElement;\n const blockClick = (event: Event) => {\n if (this.isDisabled()) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n host.addEventListener('click', blockClick, { capture: true });\n destroyRef.onDestroy(() => host.removeEventListener('click', blockClick, { capture: true }));\n afterNextRender(() => {\n const content = this.contentElement().nativeElement;\n const update = () => this.hasProjectedLabel.set(!!content.textContent?.trim() || content.children.length > 0);\n update();\n const observer = new MutationObserver(update);\n observer.observe(content, { childList: true, characterData: true, subtree: true });\n destroyRef.onDestroy(() => observer.disconnect());\n });\n }\n}\n","@if (hasIcon()) {\n @if (loading()) {\n <span\n class=\"tx-button__icon tx-button__loading-icon\"\n aria-hidden=\"true\"\n [class]=\"passThrough().loadingIcon?.class\"\n [style]=\"passThrough().loadingIcon?.style\"\n [class.tx-button__icon--spin]=\"!loadingIconTemplate()\"\n >\n @if (loadingIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (loadingIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"loadingIcon()\"></span>\n }\n </span>\n } @else {\n <span class=\"tx-button__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n }\n}\n<span class=\"tx-button__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">\n @if (hasLabelText()) {\n {{ label() }}\n }\n <span #content class=\"tx-button__content\"><ng-content /></span>\n</span>\n@if (hasBadge()) {\n <tx-badge\n class=\"tx-button__badge\"\n [value]=\"badge()\"\n [severity]=\"badgeSeverity()\"\n [unstyled]=\"isUnstyled()\"\n [pt]=\"{ root: passThrough().badge ?? {} }\"\n />\n}\n"],"mappings":";;;;;;;;;;;AAGA,IAAa,uBAAb,MAAa,qBAAoB;CACtB,cAAc,OAAO,WAAW;CAD9B,OAAA,OAAA,G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;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,oBAAoB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,qBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACb,2BAA2B,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACD,WAAS,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-button.mjs","names":[],"sources":["../../../../packages/ui/button/src/button-templates.directive.ts","../../../../packages/ui/button/src/button.component.ts","../../../../packages/ui/button/src/button.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[txButtonIcon]' })\nexport class TxButtonIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txButtonLoadingIcon]' })\nexport class TxButtonLoadingIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { TxRipple } from '@tectra-ng/core/ripple';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraButtonTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxBadge, TxBadgeSeverity } from '@tectra-ng/ui/badge';\nimport { TxButtonIconTemplate, TxButtonLoadingIconTemplate } from './button-templates.directive';\nimport { TxButtonIconPosition, TxButtonPart, TxButtonSeverity, TxButtonSize, TxButtonVariant } from './button.types';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector -- an attribute on native button / a keeps native behaviour\n selector: 'button[txButton], a[txButton]',\n imports: [NgTemplateOutlet, TxIcon, TxBadge],\n templateUrl: './button.component.html',\n styleUrl: './button.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [{ directive: TxRipple, inputs: ['ripple', 'rippleCentered', 'rippleColor'] }],\n host: {\n class: 'tx-button',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-icon-pos]': 'iconPos()',\n '[class.tx-button--rounded]': 'rounded()',\n '[class.tx-button--raised]': 'raised()',\n '[class.tx-button--plain]': 'plain()',\n '[class.tx-button--fluid]': 'isFluid()',\n '[class.tx-button--icon-only]': 'isIconOnly()',\n '[class.tx-button--no-label]': '!hasLabelText() && !hasProjectedLabel()',\n '[class.tx-button--loading]': 'loading()',\n '[class.tx-button--disabled]': 'isDisabled()',\n '[attr.disabled]': 'isNativeButton && isDisabled() ? \"\" : null',\n '[attr.aria-disabled]': '!isNativeButton && isDisabled() ? true : null',\n '[attr.tabindex]': '!isNativeButton && isDisabled() ? -1 : (tabindex() ?? null)',\n '[attr.aria-busy]': 'loading() || null',\n },\n})\nexport class TxButton implements AfterViewInit {\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly label = input<string | number | undefined>(undefined);\n readonly severity = input<TxButtonSeverity>('primary');\n readonly size = input<TxButtonSize>('medium');\n readonly variant = input<TxButtonVariant | undefined>(undefined);\n readonly outlined = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly text = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly link = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly rounded = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly raised = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly plain = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly disabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly iconPos = input<TxButtonIconPosition>('left');\n readonly iconOnly = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loadingIcon = input<TxIconName | (string & {})>('spinner');\n readonly badge = input<string | number | undefined>(undefined);\n readonly badgeSeverity = input<TxBadgeSeverity>('secondary');\n readonly dt = input<TectraDeepPartial<TectraButtonTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxButtonPart, TxButton> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly iconTemplate = contentChild(TxButtonIconTemplate);\n readonly loadingIconTemplate = contentChild(TxButtonLoadingIconTemplate);\n readonly contentElement = viewChild.required<ElementRef<HTMLElement>>('content');\n\n readonly isNativeButton = this.elementRef.nativeElement.tagName === 'BUTTON';\n\n readonly hasProjectedLabel = signal(false);\n isUnstyled = injectUnstyled(this.unstyled);\n isFluid = injectFluid(this.fluid);\n passThrough = injectPassThrough('button', this, this.pt, this.ptOptions);\n\n readonly resolvedVariant = computed<TxButtonVariant | null>(() => {\n const variant = this.variant();\n if (variant) {\n return variant;\n }\n if (this.link()) {\n return 'link';\n }\n if (this.text()) {\n return 'text';\n }\n return this.outlined() ? 'outlined' : null;\n });\n readonly isDisabled = computed(() => this.disabled() || this.loading());\n readonly hasIcon = computed(() => this.loading() || !!this.icon() || !!this.iconTemplate());\n readonly hasLabelText = computed(() => this.label() !== undefined && this.label() !== '');\n readonly isIconOnly = computed(() => this.iconOnly() ?? (this.hasIcon() && !this.hasLabelText() && !this.hasProjectedLabel()));\n readonly iconName = computed(() => {\n const icon = this.icon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly loadingIconName = computed(() => {\n const icon = this.loadingIcon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hasBadge = computed(() => this.badge() !== undefined && this.badge() !== '');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-button'), ...this.passThrough().root?.style }));\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n const host = this.elementRef.nativeElement;\n const blockClick = (event: Event) => {\n if (this.isDisabled()) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n host.addEventListener('click', blockClick, { capture: true });\n destroyRef.onDestroy(() => host.removeEventListener('click', blockClick, { capture: true }));\n afterNextRender(() => {\n const update = () => this.hasProjectedLabel.set(this.projectsLabel());\n update();\n const observer = new MutationObserver(update);\n observer.observe(this.contentElement().nativeElement, { childList: true, characterData: true, subtree: true });\n destroyRef.onDestroy(() => observer.disconnect());\n });\n }\n\n ngAfterViewInit(): void {\n this.hasProjectedLabel.set(this.projectsLabel());\n }\n\n private projectsLabel(): boolean {\n const content = this.contentElement().nativeElement;\n return !!content.textContent?.trim() || content.children.length > 0;\n }\n}\n","@if (hasIcon()) {\n @if (loading()) {\n <span\n class=\"tx-button__icon tx-button__loading-icon\"\n aria-hidden=\"true\"\n [class]=\"passThrough().loadingIcon?.class\"\n [style]=\"passThrough().loadingIcon?.style\"\n [class.tx-button__icon--spin]=\"!loadingIconTemplate()\"\n >\n @if (loadingIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (loadingIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"loadingIcon()\"></span>\n }\n </span>\n } @else {\n <span class=\"tx-button__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n }\n}\n<span class=\"tx-button__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">\n @if (hasLabelText()) {\n {{ label() }}\n }\n <span #content class=\"tx-button__content\"><ng-content /></span>\n</span>\n@if (hasBadge()) {\n <tx-badge\n class=\"tx-button__badge\"\n [value]=\"badge()\"\n [severity]=\"badgeSeverity()\"\n [unstyled]=\"isUnstyled()\"\n [pt]=\"{ root: passThrough().badge ?? {} }\"\n />\n}\n"],"mappings":";;;;;;;;;;;AAGA,IAAa,uBAAb,MAAa,qBAAoB;CACtB,cAAc,OAAO,WAAW;CAD9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAoB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAApB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAoB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAApB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAoB,YAAA,CAAA;EADhC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,4BAA2B,CAAE;;;AAMpD,IAAa,8BAAb,MAAa,4BAA2B;CAC7B,cAAc,OAAO,WAAW;CAD9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;E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,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACD,WAAS,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -21,8 +21,10 @@ var TxIconField = class TxIconField {
21
21
  start = viewChild.required("start", ...ngDevMode ? [{ debugName: "start" }] : /* istanbul ignore next */ []);
22
22
  end = viewChild.required("end", ...ngDevMode ? [{ debugName: "end" }] : /* istanbul ignore next */ []);
23
23
  isFluid = injectFluid(this.fluid);
24
- startInset = signal(0, ...ngDevMode ? [{ debugName: "startInset" }] : /* istanbul ignore next */ []);
25
- endInset = signal(0, ...ngDevMode ? [{ debugName: "endInset" }] : /* istanbul ignore next */ []);
24
+ startInset = signal(null, ...ngDevMode ? [{ debugName: "startInset" }] : /* istanbul ignore next */ []);
25
+ endInset = signal(null, ...ngDevMode ? [{ debugName: "endInset" }] : /* istanbul ignore next */ []);
26
+ startContent = signal("none", ...ngDevMode ? [{ debugName: "startContent" }] : /* istanbul ignore next */ []);
27
+ endContent = signal("none", ...ngDevMode ? [{ debugName: "endContent" }] : /* istanbul ignore next */ []);
26
28
  hasValue = signal(false, ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
27
29
  isEditable = signal(true, ...ngDevMode ? [{ debugName: "isEditable" }] : /* istanbul ignore next */ []);
28
30
  constructor() {
@@ -31,6 +33,10 @@ var TxIconField = class TxIconField {
31
33
  this.watchValue();
32
34
  });
33
35
  }
36
+ ngAfterViewInit() {
37
+ this.startContent.set(this.slotContent(this.start().nativeElement));
38
+ this.endContent.set(this.slotContent(this.end().nativeElement));
39
+ }
34
40
  value() {
35
41
  return this.input()?.nativeElement?.value ?? "";
36
42
  }
@@ -75,6 +81,10 @@ var TxIconField = class TxIconField {
75
81
  });
76
82
  update();
77
83
  }
84
+ slotContent(slot) {
85
+ if (slot.querySelector(".tx-input-action")) return "action";
86
+ return slot.querySelector(".tx-input-icon") ? "icon" : "none";
87
+ }
78
88
  inset(container) {
79
89
  const width = container.getBoundingClientRect().width;
80
90
  return width ? Math.round(width + 6) : 0;
@@ -103,8 +113,11 @@ var TxIconField = class TxIconField {
103
113
  host: {
104
114
  properties: {
105
115
  "class.tx-icon-field--fluid": "isFluid()",
106
- "style.--tx-field-inset-start": "startInset() + \"px\"",
107
- "style.--tx-field-inset-end": "endInset() + \"px\""
116
+ "class.tx-icon-field--start-icon": "startContent() === \"icon\"",
117
+ "class.tx-icon-field--end-icon": "endContent() === \"icon\"",
118
+ "class.tx-icon-field--end-action": "endContent() === \"action\"",
119
+ "style.--tx-field-inset-start": "startInset() === null ? null : startInset() + \"px\"",
120
+ "style.--tx-field-inset-end": "endInset() === null ? null : endInset() + \"px\""
108
121
  },
109
122
  classAttribute: "tx-icon-field"
110
123
  },
@@ -147,7 +160,7 @@ var TxIconField = class TxIconField {
147
160
  }],
148
161
  ngImport: i0,
149
162
  template: "<span #start class=\"tx-icon-field__slot tx-icon-field__slot--start\"><ng-content select=\"tx-input-icon:not([position=end])\" /></span>\n<ng-content />\n<span #end class=\"tx-icon-field__slot tx-icon-field__slot--end\"><ng-content select=\"tx-input-icon[position=end], tx-input-clear, tx-input-copy\" /></span>\n",
150
- styles: [":host{position:relative;display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-icon-field--fluid){display:flex;width:100%}.tx-icon-field__slot{position:absolute;top:50%;z-index:1;display:flex;align-items:center;gap:4px;transform:translateY(-50%);pointer-events:none}.tx-icon-field__slot:empty{display:none}.tx-icon-field__slot--start{left:var(--tx-form-field-padding-x)}.tx-icon-field__slot--end{right:calc(var(--tx-form-field-padding-x) - 4px)}\n"],
163
+ styles: [":host{--_icon-room: calc(var(--tx-form-field-font-size) + 6px);--_action-room: 30px ;position:relative;display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-icon-field--start-icon){--tx-field-inset-start: var(--_icon-room)}:host(.tx-icon-field--end-icon){--tx-field-inset-end: var(--_icon-room)}:host(.tx-icon-field--end-action){--tx-field-inset-end: var(--_action-room)}:host(.tx-icon-field--fluid){display:flex;width:100%}.tx-icon-field__slot{position:absolute;top:50%;z-index:1;display:flex;align-items:center;gap:4px;transform:translateY(-50%);pointer-events:none}.tx-icon-field__slot:empty{display:none}.tx-icon-field__slot--start{left:var(--tx-form-field-padding-x)}.tx-icon-field__slot--end{right:calc(var(--tx-form-field-padding-x) - 4px)}\n"],
151
164
  changeDetection: i0.ChangeDetectionStrategy.OnPush
152
165
  });
153
166
  };
@@ -164,11 +177,14 @@ i0.ɵɵngDeclareClassMetadata({
164
177
  host: {
165
178
  class: "tx-icon-field",
166
179
  "[class.tx-icon-field--fluid]": "isFluid()",
167
- "[style.--tx-field-inset-start]": "startInset() + \"px\"",
168
- "[style.--tx-field-inset-end]": "endInset() + \"px\""
180
+ "[class.tx-icon-field--start-icon]": "startContent() === \"icon\"",
181
+ "[class.tx-icon-field--end-icon]": "endContent() === \"icon\"",
182
+ "[class.tx-icon-field--end-action]": "endContent() === \"action\"",
183
+ "[style.--tx-field-inset-start]": "startInset() === null ? null : startInset() + \"px\"",
184
+ "[style.--tx-field-inset-end]": "endInset() === null ? null : endInset() + \"px\""
169
185
  },
170
186
  template: "<span #start class=\"tx-icon-field__slot tx-icon-field__slot--start\"><ng-content select=\"tx-input-icon:not([position=end])\" /></span>\n<ng-content />\n<span #end class=\"tx-icon-field__slot tx-icon-field__slot--end\"><ng-content select=\"tx-input-icon[position=end], tx-input-clear, tx-input-copy\" /></span>\n",
171
- styles: [":host{position:relative;display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-icon-field--fluid){display:flex;width:100%}.tx-icon-field__slot{position:absolute;top:50%;z-index:1;display:flex;align-items:center;gap:4px;transform:translateY(-50%);pointer-events:none}.tx-icon-field__slot:empty{display:none}.tx-icon-field__slot--start{left:var(--tx-form-field-padding-x)}.tx-icon-field__slot--end{right:calc(var(--tx-form-field-padding-x) - 4px)}\n"]
187
+ styles: [":host{--_icon-room: calc(var(--tx-form-field-font-size) + 6px);--_action-room: 30px ;position:relative;display:inline-flex;align-items:stretch;max-width:100%}:host(.tx-icon-field--start-icon){--tx-field-inset-start: var(--_icon-room)}:host(.tx-icon-field--end-icon){--tx-field-inset-end: var(--_icon-room)}:host(.tx-icon-field--end-action){--tx-field-inset-end: var(--_action-room)}:host(.tx-icon-field--fluid){display:flex;width:100%}.tx-icon-field__slot{position:absolute;top:50%;z-index:1;display:flex;align-items:center;gap:4px;transform:translateY(-50%);pointer-events:none}.tx-icon-field__slot:empty{display:none}.tx-icon-field__slot--start{left:var(--tx-form-field-padding-x)}.tx-icon-field__slot--end{right:calc(var(--tx-form-field-padding-x) - 4px)}\n"]
172
188
  }]
173
189
  }],
174
190
  ctorParameters: () => [],
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-icon-field.mjs","names":[],"sources":["../../../../packages/ui/icon-field/src/icon-field.component.ts","../../../../packages/ui/icon-field/src/icon-field.component.html","../../../../packages/ui/icon-field/src/input-icon.component.ts","../../../../packages/ui/icon-field/src/input-clear.component.ts","../../../../packages/ui/icon-field/src/input-copy.component.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterNextRender,\n contentChild,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxInput } from '@tectra-ng/ui/input';\n\n@Component({\n selector: 'tx-icon-field',\n templateUrl: './icon-field.component.html',\n styleUrl: './icon-field.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-icon-field',\n '[class.tx-icon-field--fluid]': 'isFluid()',\n '[style.--tx-field-inset-start]': 'startInset() + \"px\"',\n '[style.--tx-field-inset-end]': 'endInset() + \"px\"',\n },\n})\nexport class TxIconField {\n private destroyRef = inject(DestroyRef);\n\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly input = contentChild(TxInput, { read: ElementRef });\n readonly inputDirective = contentChild(TxInput);\n readonly control = contentChild(NgControl);\n readonly start = viewChild.required<ElementRef<HTMLElement>>('start');\n readonly end = viewChild.required<ElementRef<HTMLElement>>('end');\n\n readonly isFluid = injectFluid(this.fluid);\n readonly startInset = signal(0);\n readonly endInset = signal(0);\n readonly hasValue = signal(false);\n readonly isEditable = signal(true);\n\n constructor() {\n afterNextRender(() => {\n this.watchInsets();\n this.watchValue();\n });\n }\n\n value(): string {\n return (this.input()?.nativeElement as HTMLInputElement | undefined)?.value ?? '';\n }\n\n clear(): void {\n const element = this.input()?.nativeElement as HTMLInputElement | undefined;\n if (!element) {\n return;\n }\n const control = this.control()?.control;\n if (control) {\n control.setValue('');\n control.markAsDirty();\n } else {\n element.value = '';\n element.dispatchEvent(new Event('input', { bubbles: true }));\n }\n this.hasValue.set(false);\n element.focus();\n }\n\n private watchInsets(): void {\n if (typeof ResizeObserver === 'undefined') {\n return;\n }\n const measure = () => {\n this.startInset.set(this.inset(this.start().nativeElement));\n this.endInset.set(this.inset(this.end().nativeElement));\n };\n const observer = new ResizeObserver(measure);\n observer.observe(this.start().nativeElement);\n observer.observe(this.end().nativeElement);\n measure();\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n\n private watchValue(): void {\n const element = this.input()?.nativeElement as HTMLInputElement | undefined;\n if (!element) {\n return;\n }\n const update = () => {\n this.hasValue.set(!!element.value);\n this.isEditable.set(!element.disabled && !element.readOnly);\n };\n element.addEventListener('input', update);\n const subscription = this.control()?.control?.events.subscribe(() => queueMicrotask(update));\n this.destroyRef.onDestroy(() => {\n element.removeEventListener('input', update);\n subscription?.unsubscribe();\n });\n update();\n }\n\n private inset(container: HTMLElement): number {\n const width = container.getBoundingClientRect().width;\n return width ? Math.round(width + 6) : 0;\n }\n}\n","<span #start class=\"tx-icon-field__slot tx-icon-field__slot--start\"><ng-content select=\"tx-input-icon:not([position=end])\" /></span>\n<ng-content />\n<span #end class=\"tx-icon-field__slot tx-icon-field__slot--end\"><ng-content select=\"tx-input-icon[position=end], tx-input-clear, tx-input-copy\" /></span>\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TxInputIconPosition } from './icon-field.types';\n\n@Component({\n selector: 'tx-input-icon',\n imports: [TxIcon],\n template: `\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else if (icon()) {\n <span [class]=\"icon()\"></span>\n }\n <ng-content />\n `,\n styleUrl: './input-icon.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-icon', 'aria-hidden': 'true' },\n})\nexport class TxInputIcon {\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly position = input<TxInputIconPosition>('start');\n\n readonly iconName = computed(() => {\n const icon = this.icon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n}\n","import { ChangeDetectionStrategy, Component, inject, output } from '@angular/core';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxIconField } from './icon-field.component';\n\n@Component({\n selector: 'tx-input-clear',\n imports: [TxIcon],\n template: `\n @if (field.hasValue() && field.isEditable()) {\n <button type=\"button\" class=\"tx-input-action\" [attr.aria-label]=\"translations().clear\" [title]=\"translations().clear\" (click)=\"clear()\">\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './input-action.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-clear' },\n})\nexport class TxInputClear {\n readonly field = inject(TxIconField);\n readonly translations = injectTranslations();\n\n readonly cleared = output<void>();\n\n clear(): void {\n this.field.clear();\n this.cleared.emit();\n }\n}\n","import { ChangeDetectionStrategy, Component, DestroyRef, inject, output, signal } from '@angular/core';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxIconField } from './icon-field.component';\n\n@Component({\n selector: 'tx-input-copy',\n imports: [TxIcon],\n template: `\n <button\n type=\"button\"\n class=\"tx-input-action\"\n [class.tx-input-action--done]=\"isCopied()\"\n [attr.aria-label]=\"isCopied() ? translations().copied : translations().copy\"\n [title]=\"isCopied() ? translations().copied : translations().copy\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'copy'\" />\n </button>\n `,\n styleUrl: './input-action.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-copy' },\n})\nexport class TxInputCopy {\n private field = inject(TxIconField);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly translations = injectTranslations();\n readonly isCopied = signal(false);\n\n readonly copied = output<string>();\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const value = this.field.value();\n navigator.clipboard?.writeText(value);\n this.isCopied.set(true);\n this.copied.emit(value);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), 1500);\n }\n}\n"],"mappings":";;;;;;;;AA6BA,IAAa,cAAb,MAAa,YAAW;CACd,aAAa,OAAO,UAAU;CAE7B,QAAQ,MAAoC,QAAS;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CAEnF,QAAQ,aAAa,SAAO;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,MAAM;CAAU,CAAA;CAChD,iBAAiB,aAAa,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,UAAU,aAAa,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACjC,QAAQ,UAAU,SAAkC,SAAQ,GAAA,YAAA,CAAA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MAAM;GAAC,UACP;;;;;;;;;;;;GAWT,iBAEgB,wBAAwB;GAAM,MACzC,EAAE,OAAO,gBAAe;GAAE,QAAA,CAAA,2mBAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-icon-field.mjs","names":[],"sources":["../../../../packages/ui/icon-field/src/icon-field.component.ts","../../../../packages/ui/icon-field/src/icon-field.component.html","../../../../packages/ui/icon-field/src/input-icon.component.ts","../../../../packages/ui/icon-field/src/input-clear.component.ts","../../../../packages/ui/icon-field/src/input-copy.component.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterNextRender,\n contentChild,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxInput } from '@tectra-ng/ui/input';\nimport { TxIconFieldSlotContent } from './icon-field.types';\n\n@Component({\n selector: 'tx-icon-field',\n templateUrl: './icon-field.component.html',\n styleUrl: './icon-field.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-icon-field',\n '[class.tx-icon-field--fluid]': 'isFluid()',\n '[class.tx-icon-field--start-icon]': 'startContent() === \"icon\"',\n '[class.tx-icon-field--end-icon]': 'endContent() === \"icon\"',\n '[class.tx-icon-field--end-action]': 'endContent() === \"action\"',\n '[style.--tx-field-inset-start]': 'startInset() === null ? null : startInset() + \"px\"',\n '[style.--tx-field-inset-end]': 'endInset() === null ? null : endInset() + \"px\"',\n },\n})\nexport class TxIconField implements AfterViewInit {\n private destroyRef = inject(DestroyRef);\n\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly input = contentChild(TxInput, { read: ElementRef });\n readonly inputDirective = contentChild(TxInput);\n readonly control = contentChild(NgControl);\n readonly start = viewChild.required<ElementRef<HTMLElement>>('start');\n readonly end = viewChild.required<ElementRef<HTMLElement>>('end');\n\n readonly isFluid = injectFluid(this.fluid);\n readonly startInset = signal<number | null>(null);\n readonly endInset = signal<number | null>(null);\n readonly startContent = signal<TxIconFieldSlotContent>('none');\n readonly endContent = signal<TxIconFieldSlotContent>('none');\n readonly hasValue = signal(false);\n readonly isEditable = signal(true);\n\n constructor() {\n afterNextRender(() => {\n this.watchInsets();\n this.watchValue();\n });\n }\n\n ngAfterViewInit(): void {\n this.startContent.set(this.slotContent(this.start().nativeElement));\n this.endContent.set(this.slotContent(this.end().nativeElement));\n }\n\n value(): string {\n return (this.input()?.nativeElement as HTMLInputElement | undefined)?.value ?? '';\n }\n\n clear(): void {\n const element = this.input()?.nativeElement as HTMLInputElement | undefined;\n if (!element) {\n return;\n }\n const control = this.control()?.control;\n if (control) {\n control.setValue('');\n control.markAsDirty();\n } else {\n element.value = '';\n element.dispatchEvent(new Event('input', { bubbles: true }));\n }\n this.hasValue.set(false);\n element.focus();\n }\n\n private watchInsets(): void {\n if (typeof ResizeObserver === 'undefined') {\n return;\n }\n const measure = () => {\n this.startInset.set(this.inset(this.start().nativeElement));\n this.endInset.set(this.inset(this.end().nativeElement));\n };\n const observer = new ResizeObserver(measure);\n observer.observe(this.start().nativeElement);\n observer.observe(this.end().nativeElement);\n measure();\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n\n private watchValue(): void {\n const element = this.input()?.nativeElement as HTMLInputElement | undefined;\n if (!element) {\n return;\n }\n const update = () => {\n this.hasValue.set(!!element.value);\n this.isEditable.set(!element.disabled && !element.readOnly);\n };\n element.addEventListener('input', update);\n const subscription = this.control()?.control?.events.subscribe(() => queueMicrotask(update));\n this.destroyRef.onDestroy(() => {\n element.removeEventListener('input', update);\n subscription?.unsubscribe();\n });\n update();\n }\n\n private slotContent(slot: HTMLElement): TxIconFieldSlotContent {\n if (slot.querySelector('.tx-input-action')) {\n return 'action';\n }\n return slot.querySelector('.tx-input-icon') ? 'icon' : 'none';\n }\n\n private inset(container: HTMLElement): number {\n const width = container.getBoundingClientRect().width;\n return width ? Math.round(width + 6) : 0;\n }\n}\n","<span #start class=\"tx-icon-field__slot tx-icon-field__slot--start\"><ng-content select=\"tx-input-icon:not([position=end])\" /></span>\n<ng-content />\n<span #end class=\"tx-icon-field__slot tx-icon-field__slot--end\"><ng-content select=\"tx-input-icon[position=end], tx-input-clear, tx-input-copy\" /></span>\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TxInputIconPosition } from './icon-field.types';\n\n@Component({\n selector: 'tx-input-icon',\n imports: [TxIcon],\n template: `\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else if (icon()) {\n <span [class]=\"icon()\"></span>\n }\n <ng-content />\n `,\n styleUrl: './input-icon.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-icon', 'aria-hidden': 'true' },\n})\nexport class TxInputIcon {\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly position = input<TxInputIconPosition>('start');\n\n readonly iconName = computed(() => {\n const icon = this.icon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n}\n","import { ChangeDetectionStrategy, Component, inject, output } from '@angular/core';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxIconField } from './icon-field.component';\n\n@Component({\n selector: 'tx-input-clear',\n imports: [TxIcon],\n template: `\n @if (field.hasValue() && field.isEditable()) {\n <button type=\"button\" class=\"tx-input-action\" [attr.aria-label]=\"translations().clear\" [title]=\"translations().clear\" (click)=\"clear()\">\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './input-action.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-clear' },\n})\nexport class TxInputClear {\n readonly field = inject(TxIconField);\n readonly translations = injectTranslations();\n\n readonly cleared = output<void>();\n\n clear(): void {\n this.field.clear();\n this.cleared.emit();\n }\n}\n","import { ChangeDetectionStrategy, Component, DestroyRef, inject, output, signal } from '@angular/core';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxIconField } from './icon-field.component';\n\n@Component({\n selector: 'tx-input-copy',\n imports: [TxIcon],\n template: `\n <button\n type=\"button\"\n class=\"tx-input-action\"\n [class.tx-input-action--done]=\"isCopied()\"\n [attr.aria-label]=\"isCopied() ? translations().copied : translations().copy\"\n [title]=\"isCopied() ? translations().copied : translations().copy\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'copy'\" />\n </button>\n `,\n styleUrl: './input-action.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-input-copy' },\n})\nexport class TxInputCopy {\n private field = inject(TxIconField);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly translations = injectTranslations();\n readonly isCopied = signal(false);\n\n readonly copied = output<string>();\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const value = this.field.value();\n navigator.clipboard?.writeText(value);\n this.isCopied.set(true);\n this.copied.emit(value);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), 1500);\n }\n}\n"],"mappings":";;;;;;;;AAkCA,IAAa,cAAb,MAAa,YAAW;CACd,aAAa,OAAO,UAAU;CAE7B,QAAQ,MAAoC,QAAS;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CAEnF,QAAQ,aAAa,SAAO;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,MAAM;CAAU,CAAA;CAChD,iBAAiB,aAAa,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,UAAU,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,IAAI;CAC9D;CAtBW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAW,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAX,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAW,cAAA;EAAA,UAAA;EAAA,SAAA,EAAA,QAAA,SAAA;EAAA,MAAA,EAAA,gBAAA,gBAAA;EAAA,UAAA;EAAA,UAhBZ;;;;;;;;;;;;EAWT,UAAA;EAAA,QAAA,CAAA,2mBAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MAZS;GAAM,UAAA;GAAA,QAAA,CAAA,MAAA;EAAA,CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAiBL,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAW,YAAA,CAAA;EAnBvB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAe,SAChB,CAAC,MAAM;GAAC,UACP;;;;;;;;;;;;GAWT,iBAEgB,wBAAwB;GAAM,MACzC,EAAE,OAAO,gBAAe;GAAE,QAAA,CAAA,2mBAAA;EAAA,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tectra-ng/ui",
3
- "version": "0.1.5",
4
- "description": "Angular UI components for tectra: signals, OnPush, accessible and themable, one entry point per component.",
3
+ "version": "0.1.6",
4
+ "description": "Angular UI components on signals: table, datepicker, select, multiselect, dialog, drawer, toast, tooltip, tree and 80+ more. Standalone, OnPush, zoneless, accessible and themable, one entry point per component.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://tectra-ng.com",
7
7
  "repository": {
@@ -13,10 +13,45 @@
13
13
  "keywords": [
14
14
  "tectra",
15
15
  "angular",
16
- "ui",
17
- "components",
16
+ "angular-components",
17
+ "angular-ui",
18
+ "angular-library",
19
+ "ui-kit",
20
+ "ui-components",
21
+ "component-library",
18
22
  "design-system",
19
- "signals"
23
+ "standalone-components",
24
+ "signals",
25
+ "zoneless",
26
+ "accessibility",
27
+ "wcag",
28
+ "dark-mode",
29
+ "theming",
30
+ "design-tokens",
31
+ "css-variables",
32
+ "datatable",
33
+ "data-table",
34
+ "table",
35
+ "datepicker",
36
+ "select",
37
+ "dropdown",
38
+ "multiselect",
39
+ "autocomplete",
40
+ "dialog",
41
+ "modal",
42
+ "drawer",
43
+ "toast",
44
+ "tooltip",
45
+ "menu",
46
+ "tabs",
47
+ "tree",
48
+ "treetable",
49
+ "form",
50
+ "input",
51
+ "checkbox",
52
+ "file-upload",
53
+ "carousel",
54
+ "paginator"
20
55
  ],
21
56
  "peerDependencies": {
22
57
  "@angular/cdk": "^22.0.0",
@@ -25,9 +60,9 @@
25
60
  "@angular/forms": "^22.0.0",
26
61
  "@angular/router": "^22.0.0",
27
62
  "rxjs": "^7.8.0",
28
- "@tectra-ng/core": "^0.1.5",
29
- "@tectra-ng/icons": "^0.1.5",
30
- "@tectra-ng/themes": "^0.1.5"
63
+ "@tectra-ng/core": "^0.1.6",
64
+ "@tectra-ng/icons": "^0.1.6",
65
+ "@tectra-ng/themes": "^0.1.6"
31
66
  },
32
67
  "peerDependenciesMeta": {
33
68
  "@angular/router": {
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- import { ElementRef, TemplateRef } from "@angular/core";
2
+ import { AfterViewInit, ElementRef, TemplateRef } from "@angular/core";
3
3
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
4
4
  import { TxIconName } from "@tectra-ng/icons";
5
5
  import { TectraDeepPartial } from "@tectra-ng/themes";
@@ -20,7 +20,7 @@ export type TxButtonSize = 'small' | 'medium' | 'large';
20
20
  export type TxButtonVariant = 'outlined' | 'text' | 'link';
21
21
  export type TxButtonIconPosition = 'left' | 'right' | 'top' | 'bottom';
22
22
  export type TxButtonPart = 'root' | 'icon' | 'loadingIcon' | 'label' | 'badge';
23
- export declare class TxButton {
23
+ export declare class TxButton implements AfterViewInit {
24
24
  private elementRef;
25
25
  private txIconRegistry;
26
26
  readonly label: import("@angular/core").InputSignal<string | number | undefined>;
@@ -331,6 +331,8 @@ export declare class TxButton {
331
331
  [x: string]: string;
332
332
  }>;
333
333
  constructor();
334
+ ngAfterViewInit(): void;
335
+ private projectsLabel;
334
336
  static ɵfac: i0.ɵɵFactoryDeclaration<TxButton, never>;
335
337
  static ɵcmp: i0.ɵɵComponentDeclaration<TxButton, "button[txButton], a[txButton]", never, {
336
338
  "label": {
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-button.d.ts","names":[],"sources":["../../../../packages/ui/button/src/button-templates.directive.ts","../../../../packages/ui/button/src/button.types.ts","../../../../packages/ui/button/src/button.component.ts"],"mappings":";;;;;;;qBAGa;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAKA;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;YCRD;YACA;YACA;YACA;YACA;qBCoDC;UACH;UACA;WAEC,+BAAK;WACL,kCAAQ,YAAA;WACR,8BAAI,YAAA;WACJ,iCAAO,YAAA;WACP,kCAAQ;WACR,8BAAI;WACJ,8BAAI;WACJ,iCAAO;WACP,gCAAM;WACN,+BAAK;WACL,+BAAK;WACL,kCAAQ;WACR,kCAAQ;WACR,8BAAI,YAAA;WACJ,iCAAO,YAAA;WACP,kCAAQ;WACR,iCAAO;WACP,qCAAW,YAAA;WACX,+BAAK;WACL,uCAAa,YAAA;WACb,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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.directive.ts","../../../../packages/ui/button/src/button.types.ts","../../../../packages/ui/button/src/button.component.ts"],"mappings":";;;;;;;qBAGa;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAKA;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;YCRD;YACA;YACA;YACA;YACA;qBCqDC,oBAAoB;UACvB;UACA;WAEC,+BAAK;WACL,kCAAQ,YAAA;WACR,8BAAI,YAAA;WACJ,iCAAO,YAAA;WACP,kCAAQ;WACR,8BAAI;WACJ,8BAAI;WACJ,iCAAO;WACP,gCAAM;WACN,+BAAK;WACL,+BAAK;WACL,kCAAQ;WACR,kCAAQ;WACR,8BAAI,YAAA;WACJ,iCAAO,YAAA;WACP,kCAAQ;WACR,iCAAO;WACP,qCAAW,YAAA;WACX,+BAAK;WACL,uCAAa,YAAA;WACb,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,+CAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,sCAAY,OAAA;WACZ,6CAAmB,OAAA;WACnB,wCAAc,OAAA,WAAA;WAEd;WAEA,2CAAiB;EAC1B,oCAAU;EACV,iCAAO;EACP,qCAAW,OAAA,QAAA,OAAA,+CAAA;WAEF,yCAAe,OAAA;WAaf,oCAAU;WACV,iCAAO;WACP,sCAAY;WACZ,oCAAU;WACV,kCAAQ,OAAA;WAIR,yCAAe,OAAA;WAIf,kCAAQ;WACR,mCAAS;;;;EAsBlB;UAIQ;SA5FG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAQ;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA,kBAAA,GAAA;IAAA;MAAA;MAAA;MAAA;;IAAA"}
@@ -1,10 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
- import { ElementRef } from "@angular/core";
2
+ import { AfterViewInit, ElementRef } from "@angular/core";
3
3
  import { NgControl } from "@angular/forms";
4
4
  import { TxInput } from "@tectra-ng/ui/input";
5
5
  import { TxIconName } from "@tectra-ng/icons";
6
6
  export type TxInputIconPosition = 'start' | 'end';
7
- export declare class TxIconField {
7
+ export type TxIconFieldSlotContent = 'none' | 'icon' | 'action';
8
+ export declare class TxIconField implements AfterViewInit {
8
9
  private destroyRef;
9
10
  readonly fluid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
10
11
  readonly input: import("@angular/core").Signal<ElementRef<any> | undefined>;
@@ -13,15 +14,19 @@ export declare class TxIconField {
13
14
  readonly start: import("@angular/core").Signal<ElementRef<HTMLElement>>;
14
15
  readonly end: import("@angular/core").Signal<ElementRef<HTMLElement>>;
15
16
  readonly isFluid: import("@angular/core").Signal<boolean>;
16
- readonly startInset: import("@angular/core").WritableSignal<number>;
17
- readonly endInset: import("@angular/core").WritableSignal<number>;
17
+ readonly startInset: import("@angular/core").WritableSignal<number | null>;
18
+ readonly endInset: import("@angular/core").WritableSignal<number | null>;
19
+ readonly startContent: import("@angular/core").WritableSignal<TxIconFieldSlotContent>;
20
+ readonly endContent: import("@angular/core").WritableSignal<TxIconFieldSlotContent>;
18
21
  readonly hasValue: import("@angular/core").WritableSignal<boolean>;
19
22
  readonly isEditable: import("@angular/core").WritableSignal<boolean>;
20
23
  constructor();
24
+ ngAfterViewInit(): void;
21
25
  value(): string;
22
26
  clear(): void;
23
27
  private watchInsets;
24
28
  private watchValue;
29
+ private slotContent;
25
30
  private inset;
26
31
  static ɵfac: i0.ɵɵFactoryDeclaration<TxIconField, never>;
27
32
  static ɵcmp: i0.ɵɵComponentDeclaration<TxIconField, "tx-icon-field", never, {
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-icon-field.d.ts","names":[],"sources":["../../../../packages/ui/icon-field/src/icon-field.types.ts","../../../../packages/ui/icon-field/src/icon-field.component.ts","../../../../packages/ui/icon-field/src/input-icon.component.ts","../../../../packages/ui/icon-field/src/input-clear.component.ts","../../../../packages/ui/icon-field/src/input-copy.component.ts"],"mappings":";;;;;YAAY;qBC6BC;UACH;WAEC,+BAAK;WAEL,+BAAK,OAAA;WACL,wCAAc,OAAA;WACd,iCAAO,OAAA;WACP,+BAAK,OAAA,WAAA;WACL,6BAAG,OAAA,WAAA;WAEH,iCAAO;WACP,oCAAU;WACV,kCAAQ;WACR,kCAAQ;WACR,oCAAU;;EASnB;EAIA;UAiBQ;UAeA;UAkBA;SA9EG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW;MAAA;MAAA;MAAA;;;;qBCVX;UACH;WAEC,8BAAI,YAAA;WACJ,kCAAQ,YAAA;WAER,kCAAQ,OAAA;SANN,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;;qBCAX;WACF,OAAK;WACL,sCAAY,6DAAA;WAEZ,iCAAO;EAEhB;SANW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;;;qBCKZ;UACH;UACA;WAEC,sCAAY,6DAAA;WACZ,kCAAQ;WAER,gCAAM;;EAMf;SAbW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW"}
1
+ {"version":3,"file":"tectra-ng-ui-icon-field.d.ts","names":[],"sources":["../../../../packages/ui/icon-field/src/icon-field.types.ts","../../../../packages/ui/icon-field/src/icon-field.component.ts","../../../../packages/ui/icon-field/src/input-icon.component.ts","../../../../packages/ui/icon-field/src/input-clear.component.ts","../../../../packages/ui/icon-field/src/input-copy.component.ts"],"mappings":";;;;;YAAY;YAEA;qBCgCC,uBAAuB;UAC1B;WAEC,+BAAK;WAEL,+BAAK,OAAA;WACL,wCAAc,OAAA;WACd,iCAAO,OAAA;WACP,+BAAK,OAAA,WAAA;WACL,6BAAG,OAAA,WAAA;WAEH,iCAAO;WACP,oCAAU;WACV,kCAAQ;WACR,sCAAY,eAAA;WACZ,oCAAU,eAAA;WACV,kCAAQ;WACR,oCAAU;;EASnB;EAKA;EAIA;UAiBQ;UAeA;UAkBA;UAOA;SA5FG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW;MAAA;MAAA;MAAA;;;;qBCfX;UACH;WAEC,8BAAI,YAAA;WACJ,kCAAQ,YAAA;WAER,kCAAQ,OAAA;SANN,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;;qBCAX;WACF,OAAK;WACL,sCAAY,6DAAA;WAEZ,iCAAO;EAEhB;SANW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;;;qBCKZ;UACH;UACA;WAEC,sCAAY,6DAAA;WACZ,kCAAQ;WAER,gCAAM;;EAMf;SAbW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW"}