vue-laravel-crud 1.5.13 → 1.6.0
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/dist/vue-laravel-crud.esm.js +424 -417
- package/dist/vue-laravel-crud.min.js +3 -10
- package/dist/vue-laravel-crud.ssr.js +672 -653
- package/package.json +2 -1
- package/src/vue-laravel-crud.vue +15 -1
|
@@ -32,11 +32,7 @@ function getAugmentedNamespace(n) {
|
|
|
32
32
|
return a;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
var
|
|
36
|
-
var vuedraggable_umd = {
|
|
37
|
-
get exports(){ return vuedraggable_umdExports; },
|
|
38
|
-
set exports(v){ vuedraggable_umdExports = v; },
|
|
39
|
-
};
|
|
35
|
+
var vuedraggable_umd = {exports: {}};
|
|
40
36
|
|
|
41
37
|
/**!
|
|
42
38
|
* Sortable 1.10.2
|
|
@@ -3745,6 +3741,8 @@ var sortable_esm = /*#__PURE__*/Object.freeze({
|
|
|
3745
3741
|
|
|
3746
3742
|
var require$$0 = /*@__PURE__*/getAugmentedNamespace(sortable_esm);
|
|
3747
3743
|
|
|
3744
|
+
vuedraggable_umd.exports;
|
|
3745
|
+
|
|
3748
3746
|
(function (module, exports) {
|
|
3749
3747
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
3750
3748
|
module.exports = factory(require$$0);
|
|
@@ -6163,19 +6161,18 @@ var require$$0 = /*@__PURE__*/getAugmentedNamespace(sortable_esm);
|
|
|
6163
6161
|
/******/ })["default"];
|
|
6164
6162
|
});
|
|
6165
6163
|
|
|
6166
|
-
} (vuedraggable_umd));
|
|
6164
|
+
} (vuedraggable_umd, vuedraggable_umd.exports));
|
|
6167
6165
|
|
|
6166
|
+
var vuedraggable_umdExports = vuedraggable_umd.exports;
|
|
6168
6167
|
var draggable = /*@__PURE__*/getDefaultExportFromCjs(vuedraggable_umdExports);
|
|
6169
6168
|
|
|
6170
6169
|
function commonjsRequire(path) {
|
|
6171
6170
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
6172
6171
|
}
|
|
6173
6172
|
|
|
6174
|
-
var
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
set exports(v){ momentExports = v; },
|
|
6178
|
-
};
|
|
6173
|
+
var moment$1 = {exports: {}};
|
|
6174
|
+
|
|
6175
|
+
moment$1.exports;
|
|
6179
6176
|
|
|
6180
6177
|
(function (module, exports) {
|
|
6181
6178
|
(function (global, factory) {
|
|
@@ -6326,24 +6323,25 @@ var moment$1 = {
|
|
|
6326
6323
|
}
|
|
6327
6324
|
|
|
6328
6325
|
function isValid(m) {
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6326
|
+
var flags = null,
|
|
6327
|
+
parsedParts = false,
|
|
6328
|
+
isNowValid = m._d && !isNaN(m._d.getTime());
|
|
6329
|
+
if (isNowValid) {
|
|
6330
|
+
flags = getParsingFlags(m);
|
|
6331
|
+
parsedParts = some.call(flags.parsedDateParts, function (i) {
|
|
6332
|
+
return i != null;
|
|
6333
|
+
});
|
|
6334
|
+
isNowValid =
|
|
6335
|
+
flags.overflow < 0 &&
|
|
6336
|
+
!flags.empty &&
|
|
6337
|
+
!flags.invalidEra &&
|
|
6338
|
+
!flags.invalidMonth &&
|
|
6339
|
+
!flags.invalidWeekday &&
|
|
6340
|
+
!flags.weekdayMismatch &&
|
|
6341
|
+
!flags.nullInput &&
|
|
6342
|
+
!flags.invalidFormat &&
|
|
6343
|
+
!flags.userInvalidated &&
|
|
6344
|
+
(!flags.meridiem || (flags.meridiem && parsedParts));
|
|
6347
6345
|
if (m._strict) {
|
|
6348
6346
|
isNowValid =
|
|
6349
6347
|
isNowValid &&
|
|
@@ -6351,12 +6349,11 @@ var moment$1 = {
|
|
|
6351
6349
|
flags.unusedTokens.length === 0 &&
|
|
6352
6350
|
flags.bigHour === undefined;
|
|
6353
6351
|
}
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
}
|
|
6352
|
+
}
|
|
6353
|
+
if (Object.isFrozen == null || !Object.isFrozen(m)) {
|
|
6354
|
+
m._isValid = isNowValid;
|
|
6355
|
+
} else {
|
|
6356
|
+
return isNowValid;
|
|
6360
6357
|
}
|
|
6361
6358
|
return m._isValid;
|
|
6362
6359
|
}
|
|
@@ -6801,12 +6798,56 @@ var moment$1 = {
|
|
|
6801
6798
|
return isFunction(format) ? format(output) : format.replace(/%s/i, output);
|
|
6802
6799
|
}
|
|
6803
6800
|
|
|
6804
|
-
var aliases = {
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6801
|
+
var aliases = {
|
|
6802
|
+
D: 'date',
|
|
6803
|
+
dates: 'date',
|
|
6804
|
+
date: 'date',
|
|
6805
|
+
d: 'day',
|
|
6806
|
+
days: 'day',
|
|
6807
|
+
day: 'day',
|
|
6808
|
+
e: 'weekday',
|
|
6809
|
+
weekdays: 'weekday',
|
|
6810
|
+
weekday: 'weekday',
|
|
6811
|
+
E: 'isoWeekday',
|
|
6812
|
+
isoweekdays: 'isoWeekday',
|
|
6813
|
+
isoweekday: 'isoWeekday',
|
|
6814
|
+
DDD: 'dayOfYear',
|
|
6815
|
+
dayofyears: 'dayOfYear',
|
|
6816
|
+
dayofyear: 'dayOfYear',
|
|
6817
|
+
h: 'hour',
|
|
6818
|
+
hours: 'hour',
|
|
6819
|
+
hour: 'hour',
|
|
6820
|
+
ms: 'millisecond',
|
|
6821
|
+
milliseconds: 'millisecond',
|
|
6822
|
+
millisecond: 'millisecond',
|
|
6823
|
+
m: 'minute',
|
|
6824
|
+
minutes: 'minute',
|
|
6825
|
+
minute: 'minute',
|
|
6826
|
+
M: 'month',
|
|
6827
|
+
months: 'month',
|
|
6828
|
+
month: 'month',
|
|
6829
|
+
Q: 'quarter',
|
|
6830
|
+
quarters: 'quarter',
|
|
6831
|
+
quarter: 'quarter',
|
|
6832
|
+
s: 'second',
|
|
6833
|
+
seconds: 'second',
|
|
6834
|
+
second: 'second',
|
|
6835
|
+
gg: 'weekYear',
|
|
6836
|
+
weekyears: 'weekYear',
|
|
6837
|
+
weekyear: 'weekYear',
|
|
6838
|
+
GG: 'isoWeekYear',
|
|
6839
|
+
isoweekyears: 'isoWeekYear',
|
|
6840
|
+
isoweekyear: 'isoWeekYear',
|
|
6841
|
+
w: 'week',
|
|
6842
|
+
weeks: 'week',
|
|
6843
|
+
week: 'week',
|
|
6844
|
+
W: 'isoWeek',
|
|
6845
|
+
isoweeks: 'isoWeek',
|
|
6846
|
+
isoweek: 'isoWeek',
|
|
6847
|
+
y: 'year',
|
|
6848
|
+
years: 'year',
|
|
6849
|
+
year: 'year',
|
|
6850
|
+
};
|
|
6810
6851
|
|
|
6811
6852
|
function normalizeUnits(units) {
|
|
6812
6853
|
return typeof units === 'string'
|
|
@@ -6831,11 +6872,24 @@ var moment$1 = {
|
|
|
6831
6872
|
return normalizedInput;
|
|
6832
6873
|
}
|
|
6833
6874
|
|
|
6834
|
-
var priorities = {
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6875
|
+
var priorities = {
|
|
6876
|
+
date: 9,
|
|
6877
|
+
day: 11,
|
|
6878
|
+
weekday: 11,
|
|
6879
|
+
isoWeekday: 11,
|
|
6880
|
+
dayOfYear: 4,
|
|
6881
|
+
hour: 13,
|
|
6882
|
+
millisecond: 16,
|
|
6883
|
+
minute: 14,
|
|
6884
|
+
month: 8,
|
|
6885
|
+
quarter: 7,
|
|
6886
|
+
second: 15,
|
|
6887
|
+
weekYear: 1,
|
|
6888
|
+
isoWeekYear: 1,
|
|
6889
|
+
week: 5,
|
|
6890
|
+
isoWeek: 5,
|
|
6891
|
+
year: 1,
|
|
6892
|
+
};
|
|
6839
6893
|
|
|
6840
6894
|
function getPrioritizedUnits(unitsObj) {
|
|
6841
6895
|
var units = [],
|
|
@@ -6851,96 +6905,6 @@ var moment$1 = {
|
|
|
6851
6905
|
return units;
|
|
6852
6906
|
}
|
|
6853
6907
|
|
|
6854
|
-
function isLeapYear(year) {
|
|
6855
|
-
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
|
|
6856
|
-
}
|
|
6857
|
-
|
|
6858
|
-
function absFloor(number) {
|
|
6859
|
-
if (number < 0) {
|
|
6860
|
-
// -0 -> 0
|
|
6861
|
-
return Math.ceil(number) || 0;
|
|
6862
|
-
} else {
|
|
6863
|
-
return Math.floor(number);
|
|
6864
|
-
}
|
|
6865
|
-
}
|
|
6866
|
-
|
|
6867
|
-
function toInt(argumentForCoercion) {
|
|
6868
|
-
var coercedNumber = +argumentForCoercion,
|
|
6869
|
-
value = 0;
|
|
6870
|
-
|
|
6871
|
-
if (coercedNumber !== 0 && isFinite(coercedNumber)) {
|
|
6872
|
-
value = absFloor(coercedNumber);
|
|
6873
|
-
}
|
|
6874
|
-
|
|
6875
|
-
return value;
|
|
6876
|
-
}
|
|
6877
|
-
|
|
6878
|
-
function makeGetSet(unit, keepTime) {
|
|
6879
|
-
return function (value) {
|
|
6880
|
-
if (value != null) {
|
|
6881
|
-
set$1(this, unit, value);
|
|
6882
|
-
hooks.updateOffset(this, keepTime);
|
|
6883
|
-
return this;
|
|
6884
|
-
} else {
|
|
6885
|
-
return get(this, unit);
|
|
6886
|
-
}
|
|
6887
|
-
};
|
|
6888
|
-
}
|
|
6889
|
-
|
|
6890
|
-
function get(mom, unit) {
|
|
6891
|
-
return mom.isValid()
|
|
6892
|
-
? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
|
|
6893
|
-
: NaN;
|
|
6894
|
-
}
|
|
6895
|
-
|
|
6896
|
-
function set$1(mom, unit, value) {
|
|
6897
|
-
if (mom.isValid() && !isNaN(value)) {
|
|
6898
|
-
if (
|
|
6899
|
-
unit === 'FullYear' &&
|
|
6900
|
-
isLeapYear(mom.year()) &&
|
|
6901
|
-
mom.month() === 1 &&
|
|
6902
|
-
mom.date() === 29
|
|
6903
|
-
) {
|
|
6904
|
-
value = toInt(value);
|
|
6905
|
-
mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
|
|
6906
|
-
value,
|
|
6907
|
-
mom.month(),
|
|
6908
|
-
daysInMonth(value, mom.month())
|
|
6909
|
-
);
|
|
6910
|
-
} else {
|
|
6911
|
-
mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
|
|
6912
|
-
}
|
|
6913
|
-
}
|
|
6914
|
-
}
|
|
6915
|
-
|
|
6916
|
-
// MOMENTS
|
|
6917
|
-
|
|
6918
|
-
function stringGet(units) {
|
|
6919
|
-
units = normalizeUnits(units);
|
|
6920
|
-
if (isFunction(this[units])) {
|
|
6921
|
-
return this[units]();
|
|
6922
|
-
}
|
|
6923
|
-
return this;
|
|
6924
|
-
}
|
|
6925
|
-
|
|
6926
|
-
function stringSet(units, value) {
|
|
6927
|
-
if (typeof units === 'object') {
|
|
6928
|
-
units = normalizeObjectUnits(units);
|
|
6929
|
-
var prioritized = getPrioritizedUnits(units),
|
|
6930
|
-
i,
|
|
6931
|
-
prioritizedLen = prioritized.length;
|
|
6932
|
-
for (i = 0; i < prioritizedLen; i++) {
|
|
6933
|
-
this[prioritized[i].unit](units[prioritized[i].unit]);
|
|
6934
|
-
}
|
|
6935
|
-
} else {
|
|
6936
|
-
units = normalizeUnits(units);
|
|
6937
|
-
if (isFunction(this[units])) {
|
|
6938
|
-
return this[units](value);
|
|
6939
|
-
}
|
|
6940
|
-
}
|
|
6941
|
-
return this;
|
|
6942
|
-
}
|
|
6943
|
-
|
|
6944
6908
|
var match1 = /\d/, // 0 - 9
|
|
6945
6909
|
match2 = /\d\d/, // 00 - 99
|
|
6946
6910
|
match3 = /\d{3}/, // 000 - 999
|
|
@@ -6961,6 +6925,8 @@ var moment$1 = {
|
|
|
6961
6925
|
// includes scottish gaelic two word and hyphenated months
|
|
6962
6926
|
matchWord =
|
|
6963
6927
|
/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
|
|
6928
|
+
match1to2NoLeadingZero = /^[1-9]\d?/, // 1-99
|
|
6929
|
+
match1to2HasZero = /^([1-9]\d|\d)/, // 0-99
|
|
6964
6930
|
regexes;
|
|
6965
6931
|
|
|
6966
6932
|
regexes = {};
|
|
@@ -6999,6 +6965,26 @@ var moment$1 = {
|
|
|
6999
6965
|
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
7000
6966
|
}
|
|
7001
6967
|
|
|
6968
|
+
function absFloor(number) {
|
|
6969
|
+
if (number < 0) {
|
|
6970
|
+
// -0 -> 0
|
|
6971
|
+
return Math.ceil(number) || 0;
|
|
6972
|
+
} else {
|
|
6973
|
+
return Math.floor(number);
|
|
6974
|
+
}
|
|
6975
|
+
}
|
|
6976
|
+
|
|
6977
|
+
function toInt(argumentForCoercion) {
|
|
6978
|
+
var coercedNumber = +argumentForCoercion,
|
|
6979
|
+
value = 0;
|
|
6980
|
+
|
|
6981
|
+
if (coercedNumber !== 0 && isFinite(coercedNumber)) {
|
|
6982
|
+
value = absFloor(coercedNumber);
|
|
6983
|
+
}
|
|
6984
|
+
|
|
6985
|
+
return value;
|
|
6986
|
+
}
|
|
6987
|
+
|
|
7002
6988
|
var tokens = {};
|
|
7003
6989
|
|
|
7004
6990
|
function addParseToken(token, callback) {
|
|
@@ -7032,6 +7018,10 @@ var moment$1 = {
|
|
|
7032
7018
|
}
|
|
7033
7019
|
}
|
|
7034
7020
|
|
|
7021
|
+
function isLeapYear(year) {
|
|
7022
|
+
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
|
|
7023
|
+
}
|
|
7024
|
+
|
|
7035
7025
|
var YEAR = 0,
|
|
7036
7026
|
MONTH = 1,
|
|
7037
7027
|
DATE = 2,
|
|
@@ -7042,6 +7032,173 @@ var moment$1 = {
|
|
|
7042
7032
|
WEEK = 7,
|
|
7043
7033
|
WEEKDAY = 8;
|
|
7044
7034
|
|
|
7035
|
+
// FORMATTING
|
|
7036
|
+
|
|
7037
|
+
addFormatToken('Y', 0, 0, function () {
|
|
7038
|
+
var y = this.year();
|
|
7039
|
+
return y <= 9999 ? zeroFill(y, 4) : '+' + y;
|
|
7040
|
+
});
|
|
7041
|
+
|
|
7042
|
+
addFormatToken(0, ['YY', 2], 0, function () {
|
|
7043
|
+
return this.year() % 100;
|
|
7044
|
+
});
|
|
7045
|
+
|
|
7046
|
+
addFormatToken(0, ['YYYY', 4], 0, 'year');
|
|
7047
|
+
addFormatToken(0, ['YYYYY', 5], 0, 'year');
|
|
7048
|
+
addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
|
|
7049
|
+
|
|
7050
|
+
// PARSING
|
|
7051
|
+
|
|
7052
|
+
addRegexToken('Y', matchSigned);
|
|
7053
|
+
addRegexToken('YY', match1to2, match2);
|
|
7054
|
+
addRegexToken('YYYY', match1to4, match4);
|
|
7055
|
+
addRegexToken('YYYYY', match1to6, match6);
|
|
7056
|
+
addRegexToken('YYYYYY', match1to6, match6);
|
|
7057
|
+
|
|
7058
|
+
addParseToken(['YYYYY', 'YYYYYY'], YEAR);
|
|
7059
|
+
addParseToken('YYYY', function (input, array) {
|
|
7060
|
+
array[YEAR] =
|
|
7061
|
+
input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
|
|
7062
|
+
});
|
|
7063
|
+
addParseToken('YY', function (input, array) {
|
|
7064
|
+
array[YEAR] = hooks.parseTwoDigitYear(input);
|
|
7065
|
+
});
|
|
7066
|
+
addParseToken('Y', function (input, array) {
|
|
7067
|
+
array[YEAR] = parseInt(input, 10);
|
|
7068
|
+
});
|
|
7069
|
+
|
|
7070
|
+
// HELPERS
|
|
7071
|
+
|
|
7072
|
+
function daysInYear(year) {
|
|
7073
|
+
return isLeapYear(year) ? 366 : 365;
|
|
7074
|
+
}
|
|
7075
|
+
|
|
7076
|
+
// HOOKS
|
|
7077
|
+
|
|
7078
|
+
hooks.parseTwoDigitYear = function (input) {
|
|
7079
|
+
return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
|
|
7080
|
+
};
|
|
7081
|
+
|
|
7082
|
+
// MOMENTS
|
|
7083
|
+
|
|
7084
|
+
var getSetYear = makeGetSet('FullYear', true);
|
|
7085
|
+
|
|
7086
|
+
function getIsLeapYear() {
|
|
7087
|
+
return isLeapYear(this.year());
|
|
7088
|
+
}
|
|
7089
|
+
|
|
7090
|
+
function makeGetSet(unit, keepTime) {
|
|
7091
|
+
return function (value) {
|
|
7092
|
+
if (value != null) {
|
|
7093
|
+
set$1(this, unit, value);
|
|
7094
|
+
hooks.updateOffset(this, keepTime);
|
|
7095
|
+
return this;
|
|
7096
|
+
} else {
|
|
7097
|
+
return get(this, unit);
|
|
7098
|
+
}
|
|
7099
|
+
};
|
|
7100
|
+
}
|
|
7101
|
+
|
|
7102
|
+
function get(mom, unit) {
|
|
7103
|
+
if (!mom.isValid()) {
|
|
7104
|
+
return NaN;
|
|
7105
|
+
}
|
|
7106
|
+
|
|
7107
|
+
var d = mom._d,
|
|
7108
|
+
isUTC = mom._isUTC;
|
|
7109
|
+
|
|
7110
|
+
switch (unit) {
|
|
7111
|
+
case 'Milliseconds':
|
|
7112
|
+
return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();
|
|
7113
|
+
case 'Seconds':
|
|
7114
|
+
return isUTC ? d.getUTCSeconds() : d.getSeconds();
|
|
7115
|
+
case 'Minutes':
|
|
7116
|
+
return isUTC ? d.getUTCMinutes() : d.getMinutes();
|
|
7117
|
+
case 'Hours':
|
|
7118
|
+
return isUTC ? d.getUTCHours() : d.getHours();
|
|
7119
|
+
case 'Date':
|
|
7120
|
+
return isUTC ? d.getUTCDate() : d.getDate();
|
|
7121
|
+
case 'Day':
|
|
7122
|
+
return isUTC ? d.getUTCDay() : d.getDay();
|
|
7123
|
+
case 'Month':
|
|
7124
|
+
return isUTC ? d.getUTCMonth() : d.getMonth();
|
|
7125
|
+
case 'FullYear':
|
|
7126
|
+
return isUTC ? d.getUTCFullYear() : d.getFullYear();
|
|
7127
|
+
default:
|
|
7128
|
+
return NaN; // Just in case
|
|
7129
|
+
}
|
|
7130
|
+
}
|
|
7131
|
+
|
|
7132
|
+
function set$1(mom, unit, value) {
|
|
7133
|
+
var d, isUTC, year, month, date;
|
|
7134
|
+
|
|
7135
|
+
if (!mom.isValid() || isNaN(value)) {
|
|
7136
|
+
return;
|
|
7137
|
+
}
|
|
7138
|
+
|
|
7139
|
+
d = mom._d;
|
|
7140
|
+
isUTC = mom._isUTC;
|
|
7141
|
+
|
|
7142
|
+
switch (unit) {
|
|
7143
|
+
case 'Milliseconds':
|
|
7144
|
+
return void (isUTC
|
|
7145
|
+
? d.setUTCMilliseconds(value)
|
|
7146
|
+
: d.setMilliseconds(value));
|
|
7147
|
+
case 'Seconds':
|
|
7148
|
+
return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));
|
|
7149
|
+
case 'Minutes':
|
|
7150
|
+
return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));
|
|
7151
|
+
case 'Hours':
|
|
7152
|
+
return void (isUTC ? d.setUTCHours(value) : d.setHours(value));
|
|
7153
|
+
case 'Date':
|
|
7154
|
+
return void (isUTC ? d.setUTCDate(value) : d.setDate(value));
|
|
7155
|
+
// case 'Day': // Not real
|
|
7156
|
+
// return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
|
|
7157
|
+
// case 'Month': // Not used because we need to pass two variables
|
|
7158
|
+
// return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
|
|
7159
|
+
case 'FullYear':
|
|
7160
|
+
break; // See below ...
|
|
7161
|
+
default:
|
|
7162
|
+
return; // Just in case
|
|
7163
|
+
}
|
|
7164
|
+
|
|
7165
|
+
year = value;
|
|
7166
|
+
month = mom.month();
|
|
7167
|
+
date = mom.date();
|
|
7168
|
+
date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;
|
|
7169
|
+
void (isUTC
|
|
7170
|
+
? d.setUTCFullYear(year, month, date)
|
|
7171
|
+
: d.setFullYear(year, month, date));
|
|
7172
|
+
}
|
|
7173
|
+
|
|
7174
|
+
// MOMENTS
|
|
7175
|
+
|
|
7176
|
+
function stringGet(units) {
|
|
7177
|
+
units = normalizeUnits(units);
|
|
7178
|
+
if (isFunction(this[units])) {
|
|
7179
|
+
return this[units]();
|
|
7180
|
+
}
|
|
7181
|
+
return this;
|
|
7182
|
+
}
|
|
7183
|
+
|
|
7184
|
+
function stringSet(units, value) {
|
|
7185
|
+
if (typeof units === 'object') {
|
|
7186
|
+
units = normalizeObjectUnits(units);
|
|
7187
|
+
var prioritized = getPrioritizedUnits(units),
|
|
7188
|
+
i,
|
|
7189
|
+
prioritizedLen = prioritized.length;
|
|
7190
|
+
for (i = 0; i < prioritizedLen; i++) {
|
|
7191
|
+
this[prioritized[i].unit](units[prioritized[i].unit]);
|
|
7192
|
+
}
|
|
7193
|
+
} else {
|
|
7194
|
+
units = normalizeUnits(units);
|
|
7195
|
+
if (isFunction(this[units])) {
|
|
7196
|
+
return this[units](value);
|
|
7197
|
+
}
|
|
7198
|
+
}
|
|
7199
|
+
return this;
|
|
7200
|
+
}
|
|
7201
|
+
|
|
7045
7202
|
function mod(n, x) {
|
|
7046
7203
|
return ((n % x) + x) % x;
|
|
7047
7204
|
}
|
|
@@ -7090,17 +7247,9 @@ var moment$1 = {
|
|
|
7090
7247
|
return this.localeData().months(this, format);
|
|
7091
7248
|
});
|
|
7092
7249
|
|
|
7093
|
-
// ALIASES
|
|
7094
|
-
|
|
7095
|
-
addUnitAlias('month', 'M');
|
|
7096
|
-
|
|
7097
|
-
// PRIORITY
|
|
7098
|
-
|
|
7099
|
-
addUnitPriority('month', 8);
|
|
7100
|
-
|
|
7101
7250
|
// PARSING
|
|
7102
7251
|
|
|
7103
|
-
addRegexToken('M', match1to2);
|
|
7252
|
+
addRegexToken('M', match1to2, match1to2NoLeadingZero);
|
|
7104
7253
|
addRegexToken('MM', match1to2, match2);
|
|
7105
7254
|
addRegexToken('MMM', function (isStrict, locale) {
|
|
7106
7255
|
return locale.monthsShortRegex(isStrict);
|
|
@@ -7266,8 +7415,6 @@ var moment$1 = {
|
|
|
7266
7415
|
// MOMENTS
|
|
7267
7416
|
|
|
7268
7417
|
function setMonth(mom, value) {
|
|
7269
|
-
var dayOfMonth;
|
|
7270
|
-
|
|
7271
7418
|
if (!mom.isValid()) {
|
|
7272
7419
|
// No op
|
|
7273
7420
|
return mom;
|
|
@@ -7285,8 +7432,13 @@ var moment$1 = {
|
|
|
7285
7432
|
}
|
|
7286
7433
|
}
|
|
7287
7434
|
|
|
7288
|
-
|
|
7289
|
-
|
|
7435
|
+
var month = value,
|
|
7436
|
+
date = mom.date();
|
|
7437
|
+
|
|
7438
|
+
date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));
|
|
7439
|
+
void (mom._isUTC
|
|
7440
|
+
? mom._d.setUTCMonth(month, date)
|
|
7441
|
+
: mom._d.setMonth(month, date));
|
|
7290
7442
|
return mom;
|
|
7291
7443
|
}
|
|
7292
7444
|
|
|
@@ -7353,27 +7505,24 @@ var moment$1 = {
|
|
|
7353
7505
|
longPieces = [],
|
|
7354
7506
|
mixedPieces = [],
|
|
7355
7507
|
i,
|
|
7356
|
-
mom
|
|
7508
|
+
mom,
|
|
7509
|
+
shortP,
|
|
7510
|
+
longP;
|
|
7357
7511
|
for (i = 0; i < 12; i++) {
|
|
7358
7512
|
// make the regex if we don't have it already
|
|
7359
7513
|
mom = createUTC([2000, i]);
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7514
|
+
shortP = regexEscape(this.monthsShort(mom, ''));
|
|
7515
|
+
longP = regexEscape(this.months(mom, ''));
|
|
7516
|
+
shortPieces.push(shortP);
|
|
7517
|
+
longPieces.push(longP);
|
|
7518
|
+
mixedPieces.push(longP);
|
|
7519
|
+
mixedPieces.push(shortP);
|
|
7364
7520
|
}
|
|
7365
7521
|
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
|
7366
7522
|
// will match the longer piece.
|
|
7367
7523
|
shortPieces.sort(cmpLenRev);
|
|
7368
7524
|
longPieces.sort(cmpLenRev);
|
|
7369
7525
|
mixedPieces.sort(cmpLenRev);
|
|
7370
|
-
for (i = 0; i < 12; i++) {
|
|
7371
|
-
shortPieces[i] = regexEscape(shortPieces[i]);
|
|
7372
|
-
longPieces[i] = regexEscape(longPieces[i]);
|
|
7373
|
-
}
|
|
7374
|
-
for (i = 0; i < 24; i++) {
|
|
7375
|
-
mixedPieces[i] = regexEscape(mixedPieces[i]);
|
|
7376
|
-
}
|
|
7377
7526
|
|
|
7378
7527
|
this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
|
|
7379
7528
|
this._monthsShortRegex = this._monthsRegex;
|
|
@@ -7387,69 +7536,6 @@ var moment$1 = {
|
|
|
7387
7536
|
);
|
|
7388
7537
|
}
|
|
7389
7538
|
|
|
7390
|
-
// FORMATTING
|
|
7391
|
-
|
|
7392
|
-
addFormatToken('Y', 0, 0, function () {
|
|
7393
|
-
var y = this.year();
|
|
7394
|
-
return y <= 9999 ? zeroFill(y, 4) : '+' + y;
|
|
7395
|
-
});
|
|
7396
|
-
|
|
7397
|
-
addFormatToken(0, ['YY', 2], 0, function () {
|
|
7398
|
-
return this.year() % 100;
|
|
7399
|
-
});
|
|
7400
|
-
|
|
7401
|
-
addFormatToken(0, ['YYYY', 4], 0, 'year');
|
|
7402
|
-
addFormatToken(0, ['YYYYY', 5], 0, 'year');
|
|
7403
|
-
addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
|
|
7404
|
-
|
|
7405
|
-
// ALIASES
|
|
7406
|
-
|
|
7407
|
-
addUnitAlias('year', 'y');
|
|
7408
|
-
|
|
7409
|
-
// PRIORITIES
|
|
7410
|
-
|
|
7411
|
-
addUnitPriority('year', 1);
|
|
7412
|
-
|
|
7413
|
-
// PARSING
|
|
7414
|
-
|
|
7415
|
-
addRegexToken('Y', matchSigned);
|
|
7416
|
-
addRegexToken('YY', match1to2, match2);
|
|
7417
|
-
addRegexToken('YYYY', match1to4, match4);
|
|
7418
|
-
addRegexToken('YYYYY', match1to6, match6);
|
|
7419
|
-
addRegexToken('YYYYYY', match1to6, match6);
|
|
7420
|
-
|
|
7421
|
-
addParseToken(['YYYYY', 'YYYYYY'], YEAR);
|
|
7422
|
-
addParseToken('YYYY', function (input, array) {
|
|
7423
|
-
array[YEAR] =
|
|
7424
|
-
input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
|
|
7425
|
-
});
|
|
7426
|
-
addParseToken('YY', function (input, array) {
|
|
7427
|
-
array[YEAR] = hooks.parseTwoDigitYear(input);
|
|
7428
|
-
});
|
|
7429
|
-
addParseToken('Y', function (input, array) {
|
|
7430
|
-
array[YEAR] = parseInt(input, 10);
|
|
7431
|
-
});
|
|
7432
|
-
|
|
7433
|
-
// HELPERS
|
|
7434
|
-
|
|
7435
|
-
function daysInYear(year) {
|
|
7436
|
-
return isLeapYear(year) ? 366 : 365;
|
|
7437
|
-
}
|
|
7438
|
-
|
|
7439
|
-
// HOOKS
|
|
7440
|
-
|
|
7441
|
-
hooks.parseTwoDigitYear = function (input) {
|
|
7442
|
-
return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
|
|
7443
|
-
};
|
|
7444
|
-
|
|
7445
|
-
// MOMENTS
|
|
7446
|
-
|
|
7447
|
-
var getSetYear = makeGetSet('FullYear', true);
|
|
7448
|
-
|
|
7449
|
-
function getIsLeapYear() {
|
|
7450
|
-
return isLeapYear(this.year());
|
|
7451
|
-
}
|
|
7452
|
-
|
|
7453
7539
|
function createDate(y, m, d, h, M, s, ms) {
|
|
7454
7540
|
// can't just apply() to create a date:
|
|
7455
7541
|
// https://stackoverflow.com/q/181348
|
|
@@ -7555,21 +7641,11 @@ var moment$1 = {
|
|
|
7555
7641
|
addFormatToken('w', ['ww', 2], 'wo', 'week');
|
|
7556
7642
|
addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
|
|
7557
7643
|
|
|
7558
|
-
// ALIASES
|
|
7559
|
-
|
|
7560
|
-
addUnitAlias('week', 'w');
|
|
7561
|
-
addUnitAlias('isoWeek', 'W');
|
|
7562
|
-
|
|
7563
|
-
// PRIORITIES
|
|
7564
|
-
|
|
7565
|
-
addUnitPriority('week', 5);
|
|
7566
|
-
addUnitPriority('isoWeek', 5);
|
|
7567
|
-
|
|
7568
7644
|
// PARSING
|
|
7569
7645
|
|
|
7570
|
-
addRegexToken('w', match1to2);
|
|
7646
|
+
addRegexToken('w', match1to2, match1to2NoLeadingZero);
|
|
7571
7647
|
addRegexToken('ww', match1to2, match2);
|
|
7572
|
-
addRegexToken('W', match1to2);
|
|
7648
|
+
addRegexToken('W', match1to2, match1to2NoLeadingZero);
|
|
7573
7649
|
addRegexToken('WW', match1to2, match2);
|
|
7574
7650
|
|
|
7575
7651
|
addWeekParseToken(
|
|
@@ -7631,17 +7707,6 @@ var moment$1 = {
|
|
|
7631
7707
|
addFormatToken('e', 0, 0, 'weekday');
|
|
7632
7708
|
addFormatToken('E', 0, 0, 'isoWeekday');
|
|
7633
7709
|
|
|
7634
|
-
// ALIASES
|
|
7635
|
-
|
|
7636
|
-
addUnitAlias('day', 'd');
|
|
7637
|
-
addUnitAlias('weekday', 'e');
|
|
7638
|
-
addUnitAlias('isoWeekday', 'E');
|
|
7639
|
-
|
|
7640
|
-
// PRIORITY
|
|
7641
|
-
addUnitPriority('day', 11);
|
|
7642
|
-
addUnitPriority('weekday', 11);
|
|
7643
|
-
addUnitPriority('isoWeekday', 11);
|
|
7644
|
-
|
|
7645
7710
|
// PARSING
|
|
7646
7711
|
|
|
7647
7712
|
addRegexToken('d', match1to2);
|
|
@@ -7721,24 +7786,24 @@ var moment$1 = {
|
|
|
7721
7786
|
return m === true
|
|
7722
7787
|
? shiftWeekdays(weekdays, this._week.dow)
|
|
7723
7788
|
: m
|
|
7724
|
-
|
|
7725
|
-
|
|
7789
|
+
? weekdays[m.day()]
|
|
7790
|
+
: weekdays;
|
|
7726
7791
|
}
|
|
7727
7792
|
|
|
7728
7793
|
function localeWeekdaysShort(m) {
|
|
7729
7794
|
return m === true
|
|
7730
7795
|
? shiftWeekdays(this._weekdaysShort, this._week.dow)
|
|
7731
7796
|
: m
|
|
7732
|
-
|
|
7733
|
-
|
|
7797
|
+
? this._weekdaysShort[m.day()]
|
|
7798
|
+
: this._weekdaysShort;
|
|
7734
7799
|
}
|
|
7735
7800
|
|
|
7736
7801
|
function localeWeekdaysMin(m) {
|
|
7737
7802
|
return m === true
|
|
7738
7803
|
? shiftWeekdays(this._weekdaysMin, this._week.dow)
|
|
7739
7804
|
: m
|
|
7740
|
-
|
|
7741
|
-
|
|
7805
|
+
? this._weekdaysMin[m.day()]
|
|
7806
|
+
: this._weekdaysMin;
|
|
7742
7807
|
}
|
|
7743
7808
|
|
|
7744
7809
|
function handleStrictParse$1(weekdayName, format, strict) {
|
|
@@ -7887,7 +7952,8 @@ var moment$1 = {
|
|
|
7887
7952
|
if (!this.isValid()) {
|
|
7888
7953
|
return input != null ? this : NaN;
|
|
7889
7954
|
}
|
|
7890
|
-
|
|
7955
|
+
|
|
7956
|
+
var day = get(this, 'Day');
|
|
7891
7957
|
if (input != null) {
|
|
7892
7958
|
input = parseWeekday(input, this.localeData());
|
|
7893
7959
|
return this.add(input - day, 'd');
|
|
@@ -8086,13 +8152,6 @@ var moment$1 = {
|
|
|
8086
8152
|
meridiem('a', true);
|
|
8087
8153
|
meridiem('A', false);
|
|
8088
8154
|
|
|
8089
|
-
// ALIASES
|
|
8090
|
-
|
|
8091
|
-
addUnitAlias('hour', 'h');
|
|
8092
|
-
|
|
8093
|
-
// PRIORITY
|
|
8094
|
-
addUnitPriority('hour', 13);
|
|
8095
|
-
|
|
8096
8155
|
// PARSING
|
|
8097
8156
|
|
|
8098
8157
|
function matchMeridiem(isStrict, locale) {
|
|
@@ -8101,9 +8160,9 @@ var moment$1 = {
|
|
|
8101
8160
|
|
|
8102
8161
|
addRegexToken('a', matchMeridiem);
|
|
8103
8162
|
addRegexToken('A', matchMeridiem);
|
|
8104
|
-
addRegexToken('H', match1to2);
|
|
8105
|
-
addRegexToken('h', match1to2);
|
|
8106
|
-
addRegexToken('k', match1to2);
|
|
8163
|
+
addRegexToken('H', match1to2, match1to2HasZero);
|
|
8164
|
+
addRegexToken('h', match1to2, match1to2NoLeadingZero);
|
|
8165
|
+
addRegexToken('k', match1to2, match1to2NoLeadingZero);
|
|
8107
8166
|
addRegexToken('HH', match1to2, match2);
|
|
8108
8167
|
addRegexToken('hh', match1to2, match2);
|
|
8109
8168
|
addRegexToken('kk', match1to2, match2);
|
|
@@ -8253,7 +8312,8 @@ var moment$1 = {
|
|
|
8253
8312
|
|
|
8254
8313
|
function isLocaleNameSane(name) {
|
|
8255
8314
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
8256
|
-
|
|
8315
|
+
// Ensure name is available and function returns boolean
|
|
8316
|
+
return !!(name && name.match('^[^/\\\\]*$'));
|
|
8257
8317
|
}
|
|
8258
8318
|
|
|
8259
8319
|
function loadLocale(name) {
|
|
@@ -8445,21 +8505,21 @@ var moment$1 = {
|
|
|
8445
8505
|
a[MONTH] < 0 || a[MONTH] > 11
|
|
8446
8506
|
? MONTH
|
|
8447
8507
|
: a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8508
|
+
? DATE
|
|
8509
|
+
: a[HOUR] < 0 ||
|
|
8510
|
+
a[HOUR] > 24 ||
|
|
8511
|
+
(a[HOUR] === 24 &&
|
|
8512
|
+
(a[MINUTE] !== 0 ||
|
|
8513
|
+
a[SECOND] !== 0 ||
|
|
8514
|
+
a[MILLISECOND] !== 0))
|
|
8515
|
+
? HOUR
|
|
8516
|
+
: a[MINUTE] < 0 || a[MINUTE] > 59
|
|
8517
|
+
? MINUTE
|
|
8518
|
+
: a[SECOND] < 0 || a[SECOND] > 59
|
|
8519
|
+
? SECOND
|
|
8520
|
+
: a[MILLISECOND] < 0 || a[MILLISECOND] > 999
|
|
8521
|
+
? MILLISECOND
|
|
8522
|
+
: -1;
|
|
8463
8523
|
|
|
8464
8524
|
if (
|
|
8465
8525
|
getParsingFlags(m)._overflowDayOfYear &&
|
|
@@ -9900,16 +9960,16 @@ var moment$1 = {
|
|
|
9900
9960
|
return diff < -6
|
|
9901
9961
|
? 'sameElse'
|
|
9902
9962
|
: diff < -1
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9963
|
+
? 'lastWeek'
|
|
9964
|
+
: diff < 0
|
|
9965
|
+
? 'lastDay'
|
|
9966
|
+
: diff < 1
|
|
9967
|
+
? 'sameDay'
|
|
9968
|
+
: diff < 2
|
|
9969
|
+
? 'nextDay'
|
|
9970
|
+
: diff < 7
|
|
9971
|
+
? 'nextWeek'
|
|
9972
|
+
: 'sameElse';
|
|
9913
9973
|
}
|
|
9914
9974
|
|
|
9915
9975
|
function calendar$1(time, formats) {
|
|
@@ -10717,16 +10777,22 @@ var moment$1 = {
|
|
|
10717
10777
|
mixedPieces = [],
|
|
10718
10778
|
i,
|
|
10719
10779
|
l,
|
|
10780
|
+
erasName,
|
|
10781
|
+
erasAbbr,
|
|
10782
|
+
erasNarrow,
|
|
10720
10783
|
eras = this.eras();
|
|
10721
10784
|
|
|
10722
10785
|
for (i = 0, l = eras.length; i < l; ++i) {
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10786
|
+
erasName = regexEscape(eras[i].name);
|
|
10787
|
+
erasAbbr = regexEscape(eras[i].abbr);
|
|
10788
|
+
erasNarrow = regexEscape(eras[i].narrow);
|
|
10726
10789
|
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
10790
|
+
namePieces.push(erasName);
|
|
10791
|
+
abbrPieces.push(erasAbbr);
|
|
10792
|
+
narrowPieces.push(erasNarrow);
|
|
10793
|
+
mixedPieces.push(erasName);
|
|
10794
|
+
mixedPieces.push(erasAbbr);
|
|
10795
|
+
mixedPieces.push(erasNarrow);
|
|
10730
10796
|
}
|
|
10731
10797
|
|
|
10732
10798
|
this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
|
|
@@ -10759,14 +10825,6 @@ var moment$1 = {
|
|
|
10759
10825
|
|
|
10760
10826
|
// ALIASES
|
|
10761
10827
|
|
|
10762
|
-
addUnitAlias('weekYear', 'gg');
|
|
10763
|
-
addUnitAlias('isoWeekYear', 'GG');
|
|
10764
|
-
|
|
10765
|
-
// PRIORITY
|
|
10766
|
-
|
|
10767
|
-
addUnitPriority('weekYear', 1);
|
|
10768
|
-
addUnitPriority('isoWeekYear', 1);
|
|
10769
|
-
|
|
10770
10828
|
// PARSING
|
|
10771
10829
|
|
|
10772
10830
|
addRegexToken('G', matchSigned);
|
|
@@ -10796,7 +10854,7 @@ var moment$1 = {
|
|
|
10796
10854
|
this,
|
|
10797
10855
|
input,
|
|
10798
10856
|
this.week(),
|
|
10799
|
-
this.weekday(),
|
|
10857
|
+
this.weekday() + this.localeData()._week.dow,
|
|
10800
10858
|
this.localeData()._week.dow,
|
|
10801
10859
|
this.localeData()._week.doy
|
|
10802
10860
|
);
|
|
@@ -10858,14 +10916,6 @@ var moment$1 = {
|
|
|
10858
10916
|
|
|
10859
10917
|
addFormatToken('Q', 0, 'Qo', 'quarter');
|
|
10860
10918
|
|
|
10861
|
-
// ALIASES
|
|
10862
|
-
|
|
10863
|
-
addUnitAlias('quarter', 'Q');
|
|
10864
|
-
|
|
10865
|
-
// PRIORITY
|
|
10866
|
-
|
|
10867
|
-
addUnitPriority('quarter', 7);
|
|
10868
|
-
|
|
10869
10919
|
// PARSING
|
|
10870
10920
|
|
|
10871
10921
|
addRegexToken('Q', match1);
|
|
@@ -10885,16 +10935,9 @@ var moment$1 = {
|
|
|
10885
10935
|
|
|
10886
10936
|
addFormatToken('D', ['DD', 2], 'Do', 'date');
|
|
10887
10937
|
|
|
10888
|
-
// ALIASES
|
|
10889
|
-
|
|
10890
|
-
addUnitAlias('date', 'D');
|
|
10891
|
-
|
|
10892
|
-
// PRIORITY
|
|
10893
|
-
addUnitPriority('date', 9);
|
|
10894
|
-
|
|
10895
10938
|
// PARSING
|
|
10896
10939
|
|
|
10897
|
-
addRegexToken('D', match1to2);
|
|
10940
|
+
addRegexToken('D', match1to2, match1to2NoLeadingZero);
|
|
10898
10941
|
addRegexToken('DD', match1to2, match2);
|
|
10899
10942
|
addRegexToken('Do', function (isStrict, locale) {
|
|
10900
10943
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
@@ -10916,13 +10959,6 @@ var moment$1 = {
|
|
|
10916
10959
|
|
|
10917
10960
|
addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
|
|
10918
10961
|
|
|
10919
|
-
// ALIASES
|
|
10920
|
-
|
|
10921
|
-
addUnitAlias('dayOfYear', 'DDD');
|
|
10922
|
-
|
|
10923
|
-
// PRIORITY
|
|
10924
|
-
addUnitPriority('dayOfYear', 4);
|
|
10925
|
-
|
|
10926
10962
|
// PARSING
|
|
10927
10963
|
|
|
10928
10964
|
addRegexToken('DDD', match1to3);
|
|
@@ -10947,17 +10983,9 @@ var moment$1 = {
|
|
|
10947
10983
|
|
|
10948
10984
|
addFormatToken('m', ['mm', 2], 0, 'minute');
|
|
10949
10985
|
|
|
10950
|
-
// ALIASES
|
|
10951
|
-
|
|
10952
|
-
addUnitAlias('minute', 'm');
|
|
10953
|
-
|
|
10954
|
-
// PRIORITY
|
|
10955
|
-
|
|
10956
|
-
addUnitPriority('minute', 14);
|
|
10957
|
-
|
|
10958
10986
|
// PARSING
|
|
10959
10987
|
|
|
10960
|
-
addRegexToken('m', match1to2);
|
|
10988
|
+
addRegexToken('m', match1to2, match1to2HasZero);
|
|
10961
10989
|
addRegexToken('mm', match1to2, match2);
|
|
10962
10990
|
addParseToken(['m', 'mm'], MINUTE);
|
|
10963
10991
|
|
|
@@ -10969,17 +10997,9 @@ var moment$1 = {
|
|
|
10969
10997
|
|
|
10970
10998
|
addFormatToken('s', ['ss', 2], 0, 'second');
|
|
10971
10999
|
|
|
10972
|
-
// ALIASES
|
|
10973
|
-
|
|
10974
|
-
addUnitAlias('second', 's');
|
|
10975
|
-
|
|
10976
|
-
// PRIORITY
|
|
10977
|
-
|
|
10978
|
-
addUnitPriority('second', 15);
|
|
10979
|
-
|
|
10980
11000
|
// PARSING
|
|
10981
11001
|
|
|
10982
|
-
addRegexToken('s', match1to2);
|
|
11002
|
+
addRegexToken('s', match1to2, match1to2HasZero);
|
|
10983
11003
|
addRegexToken('ss', match1to2, match2);
|
|
10984
11004
|
addParseToken(['s', 'ss'], SECOND);
|
|
10985
11005
|
|
|
@@ -11017,14 +11037,6 @@ var moment$1 = {
|
|
|
11017
11037
|
return this.millisecond() * 1000000;
|
|
11018
11038
|
});
|
|
11019
11039
|
|
|
11020
|
-
// ALIASES
|
|
11021
|
-
|
|
11022
|
-
addUnitAlias('millisecond', 'ms');
|
|
11023
|
-
|
|
11024
|
-
// PRIORITY
|
|
11025
|
-
|
|
11026
|
-
addUnitPriority('millisecond', 16);
|
|
11027
|
-
|
|
11028
11040
|
// PARSING
|
|
11029
11041
|
|
|
11030
11042
|
addRegexToken('S', match1to3, match1);
|
|
@@ -11332,12 +11344,12 @@ var moment$1 = {
|
|
|
11332
11344
|
toInt((number % 100) / 10) === 1
|
|
11333
11345
|
? 'th'
|
|
11334
11346
|
: b === 1
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11347
|
+
? 'st'
|
|
11348
|
+
: b === 2
|
|
11349
|
+
? 'nd'
|
|
11350
|
+
: b === 3
|
|
11351
|
+
? 'rd'
|
|
11352
|
+
: 'th';
|
|
11341
11353
|
return number + output;
|
|
11342
11354
|
},
|
|
11343
11355
|
});
|
|
@@ -11510,19 +11522,6 @@ var moment$1 = {
|
|
|
11510
11522
|
}
|
|
11511
11523
|
}
|
|
11512
11524
|
|
|
11513
|
-
// TODO: Use this.as('ms')?
|
|
11514
|
-
function valueOf$1() {
|
|
11515
|
-
if (!this.isValid()) {
|
|
11516
|
-
return NaN;
|
|
11517
|
-
}
|
|
11518
|
-
return (
|
|
11519
|
-
this._milliseconds +
|
|
11520
|
-
this._days * 864e5 +
|
|
11521
|
-
(this._months % 12) * 2592e6 +
|
|
11522
|
-
toInt(this._months / 12) * 31536e6
|
|
11523
|
-
);
|
|
11524
|
-
}
|
|
11525
|
-
|
|
11526
11525
|
function makeAs(alias) {
|
|
11527
11526
|
return function () {
|
|
11528
11527
|
return this.as(alias);
|
|
@@ -11537,7 +11536,8 @@ var moment$1 = {
|
|
|
11537
11536
|
asWeeks = makeAs('w'),
|
|
11538
11537
|
asMonths = makeAs('M'),
|
|
11539
11538
|
asQuarters = makeAs('Q'),
|
|
11540
|
-
asYears = makeAs('y')
|
|
11539
|
+
asYears = makeAs('y'),
|
|
11540
|
+
valueOf$1 = asMilliseconds;
|
|
11541
11541
|
|
|
11542
11542
|
function clone$1() {
|
|
11543
11543
|
return createDuration(this);
|
|
@@ -11806,7 +11806,7 @@ var moment$1 = {
|
|
|
11806
11806
|
|
|
11807
11807
|
//! moment.js
|
|
11808
11808
|
|
|
11809
|
-
hooks.version = '2.
|
|
11809
|
+
hooks.version = '2.30.1';
|
|
11810
11810
|
|
|
11811
11811
|
setHookCallback(createLocal);
|
|
11812
11812
|
|
|
@@ -11853,32 +11853,31 @@ var moment$1 = {
|
|
|
11853
11853
|
|
|
11854
11854
|
return hooks;
|
|
11855
11855
|
|
|
11856
|
-
})));
|
|
11857
|
-
} (moment$1));
|
|
11856
|
+
})));
|
|
11857
|
+
} (moment$1, moment$1.exports));
|
|
11858
11858
|
|
|
11859
|
-
var
|
|
11859
|
+
var momentExports = moment$1.exports;
|
|
11860
|
+
var moment = /*@__PURE__*/getDefaultExportFromCjs(momentExports);
|
|
11860
11861
|
|
|
11861
|
-
var
|
|
11862
|
-
var vueInfiniteLoading = {
|
|
11863
|
-
get exports(){ return vueInfiniteLoadingExports; },
|
|
11864
|
-
set exports(v){ vueInfiniteLoadingExports = v; },
|
|
11865
|
-
};
|
|
11862
|
+
var vueInfiniteLoading = {exports: {}};
|
|
11866
11863
|
|
|
11867
11864
|
/*!
|
|
11868
11865
|
* vue-infinite-loading v2.4.5
|
|
11869
11866
|
* (c) 2016-2020 PeachScript
|
|
11870
11867
|
* MIT License
|
|
11871
11868
|
*/
|
|
11869
|
+
vueInfiniteLoading.exports;
|
|
11872
11870
|
|
|
11873
11871
|
(function (module, exports) {
|
|
11874
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i});},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(t,e,n){var i=n(6);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0, n(3).default)("6223ff68",i,!0,{});},function(t,e,n){var i=n(8);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0, n(3).default)("27f0e51f",i,!0,{});},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var a=(o=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),r=i.sources.map((function(t){return "/*# sourceURL="+i.sourceRoot+t+" */"}));return [n].concat(r).concat([a]).join("\n")}var o;return [n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},a=0;a<this.length;a++){var r=this[a][0];"number"==typeof r&&(i[r]=!0);}for(a=0;a<t.length;a++){var o=t[a];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o));}},e};},function(t,e,n){function i(t,e){for(var n=[],i={},a=0;a<e.length;a++){var r=e[a],o=r[0],s={id:t+":"+a,css:r[1],media:r[2],sourceMap:r[3]};i[o]?i[o].parts.push(s):n.push(i[o]={id:o,parts:[s]});}return n}n.r(e),n.d(e,"default",(function(){return f}));var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},o=a&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,d=!1,c=function(){},u=null,p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,n,a){d=n,u=a||{};var o=i(t,e);return b(o),function(e){for(var n=[],a=0;a<o.length;a++){var s=o[a];(l=r[s.id]).refs--,n.push(l);}e?b(o=i(t,e)):o=[];for(a=0;a<n.length;a++){var l;if(0===(l=n[a]).refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete r[l.id];}}}}function b(t){for(var e=0;e<t.length;e++){var n=t[e],i=r[n.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](n.parts[a]);for(;a<n.parts.length;a++)i.parts.push(m(n.parts[a]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length);}else {var o=[];for(a=0;a<n.parts.length;a++)o.push(m(n.parts[a]));r[n.id]={id:n.id,refs:1,parts:o};}}}function h(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function m(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(d)return c;i.parentNode.removeChild(i);}if(p){var a=l++;i=s||(s=h()),e=w.bind(null,i,a,!1),n=w.bind(null,i,a,!0);}else i=h(),e=y.bind(null,i),n=function(){i.parentNode.removeChild(i);};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i);}else n();}}var g,v=(g=[],function(t,e){return g[t]=e,g.filter(Boolean).join("\n")});function w(t,e,n,i){var a=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,a);else {var r=document.createTextNode(a),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r);}}function y(t,e){var n=e.css,i=e.media,a=e.sourceMap;if(i&&t.setAttribute("media",i),u.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else {for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n));}}},function(t,e){function n(e){return "function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n;},function(t,e,n){n.r(e);var i=n(0),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}));}(r);e.default=a.a;},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,'.loading-wave-dots[data-v-46b20d22]{position:relative}.loading-wave-dots[data-v-46b20d22] .wave-item{position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;-webkit-animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite;animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite}.loading-wave-dots[data-v-46b20d22] .wave-item:first-child{margin-left:-36px}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(2){margin-left:-20px;-webkit-animation-delay:.14s;animation-delay:.14s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(3){margin-left:-4px;-webkit-animation-delay:.28s;animation-delay:.28s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(4){margin-left:12px;-webkit-animation-delay:.42s;animation-delay:.42s}.loading-wave-dots[data-v-46b20d22] .wave-item:last-child{margin-left:28px;-webkit-animation-delay:.56s;animation-delay:.56s}@-webkit-keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}@keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}.loading-circles[data-v-46b20d22] .circle-item{width:5px;height:5px;-webkit-animation:loading-circles-data-v-46b20d22 linear .75s infinite;animation:loading-circles-data-v-46b20d22 linear .75s infinite}.loading-circles[data-v-46b20d22] .circle-item:first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles[data-v-46b20d22] .circle-item:last-child{margin-top:-11.26px;margin-left:-11.26px}@-webkit-keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}@keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles[data-v-46b20d22] .bubble-item{background:#666;-webkit-animation:loading-bubbles-data-v-46b20d22 linear .75s infinite;animation:loading-bubbles-data-v-46b20d22 linear .75s infinite}.loading-bubbles[data-v-46b20d22] .bubble-item:first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child{margin-top:-9.26px;margin-left:-9.26px}@-webkit-keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}@keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default[data-v-46b20d22]{position:relative;border:1px solid #999;-webkit-animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite;animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite}.loading-default[data-v-46b20d22]:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral[data-v-46b20d22]{border:2px solid #777;border-right-color:transparent;-webkit-animation:loading-rotating-data-v-46b20d22 linear .85s infinite;animation:loading-rotating-data-v-46b20d22 linear .85s infinite}@-webkit-keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loading-bubbles[data-v-46b20d22],.loading-circles[data-v-46b20d22]{position:relative}.loading-bubbles[data-v-46b20d22] .bubble-item,.loading-circles[data-v-46b20d22] .circle-item{position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2),.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){-webkit-animation-delay:93ms;animation-delay:93ms}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3),.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){-webkit-animation-delay:.186s;animation-delay:.186s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4),.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){-webkit-animation-delay:.279s;animation-delay:.279s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5),.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){-webkit-animation-delay:.372s;animation-delay:.372s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6),.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){-webkit-animation-delay:.465s;animation-delay:.465s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7),.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){-webkit-animation-delay:.558s;animation-delay:.558s}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child,.loading-circles[data-v-46b20d22] .circle-item:last-child{-webkit-animation-delay:.651s;animation-delay:.651s}',""]);},function(t,e,n){n.r(e);var i=n(1),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}));}(r);e.default=a.a;},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".infinite-loading-container[data-v-644ea9c9]{clear:both;text-align:center}.infinite-loading-container[data-v-644ea9c9] [class^=loading-]{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.btn-try-infinite[data-v-644ea9c9]{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite[data-v-644ea9c9]:not(:active):hover{opacity:.8}",""]);},function(t,e,n){n.r(e);var i={throttleLimit:50,loopCheckTimeout:1e3,loopCheckMaxCalls:10},a=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t={passive:!0},!0}});window.addEventListener("testpassive",e,e),window.remove("testpassive",e,e);}catch(t){}return t}(),r={STATE_CHANGER:["emit `loaded` and `complete` event through component instance of `$refs` may cause error, so it will be deprecated soon, please use the `$state` argument instead (`$state` just the special `$event` variable):","\ntemplate:",'<infinite-loading @infinite="infiniteHandler"></infinite-loading>',"\nscript:\n...\ninfiniteHandler($state) {\n ajax('https://www.example.com/api/news')\n .then((res) => {\n if (res.data.length) {\n $state.loaded();\n } else {\n $state.complete();\n }\n });\n}\n...","","more details: https://github.com/PeachScript/vue-infinite-loading/issues/57#issuecomment-324370549"].join("\n"),INFINITE_EVENT:"`:on-infinite` property will be deprecated soon, please use `@infinite` event instead.",IDENTIFIER:"the `reset` event will be deprecated soon, please reset this component by change the `identifier` property."},o={INFINITE_LOOP:["executed the callback function more than ".concat(i.loopCheckMaxCalls," times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper ranther than automatic searching, you can do this:"),'\n\x3c!-- add a special attribute for the real scroll wrapper --\x3e\n<div infinite-wrapper>\n ...\n \x3c!-- set force-use-infinite-wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper></infinite-loading>\n</div>\nor\n<div class="infinite-wrapper">\n ...\n \x3c!-- set force-use-infinite-wrapper as css selector of the real scroll wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper=".infinite-wrapper"></infinite-loading>\n</div>\n ',"more details: https://github.com/PeachScript/vue-infinite-loading/issues/55#issuecomment-316934169"].join("\n")},s={READY:0,LOADING:1,COMPLETE:2,ERROR:3},l={color:"#666",fontSize:"14px",padding:"10px 0"},d={mode:"development",props:{spinner:"default",distance:100,forceUseInfiniteWrapper:!1},system:i,slots:{noResults:"No results :(",noMore:"No more data :)",error:"Opps, something went wrong :(",errorBtnText:"Retry",spinner:""},WARNINGS:r,ERRORS:o,STATUS:s},c=n(4),u=n.n(c),p={BUBBLES:{render:function(t){return t("span",{attrs:{class:"loading-bubbles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"bubble-item"}})})))}},CIRCLES:{render:function(t){return t("span",{attrs:{class:"loading-circles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"circle-item"}})})))}},DEFAULT:{render:function(t){return t("i",{attrs:{class:"loading-default"}})}},SPIRAL:{render:function(t){return t("i",{attrs:{class:"loading-spiral"}})}},WAVEDOTS:{render:function(t){return t("span",{attrs:{class:"loading-wave-dots"}},Array.apply(Array,Array(5)).map((function(){return t("span",{attrs:{class:"wave-item"}})})))}}};function f(t,e,n,i,a,r,o,s){var l,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o);},d._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot);}:a),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(t,e){return l.call(e),c(t,e)};}else {var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l];}return {exports:t,options:d}}var b=f({name:"Spinner",computed:{spinnerView:function(){return p[(this.$attrs.spinner||"").toUpperCase()]||this.spinnerInConfig},spinnerInConfig:function(){return d.slots.spinner&&"string"==typeof d.slots.spinner?{render:function(){return this._v(d.slots.spinner)}}:"object"===u()(d.slots.spinner)?d.slots.spinner:p[d.props.spinner.toUpperCase()]||p.DEFAULT}}},(function(){var t=this.$createElement;return (this._self._c||t)(this.spinnerView,{tag:"component"})}),[],!1,(function(t){var e=n(5);e.__inject__&&e.__inject__(t);}),"46b20d22",null).exports;function h(t){"production"!==d.mode&&console.warn("[Vue-infinite-loading warn]: ".concat(t));}function m(t){console.error("[Vue-infinite-loading error]: ".concat(t));}var g={timers:[],caches:[],throttle:function(t){var e=this;-1===this.caches.indexOf(t)&&(this.caches.push(t),this.timers.push(setTimeout((function(){t(),e.caches.splice(e.caches.indexOf(t),1),e.timers.shift();}),d.system.throttleLimit)));},reset:function(){this.timers.forEach((function(t){clearTimeout(t);})),this.timers.length=0,this.caches=[];}},v={isChecked:!1,timer:null,times:0,track:function(){var t=this;this.times+=1,clearTimeout(this.timer),this.timer=setTimeout((function(){t.isChecked=!0;}),d.system.loopCheckTimeout),this.times>d.system.loopCheckMaxCalls&&(m(o.INFINITE_LOOP),this.isChecked=!0);}},w={key:"_infiniteScrollHeight",getScrollElm:function(t){return t===window?document.documentElement:t},save:function(t){var e=this.getScrollElm(t);e[this.key]=e.scrollHeight;},restore:function(t){var e=this.getScrollElm(t);"number"==typeof e[this.key]&&(e.scrollTop=e.scrollHeight-e[this.key]+e.scrollTop),this.remove(e);},remove:function(t){void 0!==t[this.key]&&delete t[this.key];}};function y(t){return t.replace(/[A-Z]/g,(function(t){return "-".concat(t.toLowerCase())}))}function x(t){return t.offsetWidth+t.offsetHeight>0}var k=f({name:"InfiniteLoading",data:function(){return {scrollParent:null,scrollHandler:null,isFirstLoad:!0,status:s.READY,slots:d.slots}},components:{Spinner:b},computed:{isShowSpinner:function(){return this.status===s.LOADING},isShowError:function(){return this.status===s.ERROR},isShowNoResults:function(){return this.status===s.COMPLETE&&this.isFirstLoad},isShowNoMore:function(){return this.status===s.COMPLETE&&!this.isFirstLoad},slotStyles:function(){var t=this,e={};return Object.keys(d.slots).forEach((function(n){var i=y(n);(!t.$slots[i]&&!d.slots[n].render||t.$slots[i]&&!t.$slots[i][0].tag)&&(e[n]=l);})),e}},props:{distance:{type:Number,default:d.props.distance},spinner:String,direction:{type:String,default:"bottom"},forceUseInfiniteWrapper:{type:[Boolean,String],default:d.props.forceUseInfiniteWrapper},identifier:{default:+new Date},onInfinite:Function},watch:{identifier:function(){this.stateChanger.reset();}},mounted:function(){var t=this;this.$watch("forceUseInfiniteWrapper",(function(){t.scrollParent=t.getScrollParent();}),{immediate:!0}),this.scrollHandler=function(e){t.status===s.READY&&(e&&e.constructor===Event&&x(t.$el)?g.throttle(t.attemptLoad):t.attemptLoad());},setTimeout((function(){t.scrollHandler(),t.scrollParent.addEventListener("scroll",t.scrollHandler,a);}),1),this.$on("$InfiniteLoading:loaded",(function(e){t.isFirstLoad=!1,"top"===t.direction&&t.$nextTick((function(){w.restore(t.scrollParent);})),t.status===s.LOADING&&t.$nextTick(t.attemptLoad.bind(null,!0)),e&&e.target===t||h(r.STATE_CHANGER);})),this.$on("$InfiniteLoading:complete",(function(e){t.status=s.COMPLETE,t.$nextTick((function(){t.$forceUpdate();})),t.scrollParent.removeEventListener("scroll",t.scrollHandler,a),e&&e.target===t||h(r.STATE_CHANGER);})),this.$on("$InfiniteLoading:reset",(function(e){t.status=s.READY,t.isFirstLoad=!0,w.remove(t.scrollParent),t.scrollParent.addEventListener("scroll",t.scrollHandler,a),setTimeout((function(){g.reset(),t.scrollHandler();}),1),e&&e.target===t||h(r.IDENTIFIER);})),this.stateChanger={loaded:function(){t.$emit("$InfiniteLoading:loaded",{target:t});},complete:function(){t.$emit("$InfiniteLoading:complete",{target:t});},reset:function(){t.$emit("$InfiniteLoading:reset",{target:t});},error:function(){t.status=s.ERROR,g.reset();}},this.onInfinite&&h(r.INFINITE_EVENT);},deactivated:function(){this.status===s.LOADING&&(this.status=s.READY),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a);},activated:function(){this.scrollParent.addEventListener("scroll",this.scrollHandler,a);},methods:{attemptLoad:function(t){var e=this;this.status!==s.COMPLETE&&x(this.$el)&&this.getCurrentDistance()<=this.distance?(this.status=s.LOADING,"top"===this.direction&&this.$nextTick((function(){w.save(e.scrollParent);})),"function"==typeof this.onInfinite?this.onInfinite.call(null,this.stateChanger):this.$emit("infinite",this.stateChanger),!t||this.forceUseInfiniteWrapper||v.isChecked||v.track()):this.status===s.LOADING&&(this.status=s.READY);},getCurrentDistance:function(){var t;"top"===this.direction?t="number"==typeof this.scrollParent.scrollTop?this.scrollParent.scrollTop:this.scrollParent.pageYOffset:t=this.$el.getBoundingClientRect().top-(this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom);return t},getScrollParent:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$el;return "string"==typeof this.forceUseInfiniteWrapper&&(t=document.querySelector(this.forceUseInfiniteWrapper)),t||("BODY"===e.tagName?t=window:!this.forceUseInfiniteWrapper&&["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>-1?t=e:(e.hasAttribute("infinite-wrapper")||e.hasAttribute("data-infinite-wrapper"))&&(t=e)),t||this.getScrollParent(e.parentNode)}},destroyed:function(){!this.status!==s.COMPLETE&&(g.reset(),w.remove(this.scrollParent),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a));}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"infinite-loading-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSpinner,expression:"isShowSpinner"}],staticClass:"infinite-status-prompt",style:t.slotStyles.spinner},[t._t("spinner",[n("spinner",{attrs:{spinner:t.spinner}})])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoResults,expression:"isShowNoResults"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noResults},[t._t("no-results",[t.slots.noResults.render?n(t.slots.noResults,{tag:"component"}):[t._v(t._s(t.slots.noResults))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoMore,expression:"isShowNoMore"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noMore},[t._t("no-more",[t.slots.noMore.render?n(t.slots.noMore,{tag:"component"}):[t._v(t._s(t.slots.noMore))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowError,expression:"isShowError"}],staticClass:"infinite-status-prompt",style:t.slotStyles.error},[t._t("error",[t.slots.error.render?n(t.slots.error,{tag:"component",attrs:{trigger:t.attemptLoad}}):[t._v("\n "+t._s(t.slots.error)+"\n "),n("br"),t._v(" "),n("button",{staticClass:"btn-try-infinite",domProps:{textContent:t._s(t.slots.errorBtnText)},on:{click:t.attemptLoad}})]],{trigger:t.attemptLoad})],2)])}),[],!1,(function(t){var e=n(7);e.__inject__&&e.__inject__(t);}),"644ea9c9",null).exports;function E(t){d.mode=t.config.productionTip?"development":"production";}Object.defineProperty(k,"install",{configurable:!1,enumerable:!1,value:function(t,e){Object.assign(d.props,e&&e.props),Object.assign(d.slots,e&&e.slots),Object.assign(d.system,e&&e.system),t.component("infinite-loading",k),E(t);}}),"undefined"!=typeof window&&window.Vue&&(window.Vue.component("infinite-loading",k),E(window.Vue));e.default=k;}])}));
|
|
11875
|
-
} (vueInfiniteLoading));
|
|
11872
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i});},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(t,e,n){var i=n(6);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0, n(3).default)("6223ff68",i,!0,{});},function(t,e,n){var i=n(8);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0, n(3).default)("27f0e51f",i,!0,{});},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var a=(o=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),r=i.sources.map((function(t){return "/*# sourceURL="+i.sourceRoot+t+" */"}));return [n].concat(r).concat([a]).join("\n")}var o;return [n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},a=0;a<this.length;a++){var r=this[a][0];"number"==typeof r&&(i[r]=!0);}for(a=0;a<t.length;a++){var o=t[a];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o));}},e};},function(t,e,n){function i(t,e){for(var n=[],i={},a=0;a<e.length;a++){var r=e[a],o=r[0],s={id:t+":"+a,css:r[1],media:r[2],sourceMap:r[3]};i[o]?i[o].parts.push(s):n.push(i[o]={id:o,parts:[s]});}return n}n.r(e),n.d(e,"default",(function(){return f}));var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},o=a&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,d=!1,c=function(){},u=null,p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,n,a){d=n,u=a||{};var o=i(t,e);return b(o),function(e){for(var n=[],a=0;a<o.length;a++){var s=o[a];(l=r[s.id]).refs--,n.push(l);}e?b(o=i(t,e)):o=[];for(a=0;a<n.length;a++){var l;if(0===(l=n[a]).refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete r[l.id];}}}}function b(t){for(var e=0;e<t.length;e++){var n=t[e],i=r[n.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](n.parts[a]);for(;a<n.parts.length;a++)i.parts.push(m(n.parts[a]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length);}else {var o=[];for(a=0;a<n.parts.length;a++)o.push(m(n.parts[a]));r[n.id]={id:n.id,refs:1,parts:o};}}}function h(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function m(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(d)return c;i.parentNode.removeChild(i);}if(p){var a=l++;i=s||(s=h()),e=w.bind(null,i,a,!1),n=w.bind(null,i,a,!0);}else i=h(),e=y.bind(null,i),n=function(){i.parentNode.removeChild(i);};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i);}else n();}}var g,v=(g=[],function(t,e){return g[t]=e,g.filter(Boolean).join("\n")});function w(t,e,n,i){var a=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,a);else {var r=document.createTextNode(a),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r);}}function y(t,e){var n=e.css,i=e.media,a=e.sourceMap;if(i&&t.setAttribute("media",i),u.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else {for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n));}}},function(t,e){function n(e){return "function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n;},function(t,e,n){n.r(e);var i=n(0),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}));}(r);e.default=a.a;},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,'.loading-wave-dots[data-v-46b20d22]{position:relative}.loading-wave-dots[data-v-46b20d22] .wave-item{position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;-webkit-animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite;animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite}.loading-wave-dots[data-v-46b20d22] .wave-item:first-child{margin-left:-36px}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(2){margin-left:-20px;-webkit-animation-delay:.14s;animation-delay:.14s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(3){margin-left:-4px;-webkit-animation-delay:.28s;animation-delay:.28s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(4){margin-left:12px;-webkit-animation-delay:.42s;animation-delay:.42s}.loading-wave-dots[data-v-46b20d22] .wave-item:last-child{margin-left:28px;-webkit-animation-delay:.56s;animation-delay:.56s}@-webkit-keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}@keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}.loading-circles[data-v-46b20d22] .circle-item{width:5px;height:5px;-webkit-animation:loading-circles-data-v-46b20d22 linear .75s infinite;animation:loading-circles-data-v-46b20d22 linear .75s infinite}.loading-circles[data-v-46b20d22] .circle-item:first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles[data-v-46b20d22] .circle-item:last-child{margin-top:-11.26px;margin-left:-11.26px}@-webkit-keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}@keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles[data-v-46b20d22] .bubble-item{background:#666;-webkit-animation:loading-bubbles-data-v-46b20d22 linear .75s infinite;animation:loading-bubbles-data-v-46b20d22 linear .75s infinite}.loading-bubbles[data-v-46b20d22] .bubble-item:first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child{margin-top:-9.26px;margin-left:-9.26px}@-webkit-keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}@keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default[data-v-46b20d22]{position:relative;border:1px solid #999;-webkit-animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite;animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite}.loading-default[data-v-46b20d22]:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral[data-v-46b20d22]{border:2px solid #777;border-right-color:transparent;-webkit-animation:loading-rotating-data-v-46b20d22 linear .85s infinite;animation:loading-rotating-data-v-46b20d22 linear .85s infinite}@-webkit-keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loading-bubbles[data-v-46b20d22],.loading-circles[data-v-46b20d22]{position:relative}.loading-bubbles[data-v-46b20d22] .bubble-item,.loading-circles[data-v-46b20d22] .circle-item{position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2),.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){-webkit-animation-delay:93ms;animation-delay:93ms}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3),.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){-webkit-animation-delay:.186s;animation-delay:.186s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4),.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){-webkit-animation-delay:.279s;animation-delay:.279s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5),.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){-webkit-animation-delay:.372s;animation-delay:.372s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6),.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){-webkit-animation-delay:.465s;animation-delay:.465s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7),.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){-webkit-animation-delay:.558s;animation-delay:.558s}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child,.loading-circles[data-v-46b20d22] .circle-item:last-child{-webkit-animation-delay:.651s;animation-delay:.651s}',""]);},function(t,e,n){n.r(e);var i=n(1),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}));}(r);e.default=a.a;},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".infinite-loading-container[data-v-644ea9c9]{clear:both;text-align:center}.infinite-loading-container[data-v-644ea9c9] [class^=loading-]{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.btn-try-infinite[data-v-644ea9c9]{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite[data-v-644ea9c9]:not(:active):hover{opacity:.8}",""]);},function(t,e,n){n.r(e);var i={throttleLimit:50,loopCheckTimeout:1e3,loopCheckMaxCalls:10},a=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t={passive:!0},!0}});window.addEventListener("testpassive",e,e),window.remove("testpassive",e,e);}catch(t){}return t}(),r={STATE_CHANGER:["emit `loaded` and `complete` event through component instance of `$refs` may cause error, so it will be deprecated soon, please use the `$state` argument instead (`$state` just the special `$event` variable):","\ntemplate:",'<infinite-loading @infinite="infiniteHandler"></infinite-loading>',"\nscript:\n...\ninfiniteHandler($state) {\n ajax('https://www.example.com/api/news')\n .then((res) => {\n if (res.data.length) {\n $state.loaded();\n } else {\n $state.complete();\n }\n });\n}\n...","","more details: https://github.com/PeachScript/vue-infinite-loading/issues/57#issuecomment-324370549"].join("\n"),INFINITE_EVENT:"`:on-infinite` property will be deprecated soon, please use `@infinite` event instead.",IDENTIFIER:"the `reset` event will be deprecated soon, please reset this component by change the `identifier` property."},o={INFINITE_LOOP:["executed the callback function more than ".concat(i.loopCheckMaxCalls," times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper ranther than automatic searching, you can do this:"),'\n\x3c!-- add a special attribute for the real scroll wrapper --\x3e\n<div infinite-wrapper>\n ...\n \x3c!-- set force-use-infinite-wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper></infinite-loading>\n</div>\nor\n<div class="infinite-wrapper">\n ...\n \x3c!-- set force-use-infinite-wrapper as css selector of the real scroll wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper=".infinite-wrapper"></infinite-loading>\n</div>\n ',"more details: https://github.com/PeachScript/vue-infinite-loading/issues/55#issuecomment-316934169"].join("\n")},s={READY:0,LOADING:1,COMPLETE:2,ERROR:3},l={color:"#666",fontSize:"14px",padding:"10px 0"},d={mode:"development",props:{spinner:"default",distance:100,forceUseInfiniteWrapper:!1},system:i,slots:{noResults:"No results :(",noMore:"No more data :)",error:"Opps, something went wrong :(",errorBtnText:"Retry",spinner:""},WARNINGS:r,ERRORS:o,STATUS:s},c=n(4),u=n.n(c),p={BUBBLES:{render:function(t){return t("span",{attrs:{class:"loading-bubbles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"bubble-item"}})})))}},CIRCLES:{render:function(t){return t("span",{attrs:{class:"loading-circles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"circle-item"}})})))}},DEFAULT:{render:function(t){return t("i",{attrs:{class:"loading-default"}})}},SPIRAL:{render:function(t){return t("i",{attrs:{class:"loading-spiral"}})}},WAVEDOTS:{render:function(t){return t("span",{attrs:{class:"loading-wave-dots"}},Array.apply(Array,Array(5)).map((function(){return t("span",{attrs:{class:"wave-item"}})})))}}};function f(t,e,n,i,a,r,o,s){var l,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o);},d._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot);}:a),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(t,e){return l.call(e),c(t,e)};}else {var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l];}return {exports:t,options:d}}var b=f({name:"Spinner",computed:{spinnerView:function(){return p[(this.$attrs.spinner||"").toUpperCase()]||this.spinnerInConfig},spinnerInConfig:function(){return d.slots.spinner&&"string"==typeof d.slots.spinner?{render:function(){return this._v(d.slots.spinner)}}:"object"===u()(d.slots.spinner)?d.slots.spinner:p[d.props.spinner.toUpperCase()]||p.DEFAULT}}},(function(){var t=this.$createElement;return (this._self._c||t)(this.spinnerView,{tag:"component"})}),[],!1,(function(t){var e=n(5);e.__inject__&&e.__inject__(t);}),"46b20d22",null).exports;function h(t){"production"!==d.mode&&console.warn("[Vue-infinite-loading warn]: ".concat(t));}function m(t){console.error("[Vue-infinite-loading error]: ".concat(t));}var g={timers:[],caches:[],throttle:function(t){var e=this;-1===this.caches.indexOf(t)&&(this.caches.push(t),this.timers.push(setTimeout((function(){t(),e.caches.splice(e.caches.indexOf(t),1),e.timers.shift();}),d.system.throttleLimit)));},reset:function(){this.timers.forEach((function(t){clearTimeout(t);})),this.timers.length=0,this.caches=[];}},v={isChecked:!1,timer:null,times:0,track:function(){var t=this;this.times+=1,clearTimeout(this.timer),this.timer=setTimeout((function(){t.isChecked=!0;}),d.system.loopCheckTimeout),this.times>d.system.loopCheckMaxCalls&&(m(o.INFINITE_LOOP),this.isChecked=!0);}},w={key:"_infiniteScrollHeight",getScrollElm:function(t){return t===window?document.documentElement:t},save:function(t){var e=this.getScrollElm(t);e[this.key]=e.scrollHeight;},restore:function(t){var e=this.getScrollElm(t);"number"==typeof e[this.key]&&(e.scrollTop=e.scrollHeight-e[this.key]+e.scrollTop),this.remove(e);},remove:function(t){void 0!==t[this.key]&&delete t[this.key];}};function y(t){return t.replace(/[A-Z]/g,(function(t){return "-".concat(t.toLowerCase())}))}function x(t){return t.offsetWidth+t.offsetHeight>0}var k=f({name:"InfiniteLoading",data:function(){return {scrollParent:null,scrollHandler:null,isFirstLoad:!0,status:s.READY,slots:d.slots}},components:{Spinner:b},computed:{isShowSpinner:function(){return this.status===s.LOADING},isShowError:function(){return this.status===s.ERROR},isShowNoResults:function(){return this.status===s.COMPLETE&&this.isFirstLoad},isShowNoMore:function(){return this.status===s.COMPLETE&&!this.isFirstLoad},slotStyles:function(){var t=this,e={};return Object.keys(d.slots).forEach((function(n){var i=y(n);(!t.$slots[i]&&!d.slots[n].render||t.$slots[i]&&!t.$slots[i][0].tag)&&(e[n]=l);})),e}},props:{distance:{type:Number,default:d.props.distance},spinner:String,direction:{type:String,default:"bottom"},forceUseInfiniteWrapper:{type:[Boolean,String],default:d.props.forceUseInfiniteWrapper},identifier:{default:+new Date},onInfinite:Function},watch:{identifier:function(){this.stateChanger.reset();}},mounted:function(){var t=this;this.$watch("forceUseInfiniteWrapper",(function(){t.scrollParent=t.getScrollParent();}),{immediate:!0}),this.scrollHandler=function(e){t.status===s.READY&&(e&&e.constructor===Event&&x(t.$el)?g.throttle(t.attemptLoad):t.attemptLoad());},setTimeout((function(){t.scrollHandler(),t.scrollParent.addEventListener("scroll",t.scrollHandler,a);}),1),this.$on("$InfiniteLoading:loaded",(function(e){t.isFirstLoad=!1,"top"===t.direction&&t.$nextTick((function(){w.restore(t.scrollParent);})),t.status===s.LOADING&&t.$nextTick(t.attemptLoad.bind(null,!0)),e&&e.target===t||h(r.STATE_CHANGER);})),this.$on("$InfiniteLoading:complete",(function(e){t.status=s.COMPLETE,t.$nextTick((function(){t.$forceUpdate();})),t.scrollParent.removeEventListener("scroll",t.scrollHandler,a),e&&e.target===t||h(r.STATE_CHANGER);})),this.$on("$InfiniteLoading:reset",(function(e){t.status=s.READY,t.isFirstLoad=!0,w.remove(t.scrollParent),t.scrollParent.addEventListener("scroll",t.scrollHandler,a),setTimeout((function(){g.reset(),t.scrollHandler();}),1),e&&e.target===t||h(r.IDENTIFIER);})),this.stateChanger={loaded:function(){t.$emit("$InfiniteLoading:loaded",{target:t});},complete:function(){t.$emit("$InfiniteLoading:complete",{target:t});},reset:function(){t.$emit("$InfiniteLoading:reset",{target:t});},error:function(){t.status=s.ERROR,g.reset();}},this.onInfinite&&h(r.INFINITE_EVENT);},deactivated:function(){this.status===s.LOADING&&(this.status=s.READY),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a);},activated:function(){this.scrollParent.addEventListener("scroll",this.scrollHandler,a);},methods:{attemptLoad:function(t){var e=this;this.status!==s.COMPLETE&&x(this.$el)&&this.getCurrentDistance()<=this.distance?(this.status=s.LOADING,"top"===this.direction&&this.$nextTick((function(){w.save(e.scrollParent);})),"function"==typeof this.onInfinite?this.onInfinite.call(null,this.stateChanger):this.$emit("infinite",this.stateChanger),!t||this.forceUseInfiniteWrapper||v.isChecked||v.track()):this.status===s.LOADING&&(this.status=s.READY);},getCurrentDistance:function(){var t;"top"===this.direction?t="number"==typeof this.scrollParent.scrollTop?this.scrollParent.scrollTop:this.scrollParent.pageYOffset:t=this.$el.getBoundingClientRect().top-(this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom);return t},getScrollParent:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$el;return "string"==typeof this.forceUseInfiniteWrapper&&(t=document.querySelector(this.forceUseInfiniteWrapper)),t||("BODY"===e.tagName?t=window:!this.forceUseInfiniteWrapper&&["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>-1?t=e:(e.hasAttribute("infinite-wrapper")||e.hasAttribute("data-infinite-wrapper"))&&(t=e)),t||this.getScrollParent(e.parentNode)}},destroyed:function(){!this.status!==s.COMPLETE&&(g.reset(),w.remove(this.scrollParent),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a));}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"infinite-loading-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSpinner,expression:"isShowSpinner"}],staticClass:"infinite-status-prompt",style:t.slotStyles.spinner},[t._t("spinner",[n("spinner",{attrs:{spinner:t.spinner}})])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoResults,expression:"isShowNoResults"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noResults},[t._t("no-results",[t.slots.noResults.render?n(t.slots.noResults,{tag:"component"}):[t._v(t._s(t.slots.noResults))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoMore,expression:"isShowNoMore"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noMore},[t._t("no-more",[t.slots.noMore.render?n(t.slots.noMore,{tag:"component"}):[t._v(t._s(t.slots.noMore))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowError,expression:"isShowError"}],staticClass:"infinite-status-prompt",style:t.slotStyles.error},[t._t("error",[t.slots.error.render?n(t.slots.error,{tag:"component",attrs:{trigger:t.attemptLoad}}):[t._v("\n "+t._s(t.slots.error)+"\n "),n("br"),t._v(" "),n("button",{staticClass:"btn-try-infinite",domProps:{textContent:t._s(t.slots.errorBtnText)},on:{click:t.attemptLoad}})]],{trigger:t.attemptLoad})],2)])}),[],!1,(function(t){var e=n(7);e.__inject__&&e.__inject__(t);}),"644ea9c9",null).exports;function E(t){d.mode=t.config.productionTip?"development":"production";}Object.defineProperty(k,"install",{configurable:!1,enumerable:!1,value:function(t,e){Object.assign(d.props,e&&e.props),Object.assign(d.slots,e&&e.slots),Object.assign(d.system,e&&e.system),t.component("infinite-loading",k),E(t);}}),"undefined"!=typeof window&&window.Vue&&(window.Vue.component("infinite-loading",k),E(window.Vue));e.default=k;}])}));
|
|
11873
|
+
} (vueInfiniteLoading, vueInfiniteLoading.exports));
|
|
11876
11874
|
|
|
11875
|
+
var vueInfiniteLoadingExports = vueInfiniteLoading.exports;
|
|
11877
11876
|
var InfiniteLoading = /*@__PURE__*/getDefaultExportFromCjs(vueInfiniteLoadingExports);
|
|
11878
11877
|
|
|
11879
11878
|
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
11880
11879
|
|
|
11881
|
-
var css = "tr td[data-v-
|
|
11880
|
+
var css = "tr td[data-v-3e65ccf8]:last-child,\ntr td[data-v-3e65ccf8]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-3e65ccf8] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-3e65ccf8] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-3e65ccf8] .crud-title[data-v-3e65ccf8] {\n margin: 0; }\n .crud-header[data-v-3e65ccf8] .crud-search[data-v-3e65ccf8] {\n max-width: 15rem; }\n .crud-header[data-v-3e65ccf8] .crud-search[data-v-3e65ccf8] .btn[data-v-3e65ccf8] {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem; }\n .crud-header[data-v-3e65ccf8] .crud-search[data-v-3e65ccf8] .btn[data-v-3e65ccf8].open[data-v-3e65ccf8] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-3e65ccf8] .table-options[data-v-3e65ccf8] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-3e65ccf8] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-3e65ccf8] {\n table-layout: auto; }\n .table[data-v-3e65ccf8] tbody[data-v-3e65ccf8] td[data-v-3e65ccf8] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-3e65ccf8] tbody[data-v-3e65ccf8] td[data-v-3e65ccf8]::-webkit-scrollbar {\n display: none; } }\n";
|
|
11882
11881
|
n(css, {});
|
|
11883
11882
|
|
|
11884
11883
|
function normalizeComponent (
|
|
@@ -12013,7 +12012,8 @@ const _sfc_main = {
|
|
|
12013
12012
|
infiniteScrollKey: 1,
|
|
12014
12013
|
optionsLoaded: false,
|
|
12015
12014
|
isMobile: false,
|
|
12016
|
-
refreshing: false
|
|
12015
|
+
refreshing: false,
|
|
12016
|
+
fetchError: false
|
|
12017
12017
|
};
|
|
12018
12018
|
},
|
|
12019
12019
|
watch: {
|
|
@@ -12274,6 +12274,10 @@ const _sfc_main = {
|
|
|
12274
12274
|
};
|
|
12275
12275
|
}
|
|
12276
12276
|
},
|
|
12277
|
+
masonryEnabled: {
|
|
12278
|
+
type: Boolean,
|
|
12279
|
+
default: false
|
|
12280
|
+
},
|
|
12277
12281
|
masonrySort: {
|
|
12278
12282
|
type: Boolean,
|
|
12279
12283
|
default: false
|
|
@@ -12394,6 +12398,7 @@ const _sfc_main = {
|
|
|
12394
12398
|
if (hasNextPage) {
|
|
12395
12399
|
const page = this.pagination.current_page + 1;
|
|
12396
12400
|
this.fetchItems(page, true).then(() => {
|
|
12401
|
+
console.debug("infinite handler then");
|
|
12397
12402
|
$state.loaded();
|
|
12398
12403
|
}).catch(error => {
|
|
12399
12404
|
console.debug("infinite handler error", error);
|
|
@@ -12403,8 +12408,7 @@ const _sfc_main = {
|
|
|
12403
12408
|
$state.complete();
|
|
12404
12409
|
}
|
|
12405
12410
|
},
|
|
12406
|
-
rearrangeArray(originalArray) {
|
|
12407
|
-
let columns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
|
|
12411
|
+
rearrangeArray(originalArray, columns = 3) {
|
|
12408
12412
|
const rearrangedArray = [];
|
|
12409
12413
|
for (let i = 0; i < columns; i++) {
|
|
12410
12414
|
for (let j = i; j < originalArray.length; j += columns) {
|
|
@@ -12468,8 +12472,7 @@ const _sfc_main = {
|
|
|
12468
12472
|
this.filterSidebarOpen = false;
|
|
12469
12473
|
}
|
|
12470
12474
|
},
|
|
12471
|
-
resetFilters() {
|
|
12472
|
-
let refresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
12475
|
+
resetFilters(refresh = true) {
|
|
12473
12476
|
this.internalFilters = [];
|
|
12474
12477
|
this.setupFilters();
|
|
12475
12478
|
this.forceRecomputeCounter++;
|
|
@@ -12529,9 +12532,7 @@ const _sfc_main = {
|
|
|
12529
12532
|
this.selectedItems.push(this.item);
|
|
12530
12533
|
}
|
|
12531
12534
|
},
|
|
12532
|
-
externalUpdate(itemsUpdate) {
|
|
12533
|
-
let addIfNotExist = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
12534
|
-
let key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'id';
|
|
12535
|
+
externalUpdate(itemsUpdate, addIfNotExist = true, key = 'id') {
|
|
12535
12536
|
itemsUpdate.forEach(itemUpdate => {
|
|
12536
12537
|
let itemInList = this.items.find(item => item[key] === itemUpdate[key]);
|
|
12537
12538
|
if (itemInList) Object.assign(itemInList, itemUpdate);else {
|
|
@@ -12547,8 +12548,7 @@ const _sfc_main = {
|
|
|
12547
12548
|
onSelect() {
|
|
12548
12549
|
this.$emit("select", this.item);
|
|
12549
12550
|
},
|
|
12550
|
-
showItem(id) {
|
|
12551
|
-
let itemIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
12551
|
+
showItem(id, itemIndex = null) {
|
|
12552
12552
|
if (itemIndex == null) {
|
|
12553
12553
|
let item = this.items.find(it => it.id == id);
|
|
12554
12554
|
this.item = item;
|
|
@@ -12567,8 +12567,7 @@ const _sfc_main = {
|
|
|
12567
12567
|
this.onSelect();
|
|
12568
12568
|
this.$bvModal.show("modal-form-item-" + this.modelName);
|
|
12569
12569
|
},
|
|
12570
|
-
updateItem(id) {
|
|
12571
|
-
let itemIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
12570
|
+
updateItem(id, itemIndex = null) {
|
|
12572
12571
|
if (itemIndex == null) {
|
|
12573
12572
|
let item = this.items.find(it => it.id == id);
|
|
12574
12573
|
this.item = item;
|
|
@@ -12613,8 +12612,7 @@ const _sfc_main = {
|
|
|
12613
12612
|
this.refresh();
|
|
12614
12613
|
}, 1);
|
|
12615
12614
|
},
|
|
12616
|
-
async fetchItemsVuex() {
|
|
12617
|
-
let page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
12615
|
+
async fetchItemsVuex(page = 1, concat = false) {
|
|
12618
12616
|
this.loading = true;
|
|
12619
12617
|
this.$emit("beforeFetch", {});
|
|
12620
12618
|
this.model.deleteAll();
|
|
@@ -12635,9 +12633,7 @@ const _sfc_main = {
|
|
|
12635
12633
|
this.loading = false;
|
|
12636
12634
|
this.firstLoad = true;
|
|
12637
12635
|
},
|
|
12638
|
-
fetchItems() {
|
|
12639
|
-
let page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
12640
|
-
let concat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
12636
|
+
fetchItems(page = 1, concat = false) {
|
|
12641
12637
|
if (!this.ajax) {
|
|
12642
12638
|
return;
|
|
12643
12639
|
}
|
|
@@ -12700,6 +12696,8 @@ const _sfc_main = {
|
|
|
12700
12696
|
//console.debug(error);
|
|
12701
12697
|
this.toastError(error);
|
|
12702
12698
|
this.loading = false;
|
|
12699
|
+
this.firstLoad = true;
|
|
12700
|
+
this.fetchError = true;
|
|
12703
12701
|
});
|
|
12704
12702
|
},
|
|
12705
12703
|
removeItem(id, index) {
|
|
@@ -12756,7 +12754,6 @@ const _sfc_main = {
|
|
|
12756
12754
|
console.error("Cannot delete item without ID or index");
|
|
12757
12755
|
// You might want to show an error message or handle it in a way that fits your application.
|
|
12758
12756
|
}
|
|
12759
|
-
|
|
12760
12757
|
this.loading = false;
|
|
12761
12758
|
},
|
|
12762
12759
|
async deleteItemVuex(id, index) {
|
|
@@ -12799,8 +12796,7 @@ const _sfc_main = {
|
|
|
12799
12796
|
});
|
|
12800
12797
|
}
|
|
12801
12798
|
},
|
|
12802
|
-
getArrayValue(value, displayProp) {
|
|
12803
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
12799
|
+
getArrayValue(value, displayProp, options = []) {
|
|
12804
12800
|
if (!Array.isArray(value)) return "N/A";
|
|
12805
12801
|
let values = [];
|
|
12806
12802
|
let valuesFinal = [];
|
|
@@ -12835,7 +12831,7 @@ const _sfc_main = {
|
|
|
12835
12831
|
});
|
|
12836
12832
|
return ops.join(", ");
|
|
12837
12833
|
},
|
|
12838
|
-
async saveItemVuex() {
|
|
12834
|
+
async saveItemVuex(event = null) {
|
|
12839
12835
|
console.debug("save item 1", this.item);
|
|
12840
12836
|
let jsondata = this.item.$toJson();
|
|
12841
12837
|
console.debug("save item 2", this.item, jsondata);
|
|
@@ -12855,7 +12851,6 @@ const _sfc_main = {
|
|
|
12855
12851
|
return;
|
|
12856
12852
|
//throw new Error('Something is wrong.')
|
|
12857
12853
|
}
|
|
12858
|
-
|
|
12859
12854
|
result.save();
|
|
12860
12855
|
if (this.refreshAfterSave) this.refresh();
|
|
12861
12856
|
this.loading = false;
|
|
@@ -12864,7 +12859,7 @@ const _sfc_main = {
|
|
|
12864
12859
|
this.$bvModal.hide("modal-form-item-" + this.modelName);
|
|
12865
12860
|
}
|
|
12866
12861
|
},
|
|
12867
|
-
async saveItemLocal() {
|
|
12862
|
+
async saveItemLocal(event = null) {
|
|
12868
12863
|
const itemSave = JSON.parse(JSON.stringify(this.item));
|
|
12869
12864
|
if (this.item.id || this.item.index) {
|
|
12870
12865
|
let itemIndex;
|
|
@@ -12902,8 +12897,7 @@ const _sfc_main = {
|
|
|
12902
12897
|
}
|
|
12903
12898
|
this.optionsLoaded = true;
|
|
12904
12899
|
},
|
|
12905
|
-
async saveItem() {
|
|
12906
|
-
let event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
12900
|
+
async saveItem(event = null) {
|
|
12907
12901
|
this.loading = true;
|
|
12908
12902
|
if (this.validate) {
|
|
12909
12903
|
this.messageDefaultValidationError;
|
|
@@ -13170,7 +13164,7 @@ var _sfc_render = function render() {
|
|
|
13170
13164
|
callback: function ($$v) {
|
|
13171
13165
|
_vm.$set(_vm.internalFilterByProp(column.prop + '_from'), "value", $$v);
|
|
13172
13166
|
},
|
|
13173
|
-
expression: "internalFilterByProp(column.prop + '_from').value\n
|
|
13167
|
+
expression: "internalFilterByProp(column.prop + '_from').value\n "
|
|
13174
13168
|
}
|
|
13175
13169
|
})], 1), _c('div', {
|
|
13176
13170
|
staticClass: "col-6"
|
|
@@ -13186,7 +13180,7 @@ var _sfc_render = function render() {
|
|
|
13186
13180
|
callback: function ($$v) {
|
|
13187
13181
|
_vm.$set(_vm.internalFilterByProp(column.prop + '_to'), "value", $$v);
|
|
13188
13182
|
},
|
|
13189
|
-
expression: "internalFilterByProp(column.prop + '_to').value\n
|
|
13183
|
+
expression: "internalFilterByProp(column.prop + '_to').value\n "
|
|
13190
13184
|
}
|
|
13191
13185
|
})], 1)])]) : column.type == 'state' ? _c('div', {
|
|
13192
13186
|
staticClass: "form-group"
|
|
@@ -13452,7 +13446,7 @@ var _sfc_render = function render() {
|
|
|
13452
13446
|
callback: function ($$v) {
|
|
13453
13447
|
_vm.$set(_vm.internalFilterByProp(column.prop + '_from'), "value", $$v);
|
|
13454
13448
|
},
|
|
13455
|
-
expression: "internalFilterByProp(column.prop + '_from').value\n
|
|
13449
|
+
expression: "internalFilterByProp(column.prop + '_from').value\n "
|
|
13456
13450
|
}
|
|
13457
13451
|
})], 1), _c('div', {
|
|
13458
13452
|
staticClass: "col-6"
|
|
@@ -13469,7 +13463,7 @@ var _sfc_render = function render() {
|
|
|
13469
13463
|
callback: function ($$v) {
|
|
13470
13464
|
_vm.$set(_vm.internalFilterByProp(column.prop + '_to'), "value", $$v);
|
|
13471
13465
|
},
|
|
13472
|
-
expression: "internalFilterByProp(column.prop + '_to').value\n
|
|
13466
|
+
expression: "internalFilterByProp(column.prop + '_to').value\n "
|
|
13473
13467
|
}
|
|
13474
13468
|
})], 1)]) : column.type == 'state' && _vm.optionsLoaded ? _c('select', {
|
|
13475
13469
|
directives: [{
|
|
@@ -13742,6 +13736,19 @@ var _sfc_render = function render() {
|
|
|
13742
13736
|
},
|
|
13743
13737
|
expression: "items"
|
|
13744
13738
|
}
|
|
13739
|
+
}, [_c('masonry', {
|
|
13740
|
+
attrs: {
|
|
13741
|
+
"cols": {
|
|
13742
|
+
default: _vm.colLg,
|
|
13743
|
+
1000: _vm.colMd,
|
|
13744
|
+
700: _vm.colSm,
|
|
13745
|
+
400: _vm.colXs
|
|
13746
|
+
},
|
|
13747
|
+
"gutter": {
|
|
13748
|
+
default: '30px',
|
|
13749
|
+
700: '15px'
|
|
13750
|
+
}
|
|
13751
|
+
}
|
|
13745
13752
|
}, _vm._l(_vm.itemsList, function (item, index) {
|
|
13746
13753
|
return _c('b-col', {
|
|
13747
13754
|
key: index,
|
|
@@ -13827,7 +13834,7 @@ var _sfc_render = function render() {
|
|
|
13827
13834
|
}, {
|
|
13828
13835
|
"item": item
|
|
13829
13836
|
})], 2)], 1);
|
|
13830
|
-
}), 1), !_vm.loading && _vm.items && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
|
|
13837
|
+
}), 1)], 1), !_vm.loading && _vm.items && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
|
|
13831
13838
|
staticClass: "p-3"
|
|
13832
13839
|
}, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e()], 1) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CUSTOM ? _c('div', [_c('div', {
|
|
13833
13840
|
class: _vm.listContainerClass
|
|
@@ -14013,7 +14020,7 @@ var _sfc_render = function render() {
|
|
|
14013
14020
|
}) : _vm._e()], 2)], 1);
|
|
14014
14021
|
};
|
|
14015
14022
|
var _sfc_staticRenderFns = [];
|
|
14016
|
-
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "
|
|
14023
|
+
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "3e65ccf8", null, null);
|
|
14017
14024
|
var component = __component__.exports;
|
|
14018
14025
|
|
|
14019
14026
|
// Import vue component
|