@yoobic/yobi 8.6.1 → 8.6.3

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 (45) hide show
  1. package/dist/cjs/{index-5f7067a7.js → index-5eba6373.js} +1 -1
  2. package/dist/cjs/yoo-ag-grid.cjs.entry.js +1 -1
  3. package/dist/cjs/yoo-form-capture.cjs.entry.js +1 -2
  4. package/dist/cjs/yoo-form-categorize-words.cjs.entry.js +2 -2
  5. package/dist/cjs/yoo-form-dynamic.cjs.entry.js +3 -4
  6. package/dist/cjs/yoo-form-hotzones.cjs.entry.js +1 -1
  7. package/dist/cjs/yoo-form-image-tagging.cjs.entry.js +2 -2
  8. package/dist/cjs/yoo-form-missing-word.cjs.entry.js +2 -2
  9. package/dist/cjs/yoo-form-phone-number.cjs.entry.js +1 -1
  10. package/dist/cjs/yoo-form-ranking.cjs.entry.js +1 -1
  11. package/dist/cjs/yoo-input-bar.cjs.entry.js +2 -2
  12. package/dist/cjs/yoo-kpi.cjs.entry.js +1 -1
  13. package/dist/collection/components/form/form-capture/form-capture.js +1 -2
  14. package/dist/collection/components/form/form-categorize-words/form-categorize-words.css +5 -1
  15. package/dist/collection/components/form/form-dynamic/form-dynamic.js +3 -4
  16. package/dist/collection/components/form/form-image-tagging/form-image-tagging.css +7 -3
  17. package/dist/collection/components/form/form-missing-word/form-missing-word.css +7 -3
  18. package/dist/collection/components/grid/ag-grid/ag-grid.css +26 -0
  19. package/dist/collection/feature-platform/insight/kpi/kpi.js +1 -1
  20. package/dist/collection/utils/draggables/index.js +1 -1
  21. package/dist/design-system/{index-18c4d6ca.js → index-06f92ab1.js} +1 -1
  22. package/dist/design-system/yoo-ag-grid.entry.js +1 -1
  23. package/dist/design-system/yoo-form-capture.entry.js +1 -2
  24. package/dist/design-system/yoo-form-categorize-words.entry.js +2 -2
  25. package/dist/design-system/yoo-form-dynamic.entry.js +3 -4
  26. package/dist/design-system/yoo-form-hotzones.entry.js +1 -1
  27. package/dist/design-system/yoo-form-image-tagging.entry.js +2 -2
  28. package/dist/design-system/yoo-form-missing-word.entry.js +2 -2
  29. package/dist/design-system/yoo-form-phone-number.entry.js +1 -1
  30. package/dist/design-system/yoo-form-ranking.entry.js +1 -1
  31. package/dist/design-system/yoo-input-bar.entry.js +2 -2
  32. package/dist/design-system/yoo-kpi.entry.js +1 -1
  33. package/dist/esm/{index-18c4d6ca.js → index-06f92ab1.js} +1 -1
  34. package/dist/esm/yoo-ag-grid.entry.js +1 -1
  35. package/dist/esm/yoo-form-capture.entry.js +1 -2
  36. package/dist/esm/yoo-form-categorize-words.entry.js +2 -2
  37. package/dist/esm/yoo-form-dynamic.entry.js +3 -4
  38. package/dist/esm/yoo-form-hotzones.entry.js +1 -1
  39. package/dist/esm/yoo-form-image-tagging.entry.js +2 -2
  40. package/dist/esm/yoo-form-missing-word.entry.js +2 -2
  41. package/dist/esm/yoo-form-phone-number.entry.js +1 -1
  42. package/dist/esm/yoo-form-ranking.entry.js +1 -1
  43. package/dist/esm/yoo-input-bar.entry.js +2 -2
  44. package/dist/esm/yoo-kpi.entry.js +1 -1
  45. package/package.json +1 -1
@@ -19,7 +19,7 @@ function race(...args) {
19
19
  }
20
20
 
