@owp/core 2.5.14 → 2.5.16
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/components/OwpDialog/OwpAlertDialog.js +46 -0
- package/dist/components/OwpDialog/OwpAlertDialog.js.map +1 -0
- package/dist/components/OwpDialog/OwpDialog.js +41 -38
- package/dist/components/OwpDialog/OwpDialog.js.map +1 -1
- package/dist/components/OwpQuerySelector/OwpQuerySelector.js +184 -177
- package/dist/components/OwpQuerySelector/OwpQuerySelector.js.map +1 -1
- package/dist/components/OwpTable/internal/treeGridTableStyle.js +16 -21
- package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +145 -137
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +265 -178
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +141 -127
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js +7 -6
- package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js.map +1 -1
- package/dist/constants/treeGrid.js +32 -26
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewColorField.js +79 -75
- package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
- package/dist/hooks/useConfirm.js +55 -65
- package/dist/hooks/useConfirm.js.map +1 -1
- package/dist/index.js +69 -67
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.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/owp-app.css +1 -1
- package/dist/types/components/OwpDialog/OwpAlertDialog.d.ts +25 -0
- package/dist/types/components/OwpDialog/OwpDialog.d.ts +2 -0
- package/dist/types/components/OwpDialog/index.d.ts +1 -0
- package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +1 -1
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +2 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +6 -2
- package/dist/types/constants/treeGrid.d.ts +3 -3
- package/dist/types/hooks/useConfirm.d.ts +7 -14
- package/package.json +1 -1
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var l = (o, r) =>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"Roboto",
|
|
6
|
-
'"Helvetica"',
|
|
7
|
-
"Arial",
|
|
8
|
-
"sans-serif"
|
|
9
|
-
].join(", "), b = /* @__PURE__ */ l((o) => ({
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var l = (o, r) => g(o, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { TREEGRID_FONT_FAMILY_STACK as n } from "../../../constants/treeGrid.js";
|
|
4
|
+
const d = "#6F7F94", c = "#CDD8E4", C = n, R = /* @__PURE__ */ l((o) => ({
|
|
10
5
|
backgroundColor: o.body.backgroundColor,
|
|
11
6
|
color: o.body.color
|
|
12
7
|
}), "getTreeGridContainerSx"), a = /* @__PURE__ */ l((o, r = "normal") => ({
|
|
13
|
-
fontFamily:
|
|
8
|
+
fontFamily: C,
|
|
14
9
|
fontSize: o,
|
|
15
10
|
fontWeight: r,
|
|
16
11
|
lineHeight: "16px"
|
|
17
|
-
}), "getTreeGridTypographySx"),
|
|
12
|
+
}), "getTreeGridTypographySx"), u = /* @__PURE__ */ l((o) => ({
|
|
18
13
|
...a(o.cell.fontSize),
|
|
19
14
|
boxSizing: "border-box",
|
|
20
15
|
overflow: "hidden",
|
|
21
16
|
textOverflow: "ellipsis",
|
|
22
17
|
verticalAlign: "middle",
|
|
23
18
|
whiteSpace: "nowrap"
|
|
24
|
-
}), "getTreeGridCellBaseSx"),
|
|
19
|
+
}), "getTreeGridCellBaseSx"), x = /* @__PURE__ */ l((o) => ({
|
|
25
20
|
...a(
|
|
26
21
|
o.header.fontSize,
|
|
27
22
|
o.header.fontWeight
|
|
@@ -35,8 +30,8 @@ const d = "#6F7F94", c = "#CDD8E4", g = [
|
|
|
35
30
|
height: o.header.height,
|
|
36
31
|
minHeight: o.header.height,
|
|
37
32
|
padding: "7px 2px 6px 10px"
|
|
38
|
-
}), "getTreeGridHeaderCellSx"),
|
|
39
|
-
...
|
|
33
|
+
}), "getTreeGridHeaderCellSx"), k = /* @__PURE__ */ l((o) => ({
|
|
34
|
+
...u(o),
|
|
40
35
|
backgroundColor: o.row.backgroundColor,
|
|
41
36
|
borderBottom: `1px solid ${c}`,
|
|
42
37
|
borderLeft: 0,
|
|
@@ -44,7 +39,7 @@ const d = "#6F7F94", c = "#CDD8E4", g = [
|
|
|
44
39
|
color: o.body.color,
|
|
45
40
|
fontSize: o.cell.fontSize,
|
|
46
41
|
padding: "7px 10px 6px"
|
|
47
|
-
}), "getTreeGridBodyCellSx"),
|
|
42
|
+
}), "getTreeGridBodyCellSx"), B = /* @__PURE__ */ l((o, r) => {
|
|
48
43
|
const e = r != null && r.selected ? o.state.selectedRowBackgroundColor : o.row.backgroundColor, t = r != null && r.selected ? o.state.selectedRowBackgroundColor : o.state.hoverRowBackgroundColor;
|
|
49
44
|
return {
|
|
50
45
|
"& > td": {
|
|
@@ -71,13 +66,13 @@ const d = "#6F7F94", c = "#CDD8E4", g = [
|
|
|
71
66
|
}, "getTreeGridBodyRowSx");
|
|
72
67
|
export {
|
|
73
68
|
c as TREEGRID_TABLE_BODY_BORDER_COLOR,
|
|
74
|
-
|
|
69
|
+
C as TREEGRID_TABLE_FONT_FAMILY_STACK,
|
|
75
70
|
d as TREEGRID_TABLE_HEADER_BORDER_COLOR,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
k as getTreeGridBodyCellSx,
|
|
72
|
+
B as getTreeGridBodyRowSx,
|
|
73
|
+
u as getTreeGridCellBaseSx,
|
|
74
|
+
R as getTreeGridContainerSx,
|
|
75
|
+
x as getTreeGridHeaderCellSx,
|
|
81
76
|
a as getTreeGridTypographySx
|
|
82
77
|
};
|
|
83
78
|
//# sourceMappingURL=treeGridTableStyle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeGridTableStyle.js","sources":["../../../../src/components/OwpTable/internal/treeGridTableStyle.ts"],"sourcesContent":["import type { OwpResolvedGridThemeConfigType } from '@/constants/gridTheme';\n\nexport const TREEGRID_TABLE_HEADER_BORDER_COLOR = '#6F7F94';\nexport const TREEGRID_TABLE_BODY_BORDER_COLOR = '#CDD8E4';\nexport const TREEGRID_TABLE_FONT_FAMILY_STACK =
|
|
1
|
+
{"version":3,"file":"treeGridTableStyle.js","sources":["../../../../src/components/OwpTable/internal/treeGridTableStyle.ts"],"sourcesContent":["import { TREEGRID_FONT_FAMILY_STACK } from '@/constants/treeGrid';\nimport type { OwpResolvedGridThemeConfigType } from '@/constants/gridTheme';\n\nexport const TREEGRID_TABLE_HEADER_BORDER_COLOR = '#6F7F94';\nexport const TREEGRID_TABLE_BODY_BORDER_COLOR = '#CDD8E4';\nexport const TREEGRID_TABLE_FONT_FAMILY_STACK = TREEGRID_FONT_FAMILY_STACK;\n\n/**\n * TreeGrid 컨테이너 색상 매핑\n * @param treeGridTheme Grid theme 값\n */\nexport const getTreeGridContainerSx = (\n treeGridTheme: OwpResolvedGridThemeConfigType,\n) => ({\n backgroundColor: treeGridTheme.body.backgroundColor,\n color: treeGridTheme.body.color,\n});\n\n/**\n * TreeGrid 타이포그래피 매핑\n * @param fontSize 폰트 크기\n * @param fontWeight 폰트 두께\n */\nexport const getTreeGridTypographySx = (\n fontSize: number | string,\n fontWeight: number | string = 'normal',\n) => ({\n fontFamily: TREEGRID_TABLE_FONT_FAMILY_STACK,\n fontSize,\n fontWeight,\n lineHeight: '16px',\n});\n\n/**\n * TreeGrid 공통 셀 스타일 매핑\n * @param treeGridTheme Grid theme 값\n */\nexport const getTreeGridCellBaseSx = (treeGridTheme: OwpResolvedGridThemeConfigType) => ({\n ...getTreeGridTypographySx(treeGridTheme.cell.fontSize),\n boxSizing: 'border-box',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n verticalAlign: 'middle',\n whiteSpace: 'nowrap',\n});\n\n/**\n * TreeGrid header 셀 스타일 매핑\n * @param treeGridTheme Grid theme 값\n */\nexport const getTreeGridHeaderCellSx = (\n treeGridTheme: OwpResolvedGridThemeConfigType,\n) => ({\n ...getTreeGridTypographySx(\n treeGridTheme.header.fontSize,\n treeGridTheme.header.fontWeight,\n ),\n backgroundColor: treeGridTheme.header.backgroundColor,\n borderTop: `1px solid ${TREEGRID_TABLE_HEADER_BORDER_COLOR}`,\n borderBottom: `1px solid ${TREEGRID_TABLE_HEADER_BORDER_COLOR}`,\n borderLeft: 0,\n borderRight: `1px solid ${TREEGRID_TABLE_HEADER_BORDER_COLOR}`,\n color: treeGridTheme.header.color,\n height: treeGridTheme.header.height,\n minHeight: treeGridTheme.header.height,\n padding: '7px 2px 6px 10px',\n});\n\n/**\n * TreeGrid body 셀 스타일 매핑\n * @param treeGridTheme Grid theme 값\n */\nexport const getTreeGridBodyCellSx = (\n treeGridTheme: OwpResolvedGridThemeConfigType,\n) => ({\n ...getTreeGridCellBaseSx(treeGridTheme),\n backgroundColor: treeGridTheme.row.backgroundColor,\n borderBottom: `1px solid ${TREEGRID_TABLE_BODY_BORDER_COLOR}`,\n borderLeft: 0,\n borderRight: `1px solid ${TREEGRID_TABLE_BODY_BORDER_COLOR}`,\n color: treeGridTheme.body.color,\n fontSize: treeGridTheme.cell.fontSize,\n padding: '7px 10px 6px',\n});\n\n/**\n * TreeGrid body row 상태 스타일 매핑\n * @param treeGridTheme Grid theme 값\n * @param options hover, selected 여부\n */\nexport const getTreeGridBodyRowSx = (\n treeGridTheme: OwpResolvedGridThemeConfigType,\n options?: {\n canHover?: boolean;\n selected?: boolean;\n },\n) => {\n const defaultBackgroundColor = options?.selected\n ? treeGridTheme.state.selectedRowBackgroundColor\n : treeGridTheme.row.backgroundColor;\n const hoverBackgroundColor = options?.selected\n ? treeGridTheme.state.selectedRowBackgroundColor\n : treeGridTheme.state.hoverRowBackgroundColor;\n\n return {\n '& > td': {\n backgroundColor: defaultBackgroundColor,\n },\n ...(options?.canHover && {\n '&:hover > td': {\n backgroundColor: hoverBackgroundColor,\n },\n }),\n '&.Mui-selected > td': {\n backgroundColor: treeGridTheme.state.selectedRowBackgroundColor,\n },\n '&.Mui-selected:hover > td': {\n backgroundColor: treeGridTheme.state.selectedRowBackgroundColor,\n },\n '&:focus-within > td': {\n backgroundColor: treeGridTheme.state.focusedRowBackgroundColor,\n },\n '& > td:focus-within': {\n backgroundColor: treeGridTheme.state.focusedCellBackgroundColor,\n },\n };\n};\n"],"names":["TREEGRID_TABLE_HEADER_BORDER_COLOR","TREEGRID_TABLE_BODY_BORDER_COLOR","TREEGRID_TABLE_FONT_FAMILY_STACK","TREEGRID_FONT_FAMILY_STACK","getTreeGridContainerSx","__name","treeGridTheme","getTreeGridTypographySx","fontSize","fontWeight","getTreeGridCellBaseSx","getTreeGridHeaderCellSx","getTreeGridBodyCellSx","getTreeGridBodyRowSx","options","defaultBackgroundColor","hoverBackgroundColor"],"mappings":";;;AAGO,MAAMA,IAAqC,WACrCC,IAAmC,WACnCC,IAAmCC,GAMnCC,IAAyB,gBAAAC,EAAA,CACpCC,OACI;AAAA,EACJ,iBAAiBA,EAAc,KAAK;AAAA,EACpC,OAAOA,EAAc,KAAK;AAC5B,IALsC,2BAYzBC,IAA0B,gBAAAF,EAAA,CACrCG,GACAC,IAA8B,cAC1B;AAAA,EACJ,YAAYP;AAAA,EACZ,UAAAM;AAAA,EACA,YAAAC;AAAA,EACA,YAAY;AACd,IARuC,4BAc1BC,IAAwB,gBAAAL,EAAA,CAACC,OAAmD;AAAA,EACvF,GAAGC,EAAwBD,EAAc,KAAK,QAAQ;AAAA,EACtD,WAAW;AAAA,EACX,UAAU;AAAA,EACV,cAAc;AAAA,EACd,eAAe;AAAA,EACf,YAAY;AACd,IAPqC,0BAaxBK,IAA0B,gBAAAN,EAAA,CACrCC,OACI;AAAA,EACJ,GAAGC;AAAA,IACDD,EAAc,OAAO;AAAA,IACrBA,EAAc,OAAO;AAAA,EAAA;AAAA,EAEvB,iBAAiBA,EAAc,OAAO;AAAA,EACtC,WAAW,aAAaN,CAAkC;AAAA,EAC1D,cAAc,aAAaA,CAAkC;AAAA,EAC7D,YAAY;AAAA,EACZ,aAAa,aAAaA,CAAkC;AAAA,EAC5D,OAAOM,EAAc,OAAO;AAAA,EAC5B,QAAQA,EAAc,OAAO;AAAA,EAC7B,WAAWA,EAAc,OAAO;AAAA,EAChC,SAAS;AACX,IAhBuC,4BAsB1BM,IAAwB,gBAAAP,EAAA,CACnCC,OACI;AAAA,EACJ,GAAGI,EAAsBJ,CAAa;AAAA,EACtC,iBAAiBA,EAAc,IAAI;AAAA,EACnC,cAAc,aAAaL,CAAgC;AAAA,EAC3D,YAAY;AAAA,EACZ,aAAa,aAAaA,CAAgC;AAAA,EAC1D,OAAOK,EAAc,KAAK;AAAA,EAC1B,UAAUA,EAAc,KAAK;AAAA,EAC7B,SAAS;AACX,IAXqC,0BAkBxBO,IAAuB,gBAAAR,EAAA,CAClCC,GACAQ,MAIG;AACH,QAAMC,IAAyBD,KAAA,QAAAA,EAAS,WACpCR,EAAc,MAAM,6BACpBA,EAAc,IAAI,iBAChBU,IAAuBF,KAAA,QAAAA,EAAS,WAClCR,EAAc,MAAM,6BACpBA,EAAc,MAAM;AAExB,SAAO;AAAA,IACL,UAAU;AAAA,MACR,iBAAiBS;AAAA,IAAA;AAAA,IAEnB,IAAID,KAAA,gBAAAA,EAAS,aAAY;AAAA,MACvB,gBAAgB;AAAA,QACd,iBAAiBE;AAAA,MAAA;AAAA,IACnB;AAAA,IAEF,uBAAuB;AAAA,MACrB,iBAAiBV,EAAc,MAAM;AAAA,IAAA;AAAA,IAEvC,6BAA6B;AAAA,MAC3B,iBAAiBA,EAAc,MAAM;AAAA,IAAA;AAAA,IAEvC,uBAAuB;AAAA,MACrB,iBAAiBA,EAAc,MAAM;AAAA,IAAA;AAAA,IAEvC,uBAAuB;AAAA,MACrB,iBAAiBA,EAAc,MAAM;AAAA,IAAA;AAAA,EACvC;AAEJ,GApCoC;"}
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
var
|
|
2
|
-
var a = (r, l) =>
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { resolveOwpGridTheme as
|
|
5
|
-
import { resolveTreeGridColorNumber as O, TREEGRID_INPUT_CELL_COLOR as
|
|
6
|
-
import { useGetCurrentSettings as
|
|
7
|
-
import { useOwpTranslation as
|
|
8
|
-
import { useGetCurrentLanguage as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
1
|
+
var sr = Object.defineProperty;
|
|
2
|
+
var a = (r, l) => sr(r, "name", { value: l, configurable: !0 });
|
|
3
|
+
import { jsxs as ur, jsx as w } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
+
import { resolveOwpGridTheme as lr } from "../../constants/gridTheme.js";
|
|
5
|
+
import { resolveTreeGridColorNumber as O, TREEGRID_INPUT_CELL_COLOR as Me, TREEGRID_CELL_HIGHLIGHT_COLOR as Pe } from "../../constants/treeGrid.js";
|
|
6
|
+
import { useGetCurrentSettings as ar } from "../../hooks/useOwpSettings.js";
|
|
7
|
+
import { useOwpTranslation as cr } from "../../hooks/useOwpTranslation.js";
|
|
8
|
+
import { useGetCurrentLanguage as dr } from "../../hooks/useCurrentLanguage.js";
|
|
9
|
+
import { useConfirm as fr } from "../../hooks/useConfirm.js";
|
|
10
|
+
import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as Ne } from "../../utils/treeGridBodyRowsEvent.js";
|
|
11
|
+
import { getTreeGridPerfTimestamp as F, countTreeGridPerf as xe, logTreeGridPerf as Ve, measureTreeGridPerf as je } from "./internal/utils/perf.js";
|
|
12
|
+
import { useRef as e, useState as z, useMemo as mr, useEffect as h, useLayoutEffect as pr } from "react";
|
|
13
|
+
import Rr from "@mui/material/GlobalStyles";
|
|
14
|
+
import { useOwpTreeGridOverlayFrame as Tr } from "./internal/hooks/useOwpTreeGridOverlayFrame.js";
|
|
15
|
+
import { bindTreeGridEvents as yr, getTreeGridBodyDataCount as Y, buildTreeGridInitializationOptions as gr, hasTreeGridDisplayDataRows as qe, replaceTreeGridBodyData as vr, TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS as Gr } from "./internal/treeGridRuntime.js";
|
|
16
|
+
import { applyTreeGridLayoutToGrid as Cr } from "./internal/treeGridLayout.js";
|
|
17
|
+
import { OwpTreeGridLoadingOverlay as Er } from "./internal/OwpTreeGridLoadingOverlay.js";
|
|
18
|
+
import { OwpTreeGridNoDataOverlay as Br } from "./internal/OwpTreeGridNoDataOverlay.js";
|
|
19
|
+
import { resolveTreeGridColumnEditRuleLookup as Ue, createTreeGridColumnEditRulesState as Dr, syncTreeGridColumnEditRules as br } from "./internal/treeGridColumnEditRules.js";
|
|
20
|
+
import { createTreeGridThemeContainerStyle as Ir, TREE_GRID_THEME_WRAPPER_CLASS as Lr, TREE_GRID_THEME_TABLE_RADIUS_CLASS as _r, treeGridThemeStyles as wr } from "./internal/treeGridTheme.js";
|
|
21
|
+
import { isEmpty as A } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
|
|
22
|
+
import { delay as Or } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/delay.js";
|
|
22
23
|
import { isEqual as We } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
|
|
23
|
-
import { omit as
|
|
24
|
-
const
|
|
24
|
+
import { omit as hr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
|
|
25
|
+
const tt = /* @__PURE__ */ a(({
|
|
25
26
|
id: r = "treeGridWrapper",
|
|
26
27
|
containerStyle: l,
|
|
27
28
|
containerClassName: Fe,
|
|
28
|
-
toolbarRowBackgroundColor:
|
|
29
|
+
toolbarRowBackgroundColor: J,
|
|
29
30
|
className: ze,
|
|
30
31
|
style: Ye,
|
|
31
|
-
height:
|
|
32
|
-
width:
|
|
32
|
+
height: K = "100%",
|
|
33
|
+
width: Q = "100%",
|
|
33
34
|
canUseTableRadius: X = !1,
|
|
34
35
|
tableBorderRadius: Je = ".8rem",
|
|
35
36
|
layoutUrl: Ke,
|
|
36
37
|
layoutData: Qe,
|
|
37
|
-
dataUrl:
|
|
38
|
-
layoutOverrides:
|
|
38
|
+
dataUrl: Xe,
|
|
39
|
+
layoutOverrides: S,
|
|
39
40
|
data: o,
|
|
40
41
|
useDataUrl: Z,
|
|
41
42
|
onSelect: $,
|
|
@@ -48,50 +49,57 @@ const Xr = /* @__PURE__ */ a(({
|
|
|
48
49
|
onSave: se,
|
|
49
50
|
onReady: ue,
|
|
50
51
|
onAfterValueChanged: le,
|
|
51
|
-
columnEditRules:
|
|
52
|
+
columnEditRules: p,
|
|
52
53
|
highlightEditableCells: ae = !0,
|
|
53
54
|
highlightChangedCells: ce = !0,
|
|
54
55
|
syncDeletedRowCanEdit: de = !0,
|
|
55
|
-
|
|
56
|
+
confirmDeletedRowRemoval: Ze = !0,
|
|
57
|
+
loading: $e,
|
|
56
58
|
showLoading: n = !0
|
|
57
59
|
}) => {
|
|
58
|
-
var
|
|
59
|
-
const { t:
|
|
60
|
-
|
|
60
|
+
var we, Oe;
|
|
61
|
+
const { t: c } = cr(), { confirmDelete: er } = fr(), H = ar(), k = (Oe = (we = H == null ? void 0 : H.theme) == null ? void 0 : we.main) == null ? void 0 : Oe.grid, i = e(null), fe = e(null), me = e(null), M = e(null), P = e(S), pe = e(o), N = e(
|
|
62
|
+
p
|
|
61
63
|
), x = e(
|
|
62
|
-
|
|
63
|
-
hourMinuteInvalidText:
|
|
64
|
+
Ue(p, {
|
|
65
|
+
hourMinuteInvalidText: c("Message.시간은 HH:mm 형식으로 입력해주세요.")
|
|
64
66
|
})
|
|
65
|
-
), Re =
|
|
67
|
+
), Re = Ze ? async () => await er({
|
|
68
|
+
title: c("Message.삭제된 항목을 완전히 삭제하시겠습니까?"),
|
|
69
|
+
description: c("Message.취소하면 삭제 상태가 해제됩니다."),
|
|
70
|
+
okText: c("Button.완전 삭제")
|
|
71
|
+
}) ? "remove" : "undelete" : void 0, Te = e({
|
|
66
72
|
onSelect: $,
|
|
67
73
|
onRowClick: ee,
|
|
68
74
|
onRowAdd: re,
|
|
69
75
|
onRowDelete: te,
|
|
76
|
+
onBeforeRowUndelete: Re,
|
|
70
77
|
onRowUndelete: oe,
|
|
71
78
|
onRowChange: ne,
|
|
72
79
|
onClickButton: ie,
|
|
73
80
|
onSave: se,
|
|
74
81
|
onReady: ue,
|
|
75
82
|
onAfterValueChanged: le
|
|
76
|
-
}),
|
|
83
|
+
}), R = e(void 0), V = e(!1), E = e(void 0), B = e(void 0), D = e(
|
|
77
84
|
void 0
|
|
78
|
-
),
|
|
79
|
-
() =>
|
|
85
|
+
), ye = e(Dr()), rr = e(!1), T = e(0), d = e(null), y = e(void 0), g = e(void 0), ge = e(ae), ve = e(ce), Ge = e(de), [j, tr] = z(!1), [or, v] = z(!1), [nr, Ce] = z(!1), b = dr(), s = mr(
|
|
86
|
+
() => lr(k),
|
|
80
87
|
[k]
|
|
81
|
-
), Ce = e(
|
|
82
|
-
O(s.editable.backgroundColor) ?? O(ke)
|
|
83
88
|
), Ee = e(
|
|
89
|
+
O(s.editable.backgroundColor) ?? O(Me)
|
|
90
|
+
), Be = e(
|
|
84
91
|
s.changed.backgroundColor ?? Pe
|
|
85
|
-
),
|
|
86
|
-
|
|
92
|
+
), De = e(s.state.selectedCellBackgroundColor), be = e(s.state.hoverCellBackgroundColor), Ie = e(b.id), ir = n && o !== void 0 && j && B.current !== o, q = n && $e === !0 || n && (or || ir), U = !q && o !== void 0 && A(o) && !nr, Le = /* @__PURE__ */ a((t) => {
|
|
93
|
+
Ce(qe(t));
|
|
87
94
|
}, "syncHasDisplayDataRows");
|
|
88
|
-
|
|
89
|
-
hourMinuteInvalidText:
|
|
90
|
-
}),
|
|
95
|
+
P.current = S, pe.current = o, N.current = p, x.current = Ue(p, {
|
|
96
|
+
hourMinuteInvalidText: c("Message.시간은 HH:mm 형식으로 입력해주세요.")
|
|
97
|
+
}), ge.current = ae, ve.current = ce, Ge.current = de, Ee.current = O(s.editable.backgroundColor) ?? O(Me), Be.current = s.changed.backgroundColor ?? Pe, De.current = s.state.selectedCellBackgroundColor, be.current = s.state.hoverCellBackgroundColor, Te.current = {
|
|
91
98
|
onSelect: $,
|
|
92
99
|
onRowClick: ee,
|
|
93
100
|
onRowAdd: re,
|
|
94
101
|
onRowDelete: te,
|
|
102
|
+
onBeforeRowUndelete: Re,
|
|
95
103
|
onRowUndelete: oe,
|
|
96
104
|
onRowChange: ne,
|
|
97
105
|
onClickButton: ie,
|
|
@@ -99,163 +107,163 @@ const Xr = /* @__PURE__ */ a(({
|
|
|
99
107
|
onReady: ue,
|
|
100
108
|
onAfterValueChanged: le
|
|
101
109
|
};
|
|
102
|
-
const
|
|
103
|
-
visible: q ||
|
|
110
|
+
const _e = Tr({
|
|
111
|
+
visible: q || U,
|
|
104
112
|
containerRef: fe,
|
|
105
113
|
treeGridInstanceRef: i,
|
|
106
114
|
debugId: r
|
|
107
|
-
}),
|
|
108
|
-
T.current !== void 0 && (window.clearTimeout(T.current), T.current = void 0);
|
|
109
|
-
}, "clearBindingLoadingHideTimeout"), F = /* @__PURE__ */ a(() => {
|
|
115
|
+
}), I = /* @__PURE__ */ a(() => {
|
|
110
116
|
y.current !== void 0 && (window.clearTimeout(y.current), y.current = void 0);
|
|
117
|
+
}, "clearBindingLoadingHideTimeout"), W = /* @__PURE__ */ a(() => {
|
|
118
|
+
g.current !== void 0 && (window.clearTimeout(g.current), g.current = void 0);
|
|
111
119
|
}, "clearBodyReloadStartTimeout");
|
|
112
|
-
|
|
120
|
+
h(() => {
|
|
113
121
|
const t = /* @__PURE__ */ a((u) => {
|
|
114
|
-
var
|
|
115
|
-
((
|
|
122
|
+
var f;
|
|
123
|
+
((f = u.detail) == null ? void 0 : f.gridId) === r && Ce(qe(i.current));
|
|
116
124
|
}, "handleBodyRowsChanged");
|
|
117
|
-
return window.addEventListener(
|
|
118
|
-
window.removeEventListener(
|
|
125
|
+
return window.addEventListener(Ne, t), () => {
|
|
126
|
+
window.removeEventListener(Ne, t);
|
|
119
127
|
};
|
|
120
|
-
}, [r]),
|
|
121
|
-
n || (
|
|
122
|
-
}, [n]),
|
|
128
|
+
}, [r]), h(() => {
|
|
129
|
+
n || (W(), I(), d.current = null, v(!1));
|
|
130
|
+
}, [n]), h(() => {
|
|
123
131
|
var t;
|
|
124
|
-
if (
|
|
125
|
-
return
|
|
132
|
+
if (b.id !== Ie.current && !A(i.current) && ((t = i.current) == null || t.Dispose(), i.current = null, Ie.current = b.id), !!A(i.current))
|
|
133
|
+
return yr({
|
|
126
134
|
id: r,
|
|
127
|
-
latestEventHandlersRef:
|
|
128
|
-
highlightEditableCellsRef:
|
|
129
|
-
highlightChangedCellsRef:
|
|
135
|
+
latestEventHandlersRef: Te,
|
|
136
|
+
highlightEditableCellsRef: ge,
|
|
137
|
+
highlightChangedCellsRef: ve,
|
|
130
138
|
syncDeletedRowCanEditRef: Ge,
|
|
131
|
-
editableCellBackgroundColorValueRef:
|
|
132
|
-
changedCellBackgroundColorRef:
|
|
133
|
-
selectedCellBackgroundColorRef:
|
|
134
|
-
hoverCellBackgroundColorRef:
|
|
139
|
+
editableCellBackgroundColorValueRef: Ee,
|
|
140
|
+
changedCellBackgroundColorRef: Be,
|
|
141
|
+
selectedCellBackgroundColorRef: De,
|
|
142
|
+
hoverCellBackgroundColorRef: be,
|
|
135
143
|
treeGridInstanceRef: i,
|
|
136
144
|
treeGridInitStartedAtRef: me,
|
|
137
|
-
latestLayoutOverridesRef:
|
|
138
|
-
appliedLayoutOverridesRef:
|
|
139
|
-
appliedBodyDataPropRef:
|
|
145
|
+
latestLayoutOverridesRef: P,
|
|
146
|
+
appliedLayoutOverridesRef: E,
|
|
147
|
+
appliedBodyDataPropRef: B,
|
|
140
148
|
latestColumnEditRulesRef: N,
|
|
141
149
|
latestColumnEditRuleLookupRef: x,
|
|
142
|
-
appliedColumnEditRulesRef:
|
|
143
|
-
columnEditRulesStateRef:
|
|
144
|
-
hasAppliedInitialLayoutRef:
|
|
145
|
-
syncHasDisplayDataRows:
|
|
146
|
-
setIsTreeGridReady:
|
|
147
|
-
}), me.current =
|
|
150
|
+
appliedColumnEditRulesRef: D,
|
|
151
|
+
columnEditRulesStateRef: ye,
|
|
152
|
+
hasAppliedInitialLayoutRef: rr,
|
|
153
|
+
syncHasDisplayDataRows: Le,
|
|
154
|
+
setIsTreeGridReady: tr
|
|
155
|
+
}), me.current = F(), xe(r, "init"), Ve(r, "TreeGrid init start", {
|
|
148
156
|
useDataUrl: !!Z,
|
|
149
|
-
bodyRowCount:
|
|
157
|
+
bodyRowCount: Y(o)
|
|
150
158
|
}), window.TreeGrid(
|
|
151
|
-
|
|
159
|
+
gr({
|
|
152
160
|
id: r,
|
|
153
161
|
layoutUrl: Ke,
|
|
154
162
|
layoutData: Qe,
|
|
155
|
-
dataUrl:
|
|
163
|
+
dataUrl: Xe,
|
|
156
164
|
bodyData: o,
|
|
157
165
|
useDataUrl: Z,
|
|
158
|
-
width:
|
|
159
|
-
height:
|
|
160
|
-
languageId:
|
|
166
|
+
width: Q,
|
|
167
|
+
height: K,
|
|
168
|
+
languageId: b.id
|
|
161
169
|
}),
|
|
162
170
|
r,
|
|
163
171
|
r
|
|
164
172
|
), () => {
|
|
165
|
-
|
|
173
|
+
Or(() => {
|
|
166
174
|
var u;
|
|
167
175
|
(u = i.current) == null || u.Dispose();
|
|
168
176
|
}, 200);
|
|
169
177
|
};
|
|
170
|
-
}, []),
|
|
171
|
-
const t = i.current, u =
|
|
172
|
-
if (
|
|
178
|
+
}, []), pr(() => {
|
|
179
|
+
const t = i.current, u = P.current, G = pe.current, f = N.current;
|
|
180
|
+
if (A(t) || !j)
|
|
173
181
|
return;
|
|
174
|
-
const
|
|
175
|
-
if (!(!
|
|
176
|
-
if (
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
disableBodyReload: !!
|
|
182
|
+
const he = E.current !== u && !We(E.current, u), _ = B.current !== G && (!V.current || R.current !== G), Ae = D.current !== f && !We(D.current, f);
|
|
183
|
+
if (!(!he && !_ && !Ae)) {
|
|
184
|
+
if (he) {
|
|
185
|
+
const m = F();
|
|
186
|
+
Cr(t, u, _), E.current = u, je(r, "apply layout", m, {
|
|
187
|
+
disableBodyReload: !!_
|
|
180
188
|
});
|
|
181
189
|
}
|
|
182
|
-
if (
|
|
183
|
-
const
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
bodyRowCount:
|
|
187
|
-
}),
|
|
188
|
-
if (
|
|
190
|
+
if (_) {
|
|
191
|
+
const m = T.current + 1, Se = /* @__PURE__ */ a(() => {
|
|
192
|
+
const C = R.current;
|
|
193
|
+
g.current = void 0, M.current = F(), xe(r, "reload"), Ve(r, "ReloadBody start", {
|
|
194
|
+
bodyRowCount: Y(C)
|
|
195
|
+
}), vr(t, C, () => {
|
|
196
|
+
if (T.current !== m)
|
|
189
197
|
return;
|
|
190
|
-
|
|
191
|
-
bodyRowCount:
|
|
192
|
-
}),
|
|
193
|
-
const
|
|
194
|
-
if (!n ||
|
|
195
|
-
|
|
198
|
+
B.current = C, Le(t), je(r, "ReloadBody end", M.current, {
|
|
199
|
+
bodyRowCount: Y(C)
|
|
200
|
+
}), M.current = null, R.current === C && (R.current = void 0, V.current = !1);
|
|
201
|
+
const He = d.current;
|
|
202
|
+
if (!n || He === null) {
|
|
203
|
+
d.current = null, v(!1);
|
|
196
204
|
return;
|
|
197
205
|
}
|
|
198
|
-
const
|
|
206
|
+
const ke = Math.max(
|
|
199
207
|
0,
|
|
200
|
-
|
|
208
|
+
Gr - (Date.now() - He)
|
|
201
209
|
);
|
|
202
|
-
if (
|
|
203
|
-
|
|
210
|
+
if (I(), ke === 0) {
|
|
211
|
+
d.current = null, v(!1);
|
|
204
212
|
return;
|
|
205
213
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
},
|
|
214
|
+
y.current = window.setTimeout(() => {
|
|
215
|
+
T.current === m && (y.current = void 0, d.current = null, v(!1));
|
|
216
|
+
}, ke);
|
|
209
217
|
});
|
|
210
218
|
}, "runBodyReload");
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}, 0)) :
|
|
219
|
+
T.current = m, R.current = G, V.current = !0, n && G !== void 0 ? (W(), I(), d.current = Date.now(), v(!0), g.current = window.setTimeout(() => {
|
|
220
|
+
T.current === m && Se();
|
|
221
|
+
}, 0)) : Se();
|
|
214
222
|
}
|
|
215
|
-
|
|
223
|
+
Ae && (br(
|
|
216
224
|
t,
|
|
217
225
|
x.current,
|
|
218
|
-
|
|
219
|
-
),
|
|
226
|
+
ye.current
|
|
227
|
+
), D.current = f);
|
|
220
228
|
}
|
|
221
|
-
}, [j,
|
|
222
|
-
|
|
229
|
+
}, [j, S, o, p, n, r]), h(() => () => {
|
|
230
|
+
W(), I();
|
|
223
231
|
}, []);
|
|
224
|
-
const
|
|
225
|
-
width:
|
|
226
|
-
height:
|
|
232
|
+
const L = Ir({
|
|
233
|
+
width: Q,
|
|
234
|
+
height: K,
|
|
227
235
|
treeGridTheme: s,
|
|
228
236
|
gridThemeConfig: k,
|
|
229
237
|
containerStyle: l,
|
|
230
238
|
tableBorderRadius: X ? Je : void 0
|
|
231
239
|
});
|
|
232
|
-
return
|
|
240
|
+
return J !== void 0 && (L["--owp-tree-grid-toolbar-row-background-color"] = String(J)), (n || U) && (L.position = l != null && l.position && l.position !== "static" ? l.position : "relative", L.isolation = "isolate"), /* @__PURE__ */ ur(
|
|
233
241
|
"div",
|
|
234
242
|
{
|
|
235
243
|
ref: fe,
|
|
236
244
|
className: [
|
|
237
|
-
|
|
238
|
-
X &&
|
|
245
|
+
Lr,
|
|
246
|
+
X && _r,
|
|
239
247
|
Fe
|
|
240
248
|
].filter(Boolean).join(" "),
|
|
241
|
-
style:
|
|
249
|
+
style: L,
|
|
242
250
|
children: [
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
/* @__PURE__ */
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
-
|
|
251
|
+
/* @__PURE__ */ w(Rr, { styles: wr }),
|
|
252
|
+
/* @__PURE__ */ w("div", { id: r, className: ze, style: hr(Ye, ["height", "width"]) }),
|
|
253
|
+
/* @__PURE__ */ w(
|
|
254
|
+
Br,
|
|
247
255
|
{
|
|
248
|
-
visible:
|
|
249
|
-
message:
|
|
250
|
-
overlayFrame:
|
|
256
|
+
visible: U,
|
|
257
|
+
message: c("Message.조회된 결과가 없습니다."),
|
|
258
|
+
overlayFrame: _e
|
|
251
259
|
}
|
|
252
260
|
),
|
|
253
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ w(Er, { visible: q, overlayFrame: _e })
|
|
254
262
|
]
|
|
255
263
|
}
|
|
256
264
|
);
|
|
257
265
|
}, "OwpTreeGrid");
|
|
258
266
|
export {
|
|
259
|
-
|
|
267
|
+
tt as OwpTreeGrid
|
|
260
268
|
};
|
|
261
269
|
//# sourceMappingURL=OwpTreeGrid.js.map
|