@owp/core 1.29.0 → 2.0.0
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/colors/chart.d.ts +3 -0
- package/colors/chart.js +1 -0
- package/contexts.d.ts +3 -0
- package/contexts.js +1 -0
- package/dist/{Close-Cm04EulE.js → Close-C91nHTKM.js} +398 -329
- package/dist/Close-C91nHTKM.js.map +1 -0
- package/dist/{OwpStoreProvider-CFq963Pl.js → OwpStoreProvider-BPa_lWCz.js} +3 -3
- package/dist/OwpStoreProvider-BPa_lWCz.js.map +1 -0
- package/dist/OwpUtils-DV2LSByd.js +411 -0
- package/dist/OwpUtils-DV2LSByd.js.map +1 -0
- package/dist/colorMap-DP-DCZbV.js +82 -0
- package/dist/colorMap-DP-DCZbV.js.map +1 -0
- package/dist/colors/chart.js +6 -0
- package/dist/colors/chart.js.map +1 -0
- package/dist/colors.js +6 -18
- package/dist/colors.js.map +1 -1
- package/dist/commonCodeUtils-DNfSjP6S.js +42 -0
- package/dist/commonCodeUtils-DNfSjP6S.js.map +1 -0
- package/dist/constants.js +19 -21
- package/dist/constants.js.map +1 -1
- package/dist/contexts.js +104 -0
- package/dist/contexts.js.map +1 -0
- package/dist/dark-DAY0F6Ph.js +21 -0
- package/dist/dark-DAY0F6Ph.js.map +1 -0
- package/dist/emotion-react-jsx-runtime.browser.esm-BMvSswBW.js +1496 -0
- package/dist/emotion-react-jsx-runtime.browser.esm-BMvSswBW.js.map +1 -0
- package/dist/hooks.js +116 -100
- package/dist/hooks.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +44321 -86
- package/dist/index.js.map +1 -1
- package/dist/isString-Codtu20I.js +55 -0
- package/dist/isString-Codtu20I.js.map +1 -0
- package/dist/isTypedArray-CCnDZ5HJ.js +609 -0
- package/dist/isTypedArray-CCnDZ5HJ.js.map +1 -0
- package/dist/language-DaxFvPOq.js +35 -0
- package/dist/language-DaxFvPOq.js.map +1 -0
- package/dist/lazyLoadedSlices-C18y0AEB.js +2773 -0
- package/dist/lazyLoadedSlices-C18y0AEB.js.map +1 -0
- package/dist/localStorageKeys-Che0CNci.js +10 -0
- package/dist/localStorageKeys-Che0CNci.js.map +1 -0
- package/dist/owp-app.css +1 -1
- package/dist/storageKeys-C6xHFiTo.js +42 -0
- package/dist/storageKeys-C6xHFiTo.js.map +1 -0
- package/dist/store.js +32 -33
- package/dist/{toUpper-K8I4frC5.js → toUpper-Dmh8Htx_.js} +2 -2
- package/dist/{toUpper-K8I4frC5.js.map → toUpper-Dmh8Htx_.js.map} +1 -1
- package/dist/treeGrid-DtKg-9uf.js +8 -0
- package/dist/treeGrid-DtKg-9uf.js.map +1 -0
- package/dist/{treeGridUtil-C46Qi5LG.js → treeGridUtil-DAfaAk6C.js} +79 -78
- package/dist/{treeGridUtil-C46Qi5LG.js.map → treeGridUtil-DAfaAk6C.js.map} +1 -1
- package/dist/types/colors/chart/colorMap.d.ts +8 -0
- package/dist/types/colors/chart/index.d.ts +1 -0
- package/dist/types/colors/index.d.ts +2 -2
- package/dist/types/colors/palettes/index.d.ts +2 -0
- package/dist/types/components/OwpErrorBoundary/OwpErrorBoundary.d.ts +1 -1
- package/dist/types/components/OwpFileUploadButton/OwpFileUploadButton.d.ts +2 -2
- package/dist/types/components/OwpHidden/OwpHidden.d.ts +19 -0
- package/dist/types/components/OwpHidden/index.d.ts +2 -0
- package/dist/types/components/OwpLayout/OwpLayout.d.ts +2 -2
- package/dist/types/components/OwpPageCarded/OwpPageCarded.d.ts +2 -2
- package/dist/types/components/OwpPageCarded/OwpPageCardedSidebar.d.ts +1 -1
- package/dist/types/components/OwpPicker/DatePickerInput.d.ts +1 -1
- package/dist/types/components/OwpStyleProvider/OwpStyleProvider.d.ts +5 -5
- package/dist/types/components/OwpTable/OwpTable.d.ts +1 -3
- package/dist/types/components/OwpTabs/OwpTab.d.ts +2 -4
- package/dist/types/components/OwpTabs/OwpTabs.d.ts +2 -4
- package/dist/types/{default-settings/OwpDefaultSettings.d.ts → configs/defaultConfig.d.ts} +26 -172
- package/dist/types/{components/layouts/layout2/Layout2Config.d.ts → configs/layoutConfig.d.ts} +12 -15
- package/dist/types/contexts/OwpAppProvider.d.ts +44 -0
- package/dist/types/hooks/index.d.ts +4 -2
- package/dist/types/{store/hooks.d.ts → hooks/useAppStore.d.ts} +1 -1
- package/dist/types/hooks/useCurrentLanguage.d.ts +1 -5
- package/dist/types/hooks/useInitApp.d.ts +8 -0
- package/dist/types/hooks/useInitCommonCodes.d.ts +4 -0
- package/dist/types/hooks/useLogoSrc.d.ts +8 -0
- package/dist/types/hooks/useNavigation.d.ts +3 -18
- package/dist/types/hooks/useOwpTranslation.d.ts +0 -2
- package/dist/types/hooks/useStorage.d.ts +0 -13
- package/dist/types/hooks/useThemeMediaQuery.d.ts +1 -1
- package/dist/types/index.d.ts +3 -28
- package/dist/types/{components/layouts/layout3/Layout3.d.ts → layout/Layout.d.ts} +4 -4
- package/dist/types/layout/components/layouts/FooterLayout.d.ts +9 -0
- package/dist/types/layout/components/layouts/LeftSideLayout.d.ts +6 -0
- package/dist/types/layout/components/layouts/NavbarToggleFabLayout.d.ts +8 -0
- package/dist/types/layout/components/layouts/NavbarWrapperLayout.d.ts +5 -0
- package/dist/types/layout/components/menus/LogoutMenu.d.ts +8 -0
- package/dist/types/layout/components/menus/PasswordChangeMenu.d.ts +8 -0
- package/dist/types/{components/layouts/shared-components → layout/components/menus}/UserMenu.d.ts +1 -1
- package/dist/types/{components/layouts/shared-components → layout/components}/navbar/NavbarPinToggleButton.d.ts +1 -1
- package/dist/types/layout/components/navbar/NavbarToggleButton.d.ts +11 -0
- package/dist/types/layout/components/navbar/style/NavbarStyle.d.ts +5 -0
- package/dist/types/layout/components/navbar/style/NavbarStyleContent.d.ts +9 -0
- package/dist/types/layout/components/navigation/NavBadge.d.ts +17 -0
- package/dist/types/layout/components/navigation/NavItem.d.ts +14 -0
- package/dist/types/layout/components/navigation/Navigation.d.ts +3 -0
- package/dist/types/layout/components/navigation/NavigationMenu.d.ts +23 -0
- package/dist/types/layout/components/navigation/vertical/NavVerticalLayout.d.ts +9 -0
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalCollapse.d.ts +6 -0
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalGroup.d.ts +6 -0
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalItem.d.ts +6 -0
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalLink.d.ts +7 -0
- package/dist/types/layout/components/toggles/FullScreenToggle.d.ts +8 -0
- package/dist/types/layout/components/toggles/LanguageSwitcherToggle.d.ts +9 -0
- package/dist/types/layout/components/toggles/NavigationSearchToggle.d.ts +16 -0
- package/dist/types/layout/components/toggles/NavigationShortcutsToggle.d.ts +9 -0
- package/dist/types/layout/components/toggles/toggleStyles.d.ts +10 -0
- package/dist/types/{components/layouts/layout3/components/FooterLayout3.d.ts → layout/components/toolbar/ToolbarLayout.d.ts} +4 -4
- package/dist/types/{components/layouts → layout}/themeLayoutConfigs.d.ts +2 -4
- package/dist/types/store/index.d.ts +1 -1
- package/dist/types/store/lazyLoadedSlices.d.ts +2 -2
- package/dist/types/{components/layouts/shared-components/navigation/store → store}/navigationSlice.d.ts +12 -12
- package/dist/types/store/owpSettingsSlice.d.ts +13 -1806
- package/dist/types/{components/OwpNavigation/types/OwpNavItemType.d.ts → types/OwpNavigationTypes.d.ts} +14 -4
- package/dist/types/types/OwpSettingsTypes.d.ts +2 -2
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/utils/getEstimatedTextCellWidth.d.ts +12 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/language.d.ts +8 -0
- package/dist/types/{components/OwpNavigation/utils/OwpNavigationHelper.d.ts → utils/navigationUtils.d.ts} +17 -5
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/usePageLockLoading-BGODEt_k.js +39 -0
- package/dist/usePageLockLoading-BGODEt_k.js.map +1 -0
- package/dist/useShortcuts-BjtlXprQ.js +236 -0
- package/dist/useShortcuts-BjtlXprQ.js.map +1 -0
- package/dist/useTreeGridExcelExport-BE6h1hsO.js +120 -0
- package/dist/useTreeGridExcelExport-BE6h1hsO.js.map +1 -0
- package/dist/utils.js +6893 -6652
- package/dist/utils.js.map +1 -1
- package/owp-app.css +1 -0
- package/package.json +51 -47
- package/types.d.ts +3 -0
- package/types.js +1 -0
- package/context.d.ts +0 -3
- package/context.js +0 -1
- package/dist/Close-Cm04EulE.js.map +0 -1
- package/dist/OwpStoreProvider-CFq963Pl.js.map +0 -1
- package/dist/OwpUtils-9lHSCdan.js +0 -611
- package/dist/OwpUtils-9lHSCdan.js.map +0 -1
- package/dist/QuickPanel-DlrhsNXW.js +0 -104
- package/dist/QuickPanel-DlrhsNXW.js.map +0 -1
- package/dist/context.js +0 -74
- package/dist/context.js.map +0 -1
- package/dist/emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js +0 -1751
- package/dist/emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js.map +0 -1
- package/dist/index-Dn7pPU3W.js +0 -47049
- package/dist/index-Dn7pPU3W.js.map +0 -1
- package/dist/isTypedArray-xp-fB7W4.js +0 -411
- package/dist/isTypedArray-xp-fB7W4.js.map +0 -1
- package/dist/lazyLoadedSlices-BYAl2fil.js +0 -2786
- package/dist/lazyLoadedSlices-BYAl2fil.js.map +0 -1
- package/dist/storageKeys-DRzte9LZ.js +0 -15
- package/dist/storageKeys-DRzte9LZ.js.map +0 -1
- package/dist/treeGrid-DRAoPLXh.js +0 -35
- package/dist/treeGrid-DRAoPLXh.js.map +0 -1
- package/dist/types/components/OwpCommonDialog/OwpCommonDialog.d.ts +0 -1
- package/dist/types/components/OwpCommonDialog/index.d.ts +0 -1
- package/dist/types/components/OwpNavigation/OwpNavBadge.d.ts +0 -17
- package/dist/types/components/OwpNavigation/OwpNavItem.d.ts +0 -14
- package/dist/types/components/OwpNavigation/OwpNavigation.d.ts +0 -23
- package/dist/types/components/OwpNavigation/horizontal/OwpNavHorizontalLayout1.d.ts +0 -7
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalCollapse.d.ts +0 -15
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalGroup.d.ts +0 -13
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalItem.d.ts +0 -11
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalLink.d.ts +0 -8
- package/dist/types/components/OwpNavigation/index.d.ts +0 -1
- package/dist/types/components/OwpNavigation/isUrlInChildren.d.ts +0 -7
- package/dist/types/components/OwpNavigation/models/OwpNavItemModel.d.ts +0 -8
- package/dist/types/components/OwpNavigation/types/OwpNavBadgeType.d.ts +0 -9
- package/dist/types/components/OwpNavigation/utils/components.d.ts +0 -4
- package/dist/types/components/OwpNavigation/utils/registerComponent.d.ts +0 -4
- package/dist/types/components/OwpNavigation/vertical/OwpNavVerticalLayout1.d.ts +0 -9
- package/dist/types/components/OwpNavigation/vertical/OwpNavVerticalLayout2.d.ts +0 -7
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalCollapse.d.ts +0 -7
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalGroup.d.ts +0 -7
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalItem.d.ts +0 -7
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalLink.d.ts +0 -8
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalTab.d.ts +0 -11
- package/dist/types/components/OwpSearch/OwpSearch.d.ts +0 -23
- package/dist/types/components/OwpSearch/index.d.ts +0 -1
- package/dist/types/components/OwpShortcuts/OwpShortcuts.d.ts +0 -19
- package/dist/types/components/OwpShortcuts/index.d.ts +0 -1
- package/dist/types/components/OwpSidePanel/OwpSidePanel.d.ts +0 -18
- package/dist/types/components/OwpSidePanel/index.d.ts +0 -1
- package/dist/types/components/OwpTheme/OwpTheme.d.ts +0 -18
- package/dist/types/components/OwpTheme/index.d.ts +0 -1
- package/dist/types/components/OwpThemeSelector/OwpThemeSelector.d.ts +0 -16
- package/dist/types/components/OwpThemeSelector/SchemePreview.d.ts +0 -14
- package/dist/types/components/OwpThemeSelector/ThemePreview.d.ts +0 -17
- package/dist/types/components/OwpThemeSelector/index.d.ts +0 -1
- package/dist/types/components/layouts/layout1/Layout1.d.ts +0 -10
- package/dist/types/components/layouts/layout1/Layout1Config.d.ts +0 -114
- package/dist/types/components/layouts/layout1/components/FooterLayout1.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/LeftSideLayout1.d.ts +0 -6
- package/dist/types/components/layouts/layout1/components/NavbarToggleFabLayout1.d.ts +0 -8
- package/dist/types/components/layouts/layout1/components/NavbarWrapperLayout1.d.ts +0 -5
- package/dist/types/components/layouts/layout1/components/ToolbarLayout1.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/navbar/style-1/NavbarStyle1.d.ts +0 -5
- package/dist/types/components/layouts/layout1/components/navbar/style-1/NavbarStyle1Content.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/navbar/style-2/NavbarStyle2.d.ts +0 -5
- package/dist/types/components/layouts/layout1/components/navbar/style-2/NavbarStyle2Content.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/navbar/style-3/NavbarStyle3.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/navbar/style-3/NavbarStyle3Content.d.ts +0 -10
- package/dist/types/components/layouts/layout2/Layout2.d.ts +0 -10
- package/dist/types/components/layouts/layout2/components/FooterLayout2.d.ts +0 -9
- package/dist/types/components/layouts/layout2/components/LeftSideLayout2.d.ts +0 -6
- package/dist/types/components/layouts/layout2/components/NavbarLayout2.d.ts +0 -9
- package/dist/types/components/layouts/layout2/components/NavbarMobileLayout2.d.ts +0 -9
- package/dist/types/components/layouts/layout2/components/NavbarToggleFabLayout2.d.ts +0 -8
- package/dist/types/components/layouts/layout2/components/NavbarWrapperLayout2.d.ts +0 -5
- package/dist/types/components/layouts/layout2/components/RightSideLayout2.d.ts +0 -6
- package/dist/types/components/layouts/layout2/components/ToolbarLayout2.d.ts +0 -9
- package/dist/types/components/layouts/layout3/Layout3Config.d.ts +0 -110
- package/dist/types/components/layouts/layout3/components/LeftSideLayout3.d.ts +0 -6
- package/dist/types/components/layouts/layout3/components/NavbarLayout3.d.ts +0 -9
- package/dist/types/components/layouts/layout3/components/NavbarMobileLayout3.d.ts +0 -9
- package/dist/types/components/layouts/layout3/components/NavbarWrapperLayout3.d.ts +0 -5
- package/dist/types/components/layouts/layout3/components/RightSideLayout3.d.ts +0 -6
- package/dist/types/components/layouts/layout3/components/ToolbarLayout3.d.ts +0 -9
- package/dist/types/components/layouts/shared-components/FullScreenToggle.d.ts +0 -8
- package/dist/types/components/layouts/shared-components/LanguageSwitcher.d.ts +0 -7
- package/dist/types/components/layouts/shared-components/PasswordChangeForm.d.ts +0 -2
- package/dist/types/components/layouts/shared-components/navbar/NavbarToggleButton.d.ts +0 -7
- package/dist/types/components/layouts/shared-components/navigation/Navigation.d.ts +0 -3
- package/dist/types/components/layouts/shared-components/navigation/NavigationSearch.d.ts +0 -6
- package/dist/types/components/layouts/shared-components/navigation/NavigationShortcuts.d.ts +0 -6
- package/dist/types/components/layouts/shared-components/quickPanel/QuickPanel.d.ts +0 -5
- package/dist/types/components/layouts/shared-components/quickPanel/QuickPanelToggleButton.d.ts +0 -9
- package/dist/types/components/layouts/shared-components/quickPanel/quickPanelSlice.d.ts +0 -14
- package/dist/types/context/OwpAppProvider.d.ts +0 -36
- package/dist/types/hooks/useCurrentLogoSrc.d.ts +0 -8
- package/dist/types/hooks/useTreeGridCommonCodeEnum.d.ts +0 -8
- package/dist/useOwpTranslation-CMrtqKkT.js +0 -190
- package/dist/useOwpTranslation-CMrtqKkT.js.map +0 -1
- package/dist/useStorage-BA0D8KA7.js +0 -67
- package/dist/useStorage-BA0D8KA7.js.map +0 -1
- package/dist/useTreeGridExcelExport-DLMecvHS.js +0 -186
- package/dist/useTreeGridExcelExport-DLMecvHS.js.map +0 -1
- /package/dist/types/colors/{owpDark.d.ts → palettes/dark.d.ts} +0 -0
- /package/dist/types/colors/{skyBlue.d.ts → palettes/skyBlue.d.ts} +0 -0
- /package/dist/types/{context → contexts}/OwpCoreProvider.d.ts +0 -0
- /package/dist/types/{context → contexts}/OwpStoreProvider.d.ts +0 -0
- /package/dist/types/{context → contexts}/OwpUiProvider.d.ts +0 -0
- /package/dist/types/{context → contexts}/index.d.ts +0 -0
- /package/dist/types/{components/layouts/shared-components → layout/components/logo}/Logo.d.ts +0 -0
- /package/dist/types/{components/layouts/shared-components → layout/components}/navbar/NavbarToggleFab.d.ts +0 -0
- /package/dist/types/{components/layouts/shared-components → layout/components/toggles}/LogoutToggle.d.ts +0 -0
- /package/dist/types/{components/layouts → layout}/themeLayouts.d.ts +0 -0
- /package/dist/types/{components/layouts/shared-components/navbar → store}/navbarSlice.d.ts +0 -0
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
var ue = Object.defineProperty;
|
|
2
2
|
var a = (e, t) => ue(e, "name", { value: t, configurable: !0 });
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { enqueueSnackbar as
|
|
8
|
-
|
|
3
|
+
import { T as ye, a as ge } from "./treeGrid-DtKg-9uf.js";
|
|
4
|
+
import { n as he, a as J, t as we, u as pe, j as b, v as Ee, w as Z, x as Re, q as Se, k as Ie, o as $, i as me } from "./isTypedArray-CCnDZ5HJ.js";
|
|
5
|
+
import Q from "dayjs";
|
|
6
|
+
import Ce from "exceljs";
|
|
7
|
+
import { enqueueSnackbar as Te } from "notistack";
|
|
8
|
+
import { D as v, a as ee, b as D, c as B, d as te } from "./storageKeys-C6xHFiTo.js";
|
|
9
|
+
function xe(e, t) {
|
|
9
10
|
const n = new Set(t);
|
|
10
11
|
return e.filter((r) => !n.has(r));
|
|
11
12
|
}
|
|
12
|
-
a(
|
|
13
|
-
function
|
|
14
|
-
return
|
|
13
|
+
a(xe, "difference");
|
|
14
|
+
function be(e, ...t) {
|
|
15
|
+
return xe(e, t);
|
|
15
16
|
}
|
|
16
|
-
a(
|
|
17
|
+
a(be, "without$1");
|
|
17
18
|
function Ge(e) {
|
|
18
19
|
return Array.isArray(e);
|
|
19
20
|
}
|
|
@@ -28,7 +29,7 @@ function De(e) {
|
|
|
28
29
|
}
|
|
29
30
|
a(De, "lowerCase$1");
|
|
30
31
|
function Be(e) {
|
|
31
|
-
return he(e) &&
|
|
32
|
+
return he(e) && J(e);
|
|
32
33
|
}
|
|
33
34
|
a(Be, "isArrayLikeObject");
|
|
34
35
|
function k(e, t) {
|
|
@@ -40,7 +41,7 @@ function k(e, t) {
|
|
|
40
41
|
case "object": {
|
|
41
42
|
if (Array.isArray(t))
|
|
42
43
|
return U(e, t);
|
|
43
|
-
if (typeof t == "number" ? t = Ee(t) : typeof t == "object" && (Object.is(t == null ? void 0 : t.valueOf(), -0) ? t = "-0" : t = String(t)),
|
|
44
|
+
if (typeof t == "number" ? t = Ee(t) : typeof t == "object" && (Object.is(t == null ? void 0 : t.valueOf(), -0) ? t = "-0" : t = String(t)), b(t))
|
|
44
45
|
return !1;
|
|
45
46
|
if ((e == null ? void 0 : e[t]) === void 0)
|
|
46
47
|
return !0;
|
|
@@ -53,7 +54,7 @@ function k(e, t) {
|
|
|
53
54
|
case "string": {
|
|
54
55
|
if ((e == null ? void 0 : e[t]) === void 0 && we(t))
|
|
55
56
|
return U(e, pe(t));
|
|
56
|
-
if (
|
|
57
|
+
if (b(t))
|
|
57
58
|
return !1;
|
|
58
59
|
try {
|
|
59
60
|
return delete e[t], !0;
|
|
@@ -65,10 +66,10 @@ function k(e, t) {
|
|
|
65
66
|
}
|
|
66
67
|
a(k, "unset");
|
|
67
68
|
function U(e, t) {
|
|
68
|
-
const n =
|
|
69
|
+
const n = Z(e, t.slice(0, -1), e), r = t[t.length - 1];
|
|
69
70
|
if ((n == null ? void 0 : n[r]) === void 0)
|
|
70
71
|
return !0;
|
|
71
|
-
if (
|
|
72
|
+
if (b(r))
|
|
72
73
|
return !1;
|
|
73
74
|
try {
|
|
74
75
|
return delete n[r], !0;
|
|
@@ -78,7 +79,7 @@ function U(e, t) {
|
|
|
78
79
|
}
|
|
79
80
|
a(U, "unsetWithPath");
|
|
80
81
|
function Le(e, ...t) {
|
|
81
|
-
return Be(e) ?
|
|
82
|
+
return Be(e) ? be(Array.from(e), ...t) : [];
|
|
82
83
|
}
|
|
83
84
|
a(Le, "without");
|
|
84
85
|
function ne(e) {
|
|
@@ -126,7 +127,7 @@ a(Me, "omit");
|
|
|
126
127
|
function L(e) {
|
|
127
128
|
if (e == null)
|
|
128
129
|
return !0;
|
|
129
|
-
if (
|
|
130
|
+
if (J(e))
|
|
130
131
|
return typeof e.splice != "function" && typeof e != "string" && (typeof Buffer > "u" || !Buffer.isBuffer(e)) && !Se(e) && !Ie(e) ? !1 : e.length === 0;
|
|
131
132
|
if (typeof e == "object") {
|
|
132
133
|
if (e instanceof Map || e instanceof Set)
|
|
@@ -188,7 +189,7 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
188
189
|
console.error(n);
|
|
189
190
|
return;
|
|
190
191
|
}
|
|
191
|
-
}, "parseTreeGridXmlToJson"),
|
|
192
|
+
}, "parseTreeGridXmlToJson"), vt = /* @__PURE__ */ a((e, t, n) => {
|
|
192
193
|
var i, c;
|
|
193
194
|
if (!t || !e)
|
|
194
195
|
return;
|
|
@@ -210,19 +211,19 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
210
211
|
const n = t ?? Ke, r = URL.createObjectURL(e), s = document.createElement("a");
|
|
211
212
|
s.href = r, s.download = `${n.normalize("NFC")}.xlsx`, s.click(), URL.revokeObjectURL(r);
|
|
212
213
|
}, "downloadExcelFile"), Xe = /* @__PURE__ */ a((e, t) => ({
|
|
213
|
-
...
|
|
214
|
-
...!e &&
|
|
214
|
+
...ee,
|
|
215
|
+
...!e && v,
|
|
215
216
|
...t
|
|
216
217
|
}), "createCellFont"), ze = /* @__PURE__ */ a((e) => ({
|
|
217
218
|
...D,
|
|
218
219
|
...e
|
|
219
220
|
}), "createCellAlignment"), qe = /* @__PURE__ */ a((e, t, n) => {
|
|
220
221
|
if (e.border = B, n) {
|
|
221
|
-
e.fill =
|
|
222
|
+
e.fill = te;
|
|
222
223
|
return;
|
|
223
224
|
}
|
|
224
225
|
L(t) || (e.fill = t);
|
|
225
|
-
}, "applyCellFillAndBorder"),
|
|
226
|
+
}, "applyCellFillAndBorder"), en = /* @__PURE__ */ a((e) => e.split("").reduce((t, n) => t * 26 + parseInt(n, 36) - 9, 0), "getIndexByLetters"), tn = /* @__PURE__ */ a((e) => {
|
|
226
227
|
const t = String.fromCharCode(65 + (e - 1) % 26);
|
|
227
228
|
return e > 26 ? String.fromCharCode(64 + (e - 1) / 26) + t : t;
|
|
228
229
|
}, "getLettersByIndex"), Je = /* @__PURE__ */ a((e, t) => {
|
|
@@ -233,7 +234,7 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
233
234
|
}, "exportExcelByBuffer"), Ze = /* @__PURE__ */ a((e, { key: t, value: n, font: r, alignment: s, fill: o, isHeader: i }) => {
|
|
234
235
|
const c = Ye(e, t);
|
|
235
236
|
c.value = n, c.font = Xe(i, r), c.alignment = ze(s), qe(c, o, i);
|
|
236
|
-
}, "setCellValue"),
|
|
237
|
+
}, "setCellValue"), nn = /* @__PURE__ */ a((e, { range: t, value: n, font: r, alignment: s, fill: o, isHeader: i }) => {
|
|
237
238
|
const c = t.split(":")[1];
|
|
238
239
|
e.mergeCells(t), Ze(e, {
|
|
239
240
|
key: c,
|
|
@@ -341,13 +342,13 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
341
342
|
return n;
|
|
342
343
|
const r = "__TREEGRID_MINUTE_TWO__", s = "__TREEGRID_MINUTE_ONE__", o = t.replace(/yyyy/g, "YYYY").replace(/yy/g, "YY").replace(/tt/g, "A").replace(/hh/g, "HH").replace(/\bh\b/g, "H").replace(/(H{1,2}:)mm/g, `$1${r}`).replace(/(H{1,2}:)m/g, `$1${s}`).replace(/mmmm/g, "MMMM").replace(/mmm/g, "MMM").replace(/mm/g, "MM").replace(/\bm\b/g, "M").replace(new RegExp(r, "g"), "mm").replace(new RegExp(s, "g"), "m").replace(/dddd/g, "dddd").replace(/ddd/g, "ddd").replace(/dd/g, "DD").replace(/\bd\b/g, "D");
|
|
343
344
|
return K.set(t, o), o;
|
|
344
|
-
}, "getDayjsDateFormat"),
|
|
345
|
+
}, "getDayjsDateFormat"), T = /* @__PURE__ */ a((e, t) => {
|
|
345
346
|
const n = wt(t);
|
|
346
347
|
if (!n || !A(e) || e === null || e === void 0 || e === "" || typeof e == "boolean")
|
|
347
348
|
return null;
|
|
348
|
-
const r =
|
|
349
|
+
const r = Q(e);
|
|
349
350
|
return r.isValid() ? r.format(n) : null;
|
|
350
|
-
}, "formatDateValue"),
|
|
351
|
+
}, "formatDateValue"), x = /* @__PURE__ */ a((e, t) => (t == null ? void 0 : t.Type) !== "Bool" ? null : e == null || e === "" ? "" : e === !0 || e === 1 || e === "1" || e === "Y" || e === "y" || e === "true" || e === "TRUE" ? "Y" : e === !1 || e === 0 || e === "0" || e === "N" || e === "n" || e === "false" || e === "FALSE" ? "N" : null, "formatBoolValue"), j = /* @__PURE__ */ a((e, t, n) => {
|
|
351
352
|
const r = t == null ? void 0 : t[n];
|
|
352
353
|
return r != null ? String(r) : typeof e.GetCaption == "function" ? e.GetCaption(n) ?? "" : n;
|
|
353
354
|
}, "getHeaderValue"), w = /* @__PURE__ */ a((e, t) => {
|
|
@@ -359,29 +360,29 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
359
360
|
if (c != null)
|
|
360
361
|
return w(c, r);
|
|
361
362
|
}
|
|
362
|
-
const s = t[n], o =
|
|
363
|
+
const s = t[n], o = x(s, r);
|
|
363
364
|
if (o !== null)
|
|
364
365
|
return w(o, r);
|
|
365
|
-
const i =
|
|
366
|
+
const i = T(s, r);
|
|
366
367
|
if (i !== null)
|
|
367
368
|
return w(i, r);
|
|
368
369
|
if (A(s))
|
|
369
370
|
return w(s, r);
|
|
370
371
|
if (typeof e.GetValue == "function") {
|
|
371
|
-
const c = e.GetValue(t, n), l =
|
|
372
|
+
const c = e.GetValue(t, n), l = x(c, r);
|
|
372
373
|
if (l !== null)
|
|
373
374
|
return w(l, r);
|
|
374
|
-
const f =
|
|
375
|
+
const f = T(c, r);
|
|
375
376
|
if (f !== null)
|
|
376
377
|
return w(f, r);
|
|
377
378
|
if (A(c))
|
|
378
379
|
return w(c, r);
|
|
379
380
|
}
|
|
380
381
|
if (typeof e.GetString == "function") {
|
|
381
|
-
const c = e.GetString(t, n), l =
|
|
382
|
+
const c = e.GetString(t, n), l = x(c, r);
|
|
382
383
|
if (l !== null)
|
|
383
384
|
return w(l, r);
|
|
384
|
-
const f =
|
|
385
|
+
const f = T(c, r);
|
|
385
386
|
if (f !== null)
|
|
386
387
|
return w(f, r);
|
|
387
388
|
if (c != null)
|
|
@@ -444,10 +445,10 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
444
445
|
});
|
|
445
446
|
if (St(o, c, d, g, p), h === null || S < 1)
|
|
446
447
|
continue;
|
|
447
|
-
const
|
|
448
|
-
n == null || n(h,
|
|
448
|
+
const C = t(l, u);
|
|
449
|
+
n == null || n(h, C), f.push({
|
|
449
450
|
colIndex: h,
|
|
450
|
-
value:
|
|
451
|
+
value: C,
|
|
451
452
|
rowSpan: g,
|
|
452
453
|
colSpan: S
|
|
453
454
|
});
|
|
@@ -475,7 +476,7 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
475
476
|
rowSpan: 1,
|
|
476
477
|
colSpan: 1
|
|
477
478
|
}))
|
|
478
|
-
] : [], "createHeaderEntries"),
|
|
479
|
+
] : [], "createHeaderEntries"), mt = /* @__PURE__ */ a(async ({
|
|
479
480
|
allExportColumns: e,
|
|
480
481
|
columns: t,
|
|
481
482
|
onVisibleEntry: n,
|
|
@@ -514,37 +515,37 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
514
515
|
}
|
|
515
516
|
(r + 1) % I === 0 && await R();
|
|
516
517
|
}
|
|
517
|
-
}, "mergeEntryRows"),
|
|
518
|
+
}, "mergeEntryRows"), Ct = /* @__PURE__ */ a(async (e, t, n, r) => {
|
|
518
519
|
for (let s = 0; s < n; s += 1) {
|
|
519
520
|
const o = e.getRow(t + s);
|
|
520
|
-
o.font =
|
|
521
|
+
o.font = ee;
|
|
521
522
|
for (let i = 1; i <= r; i += 1) {
|
|
522
523
|
const c = o.getCell(i);
|
|
523
|
-
c.fill =
|
|
524
|
+
c.fill = te, c.border = B, c.alignment = {
|
|
524
525
|
...D,
|
|
525
526
|
horizontal: "center"
|
|
526
527
|
};
|
|
527
528
|
}
|
|
528
529
|
(s + 1) % I === 0 && await R();
|
|
529
530
|
}
|
|
530
|
-
}, "styleHeaderRows"),
|
|
531
|
+
}, "styleHeaderRows"), Tt = /* @__PURE__ */ a(async (e, t, n, r) => {
|
|
531
532
|
for (let s = 0; s < n; s += 1) {
|
|
532
533
|
const o = e.getRow(t + s);
|
|
533
|
-
o.font =
|
|
534
|
+
o.font = v;
|
|
534
535
|
for (let i = 1; i <= r; i += 1)
|
|
535
536
|
o.getCell(i).border = B;
|
|
536
537
|
(s + 1) % I === 0 && await R();
|
|
537
538
|
}
|
|
538
|
-
}, "styleBodyRows"),
|
|
539
|
+
}, "styleBodyRows"), xt = /* @__PURE__ */ a((e) => {
|
|
539
540
|
const t = Number((e == null ? void 0 : e.Width) ?? (e == null ? void 0 : e.MinWidth));
|
|
540
541
|
return !Number.isFinite(t) || t <= 0 ? null : Math.min(Math.max(Math.round(t / 8), 10), 50);
|
|
541
|
-
}, "getPreferredColumnWidth"), q = /* @__PURE__ */ a((e) => Math.min(Math.max(e + 4, 10), 50), "getAutoColumnWidth"),
|
|
542
|
+
}, "getPreferredColumnWidth"), q = /* @__PURE__ */ a((e) => Math.min(Math.max(e + 4, 10), 50), "getAutoColumnWidth"), bt = /* @__PURE__ */ a((e, t, n) => {
|
|
542
543
|
const r = new Array(n.length).fill(10), s = new Array(n.length).fill(!1);
|
|
543
544
|
for (let o = 0; o < n.length; o += 1) {
|
|
544
545
|
const i = n[o];
|
|
545
546
|
if (!i)
|
|
546
547
|
continue;
|
|
547
|
-
const c = t[i], l =
|
|
548
|
+
const c = t[i], l = xt(c);
|
|
548
549
|
if (l !== null) {
|
|
549
550
|
r[o] = l, s[o] = !0;
|
|
550
551
|
continue;
|
|
@@ -571,13 +572,13 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
571
572
|
throw new Error(
|
|
572
573
|
Y(r, "Message.TreeGrid 인스턴스가 없습니다.", ve)
|
|
573
574
|
);
|
|
574
|
-
const s = F(e), o = ft(e), i = dt(e, o), { widths: c, updateWidth: l } =
|
|
575
|
+
const s = F(e), o = ft(e), i = dt(e, o), { widths: c, updateWidth: l } = bt(e, s, i), f = ut(e), d = yt(e), u = gt(o, i), p = await It({
|
|
575
576
|
allExportColumns: o,
|
|
576
577
|
grid: e,
|
|
577
578
|
headerRows: f,
|
|
578
579
|
resolveSpan: u,
|
|
579
580
|
visibleExportColumns: i
|
|
580
|
-
}), g = await
|
|
581
|
+
}), g = await mt({
|
|
581
582
|
allExportColumns: o,
|
|
582
583
|
columns: s,
|
|
583
584
|
dataRows: d,
|
|
@@ -585,7 +586,7 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
585
586
|
onVisibleEntry: l,
|
|
586
587
|
resolveSpan: u,
|
|
587
588
|
visibleExportColumns: i
|
|
588
|
-
}), h = new
|
|
589
|
+
}), h = new Ce.Workbook(), S = (n == null ? void 0 : n.exportName) ?? st(e) ?? e.id ?? "sheet", C = n != null && n.useAppendCurrentDateTimeToExportName ? `-${Q().format("YYYY-MM-DD-HH-mm-ss")}` : "", N = oe(`${S}${C}`), E = h.addWorksheet(it(N)), H = await X(
|
|
589
590
|
E,
|
|
590
591
|
p,
|
|
591
592
|
i.length
|
|
@@ -594,22 +595,22 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
594
595
|
g,
|
|
595
596
|
i.length
|
|
596
597
|
);
|
|
597
|
-
for (let
|
|
598
|
-
const P = i[
|
|
598
|
+
for (let m = 0; m < i.length; m += 1) {
|
|
599
|
+
const P = i[m];
|
|
599
600
|
if (!P)
|
|
600
601
|
continue;
|
|
601
|
-
const de = s[P], O = E.getColumn(
|
|
602
|
-
O.width = c[
|
|
602
|
+
const de = s[P], O = E.getColumn(m + 1);
|
|
603
|
+
O.width = c[m], O.alignment = {
|
|
603
604
|
...D,
|
|
604
605
|
horizontal: ht(de)
|
|
605
606
|
};
|
|
606
607
|
}
|
|
607
|
-
await z(E, p, H), await z(E, g, V), await
|
|
608
|
+
await z(E, p, H), await z(E, g, V), await Ct(
|
|
608
609
|
E,
|
|
609
610
|
H,
|
|
610
611
|
p.length,
|
|
611
612
|
i.length
|
|
612
|
-
), await
|
|
613
|
+
), await Tt(
|
|
613
614
|
E,
|
|
614
615
|
V,
|
|
615
616
|
g.length,
|
|
@@ -622,7 +623,7 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
622
623
|
Je(fe, N);
|
|
623
624
|
} catch (n) {
|
|
624
625
|
const r = typeof t == "string" ? {} : t, s = r == null ? void 0 : r.t;
|
|
625
|
-
|
|
626
|
+
Te(
|
|
626
627
|
n instanceof Error ? n.message : Y(
|
|
627
628
|
s,
|
|
628
629
|
"Message.엑셀 다운로드 중 오류가 발생했습니다.",
|
|
@@ -633,7 +634,7 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
633
634
|
}
|
|
634
635
|
);
|
|
635
636
|
}
|
|
636
|
-
}, "exportTreeGridExcel"),
|
|
637
|
+
}, "exportTreeGridExcel"), rn = ce, Gt = ["Added", "Changed"], At = ["OWP", "IPX"], _t = /* @__PURE__ */ a((e) => Object.values((e == null ? void 0 : e.Rows) ?? {}).filter((t) => t.Kind === "Data"), "getDataRows"), Dt = /* @__PURE__ */ a((e, t) => {
|
|
637
638
|
const n = (t == null ? void 0 : t.insertPosition) ?? "top", r = t == null ? void 0 : t.parent, s = t == null ? void 0 : t.anchorRow;
|
|
638
639
|
let o = r ?? (s ? s.parentNode : null) ?? e.GetFirst(), i = null;
|
|
639
640
|
switch (n) {
|
|
@@ -652,12 +653,12 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
652
653
|
}
|
|
653
654
|
return { resolvedParent: o, next: i };
|
|
654
655
|
}, "resolveRowInsertionTarget"), Bt = /* @__PURE__ */ a((e, t) => {
|
|
655
|
-
|
|
656
|
+
me(t) && Object.entries(t).forEach(([n, r]) => {
|
|
656
657
|
e[n] = r;
|
|
657
658
|
});
|
|
658
659
|
}, "assignInitialRowValues"), Lt = /* @__PURE__ */ a((e) => At.some((t) => e.startsWith(t)), "isTreeGridDataKey"), Ft = /* @__PURE__ */ a((e) => Object.fromEntries(
|
|
659
660
|
Le(Object.keys(e), "id").filter((t) => Lt(t) && !L(e[t])).map((t) => [t, e[t]])
|
|
660
|
-
), "normalizeAddedRow"), Mt = /* @__PURE__ */ a((e, t) => e.filter((n) =>
|
|
661
|
+
), "normalizeAddedRow"), Mt = /* @__PURE__ */ a((e, t) => e.filter((n) => Z(n, t) === "1" && n.Deleted !== "1").map((n) => t === "Changed" ? Me(n, ["id", "Changed"]) : Ft(n)).filter((n) => !L(n)), "getChangedRowsByStatus"), y = /* @__PURE__ */ a((e) => Grids[e], "getTreeGridById"), Nt = /* @__PURE__ */ a((e) => {
|
|
661
662
|
const t = y(e);
|
|
662
663
|
return _t(t);
|
|
663
664
|
}, "getTreeGridDataRowsById"), Ht = /* @__PURE__ */ a((e, t) => {
|
|
@@ -724,31 +725,31 @@ const G = /* @__PURE__ */ a((e, t) => {
|
|
|
724
725
|
return `${s.map((u) => f[u]).find((u) => u != null && u !== "") ?? ""}`;
|
|
725
726
|
}).join("|"), c = n.map((l) => `${l[r] ?? ""}`).join("|");
|
|
726
727
|
o.SetAttribute(null, t, "Type", "Enum", 0, 0), o.SetAttribute(null, t, "Enum", `|${i}`, 0, 0), o.SetAttribute(null, t, "EnumKeys", `|${c}`, 1, 0);
|
|
727
|
-
}, "setTreeGridColumnEnumOptionsById"),
|
|
728
|
+
}, "setTreeGridColumnEnumOptionsById"), sn = y, on = Nt, an = Ht, cn = Vt, ln = Pt, fn = Ot, dn = $t, un = kt, yn = Ut, gn = M, hn = Wt, wn = le, pn = Kt, En = Yt;
|
|
728
729
|
export {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
730
|
+
cn as A,
|
|
731
|
+
ln as B,
|
|
732
|
+
fn as C,
|
|
733
|
+
dn as D,
|
|
734
|
+
un as E,
|
|
735
|
+
yn as F,
|
|
736
|
+
gn as G,
|
|
737
|
+
hn as H,
|
|
738
|
+
wn as I,
|
|
739
|
+
pn as J,
|
|
740
|
+
En as K,
|
|
740
741
|
Be as L,
|
|
741
742
|
L as M,
|
|
742
|
-
|
|
743
|
+
vt as N,
|
|
743
744
|
Me as O,
|
|
744
|
-
|
|
745
|
-
|
|
745
|
+
en as a,
|
|
746
|
+
tn as b,
|
|
746
747
|
Je as c,
|
|
747
748
|
Ze as d,
|
|
748
749
|
ce as e,
|
|
749
|
-
|
|
750
|
+
nn as f,
|
|
750
751
|
y as g,
|
|
751
|
-
|
|
752
|
+
rn as h,
|
|
752
753
|
Ge as i,
|
|
753
754
|
Nt as j,
|
|
754
755
|
Vt as k,
|
|
@@ -764,8 +765,8 @@ export {
|
|
|
764
765
|
Wt as u,
|
|
765
766
|
le as v,
|
|
766
767
|
Kt as w,
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
768
|
+
sn as x,
|
|
769
|
+
on as y,
|
|
770
|
+
an as z
|
|
770
771
|
};
|
|
771
|
-
//# sourceMappingURL=treeGridUtil-
|
|
772
|
+
//# sourceMappingURL=treeGridUtil-DAfaAk6C.js.map
|