@get-set/gs-sortable 0.0.22 → 0.0.23

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.
Files changed (53) hide show
  1. package/dist/actions/calculate.d.ts +3 -0
  2. package/dist/actions/calculate.js +132 -133
  3. package/dist/actions/calculate.js.map +1 -0
  4. package/dist/actions/calculateOnSort.d.ts +3 -0
  5. package/dist/actions/calculateOnSort.js +141 -239
  6. package/dist/actions/calculateOnSort.js.map +1 -0
  7. package/dist/actions/checkItemInContainer.d.ts +2 -0
  8. package/dist/actions/checkItemInContainer.js +24 -24
  9. package/dist/actions/checkItemInContainer.js.map +1 -0
  10. package/dist/actions/destroy.d.ts +9 -0
  11. package/dist/actions/destroy.js +25 -31
  12. package/dist/actions/destroy.js.map +1 -0
  13. package/dist/actions/general.d.ts +13 -0
  14. package/dist/actions/general.js +56 -83
  15. package/dist/actions/general.js.map +1 -0
  16. package/dist/actions/getCurrentParams.d.ts +9 -0
  17. package/dist/actions/getCurrentParams.js +25 -33
  18. package/dist/actions/getCurrentParams.js.map +1 -0
  19. package/dist/actions/init.d.ts +3 -0
  20. package/dist/actions/init.js +24 -30
  21. package/dist/actions/init.js.map +1 -0
  22. package/dist/actions/initDraggable.d.ts +3 -0
  23. package/dist/actions/initDraggable.js +80 -85
  24. package/dist/actions/initDraggable.js.map +1 -0
  25. package/dist/actions/initMouseMove.d.ts +2 -0
  26. package/dist/actions/initMouseMove.js +104 -97
  27. package/dist/actions/initMouseMove.js.map +1 -0
  28. package/dist/actions/initScroll.d.ts +2 -0
  29. package/dist/actions/initScroll.js +22 -24
  30. package/dist/actions/initScroll.js.map +1 -0
  31. package/dist/actions/initSortEnd.d.ts +2 -0
  32. package/dist/actions/initSortEnd.js +71 -68
  33. package/dist/actions/initSortEnd.js.map +1 -0
  34. package/dist/components/GSSortable.d.ts +24 -0
  35. package/dist/components/GSSortable.js +127 -166
  36. package/dist/components/GSSortable.js.map +1 -0
  37. package/dist/constants/constParams.d.ts +4 -0
  38. package/dist/constants/constParams.js +5 -8
  39. package/dist/constants/constParams.js.map +1 -0
  40. package/dist/constants/defaultParams.d.ts +3 -0
  41. package/dist/constants/defaultParams.js +21 -22
  42. package/dist/constants/defaultParams.js.map +1 -0
  43. package/dist/constants/types.d.ts +6 -0
  44. package/dist/constants/types.js +7 -10
  45. package/dist/constants/types.js.map +1 -0
  46. package/dist/helpers/uihelpers.d.ts +4 -0
  47. package/dist/helpers/uihelpers.js +47 -51
  48. package/dist/helpers/uihelpers.js.map +1 -0
  49. package/package.json +3 -2
  50. package/dist/actions/afterAllImagesLoad.js +0 -53
  51. package/dist/components/styles/GSSortable.css +0 -39
  52. package/dist/components/styles/GSSortable.css.map +0 -1
  53. package/dist/components/styles/GSSortable.scss +0 -37
