@yoobic/yobi 7.7.92 → 7.7.96

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 (23) hide show
  1. package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +3 -2
  2. package/dist/cjs/yoo-card-list-image_12.cjs.entry.js +1 -1
  3. package/dist/cjs/yoo-form-choice_4.cjs.entry.js +1 -2
  4. package/dist/cjs/yoo-form-range.cjs.entry.js +3 -2
  5. package/dist/collection/components/form/form-carousel/form-carousel.js +2 -2
  6. package/dist/collection/components/form/form-document-dialog/form-document-dialog.js +2 -2
  7. package/dist/collection/components/form/form-dynamic/form-dynamic.js +2 -1
  8. package/dist/collection/components/form/form-feedback/form-feedback.js +3 -2
  9. package/dist/collection/components/form/form-range/form-range.js +5 -3
  10. package/dist/design-system/design-system.esm.js +1 -1
  11. package/dist/design-system/{p-725509dd.entry.js → p-4ef0efa6.entry.js} +2 -2
  12. package/dist/design-system/p-59f99c7c.entry.js +1 -0
  13. package/dist/design-system/{p-5a82b3da.entry.js → p-c5e4eec8.entry.js} +1 -1
  14. package/dist/design-system/p-c8e49847.entry.js +1 -0
  15. package/dist/esm/yoo-ag-grid_96.entry.js +4 -3
  16. package/dist/esm/yoo-card-list-image_12.entry.js +2 -2
  17. package/dist/esm/yoo-form-choice_4.entry.js +1 -2
  18. package/dist/esm/yoo-form-range.entry.js +3 -2
  19. package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/condition/condition.interface.d.ts +1 -1
  20. package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/ui/app/app.interface.d.ts +1 -0
  21. package/package.json +1 -1
  22. package/dist/design-system/p-6db9f9b6.entry.js +0 -1
  23. package/dist/design-system/p-6e516cc5.entry.js +0 -1
