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.
Files changed (81) hide show
  1. package/lib/affix.js +2 -2
  2. package/lib/ai.touchui-vue.common.js +994 -881
  3. package/lib/align.js +2 -2
  4. package/lib/animation.js +2 -2
  5. package/lib/article.js +2 -2
  6. package/lib/box.js +2 -2
  7. package/lib/button.js +2 -2
  8. package/lib/calendar.js +2 -2
  9. package/lib/card-item.js +4 -4
  10. package/lib/card.js +178 -178
  11. package/lib/cascader.js +2 -2
  12. package/lib/center-scroll.js +2 -2
  13. package/lib/chat.js +4 -4
  14. package/lib/checkbox.js +2 -2
  15. package/lib/checkboxes.js +2 -2
  16. package/lib/collapse.js +771 -771
  17. package/lib/color.js +2 -2
  18. package/lib/countdown.js +2 -2
  19. package/lib/date-picker.js +1466 -1466
  20. package/lib/date-range.js +2 -2
  21. package/lib/dialog.js +2 -2
  22. package/lib/dis.js +2 -2
  23. package/lib/ellipsis.js +2 -2
  24. package/lib/emote.js +2 -2
  25. package/lib/export.js +10 -10
  26. package/lib/filter.js +2 -2
  27. package/lib/fix.js +2 -2
  28. package/lib/float.js +2 -2
  29. package/lib/flow.js +4 -4
  30. package/lib/form.js +2 -2
  31. package/lib/grid.js +2 -2
  32. package/lib/guider.js +2 -2
  33. package/lib/header.js +2 -2
  34. package/lib/hide.js +2 -2
  35. package/lib/icon.js +2 -2
  36. package/lib/import.js +12 -12
  37. package/lib/index.js +1 -1
  38. package/lib/input.js +62 -10
  39. package/lib/ip.js +2 -2
  40. package/lib/line.js +2 -2
  41. package/lib/loading.js +11 -11
  42. package/lib/longtap.js +2 -2
  43. package/lib/menu-icon.js +673 -670
  44. package/lib/message.js +2 -2
  45. package/lib/msg.js +19 -19
  46. package/lib/org.js +582 -582
  47. package/lib/padding.js +2 -2
  48. package/lib/page.js +578 -578
  49. package/lib/param.js +24 -8
  50. package/lib/pic.js +4 -4
  51. package/lib/popup.js +2 -2
  52. package/lib/progress.js +2 -2
  53. package/lib/range.js +452 -18
  54. package/lib/rate.js +2 -2
  55. package/lib/reverser.js +2 -2
  56. package/lib/scroll.js +2 -2
  57. package/lib/segment.js +2 -2
  58. package/lib/select.js +2 -2
  59. package/lib/size.js +2 -2
  60. package/lib/skeleton.js +2 -2
  61. package/lib/slide.js +2 -2
  62. package/lib/space.js +2 -2
  63. package/lib/step.js +2 -2
  64. package/lib/submit.js +2 -2
  65. package/lib/switch.js +2 -2
  66. package/lib/tab.js +5 -5
  67. package/lib/table.js +10 -10
  68. package/lib/tag.js +2 -2
  69. package/lib/timeline.js +2 -2
  70. package/lib/tip.js +2 -2
  71. package/lib/tooltip.js +2 -2
  72. package/lib/transfer.js +2 -2
  73. package/lib/tree.js +2 -2
  74. package/lib/upload.js +14 -14
  75. package/package.json +1 -1
  76. package/packages/input/src/input.vue +65 -7
  77. package/packages/param/src/param.vue +6 -2
  78. package/packages/range/src/range.vue +17 -14
  79. package/packages/tab/src/tab.vue +1 -1
  80. package/packages/table/src/table-head.vue +1 -1
  81. package/src/index.js +1 -1
