@masterteam/components 0.0.257 → 0.0.259
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 -0
- package/assets/i18n/en.json +358 -357
- package/fesm2022/masterteam-components-entities.mjs +20 -14
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-entities.d.ts +8 -13
- package/types/masterteam-components-table.d.ts +2 -2
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@ type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime'
|
|
|
43
43
|
* backend stores and returns the same shape as `DateTime`); only the
|
|
44
44
|
* rendering and the picker are narrowed to the clock time.
|
|
45
45
|
*/
|
|
46
|
-
| 'Time' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'MultiUser' | 'Lookup'
|
|
46
|
+
| 'Time' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'MultiUser' | 'Lookup' | 'LookupMultiSelect'
|
|
47
47
|
/**
|
|
48
48
|
* Calculated, read-only lookup resolved by the backend to the schema phase
|
|
49
49
|
* gate the record currently sits on. Never editable at runtime.
|
|
@@ -142,6 +142,7 @@ interface EntityLookupValue {
|
|
|
142
142
|
color: string;
|
|
143
143
|
description?: string;
|
|
144
144
|
}
|
|
145
|
+
type EntityMultiLookupValue = EntityLookupValue[];
|
|
145
146
|
/**
|
|
146
147
|
* A `PhaseGate` value — the schema phase gate the record currently sits on.
|
|
147
148
|
*
|
|
@@ -316,7 +317,7 @@ interface EntityData {
|
|
|
316
317
|
* props have no label and no view type to render with.
|
|
317
318
|
*/
|
|
318
319
|
nestedProperties?: EntityNestedPropertyMeta[];
|
|
319
|
-
value: string | EntityStatusValue | EntityUserValue | EntityMultiUserValue | EntityLookupValue | EntityPhaseGateValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | EntityLookupCheckListValue | EntityLookupCheckListItem[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
320
|
+
value: string | EntityStatusValue | EntityUserValue | EntityMultiUserValue | EntityLookupValue | EntityMultiLookupValue | EntityPhaseGateValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | EntityLookupCheckListValue | EntityLookupCheckListItem[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
320
321
|
viewType: EntityViewType;
|
|
321
322
|
type?: string;
|
|
322
323
|
configuration?: EntityConfiguration;
|
|
@@ -516,18 +517,12 @@ declare class EntityLookup {
|
|
|
516
517
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
517
518
|
/** Individual inputs (used when data is not provided) */
|
|
518
519
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
519
|
-
readonly value: _angular_core.InputSignal<EntityLookupValue | undefined>;
|
|
520
|
+
readonly value: _angular_core.InputSignal<EntityLookupValue | EntityMultiLookupValue | undefined>;
|
|
520
521
|
readonly displayName: _angular_core.Signal<string>;
|
|
521
|
-
readonly
|
|
522
|
-
|
|
523
|
-
color?: undefined;
|
|
524
|
-
backgroundColor?: undefined;
|
|
525
|
-
} | {
|
|
526
|
-
color: string;
|
|
527
|
-
backgroundColor: string;
|
|
528
|
-
}>;
|
|
522
|
+
readonly lookupValues: _angular_core.Signal<EntityMultiLookupValue>;
|
|
523
|
+
lookupBadgeStyle(lookup: EntityLookupValue): Record<string, string>;
|
|
529
524
|
readonly emptyLabel = "_";
|
|
530
|
-
|
|
525
|
+
lookupLabel(lookup: EntityLookupValue): string;
|
|
531
526
|
private hexToRgba;
|
|
532
527
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLookup, never>;
|
|
533
528
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLookup, "mt-entity-lookup", 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>;
|
|
@@ -988,4 +983,4 @@ declare class EntitiesManage extends EntitiesResizeBase {
|
|
|
988
983
|
}
|
|
989
984
|
|
|
990
985
|
export { ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildDisplayEntities, buildSectionKey, expandLeafDetailsEntity, getEntitySectionTitle, groupEntitiesIntoSections, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isSectionKey, matchesPercentageColorRule, resolveLocalizedLabel, resolvePercentageColor };
|
|
991
|
-
export type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, PercentageColorRule, PercentageColorSource, PropertyValueComparison, ValueComparison };
|
|
986
|
+
export type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, PercentageColorRule, PercentageColorSource, PropertyValueComparison, ValueComparison };
|
|
@@ -320,7 +320,7 @@ declare class Table {
|
|
|
320
320
|
captionStartContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
321
321
|
captionEndContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
322
322
|
emptyContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
323
|
-
paginatorPosition: _angular_core.InputSignal<"
|
|
323
|
+
paginatorPosition: _angular_core.InputSignal<"center" | "end" | "start">;
|
|
324
324
|
alwaysShowPaginator: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
325
325
|
rowsPerPageOptions: _angular_core.InputSignal<number[]>;
|
|
326
326
|
pageSize: _angular_core.ModelSignal<number>;
|
|
@@ -334,7 +334,7 @@ declare class Table {
|
|
|
334
334
|
* the query it actually sent.
|
|
335
335
|
*/
|
|
336
336
|
sortField: _angular_core.ModelSignal<string | null>;
|
|
337
|
-
sortDirection: _angular_core.ModelSignal<"
|
|
337
|
+
sortDirection: _angular_core.ModelSignal<"desc" | "asc" | null>;
|
|
338
338
|
confirmationService: ConfirmationService;
|
|
339
339
|
private readonly exportService;
|
|
340
340
|
private readonly transloco;
|