@masterteam/components 0.0.191 → 0.0.193
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/README.md +70 -70
- package/assets/common.css +1 -1
- package/assets/i18n/ar.json +6 -0
- package/assets/i18n/en.json +6 -0
- package/fesm2022/masterteam-components-business-fields.mjs +161 -1
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-client-page-menu.mjs +33 -3
- package/fesm2022/masterteam-components-client-page-menu.mjs.map +1 -1
- package/fesm2022/masterteam-components-client-page.mjs +9 -2
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
- package/fesm2022/masterteam-components-drawer.mjs +2 -2
- package/fesm2022/masterteam-components-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +90 -15
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +2 -2
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components-icon-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-location-field.mjs +2 -2
- package/fesm2022/masterteam-components-location-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-number-field.mjs +2 -2
- package/fesm2022/masterteam-components-number-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-pick-list-field.mjs +2 -2
- package/fesm2022/masterteam-components-pick-list-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-radio-cards-field.mjs +2 -2
- package/fesm2022/masterteam-components-radio-cards-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-runtime-action.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +4 -4
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-text-field.mjs +2 -2
- package/fesm2022/masterteam-components-text-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-textarea-field.mjs +2 -2
- package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-toggle-field.mjs +2 -2
- package/fesm2022/masterteam-components-toggle-field.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +18 -4
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +48 -2
- package/types/masterteam-components-client-page-menu.d.ts +5 -1
- package/types/masterteam-components-client-page.d.ts +1 -1
- package/types/masterteam-components-entities.d.ts +56 -10
- package/types/masterteam-components-table.d.ts +2 -2
- package/types/masterteam-components.d.ts +24 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { AfterViewInit, InjectionToken, Type } from '@angular/core';
|
|
3
|
-
import { LookupMatrixFieldConfig, LookupOptionItemConfig, LookupMatrixCellConfig, SchedulePredecessorFieldRuntimeContext, EntityListFieldRuntimeContext, ScheduleItemSelectorFieldRuntimeContext } from '@masterteam/components';
|
|
3
|
+
import { LookupMatrixFieldConfig, LookupOptionItemConfig, LookupMatrixCellConfig, SchedulePredecessorFieldRuntimeContext, EntityListFieldRuntimeContext, ScheduleItemSelectorFieldRuntimeContext, LookupCheckListPropertyConfig } from '@masterteam/components';
|
|
4
4
|
import { ControlValueAccessor, Validators, NgControl } from '@angular/forms';
|
|
5
5
|
import { HttpContext } from '@angular/common/http';
|
|
6
6
|
import { ColumnDef, TableAction } from '@masterteam/components/table';
|
|
@@ -401,5 +401,51 @@ declare class ScheduleItemSelectorField implements ControlValueAccessor {
|
|
|
401
401
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ScheduleItemSelectorField, "mt-schedule-item-selector-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "propertyKey": { "alias": "propertyKey"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "runtimeContext": { "alias": "runtimeContext"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
|
|
404
|
+
/** Stored entry as persisted in the property value array. */
|
|
405
|
+
interface StoredCheckListProp {
|
|
406
|
+
key: string;
|
|
407
|
+
value: unknown;
|
|
408
|
+
}
|
|
409
|
+
interface StoredCheckListEntry {
|
|
410
|
+
lookupKey: string;
|
|
411
|
+
props: StoredCheckListProp[];
|
|
412
|
+
}
|
|
413
|
+
/** Internal editable entry — prop values keyed by property key. */
|
|
414
|
+
interface CheckListEntry {
|
|
415
|
+
lookupKey: string;
|
|
416
|
+
values: Record<string, string>;
|
|
417
|
+
}
|
|
418
|
+
declare class LookupModuleCheckListField implements ControlValueAccessor {
|
|
419
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
420
|
+
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
421
|
+
readonly required: _angular_core.InputSignal<boolean>;
|
|
422
|
+
/** Lookup items the user can pick for each checklist entry. */
|
|
423
|
+
readonly lookupOptions: _angular_core.InputSignal<LookupOptionItemConfig[]>;
|
|
424
|
+
/** Module property keys/labels captured per checklist entry. */
|
|
425
|
+
readonly propertyFields: _angular_core.InputSignal<LookupCheckListPropertyConfig[]>;
|
|
426
|
+
protected readonly entries: _angular_core.WritableSignal<CheckListEntry[]>;
|
|
427
|
+
protected readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
428
|
+
ngControl: NgControl | null;
|
|
429
|
+
protected readonly isReadonly: _angular_core.Signal<boolean>;
|
|
430
|
+
private onTouched;
|
|
431
|
+
private onModelChange;
|
|
432
|
+
constructor();
|
|
433
|
+
writeValue(value: unknown): void;
|
|
434
|
+
registerOnChange(fn: (value: StoredCheckListEntry[] | null) => void): void;
|
|
435
|
+
registerOnTouched(fn: () => void): void;
|
|
436
|
+
setDisabledState(isDisabled: boolean): void;
|
|
437
|
+
protected addEntry(): void;
|
|
438
|
+
protected removeEntry(index: number): void;
|
|
439
|
+
protected setLookupKey(index: number, lookupKey: unknown): void;
|
|
440
|
+
protected setPropValue(index: number, key: string, value: string): void;
|
|
441
|
+
protected lookupLabel(lookupKey: string): string;
|
|
442
|
+
private emit;
|
|
443
|
+
private normalizeIncoming;
|
|
444
|
+
private extractEntries;
|
|
445
|
+
private coerceToString;
|
|
446
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LookupModuleCheckListField, never>;
|
|
447
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LookupModuleCheckListField, "mt-lookup-module-check-list-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "lookupOptions": { "alias": "lookupOptions"; "required": false; "isSignal": true; }; "propertyFields": { "alias": "propertyFields"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export { ENTITY_LIST_ADD_DIALOG_COMPONENT, EntityListField, LookupMatrixField, LookupModuleCheckListField, ScheduleItemSelectorField, SchedulePredecessorField, SchemaConnectionField };
|
|
405
451
|
export type { ConnectionPayload, ConnectionSource, ConnectionSourceLevel, EntityListAddDialogInputs, SchemaConnectionConfig, SourceLevelState };
|
|
@@ -6,8 +6,9 @@ interface ClientPageMenuItem {
|
|
|
6
6
|
title: string;
|
|
7
7
|
subtitle?: string;
|
|
8
8
|
color: string;
|
|
9
|
-
count
|
|
9
|
+
count?: number;
|
|
10
10
|
key: string;
|
|
11
|
+
children?: ClientPageMenuItem[];
|
|
11
12
|
}
|
|
12
13
|
declare class ClientPageMenu implements OnDestroy {
|
|
13
14
|
private syncFrameId;
|
|
@@ -21,8 +22,11 @@ declare class ClientPageMenu implements OnDestroy {
|
|
|
21
22
|
readonly menuItemClick: _angular_core.OutputEmitterRef<ClientPageMenuItem>;
|
|
22
23
|
readonly menuContainer: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
23
24
|
readonly menuItemElements: _angular_core.Signal<readonly ElementRef<HTMLElement>[]>;
|
|
25
|
+
/** Keys of currently expanded parent items (accordion: max one at a time) */
|
|
26
|
+
readonly expandedKeys: _angular_core.WritableSignal<Set<string>>;
|
|
24
27
|
constructor();
|
|
25
28
|
selectItem(item: ClientPageMenuItem): void;
|
|
29
|
+
isParentActive(item: ClientPageMenuItem): boolean;
|
|
26
30
|
ngOnDestroy(): void;
|
|
27
31
|
getAvatarStyle(color: string): Record<string, string>;
|
|
28
32
|
private queueSelectedItemSync;
|
|
@@ -44,7 +44,7 @@ declare class ClientPage implements OnDestroy {
|
|
|
44
44
|
private readonly layoutRoot;
|
|
45
45
|
/** Tracks activeItem input, overridable by user clicks */
|
|
46
46
|
private readonly selectedKey;
|
|
47
|
-
/** Currently selected menu item */
|
|
47
|
+
/** Currently selected menu item — walks children for sub-item keys */
|
|
48
48
|
readonly selectedItem: _angular_core.Signal<ClientPageMenuItem>;
|
|
49
49
|
/** Whether the initial default selection has been emitted */
|
|
50
50
|
private initialEmitted;
|
|
@@ -36,7 +36,7 @@ interface EntityListComparison {
|
|
|
36
36
|
}
|
|
37
37
|
type PropertyValueComparison = ValueComparison | EntityListComparison;
|
|
38
38
|
|
|
39
|
-
type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'Lookup' | 'Attachment' | 'Location' | 'LookupMatrix' | 'LeafDetails' | 'Connection' | 'ScheduleItemSelector';
|
|
39
|
+
type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'Lookup' | 'Attachment' | 'Location' | 'LookupMatrix' | 'LookupModuleCheckList' | 'LeafDetails' | 'Connection' | 'ScheduleItemSelector';
|
|
40
40
|
type EntityLabelPosition = 'top' | 'bottom';
|
|
41
41
|
/** Entity size – controls column span (1-24) inside a 24-column grid */
|
|
42
42
|
type EntitySize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
|
|
@@ -178,6 +178,27 @@ interface EntityConnectionValue {
|
|
|
178
178
|
display?: string;
|
|
179
179
|
[key: string]: unknown;
|
|
180
180
|
}
|
|
181
|
+
/** A single property key/value captured for a checklist entry. */
|
|
182
|
+
interface EntityLookupCheckListPropValue {
|
|
183
|
+
key: string;
|
|
184
|
+
/**
|
|
185
|
+
* Rendered value resolved by the backend. May be a string, number, boolean,
|
|
186
|
+
* object, array, or null. Objects/arrays are shown as raw JSON.
|
|
187
|
+
*/
|
|
188
|
+
value: unknown;
|
|
189
|
+
}
|
|
190
|
+
/** One checklist entry: a selected lookup item plus its captured property values. */
|
|
191
|
+
interface EntityLookupCheckListItem {
|
|
192
|
+
lookupKey: string;
|
|
193
|
+
props: EntityLookupCheckListPropValue[];
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Rendered view model for a `LookupModuleCheckList` value.
|
|
197
|
+
* The backend renderer wraps the checklist entries in `{ items: [...] }`.
|
|
198
|
+
*/
|
|
199
|
+
interface EntityLookupCheckListValue {
|
|
200
|
+
items: EntityLookupCheckListItem[];
|
|
201
|
+
}
|
|
181
202
|
interface EntityScheduleItemValue {
|
|
182
203
|
id: number;
|
|
183
204
|
name: string;
|
|
@@ -198,7 +219,7 @@ interface EntityData {
|
|
|
198
219
|
rawValue?: string;
|
|
199
220
|
order?: number;
|
|
200
221
|
propertyConfiguration?: EntityPropertyConfiguration;
|
|
201
|
-
value: string | EntityStatusValue | EntityUserValue | EntityLookupValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
222
|
+
value: string | EntityStatusValue | EntityUserValue | EntityLookupValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | EntityLookupCheckListValue | EntityLookupCheckListItem[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
202
223
|
viewType: EntityViewType;
|
|
203
224
|
type?: string;
|
|
204
225
|
configuration?: EntityConfiguration;
|
|
@@ -388,8 +409,8 @@ type AttachmentReference = EntityAttachmentItemValue | string;
|
|
|
388
409
|
declare class EntityAttachment {
|
|
389
410
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
390
411
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
391
|
-
readonly shape: _angular_core.InputSignal<"
|
|
392
|
-
readonly value: _angular_core.InputSignal<string |
|
|
412
|
+
readonly shape: _angular_core.InputSignal<"compact" | "default">;
|
|
413
|
+
readonly value: _angular_core.InputSignal<string | EntityAttachmentValue | EntityAttachmentItemValue | null | undefined>;
|
|
393
414
|
readonly endPoint: _angular_core.InputSignal<string>;
|
|
394
415
|
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
395
416
|
private readonly httpClient;
|
|
@@ -469,6 +490,31 @@ declare class EntityScheduleItem {
|
|
|
469
490
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityScheduleItem, "mt-entity-schedule-item", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
470
491
|
}
|
|
471
492
|
|
|
493
|
+
interface RenderedProp {
|
|
494
|
+
key: string;
|
|
495
|
+
value: string;
|
|
496
|
+
}
|
|
497
|
+
interface RenderedItem {
|
|
498
|
+
lookupKey: string;
|
|
499
|
+
props: RenderedProp[];
|
|
500
|
+
}
|
|
501
|
+
declare class EntityLookupModuleCheckList {
|
|
502
|
+
readonly data: _angular_core.InputSignal<EntityData>;
|
|
503
|
+
/**
|
|
504
|
+
* Normalizes the stored value into a flat list of checklist entries.
|
|
505
|
+
* Accepts both the rendered view model (`{ items: [...] }`) and the raw
|
|
506
|
+
* stored array (`[{ lookupKey, props }]`); returns `[]` for anything else.
|
|
507
|
+
*/
|
|
508
|
+
readonly items: _angular_core.Signal<RenderedItem[]>;
|
|
509
|
+
readonly hasItems: _angular_core.Signal<boolean>;
|
|
510
|
+
readonly emptyLabel: string;
|
|
511
|
+
private extractEntries;
|
|
512
|
+
private resolveLookupKey;
|
|
513
|
+
private renderPropValue;
|
|
514
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLookupModuleCheckList, never>;
|
|
515
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLookupModuleCheckList, "mt-entity-lookup-module-check-list", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
516
|
+
}
|
|
517
|
+
|
|
472
518
|
declare class EntityLeafDetails {
|
|
473
519
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
474
520
|
readonly leafValue: _angular_core.Signal<LeafDetailsEntityValue | null>;
|
|
@@ -493,7 +539,7 @@ declare function buildDisplayEntities(entities: EntityData[]): EntityData[];
|
|
|
493
539
|
|
|
494
540
|
declare class EntityPreview {
|
|
495
541
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
496
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
542
|
+
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
497
543
|
readonly comparisonKind: _angular_core.Signal<"Value" | "EntityList" | null>;
|
|
498
544
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
|
|
499
545
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreview, "mt-entity-preview", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -501,8 +547,8 @@ declare class EntityPreview {
|
|
|
501
547
|
|
|
502
548
|
declare class EntityPreviewBody {
|
|
503
549
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
504
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
505
|
-
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Number" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "Location" | "LeafDetails" | "Connection" | "ScheduleItemSelector">;
|
|
550
|
+
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
551
|
+
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Number" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "Location" | "LookupModuleCheckList" | "LeafDetails" | "Connection" | "ScheduleItemSelector">;
|
|
506
552
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;
|
|
507
553
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreviewBody, "mt-entity-preview-body", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
508
554
|
}
|
|
@@ -548,7 +594,7 @@ declare class EntitiesPreview {
|
|
|
548
594
|
private readonly transloco;
|
|
549
595
|
/** Array of entity data to display */
|
|
550
596
|
readonly entities: _angular_core.InputSignal<EntityData[]>;
|
|
551
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
597
|
+
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
552
598
|
/**
|
|
553
599
|
* Set of entity keys that should appear interactive (cursor pointer,
|
|
554
600
|
* clicks emit). Pass `new Set([...])` from a computed signal in the host
|
|
@@ -652,5 +698,5 @@ declare class EntitiesManage extends EntitiesResizeBase {
|
|
|
652
698
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntitiesManage, "mt-entities-manage", never, { "entities": { "alias": "entities"; "required": true; "isSignal": true; }; }, { "entities": "entitiesChange"; "entitiesReordered": "entitiesReordered"; "entityClicked": "entityClicked"; }, never, never, true, never>;
|
|
653
699
|
}
|
|
654
700
|
|
|
655
|
-
export { ComparisonEntityList, ComparisonValue, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityPercentage, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, buildDisplayEntities, expandLeafDetailsEntity, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue };
|
|
656
|
-
export type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupValue, EntityPercentageConfig, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, PropertyValueComparison, ValueComparison };
|
|
701
|
+
export { ComparisonEntityList, ComparisonValue, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, buildDisplayEntities, expandLeafDetailsEntity, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue };
|
|
702
|
+
export type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityPercentageConfig, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, PropertyValueComparison, ValueComparison };
|
|
@@ -239,7 +239,7 @@ declare class Table {
|
|
|
239
239
|
captionStartContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
240
240
|
captionEndContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
241
241
|
emptyContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
242
|
-
paginatorPosition: _angular_core.InputSignal<"
|
|
242
|
+
paginatorPosition: _angular_core.InputSignal<"end" | "start" | "center">;
|
|
243
243
|
alwaysShowPaginator: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
244
244
|
rowsPerPageOptions: _angular_core.InputSignal<number[]>;
|
|
245
245
|
pageSize: _angular_core.ModelSignal<number>;
|
|
@@ -248,7 +248,7 @@ declare class Table {
|
|
|
248
248
|
filterTerm: _angular_core.ModelSignal<string>;
|
|
249
249
|
groupBy: _angular_core.ModelSignal<string | null>;
|
|
250
250
|
sortField: _angular_core.WritableSignal<string | null>;
|
|
251
|
-
sortDirection: _angular_core.WritableSignal<"
|
|
251
|
+
sortDirection: _angular_core.WritableSignal<"asc" | "desc" | null>;
|
|
252
252
|
confirmationService: ConfirmationService;
|
|
253
253
|
private readonly exportService;
|
|
254
254
|
private readonly transloco;
|
|
@@ -39,7 +39,7 @@ declare const MT_DATE_FORMATS: InjectionToken<MTDateFormats>;
|
|
|
39
39
|
declare function toAngularDateFormat(format: string): string;
|
|
40
40
|
declare function provideMTDateFormats(formats: Partial<MTDateFormats>): EnvironmentProviders;
|
|
41
41
|
|
|
42
|
-
type FieldType = 'text' | 'textarea' | 'select' | 'date' | 'number' | 'slider' | 'multi-select' | 'pick-list' | 'checkbox' | 'icon-field' | 'color-picker' | 'location' | 'spacer' | 'entity-preview' | 'lookup-matrix' | string;
|
|
42
|
+
type FieldType = 'text' | 'textarea' | 'select' | 'date' | 'number' | 'slider' | 'multi-select' | 'pick-list' | 'checkbox' | 'icon-field' | 'color-picker' | 'location' | 'spacer' | 'entity-preview' | 'lookup-matrix' | 'lookup-module-check-list' | string;
|
|
43
43
|
type ValidatorType = 'required' | 'email' | 'minLength' | 'maxLength' | 'min' | 'max' | 'pattern' | 'custom';
|
|
44
44
|
type FieldRelationAction = 'enable' | 'disable' | 'show' | 'hide';
|
|
45
45
|
interface FieldRelationConfig {
|
|
@@ -572,8 +572,28 @@ declare class ScheduleItemSelectorFieldConfig extends BaseFieldConfig {
|
|
|
572
572
|
context?: HttpContext | undefined;
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
|
+
/** One configured module property the checklist captures for each entry. */
|
|
576
|
+
interface LookupCheckListPropertyConfig {
|
|
577
|
+
/** Property key persisted in `props[].key`. */
|
|
578
|
+
key: string;
|
|
579
|
+
/** Human-readable label shown next to the input. */
|
|
580
|
+
label: string;
|
|
581
|
+
}
|
|
582
|
+
declare class LookupModuleCheckListFieldConfig extends BaseFieldConfig {
|
|
583
|
+
/** Lookup items the user can pick for each checklist entry. */
|
|
584
|
+
lookupOptions: LookupOptionItemConfig[];
|
|
585
|
+
/** Module property keys/labels captured per checklist entry. */
|
|
586
|
+
propertyFields: LookupCheckListPropertyConfig[];
|
|
587
|
+
/** Raw property configuration (lookup id, scope/module id, properties). */
|
|
588
|
+
configuration: any;
|
|
589
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
590
|
+
lookupOptions?: LookupOptionItemConfig[];
|
|
591
|
+
propertyFields?: LookupCheckListPropertyConfig[];
|
|
592
|
+
configuration?: any;
|
|
593
|
+
});
|
|
594
|
+
}
|
|
575
595
|
type DynamicFieldConfig = {
|
|
576
|
-
[K in keyof (TextFieldConfig & TextareaFieldConfig & SelectFieldConfig & DateFieldConfig & NumberFieldConfig & SliderFieldConfig & MultiSelectFieldConfig & PickListFieldConfig & CheckboxFieldConfig & ToggleFieldConfig & LocationFieldConfig & ColorPickerFieldConfig & IconFieldConfig & SpacerFieldConfig & LookupMatrixFieldConfig & SchemaConnectionFieldConfig & SchedulePredecessorFieldConfig & EntityListFieldConfig & ScheduleItemSelectorFieldConfig & BaseFieldConfig)]?: (TextFieldConfig & TextareaFieldConfig & SelectFieldConfig & DateFieldConfig & NumberFieldConfig & SliderFieldConfig & MultiSelectFieldConfig & PickListFieldConfig & CheckboxFieldConfig & ToggleFieldConfig & LocationFieldConfig & ColorPickerFieldConfig & IconFieldConfig & SpacerFieldConfig & LookupMatrixFieldConfig & SchemaConnectionFieldConfig & SchedulePredecessorFieldConfig & EntityListFieldConfig & ScheduleItemSelectorFieldConfig & BaseFieldConfig)[K];
|
|
596
|
+
[K in keyof (TextFieldConfig & TextareaFieldConfig & SelectFieldConfig & DateFieldConfig & NumberFieldConfig & SliderFieldConfig & MultiSelectFieldConfig & PickListFieldConfig & CheckboxFieldConfig & ToggleFieldConfig & LocationFieldConfig & ColorPickerFieldConfig & IconFieldConfig & SpacerFieldConfig & LookupMatrixFieldConfig & SchemaConnectionFieldConfig & SchedulePredecessorFieldConfig & EntityListFieldConfig & ScheduleItemSelectorFieldConfig & LookupModuleCheckListFieldConfig & BaseFieldConfig)]?: (TextFieldConfig & TextareaFieldConfig & SelectFieldConfig & DateFieldConfig & NumberFieldConfig & SliderFieldConfig & MultiSelectFieldConfig & PickListFieldConfig & CheckboxFieldConfig & ToggleFieldConfig & LocationFieldConfig & ColorPickerFieldConfig & IconFieldConfig & SpacerFieldConfig & LookupMatrixFieldConfig & SchemaConnectionFieldConfig & SchedulePredecessorFieldConfig & EntityListFieldConfig & ScheduleItemSelectorFieldConfig & LookupModuleCheckListFieldConfig & BaseFieldConfig)[K];
|
|
577
597
|
};
|
|
578
598
|
interface LayoutConfig {
|
|
579
599
|
containerClass?: string;
|
|
@@ -928,5 +948,5 @@ declare class MTDateFormatPipe implements PipeTransform {
|
|
|
928
948
|
static ɵpipe: i0.ɵɵPipeDeclaration<MTDateFormatPipe, "mtDateFormat", true>;
|
|
929
949
|
}
|
|
930
950
|
|
|
931
|
-
export { BaseFacade, BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, CrudStateBase, DEFAULT_MT_DATE_FORMATS, DateFieldConfig, EditorFieldConfig, EntityListFieldConfig, IconFieldConfig, LocationFieldConfig, LookupMatrixFieldConfig, MTDateFormatPipe, MT_DATE_FORMATS, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, REQUEST_CONTEXT, RadioButtonFieldConfig, RadioCardsFieldConfig, ScheduleItemSelectorFieldConfig, SchedulePredecessorFieldConfig, SchemaConnectionFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, changeBackgroundColor, changePrimaryColor, changeTextColor, createCustomValidator, createEntityAdapter, endLoading, generateTailwindPalette, getContrastColor, getLightColor, handleApiRequest, isInvalid, provideMTComponents, provideMTConfirmation, provideMTDateFormats, provideMTMessages, setLoadingError, startLoading, toAngularDateFormat, wrapValidatorWithMessage };
|
|
932
|
-
export type { ApiRequestConfig, BaseFieldConstructorConfig, CrudCreateConfig, CrudDeleteConfig, CrudLoadConfig, CrudUpdateConfig, DynamicFieldConfig, DynamicFormConfig, EntityAdapter, EntityListFieldRuntimeContext, FieldRelationAction, FieldRelationConfig, FieldState, FieldType, FormulaConditionConfig, FormulaConditionMode, FormulaRuntimeMessage, FormulaRuntimeMessageCode, FormulaValidationRuleConfig, FormulaValidationSeverity, LayoutConfig, LoadingStateShape, LookupMatrixCellConfig, LookupOptionItemConfig, MTDateFormatType, MTDateFormats, MTThemeOptions, PaletteShade, QueryResult, RequestContextConfig, Response, ResponsiveColSpan, ScheduleItemSelectorFieldRuntimeContext, SchedulePredecessorFieldRuntimeContext, SectionConfig, ValidatorType };
|
|
951
|
+
export { BaseFacade, BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, CrudStateBase, DEFAULT_MT_DATE_FORMATS, DateFieldConfig, EditorFieldConfig, EntityListFieldConfig, IconFieldConfig, LocationFieldConfig, LookupMatrixFieldConfig, LookupModuleCheckListFieldConfig, MTDateFormatPipe, MT_DATE_FORMATS, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, REQUEST_CONTEXT, RadioButtonFieldConfig, RadioCardsFieldConfig, ScheduleItemSelectorFieldConfig, SchedulePredecessorFieldConfig, SchemaConnectionFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, changeBackgroundColor, changePrimaryColor, changeTextColor, createCustomValidator, createEntityAdapter, endLoading, generateTailwindPalette, getContrastColor, getLightColor, handleApiRequest, isInvalid, provideMTComponents, provideMTConfirmation, provideMTDateFormats, provideMTMessages, setLoadingError, startLoading, toAngularDateFormat, wrapValidatorWithMessage };
|
|
952
|
+
export type { ApiRequestConfig, BaseFieldConstructorConfig, CrudCreateConfig, CrudDeleteConfig, CrudLoadConfig, CrudUpdateConfig, DynamicFieldConfig, DynamicFormConfig, EntityAdapter, EntityListFieldRuntimeContext, FieldRelationAction, FieldRelationConfig, FieldState, FieldType, FormulaConditionConfig, FormulaConditionMode, FormulaRuntimeMessage, FormulaRuntimeMessageCode, FormulaValidationRuleConfig, FormulaValidationSeverity, LayoutConfig, LoadingStateShape, LookupCheckListPropertyConfig, LookupMatrixCellConfig, LookupOptionItemConfig, MTDateFormatType, MTDateFormats, MTThemeOptions, PaletteShade, QueryResult, RequestContextConfig, Response, ResponsiveColSpan, ScheduleItemSelectorFieldRuntimeContext, SchedulePredecessorFieldRuntimeContext, SectionConfig, ValidatorType };
|