@sapphire-ion/framework 0.30.17 → 1.0.1

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 (105) hide show
  1. package/esm2022/lib/classes/inputs/table-field.mjs +8 -2
  2. package/esm2022/lib/components/default/default-list/list.mjs +1 -1
  3. package/esm2022/lib/components/default/default-table/default-table.component.mjs +18 -6
  4. package/esm2022/lib/components/default/default-table/th-filter/th-filter.component.mjs +12 -11
  5. package/esm2022/lib/components/default/default-view/default-view.component.mjs +10 -10
  6. package/esm2022/lib/components/default/default.module.mjs +12 -4
  7. package/esm2022/lib/components/filter/filter.component.mjs +2 -2
  8. package/esm2022/lib/components/inputs/custom-input.mjs +57 -49
  9. package/esm2022/lib/components/inputs/input-bool/input-bool.component.mjs +31 -34
  10. package/esm2022/lib/components/inputs/input-bool/input-bool.configuration.mjs +4 -4
  11. package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.mjs +33 -46
  12. package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.mjs +2 -2
  13. package/esm2022/lib/components/inputs/input-date/input-date.component.mjs +86 -97
  14. package/esm2022/lib/components/inputs/input-decimal/input-decimal.component.mjs +158 -190
  15. package/esm2022/lib/components/inputs/input-decimal/input-decimal.configuration.mjs +6 -1
  16. package/esm2022/lib/components/inputs/input-file/download-button/download-button.component.mjs +12 -10
  17. package/esm2022/lib/components/inputs/input-file/input-file.component.mjs +60 -98
  18. package/esm2022/lib/components/inputs/input-file/input-file.configuration.mjs +18 -5
  19. package/esm2022/lib/components/inputs/input-provider-factory.mjs +4 -7
  20. package/esm2022/lib/components/inputs/input-select/directives/sion-label-template.directive.mjs +16 -0
  21. package/esm2022/lib/components/inputs/input-select/directives/sion-option-template.directive.mjs +18 -0
  22. package/esm2022/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.mjs +16 -0
  23. package/esm2022/lib/components/inputs/input-select/input-select.component.mjs +233 -264
  24. package/esm2022/lib/components/inputs/input-select/input.select.configuration.mjs +45 -29
  25. package/esm2022/lib/components/inputs/input-string/input-string.component.mjs +27 -42
  26. package/esm2022/lib/components/inputs/input-string/input-string.configuration.mjs +1 -1
  27. package/esm2022/lib/components/inputs/input-textarea/input-textarea.component.mjs +26 -38
  28. package/esm2022/lib/components/inputs/input-textarea/input-textarea.configuration.mjs +7 -0
  29. package/esm2022/lib/components/inputs/inputs.module.mjs +72 -81
  30. package/esm2022/lib/components/login/login-admin/login-admin.component.mjs +1 -1
  31. package/esm2022/lib/components/popover/sion-popover/sion-popover.component.mjs +132 -0
  32. package/esm2022/lib/components/popover/sion-popover.module.mjs +23 -0
  33. package/esm2022/lib/components/popover/sion-popover.service.mjs +33 -0
  34. package/esm2022/lib/components/stepper/step/step.component.mjs +3 -3
  35. package/esm2022/lib/components/stepper/stepper.component.mjs +13 -13
  36. package/esm2022/lib/guards/error.interceptor.mjs +2 -2
  37. package/esm2022/lib/index.mjs +10 -6
  38. package/esm2022/lib/services/utils.service.mjs +3 -3
  39. package/esm2022/lib/services/web/api-url-provider.service.mjs +2 -2
  40. package/esm2022/lib/services/web/http.ativo.service.mjs +2 -2
  41. package/fesm2022/sapphire-ion-framework.mjs +1200 -1737
  42. package/fesm2022/sapphire-ion-framework.mjs.map +1 -1
  43. package/lib/classes/inputs/table-field.d.ts +1 -0
  44. package/lib/components/default/default.module.d.ts +3 -1
  45. package/lib/components/inputs/custom-input.d.ts +26 -22
  46. package/lib/components/inputs/input-bool/input-bool.component.d.ts +13 -16
  47. package/lib/components/inputs/input-bool/input-bool.configuration.d.ts +2 -2
  48. package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.d.ts +13 -18
  49. package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.d.ts +1 -1
  50. package/lib/components/inputs/input-date/input-date.component.d.ts +21 -24
  51. package/lib/components/inputs/input-decimal/input-decimal.component.d.ts +21 -36
  52. package/lib/components/inputs/input-decimal/input-decimal.configuration.d.ts +3 -0
  53. package/lib/components/inputs/input-file/download-button/download-button.component.d.ts +2 -1
  54. package/lib/components/inputs/input-file/input-file.component.d.ts +20 -32
  55. package/lib/components/inputs/input-file/input-file.configuration.d.ts +2 -5
  56. package/lib/components/inputs/input-provider-factory.d.ts +1 -1
  57. package/lib/components/inputs/input-select/directives/sion-label-template.directive.d.ts +12 -0
  58. package/lib/components/inputs/input-select/directives/sion-option-template.directive.d.ts +11 -0
  59. package/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.d.ts +12 -0
  60. package/lib/components/inputs/input-select/input-select.component.d.ts +60 -58
  61. package/lib/components/inputs/input-select/input.select.configuration.d.ts +11 -9
  62. package/lib/components/inputs/input-string/input-string.component.d.ts +11 -16
  63. package/lib/components/inputs/input-textarea/input-textarea.component.d.ts +11 -15
  64. package/lib/components/inputs/input-textarea/input-textarea.configuration.d.ts +4 -0
  65. package/lib/components/inputs/inputs.module.d.ts +18 -21
  66. package/lib/components/popover/sion-popover/sion-popover.component.d.ts +30 -0
  67. package/lib/components/popover/sion-popover.module.d.ts +8 -0
  68. package/lib/components/popover/sion-popover.service.d.ts +12 -0
  69. package/lib/components/stepper/step/step.component.d.ts +1 -1
  70. package/lib/components/stepper/stepper.component.d.ts +3 -6
  71. package/lib/index.d.ts +5 -4
  72. package/lib/services/utils.service.d.ts +1 -1
  73. package/package.json +2 -1
  74. package/themes/compiled-styles.scss +157 -4
  75. package/themes/components/default/default-table/default-table.component.scss +0 -13
  76. package/themes/components/default/default-table/th-filter/th-filter.component.scss +0 -3
  77. package/themes/components/inputs/input-bool/input-bool.component.scss +2 -13
  78. package/themes/components/inputs/input-date/input-date.component.scss +33 -34
  79. package/themes/components/inputs/input-decimal/input-decimal.component.scss +8 -42
  80. package/themes/components/inputs/input-file/input-file.component.scss +16 -2
  81. package/themes/components/inputs/input-select/input-select.component.scss +47 -24
  82. package/themes/components/inputs/input-textarea/input-textarea.component.scss +7 -0
  83. package/themes/components/inputs/inputs.scss +103 -49
  84. package/themes/components/inputs_old/inputs.scss +67 -0
  85. package/themes/components/popover/sion-popover/sion-popover.component.scss +48 -0
  86. package/themes/styles/components.scss +34 -0
  87. package/themes/styles/ionic/ion-datetime.scss +3 -2
  88. package/esm2022/lib/components/inputs/custom-signal-input.mjs +0 -74
  89. package/esm2022/lib/components/inputs/input-color/input-color.component.mjs +0 -487
  90. package/esm2022/lib/components/inputs/input-loading/input-loading.component.mjs +0 -16
  91. package/esm2022/lib/components/inputs/input-select/ISelect.mjs +0 -11
  92. package/esm2022/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.mjs +0 -42
  93. package/esm2022/lib/components/inputs/input-select/input-select-option/input-select-option.component.mjs +0 -46
  94. package/esm2022/lib/components/inputs/input-select/input-select-template.directive.mjs +0 -16
  95. package/lib/components/inputs/custom-signal-input.d.ts +0 -38
  96. package/lib/components/inputs/input-color/input-color.component.d.ts +0 -80
  97. package/lib/components/inputs/input-loading/input-loading.component.d.ts +0 -7
  98. package/lib/components/inputs/input-select/ISelect.d.ts +0 -21
  99. package/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.d.ts +0 -18
  100. package/lib/components/inputs/input-select/input-select-option/input-select-option.component.d.ts +0 -24
  101. package/lib/components/inputs/input-select/input-select-template.directive.d.ts +0 -8
  102. package/themes/components/inputs/input-loading/input-loading.component.scss +0 -0
  103. package/themes/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.scss +0 -0
  104. package/themes/components/inputs/input-select/input-select-option/input-select-option.component.scss +0 -0
  105. /package/themes/components/{inputs → inputs_old}/input-color/input-color.component.scss +0 -0
