@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
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-c8609d4f.js');
|
|
6
6
|
const index$1 = require('./index-11911d9b.js');
|
|
7
7
|
const commonHelpers = require('./common-helpers-1d02f971.js');
|
|
8
|
-
const draggableTagsHelpers = require('./draggable-tags-helpers-
|
|
8
|
+
const draggableTagsHelpers = require('./draggable-tags-helpers-55561d23.js');
|
|
9
9
|
const formInputHelpers = require('./form-input-helpers-dd79926c.js');
|
|
10
10
|
require('./lodash-597bda6d.js');
|
|
11
11
|
require('./_commonjsHelpers-94df2ea7.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-c8609d4f.js');
|
|
|
6
6
|
const index$1 = require('./index-11911d9b.js');
|
|
7
7
|
const lodash = require('./lodash-597bda6d.js');
|
|
8
8
|
const commonHelpers = require('./common-helpers-1d02f971.js');
|
|
9
|
-
const draggableTagsHelpers = require('./draggable-tags-helpers-
|
|
9
|
+
const draggableTagsHelpers = require('./draggable-tags-helpers-55561d23.js');
|
|
10
10
|
const formInputHelpers = require('./form-input-helpers-dd79926c.js');
|
|
11
11
|
require('./_commonjsHelpers-94df2ea7.js');
|
|
12
12
|
require('./index-d82a50b9.js');
|
|
@@ -148,13 +148,7 @@ const YooFormSwipeCardsComponent = class {
|
|
|
148
148
|
if (!this.showInstructionView) {
|
|
149
149
|
this.initDraggable();
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
if (showCategoriesWarning) {
|
|
153
|
-
draggableTagsHelpers.showWarningAlert(this.host, true, 'NOTFULFILLEDCATEGORIES');
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
this.showValuesWarning();
|
|
157
|
-
}
|
|
151
|
+
this.showWarnings();
|
|
158
152
|
}
|
|
159
153
|
updateCardsData() {
|
|
160
154
|
if (this.hasDataChanged) {
|
|
@@ -181,10 +175,14 @@ const YooFormSwipeCardsComponent = class {
|
|
|
181
175
|
return (_a = this.cardsElements) === null || _a === void 0 ? void 0 : _a.find((cardElement) => (cardElement === null || cardElement === void 0 ? void 0 : cardElement.id) === id);
|
|
182
176
|
}
|
|
183
177
|
spyOnValuesChanged() {
|
|
184
|
-
this.
|
|
178
|
+
this.showWarnings();
|
|
185
179
|
}
|
|
186
|
-
|
|
187
|
-
|
|
180
|
+
showWarnings() {
|
|
181
|
+
var _a;
|
|
182
|
+
if (((_a = this.values) === null || _a === void 0 ? void 0 : _a.length) && this.livePreview && !this.hasTwoCategories) {
|
|
183
|
+
draggableTagsHelpers.showWarningAlert(this.host, true, 'NOTFULFILLEDCATEGORIES');
|
|
184
|
+
}
|
|
185
|
+
else if (this.hasTwoCategories && this.livePreview) {
|
|
188
186
|
this.hasEmptyValues = !!this.numberEmptyItems.text || !!this.numberEmptyItems.image;
|
|
189
187
|
this.hasDuplicatesValues = this.hasText && draggableTagsHelpers.hasDuplicates(this.values);
|
|
190
188
|
let showAlert = this.hasEmptyValues || this.hasDuplicatesValues;
|
|
@@ -76,6 +76,10 @@ const YooFormTextAreaComponent = class {
|
|
|
76
76
|
}
|
|
77
77
|
return false;
|
|
78
78
|
}
|
|
79
|
+
async getText() {
|
|
80
|
+
var _a;
|
|
81
|
+
return (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
82
|
+
}
|
|
79
83
|
async updateValueAndFocus(value, insert) {
|
|
80
84
|
if (insert) {
|
|
81
85
|
const { insertElement, offset } = formTextAreaHelpers.getInsertElementProp(this.host, this.inputEl);
|
|
@@ -192,7 +196,8 @@ const YooFormTextAreaComponent = class {
|
|
|
192
196
|
this.updateSegmentsCountDebounce();
|
|
193
197
|
}
|
|
194
198
|
onParagraphInputChanged(ev) {
|
|
195
|
-
|
|
199
|
+
var _a;
|
|
200
|
+
if ((ev === null || ev === void 0 ? void 0 : ev.inputType) === 'insertCompositionText' && ((_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.innerText.length) > 1) {
|
|
196
201
|
return;
|
|
197
202
|
}
|
|
198
203
|
// Clean up random BR and FONT injected
|
|
@@ -948,7 +948,6 @@ const YooGridComponent = class {
|
|
|
948
948
|
this.setFormFieldValue();
|
|
949
949
|
},
|
|
950
950
|
onFirstDataRendered: () => {
|
|
951
|
-
// params
|
|
952
951
|
setTimeout(() => {
|
|
953
952
|
if (this.sizeColumnsToFit && !this.disconnected) {
|
|
954
953
|
this.gridApi.sizeColumnsToFit();
|
|
@@ -963,7 +962,9 @@ const YooGridComponent = class {
|
|
|
963
962
|
return [];
|
|
964
963
|
}
|
|
965
964
|
},
|
|
966
|
-
isServerSideGroup: this.isTree() ? (item) =>
|
|
965
|
+
isServerSideGroup: this.isTree() ? (item) => {
|
|
966
|
+
return !(item === null || item === void 0 ? void 0 : item.isLeaf);
|
|
967
|
+
} : null,
|
|
967
968
|
getServerSideGroupKey: this.isTree()
|
|
968
969
|
? (dataItem) => {
|
|
969
970
|
return dataItem._id;
|
|
@@ -973,7 +974,6 @@ const YooGridComponent = class {
|
|
|
973
974
|
if (this.isTree()) {
|
|
974
975
|
this.finalGridConfig.groupDisplayType = 'custom';
|
|
975
976
|
this.finalGridConfig.serverSideStoreType = 'full';
|
|
976
|
-
// this.finalGridConfig.groupSuppressAutoColumn = true;
|
|
977
977
|
}
|
|
978
978
|
this.finalGridConfig.rowModelType = this.finalGridConfig.rowModelType || 'serverSide';
|
|
979
979
|
if (this.gridDomLayout) {
|
|
@@ -29559,10 +29559,14 @@ const YooInputBarComponent = class {
|
|
|
29559
29559
|
}
|
|
29560
29560
|
}
|
|
29561
29561
|
async onActionClick(preventFocusAfter = false) {
|
|
29562
|
-
var _a, _b;
|
|
29562
|
+
var _a, _b, _c;
|
|
29563
29563
|
this.onVibrate();
|
|
29564
|
-
|
|
29565
|
-
|
|
29564
|
+
let text = this.value;
|
|
29565
|
+
if (this.formTextArea) {
|
|
29566
|
+
text = await ((_a = this.formTextArea) === null || _a === void 0 ? void 0 : _a.getText()) || text;
|
|
29567
|
+
}
|
|
29568
|
+
if (this.hasTextInside || (text && text !== '')) {
|
|
29569
|
+
const safeContent = await commonHelpers.sanitizeHTML(text);
|
|
29566
29570
|
this.sendText.emit(safeContent);
|
|
29567
29571
|
this.value = null;
|
|
29568
29572
|
if (this.formTextArea) {
|
|
@@ -29577,10 +29581,10 @@ const YooInputBarComponent = class {
|
|
|
29577
29581
|
else {
|
|
29578
29582
|
this.onImportPhotoFromLibrary();
|
|
29579
29583
|
}
|
|
29580
|
-
if (((
|
|
29584
|
+
if (((_b = this.advancedOptions) === null || _b === void 0 ? void 0 : _b.keepFocusAfterAction) && this.formTextArea && !preventFocusAfter) {
|
|
29581
29585
|
this.formTextArea.setFocus();
|
|
29582
29586
|
}
|
|
29583
|
-
if (((
|
|
29587
|
+
if (((_c = this.advancedOptions) === null || _c === void 0 ? void 0 : _c.blurAfterAction) && this.formTextArea) {
|
|
29584
29588
|
this.formTextArea.setBlur();
|
|
29585
29589
|
}
|
|
29586
29590
|
}
|
|
@@ -733,10 +733,14 @@ export class YooInputBarComponent {
|
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
735
|
async onActionClick(preventFocusAfter = false) {
|
|
736
|
-
var _a, _b;
|
|
736
|
+
var _a, _b, _c;
|
|
737
737
|
this.onVibrate();
|
|
738
|
-
|
|
739
|
-
|
|
738
|
+
let text = this.value;
|
|
739
|
+
if (this.formTextArea) {
|
|
740
|
+
text = await ((_a = this.formTextArea) === null || _a === void 0 ? void 0 : _a.getText()) || text;
|
|
741
|
+
}
|
|
742
|
+
if (this.hasTextInside || (text && text !== '')) {
|
|
743
|
+
const safeContent = await sanitizeHTML(text);
|
|
740
744
|
this.sendText.emit(safeContent);
|
|
741
745
|
this.value = null;
|
|
742
746
|
if (this.formTextArea) {
|
|
@@ -751,10 +755,10 @@ export class YooInputBarComponent {
|
|
|
751
755
|
else {
|
|
752
756
|
this.onImportPhotoFromLibrary();
|
|
753
757
|
}
|
|
754
|
-
if (((
|
|
758
|
+
if (((_b = this.advancedOptions) === null || _b === void 0 ? void 0 : _b.keepFocusAfterAction) && this.formTextArea && !preventFocusAfter) {
|
|
755
759
|
this.formTextArea.setFocus();
|
|
756
760
|
}
|
|
757
|
-
if (((
|
|
761
|
+
if (((_c = this.advancedOptions) === null || _c === void 0 ? void 0 : _c.blurAfterAction) && this.formTextArea) {
|
|
758
762
|
this.formTextArea.setBlur();
|
|
759
763
|
}
|
|
760
764
|
}
|
|
@@ -95,7 +95,7 @@ export class YooFormMissingWordComponent {
|
|
|
95
95
|
this.initGame();
|
|
96
96
|
}
|
|
97
97
|
showWarning() {
|
|
98
|
-
var _a;
|
|
98
|
+
var _a, _b, _c;
|
|
99
99
|
const hasDuplicateValues = hasDuplicates(this.values);
|
|
100
100
|
if (hasDuplicateValues) {
|
|
101
101
|
const duplicateValue = getDuplicatedValue(this.values);
|
|
@@ -104,21 +104,16 @@ export class YooFormMissingWordComponent {
|
|
|
104
104
|
this.sentence.replace(`[[${duplicateValueIndex}]]`, '');
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const missingValues = !((_a = this.answer) === null || _a === void 0 ? void 0 : _a.length) && !!((_b = this.values) === null || _b === void 0 ? void 0 : _b.length);
|
|
108
|
+
const newValuesLength = (_c = this.values) === null || _c === void 0 ? void 0 : _c.map((v) => !isValueATranslationKey(v) && v.length);
|
|
108
109
|
const hasTooLongValues = newValuesLength === null || newValuesLength === void 0 ? void 0 : newValuesLength.some((n) => n > MAX_TAGS_CHARACTERS);
|
|
109
|
-
const bannerMessage = hasTooLongValues ? 'MAXCHARACTERSREACHEDFORVALUES' : hasDuplicateValues ? 'NODUPLICATEVALUES' : '';
|
|
110
|
-
const showBanner = hasDuplicateValues || hasTooLongValues;
|
|
110
|
+
const bannerMessage = hasTooLongValues ? 'MAXCHARACTERSREACHEDFORVALUES' : hasDuplicateValues ? 'NODUPLICATEVALUES' : missingValues ? 'NOMISSINGVALUES' : '';
|
|
111
|
+
const showBanner = hasDuplicateValues || hasTooLongValues || missingValues;
|
|
111
112
|
showWarningAlert(this.host, showBanner, bannerMessage);
|
|
112
113
|
}
|
|
113
114
|
initGame() {
|
|
114
|
-
var _a;
|
|
115
115
|
this.tags = initTags(this.tagConfig, this.zonesConfig);
|
|
116
|
-
|
|
117
|
-
showWarningAlert(this.host, true, 'NOMISSINGVALUES');
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
this.showWarning();
|
|
121
|
-
}
|
|
116
|
+
this.showWarning();
|
|
122
117
|
}
|
|
123
118
|
getColorTag(tagValue) {
|
|
124
119
|
if (this.readonly && checkArray(this.value) && this.answer) {
|
|
@@ -123,13 +123,7 @@ export class YooFormSwipeCardsComponent {
|
|
|
123
123
|
if (!this.showInstructionView) {
|
|
124
124
|
this.initDraggable();
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
if (showCategoriesWarning) {
|
|
128
|
-
showWarningAlert(this.host, true, 'NOTFULFILLEDCATEGORIES');
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
this.showValuesWarning();
|
|
132
|
-
}
|
|
126
|
+
this.showWarnings();
|
|
133
127
|
}
|
|
134
128
|
updateCardsData() {
|
|
135
129
|
if (this.hasDataChanged) {
|
|
@@ -156,10 +150,14 @@ export class YooFormSwipeCardsComponent {
|
|
|
156
150
|
return (_a = this.cardsElements) === null || _a === void 0 ? void 0 : _a.find((cardElement) => (cardElement === null || cardElement === void 0 ? void 0 : cardElement.id) === id);
|
|
157
151
|
}
|
|
158
152
|
spyOnValuesChanged() {
|
|
159
|
-
this.
|
|
153
|
+
this.showWarnings();
|
|
160
154
|
}
|
|
161
|
-
|
|
162
|
-
|
|
155
|
+
showWarnings() {
|
|
156
|
+
var _a;
|
|
157
|
+
if (((_a = this.values) === null || _a === void 0 ? void 0 : _a.length) && this.livePreview && !this.hasTwoCategories) {
|
|
158
|
+
showWarningAlert(this.host, true, 'NOTFULFILLEDCATEGORIES');
|
|
159
|
+
}
|
|
160
|
+
else if (this.hasTwoCategories && this.livePreview) {
|
|
163
161
|
this.hasEmptyValues = !!this.numberEmptyItems.text || !!this.numberEmptyItems.image;
|
|
164
162
|
this.hasDuplicatesValues = this.hasText && hasDuplicates(this.values);
|
|
165
163
|
let showAlert = this.hasEmptyValues || this.hasDuplicatesValues;
|
|
@@ -57,6 +57,10 @@ export class YooFormTextAreaComponent {
|
|
|
57
57
|
}
|
|
58
58
|
return false;
|
|
59
59
|
}
|
|
60
|
+
async getText() {
|
|
61
|
+
var _a;
|
|
62
|
+
return (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
63
|
+
}
|
|
60
64
|
async updateValueAndFocus(value, insert) {
|
|
61
65
|
if (insert) {
|
|
62
66
|
const { insertElement, offset } = getInsertElementProp(this.host, this.inputEl);
|
|
@@ -173,7 +177,8 @@ export class YooFormTextAreaComponent {
|
|
|
173
177
|
this.updateSegmentsCountDebounce();
|
|
174
178
|
}
|
|
175
179
|
onParagraphInputChanged(ev) {
|
|
176
|
-
|
|
180
|
+
var _a;
|
|
181
|
+
if ((ev === null || ev === void 0 ? void 0 : ev.inputType) === 'insertCompositionText' && ((_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.innerText.length) > 1) {
|
|
177
182
|
return;
|
|
178
183
|
}
|
|
179
184
|
// Clean up random BR and FONT injected
|
|
@@ -1175,6 +1180,22 @@ export class YooFormTextAreaComponent {
|
|
|
1175
1180
|
"tags": []
|
|
1176
1181
|
}
|
|
1177
1182
|
},
|
|
1183
|
+
"getText": {
|
|
1184
|
+
"complexType": {
|
|
1185
|
+
"signature": "() => Promise<string>",
|
|
1186
|
+
"parameters": [],
|
|
1187
|
+
"references": {
|
|
1188
|
+
"Promise": {
|
|
1189
|
+
"location": "global"
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
"return": "Promise<string>"
|
|
1193
|
+
},
|
|
1194
|
+
"docs": {
|
|
1195
|
+
"text": "",
|
|
1196
|
+
"tags": []
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1178
1199
|
"updateValueAndFocus": {
|
|
1179
1200
|
"complexType": {
|
|
1180
1201
|
"signature": "(value: string, insert?: boolean) => Promise<void>",
|
|
@@ -64,7 +64,6 @@ export class YooAgGridComponent {
|
|
|
64
64
|
cellRendererParams: c.cellRendererParams ? { ...c.cellRendererParams, innerRenderer: getRenderer(c.cellRendererParams.innerRenderer) } : null,
|
|
65
65
|
cellEditor: c.editable ? (isString(c.cellEditor) || !c.cellEditor ? getEditor(c.cellEditor) : c.cellEditor) : null,
|
|
66
66
|
comparator: c.comparator ? getComparator(c.comparator) : null
|
|
67
|
-
// headerComponent: isString(c.headerComponent) ? getHeaderComponent(c.headerComponent as TGridColumnHeader) : null
|
|
68
67
|
};
|
|
69
68
|
if (c.type === 'rightAligned') {
|
|
70
69
|
finalColDef.headerClass = 'ag-right-aligned-header';
|
|
@@ -867,7 +867,6 @@ export class YooGridComponent {
|
|
|
867
867
|
this.setFormFieldValue();
|
|
868
868
|
},
|
|
869
869
|
onFirstDataRendered: () => {
|
|
870
|
-
// params
|
|
871
870
|
setTimeout(() => {
|
|
872
871
|
if (this.sizeColumnsToFit && !this.disconnected) {
|
|
873
872
|
this.gridApi.sizeColumnsToFit();
|
|
@@ -882,7 +881,9 @@ export class YooGridComponent {
|
|
|
882
881
|
return [];
|
|
883
882
|
}
|
|
884
883
|
},
|
|
885
|
-
isServerSideGroup: this.isTree() ? (item) =>
|
|
884
|
+
isServerSideGroup: this.isTree() ? (item) => {
|
|
885
|
+
return !(item === null || item === void 0 ? void 0 : item.isLeaf);
|
|
886
|
+
} : null,
|
|
886
887
|
getServerSideGroupKey: this.isTree()
|
|
887
888
|
? (dataItem) => {
|
|
888
889
|
return dataItem._id;
|
|
@@ -892,7 +893,6 @@ export class YooGridComponent {
|
|
|
892
893
|
if (this.isTree()) {
|
|
893
894
|
this.finalGridConfig.groupDisplayType = 'custom';
|
|
894
895
|
this.finalGridConfig.serverSideStoreType = 'full';
|
|
895
|
-
// this.finalGridConfig.groupSuppressAutoColumn = true;
|
|
896
896
|
}
|
|
897
897
|
this.finalGridConfig.rowModelType = this.finalGridConfig.rowModelType || 'serverSide';
|
|
898
898
|
if (this.gridDomLayout) {
|
|
@@ -41,10 +41,11 @@ export class YooChatComponent {
|
|
|
41
41
|
this.onToggleView();
|
|
42
42
|
}
|
|
43
43
|
onInputFocused() {
|
|
44
|
+
var _a;
|
|
44
45
|
this.inputFocused = true;
|
|
45
46
|
this.scrollBottomOnKeyboradShown = true;
|
|
46
47
|
!isNativeMobile() && (this.oldestMostRecentMessageToken = null);
|
|
47
|
-
this.scroll.scrollToBottom(250);
|
|
48
|
+
(_a = this.scroll) === null || _a === void 0 ? void 0 : _a.scrollToBottom(250);
|
|
48
49
|
}
|
|
49
50
|
onMediaLoading(event) {
|
|
50
51
|
this.showLoader = event === null || event === void 0 ? void 0 : event.detail;
|
|
@@ -30,7 +30,7 @@ export async function showWarningAlert(container, showBanner = true, messageKey
|
|
|
30
30
|
backgroundColor: `var(--${backgroundColor})`,
|
|
31
31
|
height: 'auto',
|
|
32
32
|
opacity: '1',
|
|
33
|
-
padding: `${
|
|
33
|
+
padding: `${showBanner ? 'var(--spacing-08)' : '0'}`
|
|
34
34
|
};
|
|
35
35
|
const content = bannerElement.querySelector('p[slot="content"]');
|
|
36
36
|
content.innerHTML = translate(messageKey);
|