GULP DIST
This commit is contained in:
62
dist/assets/vendor/nouislider/dist/nouislider.js
vendored
62
dist/assets/vendor/nouislider/dist/nouislider.js
vendored
@@ -2,7 +2,7 @@
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
||||
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.noUiSlider = {}));
|
||||
}(this, (function (exports) { 'use strict';
|
||||
})(this, (function (exports) { 'use strict';
|
||||
|
||||
exports.PipsMode = void 0;
|
||||
(function (PipsMode) {
|
||||
@@ -127,7 +127,7 @@
|
||||
: doc.body.scrollTop;
|
||||
return {
|
||||
x: x,
|
||||
y: y
|
||||
y: y,
|
||||
};
|
||||
}
|
||||
// we provide a function to compute constants instead
|
||||
@@ -140,18 +140,18 @@
|
||||
? {
|
||||
start: "pointerdown",
|
||||
move: "pointermove",
|
||||
end: "pointerup"
|
||||
end: "pointerup",
|
||||
}
|
||||
: window.navigator.msPointerEnabled
|
||||
? {
|
||||
start: "MSPointerDown",
|
||||
move: "MSPointerMove",
|
||||
end: "MSPointerUp"
|
||||
end: "MSPointerUp",
|
||||
}
|
||||
: {
|
||||
start: "mousedown touchstart",
|
||||
move: "mousemove touchmove",
|
||||
end: "mouseup touchend"
|
||||
end: "mouseup touchend",
|
||||
};
|
||||
}
|
||||
// https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
|
||||
@@ -163,7 +163,7 @@
|
||||
var opts = Object.defineProperty({}, "passive", {
|
||||
get: function () {
|
||||
supportsPassive = true;
|
||||
}
|
||||
},
|
||||
});
|
||||
// @ts-ignore
|
||||
window.addEventListener("test", null, opts);
|
||||
@@ -384,18 +384,18 @@
|
||||
stepBefore: {
|
||||
startValue: this.xVal[j - 2],
|
||||
step: this.xNumSteps[j - 2],
|
||||
highestStep: this.xHighestCompleteStep[j - 2]
|
||||
highestStep: this.xHighestCompleteStep[j - 2],
|
||||
},
|
||||
thisStep: {
|
||||
startValue: this.xVal[j - 1],
|
||||
step: this.xNumSteps[j - 1],
|
||||
highestStep: this.xHighestCompleteStep[j - 1]
|
||||
highestStep: this.xHighestCompleteStep[j - 1],
|
||||
},
|
||||
stepAfter: {
|
||||
startValue: this.xVal[j],
|
||||
step: this.xNumSteps[j],
|
||||
highestStep: this.xHighestCompleteStep[j]
|
||||
}
|
||||
highestStep: this.xHighestCompleteStep[j],
|
||||
},
|
||||
};
|
||||
};
|
||||
Spectrum.prototype.countStepDecimals = function () {
|
||||
@@ -481,7 +481,7 @@
|
||||
to: function (value) {
|
||||
return value === undefined ? "" : value.toFixed(2);
|
||||
},
|
||||
from: Number
|
||||
from: Number,
|
||||
};
|
||||
var cssClasses = {
|
||||
target: "target",
|
||||
@@ -519,12 +519,12 @@
|
||||
valueVertical: "value-vertical",
|
||||
valueNormal: "value-normal",
|
||||
valueLarge: "value-large",
|
||||
valueSub: "value-sub"
|
||||
valueSub: "value-sub",
|
||||
};
|
||||
// Namespaces of internal event listeners
|
||||
var INTERNAL_EVENT_NS = {
|
||||
tooltips: ".__tooltips",
|
||||
aria: ".__aria"
|
||||
aria: ".__aria",
|
||||
};
|
||||
//endregion
|
||||
function testStep(parsed, entry) {
|
||||
@@ -731,7 +731,7 @@
|
||||
fixed: fixed,
|
||||
snap: snap,
|
||||
hover: hover,
|
||||
unconstrained: unconstrained
|
||||
unconstrained: unconstrained,
|
||||
};
|
||||
}
|
||||
function testTooltips(parsed, entry) {
|
||||
@@ -817,7 +817,7 @@
|
||||
animate: true,
|
||||
animationDuration: 300,
|
||||
ariaFormat: defaultFormatter,
|
||||
format: defaultFormatter
|
||||
format: defaultFormatter,
|
||||
};
|
||||
// Tests are executed in the order they are presented here.
|
||||
var tests = {
|
||||
@@ -844,7 +844,7 @@
|
||||
documentElement: { r: false, t: testDocumentElement },
|
||||
cssPrefix: { r: true, t: testCssPrefix },
|
||||
cssClasses: { r: true, t: testCssClasses },
|
||||
handleAttributes: { r: false, t: testHandleAttributes }
|
||||
handleAttributes: { r: false, t: testHandleAttributes },
|
||||
};
|
||||
var defaults = {
|
||||
connect: false,
|
||||
@@ -856,7 +856,7 @@
|
||||
cssClasses: cssClasses,
|
||||
keyboardPageMultiplier: 5,
|
||||
keyboardMultiplier: 1,
|
||||
keyboardDefaultStep: 10
|
||||
keyboardDefaultStep: 10,
|
||||
};
|
||||
// AriaFormat defaults to regular format, if any.
|
||||
if (options.format && !options.ariaFormat) {
|
||||
@@ -888,7 +888,7 @@
|
||||
// Pips don't move, so we can place them using left/top.
|
||||
var styles = [
|
||||
["left", "top"],
|
||||
["right", "bottom"]
|
||||
["right", "bottom"],
|
||||
];
|
||||
parsed.style = styles[parsed.dir][parsed.ort];
|
||||
return parsed;
|
||||
@@ -1273,7 +1273,7 @@
|
||||
var format = pips.format || {
|
||||
to: function (value) {
|
||||
return String(Math.round(value));
|
||||
}
|
||||
},
|
||||
};
|
||||
scope_Pips = scope_Target.appendChild(addMarking(spread, filter, format));
|
||||
return scope_Pips;
|
||||
@@ -1509,21 +1509,21 @@
|
||||
pageOffset: event.pageOffset,
|
||||
handleNumbers: data.handleNumbers,
|
||||
buttonsProperty: event.buttons,
|
||||
locations: scope_Locations.slice()
|
||||
locations: scope_Locations.slice(),
|
||||
});
|
||||
var endEvent = attachEvent(actions.end, scope_DocumentElement, eventEnd, {
|
||||
target: event.target,
|
||||
handle: handle,
|
||||
listeners: listeners,
|
||||
doNotReject: true,
|
||||
handleNumbers: data.handleNumbers
|
||||
handleNumbers: data.handleNumbers,
|
||||
});
|
||||
var outEvent = attachEvent("mouseout", scope_DocumentElement, documentLeave, {
|
||||
target: event.target,
|
||||
handle: handle,
|
||||
listeners: listeners,
|
||||
doNotReject: true,
|
||||
handleNumbers: data.handleNumbers
|
||||
handleNumbers: data.handleNumbers,
|
||||
});
|
||||
// We want to make sure we pushed the listeners in the listener list rather than creating
|
||||
// a new one as it has already been passed to the event handlers.
|
||||
@@ -1668,7 +1668,7 @@
|
||||
// These events are only bound to the visual handle
|
||||
// element, not the 'real' origin element.
|
||||
attachEvent(actions.start, handle.children[0], eventStart, {
|
||||
handleNumbers: [index]
|
||||
handleNumbers: [index],
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -1679,7 +1679,7 @@
|
||||
// Fire hover events
|
||||
if (behaviour.hover) {
|
||||
attachEvent(actions.move, scope_Base, eventHover, {
|
||||
hover: true
|
||||
hover: true,
|
||||
});
|
||||
}
|
||||
// Make the range draggable.
|
||||
@@ -1710,7 +1710,7 @@
|
||||
attachEvent(actions.start, eventHolder, eventStart, {
|
||||
handles: handlesToDrag,
|
||||
handleNumbers: handleNumbersToDrag,
|
||||
connect: connect
|
||||
connect: connect,
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -2059,7 +2059,7 @@
|
||||
if (options.snap) {
|
||||
return [
|
||||
value - nearbySteps.stepBefore.startValue || null,
|
||||
nearbySteps.stepAfter.startValue - value || null
|
||||
nearbySteps.stepAfter.startValue - value || null,
|
||||
];
|
||||
}
|
||||
// If the next value in this step moves into the next step,
|
||||
@@ -2118,7 +2118,7 @@
|
||||
"step",
|
||||
"format",
|
||||
"pips",
|
||||
"tooltips"
|
||||
"tooltips",
|
||||
];
|
||||
// Only change options that we're actually passed to update.
|
||||
updateAble.forEach(function (name) {
|
||||
@@ -2203,7 +2203,7 @@
|
||||
getOrigins: function () {
|
||||
return scope_Handles;
|
||||
},
|
||||
pips: pips // Issue #594
|
||||
pips: pips, // Issue #594
|
||||
};
|
||||
return scope_Self;
|
||||
}
|
||||
@@ -2228,13 +2228,13 @@
|
||||
// A reference to the default classes, allows global changes.
|
||||
// Use the cssClasses option for changes to one slider.
|
||||
cssClasses: cssClasses,
|
||||
create: initialize
|
||||
create: initialize,
|
||||
};
|
||||
|
||||
exports.create = initialize;
|
||||
exports.cssClasses = cssClasses;
|
||||
exports['default'] = nouislider;
|
||||
exports["default"] = nouislider;
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
})));
|
||||
}));
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -122,7 +122,7 @@ function getPageOffset(doc) {
|
||||
: doc.body.scrollTop;
|
||||
return {
|
||||
x: x,
|
||||
y: y
|
||||
y: y,
|
||||
};
|
||||
}
|
||||
// we provide a function to compute constants instead
|
||||
@@ -135,18 +135,18 @@ function getActions() {
|
||||
? {
|
||||
start: "pointerdown",
|
||||
move: "pointermove",
|
||||
end: "pointerup"
|
||||
end: "pointerup",
|
||||
}
|
||||
: window.navigator.msPointerEnabled
|
||||
? {
|
||||
start: "MSPointerDown",
|
||||
move: "MSPointerMove",
|
||||
end: "MSPointerUp"
|
||||
end: "MSPointerUp",
|
||||
}
|
||||
: {
|
||||
start: "mousedown touchstart",
|
||||
move: "mousemove touchmove",
|
||||
end: "mouseup touchend"
|
||||
end: "mouseup touchend",
|
||||
};
|
||||
}
|
||||
// https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
|
||||
@@ -158,7 +158,7 @@ function getSupportsPassive() {
|
||||
var opts = Object.defineProperty({}, "passive", {
|
||||
get: function () {
|
||||
supportsPassive = true;
|
||||
}
|
||||
},
|
||||
});
|
||||
// @ts-ignore
|
||||
window.addEventListener("test", null, opts);
|
||||
@@ -379,18 +379,18 @@ var Spectrum = /** @class */ (function () {
|
||||
stepBefore: {
|
||||
startValue: this.xVal[j - 2],
|
||||
step: this.xNumSteps[j - 2],
|
||||
highestStep: this.xHighestCompleteStep[j - 2]
|
||||
highestStep: this.xHighestCompleteStep[j - 2],
|
||||
},
|
||||
thisStep: {
|
||||
startValue: this.xVal[j - 1],
|
||||
step: this.xNumSteps[j - 1],
|
||||
highestStep: this.xHighestCompleteStep[j - 1]
|
||||
highestStep: this.xHighestCompleteStep[j - 1],
|
||||
},
|
||||
stepAfter: {
|
||||
startValue: this.xVal[j],
|
||||
step: this.xNumSteps[j],
|
||||
highestStep: this.xHighestCompleteStep[j]
|
||||
}
|
||||
highestStep: this.xHighestCompleteStep[j],
|
||||
},
|
||||
};
|
||||
};
|
||||
Spectrum.prototype.countStepDecimals = function () {
|
||||
@@ -476,7 +476,7 @@ var defaultFormatter = {
|
||||
to: function (value) {
|
||||
return value === undefined ? "" : value.toFixed(2);
|
||||
},
|
||||
from: Number
|
||||
from: Number,
|
||||
};
|
||||
var cssClasses = {
|
||||
target: "target",
|
||||
@@ -514,12 +514,12 @@ var cssClasses = {
|
||||
valueVertical: "value-vertical",
|
||||
valueNormal: "value-normal",
|
||||
valueLarge: "value-large",
|
||||
valueSub: "value-sub"
|
||||
valueSub: "value-sub",
|
||||
};
|
||||
// Namespaces of internal event listeners
|
||||
var INTERNAL_EVENT_NS = {
|
||||
tooltips: ".__tooltips",
|
||||
aria: ".__aria"
|
||||
aria: ".__aria",
|
||||
};
|
||||
//endregion
|
||||
function testStep(parsed, entry) {
|
||||
@@ -726,7 +726,7 @@ function testBehaviour(parsed, entry) {
|
||||
fixed: fixed,
|
||||
snap: snap,
|
||||
hover: hover,
|
||||
unconstrained: unconstrained
|
||||
unconstrained: unconstrained,
|
||||
};
|
||||
}
|
||||
function testTooltips(parsed, entry) {
|
||||
@@ -812,7 +812,7 @@ function testOptions(options) {
|
||||
animate: true,
|
||||
animationDuration: 300,
|
||||
ariaFormat: defaultFormatter,
|
||||
format: defaultFormatter
|
||||
format: defaultFormatter,
|
||||
};
|
||||
// Tests are executed in the order they are presented here.
|
||||
var tests = {
|
||||
@@ -839,7 +839,7 @@ function testOptions(options) {
|
||||
documentElement: { r: false, t: testDocumentElement },
|
||||
cssPrefix: { r: true, t: testCssPrefix },
|
||||
cssClasses: { r: true, t: testCssClasses },
|
||||
handleAttributes: { r: false, t: testHandleAttributes }
|
||||
handleAttributes: { r: false, t: testHandleAttributes },
|
||||
};
|
||||
var defaults = {
|
||||
connect: false,
|
||||
@@ -851,7 +851,7 @@ function testOptions(options) {
|
||||
cssClasses: cssClasses,
|
||||
keyboardPageMultiplier: 5,
|
||||
keyboardMultiplier: 1,
|
||||
keyboardDefaultStep: 10
|
||||
keyboardDefaultStep: 10,
|
||||
};
|
||||
// AriaFormat defaults to regular format, if any.
|
||||
if (options.format && !options.ariaFormat) {
|
||||
@@ -883,7 +883,7 @@ function testOptions(options) {
|
||||
// Pips don't move, so we can place them using left/top.
|
||||
var styles = [
|
||||
["left", "top"],
|
||||
["right", "bottom"]
|
||||
["right", "bottom"],
|
||||
];
|
||||
parsed.style = styles[parsed.dir][parsed.ort];
|
||||
return parsed;
|
||||
@@ -1268,7 +1268,7 @@ function scope(target, options, originalOptions) {
|
||||
var format = pips.format || {
|
||||
to: function (value) {
|
||||
return String(Math.round(value));
|
||||
}
|
||||
},
|
||||
};
|
||||
scope_Pips = scope_Target.appendChild(addMarking(spread, filter, format));
|
||||
return scope_Pips;
|
||||
@@ -1504,21 +1504,21 @@ function scope(target, options, originalOptions) {
|
||||
pageOffset: event.pageOffset,
|
||||
handleNumbers: data.handleNumbers,
|
||||
buttonsProperty: event.buttons,
|
||||
locations: scope_Locations.slice()
|
||||
locations: scope_Locations.slice(),
|
||||
});
|
||||
var endEvent = attachEvent(actions.end, scope_DocumentElement, eventEnd, {
|
||||
target: event.target,
|
||||
handle: handle,
|
||||
listeners: listeners,
|
||||
doNotReject: true,
|
||||
handleNumbers: data.handleNumbers
|
||||
handleNumbers: data.handleNumbers,
|
||||
});
|
||||
var outEvent = attachEvent("mouseout", scope_DocumentElement, documentLeave, {
|
||||
target: event.target,
|
||||
handle: handle,
|
||||
listeners: listeners,
|
||||
doNotReject: true,
|
||||
handleNumbers: data.handleNumbers
|
||||
handleNumbers: data.handleNumbers,
|
||||
});
|
||||
// We want to make sure we pushed the listeners in the listener list rather than creating
|
||||
// a new one as it has already been passed to the event handlers.
|
||||
@@ -1663,7 +1663,7 @@ function scope(target, options, originalOptions) {
|
||||
// These events are only bound to the visual handle
|
||||
// element, not the 'real' origin element.
|
||||
attachEvent(actions.start, handle.children[0], eventStart, {
|
||||
handleNumbers: [index]
|
||||
handleNumbers: [index],
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -1674,7 +1674,7 @@ function scope(target, options, originalOptions) {
|
||||
// Fire hover events
|
||||
if (behaviour.hover) {
|
||||
attachEvent(actions.move, scope_Base, eventHover, {
|
||||
hover: true
|
||||
hover: true,
|
||||
});
|
||||
}
|
||||
// Make the range draggable.
|
||||
@@ -1705,7 +1705,7 @@ function scope(target, options, originalOptions) {
|
||||
attachEvent(actions.start, eventHolder, eventStart, {
|
||||
handles: handlesToDrag,
|
||||
handleNumbers: handleNumbersToDrag,
|
||||
connect: connect
|
||||
connect: connect,
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -2054,7 +2054,7 @@ function scope(target, options, originalOptions) {
|
||||
if (options.snap) {
|
||||
return [
|
||||
value - nearbySteps.stepBefore.startValue || null,
|
||||
nearbySteps.stepAfter.startValue - value || null
|
||||
nearbySteps.stepAfter.startValue - value || null,
|
||||
];
|
||||
}
|
||||
// If the next value in this step moves into the next step,
|
||||
@@ -2113,7 +2113,7 @@ function scope(target, options, originalOptions) {
|
||||
"step",
|
||||
"format",
|
||||
"pips",
|
||||
"tooltips"
|
||||
"tooltips",
|
||||
];
|
||||
// Only change options that we're actually passed to update.
|
||||
updateAble.forEach(function (name) {
|
||||
@@ -2198,7 +2198,7 @@ function scope(target, options, originalOptions) {
|
||||
getOrigins: function () {
|
||||
return scope_Handles;
|
||||
},
|
||||
pips: pips // Issue #594
|
||||
pips: pips, // Issue #594
|
||||
};
|
||||
return scope_Self;
|
||||
}
|
||||
@@ -2225,5 +2225,5 @@ export default {
|
||||
// A reference to the default classes, allows global changes.
|
||||
// Use the cssClasses option for changes to one slider.
|
||||
cssClasses: cssClasses,
|
||||
create: initialize
|
||||
create: initialize,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user