@sunggang/ui-lib 0.2.61 → 0.2.62
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.
- package/index.esm.css +178 -158
- package/index.esm2.js +712 -508
- package/index.esm3.js +188 -159
- package/package.json +1 -1
- package/src/Type/index.d.ts +1 -0
package/index.esm2.js
CHANGED
|
@@ -6482,37 +6482,52 @@ function flatten$2(items) {
|
|
|
6482
6482
|
}, []);
|
|
6483
6483
|
}
|
|
6484
6484
|
function fromDataTransferItem(item, entry) {
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
2,
|
|
6503
|
-
toFileWithPath(file)
|
|
6504
|
-
];
|
|
6485
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
6486
|
+
var _a, h, file, file1, fwp;
|
|
6487
|
+
return _ts_generator$2(this, function(_state) {
|
|
6488
|
+
switch(_state.label){
|
|
6489
|
+
case 0:
|
|
6490
|
+
if (!(globalThis.isSecureContext && typeof item.getAsFileSystemHandle === "function")) return [
|
|
6491
|
+
3,
|
|
6492
|
+
3
|
|
6493
|
+
];
|
|
6494
|
+
return [
|
|
6495
|
+
4,
|
|
6496
|
+
item.getAsFileSystemHandle()
|
|
6497
|
+
];
|
|
6498
|
+
case 1:
|
|
6499
|
+
h = _state.sent();
|
|
6500
|
+
if (h === null) {
|
|
6501
|
+
throw new Error("".concat(item, " is not a File"));
|
|
6505
6502
|
}
|
|
6506
|
-
|
|
6507
|
-
|
|
6503
|
+
if (!(h !== undefined)) return [
|
|
6504
|
+
3,
|
|
6505
|
+
3
|
|
6506
|
+
];
|
|
6507
|
+
return [
|
|
6508
|
+
4,
|
|
6509
|
+
h.getFile()
|
|
6510
|
+
];
|
|
6511
|
+
case 2:
|
|
6512
|
+
file = _state.sent();
|
|
6513
|
+
file.handle = h;
|
|
6514
|
+
return [
|
|
6515
|
+
2,
|
|
6516
|
+
toFileWithPath(file)
|
|
6517
|
+
];
|
|
6518
|
+
case 3:
|
|
6519
|
+
file1 = item.getAsFile();
|
|
6520
|
+
if (!file1) {
|
|
6521
|
+
throw new Error("".concat(item, " is not a File"));
|
|
6522
|
+
}
|
|
6523
|
+
fwp = toFileWithPath(file1, (_a = entry === null || entry === void 0 ? void 0 : entry.fullPath) !== null && _a !== void 0 ? _a : undefined);
|
|
6524
|
+
return [
|
|
6525
|
+
2,
|
|
6526
|
+
fwp
|
|
6527
|
+
];
|
|
6528
|
+
}
|
|
6508
6529
|
});
|
|
6509
|
-
}
|
|
6510
|
-
var file = item.getAsFile();
|
|
6511
|
-
if (!file) {
|
|
6512
|
-
return Promise.reject("".concat(item, " is not a File"));
|
|
6513
|
-
}
|
|
6514
|
-
var fwp = toFileWithPath(file, (_a = entry === null || entry === void 0 ? void 0 : entry.fullPath) !== null && _a !== void 0 ? _a : undefined);
|
|
6515
|
-
return Promise.resolve(fwp);
|
|
6530
|
+
});
|
|
6516
6531
|
}
|
|
6517
6532
|
// https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry
|
|
6518
6533
|
function fromEntry(entry) {
|
|
@@ -8741,7 +8756,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
8741
8756
|
if (null == r) return {};
|
|
8742
8757
|
var t = {};
|
|
8743
8758
|
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
8744
|
-
if (e.
|
|
8759
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
8745
8760
|
t[n] = r[n];
|
|
8746
8761
|
}
|
|
8747
8762
|
return t;
|
|
@@ -36051,8 +36066,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
36051
36066
|
if (null == e) return {};
|
|
36052
36067
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
36053
36068
|
if (Object.getOwnPropertySymbols) {
|
|
36054
|
-
var
|
|
36055
|
-
for(r = 0; r <
|
|
36069
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
36070
|
+
for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
36056
36071
|
}
|
|
36057
36072
|
return i;
|
|
36058
36073
|
}
|
|
@@ -42426,6 +42441,16 @@ function memoizeOne(resultFn, isEqual) {
|
|
|
42426
42441
|
return memoized;
|
|
42427
42442
|
}
|
|
42428
42443
|
|
|
42444
|
+
/**
|
|
42445
|
+
* Returns the width of a given element.
|
|
42446
|
+
*
|
|
42447
|
+
* @param node the element
|
|
42448
|
+
* @param client whether to use `clientWidth` if possible
|
|
42449
|
+
*/ function getWidth(node, client) {
|
|
42450
|
+
var win = isWindow(node);
|
|
42451
|
+
return win ? win.innerWidth : client ? node.clientWidth : offset$2(node).width;
|
|
42452
|
+
}
|
|
42453
|
+
|
|
42429
42454
|
var Symbol$2 = _Symbol, isArguments = isArguments_1, isArray$3 = isArray_1;
|
|
42430
42455
|
/** Built-in value references. */ var spreadableSymbol = Symbol$2 ? Symbol$2.isConcatSpreadable : undefined;
|
|
42431
42456
|
/**
|
|
@@ -42905,40 +42930,129 @@ var baseFlatten$1 = _baseFlatten, baseOrderBy = _baseOrderBy, baseRest$1 = _base
|
|
|
42905
42930
|
});
|
|
42906
42931
|
var sortBy_1 = sortBy;
|
|
42907
42932
|
|
|
42908
|
-
/**
|
|
42909
|
-
* Returns the width of a given element.
|
|
42910
|
-
*
|
|
42911
|
-
* @param node the element
|
|
42912
|
-
* @param client whether to use `clientWidth` if possible
|
|
42913
|
-
*/ function getWidth(node, client) {
|
|
42914
|
-
var win = isWindow(node);
|
|
42915
|
-
return win ? win.innerWidth : client ? node.clientWidth : offset$2(node).width;
|
|
42916
|
-
}
|
|
42917
|
-
|
|
42918
42933
|
function _toArray(r) {
|
|
42919
42934
|
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
42920
42935
|
}
|
|
42921
42936
|
|
|
42922
42937
|
/**
|
|
42923
|
-
*
|
|
42924
|
-
*
|
|
42938
|
+
* This function is like
|
|
42939
|
+
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
42940
|
+
* except that it includes inherited enumerable properties.
|
|
42925
42941
|
*
|
|
42926
42942
|
* @private
|
|
42927
|
-
* @param {
|
|
42928
|
-
* @
|
|
42929
|
-
* @returns {Array} Returns `array`.
|
|
42943
|
+
* @param {Object} object The object to query.
|
|
42944
|
+
* @returns {Array} Returns the array of property names.
|
|
42930
42945
|
*/
|
|
42931
42946
|
|
|
42932
|
-
function
|
|
42933
|
-
var
|
|
42934
|
-
|
|
42935
|
-
|
|
42936
|
-
|
|
42947
|
+
function nativeKeysIn$1(object) {
|
|
42948
|
+
var result = [];
|
|
42949
|
+
if (object != null) {
|
|
42950
|
+
for(var key in Object(object)){
|
|
42951
|
+
result.push(key);
|
|
42937
42952
|
}
|
|
42938
42953
|
}
|
|
42939
|
-
return
|
|
42954
|
+
return result;
|
|
42940
42955
|
}
|
|
42941
|
-
var
|
|
42956
|
+
var _nativeKeysIn = nativeKeysIn$1;
|
|
42957
|
+
|
|
42958
|
+
var isObject$3 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
42959
|
+
/** Used for built-in method references. */ var objectProto$4 = Object.prototype;
|
|
42960
|
+
/** Used to check objects for own properties. */ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
42961
|
+
/**
|
|
42962
|
+
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
42963
|
+
*
|
|
42964
|
+
* @private
|
|
42965
|
+
* @param {Object} object The object to query.
|
|
42966
|
+
* @returns {Array} Returns the array of property names.
|
|
42967
|
+
*/ function baseKeysIn$1(object) {
|
|
42968
|
+
if (!isObject$3(object)) {
|
|
42969
|
+
return nativeKeysIn(object);
|
|
42970
|
+
}
|
|
42971
|
+
var isProto = isPrototype$1(object), result = [];
|
|
42972
|
+
for(var key in object){
|
|
42973
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$4.call(object, key)))) {
|
|
42974
|
+
result.push(key);
|
|
42975
|
+
}
|
|
42976
|
+
}
|
|
42977
|
+
return result;
|
|
42978
|
+
}
|
|
42979
|
+
var _baseKeysIn = baseKeysIn$1;
|
|
42980
|
+
|
|
42981
|
+
var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
|
|
42982
|
+
/**
|
|
42983
|
+
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
42984
|
+
*
|
|
42985
|
+
* **Note:** Non-object values are coerced to objects.
|
|
42986
|
+
*
|
|
42987
|
+
* @static
|
|
42988
|
+
* @memberOf _
|
|
42989
|
+
* @since 3.0.0
|
|
42990
|
+
* @category Object
|
|
42991
|
+
* @param {Object} object The object to query.
|
|
42992
|
+
* @returns {Array} Returns the array of property names.
|
|
42993
|
+
* @example
|
|
42994
|
+
*
|
|
42995
|
+
* function Foo() {
|
|
42996
|
+
* this.a = 1;
|
|
42997
|
+
* this.b = 2;
|
|
42998
|
+
* }
|
|
42999
|
+
*
|
|
43000
|
+
* Foo.prototype.c = 3;
|
|
43001
|
+
*
|
|
43002
|
+
* _.keysIn(new Foo);
|
|
43003
|
+
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
43004
|
+
*/ function keysIn$4(object) {
|
|
43005
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
43006
|
+
}
|
|
43007
|
+
var keysIn_1 = keysIn$4;
|
|
43008
|
+
|
|
43009
|
+
var baseRest = _baseRest, eq$1 = eq_1, isIterateeCall = _isIterateeCall, keysIn$3 = keysIn_1;
|
|
43010
|
+
/** Used for built-in method references. */ var objectProto$3 = Object.prototype;
|
|
43011
|
+
/** Used to check objects for own properties. */ var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
43012
|
+
/**
|
|
43013
|
+
* Assigns own and inherited enumerable string keyed properties of source
|
|
43014
|
+
* objects to the destination object for all destination properties that
|
|
43015
|
+
* resolve to `undefined`. Source objects are applied from left to right.
|
|
43016
|
+
* Once a property is set, additional values of the same property are ignored.
|
|
43017
|
+
*
|
|
43018
|
+
* **Note:** This method mutates `object`.
|
|
43019
|
+
*
|
|
43020
|
+
* @static
|
|
43021
|
+
* @since 0.1.0
|
|
43022
|
+
* @memberOf _
|
|
43023
|
+
* @category Object
|
|
43024
|
+
* @param {Object} object The destination object.
|
|
43025
|
+
* @param {...Object} [sources] The source objects.
|
|
43026
|
+
* @returns {Object} Returns `object`.
|
|
43027
|
+
* @see _.defaultsDeep
|
|
43028
|
+
* @example
|
|
43029
|
+
*
|
|
43030
|
+
* _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
|
|
43031
|
+
* // => { 'a': 1, 'b': 2 }
|
|
43032
|
+
*/ var defaults = baseRest(function(object, sources) {
|
|
43033
|
+
object = Object(object);
|
|
43034
|
+
var index = -1;
|
|
43035
|
+
var length = sources.length;
|
|
43036
|
+
var guard = length > 2 ? sources[2] : undefined;
|
|
43037
|
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
43038
|
+
length = 1;
|
|
43039
|
+
}
|
|
43040
|
+
while(++index < length){
|
|
43041
|
+
var source = sources[index];
|
|
43042
|
+
var props = keysIn$3(source);
|
|
43043
|
+
var propsIndex = -1;
|
|
43044
|
+
var propsLength = props.length;
|
|
43045
|
+
while(++propsIndex < propsLength){
|
|
43046
|
+
var key = props[propsIndex];
|
|
43047
|
+
var value = object[key];
|
|
43048
|
+
if (value === undefined || eq$1(value, objectProto$3[key]) && !hasOwnProperty$3.call(object, key)) {
|
|
43049
|
+
object[key] = source[key];
|
|
43050
|
+
}
|
|
43051
|
+
}
|
|
43052
|
+
}
|
|
43053
|
+
return object;
|
|
43054
|
+
});
|
|
43055
|
+
var defaults_1 = defaults;
|
|
42942
43056
|
|
|
42943
43057
|
var defineProperty$1 = _defineProperty;
|
|
42944
43058
|
/**
|
|
@@ -42963,9 +43077,68 @@ var defineProperty$1 = _defineProperty;
|
|
|
42963
43077
|
}
|
|
42964
43078
|
var _baseAssignValue = baseAssignValue$3;
|
|
42965
43079
|
|
|
42966
|
-
var baseAssignValue$2 = _baseAssignValue,
|
|
42967
|
-
/**
|
|
42968
|
-
|
|
43080
|
+
var baseAssignValue$2 = _baseAssignValue, baseForOwn$1 = _baseForOwn, baseIteratee$1 = _baseIteratee;
|
|
43081
|
+
/**
|
|
43082
|
+
* Creates an object with the same keys as `object` and values generated
|
|
43083
|
+
* by running each own enumerable string keyed property of `object` thru
|
|
43084
|
+
* `iteratee`. The iteratee is invoked with three arguments:
|
|
43085
|
+
* (value, key, object).
|
|
43086
|
+
*
|
|
43087
|
+
* @static
|
|
43088
|
+
* @memberOf _
|
|
43089
|
+
* @since 2.4.0
|
|
43090
|
+
* @category Object
|
|
43091
|
+
* @param {Object} object The object to iterate over.
|
|
43092
|
+
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
|
43093
|
+
* @returns {Object} Returns the new mapped object.
|
|
43094
|
+
* @see _.mapKeys
|
|
43095
|
+
* @example
|
|
43096
|
+
*
|
|
43097
|
+
* var users = {
|
|
43098
|
+
* 'fred': { 'user': 'fred', 'age': 40 },
|
|
43099
|
+
* 'pebbles': { 'user': 'pebbles', 'age': 1 }
|
|
43100
|
+
* };
|
|
43101
|
+
*
|
|
43102
|
+
* _.mapValues(users, function(o) { return o.age; });
|
|
43103
|
+
* // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
|
|
43104
|
+
*
|
|
43105
|
+
* // The `_.property` iteratee shorthand.
|
|
43106
|
+
* _.mapValues(users, 'age');
|
|
43107
|
+
* // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
|
|
43108
|
+
*/ function mapValues(object, iteratee) {
|
|
43109
|
+
var result = {};
|
|
43110
|
+
iteratee = baseIteratee$1(iteratee);
|
|
43111
|
+
baseForOwn$1(object, function(value, key, object) {
|
|
43112
|
+
baseAssignValue$2(result, key, iteratee(value, key, object));
|
|
43113
|
+
});
|
|
43114
|
+
return result;
|
|
43115
|
+
}
|
|
43116
|
+
var mapValues_1 = mapValues;
|
|
43117
|
+
|
|
43118
|
+
/**
|
|
43119
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
43120
|
+
* iteratee shorthands.
|
|
43121
|
+
*
|
|
43122
|
+
* @private
|
|
43123
|
+
* @param {Array} [array] The array to iterate over.
|
|
43124
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
43125
|
+
* @returns {Array} Returns `array`.
|
|
43126
|
+
*/
|
|
43127
|
+
|
|
43128
|
+
function arrayEach$2(array, iteratee) {
|
|
43129
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
43130
|
+
while(++index < length){
|
|
43131
|
+
if (iteratee(array[index], index, array) === false) {
|
|
43132
|
+
break;
|
|
43133
|
+
}
|
|
43134
|
+
}
|
|
43135
|
+
return array;
|
|
43136
|
+
}
|
|
43137
|
+
var _arrayEach = arrayEach$2;
|
|
43138
|
+
|
|
43139
|
+
var baseAssignValue$1 = _baseAssignValue, eq = eq_1;
|
|
43140
|
+
/** Used for built-in method references. */ var objectProto$2 = Object.prototype;
|
|
43141
|
+
/** Used to check objects for own properties. */ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
42969
43142
|
/**
|
|
42970
43143
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
42971
43144
|
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -42977,13 +43150,13 @@ var baseAssignValue$2 = _baseAssignValue, eq$1 = eq_1;
|
|
|
42977
43150
|
* @param {*} value The value to assign.
|
|
42978
43151
|
*/ function assignValue$2(object, key, value) {
|
|
42979
43152
|
var objValue = object[key];
|
|
42980
|
-
if (!(hasOwnProperty$
|
|
42981
|
-
baseAssignValue$
|
|
43153
|
+
if (!(hasOwnProperty$2.call(object, key) && eq(objValue, value)) || value === undefined && !(key in object)) {
|
|
43154
|
+
baseAssignValue$1(object, key, value);
|
|
42982
43155
|
}
|
|
42983
43156
|
}
|
|
42984
43157
|
var _assignValue = assignValue$2;
|
|
42985
43158
|
|
|
42986
|
-
var assignValue$1 = _assignValue, baseAssignValue
|
|
43159
|
+
var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
|
|
42987
43160
|
/**
|
|
42988
43161
|
* Copies properties of `source` to `object`.
|
|
42989
43162
|
*
|
|
@@ -43004,7 +43177,7 @@ var assignValue$1 = _assignValue, baseAssignValue$1 = _baseAssignValue;
|
|
|
43004
43177
|
newValue = source[key];
|
|
43005
43178
|
}
|
|
43006
43179
|
if (isNew) {
|
|
43007
|
-
baseAssignValue
|
|
43180
|
+
baseAssignValue(object, key, newValue);
|
|
43008
43181
|
} else {
|
|
43009
43182
|
assignValue$1(object, key, newValue);
|
|
43010
43183
|
}
|
|
@@ -43027,79 +43200,7 @@ var copyObject$4 = _copyObject, keys$1 = keys_1;
|
|
|
43027
43200
|
}
|
|
43028
43201
|
var _baseAssign = baseAssign$1;
|
|
43029
43202
|
|
|
43030
|
-
|
|
43031
|
-
* This function is like
|
|
43032
|
-
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
43033
|
-
* except that it includes inherited enumerable properties.
|
|
43034
|
-
*
|
|
43035
|
-
* @private
|
|
43036
|
-
* @param {Object} object The object to query.
|
|
43037
|
-
* @returns {Array} Returns the array of property names.
|
|
43038
|
-
*/
|
|
43039
|
-
|
|
43040
|
-
function nativeKeysIn$1(object) {
|
|
43041
|
-
var result = [];
|
|
43042
|
-
if (object != null) {
|
|
43043
|
-
for(var key in Object(object)){
|
|
43044
|
-
result.push(key);
|
|
43045
|
-
}
|
|
43046
|
-
}
|
|
43047
|
-
return result;
|
|
43048
|
-
}
|
|
43049
|
-
var _nativeKeysIn = nativeKeysIn$1;
|
|
43050
|
-
|
|
43051
|
-
var isObject$3 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
43052
|
-
/** Used for built-in method references. */ var objectProto$3 = Object.prototype;
|
|
43053
|
-
/** Used to check objects for own properties. */ var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
43054
|
-
/**
|
|
43055
|
-
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
43056
|
-
*
|
|
43057
|
-
* @private
|
|
43058
|
-
* @param {Object} object The object to query.
|
|
43059
|
-
* @returns {Array} Returns the array of property names.
|
|
43060
|
-
*/ function baseKeysIn$1(object) {
|
|
43061
|
-
if (!isObject$3(object)) {
|
|
43062
|
-
return nativeKeysIn(object);
|
|
43063
|
-
}
|
|
43064
|
-
var isProto = isPrototype$1(object), result = [];
|
|
43065
|
-
for(var key in object){
|
|
43066
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty$3.call(object, key)))) {
|
|
43067
|
-
result.push(key);
|
|
43068
|
-
}
|
|
43069
|
-
}
|
|
43070
|
-
return result;
|
|
43071
|
-
}
|
|
43072
|
-
var _baseKeysIn = baseKeysIn$1;
|
|
43073
|
-
|
|
43074
|
-
var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
|
|
43075
|
-
/**
|
|
43076
|
-
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
43077
|
-
*
|
|
43078
|
-
* **Note:** Non-object values are coerced to objects.
|
|
43079
|
-
*
|
|
43080
|
-
* @static
|
|
43081
|
-
* @memberOf _
|
|
43082
|
-
* @since 3.0.0
|
|
43083
|
-
* @category Object
|
|
43084
|
-
* @param {Object} object The object to query.
|
|
43085
|
-
* @returns {Array} Returns the array of property names.
|
|
43086
|
-
* @example
|
|
43087
|
-
*
|
|
43088
|
-
* function Foo() {
|
|
43089
|
-
* this.a = 1;
|
|
43090
|
-
* this.b = 2;
|
|
43091
|
-
* }
|
|
43092
|
-
*
|
|
43093
|
-
* Foo.prototype.c = 3;
|
|
43094
|
-
*
|
|
43095
|
-
* _.keysIn(new Foo);
|
|
43096
|
-
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
43097
|
-
*/ function keysIn$4(object) {
|
|
43098
|
-
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
43099
|
-
}
|
|
43100
|
-
var keysIn_1 = keysIn$4;
|
|
43101
|
-
|
|
43102
|
-
var copyObject$3 = _copyObject, keysIn$3 = keysIn_1;
|
|
43203
|
+
var copyObject$3 = _copyObject, keysIn$2 = keysIn_1;
|
|
43103
43204
|
/**
|
|
43104
43205
|
* The base implementation of `_.assignIn` without support for multiple sources
|
|
43105
43206
|
* or `customizer` functions.
|
|
@@ -43109,7 +43210,7 @@ var copyObject$3 = _copyObject, keysIn$3 = keysIn_1;
|
|
|
43109
43210
|
* @param {Object} source The source object.
|
|
43110
43211
|
* @returns {Object} Returns `object`.
|
|
43111
43212
|
*/ function baseAssignIn$1(object, source) {
|
|
43112
|
-
return object && copyObject$3(source, keysIn$
|
|
43213
|
+
return object && copyObject$3(source, keysIn$2(source), object);
|
|
43113
43214
|
}
|
|
43114
43215
|
var _baseAssignIn = baseAssignIn$1;
|
|
43115
43216
|
|
|
@@ -43208,7 +43309,7 @@ var copyObject$1 = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
|
|
|
43208
43309
|
}
|
|
43209
43310
|
var _copySymbolsIn = copySymbolsIn$1;
|
|
43210
43311
|
|
|
43211
|
-
var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$
|
|
43312
|
+
var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
|
|
43212
43313
|
/**
|
|
43213
43314
|
* Creates an array of own and inherited enumerable property names and
|
|
43214
43315
|
* symbols of `object`.
|
|
@@ -43217,14 +43318,14 @@ var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$2 = k
|
|
|
43217
43318
|
* @param {Object} object The object to query.
|
|
43218
43319
|
* @returns {Array} Returns the array of property names and symbols.
|
|
43219
43320
|
*/ function getAllKeysIn$2(object) {
|
|
43220
|
-
return baseGetAllKeys(object, keysIn$
|
|
43321
|
+
return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
|
|
43221
43322
|
}
|
|
43222
43323
|
var _getAllKeysIn = getAllKeysIn$2;
|
|
43223
43324
|
|
|
43224
43325
|
/** Used for built-in method references. */
|
|
43225
43326
|
|
|
43226
|
-
var objectProto$
|
|
43227
|
-
/** Used to check objects for own properties. */ var hasOwnProperty$
|
|
43327
|
+
var objectProto$1 = Object.prototype;
|
|
43328
|
+
/** Used to check objects for own properties. */ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
43228
43329
|
/**
|
|
43229
43330
|
* Initializes an array clone.
|
|
43230
43331
|
*
|
|
@@ -43234,7 +43335,7 @@ var objectProto$2 = Object.prototype;
|
|
|
43234
43335
|
*/ function initCloneArray$1(array) {
|
|
43235
43336
|
var length = array.length, result = new array.constructor(length);
|
|
43236
43337
|
// Add properties assigned by `RegExp#exec`.
|
|
43237
|
-
if (length && typeof array[0] == "string" && hasOwnProperty$
|
|
43338
|
+
if (length && typeof array[0] == "string" && hasOwnProperty$1.call(array, "index")) {
|
|
43238
43339
|
result.index = array.index;
|
|
43239
43340
|
result.input = array.input;
|
|
43240
43341
|
}
|
|
@@ -43468,7 +43569,7 @@ var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtil.exports
|
|
|
43468
43569
|
*/ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
43469
43570
|
var isSet_1 = isSet$1;
|
|
43470
43571
|
|
|
43471
|
-
var Stack = _Stack, arrayEach$1 = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBuffer.exports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn$1 = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray$1 = isArray_1, isBuffer$1 = isBuffer$4.exports, isMap = isMap_1, isObject$1 = isObject_1, isSet = isSet_1, keys = keys_1, keysIn
|
|
43572
|
+
var Stack = _Stack, arrayEach$1 = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBuffer.exports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn$1 = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray$1 = isArray_1, isBuffer$1 = isBuffer$4.exports, isMap = isMap_1, isObject$1 = isObject_1, isSet = isSet_1, keys = keys_1, keysIn = keysIn_1;
|
|
43472
43573
|
/** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG$1 = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
43473
43574
|
/** `Object#toString` result references. */ var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag$1 = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
43474
43575
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
@@ -43540,7 +43641,7 @@ cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = f
|
|
|
43540
43641
|
result.set(key, baseClone$1(subValue, bitmask, customizer, key, value, stack));
|
|
43541
43642
|
});
|
|
43542
43643
|
}
|
|
43543
|
-
var keysFunc = isFull ? isFlat ? getAllKeysIn$1 : getAllKeys : isFlat ? keysIn
|
|
43644
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn$1 : getAllKeys : isFlat ? keysIn : keys;
|
|
43544
43645
|
var props = isArr ? undefined : keysFunc(value);
|
|
43545
43646
|
arrayEach$1(props || value, function(subValue, key) {
|
|
43546
43647
|
if (props) {
|
|
@@ -43612,9 +43713,9 @@ function _instanceof$1(left, right) {
|
|
|
43612
43713
|
}
|
|
43613
43714
|
var baseGetTag = _baseGetTag, getPrototype$1 = _getPrototype, isObjectLike = isObjectLike_1;
|
|
43614
43715
|
/** `Object#toString` result references. */ var objectTag = "[object Object]";
|
|
43615
|
-
/** Used for built-in method references. */ var funcProto = Function.prototype, objectProto
|
|
43716
|
+
/** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype;
|
|
43616
43717
|
/** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString;
|
|
43617
|
-
/** Used to check objects for own properties. */ var hasOwnProperty
|
|
43718
|
+
/** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty;
|
|
43618
43719
|
/** Used to infer the `Object` constructor. */ var objectCtorString = funcToString.call(Object);
|
|
43619
43720
|
/**
|
|
43620
43721
|
* Checks if `value` is a plain object, that is, an object created by the
|
|
@@ -43651,7 +43752,7 @@ var baseGetTag = _baseGetTag, getPrototype$1 = _getPrototype, isObjectLike = isO
|
|
|
43651
43752
|
if (proto === null) {
|
|
43652
43753
|
return true;
|
|
43653
43754
|
}
|
|
43654
|
-
var Ctor = hasOwnProperty
|
|
43755
|
+
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
43655
43756
|
return typeof Ctor == "function" && _instanceof$1(Ctor, Ctor) && funcToString.call(Ctor) == objectCtorString;
|
|
43656
43757
|
}
|
|
43657
43758
|
var isPlainObject_1 = isPlainObject$1;
|
|
@@ -43746,55 +43847,7 @@ var arrayMap = _arrayMap, baseClone = _baseClone, baseUnset = _baseUnset, castPa
|
|
|
43746
43847
|
});
|
|
43747
43848
|
var omit_1 = omit;
|
|
43748
43849
|
|
|
43749
|
-
var
|
|
43750
|
-
/** Used for built-in method references. */ var objectProto = Object.prototype;
|
|
43751
|
-
/** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty;
|
|
43752
|
-
/**
|
|
43753
|
-
* Assigns own and inherited enumerable string keyed properties of source
|
|
43754
|
-
* objects to the destination object for all destination properties that
|
|
43755
|
-
* resolve to `undefined`. Source objects are applied from left to right.
|
|
43756
|
-
* Once a property is set, additional values of the same property are ignored.
|
|
43757
|
-
*
|
|
43758
|
-
* **Note:** This method mutates `object`.
|
|
43759
|
-
*
|
|
43760
|
-
* @static
|
|
43761
|
-
* @since 0.1.0
|
|
43762
|
-
* @memberOf _
|
|
43763
|
-
* @category Object
|
|
43764
|
-
* @param {Object} object The destination object.
|
|
43765
|
-
* @param {...Object} [sources] The source objects.
|
|
43766
|
-
* @returns {Object} Returns `object`.
|
|
43767
|
-
* @see _.defaultsDeep
|
|
43768
|
-
* @example
|
|
43769
|
-
*
|
|
43770
|
-
* _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
|
|
43771
|
-
* // => { 'a': 1, 'b': 2 }
|
|
43772
|
-
*/ var defaults = baseRest(function(object, sources) {
|
|
43773
|
-
object = Object(object);
|
|
43774
|
-
var index = -1;
|
|
43775
|
-
var length = sources.length;
|
|
43776
|
-
var guard = length > 2 ? sources[2] : undefined;
|
|
43777
|
-
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
43778
|
-
length = 1;
|
|
43779
|
-
}
|
|
43780
|
-
while(++index < length){
|
|
43781
|
-
var source = sources[index];
|
|
43782
|
-
var props = keysIn(source);
|
|
43783
|
-
var propsIndex = -1;
|
|
43784
|
-
var propsLength = props.length;
|
|
43785
|
-
while(++propsIndex < propsLength){
|
|
43786
|
-
var key = props[propsIndex];
|
|
43787
|
-
var value = object[key];
|
|
43788
|
-
if (value === undefined || eq(value, objectProto[key]) && !hasOwnProperty.call(object, key)) {
|
|
43789
|
-
object[key] = source[key];
|
|
43790
|
-
}
|
|
43791
|
-
}
|
|
43792
|
-
}
|
|
43793
|
-
return object;
|
|
43794
|
-
});
|
|
43795
|
-
var defaults_1 = defaults;
|
|
43796
|
-
|
|
43797
|
-
var arrayEach = _arrayEach, baseCreate = _baseCreate, baseForOwn$1 = _baseForOwn, baseIteratee$1 = _baseIteratee, getPrototype = _getPrototype, isArray = isArray_1, isBuffer = isBuffer$4.exports, isFunction$1 = isFunction_1, isObject = isObject_1, isTypedArray = isTypedArray_1;
|
|
43850
|
+
var arrayEach = _arrayEach, baseCreate = _baseCreate, baseForOwn = _baseForOwn, baseIteratee = _baseIteratee, getPrototype = _getPrototype, isArray = isArray_1, isBuffer = isBuffer$4.exports, isFunction$1 = isFunction_1, isObject = isObject_1, isTypedArray = isTypedArray_1;
|
|
43798
43851
|
/**
|
|
43799
43852
|
* An alternative to `_.reduce`; this method transforms `object` to a new
|
|
43800
43853
|
* `accumulator` object which is the result of running each of its own
|
|
@@ -43826,7 +43879,7 @@ var arrayEach = _arrayEach, baseCreate = _baseCreate, baseForOwn$1 = _baseForOwn
|
|
|
43826
43879
|
* // => { '1': ['a', 'c'], '2': ['b'] }
|
|
43827
43880
|
*/ function transform(object, iteratee, accumulator) {
|
|
43828
43881
|
var isArr = isArray(object), isArrLike = isArr || isBuffer(object) || isTypedArray(object);
|
|
43829
|
-
iteratee = baseIteratee
|
|
43882
|
+
iteratee = baseIteratee(iteratee);
|
|
43830
43883
|
if (accumulator == null) {
|
|
43831
43884
|
var Ctor = object && object.constructor;
|
|
43832
43885
|
if (isArrLike) {
|
|
@@ -43837,51 +43890,13 @@ var arrayEach = _arrayEach, baseCreate = _baseCreate, baseForOwn$1 = _baseForOwn
|
|
|
43837
43890
|
accumulator = {};
|
|
43838
43891
|
}
|
|
43839
43892
|
}
|
|
43840
|
-
(isArrLike ? arrayEach : baseForOwn
|
|
43893
|
+
(isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
|
|
43841
43894
|
return iteratee(accumulator, value, index, object);
|
|
43842
43895
|
});
|
|
43843
43896
|
return accumulator;
|
|
43844
43897
|
}
|
|
43845
43898
|
var transform_1 = transform;
|
|
43846
43899
|
|
|
43847
|
-
var baseAssignValue = _baseAssignValue, baseForOwn = _baseForOwn, baseIteratee = _baseIteratee;
|
|
43848
|
-
/**
|
|
43849
|
-
* Creates an object with the same keys as `object` and values generated
|
|
43850
|
-
* by running each own enumerable string keyed property of `object` thru
|
|
43851
|
-
* `iteratee`. The iteratee is invoked with three arguments:
|
|
43852
|
-
* (value, key, object).
|
|
43853
|
-
*
|
|
43854
|
-
* @static
|
|
43855
|
-
* @memberOf _
|
|
43856
|
-
* @since 2.4.0
|
|
43857
|
-
* @category Object
|
|
43858
|
-
* @param {Object} object The object to iterate over.
|
|
43859
|
-
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
|
43860
|
-
* @returns {Object} Returns the new mapped object.
|
|
43861
|
-
* @see _.mapKeys
|
|
43862
|
-
* @example
|
|
43863
|
-
*
|
|
43864
|
-
* var users = {
|
|
43865
|
-
* 'fred': { 'user': 'fred', 'age': 40 },
|
|
43866
|
-
* 'pebbles': { 'user': 'pebbles', 'age': 1 }
|
|
43867
|
-
* };
|
|
43868
|
-
*
|
|
43869
|
-
* _.mapValues(users, function(o) { return o.age; });
|
|
43870
|
-
* // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
|
|
43871
|
-
*
|
|
43872
|
-
* // The `_.property` iteratee shorthand.
|
|
43873
|
-
* _.mapValues(users, 'age');
|
|
43874
|
-
* // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
|
|
43875
|
-
*/ function mapValues(object, iteratee) {
|
|
43876
|
-
var result = {};
|
|
43877
|
-
iteratee = baseIteratee(iteratee);
|
|
43878
|
-
baseForOwn(object, function(value, key, object) {
|
|
43879
|
-
baseAssignValue(result, key, iteratee(value, key, object));
|
|
43880
|
-
});
|
|
43881
|
-
return result;
|
|
43882
|
-
}
|
|
43883
|
-
var mapValues_1 = mapValues;
|
|
43884
|
-
|
|
43885
43900
|
var isBetween = {
|
|
43886
43901
|
exports: {}
|
|
43887
43902
|
};
|
|
@@ -44252,9 +44267,6 @@ PropTypes.oneOfType([
|
|
|
44252
44267
|
]),
|
|
44253
44268
|
PropTypes.func
|
|
44254
44269
|
]);
|
|
44255
|
-
function notify(handler, args) {
|
|
44256
|
-
handler && handler.apply(null, [].concat(args));
|
|
44257
|
-
}
|
|
44258
44270
|
/* eslint no-fallthrough: off */ var MILLI = {
|
|
44259
44271
|
seconds: 1000,
|
|
44260
44272
|
minutes: 1000 * 60,
|
|
@@ -44455,6 +44467,73 @@ function mergeWithDefaults(localizer, culture, formatOverrides, messages) {
|
|
|
44455
44467
|
}
|
|
44456
44468
|
});
|
|
44457
44469
|
}
|
|
44470
|
+
var Toolbar = /*#__PURE__*/ function(_React$Component) {
|
|
44471
|
+
function Toolbar() {
|
|
44472
|
+
var _this;
|
|
44473
|
+
_classCallCheck(this, Toolbar);
|
|
44474
|
+
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
44475
|
+
args[_key] = arguments[_key];
|
|
44476
|
+
}
|
|
44477
|
+
_this = _callSuper(this, Toolbar, [].concat(args));
|
|
44478
|
+
_this.navigate = function(action) {
|
|
44479
|
+
_this.props.onNavigate(action);
|
|
44480
|
+
};
|
|
44481
|
+
_this.view = function(view) {
|
|
44482
|
+
_this.props.onView(view);
|
|
44483
|
+
};
|
|
44484
|
+
return _this;
|
|
44485
|
+
}
|
|
44486
|
+
_inherits(Toolbar, _React$Component);
|
|
44487
|
+
return _createClass(Toolbar, [
|
|
44488
|
+
{
|
|
44489
|
+
key: "render",
|
|
44490
|
+
value: function render() {
|
|
44491
|
+
var _this$props = this.props, messages = _this$props.localizer.messages, label = _this$props.label;
|
|
44492
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
44493
|
+
className: "rbc-toolbar"
|
|
44494
|
+
}, /*#__PURE__*/ React__default.createElement("span", {
|
|
44495
|
+
className: "rbc-btn-group"
|
|
44496
|
+
}, /*#__PURE__*/ React__default.createElement("button", {
|
|
44497
|
+
type: "button",
|
|
44498
|
+
onClick: this.navigate.bind(null, navigate.TODAY)
|
|
44499
|
+
}, messages.today), /*#__PURE__*/ React__default.createElement("button", {
|
|
44500
|
+
type: "button",
|
|
44501
|
+
onClick: this.navigate.bind(null, navigate.PREVIOUS)
|
|
44502
|
+
}, messages.previous), /*#__PURE__*/ React__default.createElement("button", {
|
|
44503
|
+
type: "button",
|
|
44504
|
+
onClick: this.navigate.bind(null, navigate.NEXT)
|
|
44505
|
+
}, messages.next)), /*#__PURE__*/ React__default.createElement("span", {
|
|
44506
|
+
className: "rbc-toolbar-label"
|
|
44507
|
+
}, label), /*#__PURE__*/ React__default.createElement("span", {
|
|
44508
|
+
className: "rbc-btn-group"
|
|
44509
|
+
}, this.viewNamesGroup(messages)));
|
|
44510
|
+
}
|
|
44511
|
+
},
|
|
44512
|
+
{
|
|
44513
|
+
key: "viewNamesGroup",
|
|
44514
|
+
value: function viewNamesGroup(messages) {
|
|
44515
|
+
var _this2 = this;
|
|
44516
|
+
var viewNames = this.props.views;
|
|
44517
|
+
var view = this.props.view;
|
|
44518
|
+
if (viewNames.length > 1) {
|
|
44519
|
+
return viewNames.map(function(name) {
|
|
44520
|
+
return /*#__PURE__*/ React__default.createElement("button", {
|
|
44521
|
+
type: "button",
|
|
44522
|
+
key: name,
|
|
44523
|
+
className: clsx$1({
|
|
44524
|
+
"rbc-active": view === name
|
|
44525
|
+
}),
|
|
44526
|
+
onClick: _this2.view.bind(null, name)
|
|
44527
|
+
}, messages[name]);
|
|
44528
|
+
});
|
|
44529
|
+
}
|
|
44530
|
+
}
|
|
44531
|
+
}
|
|
44532
|
+
]);
|
|
44533
|
+
}(React__default.Component);
|
|
44534
|
+
function notify(handler, args) {
|
|
44535
|
+
handler && handler.apply(null, [].concat(args));
|
|
44536
|
+
}
|
|
44458
44537
|
var defaultMessages = {
|
|
44459
44538
|
date: "Date",
|
|
44460
44539
|
time: "Time",
|
|
@@ -45925,8 +46004,7 @@ var DateHeader = function DateHeader(_ref) {
|
|
|
45925
46004
|
return /*#__PURE__*/ React__default.createElement("button", {
|
|
45926
46005
|
type: "button",
|
|
45927
46006
|
className: "rbc-button-link",
|
|
45928
|
-
onClick: onDrillDown
|
|
45929
|
-
role: "cell"
|
|
46007
|
+
onClick: onDrillDown
|
|
45930
46008
|
}, label);
|
|
45931
46009
|
};
|
|
45932
46010
|
var _excluded$6 = [
|
|
@@ -46783,9 +46861,11 @@ var DayColumn = /*#__PURE__*/ function(_React$Component) {
|
|
|
46783
46861
|
dayLayoutAlgorithm: dayLayoutAlgorithm
|
|
46784
46862
|
});
|
|
46785
46863
|
return styledEvents.map(function(_ref2, idx) {
|
|
46864
|
+
var _accessors$eventId;
|
|
46786
46865
|
var event = _ref2.event, style = _ref2.style;
|
|
46787
46866
|
var end = accessors.end(event);
|
|
46788
46867
|
var start = accessors.start(event);
|
|
46868
|
+
var key = (_accessors$eventId = accessors.eventId(event)) !== null && _accessors$eventId !== void 0 ? _accessors$eventId : "evt_" + idx;
|
|
46789
46869
|
var format = "eventTimeRangeFormat";
|
|
46790
46870
|
var label;
|
|
46791
46871
|
var startsBeforeDay = slotMetrics.startsBeforeDay(start);
|
|
@@ -46803,7 +46883,7 @@ var DayColumn = /*#__PURE__*/ function(_React$Component) {
|
|
|
46803
46883
|
style: style,
|
|
46804
46884
|
event: event,
|
|
46805
46885
|
label: label,
|
|
46806
|
-
key:
|
|
46886
|
+
key: key,
|
|
46807
46887
|
getters: getters,
|
|
46808
46888
|
rtl: rtl,
|
|
46809
46889
|
components: components,
|
|
@@ -47098,6 +47178,281 @@ DayColumn.defaultProps = {
|
|
|
47098
47178
|
dragThroughEvents: true,
|
|
47099
47179
|
timeslots: 2
|
|
47100
47180
|
};
|
|
47181
|
+
var ResourceHeader = function ResourceHeader(_ref) {
|
|
47182
|
+
var label = _ref.label;
|
|
47183
|
+
return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, label);
|
|
47184
|
+
};
|
|
47185
|
+
var TimeGridHeader = /*#__PURE__*/ function(_React$Component) {
|
|
47186
|
+
function TimeGridHeader() {
|
|
47187
|
+
var _this;
|
|
47188
|
+
_classCallCheck(this, TimeGridHeader);
|
|
47189
|
+
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
47190
|
+
args[_key] = arguments[_key];
|
|
47191
|
+
}
|
|
47192
|
+
_this = _callSuper(this, TimeGridHeader, [].concat(args));
|
|
47193
|
+
_this.handleHeaderClick = function(date, view, e) {
|
|
47194
|
+
e.preventDefault();
|
|
47195
|
+
notify(_this.props.onDrillDown, [
|
|
47196
|
+
date,
|
|
47197
|
+
view
|
|
47198
|
+
]);
|
|
47199
|
+
};
|
|
47200
|
+
_this.renderRow = function(resource) {
|
|
47201
|
+
var _this$props = _this.props, events = _this$props.events, rtl = _this$props.rtl, selectable = _this$props.selectable, getNow = _this$props.getNow, range = _this$props.range, getters = _this$props.getters, localizer = _this$props.localizer, accessors = _this$props.accessors, components = _this$props.components, resizable = _this$props.resizable;
|
|
47202
|
+
var resourceId = accessors.resourceId(resource);
|
|
47203
|
+
var eventsToDisplay = resource ? events.filter(function(event) {
|
|
47204
|
+
return accessors.resource(event) === resourceId;
|
|
47205
|
+
}) : events;
|
|
47206
|
+
return /*#__PURE__*/ React__default.createElement(DateContentRow, {
|
|
47207
|
+
isAllDay: true,
|
|
47208
|
+
rtl: rtl,
|
|
47209
|
+
getNow: getNow,
|
|
47210
|
+
minRows: 2,
|
|
47211
|
+
maxRows: _this.props.allDayMaxRows + 1,
|
|
47212
|
+
range: range,
|
|
47213
|
+
events: eventsToDisplay,
|
|
47214
|
+
resourceId: resourceId,
|
|
47215
|
+
className: "rbc-allday-cell",
|
|
47216
|
+
selectable: selectable,
|
|
47217
|
+
selected: _this.props.selected,
|
|
47218
|
+
components: components,
|
|
47219
|
+
accessors: accessors,
|
|
47220
|
+
getters: getters,
|
|
47221
|
+
localizer: localizer,
|
|
47222
|
+
onSelect: _this.props.onSelectEvent,
|
|
47223
|
+
onShowMore: _this.props.onShowMore,
|
|
47224
|
+
onDoubleClick: _this.props.onDoubleClickEvent,
|
|
47225
|
+
onKeyPress: _this.props.onKeyPressEvent,
|
|
47226
|
+
onSelectSlot: _this.props.onSelectSlot,
|
|
47227
|
+
longPressThreshold: _this.props.longPressThreshold,
|
|
47228
|
+
resizable: resizable
|
|
47229
|
+
});
|
|
47230
|
+
};
|
|
47231
|
+
return _this;
|
|
47232
|
+
}
|
|
47233
|
+
_inherits(TimeGridHeader, _React$Component);
|
|
47234
|
+
return _createClass(TimeGridHeader, [
|
|
47235
|
+
{
|
|
47236
|
+
key: "renderHeaderCells",
|
|
47237
|
+
value: function renderHeaderCells(range) {
|
|
47238
|
+
var _this2 = this;
|
|
47239
|
+
var _this$props2 = this.props, localizer = _this$props2.localizer, getDrilldownView = _this$props2.getDrilldownView, getNow = _this$props2.getNow, dayProp = _this$props2.getters.dayProp, _this$props2$componen = _this$props2.components.header, HeaderComponent = _this$props2$componen === void 0 ? Header : _this$props2$componen;
|
|
47240
|
+
var today = getNow();
|
|
47241
|
+
return range.map(function(date, i) {
|
|
47242
|
+
var drilldownView = getDrilldownView(date);
|
|
47243
|
+
var label = localizer.format(date, "dayFormat");
|
|
47244
|
+
var _dayProp = dayProp(date), className = _dayProp.className, style = _dayProp.style;
|
|
47245
|
+
var header = /*#__PURE__*/ React__default.createElement(HeaderComponent, {
|
|
47246
|
+
date: date,
|
|
47247
|
+
label: label,
|
|
47248
|
+
localizer: localizer
|
|
47249
|
+
});
|
|
47250
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
47251
|
+
key: i,
|
|
47252
|
+
style: style,
|
|
47253
|
+
className: clsx$1("rbc-header", className, localizer.isSameDate(date, today) && "rbc-today")
|
|
47254
|
+
}, drilldownView ? /*#__PURE__*/ React__default.createElement("button", {
|
|
47255
|
+
type: "button",
|
|
47256
|
+
className: "rbc-button-link",
|
|
47257
|
+
onClick: function onClick(e) {
|
|
47258
|
+
return _this2.handleHeaderClick(date, drilldownView, e);
|
|
47259
|
+
}
|
|
47260
|
+
}, header) : /*#__PURE__*/ React__default.createElement("span", null, header));
|
|
47261
|
+
});
|
|
47262
|
+
}
|
|
47263
|
+
},
|
|
47264
|
+
{
|
|
47265
|
+
key: "render",
|
|
47266
|
+
value: function render() {
|
|
47267
|
+
var _this3 = this;
|
|
47268
|
+
var _this$props3 = this.props, width = _this$props3.width, rtl = _this$props3.rtl, resources = _this$props3.resources, range = _this$props3.range, events = _this$props3.events, getNow = _this$props3.getNow, accessors = _this$props3.accessors, selectable = _this$props3.selectable, components = _this$props3.components, getters = _this$props3.getters, scrollRef = _this$props3.scrollRef, localizer = _this$props3.localizer, isOverflowing = _this$props3.isOverflowing, _this$props3$componen = _this$props3.components, TimeGutterHeader = _this$props3$componen.timeGutterHeader, _this$props3$componen2 = _this$props3$componen.resourceHeader, ResourceHeaderComponent = _this$props3$componen2 === void 0 ? ResourceHeader : _this$props3$componen2, resizable = _this$props3.resizable;
|
|
47269
|
+
var style = {};
|
|
47270
|
+
if (isOverflowing) {
|
|
47271
|
+
style[rtl ? "marginLeft" : "marginRight"] = "".concat(scrollbarSize() - 1, "px");
|
|
47272
|
+
}
|
|
47273
|
+
var groupedEvents = resources.groupEvents(events);
|
|
47274
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
47275
|
+
style: style,
|
|
47276
|
+
ref: scrollRef,
|
|
47277
|
+
className: clsx$1("rbc-time-header", isOverflowing && "rbc-overflowing")
|
|
47278
|
+
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
47279
|
+
className: "rbc-label rbc-time-header-gutter",
|
|
47280
|
+
style: {
|
|
47281
|
+
width: width,
|
|
47282
|
+
minWidth: width,
|
|
47283
|
+
maxWidth: width
|
|
47284
|
+
}
|
|
47285
|
+
}, TimeGutterHeader && /*#__PURE__*/ React__default.createElement(TimeGutterHeader, null)), resources.map(function(_ref, idx) {
|
|
47286
|
+
var _ref2 = _slicedToArray(_ref, 2), id = _ref2[0], resource = _ref2[1];
|
|
47287
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
47288
|
+
className: "rbc-time-header-content",
|
|
47289
|
+
key: id || idx
|
|
47290
|
+
}, resource && /*#__PURE__*/ React__default.createElement("div", {
|
|
47291
|
+
className: "rbc-row rbc-row-resource",
|
|
47292
|
+
key: "resource_".concat(idx)
|
|
47293
|
+
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
47294
|
+
className: "rbc-header"
|
|
47295
|
+
}, /*#__PURE__*/ React__default.createElement(ResourceHeaderComponent, {
|
|
47296
|
+
index: idx,
|
|
47297
|
+
label: accessors.resourceTitle(resource),
|
|
47298
|
+
resource: resource
|
|
47299
|
+
}))), /*#__PURE__*/ React__default.createElement("div", {
|
|
47300
|
+
className: "rbc-row rbc-time-header-cell".concat(range.length <= 1 ? " rbc-time-header-cell-single-day" : "")
|
|
47301
|
+
}, _this3.renderHeaderCells(range)), /*#__PURE__*/ React__default.createElement(DateContentRow, {
|
|
47302
|
+
isAllDay: true,
|
|
47303
|
+
rtl: rtl,
|
|
47304
|
+
getNow: getNow,
|
|
47305
|
+
minRows: 2,
|
|
47306
|
+
maxRows: _this3.props.allDayMaxRows + 1,
|
|
47307
|
+
range: range,
|
|
47308
|
+
events: groupedEvents.get(id) || [],
|
|
47309
|
+
resourceId: resource && id,
|
|
47310
|
+
className: "rbc-allday-cell",
|
|
47311
|
+
selectable: selectable,
|
|
47312
|
+
selected: _this3.props.selected,
|
|
47313
|
+
components: components,
|
|
47314
|
+
accessors: accessors,
|
|
47315
|
+
getters: getters,
|
|
47316
|
+
localizer: localizer,
|
|
47317
|
+
onSelect: _this3.props.onSelectEvent,
|
|
47318
|
+
onShowMore: _this3.props.onShowMore,
|
|
47319
|
+
onDoubleClick: _this3.props.onDoubleClickEvent,
|
|
47320
|
+
onKeyDown: _this3.props.onKeyPressEvent,
|
|
47321
|
+
onSelectSlot: _this3.props.onSelectSlot,
|
|
47322
|
+
longPressThreshold: _this3.props.longPressThreshold,
|
|
47323
|
+
resizable: resizable
|
|
47324
|
+
}));
|
|
47325
|
+
}));
|
|
47326
|
+
}
|
|
47327
|
+
}
|
|
47328
|
+
]);
|
|
47329
|
+
}(React__default.Component);
|
|
47330
|
+
var TimeGridHeaderResources = /*#__PURE__*/ function(_React$Component) {
|
|
47331
|
+
function TimeGridHeaderResources() {
|
|
47332
|
+
var _this;
|
|
47333
|
+
_classCallCheck(this, TimeGridHeaderResources);
|
|
47334
|
+
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
47335
|
+
args[_key] = arguments[_key];
|
|
47336
|
+
}
|
|
47337
|
+
_this = _callSuper(this, TimeGridHeaderResources, [].concat(args));
|
|
47338
|
+
_this.handleHeaderClick = function(date, view, e) {
|
|
47339
|
+
e.preventDefault();
|
|
47340
|
+
notify(_this.props.onDrillDown, [
|
|
47341
|
+
date,
|
|
47342
|
+
view
|
|
47343
|
+
]);
|
|
47344
|
+
};
|
|
47345
|
+
return _this;
|
|
47346
|
+
}
|
|
47347
|
+
_inherits(TimeGridHeaderResources, _React$Component);
|
|
47348
|
+
return _createClass(TimeGridHeaderResources, [
|
|
47349
|
+
{
|
|
47350
|
+
key: "renderHeaderCells",
|
|
47351
|
+
value: function renderHeaderCells(range) {
|
|
47352
|
+
var _this2 = this;
|
|
47353
|
+
var _this$props = this.props, localizer = _this$props.localizer, getDrilldownView = _this$props.getDrilldownView, getNow = _this$props.getNow, dayProp = _this$props.getters.dayProp, _this$props$component = _this$props.components, _this$props$component2 = _this$props$component.header, HeaderComponent = _this$props$component2 === void 0 ? Header : _this$props$component2, _this$props$component3 = _this$props$component.resourceHeader, ResourceHeaderComponent = _this$props$component3 === void 0 ? ResourceHeader : _this$props$component3, resources = _this$props.resources, accessors = _this$props.accessors, events = _this$props.events, rtl = _this$props.rtl, selectable = _this$props.selectable, components = _this$props.components, getters = _this$props.getters, resizable = _this$props.resizable;
|
|
47354
|
+
var today = getNow();
|
|
47355
|
+
var groupedEvents = resources.groupEvents(events);
|
|
47356
|
+
return range.map(function(date, idx) {
|
|
47357
|
+
var drilldownView = getDrilldownView(date);
|
|
47358
|
+
var label = localizer.format(date, "dayFormat");
|
|
47359
|
+
var _dayProp = dayProp(date), className = _dayProp.className, style = _dayProp.style;
|
|
47360
|
+
var header = /*#__PURE__*/ React__default.createElement(HeaderComponent, {
|
|
47361
|
+
date: date,
|
|
47362
|
+
label: label,
|
|
47363
|
+
localizer: localizer
|
|
47364
|
+
});
|
|
47365
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
47366
|
+
key: idx,
|
|
47367
|
+
className: "rbc-time-header-content rbc-resource-grouping"
|
|
47368
|
+
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
47369
|
+
className: "rbc-row rbc-time-header-cell".concat(range.length <= 1 ? " rbc-time-header-cell-single-day" : "")
|
|
47370
|
+
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
47371
|
+
style: style,
|
|
47372
|
+
className: clsx$1("rbc-header", className, localizer.isSameDate(date, today) && "rbc-today")
|
|
47373
|
+
}, drilldownView ? /*#__PURE__*/ React__default.createElement("button", {
|
|
47374
|
+
type: "button",
|
|
47375
|
+
className: "rbc-button-link",
|
|
47376
|
+
onClick: function onClick(e) {
|
|
47377
|
+
return _this2.handleHeaderClick(date, drilldownView, e);
|
|
47378
|
+
}
|
|
47379
|
+
}, header) : /*#__PURE__*/ React__default.createElement("span", null, header))), /*#__PURE__*/ React__default.createElement("div", {
|
|
47380
|
+
className: "rbc-row"
|
|
47381
|
+
}, resources.map(function(_ref, idx) {
|
|
47382
|
+
var _ref2 = _slicedToArray(_ref, 2), id = _ref2[0], resource = _ref2[1];
|
|
47383
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
47384
|
+
key: "resource_".concat(id, "_").concat(idx),
|
|
47385
|
+
className: clsx$1("rbc-header", className, localizer.isSameDate(date, today) && "rbc-today")
|
|
47386
|
+
}, /*#__PURE__*/ React__default.createElement(ResourceHeaderComponent, {
|
|
47387
|
+
index: idx,
|
|
47388
|
+
label: accessors.resourceTitle(resource),
|
|
47389
|
+
resource: resource
|
|
47390
|
+
}));
|
|
47391
|
+
})), /*#__PURE__*/ React__default.createElement("div", {
|
|
47392
|
+
className: "rbc-row rbc-m-b-negative-3 rbc-h-full"
|
|
47393
|
+
}, resources.map(function(_ref3, idx) {
|
|
47394
|
+
var _ref4 = _slicedToArray(_ref3, 2), id = _ref4[0], resource = _ref4[1];
|
|
47395
|
+
// Filter the grouped events by the current date.
|
|
47396
|
+
var filteredEvents = (groupedEvents.get(id) || []).filter(function(event) {
|
|
47397
|
+
return localizer.isSameDate(event.start, date) || localizer.isSameDate(event.end, date);
|
|
47398
|
+
});
|
|
47399
|
+
return /*#__PURE__*/ React__default.createElement(DateContentRow, {
|
|
47400
|
+
key: "resource_".concat(id, "_").concat(idx),
|
|
47401
|
+
isAllDay: true,
|
|
47402
|
+
rtl: rtl,
|
|
47403
|
+
getNow: getNow,
|
|
47404
|
+
minRows: 2,
|
|
47405
|
+
maxRows: _this2.props.allDayMaxRows + 1,
|
|
47406
|
+
range: [
|
|
47407
|
+
date
|
|
47408
|
+
] // This ensures that only the single day is rendered
|
|
47409
|
+
,
|
|
47410
|
+
events: filteredEvents // Only show filtered events for this day.
|
|
47411
|
+
,
|
|
47412
|
+
resourceId: resource && id,
|
|
47413
|
+
className: "rbc-allday-cell",
|
|
47414
|
+
selectable: selectable,
|
|
47415
|
+
selected: _this2.props.selected,
|
|
47416
|
+
components: components,
|
|
47417
|
+
accessors: accessors,
|
|
47418
|
+
getters: getters,
|
|
47419
|
+
localizer: localizer,
|
|
47420
|
+
onSelect: _this2.props.onSelectEvent,
|
|
47421
|
+
onShowMore: _this2.props.onShowMore,
|
|
47422
|
+
onDoubleClick: _this2.props.onDoubleClickEvent,
|
|
47423
|
+
onKeyDown: _this2.props.onKeyPressEvent,
|
|
47424
|
+
onSelectSlot: _this2.props.onSelectSlot,
|
|
47425
|
+
longPressThreshold: _this2.props.longPressThreshold,
|
|
47426
|
+
resizable: resizable
|
|
47427
|
+
});
|
|
47428
|
+
})));
|
|
47429
|
+
});
|
|
47430
|
+
}
|
|
47431
|
+
},
|
|
47432
|
+
{
|
|
47433
|
+
key: "render",
|
|
47434
|
+
value: function render() {
|
|
47435
|
+
var _this$props2 = this.props, width = _this$props2.width, rtl = _this$props2.rtl, range = _this$props2.range, scrollRef = _this$props2.scrollRef, isOverflowing = _this$props2.isOverflowing, TimeGutterHeader = _this$props2.components.timeGutterHeader;
|
|
47436
|
+
var style = {};
|
|
47437
|
+
if (isOverflowing) {
|
|
47438
|
+
style[rtl ? "marginLeft" : "marginRight"] = "".concat(scrollbarSize() - 1, "px");
|
|
47439
|
+
}
|
|
47440
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
47441
|
+
style: style,
|
|
47442
|
+
ref: scrollRef,
|
|
47443
|
+
className: clsx$1("rbc-time-header", isOverflowing && "rbc-overflowing")
|
|
47444
|
+
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
47445
|
+
className: "rbc-label rbc-time-header-gutter",
|
|
47446
|
+
style: {
|
|
47447
|
+
width: width,
|
|
47448
|
+
minWidth: width,
|
|
47449
|
+
maxWidth: width
|
|
47450
|
+
}
|
|
47451
|
+
}, TimeGutterHeader && /*#__PURE__*/ React__default.createElement(TimeGutterHeader, null)), this.renderHeaderCells(range));
|
|
47452
|
+
}
|
|
47453
|
+
}
|
|
47454
|
+
]);
|
|
47455
|
+
}(React__default.Component);
|
|
47101
47456
|
/**
|
|
47102
47457
|
* Since the TimeGutter only displays the 'times' of slots in a day, and is separate
|
|
47103
47458
|
* from the Day Columns themselves, we check to see if the range contains an offset difference
|
|
@@ -47189,155 +47544,6 @@ var TimeGutter$1 = /*#__PURE__*/ React__default.forwardRef(function(props, ref)
|
|
|
47189
47544
|
gutterRef: ref
|
|
47190
47545
|
}, props));
|
|
47191
47546
|
});
|
|
47192
|
-
var ResourceHeader = function ResourceHeader(_ref) {
|
|
47193
|
-
var label = _ref.label;
|
|
47194
|
-
return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, label);
|
|
47195
|
-
};
|
|
47196
|
-
var TimeGridHeader = /*#__PURE__*/ function(_React$Component) {
|
|
47197
|
-
function TimeGridHeader() {
|
|
47198
|
-
var _this;
|
|
47199
|
-
_classCallCheck(this, TimeGridHeader);
|
|
47200
|
-
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
47201
|
-
args[_key] = arguments[_key];
|
|
47202
|
-
}
|
|
47203
|
-
_this = _callSuper(this, TimeGridHeader, [].concat(args));
|
|
47204
|
-
_this.handleHeaderClick = function(date, view, e) {
|
|
47205
|
-
e.preventDefault();
|
|
47206
|
-
notify(_this.props.onDrillDown, [
|
|
47207
|
-
date,
|
|
47208
|
-
view
|
|
47209
|
-
]);
|
|
47210
|
-
};
|
|
47211
|
-
_this.renderRow = function(resource) {
|
|
47212
|
-
var _this$props = _this.props, events = _this$props.events, rtl = _this$props.rtl, selectable = _this$props.selectable, getNow = _this$props.getNow, range = _this$props.range, getters = _this$props.getters, localizer = _this$props.localizer, accessors = _this$props.accessors, components = _this$props.components, resizable = _this$props.resizable;
|
|
47213
|
-
var resourceId = accessors.resourceId(resource);
|
|
47214
|
-
var eventsToDisplay = resource ? events.filter(function(event) {
|
|
47215
|
-
return accessors.resource(event) === resourceId;
|
|
47216
|
-
}) : events;
|
|
47217
|
-
return /*#__PURE__*/ React__default.createElement(DateContentRow, {
|
|
47218
|
-
isAllDay: true,
|
|
47219
|
-
rtl: rtl,
|
|
47220
|
-
getNow: getNow,
|
|
47221
|
-
minRows: 2,
|
|
47222
|
-
maxRows: _this.props.allDayMaxRows + 1,
|
|
47223
|
-
range: range,
|
|
47224
|
-
events: eventsToDisplay,
|
|
47225
|
-
resourceId: resourceId,
|
|
47226
|
-
className: "rbc-allday-cell",
|
|
47227
|
-
selectable: selectable,
|
|
47228
|
-
selected: _this.props.selected,
|
|
47229
|
-
components: components,
|
|
47230
|
-
accessors: accessors,
|
|
47231
|
-
getters: getters,
|
|
47232
|
-
localizer: localizer,
|
|
47233
|
-
onSelect: _this.props.onSelectEvent,
|
|
47234
|
-
onShowMore: _this.props.onShowMore,
|
|
47235
|
-
onDoubleClick: _this.props.onDoubleClickEvent,
|
|
47236
|
-
onKeyPress: _this.props.onKeyPressEvent,
|
|
47237
|
-
onSelectSlot: _this.props.onSelectSlot,
|
|
47238
|
-
longPressThreshold: _this.props.longPressThreshold,
|
|
47239
|
-
resizable: resizable
|
|
47240
|
-
});
|
|
47241
|
-
};
|
|
47242
|
-
return _this;
|
|
47243
|
-
}
|
|
47244
|
-
_inherits(TimeGridHeader, _React$Component);
|
|
47245
|
-
return _createClass(TimeGridHeader, [
|
|
47246
|
-
{
|
|
47247
|
-
key: "renderHeaderCells",
|
|
47248
|
-
value: function renderHeaderCells(range) {
|
|
47249
|
-
var _this2 = this;
|
|
47250
|
-
var _this$props2 = this.props, localizer = _this$props2.localizer, getDrilldownView = _this$props2.getDrilldownView, getNow = _this$props2.getNow, dayProp = _this$props2.getters.dayProp, _this$props2$componen = _this$props2.components.header, HeaderComponent = _this$props2$componen === void 0 ? Header : _this$props2$componen;
|
|
47251
|
-
var today = getNow();
|
|
47252
|
-
return range.map(function(date, i) {
|
|
47253
|
-
var drilldownView = getDrilldownView(date);
|
|
47254
|
-
var label = localizer.format(date, "dayFormat");
|
|
47255
|
-
var _dayProp = dayProp(date), className = _dayProp.className, style = _dayProp.style;
|
|
47256
|
-
var header = /*#__PURE__*/ React__default.createElement(HeaderComponent, {
|
|
47257
|
-
date: date,
|
|
47258
|
-
label: label,
|
|
47259
|
-
localizer: localizer
|
|
47260
|
-
});
|
|
47261
|
-
return /*#__PURE__*/ React__default.createElement("div", {
|
|
47262
|
-
key: i,
|
|
47263
|
-
style: style,
|
|
47264
|
-
className: clsx$1("rbc-header", className, localizer.isSameDate(date, today) && "rbc-today")
|
|
47265
|
-
}, drilldownView ? /*#__PURE__*/ React__default.createElement("button", {
|
|
47266
|
-
type: "button",
|
|
47267
|
-
className: "rbc-button-link",
|
|
47268
|
-
onClick: function onClick(e) {
|
|
47269
|
-
return _this2.handleHeaderClick(date, drilldownView, e);
|
|
47270
|
-
}
|
|
47271
|
-
}, header) : /*#__PURE__*/ React__default.createElement("span", null, header));
|
|
47272
|
-
});
|
|
47273
|
-
}
|
|
47274
|
-
},
|
|
47275
|
-
{
|
|
47276
|
-
key: "render",
|
|
47277
|
-
value: function render() {
|
|
47278
|
-
var _this3 = this;
|
|
47279
|
-
var _this$props3 = this.props, width = _this$props3.width, rtl = _this$props3.rtl, resources = _this$props3.resources, range = _this$props3.range, events = _this$props3.events, getNow = _this$props3.getNow, accessors = _this$props3.accessors, selectable = _this$props3.selectable, components = _this$props3.components, getters = _this$props3.getters, scrollRef = _this$props3.scrollRef, localizer = _this$props3.localizer, isOverflowing = _this$props3.isOverflowing, _this$props3$componen = _this$props3.components, TimeGutterHeader = _this$props3$componen.timeGutterHeader, _this$props3$componen2 = _this$props3$componen.resourceHeader, ResourceHeaderComponent = _this$props3$componen2 === void 0 ? ResourceHeader : _this$props3$componen2, resizable = _this$props3.resizable;
|
|
47280
|
-
var style = {};
|
|
47281
|
-
if (isOverflowing) {
|
|
47282
|
-
style[rtl ? "marginLeft" : "marginRight"] = "".concat(scrollbarSize() - 1, "px");
|
|
47283
|
-
}
|
|
47284
|
-
var groupedEvents = resources.groupEvents(events);
|
|
47285
|
-
return /*#__PURE__*/ React__default.createElement("div", {
|
|
47286
|
-
style: style,
|
|
47287
|
-
ref: scrollRef,
|
|
47288
|
-
className: clsx$1("rbc-time-header", isOverflowing && "rbc-overflowing")
|
|
47289
|
-
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
47290
|
-
className: "rbc-label rbc-time-header-gutter",
|
|
47291
|
-
style: {
|
|
47292
|
-
width: width,
|
|
47293
|
-
minWidth: width,
|
|
47294
|
-
maxWidth: width
|
|
47295
|
-
}
|
|
47296
|
-
}, TimeGutterHeader && /*#__PURE__*/ React__default.createElement(TimeGutterHeader, null)), resources.map(function(_ref, idx) {
|
|
47297
|
-
var _ref2 = _slicedToArray(_ref, 2), id = _ref2[0], resource = _ref2[1];
|
|
47298
|
-
return /*#__PURE__*/ React__default.createElement("div", {
|
|
47299
|
-
className: "rbc-time-header-content",
|
|
47300
|
-
key: id || idx
|
|
47301
|
-
}, resource && /*#__PURE__*/ React__default.createElement("div", {
|
|
47302
|
-
className: "rbc-row rbc-row-resource",
|
|
47303
|
-
key: "resource_".concat(idx)
|
|
47304
|
-
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
47305
|
-
className: "rbc-header"
|
|
47306
|
-
}, /*#__PURE__*/ React__default.createElement(ResourceHeaderComponent, {
|
|
47307
|
-
index: idx,
|
|
47308
|
-
label: accessors.resourceTitle(resource),
|
|
47309
|
-
resource: resource
|
|
47310
|
-
}))), /*#__PURE__*/ React__default.createElement("div", {
|
|
47311
|
-
className: "rbc-row rbc-time-header-cell".concat(range.length <= 1 ? " rbc-time-header-cell-single-day" : "")
|
|
47312
|
-
}, _this3.renderHeaderCells(range)), /*#__PURE__*/ React__default.createElement(DateContentRow, {
|
|
47313
|
-
isAllDay: true,
|
|
47314
|
-
rtl: rtl,
|
|
47315
|
-
getNow: getNow,
|
|
47316
|
-
minRows: 2,
|
|
47317
|
-
maxRows: _this3.props.allDayMaxRows + 1,
|
|
47318
|
-
range: range,
|
|
47319
|
-
events: groupedEvents.get(id) || [],
|
|
47320
|
-
resourceId: resource && id,
|
|
47321
|
-
className: "rbc-allday-cell",
|
|
47322
|
-
selectable: selectable,
|
|
47323
|
-
selected: _this3.props.selected,
|
|
47324
|
-
components: components,
|
|
47325
|
-
accessors: accessors,
|
|
47326
|
-
getters: getters,
|
|
47327
|
-
localizer: localizer,
|
|
47328
|
-
onSelect: _this3.props.onSelectEvent,
|
|
47329
|
-
onShowMore: _this3.props.onShowMore,
|
|
47330
|
-
onDoubleClick: _this3.props.onDoubleClickEvent,
|
|
47331
|
-
onKeyDown: _this3.props.onKeyPressEvent,
|
|
47332
|
-
onSelectSlot: _this3.props.onSelectSlot,
|
|
47333
|
-
longPressThreshold: _this3.props.longPressThreshold,
|
|
47334
|
-
resizable: resizable
|
|
47335
|
-
}));
|
|
47336
|
-
}));
|
|
47337
|
-
}
|
|
47338
|
-
}
|
|
47339
|
-
]);
|
|
47340
|
-
}(React__default.Component);
|
|
47341
47547
|
var NONE = {};
|
|
47342
47548
|
function Resources(resources, accessors) {
|
|
47343
47549
|
return {
|
|
@@ -47527,45 +47733,86 @@ var TimeGrid = /*#__PURE__*/ function(_Component) {
|
|
|
47527
47733
|
this.applyScroll();
|
|
47528
47734
|
}
|
|
47529
47735
|
},
|
|
47736
|
+
{
|
|
47737
|
+
key: "renderDayColumn",
|
|
47738
|
+
value: function renderDayColumn(date, id, resource, groupedEvents, groupedBackgroundEvents, localizer, accessors, components, dayLayoutAlgorithm, now) {
|
|
47739
|
+
var _this$props2 = this.props, min = _this$props2.min, max = _this$props2.max;
|
|
47740
|
+
var daysEvents = (groupedEvents.get(id) || []).filter(function(event) {
|
|
47741
|
+
return localizer.inRange(date, accessors.start(event), accessors.end(event), "day");
|
|
47742
|
+
});
|
|
47743
|
+
var daysBackgroundEvents = (groupedBackgroundEvents.get(id) || []).filter(function(event) {
|
|
47744
|
+
return localizer.inRange(date, accessors.start(event), accessors.end(event), "day");
|
|
47745
|
+
});
|
|
47746
|
+
return /*#__PURE__*/ React__default.createElement(DayColumn, Object.assign({}, this.props, {
|
|
47747
|
+
localizer: localizer,
|
|
47748
|
+
min: localizer.merge(date, min),
|
|
47749
|
+
max: localizer.merge(date, max),
|
|
47750
|
+
resource: resource && id,
|
|
47751
|
+
components: components,
|
|
47752
|
+
isNow: localizer.isSameDate(date, now),
|
|
47753
|
+
key: "".concat(id, "-").concat(date),
|
|
47754
|
+
date: date,
|
|
47755
|
+
events: daysEvents,
|
|
47756
|
+
backgroundEvents: daysBackgroundEvents,
|
|
47757
|
+
dayLayoutAlgorithm: dayLayoutAlgorithm
|
|
47758
|
+
}));
|
|
47759
|
+
}
|
|
47760
|
+
},
|
|
47761
|
+
{
|
|
47762
|
+
key: "renderResourcesFirst",
|
|
47763
|
+
value: function renderResourcesFirst(range, resources, groupedEvents, groupedBackgroundEvents, localizer, accessors, now, components, dayLayoutAlgorithm) {
|
|
47764
|
+
var _this2 = this;
|
|
47765
|
+
return resources.map(function(_ref) {
|
|
47766
|
+
var _ref2 = _slicedToArray(_ref, 2), id = _ref2[0], resource = _ref2[1];
|
|
47767
|
+
return range.map(function(date) {
|
|
47768
|
+
return _this2.renderDayColumn(date, id, resource, groupedEvents, groupedBackgroundEvents, localizer, accessors, components, dayLayoutAlgorithm, now);
|
|
47769
|
+
});
|
|
47770
|
+
});
|
|
47771
|
+
}
|
|
47772
|
+
},
|
|
47773
|
+
{
|
|
47774
|
+
key: "renderRangeFirst",
|
|
47775
|
+
value: function renderRangeFirst(range, resources, groupedEvents, groupedBackgroundEvents, localizer, accessors, now, components, dayLayoutAlgorithm) {
|
|
47776
|
+
var _this3 = this;
|
|
47777
|
+
return range.map(function(date) {
|
|
47778
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
47779
|
+
style: {
|
|
47780
|
+
display: "flex",
|
|
47781
|
+
minHeight: "100%",
|
|
47782
|
+
flex: 1
|
|
47783
|
+
},
|
|
47784
|
+
key: date
|
|
47785
|
+
}, resources.map(function(_ref3) {
|
|
47786
|
+
var _ref4 = _slicedToArray(_ref3, 2), id = _ref4[0], resource = _ref4[1];
|
|
47787
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
47788
|
+
style: {
|
|
47789
|
+
flex: 1
|
|
47790
|
+
},
|
|
47791
|
+
key: accessors.resourceId(resource)
|
|
47792
|
+
}, _this3.renderDayColumn(date, id, resource, groupedEvents, groupedBackgroundEvents, localizer, accessors, components, dayLayoutAlgorithm, now));
|
|
47793
|
+
}));
|
|
47794
|
+
});
|
|
47795
|
+
}
|
|
47796
|
+
},
|
|
47530
47797
|
{
|
|
47531
47798
|
key: "renderEvents",
|
|
47532
47799
|
value: function renderEvents(range, events, backgroundEvents, now) {
|
|
47533
|
-
var
|
|
47534
|
-
var _this$props2 = this.props, min = _this$props2.min, max = _this$props2.max, components = _this$props2.components, accessors = _this$props2.accessors, localizer = _this$props2.localizer, dayLayoutAlgorithm = _this$props2.dayLayoutAlgorithm;
|
|
47800
|
+
var _this$props3 = this.props, accessors = _this$props3.accessors, localizer = _this$props3.localizer, resourceGroupingLayout = _this$props3.resourceGroupingLayout, components = _this$props3.components, dayLayoutAlgorithm = _this$props3.dayLayoutAlgorithm;
|
|
47535
47801
|
var resources = this.memoizedResources(this.props.resources, accessors);
|
|
47536
47802
|
var groupedEvents = resources.groupEvents(events);
|
|
47537
47803
|
var groupedBackgroundEvents = resources.groupEvents(backgroundEvents);
|
|
47538
|
-
|
|
47539
|
-
|
|
47540
|
-
|
|
47541
|
-
|
|
47542
|
-
|
|
47543
|
-
});
|
|
47544
|
-
var daysBackgroundEvents = (groupedBackgroundEvents.get(id) || []).filter(function(event) {
|
|
47545
|
-
return localizer.inRange(date, accessors.start(event), accessors.end(event), "day");
|
|
47546
|
-
});
|
|
47547
|
-
return /*#__PURE__*/ React__default.createElement(DayColumn, Object.assign({}, _this2.props, {
|
|
47548
|
-
localizer: localizer,
|
|
47549
|
-
min: localizer.merge(date, min),
|
|
47550
|
-
max: localizer.merge(date, max),
|
|
47551
|
-
resource: resource && id,
|
|
47552
|
-
components: components,
|
|
47553
|
-
isNow: localizer.isSameDate(date, now),
|
|
47554
|
-
key: i + "-" + jj,
|
|
47555
|
-
date: date,
|
|
47556
|
-
events: daysEvents,
|
|
47557
|
-
backgroundEvents: daysBackgroundEvents,
|
|
47558
|
-
dayLayoutAlgorithm: dayLayoutAlgorithm
|
|
47559
|
-
}));
|
|
47560
|
-
});
|
|
47561
|
-
});
|
|
47804
|
+
if (!resourceGroupingLayout) {
|
|
47805
|
+
return this.renderResourcesFirst(range, resources, groupedEvents, groupedBackgroundEvents, localizer, accessors, now, components, dayLayoutAlgorithm);
|
|
47806
|
+
} else {
|
|
47807
|
+
return this.renderRangeFirst(range, resources, groupedEvents, groupedBackgroundEvents, localizer, accessors, now, components, dayLayoutAlgorithm);
|
|
47808
|
+
}
|
|
47562
47809
|
}
|
|
47563
47810
|
},
|
|
47564
47811
|
{
|
|
47565
47812
|
key: "render",
|
|
47566
47813
|
value: function render() {
|
|
47567
47814
|
var _this$props$allDayMax;
|
|
47568
|
-
var _this$
|
|
47815
|
+
var _this$props4 = this.props, events = _this$props4.events, backgroundEvents = _this$props4.backgroundEvents, range = _this$props4.range, width = _this$props4.width, rtl = _this$props4.rtl, selected = _this$props4.selected, getNow = _this$props4.getNow, resources = _this$props4.resources, components = _this$props4.components, accessors = _this$props4.accessors, getters = _this$props4.getters, localizer = _this$props4.localizer, min = _this$props4.min, max = _this$props4.max, showMultiDayTimes = _this$props4.showMultiDayTimes, longPressThreshold = _this$props4.longPressThreshold, resizable = _this$props4.resizable, resourceGroupingLayout = _this$props4.resourceGroupingLayout;
|
|
47569
47816
|
width = width || this.state.gutterWidth;
|
|
47570
47817
|
var start = range[0], end = range[range.length - 1];
|
|
47571
47818
|
this.slots = range.length;
|
|
@@ -47588,10 +47835,7 @@ var TimeGrid = /*#__PURE__*/ function(_Component) {
|
|
|
47588
47835
|
allDayEvents.sort(function(a, b) {
|
|
47589
47836
|
return sortEvents$2(a, b, accessors, localizer);
|
|
47590
47837
|
});
|
|
47591
|
-
|
|
47592
|
-
className: clsx$1("rbc-time-view", resources && "rbc-time-view-resources"),
|
|
47593
|
-
ref: this.containerRef
|
|
47594
|
-
}, /*#__PURE__*/ React__default.createElement(TimeGridHeader, {
|
|
47838
|
+
var headerProps = {
|
|
47595
47839
|
range: range,
|
|
47596
47840
|
events: allDayEvents,
|
|
47597
47841
|
width: width,
|
|
@@ -47616,7 +47860,11 @@ var TimeGrid = /*#__PURE__*/ function(_Component) {
|
|
|
47616
47860
|
onDrillDown: this.props.onDrillDown,
|
|
47617
47861
|
getDrilldownView: this.props.getDrilldownView,
|
|
47618
47862
|
resizable: resizable
|
|
47619
|
-
}
|
|
47863
|
+
};
|
|
47864
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
47865
|
+
className: clsx$1("rbc-time-view", resources && "rbc-time-view-resources"),
|
|
47866
|
+
ref: this.containerRef
|
|
47867
|
+
}, resources && resources.length > 1 && resourceGroupingLayout ? /*#__PURE__*/ React__default.createElement(TimeGridHeaderResources, headerProps) : /*#__PURE__*/ React__default.createElement(TimeGridHeader, headerProps), this.props.popup && this.renderOverlay(), /*#__PURE__*/ React__default.createElement("div", {
|
|
47620
47868
|
ref: this.contentRef,
|
|
47621
47869
|
className: "rbc-time-content",
|
|
47622
47870
|
onScroll: this.handleScroll
|
|
@@ -47638,11 +47886,11 @@ var TimeGrid = /*#__PURE__*/ function(_Component) {
|
|
|
47638
47886
|
{
|
|
47639
47887
|
key: "renderOverlay",
|
|
47640
47888
|
value: function renderOverlay() {
|
|
47641
|
-
var _this$state$overlay, _this$state,
|
|
47889
|
+
var _this$state$overlay, _this$state, _this4 = this;
|
|
47642
47890
|
var overlay = (_this$state$overlay = (_this$state = this.state) === null || _this$state === void 0 ? void 0 : _this$state.overlay) !== null && _this$state$overlay !== void 0 ? _this$state$overlay : {};
|
|
47643
|
-
var _this$
|
|
47891
|
+
var _this$props5 = this.props, accessors = _this$props5.accessors, localizer = _this$props5.localizer, components = _this$props5.components, getters = _this$props5.getters, selected = _this$props5.selected, popupOffset = _this$props5.popupOffset, handleDragStart = _this$props5.handleDragStart;
|
|
47644
47892
|
var onHide = function onHide() {
|
|
47645
|
-
return
|
|
47893
|
+
return _this4.setState({
|
|
47646
47894
|
overlay: null
|
|
47647
47895
|
});
|
|
47648
47896
|
};
|
|
@@ -47675,15 +47923,15 @@ var TimeGrid = /*#__PURE__*/ function(_Component) {
|
|
|
47675
47923
|
{
|
|
47676
47924
|
key: "measureGutter",
|
|
47677
47925
|
value: function measureGutter() {
|
|
47678
|
-
var
|
|
47926
|
+
var _this5 = this;
|
|
47679
47927
|
if (this.measureGutterAnimationFrameRequest) {
|
|
47680
47928
|
window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest);
|
|
47681
47929
|
}
|
|
47682
47930
|
this.measureGutterAnimationFrameRequest = window.requestAnimationFrame(function() {
|
|
47683
|
-
var
|
|
47684
|
-
var width = (
|
|
47685
|
-
if (width &&
|
|
47686
|
-
|
|
47931
|
+
var _this5$gutterRef;
|
|
47932
|
+
var width = (_this5$gutterRef = _this5.gutterRef) !== null && _this5$gutterRef !== void 0 && _this5$gutterRef.current ? getWidth(_this5.gutterRef.current) : undefined;
|
|
47933
|
+
if (width && _this5.state.gutterWidth !== width) {
|
|
47934
|
+
_this5.setState({
|
|
47687
47935
|
gutterWidth: width
|
|
47688
47936
|
});
|
|
47689
47937
|
}
|
|
@@ -47716,7 +47964,9 @@ var TimeGrid = /*#__PURE__*/ function(_Component) {
|
|
|
47716
47964
|
}(Component);
|
|
47717
47965
|
TimeGrid.defaultProps = {
|
|
47718
47966
|
step: 30,
|
|
47719
|
-
timeslots: 2
|
|
47967
|
+
timeslots: 2,
|
|
47968
|
+
// To be compatible with old versions, default as `false`.
|
|
47969
|
+
resourceGroupingLayout: false
|
|
47720
47970
|
};
|
|
47721
47971
|
var _excluded$4 = [
|
|
47722
47972
|
"date",
|
|
@@ -48085,70 +48335,6 @@ function moveDate(View, _ref) {
|
|
|
48085
48335
|
}
|
|
48086
48336
|
return date;
|
|
48087
48337
|
}
|
|
48088
|
-
var Toolbar = /*#__PURE__*/ function(_React$Component) {
|
|
48089
|
-
function Toolbar() {
|
|
48090
|
-
var _this;
|
|
48091
|
-
_classCallCheck(this, Toolbar);
|
|
48092
|
-
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
48093
|
-
args[_key] = arguments[_key];
|
|
48094
|
-
}
|
|
48095
|
-
_this = _callSuper(this, Toolbar, [].concat(args));
|
|
48096
|
-
_this.navigate = function(action) {
|
|
48097
|
-
_this.props.onNavigate(action);
|
|
48098
|
-
};
|
|
48099
|
-
_this.view = function(view) {
|
|
48100
|
-
_this.props.onView(view);
|
|
48101
|
-
};
|
|
48102
|
-
return _this;
|
|
48103
|
-
}
|
|
48104
|
-
_inherits(Toolbar, _React$Component);
|
|
48105
|
-
return _createClass(Toolbar, [
|
|
48106
|
-
{
|
|
48107
|
-
key: "render",
|
|
48108
|
-
value: function render() {
|
|
48109
|
-
var _this$props = this.props, messages = _this$props.localizer.messages, label = _this$props.label;
|
|
48110
|
-
return /*#__PURE__*/ React__default.createElement("div", {
|
|
48111
|
-
className: "rbc-toolbar"
|
|
48112
|
-
}, /*#__PURE__*/ React__default.createElement("span", {
|
|
48113
|
-
className: "rbc-btn-group"
|
|
48114
|
-
}, /*#__PURE__*/ React__default.createElement("button", {
|
|
48115
|
-
type: "button",
|
|
48116
|
-
onClick: this.navigate.bind(null, navigate.TODAY)
|
|
48117
|
-
}, messages.today), /*#__PURE__*/ React__default.createElement("button", {
|
|
48118
|
-
type: "button",
|
|
48119
|
-
onClick: this.navigate.bind(null, navigate.PREVIOUS)
|
|
48120
|
-
}, messages.previous), /*#__PURE__*/ React__default.createElement("button", {
|
|
48121
|
-
type: "button",
|
|
48122
|
-
onClick: this.navigate.bind(null, navigate.NEXT)
|
|
48123
|
-
}, messages.next)), /*#__PURE__*/ React__default.createElement("span", {
|
|
48124
|
-
className: "rbc-toolbar-label"
|
|
48125
|
-
}, label), /*#__PURE__*/ React__default.createElement("span", {
|
|
48126
|
-
className: "rbc-btn-group"
|
|
48127
|
-
}, this.viewNamesGroup(messages)));
|
|
48128
|
-
}
|
|
48129
|
-
},
|
|
48130
|
-
{
|
|
48131
|
-
key: "viewNamesGroup",
|
|
48132
|
-
value: function viewNamesGroup(messages) {
|
|
48133
|
-
var _this2 = this;
|
|
48134
|
-
var viewNames = this.props.views;
|
|
48135
|
-
var view = this.props.view;
|
|
48136
|
-
if (viewNames.length > 1) {
|
|
48137
|
-
return viewNames.map(function(name) {
|
|
48138
|
-
return /*#__PURE__*/ React__default.createElement("button", {
|
|
48139
|
-
type: "button",
|
|
48140
|
-
key: name,
|
|
48141
|
-
className: clsx$1({
|
|
48142
|
-
"rbc-active": view === name
|
|
48143
|
-
}),
|
|
48144
|
-
onClick: _this2.view.bind(null, name)
|
|
48145
|
-
}, messages[name]);
|
|
48146
|
-
});
|
|
48147
|
-
}
|
|
48148
|
-
}
|
|
48149
|
-
}
|
|
48150
|
-
]);
|
|
48151
|
-
}(React__default.Component);
|
|
48152
48338
|
/**
|
|
48153
48339
|
* Retrieve via an accessor-like property
|
|
48154
48340
|
*
|
|
@@ -48176,6 +48362,7 @@ var _excluded$8 = [
|
|
|
48176
48362
|
"toolbar",
|
|
48177
48363
|
"events",
|
|
48178
48364
|
"backgroundEvents",
|
|
48365
|
+
"resourceGroupingLayout",
|
|
48179
48366
|
"style",
|
|
48180
48367
|
"className",
|
|
48181
48368
|
"elementProps",
|
|
@@ -48323,7 +48510,7 @@ var Calendar = /*#__PURE__*/ function(_React$Component) {
|
|
|
48323
48510
|
{
|
|
48324
48511
|
key: "render",
|
|
48325
48512
|
value: function render() {
|
|
48326
|
-
var _this$props4 = this.props, view = _this$props4.view, toolbar = _this$props4.toolbar, events = _this$props4.events, backgroundEvents = _this$props4.backgroundEvents, style = _this$props4.style, className = _this$props4.className, elementProps = _this$props4.elementProps, current = _this$props4.date, getNow = _this$props4.getNow, length = _this$props4.length, showMultiDayTimes = _this$props4.showMultiDayTimes, onShowMore = _this$props4.onShowMore, doShowMoreDrillDown = _this$props4.doShowMoreDrillDown;
|
|
48513
|
+
var _this$props4 = this.props, view = _this$props4.view, toolbar = _this$props4.toolbar, events = _this$props4.events, backgroundEvents = _this$props4.backgroundEvents, resourceGroupingLayout = _this$props4.resourceGroupingLayout, style = _this$props4.style, className = _this$props4.className, elementProps = _this$props4.elementProps, current = _this$props4.date, getNow = _this$props4.getNow, length = _this$props4.length, showMultiDayTimes = _this$props4.showMultiDayTimes, onShowMore = _this$props4.onShowMore, doShowMoreDrillDown = _this$props4.doShowMoreDrillDown;
|
|
48327
48514
|
_this$props4.components;
|
|
48328
48515
|
_this$props4.formats;
|
|
48329
48516
|
_this$props4.messages;
|
|
@@ -48367,7 +48554,8 @@ var Calendar = /*#__PURE__*/ function(_React$Component) {
|
|
|
48367
48554
|
onKeyPressEvent: this.handleKeyPressEvent,
|
|
48368
48555
|
onSelectSlot: this.handleSelectSlot,
|
|
48369
48556
|
onShowMore: onShowMore,
|
|
48370
|
-
doShowMoreDrillDown: doShowMoreDrillDown
|
|
48557
|
+
doShowMoreDrillDown: doShowMoreDrillDown,
|
|
48558
|
+
resourceGroupingLayout: resourceGroupingLayout
|
|
48371
48559
|
})));
|
|
48372
48560
|
}
|
|
48373
48561
|
}
|
|
@@ -48383,7 +48571,7 @@ var Calendar = /*#__PURE__*/ function(_React$Component) {
|
|
|
48383
48571
|
{
|
|
48384
48572
|
key: "getContext",
|
|
48385
48573
|
value: function getContext(_ref2) {
|
|
48386
|
-
var startAccessor = _ref2.startAccessor, endAccessor = _ref2.endAccessor, allDayAccessor = _ref2.allDayAccessor, tooltipAccessor = _ref2.tooltipAccessor, titleAccessor = _ref2.titleAccessor, resourceAccessor = _ref2.resourceAccessor, resourceIdAccessor = _ref2.resourceIdAccessor, resourceTitleAccessor = _ref2.resourceTitleAccessor, eventPropGetter = _ref2.eventPropGetter, backgroundEventPropGetter = _ref2.backgroundEventPropGetter, slotPropGetter = _ref2.slotPropGetter, slotGroupPropGetter = _ref2.slotGroupPropGetter, dayPropGetter = _ref2.dayPropGetter, view = _ref2.view, views = _ref2.views, localizer = _ref2.localizer, culture = _ref2.culture, _ref2$messages = _ref2.messages, messages$1 = _ref2$messages === void 0 ? {} : _ref2$messages, _ref2$components = _ref2.components, components = _ref2$components === void 0 ? {} : _ref2$components, _ref2$formats = _ref2.formats, formats = _ref2$formats === void 0 ? {} : _ref2$formats;
|
|
48574
|
+
var startAccessor = _ref2.startAccessor, endAccessor = _ref2.endAccessor, allDayAccessor = _ref2.allDayAccessor, tooltipAccessor = _ref2.tooltipAccessor, titleAccessor = _ref2.titleAccessor, resourceAccessor = _ref2.resourceAccessor, resourceIdAccessor = _ref2.resourceIdAccessor, resourceTitleAccessor = _ref2.resourceTitleAccessor, eventIdAccessor = _ref2.eventIdAccessor, eventPropGetter = _ref2.eventPropGetter, backgroundEventPropGetter = _ref2.backgroundEventPropGetter, slotPropGetter = _ref2.slotPropGetter, slotGroupPropGetter = _ref2.slotGroupPropGetter, dayPropGetter = _ref2.dayPropGetter, view = _ref2.view, views = _ref2.views, localizer = _ref2.localizer, culture = _ref2.culture, _ref2$messages = _ref2.messages, messages$1 = _ref2$messages === void 0 ? {} : _ref2$messages, _ref2$components = _ref2.components, components = _ref2$components === void 0 ? {} : _ref2$components, _ref2$formats = _ref2.formats, formats = _ref2$formats === void 0 ? {} : _ref2$formats;
|
|
48387
48575
|
var names = viewNames$2(views);
|
|
48388
48576
|
var msgs = messages(messages$1);
|
|
48389
48577
|
return {
|
|
@@ -48423,7 +48611,8 @@ var Calendar = /*#__PURE__*/ function(_React$Component) {
|
|
|
48423
48611
|
title: wrapAccessor(titleAccessor),
|
|
48424
48612
|
resource: wrapAccessor(resourceAccessor),
|
|
48425
48613
|
resourceId: wrapAccessor(resourceIdAccessor),
|
|
48426
|
-
resourceTitle: wrapAccessor(resourceTitleAccessor)
|
|
48614
|
+
resourceTitle: wrapAccessor(resourceTitleAccessor),
|
|
48615
|
+
eventId: wrapAccessor(eventIdAccessor)
|
|
48427
48616
|
}
|
|
48428
48617
|
};
|
|
48429
48618
|
}
|
|
@@ -48456,6 +48645,7 @@ Calendar.defaultProps = {
|
|
|
48456
48645
|
resourceAccessor: "resourceId",
|
|
48457
48646
|
resourceIdAccessor: "id",
|
|
48458
48647
|
resourceTitleAccessor: "title",
|
|
48648
|
+
eventIdAccessor: "id",
|
|
48459
48649
|
longPressThreshold: 250,
|
|
48460
48650
|
getNow: function getNow() {
|
|
48461
48651
|
return new Date();
|
|
@@ -53523,7 +53713,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
53523
53713
|
if (null == r) return {};
|
|
53524
53714
|
var t = {};
|
|
53525
53715
|
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
53526
|
-
if (e.
|
|
53716
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
53527
53717
|
t[n] = r[n];
|
|
53528
53718
|
}
|
|
53529
53719
|
return t;
|
|
@@ -53537,8 +53727,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
53537
53727
|
if (null == e) return {};
|
|
53538
53728
|
var o, r, i = objectWithoutPropertiesLoose$1(e, t);
|
|
53539
53729
|
if (Object.getOwnPropertySymbols) {
|
|
53540
|
-
var
|
|
53541
|
-
for(r = 0; r <
|
|
53730
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
53731
|
+
for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
53542
53732
|
}
|
|
53543
53733
|
return i;
|
|
53544
53734
|
}
|
|
@@ -55123,9 +55313,10 @@ var EventContainerWrapper = /*#__PURE__*/ function(_React$Component) {
|
|
|
55123
55313
|
y: point.y,
|
|
55124
55314
|
x: point.x
|
|
55125
55315
|
}, boundaryBox);
|
|
55316
|
+
var end = _this._calculateDnDEnd(start);
|
|
55126
55317
|
_this.context.draggable.onDropFromOutside({
|
|
55127
55318
|
start: start,
|
|
55128
|
-
end:
|
|
55319
|
+
end: end,
|
|
55129
55320
|
allDay: false,
|
|
55130
55321
|
resource: resource
|
|
55131
55322
|
});
|
|
@@ -55136,10 +55327,22 @@ var EventContainerWrapper = /*#__PURE__*/ function(_React$Component) {
|
|
|
55136
55327
|
y: point.y,
|
|
55137
55328
|
x: point.x
|
|
55138
55329
|
}, bounds);
|
|
55139
|
-
var end =
|
|
55330
|
+
var end = _this._calculateDnDEnd(start);
|
|
55140
55331
|
var event = _this.context.draggable.dragFromOutsideItem();
|
|
55141
55332
|
_this.update(event, slotMetrics.getRange(start, end, false, true));
|
|
55142
55333
|
};
|
|
55334
|
+
_this._calculateDnDEnd = function(start) {
|
|
55335
|
+
var _this$props3 = _this.props, accessors = _this$props3.accessors, slotMetrics = _this$props3.slotMetrics, localizer = _this$props3.localizer;
|
|
55336
|
+
var event = _this.context.draggable.dragFromOutsideItem();
|
|
55337
|
+
var _eventTimes2 = (0, _common$2.eventTimes)(event, accessors, localizer), eventDuration = _eventTimes2.duration;
|
|
55338
|
+
var end = slotMetrics.nextSlot(start);
|
|
55339
|
+
var eventHasDuration = !isNaN(eventDuration);
|
|
55340
|
+
if (eventHasDuration) {
|
|
55341
|
+
var eventEndSlot = localizer.add(start, eventDuration, "milliseconds");
|
|
55342
|
+
end = new Date(Math.max(eventEndSlot, end));
|
|
55343
|
+
}
|
|
55344
|
+
return end;
|
|
55345
|
+
};
|
|
55143
55346
|
_this.updateParentScroll = function(parent, node) {
|
|
55144
55347
|
setTimeout(function() {
|
|
55145
55348
|
var draggedEl = (0, _querySelectorAll.default)(node, ".rbc-addons-dnd-drag-preview")[0];
|
|
@@ -55290,10 +55493,10 @@ var EventContainerWrapper = /*#__PURE__*/ function(_React$Component) {
|
|
|
55290
55493
|
{
|
|
55291
55494
|
key: "handleResize",
|
|
55292
55495
|
value: function handleResize(point, bounds) {
|
|
55293
|
-
var _this$
|
|
55496
|
+
var _this$props4 = this.props, accessors = _this$props4.accessors, slotMetrics = _this$props4.slotMetrics, localizer = _this$props4.localizer;
|
|
55294
55497
|
var _this$context$draggab = this.context.draggable.dragAndDropAction, event = _this$context$draggab.event, direction = _this$context$draggab.direction;
|
|
55295
55498
|
var newTime = slotMetrics.closestSlotFromPoint(point, bounds);
|
|
55296
|
-
var
|
|
55499
|
+
var _eventTimes3 = (0, _common$2.eventTimes)(event, accessors, localizer), start = _eventTimes3.start, end = _eventTimes3.end;
|
|
55297
55500
|
var newRange;
|
|
55298
55501
|
if (direction === "UP") {
|
|
55299
55502
|
var newStart = localizer.min(newTime, slotMetrics.closestSlotFromDate(end, -1));
|
|
@@ -55318,7 +55521,7 @@ var EventContainerWrapper = /*#__PURE__*/ function(_React$Component) {
|
|
|
55318
55521
|
{
|
|
55319
55522
|
key: "renderContent",
|
|
55320
55523
|
value: function renderContent() {
|
|
55321
|
-
var _this$
|
|
55524
|
+
var _this$props5 = this.props, children = _this$props5.children, accessors = _this$props5.accessors, components = _this$props5.components, getters = _this$props5.getters, slotMetrics = _this$props5.slotMetrics, localizer = _this$props5.localizer;
|
|
55322
55525
|
var _this$state = this.state, event = _this$state.event, top = _this$state.top, height = _this$state.height;
|
|
55323
55526
|
if (!event) return children;
|
|
55324
55527
|
var events = children.props.children;
|
|
@@ -57431,7 +57634,7 @@ function _instanceof(left, right) {
|
|
|
57431
57634
|
return left instanceof right;
|
|
57432
57635
|
}
|
|
57433
57636
|
}
|
|
57434
|
-
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", m = "active", y = "data-styled-version", v = "6.1.
|
|
57637
|
+
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", m = "active", y = "data-styled-version", v = "6.1.15", g = "/*!sc*/\n", S = "undefined" != typeof window && "HTMLElement" in window, w = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV), E = /invalid hook call/i, N = new Set, P = function P(t, n) {
|
|
57435
57638
|
if ("production" !== process.env.NODE_ENV) {
|
|
57436
57639
|
var _$r = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t).concat(_$r, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.", i = console.error;
|
|
57437
57640
|
try {
|
|
@@ -58080,7 +58283,7 @@ function it(e, o, s) {
|
|
|
58080
58283
|
}(a, g);
|
|
58081
58284
|
"production" !== process.env.NODE_ENV && e.warnTooManyClasses && e.warnTooManyClasses(E);
|
|
58082
58285
|
var N = ie(p, d);
|
|
58083
|
-
return E && (N += " " + E), g.className && (N += " " + g.className), w[L(S) && !A.has(S) ? "class" : "className"] = N, w.ref = s, createElement(S, w);
|
|
58286
|
+
return E && (N += " " + E), g.className && (N += " " + g.className), w[L(S) && !A.has(S) ? "class" : "className"] = N, s && (w.ref = s), createElement(S, w);
|
|
58084
58287
|
}(D, e, o);
|
|
58085
58288
|
}
|
|
58086
58289
|
O.displayName = y;
|
|
@@ -58862,6 +59065,7 @@ var LiffProvider = function(param) {
|
|
|
58862
59065
|
err = _state.sent();
|
|
58863
59066
|
setLiffError(err.toString());
|
|
58864
59067
|
console.log("LIFF init failed.", err);
|
|
59068
|
+
alert("LIFF init failed.");
|
|
58865
59069
|
return [
|
|
58866
59070
|
3,
|
|
58867
59071
|
6
|