@yoobic/yobi 8.2.0-25 → 8.2.0-28
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/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/yoo-audio-player.cjs.entry.js +23 -12
- package/dist/cjs/yoo-flip-card.cjs.entry.js +3 -0
- package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-carousel.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-creator-block-expandable.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-date-time.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-dynamic.cjs.entry.js +6 -2
- package/dist/cjs/yoo-form-input-container.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-multi-input.cjs.entry.js +9 -9
- package/dist/cjs/yoo-form-text-editor.cjs.entry.js +4 -0
- package/dist/cjs/yoo-kpi-external.cjs.entry.js +1 -1
- package/dist/cjs/yoo-range.cjs.entry.js +1 -1
- package/dist/cjs/yoo-reveal.cjs.entry.js +6 -1
- package/dist/cjs/yoo-text-sequence.cjs.entry.js +1 -4
- package/dist/cjs/yoo-videoplayer-videojs.cjs.entry.js +9 -7
- package/dist/collection/components/1.atoms/flip-card/flip-card.js +19 -0
- package/dist/collection/components/1.atoms/range/range.js +1 -1
- package/dist/collection/components/2.molecules/audio-player/audio-player.js +28 -15
- package/dist/collection/components/2.molecules/reveal/reveal.css +9 -1
- package/dist/collection/components/2.molecules/reveal/reveal.js +24 -0
- package/dist/collection/components/2.molecules/text-sequence/text-sequence.js +1 -4
- package/dist/collection/components/3.organisms/video-player/videoplayer-videojs/videoplayer-videojs.js +9 -7
- package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +1 -1
- package/dist/collection/components/form/form-carousel/form-carousel.js +1 -1
- package/dist/collection/components/form/form-date-time/form-date-time.js +1 -1
- package/dist/collection/components/form/form-dynamic/form-dynamic.css +0 -2
- package/dist/collection/components/form/form-dynamic/form-dynamic.js +5 -1
- package/dist/collection/components/form/form-input-container/form-input-container.css +1 -1
- package/dist/collection/components/form/form-multi-input/form-multi-input.js +10 -10
- package/dist/collection/components/form/form-text-editor/form-text-editor.js +23 -0
- package/dist/collection/components/form-creator/form-creator-block-expandable/form-creator-block-expandable.js +3 -3
- package/dist/collection/feature-platform/insight/kpi-external/kpi-external.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/yoo-audio-player.entry.js +23 -12
- package/dist/design-system/yoo-flip-card.entry.js +3 -0
- package/dist/design-system/yoo-form-autocomplete.entry.js +1 -1
- package/dist/design-system/yoo-form-carousel.entry.js +1 -1
- package/dist/design-system/yoo-form-creator-block-expandable.entry.js +3 -3
- package/dist/design-system/yoo-form-date-time.entry.js +1 -1
- package/dist/design-system/yoo-form-dynamic.entry.js +6 -2
- package/dist/design-system/yoo-form-input-container.entry.js +1 -1
- package/dist/design-system/yoo-form-multi-input.entry.js +11 -11
- package/dist/design-system/yoo-form-text-editor.entry.js +4 -0
- package/dist/design-system/yoo-kpi-external.entry.js +1 -1
- package/dist/design-system/yoo-range.entry.js +1 -1
- package/dist/design-system/yoo-reveal.entry.js +6 -1
- package/dist/design-system/yoo-text-sequence.entry.js +1 -4
- package/dist/design-system/yoo-videoplayer-videojs.entry.js +9 -7
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/yoo-audio-player.entry.js +23 -12
- package/dist/esm/yoo-flip-card.entry.js +3 -0
- package/dist/esm/yoo-form-autocomplete.entry.js +1 -1
- package/dist/esm/yoo-form-carousel.entry.js +1 -1
- package/dist/esm/yoo-form-creator-block-expandable.entry.js +3 -3
- package/dist/esm/yoo-form-date-time.entry.js +1 -1
- package/dist/esm/yoo-form-dynamic.entry.js +6 -2
- package/dist/esm/yoo-form-input-container.entry.js +1 -1
- package/dist/esm/yoo-form-multi-input.entry.js +11 -11
- package/dist/esm/yoo-form-text-editor.entry.js +4 -0
- package/dist/esm/yoo-kpi-external.entry.js +1 -1
- package/dist/esm/yoo-range.entry.js +1 -1
- package/dist/esm/yoo-reveal.entry.js +6 -1
- package/dist/esm/yoo-text-sequence.entry.js +1 -4
- package/dist/esm/yoo-videoplayer-videojs.entry.js +9 -7
- package/dist/types/components/1.atoms/flip-card/flip-card.d.ts +1 -0
- package/dist/types/components/2.molecules/audio-player/audio-player.d.ts +7 -3
- package/dist/types/components/2.molecules/reveal/reveal.d.ts +2 -0
- package/dist/types/components/2.molecules/text-sequence/text-sequence.d.ts +0 -1
- package/dist/types/components/form/form-text-editor/form-text-editor.d.ts +1 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/mission/mission.interface.d.ts +1 -2
- package/package.json +1 -1
- package/dist/types/components/form/image-cropper-dialog/pintura/pintura.d.ts +0 -1070
|
@@ -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,
|
|
@@ -109,6 +109,10 @@ export class YooFormTextEditorComponent {
|
|
|
109
109
|
onTranslationsChange() {
|
|
110
110
|
this.setLocalValue(true);
|
|
111
111
|
}
|
|
112
|
+
async forceUpdateValue(value) {
|
|
113
|
+
setValueAndValidateInput(value, this.host);
|
|
114
|
+
this.editor.html.set(value);
|
|
115
|
+
}
|
|
112
116
|
async updateSizing() {
|
|
113
117
|
var _a;
|
|
114
118
|
if ((_a = this === null || this === void 0 ? void 0 : this.editor) === null || _a === void 0 ? void 0 : _a.size) {
|
|
@@ -1260,6 +1264,25 @@ export class YooFormTextEditorComponent {
|
|
|
1260
1264
|
}
|
|
1261
1265
|
}]; }
|
|
1262
1266
|
static get methods() { return {
|
|
1267
|
+
"forceUpdateValue": {
|
|
1268
|
+
"complexType": {
|
|
1269
|
+
"signature": "(value: string) => Promise<void>",
|
|
1270
|
+
"parameters": [{
|
|
1271
|
+
"tags": [],
|
|
1272
|
+
"text": ""
|
|
1273
|
+
}],
|
|
1274
|
+
"references": {
|
|
1275
|
+
"Promise": {
|
|
1276
|
+
"location": "global"
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
"return": "Promise<void>"
|
|
1280
|
+
},
|
|
1281
|
+
"docs": {
|
|
1282
|
+
"text": "",
|
|
1283
|
+
"tags": []
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1263
1286
|
"updateSizing": {
|
|
1264
1287
|
"complexType": {
|
|
1265
1288
|
"signature": "() => Promise<void>",
|
|
@@ -308,8 +308,6 @@ export class YooFormCreatorBlockExpandableComponent {
|
|
|
308
308
|
overflow: 'hidden',
|
|
309
309
|
onComplete: () => {
|
|
310
310
|
this.isAnimating = false;
|
|
311
|
-
this.isExpanded = shouldExpand;
|
|
312
|
-
this.blockExpanded.emit({ expanded: shouldExpand, name: this.formField.name });
|
|
313
311
|
if (slotContent) {
|
|
314
312
|
slotContent.style.display = 'block';
|
|
315
313
|
gsapTo(slotContent, 0.35, { opacity: 1 });
|
|
@@ -324,7 +322,9 @@ export class YooFormCreatorBlockExpandableComponent {
|
|
|
324
322
|
},
|
|
325
323
|
ease: Power3.easeIn
|
|
326
324
|
};
|
|
327
|
-
const animationDelay =
|
|
325
|
+
const animationDelay = 0.5;
|
|
326
|
+
this.isExpanded = shouldExpand;
|
|
327
|
+
this.blockExpanded.emit({ expanded: shouldExpand, name: this.formField.name });
|
|
328
328
|
gsapFromTo(contentBlock, animationDelay, from, to);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
@@ -60,7 +60,7 @@ export class YooKpiExternalComponent {
|
|
|
60
60
|
const props = {
|
|
61
61
|
// sandboxed iframes without allow-top-navigation, allow-top-navigation-by-user-activation or allow-popups flags
|
|
62
62
|
// will prevent them to navigate away from main webview
|
|
63
|
-
sandbox: `allow-scripts allow-same-origin allow-forms ${isWeb(this.host) ? 'allow-top-navigation-by-user-activation allow-downloads' : ''}`,
|
|
63
|
+
sandbox: `allow-scripts allow-same-origin allow-forms ${isWeb(this.host) ? 'allow-top-navigation-by-user-activation allow-downloads allow-popups' : ''}`,
|
|
64
64
|
...(isProviderTableau ? { srcDoc } : { src: this.config.url }),
|
|
65
65
|
frameBorder: 0
|
|
66
66
|
};
|