jsl-ui 9.14.5 → 9.15.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/lib/components/tree-view/TreeViewComponent.js +2 -2
- package/lib/grid/plugins/ext.overlay.js +16 -2
- package/lib/grid/slick.grid.d.ts +1 -1
- package/lib/grid.d.ts +1 -0
- package/lib/grid.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/interaction/moveable.js +3 -0
- package/package.json +1 -1
- package/lib/grid/plugins/slick.cellexternalcopymanager.d.ts +0 -1
- package/lib/grid/plugins/slick.cellexternalcopymanager.js +0 -411
|
@@ -10,7 +10,7 @@ var TreeViewComponent = /** @class */ (function () {
|
|
|
10
10
|
var _a, _b;
|
|
11
11
|
return {
|
|
12
12
|
tag: "div", attr: { style: this.options.style, class: "treeview-comp hover " + ((_a = this.options.class) !== null && _a !== void 0 ? _a : "") }, children: [
|
|
13
|
-
{ tag: "ul", attr: { class: "tv-
|
|
13
|
+
{ tag: "ul", attr: { class: "tv-ul" }, children: [this.renderNode((_b = this.filteredData) !== null && _b !== void 0 ? _b : this.options.data)] }
|
|
14
14
|
]
|
|
15
15
|
};
|
|
16
16
|
};
|
|
@@ -27,7 +27,7 @@ var TreeViewComponent = /** @class */ (function () {
|
|
|
27
27
|
{ tag: "li", children: [
|
|
28
28
|
getInput(),
|
|
29
29
|
this.addChild({ tag: "label", attr: { for: el.id } }, this.options.renderItem != null ? this.options.renderItem(el) : el.content),
|
|
30
|
-
{ tag: "ul", attr: { class: "tv-
|
|
30
|
+
{ tag: "ul", attr: { class: "tv-ul" }, children: el.children.map(function (c) { return _this.renderNode(c); }) }
|
|
31
31
|
] } :
|
|
32
32
|
this.addChild({ tag: "li" }, this.options.renderItem != null ? this.options.renderItem(el) : el.content);
|
|
33
33
|
};
|
|
@@ -130,6 +130,9 @@ export function Overlays(options) {
|
|
|
130
130
|
});
|
|
131
131
|
selectionOverlay.handle.style.left = (position.left + position.width - 4) + "px";
|
|
132
132
|
selectionOverlay.handle.style.top = (position.top + position.height - 4) + "px";
|
|
133
|
+
// console.log("row: " + activeCell.row + " - cell: "+ activeCell.cell);
|
|
134
|
+
// console.log("container: " + grid.getCanvasNode(activeCell.row, activeCell.cell).className);
|
|
135
|
+
selectionOverlay.moveToContainer(grid.getCanvasNode(activeCell.cell, activeCell.row));
|
|
133
136
|
}
|
|
134
137
|
var dd_range;
|
|
135
138
|
function handleOverlayDragStart(e) {
|
|
@@ -189,7 +192,8 @@ export function Overlays(options) {
|
|
|
189
192
|
this.handle = document.createElement("div");
|
|
190
193
|
this.handle.classList.add("handle-overlay");
|
|
191
194
|
target.appendChild(this.handle);
|
|
192
|
-
|
|
195
|
+
var moveContainer = target.closest(".slickgrid");
|
|
196
|
+
Moveable(moveContainer, {
|
|
193
197
|
selector: ".handle-overlay",
|
|
194
198
|
direction: "y",
|
|
195
199
|
gridY: grid.getOptions().rowHeight,
|
|
@@ -204,6 +208,15 @@ export function Overlays(options) {
|
|
|
204
208
|
})
|
|
205
209
|
});
|
|
206
210
|
}
|
|
211
|
+
this.moveToContainer = function (container) {
|
|
212
|
+
this.$left.appendTo(container);
|
|
213
|
+
this.$right.appendTo(container);
|
|
214
|
+
this.$top.appendTo(container);
|
|
215
|
+
this.$bottom.appendTo(container);
|
|
216
|
+
if (this.handle) {
|
|
217
|
+
$(this.handle).appendTo(container);
|
|
218
|
+
}
|
|
219
|
+
};
|
|
207
220
|
this.toggle = function (showOrHide) {
|
|
208
221
|
this.$left.css("display", showOrHide ? "" : "none");
|
|
209
222
|
this.$right.css("display", showOrHide ? "" : "none");
|
|
@@ -220,7 +233,8 @@ export function Overlays(options) {
|
|
|
220
233
|
function show(range) {
|
|
221
234
|
r = range;
|
|
222
235
|
if (!decorator) {
|
|
223
|
-
|
|
236
|
+
console.log(grid.getContainerNode().className);
|
|
237
|
+
decorator = new Overlay(grid.getCanvasNode(range.fromCell, range.fromRow), false, 'selection-');
|
|
224
238
|
}
|
|
225
239
|
var from = targetGrid.getCellNodeBox(range.fromRow, range.fromCell);
|
|
226
240
|
var to = targetGrid.getCellNodeBox(range.toRow, range.toCell);
|
package/lib/grid/slick.grid.d.ts
CHANGED
|
@@ -250,7 +250,7 @@ export interface ISlickGrid<T> {
|
|
|
250
250
|
cancelCurrentEdit: () => boolean;
|
|
251
251
|
};
|
|
252
252
|
"invalidateRow": (row: number) => void;
|
|
253
|
-
"getCanvasNode": () => HTMLElement;
|
|
253
|
+
"getCanvasNode": (columnIdOrIdx?: number, rowIndex?: number) => HTMLElement;
|
|
254
254
|
"focus": () => void;
|
|
255
255
|
"getActiveCellPosition": () => {
|
|
256
256
|
top: number;
|
package/lib/grid.d.ts
CHANGED
package/lib/grid.js
CHANGED