@owp/core 2.5.20 → 2.5.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dayjs.d.ts +4 -0
  2. package/dayjs.js +2 -0
  3. package/dist/_virtual/isBetween.js +8 -0
  4. package/dist/_virtual/isBetween.js.map +1 -0
  5. package/dist/_virtual/isBetween2.js +5 -0
  6. package/dist/_virtual/isBetween2.js.map +1 -0
  7. package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js +26 -26
  8. package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js.map +1 -1
  9. package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js +29 -29
  10. package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js.map +1 -1
  11. package/dist/components/OwpMrtTable/OwpMrtTable.js +144 -141
  12. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
  13. package/dist/components/OwpOptionSelector/OwpOptionSelector.js +20 -20
  14. package/dist/components/OwpOptionSelector/OwpOptionSelector.js.map +1 -1
  15. package/dist/components/OwpPageContent/OwpPageContent.js +20 -19
  16. package/dist/components/OwpPageContent/OwpPageContent.js.map +1 -1
  17. package/dist/components/OwpPicker/OwpDatePicker.js +216 -235
  18. package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
  19. package/dist/components/OwpPicker/OwpDateRangePicker.js +21 -21
  20. package/dist/components/OwpPicker/OwpDateRangePicker.js.map +1 -1
  21. package/dist/components/OwpPicker/OwpTimePicker.js +310 -340
  22. package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
  23. package/dist/components/OwpPicker/OwpWeekDatePicker.js +28 -29
  24. package/dist/components/OwpPicker/OwpWeekDatePicker.js.map +1 -1
  25. package/dist/components/OwpPicker/OwpYearRangePicker.js +1 -1
  26. package/dist/components/OwpPicker/OwpYearRangePicker.js.map +1 -1
  27. package/dist/components/OwpPicker/constants/index.js +21 -6
  28. package/dist/components/OwpPicker/constants/index.js.map +1 -1
  29. package/dist/components/OwpPicker/internal/DatePickerInput.js +5 -5
  30. package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -1
  31. package/dist/components/OwpPicker/utils/index.js +22 -0
  32. package/dist/components/OwpPicker/utils/index.js.map +1 -0
  33. package/dist/components/OwpQuerySelector/OwpQuerySelector.js +218 -205
  34. package/dist/components/OwpQuerySelector/OwpQuerySelector.js.map +1 -1
  35. package/dist/components/OwpSection/OwpSection.js +118 -111
  36. package/dist/components/OwpSection/OwpSection.js.map +1 -1
  37. package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +59 -59
  38. package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
  39. package/dist/components/OwpSelectorBase/OwpSelectorSelect.js +88 -85
  40. package/dist/components/OwpSelectorBase/OwpSelectorSelect.js.map +1 -1
  41. package/dist/components/OwpSelectorBase/hooks/useOwpSelectorBase.js +93 -93
  42. package/dist/components/OwpSelectorBase/hooks/useOwpSelectorBase.js.map +1 -1
  43. package/dist/components/OwpTable/OwpDataTable.js +329 -317
  44. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  45. package/dist/components/OwpTable/OwpFieldTable.js +77 -74
  46. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  47. package/dist/components/OwpTable/OwpTable.js +66 -219
  48. package/dist/components/OwpTable/OwpTable.js.map +1 -1
  49. package/dist/components/OwpTable/internal/OwpTableBase.js +195 -0
  50. package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -0
  51. package/dist/components/OwpTable/internal/OwpTableTotalCount.js +23 -0
  52. package/dist/components/OwpTable/internal/OwpTableTotalCount.js.map +1 -0
  53. package/dist/components/OwpTable/internal/defaultTableStyle.js +10 -10
  54. package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
  55. package/dist/components/OwpTable/utils/tableSx.js +9 -0
  56. package/dist/components/OwpTable/utils/tableSx.js.map +1 -0
  57. package/dist/components/OwpTextField/OwpTextMaskField.js +95 -86
  58. package/dist/components/OwpTextField/OwpTextMaskField.js.map +1 -1
  59. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +1 -1
  60. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  61. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +164 -179
  62. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
  63. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +10 -10
  64. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  65. package/dist/components/OwpYesNoSelector/OwpYesNoSelector.js.map +1 -1
  66. package/dist/dayjs.js +18 -0
  67. package/dist/dayjs.js.map +1 -0
  68. package/dist/features/themePreview/components/ThemePreviewCanvas.js +22 -22
  69. package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
  70. package/dist/features/themePreview/configs/table.js +4 -4
  71. package/dist/features/themePreview/configs/table.js.map +1 -1
  72. package/dist/features/themePreview/hooks/useThemePreview.js +16 -16
  73. package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
  74. package/dist/hooks/{useInitCommonCodes.js → internal/useInitCommonCodes.js} +6 -6
  75. package/dist/hooks/internal/useInitCommonCodes.js.map +1 -0
  76. package/dist/hooks/internal/useMinimumVisibleState.js +31 -0
  77. package/dist/hooks/internal/useMinimumVisibleState.js.map +1 -0
  78. package/dist/hooks/useInitApp.js +17 -14
  79. package/dist/hooks/useInitApp.js.map +1 -1
  80. package/dist/hooks.js +49 -51
  81. package/dist/hooks.js.map +1 -1
  82. package/dist/index.js +91 -94
  83. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/isBetween.js +23 -0
  84. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/isBetween.js.map +1 -0
  85. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
  86. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  87. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  88. package/dist/types/components/OwpCommonCode/OwpCommonCodeQuerySelector.d.ts +3 -3
  89. package/dist/types/components/OwpCommonCode/OwpCommonCodeSelector.d.ts +3 -3
  90. package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +1 -0
  91. package/dist/types/components/OwpOptionSelector/OwpOptionSelector.d.ts +2 -2
  92. package/dist/types/components/OwpPicker/OwpDatePicker.d.ts +1 -1
  93. package/dist/types/components/OwpPicker/OwpTimePicker.d.ts +2 -2
  94. package/dist/types/components/OwpPicker/constants/index.d.ts +15 -0
  95. package/dist/types/components/OwpPicker/utils/index.d.ts +6 -0
  96. package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +1 -1
  97. package/dist/types/components/OwpQuerySelector/types/types.d.ts +1 -0
  98. package/dist/types/components/OwpSection/OwpSection.d.ts +9 -3
  99. package/dist/types/components/OwpSelectorBase/hooks/useOwpSelectorBase.d.ts +1 -1
  100. package/dist/types/components/OwpSelectorBase/types/types.d.ts +1 -1
  101. package/dist/types/components/OwpTable/OwpDataTable.d.ts +5 -1
  102. package/dist/types/components/OwpTable/OwpFieldTable.d.ts +7 -1
  103. package/dist/types/components/OwpTable/OwpTable.d.ts +6 -38
  104. package/dist/types/components/OwpTable/internal/OwpTableBase.d.ts +34 -0
  105. package/dist/types/components/OwpTable/internal/OwpTableTotalCount.d.ts +9 -0
  106. package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +4 -2
  107. package/dist/types/components/OwpTable/utils/tableSx.d.ts +11 -0
  108. package/dist/types/components/OwpTextField/OwpTextMaskField.d.ts +3 -3
  109. package/dist/types/components/OwpYesNoSelector/OwpYesNoSelector.d.ts +1 -1
  110. package/dist/types/dayjs.d.ts +18 -0
  111. package/dist/types/hooks/index.d.ts +0 -1
  112. package/dist/types/hooks/internal/useMinimumVisibleState.d.ts +7 -0
  113. package/dist/types/utils/dayjsBrowser.d.ts +1 -7
  114. package/dist/types/utils/formatDateToYmd.d.ts +1 -1
  115. package/dist/utils/formatDateToYmd.js +3 -3
  116. package/dist/utils/formatDateToYmd.js.map +1 -1
  117. package/dist/utils/treeGridExportExcelUtil.js +1 -1
  118. package/dist/utils/treeGridExportExcelUtil.js.map +1 -1
  119. package/dist/utils/zipUtil.js +3 -3
  120. package/dist/utils/zipUtil.js.map +1 -1
  121. package/package.json +3 -1
  122. package/dist/hooks/useInitCommonCodes.js.map +0 -1
  123. package/dist/utils/dayjsBrowser.js +0 -16
  124. package/dist/utils/dayjsBrowser.js.map +0 -1
  125. /package/dist/types/hooks/{useInitCommonCodes.d.ts → internal/useInitCommonCodes.d.ts} +0 -0
