@ascentgl/ads-ui 0.0.82 → 0.0.84

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.
@@ -2,6 +2,13 @@ import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
2
2
  import { GENERIC_COLLECTION } from '@ascentgl/ads-utils';
3
3
  import { ColDef, FirstDataRenderedEvent, GridOptions, GridReadyEvent } from 'ag-grid-community';
4
4
  import * as i0 from "@angular/core";
5
+ export declare enum TableBreakpoint {
6
+ XS = "xs",
7
+ SM = "sm",
8
+ MD = "md",
9
+ LG = "lg",
10
+ XL = "xl"
11
+ }
5
12
  export declare class AdsTableComponent implements AfterViewInit, OnDestroy {
6
13
  private elementRef;
7
14
  /** @ignore */
@@ -15,18 +22,26 @@ export declare class AdsTableComponent implements AfterViewInit, OnDestroy {
15
22
  /** The data to be displayed in the grid */
16
23
  rowData: GENERIC_COLLECTION[];
17
24
  /** The column definitions for the grid */
18
- columnDefs: ColDef[];
25
+ columnDefs?: ColDef[];
19
26
  /** Default column definitions that will be applied to all columns */
20
27
  defaultColDef: ColDef<GENERIC_COLLECTION>;
21
28
  /** Loading data status */
22
29
  loading: boolean;
30
+ /** Columns data by breakPoints */
31
+ columnDefsByBreakpoint: Record<TableBreakpoint, ColDef[]>;
32
+ /** @ignore */
33
+ tableColumnDefs: import("@angular/core").WritableSignal<ColDef<any, any>[]>;
23
34
  /** @ignore */
24
35
  private cachedDefaultColDef;
25
36
  /** @ignore */
26
- getDefaultColDef(): ColDef<GENERIC_COLLECTION>;
37
+ private currentBreakpoint;
27
38
  /** @ignore */
28
39
  private resizeObserver?;
29
40
  /** @ignore */
41
+ private getBreakpoint;
42
+ /** @ignore */
43
+ getDefaultColDef(): ColDef<GENERIC_COLLECTION>;
44
+ /** @ignore */
30
45
  private gridApi?;
31
46
  /** @ignore */
32
47
  ngAfterViewInit(): void;
@@ -41,6 +56,10 @@ export declare class AdsTableComponent implements AfterViewInit, OnDestroy {
41
56
  /** @ignore */
42
57
  firstDataRendered($event: FirstDataRenderedEvent): void;
43
58
  /** @ignore */
59
+ private updateColumnDefs;
60
+ /** @ignore */
61
+ private getFallbackColumnDefs;
62
+ /** @ignore */
44
63
  ngOnDestroy(): void;
45
64
  protected readonly themeQuartz: import("ag-grid-community").Theme<{
46
65
  accentColor: import("ag-grid-community/dist/types/src/theming/theme-types").ColorValue;
@@ -237,5 +256,5 @@ export declare class AdsTableComponent implements AfterViewInit, OnDestroy {
237
256
  inputIconColor: import("ag-grid-community/dist/types/src/theming/theme-types").ColorValue;
238
257
  }>;
239
258
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsTableComponent, never>;
240
- static ɵcmp: i0.ɵɵComponentDeclaration<AdsTableComponent, "ads-table", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "gridOptions": { "alias": "gridOptions"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "columnDefs": { "alias": "columnDefs"; "required": false; }; "defaultColDef": { "alias": "defaultColDef"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, false, never>;
259
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdsTableComponent, "ads-table", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "gridOptions": { "alias": "gridOptions"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "columnDefs": { "alias": "columnDefs"; "required": false; }; "defaultColDef": { "alias": "defaultColDef"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "columnDefsByBreakpoint": { "alias": "columnDefsByBreakpoint"; "required": false; }; }, {}, never, never, false, never>;
241
260
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ascentgl/ads-ui",
3
- "version": "0.0.82",
3
+ "version": "0.0.84",
4
4
  "peerDependencies": {
5
5
  "@ascentgl/ads-icons": ">=0.0.0",
6
6
  "@ascentgl/ads-utils": ">=0.0.0",
@@ -32,14 +32,14 @@
32
32
  "types": "./src/lib/components/avatar/index.d.ts",
33
33
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-avatar.mjs"
34
34
  },
35
- "./src/lib/components/footer": {
36
- "types": "./src/lib/components/footer/index.d.ts",
37
- "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-footer.mjs"
38
- },
39
35
  "./src/lib/components/drag-and-drop-list": {
40
36
  "types": "./src/lib/components/drag-and-drop-list/index.d.ts",
41
37
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-drag-and-drop-list.mjs"
42
38
  },
39
+ "./src/lib/components/footer": {
40
+ "types": "./src/lib/components/footer/index.d.ts",
41
+ "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-footer.mjs"
42
+ },
43
43
  "./src/lib/components/header": {
44
44
  "types": "./src/lib/components/header/index.d.ts",
45
45
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-header.mjs"
@@ -64,26 +64,26 @@
64
64
  "types": "./src/lib/components/footer/container/index.d.ts",
65
65
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-footer-container.mjs"
66
66
  },
67
- "./src/lib/components/header/container": {
68
- "types": "./src/lib/components/header/container/index.d.ts",
69
- "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-header-container.mjs"
70
- },
71
67
  "./src/lib/components/logo/primary-logo": {
72
68
  "types": "./src/lib/components/logo/primary-logo/index.d.ts",
73
69
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs"
74
70
  },
71
+ "./src/lib/components/header/container": {
72
+ "types": "./src/lib/components/header/container/index.d.ts",
73
+ "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-header-container.mjs"
74
+ },
75
75
  "./src/lib/components/progress-indicators/progress-bar": {
76
76
  "types": "./src/lib/components/progress-indicators/progress-bar/index.d.ts",
77
77
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-bar.mjs"
78
78
  },
79
- "./src/lib/components/progress-indicators/progress-indicator-spinner": {
80
- "types": "./src/lib/components/progress-indicators/progress-indicator-spinner/index.d.ts",
81
- "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs"
82
- },
83
79
  "./src/lib/components/progress-indicators/progress-spinner": {
84
80
  "types": "./src/lib/components/progress-indicators/progress-spinner/index.d.ts",
85
81
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs"
86
82
  },
83
+ "./src/lib/components/progress-indicators/progress-indicator-spinner": {
84
+ "types": "./src/lib/components/progress-indicators/progress-indicator-spinner/index.d.ts",
85
+ "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs"
86
+ },
87
87
  "./src/lib/components/tags/tag-container": {
88
88
  "types": "./src/lib/components/tags/tag-container/index.d.ts",
89
89
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-tags-tag-container.mjs"