@@ -0,0 +1,3 @@
1
+ import { GSSortableRef } from '../components/global';
2
+ declare const calculate: (ref: GSSortableRef) => void;
3
+ export default calculate;
@@ -1,140 +1,139 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _constParams = _interopRequireDefault(require("../constants/constParams"));
8
- var _types = _interopRequireDefault(require("../constants/types"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
11
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
14
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
15
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16
- var calculate = function calculate(ref) {
17
- var params = ref.currentParams;
18
- if (typeof ref.currentParams.beforeInit === 'function') {
19
- ref.currentParams.beforeInit();
20
- }
21
- var $items = _toConsumableArray(ref.grid.children).filter(function (x) {
22
- return !x.classList.contains('gs-sortable-item-inmove');
23
- });
24
- var itemsCount = $items.length;
25
- ref.grid.style.position = 'relative';
26
- if (params.gap != '') {
27
- ref.grid.style.gap = params.gap;
28
- }
29
- var gridStyles = getComputedStyle(ref.grid);
30
- var cssGap = gridStyles.gap;
31
- var gapX = 0;
32
- var gapY = 0;
33
- if (typeof cssGap !== 'undefined' && cssGap !== null) {
34
- var cssGapYValue = cssGap.includes(' ') ? cssGap.split(' ')[0] : cssGap;
35
- var cssGapXValue = cssGap.includes(' ') ? cssGap.split(' ')[1] : cssGap;
36
- var gapYSize = parseInt(cssGapYValue);
37
- var gapXSize = parseInt(cssGapXValue);
38
- if (!Number.isNaN(gapYSize)) {
39
- gapY = gapYSize;
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const types_1 = __importDefault(require("../constants/types"));
7
+ const calculate = (ref) => {
8
+ const params = ref.currentParams;
9
+ if (typeof ref.currentParams.beforeInit === 'function') {
10
+ ref.currentParams.beforeInit();
11
+ }
12
+ const $items = Array.from(ref.grid.children).filter(x => !x.classList.contains('gs-sortable-item-inmove'));
13
+ const itemsCount = $items.length;
14
+ ref.grid.style.position = 'relative';
15
+ if (params.gap !== '') {
16
+ ref.grid.style.gap = params.gap;
17
+ }
18
+ const gridStyles = getComputedStyle(ref.grid);
19
+ const cssGap = gridStyles.gap;
20
+ let gapX = 0;
21
+ let gapY = 0;
22
+ if (cssGap) {
23
+ const [cssGapYValue, cssGapXValue] = cssGap.includes(' ')
24
+ ? cssGap.split(' ')
25
+ : [cssGap, cssGap];
26
+ const gapYSize = parseInt(cssGapYValue);
27
+ const gapXSize = parseInt(cssGapXValue);
28
+ if (!Number.isNaN(gapYSize))
29
+ gapY = gapYSize;
30
+ if (!Number.isNaN(gapXSize))
31
+ gapX = gapXSize;
40
32
  }
41
- if (!Number.isNaN(gapXSize)) {
42
- gapX = gapXSize;
33
+ const borderBottomWidth = parseFloat(gridStyles.borderBottomWidth);
34
+ const borderTopWidth = parseFloat(gridStyles.borderTopWidth);
35
+ const borderLeftWidth = parseFloat(gridStyles.borderLeftWidth);
36
+ const borderRightWidth = parseFloat(gridStyles.borderRightWidth);
37
+ const containerPT = parseFloat(gridStyles.paddingTop);
38
+ const containerPR = parseFloat(gridStyles.paddingRight);
39
+ const containerPB = parseFloat(gridStyles.paddingBottom);
40
+ const containerPL = parseFloat(gridStyles.paddingLeft);
41
+ const containerWidth = ref.grid.clientWidth - containerPR - containerPL;
42
+ let itemWidth = 0;
43
+ let strItemWidth = 'max-content';
44
+ if (params.type === types_1.default.grid) {
45
+ itemWidth = (containerWidth - (params.count - 1) * gapX) / params.count;
46
+ strItemWidth = `${itemWidth}px`;
43
47
  }
44
- }
45
- var borderBottomWidth = parseFloat(gridStyles.borderBottomWidth);
46
- var borderTopWidth = parseFloat(gridStyles.borderTopWidth);
47
- var borderLeftWidth = parseFloat(gridStyles.borderLeftWidth);
48
- var borderRightWidth = parseFloat(gridStyles.borderRightWidth);
49
- var containerPT = parseFloat(gridStyles.paddingTop);
50
- var containerPR = parseFloat(gridStyles.paddingRight);
51
- var containerPB = parseFloat(gridStyles.paddingBottom);
52
- var containerPL = parseFloat(gridStyles.paddingLeft);
53
- var containerWidth = ref.grid.clientWidth - containerPR - containerPL;
54
- var itemWidth = 0;
55
- var strItemWidth = 'max-content';
56
- if (params.type == _types["default"].grid) {
57
- itemWidth = (containerWidth - (params.count - 1) * gapX) / params.count;
58
- strItemWidth = itemWidth + 'px';
59
- } else if (params.type == _types["default"].column) {
60
- itemWidth = containerWidth;
61
- strItemWidth = itemWidth + 'px';
62
- }
63
- ref.itemWidth = strItemWidth;
64
- var currentLeft = containerPL;
65
- var currentTop = containerPT;
66
- var currentHeight = containerPT + containerPB + borderBottomWidth + borderTopWidth; //ref.grid.offsetHeight;
67
- var currentWidth = containerPL + containerPR + borderLeftWidth + borderRightWidth;
68
- var maxHeight = 0;
69
- $items.map(function (el) {
70
- if (params.type != _types["default"].row || !el.classList.contains('gs-sortable-placeholder')) {
71
- el.style.width = strItemWidth;
48
+ else if (params.type === types_1.default.column) {
49
+ itemWidth = containerWidth;
50
+ strItemWidth = `${itemWidth}px`;
72
51
  }
73
- });
74
- ref.uiData = {
75
- containerPT: containerPT,
76
- containerPR: containerPR,
77
- containerPB: containerPB,
78
- containerPL: containerPL,
79
- containerWidth: containerWidth,
80
- currentHeight: currentHeight,
81
- currentWidth: currentWidth,
82
- itemWidth: itemWidth,
83
- gapX: gapX,
84
- gapY: gapY
85
- };
86
- var colHeight = 0;
87
- $items.map(function (el, index) {
88
- var height = el.offsetHeight;
89
- var width = el.offsetWidth;
90
- if (params.type == _types["default"].column) {
91
- el.style.left = "".concat(containerPL, "px");
92
- if (currentTop == containerPT) {
93
- el.style.top = "".concat(containerPT, "px");
94
- currentTop = containerPT + height;
95
- currentHeight = currentHeight + height;
96
- } else {
97
- el.style.top = "".concat(currentTop + gapY, "px");
98
- currentTop = currentTop + gapY + height;
99
- currentHeight = currentHeight + height + gapY;
100
- }
101
- } else if (params.type == _types["default"].row) {
102
- el.style.top = "".concat(containerPT, "px");
103
- if (currentLeft == containerPL) {
104
- el.style.left = "".concat(containerPL, "px");
105
- currentLeft = containerPL + width;
106
- currentWidth = currentWidth + width;
107
- } else {
108
- el.style.left = "".concat(currentLeft + gapX, "px");
109
- currentLeft = currentLeft + gapX + width;
110
- currentWidth = currentWidth + width + gapX;
111
- }
112
- if (height > maxHeight) {
113
- maxHeight = height;
114
- }
115
- } else if (params.type == _types["default"].grid) {
116
- var left = index % params.count == 0 ? containerPL : containerPL + index % params.count * (itemWidth + gapX);
117
- var top = currentTop;
118
- if (height > colHeight) {
119
- colHeight = height;
120
- }
121
- if (index % params.count === params.count - 1 || index === itemsCount - 1) {
122
- if (top === containerPT) {
123
- currentHeight = currentHeight + colHeight;
124
- } else {
125
- currentHeight = currentHeight + colHeight + gapY;
52
+ ref.itemWidth = strItemWidth;
53
+ let currentLeft = containerPL;
54
+ let currentTop = containerPT;
55
+ let currentHeight = containerPT + containerPB + borderBottomWidth + borderTopWidth;
56
+ let currentWidth = containerPL + containerPR + borderLeftWidth + borderRightWidth;
57
+ let maxHeight = 0;
58
+ $items.forEach(el => {
59
+ if (params.type !== types_1.default.row ||
60
+ !el.classList.contains('gs-sortable-placeholder')) {
61
+ el.style.width = strItemWidth;
62
+ }
63
+ });
64
+ ref.uiData = {
65
+ containerPT,
66
+ containerPR,
67
+ containerPB,
68
+ containerPL,
69
+ containerWidth,
70
+ currentHeight,
71
+ currentWidth,
72
+ itemWidth,
73
+ gapX,
74
+ gapY,
75
+ };
76
+ let colHeight = 0;
77
+ $items.forEach((el, index) => {
78
+ const height = el.offsetHeight;
79
+ const width = el.offsetWidth;
80
+ if (params.type === types_1.default.column) {
81
+ el.style.left = `${containerPL}px`;
82
+ if (currentTop === containerPT) {
83
+ el.style.top = `${containerPT}px`;
84
+ currentTop += height;
85
+ currentHeight += height;
86
+ }
87
+ else {
88
+ el.style.top = `${currentTop + gapY}px`;
89
+ currentTop += gapY + height;
90
+ currentHeight += height + gapY;
91
+ }
92
+ }
93
+ else if (params.type === types_1.default.row) {
94
+ el.style.top = `${containerPT}px`;
95
+ if (currentLeft === containerPL) {
96
+ el.style.left = `${containerPL}px`;
97
+ currentLeft += width;
98
+ currentWidth += width;
99
+ }
100
+ else {
101
+ el.style.left = `${currentLeft + gapX}px`;
102
+ currentLeft += gapX + width;
103
+ currentWidth += width + gapX;
104
+ }
105
+ if (height > maxHeight) {
106
+ maxHeight = height;
107
+ }
108
+ }
109
+ else if (params.type === types_1.default.grid) {
110
+ const left = index % params.count === 0
111
+ ? containerPL
112
+ : containerPL + (index % params.count) * (itemWidth + gapX);
113
+ const top = currentTop;
114
+ if (height > colHeight) {
115
+ colHeight = height;
116
+ }
117
+ if (index % params.count === params.count - 1 ||
118
+ index === itemsCount - 1) {
119
+ if (top === containerPT) {
120
+ currentHeight += colHeight;
121
+ }
122
+ else {
123
+ currentHeight += colHeight + gapY;
124
+ }
125
+ currentTop += colHeight + gapY;
126
+ colHeight = 0;
127
+ }
128
+ el.style.left = `${left}px`;
129
+ el.style.top = `${top}px`;
126
130
  }
127
- currentTop = currentTop + colHeight + gapY;
128
- colHeight = 0;
129
- }
130
- el.style.left = "".concat(left, "px");
131
- el.style.top = "".concat(top, "px");
131
+ });
132
+ ref.grid.style.height = `${currentHeight}px`;
133
+ if (params.type === types_1.default.row) {
134
+ ref.grid.style.height = `${currentHeight + maxHeight}px`;
135
+ ref.grid.style.width = `${currentWidth}px`;
132
136
  }
133
- });
134
- ref.grid.style.height = "".concat(currentHeight, "px");
135
- if (params.type == _types["default"].row) {
136
- ref.grid.style.height = "".concat(currentHeight + maxHeight, "px");
137
- ref.grid.style.width = "".concat(currentWidth, "px");
138
- }
139
137
  };
140
- var _default = exports["default"] = calculate;
138
+ exports.default = calculate;
139
+ //# sourceMappingURL=calculate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calculate.js","sourceRoot":"","sources":["../../src/actions/calculate.tsx"],"names":[],"mappings":";;;;;AACA,+DAAuC;AAEvC,MAAM,SAAS,GAAG,CAAC,GAAkB,EAAQ,EAAE;IAC7C,MAAM,MAAM,GAAG,GAAG,CAAC,aAAa,CAAC;IAEjC,IAAI,OAAO,GAAG,CAAC,aAAa,CAAC,UAAU,KAAK,U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AAC,CAAC;aACf;YAED,EAAE,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,IAAI,IAAI,CAAC;YAC5B,EAAE,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;SAC3B;IACH,CAAC,CAAC,CAAC;IAEH,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,aAAa,IAAI,CAAC;IAC7C,IAAI,MAAM,CAAC,IAAI,KAAK,eAAK,CAAC,GAAG,EAAE;QAC7B,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,aAAa,GAAG,SAAS,IAAI,CAAC;QACzD,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,YAAY,IAAI,CAAC;KAC5C;AACH,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { GSSortableRef } from '../components/global';
2
+ declare const calculateOnSort: (ref: GSSortableRef) => void;
3
+ export default calculateOnSort;