@@ -1,41 +1,43 @@
1
- var Po = Object.defineProperty;
2
- var t = (o, r) => Po(o, "name", { value: r, configurable: !0 });
1
+ var Mo = Object.defineProperty;
2
+ var t = (o, r) => Mo(o, "name", { value: r, configurable: !0 });
3
3
  import { jsx as s, jsxs as N, Fragment as I } 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 Mo from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDropDownRounded.js";
5
- import Ro from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UnfoldMoreRounded.js";
6
- import ho from "@mui/material/GlobalStyles";
7
- import { resolveOwpGridTheme as Bo } from "../../constants/gridTheme.js";
8
- import { getTreeGridFontFaceStyles as Ho } from "../../constants/treeGrid.js";
9
- import { useGetCurrentLanguage as Io } from "../../hooks/useCurrentLanguage.js";
10
- import { useGetCurrentSettings as ko } from "../../hooks/useOwpSettings.js";
11
- import { useOwpTranslation as zo } from "../../hooks/useOwpTranslation.js";
4
+ import Ro from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDropDownRounded.js";
5
+ import ho from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UnfoldMoreRounded.js";
6
+ import Bo from "@mui/material/GlobalStyles";
7
+ import { resolveOwpGridTheme as Ho } from "../../constants/gridTheme.js";
8
+ import { getTreeGridFontFaceStyles as Io } from "../../constants/treeGrid.js";
9
+ import { useGetCurrentLanguage as ko } from "../../hooks/useCurrentLanguage.js";
10
+ import { useGetCurrentSettings as zo } from "../../hooks/useOwpSettings.js";
11
+ import { useOwpTranslation as Lo } from "../../hooks/useOwpTranslation.js";
12
12
  import { clsx as Fo } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
