@masterteam/components 0.0.189 → 0.0.191
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 +4 -0
- package/assets/i18n/en.json +4 -0
- package/fesm2022/masterteam-components-business-fields.mjs +178 -3
- 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 +30 -3
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +20 -1
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +63 -2
- package/types/masterteam-components-chip.d.ts +3 -1
- package/types/masterteam-components-entities.d.ts +36 -9
- package/types/masterteam-components.d.ts +39 -3
|
@@ -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 } from '@masterteam/components';
|
|
3
|
+
import { LookupMatrixFieldConfig, LookupOptionItemConfig, LookupMatrixCellConfig, SchedulePredecessorFieldRuntimeContext, EntityListFieldRuntimeContext, ScheduleItemSelectorFieldRuntimeContext } 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';
|
|
@@ -340,5 +340,66 @@ interface EntityListAddDialogInputs {
|
|
|
340
340
|
*/
|
|
341
341
|
declare const ENTITY_LIST_ADD_DIALOG_COMPONENT: InjectionToken<Type<unknown>>;
|
|
342
342
|
|
|
343
|
-
|
|
343
|
+
/** One picker option — only the name is shown. */
|
|
344
|
+
interface ScheduleItemOption {
|
|
345
|
+
label: string;
|
|
346
|
+
value: number;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Runtime picker for `ScheduleItemSelector` properties.
|
|
350
|
+
*
|
|
351
|
+
* Backend-filtered: the full option list comes from
|
|
352
|
+
* `GET forms/options/{propertyKey}` (which applies the configured rule, e.g.
|
|
353
|
+
* `DeliverableAcceptance.AvailableDeliverables`). All available items are
|
|
354
|
+
* loaded up front and rendered with the standard `mt-select-field` /
|
|
355
|
+
* `mt-multi-select-field`; the field shows only the item name.
|
|
356
|
+
*
|
|
357
|
+
* The control value is always a numeric id array (`valueMode = "IdArray"`).
|
|
358
|
+
* In `Single` mode only one id may be selected.
|
|
359
|
+
*/
|
|
360
|
+
declare class ScheduleItemSelectorField implements ControlValueAccessor {
|
|
361
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
362
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
363
|
+
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
364
|
+
readonly required: _angular_core.InputSignal<boolean>;
|
|
365
|
+
readonly propertyKey: _angular_core.InputSignal<string>;
|
|
366
|
+
readonly selectionMode: _angular_core.InputSignal<"Single" | "Multi">;
|
|
367
|
+
readonly runtimeContext: _angular_core.InputSignal<ScheduleItemSelectorFieldRuntimeContext | null>;
|
|
368
|
+
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
369
|
+
/** Full list of available deliverables (loaded once). */
|
|
370
|
+
readonly options: _angular_core.WritableSignal<ScheduleItemOption[]>;
|
|
371
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
372
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
373
|
+
/** Selected ids — the control value (`number[]`). */
|
|
374
|
+
readonly value: _angular_core.WritableSignal<number[]>;
|
|
375
|
+
readonly isMultiple: _angular_core.Signal<boolean>;
|
|
376
|
+
/** Single-mode ngModel value (a scalar id, not an array). */
|
|
377
|
+
readonly singleValue: _angular_core.Signal<number>;
|
|
378
|
+
ngControl: NgControl | null;
|
|
379
|
+
onTouched: () => void;
|
|
380
|
+
onModelChange: (value: number[] | null) => void;
|
|
381
|
+
private readonly http;
|
|
382
|
+
private readonly destroyRef;
|
|
383
|
+
/** Query signature already loaded — prevents duplicate full loads. */
|
|
384
|
+
private loadedKey;
|
|
385
|
+
constructor();
|
|
386
|
+
onMultiChange(ids: number[] | null): void;
|
|
387
|
+
onSingleChange(id: number | null): void;
|
|
388
|
+
writeValue(value: unknown): void;
|
|
389
|
+
registerOnChange(fn: (value: number[] | null) => void): void;
|
|
390
|
+
registerOnTouched(fn: () => void): void;
|
|
391
|
+
setDisabledState(disabled: boolean): void;
|
|
392
|
+
private loadAllOptions;
|
|
393
|
+
private fetchPage;
|
|
394
|
+
private buildParams;
|
|
395
|
+
private mapOptions;
|
|
396
|
+
private buildContextKey;
|
|
397
|
+
private queryKey;
|
|
398
|
+
private emit;
|
|
399
|
+
private normalizeIds;
|
|
400
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScheduleItemSelectorField, never>;
|
|
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
|
+
}
|
|
403
|
+
|
|
404
|
+
export { ENTITY_LIST_ADD_DIALOG_COMPONENT, EntityListField, LookupMatrixField, ScheduleItemSelectorField, SchedulePredecessorField, SchemaConnectionField };
|
|
344
405
|
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' | '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,17 @@ interface EntityConnectionValue {
|
|
|
178
178
|
display?: string;
|
|
179
179
|
[key: string]: unknown;
|
|
180
180
|
}
|
|
181
|
+
interface EntityScheduleItemValue {
|
|
182
|
+
id: number;
|
|
183
|
+
name: string;
|
|
184
|
+
levelDataId?: number;
|
|
185
|
+
parentId?: number | null;
|
|
186
|
+
status?: string | null;
|
|
187
|
+
plannedStart?: string | null;
|
|
188
|
+
plannedFinish?: string | null;
|
|
189
|
+
moduleKey?: string;
|
|
190
|
+
itemType?: string;
|
|
191
|
+
}
|
|
181
192
|
interface EntityData {
|
|
182
193
|
id?: number;
|
|
183
194
|
propertyId?: number;
|
|
@@ -187,7 +198,7 @@ interface EntityData {
|
|
|
187
198
|
rawValue?: string;
|
|
188
199
|
order?: number;
|
|
189
200
|
propertyConfiguration?: EntityPropertyConfiguration;
|
|
190
|
-
value: string | EntityStatusValue | EntityUserValue | EntityLookupValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
201
|
+
value: string | EntityStatusValue | EntityUserValue | EntityLookupValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
191
202
|
viewType: EntityViewType;
|
|
192
203
|
type?: string;
|
|
193
204
|
configuration?: EntityConfiguration;
|
|
@@ -377,7 +388,7 @@ type AttachmentReference = EntityAttachmentItemValue | string;
|
|
|
377
388
|
declare class EntityAttachment {
|
|
378
389
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
379
390
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
380
|
-
readonly shape: _angular_core.InputSignal<"
|
|
391
|
+
readonly shape: _angular_core.InputSignal<"default" | "compact">;
|
|
381
392
|
readonly value: _angular_core.InputSignal<string | EntityAttachmentItemValue | EntityAttachmentValue | null | undefined>;
|
|
382
393
|
readonly endPoint: _angular_core.InputSignal<string>;
|
|
383
394
|
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
@@ -442,6 +453,22 @@ declare class EntityConnection {
|
|
|
442
453
|
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
454
|
}
|
|
444
455
|
|
|
456
|
+
/**
|
|
457
|
+
* Preview renderer for `ScheduleItemSelector` properties.
|
|
458
|
+
*
|
|
459
|
+
* The value is the array of resolved schedule items returned by runtime
|
|
460
|
+
* rendering (`{ id, name, status, ... }`); each one is shown as a chip.
|
|
461
|
+
*/
|
|
462
|
+
declare class EntityScheduleItem {
|
|
463
|
+
/** Full entity data object */
|
|
464
|
+
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
465
|
+
readonly displayName: _angular_core.Signal<string>;
|
|
466
|
+
readonly items: _angular_core.Signal<EntityScheduleItemValue[]>;
|
|
467
|
+
readonly emptyLabel = "_";
|
|
468
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityScheduleItem, never>;
|
|
469
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityScheduleItem, "mt-entity-schedule-item", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
470
|
+
}
|
|
471
|
+
|
|
445
472
|
declare class EntityLeafDetails {
|
|
446
473
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
447
474
|
readonly leafValue: _angular_core.Signal<LeafDetailsEntityValue | null>;
|
|
@@ -466,7 +493,7 @@ declare function buildDisplayEntities(entities: EntityData[]): EntityData[];
|
|
|
466
493
|
|
|
467
494
|
declare class EntityPreview {
|
|
468
495
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
469
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
496
|
+
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
470
497
|
readonly comparisonKind: _angular_core.Signal<"Value" | "EntityList" | null>;
|
|
471
498
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
|
|
472
499
|
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>;
|
|
@@ -474,8 +501,8 @@ declare class EntityPreview {
|
|
|
474
501
|
|
|
475
502
|
declare class EntityPreviewBody {
|
|
476
503
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
477
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
478
|
-
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Number" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "Location" | "LeafDetails" | "Connection">;
|
|
504
|
+
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
505
|
+
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Number" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "Location" | "LeafDetails" | "Connection" | "ScheduleItemSelector">;
|
|
479
506
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;
|
|
480
507
|
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
508
|
}
|
|
@@ -521,7 +548,7 @@ declare class EntitiesPreview {
|
|
|
521
548
|
private readonly transloco;
|
|
522
549
|
/** Array of entity data to display */
|
|
523
550
|
readonly entities: _angular_core.InputSignal<EntityData[]>;
|
|
524
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
551
|
+
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
525
552
|
/**
|
|
526
553
|
* Set of entity keys that should appear interactive (cursor pointer,
|
|
527
554
|
* clicks emit). Pass `new Set([...])` from a computed signal in the host
|
|
@@ -625,5 +652,5 @@ declare class EntitiesManage extends EntitiesResizeBase {
|
|
|
625
652
|
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
653
|
}
|
|
627
654
|
|
|
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 };
|
|
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 };
|
|
@@ -536,8 +536,44 @@ declare class EntityListFieldConfig extends BaseFieldConfig {
|
|
|
536
536
|
context?: HttpContext | undefined;
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
|
+
interface ScheduleItemSelectorFieldRuntimeContext {
|
|
540
|
+
/** Current level id — used to build the options `contextKey` (`Level:{levelId}`). */
|
|
541
|
+
levelId?: number | string | null;
|
|
542
|
+
/**
|
|
543
|
+
* Module schema id of the form that owns the selector property — the
|
|
544
|
+
* `Module:{moduleId}` segment of the options `contextKey`. For Deliverable
|
|
545
|
+
* Acceptance this is the Deliverable Acceptance module schema id, NOT the
|
|
546
|
+
* target schedule module id.
|
|
547
|
+
*/
|
|
548
|
+
moduleId?: number | string | null;
|
|
549
|
+
/** Current workspace instance id (`levelDataId` query param). */
|
|
550
|
+
levelDataId?: number | string | null;
|
|
551
|
+
/**
|
|
552
|
+
* Record being edited (`ownerRecordId` query param). Lets the backend keep
|
|
553
|
+
* the current record's existing selections valid in edit mode.
|
|
554
|
+
*/
|
|
555
|
+
ownerRecordId?: number | string | null;
|
|
556
|
+
}
|
|
557
|
+
declare class ScheduleItemSelectorFieldConfig extends BaseFieldConfig {
|
|
558
|
+
/** Property key — used in the options endpoint route `forms/options/{propertyKey}`. */
|
|
559
|
+
propertyKey: string;
|
|
560
|
+
/** `Single` renders a single-select picker, `Multi` a multi-select picker. */
|
|
561
|
+
selectionMode: 'Single' | 'Multi';
|
|
562
|
+
/** Raw property configuration (selectionMode, scheduleModuleKey, etc.). */
|
|
563
|
+
configuration: any;
|
|
564
|
+
/** Runtime ids needed to call the options endpoint. */
|
|
565
|
+
runtimeContext: ScheduleItemSelectorFieldRuntimeContext | null;
|
|
566
|
+
context: HttpContext | undefined;
|
|
567
|
+
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
568
|
+
propertyKey?: string;
|
|
569
|
+
selectionMode?: 'Single' | 'Multi';
|
|
570
|
+
configuration?: any;
|
|
571
|
+
runtimeContext?: ScheduleItemSelectorFieldRuntimeContext | null;
|
|
572
|
+
context?: HttpContext | undefined;
|
|
573
|
+
});
|
|
574
|
+
}
|
|
539
575
|
type DynamicFieldConfig = {
|
|
540
|
-
[K in keyof (TextFieldConfig & TextareaFieldConfig & SelectFieldConfig & DateFieldConfig & NumberFieldConfig & SliderFieldConfig & MultiSelectFieldConfig & PickListFieldConfig & CheckboxFieldConfig & ToggleFieldConfig & LocationFieldConfig & ColorPickerFieldConfig & IconFieldConfig & SpacerFieldConfig & LookupMatrixFieldConfig & SchemaConnectionFieldConfig & SchedulePredecessorFieldConfig & EntityListFieldConfig & BaseFieldConfig)]?: (TextFieldConfig & TextareaFieldConfig & SelectFieldConfig & DateFieldConfig & NumberFieldConfig & SliderFieldConfig & MultiSelectFieldConfig & PickListFieldConfig & CheckboxFieldConfig & ToggleFieldConfig & LocationFieldConfig & ColorPickerFieldConfig & IconFieldConfig & SpacerFieldConfig & LookupMatrixFieldConfig & SchemaConnectionFieldConfig & SchedulePredecessorFieldConfig & EntityListFieldConfig & BaseFieldConfig)[K];
|
|
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];
|
|
541
577
|
};
|
|
542
578
|
interface LayoutConfig {
|
|
543
579
|
containerClass?: string;
|
|
@@ -892,5 +928,5 @@ declare class MTDateFormatPipe implements PipeTransform {
|
|
|
892
928
|
static ɵpipe: i0.ɵɵPipeDeclaration<MTDateFormatPipe, "mtDateFormat", true>;
|
|
893
929
|
}
|
|
894
930
|
|
|
895
|
-
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, 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 };
|
|
896
|
-
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, SchedulePredecessorFieldRuntimeContext, SectionConfig, ValidatorType };
|
|
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 };
|