@sankhyalabs/sankhyablocks 2.4.0 → 2.4.2-SKA-61927.1

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 (105) hide show
  1. package/dist/cjs/snk-application.cjs.entry.js +45 -28
  2. package/dist/cjs/snk-config-options.cjs.entry.js +1 -1
  3. package/dist/cjs/snk-configurator_3.cjs.entry.js +11 -5
  4. package/dist/cjs/snk-crud.cjs.entry.js +1 -1
  5. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -4
  6. package/dist/cjs/snk-filter-bar_7.cjs.entry.js +21 -0
  7. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +6 -0
  8. package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -0
  9. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +6 -0
  10. package/dist/cjs/snk-filter-number.cjs.entry.js +6 -0
  11. package/dist/cjs/snk-filter-period.cjs.entry.js +6 -0
  12. package/dist/cjs/snk-filter-personalized.cjs.entry.js +3 -0
  13. package/dist/cjs/snk-filter-search.cjs.entry.js +6 -0
  14. package/dist/cjs/snk-filter-text.cjs.entry.js +3 -0
  15. package/dist/cjs/snk-form.cjs.entry.js +2 -2
  16. package/dist/collection/components/snk-application/snk-application.js +81 -64
  17. package/dist/collection/components/snk-configurator/snk-configurator.js +11 -5
  18. package/dist/collection/components/snk-crud/snk-crud.js +5 -5
  19. package/dist/collection/components/snk-data-unit/snk-data-unit.js +14 -19
  20. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +9 -3
  21. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +9 -3
  22. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +9 -3
  23. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +9 -3
  24. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +6 -3
  25. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +9 -3
  26. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +5 -2
  27. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +7 -4
  28. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +15 -6
  29. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +12 -9
  30. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +9 -9
  31. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +4 -1
  32. package/dist/collection/components/snk-form/snk-form.js +9 -9
  33. package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +5 -5
  34. package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.js +6 -6
  35. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +4 -4
  36. package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +7 -7
  37. package/dist/collection/components/snk-grid/snk-grid.js +12 -12
  38. package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +6 -3
  39. package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.js +5 -2
  40. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +11 -10
  41. package/dist/collection/components/snk-taskbar/snk-taskbar.js +8 -8
  42. package/dist/components/snk-application2.js +45 -28
  43. package/dist/components/snk-config-options2.js +1 -1
  44. package/dist/components/snk-configurator2.js +6 -0
  45. package/dist/components/snk-crud.js +1 -1
  46. package/dist/components/snk-data-unit.js +2 -4
  47. package/dist/components/snk-field-config2.js +2 -2
  48. package/dist/components/snk-filter-bar2.js +3 -0
  49. package/dist/components/snk-filter-binary-select.js +6 -0
  50. package/dist/components/snk-filter-detail2.js +3 -0
  51. package/dist/components/snk-filter-item2.js +9 -0
  52. package/dist/components/snk-filter-list2.js +3 -0
  53. package/dist/components/snk-filter-multi-select.js +6 -0
  54. package/dist/components/snk-filter-number.js +6 -0
  55. package/dist/components/snk-filter-period.js +6 -0
  56. package/dist/components/snk-filter-personalized.js +3 -0
  57. package/dist/components/snk-filter-search.js +6 -0
  58. package/dist/components/snk-filter-text.js +3 -0
  59. package/dist/components/snk-form2.js +2 -2
  60. package/dist/components/snk-grid-config2.js +3 -0
  61. package/dist/components/snk-grid2.js +3 -3
  62. package/dist/components/snk-select-box2.js +3 -0
  63. package/dist/esm/snk-application.entry.js +45 -28
  64. package/dist/esm/snk-config-options.entry.js +1 -1
  65. package/dist/esm/snk-configurator_3.entry.js +11 -5
  66. package/dist/esm/snk-crud.entry.js +1 -1
  67. package/dist/esm/snk-data-unit.entry.js +2 -4
  68. package/dist/esm/snk-filter-bar_7.entry.js +21 -0
  69. package/dist/esm/snk-filter-binary-select.entry.js +6 -0
  70. package/dist/esm/snk-filter-detail.entry.js +3 -0
  71. package/dist/esm/snk-filter-multi-select.entry.js +6 -0
  72. package/dist/esm/snk-filter-number.entry.js +6 -0
  73. package/dist/esm/snk-filter-period.entry.js +6 -0
  74. package/dist/esm/snk-filter-personalized.entry.js +3 -0
  75. package/dist/esm/snk-filter-search.entry.js +6 -0
  76. package/dist/esm/snk-filter-text.entry.js +3 -0
  77. package/dist/esm/snk-form.entry.js +2 -2
  78. package/dist/types/components/snk-application/snk-application.d.ts +48 -32
  79. package/dist/types/components/snk-configurator/snk-configurator.d.ts +9 -3
  80. package/dist/types/components/snk-crud/snk-crud.d.ts +4 -4
  81. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +12 -14
  82. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +12 -0
  83. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +12 -0
  84. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +12 -0
  85. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +12 -0
  86. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +9 -0
  87. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +12 -0
  88. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +9 -0
  89. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +12 -0
  90. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +20 -2
  91. package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +27 -0
  92. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +28 -1
  93. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +4 -1
  94. package/dist/types/components/snk-form/snk-form.d.ts +7 -7
  95. package/dist/types/components/snk-form/subcomponents/snk-config-options/snk-config-options.d.ts +4 -4
  96. package/dist/types/components/snk-form/subcomponents/snk-field-config/snk-field-config.d.ts +5 -5
  97. package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +4 -4
  98. package/dist/types/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.d.ts +8 -10
  99. package/dist/types/components/snk-grid/snk-grid.d.ts +9 -9
  100. package/dist/types/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.d.ts +5 -2
  101. package/dist/types/components/snk-grid/subcomponents/snk-select-box/snk-select-box.d.ts +6 -0
  102. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +12 -2
  103. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +8 -8
  104. package/dist/types/components.d.ts +428 -135
  105. package/package.json +1 -1
