@yoobic/yobi 8.2.0-30 → 8.2.0-33
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-form-choice-card.cjs.entry.js +4 -11
- package/dist/cjs/yoo-form-creator-page-card-list.cjs.entry.js +0 -1
- package/dist/cjs/yoo-form-creator.cjs.entry.js +21 -7
- package/dist/cjs/yoo-form-dynamic.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-hotzones.cjs.entry.js +17 -10
- package/dist/cjs/yoo-form-image-collection.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-image-tagging.cjs.entry.js +2 -2
- package/dist/cjs/yoo-lesson-question-result.cjs.entry.js +1 -1
- package/dist/cjs/yoo-profile-list.cjs.entry.js +2 -1
- package/dist/cjs/yoo-truncate.cjs.entry.js +2 -1
- package/dist/collection/components/1.atoms/truncate/truncate.js +25 -5
- package/dist/collection/components/2.molecules/profile-list/profile-list.js +2 -1
- package/dist/collection/components/form/form-choice/card/form-choice-card.js +6 -16
- package/dist/collection/components/form/form-dynamic/form-dynamic.css +3 -0
- package/dist/collection/components/form/form-hotzones/form-hotzones.js +22 -10
- package/dist/collection/components/form/form-image-collection/form-image-collection.css +2 -0
- package/dist/collection/components/form/form-image-collection/form-image-collection.js +1 -1
- package/dist/collection/components/form/form-image-tagging/form-image-tagging.js +2 -2
- package/dist/collection/components/form-creator/form-creator/form-creator.js +21 -7
- package/dist/collection/components/form-creator/form-creator-card-list/page/form-creator-page-card-list.js +0 -1
- package/dist/collection/feature-learn/learning/lesson-question-result/lesson-question-result.css +0 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/yoo-form-choice-card.entry.js +5 -12
- package/dist/design-system/yoo-form-creator-page-card-list.entry.js +0 -1
- package/dist/design-system/yoo-form-creator.entry.js +21 -7
- package/dist/design-system/yoo-form-dynamic.entry.js +1 -1
- package/dist/design-system/yoo-form-hotzones.entry.js +17 -10
- package/dist/design-system/yoo-form-image-collection.entry.js +2 -2
- package/dist/design-system/yoo-form-image-tagging.entry.js +2 -2
- package/dist/design-system/yoo-lesson-question-result.entry.js +1 -1
- package/dist/design-system/yoo-profile-list.entry.js +2 -1
- package/dist/design-system/yoo-truncate.entry.js +2 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/yoo-form-choice-card.entry.js +5 -12
- package/dist/esm/yoo-form-creator-page-card-list.entry.js +0 -1
- package/dist/esm/yoo-form-creator.entry.js +21 -7
- package/dist/esm/yoo-form-dynamic.entry.js +1 -1
- package/dist/esm/yoo-form-hotzones.entry.js +17 -10
- package/dist/esm/yoo-form-image-collection.entry.js +2 -2
- package/dist/esm/yoo-form-image-tagging.entry.js +2 -2
- package/dist/esm/yoo-lesson-question-result.entry.js +1 -1
- package/dist/esm/yoo-profile-list.entry.js +2 -1
- package/dist/esm/yoo-truncate.entry.js +2 -1
- package/dist/types/components/1.atoms/truncate/truncate.d.ts +6 -0
- package/dist/types/components/form/form-choice/card/form-choice-card.d.ts +0 -2
- package/dist/types/components/form/form-hotzones/form-hotzones.d.ts +2 -0
- package/dist/types/components/form-creator/form-creator/form-creator.d.ts +4 -1
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
|
@@ -43,6 +43,7 @@ const YooTruncateComponent = class {
|
|
|
43
43
|
* Used more icon instead of text as ellipsis button.
|
|
44
44
|
*/
|
|
45
45
|
this.showEllipsisIcon = false;
|
|
46
|
+
this.ellipsisIconSize = 'small';
|
|
46
47
|
/**
|
|
47
48
|
* Alters how the <br> tag is handled for markdown
|
|
48
49
|
*/
|
|
@@ -64,7 +65,7 @@ const YooTruncateComponent = class {
|
|
|
64
65
|
return `<span class="more-button"> ${this.collapsed ? `... ${index$1.translate('MORE2')}` : index$1.translate('VIEWLESS')}</span>`;
|
|
65
66
|
};
|
|
66
67
|
this.getMoreIconHtml = () => {
|
|
67
|
-
return `<span><span>${this.collapsed ? '...' : ''}</span><yoo-icon class="more-button" name=${this.collapsed ? 'arrow-down' : 'arrow-up'} size="
|
|
68
|
+
return `<span><span>${this.collapsed ? '...' : ''}</span><yoo-icon class="more-button" name=${this.collapsed ? 'arrow-down' : 'arrow-up'} size="${this.ellipsisIconSize}" /></span>`;
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
71
|
onShowEllipsisButtonChanged() {
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name: Truncate
|
|
3
|
-
* @author: Romain Panaget
|
|
4
|
-
*/
|
|
5
1
|
import { debounce, parseMarkDown, translate, truncateMarkdown } from '@shared/utils';
|
|
6
2
|
import { Component, Element, Event, h, Host, Prop, State, Watch } from '@stencil/core';
|
|
7
3
|
import { querySelectorDeep } from '../../../utils/helpers/common-helpers';
|
|
@@ -35,6 +31,7 @@ export class YooTruncateComponent {
|
|
|
35
31
|
* Used more icon instead of text as ellipsis button.
|
|
36
32
|
*/
|
|
37
33
|
this.showEllipsisIcon = false;
|
|
34
|
+
this.ellipsisIconSize = 'small';
|
|
38
35
|
/**
|
|
39
36
|
* Alters how the <br> tag is handled for markdown
|
|
40
37
|
*/
|
|
@@ -56,7 +53,7 @@ export class YooTruncateComponent {
|
|
|
56
53
|
return `<span class="more-button"> ${this.collapsed ? `... ${translate('MORE2')}` : translate('VIEWLESS')}</span>`;
|
|
57
54
|
};
|
|
58
55
|
this.getMoreIconHtml = () => {
|
|
59
|
-
return `<span><span>${this.collapsed ? '...' : ''}</span><yoo-icon class="more-button" name=${this.collapsed ? 'arrow-down' : 'arrow-up'} size="
|
|
56
|
+
return `<span><span>${this.collapsed ? '...' : ''}</span><yoo-icon class="more-button" name=${this.collapsed ? 'arrow-down' : 'arrow-up'} size="${this.ellipsisIconSize}" /></span>`;
|
|
60
57
|
};
|
|
61
58
|
}
|
|
62
59
|
onShowEllipsisButtonChanged() {
|
|
@@ -253,6 +250,29 @@ export class YooTruncateComponent {
|
|
|
253
250
|
"reflect": true,
|
|
254
251
|
"defaultValue": "false"
|
|
255
252
|
},
|
|
253
|
+
"ellipsisIconSize": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"mutable": false,
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "TSize",
|
|
258
|
+
"resolved": "\"extra-extra-large\" | \"extra-large\" | \"extra-small\" | \"large\" | \"medium\" | \"small\"",
|
|
259
|
+
"references": {
|
|
260
|
+
"TSize": {
|
|
261
|
+
"location": "import",
|
|
262
|
+
"path": "@shared/interfaces"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"required": false,
|
|
267
|
+
"optional": false,
|
|
268
|
+
"docs": {
|
|
269
|
+
"tags": [],
|
|
270
|
+
"text": ""
|
|
271
|
+
},
|
|
272
|
+
"attribute": "ellipsis-icon-size",
|
|
273
|
+
"reflect": false,
|
|
274
|
+
"defaultValue": "'small'"
|
|
275
|
+
},
|
|
256
276
|
"content": {
|
|
257
277
|
"type": "string",
|
|
258
278
|
"mutable": false,
|
|
@@ -121,10 +121,11 @@ export class YooProfileListComponent {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
renderTruncate(content, icon) {
|
|
124
|
+
const charLength = isWeb(this.host) ? 83 : 38;
|
|
124
125
|
return (h("div", { class: "user-info-list" },
|
|
125
126
|
h("div", { class: "start-container" },
|
|
126
127
|
h("yoo-icon", { name: icon, color: "dark" }),
|
|
127
|
-
h("yoo-
|
|
128
|
+
h("yoo-truncate", { content: content, maxLength: charLength, showEllipsisIcon: true, ellipsisIconSize: "medium" }))));
|
|
128
129
|
}
|
|
129
130
|
renderCollapsible(header, content) {
|
|
130
131
|
return (h("yoo-collapsible", { hasArrowIcon: !!content.length, icon: "tag", iconColor: "dark", iconSize: "medium", slotHeader: true },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isChromatic, translate, translateMulti } from '@shared/utils';
|
|
2
|
-
import { Component, Element, Event, h, Host, Prop, State
|
|
2
|
+
import { Component, Element, Event, h, Host, Prop, State } from '@stencil/core';
|
|
3
3
|
import { setColorSVG } from '../../../../utils/helpers/common-helpers';
|
|
4
|
-
import { hasWarnings, isSelected, onItemSelect, prepareChoice
|
|
4
|
+
import { hasWarnings, isSelected, onItemSelect, prepareChoice } from '../form-choice-helpers';
|
|
5
5
|
import { ReadonlyCard } from '../readonly-card/readonly-card';
|
|
6
6
|
export class YooFormChoiceCardComponent {
|
|
7
7
|
constructor() {
|
|
@@ -13,12 +13,6 @@ export class YooFormChoiceCardComponent {
|
|
|
13
13
|
this.imgElements = [];
|
|
14
14
|
this.choices = [];
|
|
15
15
|
}
|
|
16
|
-
onValuesChanged(newValues, oldValues) {
|
|
17
|
-
updateValues(newValues, oldValues, this);
|
|
18
|
-
}
|
|
19
|
-
onValueChanged(newValue, oldValue) {
|
|
20
|
-
updateValue(newValue, oldValue, this);
|
|
21
|
-
}
|
|
22
16
|
componentWillLoad() {
|
|
23
17
|
var _a;
|
|
24
18
|
prepareChoice(this);
|
|
@@ -60,7 +54,10 @@ export class YooFormChoiceCardComponent {
|
|
|
60
54
|
return h("yoo-icon", { name: "check" });
|
|
61
55
|
}
|
|
62
56
|
renderSelect(item, index) {
|
|
63
|
-
const selected = isSelected(
|
|
57
|
+
const selected = ((isSelected('true', this.selection) && index === 0) ||
|
|
58
|
+
(isSelected('false', this.selection) && index === 0) ||
|
|
59
|
+
isSelected(item.value || item.title, this.selection) ||
|
|
60
|
+
isSelected(item || item.title, this.selection));
|
|
64
61
|
return (h("div", { class: { 'select': true, selected }, style: { ...(this.maxWidth > 0 && { maxWidth: `${this.maxWidth}px` }) }, onClick: () => onItemSelect(item.value || item.title, this) },
|
|
65
62
|
this.renderCardContent(item, selected, index),
|
|
66
63
|
!item.image &&
|
|
@@ -424,11 +421,4 @@ export class YooFormChoiceCardComponent {
|
|
|
424
421
|
}
|
|
425
422
|
}]; }
|
|
426
423
|
static get elementRef() { return "host"; }
|
|
427
|
-
static get watchers() { return [{
|
|
428
|
-
"propName": "values",
|
|
429
|
-
"methodName": "onValuesChanged"
|
|
430
|
-
}, {
|
|
431
|
-
"propName": "value",
|
|
432
|
-
"methodName": "onValueChanged"
|
|
433
|
-
}]; }
|
|
434
424
|
}
|
|
@@ -2490,6 +2490,9 @@ span.fr-img-caption.fr-view {
|
|
|
2490
2490
|
page-break-before: avoid;
|
|
2491
2491
|
page-break-inside: avoid;
|
|
2492
2492
|
}
|
|
2493
|
+
:host .inputs-container yoo-form-input-container.image {
|
|
2494
|
+
--label-padding-top: 0 !important;
|
|
2495
|
+
}
|
|
2493
2496
|
:host .inputs-container yoo-form-capture {
|
|
2494
2497
|
display: block;
|
|
2495
2498
|
page-break-after: avoid;
|
|
@@ -3,6 +3,7 @@ import { Component, Element, Event, forceUpdate, h, Host, Prop, State, Watch } f
|
|
|
3
3
|
import { getFromOfflineStorage } from '../../../utils/cache/localForage';
|
|
4
4
|
import { calcCoordPercentage, isElementInsideContainer } from '../../../utils/helpers/annotations-helpers';
|
|
5
5
|
import { getAppContext } from '../../../utils/helpers/common-helpers';
|
|
6
|
+
import { showWarningAlert } from '../../../utils/helpers/draggable-tags-helpers';
|
|
6
7
|
import { setValueAndValidateInput } from '../../../utils/helpers/form-input-helpers';
|
|
7
8
|
export class YooFormHotzonesComponent {
|
|
8
9
|
constructor() {
|
|
@@ -17,6 +18,9 @@ export class YooFormHotzonesComponent {
|
|
|
17
18
|
!this.imageSrc && forceUpdate(this);
|
|
18
19
|
this.init();
|
|
19
20
|
}
|
|
21
|
+
onHotzonesChanged() {
|
|
22
|
+
showWarningAlert(this.host, !!this.hotzones.find(({ description, image }) => !(description || image)), 'NOEMPTYVALUES');
|
|
23
|
+
}
|
|
20
24
|
onIsVisibleChanged() {
|
|
21
25
|
if (this.isVisible) {
|
|
22
26
|
this.flipImage = true;
|
|
@@ -82,27 +86,26 @@ export class YooFormHotzonesComponent {
|
|
|
82
86
|
return getMedia((await getFromOfflineStorage(this.image)), { forceCookieUrlParam: true });
|
|
83
87
|
}
|
|
84
88
|
async showZoneDetails(hotzone) {
|
|
89
|
+
var _a, _b, _c, _d;
|
|
85
90
|
const { description, image } = hotzone || {};
|
|
86
91
|
if (description || image) {
|
|
87
92
|
await showModal('yoo-form-hotzones', { detailedView: true, selectedHotspot: hotzone }, 'bg-dark-40', 'scaleEnterAnimation', 'scaleLeaveAnimation', true);
|
|
88
93
|
hotzone.revealed = true;
|
|
89
|
-
this.validity = this.hotzones.filter(h => h.revealed).length === this.hotzones.length;
|
|
90
|
-
!this.validity && forceUpdate(this);
|
|
91
94
|
}
|
|
95
|
+
this.validity = ((_b = (_a = this.hotzones) === null || _a === void 0 ? void 0 : _a.filter(({ revealed }) => revealed)) === null || _b === void 0 ? void 0 : _b.length) === ((_d = (_c = this.hotzones) === null || _c === void 0 ? void 0 : _c.filter(({ description, image }) => description || image)) === null || _d === void 0 ? void 0 : _d.length);
|
|
96
|
+
!this.validity && forceUpdate(this);
|
|
92
97
|
}
|
|
93
98
|
renderZones() {
|
|
94
99
|
var _a;
|
|
95
100
|
return (_a = this.hotzones) === null || _a === void 0 ? void 0 : _a.map(hotzone => {
|
|
96
|
-
const {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
hidden: !this.readonly && this.isHotZones
|
|
101
|
-
}, style: {
|
|
101
|
+
const { style, revealed, description, image } = hotzone || {};
|
|
102
|
+
const { x, y } = style || {};
|
|
103
|
+
const isValid = !!(description || image);
|
|
104
|
+
return isValid && h("div", { class: { hotzone: true, revealed, hidden: !this.readonly && this.isHotZones }, style: {
|
|
102
105
|
left: x,
|
|
103
106
|
top: y,
|
|
104
107
|
...hotzone.style,
|
|
105
|
-
...(!
|
|
108
|
+
...(!revealed && !this.readonly && {
|
|
106
109
|
backgroundColor: this.hotzonesColor + '66',
|
|
107
110
|
borderColor: this.hotzonesColor
|
|
108
111
|
})
|
|
@@ -155,8 +158,14 @@ export class YooFormHotzonesComponent {
|
|
|
155
158
|
this.renderZones()),
|
|
156
159
|
h("section", { class: "flip-box-back" })));
|
|
157
160
|
}
|
|
161
|
+
renderBanner() {
|
|
162
|
+
return this.livePreview && h("yoo-banner", null,
|
|
163
|
+
h("p", { slot: "content" }));
|
|
164
|
+
}
|
|
158
165
|
render() {
|
|
159
|
-
return (h(Host, { class: { 'swiper-no-swiping': true, ...getAppContext(this.host) } },
|
|
166
|
+
return (h(Host, { class: { 'swiper-no-swiping': true, ...getAppContext(this.host) } },
|
|
167
|
+
this.renderBanner(),
|
|
168
|
+
this.detailedView ? this.renderDetailedView() : [this.renderImage(), this.renderTarget()]));
|
|
160
169
|
}
|
|
161
170
|
static get is() { return "yoo-form-hotzones"; }
|
|
162
171
|
static get encapsulation() { return "shadow"; }
|
|
@@ -427,6 +436,9 @@ export class YooFormHotzonesComponent {
|
|
|
427
436
|
static get watchers() { return [{
|
|
428
437
|
"propName": "image",
|
|
429
438
|
"methodName": "onImageChanged"
|
|
439
|
+
}, {
|
|
440
|
+
"propName": "hotzones",
|
|
441
|
+
"methodName": "onHotzonesChanged"
|
|
430
442
|
}, {
|
|
431
443
|
"propName": "isVisible",
|
|
432
444
|
"methodName": "onIsVisibleChanged"
|
|
@@ -202,6 +202,7 @@ 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
|
+
display: block;
|
|
205
206
|
width: 100%;
|
|
206
207
|
}
|
|
207
208
|
:host #gallery {
|
|
@@ -277,6 +278,7 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
|
|
|
277
278
|
}
|
|
278
279
|
:host(.web) .main-container .button {
|
|
279
280
|
margin: auto;
|
|
281
|
+
padding: var(--spacing-16, 1rem);
|
|
280
282
|
}
|
|
281
283
|
|
|
282
284
|
:host([detailed-view]) {
|
|
@@ -30,7 +30,7 @@ export class YooFormImageCollectionComponent {
|
|
|
30
30
|
openImageDetailFromRTE(this.detailDescription, (_a = ev === null || ev === void 0 ? void 0 : ev.target) === null || _a === void 0 ? void 0 : _a.src);
|
|
31
31
|
}
|
|
32
32
|
async imageClicked(imagePair, index) {
|
|
33
|
-
await showModal('yoo-form-image-collection', { detailedView: true, selectedPair: imagePair }, 'bg-dark-40
|
|
33
|
+
await showModal('yoo-form-image-collection', { detailedView: true, selectedPair: imagePair }, 'bg-dark-40', 'scaleEnterAnimation', 'scaleLeaveAnimation', true);
|
|
34
34
|
if (!this.images[index].revealed) {
|
|
35
35
|
this.imagesRevealed += 1;
|
|
36
36
|
this.images[index].revealed = true;
|
|
@@ -135,12 +135,12 @@ export class YooFormImageTaggingComponent {
|
|
|
135
135
|
h("div", { class: "dropzone", id: "zone-tags" }));
|
|
136
136
|
}
|
|
137
137
|
renderBanner() {
|
|
138
|
-
return h("yoo-banner", null,
|
|
138
|
+
return this.livePreview && h("yoo-banner", null,
|
|
139
139
|
h("p", { slot: "content" }));
|
|
140
140
|
}
|
|
141
141
|
render() {
|
|
142
142
|
return (h(Host, { class: { ...getAppContext(this.host), 'live-preview': this.livePreview } },
|
|
143
|
-
this.
|
|
143
|
+
this.renderBanner(),
|
|
144
144
|
this.renderImageContainer(),
|
|
145
145
|
!this.readonly && this.renderInstruction(),
|
|
146
146
|
!this.readonly && this.renderTagsZone()));
|
|
@@ -86,6 +86,7 @@ export class YooFormCreatorComponent {
|
|
|
86
86
|
this.restrictionConditionSelectedTab = 0;
|
|
87
87
|
this.expandedConditions = [];
|
|
88
88
|
this.isPageReordering = false;
|
|
89
|
+
this.pagesReordered = false;
|
|
89
90
|
this.onInsertPageAfterClicked = (event) => {
|
|
90
91
|
if (event) {
|
|
91
92
|
this.onAddNewPage(event.detail + 1);
|
|
@@ -104,12 +105,14 @@ export class YooFormCreatorComponent {
|
|
|
104
105
|
this.removeOverlays();
|
|
105
106
|
}
|
|
106
107
|
else {
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
109
|
-
this.hasPageChanged = event.detail;
|
|
110
|
-
this.resetExpandableBlockReferences();
|
|
108
|
+
this.selectPage(event.detail);
|
|
109
|
+
this.pagesReordered = false;
|
|
111
110
|
}
|
|
112
111
|
};
|
|
112
|
+
this.onPageOrderChanged = (event) => {
|
|
113
|
+
this.selectPage(event.detail.indexTo);
|
|
114
|
+
this.pagesReordered = true;
|
|
115
|
+
};
|
|
113
116
|
this.onDuplicatePageClicked = (event) => {
|
|
114
117
|
var _a, _b, _c, _d;
|
|
115
118
|
if (event) {
|
|
@@ -353,7 +356,12 @@ export class YooFormCreatorComponent {
|
|
|
353
356
|
});
|
|
354
357
|
this.currentExpandedBlockLocation = { slideIndex, itemIndex };
|
|
355
358
|
this.expandedFieldName = event.detail.name || this.expandedFieldName;
|
|
356
|
-
this.
|
|
359
|
+
if (!this.pagesReordered) {
|
|
360
|
+
this.scrollToField(itemIndex);
|
|
361
|
+
}
|
|
362
|
+
else {
|
|
363
|
+
this.pagesReordered = false;
|
|
364
|
+
}
|
|
357
365
|
}
|
|
358
366
|
else if (!event.detail.expanded && this.currentExpandedBlockLocation && itemIndex === this.currentExpandedBlockLocation.itemIndex) {
|
|
359
367
|
this.currentExpandedBlockLocation = null;
|
|
@@ -945,6 +953,12 @@ export class YooFormCreatorComponent {
|
|
|
945
953
|
}
|
|
946
954
|
this.shouldRenderLeftSelectionContent = true;
|
|
947
955
|
}
|
|
956
|
+
selectPage(pageIndex) {
|
|
957
|
+
this.selectedPageIndex = pageIndex;
|
|
958
|
+
this.pageHeaderClicked.emit(pageIndex);
|
|
959
|
+
this.hasPageChanged = pageIndex;
|
|
960
|
+
this.resetExpandableBlockReferences();
|
|
961
|
+
}
|
|
948
962
|
updateGlobalActions() {
|
|
949
963
|
this.selectedMoveActions = setBlockSelection(this.itemList, null, (slideIndex, _itemIndex, itemId) => this.moveSelectedFields(itemId, slideIndex), {
|
|
950
964
|
extraStartingItems: [
|
|
@@ -2126,7 +2140,7 @@ export class YooFormCreatorComponent {
|
|
|
2126
2140
|
}
|
|
2127
2141
|
], iconPairLeft: ARROW_PAIR, showBottomBorder: true, forceEntryUpdate: true, allowMultipleSelection: true, onAccordionSelected: (event) => this.onPagesAccordionSelected(event) },
|
|
2128
2142
|
h("div", { slot: "PAGES" },
|
|
2129
|
-
h("yoo-form-creator-page-card-list", { scoringMode: isScoring(this.selectedLeftMenuOption) ? this.selectedScoring : null, missionSlides: this.currentSlides, selectedPageIndex: this.selectedPageIndex, onPageClicked: this.onPageClicked, onDuplicatePageClicked: this.onDuplicatePageClicked, onInsertPageAfterClicked: this.onInsertPageAfterClicked, onDeletePageClicked: this.onDeletePageClicked, onEditPageClicked: this.onEditPageClicked, onAddSiteTagRestrictionClicked: this.onAddSiteTagRestrictionClicked, onAddUserGroupRestrictionClicked: this.onAddUserGroupRestrictionClicked, onReorderEnded: () => {
|
|
2143
|
+
h("yoo-form-creator-page-card-list", { scoringMode: isScoring(this.selectedLeftMenuOption) ? this.selectedScoring : null, missionSlides: this.currentSlides, selectedPageIndex: this.selectedPageIndex, onPageClicked: this.onPageClicked, onDuplicatePageClicked: this.onDuplicatePageClicked, onInsertPageAfterClicked: this.onInsertPageAfterClicked, onDeletePageClicked: this.onDeletePageClicked, onEditPageClicked: this.onEditPageClicked, onAddSiteTagRestrictionClicked: this.onAddSiteTagRestrictionClicked, onAddUserGroupRestrictionClicked: this.onAddUserGroupRestrictionClicked, onPageOrderChanged: this.onPageOrderChanged, onReorderEnded: () => {
|
|
2130
2144
|
this.isPageReordering = false;
|
|
2131
2145
|
}, onReorderStarted: () => {
|
|
2132
2146
|
this.isPageReordering = true;
|
|
@@ -2324,7 +2338,7 @@ export class YooFormCreatorComponent {
|
|
|
2324
2338
|
}
|
|
2325
2339
|
renderLivePreview() {
|
|
2326
2340
|
var _a;
|
|
2327
|
-
return (h("yoo-form-creator-live-preview", { ref: (el) => (this.livePreviewElement = el), mode: "panel", showShare: this.showShare, onShared: (ev) => { ev.stopPropagation(); this.shared.emit(); }, hidden: this.isLivePreviewHidden, showDevices: false, missionDescriptionTitle: this.missDescDisplayTitle, onVisibilityToggled: () => (this.isLivePreviewHidden = !this.isLivePreviewHidden), availableLanguages: ((_a = this.translations) === null || _a === void 0 ? void 0 : _a.length) ? [...this.selectedLanguages, this.baseLanguage] : [], selectedLanguage: this.baseLanguage, onLanguageChanged: (ev) => this.onDisplayLanguageChanged(ev) },
|
|
2341
|
+
return (h("yoo-form-creator-live-preview", { ref: (el) => (this.livePreviewElement = el), mode: "panel", showShare: this.showShare, onShared: (ev) => { ev.stopPropagation(); this.shared.emit(); }, hidden: this.isLivePreviewHidden, showDevices: false, missionDescriptionTitle: this.missDescDisplayTitle, onVisibilityToggled: () => (this.isLivePreviewHidden = !this.isLivePreviewHidden), availableLanguages: ((_a = this.translations) === null || _a === void 0 ? void 0 : _a.length) ? [...this.selectedLanguages, this.baseLanguage] : [], selectedLanguage: this.displayLanguage ? this.displayLanguage : this.baseLanguage, onLanguageChanged: (ev) => this.onDisplayLanguageChanged(ev) },
|
|
2328
2342
|
h("div", { class: "slot-container", slot: "livePreview" },
|
|
2329
2343
|
h("slot", { name: "livePreview" }))));
|
|
2330
2344
|
}
|
|
@@ -101,7 +101,6 @@ export class YooFormCreatorPageCardListComponent {
|
|
|
101
101
|
const indexSlideTo = sortEvent.indexTo - 1 >= 0 ? sortEvent.indexTo - 1 : 0;
|
|
102
102
|
this.pageOrderChanged.emit(sortEvent);
|
|
103
103
|
this.pageCardsParentEl.slideTo(indexSlideTo);
|
|
104
|
-
this.pageClicked.emit(sortEvent.indexTo);
|
|
105
104
|
};
|
|
106
105
|
}
|
|
107
106
|
renderPageCards() {
|
package/dist/collection/feature-learn/learning/lesson-question-result/lesson-question-result.css
CHANGED
|
@@ -287,7 +287,6 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
|
|
|
287
287
|
display: flex;
|
|
288
288
|
flex-direction: column;
|
|
289
289
|
align-items: center;
|
|
290
|
-
width: var(--spacing-56, 3.5rem);
|
|
291
290
|
margin: var(--spacing-08, 0.5rem) 0;
|
|
292
291
|
font-size: var(--font-size-12, 0.75rem);
|
|
293
292
|
}
|