@yoobic/yobi 8.7.12 → 8.7.14

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.
@@ -150,7 +150,7 @@ const YooFormAutocompleteComponent = class {
150
150
  else if (isWeb(this.host)) {
151
151
  modalOptions = Object.assign(modalOptions, { hostElement: this.outerContainer, dialogContentElement: this.dialog });
152
152
  }
153
- this.modal = await showModal({
153
+ const ret = await showModal({
154
154
  component: this.dialog,
155
155
  componentProps: modalOptions,
156
156
  cssClass: isWeb(this.host) && !isExpanding ? 'context-menu' : isExpanding ? ' visible-overflow' : null,
@@ -160,8 +160,8 @@ const YooFormAutocompleteComponent = class {
160
160
  displayFullscreenButton: false,
161
161
  watermarkLogo: this.collectionName === 'giphy' ? './assets/logo/giphy.png' : null
162
162
  });
163
- if (this.modal && !this.modal.overlayDismiss && !isWeb(this.host)) {
164
- await this.setValue(this.modal.data);
163
+ if (ret && !ret.overlayDismiss && !isWeb(this.host)) {
164
+ await this.setValue(ret.data);
165
165
  }
166
166
  if (this.clearSortsAndFilters) {
167
167
  this.sortsAndFilters = undefined;
@@ -496,10 +496,6 @@ const YooFormAutocompleteComponent = class {
496
496
  disconnectedCallback() {
497
497
  document.body.removeEventListener('click', this.hideContainerListener);
498
498
  document.body.removeEventListener('webAutocompleteOpened', this.onWebAutocompleteOpened);
499
- this.animatedIllustration = null;
500
- this.sortsAndFilters = null;
501
- this.modal = null;
502
- this.showContainerDialog = null;
503
499
  }
504
500
  async setValueAndValidateInput(value) {
505
501
  await setValueAndValidateInput(value, this);
@@ -139,7 +139,6 @@ export declare class YooFormAutocompleteComponent implements IFormAutocomplete<a
139
139
  private fileUploader;
140
140
  private fileUploaderData;
141
141
  private infiniteScrollDisabled;
142
- private modal;
143
142
  private showContainerDialog;
144
143
  private get iconSize();
145
144
  onWebAutocompleteOpened(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.7.12",
3
+ "version": "8.7.14",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",