@masterteam/components 0.0.308 → 0.0.310
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 +1 -1
- package/assets/i18n/en.json +1 -1
- package/fesm2022/masterteam-components-business-fields.mjs +25 -6
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +44 -44
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.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 +4 -0
|
@@ -305,26 +305,26 @@ class EntityField {
|
|
|
305
305
|
return `flex min-w-0 ${directionClass} ${gapClass} ${alignClass}`.trimEnd();
|
|
306
306
|
}, ...(ngDevMode ? [{ debugName: "containerClass" }] : /* istanbul ignore next */ []));
|
|
307
307
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityField, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
308
|
-
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: `
|
|
309
|
-
<div [class]="containerClass()">
|
|
310
|
-
<div [class]="contentContainerClass()">
|
|
311
|
-
<ng-content />
|
|
312
|
-
</div>
|
|
313
|
-
@if (!hideLabel()) {
|
|
314
|
-
<div [class]="labelContainerClass()">
|
|
315
|
-
@if (labelIconName(); as iconName) {
|
|
316
|
-
<mt-icon [icon]="iconName" size="xs" class="shrink-0" />
|
|
317
|
-
}
|
|
318
|
-
<span
|
|
319
|
-
class="block min-w-0 truncate"
|
|
320
|
-
mtTruncateTooltip
|
|
321
|
-
tooltipPosition="top"
|
|
322
|
-
>
|
|
323
|
-
{{ label() }}
|
|
324
|
-
</span>
|
|
325
|
-
</div>
|
|
326
|
-
}
|
|
327
|
-
</div>
|
|
308
|
+
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: `
|
|
309
|
+
<div [class]="containerClass()">
|
|
310
|
+
<div [class]="contentContainerClass()">
|
|
311
|
+
<ng-content />
|
|
312
|
+
</div>
|
|
313
|
+
@if (!hideLabel()) {
|
|
314
|
+
<div [class]="labelContainerClass()">
|
|
315
|
+
@if (labelIconName(); as iconName) {
|
|
316
|
+
<mt-icon [icon]="iconName" size="xs" class="shrink-0" />
|
|
317
|
+
}
|
|
318
|
+
<span
|
|
319
|
+
class="block min-w-0 truncate"
|
|
320
|
+
mtTruncateTooltip
|
|
321
|
+
tooltipPosition="top"
|
|
322
|
+
>
|
|
323
|
+
{{ label() }}
|
|
324
|
+
</span>
|
|
325
|
+
</div>
|
|
326
|
+
}
|
|
327
|
+
</div>
|
|
328
328
|
`, isInline: true, dependencies: [{ kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
329
329
|
}
|
|
330
330
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityField, decorators: [{
|
|
@@ -333,26 +333,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
333
333
|
selector: 'mt-entity-field',
|
|
334
334
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
335
335
|
imports: [TruncateTooltip, Icon],
|
|
336
|
-
template: `
|
|
337
|
-
<div [class]="containerClass()">
|
|
338
|
-
<div [class]="contentContainerClass()">
|
|
339
|
-
<ng-content />
|
|
340
|
-
</div>
|
|
341
|
-
@if (!hideLabel()) {
|
|
342
|
-
<div [class]="labelContainerClass()">
|
|
343
|
-
@if (labelIconName(); as iconName) {
|
|
344
|
-
<mt-icon [icon]="iconName" size="xs" class="shrink-0" />
|
|
345
|
-
}
|
|
346
|
-
<span
|
|
347
|
-
class="block min-w-0 truncate"
|
|
348
|
-
mtTruncateTooltip
|
|
349
|
-
tooltipPosition="top"
|
|
350
|
-
>
|
|
351
|
-
{{ label() }}
|
|
352
|
-
</span>
|
|
353
|
-
</div>
|
|
354
|
-
}
|
|
355
|
-
</div>
|
|
336
|
+
template: `
|
|
337
|
+
<div [class]="containerClass()">
|
|
338
|
+
<div [class]="contentContainerClass()">
|
|
339
|
+
<ng-content />
|
|
340
|
+
</div>
|
|
341
|
+
@if (!hideLabel()) {
|
|
342
|
+
<div [class]="labelContainerClass()">
|
|
343
|
+
@if (labelIconName(); as iconName) {
|
|
344
|
+
<mt-icon [icon]="iconName" size="xs" class="shrink-0" />
|
|
345
|
+
}
|
|
346
|
+
<span
|
|
347
|
+
class="block min-w-0 truncate"
|
|
348
|
+
mtTruncateTooltip
|
|
349
|
+
tooltipPosition="top"
|
|
350
|
+
>
|
|
351
|
+
{{ label() }}
|
|
352
|
+
</span>
|
|
353
|
+
</div>
|
|
354
|
+
}
|
|
355
|
+
</div>
|
|
356
356
|
`,
|
|
357
357
|
host: {
|
|
358
358
|
class: 'block min-w-0 w-full',
|
|
@@ -1535,11 +1535,11 @@ class EntityConnection {
|
|
|
1535
1535
|
}, ...(ngDevMode ? [{ debugName: "connection" }] : /* istanbul ignore next */ []));
|
|
1536
1536
|
displayValue = computed(() => displayOrPlaceholder(this.connection()?.display), ...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
1537
1537
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityConnection, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1538
|
-
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\
|
|
1538
|
+
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 });
|
|
1539
1539
|
}
|
|
1540
1540
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityConnection, decorators: [{
|
|
1541
1541
|
type: Component,
|
|
1542
|
-
args: [{ selector: 'mt-entity-connection', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip], template: "<mt-entity-field\
|
|
1542
|
+
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" }]
|
|
1543
1543
|
}], 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 }] }] } });
|
|
1544
1544
|
function normalizeEntityConnection(value) {
|
|
1545
1545
|
if (value === null || value === undefined || value === '') {
|
|
@@ -1587,11 +1587,11 @@ class EntityScheduleItem {
|
|
|
1587
1587
|
}, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
1588
1588
|
emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;
|
|
1589
1589
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityScheduleItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1590
|
-
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\
|
|
1590
|
+
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 });
|
|
1591
1591
|
}
|
|
1592
1592
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityScheduleItem, decorators: [{
|
|
1593
1593
|
type: Component,
|
|
1594
|
-
args: [{ selector: 'mt-entity-schedule-item', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, Chip], template: "<mt-entity-field\
|
|
1594
|
+
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" }]
|
|
1595
1595
|
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }] } });
|
|
1596
1596
|
|
|
1597
1597
|
/**
|