@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
@@ -257,7 +257,7 @@ const YooRangeComponent = class {
257
257
  const values = Array.from({ length: this.max - this.min + 1 }, (_, i) => this.min + i).filter(v => !(v % this.step));
258
258
  return (this.ticks || this.ticksLabels) && values.map(v => {
259
259
  const showTickLabel = filterPattern(v);
260
- return (this.ticks || showTickLabel) && index.h("div", { class: { 'tick': true, 'hidden': !this.ticks }, style: { [start]: `${this.valueToRatio(v) * 100}%` }, ...(this.ticksLabels && showTickLabel && { i: v }) });
260
+ return (this.ticks || showTickLabel) && index.h("div", { class: { tick: true, hidden: !this.ticks }, style: { [start]: `${this.valueToRatio(v) * 100}%` }, ...(this.ticksLabels && showTickLabel && { i: v }) });
261
261
  });
262
262
  }
263
263
  renderBar(start, end) {
@@ -240,7 +240,7 @@ export class YooRangeComponent {
240
240
  const values = Array.from({ length: this.max - this.min + 1 }, (_, i) => this.min + i).filter(v => !(v % this.step));
241
241
  return (this.ticks || this.ticksLabels) && values.map(v => {
242
242
  const showTickLabel = filterPattern(v);
243
- return (this.ticks || showTickLabel) && h("div", { class: { 'tick': true, 'hidden': !this.ticks }, style: { [start]: `${this.valueToRatio(v) * 100}%` }, ...(this.ticksLabels && showTickLabel && { i: v }) });
243
+ return (this.ticks || showTickLabel) && h("div", { class: { tick: true, hidden: !this.ticks }, style: { [start]: `${this.valueToRatio(v) * 100}%` }, ...(this.ticksLabels && showTickLabel && { i: v }) });
244
244
  });
245
245
  }
246
246
  renderBar(start, end) {
@@ -22,12 +22,12 @@ export class YooAudioPlayerComponent {
22
22
  this.currentTime = 0;
23
23
  this.currentTimeDisplay = '00:00';
24
24
  }
25
- onSrcChanged() {
26
- return this.initPlayer(true);
27
- }
28
25
  onVisibilityChanged() {
29
26
  this.pause();
30
27
  }
28
+ onSrcChanged() {
29
+ return this.initPlayer(true);
30
+ }
31
31
  async getAudio() {
32
32
  return this.audio;
33
33
  }
@@ -36,7 +36,7 @@ export class YooAudioPlayerComponent {
36
36
  return (_a = this.audio) === null || _a === void 0 ? void 0 : _a.pause();
37
37
  }
38
38
  async componentWillLoad() {
39
- return await this.initPlayer();
39
+ await this.initPlayer();
40
40
  }
41
41
  disconnectedCallback() {
42
42
  this.pause();
@@ -94,7 +94,7 @@ export class YooAudioPlayerComponent {
94
94
  .map((v) => v.toString().padStart(2, '0'))
95
95
  .join(':');
96
96
  }
97
- async togglePlay(ev) {
97
+ togglePlay(ev) {
98
98
  if (ev && this.audio) {
99
99
  ev.stopPropagation();
100
100
  const { paused, ended, currentTime } = this.audio;
@@ -108,7 +108,11 @@ export class YooAudioPlayerComponent {
108
108
  }
109
109
  }
110
110
  }
111
- render() {
111
+ renderPlayButton() {
112
+ return h("yoo-button", { disabled: this.disabled, animated: isWeb(this.host), shape: "circular", fill: "transparent", onClick: (ev) => this.togglePlay(ev) },
113
+ h("yoo-icon", { name: `${this.audio.paused ? 'play' : 'pause'}-audio`, size: "large" }));
114
+ }
115
+ renderRange() {
112
116
  const pausePlay = (ev) => {
113
117
  this.isDragging = !ev;
114
118
  this.pause();
@@ -118,12 +122,21 @@ export class YooAudioPlayerComponent {
118
122
  this.currentTime = this.audio.currentTime = value !== null && value !== void 0 ? value : 0;
119
123
  this.audio.play();
120
124
  };
121
- return (h(Host, null, [
122
- h("yoo-button", { disabled: this.disabled, animated: isWeb(this.host), shape: "circular", fill: "transparent", onClick: (ev) => this.togglePlay(ev) },
123
- h("yoo-icon", { name: `${this.audio.paused ? 'play' : 'pause'}-audio`, size: "large" })),
124
- h("yoo-range", { max: this.duration, value: this.currentTime, disabled: this.disabled, onValueChanged: (ev) => this.currentTimeDisplay = this.formateTime(ev === null || ev === void 0 ? void 0 : ev.detail), onKnobPressed: () => pausePlay(), onMouseDown: (ev) => pausePlay(ev), onKnobReleased: (ev) => resumePlay(ev === null || ev === void 0 ? void 0 : ev.detail) }),
125
- h("div", { class: { 'audio-info': true, 'only-time': this.displayTimeOnly } }, [!this.displayTimeOnly && h("span", null, translate('AUDIO')), h("span", null, this.currentTimeDisplay)])
126
- ]));
125
+ return h("yoo-range", { max: this.duration, value: this.currentTime, disabled: this.disabled, onValueChanged: ({ detail }) => this.currentTimeDisplay = this.formateTime(detail), onKnobPressed: () => pausePlay(), onKnobReleased: ({ detail }) => resumePlay(detail) });
126
+ }
127
+ renderInfo() {
128
+ return h("div", { class: { 'audio-info': true, 'only-time': this.displayTimeOnly } }, [!this.displayTimeOnly &&
129
+ h("span", null, translate('AUDIO')), h("span", null, this.currentTimeDisplay)
130
+ ]);
131
+ }
132
+ render() {
133
+ return (h(Host, null,
134
+ " ",
135
+ [
136
+ this.renderPlayButton(),
137
+ this.renderRange(),
138
+ this.renderInfo()
139
+ ]));
127
140
  }
128
141
  static get is() { return "yoo-audio-player"; }
129
142
  static get encapsulation() { return "shadow"; }
@@ -316,10 +329,10 @@ export class YooAudioPlayerComponent {
316
329
  }; }
317
330
  static get elementRef() { return "host"; }
318
331
  static get watchers() { return [{
319
- "propName": "src",
320
- "methodName": "onSrcChanged"
321
- }, {
322
332
  "propName": "isVisible",
323
333
  "methodName": "onVisibilityChanged"
334
+ }, {
335
+ "propName": "src",
336
+ "methodName": "onSrcChanged"
324
337
  }]; }
325
338
  }
@@ -202,8 +202,6 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
202
202
  /* spacing for padding, margin, etc... */
203
203
  /* shadow */
204
204
  :host {
205
- --active-day-circle-size: 2rem;
206
- --mobile-days-height: 100%;
207
205
  display: block;
208
206
  opacity: 1;
209
207
  }
@@ -254,7 +252,6 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
254
252
  font-weight: var(--font-weight-400, 400);
255
253
  font-size: var(--font-size-16, 1rem);
256
254
  font-style: normal;
257
- line-height: normal;
258
255
  text-align: center;
259
256
  }
260
257
  :host .calendar-container.modern yoo-ion-slide {
@@ -264,6 +261,7 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
264
261
  display: flex;
265
262
  flex: 1;
266
263
  flex-direction: row;
264
+ padding: var(--spacing-04, 0.25rem) 0;
267
265
  border-bottom: var(--border-width-01, 0.0625rem) solid var(--stable-40, rgba(173, 173, 173, 0.4));
268
266
  }
269
267
  :host .week .day {
@@ -273,10 +271,20 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
273
271
  align-content: center;
274
272
  align-items: center;
275
273
  justify-content: center;
276
- height: 3.75rem;
274
+ height: 3.5rem;
277
275
  text-align: center;
278
276
  cursor: pointer;
279
277
  }
278
+ :host .week .day.active .day-number {
279
+ width: 50%;
280
+ max-width: var(--spacing-24, 1.5rem);
281
+ padding: 5%;
282
+ }
283
+ :host .week .day:not(.in-range) .day-number:after {
284
+ display: block;
285
+ padding-top: 100%;
286
+ content: "";
287
+ }
280
288
  :host .week .day.grey-day {
281
289
  opacity: 0.3;
282
290
  }
@@ -304,13 +312,10 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
304
312
  align-content: center;
305
313
  align-items: center;
306
314
  justify-content: center;
307
- width: var(--active-day-circle-size);
308
- height: var(--active-day-circle-size);
309
315
  font-weight: var(--font-weight-400, 400);
310
316
  font-size: var(--font-size-18, 1.125rem);
311
317
  font-style: normal;
312
318
  line-height: normal;
313
- border-radius: 50%;
314
319
  }
315
320
  :host .week .marker {
316
321
  width: 0.375rem;
@@ -392,7 +397,6 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
392
397
  font-weight: var(--font-weight-400, 400);
393
398
  font-size: var(--font-size-20, 1.25rem);
394
399
  font-style: normal;
395
- line-height: normal;
396
400
  }
397
401
  :host .mobile-calendar-header .done {
398
402
  margin-right: var(--spacing-08, 0.5rem);
@@ -408,7 +412,6 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
408
412
  font-weight: var(--font-weight-400, 400);
409
413
  font-size: var(--font-size-16, 1rem);
410
414
  font-style: normal;
411
- line-height: normal;
412
415
  }
413
416
  :host .mobile-calendar-header .calendar-tools .calendar-toggle:last-child {
414
417
  padding-right: 0.4375rem;
@@ -425,8 +428,12 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
425
428
  width: 100%;
426
429
  color: var(--dark, #000000);
427
430
  }
431
+ :host .mobile-days .day-number {
432
+ width: var(--spacing-16, 1rem);
433
+ border-radius: 50%;
434
+ }
428
435
  :host .mobile-days .in-range .day-number {
429
- width: 1.25rem;
436
+ width: 100%;
430
437
  color: var(--light, #ffffff) !important;
431
438
  background: var(--app-color, #5a30f4);
432
439
  border-radius: 0;
@@ -437,28 +444,11 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
437
444
  background: none;
438
445
  }
439
446
  :host .mobile-days .in-range.first-day .day-number {
440
- display: flex;
441
- flex-direction: row;
442
- align-content: center;
443
- align-items: center;
444
- justify-content: center;
445
- width: var(--active-day-circle-size);
446
- height: var(--active-day-circle-size);
447
- font-weight: var(--font-weight-400, 400);
448
- font-size: var(--font-size-18, 1.125rem);
449
- font-style: normal;
450
- line-height: normal;
451
- border-radius: 50%;
452
- z-index: 1;
453
- color: var(--light, #ffffff);
454
- background: var(--app-color, #5a30f4);
455
- opacity: 1;
447
+ border-radius: var(--spacing-08, 0.5rem) 0 0 var(--spacing-08, 0.5rem);
456
448
  }
457
449
  :host .mobile-days .in-range.first-day:after {
458
450
  position: absolute;
459
451
  right: 0;
460
- left: calc(50% - var(--active-day-circle-size) / 2);
461
- height: var(--active-day-circle-size);
462
452
  margin-left: 0.8125rem;
463
453
  background: var(--app-color, #5a30f4);
464
454
  opacity: 0.6;
@@ -469,33 +459,30 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
469
459
  background: none;
470
460
  }
471
461
  :host .mobile-days .in-range.last-day .day-number {
462
+ border-radius: 0 var(--spacing-08, 0.5rem) var(--spacing-08, 0.5rem) 0;
463
+ }
464
+ :host .mobile-days .in-range.last-day:before {
465
+ position: absolute;
466
+ margin-right: var(--spacing-16, 1rem);
467
+ background: var(--app-color, #5a30f4);
468
+ opacity: 0.6;
469
+ content: "";
470
+ }
471
+ :host .mobile-days .in-range.first-day .day-number, :host .mobile-days .in-range.last-day .day-number {
472
472
  display: flex;
473
473
  flex-direction: row;
474
474
  align-content: center;
475
475
  align-items: center;
476
476
  justify-content: center;
477
- width: var(--active-day-circle-size);
478
- height: var(--active-day-circle-size);
479
477
  font-weight: var(--font-weight-400, 400);
480
478
  font-size: var(--font-size-18, 1.125rem);
481
479
  font-style: normal;
482
480
  line-height: normal;
483
- border-radius: 50%;
484
481
  z-index: 1;
485
482
  color: var(--light, #ffffff);
486
483
  background: var(--app-color, #5a30f4);
487
484
  opacity: 1;
488
485
  }
489
- :host .mobile-days .in-range.last-day:before {
490
- position: absolute;
491
- right: calc(50% - var(--active-day-circle-size) / 2);
492
- left: 0;
493
- height: var(--active-day-circle-size);
494
- margin-right: var(--spacing-16, 1rem);
495
- background: var(--app-color, #5a30f4);
496
- opacity: 0.6;
497
- content: "";
498
- }
499
486
 
500
487
  :host([hidden]) {
501
488
  display: none;
@@ -529,9 +516,6 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
529
516
  background: var(--stable-light, #f1f1f1);
530
517
  }
531
518
 
532
- :host(.web) {
533
- --active-day-circle-size: 1.625rem;
534
- }
535
519
  :host(.web) .days {
536
520
  height: 100%;
537
521
  }
@@ -623,7 +607,6 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
623
607
  }
624
608
  }
625
609
  :host([size=extra-small]) {
626
- --active-day-circle-size: 1rem;
627
610
  width: 100%;
628
611
  min-height: unset;
629
612
  border: solid 0.0625rem var(--stable-light, #f1f1f1);
@@ -673,7 +656,6 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
673
656
  }
674
657
 
675
658
  :host([size=small]) {
676
- --active-day-circle-size: 1.25rem;
677
659
  width: 100%;
678
660
  min-height: unset;
679
661
  border: solid 0.0625rem var(--stable-light, #f1f1f1);
@@ -714,8 +696,7 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
714
696
  display: flex;
715
697
  align-items: center;
716
698
  justify-content: center;
717
- font-size: 0.75rem;
718
- border-radius: 50%;
699
+ font-size: var(--font-size-12, 0.75rem);
719
700
  }
720
701
  :host([size=small]) .week .day.active .day-number {
721
702
  background: var(--app-color, #5a30f4);
@@ -391,7 +391,7 @@ export class YooFormAutocompleteComponent {
391
391
  endDate: search.endDate,
392
392
  sortAndFilters: this.sortsAndFilters,
393
393
  search: search.search,
394
- data: formDynamic.data
394
+ data: formDynamic === null || formDynamic === void 0 ? void 0 : formDynamic.data
395
395
  }).then((ret) => {
396
396
  var _a, _b;
397
397
  if (search.currentPage === 0) {
@@ -1,7 +1,7 @@
1
1
  import { StatusBar } from '@capacitor/status-bar';
2
2
  import { MediaType, PictureSourceType } from '@ionic-native/camera';
3
3
  import { MediaCapture } from '@ionic-native/media-capture';
4
- import { addFilePrefix, asyncWaterfall, audios, changeExtension, downloadFile, getAsyncExtraData, getFormCapturedFileSize, getMimeType, getSession, hasLargeFile, images, isAndroid, isAudio, isCloudinaryLink, isFile, isGif, isImage, isImageUrl, isIOS, isIphoneX, isLenovo, isNativeFilePath, isNativeMobile, isNullOrUndefined, isOffline, isPhotoEdited, isSafari, isUnsplashUrl, isVideo, isWeb, moveToImageDirectory, pipes, read, showActionSheet, showAlert, showContextMenu, showModal, showToast, translate, translateMulti, updatePathSessionId, videos } from '@shared/utils';
4
+ import { addFilePrefix, asyncWaterfall, audios, changeExtension, downloadFile, getAsyncExtraData, getFormCapturedFileSize, getMimeType, getSession, hasLargeFile, images, isAndroid, isAudio, isCloudinaryLink, isFile, isGif, isImage, isIOS, isIphoneX, isLenovo, isNativeFilePath, isNativeMobile, isNullOrUndefined, isOffline, isPhotoEdited, isSafari, isUnsplashUrl, isVideo, isWeb, moveToImageDirectory, pipes, read, showActionSheet, showAlert, showContextMenu, showModal, showToast, translate, translateMulti, updatePathSessionId, videos } from '@shared/utils';
5
5
  import { Build, Component, Element, Event, h, Host, Method, Prop, State, Watch } from '@stencil/core';
6
6
  import { assign, assignInWith, clone, compact, intersection, isArray, isNumber, isUndefined, keys } from 'lodash-es';
7
7
  import { getPicture, getVideo, getVideoDevices, importMultipleFromLibrary, showAudioRecorder } from '../../../utils/helpers/camera-helpers';
@@ -1166,7 +1166,7 @@ export class YooFormCaptureComponent {
1166
1166
  return file;
1167
1167
  },
1168
1168
  (file) => {
1169
- if (isImage(file) && !isImageUrl(file)) {
1169
+ if (isImage(file) && typeof file !== 'string') {
1170
1170
  return read(file, 'blob');
1171
1171
  }
1172
1172
  else if (isAudio(file) && !isNativeMobile()) {
@@ -229,7 +229,7 @@ export class YooFormCarouselComponent {
229
229
  return this.renderVideo(src, index);
230
230
  }
231
231
  else if (type === 'audio') {
232
- return h("yoo-audio-player", { class: "audio-player", src: src });
232
+ return h("yoo-audio-player", { onClick: ev => ev === null || ev === void 0 ? void 0 : ev.stopPropagation(), class: "audio-player", src: src });
233
233
  }
234
234
  else if (type === 'document') {
235
235
  return h("yoo-form-document", { class: "expanded", isPdf: this.isPdf, extraClass: "feed", showDialog: true, showActionSheet: isNativeMobile() && isPdf(src), document: src });
@@ -212,8 +212,9 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
212
212
  font-size: inherit;
213
213
  }
214
214
  :host yoo-calendar {
215
- width: 12.5rem;
216
- height: 11.875rem;
215
+ width: 13rem;
216
+ height: 13rem;
217
+ padding: var(--spacing-08, 0.5rem);
217
218
  }
218
219
  :host yoo-form-input {
219
220
  width: 5rem;
@@ -1,4 +1,4 @@
1
- import { debounce, getUUID, isValueATranslationKey, isWeb, translate } from '@shared/utils';
1
+ import { getUUID, isValueATranslationKey, isWeb, translate } from '@shared/utils';
2
2
  import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, Watch } from '@stencil/core';
3
3
  import { isEqual } from 'lodash-es';
4
4
  import Sortable from 'sortablejs';
@@ -31,13 +31,6 @@ export class YooFormMultiInputComponent {
31
31
  this.dragAndDropPendingEvent = null;
32
32
  this.dragAndDropPendingEventTimeout = null;
33
33
  this.sortables = [];
34
- this.setValueAndEmitChanges = (value, skipValueAssignment = false) => {
35
- if (!skipValueAssignment) {
36
- this.value = value;
37
- }
38
- const finalValue = this.isSimpleArray ? this.value[0] : this.value;
39
- setValueAndValidateInput(finalValue, this, false, true, true);
40
- };
41
34
  }
42
35
  async reset(keys) {
43
36
  this.cells = this.getCells();
@@ -403,13 +396,19 @@ export class YooFormMultiInputComponent {
403
396
  if (this.reverseValueDimensions) {
404
397
  values = this.arrayTransposing(values);
405
398
  }
406
- // use debounce to prevent performance issue while typing
407
- debounce(this.setValueAndEmitChanges.bind(this), 500)(values);
399
+ this.setValueAndEmitChanges(values);
408
400
  }
409
401
  onTranslationValueUpdated(ev) {
410
402
  ev.stopPropagation();
411
403
  this.translationValueUpdated.emit(ev.detail);
412
404
  }
405
+ setValueAndEmitChanges(value, skipValueAssignment = false) {
406
+ if (!skipValueAssignment) {
407
+ this.value = value;
408
+ }
409
+ const finalValue = this.isSimpleArray ? this.value[0] : this.value;
410
+ setValueAndValidateInput(finalValue, this, false, true, true);
411
+ }
413
412
  isLinkedList() {
414
413
  return this.columns.some((c) => c.linkedRow);
415
414
  }
@@ -516,6 +515,7 @@ export class YooFormMultiInputComponent {
516
515
  onFetchCustomData: (ev) => this.onFetchEvent(ev, cell.rowIndex, cell.colIndex, this.fetchCustomData),
517
516
  onTranslationValueUpdated: (ev) => this.onTranslationValueUpdated(ev),
518
517
  clearable: false,
518
+ debounce: TagType === 'yoo-form-input' && 500,
519
519
  maxHeight: this.host.classList.contains('image-collection') ? 60 : undefined,
520
520
  minHeight: this.host.classList.contains('image-collection') ? 60 : undefined,
521
521
  customZIndex: TagType === 'yoo-form-text-editor' && 20000 - cell.rowIndex,
@@ -3655,11 +3655,6 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
3655
3655
  height: 100%;
3656
3656
  }
3657
3657
 
3658
- :host(.plans.empty),
3659
- :host(.productbatch.empty) {
3660
- height: auto;
3661
- }
3662
-
3663
3658
  :host(.photos-tab) .container-base .search-toggle-container {
3664
3659
  display: flex;
3665
3660
  justify-content: center;
@@ -31,12 +31,12 @@ const YooAudioPlayerComponent = class {
31
31
  this.currentTime = 0;
32
32
  this.currentTimeDisplay = '00:00';
33
33
  }
34
- onSrcChanged() {
35
- return this.initPlayer(true);
36
- }
37
34
  onVisibilityChanged() {
38
35
  this.pause();
39
36
  }
37
+ onSrcChanged() {
38
+ return this.initPlayer(true);
39
+ }
40
40
  async getAudio() {
41
41
  return this.audio;
42
42
  }
@@ -45,7 +45,7 @@ const YooAudioPlayerComponent = class {
45
45
  return (_a = this.audio) === null || _a === void 0 ? void 0 : _a.pause();
46
46
  }
47
47
  async componentWillLoad() {
48
- return await this.initPlayer();
48
+ await this.initPlayer();
49
49
  }
50
50
  disconnectedCallback() {
51
51
  this.pause();
@@ -103,7 +103,7 @@ const YooAudioPlayerComponent = class {
103
103
  .map((v) => v.toString().padStart(2, '0'))
104
104
  .join(':');
105
105
  }
106
- async togglePlay(ev) {
106
+ togglePlay(ev) {
107
107
  if (ev && this.audio) {
108
108
  ev.stopPropagation();
109
109
  const { paused, ended, currentTime } = this.audio;
@@ -117,7 +117,10 @@ const YooAudioPlayerComponent = class {
117
117
  }
118
118
  }
119
119
  }
120
- render() {
120
+ renderPlayButton() {
121
+ return h("yoo-button", { disabled: this.disabled, animated: isWeb(this.host), shape: "circular", fill: "transparent", onClick: (ev) => this.togglePlay(ev) }, h("yoo-icon", { name: `${this.audio.paused ? 'play' : 'pause'}-audio`, size: "large" }));
122
+ }
123
+ renderRange() {
121
124
  const pausePlay = (ev) => {
122
125
  this.isDragging = !ev;
123
126
  this.pause();
@@ -127,16 +130,24 @@ const YooAudioPlayerComponent = class {
127
130
  this.currentTime = this.audio.currentTime = value !== null && value !== void 0 ? value : 0;
128
131
  this.audio.play();
129
132
  };
130
- return (h(Host, null, [
131
- h("yoo-button", { disabled: this.disabled, animated: isWeb(this.host), shape: "circular", fill: "transparent", onClick: (ev) => this.togglePlay(ev) }, h("yoo-icon", { name: `${this.audio.paused ? 'play' : 'pause'}-audio`, size: "large" })),
132
- h("yoo-range", { max: this.duration, value: this.currentTime, disabled: this.disabled, onValueChanged: (ev) => this.currentTimeDisplay = this.formateTime(ev === null || ev === void 0 ? void 0 : ev.detail), onKnobPressed: () => pausePlay(), onMouseDown: (ev) => pausePlay(ev), onKnobReleased: (ev) => resumePlay(ev === null || ev === void 0 ? void 0 : ev.detail) }),
133
- h("div", { class: { 'audio-info': true, 'only-time': this.displayTimeOnly } }, [!this.displayTimeOnly && h("span", null, translate('AUDIO')), h("span", null, this.currentTimeDisplay)])
133
+ return h("yoo-range", { max: this.duration, value: this.currentTime, disabled: this.disabled, onValueChanged: ({ detail }) => this.currentTimeDisplay = this.formateTime(detail), onKnobPressed: () => pausePlay(), onKnobReleased: ({ detail }) => resumePlay(detail) });
134
+ }
135
+ renderInfo() {
136
+ return h("div", { class: { 'audio-info': true, 'only-time': this.displayTimeOnly } }, [!this.displayTimeOnly &&
137
+ h("span", null, translate('AUDIO')), h("span", null, this.currentTimeDisplay)
138
+ ]);
139
+ }
140
+ render() {
141
+ return (h(Host, null, " ", [
142
+ this.renderPlayButton(),
143
+ this.renderRange(),
144
+ this.renderInfo()
134
145
  ]));
135
146
  }
136
147
  get host() { return getElement(this); }
137
148
  static get watchers() { return {
138
- "src": ["onSrcChanged"],
139
- "isVisible": ["onVisibilityChanged"]
149
+ "isVisible": ["onVisibilityChanged"],
150
+ "src": ["onSrcChanged"]
140
151
  }; }
141
152
  };
142
153
  YooAudioPlayerComponent.style = audioPlayerCss;
@@ -4,7 +4,7 @@ import { a as isArray, n as capitalize } from './lodash-b0ad17f3.js';
4
4
  import './_commonjsHelpers-f4d11124.js';
5
5
  import './index-da54e081.js';
6
6
 
7
- const calendarCss = ":host{--active-day-circle-size:2rem;--mobile-days-height:100%;display:block;opacity:1}:host .unavailable{color:var(--stable, #adadad)}:host .toolbar-tools{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}:host .toolbar-tools yoo-tooltip{padding:0.25rem}:host .toolbar-tools yoo-tooltip yoo-button{padding:0}:host .toolbar-tools h2{font-weight:var(--font-weight-400, 400);text-transform:capitalize}:host .toolbar-tools yoo-button{padding:0.25rem}:host .toolbar-tools .active-day{-ms-flex:1 2 auto;flex:1 2 auto;text-align:center}:host .days{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .week-header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;min-height:1.875rem;font-weight:var(--font-weight-400, 400);font-size:var(--font-size-14, 0.875rem)}:host .week-header .day{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0.3125rem;font-weight:var(--font-weight-400, 400);font-size:var(--font-size-16, 1rem);font-style:normal;line-height:normal;text-align:center}:host .calendar-container.modern yoo-ion-slide{width:auto !important}:host .week{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:row;flex-direction:row;border-bottom:var(--border-width-01, 0.0625rem) solid var(--stable-40, rgba(173, 173, 173, 0.4))}:host .week .day{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:3.75rem;text-align:center;cursor:pointer}:host .week .day.grey-day{opacity:0.3}:host .week .day.today.active .day-number{color:var(--light, #ffffff);background:var(--app-color, #5a30f4)}:host .week .day.today .day-number{color:var(--app-color, #5a30f4)}:host .week .day.today .marker{background:var(--app-color, #5a30f4)}:host .week .day.single-range .day-number{color:var(--light, #ffffff);background:var(--app-color, #5a30f4)}:host .week .day.active .day-number{color:var(--light, #ffffff);background:var(--dark, #000000)}:host .week .day .day-number{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--active-day-circle-size);height:var(--active-day-circle-size);font-weight:var(--font-weight-400, 400);font-size:var(--font-size-18, 1.125rem);font-style:normal;line-height:normal;border-radius:50%}:host .week .marker{width:0.375rem;height:0.375rem;margin-top:0;margin-bottom:var(--spacing-04, 0.25rem);background:var(--app-color-10, rgba(90, 48, 244, 0.1));border-radius:50%}:host .week.modern .day{-ms-flex-pack:center;justify-content:center;height:auto;margin-right:var(--spacing-08, 0.5rem);color:var(--dark, #000000)}:host .week.modern .day .day-inner{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;min-width:var(--spacing-32, 2rem);max-width:var(--spacing-32, 2rem);padding:var(--spacing-08, 0.5rem) var(--spacing-16, 1rem);background-color:var(--light, #ffffff);border:var(--border-width-01, 0.0625rem) solid var(--stable-alt, #d0d0d0);border-radius:var(--border-radius-04, 0.25rem)}:host .week.modern .day .day-inner .title{font-size:var(--font-size-24, 1.5rem)}:host .week.modern .day .day-inner .secondary-title{font-size:var(--font-size-14, 0.875rem)}:host .week.modern .day .day-inner.unavailable{color:var(--stable, #adadad);background-color:var(--stable-light, #f1f1f1)}:host .week.modern .day.active{color:var(--light, #ffffff)}:host .week.modern .day.active .day-inner{background-color:var(--app-color, #5a30f4);border-color:var(--app-color, #5a30f4)}:host .week.modern .day.active .day-inner.unavailable{color:var(--light, #ffffff)}:host .week.modern .day.grey-day{color:var(--stable, #adadad);opacity:1}:host .ion-slide{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .mobile-calendar-header{position:-webkit-sticky;position:sticky;top:0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;width:100%;margin-bottom:1.25rem;background:var(--light, #ffffff);border-top:0.625rem solid var(--light, #ffffff)}:host .mobile-calendar-header .active-month-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .mobile-calendar-header .active-month-container.flex{-ms-flex:1;flex:1}:host .mobile-calendar-header .active-month-container .prev-month{height:1.5rem;padding:0rem 0.3125rem 0rem 1rem}:host .mobile-calendar-header .active-month-container .active-month{color:var(--dark, #000000);font-weight:var(--font-weight-400, 400);font-size:var(--font-size-20, 1.25rem);font-style:normal;line-height:normal}:host .mobile-calendar-header .done{margin-right:var(--spacing-08, 0.5rem)}:host .mobile-calendar-header .calendar-tools{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-pack:end;justify-content:flex-end}:host .mobile-calendar-header .calendar-tools .calendar-toggle{padding-right:var(--spacing-16, 1rem);color:var(--stable-alt, #d0d0d0);font-weight:var(--font-weight-400, 400);font-size:var(--font-size-16, 1rem);font-style:normal;line-height:normal}:host .mobile-calendar-header .calendar-tools .calendar-toggle:last-child{padding-right:0.4375rem}:host .mobile-calendar-header .calendar-tools .calendar-toggle.today:hover{color:var(--app-color, #5a30f4)}:host .mobile-calendar-header .calendar-tools .calendar-toggle.active{color:var(--app-color, #5a30f4)}:host .mobile-days{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;color:var(--dark, #000000)}:host .mobile-days .in-range .day-number{width:1.25rem;color:var(--light, #ffffff) !important;background:var(--app-color, #5a30f4);border-radius:0;opacity:0.6}:host .mobile-days .in-range.first-day{position:relative;background:none}:host .mobile-days .in-range.first-day .day-number{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--active-day-circle-size);height:var(--active-day-circle-size);font-weight:var(--font-weight-400, 400);font-size:var(--font-size-18, 1.125rem);font-style:normal;line-height:normal;border-radius:50%;z-index:1;color:var(--light, #ffffff);background:var(--app-color, #5a30f4);opacity:1}:host .mobile-days .in-range.first-day:after{position:absolute;right:0;left:calc(50% - var(--active-day-circle-size) / 2);height:var(--active-day-circle-size);margin-left:0.8125rem;background:var(--app-color, #5a30f4);opacity:0.6;content:\"\"}:host .mobile-days .in-range.last-day{position:relative;background:none}:host .mobile-days .in-range.last-day .day-number{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--active-day-circle-size);height:var(--active-day-circle-size);font-weight:var(--font-weight-400, 400);font-size:var(--font-size-18, 1.125rem);font-style:normal;line-height:normal;border-radius:50%;z-index:1;color:var(--light, #ffffff);background:var(--app-color, #5a30f4);opacity:1}:host .mobile-days .in-range.last-day:before{position:absolute;right:calc(50% - var(--active-day-circle-size) / 2);left:0;height:var(--active-day-circle-size);margin-right:var(--spacing-16, 1rem);background:var(--app-color, #5a30f4);opacity:0.6;content:\"\"}:host([hidden]){display:none}:host([display-mode=week]) .week{border-bottom:none}:host([display-mode=month]) .calendar-container .swiper-control{padding-top:var(--spacing-16, 1rem)}:host([is-date-picker]){min-height:28.75rem}:host([modern-date-picker]){min-height:0}:host([is-range]) .week .day.grey-day:not(.diff-month){pointer-events:none}:host(.date) .mobile-days .week:last-child{border-bottom:none}:host(.stable-light) .mobile-days .week-header .day{background:var(--stable-light, #f1f1f1)}:host(.web){--active-day-circle-size:1.625rem}:host(.web) .days{height:100%}:host(.web) .days .week-header{margin-right:0.75rem;margin-left:0.75rem}:host(.web) .days yoo-ion-scroll .web-days{margin-bottom:var(--spacing-16, 1rem)}:host(.web) .days yoo-ion-scroll .web-days.hidden{display:none;opacity:0}:host(.web) .days yoo-ion-scroll .web-days.space .week{padding-bottom:var(--spacing-08, 0.5rem)}:host(.web) .days yoo-ion-scroll .active-month{margin-left:var(--spacing-16, 1rem);font-size:var(--font-size-18, 1.125rem)}:host(.web) .days yoo-ion-scroll .active-month.flex{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin:0;padding:0 var(--spacing-04, 0.25rem);font-size:var(--font-size-16, 1rem)}:host(.web) .days yoo-ion-scroll .week .day .day-number{font-size:var(--font-size-14, 0.875rem)}:host(.web) .days yoo-ion-scroll .week .marker{width:0.375rem;height:0.375rem}:host(.web[modern-date-picker]){display:-ms-flexbox;display:flex}:host(.web[modern-date-picker]) .next-month,:host(.web[modern-date-picker]) .prev-month{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.web[modern-date-picker]) .next-month yoo-tag,:host(.web[modern-date-picker]) .prev-month yoo-tag{-webkit-box-shadow:var(--shadow-01, 0 0.0625rem 0.25rem 0 rgba(0, 0, 0, 0.1));box-shadow:var(--shadow-01, 0 0.0625rem 0.25rem 0 rgba(0, 0, 0, 0.1));cursor:pointer}:host(.web[modern-date-picker]) .prev-month{padding-right:var(--spacing-08, 0.5rem)}:host(.web[modern-date-picker]) .next-month{padding-left:var(--spacing-08, 0.5rem)}:host(.web.calendar-picker){min-height:17.3125rem}:host(.web.calendar-picker) .mobile-calendar-header .active-month-container .prev-month{padding:0rem 0.3125rem 0rem 0rem}:host(.web.calendar-picker) .week-header{margin-bottom:var(--spacing-04, 0.25rem)}:host(.web.calendar-picker) .week-header .day{font-size:var(--font-size-14, 0.875rem)}:host(.web.calendar-picker) .week .day{height:2rem;font-size:var(--font-size-14, 0.875rem)}:host(.web.calendar-picker) .week .day .day-number{font-size:var(--font-size-14, 0.875rem)}:host(.web.calendar-picker) .week .day .marker{display:none}:host(.web.calendar-picker) .week .day.active .day-number{background:var(--app-color, #5a30f4)}@media only screen and (max-width: 350px){:host .mobile-calendar-header .calendar-tools .calendar-toggle{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:4rem}}:host([size=extra-small]){--active-day-circle-size:1rem;width:100%;min-height:unset;border:solid 0.0625rem var(--stable-light, #f1f1f1);border-radius:0.125rem}:host([size=extra-small]) div.mobile-calendar-header{margin:1rem 0 0 0;border-top:none}:host([size=extra-small]) div.active-month-container{-ms-flex-pack:justify;justify-content:space-between;width:100%}:host([size=extra-small]) .active-month-container span.prev-month{padding:0 0.5rem;color:var(--dark, #000000);cursor:pointer}:host([size=extra-small]) .active-month-container span.active-month{font-weight:bold;font-size:0.75rem}:host([size=extra-small]) .active-month-container span.next-month{padding:0 0.5rem;color:var(--dark, #000000);cursor:pointer}:host([size=extra-small]) .day-text{color:var(--text-color, #807f83);font-size:0.75rem}:host([size=extra-small]) .week{padding-top:var(--spacing-08, 0.5rem)}:host([size=extra-small]) .week .day{height:unset}:host([size=extra-small]) .week .day div.day-number{font-size:0.75rem;border-radius:0.125rem}:host([size=extra-small]) .week .day.active .day-number{background:var(--app-color, #5a30f4)}:host([size=extra-small]) .in-range.first-day:after,:host([size=extra-small]) .in-range.last-day:before{background:none}:host([size=small]){--active-day-circle-size:1.25rem;width:100%;min-height:unset;border:solid 0.0625rem var(--stable-light, #f1f1f1);border-radius:0.125rem}:host([size=small]) div.mobile-calendar-header{margin:1rem 0 0 0;border-top:none}:host([size=small]) div.active-month-container{-ms-flex-pack:justify;justify-content:space-between;width:100%}:host([size=small]) .active-month-container span.prev-month{padding:0 0.5rem;color:var(--dark, #000000);cursor:pointer}:host([size=small]) .active-month-container span.active-month{font-size:0.75rem}:host([size=small]) .active-month-container span.next-month{padding:0 0.5rem;color:var(--dark, #000000);cursor:pointer}:host([size=small]) .day-text{color:var(--text-color, #807f83);font-size:0.75rem}:host([size=small]) .week{border-bottom:none}:host([size=small]) .week .day{height:unset}:host([size=small]) .week .day div.day-number{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-size:0.75rem;border-radius:50%}:host([size=small]) .week .day.active .day-number{background:var(--app-color, #5a30f4)}:host([size=small]) .in-range.first-day:after,:host([size=small]) .in-range.last-day:before{background:none}:host(.no-border){border:none}:host(.no-margin-top) .mobile-calendar-header{margin-top:0 !important}:host(.padding-bottom){padding-bottom:var(--spacing-08, 0.5rem)}";
7
+ const calendarCss = ":host{display:block;opacity:1}:host .unavailable{color:var(--stable, #adadad)}:host .toolbar-tools{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}:host .toolbar-tools yoo-tooltip{padding:0.25rem}:host .toolbar-tools yoo-tooltip yoo-button{padding:0}:host .toolbar-tools h2{font-weight:var(--font-weight-400, 400);text-transform:capitalize}:host .toolbar-tools yoo-button{padding:0.25rem}:host .toolbar-tools .active-day{-ms-flex:1 2 auto;flex:1 2 auto;text-align:center}:host .days{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .week-header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;min-height:1.875rem;font-weight:var(--font-weight-400, 400);font-size:var(--font-size-14, 0.875rem)}:host .week-header .day{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0.3125rem;font-weight:var(--font-weight-400, 400);font-size:var(--font-size-16, 1rem);font-style:normal;text-align:center}:host .calendar-container.modern yoo-ion-slide{width:auto !important}:host .week{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:row;flex-direction:row;padding:var(--spacing-04, 0.25rem) 0;border-bottom:var(--border-width-01, 0.0625rem) solid var(--stable-40, rgba(173, 173, 173, 0.4))}:host .week .day{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:3.5rem;text-align:center;cursor:pointer}:host .week .day.active .day-number{width:50%;max-width:var(--spacing-24, 1.5rem);padding:5%}:host .week .day:not(.in-range) .day-number:after{display:block;padding-top:100%;content:\"\"}:host .week .day.grey-day{opacity:0.3}:host .week .day.today.active .day-number{color:var(--light, #ffffff);background:var(--app-color, #5a30f4)}:host .week .day.today .day-number{color:var(--app-color, #5a30f4)}:host .week .day.today .marker{background:var(--app-color, #5a30f4)}:host .week .day.single-range .day-number{color:var(--light, #ffffff);background:var(--app-color, #5a30f4)}:host .week .day.active .day-number{color:var(--light, #ffffff);background:var(--dark, #000000)}:host .week .day .day-number{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-weight:var(--font-weight-400, 400);font-size:var(--font-size-18, 1.125rem);font-style:normal;line-height:normal}:host .week .marker{width:0.375rem;height:0.375rem;margin-top:0;margin-bottom:var(--spacing-04, 0.25rem);background:var(--app-color-10, rgba(90, 48, 244, 0.1));border-radius:50%}:host .week.modern .day{-ms-flex-pack:center;justify-content:center;height:auto;margin-right:var(--spacing-08, 0.5rem);color:var(--dark, #000000)}:host .week.modern .day .day-inner{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;min-width:var(--spacing-32, 2rem);max-width:var(--spacing-32, 2rem);padding:var(--spacing-08, 0.5rem) var(--spacing-16, 1rem);background-color:var(--light, #ffffff);border:var(--border-width-01, 0.0625rem) solid var(--stable-alt, #d0d0d0);border-radius:var(--border-radius-04, 0.25rem)}:host .week.modern .day .day-inner .title{font-size:var(--font-size-24, 1.5rem)}:host .week.modern .day .day-inner .secondary-title{font-size:var(--font-size-14, 0.875rem)}:host .week.modern .day .day-inner.unavailable{color:var(--stable, #adadad);background-color:var(--stable-light, #f1f1f1)}:host .week.modern .day.active{color:var(--light, #ffffff)}:host .week.modern .day.active .day-inner{background-color:var(--app-color, #5a30f4);border-color:var(--app-color, #5a30f4)}:host .week.modern .day.active .day-inner.unavailable{color:var(--light, #ffffff)}:host .week.modern .day.grey-day{color:var(--stable, #adadad);opacity:1}:host .ion-slide{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .mobile-calendar-header{position:-webkit-sticky;position:sticky;top:0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;width:100%;margin-bottom:1.25rem;background:var(--light, #ffffff);border-top:0.625rem solid var(--light, #ffffff)}:host .mobile-calendar-header .active-month-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .mobile-calendar-header .active-month-container.flex{-ms-flex:1;flex:1}:host .mobile-calendar-header .active-month-container .prev-month{height:1.5rem;padding:0rem 0.3125rem 0rem 1rem}:host .mobile-calendar-header .active-month-container .active-month{color:var(--dark, #000000);font-weight:var(--font-weight-400, 400);font-size:var(--font-size-20, 1.25rem);font-style:normal}:host .mobile-calendar-header .done{margin-right:var(--spacing-08, 0.5rem)}:host .mobile-calendar-header .calendar-tools{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-pack:end;justify-content:flex-end}:host .mobile-calendar-header .calendar-tools .calendar-toggle{padding-right:var(--spacing-16, 1rem);color:var(--stable-alt, #d0d0d0);font-weight:var(--font-weight-400, 400);font-size:var(--font-size-16, 1rem);font-style:normal}:host .mobile-calendar-header .calendar-tools .calendar-toggle:last-child{padding-right:0.4375rem}:host .mobile-calendar-header .calendar-tools .calendar-toggle.today:hover{color:var(--app-color, #5a30f4)}:host .mobile-calendar-header .calendar-tools .calendar-toggle.active{color:var(--app-color, #5a30f4)}:host .mobile-days{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;color:var(--dark, #000000)}:host .mobile-days .day-number{width:var(--spacing-16, 1rem);border-radius:50%}:host .mobile-days .in-range .day-number{width:100%;color:var(--light, #ffffff) !important;background:var(--app-color, #5a30f4);border-radius:0;opacity:0.6}:host .mobile-days .in-range.first-day{position:relative;background:none}:host .mobile-days .in-range.first-day .day-number{border-radius:var(--spacing-08, 0.5rem) 0 0 var(--spacing-08, 0.5rem)}:host .mobile-days .in-range.first-day:after{position:absolute;right:0;margin-left:0.8125rem;background:var(--app-color, #5a30f4);opacity:0.6;content:\"\"}:host .mobile-days .in-range.last-day{position:relative;background:none}:host .mobile-days .in-range.last-day .day-number{border-radius:0 var(--spacing-08, 0.5rem) var(--spacing-08, 0.5rem) 0}:host .mobile-days .in-range.last-day:before{position:absolute;margin-right:var(--spacing-16, 1rem);background:var(--app-color, #5a30f4);opacity:0.6;content:\"\"}:host .mobile-days .in-range.first-day .day-number,:host .mobile-days .in-range.last-day .day-number{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-weight:var(--font-weight-400, 400);font-size:var(--font-size-18, 1.125rem);font-style:normal;line-height:normal;z-index:1;color:var(--light, #ffffff);background:var(--app-color, #5a30f4);opacity:1}:host([hidden]){display:none}:host([display-mode=week]) .week{border-bottom:none}:host([display-mode=month]) .calendar-container .swiper-control{padding-top:var(--spacing-16, 1rem)}:host([is-date-picker]){min-height:28.75rem}:host([modern-date-picker]){min-height:0}:host([is-range]) .week .day.grey-day:not(.diff-month){pointer-events:none}:host(.date) .mobile-days .week:last-child{border-bottom:none}:host(.stable-light) .mobile-days .week-header .day{background:var(--stable-light, #f1f1f1)}:host(.web) .days{height:100%}:host(.web) .days .week-header{margin-right:0.75rem;margin-left:0.75rem}:host(.web) .days yoo-ion-scroll .web-days{margin-bottom:var(--spacing-16, 1rem)}:host(.web) .days yoo-ion-scroll .web-days.hidden{display:none;opacity:0}:host(.web) .days yoo-ion-scroll .web-days.space .week{padding-bottom:var(--spacing-08, 0.5rem)}:host(.web) .days yoo-ion-scroll .active-month{margin-left:var(--spacing-16, 1rem);font-size:var(--font-size-18, 1.125rem)}:host(.web) .days yoo-ion-scroll .active-month.flex{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin:0;padding:0 var(--spacing-04, 0.25rem);font-size:var(--font-size-16, 1rem)}:host(.web) .days yoo-ion-scroll .week .day .day-number{font-size:var(--font-size-14, 0.875rem)}:host(.web) .days yoo-ion-scroll .week .marker{width:0.375rem;height:0.375rem}:host(.web[modern-date-picker]){display:-ms-flexbox;display:flex}:host(.web[modern-date-picker]) .next-month,:host(.web[modern-date-picker]) .prev-month{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.web[modern-date-picker]) .next-month yoo-tag,:host(.web[modern-date-picker]) .prev-month yoo-tag{-webkit-box-shadow:var(--shadow-01, 0 0.0625rem 0.25rem 0 rgba(0, 0, 0, 0.1));box-shadow:var(--shadow-01, 0 0.0625rem 0.25rem 0 rgba(0, 0, 0, 0.1));cursor:pointer}:host(.web[modern-date-picker]) .prev-month{padding-right:var(--spacing-08, 0.5rem)}:host(.web[modern-date-picker]) .next-month{padding-left:var(--spacing-08, 0.5rem)}:host(.web.calendar-picker){min-height:17.3125rem}:host(.web.calendar-picker) .mobile-calendar-header .active-month-container .prev-month{padding:0rem 0.3125rem 0rem 0rem}:host(.web.calendar-picker) .week-header{margin-bottom:var(--spacing-04, 0.25rem)}:host(.web.calendar-picker) .week-header .day{font-size:var(--font-size-14, 0.875rem)}:host(.web.calendar-picker) .week .day{height:2rem;font-size:var(--font-size-14, 0.875rem)}:host(.web.calendar-picker) .week .day .day-number{font-size:var(--font-size-14, 0.875rem)}:host(.web.calendar-picker) .week .day .marker{display:none}:host(.web.calendar-picker) .week .day.active .day-number{background:var(--app-color, #5a30f4)}@media only screen and (max-width: 350px){:host .mobile-calendar-header .calendar-tools .calendar-toggle{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:4rem}}:host([size=extra-small]){width:100%;min-height:unset;border:solid 0.0625rem var(--stable-light, #f1f1f1);border-radius:0.125rem}:host([size=extra-small]) div.mobile-calendar-header{margin:1rem 0 0 0;border-top:none}:host([size=extra-small]) div.active-month-container{-ms-flex-pack:justify;justify-content:space-between;width:100%}:host([size=extra-small]) .active-month-container span.prev-month{padding:0 0.5rem;color:var(--dark, #000000);cursor:pointer}:host([size=extra-small]) .active-month-container span.active-month{font-weight:bold;font-size:0.75rem}:host([size=extra-small]) .active-month-container span.next-month{padding:0 0.5rem;color:var(--dark, #000000);cursor:pointer}:host([size=extra-small]) .day-text{color:var(--text-color, #807f83);font-size:0.75rem}:host([size=extra-small]) .week{padding-top:var(--spacing-08, 0.5rem)}:host([size=extra-small]) .week .day{height:unset}:host([size=extra-small]) .week .day div.day-number{font-size:0.75rem;border-radius:0.125rem}:host([size=extra-small]) .week .day.active .day-number{background:var(--app-color, #5a30f4)}:host([size=extra-small]) .in-range.first-day:after,:host([size=extra-small]) .in-range.last-day:before{background:none}:host([size=small]){width:100%;min-height:unset;border:solid 0.0625rem var(--stable-light, #f1f1f1);border-radius:0.125rem}:host([size=small]) div.mobile-calendar-header{margin:1rem 0 0 0;border-top:none}:host([size=small]) div.active-month-container{-ms-flex-pack:justify;justify-content:space-between;width:100%}:host([size=small]) .active-month-container span.prev-month{padding:0 0.5rem;color:var(--dark, #000000);cursor:pointer}:host([size=small]) .active-month-container span.active-month{font-size:0.75rem}:host([size=small]) .active-month-container span.next-month{padding:0 0.5rem;color:var(--dark, #000000);cursor:pointer}:host([size=small]) .day-text{color:var(--text-color, #807f83);font-size:0.75rem}:host([size=small]) .week{border-bottom:none}:host([size=small]) .week .day{height:unset}:host([size=small]) .week .day div.day-number{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-size:var(--font-size-12, 0.75rem)}:host([size=small]) .week .day.active .day-number{background:var(--app-color, #5a30f4)}:host([size=small]) .in-range.first-day:after,:host([size=small]) .in-range.last-day:before{background:none}:host(.no-border){border:none}:host(.no-margin-top) .mobile-calendar-header{margin-top:0 !important}:host(.padding-bottom){padding-bottom:var(--spacing-08, 0.5rem)}";
8
8
 
9
9
  const MONTHS_TO_ADD = 3;
10
10
  const YooCalendarComponent = class {
@@ -407,7 +407,7 @@ const YooFormAutocompleteComponent = class {
407
407
  endDate: search.endDate,
408
408
  sortAndFilters: this.sortsAndFilters,
409
409
  search: search.search,
410
- data: formDynamic.data
410
+ data: formDynamic === null || formDynamic === void 0 ? void 0 : formDynamic.data
411
411
  }).then((ret) => {
412
412
  var _a, _b;
413
413
  if (search.currentPage === 0) {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, i as createEvent, h, j as Build, e as Host, g as getElement } from './index-019c1b1a.js';
2
- import { t as translate, aZ as showToast, dC as getFormCapturedFileSize, ae as showAlert, W as pipes, R as isNullOrUndefined, ai as isImage, ag as isVideo, dv as isAudio, d as isNativeMobile, cb as addFilePrefix, e as isAndroid, ce as moveToImageDirectory, _ as getSession, n as showModal, v as isIOS, u as isIphoneX, bP as StatusBar, dD as isLenovo, af as showActionSheet, dE as updatePathSessionId, o as isWeb, bG as isSafari, E as getAsyncExtraData, dw as isUnsplashUrl, ah as isGif, dg as asyncWaterfall, cc as read, F as isNativeFilePath, aj as downloadFile, am as isFile, dF as getMimeType, bd as isOffline, dG as hasLargeFile, T as translateMulti, dh as showContextMenu, av as isPhotoEdited, aN as isImageUrl, dd as images, dH as audios, de as videos, aw as changeExtension, ar as isCloudinaryLink } from './index-60d331ff.js';
2
+ import { t as translate, aZ as showToast, dC as getFormCapturedFileSize, ae as showAlert, W as pipes, R as isNullOrUndefined, ai as isImage, ag as isVideo, dv as isAudio, d as isNativeMobile, cb as addFilePrefix, e as isAndroid, ce as moveToImageDirectory, _ as getSession, n as showModal, v as isIOS, u as isIphoneX, bP as StatusBar, dD as isLenovo, af as showActionSheet, dE as updatePathSessionId, o as isWeb, bG as isSafari, E as getAsyncExtraData, dw as isUnsplashUrl, ah as isGif, dg as asyncWaterfall, cc as read, F as isNativeFilePath, aj as downloadFile, am as isFile, dF as getMimeType, bd as isOffline, dG as hasLargeFile, T as translateMulti, dh as showContextMenu, av as isPhotoEdited, dd as images, dH as audios, de as videos, aw as changeExtension, ar as isCloudinaryLink } from './index-60d331ff.js';
3
3
  import { P as PictureSourceType, M as MediaType, i as importMultipleFromLibrary, g as getPicture, b as getVideo, s as showAudioRecorder, c as MediaCapture, a as getVideoDevices } from './camera-helpers-8ab083cd.js';
4
4
  import { k as keys, x as intersection, l as isNumber, a as isArray, a1 as assignInWith, N as assign, c as compact, q as clone, C as isUndefined } from './lodash-b0ad17f3.js';
5
5
  import { f as querySelectorAllDeep, q as querySelectorDeep, m as showImageCropper, h as showPhotoEditor, c as showSlidesMedia, b as getAppContext } from './common-helpers-7760f0f6.js';
@@ -1186,7 +1186,7 @@ const YooFormCaptureComponent = class {
1186
1186
  return file;
1187
1187
  },
1188
1188
  (file) => {
1189
- if (isImage(file) && !isImageUrl(file)) {
1189
+ if (isImage(file) && typeof file !== 'string') {
1190
1190
  return read(file, 'blob');
1191
1191
  }
1192
1192
  else if (isAudio(file) && !isNativeMobile()) {
@@ -240,7 +240,7 @@ const YooFormCarouselComponent = class {
240
240
  return this.renderVideo(src, index);
241
241
  }
242
242
  else if (type === 'audio') {
243
- return h("yoo-audio-player", { class: "audio-player", src: src });
243
+ return h("yoo-audio-player", { onClick: ev => ev === null || ev === void 0 ? void 0 : ev.stopPropagation(), class: "audio-player", src: src });
244
244
  }
245
245
  else if (type === 'document') {
246
246
  return h("yoo-form-document", { class: "expanded", isPdf: this.isPdf, extraClass: "feed", showDialog: true, showActionSheet: isNativeMobile() && isPdf(src), document: src });
@@ -25,7 +25,7 @@ const isNonRangeAbsolute = (operator) => [FormFilterDateOperator.absoluteOn, For
25
25
  const isAbsolute = (operator) => isRangeAbsolute(operator) || isNonRangeAbsolute(operator);
26
26
  const isRelative = (operator) => !isAbsolute(operator);
27
27
 
28
- const formFilterDateCss = ":host{--dialog-max-height:initial;--dialog-position:initial;--dialog-width:initial}:host h1{margin:0;color:var(--dark, #000000);font-size:inherit}:host yoo-calendar{width:12.5rem;height:11.875rem}:host yoo-form-input{width:5rem;padding-left:1rem}:host yoo-calendar,:host .input{grid-column:2/2}:host .input:not([hidden]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .option{display:grid;grid-template-rows:repeat(2, auto);grid-template-columns:auto 1fr;-ms-flex-align:center;align-items:center;-webkit-column-gap:var(--spacing-08, 0.5rem);-moz-column-gap:var(--spacing-08, 0.5rem);column-gap:var(--spacing-08, 0.5rem)}:host .options{display:grid;margin-bottom:var(--spacing-08, 0.5rem)}:host([size=small]) yoo-calendar,:host([size=small]) .input,:host([size=medium]) yoo-calendar,:host([size=medium]) .input{margin-top:var(--spacing-04, 0.25rem)}:host([size=small]) .options,:host([size=medium]) .options{gap:var(--spacing-08, 0.5rem)}:host([size=large]) yoo-calendar,:host([size=large]) .input{margin-top:var(--spacing-08, 0.5rem)}:host([size=large]) .options{gap:var(--spacing-16, 1rem)}";
28
+ const formFilterDateCss = ":host{--dialog-max-height:initial;--dialog-position:initial;--dialog-width:initial}:host h1{margin:0;color:var(--dark, #000000);font-size:inherit}:host yoo-calendar{width:13rem;height:13rem;padding:var(--spacing-08, 0.5rem)}:host yoo-form-input{width:5rem;padding-left:1rem}:host yoo-calendar,:host .input{grid-column:2/2}:host .input:not([hidden]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .option{display:grid;grid-template-rows:repeat(2, auto);grid-template-columns:auto 1fr;-ms-flex-align:center;align-items:center;-webkit-column-gap:var(--spacing-08, 0.5rem);-moz-column-gap:var(--spacing-08, 0.5rem);column-gap:var(--spacing-08, 0.5rem)}:host .options{display:grid;margin-bottom:var(--spacing-08, 0.5rem)}:host([size=small]) yoo-calendar,:host([size=small]) .input,:host([size=medium]) yoo-calendar,:host([size=medium]) .input{margin-top:var(--spacing-04, 0.25rem)}:host([size=small]) .options,:host([size=medium]) .options{gap:var(--spacing-08, 0.5rem)}:host([size=large]) yoo-calendar,:host([size=large]) .input{margin-top:var(--spacing-08, 0.5rem)}:host([size=large]) .options{gap:var(--spacing-16, 1rem)}";
29
29
 
30
30
  const suffixes = {
31
31
  [FormFilterDateOperator.relativeDay]: 'YOOBICD',