package/lib/org.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 = 341);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 344);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,472 +192,107 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 11:
196
- /***/ (function(module, exports, __webpack_require__) {
195
+ /***/ 100:
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_orgItem_vue_vue_type_style_index_0_id_3547cd49_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
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_orgItem_vue_vue_type_style_index_0_id_3547cd49_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_orgItem_vue_vue_type_style_index_0_id_3547cd49_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
201
+ /* unused harmony reexport * */
199
202
 
200
203
 
201
- /*
202
- MIT License http://www.opensource.org/licenses/mit-license.php
203
- Author Tobias Koppers @sokra
204
- */
205
- // css base code, injected by the css-loader
206
- // eslint-disable-next-line func-names
207
- module.exports = function (useSourceMap) {
208
- var list = []; // return the list of modules as css string
209
-
210
- list.toString = function toString() {
211
- return this.map(function (item) {
212
- var content = cssWithMappingToString(item, useSourceMap);
213
-
214
- if (item[2]) {
215
- return "@media ".concat(item[2], "{").concat(content, "}");
216
- }
217
-
218
- return content;
219
- }).join('');
220
- }; // import a list of modules into the list
221
- // eslint-disable-next-line func-names
222
-
223
-
224
- list.i = function (modules, mediaQuery) {
225
- if (typeof modules === 'string') {
226
- // eslint-disable-next-line no-param-reassign
227
- modules = [[null, modules, '']];
228
- }
229
-
230
- var alreadyImportedModules = {};
231
-
232
- for (var i = 0; i < this.length; i++) {
233
- // eslint-disable-next-line prefer-destructuring
234
- var id = this[i][0];
235
-
236
- if (id != null) {
237
- alreadyImportedModules[id] = true;
238
- }
239
- }
240
-
241
- for (var _i = 0; _i < modules.length; _i++) {
242
- var item = modules[_i]; // skip already imported module
243
- // this implementation is not 100% perfect for weird media query combinations
244
- // when a module is imported multiple times with different media queries.
245
- // I hope this will never occur (Hey this way we have smaller bundles)
246
-
247
- if (item[0] == null || !alreadyImportedModules[item[0]]) {
248
- if (mediaQuery && !item[2]) {
249
- item[2] = mediaQuery;
250
- } else if (mediaQuery) {
251
- item[2] = "(".concat(item[2], ") and (").concat(mediaQuery, ")");
252
- }
253
-
254
- list.push(item);
255
- }
256
- }
257
- };
258
-
259
- return list;
260
- };
261
-
262
- function cssWithMappingToString(item, useSourceMap) {
263
- var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
264
-
265
- var cssMapping = item[3];
266
-
267
- if (!cssMapping) {
268
- return content;
269
- }
270
-
271
- if (useSourceMap && typeof btoa === 'function') {
272
- var sourceMapping = toComment(cssMapping);
273
- var sourceURLs = cssMapping.sources.map(function (source) {
274
- return "/*# sourceURL=".concat(cssMapping.sourceRoot).concat(source, " */");
275
- });
276
- return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
277
- }
278
-
279
- return [content].join('\n');
280
- } // Adapted from convert-source-map (MIT)
281
-
282
-
283
- function toComment(sourceMap) {
284
- // eslint-disable-next-line no-undef
285
- var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
286
- var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
287
- return "/*# ".concat(data, " */");
288
- }
289
-
290
204
  /***/ }),
291
205
 
