@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
|
@@ -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() {
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name: Truncate
|
|
3
|
+
* @author: Romain Panaget
|
|
4
|
+
*/
|
|
5
|
+
import { TSize } from '@shared/interfaces';
|
|
1
6
|
import { Event, EventEmitter } from '../../../stencil-public-runtime';
|
|
2
7
|
export declare class YooTruncateComponent {
|
|
3
8
|
/**
|
|
@@ -28,6 +33,7 @@ export declare class YooTruncateComponent {
|
|
|
28
33
|
* Used more icon instead of text as ellipsis button.
|
|
29
34
|
*/
|
|
30
35
|
showEllipsisIcon: boolean;
|
|
36
|
+
ellipsisIconSize: TSize;
|
|
31
37
|
/**
|
|
32
38
|
* Holds the markdown/html content to truncate, for advanced truncation.
|
|
33
39
|
*/
|
|
@@ -18,9 +18,7 @@ export declare class YooFormChoiceCardComponent implements IFormSelect {
|
|
|
18
18
|
selected: boolean;
|
|
19
19
|
customEvent: boolean;
|
|
20
20
|
values: IFormChoiceValue[];
|
|
21
|
-
onValuesChanged(newValues: any, oldValues: any): void;
|
|
22
21
|
value: string[] | string;
|
|
23
|
-
onValueChanged(newValue: any, oldValue: any): void;
|
|
24
22
|
host: HTMLElement;
|
|
25
23
|
validityChanged: EventEmitter<boolean>;
|
|
26
24
|
inputBlurred: EventEmitter;
|
|
@@ -5,6 +5,7 @@ export declare class YooFormHotzonesComponent implements ComponentInterface {
|
|
|
5
5
|
image: string;
|
|
6
6
|
onImageChanged(): Promise<void>;
|
|
7
7
|
hotzones: IHotzone[];
|
|
8
|
+
onHotzonesChanged(): void;
|
|
8
9
|
hotzonesColor: string;
|
|
9
10
|
isVisible: boolean;
|
|
10
11
|
onIsVisibleChanged(): void;
|
|
@@ -37,5 +38,6 @@ export declare class YooFormHotzonesComponent implements ComponentInterface {
|
|
|
37
38
|
renderDetailedView(): JSX.Element[];
|
|
38
39
|
renderTarget(): JSX.Element;
|
|
39
40
|
renderImage(): JSX.Element;
|
|
41
|
+
renderBanner(): any;
|
|
40
42
|
render(): JSX.Element;
|
|
41
43
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConditionType, FormCreatorBulkActions, FormCreatorOptions, FormFieldCategory, IButton, ICondition, ICustomFormField, IFormField, IFormFieldDescription, IMissionDescription, IPlan, IScoring, IScoringQuickSetup, IScrollDetail, ISlide, ITranslation, IWorkflowStep, TIconName, TWorkflowStepType } from '@shared/interfaces';
|
|
1
|
+
import { ConditionType, FormCreatorBulkActions, FormCreatorOptions, FormFieldCategory, IButton, ICondition, ICustomFormField, IFormField, IFormFieldDescription, IMissionDescription, IPlan, IScoring, IScoringQuickSetup, IScrollDetail, ISectionListSortEvent, ISlide, ITranslation, IWorkflowStep, TIconName, TWorkflowStepType } from '@shared/interfaces';
|
|
2
2
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
3
3
|
import { IScoreChangedDetail } from '../../../interfaces';
|
|
4
4
|
export declare class YooFormCreatorComponent {
|
|
@@ -393,6 +393,7 @@ export declare class YooFormCreatorComponent {
|
|
|
393
393
|
private isPageReordering;
|
|
394
394
|
private missDescDisplayTitle;
|
|
395
395
|
private displayLanguage;
|
|
396
|
+
private pagesReordered;
|
|
396
397
|
/**
|
|
397
398
|
* hides or shows an overlay over the form creator to force the user to select a NEW field
|
|
398
399
|
*/
|
|
@@ -415,6 +416,7 @@ export declare class YooFormCreatorComponent {
|
|
|
415
416
|
private get isLesson();
|
|
416
417
|
onInsertPageAfterClicked: (event: CustomEvent<number>) => void;
|
|
417
418
|
onPageClicked: (event: CustomEvent<number>) => void;
|
|
419
|
+
onPageOrderChanged: (event: CustomEvent<ISectionListSortEvent>) => void;
|
|
418
420
|
onDuplicatePageClicked: (event: CustomEvent<number>) => void;
|
|
419
421
|
onDeletePageClicked: (event: CustomEvent<number>) => void;
|
|
420
422
|
onEditPageClicked: (event: CustomEvent<number>) => void;
|
|
@@ -583,6 +585,7 @@ export declare class YooFormCreatorComponent {
|
|
|
583
585
|
componentDidLoad(): void;
|
|
584
586
|
componentWillUpdate(): void;
|
|
585
587
|
componentDidUpdate(): void;
|
|
588
|
+
selectPage(pageIndex: number): void;
|
|
586
589
|
updateGlobalActions(): void;
|
|
587
590
|
disconnectedCallback(): void;
|
|
588
591
|
expandChildBlocks(itemIndex: number): Promise<void>;
|
|
@@ -6723,6 +6723,7 @@ export namespace Components {
|
|
|
6723
6723
|
* Piece of string placed at the end of a truncated text. Can be an html string.
|
|
6724
6724
|
*/
|
|
6725
6725
|
"ellipsis": string;
|
|
6726
|
+
"ellipsisIconSize": TSize;
|
|
6726
6727
|
/**
|
|
6727
6728
|
* Force the showing of more button when content is in the slot
|
|
6728
6729
|
*/
|
|
@@ -17757,6 +17758,7 @@ declare namespace LocalJSX {
|
|
|
17757
17758
|
* Piece of string placed at the end of a truncated text. Can be an html string.
|
|
17758
17759
|
*/
|
|
17759
17760
|
"ellipsis"?: string;
|
|
17761
|
+
"ellipsisIconSize"?: TSize;
|
|
17760
17762
|
/**
|
|
17761
17763
|
* Force the showing of more button when content is in the slot
|
|
17762
17764
|
*/
|