@yoobic/yobi 8.2.0-31 → 8.2.0-34
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/{filters-helpers-4a3a446e.js → filters-helpers-5aa63586.js} +2 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/yoo-context-menu-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-entity-query-builder.cjs.entry.js +1 -1
- package/dist/cjs/yoo-entity-search-filters.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-capture.cjs.entry.js +11 -11
- 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-grid.cjs.entry.js +1 -1
- 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/context-menu-dialog/context-menu-dialog.js +2 -2
- package/dist/collection/components/2.molecules/profile-list/profile-list.js +2 -1
- package/dist/collection/components/form/form-capture/form-capture.js +12 -12
- package/dist/collection/components/form/form-choice/card/form-choice-card.js +6 -16
- 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/collection/utils/helpers/filters-helpers.js +2 -0
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{filters-helpers-e37fa627.js → filters-helpers-d4fc3be5.js} +2 -0
- package/dist/design-system/yoo-context-menu-dialog.entry.js +2 -2
- package/dist/design-system/yoo-entity-query-builder.entry.js +1 -1
- package/dist/design-system/yoo-entity-search-filters.entry.js +1 -1
- package/dist/design-system/yoo-form-capture.entry.js +11 -11
- 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-grid.entry.js +1 -1
- 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/{filters-helpers-e37fa627.js → filters-helpers-d4fc3be5.js} +2 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/yoo-context-menu-dialog.entry.js +2 -2
- package/dist/esm/yoo-entity-query-builder.entry.js +1 -1
- package/dist/esm/yoo-entity-search-filters.entry.js +1 -1
- package/dist/esm/yoo-form-capture.entry.js +11 -11
- 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-grid.entry.js +1 -1
- 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-capture/form-capture.d.ts +1 -1
- package/dist/types/components/form/form-choice/card/form-choice-card.d.ts +0 -2
- 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
|
@@ -242,6 +242,7 @@ function mapCustomViewToButton(c, currentCustomView, session, authentication, cu
|
|
|
242
242
|
? {
|
|
243
243
|
icon: 'pen',
|
|
244
244
|
iconColor: 'stable',
|
|
245
|
+
iconSize: 'small',
|
|
245
246
|
handler: () => customViewSaved(c)
|
|
246
247
|
}
|
|
247
248
|
: null,
|
|
@@ -249,6 +250,7 @@ function mapCustomViewToButton(c, currentCustomView, session, authentication, cu
|
|
|
249
250
|
? {
|
|
250
251
|
icon: 'delete',
|
|
251
252
|
iconColor: 'stable',
|
|
253
|
+
iconSize: 'small',
|
|
252
254
|
handler: () => customViewRemoved(c)
|
|
253
255
|
}
|
|
254
256
|
: null
|
|
@@ -132,12 +132,12 @@ const YooContextMenuDialogComponent = class {
|
|
|
132
132
|
]) : (h("span", { innerHTML: translateMulti(textContent) })));
|
|
133
133
|
}
|
|
134
134
|
renderRightActions(item) {
|
|
135
|
-
const { subMenu, isToggle, selectedFn, selected, handler, actionableIcon, actionableIcons
|
|
135
|
+
const { subMenu, isToggle, selectedFn, selected, handler, actionableIcon, actionableIcons } = item;
|
|
136
136
|
return [
|
|
137
137
|
!!(subMenu === null || subMenu === void 0 ? void 0 : subMenu.length) && h("yoo-icon", { class: "arrows", name: `arrow-${this.openSubMenuOnLeft ? 'left' : 'right'}` }),
|
|
138
138
|
isToggle && h("yoo-form-toggle", { size: "medium", value: (selectedFn === null || selectedFn === void 0 ? void 0 : selectedFn()) || selected, onInputChanged: () => handler === null || handler === void 0 ? void 0 : handler() }),
|
|
139
139
|
actionableIcon && h("yoo-icon", { size: (actionableIcon === null || actionableIcon === void 0 ? void 0 : actionableIcon.iconSize) || 'medium', class: "right-aligned", name: actionableIcon.icon, color: actionableIcon.iconColor, onClick: (ev) => this.onActionableIconClick(ev, actionableIcon) }),
|
|
140
|
-
actionableIcons === null || actionableIcons === void 0 ? void 0 : actionableIcons.map((action) => h("yoo-icon", { size: action.iconSize || 'medium', class: "right-aligned", name: icon, color: iconColor, onClick: (ev) => this.onActionableIconClick(ev, action) }))
|
|
140
|
+
actionableIcons === null || actionableIcons === void 0 ? void 0 : actionableIcons.map((action) => h("yoo-icon", { size: action.iconSize || 'medium', class: "right-aligned", name: action.icon, color: action.iconColor, onClick: (ev) => this.onActionableIconClick(ev, action) }))
|
|
141
141
|
];
|
|
142
142
|
}
|
|
143
143
|
renderItemContent(item) {
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, i as createEvent, f as forceUpdate, h, e as Host
|
|
|
2
2
|
import { c as FormFieldType } from './index-da54e081.js';
|
|
3
3
|
import { aE as isPresent, aI as getUUID, t as translate, o as isWeb, af as showActionSheet, _ as getSession, cI as getAuthentication } from './index-60d331ff.js';
|
|
4
4
|
import { a7 as sum, w as cloneDeep, P as findIndex, $ as flatten } from './lodash-b0ad17f3.js';
|
|
5
|
-
import { b as filterIsRadio, a as filterIsAutocomplete, k as filterIsSegement, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, f as filterFromFormField, c as filterRenderFormDynamic, m as mapCustomViewToButton } from './filters-helpers-
|
|
5
|
+
import { b as filterIsRadio, a as filterIsAutocomplete, k as filterIsSegement, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, f as filterFromFormField, c as filterRenderFormDynamic, m as mapCustomViewToButton } from './filters-helpers-d4fc3be5.js';
|
|
6
6
|
import './_commonjsHelpers-f4d11124.js';
|
|
7
7
|
|
|
8
8
|
const entityQueryBuilderCss = ".container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;margin-left:0}.container.expanded{margin-bottom:var(--spacing-16, 1rem)}.container .flex{-ms-flex:1;flex:1}.container yoo-button.margin-left{margin-left:var(--spacing-16, 1rem)}.container yoo-tooltip{margin-left:var(--spacing-08, 0.5rem)}.container .toggle-selected{margin-left:var(--spacing-16, 1rem)}.container .sorts{width:8.5rem;margin-right:var(--spacing-08, 0.5rem);margin-left:var(--spacing-08, 0.5rem)}yoo-banner{margin-bottom:var(--spacing-08, 0.5rem)}.filters-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;padding:0}.filters-container.disabled yoo-button,.filters-container.disabled yoo-form-dynamic{opacity:0.2 !important;pointer-events:none}.filters-container:not(.open){display:none}.filters-container.advanced yoo-form-input-container{padding-bottom:0.75rem}.filters-container.advanced yoo-button{padding-bottom:var(--spacing-04, 0.25rem)}.filters-container.advanced yoo-button yoo-icon.add{color:var(--stable, #adadad)}.filters-container.advanced yoo-button.add-filter{margin-right:var(--spacing-16, 1rem)}.filters-container.advanced yoo-button.margin-right{margin-right:var(--spacing-08, 0.5rem);margin-left:0}.filters-container.advanced yoo-form-input-container.operator{margin:calc(var(--spacing-04, 0.25rem) * -1) var(--spacing-04, 0.25rem) 0 calc(var(--spacing-08, 0.5rem) * -1);padding:0 0.5rem;padding-bottom:0;text-align:center}.filters-container yoo-form-dynamic.fill-width:not(.web){width:100%}:host(.no-padding) yoo-button.filters.margin-left{margin-left:0}:host(.floating) ::slotted(.search-container-inner[slot=before]){width:100%}:host(.floating) .container.expanded{margin-bottom:0}:host(.floating) yoo-context-menu{width:100%}:host(.floating) .header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%;padding:var(--spacing-08, 0.5rem) var(--spacing-16, 1rem) 0}:host(.floating) .header.width-auto{width:auto;cursor:pointer}:host(.floating) .header .title{-ms-flex:1;flex:1;font-weight:bold;font-size:var(--font-size-14, 0.875rem)}:host(.floating) .header .title.app-color{color:var(--app-color, #5a30f4)}:host(.floating) .footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;width:100%;padding:var(--spacing-16, 1rem);-webkit-column-gap:var(--spacing-16, 1rem);-moz-column-gap:var(--spacing-16, 1rem);column-gap:var(--spacing-16, 1rem);border-top:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1)}:host(.floating) .footer .flex{-ms-flex:1;flex:1}:host(.floating) .footer yoo-button{max-width:6rem}:host(.floating) .subfooter{width:100%;padding:var(--spacing-08, 0.5rem);font-size:var(--font-size-12, 0.75rem);text-align:center;border-top:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1);cursor:pointer}:host(.floating) .filters-container.open{position:absolute;left:21rem;width:15rem;padding:0;background:var(--light, #ffffff);border:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1);-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))}:host(.floating) .filters-container.open yoo-form-dynamic{width:100%;max-height:calc(100vh - 30.25rem);margin:auto;overflow-y:auto;}:host(.floating) .filters-container.open yoo-form-dynamic::-webkit-scrollbar{width:var(--spacing-04, 0.25rem);height:var(--spacing-04, 0.25rem)}:host(.floating) .filters-container.open yoo-form-dynamic::-webkit-scrollbar-track{background-color:transparent;border-radius:var(--border-radius-04, 0.25rem)}:host(.floating) .filters-container.open yoo-form-dynamic::-webkit-scrollbar-thumb{background-color:transparent;border-radius:var(--border-radius-04, 0.25rem)}";
|
|
@@ -3,7 +3,7 @@ import { c as FormFieldType } from './index-da54e081.js';
|
|
|
3
3
|
import { t as translate, R as isNullOrUndefined, T as translateMulti } from './index-60d331ff.js';
|
|
4
4
|
import { c as compact, p as isString, s as isObject, v as isEmpty, l as isNumber } from './lodash-b0ad17f3.js';
|
|
5
5
|
import { b as getAppContext } from './common-helpers-7760f0f6.js';
|
|
6
|
-
import { f as filterFromFormField, a as filterIsAutocomplete, b as filterIsRadio, c as filterRenderFormDynamic, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, j as filterCleanupNewField } from './filters-helpers-
|
|
6
|
+
import { f as filterFromFormField, a as filterIsAutocomplete, b as filterIsRadio, c as filterRenderFormDynamic, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, j as filterCleanupNewField } from './filters-helpers-d4fc3be5.js';
|
|
7
7
|
import './_commonjsHelpers-f4d11124.js';
|
|
8
8
|
|
|
9
9
|
const entitySearchFiltersCss = ":host .outer-container{padding:1rem 1rem 0 1rem}:host .outer-container .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;height:1.3125rem;margin-top:var(--spacing-08, 0.5rem);font-weight:var(--font-weight-700, 700);font-size:var(--font-size-18, 1.125rem)}:host .outer-container .menu-title{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;margin-top:1.2rem;font-size:var(--font-size-16, 1rem)}:host .outer-container .menu{margin:0;padding:0;font-size:100%;vertical-align:baseline;list-style:none outside none;background:none repeat scroll 0 0 transparent;border:0 none;outline:0 none;-webkit-tap-highlight-color:transparent;margin:0;padding:0 0 0.3125rem;list-style:none}:host .outer-container .menu .menu-item{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:100%;min-height:2.75rem;padding:0 1rem 0 0;font-weight:var(--font-weight-400, 400)}:host .outer-container .menu .menu-item div{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-item-align:center;align-self:center}:host .outer-container .menu .menu-item div .menu-item-title{width:100%;margin-left:var(--spacing-08, 0.5rem)}:host .outer-container .menu .border{width:100%;height:0;border-top:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1)}:host .outer-container .menu{margin:0 0.5rem}:host .outer-container .menu .menu-item{padding:0;cursor:pointer}:host .outer-container .menu .menu-item .menu-item-title{width:100%}:host .outer-container .menu .menu-item yoo-form-checkbox{padding-right:var(--spacing-04, 0.25rem)}:host .outer-container yoo-form-input-container{margin-top:0.8rem}:host .outer-container yoo-form-dynamic.margin-top{margin-top:0.8rem}:host .outer-container .filter-container.flex{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-top:0.8rem}:host .outer-container .filter-container.flex .menu-title{-ms-flex:1;flex:1;margin-top:0}:host .outer-container .filter-container.flex .menu{margin:0;padding-bottom:0}:host(.web) .outer-container{width:80%;max-width:500px;margin:auto}";
|
|
@@ -37,7 +37,7 @@ const YooFormCaptureComponent = class {
|
|
|
37
37
|
this.min = 1;
|
|
38
38
|
this.max = 1;
|
|
39
39
|
this.validators = [];
|
|
40
|
-
this.
|
|
40
|
+
this.isProcessingPhoto = true;
|
|
41
41
|
this.isSelectorMode = false;
|
|
42
42
|
this.selectedIndex = [];
|
|
43
43
|
this.overflowOffset = 4;
|
|
@@ -72,15 +72,7 @@ const YooFormCaptureComponent = class {
|
|
|
72
72
|
this.emitOnUpdated = false;
|
|
73
73
|
}
|
|
74
74
|
async onPhotoUploadComplete() {
|
|
75
|
-
this.isUploadingPhoto = false;
|
|
76
75
|
this.currentUploadingStatus = translate('RECOGNIZINGIMAGES');
|
|
77
|
-
if (this.progressBarRef && this.progressBarRef.length > 0) {
|
|
78
|
-
this.progressBarRef.forEach((ref) => {
|
|
79
|
-
if (ref) {
|
|
80
|
-
ref.value = 100;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
76
|
}
|
|
85
77
|
async onPhotoUploadProgressUpdate(progress, index) {
|
|
86
78
|
if (this.progressBarRef && this.progressBarRef[index]) {
|
|
@@ -101,6 +93,14 @@ const YooFormCaptureComponent = class {
|
|
|
101
93
|
});
|
|
102
94
|
}
|
|
103
95
|
async processImageRecognitionResults(imageRecognitionResults, priceRecognitionResults) {
|
|
96
|
+
this.isProcessingPhoto = false;
|
|
97
|
+
if (this.progressBarRef && this.progressBarRef.length > 0) {
|
|
98
|
+
this.progressBarRef.forEach((ref) => {
|
|
99
|
+
if (ref) {
|
|
100
|
+
ref.value = 100;
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
104
|
if (!this.imageRecoCancelled) {
|
|
105
105
|
if (this.progressBarMainRef) {
|
|
106
106
|
this.progressBarMainRef.progressAnimationDuration = 0.5;
|
|
@@ -1010,7 +1010,7 @@ const YooFormCaptureComponent = class {
|
|
|
1010
1010
|
return;
|
|
1011
1011
|
}
|
|
1012
1012
|
this.imageRecoCancelled = false;
|
|
1013
|
-
this.
|
|
1013
|
+
this.isProcessingPhoto = true;
|
|
1014
1014
|
if (this.isValueValid() && this.algorithm && !this.isProcessing) {
|
|
1015
1015
|
// emit image recognition event
|
|
1016
1016
|
this.currentUploadingStatus = translate('UPLOADINGPHOTOS');
|
|
@@ -1544,7 +1544,7 @@ const YooFormCaptureComponent = class {
|
|
|
1544
1544
|
return (h("div", { class: "progressbar-wrapper" }, mainProgress
|
|
1545
1545
|
? [
|
|
1546
1546
|
this.currentUploadingStatus && (isUndefined(index) || !this.multiple) && h("div", { class: "text app-color" }, this.currentUploadingStatus),
|
|
1547
|
-
!this.
|
|
1547
|
+
!this.isProcessingPhoto && (h("div", { class: "main-wrapper" }, h("yoo-progress-bar", { value: 100, hideProgressValue: true, listenToProgress: true, listenToCompleteProgress: true, disableBackProgressAnimation: true, progressAnimationDuration: this.progressTime, onValueChanged: (ev) => onProgressUpdating(ev), onProgressFinished: (ev) => onProgressFinished(ev), ref: (el) => (this.progressBarMainRef = el) })))
|
|
1548
1548
|
]
|
|
1549
1549
|
: [
|
|
1550
1550
|
h("yoo-progress-bar", { class: "photo-progress app-color", value: 0, hideProgressValue: true, progressAnimationDuration: 0.5, ref: (el) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, i as createEvent, h, e as Host, g as getElement } from './index-019c1b1a.js';
|
|
2
2
|
import { i as isChromatic, t as translate, T as translateMulti } from './index-60d331ff.js';
|
|
3
3
|
import { s as setColorSVG } from './common-helpers-7760f0f6.js';
|
|
4
|
-
import {
|
|
4
|
+
import { p as prepareChoice, h as hasWarnings, i as isSelected, o as onItemSelect } from './form-choice-helpers-b1f907b5.js';
|
|
5
5
|
import { R as ReadonlyCard } from './readonly-card-a23bca7c.js';
|
|
6
6
|
import './lodash-b0ad17f3.js';
|
|
7
7
|
import './_commonjsHelpers-f4d11124.js';
|
|
@@ -27,12 +27,6 @@ const YooFormChoiceCardComponent = class {
|
|
|
27
27
|
this.imgElements = [];
|
|
28
28
|
this.choices = [];
|
|
29
29
|
}
|
|
30
|
-
onValuesChanged(newValues, oldValues) {
|
|
31
|
-
updateValues(newValues, oldValues, this);
|
|
32
|
-
}
|
|
33
|
-
onValueChanged(newValue, oldValue) {
|
|
34
|
-
updateValue(newValue, oldValue, this);
|
|
35
|
-
}
|
|
36
30
|
componentWillLoad() {
|
|
37
31
|
var _a;
|
|
38
32
|
prepareChoice(this);
|
|
@@ -74,7 +68,10 @@ const YooFormChoiceCardComponent = class {
|
|
|
74
68
|
return h("yoo-icon", { name: "check" });
|
|
75
69
|
}
|
|
76
70
|
renderSelect(item, index) {
|
|
77
|
-
const selected = isSelected(
|
|
71
|
+
const selected = ((isSelected('true', this.selection) && index === 0) ||
|
|
72
|
+
(isSelected('false', this.selection) && index === 0) ||
|
|
73
|
+
isSelected(item.value || item.title, this.selection) ||
|
|
74
|
+
isSelected(item || item.title, this.selection));
|
|
78
75
|
return (h("div", { class: { 'select': true, selected }, style: { ...(this.maxWidth > 0 && { maxWidth: `${this.maxWidth}px` }) }, onClick: () => onItemSelect(item.value || item.title, this) }, this.renderCardContent(item, selected, index), !item.image &&
|
|
79
76
|
!item.lottie &&
|
|
80
77
|
!item.hideCheckbox &&
|
|
@@ -96,10 +93,6 @@ const YooFormChoiceCardComponent = class {
|
|
|
96
93
|
]));
|
|
97
94
|
}
|
|
98
95
|
get host() { return getElement(this); }
|
|
99
|
-
static get watchers() { return {
|
|
100
|
-
"values": ["onValuesChanged"],
|
|
101
|
-
"value": ["onValueChanged"]
|
|
102
|
-
}; }
|
|
103
96
|
};
|
|
104
97
|
YooFormChoiceCardComponent.style = formChoiceCardCss;
|
|
105
98
|
|
|
@@ -120,7 +120,6 @@ const YooFormCreatorPageCardListComponent = class {
|
|
|
120
120
|
const indexSlideTo = sortEvent.indexTo - 1 >= 0 ? sortEvent.indexTo - 1 : 0;
|
|
121
121
|
this.pageOrderChanged.emit(sortEvent);
|
|
122
122
|
this.pageCardsParentEl.slideTo(indexSlideTo);
|
|
123
|
-
this.pageClicked.emit(sortEvent.indexTo);
|
|
124
123
|
};
|
|
125
124
|
}
|
|
126
125
|
renderPageCards() {
|
|
@@ -153,6 +153,7 @@ const YooFormCreatorComponent = class {
|
|
|
153
153
|
this.restrictionConditionSelectedTab = 0;
|
|
154
154
|
this.expandedConditions = [];
|
|
155
155
|
this.isPageReordering = false;
|
|
156
|
+
this.pagesReordered = false;
|
|
156
157
|
this.onInsertPageAfterClicked = (event) => {
|
|
157
158
|
if (event) {
|
|
158
159
|
this.onAddNewPage(event.detail + 1);
|
|
@@ -171,12 +172,14 @@ const YooFormCreatorComponent = class {
|
|
|
171
172
|
this.removeOverlays();
|
|
172
173
|
}
|
|
173
174
|
else {
|
|
174
|
-
this.
|
|
175
|
-
this.
|
|
176
|
-
this.hasPageChanged = event.detail;
|
|
177
|
-
this.resetExpandableBlockReferences();
|
|
175
|
+
this.selectPage(event.detail);
|
|
176
|
+
this.pagesReordered = false;
|
|
178
177
|
}
|
|
179
178
|
};
|
|
179
|
+
this.onPageOrderChanged = (event) => {
|
|
180
|
+
this.selectPage(event.detail.indexTo);
|
|
181
|
+
this.pagesReordered = true;
|
|
182
|
+
};
|
|
180
183
|
this.onDuplicatePageClicked = (event) => {
|
|
181
184
|
var _a, _b, _c, _d;
|
|
182
185
|
if (event) {
|
|
@@ -420,7 +423,12 @@ const YooFormCreatorComponent = class {
|
|
|
420
423
|
});
|
|
421
424
|
this.currentExpandedBlockLocation = { slideIndex, itemIndex };
|
|
422
425
|
this.expandedFieldName = event.detail.name || this.expandedFieldName;
|
|
423
|
-
this.
|
|
426
|
+
if (!this.pagesReordered) {
|
|
427
|
+
this.scrollToField(itemIndex);
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
this.pagesReordered = false;
|
|
431
|
+
}
|
|
424
432
|
}
|
|
425
433
|
else if (!event.detail.expanded && this.currentExpandedBlockLocation && itemIndex === this.currentExpandedBlockLocation.itemIndex) {
|
|
426
434
|
this.currentExpandedBlockLocation = null;
|
|
@@ -1012,6 +1020,12 @@ const YooFormCreatorComponent = class {
|
|
|
1012
1020
|
}
|
|
1013
1021
|
this.shouldRenderLeftSelectionContent = true;
|
|
1014
1022
|
}
|
|
1023
|
+
selectPage(pageIndex) {
|
|
1024
|
+
this.selectedPageIndex = pageIndex;
|
|
1025
|
+
this.pageHeaderClicked.emit(pageIndex);
|
|
1026
|
+
this.hasPageChanged = pageIndex;
|
|
1027
|
+
this.resetExpandableBlockReferences();
|
|
1028
|
+
}
|
|
1015
1029
|
updateGlobalActions() {
|
|
1016
1030
|
this.selectedMoveActions = setBlockSelection(this.itemList, null, (slideIndex, _itemIndex, itemId) => this.moveSelectedFields(itemId, slideIndex), {
|
|
1017
1031
|
extraStartingItems: [
|
|
@@ -2162,7 +2176,7 @@ const YooFormCreatorComponent = class {
|
|
|
2162
2176
|
selected: this.isPagesAccordionOpen,
|
|
2163
2177
|
actionButtons
|
|
2164
2178
|
}
|
|
2165
|
-
], iconPairLeft: ARROW_PAIR, showBottomBorder: true, forceEntryUpdate: true, allowMultipleSelection: true, onAccordionSelected: (event) => this.onPagesAccordionSelected(event) }, h("div", { slot: "PAGES" }, 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: () => {
|
|
2179
|
+
], iconPairLeft: ARROW_PAIR, showBottomBorder: true, forceEntryUpdate: true, allowMultipleSelection: true, onAccordionSelected: (event) => this.onPagesAccordionSelected(event) }, h("div", { slot: "PAGES" }, 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: () => {
|
|
2166
2180
|
this.isPageReordering = false;
|
|
2167
2181
|
}, onReorderStarted: () => {
|
|
2168
2182
|
this.isPageReordering = true;
|
|
@@ -2344,7 +2358,7 @@ const YooFormCreatorComponent = class {
|
|
|
2344
2358
|
}
|
|
2345
2359
|
renderLivePreview() {
|
|
2346
2360
|
var _a;
|
|
2347
|
-
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) }, h("div", { class: "slot-container", slot: "livePreview" }, h("slot", { name: "livePreview" }))));
|
|
2361
|
+
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) }, h("div", { class: "slot-container", slot: "livePreview" }, h("slot", { name: "livePreview" }))));
|
|
2348
2362
|
}
|
|
2349
2363
|
renderFormDynamic() {
|
|
2350
2364
|
var _a;
|
|
@@ -7,7 +7,7 @@ import './index-bcf5e064.js';
|
|
|
7
7
|
import { g as getButton } from './button.factory-07402056.js';
|
|
8
8
|
import { a as assignPressActions } from './index-8e7c8c76.js';
|
|
9
9
|
import { f as querySelectorAllDeep, u as hideShowSearchBar, v as getNextValueInArray, b as getAppContext } from './common-helpers-7760f0f6.js';
|
|
10
|
-
import { m as mapCustomViewToButton, l as isKanbanColumnField } from './filters-helpers-
|
|
10
|
+
import { m as mapCustomViewToButton, l as isKanbanColumnField } from './filters-helpers-d4fc3be5.js';
|
|
11
11
|
import { s as setValidator, a as setValueAndValidateInput } from './form-input-helpers-21c08c10.js';
|
|
12
12
|
import { g as getRenderer } from './grid-renderers-9a86a81b.js';
|
|
13
13
|
import { I as ItemSlidingType } from './item-sliding.interface-85f6790e.js';
|
|
@@ -4,7 +4,7 @@ import { A as get, l as isNumber } from './lodash-b0ad17f3.js';
|
|
|
4
4
|
import './_commonjsHelpers-f4d11124.js';
|
|
5
5
|
import './index-da54e081.js';
|
|
6
6
|
|
|
7
|
-
const lessonQuestionResultCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;height:100%;background-color:var(--light, #ffffff)}:host yoo-navbar{background-color:var(--stable-light, #f1f1f1)}:host yoo-ion-scroll{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%}:host yoo-ion-scroll .result-title{margin:var(--spacing-08, 0.5rem) 0 var(--spacing-16, 1rem) 0;color:var(--app-color, #5a30f4);text-align:center}:host yoo-ion-scroll .result-text{margin:0 var(--spacing-64, 4rem);padding-bottom:var(--spacing-08, 0.5rem);color:var(--text-color, #807f83);line-height:1.5625rem;text-align:center}:host yoo-ion-scroll .result-explanation{margin:var(--spacing-08, 0.5rem) var(--spacing-64, 4rem);text-align:center}:host yoo-ion-scroll .result-explanation .explanation-value{color:var(--text-color, #807f83);line-height:1.5625rem}:host yoo-ion-scroll .result-explanation .explanation-title{padding-bottom:var(--spacing-08, 0.5rem);font-weight:bold}:host yoo-ion-scroll .separator{width:90%;border-bottom:var(--border-width-01, 0.0625rem) solid var(--stable-alt, #d0d0d0)}:host yoo-ion-scroll .result-document{margin:var(--spacing-16, 1rem)}:host yoo-ion-scroll .result-document .document-title{padding-bottom:var(--spacing-08, 0.5rem);font-weight:bold;font-size:var(--font-size-16, 1rem);text-align:center}:host yoo-ion-scroll .result-tag{padding:var(--spacing-08, 0.5rem);text-align:center}:host yoo-ion-scroll .result-tag span{color:var(--dark, #000000);font-size:var(--font-size-16, 1rem)}:host yoo-ion-scroll .result-tag span.action{color:var(--stable, #adadad);font-size:var(--font-size-14, 0.875rem);cursor:pointer}:host yoo-ion-scroll .result-tag .tag{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;margin:auto;font-size:var(--font-size-12, 0.75rem)}:host yoo-ion-scroll .result-tag .tag .tag-title{text-align:center}:host yoo-ion-scroll .result-tag .tags{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}:host yoo-ion-scroll .result-tag .tags .badge-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;
|
|
7
|
+
const lessonQuestionResultCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;height:100%;background-color:var(--light, #ffffff)}:host yoo-navbar{background-color:var(--stable-light, #f1f1f1)}:host yoo-ion-scroll{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%}:host yoo-ion-scroll .result-title{margin:var(--spacing-08, 0.5rem) 0 var(--spacing-16, 1rem) 0;color:var(--app-color, #5a30f4);text-align:center}:host yoo-ion-scroll .result-text{margin:0 var(--spacing-64, 4rem);padding-bottom:var(--spacing-08, 0.5rem);color:var(--text-color, #807f83);line-height:1.5625rem;text-align:center}:host yoo-ion-scroll .result-explanation{margin:var(--spacing-08, 0.5rem) var(--spacing-64, 4rem);text-align:center}:host yoo-ion-scroll .result-explanation .explanation-value{color:var(--text-color, #807f83);line-height:1.5625rem}:host yoo-ion-scroll .result-explanation .explanation-title{padding-bottom:var(--spacing-08, 0.5rem);font-weight:bold}:host yoo-ion-scroll .separator{width:90%;border-bottom:var(--border-width-01, 0.0625rem) solid var(--stable-alt, #d0d0d0)}:host yoo-ion-scroll .result-document{margin:var(--spacing-16, 1rem)}:host yoo-ion-scroll .result-document .document-title{padding-bottom:var(--spacing-08, 0.5rem);font-weight:bold;font-size:var(--font-size-16, 1rem);text-align:center}:host yoo-ion-scroll .result-tag{padding:var(--spacing-08, 0.5rem);text-align:center}:host yoo-ion-scroll .result-tag span{color:var(--dark, #000000);font-size:var(--font-size-16, 1rem)}:host yoo-ion-scroll .result-tag span.action{color:var(--stable, #adadad);font-size:var(--font-size-14, 0.875rem);cursor:pointer}:host yoo-ion-scroll .result-tag .tag{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;margin:auto;font-size:var(--font-size-12, 0.75rem)}:host yoo-ion-scroll .result-tag .tag .tag-title{text-align:center}:host yoo-ion-scroll .result-tag .tags{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}:host yoo-ion-scroll .result-tag .tags .badge-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;margin:var(--spacing-08, 0.5rem) 0;font-size:var(--font-size-12, 0.75rem)}:host yoo-ion-scroll .result-tag .tags .badge-container yoo-tag{padding:var(--spacing-04, 0.25rem);background:var(--light, #ffffff);border-radius:var(--spacing-40, 2.5rem)}:host yoo-ion-scroll .document-image{display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-webkit-box-sizing:border-box;box-sizing:border-box;padding:var(--spacing-16, 1rem);overflow:hidden;--border-radius:var(--border-radius-08, 0.5rem)}:host yoo-ion-scroll yoo-progress-recap,:host yoo-ion-scroll yoo-points-recap{display:block;width:calc(100% - 2rem);max-width:30rem;margin:0 auto;padding:var(--spacing-08, 0.5rem)}:host .wall{position:absolute;width:100%;height:16rem;background-image:-webkit-gradient(linear, left bottom, left top, from(var(--light, #ffffff)), to(var(--stable-light, #f1f1f1)));background-image:linear-gradient(to top, var(--light, #ffffff), var(--stable-light, #f1f1f1));mix-blend-mode:multiply}:host yoo-lottie{height:12.5rem}:host yoo-tag{display:block;margin:0 auto}:host main{width:100%;padding-top:calc(var(--safe-area-inset-top) + var(--spacing-32, 2rem))}:host .answers{width:100%;padding-bottom:var(--spacing-16, 1rem)}:host .answers .title{padding:var(--spacing-08, 0.5rem) var(--spacing-16, 1rem);font-size:var(--font-size-24, 1.5rem)}";
|
|
8
8
|
|
|
9
9
|
const YooLessonQuestionResultComponent = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -109,7 +109,8 @@ const YooProfileListComponent = class {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
renderTruncate(content, icon) {
|
|
112
|
-
|
|
112
|
+
const charLength = isWeb(this.host) ? 83 : 38;
|
|
113
|
+
return (h("div", { class: "user-info-list" }, h("div", { class: "start-container" }, h("yoo-icon", { name: icon, color: "dark" }), h("yoo-truncate", { content: content, maxLength: charLength, showEllipsisIcon: true, ellipsisIconSize: "medium" }))));
|
|
113
114
|
}
|
|
114
115
|
renderCollapsible(header, content) {
|
|
115
116
|
return (h("yoo-collapsible", { hasArrowIcon: !!content.length, icon: "tag", iconColor: "dark", iconSize: "medium", slotHeader: true }, h("div", { slot: "title" }, header === null || header === void 0 ? void 0 : header.map(tag => {
|
|
@@ -39,6 +39,7 @@ const YooTruncateComponent = class {
|
|
|
39
39
|
* Used more icon instead of text as ellipsis button.
|
|
40
40
|
*/
|
|
41
41
|
this.showEllipsisIcon = false;
|
|
42
|
+
this.ellipsisIconSize = 'small';
|
|
42
43
|
/**
|
|
43
44
|
* Alters how the <br> tag is handled for markdown
|
|
44
45
|
*/
|
|
@@ -60,7 +61,7 @@ const YooTruncateComponent = class {
|
|
|
60
61
|
return `<span class="more-button"> ${this.collapsed ? `... ${translate('MORE2')}` : translate('VIEWLESS')}</span>`;
|
|
61
62
|
};
|
|
62
63
|
this.getMoreIconHtml = () => {
|
|
63
|
-
return `<span><span>${this.collapsed ? '...' : ''}</span><yoo-icon class="more-button" name=${this.collapsed ? 'arrow-down' : 'arrow-up'} size="
|
|
64
|
+
return `<span><span>${this.collapsed ? '...' : ''}</span><yoo-icon class="more-button" name=${this.collapsed ? 'arrow-down' : 'arrow-up'} size="${this.ellipsisIconSize}" /></span>`;
|
|
64
65
|
};
|
|
65
66
|
}
|
|
66
67
|
onShowEllipsisButtonChanged() {
|