@sankhyalabs/sankhyablocks 1.3.31-beta.17 → 1.3.31-beta.18

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.
Files changed (98) hide show
  1. package/dist/cjs/{SnkMessageBuilder-cb132e6d.js → SnkMessageBuilder-02c2ca02.js} +7 -3
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  4. package/dist/cjs/snk-application.cjs.entry.js +376 -256
  5. package/dist/cjs/snk-crud.cjs.entry.js +2 -1
  6. package/dist/cjs/snk-data-unit.cjs.entry.js +1 -1
  7. package/dist/cjs/snk-filter-bar.cjs.entry.js +61 -13
  8. package/dist/cjs/snk-filter-detail.cjs.entry.js +6 -1
  9. package/dist/cjs/snk-filter-item.cjs.entry.js +12 -0
  10. package/dist/cjs/snk-filter-list.cjs.entry.js +2 -2
  11. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +23 -0
  12. package/dist/cjs/snk-filter-number.cjs.entry.js +2 -1
  13. package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
  14. package/dist/cjs/snk-form.cjs.entry.js +19 -1
  15. package/dist/cjs/snk-grid.cjs.entry.js +15 -5
  16. package/dist/cjs/snk-taskbar.cjs.entry.js +14 -11
  17. package/dist/cjs/{taskbar-elements-efa44ff1.js → taskbar-elements-283c737e.js} +36 -17
  18. package/dist/cjs/taskbar-processor-6bd0d35c.js +47 -0
  19. package/dist/collection/collection-manifest.json +1 -0
  20. package/dist/collection/components/snk-crud/snk-crud.js +41 -3
  21. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +64 -0
  22. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +2 -1
  23. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +1 -1
  24. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +6 -1
  25. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +35 -0
  26. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +53 -2
  27. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +15 -0
  28. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +60 -12
  29. package/dist/collection/components/snk-form/snk-form.js +41 -1
  30. package/dist/collection/components/snk-grid/snk-grid.js +35 -3
  31. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +35 -17
  32. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +43 -0
  33. package/dist/collection/components/snk-taskbar/snk-taskbar.js +36 -11
  34. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +375 -255
  35. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +7 -3
  36. package/dist/components/SnkMessageBuilder.js +7 -3
  37. package/dist/components/index.d.ts +1 -0
  38. package/dist/components/index.js +1 -0
  39. package/dist/components/snk-application2.js +375 -255
  40. package/dist/components/snk-crud.js +4 -2
  41. package/dist/components/snk-filter-bar2.js +61 -13
  42. package/dist/components/snk-filter-detail2.js +6 -1
  43. package/dist/components/snk-filter-item2.js +14 -1
  44. package/dist/components/snk-filter-list2.js +5 -2
  45. package/dist/components/snk-filter-multi-select.d.ts +11 -0
  46. package/dist/components/snk-filter-multi-select.js +39 -0
  47. package/dist/components/snk-filter-number.js +2 -1
  48. package/dist/components/snk-filter-search.js +1 -1
  49. package/dist/components/snk-form2.js +20 -1
  50. package/dist/components/snk-grid2.js +15 -4
  51. package/dist/components/snk-taskbar2.js +49 -27
  52. package/dist/components/taskbar-processor.js +45 -0
  53. package/dist/{sankhyablocks/SnkMessageBuilder-cff80920.js → esm/SnkMessageBuilder-65d431bd.js} +7 -3
  54. package/dist/esm/loader.js +1 -1
  55. package/dist/esm/sankhyablocks.js +1 -1
  56. package/dist/esm/snk-application.entry.js +376 -256
  57. package/dist/esm/snk-crud.entry.js +3 -2
  58. package/dist/esm/snk-data-unit.entry.js +1 -1
  59. package/dist/esm/snk-filter-bar.entry.js +61 -13
  60. package/dist/esm/snk-filter-detail.entry.js +6 -1
  61. package/dist/esm/snk-filter-item.entry.js +12 -0
  62. package/dist/esm/snk-filter-list.entry.js +2 -2
  63. package/dist/esm/snk-filter-multi-select.entry.js +19 -0
  64. package/dist/esm/snk-filter-number.entry.js +2 -1
  65. package/dist/esm/snk-filter-search.entry.js +1 -1
  66. package/dist/esm/snk-form.entry.js +19 -1
  67. package/dist/esm/snk-grid.entry.js +15 -5
  68. package/dist/esm/snk-taskbar.entry.js +14 -11
  69. package/dist/esm/taskbar-elements-35d64ff9.js +90 -0
  70. package/dist/esm/taskbar-processor-aa6772c9.js +45 -0
  71. package/dist/{esm/SnkMessageBuilder-cff80920.js → sankhyablocks/SnkMessageBuilder-65d431bd.js} +7 -3
  72. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  73. package/dist/sankhyablocks/snk-application.entry.js +376 -256
  74. package/dist/sankhyablocks/snk-crud.entry.js +3 -2
  75. package/dist/sankhyablocks/snk-data-unit.entry.js +1 -1
  76. package/dist/sankhyablocks/snk-filter-bar.entry.js +61 -13
  77. package/dist/sankhyablocks/snk-filter-detail.entry.js +6 -1
  78. package/dist/sankhyablocks/snk-filter-item.entry.js +12 -0
  79. package/dist/sankhyablocks/snk-filter-list.entry.js +2 -2
  80. package/dist/sankhyablocks/snk-filter-multi-select.entry.js +19 -0
  81. package/dist/sankhyablocks/snk-filter-number.entry.js +2 -1
  82. package/dist/sankhyablocks/snk-filter-search.entry.js +1 -1
  83. package/dist/sankhyablocks/snk-form.entry.js +19 -1
  84. package/dist/sankhyablocks/snk-grid.entry.js +15 -5
  85. package/dist/sankhyablocks/snk-taskbar.entry.js +14 -11
  86. package/dist/sankhyablocks/taskbar-elements-35d64ff9.js +90 -0
  87. package/dist/sankhyablocks/taskbar-processor-aa6772c9.js +45 -0
  88. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +7 -0
  89. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +1 -0
  90. package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +3 -0
  91. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +5 -3
  92. package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +3 -2
  93. package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +12 -0
  94. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +17 -1
  95. package/dist/types/components.d.ts +78 -2
  96. package/package.json +1 -1
  97. package/dist/esm/taskbar-elements-c119510a.js +0 -72
  98. package/dist/sankhyablocks/taskbar-elements-c119510a.js +0 -72
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index$2 = require('./index-b0b676c5.js');
6
6
  const index$1 = require('./index-02201bc9.js');
