@vmscloud/moz-ui-grid-vue 0.2.6 → 0.2.7

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.
@@ -1,5 +1,5 @@
1
1
  import { GridChrome, WrapperExtras, MozGridCoreProps } from '@vmscloud/moz-ui-grid-wrapper';
2
- import { PureSheet } from '@vmscloud/moz-ui-grid-core';
2
+ import { DataMutationEvent, PureSheet } from '@vmscloud/moz-ui-grid-core';
3
3
  type __VLS_Props = WrapperExtras & {
4
4
  name?: string;
5
5
  };
@@ -43,6 +43,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
43
43
  "cell:click": (payload: unknown) => any;
44
44
  "cell:dblclick": (payload: unknown) => any;
45
45
  "cell:change": (payload: unknown) => any;
46
+ "data:changed": (payload: DataMutationEvent) => any;
46
47
  "selection:changed": (payload: unknown) => any;
47
48
  "column:resize": (payload: unknown) => any;
48
49
  "column:reorder": (payload: unknown) => any;
@@ -78,6 +79,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
78
79
  "onCell:click"?: ((payload: unknown) => any) | undefined;
79
80
  "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
80
81
  "onCell:change"?: ((payload: unknown) => any) | undefined;
82
+ "onData:changed"?: ((payload: DataMutationEvent) => any) | undefined;
81
83
  "onSelection:changed"?: ((payload: unknown) => any) | undefined;
82
84
  "onColumn:resize"?: ((payload: unknown) => any) | undefined;
83
85
  "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
