@yoobic/yobi 8.2.0-6 → 8.2.0-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/{draggable-tags-helpers-bf7e3a6b.js → draggable-tags-helpers-55561d23.js} +1 -1
- package/dist/cjs/{index-5cceed71.js → index-4d7aa662.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/yoo-ag-grid.cjs.entry.js +1687 -1257
- package/dist/cjs/yoo-chat.cjs.entry.js +2 -1
- package/dist/cjs/yoo-form-categorize-words.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-choice.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-connect.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-image-tagging.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-missing-word.cjs.entry.js +8 -13
- package/dist/cjs/yoo-form-phone-number.cjs.entry.js +509 -513
- package/dist/cjs/yoo-form-ranking.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +9 -11
- package/dist/cjs/yoo-form-text-area.cjs.entry.js +6 -1
- package/dist/cjs/yoo-grid.cjs.entry.js +3 -3
- package/dist/cjs/yoo-input-bar.cjs.entry.js +9 -5
- package/dist/collection/components/3.organisms/input-bar/input-bar.js +9 -5
- package/dist/collection/components/form/form-missing-word/form-missing-word.js +6 -11
- package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.js +8 -10
- package/dist/collection/components/form/form-text-area/form-text-area.js +22 -1
- package/dist/collection/components/grid/ag-grid/ag-grid.js +0 -1
- package/dist/collection/components/grid/grid/grid.js +3 -3
- package/dist/collection/feature-communicate/chat/chat/chat.js +2 -1
- package/dist/collection/utils/helpers/draggable-tags-helpers.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/{esm/draggable-tags-helpers-27844807.js → design-system/draggable-tags-helpers-cf51adc0.js} +1 -1
- package/dist/{esm/index-0b91e49f.js → design-system/index-0904d288.js} +1 -1
- package/dist/design-system/yoo-ag-grid.entry.js +1687 -1257
- package/dist/design-system/yoo-chat.entry.js +2 -1
- package/dist/design-system/yoo-form-categorize-words.entry.js +2 -2
- package/dist/design-system/yoo-form-choice.entry.js +1 -1
- package/dist/design-system/yoo-form-connect.entry.js +1 -1
- package/dist/design-system/yoo-form-image-tagging.entry.js +2 -2
- package/dist/design-system/yoo-form-missing-word.entry.js +8 -13
- package/dist/design-system/yoo-form-phone-number.entry.js +509 -513
- package/dist/design-system/yoo-form-ranking.entry.js +1 -1
- package/dist/design-system/yoo-form-swipe-cards.entry.js +9 -11
- package/dist/design-system/yoo-form-text-area.entry.js +6 -1
- package/dist/design-system/yoo-grid.entry.js +3 -3
- package/dist/design-system/yoo-input-bar.entry.js +9 -5
- package/dist/esm/design-system.js +1 -1
- package/dist/{design-system/draggable-tags-helpers-27844807.js → esm/draggable-tags-helpers-cf51adc0.js} +1 -1
- package/dist/{design-system/index-0b91e49f.js → esm/index-0904d288.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/yoo-ag-grid.entry.js +1687 -1257
- package/dist/esm/yoo-chat.entry.js +2 -1
- package/dist/esm/yoo-form-categorize-words.entry.js +2 -2
- package/dist/esm/yoo-form-choice.entry.js +1 -1
- package/dist/esm/yoo-form-connect.entry.js +1 -1
- package/dist/esm/yoo-form-image-tagging.entry.js +2 -2
- package/dist/esm/yoo-form-missing-word.entry.js +8 -13
- package/dist/esm/yoo-form-phone-number.entry.js +509 -513
- package/dist/esm/yoo-form-ranking.entry.js +1 -1
- package/dist/esm/yoo-form-swipe-cards.entry.js +9 -11
- package/dist/esm/yoo-form-text-area.entry.js +6 -1
- package/dist/esm/yoo-grid.entry.js +3 -3
- package/dist/esm/yoo-input-bar.entry.js +9 -5
- package/dist/types/components/form/form-swipe-cards/form-swipe-cards.d.ts +1 -1
- package/dist/types/components/form/form-text-area/form-text-area.d.ts +1 -0
- package/dist/types/components.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, i as createEvent, h, e as Host, g as getElement } from './index-019c1b1a.js';
|
|
2
2
|
import { r as findParent, aK as gsapTo, J as gsapTimeline, y as getCssColor, aJ as Draggable, T as translateMulti, aL as gsapSet } from './index-0ca062eb.js';
|
|
3
3
|
import { b as getAppContext } from './common-helpers-a2613dd7.js';
|
|
4
|
-
import { c as checkArray } from './draggable-tags-helpers-
|
|
4
|
+
import { c as checkArray } from './draggable-tags-helpers-cf51adc0.js';
|
|
5
5
|
import { a as setValueAndValidateInput } from './form-input-helpers-93ddc234.js';
|
|
6
6
|
import './lodash-494e728c.js';
|
|
7
7
|
import './_commonjsHelpers-f4d11124.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, i as createEvent, h, e as Host, g as getElement
|
|
|
2
2
|
import { r as findParent, ar as isCloudinaryLink, aJ as Draggable, aI as getUUID, J as gsapTimeline, bG as Power1, aK as gsapTo, T as translateMulti, ba as getMedia, o as isWeb, t as translate } from './index-0ca062eb.js';
|
|
3
3
|
import { x as isEqual, P as shuffle, S as inRange, U as clamp } from './lodash-494e728c.js';
|
|
4
4
|
import { b as getAppContext } from './common-helpers-a2613dd7.js';
|
|
5
|
-
import { s as showWarningAlert, h as hasDuplicates } from './draggable-tags-helpers-
|
|
5
|
+
import { s as showWarningAlert, h as hasDuplicates } from './draggable-tags-helpers-cf51adc0.js';
|
|
6
6
|
import { a as setValueAndValidateInput } from './form-input-helpers-93ddc234.js';
|
|
7
7
|
import './_commonjsHelpers-f4d11124.js';
|
|
8
8
|
import './index-93c86f26.js';
|
|
@@ -144,13 +144,7 @@ const YooFormSwipeCardsComponent = class {
|
|
|
144
144
|
if (!this.showInstructionView) {
|
|
145
145
|
this.initDraggable();
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
if (showCategoriesWarning) {
|
|
149
|
-
showWarningAlert(this.host, true, 'NOTFULFILLEDCATEGORIES');
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
this.showValuesWarning();
|
|
153
|
-
}
|
|
147
|
+
this.showWarnings();
|
|
154
148
|
}
|
|
155
149
|
updateCardsData() {
|
|
156
150
|
if (this.hasDataChanged) {
|
|
@@ -177,10 +171,14 @@ const YooFormSwipeCardsComponent = class {
|
|
|
177
171
|
return (_a = this.cardsElements) === null || _a === void 0 ? void 0 : _a.find((cardElement) => (cardElement === null || cardElement === void 0 ? void 0 : cardElement.id) === id);
|
|
178
172
|
}
|
|
179
173
|
spyOnValuesChanged() {
|
|
180
|
-
this.
|
|
174
|
+
this.showWarnings();
|
|
181
175
|
}
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
showWarnings() {
|
|
177
|
+
var _a;
|
|
178
|
+
if (((_a = this.values) === null || _a === void 0 ? void 0 : _a.length) && this.livePreview && !this.hasTwoCategories) {
|
|
179
|
+
showWarningAlert(this.host, true, 'NOTFULFILLEDCATEGORIES');
|
|
180
|
+
}
|
|
181
|
+
else if (this.hasTwoCategories && this.livePreview) {
|
|
184
182
|
this.hasEmptyValues = !!this.numberEmptyItems.text || !!this.numberEmptyItems.image;
|
|
185
183
|
this.hasDuplicatesValues = this.hasText && hasDuplicates(this.values);
|
|
186
184
|
let showAlert = this.hasEmptyValues || this.hasDuplicatesValues;
|
|
@@ -72,6 +72,10 @@ const YooFormTextAreaComponent = class {
|
|
|
72
72
|
}
|
|
73
73
|
return false;
|
|
74
74
|
}
|
|
75
|
+
async getText() {
|
|
76
|
+
var _a;
|
|
77
|
+
return (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
78
|
+
}
|
|
75
79
|
async updateValueAndFocus(value, insert) {
|
|
76
80
|
if (insert) {
|
|
77
81
|
const { insertElement, offset } = getInsertElementProp(this.host, this.inputEl);
|
|
@@ -188,7 +192,8 @@ const YooFormTextAreaComponent = class {
|
|
|
188
192
|
this.updateSegmentsCountDebounce();
|
|
189
193
|
}
|
|
190
194
|
onParagraphInputChanged(ev) {
|
|
191
|
-
|
|
195
|
+
var _a;
|
|
196
|
+
if ((ev === null || ev === void 0 ? void 0 : ev.inputType) === 'insertCompositionText' && ((_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.innerText.length) > 1) {
|
|
192
197
|
return;
|
|
193
198
|
}
|
|
194
199
|
// Clean up random BR and FONT injected
|
|
@@ -944,7 +944,6 @@ const YooGridComponent = class {
|
|
|
944
944
|
this.setFormFieldValue();
|
|
945
945
|
},
|
|
946
946
|
onFirstDataRendered: () => {
|
|
947
|
-
// params
|
|
948
947
|
setTimeout(() => {
|
|
949
948
|
if (this.sizeColumnsToFit && !this.disconnected) {
|
|
950
949
|
this.gridApi.sizeColumnsToFit();
|
|
@@ -959,7 +958,9 @@ const YooGridComponent = class {
|
|
|
959
958
|
return [];
|
|
960
959
|
}
|
|
961
960
|
},
|
|
962
|
-
isServerSideGroup: this.isTree() ? (item) =>
|
|
961
|
+
isServerSideGroup: this.isTree() ? (item) => {
|
|
962
|
+
return !(item === null || item === void 0 ? void 0 : item.isLeaf);
|
|
963
|
+
} : null,
|
|
963
964
|
getServerSideGroupKey: this.isTree()
|
|
964
965
|
? (dataItem) => {
|
|
965
966
|
return dataItem._id;
|
|
@@ -969,7 +970,6 @@ const YooGridComponent = class {
|
|
|
969
970
|
if (this.isTree()) {
|
|
970
971
|
this.finalGridConfig.groupDisplayType = 'custom';
|
|
971
972
|
this.finalGridConfig.serverSideStoreType = 'full';
|
|
972
|
-
// this.finalGridConfig.groupSuppressAutoColumn = true;
|
|
973
973
|
}
|
|
974
974
|
this.finalGridConfig.rowModelType = this.finalGridConfig.rowModelType || 'serverSide';
|
|
975
975
|
if (this.gridDomLayout) {
|
|
@@ -29555,10 +29555,14 @@ const YooInputBarComponent = class {
|
|
|
29555
29555
|
}
|
|
29556
29556
|
}
|
|
29557
29557
|
async onActionClick(preventFocusAfter = false) {
|
|
29558
|
-
var _a, _b;
|
|
29558
|
+
var _a, _b, _c;
|
|
29559
29559
|
this.onVibrate();
|
|
29560
|
-
|
|
29561
|
-
|
|
29560
|
+
let text = this.value;
|
|
29561
|
+
if (this.formTextArea) {
|
|
29562
|
+
text = await ((_a = this.formTextArea) === null || _a === void 0 ? void 0 : _a.getText()) || text;
|
|
29563
|
+
}
|
|
29564
|
+
if (this.hasTextInside || (text && text !== '')) {
|
|
29565
|
+
const safeContent = await sanitizeHTML(text);
|
|
29562
29566
|
this.sendText.emit(safeContent);
|
|
29563
29567
|
this.value = null;
|
|
29564
29568
|
if (this.formTextArea) {
|
|
@@ -29573,10 +29577,10 @@ const YooInputBarComponent = class {
|
|
|
29573
29577
|
else {
|
|
29574
29578
|
this.onImportPhotoFromLibrary();
|
|
29575
29579
|
}
|
|
29576
|
-
if (((
|
|
29580
|
+
if (((_b = this.advancedOptions) === null || _b === void 0 ? void 0 : _b.keepFocusAfterAction) && this.formTextArea && !preventFocusAfter) {
|
|
29577
29581
|
this.formTextArea.setFocus();
|
|
29578
29582
|
}
|
|
29579
|
-
if (((
|
|
29583
|
+
if (((_c = this.advancedOptions) === null || _c === void 0 ? void 0 : _c.blurAfterAction) && this.formTextArea) {
|
|
29580
29584
|
this.formTextArea.setBlur();
|
|
29581
29585
|
}
|
|
29582
29586
|
}
|