@yoobic/yobi 7.7.95 → 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.
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, f as forceUpdate, h as h$2, H as Host, g as getElement, c as createEvent, a as getAssetPath, d as readTask, w as writeTask } from './index-27314512.js';
2
- import { aJ as eq, u as isArray$1, a4 as isObject$2, as as isFunction$2, aO as baseFindIndex, aL as isSymbol, c6 as arrayReduce, bK as baseSlice, c7 as baseUniq, q as global$1, a1 as compact, bi as dateParse, a8 as isPresent, K as getAsyncExtraData, t as translate, i as isNativeMobile, r as isFile$1, _ as isCloudinaryLink, P as Cloudinary, M as cleanupWKWebViewImagePath, b as isWeb, z as isIphoneX, c as createCommonjsModule, p as getDefaultExportFromCjs, c8 as getWeekDays, ab as dateAdd, F as startOf, aK as endOf, k as isIonic, J as isDateAfter, c9 as resetTime, G as isDateBefore, ca as getYear, a9 as dateFormat, a6 as isSameDate, cb as day$1, aa as dateSub, cc as capitalize, cd as isToday, ce as isSameMonth, cf as isDateSameOrAfter, cg as isDateSameOrBefore, af as showActionSheet, a as isOffline, Y as translateMulti, a3 as isNullOrUndefined, j as getSession, $ as parseMarkDown, ch as removeTextStyle, bo as closeModal, b9 as isFirefox$2, bd as isDarkTheme, bh as isChromatic, T as gsapTo, S as isFinite$1, ci as FileSaver_min, w as debounce$1, cj as highcharts, ck as getMonths, a7 as dateIsValid, bX as showContextMenu, Z as gsapFromTo, l as isAndroid$1, b1 as showAlert, Q as isAnimationsDisabled, y as findParent, s as showModal, n as getModalAnimation, cl as showScanner, bL as getAugmentedNamespace, d as commonjsGlobal, m as isIOS$2, b6 as enableKeyboardResize, b7 as disableKeyboardResize, ac as Plugins, f as cordova, I as IonicNativePlugin, cm as is24Hour, E as getCssColor, V as getCurrentLanguage, b_ as getHours, b$ as getMinutes, c0 as setDateHours, c1 as setDateMinutes, bZ as getDialogPosition, C as isFullScreenFalse, cn as isCurrentLanguageChinese, aq as dispatchCustomEvent, an as showToast, b5 as isKeyboardResizeModeInactive, br as requestInterval, b8 as isSafari$3, co as isChromeForIos, bt as cancelRequestInterval, bs as getFormattedCountDownToDisplay, cp as guessCurrentTimezone, cq as TIMEZONES, cr as setDateSeconds, cs as setDateMilliseconds, ct as roundToNearestMinutes, cu as getRoundedMinutes, cv as HorizontalSlidesAnimation, cw as changeHexOpacity, b4 as MONGODB_ID_REGEX, aC as getAuthentication, ba as isForceScrollbar, cx as DashboardGsapAnimation, cy as fadeFromBottom, cz as fadeFromTop, aZ as getContrastColor, W as gsapTimeline, cA as getTransformInfos, bb as setStatusBarDarkMode, cB as convertSvgToBase64, U as Draggable, R as scaleUpAnimation, bB as gsapSet, A as isIpadPro, aW as isIpad, B as isTablet, cC as componentOnReady } from './rrule-5a2de9bb.js';
2
+ import { aJ as eq, u as isArray$1, a4 as isObject$2, as as isFunction$2, aO as baseFindIndex, aL as isSymbol, c6 as arrayReduce, bK as baseSlice, c7 as baseUniq, q as global$1, a1 as compact, bi as dateParse, a8 as isPresent, K as getAsyncExtraData, t as translate, i as isNativeMobile, r as isFile$1, _ as isCloudinaryLink, P as Cloudinary, M as cleanupWKWebViewImagePath, b as isWeb, z as isIphoneX, c as createCommonjsModule, p as getDefaultExportFromCjs, c8 as getWeekDays, ab as dateAdd, F as startOf, aK as endOf, k as isIonic, J as isDateAfter, c9 as resetTime, G as isDateBefore, ca as getYear, a9 as dateFormat, a6 as isSameDate, cb as day$1, aa as dateSub, cc as capitalize, cd as isToday, ce as isSameMonth, cf as isDateSameOrAfter, cg as isDateSameOrBefore, af as showActionSheet, a as isOffline, Y as translateMulti, a3 as isNullOrUndefined, j as getSession, $ as parseMarkDown, ch as removeTextStyle, bo as closeModal, b9 as isFirefox$2, bd as isDarkTheme, bh as isChromatic, T as gsapTo, S as isFinite$1, ci as FileSaver_min, w as debounce$1, cj as highcharts, ck as getMonths, a7 as dateIsValid, bX as showContextMenu, Z as gsapFromTo, l as isAndroid$1, b1 as showAlert, Q as isAnimationsDisabled, y as findParent, s as showModal, n as getModalAnimation, cl as showScanner, bL as getAugmentedNamespace, d as commonjsGlobal, m as isIOS$2, b6 as enableKeyboardResize, b7 as disableKeyboardResize, ac as Plugins, f as cordova, I as IonicNativePlugin, cm as is24Hour, E as getCssColor, V as getCurrentLanguage, b_ as getHours, b$ as getMinutes, c0 as setDateHours, c1 as setDateMinutes, bZ as getDialogPosition, C as isFullScreenFalse, at as getPermissions, cn as isCurrentLanguageChinese, aq as dispatchCustomEvent, an as showToast, b5 as isKeyboardResizeModeInactive, br as requestInterval, b8 as isSafari$3, co as isChromeForIos, bt as cancelRequestInterval, bs as getFormattedCountDownToDisplay, cp as guessCurrentTimezone, cq as TIMEZONES, cr as setDateSeconds, cs as setDateMilliseconds, ct as roundToNearestMinutes, cu as getRoundedMinutes, cv as HorizontalSlidesAnimation, cw as changeHexOpacity, b4 as MONGODB_ID_REGEX, aC as getAuthentication, ba as isForceScrollbar, cx as DashboardGsapAnimation, cy as fadeFromBottom, cz as fadeFromTop, aZ as getContrastColor, W as gsapTimeline, cA as getTransformInfos, bb as setStatusBarDarkMode, cB as convertSvgToBase64, U as Draggable, R as scaleUpAnimation, bB as gsapSet, A as isIpadPro, aW as isIpad, B as isTablet, cC as componentOnReady } from './rrule-5a2de9bb.js';
3
3
  import { E as EventType, x as TLessonState, F as FormFieldType, a as IncentivePartType, y as FormFilterAutocompleteOperator, W as WaitlistAPIDateFormat } from './input-bar.interface-4e956599.js';
