@yoobic/yobi 7.7.97 → 7.7.101
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.
- package/dist/cjs/{grid-renderers-dacdc474.js → grid-renderers-9452d5e4.js} +31 -4
- package/dist/cjs/{image-helpers-ea15b526.js → image-helpers-3385fd6f.js} +2 -2
- package/dist/cjs/{index-541062cd.js → index-621e23cc.js} +11 -3
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/yoo-action-sheet-controller_15.cjs.entry.js +1 -1
- package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +2 -2
- package/dist/cjs/yoo-avatar_5.cjs.entry.js +1 -1
- package/dist/cjs/yoo-card-header.cjs.entry.js +1 -1
- package/dist/cjs/yoo-card-list-image_12.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-choice_4.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-creator-block-expandable.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-creator-block-simple_4.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-creator-card_2.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-creator-field-selector_8.cjs.entry.js +5 -4
- package/dist/cjs/yoo-form-creator-translate-dialog.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-creator.cjs.entry.js +18 -20
- package/dist/cjs/yoo-form-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/yoo-gridstack.cjs.entry.js +17 -2
- package/dist/cjs/yoo-mission-detail.cjs.entry.js +8 -2
- package/dist/cjs/yoo-mission-results.cjs.entry.js +1 -1
- package/dist/cjs/yoo-podium.cjs.entry.js +1 -1
- package/dist/cjs/yoo-walkthrough.cjs.entry.js +1 -1
- package/dist/collection/components/app-operations/mission-detail/mission-detail.js +15 -0
- package/dist/collection/components/app-operations/mission-results/mission-results.js +1 -1
- package/dist/collection/components/form/form-text-editor/form-text-editor.js +1 -1
- package/dist/collection/components/form-creator/form-creator/form-creator.js +9 -11
- package/dist/collection/components/form-creator/form-creator-page-card-list/form-creator-page-card-list.js +1 -1
- package/dist/collection/components/form-creator/helpers/index.js +11 -3
- package/dist/collection/components/form-creator/workflow/workflow.js +4 -3
- package/dist/collection/components/grid/ag-grid/grid-renderers.js +31 -4
- package/dist/collection/components/grid/gridstack/gridstack.js +18 -3
- package/dist/collection/utils/helpers/image-helpers.js +2 -2
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-d74f2bbf.entry.js → p-09036a09.entry.js} +1 -1
- package/dist/design-system/{p-83aa89ad.entry.js → p-0cd448c7.entry.js} +1 -1
- package/dist/design-system/{p-c5e4eec8.entry.js → p-202031a2.entry.js} +1 -1
- package/dist/design-system/p-2752aa83.js +1 -0
- package/dist/design-system/{p-e70980f6.entry.js → p-2d017575.entry.js} +1 -1
- package/dist/design-system/{p-5c6ef130.js → p-349cb8cd.js} +1 -1
- package/dist/design-system/{p-02385015.entry.js → p-3d5d0597.entry.js} +1 -1
- package/dist/design-system/{p-7fcd0596.entry.js → p-405c25ba.entry.js} +1 -1
- package/dist/design-system/{p-eb421ff4.entry.js → p-44b19de9.entry.js} +1 -1
- package/dist/design-system/{p-af4cfea4.entry.js → p-4ae66a1f.entry.js} +1 -1
- package/dist/design-system/p-55d4560c.entry.js +1 -0
- package/dist/design-system/p-6bc1375d.entry.js +1 -0
- package/dist/design-system/{p-1f8cfec7.entry.js → p-80aded97.entry.js} +1 -1
- package/dist/design-system/{p-332efa96.entry.js → p-9ed3a063.entry.js} +1 -1
- package/dist/design-system/p-a09b181a.entry.js +1 -0
- package/dist/design-system/p-be2ae101.entry.js +1 -0
- package/dist/design-system/p-c4bffb13.js +1 -0
- package/dist/design-system/{p-cb9c30a3.entry.js → p-c4f7294a.entry.js} +1 -1
- package/dist/design-system/{p-6470e707.entry.js → p-cf343c67.entry.js} +1 -1
- package/dist/design-system/{p-59f99c7c.entry.js → p-e97d2029.entry.js} +1 -1
- package/dist/design-system/{p-4ef0efa6.entry.js → p-f9526dad.entry.js} +1 -1
- package/dist/esm/{grid-renderers-f81f061f.js → grid-renderers-0cd64b5f.js} +31 -4
- package/dist/esm/{image-helpers-6b281c05.js → image-helpers-2f8f9d5d.js} +2 -2
- package/dist/esm/{index-70924cfc.js → index-350d88b9.js} +11 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/yoo-action-sheet-controller_15.entry.js +1 -1
- package/dist/esm/yoo-ag-grid_96.entry.js +2 -2
- package/dist/esm/yoo-avatar_5.entry.js +1 -1
- package/dist/esm/yoo-card-header.entry.js +1 -1
- package/dist/esm/yoo-card-list-image_12.entry.js +2 -2
- package/dist/esm/yoo-form-choice_4.entry.js +1 -1
- package/dist/esm/yoo-form-creator-block-expandable.entry.js +1 -1
- package/dist/esm/yoo-form-creator-block-simple_4.entry.js +2 -2
- package/dist/esm/yoo-form-creator-card_2.entry.js +1 -1
- package/dist/esm/yoo-form-creator-field-selector_8.entry.js +5 -4
- package/dist/esm/yoo-form-creator-translate-dialog.entry.js +1 -1
- package/dist/esm/yoo-form-creator.entry.js +10 -12
- package/dist/esm/yoo-form-text-editor.entry.js +1 -1
- package/dist/esm/yoo-gridstack.entry.js +17 -2
- package/dist/esm/yoo-mission-detail.entry.js +8 -2
- package/dist/esm/yoo-mission-results.entry.js +1 -1
- package/dist/esm/yoo-podium.entry.js +1 -1
- package/dist/esm/yoo-walkthrough.entry.js +1 -1
- package/dist/types/components/app-operations/mission-detail/mission-detail.d.ts +1 -0
- package/dist/types/components/form-creator/helpers/index.d.ts +4 -1
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/form-field/form-field.interface.d.ts +2 -1
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/mission/mission.interface.d.ts +1 -1
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/workflow/workflow.interface.d.ts +1 -0
- package/package.json +1 -1
- package/dist/design-system/p-03dbb1fa.entry.js +0 -1
- package/dist/design-system/p-486e9464.js +0 -1
- package/dist/design-system/p-67582664.entry.js +0 -1
- package/dist/design-system/p-6871e6b7.entry.js +0 -1
- package/dist/design-system/p-6cfa75b3.js +0 -1
- package/dist/design-system/p-c047c9ba.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
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"./p-c26cc6ff.js";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"./p-a966475f.js";import{E as EventType,x as TLessonState,F as FormFieldType,a as IncentivePartType,y as FormFilterAutocompleteOperator,W as WaitlistAPIDateFormat}from"./p-4d956bd4.js";import{i as isLessonCompleted,c as canBeRetried,S as ScreenOrientation}from"./p-b5241164.js";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"./p-33b2d3a2.js";import{a as getKeyTemplate,p as progressValue,v as validationProgressValue,c as conformityProgressValue,b as conformityRelativeProgressValue,g as getRenderer}from"./p-6cfa75b3.js";import{i as identity$4}from"./p-ba705441.js";import{i as isNumber$1}from"./p-0bb947fc.js";import{j as baseSum,a as isRequired,g as getTypeValidation,b as isReadonly,s as setFieldData,u as updateFormulas,e as getDynamicProperty,c as isDisabled,d as generateLabel,i as isCreationAllowed}from"./p-bf6acbfe.js";import{k as keys$1}from"./p-b5ba03fd.js";import{i as isIterateeCall,s as sortBy}from"./p-55a739af.js";import{a as baseFor,b as baseEach}from"./p-cfca4271.js";import{b as baseIteratee}from"./p-e1378940.js";import{c as cloneDeep}from"./p-a7d0e964.js";import{g as get$1}from"./p-179b66ff.js";import{i as isPlainObject$1,o as omit}from"./p-fdde98c5.js";import{i as isString$1}from"./p-ca8f9900.js";import{h as hasSameMarkers,g as generateFilterGroups,l as layersFromKeys,s as showDirectionsActionSheet,c as isWebGLSupported,b as getMapCSSClasses,i as isMarkersLayer,a as isSelectedMarkersLayer}from"./p-592eb8f1.js";import{c as changeExtension,g as getUUID,f as isMedia,n as downloadFile,i as isGif,w as getDownloadAction,C as isDocumentDownloadSupported,s as showDocumentDownloadOptions,b as isBase64,D as openBase64File,t as toPng,d as getIconName,e as getIconColor,E as isDocumentEmailSupported,F as showPdfOnDevice,G as getNativeDirectory,H as fileNativeCheckFile,I as downloadFileToDevice,J as urlToBlob,y as getVideoPoster}from"./p-e37ba040.js";import{a as getFromOfflineStorage,g as getFromLocalForage,b as getKeyToCache}from"./p-c193b6bd.js";import{g as getUserDisplayName,r as replaceAtTagToMentionTag,k as hasAttachment,c as capitalizeFirstLetter$1}from"./p-9430559f.js";import{p as pipes}from"./p-cf2b3a56.js";import{a as getPlanDueDate,h as getPlanStartDate,i as isPlanInFuture,j as isPlanRatingEnabled,s as showRatingDialog,b as isContentOnly,g as getLessonTypeIcon,f as isQuiz,k as isTimedQuiz,l as isConfidenceAssesment}from"./p-14b605c0.js";import{k as isFieldWithNoValue,b as getFieldValue,s as slenderizeObject,q as isVisible$1,r as hasValue,u as updateDatasetFilters,o as answerIsValid,c as getFieldReplacement,e as evalInContext}from"./p-cbb53f3f.js";import{r as replaceAllLinks,c as containsUrls,a as replaceAndGetAllLinks,g as getURLs,i as isDeeplink}from"./p-8c8163b6.js";import{i as isIntersectionObserverSupported,a as intersectionObserve,r as resizeObserve}from"./p-b721594f.js";import{g as getButton}from"./p-85292647.js";import{i as isEmpty}from"./p-1901b669.js";import{t as toggleElementTapped,a as addTapped,r as removeTapped}from"./p-ab504cff.js";import{a as isVideo,i as isImage$1,d as getType,e as isDocument,g as getExtension,b as isAudio}from"./p-9229f5bb.js";import{S as Stack}from"./p-43f71ef3.js";import{b as baseAssignValue}from"./p-01267bd9.js";import{c as copyObject,k as keysIn,e as cloneBuffer,f as cloneTypedArray,i as initCloneObject}from"./p-c06335c1.js";import{c as copyArray}from"./p-773567d1.js";import{a as isArguments}from"./p-56bcc009.js";import{i as isArrayLikeObject}from"./p-3c4a6a3e.js";import{i as isBuffer,a as isTypedArray}from"./p-baaa30cf.js";import{c as createAssigner,a as assign$2}from"./p-68b0b75c.js";import{f as filterIsAutocomplete,a as filterIsAutocompleteLocal,d as filterIsBoolean,g as filterIsDate,e as filterIsText,h as filterIsNumber,b as filterFromFormField,k as filterRenderFormDynamic,j as filterCleanupNewField,i as isKanbanColumnField,m as isEndSide,c as createGesture,l as getScanditKey}from"./p-307e9313.js";import{f as findIndex$1}from"./p-89291910.js";import{f as flatten$1}from"./p-9d229751.js";import{d as debounce$2}from"./p-2a56c2b1.js";import{s as setValidator,b as setValueAndValidateInput,v as validate,d as convertValueForInputType,g as getTimeDisplayValue,c as blurActiveElement,e as formatMinMaxDate,l as onInputFocused,o as onInputClear,m as onInputBlurred,a as setValueAndResetInputValidity,t as taskStyle,f as focusContentEditable}from"./p-432e8458.js";import{i as isEqual$1}from"./p-cfdeea96.js";import{d as difference}from"./p-27e57020.js";import{g as getElementDimensions}from"./p-f5d0d8f6.js";import{T as TodoListMode,I as ItemSlidingType}from"./p-6dbac5f2.js";import{d as isPhotoOrMultiPhotosField,e as isListField,f as filterListByText,g as isMapField,a as isDateTimeField}from"./p-c5efae11.js";import{f as findField}from"./p-9a039ee7.js";import{h as getMissionStatusIconName,d as getMissionColor}from"./p-3e96a3ac.js";import{c as castPath,t as toKey}from"./p-12bedee1.js";import{t as toInteger}from"./p-935fbfac.js";import{o as orderBy}from"./p-4ae61297.js";import{g as groupBy}from"./p-1a312ea2.js";import{t as toFinite}from"./p-2043b4c7.js";import{p as pick}from"./p-b203af53.js";import{t as toButton}from"./p-967f6f1d.js";import{a as getNextRecurrences}from"./p-1e926c86.js";import{r as remove}from"./p-e22f108e.js";import{d as getInsertElementProp,s as safeInsert,r as restoreCursorPosition,f as fixParagraphRandomEl,b as safeReplaceElement,i as isMentionTag,c as getTagHTML,a as safeInsertElements}from"./p-19a574ce.js";import{T as TapticEngine}from"./p-220d0a85.js";import{S as Sortable}from"./p-12797a88.js";import{m as map$1}from"./p-10b2bb56.js";import{i as isBoolean}from"./p-c412a16f.js";import{c as createThemedClasses,a as createColorClasses,h as hostContext}from"./p-73e396c8.js";import{c as getFormattedImageURL,g as getImageSize$1,a as getResizedImageSize,b as getImageScaleFactor}from"./p-486e9464.js";import{a as isAnnotationDeleted,b as isAnnotationValid,g as getElement$1,c as isAnnotationFocused,i as isAnnotationEmpty,k as isElementInsideContainer,d as getPointerCoordinates}from"./p-9de400aa.js";import{o as getDefaultAnnotationTextColor,f as saveTooltipContent,p as getAnnotationStyle,B as BUTTONS_CONFIG,A as ANIMATION_DELAY,q as getBoundingClient,t as isCanvasBlank,M as MENU_ITEMS,j as getDotToolTipElement,k as getDotInnerElement,S as SLIDER_THRESHOLD,L as LOADING_DELAY,u as prepareAnnotationsData,l as setDotIndexes,v as focusAnnotation,w as getAnnotationDraggableBounds,x as getFormattedAnnotationSize,y as getAbsoluteCenter,z as getRelativeCenter,C as showPredefinedTextsDialog,c as createDot,D as DOT_RADIUS,E as updateAnnotationLocal,F as createBaseAnnotation,G as removeLocalsFromAnnotations,H as EEditorActions,s as showDotTooltip,I as formatAnnotationsForExport,h as hideAllDotTooltips,J as deCenterAnnotation,n as getAnnotation,K as INIT_COORDS,N as setAnnotationPositionToClosestEdge}from"./p-e9993e20.js";import{i as inRange}from"./p-6b61583e.js";import{s as setupHammer,h as hammerTypes,b as isBottomSwipe,i as isTopSwipe,c as isRightSwipe,d as isLeftSwipe,a as hammerDirections}from"./p-ca6c9677.js";import{p as present,d as dismiss}from"./p-c00c8cdd.js";import{e as eventMethod}from"./p-3785b9cc.js";import{v as videoPlayerStates}from"./p-efc2ac49.js";import"./p-bd19a341.js";import"./p-90a6a15b.js";import"./p-25c4db8a.js";import"./p-5450cf9b.js";import"./p-dd576b82.js";import"./p-d7e73bcb.js";import"./p-f9649bd9.js";import"./p-a1142cd3.js";import"./p-bdb9f4f1.js";import"./p-3fc615dd.js";import"./p-5ebbcf89.js";import"./p-49399b44.js";import"./p-c5108113.js";import"./p-e3093327.js";import"./p-b9ad79f8.js";import"./p-1dbbf3a2.js";import"./p-4b1fdfbb.js";import"./p-affcd66d.js";import"./p-e0d6fbed.js";import"./p-0dae56e6.js";import"./p-b4aad66a.js";import"./p-c3ec533d.js";import"./p-6348f445.js";import"./p-537db159.js";function assignMergeValue(t,e,o){(void 0!==o&&!eq(t[e],o)||void 0===o&&!(e in t))&&baseAssignValue(t,e,o)}function safeGet(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function toPlainObject(t){return copyObject(t,keysIn(t))}function baseMergeDeep(t,e,o,r,a,i,n){var s=safeGet(t,o),l=safeGet(e,o),c=n.get(l);if(c)assignMergeValue(t,o,c);else{var p=i?i(s,l,o+"",t,e,n):void 0,d=void 0===p;if(d){var h=isArray$1(l),f=!h&&isBuffer(l),u=!h&&!f&&isTypedArray(l);p=l,h||f||u?isArray$1(s)?p=s:isArrayLikeObject(s)?p=copyArray(s):f?(d=!1,p=cloneBuffer(l,!0)):u?(d=!1,p=cloneTypedArray(l,!0)):p=[]:isPlainObject$1(l)||isArguments(l)?(p=s,isArguments(s)?p=toPlainObject(s):isObject$2(s)&&!isFunction$2(s)||(p=initCloneObject(l))):d=!1}d&&(n.set(l,p),a(p,l,r,i,n),n.delete(l)),assignMergeValue(t,o,p)}}function baseMerge(t,e,o,r,a){t!==e&&baseFor(e,(function(i,n){if(a||(a=new Stack),isObject$2(i))baseMergeDeep(t,e,n,o,baseMerge,r,a);else{var s=r?r(safeGet(t,n),i,n+"",t,e,a):void 0;void 0===s&&(s=i),assignMergeValue(t,n,s)}}),keysIn)}var nativeMax$1=Math.max,nativeMin=Math.min;function findLastIndex(t,e,o){var r=null==t?0:t.length;if(!r)return-1;var a=r-1;return void 0!==o&&(a=toInteger(o),a=o<0?nativeMax$1(r+a,0):nativeMin(a,r-1)),baseFindIndex(t,baseIteratee(e),a,!0)}function baseGt(t,e){return t>e}function baseLt(t,e){return t<e}function baseExtremum(t,e,o){for(var r=-1,a=t.length;++r<a;){var i=t[r],n=e(i);if(null!=n&&(void 0===s?n==n&&!isSymbol(n):o(n,s)))var s=n,l=i}return l}function max(t){return t&&t.length?baseExtremum(t,identity$4,baseGt):void 0}var merge$1=createAssigner((function(t,e,o){baseMerge(t,e,o)}));function min(t){return t&&t.length?baseExtremum(t,identity$4,baseLt):void 0}var nativeCeil=Math.ceil,nativeMax=Math.max;function baseRange(t,e,o,r){for(var a=-1,i=nativeMax(nativeCeil((e-t)/(o||1)),0),n=Array(i);i--;)n[r?i:++a]=t,t+=o;return n}function createRange(t){return function(e,o,r){return r&&"number"!=typeof r&&isIterateeCall(e,o,r)&&(o=r=void 0),e=toFinite(e),void 0===o?(o=e,e=0):o=toFinite(o),baseRange(e,o,r=void 0===r?e<o?1:-1:toFinite(r),t)}}var range$1=createRange();function baseReduce(t,e,o,r,a){return a(t,(function(t,a,i){o=r?(r=!1,t):e(o,t,a,i)})),o}function reduce$1(t,e,o){var r=isArray$1(t)?arrayReduce:baseReduce,a=arguments.length<3;return r(t,baseIteratee(e),o,a,baseEach)}function result$2(t,e,o){var r=-1,a=(e=castPath(e,t)).length;for(a||(a=1,t=void 0);++r<a;){var i=null==t?void 0:t[toKey(e[r])];void 0===i&&(r=a,i=o),t=isFunction$2(i)?i.call(t):i}return t}function sum$1(t){return t&&t.length?baseSum(t,identity$4):0}function take(t,e,o){return t&&t.length?(e=o||void 0===e?1:toInteger(e),baseSlice(t,0,e<0?0:e)):[]}function uniqBy(t,e){return t&&t.length?baseUniq(t,baseIteratee(e)):[]}function getDistance(t,e,o,r,a="K"){const i=Math.PI*t/180,n=Math.PI*o/180,s=Math.PI*(e-r)/180;let l=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos(s);return l=Math.acos(l),l=180*l/Math.PI,l=60*l*1.1515,"K"===a&&(l*=1.609344),"N"===a&&(l*=.8684),l}function shiftSlidesToNext(t,e,o=1){const r=[...e];for(;t>o;)t--,r.push(r[r.length-1]+1),r.shift();return r}function shiftSlidesToPrevious(t,e,o=1){const r=[...e];for(;t<o;)t++,r.unshift(r[0]-1),r.pop();return r}
|
|
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"./p-c26cc6ff.js";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"./p-a966475f.js";import{E as EventType,x as TLessonState,F as FormFieldType,a as IncentivePartType,y as FormFilterAutocompleteOperator,W as WaitlistAPIDateFormat}from"./p-4d956bd4.js";import{i as isLessonCompleted,c as canBeRetried,S as ScreenOrientation}from"./p-b5241164.js";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"./p-33b2d3a2.js";import{a as getKeyTemplate,p as progressValue,v as validationProgressValue,c as conformityProgressValue,b as conformityRelativeProgressValue,g as getRenderer}from"./p-c4bffb13.js";import{i as identity$4}from"./p-ba705441.js";import{i as isNumber$1}from"./p-0bb947fc.js";import{j as baseSum,a as isRequired,g as getTypeValidation,b as isReadonly,s as setFieldData,u as updateFormulas,e as getDynamicProperty,c as isDisabled,d as generateLabel,i as isCreationAllowed}from"./p-bf6acbfe.js";import{k as keys$1}from"./p-b5ba03fd.js";import{i as isIterateeCall,s as sortBy}from"./p-55a739af.js";import{a as baseFor,b as baseEach}from"./p-cfca4271.js";import{b as baseIteratee}from"./p-e1378940.js";import{c as cloneDeep}from"./p-a7d0e964.js";import{g as get$1}from"./p-179b66ff.js";import{i as isPlainObject$1,o as omit}from"./p-fdde98c5.js";import{i as isString$1}from"./p-ca8f9900.js";import{h as hasSameMarkers,g as generateFilterGroups,l as layersFromKeys,s as showDirectionsActionSheet,c as isWebGLSupported,b as getMapCSSClasses,i as isMarkersLayer,a as isSelectedMarkersLayer}from"./p-592eb8f1.js";import{c as changeExtension,g as getUUID,f as isMedia,n as downloadFile,i as isGif,w as getDownloadAction,C as isDocumentDownloadSupported,s as showDocumentDownloadOptions,b as isBase64,D as openBase64File,t as toPng,d as getIconName,e as getIconColor,E as isDocumentEmailSupported,F as showPdfOnDevice,G as getNativeDirectory,H as fileNativeCheckFile,I as downloadFileToDevice,J as urlToBlob,y as getVideoPoster}from"./p-e37ba040.js";import{a as getFromOfflineStorage,g as getFromLocalForage,b as getKeyToCache}from"./p-c193b6bd.js";import{g as getUserDisplayName,r as replaceAtTagToMentionTag,k as hasAttachment,c as capitalizeFirstLetter$1}from"./p-9430559f.js";import{p as pipes}from"./p-cf2b3a56.js";import{a as getPlanDueDate,h as getPlanStartDate,i as isPlanInFuture,j as isPlanRatingEnabled,s as showRatingDialog,b as isContentOnly,g as getLessonTypeIcon,f as isQuiz,k as isTimedQuiz,l as isConfidenceAssesment}from"./p-14b605c0.js";import{k as isFieldWithNoValue,b as getFieldValue,s as slenderizeObject,q as isVisible$1,r as hasValue,u as updateDatasetFilters,o as answerIsValid,c as getFieldReplacement,e as evalInContext}from"./p-cbb53f3f.js";import{r as replaceAllLinks,c as containsUrls,a as replaceAndGetAllLinks,g as getURLs,i as isDeeplink}from"./p-8c8163b6.js";import{i as isIntersectionObserverSupported,a as intersectionObserve,r as resizeObserve}from"./p-b721594f.js";import{g as getButton}from"./p-85292647.js";import{i as isEmpty}from"./p-1901b669.js";import{t as toggleElementTapped,a as addTapped,r as removeTapped}from"./p-ab504cff.js";import{a as isVideo,i as isImage$1,d as getType,e as isDocument,g as getExtension,b as isAudio}from"./p-9229f5bb.js";import{S as Stack}from"./p-43f71ef3.js";import{b as baseAssignValue}from"./p-01267bd9.js";import{c as copyObject,k as keysIn,e as cloneBuffer,f as cloneTypedArray,i as initCloneObject}from"./p-c06335c1.js";import{c as copyArray}from"./p-773567d1.js";import{a as isArguments}from"./p-56bcc009.js";import{i as isArrayLikeObject}from"./p-3c4a6a3e.js";import{i as isBuffer,a as isTypedArray}from"./p-baaa30cf.js";import{c as createAssigner,a as assign$2}from"./p-68b0b75c.js";import{f as filterIsAutocomplete,a as filterIsAutocompleteLocal,d as filterIsBoolean,g as filterIsDate,e as filterIsText,h as filterIsNumber,b as filterFromFormField,k as filterRenderFormDynamic,j as filterCleanupNewField,i as isKanbanColumnField,m as isEndSide,c as createGesture,l as getScanditKey}from"./p-307e9313.js";import{f as findIndex$1}from"./p-89291910.js";import{f as flatten$1}from"./p-9d229751.js";import{d as debounce$2}from"./p-2a56c2b1.js";import{s as setValidator,b as setValueAndValidateInput,v as validate,d as convertValueForInputType,g as getTimeDisplayValue,c as blurActiveElement,e as formatMinMaxDate,l as onInputFocused,o as onInputClear,m as onInputBlurred,a as setValueAndResetInputValidity,t as taskStyle,f as focusContentEditable}from"./p-432e8458.js";import{i as isEqual$1}from"./p-cfdeea96.js";import{d as difference}from"./p-27e57020.js";import{g as getElementDimensions}from"./p-f5d0d8f6.js";import{T as TodoListMode,I as ItemSlidingType}from"./p-6dbac5f2.js";import{d as isPhotoOrMultiPhotosField,e as isListField,f as filterListByText,g as isMapField,a as isDateTimeField}from"./p-c5efae11.js";import{f as findField}from"./p-9a039ee7.js";import{h as getMissionStatusIconName,d as getMissionColor}from"./p-3e96a3ac.js";import{c as castPath,t as toKey}from"./p-12bedee1.js";import{t as toInteger}from"./p-935fbfac.js";import{o as orderBy}from"./p-4ae61297.js";import{g as groupBy}from"./p-1a312ea2.js";import{t as toFinite}from"./p-2043b4c7.js";import{p as pick}from"./p-b203af53.js";import{t as toButton}from"./p-967f6f1d.js";import{a as getNextRecurrences}from"./p-1e926c86.js";import{r as remove}from"./p-e22f108e.js";import{d as getInsertElementProp,s as safeInsert,r as restoreCursorPosition,f as fixParagraphRandomEl,b as safeReplaceElement,i as isMentionTag,c as getTagHTML,a as safeInsertElements}from"./p-19a574ce.js";import{T as TapticEngine}from"./p-220d0a85.js";import{S as Sortable}from"./p-12797a88.js";import{m as map$1}from"./p-10b2bb56.js";import{i as isBoolean}from"./p-c412a16f.js";import{c as createThemedClasses,a as createColorClasses,h as hostContext}from"./p-73e396c8.js";import{c as getFormattedImageURL,g as getImageSize$1,a as getResizedImageSize,b as getImageScaleFactor}from"./p-2752aa83.js";import{a as isAnnotationDeleted,b as isAnnotationValid,g as getElement$1,c as isAnnotationFocused,i as isAnnotationEmpty,k as isElementInsideContainer,d as getPointerCoordinates}from"./p-9de400aa.js";import{o as getDefaultAnnotationTextColor,f as saveTooltipContent,p as getAnnotationStyle,B as BUTTONS_CONFIG,A as ANIMATION_DELAY,q as getBoundingClient,t as isCanvasBlank,M as MENU_ITEMS,j as getDotToolTipElement,k as getDotInnerElement,S as SLIDER_THRESHOLD,L as LOADING_DELAY,u as prepareAnnotationsData,l as setDotIndexes,v as focusAnnotation,w as getAnnotationDraggableBounds,x as getFormattedAnnotationSize,y as getAbsoluteCenter,z as getRelativeCenter,C as showPredefinedTextsDialog,c as createDot,D as DOT_RADIUS,E as updateAnnotationLocal,F as createBaseAnnotation,G as removeLocalsFromAnnotations,H as EEditorActions,s as showDotTooltip,I as formatAnnotationsForExport,h as hideAllDotTooltips,J as deCenterAnnotation,n as getAnnotation,K as INIT_COORDS,N as setAnnotationPositionToClosestEdge}from"./p-e9993e20.js";import{i as inRange}from"./p-6b61583e.js";import{s as setupHammer,h as hammerTypes,b as isBottomSwipe,i as isTopSwipe,c as isRightSwipe,d as isLeftSwipe,a as hammerDirections}from"./p-ca6c9677.js";import{p as present,d as dismiss}from"./p-c00c8cdd.js";import{e as eventMethod}from"./p-3785b9cc.js";import{v as videoPlayerStates}from"./p-efc2ac49.js";import"./p-bd19a341.js";import"./p-90a6a15b.js";import"./p-25c4db8a.js";import"./p-5450cf9b.js";import"./p-dd576b82.js";import"./p-d7e73bcb.js";import"./p-f9649bd9.js";import"./p-a1142cd3.js";import"./p-bdb9f4f1.js";import"./p-3fc615dd.js";import"./p-5ebbcf89.js";import"./p-49399b44.js";import"./p-c5108113.js";import"./p-e3093327.js";import"./p-b9ad79f8.js";import"./p-1dbbf3a2.js";import"./p-4b1fdfbb.js";import"./p-affcd66d.js";import"./p-e0d6fbed.js";import"./p-0dae56e6.js";import"./p-b4aad66a.js";import"./p-c3ec533d.js";import"./p-6348f445.js";import"./p-537db159.js";function assignMergeValue(t,e,o){(void 0!==o&&!eq(t[e],o)||void 0===o&&!(e in t))&&baseAssignValue(t,e,o)}function safeGet(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function toPlainObject(t){return copyObject(t,keysIn(t))}function baseMergeDeep(t,e,o,r,a,i,n){var s=safeGet(t,o),l=safeGet(e,o),c=n.get(l);if(c)assignMergeValue(t,o,c);else{var p=i?i(s,l,o+"",t,e,n):void 0,d=void 0===p;if(d){var h=isArray$1(l),f=!h&&isBuffer(l),u=!h&&!f&&isTypedArray(l);p=l,h||f||u?isArray$1(s)?p=s:isArrayLikeObject(s)?p=copyArray(s):f?(d=!1,p=cloneBuffer(l,!0)):u?(d=!1,p=cloneTypedArray(l,!0)):p=[]:isPlainObject$1(l)||isArguments(l)?(p=s,isArguments(s)?p=toPlainObject(s):isObject$2(s)&&!isFunction$2(s)||(p=initCloneObject(l))):d=!1}d&&(n.set(l,p),a(p,l,r,i,n),n.delete(l)),assignMergeValue(t,o,p)}}function baseMerge(t,e,o,r,a){t!==e&&baseFor(e,(function(i,n){if(a||(a=new Stack),isObject$2(i))baseMergeDeep(t,e,n,o,baseMerge,r,a);else{var s=r?r(safeGet(t,n),i,n+"",t,e,a):void 0;void 0===s&&(s=i),assignMergeValue(t,n,s)}}),keysIn)}var nativeMax$1=Math.max,nativeMin=Math.min;function findLastIndex(t,e,o){var r=null==t?0:t.length;if(!r)return-1;var a=r-1;return void 0!==o&&(a=toInteger(o),a=o<0?nativeMax$1(r+a,0):nativeMin(a,r-1)),baseFindIndex(t,baseIteratee(e),a,!0)}function baseGt(t,e){return t>e}function baseLt(t,e){return t<e}function baseExtremum(t,e,o){for(var r=-1,a=t.length;++r<a;){var i=t[r],n=e(i);if(null!=n&&(void 0===s?n==n&&!isSymbol(n):o(n,s)))var s=n,l=i}return l}function max(t){return t&&t.length?baseExtremum(t,identity$4,baseGt):void 0}var merge$1=createAssigner((function(t,e,o){baseMerge(t,e,o)}));function min(t){return t&&t.length?baseExtremum(t,identity$4,baseLt):void 0}var nativeCeil=Math.ceil,nativeMax=Math.max;function baseRange(t,e,o,r){for(var a=-1,i=nativeMax(nativeCeil((e-t)/(o||1)),0),n=Array(i);i--;)n[r?i:++a]=t,t+=o;return n}function createRange(t){return function(e,o,r){return r&&"number"!=typeof r&&isIterateeCall(e,o,r)&&(o=r=void 0),e=toFinite(e),void 0===o?(o=e,e=0):o=toFinite(o),baseRange(e,o,r=void 0===r?e<o?1:-1:toFinite(r),t)}}var range$1=createRange();function baseReduce(t,e,o,r,a){return a(t,(function(t,a,i){o=r?(r=!1,t):e(o,t,a,i)})),o}function reduce$1(t,e,o){var r=isArray$1(t)?arrayReduce:baseReduce,a=arguments.length<3;return r(t,baseIteratee(e),o,a,baseEach)}function result$2(t,e,o){var r=-1,a=(e=castPath(e,t)).length;for(a||(a=1,t=void 0);++r<a;){var i=null==t?void 0:t[toKey(e[r])];void 0===i&&(r=a,i=o),t=isFunction$2(i)?i.call(t):i}return t}function sum$1(t){return t&&t.length?baseSum(t,identity$4):0}function take(t,e,o){return t&&t.length?(e=o||void 0===e?1:toInteger(e),baseSlice(t,0,e<0?0:e)):[]}function uniqBy(t,e){return t&&t.length?baseUniq(t,baseIteratee(e)):[]}function getDistance(t,e,o,r,a="K"){const i=Math.PI*t/180,n=Math.PI*o/180,s=Math.PI*(e-r)/180;let l=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos(s);return l=Math.acos(l),l=180*l/Math.PI,l=60*l*1.1515,"K"===a&&(l*=1.609344),"N"===a&&(l*=.8684),l}function shiftSlidesToNext(t,e,o=1){const r=[...e];for(;t>o;)t--,r.push(r[r.length-1]+1),r.shift();return r}function shiftSlidesToPrevious(t,e,o=1){const r=[...e];for(;t<o;)t++,r.unshift(r[0]-1),r.pop();return r}
|
|
2
2
|
/**
|
|
3
3
|
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
4
4
|
* @version v25.3.0
|
|
@@ -398,7 +398,7 @@ function photoRenderer(params) {
|
|
|
398
398
|
return '';
|
|
399
399
|
}
|
|
400
400
|
function multiphotoRenderer(params) {
|
|
401
|
-
const photos = params.value;
|
|
401
|
+
const photos = compact([].concat(params.value));
|
|
402
402
|
if (photos && isArray(photos) && photos.length > 0) {
|
|
403
403
|
//return photos.map((photo) => `<yoo-img style="${getStyle(roundedImageStyle)}" src="${photo || ''}" />`).join(' ');
|
|
404
404
|
const container = document.createElement('div');
|
|
@@ -419,6 +419,27 @@ function multiphotoRenderer(params) {
|
|
|
419
419
|
}
|
|
420
420
|
return '';
|
|
421
421
|
}
|
|
422
|
+
function imageRenderer(params) {
|
|
423
|
+
var _a, _b, _c;
|
|
424
|
+
let photos = [];
|
|
425
|
+
const colDef = (_a = params.column) === null || _a === void 0 ? void 0 : _a.getColDef();
|
|
426
|
+
photos = compact([].concat((_c = (_b = colDef) === null || _b === void 0 ? void 0 : _b.fieldDefinition) === null || _c === void 0 ? void 0 : _c.imagesCarousel));
|
|
427
|
+
if (photos && isArray(photos) && photos.length > 0) {
|
|
428
|
+
//return photos.map((photo) => `<yoo-img style="${getStyle(roundedImageStyle)}" src="${photo || ''}" />`).join(' ');
|
|
429
|
+
const container = document.createElement('div');
|
|
430
|
+
container.style.display = 'inherit';
|
|
431
|
+
photos.forEach((photo) => {
|
|
432
|
+
const img = document.createElement('yoo-img');
|
|
433
|
+
keys(roundedImageStyle).forEach((k) => {
|
|
434
|
+
img.style[k] = roundedImageStyle[k];
|
|
435
|
+
});
|
|
436
|
+
img.src = photo;
|
|
437
|
+
container.appendChild(img);
|
|
438
|
+
});
|
|
439
|
+
return container;
|
|
440
|
+
}
|
|
441
|
+
return '';
|
|
442
|
+
}
|
|
422
443
|
function videoRenderer(params) {
|
|
423
444
|
return '<video class="ag-cell-image video" [src]="' + params.value + '"></video>';
|
|
424
445
|
}
|
|
@@ -592,13 +613,16 @@ function catalogRenderer(params) {
|
|
|
592
613
|
return formCatalog;
|
|
593
614
|
}
|
|
594
615
|
function documentRenderer(params) {
|
|
616
|
+
var _a, _b, _c, _d;
|
|
595
617
|
let documents = [];
|
|
596
|
-
|
|
597
|
-
|
|
618
|
+
const colDef = (_a = params.column) === null || _a === void 0 ? void 0 : _a.getColDef();
|
|
619
|
+
if (((_c = (_b = colDef) === null || _b === void 0 ? void 0 : _b.fieldDefinition) === null || _c === void 0 ? void 0 : _c.type) === FormFieldType.document) {
|
|
620
|
+
documents = compact([].concat(colDef.fieldDefinition.document));
|
|
598
621
|
}
|
|
599
622
|
else {
|
|
600
623
|
documents = compact([].concat(params.value));
|
|
601
624
|
}
|
|
625
|
+
documents = documents.filter((d) => !!d._downloadURL);
|
|
602
626
|
const wrapper = document.createElement('div');
|
|
603
627
|
wrapper.classList.add('col');
|
|
604
628
|
if (documents.length > 0) {
|
|
@@ -610,8 +634,9 @@ function documentRenderer(params) {
|
|
|
610
634
|
formDocument.showActionSheet = false;
|
|
611
635
|
wrapper.appendChild(formDocument);
|
|
612
636
|
});
|
|
637
|
+
return ((_d = params) === null || _d === void 0 ? void 0 : _d.type) === 'excel' ? documents.map((d) => d._downloadURL).join(',') : wrapper;
|
|
613
638
|
}
|
|
614
|
-
return
|
|
639
|
+
return '';
|
|
615
640
|
}
|
|
616
641
|
function pricecheckRenderer(params) {
|
|
617
642
|
const value = params.value;
|
|
@@ -1128,6 +1153,8 @@ function getRenderer(renderer) {
|
|
|
1128
1153
|
return photoRenderer;
|
|
1129
1154
|
case 'multiphotoRenderer':
|
|
1130
1155
|
return multiphotoRenderer;
|
|
1156
|
+
case 'imageRenderer':
|
|
1157
|
+
return imageRenderer;
|
|
1131
1158
|
case 'videoRenderer':
|
|
1132
1159
|
return videoRenderer;
|
|
1133
1160
|
case 'starratingRenderer':
|
|
@@ -4,11 +4,11 @@ import { a as isImageUrl, b as isBase64 } from './index-7a08441e.js';
|
|
|
4
4
|
|
|
5
5
|
async function getImageSize(src, onErr) {
|
|
6
6
|
const img = new Image();
|
|
7
|
-
if (src
|
|
7
|
+
if (src) {
|
|
8
8
|
img.src = isCloudinaryLink(src) ? new Cloudinary(src).quality('low').getUrl() : src;
|
|
9
9
|
await new Promise((resolve, reject) => {
|
|
10
10
|
img.onload = () => resolve(img.width);
|
|
11
|
-
img.onerror = () => reject(onErr === null || onErr === void 0 ? void 0 : onErr());
|
|
11
|
+
img.onerror = () => isImageUrl(src) || isBase64(src) && reject(onErr === null || onErr === void 0 ? void 0 : onErr());
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
return {
|
|
@@ -897,6 +897,8 @@ function setChildFields(parentConditions, itemIndex) {
|
|
|
897
897
|
function addNewIdsToSlide(slide) {
|
|
898
898
|
var _a, _b;
|
|
899
899
|
const ids = [];
|
|
900
|
+
if (slide)
|
|
901
|
+
slide._id = getUUID();
|
|
900
902
|
(_a = slide === null || slide === void 0 ? void 0 : slide.items) === null || _a === void 0 ? void 0 : _a.forEach((item) => {
|
|
901
903
|
const newId = getUUID();
|
|
902
904
|
ids.push({ oldId: item.name, newId });
|
|
@@ -1146,10 +1148,16 @@ function cleanCustomFormFieldSlides(selectedFields, translations) {
|
|
|
1146
1148
|
});
|
|
1147
1149
|
return { cleanedFields: selectedFields, removedConditionIds };
|
|
1148
1150
|
}
|
|
1149
|
-
function createNewIdsForCustomFields(customFields) {
|
|
1150
|
-
const cleanedFields = customFields.map((field) => {
|
|
1151
|
+
function createNewIdsForCustomFields(customFields, isCustomDataSet, fieldLocation) {
|
|
1152
|
+
const cleanedFields = customFields.map((field, fIndex) => {
|
|
1151
1153
|
const cleanedField = cloneDeep(field);
|
|
1152
|
-
|
|
1154
|
+
if (isCustomDataSet) {
|
|
1155
|
+
cleanedField.name = getCustomName(cleanedField.title, fieldLocation.slideIndex, fieldLocation.itemIndex + fIndex);
|
|
1156
|
+
cleanedField.customName = getUUID();
|
|
1157
|
+
}
|
|
1158
|
+
else {
|
|
1159
|
+
cleanedField.name = getUUID();
|
|
1160
|
+
}
|
|
1153
1161
|
return cleanedField;
|
|
1154
1162
|
});
|
|
1155
1163
|
cleanedFields.forEach((cleanedFeild) => {
|
package/dist/esm/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export { d as generateLabel, e as getDynamicProperty, f as getJSONHighlighted, g
|
|
|
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-da854059.js';
|
|
19
19
|
export { f as fixParagraphRandomEl, e as fuzzySearch, d as getInsertElementProp, g as getSelection, c as getTagHTML, i as isMentionTag, r as restoreCursorPosition, s as safeInsert, a as safeInsertElements, b as safeReplaceElement } from './form-text-area-helpers-eff7814d.js';
|
|
20
20
|
export { f as formatDistance, g as getGeolocation } from './geolocation-helpers-84299bd6.js';
|
|
21
|
-
export { d as applyViewBox, c as getFormattedImageURL, b as getImageScaleFactor, g as getImageSize, a as getResizedImageSize, u as updateSVGCustomColors } from './image-helpers-
|
|
21
|
+
export { d as applyViewBox, c as getFormattedImageURL, b as getImageScaleFactor, g as getImageSize, a as getResizedImageSize, u as updateSVGCustomColors } from './image-helpers-2f8f9d5d.js';
|
|
22
22
|
export { g as getIncentiveStatusBadgeSettings, c as getParticipant, a as getPositionText, b as getProgressText, e as getTotalSalesBreakdown, d as getUserScore } from './incentive-helpers-30a3bd55.js';
|
|
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-50f15184.js';
|
|
24
24
|
export { a as intersectionObserve, i as isIntersectionObserverSupported, r as resizeObserve } from './observer-helpers-2c5c0591.js';
|
|
@@ -24,7 +24,7 @@ import { i as isString } from './isString-1673d591.js';
|
|
|
24
24
|
import { c as createAggregator } from './_createAggregator-8d09e764.js';
|
|
25
25
|
import { g as get } from './get-3cbd3bd6.js';
|
|
26
26
|
import { s as setValidator, i as getFormBottomPosition, b as setValueAndValidateInput, v as validate, n as initNumber, d as convertValueForInputType, h as onIconClicked, o as onInputClear, m as onInputBlurred, l as onInputFocused } from './form-input-helpers-da854059.js';
|
|
27
|
-
import { g as getRenderer } from './grid-renderers-
|
|
27
|
+
import { g as getRenderer } from './grid-renderers-0cd64b5f.js';
|
|
28
28
|
import { g as getFromLocalForage, b as getKeyToCache } from './localForage-fb0baf03.js';
|
|
29
29
|
import { g as getElementDimensions } from './dimensions-helpers-74309fae.js';
|
|
30
30
|
import './isUndefined-11cbe419.js';
|
|
@@ -3,7 +3,7 @@ import { aJ as eq, u as isArray$1, a4 as isObject$2, as as isFunction$2, aO as b
|
|
|
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';
|
|
6
|
-
import { a as getKeyTemplate, p as progressValue, v as validationProgressValue, c as conformityProgressValue, b as conformityRelativeProgressValue, g as getRenderer } from './grid-renderers-
|
|
6
|
+
import { a as getKeyTemplate, p as progressValue, v as validationProgressValue, c as conformityProgressValue, b as conformityRelativeProgressValue, g as getRenderer } from './grid-renderers-0cd64b5f.js';
|
|
7
7
|
import { i as identity$4 } from './identity-db011338.js';
|
|
8
8
|
import { i as isNumber$1 } from './isNumber-5a14c4d5.js';
|
|
9
9
|
import { j as baseSum, a as isRequired, g as getTypeValidation, b as isReadonly, s as setFieldData, u as updateFormulas, e as getDynamicProperty, c as isDisabled, d as generateLabel, i as isCreationAllowed } from './form-helpers-d54ae23e.js';
|
|
@@ -63,7 +63,7 @@ import { S as Sortable } from './sortable.esm-e5d5ca49.js';
|
|
|
63
63
|
import { m as map$1 } from './map-55451e6b.js';
|
|
64
64
|
import { i as isBoolean } from './isBoolean-80d45d8d.js';
|
|
65
65
|
import { c as createThemedClasses, a as createColorClasses, h as hostContext } from './theme-a67283b7.js';
|
|
66
|
-
import { c as getFormattedImageURL, g as getImageSize$1, a as getResizedImageSize, b as getImageScaleFactor } from './image-helpers-
|
|
66
|
+
import { c as getFormattedImageURL, g as getImageSize$1, a as getResizedImageSize, b as getImageScaleFactor } from './image-helpers-2f8f9d5d.js';
|
|
67
67
|
import { a as isAnnotationDeleted, b as isAnnotationValid, g as getElement$1, c as isAnnotationFocused, i as isAnnotationEmpty, k as isElementInsideContainer, d as getPointerCoordinates } from './annotations-helpers-d026cd25.js';
|
|
68
68
|
import { o as getDefaultAnnotationTextColor, f as saveTooltipContent, p as getAnnotationStyle, B as BUTTONS_CONFIG, A as ANIMATION_DELAY, q as getBoundingClient, t as isCanvasBlank, M as MENU_ITEMS, j as getDotToolTipElement, k as getDotInnerElement, S as SLIDER_THRESHOLD, L as LOADING_DELAY, u as prepareAnnotationsData, l as setDotIndexes, v as focusAnnotation, w as getAnnotationDraggableBounds, x as getFormattedAnnotationSize, y as getAbsoluteCenter, z as getRelativeCenter, C as showPredefinedTextsDialog, c as createDot, D as DOT_RADIUS, E as updateAnnotationLocal, F as createBaseAnnotation, G as removeLocalsFromAnnotations, H as EEditorActions, s as showDotTooltip, I as formatAnnotationsForExport, h as hideAllDotTooltips, J as deCenterAnnotation, n as getAnnotation, K as INIT_COORDS, N as setAnnotationPositionToClosestEdge } from './draggable-dots-helpers-64c79f38.js';
|
|
69
69
|
import { i as inRange } from './inRange-4b32e66e.js';
|
|
@@ -6,7 +6,7 @@ import { c as changeExtension, i as isGif } from './index-7a08441e.js';
|
|
|
6
6
|
import { a as getFromOfflineStorage } from './localForage-fb0baf03.js';
|
|
7
7
|
import './ResizeObserver.es-a8772c31.js';
|
|
8
8
|
import { A as cloudinary } from './common-helpers-f3296dd7.js';
|
|
9
|
-
import { d as applyViewBox, c as getFormattedImageURL } from './image-helpers-
|
|
9
|
+
import { d as applyViewBox, c as getFormattedImageURL } from './image-helpers-2f8f9d5d.js';
|
|
10
10
|
import { i as isIntersectionObserverSupported, a as intersectionObserve } from './observer-helpers-2c5c0591.js';
|
|
11
11
|
import { c as changeRgbOpacity } from './color-helpers-03a5e1b1.js';
|
|
12
12
|
import './toInteger-9e62a9cd.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, H as Host } from './index-27314512.js';
|
|
|
2
2
|
import { t as translate } from './rrule-5a2de9bb.js';
|
|
3
3
|
import './input-bar.interface-4e956599.js';
|
|
4
4
|
import './ResizeObserver.es-a8772c31.js';
|
|
5
|
-
import { u as updateSVGCustomColors } from './image-helpers-
|
|
5
|
+
import { u as updateSVGCustomColors } from './image-helpers-2f8f9d5d.js';
|
|
6
6
|
import './isUndefined-11cbe419.js';
|
|
7
7
|
import './isNumber-5a14c4d5.js';
|
|
8
8
|
import './index-7a08441e.js';
|
|
@@ -11,8 +11,8 @@ import { b as setValueAndValidateInput, s as setValidator } from './form-input-h
|
|
|
11
11
|
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
|
-
import { u as updateSVGCustomColors } from './image-helpers-
|
|
15
|
-
import { g as getRenderer } from './grid-renderers-
|
|
14
|
+
import { u as updateSVGCustomColors } from './image-helpers-2f8f9d5d.js';
|
|
15
|
+
import { g as getRenderer } from './grid-renderers-0cd64b5f.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';
|
|
@@ -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-
|
|
13
|
+
import { l as setBlockSelection, U as setPageSelection } from './index-350d88b9.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';
|
|
@@ -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-
|
|
6
|
+
import { l as setBlockSelection, R as setRestrictionAndConditionActions, S as starRatingMaxDefault, T as filterSequentialFields, I as setRestrictionAndFieldConditions, J as setChildFields } from './index-350d88b9.js';
|
|
7
7
|
import './isNumber-5a14c4d5.js';
|
|
8
8
|
import './isEqual-17ab50de.js';
|
|
9
9
|
import './_baseIsEqual-b74e0d4d.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-
|
|
8
|
+
import { I as setRestrictionAndFieldConditions, P as getWorkflowFieldState, O as onWorkflowStepClicked } from './index-350d88b9.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';
|
|
@@ -248,7 +248,7 @@ const YooFormCreatorPageCardListComponent = class {
|
|
|
248
248
|
if (this.workflowVisibility) {
|
|
249
249
|
pageEntry.pageWorkflowState = this.workflowVisibility;
|
|
250
250
|
if ((_a = this.pagePermissions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
251
|
-
const pagePermission = this.pagePermissions.find((permission) => permission.name === slide.title);
|
|
251
|
+
const pagePermission = this.pagePermissions.find((permission) => permission.name === slide._id || permission.name === slide.title);
|
|
252
252
|
pageEntry.pageWorkflowState = getWorkflowFieldState(pagePermission, this.workflowVisibility);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
@@ -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-
|
|
5
|
+
import { R as setRestrictionAndConditionActions, l as setBlockSelection } from './index-350d88b9.js';
|
|
6
6
|
import './index-7a08441e.js';
|
|
7
7
|
import './document-29cc0400.js';
|
|
8
8
|
import './validate-691c9af1.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-
|
|
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-350d88b9.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';
|
|
@@ -1238,7 +1238,7 @@ const YooWorkflowComponent = class {
|
|
|
1238
1238
|
onPageStateChange(ev) {
|
|
1239
1239
|
var _a, _b, _c, _d;
|
|
1240
1240
|
if (this.internalMissionDescription.slides[ev.detail.index]) {
|
|
1241
|
-
const pageName = this.internalMissionDescription.slides[ev.detail.index].title;
|
|
1241
|
+
const pageName = this.internalMissionDescription.slides[ev.detail.index]._id || this.internalMissionDescription.slides[ev.detail.index].title;
|
|
1242
1242
|
const fieldPermission = { name: pageName };
|
|
1243
1243
|
switch (ev.detail.newState.title) {
|
|
1244
1244
|
case 'EDITABLE':
|
|
@@ -1343,8 +1343,9 @@ const YooWorkflowComponent = class {
|
|
|
1343
1343
|
selected: this.isFieldsAccordionOpen
|
|
1344
1344
|
}
|
|
1345
1345
|
], iconPairLeft: ARROW_PAIR, showBottomBorder: true, forceEntryUpdate: true, allowMultipleSelection: true, onAccordionSelected: (ev) => (this.isFieldsAccordionOpen = ev.detail.selected) }, h("div", { slot: "CONTENTS" }, (_e = (_d = (_c = this.internalMissionDescription) === null || _c === void 0 ? void 0 : _c.slides[this.currentPageSelected]) === null || _d === void 0 ? void 0 : _d.items) === null || _e === void 0 ? void 0 : _e.map((item) => {
|
|
1346
|
-
var _a, _b;
|
|
1347
|
-
const
|
|
1346
|
+
var _a, _b, _c, _d;
|
|
1347
|
+
const slideName = ((_a = this.internalMissionDescription) === null || _a === void 0 ? void 0 : _a.slides[this.currentPageSelected]._id) || ((_b = this.internalMissionDescription) === null || _b === void 0 ? void 0 : _b.slides[this.currentPageSelected].title);
|
|
1348
|
+
const pagePermission = (_d = (_c = this.currentWorkflowStep) === null || _c === void 0 ? void 0 : _c.pagesPermission) === null || _d === void 0 ? void 0 : _d.find((permission) => permission.name === slideName);
|
|
1348
1349
|
const pageState = getWorkflowFieldState(pagePermission, this.defaultFieldState);
|
|
1349
1350
|
return this.renderSimpleBlock(item, pageState);
|
|
1350
1351
|
}))));
|
|
@@ -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-
|
|
6
|
+
import { Q as updateLocaleTranslation } from './index-350d88b9.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';
|
|
@@ -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-
|
|
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-350d88b9.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';
|
|
@@ -892,6 +892,7 @@ const YooFormCreatorComponent = class {
|
|
|
892
892
|
this.selectedPageIndex = index;
|
|
893
893
|
}
|
|
894
894
|
async addNewPage(newPage, index) {
|
|
895
|
+
newPage = Object.assign({ _id: getUUID() }, newPage);
|
|
895
896
|
this.currentSlides.splice(index, 0, newPage);
|
|
896
897
|
this.selectedPageIndex = index;
|
|
897
898
|
this.hasPageChanged = index;
|
|
@@ -1703,26 +1704,23 @@ const YooFormCreatorComponent = class {
|
|
|
1703
1704
|
}
|
|
1704
1705
|
}
|
|
1705
1706
|
onCustomFieldAdded(customFieldId, selectedCustomFormField, indexToAdd) {
|
|
1706
|
-
var _a, _b, _c, _d;
|
|
1707
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1707
1708
|
if (!this.currentSlides[this.selectedPageIndex]) {
|
|
1708
1709
|
return;
|
|
1709
1710
|
}
|
|
1711
|
+
indexToAdd = isNullOrUndefined(indexToAdd) ? (_b = (_a = this.currentSlides[this.selectedPageIndex]) === null || _a === void 0 ? void 0 : _a.items) === null || _b === void 0 ? void 0 : _b.length : indexToAdd;
|
|
1710
1712
|
if (!selectedCustomFormField) {
|
|
1711
|
-
selectedCustomFormField = (
|
|
1713
|
+
selectedCustomFormField = (_c = this.customFormFields) === null || _c === void 0 ? void 0 : _c.find((customField) => customField._id === customFieldId);
|
|
1712
1714
|
}
|
|
1713
|
-
const newFields = createNewIdsForCustomFields(selectedCustomFormField.fields);
|
|
1715
|
+
const newFields = createNewIdsForCustomFields(selectedCustomFormField.fields, ((_d = this.missionDescription) === null || _d === void 0 ? void 0 : _d.type) === 'dataset', { slideIndex: this.selectedPageIndex, itemIndex: indexToAdd });
|
|
1714
1716
|
newFields === null || newFields === void 0 ? void 0 : newFields.forEach((field) => {
|
|
1715
|
-
var _a;
|
|
1717
|
+
var _a, _b;
|
|
1716
1718
|
field.slideIndex = this.selectedPageIndex;
|
|
1717
1719
|
field.slideTitle = (_a = this.currentSlides[this.selectedPageIndex]) === null || _a === void 0 ? void 0 : _a.title;
|
|
1720
|
+
field.slideId = (_b = this.currentSlides[this.selectedPageIndex]) === null || _b === void 0 ? void 0 : _b._id;
|
|
1718
1721
|
});
|
|
1719
|
-
if (((
|
|
1720
|
-
|
|
1721
|
-
this.currentSlides[this.selectedPageIndex].items = [...(_d = this.currentSlides[this.selectedPageIndex]) === null || _d === void 0 ? void 0 : _d.items, ...newFields];
|
|
1722
|
-
}
|
|
1723
|
-
else {
|
|
1724
|
-
this.currentSlides[this.selectedPageIndex].items.splice(indexToAdd, 0, ...newFields);
|
|
1725
|
-
}
|
|
1722
|
+
if (((_f = (_e = this.currentSlides[this.selectedPageIndex]) === null || _e === void 0 ? void 0 : _e.items) === null || _f === void 0 ? void 0 : _f.length) > 0) {
|
|
1723
|
+
this.currentSlides[this.selectedPageIndex].items.splice(indexToAdd, 0, ...newFields);
|
|
1726
1724
|
}
|
|
1727
1725
|
else {
|
|
1728
1726
|
this.currentSlides[this.selectedPageIndex].items = newFields;
|
|
@@ -7151,7 +7151,7 @@ const YooFormTextEditorComponent = class {
|
|
|
7151
7151
|
const baseUploadURL = await getAsyncExtraData({ type: 'upload-api' });
|
|
7152
7152
|
try {
|
|
7153
7153
|
this.editor = new froala_editor_min(this.containerEl, {
|
|
7154
|
-
key: '
|
|
7154
|
+
key: 'vYA6mB4F4H5B3H4A10dNSWXf1h1MDb1CF1PLPFf1C1EESFKVlA3C11A8D6D2C4E4G2C3H3==',
|
|
7155
7155
|
theme: isDarkTheme() ? 'dark' : 'royal',
|
|
7156
7156
|
toolbarSticky: false,
|
|
7157
7157
|
requestHeaders: {
|
|
@@ -4797,9 +4797,11 @@ const YooGridstackComponent = class {
|
|
|
4797
4797
|
}
|
|
4798
4798
|
delete this.containerEl.gridstack;
|
|
4799
4799
|
this.grid = gridstack.GridStack.init({
|
|
4800
|
+
auto: false,
|
|
4800
4801
|
column: this.column || 12,
|
|
4801
4802
|
animate: true,
|
|
4802
4803
|
disableOneColumnMode: this.forceOneColumn !== true,
|
|
4804
|
+
oneColumnModeDomSort: false,
|
|
4803
4805
|
cellHeight: this.cellHeight || 'auto',
|
|
4804
4806
|
margin: this.itemMargin,
|
|
4805
4807
|
acceptWidgets: '.ui-draggable',
|
|
@@ -4863,10 +4865,23 @@ const YooGridstackComponent = class {
|
|
|
4863
4865
|
}
|
|
4864
4866
|
}
|
|
4865
4867
|
renderConfig() {
|
|
4866
|
-
var _a;
|
|
4867
4868
|
this.grid.removeAll(true);
|
|
4868
4869
|
this.grid.batchUpdate();
|
|
4869
|
-
|
|
4870
|
+
let finalConfig = this.config;
|
|
4871
|
+
if (this.column === 1 && (finalConfig === null || finalConfig === void 0 ? void 0 : finalConfig.length) > 0) {
|
|
4872
|
+
finalConfig = gridstack.Utils.sort(this.config, 1, this.column);
|
|
4873
|
+
finalConfig.forEach((v, i) => {
|
|
4874
|
+
if (i === 0) {
|
|
4875
|
+
v.y = 0;
|
|
4876
|
+
v.x = 0;
|
|
4877
|
+
}
|
|
4878
|
+
else {
|
|
4879
|
+
v.x = 0;
|
|
4880
|
+
v.y = finalConfig[i - 1].y + finalConfig[i - 1].h;
|
|
4881
|
+
}
|
|
4882
|
+
});
|
|
4883
|
+
}
|
|
4884
|
+
finalConfig === null || finalConfig === void 0 ? void 0 : finalConfig.forEach((item) => {
|
|
4870
4885
|
const isHidden = !!this.hiddenWidgets.find((i) => i.id === item.id);
|
|
4871
4886
|
const el = this.grid.addWidget(this.getItemTemplate(item, isHidden), cloneDeep(item));
|
|
4872
4887
|
if (isHidden) {
|
|
@@ -134,6 +134,12 @@ const YooMissionDetailComponent = class {
|
|
|
134
134
|
return (user &&
|
|
135
135
|
(user.email || user.firstName || user.lastName) && (h("li", { class: "menu-item", onClick: () => this.showUser.emit(user) }, h("div", { class: "menu-left" }, h("yoo-tag", { size: "medium", color: "app-color", iconOnlyColor: "light", icon: icon }), h("div", { class: "border" })), h("div", { class: "menu-right" }, h("div", { class: "menu-title" }, translate(title)), h("div", { class: "menu-content menu-requestor" }, h("div", { class: "menu-inner-container" }, h("yoo-avatar", { size: "small", user: user }), h("span", { class: "text" }, user.firstName + ' ' + user.lastName), date && h("div", { class: "mission-date" }, pipes.dateFormat.transform(date, 'L'))), withExtraActions && ((_a = this.extraActions) === null || _a === void 0 ? void 0 : _a.length) > 0 && user && this.renderExtraActions(user))))));
|
|
136
136
|
}
|
|
137
|
+
renderDuration() {
|
|
138
|
+
var _a;
|
|
139
|
+
if ((_a = this.mission) === null || _a === void 0 ? void 0 : _a.duration) {
|
|
140
|
+
return (h("li", { class: "menu-item" }, h("div", { class: "menu-left" }, h("span", { class: "menu-icon" }, h("yoo-tag", { size: "medium", icon: "ongoing", color: "app-color" })), h("div", { class: "border" })), h("div", { class: "menu-right" }, h("div", { class: "menu-title" }, translate('MISSIONDURATION')), h("div", { class: "menu-content" }, this.mission.duration))));
|
|
141
|
+
}
|
|
142
|
+
}
|
|
137
143
|
renderWorkflowHistory() {
|
|
138
144
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
139
145
|
return (h("yoo-workflow-state", { steps: (_c = (_b = (_a = this.mission) === null || _a === void 0 ? void 0 : _a.description) === null || _b === void 0 ? void 0 : _b.workflow) === null || _c === void 0 ? void 0 : _c.steps, history: (_d = this.mission) === null || _d === void 0 ? void 0 : _d.workflowHistory, state: (_e = this.mission) === null || _e === void 0 ? void 0 : _e.workflowState, status: (_f = this.mission) === null || _f === void 0 ? void 0 : _f.status, owner: (_g = this.mission) === null || _g === void 0 ? void 0 : _g.owner }));
|
|
@@ -158,7 +164,7 @@ const YooMissionDetailComponent = class {
|
|
|
158
164
|
web: !this.isMobile
|
|
159
165
|
} }, h("yoo-ion-content", { class: "bg-light-to-dark no-scrollbar", scrollEvents: true }, h("div", null, h("div", { class: "mission-content" }, h("yoo-mission-heading", { animated: this.animated, mission: this.mission, progress: this.progress && this.progress.value ? this.progress.value : null }), h("ul", { class: "menu" }, this.mission.description &&
|
|
160
166
|
this.mission.description.distanceMin &&
|
|
161
|
-
this.renderSimpleSection(this.mission.description.distanceMin.toLocaleString(), 'GEOFENCINGDISTANCEMIN', 'pin-selected'), this.renderPriority(), description && description.text && this.renderSimpleSection(description.text, descriptionTitle, 'lesson'), this.mission.address && !isStoreManager && this.renderMissionLocation(), ((_a = this.mission.aisle) === null || _a === void 0 ? void 0 : _a.title) && this.renderSimpleSection(this.mission.aisle.title, 'AISLE', 'aisles'), h("yoo-mission-contents", { slidesNumber: this.slidesNumber, photosNumber: this.photosNumber, questionsNumber: this.questionsNumber }), location && (location.contactname || location.contactphone || location.contactemail) && (h("li", { class: "menu-item" }, h("div", { class: "menu-left" }, h("yoo-tag", { icon: "contact", iconOnlyColor: "light", size: "medium", color: "app-color" }), h("div", { class: "border" })), h("div", { class: "menu-right" }, h("div", { class: "menu-title" }, translate('CONTACT')), h("div", { class: "menu-content" }, location.contactname && h("div", { class: "menu-content-contact", innerHTML: location.contactname }), location.contactemail && h("div", { class: "menu-content-contact", innerHTML: location.contactemail }), location.contactphone && h("div", { class: "menu-content-contact", innerHTML: location.contactphone }))))), this.mission.comments && this.renderSimpleSection(this.mission.comments, 'NOTES', 'note'), location && location.info && this.renderSimpleSection(location.info, 'YOOBICINFO', 'info'), this.mission.originalUnvalidatedReason && this.renderSimpleSection(this.mission.originalUnvalidatedReason, 'COMMENTS', 'comment'), this.renderUserSection(creator, 'REQUESTOR', 'author', this.mission._ect), this.mission.hasWorkflow && ((_d = (_c = (_b = this.mission) === null || _b === void 0 ? void 0 : _b.description) === null || _c === void 0 ? void 0 : _c.workflow) === null || _d === void 0 ? void 0 : _d.steps) && this.renderWorkflowHistory(), !((_e = this.mission) === null || _e === void 0 ? void 0 : _e.hasWorkflow) &&
|
|
167
|
+
this.renderSimpleSection(this.mission.description.distanceMin.toLocaleString(), 'GEOFENCINGDISTANCEMIN', 'pin-selected'), this.renderPriority(), description && description.text && this.renderSimpleSection(description.text, descriptionTitle, 'lesson'), this.mission.address && !isStoreManager && this.renderMissionLocation(), ((_a = this.mission.aisle) === null || _a === void 0 ? void 0 : _a.title) && this.renderSimpleSection(this.mission.aisle.title, 'AISLE', 'aisles'), h("yoo-mission-contents", { slidesNumber: this.slidesNumber, photosNumber: this.photosNumber, questionsNumber: this.questionsNumber }), this.renderDuration(), location && (location.contactname || location.contactphone || location.contactemail) && (h("li", { class: "menu-item" }, h("div", { class: "menu-left" }, h("yoo-tag", { icon: "contact", iconOnlyColor: "light", size: "medium", color: "app-color" }), h("div", { class: "border" })), h("div", { class: "menu-right" }, h("div", { class: "menu-title" }, translate('CONTACT')), h("div", { class: "menu-content" }, location.contactname && h("div", { class: "menu-content-contact", innerHTML: location.contactname }), location.contactemail && h("div", { class: "menu-content-contact", innerHTML: location.contactemail }), location.contactphone && h("div", { class: "menu-content-contact", innerHTML: location.contactphone }))))), this.mission.comments && this.renderSimpleSection(this.mission.comments, 'NOTES', 'note'), location && location.info && this.renderSimpleSection(location.info, 'YOOBICINFO', 'info'), this.mission.originalUnvalidatedReason && this.renderSimpleSection(this.mission.originalUnvalidatedReason, 'COMMENTS', 'comment'), this.renderUserSection(creator, 'REQUESTOR', 'author', this.mission._ect), this.mission.hasWorkflow && ((_d = (_c = (_b = this.mission) === null || _b === void 0 ? void 0 : _b.description) === null || _c === void 0 ? void 0 : _c.workflow) === null || _d === void 0 ? void 0 : _d.steps) && this.renderWorkflowHistory(), !((_e = this.mission) === null || _e === void 0 ? void 0 : _e.hasWorkflow) &&
|
|
162
168
|
owner &&
|
|
163
169
|
owner._id &&
|
|
164
170
|
owner._id !== getSession().userId &&
|
|
@@ -178,7 +184,7 @@ const YooMissionDetailComponent = class {
|
|
|
178
184
|
renderTodo() {
|
|
179
185
|
var _a;
|
|
180
186
|
const isStoreManager = getSession().user && getSession().user.locationRef && getSession().user.locationRef === this.mission.locationRef;
|
|
181
|
-
return (this.mission && (h("div", { class: 'mission-detail mission-todo ' + (this.isMobile ? '' : 'web') }, h("div", { class: "mission-content" }, h("yoo-mission-heading", { animated: this.animated, mission: this.mission, progress: this.progress && this.progress.value && this.progress.value }), h("ul", { class: "menu" }, this.mission.todo && this.mission.todo.field && this.mission.todo.fieldValue && this.renderMenuItem('LINKEDTO', true), this.mission.todo && this.mission.todo.priority && this.renderMenuItem('PRIORITY', false), this.renderUserSection(this.mission.creator, 'CREATEDBY', 'user', this.mission._ect, true), this.renderUserSection(this.mission.owner, 'ASSIGNTO', 'user', null, true), this.mission.address && !isStoreManager && this.renderSimpleSection(this.mission.address, 'ADDRESS', 'map'), ((_a = this.mission.aisle) === null || _a === void 0 ? void 0 : _a.title) && !isStoreManager && this.renderSimpleSection(this.mission.aisle.title, 'AISLE', 'aisles'), this.mission.originalUnvalidatedReason && this.renderSimpleSection(this.mission.originalUnvalidatedReason, 'COMMENTS', 'comment')), h("slot", null)))));
|
|
187
|
+
return (this.mission && (h("div", { class: 'mission-detail mission-todo ' + (this.isMobile ? '' : 'web') }, h("div", { class: "mission-content" }, h("yoo-mission-heading", { animated: this.animated, mission: this.mission, progress: this.progress && this.progress.value && this.progress.value }), h("ul", { class: "menu" }, this.mission.todo && this.mission.todo.field && this.mission.todo.fieldValue && this.renderMenuItem('LINKEDTO', true), this.mission.todo && this.mission.todo.priority && this.renderMenuItem('PRIORITY', false), this.renderUserSection(this.mission.creator, 'CREATEDBY', 'user', this.mission._ect, true), this.renderUserSection(this.mission.owner, 'ASSIGNTO', 'user', null, true), this.mission.address && !isStoreManager && this.renderSimpleSection(this.mission.address, 'ADDRESS', 'map'), ((_a = this.mission.aisle) === null || _a === void 0 ? void 0 : _a.title) && !isStoreManager && this.renderSimpleSection(this.mission.aisle.title, 'AISLE', 'aisles'), this.renderDuration(), this.mission.originalUnvalidatedReason && this.renderSimpleSection(this.mission.originalUnvalidatedReason, 'COMMENTS', 'comment')), h("slot", null)))));
|
|
182
188
|
}
|
|
183
189
|
renderBasedOnType() {
|
|
184
190
|
if (this.mission && this.mission.type) {
|
|
@@ -122,7 +122,7 @@ const YooMissionResultsComponent = class {
|
|
|
122
122
|
return this.mission ? (h("div", { class: Object.assign({ 'mission-results': true, pdf: this.isPdf }, getAppContext(this.host)) }, this.isPdf && (h("div", { class: "header-photo-container" }, ((_h = (_g = this.mission) === null || _g === void 0 ? void 0 : _g.description) === null || _h === void 0 ? void 0 : _h.pdfHeaderPhoto) && h("yoo-img", { class: "header-photo", src: this.mission.description.pdfHeaderPhoto }), h("div", { class: "header-content" }, h("div", { class: "title" }, translateMulti((_j = this.mission) === null || _j === void 0 ? void 0 : _j.title)), h("div", { class: "subtitle" }, (_k = this.mission) === null || _k === void 0 ? void 0 : _k.address), h("div", { class: "tag-container" }, showInformation &&
|
|
123
123
|
(tags === null || tags === void 0 ? void 0 : tags.map((tag) => {
|
|
124
124
|
return h("yoo-tag", { color: tag.color, customColor: tag.customColor, innerHTML: tag.innerHTML });
|
|
125
|
-
})))))), h("div", { class: "content" }, !this.isPdf && showInformation && h("yoo-mission-heading", { isPdf: this.isPdf, mission: this.mission }), h("ul", { class: { menu: true, pdf: this.isPdf } }, !this.isPdf && !isStoreManager && (this.mission.location || this.mission.address) ? this.renderMissionLocation() : null, ((_m = (_l = this.mission) === null || _l === void 0 ? void 0 : _l.aisle) === null || _m === void 0 ? void 0 : _m.title) ? this.renderMissionAisle() : null, showInformation && this.mission.ownerDisplayName ? this.renderMissionOwner() : null, !showInformation || this.mission.skipValidation ? null : this.renderMissionValidator(), showInformation && this.renderPriority(), this.mission.type === 'visit' && this.mission.visitType ? this.renderVisitType() : null, this.mission.type === 'visit' ? this.renderVisitDescription() : null, !getSession().isExternal && this.mission.workflowHistory && ((_q = (_p = (_o = this.mission) === null || _o === void 0 ? void 0 : _o.description) === null || _p === void 0 ? void 0 : _p.workflow) === null || _q === void 0 ? void 0 : _q.steps) && this.renderWorkflowHistory(), this.renderUnvalidatedReason(), showAudit && this.renderAudit()), showScore && h("yoo-mission-score", { isPdf: this.isPdf, charts: this.charts, networkScore: this.networkScore })))) : null;
|
|
125
|
+
})))))), h("div", { class: "content" }, !this.isPdf && showInformation && h("yoo-mission-heading", { isPdf: this.isPdf, mission: this.mission }), h("ul", { class: { menu: true, pdf: this.isPdf } }, !this.isPdf && !isStoreManager && (this.mission.location || this.mission.address) ? this.renderMissionLocation() : null, ((_m = (_l = this.mission) === null || _l === void 0 ? void 0 : _l.aisle) === null || _m === void 0 ? void 0 : _m.title) ? this.renderMissionAisle() : null, showInformation && this.mission.ownerDisplayName ? this.renderMissionOwner() : null, !showInformation || this.mission.skipValidation ? null : this.renderMissionValidator(), showInformation && this.renderPriority(), this.mission.type === 'visit' && this.mission.visitType ? this.renderVisitType() : null, this.mission.type === 'visit' ? this.renderVisitDescription() : null, !getSession().isExternal && this.mission.workflowHistory && ((_q = (_p = (_o = this.mission) === null || _o === void 0 ? void 0 : _o.description) === null || _p === void 0 ? void 0 : _p.workflow) === null || _q === void 0 ? void 0 : _q.steps) && this.renderWorkflowHistory(), showInformation && this.renderUnvalidatedReason(), showAudit && this.renderAudit()), showScore && h("yoo-mission-score", { isPdf: this.isPdf, charts: this.charts, networkScore: this.networkScore })))) : null;
|
|
126
126
|
}
|
|
127
127
|
get host() { return getElement(this); }
|
|
128
128
|
};
|
|
@@ -3,7 +3,7 @@ import { E as getCssColor, P as Cloudinary, b as isWeb } from './rrule-5a2de9bb.
|
|
|
3
3
|
import './input-bar.interface-4e956599.js';
|
|
4
4
|
import './ResizeObserver.es-a8772c31.js';
|
|
5
5
|
import { f as getAppContext } from './common-helpers-f3296dd7.js';
|
|
6
|
-
import { u as updateSVGCustomColors } from './image-helpers-
|
|
6
|
+
import { u as updateSVGCustomColors } from './image-helpers-2f8f9d5d.js';
|
|
7
7
|
import { i as isNumber } from './isNumber-5a14c4d5.js';
|
|
8
8
|
import { g as get } from './get-3cbd3bd6.js';
|
|
9
9
|
import './isUndefined-11cbe419.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, a as getAssetPath, H as Hos
|
|
|
2
2
|
import { bh as isChromatic, t as translate } from './rrule-5a2de9bb.js';
|
|
3
3
|
import './input-bar.interface-4e956599.js';
|
|
4
4
|
import './ResizeObserver.es-a8772c31.js';
|
|
5
|
-
import { u as updateSVGCustomColors } from './image-helpers-
|
|
5
|
+
import { u as updateSVGCustomColors } from './image-helpers-2f8f9d5d.js';
|
|
6
6
|
import './isUndefined-11cbe419.js';
|
|
7
7
|
import './isNumber-5a14c4d5.js';
|
|
8
8
|
import './index-7a08441e.js';
|
|
@@ -41,6 +41,7 @@ export declare class YooMissionDetailComponent {
|
|
|
41
41
|
renderServiceData(): any;
|
|
42
42
|
renderExtraActions(user: IUser): any;
|
|
43
43
|
renderUserSection(user: IUser, title: string, icon: TIconName, date?: string, withExtraActions?: boolean): any;
|
|
44
|
+
renderDuration(): any;
|
|
44
45
|
renderWorkflowHistory(): any;
|
|
45
46
|
renderMission(): any[];
|
|
46
47
|
renderMenuItem(title: string, withContent?: boolean): any;
|
|
@@ -182,7 +182,10 @@ export declare function cleanCustomFormFieldSlides(selectedFields: IFormField[],
|
|
|
182
182
|
cleanedFields: IFormField[];
|
|
183
183
|
removedConditionIds: string[];
|
|
184
184
|
};
|
|
185
|
-
export declare function createNewIdsForCustomFields(customFields: IFormField[]
|
|
185
|
+
export declare function createNewIdsForCustomFields(customFields: IFormField[], isCustomDataSet: boolean, fieldLocation: {
|
|
186
|
+
slideIndex: number;
|
|
187
|
+
itemIndex: number;
|
|
188
|
+
}): IFormField[];
|
|
186
189
|
export declare function resetKey(entity: IPlan | IPlanSection | ISlide | IFormField | IMissionDescription | IScoring, path: string, translations: ITranslation[]): void;
|
|
187
190
|
export declare function resetFieldTranslations(f: IFormField, translations: ITranslation[]): void;
|
|
188
191
|
export declare function deleteComplexValueImageTranslations(path: string, f: IFormField, translations: ITranslation[]): void;
|