@yoobic/yobi 7.7.43 → 7.7.47
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/{index-2557ade6.js → index-806c612f.js} +5 -1
- package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +16 -4
- package/dist/cjs/yoo-form-choice_4.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-creator-block-expandable.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-creator-block-simple_4.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-creator-card_2.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-creator-field-selector_8.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-creator-translate-dialog.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-creator.cjs.entry.js +1 -1
- package/dist/collection/components/form/form-dynamic/form-dynamic.js +9 -3
- package/dist/collection/components/form/form-text-area/form-text-area.js +8 -2
- package/dist/collection/components/form-creator/helpers/index.js +5 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-c21e82e0.entry.js → p-30a6dc4d.entry.js} +1 -1
- package/dist/design-system/{p-e3cc14ba.entry.js → p-396b04dc.entry.js} +1 -1
- package/dist/design-system/{p-1527ca6a.entry.js → p-45eae154.entry.js} +1 -1
- package/dist/design-system/{p-8a8d23fa.entry.js → p-57ab0acc.entry.js} +1 -1
- package/dist/design-system/{p-31e9f24b.entry.js → p-5e443aa4.entry.js} +1 -1
- package/dist/design-system/{p-f870d5e8.entry.js → p-6a590df5.entry.js} +1 -1
- package/dist/design-system/{p-3379386f.entry.js → p-8aa33791.entry.js} +1 -1
- package/dist/design-system/{p-0002cfb8.entry.js → p-926e0f44.entry.js} +1 -1
- package/dist/design-system/{p-52475f52.js → p-f5100cc6.js} +1 -1
- package/dist/esm/{index-1cced256.js → index-55bea97c.js} +5 -1
- package/dist/esm/yoo-ag-grid_96.entry.js +16 -4
- package/dist/esm/yoo-form-choice_4.entry.js +1 -1
- package/dist/esm/yoo-form-creator-block-expandable.entry.js +1 -1
- package/dist/esm/yoo-form-creator-block-simple_4.entry.js +1 -1
- package/dist/esm/yoo-form-creator-card_2.entry.js +1 -1
- package/dist/esm/yoo-form-creator-field-selector_8.entry.js +1 -1
- package/dist/esm/yoo-form-creator-translate-dialog.entry.js +1 -1
- package/dist/esm/yoo-form-creator.entry.js +1 -1
- package/dist/types/components/form/form-dynamic/form-dynamic.d.ts +1 -0
- package/package.json +1 -1
|
@@ -945,7 +945,11 @@ function updateLocaleTranslation(updatedValue, translations, locale, translation
|
|
|
945
945
|
let updatedTranslation;
|
|
946
946
|
if (updatedValue && translationKey) {
|
|
947
947
|
translationKey = translationKey.replace(/%/g, '');
|
|
948
|
-
|
|
948
|
+
let selectedTranslationIndex = translations.findIndex((translation) => translationKey === translation.key);
|
|
949
|
+
if (selectedTranslationIndex === -1) {
|
|
950
|
+
translationKey = translationKey.replace(/(<([^>]+)>)/gi, '');
|
|
951
|
+
selectedTranslationIndex = translations.findIndex((translation) => translationKey === translation.key);
|
|
952
|
+
}
|
|
949
953
|
if (translations[selectedTranslationIndex] && translations[selectedTranslationIndex][locale]) {
|
|
950
954
|
if (translations[selectedTranslationIndex][locale] !== updatedValue) {
|
|
951
955
|
updatedTranslation = translations[selectedTranslationIndex];
|
|
@@ -124862,15 +124862,18 @@ const YooFormDynamicComponent = class {
|
|
|
124862
124862
|
this.secondaryFieldsState = Object.assign({}, this.secondaryFieldsState);
|
|
124863
124863
|
this.updateState();
|
|
124864
124864
|
}
|
|
124865
|
+
updateLMT(field) {
|
|
124866
|
+
if (this.suffix) {
|
|
124867
|
+
formHelpers.setFieldData(field, new Date(), this.currentData, '._lmt');
|
|
124868
|
+
}
|
|
124869
|
+
}
|
|
124865
124870
|
onFieldChanged(ev, field) {
|
|
124866
124871
|
ev.stopPropagation();
|
|
124867
124872
|
formHelpers.setFieldData(field, ev.detail, this.currentData, this.suffix);
|
|
124868
124873
|
if (rrule.isFunction(field.onChange)) {
|
|
124869
124874
|
field.onChange(ev.detail, this.currentData, field, this.slides, this);
|
|
124870
124875
|
}
|
|
124871
|
-
|
|
124872
|
-
formHelpers.setFieldData(field, new Date(), this.currentData, '._lmt');
|
|
124873
|
-
}
|
|
124876
|
+
this.updateLMT(field);
|
|
124874
124877
|
if (field.allowTime && !this.isLivePreview()) {
|
|
124875
124878
|
formHelpers.setFieldData(field, new Date(), this.currentData, '.time');
|
|
124876
124879
|
}
|
|
@@ -124892,6 +124895,7 @@ const YooFormDynamicComponent = class {
|
|
|
124892
124895
|
}
|
|
124893
124896
|
onFieldClear(field, updateState = true) {
|
|
124894
124897
|
formHelpers.setFieldData(field, null, this.currentData, this.suffix);
|
|
124898
|
+
this.updateLMT(field);
|
|
124895
124899
|
if (updateState) {
|
|
124896
124900
|
this.setDirty(true);
|
|
124897
124901
|
this.checkValidityAndEmitChanges();
|
|
@@ -124910,6 +124914,7 @@ const YooFormDynamicComponent = class {
|
|
|
124910
124914
|
onFieldCommented(ev, field) {
|
|
124911
124915
|
ev.stopPropagation();
|
|
124912
124916
|
formHelpers.setFieldData(field, ev.detail, this.currentData, '.comments');
|
|
124917
|
+
this.updateLMT(field);
|
|
124913
124918
|
const el = this.getFieldByCode(field.name);
|
|
124914
124919
|
if (el) {
|
|
124915
124920
|
const container = rrule.findParent(el, 'yoo-form-input-container');
|
|
@@ -124920,6 +124925,7 @@ const YooFormDynamicComponent = class {
|
|
|
124920
124925
|
onFieldEditTask(ev, field) {
|
|
124921
124926
|
ev.stopPropagation();
|
|
124922
124927
|
formHelpers.setFieldData(field, ev.detail, this.currentData, '.tasks');
|
|
124928
|
+
this.updateLMT(field);
|
|
124923
124929
|
this.checkValidityAndEmitChanges();
|
|
124924
124930
|
}
|
|
124925
124931
|
onFieldValidityChanged(ev, field) {
|
|
@@ -128797,7 +128803,13 @@ const YooFormTextAreaComponent = class {
|
|
|
128797
128803
|
];
|
|
128798
128804
|
}
|
|
128799
128805
|
renderTextArea() {
|
|
128800
|
-
return (index.h("textarea", { ref: (el) => (this.inputEl = el), value: this.value || '', onClick: (ev) =>
|
|
128806
|
+
return (index.h("textarea", { ref: (el) => (this.inputEl = el), value: this.value || '', onClick: (ev) => {
|
|
128807
|
+
if (rrule.isWeb() && rrule.isFirefox()) {
|
|
128808
|
+
this.inputEl.focus();
|
|
128809
|
+
this.onInputFocused('textarea');
|
|
128810
|
+
}
|
|
128811
|
+
ev.preventDefault();
|
|
128812
|
+
}, contenteditable: "true", placeholder: rrule.translate(this.placeholder), readonly: this.readonly, rows: this.rows, onBlur: (ev) => formInputHelpers.onInputBlurred(ev, this, 'textarea'), onInput: () => this.onInputChanged(), onFocus: () => this.onInputFocused('textarea'), onKeyPress: (ev) => this.onKeyPress(ev), onKeyDown: (ev) => this.onKeyDown(ev), onTouchStart: (ev) => ev.stopPropagation(), tabindex: this.inputTabIndex }));
|
|
128801
128813
|
}
|
|
128802
128814
|
renderEditable() {
|
|
128803
128815
|
var _a;
|
|
@@ -14,7 +14,7 @@ const shuffle = require('./shuffle-8d86ba89.js');
|
|
|
14
14
|
const findIndex = require('./findIndex-cb2c4f23.js');
|
|
15
15
|
const isString = require('./isString-ecd0cbf4.js');
|
|
16
16
|
const index$2 = require('./index-7d3c7ee7.js');
|
|
17
|
-
const index$1 = require('./index-
|
|
17
|
+
const index$1 = require('./index-806c612f.js');
|
|
18
18
|
const boostHelpers = require('./boost-helpers-0fe0ab90.js');
|
|
19
19
|
const isNumber = require('./isNumber-4c1ace60.js');
|
|
20
20
|
require('./isUndefined-8f9cfd10.js');
|
|
@@ -7,7 +7,7 @@ const inputBar_interface = require('./input-bar.interface-b96b7107.js');
|
|
|
7
7
|
const rrule = require('./rrule-f8e7fec2.js');
|
|
8
8
|
const formCreatorHelpers = require('./form-creator-helpers-886c1eaa.js');
|
|
9
9
|
const index$2 = require('./index-77d54324.js');
|
|
10
|
-
const index$1 = require('./index-
|
|
10
|
+
const index$1 = require('./index-806c612f.js');
|
|
11
11
|
require('./isNumber-4c1ace60.js');
|
|
12
12
|
require('./isEqual-35c41499.js');
|
|
13
13
|
require('./_baseIsEqual-ea3c1968.js');
|
|
@@ -9,7 +9,7 @@ require('./ResizeObserver.es-a563c836.js');
|
|
|
9
9
|
const commonHelpers = require('./common-helpers-312e97a3.js');
|
|
10
10
|
const index$1 = require('./index-f0c2575c.js');
|
|
11
11
|
const sortable_esm = require('./sortable.esm-71f9713d.js');
|
|
12
|
-
const index$2 = require('./index-
|
|
12
|
+
const index$2 = require('./index-806c612f.js');
|
|
13
13
|
const entitiesHelpers$1 = require('./entities-helpers-f08c39e2.js');
|
|
14
14
|
const entitiesHelpers = require('./entities-helpers-5d6d0dc7.js');
|
|
15
15
|
require('./isUndefined-8f9cfd10.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-fd52e687.js');
|
|
|
6
6
|
const rrule = require('./rrule-f8e7fec2.js');
|
|
7
7
|
require('./input-bar.interface-b96b7107.js');
|
|
8
8
|
const index$2 = require('./index-f0c2575c.js');
|
|
9
|
-
const index$1 = require('./index-
|
|
9
|
+
const index$1 = require('./index-806c612f.js');
|
|
10
10
|
require('./index-dccbc1a7.js');
|
|
11
11
|
require('./document-2c1b83f3.js');
|
|
12
12
|
require('./validate-f2c2f205.js');
|
|
@@ -13,7 +13,7 @@ const device_interface = require('./device.interface-44ea5b01.js');
|
|
|
13
13
|
const cardVideo_interface = require('./card-video.interface-284b7b92.js');
|
|
14
14
|
const sortable_esm = require('./sortable.esm-71f9713d.js');
|
|
15
15
|
const formCreatorHelpers = require('./form-creator-helpers-886c1eaa.js');
|
|
16
|
-
const index$2 = require('./index-
|
|
16
|
+
const index$2 = require('./index-806c612f.js');
|
|
17
17
|
const isEqual = require('./isEqual-35c41499.js');
|
|
18
18
|
const remove = require('./remove-41707d5a.js');
|
|
19
19
|
const index$3 = require('./index-f0c2575c.js');
|
|
@@ -7,7 +7,7 @@ const inputBar_interface = require('./input-bar.interface-b96b7107.js');
|
|
|
7
7
|
const rrule = require('./rrule-f8e7fec2.js');
|
|
8
8
|
const formCreatorHelpers = require('./form-creator-helpers-886c1eaa.js');
|
|
9
9
|
const stringHelpers = require('./string-helpers-4852718a.js');
|
|
10
|
-
const index$1 = require('./index-
|
|
10
|
+
const index$1 = require('./index-806c612f.js');
|
|
11
11
|
const cloneDeep = require('./cloneDeep-e00dc6ae.js');
|
|
12
12
|
const isEmpty = require('./isEmpty-1723db8b.js');
|
|
13
13
|
const isString = require('./isString-ecd0cbf4.js');
|
|
@@ -12,7 +12,7 @@ require('./ResizeObserver.es-a563c836.js');
|
|
|
12
12
|
const commonHelpers = require('./common-helpers-312e97a3.js');
|
|
13
13
|
const sortable_esm = require('./sortable.esm-71f9713d.js');
|
|
14
14
|
const index$2 = require('./index-77d54324.js');
|
|
15
|
-
const index$1 = require('./index-
|
|
15
|
+
const index$1 = require('./index-806c612f.js');
|
|
16
16
|
const cloneDeep = require('./cloneDeep-e00dc6ae.js');
|
|
17
17
|
const orderBy = require('./orderBy-18003c1b.js');
|
|
18
18
|
require('./document-2c1b83f3.js');
|
|
@@ -1017,15 +1017,18 @@ export class YooFormDynamicComponent {
|
|
|
1017
1017
|
this.secondaryFieldsState = Object.assign({}, this.secondaryFieldsState);
|
|
1018
1018
|
this.updateState();
|
|
1019
1019
|
}
|
|
1020
|
+
updateLMT(field) {
|
|
1021
|
+
if (this.suffix) {
|
|
1022
|
+
setFieldData(field, new Date(), this.currentData, '._lmt');
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1020
1025
|
onFieldChanged(ev, field) {
|
|
1021
1026
|
ev.stopPropagation();
|
|
1022
1027
|
setFieldData(field, ev.detail, this.currentData, this.suffix);
|
|
1023
1028
|
if (isFunction(field.onChange)) {
|
|
1024
1029
|
field.onChange(ev.detail, this.currentData, field, this.slides, this);
|
|
1025
1030
|
}
|
|
1026
|
-
|
|
1027
|
-
setFieldData(field, new Date(), this.currentData, '._lmt');
|
|
1028
|
-
}
|
|
1031
|
+
this.updateLMT(field);
|
|
1029
1032
|
if (field.allowTime && !this.isLivePreview()) {
|
|
1030
1033
|
setFieldData(field, new Date(), this.currentData, '.time');
|
|
1031
1034
|
}
|
|
@@ -1047,6 +1050,7 @@ export class YooFormDynamicComponent {
|
|
|
1047
1050
|
}
|
|
1048
1051
|
onFieldClear(field, updateState = true) {
|
|
1049
1052
|
setFieldData(field, null, this.currentData, this.suffix);
|
|
1053
|
+
this.updateLMT(field);
|
|
1050
1054
|
if (updateState) {
|
|
1051
1055
|
this.setDirty(true);
|
|
1052
1056
|
this.checkValidityAndEmitChanges();
|
|
@@ -1065,6 +1069,7 @@ export class YooFormDynamicComponent {
|
|
|
1065
1069
|
onFieldCommented(ev, field) {
|
|
1066
1070
|
ev.stopPropagation();
|
|
1067
1071
|
setFieldData(field, ev.detail, this.currentData, '.comments');
|
|
1072
|
+
this.updateLMT(field);
|
|
1068
1073
|
const el = this.getFieldByCode(field.name);
|
|
1069
1074
|
if (el) {
|
|
1070
1075
|
const container = findParent(el, 'yoo-form-input-container');
|
|
@@ -1075,6 +1080,7 @@ export class YooFormDynamicComponent {
|
|
|
1075
1080
|
onFieldEditTask(ev, field) {
|
|
1076
1081
|
ev.stopPropagation();
|
|
1077
1082
|
setFieldData(field, ev.detail, this.currentData, '.tasks');
|
|
1083
|
+
this.updateLMT(field);
|
|
1078
1084
|
this.checkValidityAndEmitChanges();
|
|
1079
1085
|
}
|
|
1080
1086
|
onFieldValidityChanged(ev, field) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugins } from '@capacitor/core';
|
|
2
|
-
import { containsUrls, debounce, disableKeyboardResize, enableKeyboardResize, findParent, getAsyncExtraData, isIOS, isKeyboardResizeModeInactive, isNativeMobile, replaceAndGetAllLinks, replaceAtTagToMentionTag, translate } from '@shared/utils';
|
|
2
|
+
import { containsUrls, debounce, disableKeyboardResize, enableKeyboardResize, findParent, getAsyncExtraData, isFirefox, isIOS, isKeyboardResizeModeInactive, isNativeMobile, isWeb, replaceAndGetAllLinks, replaceAtTagToMentionTag, translate } from '@shared/utils';
|
|
3
3
|
import { Component, Element, Event, forceUpdate, h, Host, Listen, Method, Prop, State, Watch } from '@stencil/core';
|
|
4
4
|
import { fixParagraphRandomEl, getAppContext, getInsertElementProp, getTagHTML, isMentionTag, onInputBlurred, onInputFocused, restoreCursorPosition, safeInsert, safeInsertElements, safeReplaceElement, sanitizeHTML, setValidator, setValueAndValidateInput } from '@utils';
|
|
5
5
|
const { Keyboard } = Plugins;
|
|
@@ -349,7 +349,13 @@ export class YooFormTextAreaComponent {
|
|
|
349
349
|
];
|
|
350
350
|
}
|
|
351
351
|
renderTextArea() {
|
|
352
|
-
return (h("textarea", { ref: (el) => (this.inputEl = el), value: this.value || '', onClick: (ev) =>
|
|
352
|
+
return (h("textarea", { ref: (el) => (this.inputEl = el), value: this.value || '', onClick: (ev) => {
|
|
353
|
+
if (isWeb() && isFirefox()) {
|
|
354
|
+
this.inputEl.focus();
|
|
355
|
+
this.onInputFocused('textarea');
|
|
356
|
+
}
|
|
357
|
+
ev.preventDefault();
|
|
358
|
+
}, contenteditable: "true", placeholder: translate(this.placeholder), readonly: this.readonly, rows: this.rows, onBlur: (ev) => onInputBlurred(ev, this, 'textarea'), onInput: () => this.onInputChanged(), onFocus: () => this.onInputFocused('textarea'), onKeyPress: (ev) => this.onKeyPress(ev), onKeyDown: (ev) => this.onKeyDown(ev), onTouchStart: (ev) => ev.stopPropagation(), tabindex: this.inputTabIndex }));
|
|
353
359
|
}
|
|
354
360
|
renderEditable() {
|
|
355
361
|
var _a;
|
|
@@ -942,7 +942,11 @@ export function updateLocaleTranslation(updatedValue, translations, locale, tran
|
|
|
942
942
|
let updatedTranslation;
|
|
943
943
|
if (updatedValue && translationKey) {
|
|
944
944
|
translationKey = translationKey.replace(/%/g, '');
|
|
945
|
-
|
|
945
|
+
let selectedTranslationIndex = translations.findIndex((translation) => translationKey === translation.key);
|
|
946
|
+
if (selectedTranslationIndex === -1) {
|
|
947
|
+
translationKey = translationKey.replace(/(<([^>]+)>)/gi, '');
|
|
948
|
+
selectedTranslationIndex = translations.findIndex((translation) => translationKey === translation.key);
|
|
949
|
+
}
|
|
946
950
|
if (translations[selectedTranslationIndex] && translations[selectedTranslationIndex][locale]) {
|
|
947
951
|
if (translations[selectedTranslationIndex][locale] !== updatedValue) {
|
|
948
952
|
updatedTranslation = translations[selectedTranslationIndex];
|