@@ -13,6 +13,7 @@ export declare class TableField {
13
13
  hiddenView: boolean;
14
14
  hidden: boolean;
15
15
  filter: Comparison[];
16
+ private SelectDisableMultiple;
16
17
  disabledChange(): boolean;
17
18
  constructor(header: string, index: string, formControl: FormControl | null, type: InputType | null, configuration?: InputConfiguration | null, disabled?: boolean);
18
19
  private static readonly dateTypes;
@@ -13,6 +13,8 @@ import * as i11 from "@angular/forms";
13
13
  import * as i12 from "@angular/router";
14
14
  import * as i13 from "../loading/loading.component";
15
15
  import * as i14 from "../../directives/ng-var.directive";
16
+ import * as i15 from "../popover/sion-popover.module";
17
+ import * as i16 from "../content-block/content-block.component";
16
18
  /** Modulo parão, inclui os seguiintes componentes:
17
19
  * - HeaderListComponent,
18
20
  - DefaultListComponent,
@@ -23,6 +25,6 @@ import * as i14 from "../../directives/ng-var.directive";
23
25
  */
24
26
  export declare class DefaultModule {
25
27
  static ɵfac: i0.ɵɵFactoryDeclaration<DefaultModule, never>;
26
- static ɵmod: i0.ɵɵNgModuleDeclaration<DefaultModule, [typeof i1.HeaderListComponent, typeof i2.DefaultListComponent, typeof i3.DefaultViewComponent, typeof i4.HeaderViewComponent, typeof i5.DefaultTableComponent, typeof i6.DefaultPaginationComponent, typeof i7.ThFilterComponent], [typeof i8.IonicModule, typeof i9.CommonModule, typeof i10.InputsModule, typeof i11.ReactiveFormsModule, typeof i12.RouterLink, typeof i11.FormsModule, typeof i12.RouterModule, typeof i12.RouterOutlet, typeof i12.RouterLink, typeof i13.LoadingComponent, typeof i14.NgVarDirective], [typeof i1.HeaderListComponent, typeof i2.DefaultListComponent, typeof i3.DefaultViewComponent, typeof i4.HeaderViewComponent, typeof i5.DefaultTableComponent, typeof i6.DefaultPaginationComponent, typeof i7.ThFilterComponent]>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DefaultModule, [typeof i1.HeaderListComponent, typeof i2.DefaultListComponent, typeof i3.DefaultViewComponent, typeof i4.HeaderViewComponent, typeof i5.DefaultTableComponent, typeof i6.DefaultPaginationComponent, typeof i7.ThFilterComponent], [typeof i8.IonicModule, typeof i9.CommonModule, typeof i10.InputsModule, typeof i11.ReactiveFormsModule, typeof i12.RouterLink, typeof i11.FormsModule, typeof i12.RouterModule, typeof i12.RouterOutlet, typeof i12.RouterLink, typeof i13.LoadingComponent, typeof i14.NgVarDirective, typeof i15.SIonPopoverModule, typeof i16.ContentBlockComponent], [typeof i1.HeaderListComponent, typeof i2.DefaultListComponent, typeof i3.DefaultViewComponent, typeof i4.HeaderViewComponent, typeof i5.DefaultTableComponent, typeof i6.DefaultPaginationComponent, typeof i7.ThFilterComponent]>;
27
29
  static ɵinj: i0.ɵɵInjectorDeclaration<DefaultModule>;
28
30
  }
@@ -1,36 +1,40 @@
1
- import { ElementRef, EventEmitter, OnInit } from "@angular/core";
1
+ import { ElementRef, InputSignal, OnInit, OutputEmitterRef, WritableSignal } from "@angular/core";
2
2
  import { AbstractControl, ControlContainer, ControlValueAccessor } from "@angular/forms";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare abstract class CustomInput<T> implements ControlValueAccessor, OnInit {
5
- id: string;
6
5
  /** Exibe o spinner de carregamento */
7
- loading: boolean;
6
+ loading: WritableSignal<boolean>;
8
7
  /** Se ativo desabilita o Input */
9
- disabled: boolean;
8
+ disabled: WritableSignal<boolean>;
10
9
  /** Indica se o formulário foi enviado */
11
- submitted: boolean;
10
+ submitted: WritableSignal<boolean>;
12
11
  /** Titulo do Input */
13
- label: string;
14
- /** Torna o input obrigatório (Utiliza-se com ngModel) */
15
- required: boolean;
16
- writeValue(obj: T): void;
17
- _model: T | null | undefined;
18
- get model(): T | any;
19
- set model(value: T | any);
12
+ label: InputSignal<string>;
13
+ /** Torna o input obrigatorio */
14
+ required: WritableSignal<boolean>;
15
+ abstract writeValue(obj: T): void | Promise<void>;
16
+ abstract focus(event: MouseEvent): void;
17
+ value: WritableSignal<T | undefined>;
18
+ /** @virtual */
19
+ SetValue(obj: T): void;
20
20
  formControlName: string;
21
21
  controlContainer: ControlContainer;
22
22
  control: AbstractControl;
23
23
  protected elementRef: ElementRef;
24
- ngOnInit(): void;
25
- private RunValidation;
26
- invalid: boolean;
27
- blurEmitter: EventEmitter<T>;
28
- changeEmitter: EventEmitter<T>;
24
+ constructor();
25
+ /** @virtual */
26
+ ngOnInit(): void | Promise<void>;
27
+ protected runValidation(): void;
28
+ protected invalid: boolean;
29
+ /** Acionado quando um elemento perde o foco. */
30
+ blur: OutputEmitterRef<T>;
31
+ /** Emitido quando o valor é alterado. */
32
+ change: OutputEmitterRef<T>;
29
33
  propagateChange(obj: T): void;
30
- _onChange: Function;
31
- _onTouch: Function;
32
- registerOnChange(fn: (value: any) => void): void;
33
- registerOnTouched(fn: (value: any) => void): void;
34
+ onChange: (value: T) => void;
35
+ onTouch: (value: T) => void;
36
+ registerOnChange(fn: (value: T) => void): void;
37
+ registerOnTouched(fn: (value: T) => void): void;
34
38
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomInput<any>, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomInput<any>, "ng-component", never, { "id": { "alias": "id"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "control": { "alias": "formControl"; "required": false; }; }, { "blurEmitter": "blur"; "changeEmitter": "change"; }, never, never, false, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomInput<any>, "ng-component", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "submitted": { "alias": "submitted"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; }; "control": { "alias": "formControl"; "required": false; }; }, { "loading": "loadingChange"; "disabled": "disabledChange"; "submitted": "submittedChange"; "required": "requiredChange"; "blur": "blur"; "change": "change"; }, never, never, false, never>;
36
40
  }
@@ -1,19 +1,16 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { ControlContainer } from '@angular/forms';
3
- import { InputBoolConfiguration, InputBoolType } from './input-bool.configuration';
1
+ import { ElementRef, InputSignal } from '@angular/core';
2
+ import { InputBoolConfiguration } from './input-bool.configuration';
4
3
  import { CustomInput } from '../custom-input';
4
+ import { IonCheckbox, IonToggle } from '@ionic/angular';
5
5
  import * as i0 from "@angular/core";
6
- export declare class InputBoolComponent extends CustomInput<boolean> implements OnInit {
7
- controlContainer: ControlContainer;
8
- elementRef: ElementRef;
9
- configuration: InputBoolConfiguration;
10
- types: typeof InputBoolType;
11
- constructor(controlContainer: ControlContainer, elementRef: ElementRef);
12
- ngOnInit(): Promise<void>;
13
- get model(): boolean;
14
- set model(value: boolean);
15
- setModel(value: boolean): void;
16
- writeValue(value: boolean): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<InputBoolComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<InputBoolComponent, "input-bool", never, { "configuration": { "alias": "configuration"; "required": false; }; }, {}, never, never, false, never>;
6
+ export declare class NewInputBoolComponent extends CustomInput<boolean> {
7
+ configuration: InputSignal<InputBoolConfiguration>;
8
+ ionCheckbox: ElementRef<IonCheckbox>;
9
+ ionToggle: ElementRef<IonToggle>;
10
+ inputContainer: ElementRef<HTMLDivElement>;
11
+ focus(event: MouseEvent): void;
12
+ constructor();
13
+ writeValue(obj: boolean): void | Promise<void>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewInputBoolComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewInputBoolComponent, "input-bool", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
19
16
  }
@@ -12,6 +12,6 @@ export declare class InputBoolConfiguration {
12
12
  type?: InputBoolType);
13
13
  }
14
14
  export declare enum InputBoolType {
15
- checkbox = "checkbox",
16
- toggle = "toogle"
15
+ Checkbox = "checkbox",
16
+ Toggle = "toogle"
17
17
  }
@@ -1,24 +1,19 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { ControlContainer } from '@angular/forms';
3
- import { MaskitoOptions, MaskitoElementPredicate } from '@maskito/core';
4
- import { MaskitoMaskExpression } from '@maskito/core/src/lib/types';
5
- import { InputCpfCnpjConfiguration } from './input-cpf-cnpj.configuration';
1
+ import { ElementRef, ModelSignal } from '@angular/core';
2
+ import { MaskitoMaskExpression, MaskitoOptions } from '@maskito/core';
6
3
  import { CustomInput } from '../custom-input';
4
+ import { InputCpfCnpjConfiguration } from './input-cpf-cnpj.configuration';
7
5
  import * as i0 from "@angular/core";
8
- export declare class InputCpfCnpjComponent extends CustomInput<string> implements OnInit {
9
- controlContainer: ControlContainer;
10
- elementRef: ElementRef;
11
- configuration: InputCpfCnpjConfiguration;
12
- constructor(controlContainer: ControlContainer, elementRef: ElementRef);
13
- ngOnInit(): Promise<void>;
14
- writeValue(value: string): void;
15
- get model(): string;
16
- set model(value: string);
17
- setModel(value: any): void;
6
+ export declare class NewInputCpfCnpjComponent extends CustomInput<string> {
7
+ protected elementRef: ElementRef<HTMLInputElement>;
8
+ configuration: ModelSignal<InputCpfCnpjConfiguration>;
9
+ input: ElementRef<HTMLInputElement>;
10
+ inputContainer: ElementRef<HTMLDivElement>;
11
+ focus(event: MouseEvent): void;
12
+ constructor(elementRef: ElementRef<HTMLInputElement>);
13
+ writeValue(obj: string): void | Promise<void>;
18
14
  readonly cpfMask: MaskitoMaskExpression;
19
15
  readonly cnpjMask: MaskitoMaskExpression;
20
16
  readonly mask: MaskitoOptions;
21
- readonly maskPredicate: MaskitoElementPredicate;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<InputCpfCnpjComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<InputCpfCnpjComponent, "input-cpf-cnpj, input-cpf, input-cnpj", never, { "configuration": { "alias": "configuration"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewInputCpfCnpjComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewInputCpfCnpjComponent, "input-cpf-cnpj, input-cpf, input-cnpj", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, { "configuration": "configurationChange"; }, never, never, false, never>;
24
19
  }
@@ -1,4 +1,4 @@
1
- export type CPFCnpj = 'CPF' | 'CNPJ' | 'CPF/CNPJ';
1
+ export type CPFCnpj = 'CPF' | 'CNPJ' | 'CPFCNPJ';
2
2
  export declare class InputCpfCnpjConfiguration {
3
3
  type: CPFCnpj;
4
4
  constructor(type?: CPFCnpj);
@@ -1,30 +1,27 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { ControlContainer } from '@angular/forms';
3
- import { IonModal } from '@ionic/angular';
1
+ import { ElementRef, InputSignal } from '@angular/core';
2
+ import { MaskitoOptions } from '@maskito/core';
3
+ import moment from 'moment';
4
4
  import { InputDateConfiguration } from './input-date.configuration';
5
5
  import { CustomInput } from '../custom-input';
6
+ import { IonDatetime, IonModal } from '@ionic/angular';
7
+ import { SIonPopoverComponent } from '../../popover/sion-popover/sion-popover.component';
6
8
  import * as i0 from "@angular/core";
7
- export declare class InputDateComponent extends CustomInput<string> implements OnInit {
8
- controlContainer: ControlContainer;
9
+ export declare class NewInputDateComponent extends CustomInput<string> {
9
10
  elementRef: ElementRef;
10
- configuration: InputDateConfiguration;
11
- constructor(controlContainer: ControlContainer, elementRef: ElementRef);
11
+ configuration: InputSignal<InputDateConfiguration>;
12
+ input: ElementRef<HTMLInputElement>;
13
+ inputContainer: ElementRef<HTMLDivElement>;
14
+ focus(event: MouseEvent): void;
15
+ options: MaskitoOptions;
16
+ dtValue: string | null;
17
+ momentFormat: moment.MomentFormatSpecification;
18
+ constructor(elementRef: ElementRef);
12
19
  presentation: "date-time" | "date" | "time" | string;
13
- private transform;
14
- HandleSelector(): void;
15
- id_modal: string;
16
- ngOnInit(): Promise<void>;
17
- dateModel: string | null;
18
- writeValue(value: string | null): void;
19
- get model(): string;
20
- set model(value: string);
21
- setModel(value: string): void;
22
- get _val(): string;
23
- set _val(v: string);
24
- get modal(): IonModal;
25
- Open(): void;
26
- Clear(): void;
27
- DateTimeChange(): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<InputDateComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<InputDateComponent, "input-date, input-date-time, input-time", never, { "configuration": { "alias": "configuration"; "required": false; }; }, {}, never, never, false, never>;
20
+ SetValue(value: string, fromDateTime?: boolean): void;
21
+ datetime: IonDatetime;
22
+ writeValue(obj: string): void | Promise<void>;
23
+ Present(modal: IonModal, popover: SIonPopoverComponent, event: MouseEvent): Promise<void>;
24
+ ChangeDate(v: string | string[]): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewInputDateComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewInputDateComponent, "input-date, input-date-time, input-time", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
30
27
  }
@@ -1,41 +1,26 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { ControlContainer } from '@angular/forms';
3
- import { InputCurrencyConfiguration, InputDecimalConfiguration, InputNumberConfiguration } from './input-decimal.configuration';
1
+ import { ElementRef, ModelSignal, Signal } from '@angular/core';
2
+ import { InputDecimalConfiguration } from './input-decimal.configuration';
4
3
  import { CustomInput } from '../custom-input';
5
4
  import * as i0 from "@angular/core";
6
- export declare class InputDecimalComponent extends CustomInput<number> implements OnInit {
7
- controlContainer: ControlContainer;
5
+ export declare class NewInputDecimalComponent extends CustomInput<number> {
8
6
  elementRef: ElementRef;
9
- configuration: InputDecimalConfiguration | InputNumberConfiguration | InputCurrencyConfiguration;
10
- constructor(controlContainer: ControlContainer, elementRef: ElementRef);
11
- ngOnInit(): Promise<void>;
12
- digitsInfo: string;
13
- setDigitsInfo(): void;
14
- HandleSelector(): void;
15
- writeValue(value: number): void;
16
- get model(): string;
17
- set model(value: number);
18
- onKeyDown(event: any): void;
19
- onPaste(event: any): void;
20
- key: string | null | undefined;
21
- altKey: boolean;
22
- ctrlKey: boolean;
23
- shiftKey: boolean;
24
- startPosition: number;
25
- endPosition: number;
26
- value: string;
27
- event: any;
28
- eventType: number;
29
- atLeft: string;
30
- atRight: string;
31
- HandleBrowser(): Promise<void> | Promise<boolean>;
32
- divider: number;
33
- setDivider(): void;
34
- HandleNumber(): Promise<boolean>;
35
- HandleNegative(): Promise<boolean>;
36
- HandleEspecial(): Promise<boolean>;
37
- HandleCopy(): Promise<void>;
7
+ configuration: ModelSignal<InputDecimalConfiguration>;
8
+ digitsInfo: Signal<string>;
9
+ divider: Signal<number>;
10
+ input: ElementRef<HTMLInputElement>;
11
+ inputContainer: ElementRef<HTMLDivElement>;
12
+ focus(event: MouseEvent): void;
13
+ constructor(elementRef: ElementRef);
14
+ writeValue(obj: number): void | Promise<void>;
15
+ SetValue(obj: number): void;
16
+ SetValueString(): void;
17
+ valueString: string;
18
+ onPaste(event: ClipboardEvent): void;
19
+ onKeyDown(event: KeyboardEvent): Promise<void>;
20
+ HandleNegative(event: KeyboardEvent, selectionStart: number, selectionEnd: number, value: string, atLeft: string, atRight: string): Promise<void>;
21
+ HandleNumber(event: KeyboardEvent, selectionStart: number, selectionEnd: number, value: string, atLeft: string, atRight: string): Promise<void>;
38
22
  SanitizeValue(f: string): number;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<InputDecimalComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<InputDecimalComponent, "input-decimal, input-number, input-currency, inout-percentage", never, { "configuration": { "alias": "configuration"; "required": false; }; }, {}, never, never, false, never>;
23
+ HandleEspecial(event: KeyboardEvent, selectionStart: number, selectionEnd: number, value: string, atLeft: string, atRight: string): Promise<void>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewInputDecimalComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewInputDecimalComponent, "input-decimal, input-number, input-currency, input-percentage", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, { "configuration": "configurationChange"; }, never, never, false, never>;
41
26
  }
@@ -23,3 +23,6 @@ export declare class InputNumberConfiguration extends InputDecimalConfiguration
23
23
  export declare class InputCurrencyConfiguration extends InputDecimalConfiguration {
24
24
  constructor(prefix?: string, sufix?: string, thousandSeparator?: string);
25
25
  }
26
+ export declare class InputPercentageConfiguration extends InputDecimalConfiguration {
27
+ constructor(prefix?: string, sufix?: string, thousandSeparator?: string);
28
+ }
@@ -11,6 +11,7 @@ export declare class DownloadButtonComponent implements ControlValueAccessor {
11
11
  expand: string;
12
12
  value: ModelSignal<string>;
13
13
  size: string;
14
+ color: string;
14
15
  params: any;
15
16
  disabled: boolean;
16
17
  post: boolean;
@@ -32,5 +33,5 @@ export declare class DownloadButtonComponent implements ControlValueAccessor {
32
33
  SetNotLoading(path: string): void;
33
34
  isLoading(path: string): boolean;
34
35
  static ɵfac: i0.ɵɵFactoryDeclaration<DownloadButtonComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<DownloadButtonComponent, "download-button", never, { "expand": { "alias": "expand"; "required": false; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; }; "params": { "alias": "params"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "post": { "alias": "post"; "required": false; }; "configuration": { "alias": "configuration"; "required": false; }; }, { "value": "valueChange"; }, never, never, false, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<DownloadButtonComponent, "download-button", never, { "expand": { "alias": "expand"; "required": false; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "params": { "alias": "params"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "post": { "alias": "post"; "required": false; }; "configuration": { "alias": "configuration"; "required": false; }; }, { "value": "valueChange"; }, never, never, false, never>;
36
37
  }
@@ -1,39 +1,27 @@
1
- import { ElementRef } from '@angular/core';
2
- import { ControlContainer } from '@angular/forms';
1
+ import { ElementRef, InputSignal } from '@angular/core';
2
+ import { CustomInput } from '../custom-input';
3
3
  import { InputFileConfiguration } from './input-file.configuration';
4
- import { ApiUrlProviderService } from '../../../services/web/api-url-provider.service';
5
4
  import { UtilsService } from '../../../services/utils.service';
6
- import { CustomInput } from '../custom-input';
7
5
  import { StorageService } from '../../../services/web/storage.service';
8
6
  import * as i0 from "@angular/core";
9
- export declare class InputFileComponent extends CustomInput<File[] | string> {
10
- controlContainer: ControlContainer;
11
- elementRef: ElementRef;
7
+ export declare class NewInputFileComponent extends CustomInput<File | string> {
12
8
  private utilsService;
13
- private apiUrlProviderService;
14
9
  storageService: StorageService;
15
- configuration: InputFileConfiguration;
16
- constructor(controlContainer: ControlContainer, elementRef: ElementRef, utilsService: UtilsService, apiUrlProviderService: ApiUrlProviderService, storageService: StorageService);
17
- guid: string;
18
- apiUrl: string;
19
- ngOnInit(): Promise<void>;
20
- writeValue(value: File[] | string): void;
21
- get model(): File[] | string;
22
- set model(value: File[] | string);
23
- setModel(value: File[] | string): void;
24
- lstFiles: any[];
25
- Upload(): void;
26
- Download(value: string): void;
27
- PopoverImg(): boolean;
28
- ExtensionIsImage(v: string): boolean;
29
- get src(): string;
30
- get isCloud(): boolean;
31
- Sanitize(v: any): string;
32
- lstLoading: string[];
33
- SetLoading(path: string): void;
34
- SetNotLoading(path: string): void;
35
- isLoading(path: string): boolean;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<InputFileComponent, [{ optional: true; host: true; skipSelf: true; }, null, null, null, null]>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<InputFileComponent, "input-file", never, { "configuration": { "alias": "configuration"; "required": false; }; }, {}, never, never, false, never>;
10
+ configuration: InputSignal<InputFileConfiguration>;
11
+ inputContainer: ElementRef<HTMLDivElement>;
12
+ focus(event: MouseEvent): void;
13
+ constructor(utilsService: UtilsService, storageService: StorageService);
14
+ valueString: string;
15
+ isString: boolean;
16
+ isImage: boolean;
17
+ objectURL: string | null;
18
+ writeValue(obj: File | string): void | Promise<void>;
19
+ SetValue(value: File | string): void;
20
+ SetValueString(): void;
21
+ Upload(): Promise<void>;
22
+ Clear(event: MouseEvent): void;
23
+ Download(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewInputFileComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewInputFileComponent, "input-file", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
38
26
  }
39
- export declare const imageTypes: string[];
27
+ export declare const lstImage: string[];
@@ -1,11 +1,8 @@
1
1
  export declare class InputFileConfiguration {
2
2
  /** Tipos de arquivos que podem ser selecionados */
3
3
  types: any | [];
4
- /** Declara se mais do que um arquivo pode ser selecionado */
5
- multiple: boolean;
6
4
  constructor(
7
5
  /** Tipos de arquivos que podem ser selecionados */
8
- types?: any | [],
9
- /** Declara se mais do que um arquivo pode ser selecionado */
10
- multiple?: boolean);
6
+ types?: any | []);
11
7
  }
8
+ export declare const lstImageTypes: string[];
@@ -1,4 +1,4 @@
1
1
  import { Provider } from "@angular/core";
2
2
  export declare class InputProviderFactory {
3
- static GetProvider(component: unknown, providers?: Provider[]): Provider[];
3
+ static GetProviders(component: unknown): Provider[];
4
4
  }
@@ -0,0 +1,12 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SIonLabelTemplateDirective<T> {
4
+ template: TemplateRef<LabelTemplateContext<T>>;
5
+ constructor(template: TemplateRef<LabelTemplateContext<T>>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SIonLabelTemplateDirective<any>, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SIonLabelTemplateDirective<any>, "[sionLabelTemplate]", never, {}, {}, never, never, false, never>;
8
+ }
9
+ export interface LabelTemplateContext<T> {
10
+ $implicit: string;
11
+ item: T;
12
+ }
@@ -0,0 +1,11 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SIonOptionTemplateDirective<T> {
4
+ template: TemplateRef<OptionTemplateContext<T>>;
5
+ constructor(template: TemplateRef<OptionTemplateContext<T>>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SIonOptionTemplateDirective<any>, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SIonOptionTemplateDirective<any>, "[sionOptionTemplate]", never, {}, {}, never, never, false, never>;
8
+ }
9
+ export declare class OptionTemplateContext<T> {
10
+ item: T;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SIonPlaceholderTemplateDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SIonPlaceholderTemplateDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SIonPlaceholderTemplateDirective, "[sionPlaceholderTemplate]", never, {}, {}, never, never, false, never>;
8
+ }
9
+ export interface PlaceholderTemplateContext {
10
+ $implicit: string;
11
+ placeholder: string;
12
+ }
@@ -1,66 +1,68 @@
1
- import { ElementRef, ModelSignal, OnDestroy, OnInit, QueryList, Signal } from '@angular/core';
2
- import { IonInput, IonPopover, IonSearchbar } from '@ionic/angular';
3
- import { ControlContainer, ControlValueAccessor } from '@angular/forms';
4
- import { Observable, Subscription } from 'rxjs';
1
+ import { AfterViewInit, ElementRef, Injector, InputSignal, ModelSignal, Signal, TemplateRef, WritableSignal } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { IonModal } from '@ionic/angular';
5
4
  import { InputSelectConfiguration } from './input.select.configuration';
6
- import { InputSelectInternalOptionComponent } from './input-select-internal-option/input-select-internal-option.component';
7
- import { InputSelectOptionComponent } from './input-select-option/input-select-option.component';
8
- import { ISelect } from './ISelect';
9
- import { CustomSignalInput } from '../custom-signal-input';
5
+ import { SIonPopoverComponent } from '../../popover/sion-popover/sion-popover.component';
6
+ import { CustomInput } from '../custom-input';
7
+ import { PlaceholderTemplateContext } from './directives/sion-placeholder-template.directive';
8
+ import { OptionTemplateContext } from './directives/sion-option-template.directive';
9
+ import { LabelTemplateContext } from './directives/sion-label-template.directive';
10
10
  import * as i0 from "@angular/core";
11
- export declare class InputSelectComponent extends CustomSignalInput<any> implements OnInit, OnDestroy, ControlValueAccessor, ISelect {
12
- controlContainer: ControlContainer;
13
- elementRef: ElementRef;
11
+ export declare class NewInputSelectComponent<T = any> extends CustomInput<T | T[]> implements AfterViewInit {
14
12
  /** Items disponíveis no select */
15
13
  items: ModelSignal<any[]>;
16
14
  /** Configuração do select */
17
- configuration: ModelSignal<InputSelectConfiguration>;
15
+ configuration: InputSignal<InputSelectConfiguration>;
18
16
  loadingFromLoader: boolean;
19
- lstOptions: QueryList<InputSelectOptionComponent>;
20
- lstInternalOptions: QueryList<InputSelectInternalOptionComponent>;
21
- cdkVirtualScrollViewport: ElementRef<any>;
22
- private useDefaultModelOptions;
23
- protected bindValue: Signal<((args: any) => any)>;
24
- protected bindLabel: Signal<((args: any) => string)>;
25
- constructor(controlContainer: ControlContainer, elementRef: ElementRef);
17
+ currentLabel: string | undefined;
18
+ currentItems: any | ItemValue<any>[] | undefined;
19
+ SetCurrentItemLabel(): void;
20
+ lstOptionsItemValue: Signal<ItemValue<any>[]>;
21
+ lstOptions: ItemValue<any>[];
22
+ UpdateLstOptions(search: string): void;
23
+ UpdateSelected(): void;
24
+ labelTemplate: TemplateRef<LabelTemplateContext<T>>;
25
+ optionTemplate: TemplateRef<OptionTemplateContext<T>>;
26
+ placeholderTemplate: TemplateRef<PlaceholderTemplateContext>;
27
+ inputContainer: ElementRef<HTMLDivElement>;
28
+ inputSelectLabel: ElementRef<HTMLDivElement>;
29
+ focus(event: MouseEvent): void;
30
+ constructor();
31
+ ngOnInit(): Promise<void>;
32
+ isServiceAtivo: Signal<boolean>;
33
+ somenteAtivos: WritableSignal<boolean>;
34
+ HandleKeyboardEvent(event: KeyboardEvent): void;
35
+ selectedIndex: number | undefined;
36
+ inputSearchBar: ElementRef<HTMLInputElement>;
37
+ searchBarControl: FormControl;
38
+ searchValue: WritableSignal<string>;
39
+ private searchBarSubscription;
40
+ private destroy$;
41
+ injector: Injector;
42
+ ngAfterViewInit(): void;
43
+ ClearSearchBar(): void;
26
44
  ngOnDestroy(): void;
27
- updateInterval: Observable<number> | null;
28
- updateSubscription: Subscription;
29
- lastItemsQtd: number | null;
30
- ngOnInit(): void;
31
- Clear(): void;
32
- protected CurrentLabel: string;
33
- protected CurrentlyNoValue: boolean;
34
- Update(): void;
35
- private UpdateCurrentLabel;
36
- private UpdateSelected;
37
- IsSelected(item: any): boolean;
38
- /** Applies only on multiple */
39
- protected GetSelectedItens(): any[];
40
- _model: any;
41
- get model(): any;
42
- set model(value: any);
43
- protected SetModel(value: any): void;
44
- protected SearchChanged(): void;
45
- protected GetUseDefaultModelOptions(): boolean;
46
- UpdateUseDefaultModelOptions(): void;
47
- writeValue(obj: any): void;
48
- Select(item: any): void;
49
- protected interfaceOptions: {
50
- cssClass: string;
51
- };
52
- inputContainer: ElementRef<HTMLElement>;
53
- ionPopoverComponent: IonPopover;
54
- ionPopoverElement: ElementRef<HTMLElement>;
55
- searchbarComponent: IonSearchbar;
56
- PresentPopover($event: MouseEvent): Promise<void>;
57
- protected Search: ModelSignal<string>;
58
- protected lstSearchItens: Signal<any[]>;
59
- inputComponent: IonInput;
60
- itemComponent: ElementRef<HTMLElement>;
61
- HandleKeyboardEvent(event: KeyboardEvent): Promise<void>;
62
- SetFocusedElement(focusedModel: any, scroll?: boolean): void;
63
- focusedModel: any | null;
64
- static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
65
- static ɵcmp: i0.ɵɵComponentDeclaration<InputSelectComponent, "input-select", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; "Search": { "alias": "Search"; "required": false; "isSignal": true; }; }, { "items": "itemsChange"; "configuration": "configurationChange"; "Search": "SearchChange"; }, ["lstOptions"], ["input-select-option"], false, never>;
45
+ writeValue(obj: T | T[]): void | Promise<void>;
46
+ SetValue(obj: T | T[]): void;
47
+ Clear(event: MouseEvent): void;
48
+ Select(itemValue: ItemValue<T>): void;
49
+ selectContent: ElementRef<HTMLDivElement>;
50
+ popover: SIonPopoverComponent;
51
+ modal: IonModal;
52
+ floatingVisible: boolean;
53
+ Present(event: Event): Promise<void>;
54
+ Dismiss(): Promise<void>;
55
+ OnDismiss(): void;
56
+ OnPresent(): void;
57
+ isArray(obj: any): obj is any[];
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewInputSelectComponent<any>, never>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewInputSelectComponent<any>, "input-select", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, { "items": "itemsChange"; }, ["labelTemplate", "optionTemplate", "placeholderTemplate"], never, false, never>;
66
60
  }
61
+ declare class ItemValue<T> {
62
+ label: string;
63
+ value: T;
64
+ selected: boolean;
65
+ item: any;
66
+ disabled: boolean;
67
+ }
68
+ export {};