@masterteam/dashboard-builder 0.0.26 → 0.0.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/dashboard-builder",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -21,7 +21,7 @@
21
21
  "primeng": "21.1.5",
22
22
  "rxjs": "^7.8.2",
23
23
  "tailwindcss": "^4.2.2",
24
- "@masterteam/components": "^0.0.145",
24
+ "@masterteam/components": "^0.0.157",
25
25
  "@masterteam/icons": "^0.0.14"
26
26
  },
27
27
  "dependencies": {
@@ -1865,44 +1865,20 @@ declare class EntityInfoComponent {
1865
1865
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityInfoComponent, "mt-entity-info", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "displayType": { "alias": "displayType"; "required": false; "isSignal": true; }; "extraInfoData": { "alias": "extraInfoData"; "required": false; "isSignal": true; }; "limitWords": { "alias": "limitWords"; "required": false; "isSignal": true; }; "customClass": { "alias": "customClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1866
1866
  }
1867
1867
 
1868
- interface DisplayAreaItem {
1869
- key?: string;
1870
- order?: number;
1871
- }
1872
- interface DashboardStatusDetails {
1873
- color?: string;
1874
- description?: string;
1875
- }
1876
- interface DashboardStatusValue {
1877
- name?: string;
1878
- details?: DashboardStatusDetails;
1879
- }
1880
- interface DashboardStatus {
1881
- value?: DashboardStatusValue;
1882
- name?: string;
1883
- color?: string;
1884
- details?: DashboardStatusDetails;
1885
- }
1886
- interface DashboardCounter {
1887
- value?: string | number;
1868
+ interface PropsConfigAsIndexItem$1 {
1869
+ width?: string;
1870
+ hidden?: boolean;
1871
+ border?: boolean | string[];
1888
1872
  }
1889
1873
  interface DashboardCardProperty extends EntityData$1 {
1890
1874
  label?: string | Record<string, string>;
1891
- displayAreas?: DisplayAreaItem[];
1892
- displayArea?: DisplayAreaItem[];
1893
1875
  }
1894
1876
  interface DashboardCardData {
1895
1877
  id?: number | string;
1896
1878
  name?: string;
1897
1879
  label?: string;
1898
- title?: string;
1899
- currentPhase?: string;
1900
- status?: DashboardStatus;
1901
1880
  props?: DashboardCardProperty[];
1902
1881
  properties?: DashboardCardProperty[];
1903
- issuesCounts?: DashboardCounter;
1904
- risksCounts?: DashboardCounter;
1905
- milestonesCounts?: DashboardCounter;
1906
1882
  [key: string]: unknown;
1907
1883
  }
1908
1884
  interface DashboardCardGroup {
@@ -1913,10 +1889,6 @@ interface DashboardCardGroup {
1913
1889
  [key: string]: unknown;
1914
1890
  }
1915
1891
  type DashboardTabItem = DashboardCardGroup | DashboardCardData;
1916
- interface PropsConfigAsIndexItem$1 {
1917
- width?: string;
1918
- hidden?: boolean;
1919
- }
1920
1892
  interface DashboardCardTabOption {
1921
1893
  label: string;
1922
1894
  value: number;
@@ -1925,9 +1897,6 @@ interface DashboardCardViewModel {
1925
1897
  trackId: string | number;
1926
1898
  card: DashboardCardData;
1927
1899
  entities: EntityData$1[];
1928
- bodyProps: DashboardCardProperty[];
1929
- attachments: unknown[];
1930
- hasCounters: boolean;
1931
1900
  }
1932
1901
  declare class PropertiesCardComponent implements OnInit, OnDestroy {
1933
1902
  private readonly storeService;
@@ -1943,7 +1912,6 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
1943
1912
  readonly cardData: _angular_core.WritableSignal<DashboardTabItem[][]>;
1944
1913
  readonly tabSelected: _angular_core.WritableSignal<number>;
1945
1914
  readonly langCode: _angular_core.Signal<string>;
1946
- readonly isPropertiesCard: _angular_core.Signal<boolean>;
1947
1915
  readonly galleryMode: _angular_core.Signal<boolean>;
1948
1916
  readonly currentTabItems: _angular_core.Signal<DashboardTabItem[]>;
1949
1917
  readonly selectedProperties: _angular_core.Signal<string[]>;
@@ -1958,52 +1926,38 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
1958
1926
  private normalizePropertyKey;
1959
1927
  private clampEntitySize;
1960
1928
  private resolveEntitySize;
1929
+ private resolveShowBorder;
1930
+ private mapViewType;
1961
1931
  private isCardGroup;
1962
1932
  private extractCards;
1963
1933
  private getCardProps;
1964
1934
  private orderProperties;
1965
- private buildPropertiesCardEntities;
1966
- private buildLegacyBodyProps;
1967
- private getAttachments;
1968
- private hasCounters;
1935
+ private buildEntities;
1969
1936
  private resolveTabLabel;
1970
1937
  private readString;
1971
- private normalizeEntityProperty;
1972
1938
  private resolveEntityName;
1973
1939
  private readLocalizedText;
1974
1940
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropertiesCardComponent, never>;
1975
1941
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PropertiesCardComponent, "mt-properties-card, mt-entities-preview-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
1976
1942
  }
1977
1943
 
1978
- interface PropertyConfig {
1979
- width?: string;
1980
- border?: string[];
1981
- hidden?: boolean;
1982
- colorAsProperty?: string;
1983
- }
1984
- interface ProcessedProperty {
1985
- propInfo: EntityData$1;
1986
- config: PropertyConfig;
1987
- }
1988
1944
  declare class EntityPreviewCardComponent implements OnInit, OnDestroy {
1989
1945
  private readonly itemStoreService;
1990
1946
  private readonly dashboardStoreService;
1991
1947
  private readonly subscription;
1992
- /** Dashboard ID for this card */
1993
1948
  readonly dashboardId: _angular_core.InputSignal<string | number>;
1994
- /** Configuration item from store */
1995
1949
  readonly configurationItem: _angular_core.WritableSignal<ItemConfig | null>;
1996
- /** Processed properties to display */
1997
- readonly props: _angular_core.WritableSignal<ProcessedProperty[]>;
1998
- /** Card title */
1950
+ readonly entities: _angular_core.WritableSignal<EntityData$1[]>;
1951
+ private currentDataHandled;
1999
1952
  readonly title: _angular_core.Signal<string>;
2000
1953
  ngOnInit(): void;
2001
1954
  ngOnDestroy(): void;
2002
- /**
2003
- * Subscribe to store updates for this dashboard ID
2004
- */
2005
1955
  private subscribeToStore;
2006
- private normalizeEntityProperty;
1956
+ private recomputeEntities;
1957
+ private clampEntitySize;
1958
+ private resolveEntitySize;
1959
+ private resolveShowBorder;
1960
+ private mapViewType;
2007
1961
  private resolveEntityName;
2008
1962
  private readLocalizedText;
2009
1963
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewCardComponent, never>;
@@ -3959,7 +3913,7 @@ interface PropsConfigAsIndexItem {
3959
3913
  width?: string;
3960
3914
  colorAsProperty?: string;
3961
3915
  hidden?: boolean;
3962
- border?: string[];
3916
+ border?: boolean;
3963
3917
  }
3964
3918
  interface PropertyOption {
3965
3919
  label: string;
@@ -4062,11 +4016,6 @@ declare class DisplaySettings {
4062
4016
  label: string;
4063
4017
  value: string;
4064
4018
  }[];
4065
- /** Border options for props config */
4066
- readonly borderOptions: {
4067
- label: string;
4068
- value: string;
4069
- }[];
4070
4019
  /** Color condition type options */
4071
4020
  readonly colorConditionTypeOptions: {
4072
4021
  label: string;