@@ -123457,7 +123457,7 @@ const YooFormDocumentDialogComponent = class {
123457
123457
  icon: 'email',
123458
123458
  iconColor: 'dark-to-light',
123459
123459
  cssClass: rrule.isWeb(this.host) ? 'bg-royal-hover' : 'bg-royal light',
123460
- isVisible: () => index$1.isDocumentEmailSupported(this.document),
123460
+ isVisible: () => index$1.isDocumentEmailSupported(this.document) && rrule.getPermissions().canShareByEmail,
123461
123461
  handler: () => {
123462
123462
  rrule.getAsyncExtraData({
123463
123463
  type: 'email-dialog',
@@ -126872,7 +126872,8 @@ const YooFormDynamicComponent = class {
126872
126872
  case inputBar_interface.FormFieldType.feedback:
126873
126873
  TagType = 'yoo-form-feedback';
126874
126874
  extraAttrs = {
126875
- class: this.appColor
126875
+ class: this.appColor,
126876
+ isReadonly: readonly
126876
126877
  };
126877
126878
  break;
126878
126879
  case inputBar_interface.FormFieldType.signature:
@@ -303,7 +303,7 @@ const YooFormCarouselComponent = class {
303
303
  text: rrule.translate('EMAIL'),
304
304
  icon: 'email',
305
305
  color: 'dark',
306
- isVisible: () => { var _a; return !!item && !((_a = rrule.getSession()) === null || _a === void 0 ? void 0 : _a.isExternal); },
306
+ isVisible: () => { var _a; return !!item && !((_a = rrule.getSession()) === null || _a === void 0 ? void 0 : _a.isExternal) && rrule.getPermissions().canShareByEmail; },
307
307
  handler: () => {
308
308
  const filename = (item === null || item === void 0 ? void 0 : item._filename) || new Date().getTime().toString();
309
309
  rrule.getAsyncExtraData({
@@ -763,8 +763,7 @@ const YooFormFeedbackComponent = class {
763
763
  });
764
764
  }
765
765
  renderReadonly() {
766
- return index.h("div", { class: "readonly" }, this.isConfidenceQuiz ? this.renderFormChoice()
767
- : isNumber.isNumber(this.value) && this.emojis[this.value]);
766
+ return index.h("div", { class: "readonly" }, this.isConfidenceQuiz && this.renderFormChoice(), !this.isConfidenceQuiz && isNumber.isNumber(this.value) && this.emojis[this.value - 1]);
768
767
  }
769
768
  renderEditable() {
770
769
  return ([
@@ -8,8 +8,8 @@ require('./input-bar.interface-b96b7107.js');
8
8
  require('./ResizeObserver.es-2edf4ecd.js');
9
9
  const formInputHelpers = require('./form-input-helpers-9e98c0e6.js');
10
10
  const isEqual = require('./isEqual-35c41499.js');
11
+ const isNumber = require('./isNumber-4c1ace60.js');
11
12
  require('./isUndefined-8f9cfd10.js');
12
- require('./isNumber-4c1ace60.js');
13
13
  require('./common-helpers-797be2a6.js');
14
14
  require('./get-91c14783.js');
15
15
  require('./_baseGet-89e374f5.js');
@@ -104,7 +104,8 @@ const YooFormRangeComponent = class {
104
104
  }
105
105
  }
106
106
  renderReadonly() {
107
- return (index.h("div", { class: "readonly" }, index.h("div", null, this.value ? this.value[0] : null), index.h("div", null, this.value && this.isRangeSlider ? this.value[1] : null)));
107
+ var _a, _b;
108
+ return (index.h("div", { class: "readonly" }, index.h("div", null, isNumber.isNumber(this.value) ? this.value : null), index.h("div", null, rrule.isArray(this.value) && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.value[0] : null), index.h("div", null, rrule.isArray(this.value) && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.length) > 1 ? this.value[1] : null)));
108
109
  }
109
110
  renderEditable() {
110
111
  const iterable = this.isRangeSlider ? [1, 2] : [1];
@@ -1,4 +1,4 @@
1
- import { closeModal, downloadFile, findParent, getAsyncExtraData, getSession, isChromatic, isCloudinaryLink, isNativeMobile, isNullOrUndefined, isPdf, isWeb, showActionSheet, showContextMenu, translate } from '@shared/utils';
1
+ import { closeModal, downloadFile, findParent, getAsyncExtraData, getPermissions, getSession, isChromatic, isCloudinaryLink, isNativeMobile, isNullOrUndefined, isPdf, isWeb, showActionSheet, showContextMenu, translate } from '@shared/utils';
2
2
  import { Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch } from '@stencil/core';
3
3
  import { getAppContext, intersectionObserve, isIntersectionObserverSupported, lockSwipes, showSlidesMedia } from '@utils';
4
4
  import { isArray } from 'lodash-es';
@@ -117,7 +117,7 @@ export class YooFormCarouselComponent {
117
117
  text: translate('EMAIL'),
118
118
  icon: 'email',
119
119
  color: 'dark',
120
- isVisible: () => { var _a; return !!item && !((_a = getSession()) === null || _a === void 0 ? void 0 : _a.isExternal); },
120
+ isVisible: () => { var _a; return !!item && !((_a = getSession()) === null || _a === void 0 ? void 0 : _a.isExternal) && getPermissions().canShareByEmail; },
121
121
  handler: () => {
122
122
  const filename = (item === null || item === void 0 ? void 0 : item._filename) || new Date().getTime().toString();
123
123
  getAsyncExtraData({
@@ -1,5 +1,5 @@
1
1
  import { ScreenOrientation } from '@ionic-native/screen-orientation';
2
- import { changeExtension, closeModal, Cloudinary, dispatchCustomEvent, downloadFile, downloadFileToDevice, fileNativeCheckFile, getAsyncExtraData, getExtension, getNativeDirectory, getType, isAndroid, isAudio, isCurrentLanguageChinese, isDateBefore, isDocumentDownloadSupported, isDocumentEmailSupported, isFile, isNativeMobile, isOffline, isVideo, isWeb, pipes, showActionSheet, showPdfOnDevice, translate } from '@shared/utils';
2
+ import { changeExtension, closeModal, Cloudinary, dispatchCustomEvent, downloadFile, downloadFileToDevice, fileNativeCheckFile, getAsyncExtraData, getExtension, getNativeDirectory, getPermissions, getType, isAndroid, isAudio, isCurrentLanguageChinese, isDateBefore, isDocumentDownloadSupported, isDocumentEmailSupported, isFile, isNativeMobile, isOffline, isVideo, isWeb, pipes, showActionSheet, showPdfOnDevice, translate } from '@shared/utils';
3
3
  import { Component, Element, h, Host, Prop, State } from '@stencil/core';
4
4
  import { getAppContext } from '@utils';
5
5
  import { isString } from 'lodash-es';
@@ -50,7 +50,7 @@ export class YooFormDocumentDialogComponent {
50
50
  icon: 'email',
51
51
  iconColor: 'dark-to-light',
52
52
  cssClass: isWeb(this.host) ? 'bg-royal-hover' : 'bg-royal light',
53
- isVisible: () => isDocumentEmailSupported(this.document),
53
+ isVisible: () => isDocumentEmailSupported(this.document) && getPermissions().canShareByEmail,
54
54
  handler: () => {
55
55
  getAsyncExtraData({
56
56
  type: 'email-dialog',
@@ -3101,7 +3101,8 @@ export class YooFormDynamicComponent {
3101
3101
  case FormFieldType.feedback:
3102
3102
  TagType = 'yoo-form-feedback';
3103
3103
  extraAttrs = {
3104
- class: this.appColor
3104
+ class: this.appColor,
3105
+ isReadonly: readonly
3105
3106
  };
3106
3107
  break;
3107
3108
  case FormFieldType.signature:
@@ -63,8 +63,9 @@ export class YooFormFeedbackComponent {
63
63
  });
64
64
  }
65
65
  renderReadonly() {
66
- return h("div", { class: "readonly" }, this.isConfidenceQuiz ? this.renderFormChoice()
67
- : isNumber(this.value) && this.emojis[this.value]);
66
+ return h("div", { class: "readonly" },
67
+ this.isConfidenceQuiz && this.renderFormChoice(),
68
+ !this.isConfidenceQuiz && isNumber(this.value) && this.emojis[this.value - 1]);
68
69
  }
69
70
  renderEditable() {
70
71
  return ([
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { Component, Event, h, Host, Prop } from '@stencil/core';
7
7
  import { setValidator, setValueAndValidateInput } from '@utils';
8
- import { isArray, isEqual, isFinite } from 'lodash-es';
8
+ import { isArray, isEqual, isFinite, isNumber } from 'lodash-es';
9
9
  export class YooFormRangeComponent {
10
10
  constructor() {
11
11
  /**
@@ -82,9 +82,11 @@ export class YooFormRangeComponent {
82
82
  }
83
83
  }
84
84
  renderReadonly() {
85
+ var _a, _b;
85
86
  return (h("div", { class: "readonly" },
86
- h("div", null, this.value ? this.value[0] : null),
87
- h("div", null, this.value && this.isRangeSlider ? this.value[1] : null)));
87
+ h("div", null, isNumber(this.value) ? this.value : null),
88
+ h("div", null, isArray(this.value) && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.value[0] : null),
89
+ h("div", null, isArray(this.value) && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.length) > 1 ? this.value[1] : null)));
88
90
  }
89
91
  renderEditable() {
90
92
  const iterable = this.isRangeSlider ? [1, 2] : [1];