@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
@@ -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 : {};
@@ -6718,7 +6718,7 @@ class DataFetcher {
6718
6718
  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`;
6719
6719
  document.cookie = `JSESSIONID=${ctx.mgeSession};`;
6720
6720
  const http = new XMLHttpRequest();
6721
- DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url }));
6721
+ DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url: url, requestBody: payload }));
6722
6722
  http.open("POST", url, true);
6723
6723
  http.withCredentials = true;
6724
6724
  http.send(payload);
@@ -6737,11 +6737,11 @@ class DataFetcher {
6737
6737
  console.warn(`callServiceBroker error to parser response to JSON ${e}`);
6738
6738
  reject(this.responseText);
6739
6739
  }
6740
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url }));
6740
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: payload }));
6741
6741
  }
6742
6742
  else if (this.readyState == 4 && this.status != 200) {
6743
6743
  reject(this.responseText);
6744
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url }));
6744
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: payload }));
6745
6745
  }
6746
6746
  };
6747
6747
  });
@@ -6797,7 +6797,7 @@ class DataFetcher {
6797
6797
  if (window['skw_session']) {
6798
6798
  url += `?mgeSession=${window['skw_session']}`;
6799
6799
  }
6800
- DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url }));
6800
+ DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url: url, requestBody: request }));
6801
6801
  try {
6802
6802
  res = await dist.batchRequests(url, request, { 'Content-Type': `application/json; charset=${window['SERVER_ENCODING'] || 'UTF-8'}` });
6803
6803
  res.forEach((resItem, index) => {
@@ -6828,11 +6828,11 @@ class DataFetcher {
6828
6828
  });
6829
6829
  }
6830
6830
  else {
6831
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url }));
6831
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: request }));
6832
6832
  throw new index$1.ErrorException("Falha de comunicação", err.message);
6833
6833
  }
6834
6834
  }
6835
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url }));
6835
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: request }));
6836
6836
  return { data: dataResponse, errors: errorsResponse };
6837
6837
  }
6838
6838
  isHttpError(err) {
@@ -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
 
@@ -8279,17 +8399,24 @@ const SnkApplication = class {
8279
8399
  class RequestListenerLoadingBar {
8280
8400
  constructor() {
8281
8401
  this._debounceTime = 1000;
8402
+ this._ignoredNameTypes = ["totals"];
8282
8403
  this._countRequest = 0;
8283
8404
  }
8284
- onRequestStart() {
8285
- this.loadingBar.show();
8405
+ onRequestStart(param) {
8406
+ if (this.isIgnoreLoadingOnRequest(param)) {
8407
+ return;
8408
+ }
8286
8409
  this._countRequest++;
8410
+ this.loadingBar.show();
8287
8411
  if (this._timerLoading) {
8288
8412
  clearTimeout(this._timerLoading);
8289
8413
  }
8290
8414
  }
8291
8415
  ;
8292
- onRequestEnd() {
8416
+ onRequestEnd(param) {
8417
+ if (this.isIgnoreLoadingOnRequest(param)) {
8418
+ return;
8419
+ }
8293
8420
  this._countRequest--;
8294
8421
  this._timerLoading = setTimeout(() => {
8295
8422
  if (this._countRequest <= 0) {
@@ -8298,6 +8425,19 @@ class RequestListenerLoadingBar {
8298
8425
  }, this._debounceTime);
8299
8426
  }
8300
8427
  ;
8428
+ isIgnoreLoadingOnRequest(param) {
8429
+ var _a;
8430
+ if (((_a = param === null || param === void 0 ? void 0 : param.requestBody) === null || _a === void 0 ? void 0 : _a.length) == 1) {
8431
+ const { name } = param.requestBody[0].variables;
8432
+ if (name) {
8433
+ const nameParts = name.split(":");
8434
+ const nameType = nameParts[0];
8435
+ return this._ignoredNameTypes.indexOf(nameType) >= 0;
8436
+ }
8437
+ }
8438
+ return false;
8439
+ }
8440
+ ;
8301
8441
  }
8302
8442
  class PendingPromise {
8303
8443
  constructor(resolve, reject) {