@owp/core 2.5.2 → 2.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/_virtual/index16.js +4 -4
  2. package/dist/_virtual/index17.js +4 -4
  3. package/dist/_virtual/index18.js +4 -4
  4. package/dist/_virtual/index19.js +4 -4
  5. package/dist/components/{OwpFileUploadButton/OwpFileUploadButton.js → OwpFilePickerButton/OwpFilePickerButton.js} +15 -15
  6. package/dist/components/OwpFilePickerButton/OwpFilePickerButton.js.map +1 -0
  7. package/dist/components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.js.map +1 -1
  8. package/dist/components/OwpMoreActionsButton/OwpMoreActionsButton.js +27 -27
  9. package/dist/components/OwpMoreActionsButton/OwpMoreActionsButton.js.map +1 -1
  10. package/dist/components/OwpMrtTable/OwpMrtTable.js +335 -317
  11. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
  12. package/dist/components/OwpTable/OwpDataTable.js +273 -251
  13. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  14. package/dist/components/OwpTable/OwpTable.js +180 -159
  15. package/dist/components/OwpTable/OwpTable.js.map +1 -1
  16. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +267 -184
  17. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  18. package/dist/components/{OwpTreeGridExcelButton/OwpTreeGridExcelButton.js → OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js} +7 -7
  19. package/dist/components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js.map +1 -0
  20. package/dist/constants/gridTheme.js +28 -0
  21. package/dist/constants/gridTheme.js.map +1 -0
  22. package/dist/hooks/useFormDataUploadMutation.js.map +1 -1
  23. package/dist/index.js +28 -28
  24. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  25. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  26. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  27. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  28. 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
  29. package/dist/types/components/{OwpFileUploadButton/OwpFileUploadButton.d.ts → OwpFilePickerButton/OwpFilePickerButton.d.ts} +4 -4
  30. package/dist/types/components/OwpFilePickerButton/index.d.ts +1 -0
  31. package/dist/types/components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.d.ts +1 -1
  32. package/dist/types/components/OwpMoreActionsButton/OwpMoreActionsButton.d.ts +4 -4
  33. package/dist/types/components/OwpTable/OwpTable.d.ts +2 -0
  34. package/dist/types/components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.d.ts +12 -0
  35. package/dist/types/components/OwpTreeGridExportExcelButton/index.d.ts +1 -0
  36. package/dist/types/constants/gridTheme.d.ts +30 -0
  37. package/dist/types/hooks/useFormDataUploadMutation.d.ts +4 -3
  38. package/dist/types/index.d.ts +2 -2
  39. package/dist/types/types/OwpGridThemeTypes.d.ts +14 -0
  40. package/dist/types/types/OwpSettingsTypes.d.ts +2 -0
  41. package/dist/types/types/index.d.ts +1 -0
  42. package/dist/utils/createFormDataBody.js +19 -14
  43. package/dist/utils/createFormDataBody.js.map +1 -1
  44. package/package.json +1 -1
  45. package/dist/components/OwpFileUploadButton/OwpFileUploadButton.js.map +0 -1
  46. package/dist/components/OwpTreeGridExcelButton/OwpTreeGridExcelButton.js.map +0 -1
  47. package/dist/types/components/OwpFileUploadButton/index.d.ts +0 -1
  48. package/dist/types/components/OwpTreeGridExcelButton/OwpTreeGridExcelButton.d.ts +0 -12
  49. package/dist/types/components/OwpTreeGridExcelButton/index.d.ts +0 -1
@@ -1,8 +1,10 @@
1
1
  import { themeLayoutDefaultsProps } from '@/layout/themeLayoutConfigs';
2
2
  import type { Palette } from '@mui/material/styles';
3
3
  import { PartialDeep } from 'type-fest';
4
+ import type { OwpGridThemeConfigType } from './OwpGridThemeTypes';
4
5
  export type OwpThemeType = {
5
6
  palette: PartialDeep<Palette>;
7
+ grid?: OwpGridThemeConfigType;
6
8
  };