292
- /***/ 12:
206
+ /***/ 101:
293
207
  /***/ (function(module, exports, __webpack_require__) {
294
208
 
295
- "use strict";
296
-
297
-
298
- var stylesInDom = {};
299
-
300
- var isOldIE = function isOldIE() {
301
- var memo;
302
- return function memorize() {
303
- if (typeof memo === 'undefined') {
304
- // Test for IE <= 9 as proposed by Browserhacks
305
- // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
306
- // Tests for existence of standard globals is to allow style-loader
307
- // to operate correctly into non-standard environments
308
- // @see https://github.com/webpack-contrib/style-loader/issues/177
309
- memo = Boolean(window && document && document.all && !window.atob);
310
- }
209
+ exports = module.exports = __webpack_require__(7)(false);
210
+ // Module
211
+ exports.push([module.i, "\n.chosen { border:1px solid #f60;}\n.ghost { opacity:0.2;}\n", ""]);
311
212
 
312
- return memo;
313
- };
314
- }();
315
213
 
316
- var getTarget = function getTarget() {
317
- var memo = {};
318
- return function memorize(target) {
319
- if (typeof memo[target] === 'undefined') {
320
- var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
214
+ /***/ }),
321
215
 
322
- if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
323
- try {
324
- // This will throw an exception if access to iframe is blocked
325
- // due to cross-origin restrictions
326
- styleTarget = styleTarget.contentDocument.head;
327
- } catch (e) {
328
- // istanbul ignore next
329
- styleTarget = null;
330
- }
331
- }
216
+ /***/ 21:
217
+ /***/ (function(module, exports, __webpack_require__) {
332
218
 
333
- memo[target] = styleTarget;
334
- }
219
+ var content = __webpack_require__(101);
335
220
 
336
- return memo[target];
337
- };
338
- }();
221
+ if (typeof content === 'string') {
222
+ content = [[module.i, content, '']];
223
+ }
339
224
 
340
- function listToStyles(list, options) {
341
- var styles = [];
342
- var newStyles = {};
225
+ var options = {}
343
226
 
344
- for (var i = 0; i < list.length; i++) {
345
- var item = list[i];
346
- var id = options.base ? item[0] + options.base : item[0];
347
- var css = item[1];
348
- var media = item[2];
349
- var sourceMap = item[3];
350
- var part = {
351
- css: css,
352
- media: media,
353
- sourceMap: sourceMap
354
- };
227
+ options.insert = "head";
228
+ options.singleton = false;
355
229
 
356
- if (!newStyles[id]) {
357
- styles.push(newStyles[id] = {
358
- id: id,
359
- parts: [part]
360
- });
361
- } else {
362
- newStyles[id].parts.push(part);
363
- }
364
- }
230
+ var update = __webpack_require__(8)(content, options);
365
231
 
366
- return styles;
232
+ if (content.locals) {
233
+ module.exports = content.locals;
367
234
  }
368
235
 
369
- function addStylesToDom(styles, options) {
370
- for (var i = 0; i < styles.length; i++) {
371
- var item = styles[i];
372
- var domStyle = stylesInDom[item.id];
373
- var j = 0;
374
-
375
- if (domStyle) {
376
- domStyle.refs++;
377
236
 
378
- for (; j < domStyle.parts.length; j++) {
379
- domStyle.parts[j](item.parts[j]);
380
- }
237
+ /***/ }),
381
238
 
382
- for (; j < item.parts.length; j++) {
383
- domStyle.parts.push(addStyle(item.parts[j], options));
384
- }
385
- } else {
386
- var parts = [];
239
+ /***/ 344:
240
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
387
241
 
388
- for (; j < item.parts.length; j++) {
389
- parts.push(addStyle(item.parts[j], options));
390
- }
242
+ "use strict";
243
+ // ESM COMPAT FLAG
244
+ __webpack_require__.r(__webpack_exports__);
391
245
 
392
- stylesInDom[item.id] = {
393
- id: item.id,
394
- refs: 1,
395
- parts: parts
396
- };
397
- }
398
- }
246
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/org/src/org.vue?vue&type=template&id=05fbba22
247
+ var render = function () {
248
+ var _vm = this
249
+ var _h = _vm.$createElement
250
+ var _c = _vm._self._c || _h
251
+ return _c("div", { staticClass: "to-org", class: _vm.setClass }, [
252
+ _c(
253
+ "ul",
254
+ { staticClass: "to-orgList" },
255
+ [
256
+ _c("to-org-item", {
257
+ attrs: {
258
+ data: _vm.iData,
259
+ "children-text": _vm.childrenText,
260
+ "label-text": _vm.labelText,
261
+ "value-text": _vm.valueText,
262
+ },
263
+ scopedSlots: _vm._u(
264
+ [
265
+ {
266
+ key: "default",
267
+ fn: function (scope) {
268
+ return [
269
+ _vm._t("default", null, {
270
+ item: scope.item,
271
+ index: scope.index,
272
+ org: scope.org,
273
+ }),
274
+ ]
275
+ },
276
+ },
277
+ ],
278
+ null,
279
+ true
280
+ ),
281
+ }),
282
+ ],
283
+ 1
284
+ ),
285
+ ])
399
286
  }
287
+ var staticRenderFns = []
288
+ render._withStripped = true
400
289
 
401
- function insertStyleElement(options) {
402
- var style = document.createElement('style');
403
290
 
404
- if (typeof options.attributes.nonce === 'undefined') {
405
- var nonce = true ? __webpack_require__.nc : undefined;
291
+ // CONCATENATED MODULE: ./packages/org/src/org.vue?vue&type=template&id=05fbba22
406
292
 
407
- if (nonce) {
408
- options.attributes.nonce = nonce;
409
- }
410
- }
411
-
412
- Object.keys(options.attributes).forEach(function (key) {
413
- style.setAttribute(key, options.attributes[key]);
414
- });
415
-
416
- if (typeof options.insert === 'function') {
417
- options.insert(style);
418
- } else {
419
- var target = getTarget(options.insert || 'head');
420
-
421
- if (!target) {
422
- throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
423
- }
424
-
425
- target.appendChild(style);
426
- }
427
-
428
- return style;
429
- }
430
-
431
- function removeStyleElement(style) {
432
- // istanbul ignore if
433
- if (style.parentNode === null) {
434
- return false;
435
- }
436
-
437
- style.parentNode.removeChild(style);
438
- }
439
- /* istanbul ignore next */
440
-
441
-
442
- var replaceText = function replaceText() {
443
- var textStore = [];
444
- return function replace(index, replacement) {
445
- textStore[index] = replacement;
446
- return textStore.filter(Boolean).join('\n');
447
- };
448
- }();
449
-
450
- function applyToSingletonTag(style, index, remove, obj) {
451
- var css = remove ? '' : obj.css; // For old IE
452
-
453
- /* istanbul ignore if */
454
-
455
- if (style.styleSheet) {
456
- style.styleSheet.cssText = replaceText(index, css);
457
- } else {
458
- var cssNode = document.createTextNode(css);
459
- var childNodes = style.childNodes;
460
-
461
- if (childNodes[index]) {
462
- style.removeChild(childNodes[index]);
463
- }
464
-
465
- if (childNodes.length) {
466
- style.insertBefore(cssNode, childNodes[index]);
467
- } else {
468
- style.appendChild(cssNode);
469
- }
470
- }
471
- }
472
-
473
- function applyToTag(style, options, obj) {
474
- var css = obj.css;
475
- var media = obj.media;
476
- var sourceMap = obj.sourceMap;
477
-
478
- if (media) {
479
- style.setAttribute('media', media);
480
- }
481
-
482
- if (sourceMap && btoa) {
483
- css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
484
- } // For old IE
485
-
486
- /* istanbul ignore if */
487
-
488
-
489
- if (style.styleSheet) {
490
- style.styleSheet.cssText = css;
491
- } else {
492
- while (style.firstChild) {
493
- style.removeChild(style.firstChild);
494
- }
495
-
496
- style.appendChild(document.createTextNode(css));
497
- }
498
- }
499
-
500
- var singleton = null;
501
- var singletonCounter = 0;
502
-
503
- function addStyle(obj, options) {
504
- var style;
505
- var update;
506
- var remove;
507
-
508
- if (options.singleton) {
509
- var styleIndex = singletonCounter++;
510
- style = singleton || (singleton = insertStyleElement(options));
511
- update = applyToSingletonTag.bind(null, style, styleIndex, false);
512
- remove = applyToSingletonTag.bind(null, style, styleIndex, true);
513
- } else {
514
- style = insertStyleElement(options);
515
- update = applyToTag.bind(null, style, options);
516
-
517
- remove = function remove() {
518
- removeStyleElement(style);
519
- };
520
- }
521
-
522
- update(obj);
523
- return function updateStyle(newObj) {
524
- if (newObj) {
525
- if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
526
- return;
527
- }
528
-
529
- update(obj = newObj);
530
- } else {
531
- remove();
532
- }
533
- };
534
- }
535
-
536
- module.exports = function (list, options) {
537
- options = options || {};
538
- options.attributes = typeof options.attributes === 'object' ? options.attributes : {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
539
- // tags it will allow on a page
540
-
541
- if (!options.singleton && typeof options.singleton !== 'boolean') {
542
- options.singleton = isOldIE();
543
- }
544
-
545
- var styles = listToStyles(list, options);
546
- addStylesToDom(styles, options);
547
- return function update(newList) {
548
- var mayRemove = [];
549
-
550
- for (var i = 0; i < styles.length; i++) {
551
- var item = styles[i];
552
- var domStyle = stylesInDom[item.id];
553
-
554
- if (domStyle) {
555
- domStyle.refs--;
556
- mayRemove.push(domStyle);
557
- }
558
- }
559
-
560
- if (newList) {
561
- var newStyles = listToStyles(newList, options);
562
- addStylesToDom(newStyles, options);
563
- }
564
-
565
- for (var _i = 0; _i < mayRemove.length; _i++) {
566
- var _domStyle = mayRemove[_i];
567
-
568
- if (_domStyle.refs === 0) {
569
- for (var j = 0; j < _domStyle.parts.length; j++) {
570
- _domStyle.parts[j]();
571
- }
572
-
573
- delete stylesInDom[_domStyle.id];
574
- }
575
- }
576
- };
577
- };
578
-
579
- /***/ }),
580
-
581
- /***/ 20:
582
- /***/ (function(module, exports, __webpack_require__) {
583
-
584
- var content = __webpack_require__(98);
585
-
586
- if (typeof content === 'string') {
587
- content = [[module.i, content, '']];
588
- }
589
-
590
- var options = {}
591
-
592
- options.insert = "head";
593
- options.singleton = false;
594
-
595
- var update = __webpack_require__(12)(content, options);
596
-
597
- if (content.locals) {
598
- module.exports = content.locals;
599
- }
600
-
601
-
602
- /***/ }),
603
-
604
- /***/ 341:
605
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
606
-
607
- "use strict";
608
- // ESM COMPAT FLAG
609
- __webpack_require__.r(__webpack_exports__);
610
-
611
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/org/src/org.vue?vue&type=template&id=05fbba22
612
- var render = function () {
613
- var _vm = this
614
- var _h = _vm.$createElement
615
- var _c = _vm._self._c || _h
616
- return _c("div", { staticClass: "to-org", class: _vm.setClass }, [
617
- _c(
618
- "ul",
619
- { staticClass: "to-orgList" },
620
- [
621
- _c("to-org-item", {
622
- attrs: {
623
- data: _vm.iData,
624
- "children-text": _vm.childrenText,
625
- "label-text": _vm.labelText,
626
- "value-text": _vm.valueText,
627
- },
628
- scopedSlots: _vm._u(
629
- [
630
- {
631
- key: "default",
632
- fn: function (scope) {
633
- return [
634
- _vm._t("default", null, {
635
- item: scope.item,
636
- index: scope.index,
637
- org: scope.org,
638
- }),
639
- ]
640
- },
641
- },
642
- ],
643
- null,
644
- true
645
- ),
646
- }),
647
- ],
648
- 1
649
- ),
650
- ])
651
- }
652
- var staticRenderFns = []
653
- render._withStripped = true
654
-
655
-
656
- // CONCATENATED MODULE: ./packages/org/src/org.vue?vue&type=template&id=05fbba22
657
-
658
- // EXTERNAL MODULE: external "vue"
659
- var external_vue_ = __webpack_require__(4);
660
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
293
+ // EXTERNAL MODULE: external "vue"
294
+ var external_vue_ = __webpack_require__(4);
295
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
661
296
 
