qcell-react 1.0.22 → 1.0.25
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.
|
@@ -1,3 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Underscore.string
|
|
3
|
+
* (c) 2010 Esa-Matti Suuronen <esa-matti aet suuronen dot org>
|
|
4
|
+
* Underscore.string is freely distributable under the terms of the MIT license.
|
|
5
|
+
* Documentation: https://github.com/epeli/underscore.string
|
|
6
|
+
* Some code is borrowed from MooTools and Alexandru Marasteanu.
|
|
7
|
+
* Version '3.3.6'
|
|
8
|
+
* @preserve
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*!
|
|
12
|
+
* Sizzle CSS Selector Engine v2.2.1
|
|
13
|
+
* http://sizzlejs.com/
|
|
14
|
+
*
|
|
15
|
+
* Copyright jQuery Foundation and other contributors
|
|
16
|
+
* Released under the MIT license
|
|
17
|
+
* http://jquery.org/license
|
|
18
|
+
*
|
|
19
|
+
* Date: 2015-10-17
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/*!
|
|
23
|
+
* dist/inputmask
|
|
24
|
+
* https://github.com/RobinHerbots/Inputmask
|
|
25
|
+
* Copyright (c) 2010 - 2024 Robin Herbots
|
|
26
|
+
* Licensed under the MIT license
|
|
27
|
+
* Version: 5.0.9
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/*!
|
|
31
|
+
* jQuery JavaScript Library v1.12.4
|
|
32
|
+
* http://jquery.com/
|
|
33
|
+
*
|
|
34
|
+
* Includes Sizzle.js
|
|
35
|
+
* http://sizzlejs.com/
|
|
36
|
+
*
|
|
37
|
+
* Copyright jQuery Foundation and other contributors
|
|
38
|
+
* Released under the MIT license
|
|
39
|
+
* http://jquery.org/license
|
|
40
|
+
*
|
|
41
|
+
* Date: 2016-05-20T17:17Z
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/*! cpexcel.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
45
|
+
|
|
46
|
+
/*! cputils.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
47
|
+
|
|
48
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
49
|
+
|
|
50
|
+
/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
51
|
+
|
|
1
52
|
/**
|
|
2
53
|
* @license
|
|
3
54
|
* Lodash <https://lodash.com/>
|
|
@@ -6,3 +57,24 @@
|
|
|
6
57
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
58
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
59
|
*/
|
|
60
|
+
|
|
61
|
+
/** @preserve
|
|
62
|
+
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
63
|
+
* derived from CryptoJS.mode.CTR
|
|
64
|
+
* Jan Hruby jhruby.web@gmail.com
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
/** @preserve
|
|
68
|
+
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
69
|
+
|
|
70
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
71
|
+
|
|
72
|
+
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
73
|
+
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
74
|
+
|
|
75
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
//! moment.js
|
|
79
|
+
|
|
80
|
+
//! moment.js locale configuration
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
3
|
+
* This devtool is neither made for production nor for readable output files.
|
|
4
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
5
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
6
|
+
* or disable the default devtool with "devtool: false".
|
|
7
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
|
+
*/
|
|
9
|
+
(this["webpackChunkqcell_react"] = this["webpackChunkqcell_react"] || []).push([["src_QCELL_lib_jquery_plugins_jquery_touchSwipe_min_js"],{
|
|
10
|
+
|
|
11
|
+
/***/ "./src/QCELL/lib/jquery/plugins/jquery.touchSwipe.min.js":
|
|
12
|
+
/*!***************************************************************!*\
|
|
13
|
+
!*** ./src/QCELL/lib/jquery/plugins/jquery.touchSwipe.min.js ***!
|
|
14
|
+
\***************************************************************/
|
|
15
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
16
|
+
|
|
17
|
+
eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/*!\r\n * @fileOverview TouchSwipe - jQuery Plugin\r\n * @version 1.6.18\r\n *\r\n * @author Matt Bryson http://www.github.com/mattbryson\r\n * @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin\r\n * @see http://labs.rampinteractive.co.uk/touchSwipe/\r\n * @see http://plugins.jquery.com/project/touchSwipe\r\n * @license\r\n * Copyright (c) 2010-2015 Matt Bryson\r\n * Dual licensed under the MIT or GPL Version 2 licenses.\r\n *\r\n */\n!function (factory) {\n true && __webpack_require__.amdO.jQuery ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ \"./node_modules/jquery/dist/jquery.js\")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory( true && module.exports ? __webpack_require__(/*! jquery */ \"./node_modules/jquery/dist/jquery.js\") : jQuery);\n}(function ($) {\n \"use strict\";\n\n function init(options) {\n return !options || void 0 !== options.allowPageScroll || void 0 === options.swipe && void 0 === options.swipeStatus || (options.allowPageScroll = NONE), void 0 !== options.click && void 0 === options.tap && (options.tap = options.click), options || (options = {}), options = $.extend({}, $.fn.swipe.defaults, options), this.each(function () {\n var $this = $(this),\n plugin = $this.data(PLUGIN_NS);\n plugin || (plugin = new TouchSwipe(this, options), $this.data(PLUGIN_NS, plugin));\n });\n }\n function TouchSwipe(element, options) {\n function touchStart(jqEvent) {\n if (!(getTouchInProgress() || $(jqEvent.target).closest(options.excludedElements, $element).length > 0)) {\n var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent;\n if (!event.pointerType || \"mouse\" != event.pointerType || 0 != options.fallbackToMouseEvents) {\n var ret,\n touches = event.touches,\n evt = touches ? touches[0] : event;\n return phase = PHASE_START, touches ? fingerCount = touches.length : options.preventDefaultEvents !== !1 && jqEvent.preventDefault(), distance = 0, direction = null, currentDirection = null, pinchDirection = null, duration = 0, startTouchesDistance = 0, endTouchesDistance = 0, pinchZoom = 1, pinchDistance = 0, maximumsMap = createMaximumsData(), cancelMultiFingerRelease(), createFingerData(0, evt), !touches || fingerCount === options.fingers || options.fingers === ALL_FINGERS || hasPinches() ? (startTime = getTimeStamp(), 2 == fingerCount && (createFingerData(1, touches[1]), startTouchesDistance = endTouchesDistance = calculateTouchesDistance(fingerData[0].start, fingerData[1].start)), (options.swipeStatus || options.pinchStatus) && (ret = triggerHandler(event, phase))) : ret = !1, ret === !1 ? (phase = PHASE_CANCEL, triggerHandler(event, phase), ret) : (options.hold && (holdTimeout = setTimeout($.proxy(function () {\n $element.trigger(\"hold\", [event.target]), options.hold && (ret = options.hold.call($element, event, event.target));\n }, this), options.longTapThreshold)), setTouchInProgress(!0), null);\n }\n }\n }\n function touchMove(jqEvent) {\n var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent;\n if (phase !== PHASE_END && phase !== PHASE_CANCEL && !inMultiFingerRelease()) {\n var ret,\n touches = event.touches,\n evt = touches ? touches[0] : event,\n currentFinger = updateFingerData(evt);\n if (endTime = getTimeStamp(), touches && (fingerCount = touches.length), options.hold && clearTimeout(holdTimeout), phase = PHASE_MOVE, 2 == fingerCount && (0 == startTouchesDistance ? (createFingerData(1, touches[1]), startTouchesDistance = endTouchesDistance = calculateTouchesDistance(fingerData[0].start, fingerData[1].start)) : (updateFingerData(touches[1]), endTouchesDistance = calculateTouchesDistance(fingerData[0].end, fingerData[1].end), pinchDirection = calculatePinchDirection(fingerData[0].end, fingerData[1].end)), pinchZoom = calculatePinchZoom(startTouchesDistance, endTouchesDistance), pinchDistance = Math.abs(startTouchesDistance - endTouchesDistance)), fingerCount === options.fingers || options.fingers === ALL_FINGERS || !touches || hasPinches()) {\n if (direction = calculateDirection(currentFinger.start, currentFinger.end), currentDirection = calculateDirection(currentFinger.last, currentFinger.end), validateDefaultEvent(jqEvent, currentDirection), distance = calculateDistance(currentFinger.start, currentFinger.end), duration = calculateDuration(), setMaxDistance(direction, distance), ret = triggerHandler(event, phase), !options.triggerOnTouchEnd || options.triggerOnTouchLeave) {\n var inBounds = !0;\n if (options.triggerOnTouchLeave) {\n var bounds = getbounds(this);\n inBounds = isInBounds(currentFinger.end, bounds);\n }\n !options.triggerOnTouchEnd && inBounds ? phase = getNextPhase(PHASE_MOVE) : options.triggerOnTouchLeave && !inBounds && (phase = getNextPhase(PHASE_END)), phase != PHASE_CANCEL && phase != PHASE_END || triggerHandler(event, phase);\n }\n } else phase = PHASE_CANCEL, triggerHandler(event, phase);\n ret === !1 && (phase = PHASE_CANCEL, triggerHandler(event, phase));\n }\n }\n function touchEnd(jqEvent) {\n var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent,\n touches = event.touches;\n if (touches) {\n if (touches.length && !inMultiFingerRelease()) return startMultiFingerRelease(event), !0;\n if (touches.length && inMultiFingerRelease()) return !0;\n }\n return inMultiFingerRelease() && (fingerCount = fingerCountAtRelease), endTime = getTimeStamp(), duration = calculateDuration(), didSwipeBackToCancel() || !validateSwipeDistance() ? (phase = PHASE_CANCEL, triggerHandler(event, phase)) : options.triggerOnTouchEnd || options.triggerOnTouchEnd === !1 && phase === PHASE_MOVE ? (options.preventDefaultEvents !== !1 && jqEvent.cancelable !== !1 && jqEvent.preventDefault(), phase = PHASE_END, triggerHandler(event, phase)) : !options.triggerOnTouchEnd && hasTap() ? (phase = PHASE_END, triggerHandlerForGesture(event, phase, TAP)) : phase === PHASE_MOVE && (phase = PHASE_CANCEL, triggerHandler(event, phase)), setTouchInProgress(!1), null;\n }\n function touchCancel() {\n fingerCount = 0, endTime = 0, startTime = 0, startTouchesDistance = 0, endTouchesDistance = 0, pinchZoom = 1, cancelMultiFingerRelease(), setTouchInProgress(!1);\n }\n function touchLeave(jqEvent) {\n var event = jqEvent.originalEvent ? jqEvent.originalEvent : jqEvent;\n options.triggerOnTouchLeave && (phase = getNextPhase(PHASE_END), triggerHandler(event, phase));\n }\n function removeListeners() {\n $element.off(START_EV, touchStart), $element.off(CANCEL_EV, touchCancel), $element.off(MOVE_EV, touchMove), $element.off(END_EV, touchEnd), LEAVE_EV && $element.off(LEAVE_EV, touchLeave), setTouchInProgress(!1);\n }\n function getNextPhase(currentPhase) {\n var nextPhase = currentPhase,\n validTime = validateSwipeTime(),\n validDistance = validateSwipeDistance(),\n didCancel = didSwipeBackToCancel();\n return !validTime || didCancel ? nextPhase = PHASE_CANCEL : !validDistance || currentPhase != PHASE_MOVE || options.triggerOnTouchEnd && !options.triggerOnTouchLeave ? !validDistance && currentPhase == PHASE_END && options.triggerOnTouchLeave && (nextPhase = PHASE_CANCEL) : nextPhase = PHASE_END, nextPhase;\n }\n function triggerHandler(event, phase) {\n var ret,\n touches = event.touches;\n return (didSwipe() || hasSwipes()) && (ret = triggerHandlerForGesture(event, phase, SWIPE)), (didPinch() || hasPinches()) && ret !== !1 && (ret = triggerHandlerForGesture(event, phase, PINCH)), didDoubleTap() && ret !== !1 ? ret = triggerHandlerForGesture(event, phase, DOUBLE_TAP) : didLongTap() && ret !== !1 ? ret = triggerHandlerForGesture(event, phase, LONG_TAP) : didTap() && ret !== !1 && (ret = triggerHandlerForGesture(event, phase, TAP)), phase === PHASE_CANCEL && touchCancel(event), phase === PHASE_END && (touches ? touches.length || touchCancel(event) : touchCancel(event)), ret;\n }\n function triggerHandlerForGesture(event, phase, gesture) {\n var ret;\n if (gesture == SWIPE) {\n if ($element.trigger(\"swipeStatus\", [phase, direction || null, distance || 0, duration || 0, fingerCount, fingerData, currentDirection]), options.swipeStatus && (ret = options.swipeStatus.call($element, event, phase, direction || null, distance || 0, duration || 0, fingerCount, fingerData, currentDirection), ret === !1)) return !1;\n if (phase == PHASE_END && validateSwipe()) {\n if (clearTimeout(singleTapTimeout), clearTimeout(holdTimeout), $element.trigger(\"swipe\", [direction, distance, duration, fingerCount, fingerData, currentDirection]), options.swipe && (ret = options.swipe.call($element, event, direction, distance, duration, fingerCount, fingerData, currentDirection), ret === !1)) return !1;\n switch (direction) {\n case LEFT:\n $element.trigger(\"swipeLeft\", [direction, distance, duration, fingerCount, fingerData, currentDirection]), options.swipeLeft && (ret = options.swipeLeft.call($element, event, direction, distance, duration, fingerCount, fingerData, currentDirection));\n break;\n case RIGHT:\n $element.trigger(\"swipeRight\", [direction, distance, duration, fingerCount, fingerData, currentDirection]), options.swipeRight && (ret = options.swipeRight.call($element, event, direction, distance, duration, fingerCount, fingerData, currentDirection));\n break;\n case UP:\n $element.trigger(\"swipeUp\", [direction, distance, duration, fingerCount, fingerData, currentDirection]), options.swipeUp && (ret = options.swipeUp.call($element, event, direction, distance, duration, fingerCount, fingerData, currentDirection));\n break;\n case DOWN:\n $element.trigger(\"swipeDown\", [direction, distance, duration, fingerCount, fingerData, currentDirection]), options.swipeDown && (ret = options.swipeDown.call($element, event, direction, distance, duration, fingerCount, fingerData, currentDirection));\n }\n }\n }\n if (gesture == PINCH) {\n if ($element.trigger(\"pinchStatus\", [phase, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]), options.pinchStatus && (ret = options.pinchStatus.call($element, event, phase, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData), ret === !1)) return !1;\n if (phase == PHASE_END && validatePinch()) switch (pinchDirection) {\n case IN:\n $element.trigger(\"pinchIn\", [pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]), options.pinchIn && (ret = options.pinchIn.call($element, event, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData));\n break;\n case OUT:\n $element.trigger(\"pinchOut\", [pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData]), options.pinchOut && (ret = options.pinchOut.call($element, event, pinchDirection || null, pinchDistance || 0, duration || 0, fingerCount, pinchZoom, fingerData));\n }\n }\n return gesture == TAP ? phase !== PHASE_CANCEL && phase !== PHASE_END || (clearTimeout(singleTapTimeout), clearTimeout(holdTimeout), hasDoubleTap() && !inDoubleTap() ? (doubleTapStartTime = getTimeStamp(), singleTapTimeout = setTimeout($.proxy(function () {\n doubleTapStartTime = null, $element.trigger(\"tap\", [event.target]), options.tap && (ret = options.tap.call($element, event, event.target));\n }, this), options.doubleTapThreshold)) : (doubleTapStartTime = null, $element.trigger(\"tap\", [event.target]), options.tap && (ret = options.tap.call($element, event, event.target)))) : gesture == DOUBLE_TAP ? phase !== PHASE_CANCEL && phase !== PHASE_END || (clearTimeout(singleTapTimeout), clearTimeout(holdTimeout), doubleTapStartTime = null, $element.trigger(\"doubletap\", [event.target]), options.doubleTap && (ret = options.doubleTap.call($element, event, event.target))) : gesture == LONG_TAP && (phase !== PHASE_CANCEL && phase !== PHASE_END || (clearTimeout(singleTapTimeout), doubleTapStartTime = null, $element.trigger(\"longtap\", [event.target]), options.longTap && (ret = options.longTap.call($element, event, event.target)))), ret;\n }\n function validateSwipeDistance() {\n var valid = !0;\n return null !== options.threshold && (valid = distance >= options.threshold), valid;\n }\n function didSwipeBackToCancel() {\n var cancelled = !1;\n return null !== options.cancelThreshold && null !== direction && (cancelled = getMaxDistance(direction) - distance >= options.cancelThreshold), cancelled;\n }\n function validatePinchDistance() {\n return null !== options.pinchThreshold ? pinchDistance >= options.pinchThreshold : !0;\n }\n function validateSwipeTime() {\n var result;\n return result = options.maxTimeThreshold ? !(duration >= options.maxTimeThreshold) : !0;\n }\n function validateDefaultEvent(jqEvent, direction) {\n if (options.preventDefaultEvents !== !1) if (options.allowPageScroll === NONE) jqEvent.preventDefault();else {\n var auto = options.allowPageScroll === AUTO;\n switch (direction) {\n case LEFT:\n (options.swipeLeft && auto || !auto && options.allowPageScroll != HORIZONTAL) && jqEvent.preventDefault();\n break;\n case RIGHT:\n (options.swipeRight && auto || !auto && options.allowPageScroll != HORIZONTAL) && jqEvent.preventDefault();\n break;\n case UP:\n (options.swipeUp && auto || !auto && options.allowPageScroll != VERTICAL) && jqEvent.preventDefault();\n break;\n case DOWN:\n (options.swipeDown && auto || !auto && options.allowPageScroll != VERTICAL) && jqEvent.preventDefault();\n break;\n case NONE:\n }\n }\n }\n function validatePinch() {\n var hasCorrectFingerCount = validateFingers(),\n hasEndPoint = validateEndPoint(),\n hasCorrectDistance = validatePinchDistance();\n return hasCorrectFingerCount && hasEndPoint && hasCorrectDistance;\n }\n function hasPinches() {\n return !!(options.pinchStatus || options.pinchIn || options.pinchOut);\n }\n function didPinch() {\n return !(!validatePinch() || !hasPinches());\n }\n function validateSwipe() {\n var hasValidTime = validateSwipeTime(),\n hasValidDistance = validateSwipeDistance(),\n hasCorrectFingerCount = validateFingers(),\n hasEndPoint = validateEndPoint(),\n didCancel = didSwipeBackToCancel(),\n valid = !didCancel && hasEndPoint && hasCorrectFingerCount && hasValidDistance && hasValidTime;\n return valid;\n }\n function hasSwipes() {\n return !!(options.swipe || options.swipeStatus || options.swipeLeft || options.swipeRight || options.swipeUp || options.swipeDown);\n }\n function didSwipe() {\n return !(!validateSwipe() || !hasSwipes());\n }\n function validateFingers() {\n return fingerCount === options.fingers || options.fingers === ALL_FINGERS || !SUPPORTS_TOUCH;\n }\n function validateEndPoint() {\n return 0 !== fingerData[0].end.x;\n }\n function hasTap() {\n return !!options.tap;\n }\n function hasDoubleTap() {\n return !!options.doubleTap;\n }\n function hasLongTap() {\n return !!options.longTap;\n }\n function validateDoubleTap() {\n if (null == doubleTapStartTime) return !1;\n var now = getTimeStamp();\n return hasDoubleTap() && now - doubleTapStartTime <= options.doubleTapThreshold;\n }\n function inDoubleTap() {\n return validateDoubleTap();\n }\n function validateTap() {\n return (1 === fingerCount || !SUPPORTS_TOUCH) && (isNaN(distance) || distance < options.threshold);\n }\n function validateLongTap() {\n return duration > options.longTapThreshold && DOUBLE_TAP_THRESHOLD > distance;\n }\n function didTap() {\n return !(!validateTap() || !hasTap());\n }\n function didDoubleTap() {\n return !(!validateDoubleTap() || !hasDoubleTap());\n }\n function didLongTap() {\n return !(!validateLongTap() || !hasLongTap());\n }\n function startMultiFingerRelease(event) {\n previousTouchEndTime = getTimeStamp(), fingerCountAtRelease = event.touches.length + 1;\n }\n function cancelMultiFingerRelease() {\n previousTouchEndTime = 0, fingerCountAtRelease = 0;\n }\n function inMultiFingerRelease() {\n var withinThreshold = !1;\n if (previousTouchEndTime) {\n var diff = getTimeStamp() - previousTouchEndTime;\n diff <= options.fingerReleaseThreshold && (withinThreshold = !0);\n }\n return withinThreshold;\n }\n function getTouchInProgress() {\n return !($element.data(PLUGIN_NS + \"_intouch\") !== !0);\n }\n function setTouchInProgress(val) {\n $element && (val === !0 ? ($element.on(MOVE_EV, touchMove), $element.on(END_EV, touchEnd), LEAVE_EV && $element.on(LEAVE_EV, touchLeave)) : ($element.off(MOVE_EV, touchMove, !1), $element.off(END_EV, touchEnd, !1), LEAVE_EV && $element.off(LEAVE_EV, touchLeave, !1)), $element.data(PLUGIN_NS + \"_intouch\", val === !0));\n }\n function createFingerData(id, evt) {\n var f = {\n start: {\n x: 0,\n y: 0\n },\n last: {\n x: 0,\n y: 0\n },\n end: {\n x: 0,\n y: 0\n }\n };\n return f.start.x = f.last.x = f.end.x = evt.pageX || evt.clientX, f.start.y = f.last.y = f.end.y = evt.pageY || evt.clientY, fingerData[id] = f, f;\n }\n function updateFingerData(evt) {\n var id = void 0 !== evt.identifier ? evt.identifier : 0,\n f = getFingerData(id);\n return null === f && (f = createFingerData(id, evt)), f.last.x = f.end.x, f.last.y = f.end.y, f.end.x = evt.pageX || evt.clientX, f.end.y = evt.pageY || evt.clientY, f;\n }\n function getFingerData(id) {\n return fingerData[id] || null;\n }\n function setMaxDistance(direction, distance) {\n direction != NONE && (distance = Math.max(distance, getMaxDistance(direction)), maximumsMap[direction].distance = distance);\n }\n function getMaxDistance(direction) {\n return maximumsMap[direction] ? maximumsMap[direction].distance : void 0;\n }\n function createMaximumsData() {\n var maxData = {};\n return maxData[LEFT] = createMaximumVO(LEFT), maxData[RIGHT] = createMaximumVO(RIGHT), maxData[UP] = createMaximumVO(UP), maxData[DOWN] = createMaximumVO(DOWN), maxData;\n }\n function createMaximumVO(dir) {\n return {\n direction: dir,\n distance: 0\n };\n }\n function calculateDuration() {\n return endTime - startTime;\n }\n function calculateTouchesDistance(startPoint, endPoint) {\n var diffX = Math.abs(startPoint.x - endPoint.x),\n diffY = Math.abs(startPoint.y - endPoint.y);\n return Math.round(Math.sqrt(diffX * diffX + diffY * diffY));\n }\n function calculatePinchZoom(startDistance, endDistance) {\n var percent = endDistance / startDistance * 1;\n return percent.toFixed(2);\n }\n function calculatePinchDirection() {\n return 1 > pinchZoom ? OUT : IN;\n }\n function calculateDistance(startPoint, endPoint) {\n return Math.round(Math.sqrt(Math.pow(endPoint.x - startPoint.x, 2) + Math.pow(endPoint.y - startPoint.y, 2)));\n }\n function calculateAngle(startPoint, endPoint) {\n var x = startPoint.x - endPoint.x,\n y = endPoint.y - startPoint.y,\n r = Math.atan2(y, x),\n angle = Math.round(180 * r / Math.PI);\n return 0 > angle && (angle = 360 - Math.abs(angle)), angle;\n }\n function calculateDirection(startPoint, endPoint) {\n if (comparePoints(startPoint, endPoint)) return NONE;\n var angle = calculateAngle(startPoint, endPoint);\n return 45 >= angle && angle >= 0 ? LEFT : 360 >= angle && angle >= 315 ? LEFT : angle >= 135 && 225 >= angle ? RIGHT : angle > 45 && 135 > angle ? DOWN : UP;\n }\n function getTimeStamp() {\n var now = new Date();\n return now.getTime();\n }\n function getbounds(el) {\n el = $(el);\n var offset = el.offset(),\n bounds = {\n left: offset.left,\n right: offset.left + el.outerWidth(),\n top: offset.top,\n bottom: offset.top + el.outerHeight()\n };\n return bounds;\n }\n function isInBounds(point, bounds) {\n return point.x > bounds.left && point.x < bounds.right && point.y > bounds.top && point.y < bounds.bottom;\n }\n function comparePoints(pointA, pointB) {\n return pointA.x == pointB.x && pointA.y == pointB.y;\n }\n var options = $.extend({}, options),\n useTouchEvents = SUPPORTS_TOUCH || SUPPORTS_POINTER || !options.fallbackToMouseEvents,\n START_EV = useTouchEvents ? SUPPORTS_POINTER ? SUPPORTS_POINTER_IE10 ? \"MSPointerDown\" : \"pointerdown\" : \"touchstart\" : \"mousedown\",\n MOVE_EV = useTouchEvents ? SUPPORTS_POINTER ? SUPPORTS_POINTER_IE10 ? \"MSPointerMove\" : \"pointermove\" : \"touchmove\" : \"mousemove\",\n END_EV = useTouchEvents ? SUPPORTS_POINTER ? SUPPORTS_POINTER_IE10 ? \"MSPointerUp\" : \"pointerup\" : \"touchend\" : \"mouseup\",\n LEAVE_EV = useTouchEvents ? SUPPORTS_POINTER ? \"mouseleave\" : null : \"mouseleave\",\n CANCEL_EV = SUPPORTS_POINTER ? SUPPORTS_POINTER_IE10 ? \"MSPointerCancel\" : \"pointercancel\" : \"touchcancel\",\n distance = 0,\n direction = null,\n currentDirection = null,\n duration = 0,\n startTouchesDistance = 0,\n endTouchesDistance = 0,\n pinchZoom = 1,\n pinchDistance = 0,\n pinchDirection = 0,\n maximumsMap = null,\n $element = $(element),\n phase = \"start\",\n fingerCount = 0,\n fingerData = {},\n startTime = 0,\n endTime = 0,\n previousTouchEndTime = 0,\n fingerCountAtRelease = 0,\n doubleTapStartTime = 0,\n singleTapTimeout = null,\n holdTimeout = null;\n try {\n $element.on(START_EV, touchStart), $element.on(CANCEL_EV, touchCancel);\n } catch (e) {\n $.error(\"events not supported \" + START_EV + \",\" + CANCEL_EV + \" on jQuery.swipe\");\n }\n this.enable = function () {\n return this.disable(), $element.on(START_EV, touchStart), $element.on(CANCEL_EV, touchCancel), $element;\n }, this.disable = function () {\n return removeListeners(), $element;\n }, this.destroy = function () {\n removeListeners(), $element.data(PLUGIN_NS, null), $element = null;\n }, this.option = function (property, value) {\n if (\"object\" == _typeof(property)) options = $.extend(options, property);else if (void 0 !== options[property]) {\n if (void 0 === value) return options[property];\n options[property] = value;\n } else {\n if (!property) return options;\n $.error(\"Option \" + property + \" does not exist on jQuery.swipe.options\");\n }\n return null;\n };\n }\n var VERSION = \"1.6.18\",\n LEFT = \"left\",\n RIGHT = \"right\",\n UP = \"up\",\n DOWN = \"down\",\n IN = \"in\",\n OUT = \"out\",\n NONE = \"none\",\n AUTO = \"auto\",\n SWIPE = \"swipe\",\n PINCH = \"pinch\",\n TAP = \"tap\",\n DOUBLE_TAP = \"doubletap\",\n LONG_TAP = \"longtap\",\n HORIZONTAL = \"horizontal\",\n VERTICAL = \"vertical\",\n ALL_FINGERS = \"all\",\n DOUBLE_TAP_THRESHOLD = 10,\n PHASE_START = \"start\",\n PHASE_MOVE = \"move\",\n PHASE_END = \"end\",\n PHASE_CANCEL = \"cancel\",\n SUPPORTS_TOUCH = \"ontouchstart\" in window,\n SUPPORTS_POINTER_IE10 = window.navigator.msPointerEnabled && !window.PointerEvent && !SUPPORTS_TOUCH,\n SUPPORTS_POINTER = (window.PointerEvent || window.navigator.msPointerEnabled) && !SUPPORTS_TOUCH,\n PLUGIN_NS = \"TouchSwipe\",\n defaults = {\n fingers: 1,\n threshold: 75,\n cancelThreshold: null,\n pinchThreshold: 20,\n maxTimeThreshold: null,\n fingerReleaseThreshold: 250,\n longTapThreshold: 500,\n doubleTapThreshold: 200,\n swipe: null,\n swipeLeft: null,\n swipeRight: null,\n swipeUp: null,\n swipeDown: null,\n swipeStatus: null,\n pinchIn: null,\n pinchOut: null,\n pinchStatus: null,\n click: null,\n tap: null,\n doubleTap: null,\n longTap: null,\n hold: null,\n triggerOnTouchEnd: !0,\n triggerOnTouchLeave: !1,\n allowPageScroll: \"auto\",\n fallbackToMouseEvents: !0,\n excludedElements: \".noSwipe\",\n preventDefaultEvents: !0\n };\n $.fn.swipe = function (method) {\n var $this = $(this),\n plugin = $this.data(PLUGIN_NS);\n if (plugin && \"string\" == typeof method) {\n if (plugin[method]) return plugin[method].apply(plugin, Array.prototype.slice.call(arguments, 1));\n $.error(\"Method \" + method + \" does not exist on jQuery.swipe\");\n } else if (plugin && \"object\" == _typeof(method)) plugin.option.apply(plugin, arguments);else if (!(plugin || \"object\" != _typeof(method) && method)) return init.apply(this, arguments);\n return $this;\n }, $.fn.swipe.version = VERSION, $.fn.swipe.defaults = defaults, $.fn.swipe.phases = {\n PHASE_START: PHASE_START,\n PHASE_MOVE: PHASE_MOVE,\n PHASE_END: PHASE_END,\n PHASE_CANCEL: PHASE_CANCEL\n }, $.fn.swipe.directions = {\n LEFT: LEFT,\n RIGHT: RIGHT,\n UP: UP,\n DOWN: DOWN,\n IN: IN,\n OUT: OUT\n }, $.fn.swipe.pageScroll = {\n NONE: NONE,\n HORIZONTAL: HORIZONTAL,\n VERTICAL: VERTICAL,\n AUTO: AUTO\n }, $.fn.swipe.fingers = {\n ONE: 1,\n TWO: 2,\n THREE: 3,\n FOUR: 4,\n FIVE: 5,\n ALL: ALL_FINGERS\n };\n});\n\n//# sourceURL=webpack://qcell-react/./src/QCELL/lib/jquery/plugins/jquery.touchSwipe.min.js?");
|
|
18
|
+
|
|
19
|
+
/***/ })
|
|
20
|
+
|
|
21
|
+
}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcell-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "QCELL component for React. Righttech Co., Ltd. All rights reserved.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "./src/types/index.d.ts",
|
|
@@ -26,11 +26,14 @@
|
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"crypto-js": "^4.2.0",
|
|
29
|
+
"inputmask": "^5.0.9",
|
|
29
30
|
"jquery": "^1.12.4",
|
|
30
31
|
"lodash": "^4.17.21",
|
|
32
|
+
"moment": "^2.30.1",
|
|
31
33
|
"react": "^18.2.0",
|
|
32
34
|
"react-dom": "^18.2.0",
|
|
33
|
-
"underscore.string": "^3.3.6"
|
|
35
|
+
"underscore.string": "^3.3.6",
|
|
36
|
+
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
36
39
|
"@babel/core": "^7.25.2",
|