@owp/core 2.5.3 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index12.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/index5.js +2 -2
- package/dist/components/OwpMrtTable/OwpMrtTable.js +250 -258
- package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
- package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js +4 -4
- package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js +166 -0
- package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js.map +1 -0
- package/dist/components/OwpTable/OwpDataTable.js +321 -327
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpFieldTable.js +102 -58
- package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
- package/dist/components/OwpTable/OwpTable.js +158 -174
- package/dist/components/OwpTable/OwpTable.js.map +1 -1
- package/dist/components/OwpTable/internal/defaultTableStyle.js +50 -0
- package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -0
- package/dist/components/OwpTable/internal/treeGridTableStyle.js +77 -0
- package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -0
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +200 -253
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +183 -124
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +462 -0
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -0
- package/dist/configs/defaultConfig.js +67 -44
- package/dist/configs/defaultConfig.js.map +1 -1
- package/dist/constants/gridTheme.js +60 -10
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/tableTheme.js +16 -0
- package/dist/constants/tableTheme.js.map +1 -0
- package/dist/constants/treeGrid.js +44 -26
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +21 -20
- package/dist/contexts/OwpAppProvider.js.map +1 -1
- package/dist/contexts/OwpUiProvider.js +59 -38
- package/dist/contexts/OwpUiProvider.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvas.js +492 -0
- package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -0
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +678 -0
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -0
- package/dist/features/themePreview/components/ThemePreviewColorField.js +301 -0
- package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -0
- package/dist/features/themePreview/components/ThemePreviewControls.js +306 -0
- package/dist/features/themePreview/components/ThemePreviewControls.js.map +1 -0
- package/dist/features/themePreview/components/themePreviewCanvas.icons.js +17 -0
- package/dist/features/themePreview/components/themePreviewCanvas.icons.js.map +1 -0
- package/dist/features/themePreview/components/themePreviewCanvas.shared.js +296 -0
- package/dist/features/themePreview/components/themePreviewCanvas.shared.js.map +1 -0
- package/dist/features/themePreview/configs/grid.js +45 -0
- package/dist/features/themePreview/configs/grid.js.map +1 -0
- package/dist/features/themePreview/configs/presets.js +1106 -0
- package/dist/features/themePreview/configs/presets.js.map +1 -0
- package/dist/features/themePreview/configs/previewStorage.js +93 -0
- package/dist/features/themePreview/configs/previewStorage.js.map +1 -0
- package/dist/features/themePreview/configs/settings.js +148 -0
- package/dist/features/themePreview/configs/settings.js.map +1 -0
- package/dist/features/themePreview/configs/snackbar.js +39 -0
- package/dist/features/themePreview/configs/snackbar.js.map +1 -0
- package/dist/features/themePreview/configs/surface.js +10 -0
- package/dist/features/themePreview/configs/surface.js.map +1 -0
- package/dist/features/themePreview/configs/table.js +30 -0
- package/dist/features/themePreview/configs/table.js.map +1 -0
- package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js +43 -0
- package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js.map +1 -0
- package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js +43 -0
- package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js.map +1 -0
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +429 -0
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -0
- package/dist/features/themePreview/hooks/useThemePreview.js +235 -0
- package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -0
- package/dist/features/themePreview/utils/color.js +79 -0
- package/dist/features/themePreview/utils/color.js.map +1 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +526 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -0
- package/dist/features/themePreview/utils/themePreviewExport.js +111 -0
- package/dist/features/themePreview/utils/themePreviewExport.js.map +1 -0
- package/dist/features/themePreview/utils/themePreviewSettings.js +211 -0
- package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -0
- package/dist/features/themePreview.js +75 -0
- package/dist/features/themePreview.js.map +1 -0
- package/dist/index.js +111 -110
- package/dist/layout/components/logo/Logo.js +49 -45
- package/dist/layout/components/logo/Logo.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/layout/components/toggles/ThemePreviewToggle.js +51 -0
- package/dist/layout/components/toggles/ThemePreviewToggle.js.map +1 -0
- package/dist/layout/components/toolbar/ToolbarLayout.js +13 -10
- package/dist/layout/components/toolbar/ToolbarLayout.js.map +1 -1
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CheckCircleOutline.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CheckCircleOutline.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DownloadOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DownloadOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ErrorOutline.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ErrorOutline.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/InfoOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/InfoOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/KeyboardArrowUpRounded.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/KeyboardArrowUpRounded.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MenuRounded.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MenuRounded.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/NotificationsNoneOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/NotificationsNoneOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/PaletteOutlined.js +25 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/PaletteOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/RestoreOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/RestoreOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SaveOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SaveOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SpaceDashboardOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SpaceDashboardOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UploadFileOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UploadFileOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/WarningAmberRounded.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/WarningAmberRounded.js.map +1 -0
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.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/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/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/react-is@16.13.1/node_modules/react-is/index.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/owp-app.css +1 -1
- package/dist/types/components/OwpSnackbarContent/OwpSnackbarContent.d.ts +2 -0
- package/dist/types/components/OwpTable/OwpTable.d.ts +3 -1
- package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +49 -0
- package/dist/types/components/OwpTable/internal/treeGridTableStyle.d.ts +105 -0
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +2 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +11 -2
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +20 -0
- package/dist/types/configs/defaultConfig.d.ts +22 -0
- package/dist/types/constants/gridTheme.d.ts +58 -0
- package/dist/types/constants/tableTheme.d.ts +18 -0
- package/dist/types/constants/treeGrid.d.ts +5 -0
- package/dist/types/contexts/OwpAppProvider.d.ts +2 -0
- package/dist/types/features/themePreview/components/ThemePreviewCanvas.d.ts +8 -0
- package/dist/types/features/themePreview/components/ThemePreviewCanvasSections.d.ts +82 -0
- package/dist/types/features/themePreview/components/ThemePreviewColorField.d.ts +10 -0
- package/dist/types/features/themePreview/components/ThemePreviewControls.d.ts +18 -0
- package/dist/types/features/themePreview/components/index.d.ts +3 -0
- package/dist/types/features/themePreview/components/themePreviewCanvas.icons.d.ts +3 -0
- package/dist/types/features/themePreview/components/themePreviewCanvas.shared.d.ts +121 -0
- package/dist/types/features/themePreview/configs/grid.d.ts +41 -0
- package/dist/types/features/themePreview/configs/index.d.ts +7 -0
- package/dist/types/features/themePreview/configs/presets.d.ts +1153 -0
- package/dist/types/features/themePreview/configs/previewStorage.d.ts +34 -0
- package/dist/types/features/themePreview/configs/settings.d.ts +271 -0
- package/dist/types/features/themePreview/configs/snackbar.d.ts +43 -0
- package/dist/types/features/themePreview/configs/surface.d.ts +6 -0
- package/dist/types/features/themePreview/configs/table.d.ts +47 -0
- package/dist/types/features/themePreview/dialogs/ThemePreviewDialog.d.ts +3 -0
- package/dist/types/features/themePreview/dialogs/index.d.ts +1 -0
- package/dist/types/features/themePreview/hooks/index.d.ts +1 -0
- package/dist/types/features/themePreview/hooks/useThemePreview.d.ts +60 -0
- package/dist/types/features/themePreview/index.d.ts +6 -0
- package/dist/types/features/themePreview/types/index.d.ts +1 -0
- package/dist/types/features/themePreview/types/themePreview.d.ts +44 -0
- package/dist/types/features/themePreview/utils/color.d.ts +14 -0
- package/dist/types/features/themePreview/utils/index.d.ts +4 -0
- package/dist/types/features/themePreview/utils/themePreviewDefinitions.d.ts +10 -0
- package/dist/types/features/themePreview/utils/themePreviewExport.d.ts +1091 -0
- package/dist/types/features/themePreview/utils/themePreviewSettings.d.ts +54 -0
- package/dist/types/layout/components/toggles/ThemePreviewToggle.d.ts +5 -0
- package/dist/types/types/OwpGridThemeTypes.d.ts +34 -0
- package/dist/types/types/OwpSettingsTypes.d.ts +9 -0
- package/dist/types/types/OwpTableThemeTypes.d.ts +16 -0
- package/dist/types/types/index.d.ts +3 -2
- package/dist/types/utils/treeGridUtil.d.ts +1 -0
- package/dist/utils/exceljsBrowser.js +45 -48
- package/dist/utils/exceljsBrowser.js.map +1 -1
- package/dist/utils/treeGridUtil.js +66 -66
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/features/themePreview.d.ts +3 -0
- package/features/themePreview.js +1 -0
- package/package.json +2 -1
|
@@ -1,304 +1,251 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { resolveOwpGridTheme as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"CP",
|
|
38
|
-
"CC"
|
|
39
|
-
], Ae = "owp-tree-grid-theme", Me = /* @__PURE__ */ d((e) => typeof e == "number" ? `${e}px` : e, "toTreeGridCssValue"), Z = /* @__PURE__ */ d(({
|
|
40
|
-
rowSuffix: e,
|
|
41
|
-
suffixes: n,
|
|
42
|
-
withChildren: M = !1
|
|
43
|
-
}) => cr.flatMap((w) => n.flatMap((A) => {
|
|
44
|
-
const E = `.${Ae}`, h = e ? ` .${w}${e}` : "", f = `${E}${h} .${w}${A}`;
|
|
45
|
-
return M ? [f, `${f} *`] : [f];
|
|
46
|
-
})).join(", "), "createTreeGridSelectors"), fr = Z({
|
|
47
|
-
suffixes: ["Main"],
|
|
48
|
-
withChildren: !0
|
|
49
|
-
}), pr = Z({
|
|
50
|
-
rowSuffix: "HeaderRow",
|
|
51
|
-
suffixes: ["CellHeader", "CellIndex", "GanttHeaderBase", "LevelButton"],
|
|
52
|
-
withChildren: !0
|
|
53
|
-
}), mr = Z({
|
|
54
|
-
rowSuffix: "HeaderRow",
|
|
55
|
-
suffixes: [
|
|
56
|
-
"CellHeader",
|
|
57
|
-
"CellIndex",
|
|
58
|
-
"EditHeaderInput",
|
|
59
|
-
"EditHeaderTextarea",
|
|
60
|
-
"ColorFocusedCellHeader",
|
|
61
|
-
"ColorHoveredCellHeader",
|
|
62
|
-
"ColorHoveredCellIndex",
|
|
63
|
-
"HeaderFocus",
|
|
64
|
-
"HeaderDrag"
|
|
65
|
-
]
|
|
66
|
-
}), Rr = {
|
|
67
|
-
[fr]: {
|
|
68
|
-
fontSize: "var(--owp-tree-grid-cell-font-size, 13px)",
|
|
69
|
-
fontWeight: "normal",
|
|
70
|
-
lineHeight: "16px"
|
|
71
|
-
},
|
|
72
|
-
[pr]: {
|
|
73
|
-
color: "var(--owp-tree-grid-header-color, #ffffff) !important",
|
|
74
|
-
fontSize: "var(--owp-tree-grid-header-font-size, 14px) !important",
|
|
75
|
-
fontWeight: "var(--owp-tree-grid-header-font-weight, normal) !important",
|
|
76
|
-
lineHeight: "16px"
|
|
77
|
-
},
|
|
78
|
-
[mr]: {
|
|
79
|
-
backgroundColor: "var(--owp-tree-grid-header-background-color, #586980) !important",
|
|
80
|
-
color: "var(--owp-tree-grid-header-color, #ffffff) !important"
|
|
81
|
-
}
|
|
82
|
-
}, Pr = /* @__PURE__ */ d(({
|
|
83
|
-
id: e = "treeGridWrapper",
|
|
84
|
-
containerStyle: n,
|
|
85
|
-
containerClassName: M,
|
|
86
|
-
className: w,
|
|
87
|
-
style: A,
|
|
88
|
-
height: E = "100%",
|
|
89
|
-
width: h = "100%",
|
|
90
|
-
layoutUrl: f,
|
|
91
|
-
dataUrl: Pe,
|
|
92
|
-
layoutOverrides: P,
|
|
93
|
-
data: i,
|
|
1
|
+
var Ze = Object.defineProperty;
|
|
2
|
+
var a = (r, l) => Ze(r, "name", { value: l, configurable: !0 });
|
|
3
|
+
import { jsxs as $e, jsx as L } 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 { resolveOwpGridTheme as er } from "../../constants/gridTheme.js";
|
|
5
|
+
import { resolveTreeGridColorNumber as _, TREEGRID_INPUT_CELL_COLOR as he, TREEGRID_CELL_HIGHLIGHT_COLOR as He } from "../../constants/treeGrid.js";
|
|
6
|
+
import { useGetCurrentSettings as rr } from "../../hooks/useOwpSettings.js";
|
|
7
|
+
import { useOwpTranslation as tr } from "../../hooks/useOwpTranslation.js";
|
|
8
|
+
import { useGetCurrentLanguage as or } from "../../hooks/useCurrentLanguage.js";
|
|
9
|
+
import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as Ae } from "../../utils/treeGridBodyRowsEvent.js";
|
|
10
|
+
import { getTreeGridPerfTimestamp as z, countTreeGridPerf as ke, logTreeGridPerf as Pe, measureTreeGridPerf as Se } from "./internal/utils/perf.js";
|
|
11
|
+
import { useRef as e, useState as Y, useMemo as nr, useEffect as O, useLayoutEffect as ir } from "react";
|
|
12
|
+
import sr from "@mui/material/GlobalStyles";
|
|
13
|
+
import { useOwpTreeGridOverlayFrame as ur } from "./internal/hooks/useOwpTreeGridOverlayFrame.js";
|
|
14
|
+
import { bindTreeGridEvents as lr, getTreeGridBodyDataCount as J, buildTreeGridInitializationOptions as ar, hasTreeGridDisplayDataRows as Ne, replaceTreeGridBodyData as cr, TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS as dr } from "./internal/treeGridRuntime.js";
|
|
15
|
+
import { applyTreeGridLayoutToGrid as fr } from "./internal/treeGridLayout.js";
|
|
16
|
+
import { OwpTreeGridLoadingOverlay as mr } from "./internal/OwpTreeGridLoadingOverlay.js";
|
|
17
|
+
import { OwpTreeGridNoDataOverlay as pr } from "./internal/OwpTreeGridNoDataOverlay.js";
|
|
18
|
+
import { resolveTreeGridColumnEditRuleLookup as Me, createTreeGridColumnEditRulesState as Rr, syncTreeGridColumnEditRules as Tr } from "./internal/treeGridColumnEditRules.js";
|
|
19
|
+
import { createTreeGridThemeContainerStyle as yr, TREE_GRID_THEME_WRAPPER_CLASS as Gr, treeGridThemeStyles as gr } from "./internal/treeGridTheme.js";
|
|
20
|
+
import { isEmpty as w } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
|
|
21
|
+
import { delay as vr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/delay.js";
|
|
22
|
+
import { isEqual as xe } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
|
|
23
|
+
import { omit as Cr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
|
|
24
|
+
const zr = /* @__PURE__ */ a(({
|
|
25
|
+
id: r = "treeGridWrapper",
|
|
26
|
+
containerStyle: l,
|
|
27
|
+
containerClassName: Ve,
|
|
28
|
+
className: je,
|
|
29
|
+
style: qe,
|
|
30
|
+
height: K = "100%",
|
|
31
|
+
width: Q = "100%",
|
|
32
|
+
layoutUrl: We,
|
|
33
|
+
layoutData: Fe,
|
|
34
|
+
dataUrl: ze,
|
|
35
|
+
layoutOverrides: h,
|
|
36
|
+
data: o,
|
|
94
37
|
useDataUrl: U,
|
|
95
|
-
onSelect:
|
|
96
|
-
onRowClick:
|
|
97
|
-
onRowAdd:
|
|
98
|
-
onRowDelete:
|
|
99
|
-
onRowUndelete:
|
|
100
|
-
onRowChange:
|
|
101
|
-
onClickButton:
|
|
102
|
-
onSave:
|
|
103
|
-
onReady:
|
|
104
|
-
onAfterValueChanged:
|
|
105
|
-
columnEditRules:
|
|
106
|
-
highlightEditableCells:
|
|
107
|
-
highlightChangedCells:
|
|
108
|
-
loading:
|
|
109
|
-
showLoading:
|
|
38
|
+
onSelect: X,
|
|
39
|
+
onRowClick: Z,
|
|
40
|
+
onRowAdd: $,
|
|
41
|
+
onRowDelete: ee,
|
|
42
|
+
onRowUndelete: re,
|
|
43
|
+
onRowChange: te,
|
|
44
|
+
onClickButton: oe,
|
|
45
|
+
onSave: ne,
|
|
46
|
+
onReady: ie,
|
|
47
|
+
onAfterValueChanged: se,
|
|
48
|
+
columnEditRules: m,
|
|
49
|
+
highlightEditableCells: ue = !0,
|
|
50
|
+
highlightChangedCells: le = !0,
|
|
51
|
+
loading: Ye,
|
|
52
|
+
showLoading: n = !0
|
|
110
53
|
}) => {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
54
|
+
var De, Be;
|
|
55
|
+
const { t: H } = tr(), A = rr(), k = (Be = (De = A == null ? void 0 : A.theme) == null ? void 0 : De.main) == null ? void 0 : Be.grid, i = e(null), ae = e(null), ce = e(null), P = e(null), S = e(h), de = e(o), N = e(
|
|
56
|
+
m
|
|
57
|
+
), M = e(
|
|
58
|
+
Me(m, {
|
|
59
|
+
hourMinuteInvalidText: H("Message.시간은 HH:mm 형식으로 입력해주세요.")
|
|
116
60
|
})
|
|
117
|
-
),
|
|
118
|
-
onSelect:
|
|
119
|
-
onRowClick:
|
|
120
|
-
onRowAdd:
|
|
121
|
-
onRowDelete:
|
|
122
|
-
onRowUndelete:
|
|
123
|
-
onRowChange:
|
|
124
|
-
onClickButton:
|
|
125
|
-
onSave:
|
|
126
|
-
onReady:
|
|
127
|
-
onAfterValueChanged:
|
|
128
|
-
}),
|
|
61
|
+
), fe = e({
|
|
62
|
+
onSelect: X,
|
|
63
|
+
onRowClick: Z,
|
|
64
|
+
onRowAdd: $,
|
|
65
|
+
onRowDelete: ee,
|
|
66
|
+
onRowUndelete: re,
|
|
67
|
+
onRowChange: te,
|
|
68
|
+
onClickButton: oe,
|
|
69
|
+
onSave: ne,
|
|
70
|
+
onReady: ie,
|
|
71
|
+
onAfterValueChanged: se
|
|
72
|
+
}), p = e(void 0), x = e(!1), C = e(void 0), E = e(void 0), b = e(
|
|
129
73
|
void 0
|
|
130
|
-
),
|
|
131
|
-
() =>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
74
|
+
), me = e(Rr()), Je = e(!1), R = e(0), c = e(null), T = e(void 0), y = e(void 0), pe = e(ue), Re = e(le), [V, Ke] = Y(!1), [Qe, G] = Y(!1), [Ue, Te] = Y(!1), D = or(), s = nr(
|
|
75
|
+
() => er(k),
|
|
76
|
+
[k]
|
|
77
|
+
), ye = e(
|
|
78
|
+
_(s.editable.backgroundColor) ?? _(he)
|
|
79
|
+
), Ge = e(
|
|
80
|
+
s.changed.backgroundColor ?? He
|
|
81
|
+
), ge = e(s.state.selectedCellBackgroundColor), ve = e(s.state.hoverCellBackgroundColor), Ce = e(D.id), Xe = n && o !== void 0 && V && E.current !== o, j = n && Ye === !0 || n && (Qe || Xe), q = !j && o !== void 0 && w(o) && !Ue, Ee = /* @__PURE__ */ a((t) => {
|
|
82
|
+
Te(Ne(t));
|
|
138
83
|
}, "syncHasDisplayDataRows");
|
|
139
|
-
|
|
140
|
-
hourMinuteInvalidText:
|
|
141
|
-
}),
|
|
142
|
-
onSelect:
|
|
143
|
-
onRowClick:
|
|
144
|
-
onRowAdd:
|
|
145
|
-
onRowDelete:
|
|
146
|
-
onRowUndelete:
|
|
147
|
-
onRowChange:
|
|
148
|
-
onClickButton:
|
|
149
|
-
onSave:
|
|
150
|
-
onReady:
|
|
151
|
-
onAfterValueChanged:
|
|
84
|
+
S.current = h, de.current = o, N.current = m, M.current = Me(m, {
|
|
85
|
+
hourMinuteInvalidText: H("Message.시간은 HH:mm 형식으로 입력해주세요.")
|
|
86
|
+
}), pe.current = ue, Re.current = le, ye.current = _(s.editable.backgroundColor) ?? _(he), Ge.current = s.changed.backgroundColor ?? He, ge.current = s.state.selectedCellBackgroundColor, ve.current = s.state.hoverCellBackgroundColor, fe.current = {
|
|
87
|
+
onSelect: X,
|
|
88
|
+
onRowClick: Z,
|
|
89
|
+
onRowAdd: $,
|
|
90
|
+
onRowDelete: ee,
|
|
91
|
+
onRowUndelete: re,
|
|
92
|
+
onRowChange: te,
|
|
93
|
+
onClickButton: oe,
|
|
94
|
+
onSave: ne,
|
|
95
|
+
onReady: ie,
|
|
96
|
+
onAfterValueChanged: se
|
|
152
97
|
};
|
|
153
|
-
const
|
|
154
|
-
visible:
|
|
155
|
-
containerRef:
|
|
156
|
-
treeGridInstanceRef:
|
|
157
|
-
debugId:
|
|
158
|
-
}),
|
|
98
|
+
const be = ur({
|
|
99
|
+
visible: j || q,
|
|
100
|
+
containerRef: ae,
|
|
101
|
+
treeGridInstanceRef: i,
|
|
102
|
+
debugId: r
|
|
103
|
+
}), B = /* @__PURE__ */ a(() => {
|
|
159
104
|
T.current !== void 0 && (window.clearTimeout(T.current), T.current = void 0);
|
|
160
|
-
}, "clearBindingLoadingHideTimeout"),
|
|
105
|
+
}, "clearBindingLoadingHideTimeout"), W = /* @__PURE__ */ a(() => {
|
|
161
106
|
y.current !== void 0 && (window.clearTimeout(y.current), y.current = void 0);
|
|
162
107
|
}, "clearBodyReloadStartTimeout");
|
|
163
|
-
|
|
164
|
-
const t = /* @__PURE__ */
|
|
165
|
-
var
|
|
166
|
-
((
|
|
108
|
+
O(() => {
|
|
109
|
+
const t = /* @__PURE__ */ a((u) => {
|
|
110
|
+
var d;
|
|
111
|
+
((d = u.detail) == null ? void 0 : d.gridId) === r && Te(Ne(i.current));
|
|
167
112
|
}, "handleBodyRowsChanged");
|
|
168
|
-
return window.addEventListener(
|
|
169
|
-
window.removeEventListener(
|
|
113
|
+
return window.addEventListener(Ae, t), () => {
|
|
114
|
+
window.removeEventListener(Ae, t);
|
|
170
115
|
};
|
|
171
|
-
}, [
|
|
172
|
-
|
|
173
|
-
}, [
|
|
116
|
+
}, [r]), O(() => {
|
|
117
|
+
n || (W(), B(), c.current = null, G(!1));
|
|
118
|
+
}, [n]), O(() => {
|
|
174
119
|
var t;
|
|
175
|
-
if (
|
|
176
|
-
return
|
|
177
|
-
id:
|
|
178
|
-
latestEventHandlersRef:
|
|
179
|
-
highlightEditableCellsRef:
|
|
180
|
-
highlightChangedCellsRef:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
120
|
+
if (D.id !== Ce.current && !w(i.current) && ((t = i.current) == null || t.Dispose(), i.current = null, Ce.current = D.id), !!w(i.current))
|
|
121
|
+
return lr({
|
|
122
|
+
id: r,
|
|
123
|
+
latestEventHandlersRef: fe,
|
|
124
|
+
highlightEditableCellsRef: pe,
|
|
125
|
+
highlightChangedCellsRef: Re,
|
|
126
|
+
editableCellBackgroundColorValueRef: ye,
|
|
127
|
+
changedCellBackgroundColorRef: Ge,
|
|
128
|
+
selectedCellBackgroundColorRef: ge,
|
|
129
|
+
hoverCellBackgroundColorRef: ve,
|
|
130
|
+
treeGridInstanceRef: i,
|
|
131
|
+
treeGridInitStartedAtRef: ce,
|
|
132
|
+
latestLayoutOverridesRef: S,
|
|
133
|
+
appliedLayoutOverridesRef: C,
|
|
134
|
+
appliedBodyDataPropRef: E,
|
|
135
|
+
latestColumnEditRulesRef: N,
|
|
136
|
+
latestColumnEditRuleLookupRef: M,
|
|
137
|
+
appliedColumnEditRulesRef: b,
|
|
138
|
+
columnEditRulesStateRef: me,
|
|
139
|
+
hasAppliedInitialLayoutRef: Je,
|
|
140
|
+
syncHasDisplayDataRows: Ee,
|
|
141
|
+
setIsTreeGridReady: Ke
|
|
142
|
+
}), ce.current = z(), ke(r, "init"), Pe(r, "TreeGrid init start", {
|
|
194
143
|
useDataUrl: !!U,
|
|
195
|
-
bodyRowCount:
|
|
144
|
+
bodyRowCount: J(o)
|
|
196
145
|
}), window.TreeGrid(
|
|
197
|
-
|
|
198
|
-
id:
|
|
199
|
-
layoutUrl:
|
|
200
|
-
|
|
201
|
-
|
|
146
|
+
ar({
|
|
147
|
+
id: r,
|
|
148
|
+
layoutUrl: We,
|
|
149
|
+
layoutData: Fe,
|
|
150
|
+
dataUrl: ze,
|
|
151
|
+
bodyData: o,
|
|
202
152
|
useDataUrl: U,
|
|
203
|
-
width:
|
|
204
|
-
height:
|
|
205
|
-
languageId:
|
|
153
|
+
width: Q,
|
|
154
|
+
height: K,
|
|
155
|
+
languageId: D.id
|
|
206
156
|
}),
|
|
207
|
-
|
|
208
|
-
|
|
157
|
+
r,
|
|
158
|
+
r
|
|
209
159
|
), () => {
|
|
210
|
-
|
|
211
|
-
var
|
|
212
|
-
(
|
|
160
|
+
vr(() => {
|
|
161
|
+
var u;
|
|
162
|
+
(u = i.current) == null || u.Dispose();
|
|
213
163
|
}, 200);
|
|
214
164
|
};
|
|
215
|
-
}, []),
|
|
216
|
-
const t =
|
|
217
|
-
if (
|
|
165
|
+
}, []), ir(() => {
|
|
166
|
+
const t = i.current, u = S.current, g = de.current, d = N.current;
|
|
167
|
+
if (w(t) || !V)
|
|
218
168
|
return;
|
|
219
|
-
const
|
|
220
|
-
if (!(!
|
|
221
|
-
if (
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
disableBodyReload: !!
|
|
169
|
+
const Ie = C.current !== u && !xe(C.current, u), I = E.current !== g && (!x.current || p.current !== g), Le = b.current !== d && !xe(b.current, d);
|
|
170
|
+
if (!(!Ie && !I && !Le)) {
|
|
171
|
+
if (Ie) {
|
|
172
|
+
const f = z();
|
|
173
|
+
fr(t, u, I), C.current = u, Se(r, "apply layout", f, {
|
|
174
|
+
disableBodyReload: !!I
|
|
225
175
|
});
|
|
226
176
|
}
|
|
227
|
-
if (
|
|
228
|
-
const
|
|
229
|
-
const
|
|
230
|
-
y.current = void 0,
|
|
231
|
-
bodyRowCount:
|
|
232
|
-
}),
|
|
233
|
-
if (R.current !==
|
|
177
|
+
if (I) {
|
|
178
|
+
const f = R.current + 1, _e = /* @__PURE__ */ a(() => {
|
|
179
|
+
const v = p.current;
|
|
180
|
+
y.current = void 0, P.current = z(), ke(r, "reload"), Pe(r, "ReloadBody start", {
|
|
181
|
+
bodyRowCount: J(v)
|
|
182
|
+
}), cr(t, v, () => {
|
|
183
|
+
if (R.current !== f)
|
|
234
184
|
return;
|
|
235
|
-
|
|
236
|
-
bodyRowCount:
|
|
237
|
-
}),
|
|
238
|
-
const
|
|
239
|
-
if (!
|
|
240
|
-
|
|
185
|
+
E.current = v, Ee(t), Se(r, "ReloadBody end", P.current, {
|
|
186
|
+
bodyRowCount: J(v)
|
|
187
|
+
}), P.current = null, p.current === v && (p.current = void 0, x.current = !1);
|
|
188
|
+
const Oe = c.current;
|
|
189
|
+
if (!n || Oe === null) {
|
|
190
|
+
c.current = null, G(!1);
|
|
241
191
|
return;
|
|
242
192
|
}
|
|
243
|
-
const
|
|
193
|
+
const we = Math.max(
|
|
244
194
|
0,
|
|
245
|
-
|
|
195
|
+
dr - (Date.now() - Oe)
|
|
246
196
|
);
|
|
247
|
-
if (
|
|
248
|
-
|
|
197
|
+
if (B(), we === 0) {
|
|
198
|
+
c.current = null, G(!1);
|
|
249
199
|
return;
|
|
250
200
|
}
|
|
251
201
|
T.current = window.setTimeout(() => {
|
|
252
|
-
R.current ===
|
|
253
|
-
},
|
|
202
|
+
R.current === f && (T.current = void 0, c.current = null, G(!1));
|
|
203
|
+
}, we);
|
|
254
204
|
});
|
|
255
205
|
}, "runBodyReload");
|
|
256
|
-
R.current =
|
|
257
|
-
R.current ===
|
|
258
|
-
}, 0)) :
|
|
206
|
+
R.current = f, p.current = g, x.current = !0, n && g !== void 0 ? (W(), B(), c.current = Date.now(), G(!0), y.current = window.setTimeout(() => {
|
|
207
|
+
R.current === f && _e();
|
|
208
|
+
}, 0)) : _e();
|
|
259
209
|
}
|
|
260
|
-
|
|
210
|
+
Le && (Tr(
|
|
261
211
|
t,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
),
|
|
212
|
+
M.current,
|
|
213
|
+
me.current
|
|
214
|
+
), b.current = d);
|
|
265
215
|
}
|
|
266
|
-
}, [
|
|
267
|
-
|
|
216
|
+
}, [V, h, o, m, n, r]), O(() => () => {
|
|
217
|
+
W(), B();
|
|
268
218
|
}, []);
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
...n
|
|
278
|
-
};
|
|
279
|
-
return (s || q) && (Q.position = n != null && n.position && n.position !== "static" ? n.position : "relative", Q.isolation = "isolate"), /* @__PURE__ */ ke(
|
|
219
|
+
const F = yr({
|
|
220
|
+
width: Q,
|
|
221
|
+
height: K,
|
|
222
|
+
treeGridTheme: s,
|
|
223
|
+
gridThemeConfig: k,
|
|
224
|
+
containerStyle: l
|
|
225
|
+
});
|
|
226
|
+
return (n || q) && (F.position = l != null && l.position && l.position !== "static" ? l.position : "relative", F.isolation = "isolate"), /* @__PURE__ */ $e(
|
|
280
227
|
"div",
|
|
281
228
|
{
|
|
282
|
-
ref:
|
|
283
|
-
className: [
|
|
284
|
-
style:
|
|
229
|
+
ref: ae,
|
|
230
|
+
className: [Gr, Ve].filter(Boolean).join(" "),
|
|
231
|
+
style: F,
|
|
285
232
|
children: [
|
|
286
|
-
/* @__PURE__ */ L(
|
|
287
|
-
/* @__PURE__ */ L("div", { id:
|
|
233
|
+
/* @__PURE__ */ L(sr, { styles: gr }),
|
|
234
|
+
/* @__PURE__ */ L("div", { id: r, className: je, style: Cr(qe, ["height", "width"]) }),
|
|
288
235
|
/* @__PURE__ */ L(
|
|
289
|
-
|
|
236
|
+
pr,
|
|
290
237
|
{
|
|
291
238
|
visible: q,
|
|
292
|
-
message:
|
|
293
|
-
overlayFrame:
|
|
239
|
+
message: H("Message.조회된 결과가 없습니다."),
|
|
240
|
+
overlayFrame: be
|
|
294
241
|
}
|
|
295
242
|
),
|
|
296
|
-
/* @__PURE__ */ L(
|
|
243
|
+
/* @__PURE__ */ L(mr, { visible: j, overlayFrame: be })
|
|
297
244
|
]
|
|
298
245
|
}
|
|
299
246
|
);
|
|
300
247
|
}, "OwpTreeGrid");
|
|
301
248
|
export {
|
|
302
|
-
|
|
249
|
+
zr as OwpTreeGrid
|
|
303
250
|
};
|
|
304
251
|
//# sourceMappingURL=OwpTreeGrid.js.map
|