@sankhyalabs/sankhyablocks 9.2.0-ms.13 → 9.2.0-ms.3
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/loader.cjs.js +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +3 -0
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +15 -25
- package/dist/cjs/snk-form_2.cjs.entry.js +1 -27
- package/dist/cjs/snk-grid.cjs.entry.js +0 -4
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +2 -10
- package/dist/cjs/snk-simple-bar.cjs.entry.js +5 -5
- package/dist/cjs/snk-simple-crud.cjs.entry.js +8 -45
- package/dist/collection/components/snk-application/snk-application.js +2 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +63 -210
- package/dist/collection/components/snk-form/snk-form.js +22 -133
- package/dist/collection/components/snk-grid/snk-grid.js +0 -38
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +21 -83
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +14 -80
- package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +9 -9
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +119 -414
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +36 -102
- package/dist/collection/lib/licenses/sankhyalicense.module.js +1 -0
- package/dist/components/snk-application2.js +3 -0
- package/dist/components/snk-filter-bar2.js +15 -26
- package/dist/components/snk-form.js +2 -29
- package/dist/components/snk-grid2.js +0 -6
- package/dist/components/snk-personalized-filter2.js +2 -10
- package/dist/components/snk-simple-bar2.js +5 -5
- package/dist/components/snk-simple-crud2.js +8 -45
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-application.entry.js +3 -0
- package/dist/esm/snk-filter-bar_4.entry.js +15 -25
- package/dist/esm/snk-form_2.entry.js +1 -27
- package/dist/esm/snk-grid.entry.js +0 -4
- package/dist/esm/snk-personalized-filter.entry.js +2 -10
- package/dist/esm/snk-simple-bar.entry.js +5 -5
- package/dist/esm/snk-simple-crud.entry.js +8 -45
- package/dist/sankhyablocks/p-012208e0.entry.js +1 -0
- package/dist/sankhyablocks/p-81769310.entry.js +11 -0
- package/dist/sankhyablocks/p-a86eee47.entry.js +1 -0
- package/dist/sankhyablocks/p-fa18530e.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +28 -45
- package/dist/types/components/snk-form/snk-form.d.ts +4 -29
- package/dist/types/components/snk-grid/snk-grid.d.ts +0 -5
- package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +5 -53
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +6 -44
- package/dist/types/components/snk-simple-bar/snk-simple-bar.d.ts +15 -15
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +43 -100
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +21 -23
- package/dist/types/components.d.ts +165 -379
- package/package.json +1 -1
- package/dist/sankhyablocks/p-51464e95.entry.js +0 -1
- package/dist/sankhyablocks/p-665dd170.entry.js +0 -11
- package/dist/sankhyablocks/p-6fa3d474.entry.js +0 -1
- package/dist/sankhyablocks/p-cf7063a4.entry.js +0 -1
@@ -470,11 +470,8 @@ export class SnkTaskbar {
|
|
470
470
|
"required": false,
|
471
471
|
"optional": false,
|
472
472
|
"docs": {
|
473
|
-
"tags": [
|
474
|
-
|
475
|
-
"text": "Define o alinhamento dos itens da barra de tarefas \u00E0 direita."
|
476
|
-
}],
|
477
|
-
"text": ""
|
473
|
+
"tags": [],
|
474
|
+
"text": "Usado para determinar O alinhamento dos items na taskbar."
|
478
475
|
},
|
479
476
|
"attribute": "align-rigth",
|
480
477
|
"reflect": false,
|
@@ -491,11 +488,8 @@ export class SnkTaskbar {
|
|
491
488
|
"required": false,
|
492
489
|
"optional": false,
|
493
490
|
"docs": {
|
494
|
-
"tags": [
|
495
|
-
|
496
|
-
"text": "Define o identificador do slot que recebe elementos personalizados."
|
497
|
-
}],
|
498
|
-
"text": ""
|
491
|
+
"tags": [],
|
492
|
+
"text": "Usado para determinar o identificador do slot que recebe elementos personalizados."
|
499
493
|
},
|
500
494
|
"attribute": "custom-slot-id",
|
501
495
|
"reflect": false,
|
@@ -512,14 +506,8 @@ export class SnkTaskbar {
|
|
512
506
|
"required": false,
|
513
507
|
"optional": false,
|
514
508
|
"docs": {
|
515
|
-
"tags": [
|
516
|
-
|
517
|
-
"text": "Define o identificador do cont\u00EAiner na DOM que \u00E9 respons\u00E1vel por guardar os elementos personalizados\nque n\u00E3o podem ser passados por slot."
|
518
|
-
}, {
|
519
|
-
"name": "example",
|
520
|
-
"text": "Elementos customizados na Taskbar da aba de detalhes."
|
521
|
-
}],
|
522
|
-
"text": ""
|
509
|
+
"tags": [],
|
510
|
+
"text": "Usado para determinar o identificador do container na DOM que \u00E9 responsavel por guardar os elementos personalizados\nque n\u00E3o podem ser passados por slot.\n\nExemplo: Elementos customizados na Taskbar da aba de detalhes."
|
523
511
|
},
|
524
512
|
"attribute": "custom-container-id",
|
525
513
|
"reflect": false
|
@@ -535,11 +523,8 @@ export class SnkTaskbar {
|
|
535
523
|
"required": false,
|
536
524
|
"optional": false,
|
537
525
|
"docs": {
|
538
|
-
"tags": [
|
539
|
-
|
540
|
-
"text": "Define como ser\u00E1 o comportamento da barra de tarefas quando ocorrer um overflow de itens."
|
541
|
-
}],
|
542
|
-
"text": ""
|
526
|
+
"tags": [],
|
527
|
+
"text": "Define como ser\u00E1 o comportamento da taskbar quando ocorrer overflow"
|
543
528
|
},
|
544
529
|
"attribute": "overflow-strategy",
|
545
530
|
"reflect": false,
|
@@ -556,11 +541,8 @@ export class SnkTaskbar {
|
|
556
541
|
"required": false,
|
557
542
|
"optional": false,
|
558
543
|
"docs": {
|
559
|
-
"tags": [
|
560
|
-
|
561
|
-
"text": "Nome da configura\u00E7\u00E3o usada para salvar ou recuperar as configura\u00E7\u00F5es do formul\u00E1rio. Tamb\u00E9m \u00E9 utilizado como fallback para a chave de armazenamento do exportador de dados."
|
562
|
-
}],
|
563
|
-
"text": ""
|
544
|
+
"tags": [],
|
545
|
+
"text": "Usado para guardar ou recuperar as configura\u00E7\u00F5es do formul\u00E1rio."
|
564
546
|
},
|
565
547
|
"attribute": "config-name",
|
566
548
|
"reflect": false
|
@@ -576,11 +558,8 @@ export class SnkTaskbar {
|
|
576
558
|
"required": false,
|
577
559
|
"optional": false,
|
578
560
|
"docs": {
|
579
|
-
"tags": [
|
580
|
-
|
581
|
-
"text": "Identificador de recursos, como configura\u00E7\u00F5es e permiss\u00F5es de acesso."
|
582
|
-
}],
|
583
|
-
"text": ""
|
561
|
+
"tags": [],
|
562
|
+
"text": "Identificador de recursos como configura\u00E7\u00F5es e acesso."
|
584
563
|
},
|
585
564
|
"attribute": "resource-i-d",
|
586
565
|
"reflect": false
|
@@ -596,11 +575,8 @@ export class SnkTaskbar {
|
|
596
575
|
"required": false,
|
597
576
|
"optional": false,
|
598
577
|
"docs": {
|
599
|
-
"tags": [
|
600
|
-
|
601
|
-
"text": "Lista de bot\u00F5es, separados por v\u00EDrgula, que define todos os elementos a serem criados na barra de tarefas."
|
602
|
-
}],
|
603
|
-
"text": ""
|
578
|
+
"tags": [],
|
579
|
+
"text": "Lista separada por virgula, contendo todos os elementos a serem criados."
|
604
580
|
},
|
605
581
|
"attribute": "buttons",
|
606
582
|
"reflect": false
|
@@ -623,11 +599,8 @@ export class SnkTaskbar {
|
|
623
599
|
"required": false,
|
624
600
|
"optional": false,
|
625
601
|
"docs": {
|
626
|
-
"tags": [
|
627
|
-
|
628
|
-
"text": "Mapa com defini\u00E7\u00F5es de bot\u00F5es personalizados. A chave do mapa deve ser informada na propriedade `buttons` no local onde o bot\u00E3o deve ser renderizado."
|
629
|
-
}],
|
630
|
-
"text": ""
|
602
|
+
"tags": [],
|
603
|
+
"text": "Mapa com defini\u00E7\u00E3o de bot\u00F5es personalizados. A chave do mapa deve ser\npassada na lista \"buttons\" no lugar onde o bot\u00E3o ir\u00E1 aparecer."
|
631
604
|
}
|
632
605
|
},
|
633
606
|
"actionsList": {
|
@@ -648,11 +621,8 @@ export class SnkTaskbar {
|
|
648
621
|
"required": false,
|
649
622
|
"optional": false,
|
650
623
|
"docs": {
|
651
|
-
"tags": [
|
652
|
-
|
653
|
-
"text": "Lista de a\u00E7\u00F5es a serem exibidas no bot\u00E3o \"Mais op\u00E7\u00F5es\"."
|
654
|
-
}],
|
655
|
-
"text": ""
|
624
|
+
"tags": [],
|
625
|
+
"text": "Lista de a\u00E7\u00F5es que devem ser usadas no bot\u00E3o \"Mais op\u00E7\u00F5es\" do componente snk-taskbar."
|
656
626
|
}
|
657
627
|
},
|
658
628
|
"actionsSettingsList": {
|
@@ -673,11 +643,8 @@ export class SnkTaskbar {
|
|
673
643
|
"required": false,
|
674
644
|
"optional": false,
|
675
645
|
"docs": {
|
676
|
-
"tags": [
|
677
|
-
|
678
|
-
"text": "Lista de a\u00E7\u00F5es que devem ser usadas no bot\u00E3o \"Mais op\u00E7\u00F5es\" do componente snk-taskbar."
|
679
|
-
}],
|
680
|
-
"text": ""
|
646
|
+
"tags": [],
|
647
|
+
"text": "Lista de a\u00E7\u00F5es que devem ser usadas no bot\u00E3o \"Mais op\u00E7\u00F5es\" do componente snk-taskbar."
|
681
648
|
}
|
682
649
|
},
|
683
650
|
"primaryButton": {
|
@@ -691,11 +658,8 @@ export class SnkTaskbar {
|
|
691
658
|
"required": false,
|
692
659
|
"optional": false,
|
693
660
|
"docs": {
|
694
|
-
"tags": [
|
695
|
-
|
696
|
-
"text": "Define qual bot\u00E3o deve ter a apar\u00EAncia de destaque (prim\u00E1rio)."
|
697
|
-
}],
|
698
|
-
"text": ""
|
661
|
+
"tags": [],
|
662
|
+
"text": "Determina qual bot\u00E3o deve ter apar\u00EAncia prim\u00E1ria."
|
699
663
|
},
|
700
664
|
"attribute": "primary-button",
|
701
665
|
"reflect": false
|
@@ -715,11 +679,8 @@ export class SnkTaskbar {
|
|
715
679
|
"required": false,
|
716
680
|
"optional": false,
|
717
681
|
"docs": {
|
718
|
-
"tags": [
|
719
|
-
|
720
|
-
"text": "Array contendo os identificadores de todos os bot\u00F5es que devem ser desabilitados."
|
721
|
-
}],
|
722
|
-
"text": ""
|
682
|
+
"tags": [],
|
683
|
+
"text": "Array contendo todos os bot\u00F5es a serem desabilitados."
|
723
684
|
}
|
724
685
|
},
|
725
686
|
"dataUnit": {
|
@@ -738,11 +699,8 @@ export class SnkTaskbar {
|
|
738
699
|
"required": false,
|
739
700
|
"optional": false,
|
740
701
|
"docs": {
|
741
|
-
"tags": [
|
742
|
-
|
743
|
-
"text": "Inst\u00E2ncia do `DataUnit` com a qual a barra de tarefas ir\u00E1 interagir para realizar opera\u00E7\u00F5es de dados (ex: salvar, pr\u00F3ximo, anterior)."
|
744
|
-
}],
|
745
|
-
"text": ""
|
702
|
+
"tags": [],
|
703
|
+
"text": "Inst\u00E2ncia do DataUnit."
|
746
704
|
}
|
747
705
|
},
|
748
706
|
"presentationMode": {
|
@@ -761,11 +719,8 @@ export class SnkTaskbar {
|
|
761
719
|
"required": false,
|
762
720
|
"optional": false,
|
763
721
|
"docs": {
|
764
|
-
"tags": [
|
765
|
-
|
766
|
-
"text": "Altera o modo de apresenta\u00E7\u00E3o dos bot\u00F5es da barra de tarefas."
|
767
|
-
}],
|
768
|
-
"text": ""
|
722
|
+
"tags": [],
|
723
|
+
"text": "Altera o modo de apresenta\u00E7\u00E3o dos bot\u00F5es do snk-taskbar."
|
769
724
|
},
|
770
725
|
"attribute": "presentation-mode",
|
771
726
|
"reflect": true,
|
@@ -787,11 +742,8 @@ export class SnkTaskbar {
|
|
787
742
|
"required": false,
|
788
743
|
"optional": false,
|
789
744
|
"docs": {
|
790
|
-
"tags": [
|
791
|
-
|
792
|
-
"text": "Respons\u00E1vel por flexibilizar e padronizar o uso de mensagens nos blocos de constru\u00E7\u00E3o."
|
793
|
-
}],
|
794
|
-
"text": ""
|
745
|
+
"tags": [],
|
746
|
+
"text": "Respons\u00E1vel por flexibilizar e padronizar o uso de mensagens nos blocos de constru\u00E7\u00E3o."
|
795
747
|
}
|
796
748
|
}
|
797
749
|
};
|
@@ -817,14 +769,8 @@ export class SnkTaskbar {
|
|
817
769
|
"cancelable": true,
|
818
770
|
"composed": true,
|
819
771
|
"docs": {
|
820
|
-
"tags": [
|
821
|
-
|
822
|
-
"text": "Emitido sempre que um bot\u00E3o ou uma a\u00E7\u00E3o da barra de tarefas \u00E9 clicado."
|
823
|
-
}, {
|
824
|
-
"name": "eventProperty",
|
825
|
-
"text": undefined
|
826
|
-
}],
|
827
|
-
"text": ""
|
772
|
+
"tags": [],
|
773
|
+
"text": "Emitido sempre que houver click de bot\u00E3o ou a\u00E7\u00E3o."
|
828
774
|
},
|
829
775
|
"complexType": {
|
830
776
|
"original": "string",
|
@@ -838,14 +784,8 @@ export class SnkTaskbar {
|
|
838
784
|
"cancelable": true,
|
839
785
|
"composed": true,
|
840
786
|
"docs": {
|
841
|
-
"tags": [
|
842
|
-
|
843
|
-
"text": "Emitido quando uma a\u00E7\u00E3o de salvar \u00E9 iniciada pela barra de tarefas, indicando um estado de bloqueio para evitar a\u00E7\u00F5es concorrentes."
|
844
|
-
}, {
|
845
|
-
"name": "eventProperty",
|
846
|
-
"text": undefined
|
847
|
-
}],
|
848
|
-
"text": ""
|
787
|
+
"tags": [],
|
788
|
+
"text": "Emitido sempre que um save \u00E9 iniciado pela taskbar."
|
849
789
|
},
|
850
790
|
"complexType": {
|
851
791
|
"original": "void",
|
@@ -859,14 +799,8 @@ export class SnkTaskbar {
|
|
859
799
|
"cancelable": true,
|
860
800
|
"composed": true,
|
861
801
|
"docs": {
|
862
|
-
"tags": [
|
863
|
-
|
864
|
-
"text": "Emitido quando a a\u00E7\u00E3o de salvar \u00E9 conclu\u00EDda ou cancelada, liberando o estado de bloqueio."
|
865
|
-
}, {
|
866
|
-
"name": "eventProperty",
|
867
|
-
"text": undefined
|
868
|
-
}],
|
869
|
-
"text": ""
|
802
|
+
"tags": [],
|
803
|
+
"text": "Emitido sempre que o ocorre alguma action que libera o save."
|
870
804
|
},
|
871
805
|
"complexType": {
|
872
806
|
"original": "void",
|
@@ -0,0 +1 @@
|
|
1
|
+
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));export const agGridLicense=_0xc7632f(0x18c);
|
@@ -175,6 +175,8 @@ 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
|
+
|
178
180
|
var _a;
|
179
181
|
class Workspace {
|
180
182
|
static openAppActivity(resourceId, pkObject) {
|
@@ -1729,6 +1731,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1729
1731
|
ApplicationContext.setContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
|
1730
1732
|
return this.executeSearch(searchArgument, fieldName, dataUnit, Object.assign(Object.assign({}, ctxOptions), { useSearchPlus: true }));
|
1731
1733
|
});
|
1734
|
+
ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
|
1732
1735
|
this.registerPkChangeListener();
|
1733
1736
|
ErrorTracking.init();
|
1734
1737
|
let legacyConfig = {
|
@@ -346,28 +346,22 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
346
346
|
this.processAfterUpdateConfig();
|
347
347
|
}
|
348
348
|
/**
|
349
|
-
*
|
350
|
-
* @async
|
351
|
-
* @return {Promise<void>} Retorna uma Promise que resolve quando o recarregamento for concluído.
|
349
|
+
* Faz o recarregamento da filterbar buscando o state no servidor.
|
352
350
|
*/
|
353
351
|
async reload() {
|
354
352
|
this.loadConfigFromStorage(true);
|
355
353
|
}
|
356
354
|
/**
|
357
|
-
*
|
358
|
-
* @async
|
359
|
-
* @param {string} id - ID do item de filtro.
|
360
|
-
* @returns {Promise<SnkFilterItemConfig | undefined>} O item de filtro correspondente ou undefined se não for encontrado.
|
355
|
+
* Retorna um item de filtro pelo ID.
|
361
356
|
*/
|
362
357
|
async getFilterItem(id) {
|
363
358
|
const item = this.filterConfig.find(item => item.id === id);
|
364
359
|
return Promise.resolve(ObjectUtils.copy(item));
|
365
360
|
}
|
366
361
|
/**
|
367
|
-
*
|
368
|
-
*
|
369
|
-
* @param
|
370
|
-
* @return {Promise<void>} Retorna uma Promise que resolve quando a atualização for concluída.
|
362
|
+
* Atualiza um item do filtro.
|
363
|
+
*
|
364
|
+
* @param filterItem - Item com as informações atualizadas, caso o item não seja encontrado no array ele mão será modificado
|
371
365
|
*/
|
372
366
|
async updateFilterItem(newFilterItem) {
|
373
367
|
const itemIndex = this.filterConfig.findIndex(item => item.id === newFilterItem.id);
|
@@ -380,10 +374,9 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
380
374
|
return Promise.resolve();
|
381
375
|
}
|
382
376
|
/**
|
383
|
-
*
|
384
|
-
*
|
385
|
-
* @param
|
386
|
-
* @return {Promise<void>} Retorna uma Promise que resolve quando o item for adicionado.
|
377
|
+
* Adiciona um item de filtro.
|
378
|
+
*
|
379
|
+
* @param filterItem - Item a ser adicionado, caso o item já exista com o ID ele não será adicionado novamente
|
387
380
|
*/
|
388
381
|
async addFilterItem(filterItem) {
|
389
382
|
const itemIndex = this.filterConfig.findIndex(item => item.id === filterItem.id);
|
@@ -397,10 +390,11 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
397
390
|
return Promise.resolve();
|
398
391
|
}
|
399
392
|
/**
|
400
|
-
*
|
401
|
-
*
|
402
|
-
* @param
|
403
|
-
*
|
393
|
+
* Remove um item de filtro.
|
394
|
+
*
|
395
|
+
* @param filterID - ID do a ser adicionado
|
396
|
+
*
|
397
|
+
* @returns {Promise<SnkFilterItemConfig|undefined>} - Retorna o item de filtro removido, ou undefined caso não encontrado.
|
404
398
|
*/
|
405
399
|
async removeFilterItem(filterID) {
|
406
400
|
const itemIndex = this.filterConfig.findIndex(item => item.id === filterID);
|
@@ -472,7 +466,7 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
472
466
|
}
|
473
467
|
/**
|
474
468
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
475
|
-
* através de um pequeno
|
469
|
+
* através de um pequeno modulo na estrutura da aplicação:
|
476
470
|
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
477
471
|
* Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-filter-bar.msg.ts"
|
478
472
|
*/
|
@@ -483,9 +477,6 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
483
477
|
}
|
484
478
|
return ((_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, params)) || defaultValue;
|
485
479
|
}
|
486
|
-
async getFilters() {
|
487
|
-
return this.getFilter(null);
|
488
|
-
}
|
489
480
|
getFilter(_dataUnit) {
|
490
481
|
var _a;
|
491
482
|
const filters = [];
|
@@ -654,8 +645,7 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
654
645
|
this.updateFilter(evt.detail);
|
655
646
|
}
|
656
647
|
/**
|
657
|
-
*
|
658
|
-
* @async
|
648
|
+
* Abre o modal de filtros
|
659
649
|
*/
|
660
650
|
async showFilterModal() {
|
661
651
|
const callbackOnApplyFilter = (filters) => {
|
@@ -784,7 +774,6 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
784
774
|
"updateFilterItem": [64],
|
785
775
|
"addFilterItem": [64],
|
786
776
|
"removeFilterItem": [64],
|
787
|
-
"getFilters": [64],
|
788
777
|
"showFilterModal": [64]
|
789
778
|
}, [[0, "filterChange", "filterChangeListener"]]]);
|
790
779
|
function defineCustomElement() {
|
@@ -33,26 +33,18 @@ const SnkForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
33
33
|
}
|
34
34
|
/**
|
35
35
|
* Exibe a janela de configurações do formulário.
|
36
|
-
* @async
|
37
|
-
* @returns {Promise<void>}
|
38
36
|
*/
|
39
37
|
async showConfig() {
|
40
38
|
this._showFormConfig = true;
|
41
39
|
}
|
42
40
|
/**
|
43
41
|
* Fecha a janela de configurações do formulário.
|
44
|
-
* @async
|
45
|
-
* @returns {Promise<void>}
|
46
42
|
*/
|
47
43
|
async hideConfig() {
|
48
44
|
this._showFormConfig = false;
|
49
45
|
}
|
50
46
|
/**
|
51
|
-
* Registra um editor customizado para campos
|
52
|
-
* @async
|
53
|
-
* @param {string} fieldName - Nome do campo.
|
54
|
-
* @param {ICustomEditor} customEditor - Editor customizado.
|
55
|
-
* @returns {Promise<void>}
|
47
|
+
* Registra um editor customizado para campos da grade e formulário.
|
56
48
|
*/
|
57
49
|
async addCustomEditor(fieldName, customEditor) {
|
58
50
|
if (this._form) {
|
@@ -65,28 +57,10 @@ const SnkForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
65
57
|
}
|
66
58
|
/**
|
67
59
|
* Altera/adiciona uma propriedade nos metadados do campo.
|
68
|
-
* @async
|
69
|
-
* @param {string} fieldName - Nome do campo.
|
70
|
-
* @param {string} propName - Nome da propriedade.
|
71
|
-
* @param {any} value - Valor da propriedade.
|
72
|
-
* @returns {Promise<void>}
|
73
60
|
*/
|
74
61
|
async setFieldProp(fieldName, propName, value) {
|
75
62
|
await this._form.setFieldProp(fieldName, propName, value);
|
76
63
|
}
|
77
|
-
/**
|
78
|
-
* Valida o formulário.
|
79
|
-
* @async
|
80
|
-
* @returns {Promise<void>}
|
81
|
-
* @description
|
82
|
-
* Este método executa a validação do formulário, verificando se todos os campos estão
|
83
|
-
* preenchidos corretamente de acordo com as regras definidas.
|
84
|
-
* Se a validação falhar, uma exceção será lançada com os detalhes dos erros encontrados.
|
85
|
-
* Caso contrário, o método será resolvido sem erros.
|
86
|
-
*/
|
87
|
-
async validate() {
|
88
|
-
await this._form.validate();
|
89
|
-
}
|
90
64
|
closeConfig() {
|
91
65
|
this.hideConfig();
|
92
66
|
}
|
@@ -176,8 +150,7 @@ const SnkForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
176
150
|
"showConfig": [64],
|
177
151
|
"hideConfig": [64],
|
178
152
|
"addCustomEditor": [64],
|
179
|
-
"setFieldProp": [64]
|
180
|
-
"validate": [64]
|
153
|
+
"setFieldProp": [64]
|
181
154
|
}]);
|
182
155
|
function defineCustomElement$1() {
|
183
156
|
if (typeof customElements === "undefined") {
|
@@ -166,7 +166,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
166
166
|
this.multipleEditionEnabled = true;
|
167
167
|
this.paginationCounterMode = 'auto';
|
168
168
|
this.suppressCheckboxColumn = undefined;
|
169
|
-
this.suppressFilterColumn = false;
|
170
169
|
this.compact = undefined;
|
171
170
|
}
|
172
171
|
getGridHeaderSelectedBtns() {
|
@@ -179,9 +178,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
179
178
|
btns.unshift(TaskbarElement.UPDATE_MULTIPLE);
|
180
179
|
return btns;
|
181
180
|
}
|
182
|
-
async refreshColumnFilterDataSource() {
|
183
|
-
await this._grid.refreshColumnFilterDataSource();
|
184
|
-
}
|
185
181
|
/**
|
186
182
|
* Recarrega a configuração da grade.
|
187
183
|
* @description Este método força o recarregamento da configuração da grade a partir do `ConfigStorage`. A operação é assíncrona, mas o método não aguarda sua conclusão.
|
@@ -671,7 +667,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
671
667
|
"multipleEditionEnabled": [4, "multiple-edition-enabled"],
|
672
668
|
"paginationCounterMode": [1, "pagination-counter-mode"],
|
673
669
|
"suppressCheckboxColumn": [4, "suppress-checkbox-column"],
|
674
|
-
"suppressFilterColumn": [1028, "suppress-filter-column"],
|
675
670
|
"compact": [4],
|
676
671
|
"_dataUnit": [32],
|
677
672
|
"_dataState": [32],
|
@@ -679,7 +674,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
679
674
|
"_popUpGridConfig": [32],
|
680
675
|
"_showSnkFilterBar": [32],
|
681
676
|
"_enableContinuousInsert": [32],
|
682
|
-
"refreshColumnFilterDataSource": [64],
|
683
677
|
"reloadConfig": [64],
|
684
678
|
"showConfig": [64],
|
685
679
|
"hideConfig": [64],
|
@@ -45,10 +45,8 @@ const SnkPersonalizedFilter = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
45
45
|
this.resourceID = undefined;
|
46
46
|
this.isDefaultFilter = false;
|
47
47
|
}
|
48
|
-
|
49
|
-
* Cria um novo filtro
|
50
|
-
* @method
|
51
|
-
* @returns {Promise<void>}
|
48
|
+
/*
|
49
|
+
* Cria um novo filtro se não houver nenhum filtro existente
|
52
50
|
*/
|
53
51
|
async createPersonalizedFilter() {
|
54
52
|
const newPersonalizedFilter = {
|
@@ -84,12 +82,6 @@ const SnkPersonalizedFilter = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
84
82
|
this._originalFilterAssistent = ObjectUtils.copy(newPersonalizedFilter);
|
85
83
|
this._filterAssistent = ObjectUtils.copy(newPersonalizedFilter);
|
86
84
|
}
|
87
|
-
/**
|
88
|
-
* Carrega o filtro personalizado com base no identificador informado.
|
89
|
-
* @watch filterId
|
90
|
-
* @param newValue Novo valor do filtroId.
|
91
|
-
* @param oldValue Valor anterior do filtroId.
|
92
|
-
*/
|
93
85
|
loadFilter(newValue, oldValue) {
|
94
86
|
if (newValue == null || oldValue == newValue || this.resourceID == undefined) {
|
95
87
|
return;
|
@@ -14,11 +14,11 @@ const SnkSimpleBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
14
14
|
this.messagesBuilder = undefined;
|
15
15
|
}
|
16
16
|
/**
|
17
|
-
*
|
18
|
-
* através de um pequeno
|
19
|
-
* -
|
20
|
-
* Para conhecer os detalhes do módulo,
|
21
|
-
|
17
|
+
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
18
|
+
* através de um pequeno modulo na estrutura da aplicação:
|
19
|
+
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
20
|
+
* Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-simple-bar.msg.ts"
|
21
|
+
*/
|
22
22
|
getMessage(key, params) {
|
23
23
|
var _a;
|
24
24
|
if (this.messagesBuilder)
|
@@ -86,10 +86,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
86
86
|
this.outlineMode = false;
|
87
87
|
}
|
88
88
|
/**
|
89
|
-
*
|
90
|
-
* @param {string} fieldName - O nome do campo.
|
91
|
-
* @param {ICustomEditor} customEditor - A instância do editor customizado.
|
92
|
-
* @returns {Promise<void>}
|
89
|
+
* Registra um editor customizado para campos da grade e formulário.
|
93
90
|
*/
|
94
91
|
async addCustomEditor(fieldName, customEditor) {
|
95
92
|
if (this._grid && this._form) {
|
@@ -102,10 +99,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
102
99
|
this._customEditors = newCustomEditors;
|
103
100
|
}
|
104
101
|
/**
|
105
|
-
*
|
106
|
-
* @param {string} fieldName - O nome do campo.
|
107
|
-
* @param {ICustomRender} customRender - A instância do renderizador customizado.
|
108
|
-
* @returns {Promise<void>}
|
102
|
+
* Registra um render customizado para colunas da grid.
|
109
103
|
*/
|
110
104
|
async addGridCustomRender(fieldName, customRender) {
|
111
105
|
if (this._grid) {
|
@@ -127,28 +121,19 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
127
121
|
await this.loadGridConfig(true);
|
128
122
|
}
|
129
123
|
/**
|
130
|
-
*
|
131
|
-
* @param {string} columnName - O nome da coluna.
|
132
|
-
* @param {ICustomFormatter} customFormatter - A instância do formatador customizado.
|
133
|
-
* @returns {Promise<void>}
|
124
|
+
* Registra um formatador de valores para uma coluna da grid.
|
134
125
|
*/
|
135
126
|
async addCustomValueFormatter(columnName, customFormatter) {
|
136
127
|
this._grid.addCustomValueFormatter(columnName, customFormatter);
|
137
128
|
}
|
138
129
|
/**
|
139
|
-
*
|
140
|
-
* @param {string} columnName - O nome da coluna.
|
141
|
-
* @returns {Promise<void>}
|
130
|
+
* Remove o formatador de valores de uma coluna da grid.
|
142
131
|
*/
|
143
132
|
async removeCustomValueFormatter(columnName) {
|
144
133
|
this._grid.removeCustomValueFormatter(columnName);
|
145
134
|
}
|
146
135
|
/**
|
147
|
-
*
|
148
|
-
* @param {string} fieldName - O nome do campo.
|
149
|
-
* @param {string} propName - O nome da propriedade.
|
150
|
-
* @param {any} value - O valor da propriedade.
|
151
|
-
* @returns {Promise<void>}
|
136
|
+
* Altera/adiciona uma propriedade nos metadados do campo.
|
152
137
|
*/
|
153
138
|
async setFieldProp(fieldName, propName, value) {
|
154
139
|
const newCustomFieldProps = new Map(this._fieldsProps);
|
@@ -205,9 +190,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
205
190
|
return newTaskBarConfig;
|
206
191
|
}
|
207
192
|
/**
|
208
|
-
*
|
209
|
-
* @param {VIEW_MODE} view - A visão para a qual navegar.
|
210
|
-
* @returns {Promise<void>}
|
193
|
+
* Usado para alternar a visão entre GRID e FORM externamente.
|
211
194
|
*/
|
212
195
|
async goToView(view) {
|
213
196
|
this._currentViewMode = view;
|
@@ -481,11 +464,6 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
481
464
|
this.dataUnit = this._inMemoryLoader.dataUnit;
|
482
465
|
this.dataUnitReady.emit(this.dataUnit);
|
483
466
|
}
|
484
|
-
/**
|
485
|
-
* @description Define os metadados do DataUnit.
|
486
|
-
* @param {UnitMetadata} metadata - Os metadados a serem definidos.
|
487
|
-
* @returns {Promise<void>}
|
488
|
-
*/
|
489
467
|
setMetadata(metadata) {
|
490
468
|
if (this._inMemoryLoader) {
|
491
469
|
this._inMemoryLoader.metadata = metadata;
|
@@ -495,11 +473,6 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
495
473
|
}
|
496
474
|
return Promise.resolve();
|
497
475
|
}
|
498
|
-
/**
|
499
|
-
* @description Define os registros do DataUnit.
|
500
|
-
* @param {Array<Record>} records - Os registros a serem definidos.
|
501
|
-
* @returns {Promise<void>}
|
502
|
-
*/
|
503
476
|
setRecords(records) {
|
504
477
|
if (this._inMemoryLoader) {
|
505
478
|
this._inMemoryLoader.records = records;
|
@@ -509,33 +482,23 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
509
482
|
}
|
510
483
|
return Promise.resolve();
|
511
484
|
}
|
512
|
-
/**
|
513
|
-
* @description Obtém os registros do DataUnit.
|
514
|
-
* @returns {Promise<Array<Record>>} Uma promessa que resolve com a lista de registros.
|
515
|
-
*/
|
516
485
|
getRecords() {
|
517
486
|
return Promise.resolve(this.dataUnit.records);
|
518
487
|
}
|
519
488
|
/**
|
520
|
-
*
|
521
|
-
* @returns {Promise<void>}
|
489
|
+
* Usado para abrir o configurator do CRUD
|
522
490
|
*/
|
523
491
|
async openConfigurator() {
|
524
492
|
var _a;
|
525
493
|
(_a = this._snkConfigurator) === null || _a === void 0 ? void 0 : _a.open();
|
526
494
|
}
|
527
495
|
/**
|
528
|
-
*
|
529
|
-
* @returns {Promise<void>}
|
496
|
+
* Usado para fechar o configurator do CRUD
|
530
497
|
*/
|
531
498
|
async closeConfigurator() {
|
532
499
|
var _a;
|
533
500
|
(_a = this._snkConfigurator) === null || _a === void 0 ? void 0 : _a.close();
|
534
501
|
}
|
535
|
-
/**
|
536
|
-
* @description Atualiza a configuração do formulário.
|
537
|
-
* @returns {Promise<void>}
|
538
|
-
*/
|
539
502
|
async updateConfig() {
|
540
503
|
if (this._formConfigManager == undefined) {
|
541
504
|
this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID());
|