13
- import { MaterialReactTable as U, useMaterialReactTable as Lo, MRT_BottomToolbar as Oo } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js";
13
+ import { MaterialReactTable as V, useMaterialReactTable as Oo, MRT_BottomToolbar as Ao } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js";
14
14
  import { MRT_Localization_KO as Do } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/locales/ko/index.esm.js";
15
15
  import { useMemo as $ } from "react";
16
- import { TREEGRID_TABLE_BODY_BORDER_COLOR as x, TREEGRID_TABLE_HEADER_BORDER_COLOR as _, getTreeGridHeaderCellSx as Go, getTreeGridContainerSx as z, getTreeGridBodyRowSx as Ao, getTreeGridBodyCellSx as Eo, getTreeGridTypographySx as Co } from "../OwpTable/internal/treeGridTableStyle.js";
17
- import { OwpTableTotalCount as Wo } from "../OwpTable/OwpTable.js";
18
- import { OwpMrtTableNoDataOverlay as No } from "./internal/OwpMrtTableNoDataOverlay.js";
19
- import $o from "./internal/OwpMrtTableTopToolbar.js";
16
+ import { TREEGRID_TABLE_BODY_BORDER_COLOR as x, TREEGRID_TABLE_HEADER_BORDER_COLOR as _, getTreeGridHeaderCellSx as Go, getTreeGridContainerSx as z, getTreeGridBodyRowSx as Eo, getTreeGridBodyCellSx as Co, getTreeGridTypographySx as Wo } from "../OwpTable/internal/treeGridTableStyle.js";
17
+ import { DEFAULT_TABLE_RADIUS as No } from "../OwpTable/internal/defaultTableStyle.js";
18
+ import { OwpTableTotalCount as $o } from "../OwpTable/internal/OwpTableTotalCount.js";
19
+ import { toTableRadiusCssValue as _o } from "../OwpTable/utils/tableSx.js";
20
+ import { OwpMrtTableNoDataOverlay as yo } from "./internal/OwpMrtTableNoDataOverlay.js";
21
+ import jo from "./internal/OwpMrtTableTopToolbar.js";
20
22
  import { isArray as h } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
21
23
  import { defaults as y } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/defaults.js";
22
- import { isNumber as _o } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isNumber.js";
24
+ import { isNumber as Uo } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isNumber.js";
23
25
  import { OwpSvgIcon as c } from "../OwpSvgIcon/OwpSvgIcon.js";
24
- const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
25
- ...Co(
26
+ const Vo = "#cbd5e1", Ko = /* @__PURE__ */ t((o, r) => ({
27
+ ...Wo(
26
28
  (r == null ? void 0 : r.fontSize) ?? o.header.fontSize,
27
29
  (r == null ? void 0 : r.fontWeight) ?? o.header.fontWeight
28
30
  ),
29
31
  color: (r == null ? void 0 : r.color) ?? o.header.color
30
- }), "getResolvedTreeGridHeaderTextSx"), Vo = /* @__PURE__ */ t((o) => ({
32
+ }), "getResolvedTreeGridHeaderTextSx"), qo = /* @__PURE__ */ t((o) => ({
31
33
  color: o == null ? void 0 : o.color,
32
34
  fontSize: o == null ? void 0 : o.fontSize,
33
35
  fontWeight: o == null ? void 0 : o.fontWeight
34
36
  }), "getHeaderCellTextStyleSx"), K = /* @__PURE__ */ t((o) => o != null && o.height ? {
35
37
  height: o.height,
36
38
  minHeight: o.height
37
- } : void 0, "getHeaderCellHeightStyleSx"), F = /* @__PURE__ */ t((o) => o != null && o.backgroundColor ? `${o.backgroundColor} !important` : void 0, "getHeaderCellBackgroundColor"), q = /* @__PURE__ */ t((o) => {
38
- const r = F(o), e = Vo(o), a = K(o), u = o != null && o.height ? "100%" : void 0;
39
+ } : void 0, "getHeaderCellHeightStyleSx"), L = /* @__PURE__ */ t((o) => o != null && o.backgroundColor ? `${o.backgroundColor} !important` : void 0, "getHeaderCellBackgroundColor"), q = /* @__PURE__ */ t((o) => {
40
+ const r = L(o), e = qo(o), a = K(o), u = o != null && o.height ? "100%" : void 0;
39
41
  return {
40
42
  ...e,
41
43
  ...a,
@@ -73,7 +75,7 @@ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
73
75
  color: o != null && o.color ? `${o.color} !important` : void 0
74
76
  }
75
77
  };
76
- }, "getHeaderCellOverrideSx"), Uo = /* @__PURE__ */ t((...o) => {
78
+ }, "getHeaderCellOverrideSx"), Xo = /* @__PURE__ */ t((...o) => {
77
79
  const r = o.flatMap((e) => e ? h(e) ? e : [e] : []);
78
80
  if (r.length !== 0)
79
81
  return (e) => r.reduce((a, u) => {
@@ -83,15 +85,15 @@ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
83
85
  ...l
84
86
  };
85
87
  }, {});
86
- }, "mergeSxValues"), Ko = /* @__PURE__ */ t((o, r) => typeof o == "function" ? o(r) : o, "resolvePropValue"), qo = /* @__PURE__ */ t((...o) => {
88
+ }, "mergeSxValues"), Yo = /* @__PURE__ */ t((o, r) => typeof o == "function" ? o(r) : o, "resolvePropValue"), Jo = /* @__PURE__ */ t((...o) => {
87
89
  const r = o.filter(Boolean), e = r.reduce((l, f) => ({
88
90
  ...l,
89
91
  ...f
90
- }), {}), a = Fo(r.map((l) => l.className)), u = Uo(...r.map((l) => l.sx));
92
+ }), {}), a = Fo(r.map((l) => l.className)), u = Xo(...r.map((l) => l.sx));
91
93
  return a && (e.className = a), u && (e.sx = u), e;
