@reviewpush/rp-treeselect 0.0.10 → 0.0.13

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.
@@ -522,7 +522,6 @@ function stringifyValue(value) {
522
522
  render: function render() {
523
523
  var _this = this;
524
524
  var h = arguments[0];
525
- console.log(this);
526
525
  if (!this.instance.name || this.instance.disabled || !this.instance.hasValue) return null;
527
526
  var stringifiedValues = this.instance.internalValue.map(stringifyValue);
528
527
  if (this.instance.multiple && this.instance.joinValues) stringifiedValues = [stringifiedValues.join(this.instance.delimiter)];
@@ -659,9 +658,6 @@ var component = normalizeComponent(
659
658
 
660
659
  )
661
660
 
662
- /* hot reload */
663
- if (false) { var api; }
664
- component.options.__file = "src/components/HiddenFields.vue"
665
661
  /* harmony default export */ var HiddenFields = (component.exports);
666
662
  // EXTERNAL MODULE: external "babel-helper-vue-jsx-merge-props"
667
663
  var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(14);
@@ -946,7 +942,7 @@ var Input_component = normalizeComponent(
946
942
  )
947
943
 
948
944
  /* hot reload */
949
- if (false) { var Input_api; }
945
+ if (false) { var api; }
950
946
  Input_component.options.__file = "src/components/Input.vue"
951
947
  /* harmony default export */ var Input = (Input_component.exports);
952
948
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Placeholder.vue?vue&type=script&lang=js
@@ -1799,9 +1795,6 @@ var Option_component = normalizeComponent(
1799
1795
 
1800
1796
  )
1801
1797
 
1802
- /* hot reload */
1803
- if (false) { var Option_api; }
1804
- Option_component.options.__file = "src/components/Option.vue"
1805
1798
  /* harmony default export */ var components_Option = (Option_component.exports);
1806
1799
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Menu.vue?vue&type=script&lang=js
1807
1800
 
@@ -2123,6 +2116,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2123
2116
  var PortalTarget = {
2124
2117
  name: 'rp-treeselect--portal-target',
2125
2118
  setup: function setup() {
2119
+ console.log('TEST');
2126
2120
  var instance = Object(external_vue_["inject"])('instance');
2127
2121
  return {
2128
2122
  instance: instance
@@ -2145,6 +2139,7 @@ var PortalTarget = {
2145
2139
  this.controlSizeWatcher = null;
2146
2140
  },
2147
2141
  mounted: function mounted() {
2142
+ console.log('TEST');
2148
2143
  var instance = this.instance;
2149
2144
  if (instance.menu.isOpen) this.setupHandlers();
2150
2145
  },
@@ -2215,16 +2210,15 @@ var PortalTarget = {
2215
2210
  },
2216
2211
  render: function render() {
2217
2212
  var h = arguments[0];
2218
- var instance = this.instance;
2219
- var portalTargetClass = ['rp-treeselect__portal-target', instance.wrapperClass];
2213
+ var portalTargetClass = ['rp-treeselect__portal-target', this.instance.wrapperClass];
2220
2214
  var portalTargetStyle = {
2221
- zIndex: instance.zIndex
2215
+ zIndex: this.instance.zIndex
2222
2216
  };
2223
2217
  return h("div", {
2224
2218
  "class": portalTargetClass,
2225
2219
  style: portalTargetStyle,
2226
2220
  attrs: {
2227
- "data-instance-id": instance.getInstanceId()
2221
+ "data-instance-id": this.instance.getInstanceId()
2228
2222
  }
2229
2223
  }, [h(Menu, {
2230
2224
  ref: "menu"
@@ -2249,11 +2243,13 @@ var placeholder;
2249
2243
  methods: {
2250
2244
  setup: function setup() {
2251
2245
  var el = document.createElement('div');
2246
+ el.setAttribute('id', "menu-target-".concat(this._uid));
2252
2247
  document.body.appendChild(el);
2253
- this.portalTarget = Object(external_vue_["createApp"])(_objectSpread({
2254
- el: el,
2248
+ var targetApp = _objectSpread({
2255
2249
  parent: this
2256
- }, PortalTarget));
2250
+ }, PortalTarget);
2251
+ this.portalTarget = Object(external_vue_["createApp"])(targetApp);
2252
+ this.portalTarget.mount("#menu-target-".concat(this._uid));
2257
2253
  },
2258
2254
  teardown: function teardown() {
2259
2255
  document.body.removeChild(this.portalTarget.$el);
@@ -2291,9 +2287,6 @@ var MenuPortal_component = normalizeComponent(
2291
2287
 
2292
2288
  )
2293
2289
 
2294
- /* hot reload */
2295
- if (false) { var MenuPortal_api; }
2296
- MenuPortal_component.options.__file = "src/components/MenuPortal.vue"
2297
2290
  /* harmony default export */ var MenuPortal = (MenuPortal_component.exports);
2298
2291
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Treeselect.vue?vue&type=script&lang=js
2299
2292
 
@@ -2782,6 +2775,7 @@ var instanceId = 0;
2782
2775
  Object(external_vue_["provide"])('instance', this);
2783
2776
  },
2784
2777
  mounted: function mounted() {
2778
+ console.log('TREESELECT');
2785
2779
  if (this.autoFocus) this.focusInput();
2786
2780
  if (!this.options && !this.async && this.autoLoadRootOptions) this.loadRootOptions();
2787
2781
  if (this.alwaysOpen) this.openMenu();
@@ -3692,7 +3686,7 @@ var style = __webpack_require__(15);
3692
3686
  /* harmony default export */ var src = __webpack_exports__["default"] = (Treeselect);
3693
3687
 
3694
3688
 
3695
- var VERSION = "0.0.9";
3689
+ var VERSION = "0.0.13";
3696
3690
 
3697
3691
  /***/ })
3698
3692
  /******/ ]);