@yoobic/yobi 8.2.0-12 → 8.2.0-15
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/{grid-renderers-0c9a0d03.js → grid-renderers-faeb4762.js} +1 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/yoo-ag-grid.cjs.entry.js +1 -1
- package/dist/cjs/yoo-campaign-editor-recap.cjs.entry.js +1 -1
- package/dist/cjs/yoo-card-course-row.cjs.entry.js +7 -3
- package/dist/cjs/yoo-card-inbox.cjs.entry.js +2 -2
- package/dist/cjs/yoo-chat.cjs.entry.js +1 -1
- package/dist/cjs/yoo-course-summary.cjs.entry.js +3 -3
- package/dist/cjs/yoo-entity.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +2 -0
- package/dist/cjs/yoo-form-capture.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-catalog.cjs.entry.js +4 -2
- package/dist/cjs/yoo-form-dynamic.cjs.entry.js +6 -2
- package/dist/cjs/yoo-form-footer.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-input.cjs.entry.js +1 -1
- package/dist/cjs/yoo-grid.cjs.entry.js +3 -3
- package/dist/cjs/yoo-lesson-detail-card.cjs.entry.js +2 -2
- package/dist/cjs/yoo-mission-heading.cjs.entry.js +2 -2
- package/dist/cjs/yoo-pivot-table.cjs.entry.js +1 -1
- package/dist/cjs/yoo-profile-summary.cjs.entry.js +1 -1
- package/dist/cjs/yoo-progress-bar.cjs.entry.js +23 -36
- package/dist/cjs/yoo-progress-recap.cjs.entry.js +2 -2
- package/dist/cjs/yoo-tooltip.cjs.entry.js +4 -0
- package/dist/cjs/yoo-truncated-line.cjs.entry.js +9 -5
- package/dist/collection/components/1.atoms/progress-bar/progress-bar.css +5 -5
- package/dist/collection/components/1.atoms/progress-bar/progress-bar.js +23 -73
- package/dist/collection/components/1.atoms/tooltip/tooltip.js +23 -0
- package/dist/collection/components/1.atoms/truncated-line/truncated-line.js +10 -9
- package/dist/collection/components/2.molecules/profile-summary/profile-summary.css +3 -0
- package/dist/collection/components/2.molecules/progress-recap/progress-recap.js +2 -2
- package/dist/collection/components/entities/entity/entity.js +1 -1
- package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +2 -0
- package/dist/collection/components/form/form-capture/form-capture.css +3 -0
- package/dist/collection/components/form/form-capture/form-capture.js +1 -1
- package/dist/collection/components/form/form-catalog/form-catalog.js +4 -2
- package/dist/collection/components/form/form-dynamic/form-dynamic.js +6 -2
- package/dist/collection/components/form/form-footer/form-footer.css +1 -0
- package/dist/collection/components/form/form-footer/form-footer.js +1 -1
- package/dist/collection/components/grid/ag-grid/grid-renderers.js +2 -3
- package/dist/collection/components/grid/grid/grid.css +3 -0
- package/dist/collection/components/grid/grid/grid.js +1 -1
- package/dist/collection/feature-communicate/chat/chat/chat.js +1 -1
- package/dist/collection/feature-learn/learning/card-course/row/card-course-row.js +7 -3
- package/dist/collection/feature-learn/learning/course-summary/course-summary.css +1 -0
- package/dist/collection/feature-learn/learning/course-summary/course-summary.js +2 -2
- package/dist/collection/feature-learn/learning/lesson-detail-card/lesson-detail-card.css +1 -0
- package/dist/collection/feature-learn/learning/lesson-detail-card/lesson-detail-card.js +1 -1
- package/dist/collection/feature-operate/campaign/campaign-editor-recap/campaign-editor-recap.js +1 -1
- package/dist/collection/feature-operate/mission/card-inbox/card-inbox.css +1 -0
- package/dist/collection/feature-operate/mission/card-inbox/card-inbox.js +1 -1
- package/dist/collection/feature-operate/mission/mission-heading/mission-heading.css +3 -0
- package/dist/collection/feature-operate/mission/mission-heading/mission-heading.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{grid-renderers-f4f5634b.js → grid-renderers-bc677205.js} +2 -3
- package/dist/design-system/yoo-ag-grid.entry.js +1 -1
- package/dist/design-system/yoo-campaign-editor-recap.entry.js +1 -1
- package/dist/design-system/yoo-card-course-row.entry.js +7 -3
- package/dist/design-system/yoo-card-inbox.entry.js +2 -2
- package/dist/design-system/yoo-chat.entry.js +1 -1
- package/dist/design-system/yoo-course-summary.entry.js +3 -3
- package/dist/design-system/yoo-entity.entry.js +1 -1
- package/dist/design-system/yoo-form-autocomplete.entry.js +2 -0
- package/dist/design-system/yoo-form-capture.entry.js +2 -2
- package/dist/design-system/yoo-form-catalog.entry.js +4 -2
- package/dist/design-system/yoo-form-dynamic.entry.js +6 -2
- package/dist/design-system/yoo-form-footer.entry.js +2 -2
- package/dist/design-system/yoo-form-input.entry.js +1 -1
- package/dist/design-system/yoo-grid.entry.js +3 -3
- package/dist/design-system/yoo-lesson-detail-card.entry.js +2 -2
- package/dist/design-system/yoo-mission-heading.entry.js +2 -2
- package/dist/design-system/yoo-pivot-table.entry.js +1 -1
- package/dist/design-system/yoo-profile-summary.entry.js +1 -1
- package/dist/design-system/yoo-progress-bar.entry.js +24 -37
- package/dist/design-system/yoo-progress-recap.entry.js +2 -2
- package/dist/design-system/yoo-tooltip.entry.js +4 -0
- package/dist/design-system/yoo-truncated-line.entry.js +10 -6
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/{grid-renderers-f4f5634b.js → grid-renderers-bc677205.js} +2 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/yoo-ag-grid.entry.js +1 -1
- package/dist/esm/yoo-campaign-editor-recap.entry.js +1 -1
- package/dist/esm/yoo-card-course-row.entry.js +7 -3
- package/dist/esm/yoo-card-inbox.entry.js +2 -2
- package/dist/esm/yoo-chat.entry.js +1 -1
- package/dist/esm/yoo-course-summary.entry.js +3 -3
- package/dist/esm/yoo-entity.entry.js +1 -1
- package/dist/esm/yoo-form-autocomplete.entry.js +2 -0
- package/dist/esm/yoo-form-capture.entry.js +2 -2
- package/dist/esm/yoo-form-catalog.entry.js +4 -2
- package/dist/esm/yoo-form-dynamic.entry.js +6 -2
- package/dist/esm/yoo-form-footer.entry.js +2 -2
- package/dist/esm/yoo-form-input.entry.js +1 -1
- package/dist/esm/yoo-grid.entry.js +3 -3
- package/dist/esm/yoo-lesson-detail-card.entry.js +2 -2
- package/dist/esm/yoo-mission-heading.entry.js +2 -2
- package/dist/esm/yoo-pivot-table.entry.js +1 -1
- package/dist/esm/yoo-profile-summary.entry.js +1 -1
- package/dist/esm/yoo-progress-bar.entry.js +24 -37
- package/dist/esm/yoo-progress-recap.entry.js +2 -2
- package/dist/esm/yoo-tooltip.entry.js +4 -0
- package/dist/esm/yoo-truncated-line.entry.js +10 -6
- package/dist/types/components/1.atoms/progress-bar/progress-bar.d.ts +13 -27
- package/dist/types/components/1.atoms/tooltip/tooltip.d.ts +1 -0
- package/dist/types/components.d.ts +1 -16
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/form-field/form-field.interface.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/components/1.atoms/flip-card/flip-card.d.ts +0 -16
- package/dist/types/components/1.atoms/truncated-line/truncated-line.d.ts +0 -14
- package/dist/types/components/form/image-cropper-dialog/pintura/pintura.d.ts +0 -1070
|
@@ -4,7 +4,7 @@ import './lodash-9d33f885.js';
|
|
|
4
4
|
import './_commonjsHelpers-f4d11124.js';
|
|
5
5
|
import './index-daddf2c7.js';
|
|
6
6
|
|
|
7
|
-
const lessonDetailCardCss = ":host .card-container .top-bar{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:var(--spacing-56, 3.5rem);padding:0 var(--spacing-16, 1rem)}:host .card-container .top-bar .header .heading{margin:0}:host .card-container .top-bar .header .subheader{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;color:var(--stable);font-size:var(--font-size-12)}:host .card-container .top-bar .header .subheader yoo-icon{margin-right:var(--spacing-04, 0.25rem)}:host .card-container .top-bar .right-column{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}:host .card-container .top-bar .right-column .header-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;margin:0 var(--spacing-08, 0.5rem)}:host .card-container .top-bar .right-column .header-info yoo-icon{margin-right:var(--spacing-08, 0.5rem)}:host .card-container .top-bar .right-column .header-info p{font-size:var(--font-size-16)}:host .card-container .top-bar .right-column .tag-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0 var(--spacing-08, 0.5rem)}:host .card-container .top-bar .right-column .toggle-icon:hover{cursor:pointer}:host .card-container .content-container{max-height:18.75rem;overflow:hidden;-webkit-transition:max-height 200ms;transition:max-height 200ms}:host .card-container .content-container yoo-banner{--main-color:var(--warning-10, rgba(237, 110, 51, 0.1));width:95%;margin:var(--spacing-08, 0.5rem) auto;padding:var(--spacing-08, 0.5rem)}:host .card-container .content-container yoo-banner p{color:var(--dark, #000000)}:host .card-container .content-container .text{margin:var(--spacing-08, 0.5rem) var(--spacing-16, 1rem);font-size:var(--font-size-14, 0.875rem)}:host .card-container .content-container .footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:var(--spacing-56, 3.5rem);padding:0 var(--spacing-16, 1rem);border-top:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1)}:host .card-container .content-container .footer yoo-button{min-width:6rem}:host .card-container .content-container .footer .time-indicator{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start}:host .card-container .content-container .footer .time-indicator yoo-progress-bar{--svg-width:1.8rem;--svg-height:1.8rem;padding:0 var(--spacing-08, 0.5rem)}:host .card-container .content-container .footer .time-indicator .time-text{font-size:var(--font-size-14, 0.875rem)}:host .card-container .content-container.hidden{max-height:0}:host([expanded]) .card-container{padding:var(--spacing-08, 0.5rem) 0}";
|
|
7
|
+
const lessonDetailCardCss = ":host .card-container .top-bar{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:var(--spacing-56, 3.5rem);padding:0 var(--spacing-16, 1rem)}:host .card-container .top-bar .header .heading{margin:0}:host .card-container .top-bar .header .subheader{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;color:var(--stable);font-size:var(--font-size-12)}:host .card-container .top-bar .header .subheader yoo-icon{margin-right:var(--spacing-04, 0.25rem)}:host .card-container .top-bar .right-column{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}:host .card-container .top-bar .right-column .header-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;margin:0 var(--spacing-08, 0.5rem)}:host .card-container .top-bar .right-column .header-info yoo-icon{margin-right:var(--spacing-08, 0.5rem)}:host .card-container .top-bar .right-column .header-info p{font-size:var(--font-size-16)}:host .card-container .top-bar .right-column .tag-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0 var(--spacing-08, 0.5rem)}:host .card-container .top-bar .right-column .toggle-icon:hover{cursor:pointer}:host .card-container .content-container{max-height:18.75rem;overflow:hidden;-webkit-transition:max-height 200ms;transition:max-height 200ms}:host .card-container .content-container yoo-banner{--main-color:var(--warning-10, rgba(237, 110, 51, 0.1));width:95%;margin:var(--spacing-08, 0.5rem) auto;padding:var(--spacing-08, 0.5rem)}:host .card-container .content-container yoo-banner p{color:var(--dark, #000000)}:host .card-container .content-container .text{margin:var(--spacing-08, 0.5rem) var(--spacing-16, 1rem);font-size:var(--font-size-14, 0.875rem)}:host .card-container .content-container .footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:var(--spacing-56, 3.5rem);padding:0 var(--spacing-16, 1rem);border-top:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1)}:host .card-container .content-container .footer yoo-button{min-width:6rem}:host .card-container .content-container .footer .time-indicator{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start}:host .card-container .content-container .footer .time-indicator yoo-progress-bar{--svg-width:1.8rem;--svg-height:1.8rem;--progress-bar-color:var(--app-color, #5a30f4);padding:0 var(--spacing-08, 0.5rem)}:host .card-container .content-container .footer .time-indicator .time-text{font-size:var(--font-size-14, 0.875rem)}:host .card-container .content-container.hidden{max-height:0}:host([expanded]) .card-container{padding:var(--spacing-08, 0.5rem) 0}";
|
|
8
8
|
|
|
9
9
|
const YooLessonDetailCard = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -68,7 +68,7 @@ const YooLessonDetailCard = class {
|
|
|
68
68
|
this.footerButtonClick.emit();
|
|
69
69
|
}
|
|
70
70
|
renderTimeIndicator() {
|
|
71
|
-
return (h("div", { class: "time-indicator" }, h("yoo-progress-bar", { shape: "circle",
|
|
71
|
+
return (h("div", { class: "time-indicator" }, h("yoo-progress-bar", { shape: "circle", animated: this.animated, hideProgressValue: true, value: 75 }), h("div", { class: "time-text" }, this.footer.timeIndicator)));
|
|
72
72
|
}
|
|
73
73
|
renderFooter() {
|
|
74
74
|
return (h("div", { class: "footer-container" }, h("div", { class: "footer" }, this.footer.timeIndicator ? this.renderTimeIndicator() : h("div", null), h("yoo-button", { onClick: () => this.onFooterButtonClick(), color: "app-color", size: "medium", fill: "solid", disabled: !this.footer.buttonClickable }, translate(this.footer.buttonLabel)))));
|
|
@@ -7,7 +7,7 @@ import './lodash-9d33f885.js';
|
|
|
7
7
|
import './_commonjsHelpers-f4d11124.js';
|
|
8
8
|
import './index-daddf2c7.js';
|
|
9
9
|
|
|
10
|
-
const missionHeadingCss = ":host .background-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:0 -1rem 0;border-bottom:solid 1px var(--stable-light, #f1f1f1)}:host yoo-banner{--main-color:var(--warning-10, rgba(237, 110, 51, 0.1));margin-top:var(--spacing-08, 0.5rem)}:host .content-container{-ms-flex:1;flex:1;padding:var(--spacing-16, 1rem) var(--spacing-08, 0.5rem)}:host .mission-title{margin-top:var(--spacing-08, 0.5rem);font-weight:var(--font-weight-700, 700);font-size:var(--font-size-24, 1.5rem);line-height:var(--spacing-32, 2rem)}:host .sub-heading{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap;grid-gap:var(--spacing-08, 0.5rem);-ms-flex-align:center;align-items:center;margin-top:var(--spacing-08, 0.5rem)}:host .sub-heading .mission-progress{max-width:10rem;margin-right:var(--spacing-08, 0.5rem)}:host div:last-child{margin-bottom:0}:host(.mission-results) .background-container{margin:-1rem -1rem 0}";
|
|
10
|
+
const missionHeadingCss = ":host .background-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:0 -1rem 0;border-bottom:solid 1px var(--stable-light, #f1f1f1)}:host yoo-progress-bar{--progress-bar-color:var(--app-color, #5a30f4)}:host yoo-banner{--main-color:var(--warning-10, rgba(237, 110, 51, 0.1));margin-top:var(--spacing-08, 0.5rem)}:host .content-container{-ms-flex:1;flex:1;padding:var(--spacing-16, 1rem) var(--spacing-08, 0.5rem)}:host .mission-title{margin-top:var(--spacing-08, 0.5rem);font-weight:var(--font-weight-700, 700);font-size:var(--font-size-24, 1.5rem);line-height:var(--spacing-32, 2rem)}:host .sub-heading{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap;grid-gap:var(--spacing-08, 0.5rem);-ms-flex-align:center;align-items:center;margin-top:var(--spacing-08, 0.5rem)}:host .sub-heading .mission-progress{max-width:10rem;margin-right:var(--spacing-08, 0.5rem)}:host div:last-child{margin-bottom:0}:host(.mission-results) .background-container{margin:-1rem -1rem 0}";
|
|
11
11
|
|
|
12
12
|
const YooMissionHeadingComponent = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -23,7 +23,7 @@ const YooMissionHeadingComponent = class {
|
|
|
23
23
|
return (h(Host, { class: getAppContext(this.host) }, h("div", { class: { 'background-container': true, pdf: this.isPdf } }, h("div", { class: "content-container" }, h(MissionLockedBanner, { mission: this.mission }), [
|
|
24
24
|
!this.isPdf && this.mission.title && h("div", { class: "mission-title" }, translateMulti(this.mission.title)),
|
|
25
25
|
!this.mission.title && this.mission.type === 'visit' && h("div", { class: "mission-title" }, translate('VISIT')),
|
|
26
|
-
h("div", { class: "sub-heading" }, this.progress >= 0 && (h("div", { class: { 'mission-progress': true, 'mission-progress-web': !this.isMobile } }, h("yoo-progress-bar", {
|
|
26
|
+
h("div", { class: "sub-heading" }, this.progress >= 0 && (h("div", { class: { 'mission-progress': true, 'mission-progress-web': !this.isMobile } }, h("yoo-progress-bar", { animated: this.animated, value: this.progress }))), tags === null || tags === void 0 ? void 0 :
|
|
27
27
|
tags.map((tag) => {
|
|
28
28
|
const tagDefaultColor = tag.customColor ? null : 'stable';
|
|
29
29
|
return (h("yoo-tag", { color: tag.color || tagDefaultColor, customColor: tag.customColor }, !!tag.icon && h("yoo-icon", { class: { custom: !!tag.customColor }, size: "small", name: tag.icon, slot: "start" }), tag.title));
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, i as createEvent, h, g as getElement } from './i
|
|
|
2
2
|
import { t as translate } from './index-916ec137.js';
|
|
3
3
|
import { a as createCommonjsModule, c as commonjsGlobal } from './_commonjsHelpers-f4d11124.js';
|
|
4
4
|
import { W as debounce, z as cloneDeep, N as assign, y as sortBy, x as isEqual } from './lodash-9d33f885.js';
|
|
5
|
-
import { g as getRenderer } from './grid-renderers-
|
|
5
|
+
import { g as getRenderer } from './grid-renderers-bc677205.js';
|
|
6
6
|
import './index-daddf2c7.js';
|
|
7
7
|
import './missions-helpers-0149d7ea.js';
|
|
8
8
|
import './common-helpers-40913a60.js';
|
|
@@ -5,7 +5,7 @@ import { h as showPhotoEditor } from './common-helpers-40913a60.js';
|
|
|
5
5
|
import './_commonjsHelpers-f4d11124.js';
|
|
6
6
|
import './index-daddf2c7.js';
|
|
7
7
|
|
|
8
|
-
const profileSummaryCss = ":host .profile-user{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;padding-bottom:var(--spacing-24, 1.5rem)}:host .profile-user yoo-tag{margin-top:var(--spacing-08, 0.5rem)}:host .profile-user .profile-details{text-align:center}:host .profile-user .profile-details .profile-user-name,:host .profile-user .profile-details yoo-avatar{margin:0 auto}:host .profile-user .profile-details.impersonating{opacity:0.5}:host .profile-user .profile-details .profile-user-name{padding:var(--spacing-08, 0.5rem) 0;text-align:center}:host .profile-user .profile-details .profile-user-role{color:var(--stable, #adadad);font-weight:var(--font-weight-400, 400);font-size:var(--font-size-14, 0.875rem);line-height:1rem}:host .actions-container{width:100%}:host .actions-container .user-actions{display:grid;grid-template-columns:repeat(auto-fit, minmax(0, 1fr));margin:var(--spacing-24, 1.5rem) var(--spacing-16, 1rem);-webkit-column-gap:var(--spacing-08, 0.5rem);-moz-column-gap:var(--spacing-08, 0.5rem);column-gap:var(--spacing-08, 0.5rem)}:host(.web) .profile-user{padding:0}:host(.web) .actions-container{width:21.875rem}:host(.web.personal-view) .profile-user{-ms-flex-direction:row;flex-direction:row}:host(.web.personal-view) .profile-user .profile-details{text-align:left}:host(.web.personal-view) .profile-user .profile-details .profile-user-name{font-weight:var(--font-weight-700, 700)}:host(.web.personal-view) .profile-user .profile-details .profile-user-role{font-size:var(--font-size-16, 1rem)}:host(.web.personal-view) .profile-user yoo-avatar{margin:var(--spacing-24, 1.5rem)}";
|
|
8
|
+
const profileSummaryCss = ":host .profile-user{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;padding-bottom:var(--spacing-24, 1.5rem)}:host .profile-user yoo-tag{margin-top:var(--spacing-08, 0.5rem)}:host .profile-user>yoo-avatar{z-index:11}:host .profile-user .profile-details{text-align:center}:host .profile-user .profile-details .profile-user-name,:host .profile-user .profile-details yoo-avatar{margin:0 auto}:host .profile-user .profile-details.impersonating{opacity:0.5}:host .profile-user .profile-details .profile-user-name{padding:var(--spacing-08, 0.5rem) 0;text-align:center}:host .profile-user .profile-details .profile-user-role{color:var(--stable, #adadad);font-weight:var(--font-weight-400, 400);font-size:var(--font-size-14, 0.875rem);line-height:1rem}:host .actions-container{width:100%}:host .actions-container .user-actions{display:grid;grid-template-columns:repeat(auto-fit, minmax(0, 1fr));margin:var(--spacing-24, 1.5rem) var(--spacing-16, 1rem);-webkit-column-gap:var(--spacing-08, 0.5rem);-moz-column-gap:var(--spacing-08, 0.5rem);column-gap:var(--spacing-08, 0.5rem)}:host(.web) .profile-user{padding:0}:host(.web) .actions-container{width:21.875rem}:host(.web.personal-view) .profile-user{-ms-flex-direction:row;flex-direction:row}:host(.web.personal-view) .profile-user .profile-details{text-align:left}:host(.web.personal-view) .profile-user .profile-details .profile-user-name{font-weight:var(--font-weight-700, 700)}:host(.web.personal-view) .profile-user .profile-details .profile-user-role{font-size:var(--font-size-16, 1rem)}:host(.web.personal-view) .profile-user yoo-avatar{margin:var(--spacing-24, 1.5rem)}";
|
|
9
9
|
|
|
10
10
|
const YooProfileSummaryComponent = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, i as createEvent, h, e as Host, g as getElement } from './index-019c1b1a.js';
|
|
2
2
|
import { c_ as isAnimationsDisabled, fq as Linear, aM as gsapFromTo } from './index-916ec137.js';
|
|
3
|
-
import { W as debounce, V as clamp, M as isFinite
|
|
3
|
+
import { W as debounce, V as clamp, M as isFinite } from './lodash-9d33f885.js';
|
|
4
4
|
import './_commonjsHelpers-f4d11124.js';
|
|
5
5
|
import './index-daddf2c7.js';
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ const DEFAULT_SHAPES = {
|
|
|
14
14
|
'semi-circle': 'M 0, y a r,r 0 1,1 d,0'
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const progressBarCss = ":host{position:relative;display:block;--svg-width:100%;--svg-fill:var(--transparent, transparent);--stroke-width-line:3;--stroke-width-circle:3;--progress-value-font-size:var(--font-size-16, 1rem);--progress-value-font-weight:var(--font-weight-400, 400);--progress-value-color:var(--dark, #000000);--progress-bar-color:unset;--progress-bar-display:block;--trail-bar-color:var(--stable-light, #f1f1f1);--trail-bar-display:block}:host svg{width:var(--svg-width)}:host svg #trail{stroke-linecap:round;display:var(--trail-bar-display);stroke:var(--trail-bar-color)}:host svg #progress{display:var(--progress-bar-display);stroke:var(--progress-bar-color)}:host svg #progress:not([x2=\"0%\"]){stroke-linecap:round}:host #value{color:var(--progress-value-color);font-weight:var(--progress-value-font-weight);font-size:var(--progress-value-font-size);fill:var(--progress-value-color)}:host([shape=line]){display:inline-grid;grid-gap:var(--spacing-08, 0.5rem);grid-template-columns:1fr auto;place-items:center;width:100%}:host([shape=line]) svg{overflow:unset}:host([shape=line]) svg:not(.has-markers){height:0.25rem}:host([shape=line]) svg:not(.has-markers) line{stroke-width:var(--stroke-width-line)}:host([shape=line]) svg.has-markers{max-height:10vh}:host([shape=line]) svg.has-markers .marker{font-size:0.25rem;-webkit-transform:translateX(-0.5rem);transform:translateX(-0.5rem)}:host([shape=line]) span{width:100%;text-align:center}:host([shape=line][x=right]) span{text-align:right}:host([shape=line][x=left]) span{text-align:left}:host([shape=line][y=bottom]),:host([shape=line][y=top]),:host([shape=line].no-value){grid-template-columns:initial;line-height:1}:host([shape=line][y=top]) svg{-ms-flex-order:1;order:1}:host([shape=line][y=top]) span{-ms-flex-order:0;order:0}:host([shape=circle]),:host([shape=semi-circle]){--progress-value-tsx:-50%;--progress-value-tsy:-50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0 auto}:host([shape=circle]) svg,:host([shape=semi-circle]) svg{overflow:initial;fill:var(--svg-fill)}:host([shape=circle]) svg path,:host([shape=semi-circle]) svg path{stroke-width:var(--stroke-width-circle)}:host([shape=circle]) #value,:host([shape=semi-circle]) #value{position:absolute;top:50%;left:50%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translate(var(--progress-value-tsx), var(--progress-value-tsy));transform:translate(var(--progress-value-tsx), var(--progress-value-tsy))}:host([shape=semi-circle]){--progress-value-tsy:calc(-50% + .5rem)}:host([metric=points]){--progress-bar-display:none;--trail-bar-display:none}:host(
|
|
17
|
+
const progressBarCss = ":host{position:relative;display:block;--svg-width:100%;--svg-fill:var(--transparent, transparent);--stroke-width-line:3;--stroke-width-circle:3;--progress-value-font-size:var(--font-size-16, 1rem);--progress-value-font-weight:var(--font-weight-400, 400);--progress-value-color:var(--dark, #000000);--progress-bar-color:unset;--progress-bar-display:block;--trail-bar-color:var(--stable-light, #f1f1f1);--trail-bar-display:block}:host svg{width:var(--svg-width)}:host svg #trail{stroke-linecap:round;display:var(--trail-bar-display);stroke:var(--trail-bar-color)}:host svg #progress{display:var(--progress-bar-display);stroke:var(--progress-bar-color)}:host svg #progress:not([x2=\"0%\"]){stroke-linecap:round}:host #value{color:var(--progress-value-color);font-weight:var(--progress-value-font-weight);font-size:var(--progress-value-font-size);fill:var(--progress-value-color)}:host([shape=line]){display:inline-grid;grid-gap:var(--spacing-08, 0.5rem);grid-template-columns:1fr auto;place-items:center;width:100%}:host([shape=line]) svg{overflow:unset}:host([shape=line]) svg:not(.has-markers){height:var(--spacing-04, 0.25rem)}:host([shape=line]) svg:not(.has-markers) line{stroke-width:var(--stroke-width-line)}:host([shape=line]) svg.has-markers{max-height:10vh}:host([shape=line]) svg.has-markers .marker{font-size:var(--spacing-04, 0.25rem);-webkit-transform:translateX(calc(var(--spacing-08, 0.5rem) * -1));transform:translateX(calc(var(--spacing-08, 0.5rem) * -1))}:host([shape=line]) span{width:100%;text-align:center}:host([shape=line][x=right]) span{text-align:right}:host([shape=line][x=left]) span{text-align:left}:host([shape=line][y=bottom]),:host([shape=line][y=top]),:host([shape=line].no-value){grid-template-columns:initial;line-height:1}:host([shape=line][y=top]) svg{-ms-flex-order:1;order:1}:host([shape=line][y=top]) span{-ms-flex-order:0;order:0}:host([shape=circle]),:host([shape=semi-circle]){--progress-value-tsx:-50%;--progress-value-tsy:-50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0 auto}:host([shape=circle]) svg,:host([shape=semi-circle]) svg{overflow:initial;fill:var(--svg-fill)}:host([shape=circle]) svg path,:host([shape=semi-circle]) svg path{stroke-width:var(--stroke-width-circle)}:host([shape=circle]) #value,:host([shape=semi-circle]) #value{position:absolute;top:50%;left:50%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translate(var(--progress-value-tsx), var(--progress-value-tsy));transform:translate(var(--progress-value-tsx), var(--progress-value-tsy))}:host([shape=semi-circle]){--progress-value-tsy:calc(-50% + var(--spacing-08, 0.5rem))}:host([metric=points]){--progress-bar-display:none;--trail-bar-display:none}:host([metric=step]){--progress-bar-color:var(--app-color, #5a30f4)}";
|
|
18
18
|
|
|
19
19
|
const YooProgressBarComponent = class {
|
|
20
20
|
constructor(hostRef) {
|
|
@@ -90,10 +90,6 @@ const YooProgressBarComponent = class {
|
|
|
90
90
|
* This property allow to display a number of decimal after the coma in the progress value display
|
|
91
91
|
*/
|
|
92
92
|
this.numberDecimalAfterComaProgressValue = 0;
|
|
93
|
-
/**
|
|
94
|
-
* Used to modify the speed of the progress animation (in ms)
|
|
95
|
-
*/
|
|
96
|
-
this.progressAnimationDuration = !this.isAnimated ? 0 : 1.25;
|
|
97
93
|
}
|
|
98
94
|
onProgressAnimationDurationChanged() {
|
|
99
95
|
this.setProgress();
|
|
@@ -101,16 +97,6 @@ const YooProgressBarComponent = class {
|
|
|
101
97
|
onProgressValueChanged(_, currentValue) {
|
|
102
98
|
this.setProgress(currentValue);
|
|
103
99
|
}
|
|
104
|
-
onCurrentStepChanged(_, currentStep) {
|
|
105
|
-
this.setProgress(currentStep);
|
|
106
|
-
}
|
|
107
|
-
componentDidLoad() {
|
|
108
|
-
if (this.progressSVGElement) {
|
|
109
|
-
this.resizeListener = debounce(this.initProgressBar, 750).bind(this);
|
|
110
|
-
window.addEventListener('resize', this.resizeListener);
|
|
111
|
-
this.initProgressBar();
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
100
|
get isAnimated() {
|
|
115
101
|
return this.animated && !isAnimationsDisabled();
|
|
116
102
|
}
|
|
@@ -133,6 +119,16 @@ const YooProgressBarComponent = class {
|
|
|
133
119
|
var _a;
|
|
134
120
|
return this.isShape.line && !!((_a = this.markers) === null || _a === void 0 ? void 0 : _a.length);
|
|
135
121
|
}
|
|
122
|
+
componentWillLoad() {
|
|
123
|
+
this.progressAnimationDuration = !this.isAnimated ? 0 : 1.25;
|
|
124
|
+
}
|
|
125
|
+
componentDidLoad() {
|
|
126
|
+
if (this.progressSVGElement) {
|
|
127
|
+
this.resizeListener = debounce(this.initProgressBar, 750).bind(this);
|
|
128
|
+
window.addEventListener('resize', this.resizeListener);
|
|
129
|
+
this.initProgressBar();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
136
132
|
initProgressBar() {
|
|
137
133
|
if (this.progressSVGElement) {
|
|
138
134
|
this.initSVGPaths();
|
|
@@ -160,13 +156,18 @@ const YooProgressBarComponent = class {
|
|
|
160
156
|
}
|
|
161
157
|
setProgress(currentProgress = 0) {
|
|
162
158
|
if (this.progressSVGElement) {
|
|
163
|
-
const
|
|
159
|
+
const getProgress = (progress = this.value) => {
|
|
160
|
+
const currentProgress = progress || 0;
|
|
161
|
+
const newProgress = this.maxValue ? (currentProgress / this.maxValue) * 100 : currentProgress;
|
|
162
|
+
return clamp(newProgress, 0, 100);
|
|
163
|
+
};
|
|
164
|
+
const getProgressPathLength = (progress = 0) => Math.round(progressBarElement.getTotalLength() * (1 - progress / 100)).toString();
|
|
165
|
+
const toProgress = getProgress();
|
|
164
166
|
const progressBarElement = this.host.shadowRoot.querySelector('#progress');
|
|
165
167
|
const valueElement = this.host.shadowRoot.querySelector('#value');
|
|
166
|
-
const fromProgress =
|
|
168
|
+
const fromProgress = this.disableBackProgressAnimation ? toProgress : getProgress(currentProgress);
|
|
167
169
|
const decimalCoeff = Math.pow(10, this.numberDecimalAfterComaProgressValue);
|
|
168
|
-
|
|
169
|
-
!this.isShape.line && (progressBarElement.style.strokeDasharray = getProgressPathLength(0));
|
|
170
|
+
!this.isShape.line && (progressBarElement.style.strokeDasharray = getProgressPathLength());
|
|
170
171
|
const animateProgressValue = (progress) => {
|
|
171
172
|
progress = Math.round(progress * 100) / 100;
|
|
172
173
|
let timelineProgressValue = Math.round((((this.isMetric.percentage ? toProgress : this.value) - fromProgress) * progress + fromProgress) * decimalCoeff) / decimalCoeff || 0;
|
|
@@ -191,7 +192,7 @@ const YooProgressBarComponent = class {
|
|
|
191
192
|
const fromAnimation = {
|
|
192
193
|
attr: { x2: `${fromProgress}%` },
|
|
193
194
|
...(!this.isShape.line && {
|
|
194
|
-
strokeDashoffset: this.disableBackProgressAnimation ? getProgressPathLength(
|
|
195
|
+
strokeDashoffset: this.disableBackProgressAnimation ? getProgressPathLength() : getProgressPathLength(fromProgress)
|
|
195
196
|
}),
|
|
196
197
|
...(this.disableBackProgressAnimation && {
|
|
197
198
|
stroke: this.getProgressColor(0)
|
|
@@ -218,24 +219,11 @@ const YooProgressBarComponent = class {
|
|
|
218
219
|
progressBarElement && isFinite(toProgress) && isFinite(fromProgress) && gsapFromTo(progressBarElement, this.isAnimated ? this.progressAnimationDuration : 0, fromAnimation, toAnimation);
|
|
219
220
|
}
|
|
220
221
|
}
|
|
221
|
-
getValue(progress) {
|
|
222
|
-
let currentProgress = progress >= 0 && !isNull(progress) ? progress : this.value || 0;
|
|
223
|
-
if (this.isMetric.step && !!this.maxStep) {
|
|
224
|
-
currentProgress = progress >= 0 ? progress : this.currentStep;
|
|
225
|
-
return (currentProgress / this.maxStep) * 100;
|
|
226
|
-
}
|
|
227
|
-
else if (isFinite(this.maxValue) && !!this.maxValue) {
|
|
228
|
-
return (currentProgress / this.maxValue) * 100;
|
|
229
|
-
}
|
|
230
|
-
else {
|
|
231
|
-
return currentProgress;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
222
|
getLabelledValue(progress) {
|
|
235
223
|
progress = progress !== null && progress !== void 0 ? progress : ((isFinite(this.maxValue) && this.maxValue) ? (this.value / this.maxValue) * 100 : this.value || 0);
|
|
236
224
|
if (!this.hideProgressValue) {
|
|
237
225
|
if (this.isMetric.step) {
|
|
238
|
-
return `${this.
|
|
226
|
+
return `${this.value}/${this.maxValue}`;
|
|
239
227
|
}
|
|
240
228
|
else {
|
|
241
229
|
return this.allowNonAvailableValue && !isFinite(progress) ? '-' : [progress, this.getUnit(progress)].join('');
|
|
@@ -299,8 +287,7 @@ const YooProgressBarComponent = class {
|
|
|
299
287
|
get host() { return getElement(this); }
|
|
300
288
|
static get watchers() { return {
|
|
301
289
|
"progressAnimationDuration": ["onProgressAnimationDurationChanged"],
|
|
302
|
-
"value": ["onProgressValueChanged"]
|
|
303
|
-
"currentStep": ["onCurrentStepChanged"]
|
|
290
|
+
"value": ["onProgressValueChanged"]
|
|
304
291
|
}; }
|
|
305
292
|
};
|
|
306
293
|
YooProgressBarComponent.style = progressBarCss;
|
|
@@ -14,7 +14,7 @@ const YooProgressRecap = class {
|
|
|
14
14
|
return (h("yoo-tooltip", { placement: "top", content: translateMulti(this.tooltip) }, h("yoo-icon", { name: "help", size: "small", color: "stable" })));
|
|
15
15
|
}
|
|
16
16
|
renderProgressbar() {
|
|
17
|
-
return (h("yoo-progress-bar", { metric: "step", class: {
|
|
17
|
+
return (h("yoo-progress-bar", { metric: "step", maxValue: this.max, value: this.progress, class: {
|
|
18
18
|
success: !isNil(this.min) || (!isNil(this.min) && this.progress >= this.min),
|
|
19
19
|
danger: !isNil(this.min) && this.progress < this.min
|
|
20
20
|
}, ...this.min && {
|
|
@@ -22,7 +22,7 @@ const YooProgressRecap = class {
|
|
|
22
22
|
text: `${translateMulti('YOOBICMIN')}: ${this.min}`,
|
|
23
23
|
xPercent: (this.min / this.max) * 100
|
|
24
24
|
}]
|
|
25
|
-
}
|
|
25
|
+
} }));
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
return (h(Host, null, h("div", { class: "card" }, h("div", { class: "top-container" }, h("div", { class: "heading" }, translateMulti(this.heading)), this.tooltip && this.renderTooltip()), this.renderProgressbar())));
|
|
@@ -86,6 +86,10 @@ const YooTooltipComponent = class {
|
|
|
86
86
|
this.saveTooltip.emit({ value: (_a = this.contentEditableElement) === null || _a === void 0 ? void 0 : _a.innerHTML, refTooltip: reference });
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
+
async toggleHoverable(isEnable = !this.hoverable) {
|
|
90
|
+
this.hoverable = isEnable;
|
|
91
|
+
this.reconfigureTooltip();
|
|
92
|
+
}
|
|
89
93
|
onEditableChanged(newState, oldState) {
|
|
90
94
|
this.hasModeChanged = newState !== oldState;
|
|
91
95
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, e as Host } from './index-019c1b1a.js';
|
|
1
|
+
import { r as registerInstance, h, e as Host, g as getElement } from './index-019c1b1a.js';
|
|
2
2
|
import { eT as isTruncated } from './index-916ec137.js';
|
|
3
3
|
import './lodash-9d33f885.js';
|
|
4
4
|
import './_commonjsHelpers-f4d11124.js';
|
|
@@ -16,20 +16,24 @@ const YooTruncatedLineComponent = class {
|
|
|
16
16
|
// Full text content to be truncated / tooltip
|
|
17
17
|
this.content = '';
|
|
18
18
|
this.renderContentWithTooltip = () => {
|
|
19
|
-
return (h("yoo-tooltip", { content: this.content, placement: this.tooltipPlacement }, this.renderContent()));
|
|
19
|
+
return (h("yoo-tooltip", { ref: (el) => this.tooltipElement = el, content: this.content, placement: this.tooltipPlacement }, this.renderContent()));
|
|
20
20
|
};
|
|
21
21
|
this.renderContent = () => {
|
|
22
22
|
return (h("div", { class: "content", ref: (el) => this.contentElement = el }, this.content, h("slot", null)));
|
|
23
23
|
};
|
|
24
|
+
this.toggleTooltip = (isEnabled) => {
|
|
25
|
+
if (this.tooltipElement) {
|
|
26
|
+
this.tooltipElement.toggleHoverable(isEnabled);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
24
29
|
}
|
|
25
30
|
componentDidLoad() {
|
|
26
|
-
|
|
27
|
-
this.truncated = isTruncated(this.contentElement);
|
|
28
|
-
}
|
|
31
|
+
this.contentElement && this.toggleTooltip(isTruncated(this.contentElement));
|
|
29
32
|
}
|
|
30
33
|
render() {
|
|
31
|
-
return (h(Host, null, this.
|
|
34
|
+
return (h(Host, null, !this.withTooltip ? this.renderContent() : this.renderContentWithTooltip()));
|
|
32
35
|
}
|
|
36
|
+
get host() { return getElement(this); }
|
|
33
37
|
};
|
|
34
38
|
YooTruncatedLineComponent.style = truncatedLineCss;
|
|
35
39
|
|