@sankhyalabs/ezui 1.1.90 → 1.1.91

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,8 +1,9 @@
1
1
  import { FormMetadata, FormSheetMetadata } from "../structure/FormSheetMetadata";
2
2
  import { AnyAction } from "redux";
3
+ import { Tab } from "../../ez-tabselector/ez-tabselector";
3
4
  export declare function formReducer(state: FormState, action: AnyAction): any;
4
5
  export declare function loadMetadata(formMetadata: FormMetadata): AnyAction;
5
- export declare function changeTab(currentSheet: string): {
6
+ export declare function changeTab(currentSheet: Tab): {
6
7
  type: FormActions;
7
8
  payload: string;
8
9
  };
@@ -7,12 +7,12 @@ export declare class EzTabselector {
7
7
  private _startHidden;
8
8
  private _endHidden;
9
9
  private _processedTabs;
10
- private focusedIndex;
10
+ private _focusedIndex;
11
11
  private _scrollCallBackTest;
12
12
  /**
13
13
  * Define o index da aba selecionada.
14
14
  */
15
- selectedIndex: string;
15
+ selectedIndex: number;
16
16
  /**
17
17
  * Define a aba selecionada.
18
18
  */
@@ -23,9 +23,11 @@ export declare class EzTabselector {
23
23
  tabs: string;
24
24
  /**
25
25
  * Evento emitido ao clicar para abrir o popup (ezChange).
26
+ * O detail desse evento carrega tanto o tabKey quanto o index da aba
27
+ * selecionada.
26
28
  */
27
- ezChange: EventEmitter<string>;
28
- handleTabClick(tab: string, index: number): void;
29
+ ezChange: EventEmitter<Tab>;
30
+ handleTabClick(tab: Tab): void;
29
31
  componentWillRender(): void;
30
32
  handleSlotChange(ev: Event): void;
31
33
  scrollBackward(): void;
@@ -34,10 +36,15 @@ export declare class EzTabselector {
34
36
  updateScroll(): void;
35
37
  _scrollCallBack: number;
36
38
  domScrollHandler(): void;
37
- setFocusedTab(index: string): void;
39
+ setFocusedTab(index: number): void;
38
40
  _textMesurement: HTMLCanvasElement;
39
41
  getTextWidth(text: string): string;
40
42
  setFocusedParam: (ev: KeyboardEvent) => void;
41
- setFocusedBtn(visible: boolean, parameter: string): void;
43
+ setFocusedBtn(visible: boolean, parameter: number): void;
42
44
  render(): any;
43
45
  }
46
+ export interface Tab {
47
+ label: string;
48
+ tabKey: string;
49
+ index: number;
50
+ }
@@ -12,6 +12,7 @@ import { FieldConfig } from "./components/ez-form/ez-form";
12
12
  import { EzGridColumn, EzGridColumStateEvent } from "./components/ez-grid/controller/EzGridController";
13
13
  import { ListGroup, ListItem } from "./components/ez-list/ez-list";
14
14
  import { Option as Option1 } from "./components/ez-combo-box/ez-combo-box";
15
+ import { Tab } from "./components/ez-tabselector/ez-tabselector";
15
16
  import { EzFile } from "./components/ez-upload/ez-upload";
16
17
  export namespace Components {
17
18
  interface EzActionChip {
@@ -505,7 +506,7 @@ export namespace Components {
505
506
  /**
506
507
  * Define o index da aba selecionada.
507
508
  */
508
- "selectedIndex": string;
509
+ "selectedIndex": number;
509
510
  /**
510
511
  * Define a aba selecionada.
511
512
  */
@@ -1377,13 +1378,13 @@ declare namespace LocalJSX {
1377
1378
  }
1378
1379
  interface EzTabselector {
1379
1380
  /**
1380
- * Evento emitido ao clicar para abrir o popup (ezChange).
1381
+ * Evento emitido ao clicar para abrir o popup (ezChange). O detail desse evento carrega tanto o tabKey quanto o index da aba selecionada.
1381
1382
  */
1382
- "onEzChange"?: (event: CustomEvent<string>) => void;
1383
+ "onEzChange"?: (event: CustomEvent<Tab>) => void;
1383
1384
  /**
1384
1385
  * Define o index da aba selecionada.
1385
1386
  */
1386
- "selectedIndex"?: string;
1387
+ "selectedIndex"?: number;
1387
1388
  /**
1388
1389
  * Define a aba selecionada.
1389
1390
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankhyalabs/ezui",
3
- "version": "1.1.90",
3
+ "version": "1.1.91",
4
4
  "description": "Biblioteca de componentes Sankhya.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/custom-elements/index.js",