vue-laravel-crud 1.5.13 → 1.6.1
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 +666 -418
- package/dist/vue-laravel-crud.min.js +3 -10
- package/dist/vue-laravel-crud.ssr.js +910 -654
- package/package.json +3 -1
- package/src/vue-laravel-crud.vue +21 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import 'vue';
|
|
2
|
+
|
|
1
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
4
|
|
|
3
5
|
function getDefaultExportFromCjs (x) {
|
|
@@ -32,11 +34,7 @@ function getAugmentedNamespace(n) {
|
|
|
32
34
|
return a;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
var
|
|
36
|
-
var vuedraggable_umd = {
|
|
37
|
-
get exports(){ return vuedraggable_umdExports; },
|
|
38
|
-
set exports(v){ vuedraggable_umdExports = v; },
|
|
39
|
-
};
|
|
37
|
+
var vuedraggable_umd = {exports: {}};
|
|
40
38
|
|
|
41
39
|
/**!
|
|
42
40
|
* Sortable 1.10.2
|
|
@@ -3745,6 +3743,8 @@ var sortable_esm = /*#__PURE__*/Object.freeze({
|
|
|
3745
3743
|
|
|
3746
3744
|
var require$$0 = /*@__PURE__*/getAugmentedNamespace(sortable_esm);
|
|
3747
3745
|
|
|
3746
|
+
vuedraggable_umd.exports;
|
|
3747
|
+
|
|
3748
3748
|
(function (module, exports) {
|
|
3749
3749
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
3750
3750
|
module.exports = factory(require$$0);
|
|
@@ -6163,19 +6163,18 @@ var require$$0 = /*@__PURE__*/getAugmentedNamespace(sortable_esm);
|
|
|
6163
6163
|
/******/ })["default"];
|
|
6164
6164
|
});
|
|
6165
6165
|
|
|
6166
|
-
} (vuedraggable_umd));
|
|
6166
|
+
} (vuedraggable_umd, vuedraggable_umd.exports));
|
|
6167
6167
|
|
|
6168
|
+
var vuedraggable_umdExports = vuedraggable_umd.exports;
|
|
6168
6169
|
var draggable = /*@__PURE__*/getDefaultExportFromCjs(vuedraggable_umdExports);
|
|
6169
6170
|
|
|
6170
6171
|
function commonjsRequire(path) {
|
|
6171
6172
|
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
6173
|
}
|
|
6173
6174
|
|
|
6174
|
-
var
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
set exports(v){ momentExports = v; },
|
|
6178
|
-
};
|
|
6175
|
+
var moment$1 = {exports: {}};
|
|
6176
|
+
|
|
6177
|
+
moment$1.exports;
|
|
6179
6178
|
|
|
6180
6179
|
(function (module, exports) {
|
|
6181
6180
|
(function (global, factory) {
|
|
@@ -6326,24 +6325,25 @@ var moment$1 = {
|
|
|
6326
6325
|
}
|
|
6327
6326
|
|
|
6328
6327
|
function isValid(m) {
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6328
|
+
var flags = null,
|
|
6329
|
+
parsedParts = false,
|
|
6330
|
+
isNowValid = m._d && !isNaN(m._d.getTime());
|
|
6331
|
+
if (isNowValid) {
|
|
6332
|
+
flags = getParsingFlags(m);
|
|
6333
|
+
parsedParts = some.call(flags.parsedDateParts, function (i) {
|
|
6334
|
+
return i != null;
|
|
6335
|
+
});
|
|
6336
|
+
isNowValid =
|
|
6337
|
+
flags.overflow < 0 &&
|
|
6338
|
+
!flags.empty &&
|
|
6339
|
+
!flags.invalidEra &&
|
|
6340
|
+
!flags.invalidMonth &&
|
|
6341
|
+
!flags.invalidWeekday &&
|
|
6342
|
+
!flags.weekdayMismatch &&
|
|
6343
|
+
!flags.nullInput &&
|
|
6344
|
+
!flags.invalidFormat &&
|
|
6345
|
+
!flags.userInvalidated &&
|
|
6346
|
+
(!flags.meridiem || (flags.meridiem && parsedParts));
|
|
6347
6347
|
if (m._strict) {
|
|
6348
6348
|
isNowValid =
|
|
6349
6349
|
isNowValid &&
|
|
@@ -6351,12 +6351,11 @@ var moment$1 = {
|
|
|
6351
6351
|
flags.unusedTokens.length === 0 &&
|
|
6352
6352
|
flags.bigHour === undefined;
|
|
6353
6353
|
}
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
}
|
|
6354
|
+
}
|
|
6355
|
+
if (Object.isFrozen == null || !Object.isFrozen(m)) {
|
|
6356
|
+
m._isValid = isNowValid;
|
|
6357
|
+
} else {
|
|
6358
|
+
return isNowValid;
|
|
6360
6359
|
}
|
|
6361
6360
|
return m._isValid;
|
|
6362
6361
|
}
|
|
@@ -6801,12 +6800,56 @@ var moment$1 = {
|
|
|
6801
6800
|
return isFunction(format) ? format(output) : format.replace(/%s/i, output);
|
|
6802
6801
|
}
|
|
6803
6802
|
|
|
6804
|
-
var aliases = {
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6803
|
+
var aliases = {
|
|
6804
|
+
D: 'date',
|
|
6805
|
+
dates: 'date',
|
|
6806
|
+
date: 'date',
|
|
6807
|
+
d: 'day',
|
|
6808
|
+
days: 'day',
|
|
6809
|
+
day: 'day',
|
|
6810
|
+
e: 'weekday',
|
|
6811
|
+
weekdays: 'weekday',
|
|
6812
|
+
weekday: 'weekday',
|
|
6813
|
+
E: 'isoWeekday',
|
|
6814
|
+
isoweekdays: 'isoWeekday',
|
|
6815
|
+
isoweekday: 'isoWeekday',
|
|
6816
|
+
DDD: 'dayOfYear',
|
|
6817
|
+
dayofyears: 'dayOfYear',
|
|
6818
|
+
dayofyear: 'dayOfYear',
|
|
6819
|
+
h: 'hour',
|
|
6820
|
+
hours: 'hour',
|
|
6821
|
+
hour: 'hour',
|
|
6822
|
+
ms: 'millisecond',
|
|
6823
|
+
milliseconds: 'millisecond',
|
|
6824
|
+
millisecond: 'millisecond',
|
|
6825
|
+
m: 'minute',
|
|
6826
|
+
minutes: 'minute',
|
|
6827
|
+
minute: 'minute',
|
|
6828
|
+
M: 'month',
|
|
6829
|
+
months: 'month',
|
|
6830
|
+
month: 'month',
|
|
6831
|
+
Q: 'quarter',
|
|
6832
|
+
quarters: 'quarter',
|
|
6833
|
+
quarter: 'quarter',
|
|
6834
|
+
s: 'second',
|
|
6835
|
+
seconds: 'second',
|
|
6836
|
+
second: 'second',
|
|
6837
|
+
gg: 'weekYear',
|
|
6838
|
+
weekyears: 'weekYear',
|
|
6839
|
+
weekyear: 'weekYear',
|
|
6840
|
+
GG: 'isoWeekYear',
|
|
6841
|
+
isoweekyears: 'isoWeekYear',
|
|
6842
|
+
isoweekyear: 'isoWeekYear',
|
|
6843
|
+
w: 'week',
|
|
6844
|
+
weeks: 'week',
|
|
6845
|
+
week: 'week',
|
|
6846
|
+
W: 'isoWeek',
|
|
6847
|
+
isoweeks: 'isoWeek',
|
|
6848
|
+
isoweek: 'isoWeek',
|
|
6849
|
+
y: 'year',
|
|
6850
|
+
years: 'year',
|
|
6851
|
+
year: 'year',
|
|
6852
|
+
};
|
|
6810
6853
|
|
|
6811
6854
|
function normalizeUnits(units) {
|
|
6812
6855
|
return typeof units === 'string'
|
|
@@ -6831,11 +6874,24 @@ var moment$1 = {
|
|
|
6831
6874
|
return normalizedInput;
|
|
6832
6875
|
}
|
|
6833
6876
|
|
|
6834
|
-
var priorities = {
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6877
|
+
var priorities = {
|
|
6878
|
+
date: 9,
|
|
6879
|
+
day: 11,
|
|
6880
|
+
weekday: 11,
|
|
6881
|
+
isoWeekday: 11,
|
|
6882
|
+
dayOfYear: 4,
|
|
6883
|
+
hour: 13,
|
|
6884
|
+
millisecond: 16,
|
|
6885
|
+
minute: 14,
|
|
6886
|
+
month: 8,
|
|
6887
|
+
quarter: 7,
|
|
6888
|
+
second: 15,
|
|
6889
|
+
weekYear: 1,
|
|
6890
|
+
isoWeekYear: 1,
|
|
6891
|
+
week: 5,
|
|
6892
|
+
isoWeek: 5,
|
|
6893
|
+
year: 1,
|
|
6894
|
+
};
|
|
6839
6895
|
|
|
6840
6896
|
function getPrioritizedUnits(unitsObj) {
|
|
6841
6897
|
var units = [],
|
|
@@ -6851,96 +6907,6 @@ var moment$1 = {
|
|
|
6851
6907
|
return units;
|
|
6852
6908
|
}
|
|
6853
6909
|
|
|
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
6910
|
var match1 = /\d/, // 0 - 9
|
|
6945
6911
|
match2 = /\d\d/, // 00 - 99
|
|
6946
6912
|
match3 = /\d{3}/, // 000 - 999
|
|
@@ -6961,6 +6927,8 @@ var moment$1 = {
|
|
|
6961
6927
|
// includes scottish gaelic two word and hyphenated months
|
|
6962
6928
|
matchWord =
|
|
6963
6929
|
/[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,
|
|
6930
|
+
match1to2NoLeadingZero = /^[1-9]\d?/, // 1-99
|
|
6931
|
+
match1to2HasZero = /^([1-9]\d|\d)/, // 0-99
|
|
6964
6932
|
regexes;
|
|
6965
6933
|
|
|
6966
6934
|
regexes = {};
|
|
@@ -6999,6 +6967,26 @@ var moment$1 = {
|
|
|
6999
6967
|
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
7000
6968
|
}
|
|
7001
6969
|
|
|
6970
|
+
function absFloor(number) {
|
|
6971
|
+
if (number < 0) {
|
|
6972
|
+
// -0 -> 0
|
|
6973
|
+
return Math.ceil(number) || 0;
|
|
6974
|
+
} else {
|
|
6975
|
+
return Math.floor(number);
|
|
6976
|
+
}
|
|
6977
|
+
}
|
|
6978
|
+
|
|
6979
|
+
function toInt(argumentForCoercion) {
|
|
6980
|
+
var coercedNumber = +argumentForCoercion,
|
|
6981
|
+
value = 0;
|
|
6982
|
+
|
|
6983
|
+
if (coercedNumber !== 0 && isFinite(coercedNumber)) {
|
|
6984
|
+
value = absFloor(coercedNumber);
|
|
6985
|
+
}
|
|
6986
|
+
|
|
6987
|
+
return value;
|
|
6988
|
+
}
|
|
6989
|
+
|
|
7002
6990
|
var tokens = {};
|
|
7003
6991
|
|
|
7004
6992
|
function addParseToken(token, callback) {
|
|
@@ -7032,6 +7020,10 @@ var moment$1 = {
|
|
|
7032
7020
|
}
|
|
7033
7021
|
}
|
|
7034
7022
|
|
|
7023
|
+
function isLeapYear(year) {
|
|
7024
|
+
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
|
|
7025
|
+
}
|
|
7026
|
+
|
|
7035
7027
|
var YEAR = 0,
|
|
7036
7028
|
MONTH = 1,
|
|
7037
7029
|
DATE = 2,
|
|
@@ -7042,6 +7034,173 @@ var moment$1 = {
|
|
|
7042
7034
|
WEEK = 7,
|
|
7043
7035
|
WEEKDAY = 8;
|
|
7044
7036
|
|
|
7037
|
+
// FORMATTING
|
|
7038
|
+
|
|
7039
|
+
addFormatToken('Y', 0, 0, function () {
|
|
7040
|
+
var y = this.year();
|
|
7041
|
+
return y <= 9999 ? zeroFill(y, 4) : '+' + y;
|
|
7042
|
+
});
|
|
7043
|
+
|
|
7044
|
+
addFormatToken(0, ['YY', 2], 0, function () {
|
|
7045
|
+
return this.year() % 100;
|
|
7046
|
+
});
|
|
7047
|
+
|
|
7048
|
+
addFormatToken(0, ['YYYY', 4], 0, 'year');
|
|
7049
|
+
addFormatToken(0, ['YYYYY', 5], 0, 'year');
|
|
7050
|
+
addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
|
|
7051
|
+
|
|
7052
|
+
// PARSING
|
|
7053
|
+
|
|
7054
|
+
addRegexToken('Y', matchSigned);
|
|
7055
|
+
addRegexToken('YY', match1to2, match2);
|
|
7056
|
+
addRegexToken('YYYY', match1to4, match4);
|
|
7057
|
+
addRegexToken('YYYYY', match1to6, match6);
|
|
7058
|
+
addRegexToken('YYYYYY', match1to6, match6);
|
|
7059
|
+
|
|
7060
|
+
addParseToken(['YYYYY', 'YYYYYY'], YEAR);
|
|
7061
|
+
addParseToken('YYYY', function (input, array) {
|
|
7062
|
+
array[YEAR] =
|
|
7063
|
+
input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
|
|
7064
|
+
});
|
|
7065
|
+
addParseToken('YY', function (input, array) {
|
|
7066
|
+
array[YEAR] = hooks.parseTwoDigitYear(input);
|
|
7067
|
+
});
|
|
7068
|
+
addParseToken('Y', function (input, array) {
|
|
7069
|
+
array[YEAR] = parseInt(input, 10);
|
|
7070
|
+
});
|
|
7071
|
+
|
|
7072
|
+
// HELPERS
|
|
7073
|
+
|
|
7074
|
+
function daysInYear(year) {
|
|
7075
|
+
return isLeapYear(year) ? 366 : 365;
|
|
7076
|
+
}
|
|
7077
|
+
|
|
7078
|
+
// HOOKS
|
|
7079
|
+
|
|
7080
|
+
hooks.parseTwoDigitYear = function (input) {
|
|
7081
|
+
return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
|
|
7082
|
+
};
|
|
7083
|
+
|
|
7084
|
+
// MOMENTS
|
|
7085
|
+
|
|
7086
|
+
var getSetYear = makeGetSet('FullYear', true);
|
|
7087
|
+
|
|
7088
|
+
function getIsLeapYear() {
|
|
7089
|
+
return isLeapYear(this.year());
|
|
7090
|
+
}
|
|
7091
|
+
|
|
7092
|
+
function makeGetSet(unit, keepTime) {
|
|
7093
|
+
return function (value) {
|
|
7094
|
+
if (value != null) {
|
|
7095
|
+
set$1(this, unit, value);
|
|
7096
|
+
hooks.updateOffset(this, keepTime);
|
|
7097
|
+
return this;
|
|
7098
|
+
} else {
|
|
7099
|
+
return get(this, unit);
|
|
7100
|
+
}
|
|
7101
|
+
};
|
|
7102
|
+
}
|
|
7103
|
+
|
|
7104
|
+
function get(mom, unit) {
|
|
7105
|
+
if (!mom.isValid()) {
|
|
7106
|
+
return NaN;
|
|
7107
|
+
}
|
|
7108
|
+
|
|
7109
|
+
var d = mom._d,
|
|
7110
|
+
isUTC = mom._isUTC;
|
|
7111
|
+
|
|
7112
|
+
switch (unit) {
|
|
7113
|
+
case 'Milliseconds':
|
|
7114
|
+
return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();
|
|
7115
|
+
case 'Seconds':
|
|
7116
|
+
return isUTC ? d.getUTCSeconds() : d.getSeconds();
|
|
7117
|
+
case 'Minutes':
|
|
7118
|
+
return isUTC ? d.getUTCMinutes() : d.getMinutes();
|
|
7119
|
+
case 'Hours':
|
|
7120
|
+
return isUTC ? d.getUTCHours() : d.getHours();
|
|
7121
|
+
case 'Date':
|
|
7122
|
+
return isUTC ? d.getUTCDate() : d.getDate();
|
|
7123
|
+
case 'Day':
|
|
7124
|
+
return isUTC ? d.getUTCDay() : d.getDay();
|
|
7125
|
+
case 'Month':
|
|
7126
|
+
return isUTC ? d.getUTCMonth() : d.getMonth();
|
|
7127
|
+
case 'FullYear':
|
|
7128
|
+
return isUTC ? d.getUTCFullYear() : d.getFullYear();
|
|
7129
|
+
default:
|
|
7130
|
+
return NaN; // Just in case
|
|
7131
|
+
}
|
|
7132
|
+
}
|
|
7133
|
+
|
|
7134
|
+
function set$1(mom, unit, value) {
|
|
7135
|
+
var d, isUTC, year, month, date;
|
|
7136
|
+
|
|
7137
|
+
if (!mom.isValid() || isNaN(value)) {
|
|
7138
|
+
return;
|
|
7139
|
+
}
|
|
7140
|
+
|
|
7141
|
+
d = mom._d;
|
|
7142
|
+
isUTC = mom._isUTC;
|
|
7143
|
+
|
|
7144
|
+
switch (unit) {
|
|
7145
|
+
case 'Milliseconds':
|
|
7146
|
+
return void (isUTC
|
|
7147
|
+
? d.setUTCMilliseconds(value)
|
|
7148
|
+
: d.setMilliseconds(value));
|
|
7149
|
+
case 'Seconds':
|
|
7150
|
+
return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));
|
|
7151
|
+
case 'Minutes':
|
|
7152
|
+
return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));
|
|
7153
|
+
case 'Hours':
|
|
7154
|
+
return void (isUTC ? d.setUTCHours(value) : d.setHours(value));
|
|
7155
|
+
case 'Date':
|
|
7156
|
+
return void (isUTC ? d.setUTCDate(value) : d.setDate(value));
|
|
7157
|
+
// case 'Day': // Not real
|
|
7158
|
+
// return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
|
|
7159
|
+
// case 'Month': // Not used because we need to pass two variables
|
|
7160
|
+
// return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
|
|
7161
|
+
case 'FullYear':
|
|
7162
|
+
break; // See below ...
|
|
7163
|
+
default:
|
|
7164
|
+
return; // Just in case
|
|
7165
|
+
}
|
|
7166
|
+
|
|
7167
|
+
year = value;
|
|
7168
|
+
month = mom.month();
|
|
7169
|
+
date = mom.date();
|
|
7170
|
+
date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;
|
|
7171
|
+
void (isUTC
|
|
7172
|
+
? d.setUTCFullYear(year, month, date)
|
|
7173
|
+
: d.setFullYear(year, month, date));
|
|
7174
|
+
}
|
|
7175
|
+
|
|
7176
|
+
// MOMENTS
|
|
7177
|
+
|
|
7178
|
+
function stringGet(units) {
|
|
7179
|
+
units = normalizeUnits(units);
|
|
7180
|
+
if (isFunction(this[units])) {
|
|
7181
|
+
return this[units]();
|
|
7182
|
+
}
|
|
7183
|
+
return this;
|
|
7184
|
+
}
|
|
7185
|
+
|
|
7186
|
+
function stringSet(units, value) {
|
|
7187
|
+
if (typeof units === 'object') {
|
|
7188
|
+
units = normalizeObjectUnits(units);
|
|
7189
|
+
var prioritized = getPrioritizedUnits(units),
|
|
7190
|
+
i,
|
|
7191
|
+
prioritizedLen = prioritized.length;
|
|
7192
|
+
for (i = 0; i < prioritizedLen; i++) {
|
|
7193
|
+
this[prioritized[i].unit](units[prioritized[i].unit]);
|
|
7194
|
+
}
|
|
7195
|
+
} else {
|
|
7196
|
+
units = normalizeUnits(units);
|
|
7197
|
+
if (isFunction(this[units])) {
|
|
7198
|
+
return this[units](value);
|
|
7199
|
+
}
|
|
7200
|
+
}
|
|
7201
|
+
return this;
|
|
7202
|
+
}
|
|
7203
|
+
|
|
7045
7204
|
function mod(n, x) {
|
|
7046
7205
|
return ((n % x) + x) % x;
|
|
7047
7206
|
}
|
|
@@ -7090,17 +7249,9 @@ var moment$1 = {
|
|
|
7090
7249
|
return this.localeData().months(this, format);
|
|
7091
7250
|
});
|
|
7092
7251
|
|
|
7093
|
-
// ALIASES
|
|
7094
|
-
|
|
7095
|
-
addUnitAlias('month', 'M');
|
|
7096
|
-
|
|
7097
|
-
// PRIORITY
|
|
7098
|
-
|
|
7099
|
-
addUnitPriority('month', 8);
|
|
7100
|
-
|
|
7101
7252
|
// PARSING
|
|
7102
7253
|
|
|
7103
|
-
addRegexToken('M', match1to2);
|
|
7254
|
+
addRegexToken('M', match1to2, match1to2NoLeadingZero);
|
|
7104
7255
|
addRegexToken('MM', match1to2, match2);
|
|
7105
7256
|
addRegexToken('MMM', function (isStrict, locale) {
|
|
7106
7257
|
return locale.monthsShortRegex(isStrict);
|
|
@@ -7266,8 +7417,6 @@ var moment$1 = {
|
|
|
7266
7417
|
// MOMENTS
|
|
7267
7418
|
|
|
7268
7419
|
function setMonth(mom, value) {
|
|
7269
|
-
var dayOfMonth;
|
|
7270
|
-
|
|
7271
7420
|
if (!mom.isValid()) {
|
|
7272
7421
|
// No op
|
|
7273
7422
|
return mom;
|
|
@@ -7285,8 +7434,13 @@ var moment$1 = {
|
|
|
7285
7434
|
}
|
|
7286
7435
|
}
|
|
7287
7436
|
|
|
7288
|
-
|
|
7289
|
-
|
|
7437
|
+
var month = value,
|
|
7438
|
+
date = mom.date();
|
|
7439
|
+
|
|
7440
|
+
date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));
|
|
7441
|
+
void (mom._isUTC
|
|
7442
|
+
? mom._d.setUTCMonth(month, date)
|
|
7443
|
+
: mom._d.setMonth(month, date));
|
|
7290
7444
|
return mom;
|
|
7291
7445
|
}
|
|
7292
7446
|
|
|
@@ -7353,27 +7507,24 @@ var moment$1 = {
|
|
|
7353
7507
|
longPieces = [],
|
|
7354
7508
|
mixedPieces = [],
|
|
7355
7509
|
i,
|
|
7356
|
-
mom
|
|
7510
|
+
mom,
|
|
7511
|
+
shortP,
|
|
7512
|
+
longP;
|
|
7357
7513
|
for (i = 0; i < 12; i++) {
|
|
7358
7514
|
// make the regex if we don't have it already
|
|
7359
7515
|
mom = createUTC([2000, i]);
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7516
|
+
shortP = regexEscape(this.monthsShort(mom, ''));
|
|
7517
|
+
longP = regexEscape(this.months(mom, ''));
|
|
7518
|
+
shortPieces.push(shortP);
|
|
7519
|
+
longPieces.push(longP);
|
|
7520
|
+
mixedPieces.push(longP);
|
|
7521
|
+
mixedPieces.push(shortP);
|
|
7364
7522
|
}
|
|
7365
7523
|
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
|
7366
7524
|
// will match the longer piece.
|
|
7367
7525
|
shortPieces.sort(cmpLenRev);
|
|
7368
7526
|
longPieces.sort(cmpLenRev);
|
|
7369
7527
|
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
7528
|
|
|
7378
7529
|
this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
|
|
7379
7530
|
this._monthsShortRegex = this._monthsRegex;
|
|
@@ -7387,69 +7538,6 @@ var moment$1 = {
|
|
|
7387
7538
|
);
|
|
7388
7539
|
}
|
|
7389
7540
|
|
|
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
7541
|
function createDate(y, m, d, h, M, s, ms) {
|
|
7454
7542
|
// can't just apply() to create a date:
|
|
7455
7543
|
// https://stackoverflow.com/q/181348
|
|
@@ -7555,21 +7643,11 @@ var moment$1 = {
|
|
|
7555
7643
|
addFormatToken('w', ['ww', 2], 'wo', 'week');
|
|
7556
7644
|
addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
|
|
7557
7645
|
|
|
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
7646
|
// PARSING
|
|
7569
7647
|
|
|
7570
|
-
addRegexToken('w', match1to2);
|
|
7648
|
+
addRegexToken('w', match1to2, match1to2NoLeadingZero);
|
|
7571
7649
|
addRegexToken('ww', match1to2, match2);
|
|
7572
|
-
addRegexToken('W', match1to2);
|
|
7650
|
+
addRegexToken('W', match1to2, match1to2NoLeadingZero);
|
|
7573
7651
|
addRegexToken('WW', match1to2, match2);
|
|
7574
7652
|
|
|
7575
7653
|
addWeekParseToken(
|
|
@@ -7631,17 +7709,6 @@ var moment$1 = {
|
|
|
7631
7709
|
addFormatToken('e', 0, 0, 'weekday');
|
|
7632
7710
|
addFormatToken('E', 0, 0, 'isoWeekday');
|
|
7633
7711
|
|
|
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
7712
|
// PARSING
|
|
7646
7713
|
|
|
7647
7714
|
addRegexToken('d', match1to2);
|
|
@@ -7721,24 +7788,24 @@ var moment$1 = {
|
|
|
7721
7788
|
return m === true
|
|
7722
7789
|
? shiftWeekdays(weekdays, this._week.dow)
|
|
7723
7790
|
: m
|
|
7724
|
-
|
|
7725
|
-
|
|
7791
|
+
? weekdays[m.day()]
|
|
7792
|
+
: weekdays;
|
|
7726
7793
|
}
|
|
7727
7794
|
|
|
7728
7795
|
function localeWeekdaysShort(m) {
|
|
7729
7796
|
return m === true
|
|
7730
7797
|
? shiftWeekdays(this._weekdaysShort, this._week.dow)
|
|
7731
7798
|
: m
|
|
7732
|
-
|
|
7733
|
-
|
|
7799
|
+
? this._weekdaysShort[m.day()]
|
|
7800
|
+
: this._weekdaysShort;
|
|
7734
7801
|
}
|
|
7735
7802
|
|
|
7736
7803
|
function localeWeekdaysMin(m) {
|
|
7737
7804
|
return m === true
|
|
7738
7805
|
? shiftWeekdays(this._weekdaysMin, this._week.dow)
|
|
7739
7806
|
: m
|
|
7740
|
-
|
|
7741
|
-
|
|
7807
|
+
? this._weekdaysMin[m.day()]
|
|
7808
|
+
: this._weekdaysMin;
|
|
7742
7809
|
}
|
|
7743
7810
|
|
|
7744
7811
|
function handleStrictParse$1(weekdayName, format, strict) {
|
|
@@ -7887,7 +7954,8 @@ var moment$1 = {
|
|
|
7887
7954
|
if (!this.isValid()) {
|
|
7888
7955
|
return input != null ? this : NaN;
|
|
7889
7956
|
}
|
|
7890
|
-
|
|
7957
|
+
|
|
7958
|
+
var day = get(this, 'Day');
|
|
7891
7959
|
if (input != null) {
|
|
7892
7960
|
input = parseWeekday(input, this.localeData());
|
|
7893
7961
|
return this.add(input - day, 'd');
|
|
@@ -8086,13 +8154,6 @@ var moment$1 = {
|
|
|
8086
8154
|
meridiem('a', true);
|
|
8087
8155
|
meridiem('A', false);
|
|
8088
8156
|
|
|
8089
|
-
// ALIASES
|
|
8090
|
-
|
|
8091
|
-
addUnitAlias('hour', 'h');
|
|
8092
|
-
|
|
8093
|
-
// PRIORITY
|
|
8094
|
-
addUnitPriority('hour', 13);
|
|
8095
|
-
|
|
8096
8157
|
// PARSING
|
|
8097
8158
|
|
|
8098
8159
|
function matchMeridiem(isStrict, locale) {
|
|
@@ -8101,9 +8162,9 @@ var moment$1 = {
|
|
|
8101
8162
|
|
|
8102
8163
|
addRegexToken('a', matchMeridiem);
|
|
8103
8164
|
addRegexToken('A', matchMeridiem);
|
|
8104
|
-
addRegexToken('H', match1to2);
|
|
8105
|
-
addRegexToken('h', match1to2);
|
|
8106
|
-
addRegexToken('k', match1to2);
|
|
8165
|
+
addRegexToken('H', match1to2, match1to2HasZero);
|
|
8166
|
+
addRegexToken('h', match1to2, match1to2NoLeadingZero);
|
|
8167
|
+
addRegexToken('k', match1to2, match1to2NoLeadingZero);
|
|
8107
8168
|
addRegexToken('HH', match1to2, match2);
|
|
8108
8169
|
addRegexToken('hh', match1to2, match2);
|
|
8109
8170
|
addRegexToken('kk', match1to2, match2);
|
|
@@ -8253,7 +8314,8 @@ var moment$1 = {
|
|
|
8253
8314
|
|
|
8254
8315
|
function isLocaleNameSane(name) {
|
|
8255
8316
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
8256
|
-
|
|
8317
|
+
// Ensure name is available and function returns boolean
|
|
8318
|
+
return !!(name && name.match('^[^/\\\\]*$'));
|
|
8257
8319
|
}
|
|
8258
8320
|
|
|
8259
8321
|
function loadLocale(name) {
|
|
@@ -8445,21 +8507,21 @@ var moment$1 = {
|
|
|
8445
8507
|
a[MONTH] < 0 || a[MONTH] > 11
|
|
8446
8508
|
? MONTH
|
|
8447
8509
|
: 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
|
-
|
|
8510
|
+
? DATE
|
|
8511
|
+
: a[HOUR] < 0 ||
|
|
8512
|
+
a[HOUR] > 24 ||
|
|
8513
|
+
(a[HOUR] === 24 &&
|
|
8514
|
+
(a[MINUTE] !== 0 ||
|
|
8515
|
+
a[SECOND] !== 0 ||
|
|
8516
|
+
a[MILLISECOND] !== 0))
|
|
8517
|
+
? HOUR
|
|
8518
|
+
: a[MINUTE] < 0 || a[MINUTE] > 59
|
|
8519
|
+
? MINUTE
|
|
8520
|
+
: a[SECOND] < 0 || a[SECOND] > 59
|
|
8521
|
+
? SECOND
|
|
8522
|
+
: a[MILLISECOND] < 0 || a[MILLISECOND] > 999
|
|
8523
|
+
? MILLISECOND
|
|
8524
|
+
: -1;
|
|
8463
8525
|
|
|
8464
8526
|
if (
|
|
8465
8527
|
getParsingFlags(m)._overflowDayOfYear &&
|
|
@@ -9900,16 +9962,16 @@ var moment$1 = {
|
|
|
9900
9962
|
return diff < -6
|
|
9901
9963
|
? 'sameElse'
|
|
9902
9964
|
: diff < -1
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9965
|
+
? 'lastWeek'
|
|
9966
|
+
: diff < 0
|
|
9967
|
+
? 'lastDay'
|
|
9968
|
+
: diff < 1
|
|
9969
|
+
? 'sameDay'
|
|
9970
|
+
: diff < 2
|
|
9971
|
+
? 'nextDay'
|
|
9972
|
+
: diff < 7
|
|
9973
|
+
? 'nextWeek'
|
|
9974
|
+
: 'sameElse';
|
|
9913
9975
|
}
|
|
9914
9976
|
|
|
9915
9977
|
function calendar$1(time, formats) {
|
|
@@ -10717,16 +10779,22 @@ var moment$1 = {
|
|
|
10717
10779
|
mixedPieces = [],
|
|
10718
10780
|
i,
|
|
10719
10781
|
l,
|
|
10782
|
+
erasName,
|
|
10783
|
+
erasAbbr,
|
|
10784
|
+
erasNarrow,
|
|
10720
10785
|
eras = this.eras();
|
|
10721
10786
|
|
|
10722
10787
|
for (i = 0, l = eras.length; i < l; ++i) {
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10788
|
+
erasName = regexEscape(eras[i].name);
|
|
10789
|
+
erasAbbr = regexEscape(eras[i].abbr);
|
|
10790
|
+
erasNarrow = regexEscape(eras[i].narrow);
|
|
10726
10791
|
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
10792
|
+
namePieces.push(erasName);
|
|
10793
|
+
abbrPieces.push(erasAbbr);
|
|
10794
|
+
narrowPieces.push(erasNarrow);
|
|
10795
|
+
mixedPieces.push(erasName);
|
|
10796
|
+
mixedPieces.push(erasAbbr);
|
|
10797
|
+
mixedPieces.push(erasNarrow);
|
|
10730
10798
|
}
|
|
10731
10799
|
|
|
10732
10800
|
this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
|
|
@@ -10759,14 +10827,6 @@ var moment$1 = {
|
|
|
10759
10827
|
|
|
10760
10828
|
// ALIASES
|
|
10761
10829
|
|
|
10762
|
-
addUnitAlias('weekYear', 'gg');
|
|
10763
|
-
addUnitAlias('isoWeekYear', 'GG');
|
|
10764
|
-
|
|
10765
|
-
// PRIORITY
|
|
10766
|
-
|
|
10767
|
-
addUnitPriority('weekYear', 1);
|
|
10768
|
-
addUnitPriority('isoWeekYear', 1);
|
|
10769
|
-
|
|
10770
10830
|
// PARSING
|
|
10771
10831
|
|
|
10772
10832
|
addRegexToken('G', matchSigned);
|
|
@@ -10796,7 +10856,7 @@ var moment$1 = {
|
|
|
10796
10856
|
this,
|
|
10797
10857
|
input,
|
|
10798
10858
|
this.week(),
|
|
10799
|
-
this.weekday(),
|
|
10859
|
+
this.weekday() + this.localeData()._week.dow,
|
|
10800
10860
|
this.localeData()._week.dow,
|
|
10801
10861
|
this.localeData()._week.doy
|
|
10802
10862
|
);
|
|
@@ -10858,14 +10918,6 @@ var moment$1 = {
|
|
|
10858
10918
|
|
|
10859
10919
|
addFormatToken('Q', 0, 'Qo', 'quarter');
|
|
10860
10920
|
|
|
10861
|
-
// ALIASES
|
|
10862
|
-
|
|
10863
|
-
addUnitAlias('quarter', 'Q');
|
|
10864
|
-
|
|
10865
|
-
// PRIORITY
|
|
10866
|
-
|
|
10867
|
-
addUnitPriority('quarter', 7);
|
|
10868
|
-
|
|
10869
10921
|
// PARSING
|
|
10870
10922
|
|
|
10871
10923
|
addRegexToken('Q', match1);
|
|
@@ -10885,16 +10937,9 @@ var moment$1 = {
|
|
|
10885
10937
|
|
|
10886
10938
|
addFormatToken('D', ['DD', 2], 'Do', 'date');
|
|
10887
10939
|
|
|
10888
|
-
// ALIASES
|
|
10889
|
-
|
|
10890
|
-
addUnitAlias('date', 'D');
|
|
10891
|
-
|
|
10892
|
-
// PRIORITY
|
|
10893
|
-
addUnitPriority('date', 9);
|
|
10894
|
-
|
|
10895
10940
|
// PARSING
|
|
10896
10941
|
|
|
10897
|
-
addRegexToken('D', match1to2);
|
|
10942
|
+
addRegexToken('D', match1to2, match1to2NoLeadingZero);
|
|
10898
10943
|
addRegexToken('DD', match1to2, match2);
|
|
10899
10944
|
addRegexToken('Do', function (isStrict, locale) {
|
|
10900
10945
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
@@ -10916,13 +10961,6 @@ var moment$1 = {
|
|
|
10916
10961
|
|
|
10917
10962
|
addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
|
|
10918
10963
|
|
|
10919
|
-
// ALIASES
|
|
10920
|
-
|
|
10921
|
-
addUnitAlias('dayOfYear', 'DDD');
|
|
10922
|
-
|
|
10923
|
-
// PRIORITY
|
|
10924
|
-
addUnitPriority('dayOfYear', 4);
|
|
10925
|
-
|
|
10926
10964
|
// PARSING
|
|
10927
10965
|
|
|
10928
10966
|
addRegexToken('DDD', match1to3);
|
|
@@ -10947,17 +10985,9 @@ var moment$1 = {
|
|
|
10947
10985
|
|
|
10948
10986
|
addFormatToken('m', ['mm', 2], 0, 'minute');
|
|
10949
10987
|
|
|
10950
|
-
// ALIASES
|
|
10951
|
-
|
|
10952
|
-
addUnitAlias('minute', 'm');
|
|
10953
|
-
|
|
10954
|
-
// PRIORITY
|
|
10955
|
-
|
|
10956
|
-
addUnitPriority('minute', 14);
|
|
10957
|
-
|
|
10958
10988
|
// PARSING
|
|
10959
10989
|
|
|
10960
|
-
addRegexToken('m', match1to2);
|
|
10990
|
+
addRegexToken('m', match1to2, match1to2HasZero);
|
|
10961
10991
|
addRegexToken('mm', match1to2, match2);
|
|
10962
10992
|
addParseToken(['m', 'mm'], MINUTE);
|
|
10963
10993
|
|
|
@@ -10969,17 +10999,9 @@ var moment$1 = {
|
|
|
10969
10999
|
|
|
10970
11000
|
addFormatToken('s', ['ss', 2], 0, 'second');
|
|
10971
11001
|
|
|
10972
|
-
// ALIASES
|
|
10973
|
-
|
|
10974
|
-
addUnitAlias('second', 's');
|
|
10975
|
-
|
|
10976
|
-
// PRIORITY
|
|
10977
|
-
|
|
10978
|
-
addUnitPriority('second', 15);
|
|
10979
|
-
|
|
10980
11002
|
// PARSING
|
|
10981
11003
|
|
|
10982
|
-
addRegexToken('s', match1to2);
|
|
11004
|
+
addRegexToken('s', match1to2, match1to2HasZero);
|
|
10983
11005
|
addRegexToken('ss', match1to2, match2);
|
|
10984
11006
|
addParseToken(['s', 'ss'], SECOND);
|
|
10985
11007
|
|
|
@@ -11017,14 +11039,6 @@ var moment$1 = {
|
|
|
11017
11039
|
return this.millisecond() * 1000000;
|
|
11018
11040
|
});
|
|
11019
11041
|
|
|
11020
|
-
// ALIASES
|
|
11021
|
-
|
|
11022
|
-
addUnitAlias('millisecond', 'ms');
|
|
11023
|
-
|
|
11024
|
-
// PRIORITY
|
|
11025
|
-
|
|
11026
|
-
addUnitPriority('millisecond', 16);
|
|
11027
|
-
|
|
11028
11042
|
// PARSING
|
|
11029
11043
|
|
|
11030
11044
|
addRegexToken('S', match1to3, match1);
|
|
@@ -11332,12 +11346,12 @@ var moment$1 = {
|
|
|
11332
11346
|
toInt((number % 100) / 10) === 1
|
|
11333
11347
|
? 'th'
|
|
11334
11348
|
: b === 1
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11349
|
+
? 'st'
|
|
11350
|
+
: b === 2
|
|
11351
|
+
? 'nd'
|
|
11352
|
+
: b === 3
|
|
11353
|
+
? 'rd'
|
|
11354
|
+
: 'th';
|
|
11341
11355
|
return number + output;
|
|
11342
11356
|
},
|
|
11343
11357
|
});
|
|
@@ -11510,19 +11524,6 @@ var moment$1 = {
|
|
|
11510
11524
|
}
|
|
11511
11525
|
}
|
|
11512
11526
|
|
|
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
11527
|
function makeAs(alias) {
|
|
11527
11528
|
return function () {
|
|
11528
11529
|
return this.as(alias);
|
|
@@ -11537,7 +11538,8 @@ var moment$1 = {
|
|
|
11537
11538
|
asWeeks = makeAs('w'),
|
|
11538
11539
|
asMonths = makeAs('M'),
|
|
11539
11540
|
asQuarters = makeAs('Q'),
|
|
11540
|
-
asYears = makeAs('y')
|
|
11541
|
+
asYears = makeAs('y'),
|
|
11542
|
+
valueOf$1 = asMilliseconds;
|
|
11541
11543
|
|
|
11542
11544
|
function clone$1() {
|
|
11543
11545
|
return createDuration(this);
|
|
@@ -11806,7 +11808,7 @@ var moment$1 = {
|
|
|
11806
11808
|
|
|
11807
11809
|
//! moment.js
|
|
11808
11810
|
|
|
11809
|
-
hooks.version = '2.
|
|
11811
|
+
hooks.version = '2.30.1';
|
|
11810
11812
|
|
|
11811
11813
|
setHookCallback(createLocal);
|
|
11812
11814
|
|
|
@@ -11853,32 +11855,269 @@ var moment$1 = {
|
|
|
11853
11855
|
|
|
11854
11856
|
return hooks;
|
|
11855
11857
|
|
|
11856
|
-
})));
|
|
11857
|
-
} (moment$1));
|
|
11858
|
+
})));
|
|
11859
|
+
} (moment$1, moment$1.exports));
|
|
11858
11860
|
|
|
11859
|
-
var
|
|
11861
|
+
var momentExports = moment$1.exports;
|
|
11862
|
+
var moment = /*@__PURE__*/getDefaultExportFromCjs(momentExports);
|
|
11860
11863
|
|
|
11861
|
-
var
|
|
11862
|
-
var vueInfiniteLoading = {
|
|
11863
|
-
get exports(){ return vueInfiniteLoadingExports; },
|
|
11864
|
-
set exports(v){ vueInfiniteLoadingExports = v; },
|
|
11865
|
-
};
|
|
11864
|
+
var vueInfiniteLoading = {exports: {}};
|
|
11866
11865
|
|
|
11867
11866
|
/*!
|
|
11868
11867
|
* vue-infinite-loading v2.4.5
|
|
11869
11868
|
* (c) 2016-2020 PeachScript
|
|
11870
11869
|
* MIT License
|
|
11871
11870
|
*/
|
|
11871
|
+
vueInfiniteLoading.exports;
|
|
11872
11872
|
|
|
11873
11873
|
(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));
|
|
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, vueInfiniteLoading.exports));
|
|
11876
11876
|
|
|
11877
|
+
var vueInfiniteLoadingExports = vueInfiniteLoading.exports;
|
|
11877
11878
|
var InfiniteLoading = /*@__PURE__*/getDefaultExportFromCjs(vueInfiniteLoadingExports);
|
|
11878
11879
|
|
|
11880
|
+
/*!
|
|
11881
|
+
* vue-masonry-css v1.0.3
|
|
11882
|
+
* https://github.com/paulcollett/vue-masonry-css
|
|
11883
|
+
* Released under the MIT License.
|
|
11884
|
+
*/
|
|
11885
|
+
|
|
11886
|
+
// the component name `<masonry />`
|
|
11887
|
+
// can be overridden with `Vue.use(Masonry, { name: 'the-masonry' });`
|
|
11888
|
+
var componentName = 'masonry';
|
|
11889
|
+
|
|
11890
|
+
var props = {
|
|
11891
|
+
tag: {
|
|
11892
|
+
type: [String],
|
|
11893
|
+
default: 'div'
|
|
11894
|
+
},
|
|
11895
|
+
cols: {
|
|
11896
|
+
type: [Object, Number, String],
|
|
11897
|
+
default: 2
|
|
11898
|
+
},
|
|
11899
|
+
gutter: {
|
|
11900
|
+
type: [Object, Number, String],
|
|
11901
|
+
default: 0
|
|
11902
|
+
},
|
|
11903
|
+
css: {
|
|
11904
|
+
type: [Boolean],
|
|
11905
|
+
default: true
|
|
11906
|
+
},
|
|
11907
|
+
columnTag: {
|
|
11908
|
+
type: [String],
|
|
11909
|
+
default: 'div'
|
|
11910
|
+
},
|
|
11911
|
+
columnClass: {
|
|
11912
|
+
type: [String, Array, Object],
|
|
11913
|
+
default: function () { return []; }
|
|
11914
|
+
},
|
|
11915
|
+
columnAttr: {
|
|
11916
|
+
type: [Object],
|
|
11917
|
+
default: function () { return ({}); }
|
|
11918
|
+
}
|
|
11919
|
+
};
|
|
11920
|
+
|
|
11921
|
+
// Get the resulting value from `:col=` prop
|
|
11922
|
+
// based on the window width
|
|
11923
|
+
var breakpointValue = function (mixed, windowWidth) {
|
|
11924
|
+
var valueAsNum = parseInt(mixed);
|
|
11925
|
+
|
|
11926
|
+
if(valueAsNum > -1) {
|
|
11927
|
+
return mixed;
|
|
11928
|
+
}else if(typeof mixed !== 'object') {
|
|
11929
|
+
return 0;
|
|
11930
|
+
}
|
|
11931
|
+
|
|
11932
|
+
var matchedBreakpoint = Infinity;
|
|
11933
|
+
var matchedValue = mixed.default || 0;
|
|
11934
|
+
|
|
11935
|
+
for(var k in mixed) {
|
|
11936
|
+
var breakpoint = parseInt(k);
|
|
11937
|
+
var breakpointValRaw = mixed[breakpoint];
|
|
11938
|
+
var breakpointVal = parseInt(breakpointValRaw);
|
|
11939
|
+
|
|
11940
|
+
if(isNaN(breakpoint) || isNaN(breakpointVal)) {
|
|
11941
|
+
continue;
|
|
11942
|
+
}
|
|
11943
|
+
|
|
11944
|
+
var isNewBreakpoint = windowWidth <= breakpoint && breakpoint < matchedBreakpoint;
|
|
11945
|
+
|
|
11946
|
+
if(isNewBreakpoint) {
|
|
11947
|
+
matchedBreakpoint = breakpoint;
|
|
11948
|
+
matchedValue = breakpointValRaw;
|
|
11949
|
+
}
|
|
11950
|
+
}
|
|
11951
|
+
|
|
11952
|
+
return matchedValue;
|
|
11953
|
+
};
|
|
11954
|
+
|
|
11955
|
+
var component$1 = {
|
|
11956
|
+
props: props,
|
|
11957
|
+
|
|
11958
|
+
data: function data() {
|
|
11959
|
+
return {
|
|
11960
|
+
displayColumns: 2,
|
|
11961
|
+
displayGutter: 0
|
|
11962
|
+
}
|
|
11963
|
+
},
|
|
11964
|
+
|
|
11965
|
+
mounted: function mounted() {
|
|
11966
|
+
var this$1$1 = this;
|
|
11967
|
+
|
|
11968
|
+
this.$nextTick(function () {
|
|
11969
|
+
this$1$1.reCalculate();
|
|
11970
|
+
});
|
|
11971
|
+
|
|
11972
|
+
// Bind resize handler to page
|
|
11973
|
+
if(window) {
|
|
11974
|
+
window.addEventListener('resize', this.reCalculate);
|
|
11975
|
+
}
|
|
11976
|
+
},
|
|
11977
|
+
|
|
11978
|
+
updated: function updated() {
|
|
11979
|
+
var this$1$1 = this;
|
|
11980
|
+
|
|
11981
|
+
this.$nextTick(function () {
|
|
11982
|
+
this$1$1.reCalculate();
|
|
11983
|
+
});
|
|
11984
|
+
},
|
|
11985
|
+
|
|
11986
|
+
beforeDestroy: function beforeDestroy() {
|
|
11987
|
+
if(window) {
|
|
11988
|
+
window.removeEventListener('resize', this.reCalculate);
|
|
11989
|
+
}
|
|
11990
|
+
},
|
|
11991
|
+
|
|
11992
|
+
methods: {
|
|
11993
|
+
// Recalculate how many columns to display based on window width
|
|
11994
|
+
// and the value of the passed `:cols=` prop
|
|
11995
|
+
reCalculate: function reCalculate() {
|
|
11996
|
+
var previousWindowWidth = this.windowWidth;
|
|
11997
|
+
|
|
11998
|
+
this.windowWidth = (window ? window.innerWidth : null) || Infinity;
|
|
11999
|
+
|
|
12000
|
+
// Window resize events get triggered on page height
|
|
12001
|
+
// change which when loading the page can result in multiple
|
|
12002
|
+
// needless calculations. We prevent this here.
|
|
12003
|
+
if(previousWindowWidth === this.windowWidth) {
|
|
12004
|
+
return;
|
|
12005
|
+
}
|
|
12006
|
+
|
|
12007
|
+
this._reCalculateColumnCount(this.windowWidth);
|
|
12008
|
+
|
|
12009
|
+
this._reCalculateGutterSize(this.windowWidth);
|
|
12010
|
+
},
|
|
12011
|
+
|
|
12012
|
+
_reCalculateGutterSize: function _reCalculateGutterSize(windowWidth) {
|
|
12013
|
+
this.displayGutter = breakpointValue(this.gutter, windowWidth);
|
|
12014
|
+
},
|
|
12015
|
+
|
|
12016
|
+
_reCalculateColumnCount: function _reCalculateColumnCount(windowWidth) {
|
|
12017
|
+
var newColumns = breakpointValue(this.cols, windowWidth);
|
|
12018
|
+
|
|
12019
|
+
// Make sure we can return a valid value
|
|
12020
|
+
newColumns = Math.max(1, Number(newColumns) || 0);
|
|
12021
|
+
|
|
12022
|
+
this.displayColumns = newColumns;
|
|
12023
|
+
},
|
|
12024
|
+
|
|
12025
|
+
_getChildItemsInColumnsArray: function _getChildItemsInColumnsArray() {
|
|
12026
|
+
var this$1$1 = this;
|
|
12027
|
+
|
|
12028
|
+
var columns = [];
|
|
12029
|
+
var childItems = this.$slots.default || [];
|
|
12030
|
+
|
|
12031
|
+
// This component does not work with a child <transition-group /> ..yet,
|
|
12032
|
+
// so for now we think it may be helpful to ignore until we can find a way for support
|
|
12033
|
+
if(childItems.length === 1 && childItems[0].componentOptions && childItems[0].componentOptions.tag == 'transition-group') {
|
|
12034
|
+
childItems = childItems[0].componentOptions.children;
|
|
12035
|
+
}
|
|
12036
|
+
|
|
12037
|
+
// Loop through child elements
|
|
12038
|
+
for (var i = 0, visibleItemI = 0; i < childItems.length; i++, visibleItemI++) {
|
|
12039
|
+
// skip Vue elements without tags, which includes
|
|
12040
|
+
// whitespace elements and also plain text
|
|
12041
|
+
if(!childItems[i].tag) {
|
|
12042
|
+
visibleItemI--;
|
|
12043
|
+
|
|
12044
|
+
continue;
|
|
12045
|
+
}
|
|
12046
|
+
|
|
12047
|
+
// Get the column index the child item will end up in
|
|
12048
|
+
var columnIndex = visibleItemI % this$1$1.displayColumns;
|
|
12049
|
+
|
|
12050
|
+
if(!columns[columnIndex]) {
|
|
12051
|
+
columns[columnIndex] = [];
|
|
12052
|
+
}
|
|
12053
|
+
|
|
12054
|
+
columns[columnIndex].push(childItems[i]);
|
|
12055
|
+
}
|
|
12056
|
+
|
|
12057
|
+
return columns;
|
|
12058
|
+
}
|
|
12059
|
+
},
|
|
12060
|
+
|
|
12061
|
+
render: function render(createElement) {
|
|
12062
|
+
var this$1$1 = this;
|
|
12063
|
+
|
|
12064
|
+
var columnsContainingChildren = this._getChildItemsInColumnsArray();
|
|
12065
|
+
var isGutterSizeUnitless = parseInt(this.displayGutter) === this.displayGutter * 1;
|
|
12066
|
+
var gutterSizeWithUnit = isGutterSizeUnitless ? ((this.displayGutter) + "px") : this.displayGutter;
|
|
12067
|
+
|
|
12068
|
+
var columnStyle = {
|
|
12069
|
+
boxSizing: 'border-box',
|
|
12070
|
+
backgroundClip: 'padding-box',
|
|
12071
|
+
width: ((100 / this.displayColumns) + "%"),
|
|
12072
|
+
border: '0 solid transparent',
|
|
12073
|
+
borderLeftWidth: gutterSizeWithUnit
|
|
12074
|
+
};
|
|
12075
|
+
|
|
12076
|
+
var columns = columnsContainingChildren.map(function (children, index) {
|
|
12077
|
+
/// Create column element and inject the children
|
|
12078
|
+
return createElement(this$1$1.columnTag, {
|
|
12079
|
+
key: index + '-' + columnsContainingChildren.length,
|
|
12080
|
+
style: this$1$1.css ? columnStyle : null,
|
|
12081
|
+
class: this$1$1.columnClass,
|
|
12082
|
+
attrs: this$1$1.columnAttr
|
|
12083
|
+
}, children); // specify child items here
|
|
12084
|
+
});
|
|
12085
|
+
|
|
12086
|
+
var containerStyle = {
|
|
12087
|
+
display: ['-webkit-box', '-ms-flexbox', 'flex'],
|
|
12088
|
+
marginLeft: ("-" + gutterSizeWithUnit)
|
|
12089
|
+
};
|
|
12090
|
+
|
|
12091
|
+
// Return wrapper with columns
|
|
12092
|
+
return createElement(
|
|
12093
|
+
this.tag, // tag name
|
|
12094
|
+
this.css ? { style: containerStyle } : null, // element options
|
|
12095
|
+
columns // column vue elements
|
|
12096
|
+
);
|
|
12097
|
+
}
|
|
12098
|
+
};
|
|
12099
|
+
|
|
12100
|
+
var Plugin = function () {};
|
|
12101
|
+
|
|
12102
|
+
Plugin.install = function (Vue, options) {
|
|
12103
|
+
if (Plugin.installed) {
|
|
12104
|
+
return;
|
|
12105
|
+
}
|
|
12106
|
+
|
|
12107
|
+
if(options && options.name) {
|
|
12108
|
+
Vue.component(options.name, component$1);
|
|
12109
|
+
} else {
|
|
12110
|
+
Vue.component(componentName, component$1);
|
|
12111
|
+
}
|
|
12112
|
+
};
|
|
12113
|
+
|
|
12114
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
12115
|
+
window.Vue.use(Plugin);
|
|
12116
|
+
}
|
|
12117
|
+
|
|
11879
12118
|
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
12119
|
|
|
11881
|
-
var css = "tr td[data-v-
|
|
12120
|
+
var css = "tr td[data-v-45e6bdb2]:last-child,\ntr td[data-v-45e6bdb2]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-45e6bdb2] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-45e6bdb2] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-45e6bdb2] .crud-title[data-v-45e6bdb2] {\n margin: 0; }\n .crud-header[data-v-45e6bdb2] .crud-search[data-v-45e6bdb2] {\n max-width: 15rem; }\n .crud-header[data-v-45e6bdb2] .crud-search[data-v-45e6bdb2] .btn[data-v-45e6bdb2] {\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-45e6bdb2] .crud-search[data-v-45e6bdb2] .btn[data-v-45e6bdb2].open[data-v-45e6bdb2] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-45e6bdb2] .table-options[data-v-45e6bdb2] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-45e6bdb2] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-45e6bdb2] {\n table-layout: auto; }\n .table[data-v-45e6bdb2] tbody[data-v-45e6bdb2] td[data-v-45e6bdb2] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-45e6bdb2] tbody[data-v-45e6bdb2] td[data-v-45e6bdb2]::-webkit-scrollbar {\n display: none; } }\n";
|
|
11882
12121
|
n(css, {});
|
|
11883
12122
|
|
|
11884
12123
|
function normalizeComponent (
|
|
@@ -11978,7 +12217,8 @@ const _sfc_main = {
|
|
|
11978
12217
|
name: "VueLaravelCrud",
|
|
11979
12218
|
components: {
|
|
11980
12219
|
draggable,
|
|
11981
|
-
InfiniteLoading
|
|
12220
|
+
InfiniteLoading,
|
|
12221
|
+
VueMasonry: Plugin
|
|
11982
12222
|
},
|
|
11983
12223
|
data() {
|
|
11984
12224
|
return {
|
|
@@ -12013,7 +12253,8 @@ const _sfc_main = {
|
|
|
12013
12253
|
infiniteScrollKey: 1,
|
|
12014
12254
|
optionsLoaded: false,
|
|
12015
12255
|
isMobile: false,
|
|
12016
|
-
refreshing: false
|
|
12256
|
+
refreshing: false,
|
|
12257
|
+
fetchError: false
|
|
12017
12258
|
};
|
|
12018
12259
|
},
|
|
12019
12260
|
watch: {
|
|
@@ -12274,6 +12515,10 @@ const _sfc_main = {
|
|
|
12274
12515
|
};
|
|
12275
12516
|
}
|
|
12276
12517
|
},
|
|
12518
|
+
masonryEnabled: {
|
|
12519
|
+
type: Boolean,
|
|
12520
|
+
default: false
|
|
12521
|
+
},
|
|
12277
12522
|
masonrySort: {
|
|
12278
12523
|
type: Boolean,
|
|
12279
12524
|
default: false
|
|
@@ -12394,6 +12639,7 @@ const _sfc_main = {
|
|
|
12394
12639
|
if (hasNextPage) {
|
|
12395
12640
|
const page = this.pagination.current_page + 1;
|
|
12396
12641
|
this.fetchItems(page, true).then(() => {
|
|
12642
|
+
console.debug("infinite handler then");
|
|
12397
12643
|
$state.loaded();
|
|
12398
12644
|
}).catch(error => {
|
|
12399
12645
|
console.debug("infinite handler error", error);
|
|
@@ -12403,8 +12649,7 @@ const _sfc_main = {
|
|
|
12403
12649
|
$state.complete();
|
|
12404
12650
|
}
|
|
12405
12651
|
},
|
|
12406
|
-
rearrangeArray(originalArray) {
|
|
12407
|
-
let columns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
|
|
12652
|
+
rearrangeArray(originalArray, columns = 3) {
|
|
12408
12653
|
const rearrangedArray = [];
|
|
12409
12654
|
for (let i = 0; i < columns; i++) {
|
|
12410
12655
|
for (let j = i; j < originalArray.length; j += columns) {
|
|
@@ -12468,8 +12713,7 @@ const _sfc_main = {
|
|
|
12468
12713
|
this.filterSidebarOpen = false;
|
|
12469
12714
|
}
|
|
12470
12715
|
},
|
|
12471
|
-
resetFilters() {
|
|
12472
|
-
let refresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
12716
|
+
resetFilters(refresh = true) {
|
|
12473
12717
|
this.internalFilters = [];
|
|
12474
12718
|
this.setupFilters();
|
|
12475
12719
|
this.forceRecomputeCounter++;
|
|
@@ -12529,9 +12773,7 @@ const _sfc_main = {
|
|
|
12529
12773
|
this.selectedItems.push(this.item);
|
|
12530
12774
|
}
|
|
12531
12775
|
},
|
|
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';
|
|
12776
|
+
externalUpdate(itemsUpdate, addIfNotExist = true, key = 'id') {
|
|
12535
12777
|
itemsUpdate.forEach(itemUpdate => {
|
|
12536
12778
|
let itemInList = this.items.find(item => item[key] === itemUpdate[key]);
|
|
12537
12779
|
if (itemInList) Object.assign(itemInList, itemUpdate);else {
|
|
@@ -12547,8 +12789,7 @@ const _sfc_main = {
|
|
|
12547
12789
|
onSelect() {
|
|
12548
12790
|
this.$emit("select", this.item);
|
|
12549
12791
|
},
|
|
12550
|
-
showItem(id) {
|
|
12551
|
-
let itemIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
12792
|
+
showItem(id, itemIndex = null) {
|
|
12552
12793
|
if (itemIndex == null) {
|
|
12553
12794
|
let item = this.items.find(it => it.id == id);
|
|
12554
12795
|
this.item = item;
|
|
@@ -12567,8 +12808,7 @@ const _sfc_main = {
|
|
|
12567
12808
|
this.onSelect();
|
|
12568
12809
|
this.$bvModal.show("modal-form-item-" + this.modelName);
|
|
12569
12810
|
},
|
|
12570
|
-
updateItem(id) {
|
|
12571
|
-
let itemIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
12811
|
+
updateItem(id, itemIndex = null) {
|
|
12572
12812
|
if (itemIndex == null) {
|
|
12573
12813
|
let item = this.items.find(it => it.id == id);
|
|
12574
12814
|
this.item = item;
|
|
@@ -12613,8 +12853,7 @@ const _sfc_main = {
|
|
|
12613
12853
|
this.refresh();
|
|
12614
12854
|
}, 1);
|
|
12615
12855
|
},
|
|
12616
|
-
async fetchItemsVuex() {
|
|
12617
|
-
let page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
12856
|
+
async fetchItemsVuex(page = 1, concat = false) {
|
|
12618
12857
|
this.loading = true;
|
|
12619
12858
|
this.$emit("beforeFetch", {});
|
|
12620
12859
|
this.model.deleteAll();
|
|
@@ -12635,9 +12874,7 @@ const _sfc_main = {
|
|
|
12635
12874
|
this.loading = false;
|
|
12636
12875
|
this.firstLoad = true;
|
|
12637
12876
|
},
|
|
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;
|
|
12877
|
+
fetchItems(page = 1, concat = false) {
|
|
12641
12878
|
if (!this.ajax) {
|
|
12642
12879
|
return;
|
|
12643
12880
|
}
|
|
@@ -12700,6 +12937,8 @@ const _sfc_main = {
|
|
|
12700
12937
|
//console.debug(error);
|
|
12701
12938
|
this.toastError(error);
|
|
12702
12939
|
this.loading = false;
|
|
12940
|
+
this.firstLoad = true;
|
|
12941
|
+
this.fetchError = true;
|
|
12703
12942
|
});
|
|
12704
12943
|
},
|
|
12705
12944
|
removeItem(id, index) {
|
|
@@ -12756,7 +12995,6 @@ const _sfc_main = {
|
|
|
12756
12995
|
console.error("Cannot delete item without ID or index");
|
|
12757
12996
|
// You might want to show an error message or handle it in a way that fits your application.
|
|
12758
12997
|
}
|
|
12759
|
-
|
|
12760
12998
|
this.loading = false;
|
|
12761
12999
|
},
|
|
12762
13000
|
async deleteItemVuex(id, index) {
|
|
@@ -12799,8 +13037,7 @@ const _sfc_main = {
|
|
|
12799
13037
|
});
|
|
12800
13038
|
}
|
|
12801
13039
|
},
|
|
12802
|
-
getArrayValue(value, displayProp) {
|
|
12803
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
13040
|
+
getArrayValue(value, displayProp, options = []) {
|
|
12804
13041
|
if (!Array.isArray(value)) return "N/A";
|
|
12805
13042
|
let values = [];
|
|
12806
13043
|
let valuesFinal = [];
|
|
@@ -12835,7 +13072,7 @@ const _sfc_main = {
|
|
|
12835
13072
|
});
|
|
12836
13073
|
return ops.join(", ");
|
|
12837
13074
|
},
|
|
12838
|
-
async saveItemVuex() {
|
|
13075
|
+
async saveItemVuex(event = null) {
|
|
12839
13076
|
console.debug("save item 1", this.item);
|
|
12840
13077
|
let jsondata = this.item.$toJson();
|
|
12841
13078
|
console.debug("save item 2", this.item, jsondata);
|
|
@@ -12855,7 +13092,6 @@ const _sfc_main = {
|
|
|
12855
13092
|
return;
|
|
12856
13093
|
//throw new Error('Something is wrong.')
|
|
12857
13094
|
}
|
|
12858
|
-
|
|
12859
13095
|
result.save();
|
|
12860
13096
|
if (this.refreshAfterSave) this.refresh();
|
|
12861
13097
|
this.loading = false;
|
|
@@ -12864,7 +13100,7 @@ const _sfc_main = {
|
|
|
12864
13100
|
this.$bvModal.hide("modal-form-item-" + this.modelName);
|
|
12865
13101
|
}
|
|
12866
13102
|
},
|
|
12867
|
-
async saveItemLocal() {
|
|
13103
|
+
async saveItemLocal(event = null) {
|
|
12868
13104
|
const itemSave = JSON.parse(JSON.stringify(this.item));
|
|
12869
13105
|
if (this.item.id || this.item.index) {
|
|
12870
13106
|
let itemIndex;
|
|
@@ -12902,8 +13138,7 @@ const _sfc_main = {
|
|
|
12902
13138
|
}
|
|
12903
13139
|
this.optionsLoaded = true;
|
|
12904
13140
|
},
|
|
12905
|
-
async saveItem() {
|
|
12906
|
-
let event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
13141
|
+
async saveItem(event = null) {
|
|
12907
13142
|
this.loading = true;
|
|
12908
13143
|
if (this.validate) {
|
|
12909
13144
|
this.messageDefaultValidationError;
|
|
@@ -13170,7 +13405,7 @@ var _sfc_render = function render() {
|
|
|
13170
13405
|
callback: function ($$v) {
|
|
13171
13406
|
_vm.$set(_vm.internalFilterByProp(column.prop + '_from'), "value", $$v);
|
|
13172
13407
|
},
|
|
13173
|
-
expression: "internalFilterByProp(column.prop + '_from').value\n
|
|
13408
|
+
expression: "internalFilterByProp(column.prop + '_from').value\n "
|
|
13174
13409
|
}
|
|
13175
13410
|
})], 1), _c('div', {
|
|
13176
13411
|
staticClass: "col-6"
|
|
@@ -13186,7 +13421,7 @@ var _sfc_render = function render() {
|
|
|
13186
13421
|
callback: function ($$v) {
|
|
13187
13422
|
_vm.$set(_vm.internalFilterByProp(column.prop + '_to'), "value", $$v);
|
|
13188
13423
|
},
|
|
13189
|
-
expression: "internalFilterByProp(column.prop + '_to').value\n
|
|
13424
|
+
expression: "internalFilterByProp(column.prop + '_to').value\n "
|
|
13190
13425
|
}
|
|
13191
13426
|
})], 1)])]) : column.type == 'state' ? _c('div', {
|
|
13192
13427
|
staticClass: "form-group"
|
|
@@ -13452,7 +13687,7 @@ var _sfc_render = function render() {
|
|
|
13452
13687
|
callback: function ($$v) {
|
|
13453
13688
|
_vm.$set(_vm.internalFilterByProp(column.prop + '_from'), "value", $$v);
|
|
13454
13689
|
},
|
|
13455
|
-
expression: "internalFilterByProp(column.prop + '_from').value\n
|
|
13690
|
+
expression: "internalFilterByProp(column.prop + '_from').value\n "
|
|
13456
13691
|
}
|
|
13457
13692
|
})], 1), _c('div', {
|
|
13458
13693
|
staticClass: "col-6"
|
|
@@ -13469,7 +13704,7 @@ var _sfc_render = function render() {
|
|
|
13469
13704
|
callback: function ($$v) {
|
|
13470
13705
|
_vm.$set(_vm.internalFilterByProp(column.prop + '_to'), "value", $$v);
|
|
13471
13706
|
},
|
|
13472
|
-
expression: "internalFilterByProp(column.prop + '_to').value\n
|
|
13707
|
+
expression: "internalFilterByProp(column.prop + '_to').value\n "
|
|
13473
13708
|
}
|
|
13474
13709
|
})], 1)]) : column.type == 'state' && _vm.optionsLoaded ? _c('select', {
|
|
13475
13710
|
directives: [{
|
|
@@ -13742,6 +13977,19 @@ var _sfc_render = function render() {
|
|
|
13742
13977
|
},
|
|
13743
13978
|
expression: "items"
|
|
13744
13979
|
}
|
|
13980
|
+
}, [_c('masonry', {
|
|
13981
|
+
attrs: {
|
|
13982
|
+
"cols": {
|
|
13983
|
+
default: _vm.colLg,
|
|
13984
|
+
1000: _vm.colMd,
|
|
13985
|
+
700: _vm.colSm,
|
|
13986
|
+
400: _vm.colXs
|
|
13987
|
+
},
|
|
13988
|
+
"gutter": {
|
|
13989
|
+
default: '30px',
|
|
13990
|
+
700: '15px'
|
|
13991
|
+
}
|
|
13992
|
+
}
|
|
13745
13993
|
}, _vm._l(_vm.itemsList, function (item, index) {
|
|
13746
13994
|
return _c('b-col', {
|
|
13747
13995
|
key: index,
|
|
@@ -13827,7 +14075,7 @@ var _sfc_render = function render() {
|
|
|
13827
14075
|
}, {
|
|
13828
14076
|
"item": item
|
|
13829
14077
|
})], 2)], 1);
|
|
13830
|
-
}), 1), !_vm.loading && _vm.items && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
|
|
14078
|
+
}), 1)], 1), !_vm.loading && _vm.items && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
|
|
13831
14079
|
staticClass: "p-3"
|
|
13832
14080
|
}, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e()], 1) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CUSTOM ? _c('div', [_c('div', {
|
|
13833
14081
|
class: _vm.listContainerClass
|
|
@@ -14013,7 +14261,7 @@ var _sfc_render = function render() {
|
|
|
14013
14261
|
}) : _vm._e()], 2)], 1);
|
|
14014
14262
|
};
|
|
14015
14263
|
var _sfc_staticRenderFns = [];
|
|
14016
|
-
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "
|
|
14264
|
+
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "45e6bdb2", null, null);
|
|
14017
14265
|
var component = __component__.exports;
|
|
14018
14266
|
|
|
14019
14267
|
// Import vue component
|