@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.
Files changed (62) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/{draggable-tags-helpers-bf7e3a6b.js → draggable-tags-helpers-55561d23.js} +1 -1
  3. package/dist/cjs/{index-5cceed71.js → index-4d7aa662.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/yoo-ag-grid.cjs.entry.js +1687 -1257
  6. package/dist/cjs/yoo-chat.cjs.entry.js +2 -1
  7. package/dist/cjs/yoo-form-categorize-words.cjs.entry.js +2 -2
  8. package/dist/cjs/yoo-form-choice.cjs.entry.js +1 -1
  9. package/dist/cjs/yoo-form-connect.cjs.entry.js +1 -1
  10. package/dist/cjs/yoo-form-image-tagging.cjs.entry.js +2 -2
  11. package/dist/cjs/yoo-form-missing-word.cjs.entry.js +8 -13
  12. package/dist/cjs/yoo-form-phone-number.cjs.entry.js +509 -513
  13. package/dist/cjs/yoo-form-ranking.cjs.entry.js +1 -1
  14. package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +9 -11
  15. package/dist/cjs/yoo-form-text-area.cjs.entry.js +6 -1
  16. package/dist/cjs/yoo-grid.cjs.entry.js +3 -3
  17. package/dist/cjs/yoo-input-bar.cjs.entry.js +9 -5
  18. package/dist/collection/components/3.organisms/input-bar/input-bar.js +9 -5
  19. package/dist/collection/components/form/form-missing-word/form-missing-word.js +6 -11
  20. package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.js +8 -10
  21. package/dist/collection/components/form/form-text-area/form-text-area.js +22 -1
  22. package/dist/collection/components/grid/ag-grid/ag-grid.js +0 -1
  23. package/dist/collection/components/grid/grid/grid.js +3 -3
  24. package/dist/collection/feature-communicate/chat/chat/chat.js +2 -1
  25. package/dist/collection/utils/helpers/draggable-tags-helpers.js +1 -1
  26. package/dist/design-system/design-system.esm.js +1 -1
  27. package/dist/{esm/draggable-tags-helpers-27844807.js → design-system/draggable-tags-helpers-cf51adc0.js} +1 -1
  28. package/dist/{esm/index-0b91e49f.js → design-system/index-0904d288.js} +1 -1
  29. package/dist/design-system/yoo-ag-grid.entry.js +1687 -1257
  30. package/dist/design-system/yoo-chat.entry.js +2 -1
  31. package/dist/design-system/yoo-form-categorize-words.entry.js +2 -2
  32. package/dist/design-system/yoo-form-choice.entry.js +1 -1
  33. package/dist/design-system/yoo-form-connect.entry.js +1 -1
  34. package/dist/design-system/yoo-form-image-tagging.entry.js +2 -2
  35. package/dist/design-system/yoo-form-missing-word.entry.js +8 -13
  36. package/dist/design-system/yoo-form-phone-number.entry.js +509 -513
  37. package/dist/design-system/yoo-form-ranking.entry.js +1 -1
  38. package/dist/design-system/yoo-form-swipe-cards.entry.js +9 -11
  39. package/dist/design-system/yoo-form-text-area.entry.js +6 -1
  40. package/dist/design-system/yoo-grid.entry.js +3 -3
  41. package/dist/design-system/yoo-input-bar.entry.js +9 -5
  42. package/dist/esm/design-system.js +1 -1
  43. package/dist/{design-system/draggable-tags-helpers-27844807.js → esm/draggable-tags-helpers-cf51adc0.js} +1 -1
  44. package/dist/{design-system/index-0b91e49f.js → esm/index-0904d288.js} +1 -1
  45. package/dist/esm/loader.js +1 -1
  46. package/dist/esm/yoo-ag-grid.entry.js +1687 -1257
  47. package/dist/esm/yoo-chat.entry.js +2 -1
  48. package/dist/esm/yoo-form-categorize-words.entry.js +2 -2
  49. package/dist/esm/yoo-form-choice.entry.js +1 -1
  50. package/dist/esm/yoo-form-connect.entry.js +1 -1
  51. package/dist/esm/yoo-form-image-tagging.entry.js +2 -2
  52. package/dist/esm/yoo-form-missing-word.entry.js +8 -13
  53. package/dist/esm/yoo-form-phone-number.entry.js +509 -513
  54. package/dist/esm/yoo-form-ranking.entry.js +1 -1
  55. package/dist/esm/yoo-form-swipe-cards.entry.js +9 -11
  56. package/dist/esm/yoo-form-text-area.entry.js +6 -1
  57. package/dist/esm/yoo-grid.entry.js +3 -3
  58. package/dist/esm/yoo-input-bar.entry.js +9 -5
  59. package/dist/types/components/form/form-swipe-cards/form-swipe-cards.d.ts +1 -1
  60. package/dist/types/components/form/form-text-area/form-text-area.d.ts +1 -0
  61. package/dist/types/components.d.ts +1 -0
  62. package/package.json +1 -1
@@ -58,10 +58,11 @@ const YooChatComponent = class {
58
58
  this.onToggleView();
59
59
  }
60
60
  onInputFocused() {
61
+ var _a;
61
62
  this.inputFocused = true;
62
63
  this.scrollBottomOnKeyboradShown = true;
63
64
  !isNativeMobile() && (this.oldestMostRecentMessageToken = null);
64
- this.scroll.scrollToBottom(250);
65
+ (_a = this.scroll) === null || _a === void 0 ? void 0 : _a.scrollToBottom(250);
65
66
  }
66
67
  onMediaLoading(event) {
67
68
  this.showLoader = event === null || event === void 0 ? void 0 : event.detail;
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, i as createEvent, h, e as Host, g as getElement } from './index-019c1b1a.js';
2
2
  import { T as translateMulti } from './index-0ca062eb.js';
3
3
  import { x as isEqual } from './lodash-494e728c.js';
4
- import { i as initTags } from './index-0b91e49f.js';
4
+ import { i as initTags } from './index-0904d288.js';
5
5
  import { b as getAppContext } from './common-helpers-a2613dd7.js';
6
- import { g as getDeletedValues, s as showWarningAlert, h as hasDuplicates } from './draggable-tags-helpers-27844807.js';
6
+ import { g as getDeletedValues, s as showWarningAlert, h as hasDuplicates } from './draggable-tags-helpers-cf51adc0.js';
7
7
  import { a as setValueAndValidateInput } from './form-input-helpers-93ddc234.js';
8
8
  import './_commonjsHelpers-f4d11124.js';
9
9
  import './index-93c86f26.js';
@@ -3,7 +3,7 @@ import { M as MessageType } from './index-93c86f26.js';
3
3
  import { R as isNullOrUndefined, T as translateMulti, t as translate, i as isChromatic } from './index-0ca062eb.js';
4
4
  import { x as isEqual, c as compact, P as shuffle, a0 as findIndex, p as isString } from './lodash-494e728c.js';
5
5
  import { s as setColorSVG, c as showSlidesMedia } from './common-helpers-a2613dd7.js';
6
- import { h as hasDuplicates, s as showWarningAlert } from './draggable-tags-helpers-27844807.js';
6
+ import { h as hasDuplicates, s as showWarningAlert } from './draggable-tags-helpers-cf51adc0.js';
7
7
  import { s as setValidator, a as setValueAndValidateInput } from './form-input-helpers-93ddc234.js';
8
8
  import './_commonjsHelpers-f4d11124.js';
9
9
 
@@ -2,7 +2,7 @@ import { r as registerInstance, i as createEvent, h, e as Host, g as getElement
2
2
  import { aI as getUUID, aK as gsapTo, aJ as Draggable, T as translateMulti, aN as isImageUrl } from './index-0ca062eb.js';
3
3
  import { x as isEqual, P as shuffle, Q as difference } from './lodash-494e728c.js';
4
4
  import { b as getAppContext } from './common-helpers-a2613dd7.js';
5
- import { s as showWarningAlert } from './draggable-tags-helpers-27844807.js';
5
+ import { s as showWarningAlert } 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';
@@ -2,10 +2,10 @@ import { r as registerInstance, i as createEvent, f as forceUpdate, h, e as Host
2
2
  import { T as translateMulti, ba as getMedia, t as translate } from './index-0ca062eb.js';
3
3
  import { x as isEqual } from './lodash-494e728c.js';
4
4
  import './index-df177d50.js';
5
- import { i as initTags } from './index-0b91e49f.js';
5
+ import { i as initTags } from './index-0904d288.js';
6
6
  import { g as getPercentPositionStyle } from './annotations-helpers-06bdd868.js';
7
7
  import { b as getAppContext } from './common-helpers-a2613dd7.js';
8
- import { s as showWarningAlert, h as hasDuplicates, c as checkArray, f as filterDuplicateEntries } from './draggable-tags-helpers-27844807.js';
8
+ import { s as showWarningAlert, h as hasDuplicates, c as checkArray, f as filterDuplicateEntries } from './draggable-tags-helpers-cf51adc0.js';
9
9
  import { a as setValueAndValidateInput } from './form-input-helpers-93ddc234.js';
10
10
  import { g as getFromOfflineStorage } from './localForage-d380835e.js';
11
11
  import './_commonjsHelpers-f4d11124.js';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, i as createEvent, h, e as Host, g as getElement } from './index-019c1b1a.js';
2
2
  import { bv as formatTranslation, T as translateMulti, b6 as isValueATranslationKey, bw as MAX_TAGS_CHARACTERS, t as translate } from './index-0ca062eb.js';
3
3
  import { x as isEqual } from './lodash-494e728c.js';
4
- import { i as initTags } from './index-0b91e49f.js';
5
- import { s as showWarningAlert, c as checkArray, h as hasDuplicates, b as getDuplicatedValue } from './draggable-tags-helpers-27844807.js';
4
+ import { i as initTags } from './index-0904d288.js';
5
+ import { s as showWarningAlert, c as checkArray, h as hasDuplicates, b as getDuplicatedValue } 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';
@@ -105,7 +105,7 @@ const YooFormMissingWordComponent = class {
105
105
  this.initGame();
106
106
  }
107
107
  showWarning() {
108
- var _a;
108
+ var _a, _b, _c;
109
109
  const hasDuplicateValues = hasDuplicates(this.values);
110
110
  if (hasDuplicateValues) {
111
111
  const duplicateValue = getDuplicatedValue(this.values);
@@ -114,21 +114,16 @@ const YooFormMissingWordComponent = class {
114
114
  this.sentence.replace(`[[${duplicateValueIndex}]]`, '');
115
115
  }
116
116
  }
117
- const newValuesLength = (_a = this.values) === null || _a === void 0 ? void 0 : _a.map((v) => !isValueATranslationKey(v) && v.length);
117
+ const missingValues = !((_a = this.answer) === null || _a === void 0 ? void 0 : _a.length) && !!((_b = this.values) === null || _b === void 0 ? void 0 : _b.length);
118
+ const newValuesLength = (_c = this.values) === null || _c === void 0 ? void 0 : _c.map((v) => !isValueATranslationKey(v) && v.length);
118
119
  const hasTooLongValues = newValuesLength === null || newValuesLength === void 0 ? void 0 : newValuesLength.some((n) => n > MAX_TAGS_CHARACTERS);
119
- const bannerMessage = hasTooLongValues ? 'MAXCHARACTERSREACHEDFORVALUES' : hasDuplicateValues ? 'NODUPLICATEVALUES' : '';
120
- const showBanner = hasDuplicateValues || hasTooLongValues;
120
+ const bannerMessage = hasTooLongValues ? 'MAXCHARACTERSREACHEDFORVALUES' : hasDuplicateValues ? 'NODUPLICATEVALUES' : missingValues ? 'NOMISSINGVALUES' : '';
121
+ const showBanner = hasDuplicateValues || hasTooLongValues || missingValues;
121
122
  showWarningAlert(this.host, showBanner, bannerMessage);
122
123
  }
123
124
  initGame() {
124
- var _a;
125
125
  this.tags = initTags(this.tagConfig, this.zonesConfig);
126
- if (!((_a = this.answer) === null || _a === void 0 ? void 0 : _a.length)) {
127
- showWarningAlert(this.host, true, 'NOMISSINGVALUES');
128
- }
129
- else {
130
- this.showWarning();
131
- }
126
+ this.showWarning();
132
127
  }
133
128
  getColorTag(tagValue) {
134
129
  if (this.readonly && checkArray(this.value) && this.answer) {