662
297
  // CONCATENATED MODULE: ./src/utils/uuid.js
663
298
  /* harmony default export */ var uuid = (function () {
@@ -783,7 +418,7 @@ orgItemvue_type_template_id_3547cd49_render._withStripped = true
783
418
  // CONCATENATED MODULE: ./packages/org/src/orgItem.vue?vue&type=template&id=3547cd49
784
419
 
785
420
  // EXTERNAL MODULE: external "vuedraggable"
786
- var external_vuedraggable_ = __webpack_require__(92);
421
+ var external_vuedraggable_ = __webpack_require__(93);
787
422
  var external_vuedraggable_default = /*#__PURE__*/__webpack_require__.n(external_vuedraggable_);
788
423
 
789
424
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/org/src/orgItem.vue?vue&type=script&lang=js
@@ -848,7 +483,7 @@ var external_vuedraggable_default = /*#__PURE__*/__webpack_require__.n(external_
848
483
  // CONCATENATED MODULE: ./packages/org/src/orgItem.vue?vue&type=script&lang=js
849
484
  /* harmony default export */ var src_orgItemvue_type_script_lang_js = (orgItemvue_type_script_lang_js);
850
485
  // EXTERNAL MODULE: ./packages/org/src/orgItem.vue?vue&type=style&index=0&id=3547cd49&prod&lang=css
851
- var orgItemvue_type_style_index_0_id_3547cd49_prod_lang_css = __webpack_require__(97);
486
+ var orgItemvue_type_style_index_0_id_3547cd49_prod_lang_css = __webpack_require__(100);
852
487
 
853
488
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
854
489
  var componentNormalizer = __webpack_require__(0);
@@ -890,176 +525,541 @@ var component = Object(componentNormalizer["a" /* default */])(
890
525
 
891
526
 
892
527
 
893
- external_vue_default.a.component('ToOrgItem', orgItem);
894
- /* harmony default export */ var orgvue_type_script_lang_js = ({
895
- name: 'ToOrg',
896
- componentName: 'ToOrg',
897
- provide: function provide() {
898
- return {
899
- org: this
900
- };
901
- },
528
+ external_vue_default.a.component('ToOrgItem', orgItem);
529
+ /* harmony default export */ var orgvue_type_script_lang_js = ({
530
+ name: 'ToOrg',
531
+ componentName: 'ToOrg',
532
+ provide: function provide() {
533
+ return {
534
+ org: this
535
+ };
536
+ },
537
+
538
+ props: {
539
+ dragable: Boolean,
540
+ valueText: {
541
+ type: String,
542
+ default: 'value'
543
+ },
544
+ labelText: {
545
+ type: String,
546
+ default: 'label'
547
+ },
548
+ childrenText: {
549
+ type: String,
550
+ default: 'children'
551
+ },
552
+ leafMode: {
553
+ type: String,
554
+ default: ''
555
+ },
556
+ data: {
557
+ type: Object,
558
+ default: function _default() {}
559
+ }
560
+ },
561
+ data: function data() {
562
+ return {
563
+ from: '',
564
+ id: 'org_' + uuid(),
565
+ iData: {},
566
+ deeps: [],
567
+ deep: 0
568
+ };
569
+ },
570
+
571
+ computed: {
572
+ setClass: function setClass() {
573
+ var arr = [];
574
+ if (this.leafMode) {
575
+ arr.push('to-org-leaf-mode-' + this.leafMode);
576
+ }
577
+ if (this.dragable) {
578
+ arr.push('to-org-dragable');
579
+ }
580
+ return arr;
581
+ }
582
+ },
583
+ watch: {
584
+ data: {
585
+ handler: function handler() {
586
+ this.initData(this.data);
587
+ },
588
+
589
+ immediate: true,
590
+ deep: true
591
+ }
592
+ },
593
+ methods: {
594
+ initData: function initData(data) {
595
+ var self = this;
596
+ this.iData = JSON.parse(JSON.stringify(data));
597
+ this.iData.level = 0;
598
+ function set(arr) {
599
+ var i = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
600
+
601
+ arr.map(function (item) {
602
+ item.level = i;
603
+ if (item[self.childrenText] && item[self.childrenText].length > 0) {
604
+ self.deeps.push(i + 1);
605
+ set(item[self.childrenText], i + 1);
606
+ } else {
607
+ item[self.childrenText] = [];
608
+ }
609
+ });
610
+ }
611
+ if (this.iData[self.childrenText]) {
612
+ set(this.iData[self.childrenText]);
613
+ }
614
+ this.deep = this.deeps.sort()[this.deeps.length - 1];
615
+ },
616
+ dragStart: function dragStart(e) {
617
+ this.from = document.getElementById(e.clone.id).parentNode.dataset.value;
618
+ },
619
+ dragAdd: function dragAdd(e) {
620
+ var _this = this;
621
+
622
+ this.initData(this.iData);
623
+
624
+ // vuedraggable bug:
625
+ // 从左往右拖动到同级节点之下,因为 DOM 发生变化导致判断错误,form/to 的值都不正确了,因此通过获取当前节点 id,向上寻找 parentNode 的方式来获取 from/to
626
+ this.$nextTick(function () {
627
+ _this.$emit('drag', _this.from, document.getElementById(e.clone.id).parentNode.dataset.value, e.clone.dataset.value);
628
+ });
629
+ }
630
+ }
631
+ });
632
+ // CONCATENATED MODULE: ./packages/org/src/org.vue?vue&type=script&lang=js
633
+ /* harmony default export */ var src_orgvue_type_script_lang_js = (orgvue_type_script_lang_js);
634
+ // CONCATENATED MODULE: ./packages/org/src/org.vue
635
+
636
+
637
+
638
+
639
+
640
+ /* normalize component */
641
+
642
+ var org_component = Object(componentNormalizer["a" /* default */])(
643
+ src_orgvue_type_script_lang_js,
644
+ render,
645
+ staticRenderFns,
646
+ false,
647
+ null,
648
+ null,
649
+ null
650
+
651
+ )
652
+
653
+ /* harmony default export */ var org = (org_component.exports);
654
+ // CONCATENATED MODULE: ./packages/org/index.js
655
+
656
+
657
+ /* istanbul ignore next */
658
+ org.install = function (Vue) {
659
+ Vue.component(org.name, org);
660
+ };
661
+
662
+ /* harmony default export */ var packages_org = __webpack_exports__["default"] = (org);
663
+
664
+ /***/ }),
665
+
666
+ /***/ 4:
667
+ /***/ (function(module, exports) {
668
+
669
+ module.exports = require("vue");
670
+
671
+ /***/ }),
672
+
673
+ /***/ 7:
674
+ /***/ (function(module, exports, __webpack_require__) {
675
+
676
+ "use strict";
677
+
678
+
679
+ /*
680
+ MIT License http://www.opensource.org/licenses/mit-license.php
681
+ Author Tobias Koppers @sokra
682
+ */
683
+ // css base code, injected by the css-loader
684
+ // eslint-disable-next-line func-names
685
+ module.exports = function (useSourceMap) {
686
+ var list = []; // return the list of modules as css string
687
+
688
+ list.toString = function toString() {
689
+ return this.map(function (item) {
690
+ var content = cssWithMappingToString(item, useSourceMap);
691
+
692
+ if (item[2]) {
693
+ return "@media ".concat(item[2], "{").concat(content, "}");
694
+ }
695
+
696
+ return content;
697
+ }).join('');
698
+ }; // import a list of modules into the list
699
+ // eslint-disable-next-line func-names
700
+
701
+
702
+ list.i = function (modules, mediaQuery) {
703
+ if (typeof modules === 'string') {
704
+ // eslint-disable-next-line no-param-reassign
705
+ modules = [[null, modules, '']];
706
+ }
707
+
708
+ var alreadyImportedModules = {};
709
+
710
+ for (var i = 0; i < this.length; i++) {
711
+ // eslint-disable-next-line prefer-destructuring
712
+ var id = this[i][0];
713
+
714
+ if (id != null) {
715
+ alreadyImportedModules[id] = true;
716
+ }
717
+ }
718
+
719
+ for (var _i = 0; _i < modules.length; _i++) {
720
+ var item = modules[_i]; // skip already imported module
721
+ // this implementation is not 100% perfect for weird media query combinations
722
+ // when a module is imported multiple times with different media queries.
723
+ // I hope this will never occur (Hey this way we have smaller bundles)
724
+
725
+ if (item[0] == null || !alreadyImportedModules[item[0]]) {
726
+ if (mediaQuery && !item[2]) {
727
+ item[2] = mediaQuery;
728
+ } else if (mediaQuery) {
729
+ item[2] = "(".concat(item[2], ") and (").concat(mediaQuery, ")");
730
+ }
731
+
732
+ list.push(item);
733
+ }
734
+ }
735
+ };
736
+
737
+ return list;
738
+ };
739
+
740
+ function cssWithMappingToString(item, useSourceMap) {
741
+ var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
742
+
743
+ var cssMapping = item[3];
744
+
745
+ if (!cssMapping) {
746
+ return content;
747
+ }
748
+
749
+ if (useSourceMap && typeof btoa === 'function') {
750
+ var sourceMapping = toComment(cssMapping);
751
+ var sourceURLs = cssMapping.sources.map(function (source) {
752
+ return "/*# sourceURL=".concat(cssMapping.sourceRoot).concat(source, " */");
753
+ });
754
+ return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
755
+ }
756
+
757
+ return [content].join('\n');
758
+ } // Adapted from convert-source-map (MIT)
759
+
760
+
761
+ function toComment(sourceMap) {
762
+ // eslint-disable-next-line no-undef
763
+ var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
764
+ var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
765
+ return "/*# ".concat(data, " */");
766
+ }
767
+
768
+ /***/ }),
769
+
770
+ /***/ 8:
771
+ /***/ (function(module, exports, __webpack_require__) {
772
+
773
+ "use strict";
774
+
775
+
776
+ var stylesInDom = {};
777
+
778
+ var isOldIE = function isOldIE() {
779
+ var memo;
780
+ return function memorize() {
781
+ if (typeof memo === 'undefined') {
782
+ // Test for IE <= 9 as proposed by Browserhacks
783
+ // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
784
+ // Tests for existence of standard globals is to allow style-loader
785
+ // to operate correctly into non-standard environments
786
+ // @see https://github.com/webpack-contrib/style-loader/issues/177
787
+ memo = Boolean(window && document && document.all && !window.atob);
788
+ }
789
+
790
+ return memo;
791
+ };
792
+ }();
793
+
794
+ var getTarget = function getTarget() {
795
+ var memo = {};
796
+ return function memorize(target) {
797
+ if (typeof memo[target] === 'undefined') {
798
+ var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
799
+
800
+ if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
801
+ try {
802
+ // This will throw an exception if access to iframe is blocked
803
+ // due to cross-origin restrictions
804
+ styleTarget = styleTarget.contentDocument.head;
805
+ } catch (e) {
806
+ // istanbul ignore next
807
+ styleTarget = null;
808
+ }
809
+ }
810
+
811
+ memo[target] = styleTarget;
812
+ }
813
+
814
+ return memo[target];
815
+ };
816
+ }();
817
+
818
+ function listToStyles(list, options) {
819
+ var styles = [];
820
+ var newStyles = {};
821
+
822
+ for (var i = 0; i < list.length; i++) {
823
+ var item = list[i];
824
+ var id = options.base ? item[0] + options.base : item[0];
825
+ var css = item[1];
826
+ var media = item[2];
827
+ var sourceMap = item[3];
828
+ var part = {
829
+ css: css,
830
+ media: media,
831
+ sourceMap: sourceMap
832
+ };
833
+
834
+ if (!newStyles[id]) {
835
+ styles.push(newStyles[id] = {
836
+ id: id,
837
+ parts: [part]
838
+ });
839
+ } else {
840
+ newStyles[id].parts.push(part);
841
+ }
842
+ }
843
+
844
+ return styles;
845
+ }
846
+
847
+ function addStylesToDom(styles, options) {
848
+ for (var i = 0; i < styles.length; i++) {
849
+ var item = styles[i];
850
+ var domStyle = stylesInDom[item.id];
851
+ var j = 0;
852
+
853
+ if (domStyle) {
854
+ domStyle.refs++;
855
+
856
+ for (; j < domStyle.parts.length; j++) {
857
+ domStyle.parts[j](item.parts[j]);
858
+ }
859
+
860
+ for (; j < item.parts.length; j++) {
861
+ domStyle.parts.push(addStyle(item.parts[j], options));
862
+ }
863
+ } else {
864
+ var parts = [];
865
+
866
+ for (; j < item.parts.length; j++) {
867
+ parts.push(addStyle(item.parts[j], options));
868
+ }
869
+
870
+ stylesInDom[item.id] = {
871
+ id: item.id,
872
+ refs: 1,
873
+ parts: parts
874
+ };
875
+ }
876
+ }
877
+ }
878
+
879
+ function insertStyleElement(options) {
880
+ var style = document.createElement('style');
881
+
882
+ if (typeof options.attributes.nonce === 'undefined') {
883
+ var nonce = true ? __webpack_require__.nc : undefined;
884
+
885
+ if (nonce) {
886
+ options.attributes.nonce = nonce;
887
+ }
888
+ }
889
+
890
+ Object.keys(options.attributes).forEach(function (key) {
891
+ style.setAttribute(key, options.attributes[key]);
892
+ });
893
+
894
+ if (typeof options.insert === 'function') {
895
+ options.insert(style);
896
+ } else {
897
+ var target = getTarget(options.insert || 'head');
898
+
899
+ if (!target) {
900
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
901
+ }
902
+
903
+ target.appendChild(style);
904
+ }
905
+
906
+ return style;
907
+ }
908
+
909
+ function removeStyleElement(style) {
910
+ // istanbul ignore if
911
+ if (style.parentNode === null) {
912
+ return false;
913
+ }
914
+
915
+ style.parentNode.removeChild(style);
916
+ }
917
+ /* istanbul ignore next */
918
+
919
+
920
+ var replaceText = function replaceText() {
921
+ var textStore = [];
922
+ return function replace(index, replacement) {
923
+ textStore[index] = replacement;
924
+ return textStore.filter(Boolean).join('\n');
925
+ };
926
+ }();
902
927
 
903
- props: {
904
- dragable: Boolean,
905
- valueText: {
906
- type: String,
907
- default: 'value'
908
- },
909
- labelText: {
910
- type: String,
911
- default: 'label'
912
- },
913
- childrenText: {
914
- type: String,
915
- default: 'children'
916
- },
917
- leafMode: {
918
- type: String,
919
- default: ''
920
- },
921
- data: {
922
- type: Object,
923
- default: function _default() {}
924
- }
925
- },
926
- data: function data() {
927
- return {
928
- from: '',
929
- id: 'org_' + uuid(),
930
- iData: {},
931
- deeps: [],
932
- deep: 0
933
- };
934
- },
928
+ function applyToSingletonTag(style, index, remove, obj) {
929
+ var css = remove ? '' : obj.css; // For old IE
935
930
 
936
- computed: {
937
- setClass: function setClass() {
938
- var arr = [];
939
- if (this.leafMode) {
940
- arr.push('to-org-leaf-mode-' + this.leafMode);
941
- }
942
- if (this.dragable) {
943
- arr.push('to-org-dragable');
944
- }
945
- return arr;
946
- }
947
- },
948
- watch: {
949
- data: {
950
- handler: function handler() {
951
- this.initData(this.data);
952
- },
931
+ /* istanbul ignore if */
953
932
 
954
- immediate: true,
955
- deep: true
956
- }
957
- },
958
- methods: {
959
- initData: function initData(data) {
960
- var self = this;
961
- this.iData = JSON.parse(JSON.stringify(data));
962
- this.iData.level = 0;
963
- function set(arr) {
964
- var i = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
933
+ if (style.styleSheet) {
934
+ style.styleSheet.cssText = replaceText(index, css);
935
+ } else {
936
+ var cssNode = document.createTextNode(css);
937
+ var childNodes = style.childNodes;
965
938
 
966
- arr.map(function (item) {
967
- item.level = i;
968
- if (item[self.childrenText] && item[self.childrenText].length > 0) {
969
- self.deeps.push(i + 1);
970
- set(item[self.childrenText], i + 1);
971
- } else {
972
- item[self.childrenText] = [];
973
- }
974
- });
975
- }
976
- if (this.iData[self.childrenText]) {
977
- set(this.iData[self.childrenText]);
978
- }
979
- this.deep = this.deeps.sort()[this.deeps.length - 1];
980
- },
981
- dragStart: function dragStart(e) {
982
- this.from = document.getElementById(e.clone.id).parentNode.dataset.value;
983
- },
984
- dragAdd: function dragAdd(e) {
985
- var _this = this;
939
+ if (childNodes[index]) {
940
+ style.removeChild(childNodes[index]);
941
+ }
986
942
 
987
- this.initData(this.iData);
943
+ if (childNodes.length) {
944
+ style.insertBefore(cssNode, childNodes[index]);
945
+ } else {
946
+ style.appendChild(cssNode);
947
+ }
948
+ }
949
+ }
988
950
 
989
- // vuedraggable bug:
990
- // 从左往右拖动到同级节点之下,因为 DOM 发生变化导致判断错误,form/to 的值都不正确了,因此通过获取当前节点 id,向上寻找 parentNode 的方式来获取 from/to
991
- this.$nextTick(function () {
992
- _this.$emit('drag', _this.from, document.getElementById(e.clone.id).parentNode.dataset.value, e.clone.dataset.value);
993
- });
994
- }
995
- }
996
- });
997
- // CONCATENATED MODULE: ./packages/org/src/org.vue?vue&type=script&lang=js
998
- /* harmony default export */ var src_orgvue_type_script_lang_js = (orgvue_type_script_lang_js);
999
- // CONCATENATED MODULE: ./packages/org/src/org.vue
951
+ function applyToTag(style, options, obj) {
952
+ var css = obj.css;
953
+ var media = obj.media;
954
+ var sourceMap = obj.sourceMap;
1000
955
 
956
+ if (media) {
957
+ style.setAttribute('media', media);
958
+ }
1001
959
 
960
+ if (sourceMap && btoa) {
961
+ css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
962
+ } // For old IE
1002
963
 
964
+ /* istanbul ignore if */
1003
965
 
1004
966
 
1005
- /* normalize component */
967
+ if (style.styleSheet) {
968
+ style.styleSheet.cssText = css;
969
+ } else {
970
+ while (style.firstChild) {
971
+ style.removeChild(style.firstChild);
972
+ }
1006
973
 
1007
- var org_component = Object(componentNormalizer["a" /* default */])(
1008
- src_orgvue_type_script_lang_js,
1009
- render,
1010
- staticRenderFns,
1011
- false,
1012
- null,
1013
- null,
1014
- null
1015
-
1016
- )
974
+ style.appendChild(document.createTextNode(css));
975
+ }
976
+ }
1017
977
 
1018
- /* harmony default export */ var org = (org_component.exports);
1019
- // CONCATENATED MODULE: ./packages/org/index.js
978
+ var singleton = null;
979
+ var singletonCounter = 0;
1020
980
 
981
+ function addStyle(obj, options) {
982
+ var style;
983
+ var update;
984
+ var remove;
1021
985
 
1022
- /* istanbul ignore next */
1023
- org.install = function (Vue) {
1024
- Vue.component(org.name, org);
1025
- };
986
+ if (options.singleton) {
987
+ var styleIndex = singletonCounter++;
988
+ style = singleton || (singleton = insertStyleElement(options));
989
+ update = applyToSingletonTag.bind(null, style, styleIndex, false);
990
+ remove = applyToSingletonTag.bind(null, style, styleIndex, true);
991
+ } else {
992
+ style = insertStyleElement(options);
993
+ update = applyToTag.bind(null, style, options);
1026
994
 
1027
- /* harmony default export */ var packages_org = __webpack_exports__["default"] = (org);
995
+ remove = function remove() {
996
+ removeStyleElement(style);
997
+ };
998
+ }
1028
999
 
1029
- /***/ }),
1000
+ update(obj);
1001
+ return function updateStyle(newObj) {
1002
+ if (newObj) {
1003
+ if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
1004
+ return;
1005
+ }
1030
1006
 
1031
- /***/ 4:
1032
- /***/ (function(module, exports) {
1007
+ update(obj = newObj);
1008
+ } else {
1009
+ remove();
1010
+ }
1011
+ };
1012
+ }
1033
1013
 
1034
- module.exports = require("vue");
1014
+ module.exports = function (list, options) {
1015
+ options = options || {};
1016
+ options.attributes = typeof options.attributes === 'object' ? options.attributes : {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
1017
+ // tags it will allow on a page
1035
1018
 
1036
- /***/ }),
1019
+ if (!options.singleton && typeof options.singleton !== 'boolean') {
1020
+ options.singleton = isOldIE();
1021
+ }
1037
1022
 
1038
- /***/ 92:
1039
- /***/ (function(module, exports) {
1023
+ var styles = listToStyles(list, options);
1024
+ addStylesToDom(styles, options);
1025
+ return function update(newList) {
1026
+ var mayRemove = [];
1040
1027
 
1041
- module.exports = require("vuedraggable");
1028
+ for (var i = 0; i < styles.length; i++) {
1029
+ var item = styles[i];
1030
+ var domStyle = stylesInDom[item.id];
1042
1031
 
1043
- /***/ }),
1032
+ if (domStyle) {
1033
+ domStyle.refs--;
1034
+ mayRemove.push(domStyle);
1035
+ }
1036
+ }
1044
1037
 
1045
- /***/ 97:
1046
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1038
+ if (newList) {
1039
+ var newStyles = listToStyles(newList, options);
1040
+ addStylesToDom(newStyles, options);
1041
+ }
1047
1042
 
1048
- "use strict";
1049
- /* 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_orgItem_vue_vue_type_style_index_0_id_3547cd49_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20);
1050
- /* 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_orgItem_vue_vue_type_style_index_0_id_3547cd49_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_orgItem_vue_vue_type_style_index_0_id_3547cd49_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
1051
- /* unused harmony reexport * */
1043
+ for (var _i = 0; _i < mayRemove.length; _i++) {
1044
+ var _domStyle = mayRemove[_i];
1052
1045
 
1046
+ if (_domStyle.refs === 0) {
1047
+ for (var j = 0; j < _domStyle.parts.length; j++) {
1048
+ _domStyle.parts[j]();
1049
+ }
1053
1050
 
1054
- /***/ }),
1051
+ delete stylesInDom[_domStyle.id];
1052
+ }
1053
+ }
1054
+ };
1055
+ };
1055
1056
 
1056
- /***/ 98:
1057
- /***/ (function(module, exports, __webpack_require__) {
1057
+ /***/ }),
1058
1058
 
1059
- exports = module.exports = __webpack_require__(11)(false);
1060
- // Module
1061
- exports.push([module.i, "\n.chosen { border:1px solid #f60;}\n.ghost { opacity:0.2;}\n", ""]);
1059
+ /***/ 93:
1060
+ /***/ (function(module, exports) {
1062
1061
 
1062
+ module.exports = require("vuedraggable");
1063
1063
 
1064
1064
  /***/ })
1065
1065