50 lines
3.7 MiB
JavaScript
50 lines
3.7 MiB
JavaScript
|
|
/*!
|
||
|
|
* DevExtreme (dx.web.js)
|
||
|
|
* Version: 21.1.4
|
||
|
|
* Build date: Mon Jun 21 2021
|
||
|
|
*
|
||
|
|
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
||
|
|
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
|
||
|
|
*/
|
||
|
|
"use strict";!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1103)}([function(e,t,n){t.extend=t.extendFromObject=void 0;var i=n(1);t.extendFromObject=function(e,t,n){for(var i in e=e||{},t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];i in e&&!n||(e[i]=o)}return e};t.extend=function e(t){var n=1,o=!1;for("boolean"==typeof(t=t||{})&&(o=t,t=arguments[1]||{},n++);n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var r in a){var s=t[r],l=a[r],u=!1,d=void 0;"__proto__"!==r&&"constructor"!==r&&t!==l&&(o&&l&&((0,i.isPlainObject)(l)||(u=Array.isArray(l)))?(d=u?s&&Array.isArray(s)?s:[]:s&&(0,i.isPlainObject)(s)?s:{},t[r]=e(o,d,l)):void 0!==l&&(t[r]=l))}}return t}},function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.isEvent=t.type=t.isDeferred=t.isPromise=t.isRenderer=t.isWindow=t.isPrimitive=t.isPlainObject=t.isEmptyObject=t.isObject=t.isNumeric=t.isString=t.isFunction=t.isDefined=t.isDate=t.isExponential=t.isBoolean=void 0;var o={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},a=function(e){var t=Object.prototype.toString.call(e);return"object"===i(e)?o[t]||"object":i(e)};t.type=a;t.isBoolean=function(e){return"boolean"==typeof e};t.isExponential=function(e){return s(e)&&-1!==e.toString().indexOf("e")};t.isDate=function(e){return"date"===a(e)};t.isDefined=function(e){return null!=e};var r=function(e){return"function"==typeof e};t.isFunction=r;t.isString=function(e){return"string"==typeof e};var s=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))};t.isNumeric=s;t.isObject=function(e){return"object"===a(e)};t.isEmptyObject=function(e){var t;for(t in e)return!1;return!0};t.isPlainObject=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Object.toString.call(n)===Object.toString.call(Object)};t.isPrimitive=function(e){return-1===["object","array","function"].indexOf(a(e))};t.isWindow=function(e){return null!=e&&e===e.window};t.isRenderer=function(e){return!(!e.jquery&&!e.dxRenderer)};t.isPromise=function(e){return e&&r(e.then)};t.isDeferred=function(e){return e&&r(e.done)&&r(e.fail)};t.isEvent=function(e){return!(!e||!e.preventDefault)}},function(e,t,n){var i;t.default=void 0;var o=((i=n(241))&&i.__esModule?i:{default:i}).default.get();t.default=o,e.exports=t.default,e.exports.default=t.default},function(e,t,n){t.reverseEach=t.each=t.map=void 0;t.map=function(e,t){if(Array.isArray(e))return e.map(t);var n=[];for(var i in e)n.push(t(e[i],i));return n};t.each=function(e,t){if(e){if("length"in e)for(var n=0;n<e.length&&!1!==t.call(e[n],n,e[n]);n++);else for(var i in e)if(!1===t.call(e[i],i,e[i]))break;return e}};t.reverseEach=function(e,t){if(e&&"length"in e&&0!==e.length)for(var n=e.length-1;n>=0&&!1!==t.call(e[n],n,e[n]);n--);}},function(e,t,n){t.equalByValue=t.grep=t.asyncNoop=t.noop=t.applyServerDecimalSeparator=t.escapeRegExp=t.getKeyHash=t.pairToObject=t.denormalizeKey=t.normalizeKey=t.splitPair=t.findBestMatches=t.deferUpdater=t.deferRenderer=t.deferUpdate=t.deferRender=t.executeAsync=t.ensureDefined=void 0;var i=u(n(30)),o=u(n(36)),a=n(6),r=n(23),s=n(3),l=n(1);function u(e){return e&&e.__esModule?e:{default:e}}t.ensureDefined=function(e,t){return(0,l.isDefined)(e)?e:t};t.executeAsync=function(e,t){var n=new a.Deferred,i=t||this,o={promise:n.promise(),abort:function(){
|
||
|
|
/*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */
|
||
|
|
var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)}},function(e,t,n){t.getMapFromObject=t.findItemsByKeys=t.extendAttributes=t.getDisplayFileSize=t.whenSome=void 0;var i=n(6),o=n(0),a=n(4),r=n(1);t.whenSome=function(e,t,n){t=t||a.noop,n=n||a.noop,Array.isArray(e)||(e=[e]);var o=e.map((function(e,o){return(0,i.when)(e).then((function(n){return(0,r.isFunction)(t)&&t({item:e,index:o,result:n}),n}),(function(e){return e||(e={}),e.index=o,(0,r.isFunction)(n)&&n(e),(new i.Deferred).resolve().promise()}))}));return i.when.apply(null,o)};t.getDisplayFileSize=function(e){for(var t=["B","KB","MB","GB","TB"],n=0,i=e;i>=1024&&n<=t.length-1;)i/=1024,n++;return i=Math.round(10*i)/10,"".concat(i," ").concat(t[n])};t.extendAttributes=function(e,t,n){return n.forEach((function(n){var i,a,s;(0,o.extend)(!0,e,(0,r.isDefined)(t[n])?(i={},a=n,s=t[n],a in i?Object.defineProperty(i,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[a]=s,i):{})})),e};t.findItemsByKeys=function(e,t){var n={};t.forEach((function(e){n[e]=null})),e.forEach((function(e){var t=e.fileItem.key;Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=e)}));var i=[];return t.forEach((function(e){var t=n[e];t&&i.push(t)})),i};t.getMapFromObject=function(e){var t=Object.keys(e),n=[];return t.forEach((function(t){return n.push(e[t])})),{keys:t,values:n}}},,,,,function(e,t,n){t.default=function(e,t){var n={ERROR_MESSAGES:(0,i.extend)(t,e),Error:function(){return d([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),o.logger[t]("log"===t?e:s([].slice.call(arguments)))}};function s(e){var t=e[0];return u(t,l(t,e=e.slice(1)))}function l(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),a.format.apply(this,t).replace(/\.*\s*?$/,"")}function u(e,t){return a.format.apply(this,["{0} - {1}. See:\n{2}",e,t,c(e)])}function d(e){var t=e[0],n=l(t,e=e.slice(1)),o=c(t),a=u(t,n);return(0,i.extend)(new Error(a),{__id:t,__details:n,url:o})}function c(e){return r+e}return n};var i=n(0),o=n(111),a=n(40),r="http://js.devexpress.com/error/"+n(166).version.split(".").slice(0,2).join("_")+"/";e.exports=t.default,e.exports.default=t.default},function(e,t,n){t.attachInstanceToElement=function(e,t,n){var a=(0,i.data)(e.get(0)),r=c(t.constructor);a[r]=t,n&&o.default.one(e,s.removeEvent,(function(){n.call(t)}));a.dxComponents||(a.dxComponents=[]);a.dxComponents.push(r)},t.getInstanceByElement=function(e,t){var n=c(t);return(0,i.data)(e.get(0),n)},t.name=void 0;var i=n(43),o=l(n(5)),a=l(n(188)),r=n(1),s=n(145);function l(e){return e&&e.__esModule?e:{default:e}}var u=new a.default,d=0,c=function(e,t){if(!(0,r.isDefined)(t)){if(!u.has(e)){var n="dxPrivateComponent"+d++;return u.set(e,n),n}return u.get(e)}u.set(e,t)};t.name=c},function(e,t,n){t.end=t.start=void 0;var i=d(n(5)),o=n(43),a=d(n(15)),r=d(n(13)),s=d(n(67)),l=n(8),u=d(n(25));function d(e){return e&&e.__esModule?e:{default:e}}t.start="dxhoverstart";var c=(0,l.addNamespace)(u.default.enter,"dxHoverStart");t.end="dxhoverend";var h=(0,l.addNamespace)(u.default.leave,"dxHoverEnd"),f=a.default.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){(0,o.data)(e,this._handlerArrayKeyPath,{})},add:function(e,t){var n=this,a=function(e){n._handler(e)};i.default.on(e,this._originalEventName,t.selector,a),(0,o.data)(e,this._handlerArrayKeyPath)[t.guid]=a},_handler:function(e){(0,l.isTouchEvent)(e)||r.default.isSimulator()||(0,l.fireEvent)({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var n=(0,o.data)(e,this._handlerArrayKeyPath)[t.guid];i.default.off(e,this._originalEventName,t.selector,n)},teardown:function(e){(0,o.removeData)(e,this._handlerArrayKeyPath)}})
|
||
|
|
/*!
|
||
|
|
* rrule.js - Library for working with recurrence rules for calendar dates.
|
||
|
|
* https://github.com/jakubroztocil/rrule
|
||
|
|
*
|
||
|
|
* Copyright 2010, Jakub Roztocil and Lars Schoning
|
||
|
|
* Licenced under the BSD licence.
|
||
|
|
* https://github.com/jakubroztocil/rrule/blob/master/LICENCE
|
||
|
|
*
|
||
|
|
* Based on:
|
||
|
|
* python-dateutil - Extensions to the standard Python datetime module.
|
||
|
|
* Copyright (c) 2003-2011 - Gustavo Niemeyer <gustavo@niemeyer.net>
|
||
|
|
* Copyright (c) 2012 - Tomi Pieviläinen <tomi.pievilainen@iki.fi>
|
||
|
|
* https://github.com/jakubroztocil/rrule/blob/master/LICENCE
|
||
|
|
*
|
||
|
|
*/t.default=i.c},function(e,t,n){t.CellBase=t.CellBaseProps=t.viewFunction=void 0;var i=n(18),o=n(21),a=n(92),r=["allDay","children","className","contentTemplate","contentTemplateProps","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text"];function s(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var c=function(e){var t=e.props.contentTemplate;return(0,i.createVNode)(1,"td",e.classes,[!e.props.contentTemplate&&e.props.children,e.props.contentTemplate&&t(d({},e.props.contentTemplateProps))],0)};t.viewFunction=c;var h={className:"",isFirstGroupCell:!1,isLastGroupCell:!1,startDate:new Date,endDate:new Date,allDay:!1,text:"",index:0,contentTemplateProps:{data:{},index:0}};t.CellBaseProps=h;var f=function(e){var t,n,o,h,f;function p(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=p).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n),p.prototype.render=function(){var e,t=this.props;return c({props:d({},t,{contentTemplate:(e=t.contentTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,d({},t)))}:e))}),classes:this.classes,restAttributes:this.restAttributes})},o=p,(h=[{key:"classes",get:function(){var e=this.props,t=e.className,n=e.isFirstGroupCell,i=e.isLastGroupCell;return(0,a.getGroupCellClasses)(n,i,t)}},{key:"restAttributes",get:function(){var e=this.props;return e.allDay,e.children,e.className,e.contentTemplate,e.contentTemplateProps,e.endDate,e.groupIndex,e.groups,e.index,e.isFirstGroupCell,e.isLastGroupCell,e.startDate,e.text,s(e,r)}}])&&l(o.prototype,h),f&&l(o,f),p}(o.BaseInfernoComponent);t.CellBase=f,f.defaultProps=d({},h)},,,,,,,,,function(e,t,n){t.default=void 0;var i,o=n(43),a=(i=n(11))&&i.__esModule?i:{default:i},r=n(7),s=n(1),l=n(93),u=n(190),d=n(243);var c,h=(0,r.getWindow)(),f=function(e,t){return e?"string"==typeof e?"body"===e?(this[0]=t?t.body:a.default.getBody(),this.length=1,this):(t=t||a.default.getDocument(),"<"===e[0]?(this[0]=a.default.createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,a.default.querySelectorAll(t,e)),this)):a.default.isNode(e)||(0,s.isWindow)(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):c(e.toArray?e.toArray():[e]):(this.length=0,this)};(c=function(e,t){return new f(e,t)}).fn={dxRenderer:!0},f.prototype=c.fn;var p=function(e,t){for(var n=0;n<this.length;n++){var i=c(this[n]);i[e].apply(i,t)}return this},g=function(e,t,n){null!=n?a.default.setAttribute(e,t,n):a.default.removeAttribute(e,t)};f.prototype.show=function(){return this.toggle(!0)},f.prototype.hide=function(){return this.toggle(!1)},f.prototype.toggle=function(e){return this[0]&&this.toggleClass("dx-state-invisible",!e),this},f.prototype.attr=function(e,t){if(this.length>1&&arguments.length>1)return p.call(this,"attr",arguments);if(!this[0])return(0,s.isObject)(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"==typeof e&&1===arguments.length){var n=this[0].getAttribute(e);return null==n?void 0:n}if((0,s.isPlainObject)(e))for(var i in e)this.attr(i,e[i]);else g(this[0],e,t);return this},f.prototype.removeAttr=function(e){return this[0]&&a.default.removeAttribute(this[0],e),this},f.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typ
|
||
|
|
/*!
|
||
|
|
* rrule.js - Library for working with recurrence rules for calendar dates.
|
||
|
|
* https://github.com/jakubroztocil/rrule
|
||
|
|
*
|
||
|
|
* Copyright 2010, Jakub Roztocil and Lars Schoning
|
||
|
|
* Licenced under the BSD licence.
|
||
|
|
* https://github.com/jakubroztocil/rrule/blob/master/LICENCE
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
var s=function(e,t){return void 0===t&&(t=r.a),new a.default(Object(o.a)(e,t)||void 0)},l=["count","until","interval","byweekday","bymonthday","bymonth"];i.a.IMPLEMENTED=[],i.a.IMPLEMENTED[a.default.HOURLY]=l,i.a.IMPLEMENTED[a.default.MINUTELY]=l,i.a.IMPLEMENTED[a.default.DAILY]=["byhour"].concat(l),i.a.IMPLEMENTED[a.default.WEEKLY]=l,i.a.IMPLEMENTED[a.default.MONTHLY]=l,i.a.IMPLEMENTED[a.default.YEARLY]=["byweekno","byyearday"].concat(l);var u=function(e,t,n,o){return new i.a(e,t,n,o).toString()},d=i.a.isFullyConvertible},function(e,t,n){var i=n(320),o=n(231),a=n(74),r=function(e,t){return-1!==e.indexOf(t)},s=function(e){return e.toString()},l=function(e,t,n){return t+" "+n+", "+e},u=function(){function e(e,t,n,o){if(void 0===t&&(t=s),void 0===n&&(n=i.a),void 0===o&&(o=l),this.text=[],this.language=n||i.a,this.gettext=t,this.dateFormatter=o,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var r=[].concat(this.options.bymonthday),u=[].concat(this.options.bynmonthday);r.sort((function(e,t){return e-t})),u.sort((function(e,t){return t-e})),this.bymonthday=r.concat(u),this.bymonthday.length||(this.bymonthday=null)}if(Object(a.f)(this.origOptions.byweekday)){var d=Object(a.d)(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],c=String(d);this.byweekday={allWeeks:d.filter((function(e){return!e.n})),someWeeks:d.filter((function(e){return Boolean(e.n)})),isWeekdays:-1!==c.indexOf("MO")&&-1!==c.indexOf("TU")&&-1!==c.indexOf("WE")&&-1!==c.indexOf("TH")&&-1!==c.indexOf("FR")&&-1===c.indexOf("SA")&&-1===c.indexOf("SU"),isEveryDay:-1!==c.indexOf("MO")&&-1!==c.indexOf("TU")&&-1!==c.indexOf("WE")&&-1!==c.indexOf("TH")&&-1!==c.indexOf("FR")&&-1!==c.indexOf("SA")&&-1!==c.indexOf("SU")};var h=function(e,t){return e.weekday-t.weekday};this.byweekday.allWeeks.sort(h),this.byweekday.someWeeks.sort(h),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){if(!(t.options.freq in e.IMPLEMENTED))return!1;if(t.origOptions.until&&t.origOptions.count)return!1;for(var n in t.origOptions){if(r(["dtstart","wkst","freq"],n))return!0;if(!r(e.IMPLEMENTED[t.options.freq],n))return!1}return!0},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[o.default.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},e.prototype.MINUTELY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},e.prototype.DAILY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?1=
|