@owp/core 2.2.3 → 2.2.5

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 (88) hide show
  1. package/dist/_virtual/index11.js +2 -2
  2. package/dist/_virtual/index12.js +2 -2
  3. package/dist/_virtual/index13.js +2 -2
  4. package/dist/_virtual/index14.js +2 -2
  5. package/dist/_virtual/index15.js +2 -5
  6. package/dist/_virtual/index15.js.map +1 -1
  7. package/dist/_virtual/index16.js +2 -2
  8. package/dist/_virtual/index17.js +2 -2
  9. package/dist/_virtual/index5.js +5 -2
  10. package/dist/_virtual/index5.js.map +1 -1
  11. package/dist/_virtual/index6.js +2 -2
  12. package/dist/_virtual/index7.js +2 -2
  13. package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js +68 -149
  14. package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js.map +1 -1
  15. package/dist/components/OwpMrtTable/OwpMrtTable.js +186 -162
  16. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
  17. package/dist/components/OwpOptionSelector/OwpOptionSelector.js +52 -38
  18. package/dist/components/OwpOptionSelector/OwpOptionSelector.js.map +1 -1
  19. package/dist/components/OwpPageTitle/OwpPageTitle.js +74 -18
  20. package/dist/components/OwpPageTitle/OwpPageTitle.js.map +1 -1
  21. package/dist/components/OwpQuerySelector/OwpQuerySelector.js +232 -0
  22. package/dist/components/OwpQuerySelector/OwpQuerySelector.js.map +1 -0
  23. package/dist/components/OwpSearchFilter/OwpSearchFilter.js +44 -29
  24. package/dist/components/OwpSearchFilter/OwpSearchFilter.js.map +1 -1
  25. package/dist/components/OwpSection/OwpSection.js +102 -41
  26. package/dist/components/OwpSection/OwpSection.js.map +1 -1
  27. package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +381 -0
  28. package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -0
  29. package/dist/components/OwpSelectorBase/OwpSelectorBase.js +14 -0
  30. package/dist/components/OwpSelectorBase/OwpSelectorBase.js.map +1 -0
  31. package/dist/components/OwpSelectorBase/OwpSelectorSelect.js +152 -0
  32. package/dist/components/OwpSelectorBase/OwpSelectorSelect.js.map +1 -0
  33. package/dist/components/OwpSelectorBase/hooks/useOwpSelectorBase.js +120 -0
  34. package/dist/components/OwpSelectorBase/hooks/useOwpSelectorBase.js.map +1 -0
  35. package/dist/components/OwpSelectorBase/utils/querySelectorUtils.js +24 -0
  36. package/dist/components/OwpSelectorBase/utils/querySelectorUtils.js.map +1 -0
  37. package/dist/hooks/useHeaderWrapState.js +48 -0
  38. package/dist/hooks/useHeaderWrapState.js.map +1 -0
  39. package/dist/hooks.js +40 -38
  40. package/dist/hooks.js.map +1 -1
  41. package/dist/index.js +39 -37
  42. package/dist/index.js.map +1 -1
  43. package/dist/layout/components/navigation/vertical/NavVerticalLayout.js +63 -27
  44. package/dist/layout/components/navigation/vertical/NavVerticalLayout.js.map +1 -1
  45. package/dist/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/ArrowDropDown.js +9 -0
  46. package/dist/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/ArrowDropDown.js.map +1 -0
  47. package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isFunction.js +10 -0
  48. package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isFunction.js.map +1 -0
  49. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  50. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  51. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  52. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
  53. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  54. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  55. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  56. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  57. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  58. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  59. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  60. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  61. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  62. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  63. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  64. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
  65. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
  66. package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.js +1 -1
  67. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
  68. package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
  69. package/dist/owp-app.css +1 -1
  70. package/dist/types/components/OwpCommonCode/OwpCommonCodeSelector.d.ts +16 -6
  71. package/dist/types/components/OwpOptionSelector/OwpOptionSelector.d.ts +9 -8
  72. package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +6 -0
  73. package/dist/types/components/OwpQuerySelector/index.d.ts +2 -0
  74. package/dist/types/components/OwpQuerySelector/types/index.d.ts +1 -0
  75. package/dist/types/components/OwpQuerySelector/types/types.d.ts +42 -0
  76. package/dist/types/components/OwpSection/OwpSection.d.ts +3 -1
  77. package/dist/types/components/OwpSelectorBase/OwpSelectorAutocomplete.d.ts +11 -0
  78. package/dist/types/components/OwpSelectorBase/OwpSelectorBase.d.ts +6 -0
  79. package/dist/types/components/OwpSelectorBase/OwpSelectorSelect.d.ts +11 -0
  80. package/dist/types/components/OwpSelectorBase/hooks/useOwpSelectorBase.d.ts +6 -0
  81. package/dist/types/components/OwpSelectorBase/types/index.d.ts +1 -0
  82. package/dist/types/components/OwpSelectorBase/types/types.d.ts +59 -0
  83. package/dist/types/components/OwpSelectorBase/utils/index.d.ts +1 -0
  84. package/dist/types/components/OwpSelectorBase/utils/querySelectorUtils.d.ts +31 -0
  85. package/dist/types/hooks/index.d.ts +1 -0
  86. package/dist/types/hooks/useHeaderWrapState.d.ts +14 -0
  87. package/dist/types/index.d.ts +1 -0
  88. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- var a = {};
