@yoobic/yobi 8.6.63 → 8.6.64
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.
@@ -3817,7 +3817,7 @@ const YooFormDynamicComponent = class {
|
|
3817
3817
|
};
|
3818
3818
|
break;
|
3819
3819
|
case index.FormFieldType.textarea:
|
3820
|
-
if (
|
3820
|
+
if (field.useRichText || ((field.language === 'html' || field.language === 'html-simple') && (index$1.isWeb(this.host) || readonly))) {
|
3821
3821
|
TagType = 'yoo-form-text-editor';
|
3822
3822
|
}
|
3823
3823
|
else {
|
@@ -3846,7 +3846,11 @@ const YooFormDynamicComponent = class {
|
|
3846
3846
|
displaySegmentsCount: field.displaySegmentsCount,
|
3847
3847
|
mentionUsers: field.allowMention ? field.mentionUsers : [],
|
3848
3848
|
translations: this.shouldUseTranslations() ? this.translations : null,
|
3849
|
-
onInputResize: () =>
|
3849
|
+
onInputResize: (event) => {
|
3850
|
+
if (event.target === this.focusedField) {
|
3851
|
+
this.scrollToField(this.focusedField, true, this.keyboardHeight);
|
3852
|
+
}
|
3853
|
+
},
|
3850
3854
|
onTranslationValueUpdated: (ev) => this.onTranslationValueUpdated(ev),
|
3851
3855
|
onFetchData: field.allowMention ? (ev) => this.onFetchData(field, ev) : null
|
3852
3856
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FormFieldType, IncentivePartType, QUIZZ_COMPONENTS_FORM_FIELDS } from '@shared/interfaces';
|
2
|
-
import { answerIsValid, cancelRequestInterval, closeModal, debounce, disableKeyboardResize, dispatchCustomEvent, enableKeyboardResize, evalInContext, extractTextFromStringHTML, findField, findParent, getConfidenceDescriptionKey, getConfidenceEmoji, getCssColor, getDistance, getFieldReplacement, getFieldValue, getModalAnimation, getSession, hasValue, isAndroid, isAnimationsDisabled, isChromeForIos, isConfidenceAssessment, isContentOnly, isFieldWithDirectValue, isFieldWithNoValue, isIonic, isIOS, isIphoneX, isKeyboardResizeModeInactive, isNativeMobile, isPhotoOrMultiPhotosField, isQuiz, isSafari, isSamsung,
|
2
|
+
import { answerIsValid, cancelRequestInterval, closeModal, debounce, disableKeyboardResize, dispatchCustomEvent, enableKeyboardResize, evalInContext, extractTextFromStringHTML, findField, findParent, getConfidenceDescriptionKey, getConfidenceEmoji, getCssColor, getDistance, getFieldReplacement, getFieldValue, getModalAnimation, getSession, hasValue, isAndroid, isAnimationsDisabled, isChromeForIos, isConfidenceAssessment, isContentOnly, isFieldWithDirectValue, isFieldWithNoValue, isIonic, isIOS, isIphoneX, isKeyboardResizeModeInactive, isNativeMobile, isPhotoOrMultiPhotosField, isQuiz, isSafari, isSamsung, isTimedQuiz, isTranslationKey, isValueATranslationKey, isVisible, isWeb, pipes, requestInterval, sanitizeInputValue, showContextMenu, showModal, showToast, slenderizeObject, translate, translateMulti, updateDatasetFilters } from '@shared/utils';
|
3
3
|
import { forceUpdate, h, Host } from '@stencil/core';
|
4
4
|
import { getMissionStatusIconName } from '@yobi/feature-operate/campaign/helpers/operation-helpers';
|
5
5
|
import { getActiveElementShadow, getAppContext, lockSwipes, querySelectorAllDeep, querySelectorDeep } from '@yobi/utils/helpers/common-helpers';
|
@@ -3606,7 +3606,7 @@ export class YooFormDynamicComponent {
|
|
3606
3606
|
};
|
3607
3607
|
break;
|
3608
3608
|
case FormFieldType.textarea:
|
3609
|
-
if (
|
3609
|
+
if (field.useRichText || ((field.language === 'html' || field.language === 'html-simple') && (isWeb(this.host) || readonly))) {
|
3610
3610
|
TagType = 'yoo-form-text-editor';
|
3611
3611
|
}
|
3612
3612
|
else {
|
@@ -3635,7 +3635,11 @@ export class YooFormDynamicComponent {
|
|
3635
3635
|
displaySegmentsCount: field.displaySegmentsCount,
|
3636
3636
|
mentionUsers: field.allowMention ? field.mentionUsers : [],
|
3637
3637
|
translations: this.shouldUseTranslations() ? this.translations : null,
|
3638
|
-
onInputResize: () =>
|
3638
|
+
onInputResize: (event) => {
|
3639
|
+
if (event.target === this.focusedField) {
|
3640
|
+
this.scrollToField(this.focusedField, true, this.keyboardHeight);
|
3641
|
+
}
|
3642
|
+
},
|
3639
3643
|
onTranslationValueUpdated: (ev) => this.onTranslationValueUpdated(ev),
|
3640
3644
|
onFetchData: field.allowMention ? (ev) => this.onFetchData(field, ev) : null
|
3641
3645
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, f as forceUpdate, h, e as Host, g as getElement } from './index-2cf5b950.js';
|
2
2
|
import { b as FormFieldType, a1 as QUIZZ_COMPONENTS_FORM_FIELDS, o as IncentivePartType } from './index-98771488.js';
|
3
|
-
import { y as isWeb, t as translate, b as isNativeMobile, c as isAndroid, N as findParent, aT as getFieldValue, cK as isQuiz, eo as isTimedQuiz, ep as isConfidenceAssessment, bl as showToast, bf as findField, a6 as getSession, z as debounce, dA as isKeyboardResizeModeInactive, ag as disableKeyboardResize, af as enableKeyboardResize, Z as cancelRequestInterval, aX as slenderizeObject, W as requestInterval, eq as isVisible, er as hasValue, aF as showContextMenu, x as showModal, a0 as translateMulti, H as getCssColor, E as isIOS, es as getDistance, ao as dispatchCustomEvent, et as isFieldWithDirectValue, eu as isFieldWithNoValue, ev as updateDatasetFilters, de as isAnimationsDisabled, cH as answerIsValid, ew as getConfidenceEmoji, cG as getConfidenceDescriptionKey, D as isIphoneX, cE as isContentOnly, aO as evalInContext, df as isTranslationKey, b3 as extractTextFromStringHTML, ex as sanitizeInputValue, p as pipes,
|
3
|
+
import { y as isWeb, t as translate, b as isNativeMobile, c as isAndroid, N as findParent, aT as getFieldValue, cK as isQuiz, eo as isTimedQuiz, ep as isConfidenceAssessment, bl as showToast, bf as findField, a6 as getSession, z as debounce, dA as isKeyboardResizeModeInactive, ag as disableKeyboardResize, af as enableKeyboardResize, Z as cancelRequestInterval, aX as slenderizeObject, W as requestInterval, eq as isVisible, er as hasValue, aF as showContextMenu, x as showModal, a0 as translateMulti, H as getCssColor, E as isIOS, es as getDistance, ao as dispatchCustomEvent, et as isFieldWithDirectValue, eu as isFieldWithNoValue, ev as updateDatasetFilters, de as isAnimationsDisabled, cH as answerIsValid, ew as getConfidenceEmoji, cG as getConfidenceDescriptionKey, D as isIphoneX, cE as isContentOnly, aO as evalInContext, df as isTranslationKey, b3 as extractTextFromStringHTML, ex as sanitizeInputValue, p as pipes, aU as getFieldReplacement, ey as isSamsung, cA as isIonic, j as closeModal, w as getModalAnimation, ez as isPhotoOrMultiPhotosField, bw as isValueATranslationKey, m as isSafari, eA as isChromeForIos } from './index-e7e87cd9.js';
|
4
4
|
import { a as getMissionStatusIconName } from './operation-helpers-08868a68.js';
|
5
5
|
import { j as lockSwipes, q as querySelectorDeep, c as querySelectorAllDeep, b as getActiveElementShadow, g as getAppContext } from './common-helpers-ffdd328d.js';
|
6
6
|
import { b as isRequired, c as getTypeValidation, d as isReadonly, s as setFieldData, g as getExtraDataFieldName, S as SELECTED_RADIO_BUTTON_SUFFIX, u as updateFormulas, e as getDynamicProperty, f as isDisabled, h as isCreationAllowed, j as isEditionAllowed, k as generateLabel } from './form-helpers-6147506d.js';
|
@@ -3813,7 +3813,7 @@ const YooFormDynamicComponent = class {
|
|
3813
3813
|
};
|
3814
3814
|
break;
|
3815
3815
|
case FormFieldType.textarea:
|
3816
|
-
if (
|
3816
|
+
if (field.useRichText || ((field.language === 'html' || field.language === 'html-simple') && (isWeb(this.host) || readonly))) {
|
3817
3817
|
TagType = 'yoo-form-text-editor';
|
3818
3818
|
}
|
3819
3819
|
else {
|
@@ -3842,7 +3842,11 @@ const YooFormDynamicComponent = class {
|
|
3842
3842
|
displaySegmentsCount: field.displaySegmentsCount,
|
3843
3843
|
mentionUsers: field.allowMention ? field.mentionUsers : [],
|
3844
3844
|
translations: this.shouldUseTranslations() ? this.translations : null,
|
3845
|
-
onInputResize: () =>
|
3845
|
+
onInputResize: (event) => {
|
3846
|
+
if (event.target === this.focusedField) {
|
3847
|
+
this.scrollToField(this.focusedField, true, this.keyboardHeight);
|
3848
|
+
}
|
3849
|
+
},
|
3846
3850
|
onTranslationValueUpdated: (ev) => this.onTranslationValueUpdated(ev),
|
3847
3851
|
onFetchData: field.allowMention ? (ev) => this.onFetchData(field, ev) : null
|
3848
3852
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, f as forceUpdate, h, e as Host, g as getElement } from './index-2cf5b950.js';
|
2
2
|
import { b as FormFieldType, a1 as QUIZZ_COMPONENTS_FORM_FIELDS, o as IncentivePartType } from './index-98771488.js';
|
3
|
-
import { y as isWeb, t as translate, b as isNativeMobile, c as isAndroid, N as findParent, aT as getFieldValue, cK as isQuiz, eo as isTimedQuiz, ep as isConfidenceAssessment, bl as showToast, bf as findField, a6 as getSession, z as debounce, dA as isKeyboardResizeModeInactive, ag as disableKeyboardResize, af as enableKeyboardResize, Z as cancelRequestInterval, aX as slenderizeObject, W as requestInterval, eq as isVisible, er as hasValue, aF as showContextMenu, x as showModal, a0 as translateMulti, H as getCssColor, E as isIOS, es as getDistance, ao as dispatchCustomEvent, et as isFieldWithDirectValue, eu as isFieldWithNoValue, ev as updateDatasetFilters, de as isAnimationsDisabled, cH as answerIsValid, ew as getConfidenceEmoji, cG as getConfidenceDescriptionKey, D as isIphoneX, cE as isContentOnly, aO as evalInContext, df as isTranslationKey, b3 as extractTextFromStringHTML, ex as sanitizeInputValue, p as pipes,
|
3
|
+
import { y as isWeb, t as translate, b as isNativeMobile, c as isAndroid, N as findParent, aT as getFieldValue, cK as isQuiz, eo as isTimedQuiz, ep as isConfidenceAssessment, bl as showToast, bf as findField, a6 as getSession, z as debounce, dA as isKeyboardResizeModeInactive, ag as disableKeyboardResize, af as enableKeyboardResize, Z as cancelRequestInterval, aX as slenderizeObject, W as requestInterval, eq as isVisible, er as hasValue, aF as showContextMenu, x as showModal, a0 as translateMulti, H as getCssColor, E as isIOS, es as getDistance, ao as dispatchCustomEvent, et as isFieldWithDirectValue, eu as isFieldWithNoValue, ev as updateDatasetFilters, de as isAnimationsDisabled, cH as answerIsValid, ew as getConfidenceEmoji, cG as getConfidenceDescriptionKey, D as isIphoneX, cE as isContentOnly, aO as evalInContext, df as isTranslationKey, b3 as extractTextFromStringHTML, ex as sanitizeInputValue, p as pipes, aU as getFieldReplacement, ey as isSamsung, cA as isIonic, j as closeModal, w as getModalAnimation, ez as isPhotoOrMultiPhotosField, bw as isValueATranslationKey, m as isSafari, eA as isChromeForIos } from './index-e7e87cd9.js';
|
4
4
|
import { a as getMissionStatusIconName } from './operation-helpers-08868a68.js';
|
5
5
|
import { j as lockSwipes, q as querySelectorDeep, c as querySelectorAllDeep, b as getActiveElementShadow, g as getAppContext } from './common-helpers-ffdd328d.js';
|
6
6
|
import { b as isRequired, c as getTypeValidation, d as isReadonly, s as setFieldData, g as getExtraDataFieldName, S as SELECTED_RADIO_BUTTON_SUFFIX, u as updateFormulas, e as getDynamicProperty, f as isDisabled, h as isCreationAllowed, j as isEditionAllowed, k as generateLabel } from './form-helpers-6147506d.js';
|
@@ -3813,7 +3813,7 @@ const YooFormDynamicComponent = class {
|
|
3813
3813
|
};
|
3814
3814
|
break;
|
3815
3815
|
case FormFieldType.textarea:
|
3816
|
-
if (
|
3816
|
+
if (field.useRichText || ((field.language === 'html' || field.language === 'html-simple') && (isWeb(this.host) || readonly))) {
|
3817
3817
|
TagType = 'yoo-form-text-editor';
|
3818
3818
|
}
|
3819
3819
|
else {
|
@@ -3842,7 +3842,11 @@ const YooFormDynamicComponent = class {
|
|
3842
3842
|
displaySegmentsCount: field.displaySegmentsCount,
|
3843
3843
|
mentionUsers: field.allowMention ? field.mentionUsers : [],
|
3844
3844
|
translations: this.shouldUseTranslations() ? this.translations : null,
|
3845
|
-
onInputResize: () =>
|
3845
|
+
onInputResize: (event) => {
|
3846
|
+
if (event.target === this.focusedField) {
|
3847
|
+
this.scrollToField(this.focusedField, true, this.keyboardHeight);
|
3848
|
+
}
|
3849
|
+
},
|
3846
3850
|
onTranslationValueUpdated: (ev) => this.onTranslationValueUpdated(ev),
|
3847
3851
|
onFetchData: field.allowMention ? (ev) => this.onFetchData(field, ev) : null
|
3848
3852
|
};
|