@moda-grid/vue2 1.0.3 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataGrid.d.ts +29 -0
- package/dist/DataGrid.d.ts.map +1 -0
- package/dist/DataGrid.js +90 -0
- package/dist/DataGrid.js.map +1 -0
- package/dist/DataGrid.vue +621 -214
- package/dist/conformance.test.js +17 -2
- package/dist/conformance.test.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/conformance.test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Vue from "vue";
|
|
2
|
-
import { runGridConformance } from "@moda-grid/core/conformance";
|
|
2
|
+
import { conformanceGroupSource, runGridConformance, } from "@moda-grid/core/conformance";
|
|
3
3
|
import DataGrid from "./DataGrid.vue";
|
|
4
4
|
// Vue 2.7 렌더러 — new Vue + $mount 마운트, nextTick으로 DOM 반영 대기.
|
|
5
5
|
runGridConformance("vue2", async (opts) => {
|
|
@@ -9,7 +9,22 @@ runGridConformance("vue2", async (opts) => {
|
|
|
9
9
|
const inner = document.createElement("div");
|
|
10
10
|
el.appendChild(inner);
|
|
11
11
|
const vm = new Vue({
|
|
12
|
-
render: (h) => h(DataGrid, {
|
|
12
|
+
render: (h) => h(DataGrid, {
|
|
13
|
+
props: {
|
|
14
|
+
...opts,
|
|
15
|
+
// 서버 그룹화 계약 — 그룹 행 소스 + 준비 시점 groupBy 적용
|
|
16
|
+
serverSide: opts.serverGrouping
|
|
17
|
+
? { dataSource: conformanceGroupSource(), cacheBlockSize: 10 }
|
|
18
|
+
: undefined,
|
|
19
|
+
onReady: opts.serverGrouping
|
|
20
|
+
? (g) => g.setGroupBy(["name"])
|
|
21
|
+
: undefined,
|
|
22
|
+
},
|
|
23
|
+
// 스펙의 fullWidthContent를 Vue2 렌더 계약(#fullwidth 슬롯)으로 변환
|
|
24
|
+
scopedSlots: opts.fullWidthContent != null
|
|
25
|
+
? { fullwidth: () => opts.fullWidthContent }
|
|
26
|
+
: {},
|
|
27
|
+
}),
|
|
13
28
|
});
|
|
14
29
|
vm.$mount(inner);
|
|
15
30
|
await Vue.nextTick();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conformance.test.js","sourceRoot":"","sources":["../src/conformance.test.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,
|
|
1
|
+
{"version":3,"file":"conformance.test.js","sourceRoot":"","sources":["../src/conformance.test.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EACL,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,4DAA4D;AAC5D,kBAAkB,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;IACxC,MAAM,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACzC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC9B,4CAA4C;IAC5C,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5C,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACtB,MAAM,EAAE,GAAG,IAAI,GAAG,CAAC;QACjB,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CACZ,CAAC,CAAC,QAAQ,EAAE;YACV,KAAK,EAAE;gBACL,GAAG,IAAI;gBACP,yCAAyC;gBACzC,UAAU,EAAE,IAAI,CAAC,cAAc;oBAC7B,CAAC,CAAC,EAAE,UAAU,EAAE,sBAAsB,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE;oBAC9D,CAAC,CAAC,SAAS;gBACb,OAAO,EAAE,IAAI,CAAC,cAAc;oBAC1B,CAAC,CAAC,CAAC,CAAwC,EAAE,EAAE,CAC3C,CAAC,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;oBAC1B,CAAC,CAAC,SAAS;aACd;YACD,uDAAuD;YACvD,WAAW,EACT,IAAI,CAAC,gBAAgB,IAAI,IAAI;gBAC3B,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAiB,EAAE;gBAC7C,CAAC,CAAC,EAAE;SACT,CAAC;KACL,CAAC,CAAC;IACH,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACjB,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAC;IACrB,OAAO;QACL,EAAE;QACF,KAAK,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE;QAC3B,OAAO,EAAE,GAAG,EAAE;YACZ,EAAE,CAAC,QAAQ,EAAE,CAAC;YACd,0CAA0C;YAC1C,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;YAChB,EAAE,CAAC,MAAM,EAAE,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { useGrid, useGridState } from "./useGrid.js";
|
|
|
2
2
|
export type { UseGridReturn } from "./useGrid.js";
|
|
3
3
|
export { default as DataGrid } from "./DataGrid.vue";
|
|
4
4
|
export type { Grid, GridSnapshot, ColumnDef, GridOptions, RowData, SortState, VirtualScrollState, } from "@moda-grid/core";
|
|
5
|
-
export { matchFilterValue } from "@moda-grid/core";
|
|
5
|
+
export { buildPivot, matchFilterValue } from "@moda-grid/core";
|
|
6
6
|
export { defaultContextMenuItems, defaultHeaderContextMenuItems, DEFAULT_LOCALE, enLocale, gridThemePresets, } from "@moda-grid/core";
|
|
7
|
-
export type { ServerSideDataSource, ServerSideGetRowsParams, ServerSideGetRowsResult, ServerSideOptions, ServerSideState, TreeDataOptions, CellClassParams, ClassSource, RowClassParams, AggregateFn, AggregateParams, BuiltInAggregateFn, GridDensity, GridTheme, GridThemeOverrides, } from "@moda-grid/core";
|
|
7
|
+
export type { ServerSideDataSource, ServerSideGetRowsParams, ServerSideGetRowsResult, ServerSideGroupRow, ServerSideOptions, ServerSidePivotModel, PivotOptions, PivotValueDef, ServerSideState, TreeDataOptions, CellClassParams, ClassSource, RowClassParams, AggregateFn, AggregateParams, BuiltInAggregateFn, GridDensity, GridTheme, GridThemeOverrides, } from "@moda-grid/core";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,YAAY,EACV,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,WAAW,EACX,OAAO,EACP,SAAS,EACT,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,YAAY,EACV,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,WAAW,EACX,OAAO,EACP,SAAS,EACT,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,cAAc,EACd,QAAQ,EACR,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,eAAe,EACf,eAAe,EACf,WAAW,EACX,cAAc,EACd,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,WAAW,EACX,SAAS,EACT,kBAAkB,GACnB,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useGrid, useGridState } from "./useGrid.js";
|
|
2
2
|
export { default as DataGrid } from "./DataGrid.vue";
|
|
3
3
|
// 서버 사이드 데이터 모델 (무한 스크롤/스켈레톤)
|
|
4
|
-
export { matchFilterValue } from "@moda-grid/core";
|
|
4
|
+
export { buildPivot, matchFilterValue } from "@moda-grid/core";
|
|
5
5
|
export { defaultContextMenuItems, defaultHeaderContextMenuItems, DEFAULT_LOCALE, enLocale, gridThemePresets, } from "@moda-grid/core";
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAWrD,8BAA8B;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAWrD,8BAA8B;AAC9B,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,cAAc,EACd,QAAQ,EACR,gBAAgB,GACjB,MAAM,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moda-grid/vue2",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Vue 2.7 adapter for @moda-grid — DataGrid SFC and useGrid composable",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"grid"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@moda-grid/core": "1.0
|
|
39
|
+
"@moda-grid/core": "2.1.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"vue": "^2.7.0"
|