@masterteam/components 0.0.256 → 0.0.258
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 +357 -357
- package/fesm2022/masterteam-components-entities.mjs +20 -14
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +120 -30
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-entities.d.ts +12 -17
- package/types/masterteam-components-table.d.ts +19 -3
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>;
|
|
@@ -590,7 +585,7 @@ type AttachmentReference = EntityAttachmentItemValue | string;
|
|
|
590
585
|
declare class EntityAttachment {
|
|
591
586
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
592
587
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
593
|
-
readonly shape: _angular_core.InputSignal<"
|
|
588
|
+
readonly shape: _angular_core.InputSignal<"default" | "compact">;
|
|
594
589
|
readonly value: _angular_core.InputSignal<string | EntityAttachmentItemValue | EntityAttachmentValue | null | undefined>;
|
|
595
590
|
readonly endPoint: _angular_core.InputSignal<string>;
|
|
596
591
|
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
@@ -801,7 +796,7 @@ declare function getEntitySectionTitle(section: EntityData | null | undefined, l
|
|
|
801
796
|
|
|
802
797
|
declare class EntityPreview {
|
|
803
798
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
804
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
799
|
+
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
805
800
|
readonly comparisonKind: _angular_core.Signal<"Value" | "EntityList" | null>;
|
|
806
801
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
|
|
807
802
|
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>;
|
|
@@ -809,7 +804,7 @@ declare class EntityPreview {
|
|
|
809
804
|
|
|
810
805
|
declare class EntityPreviewBody {
|
|
811
806
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
812
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
807
|
+
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
813
808
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;
|
|
814
809
|
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>;
|
|
815
810
|
}
|
|
@@ -855,7 +850,7 @@ declare class EntitiesPreview {
|
|
|
855
850
|
private readonly transloco;
|
|
856
851
|
/** Array of entity data to display */
|
|
857
852
|
readonly entities: _angular_core.InputSignal<EntityData[]>;
|
|
858
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
853
|
+
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
859
854
|
/**
|
|
860
855
|
* Soft "stack every field full-width when the host is narrower than the
|
|
861
856
|
* 24-column grid reads well" behavior (the ≤400px container-query fallback,
|
|
@@ -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 };
|
|
@@ -771,23 +771,36 @@ declare class TableExportService {
|
|
|
771
771
|
private static readonly PRINT_ROOT_CLASS;
|
|
772
772
|
private static readonly PRINT_REGION_CLASS;
|
|
773
773
|
private static readonly PRINT_STYLE_ID;
|
|
774
|
+
private static readonly MAX_PRINT_COLUMNS_PER_TABLE;
|
|
775
|
+
private static readonly RTL_LANGUAGES;
|
|
776
|
+
private readonly transloco;
|
|
774
777
|
private static readonly PRINT_CSS;
|
|
775
778
|
exportToExcel(config: TableExportConfig): void;
|
|
779
|
+
private buildExcelWorkbook;
|
|
776
780
|
printPdf(config: TablePrintConfig): void;
|
|
777
781
|
private ensurePrintStyles;
|
|
778
782
|
private getExportableColumns;
|
|
783
|
+
private getExcelExportableColumns;
|
|
779
784
|
/**
|
|
780
785
|
* Resolves a single cell's exported/printed scalar. A column-level
|
|
781
|
-
* `exportValue` always wins;
|
|
782
|
-
* resolver
|
|
786
|
+
* `exportValue` always wins; everything else defers to the caller-supplied
|
|
787
|
+
* resolver. The caller owns entity formatting too so Date/DateTime/Time can
|
|
788
|
+
* use the configured MT formats instead of leaking raw ISO strings.
|
|
783
789
|
*/
|
|
784
790
|
private resolveCellValue;
|
|
785
791
|
/**
|
|
786
792
|
* Produces rows keyed by column label (Excel header row).
|
|
787
|
-
*
|
|
793
|
+
* Values already passed through the caller's type-aware resolver.
|
|
788
794
|
*/
|
|
789
795
|
private buildLabeledRows;
|
|
790
796
|
private buildPrintRegion;
|
|
797
|
+
private buildPrintTable;
|
|
798
|
+
/**
|
|
799
|
+
* A browser cannot paginate a table horizontally. Keep wide exports inside
|
|
800
|
+
* the printable page by splitting them into readable tables and repeating
|
|
801
|
+
* the first (normally identifying) column in every continuation group.
|
|
802
|
+
*/
|
|
803
|
+
private getPrintColumnGroups;
|
|
791
804
|
/**
|
|
792
805
|
* Normalises a resolved cell value for export. Rich-text columns surface their
|
|
793
806
|
* value as an HTML string, so string cells are stripped to plain text (tags
|
|
@@ -795,6 +808,9 @@ declare class TableExportService {
|
|
|
795
808
|
* cell. Non-string values (numbers, booleans, dates) pass through untouched.
|
|
796
809
|
*/
|
|
797
810
|
private toPlainExportValue;
|
|
811
|
+
private configureWorksheet;
|
|
812
|
+
private isArabicExport;
|
|
813
|
+
private isRtlExport;
|
|
798
814
|
private normalizeFilename;
|
|
799
815
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableExportService, never>;
|
|
800
816
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableExportService>;
|