1
+ var r = {};
2
2
  export {
3
- a as __exports
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index11.js.map
@@ -1,5 +1,5 @@
1
- var a = {};
1
+ var r = {};
2
2
  export {
3
- a as __exports
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index12.js.map
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var a = {};
2
2
  export {
3
- r as __exports
3
+ a as __exports
4
4
  };
5
5
  //# sourceMappingURL=index13.js.map
@@ -1,5 +1,5 @@
1
- var e = {};
1
+ var a = {};
2
2
  export {
3
- e as __exports
3
+ a as __exports
4
4
  };
5
5
  //# sourceMappingURL=index14.js.map
@@ -1,8 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
3
- var p = /* @__PURE__ */ o();
4
- const s = /* @__PURE__ */ r(p);
1
+ var r = {};
5
2
  export {
6
- s as default
3
+ r as __exports
7
4
  };
8
5
  //# sourceMappingURL=index15.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index15.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index15.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +1,5 @@
1
- var p = { exports: {} };
1
+ var e = {};
2
2
  export {
3
- p as __module
3
+ e as __exports
4
4
  };
5
5
  //# sourceMappingURL=index16.js.map
@@ -1,5 +1,5 @@
1
- var e = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- e as __module
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index17.js.map
@@ -1,5 +1,8 @@
1
- var r = {};
1
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
+ import { __require as o } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
3
+ var p = /* @__PURE__ */ o();
4
+ const s = /* @__PURE__ */ r(p);
2
5
  export {
3
- r as __exports
6
+ s as default
4
7
  };
5
8
  //# sourceMappingURL=index5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var p = { exports: {} };
2
2
  export {
3
- r as __exports
3
+ p as __module
4
4
  };
5
5
  //# sourceMappingURL=index6.js.map
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var e = { exports: {} };
2
2
  export {
3
- r as __exports
3
+ e as __module
4
4
  };
5
5
  //# sourceMappingURL=index7.js.map
@@ -1,159 +1,78 @@
1
1
  var R = Object.defineProperty;
2
- var u = (l, t) => R(l, "name", { value: t, configurable: !0 });
3
- import { jsxs as S, jsx 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 { useGetCommonCodeList as b } from "../../hooks/useCommonCodeList.js";
5
- import { useOwpTranslation as X } from "../../hooks/useOwpTranslation.js";
6
- import { FormControl as A, MenuItem as L, Checkbox as T, ListItemText as y, Select as j, InputLabel as F, FormHelperText as $ } from "@mui/material";
7
- import { useId as H, useMemo as x, useRef as D, useEffect as K } from "react";
8
- import { isFunction as V } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isFunction.js";
9
- import { isArray as w } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
10
- const P = "__SELECT_ALL__", C = /* @__PURE__ */ u((l, t) => l[t ? "IPX_COMMONCODE.DESCRIPTION" : "IPX_COMMONCODE.CODEID"], "getCommonCodeValue"), q = /* @__PURE__ */ u(({
11
- finalCommonCodeList: l,
12
- disableAllValueItem: t,
13
- useDescriptionValue: r,
14
- ...n
2
+ var O = (t, m) => R(t, "name", { value: m, configurable: !0 });
3
+ import { jsx as T } 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 { OwpSelectorBase as d } from "../OwpSelectorBase/OwpSelectorBase.js";
5
+ import { useGetCommonCodeList as j } from "../../hooks/useCommonCodeList.js";
6
+ import { useMemo as s } from "react";
7
+ import { isFunction as P } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isFunction.js";
8
+ const V = /* @__PURE__ */ O((t, m) => t[m ? "IPX_COMMONCODE.DESCRIPTION" : "IPX_COMMONCODE.CODEID"], "getCommonCodeValue"), k = /* @__PURE__ */ O(({
9
+ className: t,
10
+ codeId: m,
11
+ defaultValue: E,
12
+ description: e,
13
+ disableAllValueItem: I,
14
+ error: N,
15
+ filterOptions: n,
16
+ fullWidth: c,
17
+ helperText: i,
18
+ label: S,
19
+ multiple: L,
20
+ onChange: a,
21
+ required: X,
22
+ selectorType: _ = "select",
23
+ textFieldProps: C,
24
+ useValueKeyDescription: f,
25
+ value: b,
26
+ variant: u,
27
+ ...l
15
28
  }) => {
16
- const { t: f } = X(), p = t ? n.value : n.value ?? "";
17
- return /* @__PURE__ */ S(
18
- j,
19
- {
20
- displayEmpty: !0,
21
- ...n,
22
- value: p,
23
- children: [
24
- !t && /* @__PURE__ */ i(L, { value: "", children: f("Common.전체") }),
25
- l.map((s) => /* @__PURE__ */ i(
26
- L,
27
- {
28
- value: C(s, r),
29
- children: s["IPX_COMMONCODE.CODENM"]
30
- },
31
- `common-code-selector-item-${C(s, r)}`
32
- ))
33
- ]
34
- }
29
+ const r = j(), M = s(() => (r == null ? void 0 : r[m]) ?? [], [m, r]), D = s(() => {
30
+ const o = P(n) ? M.filter(n) : M;
31
+ return e ? o.filter(
32
+ (v) => v["IPX_COMMONCODE.DESCRIPTION"] === e
33
+ ) : o;
34
+ }, [M, e, n]), w = s(
35
+ () => D.map((o) => ({
36
+ label: o["IPX_COMMONCODE.CODENM"],
37
+ raw: o,
38
+ value: V(o, f)
39
+ })),
40
+ [D, f]
35
41
  );
36
- }, "OwpSingleCommonCodeSelect"), W = /* @__PURE__ */ u(({
37
- finalCommonCodeList: l,
38
- disableAllValueItem: t,
39
- useDescriptionValue: r,
40
- defaultValue: n,
41
- name: f,
42
- onChange: p,
43
- value: s,
44
- ...N
45
- }) => {
46
- const { t: O } = X(), E = D(!1), h = D(s == null || s === ""), M = D(p);
47
- M.current = p;
48
- const o = s ?? n, m = l.map(
49
- (e) => C(e, r)
50
- ), a = m.join(","), _ = /* @__PURE__ */ u((e) => ({
51
- target: {
52
- value: e,
53
- name: f ?? ""
54
- }
55
- }), "createChangeEvent"), v = /* @__PURE__ */ u((e, g = null) => {
56
- const c = M.current;
57
- c && c(_(e), g);
58
- }, "emitChange"), d = !t && h.current && (o == null || o === "") ? m : o ? o.split(",").filter((e) => e !== "").map((e) => e.trim()) : [];
59
- K(() => {
60
- t || E.current || o != null && o !== "" || a && (E.current = !0, h.current = !1, v(a));
61
- }, [o, t, a]);
62
- const I = !!d.length && m.every((e) => d.includes(e));
63
- return /* @__PURE__ */ S(
64
- j,
42
+ return /* @__PURE__ */ T(
43
+ d,
65
44
  {
66
- displayEmpty: !0,
67
- ...N,
68
- multiple: !0,
69
- value: d,
70
- renderValue: /* @__PURE__ */ u((e) => {
71
- const g = w(e) ? e.map((c) => String(c)) : [];
72
- return I ? O("Common.전체") : l.filter((c) => g.includes(C(c, r))).map((c) => c["IPX_COMMONCODE.CODENM"]).join(", ");
73
- }, "renderValue"),
74
- onChange: /* @__PURE__ */ u((e, g) => {
75
- const c = w(e.target.value) ? e.target.value.map((z) => String(z)) : String(e.target.value).split(","), k = c.includes(P) ? I ? "" : a : c.join(",");
76
- h.current = !1, v(k, g);
45
+ allValueMode: "empty",
46
+ className: t,
47
+ defaultValue: E,
48
+ disableAllValueItem: I,
49
+ disabled: l.disabled,
50
+ error: N,
51
+ fullWidth: c,
52
+ helperText: i,
53
+ label: S,
54
+ multiple: L,
55
+ name: l.name,
56
+ onChange: /* @__PURE__ */ O((o) => {
57
+ a == null || a(o, null);
77
58
  }, "onChange"),
78
- children: [
79
- !t && /* @__PURE__ */ S(L, { value: P, children: [
80
- /* @__PURE__ */ i(T, { size: "small", checked: I }),
81
- /* @__PURE__ */ i(y, { primary: O("Common.전체") })
82
- ] }),
83
- l.map((e) => /* @__PURE__ */ S(
84
- L,
85
- {
86
- value: C(e, r),
87
- children: [
88
- /* @__PURE__ */ i(
89
- T,
90
- {
91
- size: "small",
92
- checked: d.includes(C(e, r))
93
- }
94
- ),
95
- /* @__PURE__ */ i(y, { primary: e["IPX_COMMONCODE.CODENM"] })
96
- ]
97
- },
98
- `common-code-selector-item-${C(e, r)}`
99
- ))
100
- ]
101
- }
102
- );
103
- }, "OwpMultiCommonCodeSelect"), B = /* @__PURE__ */ u((l) => {
104
- const {
105
- codeId: t,
106
- description: r,
107
- label: n,
108
- fullWidth: f,
109
- required: p,
110
- error: s,
111
- helperText: N,
112
- filterOptions: O,
113
- multiple: E,
114
- useValueKeyDescription: h,
115
- ...M
116
- } = l, o = `owp-common-code-select-label-${H()}`, m = b(), a = x(() => (m == null ? void 0 : m[t]) ?? [], [t, m]), _ = h, v = x(() => {
117
- const d = V(O) ? a.filter(O) : a;
118
- return r ? d.filter(
119
- (I) => I["IPX_COMMONCODE.DESCRIPTION"] === r
120
- ) : d;
121
- }, [a, r, O]);
122
- return /* @__PURE__ */ S(
123
- A,
124
- {
125
- className: E ? "w-128" : "min-w-128",
126
- fullWidth: f,
127
- required: p,
128
- error: s,
129
- children: [
130
- n ? /* @__PURE__ */ i(F, { shrink: !0, id: o, children: n }) : null,
131
- E ? /* @__PURE__ */ i(
132
- W,
133
- {
134
- ...M,
135
- label: n,
136
- labelId: n ? o : void 0,
137
- finalCommonCodeList: v,
138
- useDescriptionValue: _
139
- }
140
- ) : /* @__PURE__ */ i(
141
- q,
142
- {
143
- ...M,
144
- label: n,
145
- labelId: n ? o : void 0,
146
- finalCommonCodeList: v,
147
- useDescriptionValue: _
148
- }
149
- ),
150
- N ? /* @__PURE__ */ i($, { children: N }) : null
151
- ]
59
+ options: w,
60
+ required: X,
61
+ selectProps: {
62
+ ...l,
63
+ variant: u
64
+ },
65
+ selectorType: _,
66
+ textFieldProps: {
67
+ ...C,
68
+ variant: (C == null ? void 0 : C.variant) ?? u
69
+ },
70
+ value: b
152
71
  }
153
72
  );
154
- }, "OwpCommonCodeSelector"), ne = B;
73
+ }, "OwpCommonCodeSelector"), H = k;
155
74
  export {
156
- ne as CommonCodeSelector,
157
- B as OwpCommonCodeSelector
75
+ H as CommonCodeSelector,
76
+ k as OwpCommonCodeSelector
158
77
  };
159
78
  //# sourceMappingURL=OwpCommonCodeSelector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OwpCommonCodeSelector.js","sources":["../../../src/components/OwpCommonCode/OwpCommonCodeSelector.tsx"],"sourcesContent":["import { useGetCommonCodeList } from '@/hooks/useCommonCodeList';\nimport { CommonCode } from '@/utils/commonCodeUtils';\nimport { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport {\n Checkbox,\n FormControl,\n FormHelperText,\n InputLabel,\n ListItemText,\n MenuItem,\n Select,\n SelectChangeEvent,\n SelectProps,\n} from '@mui/material';\nimport { isFunction } from 'es-toolkit';\nimport { isArray } from 'es-toolkit/compat';\nimport { type ReactNode, useEffect, useId, useMemo, useRef } from 'react';\n\nconst SELECT_ALL_TOKEN = '__SELECT_ALL__';\n\nexport type OwpCommonCodeSelectorProps = SelectProps<string> & {\n codeId: string;\n description?: string;\n useValueKeyDescription?: boolean;\n disableAllValueItem?: boolean;\n helperText?: string;\n filterOptions?: (commonCode: CommonCode) => boolean;\n};\n\ntype CommonCodeSelectChangeHandler = (event: SelectChangeEvent<string>, child: ReactNode) => void;\n\ntype OwpSingleCommonCodeSelectProps = Omit<OwpCommonCodeSelectorProps, 'codeId' | 'multiple'> & {\n finalCommonCodeList: CommonCode[];\n useDescriptionValue?: boolean;\n};\n\ntype OwpMultiCommonCodeSelectProps = Omit<\n OwpCommonCodeSelectorProps,\n 'codeId' | 'multiple' | 'value' | 'defaultValue' | 'onChange' | 'renderValue'\n> & {\n value?: string;\n defaultValue?: string;\n name?: string;\n onChange?: CommonCodeSelectChangeHandler;\n finalCommonCodeList: CommonCode[];\n useDescriptionValue?: boolean;\n};\n\n/**\n * 공통코드 한 건에서 Select value로 사용할 값을 반환합니다.\n * @param commonCode 공통코드 데이터\n * @param useDescriptionValue DESCRIPTION 값을 value로 사용할지 여부\n */\nconst getCommonCodeValue = (commonCode: CommonCode, useDescriptionValue?: boolean) => {\n return commonCode[useDescriptionValue ? 'IPX_COMMONCODE.DESCRIPTION' : 'IPX_COMMONCODE.CODEID'];\n};\n\n/**\n * 단일 선택용 공통코드 Select를 렌더링합니다.\n * @param props 단일 선택 Select props\n */\nconst OwpSingleCommonCodeSelect = ({\n finalCommonCodeList,\n disableAllValueItem,\n useDescriptionValue,\n ...commonCodeProps\n}: OwpSingleCommonCodeSelectProps) => {\n const { t } = useOwpTranslation();\n const value = disableAllValueItem ? commonCodeProps.value : (commonCodeProps.value ?? '');\n\n return (\n <Select\n displayEmpty\n {...(commonCodeProps as SelectProps<unknown>)}\n value={value as SelectProps<unknown>['value']}\n >\n {!disableAllValueItem && <MenuItem value=\"\">{t('Common.전체')}</MenuItem>}\n {finalCommonCodeList.map((commonCode) => (\n <MenuItem\n key={`common-code-selector-item-${getCommonCodeValue(commonCode, useDescriptionValue)}`}\n value={getCommonCodeValue(commonCode, useDescriptionValue)}\n >\n {commonCode['IPX_COMMONCODE.CODENM']}\n </MenuItem>\n ))}\n </Select>\n );\n};\n\n/**\n * 다중 선택용 공통코드 Select를 렌더링합니다.\n * @param props 다중 선택 Select props\n */\nconst OwpMultiCommonCodeSelect = ({\n finalCommonCodeList,\n disableAllValueItem,\n useDescriptionValue,\n defaultValue: initialValue,\n name,\n onChange,\n value: currentValue,\n ...selectProps\n}: OwpMultiCommonCodeSelectProps) => {\n const { t } = useOwpTranslation();\n\n const didInitializeAllValue = useRef(false);\n const shouldTreatEmptyAsAll = useRef(currentValue == null || currentValue === '');\n const onChangeRef = useRef<CommonCodeSelectChangeHandler | undefined>(onChange);\n\n onChangeRef.current = onChange;\n\n const normalizedValue = currentValue ?? initialValue;\n const commonCodeValueList = finalCommonCodeList.map((commonCode) =>\n getCommonCodeValue(commonCode, useDescriptionValue),\n );\n const allCommonCodeValue = commonCodeValueList.join(',');\n\n const createChangeEvent = (nextValue: string) => {\n return {\n target: {\n value: nextValue,\n name: name ?? '',\n },\n } as SelectChangeEvent<string>;\n };\n\n const emitChange = (nextValue: string, child: ReactNode = null) => {\n const changeHandler = onChangeRef.current;\n\n if (!changeHandler) {\n return;\n }\n\n changeHandler(createChangeEvent(nextValue), child);\n };\n\n const value =\n !disableAllValueItem &&\n shouldTreatEmptyAsAll.current &&\n (normalizedValue == null || normalizedValue === '')\n ? commonCodeValueList\n : normalizedValue\n ? normalizedValue.split(',').filter((item) => item !== '').map((item) => item.trim())\n : [];\n\n useEffect(() => {\n if (\n disableAllValueItem ||\n didInitializeAllValue.current ||\n (normalizedValue != null && normalizedValue !== '')\n ) {\n return;\n }\n\n if (!allCommonCodeValue) {\n return;\n }\n\n didInitializeAllValue.current = true;\n shouldTreatEmptyAsAll.current = false;\n emitChange(allCommonCodeValue);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [normalizedValue, disableAllValueItem, allCommonCodeValue]);\n\n const isAllSelected =\n Boolean(value.length) &&\n commonCodeValueList.every((commonCodeValue) => value.includes(commonCodeValue));\n\n const renderValue: NonNullable<SelectProps<unknown>['renderValue']> = (selected) => {\n const selectedValues = isArray(selected) ? selected.map((item) => String(item)) : [];\n\n if (isAllSelected) {\n return t('Common.전체');\n }\n\n return finalCommonCodeList\n .filter((commonCode) => selectedValues.includes(getCommonCodeValue(commonCode, useDescriptionValue)))\n .map((commonCode) => commonCode['IPX_COMMONCODE.CODENM'])\n .join(', ');\n };\n\n return (\n <Select\n displayEmpty\n {...(selectProps as SelectProps<unknown>)}\n multiple\n value={value as SelectProps<unknown>['value']}\n renderValue={renderValue}\n onChange={(event, child) => {\n const selectedValues = isArray(event.target.value)\n ? event.target.value.map((item) => String(item))\n : String(event.target.value).split(',');\n\n const nextValue = selectedValues.includes(SELECT_ALL_TOKEN)\n ? isAllSelected\n ? ''\n : allCommonCodeValue\n : selectedValues.join(',');\n\n shouldTreatEmptyAsAll.current = false;\n emitChange(nextValue, child as ReactNode);\n }}\n >\n {!disableAllValueItem && (\n <MenuItem value={SELECT_ALL_TOKEN}>\n <Checkbox size=\"small\" checked={isAllSelected} />\n <ListItemText primary={t('Common.전체')} />\n </MenuItem>\n )}\n {finalCommonCodeList.map((commonCode) => (\n <MenuItem\n key={`common-code-selector-item-${getCommonCodeValue(commonCode, useDescriptionValue)}`}\n value={getCommonCodeValue(commonCode, useDescriptionValue)}\n >\n <Checkbox\n size=\"small\"\n checked={value.includes(getCommonCodeValue(commonCode, useDescriptionValue))}\n />\n <ListItemText primary={commonCode['IPX_COMMONCODE.CODENM']} />\n </MenuItem>\n ))}\n </Select>\n );\n};\n\n/**\n * 공통코드 목록을 기반으로 단일/다중 선택 Select를 제공합니다.\n * @param props 공통코드 선택기 props\n */\nexport const OwpCommonCodeSelector = (props: OwpCommonCodeSelectorProps) => {\n const {\n codeId,\n description,\n label,\n fullWidth,\n required,\n error,\n helperText,\n filterOptions,\n multiple,\n useValueKeyDescription,\n ...commonCodeProps\n } = props;\n const labelId = `owp-common-code-select-label-${useId()}`;\n const commonCodeByGroupId = useGetCommonCodeList();\n const commonCodeList = useMemo(() => commonCodeByGroupId?.[codeId] ?? [], [codeId, commonCodeByGroupId]);\n const useDescriptionValue = useValueKeyDescription;\n\n const finalCommonCodeList = useMemo(() => {\n const filteredCommonCodeList = isFunction(filterOptions)\n ? commonCodeList.filter(filterOptions)\n : commonCodeList;\n\n if (description) {\n return filteredCommonCodeList.filter(\n (commonCode) => commonCode['IPX_COMMONCODE.DESCRIPTION'] === description,\n );\n }\n\n return filteredCommonCodeList;\n }, [commonCodeList, description, filterOptions]);\n\n return (\n <FormControl\n className={multiple ? 'w-128' : 'min-w-128'}\n fullWidth={fullWidth}\n required={required}\n error={error}\n >\n {label ? (\n <InputLabel shrink id={labelId}>\n {label}\n </InputLabel>\n ) : null}\n {multiple ? (\n <OwpMultiCommonCodeSelect\n {...commonCodeProps}\n label={label}\n labelId={label ? labelId : undefined}\n finalCommonCodeList={finalCommonCodeList}\n useDescriptionValue={useDescriptionValue}\n />\n ) : (\n <OwpSingleCommonCodeSelect\n {...commonCodeProps}\n label={label}\n labelId={label ? labelId : undefined}\n finalCommonCodeList={finalCommonCodeList}\n useDescriptionValue={useDescriptionValue}\n />\n )}\n {helperText ? <FormHelperText>{helperText}</FormHelperText> : null}\n </FormControl>\n );\n};\n\nexport const CommonCodeSelector = OwpCommonCodeSelector;\n"],"names":["SELECT_ALL_TOKEN","getCommonCodeValue","__name","commonCode","useDescriptionValue","OwpSingleCommonCodeSelect","finalCommonCodeList","disableAllValueItem","commonCodeProps","t","useOwpTranslation","value","jsxs","Select","jsx","MenuItem","OwpMultiCommonCodeSelect","initialValue","name","onChange","currentValue","selectProps","didInitializeAllValue","useRef","shouldTreatEmptyAsAll","onChangeRef","normalizedValue","commonCodeValueList","allCommonCodeValue","createChangeEvent","nextValue","emitChange","child","changeHandler","item","useEffect","isAllSelected","commonCodeValue","selected","selectedValues","isArray","event","Checkbox","ListItemText","OwpCommonCodeSelector","props","codeId","description","label","fullWidth","required","error","helperText","filterOptions","multiple","useValueKeyDescription","labelId","useId","commonCodeByGroupId","useGetCommonCodeList","commonCodeList","useMemo","filteredCommonCodeList","isFunction","FormControl","InputLabel","FormHelperText","CommonCodeSelector"],"mappings":";;;;;;;;;AAkBA,MAAMA,IAAmB,kBAmCnBC,IAAqB,gBAAAC,EAAA,CAACC,GAAwBC,MAC3CD,EAAWC,IAAsB,+BAA+B,uBAAuB,GADrE,uBAQrBC,IAA4B,gBAAAH,EAAA,CAAC;AAAA,EACjC,qBAAAI;AAAA,EACA,qBAAAC;AAAA,EACA,qBAAAH;AAAA,EACA,GAAGI;AACL,MAAsC;AACpC,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACRC,IAAQJ,IAA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onCodeSelector.tsx"],"sourcesContent":["import { OwpSelectorBase } from '@/components/OwpSelectorBase/OwpSelectorBase';\nimport type { OwpSelectorType } from '@/components/OwpSelectorBase/types';\nimport { useGetCommonCodeList } from '@/hooks/useCommonCodeList';\nimport type { CommonCode } from '@/utils/commonCodeUtils';\nimport { type SelectChangeEvent, type SelectProps, type TextFieldProps } from '@mui/material';\nimport { isFunction } from 'es-toolkit';\nimport { type ReactNode, useMemo } from 'react';\n\ntype CommonCodeSelectChangeHandler = (event: SelectChangeEvent<string>, child: ReactNode) => void;\n\nexport type OwpCommonCodeSelectorProps = Omit<\n SelectProps<string>,\n 'defaultValue' | 'multiple' | 'onChange' | 'renderValue' | 'value'\n> & {\n codeId: string;\n description?: string;\n useValueKeyDescription?: boolean;\n disableAllValueItem?: boolean;\n helperText?: string;\n filterOptions?: (commonCode: CommonCode) => boolean;\n defaultValue?: string;\n multiple?: boolean;\n onChange?: CommonCodeSelectChangeHandler;\n selectorType?: OwpSelectorType;\n textFieldProps?: Omit<TextFieldProps, 'defaultValue' | 'error' | 'helperText' | 'label' | 'onChange' | 'required' | 'value'>;\n value?: string;\n};\n\n/**\n * 공통코드 value 반환\n * @param commonCode 공통코드 데이터\n * @param useDescriptionValue DESCRIPTION value 사용 여부\n */\nconst getCommonCodeValue = (commonCode: CommonCode, useDescriptionValue?: boolean) => {\n return commonCode[useDescriptionValue ? 'IPX_COMMONCODE.DESCRIPTION' : 'IPX_COMMONCODE.CODEID'];\n};\n\n/**\n * 공통코드 선택기\n * @param props 공통코드 선택기 props\n */\nexport const OwpCommonCodeSelector = ({\n className,\n codeId,\n defaultValue,\n description,\n disableAllValueItem,\n error,\n filterOptions,\n fullWidth,\n helperText,\n label,\n multiple,\n onChange,\n required,\n selectorType = 'select',\n textFieldProps,\n useValueKeyDescription,\n value,\n variant,\n ...selectProps\n}: OwpCommonCodeSelectorProps) => {\n const commonCodeByGroupId = useGetCommonCodeList();\n const commonCodeList = useMemo(() => commonCodeByGroupId?.[codeId] ?? [], [codeId, commonCodeByGroupId]);\n const finalCommonCodeList = useMemo(() => {\n const filteredCommonCodeList = isFunction(filterOptions)\n ? commonCodeList.filter(filterOptions)\n : commonCodeList;\n\n if (description) {\n return filteredCommonCodeList.filter(\n (commonCode) => commonCode['IPX_COMMONCODE.DESCRIPTION'] === description,\n );\n }\n\n return filteredCommonCodeList;\n }, [commonCodeList, description, filterOptions]);\n const options = useMemo(\n () =>\n finalCommonCodeList.map((commonCode) => ({\n label: commonCode['IPX_COMMONCODE.CODENM'],\n raw: commonCode,\n value: getCommonCodeValue(commonCode, useValueKeyDescription),\n })),\n [finalCommonCodeList, useValueKeyDescription],\n );\n\n return (\n <OwpSelectorBase\n allValueMode=\"empty\"\n className={className}\n defaultValue={defaultValue}\n disableAllValueItem={disableAllValueItem}\n disabled={selectProps.disabled}\n error={error}\n fullWidth={fullWidth}\n helperText={helperText}\n label={label}\n multiple={multiple}\n name={selectProps.name}\n onChange={(event) => {\n onChange?.(event as SelectChangeEvent<string>, null);\n }}\n options={options}\n required={required}\n selectProps={{\n ...selectProps,\n variant,\n }}\n selectorType={selectorType}\n textFieldProps={{\n ...textFieldProps,\n variant: textFieldProps?.variant ?? variant,\n }}\n value={value}\n />\n );\n};\n\nexport const CommonCodeSelector = OwpCommonCodeSelector;\n"],"names":["getCommonCodeValue","__name","commonCode","useDescriptionValue","OwpCommonCodeSelector","className","codeId","defaultValue","description","disableAllValueItem","error","filterOptions","fullWidth","helperText","label","multiple","onChange","required","selectorType","textFieldProps","useValueKeyDescription","value","variant","selectProps","commonCodeByGroupId","useGetCommonCodeList","commonCodeList","useMemo","finalCommonCodeList","filteredCommonCodeList","isFunction","options","jsx","OwpSelectorBase","event","CommonCodeSelector"],"mappings":";;;;;;;AAiCA,MAAMA,IAAqB,gBAAAC,EAAA,CAACC,GAAwBC,MAC3CD,EAAWC,IAAsB,+BAA+B,uBAAuB,GADrE,uBAQdC,IAAwB,gBAAAH,EAAA,CAAC;AAAA,EACpC,WA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