@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.
Files changed (110) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/{grid-renderers-0c9a0d03.js → grid-renderers-faeb4762.js} +1 -2
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/yoo-ag-grid.cjs.entry.js +1 -1
  5. package/dist/cjs/yoo-campaign-editor-recap.cjs.entry.js +1 -1
  6. package/dist/cjs/yoo-card-course-row.cjs.entry.js +7 -3
  7. package/dist/cjs/yoo-card-inbox.cjs.entry.js +2 -2
  8. package/dist/cjs/yoo-chat.cjs.entry.js +1 -1
  9. package/dist/cjs/yoo-course-summary.cjs.entry.js +3 -3
  10. package/dist/cjs/yoo-entity.cjs.entry.js +1 -1
  11. package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +2 -0
  12. package/dist/cjs/yoo-form-capture.cjs.entry.js +2 -2
  13. package/dist/cjs/yoo-form-catalog.cjs.entry.js +4 -2
  14. package/dist/cjs/yoo-form-dynamic.cjs.entry.js +6 -2
  15. package/dist/cjs/yoo-form-footer.cjs.entry.js +2 -2
  16. package/dist/cjs/yoo-form-input.cjs.entry.js +1 -1
  17. package/dist/cjs/yoo-grid.cjs.entry.js +3 -3
  18. package/dist/cjs/yoo-lesson-detail-card.cjs.entry.js +2 -2
  19. package/dist/cjs/yoo-mission-heading.cjs.entry.js +2 -2
  20. package/dist/cjs/yoo-pivot-table.cjs.entry.js +1 -1
  21. package/dist/cjs/yoo-profile-summary.cjs.entry.js +1 -1
  22. package/dist/cjs/yoo-progress-bar.cjs.entry.js +23 -36
  23. package/dist/cjs/yoo-progress-recap.cjs.entry.js +2 -2
  24. package/dist/cjs/yoo-tooltip.cjs.entry.js +4 -0
  25. package/dist/cjs/yoo-truncated-line.cjs.entry.js +9 -5
  26. package/dist/collection/components/1.atoms/progress-bar/progress-bar.css +5 -5
  27. package/dist/collection/components/1.atoms/progress-bar/progress-bar.js +23 -73
  28. package/dist/collection/components/1.atoms/tooltip/tooltip.js +23 -0
  29. package/dist/collection/components/1.atoms/truncated-line/truncated-line.js +10 -9
  30. package/dist/collection/components/2.molecules/profile-summary/profile-summary.css +3 -0
  31. package/dist/collection/components/2.molecules/progress-recap/progress-recap.js +2 -2
  32. package/dist/collection/components/entities/entity/entity.js +1 -1
  33. package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +2 -0
  34. package/dist/collection/components/form/form-capture/form-capture.css +3 -0
  35. package/dist/collection/components/form/form-capture/form-capture.js +1 -1
  36. package/dist/collection/components/form/form-catalog/form-catalog.js +4 -2
  37. package/dist/collection/components/form/form-dynamic/form-dynamic.js +6 -2
  38. package/dist/collection/components/form/form-footer/form-footer.css +1 -0
  39. package/dist/collection/components/form/form-footer/form-footer.js +1 -1
  40. package/dist/collection/components/grid/ag-grid/grid-renderers.js +2 -3
  41. package/dist/collection/components/grid/grid/grid.css +3 -0
  42. package/dist/collection/components/grid/grid/grid.js +1 -1
  43. package/dist/collection/feature-communicate/chat/chat/chat.js +1 -1
  44. package/dist/collection/feature-learn/learning/card-course/row/card-course-row.js +7 -3
  45. package/dist/collection/feature-learn/learning/course-summary/course-summary.css +1 -0
  46. package/dist/collection/feature-learn/learning/course-summary/course-summary.js +2 -2
  47. package/dist/collection/feature-learn/learning/lesson-detail-card/lesson-detail-card.css +1 -0
  48. package/dist/collection/feature-learn/learning/lesson-detail-card/lesson-detail-card.js +1 -1
  49. package/dist/collection/feature-operate/campaign/campaign-editor-recap/campaign-editor-recap.js +1 -1
  50. package/dist/collection/feature-operate/mission/card-inbox/card-inbox.css +1 -0
  51. package/dist/collection/feature-operate/mission/card-inbox/card-inbox.js +1 -1
  52. package/dist/collection/feature-operate/mission/mission-heading/mission-heading.css +3 -0
  53. package/dist/collection/feature-operate/mission/mission-heading/mission-heading.js +1 -1
  54. package/dist/design-system/design-system.esm.js +1 -1
  55. package/dist/design-system/{grid-renderers-f4f5634b.js → grid-renderers-bc677205.js} +2 -3
  56. package/dist/design-system/yoo-ag-grid.entry.js +1 -1
  57. package/dist/design-system/yoo-campaign-editor-recap.entry.js +1 -1
  58. package/dist/design-system/yoo-card-course-row.entry.js +7 -3
  59. package/dist/design-system/yoo-card-inbox.entry.js +2 -2
  60. package/dist/design-system/yoo-chat.entry.js +1 -1
  61. package/dist/design-system/yoo-course-summary.entry.js +3 -3
  62. package/dist/design-system/yoo-entity.entry.js +1 -1
  63. package/dist/design-system/yoo-form-autocomplete.entry.js +2 -0
  64. package/dist/design-system/yoo-form-capture.entry.js +2 -2
  65. package/dist/design-system/yoo-form-catalog.entry.js +4 -2
  66. package/dist/design-system/yoo-form-dynamic.entry.js +6 -2
  67. package/dist/design-system/yoo-form-footer.entry.js +2 -2
  68. package/dist/design-system/yoo-form-input.entry.js +1 -1
  69. package/dist/design-system/yoo-grid.entry.js +3 -3
  70. package/dist/design-system/yoo-lesson-detail-card.entry.js +2 -2
  71. package/dist/design-system/yoo-mission-heading.entry.js +2 -2
  72. package/dist/design-system/yoo-pivot-table.entry.js +1 -1
  73. package/dist/design-system/yoo-profile-summary.entry.js +1 -1
  74. package/dist/design-system/yoo-progress-bar.entry.js +24 -37
  75. package/dist/design-system/yoo-progress-recap.entry.js +2 -2
  76. package/dist/design-system/yoo-tooltip.entry.js +4 -0
  77. package/dist/design-system/yoo-truncated-line.entry.js +10 -6
  78. package/dist/esm/design-system.js +1 -1
  79. package/dist/esm/{grid-renderers-f4f5634b.js → grid-renderers-bc677205.js} +2 -3
  80. package/dist/esm/loader.js +1 -1
  81. package/dist/esm/yoo-ag-grid.entry.js +1 -1
  82. package/dist/esm/yoo-campaign-editor-recap.entry.js +1 -1
  83. package/dist/esm/yoo-card-course-row.entry.js +7 -3
  84. package/dist/esm/yoo-card-inbox.entry.js +2 -2
  85. package/dist/esm/yoo-chat.entry.js +1 -1
  86. package/dist/esm/yoo-course-summary.entry.js +3 -3
  87. package/dist/esm/yoo-entity.entry.js +1 -1
  88. package/dist/esm/yoo-form-autocomplete.entry.js +2 -0
  89. package/dist/esm/yoo-form-capture.entry.js +2 -2
  90. package/dist/esm/yoo-form-catalog.entry.js +4 -2
  91. package/dist/esm/yoo-form-dynamic.entry.js +6 -2
  92. package/dist/esm/yoo-form-footer.entry.js +2 -2
  93. package/dist/esm/yoo-form-input.entry.js +1 -1
  94. package/dist/esm/yoo-grid.entry.js +3 -3
  95. package/dist/esm/yoo-lesson-detail-card.entry.js +2 -2
  96. package/dist/esm/yoo-mission-heading.entry.js +2 -2
  97. package/dist/esm/yoo-pivot-table.entry.js +1 -1
  98. package/dist/esm/yoo-profile-summary.entry.js +1 -1
  99. package/dist/esm/yoo-progress-bar.entry.js +24 -37
  100. package/dist/esm/yoo-progress-recap.entry.js +2 -2
  101. package/dist/esm/yoo-tooltip.entry.js +4 -0
  102. package/dist/esm/yoo-truncated-line.entry.js +10 -6
  103. package/dist/types/components/1.atoms/progress-bar/progress-bar.d.ts +13 -27
  104. package/dist/types/components/1.atoms/tooltip/tooltip.d.ts +1 -0
  105. package/dist/types/components.d.ts +1 -16
  106. 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
  107. package/package.json +1 -1
  108. package/dist/types/components/1.atoms/flip-card/flip-card.d.ts +0 -16
  109. package/dist/types/components/1.atoms/truncated-line/truncated-line.d.ts +0 -14
  110. package/dist/types/components/form/image-cropper-dialog/pintura/pintura.d.ts +0 -1070
