@yoobic/yobi 7.7.38 → 7.7.42

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 (82) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/{draggable-tags-helpers-b353ad65.js → draggable-tags-helpers-2b62a9fa.js} +2 -1
  3. package/dist/cjs/{grid-renderers-75f5517f.js → grid-renderers-a58d3fd6.js} +9 -1
  4. package/dist/cjs/index.cjs.js +2 -2
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/{operation-helpers-14994f09.js → operation-helpers-fd31a44e.js} +7 -7
  7. package/dist/cjs/yoo-action-sheet-controller_15.cjs.entry.js +3 -3
  8. package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +8 -2
  9. package/dist/cjs/yoo-campaign-heading.cjs.entry.js +1 -1
  10. package/dist/cjs/yoo-card-list-image_12.cjs.entry.js +2 -2
  11. package/dist/cjs/yoo-form-categorize-words.cjs.entry.js +1 -1
  12. package/dist/cjs/yoo-form-choice_4.cjs.entry.js +1 -1
  13. package/dist/cjs/yoo-form-connect.cjs.entry.js +204 -323
  14. package/dist/cjs/yoo-form-image-tagging.cjs.entry.js +1 -1
  15. package/dist/cjs/yoo-form-missing-word.cjs.entry.js +1 -1
  16. package/dist/cjs/yoo-form-product-batch.cjs.entry.js +1 -1
  17. package/dist/cjs/yoo-form-ranking.cjs.entry.js +1 -1
  18. package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +1 -1
  19. package/dist/cjs/yoo-form-todo-single.cjs.entry.js +1 -1
  20. package/dist/cjs/yoo-mission-heading_3.cjs.entry.js +1 -1
  21. package/dist/cjs/yoo-mission-results.cjs.entry.js +1 -1
  22. package/dist/cjs/yoo-mission-todo.cjs.entry.js +1 -1
  23. package/dist/collection/components/1.atoms/loader/loader.css +12 -0
  24. package/dist/collection/components/form/form-connect/form-connect.css +35 -33
  25. package/dist/collection/components/form/form-connect/form-connect.js +207 -375
  26. package/dist/collection/components/form/form-connect/types/index.js +1 -1
  27. package/dist/collection/components/grid/ag-grid/grid-renderers.js +8 -0
  28. package/dist/collection/components/grid/grid/grid.js +22 -0
  29. package/dist/collection/utils/helpers/draggable-tags-helpers.js +2 -1
  30. package/dist/collection/utils/helpers/operation-helpers.js +7 -7
  31. package/dist/design-system/design-system.esm.js +1 -1
  32. package/dist/design-system/index.esm.js +1 -1
  33. package/dist/design-system/{p-8cfecc25.entry.js → p-03de2072.entry.js} +1 -1
  34. package/dist/design-system/{p-8214c671.js → p-17ca9bca.js} +1 -1
  35. package/dist/design-system/p-25ffc253.entry.js +1 -0
  36. package/dist/design-system/{p-d5b214f0.entry.js → p-37f863a9.entry.js} +1 -1
  37. package/dist/design-system/{p-303c3c22.entry.js → p-46981663.entry.js} +1 -1
  38. package/dist/design-system/{p-adbb882f.entry.js → p-484eb9f2.entry.js} +1 -1
  39. package/dist/design-system/{p-8055dcaf.entry.js → p-4a7ab005.entry.js} +1 -1
  40. package/dist/design-system/{p-d17b376e.entry.js → p-687dec7e.entry.js} +1 -1
  41. package/dist/design-system/{p-f013d119.entry.js → p-82954c87.entry.js} +1 -1
  42. package/dist/design-system/{p-aaf4c6a2.entry.js → p-8c4e06b9.entry.js} +1 -1
  43. package/dist/design-system/{p-619154de.entry.js → p-a6091b4d.entry.js} +1 -1
  44. package/dist/design-system/{p-5a4a35ae.entry.js → p-ddd372bb.entry.js} +1 -1
  45. package/dist/design-system/{p-4a323ffb.entry.js → p-e560bd90.entry.js} +1 -1
  46. package/dist/design-system/{p-1b60268b.entry.js → p-e960fda6.entry.js} +1 -1
  47. package/dist/design-system/p-f30db1be.js +1 -0
  48. package/dist/design-system/{p-800cb056.entry.js → p-f4317e29.entry.js} +1 -1
  49. package/dist/design-system/{p-47077c2f.entry.js → p-f61d59d7.entry.js} +1 -1
  50. package/dist/design-system/p-fe18ac88.js +1 -0
  51. package/dist/design-system/{p-1d437750.entry.js → p-ff7bebef.entry.js} +2 -2
  52. package/dist/esm/design-system.js +1 -1
  53. package/dist/esm/{draggable-tags-helpers-e3b9cd11.js → draggable-tags-helpers-504b4b6d.js} +2 -1
  54. package/dist/esm/{grid-renderers-3920dbf1.js → grid-renderers-31bc2d0b.js} +9 -1
  55. package/dist/esm/index.js +2 -2
  56. package/dist/esm/loader.js +1 -1
  57. package/dist/esm/{operation-helpers-86666c74.js → operation-helpers-4c9210d3.js} +7 -7
  58. package/dist/esm/yoo-action-sheet-controller_15.entry.js +3 -3
  59. package/dist/esm/yoo-ag-grid_96.entry.js +8 -2
  60. package/dist/esm/yoo-campaign-heading.entry.js +1 -1
  61. package/dist/esm/yoo-card-list-image_12.entry.js +2 -2
  62. package/dist/esm/yoo-form-categorize-words.entry.js +1 -1
  63. package/dist/esm/yoo-form-choice_4.entry.js +1 -1
  64. package/dist/esm/yoo-form-connect.entry.js +206 -325
  65. package/dist/esm/yoo-form-image-tagging.entry.js +1 -1
  66. package/dist/esm/yoo-form-missing-word.entry.js +1 -1
  67. package/dist/esm/yoo-form-product-batch.entry.js +1 -1
  68. package/dist/esm/yoo-form-ranking.entry.js +1 -1
  69. package/dist/esm/yoo-form-swipe-cards.entry.js +1 -1
  70. package/dist/esm/yoo-form-todo-single.entry.js +1 -1
  71. package/dist/esm/yoo-mission-heading_3.entry.js +1 -1
  72. package/dist/esm/yoo-mission-results.entry.js +1 -1
  73. package/dist/esm/yoo-mission-todo.entry.js +1 -1
  74. package/dist/types/components/form/form-connect/form-connect.d.ts +31 -48
  75. package/dist/types/components/form/form-connect/types/index.d.ts +4 -5
  76. package/dist/types/components/grid/grid/grid.d.ts +1 -0
  77. package/dist/types/components.d.ts +1 -9
  78. package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/mission-description/mission-description.interface.d.ts +1 -2
  79. package/package.json +1 -1
  80. package/dist/design-system/p-72fe82e5.js +0 -1
  81. package/dist/design-system/p-983e8f1b.js +0 -1
  82. package/dist/design-system/p-ab3cb64c.entry.js +0 -1
