@masterteam/components 0.0.327 → 0.0.329
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.
- package/assets/i18n/ar.json +3 -1
- package/assets/i18n/en.json +3 -1
- package/fesm2022/masterteam-components-business-fields.mjs +104 -9
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-client-page.mjs +10 -4
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +52 -47
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +4 -4
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components-pick-list-field.mjs +18 -2
- package/fesm2022/masterteam-components-pick-list-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-slider-field.mjs +2 -2
- package/fesm2022/masterteam-components-slider-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +220 -41
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-tooltip.mjs +11 -3
- package/fesm2022/masterteam-components-tooltip.mjs.map +1 -1
- package/fesm2022/masterteam-components-treeselect-field.mjs +2 -2
- package/fesm2022/masterteam-components-treeselect-field.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +22 -1
- package/types/masterteam-components-client-page.d.ts +7 -2
- package/types/masterteam-components-entities.d.ts +9 -0
- package/types/masterteam-components-pick-list-field.d.ts +7 -0
- package/types/masterteam-components-table.d.ts +122 -7
- package/types/masterteam-components-tooltip.d.ts +1 -0
|
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { signal, Injectable, InjectionToken, input, computed, ChangeDetectionStrategy, Component, inject, ElementRef, DestroyRef, afterNextRender, Directive, effect, untracked, ViewEncapsulation, output, NgZone, model } from '@angular/core';
|
|
3
3
|
import { TruncateTooltip, Tooltip } from '@masterteam/components/tooltip';
|
|
4
4
|
import { Icon } from '@masterteam/icons';
|
|
5
|
+
import { NgTemplateOutlet, NgComponentOutlet, DOCUMENT } from '@angular/common';
|
|
5
6
|
import { MTDateFormatPipe, REQUEST_CONTEXT, coerceCheckboxValue, readableTextOn, getLightColor } from '@masterteam/components';
|
|
6
7
|
import { HttpContext, HttpClient } from '@angular/common/http';
|
|
7
8
|
import { TranslocoPipe, TranslocoService } from '@jsverse/transloco';
|
|
@@ -14,7 +15,6 @@ import { FormsModule } from '@angular/forms';
|
|
|
14
15
|
import { Button } from '@masterteam/components/button';
|
|
15
16
|
import { forkJoin, finalize, of, take, switchMap, EMPTY, map, catchError } from 'rxjs';
|
|
16
17
|
import { Chip } from '@masterteam/components/chip';
|
|
17
|
-
import { NgComponentOutlet, NgTemplateOutlet, DOCUMENT } from '@angular/common';
|
|
18
18
|
import { ModalService } from '@masterteam/components/modal';
|
|
19
19
|
import * as i1$1 from 'primeng/tooltip';
|
|
20
20
|
import { TooltipModule } from 'primeng/tooltip';
|
|
@@ -377,26 +377,26 @@ class EntityField {
|
|
|
377
377
|
return `flex min-w-0 ${directionClass} ${gapClass} ${alignClass}`.trimEnd();
|
|
378
378
|
}, ...(ngDevMode ? [{ debugName: "containerClass" }] : /* istanbul ignore next */ []));
|
|
379
379
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityField, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
380
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityField, isStandalone: true, selector: "mt-entity-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelIconName: { classPropertyName: "labelIconName", publicName: "labelIconName", isSignal: true, isRequired: false, transformFunction: null }, configuration: { classPropertyName: "configuration", publicName: "configuration", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block min-w-0 w-full" }, ngImport: i0, template: `
|
|
381
|
-
<div [class]="containerClass()">
|
|
382
|
-
<div [class]="contentContainerClass()">
|
|
383
|
-
<ng-content />
|
|
384
|
-
</div>
|
|
385
|
-
@if (!hideLabel()) {
|
|
386
|
-
<div [class]="labelContainerClass()">
|
|
387
|
-
@if (labelIconName(); as iconName) {
|
|
388
|
-
<mt-icon [icon]="iconName" size="xs" class="shrink-0" />
|
|
389
|
-
}
|
|
390
|
-
<span
|
|
391
|
-
class="block min-w-0 truncate"
|
|
392
|
-
mtTruncateTooltip
|
|
393
|
-
tooltipPosition="top"
|
|
394
|
-
>
|
|
395
|
-
{{ label() }}
|
|
396
|
-
</span>
|
|
397
|
-
</div>
|
|
398
|
-
}
|
|
399
|
-
</div>
|
|
380
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityField, isStandalone: true, selector: "mt-entity-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelIconName: { classPropertyName: "labelIconName", publicName: "labelIconName", isSignal: true, isRequired: false, transformFunction: null }, configuration: { classPropertyName: "configuration", publicName: "configuration", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block min-w-0 w-full" }, ngImport: i0, template: `
|
|
381
|
+
<div [class]="containerClass()">
|
|
382
|
+
<div [class]="contentContainerClass()">
|
|
383
|
+
<ng-content />
|
|
384
|
+
</div>
|
|
385
|
+
@if (!hideLabel()) {
|
|
386
|
+
<div [class]="labelContainerClass()">
|
|
387
|
+
@if (labelIconName(); as iconName) {
|
|
388
|
+
<mt-icon [icon]="iconName" size="xs" class="shrink-0" />
|
|
389
|
+
}
|
|
390
|
+
<span
|
|
391
|
+
class="block min-w-0 truncate"
|
|
392
|
+
mtTruncateTooltip
|
|
393
|
+
tooltipPosition="top"
|
|
394
|
+
>
|
|
395
|
+
{{ label() }}
|
|
396
|
+
</span>
|
|
397
|
+
</div>
|
|
398
|
+
}
|
|
399
|
+
</div>
|
|
400
400
|
`, isInline: true, dependencies: [{ kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
401
401
|
}
|
|
402
402
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityField, decorators: [{
|
|
@@ -405,26 +405,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
405
405
|
selector: 'mt-entity-field',
|
|
406
406
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
407
407
|
imports: [TruncateTooltip, Icon],
|
|
408
|
-
template: `
|
|
409
|
-
<div [class]="containerClass()">
|
|
410
|
-
<div [class]="contentContainerClass()">
|
|
411
|
-
<ng-content />
|
|
412
|
-
</div>
|
|
413
|
-
@if (!hideLabel()) {
|
|
414
|
-
<div [class]="labelContainerClass()">
|
|
415
|
-
@if (labelIconName(); as iconName) {
|
|
416
|
-
<mt-icon [icon]="iconName" size="xs" class="shrink-0" />
|
|
417
|
-
}
|
|
418
|
-
<span
|
|
419
|
-
class="block min-w-0 truncate"
|
|
420
|
-
mtTruncateTooltip
|
|
421
|
-
tooltipPosition="top"
|
|
422
|
-
>
|
|
423
|
-
{{ label() }}
|
|
424
|
-
</span>
|
|
425
|
-
</div>
|
|
426
|
-
}
|
|
427
|
-
</div>
|
|
408
|
+
template: `
|
|
409
|
+
<div [class]="containerClass()">
|
|
410
|
+
<div [class]="contentContainerClass()">
|
|
411
|
+
<ng-content />
|
|
412
|
+
</div>
|
|
413
|
+
@if (!hideLabel()) {
|
|
414
|
+
<div [class]="labelContainerClass()">
|
|
415
|
+
@if (labelIconName(); as iconName) {
|
|
416
|
+
<mt-icon [icon]="iconName" size="xs" class="shrink-0" />
|
|
417
|
+
}
|
|
418
|
+
<span
|
|
419
|
+
class="block min-w-0 truncate"
|
|
420
|
+
mtTruncateTooltip
|
|
421
|
+
tooltipPosition="top"
|
|
422
|
+
>
|
|
423
|
+
{{ label() }}
|
|
424
|
+
</span>
|
|
425
|
+
</div>
|
|
426
|
+
}
|
|
427
|
+
</div>
|
|
428
428
|
`,
|
|
429
429
|
host: {
|
|
430
430
|
class: 'block min-w-0 w-full',
|
|
@@ -439,6 +439,8 @@ class EntityText {
|
|
|
439
439
|
name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : /* istanbul ignore next */ []));
|
|
440
440
|
value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
441
441
|
displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: "displayName" }] : /* istanbul ignore next */ []));
|
|
442
|
+
hideLabel = computed(() => isEntityLabelHidden(this.data()?.configuration), ...(ngDevMode ? [{ debugName: "hideLabel" }] : /* istanbul ignore next */ []));
|
|
443
|
+
alignEnd = computed(() => isEntityAlignEnd(this.data()?.configuration), ...(ngDevMode ? [{ debugName: "alignEnd" }] : /* istanbul ignore next */ []));
|
|
442
444
|
displayValue = computed(() => {
|
|
443
445
|
const d = this.data();
|
|
444
446
|
if (d) {
|
|
@@ -446,12 +448,15 @@ class EntityText {
|
|
|
446
448
|
}
|
|
447
449
|
return displayOrPlaceholder(this.value());
|
|
448
450
|
}, ...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
451
|
+
// Most table values are plain text. Avoid an HTML parser/sanitizer round-trip
|
|
452
|
+
// per cell while preserving the existing sanitized markup/entity contract.
|
|
453
|
+
hasMarkup = computed(() => /[<&]/.test(this.displayValue()), ...(ngDevMode ? [{ debugName: "hasMarkup" }] : /* istanbul ignore next */ []));
|
|
449
454
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityText, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
450
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
455
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityText, isStandalone: true, selector: "mt-entity-text", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (hideLabel()) {\r\n <ng-container [ngTemplateOutlet]=\"content\" />\r\n} @else {\r\n <mt-entity-field\r\n [label]=\"displayName()\"\r\n [configuration]=\"data()?.configuration\"\r\n >\r\n <ng-container [ngTemplateOutlet]=\"content\" />\r\n </mt-entity-field>\r\n}\r\n<ng-template #content>\r\n <!--\r\n Two lines before the ellipsis, not one. Portfolio and project names were\r\n being cut mid-word on the Explore board (\"Smart City Infrastructure Po\u2026\"),\r\n which makes similarly-titled records indistinguishable without opening each\r\n one (finding H-06). `line-clamp-2` still ellipsises what genuinely does not\r\n fit, and `mtTruncateTooltip` reads `scrollHeight > clientHeight`, so the\r\n tooltip keeps working for the clamped case exactly as it did for the\r\n single-line one.\r\n -->\r\n <div\r\n class=\"min-w-0 max-w-full line-clamp-2 break-words text-sm font-semibold\"\r\n [class.text-end]=\"alignEnd()\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >\r\n @if (hasMarkup()) {\r\n <span [innerHTML]=\"displayValue()\"></span>\r\n } @else {\r\n {{ displayValue() }}\r\n }\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "component", type: EntityField, selector: "mt-entity-field", inputs: ["label", "labelIconName", "configuration", "gap"] }, { kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
451
456
|
}
|
|
452
457
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityText, decorators: [{
|
|
453
458
|
type: Component,
|
|
454
|
-
args: [{ selector: 'mt-entity-text', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip], template: "<mt-entity-field\r\n
|
|
459
|
+
args: [{ selector: 'mt-entity-text', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip, NgTemplateOutlet], template: "@if (hideLabel()) {\r\n <ng-container [ngTemplateOutlet]=\"content\" />\r\n} @else {\r\n <mt-entity-field\r\n [label]=\"displayName()\"\r\n [configuration]=\"data()?.configuration\"\r\n >\r\n <ng-container [ngTemplateOutlet]=\"content\" />\r\n </mt-entity-field>\r\n}\r\n<ng-template #content>\r\n <!--\r\n Two lines before the ellipsis, not one. Portfolio and project names were\r\n being cut mid-word on the Explore board (\"Smart City Infrastructure Po\u2026\"),\r\n which makes similarly-titled records indistinguishable without opening each\r\n one (finding H-06). `line-clamp-2` still ellipsises what genuinely does not\r\n fit, and `mtTruncateTooltip` reads `scrollHeight > clientHeight`, so the\r\n tooltip keeps working for the clamped case exactly as it did for the\r\n single-line one.\r\n -->\r\n <div\r\n class=\"min-w-0 max-w-full line-clamp-2 break-words text-sm font-semibold\"\r\n [class.text-end]=\"alignEnd()\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >\r\n @if (hasMarkup()) {\r\n <span [innerHTML]=\"displayValue()\"></span>\r\n } @else {\r\n {{ displayValue() }}\r\n }\r\n </div>\r\n</ng-template>\r\n" }]
|
|
455
460
|
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
|
|
456
461
|
|
|
457
462
|
/** Smallest size the text may shrink to before ellipsis takes over, in px. */
|
|
@@ -1932,11 +1937,11 @@ class EntityConnection {
|
|
|
1932
1937
|
}, ...(ngDevMode ? [{ debugName: "connection" }] : /* istanbul ignore next */ []));
|
|
1933
1938
|
displayValue = computed(() => displayOrPlaceholder(this.connection()?.display), ...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
1934
1939
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityConnection, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1935
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: EntityConnection, isStandalone: true, selector: "mt-entity-connection", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mt-entity-field\n [label]=\"displayName()\"\n [configuration]=\"data()?.configuration\"\n>\n <div\n class=\"min-w-0 max-w-full truncate text-sm font-semibold\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >\n {{ displayValue() }}\n </div>\n</mt-entity-field>\n", dependencies: [{ kind: "component", type: EntityField, selector: "mt-entity-field", inputs: ["label", "labelIconName", "configuration", "gap"] }, { kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1940
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: EntityConnection, isStandalone: true, selector: "mt-entity-connection", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mt-entity-field\r\n [label]=\"displayName()\"\r\n [configuration]=\"data()?.configuration\"\r\n>\r\n <div\r\n class=\"min-w-0 max-w-full truncate text-sm font-semibold\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >\r\n {{ displayValue() }}\r\n </div>\r\n</mt-entity-field>\r\n", dependencies: [{ kind: "component", type: EntityField, selector: "mt-entity-field", inputs: ["label", "labelIconName", "configuration", "gap"] }, { kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1936
1941
|
}
|
|
1937
1942
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityConnection, decorators: [{
|
|
1938
1943
|
type: Component,
|
|
1939
|
-
args: [{ selector: 'mt-entity-connection', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip], template: "<mt-entity-field\n [label]=\"displayName()\"\n [configuration]=\"data()?.configuration\"\n>\n <div\n class=\"min-w-0 max-w-full truncate text-sm font-semibold\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >\n {{ displayValue() }}\n </div>\n</mt-entity-field>\n" }]
|
|
1944
|
+
args: [{ selector: 'mt-entity-connection', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip], template: "<mt-entity-field\r\n [label]=\"displayName()\"\r\n [configuration]=\"data()?.configuration\"\r\n>\r\n <div\r\n class=\"min-w-0 max-w-full truncate text-sm font-semibold\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >\r\n {{ displayValue() }}\r\n </div>\r\n</mt-entity-field>\r\n" }]
|
|
1940
1945
|
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
|
|
1941
1946
|
function normalizeEntityConnection(value) {
|
|
1942
1947
|
if (value === null || value === undefined || value === '') {
|
|
@@ -1984,11 +1989,11 @@ class EntityScheduleItem {
|
|
|
1984
1989
|
}, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
1985
1990
|
emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;
|
|
1986
1991
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityScheduleItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1987
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityScheduleItem, isStandalone: true, selector: "mt-entity-schedule-item", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mt-entity-field\n [label]=\"displayName()\"\n [configuration]=\"data()?.configuration\"\n gap=\"normal\"\n>\n @if (items().length) {\n <div class=\"flex flex-wrap items-center gap-2\">\n @for (item of items(); track item.id) {\n <mt-chip [label]=\"item.name\" size=\"small\" />\n }\n </div>\n } @else {\n <span\n class=\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\"\n >\n {{ emptyLabel }}\n </span>\n }\n</mt-entity-field>\n", dependencies: [{ kind: "component", type: EntityField, selector: "mt-entity-field", inputs: ["label", "labelIconName", "configuration", "gap"] }, { kind: "component", type: Chip, selector: "mt-chip", inputs: ["label", "icon", "image", "removable", "removeIcon", "styleClass", "size"], outputs: ["onRemove", "onImageError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1992
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityScheduleItem, isStandalone: true, selector: "mt-entity-schedule-item", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mt-entity-field\r\n [label]=\"displayName()\"\r\n [configuration]=\"data()?.configuration\"\r\n gap=\"normal\"\r\n>\r\n @if (items().length) {\r\n <div class=\"flex flex-wrap items-center gap-2\">\r\n @for (item of items(); track item.id) {\r\n <mt-chip [label]=\"item.name\" size=\"small\" />\r\n }\r\n </div>\r\n } @else {\r\n <span\r\n class=\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\"\r\n >\r\n {{ emptyLabel }}\r\n </span>\r\n }\r\n</mt-entity-field>\r\n", dependencies: [{ kind: "component", type: EntityField, selector: "mt-entity-field", inputs: ["label", "labelIconName", "configuration", "gap"] }, { kind: "component", type: Chip, selector: "mt-chip", inputs: ["label", "icon", "image", "removable", "removeIcon", "styleClass", "size"], outputs: ["onRemove", "onImageError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1988
1993
|
}
|
|
1989
1994
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityScheduleItem, decorators: [{
|
|
1990
1995
|
type: Component,
|
|
1991
|
-
args: [{ selector: 'mt-entity-schedule-item', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, Chip], template: "<mt-entity-field\n [label]=\"displayName()\"\n [configuration]=\"data()?.configuration\"\n gap=\"normal\"\n>\n @if (items().length) {\n <div class=\"flex flex-wrap items-center gap-2\">\n @for (item of items(); track item.id) {\n <mt-chip [label]=\"item.name\" size=\"small\" />\n }\n </div>\n } @else {\n <span\n class=\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\"\n >\n {{ emptyLabel }}\n </span>\n }\n</mt-entity-field>\n" }]
|
|
1996
|
+
args: [{ selector: 'mt-entity-schedule-item', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, Chip], template: "<mt-entity-field\r\n [label]=\"displayName()\"\r\n [configuration]=\"data()?.configuration\"\r\n gap=\"normal\"\r\n>\r\n @if (items().length) {\r\n <div class=\"flex flex-wrap items-center gap-2\">\r\n @for (item of items(); track item.id) {\r\n <mt-chip [label]=\"item.name\" size=\"small\" />\r\n }\r\n </div>\r\n } @else {\r\n <span\r\n class=\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\"\r\n >\r\n {{ emptyLabel }}\r\n </span>\r\n }\r\n</mt-entity-field>\r\n" }]
|
|
1992
1997
|
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }] } });
|
|
1993
1998
|
|
|
1994
1999
|
/**
|