@sankhyalabs/sankhyablocks 9.2.0-dev.12 → 9.2.0-dev.13
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.
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +10 -2
- package/dist/cjs/snk-simple-crud.cjs.entry.js +45 -8
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +83 -21
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +414 -119
- package/dist/components/snk-personalized-filter2.js +10 -2
- package/dist/components/snk-simple-crud2.js +45 -8
- package/dist/esm/snk-personalized-filter.entry.js +10 -2
- package/dist/esm/snk-simple-crud.entry.js +45 -8
- package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +53 -5
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +100 -43
- package/dist/types/components.d.ts +180 -70
- package/package.json +1 -1
@@ -61,7 +61,10 @@ export class SnkSimpleCrud {
|
|
61
61
|
this.outlineMode = false;
|
62
62
|
}
|
63
63
|
/**
|
64
|
-
* Registra um editor customizado para campos da grade e formulário.
|
64
|
+
* @description Registra um editor customizado para campos da grade e do formulário.
|
65
|
+
* @param {string} fieldName - O nome do campo.
|
66
|
+
* @param {ICustomEditor} customEditor - A instância do editor customizado.
|
67
|
+
* @returns {Promise<void>}
|
65
68
|
*/
|
66
69
|
async addCustomEditor(fieldName, customEditor) {
|
67
70
|
if (this._grid && this._form) {
|
@@ -74,7 +77,10 @@ export class SnkSimpleCrud {
|
|
74
77
|
this._customEditors = newCustomEditors;
|
75
78
|
}
|
76
79
|
/**
|
77
|
-
* Registra um
|
80
|
+
* @description Registra um renderizador customizado para colunas da grade.
|
81
|
+
* @param {string} fieldName - O nome do campo.
|
82
|
+
* @param {ICustomRender} customRender - A instância do renderizador customizado.
|
83
|
+
* @returns {Promise<void>}
|
78
84
|
*/
|
79
85
|
async addGridCustomRender(fieldName, customRender) {
|
80
86
|
if (this._grid) {
|
@@ -96,19 +102,28 @@ export class SnkSimpleCrud {
|
|
96
102
|
await this.loadGridConfig(true);
|
97
103
|
}
|
98
104
|
/**
|
99
|
-
* Registra um formatador de valores para uma coluna da
|
105
|
+
* @description Registra um formatador de valores para uma coluna da grade.
|
106
|
+
* @param {string} columnName - O nome da coluna.
|
107
|
+
* @param {ICustomFormatter} customFormatter - A instância do formatador customizado.
|
108
|
+
* @returns {Promise<void>}
|
100
109
|
*/
|
101
110
|
async addCustomValueFormatter(columnName, customFormatter) {
|
102
111
|
this._grid.addCustomValueFormatter(columnName, customFormatter);
|
103
112
|
}
|
104
113
|
/**
|
105
|
-
* Remove o formatador de valores de uma coluna da
|
114
|
+
* @description Remove o formatador de valores de uma coluna da grade.
|
115
|
+
* @param {string} columnName - O nome da coluna.
|
116
|
+
* @returns {Promise<void>}
|
106
117
|
*/
|
107
118
|
async removeCustomValueFormatter(columnName) {
|
108
119
|
this._grid.removeCustomValueFormatter(columnName);
|
109
120
|
}
|
110
121
|
/**
|
111
|
-
* Altera/adiciona uma propriedade nos metadados do campo.
|
122
|
+
* @description Altera/adiciona uma propriedade nos metadados do campo.
|
123
|
+
* @param {string} fieldName - O nome do campo.
|
124
|
+
* @param {string} propName - O nome da propriedade.
|
125
|
+
* @param {any} value - O valor da propriedade.
|
126
|
+
* @returns {Promise<void>}
|
112
127
|
*/
|
113
128
|
async setFieldProp(fieldName, propName, value) {
|
114
129
|
const newCustomFieldProps = new Map(this._fieldsProps);
|
@@ -165,7 +180,9 @@ export class SnkSimpleCrud {
|
|
165
180
|
return newTaskBarConfig;
|
166
181
|
}
|
167
182
|
/**
|
168
|
-
* Usado para alternar a visão entre GRID e FORM externamente.
|
183
|
+
* @description Usado para alternar a visão entre GRID e FORM externamente.
|
184
|
+
* @param {VIEW_MODE} view - A visão para a qual navegar.
|
185
|
+
* @returns {Promise<void>}
|
169
186
|
*/
|
170
187
|
async goToView(view) {
|
171
188
|
this._currentViewMode = view;
|
@@ -439,6 +456,11 @@ export class SnkSimpleCrud {
|
|
439
456
|
this.dataUnit = this._inMemoryLoader.dataUnit;
|
440
457
|
this.dataUnitReady.emit(this.dataUnit);
|
441
458
|
}
|
459
|
+
/**
|
460
|
+
* @description Define os metadados do DataUnit.
|
461
|
+
* @param {UnitMetadata} metadata - Os metadados a serem definidos.
|
462
|
+
* @returns {Promise<void>}
|
463
|
+
*/
|
442
464
|
setMetadata(metadata) {
|
443
465
|
if (this._inMemoryLoader) {
|
444
466
|
this._inMemoryLoader.metadata = metadata;
|
@@ -448,6 +470,11 @@ export class SnkSimpleCrud {
|
|
448
470
|
}
|
449
471
|
return Promise.resolve();
|
450
472
|
}
|
473
|
+
/**
|
474
|
+
* @description Define os registros do DataUnit.
|
475
|
+
* @param {Array<Record>} records - Os registros a serem definidos.
|
476
|
+
* @returns {Promise<void>}
|
477
|
+
*/
|
451
478
|
setRecords(records) {
|
452
479
|
if (this._inMemoryLoader) {
|
453
480
|
this._inMemoryLoader.records = records;
|
@@ -457,23 +484,33 @@ export class SnkSimpleCrud {
|
|
457
484
|
}
|
458
485
|
return Promise.resolve();
|
459
486
|
}
|
487
|
+
/**
|
488
|
+
* @description Obtém os registros do DataUnit.
|
489
|
+
* @returns {Promise<Array<Record>>} Uma promessa que resolve com a lista de registros.
|
490
|
+
*/
|
460
491
|
getRecords() {
|
461
492
|
return Promise.resolve(this.dataUnit.records);
|
462
493
|
}
|
463
494
|
/**
|
464
|
-
* Usado para abrir o
|
495
|
+
* @description Usado para abrir o configurador do CRUD.
|
496
|
+
* @returns {Promise<void>}
|
465
497
|
*/
|
466
498
|
async openConfigurator() {
|
467
499
|
var _a;
|
468
500
|
(_a = this._snkConfigurator) === null || _a === void 0 ? void 0 : _a.open();
|
469
501
|
}
|
470
502
|
/**
|
471
|
-
* Usado para fechar o
|
503
|
+
* @description Usado para fechar o configurador do CRUD.
|
504
|
+
* @returns {Promise<void>}
|
472
505
|
*/
|
473
506
|
async closeConfigurator() {
|
474
507
|
var _a;
|
475
508
|
(_a = this._snkConfigurator) === null || _a === void 0 ? void 0 : _a.close();
|
476
509
|
}
|
510
|
+
/**
|
511
|
+
* @description Atualiza a configuração do formulário.
|
512
|
+
* @returns {Promise<void>}
|
513
|
+
*/
|
477
514
|
async updateConfig() {
|
478
515
|
if (this._formConfigManager == undefined) {
|
479
516
|
this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID());
|
@@ -809,8 +846,11 @@ export class SnkSimpleCrud {
|
|
809
846
|
"required": false,
|
810
847
|
"optional": true,
|
811
848
|
"docs": {
|
812
|
-
"tags": [
|
813
|
-
|
849
|
+
"tags": [{
|
850
|
+
"name": "description",
|
851
|
+
"text": "Define se o componente deve usar o LockManager para controle de carregamento da aplica\u00E7\u00E3o."
|
852
|
+
}],
|
853
|
+
"text": ""
|
814
854
|
},
|
815
855
|
"attribute": "enable-lock-manager-loading-comp",
|
816
856
|
"reflect": false,
|
@@ -827,8 +867,11 @@ export class SnkSimpleCrud {
|
|
827
867
|
"required": false,
|
828
868
|
"optional": true,
|
829
869
|
"docs": {
|
830
|
-
"tags": [
|
831
|
-
|
870
|
+
"tags": [{
|
871
|
+
"name": "description",
|
872
|
+
"text": "Ativa o gerenciamento de locks na grade pela Taskbar."
|
873
|
+
}],
|
874
|
+
"text": ""
|
832
875
|
},
|
833
876
|
"attribute": "enable-lock-manager-taskbar-click",
|
834
877
|
"reflect": false,
|
@@ -850,7 +893,10 @@ export class SnkSimpleCrud {
|
|
850
893
|
"required": false,
|
851
894
|
"optional": false,
|
852
895
|
"docs": {
|
853
|
-
"tags": [
|
896
|
+
"tags": [{
|
897
|
+
"name": "description",
|
898
|
+
"text": "Estado atual dos dados."
|
899
|
+
}],
|
854
900
|
"text": ""
|
855
901
|
}
|
856
902
|
},
|
@@ -870,7 +916,10 @@ export class SnkSimpleCrud {
|
|
870
916
|
"required": false,
|
871
917
|
"optional": false,
|
872
918
|
"docs": {
|
873
|
-
"tags": [
|
919
|
+
"tags": [{
|
920
|
+
"name": "description",
|
921
|
+
"text": "Inst\u00E2ncia do DataUnit a ser utilizada pelo componente."
|
922
|
+
}],
|
874
923
|
"text": ""
|
875
924
|
}
|
876
925
|
},
|
@@ -885,8 +934,11 @@ export class SnkSimpleCrud {
|
|
885
934
|
"required": false,
|
886
935
|
"optional": false,
|
887
936
|
"docs": {
|
888
|
-
"tags": [
|
889
|
-
|
937
|
+
"tags": [{
|
938
|
+
"name": "description",
|
939
|
+
"text": "Define o nome da entidade que o componente vai utilizar para fazer as opera\u00E7\u00F5es de CRUD."
|
940
|
+
}],
|
941
|
+
"text": ""
|
890
942
|
},
|
891
943
|
"attribute": "entity-name",
|
892
944
|
"reflect": false
|
@@ -907,7 +959,10 @@ export class SnkSimpleCrud {
|
|
907
959
|
"required": false,
|
908
960
|
"optional": false,
|
909
961
|
"docs": {
|
910
|
-
"tags": [
|
962
|
+
"tags": [{
|
963
|
+
"name": "description",
|
964
|
+
"text": "Define o modo de opera\u00E7\u00E3o do CRUD (servidor ou em mem\u00F3ria)."
|
965
|
+
}],
|
911
966
|
"text": ""
|
912
967
|
},
|
913
968
|
"attribute": "mode",
|
@@ -930,7 +985,10 @@ export class SnkSimpleCrud {
|
|
930
985
|
"required": false,
|
931
986
|
"optional": false,
|
932
987
|
"docs": {
|
933
|
-
"tags": [
|
988
|
+
"tags": [{
|
989
|
+
"name": "description",
|
990
|
+
"text": "Configura\u00E7\u00E3o da grade."
|
991
|
+
}],
|
934
992
|
"text": ""
|
935
993
|
}
|
936
994
|
},
|
@@ -950,7 +1008,10 @@ export class SnkSimpleCrud {
|
|
950
1008
|
"required": false,
|
951
1009
|
"optional": false,
|
952
1010
|
"docs": {
|
953
|
-
"tags": [
|
1011
|
+
"tags": [{
|
1012
|
+
"name": "description",
|
1013
|
+
"text": "Configura\u00E7\u00E3o do formul\u00E1rio."
|
1014
|
+
}],
|
954
1015
|
"text": ""
|
955
1016
|
}
|
956
1017
|
},
|
@@ -965,7 +1026,10 @@ export class SnkSimpleCrud {
|
|
965
1026
|
"required": false,
|
966
1027
|
"optional": false,
|
967
1028
|
"docs": {
|
968
|
-
"tags": [
|
1029
|
+
"tags": [{
|
1030
|
+
"name": "description",
|
1031
|
+
"text": "Habilita a inser\u00E7\u00E3o cont\u00EDnua de registros."
|
1032
|
+
}],
|
969
1033
|
"text": ""
|
970
1034
|
},
|
971
1035
|
"attribute": "enable-continuous-insert",
|
@@ -983,8 +1047,11 @@ export class SnkSimpleCrud {
|
|
983
1047
|
"required": false,
|
984
1048
|
"optional": false,
|
985
1049
|
"docs": {
|
986
|
-
"tags": [
|
987
|
-
|
1050
|
+
"tags": [{
|
1051
|
+
"name": "description",
|
1052
|
+
"text": "Determina se pode haver mais de uma linha selecionada na grade."
|
1053
|
+
}],
|
1054
|
+
"text": ""
|
988
1055
|
},
|
989
1056
|
"attribute": "multiple-selection",
|
990
1057
|
"reflect": false
|
@@ -1000,7 +1067,10 @@ export class SnkSimpleCrud {
|
|
1000
1067
|
"required": false,
|
1001
1068
|
"optional": false,
|
1002
1069
|
"docs": {
|
1003
|
-
"tags": [
|
1070
|
+
"tags": [{
|
1071
|
+
"name": "description",
|
1072
|
+
"text": "Determina se ser\u00E1 usada mensagem de confirma\u00E7\u00E3o padr\u00E3o na tentativa de cancelar a edi\u00E7\u00E3o."
|
1073
|
+
}],
|
1004
1074
|
"text": ""
|
1005
1075
|
},
|
1006
1076
|
"attribute": "use-cancel-confirm",
|
@@ -1018,8 +1088,11 @@ export class SnkSimpleCrud {
|
|
1018
1088
|
"required": false,
|
1019
1089
|
"optional": false,
|
1020
1090
|
"docs": {
|
1021
|
-
"tags": [
|
1022
|
-
|
1091
|
+
"tags": [{
|
1092
|
+
"name": "description",
|
1093
|
+
"text": "Determina quantas linhas s\u00E3o retornadas por p\u00E1gina."
|
1094
|
+
}],
|
1095
|
+
"text": ""
|
1023
1096
|
},
|
1024
1097
|
"attribute": "page-size",
|
1025
1098
|
"reflect": false,
|
@@ -1036,8 +1109,11 @@ export class SnkSimpleCrud {
|
|
1036
1109
|
"required": false,
|
1037
1110
|
"optional": false,
|
1038
1111
|
"docs": {
|
1039
|
-
"tags": [
|
1040
|
-
|
1112
|
+
"tags": [{
|
1113
|
+
"name": "description",
|
1114
|
+
"text": "Identificador de recursos como configura\u00E7\u00F5es e acesso."
|
1115
|
+
}],
|
1116
|
+
"text": ""
|
1041
1117
|
},
|
1042
1118
|
"attribute": "resource-i-d",
|
1043
1119
|
"reflect": false
|
@@ -1053,8 +1129,11 @@ export class SnkSimpleCrud {
|
|
1053
1129
|
"required": false,
|
1054
1130
|
"optional": true,
|
1055
1131
|
"docs": {
|
1056
|
-
"tags": [
|
1057
|
-
|
1132
|
+
"tags": [{
|
1133
|
+
"name": "description",
|
1134
|
+
"text": "Ativa a inser\u00E7\u00E3o de registros no modo grade."
|
1135
|
+
}],
|
1136
|
+
"text": ""
|
1058
1137
|
},
|
1059
1138
|
"attribute": "enable-grid-insert",
|
1060
1139
|
"reflect": false,
|
@@ -1071,8 +1150,11 @@ export class SnkSimpleCrud {
|
|
1071
1150
|
"required": false,
|
1072
1151
|
"optional": true,
|
1073
1152
|
"docs": {
|
1074
|
-
"tags": [
|
1075
|
-
|
1153
|
+
"tags": [{
|
1154
|
+
"name": "description",
|
1155
|
+
"text": "Define o modo de exibi\u00E7\u00E3o do contador de pagina\u00E7\u00E3o."
|
1156
|
+
}],
|
1157
|
+
"text": ""
|
1076
1158
|
},
|
1077
1159
|
"attribute": "pagination-counter-mode",
|
1078
1160
|
"reflect": false,
|
@@ -1094,8 +1176,11 @@ export class SnkSimpleCrud {
|
|
1094
1176
|
"required": false,
|
1095
1177
|
"optional": false,
|
1096
1178
|
"docs": {
|
1097
|
-
"tags": [
|
1098
|
-
|
1179
|
+
"tags": [{
|
1180
|
+
"name": "description",
|
1181
|
+
"text": "Gerenciador das barras de tarefas. \u00C9 poss\u00EDvel determinar bot\u00F5es espec\u00EDficos ou mesmo gerenciar o estado dos bot\u00F5es."
|
1182
|
+
}],
|
1183
|
+
"text": ""
|
1099
1184
|
}
|
1100
1185
|
},
|
1101
1186
|
"messagesBuilder": {
|
@@ -1114,8 +1199,11 @@ export class SnkSimpleCrud {
|
|
1114
1199
|
"required": false,
|
1115
1200
|
"optional": false,
|
1116
1201
|
"docs": {
|
1117
|
-
"tags": [
|
1118
|
-
|
1202
|
+
"tags": [{
|
1203
|
+
"name": "description",
|
1204
|
+
"text": "Respons\u00E1vel por flexibilizar e padronizar o uso de mensagens nos blocos de constru\u00E7\u00E3o."
|
1205
|
+
}],
|
1206
|
+
"text": ""
|
1119
1207
|
}
|
1120
1208
|
},
|
1121
1209
|
"useEnterLikeTab": {
|
@@ -1129,8 +1217,11 @@ export class SnkSimpleCrud {
|
|
1129
1217
|
"required": false,
|
1130
1218
|
"optional": false,
|
1131
1219
|
"docs": {
|
1132
|
-
"tags": [
|
1133
|
-
|
1220
|
+
"tags": [{
|
1221
|
+
"name": "description",
|
1222
|
+
"text": "Quando verdadeiro, o ENTER far\u00E1 a navega\u00E7\u00E3o como se fosse a tecla TAB na grade."
|
1223
|
+
}],
|
1224
|
+
"text": ""
|
1134
1225
|
},
|
1135
1226
|
"attribute": "use-enter-like-tab",
|
1136
1227
|
"reflect": false,
|
@@ -1155,8 +1246,11 @@ export class SnkSimpleCrud {
|
|
1155
1246
|
"required": false,
|
1156
1247
|
"optional": false,
|
1157
1248
|
"docs": {
|
1158
|
-
"tags": [
|
1159
|
-
|
1249
|
+
"tags": [{
|
1250
|
+
"name": "description",
|
1251
|
+
"text": "A\u00E7\u00F5es a serem colocadas no bot\u00E3o \"Mais op\u00E7\u00F5es\" do componente snk-taskbar."
|
1252
|
+
}],
|
1253
|
+
"text": ""
|
1160
1254
|
}
|
1161
1255
|
},
|
1162
1256
|
"configName": {
|
@@ -1170,8 +1264,11 @@ export class SnkSimpleCrud {
|
|
1170
1264
|
"required": false,
|
1171
1265
|
"optional": false,
|
1172
1266
|
"docs": {
|
1173
|
-
"tags": [
|
1174
|
-
|
1267
|
+
"tags": [{
|
1268
|
+
"name": "description",
|
1269
|
+
"text": "Usado para salvar as configura\u00E7\u00F5es dos blocos de constru\u00E7\u00E3o."
|
1270
|
+
}],
|
1271
|
+
"text": ""
|
1175
1272
|
},
|
1176
1273
|
"attribute": "config-name",
|
1177
1274
|
"reflect": false
|
@@ -1187,8 +1284,11 @@ export class SnkSimpleCrud {
|
|
1187
1284
|
"required": false,
|
1188
1285
|
"optional": false,
|
1189
1286
|
"docs": {
|
1190
|
-
"tags": [
|
1191
|
-
|
1287
|
+
"tags": [{
|
1288
|
+
"name": "description",
|
1289
|
+
"text": "Usado para exibir os bot\u00F5es de a\u00E7\u00E3o do snk-configurator."
|
1290
|
+
}],
|
1291
|
+
"text": ""
|
1192
1292
|
},
|
1193
1293
|
"attribute": "show-configurator-buttons",
|
1194
1294
|
"reflect": false,
|
@@ -1205,8 +1305,11 @@ export class SnkSimpleCrud {
|
|
1205
1305
|
"required": false,
|
1206
1306
|
"optional": false,
|
1207
1307
|
"docs": {
|
1208
|
-
"tags": [
|
1209
|
-
|
1308
|
+
"tags": [{
|
1309
|
+
"name": "description",
|
1310
|
+
"text": "Chave da configura\u00E7\u00E3o legada da grade."
|
1311
|
+
}],
|
1312
|
+
"text": ""
|
1210
1313
|
},
|
1211
1314
|
"attribute": "grid-legacy-config-name",
|
1212
1315
|
"reflect": false
|
@@ -1222,8 +1325,11 @@ export class SnkSimpleCrud {
|
|
1222
1325
|
"required": false,
|
1223
1326
|
"optional": false,
|
1224
1327
|
"docs": {
|
1225
|
-
"tags": [
|
1226
|
-
|
1328
|
+
"tags": [{
|
1329
|
+
"name": "description",
|
1330
|
+
"text": "Chave da configura\u00E7\u00E3o legada do formul\u00E1rio."
|
1331
|
+
}],
|
1332
|
+
"text": ""
|
1227
1333
|
},
|
1228
1334
|
"attribute": "form-legacy-config-name",
|
1229
1335
|
"reflect": false
|
@@ -1239,8 +1345,11 @@ export class SnkSimpleCrud {
|
|
1239
1345
|
"required": false,
|
1240
1346
|
"optional": false,
|
1241
1347
|
"docs": {
|
1242
|
-
"tags": [
|
1243
|
-
|
1348
|
+
"tags": [{
|
1349
|
+
"name": "description",
|
1350
|
+
"text": "Ignora os campos \"somente leitura\" no modo de inser\u00E7\u00E3o."
|
1351
|
+
}],
|
1352
|
+
"text": ""
|
1244
1353
|
},
|
1245
1354
|
"attribute": "ignore-read-only-form-fields",
|
1246
1355
|
"reflect": false,
|
@@ -1257,8 +1366,11 @@ export class SnkSimpleCrud {
|
|
1257
1366
|
"required": false,
|
1258
1367
|
"optional": true,
|
1259
1368
|
"docs": {
|
1260
|
-
"tags": [
|
1261
|
-
|
1369
|
+
"tags": [{
|
1370
|
+
"name": "description",
|
1371
|
+
"text": "Define se a grade ser\u00E1 focada ao ser carregada."
|
1372
|
+
}],
|
1373
|
+
"text": ""
|
1262
1374
|
},
|
1263
1375
|
"attribute": "auto-focus",
|
1264
1376
|
"reflect": false,
|
@@ -1275,8 +1387,11 @@ export class SnkSimpleCrud {
|
|
1275
1387
|
"required": false,
|
1276
1388
|
"optional": false,
|
1277
1389
|
"docs": {
|
1278
|
-
"tags": [
|
1279
|
-
|
1390
|
+
"tags": [{
|
1391
|
+
"name": "description",
|
1392
|
+
"text": "Define a chave customizada para sobrescrever as mensagens (n\u00E3o pegando pela entidade)."
|
1393
|
+
}],
|
1394
|
+
"text": ""
|
1280
1395
|
},
|
1281
1396
|
"attribute": "domain-messages-builder",
|
1282
1397
|
"reflect": false
|
@@ -1292,8 +1407,11 @@ export class SnkSimpleCrud {
|
|
1292
1407
|
"required": false,
|
1293
1408
|
"optional": false,
|
1294
1409
|
"docs": {
|
1295
|
-
"tags": [
|
1296
|
-
|
1410
|
+
"tags": [{
|
1411
|
+
"name": "description",
|
1412
|
+
"text": "Habilita a edi\u00E7\u00E3o de m\u00FAltiplos registros simult\u00E2neos."
|
1413
|
+
}],
|
1414
|
+
"text": ""
|
1297
1415
|
},
|
1298
1416
|
"attribute": "multiple-edition-enabled",
|
1299
1417
|
"reflect": false,
|
@@ -1310,8 +1428,11 @@ export class SnkSimpleCrud {
|
|
1310
1428
|
"required": false,
|
1311
1429
|
"optional": false,
|
1312
1430
|
"docs": {
|
1313
|
-
"tags": [
|
1314
|
-
|
1431
|
+
"tags": [{
|
1432
|
+
"name": "description",
|
1433
|
+
"text": "Define se o LayoutFormConfig ser\u00E1 exibido no configurador."
|
1434
|
+
}],
|
1435
|
+
"text": ""
|
1315
1436
|
},
|
1316
1437
|
"attribute": "layout-form-config",
|
1317
1438
|
"reflect": false,
|
@@ -1328,8 +1449,11 @@ export class SnkSimpleCrud {
|
|
1328
1449
|
"required": false,
|
1329
1450
|
"optional": true,
|
1330
1451
|
"docs": {
|
1331
|
-
"tags": [
|
1332
|
-
|
1452
|
+
"tags": [{
|
1453
|
+
"name": "description",
|
1454
|
+
"text": "Define se a carga dos dados ser\u00E1 feita assim que o componente for carregado."
|
1455
|
+
}],
|
1456
|
+
"text": ""
|
1333
1457
|
},
|
1334
1458
|
"attribute": "auto-load",
|
1335
1459
|
"reflect": false
|
@@ -1345,8 +1469,11 @@ export class SnkSimpleCrud {
|
|
1345
1469
|
"required": false,
|
1346
1470
|
"optional": true,
|
1347
1471
|
"docs": {
|
1348
|
-
"tags": [
|
1349
|
-
|
1472
|
+
"tags": [{
|
1473
|
+
"name": "description",
|
1474
|
+
"text": "Altera visualmente as sombras e bordas do componente.\nQuando `false`, aplica o padr\u00E3o de sombras ao componente (utilizar quando for o elemento principal do layout).\nQuando `true`, aplica o padr\u00E3o de contorno ao componente (utilizar quando estiver contido em outro elemento como um painel ou pop-up)."
|
1475
|
+
}],
|
1476
|
+
"text": ""
|
1350
1477
|
},
|
1351
1478
|
"attribute": "outline-mode",
|
1352
1479
|
"reflect": false,
|
@@ -1374,8 +1501,11 @@ export class SnkSimpleCrud {
|
|
1374
1501
|
"cancelable": true,
|
1375
1502
|
"composed": true,
|
1376
1503
|
"docs": {
|
1377
|
-
"tags": [
|
1378
|
-
|
1504
|
+
"tags": [{
|
1505
|
+
"name": "description",
|
1506
|
+
"text": "Emitido quando h\u00E1 qualquer mudan\u00E7a de estado no DataUnit."
|
1507
|
+
}],
|
1508
|
+
"text": ""
|
1379
1509
|
},
|
1380
1510
|
"complexType": {
|
1381
1511
|
"original": "DataState",
|
@@ -1394,8 +1524,11 @@ export class SnkSimpleCrud {
|
|
1394
1524
|
"cancelable": true,
|
1395
1525
|
"composed": true,
|
1396
1526
|
"docs": {
|
1397
|
-
"tags": [
|
1398
|
-
|
1527
|
+
"tags": [{
|
1528
|
+
"name": "description",
|
1529
|
+
"text": "Emitido quando o DataUnit est\u00E1 pronto."
|
1530
|
+
}],
|
1531
|
+
"text": ""
|
1399
1532
|
},
|
1400
1533
|
"complexType": {
|
1401
1534
|
"original": "DataUnit",
|
@@ -1414,8 +1547,11 @@ export class SnkSimpleCrud {
|
|
1414
1547
|
"cancelable": true,
|
1415
1548
|
"composed": true,
|
1416
1549
|
"docs": {
|
1417
|
-
"tags": [
|
1418
|
-
|
1550
|
+
"tags": [{
|
1551
|
+
"name": "description",
|
1552
|
+
"text": "Emitido sempre que houver clique de bot\u00E3o ou a\u00E7\u00E3o na barra de tarefas."
|
1553
|
+
}],
|
1554
|
+
"text": ""
|
1419
1555
|
},
|
1420
1556
|
"complexType": {
|
1421
1557
|
"original": "string",
|
@@ -1429,8 +1565,11 @@ export class SnkSimpleCrud {
|
|
1429
1565
|
"cancelable": true,
|
1430
1566
|
"composed": true,
|
1431
1567
|
"docs": {
|
1432
|
-
"tags": [
|
1433
|
-
|
1568
|
+
"tags": [{
|
1569
|
+
"name": "description",
|
1570
|
+
"text": "Respons\u00E1vel por notificar quando ocorrer a renderiza\u00E7\u00E3o de itens do formul\u00E1rio."
|
1571
|
+
}],
|
1572
|
+
"text": ""
|
1434
1573
|
},
|
1435
1574
|
"complexType": {
|
1436
1575
|
"original": "Array<HTMLElement>",
|
@@ -1451,8 +1590,11 @@ export class SnkSimpleCrud {
|
|
1451
1590
|
"cancelable": true,
|
1452
1591
|
"composed": true,
|
1453
1592
|
"docs": {
|
1454
|
-
"tags": [
|
1455
|
-
|
1593
|
+
"tags": [{
|
1594
|
+
"name": "description",
|
1595
|
+
"text": "Emitido quando a configura\u00E7\u00E3o no configurador do CRUD \u00E9 salva."
|
1596
|
+
}],
|
1597
|
+
"text": ""
|
1456
1598
|
},
|
1457
1599
|
"complexType": {
|
1458
1600
|
"original": "any",
|
@@ -1466,8 +1608,11 @@ export class SnkSimpleCrud {
|
|
1466
1608
|
"cancelable": true,
|
1467
1609
|
"composed": true,
|
1468
1610
|
"docs": {
|
1469
|
-
"tags": [
|
1470
|
-
|
1611
|
+
"tags": [{
|
1612
|
+
"name": "description",
|
1613
|
+
"text": "Emitido quando o salvamento da configura\u00E7\u00E3o no configurador do CRUD \u00E9 cancelado."
|
1614
|
+
}],
|
1615
|
+
"text": ""
|
1471
1616
|
},
|
1472
1617
|
"complexType": {
|
1473
1618
|
"original": "any",
|
@@ -1482,11 +1627,17 @@ export class SnkSimpleCrud {
|
|
1482
1627
|
"complexType": {
|
1483
1628
|
"signature": "(fieldName: string, customEditor: ICustomEditor) => Promise<void>",
|
1484
1629
|
"parameters": [{
|
1485
|
-
"tags": [
|
1486
|
-
|
1630
|
+
"tags": [{
|
1631
|
+
"name": "param",
|
1632
|
+
"text": "fieldName - O nome do campo."
|
1633
|
+
}],
|
1634
|
+
"text": "- O nome do campo."
|
1487
1635
|
}, {
|
1488
|
-
"tags": [
|
1489
|
-
|
1636
|
+
"tags": [{
|
1637
|
+
"name": "param",
|
1638
|
+
"text": "customEditor - A inst\u00E2ncia do editor customizado."
|
1639
|
+
}],
|
1640
|
+
"text": "- A inst\u00E2ncia do editor customizado."
|
1490
1641
|
}],
|
1491
1642
|
"references": {
|
1492
1643
|
"Promise": {
|
@@ -1500,19 +1651,37 @@ export class SnkSimpleCrud {
|
|
1500
1651
|
"return": "Promise<void>"
|
1501
1652
|
},
|
1502
1653
|
"docs": {
|
1503
|
-
"text": "
|
1504
|
-
"tags": [
|
1654
|
+
"text": "",
|
1655
|
+
"tags": [{
|
1656
|
+
"name": "description",
|
1657
|
+
"text": "Registra um editor customizado para campos da grade e do formul\u00E1rio."
|
1658
|
+
}, {
|
1659
|
+
"name": "param",
|
1660
|
+
"text": "fieldName - O nome do campo."
|
1661
|
+
}, {
|
1662
|
+
"name": "param",
|
1663
|
+
"text": "customEditor - A inst\u00E2ncia do editor customizado."
|
1664
|
+
}, {
|
1665
|
+
"name": "returns",
|
1666
|
+
"text": undefined
|
1667
|
+
}]
|
1505
1668
|
}
|
1506
1669
|
},
|
1507
1670
|
"addGridCustomRender": {
|
1508
1671
|
"complexType": {
|
1509
1672
|
"signature": "(fieldName: string, customRender: ICustomRender) => Promise<void>",
|
1510
1673
|
"parameters": [{
|
1511
|
-
"tags": [
|
1512
|
-
|
1674
|
+
"tags": [{
|
1675
|
+
"name": "param",
|
1676
|
+
"text": "fieldName - O nome do campo."
|
1677
|
+
}],
|
1678
|
+
"text": "- O nome do campo."
|
1513
1679
|
}, {
|
1514
|
-
"tags": [
|
1515
|
-
|
1680
|
+
"tags": [{
|
1681
|
+
"name": "param",
|
1682
|
+
"text": "customRender - A inst\u00E2ncia do renderizador customizado."
|
1683
|
+
}],
|
1684
|
+
"text": "- A inst\u00E2ncia do renderizador customizado."
|
1516
1685
|
}],
|
1517
1686
|
"references": {
|
1518
1687
|
"Promise": {
|
@@ -1526,19 +1695,37 @@ export class SnkSimpleCrud {
|
|
1526
1695
|
"return": "Promise<void>"
|
1527
1696
|
},
|
1528
1697
|
"docs": {
|
1529
|
-
"text": "
|
1530
|
-
"tags": [
|
1698
|
+
"text": "",
|
1699
|
+
"tags": [{
|
1700
|
+
"name": "description",
|
1701
|
+
"text": "Registra um renderizador customizado para colunas da grade."
|
1702
|
+
}, {
|
1703
|
+
"name": "param",
|
1704
|
+
"text": "fieldName - O nome do campo."
|
1705
|
+
}, {
|
1706
|
+
"name": "param",
|
1707
|
+
"text": "customRender - A inst\u00E2ncia do renderizador customizado."
|
1708
|
+
}, {
|
1709
|
+
"name": "returns",
|
1710
|
+
"text": undefined
|
1711
|
+
}]
|
1531
1712
|
}
|
1532
1713
|
},
|
1533
1714
|
"addCustomValueFormatter": {
|
1534
1715
|
"complexType": {
|
1535
1716
|
"signature": "(columnName: string, customFormatter: ICustomFormatter) => Promise<void>",
|
1536
1717
|
"parameters": [{
|
1537
|
-
"tags": [
|
1538
|
-
|
1718
|
+
"tags": [{
|
1719
|
+
"name": "param",
|
1720
|
+
"text": "columnName - O nome da coluna."
|
1721
|
+
}],
|
1722
|
+
"text": "- O nome da coluna."
|
1539
1723
|
}, {
|
1540
|
-
"tags": [
|
1541
|
-
|
1724
|
+
"tags": [{
|
1725
|
+
"name": "param",
|
1726
|
+
"text": "customFormatter - A inst\u00E2ncia do formatador customizado."
|
1727
|
+
}],
|
1728
|
+
"text": "- A inst\u00E2ncia do formatador customizado."
|
1542
1729
|
}],
|
1543
1730
|
"references": {
|
1544
1731
|
"Promise": {
|
@@ -1552,16 +1739,31 @@ export class SnkSimpleCrud {
|
|
1552
1739
|
"return": "Promise<void>"
|
1553
1740
|
},
|
1554
1741
|
"docs": {
|
1555
|
-
"text": "
|
1556
|
-
"tags": [
|
1742
|
+
"text": "",
|
1743
|
+
"tags": [{
|
1744
|
+
"name": "description",
|
1745
|
+
"text": "Registra um formatador de valores para uma coluna da grade."
|
1746
|
+
}, {
|
1747
|
+
"name": "param",
|
1748
|
+
"text": "columnName - O nome da coluna."
|
1749
|
+
}, {
|
1750
|
+
"name": "param",
|
1751
|
+
"text": "customFormatter - A inst\u00E2ncia do formatador customizado."
|
1752
|
+
}, {
|
1753
|
+
"name": "returns",
|
1754
|
+
"text": undefined
|
1755
|
+
}]
|
1557
1756
|
}
|
1558
1757
|
},
|
1559
1758
|
"removeCustomValueFormatter": {
|
1560
1759
|
"complexType": {
|
1561
1760
|
"signature": "(columnName: string) => Promise<void>",
|
1562
1761
|
"parameters": [{
|
1563
|
-
"tags": [
|
1564
|
-
|
1762
|
+
"tags": [{
|
1763
|
+
"name": "param",
|
1764
|
+
"text": "columnName - O nome da coluna."
|
1765
|
+
}],
|
1766
|
+
"text": "- O nome da coluna."
|
1565
1767
|
}],
|
1566
1768
|
"references": {
|
1567
1769
|
"Promise": {
|
@@ -1571,22 +1773,40 @@ export class SnkSimpleCrud {
|
|
1571
1773
|
"return": "Promise<void>"
|
1572
1774
|
},
|
1573
1775
|
"docs": {
|
1574
|
-
"text": "
|
1575
|
-
"tags": [
|
1776
|
+
"text": "",
|
1777
|
+
"tags": [{
|
1778
|
+
"name": "description",
|
1779
|
+
"text": "Remove o formatador de valores de uma coluna da grade."
|
1780
|
+
}, {
|
1781
|
+
"name": "param",
|
1782
|
+
"text": "columnName - O nome da coluna."
|
1783
|
+
}, {
|
1784
|
+
"name": "returns",
|
1785
|
+
"text": undefined
|
1786
|
+
}]
|
1576
1787
|
}
|
1577
1788
|
},
|
1578
1789
|
"setFieldProp": {
|
1579
1790
|
"complexType": {
|
1580
1791
|
"signature": "(fieldName: string, propName: string, value: any) => Promise<void>",
|
1581
1792
|
"parameters": [{
|
1582
|
-
"tags": [
|
1583
|
-
|
1793
|
+
"tags": [{
|
1794
|
+
"name": "param",
|
1795
|
+
"text": "fieldName - O nome do campo."
|
1796
|
+
}],
|
1797
|
+
"text": "- O nome do campo."
|
1584
1798
|
}, {
|
1585
|
-
"tags": [
|
1586
|
-
|
1799
|
+
"tags": [{
|
1800
|
+
"name": "param",
|
1801
|
+
"text": "propName - O nome da propriedade."
|
1802
|
+
}],
|
1803
|
+
"text": "- O nome da propriedade."
|
1587
1804
|
}, {
|
1588
|
-
"tags": [
|
1589
|
-
|
1805
|
+
"tags": [{
|
1806
|
+
"name": "param",
|
1807
|
+
"text": "value - O valor da propriedade."
|
1808
|
+
}],
|
1809
|
+
"text": "- O valor da propriedade."
|
1590
1810
|
}],
|
1591
1811
|
"references": {
|
1592
1812
|
"Promise": {
|
@@ -1596,16 +1816,34 @@ export class SnkSimpleCrud {
|
|
1596
1816
|
"return": "Promise<void>"
|
1597
1817
|
},
|
1598
1818
|
"docs": {
|
1599
|
-
"text": "
|
1600
|
-
"tags": [
|
1819
|
+
"text": "",
|
1820
|
+
"tags": [{
|
1821
|
+
"name": "description",
|
1822
|
+
"text": "Altera/adiciona uma propriedade nos metadados do campo."
|
1823
|
+
}, {
|
1824
|
+
"name": "param",
|
1825
|
+
"text": "fieldName - O nome do campo."
|
1826
|
+
}, {
|
1827
|
+
"name": "param",
|
1828
|
+
"text": "propName - O nome da propriedade."
|
1829
|
+
}, {
|
1830
|
+
"name": "param",
|
1831
|
+
"text": "value - O valor da propriedade."
|
1832
|
+
}, {
|
1833
|
+
"name": "returns",
|
1834
|
+
"text": undefined
|
1835
|
+
}]
|
1601
1836
|
}
|
1602
1837
|
},
|
1603
1838
|
"goToView": {
|
1604
1839
|
"complexType": {
|
1605
1840
|
"signature": "(view: VIEW_MODE) => Promise<void>",
|
1606
1841
|
"parameters": [{
|
1607
|
-
"tags": [
|
1608
|
-
|
1842
|
+
"tags": [{
|
1843
|
+
"name": "param",
|
1844
|
+
"text": "view - A vis\u00E3o para a qual navegar."
|
1845
|
+
}],
|
1846
|
+
"text": "- A vis\u00E3o para a qual navegar."
|
1609
1847
|
}],
|
1610
1848
|
"references": {
|
1611
1849
|
"Promise": {
|
@@ -1619,16 +1857,28 @@ export class SnkSimpleCrud {
|
|
1619
1857
|
"return": "Promise<void>"
|
1620
1858
|
},
|
1621
1859
|
"docs": {
|
1622
|
-
"text": "
|
1623
|
-
"tags": [
|
1860
|
+
"text": "",
|
1861
|
+
"tags": [{
|
1862
|
+
"name": "description",
|
1863
|
+
"text": "Usado para alternar a vis\u00E3o entre GRID e FORM externamente."
|
1864
|
+
}, {
|
1865
|
+
"name": "param",
|
1866
|
+
"text": "view - A vis\u00E3o para a qual navegar."
|
1867
|
+
}, {
|
1868
|
+
"name": "returns",
|
1869
|
+
"text": undefined
|
1870
|
+
}]
|
1624
1871
|
}
|
1625
1872
|
},
|
1626
1873
|
"setMetadata": {
|
1627
1874
|
"complexType": {
|
1628
1875
|
"signature": "(metadata: UnitMetadata) => Promise<void>",
|
1629
1876
|
"parameters": [{
|
1630
|
-
"tags": [
|
1631
|
-
|
1877
|
+
"tags": [{
|
1878
|
+
"name": "param",
|
1879
|
+
"text": "metadata - Os metadados a serem definidos."
|
1880
|
+
}],
|
1881
|
+
"text": "- Os metadados a serem definidos."
|
1632
1882
|
}],
|
1633
1883
|
"references": {
|
1634
1884
|
"Promise": {
|
@@ -1643,15 +1893,27 @@ export class SnkSimpleCrud {
|
|
1643
1893
|
},
|
1644
1894
|
"docs": {
|
1645
1895
|
"text": "",
|
1646
|
-
"tags": [
|
1896
|
+
"tags": [{
|
1897
|
+
"name": "description",
|
1898
|
+
"text": "Define os metadados do DataUnit."
|
1899
|
+
}, {
|
1900
|
+
"name": "param",
|
1901
|
+
"text": "metadata - Os metadados a serem definidos."
|
1902
|
+
}, {
|
1903
|
+
"name": "returns",
|
1904
|
+
"text": undefined
|
1905
|
+
}]
|
1647
1906
|
}
|
1648
1907
|
},
|
1649
1908
|
"setRecords": {
|
1650
1909
|
"complexType": {
|
1651
1910
|
"signature": "(records: Array<Record>) => Promise<void>",
|
1652
1911
|
"parameters": [{
|
1653
|
-
"tags": [
|
1654
|
-
|
1912
|
+
"tags": [{
|
1913
|
+
"name": "param",
|
1914
|
+
"text": "records - Os registros a serem definidos."
|
1915
|
+
}],
|
1916
|
+
"text": "- Os registros a serem definidos."
|
1655
1917
|
}],
|
1656
1918
|
"references": {
|
1657
1919
|
"Promise": {
|
@@ -1669,7 +1931,16 @@ export class SnkSimpleCrud {
|
|
1669
1931
|
},
|
1670
1932
|
"docs": {
|
1671
1933
|
"text": "",
|
1672
|
-
"tags": [
|
1934
|
+
"tags": [{
|
1935
|
+
"name": "description",
|
1936
|
+
"text": "Define os registros do DataUnit."
|
1937
|
+
}, {
|
1938
|
+
"name": "param",
|
1939
|
+
"text": "records - Os registros a serem definidos."
|
1940
|
+
}, {
|
1941
|
+
"name": "returns",
|
1942
|
+
"text": undefined
|
1943
|
+
}]
|
1673
1944
|
}
|
1674
1945
|
},
|
1675
1946
|
"getRecords": {
|
@@ -1692,7 +1963,13 @@ export class SnkSimpleCrud {
|
|
1692
1963
|
},
|
1693
1964
|
"docs": {
|
1694
1965
|
"text": "",
|
1695
|
-
"tags": [
|
1966
|
+
"tags": [{
|
1967
|
+
"name": "description",
|
1968
|
+
"text": "Obt\u00E9m os registros do DataUnit."
|
1969
|
+
}, {
|
1970
|
+
"name": "returns",
|
1971
|
+
"text": "Uma promessa que resolve com a lista de registros."
|
1972
|
+
}]
|
1696
1973
|
}
|
1697
1974
|
},
|
1698
1975
|
"openConfigurator": {
|
@@ -1707,8 +1984,14 @@ export class SnkSimpleCrud {
|
|
1707
1984
|
"return": "Promise<void>"
|
1708
1985
|
},
|
1709
1986
|
"docs": {
|
1710
|
-
"text": "
|
1711
|
-
"tags": [
|
1987
|
+
"text": "",
|
1988
|
+
"tags": [{
|
1989
|
+
"name": "description",
|
1990
|
+
"text": "Usado para abrir o configurador do CRUD."
|
1991
|
+
}, {
|
1992
|
+
"name": "returns",
|
1993
|
+
"text": undefined
|
1994
|
+
}]
|
1712
1995
|
}
|
1713
1996
|
},
|
1714
1997
|
"closeConfigurator": {
|
@@ -1723,8 +2006,14 @@ export class SnkSimpleCrud {
|
|
1723
2006
|
"return": "Promise<void>"
|
1724
2007
|
},
|
1725
2008
|
"docs": {
|
1726
|
-
"text": "
|
1727
|
-
"tags": [
|
2009
|
+
"text": "",
|
2010
|
+
"tags": [{
|
2011
|
+
"name": "description",
|
2012
|
+
"text": "Usado para fechar o configurador do CRUD."
|
2013
|
+
}, {
|
2014
|
+
"name": "returns",
|
2015
|
+
"text": undefined
|
2016
|
+
}]
|
1728
2017
|
}
|
1729
2018
|
},
|
1730
2019
|
"updateConfig": {
|
@@ -1740,7 +2029,13 @@ export class SnkSimpleCrud {
|
|
1740
2029
|
},
|
1741
2030
|
"docs": {
|
1742
2031
|
"text": "",
|
1743
|
-
"tags": [
|
2032
|
+
"tags": [{
|
2033
|
+
"name": "description",
|
2034
|
+
"text": "Atualiza a configura\u00E7\u00E3o do formul\u00E1rio."
|
2035
|
+
}, {
|
2036
|
+
"name": "returns",
|
2037
|
+
"text": undefined
|
2038
|
+
}]
|
1744
2039
|
}
|
1745
2040
|
}
|
1746
2041
|
};
|