@masterteam/components 0.0.190 → 0.0.192
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/common.css +2 -2
- 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-chip.mjs +8 -4
- package/fesm2022/masterteam-components-chip.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +105 -3
- package/fesm2022/masterteam-components-entities.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.mjs +15 -1
- 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-chip.d.ts +3 -1
- package/types/masterteam-components-entities.d.ts +78 -5
- 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 };
|
|
@@ -8,12 +8,14 @@ declare class Chip {
|
|
|
8
8
|
readonly removable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
9
9
|
readonly removeIcon: _angular_core.InputSignal<MTIcon>;
|
|
10
10
|
readonly styleClass: _angular_core.InputSignal<string>;
|
|
11
|
+
readonly size: _angular_core.InputSignal<"small" | "normal">;
|
|
12
|
+
readonly chipClass: _angular_core.Signal<string>;
|
|
11
13
|
onRemove: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
12
14
|
onImageError: _angular_core.OutputEmitterRef<Event>;
|
|
13
15
|
onChipRemove(event: MouseEvent): void;
|
|
14
16
|
onChipImageError(event: Event): void;
|
|
15
17
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Chip, never>;
|
|
16
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Chip, "mt-chip", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "removeIcon": { "alias": "removeIcon"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, { "onRemove": "onRemove"; "onImageError": "onImageError"; }, never, never, true, never>;
|
|
18
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Chip, "mt-chip", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "removeIcon": { "alias": "removeIcon"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "onRemove": "onRemove"; "onImageError": "onImageError"; }, never, never, true, never>;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export { Chip };
|
|
@@ -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';
|
|
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,38 @@ 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
|
+
}
|
|
202
|
+
interface EntityScheduleItemValue {
|
|
203
|
+
id: number;
|
|
204
|
+
name: string;
|
|
205
|
+
levelDataId?: number;
|
|
206
|
+
parentId?: number | null;
|
|
207
|
+
status?: string | null;
|
|
208
|
+
plannedStart?: string | null;
|
|
209
|
+
plannedFinish?: string | null;
|
|
210
|
+
moduleKey?: string;
|
|
211
|
+
itemType?: string;
|
|
212
|
+
}
|
|
181
213
|
interface EntityData {
|
|
182
214
|
id?: number;
|
|
183
215
|
propertyId?: number;
|
|
@@ -187,7 +219,7 @@ interface EntityData {
|
|
|
187
219
|
rawValue?: string;
|
|
188
220
|
order?: number;
|
|
189
221
|
propertyConfiguration?: EntityPropertyConfiguration;
|
|
190
|
-
value: string | EntityStatusValue | EntityUserValue | EntityLookupValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
222
|
+
value: string | EntityStatusValue | EntityUserValue | EntityLookupValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | EntityLookupCheckListValue | EntityLookupCheckListItem[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
191
223
|
viewType: EntityViewType;
|
|
192
224
|
type?: string;
|
|
193
225
|
configuration?: EntityConfiguration;
|
|
@@ -442,6 +474,47 @@ declare class EntityConnection {
|
|
|
442
474
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityConnection, "mt-entity-connection", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
443
475
|
}
|
|
444
476
|
|
|
477
|
+
/**
|
|
478
|
+
* Preview renderer for `ScheduleItemSelector` properties.
|
|
479
|
+
*
|
|
480
|
+
* The value is the array of resolved schedule items returned by runtime
|
|
481
|
+
* rendering (`{ id, name, status, ... }`); each one is shown as a chip.
|
|
482
|
+
*/
|
|
483
|
+
declare class EntityScheduleItem {
|
|
484
|
+
/** Full entity data object */
|
|
485
|
+
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
486
|
+
readonly displayName: _angular_core.Signal<string>;
|
|
487
|
+
readonly items: _angular_core.Signal<EntityScheduleItemValue[]>;
|
|
488
|
+
readonly emptyLabel = "_";
|
|
489
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityScheduleItem, never>;
|
|
490
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityScheduleItem, "mt-entity-schedule-item", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
491
|
+
}
|
|
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
|
+
|
|
445
518
|
declare class EntityLeafDetails {
|
|
446
519
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
447
520
|
readonly leafValue: _angular_core.Signal<LeafDetailsEntityValue | null>;
|
|
@@ -475,7 +548,7 @@ declare class EntityPreview {
|
|
|
475
548
|
declare class EntityPreviewBody {
|
|
476
549
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
477
550
|
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
478
|
-
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Number" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "Location" | "LeafDetails" | "Connection">;
|
|
551
|
+
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Number" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "Location" | "LookupModuleCheckList" | "LeafDetails" | "Connection" | "ScheduleItemSelector">;
|
|
479
552
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;
|
|
480
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>;
|
|
481
554
|
}
|
|
@@ -625,5 +698,5 @@ declare class EntitiesManage extends EntitiesResizeBase {
|
|
|
625
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>;
|
|
626
699
|
}
|
|
627
700
|
|
|
628
|
-
export { ComparisonEntityList, ComparisonValue, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityPercentage, EntityPreview, EntityPreviewBody, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, buildDisplayEntities, expandLeafDetailsEntity, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue };
|
|
629
|
-
export type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupValue, EntityPercentageConfig, EntityPropertyConfiguration, EntityResizeEvent, 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 };
|
|
@@ -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 };
|