@yoobic/yobi 7.7.86 → 7.7.90

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 (92) hide show
  1. package/dist/cjs/{form-helpers-71b62854.js → form-helpers-0502fee8.js} +3 -0
  2. package/dist/cjs/{form-helpers-0b6c3054.js → form-helpers-a5c25eed.js} +1 -1
  3. package/dist/cjs/{grid-renderers-f5edc87d.js → grid-renderers-267d1c4b.js} +2 -2
  4. package/dist/cjs/{index-4e7dd1d7.js → index-8bd0f481.js} +1 -1
  5. package/dist/cjs/index.cjs.js +4 -3
  6. package/dist/cjs/{video-player-helpers-07afe78c.js → video-player-helpers-658b4a9a.js} +17 -5
  7. package/dist/cjs/yoo-action-sheet-controller_15.cjs.entry.js +5 -5
  8. package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +3 -4
  9. package/dist/cjs/yoo-alert.cjs.entry.js +1 -1
  10. package/dist/cjs/yoo-camera-preview-dialog_7.cjs.entry.js +2 -2
  11. package/dist/cjs/yoo-card-list-image_12.cjs.entry.js +3 -3
  12. package/dist/cjs/yoo-form-choice_4.cjs.entry.js +4 -4
  13. package/dist/cjs/yoo-form-creator-block-expandable.cjs.entry.js +2 -2
  14. package/dist/cjs/yoo-form-creator-block-simple_4.cjs.entry.js +2 -2
  15. package/dist/cjs/yoo-form-creator-card_2.cjs.entry.js +2 -2
  16. package/dist/cjs/yoo-form-creator-field-selector_8.cjs.entry.js +2 -2
  17. package/dist/cjs/yoo-form-creator-translate-dialog.cjs.entry.js +2 -2
  18. package/dist/cjs/yoo-form-creator.cjs.entry.js +2 -2
  19. package/dist/cjs/yoo-form-json.cjs.entry.js +2 -2
  20. package/dist/cjs/yoo-form-videoplayer.cjs.entry.js +1 -1
  21. package/dist/cjs/yoo-lesson-question-result.cjs.entry.js +1 -1
  22. package/dist/cjs/yoo-section-list.cjs.entry.js +2 -2
  23. package/dist/cjs/yoo-videoplayer-dailymotion.cjs.entry.js +1 -1
  24. package/dist/cjs/yoo-videoplayer-videojs.cjs.entry.js +1 -1
  25. package/dist/cjs/yoo-videoplayer-vimeo.cjs.entry.js +1 -1
  26. package/dist/cjs/yoo-videoplayer-youtube.cjs.entry.js +1 -1
  27. package/dist/collection/components/app-boost/section-list/section-list.js +2 -2
  28. package/dist/collection/components/form/form-choice/form-choice.js +2 -2
  29. package/dist/collection/components/form/form-input/form-input.css +43 -62
  30. package/dist/collection/components/form/form-input/form-input.js +1 -1
  31. package/dist/collection/components/form/form-number-picker/form-number-picker.js +0 -1
  32. package/dist/collection/utils/helpers/video-player-helpers.js +16 -5
  33. package/dist/design-system/design-system.esm.js +1 -1
  34. package/dist/design-system/index.esm.js +1 -1
  35. package/dist/design-system/p-0c6722b2.entry.js +1 -0
  36. package/dist/design-system/p-162863e1.js +1 -0
  37. package/dist/design-system/{p-16951157.entry.js → p-1bdec8f9.entry.js} +1 -1
  38. package/dist/design-system/{p-41e155f7.entry.js → p-225955a0.entry.js} +2 -2
  39. package/dist/design-system/{p-4f7b5084.entry.js → p-22e60fbb.entry.js} +1 -1
  40. package/dist/design-system/{p-d51ee577.entry.js → p-260a81e6.entry.js} +1 -1
  41. package/dist/design-system/p-497f00b1.entry.js +1 -0
  42. package/dist/design-system/{p-27145597.entry.js → p-5b4236d7.entry.js} +1 -1
  43. package/dist/design-system/{p-ae197453.entry.js → p-6504133f.entry.js} +1 -1
  44. package/dist/design-system/{p-71cca219.entry.js → p-671b34db.entry.js} +1 -1
  45. package/dist/design-system/{p-466a2e4b.entry.js → p-84f195e7.entry.js} +1 -1
  46. package/dist/design-system/{p-2ede5c0e.entry.js → p-9d398089.entry.js} +1 -1
  47. package/dist/design-system/{p-57f5b030.entry.js → p-a0e90dbc.entry.js} +1 -1
  48. package/dist/design-system/{p-9d8da4a0.entry.js → p-a24d3b2d.entry.js} +1 -1
  49. package/dist/design-system/p-b289eb9a.js +1 -0
  50. package/dist/design-system/{p-db36fb06.js → p-b4a5082b.js} +1 -1
  51. package/dist/design-system/{p-2a056ca7.entry.js → p-c15153ae.entry.js} +1 -1
  52. package/dist/design-system/{p-e8327344.entry.js → p-c889ea5f.entry.js} +1 -1
  53. package/dist/design-system/{p-2f6b3544.js → p-cee65dce.js} +1 -1
  54. package/dist/design-system/{p-50fdc9f2.entry.js → p-d2d9ca4d.entry.js} +1 -1
  55. package/dist/design-system/p-d40ba5d3.entry.js +1 -0
  56. package/dist/design-system/{p-bab8cef4.entry.js → p-d99c971f.entry.js} +1 -1
  57. package/dist/design-system/{p-ef754e66.js → p-dc0ffca9.js} +1 -1
  58. package/dist/design-system/{p-1fbf2bdc.entry.js → p-f2b30788.entry.js} +1 -1
  59. package/dist/design-system/{p-eef60f76.entry.js → p-fb884de6.entry.js} +1 -1
  60. package/dist/esm/{form-helpers-1b9c9641.js → form-helpers-493c6572.js} +3 -0
  61. package/dist/esm/{form-helpers-63173698.js → form-helpers-4d1f67ff.js} +1 -1
  62. package/dist/esm/{grid-renderers-1dd42472.js → grid-renderers-caf8ca7e.js} +2 -2
  63. package/dist/esm/{index-6f7890f4.js → index-83d04081.js} +1 -1
  64. package/dist/esm/index.js +3 -3
  65. package/dist/esm/{video-player-helpers-cd3527ae.js → video-player-helpers-866ceaa0.js} +17 -6
  66. package/dist/esm/yoo-action-sheet-controller_15.entry.js +5 -5
  67. package/dist/esm/yoo-ag-grid_96.entry.js +3 -4
  68. package/dist/esm/yoo-alert.entry.js +1 -1
  69. package/dist/esm/yoo-camera-preview-dialog_7.entry.js +2 -2
  70. package/dist/esm/yoo-card-list-image_12.entry.js +3 -3
  71. package/dist/esm/yoo-form-choice_4.entry.js +4 -4
  72. package/dist/esm/yoo-form-creator-block-expandable.entry.js +2 -2
  73. package/dist/esm/yoo-form-creator-block-simple_4.entry.js +2 -2
  74. package/dist/esm/yoo-form-creator-card_2.entry.js +2 -2
  75. package/dist/esm/yoo-form-creator-field-selector_8.entry.js +2 -2
  76. package/dist/esm/yoo-form-creator-translate-dialog.entry.js +2 -2
  77. package/dist/esm/yoo-form-creator.entry.js +2 -2
  78. package/dist/esm/yoo-form-json.entry.js +2 -2
  79. package/dist/esm/yoo-form-videoplayer.entry.js +1 -1
  80. package/dist/esm/yoo-lesson-question-result.entry.js +1 -1
  81. package/dist/esm/yoo-section-list.entry.js +2 -2
  82. package/dist/esm/yoo-videoplayer-dailymotion.entry.js +1 -1
  83. package/dist/esm/yoo-videoplayer-videojs.entry.js +1 -1
  84. package/dist/esm/yoo-videoplayer-vimeo.entry.js +1 -1
  85. package/dist/esm/yoo-videoplayer-youtube.entry.js +1 -1
  86. package/dist/types/utils/helpers/video-player-helpers.d.ts +1 -0
  87. package/package.json +1 -1
  88. package/dist/design-system/p-41bd35bc.entry.js +0 -1
  89. package/dist/design-system/p-46c2f5f9.js +0 -1
  90. package/dist/design-system/p-577f31e4.entry.js +0 -1
  91. package/dist/design-system/p-b038a7bd.js +0 -1
  92. package/dist/design-system/p-db225b69.entry.js +0 -1