@@ -1563,7 +1563,7 @@ export class YooFormCaptureComponent {
1563
1563
  ? [
1564
1564
  this.currentUploadingStatus && (isUndefined(index) || !this.multiple) && h("div", { class: "text app-color" }, this.currentUploadingStatus),
1565
1565
  !this.isUploadingPhoto && (h("div", { class: "main-wrapper" },
1566
- h("yoo-progress-bar", { class: "app-color", 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) })))
1566
+ 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) })))
1567
1567
  ]
1568
1568
  : [
1569
1569
  h("yoo-progress-bar", { class: "photo-progress app-color", value: 0, hideProgressValue: true, progressAnimationDuration: 0.5, ref: (el) => {
@@ -285,7 +285,7 @@ export class YooFormCatalogComponent {
285
285
  h("div", { class: "title" },
286
286
  translate('QUANTITY'),
287
287
  ": "),
288
- readonly ? (quantity) : (h("yoo-form-number-picker", { key: ref, min: 0, stepAmount: product.step, value: quantity, required: true, clearable: false, useButtons: true, invalidMessage: product.step ? 'MIN_AND_STEP_VALUES' : null, onInputChanged: (ev) => {
288
+ readonly ? (quantity) : (h("yoo-form-number-picker", { key: ref, min: 1, stepAmount: product.step, value: quantity, required: true, clearable: false, useButtons: true, invalidMessage: product.step ? 'MIN_AND_STEP_VALUES' : null, onInputChanged: (ev) => {
289
289
  ev.stopPropagation();
290
290
  if (isNumber(ev.detail)) {
291
291
  this.setProduct(product, ev.detail);
@@ -304,7 +304,9 @@ export class YooFormCatalogComponent {
304
304
  }
305
305
  renderEditable() {
306
306
  return (h("div", { class: "outer-container" },
307
- h("yoo-form-autocomplete", { ref: (el) => (this.formAutocomplete = el), multiple: !this.isCheck, value: this.selectedProducts, entityType: "products", displayType: "card-list", iconPrefix: "catalogue", onFetchData: (ev) => this.onFetchData(ev), onFetchFieldFilterData: (ev) => this.onFetchFieldFilterData(ev), onInputChanged: (ev) => this.onSelect(ev), onInputBlurred: (ev) => this.onInputBlurred(ev), onInputFocused: (ev) => this.onInputFocused(ev), onValidityChanged: (ev) => this.onAutoCompleteValidityChanged(ev), onWebAutocompleteClosed: (ev) => this.onWebAutocompleteClosed(ev), placeholder: translate('ADDPRODUCTTOBASKET'), tags: this.tags, isLocal: false, model: this.model, size: this.size }),
307
+ h("yoo-form-autocomplete", { ref: (el) => (this.formAutocomplete = el), multiple: !this.isCheck,
308
+ // value={this.selectedProducts}
309
+ entityType: "products", displayType: "card-list", iconPrefix: "catalogue", onFetchData: (ev) => this.onFetchData(ev), onFetchFieldFilterData: (ev) => this.onFetchFieldFilterData(ev), onInputChanged: (ev) => this.onSelect(ev), onInputBlurred: (ev) => this.onInputBlurred(ev), onInputFocused: (ev) => this.onInputFocused(ev), onValidityChanged: (ev) => this.onAutoCompleteValidityChanged(ev), onWebAutocompleteClosed: (ev) => this.onWebAutocompleteClosed(ev), placeholder: translate('ADDPRODUCTTOBASKET'), tags: this.tags, isLocal: false, model: this.model, size: this.size }),
308
310
  !this.disableScanner && h("div", { class: "or" }, translate('YOOBICOR')),
309
311
  !this.disableScanner && h("yoo-form-barcode", { onInputChanged: (ev) => this.onScanned(ev), placeholder: translate('SCANPRODUCTTOBASKET'), hideValue: true }),
310
312
  !this.selectorMode && this.notFoundError ? h("div", { class: "error", innerHTML: this.notFoundError }) : null,
@@ -1989,7 +1989,7 @@ export class YooFormDynamicComponent {
1989
1989
  const currentStep = ((_a = this.slides) === null || _a === void 0 ? void 0 : _a.length) !== ((_b = this.steps) === null || _b === void 0 ? void 0 : _b.length) ? Math.floor((this.activeIndex / 2) + 1) : this.activeIndex + 1;
1990
1990
  if ((slides === null || slides === void 0 ? void 0 : slides.length) > 1) {
1991
1991
  if (this.isSimpleProgressBar()) {
1992
- return (h("yoo-progress-bar", { animated: this.animated, currentStep: currentStep, maxStep: this.steps.length, metric: "step" }));
1992
+ return (h("yoo-progress-bar", { animated: this.animated, value: currentStep, maxValue: this.steps.length, metric: "step" }));
1993
1993
  }
1994
1994
  if (this.activeIndex === 0 && this.showRecap) {
1995
1995
  return (h("div", { class: "header-recap" },
@@ -2193,6 +2193,7 @@ export class YooFormDynamicComponent {
2193
2193
  }
2194
2194
  }
2195
2195
  getFieldVisibility(field) {
2196
+ var _a;
2196
2197
  let isFieldVisible = false;
2197
2198
  const fieldState = getFieldState(field, this.fieldsState);
2198
2199
  const readonly = fieldState.readonly || this.forceReadonly;
@@ -2202,7 +2203,10 @@ export class YooFormDynamicComponent {
2202
2203
  // const required = isRequired(field, this.currentData, visible, this.suffix, this.session);
2203
2204
  isFieldVisible = !field.advanced && visible;
2204
2205
  if (field.secondary) {
2205
- if (withValue) {
2206
+ // Invisible data is still rendered when they are secondar and has value,
2207
+ // Use this forceHideSecondaryDataIfHidden to hide then in UI
2208
+ const allowInvisibleData = !(((_a = this.formExtraOptions) === null || _a === void 0 ? void 0 : _a.forceHideSecondaryDataIfHidden) && !visible);
2209
+ if (withValue && allowInvisibleData) {
2206
2210
  isFieldVisible = true;
2207
2211
  }
2208
2212
  else {
@@ -250,6 +250,7 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
250
250
  :host .outer-container .mission-footer .timer-container yoo-progress-bar {
251
251
  width: 20%;
252
252
  margin: 0;
253
+ --progress-bar-color: var(--app-color, #5a30f4);
253
254
  --stroke-width-circle: 6;
254
255
  }
255
256
 
@@ -30,7 +30,7 @@ export class YooFormFooterComponent {
30
30
  }
31
31
  };
32
32
  return countDownProgress && (h("div", { class: "timer-container" },
33
- h("yoo-progress-bar", { shape: "circle", class: "app-color", listenToProgress: true, hideProgressValue: true, progressAnimationDuration: 0, animated: this.animated, value: countDownProgress, onValueChanged: (ev) => onCountingDown(ev) }),
33
+ h("yoo-progress-bar", { shape: "circle", listenToProgress: true, hideProgressValue: true, progressAnimationDuration: 0, animated: this.animated, value: countDownProgress, onValueChanged: (ev) => onCountingDown(ev) }),
34
34
  h("div", null, countDownDisplay)));
35
35
  }
36
36
  render() {
@@ -1,5 +1,5 @@
1
1
  import { FormFieldType, IncentivePartType, IncentiveStatus, IncentiveType } from '@shared/interfaces';
2
- import { aclRolesResolver, dateDiff, dateFormat, dateParse, dispatchCustomEvent, getContrastColor, getCssColor, getUserDisplayName, groupsResolver, pipes, salesAIFormatDemand, salesAIGetColorFromPattern, toButton, toDate, toHours, translate, translateMulti, utc } from '@shared/utils';
2
+ import { aclRolesResolver, dateDiff, dateFormat, dateParse, dispatchCustomEvent, getCssColor, getUserDisplayName, groupsResolver, pipes, salesAIFormatDemand, salesAIGetColorFromPattern, toButton, toDate, toHours, translate, translateMulti, utc } from '@shared/utils';
3
3
  import { compact, get, indexOf, isArray, isEmpty, isFunction, isNumber, isObject, isString, keys, map, round } from 'lodash-es';
4
4
  import { countryFlag } from '../../..//utils/helpers/country-helpers';
5
5
  import { getWorkflowStepBadge } from '../../../feature-operate/mission/helpers/missions-helpers';
@@ -38,7 +38,6 @@ function defaultRenderer(params) {
38
38
  valuesColor = params.colDef.fieldDefinition.valuesColor;
39
39
  }
40
40
  const color = (_d = valuesColor === null || valuesColor === void 0 ? void 0 : valuesColor.find((c) => c.key === retVal)) === null || _d === void 0 ? void 0 : _d.value;
41
- const contrast = color ? getContrastColor(color) : getCssColor('dark');
42
41
  if ((_f = (_e = params === null || params === void 0 ? void 0 : params.colDef) === null || _e === void 0 ? void 0 : _e.fieldDefinition) === null || _f === void 0 ? void 0 : _f.values) {
43
42
  const title = (_j = (_h = (_g = params === null || params === void 0 ? void 0 : params.colDef) === null || _g === void 0 ? void 0 : _g.fieldDefinition) === null || _h === void 0 ? void 0 : _h.values.find((v) => (v === null || v === void 0 ? void 0 : v.value) === retVal)) === null || _j === void 0 ? void 0 : _j.title;
44
43
  retVal = title || retVal;
@@ -46,7 +45,7 @@ function defaultRenderer(params) {
46
45
  if (params.isExport) {
47
46
  return translateFunction(stripHtml((retVal === null || retVal === void 0 ? void 0 : retVal.toString()) || ''));
48
47
  }
49
- return ('<div class="' + (color ? 'color-container' : '') + '" style="background:' + (color || '') + ';color:' + contrast + '" >' + translateFunction(retVal.toString()) + '</div>');
48
+ return color ? `<yoo-tag custom-color="${color}">${translateFunction(retVal.toString())}</yoo-tag>` : ('<div>' + translateFunction(retVal.toString()) + '</div>');
50
49
  }
51
50
  }
52
51
  function exportRenderer(params) {
@@ -276,6 +276,9 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
276
276
  padding: var(--spacing-16, 1rem);
277
277
  padding-bottom: 0;
278
278
  }
279
+ :host .grid-progress yoo-progress-bar {
280
+ --progress-bar-color: var(--app-color, #5a30f4);
281
+ }
279
282
  :host yoo-empty-state {
280
283
  height: var(--empty-state-height, 10rem);
281
284
  }
@@ -3144,7 +3144,7 @@ export class YooGridComponent {
3144
3144
  }
3145
3145
  renderProgress() {
3146
3146
  return (this.mainProgressValue >= 0 && (h("div", { class: "grid-progress" },
3147
- h("yoo-progress-bar", { class: "app-color", animated: this.animated, metric: "percentage", percentValueColorScheme: false, value: this.total > 0 ? (this.mainProgressValue * 100) / this.total : 0 }))));
3147
+ h("yoo-progress-bar", { animated: this.animated, metric: "percentage", percentValueColorScheme: false, value: this.total > 0 ? (this.mainProgressValue * 100) / this.total : 0 }))));
3148
3148
  }
3149
3149
  renderBase() {
3150
3150
  var _a, _b, _c, _d, _e;
@@ -629,7 +629,7 @@ export class YooChatComponent {
629
629
  }
630
630
  };
631
631
  return (h("div", { class: "timer-container" },
632
- h("yoo-progress-bar", { shape: "circle", class: "app-color", animated: true, listenToProgress: true, hideProgressValue: true, progressAnimationDuration: 0, value: countDownProgress, onValueChanged: (ev) => onCountingDown(ev) }),
632
+ h("yoo-progress-bar", { shape: "circle", animated: true, listenToProgress: true, hideProgressValue: true, progressAnimationDuration: 0, value: countDownProgress, onValueChanged: (ev) => onCountingDown(ev) }),
633
633
  h("div", null, countDownDisplay)));
634
634
  }
635
635
  renderOverlay() {
@@ -104,8 +104,12 @@ export class YooCardCourseRowComponent {
104
104
  renderProgress() {
105
105
  const plan = get(this.entry, 'plan', {});
106
106
  const lessonsCount = get(plan, 'missiondescriptionsRef', []).length;
107
- const progress = this.entry.finishedLessonsCount ? (this.entry.finishedLessonsCount / lessonsCount) * 100 : 0;
108
- return progress > 0 && progress < 100 && h("yoo-progress-bar", { class: "app-color", value: progress });
107
+ const { finishedLessonsCount } = this.entry || {};
108
+ const progress = finishedLessonsCount ? (finishedLessonsCount / lessonsCount) * 100 : 0;
109
+ return !!progress && progress <= 100 && h("yoo-progress-bar", { value: progress, colorsRepartition: {
110
+ colors: ['var(--danger)', 'var(--warning)', 'var(--success)'],
111
+ thresholds: [.39, .79, 1]
112
+ } });
109
113
  }
110
114
  renderLessonsText() {
111
115
  const lessonsCount = get(this.actualPlan, 'missiondescriptionsRef', []).length;
@@ -138,7 +142,7 @@ export class YooCardCourseRowComponent {
138
142
  if (total > 0) {
139
143
  const progress = finished > 0 ? Math.round((finished / total) * 100) : 0;
140
144
  return progress >= 0 && progress <= 100 && (h("div", { class: "progress-calendar-container" },
141
- h("yoo-progress-bar", { class: "app-color", value: progress, hideProgressValue: true }),
145
+ h("yoo-progress-bar", { value: progress, hideProgressValue: true }),
142
146
  h("span", { class: "lesson-count" }, `${progress}%`)));
143
147
  }
144
148
  return null;
@@ -250,6 +250,7 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
250
250
  }
251
251
  :host .course-info-container .progress-bar-container yoo-progress-bar {
252
252
  margin-right: var(--spacing-04, 0.25rem);
253
+ --progress-bar-color: var(--app-color, #5a30f4);
253
254
  }
254
255
 
255
256
  :host(.web:not(.force-mobile)) .full-width-view {
@@ -89,13 +89,13 @@ export class YooCourseSummaryComponent {
89
89
  'progress-bar-container': true,
90
90
  'full-width-view': this.fullWidthProgressBar
91
91
  } }, (isWeb() ? this.renderWebProgressBar() :
92
- h("yoo-progress-bar", { class: "app-color", animated: this.animated, value: this.courseProgress }))));
92
+ h("yoo-progress-bar", { animated: this.animated, value: this.courseProgress }))));
93
93
  }
94
94
  }
95
95
  renderWebProgressBar() {
96
96
  const lessonsCount = get(this.actualPlan, 'missiondescriptionsRef', []).length;
97
97
  const pluralizedLabel = translate(lessonsCount > 1 ? 'LESSONS' : 'LESSON');
98
- return [h("yoo-progress-bar", { class: "app-color", metric: "step", animated: this.animated, maxStep: lessonsCount, currentStep: this.course.finishedLessonsCount }), h("span", null, pluralizedLabel)];
98
+ return [h("yoo-progress-bar", { metric: "step", animated: this.animated, maxValue: lessonsCount, value: this.course.finishedLessonsCount }), h("span", null, pluralizedLabel)];
99
99
  }
100
100
  renderCompetency() {
101
101
  var _a, _b, _c, _d, _e;
@@ -282,6 +282,7 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
282
282
  :host .card-container .content-container .footer .time-indicator yoo-progress-bar {
283
283
  --svg-width: 1.8rem;
284
284
  --svg-height: 1.8rem;
285
+ --progress-bar-color: var(--app-color, #5a30f4);
285
286
  padding: 0 var(--spacing-08, 0.5rem);
286
287
  }
287
288
  :host .card-container .content-container .footer .time-indicator .time-text {
@@ -77,7 +77,7 @@ export class YooLessonDetailCard {
77
77
  }
78
78
  renderTimeIndicator() {
79
79
  return (h("div", { class: "time-indicator" },
80
- h("yoo-progress-bar", { shape: "circle", class: "app-color", animated: this.animated, hideProgressValue: true, value: 75 }),
80
+ h("yoo-progress-bar", { shape: "circle", animated: this.animated, hideProgressValue: true, value: 75 }),
81
81
  h("div", { class: "time-text" }, this.footer.timeIndicator)));
82
82
  }
83
83
  renderFooter() {
@@ -122,7 +122,7 @@ export class YooCampaignEditorRecapComponent {
122
122
  }
123
123
  const max = this.hasSchedule() && this.hasAudience() ? 4 : !this.hasSchedule() && !this.hasAudience() ? 2 : 3;
124
124
  progress = Math.min(progress, max);
125
- return (h("yoo-progress-bar", { class: "app-color", currentStep: progress, maxStep: max, metric: "step" }));
125
+ return (h("yoo-progress-bar", { value: progress, maxValue: max, metric: "step" }));
126
126
  }
127
127
  render() {
128
128
  const hasAudience = this.hasAudience();
@@ -252,6 +252,7 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
252
252
  }
253
253
  :host .outer-container .content yoo-progress-bar {
254
254
  --font-size-16: var(--font-size-12, 0.75rem);
255
+ --progress-bar-color: var(--app-color, #5a30f4);
255
256
  --svg-width: 1rem;
256
257
  --stroke-width-circle: 2;
257
258
  margin: 0;
@@ -44,7 +44,7 @@ export class YooCardInboxComponent {
44
44
  if (renderProgress) {
45
45
  const { value, unit, max } = this.entry.progress;
46
46
  return renderProgress && h("div", { class: "sub-item-detail" },
47
- h("yoo-progress-bar", { class: "app-color", shape: "circle", hideProgressValue: true, value: value, metric: unit, currentStep: value, maxStep: max }),
47
+ h("yoo-progress-bar", { shape: "circle", hideProgressValue: true, value: value, metric: unit, maxValue: max }),
48
48
  h("yoo-truncate", { style: { cssText: '--max-lines: 1' } },
49
49
  h("span", null, translate('ACTIONSCOMPLETED', { smart_count: value, total: max }))));
50
50
  }
@@ -207,6 +207,9 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
207
207
  margin: 0 -1rem 0;
208
208
  border-bottom: solid 1px var(--stable-light, #f1f1f1);
209
209
  }
210
+ :host yoo-progress-bar {
211
+ --progress-bar-color: var(--app-color, #5a30f4);
212
+ }
210
213
  :host yoo-banner {
211
214
  --main-color: var(--warning-10, rgba(237, 110, 51, 0.1));
212
215
  margin-top: var(--spacing-08, 0.5rem);
@@ -22,7 +22,7 @@ export class YooMissionHeadingComponent {
22
22
  !this.mission.title && this.mission.type === 'visit' && h("div", { class: "mission-title" }, translate('VISIT')),
23
23
  h("div", { class: "sub-heading" },
24
24
  this.progress >= 0 && (h("div", { class: { 'mission-progress': true, 'mission-progress-web': !this.isMobile } },
25
- h("yoo-progress-bar", { class: "app-color", animated: this.animated, value: this.progress }))), tags === null || tags === void 0 ? void 0 :
25
+ h("yoo-progress-bar", { animated: this.animated, value: this.progress }))), tags === null || tags === void 0 ? void 0 :
26
26
  tags.map((tag) => {
27
27
  const tagDefaultColor = tag.customColor ? null : 'stable';
28
28
  return (h("yoo-tag", { color: tag.color || tagDefaultColor, customColor: tag.customColor },