@yoobic/yobi 8.2.0-25 → 8.2.0-26
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/yoo-form-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-multi-input.cjs.entry.js +9 -9
- package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +1 -1
- package/dist/collection/components/form/form-multi-input/form-multi-input.js +10 -10
- package/dist/design-system/yoo-form-autocomplete.entry.js +1 -1
- package/dist/design-system/yoo-form-multi-input.entry.js +11 -11
- package/dist/esm/yoo-form-autocomplete.entry.js +1 -1
- package/dist/esm/yoo-form-multi-input.entry.js +11 -11
- package/package.json +1 -1
|
@@ -411,7 +411,7 @@ const YooFormAutocompleteComponent = class {
|
|
|
411
411
|
endDate: search.endDate,
|
|
412
412
|
sortAndFilters: this.sortsAndFilters,
|
|
413
413
|
search: search.search,
|
|
414
|
-
data: formDynamic.data
|
|
414
|
+
data: formDynamic === null || formDynamic === void 0 ? void 0 : formDynamic.data
|
|
415
415
|
}).then((ret) => {
|
|
416
416
|
var _a, _b;
|
|
417
417
|
if (search.currentPage === 0) {
|
|
@@ -50,13 +50,6 @@ const YooFormMultiInputComponent = class {
|
|
|
50
50
|
this.dragAndDropPendingEvent = null;
|
|
51
51
|
this.dragAndDropPendingEventTimeout = null;
|
|
52
52
|
this.sortables = [];
|
|
53
|
-
this.setValueAndEmitChanges = (value, skipValueAssignment = false) => {
|
|
54
|
-
if (!skipValueAssignment) {
|
|
55
|
-
this.value = value;
|
|
56
|
-
}
|
|
57
|
-
const finalValue = this.isSimpleArray ? this.value[0] : this.value;
|
|
58
|
-
formInputHelpers.setValueAndValidateInput(finalValue, this, false, true, true);
|
|
59
|
-
};
|
|
60
53
|
}
|
|
61
54
|
async reset(keys) {
|
|
62
55
|
this.cells = this.getCells();
|
|
@@ -422,13 +415,19 @@ const YooFormMultiInputComponent = class {
|
|
|
422
415
|
if (this.reverseValueDimensions) {
|
|
423
416
|
values = this.arrayTransposing(values);
|
|
424
417
|
}
|
|
425
|
-
|
|
426
|
-
index$1.debounce(this.setValueAndEmitChanges.bind(this), 500)(values);
|
|
418
|
+
this.setValueAndEmitChanges(values);
|
|
427
419
|
}
|
|
428
420
|
onTranslationValueUpdated(ev) {
|
|
429
421
|
ev.stopPropagation();
|
|
430
422
|
this.translationValueUpdated.emit(ev.detail);
|
|
431
423
|
}
|
|
424
|
+
setValueAndEmitChanges(value, skipValueAssignment = false) {
|
|
425
|
+
if (!skipValueAssignment) {
|
|
426
|
+
this.value = value;
|
|
427
|
+
}
|
|
428
|
+
const finalValue = this.isSimpleArray ? this.value[0] : this.value;
|
|
429
|
+
formInputHelpers.setValueAndValidateInput(finalValue, this, false, true, true);
|
|
430
|
+
}
|
|
432
431
|
isLinkedList() {
|
|
433
432
|
return this.columns.some((c) => c.linkedRow);
|
|
434
433
|
}
|
|
@@ -530,6 +529,7 @@ const YooFormMultiInputComponent = class {
|
|
|
530
529
|
onFetchCustomData: (ev) => this.onFetchEvent(ev, cell.rowIndex, cell.colIndex, this.fetchCustomData),
|
|
531
530
|
onTranslationValueUpdated: (ev) => this.onTranslationValueUpdated(ev),
|
|
532
531
|
clearable: false,
|
|
532
|
+
debounce: TagType === 'yoo-form-input' && 500,
|
|
533
533
|
maxHeight: this.host.classList.contains('image-collection') ? 60 : undefined,
|
|
534
534
|
minHeight: this.host.classList.contains('image-collection') ? 60 : undefined,
|
|
535
535
|
customZIndex: TagType === 'yoo-form-text-editor' && 20000 - cell.rowIndex,
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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,
|
|
@@ -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,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,
|
|
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 {
|
|
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
|
-
|
|
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,
|
|
@@ -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,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,
|
|
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 {
|
|
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
|
-
|
|
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,
|