@sankhyalabs/ezui 5.4.2 → 5.5.0

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,7 +2,7 @@ import { DataUnit } from '@sankhyalabs/core';
2
2
  import { EventEmitter } from '../../stencil-public-runtime';
3
3
  import { IMultiSelectionListDataSource } from '../ez-multi-selection-list/interfaces/IMultiSelectionListDataSource';
4
4
  import { EzGridColumStateEvent, EzGridColumn, EzGridColumnConfig, IGridConfig, IStatusResolver, StatusResolverFunction } from './controller/EzGridController';
5
- import { ISelection } from './interfaces/ISelection';
5
+ import { ISelection, ISelectionToastConfig } from './interfaces';
6
6
  export declare class EzGrid {
7
7
  private _container;
8
8
  private _refPaginationControl;
@@ -46,6 +46,10 @@ export declare class EzGrid {
46
46
  * Configuração de exibição da grade.
47
47
  */
48
48
  config: IGridConfig;
49
+ /**
50
+ * Configuração da seleção de grade no toast.
51
+ */
52
+ selectionToastConfig: ISelectionToastConfig;
49
53
  /**
50
54
  * Endereço do servidor para obtenção dos dados.
51
55
  */
@@ -0,0 +1,3 @@
1
+ export interface ISelectionToastConfig {
2
+ canSelectAll: boolean;
3
+ }
@@ -0,0 +1,2 @@
1
+ export * from './ISelection';
2
+ export * from './ISelectionToastConfig';
@@ -1,10 +1,11 @@
1
+ import { PaginationInfo } from "@sankhyalabs/core";
1
2
  import { FunctionalComponent } from "../../../stencil-public-runtime";
2
3
  interface SelectionCounterProps {
3
4
  selectionCount: number;
4
- total: number;
5
5
  allRecordSelected: boolean;
6
6
  currentPageSelected: boolean;
7
- hasPagination: boolean;
7
+ canSelectAll: boolean;
8
+ paginationInfo: PaginationInfo;
8
9
  onSelectAll: () => void;
9
10
  onSelectPage: () => void;
10
11
  onClearAll: () => void;
@@ -17,8 +17,8 @@ import { IDropdownItem, IDropdownSubAction } from "./components/ez-dropdown/stru
17
17
  import { IFormConfig, IRecordValidator } from "./utils/form/interfaces";
18
18
  import { IFormViewField } from "./components/ez-form-view/interfaces/IFormViewField";
19
19
  import { EzGridColumn, EzGridColumnConfig, EzGridColumStateEvent, IGridConfig, IStatusResolver, StatusResolverFunction } from "./components/ez-grid/controller/EzGridController";
20
+ import { ISelection, ISelectionToastConfig } from "./components/ez-grid/interfaces";
20
21
  import { IMultiSelectionListDataSource } from "./components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource";
21
- import { ISelection } from "./components/ez-grid/interfaces/ISelection";
22
22
  import { IGuideItem } from "./components/ez-guide-navigator/interfaces";
23
23
  import { ListGroup, ListItem, TListMode } from "./components/ez-list/ez-list";
24
24
  import { THeightMode } from "./components/ez-modal/ez-modal";
@@ -656,6 +656,10 @@ export namespace Components {
656
656
  * Aplica um filtro rápido.
657
657
  */
658
658
  "quickFilter": (term: string) => Promise<void>;
659
+ /**
660
+ * Configuração da seleção de grade no toast.
661
+ */
662
+ "selectionToastConfig": ISelectionToastConfig;
659
663
  /**
660
664
  * Endereço do servidor para obtenção dos dados.
661
665
  */
@@ -2550,6 +2554,10 @@ declare namespace LocalJSX {
2550
2554
  * Emitido quando acontece a alteração de seleção de linhas.
2551
2555
  */
2552
2556
  "onEzSelectionChange"?: (event: EzGridCustomEvent<ISelection>) => void;
2557
+ /**
2558
+ * Configuração da seleção de grade no toast.
2559
+ */
2560
+ "selectionToastConfig"?: ISelectionToastConfig;
2553
2561
  /**
2554
2562
  * Endereço do servidor para obtenção dos dados.
2555
2563
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankhyalabs/ezui",
3
- "version": "5.4.2",
3
+ "version": "5.5.0",
4
4
  "description": "Biblioteca de componentes Sankhya.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/custom-elements/index.js",