@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.
- package/esm2022/lib/classes/inputs/table-field.mjs +8 -2
- package/esm2022/lib/components/default/default-list/list.mjs +1 -1
- package/esm2022/lib/components/default/default-table/default-table.component.mjs +18 -6
- package/esm2022/lib/components/default/default-table/th-filter/th-filter.component.mjs +12 -11
- package/esm2022/lib/components/default/default-view/default-view.component.mjs +10 -10
- package/esm2022/lib/components/default/default.module.mjs +12 -4
- package/esm2022/lib/components/filter/filter.component.mjs +2 -2
- package/esm2022/lib/components/inputs/custom-input.mjs +57 -49
- package/esm2022/lib/components/inputs/input-bool/input-bool.component.mjs +31 -34
- package/esm2022/lib/components/inputs/input-bool/input-bool.configuration.mjs +4 -4
- package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.mjs +33 -46
- package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.mjs +2 -2
- package/esm2022/lib/components/inputs/input-date/input-date.component.mjs +86 -97
- package/esm2022/lib/components/inputs/input-decimal/input-decimal.component.mjs +158 -190
- package/esm2022/lib/components/inputs/input-decimal/input-decimal.configuration.mjs +6 -1
- package/esm2022/lib/components/inputs/input-file/download-button/download-button.component.mjs +12 -10
- package/esm2022/lib/components/inputs/input-file/input-file.component.mjs +60 -98
- package/esm2022/lib/components/inputs/input-file/input-file.configuration.mjs +18 -5
- package/esm2022/lib/components/inputs/input-provider-factory.mjs +4 -7
- package/esm2022/lib/components/inputs/input-select/directives/sion-label-template.directive.mjs +16 -0
- package/esm2022/lib/components/inputs/input-select/directives/sion-option-template.directive.mjs +18 -0
- package/esm2022/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.mjs +16 -0
- package/esm2022/lib/components/inputs/input-select/input-select.component.mjs +233 -264
- package/esm2022/lib/components/inputs/input-select/input.select.configuration.mjs +45 -29
- package/esm2022/lib/components/inputs/input-string/input-string.component.mjs +27 -42
- package/esm2022/lib/components/inputs/input-string/input-string.configuration.mjs +1 -1
- package/esm2022/lib/components/inputs/input-textarea/input-textarea.component.mjs +26 -38
- package/esm2022/lib/components/inputs/input-textarea/input-textarea.configuration.mjs +7 -0
- package/esm2022/lib/components/inputs/inputs.module.mjs +72 -81
- package/esm2022/lib/components/login/login-admin/login-admin.component.mjs +1 -1
- package/esm2022/lib/components/popover/sion-popover/sion-popover.component.mjs +132 -0
- package/esm2022/lib/components/popover/sion-popover.module.mjs +23 -0
- package/esm2022/lib/components/popover/sion-popover.service.mjs +33 -0
- package/esm2022/lib/components/stepper/step/step.component.mjs +3 -3
- package/esm2022/lib/components/stepper/stepper.component.mjs +13 -13
- package/esm2022/lib/guards/error.interceptor.mjs +2 -2
- package/esm2022/lib/index.mjs +10 -6
- package/esm2022/lib/services/utils.service.mjs +3 -3
- package/esm2022/lib/services/web/api-url-provider.service.mjs +2 -2
- package/esm2022/lib/services/web/http.ativo.service.mjs +2 -2
- package/fesm2022/sapphire-ion-framework.mjs +1200 -1737
- package/fesm2022/sapphire-ion-framework.mjs.map +1 -1
- package/lib/classes/inputs/table-field.d.ts +1 -0
- package/lib/components/default/default.module.d.ts +3 -1
- package/lib/components/inputs/custom-input.d.ts +26 -22
- package/lib/components/inputs/input-bool/input-bool.component.d.ts +13 -16
- package/lib/components/inputs/input-bool/input-bool.configuration.d.ts +2 -2
- package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.d.ts +13 -18
- package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.d.ts +1 -1
- package/lib/components/inputs/input-date/input-date.component.d.ts +21 -24
- package/lib/components/inputs/input-decimal/input-decimal.component.d.ts +21 -36
- package/lib/components/inputs/input-decimal/input-decimal.configuration.d.ts +3 -0
- package/lib/components/inputs/input-file/download-button/download-button.component.d.ts +2 -1
- package/lib/components/inputs/input-file/input-file.component.d.ts +20 -32
- package/lib/components/inputs/input-file/input-file.configuration.d.ts +2 -5
- package/lib/components/inputs/input-provider-factory.d.ts +1 -1
- package/lib/components/inputs/input-select/directives/sion-label-template.directive.d.ts +12 -0
- package/lib/components/inputs/input-select/directives/sion-option-template.directive.d.ts +11 -0
- package/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.d.ts +12 -0
- package/lib/components/inputs/input-select/input-select.component.d.ts +60 -58
- package/lib/components/inputs/input-select/input.select.configuration.d.ts +11 -9
- package/lib/components/inputs/input-string/input-string.component.d.ts +11 -16
- package/lib/components/inputs/input-textarea/input-textarea.component.d.ts +11 -15
- package/lib/components/inputs/input-textarea/input-textarea.configuration.d.ts +4 -0
- package/lib/components/inputs/inputs.module.d.ts +18 -21
- package/lib/components/popover/sion-popover/sion-popover.component.d.ts +30 -0
- package/lib/components/popover/sion-popover.module.d.ts +8 -0
- package/lib/components/popover/sion-popover.service.d.ts +12 -0
- package/lib/components/stepper/step/step.component.d.ts +1 -1
- package/lib/components/stepper/stepper.component.d.ts +3 -6
- package/lib/index.d.ts +5 -4
- package/lib/services/utils.service.d.ts +1 -1
- package/package.json +2 -1
- package/themes/compiled-styles.scss +157 -4
- package/themes/components/default/default-table/default-table.component.scss +0 -13
- package/themes/components/default/default-table/th-filter/th-filter.component.scss +0 -3
- package/themes/components/inputs/input-bool/input-bool.component.scss +2 -13
- package/themes/components/inputs/input-date/input-date.component.scss +33 -34
- package/themes/components/inputs/input-decimal/input-decimal.component.scss +8 -42
- package/themes/components/inputs/input-file/input-file.component.scss +16 -2
- package/themes/components/inputs/input-select/input-select.component.scss +47 -24
- package/themes/components/inputs/input-textarea/input-textarea.component.scss +7 -0
- package/themes/components/inputs/inputs.scss +103 -49
- package/themes/components/inputs_old/inputs.scss +67 -0
- package/themes/components/popover/sion-popover/sion-popover.component.scss +48 -0
- package/themes/styles/components.scss +34 -0
- package/themes/styles/ionic/ion-datetime.scss +3 -2
- package/esm2022/lib/components/inputs/custom-signal-input.mjs +0 -74
- package/esm2022/lib/components/inputs/input-color/input-color.component.mjs +0 -487
- package/esm2022/lib/components/inputs/input-loading/input-loading.component.mjs +0 -16
- package/esm2022/lib/components/inputs/input-select/ISelect.mjs +0 -11
- package/esm2022/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.mjs +0 -42
- package/esm2022/lib/components/inputs/input-select/input-select-option/input-select-option.component.mjs +0 -46
- package/esm2022/lib/components/inputs/input-select/input-select-template.directive.mjs +0 -16
- package/lib/components/inputs/custom-signal-input.d.ts +0 -38
- package/lib/components/inputs/input-color/input-color.component.d.ts +0 -80
- package/lib/components/inputs/input-loading/input-loading.component.d.ts +0 -7
- package/lib/components/inputs/input-select/ISelect.d.ts +0 -21
- package/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.d.ts +0 -18
- package/lib/components/inputs/input-select/input-select-option/input-select-option.component.d.ts +0 -24
- package/lib/components/inputs/input-select/input-select-template.directive.d.ts +0 -8
- package/themes/components/inputs/input-loading/input-loading.component.scss +0 -0
- package/themes/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.scss +0 -0
- package/themes/components/inputs/input-select/input-select-option/input-select-option.component.scss +0 -0
- /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,
|
|
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
|
|
15
|
-
required: boolean
|
|
16
|
-
writeValue(obj: T): void
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
registerOnChange(fn: (value:
|
|
33
|
-
registerOnTouched(fn: (value:
|
|
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, { "
|
|
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,
|
|
2
|
-
import {
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
}
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import { ElementRef,
|
|
2
|
-
import {
|
|
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
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
22
|
-
static
|
|
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,30 +1,27 @@
|
|
|
1
|
-
import { ElementRef,
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
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
|
|
8
|
-
controlContainer: ControlContainer;
|
|
9
|
+
export declare class NewInputDateComponent extends CustomInput<string> {
|
|
9
10
|
elementRef: ElementRef;
|
|
10
|
-
configuration: InputDateConfiguration
|
|
11
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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,
|
|
2
|
-
import {
|
|
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
|
|
7
|
-
controlContainer: ControlContainer;
|
|
5
|
+
export declare class NewInputDecimalComponent extends CustomInput<number> {
|
|
8
6
|
elementRef: ElementRef;
|
|
9
|
-
configuration: InputDecimalConfiguration
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
40
|
-
static
|
|
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 {
|
|
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
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
|
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[];
|
|
@@ -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
|
+
}
|
package/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.d.ts
ADDED
|
@@ -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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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
|
|
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:
|
|
15
|
+
configuration: InputSignal<InputSelectConfiguration>;
|
|
18
16
|
loadingFromLoader: boolean;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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 {};
|