7
- const SnkMessageBuilder = require('./SnkMessageBuilder-cb132e6d.js');
7
+ const SnkMessageBuilder = require('./SnkMessageBuilder-02c2ca02.js');
8
8
  const filterItemType_enum = require('./filter-item-type.enum-e2e1bc5b.js');
9
9
 
10
10
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -7523,261 +7523,10 @@ class FilterBarConfigFetcher extends ResourceFetcher {
7523
7523
  getConfig(resourceID) {
7524
7524
  return new Promise((resolve) => {
7525
7525
  if (resourceID === "br.com.sankhya.fin.cad.movimentacaoFinanceira") {
7526
- resolve([{
7527
- id: "RECDESP",
7528
- visible: true,
7529
- label: "Receitas + Despesas",
7530
- detailTitle: "Selecione o que deseja ver",
7531
- type: filterItemType_enum.FilterItemType.BINARY_SELECT,
7532
- hardFixed: true,
7533
- props: {
7534
- options: [
7535
- { name: "RECEITA", expression: "this.RECDESP = 1", label: "Receitas" },
7536
- { name: "DESPESA", expression: "this.RECDESP = -1", label: "Despesas" }
7537
- ]
7538
- }
7539
- },
7540
- {
7541
- id: "PROVISAO",
7542
- visible: true,
7543
- label: "Real + Provisão",
7544
- detailTitle: "Selecione o que deseja ver",
7545
- type: filterItemType_enum.FilterItemType.BINARY_SELECT,
7546
- hardFixed: true,
7547
- props: {
7548
- options: [
7549
- { name: "REAL", expression: "nullvalue(this.PROVISAO, 'N') = 'N'", label: "Real" },
7550
- { name: "PROVISAO", expression: "nullvalue(this.PROVISAO, 'N') = 'S'", label: "Provisão" }
7551
- ]
7552
- }
7553
- },
7554
- {
7555
- id: "BAIXADO",
7556
- visible: true,
7557
- label: "Pendentes + Baixados",
7558
- detailTitle: "Selecione o que deseja ver",
7559
- type: filterItemType_enum.FilterItemType.BINARY_SELECT,
7560
- hardFixed: true,
7561
- props: {
7562
- options: [
7563
- { name: "PENDENTE", expression: "this.DHBAIXA IS NULL", label: "Pendentes" },
7564
- { name: "BAIXADO", expression: "this.DHBAIXA IS NOT NULL", label: "Baixados" }
7565
- ]
7566
- }
7567
- },
7568
- {
7569
- id: "DTVENC",
7570
- visible: true,
7571
- type: filterItemType_enum.FilterItemType.PERIOD,
7572
- label: "Dt. Vencimento",
7573
- detailTitle: "Informe a data ou período",
7574
- props: {
7575
- expression: {
7576
- fullfill: "onlydate(this.DTVENC) >= :DTVENC.START AND onlydate(this.DTVENC) <= :DTVENC.END",
7577
- onlystart: "onlydate(this.DTVENC) >= :DTVENC",
7578
- onlyend: "onlydate(this.DTVENC) <= :DTVENC"
7579
- }
7580
- }
7581
- },
7582
- {
7583
- id: "CODPARC",
7584
- visible: true,
7585
- type: filterItemType_enum.FilterItemType.SEARCH,
7586
- label: "Parceiro",
7587
- detailTitle: "Informe o parceiro",
7588
- props: {
7589
- expression: "this.CODPARC = :CODPARC",
7590
- searchContext: {
7591
- entity: "Parceiro",
7592
- entityDescription: "Parceiro",
7593
- searchOptions: {
7594
- rootEntity: "Financeiro",
7595
- descriptionFieldName: "NOMEPARC",
7596
- codeFieldName: "CODPARC",
7597
- showInactives: false
7598
- }
7599
- }
7600
- }
7601
- },
7602
- {
7603
- id: "NUFIN",
7604
- type: filterItemType_enum.FilterItemType.NUMBER,
7605
- visible: true,
7606
- label: "Nr. único",
7607
- detailTitle: "Informe o número único",
7608
- props: {
7609
- expression: "this.NUFIN = :NUFIN"
7610
- }
7611
- },
7612
- {
7613
- id: "NUMNOTA",
7614
- visible: true,
7615
- type: filterItemType_enum.FilterItemType.NUMBER,
7616
- label: "Nr. Nota",
7617
- detailTitle: "Informe o número da nota",
7618
- props: {
7619
- expression: "this.NUMNOTA = :NUMNOTA"
7620
- }
7621
- },
7622
- {
7623
- id: "DHBAIXA",
7624
- visible: true,
7625
- type: filterItemType_enum.FilterItemType.PERIOD,
7626
- label: "Data da Baixa",
7627
- detailTitle: "Informe a data ou período",
7628
- props: {
7629
- expression: {
7630
- fullfill: "onlydate(this.DHBAIXA) >= :DHBAIXA.START AND onlydate(this.DHBAIXA) <= :DHBAIXA.END",
7631
- onlystart: "onlydate(this.DHBAIXA) >= :DHBAIXA",
7632
- onlyend: "onlydate(this.DHBAIXA) <= :DHBAIXA"
7633
- }
7634
- }
7635
- },
7636
- {
7637
- id: "CODEMP",
7638
- visible: false,
7639
- type: filterItemType_enum.FilterItemType.SEARCH,
7640
- label: "Empresa",
7641
- detailTitle: "Informe a empresa",
7642
- props: {
7643
- expression: "this.CODEMP = :CODEMP",
7644
- searchContext: {
7645
- entity: "Empresa",
7646
- entityDescription: "Empresa",
7647
- searchOptions: {
7648
- rootEntity: "Financeiro",
7649
- descriptionFieldName: "NOMEFANTASIA",
7650
- codeFieldName: "CODEMP",
7651
- showInactives: false
7652
- }
7653
- }
7654
- }
7655
- },
7656
- {
7657
- id: "CODNAT",
7658
- visible: false,
7659
- type: filterItemType_enum.FilterItemType.SEARCH,
7660
- label: "Natureza",
7661
- detailTitle: "Informe a natureza",
7662
- props: {
7663
- expression: "this.CODNAT = :CODNAT",
7664
- searchContext: {
7665
- entity: "Natureza",
7666
- entityDescription: "Natureza",
7667
- searchOptions: {
7668
- rootEntity: "Financeiro",
7669
- descriptionFieldName: "DESCRNAT",
7670
- codeFieldName: "CODNAT",
7671
- showInactives: false
7672
- }
7673
- }
7674
- }
7675
- },
7676
- {
7677
- id: "DTNEG",
7678
- visible: false,
7679
- type: filterItemType_enum.FilterItemType.PERIOD,
7680
- label: "Dt. Negociação",
7681
- detailTitle: "Informe a data ou período",
7682
- props: {
7683
- expression: {
7684
- fullfill: "onlydate(this.DTNEG) >= :DTNEG.START AND onlydate(this.DTNEG) <= :DTNEG.END",
7685
- onlystart: "onlydate(this.DTNEG) >= :DTNEG",
7686
- onlyend: "onlydate(this.DTNEG) <= :DTNEG"
7687
- }
7688
- }
7689
- },
7690
- {
7691
- id: "NUNOTA",
7692
- visible: false,
7693
- type: filterItemType_enum.FilterItemType.NUMBER,
7694
- label: "Nro Único do Pedido",
7695
- detailTitle: "Informe o número único do pedido",
7696
- props: {
7697
- expression: "this.NUNOTA = :NUNOTA"
7698
- }
7699
- },
7700
- {
7701
- id: "CODCENCUS",
7702
- visible: false,
7703
- type: filterItemType_enum.FilterItemType.SEARCH,
7704
- label: "Centro de resultado",
7705
- detailTitle: "Informe o centro de resultado",
7706
- props: {
7707
- expression: "this.CODCENCUS = :CODCENCUS",
7708
- searchContext: {
7709
- entity: "CentroResultado",
7710
- entityDescription: "Centro de resultado",
7711
- searchOptions: {
7712
- rootEntity: "Financeiro",
7713
- descriptionFieldName: "DESCRCENCUS",
7714
- codeFieldName: "CODCENCUS",
7715
- showInactives: false
7716
- }
7717
- }
7718
- }
7719
- },
7720
- {
7721
- id: "CODCTABCOINT",
7722
- visible: false,
7723
- type: filterItemType_enum.FilterItemType.SEARCH,
7724
- label: "Conta bancária",
7725
- detailTitle: "Informe a conta bancária",
7726
- props: {
7727
- expression: "this.CODCTABCOINT = :CODCTABCOINT",
7728
- searchContext: {
7729
- entity: "ContaBancaria",
7730
- entityDescription: "Conta bancária",
7731
- searchOptions: {
7732
- rootEntity: "Financeiro",
7733
- descriptionFieldName: "DESCRICAO",
7734
- codeFieldName: "CODCTABCOINT",
7735
- showInactives: false
7736
- }
7737
- }
7738
- }
7739
- },
7740
- {
7741
- id: "CODBCO",
7742
- visible: false,
7743
- type: filterItemType_enum.FilterItemType.SEARCH,
7744
- label: "Banco",
7745
- detailTitle: "Informe o banco",
7746
- props: {
7747
- expression: "this.CODBCO = :CODBCO",
7748
- searchContext: {
7749
- entity: "Banco",
7750
- entityDescription: "Banco",
7751
- searchOptions: {
7752
- rootEntity: "Financeiro",
7753
- descriptionFieldName: "NOMEBCO",
7754
- codeFieldName: "CODBCO",
7755
- showInactives: false
7756
- }
7757
- }
7758
- }
7759
- },
7760
- {
7761
- id: "CODPROJ",
7762
- visible: false,
7763
- type: filterItemType_enum.FilterItemType.SEARCH,
7764
- label: "Projeto",
7765
- detailTitle: "Informe o projeto",
7766
- props: {
7767
- expression: "this.CODPROJ = :CODPROJ",
7768
- searchContext: {
7769
- entity: "Projeto",
7770
- entityDescription: "Projeto",
7771
- searchOptions: {
7772
- rootEntity: "Financeiro",
7773
- descriptionFieldName: "IDENTIFICACAO",
7774
- codeFieldName: "CODPROJ",
7775
- showInactives: false
7776
- }
7777
- }
7778
- }
7779
- }
7780
- ]);
7526
+ resolve(getFiltrosMovFin());
7527
+ }
7528
+ else if (resourceID === "br.com.sankhya.fin.cad.movimentacaoBancaria") {
7529
+ resolve(getFiltrosMovBan());
7781
7530
  }
7782
7531
  else {
7783
7532
  resolve(undefined);
@@ -7785,6 +7534,377 @@ class FilterBarConfigFetcher extends ResourceFetcher {
7785
7534
  });
7786
7535
  }
7787
7536
  }
7537
+ function getFiltrosMovBan() {
7538
+ return [{
7539
+ "id": "DTLANC",
7540
+ "visible": true,
7541
+ "type": filterItemType_enum.FilterItemType.PERIOD,
7542
+ "label": "Dt Lançamento",
7543
+ "detailTitle": "Informe a data ou período",
7544
+ "props": {
7545
+ "expression": {
7546
+ "fullfill": "onlydate(this.DTLANC) >= :DTLANC.START AND onlydate(this.DTLANC) <= :DTLANC.END",
7547
+ "onlystart": "onlydate(this.DTLANC) >= :DTLANC",
7548
+ "onlyend": "onlydate(this.DTLANC) <= :DTLANC"
7549
+ }
7550
+ }
7551
+ },
7552
+ {
7553
+ "id": "CODCTABCOINT",
7554
+ "visible": true,
7555
+ "type": filterItemType_enum.FilterItemType.SEARCH,
7556
+ "label": "Conta origem",
7557
+ "detailTitle": "Informe a conta de origem",
7558
+ "props": {
7559
+ "expression": "this.CODCTABCOINT = :CODCTABCOINT",
7560
+ "searchContext": {
7561
+ "entity": "ImplantacaoSaldoConta",
7562
+ "entityDescription": "Conta origem",
7563
+ "searchOptions": {
7564
+ "rootEntity": "MovimentoBancario",
7565
+ "descriptionFieldName": "DESCRICAO",
7566
+ "codeFieldName": "CODCTABCOINT",
7567
+ "showInactives": false
7568
+ }
7569
+ }
7570
+ }
7571
+ },
7572
+ {
7573
+ "id": "CODTIPOPER",
7574
+ "visible": false,
7575
+ "type": filterItemType_enum.FilterItemType.SEARCH,
7576
+ "label": "Tipo de operação",
7577
+ "detailTitle": "Informe o tipo de operação",
7578
+ "props": {
7579
+ "expression": "this.CODTIPOPER = :CODTIPOPER",
7580
+ "searchContext": {
7581
+ "entity": "TipoOperacao",
7582
+ "entityDescription": "Tipo de operação",
7583
+ "searchOptions": {
7584
+ "rootEntity": "MovimentoBancario",
7585
+ "descriptionFieldName": "DESCROPER",
7586
+ "codeFieldName": "CODTIPOPER",
7587
+ "showInactives": false
7588
+ }
7589
+ }
7590
+ }
7591
+ },
7592
+ {
7593
+ "id": "ORIGMOV",
7594
+ "visible": false,
7595
+ "type": filterItemType_enum.FilterItemType.MULTI_SELECT,
7596
+ "label": "Tipo de movimento",
7597
+ "detailTitle": "Escolha um tipo de movimento",
7598
+ "props": {
7599
+ "expression": "this.ORIGMOV = :ORIGMOV",
7600
+ "options": [
7601
+ { "value": "A", "label": "Aplicação" },
7602
+ { "value": "R", "label": "Resgate" },
7603
+ { "value": "S", "label": "Saque" },
7604
+ { "value": "D", "label": "Depósito" },
7605
+ { "value": "T", "label": "Transferência" }
7606
+ ]
7607
+ }
7608
+ },
7609
+ {
7610
+ "id": "NUBCO",
7611
+ "type": filterItemType_enum.FilterItemType.NUMBER,
7612
+ "visible": false,
7613
+ "label": "Nr. único",
7614
+ "detailTitle": "Informe o número único",
7615
+ "props": {
7616
+ "expression": "this.NUBCO = :NUBCO"
7617
+ }
7618
+ },
7619
+ {
7620
+ "id": "VLRLANC",
7621
+ "type": filterItemType_enum.FilterItemType.NUMBER,
7622
+ "visible": false,
7623
+ "label": "Vlr. Lançamento",
7624
+ "detailTitle": "Informe o valor do lançamento",
7625
+ "props": {
7626
+ "expression": "this.VLRLANC = :VLRLANC",
7627
+ "precision": 2
7628
+ }
7629
+ },
7630
+ {
7631
+ "id": "CODLANC",
7632
+ "visible": false,
7633
+ "type": filterItemType_enum.FilterItemType.SEARCH,
7634
+ "label": "Lançamento origem",
7635
+ "detailTitle": "Informe o lançamento de origem",
7636
+ "props": {
7637
+ "expression": "this.CODLANC = :CODLANC",
7638
+ "searchContext": {
7639
+ "entity": "HistoricoBancario",
7640
+ "entityDescription": "Lançamento origem",
7641
+ "searchOptions": {
7642
+ "rootEntity": "MovimentoBancario",
7643
+ "descriptionFieldName": "DESCRLANCBCO",
7644
+ "codeFieldName": "CODLANC",
7645
+ "showInactives": false
7646
+ }
7647
+ }
7648
+ }
7649
+ }];
7650
+ }
7651
+ function getFiltrosMovFin() {
7652
+ return [{
7653
+ id: "RECDESP",
7654
+ visible: true,
7655
+ label: "Receitas + Despesas",
7656
+ detailTitle: "Selecione o que deseja ver",
7657
+ type: filterItemType_enum.FilterItemType.BINARY_SELECT,
7658
+ hardFixed: true,
7659
+ props: {
7660
+ options: [
7661
+ { name: "RECEITA", expression: "this.RECDESP = 1", label: "Receitas" },
7662
+ { name: "DESPESA", expression: "this.RECDESP = -1", label: "Despesas" }
7663
+ ]
7664
+ }
7665
+ },
7666
+ {
7667
+ id: "PROVISAO",
7668
+ visible: true,
7669
+ label: "Real + Provisão",
7670
+ detailTitle: "Selecione o que deseja ver",
7671
+ type: filterItemType_enum.FilterItemType.BINARY_SELECT,
7672
+ hardFixed: true,
7673
+ props: {
7674
+ options: [
7675
+ { name: "REAL", expression: "nullvalue(this.PROVISAO, 'N') = 'N'", label: "Real" },
7676
+ { name: "PROVISAO", expression: "nullvalue(this.PROVISAO, 'N') = 'S'", label: "Provisão" }
7677
+ ]
7678
+ }
7679
+ },
7680
+ {
7681
+ id: "BAIXADO",
7682
+ visible: true,
7683
+ label: "Pendentes + Baixados",
7684
+ detailTitle: "Selecione o que deseja ver",
7685
+ type: filterItemType_enum.FilterItemType.BINARY_SELECT,
7686
+ hardFixed: true,
7687
+ props: {
7688
+ options: [
7689
+ { name: "PENDENTE", expression: "this.DHBAIXA IS NULL", label: "Pendentes" },
7690
+ { name: "BAIXADO", expression: "this.DHBAIXA IS NOT NULL", label: "Baixados" }
7691
+ ]
7692
+ }
7693
+ },
7694
+ {
7695
+ id: "DTVENC",
7696
+ visible: true,
7697
+ type: filterItemType_enum.FilterItemType.PERIOD,
7698
+ label: "Dt. Vencimento",
7699
+ detailTitle: "Informe a data ou período",
7700
+ props: {
7701
+ expression: {
7702
+ fullfill: "onlydate(this.DTVENC) >= :DTVENC.START AND onlydate(this.DTVENC) <= :DTVENC.END",
7703
+ onlystart: "onlydate(this.DTVENC) >= :DTVENC",
7704
+ onlyend: "onlydate(this.DTVENC) <= :DTVENC"
7705
+ }
7706
+ }
7707
+ },
7708
+ {
7709
+ id: "CODPARC",
7710
+ visible: true,
7711
+ type: filterItemType_enum.FilterItemType.SEARCH,
7712
+ label: "Parceiro",
7713
+ detailTitle: "Informe o parceiro",
7714
+ props: {
7715
+ expression: "this.CODPARC = :CODPARC",
7716
+ searchContext: {
7717
+ entity: "Parceiro",
7718
+ entityDescription: "Parceiro",
7719
+ searchOptions: {
7720
+ rootEntity: "Financeiro",
7721
+ descriptionFieldName: "NOMEPARC",
7722
+ codeFieldName: "CODPARC",
7723
+ showInactives: false
7724
+ }
7725
+ }
7726
+ }
7727
+ },
7728
+ {
7729
+ id: "NUFIN",
7730
+ type: filterItemType_enum.FilterItemType.NUMBER,
7731
+ visible: true,
7732
+ label: "Nr. único",
7733
+ detailTitle: "Informe o número único",
7734
+ props: {
7735
+ expression: "this.NUFIN = :NUFIN"
7736
+ }
7737
+ },
7738
+ {
7739
+ id: "NUMNOTA",
7740
+ visible: true,
7741
+ type: filterItemType_enum.FilterItemType.NUMBER,
7742
+ label: "Nr. Nota",
7743
+ detailTitle: "Informe o número da nota",
7744
+ props: {
7745
+ expression: "this.NUMNOTA = :NUMNOTA"
7746
+ }
7747
+ },
7748
+ {
7749
+ id: "DHBAIXA",
7750
+ visible: true,
7751
+ type: filterItemType_enum.FilterItemType.PERIOD,
7752
+ label: "Data da Baixa",
7753
+ detailTitle: "Informe a data ou período",
7754
+ props: {
7755
+ expression: {
7756
+ fullfill: "onlydate(this.DHBAIXA) >= :DHBAIXA.START AND onlydate(this.DHBAIXA) <= :DHBAIXA.END",
7757
+ onlystart: "onlydate(this.DHBAIXA) >= :DHBAIXA",
7758
+ onlyend: "onlydate(this.DHBAIXA) <= :DHBAIXA"
7759
+ }
7760
+ }
7761
+ },
7762
+ {
7763
+ id: "CODEMP",
7764
+ visible: false,
7765
+ type: filterItemType_enum.FilterItemType.SEARCH,
7766
+ label: "Empresa",
7767
+ detailTitle: "Informe a empresa",
7768
+ props: {
7769
+ expression: "this.CODEMP = :CODEMP",
7770
+ searchContext: {
7771
+ entity: "Empresa",
7772
+ entityDescription: "Empresa",
7773
+ searchOptions: {
7774
+ rootEntity: "Financeiro",
7775
+ descriptionFieldName: "NOMEFANTASIA",
7776
+ codeFieldName: "CODEMP",
7777
+ showInactives: false
7778
+ }
7779
+ }
7780
+ }
7781
+ },
7782
+ {
7783
+ id: "CODNAT",
7784
+ visible: false,
7785
+ type: filterItemType_enum.FilterItemType.SEARCH,
7786
+ label: "Natureza",
7787
+ detailTitle: "Informe a natureza",
7788
+ props: {
7789
+ expression: "this.CODNAT = :CODNAT",
7790
+ searchContext: {
7791
+ entity: "Natureza",
7792
+ entityDescription: "Natureza",
7793
+ searchOptions: {
7794
+ rootEntity: "Financeiro",
7795
+ descriptionFieldName: "DESCRNAT",
7796
+ codeFieldName: "CODNAT",
7797
+ showInactives: false
7798
+ }
7799
+ }
7800
+ }
7801
+ },
7802
+ {
7803
+ id: "DTNEG",
7804
+ visible: false,
7805
+ type: filterItemType_enum.FilterItemType.PERIOD,
7806
+ label: "Dt. Negociação",
7807
+ detailTitle: "Informe a data ou período",
7808
+ props: {
7809
+ expression: {
7810
+ fullfill: "onlydate(this.DTNEG) >= :DTNEG.START AND onlydate(this.DTNEG) <= :DTNEG.END",
7811
+ onlystart: "onlydate(this.DTNEG) >= :DTNEG",
7812
+ onlyend: "onlydate(this.DTNEG) <= :DTNEG"
7813
+ }
7814
+ }
7815
+ },
7816
+ {
7817
+ id: "NUNOTA",
7818
+ visible: false,
7819
+ type: filterItemType_enum.FilterItemType.NUMBER,
7820
+ label: "Nro Único do Pedido",
7821
+ detailTitle: "Informe o número único do pedido",
7822
+ props: {
7823
+ expression: "this.NUNOTA = :NUNOTA"
7824
+ }
7825
+ },
7826
+ {
7827
+ id: "CODCENCUS",
7828
+ visible: false,
7829
+ type: filterItemType_enum.FilterItemType.SEARCH,
7830
+ label: "Centro de resultado",
7831
+ detailTitle: "Informe o centro de resultado",
7832
+ props: {
7833
+ expression: "this.CODCENCUS = :CODCENCUS",
7834
+ searchContext: {
7835
+ entity: "CentroResultado",
7836
+ entityDescription: "Centro de resultado",
7837
+ searchOptions: {
7838
+ rootEntity: "Financeiro",
7839
+ descriptionFieldName: "DESCRCENCUS",
7840
+ codeFieldName: "CODCENCUS",
7841
+ showInactives: false
7842
+ }
7843
+ }
7844
+ }
7845
+ },
7846
+ {
7847
+ id: "CODCTABCOINT",
7848
+ visible: false,
7849
+ type: filterItemType_enum.FilterItemType.SEARCH,
7850
+ label: "Conta bancária",
7851
+ detailTitle: "Informe a conta bancária",
7852
+ props: {
7853
+ expression: "this.CODCTABCOINT = :CODCTABCOINT",
7854
+ searchContext: {
7855
+ entity: "ContaBancaria",
7856
+ entityDescription: "Conta bancária",
7857
+ searchOptions: {
7858
+ rootEntity: "Financeiro",
7859
+ descriptionFieldName: "DESCRICAO",
7860
+ codeFieldName: "CODCTABCOINT",
7861
+ showInactives: false
7862
+ }
7863
+ }
7864
+ }
7865
+ },
7866
+ {
7867
+ id: "CODBCO",
7868
+ visible: false,
7869
+ type: filterItemType_enum.FilterItemType.SEARCH,
7870
+ label: "Banco",
7871
+ detailTitle: "Informe o banco",
7872
+ props: {
7873
+ expression: "this.CODBCO = :CODBCO",
7874
+ searchContext: {
7875
+ entity: "Banco",
7876
+ entityDescription: "Banco",
7877
+ searchOptions: {
7878
+ rootEntity: "Financeiro",
7879
+ descriptionFieldName: "NOMEBCO",
7880
+ codeFieldName: "CODBCO",
7881
+ showInactives: false
7882
+ }
7883
+ }
7884
+ }
7885
+ },
7886
+ {
7887
+ id: "CODPROJ",
7888
+ visible: false,
7889
+ type: filterItemType_enum.FilterItemType.SEARCH,
7890
+ label: "Projeto",
7891
+ detailTitle: "Informe o projeto",
7892
+ props: {
7893
+ expression: "this.CODPROJ = :CODPROJ",
7894
+ searchContext: {
7895
+ entity: "Projeto",
7896
+ entityDescription: "Projeto",
7897
+ searchOptions: {
7898
+ rootEntity: "Financeiro",
7899
+ descriptionFieldName: "IDENTIFICACAO",
7900
+ codeFieldName: "CODPROJ",
7901
+ showInactives: false
7902
+ }
7903
+ }
7904
+ }
7905
+ }
7906
+ ];
7907
+ }
7788
7908
 
7789
7909
  const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
7790
7910
 
@@ -11,6 +11,7 @@ const FORM_MODE = 1;
11
11
  const SnkCrud = class {
12
12
  constructor(hostRef) {
13
13
  index.registerInstance(this, hostRef);
14
+ this.actionClick = index.createEvent(this, "actionClick", 7);
14
15
  }
15
16
  async gridToForm(keepFormMode = false) {
16
17
  this._backToGrid = !keepFormMode && await this._viewStack.getSelectedIndex() === GRID_MODE;
@@ -55,7 +56,7 @@ const SnkCrud = class {
55
56
  }
56
57
  }
57
58
  render() {
58
- return (index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref }, index.h("stack-item", null, index.h("snk-grid", { configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), onActionClick: evt => this.executeAction(evt.detail), actionsList: this.actionsList }, index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }))), index.h("stack-item", null, index.h("snk-form", { configName: this.configName, actionsList: this.actionsList, onExit: () => this._viewStack.show(GRID_MODE), recordsValidator: this.recordsValidator, onActionClick: evt => this.executeAction(evt.detail) }))));
59
+ return (index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref }, index.h("stack-item", null, index.h("snk-grid", { configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), actionsList: this.actionsList }, index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-form", { configName: this.configName, actionsList: this.actionsList, onExit: () => this._viewStack.show(GRID_MODE), recordsValidator: this.recordsValidator, taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail) }, index.h("slot", { name: "SnkFormTaskBar" })))));
59
60
  }
60
61
  get _element() { return index.getElement(this); }
61
62
  };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0b676c5.js');
6
6
  const index$1 = require('./index-02201bc9.js');
7
- const SnkMessageBuilder = require('./SnkMessageBuilder-cb132e6d.js');
7
+ const SnkMessageBuilder = require('./SnkMessageBuilder-02c2ca02.js');
8
8
 
9
9
  const snkDataUnitCss = ".sc-snk-data-unit-h{display:flex;flex-direction:column;height:100%}";
10
10