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

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 (107) 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 +405 -265
  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 +80 -14
  8. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  9. package/dist/cjs/snk-filter-detail.cjs.entry.js +7 -2
  10. package/dist/cjs/snk-filter-item.cjs.entry.js +13 -1
  11. package/dist/cjs/snk-filter-list.cjs.entry.js +2 -2
  12. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +23 -0
  13. package/dist/cjs/snk-filter-number.cjs.entry.js +2 -1
  14. package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
  15. package/dist/cjs/snk-form.cjs.entry.js +19 -1
  16. package/dist/cjs/snk-grid.cjs.entry.js +15 -5
  17. package/dist/cjs/snk-taskbar.cjs.entry.js +14 -11
  18. package/dist/cjs/{taskbar-elements-efa44ff1.js → taskbar-elements-283c737e.js} +36 -17
  19. package/dist/cjs/taskbar-processor-6bd0d35c.js +47 -0
  20. package/dist/collection/collection-manifest.json +1 -0
  21. package/dist/collection/components/snk-application/snk-application.js +23 -3
  22. package/dist/collection/components/snk-crud/snk-crud.js +41 -3
  23. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +1 -1
  24. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +64 -0
  25. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +2 -1
  26. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +1 -1
  27. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +7 -2
  28. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +36 -1
  29. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +53 -2
  30. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +15 -0
  31. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +79 -13
  32. package/dist/collection/components/snk-form/snk-form.js +41 -1
  33. package/dist/collection/components/snk-grid/snk-grid.js +35 -3
  34. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +35 -17
  35. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +43 -0
  36. package/dist/collection/components/snk-taskbar/snk-taskbar.js +36 -11
  37. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +6 -6
  38. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +375 -255
  39. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +7 -3
  40. package/dist/components/SnkMessageBuilder.js +7 -3
  41. package/dist/components/index.d.ts +1 -0
  42. package/dist/components/index.js +1 -0
  43. package/dist/components/snk-application2.js +404 -264
  44. package/dist/components/snk-crud.js +4 -2
  45. package/dist/components/snk-filter-bar2.js +80 -14
  46. package/dist/components/snk-filter-binary-select.js +1 -1
  47. package/dist/components/snk-filter-detail2.js +7 -2
  48. package/dist/components/snk-filter-item2.js +15 -2
  49. package/dist/components/snk-filter-list2.js +5 -2
  50. package/dist/components/snk-filter-multi-select.d.ts +11 -0
  51. package/dist/components/snk-filter-multi-select.js +39 -0
  52. package/dist/components/snk-filter-number.js +2 -1
  53. package/dist/components/snk-filter-search.js +1 -1
  54. package/dist/components/snk-form2.js +20 -1
  55. package/dist/components/snk-grid2.js +15 -4
  56. package/dist/components/snk-taskbar2.js +49 -27
  57. package/dist/components/taskbar-processor.js +45 -0
  58. package/dist/{sankhyablocks/SnkMessageBuilder-cff80920.js → esm/SnkMessageBuilder-65d431bd.js} +7 -3
  59. package/dist/esm/loader.js +1 -1
  60. package/dist/esm/sankhyablocks.js +1 -1
  61. package/dist/esm/snk-application.entry.js +405 -265
  62. package/dist/esm/snk-crud.entry.js +3 -2
  63. package/dist/esm/snk-data-unit.entry.js +1 -1
  64. package/dist/esm/snk-filter-bar.entry.js +80 -14
  65. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  66. package/dist/esm/snk-filter-detail.entry.js +7 -2
  67. package/dist/esm/snk-filter-item.entry.js +13 -1
  68. package/dist/esm/snk-filter-list.entry.js +2 -2
  69. package/dist/esm/snk-filter-multi-select.entry.js +19 -0
  70. package/dist/esm/snk-filter-number.entry.js +2 -1
  71. package/dist/esm/snk-filter-search.entry.js +1 -1
  72. package/dist/esm/snk-form.entry.js +19 -1
  73. package/dist/esm/snk-grid.entry.js +15 -5
  74. package/dist/esm/snk-taskbar.entry.js +14 -11
  75. package/dist/esm/taskbar-elements-35d64ff9.js +90 -0
  76. package/dist/esm/taskbar-processor-aa6772c9.js +45 -0
  77. package/dist/{esm/SnkMessageBuilder-cff80920.js → sankhyablocks/SnkMessageBuilder-65d431bd.js} +7 -3
  78. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  79. package/dist/sankhyablocks/snk-application.entry.js +405 -265
  80. package/dist/sankhyablocks/snk-crud.entry.js +3 -2
  81. package/dist/sankhyablocks/snk-data-unit.entry.js +1 -1
  82. package/dist/sankhyablocks/snk-filter-bar.entry.js +80 -14
  83. package/dist/sankhyablocks/snk-filter-binary-select.entry.js +1 -1
  84. package/dist/sankhyablocks/snk-filter-detail.entry.js +7 -2
  85. package/dist/sankhyablocks/snk-filter-item.entry.js +13 -1
  86. package/dist/sankhyablocks/snk-filter-list.entry.js +2 -2
  87. package/dist/sankhyablocks/snk-filter-multi-select.entry.js +19 -0
  88. package/dist/sankhyablocks/snk-filter-number.entry.js +2 -1
  89. package/dist/sankhyablocks/snk-filter-search.entry.js +1 -1
  90. package/dist/sankhyablocks/snk-form.entry.js +19 -1
  91. package/dist/sankhyablocks/snk-grid.entry.js +15 -5
  92. package/dist/sankhyablocks/snk-taskbar.entry.js +14 -11
  93. package/dist/sankhyablocks/taskbar-elements-35d64ff9.js +90 -0
  94. package/dist/sankhyablocks/taskbar-processor-aa6772c9.js +45 -0
  95. package/dist/types/components/snk-application/snk-application.d.ts +5 -3
  96. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +7 -0
  97. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +1 -0
  98. package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +3 -0
  99. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +6 -3
  100. package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +3 -2
  101. package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +12 -0
  102. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +17 -1
  103. package/dist/types/components.d.ts +78 -2
  104. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
  105. package/package.json +1 -1
  106. package/dist/esm/taskbar-elements-c119510a.js +0 -72
  107. package/dist/sankhyablocks/taskbar-elements-c119510a.js +0 -72
