@sankhyalabs/sankhyablocks 8.16.0-dev.91 → 8.16.0-dev.96
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{ClientSideExporterProvider-2f5f350c.js → ClientSideExporterProvider-9bd6fa5a.js} +55 -20
- package/dist/cjs/{ConfigStorage-d024aec8.js → ConfigStorage-6b633b10.js} +2 -2
- package/dist/cjs/{DataFetcher-65879b2c.js → DataFetcher-875371e9.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-c11d8468.js → SnkFormConfigManager-d680be08.js} +2 -2
- package/dist/cjs/{auth-fetcher-8480751c.js → auth-fetcher-24ba4135.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-449d51a3.js → dataunit-fetcher-b95768e8.js} +1 -1
- package/dist/cjs/{form-config-fetcher-90126e4c.js → form-config-fetcher-e0a512c3.js} +1 -1
- package/dist/cjs/{pesquisa-fetcher-5c583c93.js → pesquisa-fetcher-30cab386.js} +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +4 -4
- package/dist/cjs/snk-actions-button_5.cjs.entry.js +5 -5
- package/dist/cjs/snk-application.cjs.entry.js +6 -6
- package/dist/cjs/snk-attach.cjs.entry.js +5 -5
- package/dist/cjs/snk-config-options_3.cjs.entry.js +4 -4
- package/dist/cjs/snk-crud.cjs.entry.js +5 -5
- package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
- package/dist/cjs/{snk-data-unit-bbd384bf.js → snk-data-unit-33937ffe.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
- package/dist/cjs/snk-detail-view.cjs.entry.js +7 -7
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-grid.cjs.entry.js +6 -6
- package/dist/cjs/{snk-guides-viewer-5396062f.js → snk-guides-viewer-65964889.js} +5 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -4
- package/dist/cjs/snk-simple-crud.cjs.entry.js +7 -7
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +51 -16
- package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +1 -1
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +1 -1
- package/dist/components/ContinuousInsertUtils.js +51 -16
- package/dist/components/DataFetcher.js +1 -1
- package/dist/components/snk-data-exporter2.js +1 -1
- package/dist/esm/{ClientSideExporterProvider-3537805a.js → ClientSideExporterProvider-e42c5a48.js} +55 -20
- package/dist/esm/{ConfigStorage-373bb440.js → ConfigStorage-e5c1f4c0.js} +2 -2
- package/dist/esm/{DataFetcher-5221b992.js → DataFetcher-ecf5f903.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-5022f87f.js → SnkFormConfigManager-1efd102b.js} +2 -2
- package/dist/esm/{auth-fetcher-e32fe8a4.js → auth-fetcher-9987c66e.js} +1 -1
- package/dist/esm/{dataunit-fetcher-91b094f2.js → dataunit-fetcher-ed6e65ef.js} +1 -1
- package/dist/esm/{form-config-fetcher-126e2471.js → form-config-fetcher-34becd23.js} +1 -1
- package/dist/esm/{pesquisa-fetcher-4284f2a3.js → pesquisa-fetcher-e26c3295.js} +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +4 -4
- package/dist/esm/snk-actions-button_5.entry.js +5 -5
- package/dist/esm/snk-application.entry.js +6 -6
- package/dist/esm/snk-attach.entry.js +5 -5
- package/dist/esm/snk-config-options_3.entry.js +4 -4
- package/dist/esm/snk-crud.entry.js +5 -5
- package/dist/esm/snk-data-exporter.entry.js +6 -6
- package/dist/esm/{snk-data-unit-b03bb5cf.js → snk-data-unit-6258b8ae.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +3 -3
- package/dist/esm/snk-detail-view.entry.js +7 -7
- package/dist/esm/snk-filter-bar_4.entry.js +3 -3
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-grid.entry.js +6 -6
- package/dist/esm/{snk-guides-viewer-749d027c.js → snk-guides-viewer-9e43d0ca.js} +5 -5
- package/dist/esm/snk-guides-viewer.entry.js +7 -7
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-pesquisa.entry.js +4 -4
- package/dist/esm/snk-simple-crud.entry.js +7 -7
- package/dist/sankhyablocks/{p-ee53b000.entry.js → p-04acdc3a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ca316523.entry.js → p-05fda408.entry.js} +1 -1
- package/dist/sankhyablocks/p-1a8295af.entry.js +1 -0
- package/dist/sankhyablocks/{p-7b87d1a8.js → p-1e48864c.js} +1 -1
- package/dist/sankhyablocks/{p-1435701f.js → p-22ddc147.js} +1 -1
- package/dist/sankhyablocks/{p-44efbeed.entry.js → p-2746d606.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6234bda8.entry.js → p-27d12f8f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-4d87cd45.entry.js → p-3bab7e9c.entry.js} +1 -1
- package/dist/sankhyablocks/p-3ce68be5.js +1 -0
- package/dist/sankhyablocks/{p-4be6e0e7.entry.js → p-3d424ae9.entry.js} +1 -1
- package/dist/sankhyablocks/{p-19dc71e9.js → p-3fcb90d6.js} +1 -1
- package/dist/sankhyablocks/{p-647f9830.entry.js → p-4b01cbad.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d62228fb.js → p-5a7e18f4.js} +1 -1
- package/dist/sankhyablocks/{p-4fa79d68.entry.js → p-6b898a51.entry.js} +1 -1
- package/dist/sankhyablocks/{p-82ee6dc3.entry.js → p-6c43fcde.entry.js} +1 -1
- package/dist/sankhyablocks/{p-3653374d.js → p-7e0a0aae.js} +1 -1
- package/dist/sankhyablocks/{p-ad5e4f9d.entry.js → p-9523fc40.entry.js} +1 -1
- package/dist/sankhyablocks/p-a18de25e.js +1 -0
- package/dist/sankhyablocks/{p-f0b9303b.js → p-a77bdadc.js} +1 -1
- package/dist/sankhyablocks/{p-23b47a92.js → p-abd9681c.js} +1 -1
- package/dist/sankhyablocks/{p-389ba782.entry.js → p-be2e5f36.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1cf39cfd.entry.js → p-d3b9b377.entry.js} +1 -1
- package/dist/sankhyablocks/{p-13391b3d.entry.js → p-d571e243.entry.js} +1 -1
- package/dist/sankhyablocks/{p-0ce56d43.entry.js → p-e5657d22.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c021a3a9.entry.js → p-e66bcb5c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-41c3bee5.js → p-ef076eea.js} +2 -2
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +7 -0
- package/package.json +1 -1
- package/dist/sankhyablocks/p-3ba431c9.js +0 -1
- package/dist/sankhyablocks/p-5dd7f4c7.js +0 -1
- package/dist/sankhyablocks/p-b2de1bcc.entry.js +0 -1
@@ -2,6 +2,9 @@ import { UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMeta
|
|
2
2
|
import { DataType } from '@sankhyalabs/core';
|
3
3
|
export class CommonsExporter {
|
4
4
|
constructor(dataUnit, grid) {
|
5
|
+
this.MAX_WIDTH_COD = 60;
|
6
|
+
this.MIN_WIDTH_COD = 10;
|
7
|
+
this.DEFAULT_FONT_SIZE = 13;
|
5
8
|
this.dataUnit = dataUnit;
|
6
9
|
this.grid = grid;
|
7
10
|
}
|
@@ -14,7 +17,7 @@ export class CommonsExporter {
|
|
14
17
|
return this.columnsState;
|
15
18
|
}
|
16
19
|
async buildColumnsMetadata(gridColumns) {
|
17
|
-
var _a, _b;
|
20
|
+
var _a, _b, _c;
|
18
21
|
const columnsMetadata = [];
|
19
22
|
for (const column of gridColumns) {
|
20
23
|
/**
|
@@ -25,30 +28,62 @@ export class CommonsExporter {
|
|
25
28
|
}
|
26
29
|
const fieldData = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(column.name);
|
27
30
|
const customFormatter = await this.grid.getCustomValueFormatter(column.name);
|
28
|
-
const
|
29
|
-
|
31
|
+
const isUserInterfaceSEARCH = (fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface) === UserInterface.SEARCH;
|
32
|
+
const widthColumnDefault = 60;
|
33
|
+
const labelColumn = isUserInterfaceSEARCH ? "Cód. " : column.label;
|
34
|
+
let descriptionColumn = undefined;
|
35
|
+
let columnData = {
|
30
36
|
id: column.name,
|
31
|
-
|
37
|
+
label: labelColumn,
|
38
|
+
width: isUserInterfaceSEARCH ? (labelColumn.length * this.DEFAULT_FONT_SIZE) : column.width,
|
32
39
|
type: fieldData === null || fieldData === void 0 ? void 0 : fieldData.dataType,
|
33
40
|
userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface,
|
34
41
|
customFormatter
|
35
42
|
};
|
43
|
+
if (isUserInterfaceSEARCH) {
|
44
|
+
if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
|
45
|
+
const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
|
46
|
+
const mergedFrom = fieldData.properties.mergedFrom;
|
47
|
+
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
48
|
+
descriptionColumn = {
|
49
|
+
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
50
|
+
label: labelDescription,
|
51
|
+
width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
|
52
|
+
type: DataType.TEXT,
|
53
|
+
userInterface: UserInterface.LONGTEXT,
|
54
|
+
descriptionFrom: fieldData.name
|
55
|
+
};
|
56
|
+
}
|
57
|
+
if (descriptionColumn) {
|
58
|
+
const newWidth = this.getWidthByMetaData(column === null || column === void 0 ? void 0 : column.width, columnData === null || columnData === void 0 ? void 0 : columnData.width, descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.width);
|
59
|
+
columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
|
60
|
+
descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.descWidth, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
|
61
|
+
}
|
62
|
+
}
|
36
63
|
columnsMetadata.push(columnData);
|
37
|
-
if (
|
38
|
-
const mergedFrom = fieldData.properties.mergedFrom;
|
39
|
-
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
40
|
-
const descriptionColumn = {
|
41
|
-
label: fieldData.properties.DESCRIPTIONENTITY,
|
42
|
-
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
43
|
-
width: column.width,
|
44
|
-
type: DataType.TEXT,
|
45
|
-
userInterface: UserInterface.LONGTEXT,
|
46
|
-
descriptionFrom: fieldData.name
|
47
|
-
};
|
64
|
+
if (descriptionColumn)
|
48
65
|
columnsMetadata.push(descriptionColumn);
|
49
|
-
}
|
50
66
|
}
|
51
67
|
;
|
52
68
|
return columnsMetadata || [];
|
53
69
|
}
|
70
|
+
getWidthByMetaData(maxWidth, widthCod, widthDescription) {
|
71
|
+
const totalCurrentWidth = widthCod + widthDescription;
|
72
|
+
const codPercentage = widthCod / totalCurrentWidth;
|
73
|
+
const descPercentage = widthDescription / totalCurrentWidth;
|
74
|
+
let newWidthCod = Math.round(maxWidth * codPercentage);
|
75
|
+
let newWidthDescription = Math.round(maxWidth * descPercentage);
|
76
|
+
if (newWidthCod > this.MAX_WIDTH_COD) {
|
77
|
+
newWidthCod = this.MAX_WIDTH_COD;
|
78
|
+
newWidthDescription = maxWidth - this.MAX_WIDTH_COD;
|
79
|
+
}
|
80
|
+
else if (newWidthCod < this.MIN_WIDTH_COD) {
|
81
|
+
newWidthCod = this.MIN_WIDTH_COD;
|
82
|
+
newWidthDescription = maxWidth - this.MIN_WIDTH_COD;
|
83
|
+
}
|
84
|
+
return {
|
85
|
+
codWidth: newWidthCod,
|
86
|
+
descWidth: newWidthDescription
|
87
|
+
};
|
88
|
+
}
|
54
89
|
}
|
@@ -415,7 +415,7 @@ export class DataFetcher {
|
|
415
415
|
const requestId = StringUtils.generateUUID();
|
416
416
|
DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url, requestBody: request, requestId }));
|
417
417
|
try {
|
418
|
-
const response = await batchRequests(url, request, { 'Content-Type': `application/json; charset
|
418
|
+
const response = await batchRequests(url, request, { 'Content-Type': `application/json; charset=UTF-8` });
|
419
419
|
response.forEach((resItem, index) => {
|
420
420
|
var _a;
|
421
421
|
if (((_a = resItem === null || resItem === void 0 ? void 0 : resItem.errors) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
@@ -260,6 +260,9 @@ class RmPrecisionCustomValueFormatter {
|
|
260
260
|
|
261
261
|
class CommonsExporter {
|
262
262
|
constructor(dataUnit, grid) {
|
263
|
+
this.MAX_WIDTH_COD = 60;
|
264
|
+
this.MIN_WIDTH_COD = 10;
|
265
|
+
this.DEFAULT_FONT_SIZE = 13;
|
263
266
|
this.dataUnit = dataUnit;
|
264
267
|
this.grid = grid;
|
265
268
|
}
|
@@ -272,7 +275,7 @@ class CommonsExporter {
|
|
272
275
|
return this.columnsState;
|
273
276
|
}
|
274
277
|
async buildColumnsMetadata(gridColumns) {
|
275
|
-
var _a, _b;
|
278
|
+
var _a, _b, _c;
|
276
279
|
const columnsMetadata = [];
|
277
280
|
for (const column of gridColumns) {
|
278
281
|
/**
|
@@ -283,31 +286,63 @@ class CommonsExporter {
|
|
283
286
|
}
|
284
287
|
const fieldData = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(column.name);
|
285
288
|
const customFormatter = await this.grid.getCustomValueFormatter(column.name);
|
286
|
-
const
|
287
|
-
|
289
|
+
const isUserInterfaceSEARCH = (fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface) === UserInterface$1.SEARCH;
|
290
|
+
const widthColumnDefault = 60;
|
291
|
+
const labelColumn = isUserInterfaceSEARCH ? "Cód. " : column.label;
|
292
|
+
let descriptionColumn = undefined;
|
293
|
+
let columnData = {
|
288
294
|
id: column.name,
|
289
|
-
|
295
|
+
label: labelColumn,
|
296
|
+
width: isUserInterfaceSEARCH ? (labelColumn.length * this.DEFAULT_FONT_SIZE) : column.width,
|
290
297
|
type: fieldData === null || fieldData === void 0 ? void 0 : fieldData.dataType,
|
291
298
|
userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface,
|
292
299
|
customFormatter
|
293
300
|
};
|
301
|
+
if (isUserInterfaceSEARCH) {
|
302
|
+
if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
|
303
|
+
const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
|
304
|
+
const mergedFrom = fieldData.properties.mergedFrom;
|
305
|
+
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
306
|
+
descriptionColumn = {
|
307
|
+
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
308
|
+
label: labelDescription,
|
309
|
+
width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
|
310
|
+
type: DataType.TEXT,
|
311
|
+
userInterface: UserInterface$1.LONGTEXT,
|
312
|
+
descriptionFrom: fieldData.name
|
313
|
+
};
|
314
|
+
}
|
315
|
+
if (descriptionColumn) {
|
316
|
+
const newWidth = this.getWidthByMetaData(column === null || column === void 0 ? void 0 : column.width, columnData === null || columnData === void 0 ? void 0 : columnData.width, descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.width);
|
317
|
+
columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
|
318
|
+
descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.descWidth, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
|
319
|
+
}
|
320
|
+
}
|
294
321
|
columnsMetadata.push(columnData);
|
295
|
-
if (
|
296
|
-
const mergedFrom = fieldData.properties.mergedFrom;
|
297
|
-
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
298
|
-
const descriptionColumn = {
|
299
|
-
label: fieldData.properties.DESCRIPTIONENTITY,
|
300
|
-
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
301
|
-
width: column.width,
|
302
|
-
type: DataType.TEXT,
|
303
|
-
userInterface: UserInterface$1.LONGTEXT,
|
304
|
-
descriptionFrom: fieldData.name
|
305
|
-
};
|
322
|
+
if (descriptionColumn)
|
306
323
|
columnsMetadata.push(descriptionColumn);
|
307
|
-
}
|
308
324
|
}
|
309
325
|
return columnsMetadata || [];
|
310
326
|
}
|
327
|
+
getWidthByMetaData(maxWidth, widthCod, widthDescription) {
|
328
|
+
const totalCurrentWidth = widthCod + widthDescription;
|
329
|
+
const codPercentage = widthCod / totalCurrentWidth;
|
330
|
+
const descPercentage = widthDescription / totalCurrentWidth;
|
331
|
+
let newWidthCod = Math.round(maxWidth * codPercentage);
|
332
|
+
let newWidthDescription = Math.round(maxWidth * descPercentage);
|
333
|
+
if (newWidthCod > this.MAX_WIDTH_COD) {
|
334
|
+
newWidthCod = this.MAX_WIDTH_COD;
|
335
|
+
newWidthDescription = maxWidth - this.MAX_WIDTH_COD;
|
336
|
+
}
|
337
|
+
else if (newWidthCod < this.MIN_WIDTH_COD) {
|
338
|
+
newWidthCod = this.MIN_WIDTH_COD;
|
339
|
+
newWidthDescription = maxWidth - this.MIN_WIDTH_COD;
|
340
|
+
}
|
341
|
+
return {
|
342
|
+
codWidth: newWidthCod,
|
343
|
+
descWidth: newWidthDescription
|
344
|
+
};
|
345
|
+
}
|
311
346
|
}
|
312
347
|
|
313
348
|
class ClientSideExporterProvider extends CommonsExporter {
|
@@ -7058,7 +7058,7 @@ class DataFetcher {
|
|
7058
7058
|
const requestId = StringUtils.generateUUID();
|
7059
7059
|
DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url, requestBody: request, requestId }));
|
7060
7060
|
try {
|
7061
|
-
const response = await dist.batchRequests(url, request, { 'Content-Type': `application/json; charset
|
7061
|
+
const response = await dist.batchRequests(url, request, { 'Content-Type': `application/json; charset=UTF-8` });
|
7062
7062
|
response.forEach((resItem, index) => {
|
7063
7063
|
var _a;
|
7064
7064
|
if (((_a = resItem === null || resItem === void 0 ? void 0 : resItem.errors) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
@@ -249,7 +249,7 @@ function getFormatResponse(result) {
|
|
249
249
|
return ObjectUtils.stringToObject(response);
|
250
250
|
}
|
251
251
|
|
252
|
-
const DOC_MAX_WIDTH =
|
252
|
+
const DOC_MAX_WIDTH = 860;
|
253
253
|
function getVisibleColumns(columns) {
|
254
254
|
const visibleColumns = [];
|
255
255
|
let totalWidth = 0;
|
package/dist/esm/{ClientSideExporterProvider-3537805a.js → ClientSideExporterProvider-e42c5a48.js}
RENAMED
@@ -1,13 +1,13 @@
|
|
1
|
-
import { D as DataFetcher } from './DataFetcher-
|
2
|
-
import './pesquisa-fetcher-
|
1
|
+
import { D as DataFetcher } from './DataFetcher-ecf5f903.js';
|
2
|
+
import './pesquisa-fetcher-e26c3295.js';
|
3
3
|
import { SortMode, ApplicationContext, UserInterface, DateUtils, ObjectUtils, StringUtils, NumberUtils, DataType } from '@sankhyalabs/core';
|
4
4
|
import { D as DataExporterOption } from './index-b40568ff.js';
|
5
5
|
import './ISave-d8c8bc59.js';
|
6
6
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
7
7
|
import { UserInterface as UserInterface$1 } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
8
|
-
import { P as PreloadManager } from './dataunit-fetcher-
|
8
|
+
import { P as PreloadManager } from './dataunit-fetcher-ed6e65ef.js';
|
9
9
|
import './filter-item-type.enum-d45e026f.js';
|
10
|
-
import './form-config-fetcher-
|
10
|
+
import './form-config-fetcher-34becd23.js';
|
11
11
|
import './constants-75abb876.js';
|
12
12
|
import InMemoryFilterColumnDataSource from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
|
13
13
|
import { h } from './index-a7d3d3f1.js';
|
@@ -181,6 +181,9 @@ class RmPrecisionCustomValueFormatter {
|
|
181
181
|
|
182
182
|
class CommonsExporter {
|
183
183
|
constructor(dataUnit, grid) {
|
184
|
+
this.MAX_WIDTH_COD = 60;
|
185
|
+
this.MIN_WIDTH_COD = 10;
|
186
|
+
this.DEFAULT_FONT_SIZE = 13;
|
184
187
|
this.dataUnit = dataUnit;
|
185
188
|
this.grid = grid;
|
186
189
|
}
|
@@ -193,7 +196,7 @@ class CommonsExporter {
|
|
193
196
|
return this.columnsState;
|
194
197
|
}
|
195
198
|
async buildColumnsMetadata(gridColumns) {
|
196
|
-
var _a, _b;
|
199
|
+
var _a, _b, _c;
|
197
200
|
const columnsMetadata = [];
|
198
201
|
for (const column of gridColumns) {
|
199
202
|
/**
|
@@ -204,31 +207,63 @@ class CommonsExporter {
|
|
204
207
|
}
|
205
208
|
const fieldData = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(column.name);
|
206
209
|
const customFormatter = await this.grid.getCustomValueFormatter(column.name);
|
207
|
-
const
|
208
|
-
|
210
|
+
const isUserInterfaceSEARCH = (fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface) === UserInterface$1.SEARCH;
|
211
|
+
const widthColumnDefault = 60;
|
212
|
+
const labelColumn = isUserInterfaceSEARCH ? "Cód. " : column.label;
|
213
|
+
let descriptionColumn = undefined;
|
214
|
+
let columnData = {
|
209
215
|
id: column.name,
|
210
|
-
|
216
|
+
label: labelColumn,
|
217
|
+
width: isUserInterfaceSEARCH ? (labelColumn.length * this.DEFAULT_FONT_SIZE) : column.width,
|
211
218
|
type: fieldData === null || fieldData === void 0 ? void 0 : fieldData.dataType,
|
212
219
|
userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface,
|
213
220
|
customFormatter
|
214
221
|
};
|
222
|
+
if (isUserInterfaceSEARCH) {
|
223
|
+
if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
|
224
|
+
const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
|
225
|
+
const mergedFrom = fieldData.properties.mergedFrom;
|
226
|
+
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
227
|
+
descriptionColumn = {
|
228
|
+
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
229
|
+
label: labelDescription,
|
230
|
+
width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
|
231
|
+
type: DataType.TEXT,
|
232
|
+
userInterface: UserInterface$1.LONGTEXT,
|
233
|
+
descriptionFrom: fieldData.name
|
234
|
+
};
|
235
|
+
}
|
236
|
+
if (descriptionColumn) {
|
237
|
+
const newWidth = this.getWidthByMetaData(column === null || column === void 0 ? void 0 : column.width, columnData === null || columnData === void 0 ? void 0 : columnData.width, descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.width);
|
238
|
+
columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
|
239
|
+
descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.descWidth, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
|
240
|
+
}
|
241
|
+
}
|
215
242
|
columnsMetadata.push(columnData);
|
216
|
-
if (
|
217
|
-
const mergedFrom = fieldData.properties.mergedFrom;
|
218
|
-
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
219
|
-
const descriptionColumn = {
|
220
|
-
label: fieldData.properties.DESCRIPTIONENTITY,
|
221
|
-
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
222
|
-
width: column.width,
|
223
|
-
type: DataType.TEXT,
|
224
|
-
userInterface: UserInterface$1.LONGTEXT,
|
225
|
-
descriptionFrom: fieldData.name
|
226
|
-
};
|
243
|
+
if (descriptionColumn)
|
227
244
|
columnsMetadata.push(descriptionColumn);
|
228
|
-
}
|
229
245
|
}
|
230
246
|
return columnsMetadata || [];
|
231
247
|
}
|
248
|
+
getWidthByMetaData(maxWidth, widthCod, widthDescription) {
|
249
|
+
const totalCurrentWidth = widthCod + widthDescription;
|
250
|
+
const codPercentage = widthCod / totalCurrentWidth;
|
251
|
+
const descPercentage = widthDescription / totalCurrentWidth;
|
252
|
+
let newWidthCod = Math.round(maxWidth * codPercentage);
|
253
|
+
let newWidthDescription = Math.round(maxWidth * descPercentage);
|
254
|
+
if (newWidthCod > this.MAX_WIDTH_COD) {
|
255
|
+
newWidthCod = this.MAX_WIDTH_COD;
|
256
|
+
newWidthDescription = maxWidth - this.MAX_WIDTH_COD;
|
257
|
+
}
|
258
|
+
else if (newWidthCod < this.MIN_WIDTH_COD) {
|
259
|
+
newWidthCod = this.MIN_WIDTH_COD;
|
260
|
+
newWidthDescription = maxWidth - this.MIN_WIDTH_COD;
|
261
|
+
}
|
262
|
+
return {
|
263
|
+
codWidth: newWidthCod,
|
264
|
+
descWidth: newWidthDescription
|
265
|
+
};
|
266
|
+
}
|
232
267
|
}
|
233
268
|
|
234
269
|
class ContinuousInsertUtils {
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { R as ResourceFetcher, F as FormConfigFetcher } from './form-config-fetcher-
|
1
|
+
import { R as ResourceFetcher, F as FormConfigFetcher } from './form-config-fetcher-34becd23.js';
|
2
2
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
3
3
|
import { ObjectUtils } from '@sankhyalabs/core';
|
4
|
-
import { d as dist, D as DataFetcher } from './DataFetcher-
|
4
|
+
import { d as dist, D as DataFetcher } from './DataFetcher-ecf5f903.js';
|
5
5
|
|
6
6
|
class GridConfigFetcher extends ResourceFetcher {
|
7
7
|
constructor() {
|
@@ -7058,7 +7058,7 @@ class DataFetcher {
|
|
7058
7058
|
const requestId = StringUtils.generateUUID();
|
7059
7059
|
DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url, requestBody: request, requestId }));
|
7060
7060
|
try {
|
7061
|
-
const response = await dist.batchRequests(url, request, { 'Content-Type': `application/json; charset
|
7061
|
+
const response = await dist.batchRequests(url, request, { 'Content-Type': `application/json; charset=UTF-8` });
|
7062
7062
|
response.forEach((resItem, index) => {
|
7063
7063
|
var _a;
|
7064
7064
|
if (((_a = resItem === null || resItem === void 0 ? void 0 : resItem.errors) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
1
|
+
import { C as ConfigStorage } from './ConfigStorage-e5c1f4c0.js';
|
2
2
|
import { ObjectUtils, StringUtils } from '@sankhyalabs/core';
|
3
|
-
import { F as FormConfigFetcher } from './form-config-fetcher-
|
3
|
+
import { F as FormConfigFetcher } from './form-config-fetcher-34becd23.js';
|
4
4
|
import { c as TAB_NAMES } from './constants-75abb876.js';
|
5
5
|
|
6
6
|
class SnkFormConfigManager {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ObjectUtils } from '@sankhyalabs/core';
|
2
|
-
import { R as ResourceFetcher } from './form-config-fetcher-
|
2
|
+
import { R as ResourceFetcher } from './form-config-fetcher-34becd23.js';
|
3
3
|
|
4
4
|
class AuthFetcher extends ResourceFetcher {
|
5
5
|
getData(resourceID) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ObjectUtils, DataUnit, DataUnitInMemoryLoader, ApplicationContext, StringUtils, UserInterface, DataUnitStorage, DataType, ChangeOperation } from '@sankhyalabs/core';
|
2
|
-
import { D as DataFetcher, d as dist } from './DataFetcher-
|
2
|
+
import { D as DataFetcher, d as dist } from './DataFetcher-ecf5f903.js';
|
3
3
|
import { DISTINCT_FILTER_NAME_PREFIX } from '@sankhyalabs/ezui/dist/collection/utils/constants';
|
4
4
|
import { DataUnitTransient } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
5
5
|
import { ColumnFilterManager } from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { UserInterface, DataType, ApplicationContext, ErrorException } from '@sankhyalabs/core';
|
2
|
-
import { d as dist, D as DataFetcher } from './DataFetcher-
|
2
|
+
import { d as dist, D as DataFetcher } from './DataFetcher-ecf5f903.js';
|
3
3
|
|
4
4
|
function buildGridMetadata(rawValue) {
|
5
5
|
const fieldsMetadata = buildFieldsMetadata(rawValue.fieldsMetadata);
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment } from './index-a7d3d3f1.js';
|
2
|
-
import { I as InMemoryLoader } from './dataunit-fetcher-
|
3
|
-
import './DataFetcher-
|
4
|
-
import { P as PesquisaFetcher } from './pesquisa-fetcher-
|
2
|
+
import { I as InMemoryLoader } from './dataunit-fetcher-ed6e65ef.js';
|
3
|
+
import './DataFetcher-ecf5f903.js';
|
4
|
+
import { P as PesquisaFetcher } from './pesquisa-fetcher-e26c3295.js';
|
5
5
|
import '@sankhyalabs/core';
|
6
6
|
import './index-b40568ff.js';
|
7
7
|
import './ISave-d8c8bc59.js';
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
10
10
|
import './filter-item-type.enum-d45e026f.js';
|
11
|
-
import './form-config-fetcher-
|
11
|
+
import './form-config-fetcher-34becd23.js';
|
12
12
|
import './constants-75abb876.js';
|
13
13
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
14
14
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
@@ -1,21 +1,21 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-a7d3d3f1.js';
|
2
2
|
import { ApplicationContext, StringUtils, ErrorException, WarningException, ObjectUtils, DateUtils, ServiceUtils, StorageType, ArrayUtils, ElementIDUtils } from '@sankhyalabs/core';
|
3
|
-
import { D as DataFetcher } from './DataFetcher-
|
3
|
+
import { D as DataFetcher } from './DataFetcher-ecf5f903.js';
|
4
4
|
import { P as ParamType } from './ParamType-d5152b06.js';
|
5
|
-
import './pesquisa-fetcher-
|
5
|
+
import './pesquisa-fetcher-e26c3295.js';
|
6
6
|
import './index-b40568ff.js';
|
7
7
|
import './ISave-d8c8bc59.js';
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
10
|
-
import './dataunit-fetcher-
|
10
|
+
import './dataunit-fetcher-ed6e65ef.js';
|
11
11
|
import './filter-item-type.enum-d45e026f.js';
|
12
|
-
import { F as FormConfigFetcher } from './form-config-fetcher-
|
12
|
+
import { F as FormConfigFetcher } from './form-config-fetcher-34becd23.js';
|
13
13
|
import { O as ORDER_VALUES } from './constants-75abb876.js';
|
14
14
|
import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
|
15
15
|
import { R as ResourceIDUtils } from './ResourceIDUtils-a114189a.js';
|
16
16
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
17
17
|
import { CheckMode } from '@sankhyalabs/ezui/dist/collection/components/ez-check/CheckMode';
|
18
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
18
|
+
import { C as ConfigStorage } from './ConfigStorage-e5c1f4c0.js';
|
19
19
|
import './PrintUtils-3e4ff0f5.js';
|
20
20
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
21
21
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
|
2
2
|
import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, WarningException, ErrorException, KeyboardManager, OnboardingUtils, DependencyType, ArrayUtils, SearchUtils, ElementIDUtils, ApplicationContext, DataType, ErrorTracking, UserAgentUtils, LockManager, LockManagerOperation } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
5
|
-
import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-
|
6
|
-
import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-
|
7
|
-
import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher-
|
8
|
-
import { P as PesquisaFetcher } from './pesquisa-fetcher-
|
4
|
+
import { C as ConfigStorage } from './ConfigStorage-e5c1f4c0.js';
|
5
|
+
import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-ecf5f903.js';
|
6
|
+
import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-9987c66e.js';
|
7
|
+
import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher-ed6e65ef.js';
|
8
|
+
import { P as PesquisaFetcher } from './pesquisa-fetcher-e26c3295.js';
|
9
9
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder-6fff4a4c.js';
|
10
10
|
import { T as TEMPLATES_SKELETON } from './constants-75abb876.js';
|
11
|
-
import './form-config-fetcher-
|
11
|
+
import './form-config-fetcher-34becd23.js';
|
12
12
|
import './filter-item-type.enum-d45e026f.js';
|
13
13
|
import './PrintUtils-3e4ff0f5.js';
|
14
14
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a7d3d3f1.js';
|
2
2
|
import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnitLoaderUtils, DataUnit } from '@sankhyalabs/core';
|
3
|
-
import { D as DataFetcher } from './DataFetcher-
|
4
|
-
import './pesquisa-fetcher-
|
3
|
+
import { D as DataFetcher } from './DataFetcher-ecf5f903.js';
|
4
|
+
import './pesquisa-fetcher-e26c3295.js';
|
5
5
|
import './index-b40568ff.js';
|
6
6
|
import { S as SaveErrorsEnum } from './ISave-d8c8bc59.js';
|
7
|
-
import { P as PreloadManager, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-
|
7
|
+
import { P as PreloadManager, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-ed6e65ef.js';
|
8
8
|
import './filter-item-type.enum-d45e026f.js';
|
9
|
-
import './form-config-fetcher-
|
9
|
+
import './form-config-fetcher-34becd23.js';
|
10
10
|
import { V as VIEW_MODE } from './constants-75abb876.js';
|
11
|
-
import { A as AutorizationType } from './auth-fetcher-
|
11
|
+
import { A as AutorizationType } from './auth-fetcher-9987c66e.js';
|
12
12
|
import { T as TaskbarElement } from './taskbar-elements-d2353c64.js';
|
13
13
|
import './PrintUtils-3e4ff0f5.js';
|
14
14
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
@@ -3,14 +3,14 @@ import { UserInterface, ObjectUtils, StringUtils, ApplicationContext, ElementIDU
|
|
3
3
|
import { DataType, getConvertedValue } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
4
4
|
import { CheckMode, ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
5
5
|
import { d as VARS_BY_TYPE, D as DEFAULT_TYPE, e as TAGS_BY_TYPE, C as CONFIG_EVENTS, a as CONFIG_SORTABLE_EVENTS, c as TAB_NAMES, A as ACTION_CONFIG } from './constants-75abb876.js';
|
6
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
6
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-1efd102b.js';
|
7
7
|
import { R as ResourceIDUtils } from './ResourceIDUtils-a114189a.js';
|
8
8
|
import { S as Sortable } from './Sortable-83960219.js';
|
9
|
-
import { U as UserConfigType } from './form-config-fetcher-
|
9
|
+
import { U as UserConfigType } from './form-config-fetcher-34becd23.js';
|
10
10
|
import { buildFormConfigFromDataUnit } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
11
|
-
import './ConfigStorage-
|
11
|
+
import './ConfigStorage-e5c1f4c0.js';
|
12
12
|
import './filter-item-type.enum-d45e026f.js';
|
13
|
-
import './DataFetcher-
|
13
|
+
import './DataFetcher-ecf5f903.js';
|
14
14
|
import './PrintUtils-3e4ff0f5.js';
|
15
15
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
16
16
|
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
|
2
2
|
import { StringUtils, ElementIDUtils, ApplicationContext, JSUtils, FloatingManager } from '@sankhyalabs/core';
|
3
3
|
import { T as TaskbarElement } from './taskbar-elements-d2353c64.js';
|
4
|
-
import './DataFetcher-
|
5
|
-
import './pesquisa-fetcher-
|
4
|
+
import './DataFetcher-ecf5f903.js';
|
5
|
+
import './pesquisa-fetcher-e26c3295.js';
|
6
6
|
import { P as PresentationMode, E as ExporterStrategy } from './index-b40568ff.js';
|
7
7
|
import './ISave-d8c8bc59.js';
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
10
|
-
import './dataunit-fetcher-
|
10
|
+
import './dataunit-fetcher-ed6e65ef.js';
|
11
11
|
import './filter-item-type.enum-d45e026f.js';
|
12
|
-
import './form-config-fetcher-
|
12
|
+
import './form-config-fetcher-34becd23.js';
|
13
13
|
import { V as VIEW_MODE } from './constants-75abb876.js';
|
14
|
-
import { A as AutorizationType } from './auth-fetcher-
|
14
|
+
import { A as AutorizationType } from './auth-fetcher-9987c66e.js';
|
15
15
|
import './index-bdf75557.js';
|
16
16
|
import './PrintUtils-3e4ff0f5.js';
|
17
17
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
@@ -4,15 +4,15 @@ import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/
|
|
4
4
|
import { I as IExportType } from './IFetchDataExporterParams-d73bed3d.js';
|
5
5
|
import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-b40568ff.js';
|
6
6
|
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-75abb876.js';
|
7
|
-
import { D as DataFetcher } from './DataFetcher-
|
8
|
-
import { S as SnkDataUnit } from './snk-data-unit-
|
9
|
-
import './pesquisa-fetcher-
|
7
|
+
import { D as DataFetcher } from './DataFetcher-ecf5f903.js';
|
8
|
+
import { S as SnkDataUnit } from './snk-data-unit-6258b8ae.js';
|
9
|
+
import './pesquisa-fetcher-e26c3295.js';
|
10
10
|
import './ISave-d8c8bc59.js';
|
11
11
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
12
12
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
13
|
-
import './dataunit-fetcher-
|
13
|
+
import './dataunit-fetcher-ed6e65ef.js';
|
14
14
|
import './filter-item-type.enum-d45e026f.js';
|
15
|
-
import './form-config-fetcher-
|
15
|
+
import './form-config-fetcher-34becd23.js';
|
16
16
|
import './PrintUtils-3e4ff0f5.js';
|
17
17
|
import './SnkMessageBuilder-6fff4a4c.js';
|
18
18
|
import '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
@@ -251,7 +251,7 @@ function getFormatResponse(result) {
|
|
251
251
|
return ObjectUtils.stringToObject(response);
|
252
252
|
}
|
253
253
|
|
254
|
-
const DOC_MAX_WIDTH =
|
254
|
+
const DOC_MAX_WIDTH = 860;
|
255
255
|
function getVisibleColumns(columns) {
|
256
256
|
const visibleColumns = [];
|
257
257
|
let totalWidth = 0;
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, g as getElement, H as Host
|
|
2
2
|
import { Action, ObjectUtils, DataUnitAction, StringUtils, ApplicationContext } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
4
|
import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-6fff4a4c.js';
|
5
|
-
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-
|
5
|
+
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-ed6e65ef.js';
|
6
6
|
import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
7
7
|
import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
|
8
8
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
export { S as snk_data_unit } from './snk-data-unit-
|
1
|
+
export { S as snk_data_unit } from './snk-data-unit-6258b8ae.js';
|
2
2
|
import './index-a7d3d3f1.js';
|
3
3
|
import '@sankhyalabs/core';
|
4
4
|
import '@sankhyalabs/ezui/dist/collection/utils';
|
5
5
|
import './SnkMessageBuilder-6fff4a4c.js';
|
6
|
-
import './dataunit-fetcher-
|
7
|
-
import './DataFetcher-
|
6
|
+
import './dataunit-fetcher-ed6e65ef.js';
|
7
|
+
import './DataFetcher-ecf5f903.js';
|
8
8
|
import './PrintUtils-3e4ff0f5.js';
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
10
10
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|