@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
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, e as createEvent, h } from './index-2b4d2d14.js';
2
2
  import { E as ErrorException, W as WarningException, S as StringUtils, D as DataUnit, b as DataType, C as ChangeOperation, c as DateUtils, O as ObjectUtils, d as WaitingChangeException, e as DependencyType, a as ApplicationContext, f as ErrorTracking } from './index-e5b61043.js';
3
- import { A as ApplicationUtils, S as SnkMessageBuilder } from './SnkMessageBuilder-cff80920.js';
3
+ import { A as ApplicationUtils, S as SnkMessageBuilder } from './SnkMessageBuilder-65d431bd.js';
4
4
  import { F as FilterItemType } from './filter-item-type.enum-61fbf80a.js';
5
5
 
6
6
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -6714,7 +6714,7 @@ class DataFetcher {
6714
6714
  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`;
6715
6715
  document.cookie = `JSESSIONID=${ctx.mgeSession};`;
6716
6716
  const http = new XMLHttpRequest();
6717
- DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url }));
6717
+ DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url: url, requestBody: payload }));
6718
6718
  http.open("POST", url, true);
6719
6719
  http.withCredentials = true;
6720
6720
  http.send(payload);
@@ -6733,11 +6733,11 @@ class DataFetcher {
6733
6733
  console.warn(`callServiceBroker error to parser response to JSON ${e}`);
6734
6734
  reject(this.responseText);
6735
6735
  }
6736
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url }));
6736
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: payload }));
6737
6737
  }
6738
6738
  else if (this.readyState == 4 && this.status != 200) {
6739
6739
  reject(this.responseText);
6740
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url }));
6740
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: payload }));
6741
6741
  }
6742
6742
  };
6743
6743
  });
@@ -6793,7 +6793,7 @@ class DataFetcher {
6793
6793
  if (window['skw_session']) {
6794
6794
  url += `?mgeSession=${window['skw_session']}`;
6795
6795
  }
6796
- DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url }));
6796
+ DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url: url, requestBody: request }));
6797
6797
  try {
6798
6798
  res = await dist.batchRequests(url, request, { 'Content-Type': `application/json; charset=${window['SERVER_ENCODING'] || 'UTF-8'}` });
6799
6799
  res.forEach((resItem, index) => {
@@ -6824,11 +6824,11 @@ class DataFetcher {
6824
6824
  });
6825
6825
  }
6826
6826
  else {
6827
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url }));
6827
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: request }));
6828
6828
  throw new ErrorException("Falha de comunicação", err.message);
6829
6829
  }
6830
6830
  }
6831
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url }));
6831
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: request }));
6832
6832
  return { data: dataResponse, errors: errorsResponse };
6833
6833
  }
6834
6834
  isHttpError(err) {
@@ -7519,261 +7519,10 @@ class FilterBarConfigFetcher extends ResourceFetcher {
7519
7519
  getConfig(resourceID) {
7520
7520
  return new Promise((resolve) => {
7521
7521
  if (resourceID === "br.com.sankhya.fin.cad.movimentacaoFinanceira") {
7522
- resolve([{
7523
- id: "RECDESP",
7524
- visible: true,
7525
- label: "Receitas + Despesas",
7526
- detailTitle: "Selecione o que deseja ver",
7527
- type: FilterItemType.BINARY_SELECT,
7528
- hardFixed: true,
7529
- props: {
7530
- options: [
7531
- { name: "RECEITA", expression: "this.RECDESP = 1", label: "Receitas" },
7532
- { name: "DESPESA", expression: "this.RECDESP = -1", label: "Despesas" }
7533
- ]
7534
- }
7535
- },
7536
- {
7537
- id: "PROVISAO",
7538
- visible: true,
7539
- label: "Real + Provisão",
7540
- detailTitle: "Selecione o que deseja ver",
7541
- type: FilterItemType.BINARY_SELECT,
7542
- hardFixed: true,
7543
- props: {
7544
- options: [
7545
- { name: "REAL", expression: "nullvalue(this.PROVISAO, 'N') = 'N'", label: "Real" },
7546
- { name: "PROVISAO", expression: "nullvalue(this.PROVISAO, 'N') = 'S'", label: "Provisão" }
7547
- ]
7548
- }
7549
- },
7550
- {
7551
- id: "BAIXADO",
7552
- visible: true,
7553
- label: "Pendentes + Baixados",
7554
- detailTitle: "Selecione o que deseja ver",
7555
- type: FilterItemType.BINARY_SELECT,
7556
- hardFixed: true,
7557
- props: {
7558
- options: [
7559
- { name: "PENDENTE", expression: "this.DHBAIXA IS NULL", label: "Pendentes" },
7560
- { name: "BAIXADO", expression: "this.DHBAIXA IS NOT NULL", label: "Baixados" }
7561
- ]
7562
- }
7563
- },
7564
- {
7565
- id: "DTVENC",
7566
- visible: true,
7567
- type: FilterItemType.PERIOD,
7568
- label: "Dt. Vencimento",
7569
- detailTitle: "Informe a data ou período",
7570
- props: {
7571
- expression: {
7572
- fullfill: "onlydate(this.DTVENC) >= :DTVENC.START AND onlydate(this.DTVENC) <= :DTVENC.END",
7573
- onlystart: "onlydate(this.DTVENC) >= :DTVENC",
7574
- onlyend: "onlydate(this.DTVENC) <= :DTVENC"
7575
- }
7576
- }
7577
- },
7578
- {
7579
- id: "CODPARC",
7580
- visible: true,
7581
- type: FilterItemType.SEARCH,
7582
- label: "Parceiro",
7583
- detailTitle: "Informe o parceiro",
7584
- props: {
7585
- expression: "this.CODPARC = :CODPARC",
7586
- searchContext: {
7587
- entity: "Parceiro",
7588
- entityDescription: "Parceiro",
7589
- searchOptions: {
7590
- rootEntity: "Financeiro",
7591
- descriptionFieldName: "NOMEPARC",
7592
- codeFieldName: "CODPARC",
7593
- showInactives: false
7594
- }
7595
- }
7596
- }
7597
- },
7598
- {
7599
- id: "NUFIN",
7600
- type: FilterItemType.NUMBER,
7601
- visible: true,
7602
- label: "Nr. único",
7603
- detailTitle: "Informe o número único",
7604
- props: {
7605
- expression: "this.NUFIN = :NUFIN"
7606
- }
7607
- },
7608
- {
7609
- id: "NUMNOTA",
7610
- visible: true,
7611
- type: FilterItemType.NUMBER,
7612
- label: "Nr. Nota",
7613
- detailTitle: "Informe o número da nota",
7614
- props: {
7615
- expression: "this.NUMNOTA = :NUMNOTA"
7616
- }
7617
- },
7618
- {
7619
- id: "DHBAIXA",
7620
- visible: true,
7621
- type: FilterItemType.PERIOD,
7622
- label: "Data da Baixa",
7623
- detailTitle: "Informe a data ou período",
7624
- props: {
7625
- expression: {
7626
- fullfill: "onlydate(this.DHBAIXA) >= :DHBAIXA.START AND onlydate(this.DHBAIXA) <= :DHBAIXA.END",
7627
- onlystart: "onlydate(this.DHBAIXA) >= :DHBAIXA",
7628
- onlyend: "onlydate(this.DHBAIXA) <= :DHBAIXA"
7629
- }
7630
- }
7631
- },
7632
- {
7633
- id: "CODEMP",
7634
- visible: false,
7635
- type: FilterItemType.SEARCH,
7636
- label: "Empresa",
7637
- detailTitle: "Informe a empresa",
7638
- props: {
7639
- expression: "this.CODEMP = :CODEMP",
7640
- searchContext: {
7641
- entity: "Empresa",
7642
- entityDescription: "Empresa",
7643
- searchOptions: {
7644
- rootEntity: "Financeiro",
7645
- descriptionFieldName: "NOMEFANTASIA",
7646
- codeFieldName: "CODEMP",
7647
- showInactives: false
7648
- }
7649
- }
7650
- }
7651
- },
7652
- {
7653
- id: "CODNAT",
7654
- visible: false,
7655
- type: FilterItemType.SEARCH,
7656
- label: "Natureza",
7657
- detailTitle: "Informe a natureza",
7658
- props: {
7659
- expression: "this.CODNAT = :CODNAT",
7660
- searchContext: {
7661
- entity: "Natureza",
7662
- entityDescription: "Natureza",
7663
- searchOptions: {
7664
- rootEntity: "Financeiro",
7665
- descriptionFieldName: "DESCRNAT",
7666
- codeFieldName: "CODNAT",
7667
- showInactives: false
7668
- }
7669
- }
7670
- }
7671
- },
7672
- {
7673
- id: "DTNEG",
7674
- visible: false,
7675
- type: FilterItemType.PERIOD,
7676
- label: "Dt. Negociação",
7677
- detailTitle: "Informe a data ou período",
7678
- props: {
7679
- expression: {
7680
- fullfill: "onlydate(this.DTNEG) >= :DTNEG.START AND onlydate(this.DTNEG) <= :DTNEG.END",
7681
- onlystart: "onlydate(this.DTNEG) >= :DTNEG",
7682
- onlyend: "onlydate(this.DTNEG) <= :DTNEG"
7683
- }
7684
- }
7685
- },
7686
- {
7687
- id: "NUNOTA",
7688
- visible: false,
7689
- type: FilterItemType.NUMBER,
7690
- label: "Nro Único do Pedido",
7691
- detailTitle: "Informe o número único do pedido",
7692
- props: {
7693
- expression: "this.NUNOTA = :NUNOTA"
7694
- }
7695
- },
7696
- {
7697
- id: "CODCENCUS",
7698
- visible: false,
7699
- type: FilterItemType.SEARCH,
7700
- label: "Centro de resultado",
7701
- detailTitle: "Informe o centro de resultado",
7702
- props: {
7703
- expression: "this.CODCENCUS = :CODCENCUS",
7704
- searchContext: {
7705
- entity: "CentroResultado",
7706
- entityDescription: "Centro de resultado",
7707
- searchOptions: {
7708
- rootEntity: "Financeiro",
7709
- descriptionFieldName: "DESCRCENCUS",
7710
- codeFieldName: "CODCENCUS",
7711
- showInactives: false
7712
- }
7713
- }
7714
- }
7715
- },
7716
- {
7717
- id: "CODCTABCOINT",
7718
- visible: false,
7719
- type: FilterItemType.SEARCH,
7720
- label: "Conta bancária",
7721
- detailTitle: "Informe a conta bancária",
7722
- props: {
7723
- expression: "this.CODCTABCOINT = :CODCTABCOINT",
7724
- searchContext: {
7725
- entity: "ContaBancaria",
7726
- entityDescription: "Conta bancária",
7727
- searchOptions: {
7728
- rootEntity: "Financeiro",
7729
- descriptionFieldName: "DESCRICAO",
7730
- codeFieldName: "CODCTABCOINT",
7731
- showInactives: false
7732
- }
7733
- }
7734
- }
7735
- },
7736
- {
7737
- id: "CODBCO",
7738
- visible: false,
7739
- type: FilterItemType.SEARCH,
7740
- label: "Banco",
7741
- detailTitle: "Informe o banco",
7742
- props: {
7743
- expression: "this.CODBCO = :CODBCO",
7744
- searchContext: {
7745
- entity: "Banco",
7746
- entityDescription: "Banco",
7747
- searchOptions: {
7748
- rootEntity: "Financeiro",
7749
- descriptionFieldName: "NOMEBCO",
7750
- codeFieldName: "CODBCO",
7751
- showInactives: false
7752
- }
7753
- }
7754
- }
7755
- },
7756
- {
7757
- id: "CODPROJ",
7758
- visible: false,
7759
- type: FilterItemType.SEARCH,
7760
- label: "Projeto",
7761
- detailTitle: "Informe o projeto",
7762
- props: {
7763
- expression: "this.CODPROJ = :CODPROJ",
7764
- searchContext: {
7765
- entity: "Projeto",
7766
- entityDescription: "Projeto",
7767
- searchOptions: {
7768
- rootEntity: "Financeiro",
7769
- descriptionFieldName: "IDENTIFICACAO",
7770
- codeFieldName: "CODPROJ",
7771
- showInactives: false
7772
- }
7773
- }
7774
- }
7775
- }
7776
- ]);
7522
+ resolve(getFiltrosMovFin());
7523
+ }
7524
+ else if (resourceID === "br.com.sankhya.fin.cad.movimentacaoBancaria") {
7525
+ resolve(getFiltrosMovBan());
7777
7526
  }
7778
7527
  else {
7779
7528
  resolve(undefined);
@@ -7781,6 +7530,377 @@ class FilterBarConfigFetcher extends ResourceFetcher {
7781
7530
  });
7782
7531
  }
7783
7532
  }
7533
+ function getFiltrosMovBan() {
7534
+ return [{
7535
+ "id": "DTLANC",
7536
+ "visible": true,
7537
+ "type": FilterItemType.PERIOD,
7538
+ "label": "Dt Lançamento",
7539
+ "detailTitle": "Informe a data ou período",
7540
+ "props": {
7541
+ "expression": {
7542
+ "fullfill": "onlydate(this.DTLANC) >= :DTLANC.START AND onlydate(this.DTLANC) <= :DTLANC.END",
7543
+ "onlystart": "onlydate(this.DTLANC) >= :DTLANC",
7544
+ "onlyend": "onlydate(this.DTLANC) <= :DTLANC"
7545
+ }
7546
+ }
7547
+ },
7548
+ {
7549
+ "id": "CODCTABCOINT",
7550
+ "visible": true,
7551
+ "type": FilterItemType.SEARCH,
7552
+ "label": "Conta origem",
7553
+ "detailTitle": "Informe a conta de origem",
7554
+ "props": {
7555
+ "expression": "this.CODCTABCOINT = :CODCTABCOINT",
7556
+ "searchContext": {
7557
+ "entity": "ImplantacaoSaldoConta",
7558
+ "entityDescription": "Conta origem",
7559
+ "searchOptions": {
7560
+ "rootEntity": "MovimentoBancario",
7561
+ "descriptionFieldName": "DESCRICAO",
7562
+ "codeFieldName": "CODCTABCOINT",
7563
+ "showInactives": false
7564
+ }
7565
+ }
7566
+ }
7567
+ },
7568
+ {
7569
+ "id": "CODTIPOPER",
7570
+ "visible": false,
7571
+ "type": FilterItemType.SEARCH,
7572
+ "label": "Tipo de operação",
7573
+ "detailTitle": "Informe o tipo de operação",
7574
+ "props": {
7575
+ "expression": "this.CODTIPOPER = :CODTIPOPER",
7576
+ "searchContext": {
7577
+ "entity": "TipoOperacao",
7578
+ "entityDescription": "Tipo de operação",
7579
+ "searchOptions": {
7580
+ "rootEntity": "MovimentoBancario",
7581
+ "descriptionFieldName": "DESCROPER",
7582
+ "codeFieldName": "CODTIPOPER",
7583
+ "showInactives": false
7584
+ }
7585
+ }
7586
+ }
7587
+ },
7588
+ {
7589
+ "id": "ORIGMOV",
7590
+ "visible": false,
7591
+ "type": FilterItemType.MULTI_SELECT,
7592
+ "label": "Tipo de movimento",
7593
+ "detailTitle": "Escolha um tipo de movimento",
7594
+ "props": {
7595
+ "expression": "this.ORIGMOV = :ORIGMOV",
7596
+ "options": [
7597
+ { "value": "A", "label": "Aplicação" },
7598
+ { "value": "R", "label": "Resgate" },
7599
+ { "value": "S", "label": "Saque" },
7600
+ { "value": "D", "label": "Depósito" },
7601
+ { "value": "T", "label": "Transferência" }
7602
+ ]
7603
+ }
7604
+ },
7605
+ {
7606
+ "id": "NUBCO",
7607
+ "type": FilterItemType.NUMBER,
7608
+ "visible": false,
7609
+ "label": "Nr. único",
7610
+ "detailTitle": "Informe o número único",
7611
+ "props": {
7612
+ "expression": "this.NUBCO = :NUBCO"
7613
+ }
7614
+ },
7615
+ {
7616
+ "id": "VLRLANC",
7617
+ "type": FilterItemType.NUMBER,
7618
+ "visible": false,
7619
+ "label": "Vlr. Lançamento",
7620
+ "detailTitle": "Informe o valor do lançamento",
7621
+ "props": {
7622
+ "expression": "this.VLRLANC = :VLRLANC",
7623
+ "precision": 2
7624
+ }
7625
+ },
7626
+ {
7627
+ "id": "CODLANC",
7628
+ "visible": false,
7629
+ "type": FilterItemType.SEARCH,
7630
+ "label": "Lançamento origem",
7631
+ "detailTitle": "Informe o lançamento de origem",
7632
+ "props": {
7633
+ "expression": "this.CODLANC = :CODLANC",
7634
+ "searchContext": {
7635
+ "entity": "HistoricoBancario",
7636
+ "entityDescription": "Lançamento origem",
7637
+ "searchOptions": {
7638
+ "rootEntity": "MovimentoBancario",
7639
+ "descriptionFieldName": "DESCRLANCBCO",
7640
+ "codeFieldName": "CODLANC",
7641
+ "showInactives": false
7642
+ }
7643
+ }
7644
+ }
7645
+ }];
7646
+ }
7647
+ function getFiltrosMovFin() {
7648
+ return [{
7649
+ id: "RECDESP",
7650
+ visible: true,
7651
+ label: "Receitas + Despesas",
7652
+ detailTitle: "Selecione o que deseja ver",
7653
+ type: FilterItemType.BINARY_SELECT,
7654
+ hardFixed: true,
7655
+ props: {
7656
+ options: [
7657
+ { name: "RECEITA", expression: "this.RECDESP = 1", label: "Receitas" },
7658
+ { name: "DESPESA", expression: "this.RECDESP = -1", label: "Despesas" }
7659
+ ]
7660
+ }
7661
+ },
7662
+ {
7663
+ id: "PROVISAO",
7664
+ visible: true,
7665
+ label: "Real + Provisão",
7666
+ detailTitle: "Selecione o que deseja ver",
7667
+ type: FilterItemType.BINARY_SELECT,
7668
+ hardFixed: true,
7669
+ props: {
7670
+ options: [
7671
+ { name: "REAL", expression: "nullvalue(this.PROVISAO, 'N') = 'N'", label: "Real" },
7672
+ { name: "PROVISAO", expression: "nullvalue(this.PROVISAO, 'N') = 'S'", label: "Provisão" }
7673
+ ]
7674
+ }
7675
+ },
7676
+ {
7677
+ id: "BAIXADO",
7678
+ visible: true,
7679
+ label: "Pendentes + Baixados",
7680
+ detailTitle: "Selecione o que deseja ver",
7681
+ type: FilterItemType.BINARY_SELECT,
7682
+ hardFixed: true,
7683
+ props: {
7684
+ options: [
7685
+ { name: "PENDENTE", expression: "this.DHBAIXA IS NULL", label: "Pendentes" },
7686
+ { name: "BAIXADO", expression: "this.DHBAIXA IS NOT NULL", label: "Baixados" }
7687
+ ]
7688
+ }
7689
+ },
7690
+ {
7691
+ id: "DTVENC",
7692
+ visible: true,
7693
+ type: FilterItemType.PERIOD,
7694
+ label: "Dt. Vencimento",
7695
+ detailTitle: "Informe a data ou período",
7696
+ props: {
7697
+ expression: {
7698
+ fullfill: "onlydate(this.DTVENC) >= :DTVENC.START AND onlydate(this.DTVENC) <= :DTVENC.END",
7699
+ onlystart: "onlydate(this.DTVENC) >= :DTVENC",
7700
+ onlyend: "onlydate(this.DTVENC) <= :DTVENC"
7701
+ }
7702
+ }
7703
+ },
7704
+ {
7705
+ id: "CODPARC",
7706
+ visible: true,
7707
+ type: FilterItemType.SEARCH,
7708
+ label: "Parceiro",
7709
+ detailTitle: "Informe o parceiro",
7710
+ props: {
7711
+ expression: "this.CODPARC = :CODPARC",
7712
+ searchContext: {
7713
+ entity: "Parceiro",
7714
+ entityDescription: "Parceiro",
7715
+ searchOptions: {
7716
+ rootEntity: "Financeiro",
7717
+ descriptionFieldName: "NOMEPARC",
7718
+ codeFieldName: "CODPARC",
7719
+ showInactives: false
7720
+ }
7721
+ }
7722
+ }
7723
+ },
7724
+ {
7725
+ id: "NUFIN",
7726
+ type: FilterItemType.NUMBER,
7727
+ visible: true,
7728
+ label: "Nr. único",
7729
+ detailTitle: "Informe o número único",
7730
+ props: {
7731
+ expression: "this.NUFIN = :NUFIN"
7732
+ }
7733
+ },
7734
+ {
7735
+ id: "NUMNOTA",
7736
+ visible: true,
7737
+ type: FilterItemType.NUMBER,
7738
+ label: "Nr. Nota",
7739
+ detailTitle: "Informe o número da nota",
7740
+ props: {
7741
+ expression: "this.NUMNOTA = :NUMNOTA"
7742
+ }
7743
+ },
7744
+ {
7745
+ id: "DHBAIXA",
7746
+ visible: true,
7747
+ type: FilterItemType.PERIOD,
7748
+ label: "Data da Baixa",
7749
+ detailTitle: "Informe a data ou período",
7750
+ props: {
7751
+ expression: {
7752
+ fullfill: "onlydate(this.DHBAIXA) >= :DHBAIXA.START AND onlydate(this.DHBAIXA) <= :DHBAIXA.END",
7753
+ onlystart: "onlydate(this.DHBAIXA) >= :DHBAIXA",
7754
+ onlyend: "onlydate(this.DHBAIXA) <= :DHBAIXA"
7755
+ }
7756
+ }
7757
+ },
7758
+ {
7759
+ id: "CODEMP",
7760
+ visible: false,
7761
+ type: FilterItemType.SEARCH,
7762
+ label: "Empresa",
7763
+ detailTitle: "Informe a empresa",
7764
+ props: {
7765
+ expression: "this.CODEMP = :CODEMP",
7766
+ searchContext: {
7767
+ entity: "Empresa",
7768
+ entityDescription: "Empresa",
7769
+ searchOptions: {
7770
+ rootEntity: "Financeiro",
7771
+ descriptionFieldName: "NOMEFANTASIA",
7772
+ codeFieldName: "CODEMP",
7773
+ showInactives: false
7774
+ }
7775
+ }
7776
+ }
7777
+ },
7778
+ {
7779
+ id: "CODNAT",
7780
+ visible: false,
7781
+ type: FilterItemType.SEARCH,
7782
+ label: "Natureza",
7783
+ detailTitle: "Informe a natureza",
7784
+ props: {
7785
+ expression: "this.CODNAT = :CODNAT",
7786
+ searchContext: {
7787
+ entity: "Natureza",
7788
+ entityDescription: "Natureza",
7789
+ searchOptions: {
7790
+ rootEntity: "Financeiro",
7791
+ descriptionFieldName: "DESCRNAT",
7792
+ codeFieldName: "CODNAT",
7793
+ showInactives: false
7794
+ }
7795
+ }
7796
+ }
7797
+ },
7798
+ {
7799
+ id: "DTNEG",
7800
+ visible: false,
7801
+ type: FilterItemType.PERIOD,
7802
+ label: "Dt. Negociação",
7803
+ detailTitle: "Informe a data ou período",
7804
+ props: {
7805
+ expression: {
7806
+ fullfill: "onlydate(this.DTNEG) >= :DTNEG.START AND onlydate(this.DTNEG) <= :DTNEG.END",
7807
+ onlystart: "onlydate(this.DTNEG) >= :DTNEG",
7808
+ onlyend: "onlydate(this.DTNEG) <= :DTNEG"
7809
+ }
7810
+ }
7811
+ },
7812
+ {
7813
+ id: "NUNOTA",
7814
+ visible: false,
7815
+ type: FilterItemType.NUMBER,
7816
+ label: "Nro Único do Pedido",
7817
+ detailTitle: "Informe o número único do pedido",
7818
+ props: {
7819
+ expression: "this.NUNOTA = :NUNOTA"
7820
+ }
7821
+ },
7822
+ {
7823
+ id: "CODCENCUS",
7824
+ visible: false,
7825
+ type: FilterItemType.SEARCH,
7826
+ label: "Centro de resultado",
7827
+ detailTitle: "Informe o centro de resultado",
7828
+ props: {
7829
+ expression: "this.CODCENCUS = :CODCENCUS",
7830
+ searchContext: {
7831
+ entity: "CentroResultado",
7832
+ entityDescription: "Centro de resultado",
7833
+ searchOptions: {
7834
+ rootEntity: "Financeiro",
7835
+ descriptionFieldName: "DESCRCENCUS",
7836
+ codeFieldName: "CODCENCUS",
7837
+ showInactives: false
7838
+ }
7839
+ }
7840
+ }
7841
+ },
7842
+ {
7843
+ id: "CODCTABCOINT",
7844
+ visible: false,
7845
+ type: FilterItemType.SEARCH,
7846
+ label: "Conta bancária",
7847
+ detailTitle: "Informe a conta bancária",
7848
+ props: {
7849
+ expression: "this.CODCTABCOINT = :CODCTABCOINT",
7850
+ searchContext: {
7851
+ entity: "ContaBancaria",
7852
+ entityDescription: "Conta bancária",
7853
+ searchOptions: {
7854
+ rootEntity: "Financeiro",
7855
+ descriptionFieldName: "DESCRICAO",
7856
+ codeFieldName: "CODCTABCOINT",
7857
+ showInactives: false
7858
+ }
7859
+ }
7860
+ }
7861
+ },
7862
+ {
7863
+ id: "CODBCO",
7864
+ visible: false,
7865
+ type: FilterItemType.SEARCH,
7866
+ label: "Banco",
7867
+ detailTitle: "Informe o banco",
7868
+ props: {
7869
+ expression: "this.CODBCO = :CODBCO",
7870
+ searchContext: {
7871
+ entity: "Banco",
7872
+ entityDescription: "Banco",
7873
+ searchOptions: {
7874
+ rootEntity: "Financeiro",
7875
+ descriptionFieldName: "NOMEBCO",
7876
+ codeFieldName: "CODBCO",
7877
+ showInactives: false
7878
+ }
7879
+ }
7880
+ }
7881
+ },
7882
+ {
7883
+ id: "CODPROJ",
7884
+ visible: false,
7885
+ type: FilterItemType.SEARCH,
7886
+ label: "Projeto",
7887
+ detailTitle: "Informe o projeto",
7888
+ props: {
7889
+ expression: "this.CODPROJ = :CODPROJ",
7890
+ searchContext: {
7891
+ entity: "Projeto",
7892
+ entityDescription: "Projeto",
7893
+ searchOptions: {
7894
+ rootEntity: "Financeiro",
7895
+ descriptionFieldName: "IDENTIFICACAO",
7896
+ codeFieldName: "CODPROJ",
7897
+ showInactives: false
7898
+ }
7899
+ }
7900
+ }
7901
+ }
7902
+ ];
7903
+ }
7784
7904
 
7785
7905
  const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
7786
7906
 
@@ -8275,17 +8395,24 @@ const SnkApplication = class {
8275
8395
  class RequestListenerLoadingBar {
8276
8396
  constructor() {
8277
8397
  this._debounceTime = 1000;
8398
+ this._ignoredNameTypes = ["totals"];
8278
8399
  this._countRequest = 0;
8279
8400
  }
8280
- onRequestStart() {
8281
- this.loadingBar.show();
8401
+ onRequestStart(param) {
8402
+ if (this.isIgnoreLoadingOnRequest(param)) {
8403
+ return;
8404
+ }
8282
8405
  this._countRequest++;
8406
+ this.loadingBar.show();
8283
8407
  if (this._timerLoading) {
8284
8408
  clearTimeout(this._timerLoading);
8285
8409
  }
8286
8410
  }
8287
8411
  ;
8288
- onRequestEnd() {
8412
+ onRequestEnd(param) {
8413
+ if (this.isIgnoreLoadingOnRequest(param)) {
8414
+ return;
8415
+ }
8289
8416
  this._countRequest--;
8290
8417
  this._timerLoading = setTimeout(() => {
8291
8418
  if (this._countRequest <= 0) {
@@ -8294,6 +8421,19 @@ class RequestListenerLoadingBar {
8294
8421
  }, this._debounceTime);
8295
8422
  }
8296
8423
  ;
8424
+ isIgnoreLoadingOnRequest(param) {
8425
+ var _a;
8426
+ if (((_a = param === null || param === void 0 ? void 0 : param.requestBody) === null || _a === void 0 ? void 0 : _a.length) == 1) {
8427
+ const { name } = param.requestBody[0].variables;
8428
+ if (name) {
8429
+ const nameParts = name.split(":");
8430
+ const nameType = nameParts[0];
8431
+ return this._ignoredNameTypes.indexOf(nameType) >= 0;
8432
+ }
8433
+ }
8434
+ return false;
8435
+ }
8436
+ ;
8297
8437
  }
8298
8438
  class PendingPromise {
8299
8439
  constructor(resolve, reject) {