@sapphire-ion/framework 1.0.17 → 1.0.20

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.
Files changed (99) hide show
  1. package/esm2022/lib/classes/inputs/table-field-form-builder.mjs +1 -1
  2. package/esm2022/lib/components/default/default-list/abstract-list.mjs +1 -1
  3. package/esm2022/lib/components/default/default-list/default-list.component.mjs +4 -4
  4. package/esm2022/lib/components/default/default-list/header-list/header-list.component.mjs +1 -1
  5. package/esm2022/lib/components/default/default-list/list.mjs +1 -1
  6. package/esm2022/lib/components/default/default-pagination/default-pagination.component.mjs +5 -5
  7. package/esm2022/lib/components/default/default-table/default-table.component.mjs +161 -163
  8. package/esm2022/lib/components/default/default-table/th-filter/th-filter.component.mjs +3 -3
  9. package/esm2022/lib/components/default/default-view/abstract-view.mjs +1 -1
  10. package/esm2022/lib/components/default/default-view/default-view.component.mjs +3 -3
  11. package/esm2022/lib/components/default/default-view/view.mjs +19 -6
  12. package/esm2022/lib/components/default-page/default.page.mjs +3 -3
  13. package/esm2022/lib/components/drawer/drawer-group/drawer-group.component.mjs +3 -3
  14. package/esm2022/lib/components/drawer/drawer.component.mjs +5 -5
  15. package/esm2022/lib/components/filter/filter.component.mjs +8 -3
  16. package/esm2022/lib/components/inputs/custom-input.mjs +1 -1
  17. package/esm2022/lib/components/inputs/input-bool/input-bool.component.mjs +11 -5
  18. package/esm2022/lib/components/inputs/input-cep/input-cep.component.mjs +19 -10
  19. package/esm2022/lib/components/inputs/input-color/input-color.component.mjs +15 -8
  20. package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.mjs +46 -15
  21. package/esm2022/lib/components/inputs/input-date/input-date.component.mjs +12 -6
  22. package/esm2022/lib/components/inputs/input-decimal/input-decimal.component.mjs +11 -5
  23. package/esm2022/lib/components/inputs/input-file/input-file.component.mjs +14 -6
  24. package/esm2022/lib/components/inputs/input-icon/input-icon.component.mjs +12 -6
  25. package/esm2022/lib/components/inputs/input-select/directives/sion-label-template.directive.mjs +1 -1
  26. package/esm2022/lib/components/inputs/input-select/directives/sion-option-template.directive.mjs +1 -3
  27. package/esm2022/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.mjs +1 -1
  28. package/esm2022/lib/components/inputs/input-select/input-select.component.mjs +13 -5
  29. package/esm2022/lib/components/inputs/input-select/input.select.configuration.mjs +5 -5
  30. package/esm2022/lib/components/inputs/input-string/input-string.component.mjs +12 -6
  31. package/esm2022/lib/components/inputs/input-telefone/input-telefone.component.mjs +22 -11
  32. package/esm2022/lib/components/inputs/input-textarea/input-textarea.component.mjs +12 -6
  33. package/esm2022/lib/components/login/login-admin/login-admin.component.mjs +2 -2
  34. package/esm2022/lib/components/login/login.component.mjs +4 -4
  35. package/esm2022/lib/components/popover/sion-popover/sion-popover.component.mjs +15 -4
  36. package/esm2022/lib/components/sion-card/sion-card.component.mjs +26 -0
  37. package/esm2022/lib/components/stepper/stepper.component.mjs +4 -4
  38. package/esm2022/lib/guards/error.interceptor.mjs +3 -3
  39. package/esm2022/lib/index.mjs +4 -2
  40. package/esm2022/lib/services/generic.service.mjs +84 -0
  41. package/esm2022/lib/services/usuario.service.mjs +3 -3
  42. package/esm2022/lib/services/web/http.ativo.service.mjs +4 -22
  43. package/esm2022/lib/services/web/http.service.mjs +26 -15
  44. package/esm2022/lib/services/web/storage.service.mjs +3 -3
  45. package/fesm2022/sapphire-ion-framework.mjs +662 -510
  46. package/fesm2022/sapphire-ion-framework.mjs.map +1 -1
  47. package/lib/classes/inputs/table-field-form-builder.d.ts +1 -1
  48. package/lib/components/default/default-list/abstract-list.d.ts +1 -1
  49. package/lib/components/default/default-list/default-list.component.d.ts +1 -1
  50. package/lib/components/default/default-list/list.d.ts +1 -1
  51. package/lib/components/default/default-pagination/default-pagination.component.d.ts +1 -1
  52. package/lib/components/default/default-table/default-table.component.d.ts +60 -44
  53. package/lib/components/default/default-view/abstract-view.d.ts +1 -1
  54. package/lib/components/default/default-view/default-view.component.d.ts +1 -1
  55. package/lib/components/default/default-view/view.d.ts +5 -2
  56. package/lib/components/default-page/default.page.d.ts +1 -1
  57. package/lib/components/drawer/drawer-group/drawer-group.component.d.ts +1 -1
  58. package/lib/components/drawer/drawer.component.d.ts +1 -1
  59. package/lib/components/inputs/custom-input.d.ts +1 -1
  60. package/lib/components/inputs/input-bool/input-bool.component.d.ts +1 -1
  61. package/lib/components/inputs/input-cep/input-cep.component.d.ts +3 -3
  62. package/lib/components/inputs/input-color/input-color.component.d.ts +2 -2
  63. package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.d.ts +3 -4
  64. package/lib/components/inputs/input-date/input-date.component.d.ts +1 -1
  65. package/lib/components/inputs/input-decimal/input-decimal.component.d.ts +1 -1
  66. package/lib/components/inputs/input-file/input-file.component.d.ts +1 -1
  67. package/lib/components/inputs/input-icon/input-icon.component.d.ts +1 -1
  68. package/lib/components/inputs/input-select/directives/sion-label-template.directive.d.ts +6 -0
  69. package/lib/components/inputs/input-select/directives/sion-option-template.directive.d.ts +4 -1
  70. package/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.d.ts +8 -2
  71. package/lib/components/inputs/input-select/input-select.component.d.ts +1 -1
  72. package/lib/components/inputs/input-select/input.select.configuration.d.ts +1 -1
  73. package/lib/components/inputs/input-string/input-string.component.d.ts +1 -1
  74. package/lib/components/inputs/input-telefone/input-telefone.component.d.ts +2 -1
  75. package/lib/components/inputs/input-textarea/input-textarea.component.d.ts +1 -1
  76. package/lib/components/login/login.component.d.ts +1 -1
  77. package/lib/components/popover/sion-popover/sion-popover.component.d.ts +1 -0
  78. package/lib/components/sion-card/sion-card.component.d.ts +11 -0
  79. package/lib/components/stepper/stepper.component.d.ts +2 -2
  80. package/lib/guards/error.interceptor.d.ts +1 -1
  81. package/lib/index.d.ts +2 -1
  82. package/lib/services/usuario.service.d.ts +1 -1
  83. package/lib/services/web/http.ativo.service.d.ts +1 -12
  84. package/lib/services/web/http.service.d.ts +16 -7
  85. package/lib/services/web/storage.service.d.ts +1 -1
  86. package/package.json +5 -5
  87. package/themes/compiled-styles.scss +17 -6
  88. package/themes/components/default/default-pagination/default-pagination.component.scss +1 -4
  89. package/themes/components/default/default-table/default-table.component.scss +3 -19
  90. package/themes/components/inputs/inputs.scss +1 -1
  91. package/themes/components/popover/sion-popover/sion-popover.component.scss +1 -1
  92. package/themes/components/sion-card/sion-card.component.scss +0 -0
  93. package/themes/styles/core.styles.scss +16 -12
  94. package/themes/styles/login-default.scss +1 -1
  95. package/themes/styles/styles.scss +1 -1
  96. package/esm2022/lib/components/inputs/input-cep/input-cep.configuration.mjs +0 -6
  97. package/esm2022/lib/services/generics.service.mjs +0 -84
  98. package/lib/components/inputs/input-cep/input-cep.configuration.d.ts +0 -5
  99. /package/lib/services/{generics.service.d.ts → generic.service.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { FormBuilder, FormGroup } from "@angular/forms";
2
2
  import { TableField } from "./table-field";
3
3
  export declare class TableFieldFormBuilder {
4
- static create(lstTableFields: TableField[], fb: FormBuilder): FormGroup;
4
+ static create<T = any>(lstTableFields: TableField[], fb: FormBuilder): FormGroup;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { OnInit } from "@angular/core";
2
2
  import { ActivatedRoute } from "@angular/router";
3
3
  import { DefaultListComponent } from "./default-list.component";
4
- import { GenericService } from "../../../services/generics.service";
4
+ import { GenericService } from "../../../services/generic.service";
5
5
  import { HttpService } from "../../../services/web/http.service";
6
6
  import * as i0 from "@angular/core";
7
7
  /** Componente padrão para a invocação do DefaultList */
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
2
  import { ActivatedRoute } from '@angular/router';
3
- import { GenericService } from '../../../services/generics.service';
3
+ import { GenericService } from '../../../services/generic.service';
4
4
  import { HttpService } from '../../../services/web/http.service';
5
5
  import { List } from './list';
6
6
  import * as i0 from "@angular/core";
@@ -4,7 +4,7 @@ import { Observable } from "rxjs";
4
4
  import { ActivatedRoute } from '@angular/router';
5
5
  import { Comparison } from "../../../classes/comparison/comparison";
6
6
  import { HttpService, ViewRetorno } from '../../../services/web/http.service';
7
- import { GenericService } from "../../../services/generics.service";
7
+ import { GenericService } from "../../../services/generic.service";
8
8
  import { ViewFiltros } from "../../../classes/filters/view-filtros";
9
9
  import { TableField } from "../../../classes/inputs/table-field";
10
10
  import * as i0 from "@angular/core";
@@ -1,5 +1,5 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
- import { GenericService } from '../../../services/generics.service';
2
+ import { GenericService } from '../../../services/generic.service';
3
3
  import * as i0 from "@angular/core";
4
4
  /** Componente de paginação padrão */
5
5
  export declare class DefaultPaginationComponent implements OnInit {
@@ -1,71 +1,87 @@
1
- import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
1
+ import { InputSignal, ModelSignal, OnInit, OutputEmitterRef, Signal, TemplateRef } from '@angular/core';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
- import { Comparison } from '../../../classes/comparison/comparison';
4
3
  import { StorageService } from '../../../services/web/storage.service';
5
4
  import { HttpService } from '../../../services/web/http.service';
6
5
  import { TableField } from '../../../classes/inputs/table-field';
6
+ import { Comparison } from '../../../classes/comparison/comparison';
7
7
  import { InputType } from '../../inputs/input-type';
8
8
  import * as i0 from "@angular/core";
9
- /** Componente de tabela padrão */
10
- export declare class DefaultTableComponent<T extends HttpService> implements OnInit {
9
+ type CSSStyleStringGenerator = (index: string, object: any) => string;
10
+ export declare class DefaultTableComponent<Service extends HttpService, T = any> implements OnInit {
11
11
  storageService: StorageService;
12
12
  private activatedRoute;
13
13
  private router;
14
- /** Service a ser utilizado na listagem */
15
- defaultService: T;
16
- /** Template de ações, deve ser um elemento ```<ng-template>``` */
17
14
  acoesTemplate: TemplateRef<any>;
18
- /** Valor total de dados */
19
- total: number;
20
- /** Número de páginas máximo (usando two way data binding) */
21
- limit: number;
22
- limitChange: EventEmitter<number>;
15
+ /** Template de ações, deve ser um elemento ```<ng-template>``` */
16
+ /** Service a ser utilizado na listagem */
17
+ service: InputSignal<Service>;
18
+ total: ModelSignal<number>;
19
+ /** Número de items máximo (usando two way data binding) */
20
+ limit: ModelSignal<number>;
23
21
  /** Valor da pagina, setado = 1 quando troca-se o valor de limite de paginas (usando two way data binding) */
24
- page: number;
25
- pageChange: EventEmitter<number>;
22
+ page: ModelSignal<number>;
26
23
  /** Propriedade de ordenação (usando two way data binding) */
27
- orderByProperty: string | null;
28
- orderByPropertyChange: EventEmitter<string | null>;
24
+ orderByProperty: ModelSignal<string | null>;
29
25
  /** Propriedade de ordenação
30
26
  * Se = true Ordenará de menor ao maior
31
27
  * Se = false Ordenará de maior ao menor (usando two way data binding) */
32
- ascending: boolean;
33
- ascendingChange: EventEmitter<boolean>;
28
+ ascending: ModelSignal<boolean>;
34
29
  /** Filtros (usando two way data binding) */
35
- filter: Comparison[];
36
- filterChange: EventEmitter<Comparison[]>;
30
+ filter: ModelSignal<Comparison[]>;
37
31
  /** Evento emitido quando um dos dados é ativado. Emite o id do dado */
38
- ativarEmitter: EventEmitter<number>;
39
- refreshEmitter: EventEmitter<void>;
40
- loading: boolean;
32
+ ativar: OutputEmitterRef<number>;
33
+ refresh: OutputEmitterRef<void>;
34
+ loading: ModelSignal<boolean>;
41
35
  /** Lista de dados a ser exibidos */
42
- items: any[];
36
+ items: ModelSignal<T[]>;
43
37
  /** Lista de campos a ser exibidos */
44
- lstTableFields: TableField[];
38
+ lstTableFields: ModelSignal<TableField[]>;
39
+ lstTableFieldsAvailable: Signal<AvailableTableField[]>;
45
40
  /** Remove os filtros no cabeçalho da tabela */
46
- noFilters: boolean;
41
+ noFilters: InputSignal<boolean>;
47
42
  /** Aplica classes de CSS na coluna de acirdo com o retorno da função passada como parametro */
48
- columnClass: ((index: string, object: any) => string) | null;
49
- /** Aplica style de CSS na coluna de acirdo com o retorno da função passada como parametro */
50
- columnStyle: ((index: string, object: any) => string) | null;
43
+ columnClass: InputSignal<CSSStyleStringGenerator | null>;
44
+ /** Aplica style de CSS na coluna de acirco com o retorno da função passada como parametro */
45
+ columnStyle: InputSignal<CSSStyleStringGenerator | null>;
51
46
  /** Remove a paginação da listagem */
52
- noPagination: boolean;
47
+ noPagination: InputSignal<boolean>;
53
48
  /** Caminho de redirecionamento do item */
54
- itemPath: string | null;
55
- InputTypeFile: InputType;
49
+ itemPath: InputSignal<string>;
50
+ itemClick: OutputEmitterRef<T>;
51
+ InputType: typeof InputType;
56
52
  constructor(storageService: StorageService, activatedRoute: ActivatedRoute, router: Router);
57
- Redirect(field: TableField, item: any): void;
53
+ Redirect(field: TableField | undefined, item: T): void;
54
+ SetLstRows(): void;
55
+ lstRows: DefaultTableRow<T>[];
56
+ GetColumns(item: T): DefaultTableColumn[];
58
57
  ngOnInit(): void;
59
- SwitchOrder(field: TableField): void;
60
- EmitPage(value: number): void;
61
- EmitChange(): void;
62
- GetField(item: any, field: TableField): any;
63
- GetSelectLabel(item: any, tField: TableField): string;
64
- GetTypeOf(val: any): string;
65
- Ativar(id: any): void;
58
+ SwitchOrder(tf: TableField): void;
66
59
  ChangeFilter(): void;
67
- GetTdClasses(field: any, item: any): string;
68
- GetTdStyle(field: any, item: any): string;
69
- static ɵfac: i0.ɵɵFactoryDeclaration<DefaultTableComponent<any>, never>;
70
- static ɵcmp: i0.ɵɵComponentDeclaration<DefaultTableComponent<any>, "default-table", never, { "defaultService": { "alias": "service"; "required": false; }; "acoesTemplate": { "alias": "acoesTemplate"; "required": false; }; "total": { "alias": "total"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "page": { "alias": "page"; "required": false; }; "orderByProperty": { "alias": "orderByProperty"; "required": false; }; "ascending": { "alias": "ascending"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "items": { "alias": "items"; "required": false; }; "lstTableFields": { "alias": "lstTableFields"; "required": false; }; "noFilters": { "alias": "noFilters"; "required": false; }; "columnClass": { "alias": "columnClass"; "required": false; }; "columnStyle": { "alias": "columnStyle"; "required": false; }; "noPagination": { "alias": "noPagination"; "required": false; }; "itemPath": { "alias": "itemPath"; "required": false; }; }, { "limitChange": "limitChange"; "pageChange": "pageChange"; "orderByPropertyChange": "orderByPropertyChange"; "ascendingChange": "ascendingChange"; "filterChange": "filterChange"; "ativarEmitter": "ativar"; "refreshEmitter": "refresh"; }, never, ["[slot=item-end]"], false, never>;
60
+ Ativar(id: number): void;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultTableComponent<any, any>, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<DefaultTableComponent<any, any>, "default-table", never, { "acoesTemplate": { "alias": "acoesTemplate"; "required": false; }; "service": { "alias": "service"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "limit": { "alias": "limit"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "orderByProperty": { "alias": "orderByProperty"; "required": false; "isSignal": true; }; "ascending": { "alias": "ascending"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "lstTableFields": { "alias": "lstTableFields"; "required": false; "isSignal": true; }; "noFilters": { "alias": "noFilters"; "required": false; "isSignal": true; }; "columnClass": { "alias": "columnClass"; "required": false; "isSignal": true; }; "columnStyle": { "alias": "columnStyle"; "required": false; "isSignal": true; }; "noPagination": { "alias": "noPagination"; "required": false; "isSignal": true; }; "itemPath": { "alias": "itemPath"; "required": false; "isSignal": true; }; }, { "total": "totalChange"; "limit": "limitChange"; "page": "pageChange"; "orderByProperty": "orderByPropertyChange"; "ascending": "ascendingChange"; "filter": "filterChange"; "ativar": "ativar"; "refresh": "refresh"; "loading": "loadingChange"; "items": "itemsChange"; "lstTableFields": "lstTableFieldsChange"; "itemClick": "itemClick"; }, never, ["[slot=item-end]"], false, never>;
63
+ }
64
+ declare class DefaultTableRow<T> {
65
+ item: T;
66
+ id: number | undefined;
67
+ lstColumns: DefaultTableColumn[];
68
+ acoesClass: string;
69
+ acoesStyle: string;
70
+ constructor(item: T, id: number | undefined, lstColumns: DefaultTableColumn[], acoesClass?: string, acoesStyle?: string);
71
+ }
72
+ declare class DefaultTableColumn {
73
+ value: any;
74
+ tf: TableField;
75
+ label: string | null;
76
+ loading: boolean;
77
+ class: string;
78
+ style: string;
79
+ constructor(value: any, tf: TableField);
80
+ }
81
+ declare class AvailableTableField {
82
+ tf: TableField;
83
+ ascending: boolean;
84
+ descending: boolean;
85
+ constructor(tf: TableField, ascending: boolean, descending: boolean);
71
86
  }
87
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { OnInit } from "@angular/core";
2
2
  import { ActivatedRoute } from "@angular/router";
3
- import { GenericService } from "../../../services/generics.service";
3
+ import { GenericService } from "../../../services/generic.service";
4
4
  import { HttpService } from "../../../services/web/http.service";
5
5
  import { DefaultViewComponent } from "./default-view.component";
6
6
  import * as i0 from "@angular/core";
@@ -4,7 +4,7 @@ import { ActivatedRoute } from '@angular/router';
4
4
  import { NavController } from '@ionic/angular';
5
5
  import { HttpServiceAtivo } from '../../../services/web/http.ativo.service';
6
6
  import { HttpService } from '../../../services/web/http.service';
7
- import { GenericService } from './../../../services/generics.service';
7
+ import { GenericService } from '../../../services/generic.service';
8
8
  import { View } from './view';
9
9
  import { InputType } from '../../inputs/input-type';
10
10
  import * as i0 from "@angular/core";
@@ -1,12 +1,13 @@
1
- import { ElementRef, EventEmitter, OnInit } from "@angular/core";
1
+ import { ElementRef, EventEmitter, OnInit, QueryList } from "@angular/core";
2
2
  import { FormBuilder, FormGroup } from "@angular/forms";
3
3
  import { ActivatedRoute } from "@angular/router";
4
4
  import { HttpService } from "../../../services/web/http.service";
5
5
  import { HttpServiceAtivo } from "../../../services/web/http.ativo.service";
6
- import { GenericService } from "../../../services/generics.service";
6
+ import { GenericService } from "../../../services/generic.service";
7
7
  import { NavController } from "@ionic/angular";
8
8
  import { HeaderViewComponent } from "./header-view/header-view.component";
9
9
  import { TableField } from "../../../classes/inputs/table-field";
10
+ import { CustomInput } from "../../inputs/custom-input";
10
11
  import * as i0 from "@angular/core";
11
12
  export declare abstract class View<T extends HttpService | HttpServiceAtivo> implements OnInit {
12
13
  /** Id do dado a ser carregado */
@@ -30,6 +31,8 @@ export declare abstract class View<T extends HttpService | HttpServiceAtivo> imp
30
31
  redirectPath: string | null;
31
32
  Wrapper: HTMLElement;
32
33
  ngOnInit(): Promise<void>;
34
+ lstCustomInputs: QueryList<CustomInput<any>>;
35
+ FocusOnFirstField(): Promise<void>;
33
36
  ViewDidRefreshEmitter: EventEmitter<void>;
34
37
  Refresh(): Promise<void>;
35
38
  Load(): Promise<void>;
@@ -2,7 +2,7 @@ import { ActivatedRoute } from '@angular/router';
2
2
  import { OnInit } from '@angular/core';
3
3
  import { RouteProviderService } from '../../services/route/route.provider.service';
4
4
  import { EnvironmentService } from '../../services/environment.service';
5
- import { GenericService } from '../../services/generics.service';
5
+ import { GenericService } from '../../services/generic.service';
6
6
  import { Menu } from '../drawer/menu';
7
7
  import * as i0 from "@angular/core";
8
8
  /** Pagina Default - mostra os botões de rotas horizontalmente - componente padrão */
@@ -2,7 +2,7 @@ import { OnInit, QueryList } from '@angular/core';
2
2
  import { IonAccordion, NavController } from '@ionic/angular';
3
3
  import { Menu } from '.././menu';
4
4
  import { Router } from '@angular/router';
5
- import { GenericService } from '../../../services/generics.service';
5
+ import { GenericService } from '../../../services/generic.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class DrawerGroupComponent implements OnInit {
8
8
  router: Router;
@@ -2,7 +2,7 @@ import { EventEmitter, InputSignal, Signal, WritableSignal } from '@angular/core
2
2
  import { NavController } from '@ionic/angular';
3
3
  import { Menu } from './menu';
4
4
  import { Router } from '@angular/router';
5
- import { GenericService } from '../../services/generics.service';
5
+ import { GenericService } from '../../services/generic.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class DrawerComponent {
8
8
  router: Router;
@@ -13,7 +13,7 @@ export declare abstract class CustomInput<T> implements ControlValueAccessor, On
13
13
  /** Torna o input obrigatorio */
14
14
  required: WritableSignal<boolean>;
15
15
  abstract writeValue(obj: T): void | Promise<void>;
16
- abstract focus(event: MouseEvent): void;
16
+ abstract setFocus(event: MouseEvent | null): void;
17
17
  value: WritableSignal<T | undefined>;
18
18
  /** @virtual */
19
19
  SetValue(obj: T): void;
@@ -8,7 +8,7 @@ export declare class InputBoolComponent extends CustomInput<boolean> {
8
8
  ionCheckbox: ElementRef<IonCheckbox>;
9
9
  ionToggle: ElementRef<IonToggle>;
10
10
  inputContainer: ElementRef<HTMLDivElement>;
11
- focus(event: MouseEvent): void;
11
+ setFocus(event: MouseEvent | null): void;
12
12
  constructor();
13
13
  writeValue(obj: boolean): void | Promise<void>;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<InputBoolComponent, never>;
@@ -1,16 +1,16 @@
1
1
  import { ElementRef } from '@angular/core';
2
- import { MaskitoMaskExpression, MaskitoOptions } from '@maskito/core';
2
+ import { MaskitoOptions } from '@maskito/core';
3
3
  import { CustomInput } from '../custom-input';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class InputCepComponent extends CustomInput<string> {
6
6
  protected elementRef: ElementRef<HTMLInputElement>;
7
7
  input: ElementRef<HTMLInputElement>;
8
8
  inputContainer: ElementRef<HTMLDivElement>;
9
- focus(event: MouseEvent): void;
9
+ setFocus(event: MouseEvent | null): void;
10
10
  constructor(elementRef: ElementRef<HTMLInputElement>);
11
11
  writeValue(obj: string): void | Promise<void>;
12
- readonly cepMask: MaskitoMaskExpression;
13
12
  readonly mask: MaskitoOptions;
14
13
  static ɵfac: i0.ɵɵFactoryDeclaration<InputCepComponent, never>;
15
14
  static ɵcmp: i0.ɵɵComponentDeclaration<InputCepComponent, "input-cep", never, {}, {}, never, never, false, never>;
16
15
  }
16
+ export declare function FormatCep(value: string): string;
@@ -1,6 +1,6 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { CustomInput } from '../custom-input';
3
- import { GenericService } from '../../../services/generics.service';
3
+ import { GenericService } from '../../../services/generic.service';
4
4
  import { SIonPopoverComponent } from '../../popover/sion-popover/sion-popover.component';
5
5
  import { MaskitoOptions } from '@maskito/core';
6
6
  import * as i0 from "@angular/core";
@@ -18,7 +18,7 @@ export declare class InputColorComponent extends CustomInput<string> {
18
18
  private genericService;
19
19
  input: ElementRef<HTMLInputElement>;
20
20
  inputContainer: ElementRef<HTMLDivElement>;
21
- focus(event: MouseEvent): void;
21
+ setFocus(event: MouseEvent | null): void;
22
22
  constructor(genericService: GenericService);
23
23
  popover: SIonPopoverComponent;
24
24
  rgbColor: RGB;
@@ -1,5 +1,5 @@
1
1
  import { ElementRef, ModelSignal } from '@angular/core';
2
- import { MaskitoMaskExpression, MaskitoOptions } from '@maskito/core';
2
+ import { MaskitoOptions } from '@maskito/core';
3
3
  import { CustomInput } from '../custom-input';
4
4
  import { InputCpfCnpjConfiguration } from './input-cpf-cnpj.configuration';
5
5
  import * as i0 from "@angular/core";
@@ -8,13 +8,12 @@ export declare class InputCpfCnpjComponent extends CustomInput<string> {
8
8
  configuration: ModelSignal<InputCpfCnpjConfiguration>;
9
9
  input: ElementRef<HTMLInputElement>;
10
10
  inputContainer: ElementRef<HTMLDivElement>;
11
- focus(event: MouseEvent): void;
11
+ setFocus(event: MouseEvent | null): void;
12
12
  constructor(elementRef: ElementRef<HTMLInputElement>);
13
13
  writeValue(obj: string): void | Promise<void>;
14
14
  SetValue(obj: string): void;
15
- readonly cpfMask: MaskitoMaskExpression;
16
- readonly cnpjMask: MaskitoMaskExpression;
17
15
  readonly mask: MaskitoOptions;
18
16
  static ɵfac: i0.ɵɵFactoryDeclaration<InputCpfCnpjComponent, never>;
19
17
  static ɵcmp: i0.ɵɵComponentDeclaration<InputCpfCnpjComponent, "input-cpf-cnpj, input-cpf, input-cnpj", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, { "configuration": "configurationChange"; }, never, never, false, never>;
20
18
  }
19
+ export declare function FormatCpfCnpj(value: string): string;
@@ -11,7 +11,7 @@ export declare class InputDateComponent extends CustomInput<string> {
11
11
  configuration: InputSignal<InputDateConfiguration>;
12
12
  input: ElementRef<HTMLInputElement>;
13
13
  inputContainer: ElementRef<HTMLDivElement>;
14
- focus(event: MouseEvent): void;
14
+ setFocus(event: MouseEvent | null): void;
15
15
  options: MaskitoOptions;
16
16
  dtValue: string | null;
17
17
  momentFormat: moment.MomentFormatSpecification;
@@ -9,7 +9,7 @@ export declare class InputDecimalComponent extends CustomInput<number> {
9
9
  divider: Signal<number>;
10
10
  input: ElementRef<HTMLInputElement>;
11
11
  inputContainer: ElementRef<HTMLDivElement>;
12
- focus(event: MouseEvent): void;
12
+ setFocus(event: MouseEvent | null): void;
13
13
  constructor(elementRef: ElementRef);
14
14
  writeValue(obj: number): void | Promise<void>;
15
15
  SetValue(obj: number): void;
@@ -9,7 +9,7 @@ export declare class InputFileComponent extends CustomInput<File | string> {
9
9
  storageService: StorageService;
10
10
  configuration: InputSignal<InputFileConfiguration>;
11
11
  inputContainer: ElementRef<HTMLDivElement>;
12
- focus(event: MouseEvent): void;
12
+ setFocus(event: MouseEvent | null): void;
13
13
  constructor(utilsService: UtilsService, storageService: StorageService);
14
14
  valueString: string;
15
15
  isString: boolean;
@@ -10,7 +10,7 @@ export declare class InputIconComponent extends CustomInput<string> {
10
10
  }[];
11
11
  input: ElementRef<HTMLInputElement>;
12
12
  inputContainer: ElementRef<HTMLDivElement>;
13
- focus(event: MouseEvent): void;
13
+ setFocus(event: MouseEvent | null): void;
14
14
  config: InputSelectConfiguration;
15
15
  constructor(environmentService: EnvironmentService);
16
16
  writeValue(obj: string): void | Promise<void>;
@@ -7,6 +7,12 @@ export declare class SIonLabelTemplateDirective<T> {
7
7
  static ɵdir: i0.ɵɵDirectiveDeclaration<SIonLabelTemplateDirective<any>, "[sionLabelTemplate]", never, {}, {}, never, never, false, never>;
8
8
  }
9
9
  export interface LabelTemplateContext<T> {
10
+ /**
11
+ * O valor do item via bindLabel que está sendo renderizado.
12
+ */
10
13
  $implicit: string;
14
+ /**
15
+ * O item selecionado no componente de input select.
16
+ */
11
17
  item: T;
12
18
  }
@@ -6,6 +6,9 @@ export declare class SIonOptionTemplateDirective<T> {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SIonOptionTemplateDirective<any>, never>;
7
7
  static ɵdir: i0.ɵɵDirectiveDeclaration<SIonOptionTemplateDirective<any>, "[sionOptionTemplate]", never, {}, {}, never, never, false, never>;
8
8
  }
9
- export declare class OptionTemplateContext<T> {
9
+ export interface OptionTemplateContext<T> {
10
+ /**
11
+ * O item naquela opção
12
+ */
10
13
  item: T;
11
14
  }
@@ -1,12 +1,18 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SIonPlaceholderTemplateDirective {
4
- template: TemplateRef<any>;
5
- constructor(template: TemplateRef<any>);
4
+ template: TemplateRef<PlaceholderTemplateContext>;
5
+ constructor(template: TemplateRef<PlaceholderTemplateContext>);
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SIonPlaceholderTemplateDirective, never>;
7
7
  static ɵdir: i0.ɵɵDirectiveDeclaration<SIonPlaceholderTemplateDirective, "[sionPlaceholderTemplate]", never, {}, {}, never, never, false, never>;
8
8
  }
9
9
  export interface PlaceholderTemplateContext {
10
+ /**
11
+ * Placeholder na configuração do componente de input select.
12
+ */
10
13
  $implicit: string;
14
+ /**
15
+ * Placeholder na configuração do componente de input select.
16
+ */
11
17
  placeholder: string;
12
18
  }
@@ -26,7 +26,7 @@ export declare class InputSelectComponent<T = any> extends CustomInput<T | T[]>
26
26
  placeholderTemplate: TemplateRef<PlaceholderTemplateContext>;
27
27
  inputContainer: ElementRef<HTMLDivElement>;
28
28
  inputSelectLabel: ElementRef<HTMLDivElement>;
29
- focus(event: MouseEvent): void;
29
+ setFocus(event: MouseEvent | null): void;
30
30
  constructor();
31
31
  ngOnInit(): Promise<void>;
32
32
  isServiceAtivo: Signal<boolean>;
@@ -80,7 +80,7 @@ export declare class InputSelectDataLoader {
80
80
  constructor(configuration: InputSelectConfiguration);
81
81
  AddComponent(component: InputSelectComponent): void;
82
82
  GetLabel(value: any): string;
83
- private _isLoaded;
83
+ isLoaded: boolean;
84
84
  Refresh(items?: any[]): Promise<void>;
85
85
  items: any[];
86
86
  Load(): Promise<void>;
@@ -6,7 +6,7 @@ export declare class InputStringComponent extends CustomInput<string> {
6
6
  configuration: InputSignal<InputStringConfiguration>;
7
7
  input: ElementRef<HTMLInputElement>;
8
8
  inputContainer: ElementRef<HTMLDivElement>;
9
- focus(event: MouseEvent): void;
9
+ setFocus(event?: MouseEvent | null): void;
10
10
  constructor();
11
11
  writeValue(obj: string): void | Promise<void>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<InputStringComponent, never>;
@@ -8,7 +8,7 @@ export declare class InputTelefoneComponent extends CustomInput<string> {
8
8
  configuration: ModelSignal<InputTelefoneCelularConfiguration>;
9
9
  input: ElementRef<HTMLInputElement>;
10
10
  inputContainer: ElementRef<HTMLDivElement>;
11
- focus(event: MouseEvent): void;
11
+ setFocus(event: MouseEvent | null): void;
12
12
  constructor(elementRef: ElementRef<HTMLInputElement>);
13
13
  writeValue(obj: string): void | Promise<void>;
14
14
  SetValue(obj: string): void;
@@ -16,3 +16,4 @@ export declare class InputTelefoneComponent extends CustomInput<string> {
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTelefoneComponent, never>;
17
17
  static ɵcmp: i0.ɵɵComponentDeclaration<InputTelefoneComponent, "input-telefone, input-celular, input-telefone-celular", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, { "configuration": "configurationChange"; }, never, never, false, never>;
18
18
  }
19
+ export declare function FormatTelefoneCelular(value: string): string;
@@ -6,7 +6,7 @@ export declare class InputTextareaComponent extends CustomInput<string> {
6
6
  configuration: InputSignal<InputTextAreaConfiguration>;
7
7
  input: ElementRef<HTMLTextAreaElement>;
8
8
  inputContainer: ElementRef<HTMLDivElement>;
9
- focus(event: MouseEvent): void;
9
+ setFocus(event: MouseEvent | null): void;
10
10
  constructor();
11
11
  writeValue(obj: string): void | Promise<void>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTextareaComponent, never>;
@@ -4,7 +4,7 @@ import { NavController } from '@ionic/angular';
4
4
  import { Router } from '@angular/router';
5
5
  import { EnvironmentService } from '../../services/environment.service';
6
6
  import { ApiUrlProviderService } from '../../services/web/api-url-provider.service';
7
- import { GenericService } from '../../services/generics.service';
7
+ import { GenericService } from '../../services/generic.service';
8
8
  import { AuthService } from '../../services/auth.service';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class DefaultLoginComponent implements OnInit {
@@ -25,6 +25,7 @@ export declare class SIonPopoverComponent implements OnDestroy, OnInit {
25
25
  private cleanupAutoUpdate?;
26
26
  private popoverInstance?;
27
27
  isVisibleChange: EventEmitter<boolean>;
28
+ private lock;
28
29
  present(event?: Event): Promise<void>;
29
30
  GetComputePositionReturn(refEl: HTMLElement, popEl: HTMLElement, arrowEl: HTMLElement): Promise<ComputePositionReturn>;
30
31
  private CreatePopoverInBody;
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SionCardComponent implements OnInit {
4
+ background: string;
5
+ backdrop: string;
6
+ justify: string;
7
+ constructor();
8
+ ngOnInit(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SionCardComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SionCardComponent, "sion-card", never, { "background": { "alias": "background"; "required": false; }; "backdrop": { "alias": "backdrop"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; }, {}, never, ["[slot=header]", "*"], true, never>;
11
+ }
@@ -3,12 +3,12 @@ import { StepComponent } from './step/step.component';
3
3
  import { CustomInput } from '../inputs/custom-input';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class StepperComponent extends CustomInput<any> implements AfterContentInit {
6
- focus(event: MouseEvent): void;
6
+ setFocus(event: MouseEvent): void;
7
7
  constructor();
8
8
  ngAfterContentInit(): void;
9
9
  lstSteps: QueryList<StepComponent>;
10
10
  writeValue(obj: string): void | Promise<void>;
11
11
  SetValue(obj: any): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "stepper", never, {}, {}, ["lstSteps"], ["*"], false, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "stepper", never, {}, {}, ["lstSteps"], ["step"], false, never>;
14
14
  }
@@ -2,7 +2,7 @@ import { HttpClient, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from
2
2
  import { Observable } from "rxjs";
3
3
  import { ToastController } from "@ionic/angular";
4
4
  import { ApiUrlProviderService } from "../services/web/api-url-provider.service";
5
- import { GenericService } from "../services/generics.service";
5
+ import { GenericService } from "../services/generic.service";
6
6
  import { AuthService } from "../services/auth.service";
7
7
  import { Router } from "@angular/router";
8
8
  import * as i0 from "@angular/core";
package/lib/index.d.ts CHANGED
@@ -88,6 +88,7 @@ export * from '../lib/components/login/login.component';
88
88
  export * from '../lib/components/main-content/main-content.component';
89
89
  export * from '../lib/components/popover/sion-popover/sion-popover.component';
90
90
  export * from '../lib/components/popover/sion-popover.module';
91
+ export * from '../lib/components/sion-card/sion-card.component';
91
92
  export * from '../lib/components/stepper/step/step.component';
92
93
  export * from '../lib/components/stepper/stepper.component';
93
94
  export * from '../lib/components/stepper/stepper.module';
@@ -109,7 +110,7 @@ export * from '../lib/services/web/http.service';
109
110
  export * from '../lib/services/web/storage.service';
110
111
  export * from '../lib/services/auth.service';
111
112
  export * from '../lib/services/environment.service';
112
- export * from '../lib/services/generics.service';
113
+ export * from './services/generic.service';
113
114
  export * from '../lib/services/usuario.service';
114
115
  export * from '../lib/services/utils.service';
115
116
  export * from '../lib/core.module';
@@ -3,7 +3,7 @@ import { FormBuilder } from '@angular/forms';
3
3
  import { NavController } from '@ionic/angular';
4
4
  import { ApiUrlProviderService } from '../services/web/api-url-provider.service';
5
5
  import { HttpServiceAtivo } from '../services/web/http.ativo.service';
6
- import { GenericService } from './generics.service';
6
+ import { GenericService } from './generic.service';
7
7
  import { TableField } from '../classes/inputs/table-field';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class UsuarioService extends HttpServiceAtivo {
@@ -1,20 +1,9 @@
1
- import { NavController } from '@ionic/angular';
2
- import { FormBuilder } from '@angular/forms';
3
- import { HttpClient } from '@angular/common/http';
4
1
  import { Observable } from 'rxjs';
5
2
  import { HttpService, ViewRetorno } from './http.service';
6
- import { ApiUrlProviderService } from './api-url-provider.service';
7
- import { GenericService } from '../generics.service';
8
3
  import { ViewFiltros } from '../../classes/filters/view-filtros';
9
4
  import { TableField } from '../../classes/inputs/table-field';
10
5
  import * as i0 from "@angular/core";
11
6
  export declare abstract class HttpServiceAtivo<V = any> extends HttpService<V> {
12
- protected http: HttpClient;
13
- protected fb: FormBuilder;
14
- protected genericService: GenericService;
15
- protected navController: NavController;
16
- protected apiUrlProviderService: ApiUrlProviderService;
17
- constructor(http: HttpClient, fb: FormBuilder, genericService: GenericService, navController: NavController, apiUrlProviderService: ApiUrlProviderService);
18
7
  /**
19
8
  * Troca o status de ativo da entidade
20
9
  */
@@ -24,7 +13,7 @@ export declare abstract class HttpServiceAtivo<V = any> extends HttpService<V> {
24
13
  * @param vFilter
25
14
  */
26
15
  ListAtivo<T = ViewRetorno>(vFilter?: ViewFiltros): Observable<T>;
27
- /** Table Field padrão de ativo */
16
+ /** Table Field padrão de ativo */
28
17
  get defaultAtivo(): TableField;
29
18
  static ɵfac: i0.ɵɵFactoryDeclaration<HttpServiceAtivo<any>, never>;
30
19
  static ɵprov: i0.ɵɵInjectableDeclaration<HttpServiceAtivo<any>>;