xt-element-ui 2.1.72 → 2.2.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.
Files changed (194) hide show
  1. package/lib/index.common.js +267 -61
  2. package/lib/index.css +1 -1
  3. package/lib/index.umd.js +267 -61
  4. package/lib/index.umd.min.js +1 -1
  5. package/lib/xt-badge/demo.html +10 -0
  6. package/lib/xt-badge/index.js +1 -0
  7. package/lib/xt-badge/xt-badge.common.js +335 -0
  8. package/lib/xt-badge/xt-badge.css +1 -0
  9. package/lib/xt-badge/xt-badge.umd.js +345 -0
  10. package/lib/xt-badge/xt-badge.umd.min.js +1 -0
  11. package/lib/xt-button/demo.html +10 -0
  12. package/lib/xt-button/index.js +1 -0
  13. package/lib/xt-button/xt-button.common.js +331 -0
  14. package/lib/xt-button/xt-button.css +1 -0
  15. package/lib/xt-button/xt-button.umd.js +341 -0
  16. package/lib/xt-button/xt-button.umd.min.js +1 -0
  17. package/lib/xt-card/demo.html +10 -0
  18. package/lib/xt-card/index.js +1 -0
  19. package/lib/xt-card/xt-card.common.js +325 -0
  20. package/lib/xt-card/xt-card.css +1 -0
  21. package/lib/xt-card/xt-card.umd.js +335 -0
  22. package/lib/xt-card/xt-card.umd.min.js +1 -0
  23. package/lib/xt-card-item/demo.html +10 -0
  24. package/lib/xt-card-item/index.js +1 -0
  25. package/lib/xt-card-item/xt-card-item.common.js +291 -0
  26. package/lib/xt-card-item/xt-card-item.css +1 -0
  27. package/lib/xt-card-item/xt-card-item.umd.js +301 -0
  28. package/lib/xt-card-item/xt-card-item.umd.min.js +1 -0
  29. package/lib/xt-chart/demo.html +10 -0
  30. package/lib/xt-chart/index.js +1 -0
  31. package/lib/xt-chart/xt-chart.common.js +109203 -0
  32. package/lib/xt-chart/xt-chart.css +1 -0
  33. package/lib/xt-chart/xt-chart.umd.js +109213 -0
  34. package/lib/xt-chart/xt-chart.umd.min.js +1 -0
  35. package/lib/xt-config-provider/demo.html +10 -0
  36. package/lib/xt-config-provider/index.js +1 -0
  37. package/lib/xt-config-provider/xt-config-provider.common.js +108388 -0
  38. package/lib/xt-config-provider/xt-config-provider.css +1 -0
  39. package/lib/xt-config-provider/xt-config-provider.umd.js +108398 -0
  40. package/lib/xt-config-provider/xt-config-provider.umd.min.js +1 -0
  41. package/lib/xt-date-picker/demo.html +10 -0
  42. package/lib/xt-date-picker/index.js +1 -0
  43. package/lib/xt-date-picker/xt-date-picker.common.js +768 -0
  44. package/lib/xt-date-picker/xt-date-picker.css +1 -0
  45. package/lib/xt-date-picker/xt-date-picker.umd.js +778 -0
  46. package/lib/xt-date-picker/xt-date-picker.umd.min.js +1 -0
  47. package/lib/xt-flex-box/demo.html +10 -0
  48. package/lib/xt-flex-box/index.js +1 -0
  49. package/lib/xt-flex-box/xt-flex-box.common.js +303 -0
  50. package/lib/xt-flex-box/xt-flex-box.css +1 -0
  51. package/lib/xt-flex-box/xt-flex-box.umd.js +313 -0
  52. package/lib/xt-flex-box/xt-flex-box.umd.min.js +1 -0
  53. package/lib/xt-form-schema/demo.html +10 -0
  54. package/lib/xt-form-schema/index.js +1 -0
  55. package/lib/xt-form-schema/xt-form-schema.common.js +510 -0
  56. package/lib/xt-form-schema/xt-form-schema.css +1 -0
  57. package/lib/xt-form-schema/xt-form-schema.umd.js +520 -0
  58. package/lib/xt-form-schema/xt-form-schema.umd.min.js +1 -0
  59. package/lib/xt-grid-box/demo.html +10 -0
  60. package/lib/xt-grid-box/index.js +1 -0
  61. package/lib/xt-grid-box/xt-grid-box.common.js +404 -0
  62. package/lib/xt-grid-box/xt-grid-box.css +1 -0
  63. package/lib/xt-grid-box/xt-grid-box.umd.js +414 -0
  64. package/lib/xt-grid-box/xt-grid-box.umd.min.js +1 -0
  65. package/lib/xt-grid-item/demo.html +10 -0
  66. package/lib/xt-grid-item/index.js +1 -0
  67. package/lib/xt-grid-item/xt-grid-item.common.js +381 -0
  68. package/lib/xt-grid-item/xt-grid-item.css +1 -0
  69. package/lib/xt-grid-item/xt-grid-item.umd.js +391 -0
  70. package/lib/xt-grid-item/xt-grid-item.umd.min.js +1 -0
  71. package/lib/xt-icon/demo.html +10 -0
  72. package/lib/xt-icon/index.js +1 -0
  73. package/lib/xt-icon/xt-icon.common.js +430 -0
  74. package/lib/xt-icon/xt-icon.css +1 -0
  75. package/lib/xt-icon/xt-icon.umd.js +440 -0
  76. package/lib/xt-icon/xt-icon.umd.min.js +1 -0
  77. package/lib/xt-input/demo.html +10 -0
  78. package/lib/xt-input/index.js +1 -0
  79. package/lib/xt-input/xt-input.common.js +584 -0
  80. package/lib/xt-input/xt-input.css +1 -0
  81. package/lib/xt-input/xt-input.umd.js +594 -0
  82. package/lib/xt-input/xt-input.umd.min.js +1 -0
  83. package/lib/xt-list/demo.html +10 -0
  84. package/lib/xt-list/index.js +1 -0
  85. package/lib/xt-list/xt-list.common.js +714 -0
  86. package/lib/xt-list/xt-list.css +1 -0
  87. package/lib/xt-list/xt-list.umd.js +724 -0
  88. package/lib/xt-list/xt-list.umd.min.js +1 -0
  89. package/lib/xt-map/demo.html +10 -0
  90. package/lib/xt-map/index.js +1 -0
  91. package/lib/xt-map/xt-map.common.js +1951 -0
  92. package/lib/xt-map/xt-map.css +1 -0
  93. package/lib/xt-map/xt-map.umd.js +1961 -0
  94. package/lib/xt-map/xt-map.umd.min.js +1 -0
  95. package/lib/xt-map-provider/demo.html +10 -0
  96. package/lib/xt-map-provider/index.js +1 -0
  97. package/lib/xt-map-provider/xt-map-provider.common.js +644 -0
  98. package/lib/xt-map-provider/xt-map-provider.css +1 -0
  99. package/lib/xt-map-provider/xt-map-provider.umd.js +654 -0
  100. package/lib/xt-map-provider/xt-map-provider.umd.min.js +1 -0
  101. package/lib/xt-page/demo.html +10 -0
  102. package/lib/xt-page/index.js +1 -0
  103. package/lib/xt-page/xt-page.common.js +353 -0
  104. package/lib/xt-page/xt-page.css +1 -0
  105. package/lib/xt-page/xt-page.umd.js +363 -0
  106. package/lib/xt-page/xt-page.umd.min.js +1 -0
  107. package/lib/xt-progress/demo.html +10 -0
  108. package/lib/xt-progress/index.js +1 -0
  109. package/lib/xt-progress/xt-progress.common.js +327 -0
  110. package/lib/xt-progress/xt-progress.css +1 -0
  111. package/lib/xt-progress/xt-progress.umd.js +337 -0
  112. package/lib/xt-progress/xt-progress.umd.min.js +1 -0
  113. package/lib/xt-scroll-arrow/demo.html +10 -0
  114. package/lib/xt-scroll-arrow/index.js +1 -0
  115. package/lib/xt-scroll-arrow/xt-scroll-arrow.common.js +495 -0
  116. package/lib/xt-scroll-arrow/xt-scroll-arrow.css +1 -0
  117. package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.js +505 -0
  118. package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.min.js +1 -0
  119. package/lib/xt-select-tree/demo.html +10 -0
  120. package/lib/xt-select-tree/index.js +1 -0
  121. package/lib/xt-select-tree/xt-select-tree.common.js +1791 -0
  122. package/lib/xt-select-tree/xt-select-tree.css +1 -0
  123. package/lib/xt-select-tree/xt-select-tree.umd.js +1801 -0
  124. package/lib/xt-select-tree/xt-select-tree.umd.min.js +1 -0
  125. package/lib/xt-step-price/demo.html +10 -0
  126. package/lib/xt-step-price/index.js +1 -0
  127. package/lib/xt-step-price/xt-step-price.common.js +800 -0
  128. package/lib/xt-step-price/xt-step-price.css +1 -0
  129. package/lib/xt-step-price/xt-step-price.umd.js +810 -0
  130. package/lib/xt-step-price/xt-step-price.umd.min.js +1 -0
  131. package/lib/xt-step-price-item/demo.html +10 -0
  132. package/lib/xt-step-price-item/index.js +1 -0
  133. package/lib/xt-step-price-item/xt-step-price-item.common.js +417 -0
  134. package/lib/xt-step-price-item/xt-step-price-item.umd.js +427 -0
  135. package/lib/xt-step-price-item/xt-step-price-item.umd.min.js +1 -0
  136. package/lib/xt-tab-pane/demo.html +10 -0
  137. package/lib/xt-tab-pane/index.js +1 -0
  138. package/lib/xt-tab-pane/xt-tab-pane.common.js +309 -0
  139. package/lib/xt-tab-pane/xt-tab-pane.umd.js +319 -0
  140. package/lib/xt-tab-pane/xt-tab-pane.umd.min.js +1 -0
  141. package/lib/xt-table/demo.html +10 -0
  142. package/lib/xt-table/index.js +1 -0
  143. package/lib/xt-table/xt-table.common.js +1027 -0
  144. package/lib/xt-table/xt-table.css +1 -0
  145. package/lib/xt-table/xt-table.umd.js +1037 -0
  146. package/lib/xt-table/xt-table.umd.min.js +1 -0
  147. package/lib/xt-tabs/demo.html +10 -0
  148. package/lib/xt-tabs/index.js +1 -0
  149. package/lib/xt-tabs/xt-tabs.common.js +463 -0
  150. package/lib/xt-tabs/xt-tabs.css +1 -0
  151. package/lib/xt-tabs/xt-tabs.umd.js +473 -0
  152. package/lib/xt-tabs/xt-tabs.umd.min.js +1 -0
  153. package/lib/xt-text/demo.html +10 -0
  154. package/lib/xt-text/index.js +1 -0
  155. package/lib/xt-text/xt-text.common.js +536 -0
  156. package/lib/xt-text/xt-text.css +1 -0
  157. package/lib/xt-text/xt-text.umd.js +546 -0
  158. package/lib/xt-text/xt-text.umd.min.js +1 -0
  159. package/lib/xt-time/demo.html +10 -0
  160. package/lib/xt-time/index.js +1 -0
  161. package/lib/xt-time/xt-time.common.js +555 -0
  162. package/lib/xt-time/xt-time.css +1 -0
  163. package/lib/xt-time/xt-time.umd.js +565 -0
  164. package/lib/xt-time/xt-time.umd.min.js +1 -0
  165. package/lib/xt-transfer-tree/demo.html +10 -0
  166. package/lib/xt-transfer-tree/index.js +1 -0
  167. package/lib/xt-transfer-tree/xt-transfer-tree.common.js +594 -0
  168. package/lib/xt-transfer-tree/xt-transfer-tree.css +1 -0
  169. package/lib/xt-transfer-tree/xt-transfer-tree.umd.js +604 -0
  170. package/lib/xt-transfer-tree/xt-transfer-tree.umd.min.js +1 -0
  171. package/lib/xt-upload/demo.html +10 -0
  172. package/lib/xt-upload/index.js +1 -0
  173. package/lib/xt-upload/xt-upload.common.js +1292 -0
  174. package/lib/xt-upload/xt-upload.css +1 -0
  175. package/lib/xt-upload/xt-upload.umd.js +1302 -0
  176. package/lib/xt-upload/xt-upload.umd.min.js +1 -0
  177. package/package.json +4 -2
  178. package/src/components/xt-badge/index.js +8 -7
  179. package/src/components/xt-button/index.js +1 -0
  180. package/src/components/xt-card/index.js +1 -0
  181. package/src/components/xt-card-item/index.js +1 -0
  182. package/src/components/xt-config-provider/index.js +1 -0
  183. package/src/components/xt-flex-box/index.js +1 -0
  184. package/src/components/xt-grid-box/index.js +1 -0
  185. package/src/components/xt-icon/index.js +1 -0
  186. package/src/components/xt-input/index.js +1 -0
  187. package/src/components/xt-map/index.js +1 -0
  188. package/src/components/xt-progress/index.js +8 -7
  189. package/src/components/xt-scroll-arrow/index.js +8 -7
  190. package/src/components/xt-step-price/index.js +1 -0
  191. package/src/components/xt-tabs/index.js +9 -8
  192. package/src/components/xt-text/index.js +1 -0
  193. package/src/components/xt-time/index.js +1 -0
  194. package/src/index.js +32 -2
