@tectra-ng/ui 0.2.1 → 0.2.2

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 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-truncate-text.mjs","names":[],"sources":["../../../../packages/ui/truncate-text/src/truncate-text.component.ts","../../../../packages/ui/truncate-text/src/truncate-text.component.html"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, booleanAttribute, computed, inject, input, numberAttribute, output, signal } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxPlacement } from '@tectra-ng/core/overlay';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraTruncateTextTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxHighlightTerms, TxHighlightText } from '@tectra-ng/ui/highlight-text';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { TxTruncateTextPart } from './truncate-text.types';\n\nconst COPIED_FOR = 1600;\n\n@Component({\n selector: 'tx-truncate-text',\n imports: [NgTemplateOutlet, TxHighlightText, TxIcon, TxTooltip],\n templateUrl: './truncate-text.component.html',\n styleUrl: './truncate-text.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-truncate-text',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-truncate-text--truncated]': 'isTruncated()',\n },\n})\nexport class TxTruncateText {\n private document = inject(DOCUMENT);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly text = input<string | number | null | undefined>('');\n readonly limit = input<number, unknown>(15, { transform: numberAttribute });\n readonly ellipsis = input<string>('...');\n readonly href = input<string | null | undefined>(undefined);\n readonly openLink = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly target = input<string>('_blank');\n readonly highlight = input<TxHighlightTerms>('');\n readonly copyable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tooltipPlacement = input<TxPlacement>('top');\n readonly dt = input<TectraDeepPartial<TectraTruncateTextTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTruncateTextPart, TxTruncateText> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly copied = output<string>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('truncateText', this, this.pt, this.ptOptions);\n readonly isCopied = signal(false);\n\n readonly fullText = computed(() => String(this.text() ?? ''));\n readonly isTruncated = computed(() => this.limit() >= 0 && Array.from(this.fullText()).length > this.limit());\n readonly displayText = computed(() => (this.isTruncated() ? Array.from(this.fullText()).slice(0, this.limit()).join('') + this.ellipsis() : this.fullText()));\n readonly tooltip = computed(() => (this.isTruncated() ? this.fullText() : null));\n readonly linkHref = computed(() => this.href() || (this.openLink() ? this.fullText() : null) || null);\n readonly relation = computed(() => (this.target() === '_blank' ? 'noopener noreferrer' : null));\n readonly copyLabel = computed(() => (this.isCopied() ? this.translations().copied : this.translations().copy));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-truncate-text'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const text = this.fullText();\n this.document.defaultView?.navigator.clipboard?.writeText(text);\n this.copied.emit(text);\n this.isCopied.set(true);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), COPIED_FOR);\n }\n}\n","@if (copyable() && fullText()) {\n <button\n type=\"button\"\n class=\"tx-truncate-text__copy\"\n [class.tx-truncate-text__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"copyLabel()\"\n [txTooltip]=\"copyLabel()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'clone'\" />\n </button>\n}\n<ng-template #content>\n @if (isTruncated()) {\n <span aria-hidden=\"true\"><tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" /></span>\n <span class=\"tx-truncate-text__full\">{{ fullText() }}</span>\n } @else {\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" />\n }\n</ng-template>\n@if (linkHref(); as link) {\n <a\n class=\"tx-truncate-text__text tx-truncate-text__link\"\n [href]=\"link\"\n [attr.target]=\"target()\"\n [attr.rel]=\"relation()\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <span\n class=\"tx-truncate-text__text\"\n [attr.tabindex]=\"isTruncated() ? 0 : null\"\n [class]=\"passThrough().text?.class\"\n [style]=\"passThrough().text?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </span>\n}\n"],"mappings":";;;;;;;;;;AAYA,MAAM,aAAa;AAgBnB,IAAa,iBAAb,MAAa,eAAc;CACjB,WAAW,OAAO,QAAQ;CAC1B,QAA8C;CAE7C,OAAO,MAA0C,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACpD,QAAQ,MAAuB,IAAE;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+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,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAd1B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAkB,SACnB;IAAC;IAAkB;IAAiB;IAAQ;GAAS;GAAC,iBAG9C,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,uCAAuC;GACxC;GAAA,UAAA;GAAA,QAAA,CAAA,guDAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-truncate-text.mjs","names":[],"sources":["../../../../packages/ui/truncate-text/src/truncate-text.component.ts","../../../../packages/ui/truncate-text/src/truncate-text.component.html"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, booleanAttribute, computed, inject, input, numberAttribute, output, signal } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxPlacement } from '@tectra-ng/core/overlay';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraTruncateTextTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxHighlightTerms, TxHighlightText } from '@tectra-ng/ui/highlight-text';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { TxTruncateTextPart } from './truncate-text.types';\n\nconst COPIED_FOR = 1600;\n\n@Component({\n selector: 'tx-truncate-text',\n imports: [NgTemplateOutlet, TxHighlightText, TxIcon, TxTooltip],\n templateUrl: './truncate-text.component.html',\n styleUrl: './truncate-text.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-truncate-text',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-truncate-text--truncated]': 'isTruncated()',\n },\n})\nexport class TxTruncateText {\n private document = inject(DOCUMENT);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly text = input<string | number | null | undefined>('');\n readonly limit = input<number, unknown>(15, { transform: numberAttribute });\n readonly ellipsis = input<string>('...');\n readonly href = input<string | null | undefined>(undefined);\n readonly openLink = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly target = input<string>('_blank');\n readonly highlight = input<TxHighlightTerms>('');\n readonly copyable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tooltipPlacement = input<TxPlacement>('top');\n readonly dt = input<TectraDeepPartial<TectraTruncateTextTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTruncateTextPart, TxTruncateText> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly copied = output<string>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('truncateText', this, this.pt, this.ptOptions);\n readonly isCopied = signal(false);\n\n readonly fullText = computed(() => String(this.text() ?? ''));\n readonly isTruncated = computed(() => this.limit() >= 0 && Array.from(this.fullText()).length > this.limit());\n readonly displayText = computed(() => (this.isTruncated() ? Array.from(this.fullText()).slice(0, this.limit()).join('') + this.ellipsis() : this.fullText()));\n readonly tooltip = computed(() => (this.isTruncated() ? this.fullText() : null));\n readonly linkHref = computed(() => this.href() || (this.openLink() ? this.fullText() : null) || null);\n readonly relation = computed(() => (this.target() === '_blank' ? 'noopener noreferrer' : null));\n readonly copyLabel = computed(() => (this.isCopied() ? this.translations().copied : this.translations().copy));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-truncate-text'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const text = this.fullText();\n this.document.defaultView?.navigator.clipboard?.writeText(text);\n this.copied.emit(text);\n this.isCopied.set(true);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), COPIED_FOR);\n }\n}\n","@if (copyable() && fullText()) {\n <button\n type=\"button\"\n class=\"tx-truncate-text__copy\"\n [class.tx-truncate-text__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"copyLabel()\"\n [txTooltip]=\"copyLabel()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n (click)=\"copy()\"\n >\n <span class=\"tx-copy-swap\" [class.tx-copy-swap--done]=\"isCopied()\"><tx-icon class=\"tx-copy-swap__icon tx-copy-swap__icon--idle\" name=\"clone\" /><tx-icon class=\"tx-copy-swap__icon tx-copy-swap__icon--done\" name=\"check\" /></span>\n </button>\n}\n<ng-template #content>\n @if (isTruncated()) {\n <span aria-hidden=\"true\"><tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" /></span>\n <span class=\"tx-truncate-text__full\">{{ fullText() }}</span>\n } @else {\n <tx-highlight-text [text]=\"displayText()\" [highlight]=\"highlight()\" [unstyled]=\"isUnstyled()\" />\n }\n</ng-template>\n@if (linkHref(); as link) {\n <a\n class=\"tx-truncate-text__text tx-truncate-text__link\"\n [href]=\"link\"\n [attr.target]=\"target()\"\n [attr.rel]=\"relation()\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <span\n class=\"tx-truncate-text__text\"\n [attr.tabindex]=\"isTruncated() ? 0 : null\"\n [class]=\"passThrough().text?.class\"\n [style]=\"passThrough().text?.style\"\n [txTooltip]=\"tooltip()\"\n [tooltipPlacement]=\"tooltipPlacement()\"\n [tooltipInteractive]=\"true\"\n >\n <ng-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GAAA;IAAA,MAAA;IAAA,MAAE;IAAS,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;IAAA,SAAA,CAAA,gBAAA,eAAA;IAAA,UAAA,CAAA,WAAA;GAAA;EAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAYnD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAd1B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAkB,SACnB;IAAC;IAAkB;IAAiB;IAAQ;GAAS;GAAC,iBAG9C,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,uCAAuC;GACxC;GAAA,UAAA;GAAA,QAAA,CAAA,6tEAAA;EAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tectra-ng/ui",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
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",
@@ -60,9 +60,9 @@
60
60
  "@angular/forms": "^22.0.0",
61
61
  "@angular/router": "^22.0.0",
62
62
  "rxjs": "^7.8.0",
63
- "@tectra-ng/core": "^0.2.1",
64
- "@tectra-ng/icons": "^0.2.1",
65
- "@tectra-ng/themes": "^0.2.1"
63
+ "@tectra-ng/core": "^0.2.2",
64
+ "@tectra-ng/icons": "^0.2.2",
65
+ "@tectra-ng/themes": "^0.2.2"
66
66
  },
