@owp/core 2.1.4 → 2.1.6
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/Close-BvQGZ-9D.js +960 -0
- package/dist/Close-BvQGZ-9D.js.map +1 -0
- package/dist/contexts.js +4 -4
- package/dist/getStartPagePath-Dxtn_J32.js +21 -0
- package/dist/getStartPagePath-Dxtn_J32.js.map +1 -0
- package/dist/hooks.js +52 -52
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +4807 -4773
- package/dist/index.js.map +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/components/OwpErrorStatusPage/OwpErrorStatusPage.d.ts +5 -0
- package/dist/types/components/OwpErrorStatusPage/index.d.ts +2 -0
- package/dist/types/components/OwpSearchFilter/OwpSearchFilter.d.ts +3 -1
- package/dist/types/contexts/OwpAppProvider.d.ts +1 -0
- package/dist/types/hooks/useInitApp.d.ts +3 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/getStartPagePath.d.ts +5 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/{usePageLockLoading-BGODEt_k.js → usePageLockLoading-BhgLOg3R.js} +2 -2
- package/dist/{usePageLockLoading-BGODEt_k.js.map → usePageLockLoading-BhgLOg3R.js.map} +1 -1
- package/dist/useShortcuts-BcLEOM-d.js +228 -0
- package/dist/useShortcuts-BcLEOM-d.js.map +1 -0
- package/dist/{useTreeGridExcelExport-Bfxx0cps.js → useTreeGridExcelExport-HRm8p-7o.js} +2 -2
- package/dist/{useTreeGridExcelExport-Bfxx0cps.js.map → useTreeGridExcelExport-HRm8p-7o.js.map} +1 -1
- package/dist/utils.js +11 -9
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/Close-DvFvpcJW.js +0 -981
- package/dist/Close-DvFvpcJW.js.map +0 -1
- package/dist/toUpper-D96_nWkI.js +0 -16
- package/dist/toUpper-D96_nWkI.js.map +0 -1
- package/dist/useShortcuts-BjtlXprQ.js +0 -236
- package/dist/useShortcuts-BjtlXprQ.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useShortcuts-BcLEOM-d.js","sources":["../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/string/trimEnd.mjs","../src/contexts/OwpAppProvider.tsx","../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/string/trimEnd.mjs","../src/hooks/useOwpTranslation.ts","../src/hooks/useConfirm.tsx","../src/hooks/useTimeout.ts","../src/hooks/useCommonCodeList.ts","../src/hooks/useAppStore.ts","../src/hooks/useCurrentLanguage.ts","../src/hooks/useLogoSrc.ts","../src/hooks/useCurrentUser.ts","../src/hooks/useNavigation.ts","../src/hooks/useShortcuts.ts"],"sourcesContent":["function trimEnd(str, chars) {\n if (chars === undefined) {\n return str.trimEnd();\n }\n let endIndex = str.length;\n switch (typeof chars) {\n case 'string': {\n if (chars.length !== 1) {\n throw new Error(`The 'chars' parameter should be a single character string.`);\n }\n while (endIndex > 0 && str[endIndex - 1] === chars) {\n endIndex--;\n }\n break;\n }\n case 'object': {\n while (endIndex > 0 && chars.includes(str[endIndex - 1])) {\n endIndex--;\n }\n }\n }\n return str.substring(0, endIndex);\n}\n\nexport { trimEnd };\n","import type { OwpSettingsConfigType, OwpThemesType } from '@/types/OwpSettingsTypes';\nimport type { OwpNavItemType } from '@/types/OwpNavigationTypes';\nimport { useStorage } from '@/hooks/useStorage';\nimport type { OwpLoadingProps } from '@/components/OwpLoading/OwpLoading';\nimport {\n CSSProperties,\n ComponentType,\n createContext,\n ReactNode,\n useContext,\n useLayoutEffect,\n useRef,\n} from 'react';\nimport { PartialDeep } from 'type-fest';\n\n/**\n * Logo slot props\n */\nexport interface OwpLogoSlotProps {\n className?: string;\n style?: CSSProperties;\n}\n\nexport type OwpPageSkeletonItemType =\n | 'search-header'\n | 'table'\n | 'grid'\n | 'card'\n | 'chart'\n | 'stat';\n\nexport interface OwpPageSkeletonItem {\n type: OwpPageSkeletonItemType;\n colSpan?: number;\n rowSpan?: number;\n colStart?: number;\n rowStart?: number;\n}\n\nexport interface OwpPageSkeletonSpec {\n columns?: number;\n rowHeight?: number;\n fullscreen?: boolean;\n fillContentHeight?: boolean;\n items: OwpPageSkeletonItem[];\n}\n\nexport interface OwpRouteLoadingSlotProps extends OwpLoadingProps {\n pathname: string;\n isFirstRouteLoading: boolean;\n}\n\nexport interface OwpRouteLoadingConfig extends OwpLoadingProps {\n getSkeletonSpec?: (pathname: string) => OwpPageSkeletonSpec | undefined;\n /** Click-to-release test toggle. Default false */\n releaseOnClick?: boolean;\n}\n\nexport interface OwpAppConfigs {\n routesConfig: any;\n settingsConfig?: PartialDeep<OwpSettingsConfigType>;\n themesConfig?: PartialDeep<OwpThemesType>;\n navigationConfig: OwpNavItemType[];\n}\n\n/**\n * App slots\n */\nexport interface OwpAppSlots {\n logo?: ComponentType<OwpLogoSlotProps>;\n routeLoading?: ComponentType<OwpRouteLoadingSlotProps>;\n}\n\nexport interface OwpAppSlotProps {\n logo?: OwpLogoSlotProps;\n routeLoading?: Omit<\n Partial<OwpRouteLoadingSlotProps>,\n 'pathname' | 'isFirstRouteLoading'\n > &\n OwpRouteLoadingConfig;\n}\n\nexport interface OwpAppEnv {\n apiBaseUrl?: string;\n isAccessTokenGuardEnabled?: boolean;\n isAutoLogoutEnabled?: boolean;\n autoLogoutIdleTimeoutMs?: number;\n isBackendNavigationEnabled?: boolean;\n isErrorMessageEnabled?: boolean;\n isI18nEnabled?: boolean;\n isI18nLanguageSwitcherEnabled?: boolean;\n isPasswordChangeEnabled?: boolean;\n [key: string]: unknown;\n}\n\nexport interface OwpAppContextValue extends OwpAppConfigs {\n env?: OwpAppEnv;\n slots?: OwpAppSlots;\n slotProps?: OwpAppSlotProps;\n}\n\nexport const OwpAppContext = createContext<OwpAppContextValue | undefined>(undefined);\n\nexport interface OwpAppProviderProps {\n configs: OwpAppConfigs;\n slots?: OwpAppSlots;\n slotProps?: OwpAppSlotProps;\n children?: ReactNode;\n env?: OwpAppEnv;\n}\n\nexport const OwpAppProvider = ({\n configs,\n slots,\n slotProps,\n children,\n env,\n}: OwpAppProviderProps) => {\n const value = useRef<OwpAppContextValue>({ ...configs, env, slots, slotProps });\n const { setEnv } = useStorage();\n\n useLayoutEffect(() => {\n setEnv(env ?? {});\n }, [env, setEnv]);\n\n return <OwpAppContext.Provider value={value.current}>{children}</OwpAppContext.Provider>;\n};\n\nexport const useOwpAppContext = () => {\n const context = useContext(OwpAppContext);\n\n if (context === undefined) {\n throw new Error('useOwpAppContext must be used within a OwpAppProvider');\n }\n\n return context;\n};\n","import { trimEnd as trimEnd$1 } from '../../string/trimEnd.mjs';\n\nfunction trimEnd(str, chars, guard) {\n if (str == null) {\n return '';\n }\n if (guard != null || chars == null) {\n return str.toString().trimEnd();\n }\n return trimEnd$1(str, chars.toString().split(''));\n}\n\nexport { trimEnd };\n","import { isPlainObject, trimEnd } from 'es-toolkit/compat';\nimport { useTranslation } from 'react-i18next';\n\n/**\n * 번역 키 기본 라벨 추출\n * @param key 번역 키\n */\nconst getDefaultValueFromKey = (key: string) => {\n if (!key.includes('.')) {\n return undefined;\n }\n\n const normalizedKey = trimEnd(key, '.');\n const lastSeparatorIndex = normalizedKey.lastIndexOf('.');\n\n if (lastSeparatorIndex < 0) {\n return key;\n }\n\n return key.slice(lastSeparatorIndex + 1);\n};\n\n/**\n * OWP 번역 훅\n */\nexport const useOwpTranslation = () => {\n const { t: i18nT, ...restProps } = useTranslation('owp');\n\n const t: typeof i18nT = ((...args: Parameters<typeof i18nT>) => {\n const [key, options] = args;\n const optionsObject = isPlainObject(options) ? (options as Record<string, unknown>) : undefined;\n const isOptionsObject = Boolean(optionsObject);\n const hasDefaultValue =\n isOptionsObject && Object.prototype.hasOwnProperty.call(optionsObject, 'defaultValue');\n const canInjectDefaultValue = options == null || isOptionsObject;\n\n if (canInjectDefaultValue && !hasDefaultValue && typeof key === 'string') {\n const defaultValue = getDefaultValueFromKey(key);\n\n if (defaultValue) {\n const nextOptions = isOptionsObject ? { ...optionsObject, defaultValue } : { defaultValue };\n\n return i18nT(...([key, nextOptions, ...args.slice(2)] as Parameters<typeof i18nT>));\n }\n }\n\n return i18nT(...args);\n }) as typeof i18nT;\n\n return { t, ...restProps };\n};\n","import {\n Button,\n ButtonProps,\n Dialog,\n DialogActions,\n DialogContent,\n Typography,\n} from '@mui/material';\nimport { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport { DialogProps, useDialogs } from '@toolpad/core/useDialogs';\nimport { ReactNode } from 'react';\n\nexport interface ConfirmProps {\n title?: ReactNode | string;\n okText?: string;\n cancelText?: string;\n severity?: 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';\n useInfo?: boolean;\n okButtonProps?: ButtonProps;\n onClose?: (result: boolean) => Promise<void>;\n}\ninterface ConfirmBaseProps extends ConfirmProps {\n okButtonProps?: ButtonProps;\n cancelButtonProps?: ButtonProps;\n}\n\ninterface ConfirmTranslationConfig {\n key: string;\n defaultValue?: string;\n}\n\n/**\n * 확인 대화상자 번역 설정\n */\nconst CONFIRM_TRANSLATIONS = {\n infoTitle: {\n key: 'Message.처리하시겠습니까',\n defaultValue: '처리하시겠습니까?',\n },\n infoOk: {\n key: 'Button.확인',\n },\n saveTitle: {\n key: 'Message.저장하시겠습니까?',\n },\n saveOk: {\n key: 'Button.저장',\n },\n updateTitle: {\n key: 'Message.수정하시겠습니까?',\n },\n updateOk: {\n key: 'Button.수정',\n },\n deleteTitle: {\n key: 'Message.삭제하시겠습니까?',\n },\n deleteOk: {\n key: 'Button.삭제',\n },\n cancel: {\n key: 'Button.취소',\n },\n} as const;\n\nconst translateConfirmText = (\n translate: (key: string, options?: { defaultValue?: string }) => string,\n { key, defaultValue }: ConfirmTranslationConfig,\n) => (defaultValue ? translate(key, { defaultValue }) : translate(key));\n\n/**\n * 확인 버튼 속성 병합\n * @param defaultColor 기본 버튼 색상\n * @param okButtonProps 사용자 버튼 속성\n */\nconst mergeOkButtonProps = (\n defaultColor: ButtonProps['color'] | undefined,\n okButtonProps?: ButtonProps,\n) => {\n if (!defaultColor) {\n return okButtonProps;\n }\n\n return {\n color: defaultColor,\n ...okButtonProps,\n } as ButtonProps;\n};\n/**\n * 확인 대화상자 훅\n */\nexport const useConfirm = () => {\n const dialogs = useDialogs();\n const { t } = useOwpTranslation();\n\n const confirmBase = (props: ConfirmBaseProps) => dialogs.open(ConfirmDialog, props);\n\n return {\n confirm: confirmBase,\n confirmInfo: async ({ title, okText, severity }: ConfirmProps | undefined = {}) => {\n return confirmBase({\n title: title ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.infoTitle),\n okText: okText ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.infoOk),\n severity: severity ?? 'primary',\n useInfo: true,\n });\n },\n confirmSave: async ({\n title,\n okText,\n cancelText,\n okButtonProps,\n }: ConfirmProps | undefined = {}) => {\n return confirmBase({\n title: title ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.saveTitle),\n okText: okText ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.saveOk),\n cancelText,\n okButtonProps: mergeOkButtonProps('secondary', okButtonProps),\n });\n },\n confirmUpdate: async ({\n title,\n okText,\n cancelText,\n okButtonProps,\n }: ConfirmProps | undefined = {}) => {\n return confirmBase({\n title: title ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.updateTitle),\n okText: okText ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.updateOk),\n cancelText,\n okButtonProps: mergeOkButtonProps('secondary', okButtonProps),\n });\n },\n confirmDelete: async ({\n title,\n okText,\n cancelText,\n okButtonProps,\n }: ConfirmProps | undefined = {}) => {\n return confirmBase({\n title: title ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.deleteTitle),\n okText: okText ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.deleteOk),\n cancelText,\n okButtonProps: mergeOkButtonProps('error', okButtonProps),\n });\n },\n };\n};\n\nconst ConfirmDialog = ({ payload, open, onClose }: DialogProps<ConfirmBaseProps, boolean>) => {\n const { title, okButtonProps, cancelButtonProps, severity, useInfo } = payload;\n\n const { t } = useOwpTranslation();\n\n const okText =\n payload?.okText ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.infoOk);\n const cancelText =\n payload?.cancelText ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.cancel);\n\n return (\n <Dialog fullWidth maxWidth=\"xs\" open={open} onClose={() => onClose(false)}>\n <DialogContent>\n <Typography className=\"mb-12\" variant=\"h6\">\n {title}\n </Typography>\n </DialogContent>\n <DialogActions>\n {!useInfo && (\n <Button {...cancelButtonProps} variant=\"outlined\" onClick={() => onClose(false)}>\n {cancelText}\n </Button>\n )}\n <Button\n color={severity ? severity : 'primary'}\n variant=\"contained\"\n {...okButtonProps}\n onClick={() => onClose(true)}\n >\n {okText}\n </Button>\n </DialogActions>\n </Dialog>\n );\n};\n","import { useEffect, useRef } from 'react';\n\n/**\n * The useTimeout function is a custom hook that sets a timeout for a given callback function.\n * It takes in a callback function and a delay time in milliseconds as parameters.\n * It returns nothing.\n */\nexport function useTimeout(callback: () => void, delay: number) {\n const callbackRef = useRef(callback);\n\n useEffect(() => {\n callbackRef.current = callback;\n }, [callback]);\n\n useEffect(() => {\n let timer: NodeJS.Timeout | undefined;\n\n if (delay !== null && callback && typeof callback === 'function') {\n timer = setTimeout(callbackRef.current, delay);\n }\n\n return () => {\n if (timer) {\n clearTimeout(timer);\n }\n };\n }, [callback, delay]);\n}\n","import { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { CommonCode } from '@/utils/commonCodeUtils';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nconst commonCodeAtom = atomWithStorage<\n | {\n [codeId: string]: Array<CommonCode>;\n }\n | undefined\n>(STORAGE_KEYS.commonCodeList, undefined);\n\n/**\n * 공통코드 목록 조회 훅\n */\nexport const useGetCommonCodeList = () => {\n return useAtomValue(commonCodeAtom);\n};\n\n/**\n * 공통코드 목록 설정 훅\n */\nexport const useSetCommonCodeList = () => {\n return useSetAtom(commonCodeAtom);\n};\n","import { useDispatch, useSelector, useStore } from 'react-redux';\nimport type { AppDispatch, AppStore, RootState } from '@/store/store';\n\n/**\n * Internal typed Redux hooks\n */\nexport const useAppDispatch: () => AppDispatch = useDispatch.withTypes<AppDispatch>();\nexport const useAppSelector: <T>(selector: (state: RootState) => T) => T =\n useSelector.withTypes<RootState>();\nexport const useAppStore: () => AppStore = useStore.withTypes<AppStore>();\n","export { FALLBACK_LANGUAGE_LIST } from '@/constants/language';\nimport { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nexport type CurrentLanguage = { id: 'en' | 'kr' | 'lc'; title: string; flag: string };\n\nconst currentLanguageAtom = atomWithStorage<CurrentLanguage>(STORAGE_KEYS.currentLanguage, {\n id: 'kr',\n title: '한국어',\n flag: 'KR',\n});\n\n/**\n * 언어 목록 조회 훅\n */\nexport const useGetLanguageList = (): CurrentLanguage[] => {\n const { t } = useOwpTranslation();\n return [\n { id: 'kr', title: t('Common.한국어'), flag: 'KR' },\n {\n id: 'en',\n title: t('Common.English'),\n flag: 'EN',\n },\n { id: 'lc', title: t('Common.Etc'), flag: 'LC' },\n ];\n};\n\n/**\n * 현재 언어 조회 훅\n */\nexport const useGetCurrentLanguage = () => {\n return useAtomValue(currentLanguageAtom);\n};\n\n/**\n * 현재 언어 설정 훅\n */\nexport const useSetCurrentLanguage = () => {\n return useSetAtom(currentLanguageAtom);\n};\n","import { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nconst logoSrcAtom = atomWithStorage<string>(\n STORAGE_KEYS.currentLogoSrc,\n 'assets/images/logo/daedong-door-logo-b.png',\n);\n\n/**\n * 현재 로고 경로 조회 훅\n */\nexport const useGetLogoSrc = () => {\n return useAtomValue(logoSrcAtom);\n};\n\n/**\n * 현재 로고 경로 설정 훅\n */\nexport const useSetLogoSrc = () => {\n return useSetAtom(logoSrcAtom);\n};\n","import { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nexport interface CurrentUser {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n}\n\nconst currentUserAtom = atomWithStorage<CurrentUser | undefined>(\n STORAGE_KEYS.currentUser,\n undefined,\n);\n\n/**\n * 현재 사용자 정보 조회\n */\nexport const useGetCurrentUser = () => {\n return useAtomValue(currentUserAtom);\n};\n\n/**\n * 현재 사용자 정보 설정\n */\nexport const useSetCurrentUser = () => {\n return useSetAtom(currentUserAtom);\n};\n","import { STORAGE_KEYS } from '@/constants/storageKeys';\nimport type { OwpNavItemType } from '@/types/OwpNavigationTypes';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nconst navigationAtom = atomWithStorage<OwpNavItemType[] | undefined>(\n STORAGE_KEYS.navigationList,\n undefined,\n);\n\n/**\n * 내비게이션 목록 조회 훅\n */\nexport const useGetNavigationList = () => {\n return useAtomValue(navigationAtom);\n};\n\n/**\n * 내비게이션 목록 설정 훅\n */\nexport const useSetNavigationList = () => {\n return useSetAtom(navigationAtom);\n};\n","import { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nconst currentShortcutsAtom = atomWithStorage<Array<string> | []>(STORAGE_KEYS.currentShortcuts, []);\n\n/**\n * 바로가기 목록 조회 훅\n */\nexport const useGetShortcuts = () => {\n return useAtomValue(currentShortcutsAtom);\n};\n\n/**\n * 바로가기 목록 설정 훅\n */\nexport const useSetShortcuts = () => {\n return useSetAtom(currentShortcutsAtom);\n};\n"],"names":["trimEnd","str","chars","endIndex","OwpAppContext","createContext","OwpAppProvider","__name","configs","slots","slotProps","children","env","value","useRef","setEnv","useStorage","useLayoutEffect","useOwpAppContext","context","useContext","guard","trimEnd$1","getDefaultValueFromKey","key","lastSeparatorIndex","useOwpTranslation","i18nT","restProps","useTranslation","args","options","optionsObject","isPlainObject","isOptionsObject","hasDefaultValue","defaultValue","nextOptions","CONFIRM_TRANSLATIONS","translateConfirmText","translate","mergeOkButtonProps","defaultColor","okButtonProps","useConfirm","dialogs","useDialogs","t","confirmBase","props","ConfirmDialog","title","okText","severity","cancelText","payload","open","onClose","cancelButtonProps","useInfo","jsxs","Dialog","jsx","DialogContent","Typography","DialogActions","Button","useTimeout","callback","delay","callbackRef","useEffect","timer","commonCodeAtom","atomWithStorage","STORAGE_KEYS","useGetCommonCodeList","useAtomValue","useSetCommonCodeList","useSetAtom","useAppDispatch","useDispatch","useAppSelector","useSelector","useAppStore","useStore","currentLanguageAtom","useGetLanguageList","useGetCurrentLanguage","useSetCurrentLanguage","logoSrcAtom","useGetLogoSrc","useSetLogoSrc","currentUserAtom","useGetCurrentUser","useSetCurrentUser","navigationAtom","useGetNavigationList","useSetNavigationList","currentShortcutsAtom","useGetShortcuts","useSetShortcuts"],"mappings":";;;;;;;;;;;;;AAAA,SAASA,EAAQC,GAAKC,GAAO;AACzB,MAAIA,MAAU;AACV,WAAOD,EAAI,QAAO;AAEtB,MAAIE,IAAWF,EAAI;AACnB,UAAQ,OAAOC,GAAK;AAAA,IAChB,KAAK,UAAU;AACX,UAAIA,EAAM,WAAW;AACjB,cAAM,IAAI,MAAM,4DAA4D;AAEhF,aAAOC,IAAW,KAAKF,EAAIE,IAAW,CAAC,MAAMD;AACzC,QAAAC;AAEJ;AAAA,IACJ;AAAA,IACA,KAAK;AACD,aAAOA,IAAW,KAAKD,EAAM,SAASD,EAAIE,IAAW,CAAC,CAAC;AACnD,QAAAA;AAAA,EAGhB;AACI,SAAOF,EAAI,UAAU,GAAGE,CAAQ;AACpC;AAtB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M,KAAA;AAAA,EAAK;AAEnD,GAXkC,uBAgBrB8D,KAAwB,gBAAAjF,EAAA,MAC5BsE,EAAaS,CAAmB,GADJ,0BAOxBG,KAAwB,gBAAAlF,EAAA,MAC5BwE,EAAWO,CAAmB,GADF,0BCpC/BI,IAAchB;AAAA,EAClBC,EAAa;AAAA,EACb;AACF,GAKagB,KAAgB,gBAAApF,EAAA,MACpBsE,EAAaa,CAAW,GADJ,kBAOhBE,KAAgB,gBAAArF,EAAA,MACpBwE,EAAWW,CAAW,GADF,kBCVvBG,IAAkBnB;AAAA,EACtBC,EAAa;AAAA,EACb;AACF,GAKamB,KAAoB,gBAAAvF,EAAA,MACxBsE,EAAagB,CAAe,GADJ,sBAOpBE,KAAoB,gBAAAxF,EAAA,MACxBwE,EAAWc,CAAe,GADF,sBCnB3BG,IAAiBtB;AAAA,EACrBC,EAAa;AAAA,EACb;AACF,GAKasB,KAAuB,gBAAA1F,EAAA,MAC3BsE,EAAamB,CAAc,GADA,yBAOvBE,KAAuB,gBAAA3F,EAAA,MAC3BwE,EAAWiB,CAAc,GADE,yBChB9BG,IAAuBzB,EAAoCC,EAAa,kBAAkB,CAAA,CAAE,GAKrFyB,KAAkB,gBAAA7F,EAAA,MACtBsE,EAAasB,CAAoB,GADX,oBAOlBE,KAAkB,gBAAA9F,EAAA,MACtBwE,EAAWoB,CAAoB,GADT;","x_google_ignoreList":[0,2]}
|
|
@@ -3,7 +3,7 @@ var n = (s, a) => E(s, "name", { value: a, configurable: !0 });
|
|
|
3
3
|
import { useTheme as b } from "@mui/material/styles";
|
|
4
4
|
import { useState as T, useEffect as v, useRef as G } from "react";
|
|
5
5
|
import { g as M, e as y } from "./treeGridUtil-CPNva4kL.js";
|
|
6
|
-
import { b as A } from "./useShortcuts-
|
|
6
|
+
import { b as A } from "./useShortcuts-BcLEOM-d.js";
|
|
7
7
|
function B(s, a, { signal: e, edges: i } = {}) {
|
|
8
8
|
let l, u = null;
|
|
9
9
|
const t = i != null && i.includes("leading"), r = i == null || i.includes("trailing"), o = /* @__PURE__ */ n(() => {
|
|
@@ -85,4 +85,4 @@ export {
|
|
|
85
85
|
j as d,
|
|
86
86
|
k as u
|
|
87
87
|
};
|
|
88
|
-
//# sourceMappingURL=useTreeGridExcelExport-
|
|
88
|
+
//# sourceMappingURL=useTreeGridExcelExport-HRm8p-7o.js.map
|
package/dist/{useTreeGridExcelExport-Bfxx0cps.js.map → useTreeGridExcelExport-HRm8p-7o.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTreeGridExcelExport-
|
|
1
|
+
{"version":3,"file":"useTreeGridExcelExport-HRm8p-7o.js","sources":["../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/function/debounce.mjs","../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.mjs","../src/hooks/useThemeMediaQuery.ts","../src/hooks/useTreeGridExcelExport.ts"],"sourcesContent":["function debounce(func, debounceMs, { signal, edges } = {}) {\n let pendingThis = undefined;\n let pendingArgs = null;\n const leading = edges != null && edges.includes('leading');\n const trailing = edges == null || edges.includes('trailing');\n const invoke = () => {\n if (pendingArgs !== null) {\n func.apply(pendingThis, pendingArgs);\n pendingThis = undefined;\n pendingArgs = null;\n }\n };\n const onTimerEnd = () => {\n if (trailing) {\n invoke();\n }\n cancel();\n };\n let timeoutId = null;\n const schedule = () => {\n if (timeoutId != null) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = null;\n onTimerEnd();\n }, debounceMs);\n };\n const cancelTimer = () => {\n if (timeoutId !== null) {\n clearTimeout(timeoutId);\n timeoutId = null;\n }\n };\n const cancel = () => {\n cancelTimer();\n pendingThis = undefined;\n pendingArgs = null;\n };\n const flush = () => {\n invoke();\n };\n const debounced = function (...args) {\n if (signal?.aborted) {\n return;\n }\n pendingThis = this;\n pendingArgs = args;\n const isFirstCall = timeoutId == null;\n schedule();\n if (leading && isFirstCall) {\n invoke();\n }\n };\n debounced.schedule = schedule;\n debounced.cancel = cancel;\n debounced.flush = flush;\n signal?.addEventListener('abort', cancel, { once: true });\n return debounced;\n}\n\nexport { debounce };\n","import { debounce as debounce$1 } from '../../function/debounce.mjs';\n\nfunction debounce(func, debounceMs = 0, options = {}) {\n if (typeof options !== 'object') {\n options = {};\n }\n const { leading = false, trailing = true, maxWait } = options;\n const edges = Array(2);\n if (leading) {\n edges[0] = 'leading';\n }\n if (trailing) {\n edges[1] = 'trailing';\n }\n let result = undefined;\n let pendingAt = null;\n const _debounced = debounce$1(function (...args) {\n result = func.apply(this, args);\n pendingAt = null;\n }, debounceMs, { edges });\n const debounced = function (...args) {\n if (maxWait != null) {\n if (pendingAt === null) {\n pendingAt = Date.now();\n }\n if (Date.now() - pendingAt >= maxWait) {\n result = func.apply(this, args);\n pendingAt = Date.now();\n _debounced.cancel();\n _debounced.schedule();\n return result;\n }\n }\n _debounced.apply(this, args);\n return result;\n };\n const flush = () => {\n _debounced.flush();\n return result;\n };\n debounced.cancel = _debounced.cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nexport { debounce };\n","import { useTheme, type Theme } from '@mui/material/styles';\nimport { useEffect, useState } from 'react';\n\n/**\n * The useThemeMediaQuery function is a custom hook that returns a boolean indicating whether the current screen matches the specified media query.\n * It takes in a themeCallbackFunc as a parameter, which is a function that returns a string representing the media query to match.\n * It returns a boolean indicating whether the current screen matches the specified media query.\n */\nexport function useThemeMediaQuery(themeCallbackFunc: (theme: Theme) => string) {\n const theme = useTheme();\n\n const query = themeCallbackFunc(theme).replace('@media ', '');\n\n \n function getMatches(q: string) {\n return window.matchMedia(q).matches;\n }\n\n const [matches, setMatches] = useState(getMatches(query));\n\n useEffect(\n () => {\n const mediaQuery = window.matchMedia(query);\n\n \n setMatches(getMatches(query));\n\n \n const handler = (event: MediaQueryListEvent) => setMatches(event.matches);\n\n \n mediaQuery.addEventListener('change', handler);\n\n \n return () => mediaQuery.removeEventListener('change', handler);\n },\n [query], \n );\n\n return matches;\n}\n","import {\n ExportTreeGridExcelOptions,\n exportTreeGridExcel,\n} from '@/utils/treeGridExportExcelUtil';\nimport { getTreeGridById } from '@/utils/treeGridUtil';\nimport { useRef, useState } from 'react';\nimport { useOwpTranslation } from './useOwpTranslation';\n\nexport type UseTreeGridExcelExportOptions = Omit<ExportTreeGridExcelOptions, 't'> | string;\n\n/**\n * TreeGrid 엑셀 내보내기 훅\n * @param gridId TreeGrid 인스턴스 ID\n */\nexport const useTreeGridExcelExport = (gridId: string) => {\n const { t } = useOwpTranslation();\n const exportPendingRef = useRef(false);\n const [isExporting, setIsExporting] = useState(false);\n\n \n const exportByTreeGrid = async (options?: UseTreeGridExcelExportOptions) => {\n if (exportPendingRef.current) {\n return;\n }\n\n exportPendingRef.current = true;\n setIsExporting(true);\n\n const grid = getTreeGridById(gridId);\n\n try {\n if (typeof options === 'string') {\n return await exportTreeGridExcel(grid, { exportName: options, t });\n }\n\n return await exportTreeGridExcel(grid, {\n ...options,\n t,\n });\n } finally {\n exportPendingRef.current = false;\n setIsExporting(false);\n }\n };\n\n return { exportByTreeGrid, isExporting };\n};\n"],"names":["debounce","func","debounceMs","signal","edges","pendingThis","pendingArgs","leading","trailing","invoke","__name","onTimerEnd","cancel","timeoutId","schedule","cancelTimer","flush","debounced","args","isFirstCall","options","maxWait","result","pendingAt","_debounced","debounce$1","useThemeMediaQuery","themeCallbackFunc","theme","useTheme","query","getMatches","q","matches","setMatches","useState","useEffect","mediaQuery","handler","event","useTreeGridExcelExport","gridId","t","useOwpTranslation","exportPendingRef","useRef","isExporting","setIsExporting","grid","getTreeGridById","exportTreeGridExcel"],"mappings":";;;;;;AAAA,SAASA,EAASC,GAAMC,GAAY,EAAE,QAAAC,GAAQ,OAAAC,EAAK,IAAK,IAAI;AACxD,MAAIC,GACAC,IAAc;AAClB,QAAMC,IAAUH,KAAS,QAAQA,EAAM,SAAS,SAAS,GACnDI,IAAWJ,KAAS,QAAQA,EAAM,SAAS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AUC,CAAO,GAGtC,MAAMD,EAAW,oBAAoB,UAAUC,CAAO;AAAA,IAC/D;AAAA,IACA,CAACR,CAAK;AAAA,EAAA,GAGDG;AACT;AAhCgBvB,EAAAgB,GAAA;ACMT,MAAMc,IAAyB,gBAAA9B,EAAA,CAAC+B,MAAmB;AACxD,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACRC,IAAmBC,EAAO,EAAK,GAC/B,CAACC,GAAaC,CAAc,IAAIZ,EAAS,EAAK;AA4BpD,SAAO,EAAE,kBAzBgB,gBAAAzB,EAAA,OAAOU,MAA4C;AAC1E,QAAIwB,EAAiB;AACnB;AAGF,IAAAA,EAAiB,UAAU,IAC3BG,EAAe,EAAI;AAEnB,UAAMC,IAAOC,EAAgBR,CAAM;AAEnC,QAAI;AACF,aAAI,OAAOrB,KAAY,WACd,MAAM8B,EAAoBF,GAAM,EAAE,YAAY5B,GAAS,GAAAsB,GAAG,IAG5D,MAAMQ,EAAoBF,GAAM;AAAA,QACrC,GAAG5B;AAAA,QACH,GAAAsB;AAAA,MAAA,CACD;AAAA,IACH,UAAA;AACE,MAAAE,EAAiB,UAAU,IAC3BG,EAAe,EAAK;AAAA,IACtB;AAAA,EACF,GAvByB,qBAyBE,aAAAD,EAAA;AAC7B,GAhCsC;","x_google_ignoreList":[0,1]}
|
package/dist/utils.js
CHANGED
|
@@ -8,13 +8,14 @@ import { e as Ko, d as Qo, a as Wo, c as Zo, D as ea, b as ta } from "./storageK
|
|
|
8
8
|
import { i as xt, t as Ze } from "./treeGridUtil-CPNva4kL.js";
|
|
9
9
|
import { A as na, k as ia, E as oa, c as aa, h as ua, C as fa, e as ca, m as la, B as sa, y as da, x as ha, a as ga, b as va, D as _a, g as ya, j as Ea, l as pa, n as ma, p as Oa, z as wa, r as ba, I as Ra, G as Sa, J as Aa, H as Ta, v as Ia, w as Ca, q as Pa, u as Ba, d as Ma, K as xa, F as Da, f as La, s as Na, o as ka } from "./treeGridUtil-CPNva4kL.js";
|
|
10
10
|
import { c as yn, b as En } from "./isTypedArray-CCnDZ5HJ.js";
|
|
11
|
-
import { i as qn, t as Fn } from "./
|
|
11
|
+
import { i as qn, t as Fn } from "./getStartPagePath-Dxtn_J32.js";
|
|
12
|
+
import { g as Fa } from "./getStartPagePath-Dxtn_J32.js";
|
|
12
13
|
import { g as jn } from "./isString-Codtu20I.js";
|
|
13
14
|
import Dt from "dayjs";
|
|
14
|
-
import { a as
|
|
15
|
+
import { a as Ua, g as Ga } from "./language-DaxFvPOq.js";
|
|
15
16
|
import { t as Un } from "i18next";
|
|
16
17
|
import { enqueueSnackbar as Gn } from "notistack";
|
|
17
|
-
import { T as
|
|
18
|
+
import { T as Ha, a as za, b as Va, c as Xa } from "./treeGrid-DtKg-9uf.js";
|
|
18
19
|
function pn(u, c) {
|
|
19
20
|
const d = {}, o = Object.keys(u);
|
|
20
21
|
for (let f = 0; f < o.length; f++) {
|
|
@@ -4778,10 +4779,10 @@ export {
|
|
|
4778
4779
|
ea as DEFAULT_VALUE_FONT,
|
|
4779
4780
|
ta as DEFAULT_WRAP_CELL_ALIGNMENT,
|
|
4780
4781
|
Yo as OwpUtils,
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4782
|
+
Ha as TREEGRID_CELL_HIGHLIGHT_CLASS,
|
|
4783
|
+
za as TREEGRID_CELL_HIGHLIGHT_COLOR,
|
|
4784
|
+
Va as TREEGRID_INPUT_CELL_COLOR,
|
|
4785
|
+
Xa as TREEGRID_WARNING_CELL_COLOR,
|
|
4785
4786
|
na as addRowById,
|
|
4786
4787
|
ia as addTreeGridRowById,
|
|
4787
4788
|
Ho as buildTreeGridEnumAttributesByCommonCodeList,
|
|
@@ -4799,17 +4800,18 @@ export {
|
|
|
4799
4800
|
Do as formatNumber,
|
|
4800
4801
|
To as generateBarcodeUrl,
|
|
4801
4802
|
qo as generateQrCodeUrl,
|
|
4802
|
-
|
|
4803
|
+
Ua as getApiLanguageCode,
|
|
4803
4804
|
sa as getChangedDataRowsById,
|
|
4804
4805
|
da as getDataRowsById,
|
|
4805
4806
|
Je as getDisplayValue,
|
|
4806
4807
|
Lo as getEstimatedTextCellWidth,
|
|
4807
4808
|
No as getFormDefaultValues,
|
|
4808
4809
|
ha as getGridById,
|
|
4809
|
-
|
|
4810
|
+
Ga as getI18nextLanguageCode,
|
|
4810
4811
|
ga as getIndexByLetters,
|
|
4811
4812
|
va as getLettersByIndex,
|
|
4812
4813
|
_a as getSelectedRowsById,
|
|
4814
|
+
Fa as getStartPagePath,
|
|
4813
4815
|
xo as getTodayYmd,
|
|
4814
4816
|
ya as getTreeGridById,
|
|
4815
4817
|
Ea as getTreeGridDataRowsById,
|