21
21
  /**
22
- * @license Angular v15.1.4
22
+ * @license Angular v15.1.5
23
23
  * (c) 2010-2022 Google LLC. https://angular.io/
24
24
  * License: MIT
25
25
  */
@@ -8447,7 +8447,7 @@ class Version {
8447
8447
  /**
8448
8448
  * @publicApi
8449
8449
  */
8450
- const VERSION = new Version('15.1.4');
8450
+ const VERSION = new Version('15.1.5');
8451
8451
 
8452
8452
  // This default value is when checking the hierarchy for a token.
8453
8453
  //
@@ -125,7 +125,7 @@ const YooKpiComponent = class {
125
125
  case 'carousel':
126
126
  return this.photosSrc ? (index.h("div", { class: "photo-container" }, index.h("yoo-form-carousel", { ref: (el) => (this.carousel = el), usePhotoEditor: true, navbarVisiblity: "hidden", mediaSrc: this.photosSrc.map((photo) => (photo.isImageRecognition && (photo === null || photo === void 0 ? void 0 : photo.drawings) || photo.value)), annotations: this.photosSrc.map((photo) => photo === null || photo === void 0 ? void 0 : photo.annotations), drawings: this.photosSrc.map((photo) => photo === null || photo === void 0 ? void 0 : photo.drawings), class: { light: true, 'form-preview': this.isFormPreview } }))) : (index.h("div", { class: "empty-state" }, index.h("yoo-empty-state", { type: "photo" }), index.h("div", null, index$1.translate('LISTEMPTY'))));
127
127
  case 'grid':
128
- return (index.h("yoo-pivot-table", { ref: (el) => (this.pivotTable = el), onEdited: (ev) => this.onEdited(ev), onRowClick: (ev) => this.onChartClick(ev), onRowDoubleClick: (ev) => this.onChartDoubleClick(ev), config: this.config, definition: this.definition, isFullScreen: this.isFullScreen, gridClass: "no-border", class: {
128
+ return (index.h("yoo-pivot-table", { ref: (el) => (this.pivotTable = el), onEdited: (ev) => this.onEdited(ev), onRowClick: (ev) => this.onChartClick(ev), onRowDoubleClick: (ev) => this.onChartDoubleClick(ev), config: this.config, definition: this.definition, isFullScreen: this.isFullScreen, gridClass: "grid-alternate no-border", class: {
129
129
  'rounded': (_b = (_a = this.host) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.contains('rounded')
130
130
  } }));
131
131
  case 'map':
@@ -801,10 +801,9 @@ export class YooFormCaptureComponent {
801
801
  const imageData = this.getImageData(index);
802
802
  const { drawings, src } = imageData;
803
803
  const isMultipleData = isFinite(index) && this.extraData && ((isArray(this.extraData) && !!this.extraData.length) || !!Object.keys(this.extraData).length) && this.extraData[index];
804
- const extraActions = [
804
+ const extraActions = !isNativeFilePath(src) && [
805
805
  {
806
806
  icon: 'download',
807
- isVisible: () => !isNativeFilePath(src),
808
807
  handler: () => {
809
808
  downloadFile(isMultipleData && this.extraData[index].stitch || src);
810
809
  }
@@ -215,6 +215,11 @@ svg:not(:root) {
215
215
  }
216
216
  :host yoo-tag {
217
217
  max-width: 100%;
218
+ margin-right: var(--spacing-08, 0.5rem);
219
+ margin-bottom: var(--spacing-08, 0.5rem);
220
+ }
221
+ :host yoo-tag:last-of-type {
222
+ margin-right: 0;
218
223
  }
219
224
  :host [placement] {
220
225
  display: flex;
@@ -244,7 +249,6 @@ svg:not(:root) {
244
249
  :host .dropzone {
245
250
  display: inline-flex;
246
251
  flex-wrap: wrap;
247
- gap: var(--spacing-08, 0.5rem);
248
252
  align-content: baseline;
249
253
  box-sizing: border-box;
250
254
  width: 100%;
@@ -2172,7 +2172,7 @@ export class YooFormDynamicComponent {
2172
2172
  }))));
2173
2173
  }
2174
2174
  })), ((_b = this.charts) === null || _b === void 0 ? void 0 : _b.length) > 0 && h("yoo-mission-score", { class: "light", charts: this.charts })),
2175
- this.renderFormFooter('recap')
2175
+ this.renderFormFooter('recap', -1)
2176
2176
  ];
2177
2177
  }
2178
2178
  }
@@ -2356,7 +2356,6 @@ export class YooFormDynamicComponent {
2356
2356
  const lastUnlockedSlideIndex = Math.max(findLastIndex((_a = this.slidesState) === null || _a === void 0 ? void 0 : _a.filter((state) => !state.hidden), (s) => (s === null || s === void 0 ? void 0 : s.locked) !== true && (s === null || s === void 0 ? void 0 : s.hidden) !== true), 0);
2357
2357
  let formFooterType = slideIndex === lastUnlockedSlideIndex || slideIndex === slideLength ? 'last' : 'next';
2358
2358
  formFooterType = this.isLessonPreview() ? 'next' : formFooterType;
2359
- const relativeActiveIndex = this.showRecap ? this.activeIndex - 1 : this.activeIndex;
2360
2359
  return [
2361
2360
  this.shouldRenderSlideContent(slide, slideIndex) ? (h("div", { class: {
2362
2361
  'flex': true,
@@ -2371,7 +2370,7 @@ export class YooFormDynamicComponent {
2371
2370
  'flex slide-container': true,
2372
2371
  'no-shadow': !this.showTabs
2373
2372
  }, style: { display: 'none' } })),
2374
- slideIndex === relativeActiveIndex && this.renderFormFooter(formFooterType, slideIndex, lastUnlockedSlideIndex)
2373
+ this.renderFormFooter(formFooterType, slideIndex, lastUnlockedSlideIndex)
2375
2374
  ];
2376
2375
  }
2377
2376
  getFieldsPerArea(fields, areaName) {
@@ -2873,7 +2872,7 @@ export class YooFormDynamicComponent {
2873
2872
  renderFormFooter(type, slideIndex, lastUnlockedSlideIndex) {
2874
2873
  if (this.shouldRenderFormFooter(type, slideIndex, lastUnlockedSlideIndex)) {
2875
2874
  const buttons = this.getFormFooterButtons(type, slideIndex, lastUnlockedSlideIndex);
2876
- return (h("yoo-form-footer", { ref: (el) => (this.formFooterElement = el), animated: false, countDownStartValue: this.timer, countDownValue: this.innerTimer, forceMobile: this.forceMobile || this.formType === 'form-creator-preview', buttons: buttons, showCopyright: this.showCopyright, class: this.formType === 'lesson' ? isWeb(this.host) ? 'lesson-detail' : 'relative' : '' }));
2875
+ return (h("yoo-form-footer", { ref: (el) => (this.formFooterElement = el), style: { visibility: this.isCurrentSlide(slideIndex) ? undefined : 'hidden' }, animated: false, countDownStartValue: this.timer, countDownValue: this.innerTimer, forceMobile: this.forceMobile || this.formType === 'form-creator-preview', buttons: buttons, showCopyright: this.showCopyright, class: this.formType === 'lesson' ? isWeb(this.host) ? 'lesson-detail' : 'relative' : '' }));
2877
2876
  }
2878
2877
  }
2879
2878
  getNextButtons(slideIndex) {
@@ -211,6 +211,13 @@ svg:not(:root) {
211
211
  :host yoo-banner {
212
212
  height: 0;
213
213
  }
214
+ :host yoo-tag {
215
+ margin-right: var(--spacing-08, 0.5rem);
216
+ margin-bottom: var(--spacing-08, 0.5rem);
217
+ }
218
+ :host yoo-tag:last-of-type {
219
+ margin-right: 0;
220
+ }
214
221
  :host #image {
215
222
  position: relative;
216
223
  }
@@ -261,9 +268,6 @@ svg:not(:root) {
261
268
  :host(:not([readonly])) #zone-tags[hit] {
262
269
  background-color: var(--stable-ultralight, #fafafa);
263
270
  }
264
- :host(:not([readonly])) #zone-tags yoo-tag {
265
- margin: var(--spacing-04, 0.25rem);
266
- }
267
271
 
268
272
  :host([animated]:not([readonly])) yoo-img {
269
273
  animation: scale-up 0.35s ease-in-out 0.35s;
@@ -211,6 +211,13 @@ svg:not(:root) {
211
211
  :host yoo-banner {
212
212
  height: 0;
213
213
  }
214
+ :host yoo-tag {
215
+ margin-right: var(--spacing-08, 0.5rem);
216
+ margin-bottom: var(--spacing-08, 0.5rem);
217
+ }
218
+ :host yoo-tag:last-of-type {
219
+ margin-right: 0;
220
+ }
214
221
  :host #paragraph {
215
222
  line-height: 2;
216
223
  user-select: none;
@@ -264,9 +271,6 @@ svg:not(:root) {
264
271
  :host(:not([readonly])) main #zone-tags[hit] {
265
272
  background-color: var(--stable-ultralight, #fafafa);
266
273
  }
267
- :host(:not([readonly])) main #zone-tags yoo-tag {
268
- margin: var(--spacing-04, 0.25rem);
269
- }
270
274
 
271
275
  @keyframes reveal-zone {
272
276
  from {
@@ -8985,6 +8985,9 @@ input[class^=ag-][type=range]:disabled {
8985
8985
  :host .ag-input-field-input::placeholder {
8986
8986
  font-size: var(--font-size-14, 0.875rem);
8987
8987
  }
8988
+ :host .ag-rtl .ag-side-bar-left, :host .ag-ltr .ag-side-bar-right {
8989
+ border-left: var(--ag-borders) var(--stable-light);
8990
+ }
8988
8991
  :host input[class^=ag-] {
8989
8992
  border-radius: var(--border-radius-04, 0.25rem);
8990
8993
  }
@@ -9081,4 +9084,27 @@ input[class^=ag-][type=range]:disabled {
9081
9084
 
9082
9085
  :host(.with-selection) .ag-checkbox-input-wrapper {
9083
9086
  opacity: 1;
9087
+ }
9088
+
9089
+ :host(.grid-alternate) .ag-theme-balham .ag-ltr .ag-header-cell, :host(.grid-alternate) .ag-theme-yoobic .ag-ltr .ag-header-cell, :host(.grid-alternate) .ag-theme-small-font .ag-ltr .ag-header-cell,
9090
+ :host(.grid-alternate) .ag-theme-balham .ag-ltr .ag-cell:not(.ag-cell-first-right-pinned),
9091
+ :host(.grid-alternate) .ag-theme-yoobic .ag-ltr .ag-cell:not(.ag-cell-first-right-pinned),
9092
+ :host(.grid-alternate) .ag-theme-small-font .ag-ltr .ag-cell:not(.ag-cell-first-right-pinned) {
9093
+ border-right: var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1) !important;
9094
+ }
9095
+ :host(.grid-alternate) .ag-theme-balham .ag-header-cell.ag-header-active::after, :host(.grid-alternate) .ag-theme-yoobic .ag-header-cell.ag-header-active::after, :host(.grid-alternate) .ag-theme-small-font .ag-header-cell.ag-header-active::after {
9096
+ opacity: 1;
9097
+ }
9098
+ :host(.grid-alternate) .ag-theme-balham .ag-header-cell::after, :host(.grid-alternate) .ag-theme-yoobic .ag-header-cell::after, :host(.grid-alternate) .ag-theme-small-font .ag-header-cell::after {
9099
+ right: 4px;
9100
+ opacity: 0;
9101
+ }
9102
+ :host(.grid-alternate) .ag-theme-balham .ag-row.ag-row-selected, :host(.grid-alternate) .ag-theme-yoobic .ag-row.ag-row-selected, :host(.grid-alternate) .ag-theme-small-font .ag-row.ag-row-selected {
9103
+ background-color: var(--app-color-20, rgba(90, 48, 244, 0.2)) !important;
9104
+ }
9105
+ :host(.grid-alternate) .ag-theme-balham .ag-row-odd, :host(.grid-alternate) .ag-theme-yoobic .ag-row-odd, :host(.grid-alternate) .ag-theme-small-font .ag-row-odd {
9106
+ background-color: var(--stable-light-40, rgba(241, 241, 241, 0.4));
9107
+ }
9108
+ :host(.grid-alternate) .ag-theme-balham .ag-row-odd.ag-row-selected, :host(.grid-alternate) .ag-theme-yoobic .ag-row-odd.ag-row-selected, :host(.grid-alternate) .ag-theme-small-font .ag-row-odd.ag-row-selected {
9109
+ background-color: var(--app-color-20, rgba(90, 48, 244, 0.2)) !important;
9084
9110
  }
@@ -107,7 +107,7 @@ export class YooKpiComponent {
107
107
  case 'carousel':
108
108
  return this.photosSrc ? (h("div", { class: "photo-container" }, h("yoo-form-carousel", { ref: (el) => (this.carousel = el), usePhotoEditor: true, navbarVisiblity: "hidden", mediaSrc: this.photosSrc.map((photo) => (photo.isImageRecognition && (photo === null || photo === void 0 ? void 0 : photo.drawings) || photo.value)), annotations: this.photosSrc.map((photo) => photo === null || photo === void 0 ? void 0 : photo.annotations), drawings: this.photosSrc.map((photo) => photo === null || photo === void 0 ? void 0 : photo.drawings), class: { light: true, 'form-preview': this.isFormPreview } }))) : (h("div", { class: "empty-state" }, h("yoo-empty-state", { type: "photo" }), h("div", null, translate('LISTEMPTY'))));
109
109
  case 'grid':
110
- return (h("yoo-pivot-table", { ref: (el) => (this.pivotTable = el), onEdited: (ev) => this.onEdited(ev), onRowClick: (ev) => this.onChartClick(ev), onRowDoubleClick: (ev) => this.onChartDoubleClick(ev), config: this.config, definition: this.definition, isFullScreen: this.isFullScreen, gridClass: "no-border", class: {
110
+ return (h("yoo-pivot-table", { ref: (el) => (this.pivotTable = el), onEdited: (ev) => this.onEdited(ev), onRowClick: (ev) => this.onChartClick(ev), onRowDoubleClick: (ev) => this.onChartDoubleClick(ev), config: this.config, definition: this.definition, isFullScreen: this.isFullScreen, gridClass: "grid-alternate no-border", class: {
111
111
  'rounded': (_b = (_a = this.host) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.contains('rounded')
112
112
  } }));
113
113
  case 'map':
@@ -112,7 +112,7 @@ export class Dropzones {
112
112
  async hideOverflowingTagInZone(zoneElement, tagElement, onShowTag) {
113
113
  const { tagZoneConfig } = this.zonesConfig || {};
114
114
  if (tagElement && zoneElement && tagZoneConfig.hasOverflow) {
115
- const borderWidth = parseFloat(getComputedStyle(tagElement).borderWidth);
115
+ const borderWidth = Math.round(parseFloat(getComputedStyle(tagElement).borderWidth));
116
116
  const isTagOverflowing = (tagElement.offsetTop + borderWidth * 2) >= (zoneElement.offsetTop + zoneElement.offsetHeight);
117
117
  if (isTagOverflowing) {
118
118
  Object.assign(tagElement.style, {
@@ -113,7 +113,7 @@ class Dropzones {
113
113
  async hideOverflowingTagInZone(zoneElement, tagElement, onShowTag) {
114
114
  const { tagZoneConfig } = this.zonesConfig || {};
115
115
  if (tagElement && zoneElement && tagZoneConfig.hasOverflow) {
116
- const borderWidth = parseFloat(getComputedStyle(tagElement).borderWidth);
116
+ const borderWidth = Math.round(parseFloat(getComputedStyle(tagElement).borderWidth));
117
117
  const isTagOverflowing = (tagElement.offsetTop + borderWidth * 2) >= (zoneElement.offsetTop + zoneElement.offsetHeight);
118
118
  if (isTagOverflowing) {
119
119
  Object.assign(tagElement.style, {