@@ -6715,7 +6715,7 @@ class DataFetcher {
6715
6715
  const url = `${ctx.baseUrl}?serviceName=${name}&counter=21&application=${ctx.appName}&outputType=json&preventTransform=false&mgeSession=${ctx.mgeSession}&resourceID=${ctx.resourceID}&globalID=${ctx.globalID}&allowConcurrentCalls=true`;
6716
6716
  document.cookie = `JSESSIONID=${ctx.mgeSession};`;
6717
6717
  const http = new XMLHttpRequest();
6718
- DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url }));
6718
+ DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url: url, requestBody: payload }));
6719
6719
  http.open("POST", url, true);
6720
6720
  http.withCredentials = true;
6721
6721
  http.send(payload);
@@ -6734,11 +6734,11 @@ class DataFetcher {
6734
6734
  console.warn(`callServiceBroker error to parser response to JSON ${e}`);
6735
6735
  reject(this.responseText);
6736
6736
  }
6737
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url }));
6737
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: payload }));
6738
6738
  }
6739
6739
  else if (this.readyState == 4 && this.status != 200) {
6740
6740
  reject(this.responseText);
6741
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url }));
6741
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: payload }));
6742
6742
  }
6743
6743
  };
6744
6744
  });
@@ -6794,7 +6794,7 @@ class DataFetcher {
6794
6794
  if (window['skw_session']) {
6795
6795
  url += `?mgeSession=${window['skw_session']}`;
6796
6796
  }
6797
- DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url }));
6797
+ DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url: url, requestBody: request }));
6798
6798
  try {
6799
6799
  res = await dist.batchRequests(url, request, { 'Content-Type': `application/json; charset=${window['SERVER_ENCODING'] || 'UTF-8'}` });
6800
6800
  res.forEach((resItem, index) => {
@@ -6825,11 +6825,11 @@ class DataFetcher {
6825
6825
  });
6826
6826
  }
6827
6827
  else {
6828
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url }));
6828
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: request }));
6829
6829
  throw new ErrorException("Falha de comunicação", err.message);
6830
6830
  }
6831
6831
  }
6832
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url }));
6832
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: request }));
6833
6833
  return { data: dataResponse, errors: errorsResponse };
6834
6834
  }
