@talxis/base-controls 1.2406.4 → 1.2406.5

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.
@@ -1,12 +1,20 @@
1
1
  /// <reference types="@types/powerapps-component-framework" />
2
- import { ColDef, GridApi } from "@ag-grid-community/core";
2
+ /// <reference types="react" />
3
+ import { ColDef, GridApi, GridState } from "@ag-grid-community/core";
3
4
  import { IEntityRecord } from "../../../../interfaces";
4
5
  import "@ag-grid-community/styles/ag-grid.css";
5
6
  import "@ag-grid-community/styles/ag-theme-balham.css";
7
+ import { IUpdatedRecord } from "../../../services/RecordUpdateService/model/RecordUpdateService";
6
8
  interface IAgGridController {
7
9
  agColumns: ColDef[];
8
10
  records: IEntityRecord[];
11
+ maxNumberOfVisibleRecords: number;
12
+ stateRef: React.MutableRefObject<IAgGridState>;
13
+ getTotalColumnsWidth: () => number;
9
14
  onGridReady: () => void;
10
15
  }
16
+ interface IAgGridState extends GridState {
17
+ '__updatedRecords'?: IUpdatedRecord[];
18
+ }
11
19
  export declare const useAgGridController: (gridApiRef: React.MutableRefObject<GridApi<ComponentFramework.PropertyHelper.DataSetApi.EntityRecord> | undefined>) => IAgGridController;
12
20
  export {};
@@ -5,8 +5,11 @@ import { Grid } from "../../../model/Grid";
5
5
  import { GridDependency } from "../../../model/GridDependency";
6
6
  export declare class AgGrid extends GridDependency {
7
7
  private _gridApiRef;
8
+ private _initialPageSize;
8
9
  constructor(grid: Grid, gridApiRef: React.MutableRefObject<GridApi<ComponentFramework.PropertyHelper.DataSetApi.EntityRecord> | undefined>);
9
10
  get columns(): ColDef<any, any>[];
11
+ get maxNumberOfVisibleRecords(): number;
12
+ getTotalColumnsWidth(): number;
10
13
  selectRows(): void;
11
14
  private get _gridApi();
12
15
  private _getCellClassName;
@@ -39,7 +39,6 @@ export declare class Grid {
39
39
  get shouldRerender(): boolean;
40
40
  get loading(): boolean;
41
41
  get state(): ComponentFramework.Dictionary | undefined;
42
- get isNested(): boolean;
43
42
  openDatasetItem(entityReference: ComponentFramework.EntityReference): void;
44
43
  updateDependencies(props: IGrid): void;
45
44
  refreshColumns(): Promise<IGridColumn[]>;
@@ -19,7 +19,6 @@ export interface IGridParameters extends IParameters {
19
19
  EnableFiltering?: Omit<ITwoOptionsProperty, 'attributes'>;
20
20
  EnableSorting?: Omit<ITwoOptionsProperty, 'attributes'>;
21
21
  EnableNavigation?: Omit<ITwoOptionsProperty, 'attributes'>;
22
- IsNested?: Omit<ITwoOptionsProperty, 'attributes'>;
23
22
  SelectableRows?: ComponentFramework.PropertyTypes.EnumProperty<"none" | "single" | "multiple">;
24
23
  Grid: IDatasetProperty;
25
24
  }
@@ -1,4 +1,5 @@
1
1
  interface IPagingController {
2
+ isEnabled: boolean;
2
3
  pageNumber: number;
3
4
  pageSize: number;
4
5
  totalResultCount: number;
@@ -7,6 +7,7 @@ export declare class Paging extends GridDependency {
7
7
  get hasNextPage(): boolean;
8
8
  get pageFirstRecordOrder(): number;
9
9
  get pageLastRecordOrder(): number;
10
+ get isEnabled(): boolean;
10
11
  loadNextPage(): void;
11
12
  loadPreviousPage(): void;
12
13
  loadExactPage(pageNumber: number): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@types/powerapps-component-framework" />
2
- export declare class NumeralPCF {
2
+ export declare class Numeral {
3
3
  static decimal(formatting: ComponentFramework.UserSettingApi.NumberFormattingInfo): void;
4
4
  static currency(formatting: ComponentFramework.UserSettingApi.NumberFormattingInfo): void;
5
5
  private static get _locales();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talxis/base-controls",
3
- "version": "1.2406.4",
3
+ "version": "1.2406.5",
4
4
  "description": "Set of React components that natively work with Power Apps Component Framework API's",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- import c from"numeral";class e{static decimal(e){const l={ordinal:c=>".",currency:{symbol:e.currencySymbol},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},delimiters:{decimal:e.numberDecimalSeparator,thousands:e.numberGroupSeparator}};this._locales.includes("__pcfcustomdecimal")?c.locales.__pcfcustomdecima=l:c.register("locale","__pcfcustomdecimal",l),c.locale("__pcfcustomdecimal")}static currency(e){const l={ordinal:c=>".",currency:{symbol:e.currencySymbol},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},delimiters:{decimal:e.currencyDecimalSeparator,thousands:e.currencyGroupSeparator}};this._locales.includes("__pcfcustomcurrency")?c.locales.__pcfcustomcurrency=l:c.register("locale","__pcfcustomcurrency",l),c.locale("__pcfcustomcurrency")}static get _locales(){return Object.keys(c.locales)}}export{e as N};