@itrocks/table 0.1.9 → 0.2.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.
@@ -0,0 +1,5 @@
1
+ import { Plugin } from '../plugin/plugin.js';
2
+ import { Table } from './table.js';
3
+ export declare class TableColumnReorderFreeze extends Plugin<Table> {
4
+ init(): void;
5
+ }
@@ -0,0 +1,20 @@
1
+ import { Plugin } from '../plugin/plugin.js';
2
+ import { TableColumnReorder } from './column-reorder.js';
3
+ import { TableFreeze } from './freeze.js';
4
+ export class TableColumnReorderFreeze extends Plugin {
5
+ init() {
6
+ const reorder = this.of.plugins.TableColumnReorder;
7
+ const freeze = this.of.plugins.TableFreeze;
8
+ if (!(reorder instanceof TableColumnReorder) || !(freeze instanceof TableFreeze))
9
+ return;
10
+ if (reorder.options.isReorderable !== undefined)
11
+ return;
12
+ reorder.options.isReorderable = header => {
13
+ const index = this.of.cellColumnNumber(header);
14
+ console.log('freeze', freeze);
15
+ const reorderable = (index >= freeze.leftColumnCount) && (index < freeze.columns.length - freeze.rightColumnCount);
16
+ console.debug('reorderable of', index, '=', reorderable ? 'true' : 'false');
17
+ return reorderable;
18
+ };
19
+ }
20
+ }
@@ -1,8 +1,68 @@
1
1
  import { Plugin } from '../plugin/plugin.js';
2
- import { HTMLTableFreezeElement } from './freeze.js';
2
+ import { PluginOptions } from '../plugin/plugin.js';
3
3
  import { Table } from './table.js';