@@ -12,7 +12,7 @@ import { g as get } from './get-3cbd3bd6.js';
12
12
  import { f as getPhotoSVG, k as isElementInsideContainer } from './annotations-helpers-d026cd25.js';
13
13
  import { g as getElementDimensions } from './dimensions-helpers-74309fae.js';
14
14
  import { u as updateSVGCustomColors } from './image-helpers-6b281c05.js';
15
- import { g as getRenderer } from './grid-renderers-1dd42472.js';
15
+ import { g as getRenderer } from './grid-renderers-caf8ca7e.js';
16
16
  import { d as debounce$1 } from './debounce-1a5f66d4.js';
17
17
  import { c as cloneDeep } from './cloneDeep-7e28f486.js';
18
18
  import { a as assign } from './assign-6bfb01cb.js';
@@ -45,9 +45,9 @@ import './identity-db011338.js';
45
45
  import './_baseEach-312405e0.js';
46
46
  import './url-helpers-91100b28.js';
47
47
  import './salesai-helpers-82535622.js';
48
- import './form-helpers-63173698.js';
48
+ import './form-helpers-4d1f67ff.js';
49
49
  import './filters-helpers-51aea915.js';
50
- import './form-helpers-1b9c9641.js';
50
+ import './form-helpers-493c6572.js';
51
51
  import './video-player-helpers-abeb792d.js';
