@stonecrop/atable 0.4.13 → 0.4.14
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/assets/index.css +1 -1
- package/dist/atable.d.ts +8 -3
- package/dist/atable.js +475 -462
- package/dist/atable.js.map +1 -1
- package/dist/atable.umd.cjs +2 -2
- package/dist/atable.umd.cjs.map +1 -1
- package/dist/src/types/index.d.ts +8 -3
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/stores/table.js +4 -4
- package/package.json +3 -3
- package/src/components/AGanttCell.vue +23 -3
- package/src/components/ATable.vue +10 -18
- package/src/stores/table.ts +4 -4
- package/src/types/index.ts +19 -2
|
@@ -298,14 +298,19 @@ export type GanttDragEvent = {
|
|
|
298
298
|
rowIndex: number;
|
|
299
299
|
colIndex: number;
|
|
300
300
|
type: 'bar';
|
|
301
|
-
|
|
302
|
-
|
|
301
|
+
oldStart: number;
|
|
302
|
+
oldEnd: number;
|
|
303
|
+
newStart: number;
|
|
304
|
+
newEnd: number;
|
|
305
|
+
delta: number;
|
|
303
306
|
} | {
|
|
304
307
|
rowIndex: number;
|
|
305
308
|
colIndex: number;
|
|
306
309
|
type: 'resize';
|
|
307
310
|
edge: 'start' | 'end';
|
|
308
|
-
|
|
311
|
+
oldValue: number;
|
|
312
|
+
newValue: number;
|
|
313
|
+
delta: number;
|
|
309
314
|
};
|
|
310
315
|
/**
|
|
311
316
|
* Table modal definition.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAElD;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;;;;;;;;OASG;IACH,KAAK,CAAC,EAA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AG,CAAC,CAAA;IAEpC;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,QAAQ,CAAC,CAAA;IAExD;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,QAAQ,CAAC,CAAA;IAExD;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;IAEpD;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,OAAO,CAAC,CAAA;CACtD;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,KAAK,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;CAC1C"}
|
package/dist/stores/table.js
CHANGED
|
@@ -170,15 +170,15 @@ export const createTableStore = (initData) => {
|
|
|
170
170
|
if (ganttBar) {
|
|
171
171
|
if (event.type === 'resize') {
|
|
172
172
|
if (event.edge === 'start') {
|
|
173
|
-
ganttBar.startIndex = event.
|
|
173
|
+
ganttBar.startIndex = event.newValue;
|
|
174
174
|
}
|
|
175
175
|
else if (event.edge === 'end') {
|
|
176
|
-
ganttBar.endIndex = event.
|
|
176
|
+
ganttBar.endIndex = event.newValue;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
else if (event.type === 'bar') {
|
|
180
|
-
ganttBar.startIndex = event.
|
|
181
|
-
ganttBar.endIndex = event.
|
|
180
|
+
ganttBar.startIndex = event.newStart;
|
|
181
|
+
ganttBar.endIndex = event.newEnd;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/atable",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@vueuse/core": "^12.7.0",
|
|
39
39
|
"pinia": "^3.0.1",
|
|
40
40
|
"vue": "^3.5.13",
|
|
41
|
-
"@stonecrop/themes": "0.4.
|
|
42
|
-
"@stonecrop/utilities": "0.4.
|
|
41
|
+
"@stonecrop/themes": "0.4.14",
|
|
42
|
+
"@stonecrop/utilities": "0.4.14"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@microsoft/api-documenter": "^7.26.10",
|
|
@@ -109,10 +109,19 @@ const { isDragging: isLeftDragging } = useDraggable(leftHandleRef, {
|
|
|
109
109
|
if (barRef.value) {
|
|
110
110
|
const deltaX = x - dragStartData.value.startX
|
|
111
111
|
const deltaColumns = Math.round(deltaX / pixelsPerColumn.value)
|
|
112
|
+
const oldStart = currentStart.value
|
|
112
113
|
const newStart = Math.max(0, Math.min(currentEnd.value - 1, dragStartData.value.startPos + deltaColumns))
|
|
113
114
|
currentStart.value = newStart
|
|
114
115
|
|
|
115
|
-
store.updateGanttBar({
|
|
116
|
+
store.updateGanttBar({
|
|
117
|
+
rowIndex,
|
|
118
|
+
colIndex,
|
|
119
|
+
type: 'resize',
|
|
120
|
+
edge: 'start',
|
|
121
|
+
oldValue: oldStart,
|
|
122
|
+
newValue: newStart,
|
|
123
|
+
delta: deltaColumns,
|
|
124
|
+
})
|
|
116
125
|
}
|
|
117
126
|
},
|
|
118
127
|
})
|
|
@@ -141,13 +150,22 @@ const { isDragging: isRightDragging } = useDraggable(rightHandleRef, {
|
|
|
141
150
|
if (barRef.value) {
|
|
142
151
|
const deltaX = x - dragStartData.value.startX
|
|
143
152
|
const deltaColumns = Math.round(deltaX / pixelsPerColumn.value)
|
|
153
|
+
const oldEnd = currentEnd.value
|
|
144
154
|
const newEnd = Math.max(
|
|
145
155
|
currentStart.value + 1,
|
|
146
156
|
Math.min(columnsCount, dragStartData.value.startPos + deltaColumns)
|
|
147
157
|
)
|
|
148
158
|
currentEnd.value = newEnd
|
|
149
159
|
|
|
150
|
-
store.updateGanttBar({
|
|
160
|
+
store.updateGanttBar({
|
|
161
|
+
rowIndex,
|
|
162
|
+
colIndex,
|
|
163
|
+
type: 'resize',
|
|
164
|
+
edge: 'end',
|
|
165
|
+
oldValue: oldEnd,
|
|
166
|
+
newValue: newEnd,
|
|
167
|
+
delta: deltaColumns,
|
|
168
|
+
})
|
|
151
169
|
}
|
|
152
170
|
},
|
|
153
171
|
})
|
|
@@ -177,6 +195,8 @@ const { isDragging: isBarDragging } = useDraggable(barRef, {
|
|
|
177
195
|
const deltaColumns = Math.round(deltaX / pixelsPerColumn.value)
|
|
178
196
|
const barWidth = currentEnd.value - currentStart.value
|
|
179
197
|
|
|
198
|
+
const oldStart = currentStart.value
|
|
199
|
+
const oldEnd = currentEnd.value
|
|
180
200
|
let newStart = dragStartData.value.startPos + deltaColumns
|
|
181
201
|
let newEnd = newStart + barWidth
|
|
182
202
|
if (newStart < 0) {
|
|
@@ -190,7 +210,7 @@ const { isDragging: isBarDragging } = useDraggable(barRef, {
|
|
|
190
210
|
currentStart.value = newStart
|
|
191
211
|
currentEnd.value = newEnd
|
|
192
212
|
|
|
193
|
-
store.updateGanttBar({ rowIndex, colIndex, type: 'bar',
|
|
213
|
+
store.updateGanttBar({ rowIndex, colIndex, type: 'bar', oldStart, oldEnd, newStart, newEnd, delta: deltaColumns })
|
|
194
214
|
}
|
|
195
215
|
},
|
|
196
216
|
})
|
|
@@ -110,25 +110,17 @@ store.$onAction(({ name, store, args, after }) => {
|
|
|
110
110
|
})
|
|
111
111
|
} else if (name === 'updateGanttBar') {
|
|
112
112
|
const [event] = args
|
|
113
|
-
|
|
114
|
-
if (
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
emitDrag = ganttBar.startIndex !== event.value
|
|
120
|
-
} else if (event.edge === 'end') {
|
|
121
|
-
emitDrag = ganttBar.endIndex !== event.value
|
|
122
|
-
}
|
|
123
|
-
} else if (event.type === 'bar') {
|
|
124
|
-
emitDrag = ganttBar.startIndex !== event.start || ganttBar.endIndex !== event.end
|
|
125
|
-
}
|
|
113
|
+
let shouldEmit = false
|
|
114
|
+
if (event.type === 'resize') {
|
|
115
|
+
shouldEmit = event.oldValue !== event.newValue
|
|
116
|
+
} else if (event.type === 'bar') {
|
|
117
|
+
shouldEmit = event.oldStart !== event.newStart || event.oldEnd !== event.newEnd
|
|
118
|
+
}
|
|
126
119
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
120
|
+
if (shouldEmit) {
|
|
121
|
+
after(() => {
|
|
122
|
+
emit('gantt:drag', event)
|
|
123
|
+
})
|
|
132
124
|
}
|
|
133
125
|
}
|
|
134
126
|
})
|
package/src/stores/table.ts
CHANGED
|
@@ -214,13 +214,13 @@ export const createTableStore = (initData: {
|
|
|
214
214
|
if (ganttBar) {
|
|
215
215
|
if (event.type === 'resize') {
|
|
216
216
|
if (event.edge === 'start') {
|
|
217
|
-
ganttBar.startIndex = event.
|
|
217
|
+
ganttBar.startIndex = event.newValue
|
|
218
218
|
} else if (event.edge === 'end') {
|
|
219
|
-
ganttBar.endIndex = event.
|
|
219
|
+
ganttBar.endIndex = event.newValue
|
|
220
220
|
}
|
|
221
221
|
} else if (event.type === 'bar') {
|
|
222
|
-
ganttBar.startIndex = event.
|
|
223
|
-
ganttBar.endIndex = event.
|
|
222
|
+
ganttBar.startIndex = event.newStart
|
|
223
|
+
ganttBar.endIndex = event.newEnd
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
}
|
package/src/types/index.ts
CHANGED
|
@@ -334,8 +334,25 @@ export interface GanttOptions {
|
|
|
334
334
|
* @public
|
|
335
335
|
*/
|
|
336
336
|
export type GanttDragEvent =
|
|
337
|
-
| {
|
|
338
|
-
|
|
337
|
+
| {
|
|
338
|
+
rowIndex: number
|
|
339
|
+
colIndex: number
|
|
340
|
+
type: 'bar'
|
|
341
|
+
oldStart: number
|
|
342
|
+
oldEnd: number
|
|
343
|
+
newStart: number
|
|
344
|
+
newEnd: number
|
|
345
|
+
delta: number
|
|
346
|
+
}
|
|
347
|
+
| {
|
|
348
|
+
rowIndex: number
|
|
349
|
+
colIndex: number
|
|
350
|
+
type: 'resize'
|
|
351
|
+
edge: 'start' | 'end'
|
|
352
|
+
oldValue: number
|
|
353
|
+
newValue: number
|
|
354
|
+
delta: number
|
|
355
|
+
}
|
|
339
356
|
|
|
340
357
|
/**
|
|
341
358
|
* Table modal definition.
|