@owp/core 2.5.12 → 2.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +4 -4
- package/dist/_virtual/index17.js +4 -4
- package/dist/_virtual/index18.js +4 -4
- package/dist/_virtual/index19.js +4 -4
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js +78 -0
- package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js.map +1 -0
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +79 -77
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
- package/dist/index.js +68 -65
- package/dist/index.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/node_modules/.pnpm/inko@1.1.1/node_modules/inko/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/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
- package/dist/types/components/OwpCommonCode/OwpCommonCodeQuerySelector.d.ts +32 -0
- package/dist/types/components/OwpCommonCode/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/_virtual/index11.js
CHANGED
package/dist/_virtual/index13.js
CHANGED
package/dist/_virtual/index14.js
CHANGED
package/dist/_virtual/index15.js
CHANGED
package/dist/_virtual/index16.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
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);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index16.js.map
|
package/dist/_virtual/index17.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var o =
|
|
4
|
-
const
|
|
2
|
+
import { __require as t } from "../node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/match/index.js";
|
|
3
|
+
var o = t();
|
|
4
|
+
const m = /* @__PURE__ */ r(o);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index17.js.map
|
package/dist/_virtual/index18.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var o =
|
|
4
|
-
const
|
|
2
|
+
import { __require as e } from "../node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/parse/index.js";
|
|
3
|
+
var o = e();
|
|
4
|
+
const s = /* @__PURE__ */ r(o);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index18.js.map
|
package/dist/_virtual/index19.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as t } from "../node_modules/.pnpm/react-autosuggest@10.1.0_react@19.2.4/node_modules/react-autosuggest/dist/index.js";
|
|
3
|
+
var o = t();
|
|
4
|
+
const i = /* @__PURE__ */ r(o);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index19.js.map
|
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
var q = Object.defineProperty;
|
|
2
|
+
var C = (e, r) => q(e, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { jsx as s } 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 { OwpQuerySelector as w } from "../OwpQuerySelector/OwpQuerySelector.js";
|
|
5
|
+
const K = /* @__PURE__ */ C((e, r) => e[r ? "IPX_COMMONCODE.DESCRIPTION" : "IPX_COMMONCODE.CODEID"], "getCommonCodeQueryValue"), T = /* @__PURE__ */ C(({
|
|
6
|
+
apiUrl: e = "/listIpxCommoncode",
|
|
7
|
+
className: r,
|
|
8
|
+
defaultValue: t,
|
|
9
|
+
description: D,
|
|
10
|
+
disableAllValueItem: y,
|
|
11
|
+
error: a,
|
|
12
|
+
filterOptions: I,
|
|
13
|
+
fullWidth: S,
|
|
14
|
+
groupId: E,
|
|
15
|
+
helperText: X,
|
|
16
|
+
label: _,
|
|
17
|
+
labelResolver: l,
|
|
18
|
+
multiple: c,
|
|
19
|
+
onChange: M,
|
|
20
|
+
query: f,
|
|
21
|
+
queryKeyDeps: P,
|
|
22
|
+
required: v,
|
|
23
|
+
responseListKey: Q,
|
|
24
|
+
selectorType: R = "select",
|
|
25
|
+
textFieldProps: o,
|
|
26
|
+
useValueKeyDescription: u,
|
|
27
|
+
value: b,
|
|
28
|
+
variant: N,
|
|
29
|
+
...m
|
|
30
|
+
}) => /* @__PURE__ */ s(
|
|
31
|
+
w,
|
|
32
|
+
{
|
|
33
|
+
apiUrl: e,
|
|
34
|
+
className: r,
|
|
35
|
+
defaultValue: t,
|
|
36
|
+
disableAllValueItem: y,
|
|
37
|
+
disabled: m.disabled,
|
|
38
|
+
error: a,
|
|
39
|
+
filterOptions: /* @__PURE__ */ C((O) => O.filter((d) => {
|
|
40
|
+
const n = d;
|
|
41
|
+
return D && n["IPX_COMMONCODE.DESCRIPTION"] !== D ? !1 : I ? I(n) : !0;
|
|
42
|
+
}), "filterOptions"),
|
|
43
|
+
fullWidth: S,
|
|
44
|
+
helperText: X,
|
|
45
|
+
label: _,
|
|
46
|
+
labelKey: "IPX_COMMONCODE.CODENM",
|
|
47
|
+
labelResolver: /* @__PURE__ */ C((O) => l ? l(O) : String(O["IPX_COMMONCODE.CODENM"] ?? ""), "labelResolver"),
|
|
48
|
+
multiple: c,
|
|
49
|
+
name: m.name,
|
|
50
|
+
onChange: /* @__PURE__ */ C((O) => {
|
|
51
|
+
M == null || M(O, null);
|
|
52
|
+
}, "onChange"),
|
|
53
|
+
query: {
|
|
54
|
+
...f ?? {},
|
|
55
|
+
...E ? { "IPX_COMMONCODE.GROUPID": E } : {}
|
|
56
|
+
},
|
|
57
|
+
queryKeyDeps: [D, u, ...P ?? []],
|
|
58
|
+
required: v,
|
|
59
|
+
responseListKey: Q,
|
|
60
|
+
selectProps: {
|
|
61
|
+
...m,
|
|
62
|
+
variant: N
|
|
63
|
+
},
|
|
64
|
+
selectorType: R,
|
|
65
|
+
textFieldProps: {
|
|
66
|
+
...o,
|
|
67
|
+
variant: (o == null ? void 0 : o.variant) ?? N
|
|
68
|
+
},
|
|
69
|
+
value: b,
|
|
70
|
+
valueKey: "IPX_COMMONCODE.CODEID",
|
|
71
|
+
valueResolver: /* @__PURE__ */ C((O) => String(K(O, u) ?? ""), "valueResolver")
|
|
72
|
+
}
|
|
73
|
+
), "OwpCommonCodeQuerySelector"), k = T;
|
|
74
|
+
export {
|
|
75
|
+
k as CommonCodeQuerySelector,
|
|
76
|
+
T as OwpCommonCodeQuerySelector
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=OwpCommonCodeQuerySelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwpCommonCodeQuerySelector.js","sources":["../../../src/components/OwpCommonCode/OwpCommonCodeQuerySelector.tsx"],"sourcesContent":["import { OwpQuerySelector } from '@/components/OwpQuerySelector';\nimport type { OwpSelectorType } from '@/components/OwpSelectorBase/types';\nimport type { CommonCode } from '@/utils/commonCodeUtils';\nimport { type SelectChangeEvent, type SelectProps, type TextFieldProps } from '@mui/material';\nimport { type ReactNode } from 'react';\n\nexport type OwpCommonCodeQueryItem = Partial<CommonCode> & Record<string, unknown>;\n\ntype CommonCodeQuerySelectChangeHandler = (\n event: SelectChangeEvent<string>,\n child: ReactNode,\n) => void;\n\nexport type OwpCommonCodeQuerySelectorProps = Omit<\n SelectProps<string>,\n 'defaultValue' | 'multiple' | 'onChange' | 'renderValue' | 'value'\n> & {\n apiUrl?: string;\n defaultValue?: string;\n description?: string;\n disableAllValueItem?: boolean;\n filterOptions?: (commonCode: OwpCommonCodeQueryItem) => boolean;\n groupId?: string;\n helperText?: string;\n labelResolver?: (commonCode: OwpCommonCodeQueryItem) => string;\n multiple?: boolean;\n onChange?: CommonCodeQuerySelectChangeHandler;\n query?: Record<string, unknown>;\n queryKeyDeps?: readonly unknown[];\n responseListKey?: string;\n selectorType?: OwpSelectorType;\n textFieldProps?: Omit<\n TextFieldProps,\n 'defaultValue' | 'error' | 'helperText' | 'label' | 'onChange' | 'required' | 'value'\n >;\n useValueKeyDescription?: boolean;\n value?: string;\n};\n\n/**\n * 원격 공통코드 value 반환\n * @param commonCode 공통코드 데이터\n * @param useDescriptionValue DESCRIPTION value 사용 여부\n */\nconst getCommonCodeQueryValue = (\n commonCode: OwpCommonCodeQueryItem,\n useDescriptionValue?: boolean,\n) => commonCode[useDescriptionValue ? 'IPX_COMMONCODE.DESCRIPTION' : 'IPX_COMMONCODE.CODEID'];\n\n/**\n * 원격 조회형 공통코드 선택기\n * @param props 원격 공통코드 선택기 props\n */\nexport const OwpCommonCodeQuerySelector = ({\n apiUrl = '/listIpxCommoncode',\n className,\n defaultValue,\n description,\n disableAllValueItem,\n error,\n filterOptions,\n fullWidth,\n groupId,\n helperText,\n label,\n labelResolver,\n multiple,\n onChange,\n query,\n queryKeyDeps,\n required,\n responseListKey,\n selectorType = 'select',\n textFieldProps,\n useValueKeyDescription,\n value,\n variant,\n ...selectProps\n}: OwpCommonCodeQuerySelectorProps) => {\n return (\n <OwpQuerySelector\n apiUrl={apiUrl}\n className={className}\n defaultValue={defaultValue}\n disableAllValueItem={disableAllValueItem}\n disabled={selectProps.disabled}\n error={error}\n filterOptions={(items) =>\n items.filter((item) => {\n const commonCode = item as OwpCommonCodeQueryItem;\n\n if (description && commonCode['IPX_COMMONCODE.DESCRIPTION'] !== description) {\n return false;\n }\n\n return filterOptions ? filterOptions(commonCode) : true;\n })\n }\n fullWidth={fullWidth}\n helperText={helperText}\n label={label}\n labelKey=\"IPX_COMMONCODE.CODENM\"\n labelResolver={(item) =>\n labelResolver\n ? labelResolver(item as OwpCommonCodeQueryItem)\n : String((item as OwpCommonCodeQueryItem)['IPX_COMMONCODE.CODENM'] ?? '')\n }\n multiple={multiple}\n name={selectProps.name}\n onChange={(event) => {\n onChange?.(event as SelectChangeEvent<string>, null);\n }}\n query={{\n ...(query ?? {}),\n ...(groupId ? { 'IPX_COMMONCODE.GROUPID': groupId } : {}),\n }}\n queryKeyDeps={[description, useValueKeyDescription, ...(queryKeyDeps ?? [])]}\n required={required}\n responseListKey={responseListKey}\n selectProps={{\n ...selectProps,\n variant,\n }}\n selectorType={selectorType}\n textFieldProps={{\n ...textFieldProps,\n variant: textFieldProps?.variant ?? variant,\n }}\n value={value}\n valueKey=\"IPX_COMMONCODE.CODEID\"\n valueResolver={(item) =>\n String(getCommonCodeQueryValue(item as OwpCommonCodeQueryItem, useValueKeyDescription) ?? '')\n }\n />\n );\n};\n\nexport const CommonCodeQuerySelector = OwpCommonCodeQuerySelector;\n"],"names":["getCommonCodeQueryValue","__name","commonCode","useDescriptionValue","OwpCommonCodeQuerySelector","apiUrl","className","defaultValue","description","disableAllValueItem","error","filterOptions","fullWidth","groupId","helperText","label","labelResolver","multiple","onChange","query","queryKeyDeps","required","responseListKey","selectorType","textFieldProps","useValueKeyDescription","value","variant","selectProps","jsx","OwpQuerySelector","items","item","event","CommonCodeQuerySelector"],"mappings":";;;;AA4CA,MAAMA,IAA0B,gBAAAC,EAAA,CAC9BC,GACAC,MACGD,EAAWC,IAAsB,+BAA+B,uBAAuB,GAH5D,4BASnBC,IAA6B,gBAAAH,EAAA,CAAC;AAAA,EACzC,QAAAI,IAAS;AAAA,EACT,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,eAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,YAAAC;AAAA,EACA,OAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,gBAAAC;AAAA,EACA,wBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,QAAAzB;AAAA,IACA,WAAAC;AAAA,IACA,cAAAC;AAAA,IACA,qBAAAE;AAAA,IACA,UAAUmB,EAAY;AAAA,IACtB,OAAAlB;AAAA,IACA,eAAe,gBAAAT,EAAA,CAAC8B,MACdA,EAAM,OAAO,CAACC,MAAS;AACrB,YAAM9B,IAAa8B;AAEnB,aAAIxB,KAAeN,EAAW,4BAA4B,MAAMM,IACvD,KAGFG,IAAgBA,EAAcT,CAAU,IAAI;AAAA,IACrD,CAAC,GATY;AAAA,IAWf,WAAAU;AAAA,IACA,YAAAE;AAAA,IACA,OAAAC;AAAA,IACA,UAAS;AAAA,IACT,eAAe,gBAAAd,EAAA,CAAC+B,MACdhB,IACIA,EAAcgB,CAA8B,IAC5C,OAAQA,EAAgC,uBAAuB,KAAK,EAAE,GAH7D;AAAA,IAKf,UAAAf;AAAA,IACA,MAAMW,EAAY;AAAA,IAClB,UAAU,gBAAA3B,EAAA,CAACgC,MAAU;AACnB,MAAAf,KAAA,QAAAA,EAAWe,GAAoC;AAAA,IACjD,GAFU;AAAA,IAGV,OAAO;AAAA,MACL,GAAId,KAAS,CAAA;AAAA,MACb,GAAIN,IAAU,EAAE,0BAA0BA,MAAY,CAAA;AAAA,IAAC;AAAA,IAEzD,cAAc,CAACL,GAAaiB,GAAwB,GAAIL,KAAgB,CAAA,CAAG;AAAA,IAC3E,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,aAAa;AAAA,MACX,GAAGM;AAAA,MACH,SAAAD;AAAA,IAAA;AAAA,IAEF,cAAAJ;AAAA,IACA,gBAAgB;AAAA,MACd,GAAGC;AAAA,MACH,UAASA,KAAA,gBAAAA,EAAgB,YAAWG;AAAA,IAAA;AAAA,IAEtC,OAAAD;AAAA,IACA,UAAS;AAAA,IACT,eAAe,gBAAAzB,EAAA,CAAC+B,MACd,OAAOhC,EAAwBgC,GAAgCP,CAAsB,KAAK,EAAE,GAD/E;AAAA,EAC+E;AAAA,GA9E1D,+BAoF7BS,IAA0B9B;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Ee = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
import { jsxs as
|
|
2
|
+
var o = (a, s) => Ee(a, "name", { value: s, configurable: !0 });
|
|
3
|
+
import { jsxs as x, jsx as i, Fragment as S } 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
4
|
import { createElement as be } from "@emotion/react";
|
|
5
5
|
import { useOwpTranslation as ve } from "../../hooks/useOwpTranslation.js";
|
|
6
6
|
import F 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/ArrowDropDown.js";
|
|
@@ -9,17 +9,17 @@ import { Box as ye, Chip as M, Checkbox as Le, TextField as te, CircularProgress
|
|
|
9
9
|
import { alpha as E } from "@mui/material/styles";
|
|
10
10
|
import { clsx as le } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
11
11
|
import { useMemo as re, useState as _e, useRef as ie, useEffect as ae } from "react";
|
|
12
|
-
import { isSelectorAllOption as
|
|
13
|
-
const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !important", ke = "5px !important", ce = /* @__PURE__ */
|
|
12
|
+
import { isSelectorAllOption as h } from "./utils/querySelectorUtils.js";
|
|
13
|
+
const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !important", ke = "5px !important", ce = /* @__PURE__ */ o((a, s) => {
|
|
14
14
|
const p = a.target;
|
|
15
15
|
return p instanceof HTMLInputElement ? p.value : s ?? "";
|
|
16
|
-
}, "getCurrentAutocompleteInputValue"), me = /* @__PURE__ */
|
|
16
|
+
}, "getCurrentAutocompleteInputValue"), me = /* @__PURE__ */ o((a) => typeof a == "string" || typeof a == "number" ? `${a}` : "", "getAutocompleteOptionLabel"), je = /* @__PURE__ */ o(({ hookResult: a, props: s }) => {
|
|
17
17
|
const { t: p } = ve(), {
|
|
18
18
|
autocompleteInputValue: d,
|
|
19
19
|
className: D,
|
|
20
20
|
disableAllValueItem: f,
|
|
21
21
|
disableClientFilter: _,
|
|
22
|
-
disabled:
|
|
22
|
+
disabled: I,
|
|
23
23
|
error: P,
|
|
24
24
|
fullWidth: A,
|
|
25
25
|
helperText: N,
|
|
@@ -31,7 +31,7 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
31
31
|
onAutocompleteInputChange: c,
|
|
32
32
|
placeholder: z,
|
|
33
33
|
required: R,
|
|
34
|
-
textFieldProps:
|
|
34
|
+
textFieldProps: n
|
|
35
35
|
} = s, {
|
|
36
36
|
allOption: b,
|
|
37
37
|
clearSelection: U,
|
|
@@ -41,15 +41,15 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
41
41
|
selectAll: B,
|
|
42
42
|
selectedOption: fe,
|
|
43
43
|
selectedOptions: v,
|
|
44
|
-
selectMultipleValues:
|
|
45
|
-
selectSingleValue:
|
|
46
|
-
} = a,
|
|
47
|
-
() => v.filter((e) => !
|
|
44
|
+
selectMultipleValues: K,
|
|
45
|
+
selectSingleValue: $
|
|
46
|
+
} = a, q = f ? H : [b, ...H], y = re(
|
|
47
|
+
() => v.filter((e) => !h(e)),
|
|
48
48
|
[v]
|
|
49
|
-
),
|
|
49
|
+
), G = re(
|
|
50
50
|
() => m ? [] : y.slice(se),
|
|
51
51
|
[y, m]
|
|
52
|
-
), u =
|
|
52
|
+
), u = G.length, [j, L] = _e(null), Z = ie(null), J = de ?? p("Message.검색 결과 없음"), Q = ie(
|
|
53
53
|
V && !f && ((s.value ?? s.defaultValue) == null || (s.value ?? s.defaultValue) === "")
|
|
54
54
|
), X = {
|
|
55
55
|
clearIndicator: {
|
|
@@ -70,13 +70,13 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
70
70
|
className: "m-0 p-0",
|
|
71
71
|
size: "small"
|
|
72
72
|
}
|
|
73
|
-
},
|
|
73
|
+
}, g = (n == null ? void 0 : n.variant) ?? "standard", Te = g === "standard" ? {
|
|
74
74
|
"& .MuiAutocomplete-input": {
|
|
75
75
|
paddingLeft: Ne
|
|
76
76
|
}
|
|
77
|
-
} :
|
|
77
|
+
} : g === "outlined" ? {
|
|
78
78
|
"& .MuiAutocomplete-input": {
|
|
79
|
-
paddingLeft: (
|
|
79
|
+
paddingLeft: (n == null ? void 0 : n.size) === "small" ? ke : we
|
|
80
80
|
}
|
|
81
81
|
} : void 0, Y = {
|
|
82
82
|
minWidth: Pe,
|
|
@@ -95,7 +95,7 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
95
95
|
gap: 0,
|
|
96
96
|
right: 0
|
|
97
97
|
}
|
|
98
|
-
},
|
|
98
|
+
}, Oe = {
|
|
99
99
|
...Y,
|
|
100
100
|
"& .MuiAutocomplete-inputRoot .MuiAutocomplete-input": {
|
|
101
101
|
flexBasis: pe,
|
|
@@ -111,7 +111,7 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
111
111
|
const e = (l = Z.current) == null ? void 0 : l.closest("form");
|
|
112
112
|
if (!e)
|
|
113
113
|
return;
|
|
114
|
-
const t = /* @__PURE__ */
|
|
114
|
+
const t = /* @__PURE__ */ o(() => {
|
|
115
115
|
window.setTimeout(() => {
|
|
116
116
|
W();
|
|
117
117
|
}, 0);
|
|
@@ -120,52 +120,53 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
120
120
|
e.removeEventListener("reset", t);
|
|
121
121
|
};
|
|
122
122
|
}, [W]);
|
|
123
|
-
const
|
|
123
|
+
const he = /* @__PURE__ */ o(() => {
|
|
124
124
|
L(null);
|
|
125
|
-
}, "handleHiddenChipPopperClose"),
|
|
125
|
+
}, "handleHiddenChipPopperClose"), Ie = /* @__PURE__ */ o((e) => {
|
|
126
126
|
e.preventDefault();
|
|
127
|
-
}, "handleHiddenChipSummaryMouseDown"), Ae = /* @__PURE__ */
|
|
127
|
+
}, "handleHiddenChipSummaryMouseDown"), Ae = /* @__PURE__ */ o((e) => {
|
|
128
128
|
e.preventDefault(), e.stopPropagation(), L(
|
|
129
129
|
(t) => t === e.currentTarget ? null : e.currentTarget
|
|
130
130
|
);
|
|
131
|
-
}, "handleHiddenChipSummaryClick"), Ce = /* @__PURE__ */
|
|
132
|
-
|
|
131
|
+
}, "handleHiddenChipSummaryClick"), Ce = /* @__PURE__ */ o((e) => {
|
|
132
|
+
K(
|
|
133
133
|
y.filter((t) => t.value !== e).map((t) => t.value)
|
|
134
134
|
);
|
|
135
|
-
}, "handleHiddenChipDelete"),
|
|
135
|
+
}, "handleHiddenChipDelete"), ge = /* @__PURE__ */ o((e) => {
|
|
136
136
|
var l;
|
|
137
137
|
const t = ce(e, d);
|
|
138
|
-
(m || u > 0) && t === "" && (e.key === "Backspace" || e.key === "Delete") && (e.defaultMuiPrevented = !0, e.preventDefault(), e.stopPropagation()), (l =
|
|
139
|
-
|
|
138
|
+
(m || u > 0) && t === "" && (e.key === "Backspace" || e.key === "Delete") && (e.defaultMuiPrevented = !0, e.preventDefault(), e.stopPropagation()), (l = n == null ? void 0 : n.onKeyDown) == null || l.call(
|
|
139
|
+
n,
|
|
140
140
|
e
|
|
141
141
|
);
|
|
142
142
|
}, "handleMultipleRootKeyDown");
|
|
143
|
-
return V ? /* @__PURE__ */
|
|
143
|
+
return V ? /* @__PURE__ */ x(S, { children: [
|
|
144
144
|
/* @__PURE__ */ i(
|
|
145
145
|
ne,
|
|
146
146
|
{
|
|
147
147
|
ref: Z,
|
|
148
148
|
className: le("min-w-128", D),
|
|
149
149
|
disableCloseOnSelect: !0,
|
|
150
|
-
disabled:
|
|
150
|
+
disabled: I,
|
|
151
151
|
filterOptions: _ ? (e) => e : void 0,
|
|
152
152
|
fullWidth: A,
|
|
153
153
|
inputValue: d,
|
|
154
154
|
loading: C,
|
|
155
155
|
multiple: !0,
|
|
156
|
-
options:
|
|
156
|
+
options: q,
|
|
157
157
|
clearText: "",
|
|
158
158
|
closeText: "",
|
|
159
159
|
clearIcon: /* @__PURE__ */ i(ee, { sx: { fontSize: ue } }),
|
|
160
160
|
openText: "",
|
|
161
161
|
popupIcon: /* @__PURE__ */ i(F, {}),
|
|
162
|
-
sx:
|
|
162
|
+
sx: Oe,
|
|
163
163
|
value: v,
|
|
164
|
-
getOptionLabel: /* @__PURE__ */
|
|
165
|
-
|
|
164
|
+
getOptionLabel: /* @__PURE__ */ o((e) => me(e.label), "getOptionLabel"),
|
|
165
|
+
getOptionKey: /* @__PURE__ */ o((e) => e.value, "getOptionKey"),
|
|
166
|
+
isOptionEqualToValue: /* @__PURE__ */ o((e, t) => e.value === t.value, "isOptionEqualToValue"),
|
|
166
167
|
loadingText: k ?? p("Common.로딩 중..."),
|
|
167
168
|
noOptionsText: J,
|
|
168
|
-
onChange: /* @__PURE__ */
|
|
169
|
+
onChange: /* @__PURE__ */ o((e, t, l, r) => {
|
|
169
170
|
const T = e.type === "keydown" ? ce(
|
|
170
171
|
e,
|
|
171
172
|
d
|
|
@@ -182,7 +183,7 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
182
183
|
U();
|
|
183
184
|
return;
|
|
184
185
|
}
|
|
185
|
-
if (!f && (r != null && r.option) &&
|
|
186
|
+
if (!f && (r != null && r.option) && h(r.option)) {
|
|
186
187
|
if (m) {
|
|
187
188
|
U();
|
|
188
189
|
return;
|
|
@@ -190,23 +191,23 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
190
191
|
B();
|
|
191
192
|
return;
|
|
192
193
|
}
|
|
193
|
-
|
|
194
|
-
t.filter((
|
|
194
|
+
K(
|
|
195
|
+
t.filter((O) => !h(O)).map((O) => O.value)
|
|
195
196
|
);
|
|
196
197
|
}, "onChange"),
|
|
197
|
-
onInputChange: /* @__PURE__ */
|
|
198
|
+
onInputChange: /* @__PURE__ */ o((e, t, l) => {
|
|
198
199
|
c == null || c(t, l);
|
|
199
200
|
}, "onInputChange"),
|
|
200
|
-
onKeyDown:
|
|
201
|
+
onKeyDown: ge,
|
|
201
202
|
slotProps: X,
|
|
202
|
-
renderInput: /* @__PURE__ */
|
|
203
|
+
renderInput: /* @__PURE__ */ o((e) => {
|
|
203
204
|
var t;
|
|
204
205
|
return /* @__PURE__ */ i(
|
|
205
206
|
te,
|
|
206
207
|
{
|
|
207
208
|
...e,
|
|
208
|
-
...
|
|
209
|
-
disabled:
|
|
209
|
+
...n,
|
|
210
|
+
disabled: I,
|
|
210
211
|
error: P,
|
|
211
212
|
fullWidth: A,
|
|
212
213
|
helperText: N,
|
|
@@ -214,28 +215,28 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
214
215
|
placeholder: z ?? p("Common.검색"),
|
|
215
216
|
required: R,
|
|
216
217
|
slotProps: {
|
|
217
|
-
...
|
|
218
|
+
...n == null ? void 0 : n.slotProps,
|
|
218
219
|
input: {
|
|
219
220
|
...e.InputProps,
|
|
220
|
-
...(t =
|
|
221
|
-
endAdornment: /* @__PURE__ */
|
|
221
|
+
...(t = n == null ? void 0 : n.slotProps) == null ? void 0 : t.input,
|
|
222
|
+
endAdornment: /* @__PURE__ */ x(S, { children: [
|
|
222
223
|
C ? /* @__PURE__ */ i(oe, { color: "inherit", size: 16, sx: { mr: 0.5 } }) : null,
|
|
223
224
|
e.InputProps.endAdornment
|
|
224
225
|
] })
|
|
225
226
|
}
|
|
226
227
|
},
|
|
227
|
-
variant:
|
|
228
|
+
variant: g
|
|
228
229
|
}
|
|
229
230
|
);
|
|
230
231
|
}, "renderInput"),
|
|
231
|
-
renderOption: /* @__PURE__ */
|
|
232
|
+
renderOption: /* @__PURE__ */ o((e, t, l) => {
|
|
232
233
|
const { key: r, ...T } = e;
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
+
return /* @__PURE__ */ x("li", { ...T, children: [
|
|
234
235
|
/* @__PURE__ */ i(Le, { checked: l.selected, className: "!mr-8 !p-0", size: "small" }),
|
|
235
236
|
t.label
|
|
236
237
|
] }, r);
|
|
237
238
|
}, "renderOption"),
|
|
238
|
-
renderValue: /* @__PURE__ */
|
|
239
|
+
renderValue: /* @__PURE__ */ o((e, t) => !f && m ? [
|
|
239
240
|
/* @__PURE__ */ i(
|
|
240
241
|
ye,
|
|
241
242
|
{
|
|
@@ -246,13 +247,13 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
246
247
|
b.value
|
|
247
248
|
)
|
|
248
249
|
] : [
|
|
249
|
-
...e.filter((r) => !
|
|
250
|
-
const { key:
|
|
250
|
+
...e.filter((r) => !h(r)).slice(0, se).map((r, T) => {
|
|
251
|
+
const { key: O, ...xe } = t({ index: T });
|
|
251
252
|
return /* @__PURE__ */ be(
|
|
252
253
|
M,
|
|
253
254
|
{
|
|
254
|
-
...
|
|
255
|
-
key:
|
|
255
|
+
...xe,
|
|
256
|
+
key: O,
|
|
256
257
|
label: r.label,
|
|
257
258
|
size: "small",
|
|
258
259
|
sx: { borderRadius: 1, mr: 0.5 }
|
|
@@ -266,9 +267,9 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
266
267
|
clickable: !0,
|
|
267
268
|
label: `+${u}`,
|
|
268
269
|
onClick: Ae,
|
|
269
|
-
onMouseDown:
|
|
270
|
+
onMouseDown: Ie,
|
|
270
271
|
size: "small",
|
|
271
|
-
sx: /* @__PURE__ */
|
|
272
|
+
sx: /* @__PURE__ */ o((r) => ({
|
|
272
273
|
backgroundColor: E(r.palette.primary.main, 0.14),
|
|
273
274
|
border: `1px solid ${E(r.palette.primary.main, 0.22)}`,
|
|
274
275
|
borderRadius: 1,
|
|
@@ -292,24 +293,24 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
292
293
|
anchorEl: j,
|
|
293
294
|
open: !!j && u > 0,
|
|
294
295
|
placement: "bottom-start",
|
|
295
|
-
sx: { zIndex: /* @__PURE__ */
|
|
296
|
-
children: /* @__PURE__ */ i(Se, { onClickAway:
|
|
296
|
+
sx: { zIndex: /* @__PURE__ */ o((e) => e.zIndex.modal, "zIndex") },
|
|
297
|
+
children: /* @__PURE__ */ i(Se, { onClickAway: he, children: /* @__PURE__ */ i(
|
|
297
298
|
Me,
|
|
298
299
|
{
|
|
299
300
|
className: "mt-4",
|
|
300
301
|
sx: {
|
|
301
|
-
border: /* @__PURE__ */
|
|
302
|
+
border: /* @__PURE__ */ o((e) => `1px solid ${E(e.palette.common.black, 0.12)}`, "border"),
|
|
302
303
|
display: "flex",
|
|
303
304
|
flexWrap: "wrap",
|
|
304
305
|
gap: 0.75,
|
|
305
306
|
maxWidth: 280,
|
|
306
307
|
p: 1
|
|
307
308
|
},
|
|
308
|
-
children:
|
|
309
|
+
children: G.map((e) => /* @__PURE__ */ i(
|
|
309
310
|
M,
|
|
310
311
|
{
|
|
311
312
|
label: e.label,
|
|
312
|
-
onDelete: /* @__PURE__ */
|
|
313
|
+
onDelete: /* @__PURE__ */ o(() => Ce(e.value), "onDelete"),
|
|
313
314
|
size: "small",
|
|
314
315
|
sx: { borderRadius: 1 }
|
|
315
316
|
},
|
|
@@ -323,12 +324,12 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
323
324
|
ne,
|
|
324
325
|
{
|
|
325
326
|
className: le("min-w-128", D),
|
|
326
|
-
disabled:
|
|
327
|
+
disabled: I,
|
|
327
328
|
filterOptions: _ ? (e) => e : void 0,
|
|
328
329
|
fullWidth: A,
|
|
329
330
|
inputValue: d,
|
|
330
331
|
loading: C,
|
|
331
|
-
options:
|
|
332
|
+
options: q,
|
|
332
333
|
clearText: "",
|
|
333
334
|
closeText: "",
|
|
334
335
|
clearIcon: /* @__PURE__ */ i(ee, { sx: { fontSize: ue } }),
|
|
@@ -336,29 +337,30 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
336
337
|
popupIcon: /* @__PURE__ */ i(F, {}),
|
|
337
338
|
sx: Y,
|
|
338
339
|
value: fe,
|
|
339
|
-
getOptionLabel: /* @__PURE__ */
|
|
340
|
-
|
|
340
|
+
getOptionLabel: /* @__PURE__ */ o((e) => me(e.label), "getOptionLabel"),
|
|
341
|
+
getOptionKey: /* @__PURE__ */ o((e) => e.value, "getOptionKey"),
|
|
342
|
+
isOptionEqualToValue: /* @__PURE__ */ o((e, t) => e.value === t.value, "isOptionEqualToValue"),
|
|
341
343
|
loadingText: k ?? p("Common.로딩 중..."),
|
|
342
344
|
noOptionsText: J,
|
|
343
|
-
onChange: /* @__PURE__ */
|
|
344
|
-
if (!t || !f &&
|
|
345
|
-
|
|
345
|
+
onChange: /* @__PURE__ */ o((e, t) => {
|
|
346
|
+
if (!t || !f && h(t)) {
|
|
347
|
+
$("");
|
|
346
348
|
return;
|
|
347
349
|
}
|
|
348
|
-
|
|
350
|
+
$(t.value);
|
|
349
351
|
}, "onChange"),
|
|
350
|
-
onInputChange: /* @__PURE__ */
|
|
352
|
+
onInputChange: /* @__PURE__ */ o((e, t, l) => {
|
|
351
353
|
c == null || c(t, l);
|
|
352
354
|
}, "onInputChange"),
|
|
353
355
|
slotProps: X,
|
|
354
|
-
renderInput: /* @__PURE__ */
|
|
356
|
+
renderInput: /* @__PURE__ */ o((e) => {
|
|
355
357
|
var t, l, r;
|
|
356
358
|
return /* @__PURE__ */ i(
|
|
357
359
|
te,
|
|
358
360
|
{
|
|
359
361
|
...e,
|
|
360
|
-
...
|
|
361
|
-
disabled:
|
|
362
|
+
...n,
|
|
363
|
+
disabled: I,
|
|
362
364
|
error: P,
|
|
363
365
|
fullWidth: A,
|
|
364
366
|
helperText: N,
|
|
@@ -366,27 +368,27 @@ const se = 2, Pe = 152, pe = 72, ue = 18.57, Ne = "11px !important", we = "2px !
|
|
|
366
368
|
placeholder: z,
|
|
367
369
|
required: R,
|
|
368
370
|
slotProps: {
|
|
369
|
-
...
|
|
371
|
+
...n == null ? void 0 : n.slotProps,
|
|
370
372
|
input: {
|
|
371
373
|
...e.InputProps,
|
|
372
|
-
...(t =
|
|
374
|
+
...(t = n == null ? void 0 : n.slotProps) == null ? void 0 : t.input,
|
|
373
375
|
sx: {
|
|
374
376
|
...Te ?? {},
|
|
375
377
|
...e.InputProps.sx ?? {},
|
|
376
|
-
...((r = (l =
|
|
378
|
+
...((r = (l = n == null ? void 0 : n.slotProps) == null ? void 0 : l.input) == null ? void 0 : r.sx) ?? {}
|
|
377
379
|
},
|
|
378
|
-
endAdornment: /* @__PURE__ */
|
|
380
|
+
endAdornment: /* @__PURE__ */ x(S, { children: [
|
|
379
381
|
C ? /* @__PURE__ */ i(oe, { color: "inherit", size: 16, sx: { mr: 0.5 } }) : null,
|
|
380
382
|
e.InputProps.endAdornment
|
|
381
383
|
] })
|
|
382
384
|
}
|
|
383
385
|
},
|
|
384
|
-
variant:
|
|
386
|
+
variant: g
|
|
385
387
|
}
|
|
386
388
|
);
|
|
387
389
|
}, "renderInput"),
|
|
388
390
|
selectOnFocus: !0,
|
|
389
|
-
renderOption: /* @__PURE__ */
|
|
391
|
+
renderOption: /* @__PURE__ */ o((e, t) => {
|
|
390
392
|
const { key: l, ...r } = e;
|
|
391
393
|
return /* @__PURE__ */ i("li", { ...r, children: t.label }, l);
|
|
392
394
|
}, "renderOption")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwpSelectorAutocomplete.js","sources":["../../../src/components/OwpSelectorBase/OwpSelectorAutocomplete.tsx"],"sourcesContent":["import { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';\nimport ClearIcon from '@mui/icons-material/Clear';\nimport {\n Autocomplete,\n Box,\n Checkbox,\n Chip,\n CircularProgress,\n ClickAwayListener,\n Paper,\n Popper,\n TextField,\n} from '@mui/material';\nimport { alpha } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport {\n type KeyboardEvent as ReactKeyboardEvent,\n type MouseEvent as ReactMouseEvent,\n type MutableRefObject,\n type SyntheticEvent,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport type {\n OwpSelectorBaseHookResult,\n OwpSelectorBaseOption,\n OwpSelectorBaseProps,\n} from './types';\nimport { isSelectorAllOption } from './utils';\n\ninterface OwpSelectorAutocompleteProps {\n hookResult: OwpSelectorBaseHookResult;\n props: OwpSelectorBaseProps;\n}\n\nconst MULTIPLE_VISIBLE_CHIP_COUNT = 2;\nconst AUTOCOMPLETE_MIN_WIDTH = 152;\nconst MULTIPLE_AUTOCOMPLETE_INPUT_MIN_WIDTH = 72;\nconst SELECTOR_CLEAR_ICON_FONT_SIZE = 18.57;\nconst STANDARD_AUTOCOMPLETE_INPUT_PADDING_LEFT = '11px !important';\nconst OUTLINED_AUTOCOMPLETE_INPUT_PADDING_LEFT = '2px !important';\nconst OUTLINED_SMALL_AUTOCOMPLETE_INPUT_PADDING_LEFT = '5px !important';\n\ntype SelectorAutocompleteKeyDownEvent = ReactKeyboardEvent<HTMLDivElement> & {\n defaultMuiPrevented?: boolean;\n};\n\n/**\n * 현재 키 이벤트 기준 입력값 반환\n * @param event 키보드 이벤트\n * @param fallbackValue 제어 입력 fallback 값\n */\nconst getCurrentAutocompleteInputValue = (\n event: SelectorAutocompleteKeyDownEvent,\n fallbackValue?: string,\n) => {\n const eventTarget = event.target;\n\n if (eventTarget instanceof HTMLInputElement) {\n return eventTarget.value;\n }\n\n return fallbackValue ?? '';\n};\n\n/**\n * Autocomplete 옵션 라벨 문자열 변환\n * @param label 옵션 라벨\n */\nconst getAutocompleteOptionLabel = (label: OwpSelectorBaseOption['label']) => {\n return typeof label === 'string' || typeof label === 'number' ? `${label}` : '';\n};\n\n/**\n * Autocomplete 기반 공통 선택기\n * @param props Autocomplete 렌더링 props\n */\nexport const OwpSelectorAutocomplete = ({ hookResult, props }: OwpSelectorAutocompleteProps) => {\n const { t } = useOwpTranslation();\n const {\n autocompleteInputValue,\n className,\n disableAllValueItem,\n disableClientFilter,\n disabled,\n error,\n fullWidth,\n helperText,\n label,\n loading,\n loadingText,\n multiple,\n noOptionsText,\n onAutocompleteInputChange,\n placeholder,\n required,\n textFieldProps,\n } = props;\n const {\n allOption,\n clearSelection,\n isAllSelected,\n resolvedOptions,\n restoreAllSelection,\n selectAll,\n selectedOption,\n selectedOptions,\n selectMultipleValues,\n selectSingleValue,\n } = hookResult;\n const options = disableAllValueItem ? resolvedOptions : [allOption, ...resolvedOptions];\n const filteredSelectedOptions = useMemo(\n () => selectedOptions.filter((option) => !isSelectorAllOption(option)),\n [selectedOptions],\n );\n const hiddenSelectedOptions = useMemo(\n () => (isAllSelected ? [] : filteredSelectedOptions.slice(MULTIPLE_VISIBLE_CHIP_COUNT)),\n [filteredSelectedOptions, isAllSelected],\n );\n const hiddenSelectedOptionCount = hiddenSelectedOptions.length;\n const [hiddenChipAnchorEl, setHiddenChipAnchorEl] = useState<HTMLElement | null>(null);\n const autocompleteRootRef = useRef<HTMLDivElement | null>(null);\n const resolvedNoOptionsText = noOptionsText ?? t('Message.검색 결과 없음');\n const shouldRestoreAllOnClearRef = useRef(\n multiple &&\n !disableAllValueItem &&\n ((props.value ?? props.defaultValue) == null || (props.value ?? props.defaultValue) === ''),\n );\n const autocompleteSlotProps = {\n clearIndicator: {\n className: 'm-0 p-0',\n size: 'small',\n },\n paper: {\n sx: {\n '& .MuiAutocomplete-noOptions': {\n fontSize: 14,\n px: 1,\n py: 1.5,\n whiteSpace: 'nowrap',\n },\n },\n },\n popupIndicator: {\n className: 'm-0 p-0',\n size: 'small',\n },\n } as const;\n const resolvedTextFieldVariant = textFieldProps?.variant ?? 'standard';\n const singleAutocompleteInputSx =\n resolvedTextFieldVariant === 'standard'\n ? {\n '& .MuiAutocomplete-input': {\n paddingLeft: STANDARD_AUTOCOMPLETE_INPUT_PADDING_LEFT,\n },\n }\n : resolvedTextFieldVariant === 'outlined'\n ? {\n '& .MuiAutocomplete-input': {\n paddingLeft:\n textFieldProps?.size === 'small'\n ? OUTLINED_SMALL_AUTOCOMPLETE_INPUT_PADDING_LEFT\n : OUTLINED_AUTOCOMPLETE_INPUT_PADDING_LEFT,\n },\n }\n : undefined;\n const autocompleteSx = {\n minWidth: AUTOCOMPLETE_MIN_WIDTH,\n '& .MuiAutocomplete-endAdornment': {\n '& .MuiAutocomplete-clearIndicator + .MuiAutocomplete-popupIndicator': {\n ml: 0,\n },\n '& .MuiIconButton-root': {\n m: 0,\n p: 0,\n },\n '& > :not(style) + :not(style)': {\n ml: 0,\n },\n alignItems: 'center',\n gap: 0,\n right: 0,\n },\n } as const;\n const multipleAutocompleteSx = {\n ...autocompleteSx,\n '& .MuiAutocomplete-inputRoot .MuiAutocomplete-input': {\n flexBasis: MULTIPLE_AUTOCOMPLETE_INPUT_MIN_WIDTH,\n minWidth: MULTIPLE_AUTOCOMPLETE_INPUT_MIN_WIDTH,\n },\n } as const;\n\n useEffect(() => {\n if (!hiddenSelectedOptionCount) {\n setHiddenChipAnchorEl(null);\n }\n }, [hiddenSelectedOptionCount]);\n\n useEffect(() => {\n if (!shouldRestoreAllOnClearRef.current) {\n return;\n }\n\n const formElement = autocompleteRootRef.current?.closest('form');\n\n if (!formElement) {\n return;\n }\n\n const handleFormReset = () => {\n window.setTimeout(() => {\n restoreAllSelection();\n }, 0);\n };\n\n formElement.addEventListener('reset', handleFormReset);\n\n return () => {\n formElement.removeEventListener('reset', handleFormReset);\n };\n }, [restoreAllSelection]);\n\n const handleHiddenChipPopperClose = () => {\n setHiddenChipAnchorEl(null);\n };\n\n const handleHiddenChipSummaryMouseDown = (event: ReactMouseEvent<HTMLElement>) => {\n event.preventDefault();\n };\n\n const handleHiddenChipSummaryClick = (event: ReactMouseEvent<HTMLElement>) => {\n event.preventDefault();\n event.stopPropagation();\n\n setHiddenChipAnchorEl((previousAnchorElement) =>\n previousAnchorElement === event.currentTarget ? null : event.currentTarget,\n );\n };\n\n const handleHiddenChipDelete = (optionValue: string) => {\n selectMultipleValues(\n filteredSelectedOptions\n .filter((option) => option.value !== optionValue)\n .map((option) => option.value),\n );\n };\n\n const handleMultipleRootKeyDown = (event: SelectorAutocompleteKeyDownEvent) => {\n const currentInputValue = getCurrentAutocompleteInputValue(event, autocompleteInputValue);\n\n if (\n (isAllSelected || hiddenSelectedOptionCount > 0) &&\n currentInputValue === '' &&\n (event.key === 'Backspace' || event.key === 'Delete')\n ) {\n event.defaultMuiPrevented = true;\n event.preventDefault();\n event.stopPropagation();\n }\n\n textFieldProps?.onKeyDown?.(\n event as Parameters<NonNullable<typeof textFieldProps.onKeyDown>>[0],\n );\n };\n\n if (multiple) {\n return (\n <>\n <Autocomplete\n ref={autocompleteRootRef as MutableRefObject<HTMLDivElement | null>}\n className={clsx('min-w-128', className)}\n disableCloseOnSelect\n disabled={disabled}\n filterOptions={disableClientFilter ? (nextOptions) => nextOptions : undefined}\n fullWidth={fullWidth}\n inputValue={autocompleteInputValue}\n loading={loading}\n multiple\n options={options}\n clearText=\"\"\n closeText=\"\"\n clearIcon={<ClearIcon sx={{ fontSize: SELECTOR_CLEAR_ICON_FONT_SIZE }} />}\n openText=\"\"\n popupIcon={<ArrowDropDownIcon />}\n sx={multipleAutocompleteSx}\n value={selectedOptions}\n getOptionLabel={(option) => getAutocompleteOptionLabel(option.label)}\n isOptionEqualToValue={(option, selected) => option.value === selected.value}\n loadingText={loadingText ?? t('Common.로딩 중...')}\n noOptionsText={resolvedNoOptionsText}\n onChange={(\n _event: SyntheticEvent,\n nextOptions: OwpSelectorBaseOption[],\n reason: string,\n details,\n ) => {\n const currentInputValue =\n _event.type === 'keydown'\n ? getCurrentAutocompleteInputValue(\n _event as SelectorAutocompleteKeyDownEvent,\n autocompleteInputValue,\n )\n : (autocompleteInputValue ?? '');\n\n if (\n reason === 'removeOption' &&\n _event.type === 'keydown' &&\n currentInputValue === '' &&\n (isAllSelected || hiddenSelectedOptionCount > 0)\n ) {\n _event.preventDefault();\n _event.stopPropagation();\n return;\n }\n\n if (reason === 'clear') {\n if (shouldRestoreAllOnClearRef.current) {\n selectAll();\n return;\n }\n\n clearSelection();\n return;\n }\n\n if (!disableAllValueItem && details?.option && isSelectorAllOption(details.option)) {\n if (isAllSelected) {\n clearSelection();\n return;\n }\n\n selectAll();\n return;\n }\n\n selectMultipleValues(\n nextOptions\n .filter((option) => !isSelectorAllOption(option))\n .map((option) => option.value),\n );\n }}\n onInputChange={(_event, nextInputValue, reason) => {\n onAutocompleteInputChange?.(nextInputValue, reason);\n }}\n onKeyDown={handleMultipleRootKeyDown}\n slotProps={autocompleteSlotProps}\n renderInput={(params) => (\n <TextField\n {...params}\n {...textFieldProps}\n disabled={disabled}\n error={error}\n fullWidth={fullWidth}\n helperText={helperText}\n label={label}\n placeholder={placeholder ?? t('Common.검색')}\n required={required}\n slotProps={{\n ...textFieldProps?.slotProps,\n input: {\n ...params.InputProps,\n ...textFieldProps?.slotProps?.input,\n endAdornment: (\n <>\n {loading ? (\n <CircularProgress color=\"inherit\" size={16} sx={{ mr: 0.5 }} />\n ) : null}\n {params.InputProps.endAdornment}\n </>\n ),\n },\n }}\n variant={resolvedTextFieldVariant}\n />\n )}\n renderOption={(optionProps, option, state) => {\n const { key, ...restOptionProps } = optionProps;\n\n return (\n <li key={key} {...restOptionProps}>\n <Checkbox checked={state.selected} className=\"!mr-8 !p-0\" size=\"small\" />\n {option.label}\n </li>\n );\n }}\n renderValue={(nextSelectedOptions, getItemProps) => {\n if (!disableAllValueItem && isAllSelected) {\n return [\n <Box\n component=\"span\"\n key={allOption.value}\n sx={{ color: 'text.primary', fontWeight: 500, mr: 0.5 }}\n >\n {allOption.label}\n </Box>,\n ];\n }\n\n const visibleSelectedOptions = nextSelectedOptions\n .filter((option) => !isSelectorAllOption(option))\n .slice(0, MULTIPLE_VISIBLE_CHIP_COUNT);\n\n return [\n ...visibleSelectedOptions.map((option, index) => {\n const { key, ...itemProps } = getItemProps({ index });\n\n return (\n <Chip\n {...itemProps}\n key={key}\n label={option.label}\n size=\"small\"\n sx={{ borderRadius: 1, mr: 0.5 }}\n />\n );\n }),\n ...(hiddenSelectedOptionCount > 0\n ? [\n <Chip\n key=\"owp-selector-hidden-chip-summary\"\n clickable\n label={`+${hiddenSelectedOptionCount}`}\n onClick={handleHiddenChipSummaryClick}\n onMouseDown={handleHiddenChipSummaryMouseDown}\n size=\"small\"\n sx={(theme) => ({\n backgroundColor: alpha(theme.palette.primary.main, 0.14),\n border: `1px solid ${alpha(theme.palette.primary.main, 0.22)}`,\n borderRadius: 1,\n color: theme.palette.primary.dark,\n fontWeight: 600,\n mr: 0.5,\n '&:hover': {\n backgroundColor: alpha(theme.palette.primary.main, 0.2),\n },\n })}\n />,\n ]\n : []),\n ];\n }}\n />\n <Popper\n anchorEl={hiddenChipAnchorEl}\n open={Boolean(hiddenChipAnchorEl) && hiddenSelectedOptionCount > 0}\n placement=\"bottom-start\"\n sx={{ zIndex: (theme) => theme.zIndex.modal }}\n >\n <ClickAwayListener onClickAway={handleHiddenChipPopperClose}>\n <Paper\n className=\"mt-4\"\n sx={{\n border: (theme) => `1px solid ${alpha(theme.palette.common.black, 0.12)}`,\n display: 'flex',\n flexWrap: 'wrap',\n gap: 0.75,\n maxWidth: 280,\n p: 1,\n }}\n >\n {hiddenSelectedOptions.map((option) => (\n <Chip\n key={option.value}\n label={option.label}\n onDelete={() => handleHiddenChipDelete(option.value)}\n size=\"small\"\n sx={{ borderRadius: 1 }}\n />\n ))}\n </Paper>\n </ClickAwayListener>\n </Popper>\n </>\n );\n }\n\n return (\n <Autocomplete\n className={clsx('min-w-128', className)}\n disabled={disabled}\n filterOptions={disableClientFilter ? (nextOptions) => nextOptions : undefined}\n fullWidth={fullWidth}\n inputValue={autocompleteInputValue}\n loading={loading}\n options={options}\n clearText=\"\"\n closeText=\"\"\n clearIcon={<ClearIcon sx={{ fontSize: SELECTOR_CLEAR_ICON_FONT_SIZE }} />}\n openText=\"\"\n popupIcon={<ArrowDropDownIcon />}\n sx={autocompleteSx}\n value={selectedOption}\n getOptionLabel={(option) => getAutocompleteOptionLabel(option.label)}\n isOptionEqualToValue={(option, selected) => option.value === selected.value}\n loadingText={loadingText ?? t('Common.로딩 중...')}\n noOptionsText={resolvedNoOptionsText}\n onChange={(_event: SyntheticEvent, nextOption) => {\n if (!nextOption || (!disableAllValueItem && isSelectorAllOption(nextOption))) {\n selectSingleValue('');\n return;\n }\n\n selectSingleValue(nextOption.value);\n }}\n onInputChange={(_event, nextInputValue, reason) => {\n onAutocompleteInputChange?.(nextInputValue, reason);\n }}\n slotProps={autocompleteSlotProps}\n renderInput={(params) => (\n <TextField\n {...params}\n {...textFieldProps}\n disabled={disabled}\n error={error}\n fullWidth={fullWidth}\n helperText={helperText}\n label={label}\n placeholder={placeholder}\n required={required}\n slotProps={{\n ...textFieldProps?.slotProps,\n input: {\n ...params.InputProps,\n ...textFieldProps?.slotProps?.input,\n sx: {\n ...(singleAutocompleteInputSx ?? {}),\n ...((params.InputProps as { sx?: object }).sx ?? {}),\n ...((textFieldProps?.slotProps?.input as { sx?: object } | undefined)?.sx ?? {}),\n },\n endAdornment: (\n <>\n {loading ? <CircularProgress color=\"inherit\" size={16} sx={{ mr: 0.5 }} /> : null}\n {params.InputProps.endAdornment}\n </>\n ),\n },\n }}\n variant={resolvedTextFieldVariant}\n />\n )}\n selectOnFocus\n renderOption={(optionProps, option) => {\n const { key, ...restOptionProps } = optionProps;\n\n return (\n <li key={key} {...restOptionProps}>\n {option.label}\n </li>\n );\n }}\n />\n );\n};\n"],"names":["MULTIPLE_VISIBLE_CHIP_COUNT","AUTOCOMPLETE_MIN_WIDTH","MULTIPLE_AUTOCOMPLETE_INPUT_MIN_WIDTH","SELECTOR_CLEAR_ICON_FONT_SIZE","STANDARD_AUTOCOMPLETE_INPUT_PADDING_LEFT","OUTLINED_AUTOCOMPLETE_INPUT_PADDING_LEFT","OUTLINED_SMALL_AUTOCOMPLETE_INPUT_PADDING_LEFT","getCurrentAutocompleteInputValue","__name","event","fallbackValue","eventTarget","getAutocompleteOptionLabel","label","OwpSelectorAutocomplete","hookResult","props","t","useOwpTranslation","autocompleteInputValue","className","disableAllValueItem","disableClientFilter","disabled","error","fullWidth","helperText","loading","loadingText","multiple","noOptionsText","onAutocompleteInputChange","placeholder","required","textFieldProps","allOption","clearSelection","isAllSelected","resolvedOptions","restoreAllSelection","selectAll","selectedOption","selectedOptions","selectMultipleValues","selectSingleValue","options","filteredSelectedOptions","useMemo","option","isSelectorAllOption","hiddenSelectedOptions","hiddenSelectedOptionCount","hiddenChipAnchorEl","setHiddenChipAnchorEl","useState","autocompleteRootRef","useRef","resolvedNoOptionsText","shouldRestoreAllOnClearRef","autocompleteSlotProps","resolvedTextFieldVariant","singleAutocompleteInputSx","autocompleteSx","multipleAutocompleteSx","useEffect","formElement","_a","handleFormReset","handleHiddenChipPopperClose","handleHiddenChipSummaryMouseDown","handleHiddenChipSummaryClick","previousAnchorElement","handleHiddenChipDelete","optionValue","handleMultipleRootKeyDown","currentInputValue","jsxs","Fragment","jsx","Autocomplete","clsx","nextOptions","ClearIcon","ArrowDropDownIcon","selected","_event","reason","details","nextInputValue","params","TextField","CircularProgress","optionProps","state","key","restOptionProps","Checkbox","nextSelectedOptions","getItemProps","Box","index","itemProps","createElement","Chip","theme","alpha","Popper","ClickAwayListener","Paper","nextOption","_c","_b"],"mappings":";;;;;;;;;;;;AAsCA,MAAMA,KAA8B,GAC9BC,KAAyB,KACzBC,KAAwC,IACxCC,KAAgC,OAChCC,KAA2C,mBAC3CC,KAA2C,kBAC3CC,KAAiD,kBAWjDC,KAAmC,gBAAAC,EAAA,CACvCC,GACAC,MACG;AACH,QAAMC,IAAcF,EAAM;AAE1B,SAAIE,aAAuB,mBAClBA,EAAY,QAGdD,KAAiB;AAC1B,GAXyC,qCAiBnCE,KAA6B,gBAAAJ,EAAA,CAACK,MAC3B,OAAOA,KAAU,YAAY,OAAOA,KAAU,WAAW,GAAGA,CAAK,KAAK,IAD5C,+BAQtBC,KAA0B,gBAAAN,EAAA,CAAC,EAAE,YAAAO,GAAY,OAAAC,QAA0C;AAC9F,QAAM,EAAE,GAAAC,EAAA,IAAMC,GAAA,GACR;AAAA,IACJ,wBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,OAAAb;AAAA,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GuD,EAAO;AAAA,gBACV,IAAGvB,IAAAhC,KAAA,gBAAAA,EAAgB,cAAhB,gBAAAgC,EAA2B;AAAA,gBAC9B,IAAI;AAAA,kBACF,GAAIL,MAA6B,CAAA;AAAA,kBACjC,GAAK4B,EAAO,WAA+B,MAAM,CAAA;AAAA,kBACjD,KAAKqB,KAAAC,IAAA7E,KAAA,gBAAAA,EAAgB,cAAhB,gBAAA6E,EAA2B,UAA3B,gBAAAD,EAAkE,OAAM,CAAA;AAAA,gBAAC;AAAA,gBAEhF,cACE,gBAAAlC,EAAAC,GAAA,EACG,UAAA;AAAA,kBAAAlD,IAAU,gBAAAmD,EAACa,IAAA,EAAiB,OAAM,WAAU,MAAM,IAAI,IAAI,EAAE,IAAI,IAAA,EAAI,CAAG,IAAK;AAAA,kBAC5EF,EAAO,WAAW;AAAA,gBAAA,EAAA,CACrB;AAAA,cAAA;AAAA,YAEJ;AAAA,YAEF,SAAS7B;AAAA,UAAA;AAAA,QAAA;AAAA,SA7BA;AAAA,MAgCb,eAAa;AAAA,MACb,cAAc,gBAAApD,EAAA,CAACoF,GAAa5C,MAAW;AACrC,cAAM,EAAE,KAAA8C,GAAK,GAAGC,EAAA,IAAoBH;AAEpC,iCACG,MAAA,EAAc,GAAGG,GACf,UAAA/C,EAAO,SADD8C,CAET;AAAA,MAEJ,GARc;AAAA,IAQd;AAAA,EAAA;AAGN,GA3duC;"}
|
|
1
|
+
{"version":3,"file":"OwpSelectorAutocomplete.js","sources":["../../../src/components/OwpSelectorBase/OwpSelectorAutocomplete.tsx"],"sourcesContent":["import { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';\nimport ClearIcon from '@mui/icons-material/Clear';\nimport {\n Autocomplete,\n Box,\n Checkbox,\n Chip,\n CircularProgress,\n ClickAwayListener,\n Paper,\n Popper,\n TextField,\n} from '@mui/material';\nimport { alpha } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport {\n type KeyboardEvent as ReactKeyboardEvent,\n type MouseEvent as ReactMouseEvent,\n type MutableRefObject,\n type SyntheticEvent,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport type {\n OwpSelectorBaseHookResult,\n OwpSelectorBaseOption,\n OwpSelectorBaseProps,\n} from './types';\nimport { isSelectorAllOption } from './utils';\n\ninterface OwpSelectorAutocompleteProps {\n hookResult: OwpSelectorBaseHookResult;\n props: OwpSelectorBaseProps;\n}\n\nconst MULTIPLE_VISIBLE_CHIP_COUNT = 2;\nconst AUTOCOMPLETE_MIN_WIDTH = 152;\nconst MULTIPLE_AUTOCOMPLETE_INPUT_MIN_WIDTH = 72;\nconst SELECTOR_CLEAR_ICON_FONT_SIZE = 18.57;\nconst STANDARD_AUTOCOMPLETE_INPUT_PADDING_LEFT = '11px !important';\nconst OUTLINED_AUTOCOMPLETE_INPUT_PADDING_LEFT = '2px !important';\nconst OUTLINED_SMALL_AUTOCOMPLETE_INPUT_PADDING_LEFT = '5px !important';\n\ntype SelectorAutocompleteKeyDownEvent = ReactKeyboardEvent<HTMLDivElement> & {\n defaultMuiPrevented?: boolean;\n};\n\n/**\n * 현재 키 이벤트 기준 입력값 반환\n * @param event 키보드 이벤트\n * @param fallbackValue 제어 입력 fallback 값\n */\nconst getCurrentAutocompleteInputValue = (\n event: SelectorAutocompleteKeyDownEvent,\n fallbackValue?: string,\n) => {\n const eventTarget = event.target;\n\n if (eventTarget instanceof HTMLInputElement) {\n return eventTarget.value;\n }\n\n return fallbackValue ?? '';\n};\n\n/**\n * Autocomplete 옵션 라벨 문자열 변환\n * @param label 옵션 라벨\n */\nconst getAutocompleteOptionLabel = (label: OwpSelectorBaseOption['label']) => {\n return typeof label === 'string' || typeof label === 'number' ? `${label}` : '';\n};\n\n/**\n * Autocomplete 기반 공통 선택기\n * @param props Autocomplete 렌더링 props\n */\nexport const OwpSelectorAutocomplete = ({ hookResult, props }: OwpSelectorAutocompleteProps) => {\n const { t } = useOwpTranslation();\n const {\n autocompleteInputValue,\n className,\n disableAllValueItem,\n disableClientFilter,\n disabled,\n error,\n fullWidth,\n helperText,\n label,\n loading,\n loadingText,\n multiple,\n noOptionsText,\n onAutocompleteInputChange,\n placeholder,\n required,\n textFieldProps,\n } = props;\n const {\n allOption,\n clearSelection,\n isAllSelected,\n resolvedOptions,\n restoreAllSelection,\n selectAll,\n selectedOption,\n selectedOptions,\n selectMultipleValues,\n selectSingleValue,\n } = hookResult;\n const options = disableAllValueItem ? resolvedOptions : [allOption, ...resolvedOptions];\n const filteredSelectedOptions = useMemo(\n () => selectedOptions.filter((option) => !isSelectorAllOption(option)),\n [selectedOptions],\n );\n const hiddenSelectedOptions = useMemo(\n () => (isAllSelected ? [] : filteredSelectedOptions.slice(MULTIPLE_VISIBLE_CHIP_COUNT)),\n [filteredSelectedOptions, isAllSelected],\n );\n const hiddenSelectedOptionCount = hiddenSelectedOptions.length;\n const [hiddenChipAnchorEl, setHiddenChipAnchorEl] = useState<HTMLElement | null>(null);\n const autocompleteRootRef = useRef<HTMLDivElement | null>(null);\n const resolvedNoOptionsText = noOptionsText ?? t('Message.검색 결과 없음');\n const shouldRestoreAllOnClearRef = useRef(\n multiple &&\n !disableAllValueItem &&\n ((props.value ?? props.defaultValue) == null || (props.value ?? props.defaultValue) === ''),\n );\n const autocompleteSlotProps = {\n clearIndicator: {\n className: 'm-0 p-0',\n size: 'small',\n },\n paper: {\n sx: {\n '& .MuiAutocomplete-noOptions': {\n fontSize: 14,\n px: 1,\n py: 1.5,\n whiteSpace: 'nowrap',\n },\n },\n },\n popupIndicator: {\n className: 'm-0 p-0',\n size: 'small',\n },\n } as const;\n const resolvedTextFieldVariant = textFieldProps?.variant ?? 'standard';\n const singleAutocompleteInputSx =\n resolvedTextFieldVariant === 'standard'\n ? {\n '& .MuiAutocomplete-input': {\n paddingLeft: STANDARD_AUTOCOMPLETE_INPUT_PADDING_LEFT,\n },\n }\n : resolvedTextFieldVariant === 'outlined'\n ? {\n '& .MuiAutocomplete-input': {\n paddingLeft:\n textFieldProps?.size === 'small'\n ? OUTLINED_SMALL_AUTOCOMPLETE_INPUT_PADDING_LEFT\n : OUTLINED_AUTOCOMPLETE_INPUT_PADDING_LEFT,\n },\n }\n : undefined;\n const autocompleteSx = {\n minWidth: AUTOCOMPLETE_MIN_WIDTH,\n '& .MuiAutocomplete-endAdornment': {\n '& .MuiAutocomplete-clearIndicator + .MuiAutocomplete-popupIndicator': {\n ml: 0,\n },\n '& .MuiIconButton-root': {\n m: 0,\n p: 0,\n },\n '& > :not(style) + :not(style)': {\n ml: 0,\n },\n alignItems: 'center',\n gap: 0,\n right: 0,\n },\n } as const;\n const multipleAutocompleteSx = {\n ...autocompleteSx,\n '& .MuiAutocomplete-inputRoot .MuiAutocomplete-input': {\n flexBasis: MULTIPLE_AUTOCOMPLETE_INPUT_MIN_WIDTH,\n minWidth: MULTIPLE_AUTOCOMPLETE_INPUT_MIN_WIDTH,\n },\n } as const;\n\n useEffect(() => {\n if (!hiddenSelectedOptionCount) {\n setHiddenChipAnchorEl(null);\n }\n }, [hiddenSelectedOptionCount]);\n\n useEffect(() => {\n if (!shouldRestoreAllOnClearRef.current) {\n return;\n }\n\n const formElement = autocompleteRootRef.current?.closest('form');\n\n if (!formElement) {\n return;\n }\n\n const handleFormReset = () => {\n window.setTimeout(() => {\n restoreAllSelection();\n }, 0);\n };\n\n formElement.addEventListener('reset', handleFormReset);\n\n return () => {\n formElement.removeEventListener('reset', handleFormReset);\n };\n }, [restoreAllSelection]);\n\n const handleHiddenChipPopperClose = () => {\n setHiddenChipAnchorEl(null);\n };\n\n const handleHiddenChipSummaryMouseDown = (event: ReactMouseEvent<HTMLElement>) => {\n event.preventDefault();\n };\n\n const handleHiddenChipSummaryClick = (event: ReactMouseEvent<HTMLElement>) => {\n event.preventDefault();\n event.stopPropagation();\n\n setHiddenChipAnchorEl((previousAnchorElement) =>\n previousAnchorElement === event.currentTarget ? null : event.currentTarget,\n );\n };\n\n const handleHiddenChipDelete = (optionValue: string) => {\n selectMultipleValues(\n filteredSelectedOptions\n .filter((option) => option.value !== optionValue)\n .map((option) => option.value),\n );\n };\n\n const handleMultipleRootKeyDown = (event: SelectorAutocompleteKeyDownEvent) => {\n const currentInputValue = getCurrentAutocompleteInputValue(event, autocompleteInputValue);\n\n if (\n (isAllSelected || hiddenSelectedOptionCount > 0) &&\n currentInputValue === '' &&\n (event.key === 'Backspace' || event.key === 'Delete')\n ) {\n event.defaultMuiPrevented = true;\n event.preventDefault();\n event.stopPropagation();\n }\n\n textFieldProps?.onKeyDown?.(\n event as Parameters<NonNullable<typeof textFieldProps.onKeyDown>>[0],\n );\n };\n\n if (multiple) {\n return (\n <>\n <Autocomplete\n ref={autocompleteRootRef as MutableRefObject<HTMLDivElement | null>}\n className={clsx('min-w-128', className)}\n disableCloseOnSelect\n disabled={disabled}\n filterOptions={disableClientFilter ? (nextOptions) => nextOptions : undefined}\n fullWidth={fullWidth}\n inputValue={autocompleteInputValue}\n loading={loading}\n multiple\n options={options}\n clearText=\"\"\n closeText=\"\"\n clearIcon={<ClearIcon sx={{ fontSize: SELECTOR_CLEAR_ICON_FONT_SIZE }} />}\n openText=\"\"\n popupIcon={<ArrowDropDownIcon />}\n sx={multipleAutocompleteSx}\n value={selectedOptions}\n getOptionLabel={(option) => getAutocompleteOptionLabel(option.label)}\n getOptionKey={(option) => option.value}\n isOptionEqualToValue={(option, selected) => option.value === selected.value}\n loadingText={loadingText ?? t('Common.로딩 중...')}\n noOptionsText={resolvedNoOptionsText}\n onChange={(\n _event: SyntheticEvent,\n nextOptions: OwpSelectorBaseOption[],\n reason: string,\n details,\n ) => {\n const currentInputValue =\n _event.type === 'keydown'\n ? getCurrentAutocompleteInputValue(\n _event as SelectorAutocompleteKeyDownEvent,\n autocompleteInputValue,\n )\n : (autocompleteInputValue ?? '');\n\n if (\n reason === 'removeOption' &&\n _event.type === 'keydown' &&\n currentInputValue === '' &&\n (isAllSelected || hiddenSelectedOptionCount > 0)\n ) {\n _event.preventDefault();\n _event.stopPropagation();\n return;\n }\n\n if (reason === 'clear') {\n if (shouldRestoreAllOnClearRef.current) {\n selectAll();\n return;\n }\n\n clearSelection();\n return;\n }\n\n if (!disableAllValueItem && details?.option && isSelectorAllOption(details.option)) {\n if (isAllSelected) {\n clearSelection();\n return;\n }\n\n selectAll();\n return;\n }\n\n selectMultipleValues(\n nextOptions\n .filter((option) => !isSelectorAllOption(option))\n .map((option) => option.value),\n );\n }}\n onInputChange={(_event, nextInputValue, reason) => {\n onAutocompleteInputChange?.(nextInputValue, reason);\n }}\n onKeyDown={handleMultipleRootKeyDown}\n slotProps={autocompleteSlotProps}\n renderInput={(params) => (\n <TextField\n {...params}\n {...textFieldProps}\n disabled={disabled}\n error={error}\n fullWidth={fullWidth}\n helperText={helperText}\n label={label}\n placeholder={placeholder ?? t('Common.검색')}\n required={required}\n slotProps={{\n ...textFieldProps?.slotProps,\n input: {\n ...params.InputProps,\n ...textFieldProps?.slotProps?.input,\n endAdornment: (\n <>\n {loading ? (\n <CircularProgress color=\"inherit\" size={16} sx={{ mr: 0.5 }} />\n ) : null}\n {params.InputProps.endAdornment}\n </>\n ),\n },\n }}\n variant={resolvedTextFieldVariant}\n />\n )}\n renderOption={(optionProps, option, state) => {\n const { key, ...restOptionProps } = optionProps;\n\n return (\n <li key={key} {...restOptionProps}>\n <Checkbox checked={state.selected} className=\"!mr-8 !p-0\" size=\"small\" />\n {option.label}\n </li>\n );\n }}\n renderValue={(nextSelectedOptions, getItemProps) => {\n if (!disableAllValueItem && isAllSelected) {\n return [\n <Box\n component=\"span\"\n key={allOption.value}\n sx={{ color: 'text.primary', fontWeight: 500, mr: 0.5 }}\n >\n {allOption.label}\n </Box>,\n ];\n }\n\n const visibleSelectedOptions = nextSelectedOptions\n .filter((option) => !isSelectorAllOption(option))\n .slice(0, MULTIPLE_VISIBLE_CHIP_COUNT);\n\n return [\n ...visibleSelectedOptions.map((option, index) => {\n const { key, ...itemProps } = getItemProps({ index });\n\n return (\n <Chip\n {...itemProps}\n key={key}\n label={option.label}\n size=\"small\"\n sx={{ borderRadius: 1, mr: 0.5 }}\n />\n );\n }),\n ...(hiddenSelectedOptionCount > 0\n ? [\n <Chip\n key=\"owp-selector-hidden-chip-summary\"\n clickable\n label={`+${hiddenSelectedOptionCount}`}\n onClick={handleHiddenChipSummaryClick}\n onMouseDown={handleHiddenChipSummaryMouseDown}\n size=\"small\"\n sx={(theme) => ({\n backgroundColor: alpha(theme.palette.primary.main, 0.14),\n border: `1px solid ${alpha(theme.palette.primary.main, 0.22)}`,\n borderRadius: 1,\n color: theme.palette.primary.dark,\n fontWeight: 600,\n mr: 0.5,\n '&:hover': {\n backgroundColor: alpha(theme.palette.primary.main, 0.2),\n },\n })}\n />,\n ]\n : []),\n ];\n }}\n />\n <Popper\n anchorEl={hiddenChipAnchorEl}\n open={Boolean(hiddenChipAnchorEl) && hiddenSelectedOptionCount > 0}\n placement=\"bottom-start\"\n sx={{ zIndex: (theme) => theme.zIndex.modal }}\n >\n <ClickAwayListener onClickAway={handleHiddenChipPopperClose}>\n <Paper\n className=\"mt-4\"\n sx={{\n border: (theme) => `1px solid ${alpha(theme.palette.common.black, 0.12)}`,\n display: 'flex',\n flexWrap: 'wrap',\n gap: 0.75,\n maxWidth: 280,\n p: 1,\n }}\n >\n {hiddenSelectedOptions.map((option) => (\n <Chip\n key={option.value}\n label={option.label}\n onDelete={() => handleHiddenChipDelete(option.value)}\n size=\"small\"\n sx={{ borderRadius: 1 }}\n />\n ))}\n </Paper>\n </ClickAwayListener>\n </Popper>\n </>\n );\n }\n\n return (\n <Autocomplete\n className={clsx('min-w-128', className)}\n disabled={disabled}\n filterOptions={disableClientFilter ? (nextOptions) => nextOptions : undefined}\n fullWidth={fullWidth}\n inputValue={autocompleteInputValue}\n loading={loading}\n options={options}\n clearText=\"\"\n closeText=\"\"\n clearIcon={<ClearIcon sx={{ fontSize: SELECTOR_CLEAR_ICON_FONT_SIZE }} />}\n openText=\"\"\n popupIcon={<ArrowDropDownIcon />}\n sx={autocompleteSx}\n value={selectedOption}\n getOptionLabel={(option) => getAutocompleteOptionLabel(option.label)}\n getOptionKey={(option) => option.value}\n isOptionEqualToValue={(option, selected) => option.value === selected.value}\n loadingText={loadingText ?? t('Common.로딩 중...')}\n noOptionsText={resolvedNoOptionsText}\n onChange={(_event: SyntheticEvent, nextOption) => {\n if (!nextOption || (!disableAllValueItem && isSelectorAllOption(nextOption))) {\n selectSingleValue('');\n return;\n }\n\n selectSingleValue(nextOption.value);\n }}\n onInputChange={(_event, nextInputValue, reason) => {\n onAutocompleteInputChange?.(nextInputValue, reason);\n }}\n slotProps={autocompleteSlotProps}\n renderInput={(params) => (\n <TextField\n {...params}\n {...textFieldProps}\n disabled={disabled}\n error={error}\n fullWidth={fullWidth}\n helperText={helperText}\n label={label}\n placeholder={placeholder}\n required={required}\n slotProps={{\n ...textFieldProps?.slotProps,\n input: {\n ...params.InputProps,\n ...textFieldProps?.slotProps?.input,\n sx: {\n ...(singleAutocompleteInputSx ?? {}),\n ...((params.InputProps as { sx?: object }).sx ?? {}),\n ...((textFieldProps?.slotProps?.input as { sx?: object } | undefined)?.sx ?? {}),\n },\n endAdornment: (\n <>\n {loading ? <CircularProgress color=\"inherit\" size={16} sx={{ mr: 0.5 }} /> : null}\n {params.InputProps.endAdornment}\n </>\n ),\n },\n }}\n variant={resolvedTextFieldVariant}\n />\n )}\n selectOnFocus\n renderOption={(optionProps, option) => {\n const { key, ...restOptionProps } = optionProps;\n\n return (\n <li key={key} {...restOptionProps}>\n {option.label}\n </li>\n );\n }}\n />\n );\n};\n"],"names":["MULTIPLE_VISIBLE_CHIP_COUNT","AUTOCOMPLETE_MIN_WIDTH","MULTIPLE_AUTOCOMPLETE_INPUT_MIN_WIDTH","SELECTOR_CLEAR_ICON_FONT_SIZE","STANDARD_AUTOCOMPLETE_INPUT_PADDING_LEFT","OUTLINED_AUTOCOMPLETE_INPUT_PADDING_LEFT","OUTLINED_SMALL_AUTOCOMPLETE_INPUT_PADDING_LEFT","getCurrentAutocompleteInputValue","__name","event","fallbackValue","eventTarget","getAutocompleteOptionLabel","label","OwpSelectorAutocomplete","hookResult","props","t","useOwpTranslation","autocompleteInputValue","className","disableAllValueItem","disableClientFilter","disabled","error","fullWidth","helperText","loading","loadingText","multiple","noOptionsText","onAutocompleteInputChange","placeholder","required","textFieldProps","allOption","clearSelection","isAllSelected","resolvedOptions","restoreAllSelection","selectAll","selectedOption","selectedOptions","selectMultipleValues","selectSingleValue","options","filteredSelectedOptions","useMemo","option","isSelectorAllOption","hiddenSelectedOptions","hiddenSelectedOptionCount","hiddenChipAnchorEl","setHiddenChipAnchorEl","useState","autocompleteRootRef","useRef","resolvedNoOptionsText","shouldRestoreAllOnClearRef","autocompleteSlotProps","resolvedTextFieldVariant","singleAutocompleteInputSx","autocompleteSx","multipleAutocompleteSx","useEffect","formElement","_a","handleFormReset","handleHiddenChipPopperClose","handleHiddenChipSummaryMouseDown","handleHiddenChipSummaryClick","previousAnchorElement","handleHiddenChipDelete","optionValue","handleMultipleRootKeyDown","currentInputValue","jsxs","Fragment","jsx","Autocomplete","clsx","nextOptions","ClearIcon","ArrowDropDownIcon","selected","_event","reason","details","nextInputValue","params","TextField","CircularProgress","optionProps","state","key","restOptionProps","Checkbox","nextSelectedOptions","getItemProps","Box","index","itemProps","createElement","Chip","theme","alpha","Popper","ClickAwayListener","Paper","nextOption","_c","_b"],"mappings":";;;;;;;;;;;;AAsCA,MAAMA,KAA8B,GAC9BC,KAAyB,KACzBC,KAAwC,IACxCC,KAAgC,OAChCC,KAA2C,mBAC3CC,KAA2C,kBAC3CC,KAAiD,kBAWjDC,KAAmC,gBAAAC,EAAA,CACvCC,GACAC,MACG;AACH,QAAMC,IAAcF,EAAM;AAE1B,SAAIE,aAAuB,mBAClBA,EAAY,QAGdD,KAAiB;AAC1B,GAXyC,qCAiBnCE,KAA6B,gBAAAJ,EAAA,CAACK,MAC3B,OAAOA,KAAU,YAAY,OAAOA,KAAU,WAAW,GA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,EAAO,SADD8C,CAET;AAAA,MAEJ,GARc;AAAA,IAQd;AAAA,EAAA;AAGN,GA7duC;"}
|
package/dist/index.js
CHANGED
|
@@ -2,17 +2,17 @@ import { DialogsProvider as r } from "@toolpad/core/useDialogs";
|
|
|
2
2
|
import { themeLayouts as p } from "./layout/themeLayouts.js";
|
|
3
3
|
import { createInitialOwpSettings as a, defaultSettings as x, defaultSnackbarTheme as f, defaultThemeOptions as O, defaultThemes as w, extendThemeWithMixins as i, generateSettings as l, getDefaultLayout as n, getDefaultThemeSettings as d, getParsedQuerySettings as u, mustHaveThemeOptions as g } from "./configs/defaultConfig.js";
|
|
4
4
|
import { OwpAutoLogoutDialog as c } from "./components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js";
|
|
5
|
-
import { OwpBarcodeInputField as
|
|
6
|
-
import { OwpExportDataToExcelButton as
|
|
5
|
+
import { OwpBarcodeInputField as s } from "./components/OwpBarcodeInput/OwpBarcodeInputField.js";
|
|
6
|
+
import { OwpExportDataToExcelButton as P } from "./components/OwpExportExcelButton/OwpExportExcelButton.js";
|
|
7
7
|
import { OwpFilePickerButton as h } from "./components/OwpFilePickerButton/OwpFilePickerButton.js";
|
|
8
|
-
import { OwpMoreActionsButton as
|
|
8
|
+
import { OwpMoreActionsButton as k } from "./components/OwpMoreActionsButton/OwpMoreActionsButton.js";
|
|
9
9
|
import { OwpDatePicker as B } from "./components/OwpPicker/OwpDatePicker.js";
|
|
10
10
|
import { OwpDateRangePicker as L } from "./components/OwpPicker/OwpDateRangePicker.js";
|
|
11
11
|
import { OwpTimePicker as G } from "./components/OwpPicker/OwpTimePicker.js";
|
|
12
12
|
import { OwpWeekDatePicker as v } from "./components/OwpPicker/OwpWeekDatePicker.js";
|
|
13
13
|
import { OwpYearRangePicker as M } from "./components/OwpPicker/OwpYearRangePicker.js";
|
|
14
|
-
import { OwpDataTable as
|
|
15
|
-
import { OwpTable as
|
|
14
|
+
import { OwpDataTable as H } from "./components/OwpTable/OwpDataTable.js";
|
|
15
|
+
import { OwpTable as N, OwpTableTotalCount as W, StyledTable as Y, StyledTableRow as q } from "./components/OwpTable/OwpTable.js";
|
|
16
16
|
import { OwpFieldTable as j } from "./components/OwpTable/OwpFieldTable.js";
|
|
17
17
|
import { OwpTextMaskField as J } from "./components/OwpTextField/OwpTextMaskField.js";
|
|
18
18
|
import { OwpTreeGridToolbar as U } from "./components/OwpTreeGrid/OwpTreeGridToolbar.js";
|
|
@@ -23,89 +23,92 @@ import { OwpEventEmitter as te } from "./components/OwpEventEmitter/OwpEventEmit
|
|
|
23
23
|
import { OwpLanguageSwitcherSelect as me } from "./components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.js";
|
|
24
24
|
import { OwpDialog as xe } from "./components/OwpDialog/OwpDialog.js";
|
|
25
25
|
import { CommonCodeSelector as Oe, OwpCommonCodeSelector as we } from "./components/OwpCommonCode/OwpCommonCodeSelector.js";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
26
|
+
import { CommonCodeQuerySelector as le, OwpCommonCodeQuerySelector as ne } from "./components/OwpCommonCode/OwpCommonCodeQuerySelector.js";
|
|
27
|
+
import { CommonCodeRadioGroup as ue, OwpCommonCodeRadioGroup as ge } from "./components/OwpCommonCode/OwpCommonCodeRadioGroup.js";
|
|
28
|
+
import { OwpErrorStatusPage as ce } from "./components/OwpErrorStatusPage/OwpErrorStatusPage.js";
|
|
29
|
+
import { OwpFieldHelperText as se } from "./components/OwpFieldHelperText/OwpFieldHelperText.js";
|
|
30
|
+
import { OwpLayout as Pe } from "./components/OwpLayout/OwpLayout.js";
|
|
31
|
+
import { OwpLoading as he } from "./components/OwpLoading/OwpLoading.js";
|
|
32
|
+
import { OwpMrtTable as ke } from "./components/OwpMrtTable/OwpMrtTable.js";
|
|
33
|
+
import { OwpNumberField as Be } from "./components/OwpNumberField/OwpNumberField.js";
|
|
34
|
+
import { OwpOptionSelector as Le } from "./components/OwpOptionSelector/OwpOptionSelector.js";
|
|
35
|
+
import { OwpPageCarded as Ge } from "./components/OwpPageCarded/OwpPageCarded.js";
|
|
36
|
+
import { OwpPageContent as ve } from "./components/OwpPageContent/OwpPageContent.js";
|
|
37
|
+
import { OwpPageLockLoading as Me } from "./components/OwpPageLockLoading/OwpPageLockLoading.js";
|
|
38
|
+
import { OwpPageTitle as He } from "./components/OwpPageTitle/OwpPageTitle.js";
|
|
39
|
+
import { OwpQuerySelector as Ne } from "./components/OwpQuerySelector/OwpQuerySelector.js";
|
|
40
|
+
import { OwpScrollbars as Ye } from "./components/OwpScrollbars/OwpScrollbars.js";
|
|
41
|
+
import { OwpSearchFilter as Ze } from "./components/OwpSearchFilter/OwpSearchFilter.js";
|
|
42
|
+
import { OwpSection as ze } from "./components/OwpSection/OwpSection.js";
|
|
43
|
+
import { OwpStyleProvider as Ke } from "./components/OwpStyleProvider/OwpStyleProvider.js";
|
|
44
|
+
import { OwpSuspense as Ve } from "./components/OwpSuspense/OwpSuspense.js";
|
|
45
|
+
import { OwpSvgIcon as _e } from "./components/OwpSvgIcon/OwpSvgIcon.js";
|
|
46
|
+
import { OwpRequiredHelperText as eo } from "./components/OwpRequiredHelperText/OwpRequiredHelperText.js";
|
|
47
|
+
import { OwpTab as ro } from "./components/OwpTabs/OwpTab.js";
|
|
48
|
+
import { OwpTabs as po } from "./components/OwpTabs/OwpTabs.js";
|
|
49
|
+
import { OwpTreeGridExportExcelButton as ao } from "./components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js";
|
|
50
|
+
import { OwpTreeGridResetChangesButton as fo } from "./components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js";
|
|
51
|
+
import { OwpTreeGrid as wo } from "./components/OwpTreeGrid/OwpTreeGrid.js";
|
|
52
|
+
import { TreeGrid as lo } from "./components/OwpTreeGrid/TreeGrid.js";
|
|
53
|
+
import { OwpYesNoSelector as uo } from "./components/OwpYesNoSelector/OwpYesNoSelector.js";
|
|
53
54
|
export {
|
|
54
|
-
le as
|
|
55
|
+
le as CommonCodeQuerySelector,
|
|
56
|
+
ue as CommonCodeRadioGroup,
|
|
55
57
|
Oe as CommonCodeSelector,
|
|
56
58
|
r as DialogsProvider,
|
|
57
59
|
c as OwpAutoLogoutDialog,
|
|
58
|
-
|
|
59
|
-
ne as
|
|
60
|
+
s as OwpBarcodeInputField,
|
|
61
|
+
ne as OwpCommonCodeQuerySelector,
|
|
62
|
+
ge as OwpCommonCodeRadioGroup,
|
|
60
63
|
we as OwpCommonCodeSelector,
|
|
61
|
-
|
|
64
|
+
H as OwpDataTable,
|
|
62
65
|
B as OwpDatePicker,
|
|
63
66
|
L as OwpDateRangePicker,
|
|
64
67
|
xe as OwpDialog,
|
|
65
68
|
oe as OwpErrorBoundary,
|
|
66
|
-
|
|
69
|
+
ce as OwpErrorStatusPage,
|
|
67
70
|
te as OwpEventEmitter,
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
P as OwpExportDataToExcelButton,
|
|
72
|
+
se as OwpFieldHelperText,
|
|
70
73
|
j as OwpFieldTable,
|
|
71
74
|
h as OwpFilePickerButton,
|
|
72
75
|
me as OwpLanguageSwitcherSelect,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
Pe as OwpLayout,
|
|
77
|
+
he as OwpLoading,
|
|
78
|
+
k as OwpMoreActionsButton,
|
|
79
|
+
ke as OwpMrtTable,
|
|
80
|
+
Be as OwpNumberField,
|
|
81
|
+
Le as OwpOptionSelector,
|
|
79
82
|
$ as OwpPageBreadcrumb,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
83
|
+
Ge as OwpPageCarded,
|
|
84
|
+
ve as OwpPageContent,
|
|
85
|
+
Me as OwpPageLockLoading,
|
|
86
|
+
He as OwpPageTitle,
|
|
87
|
+
Ne as OwpQuerySelector,
|
|
88
|
+
eo as OwpRequiredHelperText,
|
|
89
|
+
Ye as OwpScrollbars,
|
|
90
|
+
Ze as OwpSearchFilter,
|
|
91
|
+
ze as OwpSection,
|
|
92
|
+
Ke as OwpStyleProvider,
|
|
93
|
+
Ve as OwpSuspense,
|
|
94
|
+
_e as OwpSvgIcon,
|
|
95
|
+
ro as OwpTab,
|
|
96
|
+
N as OwpTable,
|
|
94
97
|
W as OwpTableTotalCount,
|
|
95
|
-
|
|
98
|
+
po as OwpTabs,
|
|
96
99
|
J as OwpTextMaskField,
|
|
97
100
|
G as OwpTimePicker,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
wo as OwpTreeGrid,
|
|
102
|
+
ao as OwpTreeGridExportExcelButton,
|
|
103
|
+
fo as OwpTreeGridResetChangesButton,
|
|
101
104
|
U as OwpTreeGridToolbar,
|
|
102
105
|
v as OwpWeekDatePicker,
|
|
103
106
|
M as OwpYearRangePicker,
|
|
104
|
-
|
|
107
|
+
uo as OwpYesNoSelector,
|
|
105
108
|
X as OwpZoomImageSlider,
|
|
106
109
|
Y as StyledTable,
|
|
107
110
|
q as StyledTableRow,
|
|
108
|
-
|
|
111
|
+
lo as TreeGrid,
|
|
109
112
|
a as createInitialOwpSettings,
|
|
110
113
|
x as defaultSettings,
|
|
111
114
|
f as defaultSnackbarTheme,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -18,11 +18,11 @@ import { styled as te } from "@mui/material/styles";
|
|
|
18
18
|
import z from "@mui/material/TextField";
|
|
19
19
|
import ne from "@mui/material/Tooltip";
|
|
20
20
|
import E from "@mui/material/Typography";
|
|
21
|
-
import D from "../../../_virtual/
|
|
22
|
-
import re from "../../../_virtual/
|
|
21
|
+
import D from "../../../_virtual/index17.js";
|
|
22
|
+
import re from "../../../_virtual/index18.js";
|
|
23
23
|
import { clsx as B } from "../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
24
24
|
import { useMemo as oe, useReducer as ie, useRef as T, useEffect as se } from "react";
|
|
25
|
-
import W from "../../../_virtual/
|
|
25
|
+
import W from "../../../_virtual/index19.js";
|
|
26
26
|
import { useNavigate as ae } from "react-router-dom";
|
|
27
27
|
import { toolbarToggleSx as le } from "./toggleStyles.js";
|
|
28
28
|
import { OwpSvgIcon as w } from "../../../components/OwpSvgIcon/OwpSvgIcon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Q = Object.defineProperty;
|
|
2
2
|
var w = (k, D) => Q(k, "name", { value: D, configurable: !0 });
|
|
3
|
-
import { __module as I } from "../../../../../_virtual/
|
|
3
|
+
import { __module as I } from "../../../../../_virtual/index4.js";
|
|
4
4
|
var F;
|
|
5
5
|
function W() {
|
|
6
6
|
return F ? I.exports : (F = 1, (function(k, D) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var q = Object.defineProperty;
|
|
2
2
|
var O = (C, _) => q(C, "name", { value: _, configurable: !0 });
|
|
3
|
-
import { __exports as r } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as r } from "../../../../../../../../_virtual/index7.js";
|
|
4
4
|
import { __require as d } from "./CODE128_AUTO.js";
|
|
5
5
|
import { __require as n } from "./CODE128A.js";
|
|
6
6
|
import { __require as m } from "./CODE128B.js";
|
package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var w = Object.defineProperty;
|
|
2
2
|
var n = (f, a) => w(f, "name", { value: a, configurable: !0 });
|
|
3
|
-
import { __exports as i } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as i } from "../../../../../../../../_virtual/index6.js";
|
|
4
4
|
import { __require as k } from "../Barcode.js";
|
|
5
5
|
var _;
|
|
6
6
|
function P() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var n = Object.defineProperty;
|
|
2
2
|
var $ = (r, t) => n(r, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { __exports as x } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as x } from "../../../../../../../../_virtual/constants4.js";
|
|
4
4
|
var e;
|
|
5
5
|
function o() {
|
|
6
6
|
return e ? x : (e = 1, Object.defineProperty(x, "__esModule", {
|
package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var D = Object.defineProperty;
|
|
2
2
|
var C = (u, t) => D(u, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { __exports as e } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as e } from "../../../../../../../../_virtual/index13.js";
|
|
4
4
|
import { __require as O } from "./CODE93.js";
|
|
5
5
|
import { __require as E } from "./CODE93FullASCII.js";
|
|
6
6
|
var l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var C = Object.defineProperty;
|
|
2
2
|
var i = (u, a) => C(u, "name", { value: a, configurable: !0 });
|
|
3
|
-
import { __exports as r } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as r } from "../../../../../../../../_virtual/index8.js";
|
|
4
4
|
import { __require as U } from "./EAN13.js";
|
|
5
5
|
import { __require as s } from "./EAN8.js";
|
|
6
6
|
import { __require as l } from "./EAN5.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var b = Object.defineProperty;
|
|
2
2
|
var r = (a, f) => b(a, "name", { value: f, configurable: !0 });
|
|
3
|
-
import { __exports as u } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as u } from "../../../../../../../../_virtual/index14.js";
|
|
4
4
|
import { __require as p } from "../Barcode.js";
|
|
5
5
|
var c;
|
|
6
6
|
function w() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var o = Object.defineProperty;
|
|
2
2
|
var r = (n, s) => o(n, "name", { value: s, configurable: !0 });
|
|
3
|
-
import { __exports as e } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as e } from "../../../../../../../../_virtual/constants3.js";
|
|
4
4
|
var t;
|
|
5
5
|
function _() {
|
|
6
6
|
return t ? e : (t = 1, Object.defineProperty(e, "__esModule", {
|
package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var T = Object.defineProperty;
|
|
2
2
|
var i = (u, t) => T(u, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { __exports as e } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as e } from "../../../../../../../../_virtual/index9.js";
|
|
4
4
|
import { __require as f } from "./ITF.js";
|
|
5
5
|
import { __require as n } from "./ITF14.js";
|
|
6
6
|
var a;
|
package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var v = Object.defineProperty;
|
|
2
2
|
var I = (M, _) => v(M, "name", { value: _, configurable: !0 });
|
|
3
|
-
import { __exports as r } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as r } from "../../../../../../../../_virtual/index10.js";
|
|
4
4
|
import { __require as n } from "./MSI.js";
|
|
5
5
|
import { __require as s } from "./MSI10.js";
|
|
6
6
|
import { __require as l } from "./MSI11.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
2
|
var a = (f, c) => p(f, "name", { value: c, configurable: !0 });
|
|
3
|
-
import { __exports as i } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as i } from "../../../../../../../../_virtual/index12.js";
|
|
4
4
|
import { __require as g } from "../Barcode.js";
|
|
5
5
|
var h;
|
|
6
6
|
function w() {
|
package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var O = Object.defineProperty;
|
|
2
2
|
var C = (i, r) => O(i, "name", { value: r, configurable: !0 });
|
|
3
|
-
import { __exports as o } from "../../../../../../../_virtual/
|
|
3
|
+
import { __exports as o } from "../../../../../../../_virtual/index3.js";
|
|
4
4
|
import { __require as c } from "./CODE39/index.js";
|
|
5
5
|
import { __require as D } from "./CODE128/index.js";
|
|
6
6
|
import { __require as d } from "./EAN_UPC/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var v = Object.defineProperty;
|
|
2
2
|
var i = (u, f) => v(u, "name", { value: f, configurable: !0 });
|
|
3
|
-
import { __exports as a } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as a } from "../../../../../../../../_virtual/index11.js";
|
|
4
4
|
import { __require as y } from "../Barcode.js";
|
|
5
5
|
var c;
|
|
6
6
|
function q() {
|
package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var v = Object.defineProperty;
|
|
2
2
|
var _ = (a, t) => v(a, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { __exports as r } from "../../../../../../../_virtual/
|
|
3
|
+
import { __exports as r } from "../../../../../../../_virtual/index15.js";
|
|
4
4
|
import { __require as f } from "./canvas.js";
|
|
5
5
|
import { __require as q } from "./svg.js";
|
|
6
6
|
import { __require as c } from "./object.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var S = Object.defineProperty;
|
|
2
2
|
var e = (r, i) => S(r, "name", { value: i, configurable: !0 });
|
|
3
|
-
import { __exports as n } from "../../../../../../../_virtual/
|
|
3
|
+
import { __exports as n } from "../../../../../../../_virtual/utils.js";
|
|
4
4
|
var u;
|
|
5
5
|
function c() {
|
|
6
6
|
if (u) return n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var M = Object.defineProperty;
|
|
2
2
|
var a = (l, h) => M(l, "name", { value: h, configurable: !0 });
|
|
3
|
-
import { __exports as s } from "../../../../../../../_virtual/
|
|
3
|
+
import { __exports as s } from "../../../../../../../_virtual/utils2.js";
|
|
4
4
|
var w;
|
|
5
5
|
function _() {
|
|
6
6
|
return w ? s : (w = 1, (function(l) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
2
|
var a = (r, e) => c(r, "name", { value: e, configurable: !0 });
|
|
3
|
-
import n from "../../../../../../_virtual/
|
|
3
|
+
import n from "../../../../../../_virtual/index16.js";
|
|
4
4
|
import m from "react-dom";
|
|
5
5
|
import t from "react";
|
|
6
6
|
import u from "./useWaitForDOMRef.js";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { OwpSelectorType } from '@/components/OwpSelectorBase/types';
|
|
2
|
+
import type { CommonCode } from '@/utils/commonCodeUtils';
|
|
3
|
+
import { type SelectChangeEvent, type SelectProps, type TextFieldProps } from '@mui/material';
|
|
4
|
+
import { type ReactNode } from 'react';
|
|
5
|
+
export type OwpCommonCodeQueryItem = Partial<CommonCode> & Record<string, unknown>;
|
|
6
|
+
type CommonCodeQuerySelectChangeHandler = (event: SelectChangeEvent<string>, child: ReactNode) => void;
|
|
7
|
+
export type OwpCommonCodeQuerySelectorProps = Omit<SelectProps<string>, 'defaultValue' | 'multiple' | 'onChange' | 'renderValue' | 'value'> & {
|
|
8
|
+
apiUrl?: string;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
disableAllValueItem?: boolean;
|
|
12
|
+
filterOptions?: (commonCode: OwpCommonCodeQueryItem) => boolean;
|
|
13
|
+
groupId?: string;
|
|
14
|
+
helperText?: string;
|
|
15
|
+
labelResolver?: (commonCode: OwpCommonCodeQueryItem) => string;
|
|
16
|
+
multiple?: boolean;
|
|
17
|
+
onChange?: CommonCodeQuerySelectChangeHandler;
|
|
18
|
+
query?: Record<string, unknown>;
|
|
19
|
+
queryKeyDeps?: readonly unknown[];
|
|
20
|
+
responseListKey?: string;
|
|
21
|
+
selectorType?: OwpSelectorType;
|
|
22
|
+
textFieldProps?: Omit<TextFieldProps, 'defaultValue' | 'error' | 'helperText' | 'label' | 'onChange' | 'required' | 'value'>;
|
|
23
|
+
useValueKeyDescription?: boolean;
|
|
24
|
+
value?: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 원격 조회형 공통코드 선택기
|
|
28
|
+
* @param props 원격 공통코드 선택기 props
|
|
29
|
+
*/
|
|
30
|
+
export declare const OwpCommonCodeQuerySelector: ({ apiUrl, className, defaultValue, description, disableAllValueItem, error, filterOptions, fullWidth, groupId, helperText, label, labelResolver, multiple, onChange, query, queryKeyDeps, required, responseListKey, selectorType, textFieldProps, useValueKeyDescription, value, variant, ...selectProps }: OwpCommonCodeQuerySelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const CommonCodeQuerySelector: ({ apiUrl, className, defaultValue, description, disableAllValueItem, error, filterOptions, fullWidth, groupId, helperText, label, labelResolver, multiple, onChange, query, queryKeyDeps, required, responseListKey, selectorType, textFieldProps, useValueKeyDescription, value, variant, ...selectProps }: OwpCommonCodeQuerySelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { OwpCommonCodeSelector, CommonCodeSelector } from './OwpCommonCodeSelector';
|
|
2
2
|
export type { OwpCommonCodeSelectorProps } from './OwpCommonCodeSelector';
|
|
3
|
+
export { OwpCommonCodeQuerySelector, CommonCodeQuerySelector } from './OwpCommonCodeQuerySelector';
|
|
4
|
+
export type { OwpCommonCodeQueryItem, OwpCommonCodeQuerySelectorProps, } from './OwpCommonCodeQuerySelector';
|
|
3
5
|
export { OwpCommonCodeRadioGroup, CommonCodeRadioGroup } from './OwpCommonCodeRadioGroup';
|
|
4
6
|
export type { OwpCommonCodeRadioGroupProps } from './OwpCommonCodeRadioGroup';
|