67
67
  "peerDependenciesMeta": {
68
68
  "@angular/router": {
@@ -4,11 +4,18 @@ import { TxPassThroughOptions } from "@tectra-ng/core/config";
4
4
  import { TxIconName } from "@tectra-ng/icons";
5
5
  import { TectraDeepPartial } from "@tectra-ng/themes";
6
6
  import * as i1 from "@tectra-ng/ui/tooltip";
7
+ import { TxMenuItem } from "@tectra-ng/ui/menu";
7
8
  export type TxAvatarSize = 'small' | 'medium' | 'large' | 'xlarge';
8
9
  export type TxAvatarShape = 'circle' | 'square';
9
10
  export type TxAvatarTone = 'blue' | 'green' | 'sky' | 'orange' | 'purple' | 'red';
10
11
  export type TxAvatarPart = 'root' | 'image' | 'label' | 'icon';
11
12
  export type TxAvatarGroupPart = 'root' | 'more' | 'add' | 'list' | 'item' | 'name';
13
+ export type TxAvatarEditorPart = 'root' | 'photo' | 'badge' | 'loader' | 'hint';
14
+ export type TxAvatarEditorRejectReason = 'type' | 'size';
15
+ export interface TxAvatarEditorRejection {
16
+ readonly file: File;
17
+ readonly reason: TxAvatarEditorRejectReason;
18
+ }
12
19
  export interface TxAvatarGroupContext {
13
20
  readonly size: Signal<TxAvatarSize | number | undefined>;
14
21
  readonly shape: Signal<TxAvatarShape | undefined>;
@@ -89,6 +96,22 @@ export declare class TxAvatar {
89
96
  addColor: string;
90
97
  addIconScale: string;
91
98
  };
99
+ editor: {
100
+ size: string;
101
+ gap: string;
102
+ ringWidth: string;
103
+ ringColor: string;
104
+ badgeRingWidth: string;
105
+ badgeRingColor: string;
106
+ badgeSize: string;
107
+ loaderBackground: string;
108
+ dropRingColor: string;
109
+ hintMaxWidth: string;
110
+ hintFontSize: string;
111
+ hintLineHeight: string;
112
+ hintColor: string;
113
+ transitionDuration: string;
114
+ };
92
115
  list: {
93
116
  padding: string;
94
117
  gap: string;
@@ -269,6 +292,22 @@ export declare class TxAvatarGroup {
269
292
  addColor: string;
270
293
  addIconScale: string;
271
294
  };
295
+ editor: {
296
+ size: string;
297
+ gap: string;
298
+ ringWidth: string;
299
+ ringColor: string;
300
+ badgeRingWidth: string;
301
+ badgeRingColor: string;
302
+ badgeSize: string;
303
+ loaderBackground: string;
304
+ dropRingColor: string;
305
+ hintMaxWidth: string;
306
+ hintFontSize: string;
307
+ hintLineHeight: string;
308
+ hintColor: string;
309
+ transitionDuration: string;
310
+ };
272
311
  list: {
273
312
  padding: string;
274
313
  gap: string;
@@ -368,4 +407,225 @@ export declare class TxAvatarGroup {
368
407
  "add": "add";
369
408
  }, ["avatars"], ["*", "[txAvatarGroupEnd]"], true, never>;
370
409
  }
410
+ export declare function acceptsFile(file: File, accept: string): boolean;
411
+ export declare class TxAvatarEditor {
412
+ readonly image: import("@angular/core").ModelSignal<string | null | undefined>;
413
+ readonly name: import("@angular/core").InputSignal<string | null | undefined>;
414
+ readonly size: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
415
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
416
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
417
+ readonly hint: import("@angular/core").InputSignal<string | undefined>;
418
+ readonly accept: import("@angular/core").InputSignal<string>;
419
+ readonly maxFileSize: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
420
+ readonly confirmRemove: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
421
+ readonly changeLabel: import("@angular/core").InputSignal<string | undefined>;
422
+ readonly removeLabel: import("@angular/core").InputSignal<string | undefined>;
423
+ readonly removeTitle: import("@angular/core").InputSignal<string | undefined>;
424
+ readonly removeMessage: import("@angular/core").InputSignal<string | undefined>;
425
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
426
+ root: {
427
+ size: string;
428
+ fontWeight: string;
429
+ fontScale: string;
430
+ iconScale: string;
431
+ squareBorderRadius: string;
432
+ background: string;
433
+ color: string;
434
+ };
435
+ sm: {
436
+ size: string;
437
+ };
438
+ lg: {
439
+ size: string;
440
+ };
441
+ xl: {
442
+ size: string;
443
+ };
444
+ tones: {
445
+ blue: {
446
+ background: string;
447
+ color: string;
448
+ };
449
+ green: {
450
+ background: string;
451
+ color: string;
452
+ };
453
+ sky: {
454
+ background: string;
455
+ color: string;
456
+ };
457
+ orange: {
458
+ background: string;
459
+ color: string;
460
+ };
461
+ purple: {
462
+ background: string;
463
+ color: string;
464
+ };
465
+ red: {
466
+ background: string;
467
+ color: string;
468
+ };
469
+ };
470
+ group: {
471
+ overlap: string;
472
+ ringWidth: string;
473
+ ringColor: string;
474
+ moreBackground: string;
475
+ moreColor: string;
476
+ moreFocusRingWidth: string;
477
+ moreFocusRingOffset: string;
478
+ moreFocusRingColor: string;
479
+ endGap: string;
480
+ addBackground: string;
481
+ addBorderColor: string;
482
+ addHoverBorderColor: string;
483
+ addColor: string;
484
+ addIconScale: string;
485
+ };
486
+ editor: {
487
+ size: string;
488
+ gap: string;
489
+ ringWidth: string;
490
+ ringColor: string;
491
+ badgeRingWidth: string;
492
+ badgeRingColor: string;
493
+ badgeSize: string;
494
+ loaderBackground: string;
495
+ dropRingColor: string;
496
+ hintMaxWidth: string;
497
+ hintFontSize: string;
498
+ hintLineHeight: string;
499
+ hintColor: string;
500
+ transitionDuration: string;
501
+ };
502
+ list: {
503
+ padding: string;
504
+ gap: string;
505
+ itemGap: string;
506
+ maxHeight: string;
507
+ nameFontSize: string;
508
+ nameColor: string;
509
+ };
510
+ }> | undefined>;
511
+ readonly pt: import("@angular/core").InputSignal<Partial<Record<TxAvatarEditorPart, import("@tectra-ng/core/config").TxPassThroughValue<TxAvatarEditor>>> | undefined>;
512
+ readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
513
+ readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
514
+ readonly photoChange: import("@angular/core").OutputEmitterRef<File | null>;
515
+ readonly rejected: import("@angular/core").OutputEmitterRef<TxAvatarEditorRejection>;
516
+ readonly isUnstyled: import("@angular/core").Signal<boolean>;
517
+ readonly passThrough: import("@angular/core").Signal<Partial<Record<TxAvatarEditorPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
518
+ protected readonly t: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
519
+ private readonly confirm;
520
+ private readonly fileInput;
521
+ private readonly menu;
522
+ protected readonly dragOver: import("@angular/core").WritableSignal<boolean>;
523
+ protected readonly hasPhoto: import("@angular/core").Signal<boolean>;
524
+ protected readonly blocked: import("@angular/core").Signal<boolean>;
525
+ protected readonly changeText: import("@angular/core").Signal<string>;
526
+ protected readonly menuItems: import("@angular/core").Signal<TxMenuItem<unknown>[]>;
527
+ readonly hostStyle: import("@angular/core").Signal<{
528
+ '--tx-avatar-editor-size'?: string | undefined;
529
+ }>;
530
+ pick(): void;
531
+ remove(): Promise<void>;
532
+ protected onBadge(event: MouseEvent): void;
533
+ protected onFile(event: Event): void;
534
+ protected onDragOver(event: DragEvent): void;
535
+ protected onDragLeave(): void;
536
+ protected onDrop(event: DragEvent): void;
537
+ private take;
538
+ static ɵfac: i0.ɵɵFactoryDeclaration<TxAvatarEditor, never>;
539
+ static ɵcmp: i0.ɵɵComponentDeclaration<TxAvatarEditor, "tx-avatar-editor", never, {
540
+ "image": {
541
+ "alias": "image";
542
+ "required": false;
543
+ "isSignal": true;
544
+ };
545
+ "name": {
546
+ "alias": "name";
547
+ "required": false;
548
+ "isSignal": true;
549
+ };
550
+ "size": {
551
+ "alias": "size";
552
+ "required": false;
553
+ "isSignal": true;
554
+ };
555
+ "loading": {
556
+ "alias": "loading";
557
+ "required": false;
558
+ "isSignal": true;
559
+ };
560
+ "disabled": {
561
+ "alias": "disabled";
562
+ "required": false;
563
+ "isSignal": true;
564
+ };
565
+ "hint": {
566
+ "alias": "hint";
567
+ "required": false;
568
+ "isSignal": true;
569
+ };
570
+ "accept": {
571
+ "alias": "accept";
572
+ "required": false;
573
+ "isSignal": true;
574
+ };
575
+ "maxFileSize": {
576
+ "alias": "maxFileSize";
577
+ "required": false;
578
+ "isSignal": true;
579
+ };
580
+ "confirmRemove": {
581
+ "alias": "confirmRemove";
582
+ "required": false;
583
+ "isSignal": true;
584
+ };
585
+ "changeLabel": {
586
+ "alias": "changeLabel";
587
+ "required": false;
588
+ "isSignal": true;
589
+ };
590
+ "removeLabel": {
591
+ "alias": "removeLabel";
592
+ "required": false;
593
+ "isSignal": true;
594
+ };
595
+ "removeTitle": {
596
+ "alias": "removeTitle";
597
+ "required": false;
598
+ "isSignal": true;
599
+ };
600
+ "removeMessage": {
601
+ "alias": "removeMessage";
602
+ "required": false;
603
+ "isSignal": true;
604
+ };
605
+ "dt": {
606
+ "alias": "dt";
607
+ "required": false;
608
+ "isSignal": true;
609
+ };
610
+ "pt": {
611
+ "alias": "pt";
612
+ "required": false;
613
+ "isSignal": true;
614
+ };
615
+ "ptOptions": {
616
+ "alias": "ptOptions";
617
+ "required": false;
618
+ "isSignal": true;
619
+ };
620
+ "unstyled": {
621
+ "alias": "unstyled";
622
+ "required": false;
623
+ "isSignal": true;
624
+ };
625
+ }, {
626
+ "image": "imageChange";
627
+ "photoChange": "photoChange";
628
+ "rejected": "rejected";
629
+ }, never, never, true, never>;
630
+ }
371
631
  //# sourceMappingURL=tectra-ng-ui-avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-avatar.d.ts","names":[],"sources":["../../../../packages/ui/avatar/src/avatar.types.ts","../../../../packages/ui/avatar/src/avatar-group.token.ts","../../../../packages/ui/avatar/src/avatar.component.ts","../../../../packages/ui/avatar/src/avatar-group.component.ts"],"mappings":";;;;;;YAAY;YACA;YACA;YACA;YACA;iBCDK;WACN,MAAM,OAAO;WACb,OAAO,OAAO;WACd,UAAU;EACnB,SAAS;;qBAGE,iBAAe,eAAA;qBCsCf;UACH;UACA;WAEC,+BAAK;WACL,8BAAI;WACJ,+BAAK;WACL,8BAAI,YAAA;WACJ,8BAAI,qBAAA;WACJ,+BAAK,YAAA;WACL,8BAAI,YAAA;WACJ,mCAAS;WACT,iCAAO;WACP,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OA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iCAAO;WACP,oCAAU,OAAA;WAIV,mCAAS;;;;WAUT,SAAS;EAOlB,OAAO,QAAQ;SAlDJ,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;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"}
1
+ {"version":3,"file":"tectra-ng-ui-avatar.d.ts","names":[],"sources":["../../../../packages/ui/avatar/src/avatar.types.ts","../../../../packages/ui/avatar/src/avatar-group.token.ts","../../../../packages/ui/avatar/src/avatar.component.ts","../../../../packages/ui/avatar/src/avatar-group.component.ts","../../../../packages/ui/avatar/src/avatar-editor.component.ts"],"mappings":";;;;;;;YAAY;YACA;YACA;YACA;YACA;YACA;YACA;iBAEK;WACN,MAAM;WACN,QAAQ;;iBCPF;WACN,MAAM,OAAO;WACb,OAAO,OAAO;WACd,UAAU;EACnB,SAAS;;qBAGE,iBAAe,eAAA;qBCsCf;UACH;UACA;WAEC,+BAAK;WACL,8BAAI;WACJ,+BAAK;WACL,8BAAI,YAAA;WACJ,8BAAI,qBAAA;WACJ,+BAAK,YAAA;WACL,8BAAI,YAAA;WACJ,mCAAS;WACT,iCAAO;WACP,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,+CAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU,iBAAA;WAEV,oCAAU;WACV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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;IAAA;IAAA"}
@@ -6,6 +6,13 @@ import { TectraDeepPartial } from "@tectra-ng/themes";
6
6
  export type TxTagSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'help' | 'contrast';
7
7
  export type TxTagSize = 'small' | 'medium' | 'normal' | 'large';
8
8
  export type TxTagPart = 'root' | 'icon' | 'label' | 'copy' | 'remove';
9
+ export type TxTagListPart = 'root' | 'tag' | 'more' | 'popover';
10
+ export interface TxTagListItem {
11
+ readonly value: string;
12
+ readonly severity?: TxTagSeverity;
13
+ readonly icon?: string;
14
+ readonly tooltip?: string;
15
+ }
9
16
  export declare class TxTag {
10
17
  private txIconRegistry;
11
18
  private document;
@@ -76,6 +83,14 @@ export declare class TxTag {
76
83
  color: string;
77
84
  background: string;
78
85
  };
86
+ list: {
87
+ gap: string;
88
+ popoverGap: string;
89
+ popoverPadding: string;
90
+ popoverMaxWidth: string;
91
+ popoverMaxHeight: string;
92
+ emptyColor: string;
93
+ };
79
94
  }> | undefined>;
80
95
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxTagPart, import("@tectra-ng/core/config").TxPassThroughValue<TxTag>>> | undefined>;
81
96
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
@@ -162,4 +177,157 @@ export declare class TxTag {
162
177
  "removed": "removed";
163
178
  }, never, ["*"], true, never>;
164
179
  }
180
+ export declare class TxTagList {
181
+ readonly tags: import("@angular/core").InputSignal<readonly TxTagListItem[] | null | undefined>;
182
+ readonly limit: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
183
+ readonly severity: import("@angular/core").InputSignal<TxTagSeverity>;
184
+ readonly size: import("@angular/core").InputSignal<TxTagSize>;
185
+ readonly rounded: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
186
+ readonly emptyText: import("@angular/core").InputSignal<string>;
187
+ readonly moreLabel: import("@angular/core").InputSignal<string | undefined>;
188
+ readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
189
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
190
+ root: {
191
+ gap: string;
192
+ paddingX: string;
193
+ paddingY: string;
194
+ borderRadius: string;
195
+ roundedBorderRadius: string;
196
+ fontSize: string;
197
+ fontWeight: string;
198
+ lineHeight: string;
199
+ tint: string;
200
+ iconSize: string;
201
+ actionSize: string;
202
+ focusRingColor: string;
203
+ };
204
+ sm: {
205
+ fontSize: string;
206
+ paddingX: string;
207
+ paddingY: string;
208
+ };
209
+ lg: {
210
+ fontSize: string;
211
+ paddingX: string;
212
+ paddingY: string;
213
+ gap: string;
214
+ };
215
+ primary: {
216
+ color: string;
217
+ background: string;
218
+ };
219
+ secondary: {
220
+ color: string;
221
+ background: string;
222
+ };
223
+ success: {
224
+ color: string;
225
+ background: string;
226
+ };
227
+ info: {
228
+ color: string;
229
+ background: string;
230
+ };
231
+ warn: {
232
+ color: string;
233
+ background: string;
234
+ };
235
+ danger: {
236
+ color: string;
237
+ background: string;
238
+ };
239
+ help: {
240
+ color: string;
241
+ background: string;
242
+ };
243
+ contrast: {
244
+ color: string;
245
+ background: string;
246
+ };
247
+ list: {
248
+ gap: string;
249
+ popoverGap: string;
250
+ popoverPadding: string;
251
+ popoverMaxWidth: string;
252
+ popoverMaxHeight: string;
253
+ emptyColor: string;
254
+ };
255
+ }> | undefined>;
256
+ readonly pt: import("@angular/core").InputSignal<Partial<Record<TxTagListPart, import("@tectra-ng/core/config").TxPassThroughValue<TxTagList>>> | undefined>;
257
+ readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
258
+ readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
259
+ readonly isUnstyled: import("@angular/core").Signal<boolean>;
260
+ readonly passThrough: import("@angular/core").Signal<Partial<Record<TxTagListPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
261
+ protected readonly t: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
262
+ protected readonly all: import("@angular/core").Signal<readonly TxTagListItem[]>;
263
+ protected readonly visible: import("@angular/core").Signal<readonly TxTagListItem[]>;
264
+ protected readonly hidden: import("@angular/core").Signal<TxTagListItem[]>;
265
+ protected readonly moreText: import("@angular/core").Signal<string>;
266
+ readonly hostStyle: import("@angular/core").Signal<{
267
+ [x: string]: string;
268
+ }>;
269
+ static ɵfac: i0.ɵɵFactoryDeclaration<TxTagList, never>;
270
+ static ɵcmp: i0.ɵɵComponentDeclaration<TxTagList, "tx-tag-list", never, {
271
+ "tags": {
272
+ "alias": "tags";
273
+ "required": false;
274
+ "isSignal": true;
275
+ };
276
+ "limit": {
277
+ "alias": "limit";
278
+ "required": false;
279
+ "isSignal": true;
280
+ };
281
+ "severity": {
282
+ "alias": "severity";
283
+ "required": false;
284
+ "isSignal": true;
285
+ };
286
+ "size": {
287
+ "alias": "size";
288
+ "required": false;
289
+ "isSignal": true;
290
+ };
291
+ "rounded": {
292
+ "alias": "rounded";
293
+ "required": false;
294
+ "isSignal": true;
295
+ };
296
+ "emptyText": {
297
+ "alias": "emptyText";
298
+ "required": false;
299
+ "isSignal": true;
300
+ };
301
+ "moreLabel": {
302
+ "alias": "moreLabel";
303
+ "required": false;
304
+ "isSignal": true;
305
+ };
306
+ "ariaLabel": {
307
+ "alias": "ariaLabel";
308
+ "required": false;
309
+ "isSignal": true;
310
+ };
311
+ "dt": {
312
+ "alias": "dt";
313
+ "required": false;
314
+ "isSignal": true;
315
+ };
316
+ "pt": {
317
+ "alias": "pt";
318
+ "required": false;
319
+ "isSignal": true;
320
+ };
321
+ "ptOptions": {
322
+ "alias": "ptOptions";
323
+ "required": false;
324
+ "isSignal": true;
325
+ };
326
+ "unstyled": {
327
+ "alias": "unstyled";
328
+ "required": false;
329
+ "isSignal": true;
330
+ };
331
+ }, {}, never, never, true, never>;
332
+ }
165
333
  //# sourceMappingURL=tectra-ng-ui-tag.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-tag.d.ts","names":[],"sources":["../../../../packages/ui/tag/src/tag.types.ts","../../../../packages/ui/tag/src/tag.component.ts"],"mappings":";;;;;YAAY;YACA;YACA;qBCgEC;UACH;UACA;UACA;WAEC,+BAAK;WACL,kCAAQ,YAAA;WACR,8BAAI,YAAA;WACJ,iCAAO;WACP,8BAAI,YAAA;WACJ,kCAAQ;WACR,mCAAS;WACT,qCAAW;WACX,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,4CAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,gCAAM;WACN,iCAAO,iBAAA;WAEP,+BAAK,OAAA,WAAA;WAEL,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,4CAAA;WACX,kCAAQ;WACR,sCAAY,OAAA;WACZ,kCAAQ,OAAA;WAIR,mCAAS;;;;EAMlB;EAWA,OAAO,OAAO;SAjDH,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAK;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;IAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-tag.d.ts","names":[],"sources":["../../../../packages/ui/tag/src/tag.types.ts","../../../../packages/ui/tag/src/tag.component.ts","../../../../packages/ui/tag/src/tag-list.component.ts"],"mappings":";;;;;YAAY;YACA;YACA;YACA;iBAEK;WACN;WACA,WAAW;WACX;WACA;;qBCyDE;UACH;UACA;UACA;WAEC,+BAAK;WACL,kCAAQ,YAAA;WACR,8BAAI,YAAA;WACJ,iCAAO;WACP,8BAAI,YAAA;WACJ,kCAAQ;WACR,mCAAS;WACT,qCAAW;WACX,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,4CAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,gCAAM;WACN,iCAAO,iBAAA;WAEP,+BAAK,OAAA,WAAA;WAEL,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,4CAAA;WACX,kCAAQ;WACR,sCAAY,OAAA;WACZ,kCAAQ,OAAA;WAIR,mCAAS;;;;EAMlB;EAWA,OAAO,OAAO;SAjDH,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAK;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;IAAA;;;qBCvCL;WACF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