@@ -27,8 +27,9 @@ function getNewValue(oldValues, newValues) {
27
27
  return checkArray(newValues) && newValues.filter((value) => !oldValues.includes(value))[0];
28
28
  }
29
29
  function showWarningAlert(container, show = true, messageKey = 'NODUPLICATEVALUES') {
30
+ var _a;
30
31
  if (container && messageKey) {
31
- const bannerElement = container.querySelector('yoo-banner');
32
+ const bannerElement = container.querySelector('yoo-banner') || ((_a = container === null || container === void 0 ? void 0 : container.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('yoo-banner'));
32
33
  if (bannerElement) {
33
34
  bannerElement.heading = translate(messageKey);
34
35
  const bannerHeight = bannerElement.clientHeight;
@@ -8,7 +8,7 @@ import './ResizeObserver.es-857da850.js';
8
8
  import { t as dateRangeState } from './common-helpers-736b1b33.js';
9
9
  import { f as getJSONHighlighted } from './form-helpers-6f30100d.js';
10
10
  import { f as formatDistance } from './geolocation-helpers-ecd5cd8b.js';
11
- import { b as getWorkflowStepBadge } from './operation-helpers-86666c74.js';
11
+ import { b as getWorkflowStepBadge } from './operation-helpers-4c9210d3.js';
12
12
  import { i as isNumber } from './isNumber-3f36713d.js';
13
13
  import { i as isString } from './isString-632cc436.js';
14
14
  import { g as get } from './get-4d370751.js';
@@ -193,6 +193,7 @@ function keyTranslateRenderer(params) {
193
193
  return value;
194
194
  }
195
195
  function numberRenderer(params) {
196
+ var _a;
196
197
  const factor = params.factor || 1;
197
198
  const precision = params.numberPrecision;
198
199
  let retVal = params.value;
@@ -212,6 +213,9 @@ function numberRenderer(params) {
212
213
  else if (retVal && retVal.toString) {
213
214
  retVal = retVal.toString();
214
215
  }
216
+ else if ((_a = params) === null || _a === void 0 ? void 0 : _a.loader) {
217
+ return '<yoo-loader class="transparent ccenter-container" color="stable-light-to-light-10" size="small"></yoo-loader>';
218
+ }
215
219
  else {
216
220
  retVal = '';
217
221
  }
@@ -227,10 +231,14 @@ function numberRenderer(params) {
227
231
  return retVal.toString();
228
232
  }
229
233
  function percentageRenderer(params) {
234
+ var _a;
230
235
  const retVal = Number(params.value);
231
236
  const factor = params.factor || 1;
232
237
  const precision = params.numberPrecision;
233
238
  if (isNaN(retVal)) {
239
+ if ((_a = params) === null || _a === void 0 ? void 0 : _a.loader) {
240
+ return '<yoo-loader class="transparent ccenter-container" color="stable-light-to-light-10" size="small"></yoo-loader>';
241
+ }
234
242
  return `<div>${params.noValue || ''}</div>`;
235
243
  }
236
244
  const percentage = pipes.percent.transform(retVal, precision, factor);
package/dist/esm/index.js CHANGED
@@ -12,7 +12,7 @@ export { c as changeRgbOpacity } from './color-helpers-03a5e1b1.js';
12
12
  export { A as cloudinary, t as dateRangeState, d as debounceEvent, c as decreaseMaxHeight, e as execHandlerAndStopEvent, p as filterDuplicateItems, k as getActiveElementShadow, f as getAppContext, x as getConfig, h as getNextValueInArray, r as getNotificationIcon, b as getScreenHeight, g as getScreenWidth, w as getSizeModal, j as getWindowHeightRatio, n as hideShowSearchBar, o as hideShowTabbar, v as isHexaOrRGBColor, m as lifecycleEvents, l as loadScript, i as lockSwipes, y as querySelectorAllDeep, z as querySelectorDeep, u as sanitizeHTML, q as setColorSVG, s as showPhotoEditor, a as showSlidesMedia } from './common-helpers-736b1b33.js';
13
13
  export { g as getElementDimensions } from './dimensions-helpers-74309fae.js';
14
14
  export { c as createDot, d as deleteDot, a as deleteDots, b as deleteEmptyDots, i as getDotCoordsFromEvent, k as getDotInnerElement, j as getDotToolTipElement, h as hideAllDotTooltips, e as hideAllUnFocusedTooltips, r as reorderDotIndexes, f as saveTooltipContent, g as setDotEditable, l as setDotIndexes, s as showDotTooltip } from './draggable-dots-helpers-f23e5266.js';
15
- export { q as animateTags, d as checkArray, t as dropToZone, f as filterDuplicateEntries, j as getDroppedTagsValues, g as getDuplicatedValue, b as getNewValue, k as getTagZone, e as getTagsValues, i as hasDropZones, a as hasDuplicates, h as hasValuesChanged, p as initTags, u as initZones, n as isDropZoneFull, o as isTagInZone, m as isTagOverlapping, l as isTagsZone, r as resetTags, s as setDynamicTagZoneHeight, c as showWarningAlert } from './draggable-tags-helpers-e3b9cd11.js';
15
+ export { q as animateTags, d as checkArray, t as dropToZone, f as filterDuplicateEntries, j as getDroppedTagsValues, g as getDuplicatedValue, b as getNewValue, k as getTagZone, e as getTagsValues, i as hasDropZones, a as hasDuplicates, h as hasValuesChanged, p as initTags, u as initZones, n as isDropZoneFull, o as isTagInZone, m as isTagOverlapping, l as isTagsZone, r as resetTags, s as setDynamicTagZoneHeight, c as showWarningAlert } from './draggable-tags-helpers-504b4b6d.js';
16
16
  export { g as groupsFullResolver, o as onUserClick, p as parseEntityCommentsForCardList, b as parseEntityForCardListChat, a as parseEntityForCardMedia, s as sanitizeMentionTag } from './entities-helpers-c4121e55.js';
17
17
  export { d as generateLabel, e as getDynamicProperty, f as getJSONHighlighted, g as getTypeValidation, h as initArrayValue, i as isCreationAllowed, c as isDisabled, b as isReadonly, a as isRequired, s as setFieldData, u as updateFormulas } from './form-helpers-6f30100d.js';
18
18
  export { c as blurActiveElement, d as convertValueForInputType, f as focusContentEditable, e as formatMinMaxDate, i as getFormBottomPosition, g as getTimeDisplayValue, n as initNumber, k as onFocus, h as onIconClicked, m as onInputBlurred, o as onInputClear, l as onInputFocused, j as onValidityChanged, s as setValidator, a as setValueAndResetInputValidity, b as setValueAndValidateInput, t as taskStyle, v as validate } from './form-input-helpers-d7f93f16.js';
@@ -23,7 +23,7 @@ export { g as getIncentiveStatusBadgeSettings, c as getParticipant, a as getPosi
23
23
  export { g as generateFilterGroups, b as getMapCSSClasses, h as hasSameMarkers, i as isMarkersLayer, a as isSelectedMarkersLayer, c as isWebGLSupported, l as layersFromKeys, s as showDirectionsActionSheet } from './map-helpers-05c9a0ae.js';
24
24
  export { a as intersectionObserve, i as isIntersectionObserverSupported, r as resizeObserve } from './observer-helpers-15476c5f.js';
25
25
  export { c as closingDays } from './opening-hours-helpers-4ac346f8.js';
26
- export { k as cleanupTodoSlides, l as cleanupTodoTaskSlides, m as getCampaignStateTags, g as getCampaignTemplateTags, d as getMissionColor, e as getMissionDataStateTags, a as getMissionStateTags, h as getMissionStatusIconName, c as getMissionUniqueKey, f as getProductBatchDateTag, i as getProductBatchProgressColor, j as getWaitlistVisitTags, b as getWorkflowStepBadge } from './operation-helpers-86666c74.js';
26
+ export { k as cleanupTodoSlides, l as cleanupTodoTaskSlides, m as getCampaignStateTags, g as getCampaignTemplateTags, d as getMissionColor, e as getMissionDataStateTags, a as getMissionStateTags, h as getMissionStatusIconName, c as getMissionUniqueKey, f as getProductBatchDateTag, i as getProductBatchProgressColor, j as getWaitlistVisitTags, b as getWorkflowStepBadge } from './operation-helpers-4c9210d3.js';
27
27
  export { L as LANGUAGES_DATA, f as fixVideoSource, d as getDailymotionPlayerAPI, g as getSourceType, e as getVideoId, h as getVideoSubtitlesFromFiles, b as getVimeoPlayerAPI, c as getYoutubeIFrameAPI, a as getYoutubeId, o as openVideoPlayerInModal, u as updateCloudinaryDim } from './video-player-helpers-acd8aee6.js';
28
28
  export { a as attachComponent, d as detachComponent } from './framework-delegate-b640c088.js';
29
29
  export { B as BACKDROP, c as createOverlay, d as dismissOverlay, e as eventMethod, g as getTopOverlay, o as onceEvent, r as removeLastOverlay } from './overlays-9bf46a93.js';