7
9
  export type OwpThemesType = {
8
10
  [key: string]: OwpThemeType;
@@ -1,3 +1,4 @@
1
+ export type { OwpGridCellThemeConfigType, OwpGridHeaderThemeConfigType, OwpGridThemeConfigType, } from './OwpGridThemeTypes';
1
2
  export type { OwpThemeType, OwpThemesType, OwpSettingsConfigType, } from './OwpSettingsTypes';
2
3
  export type { OwpFlatNavItemType, OwpNavBadgeType, OwpNavPermission, OwpNavItemType, OwpPermissionFlag, } from './OwpNavigationTypes';
3
4
  export type { AnyFormFieldType, ThemeFormConfigTypes } from './ThemeFormConfigTypes';
@@ -1,21 +1,26 @@
1
1
  var i = Object.defineProperty;
2
- var n = (r, t) => i(r, "name", { value: t, configurable: !0 });
2
+ var o = (t, e) => i(t, "name", { value: e, configurable: !0 });
3
3
  import { isObject as a } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isObject.js";
4
- import { isArray as m } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
5
- const c = /* @__PURE__ */ n((r) => a(r) && !m(r), "isFormDataUploadBody"), F = /* @__PURE__ */ n((r, t = {}) => {
6
- const { fileNameFieldName: o } = t;
7
- return !o || r[o] != null ? r : {
8
- ...r,
9
- [o]: r.file.name.normalize("NFC")
4
+ import { isArray as c } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
5
+ const f = "FILE_NAME", m = /* @__PURE__ */ o((t) => a(t) && !c(t), "isFormDataUploadBody"), s = /* @__PURE__ */ o((t, e) => {
6
+ if (e)
7
+ return e;
8
+ const r = t.PAGEID, n = t.TABLENAME;
9
+ return typeof r == "string" && r && typeof n == "string" && n ? `${r}_${n}` : f;
10
+ }, "resolveFileNameFieldName"), N = /* @__PURE__ */ o((t, e = {}) => {
11
+ const r = s(t, e.fileNameFieldName);
12
+ return t[r] != null ? t : {
13
+ ...t,
14
+ [r]: t.file.name.normalize("NFC")
10
15
  };
11
- }, "normalizeFormDataUploadParams"), d = /* @__PURE__ */ n((r) => {
12
- const t = new FormData();
13
- return c(r) && Object.entries(r).forEach(([o, e]) => {
14
- e !== void 0 && t.append(o, e instanceof Blob ? e : String(e));
15
- }), t;
16
+ }, "normalizeFormDataUploadParams"), A = /* @__PURE__ */ o((t) => {
17
+ const e = new FormData();
18
+ return m(t) && Object.entries(t).forEach(([r, n]) => {
19
+ n !== void 0 && e.append(r, n instanceof Blob ? n : String(n));
20
+ }), e;
16
21
  }, "createFormDataBody");
17
22
  export {
18
- d as createFormDataBody,
19
- F as normalizeFormDataUploadParams
23
+ A as createFormDataBody,
24
+ N as normalizeFormDataUploadParams
20
25
  };
21
26
  //# sourceMappingURL=createFormDataBody.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createFormDataBody.js","sources":["../../src/utils/createFormDataBody.ts"],"sourcesContent":["import { isArray, isObject } from 'es-toolkit/compat';\n\nexport type FormDataFieldValue = string | number | Blob | undefined;\nexport type TAdditionalFields = Record<string, FormDataFieldValue>;\n\nexport type FormDataUploadParams<TFields extends TAdditionalFields = TAdditionalFields> = {\n file: File;\n} & Omit<TFields, 'file'>;\n\nexport type FormDataUploadBody<TFields extends TAdditionalFields = TAdditionalFields> = Record<\n string,\n FormDataFieldValue\n> &\n FormDataUploadParams<TFields>;\n\nexport interface NormalizeFormDataUploadParamsOptions {\n fileNameFieldName?: string;\n}\n\nconst isFormDataUploadBody = (body: unknown): body is FormDataUploadBody =>\n isObject(body) && !isArray(body);\n\n/**\n * FormData 업로드 파라미터 정규화\n * @param params 업로드 파라미터\n * @param options 파일명 필드 옵션\n */\nexport const normalizeFormDataUploadParams = <\n TFields extends TAdditionalFields = TAdditionalFields,\n>(\n params: FormDataUploadParams<TFields>,\n options: NormalizeFormDataUploadParamsOptions = {},\n) => {\n const { fileNameFieldName } = options;\n\n if (!fileNameFieldName || params[fileNameFieldName as keyof typeof params] != null) {\n return params as FormDataUploadBody<TFields>;\n }\n\n return {\n ...params,\n [fileNameFieldName]: params.file.name.normalize('NFC'),\n } as FormDataUploadBody<TFields>;\n};\n\n/**\n * FormData body 생성\n * @param body flat body 객체\n */\nexport const createFormDataBody = (body: unknown) => {\n const formData = new FormData();\n\n if (!isFormDataUploadBody(body)) {\n return formData;\n }\n\n Object.entries(body).forEach(([name, value]) => {\n if (value === undefined) {\n return;\n }\n\n formData.append(name, value instanceof Blob ? value : String(value));\n });\n\n return formData;\n};\n"],"names":["isFormDataUploadBody","__name","body","isObject","isArray","normalizeFormDataUploadParams","params","options","fileNameFieldName","createFormDataBody","formData","name","value"],"mappings":";;;;AAmBA,MAAMA,IAAuB,gBAAAC,EAAA,CAACC,MAC5BC,EAASD,CAAI,KAAK,CAACE,EAAQF,CAAI,GADJ,yBAQhBG,IAAgC,gBAAAJ,EAAA,CAG3CK,GACAC,IAAgD,OAC7C;AACH,QAAM,EAAE,mBAAAC,MAAsBD;AAE9B,SAAI,CAACC,KAAqBF,EAAOE,CAAwC,KAAK,OACrEF,IAGF;AAAA,IACL,GAAGA;AAAA,IACH,CAACE,CAAiB,GAAGF,EAAO,KAAK,KAAK,UAAU,KAAK;AAAA,EAAA;AAEzD,GAhB6C,kCAsBhCG,IAAqB,gBAAAR,EAAA,CAACC,MAAkB;AACnD,QAAMQ,IAAW,IAAI,SAAA;AAErB,SAAKV,EAAqBE,CAAI,KAI9B,OAAO,QAAQA,CAAI,EAAE,QAAQ,CAAC,CAACS,GAAMC,CAAK,MAAM;AAC9C,IAAIA,MAAU,UAIdF,EAAS,OAAOC,GAAMC,aAAiB,OAAOA,IAAQ,OAAOA,CAAK,CAAC;AAAA,EACrE,CAAC,GAEMF;AACT,GAhBkC;"}
1
+ {"version":3,"file":"createFormDataBody.js","sources":["../../src/utils/createFormDataBody.ts"],"sourcesContent":["import { isArray, isObject } from 'es-toolkit/compat';\n\nexport type FormDataFieldValue = string | number | Blob | undefined;\nexport type TAdditionalFields = Record<string, FormDataFieldValue>;\n\nexport type FormDataUploadParams<TFields extends TAdditionalFields = TAdditionalFields> = {\n file: File;\n} & Omit<TFields, 'file'>;\n\nexport type FormDataUploadBody<TFields extends TAdditionalFields = TAdditionalFields> = Record<\n string,\n FormDataFieldValue\n> &\n FormDataUploadParams<TFields>;\n\nexport interface NormalizeFormDataUploadParamsOptions {\n fileNameFieldName?: string;\n}\n\nconst DEFAULT_FILE_NAME_FIELD_NAME = 'FILE_NAME';\n\nconst isFormDataUploadBody = (body: unknown): body is FormDataUploadBody =>\n isObject(body) && !isArray(body);\n\nconst resolveFileNameFieldName = <\n TFields extends TAdditionalFields = TAdditionalFields,\n>(\n params: FormDataUploadParams<TFields>,\n fileNameFieldName?: string,\n) => {\n if (fileNameFieldName) {\n return fileNameFieldName;\n }\n\n const pageId = params['PAGEID' as keyof typeof params];\n const tableName = params['TABLENAME' as keyof typeof params];\n\n if (typeof pageId === 'string' && pageId && typeof tableName === 'string' && tableName) {\n return `${pageId}_${tableName}`;\n }\n\n return DEFAULT_FILE_NAME_FIELD_NAME;\n};\n\n/**\n * FormData 업로드 파라미터 정규화\n * @param params 업로드 파라미터\n * @param options 파일명 필드 옵션\n */\nexport const normalizeFormDataUploadParams = <\n TFields extends TAdditionalFields = TAdditionalFields,\n>(\n params: FormDataUploadParams<TFields>,\n options: NormalizeFormDataUploadParamsOptions = {},\n) => {\n const nextFileNameFieldName = resolveFileNameFieldName(params, options.fileNameFieldName);\n\n if (params[nextFileNameFieldName as keyof typeof params] != null) {\n return params as FormDataUploadBody<TFields>;\n }\n\n return {\n ...params,\n [nextFileNameFieldName]: params.file.name.normalize('NFC'),\n } as FormDataUploadBody<TFields>;\n};\n\n/**\n * FormData body 생성\n * @param body flat body 객체\n */\nexport const createFormDataBody = (body: unknown) => {\n const formData = new FormData();\n\n if (!isFormDataUploadBody(body)) {\n return formData;\n }\n\n Object.entries(body).forEach(([name, value]) => {\n if (value === undefined) {\n return;\n }\n\n formData.append(name, value instanceof Blob ? value : String(value));\n });\n\n return formData;\n};\n"],"names":["DEFAULT_FILE_NAME_FIELD_NAME","isFormDataUploadBody","__name","body","isObject","isArray","resolveFileNameFieldName","params","fileNameFieldName","pageId","tableName","normalizeFormDataUploadParams","options","nextFileNameFieldName","createFormDataBody","formData","name","value"],"mappings":";;;;AAmBA,MAAMA,IAA+B,aAE/BC,IAAuB,gBAAAC,EAAA,CAACC,MAC5BC,EAASD,CAAI,KAAK,CAACE,EAAQF,CAAI,GADJ,yBAGvBG,IAA2B,gBAAAJ,EAAA,CAG/BK,GACAC,MACG;AACH,MAAIA;AACF,WAAOA;AAGT,QAAMC,IAASF,EAAO,QAChBG,IAAYH,EAAO;AAEzB,SAAI,OAAOE,KAAW,YAAYA,KAAU,OAAOC,KAAc,YAAYA,IACpE,GAAGD,CAAM,IAAIC,CAAS,KAGxBV;AACT,GAlBiC,6BAyBpBW,IAAgC,gBAAAT,EAAA,CAG3CK,GACAK,IAAgD,OAC7C;AACH,QAAMC,IAAwBP,EAAyBC,GAAQK,EAAQ,iBAAiB;AAExF,SAAIL,EAAOM,CAA4C,KAAK,OACnDN,IAGF;AAAA,IACL,GAAGA;AAAA,IACH,CAACM,CAAqB,GAAGN,EAAO,KAAK,KAAK,UAAU,KAAK;AAAA,EAAA;AAE7D,GAhB6C,kCAsBhCO,IAAqB,gBAAAZ,EAAA,CAACC,MAAkB;AACnD,QAAMY,IAAW,IAAI,SAAA;AAErB,SAAKd,EAAqBE,CAAI,KAI9B,OAAO,QAAQA,CAAI,EAAE,QAAQ,CAAC,CAACa,GAAMC,CAAK,MAAM;AAC9C,IAAIA,MAAU,UAIdF,EAAS,OAAOC,GAAMC,aAAiB,OAAOA,IAAQ,OAAOA,CAAK,CAAC;AAAA,EACrE,CAAC,GAEMF;AACT,GAhBkC;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@owp/core",
3
3
  "private": false,
4
- "version": "2.5.2",
4
+ "version": "2.5.3",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"OwpFileUploadButton.js","sources":["../../../src/components/OwpFileUploadButton/OwpFileUploadButton.tsx"],"sourcesContent":["import Button, { type ButtonProps } from '@mui/material/Button';\nimport { styled } from '@mui/material/styles';\nimport { type ChangeEvent, type ReactNode, useEffect, useRef } from 'react';\n\nexport interface OwpFileUploadButtonOwnProps {\n multiple?: boolean;\n accept?: string;\n title?: ReactNode;\n onChange?: (evt: ChangeEvent<HTMLInputElement>) => void;\n onCancel?: (evt: Event) => void;\n}\n\nexport type OwpFileUploadButtonProps = OwpFileUploadButtonOwnProps &\n Omit<ButtonProps, 'title'>;\n\nconst DEFAULT_ACCEPT = 'image/x-png,image/gif,image/jpeg,image/jpg';\n\nconst VisuallyHiddenInput = styled('input')({\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: 1,\n overflow: 'hidden',\n position: 'absolute',\n bottom: 0,\n left: 0,\n whiteSpace: 'nowrap',\n width: 1,\n});\n\n/**\n * OwpFileUploadButton 컴포넌트\n * @param title 제목\n * @param multiple multiple 값\n * @param onChange onChange 핸들러\n * @param onCancel onCancel 핸들러\n * @param accept accept 값\n */\nexport function OwpFileUploadButton({\n title,\n multiple,\n onChange,\n onCancel,\n accept,\n ...restProps\n}: OwpFileUploadButtonProps) {\n const inputRef = useRef<HTMLInputElement | null>(null);\n const buttonProps = restProps as unknown as Omit<ButtonProps<'label'>, 'children' | 'component'>;\n\n useEffect(() => {\n const inputElement = inputRef.current;\n if (!inputElement || !onCancel) {\n return;\n }\n\n inputElement.addEventListener('cancel', onCancel);\n\n return () => {\n inputElement.removeEventListener('cancel', onCancel);\n };\n }, [onCancel]);\n\n return (\n <Button\n component=\"label\"\n role={undefined}\n variant=\"contained\"\n tabIndex={-1}\n {...buttonProps}\n >\n {title}\n <VisuallyHiddenInput\n ref={inputRef}\n type=\"file\"\n accept={accept ?? DEFAULT_ACCEPT}\n onClick={(event) => {\n event.currentTarget.value = '';\n }}\n onChange={(event) => onChange?.(event)}\n multiple={Boolean(multiple)}\n />\n </Button>\n );\n}\n"],"names":["DEFAULT_ACCEPT","VisuallyHiddenInput","styled","OwpFileUploadButton","title","multiple","onChange","onCancel","accept","restProps","inputRef","useRef","buttonProps","useEffect","inputElement","jsxs","Button","jsx","__name","event"],"mappings":";;;;;;AAeA,MAAMA,IAAiB,8CAEjBC,IAAsBC,EAAO,OAAO,EAAE;AAAA,EAC1C,MAAM;AAAA,EACN,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,OAAO;AACT,CAAC;AAUM,SAASC,EAAoB;AAAA,EAClC,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,GAAGC;AACL,GAA6B;AAC3B,QAAMC,IAAWC,EAAgC,IAAI,GAC/CC,IAAcH;AAEpB,SAAAI,EAAU,MAAM;AACd,UAAMC,IAAeJ,EAAS;AAC9B,QAAI,GAACI,KAAgB,CAACP;AAItB,aAAAO,EAAa,iBAAiB,UAAUP,CAAQ,GAEzC,MAAM;AACX,QAAAO,EAAa,oBAAoB,UAAUP,CAAQ;AAAA,MACrD;AAAA,EACF,GAAG,CAACA,CAAQ,CAAC,GAGX,gBAAAQ;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,MAAM;AAAA,MACN,SAAQ;AAAA,MACR,UAAU;AAAA,MACT,GAAGJ;AAAA,MAEH,UAAA;AAAA,QAAAR;AAAA,QACD,gBAAAa;AAAA,UAAChB;AAAA,UAAA;AAAA,YACC,KAAKS;AAAA,YACL,MAAK;AAAA,YACL,QAAQF,KAAUR;AAAA,YAClB,SAAS,gBAAAkB,EAAA,CAACC,MAAU;AAClB,cAAAA,EAAM,cAAc,QAAQ;AAAA,YAC9B,GAFS;AAAA,YAGT,UAAU,gBAAAD,EAAA,CAACC,MAAUb,KAAA,gBAAAA,EAAWa,IAAtB;AAAA,YACV,UAAU,EAAQd;AAAA,UAAQ;AAAA,QAAA;AAAA,MAC5B;AAAA,IAAA;AAAA,EAAA;AAGN;AA7CgBa,EAAAf,GAAA;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OwpTreeGridExcelButton.js","sources":["../../../src/components/OwpTreeGridExcelButton/OwpTreeGridExcelButton.tsx"],"sourcesContent":["import { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport { useTreeGridExcelExport } from '@/hooks/useTreeGridExcelExport';\nimport { Button, type ButtonProps } from '@mui/material';\nimport { type MouseEventHandler } from 'react';\n\nexport interface OwpTreeGridExcelButtonProps extends ButtonProps {\n gridId: string;\n exportName?: string;\n}\n\n/**\n * TreeGrid 엑셀 내보내기 버튼\n * @param gridId TreeGrid 인스턴스 ID\n * @param exportName 다운로드 파일명\n */\nconst OwpTreeGridExcelButton = ({\n gridId,\n exportName,\n children,\n loading,\n loadingPosition,\n onClick,\n ...buttonProps\n}: OwpTreeGridExcelButtonProps) => {\n const { t } = useOwpTranslation();\n const { exportByTreeGrid, isExporting } = useTreeGridExcelExport(gridId);\n\n const handleClick: MouseEventHandler<HTMLButtonElement> = (event) => {\n onClick?.(event);\n\n if (event.defaultPrevented || loading || isExporting) {\n return;\n }\n\n void exportByTreeGrid(exportName ?? gridId);\n };\n\n return (\n <Button\n variant=\"contained\"\n color=\"success\"\n {...buttonProps}\n loading={Boolean(loading || isExporting)}\n loadingPosition={loadingPosition ?? 'start'}\n onClick={handleClick}\n >\n {children ?? t('Button.엑셀 다운로드')}\n </Button>\n );\n};\n\nexport { OwpTreeGridExcelButton };\n"],"names":["OwpTreeGridExcelButton","__name","gridId","exportName","children","loading","loadingPosition","onClick","buttonProps","t","useOwpTranslation","exportByTreeGrid","isExporting","useTreeGridExcelExport","jsx","Button","event"],"mappings":";;;;;;AAeA,MAAMA,IAAyB,gBAAAC,EAAA,CAAC;AAAA,EAC9B,QAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,MAAmC;AACjC,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACR,EAAE,kBAAAC,GAAkB,aAAAC,MAAgBC,EAAuBX,CAAM;AAYvE,SACE,gBAAAY;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,OAAM;AAAA,MACL,GAAGP;AAAA,MACJ,SAAS,GAAQH,KAAWO;AAAA,MAC5B,iBAAiBN,KAAmB;AAAA,MACpC,SAjBsD,gBAAAL,EAAA,CAACe,MAAU;AAGnE,QAFAT,KAAA,QAAAA,EAAUS,IAEN,EAAAA,EAAM,oBAAoBX,KAAWO,MAIpCD,EAAiBR,KAAcD,CAAM;AAAA,MAC5C,GAR0D;AAAA,MAmBrD,UAAAE,KAAYK,EAAE,gBAAgB;AAAA,IAAA;AAAA,EAAA;AAGrC,GAlC+B;"}
@@ -1 +0,0 @@
1
- export * from './OwpFileUploadButton';
@@ -1,12 +0,0 @@
1
- import { type ButtonProps } from '@mui/material';
2
- export interface OwpTreeGridExcelButtonProps extends ButtonProps {
3
- gridId: string;
4
- exportName?: string;
5
- }
6
- /**
7
- * TreeGrid 엑셀 내보내기 버튼
8
- * @param gridId TreeGrid 인스턴스 ID
9
- * @param exportName 다운로드 파일명
10
- */
11
- declare const OwpTreeGridExcelButton: ({ gridId, exportName, children, loading, loadingPosition, onClick, ...buttonProps }: OwpTreeGridExcelButtonProps) => import("react/jsx-runtime").JSX.Element;
12
- export { OwpTreeGridExcelButton };
@@ -1 +0,0 @@
1
- export * from './OwpTreeGridExcelButton';