4
- export declare class TableColumnReorder extends Plugin<Table> {
5
- reorderCells: NodeListOf<HTMLTableFreezeElement>;
4
+ type Direction = -1 | 0 | 1;
5
+ interface ArmedState {
6
+ header: HTMLTableCellElement;
7
+ lastX: number;
8
+ pointerId: number;
9
+ startX: number;
10
+ status: 'armed';
11
+ }
12
+ interface Grid {
13
+ colGroup?: HTMLTableColElement;
14
+ columnCount: number;
15
+ rows: HTMLTableRowElement[];
16
+ sourceCells: HTMLTableCellElement[];
17
+ sourceCol?: HTMLTableColElement;
18
+ }
19
+ interface DraggingState extends Grid {
20
+ currentIndex: number;
21
+ direction: Direction;
22
+ header: HTMLTableCellElement;
23
+ initialIndex: number;
24
+ lastFrameTime?: number;
25
+ maximumIndex: number;
26
+ minimumIndex: number;
27
+ pointerId: number;
28
+ pointerX: number;
29
+ status: 'dragging';
30
+ scrollContainer?: HTMLElement;
31
+ }
32
+ type ReorderState = ArmedState | DraggingState;
33
+ export declare class TableColumnReorderOptions extends PluginOptions {
34
+ isReorderable?: (header: HTMLTableCellElement) => boolean;
35
+ onReorder?: (header: HTMLTableCellElement) => void;
36
+ threshold: number;
37
+ }
38
+ export declare class TableColumnReorder extends Plugin<Table, TableColumnReorderOptions> {
39
+ protected animationFrame?: number;
40
+ protected clickTimer?: number;
41
+ protected state?: ReorderState;
42
+ protected suppressClick: boolean;
43
+ defaultOptions(): TableColumnReorderOptions;
6
44
  init(): void;
7
- protected getReorderCells(): NodeListOf<HTMLTableFreezeElement>;
45
+ protected autoScroll(state: DraggingState, time: number): Direction;
46
+ protected clamp(value: number): number;
47
+ protected closestHorizontalScrollable(): HTMLElement | undefined;
48
+ protected collectGrid(header: HTMLTableCellElement): Grid | undefined;
49
+ protected destroy(): void;
50
+ protected finish(commit: boolean): void;
51
+ protected headerAtPointer(state: DraggingState, direction: Direction): number;
52
+ protected moveColumn(state: DraggingState, targetIndex: number): boolean;
53
+ protected onAnimationFrame(time: number): void;
54
+ protected onClick(event: MouseEvent): void;
55
+ protected onKeyDown(event: KeyboardEvent): void;
56
+ protected onLostPointerCapture(event: PointerEvent): void;
57
+ protected onPointerCancel(event: PointerEvent): void;
58
+ protected onPointerDown(event: PointerEvent): void;
59
+ protected onPointerMove(event: PointerEvent): void;
60
+ protected onPointerUp(event: PointerEvent): void;
61
+ protected requestFrame(): void;
62
+ protected startDragging(armed: ArmedState, pointerX: number): boolean;
63
+ protected structureIsCurrent(state: DraggingState): boolean;
64
+ protected suppressNextClick(): void;
65
+ protected tableRows(): HTMLTableRowElement[];
66
+ protected triggerRow(): HTMLTableRowElement;
8
67
  }
68
+ export {};
package/column-reorder.js CHANGED
@@ -1,48 +1,423 @@
1
1
  import { Plugin } from '../plugin/plugin.js';
2
+ import { PluginOptions } from '../plugin/plugin.js';
3
+ const interactiveSelector = [
4
+ 'a',
5
+ 'button',
6
+ 'input',
7
+ 'select',
8
+ 'textarea',
9
+ '[contenteditable]:not([contenteditable="false"])',
10
+ '[draggable="true"]'
11
+ ].join(', ');
12
+ const maxScrollSpeed = 800;
13
+ const penetration = 10;
14
+ const scrollZone = 50;
15
+ let cursorOwner;
16
+ export class TableColumnReorderOptions extends PluginOptions {
17
+ isReorderable;
18
+ onReorder;
19
+ threshold = 10;
20
+ }
2
21
  export class TableColumnReorder extends Plugin {
3
- reorderCells;
22
+ animationFrame;
23
+ clickTimer;
24
+ state;
25
+ suppressClick = false;
26
+ defaultOptions() {
27
+ return new TableColumnReorderOptions();
28
+ }
4
29
  init() {
5
- this.reorderCells = this.getReorderCells();
6
- let downed;
7
- let dragging;
8
- let mouse = new DOMRect;
9
- let mouseFrom = new DOMRect;
10
30
  const table = this.of;
11
- for (const cell of Array.from(this.reorderCells)) {
12
- table.addEventListener(cell, 'pointerdown', event => {
13
- console.log('pointerdown', event.target);
14
- downed = event.target;
15
- mouseFrom = new DOMRect(mouse.x, mouse.y);
16
- });
17
- }
18
- table.addEventListener(document, 'mousemove', event => {
19
- Object.assign(mouse, { x: event.pageX, y: event.pageY });
20
- if (downed && (Math.sqrt(Math.abs(mouse.x - mouseFrom.x) * Math.abs(mouse.y - mouseFrom.y)) > 10)) {
21
- dragging = downed;
22
- console.log('drag', dragging);
23
- Object.assign(mouseFrom, mouse);
24
- downed = undefined;
25
- }
26
- if (dragging) {
27
- console.log('dragging', dragging);
31
+ table.styleSheet.push(`
32
+ html.column-reorder,
33
+ html.column-reorder * {
34
+ cursor: ew-resize !important;
35
+ }
36
+ `);
37
+ table.addEventListener(table.element, 'click', event => this.onClick(event), { capture: true });
38
+ table.addEventListener(document, 'keydown', event => this.onKeyDown(event), { capture: true });
39
+ table.addEventListener(table.element, 'lostpointercapture', event => this.onLostPointerCapture(event));
40
+ table.addEventListener(document, 'pointercancel', event => this.onPointerCancel(event), { capture: true });
41
+ table.addEventListener(table.element, 'pointerdown', event => this.onPointerDown(event));
42
+ table.addEventListener(document, 'pointermove', event => this.onPointerMove(event), { capture: true });
43
+ table.addEventListener(document, 'pointerup', event => this.onPointerUp(event), { capture: true });
44
+ table.onReset.push(() => this.destroy());
45
+ }
46
+ autoScroll(state, time) {
47
+ const container = state.scrollContainer;
48
+ if (!container)
49
+ return 0;
50
+ const rect = container.getBoundingClientRect();
51
+ const leftProximity = 1 - this.clamp((state.pointerX - rect.left) / scrollZone);
52
+ const rightProximity = 1 - this.clamp((rect.right - state.pointerX) / scrollZone);
53
+ let direction = 0;
54
+ let proximity = 0;
55
+ if ((leftProximity > 0) || (rightProximity > 0)) {
56
+ direction = (rightProximity > leftProximity) ? 1 : -1;
57
+ proximity = Math.max(leftProximity, rightProximity);
58
+ }
59
+ if (!direction) {
60
+ state.lastFrameTime = undefined;
61
+ return 0;
62
+ }
63
+ const previousTime = state.lastFrameTime;
64
+ state.lastFrameTime = time;
65
+ if (previousTime === undefined)
66
+ return direction;
67
+ const previousScroll = container.scrollLeft;
68
+ const elapsed = Math.max(0, time - previousTime) / 1000;
69
+ container.scrollLeft += direction * maxScrollSpeed * proximity * elapsed;
70
+ if (container.scrollLeft === previousScroll) {
71
+ state.lastFrameTime = undefined;
72
+ return 0;
73
+ }
74
+ return direction;
75
+ }
76
+ clamp(value) {
77
+ return Math.max(0, Math.min(1, value));
78
+ }
79
+ closestHorizontalScrollable() {
80
+ let element = this.of.element;
81
+ while (element) {
82
+ const overflow = getComputedStyle(element).overflowX;
83
+ if (['auto', 'overlay', 'scroll'].includes(overflow) && (element.scrollWidth > element.clientWidth)) {
84
+ return element;
28
85
  }
29
- });
30
- table.addEventListener(document, 'mouseup', () => {
31
- if (dragging) {
32
- console.log('drop', dragging);
86
+ element = element.parentElement;
87
+ }
88
+ return undefined;
89
+ }
90
+ collectGrid(header) {
91
+ const headerRow = this.triggerRow();
92
+ const columnCount = headerRow?.cells.length ?? 0;
93
+ if (!headerRow || !columnCount || (header.parentElement !== headerRow))
94
+ return undefined;
95
+ const initialIndex = Array.from(headerRow.cells).indexOf(header);
96
+ const rows = this.tableRows();
97
+ if ((initialIndex < 0) || !rows.length)
98
+ return undefined;
99
+ for (const row of rows) {
100
+ if ((row.cells.length !== columnCount) || Array.from(row.cells).some(cell => {
101
+ return (cell.colSpan !== 1) || (cell.rowSpan !== 1);
102
+ })) {
103
+ return undefined;
33
104
  }
34
- downed = undefined;
35
- dragging = undefined;
36
- });
105
+ }
106
+ const colGroups = Array.from(this.of.element.children).filter(element => element.tagName === 'COLGROUP');
107
+ if (colGroups.length > 1)
108
+ return undefined;
109
+ const colGroup = colGroups[0];
110
+ let sourceCol;
111
+ if (colGroup) {
112
+ const columns = Array.from(colGroup.children);
113
+ if ((columns.length !== columnCount)
114
+ || columns.some(column => (column.tagName !== 'COL') || (column.span !== 1))) {
115
+ return undefined;
116
+ }
117
+ sourceCol = columns[initialIndex];
118
+ }
119
+ return {
120
+ colGroup,
121
+ columnCount,
122
+ rows,
123
+ sourceCells: rows.map(row => row.cells[initialIndex]),
124
+ sourceCol
125
+ };
37
126
  }
38
- getReorderCells() {
39
- if (this.reorderCells)
40
- return this.reorderCells;
41
- let cells;
42
- cells = this.of.element.querySelectorAll(':scope > thead > tr:first-child > *');
43
- if (!cells.length) {
44
- cells = this.of.element.querySelectorAll(':scope > tbody > tr:first-child > *');
127
+ destroy() {
128
+ this.finish(false);
129
+ if (this.clickTimer !== undefined) {
130
+ clearTimeout(this.clickTimer);
131
+ this.clickTimer = undefined;
132
+ }
133
+ this.suppressClick = false;
134
+ }
135
+ finish(commit) {
136
+ const state = this.state;
137
+ if (!state)
138
+ return;
139
+ if (this.animationFrame !== undefined) {
140
+ cancelAnimationFrame(this.animationFrame);
141
+ this.animationFrame = undefined;
142
+ }
143
+ let changed = false;
144
+ if (state.status === 'dragging') {
145
+ if (!this.structureIsCurrent(state))
146
+ commit = false;
147
+ changed = state.currentIndex !== state.initialIndex;
148
+ if (!commit && changed)
149
+ this.moveColumn(state, state.initialIndex);
150
+ for (const cell of state.sourceCells)
151
+ cell.classList.remove('column-reorder');
152
+ if (cursorOwner === this) {
153
+ cursorOwner = undefined;
154
+ document.documentElement.classList.remove('column-reorder');
155
+ }
156
+ }
157
+ this.state = undefined;
158
+ if ((state.status === 'dragging') && this.of.element.hasPointerCapture(state.pointerId)) {
159
+ this.of.element.releasePointerCapture(state.pointerId);
160
+ }
161
+ if (commit && changed && (state.status === 'dragging'))
162
+ this.options.onReorder?.(state.header);
163
+ }
164
+ headerAtPointer(state, direction) {
165
+ const headers = Array.from(this.triggerRow()?.cells ?? []);
166
+ const sourceRect = headers[state.currentIndex]?.getBoundingClientRect();
167
+ if (!sourceRect)
168
+ return state.currentIndex;
169
+ const sourceCenter = (sourceRect.left + sourceRect.right) / 2;
170
+ let distance = 0;
171
+ let target = state.currentIndex;
172
+ for (let index = state.minimumIndex; index <= state.maximumIndex; index++) {
173
+ if (index === state.currentIndex)
174
+ continue;
175
+ const rect = headers[index].getBoundingClientRect();
176
+ const center = (rect.left + rect.right) / 2;
177
+ if ((direction > 0) && (center > sourceCenter) && (state.pointerX >= rect.left + penetration)) {
178
+ const candidateDistance = center - sourceCenter;
179
+ if (candidateDistance > distance) {
180
+ distance = candidateDistance;
181
+ target = index;
182
+ }
183
+ }
184
+ if ((direction < 0) && (center < sourceCenter) && (state.pointerX <= rect.right - penetration)) {
185
+ const candidateDistance = sourceCenter - center;
186
+ if (candidateDistance > distance) {
187
+ distance = candidateDistance;
188
+ target = index;
189
+ }
190
+ }
191
+ }
192
+ return target;
193
+ }
194
+ moveColumn(state, targetIndex) {
195
+ if ((targetIndex === state.currentIndex) || !this.structureIsCurrent(state)) {
196
+ return targetIndex === state.currentIndex;
197
+ }
198
+ const moveAfter = state.currentIndex < targetIndex;
199
+ for (let index = 0; index < state.rows.length; index++) {
200
+ const source = state.sourceCells[index];
201
+ const target = state.rows[index].cells[targetIndex];
202
+ moveAfter ? target.after(source) : target.before(source);
203
+ }
204
+ if (state.sourceCol && state.colGroup) {
205
+ const target = state.colGroup.children[targetIndex];
206
+ moveAfter ? target.after(state.sourceCol) : target.before(state.sourceCol);
207
+ }
208
+ state.currentIndex = targetIndex;
209
+ return true;
210
+ }
211
+ onAnimationFrame(time) {
212
+ this.animationFrame = undefined;
213
+ const state = this.state;
214
+ if (!state || (state.status !== 'dragging'))
215
+ return;
216
+ if (!this.structureIsCurrent(state)) {
217
+ this.finish(false);
218
+ return;
219
+ }
220
+ const pointerDirection = state.direction;
221
+ state.direction = 0;
222
+ const scrollDirection = this.autoScroll(state, time);
223
+ const direction = pointerDirection || scrollDirection;
224
+ if (direction) {
225
+ const targetIndex = this.headerAtPointer(state, direction);
226
+ if (targetIndex !== state.currentIndex)
227
+ this.moveColumn(state, targetIndex);
45
228
  }
46
- return cells;
229
+ if (scrollDirection)
230
+ this.requestFrame();
231
+ }
232
+ onClick(event) {
233
+ if (!this.suppressClick)
234
+ return;
235
+ this.suppressClick = false;
236
+ event.preventDefault();
237
+ event.stopImmediatePropagation();
238
+ }
239
+ onKeyDown(event) {
240
+ if ((event.key !== 'Escape') || (this.state?.status !== 'dragging'))
241
+ return;
242
+ event.preventDefault();
243
+ event.stopImmediatePropagation();
244
+ this.finish(false);
245
+ }
246
+ onLostPointerCapture(event) {
247
+ if ((this.state?.status !== 'dragging') || (event.pointerId !== this.state.pointerId))
248
+ return;
249
+ this.finish(false);
250
+ }
251
+ onPointerCancel(event) {
252
+ if (!this.state || (event.pointerId !== this.state.pointerId))
253
+ return;
254
+ if (this.state.status === 'dragging') {
255
+ event.preventDefault();
256
+ event.stopImmediatePropagation();
257
+ }
258
+ this.finish(false);
259
+ }
260
+ onPointerDown(event) {
261
+ if (this.state || cursorOwner || !event.isPrimary || (event.button !== 0))
262
+ return;
263
+ if (!(event.target instanceof Element))
264
+ return;
265
+ const header = event.target.closest('th, td');
266
+ const row = this.triggerRow();
267
+ if (!header || !row || (header.parentElement !== row) || (header.closest('table') !== this.of.element))
268
+ return;
269
+ const interactive = event.target.closest(interactiveSelector);
270
+ if (interactive && header.contains(interactive))
271
+ return;
272
+ this.state = {
273
+ header,
274
+ lastX: event.clientX,
275
+ pointerId: event.pointerId,
276
+ startX: event.clientX,
277
+ status: 'armed'
278
+ };
279
+ }
280
+ onPointerMove(event) {
281
+ const state = this.state;
282
+ if (!state || (event.pointerId !== state.pointerId))
283
+ return;
284
+ if (state.status === 'armed') {
285
+ if (Math.abs(event.clientX - state.startX) < Math.max(0, this.options.threshold)) {
286
+ state.lastX = event.clientX;
287
+ return;
288
+ }
289
+ if (!this.startDragging(state, event.clientX))
290
+ return;
291
+ }
292
+ const dragging = this.state;
293
+ if (!dragging || (dragging.status !== 'dragging'))
294
+ return;
295
+ event.preventDefault();
296
+ if (event.clientX !== dragging.pointerX) {
297
+ dragging.direction = (event.clientX > dragging.pointerX) ? 1 : -1;
298
+ dragging.pointerX = event.clientX;
299
+ this.requestFrame();
300
+ }
301
+ }
302
+ onPointerUp(event) {
303
+ if (!this.state || (event.pointerId !== this.state.pointerId))
304
+ return;
305
+ if (this.state.status === 'armed') {
306
+ this.finish(false);
307
+ return;
308
+ }
309
+ event.preventDefault();
310
+ event.stopImmediatePropagation();
311
+ const dragging = this.state;
312
+ if (event.clientX !== dragging.pointerX) {
313
+ dragging.direction = (event.clientX > dragging.pointerX) ? 1 : -1;
314
+ dragging.pointerX = event.clientX;
315
+ }
316
+ if ((this.animationFrame !== undefined) || dragging.direction) {
317
+ if (this.animationFrame !== undefined) {
318
+ cancelAnimationFrame(this.animationFrame);
319
+ this.animationFrame = undefined;
320
+ }
321
+ this.onAnimationFrame(performance.now());
322
+ }
323
+ this.suppressNextClick();
324
+ this.finish(true);
325
+ }
326
+ requestFrame() {
327
+ if (this.animationFrame !== undefined)
328
+ return;
329
+ this.animationFrame = requestAnimationFrame(time => this.onAnimationFrame(time));
330
+ }
331
+ startDragging(armed, pointerX) {
332
+ if (cursorOwner) {
333
+ this.finish(false);
334
+ return false;
335
+ }
336
+ const grid = this.collectGrid(armed.header);
337
+ if (!grid) {
338
+ this.finish(false);
339
+ return false;
340
+ }
341
+ const headerRow = this.triggerRow();
342
+ const headers = Array.from(headerRow.cells);
343
+ const initialIndex = headers.indexOf(armed.header);
344
+ const reorderable = headers.map(header => this.options.isReorderable?.(header) ?? true);
345
+ if ((initialIndex < 0) || !reorderable[initialIndex]) {
346
+ this.finish(false);
347
+ return false;
348
+ }
349
+ let minimumIndex = initialIndex;
350
+ let maximumIndex = initialIndex;
351
+ while ((minimumIndex > 0) && reorderable[minimumIndex - 1])
352
+ minimumIndex--;
353
+ while ((maximumIndex < reorderable.length - 1) && reorderable[maximumIndex + 1])
354
+ maximumIndex++;
355
+ try {
356
+ this.of.element.setPointerCapture(armed.pointerId);
357
+ }
358
+ catch {
359
+ this.finish(false);
360
+ return false;
361
+ }
362
+ const direction = Math.sign(pointerX - armed.lastX);
363
+ this.state = {
364
+ ...grid,
365
+ currentIndex: initialIndex,
366
+ direction,
367
+ header: armed.header,
368
+ initialIndex,
369
+ maximumIndex,
370
+ minimumIndex,
371
+ pointerId: armed.pointerId,
372
+ pointerX,
373
+ scrollContainer: this.closestHorizontalScrollable(),
374
+ status: 'dragging'
375
+ };
376
+ cursorOwner = this;
377
+ document.documentElement.classList.add('column-reorder');
378
+ for (const cell of grid.sourceCells)
379
+ cell.classList.add('column-reorder');
380
+ this.requestFrame();
381
+ return true;
382
+ }
383
+ structureIsCurrent(state) {
384
+ const rows = this.tableRows();
385
+ if ((this.triggerRow() !== state.header.parentElement) || (state.rows.length !== rows.length)) {
386
+ return false;
387
+ }
388
+ for (let index = 0; index < state.rows.length; index++) {
389
+ const row = rows[index];
390
+ if ((row !== state.rows[index])
391
+ || (row.cells.length !== state.columnCount)
392
+ || (row.cells[state.currentIndex] !== state.sourceCells[index])) {
393
+ return false;
394
+ }
395
+ }
396
+ const colGroups = Array.from(this.of.element.children).filter(element => element.tagName === 'COLGROUP');
397
+ if (!state.colGroup)
398
+ return colGroups.length === 0;
399
+ return (colGroups.length === 1)
400
+ && (colGroups[0] === state.colGroup)
401
+ && (state.colGroup.children.length === state.columnCount)
402
+ && (state.colGroup.children[state.currentIndex] === state.sourceCol);
403
+ }
404
+ suppressNextClick() {
405
+ this.suppressClick = true;
406
+ if (this.clickTimer !== undefined)
407
+ clearTimeout(this.clickTimer);
408
+ this.clickTimer = window.setTimeout(() => {
409
+ this.clickTimer = undefined;
410
+ this.suppressClick = false;
411
+ });
412
+ }
413
+ tableRows() {
414
+ return Array.from(this.of.element.querySelectorAll([
415
+ ':scope > thead > tr',
416
+ ':scope > tbody > tr',
417
+ ':scope > tfoot > tr'
418
+ ].join(', ')));
419
+ }
420
+ triggerRow() {
421
+ return this.of.element.tHead?.rows[0] ?? this.of.element.tBodies[0]?.rows[0];
47
422
  }
48
423
  }
package/freeze.js CHANGED
@@ -90,7 +90,7 @@ export class TableFreeze extends Plugin {
90
90
  const bodySel = [];
91
91
  const cornerSel = [];
92
92
  let counter = 1, left = .0, previousLeft = table.element.getBoundingClientRect().left;
93
- for (const colCell of Array.from(this.columns).slice(this.leftColumnCount)) {
93
+ for (const colCell of Array.from(this.columns).slice(0, this.leftColumnCount)) {
94
94
  const actualLeft = colCell.getBoundingClientRect().left;
95
95
  left += actualLeft - previousLeft;
96
96
  previousLeft = actualLeft;
@@ -123,7 +123,7 @@ export class TableFreeze extends Plugin {
123
123
  const bodySel = [];
124
124
  const cornerSel = [];
125
125
  let counter = 1, right = .0, previousRight = table.element.getBoundingClientRect().right;
126
- for (const colCell of Array.from(this.columns).reverse().slice(this.rightColumnCount)) {
126
+ for (const colCell of Array.from(this.columns).reverse().slice(0, this.rightColumnCount)) {
127
127
  const actualRight = colCell.getBoundingClientRect().right;
128
128
  right += previousRight - actualRight;
129
129
  previousRight = actualRight;
package/package.json CHANGED
@@ -52,5 +52,5 @@
52
52
  "scripts": {
53
53
  "build": "tsc && sass --no-source-map demo:demo && ../prepare-module/prepare-module.js"
54
54
  },
55
- "version": "0.1.9"
55
+ "version": "0.2.0"
56
56
  }