@omegagrid/grid 0.2.5
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/commands/editingCommands.d.ts +4 -0
- package/dist/commands/editingCommands.d.ts.map +1 -0
- package/dist/commands/editingCommands.js +45 -0
- package/dist/commands/editingCommands.js.map +1 -0
- package/dist/commands/groupCommands.d.ts +8 -0
- package/dist/commands/groupCommands.d.ts.map +1 -0
- package/dist/commands/groupCommands.js +11 -0
- package/dist/commands/groupCommands.js.map +1 -0
- package/dist/commands/index.d.ts +4 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +27 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/navigationCommands.d.ts +5 -0
- package/dist/commands/navigationCommands.d.ts.map +1 -0
- package/dist/commands/navigationCommands.js +58 -0
- package/dist/commands/navigationCommands.js.map +1 -0
- package/dist/constants.d.ts +3 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +5 -0
- package/dist/constants.js.map +1 -0
- package/dist/editors/baseEditor.d.ts +25 -0
- package/dist/editors/baseEditor.d.ts.map +1 -0
- package/dist/editors/baseEditor.js +94 -0
- package/dist/editors/baseEditor.js.map +1 -0
- package/dist/editors/checkboxEditor.d.ts +9 -0
- package/dist/editors/checkboxEditor.d.ts.map +1 -0
- package/dist/editors/checkboxEditor.js +35 -0
- package/dist/editors/checkboxEditor.js.map +1 -0
- package/dist/editors/dropdownEditor.d.ts +19 -0
- package/dist/editors/dropdownEditor.d.ts.map +1 -0
- package/dist/editors/dropdownEditor.js +100 -0
- package/dist/editors/dropdownEditor.js.map +1 -0
- package/dist/editors/formulaEditor.d.ts +21 -0
- package/dist/editors/formulaEditor.d.ts.map +1 -0
- package/dist/editors/formulaEditor.js +116 -0
- package/dist/editors/formulaEditor.js.map +1 -0
- package/dist/editors/index.d.ts +8 -0
- package/dist/editors/index.d.ts.map +1 -0
- package/dist/editors/index.js +35 -0
- package/dist/editors/index.js.map +1 -0
- package/dist/editors/numberEditor.d.ts +9 -0
- package/dist/editors/numberEditor.d.ts.map +1 -0
- package/dist/editors/numberEditor.js +40 -0
- package/dist/editors/numberEditor.js.map +1 -0
- package/dist/editors/textEditor.d.ts +15 -0
- package/dist/editors/textEditor.d.ts.map +1 -0
- package/dist/editors/textEditor.js +76 -0
- package/dist/editors/textEditor.js.map +1 -0
- package/dist/filters/NumberFilter.d.ts +8 -0
- package/dist/filters/NumberFilter.d.ts.map +1 -0
- package/dist/filters/NumberFilter.js +17 -0
- package/dist/filters/NumberFilter.js.map +1 -0
- package/dist/filters/baseFilter.d.ts +17 -0
- package/dist/filters/baseFilter.d.ts.map +1 -0
- package/dist/filters/baseFilter.js +42 -0
- package/dist/filters/baseFilter.js.map +1 -0
- package/dist/filters/index.d.ts +4 -0
- package/dist/filters/index.d.ts.map +1 -0
- package/dist/filters/index.js +15 -0
- package/dist/filters/index.js.map +1 -0
- package/dist/filters/textFilter.d.ts +17 -0
- package/dist/filters/textFilter.d.ts.map +1 -0
- package/dist/filters/textFilter.js +86 -0
- package/dist/filters/textFilter.js.map +1 -0
- package/dist/gridAdapter.d.ts +29 -0
- package/dist/gridAdapter.d.ts.map +1 -0
- package/dist/gridAdapter.js +15 -0
- package/dist/gridAdapter.js.map +1 -0
- package/dist/i18n/en-us.d.ts +4 -0
- package/dist/i18n/en-us.d.ts.map +1 -0
- package/dist/i18n/en-us.js +7 -0
- package/dist/i18n/en-us.js.map +1 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +15 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/renderers/ActionRenderer.d.ts +3 -0
- package/dist/renderers/ActionRenderer.d.ts.map +1 -0
- package/dist/renderers/ActionRenderer.js +28 -0
- package/dist/renderers/ActionRenderer.js.map +1 -0
- package/dist/renderers/BaseRenderer.d.ts +5 -0
- package/dist/renderers/BaseRenderer.d.ts.map +1 -0
- package/dist/renderers/BaseRenderer.js +54 -0
- package/dist/renderers/BaseRenderer.js.map +1 -0
- package/dist/renderers/CheckboxRenderer.d.ts +3 -0
- package/dist/renderers/CheckboxRenderer.d.ts.map +1 -0
- package/dist/renderers/CheckboxRenderer.js +16 -0
- package/dist/renderers/CheckboxRenderer.js.map +1 -0
- package/dist/renderers/DateTimeRenderer.d.ts +3 -0
- package/dist/renderers/DateTimeRenderer.d.ts.map +1 -0
- package/dist/renderers/DateTimeRenderer.js +18 -0
- package/dist/renderers/DateTimeRenderer.js.map +1 -0
- package/dist/renderers/DropdownRenderer.d.ts +5 -0
- package/dist/renderers/DropdownRenderer.d.ts.map +1 -0
- package/dist/renderers/DropdownRenderer.js +24 -0
- package/dist/renderers/DropdownRenderer.js.map +1 -0
- package/dist/renderers/GeneralRenderer.d.ts +3 -0
- package/dist/renderers/GeneralRenderer.d.ts.map +1 -0
- package/dist/renderers/GeneralRenderer.js +16 -0
- package/dist/renderers/GeneralRenderer.js.map +1 -0
- package/dist/renderers/HtmlRenderer.d.ts +3 -0
- package/dist/renderers/HtmlRenderer.d.ts.map +1 -0
- package/dist/renderers/HtmlRenderer.js +10 -0
- package/dist/renderers/HtmlRenderer.js.map +1 -0
- package/dist/renderers/NumberRenderer.d.ts +3 -0
- package/dist/renderers/NumberRenderer.d.ts.map +1 -0
- package/dist/renderers/NumberRenderer.js +19 -0
- package/dist/renderers/NumberRenderer.js.map +1 -0
- package/dist/renderers/SparklineRenderer.d.ts +3 -0
- package/dist/renderers/SparklineRenderer.d.ts.map +1 -0
- package/dist/renderers/SparklineRenderer.js +12 -0
- package/dist/renderers/SparklineRenderer.js.map +1 -0
- package/dist/renderers/TextRenderer.d.ts +3 -0
- package/dist/renderers/TextRenderer.d.ts.map +1 -0
- package/dist/renderers/TextRenderer.js +11 -0
- package/dist/renderers/TextRenderer.js.map +1 -0
- package/dist/renderers/index.d.ts +10 -0
- package/dist/renderers/index.d.ts.map +1 -0
- package/dist/renderers/index.js +48 -0
- package/dist/renderers/index.js.map +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/ui/comment.d.ts +44 -0
- package/dist/ui/comment.d.ts.map +1 -0
- package/dist/ui/comment.js +214 -0
- package/dist/ui/comment.js.map +1 -0
- package/dist/ui/comment.style.d.ts +2 -0
- package/dist/ui/comment.style.d.ts.map +1 -0
- package/dist/ui/comment.style.js +50 -0
- package/dist/ui/comment.style.js.map +1 -0
- package/dist/ui/elementCache.d.ts +14 -0
- package/dist/ui/elementCache.d.ts.map +1 -0
- package/dist/ui/elementCache.js +61 -0
- package/dist/ui/elementCache.js.map +1 -0
- package/dist/ui/filter.d.ts +9 -0
- package/dist/ui/filter.d.ts.map +1 -0
- package/dist/ui/filter.js +71 -0
- package/dist/ui/filter.js.map +1 -0
- package/dist/ui/formulaInput.d.ts +51 -0
- package/dist/ui/formulaInput.d.ts.map +1 -0
- package/dist/ui/formulaInput.js +245 -0
- package/dist/ui/formulaInput.js.map +1 -0
- package/dist/ui/formulaInput.style.d.ts +2 -0
- package/dist/ui/formulaInput.style.d.ts.map +1 -0
- package/dist/ui/formulaInput.style.js +68 -0
- package/dist/ui/formulaInput.style.js.map +1 -0
- package/dist/ui/grid.d.ts +81 -0
- package/dist/ui/grid.d.ts.map +1 -0
- package/dist/ui/grid.editing.d.ts +54 -0
- package/dist/ui/grid.editing.d.ts.map +1 -0
- package/dist/ui/grid.editing.js +281 -0
- package/dist/ui/grid.editing.js.map +1 -0
- package/dist/ui/grid.events.d.ts +66 -0
- package/dist/ui/grid.events.d.ts.map +1 -0
- package/dist/ui/grid.events.js +449 -0
- package/dist/ui/grid.events.js.map +1 -0
- package/dist/ui/grid.filtering.d.ts +20 -0
- package/dist/ui/grid.filtering.d.ts.map +1 -0
- package/dist/ui/grid.filtering.js +59 -0
- package/dist/ui/grid.filtering.js.map +1 -0
- package/dist/ui/grid.js +233 -0
- package/dist/ui/grid.js.map +1 -0
- package/dist/ui/grid.menu.d.ts +36 -0
- package/dist/ui/grid.menu.d.ts.map +1 -0
- package/dist/ui/grid.menu.js +83 -0
- package/dist/ui/grid.menu.js.map +1 -0
- package/dist/ui/grid.rendering.d.ts +71 -0
- package/dist/ui/grid.rendering.d.ts.map +1 -0
- package/dist/ui/grid.rendering.js +336 -0
- package/dist/ui/grid.rendering.js.map +1 -0
- package/dist/ui/grid.selecting.d.ts +56 -0
- package/dist/ui/grid.selecting.d.ts.map +1 -0
- package/dist/ui/grid.selecting.js +261 -0
- package/dist/ui/grid.selecting.js.map +1 -0
- package/dist/ui/grid.sorting.d.ts +15 -0
- package/dist/ui/grid.sorting.d.ts.map +1 -0
- package/dist/ui/grid.sorting.js +33 -0
- package/dist/ui/grid.sorting.js.map +1 -0
- package/dist/ui/grid.style.d.ts +2 -0
- package/dist/ui/grid.style.d.ts.map +1 -0
- package/dist/ui/grid.style.js +25 -0
- package/dist/ui/grid.style.js.map +1 -0
- package/dist/ui/group.d.ts +68 -0
- package/dist/ui/group.d.ts.map +1 -0
- package/dist/ui/group.js +310 -0
- package/dist/ui/group.js.map +1 -0
- package/dist/ui/index.d.ts +18 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +34 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/selector.d.ts +83 -0
- package/dist/ui/selector.d.ts.map +1 -0
- package/dist/ui/selector.js +486 -0
- package/dist/ui/selector.js.map +1 -0
- package/dist/ui/selector.style.d.ts +2 -0
- package/dist/ui/selector.style.d.ts.map +1 -0
- package/dist/ui/selector.style.js +111 -0
- package/dist/ui/selector.style.js.map +1 -0
- package/dist/ui/sortingArrow.d.ts +8 -0
- package/dist/ui/sortingArrow.d.ts.map +1 -0
- package/dist/ui/sortingArrow.js +46 -0
- package/dist/ui/sortingArrow.js.map +1 -0
- package/dist/ui/sparkline.d.ts +14 -0
- package/dist/ui/sparkline.d.ts.map +1 -0
- package/dist/ui/sparkline.js +96 -0
- package/dist/ui/sparkline.js.map +1 -0
- package/dist/ui/table.d.ts +109 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +899 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/table.styles.d.ts +2 -0
- package/dist/ui/table.styles.d.ts.map +1 -0
- package/dist/ui/table.styles.js +216 -0
- package/dist/ui/table.styles.js.map +1 -0
- package/dist/ui/tooltip.d.ts +9 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.js +32 -0
- package/dist/ui/tooltip.js.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Selector = exports.SelectorMoveEvent = exports.SelectorEvent = void 0;
|
|
13
|
+
const constants_1 = __importDefault(require("../constants"));
|
|
14
|
+
const core_1 = require("@omegagrid/core");
|
|
15
|
+
const grid_core_1 = require("@omegagrid/grid-core");
|
|
16
|
+
const lit_1 = require("lit");
|
|
17
|
+
const decorators_js_1 = require("lit/decorators.js");
|
|
18
|
+
const selector_style_1 = require("./selector.style");
|
|
19
|
+
const style_map_js_1 = require("lit/directives/style-map.js");
|
|
20
|
+
class SelectorEvent extends Event {
|
|
21
|
+
constructor(type, args) {
|
|
22
|
+
super(`grid.selector.${type}`, { composed: true, bubbles: true });
|
|
23
|
+
Object.assign(this, args);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.SelectorEvent = SelectorEvent;
|
|
27
|
+
class SelectorMoveEvent extends SelectorEvent {
|
|
28
|
+
constructor(args) {
|
|
29
|
+
super('move');
|
|
30
|
+
Object.assign(this, args);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.SelectorMoveEvent = SelectorMoveEvent;
|
|
34
|
+
let Selector = class Selector extends lit_1.LitElement {
|
|
35
|
+
constructor() {
|
|
36
|
+
super(...arguments);
|
|
37
|
+
this._animationTimer = null;
|
|
38
|
+
this._autofilling = false;
|
|
39
|
+
this._moving = false;
|
|
40
|
+
this._resizing = false;
|
|
41
|
+
this.subselector = false;
|
|
42
|
+
this.borderWidth = constants_1.default.SELECTOR_BORDER_WIDTH;
|
|
43
|
+
this.animated = false;
|
|
44
|
+
this._isVisible = false;
|
|
45
|
+
this.hide = () => {
|
|
46
|
+
this._isVisible = false;
|
|
47
|
+
core_1.dom.hideElement(this);
|
|
48
|
+
this.stopAnimation();
|
|
49
|
+
};
|
|
50
|
+
this.show = () => {
|
|
51
|
+
this._isVisible = true;
|
|
52
|
+
core_1.dom.showElement(this);
|
|
53
|
+
this.startAnimation();
|
|
54
|
+
};
|
|
55
|
+
this._onHandleMouseMove = (e) => {
|
|
56
|
+
for (const elm of e.composedPath()) {
|
|
57
|
+
if (elm.tagName == 'TD') {
|
|
58
|
+
const td = elm;
|
|
59
|
+
const { c1, r1, c2, r2 } = this.selection.range;
|
|
60
|
+
const { r, c } = td;
|
|
61
|
+
this._autofillRange = null;
|
|
62
|
+
// down autofill
|
|
63
|
+
if (r > r2 && c - c2 <= r - r2) {
|
|
64
|
+
this._autofillDirection = 'down';
|
|
65
|
+
this._autofillRange = new grid_core_1.CellRange(c1, r2 + 1, c2, r);
|
|
66
|
+
}
|
|
67
|
+
// up autofill
|
|
68
|
+
else if (r < r1 && c1 - c <= r1 - r) {
|
|
69
|
+
this._autofillDirection = 'up';
|
|
70
|
+
this._autofillRange = new grid_core_1.CellRange(c1, r, c2, r1 - 1);
|
|
71
|
+
}
|
|
72
|
+
// right autofill
|
|
73
|
+
else if (c > c2 && c - c2 > r - r2) {
|
|
74
|
+
this._autofillDirection = 'right';
|
|
75
|
+
this._autofillRange = new grid_core_1.CellRange(c2 + 1, r1, c, r2);
|
|
76
|
+
}
|
|
77
|
+
// left autofill
|
|
78
|
+
else if (c < c1 && c1 - c > r1 - r) {
|
|
79
|
+
this._autofillDirection = 'left';
|
|
80
|
+
this._autofillRange = new grid_core_1.CellRange(c, r1, c1 - 1, r2);
|
|
81
|
+
}
|
|
82
|
+
if (this._autofillRange)
|
|
83
|
+
this.highlightAutofillRange();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
this._onHandleMouseDown = () => {
|
|
89
|
+
var _a;
|
|
90
|
+
this._autofilling = true;
|
|
91
|
+
this.autofillSelector = (_a = this.autofillSelector) !== null && _a !== void 0 ? _a : this.createAutofillSelector();
|
|
92
|
+
core_1.dom.hideElement(this.autofillSelector);
|
|
93
|
+
core_1.dom.appendElement(this.grid.shadowRoot, this.autofillSelector);
|
|
94
|
+
this.table.addEventListener('mousemove', this._onHandleMouseMove);
|
|
95
|
+
this.table.addEventListener('mouseup', () => {
|
|
96
|
+
this._autofilling = false;
|
|
97
|
+
this.dispatchEvent(new SelectorEvent('autofill', { selector: this }));
|
|
98
|
+
//this.autofillRange = null;
|
|
99
|
+
this.autofillSelector.remove();
|
|
100
|
+
this.table.removeEventListener('mousemove', this._onHandleMouseMove);
|
|
101
|
+
}, { once: true });
|
|
102
|
+
};
|
|
103
|
+
// TODO - another mousemove event handler in grid.events.ts, should be passible to move it there
|
|
104
|
+
this._onMoveHandleMouseMove = (e) => {
|
|
105
|
+
// primary button not pressed
|
|
106
|
+
if ((e.buttons & 1) == 0) {
|
|
107
|
+
this.stopMoving();
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const td = e.composedPath().find((elm) => elm.tagName == 'TD');
|
|
111
|
+
if (td) {
|
|
112
|
+
const c = this.selection.range.isRow ? 0 : td.c - this.movingBaseCell.c1;
|
|
113
|
+
const r = this.selection.range.isColumn ? 0 : td.r - this.movingBaseCell.r1;
|
|
114
|
+
const moveSelector = this.getMoveSelector();
|
|
115
|
+
moveSelector.selection.setCoords(this.selection.range.c1 + c, this.selection.range.r1 + r, this.selection.range.c2 + c, this.selection.range.r2 + r);
|
|
116
|
+
moveSelector.select(moveSelector.selection, this.grid);
|
|
117
|
+
core_1.dom.showElement(this.moveSelector);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
this._onMoveHandleMouseDown = (e, _side) => {
|
|
121
|
+
const x = e.offsetX + e.target.offsetLeft + this.offsetLeft - this.table.totalHeaderWidth;
|
|
122
|
+
const y = e.offsetY + e.target.offsetTop + this.offsetTop - this.table.thead.clientHeight;
|
|
123
|
+
let i = -1, h = 0, w = 0;
|
|
124
|
+
while (h < y && this.table.bRows[++i]) {
|
|
125
|
+
h += this.table.bRows[i].clientHeight;
|
|
126
|
+
}
|
|
127
|
+
const row = this.table.bRows[i];
|
|
128
|
+
if (row) {
|
|
129
|
+
i = -1;
|
|
130
|
+
while (w < x && row.children[++i]) {
|
|
131
|
+
w += row.children[i].tagName == 'TD' ? row.children[i].clientWidth : 0;
|
|
132
|
+
}
|
|
133
|
+
const cell = row.children[Math.max(i, 0)];
|
|
134
|
+
const { r, c } = cell;
|
|
135
|
+
this.startMoving(new grid_core_1.CellRange(c, r));
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
this._onResizeHandleMouseMove = (e) => {
|
|
139
|
+
if (e.buttons != 1)
|
|
140
|
+
this.stopResizing();
|
|
141
|
+
for (const elm of e.composedPath()) {
|
|
142
|
+
if (elm.tagName == 'TD') {
|
|
143
|
+
const td = elm;
|
|
144
|
+
const { c1, r1, c2, r2 } = this.selection.range;
|
|
145
|
+
const { r, c } = td;
|
|
146
|
+
const range = this.selection.range.clone();
|
|
147
|
+
switch (this._resizingDirection) {
|
|
148
|
+
case 'nw':
|
|
149
|
+
if (r <= r2 && c <= c2) {
|
|
150
|
+
range.r1 = r;
|
|
151
|
+
range.c1 = c;
|
|
152
|
+
}
|
|
153
|
+
break;
|
|
154
|
+
case 'ne':
|
|
155
|
+
if (r <= r2 && c >= c1) {
|
|
156
|
+
range.r1 = r;
|
|
157
|
+
range.c2 = c;
|
|
158
|
+
}
|
|
159
|
+
break;
|
|
160
|
+
case 'sw':
|
|
161
|
+
if (r >= r1 && c <= c2) {
|
|
162
|
+
range.r2 = r;
|
|
163
|
+
range.c1 = c;
|
|
164
|
+
}
|
|
165
|
+
break;
|
|
166
|
+
case 'se':
|
|
167
|
+
if (r >= r1 && c >= c1) {
|
|
168
|
+
range.r2 = r;
|
|
169
|
+
range.c2 = c;
|
|
170
|
+
}
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
if (!this.selection.range.equals(range)) {
|
|
174
|
+
this.selection.setRange(range);
|
|
175
|
+
this.updatePosition();
|
|
176
|
+
}
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
this._onResizeHandleMouseDown = (e, direction) => {
|
|
182
|
+
e.stopImmediatePropagation();
|
|
183
|
+
this._resizing = true;
|
|
184
|
+
this._resizingDirection = direction;
|
|
185
|
+
this.table.addEventListener('mousemove', this._onResizeHandleMouseMove);
|
|
186
|
+
const _mouseUp = (e) => {
|
|
187
|
+
if (e.button != 0)
|
|
188
|
+
return;
|
|
189
|
+
this.stopResizing();
|
|
190
|
+
this.table.removeEventListener('mouseup', _mouseUp);
|
|
191
|
+
};
|
|
192
|
+
this.table.addEventListener('mouseup', _mouseUp);
|
|
193
|
+
};
|
|
194
|
+
this._onHandleMouseUp = (e) => {
|
|
195
|
+
if (e.button != 0)
|
|
196
|
+
return;
|
|
197
|
+
this.stopMoving();
|
|
198
|
+
this.stopResizing();
|
|
199
|
+
};
|
|
200
|
+
this.render = () => (0, lit_1.html) `
|
|
201
|
+
${this.subselector ? (0, lit_1.html) `<div id="subselector"></div>` : ''}
|
|
202
|
+
${this.resizable ? (0, lit_1.html) `
|
|
203
|
+
<div id="handle-nw" class="handle-resize" style="${(0, style_map_js_1.styleMap)({ backgroundColor: this.color })}"
|
|
204
|
+
@mousedown="${(e) => this._onResizeHandleMouseDown(e, 'nw')}"
|
|
205
|
+
@mouseup="${this._onHandleMouseUp}"></div>
|
|
206
|
+
<div id="handle-ne" class="handle-resize" style="${(0, style_map_js_1.styleMap)({ backgroundColor: this.color })}"
|
|
207
|
+
@mousedown="${(e) => this._onResizeHandleMouseDown(e, 'ne')}"
|
|
208
|
+
@mouseup="${this._onHandleMouseUp}"></div>
|
|
209
|
+
<div id="handle-sw" class="handle-resize" style="${(0, style_map_js_1.styleMap)({ backgroundColor: this.color })}"
|
|
210
|
+
@mousedown="${(e) => this._onResizeHandleMouseDown(e, 'sw')}"
|
|
211
|
+
@mouseup="${this._onHandleMouseUp}"></div>
|
|
212
|
+
<div id="handle-se" class="handle-resize" style="${(0, style_map_js_1.styleMap)({ backgroundColor: this.color })}"
|
|
213
|
+
@mousedown="${(e) => this._onResizeHandleMouseDown(e, 'se')}"
|
|
214
|
+
@mouseup="${this._onHandleMouseUp}"></div>
|
|
215
|
+
` : (this.autofill ? (0, lit_1.html) `
|
|
216
|
+
<div id="handle" @mousedown="${this._onHandleMouseDown}"></div>
|
|
217
|
+
` : '')}
|
|
218
|
+
|
|
219
|
+
${this.movable ? (0, lit_1.html) `
|
|
220
|
+
<div id="handle-top" class="handle-move"
|
|
221
|
+
@mousedown="${(e) => this._onMoveHandleMouseDown(e, 'top')}"
|
|
222
|
+
@mouseup="${this._onHandleMouseUp}"></div>
|
|
223
|
+
<div id="handle-right" class="handle-move"
|
|
224
|
+
@mousedown="${(e) => this._onMoveHandleMouseDown(e, 'right')}"
|
|
225
|
+
@mouseup="${this._onHandleMouseUp}"></div>
|
|
226
|
+
<div id="handle-bottom" class="handle-move"
|
|
227
|
+
@mousedown="${(e) => this._onMoveHandleMouseDown(e, 'bottom')}"
|
|
228
|
+
@mouseup="${this._onHandleMouseUp}"></div>
|
|
229
|
+
<div id="handle-left" class="handle-move"
|
|
230
|
+
@mousedown="${(e) => this._onMoveHandleMouseDown(e, 'left')}"
|
|
231
|
+
@mouseup="${this._onHandleMouseUp}"></div>
|
|
232
|
+
` : ''}
|
|
233
|
+
${this.animated ? (0, lit_1.html) `
|
|
234
|
+
<svg id="svgAnimation" xmlns="http://www.w3.org/2000/svg">
|
|
235
|
+
<rect width="100%" height="100%" fill="none" stroke-width="4" stroke-dasharray="6,14" stroke-dashoffset="0" stroke-linecap="square" />
|
|
236
|
+
</svg>
|
|
237
|
+
` : ''}
|
|
238
|
+
`;
|
|
239
|
+
}
|
|
240
|
+
get grid() { return this._grid; }
|
|
241
|
+
get selection() { return this._selection; }
|
|
242
|
+
get moving() { return this._moving; }
|
|
243
|
+
get autofillDirection() { return this._autofillDirection; }
|
|
244
|
+
get autofillRange() { return this._autofillRange; }
|
|
245
|
+
get isAutofilling() { return this._autofilling; }
|
|
246
|
+
get isMoving() { return this._moving; }
|
|
247
|
+
get isResizing() { return this._resizing; }
|
|
248
|
+
get table() { return this.grid ? this.grid.table : null; }
|
|
249
|
+
get isVisible() { return this._isVisible; }
|
|
250
|
+
highlightAutofillRange() {
|
|
251
|
+
const tlCell = this.table.getCellByModelIndex(this._autofillRange.c1, this._autofillRange.r1);
|
|
252
|
+
const trCell = this.table.getCellByModelIndex(this._autofillRange.c2, this._autofillRange.r1);
|
|
253
|
+
const brCell = this.table.getCellByModelIndex(this._autofillRange.c2, this._autofillRange.r2);
|
|
254
|
+
const blCell = this.table.getCellByModelIndex(this._autofillRange.c1, this._autofillRange.r2);
|
|
255
|
+
let left = -100;
|
|
256
|
+
let top = -100;
|
|
257
|
+
let right = this.table.offsetWidth + 100;
|
|
258
|
+
let bottom = this.table.offsetHeight + 100;
|
|
259
|
+
if (tlCell) {
|
|
260
|
+
const offset = core_1.dom.getElementOffset(tlCell, this.table);
|
|
261
|
+
top = offset.top;
|
|
262
|
+
left = offset.left;
|
|
263
|
+
}
|
|
264
|
+
if (trCell) {
|
|
265
|
+
const offset = core_1.dom.getElementOffset(trCell, this.table);
|
|
266
|
+
top = offset.top;
|
|
267
|
+
right = offset.left + brCell.offsetWidth;
|
|
268
|
+
}
|
|
269
|
+
if (blCell) {
|
|
270
|
+
const offset = core_1.dom.getElementOffset(blCell, this.table);
|
|
271
|
+
bottom = offset.top + blCell.offsetHeight;
|
|
272
|
+
left = offset.left;
|
|
273
|
+
}
|
|
274
|
+
if (brCell) {
|
|
275
|
+
const offset = core_1.dom.getElementOffset(brCell, this.table);
|
|
276
|
+
bottom = offset.top + brCell.offsetHeight;
|
|
277
|
+
right = offset.left + brCell.offsetWidth;
|
|
278
|
+
}
|
|
279
|
+
core_1.dom.setPosition(this.autofillSelector, { l: left, t: top });
|
|
280
|
+
core_1.dom.setSize(this.autofillSelector, { w: right - left, h: bottom - top });
|
|
281
|
+
core_1.dom.showElement(this.autofillSelector);
|
|
282
|
+
}
|
|
283
|
+
createAutofillSelector() {
|
|
284
|
+
const selector = core_1.dom.createElement('div');
|
|
285
|
+
selector.className = 'autofill';
|
|
286
|
+
selector.style.border = '1px solid var(--accent-color)';
|
|
287
|
+
selector.style.zIndex = '100';
|
|
288
|
+
selector.style.pointerEvents = 'none';
|
|
289
|
+
return selector;
|
|
290
|
+
}
|
|
291
|
+
getMoveSelector() {
|
|
292
|
+
if (!this.moveSelector) {
|
|
293
|
+
this.moveSelector = core_1.dom.createElement('og-selector', this.grid.shadowRoot);
|
|
294
|
+
this.moveSelector.style.borderStyle = 'dotted';
|
|
295
|
+
this.moveSelector.subselector = false;
|
|
296
|
+
this.moveSelector._selection = grid_core_1.SelectionModel.fromRange(this.selection.range);
|
|
297
|
+
}
|
|
298
|
+
return this.moveSelector;
|
|
299
|
+
}
|
|
300
|
+
startMoving(moveBaseCell) {
|
|
301
|
+
this.movingBaseCell = moveBaseCell;
|
|
302
|
+
this._moving = true;
|
|
303
|
+
this.table.addEventListener('mousemove', this._onMoveHandleMouseMove);
|
|
304
|
+
this.table.addEventListener('mouseup', () => this.stopMoving(), { once: true });
|
|
305
|
+
}
|
|
306
|
+
stopMoving() {
|
|
307
|
+
if (!this._moving)
|
|
308
|
+
return;
|
|
309
|
+
this._moving = false;
|
|
310
|
+
core_1.dom.hideElement(this.moveSelector);
|
|
311
|
+
this.table.removeEventListener('mousemove', this._onMoveHandleMouseMove);
|
|
312
|
+
if (this.moveSelector) {
|
|
313
|
+
const fromRange = this.selection.range.clone();
|
|
314
|
+
const toRange = this.moveSelector.selection.range.clone();
|
|
315
|
+
if (!fromRange.equals(toRange)) {
|
|
316
|
+
this.selection.setRange(toRange);
|
|
317
|
+
this.grid.selecting.updateSelector(true);
|
|
318
|
+
this.dispatchEvent(new SelectorMoveEvent({ fromRange, toRange, selector: this }));
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
stopResizing() {
|
|
323
|
+
if (!this._resizing)
|
|
324
|
+
return;
|
|
325
|
+
this._resizing = false;
|
|
326
|
+
this.dispatchEvent(new SelectorEvent('resize', { selector: this }));
|
|
327
|
+
this.table.removeEventListener('mousemove', this._onResizeHandleMouseMove);
|
|
328
|
+
}
|
|
329
|
+
startAnimation() {
|
|
330
|
+
if (!this.animated || this._animationTimer != null || !this.isVisible)
|
|
331
|
+
return;
|
|
332
|
+
let dashOffset = 0;
|
|
333
|
+
this._animationTimer = window.setInterval(() => {
|
|
334
|
+
dashOffset += 2;
|
|
335
|
+
dashOffset = dashOffset == 20 ? 0 : dashOffset;
|
|
336
|
+
this.svgAnimation.firstElementChild.setAttribute('stroke-dashoffset', dashOffset.toString());
|
|
337
|
+
}, 50);
|
|
338
|
+
}
|
|
339
|
+
stopAnimation() {
|
|
340
|
+
if (this._animationTimer != null)
|
|
341
|
+
window.clearInterval(this._animationTimer);
|
|
342
|
+
this._animationTimer = null;
|
|
343
|
+
}
|
|
344
|
+
disconnectedCallback() {
|
|
345
|
+
this.stopAnimation();
|
|
346
|
+
}
|
|
347
|
+
willUpdate() {
|
|
348
|
+
if (this.color)
|
|
349
|
+
this.style.borderColor = this.color;
|
|
350
|
+
}
|
|
351
|
+
updated() {
|
|
352
|
+
this.updatePosition();
|
|
353
|
+
if (!this.animated && this._animationTimer != null)
|
|
354
|
+
this.stopAnimation();
|
|
355
|
+
else if (this.animated && this._animationTimer == null)
|
|
356
|
+
this.startAnimation();
|
|
357
|
+
}
|
|
358
|
+
updatePosition() {
|
|
359
|
+
var _a;
|
|
360
|
+
if (!((_a = this.table) === null || _a === void 0 ? void 0 : _a.model))
|
|
361
|
+
return;
|
|
362
|
+
const zoom = this.table.zoom;
|
|
363
|
+
core_1.dom.zoomElement(this, zoom);
|
|
364
|
+
let top = -1000, left = -1000, width = 0, height = 0;
|
|
365
|
+
let subTop = -1000, subLeft = -1000, subWidth = 0, subHeight = 0;
|
|
366
|
+
const options = this.table.model.options;
|
|
367
|
+
if (this.selection && !this.selection.hidden) {
|
|
368
|
+
const cMin = Math.min(this.selection.range.c1, this.selection.range.c2);
|
|
369
|
+
const cMax = Math.max(this.selection.range.c1, this.selection.range.c2);
|
|
370
|
+
const rMin = Math.min(this.selection.range.r1, this.selection.range.r2);
|
|
371
|
+
const rMax = Math.max(this.selection.range.r1, this.selection.range.r2);
|
|
372
|
+
this.topLeftCell = this.table.getCellByModelIndex(cMin, rMin);
|
|
373
|
+
this.topRightCell = this.table.getCellByModelIndex(cMax, rMin);
|
|
374
|
+
this.bottomLeftCell = this.table.getCellByModelIndex(cMin, rMax);
|
|
375
|
+
this.bottomRightCell = this.table.getCellByModelIndex(cMax, rMax);
|
|
376
|
+
if (this.topLeftCell || this.topRightCell || this.bottomLeftCell || this.bottomRightCell) {
|
|
377
|
+
core_1.dom.setBorderWidth(this, {
|
|
378
|
+
r: this.topRightCell || this.bottomRightCell ? this.borderWidth : 0,
|
|
379
|
+
b: this.bottomRightCell || this.bottomLeftCell ? this.borderWidth : 0,
|
|
380
|
+
l: this.topLeftCell || this.bottomLeftCell ? this.borderWidth : 0,
|
|
381
|
+
t: this.topRightCell || this.topLeftCell ? this.borderWidth : 0
|
|
382
|
+
});
|
|
383
|
+
top = this.topLeftCell || this.topRightCell
|
|
384
|
+
? core_1.dom.getElementOffset(this.topLeftCell || this.topRightCell, this.table).top
|
|
385
|
+
: core_1.dom.getElementOffset(this.table.getCellByGridIndex(0, options.freezeTop), this.table).top;
|
|
386
|
+
height = (this.bottomRightCell || this.bottomLeftCell
|
|
387
|
+
? core_1.dom.getElementOffset(this.bottomRightCell || this.bottomLeftCell, this.table).top - top + (this.bottomRightCell || this.bottomLeftCell).offsetHeight
|
|
388
|
+
: (rMax <= this.table.rowOffset
|
|
389
|
+
? (core_1.dom.getElementOffset(this.table.getCellByGridIndex(0, options.freezeTop), this.table).top - top)
|
|
390
|
+
: this.table.offsetHeight - top)) + 1;
|
|
391
|
+
left = this.topLeftCell || this.bottomLeftCell
|
|
392
|
+
? core_1.dom.getElementOffset(this.topLeftCell || this.bottomLeftCell, this.table).left
|
|
393
|
+
: core_1.dom.getElementOffset(this.table.getCellByGridIndex(options.freezeLeft, 0), this.table).left;
|
|
394
|
+
width = (this.topRightCell || this.bottomRightCell
|
|
395
|
+
? core_1.dom.getElementOffset(this.topRightCell || this.bottomRightCell, this.table).left - left + (this.topRightCell || this.bottomRightCell).offsetWidth
|
|
396
|
+
: (cMax <= this.table.colOffset
|
|
397
|
+
? (core_1.dom.getElementOffset(this.table.getCellByGridIndex(options.freezeLeft, 0), this.table).left - left)
|
|
398
|
+
: this.table.offsetWidth - left)) + 1;
|
|
399
|
+
if (this.selection.activeCell) {
|
|
400
|
+
this.activeCell = this.table.getCellByModelIndex(cMin + this.selection.activeCell.c1, rMin + this.selection.activeCell.r1);
|
|
401
|
+
if (this.activeCell) {
|
|
402
|
+
const subOffset = core_1.dom.getElementOffset(this.activeCell, this.table);
|
|
403
|
+
subLeft = subOffset.left - left;
|
|
404
|
+
subTop = subOffset.top - top;
|
|
405
|
+
subWidth = this.activeCell.offsetWidth;
|
|
406
|
+
subHeight = this.activeCell.offsetHeight;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
core_1.dom.setPosition(this, { l: left * zoom, t: top * zoom });
|
|
412
|
+
core_1.dom.setSize(this, { w: width, h: height });
|
|
413
|
+
if (this.subselectorElm) {
|
|
414
|
+
if (this.selection.activeCell) {
|
|
415
|
+
core_1.dom.setPosition(this.subselectorElm, { l: subLeft - constants_1.default.SELECTOR_BORDER_WIDTH, t: subTop - constants_1.default.SELECTOR_BORDER_WIDTH });
|
|
416
|
+
core_1.dom.setSize(this.subselectorElm, { w: subWidth - 1, h: subHeight - 1 });
|
|
417
|
+
}
|
|
418
|
+
else {
|
|
419
|
+
core_1.dom.hideElement(this.subselectorElm);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
if (this.svgAnimation) {
|
|
423
|
+
this.svgAnimation.setAttribute('width', (this.clientWidth + 4).toString());
|
|
424
|
+
this.svgAnimation.setAttribute('height', (this.clientHeight + 4).toString());
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
select(selection, grid, dispatchEvent = true) {
|
|
428
|
+
if (selection) {
|
|
429
|
+
selection.activeCell.c1 = 0;
|
|
430
|
+
selection.activeCell.r1 = 0;
|
|
431
|
+
}
|
|
432
|
+
this._selection = selection;
|
|
433
|
+
this._grid = grid;
|
|
434
|
+
this.updatePosition();
|
|
435
|
+
if (dispatchEvent)
|
|
436
|
+
this.dispatchEvent(new SelectorEvent('select', { selector: this }));
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
exports.Selector = Selector;
|
|
440
|
+
Selector.styles = [selector_style_1.style];
|
|
441
|
+
__decorate([
|
|
442
|
+
(0, decorators_js_1.property)({ type: Boolean })
|
|
443
|
+
], Selector.prototype, "autofill", void 0);
|
|
444
|
+
__decorate([
|
|
445
|
+
(0, decorators_js_1.property)({ type: Boolean, reflect: true })
|
|
446
|
+
], Selector.prototype, "movable", void 0);
|
|
447
|
+
__decorate([
|
|
448
|
+
(0, decorators_js_1.property)({ type: Boolean, reflect: true })
|
|
449
|
+
], Selector.prototype, "resizable", void 0);
|
|
450
|
+
__decorate([
|
|
451
|
+
(0, decorators_js_1.property)({ type: Boolean, reflect: true })
|
|
452
|
+
], Selector.prototype, "subselector", void 0);
|
|
453
|
+
__decorate([
|
|
454
|
+
(0, decorators_js_1.property)({ type: String })
|
|
455
|
+
], Selector.prototype, "color", void 0);
|
|
456
|
+
__decorate([
|
|
457
|
+
(0, decorators_js_1.property)({ type: Number })
|
|
458
|
+
], Selector.prototype, "borderWidth", void 0);
|
|
459
|
+
__decorate([
|
|
460
|
+
(0, decorators_js_1.property)({ type: Boolean, reflect: true })
|
|
461
|
+
], Selector.prototype, "animated", void 0);
|
|
462
|
+
__decorate([
|
|
463
|
+
(0, decorators_js_1.query)('#handle')
|
|
464
|
+
], Selector.prototype, "handleElm", void 0);
|
|
465
|
+
__decorate([
|
|
466
|
+
(0, decorators_js_1.query)('#svgAnimation')
|
|
467
|
+
], Selector.prototype, "svgAnimation", void 0);
|
|
468
|
+
__decorate([
|
|
469
|
+
(0, decorators_js_1.query)('#handle-left')
|
|
470
|
+
], Selector.prototype, "moveHandleLeftElm", void 0);
|
|
471
|
+
__decorate([
|
|
472
|
+
(0, decorators_js_1.query)('#handle-top')
|
|
473
|
+
], Selector.prototype, "moveHandleTopElm", void 0);
|
|
474
|
+
__decorate([
|
|
475
|
+
(0, decorators_js_1.query)('#handle-right')
|
|
476
|
+
], Selector.prototype, "moveHandleRightElm", void 0);
|
|
477
|
+
__decorate([
|
|
478
|
+
(0, decorators_js_1.query)('#handle-bottom')
|
|
479
|
+
], Selector.prototype, "moveHandleBottomElm", void 0);
|
|
480
|
+
__decorate([
|
|
481
|
+
(0, decorators_js_1.query)('#subselector')
|
|
482
|
+
], Selector.prototype, "subselectorElm", void 0);
|
|
483
|
+
exports.Selector = Selector = __decorate([
|
|
484
|
+
(0, decorators_js_1.customElement)('og-selector')
|
|
485
|
+
], Selector);
|
|
486
|
+
//# sourceMappingURL=selector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector.js","sourceRoot":"","sources":["../../src/ui/selector.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAqC;AACrC,0CAAyF;AACzF,oDAAiE;AACjE,6BAAuC;AACvC,qDAAmE;AAEnE,qDAAyC;AAEzC,8DAAuD;AAEvD,MAAa,aAAc,SAAQ,KAAK;IAIvC,YAAY,IAAY,EAAE,IAA6B;QACtD,KAAK,CAAC,iBAAiB,IAAI,EAAE,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;QAChE,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC;CACD;AARD,sCAQC;AAED,MAAa,iBAAkB,SAAQ,aAAa;IAGnD,YAAY,IAAiC;QAC5C,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC;CACD;AAPD,8CAOC;AAGM,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,gBAAU;IAAjC;;QAoBE,oBAAe,GAAW,IAAI,CAAC;QAQ/B,iBAAY,GAAG,KAAK,CAAC;QAGrB,YAAO,GAAG,KAAK,CAAC;QAGhB,cAAS,GAAG,KAAK,CAAC;QAkB1B,gBAAW,GA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B;IADC,IAAA,qBAAK,EAAC,SAAS,CAAC;2CACS;AAG1B;IADC,IAAA,qBAAK,EAAC,eAAe,CAAC;8CACE;AAGzB;IADC,IAAA,qBAAK,EAAC,cAAc,CAAC;mDACY;AAGlC;IADC,IAAA,qBAAK,EAAC,aAAa,CAAC;kDACY;AAGjC;IADC,IAAA,qBAAK,EAAC,eAAe,CAAC;oDACY;AAGnC;IADC,IAAA,qBAAK,EAAC,gBAAgB,CAAC;qDACY;AAGpC;IADC,IAAA,qBAAK,EAAC,cAAc,CAAC;gDACS;mBAlFnB,QAAQ;IADpB,IAAA,6BAAa,EAAC,aAAa,CAAC;GAChB,QAAQ,CAufpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector.style.d.ts","sourceRoot":"","sources":["../../src/ui/selector.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,yBAyGjB,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.style = void 0;
|
|
4
|
+
const lit_1 = require("lit");
|
|
5
|
+
exports.style = (0, lit_1.css) `
|
|
6
|
+
:host {
|
|
7
|
+
z-index: 100;
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
position: absolute;
|
|
10
|
+
background-color: var(--accent-color-alpha);
|
|
11
|
+
border: 2px solid var(--accent-color);
|
|
12
|
+
//border-color: transparent;
|
|
13
|
+
display: none;
|
|
14
|
+
cursor: move;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host([animated]) {
|
|
18
|
+
/* stroke: red;
|
|
19
|
+
background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23333' stroke-width='4' stroke-dasharray='6%2c 14' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e"); */
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
border-color: transparent;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#svgAnimation {
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: -2px;
|
|
27
|
+
left: -2px;
|
|
28
|
+
stroke: var(--accent-color);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#handle {
|
|
32
|
+
position: absolute;
|
|
33
|
+
width: 6px;
|
|
34
|
+
height: 6px;
|
|
35
|
+
right: -4px;
|
|
36
|
+
bottom: -4px;
|
|
37
|
+
background-color: var(--accent-color);
|
|
38
|
+
cursor: crosshair;
|
|
39
|
+
pointer-events: all;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#subselector {
|
|
43
|
+
z-index: 99;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
border: 1px solid var(--accent-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.handle-move {
|
|
49
|
+
position: absolute;
|
|
50
|
+
cursor: move;
|
|
51
|
+
pointer-events: all;
|
|
52
|
+
//background-color: red;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
#handle-top {
|
|
56
|
+
z-index: 98;
|
|
57
|
+
inset: -2px 0 auto 0;
|
|
58
|
+
height: 4px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
#handle-bottom {
|
|
62
|
+
z-index: 98;
|
|
63
|
+
inset: auto 0 -2px 0;
|
|
64
|
+
height: 4px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
#handle-right {
|
|
68
|
+
z-index: 98;
|
|
69
|
+
inset: 0 -2px 0 auto;
|
|
70
|
+
width: 4px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
#handle-left {
|
|
74
|
+
z-index: 98;
|
|
75
|
+
inset: 0 auto 0 -2px;
|
|
76
|
+
width: 4px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.handle-resize {
|
|
80
|
+
position: absolute;
|
|
81
|
+
width: 6px;
|
|
82
|
+
height: 6px;
|
|
83
|
+
background-color: var(--accent-color);
|
|
84
|
+
pointer-events: all;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
#handle-se {
|
|
88
|
+
right: -4px;
|
|
89
|
+
bottom: -4px;
|
|
90
|
+
cursor: se-resize;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
#handle-sw {
|
|
94
|
+
left: -4px;
|
|
95
|
+
bottom: -4px;
|
|
96
|
+
cursor: sw-resize;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
#handle-nw {
|
|
100
|
+
left: -4px;
|
|
101
|
+
top: -4px;
|
|
102
|
+
cursor: nw-resize;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
#handle-ne {
|
|
106
|
+
right: -4px;
|
|
107
|
+
top: -4px;
|
|
108
|
+
cursor: ne-resize;
|
|
109
|
+
}
|
|
110
|
+
`;
|
|
111
|
+
//# sourceMappingURL=selector.style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector.style.js","sourceRoot":"","sources":["../../src/ui/selector.style.ts"],"names":[],"mappings":";;;AAAA,6BAA0B;AAEb,QAAA,KAAK,GAAG,IAAA,SAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyGvB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { SortSettings } from '@omegagrid/grid-core';
|
|
3
|
+
export declare class SortingArrow extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
sortSettings: SortSettings;
|
|
6
|
+
render(): import("lit-html").TemplateResult<1> | "";
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=sortingArrow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortingArrow.d.ts","sourceRoot":"","sources":["../../src/ui/sortingArrow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,EAAa,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE/D,qBACa,YAAa,SAAQ,UAAU;IAE3C,MAAM,CAAC,MAAM,0BAeX;IAGF,YAAY,EAAE,YAAY,CAAC;IAE3B,MAAM;CAON"}
|