52
52
  import './_baseFlatten-c79e3f06.js';
53
53
  import './_copyArray-40d7b0e8.js';
@@ -10,7 +10,7 @@ import { s as shuffle } from './shuffle-ec8e5df6.js';
10
10
  import { f as findIndex } from './findIndex-f1398eac.js';
11
11
  import { i as isString } from './isString-1673d591.js';
12
12
  import { f as feedbackValues } from './index-2319a076.js';
13
- import { l as setBlockSelection, U as setPageSelection } from './index-6f7890f4.js';
13
+ import { l as setBlockSelection, U as setPageSelection } from './index-83d04081.js';
14
14
  import { d as getConfidenceDescriptionKey } from './boost-helpers-ae1115e2.js';
15
15
  import { i as isNumber } from './isNumber-5a14c4d5.js';
16
16
  import './isUndefined-11cbe419.js';
@@ -38,7 +38,7 @@ import './index-7a08441e.js';
38
38
  import './document-29cc0400.js';
39
39
  import './validate-691c9af1.js';
40
40
  import './form-creator-helpers-e288d1e2.js';
41
- import './form-helpers-1b9c9641.js';
41
+ import './form-helpers-493c6572.js';
42
42
  import './filters-helpers-51aea915.js';
43
43
  import './video-player-helpers-abeb792d.js';
44
44
  import './_baseFlatten-c79e3f06.js';
@@ -269,9 +269,9 @@ const YooFormChoiceComponent = class {
269
269
  values = values.filter(({ text }) => answers.some((answer) => answer === text));
270
270
  }