4
4
  import { i as isLessonCompleted, c as canBeRetried, S as ScreenOrientation } from './ResizeObserver.es-a8772c31.js';
5
5
  import { f as getAppContext, l as loadScript, z as querySelectorDeep, B as setAnimation, e as execHandlerAndStopEvent, s as showPhotoEditor, q as setColorSVG, E as EMPTYSTATE_MAP, y as querySelectorAllDeep, i as lockSwipes, k as getActiveElementShadow, o as hideShowTabbar, u as sanitizeHTML, n as hideShowSearchBar, h as getNextValueInArray, D as EMPTYSTATE_TEXT_MAP, F as EMPTYSTATE_TITLE_MAP, p as filterDuplicateItems, C as animations, A as cloudinary, m as lifecycleEvents } from './common-helpers-f3296dd7.js';
@@ -123453,7 +123453,7 @@ const YooFormDocumentDialogComponent = class {
123453
123453
  icon: 'email',
123454
123454
  iconColor: 'dark-to-light',
123455
123455
  cssClass: isWeb(this.host) ? 'bg-royal-hover' : 'bg-royal light',
123456
- isVisible: () => isDocumentEmailSupported(this.document),
123456
+ isVisible: () => isDocumentEmailSupported(this.document) && getPermissions().canShareByEmail,
123457
123457
  handler: () => {
123458
123458
  getAsyncExtraData({
123459
123459
  type: 'email-dialog',
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement, c as createEvent, H as Host, a as getAssetPath, f as forceUpdate } from './index-27314512.js';
2
- import { E as getCssColor, t as translate, b as isWeb, y as findParent, a3 as isNullOrUndefined, bo as closeModal, j as getSession, K as getAsyncExtraData, bX as showContextMenu, af as showActionSheet, i as isNativeMobile, bh as isChromatic, _ as isCloudinaryLink, u as isArray, w as debounce, c4 as getAppType, m as isIOS, c as createCommonjsModule, k as isIonic, c5 as isElementClicked } from './rrule-5a2de9bb.js';
2
+ import { E as getCssColor, t as translate, b as isWeb, y as findParent, a3 as isNullOrUndefined, bo as closeModal, j as getSession, at as getPermissions, K as getAsyncExtraData, bX as showContextMenu, af as showActionSheet, i as isNativeMobile, bh as isChromatic, _ as isCloudinaryLink, u as isArray, w as debounce, c4 as getAppType, m as isIOS, c as createCommonjsModule, k as isIonic, c5 as isElementClicked } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
4
  import { n as downloadFile } from './index-7a08441e.js';
5
5
  import './ResizeObserver.es-a8772c31.js';
@@ -299,7 +299,7 @@ const YooFormCarouselComponent = class {
299
299
  text: translate('EMAIL'),
300
300
  icon: 'email',
301
301
  color: 'dark',
302
- isVisible: () => { var _a; return !!item && !((_a = getSession()) === null || _a === void 0 ? void 0 : _a.isExternal); },
302
+ isVisible: () => { var _a; return !!item && !((_a = getSession()) === null || _a === void 0 ? void 0 : _a.isExternal) && getPermissions().canShareByEmail; },
303
303
  handler: () => {
304
304
  const filename = (item === null || item === void 0 ? void 0 : item._filename) || new Date().getTime().toString();
305
305
  getAsyncExtraData({
@@ -30,5 +30,5 @@ export declare class IConditionalField extends IEntity {
30
30
  export declare type ConditionType = 'field' | 'tags' | 'groups';
31
31
  export declare type ConditionOperator = 'notequals' | 'equals' | 'in' | 'notin' | 'greaterthan' | 'lessthan' | 'between';
32
32
  export declare type ConditionValue = 'fieldvalue' | 'truefalse' | 'string' | 'number' | 'date' | 'time' | 'datetime';
33
- export declare type TROLE = 'aisle' | 'academy' | 'academyplus' | 'admin' | 'anonymous' | 'appcreator' | 'archiver' | 'bi' | 'bluetooth' | 'boost_admin' | 'boost_ai' | 'boost_battle' | 'boost_calendar' | 'boost_collaboration' | 'boost_incentive' | 'boost_knowledgebase' | 'boost_manager' | 'boost_microlearning' | 'boost_yext' | 'calendaruser' | 'campaigntodo' | 'clientadmin' | 'creator' | 'dashboard' | 'dataset' | 'documentsuser' | 'eventcreator' | 'followup' | 'followupnouser' | 'healthscore' | 'homestoreinsights' | 'imagereco' | 'instagram' | 'inventory' | 'kiosk' | 'liveshopping' | 'liveshoppingmanager' | 'livevideo' | 'manager' | 'missionanalysis' | 'missionassign' | 'missionviewer' | 'newscreator' | 'newsfeeduser' | 'newspublisher' | 'newsuser' | 'nochat' | 'nogroupchat' | 'nodirectchat' | 'noleaderboard' | 'nopublicevent' | 'pharmaone' | 'polluser' | 'pricecheck' | 'project' | 'projecteditor' | 'productbatch' | 'profilenoedit' | 'quora' | 'retailnext' | 'salesai' | 'scandit' | 'scheduler' | 'score' | 'scorm' | 'service' | 'serviceuser' | 'socialsharing' | 'sso' | 'stat' | 'statservice' | 'store' | 'storeinsights' | 'superadmin' | 'supervisor' | 'taskassign' | 'taskcreator' | 'taskuser' | 'team' | 'teamplus' | 'todo' | 'todolocation' | 'trial' | 'videocall' | 'visit' | 'visitmanager' | 'viewstat' | 'waitlist' | 'waitliststat' | 'virtualshopping' | 'virtualshoppingstat' | 'yoobic' | 'workflow' | 'workplace' | 'doccreator';
33
+ export declare type TROLE = 'aisle' | 'academy' | 'academyplus' | 'admin' | 'anonymous' | 'appcreator' | 'archiver' | 'bi' | 'bluetooth' | 'boost_admin' | 'boost_ai' | 'boost_battle' | 'boost_calendar' | 'boost_collaboration' | 'boost_incentive' | 'boost_knowledgebase' | 'boost_manager' | 'boost_microlearning' | 'boost_yext' | 'calendaruser' | 'campaigntodo' | 'clientadmin' | 'creator' | 'dashboard' | 'dataset' | 'documentsuser' | 'eventcreator' | 'followup' | 'followupnouser' | 'healthscore' | 'homestoreinsights' | 'imagereco' | 'instagram' | 'inventory' | 'kiosk' | 'liveshopping' | 'liveshoppingmanager' | 'livevideo' | 'manager' | 'missionanalysis' | 'missionassign' | 'missionviewer' | 'newscreator' | 'newsfeeduser' | 'newspublisher' | 'newsuser' | 'nochat' | 'nosharebyemail' | 'nogroupchat' | 'nodirectchat' | 'noleaderboard' | 'nopublicevent' | 'pharmaone' | 'polluser' | 'pricecheck' | 'project' | 'projecteditor' | 'productbatch' | 'profilenoedit' | 'quora' | 'retailnext' | 'salesai' | 'scandit' | 'scheduler' | 'score' | 'scorm' | 'service' | 'serviceuser' | 'socialsharing' | 'sso' | 'stat' | 'statservice' | 'store' | 'storeinsights' | 'superadmin' | 'supervisor' | 'taskassign' | 'taskcreator' | 'taskuser' | 'team' | 'teamplus' | 'todo' | 'todolocation' | 'trial' | 'videocall' | 'visit' | 'visitmanager' | 'viewstat' | 'waitlist' | 'waitliststat' | 'virtualshopping' | 'virtualshoppingstat' | 'yoobic' | 'workflow' | 'workplace' | 'doccreator';
34
34
  export declare const ROLES: TROLE[];
@@ -30,6 +30,7 @@ export interface IAppPermissions {
30
30
  canVideoCall?: boolean;
31
31
  canCreateFeed?: boolean;
32
32
  canCreateFeedNoValidation?: boolean;
33
+ canShareByEmail?: boolean;
33
34
  canViewDocuments?: boolean;
34
35
  canViewStoreVisits?: boolean;
35
36
  canViewFeed?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "7.7.95",
3
+ "version": "7.7.96",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",