@@ -0,0 +1,1801 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory();
4
+ else if(typeof define === 'function' && define.amd)
5
+ define([], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["xt-select-tree"] = factory();
8
+ else
9
+ root["xt-select-tree"] = factory();
10
+ })((typeof self !== 'undefined' ? self : this), function() {
11
+ return /******/ (function(modules) { // webpackBootstrap
12
+ /******/ // The module cache
13
+ /******/ var installedModules = {};
14
+ /******/
15
+ /******/ // The require function
16
+ /******/ function __webpack_require__(moduleId) {
17
+ /******/
18
+ /******/ // Check if module is in cache
19
+ /******/ if(installedModules[moduleId]) {
20
+ /******/ return installedModules[moduleId].exports;
21
+ /******/ }
22
+ /******/ // Create a new module (and put it into the cache)
23
+ /******/ var module = installedModules[moduleId] = {
24
+ /******/ i: moduleId,
25
+ /******/ l: false,
26
+ /******/ exports: {}
27
+ /******/ };
28
+ /******/
29
+ /******/ // Execute the module function
30
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
+ /******/
32
+ /******/ // Flag the module as loaded
33
+ /******/ module.l = true;
34
+ /******/
35
+ /******/ // Return the exports of the module
36
+ /******/ return module.exports;
37
+ /******/ }
38
+ /******/
39
+ /******/
40
+ /******/ // expose the modules object (__webpack_modules__)
41
+ /******/ __webpack_require__.m = modules;
42
+ /******/
43
+ /******/ // expose the module cache
44
+ /******/ __webpack_require__.c = installedModules;
45
+ /******/
46
+ /******/ // define getter function for harmony exports
47
+ /******/ __webpack_require__.d = function(exports, name, getter) {
48
+ /******/ if(!__webpack_require__.o(exports, name)) {
49
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
+ /******/ }
51
+ /******/ };
52
+ /******/
53
+ /******/ // define __esModule on exports
54
+ /******/ __webpack_require__.r = function(exports) {
55
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
+ /******/ }
58
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
59
+ /******/ };
60
+ /******/
61
+ /******/ // create a fake namespace object
62
+ /******/ // mode & 1: value is a module id, require it
63
+ /******/ // mode & 2: merge all properties of value into the ns
64
+ /******/ // mode & 4: return value when already ns object
65
+ /******/ // mode & 8|1: behave like require
66
+ /******/ __webpack_require__.t = function(value, mode) {
67
+ /******/ if(mode & 1) value = __webpack_require__(value);
68
+ /******/ if(mode & 8) return value;
69
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
+ /******/ var ns = Object.create(null);
71
+ /******/ __webpack_require__.r(ns);
72
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74
+ /******/ return ns;
75
+ /******/ };
76
+ /******/
77
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
78
+ /******/ __webpack_require__.n = function(module) {
79
+ /******/ var getter = module && module.__esModule ?
80
+ /******/ function getDefault() { return module['default']; } :
81
+ /******/ function getModuleExports() { return module; };
82
+ /******/ __webpack_require__.d(getter, 'a', getter);
83
+ /******/ return getter;
84
+ /******/ };
85
+ /******/
86
+ /******/ // Object.prototype.hasOwnProperty.call
87
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
+ /******/
89
+ /******/ // __webpack_public_path__
90
+ /******/ __webpack_require__.p = "";
91
+ /******/
92
+ /******/
93
+ /******/ // Load entry module and return exports
94
+ /******/ return __webpack_require__(__webpack_require__.s = "fb15");
95
+ /******/ })
96
+ /************************************************************************/
97
+ /******/ ({
98
+
99
+ /***/ "0e15":
100
+ /***/ (function(module, exports, __webpack_require__) {
101
+
102
+ /* eslint-disable no-undefined */
103
+
104
+ var throttle = __webpack_require__("597f");
105
+
106
+ /**
107
+ * Debounce execution of a function. Debouncing, unlike throttling,
108
+ * guarantees that a function is only executed a single time, either at the
109
+ * very beginning of a series of calls, or at the very end.
110
+ *
111
+ * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
112
+ * @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
113
+ * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
114
+ * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
115
+ * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
116
+ * to `callback` when the debounced-function is executed.
117
+ *
118
+ * @return {Function} A new, debounced function.
119
+ */
120
+ module.exports = function ( delay, atBegin, callback ) {
121
+ return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
122
+ };
123
+
124
+
125
+ /***/ }),
126
+
127
+ /***/ "17b4":
128
+ /***/ (function(module, exports, __webpack_require__) {
129
+
130
+ // extracted by mini-css-extract-plugin
131
+
132
+ /***/ }),
133
+
134
+ /***/ "1a07":
135
+ /***/ (function(module, exports, __webpack_require__) {
136
+
137
+ // extracted by mini-css-extract-plugin
138
+
139
+ /***/ }),
140
+
141
+ /***/ "4010":
142
+ /***/ (function(module, exports, __webpack_require__) {
143
+
144
+ "use strict";
145
+
146
+
147
+ exports.__esModule = true;
148
+ exports.removeResizeListener = exports.addResizeListener = undefined;
149
+
150
+ var _resizeObserverPolyfill = __webpack_require__("6dd8");
151
+
152
+ var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill);
153
+
154
+ var _throttleDebounce = __webpack_require__("9619");
155
+
156
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
157
+
158
+ var isServer = typeof window === 'undefined';
159
+
160
+ /* istanbul ignore next */
161
+ var resizeHandler = function resizeHandler(entries) {
162
+ for (var _iterator = entries, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
163
+ var _ref;
164
+
165
+ if (_isArray) {
166
+ if (_i >= _iterator.length) break;
167
+ _ref = _iterator[_i++];
168
+ } else {
169
+ _i = _iterator.next();
170
+ if (_i.done) break;
171
+ _ref = _i.value;
172
+ }
173
+
174
+ var entry = _ref;
175
+
176
+ var listeners = entry.target.__resizeListeners__ || [];
177
+ if (listeners.length) {
178
+ listeners.forEach(function (fn) {
179
+ fn();
180
+ });
181
+ }
182
+ }
183
+ };
184
+
185
+ /* istanbul ignore next */
186
+ var addResizeListener = exports.addResizeListener = function addResizeListener(element, fn) {
187
+ if (isServer) return;
188
+ if (!element.__resizeListeners__) {
189
+ element.__resizeListeners__ = [];
190
+ element.__ro__ = new _resizeObserverPolyfill2.default((0, _throttleDebounce.debounce)(16, resizeHandler));
191
+ element.__ro__.observe(element);
192
+ }
193
+ element.__resizeListeners__.push(fn);
194
+ };
195
+
196
+ /* istanbul ignore next */
197
+ var removeResizeListener = exports.removeResizeListener = function removeResizeListener(element, fn) {
198
+ if (!element || !element.__resizeListeners__) return;
199
+ element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
200
+ if (!element.__resizeListeners__.length) {
201
+ element.__ro__.disconnect();
202
+ }
203
+ };
204
+
205
+ /***/ }),
206
+
207
+ /***/ "439a":
208
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
209
+
210
+ "use strict";
211
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_962f42c0_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1a07");
212
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_962f42c0_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_962f42c0_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
213
+ /* unused harmony reexport * */
214
+
215
+
216
+ /***/ }),
217
+
218
+ /***/ "597f":
219
+ /***/ (function(module, exports) {
220
+
221
+ /* eslint-disable no-undefined,no-param-reassign,no-shadow */
222
+
223
+ /**
224
+ * Throttle execution of a function. Especially useful for rate limiting
225
+ * execution of handlers on events like resize and scroll.
226
+ *
227
+ * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
228
+ * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the
229
+ * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time
230
+ * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,
231
+ * the internal counter is reset)
232
+ * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
233
+ * to `callback` when the throttled-function is executed.
234
+ * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),
235
+ * schedule `callback` to execute after `delay` ms.
236
+ *
237
+ * @return {Function} A new, throttled, function.
238
+ */
239
+ module.exports = function ( delay, noTrailing, callback, debounceMode ) {
240
+
241
+ // After wrapper has stopped being called, this timeout ensures that
242
+ // `callback` is executed at the proper times in `throttle` and `end`
243
+ // debounce modes.
244
+ var timeoutID;
245
+
246
+ // Keep track of the last time `callback` was executed.
247
+ var lastExec = 0;
248
+
249
+ // `noTrailing` defaults to falsy.
250
+ if ( typeof noTrailing !== 'boolean' ) {
251
+ debounceMode = callback;
252
+ callback = noTrailing;
253
+ noTrailing = undefined;
254
+ }
255
+
256
+ // The `wrapper` function encapsulates all of the throttling / debouncing
257
+ // functionality and when executed will limit the rate at which `callback`
258
+ // is executed.
259
+ function wrapper () {
260
+
261
+ var self = this;
262
+ var elapsed = Number(new Date()) - lastExec;
263
+ var args = arguments;
264
+
265
+ // Execute `callback` and update the `lastExec` timestamp.
266
+ function exec () {
267
+ lastExec = Number(new Date());
268
+ callback.apply(self, args);
269
+ }
270
+
271
+ // If `debounceMode` is true (at begin) this is used to clear the flag
272
+ // to allow future `callback` executions.
273
+ function clear () {
274
+ timeoutID = undefined;
275
+ }
276
+
277
+ if ( debounceMode && !timeoutID ) {
278
+ // Since `wrapper` is being called for the first time and
279
+ // `debounceMode` is true (at begin), execute `callback`.
280
+ exec();
281
+ }
282
+
283
+ // Clear any existing timeout.
284
+ if ( timeoutID ) {
285
+ clearTimeout(timeoutID);
286
+ }
287
+
288
+ if ( debounceMode === undefined && elapsed > delay ) {
289
+ // In throttle mode, if `delay` time has been exceeded, execute
290
+ // `callback`.
291
+ exec();
292
+
293
+ } else if ( noTrailing !== true ) {
294
+ // In trailing throttle mode, since `delay` time has not been
295
+ // exceeded, schedule `callback` to execute `delay` ms after most
296
+ // recent execution.
297
+ //
298
+ // If `debounceMode` is true (at begin), schedule `clear` to execute
299
+ // after `delay` ms.
300
+ //
301
+ // If `debounceMode` is false (at end), schedule `callback` to
302
+ // execute after `delay` ms.
303
+ timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
304
+ }
305
+
306
+ }
307
+
308
+ // Return the wrapper function.
309
+ return wrapper;
310
+
311
+ };
312
+
313
+
314
+ /***/ }),
315
+
316
+ /***/ "6dd8":
317
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
318
+
319
+ "use strict";
320
+ __webpack_require__.r(__webpack_exports__);
321
+ /* WEBPACK VAR INJECTION */(function(global) {/**
322
+ * A collection of shims that provide minimal functionality of the ES6 collections.
323
+ *
324
+ * These implementations are not meant to be used outside of the ResizeObserver
325
+ * modules as they cover only a limited range of use cases.
326
+ */
327
+ /* eslint-disable require-jsdoc, valid-jsdoc */
328
+ var MapShim = (function () {
329
+ if (typeof Map !== 'undefined') {
330
+ return Map;
331
+ }
332
+ /**
333
+ * Returns index in provided array that matches the specified key.
334
+ *
335
+ * @param {Array<Array>} arr
336
+ * @param {*} key
337
+ * @returns {number}
338
+ */
339
+ function getIndex(arr, key) {
340
+ var result = -1;
341
+ arr.some(function (entry, index) {
342
+ if (entry[0] === key) {
343
+ result = index;
344
+ return true;
345
+ }
346
+ return false;
347
+ });
348
+ return result;
349
+ }
350
+ return /** @class */ (function () {
351
+ function class_1() {
352
+ this.__entries__ = [];
353
+ }
354
+ Object.defineProperty(class_1.prototype, "size", {
355
+ /**
356
+ * @returns {boolean}
357
+ */
358
+ get: function () {
359
+ return this.__entries__.length;
360
+ },
361
+ enumerable: true,
362
+ configurable: true
363
+ });
364
+ /**
365
+ * @param {*} key
366
+ * @returns {*}
367
+ */
368
+ class_1.prototype.get = function (key) {
369
+ var index = getIndex(this.__entries__, key);
370
+ var entry = this.__entries__[index];
371
+ return entry && entry[1];
372
+ };
373
+ /**
374
+ * @param {*} key
375
+ * @param {*} value
376
+ * @returns {void}
377
+ */
378
+ class_1.prototype.set = function (key, value) {
379
+ var index = getIndex(this.__entries__, key);
380
+ if (~index) {
381
+ this.__entries__[index][1] = value;
382
+ }
383
+ else {
384
+ this.__entries__.push([key, value]);
385
+ }
386
+ };
387
+ /**
388
+ * @param {*} key
389
+ * @returns {void}
390
+ */
391
+ class_1.prototype.delete = function (key) {
392
+ var entries = this.__entries__;
393
+ var index = getIndex(entries, key);
394
+ if (~index) {
395
+ entries.splice(index, 1);
396
+ }
397
+ };
398
+ /**
399
+ * @param {*} key
400
+ * @returns {void}
401
+ */
402
+ class_1.prototype.has = function (key) {
403
+ return !!~getIndex(this.__entries__, key);
404
+ };
405
+ /**
406
+ * @returns {void}
407
+ */
408
+ class_1.prototype.clear = function () {
409
+ this.__entries__.splice(0);
410
+ };
411
+ /**
412
+ * @param {Function} callback
413
+ * @param {*} [ctx=null]
414
+ * @returns {void}
415
+ */
416
+ class_1.prototype.forEach = function (callback, ctx) {
417
+ if (ctx === void 0) { ctx = null; }
418
+ for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
419
+ var entry = _a[_i];
420
+ callback.call(ctx, entry[1], entry[0]);
421
+ }
422
+ };
423
+ return class_1;
424
+ }());
425
+ })();
426
+
427
+ /**
428
+ * Detects whether window and document objects are available in current environment.
429
+ */
430
+ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
431
+
432
+ // Returns global object of a current environment.
433
+ var global$1 = (function () {
434
+ if (typeof global !== 'undefined' && global.Math === Math) {
435
+ return global;
436
+ }
437
+ if (typeof self !== 'undefined' && self.Math === Math) {
438
+ return self;
439
+ }
440
+ if (typeof window !== 'undefined' && window.Math === Math) {
441
+ return window;
442
+ }
443
+ // eslint-disable-next-line no-new-func
444
+ return Function('return this')();
445
+ })();
446
+
447
+ /**
448
+ * A shim for the requestAnimationFrame which falls back to the setTimeout if
449
+ * first one is not supported.
450
+ *
451
+ * @returns {number} Requests' identifier.
452
+ */
453
+ var requestAnimationFrame$1 = (function () {
454
+ if (typeof requestAnimationFrame === 'function') {
455
+ // It's required to use a bounded function because IE sometimes throws
456
+ // an "Invalid calling object" error if rAF is invoked without the global
457
+ // object on the left hand side.
458
+ return requestAnimationFrame.bind(global$1);
459
+ }
460
+ return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
461
+ })();
462
+
463
+ // Defines minimum timeout before adding a trailing call.
464
+ var trailingTimeout = 2;
465
+ /**
466
+ * Creates a wrapper function which ensures that provided callback will be
467
+ * invoked only once during the specified delay period.
468
+ *
469
+ * @param {Function} callback - Function to be invoked after the delay period.
470
+ * @param {number} delay - Delay after which to invoke callback.
471
+ * @returns {Function}
472
+ */
473
+ function throttle (callback, delay) {
474
+ var leadingCall = false, trailingCall = false, lastCallTime = 0;
475
+ /**
476
+ * Invokes the original callback function and schedules new invocation if
477
+ * the "proxy" was called during current request.
478
+ *
479
+ * @returns {void}
480
+ */
481
+ function resolvePending() {
482
+ if (leadingCall) {
483
+ leadingCall = false;
484
+ callback();
485
+ }
486
+ if (trailingCall) {
487
+ proxy();
488
+ }
489
+ }
490
+ /**
491
+ * Callback invoked after the specified delay. It will further postpone
492
+ * invocation of the original function delegating it to the
493
+ * requestAnimationFrame.
494
+ *
495
+ * @returns {void}
496
+ */
497
+ function timeoutCallback() {
498
+ requestAnimationFrame$1(resolvePending);
499
+ }
500
+ /**
501
+ * Schedules invocation of the original function.
502
+ *
503
+ * @returns {void}
504
+ */
505
+ function proxy() {
506
+ var timeStamp = Date.now();
507
+ if (leadingCall) {
508
+ // Reject immediately following calls.
509
+ if (timeStamp - lastCallTime < trailingTimeout) {
510
+ return;
511
+ }
512
+ // Schedule new call to be in invoked when the pending one is resolved.
513
+ // This is important for "transitions" which never actually start
514
+ // immediately so there is a chance that we might miss one if change
515
+ // happens amids the pending invocation.
516
+ trailingCall = true;
517
+ }
518
+ else {
519
+ leadingCall = true;
520
+ trailingCall = false;
521
+ setTimeout(timeoutCallback, delay);
522
+ }
523
+ lastCallTime = timeStamp;
524
+ }
525
+ return proxy;
526
+ }
527
+
528
+ // Minimum delay before invoking the update of observers.
529
+ var REFRESH_DELAY = 20;
530
+ // A list of substrings of CSS properties used to find transition events that
531
+ // might affect dimensions of observed elements.
532
+ var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
533
+ // Check if MutationObserver is available.
534
+ var mutationObserverSupported = typeof MutationObserver !== 'undefined';
535
+ /**
536
+ * Singleton controller class which handles updates of ResizeObserver instances.
537
+ */
538
+ var ResizeObserverController = /** @class */ (function () {
539
+ /**
540
+ * Creates a new instance of ResizeObserverController.
541
+ *
542
+ * @private
543
+ */
544
+ function ResizeObserverController() {
545
+ /**
546
+ * Indicates whether DOM listeners have been added.
547
+ *
548
+ * @private {boolean}
549
+ */
550
+ this.connected_ = false;
551
+ /**
552
+ * Tells that controller has subscribed for Mutation Events.
553
+ *
554
+ * @private {boolean}
555
+ */
556
+ this.mutationEventsAdded_ = false;
557
+ /**
558
+ * Keeps reference to the instance of MutationObserver.
559
+ *
560
+ * @private {MutationObserver}
561
+ */
562
+ this.mutationsObserver_ = null;
563
+ /**
564
+ * A list of connected observers.
565
+ *
566
+ * @private {Array<ResizeObserverSPI>}
567
+ */
568
+ this.observers_ = [];
569
+ this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
570
+ this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
571
+ }
572
+ /**
573
+ * Adds observer to observers list.
574
+ *
575
+ * @param {ResizeObserverSPI} observer - Observer to be added.
576
+ * @returns {void}
577
+ */
578
+ ResizeObserverController.prototype.addObserver = function (observer) {
579
+ if (!~this.observers_.indexOf(observer)) {
580
+ this.observers_.push(observer);
581
+ }
582
+ // Add listeners if they haven't been added yet.
583
+ if (!this.connected_) {
584
+ this.connect_();
585
+ }
586
+ };
587
+ /**
588
+ * Removes observer from observers list.
589
+ *
590
+ * @param {ResizeObserverSPI} observer - Observer to be removed.
591
+ * @returns {void}
592
+ */
593
+ ResizeObserverController.prototype.removeObserver = function (observer) {
594
+ var observers = this.observers_;
595
+ var index = observers.indexOf(observer);
596
+ // Remove observer if it's present in registry.
597
+ if (~index) {
598
+ observers.splice(index, 1);
599
+ }
600
+ // Remove listeners if controller has no connected observers.
601
+ if (!observers.length && this.connected_) {
602
+ this.disconnect_();
603
+ }
604
+ };
605
+ /**
606
+ * Invokes the update of observers. It will continue running updates insofar
607
+ * it detects changes.
608
+ *
609
+ * @returns {void}
610
+ */
611
+ ResizeObserverController.prototype.refresh = function () {
612
+ var changesDetected = this.updateObservers_();
613
+ // Continue running updates if changes have been detected as there might
614
+ // be future ones caused by CSS transitions.
615
+ if (changesDetected) {
616
+ this.refresh();
617
+ }
618
+ };
619
+ /**
620
+ * Updates every observer from observers list and notifies them of queued
621
+ * entries.
622
+ *
623
+ * @private
624
+ * @returns {boolean} Returns "true" if any observer has detected changes in
625
+ * dimensions of it's elements.
626
+ */
627
+ ResizeObserverController.prototype.updateObservers_ = function () {
628
+ // Collect observers that have active observations.
629
+ var activeObservers = this.observers_.filter(function (observer) {
630
+ return observer.gatherActive(), observer.hasActive();
631
+ });
632
+ // Deliver notifications in a separate cycle in order to avoid any
633
+ // collisions between observers, e.g. when multiple instances of
634
+ // ResizeObserver are tracking the same element and the callback of one
635
+ // of them changes content dimensions of the observed target. Sometimes
636
+ // this may result in notifications being blocked for the rest of observers.
637
+ activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
638
+ return activeObservers.length > 0;
639
+ };
640
+ /**
641
+ * Initializes DOM listeners.
642
+ *
643
+ * @private
644
+ * @returns {void}
645
+ */
646
+ ResizeObserverController.prototype.connect_ = function () {
647
+ // Do nothing if running in a non-browser environment or if listeners
648
+ // have been already added.
649
+ if (!isBrowser || this.connected_) {
650
+ return;
651
+ }
652
+ // Subscription to the "Transitionend" event is used as a workaround for
653
+ // delayed transitions. This way it's possible to capture at least the
654
+ // final state of an element.
655
+ document.addEventListener('transitionend', this.onTransitionEnd_);
656
+ window.addEventListener('resize', this.refresh);
657
+ if (mutationObserverSupported) {
658
+ this.mutationsObserver_ = new MutationObserver(this.refresh);
659
+ this.mutationsObserver_.observe(document, {
660
+ attributes: true,
661
+ childList: true,
662
+ characterData: true,
663
+ subtree: true
664
+ });
665
+ }
666
+ else {
667
+ document.addEventListener('DOMSubtreeModified', this.refresh);
668
+ this.mutationEventsAdded_ = true;
669
+ }
670
+ this.connected_ = true;
671
+ };
672
+ /**
673
+ * Removes DOM listeners.
674
+ *
675
+ * @private
676
+ * @returns {void}
677
+ */
678
+ ResizeObserverController.prototype.disconnect_ = function () {
679
+ // Do nothing if running in a non-browser environment or if listeners
680
+ // have been already removed.
681
+ if (!isBrowser || !this.connected_) {
682
+ return;
683
+ }
684
+ document.removeEventListener('transitionend', this.onTransitionEnd_);
685
+ window.removeEventListener('resize', this.refresh);
686
+ if (this.mutationsObserver_) {
687
+ this.mutationsObserver_.disconnect();
688
+ }
689
+ if (this.mutationEventsAdded_) {
690
+ document.removeEventListener('DOMSubtreeModified', this.refresh);
691
+ }
692
+ this.mutationsObserver_ = null;
693
+ this.mutationEventsAdded_ = false;
694
+ this.connected_ = false;
695
+ };
696
+ /**
697
+ * "Transitionend" event handler.
698
+ *
699
+ * @private
700
+ * @param {TransitionEvent} event
701
+ * @returns {void}
702
+ */
703
+ ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
704
+ var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
705
+ // Detect whether transition may affect dimensions of an element.
706
+ var isReflowProperty = transitionKeys.some(function (key) {
707
+ return !!~propertyName.indexOf(key);
708
+ });
709
+ if (isReflowProperty) {
710
+ this.refresh();
711
+ }
712
+ };
713
+ /**
714
+ * Returns instance of the ResizeObserverController.
715
+ *
716
+ * @returns {ResizeObserverController}
717
+ */
718
+ ResizeObserverController.getInstance = function () {
719
+ if (!this.instance_) {
720
+ this.instance_ = new ResizeObserverController();
721
+ }
722
+ return this.instance_;
723
+ };
724
+ /**
725
+ * Holds reference to the controller's instance.
726
+ *
727
+ * @private {ResizeObserverController}
728
+ */
729
+ ResizeObserverController.instance_ = null;
730
+ return ResizeObserverController;
731
+ }());
732
+
733
+ /**
734
+ * Defines non-writable/enumerable properties of the provided target object.
735
+ *
736
+ * @param {Object} target - Object for which to define properties.
737
+ * @param {Object} props - Properties to be defined.
738
+ * @returns {Object} Target object.
739
+ */
740
+ var defineConfigurable = (function (target, props) {
741
+ for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
742
+ var key = _a[_i];
743
+ Object.defineProperty(target, key, {
744
+ value: props[key],
745
+ enumerable: false,
746
+ writable: false,
747
+ configurable: true
748
+ });
749
+ }
750
+ return target;
751
+ });
752
+
753
+ /**
754
+ * Returns the global object associated with provided element.
755
+ *
756
+ * @param {Object} target
757
+ * @returns {Object}
758
+ */
759
+ var getWindowOf = (function (target) {
760
+ // Assume that the element is an instance of Node, which means that it
761
+ // has the "ownerDocument" property from which we can retrieve a
762
+ // corresponding global object.
763
+ var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
764
+ // Return the local global object if it's not possible extract one from
765
+ // provided element.
766
+ return ownerGlobal || global$1;
767
+ });
768
+
769
+ // Placeholder of an empty content rectangle.
770
+ var emptyRect = createRectInit(0, 0, 0, 0);
771
+ /**
772
+ * Converts provided string to a number.
773
+ *
774
+ * @param {number|string} value
775
+ * @returns {number}
776
+ */
777
+ function toFloat(value) {
778
+ return parseFloat(value) || 0;
779
+ }
780
+ /**
781
+ * Extracts borders size from provided styles.
782
+ *
783
+ * @param {CSSStyleDeclaration} styles
784
+ * @param {...string} positions - Borders positions (top, right, ...)
785
+ * @returns {number}
786
+ */
787
+ function getBordersSize(styles) {
788
+ var positions = [];
789
+ for (var _i = 1; _i < arguments.length; _i++) {
790
+ positions[_i - 1] = arguments[_i];
791
+ }
792
+ return positions.reduce(function (size, position) {
793
+ var value = styles['border-' + position + '-width'];
794
+ return size + toFloat(value);
795
+ }, 0);
796
+ }
797
+ /**
798
+ * Extracts paddings sizes from provided styles.
799
+ *
800
+ * @param {CSSStyleDeclaration} styles
801
+ * @returns {Object} Paddings box.
802
+ */
803
+ function getPaddings(styles) {
804
+ var positions = ['top', 'right', 'bottom', 'left'];
805
+ var paddings = {};
806
+ for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
807
+ var position = positions_1[_i];
808
+ var value = styles['padding-' + position];
809
+ paddings[position] = toFloat(value);
810
+ }
811
+ return paddings;
812
+ }
813
+ /**
814
+ * Calculates content rectangle of provided SVG element.
815
+ *
816
+ * @param {SVGGraphicsElement} target - Element content rectangle of which needs
817
+ * to be calculated.
818
+ * @returns {DOMRectInit}
819
+ */
820
+ function getSVGContentRect(target) {
821
+ var bbox = target.getBBox();
822
+ return createRectInit(0, 0, bbox.width, bbox.height);
823
+ }
824
+ /**
825
+ * Calculates content rectangle of provided HTMLElement.
826
+ *
827
+ * @param {HTMLElement} target - Element for which to calculate the content rectangle.
828
+ * @returns {DOMRectInit}
829
+ */
830
+ function getHTMLElementContentRect(target) {
831
+ // Client width & height properties can't be
832
+ // used exclusively as they provide rounded values.
833
+ var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
834
+ // By this condition we can catch all non-replaced inline, hidden and
835
+ // detached elements. Though elements with width & height properties less
836
+ // than 0.5 will be discarded as well.
837
+ //
838
+ // Without it we would need to implement separate methods for each of
839
+ // those cases and it's not possible to perform a precise and performance
840
+ // effective test for hidden elements. E.g. even jQuery's ':visible' filter
841
+ // gives wrong results for elements with width & height less than 0.5.
842
+ if (!clientWidth && !clientHeight) {
843
+ return emptyRect;
844
+ }
845
+ var styles = getWindowOf(target).getComputedStyle(target);
846
+ var paddings = getPaddings(styles);
847
+ var horizPad = paddings.left + paddings.right;
848
+ var vertPad = paddings.top + paddings.bottom;
849
+ // Computed styles of width & height are being used because they are the
850
+ // only dimensions available to JS that contain non-rounded values. It could
851
+ // be possible to utilize the getBoundingClientRect if only it's data wasn't
852
+ // affected by CSS transformations let alone paddings, borders and scroll bars.
853
+ var width = toFloat(styles.width), height = toFloat(styles.height);
854
+ // Width & height include paddings and borders when the 'border-box' box
855
+ // model is applied (except for IE).
856
+ if (styles.boxSizing === 'border-box') {
857
+ // Following conditions are required to handle Internet Explorer which
858
+ // doesn't include paddings and borders to computed CSS dimensions.
859
+ //
860
+ // We can say that if CSS dimensions + paddings are equal to the "client"
861
+ // properties then it's either IE, and thus we don't need to subtract
862
+ // anything, or an element merely doesn't have paddings/borders styles.
863
+ if (Math.round(width + horizPad) !== clientWidth) {
864
+ width -= getBordersSize(styles, 'left', 'right') + horizPad;
865
+ }
866
+ if (Math.round(height + vertPad) !== clientHeight) {
867
+ height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
868
+ }
869
+ }
870
+ // Following steps can't be applied to the document's root element as its
871
+ // client[Width/Height] properties represent viewport area of the window.
872
+ // Besides, it's as well not necessary as the <html> itself neither has
873
+ // rendered scroll bars nor it can be clipped.
874
+ if (!isDocumentElement(target)) {
875
+ // In some browsers (only in Firefox, actually) CSS width & height
876
+ // include scroll bars size which can be removed at this step as scroll
877
+ // bars are the only difference between rounded dimensions + paddings
878
+ // and "client" properties, though that is not always true in Chrome.
879
+ var vertScrollbar = Math.round(width + horizPad) - clientWidth;
880
+ var horizScrollbar = Math.round(height + vertPad) - clientHeight;
881
+ // Chrome has a rather weird rounding of "client" properties.
882
+ // E.g. for an element with content width of 314.2px it sometimes gives
883
+ // the client width of 315px and for the width of 314.7px it may give
884
+ // 314px. And it doesn't happen all the time. So just ignore this delta
885
+ // as a non-relevant.
886
+ if (Math.abs(vertScrollbar) !== 1) {
887
+ width -= vertScrollbar;
888
+ }
889
+ if (Math.abs(horizScrollbar) !== 1) {
890
+ height -= horizScrollbar;
891
+ }
892
+ }
893
+ return createRectInit(paddings.left, paddings.top, width, height);
894
+ }
895
+ /**
896
+ * Checks whether provided element is an instance of the SVGGraphicsElement.
897
+ *
898
+ * @param {Element} target - Element to be checked.
899
+ * @returns {boolean}
900
+ */
901
+ var isSVGGraphicsElement = (function () {
902
+ // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
903
+ // interface.
904
+ if (typeof SVGGraphicsElement !== 'undefined') {
905
+ return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
906
+ }
907
+ // If it's so, then check that element is at least an instance of the
908
+ // SVGElement and that it has the "getBBox" method.
909
+ // eslint-disable-next-line no-extra-parens
910
+ return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
911
+ typeof target.getBBox === 'function'); };
912
+ })();
913
+ /**
914
+ * Checks whether provided element is a document element (<html>).
915
+ *
916
+ * @param {Element} target - Element to be checked.
917
+ * @returns {boolean}
918
+ */
919
+ function isDocumentElement(target) {
920
+ return target === getWindowOf(target).document.documentElement;
921
+ }
922
+ /**
923
+ * Calculates an appropriate content rectangle for provided html or svg element.
924
+ *
925
+ * @param {Element} target - Element content rectangle of which needs to be calculated.
926
+ * @returns {DOMRectInit}
927
+ */
928
+ function getContentRect(target) {
929
+ if (!isBrowser) {
930
+ return emptyRect;
931
+ }
932
+ if (isSVGGraphicsElement(target)) {
933
+ return getSVGContentRect(target);
934
+ }
935
+ return getHTMLElementContentRect(target);
936
+ }
937
+ /**
938
+ * Creates rectangle with an interface of the DOMRectReadOnly.
939
+ * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
940
+ *
941
+ * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
942
+ * @returns {DOMRectReadOnly}
943
+ */
944
+ function createReadOnlyRect(_a) {
945
+ var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
946
+ // If DOMRectReadOnly is available use it as a prototype for the rectangle.
947
+ var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
948
+ var rect = Object.create(Constr.prototype);
949
+ // Rectangle's properties are not writable and non-enumerable.
950
+ defineConfigurable(rect, {
951
+ x: x, y: y, width: width, height: height,
952
+ top: y,
953
+ right: x + width,
954
+ bottom: height + y,
955
+ left: x
956
+ });
957
+ return rect;
958
+ }
959
+ /**
960
+ * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
961
+ * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
962
+ *
963
+ * @param {number} x - X coordinate.
964
+ * @param {number} y - Y coordinate.
965
+ * @param {number} width - Rectangle's width.
966
+ * @param {number} height - Rectangle's height.
967
+ * @returns {DOMRectInit}
968
+ */
969
+ function createRectInit(x, y, width, height) {
970
+ return { x: x, y: y, width: width, height: height };
971
+ }
972
+
973
+ /**
974
+ * Class that is responsible for computations of the content rectangle of
975
+ * provided DOM element and for keeping track of it's changes.
976
+ */
977
+ var ResizeObservation = /** @class */ (function () {
978
+ /**
979
+ * Creates an instance of ResizeObservation.
980
+ *
981
+ * @param {Element} target - Element to be observed.
982
+ */
983
+ function ResizeObservation(target) {
984
+ /**
985
+ * Broadcasted width of content rectangle.
986
+ *
987
+ * @type {number}
988
+ */
989
+ this.broadcastWidth = 0;
990
+ /**
991
+ * Broadcasted height of content rectangle.
992
+ *
993
+ * @type {number}
994
+ */
995
+ this.broadcastHeight = 0;
996
+ /**
997
+ * Reference to the last observed content rectangle.
998
+ *
999
+ * @private {DOMRectInit}
1000
+ */
1001
+ this.contentRect_ = createRectInit(0, 0, 0, 0);
1002
+ this.target = target;
1003
+ }
1004
+ /**
1005
+ * Updates content rectangle and tells whether it's width or height properties
1006
+ * have changed since the last broadcast.
1007
+ *
1008
+ * @returns {boolean}
1009
+ */
1010
+ ResizeObservation.prototype.isActive = function () {
1011
+ var rect = getContentRect(this.target);
1012
+ this.contentRect_ = rect;
1013
+ return (rect.width !== this.broadcastWidth ||
1014
+ rect.height !== this.broadcastHeight);
1015
+ };
1016
+ /**
1017
+ * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
1018
+ * from the corresponding properties of the last observed content rectangle.
1019
+ *
1020
+ * @returns {DOMRectInit} Last observed content rectangle.
1021
+ */
1022
+ ResizeObservation.prototype.broadcastRect = function () {
1023
+ var rect = this.contentRect_;
1024
+ this.broadcastWidth = rect.width;
1025
+ this.broadcastHeight = rect.height;
1026
+ return rect;
1027
+ };
1028
+ return ResizeObservation;
1029
+ }());
1030
+
1031
+ var ResizeObserverEntry = /** @class */ (function () {
1032
+ /**
1033
+ * Creates an instance of ResizeObserverEntry.
1034
+ *
1035
+ * @param {Element} target - Element that is being observed.
1036
+ * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
1037
+ */
1038
+ function ResizeObserverEntry(target, rectInit) {
1039
+ var contentRect = createReadOnlyRect(rectInit);
1040
+ // According to the specification following properties are not writable
1041
+ // and are also not enumerable in the native implementation.
1042
+ //
1043
+ // Property accessors are not being used as they'd require to define a
1044
+ // private WeakMap storage which may cause memory leaks in browsers that
1045
+ // don't support this type of collections.
1046
+ defineConfigurable(this, { target: target, contentRect: contentRect });
1047
+ }
1048
+ return ResizeObserverEntry;
1049
+ }());
1050
+
1051
+ var ResizeObserverSPI = /** @class */ (function () {
1052
+ /**
1053
+ * Creates a new instance of ResizeObserver.
1054
+ *
1055
+ * @param {ResizeObserverCallback} callback - Callback function that is invoked
1056
+ * when one of the observed elements changes it's content dimensions.
1057
+ * @param {ResizeObserverController} controller - Controller instance which
1058
+ * is responsible for the updates of observer.
1059
+ * @param {ResizeObserver} callbackCtx - Reference to the public
1060
+ * ResizeObserver instance which will be passed to callback function.
1061
+ */
1062
+ function ResizeObserverSPI(callback, controller, callbackCtx) {
1063
+ /**
1064
+ * Collection of resize observations that have detected changes in dimensions
1065
+ * of elements.
1066
+ *
1067
+ * @private {Array<ResizeObservation>}
1068
+ */
1069
+ this.activeObservations_ = [];
1070
+ /**
1071
+ * Registry of the ResizeObservation instances.
1072
+ *
1073
+ * @private {Map<Element, ResizeObservation>}
1074
+ */
1075
+ this.observations_ = new MapShim();
1076
+ if (typeof callback !== 'function') {
1077
+ throw new TypeError('The callback provided as parameter 1 is not a function.');
1078
+ }
1079
+ this.callback_ = callback;
1080
+ this.controller_ = controller;
1081
+ this.callbackCtx_ = callbackCtx;
1082
+ }
1083
+ /**
1084
+ * Starts observing provided element.
1085
+ *
1086
+ * @param {Element} target - Element to be observed.
1087
+ * @returns {void}
1088
+ */
1089
+ ResizeObserverSPI.prototype.observe = function (target) {
1090
+ if (!arguments.length) {
1091
+ throw new TypeError('1 argument required, but only 0 present.');
1092
+ }
1093
+ // Do nothing if current environment doesn't have the Element interface.
1094
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
1095
+ return;
1096
+ }
1097
+ if (!(target instanceof getWindowOf(target).Element)) {
1098
+ throw new TypeError('parameter 1 is not of type "Element".');
1099
+ }
1100
+ var observations = this.observations_;
1101
+ // Do nothing if element is already being observed.
1102
+ if (observations.has(target)) {
1103
+ return;
1104
+ }
1105
+ observations.set(target, new ResizeObservation(target));
1106
+ this.controller_.addObserver(this);
1107
+ // Force the update of observations.
1108
+ this.controller_.refresh();
1109
+ };
1110
+ /**
1111
+ * Stops observing provided element.
1112
+ *
1113
+ * @param {Element} target - Element to stop observing.
1114
+ * @returns {void}
1115
+ */
1116
+ ResizeObserverSPI.prototype.unobserve = function (target) {
1117
+ if (!arguments.length) {
1118
+ throw new TypeError('1 argument required, but only 0 present.');
1119
+ }
1120
+ // Do nothing if current environment doesn't have the Element interface.
1121
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
1122
+ return;
1123
+ }
1124
+ if (!(target instanceof getWindowOf(target).Element)) {
1125
+ throw new TypeError('parameter 1 is not of type "Element".');
1126
+ }
1127
+ var observations = this.observations_;
1128
+ // Do nothing if element is not being observed.
1129
+ if (!observations.has(target)) {
1130
+ return;
1131
+ }
1132
+ observations.delete(target);
1133
+ if (!observations.size) {
1134
+ this.controller_.removeObserver(this);
1135
+ }
1136
+ };
1137
+ /**
1138
+ * Stops observing all elements.
1139
+ *
1140
+ * @returns {void}
1141
+ */
1142
+ ResizeObserverSPI.prototype.disconnect = function () {
1143
+ this.clearActive();
1144
+ this.observations_.clear();
1145
+ this.controller_.removeObserver(this);
1146
+ };
1147
+ /**
1148
+ * Collects observation instances the associated element of which has changed
1149
+ * it's content rectangle.
1150
+ *
1151
+ * @returns {void}
1152
+ */
1153
+ ResizeObserverSPI.prototype.gatherActive = function () {
1154
+ var _this = this;
1155
+ this.clearActive();
1156
+ this.observations_.forEach(function (observation) {
1157
+ if (observation.isActive()) {
1158
+ _this.activeObservations_.push(observation);
1159
+ }
1160
+ });
1161
+ };
1162
+ /**
1163
+ * Invokes initial callback function with a list of ResizeObserverEntry
1164
+ * instances collected from active resize observations.
1165
+ *
1166
+ * @returns {void}
1167
+ */
1168
+ ResizeObserverSPI.prototype.broadcastActive = function () {
1169
+ // Do nothing if observer doesn't have active observations.
1170
+ if (!this.hasActive()) {
1171
+ return;
1172
+ }
1173
+ var ctx = this.callbackCtx_;
1174
+ // Create ResizeObserverEntry instance for every active observation.
1175
+ var entries = this.activeObservations_.map(function (observation) {
1176
+ return new ResizeObserverEntry(observation.target, observation.broadcastRect());
1177
+ });
1178
+ this.callback_.call(ctx, entries, ctx);
1179
+ this.clearActive();
1180
+ };
1181
+ /**
1182
+ * Clears the collection of active observations.
1183
+ *
1184
+ * @returns {void}
1185
+ */
1186
+ ResizeObserverSPI.prototype.clearActive = function () {
1187
+ this.activeObservations_.splice(0);
1188
+ };
1189
+ /**
1190
+ * Tells whether observer has active observations.
1191
+ *
1192
+ * @returns {boolean}
1193
+ */
1194
+ ResizeObserverSPI.prototype.hasActive = function () {
1195
+ return this.activeObservations_.length > 0;
1196
+ };
1197
+ return ResizeObserverSPI;
1198
+ }());
1199
+
1200
+ // Registry of internal observers. If WeakMap is not available use current shim
1201
+ // for the Map collection as it has all required methods and because WeakMap
1202
+ // can't be fully polyfilled anyway.
1203
+ var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
1204
+ /**
1205
+ * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
1206
+ * exposing only those methods and properties that are defined in the spec.
1207
+ */
1208
+ var ResizeObserver = /** @class */ (function () {
1209
+ /**
1210
+ * Creates a new instance of ResizeObserver.
1211
+ *
1212
+ * @param {ResizeObserverCallback} callback - Callback that is invoked when
1213
+ * dimensions of the observed elements change.
1214
+ */
1215
+ function ResizeObserver(callback) {
1216
+ if (!(this instanceof ResizeObserver)) {
1217
+ throw new TypeError('Cannot call a class as a function.');
1218
+ }
1219
+ if (!arguments.length) {
1220
+ throw new TypeError('1 argument required, but only 0 present.');
1221
+ }
1222
+ var controller = ResizeObserverController.getInstance();
1223
+ var observer = new ResizeObserverSPI(callback, controller, this);
1224
+ observers.set(this, observer);
1225
+ }
1226
+ return ResizeObserver;
1227
+ }());
1228
+ // Expose public methods of ResizeObserver.
1229
+ [
1230
+ 'observe',
1231
+ 'unobserve',
1232
+ 'disconnect'
1233
+ ].forEach(function (method) {
1234
+ ResizeObserver.prototype[method] = function () {
1235
+ var _a;
1236
+ return (_a = observers.get(this))[method].apply(_a, arguments);
1237
+ };
1238
+ });
1239
+
1240
+ var index = (function () {
1241
+ // Export existing implementation if available.
1242
+ if (typeof global$1.ResizeObserver !== 'undefined') {
1243
+ return global$1.ResizeObserver;
1244
+ }
1245
+ return ResizeObserver;
1246
+ })();
1247
+
1248
+ /* harmony default export */ __webpack_exports__["default"] = (index);
1249
+
1250
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
1251
+
1252
+ /***/ }),
1253
+
1254
+ /***/ "916e":
1255
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1256
+
1257
+ "use strict";
1258
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_id_962f42c0_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("17b4");
1259
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_id_962f42c0_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_id_962f42c0_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
1260
+ /* unused harmony reexport * */
1261
+
1262
+
1263
+ /***/ }),
1264
+
1265
+ /***/ "9619":
1266
+ /***/ (function(module, exports, __webpack_require__) {
1267
+
1268
+ var throttle = __webpack_require__("597f");
1269
+ var debounce = __webpack_require__("0e15");
1270
+
1271
+ module.exports = {
1272
+ throttle: throttle,
1273
+ debounce: debounce
1274
+ };
1275
+
1276
+
1277
+ /***/ }),
1278
+
1279
+ /***/ "c8ba":
1280
+ /***/ (function(module, exports) {
1281
+
1282
+ var g;
1283
+
1284
+ // This works in non-strict mode
1285
+ g = (function() {
1286
+ return this;
1287
+ })();
1288
+
1289
+ try {
1290
+ // This works if eval is allowed (see CSP)
1291
+ g = g || new Function("return this")();
1292
+ } catch (e) {
1293
+ // This works if the window reference is available
1294
+ if (typeof window === "object") g = window;
1295
+ }
1296
+
1297
+ // g can still be undefined, but nothing to do about it...
1298
+ // We return undefined, instead of nothing here, so it's
1299
+ // easier to handle this case. if(!global) { ...}
1300
+
1301
+ module.exports = g;
1302
+
1303
+
1304
+ /***/ }),
1305
+
1306
+ /***/ "d010":
1307
+ /***/ (function(module, exports, __webpack_require__) {
1308
+
1309
+ "use strict";
1310
+
1311
+
1312
+ exports.__esModule = true;
1313
+ function _broadcast(componentName, eventName, params) {
1314
+ this.$children.forEach(function (child) {
1315
+ var name = child.$options.componentName;
1316
+
1317
+ if (name === componentName) {
1318
+ child.$emit.apply(child, [eventName].concat(params));
1319
+ } else {
1320
+ _broadcast.apply(child, [componentName, eventName].concat([params]));
1321
+ }
1322
+ });
1323
+ }
1324
+ exports.default = {
1325
+ methods: {
1326
+ dispatch: function dispatch(componentName, eventName, params) {
1327
+ var parent = this.$parent || this.$root;
1328
+ var name = parent.$options.componentName;
1329
+
1330
+ while (parent && (!name || name !== componentName)) {
1331
+ parent = parent.$parent;
1332
+
1333
+ if (parent) {
1334
+ name = parent.$options.componentName;
1335
+ }
1336
+ }
1337
+ if (parent) {
1338
+ parent.$emit.apply(parent, [eventName].concat(params));
1339
+ }
1340
+ },
1341
+ broadcast: function broadcast(componentName, eventName, params) {
1342
+ _broadcast.call(this, componentName, eventName, params);
1343
+ }
1344
+ }
1345
+ };
1346
+
1347
+ /***/ }),
1348
+
1349
+ /***/ "fb15":
1350
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1351
+
1352
+ "use strict";
1353
+ // ESM COMPAT FLAG
1354
+ __webpack_require__.r(__webpack_exports__);
1355
+
1356
+ // EXPORTS
1357
+ __webpack_require__.d(__webpack_exports__, "XtSelectTree", function() { return /* reexport */ xt_select_tree; });
1358
+
1359
+ // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
1360
+ // This file is imported into lib/wc client bundles.
1361
+
1362
+ if (typeof window !== 'undefined') {
1363
+ var currentScript = window.document.currentScript
1364
+ if (false) { var getCurrentScript; }
1365
+
1366
+ var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
1367
+ if (src) {
1368
+ __webpack_require__.p = src[1] // eslint-disable-line
1369
+ }
1370
+ }
1371
+
1372
+ // Indicate to webpack that this file can be concatenated
1373
+ /* harmony default export */ var setPublicPath = (null);
1374
+
1375
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b8cd9b04-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-select-tree/index.vue?vue&type=template&id=962f42c0&scoped=true
1376
+ var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"el-select select-tree"},[_c('el-popover',{ref:"elPopover",attrs:{"transition":"el-zoom-in-top","popper-class":"select-tree__popover","trigger":"click","disabled":_vm.disabled,"placement":_vm.placement,"width":_vm.popoverWidth},on:{"after-enter":_vm.handleScroll,"show":_vm.handleFocus,"hide":_vm.handleBlur},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[_c('el-scrollbar',{ref:"scrollbar",attrs:{"wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[_c('el-tree',{ref:"elTree",staticClass:"select-tree__list",style:({minWidth: _vm.minWidth + 'px'}),attrs:{"default-expand-keys":_vm.defaultExpandKeys,"show-checkbox":_vm.multiple,"expand-on-click-node":_vm.multiple,"data":_vm.data,"props":_vm.props,"node-key":_vm.propsValue,"default-expand-all":_vm.defaultExpandAll,"check-strictly":_vm.checkStrictly,"lazy":_vm.lazy,"load":_vm.load,"icon-class":_vm.iconClass,"highlight-current":_vm.highlightCurrent,"indent":_vm.indent,"accordion":_vm.accordion,"filter-node-method":_vm.filterNodeMethod,"auto-expand-parent":_vm.autoExpandParent,"render-content":_vm.renderContent,"render-after-expand":_vm.renderAfterExpand},on:{"check-change":_vm.checkChange,"node-click":_vm.nodeClick},nativeOn:{"transitionend":function($event){return _vm.$refs.elPopover.updatePopper()}},scopedSlots:_vm._u([{key:"default",fn:function({data}){return _c('div',{staticClass:"select-tree__item",class:_vm.treeItemClass(data)},[_vm._v(" "+_vm._s(data[_vm.propsLabel])+" ")])}}])})],1),_c('el-input',{ref:"reference",class:{'is-active': _vm.visible, 'is-selected': _vm.selectedLabel},attrs:{"slot":"reference","clearable":_vm.clearable,"readonly":!_vm.filterable,"validate-event":false,"size":_vm.size,"disabled":_vm.disabled,"placeholder":_vm.query || _vm.placeholder},on:{"input":_vm.getTreeFilter,"clear":_vm.clear},slot:"reference",model:{value:(_vm.selectedLabel),callback:function ($$v) {_vm.selectedLabel=$$v},expression:"selectedLabel"}},[_c('i',{staticClass:"el-input__icon el-input__icon-arrow-down el-icon-arrow-down",attrs:{"slot":"suffix"},slot:"suffix"})])],1)],1)
1377
+ }
1378
+ var staticRenderFns = []
1379
+
1380
+
1381
+ // CONCATENATED MODULE: ./src/components/xt-select-tree/index.vue?vue&type=template&id=962f42c0&scoped=true
1382
+
1383
+ // EXTERNAL MODULE: ./node_modules/element-ui/lib/mixins/emitter.js
1384
+ var emitter = __webpack_require__("d010");
1385
+ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter);
1386
+
1387
+ // EXTERNAL MODULE: ./node_modules/element-ui/lib/utils/resize-event.js
1388
+ var resize_event = __webpack_require__("4010");
1389
+
1390
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-select-tree/index.vue?vue&type=script&lang=js
1391
+
1392
+
1393
+
1394
+ /* harmony default export */ var xt_select_treevue_type_script_lang_js = ({
1395
+ name: "XtSelectTree",
1396
+ mixins: [emitter_default.a],
1397
+ inheritAttrs: false,
1398
+ model: {
1399
+ prop: "value",
1400
+ event: "change"
1401
+ },
1402
+ props: {
1403
+ data: {
1404
+ type: Array,
1405
+ default() {
1406
+ return [];
1407
+ }
1408
+ },
1409
+ props: {
1410
+ type: Object,
1411
+ default: () => {
1412
+ return {
1413
+ value: "value",
1414
+ label: "label",
1415
+ children: "children",
1416
+ disabled: "disabled",
1417
+ isLeaf: "isLeaf"
1418
+ };
1419
+ }
1420
+ },
1421
+ checkStrictly: Boolean,
1422
+ nodeKey: String,
1423
+ defaultExpandAll: Boolean,
1424
+ lazy: Boolean,
1425
+ load: Function,
1426
+ iconClass: String,
1427
+ indent: Number,
1428
+ accordion: Boolean,
1429
+ filterNodeMethod: {
1430
+ type: Function,
1431
+ default(v, data, node) {
1432
+ if (!v) return true;
1433
+ return node.label.indexOf(v) !== -1;
1434
+ }
1435
+ },
1436
+ autoExpandParent: {
1437
+ type: Boolean,
1438
+ default: true
1439
+ },
1440
+ renderContent: Function,
1441
+ renderAfterExpand: Boolean,
1442
+ clearable: Boolean,
1443
+ placeholder: {
1444
+ type: String,
1445
+ default: "请选择"
1446
+ },
1447
+ placement: {
1448
+ type: String,
1449
+ default: "bottom-start"
1450
+ },
1451
+ size: {
1452
+ type: String,
1453
+ default: ""
1454
+ },
1455
+ disabled: Boolean,
1456
+ highlightCurrent: {
1457
+ default: true,
1458
+ type: Boolean
1459
+ },
1460
+ filterable: {
1461
+ type: Boolean,
1462
+ default: true
1463
+ },
1464
+ multiple: Boolean,
1465
+ value: {
1466
+ type: [Number, String, Array],
1467
+ default: ""
1468
+ },
1469
+ defaultValue: {
1470
+ type: [Number, String, Array],
1471
+ default: ""
1472
+ },
1473
+ nodeAbleClick: {
1474
+ type: Function,
1475
+ default() {
1476
+ return (node, data) => true;
1477
+ }
1478
+ },
1479
+ popoverWidth: Number,
1480
+ checkLeafOnly: {
1481
+ default: false,
1482
+ type: Boolean
1483
+ },
1484
+ includeHalfChecked: {
1485
+ default: false,
1486
+ type: Boolean
1487
+ }
1488
+ },
1489
+ data() {
1490
+ return {
1491
+ timer: null,
1492
+ selectedLabel: "",
1493
+ minWidth: 0,
1494
+ visible: false,
1495
+ query: ""
1496
+ };
1497
+ },
1498
+ computed: {
1499
+ triggerEventImmediate() {
1500
+ return this.defaultValue == this.value;
1501
+ },
1502
+ propsValue() {
1503
+ return this.nodeKey || this.props.value || "value";
1504
+ },
1505
+ propsLabel() {
1506
+ return this.props.label || "label";
1507
+ },
1508
+ propsIsLeaf() {
1509
+ return this.props.isLeaf || "isLeaf";
1510
+ },
1511
+ defaultExpandKeys() {
1512
+ return Array.isArray(this.value) ? this.value : (this.value || this.value === 0) ? [this.value] : [];
1513
+ }
1514
+ },
1515
+ watch: {
1516
+ value: {
1517
+ handler() {
1518
+ this.setSelected(this.triggerEventImmediate);
1519
+ this.dispatch("ElFormItem", "el.form.change");
1520
+ }
1521
+ },
1522
+ data() {
1523
+ this.setSelected();
1524
+ }
1525
+ },
1526
+ created() {
1527
+ if (this.multiple && !Array.isArray(this.value)) {
1528
+ throw new Error("[select-tree] props value must be array if use multiple");
1529
+ }
1530
+ },
1531
+ mounted() {
1532
+ this.$nextTick(() => {
1533
+ this.setSelected();
1534
+ });
1535
+ Object(resize_event["addResizeListener"])(this.$el, this.handleResize);
1536
+ },
1537
+ beforeDestroy() {
1538
+ if (this.$el && this.handleResize) {
1539
+ Object(resize_event["removeResizeListener"])(this.$el, this.handleResize);
1540
+ }
1541
+ },
1542
+ methods: {
1543
+ getTreeFilter(v) {
1544
+ this.$refs.elTree && this.$refs.elTree.filter(v);
1545
+ },
1546
+ handleFocus() {
1547
+ if (this.filterable) {
1548
+ this.$refs.elTree.filter("");
1549
+ this.query = this.selectedLabel;
1550
+ this.selectedLabel = "";
1551
+ }
1552
+ },
1553
+ handleBlur() {
1554
+ if (this.filterable) {
1555
+ this.selectedLabel = this.query;
1556
+ this.$refs.reference.blur();
1557
+ }
1558
+ },
1559
+ valueChange(value, node) {
1560
+ this.$emit("change", value, node);
1561
+ },
1562
+ clear() {
1563
+ this.visible = false;
1564
+ if (this.multiple) {
1565
+ this.valueChange([]);
1566
+ this.$nextTick(() => {
1567
+ this.$refs.elTree.setCheckedKeys([]);
1568
+ });
1569
+ } else {
1570
+ this.valueChange("");
1571
+ }
1572
+ this.$emit("clear");
1573
+ },
1574
+ handleScroll() {
1575
+ this.$refs.scrollbar && this.$refs.scrollbar.handleScroll();
1576
+ },
1577
+ nodeClick(data, node, component) {
1578
+ // const children = data[this.props.children];
1579
+ const value = data[this.propsValue];
1580
+ if (this.nodeAbleClick(data, node)) {
1581
+ this.valueChange(value, data);
1582
+ this.selectedLabel = data[this.propsLabel];
1583
+ if (!this.multiple && !data.disabled) {
1584
+ this.visible = false;
1585
+ }
1586
+ }
1587
+ // if (((children && children.length) || (this.lazy && !data[this.propsIsLeaf])) && !this.checkStrictly) {
1588
+ // component.handleExpandIconClick();
1589
+ // } else if (!this.multiple && !data.disabled) {
1590
+ // this.valueChange(value, data);
1591
+ // this.selectedLabel = data[this.propsLabel];
1592
+ // this.visible = false;
1593
+ // }
1594
+ },
1595
+ checkChange(data, checked, inderterminate) {
1596
+ if (this.timer) clearTimeout(this.timer);
1597
+ this.timer = setTimeout(() => {
1598
+ const elTree = this.$refs.elTree;
1599
+ const leafOnly = this.checkLeafOnly;
1600
+ const includeHalfChecked = this.includeHalfChecked;
1601
+ const nodes = elTree.getCheckedNodes(leafOnly, includeHalfChecked);
1602
+ const keys = elTree.getCheckedKeys(leafOnly);
1603
+ this.valueChange(keys, nodes);
1604
+ this.setMultipleSelectedLabel();
1605
+ }, 50);
1606
+ },
1607
+ setSelected(triggerEvent) {
1608
+ this.$nextTick(() => {
1609
+ const elTree = this.$refs.elTree;
1610
+ if (this.multiple) {
1611
+ elTree.setCheckedKeys(this.value);
1612
+ this.setMultipleSelectedLabel();
1613
+ triggerEvent && this.checkChange();
1614
+ } else {
1615
+ if (this.value) {
1616
+ const selectedNode = elTree.getNode(this.value);
1617
+ elTree.setCurrentKey(this.value);
1618
+ if (selectedNode && selectedNode.visible && !this.lazy) {
1619
+ if (!selectedNode.isLeaf) {
1620
+ selectedNode.expand();
1621
+ } else {
1622
+ selectedNode.parent.expand();
1623
+ }
1624
+ }
1625
+ this.selectedLabel = selectedNode ? selectedNode.data[this.propsLabel] : "";
1626
+ triggerEvent && this.valueChange(this.value, selectedNode);
1627
+ } else {
1628
+ elTree.setCurrentKey("");
1629
+ this.selectedLabel = "";
1630
+ triggerEvent && this.valueChange("");
1631
+ }
1632
+ }
1633
+ });
1634
+ },
1635
+ setMultipleSelectedLabel() {
1636
+ const elTree = this.$refs.elTree;
1637
+ const selectedNodes = elTree.getCheckedNodes(!this.checkStrictly);
1638
+ this.selectedLabel = selectedNodes.map((item) => item[this.propsLabel]).join(",");
1639
+ },
1640
+ treeItemClass(data) {
1641
+ return {
1642
+ "is-selected": this.multiple ? false : data[this.propsValue] === this.value, "is-disabled": data.disabled
1643
+ };
1644
+ },
1645
+ handleResize() {
1646
+ this.minWidth = this.$el.clientWidth - 2;
1647
+ },
1648
+ getNodeById(id) {
1649
+ return this.$refs.elTree.getNode(id);
1650
+ }
1651
+ }
1652
+ });
1653
+
1654
+ // CONCATENATED MODULE: ./src/components/xt-select-tree/index.vue?vue&type=script&lang=js
1655
+ /* harmony default export */ var components_xt_select_treevue_type_script_lang_js = (xt_select_treevue_type_script_lang_js);
1656
+ // EXTERNAL MODULE: ./src/components/xt-select-tree/index.vue?vue&type=style&index=0&id=962f42c0&prod&scoped=true&lang=scss
1657
+ var xt_select_treevue_type_style_index_0_id_962f42c0_prod_scoped_true_lang_scss = __webpack_require__("439a");
1658
+
1659
+ // EXTERNAL MODULE: ./src/components/xt-select-tree/index.vue?vue&type=style&index=1&id=962f42c0&prod&lang=scss
1660
+ var xt_select_treevue_type_style_index_1_id_962f42c0_prod_lang_scss = __webpack_require__("916e");
1661
+
1662
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1663
+ /* globals __VUE_SSR_CONTEXT__ */
1664
+
1665
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1666
+ // This module is a runtime utility for cleaner component module output and will
1667
+ // be included in the final webpack user bundle.
1668
+
1669
+ function normalizeComponent(
1670
+ scriptExports,
1671
+ render,
1672
+ staticRenderFns,
1673
+ functionalTemplate,
1674
+ injectStyles,
1675
+ scopeId,
1676
+ moduleIdentifier /* server only */,
1677
+ shadowMode /* vue-cli only */
1678
+ ) {
1679
+ // Vue.extend constructor export interop
1680
+ var options =
1681
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
1682
+
1683
+ // render functions
1684
+ if (render) {
1685
+ options.render = render
1686
+ options.staticRenderFns = staticRenderFns
1687
+ options._compiled = true
1688
+ }
1689
+
1690
+ // functional template
1691
+ if (functionalTemplate) {
1692
+ options.functional = true
1693
+ }
1694
+
1695
+ // scopedId
1696
+ if (scopeId) {
1697
+ options._scopeId = 'data-v-' + scopeId
1698
+ }
1699
+
1700
+ var hook
1701
+ if (moduleIdentifier) {
1702
+ // server build
1703
+ hook = function (context) {
1704
+ // 2.3 injection
1705
+ context =
1706
+ context || // cached call
1707
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
1708
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1709
+ // 2.2 with runInNewContext: true
1710
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1711
+ context = __VUE_SSR_CONTEXT__
1712
+ }
1713
+ // inject component styles
1714
+ if (injectStyles) {
1715
+ injectStyles.call(this, context)
1716
+ }
1717
+ // register component module identifier for async chunk inferrence
1718
+ if (context && context._registeredComponents) {
1719
+ context._registeredComponents.add(moduleIdentifier)
1720
+ }
1721
+ }
1722
+ // used by ssr in case component is cached and beforeCreate
1723
+ // never gets called
1724
+ options._ssrRegister = hook
1725
+ } else if (injectStyles) {
1726
+ hook = shadowMode
1727
+ ? function () {
1728
+ injectStyles.call(
1729
+ this,
1730
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
1731
+ )
1732
+ }
1733
+ : injectStyles
1734
+ }
1735
+
1736
+ if (hook) {
1737
+ if (options.functional) {
1738
+ // for template-only hot-reload because in that case the render fn doesn't
1739
+ // go through the normalizer
1740
+ options._injectStyles = hook
1741
+ // register for functional component in vue file
1742
+ var originalRender = options.render
1743
+ options.render = function renderWithStyleInjection(h, context) {
1744
+ hook.call(context)
1745
+ return originalRender(h, context)
1746
+ }
1747
+ } else {
1748
+ // inject component registration as beforeCreate hook
1749
+ var existing = options.beforeCreate
1750
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
1751
+ }
1752
+ }
1753
+
1754
+ return {
1755
+ exports: scriptExports,
1756
+ options: options
1757
+ }
1758
+ }
1759
+
1760
+ // CONCATENATED MODULE: ./src/components/xt-select-tree/index.vue
1761
+
1762
+
1763
+
1764
+
1765
+
1766
+
1767
+
1768
+ /* normalize component */
1769
+
1770
+ var component = normalizeComponent(
1771
+ components_xt_select_treevue_type_script_lang_js,
1772
+ render,
1773
+ staticRenderFns,
1774
+ false,
1775
+ null,
1776
+ "962f42c0",
1777
+ null
1778
+
1779
+ )
1780
+
1781
+ /* harmony default export */ var xt_select_tree = (component.exports);
1782
+ // CONCATENATED MODULE: ./src/components/xt-select-tree/index.js
1783
+
1784
+
1785
+ xt_select_tree.install = function (Vue) {
1786
+ Vue.component(xt_select_tree.name, xt_select_tree)
1787
+ }
1788
+
1789
+ /* harmony default export */ var components_xt_select_tree = (xt_select_tree);
1790
+
1791
+ // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
1792
+
1793
+
1794
+ /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components_xt_select_tree);
1795
+
1796
+
1797
+
1798
+ /***/ })
1799
+
1800
+ /******/ });
1801
+ });