@websy/websy-designs 1.2.25 → 1.2.27
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.
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
ResponsiveText
|
|
28
28
|
*/
|
|
29
29
|
import WebsyDesignsQlikPlugins from '@websy/websy-designs-qlik-plugin/dist/websy-designs-qlik-plugin-es6'
|
|
30
|
-
import * as d3 from 'd3'
|
|
31
30
|
/* global XMLHttpRequest fetch ENV */
|
|
32
31
|
class APIService {
|
|
33
32
|
constructor (baseUrl = '', options = {}) {
|
|
@@ -215,7 +214,7 @@ class WebsyDatePicker {
|
|
|
215
214
|
allowClear: true,
|
|
216
215
|
hideRanges: false,
|
|
217
216
|
arrowIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M23.677 18.52c.914 1.523-.183 3.472-1.967 3.472h-19.414c-1.784 0-2.881-1.949-1.967-3.472l9.709-16.18c.891-1.483 3.041-1.48 3.93 0l9.709 16.18z"/></svg>`,
|
|
218
|
-
clearIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512"><line x1="368" y1="368" x2="144" y2="144" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/><line x1="368" y1="144" x2="144" y2="368" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/></svg>`,
|
|
217
|
+
clearIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512"><line x1="368" y1="368" x2="144" y2="144" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/><line x1="368" y1="144" x2="144" y2="368" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/></svg>`,
|
|
219
218
|
confirmIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 512 512"><polyline points="416 128 192 384 96 288" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/></svg>`,
|
|
220
219
|
minAllowedDate: this.floorDate(new Date(new Date((new Date().setFullYear(new Date().getFullYear() - 1))).setDate(1))),
|
|
221
220
|
maxAllowedDate: this.floorDate(new Date((new Date()))),
|
|
@@ -946,7 +945,8 @@ class WebsyDatePicker {
|
|
|
946
945
|
el.classList.add('range-selected')
|
|
947
946
|
}
|
|
948
947
|
}
|
|
949
|
-
this.highlightRange()
|
|
948
|
+
this.highlightRange()
|
|
949
|
+
this.updateRange()
|
|
950
950
|
this.close(confirm)
|
|
951
951
|
}
|
|
952
952
|
}
|
|
@@ -977,6 +977,7 @@ class WebsyDatePicker {
|
|
|
977
977
|
})
|
|
978
978
|
if (rangeInput.length > 2 && isContinuousRange === true) {
|
|
979
979
|
this.selectedRangeDates = [rangeInput[0], rangeInput[rangeInput.length - 1]]
|
|
980
|
+
this.customRangeSelected = true
|
|
980
981
|
}
|
|
981
982
|
if (isContinuousRange === false) {
|
|
982
983
|
this.currentselection = []
|
|
@@ -7,12 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _websyDesignsQlikPluginEs = _interopRequireDefault(require("@websy/websy-designs-qlik-plugin/dist/websy-designs-qlik-plugin-es6"));
|
|
9
9
|
|
|
10
|
-
var d3 = _interopRequireWildcard(require("d3"));
|
|
11
|
-
|
|
12
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
13
|
-
|
|
14
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
|
|
16
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
11
|
|
|
18
12
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
@@ -293,7 +287,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
293
287
|
allowClear: true,
|
|
294
288
|
hideRanges: false,
|
|
295
289
|
arrowIcon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M23.677 18.52c.914 1.523-.183 3.472-1.967 3.472h-19.414c-1.784 0-2.881-1.949-1.967-3.472l9.709-16.18c.891-1.483 3.041-1.48 3.93 0l9.709 16.18z\"/></svg>",
|
|
296
|
-
clearIcon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 512 512\"><line x1=\"368\" y1=\"368\" x2=\"144\" y2=\"144\" style=\"fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px\"/><line x1=\"368\" y1=\"144\" x2=\"144\" y2=\"368\" style=\"fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px\"/></svg>",
|
|
290
|
+
clearIcon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 512 512\"><line x1=\"368\" y1=\"368\" x2=\"144\" y2=\"144\" style=\"fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px\"/><line x1=\"368\" y1=\"144\" x2=\"144\" y2=\"368\" style=\"fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px\"/></svg>",
|
|
297
291
|
confirmIcon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 512 512\"><polyline points=\"416 128 192 384 96 288\" style=\"fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px\"/></svg>",
|
|
298
292
|
minAllowedDate: this.floorDate(new Date(new Date(new Date().setFullYear(new Date().getFullYear() - 1)).setDate(1))),
|
|
299
293
|
maxAllowedDate: this.floorDate(new Date(new Date())),
|
|
@@ -1057,6 +1051,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
1057
1051
|
}
|
|
1058
1052
|
|
|
1059
1053
|
this.highlightRange();
|
|
1054
|
+
this.updateRange();
|
|
1060
1055
|
this.close(confirm);
|
|
1061
1056
|
}
|
|
1062
1057
|
}
|
|
@@ -1092,6 +1087,7 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
1092
1087
|
|
|
1093
1088
|
if (rangeInput.length > 2 && isContinuousRange === true) {
|
|
1094
1089
|
this.selectedRangeDates = [rangeInput[0], rangeInput[rangeInput.length - 1]];
|
|
1090
|
+
this.customRangeSelected = true;
|
|
1095
1091
|
}
|
|
1096
1092
|
|
|
1097
1093
|
if (isContinuousRange === false) {
|