6835
6835
  isHttpError(err) {
@@ -7520,261 +7520,10 @@ class FilterBarConfigFetcher extends ResourceFetcher {
7520
7520
  getConfig(resourceID) {
7521
7521
  return new Promise((resolve) => {
7522
7522
  if (resourceID === "br.com.sankhya.fin.cad.movimentacaoFinanceira") {
7523
- resolve([{
7524
- id: "RECDESP",
7525
- visible: true,
7526
- label: "Receitas + Despesas",
7527
- detailTitle: "Selecione o que deseja ver",
7528
- type: FilterItemType.BINARY_SELECT,
7529
- hardFixed: true,
7530
- props: {
7531
- options: [
7532
- { name: "RECEITA", expression: "this.RECDESP = 1", label: "Receitas" },
7533
- { name: "DESPESA", expression: "this.RECDESP = -1", label: "Despesas" }
7534
- ]
7535
- }
7536
- },
7537
- {
7538
- id: "PROVISAO",
7539
- visible: true,
7540
- label: "Real + Provisão",
7541
- detailTitle: "Selecione o que deseja ver",
7542
- type: FilterItemType.BINARY_SELECT,
7543
- hardFixed: true,
7544
- props: {
7545
- options: [
7546
- { name: "REAL", expression: "nullvalue(this.PROVISAO, 'N') = 'N'", label: "Real" },
7547
- { name: "PROVISAO", expression: "nullvalue(this.PROVISAO, 'N') = 'S'", label: "Provisão" }
7548
- ]
7549
- }
7550
- },
7551
- {
7552
- id: "BAIXADO",
7553
- visible: true,
7554
- label: "Pendentes + Baixados",
7555
- detailTitle: "Selecione o que deseja ver",
7556
- type: FilterItemType.BINARY_SELECT,
7557
- hardFixed: true,
7558
- props: {
7559
- options: [
7560
- { name: "PENDENTE", expression: "this.DHBAIXA IS NULL", label: "Pendentes" },
7561
- { name: "BAIXADO", expression: "this.DHBAIXA IS NOT NULL", label: "Baixados" }
7562
- ]
7563
- }
7564
- },
7565
- {
7566
- id: "DTVENC",
7567
- visible: true,
7568
- type: FilterItemType.PERIOD,
7569
- label: "Dt. Vencimento",
7570
- detailTitle: "Informe a data ou período",
7571
- props: {
7572
- expression: {
7573
- fullfill: "onlydate(this.DTVENC) >= :DTVENC.START AND onlydate(this.DTVENC) <= :DTVENC.END",
7574
- onlystart: "onlydate(this.DTVENC) >= :DTVENC",
7575
- onlyend: "onlydate(this.DTVENC) <= :DTVENC"
7576
- }
7577
- }
7578
- },
7579
- {
7580
- id: "CODPARC",
7581
- visible: true,
7582
- type: FilterItemType.SEARCH,
7583
- label: "Parceiro",
7584
- detailTitle: "Informe o parceiro",
7585
- props: {
7586
- expression: "this.CODPARC = :CODPARC",
7587
- searchContext: {
7588
- entity: "Parceiro",
7589
- entityDescription: "Parceiro",
7590
- searchOptions: {
7591
- rootEntity: "Financeiro",
7592
- descriptionFieldName: "NOMEPARC",
7593
- codeFieldName: "CODPARC",
7594
- showInactives: false
7595
- }
7596
- }
7597
- }
7598
- },
7599
- {
7600
- id: "NUFIN",
7601
- type: FilterItemType.NUMBER,
7602
- visible: true,
7603
- label: "Nr. único",
7604
- detailTitle: "Informe o número único",
7605
- props: {
7606
- expression: "this.NUFIN = :NUFIN"
7607
- }
7608
- },
7609
- {
7610
- id: "NUMNOTA",
7611
- visible: true,
7612
- type: FilterItemType.NUMBER,
7613
- label: "Nr. Nota",
7614
- detailTitle: "Informe o número da nota",
7615
- props: {
7616
- expression: "this.NUMNOTA = :NUMNOTA"
7617
- }
7618
- },
7619
- {
7620
- id: "DHBAIXA",
7621
- visible: true,
7622
- type: FilterItemType.PERIOD,
7623
- label: "Data da Baixa",
7624
- detailTitle: "Informe a data ou período",
7625
- props: {
7626
- expression: {
7627
- fullfill: "onlydate(this.DHBAIXA) >= :DHBAIXA.START AND onlydate(this.DHBAIXA) <= :DHBAIXA.END",
7628
- onlystart: "onlydate(this.DHBAIXA) >= :DHBAIXA",
7629
- onlyend: "onlydate(this.DHBAIXA) <= :DHBAIXA"
7630
- }
7631
- }
7632
- },
7633
- {
7634
- id: "CODEMP",
7635
- visible: false,
7636
- type: FilterItemType.SEARCH,
7637
- label: "Empresa",
7638
- detailTitle: "Informe a empresa",
7639
- props: {
7640
- expression: "this.CODEMP = :CODEMP",
7641
- searchContext: {
7642
- entity: "Empresa",
7643
- entityDescription: "Empresa",
7644
- searchOptions: {
7645
- rootEntity: "Financeiro",
7646
- descriptionFieldName: "NOMEFANTASIA",
7647
- codeFieldName: "CODEMP",
7648
- showInactives: false
7649
- }
7650
- }
7651
- }
7652
- },
7653
- {
7654
- id: "CODNAT",
7655
- visible: false,
7656
- type: FilterItemType.SEARCH,
7657
- label: "Natureza",
7658
- detailTitle: "Informe a natureza",
7659
- props: {
7660
- expression: "this.CODNAT = :CODNAT",
7661
- searchContext: {
7662
- entity: "Natureza",
7663
- entityDescription: "Natureza",
7664
- searchOptions: {
7665
- rootEntity: "Financeiro",
7666
- descriptionFieldName: "DESCRNAT",
7667
- codeFieldName: "CODNAT",
7668
- showInactives: false
7669
- }
7670
- }
7671
- }
7672
- },
7673
- {
7674
- id: "DTNEG",
7675
- visible: false,
7676
- type: FilterItemType.PERIOD,
7677
- label: "Dt. Negociação",
7678
- detailTitle: "Informe a data ou período",
7679
- props: {
7680
- expression: {
7681
- fullfill: "onlydate(this.DTNEG) >= :DTNEG.START AND onlydate(this.DTNEG) <= :DTNEG.END",
7682
- onlystart: "onlydate(this.DTNEG) >= :DTNEG",
7683
- onlyend: "onlydate(this.DTNEG) <= :DTNEG"
7684
- }
7685
- }
7686
- },
7687
- {
7688
- id: "NUNOTA",
7689
- visible: false,
7690
- type: FilterItemType.NUMBER,
7691
- label: "Nro Único do Pedido",
7692
- detailTitle: "Informe o número único do pedido",
7693
- props: {
7694
- expression: "this.NUNOTA = :NUNOTA"
7695
- }
7696
- },
7697
- {
7698
- id: "CODCENCUS",
7699
- visible: false,
7700
- type: FilterItemType.SEARCH,
7701
- label: "Centro de resultado",
7702
- detailTitle: "Informe o centro de resultado",
7703
- props: {
7704
- expression: "this.CODCENCUS = :CODCENCUS",
7705
- searchContext: {
7706
- entity: "CentroResultado",
7707
- entityDescription: "Centro de resultado",
7708
- searchOptions: {
7709
- rootEntity: "Financeiro",
7710
- descriptionFieldName: "DESCRCENCUS",
7711
- codeFieldName: "CODCENCUS",
7712
- showInactives: false
7713
- }
7714
- }
7715
- }
7716
- },
7717
- {
7718
- id: "CODCTABCOINT",
7719
- visible: false,
7720
- type: FilterItemType.SEARCH,
7721
- label: "Conta bancária",
7722
- detailTitle: "Informe a conta bancária",
7723
- props: {
7724
- expression: "this.CODCTABCOINT = :CODCTABCOINT",
7725
- searchContext: {
7726
- entity: "ContaBancaria",
7727
- entityDescription: "Conta bancária",
7728
- searchOptions: {
7729
- rootEntity: "Financeiro",
7730
- descriptionFieldName: "DESCRICAO",
7731
- codeFieldName: "CODCTABCOINT",
7732
- showInactives: false
7733
- }
7734
- }
7735
- }
7736
- },
7737
- {
7738
- id: "CODBCO",
7739
- visible: false,
7740
- type: FilterItemType.SEARCH,
7741
- label: "Banco",
7742
- detailTitle: "Informe o banco",
7743
- props: {
7744
- expression: "this.CODBCO = :CODBCO",
7745
- searchContext: {
7746
- entity: "Banco",
7747
- entityDescription: "Banco",
7748
- searchOptions: {
7749
- rootEntity: "Financeiro",
7750
- descriptionFieldName: "NOMEBCO",
7751
- codeFieldName: "CODBCO",
7752
- showInactives: false
7753
- }
7754
- }
7755
- }
7756
- },
7757
- {
7758
- id: "CODPROJ",
7759
- visible: false,
7760
- type: FilterItemType.SEARCH,
7761
- label: "Projeto",
7762
- detailTitle: "Informe o projeto",
7763
- props: {
7764
- expression: "this.CODPROJ = :CODPROJ",
7765
- searchContext: {
7766
- entity: "Projeto",
7767
- entityDescription: "Projeto",
7768
- searchOptions: {
7769
- rootEntity: "Financeiro",
7770
- descriptionFieldName: "IDENTIFICACAO",
7771
- codeFieldName: "CODPROJ",
7772
- showInactives: false
7773
- }
7774
- }
7775
- }
7776
- }
7777
- ]);
7523
+ resolve(getFiltrosMovFin());
7524
+ }
7525
+ else if (resourceID === "br.com.sankhya.fin.cad.movimentacaoBancaria") {
7526
+ resolve(getFiltrosMovBan());
7778
7527
  }
7779
7528
  else {
7780
7529
  resolve(undefined);
@@ -7782,6 +7531,377 @@ class FilterBarConfigFetcher extends ResourceFetcher {
7782
7531
  });
7783
7532
  }
7784
7533
  }
7534
+ function getFiltrosMovBan() {
7535
+ return [{
7536
+ "id": "DTLANC",
7537
+ "visible": true,
7538
+ "type": FilterItemType.PERIOD,
7539
+ "label": "Dt Lançamento",
7540
+ "detailTitle": "Informe a data ou período",
7541
+ "props": {
7542
+ "expression": {
7543
+ "fullfill": "onlydate(this.DTLANC) >= :DTLANC.START AND onlydate(this.DTLANC) <= :DTLANC.END",
7544
+ "onlystart": "onlydate(this.DTLANC) >= :DTLANC",
7545
+ "onlyend": "onlydate(this.DTLANC) <= :DTLANC"
7546
+ }
7547
+ }
7548
+ },
7549
+ {
7550
+ "id": "CODCTABCOINT",
7551
+ "visible": true,
7552
+ "type": FilterItemType.SEARCH,
7553
+ "label": "Conta origem",
7554
+ "detailTitle": "Informe a conta de origem",
7555
+ "props": {
7556
+ "expression": "this.CODCTABCOINT = :CODCTABCOINT",
7557
+ "searchContext": {
7558
+ "entity": "ImplantacaoSaldoConta",
7559
+ "entityDescription": "Conta origem",
7560
+ "searchOptions": {
7561
+ "rootEntity": "MovimentoBancario",
7562
+ "descriptionFieldName": "DESCRICAO",
7563
+ "codeFieldName": "CODCTABCOINT",
7564
+ "showInactives": false
7565
+ }
7566
+ }
7567
+ }
7568
+ },
7569
+ {
7570
+ "id": "CODTIPOPER",
7571
+ "visible": false,
7572
+ "type": FilterItemType.SEARCH,
7573
+ "label": "Tipo de operação",
7574
+ "detailTitle": "Informe o tipo de operação",
7575
+ "props": {
7576
+ "expression": "this.CODTIPOPER = :CODTIPOPER",
7577
+ "searchContext": {
7578
+ "entity": "TipoOperacao",
7579
+ "entityDescription": "Tipo de operação",
7580
+ "searchOptions": {
7581
+ "rootEntity": "MovimentoBancario",
7582
+ "descriptionFieldName": "DESCROPER",
7583
+ "codeFieldName": "CODTIPOPER",
7584
+ "showInactives": false
7585
+ }
7586
+ }
7587
+ }
7588
+ },
7589
+ {
7590
+ "id": "ORIGMOV",
7591
+ "visible": false,
7592
+ "type": FilterItemType.MULTI_SELECT,
7593
+ "label": "Tipo de movimento",
7594
+ "detailTitle": "Escolha um tipo de movimento",
7595
+ "props": {
7596
+ "expression": "this.ORIGMOV = :ORIGMOV",
7597
+ "options": [
7598
+ { "value": "A", "label": "Aplicação" },
7599
+ { "value": "R", "label": "Resgate" },
7600
+ { "value": "S", "label": "Saque" },
7601
+ { "value": "D", "label": "Depósito" },
7602
+ { "value": "T", "label": "Transferência" }
7603
+ ]
7604
+ }
7605
+ },
7606
+ {
7607
+ "id": "NUBCO",
7608
+ "type": FilterItemType.NUMBER,
7609
+ "visible": false,
7610
+ "label": "Nr. único",
7611
+ "detailTitle": "Informe o número único",
7612
+ "props": {
7613
+ "expression": "this.NUBCO = :NUBCO"
7614
+ }
7615
+ },
7616
+ {
7617
+ "id": "VLRLANC",
7618
+ "type": FilterItemType.NUMBER,
7619
+ "visible": false,
7620
+ "label": "Vlr. Lançamento",
7621
+ "detailTitle": "Informe o valor do lançamento",
7622
+ "props": {
7623
+ "expression": "this.VLRLANC = :VLRLANC",
7624
+ "precision": 2
7625
+ }
7626
+ },
7627
+ {
7628
+ "id": "CODLANC",
7629
+ "visible": false,
7630
+ "type": FilterItemType.SEARCH,
7631
+ "label": "Lançamento origem",
7632
+ "detailTitle": "Informe o lançamento de origem",
7633
+ "props": {
7634
+ "expression": "this.CODLANC = :CODLANC",
7635
+ "searchContext": {
7636
+ "entity": "HistoricoBancario",
7637
+ "entityDescription": "Lançamento origem",
7638
+ "searchOptions": {
7639
+ "rootEntity": "MovimentoBancario",
7640
+ "descriptionFieldName": "DESCRLANCBCO",
7641
+ "codeFieldName": "CODLANC",
7642
+ "showInactives": false
7643
+ }
7644
+ }
7645
+ }
7646
+ }];
7647
+ }
7648
+ function getFiltrosMovFin() {
7649
+ return [{
7650
+ id: "RECDESP",
7651
+ visible: true,
7652
+ label: "Receitas + Despesas",
7653
+ detailTitle: "Selecione o que deseja ver",
7654
+ type: FilterItemType.BINARY_SELECT,
7655
+ hardFixed: true,
7656
+ props: {
7657
+ options: [
7658
+ { name: "RECEITA", expression: "this.RECDESP = 1", label: "Receitas" },
7659
+ { name: "DESPESA", expression: "this.RECDESP = -1", label: "Despesas" }
7660
+ ]
7661
+ }
7662
+ },
7663
+ {
7664
+ id: "PROVISAO",
7665
+ visible: true,
7666
+ label: "Real + Provisão",
7667
+ detailTitle: "Selecione o que deseja ver",
7668
+ type: FilterItemType.BINARY_SELECT,
7669
+ hardFixed: true,
7670
+ props: {
7671
+ options: [
7672
+ { name: "REAL", expression: "nullvalue(this.PROVISAO, 'N') = 'N'", label: "Real" },
7673
+ { name: "PROVISAO", expression: "nullvalue(this.PROVISAO, 'N') = 'S'", label: "Provisão" }
7674
+ ]
7675
+ }
7676
+ },
7677
+ {
7678
+ id: "BAIXADO",
7679
+ visible: true,
7680
+ label: "Pendentes + Baixados",
7681
+ detailTitle: "Selecione o que deseja ver",
7682
+ type: FilterItemType.BINARY_SELECT,
7683
+ hardFixed: true,
7684
+ props: {
7685
+ options: [
7686
+ { name: "PENDENTE", expression: "this.DHBAIXA IS NULL", label: "Pendentes" },
7687
+ { name: "BAIXADO", expression: "this.DHBAIXA IS NOT NULL", label: "Baixados" }
7688
+ ]
7689
+ }
7690
+ },
7691
+ {
7692
+ id: "DTVENC",
7693
+ visible: true,
7694
+ type: FilterItemType.PERIOD,
7695
+ label: "Dt. Vencimento",
7696
+ detailTitle: "Informe a data ou período",
7697
+ props: {
7698
+ expression: {
7699
+ fullfill: "onlydate(this.DTVENC) >= :DTVENC.START AND onlydate(this.DTVENC) <= :DTVENC.END",
7700
+ onlystart: "onlydate(this.DTVENC) >= :DTVENC",
7701
+ onlyend: "onlydate(this.DTVENC) <= :DTVENC"
7702
+ }
7703
+ }
7704
+ },
7705
+ {
7706
+ id: "CODPARC",
7707
+ visible: true,
7708
+ type: FilterItemType.SEARCH,
7709
+ label: "Parceiro",
7710
+ detailTitle: "Informe o parceiro",
7711
+ props: {
7712
+ expression: "this.CODPARC = :CODPARC",
7713
+ searchContext: {
7714
+ entity: "Parceiro",
7715
+ entityDescription: "Parceiro",
7716
+ searchOptions: {
7717
+ rootEntity: "Financeiro",
7718
+ descriptionFieldName: "NOMEPARC",
7719
+ codeFieldName: "CODPARC",
7720
+ showInactives: false
7721
+ }
7722
+ }
7723
+ }
7724
+ },
7725
+ {
7726
+ id: "NUFIN",
7727
+ type: FilterItemType.NUMBER,
7728
+ visible: true,
7729
+ label: "Nr. único",
7730
+ detailTitle: "Informe o número único",
7731
+ props: {
7732
+ expression: "this.NUFIN = :NUFIN"
7733
+ }
7734
+ },
7735
+ {
7736
+ id: "NUMNOTA",
7737
+ visible: true,
7738
+ type: FilterItemType.NUMBER,
7739
+ label: "Nr. Nota",
7740
+ detailTitle: "Informe o número da nota",
7741
+ props: {
7742
+ expression: "this.NUMNOTA = :NUMNOTA"
7743
+ }
7744
+ },
7745
+ {
7746
+ id: "DHBAIXA",
7747
+ visible: true,
7748
+ type: FilterItemType.PERIOD,
7749
+ label: "Data da Baixa",
7750
+ detailTitle: "Informe a data ou período",
7751
+ props: {
7752
+ expression: {
7753
+ fullfill: "onlydate(this.DHBAIXA) >= :DHBAIXA.START AND onlydate(this.DHBAIXA) <= :DHBAIXA.END",
7754
+ onlystart: "onlydate(this.DHBAIXA) >= :DHBAIXA",
7755
+ onlyend: "onlydate(this.DHBAIXA) <= :DHBAIXA"
7756
+ }
7757
+ }
7758
+ },
7759
+ {
7760
+ id: "CODEMP",
7761
+ visible: false,
7762
+ type: FilterItemType.SEARCH,
7763
+ label: "Empresa",
7764
+ detailTitle: "Informe a empresa",
7765
+ props: {
7766
+ expression: "this.CODEMP = :CODEMP",
7767
+ searchContext: {
7768
+ entity: "Empresa",
7769
+ entityDescription: "Empresa",
7770
+ searchOptions: {
7771
+ rootEntity: "Financeiro",
7772
+ descriptionFieldName: "NOMEFANTASIA",
7773
+ codeFieldName: "CODEMP",
7774
+ showInactives: false
7775
+ }
7776
+ }
7777
+ }
7778
+ },
7779
+ {
7780
+ id: "CODNAT",
7781
+ visible: false,
7782
+ type: FilterItemType.SEARCH,
7783
+ label: "Natureza",
7784
+ detailTitle: "Informe a natureza",
7785
+ props: {
7786
+ expression: "this.CODNAT = :CODNAT",
7787
+ searchContext: {
7788
+ entity: "Natureza",
7789
+ entityDescription: "Natureza",
7790
+ searchOptions: {
7791
+ rootEntity: "Financeiro",
7792
+ descriptionFieldName: "DESCRNAT",
7793
+ codeFieldName: "CODNAT",
7794
+ showInactives: false
7795
+ }
7796
+ }
7797
+ }
7798
+ },
7799
+ {
7800
+ id: "DTNEG",
7801
+ visible: false,
7802
+ type: FilterItemType.PERIOD,
7803
+ label: "Dt. Negociação",
7804
+ detailTitle: "Informe a data ou período",
7805
+ props: {
7806
+ expression: {
7807
+ fullfill: "onlydate(this.DTNEG) >= :DTNEG.START AND onlydate(this.DTNEG) <= :DTNEG.END",
7808
+ onlystart: "onlydate(this.DTNEG) >= :DTNEG",
7809
+ onlyend: "onlydate(this.DTNEG) <= :DTNEG"
7810
+ }
7811
+ }
7812
+ },
7813
+ {
7814
+ id: "NUNOTA",
7815
+ visible: false,
7816
+ type: FilterItemType.NUMBER,
7817
+ label: "Nro Único do Pedido",
7818
+ detailTitle: "Informe o número único do pedido",
7819
+ props: {
7820
+ expression: "this.NUNOTA = :NUNOTA"
7821
+ }
7822
+ },
7823
+ {
7824
+ id: "CODCENCUS",
7825
+ visible: false,
7826
+ type: FilterItemType.SEARCH,
7827
+ label: "Centro de resultado",
7828
+ detailTitle: "Informe o centro de resultado",
7829
+ props: {
7830
+ expression: "this.CODCENCUS = :CODCENCUS",
7831
+ searchContext: {
7832
+ entity: "CentroResultado",
7833
+ entityDescription: "Centro de resultado",
7834
+ searchOptions: {
7835
+ rootEntity: "Financeiro",
7836
+ descriptionFieldName: "DESCRCENCUS",
7837
+ codeFieldName: "CODCENCUS",
7838
+ showInactives: false
7839
+ }
7840
+ }
7841
+ }
7842
+ },
7843
+ {
7844
+ id: "CODCTABCOINT",
7845
+ visible: false,
7846
+ type: FilterItemType.SEARCH,
7847
+ label: "Conta bancária",
7848
+ detailTitle: "Informe a conta bancária",
7849
+ props: {
7850
+ expression: "this.CODCTABCOINT = :CODCTABCOINT",
7851
+ searchContext: {
7852
+ entity: "ContaBancaria",
7853
+ entityDescription: "Conta bancária",
7854
+ searchOptions: {
7855
+ rootEntity: "Financeiro",
7856
+ descriptionFieldName: "DESCRICAO",
7857
+ codeFieldName: "CODCTABCOINT",
7858
+ showInactives: false
7859
+ }
7860
+ }
7861
+ }
7862
+ },
7863
+ {
7864
+ id: "CODBCO",
7865
+ visible: false,
7866
+ type: FilterItemType.SEARCH,
7867
+ label: "Banco",
7868
+ detailTitle: "Informe o banco",
7869
+ props: {
7870
+ expression: "this.CODBCO = :CODBCO",
7871
+ searchContext: {
7872
+ entity: "Banco",
7873
+ entityDescription: "Banco",
7874
+ searchOptions: {
7875
+ rootEntity: "Financeiro",
7876
+ descriptionFieldName: "NOMEBCO",
7877
+ codeFieldName: "CODBCO",
7878
+ showInactives: false
7879
+ }
7880
+ }
7881
+ }
7882
+ },
7883
+ {
7884
+ id: "CODPROJ",
7885
+ visible: false,
7886
+ type: FilterItemType.SEARCH,
7887
+ label: "Projeto",
7888
+ detailTitle: "Informe o projeto",
7889
+ props: {
7890
+ expression: "this.CODPROJ = :CODPROJ",
7891
+ searchContext: {
7892
+ entity: "Projeto",
7893
+ entityDescription: "Projeto",
7894
+ searchOptions: {
7895
+ rootEntity: "Financeiro",
7896
+ descriptionFieldName: "IDENTIFICACAO",
7897
+ codeFieldName: "CODPROJ",
7898
+ showInactives: false
7899
+ }
7900
+ }
7901
+ }
7902
+ }
7903
+ ];
7904
+ }
7785
7905
 
7786
7906
  const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
7787
7907
 
@@ -8311,17 +8431,24 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
8311
8431
  class RequestListenerLoadingBar {
8312
8432
  constructor() {
8313
8433
  this._debounceTime = 1000;
8434
+ this._ignoredNameTypes = ["totals"];
8314
8435
  this._countRequest = 0;
8315
8436
  }
8316
- onRequestStart() {
8317
- this.loadingBar.show();
8437
+ onRequestStart(param) {
8438
+ if (this.isIgnoreLoadingOnRequest(param)) {
8439
+ return;
8440
+ }
8318
8441
  this._countRequest++;
8442
+ this.loadingBar.show();
8319
8443
  if (this._timerLoading) {
8320
8444
  clearTimeout(this._timerLoading);
8321
8445
  }
8322
8446
  }
8323
8447
  ;
8324
- onRequestEnd() {
8448
+ onRequestEnd(param) {
8449
+ if (this.isIgnoreLoadingOnRequest(param)) {
8450
+ return;
8451
+ }
8325
8452
  this._countRequest--;
8326
8453
  this._timerLoading = setTimeout(() => {
8327
8454
  if (this._countRequest <= 0) {
@@ -8330,6 +8457,19 @@ class RequestListenerLoadingBar {
8330
8457
  }, this._debounceTime);
8331
8458
  }
8332
8459
  ;
8460
+ isIgnoreLoadingOnRequest(param) {
8461
+ var _a;
8462
+ if (((_a = param === null || param === void 0 ? void 0 : param.requestBody) === null || _a === void 0 ? void 0 : _a.length) == 1) {
8463
+ const { name } = param.requestBody[0].variables;
8464
+ if (name) {
8465
+ const nameParts = name.split(":");
8466
+ const nameType = nameParts[0];
8467
+ return this._ignoredNameTypes.indexOf(nameType) >= 0;
8468
+ }
8469
+ }
8470
+ return false;
8471
+ }
8472
+ ;
8333
8473
  }
8334
8474
  class PendingPromise {
8335
8475
  constructor(resolve, reject) {