@owp/core 2.2.1 → 2.2.3
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/_virtual/index10.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/components/OwpMrtTable/OwpMrtTable.js +223 -196
- package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
- package/dist/components/OwpMrtTable/OwpMrtTableNoDataOverlay.js +53 -0
- package/dist/components/OwpMrtTable/OwpMrtTableNoDataOverlay.js.map +1 -0
- package/dist/components/OwpSection/OwpSection.js +35 -35
- package/dist/components/OwpSection/OwpSection.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +291 -192
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.js +48 -46
- package/dist/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.js.map +1 -1
- package/dist/components/OwpTreeGrid/perf.js +31 -0
- package/dist/components/OwpTreeGrid/perf.js.map +1 -0
- package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js +34 -0
- package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js.map +1 -0
- package/dist/index.js +25 -23
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +2 -0
- package/dist/types/components/OwpMrtTable/OwpMrtTableNoDataOverlay.d.ts +14 -0
- package/dist/types/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.d.ts +2 -1
- package/dist/types/components/OwpTreeGrid/perf.d.ts +30 -0
- package/dist/types/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.d.ts +13 -0
- package/dist/types/components/OwpTreeGridResetChangesButton/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/preloadOnIdle.d.ts +7 -0
- package/dist/types/utils/treeGridBodyRowsEvent.d.ts +9 -0
- package/dist/utils/exceljsBrowser.js +6 -6
- package/dist/utils/exceljsBrowser.js.map +1 -1
- package/dist/utils/jszipBrowser.js +6 -6
- package/dist/utils/jszipBrowser.js.map +1 -1
- package/dist/utils/preloadOnIdle.js +27 -0
- package/dist/utils/preloadOnIdle.js.map +1 -0
- package/dist/utils/treeGridBodyRowsEvent.js +14 -0
- package/dist/utils/treeGridBodyRowsEvent.js.map +1 -0
- package/dist/utils/treeGridExportExcelUtil.js +306 -268
- package/dist/utils/treeGridExportExcelUtil.js.map +1 -1
- package/dist/utils/treeGridUtil.js +79 -72
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/dist/utils.js +64 -62
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/_virtual/_commonjs-dynamic-modules.js +0 -10
- package/dist/_virtual/_commonjs-dynamic-modules.js.map +0 -1
- package/dist/_virtual/exceljs.min.js +0 -31
- package/dist/_virtual/exceljs.min.js.map +0 -1
- package/dist/_virtual/exceljs.min2.js +0 -5
- package/dist/_virtual/exceljs.min2.js.map +0 -1
- package/dist/_virtual/jszip.min.js +0 -31
- package/dist/_virtual/jszip.min.js.map +0 -1
- package/dist/_virtual/jszip.min2.js +0 -5
- package/dist/_virtual/jszip.min2.js.map +0 -1
- package/dist/node_modules/.pnpm/exceljs@4.4.0/node_modules/exceljs/dist/exceljs.min.js +0 -23540
- package/dist/node_modules/.pnpm/exceljs@4.4.0/node_modules/exceljs/dist/exceljs.min.js.map +0 -1
- package/dist/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js +0 -2385
- package/dist/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js.map +0 -1
package/dist/utils.js
CHANGED
|
@@ -2,96 +2,98 @@ import { generateBarcodeUrl as t } from "./utils/barcodeUtil.js";
|
|
|
2
2
|
import { buildTreeGridEnumAttributesByCommonCodeList as d, transformCommonCodeBasedOnGroupId as i, transformGridEnumByCommonCodeList as a } from "./utils/commonCodeUtils.js";
|
|
3
3
|
import { createDateRangeSearchParams as m } from "./utils/createDateRangeSearchParams.js";
|
|
4
4
|
import { createJsonBody as I } from "./utils/createJsonBody.js";
|
|
5
|
-
import { createJsonString as
|
|
6
|
-
import { exportExcelByBuffer as
|
|
5
|
+
import { createJsonString as n } from "./utils/createJsonString.js";
|
|
6
|
+
import { exportExcelByBuffer as E, getIndexByLetters as T, getLettersByIndex as p, setCellValue as G, setMergeCells as y } from "./utils/excelUtil.js";
|
|
7
7
|
import { fetchFile as L } from "./utils/fetchFile.js";
|
|
8
8
|
import { formatDateToYmd as C, getTodayYmd as R } from "./utils/formatDateToYmd.js";
|
|
9
9
|
import { formatNumber as u } from "./utils/formatNumber.js";
|
|
10
10
|
import { getDisplayValue as c } from "./utils/getDisplayValue.js";
|
|
11
11
|
import { getEstimatedTextCellWidth as h } from "./utils/getEstimatedTextCellWidth.js";
|
|
12
|
-
import { getFormDefaultValues as
|
|
12
|
+
import { getFormDefaultValues as F } from "./utils/getFormDefaultValues.js";
|
|
13
13
|
import { getStartPagePath as N } from "./utils/getStartPagePath.js";
|
|
14
14
|
import { getTrimmedValue as w } from "./utils/getTrimmedValue.js";
|
|
15
15
|
import { isEnterKeyEvent as V } from "./utils/isEnterKeyEvent.js";
|
|
16
16
|
import { getApiLanguageCode as P, getI18nextLanguageCode as M } from "./utils/language.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
17
|
+
import { preloadOnIdle as v } from "./utils/preloadOnIdle.js";
|
|
18
|
+
import { generateQrCodeUrl as J } from "./utils/qrCodeUtil.js";
|
|
19
|
+
import { rebuildValue as K } from "./utils/rebuildValue.js";
|
|
20
|
+
import { sanitizePasswordValue as Z, sanitizeUserIdValue as j } from "./utils/sanitizeAuthInputValue.js";
|
|
21
|
+
import { exportExcelByGrid as q, exportTreeGridExcel as X } from "./utils/treeGridExportExcelUtil.js";
|
|
22
|
+
import { addRowById as ee, addTreeGridRowById as re, changeVisibleCellByGridId as te, exportExcelById as oe, exportTreeGridToExcelById as de, getChangedDataRowsById as ie, getDataRowsById as ae, getGridById as se, getSelectedRowsById as me, getTreeGridById as le, getTreeGridDataRowsById as Ie, getTreeGridRowChangesById as ge, getTreeGridSelectedRowsById as ne, highlightTreeGridCellById as xe, reloadBodyById as Ee, reloadTreeGridBodyById as Te, resetGridChanges as pe, resetGridSelection as Ge, resetGridsChanges as ye, resetGridsSelection as Be, resetTreeGridChangesById as Le, resetTreeGridChangesByIds as fe, resetTreeGridSelectionById as Ce, resetTreeGridSelectionsByIds as Re, setGridEnum as _e, setHighlightTargetCellByGridId as ue, setTreeGridColumnEnumOptionsById as De, setTreeGridColumnVisibilityById as ce } from "./utils/treeGridUtil.js";
|
|
23
|
+
import { saveAsZipFile as he } from "./utils/zipUtil.js";
|
|
24
|
+
import { OwpUtils as Fe } from "./utils/common/OwpUtils.js";
|
|
25
|
+
import { DEFAULT_CELL_ALIGNMENT as Ne, DEFAULT_HEADER_FILL as Se, DEFAULT_HEADER_FONT as we, DEFAULT_THIN_BORDER as He, DEFAULT_VALUE_FONT as Ve, DEFAULT_WRAP_CELL_ALIGNMENT as be } from "./constants/excel.js";
|
|
26
|
+
import { TREEGRID_CELL_HIGHLIGHT_CLASS as Me, TREEGRID_CELL_HIGHLIGHT_COLOR as We, TREEGRID_INPUT_CELL_COLOR as ve, TREEGRID_WARNING_CELL_COLOR as ze } from "./constants/treeGrid.js";
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
Ne as DEFAULT_CELL_ALIGNMENT,
|
|
29
|
+
Se as DEFAULT_HEADER_FILL,
|
|
30
|
+
we as DEFAULT_HEADER_FONT,
|
|
31
|
+
He as DEFAULT_THIN_BORDER,
|
|
32
|
+
Ve as DEFAULT_VALUE_FONT,
|
|
33
|
+
be as DEFAULT_WRAP_CELL_ALIGNMENT,
|
|
34
|
+
Fe as OwpUtils,
|
|
35
|
+
Me as TREEGRID_CELL_HIGHLIGHT_CLASS,
|
|
36
|
+
We as TREEGRID_CELL_HIGHLIGHT_COLOR,
|
|
37
|
+
ve as TREEGRID_INPUT_CELL_COLOR,
|
|
38
|
+
ze as TREEGRID_WARNING_CELL_COLOR,
|
|
39
|
+
ee as addRowById,
|
|
40
|
+
re as addTreeGridRowById,
|
|
40
41
|
d as buildTreeGridEnumAttributesByCommonCodeList,
|
|
41
|
-
|
|
42
|
+
te as changeVisibleCellByGridId,
|
|
42
43
|
m as createDateRangeSearchParams,
|
|
43
44
|
I as createJsonBody,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
n as createJsonString,
|
|
46
|
+
E as exportExcelByBuffer,
|
|
47
|
+
q as exportExcelByGrid,
|
|
48
|
+
oe as exportExcelById,
|
|
49
|
+
X as exportTreeGridExcel,
|
|
50
|
+
de as exportTreeGridToExcelById,
|
|
50
51
|
L as fetchFile,
|
|
51
52
|
C as formatDateToYmd,
|
|
52
53
|
u as formatNumber,
|
|
53
54
|
t as generateBarcodeUrl,
|
|
54
|
-
|
|
55
|
+
J as generateQrCodeUrl,
|
|
55
56
|
P as getApiLanguageCode,
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
ie as getChangedDataRowsById,
|
|
58
|
+
ae as getDataRowsById,
|
|
58
59
|
c as getDisplayValue,
|
|
59
60
|
h as getEstimatedTextCellWidth,
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
F as getFormDefaultValues,
|
|
62
|
+
se as getGridById,
|
|
62
63
|
M as getI18nextLanguageCode,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
T as getIndexByLetters,
|
|
65
|
+
p as getLettersByIndex,
|
|
66
|
+
me as getSelectedRowsById,
|
|
66
67
|
N as getStartPagePath,
|
|
67
68
|
R as getTodayYmd,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
le as getTreeGridById,
|
|
70
|
+
Ie as getTreeGridDataRowsById,
|
|
71
|
+
ge as getTreeGridRowChangesById,
|
|
72
|
+
ne as getTreeGridSelectedRowsById,
|
|
72
73
|
w as getTrimmedValue,
|
|
73
|
-
|
|
74
|
+
xe as highlightTreeGridCellById,
|
|
74
75
|
V as isEnterKeyEvent,
|
|
75
|
-
|
|
76
|
+
v as preloadOnIdle,
|
|
77
|
+
K as rebuildValue,
|
|
76
78
|
Ee as reloadBodyById,
|
|
77
79
|
Te as reloadTreeGridBodyById,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
80
|
+
pe as resetGridChanges,
|
|
81
|
+
Ge as resetGridSelection,
|
|
82
|
+
ye as resetGridsChanges,
|
|
83
|
+
Be as resetGridsSelection,
|
|
84
|
+
Le as resetTreeGridChangesById,
|
|
85
|
+
fe as resetTreeGridChangesByIds,
|
|
86
|
+
Ce as resetTreeGridSelectionById,
|
|
87
|
+
Re as resetTreeGridSelectionsByIds,
|
|
88
|
+
Z as sanitizePasswordValue,
|
|
89
|
+
j as sanitizeUserIdValue,
|
|
90
|
+
he as saveAsZipFile,
|
|
91
|
+
G as setCellValue,
|
|
92
|
+
_e as setGridEnum,
|
|
93
|
+
ue as setHighlightTargetCellByGridId,
|
|
92
94
|
y as setMergeCells,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
De as setTreeGridColumnEnumOptionsById,
|
|
96
|
+
ce as setTreeGridColumnVisibilityById,
|
|
95
97
|
i as transformCommonCodeBasedOnGroupId,
|
|
96
98
|
a as transformGridEnumByCommonCodeList
|
|
97
99
|
};
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var i = Object.defineProperty;
|
|
2
|
-
var r = (o, e) => i(o, "name", { value: e, configurable: !0 });
|
|
3
|
-
function a(o) {
|
|
4
|
-
throw new Error('Could not dynamically require "' + o + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
5
|
-
}
|
|
6
|
-
r(a, "commonjsRequire");
|
|
7
|
-
export {
|
|
8
|
-
a as commonjsRequire
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=_commonjs-dynamic-modules.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_commonjs-dynamic-modules.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var c = Object.defineProperty;
|
|
2
|
-
var i = (e, o) => c(e, "name", { value: o, configurable: !0 });
|
|
3
|
-
import { getDefaultExportFromCjs as f } from "./_commonjsHelpers.js";
|
|
4
|
-
import { __require as l } from "../node_modules/.pnpm/exceljs@4.4.0/node_modules/exceljs/dist/exceljs.min.js";
|
|
5
|
-
function u(e, o) {
|
|
6
|
-
for (var n = 0; n < o.length; n++) {
|
|
7
|
-
const r = o[n];
|
|
8
|
-
if (typeof r != "string" && !Array.isArray(r)) {
|
|
9
|
-
for (const t in r)
|
|
10
|
-
if (t !== "default" && !(t in e)) {
|
|
11
|
-
const s = Object.getOwnPropertyDescriptor(r, t);
|
|
12
|
-
s && Object.defineProperty(e, t, s.get ? s : {
|
|
13
|
-
enumerable: !0,
|
|
14
|
-
get: /* @__PURE__ */ i(() => r[t], "get")
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
-
}
|
|
21
|
-
i(u, "_mergeNamespaces");
|
|
22
|
-
var a = l();
|
|
23
|
-
const m = /* @__PURE__ */ f(a), j = /* @__PURE__ */ u({
|
|
24
|
-
__proto__: null,
|
|
25
|
-
default: m
|
|
26
|
-
}, [a]);
|
|
27
|
-
export {
|
|
28
|
-
m as default,
|
|
29
|
-
j as e
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=exceljs.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exceljs.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exceljs.min2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var f = Object.defineProperty;
|
|
2
|
-
var s = (e, o) => f(e, "name", { value: o, configurable: !0 });
|
|
3
|
-
import { getDefaultExportFromCjs as p } from "./_commonjsHelpers.js";
|
|
4
|
-
import { __require as u } from "../node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js";
|
|
5
|
-
function c(e, o) {
|
|
6
|
-
for (var i = 0; i < o.length; i++) {
|
|
7
|
-
const r = o[i];
|
|
8
|
-
if (typeof r != "string" && !Array.isArray(r)) {
|
|
9
|
-
for (const t in r)
|
|
10
|
-
if (t !== "default" && !(t in e)) {
|
|
11
|
-
const n = Object.getOwnPropertyDescriptor(r, t);
|
|
12
|
-
n && Object.defineProperty(e, t, n.get ? n : {
|
|
13
|
-
enumerable: !0,
|
|
14
|
-
get: /* @__PURE__ */ s(() => r[t], "get")
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
-
}
|
|
21
|
-
s(c, "_mergeNamespaces");
|
|
22
|
-
var a = u();
|
|
23
|
-
const m = /* @__PURE__ */ p(a), j = /* @__PURE__ */ c({
|
|
24
|
-
__proto__: null,
|
|
25
|
-
default: m
|
|
26
|
-
}, [a]);
|
|
27
|
-
export {
|
|
28
|
-
m as default,
|
|
29
|
-
j
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=jszip.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jszip.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jszip.min2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|