ai.touchui-vue 1.32.1 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/affix.js +2 -2
- package/lib/ai.touchui-vue.common.js +994 -881
- package/lib/align.js +2 -2
- package/lib/animation.js +2 -2
- package/lib/article.js +2 -2
- package/lib/box.js +2 -2
- package/lib/button.js +2 -2
- package/lib/calendar.js +2 -2
- package/lib/card-item.js +4 -4
- package/lib/card.js +178 -178
- package/lib/cascader.js +2 -2
- package/lib/center-scroll.js +2 -2
- package/lib/chat.js +4 -4
- package/lib/checkbox.js +2 -2
- package/lib/checkboxes.js +2 -2
- package/lib/collapse.js +771 -771
- package/lib/color.js +2 -2
- package/lib/countdown.js +2 -2
- package/lib/date-picker.js +1466 -1466
- package/lib/date-range.js +2 -2
- package/lib/dialog.js +2 -2
- package/lib/dis.js +2 -2
- package/lib/ellipsis.js +2 -2
- package/lib/emote.js +2 -2
- package/lib/export.js +10 -10
- package/lib/filter.js +2 -2
- package/lib/fix.js +2 -2
- package/lib/float.js +2 -2
- package/lib/flow.js +4 -4
- package/lib/form.js +2 -2
- package/lib/grid.js +2 -2
- package/lib/guider.js +2 -2
- package/lib/header.js +2 -2
- package/lib/hide.js +2 -2
- package/lib/icon.js +2 -2
- package/lib/import.js +12 -12
- package/lib/index.js +1 -1
- package/lib/input.js +62 -10
- package/lib/ip.js +2 -2
- package/lib/line.js +2 -2
- package/lib/loading.js +11 -11
- package/lib/longtap.js +2 -2
- package/lib/menu-icon.js +673 -670
- package/lib/message.js +2 -2
- package/lib/msg.js +19 -19
- package/lib/org.js +582 -582
- package/lib/padding.js +2 -2
- package/lib/page.js +578 -578
- package/lib/param.js +24 -8
- package/lib/pic.js +4 -4
- package/lib/popup.js +2 -2
- package/lib/progress.js +2 -2
- package/lib/range.js +452 -18
- package/lib/rate.js +2 -2
- package/lib/reverser.js +2 -2
- package/lib/scroll.js +2 -2
- package/lib/segment.js +2 -2
- package/lib/select.js +2 -2
- package/lib/size.js +2 -2
- package/lib/skeleton.js +2 -2
- package/lib/slide.js +2 -2
- package/lib/space.js +2 -2
- package/lib/step.js +2 -2
- package/lib/submit.js +2 -2
- package/lib/switch.js +2 -2
- package/lib/tab.js +5 -5
- package/lib/table.js +10 -10
- package/lib/tag.js +2 -2
- package/lib/timeline.js +2 -2
- package/lib/tip.js +2 -2
- package/lib/tooltip.js +2 -2
- package/lib/transfer.js +2 -2
- package/lib/tree.js +2 -2
- package/lib/upload.js +14 -14
- package/package.json +1 -1
- package/packages/input/src/input.vue +65 -7
- package/packages/param/src/param.vue +6 -2
- package/packages/range/src/range.vue +17 -14
- package/packages/tab/src/tab.vue +1 -1
- package/packages/table/src/table-head.vue +1 -1
- package/src/index.js +1 -1
package/lib/page.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 390);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,449 +192,63 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 104:
|
|
196
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
197
|
|
|
198
198
|
"use strict";
|
|
199
|
-
/* harmony import */ var _node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_page_vue_vue_type_style_index_0_id_03d37639_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
199
|
+
/* harmony import */ var _node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_page_vue_vue_type_style_index_0_id_03d37639_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22);
|
|
200
200
|
/* harmony import */ var _node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_page_vue_vue_type_style_index_0_id_03d37639_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_page_vue_vue_type_style_index_0_id_03d37639_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
201
201
|
/* unused harmony reexport * */
|
|
202
202
|
|
|
203
203
|
|
|
204
204
|
/***/ }),
|
|
205
205
|
|
|
206
|
-
/***/
|
|
206
|
+
/***/ 105:
|
|
207
207
|
/***/ (function(module, exports, __webpack_require__) {
|
|
208
208
|
|
|
209
|
-
exports = module.exports = __webpack_require__(
|
|
209
|
+
exports = module.exports = __webpack_require__(7)(false);
|
|
210
210
|
// Module
|
|
211
211
|
exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* .to-page .prev + .pager {\n\tflex: none !important;\n}\n.to-page .pager {\n\tuser-select: none;\n}\n\n.to-page .prev,\n.to-page .next {\n\tuser-select: none;\n\tcursor: not-allowed;\n}\n.to-page .pointer {\n\tcursor: pointer;\n}\n.to-page .prev.pointer:hover,\n.to-page .next.pointer:hover {\n\tbackground: #ededed;\n} */\n", ""]);
|
|
212
212
|
|
|
213
213
|
|
|
214
214
|
/***/ }),
|
|
215
215
|
|
|
216
|
-
/***/
|
|
217
|
-
/***/ (function(module, exports
|
|
218
|
-
|
|
219
|
-
"use strict";
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
/*
|
|
223
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
224
|
-
Author Tobias Koppers @sokra
|
|
225
|
-
*/
|
|
226
|
-
// css base code, injected by the css-loader
|
|
227
|
-
// eslint-disable-next-line func-names
|
|
228
|
-
module.exports = function (useSourceMap) {
|
|
229
|
-
var list = []; // return the list of modules as css string
|
|
230
|
-
|
|
231
|
-
list.toString = function toString() {
|
|
232
|
-
return this.map(function (item) {
|
|
233
|
-
var content = cssWithMappingToString(item, useSourceMap);
|
|
234
|
-
|
|
235
|
-
if (item[2]) {
|
|
236
|
-
return "@media ".concat(item[2], "{").concat(content, "}");
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
return content;
|
|
240
|
-
}).join('');
|
|
241
|
-
}; // import a list of modules into the list
|
|
242
|
-
// eslint-disable-next-line func-names
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
list.i = function (modules, mediaQuery) {
|
|
246
|
-
if (typeof modules === 'string') {
|
|
247
|
-
// eslint-disable-next-line no-param-reassign
|
|
248
|
-
modules = [[null, modules, '']];
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
var alreadyImportedModules = {};
|
|
252
|
-
|
|
253
|
-
for (var i = 0; i < this.length; i++) {
|
|
254
|
-
// eslint-disable-next-line prefer-destructuring
|
|
255
|
-
var id = this[i][0];
|
|
256
|
-
|
|
257
|
-
if (id != null) {
|
|
258
|
-
alreadyImportedModules[id] = true;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
for (var _i = 0; _i < modules.length; _i++) {
|
|
263
|
-
var item = modules[_i]; // skip already imported module
|
|
264
|
-
// this implementation is not 100% perfect for weird media query combinations
|
|
265
|
-
// when a module is imported multiple times with different media queries.
|
|
266
|
-
// I hope this will never occur (Hey this way we have smaller bundles)
|
|
267
|
-
|
|
268
|
-
if (item[0] == null || !alreadyImportedModules[item[0]]) {
|
|
269
|
-
if (mediaQuery && !item[2]) {
|
|
270
|
-
item[2] = mediaQuery;
|
|
271
|
-
} else if (mediaQuery) {
|
|
272
|
-
item[2] = "(".concat(item[2], ") and (").concat(mediaQuery, ")");
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
list.push(item);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
return list;
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
function cssWithMappingToString(item, useSourceMap) {
|
|
284
|
-
var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
|
|
285
|
-
|
|
286
|
-
var cssMapping = item[3];
|
|
287
|
-
|
|
288
|
-
if (!cssMapping) {
|
|
289
|
-
return content;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
if (useSourceMap && typeof btoa === 'function') {
|
|
293
|
-
var sourceMapping = toComment(cssMapping);
|
|
294
|
-
var sourceURLs = cssMapping.sources.map(function (source) {
|
|
295
|
-
return "/*# sourceURL=".concat(cssMapping.sourceRoot).concat(source, " */");
|
|
296
|
-
});
|
|
297
|
-
return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
return [content].join('\n');
|
|
301
|
-
} // Adapted from convert-source-map (MIT)
|
|
302
|
-
|
|
216
|
+
/***/ 2:
|
|
217
|
+
/***/ (function(module, exports) {
|
|
303
218
|
|
|
304
|
-
|
|
305
|
-
// eslint-disable-next-line no-undef
|
|
306
|
-
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
|
|
307
|
-
var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
|
|
308
|
-
return "/*# ".concat(data, " */");
|
|
309
|
-
}
|
|
219
|
+
module.exports = require("ai.touchui-vue/lib/mixins/locale");
|
|
310
220
|
|
|
311
221
|
/***/ }),
|
|
312
222
|
|
|
313
|
-
/***/
|
|
223
|
+
/***/ 22:
|
|
314
224
|
/***/ (function(module, exports, __webpack_require__) {
|
|
315
225
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
var stylesInDom = {};
|
|
320
|
-
|
|
321
|
-
var isOldIE = function isOldIE() {
|
|
322
|
-
var memo;
|
|
323
|
-
return function memorize() {
|
|
324
|
-
if (typeof memo === 'undefined') {
|
|
325
|
-
// Test for IE <= 9 as proposed by Browserhacks
|
|
326
|
-
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
327
|
-
// Tests for existence of standard globals is to allow style-loader
|
|
328
|
-
// to operate correctly into non-standard environments
|
|
329
|
-
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
330
|
-
memo = Boolean(window && document && document.all && !window.atob);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
return memo;
|
|
334
|
-
};
|
|
335
|
-
}();
|
|
336
|
-
|
|
337
|
-
var getTarget = function getTarget() {
|
|
338
|
-
var memo = {};
|
|
339
|
-
return function memorize(target) {
|
|
340
|
-
if (typeof memo[target] === 'undefined') {
|
|
341
|
-
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
|
|
342
|
-
|
|
343
|
-
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
|
344
|
-
try {
|
|
345
|
-
// This will throw an exception if access to iframe is blocked
|
|
346
|
-
// due to cross-origin restrictions
|
|
347
|
-
styleTarget = styleTarget.contentDocument.head;
|
|
348
|
-
} catch (e) {
|
|
349
|
-
// istanbul ignore next
|
|
350
|
-
styleTarget = null;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
memo[target] = styleTarget;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
return memo[target];
|
|
358
|
-
};
|
|
359
|
-
}();
|
|
360
|
-
|
|
361
|
-
function listToStyles(list, options) {
|
|
362
|
-
var styles = [];
|
|
363
|
-
var newStyles = {};
|
|
364
|
-
|
|
365
|
-
for (var i = 0; i < list.length; i++) {
|
|
366
|
-
var item = list[i];
|
|
367
|
-
var id = options.base ? item[0] + options.base : item[0];
|
|
368
|
-
var css = item[1];
|
|
369
|
-
var media = item[2];
|
|
370
|
-
var sourceMap = item[3];
|
|
371
|
-
var part = {
|
|
372
|
-
css: css,
|
|
373
|
-
media: media,
|
|
374
|
-
sourceMap: sourceMap
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
if (!newStyles[id]) {
|
|
378
|
-
styles.push(newStyles[id] = {
|
|
379
|
-
id: id,
|
|
380
|
-
parts: [part]
|
|
381
|
-
});
|
|
382
|
-
} else {
|
|
383
|
-
newStyles[id].parts.push(part);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
return styles;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
function addStylesToDom(styles, options) {
|
|
391
|
-
for (var i = 0; i < styles.length; i++) {
|
|
392
|
-
var item = styles[i];
|
|
393
|
-
var domStyle = stylesInDom[item.id];
|
|
394
|
-
var j = 0;
|
|
395
|
-
|
|
396
|
-
if (domStyle) {
|
|
397
|
-
domStyle.refs++;
|
|
398
|
-
|
|
399
|
-
for (; j < domStyle.parts.length; j++) {
|
|
400
|
-
domStyle.parts[j](item.parts[j]);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
for (; j < item.parts.length; j++) {
|
|
404
|
-
domStyle.parts.push(addStyle(item.parts[j], options));
|
|
405
|
-
}
|
|
406
|
-
} else {
|
|
407
|
-
var parts = [];
|
|
408
|
-
|
|
409
|
-
for (; j < item.parts.length; j++) {
|
|
410
|
-
parts.push(addStyle(item.parts[j], options));
|
|
411
|
-
}
|
|
226
|
+
var content = __webpack_require__(105);
|
|
412
227
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
refs: 1,
|
|
416
|
-
parts: parts
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
}
|
|
228
|
+
if (typeof content === 'string') {
|
|
229
|
+
content = [[module.i, content, '']];
|
|
420
230
|
}
|
|
421
231
|
|
|
422
|
-
|
|
423
|
-
var style = document.createElement('style');
|
|
424
|
-
|
|
425
|
-
if (typeof options.attributes.nonce === 'undefined') {
|
|
426
|
-
var nonce = true ? __webpack_require__.nc : undefined;
|
|
427
|
-
|
|
428
|
-
if (nonce) {
|
|
429
|
-
options.attributes.nonce = nonce;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
Object.keys(options.attributes).forEach(function (key) {
|
|
434
|
-
style.setAttribute(key, options.attributes[key]);
|
|
435
|
-
});
|
|
436
|
-
|
|
437
|
-
if (typeof options.insert === 'function') {
|
|
438
|
-
options.insert(style);
|
|
439
|
-
} else {
|
|
440
|
-
var target = getTarget(options.insert || 'head');
|
|
441
|
-
|
|
442
|
-
if (!target) {
|
|
443
|
-
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
target.appendChild(style);
|
|
447
|
-
}
|
|
232
|
+
var options = {}
|
|
448
233
|
|
|
449
|
-
|
|
450
|
-
|
|
234
|
+
options.insert = "head";
|
|
235
|
+
options.singleton = false;
|
|
451
236
|
|
|
452
|
-
|
|
453
|
-
// istanbul ignore if
|
|
454
|
-
if (style.parentNode === null) {
|
|
455
|
-
return false;
|
|
456
|
-
}
|
|
237
|
+
var update = __webpack_require__(8)(content, options);
|
|
457
238
|
|
|
458
|
-
|
|
239
|
+
if (content.locals) {
|
|
240
|
+
module.exports = content.locals;
|
|
459
241
|
}
|
|
460
|
-
/* istanbul ignore next */
|
|
461
242
|
|
|
462
243
|
|
|
463
|
-
|
|
464
|
-
var textStore = [];
|
|
465
|
-
return function replace(index, replacement) {
|
|
466
|
-
textStore[index] = replacement;
|
|
467
|
-
return textStore.filter(Boolean).join('\n');
|
|
468
|
-
};
|
|
469
|
-
}();
|
|
244
|
+
/***/ }),
|
|
470
245
|
|
|
471
|
-
|
|
472
|
-
|
|
246
|
+
/***/ 390:
|
|
247
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
473
248
|
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
style.styleSheet.cssText = replaceText(index, css);
|
|
478
|
-
} else {
|
|
479
|
-
var cssNode = document.createTextNode(css);
|
|
480
|
-
var childNodes = style.childNodes;
|
|
481
|
-
|
|
482
|
-
if (childNodes[index]) {
|
|
483
|
-
style.removeChild(childNodes[index]);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
if (childNodes.length) {
|
|
487
|
-
style.insertBefore(cssNode, childNodes[index]);
|
|
488
|
-
} else {
|
|
489
|
-
style.appendChild(cssNode);
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
function applyToTag(style, options, obj) {
|
|
495
|
-
var css = obj.css;
|
|
496
|
-
var media = obj.media;
|
|
497
|
-
var sourceMap = obj.sourceMap;
|
|
498
|
-
|
|
499
|
-
if (media) {
|
|
500
|
-
style.setAttribute('media', media);
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
if (sourceMap && btoa) {
|
|
504
|
-
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
|
|
505
|
-
} // For old IE
|
|
506
|
-
|
|
507
|
-
/* istanbul ignore if */
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
if (style.styleSheet) {
|
|
511
|
-
style.styleSheet.cssText = css;
|
|
512
|
-
} else {
|
|
513
|
-
while (style.firstChild) {
|
|
514
|
-
style.removeChild(style.firstChild);
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
style.appendChild(document.createTextNode(css));
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
var singleton = null;
|
|
522
|
-
var singletonCounter = 0;
|
|
523
|
-
|
|
524
|
-
function addStyle(obj, options) {
|
|
525
|
-
var style;
|
|
526
|
-
var update;
|
|
527
|
-
var remove;
|
|
528
|
-
|
|
529
|
-
if (options.singleton) {
|
|
530
|
-
var styleIndex = singletonCounter++;
|
|
531
|
-
style = singleton || (singleton = insertStyleElement(options));
|
|
532
|
-
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
|
533
|
-
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
|
534
|
-
} else {
|
|
535
|
-
style = insertStyleElement(options);
|
|
536
|
-
update = applyToTag.bind(null, style, options);
|
|
537
|
-
|
|
538
|
-
remove = function remove() {
|
|
539
|
-
removeStyleElement(style);
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
update(obj);
|
|
544
|
-
return function updateStyle(newObj) {
|
|
545
|
-
if (newObj) {
|
|
546
|
-
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
|
|
547
|
-
return;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
update(obj = newObj);
|
|
551
|
-
} else {
|
|
552
|
-
remove();
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
module.exports = function (list, options) {
|
|
558
|
-
options = options || {};
|
|
559
|
-
options.attributes = typeof options.attributes === 'object' ? options.attributes : {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
|
560
|
-
// tags it will allow on a page
|
|
561
|
-
|
|
562
|
-
if (!options.singleton && typeof options.singleton !== 'boolean') {
|
|
563
|
-
options.singleton = isOldIE();
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
var styles = listToStyles(list, options);
|
|
567
|
-
addStylesToDom(styles, options);
|
|
568
|
-
return function update(newList) {
|
|
569
|
-
var mayRemove = [];
|
|
570
|
-
|
|
571
|
-
for (var i = 0; i < styles.length; i++) {
|
|
572
|
-
var item = styles[i];
|
|
573
|
-
var domStyle = stylesInDom[item.id];
|
|
574
|
-
|
|
575
|
-
if (domStyle) {
|
|
576
|
-
domStyle.refs--;
|
|
577
|
-
mayRemove.push(domStyle);
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
if (newList) {
|
|
582
|
-
var newStyles = listToStyles(newList, options);
|
|
583
|
-
addStylesToDom(newStyles, options);
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
for (var _i = 0; _i < mayRemove.length; _i++) {
|
|
587
|
-
var _domStyle = mayRemove[_i];
|
|
588
|
-
|
|
589
|
-
if (_domStyle.refs === 0) {
|
|
590
|
-
for (var j = 0; j < _domStyle.parts.length; j++) {
|
|
591
|
-
_domStyle.parts[j]();
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
delete stylesInDom[_domStyle.id];
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
};
|
|
598
|
-
};
|
|
599
|
-
|
|
600
|
-
/***/ }),
|
|
601
|
-
|
|
602
|
-
/***/ 2:
|
|
603
|
-
/***/ (function(module, exports) {
|
|
604
|
-
|
|
605
|
-
module.exports = require("ai.touchui-vue/lib/mixins/locale");
|
|
606
|
-
|
|
607
|
-
/***/ }),
|
|
608
|
-
|
|
609
|
-
/***/ 21:
|
|
610
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
611
|
-
|
|
612
|
-
var content = __webpack_require__(102);
|
|
613
|
-
|
|
614
|
-
if (typeof content === 'string') {
|
|
615
|
-
content = [[module.i, content, '']];
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
var options = {}
|
|
619
|
-
|
|
620
|
-
options.insert = "head";
|
|
621
|
-
options.singleton = false;
|
|
622
|
-
|
|
623
|
-
var update = __webpack_require__(12)(content, options);
|
|
624
|
-
|
|
625
|
-
if (content.locals) {
|
|
626
|
-
module.exports = content.locals;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
/***/ }),
|
|
631
|
-
|
|
632
|
-
/***/ 387:
|
|
633
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
634
|
-
|
|
635
|
-
"use strict";
|
|
636
|
-
// ESM COMPAT FLAG
|
|
637
|
-
__webpack_require__.r(__webpack_exports__);
|
|
249
|
+
"use strict";
|
|
250
|
+
// ESM COMPAT FLAG
|
|
251
|
+
__webpack_require__.r(__webpack_exports__);
|
|
638
252
|
|
|
639
253
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/page/src/page.vue?vue&type=template&id=03d37639
|
|
640
254
|
var render = function () {
|
|
@@ -1209,197 +823,583 @@ var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
|
1209
823
|
};
|
|
1210
824
|
},
|
|
1211
825
|
|
|
1212
|
-
computed: {
|
|
1213
|
-
cShowInSingle: function cShowInSingle() {
|
|
1214
|
-
return !(this.hideOnSinglePage && Number(this.pageCount_) <= 1) || !this.hideOnSinglePage;
|
|
1215
|
-
},
|
|
1216
|
-
cLayout: function cLayout() {
|
|
1217
|
-
return this.layout.split(',').map(function (str) {
|
|
1218
|
-
return str.trim();
|
|
1219
|
-
});
|
|
1220
|
-
},
|
|
1221
|
-
cPageSizes: function cPageSizes() {
|
|
1222
|
-
var _this = this;
|
|
826
|
+
computed: {
|
|
827
|
+
cShowInSingle: function cShowInSingle() {
|
|
828
|
+
return !(this.hideOnSinglePage && Number(this.pageCount_) <= 1) || !this.hideOnSinglePage;
|
|
829
|
+
},
|
|
830
|
+
cLayout: function cLayout() {
|
|
831
|
+
return this.layout.split(',').map(function (str) {
|
|
832
|
+
return str.trim();
|
|
833
|
+
});
|
|
834
|
+
},
|
|
835
|
+
cPageSizes: function cPageSizes() {
|
|
836
|
+
var _this = this;
|
|
837
|
+
|
|
838
|
+
var pageSizes = void 0;
|
|
839
|
+
if (typeof this.pageSizes === 'string') {
|
|
840
|
+
pageSizes = this.pageSizes.split(',');
|
|
841
|
+
} else {
|
|
842
|
+
pageSizes = this.pageSizes;
|
|
843
|
+
}
|
|
844
|
+
return pageSizes.map(function (size) {
|
|
845
|
+
return {
|
|
846
|
+
label: _this.t('to.page.pageSize', size),
|
|
847
|
+
value: Number(size)
|
|
848
|
+
};
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
watch: {
|
|
853
|
+
pageSize: {
|
|
854
|
+
handler: function handler(size) {
|
|
855
|
+
var pageSizes = this.pageSizes || [];
|
|
856
|
+
if (!pageSizes.includes(size)) {
|
|
857
|
+
size = pageSizes[0];
|
|
858
|
+
}
|
|
859
|
+
this.pageSize_ = size;
|
|
860
|
+
},
|
|
861
|
+
|
|
862
|
+
immediate: true
|
|
863
|
+
},
|
|
864
|
+
currentPage: {
|
|
865
|
+
handler: function handler(currentPage) {
|
|
866
|
+
this.currentPage_ = currentPage;
|
|
867
|
+
this.computedPager();
|
|
868
|
+
},
|
|
869
|
+
|
|
870
|
+
immediate: true
|
|
871
|
+
},
|
|
872
|
+
pageCount: {
|
|
873
|
+
handler: function handler(pageCount) {
|
|
874
|
+
this.pageCount_ = pageCount;
|
|
875
|
+
this.computedPager();
|
|
876
|
+
},
|
|
877
|
+
|
|
878
|
+
immediate: true
|
|
879
|
+
},
|
|
880
|
+
pagerCount: function pagerCount() {
|
|
881
|
+
this.computedPager();
|
|
882
|
+
},
|
|
883
|
+
total: function total() {
|
|
884
|
+
this.computedPager();
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
created: function created() {
|
|
888
|
+
this.computedPager();
|
|
889
|
+
},
|
|
890
|
+
|
|
891
|
+
methods: {
|
|
892
|
+
handleJump: function handleJump() {
|
|
893
|
+
if (this.disabled) return;
|
|
894
|
+
if (!this.jumperPage) return;
|
|
895
|
+
var jump = Number(this.jumperPage);
|
|
896
|
+
if (jump > Number(this.pageCount_)) jump = Number(this.pageCount_);
|
|
897
|
+
if (jump < 1) jump = 1;
|
|
898
|
+
this.jumperPage = '';
|
|
899
|
+
this.handleCurrentChange(jump);
|
|
900
|
+
},
|
|
901
|
+
handleSizeChange: function handleSizeChange(size) {
|
|
902
|
+
if (this.disabled) return;
|
|
903
|
+
this.$emit('update:pageSize', size);
|
|
904
|
+
this.$emit('size-change', size);
|
|
905
|
+
this.computedPager();
|
|
906
|
+
},
|
|
907
|
+
handleCurrentChange: function handleCurrentChange(current) {
|
|
908
|
+
if (this.disabled) return;
|
|
909
|
+
this.currentPage_ = current;
|
|
910
|
+
this.$emit('update:currentPage', current);
|
|
911
|
+
this.$emit('current-change', current);
|
|
912
|
+
this.computedPager();
|
|
913
|
+
},
|
|
914
|
+
handlePagePrev: function handlePagePrev() {
|
|
915
|
+
if (this.disabled) return;
|
|
916
|
+
if (this.currentPage_ > 1) {
|
|
917
|
+
this.currentPage_ -= 1;
|
|
918
|
+
this.handleCurrentChange(this.currentPage_);
|
|
919
|
+
this.$emit('prev-click', this.currentPage_);
|
|
920
|
+
this.computedPager();
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
handlePageNext: function handlePageNext() {
|
|
924
|
+
if (this.disabled) return;
|
|
925
|
+
if (this.currentPage_ < Number(this.pageCount_)) {
|
|
926
|
+
this.currentPage_ += 1;
|
|
927
|
+
this.handleCurrentChange(this.currentPage_);
|
|
928
|
+
this.$emit('next-click', this.currentPage_);
|
|
929
|
+
this.computedPager();
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
computedPager: function computedPager() {
|
|
933
|
+
var pagerCount = this.pagerCount;
|
|
934
|
+
var halfPagerCount = (Number(pagerCount) - 1) / 2;
|
|
935
|
+
var pageCount = Number(this.pageCount) || Number(Number(this.total) === 0 ? 1 : Math.ceil(Number(this.total) / Number(this.pageSize_)));
|
|
936
|
+
var currentPage = Number(this.currentPage_);
|
|
937
|
+
var showPrevMore = false;
|
|
938
|
+
var showNextMore = false;
|
|
939
|
+
|
|
940
|
+
if (pageCount > Number(pagerCount)) {
|
|
941
|
+
if (currentPage > Number(pagerCount) - halfPagerCount) {
|
|
942
|
+
showPrevMore = true;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
if (currentPage < pageCount - halfPagerCount) {
|
|
946
|
+
showNextMore = true;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
var array = [];
|
|
950
|
+
|
|
951
|
+
if (showPrevMore && !showNextMore) {
|
|
952
|
+
var startPage = pageCount - (Number(pagerCount) - 2);
|
|
953
|
+
for (var i = startPage; i < pageCount; i++) {
|
|
954
|
+
array.push(i);
|
|
955
|
+
}
|
|
956
|
+
} else if (!showPrevMore && showNextMore) {
|
|
957
|
+
for (var _i = 2; _i < Number(pagerCount); _i++) {
|
|
958
|
+
array.push(_i);
|
|
959
|
+
}
|
|
960
|
+
} else if (showPrevMore && showNextMore) {
|
|
961
|
+
var offset = Math.floor(Number(pagerCount) / 2) - 1;
|
|
962
|
+
for (var _i2 = currentPage - offset; _i2 <= currentPage + offset; _i2++) {
|
|
963
|
+
array.push(_i2);
|
|
964
|
+
}
|
|
965
|
+
} else {
|
|
966
|
+
for (var _i3 = 2; _i3 < pageCount; _i3++) {
|
|
967
|
+
array.push(_i3);
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
this.showPrevMore = showPrevMore;
|
|
972
|
+
this.showNextMore = showNextMore;
|
|
973
|
+
this.pageCount_ = pageCount;
|
|
974
|
+
this.pager_ = array;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
// CONCATENATED MODULE: ./packages/page/src/page.vue?vue&type=script&lang=js
|
|
979
|
+
/* harmony default export */ var src_pagevue_type_script_lang_js = (pagevue_type_script_lang_js);
|
|
980
|
+
// EXTERNAL MODULE: ./packages/page/src/page.vue?vue&type=style&index=0&id=03d37639&prod&lang=css
|
|
981
|
+
var pagevue_type_style_index_0_id_03d37639_prod_lang_css = __webpack_require__(104);
|
|
982
|
+
|
|
983
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
984
|
+
var componentNormalizer = __webpack_require__(0);
|
|
985
|
+
|
|
986
|
+
// CONCATENATED MODULE: ./packages/page/src/page.vue
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
/* normalize component */
|
|
994
|
+
|
|
995
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
996
|
+
src_pagevue_type_script_lang_js,
|
|
997
|
+
render,
|
|
998
|
+
staticRenderFns,
|
|
999
|
+
false,
|
|
1000
|
+
null,
|
|
1001
|
+
null,
|
|
1002
|
+
null
|
|
1003
|
+
|
|
1004
|
+
)
|
|
1005
|
+
|
|
1006
|
+
/* harmony default export */ var page = (component.exports);
|
|
1007
|
+
// CONCATENATED MODULE: ./packages/page/index.js
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
/* istanbul ignore next */
|
|
1011
|
+
page.install = function (Vue) {
|
|
1012
|
+
Vue.component(page.name, page);
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
/* harmony default export */ var packages_page = __webpack_exports__["default"] = (page);
|
|
1016
|
+
|
|
1017
|
+
/***/ }),
|
|
1018
|
+
|
|
1019
|
+
/***/ 7:
|
|
1020
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1021
|
+
|
|
1022
|
+
"use strict";
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
/*
|
|
1026
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
1027
|
+
Author Tobias Koppers @sokra
|
|
1028
|
+
*/
|
|
1029
|
+
// css base code, injected by the css-loader
|
|
1030
|
+
// eslint-disable-next-line func-names
|
|
1031
|
+
module.exports = function (useSourceMap) {
|
|
1032
|
+
var list = []; // return the list of modules as css string
|
|
1033
|
+
|
|
1034
|
+
list.toString = function toString() {
|
|
1035
|
+
return this.map(function (item) {
|
|
1036
|
+
var content = cssWithMappingToString(item, useSourceMap);
|
|
1037
|
+
|
|
1038
|
+
if (item[2]) {
|
|
1039
|
+
return "@media ".concat(item[2], "{").concat(content, "}");
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
return content;
|
|
1043
|
+
}).join('');
|
|
1044
|
+
}; // import a list of modules into the list
|
|
1045
|
+
// eslint-disable-next-line func-names
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
list.i = function (modules, mediaQuery) {
|
|
1049
|
+
if (typeof modules === 'string') {
|
|
1050
|
+
// eslint-disable-next-line no-param-reassign
|
|
1051
|
+
modules = [[null, modules, '']];
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
var alreadyImportedModules = {};
|
|
1055
|
+
|
|
1056
|
+
for (var i = 0; i < this.length; i++) {
|
|
1057
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1058
|
+
var id = this[i][0];
|
|
1059
|
+
|
|
1060
|
+
if (id != null) {
|
|
1061
|
+
alreadyImportedModules[id] = true;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
for (var _i = 0; _i < modules.length; _i++) {
|
|
1066
|
+
var item = modules[_i]; // skip already imported module
|
|
1067
|
+
// this implementation is not 100% perfect for weird media query combinations
|
|
1068
|
+
// when a module is imported multiple times with different media queries.
|
|
1069
|
+
// I hope this will never occur (Hey this way we have smaller bundles)
|
|
1070
|
+
|
|
1071
|
+
if (item[0] == null || !alreadyImportedModules[item[0]]) {
|
|
1072
|
+
if (mediaQuery && !item[2]) {
|
|
1073
|
+
item[2] = mediaQuery;
|
|
1074
|
+
} else if (mediaQuery) {
|
|
1075
|
+
item[2] = "(".concat(item[2], ") and (").concat(mediaQuery, ")");
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
list.push(item);
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
return list;
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
function cssWithMappingToString(item, useSourceMap) {
|
|
1087
|
+
var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
|
|
1088
|
+
|
|
1089
|
+
var cssMapping = item[3];
|
|
1090
|
+
|
|
1091
|
+
if (!cssMapping) {
|
|
1092
|
+
return content;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
if (useSourceMap && typeof btoa === 'function') {
|
|
1096
|
+
var sourceMapping = toComment(cssMapping);
|
|
1097
|
+
var sourceURLs = cssMapping.sources.map(function (source) {
|
|
1098
|
+
return "/*# sourceURL=".concat(cssMapping.sourceRoot).concat(source, " */");
|
|
1099
|
+
});
|
|
1100
|
+
return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
return [content].join('\n');
|
|
1104
|
+
} // Adapted from convert-source-map (MIT)
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
function toComment(sourceMap) {
|
|
1108
|
+
// eslint-disable-next-line no-undef
|
|
1109
|
+
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
|
|
1110
|
+
var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
|
|
1111
|
+
return "/*# ".concat(data, " */");
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
/***/ }),
|
|
1115
|
+
|
|
1116
|
+
/***/ 8:
|
|
1117
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1118
|
+
|
|
1119
|
+
"use strict";
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
var stylesInDom = {};
|
|
1123
|
+
|
|
1124
|
+
var isOldIE = function isOldIE() {
|
|
1125
|
+
var memo;
|
|
1126
|
+
return function memorize() {
|
|
1127
|
+
if (typeof memo === 'undefined') {
|
|
1128
|
+
// Test for IE <= 9 as proposed by Browserhacks
|
|
1129
|
+
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
1130
|
+
// Tests for existence of standard globals is to allow style-loader
|
|
1131
|
+
// to operate correctly into non-standard environments
|
|
1132
|
+
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
1133
|
+
memo = Boolean(window && document && document.all && !window.atob);
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
return memo;
|
|
1137
|
+
};
|
|
1138
|
+
}();
|
|
1139
|
+
|
|
1140
|
+
var getTarget = function getTarget() {
|
|
1141
|
+
var memo = {};
|
|
1142
|
+
return function memorize(target) {
|
|
1143
|
+
if (typeof memo[target] === 'undefined') {
|
|
1144
|
+
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
|
|
1145
|
+
|
|
1146
|
+
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
|
1147
|
+
try {
|
|
1148
|
+
// This will throw an exception if access to iframe is blocked
|
|
1149
|
+
// due to cross-origin restrictions
|
|
1150
|
+
styleTarget = styleTarget.contentDocument.head;
|
|
1151
|
+
} catch (e) {
|
|
1152
|
+
// istanbul ignore next
|
|
1153
|
+
styleTarget = null;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
memo[target] = styleTarget;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
return memo[target];
|
|
1161
|
+
};
|
|
1162
|
+
}();
|
|
1163
|
+
|
|
1164
|
+
function listToStyles(list, options) {
|
|
1165
|
+
var styles = [];
|
|
1166
|
+
var newStyles = {};
|
|
1167
|
+
|
|
1168
|
+
for (var i = 0; i < list.length; i++) {
|
|
1169
|
+
var item = list[i];
|
|
1170
|
+
var id = options.base ? item[0] + options.base : item[0];
|
|
1171
|
+
var css = item[1];
|
|
1172
|
+
var media = item[2];
|
|
1173
|
+
var sourceMap = item[3];
|
|
1174
|
+
var part = {
|
|
1175
|
+
css: css,
|
|
1176
|
+
media: media,
|
|
1177
|
+
sourceMap: sourceMap
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
if (!newStyles[id]) {
|
|
1181
|
+
styles.push(newStyles[id] = {
|
|
1182
|
+
id: id,
|
|
1183
|
+
parts: [part]
|
|
1184
|
+
});
|
|
1185
|
+
} else {
|
|
1186
|
+
newStyles[id].parts.push(part);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
return styles;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
function addStylesToDom(styles, options) {
|
|
1194
|
+
for (var i = 0; i < styles.length; i++) {
|
|
1195
|
+
var item = styles[i];
|
|
1196
|
+
var domStyle = stylesInDom[item.id];
|
|
1197
|
+
var j = 0;
|
|
1198
|
+
|
|
1199
|
+
if (domStyle) {
|
|
1200
|
+
domStyle.refs++;
|
|
1201
|
+
|
|
1202
|
+
for (; j < domStyle.parts.length; j++) {
|
|
1203
|
+
domStyle.parts[j](item.parts[j]);
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
for (; j < item.parts.length; j++) {
|
|
1207
|
+
domStyle.parts.push(addStyle(item.parts[j], options));
|
|
1208
|
+
}
|
|
1209
|
+
} else {
|
|
1210
|
+
var parts = [];
|
|
1211
|
+
|
|
1212
|
+
for (; j < item.parts.length; j++) {
|
|
1213
|
+
parts.push(addStyle(item.parts[j], options));
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
stylesInDom[item.id] = {
|
|
1217
|
+
id: item.id,
|
|
1218
|
+
refs: 1,
|
|
1219
|
+
parts: parts
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
function insertStyleElement(options) {
|
|
1226
|
+
var style = document.createElement('style');
|
|
1227
|
+
|
|
1228
|
+
if (typeof options.attributes.nonce === 'undefined') {
|
|
1229
|
+
var nonce = true ? __webpack_require__.nc : undefined;
|
|
1230
|
+
|
|
1231
|
+
if (nonce) {
|
|
1232
|
+
options.attributes.nonce = nonce;
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
Object.keys(options.attributes).forEach(function (key) {
|
|
1237
|
+
style.setAttribute(key, options.attributes[key]);
|
|
1238
|
+
});
|
|
1239
|
+
|
|
1240
|
+
if (typeof options.insert === 'function') {
|
|
1241
|
+
options.insert(style);
|
|
1242
|
+
} else {
|
|
1243
|
+
var target = getTarget(options.insert || 'head');
|
|
1244
|
+
|
|
1245
|
+
if (!target) {
|
|
1246
|
+
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
target.appendChild(style);
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
return style;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
function removeStyleElement(style) {
|
|
1256
|
+
// istanbul ignore if
|
|
1257
|
+
if (style.parentNode === null) {
|
|
1258
|
+
return false;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
style.parentNode.removeChild(style);
|
|
1262
|
+
}
|
|
1263
|
+
/* istanbul ignore next */
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
var replaceText = function replaceText() {
|
|
1267
|
+
var textStore = [];
|
|
1268
|
+
return function replace(index, replacement) {
|
|
1269
|
+
textStore[index] = replacement;
|
|
1270
|
+
return textStore.filter(Boolean).join('\n');
|
|
1271
|
+
};
|
|
1272
|
+
}();
|
|
1273
|
+
|
|
1274
|
+
function applyToSingletonTag(style, index, remove, obj) {
|
|
1275
|
+
var css = remove ? '' : obj.css; // For old IE
|
|
1276
|
+
|
|
1277
|
+
/* istanbul ignore if */
|
|
1278
|
+
|
|
1279
|
+
if (style.styleSheet) {
|
|
1280
|
+
style.styleSheet.cssText = replaceText(index, css);
|
|
1281
|
+
} else {
|
|
1282
|
+
var cssNode = document.createTextNode(css);
|
|
1283
|
+
var childNodes = style.childNodes;
|
|
1284
|
+
|
|
1285
|
+
if (childNodes[index]) {
|
|
1286
|
+
style.removeChild(childNodes[index]);
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
if (childNodes.length) {
|
|
1290
|
+
style.insertBefore(cssNode, childNodes[index]);
|
|
1291
|
+
} else {
|
|
1292
|
+
style.appendChild(cssNode);
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
function applyToTag(style, options, obj) {
|
|
1298
|
+
var css = obj.css;
|
|
1299
|
+
var media = obj.media;
|
|
1300
|
+
var sourceMap = obj.sourceMap;
|
|
1223
1301
|
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
} else {
|
|
1228
|
-
pageSizes = this.pageSizes;
|
|
1229
|
-
}
|
|
1230
|
-
return pageSizes.map(function (size) {
|
|
1231
|
-
return {
|
|
1232
|
-
label: _this.t('to.page.pageSize', size),
|
|
1233
|
-
value: Number(size)
|
|
1234
|
-
};
|
|
1235
|
-
});
|
|
1236
|
-
}
|
|
1237
|
-
},
|
|
1238
|
-
watch: {
|
|
1239
|
-
pageSize: {
|
|
1240
|
-
handler: function handler(size) {
|
|
1241
|
-
var pageSizes = this.pageSizes || [];
|
|
1242
|
-
if (!pageSizes.includes(size)) {
|
|
1243
|
-
size = pageSizes[0];
|
|
1244
|
-
}
|
|
1245
|
-
this.pageSize_ = size;
|
|
1246
|
-
},
|
|
1302
|
+
if (media) {
|
|
1303
|
+
style.setAttribute('media', media);
|
|
1304
|
+
}
|
|
1247
1305
|
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
handler: function handler(currentPage) {
|
|
1252
|
-
this.currentPage_ = currentPage;
|
|
1253
|
-
this.computedPager();
|
|
1254
|
-
},
|
|
1306
|
+
if (sourceMap && btoa) {
|
|
1307
|
+
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
|
|
1308
|
+
} // For old IE
|
|
1255
1309
|
|
|
1256
|
-
|
|
1257
|
-
},
|
|
1258
|
-
pageCount: {
|
|
1259
|
-
handler: function handler(pageCount) {
|
|
1260
|
-
this.pageCount_ = pageCount;
|
|
1261
|
-
this.computedPager();
|
|
1262
|
-
},
|
|
1310
|
+
/* istanbul ignore if */
|
|
1263
1311
|
|
|
1264
|
-
immediate: true
|
|
1265
|
-
},
|
|
1266
|
-
pagerCount: function pagerCount() {
|
|
1267
|
-
this.computedPager();
|
|
1268
|
-
},
|
|
1269
|
-
total: function total() {
|
|
1270
|
-
this.computedPager();
|
|
1271
|
-
}
|
|
1272
|
-
},
|
|
1273
|
-
created: function created() {
|
|
1274
|
-
this.computedPager();
|
|
1275
|
-
},
|
|
1276
1312
|
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
if (jump < 1) jump = 1;
|
|
1284
|
-
this.jumperPage = '';
|
|
1285
|
-
this.handleCurrentChange(jump);
|
|
1286
|
-
},
|
|
1287
|
-
handleSizeChange: function handleSizeChange(size) {
|
|
1288
|
-
if (this.disabled) return;
|
|
1289
|
-
this.$emit('update:pageSize', size);
|
|
1290
|
-
this.$emit('size-change', size);
|
|
1291
|
-
this.computedPager();
|
|
1292
|
-
},
|
|
1293
|
-
handleCurrentChange: function handleCurrentChange(current) {
|
|
1294
|
-
if (this.disabled) return;
|
|
1295
|
-
this.currentPage_ = current;
|
|
1296
|
-
this.$emit('update:currentPage', current);
|
|
1297
|
-
this.$emit('current-change', current);
|
|
1298
|
-
this.computedPager();
|
|
1299
|
-
},
|
|
1300
|
-
handlePagePrev: function handlePagePrev() {
|
|
1301
|
-
if (this.disabled) return;
|
|
1302
|
-
if (this.currentPage_ > 1) {
|
|
1303
|
-
this.currentPage_ -= 1;
|
|
1304
|
-
this.handleCurrentChange(this.currentPage_);
|
|
1305
|
-
this.$emit('prev-click', this.currentPage_);
|
|
1306
|
-
this.computedPager();
|
|
1307
|
-
}
|
|
1308
|
-
},
|
|
1309
|
-
handlePageNext: function handlePageNext() {
|
|
1310
|
-
if (this.disabled) return;
|
|
1311
|
-
if (this.currentPage_ < Number(this.pageCount_)) {
|
|
1312
|
-
this.currentPage_ += 1;
|
|
1313
|
-
this.handleCurrentChange(this.currentPage_);
|
|
1314
|
-
this.$emit('next-click', this.currentPage_);
|
|
1315
|
-
this.computedPager();
|
|
1316
|
-
}
|
|
1317
|
-
},
|
|
1318
|
-
computedPager: function computedPager() {
|
|
1319
|
-
var pagerCount = this.pagerCount;
|
|
1320
|
-
var halfPagerCount = (Number(pagerCount) - 1) / 2;
|
|
1321
|
-
var pageCount = Number(this.pageCount) || Number(Number(this.total) === 0 ? 1 : Math.ceil(Number(this.total) / Number(this.pageSize_)));
|
|
1322
|
-
var currentPage = Number(this.currentPage_);
|
|
1323
|
-
var showPrevMore = false;
|
|
1324
|
-
var showNextMore = false;
|
|
1313
|
+
if (style.styleSheet) {
|
|
1314
|
+
style.styleSheet.cssText = css;
|
|
1315
|
+
} else {
|
|
1316
|
+
while (style.firstChild) {
|
|
1317
|
+
style.removeChild(style.firstChild);
|
|
1318
|
+
}
|
|
1325
1319
|
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
}
|
|
1320
|
+
style.appendChild(document.createTextNode(css));
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1330
1323
|
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
var array = [];
|
|
1324
|
+
var singleton = null;
|
|
1325
|
+
var singletonCounter = 0;
|
|
1336
1326
|
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
}
|
|
1342
|
-
} else if (!showPrevMore && showNextMore) {
|
|
1343
|
-
for (var _i = 2; _i < Number(pagerCount); _i++) {
|
|
1344
|
-
array.push(_i);
|
|
1345
|
-
}
|
|
1346
|
-
} else if (showPrevMore && showNextMore) {
|
|
1347
|
-
var offset = Math.floor(Number(pagerCount) / 2) - 1;
|
|
1348
|
-
for (var _i2 = currentPage - offset; _i2 <= currentPage + offset; _i2++) {
|
|
1349
|
-
array.push(_i2);
|
|
1350
|
-
}
|
|
1351
|
-
} else {
|
|
1352
|
-
for (var _i3 = 2; _i3 < pageCount; _i3++) {
|
|
1353
|
-
array.push(_i3);
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1327
|
+
function addStyle(obj, options) {
|
|
1328
|
+
var style;
|
|
1329
|
+
var update;
|
|
1330
|
+
var remove;
|
|
1356
1331
|
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
/* harmony default export */ var src_pagevue_type_script_lang_js = (pagevue_type_script_lang_js);
|
|
1366
|
-
// EXTERNAL MODULE: ./packages/page/src/page.vue?vue&type=style&index=0&id=03d37639&prod&lang=css
|
|
1367
|
-
var pagevue_type_style_index_0_id_03d37639_prod_lang_css = __webpack_require__(101);
|
|
1332
|
+
if (options.singleton) {
|
|
1333
|
+
var styleIndex = singletonCounter++;
|
|
1334
|
+
style = singleton || (singleton = insertStyleElement(options));
|
|
1335
|
+
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
|
1336
|
+
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
|
1337
|
+
} else {
|
|
1338
|
+
style = insertStyleElement(options);
|
|
1339
|
+
update = applyToTag.bind(null, style, options);
|
|
1368
1340
|
|
|
1369
|
-
|
|
1370
|
-
|
|
1341
|
+
remove = function remove() {
|
|
1342
|
+
removeStyleElement(style);
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1371
1345
|
|
|
1372
|
-
|
|
1346
|
+
update(obj);
|
|
1347
|
+
return function updateStyle(newObj) {
|
|
1348
|
+
if (newObj) {
|
|
1349
|
+
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
|
|
1350
|
+
return;
|
|
1351
|
+
}
|
|
1373
1352
|
|
|
1353
|
+
update(obj = newObj);
|
|
1354
|
+
} else {
|
|
1355
|
+
remove();
|
|
1356
|
+
}
|
|
1357
|
+
};
|
|
1358
|
+
}
|
|
1374
1359
|
|
|
1360
|
+
module.exports = function (list, options) {
|
|
1361
|
+
options = options || {};
|
|
1362
|
+
options.attributes = typeof options.attributes === 'object' ? options.attributes : {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
|
1363
|
+
// tags it will allow on a page
|
|
1375
1364
|
|
|
1365
|
+
if (!options.singleton && typeof options.singleton !== 'boolean') {
|
|
1366
|
+
options.singleton = isOldIE();
|
|
1367
|
+
}
|
|
1376
1368
|
|
|
1369
|
+
var styles = listToStyles(list, options);
|
|
1370
|
+
addStylesToDom(styles, options);
|
|
1371
|
+
return function update(newList) {
|
|
1372
|
+
var mayRemove = [];
|
|
1377
1373
|
|
|
1374
|
+
for (var i = 0; i < styles.length; i++) {
|
|
1375
|
+
var item = styles[i];
|
|
1376
|
+
var domStyle = stylesInDom[item.id];
|
|
1378
1377
|
|
|
1379
|
-
|
|
1378
|
+
if (domStyle) {
|
|
1379
|
+
domStyle.refs--;
|
|
1380
|
+
mayRemove.push(domStyle);
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1380
1383
|
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
false,
|
|
1386
|
-
null,
|
|
1387
|
-
null,
|
|
1388
|
-
null
|
|
1389
|
-
|
|
1390
|
-
)
|
|
1384
|
+
if (newList) {
|
|
1385
|
+
var newStyles = listToStyles(newList, options);
|
|
1386
|
+
addStylesToDom(newStyles, options);
|
|
1387
|
+
}
|
|
1391
1388
|
|
|
1392
|
-
|
|
1393
|
-
|
|
1389
|
+
for (var _i = 0; _i < mayRemove.length; _i++) {
|
|
1390
|
+
var _domStyle = mayRemove[_i];
|
|
1394
1391
|
|
|
1392
|
+
if (_domStyle.refs === 0) {
|
|
1393
|
+
for (var j = 0; j < _domStyle.parts.length; j++) {
|
|
1394
|
+
_domStyle.parts[j]();
|
|
1395
|
+
}
|
|
1395
1396
|
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1397
|
+
delete stylesInDom[_domStyle.id];
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
};
|
|
1399
1401
|
};
|
|
1400
1402
|
|
|
1401
|
-
/* harmony default export */ var packages_page = __webpack_exports__["default"] = (page);
|
|
1402
|
-
|
|
1403
1403
|
/***/ })
|
|
1404
1404
|
|
|
1405
1405
|
/******/ });
|