92
- }, "mergeComponentProps"), p = /* @__PURE__ */ t((o, ...r) => qo(
93
- ...r.map((e) => Ko(e, o))
94
- ), "mergeResolvedProps"), Xo = {
94
+ }, "mergeComponentProps"), p = /* @__PURE__ */ t((o, ...r) => Jo(
95
+ ...r.map((e) => Yo(e, o))
96
+ ), "mergeResolvedProps"), Qo = {
95
97
  ArrowDownwardIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(c, { size: 20, ...o, children: "heroicons-outline:arrow-down-circle" }), "ArrowDownwardIcon"),
96
98
  ClearAllIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:adjustments-horizontal" }), "ClearAllIcon"),
97
99
  DensityLargeIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:bars-3-bottom-left" }), "DensityLargeIcon"),
@@ -110,19 +112,19 @@ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
110
112
  SortIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(c, { size: 20, ...o, children: "heroicons-outline:arrows-up-down" }), "SortIcon"),
111
113
  PushPinIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(c, { size: 20, ...o, children: "heroicons-outline:bookmark" }), "PushPinIcon"),
112
114
  VisibilityOffIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:eye-slash" }), "VisibilityOffIcon")
113
- }, Yo = /* @__PURE__ */ t((o) => /* @__PURE__ */ s(Mo, { fontSize: "small", ...o }), "TreeGridArrowDownwardIcon"), Jo = /* @__PURE__ */ t((o) => {
115
+ }, Zo = /* @__PURE__ */ t((o) => /* @__PURE__ */ s(Ro, { fontSize: "small", ...o }), "TreeGridArrowDownwardIcon"), So = /* @__PURE__ */ t((o) => {
114
116
  const { direction: r, ...e } = o;
115
- return /* @__PURE__ */ s(Ro, { fontSize: "small", ...e });
116
- }, "TreeGridSyncAltIcon"), Qo = {
117
- ArrowDownwardIcon: Yo,
118
- SyncAltIcon: Jo
119
- }, Zo = {
117
+ return /* @__PURE__ */ s(ho, { fontSize: "small", ...e });
118
+ }, "TreeGridSyncAltIcon"), ot = {
119
+ ArrowDownwardIcon: Zo,
120
+ SyncAltIcon: So
121
+ }, tt = {
120
122
  className: "flex items-center min-h-56 h-56"
121
- }, So = {
123
+ }, et = {
122
124
  elevation: 0,
123
125
  square: !0,
124
126
  className: "flex flex-col flex-auto h-full"
125
- }, ot = /* @__PURE__ */ t((o) => ({
127
+ }, rt = /* @__PURE__ */ t((o) => ({
126
128
  sx: {
127
129
  ...z(o),
128
130
  display: "flex",
@@ -132,25 +134,25 @@ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
132
134
  borderRadius: 0,
133
135
  boxShadow: "none"
134
136
  }
135
- }), "getTreeGridPaperProps"), tt = {
137
+ }), "getTreeGridPaperProps"), it = {
136
138
  sx: {
137
139
  border: 0
138
140
  }
139
- }, et = /* @__PURE__ */ t(() => ({
141
+ }, nt = /* @__PURE__ */ t(() => ({
140
142
  sx: {
141
143
  borderTop: `1px solid ${x}`,
142
144
  borderRight: `1px solid ${x}`,
143
145
  borderLeft: `1px solid ${x}`
144
146
  }
145
- }), "getTotalCountFooterBorderlessContainerProps"), rt = {
147
+ }), "getTotalCountFooterBorderlessContainerProps"), st = {
146
148
  className: "flex-auto"
147
- }, it = {
149
+ }, at = /* @__PURE__ */ t((o) => ({
148
150
  square: !1,
149
151
  sx: {
150
- borderRadius: 2,
152
+ borderRadius: _o(o),
151
153
  overflow: "hidden"
152
154
  }
153
- }, nt = {
155
+ }), "getTableRadiusPaperProps"), lt = {
154
156
  sx: {
155
157
  borderRadius: "inherit"
156
158
  }
@@ -158,27 +160,27 @@ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
158
160
  width: w,
159
161
  minWidth: w,
160
162
  maxWidth: w
161
- }, st = {
163
+ }, ct = {
162
164
  sx: {
163
165
  flex: 1,
164
166
  minHeight: 0,
165
167
  overflowX: "hidden",
166
168
  overflowY: "auto"
167
169
  }
168
- }, at = /* @__PURE__ */ t((o) => ({
170
+ }, ut = /* @__PURE__ */ t((o) => ({
169
171
  sx: {
170
172
  backgroundColor: o == null ? void 0 : o.backgroundColor,
171
173
  boxShadow: "none"
172
174
  }
173
175
  }), "getTreeGridHeadRowProps"), j = {
174
176
  className: "w-48"
175
- }, V = {
177
+ }, U = {
176
178
  sx: {
177
179
  display: "flex",
178
180
  m: 0,
179
181
  mx: "auto"
180
182
  }
181
- }, lt = /* @__PURE__ */ t((o) => ({
183
+ }, dt = /* @__PURE__ */ t((o) => ({
182
184
  sx: {
183
185
  ...z(o),
184
186
  borderSpacing: 0,
@@ -211,7 +213,7 @@ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
211
213
  borderRight: "none"
212
214
  }
213
215
  }
214
- }), "getTreeGridTableProps"), ct = {
216
+ }), "getTreeGridTableProps"), bt = {
215
217
  sx: {
216
218
  "& .MuiTableHead-root .MuiTableCell-root": {
217
219
  borderTop: "none"
@@ -227,13 +229,13 @@ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
227
229
  borderRight: "none"
228
230
  }
229
231
  }
230
- }, ut = {
232
+ }, pt = {
231
233
  sx: {
232
234
  "& .MuiTableBody-root .MuiTableRow-root:last-of-type .MuiTableCell-root": {
233
235
  borderBottom: "none"
234
236
  }
235
237
  }
236
- }, dt = /* @__PURE__ */ t(({
238
+ }, ft = /* @__PURE__ */ t(({
237
239
  row: o,
238
240
  table: r
239
241
  }) => {
@@ -253,8 +255,8 @@ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
253
255
  height: o.getIsPinned() ? `${e === "comfortable" ? 53 : 69}px` : void 0
254
256
  }
255
257
  };
256
- }, "getDefaultBodyRowProps"), bt = /* @__PURE__ */ t(({ column: o }, r) => {
257
- const e = F(r);
258
+ }, "getDefaultBodyRowProps"), mt = /* @__PURE__ */ t(({ column: o }, r) => {
259
+ const e = L(r);
258
260
  return {
259
261
  sx: {
260
262
  "& .Mui-TableHeadCell-Content-Labels": {
@@ -276,15 +278,15 @@ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
276
278
  backgroundColor: /* @__PURE__ */ t((a) => e ?? (o.getIsPinned() ? a.palette.background.paper : "inherit"), "backgroundColor")
277
279
  }
278
280
  };
279
- }, "getDefaultHeadCellProps"), pt = /* @__PURE__ */ t(({ column: o }, r, e) => {
280
- const a = o.id === "mrt-row-select", u = jo(r, e), l = (e == null ? void 0 : e.color) ?? yo, f = K(e), i = e != null && e.height ? "100%" : void 0;
281
+ }, "getDefaultHeadCellProps"), gt = /* @__PURE__ */ t(({ column: o }, r, e) => {
282
+ const a = o.id === "mrt-row-select", u = Ko(r, e), l = (e == null ? void 0 : e.color) ?? Vo, f = K(e), i = e != null && e.height ? "100%" : void 0;
281
283
  return {
282
284
  align: "center",
283
285
  sx: {
284
286
  ...a ? X : {},
285
287
  ...u,
286
288
  ...q(e),
287
- backgroundColor: F(e),
289
+ backgroundColor: L(e),
288
290
  "& .Mui-TableHeadCell-Content": {
289
291
  ...u,
290
292
  ...f,
@@ -361,8 +363,8 @@ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
361
363
  } : void 0
362
364
  }
363
365
  };
364
- }, "getTreeGridHeadCellProps"), ft = /* @__PURE__ */ t(({ column: o }, r) => {
365
- const e = { ...Eo(r) };
366
+ }, "getTreeGridHeadCellProps"), Tt = /* @__PURE__ */ t(({ column: o }, r) => {
367
+ const e = { ...Co(r) };
366
368
  return Reflect.deleteProperty(e, "padding"), Reflect.deleteProperty(e, "borderBottom"), Reflect.deleteProperty(e, "borderLeft"), Reflect.deleteProperty(e, "borderRight"), o.id !== "mrt-row-select" ? {
367
369
  sx: e
368
370
  } : {
@@ -381,15 +383,15 @@ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
381
383
  "tbody td textarea",
382
384
  'tbody td [contenteditable="true"]',
383
385
  'tbody td [role="combobox"]'
384
- ].join(", "), Y = /* @__PURE__ */ t((o) => o.tabIndex < 0 || o.getAttribute("aria-disabled") === "true" || o.getAttribute("aria-readonly") === "true" || (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement) && (o.disabled || o.readOnly) || o instanceof HTMLSelectElement && o.disabled || o instanceof HTMLInputElement && ["button", "checkbox", "file", "hidden", "radio", "reset", "submit"].includes(o.type) ? !1 : o.getClientRects().length > 0, "isTabNavigableTableBodyField"), mt = /* @__PURE__ */ t((o) => {
386
+ ].join(", "), Y = /* @__PURE__ */ t((o) => o.tabIndex < 0 || o.getAttribute("aria-disabled") === "true" || o.getAttribute("aria-readonly") === "true" || (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement) && (o.disabled || o.readOnly) || o instanceof HTMLSelectElement && o.disabled || o instanceof HTMLInputElement && ["button", "checkbox", "file", "hidden", "radio", "reset", "submit"].includes(o.type) ? !1 : o.getClientRects().length > 0, "isTabNavigableTableBodyField"), xt = /* @__PURE__ */ t((o) => {
385
387
  if (!(o instanceof Element))
386
388
  return null;
387
389
  const r = o.matches(k) ? o : o.closest(k);
388
390
  return r instanceof HTMLElement && Y(r) ? r : null;
389
- }, "getCurrentTableBodyField"), gt = /* @__PURE__ */ t((o) => {
391
+ }, "getCurrentTableBodyField"), wt = /* @__PURE__ */ t((o) => {
390
392
  if (o.key !== "Tab" || o.altKey || o.ctrlKey || o.metaKey)
391
393
  return;
392
- const r = mt(o.target);
394
+ const r = xt(o.target);
393
395
  if (!r)
394
396
  return;
395
397
  const e = r.closest("table");
@@ -405,8 +407,8 @@ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
405
407
  document.contains(l) && l.focus();
406
408
  }));
407
409
  }, "handleTableBodyFieldTabNavigation");
408
- function Tt(o) {
409
- const { t: r } = zo(), e = ko(), {
410
+ function vt(o) {
411
+ const { t: r } = Lo(), e = zo(), {
410
412
  canHideTotalCountFooterBorder: a = !1,
411
413
  canUseNoDataOverlay: u = !1,
412
414
  canUseTableRadius: l = !1,
@@ -415,29 +417,30 @@ function Tt(o) {
415
417
  columns: J,
416
418
  data: P,
417
419
  headerCellStyle: d,
418
- totalCount: L,
419
- ...Q
420
+ tableBorderRadius: Q = No,
421
+ totalCount: F,
422
+ ...Z
420
423
  } = o, {
421
- icons: Z,
422
- initialState: S,
423
- muiBottomToolbarProps: oo,
424
- muiSelectAllCheckboxProps: to,
425
- muiSelectCheckboxProps: eo,
424
+ icons: S,
425
+ initialState: oo,
426
+ muiBottomToolbarProps: to,
427
+ muiSelectAllCheckboxProps: eo,
428
+ muiSelectCheckboxProps: ro,
426
429
  displayColumnDefOptions: v,
427
- muiTableBodyCellProps: ro,
428
- muiTableBodyRowProps: io,
429
- muiTableContainerProps: no,
430
- muiTableHeadCellProps: so,
431
- muiTableHeadRowProps: ao,
432
- muiTablePaperProps: lo,
433
- muiTableProps: co,
430
+ muiTableBodyCellProps: io,
431
+ muiTableBodyRowProps: no,
432
+ muiTableContainerProps: so,
433
+ muiTableHeadCellProps: ao,
434
+ muiTableHeadRowProps: lo,
435
+ muiTablePaperProps: co,
436
+ muiTableProps: uo,
434
437
  renderBottomToolbar: M,
435
- renderEmptyRowsFallback: uo,
436
- ...bo
437
- } = Q, O = h(P) ? P : [], b = $(
438
+ renderEmptyRowsFallback: bo,
439
+ ...po
440
+ } = Z, O = h(P) ? P : [], b = $(
438
441
  () => {
439
442
  var n, m;
440
- return Bo((m = (n = e == null ? void 0 : e.theme) == null ? void 0 : n.main) == null ? void 0 : m.grid);
443
+ return Ho((m = (n = e == null ? void 0 : e.theme) == null ? void 0 : n.main) == null ? void 0 : m.grid);
441
444
  },
442
445
  [e]
443
446
  ), g = $(() => i ? {
@@ -446,7 +449,7 @@ function Tt(o) {
446
449
  fontSize: (d == null ? void 0 : d.fontSize) ?? b.header.fontSize,
447
450
  fontWeight: (d == null ? void 0 : d.fontWeight) ?? b.header.fontWeight,
448
451
  height: (d == null ? void 0 : d.height) ?? b.header.height
449
- } : d, [i, d, b]), po = h(P) && P.length === 0, D = f && (i || a), G = i || u, R = i && l, A = i ? {
452
+ } : d, [i, d, b]), fo = h(P) && P.length === 0, A = f && (i || a), D = i || u, R = i && l, G = i ? {
450
453
  ...v ?? {},
451
454
  "mrt-row-select": {
452
455
  header: "",
@@ -456,7 +459,7 @@ function Tt(o) {
456
459
  ...(v == null ? void 0 : v["mrt-row-select"]) ?? {}
457
460
  }
458
461
  } : v, E = y(
459
- { ...S ?? {} },
462
+ { ...oo ?? {} },
460
463
  {
461
464
  density: i ? "compact" : "spacious",
462
465
  showColumnFilters: !1,
@@ -472,12 +475,12 @@ function Tt(o) {
472
475
  }
473
476
  ), B = y(
474
477
  {
475
- ...bo,
476
- displayColumnDefOptions: A,
478
+ ...po,
479
+ displayColumnDefOptions: G,
477
480
  initialState: E
478
481
  },
479
482
  {
480
- displayColumnDefOptions: A,
483
+ displayColumnDefOptions: G,
481
484
  initialState: E,
482
485
  layoutMode: i ? "semantic" : void 0,
483
486
  enablePagination: i ? !1 : void 0,
@@ -535,126 +538,126 @@ function Tt(o) {
535
538
  pinnedRowBackgroundColor: n.palette.background.paper,
536
539
  pinnedColumnBackgroundColor: n.palette.background.paper
537
540
  }), "mrtTheme"),
538
- renderTopToolbar: /* @__PURE__ */ t((n) => /* @__PURE__ */ s($o, { ...n }), "renderTopToolbar")
541
+ renderTopToolbar: /* @__PURE__ */ t((n) => /* @__PURE__ */ s(jo, { ...n }), "renderTopToolbar")
539
542
  }
540
- ), C = B.enableBottomToolbar !== !1, fo = _o(L) ? L : O.length, mo = R && !f && !C, go = /* @__PURE__ */ t((n) => C ? typeof M == "function" ? M({ table: n }) : M ?? /* @__PURE__ */ s(Oo, { table: n }) : null, "renderBaseBottomToolbar"), To = /* @__PURE__ */ t((n) => {
543
+ ), C = B.enableBottomToolbar !== !1, mo = Uo(F) ? F : O.length, go = R && !f && !C, To = /* @__PURE__ */ t((n) => C ? typeof M == "function" ? M({ table: n }) : M ?? /* @__PURE__ */ s(Ao, { table: n }) : null, "renderBaseBottomToolbar"), xo = /* @__PURE__ */ t((n) => {
541
544
  const m = p(
542
545
  n,
543
- i ? (T) => ft(T, b) : void 0,
544
- ro
545
- ), { onKeyDownCapture: H, ...vo } = m;
546
+ i ? (T) => Tt(T, b) : void 0,
547
+ io
548
+ ), { onKeyDownCapture: H, ...Po } = m;
546
549
  return {
547
- ...vo,
550
+ ...Po,
548
551
  onKeyDownCapture: /* @__PURE__ */ t((T) => {
549
- H == null || H(T), !(T.defaultPrevented || T.isPropagationStopped()) && gt(T);
552
+ H == null || H(T), !(T.defaultPrevented || T.isPropagationStopped()) && wt(T);
550
553
  }, "onKeyDownCapture")
551
554
  };
552
- }, "getResolvedBodyCellProps"), xo = /* @__PURE__ */ t((n) => p(
555
+ }, "getResolvedBodyCellProps"), wo = /* @__PURE__ */ t((n) => p(
553
556
  n,
554
- dt,
557
+ ft,
555
558
  i ? () => ({
556
- sx: Ao(b, {
559
+ sx: Eo(b, {
557
560
  canHover: !0,
558
561
  selected: n.row.getIsSelected()
559
562
  })
560
563
  }) : void 0,
561
- io
562
- ), "getResolvedBodyRowProps"), wo = /* @__PURE__ */ t(() => {
564
+ no
565
+ ), "getResolvedBodyRowProps"), vo = /* @__PURE__ */ t(() => {
563
566
  if (g != null && g.backgroundColor)
564
567
  return {
565
568
  sx: {
566
569
  backgroundColor: `${g.backgroundColor} !important`
567
570
  }
568
571
  };
569
- }, "getResolvedHeadRowProps"), W = Lo({
572
+ }, "getResolvedHeadRowProps"), W = Oo({
570
573
  ...B,
571
574
  columns: J,
572
575
  data: O,
573
576
  enableBottomToolbar: f ? !0 : B.enableBottomToolbar,
574
577
  icons: {
575
- ...Xo,
576
- ...i ? Qo : {},
577
- ...Z ?? {}
578
+ ...Qo,
579
+ ...i ? ot : {},
580
+ ...S ?? {}
578
581
  },
579
582
  muiBottomToolbarProps: /* @__PURE__ */ t((n) => p(
580
583
  n,
581
- Zo,
582
- oo
584
+ tt,
585
+ to
583
586
  ), "muiBottomToolbarProps"),
584
587
  muiSelectAllCheckboxProps: /* @__PURE__ */ t((n) => p(
585
588
  n,
586
589
  j,
587
- i ? V : void 0,
588
- to
590
+ i ? U : void 0,
591
+ eo
589
592
  ), "muiSelectAllCheckboxProps"),
590
593
  muiSelectCheckboxProps: /* @__PURE__ */ t((n) => p(
591
594
  n,
592
595
  j,
593
- i ? V : void 0,
594
- eo
596
+ i ? U : void 0,
597
+ ro
595
598
  ), "muiSelectCheckboxProps"),
596
- muiTableBodyCellProps: /* @__PURE__ */ t((n) => To(n), "muiTableBodyCellProps"),
597
- muiTableBodyRowProps: /* @__PURE__ */ t((n) => xo(n), "muiTableBodyRowProps"),
599
+ muiTableBodyCellProps: /* @__PURE__ */ t((n) => xo(n), "muiTableBodyCellProps"),
600
+ muiTableBodyRowProps: /* @__PURE__ */ t((n) => wo(n), "muiTableBodyRowProps"),
598
601
  muiTableContainerProps: /* @__PURE__ */ t((n) => p(
599
602
  n,
600
- rt,
601
- i ? st : void 0,
603
+ st,
604
+ i ? ct : void 0,
602
605
  i ? { sx: z(b) } : void 0,
603
- l ? nt : void 0,
604
- no,
605
- D && !R ? et() : void 0
606
+ l ? lt : void 0,
607
+ so,
608
+ A && !R ? nt() : void 0
606
609
  ), "muiTableContainerProps"),
607
610
  muiTableHeadRowProps: /* @__PURE__ */ t((n) => p(
608
611
  n,
609
- i ? at(g) : void 0,
610
- wo(),
611
- ao
612
+ i ? ut(g) : void 0,
613
+ vo(),
614
+ lo
612
615
  ), "muiTableHeadRowProps"),
613
616
  muiTableHeadCellProps: /* @__PURE__ */ t((n) => p(
614
617
  n,
615
- (m) => bt(m, g),
616
- i ? (m) => pt(m, b, g) : void 0,
617
- so
618
+ (m) => mt(m, g),
619
+ i ? (m) => gt(m, b, g) : void 0,
620
+ ao
618
621
  ), "muiTableHeadCellProps"),
619
622
  muiTablePaperProps: /* @__PURE__ */ t((n) => p(
620
623
  n,
621
- So,
622
- i ? ot(b) : void 0,
623
- l ? it : void 0,
624
- lo,
625
- D && !R ? tt : void 0
624
+ et,
625
+ i ? rt(b) : void 0,
626
+ l ? at(Q) : void 0,
627
+ co,
628
+ A && !R ? it : void 0
626
629
  ), "muiTablePaperProps"),
627
630
  muiTableProps: /* @__PURE__ */ t((n) => p(
628
631
  n,
629
- i ? lt(b) : void 0,
630
- R ? ct : void 0,
631
- mo ? ut : void 0,
632
- co
632
+ i ? dt(b) : void 0,
633
+ R ? bt : void 0,
634
+ go ? pt : void 0,
635
+ uo
633
636
  ), "muiTableProps"),
634
637
  renderBottomToolbar: f ? ({ table: n }) => /* @__PURE__ */ N(I, { children: [
635
- go(n),
636
- /* @__PURE__ */ s(Wo, { totalCount: fo })
638
+ To(n),
639
+ /* @__PURE__ */ s($o, { totalCount: mo })
637
640
  ] }) : M,
638
- renderEmptyRowsFallback: G ? () => /* @__PURE__ */ s(I, {}) : uo
641
+ renderEmptyRowsFallback: D ? () => /* @__PURE__ */ s(I, {}) : bo
639
642
  });
640
643
  return /* @__PURE__ */ N(I, { children: [
641
- i && /* @__PURE__ */ s(ho, { styles: Ho() }),
642
- /* @__PURE__ */ s(U, { table: W }),
643
- G && /* @__PURE__ */ s(
644
- No,
644
+ i && /* @__PURE__ */ s(Bo, { styles: Io() }),
645
+ /* @__PURE__ */ s(V, { table: W }),
646
+ D && /* @__PURE__ */ s(
647
+ yo,
645
648
  {
646
- visible: po,
649
+ visible: fo,
647
650
  message: r("Message.조회된 결과가 없습니다."),
648
651
  table: W
649
652
  }
650
653
  )
651
654
  ] });
652
655
  }
653
- t(Tt, "DataTable");
654
- const xt = /* @__PURE__ */ t((o) => "table" in o && o.table !== void 0, "hasTableInstance"), yt = /* @__PURE__ */ t((o) => {
655
- const r = Io();
656
- return xt(o) ? /* @__PURE__ */ s(U, { table: o.table }) : /* @__PURE__ */ s(
657
- Tt,
656
+ t(vt, "DataTable");
657
+ const Pt = /* @__PURE__ */ t((o) => "table" in o && o.table !== void 0, "hasTableInstance"), qt = /* @__PURE__ */ t((o) => {
658
+ const r = ko();
659
+ return Pt(o) ? /* @__PURE__ */ s(V, { table: o.table }) : /* @__PURE__ */ s(
660
+ vt,
658
661
  {
659
662
  ...o,
660
663
  localization: o.localization ?? (r.id === "kr" ? Do : void 0)
@@ -662,6 +665,6 @@ const xt = /* @__PURE__ */ t((o) => "table" in o && o.table !== void 0, "hasTabl
662
665
  );
663
666
  }, "OwpMrtTable");
664
667
  export {
665
- yt as OwpMrtTable
668
+ qt as OwpMrtTable
666
669
  };
667
670
  //# sourceMappingURL=OwpMrtTable.js.map