271
271
  return (h("div", { class: { 'images-container': true, readonly: this.readonly } }, values.map((value, index) => {
272
- var _a;
273
272
  const { text, image } = value || {};
274
- const isCorrect = ((_a = this.answer) === null || _a === void 0 ? void 0 : _a.length) <= 0 ? null : this.answer.includes(text);
273
+ const answer = this.type === 'image' ? [].concat(this.answer).map(a => a.text ? a.text : a) : this.answer;
274
+ const isCorrect = (answer === null || answer === void 0 ? void 0 : answer.length) <= 0 ? null : answer.includes(text);
275
275
  return image && (h("div", { class: "image-container", onClick: () => this.isHistory && onOpenImage(values, index), style: this.animated ? { '--choice-index': index.toString() } : {} }, h("div", { class: { 'image-content': true, 'correct-answer': this.readonly && isCorrect === true, 'wrong-answer': this.readonly && isCorrect === false } }, image && h("yoo-img", { cloudinaryOptions: { pad: true }, scaledUp: this.isPdf, src: image, onClick: () => !readonly && this.onItemSelect(text) }), !readonly && [
276
276
  h("yoo-form-checkbox", { value: this.isSelected(text), onClick: () => this.onItemSelect(text), animated: this.animated }),
277
277
  h("yoo-tag", { color: "dark-60", icon: "maximize", iconOnlyColor: "light", size: "small", onClick: () => onOpenImage(values, index) })
@@ -3,7 +3,7 @@ import { w as FORM_CREATOR_OPTIONS_ALL, A as ALL_MOBILE_FORM_FIELDS, S as Scorin
3
3
  import { w as debounce, a1 as compact, t as translate, Z as gsapFromTo, Y as translateMulti, a3 as isNullOrUndefined, T as gsapTo, c2 as Power3 } from './rrule-5a2de9bb.js';
4
4
  import { y as findMaxScore, z as isNotApplicable } from './form-creator-helpers-e288d1e2.js';
5
5
  import { N as NON_CONDITION_CATEGORIES } from './index-4fa684b9.js';
6
- import { l as setBlockSelection, R as setRestrictionAndConditionActions, S as starRatingMaxDefault, T as filterSequentialFields, I as setRestrictionAndFieldConditions, J as setChildFields } from './index-6f7890f4.js';
6
+ import { l as setBlockSelection, R as setRestrictionAndConditionActions, S as starRatingMaxDefault, T as filterSequentialFields, I as setRestrictionAndFieldConditions, J as setChildFields } from './index-83d04081.js';
7
7
  import './isNumber-5a14c4d5.js';
8
8
  import './isEqual-17ab50de.js';
9
9
  import './_baseIsEqual-b74e0d4d.js';
@@ -17,7 +17,7 @@ import './index-7a08441e.js';
17
17
  import './document-29cc0400.js';
18
18
  import './validate-691c9af1.js';
19
19
  import './isString-1673d591.js';
20
- import './form-helpers-1b9c9641.js';
20
+ import './form-helpers-493c6572.js';
21
21
  import './filters-helpers-51aea915.js';
22
22
  import './video-player-helpers-abeb792d.js';
23
23
  import './_baseFlatten-c79e3f06.js';
@@ -5,7 +5,7 @@ import './ResizeObserver.es-a8772c31.js';
5
5
  import { f as getAppContext } from './common-helpers-f3296dd7.js';
6
6
  import { f as fieldStateOptions } from './index-d2e5da02.js';
7
7
  import { S as Sortable } from './sortable.esm-e5d5ca49.js';
8
- import { I as setRestrictionAndFieldConditions, P as getWorkflowFieldState, O as onWorkflowStepClicked } from './index-6f7890f4.js';
8
+ import { I as setRestrictionAndFieldConditions, P as getWorkflowFieldState, O as onWorkflowStepClicked } from './index-83d04081.js';
9
9
  import { g as getUserDisplayName } from './entities-helpers-122c20c3.js';
10
10
  import { g as groupsFullResolver } from './entities-helpers-2876d199.js';
11
11
  import './isUndefined-11cbe419.js';
@@ -25,7 +25,7 @@ import './keys-ec469112.js';
25
25
  import './_baseUnary-3e989b0b.js';
26
26
  import './_baseKeys-2fda8200.js';
27
27
  import './_getTag-064e16c4.js';
28
- import './form-helpers-1b9c9641.js';
28
+ import './form-helpers-493c6572.js';
29
29
  import './filters-helpers-51aea915.js';
30
30
  import './video-player-helpers-abeb792d.js';
31
31
  import './_baseFlatten-c79e3f06.js';
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-2
2
2
  import { s as showModal, t as translate, Y as translateMulti, b1 as showAlert, bo as closeModal } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
4
  import { f as fieldStateOptions } from './index-d2e5da02.js';
5
- import { R as setRestrictionAndConditionActions, l as setBlockSelection } from './index-6f7890f4.js';
5
+ import { R as setRestrictionAndConditionActions, l as setBlockSelection } from './index-83d04081.js';
6
6
  import './index-7a08441e.js';
7
7
  import './document-29cc0400.js';
8
8
  import './validate-691c9af1.js';
@@ -17,7 +17,7 @@ import './keys-ec469112.js';
17
17
  import './_baseUnary-3e989b0b.js';
18
18
  import './_baseKeys-2fda8200.js';
19
19
  import './_getTag-064e16c4.js';
20
- import './form-helpers-1b9c9641.js';
20
+ import './form-helpers-493c6572.js';
21
21
  import './filters-helpers-51aea915.js';
22
22
  import './video-player-helpers-abeb792d.js';
23
23
  import './_baseFlatten-c79e3f06.js';
@@ -9,7 +9,7 @@ import { d as devices } from './device.interface-45f11d19.js';
9
9
  import { c as conditionBlocksConfig, W as WorkflowMode } from './card-video.interface-5de361ba.js';
10
10
  import { S as Sortable } from './sortable.esm-e5d5ca49.js';
11
11
  import { e as formatSlides, t as cleanUnusedTranslations, v as updateScoringWithTranslations, w as updateAuditWithTranslations } from './form-creator-helpers-e288d1e2.js';
12
- import { K as resetKey, L as resetFieldTranslations, t as translateAll, M as isAlreadyTranslated, N as addRow, O as onWorkflowStepClicked, P as getWorkflowFieldState } from './index-6f7890f4.js';
12
+ import { K as resetKey, L as resetFieldTranslations, t as translateAll, M as isAlreadyTranslated, N as addRow, O as onWorkflowStepClicked, P as getWorkflowFieldState } from './index-83d04081.js';
13
13
  import { i as isEqual } from './isEqual-17ab50de.js';
14
14
  import { r as remove } from './remove-ecc59e7c.js';
15
15
  import { f as fieldStateOptions } from './index-d2e5da02.js';
@@ -31,7 +31,7 @@ import './index-7a08441e.js';
31
31
  import './document-29cc0400.js';
32
32
  import './validate-691c9af1.js';
33
33
  import './isString-1673d591.js';
34
- import './form-helpers-1b9c9641.js';
34
+ import './form-helpers-493c6572.js';
35
35
  import './filters-helpers-51aea915.js';
36
36
  import './video-player-helpers-abeb792d.js';
37
37
  import './_baseFlatten-c79e3f06.js';
@@ -3,7 +3,7 @@ import { o as TRANSLATABLE_FORM_FIELD_ATTRIBUTES, F as FormFieldType, m as COMPL
3
3
  import { w as debounce, a1 as compact, V as getCurrentLanguage, Y as translateMulti, t as translate, a4 as isObject, bo as closeModal } from './rrule-5a2de9bb.js';
4
4
  import { e as formatSlides, x as getLocaleTranslation, f as findField } from './form-creator-helpers-e288d1e2.js';
5
5
  import { i as isHTML } from './string-helpers-9646d8e3.js';
6
- import { Q as updateLocaleTranslation } from './index-6f7890f4.js';
6
+ import { Q as updateLocaleTranslation } from './index-83d04081.js';
7
7
  import { c as cloneDeep } from './cloneDeep-7e28f486.js';
8
8
  import { i as isEmpty } from './isEmpty-7879f636.js';
9
9
  import { i as isString } from './isString-1673d591.js';
@@ -19,7 +19,7 @@ import './_getTag-064e16c4.js';
19
19
  import './index-7a08441e.js';
20
20
  import './document-29cc0400.js';
21
21
  import './validate-691c9af1.js';
22
- import './form-helpers-1b9c9641.js';
22
+ import './form-helpers-493c6572.js';
23
23
  import './filters-helpers-51aea915.js';
24
24
  import './video-player-helpers-abeb792d.js';
25
25
  import './_baseFlatten-c79e3f06.js';
@@ -8,7 +8,7 @@ import './ResizeObserver.es-a8772c31.js';
8
8
  import { f as getAppContext } from './common-helpers-f3296dd7.js';
9
9
  import { S as Sortable } from './sortable.esm-e5d5ca49.js';
10
10
  import { N as NON_CONDITION_CATEGORIES, A as ARROW_PAIR } from './index-4fa684b9.js';
11
- import { a as addNewIdsToSlide, s as serializeScoringValuePairs, u as updateSelectedFields, i as isScoring, g as getExpandableBlockReference, r as removeCondition, b as removePageCondtion, c as addNewUnattachedParentConditions, d as deleteFieldAndRemoveConditionReferences, e as duplicateField, f as deleteCondition, h as deleteUnattachedParentConditions, j as findCondition, k as updateCondition, l as setBlockSelection, m as cleanCustomFormFieldSlides, t as translateAll, n as cleanUnattachedParentConditions, o as removeSelectedItems, p as setSelectedScoring, q as getFieldsWithScoring, v as populateFieldsWithScoring, w as setFormFieldIndex, x as getTotalFields, y as setParentConditions, z as updateUnattatchedCondition, A as doesSlidePageHaveItems, B as getNumberOfSequentialFields, C as getDefaultCondition, D as addNewParentCondition, E as createNewIdsForCustomFields, F as getDefaultField, G as checkForFieldAttribute, H as populateMissingValues, I as setRestrictionAndFieldConditions, J as setChildFields } from './index-6f7890f4.js';
11
+ import { a as addNewIdsToSlide, s as serializeScoringValuePairs, u as updateSelectedFields, i as isScoring, g as getExpandableBlockReference, r as removeCondition, b as removePageCondtion, c as addNewUnattachedParentConditions, d as deleteFieldAndRemoveConditionReferences, e as duplicateField, f as deleteCondition, h as deleteUnattachedParentConditions, j as findCondition, k as updateCondition, l as setBlockSelection, m as cleanCustomFormFieldSlides, t as translateAll, n as cleanUnattachedParentConditions, o as removeSelectedItems, p as setSelectedScoring, q as getFieldsWithScoring, v as populateFieldsWithScoring, w as setFormFieldIndex, x as getTotalFields, y as setParentConditions, z as updateUnattatchedCondition, A as doesSlidePageHaveItems, B as getNumberOfSequentialFields, C as getDefaultCondition, D as addNewParentCondition, E as createNewIdsForCustomFields, F as getDefaultField, G as checkForFieldAttribute, H as populateMissingValues, I as setRestrictionAndFieldConditions, J as setChildFields } from './index-83d04081.js';
12
12
  import { c as cloneDeep } from './cloneDeep-7e28f486.js';
13
13
  import { o as orderBy } from './orderBy-c365859b.js';
14
14
  import './document-29cc0400.js';
@@ -26,7 +26,7 @@ import './_getTag-064e16c4.js';
26
26
  import './isUndefined-11cbe419.js';
27
27
  import './get-3cbd3bd6.js';
28
28
  import './_baseGet-b09185bc.js';
29
- import './form-helpers-1b9c9641.js';
29
+ import './form-helpers-493c6572.js';
30
30
  import './filters-helpers-51aea915.js';
31
31
  import './video-player-helpers-abeb792d.js';
32
32
  import './_baseFlatten-c79e3f06.js';
@@ -2,12 +2,12 @@ import { r as registerInstance, c as createEvent, h } from './index-27314512.js'
2
2
  import { c as createCommonjsModule, d as commonjsGlobal, p as getDefaultExportFromCjs, t as translate } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
4
  import './ResizeObserver.es-a8772c31.js';
5
- import { f as getJSONHighlighted } from './form-helpers-63173698.js';
5
+ import { f as getJSONHighlighted } from './form-helpers-4d1f67ff.js';
6
6
  import { s as setValidator, b as setValueAndValidateInput } from './form-input-helpers-da854059.js';
7
7
  import './isUndefined-11cbe419.js';
8
8
  import './isNumber-5a14c4d5.js';
9
9
  import './filters-helpers-51aea915.js';
10
- import './form-helpers-1b9c9641.js';
10
+ import './form-helpers-493c6572.js';
11
11
  import './video-player-helpers-abeb792d.js';
12
12
  import './isString-1673d591.js';
13
13
  import './_arrayPush-b31ea39a.js';
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-2
2
2
  import { a as isOffline, i as isNativeMobile, B as isTablet, l as isAndroid } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
4
  import './ResizeObserver.es-a8772c31.js';
5
- import { g as getSourceType, f as fixVideoSource, h as getVideoSubtitlesFromFiles } from './video-player-helpers-cd3527ae.js';
5
+ import { g as getSourceType, f as fixVideoSource, i as getVideoSubtitlesFromFiles } from './video-player-helpers-866ceaa0.js';
6
6
  import './isUndefined-11cbe419.js';
7
7
  import './isNumber-5a14c4d5.js';
8
8
  import './video-player-helpers-abeb792d.js';
@@ -3,7 +3,7 @@ import { t as translate, bo as closeModal, b as isWeb, bx as minsToMinsAndSecs,
3
3
  import './input-bar.interface-4e956599.js';
4
4
  import { i as isImage } from './document-29cc0400.js';
5
5
  import { b as isContentOnly, c as getConfidencePoints, d as getConfidenceDescriptionKey, s as showRatingDialog, e as getCorrectAnswersCount, f as isQuiz } from './boost-helpers-ae1115e2.js';
6
- import { o as answerIsValid } from './form-helpers-1b9c9641.js';
6
+ import { o as answerIsValid } from './form-helpers-493c6572.js';
7
7
  import { g as get } from './get-3cbd3bd6.js';
8
8
  import { i as isNumber } from './isNumber-5a14c4d5.js';
9
9
  import './validate-691c9af1.js';
@@ -448,7 +448,7 @@ const YooSectionListComponent = class {
448
448
  }
449
449
  renderSectionItem(item) {
450
450
  let checkboxRef;
451
- return (h("div", { class: "item selectable", onMouseEnter: this.getItemMouseEnterAction(), onMouseLeave: this.getItemMouseLeaveAction() }, h("div", { class: "checkbox", ref: (el) => checkboxRef = el }, !this.disableBatchActions && this.isOwner && item.isSelectable !== false && h("yoo-form-checkbox", { onInputChanged: (ev) => this.onCheckboxClicked(ev, item, checkboxRef) })), h("div", { class: "item-container", onClick: () => this.itemClicked.emit(item) }, h("div", { class: "title-container" }, item.user && h("yoo-avatars", { layout: "list", users: [item.user], size: "small" }), item.title && h("div", { class: "title" }, h("yoo-truncate", { innerHTML: translateMulti(item.title) })), item.text && h("div", { class: "description" }, h("yoo-truncate", null, translateMulti(item.text)))), h("div", { class: "info-container" }, item.columns && item.columns.map((column) => this.renderSectionItemColumn(column))), !this.disableSortable && !this.isReadonly && h("div", { class: "draggable" }, h("yoo-icon", { name: "draggable", color: "text-color", size: "medium" })), (this.isPublisher || this.isViewer) && this.countSuffix === 'lessons' ? this.renderViewerPublisherActions() : this.renderItemActions(item))));
451
+ return (h("div", { class: "item selectable", onMouseEnter: this.getItemMouseEnterAction(), onMouseLeave: this.getItemMouseLeaveAction() }, h("div", { class: "checkbox", ref: (el) => checkboxRef = el }, !this.disableBatchActions && this.isOwner && item.isSelectable !== false && h("yoo-form-checkbox", { onInputChanged: (ev) => this.onCheckboxClicked(ev, item, checkboxRef) })), h("div", { class: "item-container", onClick: () => this.itemClicked.emit(item) }, h("div", { class: "title-container" }, item.user && h("yoo-avatars", { layout: "list", users: [item.user], size: "small" }), item.title && h("div", { class: "title" }, h("yoo-truncate", { innerHTML: translateMulti(item.title) })), item.text && h("div", { class: "description" }, h("yoo-truncate", null, translateMulti(item.text)))), h("div", { class: "info-container" }, item.columns && item.columns.map((column) => this.renderSectionItemColumn(column))), !this.disableSortable && !this.isReadonly && h("div", { class: "draggable" }, h("yoo-icon", { name: "draggable", color: "text-color", size: "medium" })), !this.isOwner && (this.isPublisher || this.isViewer) && this.countSuffix === 'lessons' ? this.renderViewerPublisherActions() : this.renderItemActions(item))));
452
452
  }
453
453
  renderSectionItemColumn(column) {
454
454
  return (h("div", { class: "column" }, column.icon && h("yoo-icon", { name: column.icon, size: "small" }), h("div", { class: "value" }, translate(column.value))));
@@ -460,7 +460,7 @@ const YooSectionListComponent = class {
460
460
  if (!this.itemActions || !this.itemActions.length) {
461
461
  return;
462
462
  }
463
- const actions = this.itemActions.map((action) => (Object.assign(Object.assign({}, action), { handler: () => action.handler(i), isVisible: () => (action === null || action === void 0 ? void 0 : action.visible) ? action.visible() : true })));
463
+ const actions = this.itemActions.map((action) => (Object.assign(Object.assign({}, action), { handler: () => action.handler(i), isVisible: () => (action === null || action === void 0 ? void 0 : action.visible) ? action.visible(i) : true })));
464
464
  return (h("div", { class: "item-actions" }, h("yoo-context-menu", { contentButtons: actions, placement: "below" }, h("yoo-button", { disabled: this.isViewer && this.countSuffix === 'users' ? true : false, size: "medium" }, h("yoo-icon", { size: "small", name: "more", color: "stable" })))));
465
465
  }
466
466
  render() {
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
2
2
  import { i as isNativeMobile } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
4
  import './ResizeObserver.es-a8772c31.js';
5
- import { o as openVideoPlayerInModal, d as getDailymotionPlayerAPI, e as getVideoId } from './video-player-helpers-cd3527ae.js';
5
+ import { o as openVideoPlayerInModal, e as getDailymotionPlayerAPI, h as getVideoId } from './video-player-helpers-866ceaa0.js';
6
6
  import { v as videoPlayerStates } from './index-0f001ddb.js';
7
7
  import { r as remove } from './remove-ecc59e7c.js';
8
8
  import './isUndefined-11cbe419.js';
@@ -8,7 +8,7 @@ import { c as convertSrtToWebVTT } from './video-player-helpers-abeb792d.js';
8
8
  import './ResizeObserver.es-a8772c31.js';
9
9
  import { z as querySelectorDeep, f as getAppContext } from './common-helpers-f3296dd7.js';
10
10
  import { a as intersectionObserve } from './observer-helpers-2c5c0591.js';
11
- import { o as openVideoPlayerInModal, u as updateCloudinaryDim } from './video-player-helpers-cd3527ae.js';
11
+ import { o as openVideoPlayerInModal, u as updateCloudinaryDim } from './video-player-helpers-866ceaa0.js';
12
12
  import { v as videoPlayerStates } from './index-0f001ddb.js';
13
13
  import { g as getExtension } from './document-29cc0400.js';
14
14
  import './validate-691c9af1.js';
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-2
2
2
  import './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
4
  import './ResizeObserver.es-a8772c31.js';
5
- import { o as openVideoPlayerInModal, b as getVimeoPlayerAPI } from './video-player-helpers-cd3527ae.js';
5
+ import { o as openVideoPlayerInModal, c as getVimeoPlayerAPI } from './video-player-helpers-866ceaa0.js';
6
6
  import { v as videoPlayerStates } from './index-0f001ddb.js';
7
7
  import './isUndefined-11cbe419.js';
8
8
  import './isNumber-5a14c4d5.js';
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-2
2
2
  import { i as isNativeMobile } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
4
  import './ResizeObserver.es-a8772c31.js';
5
- import { a as getYoutubeId, o as openVideoPlayerInModal, c as getYoutubeIFrameAPI } from './video-player-helpers-cd3527ae.js';
5
+ import { b as getYoutubeId, o as openVideoPlayerInModal, d as getYoutubeIFrameAPI } from './video-player-helpers-866ceaa0.js';
6
6
  import { v as videoPlayerStates } from './index-0f001ddb.js';
7
7
  import './isUndefined-11cbe419.js';
8
8
  import './isNumber-5a14c4d5.js';
@@ -6,6 +6,7 @@ export declare const LANGUAGES_DATA: {
6
6
  }[];
7
7
  export declare function getSourceType(field: any): TVideoPlayer;
8
8
  export declare function fixVideoSource(field: any): string;
9
+ export declare function fixVimeoSource(source: string): string;
9
10
  export declare function openVideoPlayerInModal(type: TVideoPlayer, coreParams: IVideoPlayerCore, modalParams?: IVideoPlayerModalOptions): Promise<any>;
10
11
  export declare function getYoutubeId(source: string): string;
11
12
  export declare function getVimeoPlayerAPI(): Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "7.7.86",
3
+ "version": "7.7.90",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",