@@ -705,7 +705,7 @@ const SnkApplication = class {
705
705
  }
706
706
  }
707
707
  /**
708
- * Caso o usuário logado seja o SUP.
708
+ * Obtém `true` caso o usuário logado seja o SUP.
709
709
  */
710
710
  async isUserSup() {
711
711
  return new Promise((resolve, reject) => {
@@ -717,7 +717,7 @@ const SnkApplication = class {
717
717
  });
718
718
  }
719
719
  /**
720
- * Se o usuário logado tem permissão pra determinada ação.
720
+ * Obtém `true` caso o usuário logado tem permissão pra determinada ação.
721
721
  */
722
722
  async hasAccess(access) {
723
723
  return new Promise((resolve, reject) => {
@@ -729,7 +729,7 @@ const SnkApplication = class {
729
729
  });
730
730
  }
731
731
  /**
732
- * Retorna todos os acessos do usuário logado.
732
+ * Obtém todos os acessos do usuário logado.
733
733
  */
734
734
  async getAllAccess() {
735
735
  return new Promise((resolve, reject) => {
@@ -746,37 +746,37 @@ const SnkApplication = class {
746
746
  });
747
747
  }
748
748
  /**
749
- * Retorna o valor de um parâmetro do tipo string.
749
+ * Obtém o valor de um parâmetro do tipo string.
750
750
  */
751
751
  async getStringParam(name) {
752
752
  return this.parameters.asString(name);
753
753
  }
754
754
  /**
755
- * Retorna o valor de um parâmetro do tipo Inteiro.
755
+ * Obtém o valor de um parâmetro do tipo Inteiro.
756
756
  */
757
757
  async getIntParam(name) {
758
758
  return this.parameters.asInteger(name);
759
759
  }
760
760
  /**
761
- * Retorna o valor de um parâmetro do tipo Decimal.
761
+ * Obtém o valor de um parâmetro do tipo Decimal.
762
762
  */
763
763
  async getFloatParam(name) {
764
764
  return this.parameters.asFloat(name);
765
765
  }
766
766
  /**
767
- * Retorna o valor de um parâmetro do tipo booleano.
767
+ * Obtém o valor de um parâmetro do tipo booleano.
768
768
  */
769
769
  async getBooleanParam(name) {
770
770
  return this.parameters.asBoolean(name);
771
771
  }
772
772
  /**
773
- * Retorna o valor de um parâmetro do tipo data.
773
+ * Obtém o valor de um parâmetro do tipo data.
774
774
  */
775
775
  async getDateParam(name) {
776
776
  return this.parameters.asDate(name);
777
777
  }
778
778
  /**
779
- * Mostra o conteúdo passado em um Popup
779
+ * Exibe o conteúdo passado em um Popup.
780
780
  */
781
781
  async showPopUp(content, size = "full", useHeader = true) {
782
782
  this.clearContent(this._popUp);
@@ -788,17 +788,23 @@ const SnkApplication = class {
788
788
  this._popUp.useHeader = false;
789
789
  }
790
790
  }
791
+ /**
792
+ * Exibe o conteúdo passado em um Modal.
793
+ */
791
794
  async showModal(content) {
792
795
  this.clearContent(this._rightModal);
793
796
  this._rightModal.appendChild(content);
794
797
  this._rightModal.opened = true;
795
798
  }
799
+ /**
800
+ * Fecha o Modal e limpa o conteúdo.
801
+ */
796
802
  async closeModal() {
797
803
  this.clearContent(this._rightModal);
798
804
  this._rightModal.opened = false;
799
805
  }
800
806
  /**
801
- * Fecha o popup, liberando o conteúdo.
807
+ * Fecha o Popup e limpa o conteúdo.
802
808
  */
803
809
  async closePopUp() {
804
810
  this.clearContent(this._popUp);
@@ -833,7 +839,7 @@ const SnkApplication = class {
833
839
  });
834
840
  }
835
841
  /**
836
- * Retorna a configuração de um recurso por service broker
842
+ * Obtém a configuração de um recurso por service broker
837
843
  */
838
844
  async getConfig(key) {
839
845
  let payload = {
@@ -874,13 +880,13 @@ const SnkApplication = class {
874
880
  });
875
881
  }
876
882
  /**
877
- * Acessa informações de contexto "empurrados" na abertura da tela
883
+ * Acessa informações de contexto "empurrados" na abertura da tela.
878
884
  */
879
885
  async getAttributeFromHTMLWrapper(attribName) {
880
886
  return Promise.resolve(window[attribName]);
881
887
  }
882
888
  /**
883
- * Abre determinada tela, repassando pkObject
889
+ * Abre determinada tela, repassando pkObject.
884
890
  */
885
891
  async openApp(resourceId, pkObject) {
886
892
  Workspace.openAppActivity(resourceId, pkObject);
@@ -898,7 +904,7 @@ const SnkApplication = class {
898
904
  }
899
905
  /**
900
906
  * Cria o DataUnit a partir do nome da entidade. É possível armazená-lo no cache
901
- * passando o dataUnitName, assim, se mais de uma chamada for feita, o mesmo DataUnit será usado
907
+ * passando o dataUnitName, assim, se mais de uma chamada for feita, o mesmo DataUnit será usado.
902
908
  */
903
909
  async createDataunit(entityName, dataUnitName) {
904
910
  return new Promise((resolve, reject) => {
@@ -939,31 +945,31 @@ const SnkApplication = class {
939
945
  });
940
946
  }
941
947
  /**
942
- * Retorna o resourceID da tela em questão.
948
+ * Obtém o resourceID da tela em questão.
943
949
  */
944
950
  async getResourceID() {
945
951
  return Promise.resolve(this.resourceID);
946
952
  }
947
953
  /**
948
- * Retorna o resourceID da tela em questão.
954
+ * Obtém o UserId da tela em questão.
949
955
  */
950
956
  async getUserID() {
951
957
  return Promise.resolve(window["UID"]);
952
958
  }
953
959
  /**
954
- * Mostra o diálogo de alerta de acordo com os parâmetros passados.
960
+ * Exibe o diálogo de alerta de acordo com os parâmetros passados.
955
961
  */
956
962
  async alert(title, message, icon, options) {
957
963
  return ApplicationUtils.alert(title, message, icon, options);
958
964
  }
959
965
  /**
960
- * Mostra o diálogo de erro de acordo com os parâmetros passados.
966
+ * Exibe o diálogo de erro de acordo com os parâmetros passados.
961
967
  */
962
968
  async error(title, message, icon, options) {
963
969
  return ApplicationUtils.error(title, message, icon, options);
964
970
  }
965
971
  /**
966
- * Mostra o diálogo de sucesso de acordo com os parâmetros passados.
972
+ * Exibe o diálogo de sucesso de acordo com os parâmetros passados.
967
973
  */
968
974
  async success(title, message, icon, options) {
969
975
  return ApplicationUtils.success(title, message, icon, options);
@@ -981,43 +987,43 @@ const SnkApplication = class {
981
987
  return ApplicationUtils.confirm(title, message, icon, dialogType, options);
982
988
  }
983
989
  /**
984
- * Mostra uma informação efêmera (de segundo plano).
990
+ * Exibe uma informação efêmera (de segundo plano).
985
991
  */
986
992
  async info(message, options) {
987
993
  return ApplicationUtils.info(message, options);
988
994
  }
989
995
  /**
990
- * Busca a configuração de formulário.
996
+ * Obtém a configuração de formulário.
991
997
  */
992
998
  async loadFormConfig(name) {
993
999
  return this.formConfigFetcher.loadFormConfig(name, this.resourceID);
994
1000
  }
995
1001
  /**
996
- * Busca a configuração de grade.
1002
+ * Obtém a configuração de grade.
997
1003
  */
998
1004
  async loadGridConfig(name) {
999
1005
  return this.gridConfigFetcher.getConfig(name, this.resourceID);
1000
1006
  }
1001
1007
  /**
1002
- * Busca lista de configurações de formulário do usuário.
1008
+ * Obtém a lista de configurações de formulário do usuário.
1003
1009
  */
1004
1010
  async fetchUserAvailableConfigs(name) {
1005
1011
  return this.formConfigFetcher.fetchUserAvailableConfigs(name, this.resourceID);
1006
1012
  }
1007
1013
  /**
1008
- * Busca a configuração de formulário do usuário.
1014
+ * Obtém a configuração de formulário do usuário.
1009
1015
  */
1010
1016
  async fetchLegacyConfig(name) {
1011
1017
  return this.formConfigFetcher.fetchLegacyConfig(name, this.resourceID);
1012
1018
  }
1013
1019
  /**
1014
- * Busca a configuração padrão de formulário.
1020
+ * Obtém a configuração padrão de formulário.
1015
1021
  */
1016
1022
  async fetchDefaultConfig(name) {
1017
1023
  return this.formConfigFetcher.fetchDefaultConfig(name, this.resourceID);
1018
1024
  }
1019
1025
  /**
1020
- * Busca os totalizadores da grade.
1026
+ * Obtém os totalizadores da grade.
1021
1027
  */
1022
1028
  async loadTotals(name, resourceID, filters) {
1023
1029
  return this.totalsFetcher.fetchTotals(name, resourceID, filters);
@@ -1061,13 +1067,13 @@ const SnkApplication = class {
1061
1067
  return this.formConfigFetcher.saveConfig(config, name, this.resourceID);
1062
1068
  }
1063
1069
  /**
1064
- * Busca um objeto com um conjunto de valores padrão.
1070
+ * Obtém um objeto com um conjunto de valores padrão.
1065
1071
  */
1066
1072
  async getDefaultValues() {
1067
1073
  return this.defaultValuesFetcher.getDefaultValues(this.resourceID);
1068
1074
  }
1069
1075
  /**
1070
- * Retorna um valor padrão específico de uma expressão.
1076
+ * Obtém um valor padrão específico de uma expressão.
1071
1077
  */
1072
1078
  async getDefaultValue(expression) {
1073
1079
  return this._defaultValues && this._defaultValues[expression];
@@ -1129,6 +1135,10 @@ const SnkApplication = class {
1129
1135
  }
1130
1136
  return this._defaultValuesFetcher;
1131
1137
  }
1138
+ /**
1139
+ * Obtém as opções em componentes de pesquisa
1140
+ * Ex.: snk-config-options
1141
+ */
1132
1142
  async executeSearch(searchArgument, fieldName, dataUnit) {
1133
1143
  const descriptor = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getField(fieldName);
1134
1144
  if (!descriptor) ;
@@ -1166,6 +1176,10 @@ const SnkApplication = class {
1166
1176
  return this.executePreparedSearch(mode, argument, { entity: ENTITYNAME, entityDescription: DESCRIPTIONENTITY, criteria, searchOptions });
1167
1177
  }
1168
1178
  }
1179
+ /**
1180
+ * Obtém as opções em componentes de pesquisa
1181
+ * Ex.: snk-config-options
1182
+ */
1169
1183
  async executePreparedSearch(mode, argument, options) {
1170
1184
  const { entity, entityDescription, criteria, searchOptions } = options;
1171
1185
  if (mode === "ADVANCED") {
@@ -1187,6 +1201,9 @@ const SnkApplication = class {
1187
1201
  return this.pesquisaFetcher.loadSearchOptions(entity, argument, criteria, searchOptions);
1188
1202
  }
1189
1203
  }
1204
+ /**
1205
+ * Obtém `true` caso a tela esteja em modo de debug.
1206
+ */
1190
1207
  async isDebugMode() {
1191
1208
  return new Promise(accept => {
1192
1209
  accept(window['isDebugMode']);
@@ -11,7 +11,7 @@ const SnkConfigOptions = class {
11
11
  registerInstance(this, hostRef);
12
12
  this.configOptionsChanged = createEvent(this, "configOptionsChanged", 7);
13
13
  /**
14
- * Armazena as propriedades do campo
14
+ * Armazena as propriedades do campo.
15
15
  */
16
16
  this.fieldConfig = {};
17
17
  }
@@ -21,10 +21,16 @@ const SnkConfigurator = class {
21
21
  */
22
22
  this.viewMode = GRID_MODE.name;
23
23
  }
24
+ /**
25
+ * Exibe a janela de configuração.
26
+ */
24
27
  async open() {
25
28
  this._opened = true;
26
29
  this.configSelected.emit(this.getViewModeValue());
27
30
  }
31
+ /**
32
+ * Fecha a janela de configuração.
33
+ */
28
34
  async close() {
29
35
  this.closeConfig();
30
36
  }
@@ -100,7 +106,7 @@ const SnkFieldConfig = class {
100
106
  */
101
107
  this.isConfigActive = false;
102
108
  /**
103
- * Define se o componente está em modo de inserção
109
+ * Define se o componente está em modo de inserção.
104
110
  */
105
111
  this.modeInsertion = true;
106
112
  }
@@ -117,7 +123,7 @@ const SnkFieldConfig = class {
117
123
  * Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
118
124
  * através de um pequeno modulo na estrutura da aplicação:
119
125
  * - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
120
- * Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-form.msg.ts"
126
+ * Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-form.msg.ts".
121
127
  */
122
128
  getMessage(key) {
123
129
  return this._application.messagesBuilder.getMessage(key, {});
@@ -162,7 +168,7 @@ const SnkGrid = class {
162
168
  this._popUpGridConfig = false;
163
169
  }
164
170
  /**
165
- * Método responsável em abrir o modal de configurações da grade.
171
+ * Exibe a janela de configurações da grade.
166
172
  */
167
173
  async showConfig() {
168
174
  if (this._grid == undefined) {
@@ -171,7 +177,7 @@ const SnkGrid = class {
171
177
  this.openGridConfig();
172
178
  }
173
179
  /**
174
- * Método responsável em fechar o modal de configurações da grade.
180
+ * Fecha a janela de configurações da grade.
175
181
  */
176
182
  async hideConfig() {
177
183
  if (this._grid == undefined) {
@@ -180,7 +186,7 @@ const SnkGrid = class {
180
186
  this.closeGridConfig();
181
187
  }
182
188
  /**
183
- * Método responsável por setar as configurações da grade.
189
+ * Atribui o valor da configuração da grade.
184
190
  */
185
191
  async setConfig(config) {
186
192
  this.setGridConfig(config);
@@ -13,7 +13,7 @@ const SnkCrud = class {
13
13
  this.actionClick = createEvent(this, "actionClick", 7);
14
14
  this._viewMode = GRID_MODE.name;
15
15
  /**
16
- * Determina se pode haver mais de uma linha selecionada na grade
16
+ * Determina se pode haver mais de uma linha selecionada na grade.
17
17
  */
18
18
  this.multipleSelection = true;
19
19
  }
@@ -14,7 +14,7 @@ const SnkDataUnit = class {
14
14
  this.cancelEdition = createEvent(this, "cancelEdition", 7);
15
15
  this._onDataUnitResolve = [];
16
16
  /**
17
- * Determina quantas linhas são retornadas por página
17
+ * Determina quantas linhas são retornadas por página.
18
18
  */
19
19
  this.pageSize = 150;
20
20
  this._dataUnitObserver = (action) => {
@@ -87,9 +87,7 @@ const SnkDataUnit = class {
87
87
  this.dataUnitReady.emit(this.dataUnit);
88
88
  }
89
89
  /**
90
- * Pode-se obter o dataUnit através desse método. Outra forma, é ouvir o evento de
91
- *
92
- * @returns dataUnit
90
+ * Obtém o dataUnit.
93
91
  */
94
92
  async getDataUnit() {
95
93
  return new Promise((resolve) => {
@@ -433,6 +433,9 @@ const SnkFilterBar = class {
433
433
  this.registryFilterProvider();
434
434
  }
435
435
  }
436
+ /**
437
+ * Emitido quando acontece a alteração do estado do filtro.
438
+ */
436
439
  filterChangeListener(evt) {
437
440
  this.updateFilter(evt.detail);
438
441
  }
@@ -502,6 +505,9 @@ const SnkFilterItem = class {
502
505
  observeDetailIsVisible(value) {
503
506
  this.visibleChanged.emit(value);
504
507
  }
508
+ /**
509
+ * Exibe os detalhes de um item da lista.
510
+ */
505
511
  async showUp(open = false) {
506
512
  return new Promise(resolve => {
507
513
  this._filterItemElement.scrollIntoView({ behavior: "auto", block: "nearest", inline: "nearest" });
@@ -526,6 +532,9 @@ const SnkFilterItem = class {
526
532
  const rect = this._filterItemElement.getBoundingClientRect();
527
533
  return `calc(${rect.left}px + ${padding})`;
528
534
  }
535
+ /**
536
+ * Oculta os detalhes de um item da lista.
537
+ */
529
538
  async hideDetail() {
530
539
  if (this.detailIsVisible) {
531
540
  if (this._floatingID != undefined) {
@@ -636,6 +645,9 @@ const SnkFilterItem = class {
636
645
  }
637
646
  }
638
647
  }
648
+ /**
649
+ * Emitido quando o estado do filtro é alterado.
650
+ */
639
651
  filterChangeListener() {
640
652
  this.hideDetail();
641
653
  }
@@ -692,6 +704,9 @@ const SnkFilterList = class {
692
704
  this._filterArgument = "";
693
705
  this._filterInput.setFocus();
694
706
  }
707
+ /**
708
+ * Oculta os detalhes do componente snk-filter-list.
709
+ */
695
710
  async hideDetail() {
696
711
  if (this._floatingID != undefined) {
697
712
  FloatingManager.close(this._floatingID);
@@ -867,6 +882,9 @@ const EzGridConfig = class {
867
882
  this.selectedIndex = 0;
868
883
  }
869
884
  /* Creation Methods */
885
+ /**
886
+ * Salva as configurações da grade.
887
+ */
870
888
  async saveConfig(config) {
871
889
  var _a;
872
890
  if (config == undefined || ((_a = this._application) === null || _a === void 0 ? void 0 : _a.configName) == undefined) {
@@ -1326,6 +1344,9 @@ const SelectBox = class {
1326
1344
  constructor(hostRef) {
1327
1345
  registerInstance(this, hostRef);
1328
1346
  this.ezChange = createEvent(this, "ezChange", 7);
1347
+ /**
1348
+ * Determina a opção selecionada.
1349
+ */
1329
1350
  this.selectedOption = ORDER_VALUES.none;
1330
1351
  }
1331
1352
  render() {
@@ -9,6 +9,9 @@ const SnkFilterBinarySelect = class {
9
9
  isSelected(option) {
10
10
  return this.value == undefined || this.value === option;
11
11
  }
12
+ /**
13
+ * Emitido quando acontece a alteração de valor do componente snk-filter-binary-select
14
+ */
12
15
  ezChangeListener(evt) {
13
16
  if (!evt.detail) {
14
17
  this.assertCheckedOption(evt.target);
@@ -37,6 +40,9 @@ const SnkFilterBinarySelect = class {
37
40
  this.value = undefined;
38
41
  }
39
42
  }
43
+ /**
44
+ * Exibe o componente snk-filter-binary-select
45
+ */
40
46
  async show() {
41
47
  this._checkOne.setFocus();
42
48
  }
@@ -8,6 +8,9 @@ const SnkFilterDetail = class {
8
8
  registerInstance(this, hostRef);
9
9
  this.filterChange = createEvent(this, "filterChange", 7);
10
10
  }
11
+ /**
12
+ * Exibe o componente snk-filter-detail.
13
+ */
11
14
  async show() {
12
15
  this._editor["show"]();
13
16
  }
@@ -6,9 +6,15 @@ const SnkFilterMultiSelect = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
+ /**
10
+ * Emitido quando acontece a alteração de valor do componente snk-filter-multi-select
11
+ */
9
12
  ezChangeListener(evt) {
10
13
  this.value = evt.detail.value;
11
14
  }
15
+ /**
16
+ * Exibe o componente snk-filter-multi-select
17
+ */
12
18
  async show() {
13
19
  this._comboElement.setFocus();
14
20
  }
@@ -6,9 +6,15 @@ const SnkFilterPeriod = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
+ /**
10
+ * Emitido quando acontece a alteração de valor do componente snk-filter-number
11
+ */
9
12
  ezChangeListener(evt) {
10
13
  this.value = evt.detail;
11
14
  }
15
+ /**
16
+ * Exibe o componente snk-filter-number
17
+ */
12
18
  async show() {
13
19
  this._numberElement.setFocus();
14
20
  }
@@ -6,6 +6,9 @@ const SnkFilterPeriod = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
+ /**
10
+ * Emitido quando acontece a alteração de valor do componente snk-filter-period
11
+ */
9
12
  ezChangeListener() {
10
13
  const start = this._startDate.value;
11
14
  const end = this._endDate.value;
@@ -28,6 +31,9 @@ const SnkFilterPeriod = class {
28
31
  }
29
32
  return null;
30
33
  }
34
+ /**
35
+ * Exibe o componente snk-filter-period
36
+ */
31
37
  async show() {
32
38
  this._startDate.setFocus();
33
39
  }
@@ -73,6 +73,9 @@ const SnkFilterPersonalized = class {
73
73
  }
74
74
  });
75
75
  }
76
+ /**
77
+ * Exibe o componente snk-filter-personalized
78
+ */
76
79
  async show() {
77
80
  const elem = document.querySelector("#param_0");
78
81
  if (elem) {
@@ -6,6 +6,9 @@ const SnkFilterSearch = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
+ /**
10
+ * Emitido quando acontece a alteração de valor do componente snk-filter-search
11
+ */
9
12
  ezChangeListener(_evt) {
10
13
  this.value = this._searchInput.value;
11
14
  }
@@ -25,6 +28,9 @@ const SnkFilterSearch = class {
25
28
  });
26
29
  });
27
30
  }
31
+ /**
32
+ * Exibe o componente snk-filter-search
33
+ */
28
34
  async show() {
29
35
  this._searchInput.setFocus();
30
36
  }
@@ -5,6 +5,9 @@ const SnkFilterText = class {
5
5
  constructor(hostRef) {
6
6
  registerInstance(this, hostRef);
7
7
  }
8
+ /**
9
+ * Emitido quando acontece a alteração de valor do componente snk-filter-text.
10
+ */
8
11
  ezChangeListener(evt) {
9
12
  this.value = evt.detail;
10
13
  }
@@ -21,13 +21,13 @@ const SnkForm = class {
21
21
  this._showFormConfig = false;
22
22
  }
23
23
  /**
24
- * Método responsável em abrir o modal de configurações do form.
24
+ * Exibe a janela de configurações do formulário.
25
25
  */
26
26
  async showConfig() {
27
27
  this._showFormConfig = true;
28
28
  }
29
29
  /**
30
- * Método responsável em fechar o modal de configurações do form.
30
+ * Fecha a janela de configurações do formulário.
31
31
  */
32
32
  async hideConfig() {
33
33
  this._showFormConfig = false;