@yoobic/yobi 8.7.41 → 8.7.43

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.
@@ -1625,6 +1625,9 @@ const YooFormCreatorComponent = class {
1625
1625
  });
1626
1626
  }
1627
1627
  removeDuplicatedFieldConditionalTranslations(slides, condition) {
1628
+ if (condition.type !== 'field') {
1629
+ return;
1630
+ }
1628
1631
  const { slideIndex, itemIndex } = index$2.findField(slides, condition.field.name);
1629
1632
  const { values, value } = slides[slideIndex].items[itemIndex];
1630
1633
  if (condition.values) {
@@ -152,9 +152,12 @@ const YooFormDateTimeComponent = class {
152
152
  if (this.readonly) {
153
153
  event.stopPropagation();
154
154
  }
155
- !this.isRange &&
156
- this.useISOString &&
155
+ if (!this.isRange && this.useISOString) {
157
156
  this.onDateChanged(this.value ? new Date(this.value) : this.defaultCalendarValue ? this.defaultCalendarValue : new Date(), false);
157
+ }
158
+ else if (!this.isRange && !this.value) {
159
+ this.onDateChanged(new Date(), false);
160
+ }
158
161
  const isweb = index$1.isWeb(this.host);
159
162
  isweb &&
160
163
  this.dateTimeModal.setOptions({
@@ -107,9 +107,12 @@ export class YooFormDateTimeComponent {
107
107
  if (this.readonly) {
108
108
  event.stopPropagation();
109
109
  }
110
- !this.isRange &&
111
- this.useISOString &&
110
+ if (!this.isRange && this.useISOString) {
112
111
  this.onDateChanged(this.value ? new Date(this.value) : this.defaultCalendarValue ? this.defaultCalendarValue : new Date(), false);
112
+ }
113
+ else if (!this.isRange && !this.value) {
114
+ this.onDateChanged(new Date(), false);
115
+ }
113
116
  const isweb = isWeb(this.host);
114
117
  isweb &&
115
118
  this.dateTimeModal.setOptions({
@@ -1548,6 +1548,9 @@ export class YooFormCreatorComponent {
1548
1548
  });
1549
1549
  }
1550
1550
  removeDuplicatedFieldConditionalTranslations(slides, condition) {
1551
+ if (condition.type !== 'field') {
1552
+ return;
1553
+ }
1551
1554
  const { slideIndex, itemIndex } = findField(slides, condition.field.name);
1552
1555
  const { values, value } = slides[slideIndex].items[itemIndex];
1553
1556
  if (condition.values) {
@@ -1621,6 +1621,9 @@ const YooFormCreatorComponent = class {
1621
1621
  });
1622
1622
  }
1623
1623
  removeDuplicatedFieldConditionalTranslations(slides, condition) {
1624
+ if (condition.type !== 'field') {
1625
+ return;
1626
+ }
1624
1627
  const { slideIndex, itemIndex } = findField(slides, condition.field.name);
1625
1628
  const { values, value } = slides[slideIndex].items[itemIndex];
1626
1629
  if (condition.values) {
@@ -148,9 +148,12 @@ const YooFormDateTimeComponent = class {
148
148
  if (this.readonly) {
149
149
  event.stopPropagation();
150
150
  }
151
- !this.isRange &&
152
- this.useISOString &&
151
+ if (!this.isRange && this.useISOString) {
153
152
  this.onDateChanged(this.value ? new Date(this.value) : this.defaultCalendarValue ? this.defaultCalendarValue : new Date(), false);
153
+ }
154
+ else if (!this.isRange && !this.value) {
155
+ this.onDateChanged(new Date(), false);
156
+ }
154
157
  const isweb = isWeb(this.host);
155
158
  isweb &&
156
159
  this.dateTimeModal.setOptions({
@@ -1621,6 +1621,9 @@ const YooFormCreatorComponent = class {
1621
1621
  });
1622
1622
  }
1623
1623
  removeDuplicatedFieldConditionalTranslations(slides, condition) {
1624
+ if (condition.type !== 'field') {
1625
+ return;
1626
+ }
1624
1627
  const { slideIndex, itemIndex } = findField(slides, condition.field.name);
1625
1628
  const { values, value } = slides[slideIndex].items[itemIndex];
1626
1629
  if (condition.values) {
@@ -148,9 +148,12 @@ const YooFormDateTimeComponent = class {
148
148
  if (this.readonly) {
149
149
  event.stopPropagation();
150
150
  }
151
- !this.isRange &&
152
- this.useISOString &&
151
+ if (!this.isRange && this.useISOString) {
153
152
  this.onDateChanged(this.value ? new Date(this.value) : this.defaultCalendarValue ? this.defaultCalendarValue : new Date(), false);
153
+ }
154
+ else if (!this.isRange && !this.value) {
155
+ this.onDateChanged(new Date(), false);
156
+ }
154
157
  const isweb = isWeb(this.host);
155
158
  isweb &&
156
159
  this.dateTimeModal.setOptions({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.7.41",
3
+ "version": "8.7.43",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",