appproject-framework 1.0.10 → 1.0.12
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/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
5
5
|
import { Observable, BehaviorSubject, Subscription, Subject } from 'rxjs';
|
|
6
6
|
import { HttpClient } from '@angular/common/http';
|
|
7
7
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
8
|
-
import { IonSelect } from '@ionic/angular
|
|
8
|
+
import { IonSelect, AlertController } from '@ionic/angular';
|
|
9
9
|
import { ClassicEditor, EditorConfig } from 'ckeditor5';
|
|
10
10
|
import { BlurEvent } from '@ckeditor/ckeditor5-angular';
|
|
11
11
|
|
|
@@ -362,6 +362,34 @@ declare class Intervalo {
|
|
|
362
362
|
tipo: 'dia' | 'sem' | 'mes';
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
interface AgendaSemanalLegenda {
|
|
366
|
+
Texto: string;
|
|
367
|
+
ClasseCss: string;
|
|
368
|
+
}
|
|
369
|
+
interface AgendaSemanalHorario {
|
|
370
|
+
DataHora: Date;
|
|
371
|
+
}
|
|
372
|
+
interface DiaAgenda {
|
|
373
|
+
data: Date;
|
|
374
|
+
numero: number;
|
|
375
|
+
nome: string;
|
|
376
|
+
hoje: boolean;
|
|
377
|
+
}
|
|
378
|
+
interface AgendaSelecao {
|
|
379
|
+
ConsultaDataHora: Date;
|
|
380
|
+
}
|
|
381
|
+
interface AgendaSemanalItem {
|
|
382
|
+
Id: number;
|
|
383
|
+
DataHora: Date;
|
|
384
|
+
Status: string;
|
|
385
|
+
Texto: string;
|
|
386
|
+
ClasseCss: string;
|
|
387
|
+
Dados: any;
|
|
388
|
+
}
|
|
389
|
+
interface HorariosPadraoEspecialista {
|
|
390
|
+
Horarios: string[];
|
|
391
|
+
}
|
|
392
|
+
|
|
365
393
|
declare class Dominio {
|
|
366
394
|
Id: number;
|
|
367
395
|
Descricao: string;
|
|
@@ -417,11 +445,12 @@ declare class UtilsGeralService {
|
|
|
417
445
|
getDataFromString(str: string, hrs?: string): Date | null;
|
|
418
446
|
setFormValues(form: FormGroup, entity: any, ignoreFields?: string[]): void;
|
|
419
447
|
getFormValues(form: FormGroup, entity: any, ignoreFields?: string[]): void;
|
|
448
|
+
getFormValidationErrors(form: FormGroup, messages: any): string[];
|
|
420
449
|
converterDataFromDB(data: string): string;
|
|
421
450
|
converterHoraFromDB(data: string): string;
|
|
422
451
|
copy(origem: any, destino: any): void;
|
|
423
452
|
translateClassificacao(classificacao: string): "" | "Outras" | "Operacional" | "Fixa" | "Variável" | "Impostos" | "Conta Corrente" | "Transferências" | "Aplicação" | "Outros";
|
|
424
|
-
translateClassificacaoInverso(classificacao: string): "" | "
|
|
453
|
+
translateClassificacaoInverso(classificacao: string): "" | "A" | "C" | "O" | "U" | "I" | "S" | "F" | "V" | "T";
|
|
425
454
|
getImgComplemento(): string;
|
|
426
455
|
compareDatas(data: Date, comparaData?: Date): boolean;
|
|
427
456
|
extractErrorCode: (error: Response | any) => number;
|
|
@@ -578,6 +607,10 @@ declare class BaseCadastro<T extends BaseModel> extends BasePage implements OnIn
|
|
|
578
607
|
salvando: boolean;
|
|
579
608
|
cadastroServiceBase?: CadastroService;
|
|
580
609
|
novoAfterDelete: boolean;
|
|
610
|
+
/**
|
|
611
|
+
* Exibir alert com erros de validação
|
|
612
|
+
*/
|
|
613
|
+
mostrarValidacao: boolean;
|
|
581
614
|
entidadePosted: EventEmitter<T>;
|
|
582
615
|
creator: new () => T;
|
|
583
616
|
protected entidadeService: IBaseEntity<T>;
|
|
@@ -609,7 +642,7 @@ declare class BaseCadastro<T extends BaseModel> extends BasePage implements OnIn
|
|
|
609
642
|
afterAtualizarRegistro(): void;
|
|
610
643
|
afterDeleteRegistro(): void;
|
|
611
644
|
afterPesquisaEntidade(): void;
|
|
612
|
-
validarRegistro(): boolean
|
|
645
|
+
validarRegistro(): Promise<boolean>;
|
|
613
646
|
ngOnInit(): void;
|
|
614
647
|
ngOnDestroy(): void;
|
|
615
648
|
inicializarLista(): void;
|
|
@@ -634,6 +667,7 @@ declare class BaseCadastro<T extends BaseModel> extends BasePage implements OnIn
|
|
|
634
667
|
afterRouteParams(): void;
|
|
635
668
|
setFormValues(form: FormGroup, entity: any, ignoreFields?: string[]): void;
|
|
636
669
|
getFormValues(form: FormGroup, entity: any, ignoreFields?: string[]): void;
|
|
670
|
+
getFormValidationErrors(form: FormGroup, messages: any): string[];
|
|
637
671
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseCadastro<any>, never>;
|
|
638
672
|
static ɵcmp: i0.ɵɵComponentDeclaration<BaseCadastro<any>, "ng-component", never, { "itensLista": { "alias": "itensLista"; "required": false; }; "masterId": { "alias": "masterId"; "required": false; }; }, { "entidadePosted": "entidadePosted"; "atualizarItensEvent": "atualizarItensEvent"; }, never, never, true, never>;
|
|
639
673
|
}
|
|
@@ -1140,6 +1174,48 @@ declare class InputArquivoComponent implements OnInit, ControlValueAccessor {
|
|
|
1140
1174
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputArquivoComponent, "kb-input-arquivo", never, { "pasta": { "alias": "pasta"; "required": false; }; "nomeArquivo": { "alias": "nomeArquivo"; "required": false; }; "subir": { "alias": "subir"; "required": false; }; "callback": { "alias": "callback"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "tipoArquivo": { "alias": "tipoArquivo"; "required": false; }; "form": { "alias": "form"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconSrc": { "alias": "iconSrc"; "required": false; }; "btnExpand": { "alias": "btnExpand"; "required": false; }; "btnColor": { "alias": "btnColor"; "required": false; }; "btnFill": { "alias": "btnFill"; "required": false; }; "iconSlot": { "alias": "iconSlot"; "required": false; }; "arquivoTipos": { "alias": "arquivoTipos"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; }, { "fileSelected": "fileSelected"; }, never, never, true, never>;
|
|
1141
1175
|
}
|
|
1142
1176
|
|
|
1177
|
+
declare class AgendaSemanalComponent implements OnInit {
|
|
1178
|
+
private alertController;
|
|
1179
|
+
itens: AgendaSemanalItem[];
|
|
1180
|
+
legendas: AgendaSemanalLegenda[];
|
|
1181
|
+
textoAjuda: string;
|
|
1182
|
+
horaInicio: number;
|
|
1183
|
+
horaFim: number;
|
|
1184
|
+
intervaloMinutos: number;
|
|
1185
|
+
horariosPadrao: string[];
|
|
1186
|
+
horarioSelecionado: EventEmitter<AgendaSemanalHorario>;
|
|
1187
|
+
itemSelecionado: EventEmitter<AgendaSemanalItem>;
|
|
1188
|
+
private readonly nomesMeses;
|
|
1189
|
+
private readonly nomesDias;
|
|
1190
|
+
mesSelecionado: number;
|
|
1191
|
+
anoSelecionado: number;
|
|
1192
|
+
dataReferenciaSemana: Date;
|
|
1193
|
+
diasSemana: DiaAgenda[];
|
|
1194
|
+
horarios: string[];
|
|
1195
|
+
constructor(alertController: AlertController);
|
|
1196
|
+
ngOnInit(): void;
|
|
1197
|
+
get nomeMes(): string;
|
|
1198
|
+
get numeroMes(): string;
|
|
1199
|
+
mesAnterior(): void;
|
|
1200
|
+
proximoMes(): void;
|
|
1201
|
+
semanaAnterior(): void;
|
|
1202
|
+
proximaSemana(): void;
|
|
1203
|
+
obterSegundaFeira(data: Date): Date;
|
|
1204
|
+
atualizarMesAno(data: Date): void;
|
|
1205
|
+
gerarSemana(dataReferencia: Date): void;
|
|
1206
|
+
gerarHorarios(): void;
|
|
1207
|
+
ehHoje(data: Date): boolean;
|
|
1208
|
+
getItem(dia: Date, horario: string): AgendaSemanalItem | undefined;
|
|
1209
|
+
aplicarHorariosPadrao(data: Date): Promise<void>;
|
|
1210
|
+
confirmarAplicacaoHorariosPadrao(data: Date): void;
|
|
1211
|
+
duploCliqueHorario(dia: Date, horario: string): void;
|
|
1212
|
+
criarDataHora(dia: Date, horario: string): Date;
|
|
1213
|
+
mesmaData(data1: Date, data2: Date): boolean;
|
|
1214
|
+
formatarHorario(data: Date): string;
|
|
1215
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AgendaSemanalComponent, never>;
|
|
1216
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AgendaSemanalComponent, "kb-agenda-semanal", never, { "itens": { "alias": "itens"; "required": false; }; "legendas": { "alias": "legendas"; "required": false; }; "textoAjuda": { "alias": "textoAjuda"; "required": false; }; "horaInicio": { "alias": "horaInicio"; "required": false; }; "horaFim": { "alias": "horaFim"; "required": false; }; "intervaloMinutos": { "alias": "intervaloMinutos"; "required": false; }; "horariosPadrao": { "alias": "horariosPadrao"; "required": false; }; }, { "horarioSelecionado": "horarioSelecionado"; "itemSelecionado": "itemSelecionado"; }, never, never, true, never>;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1143
1219
|
declare abstract class BaseBtnComponent implements OnInit {
|
|
1144
1220
|
disabled: boolean;
|
|
1145
1221
|
type: string;
|
|
@@ -1236,5 +1312,5 @@ declare class TituloComponent {
|
|
|
1236
1312
|
static ɵcmp: i0.ɵɵComponentDeclaration<TituloComponent, "kb-titulo", never, {}, {}, never, ["*"], true, never>;
|
|
1237
1313
|
}
|
|
1238
1314
|
|
|
1239
|
-
export { AppprojectFramework, BaseCadastro, BaseInputComponent, BaseModel, BasePage, BtnActionComponent, BtnCancelarComponent, BtnExcluirComponent, BtnNovoComponent, BtnRoundedComponent, BtnSalvarComponent, CadastroService, DataService, Dominio, EntityEditComponent, EventoCadastro, EventoFoco, GridColuna, GridFiltroValor, GridTabela, GridViewComponent, HtmlCampo, HtmlRow, InputAreaComponent, InputArquivoComponent, InputCepComponent, InputCheckboxComponent, InputFormatComponent, InputHtmlComponent, InputPesquisaComponent, InputRadioComponent, InputSelectComponent, InputTextComponent, InputValorComponent, Intervalo, LibConfigService, LibService, NomePipe, PageResult, PeriodoIntervaloComponent, PesquisaCampo, SafeHtmlPipe, TituloComponent, Tree, UtilsGeralService, UtilsService, ValorFormatPipe, email, formatted, getEmail, getFormatted, getIgnore, getLabel, getMax, getMaxLength, getMin, getMinLength, getPattern, getPlaceholder, getPosicao, getReadOnly, getRequired, getTipo, ignore, label, max, maxLength, min, minLength, pattern, placeholder, posicao, readOnly, required, tipo };
|
|
1240
|
-
export type { EstadoLib, IBaseAlerts, IBaseEntity, LibConfig };
|
|
1315
|
+
export { AgendaSemanalComponent, AppprojectFramework, BaseCadastro, BaseInputComponent, BaseModel, BasePage, BtnActionComponent, BtnCancelarComponent, BtnExcluirComponent, BtnNovoComponent, BtnRoundedComponent, BtnSalvarComponent, CadastroService, DataService, Dominio, EntityEditComponent, EventoCadastro, EventoFoco, GridColuna, GridFiltroValor, GridTabela, GridViewComponent, HtmlCampo, HtmlRow, InputAreaComponent, InputArquivoComponent, InputCepComponent, InputCheckboxComponent, InputFormatComponent, InputHtmlComponent, InputPesquisaComponent, InputRadioComponent, InputSelectComponent, InputTextComponent, InputValorComponent, Intervalo, LibConfigService, LibService, NomePipe, PageResult, PeriodoIntervaloComponent, PesquisaCampo, SafeHtmlPipe, TituloComponent, Tree, UtilsGeralService, UtilsService, ValorFormatPipe, email, formatted, getEmail, getFormatted, getIgnore, getLabel, getMax, getMaxLength, getMin, getMinLength, getPattern, getPlaceholder, getPosicao, getReadOnly, getRequired, getTipo, ignore, label, max, maxLength, min, minLength, pattern, placeholder, posicao, readOnly, required, tipo };
|
|
1316
|
+
export type { AgendaSelecao, AgendaSemanalHorario, AgendaSemanalItem, AgendaSemanalLegenda, DiaAgenda, EstadoLib, HorariosPadraoEspecialista, IBaseAlerts, IBaseEntity, LibConfig };
|