@yoobic/yobi 8.2.0-24 → 8.2.0-27

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 (38) hide show
  1. package/dist/cjs/yoo-audio-player.cjs.entry.js +23 -12
  2. package/dist/cjs/yoo-calendar.cjs.entry.js +1 -1
  3. package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +1 -1
  4. package/dist/cjs/yoo-form-capture.cjs.entry.js +1 -1
  5. package/dist/cjs/yoo-form-carousel.cjs.entry.js +1 -1
  6. package/dist/cjs/yoo-form-filter-date.cjs.entry.js +1 -1
  7. package/dist/cjs/yoo-form-multi-input.cjs.entry.js +9 -9
  8. package/dist/cjs/yoo-grid.cjs.entry.js +1 -1
  9. package/dist/cjs/yoo-range.cjs.entry.js +1 -1
  10. package/dist/collection/components/1.atoms/range/range.js +1 -1
  11. package/dist/collection/components/2.molecules/audio-player/audio-player.js +28 -15
  12. package/dist/collection/components/2.molecules/calendar/calendar.css +29 -48
  13. package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +1 -1
  14. package/dist/collection/components/form/form-capture/form-capture.js +2 -2
  15. package/dist/collection/components/form/form-carousel/form-carousel.js +1 -1
  16. package/dist/collection/components/form/form-filter-date/form-filter-date.css +3 -2
  17. package/dist/collection/components/form/form-multi-input/form-multi-input.js +10 -10
  18. package/dist/collection/components/grid/grid/grid.css +0 -5
  19. package/dist/design-system/yoo-audio-player.entry.js +23 -12
  20. package/dist/design-system/yoo-calendar.entry.js +1 -1
  21. package/dist/design-system/yoo-form-autocomplete.entry.js +1 -1
  22. package/dist/design-system/yoo-form-capture.entry.js +2 -2
  23. package/dist/design-system/yoo-form-carousel.entry.js +1 -1
  24. package/dist/design-system/yoo-form-filter-date.entry.js +1 -1
  25. package/dist/design-system/yoo-form-multi-input.entry.js +11 -11
  26. package/dist/design-system/yoo-grid.entry.js +1 -1
  27. package/dist/design-system/yoo-range.entry.js +1 -1
  28. package/dist/esm/yoo-audio-player.entry.js +23 -12
  29. package/dist/esm/yoo-calendar.entry.js +1 -1
  30. package/dist/esm/yoo-form-autocomplete.entry.js +1 -1
  31. package/dist/esm/yoo-form-capture.entry.js +2 -2
  32. package/dist/esm/yoo-form-carousel.entry.js +1 -1
  33. package/dist/esm/yoo-form-filter-date.entry.js +1 -1
  34. package/dist/esm/yoo-form-multi-input.entry.js +11 -11
  35. package/dist/esm/yoo-grid.entry.js +1 -1
  36. package/dist/esm/yoo-range.entry.js +1 -1
  37. package/dist/types/components/2.molecules/audio-player/audio-player.d.ts +7 -3
  38. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, i as createEvent, f as forceUpdate, h, e as Host, g as getElement } from './index-019c1b1a.js';
2
- import { aI as getUUID, p as debounce, o as isWeb, t as translate, b7 as isValueATranslationKey } from './index-60d331ff.js';
2
+ import { aI as getUUID, o as isWeb, t as translate, b7 as isValueATranslationKey } from './index-60d331ff.js';
3
3
  import { y as isEqual } from './lodash-b0ad17f3.js';
4
4
  import { S as Sortable } from './sortable.esm-f788d1ca.js';
5
5
  import { b as getAppContext } from './common-helpers-7760f0f6.js';
6
- import { a as setValueAndValidateInput, s as setValidator } from './form-input-helpers-21c08c10.js';
6
+ import { s as setValidator, a as setValueAndValidateInput } from './form-input-helpers-21c08c10.js';
7
7
  import './_commonjsHelpers-f4d11124.js';
8
8
  import './index-da54e081.js';
9
9
 
@@ -46,13 +46,6 @@ const YooFormMultiInputComponent = class {
46
46
  this.dragAndDropPendingEvent = null;
47
47
  this.dragAndDropPendingEventTimeout = null;
48
48
  this.sortables = [];
49
- this.setValueAndEmitChanges = (value, skipValueAssignment = false) => {
50
- if (!skipValueAssignment) {
51
- this.value = value;
52
- }
53
- const finalValue = this.isSimpleArray ? this.value[0] : this.value;
54
- setValueAndValidateInput(finalValue, this, false, true, true);
55
- };
56
49
  }
57
50
  async reset(keys) {
58
51
  this.cells = this.getCells();
@@ -418,13 +411,19 @@ const YooFormMultiInputComponent = class {
418
411
  if (this.reverseValueDimensions) {
419
412
  values = this.arrayTransposing(values);
420
413
  }
421
- // use debounce to prevent performance issue while typing
422
- debounce(this.setValueAndEmitChanges.bind(this), 500)(values);
414
+ this.setValueAndEmitChanges(values);
423
415
  }
424
416
  onTranslationValueUpdated(ev) {
425
417
  ev.stopPropagation();
426
418
  this.translationValueUpdated.emit(ev.detail);
427
419
  }
420
+ setValueAndEmitChanges(value, skipValueAssignment = false) {
421
+ if (!skipValueAssignment) {
422
+ this.value = value;
423
+ }
424
+ const finalValue = this.isSimpleArray ? this.value[0] : this.value;
425
+ setValueAndValidateInput(finalValue, this, false, true, true);
426
+ }
428
427
  isLinkedList() {
429
428
  return this.columns.some((c) => c.linkedRow);
430
429
  }
@@ -526,6 +525,7 @@ const YooFormMultiInputComponent = class {
526
525
  onFetchCustomData: (ev) => this.onFetchEvent(ev, cell.rowIndex, cell.colIndex, this.fetchCustomData),
527
526
  onTranslationValueUpdated: (ev) => this.onTranslationValueUpdated(ev),
528
527
  clearable: false,
528
+ debounce: TagType === 'yoo-form-input' && 500,
529
529
  maxHeight: this.host.classList.contains('image-collection') ? 60 : undefined,
530
530
  minHeight: this.host.classList.contains('image-collection') ? 60 : undefined,
531
531
  customZIndex: TagType === 'yoo-form-text-editor' && 20000 - cell.rowIndex,