@@ -51,6 +51,7 @@ declare function __VLS_template(): {
51
51
  readonly "onCell:click"?: ((payload: unknown) => any) | undefined;
52
52
  readonly "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
53
53
  readonly "onCell:change"?: ((payload: unknown) => any) | undefined;
54
+ readonly "onData:changed"?: ((payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any) | undefined;
54
55
  readonly "onSelection:changed"?: ((payload: unknown) => any) | undefined;
55
56
  readonly "onColumn:resize"?: ((payload: unknown) => any) | undefined;
56
57
  readonly "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
@@ -90,7 +91,7 @@ declare function __VLS_template(): {
90
91
  $root: import('vue').ComponentPublicInstance | null;
91
92
  $parent: import('vue').ComponentPublicInstance | null;
92
93
  $host: Element | null;
93
- $emit: ((event: "data:loaded") => void) & ((event: "row:click", payload: unknown) => void) & ((event: "row:dblclick", payload: unknown) => void) & ((event: "row:pinned", payload: unknown) => void) & ((event: "row:unpinned", payload: unknown) => void) & ((event: "cell:click", payload: unknown) => void) & ((event: "cell:dblclick", payload: unknown) => void) & ((event: "cell:change", payload: unknown) => void) & ((event: "selection:changed", payload: unknown) => void) & ((event: "column:resize", payload: unknown) => void) & ((event: "column:reorder", payload: unknown) => void) & ((event: "column:pin", payload: unknown) => void) & ((event: "sort:changed", payload: unknown) => void) & ((event: "filter:changed", payload: unknown) => void) & ((event: "header:click", payload: unknown) => void) & ((event: "header:sortClick", payload: unknown) => void) & ((event: "header:filterClick", payload: unknown) => void) & ((event: "scroll", payload: unknown) => void) & ((event: "undo:stateChange", payload: unknown) => void) & ((event: "clipboard:copy", payload: unknown) => void) & ((event: "clipboard:paste", payload: unknown) => void) & ((event: "validation:changed", payload: unknown) => void) & ((event: "row:reordered", payload: unknown) => void) & ((event: "columnGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:batchToggle", payload: unknown) => void) & ((event: "contextmenu", payload: unknown) => void) & ((event: "cell:beforeEdit", payload: unknown) => void) & ((event: "cell:editCommitting", payload: unknown) => void) & ((event: "cell:editCommitted", payload: unknown) => void) & ((event: "cell:tooltip", payload: unknown) => void) & ((event: "column:visibility", payload: unknown) => void) & ((event: "ready", grid: PureSheet, chrome: GridChrome) => void) & ((event: "update:coreConfig", value: MozGridCoreProps) => void);
94
+ $emit: ((event: "data:loaded") => void) & ((event: "row:click", payload: unknown) => void) & ((event: "row:dblclick", payload: unknown) => void) & ((event: "row:pinned", payload: unknown) => void) & ((event: "row:unpinned", payload: unknown) => void) & ((event: "cell:click", payload: unknown) => void) & ((event: "cell:dblclick", payload: unknown) => void) & ((event: "cell:change", payload: unknown) => void) & ((event: "data:changed", payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => void) & ((event: "selection:changed", payload: unknown) => void) & ((event: "column:resize", payload: unknown) => void) & ((event: "column:reorder", payload: unknown) => void) & ((event: "column:pin", payload: unknown) => void) & ((event: "sort:changed", payload: unknown) => void) & ((event: "filter:changed", payload: unknown) => void) & ((event: "header:click", payload: unknown) => void) & ((event: "header:sortClick", payload: unknown) => void) & ((event: "header:filterClick", payload: unknown) => void) & ((event: "scroll", payload: unknown) => void) & ((event: "undo:stateChange", payload: unknown) => void) & ((event: "clipboard:copy", payload: unknown) => void) & ((event: "clipboard:paste", payload: unknown) => void) & ((event: "validation:changed", payload: unknown) => void) & ((event: "row:reordered", payload: unknown) => void) & ((event: "columnGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:batchToggle", payload: unknown) => void) & ((event: "contextmenu", payload: unknown) => void) & ((event: "cell:beforeEdit", payload: unknown) => void) & ((event: "cell:editCommitting", payload: unknown) => void) & ((event: "cell:editCommitted", payload: unknown) => void) & ((event: "cell:tooltip", payload: unknown) => void) & ((event: "column:visibility", payload: unknown) => void) & ((event: "ready", grid: PureSheet, chrome: GridChrome) => void) & ((event: "update:coreConfig", value: MozGridCoreProps) => void);
94
95
  $el: any;
95
96
  $options: import('vue').ComponentOptionsBase<Readonly<{
96
97
  coreConfig?: MozGridCoreProps;
@@ -105,6 +106,7 @@ declare function __VLS_template(): {
105
106
  "onCell:click"?: ((payload: unknown) => any) | undefined;
106
107
  "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
107
108
  "onCell:change"?: ((payload: unknown) => any) | undefined;
109
+ "onData:changed"?: ((payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any) | undefined;
108
110
  "onSelection:changed"?: ((payload: unknown) => any) | undefined;
109
111
  "onColumn:resize"?: ((payload: unknown) => any) | undefined;
110
112
  "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
@@ -157,6 +159,7 @@ declare function __VLS_template(): {
157
159
  "cell:click": (payload: unknown) => any;
158
160
  "cell:dblclick": (payload: unknown) => any;
159
161
  "cell:change": (payload: unknown) => any;
162
+ "data:changed": (payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any;
160
163
  "selection:changed": (payload: unknown) => any;
161
164
  "column:resize": (payload: unknown) => any;
162
165
  "column:reorder": (payload: unknown) => any;
@@ -248,6 +251,7 @@ declare function __VLS_template(): {
248
251
  "onCell:click"?: ((payload: unknown) => any) | undefined;
249
252
  "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
250
253
  "onCell:change"?: ((payload: unknown) => any) | undefined;
254
+ "onData:changed"?: ((payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any) | undefined;
251
255
  "onSelection:changed"?: ((payload: unknown) => any) | undefined;
252
256
  "onColumn:resize"?: ((payload: unknown) => any) | undefined;
253
257
  "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
@@ -420,6 +424,7 @@ declare const __VLS_component: import('vue').DefineComponent<MozGridVueProps, {
420
424
  readonly "onCell:click"?: ((payload: unknown) => any) | undefined;
421
425
  readonly "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
422
426
  readonly "onCell:change"?: ((payload: unknown) => any) | undefined;
427
+ readonly "onData:changed"?: ((payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any) | undefined;
423
428
  readonly "onSelection:changed"?: ((payload: unknown) => any) | undefined;
424
429
  readonly "onColumn:resize"?: ((payload: unknown) => any) | undefined;
425
430
  readonly "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
@@ -459,7 +464,7 @@ declare const __VLS_component: import('vue').DefineComponent<MozGridVueProps, {
459
464
  $root: import('vue').ComponentPublicInstance | null;
460
465
  $parent: import('vue').ComponentPublicInstance | null;
461
466
  $host: Element | null;
462
- $emit: ((event: "data:loaded") => void) & ((event: "row:click", payload: unknown) => void) & ((event: "row:dblclick", payload: unknown) => void) & ((event: "row:pinned", payload: unknown) => void) & ((event: "row:unpinned", payload: unknown) => void) & ((event: "cell:click", payload: unknown) => void) & ((event: "cell:dblclick", payload: unknown) => void) & ((event: "cell:change", payload: unknown) => void) & ((event: "selection:changed", payload: unknown) => void) & ((event: "column:resize", payload: unknown) => void) & ((event: "column:reorder", payload: unknown) => void) & ((event: "column:pin", payload: unknown) => void) & ((event: "sort:changed", payload: unknown) => void) & ((event: "filter:changed", payload: unknown) => void) & ((event: "header:click", payload: unknown) => void) & ((event: "header:sortClick", payload: unknown) => void) & ((event: "header:filterClick", payload: unknown) => void) & ((event: "scroll", payload: unknown) => void) & ((event: "undo:stateChange", payload: unknown) => void) & ((event: "clipboard:copy", payload: unknown) => void) & ((event: "clipboard:paste", payload: unknown) => void) & ((event: "validation:changed", payload: unknown) => void) & ((event: "row:reordered", payload: unknown) => void) & ((event: "columnGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:batchToggle", payload: unknown) => void) & ((event: "contextmenu", payload: unknown) => void) & ((event: "cell:beforeEdit", payload: unknown) => void) & ((event: "cell:editCommitting", payload: unknown) => void) & ((event: "cell:editCommitted", payload: unknown) => void) & ((event: "cell:tooltip", payload: unknown) => void) & ((event: "column:visibility", payload: unknown) => void) & ((event: "ready", grid: PureSheet, chrome: GridChrome) => void) & ((event: "update:coreConfig", value: MozGridCoreProps) => void);
467
+ $emit: ((event: "data:loaded") => void) & ((event: "row:click", payload: unknown) => void) & ((event: "row:dblclick", payload: unknown) => void) & ((event: "row:pinned", payload: unknown) => void) & ((event: "row:unpinned", payload: unknown) => void) & ((event: "cell:click", payload: unknown) => void) & ((event: "cell:dblclick", payload: unknown) => void) & ((event: "cell:change", payload: unknown) => void) & ((event: "data:changed", payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => void) & ((event: "selection:changed", payload: unknown) => void) & ((event: "column:resize", payload: unknown) => void) & ((event: "column:reorder", payload: unknown) => void) & ((event: "column:pin", payload: unknown) => void) & ((event: "sort:changed", payload: unknown) => void) & ((event: "filter:changed", payload: unknown) => void) & ((event: "header:click", payload: unknown) => void) & ((event: "header:sortClick", payload: unknown) => void) & ((event: "header:filterClick", payload: unknown) => void) & ((event: "scroll", payload: unknown) => void) & ((event: "undo:stateChange", payload: unknown) => void) & ((event: "clipboard:copy", payload: unknown) => void) & ((event: "clipboard:paste", payload: unknown) => void) & ((event: "validation:changed", payload: unknown) => void) & ((event: "row:reordered", payload: unknown) => void) & ((event: "columnGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:batchToggle", payload: unknown) => void) & ((event: "contextmenu", payload: unknown) => void) & ((event: "cell:beforeEdit", payload: unknown) => void) & ((event: "cell:editCommitting", payload: unknown) => void) & ((event: "cell:editCommitted", payload: unknown) => void) & ((event: "cell:tooltip", payload: unknown) => void) & ((event: "column:visibility", payload: unknown) => void) & ((event: "ready", grid: PureSheet, chrome: GridChrome) => void) & ((event: "update:coreConfig", value: MozGridCoreProps) => void);
463
468
  $el: any;
464
469
  $options: import('vue').ComponentOptionsBase<Readonly<{
465
470
  coreConfig?: MozGridCoreProps;
@@ -474,6 +479,7 @@ declare const __VLS_component: import('vue').DefineComponent<MozGridVueProps, {
474
479
  "onCell:click"?: ((payload: unknown) => any) | undefined;
475
480
  "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
476
481
  "onCell:change"?: ((payload: unknown) => any) | undefined;
482
+ "onData:changed"?: ((payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any) | undefined;
477
483
  "onSelection:changed"?: ((payload: unknown) => any) | undefined;
478
484
  "onColumn:resize"?: ((payload: unknown) => any) | undefined;
479
485
  "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
@@ -526,6 +532,7 @@ declare const __VLS_component: import('vue').DefineComponent<MozGridVueProps, {
526
532
  "cell:click": (payload: unknown) => any;
527
533
  "cell:dblclick": (payload: unknown) => any;
528
534
  "cell:change": (payload: unknown) => any;
535
+ "data:changed": (payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any;
529
536
  "selection:changed": (payload: unknown) => any;
530
537
  "column:resize": (payload: unknown) => any;
531
538
  "column:reorder": (payload: unknown) => any;
@@ -617,6 +624,7 @@ declare const __VLS_component: import('vue').DefineComponent<MozGridVueProps, {
617
624
  "onCell:click"?: ((payload: unknown) => any) | undefined;
618
625
  "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
619
626
  "onCell:change"?: ((payload: unknown) => any) | undefined;
627
+ "onData:changed"?: ((payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any) | undefined;
620
628
  "onSelection:changed"?: ((payload: unknown) => any) | undefined;
621
629
  "onColumn:resize"?: ((payload: unknown) => any) | undefined;
622
630
  "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
@@ -50,6 +50,7 @@ declare function __VLS_template(): {
50
50
  readonly "onCell:click"?: ((payload: unknown) => any) | undefined;
51
51
  readonly "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
52
52
  readonly "onCell:change"?: ((payload: unknown) => any) | undefined;
53
+ readonly "onData:changed"?: ((payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any) | undefined;
53
54
  readonly "onSelection:changed"?: ((payload: unknown) => any) | undefined;
54
55
  readonly "onColumn:resize"?: ((payload: unknown) => any) | undefined;
55
56
  readonly "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
@@ -89,7 +90,7 @@ declare function __VLS_template(): {
89
90
  $root: import('vue').ComponentPublicInstance | null;
90
91
  $parent: import('vue').ComponentPublicInstance | null;
91
92
  $host: Element | null;
92
- $emit: ((event: "data:loaded") => void) & ((event: "row:click", payload: unknown) => void) & ((event: "row:dblclick", payload: unknown) => void) & ((event: "row:pinned", payload: unknown) => void) & ((event: "row:unpinned", payload: unknown) => void) & ((event: "cell:click", payload: unknown) => void) & ((event: "cell:dblclick", payload: unknown) => void) & ((event: "cell:change", payload: unknown) => void) & ((event: "selection:changed", payload: unknown) => void) & ((event: "column:resize", payload: unknown) => void) & ((event: "column:reorder", payload: unknown) => void) & ((event: "column:pin", payload: unknown) => void) & ((event: "sort:changed", payload: unknown) => void) & ((event: "filter:changed", payload: unknown) => void) & ((event: "header:click", payload: unknown) => void) & ((event: "header:sortClick", payload: unknown) => void) & ((event: "header:filterClick", payload: unknown) => void) & ((event: "scroll", payload: unknown) => void) & ((event: "undo:stateChange", payload: unknown) => void) & ((event: "clipboard:copy", payload: unknown) => void) & ((event: "clipboard:paste", payload: unknown) => void) & ((event: "validation:changed", payload: unknown) => void) & ((event: "row:reordered", payload: unknown) => void) & ((event: "columnGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:batchToggle", payload: unknown) => void) & ((event: "contextmenu", payload: unknown) => void) & ((event: "cell:beforeEdit", payload: unknown) => void) & ((event: "cell:editCommitting", payload: unknown) => void) & ((event: "cell:editCommitted", payload: unknown) => void) & ((event: "cell:tooltip", payload: unknown) => void) & ((event: "column:visibility", payload: unknown) => void) & ((event: "ready", grid: PureSheet, chrome: GridChrome) => void) & ((event: "update:coreConfig", value: MozGridCoreProps) => void);
93
+ $emit: ((event: "data:loaded") => void) & ((event: "row:click", payload: unknown) => void) & ((event: "row:dblclick", payload: unknown) => void) & ((event: "row:pinned", payload: unknown) => void) & ((event: "row:unpinned", payload: unknown) => void) & ((event: "cell:click", payload: unknown) => void) & ((event: "cell:dblclick", payload: unknown) => void) & ((event: "cell:change", payload: unknown) => void) & ((event: "data:changed", payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => void) & ((event: "selection:changed", payload: unknown) => void) & ((event: "column:resize", payload: unknown) => void) & ((event: "column:reorder", payload: unknown) => void) & ((event: "column:pin", payload: unknown) => void) & ((event: "sort:changed", payload: unknown) => void) & ((event: "filter:changed", payload: unknown) => void) & ((event: "header:click", payload: unknown) => void) & ((event: "header:sortClick", payload: unknown) => void) & ((event: "header:filterClick", payload: unknown) => void) & ((event: "scroll", payload: unknown) => void) & ((event: "undo:stateChange", payload: unknown) => void) & ((event: "clipboard:copy", payload: unknown) => void) & ((event: "clipboard:paste", payload: unknown) => void) & ((event: "validation:changed", payload: unknown) => void) & ((event: "row:reordered", payload: unknown) => void) & ((event: "columnGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:batchToggle", payload: unknown) => void) & ((event: "contextmenu", payload: unknown) => void) & ((event: "cell:beforeEdit", payload: unknown) => void) & ((event: "cell:editCommitting", payload: unknown) => void) & ((event: "cell:editCommitted", payload: unknown) => void) & ((event: "cell:tooltip", payload: unknown) => void) & ((event: "column:visibility", payload: unknown) => void) & ((event: "ready", grid: PureSheet, chrome: GridChrome) => void) & ((event: "update:coreConfig", value: MozGridCoreProps) => void);
93
94
  $el: any;
94
95
  $options: import('vue').ComponentOptionsBase<Readonly<{
95
96
  coreConfig?: MozGridCoreProps;
@@ -104,6 +105,7 @@ declare function __VLS_template(): {
104
105
  "onCell:click"?: ((payload: unknown) => any) | undefined;
105
106
  "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
106
107
  "onCell:change"?: ((payload: unknown) => any) | undefined;
108
+ "onData:changed"?: ((payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any) | undefined;
107
109
  "onSelection:changed"?: ((payload: unknown) => any) | undefined;
108
110
  "onColumn:resize"?: ((payload: unknown) => any) | undefined;
109
111
  "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
@@ -156,6 +158,7 @@ declare function __VLS_template(): {
156
158
  "cell:click": (payload: unknown) => any;
157
159
  "cell:dblclick": (payload: unknown) => any;
158
160
  "cell:change": (payload: unknown) => any;
161
+ "data:changed": (payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any;
159
162
  "selection:changed": (payload: unknown) => any;
160
163
  "column:resize": (payload: unknown) => any;
161
164
  "column:reorder": (payload: unknown) => any;
@@ -247,6 +250,7 @@ declare function __VLS_template(): {
247
250
  "onCell:click"?: ((payload: unknown) => any) | undefined;
248
251
  "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
249
252
  "onCell:change"?: ((payload: unknown) => any) | undefined;
253
+ "onData:changed"?: ((payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any) | undefined;
250
254
  "onSelection:changed"?: ((payload: unknown) => any) | undefined;
251
255
  "onColumn:resize"?: ((payload: unknown) => any) | undefined;
252
256
  "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
@@ -381,6 +385,7 @@ declare const __VLS_component: import('vue').DefineComponent<PivotGridProps, {
381
385
  readonly "onCell:click"?: ((payload: unknown) => any) | undefined;
382
386
  readonly "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
383
387
  readonly "onCell:change"?: ((payload: unknown) => any) | undefined;
388
+ readonly "onData:changed"?: ((payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any) | undefined;
384
389
  readonly "onSelection:changed"?: ((payload: unknown) => any) | undefined;
385
390
  readonly "onColumn:resize"?: ((payload: unknown) => any) | undefined;
386
391
  readonly "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
@@ -420,7 +425,7 @@ declare const __VLS_component: import('vue').DefineComponent<PivotGridProps, {
420
425
  $root: import('vue').ComponentPublicInstance | null;
421
426
  $parent: import('vue').ComponentPublicInstance | null;
422
427
  $host: Element | null;
423
- $emit: ((event: "data:loaded") => void) & ((event: "row:click", payload: unknown) => void) & ((event: "row:dblclick", payload: unknown) => void) & ((event: "row:pinned", payload: unknown) => void) & ((event: "row:unpinned", payload: unknown) => void) & ((event: "cell:click", payload: unknown) => void) & ((event: "cell:dblclick", payload: unknown) => void) & ((event: "cell:change", payload: unknown) => void) & ((event: "selection:changed", payload: unknown) => void) & ((event: "column:resize", payload: unknown) => void) & ((event: "column:reorder", payload: unknown) => void) & ((event: "column:pin", payload: unknown) => void) & ((event: "sort:changed", payload: unknown) => void) & ((event: "filter:changed", payload: unknown) => void) & ((event: "header:click", payload: unknown) => void) & ((event: "header:sortClick", payload: unknown) => void) & ((event: "header:filterClick", payload: unknown) => void) & ((event: "scroll", payload: unknown) => void) & ((event: "undo:stateChange", payload: unknown) => void) & ((event: "clipboard:copy", payload: unknown) => void) & ((event: "clipboard:paste", payload: unknown) => void) & ((event: "validation:changed", payload: unknown) => void) & ((event: "row:reordered", payload: unknown) => void) & ((event: "columnGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:batchToggle", payload: unknown) => void) & ((event: "contextmenu", payload: unknown) => void) & ((event: "cell:beforeEdit", payload: unknown) => void) & ((event: "cell:editCommitting", payload: unknown) => void) & ((event: "cell:editCommitted", payload: unknown) => void) & ((event: "cell:tooltip", payload: unknown) => void) & ((event: "column:visibility", payload: unknown) => void) & ((event: "ready", grid: PureSheet, chrome: GridChrome) => void) & ((event: "update:coreConfig", value: MozGridCoreProps) => void);
428
+ $emit: ((event: "data:loaded") => void) & ((event: "row:click", payload: unknown) => void) & ((event: "row:dblclick", payload: unknown) => void) & ((event: "row:pinned", payload: unknown) => void) & ((event: "row:unpinned", payload: unknown) => void) & ((event: "cell:click", payload: unknown) => void) & ((event: "cell:dblclick", payload: unknown) => void) & ((event: "cell:change", payload: unknown) => void) & ((event: "data:changed", payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => void) & ((event: "selection:changed", payload: unknown) => void) & ((event: "column:resize", payload: unknown) => void) & ((event: "column:reorder", payload: unknown) => void) & ((event: "column:pin", payload: unknown) => void) & ((event: "sort:changed", payload: unknown) => void) & ((event: "filter:changed", payload: unknown) => void) & ((event: "header:click", payload: unknown) => void) & ((event: "header:sortClick", payload: unknown) => void) & ((event: "header:filterClick", payload: unknown) => void) & ((event: "scroll", payload: unknown) => void) & ((event: "undo:stateChange", payload: unknown) => void) & ((event: "clipboard:copy", payload: unknown) => void) & ((event: "clipboard:paste", payload: unknown) => void) & ((event: "validation:changed", payload: unknown) => void) & ((event: "row:reordered", payload: unknown) => void) & ((event: "columnGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:toggle", payload: unknown) => void) & ((event: "rowGroup:batchToggle", payload: unknown) => void) & ((event: "contextmenu", payload: unknown) => void) & ((event: "cell:beforeEdit", payload: unknown) => void) & ((event: "cell:editCommitting", payload: unknown) => void) & ((event: "cell:editCommitted", payload: unknown) => void) & ((event: "cell:tooltip", payload: unknown) => void) & ((event: "column:visibility", payload: unknown) => void) & ((event: "ready", grid: PureSheet, chrome: GridChrome) => void) & ((event: "update:coreConfig", value: MozGridCoreProps) => void);
424
429
  $el: any;
425
430
  $options: import('vue').ComponentOptionsBase<Readonly<{
426
431
  coreConfig?: MozGridCoreProps;
@@ -435,6 +440,7 @@ declare const __VLS_component: import('vue').DefineComponent<PivotGridProps, {
435
440
  "onCell:click"?: ((payload: unknown) => any) | undefined;
436
441
  "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
437
442
  "onCell:change"?: ((payload: unknown) => any) | undefined;
443
+ "onData:changed"?: ((payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any) | undefined;
438
444
  "onSelection:changed"?: ((payload: unknown) => any) | undefined;
439
445
  "onColumn:resize"?: ((payload: unknown) => any) | undefined;
440
446
  "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
@@ -487,6 +493,7 @@ declare const __VLS_component: import('vue').DefineComponent<PivotGridProps, {
487
493
  "cell:click": (payload: unknown) => any;
488
494
  "cell:dblclick": (payload: unknown) => any;
489
495
  "cell:change": (payload: unknown) => any;
496
+ "data:changed": (payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any;
490
497
  "selection:changed": (payload: unknown) => any;
491
498
  "column:resize": (payload: unknown) => any;
492
499
  "column:reorder": (payload: unknown) => any;
@@ -578,6 +585,7 @@ declare const __VLS_component: import('vue').DefineComponent<PivotGridProps, {
578
585
  "onCell:click"?: ((payload: unknown) => any) | undefined;
579
586
  "onCell:dblclick"?: ((payload: unknown) => any) | undefined;
580
587
  "onCell:change"?: ((payload: unknown) => any) | undefined;
588
+ "onData:changed"?: ((payload: import('@vmscloud/moz-ui-grid-core').DataMutationEvent) => any) | undefined;
581
589
  "onSelection:changed"?: ((payload: unknown) => any) | undefined;
582
590
  "onColumn:resize"?: ((payload: unknown) => any) | undefined;
583
591
  "onColumn:reorder"?: ((payload: unknown) => any) | undefined;
package/dist/index.cjs CHANGED
@@ -74,4 +74,4 @@
74
74
  `}footer(){const e=s.getGridVueLocale();return r.html`
75
75
  ${n.button({label:e.check,variant:"primary",disabled:!this.file,onClick:()=>this.confirm()})}
76
76
  ${n.button({label:e.cancel,onClick:()=>this.close()})}
77
- `}confirm(){const e=this.grid,t=this.file;if(!e||!t)return;const o={...this.options};this.close(),this.runBackgroundImport(e,t,o)}async runBackgroundImport(e,t,o){const n=s.getGridVueLocale(),l=this.deps.notificationStore(),r=f(),i=t.name,a=()=>null==l?void 0:l.eventMessages.find(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});l&&l.eventMessages.unshift({noti_type:"progress",header_key:n.clientExcelImportProgress,noti_datetime:h(),noti_sender_id:"",prop_value:{session_id:r,file_name:i,status:"in_progress",progress_per:0,operation_type:"upload",remain_time:-1}});try{const n=e.changes;(null==n?void 0:n.hasChanges)&&await n.discardAll(),await e.io.fromExcel(t,{mode:o.mode,conflictStrategy:o.conflictStrategy,autoCommit:o.autoCommit,onProgress:e=>{const t=a();if(!(null==t?void 0:t.prop_value))return;let o="number"==typeof e.percent?e.percent:void 0;void 0===o&&"number"==typeof e.rowsProcessed&&"number"==typeof e.totalRows&&e.totalRows>0&&(o=e.rowsProcessed/e.totalRows*100),"number"==typeof o&&(t.prop_value.progress_per=Math.min(99,Math.max(0,Math.floor(o))))}});const i=a();(null==i?void 0:i.prop_value)&&(i.prop_value.status="completed",i.prop_value.progress_per=100),l&&setTimeout(()=>{const e=l.eventMessages.findIndex(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});-1!==e&&l.eventMessages.splice(e,1)},2e3)}catch(u){const e=a();(null==e?void 0:e.prop_value)&&(e.prop_value.status="error",e.prop_value.error_message=u instanceof Error?u.message:String(u),e.prop_value.progress_per=0,e.prop_value.remain_time=-1)}}}const y={class:"mzc-client-excel-host",hidden:""},C=o.defineComponent({__name:"ClientExcelUploadPopup",setup(e,{expose:t}){const n=m(),r=l.useGridNotificationStore(),i=new x({notificationStore:()=>r,onHidden:()=>n.hide()});return o.watch(n.showPopup,e=>{if(e){const e=n.activeGrid.value;e&&i.open(e,n.defaultImportOptions.value)}else i.close()},{immediate:!0}),o.onBeforeUnmount(()=>i.destroy()),t({controller:i}),(e,t)=>(o.openBlock(),o.createElementBlock("span",y))}}),_=Symbol("MozGridLocale");function w(){const e=o.inject(_,null);return e||o.computed(()=>{})}const S=o.defineComponent({name:"MozGridLocaleProvider",props:{locale:{type:String,default:void 0}},setup:(e,{slots:t})=>(o.provide(_,o.computed(()=>e.locale)),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})});class b{constructor(){t(this,"instances",new Map),t(this,"appContext",null)}setAppContext(e){this.appContext=e}mount(e,t,n,l={}){const r=this.instances.get(e);if(r)return void Object.assign(r.props,l);const i=o.reactive({...l}),s=o.createApp({render:()=>o.h(n,i)});this.appContext&&(s._context.provides={...this.appContext.provides},s._context.components={...this.appContext.components},s._context.directives={...this.appContext.directives},s._context.config.globalProperties={...this.appContext.config.globalProperties}),this.instances.set(e,{app:s,props:i}),s.mount(t)}mountInstance(e,t,n){const l=o.reactive({...n}),r=o.createApp({render:()=>t(l)});return this.appContext&&(r._context.provides={...this.appContext.provides},r._context.components={...this.appContext.components},r._context.directives={...this.appContext.directives},r._context.config.globalProperties={...this.appContext.config.globalProperties}),r.mount(e),{update:e=>{Object.assign(l,e)},destroy:()=>{r.unmount()}}}updateProps(e,t){const o=this.instances.get(e);o&&Object.assign(o.props,t)}unmount(e){const t=this.instances.get(e);t&&(t.app.unmount(),this.instances.delete(e))}unmountByPrefix(e){for(const t of this.instances.keys())t.startsWith(e)&&this.unmount(t)}unmountAll(){for(const[,e]of this.instances)e.app.unmount();this.instances.clear()}get size(){return this.instances.size}has(e){return this.instances.has(e)}}function M(e,t,o){return e.map(e=>{const n={...e},l=t.get("cell",e.id);if(null==l?void 0:l.slot){const t=l.slot;n.cellRenderer=function(e,t,o){const n=e=>({value:e.value,rowData:e.rowData,columnId:e.columnId,rowId:e.rowId}),l=(e,l)=>{const r=o.mountInstance(e,e=>t(e),n(l));return{update:e=>(r.update(n(e)),!0),destroy(){r.destroy()}}};return l.__cellRendererKind="lifecycle",l}(e.id,t,o)}const r=t.get("header",e.id);if(null==r?void 0:r.slot){const t=r.slot;n.headerRenderer=function(e,t,o){return n=>{const l=document.createElement("div");l.style.display="contents";const r=`header:${e}`,i={columnId:n.columnId,header:n.header};return o.mount(r,l,{render:()=>t(i)},i),l}}(e.id,t,o)}const i=t.get("editor",e.id);if(null==i?void 0:i.slot){const t=i.slot;n.editor=function(e,t,o){return{type:"custom",renderer:n=>{const l=document.createElement("div");l.style.display="contents";const r=`editor:${e}`,i={value:n.value,rowData:n.rowData,columnId:e,onCommit:n.onCommit,onCancel:n.onCancel};return o.mount(r,l,{render:()=>t(i)},i),l},destroy:()=>{o.unmount(`editor:${e}`)}}}(e.id,t,o)}return n})}const B=Symbol("moz-grid-instance"),E=Symbol("moz-grid-container"),R=Symbol("moz-grid-renderer"),k=Symbol("moz-grid-template-registry"),F=Symbol("moz-grid-filter-module"),P=Symbol("moz-grid-sort-module"),z=Symbol("moz-grid-custom-cell-module"),T=Symbol("moz-grid-bulk-editor-module"),$=((e,t)=>{const o=e.__vccOpts||e;for(const[n,l]of t)o[n]=l;return o})(o.defineComponent({__name:"MozGrid",props:o.mergeModels({height:{default:"100%"},contextMenuConfig:{},emptyState:{},locale:{},sourceFields:{},useMultipleChart:{type:Boolean},chartIncludeGrandTotal:{type:Boolean},chartMap:{},useRowGroupSettings:{type:Boolean,default:!0},useFieldSettings:{type:Boolean,default:!0},useFormatSettings:{type:Boolean,default:!0},useLayoutSettings:{type:Boolean,default:!0},useAggregateSettings:{type:Boolean,default:!0},useToolBox:{type:Boolean,default:!0},useToolBoxSetting:{type:Boolean,default:!0},useExtendFooter:{type:Boolean,default:!0},useSummaryFooter:{type:Boolean,default:!1},useSort:{type:Boolean,default:!0},useCustomCell:{type:Boolean,default:!0},useContextMenu:{type:Boolean,default:!0},usePivot:{type:Boolean},usePivotBar:{type:Boolean,default:!0},useChart:{type:Boolean},loading:{type:Boolean},useBuiltinTooltip:{type:Boolean,default:!0},name:{}},{coreConfig:{default:()=>({})},coreConfigModifiers:{}}),emits:o.mergeModels(["ready","data:loaded","row:click","row:dblclick","row:pinned","row:unpinned","row:reordered","cell:click","cell:dblclick","cell:change","cell:beforeEdit","cell:editCommitting","cell:editCommitted","cell:tooltip","selection:changed","column:resize","column:reorder","column:pin","column:visibility","sort:changed","header:click","header:sortClick","header:filterClick","filter:changed","scroll","undo:stateChange","clipboard:copy","clipboard:paste","validation:changed","columnGroup:toggle","rowGroup:toggle","rowGroup:batchToggle","contextmenu"],["update:coreConfig"]),setup(e,{expose:t,emit:r}){const i=o.useModel(e,"coreConfig"),a=e,u=r,p=o.ref(),f=o.useSlots(),g=function(){const e=o.getCurrentInstance();if(!e)throw new Error("[MozGridVue] useAppContext는 setup() 내에서만 호출할 수 있습니다.");return e.appContext}(),v=new b,h=function(){const e=o.reactive([]);function t(e,t){return t?`${e}:${t}`:e}return{register(o){const n=e.findIndex(e=>t(e.type,e.fieldId)===t(o.type,o.fieldId));n>=0?e[n]=o:e.push(o)},unregister(o,n){const l=t(o,n),r=e.findIndex(e=>t(e.type,e.fieldId)===l);r>=0&&e.splice(r,1)},get(o,n){const l=t(o,n);return e.find(e=>t(e.type,e.fieldId)===l)},getAll:t=>e.filter(e=>e.type===t)}}(),x=o.shallowRef(null),y=m(),_=w(),S=o.computed(()=>a.locale??_.value);s.setGridVueLocale(S.value),o.watch(S,e=>s.setGridVueLocale(e));const F=o.ref();let P=null;const z=o.ref({disabled:!0,hasItem:!1}),T=l.useGridNotificationStore(),$=e=>String(e).padStart(2,"0"),D=()=>{const e=new Date;return`${e.getFullYear()}-${$(e.getMonth()+1)}-${$(e.getDate())} ${$(e.getHours())}:${$(e.getMinutes())}:${$(e.getSeconds())}`},I=()=>`mzc-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,H=e=>null==T?void 0:T.eventMessages.find(t=>{var o;return(null==(o=t.prop_value)?void 0:o.session_id)===e}),G=e=>{if(!T)return;const t=T.eventMessages.findIndex(t=>{var o;return(null==(o=t.prop_value)?void 0:o.session_id)===e});-1!==t&&T.eventMessages.splice(t,1)};let L=null;const V={onExportStart:e=>{T&&(L=I(),T.eventMessages.unshift({noti_type:"progress",header_key:"text-file_download",noti_datetime:D(),noti_sender_id:"",prop_value:{session_id:L,file_name:e,status:"in_progress",progress_per:0,operation_type:"download",remain_time:-1}}))},onExportProgress:e=>{if(!L)return;const t=H(L);if(!(null==t?void 0:t.prop_value))return;let o="number"==typeof e.percent?e.percent:void 0;void 0===o&&"number"==typeof e.rowsProcessed&&"number"==typeof e.totalRows&&e.totalRows>0&&(o=e.rowsProcessed/e.totalRows*100),"number"==typeof o&&(t.prop_value.progress_per=Math.min(99,Math.max(0,Math.floor(o))))},onExportComplete:e=>{if(!L)return;const t=L,o=H(t);(null==o?void 0:o.prop_value)&&((null==e?void 0:e.fileName)&&(o.prop_value.file_name=e.fileName),o.prop_value.status="completed",o.prop_value.progress_per=100),setTimeout(()=>G(t),2e3),L=null},onExportError:e=>{if(!L)return;const t=H(L);(null==t?void 0:t.prop_value)&&(t.prop_value.status="error",t.prop_value.error_message=e.message,t.prop_value.progress_per=0,t.prop_value.remain_time=-1),L=null},onExportCancel:()=>{L&&(G(L),L=null)},onImportComplete:()=>{if(!T)return;const e=I();T.eventMessages.unshift({noti_type:"progress",header_key:"text-file_upload",noti_datetime:D(),noti_sender_id:"",prop_value:{session_id:e,file_name:"",status:"completed",progress_per:100,operation_type:"upload",remain_time:-1}}),setTimeout(()=>G(e),2e3)},onImportError:e=>{T&&T.eventMessages.unshift({noti_type:"progress",header_key:"text-file_upload",noti_datetime:D(),noti_sender_id:"",prop_value:{session_id:I(),file_name:"",status:"error",error_message:e.message,progress_per:0,operation_type:"upload",remain_time:-1}})},onClientImportOpen:()=>{var e;if(!x.value)return;const t=(null==(e=a.contextMenuConfig)?void 0:e.clientImportOptions)??{};y.show(x.value,t)}};o.provide(k,h),o.provide(R,v),o.provide(B,x),o.provide(E,F);const O=o.computed(()=>{const e=a.height??"100%";return{height:"number"==typeof e?`${e}px`:e,width:"100%"}});function A(e){return t=>{const o={render:()=>{var t,o;return("tool-items"===e?null==(t=f[e])?void 0:t.call(f,z.value):null==(o=f[e])?void 0:o.call(f))??null}},n=`slot:${e}`;return v.mount(n,t,o,{}),()=>v.unmount(n)}}let j,U;function N(){const e={...i.value},t=function(){const e=i.value.fields;return e===j||(j=e,U=e?M(e,h,v):void 0),U}();return t&&(e.fields=t),void 0!==S.value&&(e.locale=S.value),e}const Y=["row:click","row:dblclick","row:pinned","row:unpinned","row:reordered","cell:click","cell:dblclick","cell:change","cell:beforeEdit","cell:editCommitting","cell:editCommitted","cell:tooltip","selection:changed","column:resize","column:reorder","column:pin","column:visibility","sort:changed","header:click","header:sortClick","header:filterClick","filter:changed","scroll","undo:stateChange","clipboard:copy","clipboard:paste","validation:changed","columnGroup:toggle","rowGroup:toggle","rowGroup:batchToggle","contextmenu"];let K=[];function Z(){for(const e of K)try{e()}catch{}K=[]}function q(){if(!p.value)return null;v.setAppContext(g);const e=new n.GridChrome(p.value,N(),function(){const e=["tool-left","tool-items","option-popup","tool-bottom","notification","footer","empty-state"],t={};for(const o of e)f[o]&&(t[o]=A(o));return{useToolBox:a.useToolBox,useToolBoxSetting:a.useToolBoxSetting,useExtendFooter:a.useExtendFooter,useSummaryFooter:a.useSummaryFooter,useSort:a.useSort,useCustomCell:a.useCustomCell,useContextMenu:a.useContextMenu,useBuiltinTooltip:a.useBuiltinTooltip,usePivot:a.usePivot,usePivotBar:a.usePivotBar,useChart:a.useChart,useRowGroupSettings:a.useRowGroupSettings,useFieldSettings:a.useFieldSettings,useFormatSettings:a.useFormatSettings,useLayoutSettings:a.useLayoutSettings,useAggregateSettings:a.useAggregateSettings,useMultipleChart:a.useMultipleChart,chartIncludeGrandTotal:a.chartIncludeGrandTotal,chartMap:a.chartMap,loading:a.loading,locale:S.value,sourceFields:a.sourceFields,contextMenuConfig:a.contextMenuConfig,emptyState:a.emptyState,slots:t,onToolItemsPropsChange:e=>{z.value=e},excelHooks:V}}());P=e,x.value=e.grid,F.value=p.value;const t=u;e.on("data:loaded",()=>u("data:loaded"));for(const o of Y)e.on(o,e=>t(o,e));return K.push(e.onConfigChange(()=>{i.value=e.getCoreConfig(i.value),e.syncAppliedConfig(N())})),e}function W(){if(!P)return;const{reinitRequired:e}=P.reconcileCoreConfig(N());e&&async function(){if(!P)return;const e=P.captureReinitState();Z(),P.destroy(),P=null,v.unmountAll();const t=q();if(!t)return;await t.ready(),await t.restoreReinitState(e),z.value=t.getToolItemsProps(),u("ready",t.grid,t)}()}o.onMounted(async()=>{await async function(){const e=q();e&&(await e.ready(),z.value=e.getToolItemsProps(),u("ready",e.grid,e))}(),W(),o.watch(()=>{const e=i.value;e.data,e.fields;const t={_locale:S.value};for(const o in e)"data"!==o&&"fields"!==o&&(t[o]=e[o]);return t},()=>W(),{deep:!0}),o.watch(()=>({useToolBox:a.useToolBox,useToolBoxSetting:a.useToolBoxSetting,useExtendFooter:a.useExtendFooter,useSummaryFooter:a.useSummaryFooter,useSort:a.useSort,useCustomCell:a.useCustomCell,useContextMenu:a.useContextMenu,useBuiltinTooltip:a.useBuiltinTooltip,usePivot:a.usePivot,usePivotBar:a.usePivotBar,useRowGroupSettings:a.useRowGroupSettings,useFieldSettings:a.useFieldSettings,useFormatSettings:a.useFormatSettings,useLayoutSettings:a.useLayoutSettings,useAggregateSettings:a.useAggregateSettings}),e=>null==P?void 0:P.setUIOptions(e)),o.watch(()=>a.loading,e=>null==P?void 0:P.setUIOptions({loading:e}),{immediate:!0}),o.watch(()=>a.sourceFields,e=>null==P?void 0:P.setSourceFields(e),{immediate:!0}),o.watch(()=>a.contextMenuConfig,e=>null==P?void 0:P.setContextMenuConfig(e),{deep:!0})}),o.onBeforeUnmount(()=>{Z(),null==P||P.destroy(),P=null,x.value=null,v.unmountAll()}),function(e){const{register:t}=c(),n=new d({id:e.name.value,type:e.type,importDef:async t=>{var o,l,r,i;const s=e.gridInstance.value;if(s){if(!t){const t=n.default;return void(t&&(await s.applyConfig(t),t.customCellConfig&&(null==(o=e.setCustomCellState)||o.call(e,t.customCellConfig)),t.columnFormatConfig&&(null==(l=e.setColumnFormatState)||l.call(e,t.columnFormatConfig))))}await s.applyConfig(t),t.customCellConfig&&(null==(r=e.setCustomCellState)||r.call(e,t.customCellConfig)),t.columnFormatConfig&&(null==(i=e.setColumnFormatState)||i.call(e,t.columnFormatConfig))}},exportDef:()=>{var t,o;const n=e.gridInstance.value;return n?{...n.getConfig(),customCellConfig:(null==(t=e.getCustomCellState)?void 0:t.call(e))??null,columnFormatConfig:(null==(o=e.getColumnFormatState)?void 0:o.call(e))??null}:null}});let l=!1;o.watch(e.gridInstance,r=>{if(!r||l)return;if(!e.name.value)return;const i=r.on("data:loaded",()=>{l||(n.setDefaultToCurrent(),o.nextTick(()=>{t(n),l=!0,i()}))})})}({name:o.toRef(a,"name"),type:"pivot"===i.value.mode?"mozPivotGrid":"mozFlatGrid",gridInstance:x,getCustomCellState:()=>(null==P?void 0:P.customCell.getCustomCell())??null,setCustomCellState:e=>{e&&P&&P.customCell.setCustomCell(e)},getColumnFormatState:()=>(null==P?void 0:P.columnFormat.getConfig())??null,setColumnFormatState:e=>{e&&P&&P.columnFormat.setConfig(e)}});return t(new Proxy({},{get(e,t){if("chrome"===t)return P;const o=P;if(!o)return;const n=o[t];return"function"==typeof n?n.bind(o):n},has:(e,t)=>"chrome"===t||!!P&&t in P})),(e,t)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{ref_key:"hostRef",ref:p,class:"moz-grid-chrome",style:o.normalizeStyle(O.value)},null,4),o.renderSlot(e.$slots,"default",{},void 0,!0),x.value?(o.openBlock(),o.createBlock(C,{key:0})):o.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-6f706231"]]),D=o.defineComponent({name:"CellTemplate",props:{field:{type:String,required:!0}},setup(e){const t=o.inject(k),n=o.useSlots();return t?(o.onMounted(()=>{n.default&&t.register({type:"cell",fieldId:e.field,slot:n.default})}),o.onBeforeUnmount(()=>{t.unregister("cell",e.field)}),()=>null):()=>null}}),I=o.defineComponent({name:"HeaderTemplate",props:{field:{type:String,required:!0}},setup(e){const t=o.inject(k),n=o.useSlots();return t?(o.onMounted(()=>{n.default&&t.register({type:"header",fieldId:e.field,slot:n.default})}),o.onBeforeUnmount(()=>{t.unregister("header",e.field)}),()=>null):()=>null}}),H=o.defineComponent({name:"CellEditor",props:{field:{type:String,required:!0}},setup(e){const t=o.inject(k),n=o.useSlots();return t?(o.onMounted(()=>{n.default&&t.register({type:"editor",fieldId:e.field,slot:n.default})}),o.onBeforeUnmount(()=>{t.unregister("editor",e.field)}),()=>null):()=>null}}),G=o.defineComponent({name:"DetailTemplate",props:{minHeight:{type:Number,default:100},maxHeight:{type:Number},singleExpand:{type:Boolean,default:!1},keepDetailRows:{type:Boolean,default:!0}},setup(e){const t=o.inject(B),n=o.inject(R),l=o.useSlots();return t&&n?(o.onMounted(()=>{const o=t.value;if(!o||!l.default)return;const r=l.default;o.masterDetail.setConfig({minHeight:e.minHeight,maxHeight:e.maxHeight,singleExpand:e.singleExpand,keepMasterDetailRows:e.keepDetailRows,renderer:(e,t,o)=>{const l=`detail:${o}`,i={parentData:t,dataIndex:o};return n.mount(l,e,{render:()=>r(i)},i),()=>{n.unmount(l)}}})}),o.onBeforeUnmount(()=>{null==n||n.unmountByPrefix("detail:")}),()=>null):()=>null}}),L=o.defineComponent({name:"GroupTemplate",setup(){const e=o.inject(B),t=o.inject(R),n=o.useSlots();return e&&t?(o.onMounted(()=>{const o=e.value;if(!o||!n.default)return;const l=n.default;o.formatRow.addHandler("_groupTemplate",e=>{if("group-row"!==e.type)return;const o=e.ctx,n=o.element;if(!n)return;const r=`group:${o.viewIndex}`,i={groupKey:o.column,groupValue:o.value,level:o.level,count:o.itemCount,isExpanded:!o.collapsed};t.mount(r,n,{render:()=>l(i)},i)})}),o.onBeforeUnmount(()=>{var o;null==t||t.unmountByPrefix("group:"),null==(o=e.value)||o.formatRow.removeHandler("_groupTemplate")}),()=>null):()=>null}});let V=!1;function O(e){return e?(Object.prototype.hasOwnProperty.call(e,"formatHeaderRow")||Object.defineProperty(e,"formatHeaderRow",{configurable:!0,get:()=>(V||(V=!0),e.formatHeader)}),e):null}const A=o.defineComponent({__name:"MozGridVue",props:{name:{},useToolBox:{type:Boolean,default:!0},useToolBoxSetting:{type:Boolean,default:!0},useExtendFooter:{type:Boolean,default:!0},useSummaryFooter:{type:Boolean,default:!1},useSort:{type:Boolean,default:!0},useCustomCell:{type:Boolean,default:!0},contextMenuConfig:{default:()=>({})},useContextMenu:{type:Boolean,default:!0},loading:{type:Boolean},emptyState:{},fields:{},data:{},mode:{},pivotRowFields:{},pivotColumnFields:{},pivotValueFields:{},height:{default:"100%"},keyFields:{},theme:{},rowHeight:{},headerHeight:{},showHeader:{type:Boolean,default:!0},resizableColumns:{type:Boolean,default:!0},reorderableColumns:{type:Boolean,default:!0},showRowHeader:{type:[Boolean,Object]},rowHeader:{type:[Boolean,Object]},rowSelection:{},cellSelection:{default:()=>({mode:"range"})},cellSelectionImpliesRows:{type:Boolean},editable:{type:Boolean,default:!1},tooltipMode:{default:"overflow"},alternatingRows:{type:Boolean,default:!0},autoFitColumns:{type:Boolean},dynamicRowHeights:{type:Boolean,default:!1},reorderableRows:{type:Boolean,default:!1},locale:{},engine:{},useWorker:{type:Boolean},loader:{},preventKeyEdit:{type:Boolean,default:!0},showStatusBar:{type:Boolean},showDragHandleColumn:{type:Boolean},undoStack:{},formatRow:{},translations:{},rowStyle:{},headerStyle:{},rowHeightChangeThreshold:{},group:{},columnGroups:{},rowTemplate:{}},emits:["ready","data:loaded","row:click","row:dblclick","row:pinned","row:unpinned","row:reordered","cell:click","cell:dblclick","cell:change","cell:beforeEdit","cell:editCommitting","cell:editCommitted","cell:tooltip","selection:changed","column:resize","column:reorder","column:pin","column:visibility","sort:changed","filter:changed","undo:stateChange","clipboard:copy","clipboard:paste","validation:changed","columnGroup:toggle","scroll","contextmenu"],setup(e,{expose:t,emit:l}){const r=e,i=l,s=o.computed(()=>{const e={...r};for(const t of n.WRAPPER_EXTRA_KEYS)delete e[t];return delete e.name,delete e.locale,e}),a=o.computed(()=>{const e=r,t={};for(const o of n.WRAPPER_EXTRA_KEYS)void 0!==e[o]&&(t[o]=e[o]);return void 0!==e.locale&&(t.locale=e.locale),t}),u=Object.fromEntries(["ready","data:loaded","row:click","row:dblclick","row:pinned","row:unpinned","row:reordered","cell:click","cell:dblclick","cell:change","cell:beforeEdit","cell:editCommitting","cell:editCommitted","cell:tooltip","selection:changed","column:resize","column:reorder","column:pin","column:visibility","sort:changed","filter:changed","undo:stateChange","clipboard:copy","clipboard:paste","validation:changed","columnGroup:toggle","scroll","contextmenu"].map(e=>[e,(...t)=>i(e,...t)]));u.ready=e=>i("ready",O(e));const d=o.ref(null);function c(){return d.value??null}const p={};return Object.defineProperties(p,{grid:{enumerable:!0,get:()=>{var e;return O(null==(e=c())?void 0:e.grid)}},core:{enumerable:!0,get:()=>p},filterModule:{enumerable:!0,get:()=>{var e;return null==(e=c())?void 0:e.filter}},sortModule:{enumerable:!0,get:()=>{var e;return null==(e=c())?void 0:e.sort}},customCellModule:{enumerable:!0,get:()=>{var e;return null==(e=c())?void 0:e.customCell}},bulkEditorModule:{enumerable:!0,get:()=>{var e;return null==(e=c())?void 0:e.bulkEditor}}}),p.refresh=async()=>{var e,t;return null==(t=null==(e=c())?void 0:e.grid)?void 0:t.refresh()},p.loadData=async e=>{var t,o;return null==(o=null==(t=c())?void 0:t.grid)?void 0:o.loadData(e)},p.sort=async e=>{var t,o;return null==(o=null==(t=c())?void 0:t.grid)?void 0:o.sort(e)},p.filter=async e=>{var t,o;return null==(o=null==(t=c())?void 0:t.grid)?void 0:o.filter(e)},t(p),(e,t)=>(o.openBlock(),o.createBlock($,o.mergeProps({ref_key:"mozRef",ref:d,coreConfig:s.value},a.value,{name:r.name},o.toHandlers(o.unref(u))),o.createSlots({default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:2},[e.$slots["tool-left"]?{name:"tool-left",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"tool-left")]),key:"0"}:void 0,e.$slots["tool-items"]?{name:"tool-items",fn:o.withCtx(t=>[o.renderSlot(e.$slots,"tool-items",o.normalizeProps(o.guardReactiveProps(t)))]),key:"1"}:void 0,e.$slots.notification?{name:"notification",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"notification")]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"footer")]),key:"3"}:void 0,e.$slots.customState?{name:"empty-state",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"customState")]),key:"4"}:void 0]),1040,["coreConfig","name"]))}}),j=o.defineComponent({__name:"MozPivotVue",props:{name:{},data:{},rowFields:{},columnFields:{},valueFields:{},height:{default:"100%"},showRowSubTotals:{type:Boolean,default:!1},showRowGrandTotals:{type:Boolean,default:!0},showColumnSubTotals:{type:Boolean,default:!1},showColumnGrandTotals:{type:Boolean,default:!0},trackSourceRows:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},alternatingRows:{type:Boolean,default:!1},tooltipMode:{default:"overflow"},rowSelection:{},cellSelection:{default:()=>({mode:"range"})},cellSelectionImpliesRows:{type:Boolean},useToolBox:{type:Boolean,default:!0},useToolBoxSetting:{type:Boolean,default:!0},useFilter:{type:Boolean,default:!0},useSort:{type:Boolean,default:!0},useCustomCell:{type:Boolean,default:!0},useExtendFooter:{type:Boolean,default:!0},useSummaryFooter:{type:Boolean,default:!1},useContextMenu:{type:Boolean,default:!0},contextMenuConfig:{},useChart:{type:Boolean,default:!1},fields:{},availableFields:{},useMultipleChart:{type:Boolean,default:!0},chartIncludeGrandTotal:{type:Boolean,default:!1},chartMap:{},loading:{type:Boolean},emptyState:{}},emits:["ready","data:loaded","filter:changed","pivot:configured","pivot:toggled","update:rowFields","update:columnFields","update:valueFields"],setup(e,{expose:t,emit:l}){const r=e,i=l,s=o.computed(()=>{const e={...r};for(const t of n.WRAPPER_EXTRA_KEYS)delete e[t];return delete e.name,delete e.locale,delete e.availableFields,delete e.useFilter,e.mode="pivot",e}),a=o.computed(()=>{const e=r,t={};for(const o of n.WRAPPER_EXTRA_KEYS)void 0!==e[o]&&(t[o]=e[o]);return void 0!==e.locale&&(t.locale=e.locale),t.sourceFields=e.sourceFields??e.availableFields??e.fields,t}),u=Object.fromEntries(["ready","data:loaded","filter:changed","pivot:toggled"].map(e=>[e,(...t)=>i(e,...t)]));function d(e){var t,o,n;const l=e;i("update:rowFields",l.rowFields??[]),i("update:columnFields",l.columnFields??[]),i("update:valueFields",l.valueFields??[]);const r=null==(n=null==(o=null==(t=p())?void 0:t.pivot)?void 0:o.getRawConfig)?void 0:n.call(o);r&&i("pivot:configured",r)}u.ready=e=>i("ready",O(e));const c=o.ref(null);function p(){return c.value??null}function m(){var e,t;return null==(t=null==(e=p())?void 0:e.grid)?void 0:t.pivot}const f=o.computed({get:()=>{var e,t;return(null==(t=null==(e=p())?void 0:e.chart)?void 0:t.visible)??!1},set:e=>{var t,o;return null==(o=null==(t=p())?void 0:t.chart)?void 0:o.setVisible(e)}}),g={};return Object.defineProperties(g,{grid:{enumerable:!0,get:()=>{var e;return O(null==(e=p())?void 0:e.grid)}},core:{enumerable:!0,get:()=>g},pivotApi:{enumerable:!0,get:()=>m()??null},filterModule:{enumerable:!0,get:()=>{var e;return null==(e=p())?void 0:e.filter}},sortModule:{enumerable:!0,get:()=>{var e;return null==(e=p())?void 0:e.sort}},customCellModule:{enumerable:!0,get:()=>{var e;return null==(e=p())?void 0:e.customCell}},showChart:{enumerable:!0,get:()=>f.value,set:e=>{f.value=e}}}),g.refresh=async()=>{var e,t;return null==(t=null==(e=p())?void 0:e.grid)?void 0:t.refresh()},g.setConfig=async e=>{var t;return null==(t=m())?void 0:t.setConfig(e)},g.getResult=()=>{var e;return(null==(e=m())?void 0:e.getResult())??null},g.expandAll=async()=>{var e;return null==(e=m())?void 0:e.expandAllRows()},g.collapseAll=async()=>{var e;return null==(e=m())?void 0:e.collapseAllRows()},g.expandToLevel=async e=>{var t;return null==(t=m())?void 0:t.expandRowToLevel(e)},g.toggleChart=()=>{f.value=!f.value},t(g),(e,t)=>(o.openBlock(),o.createBlock($,o.mergeProps({ref_key:"mozRef",ref:c,coreConfig:s.value},a.value,{name:r.name,"onUpdate:coreConfig":d},o.toHandlers(o.unref(u))),o.createSlots({default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:2},[e.$slots["tool-left"]?{name:"tool-left",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"tool-left")]),key:"0"}:void 0,e.$slots["tool-items"]?{name:"tool-items",fn:o.withCtx(t=>[o.renderSlot(e.$slots,"tool-items",o.normalizeProps(o.guardReactiveProps(t)))]),key:"1"}:void 0,e.$slots.footer?{name:"footer",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"footer")]),key:"2"}:void 0,e.$slots.customState?{name:"empty-state",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"customState")]),key:"3"}:void 0]),1040,["coreConfig","name"]))}});exports.GridNotificationKey=l.GridNotificationKey,exports.provideGridNotification=l.provideGridNotification,exports.useGridNotificationStore=l.useGridNotificationStore,exports.ExcelDataType=s.DataType,exports.FileParameter=s.FileParameter,exports.enUS=s.enUS,exports.getGridVueLocale=s.getGridVueLocale,exports.getGridVueLocaleCode=s.getGridVueLocaleCode,exports.jaJP=s.jaJP,exports.koKR=s.koKR,exports.normalizeGridVueLocale=s.normalizeGridVueLocale,exports.openToast=s.openToast,exports.setGridVueLocale=s.setGridVueLocale,exports.showMessage=s.showMessage,exports.useExcelDownloadStore=s.useExcelDownloadStore,exports.useExcelStore=s.useExcelStore,exports.useExcelUploadStore=s.useExcelUploadStore,exports.zhCN=s.zhCN,Object.defineProperty(exports,"ROW_HEADER_COLUMN_ID",{enumerable:!0,get:()=>u.ROW_HEADER_COLUMN_ID}),Object.defineProperty(exports,"UndoStack",{enumerable:!0,get:()=>u.UndoStack}),Object.defineProperty(exports,"getCornerCell",{enumerable:!0,get:()=>u.getCornerCell}),Object.defineProperty(exports,"getRowHeaderCell",{enumerable:!0,get:()=>u.getRowHeaderCell}),exports.CellEditor=H,exports.CellTemplate=D,exports.ClientExcelUploadController=x,exports.ClientExcelUploadPopup=C,exports.DetailTemplate=G,exports.GRID_BULK_EDITOR_MODULE_KEY=T,exports.GRID_CUSTOM_CELL_MODULE_KEY=z,exports.GRID_FILTER_MODULE_KEY=F,exports.GRID_INSTANCE_KEY=B,exports.GRID_RENDERER_KEY=R,exports.GRID_SORT_MODULE_KEY=P,exports.GRID_TEMPLATE_REGISTRY_KEY=k,exports.GroupTemplate=L,exports.HeaderTemplate=I,exports.MOZ_GRID_LOCALE_KEY=_,exports.MozGrid=$,exports.MozGridLocaleProvider=S,exports.MozGridVue=A,exports.MozPivotVue=j,exports.StreamingParameter=class{constructor(e){t(this,"params"),t(this,"loading",!0),t(this,"size",0),t(this,"offset",0),t(this,"onReceived"),t(this,"onClosed"),t(this,"onHandleError"),t(this,"onCancelClick"),t(this,"_complete",!1),this.params=e}get ipcObject(){return this.params}get percent(){return 0===this.offset||0===this.size?0:Math.round(this.offset/this.size*100)}get complete(){return this._complete}received(e){this.offset++,this.onReceived&&this.onReceived(e)}closed(e=!0){this._complete=e,this.onClosed&&this.onClosed()}handleError(e,t=!0){this._complete=t,this.onHandleError&&this.onHandleError(e)}},exports.UserLayoutInstance=d,exports.VueRenderer=b,exports.downloadBlob=function(e,t){const o=URL.createObjectURL(e),n=document.createElement("a");n.href=o,n.download=t,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>URL.revokeObjectURL(o),0)},exports.exportCsv=async function(e){let t,o;if("pivot"===e.pivot.getMode()){const n=await e.pivot.getDataMatrix();if(!n)return;t=n.headers,o=n.rows}else{const n=await e.getExportData({scope:"all"});if(!n)return;const{headers:l,rows:r}=n,i=l.map(e=>e.id);t=l.map(e=>e.header),o=r.map(e=>i.map(t=>e[t]))}const n=[];n.push(t.map(g).join(","));for(const a of o)n.push(a.map(g).join(","));const l="\ufeff"+n.join("\r\n"),r=new Blob([l],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),s=document.createElement("a");s.href=i,s.download=`export_${(new Date).toISOString().slice(0,10)}.csv`,s.click(),URL.revokeObjectURL(i)},exports.generateSessionId=f,exports.pickFile=function(e=".xlsx"){return new Promise(t=>{const o=document.createElement("input");o.type="file",o.accept=e,o.style.display="none";let n=!1;const l=()=>{o.parentNode&&o.parentNode.removeChild(o)};o.onchange=()=>{if(n)return;n=!0;const e=o.files&&o.files.length>0?o.files[0]:null;l(),t(e)};const r=()=>{window.removeEventListener("focus",r),setTimeout(()=>{n||(n=!0,l(),t(null))},300)};window.addEventListener("focus",r),document.body.appendChild(o),o.click()})},exports.runClientExport=async function(e,t,o){var n;const l=`${t.exportFileName??"export"}_${a().format("YYYYMMDD")}.xlsx`,r=f();o&&o.eventMessages.unshift({noti_type:"progress",header_key:"text-file_download",noti_datetime:a().format("YYYY-MM-DD HH:mm:ss"),noti_sender_id:"",prop_value:{session_id:r,file_name:l,status:"in_progress",progress_per:0,operation_type:"download",remain_time:-1}});try{if(await e.io.saveExcelToFile({scope:"all",includeHeaders:!0,suggestedName:l,fallbackToDownload:!0,sheetSplit:"auto",onProgress:e=>{if(!o)return;const t=o.eventMessages.find(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});if(!(null==t?void 0:t.prop_value))return;let n="number"==typeof e.percent?e.percent:void 0;void 0===n&&"number"==typeof e.rowsProcessed&&"number"==typeof e.totalRows&&e.totalRows>0&&(n=e.rowsProcessed/e.totalRows*100),"number"==typeof n&&(t.prop_value.progress_per=Math.min(99,Math.max(0,Math.floor(n))))},...t.clientExportOptions??{}}),o){const e=o.eventMessages.find(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});(null==e?void 0:e.prop_value)&&(e.prop_value.status="completed",e.prop_value.progress_per=100),setTimeout(()=>{const e=o.eventMessages.findIndex(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});-1!==e&&o.eventMessages.splice(e,1)},2e3)}null==(n=t.onClientExportComplete)||n.call(t,new Blob)}catch(i){if(i instanceof DOMException&&"AbortError"===i.name){if(o){const e=o.eventMessages.findIndex(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});-1!==e&&o.eventMessages.splice(e,1)}return}if(o){const e=o.eventMessages.find(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});(null==e?void 0:e.prop_value)&&(e.prop_value.status="error",e.prop_value.error_message=i instanceof Error?i.message:String(i),e.prop_value.progress_per=0,e.prop_value.remain_time=-1)}}},exports.useClientExcelStore=m,exports.useMozGridLocale=w,exports.useUserLayoutModule=c;
77
+ `}confirm(){const e=this.grid,t=this.file;if(!e||!t)return;const o={...this.options};this.close(),this.runBackgroundImport(e,t,o)}async runBackgroundImport(e,t,o){const n=s.getGridVueLocale(),l=this.deps.notificationStore(),r=f(),i=t.name,a=()=>null==l?void 0:l.eventMessages.find(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});l&&l.eventMessages.unshift({noti_type:"progress",header_key:n.clientExcelImportProgress,noti_datetime:h(),noti_sender_id:"",prop_value:{session_id:r,file_name:i,status:"in_progress",progress_per:0,operation_type:"upload",remain_time:-1}});try{const n=e.changes;(null==n?void 0:n.hasChanges)&&await n.discardAll(),await e.io.fromExcel(t,{mode:o.mode,conflictStrategy:o.conflictStrategy,autoCommit:o.autoCommit,onProgress:e=>{const t=a();if(!(null==t?void 0:t.prop_value))return;let o="number"==typeof e.percent?e.percent:void 0;void 0===o&&"number"==typeof e.rowsProcessed&&"number"==typeof e.totalRows&&e.totalRows>0&&(o=e.rowsProcessed/e.totalRows*100),"number"==typeof o&&(t.prop_value.progress_per=Math.min(99,Math.max(0,Math.floor(o))))}});const i=a();(null==i?void 0:i.prop_value)&&(i.prop_value.status="completed",i.prop_value.progress_per=100),l&&setTimeout(()=>{const e=l.eventMessages.findIndex(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});-1!==e&&l.eventMessages.splice(e,1)},2e3)}catch(u){const e=a();(null==e?void 0:e.prop_value)&&(e.prop_value.status="error",e.prop_value.error_message=u instanceof Error?u.message:String(u),e.prop_value.progress_per=0,e.prop_value.remain_time=-1)}}}const y={class:"mzc-client-excel-host",hidden:""},C=o.defineComponent({__name:"ClientExcelUploadPopup",setup(e,{expose:t}){const n=m(),r=l.useGridNotificationStore(),i=new x({notificationStore:()=>r,onHidden:()=>n.hide()});return o.watch(n.showPopup,e=>{if(e){const e=n.activeGrid.value;e&&i.open(e,n.defaultImportOptions.value)}else i.close()},{immediate:!0}),o.onBeforeUnmount(()=>i.destroy()),t({controller:i}),(e,t)=>(o.openBlock(),o.createElementBlock("span",y))}}),_=Symbol("MozGridConfig");function w(){const e=o.inject(_,o.computed(()=>({}))),t=o.inject(M,null);return o.computed(()=>({...e.value,locale:(null==t?void 0:t.value)??e.value.locale}))}function S(e){const t=w(),n=o.computed(()=>{const o=e(),n={locale:o.locale??t.value.locale,timeZone:o.timeZone??t.value.timeZone};return void 0!==n.timeZone&&new Intl.DateTimeFormat("en",{timeZone:n.timeZone}),n});o.provide(_,n),o.provide(M,o.computed(()=>n.value.locale))}const b=o.defineComponent({name:"MozGridConfigProvider",props:{config:{type:Object,default:()=>({})}},setup:(e,{slots:t})=>(S(()=>e.config),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),M=Symbol("MozGridLocale");const B=o.defineComponent({name:"MozGridLocaleProvider",props:{locale:{type:String,default:void 0}},setup:(e,{slots:t})=>(S(()=>({locale:e.locale})),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})});class E{constructor(){t(this,"instances",new Map),t(this,"appContext",null)}setAppContext(e){this.appContext=e}mount(e,t,n,l={}){const r=this.instances.get(e);if(r)return void Object.assign(r.props,l);const i=o.reactive({...l}),s=o.createApp({render:()=>o.h(n,i)});this.appContext&&(s._context.provides={...this.appContext.provides},s._context.components={...this.appContext.components},s._context.directives={...this.appContext.directives},s._context.config.globalProperties={...this.appContext.config.globalProperties}),this.instances.set(e,{app:s,props:i}),s.mount(t)}mountInstance(e,t,n){const l=o.reactive({...n}),r=o.createApp({render:()=>t(l)});return this.appContext&&(r._context.provides={...this.appContext.provides},r._context.components={...this.appContext.components},r._context.directives={...this.appContext.directives},r._context.config.globalProperties={...this.appContext.config.globalProperties}),r.mount(e),{update:e=>{Object.assign(l,e)},destroy:()=>{r.unmount()}}}updateProps(e,t){const o=this.instances.get(e);o&&Object.assign(o.props,t)}unmount(e){const t=this.instances.get(e);t&&(t.app.unmount(),this.instances.delete(e))}unmountByPrefix(e){for(const t of this.instances.keys())t.startsWith(e)&&this.unmount(t)}unmountAll(){for(const[,e]of this.instances)e.app.unmount();this.instances.clear()}get size(){return this.instances.size}has(e){return this.instances.has(e)}}function R(e,t,o){return e.map(e=>{const n={...e},l=t.get("cell",e.id);if(null==l?void 0:l.slot){const t=l.slot;n.cellRenderer=function(e,t,o){const n=e=>({value:e.value,rowData:e.rowData,columnId:e.columnId,rowId:e.rowId}),l=(e,l)=>{const r=o.mountInstance(e,e=>t(e),n(l));return{update:e=>(r.update(n(e)),!0),destroy(){r.destroy()}}};return l.__cellRendererKind="lifecycle",l}(e.id,t,o)}const r=t.get("header",e.id);if(null==r?void 0:r.slot){const t=r.slot;n.headerRenderer=function(e,t,o){return n=>{const l=document.createElement("div");l.style.display="contents";const r=`header:${e}`,i={columnId:n.columnId,header:n.header};return o.mount(r,l,{render:()=>t(i)},i),l}}(e.id,t,o)}const i=t.get("editor",e.id);if(null==i?void 0:i.slot){const t=i.slot;n.editor=function(e,t,o){return{type:"custom",renderer:n=>{const l=document.createElement("div");l.style.display="contents";const r=`editor:${e}`,i={value:n.value,rowData:n.rowData,columnId:e,onCommit:n.onCommit,onCancel:n.onCancel};return o.mount(r,l,{render:()=>t(i)},i),l},destroy:()=>{o.unmount(`editor:${e}`)}}}(e.id,t,o)}return n})}const k=Symbol("moz-grid-instance"),F=Symbol("moz-grid-container"),z=Symbol("moz-grid-renderer"),P=Symbol("moz-grid-template-registry"),T=Symbol("moz-grid-filter-module"),D=Symbol("moz-grid-sort-module"),I=Symbol("moz-grid-custom-cell-module"),$=Symbol("moz-grid-bulk-editor-module"),G=((e,t)=>{const o=e.__vccOpts||e;for(const[n,l]of t)o[n]=l;return o})(o.defineComponent({__name:"MozGrid",props:o.mergeModels({height:{default:"100%"},contextMenuConfig:{},emptyState:{},locale:{},sourceFields:{},useMultipleChart:{type:Boolean},chartIncludeGrandTotal:{type:Boolean},chartMap:{},useRowGroupSettings:{type:Boolean,default:!0},useFieldSettings:{type:Boolean,default:!0},useFormatSettings:{type:Boolean,default:!0},useLayoutSettings:{type:Boolean,default:!0},useAggregateSettings:{type:Boolean,default:!0},useToolBox:{type:Boolean,default:!0},useToolBoxSetting:{type:Boolean,default:!0},useExtendFooter:{type:Boolean,default:!0},useSummaryFooter:{type:Boolean,default:!1},useSort:{type:Boolean,default:!0},useCustomCell:{type:Boolean,default:!0},useContextMenu:{type:Boolean,default:!0},usePivot:{type:Boolean},usePivotBar:{type:Boolean,default:!0},useChart:{type:Boolean},loading:{type:Boolean},useBuiltinTooltip:{type:Boolean,default:!0},name:{}},{coreConfig:{default:()=>({})},coreConfigModifiers:{}}),emits:o.mergeModels(["ready","data:loaded","data:changed","row:click","row:dblclick","row:pinned","row:unpinned","row:reordered","cell:click","cell:dblclick","cell:change","cell:beforeEdit","cell:editCommitting","cell:editCommitted","cell:tooltip","selection:changed","column:resize","column:reorder","column:pin","column:visibility","sort:changed","header:click","header:sortClick","header:filterClick","filter:changed","scroll","undo:stateChange","clipboard:copy","clipboard:paste","validation:changed","columnGroup:toggle","rowGroup:toggle","rowGroup:batchToggle","contextmenu"],["update:coreConfig"]),setup(e,{expose:t,emit:r}){const i=o.useModel(e,"coreConfig"),a=e,u=r,p=o.ref(),f=o.useSlots(),g=function(){const e=o.getCurrentInstance();if(!e)throw new Error("[MozGridVue] useAppContext는 setup() 내에서만 호출할 수 있습니다.");return e.appContext}(),v=new E,h=function(){const e=o.reactive([]);function t(e,t){return t?`${e}:${t}`:e}return{register(o){const n=e.findIndex(e=>t(e.type,e.fieldId)===t(o.type,o.fieldId));n>=0?e[n]=o:e.push(o)},unregister(o,n){const l=t(o,n),r=e.findIndex(e=>t(e.type,e.fieldId)===l);r>=0&&e.splice(r,1)},get(o,n){const l=t(o,n);return e.find(e=>t(e.type,e.fieldId)===l)},getAll:t=>e.filter(e=>e.type===t)}}(),x=o.shallowRef(null),y=m(),_=w(),S=o.computed(()=>a.locale??i.value.locale??_.value.locale),b=o.computed(()=>i.value.timeZone??_.value.timeZone);s.setGridVueLocale(S.value),o.watch(S,e=>s.setGridVueLocale(e));const M=o.ref();let B=null;const T=o.ref({disabled:!0,hasItem:!1}),D=l.useGridNotificationStore(),I=e=>String(e).padStart(2,"0"),$=()=>{const e=new Date;return`${e.getFullYear()}-${I(e.getMonth()+1)}-${I(e.getDate())} ${I(e.getHours())}:${I(e.getMinutes())}:${I(e.getSeconds())}`},G=()=>`mzc-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,H=e=>null==D?void 0:D.eventMessages.find(t=>{var o;return(null==(o=t.prop_value)?void 0:o.session_id)===e}),L=e=>{if(!D)return;const t=D.eventMessages.findIndex(t=>{var o;return(null==(o=t.prop_value)?void 0:o.session_id)===e});-1!==t&&D.eventMessages.splice(t,1)};let V=null;const O={onExportStart:e=>{D&&(V=G(),D.eventMessages.unshift({noti_type:"progress",header_key:"text-file_download",noti_datetime:$(),noti_sender_id:"",prop_value:{session_id:V,file_name:e,status:"in_progress",progress_per:0,operation_type:"download",remain_time:-1}}))},onExportProgress:e=>{if(!V)return;const t=H(V);if(!(null==t?void 0:t.prop_value))return;let o="number"==typeof e.percent?e.percent:void 0;void 0===o&&"number"==typeof e.rowsProcessed&&"number"==typeof e.totalRows&&e.totalRows>0&&(o=e.rowsProcessed/e.totalRows*100),"number"==typeof o&&(t.prop_value.progress_per=Math.min(99,Math.max(0,Math.floor(o))))},onExportComplete:e=>{if(!V)return;const t=V,o=H(t);(null==o?void 0:o.prop_value)&&((null==e?void 0:e.fileName)&&(o.prop_value.file_name=e.fileName),o.prop_value.status="completed",o.prop_value.progress_per=100),setTimeout(()=>L(t),2e3),V=null},onExportError:e=>{if(!V)return;const t=H(V);(null==t?void 0:t.prop_value)&&(t.prop_value.status="error",t.prop_value.error_message=e.message,t.prop_value.progress_per=0,t.prop_value.remain_time=-1),V=null},onExportCancel:()=>{V&&(L(V),V=null)},onImportComplete:()=>{if(!D)return;const e=G();D.eventMessages.unshift({noti_type:"progress",header_key:"text-file_upload",noti_datetime:$(),noti_sender_id:"",prop_value:{session_id:e,file_name:"",status:"completed",progress_per:100,operation_type:"upload",remain_time:-1}}),setTimeout(()=>L(e),2e3)},onImportError:e=>{D&&D.eventMessages.unshift({noti_type:"progress",header_key:"text-file_upload",noti_datetime:$(),noti_sender_id:"",prop_value:{session_id:G(),file_name:"",status:"error",error_message:e.message,progress_per:0,operation_type:"upload",remain_time:-1}})},onClientImportOpen:()=>{var e;if(!x.value)return;const t=(null==(e=a.contextMenuConfig)?void 0:e.clientImportOptions)??{};y.show(x.value,t)}};o.provide(P,h),o.provide(z,v),o.provide(k,x),o.provide(F,M);const A=o.computed(()=>{const e=a.height??"100%";return{height:"number"==typeof e?`${e}px`:e,width:"100%"}});function j(e){return t=>{const o={render:()=>{var t,o;return("tool-items"===e?null==(t=f[e])?void 0:t.call(f,T.value):null==(o=f[e])?void 0:o.call(f))??null}},n=`slot:${e}`;return v.mount(n,t,o,{}),()=>v.unmount(n)}}let U,Z;function N(){const e={...i.value},t=function(){const e=i.value.fields;return e===U||(U=e,Z=e?R(e,h,v):void 0),Z}();return t&&(e.fields=t),void 0!==S.value&&(e.locale=S.value),e.timeZone=b.value,e}const Y=["data:changed","row:click","row:dblclick","row:pinned","row:unpinned","row:reordered","cell:click","cell:dblclick","cell:change","cell:beforeEdit","cell:editCommitting","cell:editCommitted","cell:tooltip","selection:changed","column:resize","column:reorder","column:pin","column:visibility","sort:changed","header:click","header:sortClick","header:filterClick","filter:changed","scroll","undo:stateChange","clipboard:copy","clipboard:paste","validation:changed","columnGroup:toggle","rowGroup:toggle","rowGroup:batchToggle","contextmenu"];let K=[];function q(){for(const e of K)try{e()}catch{}K=[]}function W(){if(!p.value)return null;v.setAppContext(g);const e=new n.GridChrome(p.value,N(),function(){const e=["tool-left","tool-items","option-popup","tool-bottom","notification","footer","empty-state"],t={};for(const o of e)f[o]&&(t[o]=j(o));return{useToolBox:a.useToolBox,useToolBoxSetting:a.useToolBoxSetting,useExtendFooter:a.useExtendFooter,useSummaryFooter:a.useSummaryFooter,useSort:a.useSort,useCustomCell:a.useCustomCell,useContextMenu:a.useContextMenu,useBuiltinTooltip:a.useBuiltinTooltip,usePivot:a.usePivot,usePivotBar:a.usePivotBar,useChart:a.useChart,useRowGroupSettings:a.useRowGroupSettings,useFieldSettings:a.useFieldSettings,useFormatSettings:a.useFormatSettings,useLayoutSettings:a.useLayoutSettings,useAggregateSettings:a.useAggregateSettings,useMultipleChart:a.useMultipleChart,chartIncludeGrandTotal:a.chartIncludeGrandTotal,chartMap:a.chartMap,loading:a.loading,locale:S.value,sourceFields:a.sourceFields,contextMenuConfig:a.contextMenuConfig,emptyState:a.emptyState,slots:t,onToolItemsPropsChange:e=>{T.value=e},excelHooks:O}}());B=e,x.value=e.grid,M.value=p.value;const t=u;e.on("data:loaded",()=>u("data:loaded"));for(const o of Y)e.on(o,e=>t(o,e));return K.push(e.onConfigChange(()=>{i.value=e.getCoreConfig(i.value),e.syncAppliedConfig(N())})),e}function X(){if(!B)return;const{reinitRequired:e}=B.reconcileCoreConfig(N());e&&async function(){if(!B)return;const e=B.captureReinitState();q(),B.destroy(),B=null,v.unmountAll();const t=W();if(!t)return;try{if(await t.ready(),!J(t))return;if(await t.restoreReinitState(e),!J(t))return;T.value=t.getToolItemsProps(),u("ready",t.grid,t)}catch(o){}}()}function J(e){return B===e}o.onMounted(()=>{!async function(){const e=W();if(e)try{if(await e.ready(),!J(e))return;T.value=e.getToolItemsProps(),u("ready",e.grid,e)}catch(t){}}(),o.watch(()=>{const e=i.value;e.data,e.fields;const t={_locale:S.value,_timeZone:b.value};for(const o in e)"data"!==o&&"fields"!==o&&(t[o]=e[o]);return t},()=>X(),{deep:!0}),o.watch(()=>({useToolBox:a.useToolBox,useToolBoxSetting:a.useToolBoxSetting,useExtendFooter:a.useExtendFooter,useSummaryFooter:a.useSummaryFooter,useSort:a.useSort,useCustomCell:a.useCustomCell,useContextMenu:a.useContextMenu,useBuiltinTooltip:a.useBuiltinTooltip,usePivot:a.usePivot,usePivotBar:a.usePivotBar,useRowGroupSettings:a.useRowGroupSettings,useFieldSettings:a.useFieldSettings,useFormatSettings:a.useFormatSettings,useLayoutSettings:a.useLayoutSettings,useAggregateSettings:a.useAggregateSettings}),e=>null==B?void 0:B.setUIOptions(e)),o.watch(()=>a.loading,e=>null==B?void 0:B.setUIOptions({loading:e}),{immediate:!0}),o.watch(()=>a.sourceFields,e=>null==B?void 0:B.setSourceFields(e),{immediate:!0}),o.watch(()=>a.contextMenuConfig,e=>null==B?void 0:B.setContextMenuConfig(e),{deep:!0})}),o.onBeforeUnmount(()=>{q(),null==B||B.destroy(),B=null,x.value=null,v.unmountAll()}),function(e){const{register:t}=c(),n=new d({id:e.name.value,type:e.type,importDef:async t=>{var o,l,r,i;const s=e.gridInstance.value;if(s){if(!t){const t=n.default;return void(t&&(await s.applyConfig(t),t.customCellConfig&&(null==(o=e.setCustomCellState)||o.call(e,t.customCellConfig)),t.columnFormatConfig&&(null==(l=e.setColumnFormatState)||l.call(e,t.columnFormatConfig))))}await s.applyConfig(t),t.customCellConfig&&(null==(r=e.setCustomCellState)||r.call(e,t.customCellConfig)),t.columnFormatConfig&&(null==(i=e.setColumnFormatState)||i.call(e,t.columnFormatConfig))}},exportDef:()=>{var t,o;const n=e.gridInstance.value;return n?{...n.getConfig(),customCellConfig:(null==(t=e.getCustomCellState)?void 0:t.call(e))??null,columnFormatConfig:(null==(o=e.getColumnFormatState)?void 0:o.call(e))??null}:null}});let l=!1;o.watch(e.gridInstance,r=>{if(!r||l)return;if(!e.name.value)return;const i=r.on("data:loaded",()=>{l||(n.setDefaultToCurrent(),o.nextTick(()=>{t(n),l=!0,i()}))})})}({name:o.toRef(a,"name"),type:"pivot"===i.value.mode?"mozPivotGrid":"mozFlatGrid",gridInstance:x,getCustomCellState:()=>(null==B?void 0:B.customCell.getCustomCell())??null,setCustomCellState:e=>{e&&B&&B.customCell.setCustomCell(e)},getColumnFormatState:()=>(null==B?void 0:B.columnFormat.getConfig())??null,setColumnFormatState:e=>{e&&B&&B.columnFormat.setConfig(e)}});return t(new Proxy({},{get(e,t){if("chrome"===t)return B;const o=B;if(!o)return;const n=o[t];return"function"==typeof n?n.bind(o):n},has:(e,t)=>"chrome"===t||!!B&&t in B})),(e,t)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{ref_key:"hostRef",ref:p,class:"moz-grid-chrome",style:o.normalizeStyle(A.value)},null,4),o.renderSlot(e.$slots,"default",{},void 0,!0),x.value?(o.openBlock(),o.createBlock(C,{key:0})):o.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-a719186c"]]),H=o.defineComponent({name:"CellTemplate",props:{field:{type:String,required:!0}},setup(e){const t=o.inject(P),n=o.useSlots();return t?(o.onMounted(()=>{n.default&&t.register({type:"cell",fieldId:e.field,slot:n.default})}),o.onBeforeUnmount(()=>{t.unregister("cell",e.field)}),()=>null):()=>null}}),L=o.defineComponent({name:"HeaderTemplate",props:{field:{type:String,required:!0}},setup(e){const t=o.inject(P),n=o.useSlots();return t?(o.onMounted(()=>{n.default&&t.register({type:"header",fieldId:e.field,slot:n.default})}),o.onBeforeUnmount(()=>{t.unregister("header",e.field)}),()=>null):()=>null}}),V=o.defineComponent({name:"CellEditor",props:{field:{type:String,required:!0}},setup(e){const t=o.inject(P),n=o.useSlots();return t?(o.onMounted(()=>{n.default&&t.register({type:"editor",fieldId:e.field,slot:n.default})}),o.onBeforeUnmount(()=>{t.unregister("editor",e.field)}),()=>null):()=>null}}),O=o.defineComponent({name:"DetailTemplate",props:{minHeight:{type:Number,default:100},maxHeight:{type:Number},singleExpand:{type:Boolean,default:!1},keepDetailRows:{type:Boolean,default:!0}},setup(e){const t=o.inject(k),n=o.inject(z),l=o.useSlots();return t&&n?(o.onMounted(()=>{const o=t.value;if(!o||!l.default)return;const r=l.default;o.masterDetail.setConfig({minHeight:e.minHeight,maxHeight:e.maxHeight,singleExpand:e.singleExpand,keepMasterDetailRows:e.keepDetailRows,renderer:(e,t,o)=>{const l=`detail:${o}`,i={parentData:t,dataIndex:o};return n.mount(l,e,{render:()=>r(i)},i),()=>{n.unmount(l)}}})}),o.onBeforeUnmount(()=>{null==n||n.unmountByPrefix("detail:")}),()=>null):()=>null}}),A=o.defineComponent({name:"GroupTemplate",setup(){const e=o.inject(k),t=o.inject(z),n=o.useSlots();return e&&t?(o.onMounted(()=>{const o=e.value;if(!o||!n.default)return;const l=n.default;o.formatRow.addHandler("_groupTemplate",e=>{if("group-row"!==e.type)return;const o=e.ctx,n=o.element;if(!n)return;const r=`group:${o.viewIndex}`,i={groupKey:o.column,groupValue:o.value,level:o.level,count:o.itemCount,isExpanded:!o.collapsed};t.mount(r,n,{render:()=>l(i)},i)})}),o.onBeforeUnmount(()=>{var o;null==t||t.unmountByPrefix("group:"),null==(o=e.value)||o.formatRow.removeHandler("_groupTemplate")}),()=>null):()=>null}});let j=!1;function U(e){return e?(Object.prototype.hasOwnProperty.call(e,"formatHeaderRow")||Object.defineProperty(e,"formatHeaderRow",{configurable:!0,get:()=>(j||(j=!0),e.formatHeader)}),e):null}const Z=o.defineComponent({__name:"MozGridVue",props:{name:{},useToolBox:{type:Boolean,default:!0},useToolBoxSetting:{type:Boolean,default:!0},useExtendFooter:{type:Boolean,default:!0},useSummaryFooter:{type:Boolean,default:!1},useSort:{type:Boolean,default:!0},useCustomCell:{type:Boolean,default:!0},contextMenuConfig:{default:()=>({})},useContextMenu:{type:Boolean,default:!0},loading:{type:Boolean},emptyState:{},fields:{},data:{},mode:{},pivotRowFields:{},pivotColumnFields:{},pivotValueFields:{},height:{default:"100%"},keyFields:{},theme:{},rowHeight:{},headerHeight:{},showHeader:{type:Boolean,default:!0},resizableColumns:{type:Boolean,default:!0},reorderableColumns:{type:Boolean,default:!0},showRowHeader:{type:[Boolean,Object]},rowHeader:{type:[Boolean,Object]},rowSelection:{},cellSelection:{default:()=>({mode:"range"})},cellSelectionImpliesRows:{type:Boolean},editable:{type:Boolean,default:!1},tooltipMode:{default:"overflow"},alternatingRows:{type:Boolean,default:!0},autoFitColumns:{type:Boolean},dynamicRowHeights:{type:Boolean,default:!1},reorderableRows:{type:Boolean,default:!1},locale:{},engine:{},useWorker:{type:Boolean},loader:{},preventKeyEdit:{type:Boolean,default:!0},showStatusBar:{type:Boolean},showDragHandleColumn:{type:Boolean},undoStack:{},formatRow:{},translations:{},rowStyle:{},headerStyle:{},rowHeightChangeThreshold:{},group:{},columnGroups:{},rowTemplate:{}},emits:["ready","data:loaded","row:click","row:dblclick","row:pinned","row:unpinned","row:reordered","cell:click","cell:dblclick","cell:change","cell:beforeEdit","cell:editCommitting","cell:editCommitted","cell:tooltip","selection:changed","column:resize","column:reorder","column:pin","column:visibility","sort:changed","filter:changed","undo:stateChange","clipboard:copy","clipboard:paste","validation:changed","columnGroup:toggle","scroll","contextmenu"],setup(e,{expose:t,emit:l}){const r=e,i=l,s=o.computed(()=>{const e={...r};for(const t of n.WRAPPER_EXTRA_KEYS)delete e[t];return delete e.name,delete e.locale,e}),a=o.computed(()=>{const e=r,t={};for(const o of n.WRAPPER_EXTRA_KEYS)void 0!==e[o]&&(t[o]=e[o]);return void 0!==e.locale&&(t.locale=e.locale),t}),u=Object.fromEntries(["ready","data:loaded","row:click","row:dblclick","row:pinned","row:unpinned","row:reordered","cell:click","cell:dblclick","cell:change","cell:beforeEdit","cell:editCommitting","cell:editCommitted","cell:tooltip","selection:changed","column:resize","column:reorder","column:pin","column:visibility","sort:changed","filter:changed","undo:stateChange","clipboard:copy","clipboard:paste","validation:changed","columnGroup:toggle","scroll","contextmenu"].map(e=>[e,(...t)=>i(e,...t)]));u.ready=e=>i("ready",U(e));const d=o.ref(null);function c(){return d.value??null}const p={};return Object.defineProperties(p,{grid:{enumerable:!0,get:()=>{var e;return U(null==(e=c())?void 0:e.grid)}},core:{enumerable:!0,get:()=>p},filterModule:{enumerable:!0,get:()=>{var e;return null==(e=c())?void 0:e.filter}},sortModule:{enumerable:!0,get:()=>{var e;return null==(e=c())?void 0:e.sort}},customCellModule:{enumerable:!0,get:()=>{var e;return null==(e=c())?void 0:e.customCell}},bulkEditorModule:{enumerable:!0,get:()=>{var e;return null==(e=c())?void 0:e.bulkEditor}}}),p.refresh=async()=>{var e,t;return null==(t=null==(e=c())?void 0:e.grid)?void 0:t.refresh()},p.loadData=async e=>{var t,o;return null==(o=null==(t=c())?void 0:t.grid)?void 0:o.loadData(e)},p.sort=async e=>{var t,o;return null==(o=null==(t=c())?void 0:t.grid)?void 0:o.sort(e)},p.filter=async e=>{var t,o;return null==(o=null==(t=c())?void 0:t.grid)?void 0:o.filter(e)},t(p),(e,t)=>(o.openBlock(),o.createBlock(G,o.mergeProps({ref_key:"mozRef",ref:d,coreConfig:s.value},a.value,{name:r.name},o.toHandlers(o.unref(u))),o.createSlots({default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:2},[e.$slots["tool-left"]?{name:"tool-left",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"tool-left")]),key:"0"}:void 0,e.$slots["tool-items"]?{name:"tool-items",fn:o.withCtx(t=>[o.renderSlot(e.$slots,"tool-items",o.normalizeProps(o.guardReactiveProps(t)))]),key:"1"}:void 0,e.$slots.notification?{name:"notification",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"notification")]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"footer")]),key:"3"}:void 0,e.$slots.customState?{name:"empty-state",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"customState")]),key:"4"}:void 0]),1040,["coreConfig","name"]))}}),N=o.defineComponent({__name:"MozPivotVue",props:{name:{},data:{},rowFields:{},columnFields:{},valueFields:{},height:{default:"100%"},showRowSubTotals:{type:Boolean,default:!1},showRowGrandTotals:{type:Boolean,default:!0},showColumnSubTotals:{type:Boolean,default:!1},showColumnGrandTotals:{type:Boolean,default:!0},trackSourceRows:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},alternatingRows:{type:Boolean,default:!1},tooltipMode:{default:"overflow"},rowSelection:{},cellSelection:{default:()=>({mode:"range"})},cellSelectionImpliesRows:{type:Boolean},useToolBox:{type:Boolean,default:!0},useToolBoxSetting:{type:Boolean,default:!0},useFilter:{type:Boolean,default:!0},useSort:{type:Boolean,default:!0},useCustomCell:{type:Boolean,default:!0},useExtendFooter:{type:Boolean,default:!0},useSummaryFooter:{type:Boolean,default:!1},useContextMenu:{type:Boolean,default:!0},contextMenuConfig:{},useChart:{type:Boolean,default:!1},fields:{},availableFields:{},useMultipleChart:{type:Boolean,default:!0},chartIncludeGrandTotal:{type:Boolean,default:!1},chartMap:{},loading:{type:Boolean},emptyState:{}},emits:["ready","data:loaded","filter:changed","pivot:configured","pivot:toggled","update:rowFields","update:columnFields","update:valueFields"],setup(e,{expose:t,emit:l}){const r=e,i=l,s=o.computed(()=>{const e={...r};for(const t of n.WRAPPER_EXTRA_KEYS)delete e[t];return delete e.name,delete e.locale,delete e.availableFields,delete e.useFilter,e.mode="pivot",e}),a=o.computed(()=>{const e=r,t={};for(const o of n.WRAPPER_EXTRA_KEYS)void 0!==e[o]&&(t[o]=e[o]);return void 0!==e.locale&&(t.locale=e.locale),t.sourceFields=e.sourceFields??e.availableFields??e.fields,t}),u=Object.fromEntries(["ready","data:loaded","filter:changed","pivot:toggled"].map(e=>[e,(...t)=>i(e,...t)]));function d(e){var t,o,n;const l=e;i("update:rowFields",l.rowFields??[]),i("update:columnFields",l.columnFields??[]),i("update:valueFields",l.valueFields??[]);const r=null==(n=null==(o=null==(t=p())?void 0:t.pivot)?void 0:o.getRawConfig)?void 0:n.call(o);r&&i("pivot:configured",r)}u.ready=e=>i("ready",U(e));const c=o.ref(null);function p(){return c.value??null}function m(){var e,t;return null==(t=null==(e=p())?void 0:e.grid)?void 0:t.pivot}const f=o.computed({get:()=>{var e,t;return(null==(t=null==(e=p())?void 0:e.chart)?void 0:t.visible)??!1},set:e=>{var t,o;return null==(o=null==(t=p())?void 0:t.chart)?void 0:o.setVisible(e)}}),g={};return Object.defineProperties(g,{grid:{enumerable:!0,get:()=>{var e;return U(null==(e=p())?void 0:e.grid)}},core:{enumerable:!0,get:()=>g},pivotApi:{enumerable:!0,get:()=>m()??null},filterModule:{enumerable:!0,get:()=>{var e;return null==(e=p())?void 0:e.filter}},sortModule:{enumerable:!0,get:()=>{var e;return null==(e=p())?void 0:e.sort}},customCellModule:{enumerable:!0,get:()=>{var e;return null==(e=p())?void 0:e.customCell}},showChart:{enumerable:!0,get:()=>f.value,set:e=>{f.value=e}}}),g.refresh=async()=>{var e,t;return null==(t=null==(e=p())?void 0:e.grid)?void 0:t.refresh()},g.setConfig=async e=>{var t;return null==(t=m())?void 0:t.setConfig(e)},g.getResult=()=>{var e;return(null==(e=m())?void 0:e.getResult())??null},g.expandAll=async()=>{var e;return null==(e=m())?void 0:e.expandAllRows()},g.collapseAll=async()=>{var e;return null==(e=m())?void 0:e.collapseAllRows()},g.expandToLevel=async e=>{var t;return null==(t=m())?void 0:t.expandRowToLevel(e)},g.toggleChart=()=>{f.value=!f.value},t(g),(e,t)=>(o.openBlock(),o.createBlock(G,o.mergeProps({ref_key:"mozRef",ref:c,coreConfig:s.value},a.value,{name:r.name,"onUpdate:coreConfig":d},o.toHandlers(o.unref(u))),o.createSlots({default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:2},[e.$slots["tool-left"]?{name:"tool-left",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"tool-left")]),key:"0"}:void 0,e.$slots["tool-items"]?{name:"tool-items",fn:o.withCtx(t=>[o.renderSlot(e.$slots,"tool-items",o.normalizeProps(o.guardReactiveProps(t)))]),key:"1"}:void 0,e.$slots.footer?{name:"footer",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"footer")]),key:"2"}:void 0,e.$slots.customState?{name:"empty-state",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"customState")]),key:"3"}:void 0]),1040,["coreConfig","name"]))}});exports.GridNotificationKey=l.GridNotificationKey,exports.provideGridNotification=l.provideGridNotification,exports.useGridNotificationStore=l.useGridNotificationStore,exports.ExcelDataType=s.DataType,exports.FileParameter=s.FileParameter,exports.enUS=s.enUS,exports.getGridVueLocale=s.getGridVueLocale,exports.getGridVueLocaleCode=s.getGridVueLocaleCode,exports.jaJP=s.jaJP,exports.koKR=s.koKR,exports.normalizeGridVueLocale=s.normalizeGridVueLocale,exports.openToast=s.openToast,exports.setGridVueLocale=s.setGridVueLocale,exports.showMessage=s.showMessage,exports.useExcelDownloadStore=s.useExcelDownloadStore,exports.useExcelStore=s.useExcelStore,exports.useExcelUploadStore=s.useExcelUploadStore,exports.zhCN=s.zhCN,Object.defineProperty(exports,"ROW_HEADER_COLUMN_ID",{enumerable:!0,get:()=>u.ROW_HEADER_COLUMN_ID}),Object.defineProperty(exports,"UndoStack",{enumerable:!0,get:()=>u.UndoStack}),Object.defineProperty(exports,"getCornerCell",{enumerable:!0,get:()=>u.getCornerCell}),Object.defineProperty(exports,"getRowHeaderCell",{enumerable:!0,get:()=>u.getRowHeaderCell}),exports.CellEditor=V,exports.CellTemplate=H,exports.ClientExcelUploadController=x,exports.ClientExcelUploadPopup=C,exports.DetailTemplate=O,exports.GRID_BULK_EDITOR_MODULE_KEY=$,exports.GRID_CUSTOM_CELL_MODULE_KEY=I,exports.GRID_FILTER_MODULE_KEY=T,exports.GRID_INSTANCE_KEY=k,exports.GRID_RENDERER_KEY=z,exports.GRID_SORT_MODULE_KEY=D,exports.GRID_TEMPLATE_REGISTRY_KEY=P,exports.GroupTemplate=A,exports.HeaderTemplate=L,exports.MOZ_GRID_CONFIG_KEY=_,exports.MOZ_GRID_LOCALE_KEY=M,exports.MozGrid=G,exports.MozGridConfigProvider=b,exports.MozGridLocaleProvider=B,exports.MozGridVue=Z,exports.MozPivotVue=N,exports.StreamingParameter=class{constructor(e){t(this,"params"),t(this,"loading",!0),t(this,"size",0),t(this,"offset",0),t(this,"onReceived"),t(this,"onClosed"),t(this,"onHandleError"),t(this,"onCancelClick"),t(this,"_complete",!1),this.params=e}get ipcObject(){return this.params}get percent(){return 0===this.offset||0===this.size?0:Math.round(this.offset/this.size*100)}get complete(){return this._complete}received(e){this.offset++,this.onReceived&&this.onReceived(e)}closed(e=!0){this._complete=e,this.onClosed&&this.onClosed()}handleError(e,t=!0){this._complete=t,this.onHandleError&&this.onHandleError(e)}},exports.UserLayoutInstance=d,exports.VueRenderer=E,exports.downloadBlob=function(e,t){const o=URL.createObjectURL(e),n=document.createElement("a");n.href=o,n.download=t,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>URL.revokeObjectURL(o),0)},exports.exportCsv=async function(e){let t,o;if("pivot"===e.pivot.getMode()){const n=await e.pivot.getDataMatrix();if(!n)return;t=n.headers,o=n.rows}else{const n=await e.getExportData({scope:"all"});if(!n)return;const{headers:l,rows:r}=n,i=l.map(e=>e.id);t=l.map(e=>e.header),o=r.map(e=>i.map(t=>e[t]))}const n=[];n.push(t.map(g).join(","));for(const a of o)n.push(a.map(g).join(","));const l="\ufeff"+n.join("\r\n"),r=new Blob([l],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),s=document.createElement("a");s.href=i,s.download=`export_${(new Date).toISOString().slice(0,10)}.csv`,s.click(),URL.revokeObjectURL(i)},exports.generateSessionId=f,exports.pickFile=function(e=".xlsx"){return new Promise(t=>{const o=document.createElement("input");o.type="file",o.accept=e,o.style.display="none";let n=!1;const l=()=>{o.parentNode&&o.parentNode.removeChild(o)};o.onchange=()=>{if(n)return;n=!0;const e=o.files&&o.files.length>0?o.files[0]:null;l(),t(e)};const r=()=>{window.removeEventListener("focus",r),setTimeout(()=>{n||(n=!0,l(),t(null))},300)};window.addEventListener("focus",r),document.body.appendChild(o),o.click()})},exports.runClientExport=async function(e,t,o){var n;const l=`${t.exportFileName??"export"}_${a().format("YYYYMMDD")}.xlsx`,r=f();o&&o.eventMessages.unshift({noti_type:"progress",header_key:"text-file_download",noti_datetime:a().format("YYYY-MM-DD HH:mm:ss"),noti_sender_id:"",prop_value:{session_id:r,file_name:l,status:"in_progress",progress_per:0,operation_type:"download",remain_time:-1}});try{if(await e.io.saveExcelToFile({scope:"all",includeHeaders:!0,suggestedName:l,fallbackToDownload:!0,sheetSplit:"auto",onProgress:e=>{if(!o)return;const t=o.eventMessages.find(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});if(!(null==t?void 0:t.prop_value))return;let n="number"==typeof e.percent?e.percent:void 0;void 0===n&&"number"==typeof e.rowsProcessed&&"number"==typeof e.totalRows&&e.totalRows>0&&(n=e.rowsProcessed/e.totalRows*100),"number"==typeof n&&(t.prop_value.progress_per=Math.min(99,Math.max(0,Math.floor(n))))},...t.clientExportOptions??{}}),o){const e=o.eventMessages.find(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});(null==e?void 0:e.prop_value)&&(e.prop_value.status="completed",e.prop_value.progress_per=100),setTimeout(()=>{const e=o.eventMessages.findIndex(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});-1!==e&&o.eventMessages.splice(e,1)},2e3)}null==(n=t.onClientExportComplete)||n.call(t,new Blob)}catch(i){if(i instanceof DOMException&&"AbortError"===i.name){if(o){const e=o.eventMessages.findIndex(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});-1!==e&&o.eventMessages.splice(e,1)}return}if(o){const e=o.eventMessages.find(e=>{var t;return(null==(t=e.prop_value)?void 0:t.session_id)===r});(null==e?void 0:e.prop_value)&&(e.prop_value.status="error",e.prop_value.error_message=i instanceof Error?i.message:String(i),e.prop_value.progress_per=0,e.prop_value.remain_time=-1)}}},exports.useClientExcelStore=m,exports.useMozGridConfig=w,exports.useMozGridLocale=function(){const e=o.inject(M,null);return e||o.computed(()=>{})},exports.useUserLayoutModule=c;
package/dist/index.d.ts CHANGED
@@ -26,6 +26,8 @@ export type { ToastType, ToastOptions } from './utils/toast';
26
26
  export { setGridVueLocale, getGridVueLocale, getGridVueLocaleCode, normalizeGridVueLocale, koKR, enUS, jaJP, zhCN } from './locale';
27
27
  export type { GridVueLocaleCode, GridVueLocaleMessages } from './locale';
28
28
  export { MozGridLocaleProvider, useMozGridLocale, MOZ_GRID_LOCALE_KEY } from './locale/MozGridLocaleProvider';
29
+ export { MozGridConfigProvider, useMozGridConfig, MOZ_GRID_CONFIG_KEY } from './locale/MozGridLocaleProvider';
30
+ export type { MozGridConfig } from './locale/MozGridLocaleProvider';
29
31
  export { VueRenderer } from './bridge/VueRenderer';
30
32
  export type { MozGridVueCoreProps, MozGridVueProps, MozGridVueEmits } from './types/props';
31
33
  export type { CellSlotProps, HeaderSlotProps, EditorSlotProps, DetailSlotProps, GroupSlotProps, TemplateRegistry, TemplateEntry, } from './types/slots';
package/dist/index.js CHANGED
@@ -688,6 +688,34 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
688
688
  };
689
689
  }
690
690
  });
691
+ const MOZ_GRID_CONFIG_KEY = Symbol("MozGridConfig");
692
+ function useMozGridConfig() {
693
+ const config = inject(MOZ_GRID_CONFIG_KEY, computed(() => ({})));
694
+ const locale = inject(MOZ_GRID_LOCALE_KEY, null);
695
+ return computed(() => ({ ...config.value, locale: (locale == null ? void 0 : locale.value) ?? config.value.locale }));
696
+ }
697
+ function provideConfig(getConfig) {
698
+ const parent = useMozGridConfig();
699
+ const value = computed(() => {
700
+ const config = getConfig();
701
+ const result = { locale: config.locale ?? parent.value.locale, timeZone: config.timeZone ?? parent.value.timeZone };
702
+ if (result.timeZone !== void 0) new Intl.DateTimeFormat("en", { timeZone: result.timeZone });
703
+ return result;
704
+ });
705
+ provide(MOZ_GRID_CONFIG_KEY, value);
706
+ provide(MOZ_GRID_LOCALE_KEY, computed(() => value.value.locale));
707
+ }
708
+ const MozGridConfigProvider = defineComponent({
709
+ name: "MozGridConfigProvider",
710
+ props: { config: { type: Object, default: () => ({}) } },
711
+ setup(props, { slots }) {
712
+ provideConfig(() => props.config);
713
+ return () => {
714
+ var _a;
715
+ return (_a = slots.default) == null ? void 0 : _a.call(slots);
716
+ };
717
+ }
718
+ });
691
719
  const MOZ_GRID_LOCALE_KEY = Symbol("MozGridLocale");
692
720
  function useMozGridLocale() {
693
721
  const injected = inject(MOZ_GRID_LOCALE_KEY, null);
@@ -700,10 +728,7 @@ const MozGridLocaleProvider = defineComponent({
700
728
  locale: { type: String, default: void 0 }
701
729
  },
702
730
  setup(props, { slots }) {
703
- provide(
704
- MOZ_GRID_LOCALE_KEY,
705
- computed(() => props.locale)
706
- );
731
+ provideConfig(() => ({ locale: props.locale }));
707
732
  return () => {
708
733
  var _a;
709
734
  return (_a = slots.default) == null ? void 0 : _a.call(slots);
@@ -989,7 +1014,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
989
1014
  "coreConfig": { default: () => ({}) },
990
1015
  "coreConfigModifiers": {}
991
1016
  }),
992
- emits: /* @__PURE__ */ mergeModels(["ready", "data:loaded", "row:click", "row:dblclick", "row:pinned", "row:unpinned", "row:reordered", "cell:click", "cell:dblclick", "cell:change", "cell:beforeEdit", "cell:editCommitting", "cell:editCommitted", "cell:tooltip", "selection:changed", "column:resize", "column:reorder", "column:pin", "column:visibility", "sort:changed", "header:click", "header:sortClick", "header:filterClick", "filter:changed", "scroll", "undo:stateChange", "clipboard:copy", "clipboard:paste", "validation:changed", "columnGroup:toggle", "rowGroup:toggle", "rowGroup:batchToggle", "contextmenu"], ["update:coreConfig"]),
1017
+ emits: /* @__PURE__ */ mergeModels(["ready", "data:loaded", "data:changed", "row:click", "row:dblclick", "row:pinned", "row:unpinned", "row:reordered", "cell:click", "cell:dblclick", "cell:change", "cell:beforeEdit", "cell:editCommitting", "cell:editCommitted", "cell:tooltip", "selection:changed", "column:resize", "column:reorder", "column:pin", "column:visibility", "sort:changed", "header:click", "header:sortClick", "header:filterClick", "filter:changed", "scroll", "undo:stateChange", "clipboard:copy", "clipboard:paste", "validation:changed", "columnGroup:toggle", "rowGroup:toggle", "rowGroup:batchToggle", "contextmenu"], ["update:coreConfig"]),
993
1018
  setup(__props, { expose: __expose, emit: __emit }) {
994
1019
  const coreConfig = useModel(__props, "coreConfig");
995
1020
  const props = __props;
@@ -1001,8 +1026,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1001
1026
  const registry = createTemplateRegistry();
1002
1027
  const gridInstance = shallowRef(null);
1003
1028
  const clientExcelStore = useClientExcelStore();
1004
- const contextLocale = useMozGridLocale();
1005
- const resolvedLocale = computed(() => props.locale ?? contextLocale.value);
1029
+ const contextConfig = useMozGridConfig();
1030
+ const resolvedLocale = computed(() => props.locale ?? coreConfig.value.locale ?? contextConfig.value.locale);
1031
+ const resolvedTimeZone = computed(() => coreConfig.value.timeZone ?? contextConfig.value.timeZone);
1006
1032
  setGridVueLocale(resolvedLocale.value);
1007
1033
  watch(resolvedLocale, (v) => setGridVueLocale(v));
1008
1034
  const containerRef = ref();
@@ -1145,6 +1171,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1145
1171
  const built = getBuiltFields();
1146
1172
  if (built) core.fields = built;
1147
1173
  if (resolvedLocale.value !== void 0) core.locale = resolvedLocale.value;
1174
+ core.timeZone = resolvedTimeZone.value;
1148
1175
  return core;
1149
1176
  }
1150
1177
  function buildChromeOptions() {
@@ -1186,6 +1213,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1186
1213
  };
1187
1214
  }
1188
1215
  const FORWARD_EVENTS = [
1216
+ "data:changed",
1189
1217
  "row:click",
1190
1218
  "row:dblclick",
1191
1219
  "row:pinned",
@@ -1249,15 +1277,23 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1249
1277
  async function mountChrome() {
1250
1278
  const c2 = createChrome();
1251
1279
  if (!c2) return;
1252
- await c2.ready();
1253
- toolItemsProps.value = c2.getToolItemsProps();
1254
- emit("ready", c2.grid, c2);
1280
+ try {
1281
+ await c2.ready();
1282
+ if (!isCurrentChrome(c2)) return;
1283
+ toolItemsProps.value = c2.getToolItemsProps();
1284
+ emit("ready", c2.grid, c2);
1285
+ } catch (error) {
1286
+ if (chrome === c2) console.error("[MozGrid] initialization failed", error);
1287
+ }
1255
1288
  }
1256
1289
  function reconcile() {
1257
1290
  if (!chrome) return;
1258
1291
  const { reinitRequired } = chrome.reconcileCoreConfig(buildCoreConfig());
1259
1292
  if (reinitRequired) void reinitChrome();
1260
1293
  }
1294
+ function isCurrentChrome(candidate) {
1295
+ return chrome === candidate;
1296
+ }
1261
1297
  async function reinitChrome() {
1262
1298
  if (!chrome) return;
1263
1299
  const snapshot = chrome.captureReinitState();
@@ -1267,20 +1303,25 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1267
1303
  vueRenderer.unmountAll();
1268
1304
  const c2 = createChrome();
1269
1305
  if (!c2) return;
1270
- await c2.ready();
1271
- await c2.restoreReinitState(snapshot);
1272
- toolItemsProps.value = c2.getToolItemsProps();
1273
- emit("ready", c2.grid, c2);
1306
+ try {
1307
+ await c2.ready();
1308
+ if (!isCurrentChrome(c2)) return;
1309
+ await c2.restoreReinitState(snapshot);
1310
+ if (!isCurrentChrome(c2)) return;
1311
+ toolItemsProps.value = c2.getToolItemsProps();
1312
+ emit("ready", c2.grid, c2);
1313
+ } catch (error) {
1314
+ if (chrome === c2) console.error("[MozGrid] initialization failed", error);
1315
+ }
1274
1316
  }
1275
- onMounted(async () => {
1276
- await mountChrome();
1277
- reconcile();
1317
+ onMounted(() => {
1318
+ void mountChrome();
1278
1319
  watch(
1279
1320
  () => {
1280
1321
  const all = coreConfig.value;
1281
1322
  void all.data;
1282
1323
  void all.fields;
1283
- const rest = { _locale: resolvedLocale.value };
1324
+ const rest = { _locale: resolvedLocale.value, _timeZone: resolvedTimeZone.value };
1284
1325
  for (const k2 in all) {
1285
1326
  if (k2 === "data" || k2 === "fields") continue;
1286
1327
  rest[k2] = all[k2];
@@ -1381,7 +1422,7 @@ const _export_sfc = (sfc, props) => {
1381
1422
  }
1382
1423
  return target;
1383
1424
  };
1384
- const MozGrid = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6f706231"]]);
1425
+ const MozGrid = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-a719186c"]]);
1385
1426
  const CellTemplate = defineComponent({
1386
1427
  name: "CellTemplate",
1387
1428
  props: {
@@ -2126,8 +2167,10 @@ export {
2126
2167
  G as GridNotificationKey,
2127
2168
  GroupTemplate,
2128
2169
  HeaderTemplate,
2170
+ MOZ_GRID_CONFIG_KEY,
2129
2171
  MOZ_GRID_LOCALE_KEY,
2130
2172
  MozGrid,
2173
+ MozGridConfigProvider,
2131
2174
  MozGridLocaleProvider,
2132
2175
  _sfc_main$1 as MozGridVue,
2133
2176
  _sfc_main as MozPivotVue,
@@ -2158,6 +2201,7 @@ export {
2158
2201
  u as useExcelStore,
2159
2202
  b as useExcelUploadStore,
2160
2203
  useGridNotificationStore,
2204
+ useMozGridConfig,
2161
2205
  useMozGridLocale,
2162
2206
  useUserLayoutModule,
2163
2207
  z as zhCN
@@ -1,4 +1,23 @@
1
1
  import { InjectionKey, PropType, Ref } from 'vue';
2
+ import { MozGridConfig } from '@vmscloud/moz-ui-grid-core';
3
+ export type { MozGridConfig } from '@vmscloud/moz-ui-grid-core';
4
+ export declare const MOZ_GRID_CONFIG_KEY: InjectionKey<Ref<MozGridConfig>>;
5
+ export declare function useMozGridConfig(): Ref<MozGridConfig>;
6
+ export declare const MozGridConfigProvider: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
+ config: {
8
+ type: PropType<MozGridConfig>;
9
+ default: () => {};
10
+ };
11
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
12
+ [key: string]: any;
13
+ }>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
+ config: {
15
+ type: PropType<MozGridConfig>;
16
+ default: () => {};
17
+ };
18
+ }>> & Readonly<{}>, {
19
+ config: MozGridConfig;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
21
  /**
3
22
  * MozGridLocaleProvider / useMozGridLocale — moz-ui-chart 의 MozChartLocaleProvider/
4
23
  * useMozChartLocale 과 동일한 명명 컨벤션(Moz + 패키지명 + Locale + Provider/Context,
@@ -15,6 +34,7 @@ import { InjectionKey, PropType, Ref } from 'vue';
15
34
  */
16
35
  export declare const MOZ_GRID_LOCALE_KEY: InjectionKey<Ref<string | undefined>>;
17
36
  export declare function useMozGridLocale(): Ref<string | undefined>;
37
+ /** @deprecated Use MozGridConfigProvider with config: { locale }. */
18
38
  export declare const MozGridLocaleProvider: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
19
39
  locale: {
20
40
  type: PropType<string | undefined>;