@owp/core 2.5.49 → 2.5.51
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/index16.js +4 -4
- package/dist/_virtual/index17.js +4 -4
- package/dist/_virtual/index18.js +4 -4
- package/dist/_virtual/index19.js +4 -4
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/components/OwpQuerySelector/OwpQuerySelector.js +80 -74
- package/dist/components/OwpQuerySelector/OwpQuerySelector.js.map +1 -1
- package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +362 -348
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +362 -316
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/contexts/OwpAppContext.js.map +1 -1
- package/dist/exceljs.js +5 -0
- package/dist/exceljs.js.map +1 -0
- package/dist/hooks/useCurrentUser.js.map +1 -1
- package/dist/hooks/useFormDataUploadMutation.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/node_modules/.pnpm/inko@1.1.1/node_modules/inko/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/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/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
- package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +1 -1
- package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +2 -2
- package/dist/types/components/OwpQuerySelector/types/index.d.ts +1 -1
- package/dist/types/components/OwpQuerySelector/types/types.d.ts +14 -13
- package/dist/types/components/OwpTable/OwpFieldTable.d.ts +6 -7
- package/dist/types/components/OwpTabs/OwpTab.d.ts +1 -1
- package/dist/types/contexts/OwpAppContext.d.ts +10 -0
- package/dist/types/exceljs.d.ts +3 -0
- package/dist/types/hooks/useCurrentUser.d.ts +5 -2
- package/dist/types/hooks/useFormDataUploadMutation.d.ts +9 -3
- package/dist/types/hooks/useNavigation.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types/OwpApiTypes.d.ts +27 -0
- package/dist/types/types/OwpDialogTypes.d.ts +16 -0
- package/dist/types/types/OwpExcelTypes.d.ts +5 -0
- package/dist/types/types/OwpRouteTypes.d.ts +10 -0
- package/dist/types/types/index.d.ts +8 -2
- package/dist/types/utils/fetchFile.d.ts +1 -1
- package/dist/types/utils/internal/exceljsBrowser.d.ts +1 -2
- package/dist/types/utils/treeGridUtil.d.ts +21 -7
- package/dist/utils/internal/exceljsBrowser.js.map +1 -1
- package/dist/utils/treeGridUtil.js +103 -85
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/dist/utils.js +51 -49
- package/exceljs.d.ts +3 -0
- package/exceljs.js +1 -0
- package/package.json +3 -1
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { createFormDataBody, type FormDataUploadBody, type FormDataUploadParams, type TAdditionalFields } from '@/utils/createFormDataBody';
|
|
2
2
|
export type { FormDataFieldValue, FormDataUploadBody, FormDataUploadParams, TAdditionalFields, } from '@/utils/createFormDataBody';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/**
|
|
4
|
+
* FormData upload adapter가 호출할 수 있는 mutation 객체
|
|
5
|
+
*/
|
|
6
|
+
export interface FormDataUploadMutationLike<TVariables = never, TMutateOptions = never> {
|
|
7
|
+
/** mutation variables를 받아 mutate 실행 */
|
|
8
|
+
mutate: (variables: TVariables, options?: TMutateOptions) => void;
|
|
9
|
+
/** mutation 진행 상태 */
|
|
10
|
+
isPending?: boolean;
|
|
11
|
+
}
|
|
6
12
|
type FormDataUploadMutationMutateParameters<TMutation extends FormDataUploadMutationLike> = Parameters<TMutation['mutate']>;
|
|
7
13
|
type FormDataUploadMutationVariables<TMutation extends FormDataUploadMutationLike> = FormDataUploadMutationMutateParameters<TMutation>[0];
|
|
8
14
|
type FormDataUploadMutateOptions<TMutation extends FormDataUploadMutationLike> = FormDataUploadMutationMutateParameters<TMutation>[1];
|
|
@@ -2,7 +2,7 @@ import type { OwpNavItemType } from '@/types/OwpNavigationTypes';
|
|
|
2
2
|
/**
|
|
3
3
|
* storage-backed navigation 목록 조회 Hook
|
|
4
4
|
*/
|
|
5
|
-
export declare const useGetNavigationList: () => OwpNavItemType[];
|
|
5
|
+
export declare const useGetNavigationList: () => OwpNavItemType[] | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* storage-backed navigation 목록 setter Hook
|
|
8
8
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -45,4 +45,5 @@ export * from './components/OwpTreeGrid';
|
|
|
45
45
|
export * from './components/OwpTreeGrid/OwpTreeGridToolbar';
|
|
46
46
|
export * from './components/OwpZoomImageSlider/OwpZoomImageSlider';
|
|
47
47
|
export * from './components/OwpYesNoSelector';
|
|
48
|
+
export type { OwpSelectorBaseChangeEvent, OwpSelectorBaseOption, } from './components/OwpSelectorBase/types';
|
|
48
49
|
export type { OwpFlatNavItemType, OwpNavBadgeType, OwpNavPermission, OwpNavItemType, OwpPermissionFlag, } from './types/OwpNavigationTypes';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OWP API 공통 응답 envelope
|
|
3
|
+
*/
|
|
4
|
+
export interface OwpApiResponse<TData = unknown> {
|
|
5
|
+
/** 서버 처리 결과 코드 */
|
|
6
|
+
resultCode?: string;
|
|
7
|
+
/** 서버 처리 결과 메시지 */
|
|
8
|
+
resultMessage?: string;
|
|
9
|
+
/** 단일 데이터 또는 목록 데이터 */
|
|
10
|
+
resultData?: TData;
|
|
11
|
+
/** 일부 legacy API의 목록 데이터 */
|
|
12
|
+
resultDataList?: unknown[];
|
|
13
|
+
/** API별 부가 응답 필드 */
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* resultData에 row 목록을 담는 OWP API 응답
|
|
18
|
+
*/
|
|
19
|
+
export type OwpApiListResponse<TRow = unknown> = OwpApiResponse<TRow[]>;
|
|
20
|
+
/**
|
|
21
|
+
* resultData에 단일 객체를 담는 OWP API 응답
|
|
22
|
+
*/
|
|
23
|
+
export type OwpApiSingleResponse<TData = unknown> = OwpApiResponse<TData>;
|
|
24
|
+
/**
|
|
25
|
+
* mutation 결과로 반환되는 OWP API 응답
|
|
26
|
+
*/
|
|
27
|
+
export type OwpApiMutationResponse<TData = unknown> = OwpApiResponse<TData>;
|
|
@@ -54,6 +54,22 @@ export interface DialogProps<TPayload = void, TResult = void> {
|
|
|
54
54
|
* `useOwpDialogs.open`으로 render할 dialog component 타입
|
|
55
55
|
*/
|
|
56
56
|
export type DialogComponent<TPayload = void, TResult = void> = ComponentType<DialogProps<TPayload, TResult>>;
|
|
57
|
+
/**
|
|
58
|
+
* Dialog component에서 payload 타입 추출
|
|
59
|
+
*/
|
|
60
|
+
export type DialogPayloadOf<TComponent> = TComponent extends ComponentType<infer TProps> ? TProps extends {
|
|
61
|
+
payload: infer TPayload;
|
|
62
|
+
} ? TPayload : never : never;
|
|
63
|
+
/**
|
|
64
|
+
* Dialog component에서 close result 타입 추출
|
|
65
|
+
*/
|
|
66
|
+
export type DialogResultOf<TComponent> = TComponent extends ComponentType<infer TProps> ? TProps extends {
|
|
67
|
+
onClose: (result?: infer TResult) => Promise<void>;
|
|
68
|
+
} ? TResult : never : never;
|
|
69
|
+
/**
|
|
70
|
+
* Dialog open promise result 타입 추출
|
|
71
|
+
*/
|
|
72
|
+
export type DialogOpenResultOf<TComponent> = DialogResultOf<TComponent> | undefined;
|
|
57
73
|
/**
|
|
58
74
|
* alert dialog open 함수 타입
|
|
59
75
|
*/
|
|
@@ -30,3 +30,13 @@ export type OwpRouteConfigType = {
|
|
|
30
30
|
/** route group base path */
|
|
31
31
|
path?: string;
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* `import.meta.glob`으로 읽은 route config module shape
|
|
35
|
+
*/
|
|
36
|
+
export interface OwpRouteConfigModule {
|
|
37
|
+
default: OwpRouteConfigType | OwpRouteConfigType[];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* route config module map
|
|
41
|
+
*/
|
|
42
|
+
export type OwpRouteConfigModuleMap = Record<string, OwpRouteConfigModule>;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import './OwpMuiThemeTypes';
|
|
2
|
-
export type {
|
|
2
|
+
export type { OwpApiListResponse, OwpApiMutationResponse, OwpApiResponse, OwpApiSingleResponse, } from './OwpApiTypes';
|
|
3
|
+
export type { AlertDialogPayload, AlertDialogProps, AlertOptions, CloseDialog, ConfirmDialogPayload, ConfirmDialogProps, ConfirmOptions, DialogComponent, DialogHook, DialogOpenResultOf, DialogPayloadOf, DialogProviderProps, DialogProps, DialogResultOf, OpenAlertDialog, OpenConfirmDialog, OpenDialog, OpenDialogOptions, OpenPromptDialog, PromptDialogPayload, PromptDialogProps, PromptOptions, } from './OwpDialogTypes';
|
|
4
|
+
export type { OwpExcelJSBrowserModule } from './OwpExcelTypes';
|
|
3
5
|
export type { OwpGridBodyThemeConfigType, OwpGridCellThemeConfigType, OwpGridChangedThemeConfigType, OwpGridEditableThemeConfigType, OwpGridHeaderThemeConfigType, OwpGridRowThemeConfigType, OwpGridStateThemeConfigType, OwpGridThemeConfigType, } from './OwpGridThemeTypes';
|
|
4
6
|
export type { OwpTableCellThemeConfigType, OwpTableHeaderThemeConfigType, OwpTableThemeConfigType, OwpTableVariantThemeConfigType, } from './OwpTableThemeTypes';
|
|
5
7
|
export type { OwpSnackbarThemeConfigType, OwpSnackbarVariantThemeConfigType, OwpSnackbarVariantType, OwpThemeType, OwpThemesType, OwpSettingsConfigType, } from './OwpSettingsTypes';
|
|
6
8
|
export type { OwpFlatNavItemType, OwpNavBadgeType, OwpNavPermission, OwpNavItemType, OwpPermissionFlag, } from './OwpNavigationTypes';
|
|
7
|
-
export type { OwpRouteConfigType, OwpRouteItemType, OwpRoutesType } from './OwpRouteTypes';
|
|
9
|
+
export type { OwpRouteConfigModule, OwpRouteConfigModuleMap, OwpRouteConfigType, OwpRouteItemType, OwpRoutesType, } from './OwpRouteTypes';
|
|
8
10
|
export type { AnyFormFieldType, ThemeFormConfigTypes } from './ThemeFormConfigTypes';
|
|
11
|
+
export type { CurrentUser } from '../hooks/useCurrentUser';
|
|
12
|
+
export type { CurrentUserSeq } from '../hooks/useCurrentUserSeq';
|
|
13
|
+
export type { OwpAppConfigs, OwpAppEnv, OwpAppSlotProps, OwpAppSlots, OwpLogoSlotProps, OwpPageSkeletonItem, OwpPageSkeletonItemType, OwpPageSkeletonSpec, OwpPageSkeletonSpecMap, OwpPageSkeletonSpecModule, OwpRouteLoadingConfig, OwpRouteLoadingSlotProps, } from '../contexts/OwpAppContext';
|
|
14
|
+
export type { OwpSelectorBaseChangeEvent, OwpSelectorBaseOption, } from '../components/OwpSelectorBase/types';
|
|
@@ -8,5 +8,5 @@ interface FetchFileOptions {
|
|
|
8
8
|
* @param seq 파일 시퀀스
|
|
9
9
|
* @param options 응답 포맷 옵션
|
|
10
10
|
*/
|
|
11
|
-
export declare const fetchFile: (seq?: string, options?: FetchFileOptions) => Promise<string |
|
|
11
|
+
export declare const fetchFile: (seq?: string, options?: FetchFileOptions) => Promise<string | ArrayBuffer | Blob>;
|
|
12
12
|
export {};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { TREEGRID_CELL_CHANGED_CLASS, TREEGRID_CELL_HIGHLIGHT_COLOR, TREEGRID_INPUT_CELL_COLOR, TREEGRID_WARNING_CELL_COLOR } from '@/constants/treeGrid';
|
|
2
2
|
import { type OwpTreeGridSelectedRowsResolveOptions, type OwpTreeGridSelectionScope } from '@/components/OwpTreeGrid/internal/treeGridSelection';
|
|
3
3
|
export { TREEGRID_CELL_CHANGED_CLASS, TREEGRID_CELL_HIGHLIGHT_COLOR, TREEGRID_INPUT_CELL_COLOR, TREEGRID_WARNING_CELL_COLOR, };
|
|
4
|
-
type TreeGridInsertPosition = 'above' | 'below' | 'top' | 'last';
|
|
5
|
-
type
|
|
4
|
+
export type TreeGridInsertPosition = 'above' | 'below' | 'top' | 'last';
|
|
5
|
+
export type TreeGridRowInitialValues<T> = Partial<T> | (Partial<T> & Record<string, unknown>);
|
|
6
|
+
export type TreeGridAddRowOptions<T extends object = Record<string, unknown>> = {
|
|
6
7
|
canSelect?: boolean;
|
|
7
8
|
insertPosition?: TreeGridInsertPosition;
|
|
8
9
|
parent?: TRow & T;
|
|
9
10
|
anchorRow?: TRow & T;
|
|
10
|
-
initialValues?: T
|
|
11
|
+
initialValues?: TreeGridRowInitialValues<T>;
|
|
11
12
|
editableColumns?: readonly string[];
|
|
12
13
|
};
|
|
13
|
-
type TreeGridColumnVisibilityOptions = {
|
|
14
|
+
export type TreeGridColumnVisibilityOptions = {
|
|
14
15
|
targetKey: string;
|
|
15
16
|
canVisible: boolean;
|
|
16
17
|
};
|
|
@@ -151,7 +152,19 @@ export declare const getTreeGridById: (gridId: string) => TTGrid;
|
|
|
151
152
|
* TreeGrid 데이터 행 목록 조회
|
|
152
153
|
* @param gridId TreeGrid 인스턴스 ID
|
|
153
154
|
*/
|
|
154
|
-
export declare
|
|
155
|
+
export declare function getTreeGridDataRowsById<T extends readonly unknown[]>(gridId: string): T;
|
|
156
|
+
export declare function getTreeGridDataRowsById<T extends object = Record<string, unknown>>(gridId: string): Array<TRow & T>;
|
|
157
|
+
/**
|
|
158
|
+
* TreeGrid 현재 row map 조회
|
|
159
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
160
|
+
*/
|
|
161
|
+
export declare const getTreeGridRowsById: <T extends object = Record<string, unknown>>(gridId: string) => Record<string, (TRow & T) | undefined>;
|
|
162
|
+
/**
|
|
163
|
+
* TreeGrid 현재 row 조회
|
|
164
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
165
|
+
* @param rowId 조회할 row id
|
|
166
|
+
*/
|
|
167
|
+
export declare const getTreeGridRowById: <T extends object = Record<string, unknown>>(gridId: string, rowId: string | number | null | undefined) => TRow & T;
|
|
155
168
|
/**
|
|
156
169
|
* TreeGrid Body 데이터 교체 후 재로드
|
|
157
170
|
* @param gridId TreeGrid 인스턴스 ID
|
|
@@ -168,7 +181,7 @@ export declare const reloadTreeGridBodyById: (gridId: string, rows: unknown) =>
|
|
|
168
181
|
* @param options.initialValues 신규 행 초기값
|
|
169
182
|
* @param options.editableColumns 신규 행 셀 단위 편집 가능 컬럼
|
|
170
183
|
*/
|
|
171
|
-
export declare const addTreeGridRowById: <T
|
|
184
|
+
export declare const addTreeGridRowById: <T extends object = Record<string, unknown>>(gridId: string, options?: TreeGridAddRowOptions<T>) => void;
|
|
172
185
|
/**
|
|
173
186
|
* TreeGrid 필수 셀 Error 검증
|
|
174
187
|
* @param gridId TreeGrid 인스턴스 ID
|
|
@@ -194,7 +207,8 @@ export declare const exportTreeGridToExcelById: (gridId: string, title?: string)
|
|
|
194
207
|
* @param gridId TreeGrid 인스턴스 ID
|
|
195
208
|
* @param options 선택 행 반환 옵션
|
|
196
209
|
*/
|
|
197
|
-
export declare
|
|
210
|
+
export declare function getTreeGridSelectedRowsById<T extends readonly unknown[]>(gridId: string, options?: TreeGridSelectedRowsOptions): T;
|
|
211
|
+
export declare function getTreeGridSelectedRowsById<T extends object = Record<string, unknown>>(gridId: string, options?: TreeGridSelectedRowsOptions): Array<TRow & T>;
|
|
198
212
|
/**
|
|
199
213
|
* TreeGrid 컬럼 표시 여부 변경
|
|
200
214
|
* @param gridId TreeGrid 인스턴스 ID
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exceljsBrowser.js","sources":["../../../src/utils/internal/exceljsBrowser.ts"],"sourcesContent":null,"names":["EXCELJS_SCRIPT_SELECTOR","excelJSBrowserPromise","getExcelJSGlobal","__name","createExcelJSGlobalMissingError","loadExcelJSBrowserSource","loadExcelJSBrowserScript","resolve","reject","loadedExcelJS","handleLoad","resolvedExcelJS","handleError","existingScript","scriptElement","scriptParentElement","source","objectUrl","cleanupObjectUrl","error","loadExcelJSBrowser"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"exceljsBrowser.js","sources":["../../../src/utils/internal/exceljsBrowser.ts"],"sourcesContent":null,"names":["EXCELJS_SCRIPT_SELECTOR","excelJSBrowserPromise","getExcelJSGlobal","__name","createExcelJSGlobalMissingError","loadExcelJSBrowserSource","loadExcelJSBrowserScript","resolve","reject","loadedExcelJS","handleLoad","resolvedExcelJS","handleError","existingScript","scriptElement","scriptParentElement","source","objectUrl","cleanupObjectUrl","error","loadExcelJSBrowser"],"mappings":";;AAMA,MAAMA,IAA0B;AAChC,IAAIC;AAGJ,MAAMC,IAAmB,gBAAAC,EAAA,MACvB,OAAO,SAAW,MAAc,SAAa,OAAyB,SAD/C,qBAInBC,IAAkC,gBAAAD,EAAA,MACtC,IAAI,MAAM,2CAA2C,GADf,oCAIlCE,IAA2B,gBAAAF,EAAA,aAC9B,MAAM,OAAO,uDAAoC,GAAG,SADtB,6BAI3BG,IAA2B,gBAAAH,EAAA,MAC/B,IAAI,QAAiC,CAACI,GAASC,MAAW;AACxD,QAAMC,IAAgBP,EAAA;AAEtB,MAAIO,GAAe;AACjB,IAAAF,EAAQE,CAAa;AACrB;AAAA,EACF;AAEA,MAAI,OAAO,WAAa,KAAa;AACnC,IAAAD,EAAOJ,GAAiC;AACxC;AAAA,EACF;AAEA,QAAMM,IAAa,gBAAAP,EAAA,MAAM;AACvB,UAAMQ,IAAkBT,EAAA;AAExB,QAAI,CAACS,GAAiB;AACpB,MAAAH,EAAOJ,GAAiC;AACxC;AAAA,IACF;AAEA,IAAAG,EAAQI,CAAe;AAAA,EACzB,GATmB,eAUbC,IAAc,gBAAAT,EAAA,MAAM;AACxB,IAAAK,EAAO,IAAI,MAAM,wCAAwC,CAAC;AAAA,EAC5D,GAFoB,gBAGdK,IAAiB,SAAS,cAAiCb,CAAuB;AAExF,MAAIa,GAAgB;AAClB,IAAAA,EAAe,iBAAiB,QAAQH,GAAY,EAAE,MAAM,IAAM,GAClEG,EAAe,iBAAiB,SAASD,GAAa,EAAE,MAAM,IAAM;AACpE;AAAA,EACF;AAEA,QAAME,IAAgB,SAAS,cAAc,QAAQ,GAC/CC,IAAsB,SAAS,QAAQ,SAAS,QAAQ,SAAS;AAEvE,MAAI,CAACA,GAAqB;AACxB,IAAAP,EAAOJ,GAAiC;AACxC;AAAA,EACF;AAEA,EAAKC,EAAA,EACF,KAAK,CAACW,MAAW;AAChB,UAAMC,IAAY,IAAI;AAAA,MACpB,IAAI,KAAK,CAACD,CAAM,GAAG;AAAA,QACjB,MAAM;AAAA,MAAA,CACP;AAAA,IAAA,GAEGE,IAAmB,gBAAAf,EAAA,MAAM;AAC7B,UAAI,gBAAgBc,CAAS;AAAA,IAC/B,GAFyB;AAIzB,IAAAH,EAAc,QAAQ,IACtBA,EAAc,QAAQ,mBAAmB,QACzCA,EAAc,MAAMG,GACpBH,EAAc;AAAA,MACZ;AAAA,MACA,MAAM;AACJ,QAAAI,EAAA,GACAR,EAAA;AAAA,MACF;AAAA,MACA,EAAE,MAAM,GAAA;AAAA,IAAK,GAEfI,EAAc;AAAA,MACZ;AAAA,MACA,MAAM;AACJ,QAAAI,EAAA,GACAN,EAAA;AAAA,MACF;AAAA,MACA,EAAE,MAAM,GAAA;AAAA,IAAK,GAEfG,EAAoB,OAAOD,CAAa;AAAA,EAC1C,CAAC,EACA,MAAM,CAACK,MAAU;AAChB,IAAAX,EAAOW,aAAiB,QAAQA,IAAQ,IAAI,MAAM,0CAA0C,CAAC;AAAA,EAC/F,CAAC;AACL,CAAC,GA9E8B,6BAiFpBC,IAAqB,gBAAAjB,EAAA,OAC3BF,MACHA,IAAwBK,EAAA,EACrB,MAAM,CAACa,MAAU;AAChB,QAAAlB,IAAwB,QAClBkB;AACR,CAAC,IAGElB,IATyB;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var l = (e, t) =>
|
|
3
|
-
import { TREEGRID_CELL_CHANGED_CLASS as
|
|
4
|
-
import { TREEGRID_INPUT_CELL_COLOR as
|
|
1
|
+
var Y = Object.defineProperty;
|
|
2
|
+
var l = (e, t) => Y(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { TREEGRID_CELL_CHANGED_CLASS as M, TREEGRID_CELL_HIGHLIGHT_COLOR as X } from "../constants/treeGrid.js";
|
|
4
|
+
import { TREEGRID_INPUT_CELL_COLOR as Vt, TREEGRID_WARNING_CELL_COLOR as Bt } from "../constants/treeGrid.js";
|
|
5
5
|
import { parseTreeGridXmlToJson as Q } from "../components/OwpTreeGrid/internal/treeGridLayout.js";
|
|
6
6
|
import { resolveTreeGridSelectedRows as J } from "../components/OwpTreeGrid/internal/treeGridSelection.js";
|
|
7
7
|
import { emitTreeGridBodyRowsChanged as D } from "./internal/treeGridBodyRowsEvent.js";
|
|
@@ -11,11 +11,11 @@ import { isPlainObject as h } from "../node_modules/.pnpm/es-toolkit@1.39.10/nod
|
|
|
11
11
|
import { get as ee } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
|
|
12
12
|
import { isEmpty as te } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
|
|
13
13
|
import { without as L } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/array/without.js";
|
|
14
|
-
const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(?::s{1,2})?$/, $ = "__owpAddedByAddTreeGridRowById", F = "__owpAddedRowEditableColumns", G = "__owpAddedRowHighlightColumns", K = "__owpAddedRowInitialValueKeys", I = "__owpAddedRowInitialValues", j = "__owpAddedRowBaselineValues", E = "__owpCellStyleBaselineValues",
|
|
14
|
+
const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(?::s{1,2})?$/, $ = "__owpAddedByAddTreeGridRowById", F = "__owpAddedRowEditableColumns", G = "__owpAddedRowHighlightColumns", K = "__owpAddedRowInitialValueKeys", I = "__owpAddedRowInitialValues", j = "__owpAddedRowBaselineValues", E = "__owpCellStyleBaselineValues", _ = "Selected", le = /* @__PURE__ */ l(({
|
|
15
15
|
label: e
|
|
16
16
|
}) => `${e} 필수 입력`, "DEFAULT_TREE_GRID_REQUIRED_CELL_MESSAGE_FACTORY"), ae = [
|
|
17
17
|
"added"
|
|
18
|
-
],
|
|
18
|
+
], y = /* @__PURE__ */ l((e) => A(e) ? e.filter((t) => typeof t == "string" && t !== "") : [], "normalizeTreeGridStringValues"), S = y, ie = y, ce = /* @__PURE__ */ l((e) => {
|
|
19
19
|
e && (e[$] = 1);
|
|
20
20
|
}, "markTreeGridRowAddedById"), de = /* @__PURE__ */ l((e) => {
|
|
21
21
|
const t = e == null ? void 0 : e[$];
|
|
@@ -75,7 +75,7 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
75
75
|
e == null ? void 0 : e[G]
|
|
76
76
|
), "getTreeGridAddedRowHighlightColumns"), ct = /* @__PURE__ */ l((e) => ie(
|
|
77
77
|
e == null ? void 0 : e[F]
|
|
78
|
-
), "getTreeGridAddedRowEditableColumns"),
|
|
78
|
+
), "getTreeGridAddedRowEditableColumns"), w = /* @__PURE__ */ l((e, t, r) => {
|
|
79
79
|
var a, i, c, d, o;
|
|
80
80
|
const n = ((a = e.GetType) == null ? void 0 : a.call(e, t, r)) || ((c = (i = e.Cols) == null ? void 0 : i[r]) == null ? void 0 : c.Type) || "", s = ((d = e.GetValue) == null ? void 0 : d.call(e, t, r)) ?? t[r];
|
|
81
81
|
if (n === "Enum" || n === "Select")
|
|
@@ -91,7 +91,7 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
91
91
|
const r = Object.fromEntries(
|
|
92
92
|
Object.keys(e.Cols ?? {}).map((n) => [
|
|
93
93
|
n,
|
|
94
|
-
|
|
94
|
+
w(e, t, n)
|
|
95
95
|
])
|
|
96
96
|
);
|
|
97
97
|
t[j] = r;
|
|
@@ -108,10 +108,10 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
108
108
|
}, "preserveTreeGridCellStyleBaseline"), he = /* @__PURE__ */ l((e, t) => {
|
|
109
109
|
var r;
|
|
110
110
|
return (r = e[E]) == null ? void 0 : r[t];
|
|
111
|
-
}, "getTreeGridCellStyleBaseline"),
|
|
111
|
+
}, "getTreeGridCellStyleBaseline"), ye = /* @__PURE__ */ l(async () => {
|
|
112
112
|
const { exportTreeGridExcel: e } = await import("./treeGridExportExcelUtil.js");
|
|
113
113
|
return e;
|
|
114
|
-
}, "loadExportTreeGridExcel"),
|
|
114
|
+
}, "loadExportTreeGridExcel"), _e = /* @__PURE__ */ l((e) => Object.values((e == null ? void 0 : e.Rows) ?? {}).filter((t) => t.Kind === "Data"), "getDataRows"), De = /* @__PURE__ */ l((e) => e != null && e.length ? e.map((t) => {
|
|
115
115
|
if (typeof t == "string") {
|
|
116
116
|
const n = t.trim();
|
|
117
117
|
return n ? { key: n } : null;
|
|
@@ -124,7 +124,7 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
124
124
|
label: typeof t.label == "string" ? t.label.trim() : void 0,
|
|
125
125
|
message: typeof t.message == "string" ? t.message : void 0
|
|
126
126
|
} : null;
|
|
127
|
-
}).filter((t) => !!t) : [], "normalizeTreeGridRequiredCellColumns"),
|
|
127
|
+
}).filter((t) => !!t) : [], "normalizeTreeGridRequiredCellColumns"), x = /* @__PURE__ */ l((e, t, r) => {
|
|
128
128
|
var s;
|
|
129
129
|
const n = (s = e.CanEdit) == null ? void 0 : s.call(e, t, r);
|
|
130
130
|
return n === 1 || n === "1" || n === !0;
|
|
@@ -133,7 +133,7 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
133
133
|
return n.length ? n.filter((s) => {
|
|
134
134
|
var a;
|
|
135
135
|
return !!((a = e.Cols) != null && a[s.key]);
|
|
136
|
-
}) : r.editableOnly ? Object.keys(e.Cols ?? {}).filter((s) => b(e, s) &&
|
|
136
|
+
}) : r.editableOnly ? Object.keys(e.Cols ?? {}).filter((s) => b(e, s) && x(e, t, s)).map((s) => ({ key: s })) : [];
|
|
137
137
|
}, "getTreeGridRequiredCellColumns"), Ie = /* @__PURE__ */ l((e, t) => {
|
|
138
138
|
var n, s, a;
|
|
139
139
|
if (t.label)
|
|
@@ -147,8 +147,8 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
147
147
|
const r = (a = (s = e.Cols) == null ? void 0 : s[t.key]) == null ? void 0 : a.Caption;
|
|
148
148
|
return r ? `${r}`.trim() : t.key;
|
|
149
149
|
}, "getTreeGridRequiredCellLabel"), Se = /* @__PURE__ */ l((e, t, r) => t.message ? t.message : (r ?? le)(e), "getTreeGridRequiredCellMessage"), be = /* @__PURE__ */ l((e) => e.trim() === "", "isBlankTreeGridRequiredCellValue"), Ve = /* @__PURE__ */ l((e, t, r) => {
|
|
150
|
-
!t || r.focusFirstError === !1 || (e.Focus(t.row, t.col), r.startEditFirstError === !0 &&
|
|
151
|
-
}, "focusFirstTreeGridRequiredCellError"), C = /* @__PURE__ */ l((e) => typeof e == "string" && se.test(e.trim()), "isTreeGridTimeDateFormat"),
|
|
150
|
+
!t || r.focusFirstError === !1 || (e.Focus(t.row, t.col), r.startEditFirstError === !0 && x(e, t.row, t.col) && e.StartEdit(t.row, t.col));
|
|
151
|
+
}, "focusFirstTreeGridRequiredCellError"), C = /* @__PURE__ */ l((e) => typeof e == "string" && se.test(e.trim()), "isTreeGridTimeDateFormat"), q = /* @__PURE__ */ l((e, t, r) => {
|
|
152
152
|
var a;
|
|
153
153
|
const n = t, s = (a = e.Cols) == null ? void 0 : a[r];
|
|
154
154
|
return (s == null ? void 0 : s.Type) === "Date" && (C(n[`${r}EditFormat`]) || C(n[`${r}Format`]) || C(s.EditFormat) || C(s.Format));
|
|
@@ -165,17 +165,17 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
165
165
|
}, "getTreeGridTimeDateDisplayValue"), Be = /* @__PURE__ */ l((e, t) => {
|
|
166
166
|
const r = { ...t };
|
|
167
167
|
return Object.keys(e.Cols ?? {}).forEach((n) => {
|
|
168
|
-
|
|
168
|
+
q(e, t, n) && (r[n] = z(e, t, n));
|
|
169
169
|
}), r;
|
|
170
170
|
}, "normalizeTreeGridExternalRow"), H = /* @__PURE__ */ l((e, t) => t.map((r) => Be(e, r)), "normalizeTreeGridExternalRows"), U = /* @__PURE__ */ l((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), Le = /* @__PURE__ */ l((e) => U(e.SelectingSingle), "isTreeGridSingleSelectionLayout"), ve = /* @__PURE__ */ l((e) => h(e) ? U(
|
|
171
|
-
e[
|
|
171
|
+
e[_]
|
|
172
172
|
) : !1, "isTreeGridSelectedInitialValue"), $e = /* @__PURE__ */ l((e) => {
|
|
173
173
|
if (!h(e))
|
|
174
174
|
return e;
|
|
175
175
|
const t = e;
|
|
176
|
-
return
|
|
176
|
+
return _ in t ? Object.fromEntries(
|
|
177
177
|
Object.entries(t).filter(
|
|
178
|
-
([r]) => r !==
|
|
178
|
+
([r]) => r !== _
|
|
179
179
|
)
|
|
180
180
|
) : e;
|
|
181
181
|
}, "omitTreeGridSelectedInitialValue"), Fe = /* @__PURE__ */ l((e, t) => {
|
|
@@ -220,7 +220,7 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
220
220
|
t[c] = d;
|
|
221
221
|
}), Ke(t, i);
|
|
222
222
|
}, "assignInitialRowValues"), Oe = /* @__PURE__ */ l((e, t, r) => {
|
|
223
|
-
const n =
|
|
223
|
+
const n = y(r);
|
|
224
224
|
if (!n.length)
|
|
225
225
|
return;
|
|
226
226
|
const s = t, a = [];
|
|
@@ -228,13 +228,13 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
228
228
|
var c;
|
|
229
229
|
(c = e.Cols) != null && c[i] && (s[`${i}CanEdit`] = 1, a.push(i));
|
|
230
230
|
}), a.length && (t[F] = a);
|
|
231
|
-
}, "assignEditableAddedRowColumns"),
|
|
231
|
+
}, "assignEditableAddedRowColumns"), we = /* @__PURE__ */ l((e) => ne.some((t) => e.startsWith(t)), "isTreeGridDataKey"), k = /* @__PURE__ */ l((e, t) => {
|
|
232
232
|
var r;
|
|
233
233
|
return !!((r = e == null ? void 0 : e.Cols) != null && r[t]);
|
|
234
|
-
}, "isTreeGridColumnDataKey"),
|
|
234
|
+
}, "isTreeGridColumnDataKey"), xe = /* @__PURE__ */ l((e) => e != null && e !== "", "hasTreeGridUploadValue"), qe = /* @__PURE__ */ l((e) => e === 0 || e === !1 || e === "0", "isHiddenTreeGridValue"), b = /* @__PURE__ */ l((e, t) => {
|
|
235
235
|
var r, n;
|
|
236
|
-
return !
|
|
237
|
-
}, "isVisibleTreeGridColumn"), N = /* @__PURE__ */ l((e) =>
|
|
236
|
+
return !qe((n = (r = e == null ? void 0 : e.Cols) == null ? void 0 : r[t]) == null ? void 0 : n.Visible);
|
|
237
|
+
}, "isVisibleTreeGridColumn"), N = /* @__PURE__ */ l((e) => y(
|
|
238
238
|
e == null ? void 0 : e[K]
|
|
239
239
|
), "getTreeGridAddedRowInitialValueKeys"), P = /* @__PURE__ */ l((e, t) => N(e).includes(t), "isTreeGridAddedRowInitialValueKey"), ze = /* @__PURE__ */ l((e, t) => {
|
|
240
240
|
const r = e == null ? void 0 : e[I];
|
|
@@ -245,7 +245,7 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
245
245
|
}, "getTreeGridAddedRowInitialValue"), Ue = /* @__PURE__ */ l((e, t) => {
|
|
246
246
|
var r;
|
|
247
247
|
return typeof t.id == "string" ? (r = e == null ? void 0 : e.Rows) == null ? void 0 : r[t.id] : null;
|
|
248
|
-
}, "getLiveTreeGridChangedRow"), W = /* @__PURE__ */ l((e, t, r, n) => !n || !k(e, r) || b(e, r) ? !1 : P(t, r), "shouldUseTreeGridAddedRowInitialValue"),
|
|
248
|
+
}, "getLiveTreeGridChangedRow"), W = /* @__PURE__ */ l((e, t, r, n) => !n || !k(e, r) || b(e, r) ? !1 : P(t, r), "shouldUseTreeGridAddedRowInitialValue"), g = /* @__PURE__ */ l((e, t, r, n, s) => W(e, r, n, s) && ze(r, n) ? He(r, n) : t[n], "resolveTreeGridChangeDataValue"), ke = /* @__PURE__ */ l((e, t, r, n = !1) => {
|
|
249
249
|
const s = L(Object.keys(e), ...t);
|
|
250
250
|
return n ? L(
|
|
251
251
|
[.../* @__PURE__ */ new Set([...s, ...N(r)])],
|
|
@@ -257,14 +257,14 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
257
257
|
r,
|
|
258
258
|
n,
|
|
259
259
|
s
|
|
260
|
-
), i =
|
|
260
|
+
), i = g(
|
|
261
261
|
e,
|
|
262
262
|
t,
|
|
263
263
|
r,
|
|
264
264
|
n,
|
|
265
265
|
s
|
|
266
266
|
);
|
|
267
|
-
return !
|
|
267
|
+
return !xe(i) && !(a && i === "") ? !1 : k(e, n) ? !s || b(e, n) || a : we(n) ? !0 : P(r, n);
|
|
268
268
|
}, "shouldIncludeTreeGridChangeDataKey"), v = /* @__PURE__ */ l((e, t, r, n = !1, s = !1) => {
|
|
269
269
|
const a = n ? Ue(e, t) : null;
|
|
270
270
|
return Object.fromEntries(
|
|
@@ -278,7 +278,7 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
278
278
|
)
|
|
279
279
|
).map((i) => [
|
|
280
280
|
i,
|
|
281
|
-
|
|
281
|
+
g(e, t, a, i, s)
|
|
282
282
|
])
|
|
283
283
|
);
|
|
284
284
|
}, "normalizeTreeGridChangeRow"), Pe = /* @__PURE__ */ l((e, t, r) => t.filter((n) => ee(n, r) === "1" && n.Deleted !== "1").map(
|
|
@@ -289,19 +289,32 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
289
289
|
return r;
|
|
290
290
|
const s = { ...r };
|
|
291
291
|
return Object.keys(r).forEach((a) => {
|
|
292
|
-
|
|
292
|
+
q(e, n, a) && (s[a] = z(e, n, a));
|
|
293
293
|
}), s;
|
|
294
|
-
}) : t, "normalizeTreeGridChangedRows"),
|
|
294
|
+
}) : t, "normalizeTreeGridChangedRows"), ge = /* @__PURE__ */ l((e) => {
|
|
295
295
|
var t;
|
|
296
296
|
try {
|
|
297
297
|
(t = e == null ? void 0 : e.EndEdit) == null || t.call(e, 1);
|
|
298
298
|
} catch {
|
|
299
299
|
}
|
|
300
|
-
}, "commitTreeGridActiveEdit"),
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
300
|
+
}, "commitTreeGridActiveEdit"), u = /* @__PURE__ */ l((e) => Grids[e], "getTreeGridById");
|
|
301
|
+
function ot(e) {
|
|
302
|
+
const t = u(e);
|
|
303
|
+
return t ? H(
|
|
304
|
+
t,
|
|
305
|
+
_e(t)
|
|
306
|
+
) : [];
|
|
307
|
+
}
|
|
308
|
+
l(ot, "getTreeGridDataRowsById");
|
|
309
|
+
const ut = /* @__PURE__ */ l((e) => {
|
|
310
|
+
const t = u(e);
|
|
311
|
+
return (t == null ? void 0 : t.Rows) ?? {};
|
|
312
|
+
}, "getTreeGridRowsById"), ft = /* @__PURE__ */ l((e, t) => {
|
|
313
|
+
var r;
|
|
314
|
+
if (t != null)
|
|
315
|
+
return (r = u(e)) == null ? void 0 : r.GetRowById(String(t));
|
|
316
|
+
}, "getTreeGridRowById"), Rt = /* @__PURE__ */ l((e, t) => {
|
|
317
|
+
const r = u(e);
|
|
305
318
|
if (!r)
|
|
306
319
|
return;
|
|
307
320
|
const n = r.Data.Data;
|
|
@@ -312,24 +325,24 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
312
325
|
}, r.ReloadBody(), window.setTimeout(() => {
|
|
313
326
|
D(e);
|
|
314
327
|
}, 0);
|
|
315
|
-
}, "reloadTreeGridBodyById"),
|
|
316
|
-
const r =
|
|
328
|
+
}, "reloadTreeGridBodyById"), Tt = /* @__PURE__ */ l((e, t) => {
|
|
329
|
+
const r = u(e);
|
|
317
330
|
if (!r)
|
|
318
331
|
return;
|
|
319
332
|
const n = t == null ? void 0 : t.canSelect, s = t == null ? void 0 : t.initialValues, a = t == null ? void 0 : t.editableColumns, i = Le(r), c = !!n && i, d = c && ve(s), o = d ? $e(s) : s;
|
|
320
333
|
c && V(e);
|
|
321
|
-
const { resolvedParent: R, next: T } = Fe(r, t),
|
|
322
|
-
ce(
|
|
334
|
+
const { resolvedParent: R, next: T } = Fe(r, t), f = r.AddRow(R, T, 1);
|
|
335
|
+
ce(f), je(r, f, o), Ce(r, f), f.CanEdit = 1, f.CanDelete = 1, f.CanSelect = n ? 1 : 0, Oe(r, f, a), d && r.SelectRow(f, 1), r.Focus(f), r.RefreshRow(f), r.Calculate(1, 1), window.setTimeout(() => {
|
|
323
336
|
D(e);
|
|
324
337
|
}, 0);
|
|
325
|
-
}, "addTreeGridRowById"),
|
|
326
|
-
const r =
|
|
338
|
+
}, "addTreeGridRowById"), Et = /* @__PURE__ */ l((e, t) => {
|
|
339
|
+
const r = u(e);
|
|
327
340
|
if (!r)
|
|
328
341
|
return { valid: !1, errors: [] };
|
|
329
342
|
const n = Ge(r, t), s = [], a = t.refresh === !1 ? 0 : 1;
|
|
330
343
|
n.forEach((c) => {
|
|
331
344
|
Ae(r, c, t).forEach((d) => {
|
|
332
|
-
const o = d.key, R =
|
|
345
|
+
const o = d.key, R = w(r, c, o), T = Ie(r, d), f = {
|
|
333
346
|
grid: r,
|
|
334
347
|
row: c,
|
|
335
348
|
col: o,
|
|
@@ -342,11 +355,11 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
342
355
|
return;
|
|
343
356
|
}
|
|
344
357
|
const B = Se(
|
|
345
|
-
|
|
358
|
+
f,
|
|
346
359
|
d,
|
|
347
360
|
t.messageFactory
|
|
348
|
-
),
|
|
349
|
-
r.SetAttribute(c, o, "Error", B, a), s.push(
|
|
361
|
+
), p = { ...f, message: B };
|
|
362
|
+
r.SetAttribute(c, o, "Error", B, a), s.push(p);
|
|
350
363
|
});
|
|
351
364
|
});
|
|
352
365
|
const i = s[0];
|
|
@@ -355,9 +368,9 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
355
368
|
errors: s,
|
|
356
369
|
firstError: i
|
|
357
370
|
};
|
|
358
|
-
}, "validateTreeGridRequiredCellsById"),
|
|
359
|
-
const t =
|
|
360
|
-
|
|
371
|
+
}, "validateTreeGridRequiredCellsById"), Gt = /* @__PURE__ */ l((e) => {
|
|
372
|
+
const t = u(e);
|
|
373
|
+
ge(t);
|
|
361
374
|
const r = Q(t == null ? void 0 : t.GetXmlData("changes,allcols,nogrid,noio"));
|
|
362
375
|
return A(r) ? Object.fromEntries(
|
|
363
376
|
re.map((n) => [
|
|
@@ -369,13 +382,14 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
369
382
|
)
|
|
370
383
|
])
|
|
371
384
|
) : { added: [], changed: [] };
|
|
372
|
-
}, "getTreeGridRowChangesById"),
|
|
373
|
-
const r =
|
|
374
|
-
r &&
|
|
385
|
+
}, "getTreeGridRowChangesById"), Ct = /* @__PURE__ */ l((e, t) => {
|
|
386
|
+
const r = u(e);
|
|
387
|
+
r && ye().then(
|
|
375
388
|
(n) => n(r, { exportName: t ?? "" })
|
|
376
389
|
);
|
|
377
|
-
}, "exportTreeGridToExcelById")
|
|
378
|
-
|
|
390
|
+
}, "exportTreeGridToExcelById");
|
|
391
|
+
function mt(e, t) {
|
|
392
|
+
const r = u(e), n = r == null ? void 0 : r.GetSelRows();
|
|
379
393
|
if (!r || !n)
|
|
380
394
|
return [];
|
|
381
395
|
const s = J(
|
|
@@ -384,8 +398,10 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
384
398
|
t
|
|
385
399
|
);
|
|
386
400
|
return H(r, s);
|
|
387
|
-
}
|
|
388
|
-
|
|
401
|
+
}
|
|
402
|
+
l(mt, "getTreeGridSelectedRowsById");
|
|
403
|
+
const ht = /* @__PURE__ */ l((e, t) => {
|
|
404
|
+
const r = u(e);
|
|
389
405
|
if (!r || !(t != null && t.targetKey))
|
|
390
406
|
return;
|
|
391
407
|
const n = t == null ? void 0 : t.targetKey;
|
|
@@ -394,31 +410,31 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
394
410
|
return;
|
|
395
411
|
}
|
|
396
412
|
r.HideCol(n);
|
|
397
|
-
}, "setTreeGridColumnVisibilityById"),
|
|
398
|
-
const r =
|
|
399
|
-
!r || !n || !s || (me(r, n, s), r.SetValue(n, `${s}Class`,
|
|
400
|
-
}, "highlightTreeGridCellById"),
|
|
401
|
-
const r =
|
|
413
|
+
}, "setTreeGridColumnVisibilityById"), yt = /* @__PURE__ */ l((e, t) => {
|
|
414
|
+
const r = u(e), n = t == null ? void 0 : t.row, s = t == null ? void 0 : t.col;
|
|
415
|
+
!r || !n || !s || (me(r, n, s), r.SetValue(n, `${s}Class`, M), r.SetValue(n, `${s}Color`, t.backgroundColor ?? X), t.refresh !== !1 && r.RefreshCell(n, s));
|
|
416
|
+
}, "highlightTreeGridCellById"), _t = /* @__PURE__ */ l((e, t) => {
|
|
417
|
+
const r = u(e), n = t == null ? void 0 : t.row, s = t == null ? void 0 : t.col;
|
|
402
418
|
if (!r || !n || !s)
|
|
403
419
|
return;
|
|
404
420
|
const a = he(n, s);
|
|
405
421
|
r.SetValue(n, `${s}Class`, (a == null ? void 0 : a.className) ?? ""), r.SetValue(n, `${s}Color`, (a == null ? void 0 : a.color) ?? ""), r.RefreshCell(n, s);
|
|
406
422
|
}, "clearTreeGridCellHighlightById"), V = /* @__PURE__ */ l((e) => {
|
|
407
|
-
const t =
|
|
423
|
+
const t = u(e);
|
|
408
424
|
t && t.ActionDeselectAll(1, 0);
|
|
409
|
-
}, "resetTreeGridSelectionById"),
|
|
425
|
+
}, "resetTreeGridSelectionById"), Dt = /* @__PURE__ */ l((e) => {
|
|
410
426
|
e.forEach(V);
|
|
411
|
-
}, "resetTreeGridSelectionsByIds"),
|
|
412
|
-
const t =
|
|
427
|
+
}, "resetTreeGridSelectionsByIds"), pe = /* @__PURE__ */ l((e) => {
|
|
428
|
+
const t = u(e);
|
|
413
429
|
t && (t.ActionUndoAll(1, 0), V(e), t.Calculate(1, 1), window.setTimeout(() => {
|
|
414
430
|
D(e);
|
|
415
431
|
}, 0));
|
|
416
|
-
}, "resetTreeGridChangesById"),
|
|
417
|
-
e.forEach(
|
|
418
|
-
}, "resetTreeGridChangesByIds"),
|
|
432
|
+
}, "resetTreeGridChangesById"), At = /* @__PURE__ */ l((e) => {
|
|
433
|
+
e.forEach(pe);
|
|
434
|
+
}, "resetTreeGridChangesByIds"), It = /* @__PURE__ */ l((e, t, r, n, s) => {
|
|
419
435
|
if (!(r != null && r.length))
|
|
420
436
|
return;
|
|
421
|
-
const a =
|
|
437
|
+
const a = u(e);
|
|
422
438
|
if (!a)
|
|
423
439
|
return;
|
|
424
440
|
const i = r.map((d) => {
|
|
@@ -428,33 +444,35 @@ const re = ["Added", "Changed"], ne = ["OWP", "IPX"], se = /^H{1,2}(?::m{1,2})?(
|
|
|
428
444
|
a.SetAttribute(null, t, "Type", "Enum", 0, 0), a.SetAttribute(null, t, "Enum", `|${i}`, 0, 0), a.SetAttribute(null, t, "EnumKeys", `|${c}`, 1, 0);
|
|
429
445
|
}, "setTreeGridColumnEnumOptionsById");
|
|
430
446
|
export {
|
|
431
|
-
|
|
447
|
+
M as TREEGRID_CELL_CHANGED_CLASS,
|
|
432
448
|
X as TREEGRID_CELL_HIGHLIGHT_COLOR,
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
449
|
+
Vt as TREEGRID_INPUT_CELL_COLOR,
|
|
450
|
+
Bt as TREEGRID_WARNING_CELL_COLOR,
|
|
451
|
+
Tt as addTreeGridRowById,
|
|
436
452
|
lt as appendTreeGridAddedRowHighlightColumn,
|
|
437
|
-
|
|
438
|
-
|
|
453
|
+
_t as clearTreeGridCellHighlightById,
|
|
454
|
+
Ct as exportTreeGridToExcelById,
|
|
439
455
|
dt as getTreeGridAddedRowBaselineValue,
|
|
440
456
|
ct as getTreeGridAddedRowEditableColumns,
|
|
441
457
|
it as getTreeGridAddedRowHighlightColumns,
|
|
442
|
-
|
|
443
|
-
|
|
458
|
+
u as getTreeGridById,
|
|
459
|
+
w as getTreeGridCellComparableValue,
|
|
444
460
|
ot as getTreeGridDataRowsById,
|
|
445
|
-
|
|
446
|
-
Gt as
|
|
447
|
-
|
|
461
|
+
ft as getTreeGridRowById,
|
|
462
|
+
Gt as getTreeGridRowChangesById,
|
|
463
|
+
ut as getTreeGridRowsById,
|
|
464
|
+
mt as getTreeGridSelectedRowsById,
|
|
465
|
+
yt as highlightTreeGridCellById,
|
|
448
466
|
de as isTreeGridRowAddedById,
|
|
449
467
|
H as normalizeTreeGridExternalRows,
|
|
450
|
-
|
|
468
|
+
Rt as reloadTreeGridBodyById,
|
|
451
469
|
at as removeTreeGridAddedRowHighlightColumn,
|
|
452
|
-
|
|
453
|
-
|
|
470
|
+
pe as resetTreeGridChangesById,
|
|
471
|
+
At as resetTreeGridChangesByIds,
|
|
454
472
|
V as resetTreeGridSelectionById,
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
473
|
+
Dt as resetTreeGridSelectionsByIds,
|
|
474
|
+
It as setTreeGridColumnEnumOptionsById,
|
|
475
|
+
ht as setTreeGridColumnVisibilityById,
|
|
476
|
+
Et as validateTreeGridRequiredCellsById
|
|
459
477
|
};
|
|
460
478
|
//# sourceMappingURL=treeGridUtil.js.map
|