@navservice/core 1.40.0 → 1.43.0
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/README.md +1 -0
- package/build/es/index.browser.js +73 -8
- package/build/es/utils/_hooks.d.ts +5 -0
- package/build/es/utils/_sistema.d.ts +49 -0
- package/build/es/utils/index.d.ts +51 -1
- package/build/es/utils.js +83 -16
- package/build/lib/index.browser.cjs +82 -9
- package/build/lib/utils/_hooks.d.ts +5 -0
- package/build/lib/utils/_sistema.d.ts +49 -0
- package/build/lib/utils/index.d.ts +51 -1
- package/build/lib/utils.cjs +81 -8
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import v4 from "zod/v4";
|
|
2
2
|
import axios from "axios";
|
|
3
|
+
import { useLayoutEffect, useState } from "react";
|
|
3
4
|
class config_env {
|
|
4
5
|
static SET_PUBLIC_BASE_URL_BACKEND_PRINCIPAL;
|
|
5
6
|
static init(config) {
|
|
@@ -557,14 +558,78 @@ const _session_storage = class {
|
|
|
557
558
|
}
|
|
558
559
|
};
|
|
559
560
|
const utils_session_storage = _session_storage;
|
|
560
|
-
const
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
561
|
+
const _sistema = {
|
|
562
|
+
empresa: {
|
|
563
|
+
nome: "Nav Software",
|
|
564
|
+
email_suporte: "suporte@navsoftware.com.br",
|
|
565
|
+
email_no_replay: "no-replay@navsoftware.com.br",
|
|
566
|
+
razaoSocial: "Nav Software Desenvolvimento de Sistemas Ltda",
|
|
567
|
+
cnpj: "00.000.000/0001-00",
|
|
568
|
+
inscricaoEstadual: "000.000.000.000",
|
|
569
|
+
inscricaoMunicipal: "000000",
|
|
570
|
+
endereco: {
|
|
571
|
+
logradouro: "Rua Exemplo",
|
|
572
|
+
numero: "000",
|
|
573
|
+
complemento: "Sala 00",
|
|
574
|
+
bairro: "Centro",
|
|
575
|
+
cidade: "Navegantes",
|
|
576
|
+
estado: "SC",
|
|
577
|
+
cep: "88370-000",
|
|
578
|
+
pais: "Brasil"
|
|
579
|
+
},
|
|
580
|
+
contato: {
|
|
581
|
+
telefone: "(47) 0000-0000",
|
|
582
|
+
celular: "(47) 90000-0000",
|
|
583
|
+
email: "contato@navsoftware.com.br",
|
|
584
|
+
site: "https://www.navsoftware.com.br"
|
|
585
|
+
},
|
|
586
|
+
dadosBancarios: {
|
|
587
|
+
banco: "000 - Banco Exemplo",
|
|
588
|
+
agencia: "0000",
|
|
589
|
+
conta: "00000-0",
|
|
590
|
+
tipoConta: "Conta Corrente",
|
|
591
|
+
pix: "contato@navsoftware.com.br"
|
|
592
|
+
},
|
|
593
|
+
responsavel: {
|
|
594
|
+
nome: "Nome do Responsável",
|
|
595
|
+
cpf: "000.000.000-00",
|
|
596
|
+
cargo: "Diretor",
|
|
597
|
+
email: "responsavel@navsoftware.com.br"
|
|
598
|
+
},
|
|
599
|
+
configuracoes: {
|
|
600
|
+
ativo: true,
|
|
601
|
+
dataFundacao: "2020-01-01",
|
|
602
|
+
regimeTributario: "Simples Nacional",
|
|
603
|
+
ramoAtividade: "Desenvolvimento de Software",
|
|
604
|
+
cnae: "62.01-5-00",
|
|
605
|
+
porteEmpresa: "ME"
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
const utils_sistema = _sistema;
|
|
610
|
+
class _hooks {
|
|
611
|
+
use_is_mobile() {
|
|
612
|
+
const [isMobile, setIsMobile] = useState(false);
|
|
613
|
+
useLayoutEffect(()=>{
|
|
614
|
+
const updateSize = ()=>setIsMobile(window.innerWidth < 768);
|
|
615
|
+
window.addEventListener("resize", updateSize);
|
|
616
|
+
updateSize();
|
|
617
|
+
return ()=>window.removeEventListener("resize", updateSize);
|
|
618
|
+
}, []);
|
|
619
|
+
return isMobile;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
const utils_hooks = new _hooks;
|
|
623
|
+
const utils = {
|
|
624
|
+
api: utils_api,
|
|
625
|
+
data: utils_data,
|
|
626
|
+
form: utils_form,
|
|
627
|
+
geral: _geral,
|
|
628
|
+
local_storage: utils_local_storage,
|
|
629
|
+
update_context: utils_update_context,
|
|
630
|
+
session_sorage: utils_session_storage,
|
|
631
|
+
sistema: utils_sistema,
|
|
632
|
+
hooks: utils_hooks
|
|
568
633
|
};
|
|
569
634
|
const src_utils = utils;
|
|
570
635
|
export { types as TypesCore, src_config_env as config_env_core, src_utils as utils };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _sistema: {
|
|
2
|
+
empresa: {
|
|
3
|
+
nome: string;
|
|
4
|
+
email_suporte: string;
|
|
5
|
+
email_no_replay: string;
|
|
6
|
+
razaoSocial: string;
|
|
7
|
+
cnpj: string;
|
|
8
|
+
inscricaoEstadual: string;
|
|
9
|
+
inscricaoMunicipal: string;
|
|
10
|
+
endereco: {
|
|
11
|
+
logradouro: string;
|
|
12
|
+
numero: string;
|
|
13
|
+
complemento: string;
|
|
14
|
+
bairro: string;
|
|
15
|
+
cidade: string;
|
|
16
|
+
estado: string;
|
|
17
|
+
cep: string;
|
|
18
|
+
pais: string;
|
|
19
|
+
};
|
|
20
|
+
contato: {
|
|
21
|
+
telefone: string;
|
|
22
|
+
celular: string;
|
|
23
|
+
email: string;
|
|
24
|
+
site: string;
|
|
25
|
+
};
|
|
26
|
+
dadosBancarios: {
|
|
27
|
+
banco: string;
|
|
28
|
+
agencia: string;
|
|
29
|
+
conta: string;
|
|
30
|
+
tipoConta: string;
|
|
31
|
+
pix: string;
|
|
32
|
+
};
|
|
33
|
+
responsavel: {
|
|
34
|
+
nome: string;
|
|
35
|
+
cpf: string;
|
|
36
|
+
cargo: string;
|
|
37
|
+
email: string;
|
|
38
|
+
};
|
|
39
|
+
configuracoes: {
|
|
40
|
+
ativo: boolean;
|
|
41
|
+
dataFundacao: string;
|
|
42
|
+
regimeTributario: string;
|
|
43
|
+
ramoAtividade: string;
|
|
44
|
+
cnae: string;
|
|
45
|
+
porteEmpresa: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default _sistema;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _form from "./_form";
|
|
2
2
|
declare const utils: {
|
|
3
|
-
new (): {};
|
|
4
3
|
api: {
|
|
5
4
|
new (): {};
|
|
6
5
|
servidor_service_usuario: {
|
|
@@ -101,5 +100,56 @@ declare const utils: {
|
|
|
101
100
|
get_item_session_storage(chave: string): any;
|
|
102
101
|
remover_item_session_storage(chave: string): void;
|
|
103
102
|
};
|
|
103
|
+
sistema: {
|
|
104
|
+
empresa: {
|
|
105
|
+
nome: string;
|
|
106
|
+
email_suporte: string;
|
|
107
|
+
email_no_replay: string;
|
|
108
|
+
razaoSocial: string;
|
|
109
|
+
cnpj: string;
|
|
110
|
+
inscricaoEstadual: string;
|
|
111
|
+
inscricaoMunicipal: string;
|
|
112
|
+
endereco: {
|
|
113
|
+
logradouro: string;
|
|
114
|
+
numero: string;
|
|
115
|
+
complemento: string;
|
|
116
|
+
bairro: string;
|
|
117
|
+
cidade: string;
|
|
118
|
+
estado: string;
|
|
119
|
+
cep: string;
|
|
120
|
+
pais: string;
|
|
121
|
+
};
|
|
122
|
+
contato: {
|
|
123
|
+
telefone: string;
|
|
124
|
+
celular: string;
|
|
125
|
+
email: string;
|
|
126
|
+
site: string;
|
|
127
|
+
};
|
|
128
|
+
dadosBancarios: {
|
|
129
|
+
banco: string;
|
|
130
|
+
agencia: string;
|
|
131
|
+
conta: string;
|
|
132
|
+
tipoConta: string;
|
|
133
|
+
pix: string;
|
|
134
|
+
};
|
|
135
|
+
responsavel: {
|
|
136
|
+
nome: string;
|
|
137
|
+
cpf: string;
|
|
138
|
+
cargo: string;
|
|
139
|
+
email: string;
|
|
140
|
+
};
|
|
141
|
+
configuracoes: {
|
|
142
|
+
ativo: boolean;
|
|
143
|
+
dataFundacao: string;
|
|
144
|
+
regimeTributario: string;
|
|
145
|
+
ramoAtividade: string;
|
|
146
|
+
cnae: string;
|
|
147
|
+
porteEmpresa: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
hooks: {
|
|
152
|
+
use_is_mobile(): boolean;
|
|
153
|
+
};
|
|
104
154
|
};
|
|
105
155
|
export default utils;
|
package/build/es/utils.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
|
+
import { useLayoutEffect, useState } from "react";
|
|
2
3
|
class config_env {
|
|
3
4
|
static SET_PUBLIC_BASE_URL_BACKEND_PRINCIPAL;
|
|
4
5
|
static init(config) {
|
|
@@ -395,14 +396,78 @@ const _session_storage = class {
|
|
|
395
396
|
}
|
|
396
397
|
};
|
|
397
398
|
const utils_session_storage = _session_storage;
|
|
398
|
-
const
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
399
|
+
const _sistema = {
|
|
400
|
+
empresa: {
|
|
401
|
+
nome: "Nav Software",
|
|
402
|
+
email_suporte: "suporte@navsoftware.com.br",
|
|
403
|
+
email_no_replay: "no-replay@navsoftware.com.br",
|
|
404
|
+
razaoSocial: "Nav Software Desenvolvimento de Sistemas Ltda",
|
|
405
|
+
cnpj: "00.000.000/0001-00",
|
|
406
|
+
inscricaoEstadual: "000.000.000.000",
|
|
407
|
+
inscricaoMunicipal: "000000",
|
|
408
|
+
endereco: {
|
|
409
|
+
logradouro: "Rua Exemplo",
|
|
410
|
+
numero: "000",
|
|
411
|
+
complemento: "Sala 00",
|
|
412
|
+
bairro: "Centro",
|
|
413
|
+
cidade: "Navegantes",
|
|
414
|
+
estado: "SC",
|
|
415
|
+
cep: "88370-000",
|
|
416
|
+
pais: "Brasil"
|
|
417
|
+
},
|
|
418
|
+
contato: {
|
|
419
|
+
telefone: "(47) 0000-0000",
|
|
420
|
+
celular: "(47) 90000-0000",
|
|
421
|
+
email: "contato@navsoftware.com.br",
|
|
422
|
+
site: "https://www.navsoftware.com.br"
|
|
423
|
+
},
|
|
424
|
+
dadosBancarios: {
|
|
425
|
+
banco: "000 - Banco Exemplo",
|
|
426
|
+
agencia: "0000",
|
|
427
|
+
conta: "00000-0",
|
|
428
|
+
tipoConta: "Conta Corrente",
|
|
429
|
+
pix: "contato@navsoftware.com.br"
|
|
430
|
+
},
|
|
431
|
+
responsavel: {
|
|
432
|
+
nome: "Nome do Responsável",
|
|
433
|
+
cpf: "000.000.000-00",
|
|
434
|
+
cargo: "Diretor",
|
|
435
|
+
email: "responsavel@navsoftware.com.br"
|
|
436
|
+
},
|
|
437
|
+
configuracoes: {
|
|
438
|
+
ativo: true,
|
|
439
|
+
dataFundacao: "2020-01-01",
|
|
440
|
+
regimeTributario: "Simples Nacional",
|
|
441
|
+
ramoAtividade: "Desenvolvimento de Software",
|
|
442
|
+
cnae: "62.01-5-00",
|
|
443
|
+
porteEmpresa: "ME"
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
const utils_sistema = _sistema;
|
|
448
|
+
class _hooks {
|
|
449
|
+
use_is_mobile() {
|
|
450
|
+
const [isMobile, setIsMobile] = useState(false);
|
|
451
|
+
useLayoutEffect(()=>{
|
|
452
|
+
const updateSize = ()=>setIsMobile(window.innerWidth < 768);
|
|
453
|
+
window.addEventListener("resize", updateSize);
|
|
454
|
+
updateSize();
|
|
455
|
+
return ()=>window.removeEventListener("resize", updateSize);
|
|
456
|
+
}, []);
|
|
457
|
+
return isMobile;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
const utils_hooks = new _hooks;
|
|
461
|
+
const utils = {
|
|
462
|
+
api: utils_api,
|
|
463
|
+
data: utils_data,
|
|
464
|
+
form: utils_form,
|
|
465
|
+
geral: _geral,
|
|
466
|
+
local_storage: utils_local_storage,
|
|
467
|
+
update_context: utils_update_context,
|
|
468
|
+
session_sorage: utils_session_storage,
|
|
469
|
+
sistema: utils_sistema,
|
|
470
|
+
hooks: utils_hooks
|
|
406
471
|
};
|
|
407
472
|
const src_utils = utils;
|
|
408
473
|
const _api_api = class _api {
|
|
@@ -458,14 +523,16 @@ const _api_api = class _api {
|
|
|
458
523
|
}
|
|
459
524
|
};
|
|
460
525
|
const utils_api = _api_api;
|
|
461
|
-
const utils_utils =
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
526
|
+
const utils_utils = {
|
|
527
|
+
api: utils_api,
|
|
528
|
+
data: utils_data,
|
|
529
|
+
form: utils_form,
|
|
530
|
+
geral: _geral,
|
|
531
|
+
local_storage: utils_local_storage,
|
|
532
|
+
update_context: utils_update_context,
|
|
533
|
+
session_sorage: utils_session_storage,
|
|
534
|
+
sistema: utils_sistema,
|
|
535
|
+
hooks: utils_hooks
|
|
469
536
|
};
|
|
470
537
|
const src_utils_0 = utils_utils;
|
|
471
538
|
export { src_utils_0 as default };
|
|
@@ -565,6 +565,75 @@ const _session_storage = class _session_storage {
|
|
|
565
565
|
};
|
|
566
566
|
/* export default */ const utils_session_storage = (_session_storage);
|
|
567
567
|
|
|
568
|
+
;// CONCATENATED MODULE: ./src/utils/_sistema.ts
|
|
569
|
+
const _sistema = {
|
|
570
|
+
empresa: {
|
|
571
|
+
nome: "Nav Software",
|
|
572
|
+
email_suporte: "suporte@navsoftware.com.br",
|
|
573
|
+
email_no_replay: "no-replay@navsoftware.com.br",
|
|
574
|
+
razaoSocial: "Nav Software Desenvolvimento de Sistemas Ltda",
|
|
575
|
+
cnpj: "00.000.000/0001-00",
|
|
576
|
+
inscricaoEstadual: "000.000.000.000",
|
|
577
|
+
inscricaoMunicipal: "000000",
|
|
578
|
+
endereco: {
|
|
579
|
+
logradouro: "Rua Exemplo",
|
|
580
|
+
numero: "000",
|
|
581
|
+
complemento: "Sala 00",
|
|
582
|
+
bairro: "Centro",
|
|
583
|
+
cidade: "Navegantes",
|
|
584
|
+
estado: "SC",
|
|
585
|
+
cep: "88370-000",
|
|
586
|
+
pais: "Brasil"
|
|
587
|
+
},
|
|
588
|
+
contato: {
|
|
589
|
+
telefone: "(47) 0000-0000",
|
|
590
|
+
celular: "(47) 90000-0000",
|
|
591
|
+
email: "contato@navsoftware.com.br",
|
|
592
|
+
site: "https://www.navsoftware.com.br"
|
|
593
|
+
},
|
|
594
|
+
dadosBancarios: {
|
|
595
|
+
banco: "000 - Banco Exemplo",
|
|
596
|
+
agencia: "0000",
|
|
597
|
+
conta: "00000-0",
|
|
598
|
+
tipoConta: "Conta Corrente",
|
|
599
|
+
pix: "contato@navsoftware.com.br"
|
|
600
|
+
},
|
|
601
|
+
responsavel: {
|
|
602
|
+
nome: "Nome do Responsável",
|
|
603
|
+
cpf: "000.000.000-00",
|
|
604
|
+
cargo: "Diretor",
|
|
605
|
+
email: "responsavel@navsoftware.com.br"
|
|
606
|
+
},
|
|
607
|
+
configuracoes: {
|
|
608
|
+
ativo: true,
|
|
609
|
+
dataFundacao: "2020-01-01",
|
|
610
|
+
regimeTributario: "Simples Nacional",
|
|
611
|
+
ramoAtividade: "Desenvolvimento de Software",
|
|
612
|
+
cnae: "62.01-5-00",
|
|
613
|
+
porteEmpresa: "ME" // ME, EPP, ou outro
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
/* export default */ const utils_sistema = (_sistema);
|
|
618
|
+
|
|
619
|
+
;// CONCATENATED MODULE: external "react"
|
|
620
|
+
const external_react_namespaceObject = require("react");
|
|
621
|
+
;// CONCATENATED MODULE: ./src/utils/_hooks.ts
|
|
622
|
+
|
|
623
|
+
class _hooks {
|
|
624
|
+
use_is_mobile() {
|
|
625
|
+
const [isMobile, setIsMobile] = (0,external_react_namespaceObject.useState)(false);
|
|
626
|
+
(0,external_react_namespaceObject.useLayoutEffect)(()=>{
|
|
627
|
+
const updateSize = ()=>setIsMobile(window.innerWidth < 768);
|
|
628
|
+
window.addEventListener("resize", updateSize);
|
|
629
|
+
updateSize();
|
|
630
|
+
return ()=>window.removeEventListener("resize", updateSize);
|
|
631
|
+
}, []);
|
|
632
|
+
return isMobile;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
/* export default */ const utils_hooks = (new _hooks);
|
|
636
|
+
|
|
568
637
|
;// CONCATENATED MODULE: ./src/utils/index.ts
|
|
569
638
|
|
|
570
639
|
|
|
@@ -573,14 +642,18 @@ const _session_storage = class _session_storage {
|
|
|
573
642
|
|
|
574
643
|
|
|
575
644
|
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
const utils = {
|
|
648
|
+
api: utils_api,
|
|
649
|
+
data: utils_data,
|
|
650
|
+
form: utils_form,
|
|
651
|
+
geral: _geral,
|
|
652
|
+
local_storage: utils_local_storage,
|
|
653
|
+
update_context: utils_update_context,
|
|
654
|
+
session_sorage: utils_session_storage,
|
|
655
|
+
sistema: utils_sistema,
|
|
656
|
+
hooks: utils_hooks
|
|
584
657
|
};
|
|
585
658
|
/* export default */ const src_utils = (utils);
|
|
586
659
|
|
|
@@ -785,7 +858,7 @@ var _type_response_TypeControllerResponse;
|
|
|
785
858
|
/* export default */ const types = (types_t);
|
|
786
859
|
var types_t;
|
|
787
860
|
|
|
788
|
-
// EXTERNAL MODULE: ./src/utils/index.ts +
|
|
861
|
+
// EXTERNAL MODULE: ./src/utils/index.ts + 11 modules
|
|
789
862
|
var utils = __webpack_require__("./src/utils/index.ts");
|
|
790
863
|
;// CONCATENATED MODULE: ./src/index.browser.ts
|
|
791
864
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _sistema: {
|
|
2
|
+
empresa: {
|
|
3
|
+
nome: string;
|
|
4
|
+
email_suporte: string;
|
|
5
|
+
email_no_replay: string;
|
|
6
|
+
razaoSocial: string;
|
|
7
|
+
cnpj: string;
|
|
8
|
+
inscricaoEstadual: string;
|
|
9
|
+
inscricaoMunicipal: string;
|
|
10
|
+
endereco: {
|
|
11
|
+
logradouro: string;
|
|
12
|
+
numero: string;
|
|
13
|
+
complemento: string;
|
|
14
|
+
bairro: string;
|
|
15
|
+
cidade: string;
|
|
16
|
+
estado: string;
|
|
17
|
+
cep: string;
|
|
18
|
+
pais: string;
|
|
19
|
+
};
|
|
20
|
+
contato: {
|
|
21
|
+
telefone: string;
|
|
22
|
+
celular: string;
|
|
23
|
+
email: string;
|
|
24
|
+
site: string;
|
|
25
|
+
};
|
|
26
|
+
dadosBancarios: {
|
|
27
|
+
banco: string;
|
|
28
|
+
agencia: string;
|
|
29
|
+
conta: string;
|
|
30
|
+
tipoConta: string;
|
|
31
|
+
pix: string;
|
|
32
|
+
};
|
|
33
|
+
responsavel: {
|
|
34
|
+
nome: string;
|
|
35
|
+
cpf: string;
|
|
36
|
+
cargo: string;
|
|
37
|
+
email: string;
|
|
38
|
+
};
|
|
39
|
+
configuracoes: {
|
|
40
|
+
ativo: boolean;
|
|
41
|
+
dataFundacao: string;
|
|
42
|
+
regimeTributario: string;
|
|
43
|
+
ramoAtividade: string;
|
|
44
|
+
cnae: string;
|
|
45
|
+
porteEmpresa: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default _sistema;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _form from "./_form";
|
|
2
2
|
declare const utils: {
|
|
3
|
-
new (): {};
|
|
4
3
|
api: {
|
|
5
4
|
new (): {};
|
|
6
5
|
servidor_service_usuario: {
|
|
@@ -101,5 +100,56 @@ declare const utils: {
|
|
|
101
100
|
get_item_session_storage(chave: string): any;
|
|
102
101
|
remover_item_session_storage(chave: string): void;
|
|
103
102
|
};
|
|
103
|
+
sistema: {
|
|
104
|
+
empresa: {
|
|
105
|
+
nome: string;
|
|
106
|
+
email_suporte: string;
|
|
107
|
+
email_no_replay: string;
|
|
108
|
+
razaoSocial: string;
|
|
109
|
+
cnpj: string;
|
|
110
|
+
inscricaoEstadual: string;
|
|
111
|
+
inscricaoMunicipal: string;
|
|
112
|
+
endereco: {
|
|
113
|
+
logradouro: string;
|
|
114
|
+
numero: string;
|
|
115
|
+
complemento: string;
|
|
116
|
+
bairro: string;
|
|
117
|
+
cidade: string;
|
|
118
|
+
estado: string;
|
|
119
|
+
cep: string;
|
|
120
|
+
pais: string;
|
|
121
|
+
};
|
|
122
|
+
contato: {
|
|
123
|
+
telefone: string;
|
|
124
|
+
celular: string;
|
|
125
|
+
email: string;
|
|
126
|
+
site: string;
|
|
127
|
+
};
|
|
128
|
+
dadosBancarios: {
|
|
129
|
+
banco: string;
|
|
130
|
+
agencia: string;
|
|
131
|
+
conta: string;
|
|
132
|
+
tipoConta: string;
|
|
133
|
+
pix: string;
|
|
134
|
+
};
|
|
135
|
+
responsavel: {
|
|
136
|
+
nome: string;
|
|
137
|
+
cpf: string;
|
|
138
|
+
cargo: string;
|
|
139
|
+
email: string;
|
|
140
|
+
};
|
|
141
|
+
configuracoes: {
|
|
142
|
+
ativo: boolean;
|
|
143
|
+
dataFundacao: string;
|
|
144
|
+
regimeTributario: string;
|
|
145
|
+
ramoAtividade: string;
|
|
146
|
+
cnae: string;
|
|
147
|
+
porteEmpresa: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
hooks: {
|
|
152
|
+
use_is_mobile(): boolean;
|
|
153
|
+
};
|
|
104
154
|
};
|
|
105
155
|
export default utils;
|
package/build/lib/utils.cjs
CHANGED
|
@@ -630,6 +630,75 @@ const _session_storage = class _session_storage {
|
|
|
630
630
|
};
|
|
631
631
|
/* export default */ const utils_session_storage = (_session_storage);
|
|
632
632
|
|
|
633
|
+
;// CONCATENATED MODULE: ./src/utils/_sistema.ts
|
|
634
|
+
const _sistema = {
|
|
635
|
+
empresa: {
|
|
636
|
+
nome: "Nav Software",
|
|
637
|
+
email_suporte: "suporte@navsoftware.com.br",
|
|
638
|
+
email_no_replay: "no-replay@navsoftware.com.br",
|
|
639
|
+
razaoSocial: "Nav Software Desenvolvimento de Sistemas Ltda",
|
|
640
|
+
cnpj: "00.000.000/0001-00",
|
|
641
|
+
inscricaoEstadual: "000.000.000.000",
|
|
642
|
+
inscricaoMunicipal: "000000",
|
|
643
|
+
endereco: {
|
|
644
|
+
logradouro: "Rua Exemplo",
|
|
645
|
+
numero: "000",
|
|
646
|
+
complemento: "Sala 00",
|
|
647
|
+
bairro: "Centro",
|
|
648
|
+
cidade: "Navegantes",
|
|
649
|
+
estado: "SC",
|
|
650
|
+
cep: "88370-000",
|
|
651
|
+
pais: "Brasil"
|
|
652
|
+
},
|
|
653
|
+
contato: {
|
|
654
|
+
telefone: "(47) 0000-0000",
|
|
655
|
+
celular: "(47) 90000-0000",
|
|
656
|
+
email: "contato@navsoftware.com.br",
|
|
657
|
+
site: "https://www.navsoftware.com.br"
|
|
658
|
+
},
|
|
659
|
+
dadosBancarios: {
|
|
660
|
+
banco: "000 - Banco Exemplo",
|
|
661
|
+
agencia: "0000",
|
|
662
|
+
conta: "00000-0",
|
|
663
|
+
tipoConta: "Conta Corrente",
|
|
664
|
+
pix: "contato@navsoftware.com.br"
|
|
665
|
+
},
|
|
666
|
+
responsavel: {
|
|
667
|
+
nome: "Nome do Responsável",
|
|
668
|
+
cpf: "000.000.000-00",
|
|
669
|
+
cargo: "Diretor",
|
|
670
|
+
email: "responsavel@navsoftware.com.br"
|
|
671
|
+
},
|
|
672
|
+
configuracoes: {
|
|
673
|
+
ativo: true,
|
|
674
|
+
dataFundacao: "2020-01-01",
|
|
675
|
+
regimeTributario: "Simples Nacional",
|
|
676
|
+
ramoAtividade: "Desenvolvimento de Software",
|
|
677
|
+
cnae: "62.01-5-00",
|
|
678
|
+
porteEmpresa: "ME" // ME, EPP, ou outro
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
/* export default */ const utils_sistema = (_sistema);
|
|
683
|
+
|
|
684
|
+
;// CONCATENATED MODULE: external "react"
|
|
685
|
+
const external_react_namespaceObject = require("react");
|
|
686
|
+
;// CONCATENATED MODULE: ./src/utils/_hooks.ts
|
|
687
|
+
|
|
688
|
+
class _hooks {
|
|
689
|
+
use_is_mobile() {
|
|
690
|
+
const [isMobile, setIsMobile] = (0,external_react_namespaceObject.useState)(false);
|
|
691
|
+
(0,external_react_namespaceObject.useLayoutEffect)(()=>{
|
|
692
|
+
const updateSize = ()=>setIsMobile(window.innerWidth < 768);
|
|
693
|
+
window.addEventListener("resize", updateSize);
|
|
694
|
+
updateSize();
|
|
695
|
+
return ()=>window.removeEventListener("resize", updateSize);
|
|
696
|
+
}, []);
|
|
697
|
+
return isMobile;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
/* export default */ const utils_hooks = (new _hooks);
|
|
701
|
+
|
|
633
702
|
;// CONCATENATED MODULE: ./src/utils/index.ts
|
|
634
703
|
|
|
635
704
|
|
|
@@ -638,14 +707,18 @@ const _session_storage = class _session_storage {
|
|
|
638
707
|
|
|
639
708
|
|
|
640
709
|
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
const utils = {
|
|
713
|
+
api: utils_api,
|
|
714
|
+
data: utils_data,
|
|
715
|
+
form: utils_form,
|
|
716
|
+
geral: _geral,
|
|
717
|
+
local_storage: utils_local_storage,
|
|
718
|
+
update_context: utils_update_context,
|
|
719
|
+
session_sorage: utils_session_storage,
|
|
720
|
+
sistema: utils_sistema,
|
|
721
|
+
hooks: utils_hooks
|
|
649
722
|
};
|
|
650
723
|
/* export default */ const src_utils = (utils);
|
|
651
724
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navservice/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.43.0",
|
|
4
4
|
"description": "Service core de todos os micro serviços",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -33,12 +33,14 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"axios": "^1.9.0",
|
|
35
35
|
"hono": "^4.9.7",
|
|
36
|
+
"react": "^19.0.0",
|
|
36
37
|
"zod": "^4",
|
|
37
38
|
"zustand": "^5"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"@rslib/core": "^0.18.4",
|
|
41
42
|
"@types/node": "^24.10.1",
|
|
43
|
+
"@types/react": "^19.2.7",
|
|
42
44
|
"typescript": "^5"
|
|
43
45
|
},
|
|
44
46
|
"dependencies": {
|