@yoobic/yobi 7.7.46 → 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.
@@ -124858,15 +124858,18 @@ const YooFormDynamicComponent = class {
124858
124858
  this.secondaryFieldsState = Object.assign({}, this.secondaryFieldsState);
124859
124859
  this.updateState();
124860
124860
  }
124861
+ updateLMT(field) {
124862
+ if (this.suffix) {
124863
+ setFieldData(field, new Date(), this.currentData, '._lmt');
124864
+ }
124865
+ }
124861
124866
  onFieldChanged(ev, field) {
124862
124867
  ev.stopPropagation();
124863
124868
  setFieldData(field, ev.detail, this.currentData, this.suffix);
124864
124869
  if (isFunction$2(field.onChange)) {
124865
124870
  field.onChange(ev.detail, this.currentData, field, this.slides, this);
124866
124871
  }
124867
- if (this.suffix) {
124868
- setFieldData(field, new Date(), this.currentData, '._lmt');
124869
- }
124872
+ this.updateLMT(field);
124870
124873
  if (field.allowTime && !this.isLivePreview()) {
124871
124874
  setFieldData(field, new Date(), this.currentData, '.time');
124872
124875
  }
@@ -124888,6 +124891,7 @@ const YooFormDynamicComponent = class {
124888
124891
  }
124889
124892
  onFieldClear(field, updateState = true) {
124890
124893
  setFieldData(field, null, this.currentData, this.suffix);
124894
+ this.updateLMT(field);
124891
124895
  if (updateState) {
124892
124896
  this.setDirty(true);
124893
124897
  this.checkValidityAndEmitChanges();
@@ -124906,6 +124910,7 @@ const YooFormDynamicComponent = class {
124906
124910
  onFieldCommented(ev, field) {
124907
124911
  ev.stopPropagation();
124908
124912
  setFieldData(field, ev.detail, this.currentData, '.comments');
124913
+ this.updateLMT(field);
124909
124914
  const el = this.getFieldByCode(field.name);
124910
124915
  if (el) {
124911
124916
  const container = findParent(el, 'yoo-form-input-container');
@@ -124916,6 +124921,7 @@ const YooFormDynamicComponent = class {
124916
124921
  onFieldEditTask(ev, field) {
124917
124922
  ev.stopPropagation();
124918
124923
  setFieldData(field, ev.detail, this.currentData, '.tasks');
124924
+ this.updateLMT(field);
124919
124925
  this.checkValidityAndEmitChanges();
124920
124926
  }
124921
124927
  onFieldValidityChanged(ev, field) {
@@ -271,6 +271,7 @@ export declare class YooFormDynamicComponent {
271
271
  setSecondaryFieldState(field: IFormField, state: any): void;
272
272
  setSlidesHeight(): void;
273
273
  onToggleSecondaryField(field: IFormField, slide: ISlide, toggleByIcon: boolean): void;
274
+ updateLMT(field: IFormField): void;
274
275
  onFieldChanged(ev: CustomEvent<any>, field: IFormField): void;
275
276
  onGetFormGeoloc(): any;
276
277
  onFieldClear(field: IFormField, updateState?: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "7.7.46",
3
+ "version": "7.7.47",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",