@yoobic/yobi 7.7.40 → 7.7.44
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/{draggable-tags-helpers-b353ad65.js → draggable-tags-helpers-557e8f4c.js} +21 -20
- package/dist/cjs/{form-helpers-b1514b99.js → form-helpers-6b5129aa.js} +2 -8
- package/dist/cjs/{grid-renderers-75f5517f.js → grid-renderers-443a0f25.js} +10 -2
- package/dist/cjs/index.cjs.js +4 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{operation-helpers-14994f09.js → operation-helpers-fd31a44e.js} +7 -7
- package/dist/cjs/string-helpers-4852718a.js +14 -0
- package/dist/cjs/yoo-action-sheet-controller_15.cjs.entry.js +7 -5
- package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +48 -8
- package/dist/cjs/yoo-camera-preview-dialog_7.cjs.entry.js +2 -1
- package/dist/cjs/yoo-campaign-heading.cjs.entry.js +1 -1
- package/dist/cjs/yoo-card-list-image_12.cjs.entry.js +4 -3
- package/dist/cjs/yoo-entity-search.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-categorize-words.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-choice_4.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-connect.cjs.entry.js +204 -323
- package/dist/cjs/yoo-form-creator-translate-dialog.cjs.entry.js +9 -7
- package/dist/cjs/yoo-form-image-tagging.cjs.entry.js +23 -15
- package/dist/cjs/yoo-form-json.cjs.entry.js +2 -1
- package/dist/cjs/yoo-form-missing-word.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-product-batch.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-ranking.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-text-editor.cjs.entry.js +1 -0
- package/dist/cjs/yoo-form-todo-single.cjs.entry.js +1 -1
- package/dist/cjs/yoo-mission-heading_3.cjs.entry.js +1 -1
- package/dist/cjs/yoo-mission-results.cjs.entry.js +1 -1
- package/dist/cjs/yoo-mission-todo.cjs.entry.js +1 -1
- package/dist/collection/components/1.atoms/loader/loader.css +12 -0
- package/dist/collection/components/1.atoms/markdown/markdown.js +20 -1
- package/dist/collection/components/entities/card-list/card-list.css +6 -0
- package/dist/collection/components/entities/entity/entity.js +2 -1
- package/dist/collection/components/entities/entity-search/entity-search.css +4 -0
- package/dist/collection/components/entities/entity-search/entity-search.js +2 -2
- package/dist/collection/components/form/form-connect/form-connect.css +35 -33
- package/dist/collection/components/form/form-connect/form-connect.js +207 -375
- package/dist/collection/components/form/form-connect/types/index.js +1 -1
- package/dist/collection/components/form/form-dynamic/form-dynamic.js +42 -2
- package/dist/collection/components/form/form-image-tagging/form-image-tagging.js +41 -16
- package/dist/collection/components/form/form-text-editor/form-text-editor.js +1 -0
- package/dist/collection/components/form-creator/form-creator-translate-dialog/form-creator-translate-dialog.js +9 -8
- package/dist/collection/components/grid/ag-grid/grid-renderers.js +8 -0
- package/dist/collection/components/grid/grid/grid.js +41 -1
- package/dist/collection/utils/helpers/draggable-tags-helpers.js +21 -20
- package/dist/collection/utils/helpers/operation-helpers.js +7 -7
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-72b027cd.entry.js → p-08c3e5e4.entry.js} +1 -1
- package/dist/design-system/{p-d5b214f0.entry.js → p-1527ca6a.entry.js} +1 -1
- package/dist/design-system/{p-8214c671.js → p-17ca9bca.js} +1 -1
- package/dist/design-system/{p-f013d119.entry.js → p-2ed44cf9.entry.js} +1 -1
- package/dist/design-system/p-3379386f.entry.js +1 -0
- package/dist/design-system/p-3cf42f38.js +1 -0
- package/dist/design-system/{p-800cb056.entry.js → p-434dbb2f.entry.js} +1 -1
- package/dist/design-system/{p-303c3c22.entry.js → p-46981663.entry.js} +1 -1
- package/dist/design-system/{p-8055dcaf.entry.js → p-4a7ab005.entry.js} +1 -1
- package/dist/design-system/p-5062d1e2.entry.js +1 -0
- package/dist/design-system/p-51cd61bd.entry.js +1 -0
- package/dist/design-system/p-5450cf9b.js +1 -0
- package/dist/design-system/{p-619154de.entry.js → p-56f8a567.entry.js} +1 -1
- package/dist/design-system/p-623e854e.entry.js +1 -0
- package/dist/design-system/{p-d17b376e.entry.js → p-687dec7e.entry.js} +1 -1
- package/dist/design-system/{p-6dab9545.entry.js → p-6ddf846e.entry.js} +1 -1
- package/dist/design-system/p-716336bf.js +1 -0
- package/dist/design-system/p-8d5254c0.js +1 -0
- package/dist/design-system/p-9a993e45.entry.js +1 -0
- package/dist/design-system/p-ba32098a.entry.js +1 -0
- package/dist/design-system/{p-47077c2f.entry.js → p-c82876d6.entry.js} +1 -1
- package/dist/design-system/{p-5a4a35ae.entry.js → p-ddd372bb.entry.js} +1 -1
- package/dist/design-system/{p-1d437750.entry.js → p-e3cc14ba.entry.js} +3 -3
- package/dist/design-system/{p-4a323ffb.entry.js → p-e560bd90.entry.js} +1 -1
- package/dist/design-system/{p-1b60268b.entry.js → p-e960fda6.entry.js} +1 -1
- package/dist/design-system/p-f31faeba.entry.js +1 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/{draggable-tags-helpers-e3b9cd11.js → draggable-tags-helpers-a9a159b2.js} +21 -20
- package/dist/esm/{form-helpers-6f30100d.js → form-helpers-a68bb5a2.js} +1 -7
- package/dist/esm/{grid-renderers-3920dbf1.js → grid-renderers-3e052fa0.js} +10 -2
- package/dist/esm/index.js +4 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{operation-helpers-86666c74.js → operation-helpers-4c9210d3.js} +7 -7
- package/dist/esm/string-helpers-9646d8e3.js +11 -0
- package/dist/esm/yoo-action-sheet-controller_15.entry.js +7 -5
- package/dist/esm/yoo-ag-grid_96.entry.js +48 -8
- package/dist/esm/yoo-camera-preview-dialog_7.entry.js +2 -1
- package/dist/esm/yoo-campaign-heading.entry.js +1 -1
- package/dist/esm/yoo-card-list-image_12.entry.js +4 -3
- package/dist/esm/yoo-entity-search.entry.js +3 -3
- package/dist/esm/yoo-form-categorize-words.entry.js +1 -1
- package/dist/esm/yoo-form-choice_4.entry.js +1 -1
- package/dist/esm/yoo-form-connect.entry.js +206 -325
- package/dist/esm/yoo-form-creator-translate-dialog.entry.js +10 -8
- package/dist/esm/yoo-form-image-tagging.entry.js +24 -16
- package/dist/esm/yoo-form-json.entry.js +2 -1
- package/dist/esm/yoo-form-missing-word.entry.js +1 -1
- package/dist/esm/yoo-form-product-batch.entry.js +1 -1
- package/dist/esm/yoo-form-ranking.entry.js +1 -1
- package/dist/esm/yoo-form-swipe-cards.entry.js +1 -1
- package/dist/esm/yoo-form-text-editor.entry.js +1 -0
- package/dist/esm/yoo-form-todo-single.entry.js +1 -1
- package/dist/esm/yoo-mission-heading_3.entry.js +1 -1
- package/dist/esm/yoo-mission-results.entry.js +1 -1
- package/dist/esm/yoo-mission-todo.entry.js +1 -1
- package/dist/types/components/1.atoms/markdown/markdown.d.ts +1 -0
- package/dist/types/components/form/form-connect/form-connect.d.ts +31 -48
- package/dist/types/components/form/form-connect/types/index.d.ts +4 -5
- package/dist/types/components/form/form-dynamic/form-dynamic.d.ts +1 -0
- package/dist/types/components/form/form-image-tagging/form-image-tagging.d.ts +7 -4
- package/dist/types/components/form-creator/form-creator-translate-dialog/form-creator-translate-dialog.d.ts +1 -2
- package/dist/types/components/grid/grid/grid.d.ts +1 -0
- package/dist/types/components.d.ts +6 -9
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/file/file.interface.d.ts +1 -0
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/mission-description/mission-description.interface.d.ts +2 -2
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/services/async-extra-data/async-extra-data.interface.d.ts +1 -1
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/utils/src/helpers/string-helpers.d.ts +1 -0
- package/package.json +1 -1
- package/dist/design-system/p-15699698.entry.js +0 -1
- package/dist/design-system/p-3ea3dc83.js +0 -1
- package/dist/design-system/p-72fe82e5.js +0 -1
- package/dist/design-system/p-8cfecc25.entry.js +0 -1
- package/dist/design-system/p-983e8f1b.js +0 -1
- package/dist/design-system/p-98bf6e13.entry.js +0 -1
- package/dist/design-system/p-aaf4c6a2.entry.js +0 -1
- package/dist/design-system/p-ab3cb64c.entry.js +0 -1
- package/dist/design-system/p-adbb882f.entry.js +0 -1
- package/dist/design-system/p-ef1e0f03.entry.js +0 -1
|
@@ -6,6 +6,7 @@ const index = require('./index-fd52e687.js');
|
|
|
6
6
|
const inputBar_interface = require('./input-bar.interface-b96b7107.js');
|
|
7
7
|
const rrule = require('./rrule-f8e7fec2.js');
|
|
8
8
|
const formCreatorHelpers = require('./form-creator-helpers-886c1eaa.js');
|
|
9
|
+
const stringHelpers = require('./string-helpers-4852718a.js');
|
|
9
10
|
const index$1 = require('./index-2557ade6.js');
|
|
10
11
|
const cloneDeep = require('./cloneDeep-e00dc6ae.js');
|
|
11
12
|
const isEmpty = require('./isEmpty-1723db8b.js');
|
|
@@ -147,9 +148,6 @@ const YooFormCreatorTranslateDialogComponent = class {
|
|
|
147
148
|
isCreateTranslationMode() {
|
|
148
149
|
return this.mode === 'create' || this.mode === 'createInitial';
|
|
149
150
|
}
|
|
150
|
-
isTextEditor(translatableFormField, fieldType) {
|
|
151
|
-
return translatableFormField === 'description' || translatableFormField === 'explanation' || (translatableFormField === 'value' && fieldType === 'information');
|
|
152
|
-
}
|
|
153
151
|
initTranslationForms() {
|
|
154
152
|
var _a;
|
|
155
153
|
this.selectedFieldLocation = this.initialSelectedFieldLocation;
|
|
@@ -219,13 +217,14 @@ const YooFormCreatorTranslateDialogComponent = class {
|
|
|
219
217
|
field.values = field.values.filter((val) => !field.answer.includes(val));
|
|
220
218
|
}
|
|
221
219
|
inputBar_interface.TRANSLATABLE_FORM_FIELD_ATTRIBUTES.forEach((translatableFormField) => {
|
|
220
|
+
const isRTE = stringHelpers.isHTML(rrule.translateMulti((field === null || field === void 0 ? void 0 : field[translatableFormField]) || ''));
|
|
222
221
|
if (field[translatableFormField] && !(hasComplexSentence && translatableFormField === 'sentence')) {
|
|
223
222
|
if (translatableFormField === 'complexSentence') {
|
|
224
223
|
hasComplexSentence = true;
|
|
225
224
|
}
|
|
226
225
|
slides[0].items.push({
|
|
227
226
|
type: inputBar_interface.FormFieldType.textarea,
|
|
228
|
-
language:
|
|
227
|
+
language: isRTE && 'html',
|
|
229
228
|
autoInitialRows: true,
|
|
230
229
|
title: rrule.translate(translatableFormField.toUpperCase()),
|
|
231
230
|
name: `${translatableFormField}Base`,
|
|
@@ -234,7 +233,7 @@ const YooFormCreatorTranslateDialogComponent = class {
|
|
|
234
233
|
});
|
|
235
234
|
slides[0].items.push({
|
|
236
235
|
type: inputBar_interface.FormFieldType.textarea,
|
|
237
|
-
language:
|
|
236
|
+
language: isRTE && 'html',
|
|
238
237
|
autoInitialRows: true,
|
|
239
238
|
title: rrule.translate(translatableFormField.toUpperCase()),
|
|
240
239
|
name: translatableFormField,
|
|
@@ -262,11 +261,12 @@ const YooFormCreatorTranslateDialogComponent = class {
|
|
|
262
261
|
hasComplexValues = true;
|
|
263
262
|
const value = isString.isString(multiInputValue) ? multiInputValue : multiInputValue.text;
|
|
264
263
|
if (value) {
|
|
264
|
+
const isRTE = stringHelpers.isHTML(rrule.translateMulti(value));
|
|
265
265
|
slides[0].items.push({
|
|
266
266
|
type: inputBar_interface.FormFieldType.textarea,
|
|
267
267
|
title: rrule.translate('VALUES'),
|
|
268
268
|
hideLabel: complexValueIndex !== 0 || valueIndex !== 0,
|
|
269
|
-
language:
|
|
269
|
+
language: isRTE && 'html',
|
|
270
270
|
formatAmpersandSymbol: true,
|
|
271
271
|
autoInitialRows: true,
|
|
272
272
|
name: `${complexTranslatableAttr}${complexValueIndex}${valueIndex}Base`,
|
|
@@ -277,7 +277,7 @@ const YooFormCreatorTranslateDialogComponent = class {
|
|
|
277
277
|
type: inputBar_interface.FormFieldType.textarea,
|
|
278
278
|
title: rrule.translate('VALUES'),
|
|
279
279
|
hideLabel: complexValueIndex !== 0 || valueIndex !== 0,
|
|
280
|
-
language:
|
|
280
|
+
language: isRTE && 'html',
|
|
281
281
|
formatAmpersandSymbol: true,
|
|
282
282
|
autoInitialRows: true,
|
|
283
283
|
name: `${complexTranslatableAttr}${complexValueIndex}${valueIndex}`,
|
|
@@ -313,6 +313,7 @@ const YooFormCreatorTranslateDialogComponent = class {
|
|
|
313
313
|
hideLabel: valueIndex > 0,
|
|
314
314
|
formatAmpersandSymbol: true,
|
|
315
315
|
autoInitialRows: true,
|
|
316
|
+
language: stringHelpers.isHTML(rrule.translate(value)) && 'html',
|
|
316
317
|
name: `${singleArrayAttr}${valueIndex}Base`,
|
|
317
318
|
width: 292,
|
|
318
319
|
readonly: this.isTranslator
|
|
@@ -323,6 +324,7 @@ const YooFormCreatorTranslateDialogComponent = class {
|
|
|
323
324
|
hideLabel: valueIndex > 0,
|
|
324
325
|
formatAmpersandSymbol: true,
|
|
325
326
|
autoInitialRows: true,
|
|
327
|
+
language: stringHelpers.isHTML(rrule.translate(value)) && 'html',
|
|
326
328
|
name: `${singleArrayAttr}${valueIndex}`,
|
|
327
329
|
inlineActions: [
|
|
328
330
|
{ icon: 'translate', iconColor: 'stable-alt', text: 'GOOGLETRANSLATE', handler: () => this.onTranslateField(value, locale) },
|
|
@@ -8,7 +8,7 @@ require('./input-bar.interface-b96b7107.js');
|
|
|
8
8
|
require('./ResizeObserver.es-a563c836.js');
|
|
9
9
|
const annotationsHelpers = require('./annotations-helpers-558ceb1e.js');
|
|
10
10
|
const commonHelpers = require('./common-helpers-312e97a3.js');
|
|
11
|
-
const draggableTagsHelpers = require('./draggable-tags-helpers-
|
|
11
|
+
const draggableTagsHelpers = require('./draggable-tags-helpers-557e8f4c.js');
|
|
12
12
|
const formInputHelpers = require('./form-input-helpers-3a4341c2.js');
|
|
13
13
|
const debounce = require('./debounce-fda84c7b.js');
|
|
14
14
|
require('./isUndefined-8f9cfd10.js');
|
|
@@ -47,9 +47,6 @@ const YooFormImageTaggingComponent = class {
|
|
|
47
47
|
this.placeholder = 'DRAGDROPTAGS';
|
|
48
48
|
this.zones = [];
|
|
49
49
|
}
|
|
50
|
-
async isValid() {
|
|
51
|
-
this.validate();
|
|
52
|
-
}
|
|
53
50
|
onModalAnimationFinished(iaf) {
|
|
54
51
|
if (iaf && this.zones.length && draggableTagsHelpers.getTagZone(this.zones)) {
|
|
55
52
|
draggableTagsHelpers.setDynamicTagZoneHeight(draggableTagsHelpers.getTagZone(this.zones).element);
|
|
@@ -58,6 +55,9 @@ const YooFormImageTaggingComponent = class {
|
|
|
58
55
|
onRequireChanged() {
|
|
59
56
|
this.validate();
|
|
60
57
|
}
|
|
58
|
+
onAnnotationsChanged() {
|
|
59
|
+
this.hasAnnotationsChanged = true;
|
|
60
|
+
}
|
|
61
61
|
onValuesChanged(newValues, oldValues) {
|
|
62
62
|
this.hasValuesChanged = false;
|
|
63
63
|
const hasDuplicatedValues = draggableTagsHelpers.hasDuplicates(newValues) === 1;
|
|
@@ -69,8 +69,16 @@ const YooFormImageTaggingComponent = class {
|
|
|
69
69
|
this.hasValuesChanged = true;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
onIsVisibleChanged() {
|
|
73
|
+
// Timeout set here to reset the draggables in case of being
|
|
74
|
+
// in a slide to prevent the non-draggable tags issue
|
|
75
|
+
this.isVisible && setTimeout(() => {
|
|
76
|
+
this.shouldRender = true;
|
|
77
|
+
index.forceUpdate(this);
|
|
78
|
+
}, 150);
|
|
79
|
+
}
|
|
80
|
+
async isValid() {
|
|
81
|
+
this.validate();
|
|
74
82
|
}
|
|
75
83
|
componentWillLoad() {
|
|
76
84
|
var _a;
|
|
@@ -83,16 +91,16 @@ const YooFormImageTaggingComponent = class {
|
|
|
83
91
|
}
|
|
84
92
|
}
|
|
85
93
|
componentDidUpdate() {
|
|
86
|
-
if (this.livePreview && (this.hasValuesChanged || this.hasAnnotationsChanged)) {
|
|
94
|
+
if ((this.livePreview && (this.hasValuesChanged || this.hasAnnotationsChanged)) || this.shouldRender) {
|
|
95
|
+
this.shouldRender = false;
|
|
87
96
|
this.initImageTagging();
|
|
88
97
|
}
|
|
89
98
|
}
|
|
90
99
|
validate() {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
100
|
+
var _a, _b;
|
|
101
|
+
this.validity = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) === ((_b = this.annotations) === null || _b === void 0 ? void 0 : _b.length);
|
|
102
|
+
this.validityChanged.emit(this.validity);
|
|
103
|
+
return this.validity;
|
|
96
104
|
}
|
|
97
105
|
initImageTagging() {
|
|
98
106
|
if (this.image && this.outerContainerElement) {
|
|
@@ -131,7 +139,7 @@ const YooFormImageTaggingComponent = class {
|
|
|
131
139
|
newValue: this.newValue,
|
|
132
140
|
zones: this.zones,
|
|
133
141
|
isReadonly: this.readonly,
|
|
134
|
-
shouldAnimateTags: !(this.readonly || this.livePreview),
|
|
142
|
+
shouldAnimateTags: !(this.readonly || this.livePreview || this.isVisible),
|
|
135
143
|
shouldTruncateTagsValue: true,
|
|
136
144
|
getColorTag: (tagValue) => this.getColorTag(tagValue),
|
|
137
145
|
boundingElement: this.outerContainerElement,
|
|
@@ -200,8 +208,8 @@ const YooFormImageTaggingComponent = class {
|
|
|
200
208
|
static get watchers() { return {
|
|
201
209
|
"isAnimationFinished": ["onModalAnimationFinished"],
|
|
202
210
|
"required": ["onRequireChanged"],
|
|
203
|
-
"
|
|
204
|
-
"
|
|
211
|
+
"annotations": ["onAnnotationsChanged"],
|
|
212
|
+
"values": ["onValuesChanged"]
|
|
205
213
|
}; }
|
|
206
214
|
};
|
|
207
215
|
YooFormImageTaggingComponent.style = formImageTaggingCss;
|
|
@@ -6,7 +6,7 @@ const index = require('./index-fd52e687.js');
|
|
|
6
6
|
const rrule = require('./rrule-f8e7fec2.js');
|
|
7
7
|
require('./input-bar.interface-b96b7107.js');
|
|
8
8
|
require('./ResizeObserver.es-a563c836.js');
|
|
9
|
-
const formHelpers = require('./form-helpers-
|
|
9
|
+
const formHelpers = require('./form-helpers-6b5129aa.js');
|
|
10
10
|
const formInputHelpers = require('./form-input-helpers-3a4341c2.js');
|
|
11
11
|
require('./isUndefined-8f9cfd10.js');
|
|
12
12
|
require('./isNumber-4c1ace60.js');
|
|
@@ -45,6 +45,7 @@ require('./toFinite-3604340c.js');
|
|
|
45
45
|
require('./toNumber-8907f58c.js');
|
|
46
46
|
require('./clone-502cf9c3.js');
|
|
47
47
|
require('./isBoolean-d41e779d.js');
|
|
48
|
+
require('./string-helpers-4852718a.js');
|
|
48
49
|
require('./set-d1ffd68d.js');
|
|
49
50
|
require('./_baseSet-ed6aa75d.js');
|
|
50
51
|
require('./common-helpers-312e97a3.js');
|
|
@@ -8,7 +8,7 @@ require('./input-bar.interface-b96b7107.js');
|
|
|
8
8
|
const boostHelpers = require('./boost-helpers-0fe0ab90.js');
|
|
9
9
|
const formCreatorHelpers = require('./form-creator-helpers-886c1eaa.js');
|
|
10
10
|
require('./ResizeObserver.es-a563c836.js');
|
|
11
|
-
const draggableTagsHelpers = require('./draggable-tags-helpers-
|
|
11
|
+
const draggableTagsHelpers = require('./draggable-tags-helpers-557e8f4c.js');
|
|
12
12
|
const formInputHelpers = require('./form-input-helpers-3a4341c2.js');
|
|
13
13
|
require('./validate-f2c2f205.js');
|
|
14
14
|
require('./get-91c14783.js');
|
|
@@ -8,7 +8,7 @@ require('./input-bar.interface-b96b7107.js');
|
|
|
8
8
|
require('./ResizeObserver.es-a563c836.js');
|
|
9
9
|
const commonHelpers = require('./common-helpers-312e97a3.js');
|
|
10
10
|
const formInputHelpers = require('./form-input-helpers-3a4341c2.js');
|
|
11
|
-
const operationHelpers = require('./operation-helpers-
|
|
11
|
+
const operationHelpers = require('./operation-helpers-fd31a44e.js');
|
|
12
12
|
require('./isUndefined-8f9cfd10.js');
|
|
13
13
|
require('./isNumber-4c1ace60.js');
|
|
14
14
|
require('./get-91c14783.js');
|
|
@@ -7,7 +7,7 @@ const rrule = require('./rrule-f8e7fec2.js');
|
|
|
7
7
|
require('./input-bar.interface-b96b7107.js');
|
|
8
8
|
require('./ResizeObserver.es-a563c836.js');
|
|
9
9
|
const commonHelpers = require('./common-helpers-312e97a3.js');
|
|
10
|
-
const draggableTagsHelpers = require('./draggable-tags-helpers-
|
|
10
|
+
const draggableTagsHelpers = require('./draggable-tags-helpers-557e8f4c.js');
|
|
11
11
|
const formInputHelpers = require('./form-input-helpers-3a4341c2.js');
|
|
12
12
|
require('./isUndefined-8f9cfd10.js');
|
|
13
13
|
require('./isNumber-4c1ace60.js');
|
|
@@ -8,7 +8,7 @@ require('./input-bar.interface-b96b7107.js');
|
|
|
8
8
|
const index$1 = require('./index-dccbc1a7.js');
|
|
9
9
|
require('./ResizeObserver.es-a563c836.js');
|
|
10
10
|
const commonHelpers = require('./common-helpers-312e97a3.js');
|
|
11
|
-
const draggableTagsHelpers = require('./draggable-tags-helpers-
|
|
11
|
+
const draggableTagsHelpers = require('./draggable-tags-helpers-557e8f4c.js');
|
|
12
12
|
const formInputHelpers = require('./form-input-helpers-3a4341c2.js');
|
|
13
13
|
const shuffle = require('./shuffle-8d86ba89.js');
|
|
14
14
|
const inRange = require('./inRange-009d0389.js');
|
|
@@ -7191,6 +7191,7 @@ const YooFormTextEditorComponent = class {
|
|
|
7191
7191
|
quickInsertButtons: ['yooTemplateQuick', 'yooUploadButtonQuick', 'emoticons', 'ol', 'ul'],
|
|
7192
7192
|
colorsBackground: ((_c = (_b = (_a = rrule.getSession()) === null || _a === void 0 ? void 0 : _a.tenant) === null || _b === void 0 ? void 0 : _b.rteColors) === null || _c === void 0 ? void 0 : _c.length) > 0 ? (_e = (_d = rrule.getSession()) === null || _d === void 0 ? void 0 : _d.tenant) === null || _e === void 0 ? void 0 : _e.rteColors : rrule.getColorSwatches(),
|
|
7193
7193
|
colorsText: ((_h = (_g = (_f = rrule.getSession()) === null || _f === void 0 ? void 0 : _f.tenant) === null || _g === void 0 ? void 0 : _g.rteColors) === null || _h === void 0 ? void 0 : _h.length) > 0 ? (_k = (_j = rrule.getSession()) === null || _j === void 0 ? void 0 : _j.tenant) === null || _k === void 0 ? void 0 : _k.rteColors : rrule.getColorSwatches(),
|
|
7194
|
+
imageEditButtons: ['imageReplace', 'imageAlign', 'imageRemove', '|', 'imageLink', 'linkOpen', 'linkEdit', 'linkRemove', '-', 'imageDisplay', 'imageStyle', 'imageSize'],
|
|
7194
7195
|
toolbarButtons: {
|
|
7195
7196
|
moreRich: {
|
|
7196
7197
|
buttons: ['yooUploadButton', 'emoticons', 'insertImage', 'insertVideo', 'insertTable', 'insertLink', 'specialCharacters', 'insertFile', 'insertHR'],
|
|
@@ -8,7 +8,7 @@ const rrule = require('./rrule-f8e7fec2.js');
|
|
|
8
8
|
const entitiesHelpers = require('./entities-helpers-f08c39e2.js');
|
|
9
9
|
require('./ResizeObserver.es-a563c836.js');
|
|
10
10
|
const commonHelpers = require('./common-helpers-312e97a3.js');
|
|
11
|
-
const operationHelpers = require('./operation-helpers-
|
|
11
|
+
const operationHelpers = require('./operation-helpers-fd31a44e.js');
|
|
12
12
|
const pick = require('./pick-fc797980.js');
|
|
13
13
|
const cloneDeep = require('./cloneDeep-e00dc6ae.js');
|
|
14
14
|
require('./pipe-9c0f36df.js');
|
|
@@ -8,7 +8,7 @@ require('./input-bar.interface-b96b7107.js');
|
|
|
8
8
|
const pipe = require('./pipe-9c0f36df.js');
|
|
9
9
|
require('./ResizeObserver.es-a563c836.js');
|
|
10
10
|
const commonHelpers = require('./common-helpers-312e97a3.js');
|
|
11
|
-
const operationHelpers = require('./operation-helpers-
|
|
11
|
+
const operationHelpers = require('./operation-helpers-fd31a44e.js');
|
|
12
12
|
const entitiesHelpers = require('./entities-helpers-f08c39e2.js');
|
|
13
13
|
const _baseFlatten = require('./_baseFlatten-4570005c.js');
|
|
14
14
|
const flatten = require('./flatten-89de0e61.js');
|
|
@@ -9,7 +9,7 @@ const pipe = require('./pipe-9c0f36df.js');
|
|
|
9
9
|
require('./ResizeObserver.es-a563c836.js');
|
|
10
10
|
const commonHelpers = require('./common-helpers-312e97a3.js');
|
|
11
11
|
const geolocationHelpers = require('./geolocation-helpers-0f3560f5.js');
|
|
12
|
-
const operationHelpers = require('./operation-helpers-
|
|
12
|
+
const operationHelpers = require('./operation-helpers-fd31a44e.js');
|
|
13
13
|
require('./toInteger-31800ffe.js');
|
|
14
14
|
require('./toFinite-3604340c.js');
|
|
15
15
|
require('./toNumber-8907f58c.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-fd52e687.js');
|
|
|
6
6
|
require('./rrule-f8e7fec2.js');
|
|
7
7
|
require('./input-bar.interface-b96b7107.js');
|
|
8
8
|
require('./ResizeObserver.es-a563c836.js');
|
|
9
|
-
const operationHelpers = require('./operation-helpers-
|
|
9
|
+
const operationHelpers = require('./operation-helpers-fd31a44e.js');
|
|
10
10
|
require('./isUndefined-8f9cfd10.js');
|
|
11
11
|
require('./isNumber-4c1ace60.js');
|
|
12
12
|
require('./pipe-9c0f36df.js');
|
|
@@ -876,10 +876,18 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
|
|
|
876
876
|
stroke: var(--stable-light, #f1f1f1);
|
|
877
877
|
}
|
|
878
878
|
|
|
879
|
+
:host([color=stable-light-to-light-10]) circle {
|
|
880
|
+
stroke: var(--stable-light-to-light-10, #f1f1f1);
|
|
881
|
+
}
|
|
882
|
+
|
|
879
883
|
:host([color=stable-ultralight]) circle {
|
|
880
884
|
stroke: var(--stable-ultralight, #fafafa);
|
|
881
885
|
}
|
|
882
886
|
|
|
887
|
+
:host([color=stable-ultralight-to-light-10]) circle {
|
|
888
|
+
stroke: var(--stable-ultralight-to-light-10, #fafafa);
|
|
889
|
+
}
|
|
890
|
+
|
|
883
891
|
:host([color=success]) circle {
|
|
884
892
|
stroke: var(--success, #3aa76d);
|
|
885
893
|
}
|
|
@@ -892,6 +900,10 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
|
|
|
892
900
|
stroke: var(--warning, #ff6402);
|
|
893
901
|
}
|
|
894
902
|
|
|
903
|
+
:host([color=dark-to-light]) circle {
|
|
904
|
+
stroke: var(--dark-to-light, #000000);
|
|
905
|
+
}
|
|
906
|
+
|
|
895
907
|
:host {
|
|
896
908
|
display: flex;
|
|
897
909
|
flex-direction: column;
|
|
@@ -8,6 +8,7 @@ export class YooMarkdownComponent {
|
|
|
8
8
|
* The markdown content to display inside the component
|
|
9
9
|
*/
|
|
10
10
|
this.content = '';
|
|
11
|
+
this.isVisible = true;
|
|
11
12
|
this.treatedContent = this.content;
|
|
12
13
|
}
|
|
13
14
|
onContentChanged() {
|
|
@@ -74,7 +75,7 @@ export class YooMarkdownComponent {
|
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
render() {
|
|
77
|
-
return (h("div", { class: "markdown-content fr-view", ref: (el) => this.contentDiv = el, innerHTML: this.treatedContent }));
|
|
78
|
+
return (this.isVisible && h("div", { class: "markdown-content fr-view", ref: (el) => this.contentDiv = el, innerHTML: this.treatedContent }));
|
|
78
79
|
}
|
|
79
80
|
static get is() { return "yoo-markdown"; }
|
|
80
81
|
static get encapsulation() { return "shadow"; }
|
|
@@ -123,6 +124,24 @@ export class YooMarkdownComponent {
|
|
|
123
124
|
"attribute": "content",
|
|
124
125
|
"reflect": false,
|
|
125
126
|
"defaultValue": "''"
|
|
127
|
+
},
|
|
128
|
+
"isVisible": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"mutable": false,
|
|
131
|
+
"complexType": {
|
|
132
|
+
"original": "boolean",
|
|
133
|
+
"resolved": "boolean",
|
|
134
|
+
"references": {}
|
|
135
|
+
},
|
|
136
|
+
"required": false,
|
|
137
|
+
"optional": true,
|
|
138
|
+
"docs": {
|
|
139
|
+
"tags": [],
|
|
140
|
+
"text": ""
|
|
141
|
+
},
|
|
142
|
+
"attribute": "is-visible",
|
|
143
|
+
"reflect": false,
|
|
144
|
+
"defaultValue": "true"
|
|
126
145
|
}
|
|
127
146
|
}; }
|
|
128
147
|
static get methods() { return {
|
|
@@ -1981,6 +1981,12 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
|
|
|
1981
1981
|
margin: 0;
|
|
1982
1982
|
font-size: var(--font-size-12, 0.75rem);
|
|
1983
1983
|
}
|
|
1984
|
+
:host(.filesFolders) .outer-container .content-container .subheading-container em,
|
|
1985
|
+
:host(.files) .outer-container .content-container .subheading-container em {
|
|
1986
|
+
color: var(--dark, #000000);
|
|
1987
|
+
font-weight: bold;
|
|
1988
|
+
background: #FDFB2F;
|
|
1989
|
+
}
|
|
1984
1990
|
|
|
1985
1991
|
:host(.locations.external) .outer-container .content-container .subheading-container {
|
|
1986
1992
|
white-space: normal;
|
|
@@ -875,7 +875,8 @@ export class YooEntityComponent {
|
|
|
875
875
|
tags: isWeb(this.host) ? null : file.tags,
|
|
876
876
|
avatarFrame: file.imgSrc ? 'rounded-square' : 'square',
|
|
877
877
|
avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'large',
|
|
878
|
-
|
|
878
|
+
allowCustomHtml: true,
|
|
879
|
+
subheadings: this.isAutocompleteSelected() ? null : compact([directory + pipes.fileSize.transform(file.size), (file.highlight || []).join(', ')]) // , //, file.mimeType
|
|
879
880
|
// badges: [{ iconLeft: getIcon(file), cssClass: 'tag small round dark' }]
|
|
880
881
|
};
|
|
881
882
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { debounce, disableKeyboardResize, enableKeyboardResize, hideKeyboard, isAndroid, isWeb, showModal, translate } from '@shared/utils';
|
|
2
2
|
import { Component, Element, Event, h, Host, Method, Prop, State } from '@stencil/core';
|
|
3
|
-
import { querySelectorDeep } from '@utils';
|
|
3
|
+
import { getAppContext, querySelectorDeep } from '@utils';
|
|
4
4
|
import { cloneDeep, isArray, keys } from 'lodash-es';
|
|
5
5
|
export class YooEntitySearchComponent {
|
|
6
6
|
constructor() {
|
|
@@ -220,7 +220,7 @@ export class YooEntitySearchComponent {
|
|
|
220
220
|
: null)));
|
|
221
221
|
}
|
|
222
222
|
render() {
|
|
223
|
-
return (h(Host,
|
|
223
|
+
return (h(Host, { class: Object.assign({}, getAppContext(this.host)) },
|
|
224
224
|
this.renderHeader(),
|
|
225
225
|
this.renderBody()));
|
|
226
226
|
}
|
|
@@ -1121,6 +1121,9 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
|
|
|
1121
1121
|
|
|
1122
1122
|
:host {
|
|
1123
1123
|
display: block;
|
|
1124
|
+
width: 100%;
|
|
1125
|
+
max-width: 24rem;
|
|
1126
|
+
margin: 0 auto;
|
|
1124
1127
|
}
|
|
1125
1128
|
:host p {
|
|
1126
1129
|
display: flex;
|
|
@@ -1133,6 +1136,9 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
|
|
|
1133
1136
|
font-size: var(--font-size-14, 0.875rem);
|
|
1134
1137
|
text-align: center;
|
|
1135
1138
|
}
|
|
1139
|
+
:host yoo-banner {
|
|
1140
|
+
height: 0;
|
|
1141
|
+
}
|
|
1136
1142
|
:host yoo-icon {
|
|
1137
1143
|
position: absolute;
|
|
1138
1144
|
top: var(--spacing-08, 0.5rem);
|
|
@@ -1143,36 +1149,48 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
|
|
|
1143
1149
|
:host yoo-img {
|
|
1144
1150
|
border-radius: inherit;
|
|
1145
1151
|
}
|
|
1146
|
-
:host .
|
|
1147
|
-
:host .
|
|
1152
|
+
:host .inner-container,
|
|
1153
|
+
:host .draggables,
|
|
1154
|
+
:host .connectables {
|
|
1148
1155
|
display: grid;
|
|
1149
|
-
grid-
|
|
1150
|
-
grid-auto-columns: minmax(0, 1fr);
|
|
1156
|
+
grid-gap: var(--spacing-08, 0.5rem);
|
|
1151
1157
|
}
|
|
1152
|
-
:host .
|
|
1153
|
-
|
|
1154
|
-
|
|
1158
|
+
:host .draggables,
|
|
1159
|
+
:host .connectables {
|
|
1160
|
+
height: max-content;
|
|
1161
|
+
padding: var(--spacing-08, 0.5rem) 0;
|
|
1155
1162
|
}
|
|
1156
|
-
:host .
|
|
1157
|
-
|
|
1163
|
+
:host .inner-container {
|
|
1164
|
+
grid-template-rows: repeat(auto-fit, 75%);
|
|
1165
|
+
grid-template-columns: 1fr 1fr;
|
|
1166
|
+
padding: 0 var(--spacing-08, 0.5rem);
|
|
1167
|
+
overflow: hidden auto;
|
|
1168
|
+
background-color: var(--stable-alt-20, rgba(208, 208, 208, 0.2));
|
|
1169
|
+
border-radius: var(--border-radius-04, 0.25rem);
|
|
1170
|
+
transition: height 500ms linear;
|
|
1171
|
+
/* Track */
|
|
1172
|
+
/* Handle */
|
|
1158
1173
|
}
|
|
1159
|
-
:host .
|
|
1160
|
-
|
|
1161
|
-
color: var(--dark-to-light, #000000);
|
|
1174
|
+
:host .inner-container::-webkit-scrollbar {
|
|
1175
|
+
width: var(--spacing-08, 0.5rem);
|
|
1162
1176
|
}
|
|
1163
|
-
:host .
|
|
1164
|
-
|
|
1177
|
+
:host .inner-container::-webkit-scrollbar-track {
|
|
1178
|
+
border-radius: var(--border-radius-04, 0.25rem);
|
|
1179
|
+
box-shadow: inset 0 0 5px var(--stable, #adadad);
|
|
1165
1180
|
}
|
|
1166
|
-
:host .
|
|
1167
|
-
|
|
1181
|
+
:host .inner-container::-webkit-scrollbar-thumb {
|
|
1182
|
+
background: var(--app-color);
|
|
1183
|
+
border-radius: var(--border-radius-04, 0.25rem);
|
|
1168
1184
|
}
|
|
1169
1185
|
:host .connectable,
|
|
1170
1186
|
:host .draggable {
|
|
1171
1187
|
position: relative;
|
|
1172
1188
|
width: 100%;
|
|
1173
|
-
max-width:
|
|
1189
|
+
max-width: 12rem;
|
|
1190
|
+
height: 100%;
|
|
1174
1191
|
background-color: var(--light-to-dark, #ffffff);
|
|
1175
1192
|
border-radius: var(--border-radius-08, 0.5rem);
|
|
1193
|
+
box-shadow: var(--shadow-02, 0 0.25rem 0.5rem 0 rgba(0, 0, 0, 0.1));
|
|
1176
1194
|
}
|
|
1177
1195
|
:host .connectable:before,
|
|
1178
1196
|
:host .draggable:before {
|
|
@@ -1203,20 +1221,4 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
|
|
|
1203
1221
|
background-color: inherit;
|
|
1204
1222
|
border-radius: inherit;
|
|
1205
1223
|
opacity: 0.6;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
:host([readonly]) .connect-container,
|
|
1209
|
-
:host([readonly]) .draggable-container,
|
|
1210
|
-
:host([readonly]) .connectable-container {
|
|
1211
|
-
grid-gap: var(--spacing-16, 1rem);
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
:host(:not([readonly])) .connect-container,
|
|
1215
|
-
:host(:not([readonly])) .draggable-container,
|
|
1216
|
-
:host(:not([readonly])) .connectable-container {
|
|
1217
|
-
grid-gap: 0.0625rem;
|
|
1218
|
-
}
|
|
1219
|
-
:host(:not([readonly])) .item-container {
|
|
1220
|
-
padding: var(--spacing-08, 0.5rem);
|
|
1221
|
-
background: var(--stable-light-40-to-stable-light-10, rgba(241, 241, 241, 0.4));
|
|
1222
1224
|
}
|