@sankhyalabs/sankhyablocks 9.2.0-ms.7 → 9.2.0-ms.9
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/dist/cjs/snk-application.cjs.entry.js +0 -3
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +22 -15
- package/dist/collection/components/snk-application/snk-application.js +0 -2
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +187 -63
- package/dist/components/snk-application2.js +0 -3
- package/dist/components/snk-filter-bar2.js +22 -15
- package/dist/esm/snk-application.entry.js +0 -3
- package/dist/esm/snk-filter-bar_4.entry.js +22 -15
- package/dist/sankhyablocks/p-665dd170.entry.js +11 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +44 -28
- package/dist/types/components.d.ts +60 -36
- package/package.json +1 -1
- package/dist/collection/lib/licenses/sankhyalicense.module.js +0 -1
- package/dist/sankhyablocks/p-81769310.entry.js +0 -11
@@ -183,8 +183,6 @@ class TotalsFetcher {
|
|
183
183
|
}
|
184
184
|
}
|
185
185
|
|
186
|
-
function _0x53e1(){const _0x340df8=['2909523kXwted','CompanyName=Sankhya\x20Jiva\x20Tecnologia\x20e\x20Inovao\x20Ltda,LicensedApplication=Sankhya\x20Gestao,LicenseType=SingleApplication,LicensedConcurrentDeveloperCount=2,LicensedProductionInstancesCount=0,AssetReference=AG-019460,ExpiryDate=9_November_2022_[v2]_MTY2Nzk1MjAwMDAwMA==10487151e296ee4360f80961ca960869','1131048CARoeW','502909mLEPmu','447255iQEXuN','428UHbJwW','270AFTxAV','194369jhGqTI','1540nWuTrj','2044062GicUQI','30CkXPWg'];_0x53e1=function(){return _0x340df8;};return _0x53e1();}const _0xc7632f=_0x15c2;function _0x15c2(_0x353a9c,_0x3e4a5a){const _0x53e110=_0x53e1();return _0x15c2=function(_0x15c2aa,_0x219858){_0x15c2aa=_0x15c2aa-0x188;let _0x307231=_0x53e110[_0x15c2aa];return _0x307231;},_0x15c2(_0x353a9c,_0x3e4a5a);}(function(_0x42617e,_0x57debe){const _0x31061a=_0x15c2,_0x128d7d=_0x42617e();while(!![]){try{const _0x1c9bb1=-parseInt(_0x31061a(0x18e))/0x1+-parseInt(_0x31061a(0x189))/0x2+parseInt(_0x31061a(0x18b))/0x3+-parseInt(_0x31061a(0x190))/0x4*(parseInt(_0x31061a(0x188))/0x5)+-parseInt(_0x31061a(0x191))/0x6*(-parseInt(_0x31061a(0x192))/0x7)+parseInt(_0x31061a(0x18d))/0x8+-parseInt(_0x31061a(0x18f))/0x9*(-parseInt(_0x31061a(0x18a))/0xa);if(_0x1c9bb1===_0x57debe)break;else _0x128d7d['push'](_0x128d7d['shift']());}catch(_0x1bd816){_0x128d7d['push'](_0x128d7d['shift']());}}}(_0x53e1,0xe8676));const agGridLicense=_0xc7632f(0x18c);
|
187
|
-
|
188
186
|
var _a;
|
189
187
|
class Workspace {
|
190
188
|
static openAppActivity(resourceId, pkObject) {
|
@@ -1738,7 +1736,6 @@ const SnkApplication = class {
|
|
1738
1736
|
core.ApplicationContext.setContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
|
1739
1737
|
return this.executeSearch(searchArgument, fieldName, dataUnit, Object.assign(Object.assign({}, ctxOptions), { useSearchPlus: true }));
|
1740
1738
|
});
|
1741
|
-
core.ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
|
1742
1739
|
this.registerPkChangeListener();
|
1743
1740
|
core.ErrorTracking.init();
|
1744
1741
|
let legacyConfig = {
|
@@ -347,22 +347,28 @@ const SnkFilterBar = class {
|
|
347
347
|
this.processAfterUpdateConfig();
|
348
348
|
}
|
349
349
|
/**
|
350
|
-
* Faz o recarregamento da
|
350
|
+
* @description Faz o recarregamento da barra de filtros buscando o state no servidor.
|
351
|
+
* @async
|
352
|
+
* @return {Promise<void>} Retorna uma Promise que resolve quando o recarregamento for concluído.
|
351
353
|
*/
|
352
354
|
async reload() {
|
353
355
|
this.loadConfigFromStorage(true);
|
354
356
|
}
|
355
357
|
/**
|
356
|
-
* Retorna um item de filtro pelo ID.
|
358
|
+
* @description Retorna um item de filtro pelo ID.
|
359
|
+
* @async
|
360
|
+
* @param {string} id - ID do item de filtro.
|
361
|
+
* @returns {Promise<SnkFilterItemConfig | undefined>} O item de filtro correspondente ou undefined se não for encontrado.
|
357
362
|
*/
|
358
363
|
async getFilterItem(id) {
|
359
364
|
const item = this.filterConfig.find(item => item.id === id);
|
360
365
|
return Promise.resolve(core.ObjectUtils.copy(item));
|
361
366
|
}
|
362
367
|
/**
|
363
|
-
* Atualiza um item do filtro.
|
364
|
-
*
|
365
|
-
* @param
|
368
|
+
* @description Atualiza um item do filtro.
|
369
|
+
* @async
|
370
|
+
* @param {SnkFilterItemConfig} newFilterItem - Item com as informações atualizadas, caso o item não seja encontrado no array, ele não será modificado.
|
371
|
+
* @return {Promise<void>} Retorna uma Promise que resolve quando a atualização for concluída.
|
366
372
|
*/
|
367
373
|
async updateFilterItem(newFilterItem) {
|
368
374
|
const itemIndex = this.filterConfig.findIndex(item => item.id === newFilterItem.id);
|
@@ -375,9 +381,10 @@ const SnkFilterBar = class {
|
|
375
381
|
return Promise.resolve();
|
376
382
|
}
|
377
383
|
/**
|
378
|
-
* Adiciona um item de filtro.
|
379
|
-
*
|
380
|
-
* @param filterItem - Item a ser adicionado, caso o item já exista com o ID ele não será adicionado novamente
|
384
|
+
* @description Adiciona um item de filtro.
|
385
|
+
* @async
|
386
|
+
* @param {SnkFilterItemConfig} filterItem - Item a ser adicionado, caso o item já exista com o ID, ele não será adicionado novamente.
|
387
|
+
* @return {Promise<void>} Retorna uma Promise que resolve quando o item for adicionado.
|
381
388
|
*/
|
382
389
|
async addFilterItem(filterItem) {
|
383
390
|
const itemIndex = this.filterConfig.findIndex(item => item.id === filterItem.id);
|
@@ -391,11 +398,10 @@ const SnkFilterBar = class {
|
|
391
398
|
return Promise.resolve();
|
392
399
|
}
|
393
400
|
/**
|
394
|
-
* Remove um item de filtro.
|
395
|
-
*
|
396
|
-
* @param filterID - ID do a ser
|
397
|
-
*
|
398
|
-
* @returns {Promise<SnkFilterItemConfig|undefined>} - Retorna o item de filtro removido, ou undefined caso não encontrado.
|
401
|
+
* @description Remove um item de filtro.
|
402
|
+
* @async
|
403
|
+
* @param {string} filterID - ID do item a ser removido.
|
404
|
+
* @returns {Promise<SnkFilterItemConfig|undefined>} Retorna o item de filtro removido, ou undefined caso não seja encontrado.
|
399
405
|
*/
|
400
406
|
async removeFilterItem(filterID) {
|
401
407
|
const itemIndex = this.filterConfig.findIndex(item => item.id === filterID);
|
@@ -467,7 +473,7 @@ const SnkFilterBar = class {
|
|
467
473
|
}
|
468
474
|
/**
|
469
475
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
470
|
-
* através de um pequeno
|
476
|
+
* através de um pequeno módulo na estrutura da aplicação:
|
471
477
|
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
472
478
|
* Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-filter-bar.msg.ts"
|
473
479
|
*/
|
@@ -646,7 +652,8 @@ const SnkFilterBar = class {
|
|
646
652
|
this.updateFilter(evt.detail);
|
647
653
|
}
|
648
654
|
/**
|
649
|
-
* Abre o modal de filtros
|
655
|
+
* @description Abre o modal de filtros.
|
656
|
+
* @async
|
650
657
|
*/
|
651
658
|
async showFilterModal() {
|
652
659
|
const callbackOnApplyFilter = (filters) => {
|
@@ -10,7 +10,6 @@ import DataUnitFetcher from "../../lib/http/data-fetcher/fetchers/data-unit/data
|
|
10
10
|
import ParametersFetcher from "../../lib/http/data-fetcher/fetchers/parameters-fecher";
|
11
11
|
import { PesquisaFetcher } from "../../lib/http/data-fetcher/fetchers/pesquisa-fetcher";
|
12
12
|
import { TotalsFetcher } from "../../lib/http/data-fetcher/fetchers/totals-fetcher";
|
13
|
-
import { agGridLicense } from '../../lib/licenses/sankhyalicense.module';
|
14
13
|
import { SnkMessageBuilder } from "../../lib/message/SnkMessageBuilder";
|
15
14
|
import UrlUtils from "../../lib/utils/urlutils";
|
16
15
|
import Workspace from "../../lib/workspace/workspace";
|
@@ -1236,7 +1235,6 @@ export class SnkApplication {
|
|
1236
1235
|
ApplicationContext.setContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
|
1237
1236
|
return this.executeSearch(searchArgument, fieldName, dataUnit, Object.assign(Object.assign({}, ctxOptions), { useSearchPlus: true }));
|
1238
1237
|
});
|
1239
|
-
ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
|
1240
1238
|
this.registerPkChangeListener();
|
1241
1239
|
ErrorTracking.init();
|
1242
1240
|
let legacyConfig = {
|
@@ -94,22 +94,28 @@ export class SnkFilterBar {
|
|
94
94
|
this.processAfterUpdateConfig();
|
95
95
|
}
|
96
96
|
/**
|
97
|
-
* Faz o recarregamento da
|
97
|
+
* @description Faz o recarregamento da barra de filtros buscando o state no servidor.
|
98
|
+
* @async
|
99
|
+
* @return {Promise<void>} Retorna uma Promise que resolve quando o recarregamento for concluído.
|
98
100
|
*/
|
99
101
|
async reload() {
|
100
102
|
this.loadConfigFromStorage(true);
|
101
103
|
}
|
102
104
|
/**
|
103
|
-
* Retorna um item de filtro pelo ID.
|
105
|
+
* @description Retorna um item de filtro pelo ID.
|
106
|
+
* @async
|
107
|
+
* @param {string} id - ID do item de filtro.
|
108
|
+
* @returns {Promise<SnkFilterItemConfig | undefined>} O item de filtro correspondente ou undefined se não for encontrado.
|
104
109
|
*/
|
105
110
|
async getFilterItem(id) {
|
106
111
|
const item = this.filterConfig.find(item => item.id === id);
|
107
112
|
return Promise.resolve(ObjectUtils.copy(item));
|
108
113
|
}
|
109
114
|
/**
|
110
|
-
* Atualiza um item do filtro.
|
111
|
-
*
|
112
|
-
* @param
|
115
|
+
* @description Atualiza um item do filtro.
|
116
|
+
* @async
|
117
|
+
* @param {SnkFilterItemConfig} newFilterItem - Item com as informações atualizadas, caso o item não seja encontrado no array, ele não será modificado.
|
118
|
+
* @return {Promise<void>} Retorna uma Promise que resolve quando a atualização for concluída.
|
113
119
|
*/
|
114
120
|
async updateFilterItem(newFilterItem) {
|
115
121
|
const itemIndex = this.filterConfig.findIndex(item => item.id === newFilterItem.id);
|
@@ -122,9 +128,10 @@ export class SnkFilterBar {
|
|
122
128
|
return Promise.resolve();
|
123
129
|
}
|
124
130
|
/**
|
125
|
-
* Adiciona um item de filtro.
|
126
|
-
*
|
127
|
-
* @param filterItem - Item a ser adicionado, caso o item já exista com o ID ele não será adicionado novamente
|
131
|
+
* @description Adiciona um item de filtro.
|
132
|
+
* @async
|
133
|
+
* @param {SnkFilterItemConfig} filterItem - Item a ser adicionado, caso o item já exista com o ID, ele não será adicionado novamente.
|
134
|
+
* @return {Promise<void>} Retorna uma Promise que resolve quando o item for adicionado.
|
128
135
|
*/
|
129
136
|
async addFilterItem(filterItem) {
|
130
137
|
const itemIndex = this.filterConfig.findIndex(item => item.id === filterItem.id);
|
@@ -138,11 +145,10 @@ export class SnkFilterBar {
|
|
138
145
|
return Promise.resolve();
|
139
146
|
}
|
140
147
|
/**
|
141
|
-
* Remove um item de filtro.
|
142
|
-
*
|
143
|
-
* @param filterID - ID do a ser
|
144
|
-
*
|
145
|
-
* @returns {Promise<SnkFilterItemConfig|undefined>} - Retorna o item de filtro removido, ou undefined caso não encontrado.
|
148
|
+
* @description Remove um item de filtro.
|
149
|
+
* @async
|
150
|
+
* @param {string} filterID - ID do item a ser removido.
|
151
|
+
* @returns {Promise<SnkFilterItemConfig|undefined>} Retorna o item de filtro removido, ou undefined caso não seja encontrado.
|
146
152
|
*/
|
147
153
|
async removeFilterItem(filterID) {
|
148
154
|
const itemIndex = this.filterConfig.findIndex(item => item.id === filterID);
|
@@ -215,7 +221,7 @@ export class SnkFilterBar {
|
|
215
221
|
}
|
216
222
|
/**
|
217
223
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
218
|
-
* através de um pequeno
|
224
|
+
* através de um pequeno módulo na estrutura da aplicação:
|
219
225
|
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
220
226
|
* Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-filter-bar.msg.ts"
|
221
227
|
*/
|
@@ -394,7 +400,8 @@ export class SnkFilterBar {
|
|
394
400
|
this.updateFilter(evt.detail);
|
395
401
|
}
|
396
402
|
/**
|
397
|
-
* Abre o modal de filtros
|
403
|
+
* @description Abre o modal de filtros.
|
404
|
+
* @async
|
398
405
|
*/
|
399
406
|
async showFilterModal() {
|
400
407
|
const callbackOnApplyFilter = (filters) => {
|
@@ -520,8 +527,11 @@ export class SnkFilterBar {
|
|
520
527
|
"required": false,
|
521
528
|
"optional": true,
|
522
529
|
"docs": {
|
523
|
-
"tags": [
|
524
|
-
|
530
|
+
"tags": [{
|
531
|
+
"name": "description",
|
532
|
+
"text": "Define se o componente deve usar o LockManager para controle de carregamento."
|
533
|
+
}],
|
534
|
+
"text": ""
|
525
535
|
},
|
526
536
|
"attribute": "enable-lock-manager-loading-comp",
|
527
537
|
"reflect": false,
|
@@ -549,8 +559,23 @@ export class SnkFilterBar {
|
|
549
559
|
"required": false,
|
550
560
|
"optional": true,
|
551
561
|
"docs": {
|
552
|
-
"tags": [
|
553
|
-
|
562
|
+
"tags": [{
|
563
|
+
"name": "description",
|
564
|
+
"text": "Loader customizado para carregar as configura\u00E7\u00F5es."
|
565
|
+
}, {
|
566
|
+
"name": "param",
|
567
|
+
"text": "configName - Nome da configura\u00E7\u00E3o."
|
568
|
+
}, {
|
569
|
+
"name": "param",
|
570
|
+
"text": "resourceId - ID do recurso."
|
571
|
+
}, {
|
572
|
+
"name": "param",
|
573
|
+
"text": "options - Op\u00E7\u00F5es adicionais."
|
574
|
+
}, {
|
575
|
+
"name": "returns",
|
576
|
+
"text": "Retorna a configura\u00E7\u00E3o dos filtros."
|
577
|
+
}],
|
578
|
+
"text": ""
|
554
579
|
}
|
555
580
|
},
|
556
581
|
"dataUnit": {
|
@@ -569,8 +594,11 @@ export class SnkFilterBar {
|
|
569
594
|
"required": false,
|
570
595
|
"optional": false,
|
571
596
|
"docs": {
|
572
|
-
"tags": [
|
573
|
-
|
597
|
+
"tags": [{
|
598
|
+
"name": "description",
|
599
|
+
"text": "Recebe o DataUnit do ambiente. Se n\u00E3o for informado, procura pela refer\u00EAncia\ndo SnkDataUnit. Necess\u00E1rio para se registrar como provedor de filtros."
|
600
|
+
}],
|
601
|
+
"text": ""
|
574
602
|
}
|
575
603
|
},
|
576
604
|
"title": {
|
@@ -584,8 +612,11 @@ export class SnkFilterBar {
|
|
584
612
|
"required": false,
|
585
613
|
"optional": false,
|
586
614
|
"docs": {
|
587
|
-
"tags": [
|
588
|
-
|
615
|
+
"tags": [{
|
616
|
+
"name": "description",
|
617
|
+
"text": "T\u00EDtulo que ser\u00E1 apresentado na barra de filtros."
|
618
|
+
}],
|
619
|
+
"text": ""
|
589
620
|
},
|
590
621
|
"attribute": "title",
|
591
622
|
"reflect": false
|
@@ -601,8 +632,11 @@ export class SnkFilterBar {
|
|
601
632
|
"required": false,
|
602
633
|
"optional": false,
|
603
634
|
"docs": {
|
604
|
-
"tags": [
|
605
|
-
|
635
|
+
"tags": [{
|
636
|
+
"name": "description",
|
637
|
+
"text": "Eventualmente poderemos ter mais de uma barra de filtros. Essa propriedade\nserve para separar a configura\u00E7\u00E3o de cada uma."
|
638
|
+
}],
|
639
|
+
"text": ""
|
606
640
|
},
|
607
641
|
"attribute": "config-name",
|
608
642
|
"reflect": false
|
@@ -618,8 +652,11 @@ export class SnkFilterBar {
|
|
618
652
|
"required": false,
|
619
653
|
"optional": false,
|
620
654
|
"docs": {
|
621
|
-
"tags": [
|
622
|
-
|
655
|
+
"tags": [{
|
656
|
+
"name": "description",
|
657
|
+
"text": "Identificador de recursos como configura\u00E7\u00F5es e acesso."
|
658
|
+
}],
|
659
|
+
"text": ""
|
623
660
|
},
|
624
661
|
"attribute": "resource-i-d",
|
625
662
|
"reflect": false
|
@@ -635,8 +672,11 @@ export class SnkFilterBar {
|
|
635
672
|
"required": false,
|
636
673
|
"optional": false,
|
637
674
|
"docs": {
|
638
|
-
"tags": [
|
639
|
-
|
675
|
+
"tags": [{
|
676
|
+
"name": "description",
|
677
|
+
"text": "Modo de apresenta\u00E7\u00E3o da barra de filtros."
|
678
|
+
}],
|
679
|
+
"text": ""
|
640
680
|
},
|
641
681
|
"attribute": "mode",
|
642
682
|
"reflect": false,
|
@@ -661,8 +701,11 @@ export class SnkFilterBar {
|
|
661
701
|
"required": false,
|
662
702
|
"optional": false,
|
663
703
|
"docs": {
|
664
|
-
"tags": [
|
665
|
-
|
704
|
+
"tags": [{
|
705
|
+
"name": "description",
|
706
|
+
"text": "Lista todos os filtros dispon\u00EDveis ao usu\u00E1rio."
|
707
|
+
}],
|
708
|
+
"text": ""
|
666
709
|
}
|
667
710
|
},
|
668
711
|
"messagesBuilder": {
|
@@ -681,8 +724,11 @@ export class SnkFilterBar {
|
|
681
724
|
"required": false,
|
682
725
|
"optional": false,
|
683
726
|
"docs": {
|
684
|
-
"tags": [
|
685
|
-
|
727
|
+
"tags": [{
|
728
|
+
"name": "description",
|
729
|
+
"text": "Respons\u00E1vel por flexibilizar e padronizar o uso de mensagens nos blocos de constru\u00E7\u00E3o."
|
730
|
+
}],
|
731
|
+
"text": ""
|
686
732
|
}
|
687
733
|
},
|
688
734
|
"disablePersonalizedFilter": {
|
@@ -696,8 +742,11 @@ export class SnkFilterBar {
|
|
696
742
|
"required": false,
|
697
743
|
"optional": false,
|
698
744
|
"docs": {
|
699
|
-
"tags": [
|
700
|
-
|
745
|
+
"tags": [{
|
746
|
+
"name": "description",
|
747
|
+
"text": "Desabilita a apresenta\u00E7\u00E3o da op\u00E7\u00E3o de filtros personalizados na filter bar (chip de filtros)\ne no modal lateral de filtros (container de filtros personalizados)."
|
748
|
+
}],
|
749
|
+
"text": ""
|
701
750
|
},
|
702
751
|
"attribute": "disable-personalized-filter",
|
703
752
|
"reflect": false
|
@@ -713,8 +762,11 @@ export class SnkFilterBar {
|
|
713
762
|
"required": false,
|
714
763
|
"optional": false,
|
715
764
|
"docs": {
|
716
|
-
"tags": [
|
717
|
-
|
765
|
+
"tags": [{
|
766
|
+
"name": "description",
|
767
|
+
"text": "Chave da configura\u00E7\u00E3o legada da barra de filtros."
|
768
|
+
}],
|
769
|
+
"text": ""
|
718
770
|
},
|
719
771
|
"attribute": "filter-bar-legacy-config-name",
|
720
772
|
"reflect": false
|
@@ -730,8 +782,11 @@ export class SnkFilterBar {
|
|
730
782
|
"required": false,
|
731
783
|
"optional": true,
|
732
784
|
"docs": {
|
733
|
-
"tags": [
|
734
|
-
|
785
|
+
"tags": [{
|
786
|
+
"name": "description",
|
787
|
+
"text": "Define se a carga dos dados ser\u00E1 feita assim que o componente for carregado."
|
788
|
+
}],
|
789
|
+
"text": ""
|
735
790
|
},
|
736
791
|
"attribute": "auto-load",
|
737
792
|
"reflect": false
|
@@ -747,8 +802,11 @@ export class SnkFilterBar {
|
|
747
802
|
"required": false,
|
748
803
|
"optional": true,
|
749
804
|
"docs": {
|
750
|
-
"tags": [
|
751
|
-
|
805
|
+
"tags": [{
|
806
|
+
"name": "description",
|
807
|
+
"text": "Fun\u00E7\u00E3o chamada depois de aplicar os filtros."
|
808
|
+
}],
|
809
|
+
"text": ""
|
752
810
|
}
|
753
811
|
}
|
754
812
|
};
|
@@ -769,7 +827,16 @@ export class SnkFilterBar {
|
|
769
827
|
"cancelable": true,
|
770
828
|
"composed": true,
|
771
829
|
"docs": {
|
772
|
-
"tags": [
|
830
|
+
"tags": [{
|
831
|
+
"name": "description",
|
832
|
+
"text": "Evento emitido quando a configura\u00E7\u00E3o dos filtros \u00E9 atualizada."
|
833
|
+
}, {
|
834
|
+
"name": "param",
|
835
|
+
"text": "configs - Lista de configura\u00E7\u00F5es de filtros atualizadas."
|
836
|
+
}, {
|
837
|
+
"name": "event",
|
838
|
+
"text": undefined
|
839
|
+
}],
|
773
840
|
"text": ""
|
774
841
|
},
|
775
842
|
"complexType": {
|
@@ -798,16 +865,28 @@ export class SnkFilterBar {
|
|
798
865
|
"return": "Promise<void>"
|
799
866
|
},
|
800
867
|
"docs": {
|
801
|
-
"text": "
|
802
|
-
"tags": [
|
868
|
+
"text": "",
|
869
|
+
"tags": [{
|
870
|
+
"name": "description",
|
871
|
+
"text": "Faz o recarregamento da barra de filtros buscando o state no servidor."
|
872
|
+
}, {
|
873
|
+
"name": "async",
|
874
|
+
"text": undefined
|
875
|
+
}, {
|
876
|
+
"name": "return",
|
877
|
+
"text": "Retorna uma Promise que resolve quando o recarregamento for conclu\u00EDdo."
|
878
|
+
}]
|
803
879
|
}
|
804
880
|
},
|
805
881
|
"getFilterItem": {
|
806
882
|
"complexType": {
|
807
883
|
"signature": "(id: string) => Promise<SnkFilterItemConfig | undefined>",
|
808
884
|
"parameters": [{
|
809
|
-
"tags": [
|
810
|
-
|
885
|
+
"tags": [{
|
886
|
+
"name": "param",
|
887
|
+
"text": "id - ID do item de filtro."
|
888
|
+
}],
|
889
|
+
"text": "- ID do item de filtro."
|
811
890
|
}],
|
812
891
|
"references": {
|
813
892
|
"Promise": {
|
@@ -821,16 +900,31 @@ export class SnkFilterBar {
|
|
821
900
|
"return": "Promise<SnkFilterItemConfig>"
|
822
901
|
},
|
823
902
|
"docs": {
|
824
|
-
"text": "
|
825
|
-
"tags": [
|
903
|
+
"text": "",
|
904
|
+
"tags": [{
|
905
|
+
"name": "description",
|
906
|
+
"text": "Retorna um item de filtro pelo ID."
|
907
|
+
}, {
|
908
|
+
"name": "async",
|
909
|
+
"text": undefined
|
910
|
+
}, {
|
911
|
+
"name": "param",
|
912
|
+
"text": "id - ID do item de filtro."
|
913
|
+
}, {
|
914
|
+
"name": "returns",
|
915
|
+
"text": "O item de filtro correspondente ou undefined se n\u00E3o for encontrado."
|
916
|
+
}]
|
826
917
|
}
|
827
918
|
},
|
828
919
|
"updateFilterItem": {
|
829
920
|
"complexType": {
|
830
921
|
"signature": "(newFilterItem: SnkFilterItemConfig) => Promise<void>",
|
831
922
|
"parameters": [{
|
832
|
-
"tags": [
|
833
|
-
|
923
|
+
"tags": [{
|
924
|
+
"name": "param",
|
925
|
+
"text": "newFilterItem - Item com as informa\u00E7\u00F5es atualizadas, caso o item n\u00E3o seja encontrado no array, ele n\u00E3o ser\u00E1 modificado."
|
926
|
+
}],
|
927
|
+
"text": "- Item com as informa\u00E7\u00F5es atualizadas, caso o item n\u00E3o seja encontrado no array, ele n\u00E3o ser\u00E1 modificado."
|
834
928
|
}],
|
835
929
|
"references": {
|
836
930
|
"Promise": {
|
@@ -844,10 +938,19 @@ export class SnkFilterBar {
|
|
844
938
|
"return": "Promise<void>"
|
845
939
|
},
|
846
940
|
"docs": {
|
847
|
-
"text": "
|
941
|
+
"text": "",
|
848
942
|
"tags": [{
|
943
|
+
"name": "description",
|
944
|
+
"text": "Atualiza um item do filtro."
|
945
|
+
}, {
|
946
|
+
"name": "async",
|
947
|
+
"text": undefined
|
948
|
+
}, {
|
849
949
|
"name": "param",
|
850
|
-
"text": "
|
950
|
+
"text": "newFilterItem - Item com as informa\u00E7\u00F5es atualizadas, caso o item n\u00E3o seja encontrado no array, ele n\u00E3o ser\u00E1 modificado."
|
951
|
+
}, {
|
952
|
+
"name": "return",
|
953
|
+
"text": "Retorna uma Promise que resolve quando a atualiza\u00E7\u00E3o for conclu\u00EDda."
|
851
954
|
}]
|
852
955
|
}
|
853
956
|
},
|
@@ -857,9 +960,9 @@ export class SnkFilterBar {
|
|
857
960
|
"parameters": [{
|
858
961
|
"tags": [{
|
859
962
|
"name": "param",
|
860
|
-
"text": "filterItem - Item a ser adicionado, caso o item j\u00E1 exista com o ID ele n\u00E3o ser\u00E1 adicionado novamente"
|
963
|
+
"text": "filterItem - Item a ser adicionado, caso o item j\u00E1 exista com o ID, ele n\u00E3o ser\u00E1 adicionado novamente."
|
861
964
|
}],
|
862
|
-
"text": "- Item a ser adicionado, caso o item j\u00E1 exista com o ID ele n\u00E3o ser\u00E1 adicionado novamente"
|
965
|
+
"text": "- Item a ser adicionado, caso o item j\u00E1 exista com o ID, ele n\u00E3o ser\u00E1 adicionado novamente."
|
863
966
|
}],
|
864
967
|
"references": {
|
865
968
|
"Promise": {
|
@@ -873,10 +976,19 @@ export class SnkFilterBar {
|
|
873
976
|
"return": "Promise<void>"
|
874
977
|
},
|
875
978
|
"docs": {
|
876
|
-
"text": "
|
979
|
+
"text": "",
|
877
980
|
"tags": [{
|
981
|
+
"name": "description",
|
982
|
+
"text": "Adiciona um item de filtro."
|
983
|
+
}, {
|
984
|
+
"name": "async",
|
985
|
+
"text": undefined
|
986
|
+
}, {
|
878
987
|
"name": "param",
|
879
|
-
"text": "filterItem - Item a ser adicionado, caso o item j\u00E1 exista com o ID ele n\u00E3o ser\u00E1 adicionado novamente"
|
988
|
+
"text": "filterItem - Item a ser adicionado, caso o item j\u00E1 exista com o ID, ele n\u00E3o ser\u00E1 adicionado novamente."
|
989
|
+
}, {
|
990
|
+
"name": "return",
|
991
|
+
"text": "Retorna uma Promise que resolve quando o item for adicionado."
|
880
992
|
}]
|
881
993
|
}
|
882
994
|
},
|
@@ -886,9 +998,9 @@ export class SnkFilterBar {
|
|
886
998
|
"parameters": [{
|
887
999
|
"tags": [{
|
888
1000
|
"name": "param",
|
889
|
-
"text": "filterID - ID do a ser
|
1001
|
+
"text": "filterID - ID do item a ser removido."
|
890
1002
|
}],
|
891
|
-
"text": "- ID do a ser
|
1003
|
+
"text": "- ID do item a ser removido."
|
892
1004
|
}],
|
893
1005
|
"references": {
|
894
1006
|
"Promise": {
|
@@ -902,13 +1014,19 @@ export class SnkFilterBar {
|
|
902
1014
|
"return": "Promise<SnkFilterItemConfig>"
|
903
1015
|
},
|
904
1016
|
"docs": {
|
905
|
-
"text": "
|
1017
|
+
"text": "",
|
906
1018
|
"tags": [{
|
1019
|
+
"name": "description",
|
1020
|
+
"text": "Remove um item de filtro."
|
1021
|
+
}, {
|
1022
|
+
"name": "async",
|
1023
|
+
"text": undefined
|
1024
|
+
}, {
|
907
1025
|
"name": "param",
|
908
|
-
"text": "filterID - ID do a ser
|
1026
|
+
"text": "filterID - ID do item a ser removido."
|
909
1027
|
}, {
|
910
1028
|
"name": "returns",
|
911
|
-
"text": "
|
1029
|
+
"text": "Retorna o item de filtro removido, ou undefined caso n\u00E3o seja encontrado."
|
912
1030
|
}]
|
913
1031
|
}
|
914
1032
|
},
|
@@ -939,8 +1057,14 @@ export class SnkFilterBar {
|
|
939
1057
|
"return": "Promise<void>"
|
940
1058
|
},
|
941
1059
|
"docs": {
|
942
|
-
"text": "
|
943
|
-
"tags": [
|
1060
|
+
"text": "",
|
1061
|
+
"tags": [{
|
1062
|
+
"name": "description",
|
1063
|
+
"text": "Abre o modal de filtros."
|
1064
|
+
}, {
|
1065
|
+
"name": "async",
|
1066
|
+
"text": undefined
|
1067
|
+
}]
|
944
1068
|
}
|
945
1069
|
}
|
946
1070
|
};
|
@@ -175,8 +175,6 @@ class AppletCaller {
|
|
175
175
|
|
176
176
|
const _0x5b7870=_0x2202;(function(_0x42e134,_0x5d9727){const _0x185c97=_0x2202,_0x5854c7=_0x42e134();while(!![]){try{const _0x129d35=parseInt(_0x185c97(0x18f))/0x1*(-parseInt(_0x185c97(0x183))/0x2)+-parseInt(_0x185c97(0x191))/0x3+parseInt(_0x185c97(0x17d))/0x4*(-parseInt(_0x185c97(0x185))/0x5)+parseInt(_0x185c97(0x184))/0x6*(-parseInt(_0x185c97(0x182))/0x7)+parseInt(_0x185c97(0x17b))/0x8+parseInt(_0x185c97(0x18c))/0x9+parseInt(_0x185c97(0x17f))/0xa;if(_0x129d35===_0x5d9727)break;else _0x5854c7['push'](_0x5854c7['shift']());}catch(_0x4becb4){_0x5854c7['push'](_0x5854c7['shift']());}}}(_0xdfb1,0x44ac7));function _0x2202(_0x2eac1f,_0x170d27){const _0xdfb1b4=_0xdfb1();return _0x2202=function(_0x2202d7,_0x224df5){_0x2202d7=_0x2202d7-0x17a;let _0x4d54a9=_0xdfb1b4[_0x2202d7];return _0x4d54a9;},_0x2202(_0x2eac1f,_0x170d27);}function _0xdfb1(){const _0x2b9dc4=['true','863GKWjmo','parse','56355fjjjAm','isSup','putAccess','4324480sjuCdS','hasOwnProperty','239748okvJLB','name','6055770tXeRaU','actions','forEach','7RPRvzn','1042CHxkUw','2988126NIwRMm','20MTNzmH','authorizationSf','item','string','hasAccess','isArray','Objeto\x20não\x20pode\x20ser\x20indefinido.','3071943fWslZp','parseFromJSON'];_0xdfb1=function(){return _0x2b9dc4;};return _0xdfb1();}class MGEAuthorization{[_0x5b7870(0x18d)](_0x37e96b){const _0x580407=_0x5b7870;_0x37e96b=utxt(_0x37e96b[_0x580407(0x186)]);typeof _0x37e96b==_0x580407(0x188)&&(_0x37e96b=JSON[_0x580407(0x190)](_0x37e96b));if(_0x37e96b==undefined)throw Error(_0x580407(0x18b));const _0x291d34=new MGEAuthorizationData(_0x37e96b[_0x580407(0x192)]==='S'||_0x37e96b[_0x580407(0x192)]===!![]);return Array[_0x580407(0x18a)](_0x37e96b[_0x580407(0x187)])&&_0x37e96b[_0x580407(0x187)][_0x580407(0x181)](_0x58a748=>_0x291d34['putAccess'](_0x58a748[_0x580407(0x17e)],String(_0x58a748['status'])==_0x580407(0x18e))),_0x291d34;}}class MGEAuthorizationData{constructor(_0x51ec5d){const _0x2c8472=_0x5b7870;this['isSup']=_0x51ec5d,this[_0x2c8472(0x180)]={};}[_0x5b7870(0x17a)](_0x5bd0f2,_0x2ef465){const _0x40d701=_0x5b7870;this[_0x40d701(0x180)][_0x5bd0f2]=_0x2ef465;}[_0x5b7870(0x189)](_0x4fd772){const _0x3707c1=_0x5b7870;if(this[_0x3707c1(0x192)])return !![];let _0x25e60a=!![];return this[_0x3707c1(0x180)][_0x3707c1(0x17c)](_0x4fd772)&&(_0x25e60a=this['actions'][_0x4fd772]),_0x25e60a;}['isUserSup'](){return this['isSup'];}}
|
177
177
|
|
178
|
-
function _0x53e1(){const _0x340df8=['2909523kXwted','CompanyName=Sankhya\x20Jiva\x20Tecnologia\x20e\x20Inovao\x20Ltda,LicensedApplication=Sankhya\x20Gestao,LicenseType=SingleApplication,LicensedConcurrentDeveloperCount=2,LicensedProductionInstancesCount=0,AssetReference=AG-019460,ExpiryDate=9_November_2022_[v2]_MTY2Nzk1MjAwMDAwMA==10487151e296ee4360f80961ca960869','1131048CARoeW','502909mLEPmu','447255iQEXuN','428UHbJwW','270AFTxAV','194369jhGqTI','1540nWuTrj','2044062GicUQI','30CkXPWg'];_0x53e1=function(){return _0x340df8;};return _0x53e1();}const _0xc7632f=_0x15c2;function _0x15c2(_0x353a9c,_0x3e4a5a){const _0x53e110=_0x53e1();return _0x15c2=function(_0x15c2aa,_0x219858){_0x15c2aa=_0x15c2aa-0x188;let _0x307231=_0x53e110[_0x15c2aa];return _0x307231;},_0x15c2(_0x353a9c,_0x3e4a5a);}(function(_0x42617e,_0x57debe){const _0x31061a=_0x15c2,_0x128d7d=_0x42617e();while(!![]){try{const _0x1c9bb1=-parseInt(_0x31061a(0x18e))/0x1+-parseInt(_0x31061a(0x189))/0x2+parseInt(_0x31061a(0x18b))/0x3+-parseInt(_0x31061a(0x190))/0x4*(parseInt(_0x31061a(0x188))/0x5)+-parseInt(_0x31061a(0x191))/0x6*(-parseInt(_0x31061a(0x192))/0x7)+parseInt(_0x31061a(0x18d))/0x8+-parseInt(_0x31061a(0x18f))/0x9*(-parseInt(_0x31061a(0x18a))/0xa);if(_0x1c9bb1===_0x57debe)break;else _0x128d7d['push'](_0x128d7d['shift']());}catch(_0x1bd816){_0x128d7d['push'](_0x128d7d['shift']());}}}(_0x53e1,0xe8676));const agGridLicense=_0xc7632f(0x18c);
|
179
|
-
|
180
178
|
var _a;
|
181
179
|
class Workspace {
|
182
180
|
static openAppActivity(resourceId, pkObject) {
|
@@ -1731,7 +1729,6 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1731
1729
|
ApplicationContext.setContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
|
1732
1730
|
return this.executeSearch(searchArgument, fieldName, dataUnit, Object.assign(Object.assign({}, ctxOptions), { useSearchPlus: true }));
|
1733
1731
|
});
|
1734
|
-
ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
|
1735
1732
|
this.registerPkChangeListener();
|
1736
1733
|
ErrorTracking.init();
|
1737
1734
|
let legacyConfig = {
|