@stsdti/funky-ui-kit 1.0.2 → 1.1.0
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/funky-ui-kit.es.js +2116 -775
- package/dist/funky-ui-kit.es.js.map +1 -1
- package/package.json +2 -1
package/dist/funky-ui-kit.es.js
CHANGED
|
@@ -18,7 +18,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
var _Util_static, _a2, getExtremumOnCurve_fn, getExtremum_fn, _b, _c, _regex, _toolbar, _colorPicker, _editor, _buttons, _altText, _l10nRemove, _EditorToolbar_static, pointerDown_fn, _EditorToolbar_instances, focusIn_fn, focusOut_fn, addListenersToElement_fn, addDeleteButton_fn, divider_get, _buttons2, _toolbar2, _uiManager, _HighlightToolbar_instances, render_fn, getLastPoint_fn, addHighlightButton_fn, _id, _baseId, _id2, _cache, _ImageManager_instances, get_fn, _commands, _locked, _maxSize, _position, _KeyboardManager_instances, serialize_fn, _abortController, _activeEditor, _allEditors, _allLayers, _altTextManager, _annotationStorage, _changedExistingAnnotations, _commandManager, _copyPasteAC, _currentDrawingSession, _currentPageIndex, _deletedAnnotationsElementIds, _draggingEditors, _editorTypes, _editorsToRescale, _enableHighlightFloatingButton, _enableUpdatedAddImage, _enableNewAltTextWhenAddingImage, _filterFactory, _focusMainContainerTimeoutId, _focusManagerAC, _highlightColors, _highlightWhenShiftUp, _highlightToolbar, _idManager, _isEnabled, _isWaiting, _keyboardManagerAC, _lastActiveElement, _mainHighlightColorPicker, _mlManager, _mode, _selectedEditors, _selectedTextNode, _pageColors, _showAllStates, _previousStates, _translation, _translationTimeoutId, _container, _viewer, _updateModeCapability, _d, _AnnotationEditorUIManager_instances, getAnchorElementForSelection_fn, getLayerForTextLayer_fn, displayHighlightToolbar_fn, selectionChange_fn, onSelectEnd_fn, addSelectionListener_fn, addFocusManager_fn, removeFocusManager_fn, addKeyboardManager_fn, removeKeyboardManager_fn, addCopyPasteListeners_fn, removeCopyPasteListeners_fn, addDragAndDropListeners_fn, dispatchUpdateStates_fn, dispatchUpdateUI_fn, enableAll_fn, disableAll_fn, addEditorToLayer_fn, lastSelectedEditor_get, isEmpty_fn, selectEditors_fn, _altText2, _altTextDecorative, _altTextButton, _altTextButtonLabel, _altTextTooltip, _altTextTooltipTimeout, _altTextWasFromKeyBoard, _badge, _editor2, _guessedText, _textWithDisclaimer, _useNewAltTextFlow, _l10nNewButton, _AltText_instances, label_get, setState_fn, _container2, _isPinching, _isPinchingStopped, _isPinchingDisabled, _onPinchStart, _onPinching, _onPinchEnd, _signal, _touchInfo, _touchManagerAC, _touchMoveAC, _TouchManager_instances, onTouchStart_fn, onTouchMove_fn, onTouchEnd_fn, _e, _accessibilityData, _allResizerDivs, _altText3, _disabled, _dragPointerId, _dragPointerType, _keepAspectRatio, _resizersDiv, _lastPointerCoords, _savedDimensions, _focusAC, _focusedResizerName, _hasBeenClicked, _initialRect, _isEditing, _isInEditMode, _isResizerEnabledForKeyboard, _moveInDOMTimeout, _prevDragX, _prevDragY, _telemetryTimeouts, _touchManager, _isDraggable, _zIndex, _AnnotationEditor_instances, translate_fn, _AnnotationEditor_static, rotatePoint_fn, getRotationMatrix_fn, createResizers_fn, resizerPointerdown_fn, resize_fn, addResizeToUndoStack_fn, resizerPointermove_fn, touchPinchStartCallback_fn, touchPinchCallback_fn, touchPinchEndCallback_fn, selectOnPointerEvent_fn, setUpDragSession_fn, addFocusListeners_fn, resizerKeydown_fn, resizerBlur_fn, resizerFocus_fn, setResizerTabIndex_fn, stopResizing_fn, _modified, _modifiedIds, _storage, _AnnotationStorage_instances, setModified_fn, _serializable, _systemFonts, _messageAC, _MessageHandler_instances, onMessage_fn, createStreamSink_fn, processStreamMessage_fn, deleteStreamController_fn, _enableHWA, _baseUrl, __cache, __defs, _docId, _document, __hcmCache, _id3, _DOMFilterFactory_instances, cache_get, hcmCache_get, defs_get, createTables_fn, createUrl_fn, addLuminosityConversion_fn, addGrayConversion_fn, createFilter_fn, appendFeFunc_fn, addTransferMapConversion_fn, addTransferMapAlphaConversion_fn, getRGB_fn, _CanvasGraphics_instances, restoreInitialState_fn, drawFilter_fn, getScaledPath_fn, _f, _port, _src, _metadataMap, _data, _isDisplay, _isPrint, _userSet, _visible, _cachedGetHash, _groups, _initialHash, _order, _OptionalContentConfig_instances, evaluateVisibilityExpression_fn, _g, _capability, _container3, _disableProcessItems, _fontInspectorEnabled, _lang, _layoutTextParams, _pageHeight, _pageWidth, _reader, _rootContainer, _rotation, _scale, _styleCache, _textContentItemsStr, _textContentSource, _textDivs, _textDivProperties, _transform, _h, _ascentCache, _canvasContexts, _canvasCtxFonts, _minFontSize, _pendingTextLayers, _TextLayer_instances, processItems_fn, appendText_fn, layout_fn, _TextLayer_static, getCtx_fn, ensureCtxFont_fn, ensureMinFontSizeComputed_fn, getAscent_fn, _docId2, _delayedCleanupTimeout, _pendingCleanup, _PDFPageProxy_instances, tryCleanup_fn, abortDelayedCleanup_fn, _listeners, _deferred, _i, _fakeWorkerId, _isWorkerDisabled, _workerPorts, _PDFWorker_instances, resolve_fn, _PDFWorker_static, mainThreadWorkerMessageHandler_get, _methodPromises, _pageCache, _pagePromises, _pageRefCache, _passwordCapability, _WorkerTransport_instances, cacheSimpleMethod_fn, _objs, _PDFObjects_instances, ensureObj_fn, _internalRenderTask, _rAF, _canvasInUse, _updates, _hasBorder, _popupElement, _AnnotationElement_instances, setRectEdited_fn, _LinkAnnotationElement_instances, setInternalLink_fn, bindAttachment_fn, bindSetOCGState_fn, _boundKeyDown, _boundHide, _boundShow, _boundToggle, _color, _container4, _contentsObj, _dateObj, _elements, _parent, _parentRect, _pinned, _popup, _position2, _rect, _richText, _titleObj, _updates2, _wasVisible, _PopupElement_instances, html_get, fontSize_get, fontColor_get, makePopupContent_fn, keyDown_fn, setPosition_fn, toggle_fn, show_fn, hide_fn, _line, _square, _circle, _polyline, _polylinesGroupElement, _polylines, _InkAnnotationElement_instances, getTransform_fn, _trigger, _FileAttachmentAnnotationElement_instances, download_fn, _accessibilityManager, _annotationCanvasMap, _editableAnnotations, _structTreeLayer, _AnnotationLayer_instances, appendElement_fn, setAnnotationCanvasMap_fn, _j, _color2, _content, _editorDivId, _editModeAC, _fontSize, _FreeTextEditor_instances, updateFontSize_fn, updateColor_fn, extractText_fn, setEditorDimensions_fn, _FreeTextEditor_static, getNodeContent_fn, setContent_fn, serializeContent_fn, deserializeContent_fn, hasElementChanged_fn, _box, _bottom, _innerMargin, _isLTR, _top, _last, _lastX, _lastY, _min, _min_dist, _scaleFactor, _thickness, _points, _MIN_DIST, _MIN_DIFF, _MIN, _FreeDrawOutliner_instances, getLastCoords_fn, toSVGPathTwoPoints_fn, toSVGPathStart_fn, toSVGPathEnd_fn, getOutlineTwoPoints_fn, getOutlineStart_fn, getOutlineEnd_fn, _box2, _bbox, _innerMargin2, _isLTR2, _points2, _scaleFactor2, _outline, _FreeDrawOutline_instances, computeMinMax_fn, _box3, _lastPoint, _verticalEdges, _intervals, _HighlightOutliner_instances, getOutlines_fn, binarySearch_fn, insert_fn, remove_fn, breakEdge_fn, _box4, _outlines, _button, _buttonSwatch, _defaultColor, _dropdown, _dropdownWasFromKeyboard, _isMainColorPicker, _editor3, _eventBus, _openDropdownAC, _uiManager2, _type, _k, _l10nColor, _ColorPicker_instances, getDropdownRoot_fn, colorSelect_fn, keyDown_fn2, openDropdown_fn, pointerDown_fn2, isDropdownVisible_get, _anchorNode, _anchorOffset, _boxes, _clipPathId, _colorPicker2, _focusOutlines, _focusNode, _focusOffset, _highlightDiv, _highlightOutlines, _id4, _isFreeHighlight, _lastPoint2, _opacity, _outlineId, _text, _thickness2, _methodOfCreation, _HighlightEditor_instances, createOutlines_fn, createFreeOutlines_fn, updateColor_fn2, updateThickness_fn, changeThickness_fn, cleanDrawLayer_fn, addToDrawLayer_fn, _HighlightEditor_static, rotateBbox_fn, keydown_fn, setCaret_fn, getRotation_fn, serializeBoxes_fn, serializeOutlines_fn, highlightMove_fn, endHighlight_fn, hasElementChanged_fn2, _svgProperties, _drawOutlines, _mustBeCommitted, _currentDraw, _currentDrawingAC, _currentDrawingOptions, _currentPointerId, _currentPointerType, _currentPointerIds, _currentMoveTimestamp, _DrawingEditor_instances, createDrawOutlines_fn, createDrawing_fn, cleanDrawLayer_fn2, addToDrawLayer_fn2, convertToParentSpace_fn, convertToDrawSpace_fn, updateBbox_fn, rotateBox_fn, _last2, _line2, _lines, _rotation2, _thickness3, _points3, _lastSVGPath, _lastIndex, _outlines2, _parentWidth, _parentHeight, _InkDrawOutliner_instances, normalizePoint_fn, _bbox2, _currentRotation, _innerMargin3, _lines2, _parentWidth2, _parentHeight2, _parentScale, _rotation3, _thickness4, _InkDrawOutline_instances, getMarginComponents_fn, getBBoxWithNoMargin_fn, computeBbox_fn, updateThickness_fn2, _viewParameters, _InkEditor_instances, hasElementChanged_fn3, _bitmap, _bitmapId, _bitmapPromise, _bitmapUrl, _bitmapFile, _bitmapFileName, _canvas, _resizeTimeoutId, _isSvg, _hasBeenAddedInUndoStack, _StampEditor_instances, getBitmapFetched_fn, getBitmapDone_fn, getBitmap_fn, createCanvas_fn, scaleBitmap_fn, drawBitmap_fn, serializeBitmap_fn, hasElementChanged_fn4, _accessibilityManager2, _allowClick, _annotationLayer, _clickAC, _editorFocusTimeoutId, _editors, _hadPointerDown, _isDisabling, _isEnabling, _drawingAC, _focusedElement, _textLayer, _textSelectionAC, _uiManager3, _l2, _editorTypes2, _AnnotationEditorLayer_instances, textLayerPointerDown_fn, currentEditorType_get, createNewEditor_fn, getCenterPoint_fn, cleanup_fn, _parent2, _id5, _mapping, _toUpdate, _DrawLayer_static, _m, setBox_fn, _DrawLayer_instances, createSVG_fn, createClipPath_fn, updateProperties_fn, _classList, _disableAutoFetchTimeout, _percent, _style, _visible2, _state, _updateMatchesCountOnProgress, _visitedPagesCount, _PDFFindController_instances, onFind_fn, reset_fn, query_get, shouldDirtyMatch_fn, isEntireWord_fn, convertToRegExpString_fn, calculateMatch_fn, extractText_fn2, updatePage_fn, updateAllPages_fn, nextMatch_fn, matchesReady_fn, nextPageMatch_fn, advanceOffsetPage_fn, updateMatch_fn, onFindBarClose_fn, requestMatchesCount_fn, updateUIResultsCount_fn, updateUIState_fn, _PDFLinkService_static, isValidExplicitDest_fn, _onAppend, _eventAbortController, _AnnotationLayerBuilder_instances, updatePresentationModeState_fn, _openBlobUrls, _listeners2, _dir, _elements2, _lang2, _l10n, _L10n_static, fixupLangCode_fn, isRTL_fn, _genericl10n_GenericL10n_static, generateBundles_fn, createBundle_fn, getPaths_fn, generateBundlesFallback_fn, createBundleFallback_fn, _eventAbortController2, _PDFHistory_instances, pushOrReplaceState_fn, tryPushCurrentPosition_fn, isValidPage_fn, isValidState_fn, updateInternalState_fn, parseCurrentHash_fn, updateViewarea_fn, popState_fn, pageHide_fn, bindEvents_fn, unbindEvents_fn, _annotationLayer2, _drawLayer, _onAppend2, _structTreeLayer2, _textLayer2, _uiManager4, _opts, _drawLayer2, _promise2, _treeDom, _treePromise, _elementAttributes, _rawDims, _elementsToAddToTextLayer, _StructTreeLayerBuilder_instances, setAttributes_fn, addImageInTextLayer_fn, walk_fn, _enabled, _textChildren, _textNodes, _waitingElements, _TextAccessibilityManager_static, compareElementPositions_fn, _TextAccessibilityManager_instances, addIdToAriaOwns_fn, _eventAbortController3, _enablePermissions, _onAppend3, _renderingDone, _textLayer3, _textLayers, _selectionChangeAbortController, _TextLayerBuilder_instances, bindMouse_fn, _TextLayerBuilder_static, removeGlobalSelectionListener_fn, enableGlobalSelectionListener_fn, _annotationMode, _canvasWrapper, _enableHWA2, _hasRestrictedScaling, _isEditing2, _layerProperties, _loadingId, _originalViewport, _previousRotation, _scaleRoundX, _scaleRoundY, _renderError, _renderingState, _textLayerMode, _useThumbnailCanvas, _layers, _PDFPageView_instances, addLayer_fn, setDimensions_fn, dispatchLayerRendered_fn, renderAnnotationLayer_fn, renderAnnotationEditorLayer_fn, renderDrawLayer_fn, renderXfaLayer_fn, renderTextLayer_fn, renderStructTreeLayer_fn, buildXfaTextContentItems_fn, resetCanvas_fn, finishRenderTask_fn, _closeCapability, _destroyCapability, _docProperties, _eventAbortController4, _eventBus2, _externalServices, _pdfDocument, _pdfViewer, _ready, _scripting, _willPrintCapability, _PDFScriptingManager_instances, updateFromSandbox_fn, dispatchPageOpen_fn, dispatchPageClose_fn, initScripting_fn, destroyScripting_fn, _buf, _size, _PDFPageViewBuffer_instances, destroyFirstView_fn, _buffer, _altTextManager2, _annotationEditorHighlightColors, _annotationEditorMode, _annotationEditorUIManager, _annotationMode2, _containerTopLeft, _editorUndoBar, _enableHWA3, _enableHighlightFloatingButton2, _enablePermissions2, _enableUpdatedAddImage2, _enableNewAltTextWhenAddingImage2, _eventAbortController5, _mlManager2, _switchAnnotationEditorModeAC, _switchAnnotationEditorModeTimeoutId, _getAllTextInProgress, _hiddenCopyElement, _interruptCopyCondition, _previousContainerHeight, _resizeObserver, _scrollModePageState, _scaleTimeoutId, _supportsPinchToZoom, _textLayerMode2, _PDFViewer_instances, initializePermissions_fn, onePageRenderedOrForceFetch_fn, copyCallback_fn, ensurePageViewVisible_fn, scrollIntoView_fn, isSameScale_fn, setScaleUpdatePages_fn, pageWidthScaleFactor_get, setScale_fn, resetCurrentPageView_fn, switchToEditAnnotationMode_fn, ensurePdfPageLoaded_fn, getScrollAhead_fn, updateContainerHeightCss_fn, resizeObserverCallback_fn, cleanupSwitchAnnotationEditorMode_fn;
|
|
21
|
-
import { useAttrs, isReactive, watch, unref, computed, reactive, mergeModels, useModel, createBlock, openBlock, resolveDynamicComponent, getCurrentInstance, resolveComponent, createElementBlock, createCommentVNode, normalizeClass, normalizeStyle, withCtx, renderSlot, createElementVNode, toDisplayString, ref, createVNode, Fragment, renderList, createTextVNode, resolveDirective, withDirectives, mergeProps, inject, useSlots, normalizeProps, guardReactiveProps, createSlots, withModifiers, withKeys, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, toRef as toRef$1, readonly, customRef, vModelText, vShow, nextTick, h, isRef, vModelDynamic, Transition, provide, TransitionGroup, defineComponent, shallowRef, onUnmounted, isVNode, createApp, useTemplateRef, Teleport, render as render$3, toValue as toValue$2, onBeforeUpdate } from "vue";
|
|
21
|
+
import { useAttrs, isReactive, watch, unref, computed, reactive, mergeModels, useModel, createBlock, openBlock, resolveDynamicComponent, getCurrentInstance, resolveComponent, createElementBlock, createCommentVNode, normalizeClass, normalizeStyle, withCtx, renderSlot, createElementVNode, toDisplayString, ref, createVNode, Fragment, renderList, createTextVNode, resolveDirective, withDirectives, mergeProps, inject, useSlots, normalizeProps, guardReactiveProps, createSlots, withModifiers, withKeys, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, toRef as toRef$1, readonly, customRef, vModelText, vShow, nextTick, h, isRef, vModelDynamic, Transition, provide, TransitionGroup, defineComponent, shallowRef, onUnmounted, isVNode, createApp, useTemplateRef, Teleport, render as render$3, toValue as toValue$2, onBeforeUpdate, watchEffect } from "vue";
|
|
22
22
|
import ToastPlugin, { useToast } from "vue-toast-notification";
|
|
23
23
|
import draggable from "vuedraggable";
|
|
24
24
|
const limitlessBackgroundClasses = [
|
|
@@ -5640,16 +5640,47 @@ function requirePropertyExpr() {
|
|
|
5640
5640
|
return propertyExpr;
|
|
5641
5641
|
}
|
|
5642
5642
|
var propertyExprExports = requirePropertyExpr();
|
|
5643
|
-
var
|
|
5643
|
+
var tinyCase;
|
|
5644
|
+
var hasRequiredTinyCase;
|
|
5645
|
+
function requireTinyCase() {
|
|
5646
|
+
if (hasRequiredTinyCase) return tinyCase;
|
|
5647
|
+
hasRequiredTinyCase = 1;
|
|
5648
|
+
const reWords = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g;
|
|
5649
|
+
const words = (str) => str.match(reWords) || [];
|
|
5650
|
+
const upperFirst = (str) => str[0].toUpperCase() + str.slice(1);
|
|
5651
|
+
const join = (str, d3) => words(str).join(d3).toLowerCase();
|
|
5652
|
+
const camelCase = (str) => words(str).reduce(
|
|
5653
|
+
(acc, next2) => `${acc}${!acc ? next2.toLowerCase() : next2[0].toUpperCase() + next2.slice(1).toLowerCase()}`,
|
|
5654
|
+
""
|
|
5655
|
+
);
|
|
5656
|
+
const pascalCase = (str) => upperFirst(camelCase(str));
|
|
5657
|
+
const snakeCase = (str) => join(str, "_");
|
|
5658
|
+
const kebabCase = (str) => join(str, "-");
|
|
5659
|
+
const sentenceCase = (str) => upperFirst(join(str, " "));
|
|
5660
|
+
const titleCase = (str) => words(str).map(upperFirst).join(" ");
|
|
5661
|
+
tinyCase = {
|
|
5662
|
+
words,
|
|
5663
|
+
upperFirst,
|
|
5664
|
+
camelCase,
|
|
5665
|
+
pascalCase,
|
|
5666
|
+
snakeCase,
|
|
5667
|
+
kebabCase,
|
|
5668
|
+
sentenceCase,
|
|
5669
|
+
titleCase
|
|
5670
|
+
};
|
|
5671
|
+
return tinyCase;
|
|
5672
|
+
}
|
|
5673
|
+
var tinyCaseExports = requireTinyCase();
|
|
5674
|
+
var toposort$1 = { exports: {} };
|
|
5644
5675
|
var hasRequiredToposort;
|
|
5645
5676
|
function requireToposort() {
|
|
5646
|
-
if (hasRequiredToposort) return toposort.exports;
|
|
5677
|
+
if (hasRequiredToposort) return toposort$1.exports;
|
|
5647
5678
|
hasRequiredToposort = 1;
|
|
5648
|
-
toposort.exports = function(edges) {
|
|
5649
|
-
return
|
|
5679
|
+
toposort$1.exports = function(edges) {
|
|
5680
|
+
return toposort2(uniqueNodes(edges), edges);
|
|
5650
5681
|
};
|
|
5651
|
-
toposort.exports.array =
|
|
5652
|
-
function
|
|
5682
|
+
toposort$1.exports.array = toposort2;
|
|
5683
|
+
function toposort2(nodes, edges) {
|
|
5653
5684
|
var cursor = nodes.length, sorted = new Array(cursor), visited = {}, i2 = cursor, outgoingEdges = makeOutgoingEdges(edges), nodesHash = makeNodesHash(nodes);
|
|
5654
5685
|
edges.forEach(function(edge) {
|
|
5655
5686
|
if (!nodesHash.has(edge[0]) || !nodesHash.has(edge[1])) {
|
|
@@ -5714,9 +5745,10 @@ function requireToposort() {
|
|
|
5714
5745
|
}
|
|
5715
5746
|
return res;
|
|
5716
5747
|
}
|
|
5717
|
-
return toposort.exports;
|
|
5748
|
+
return toposort$1.exports;
|
|
5718
5749
|
}
|
|
5719
|
-
requireToposort();
|
|
5750
|
+
var toposortExports = requireToposort();
|
|
5751
|
+
const toposort = /* @__PURE__ */ getDefaultExportFromCjs(toposortExports);
|
|
5720
5752
|
const toString$2 = Object.prototype.toString;
|
|
5721
5753
|
const errorToString = Error.prototype.toString;
|
|
5722
5754
|
const regExpToString = RegExp.prototype.toString;
|
|
@@ -6126,6 +6158,9 @@ function getIn(schema, path, value, context = value) {
|
|
|
6126
6158
|
parentPath: lastPart
|
|
6127
6159
|
};
|
|
6128
6160
|
}
|
|
6161
|
+
function reach(obj, path, value, context) {
|
|
6162
|
+
return getIn(obj, path, value, context).schema;
|
|
6163
|
+
}
|
|
6129
6164
|
class ReferenceSet extends Set {
|
|
6130
6165
|
describe() {
|
|
6131
6166
|
const description = [];
|
|
@@ -6747,6 +6782,96 @@ for (const method of ["validate", "validateSync"]) Schema.prototype[`${method}At
|
|
|
6747
6782
|
};
|
|
6748
6783
|
for (const alias of ["equals", "is"]) Schema.prototype[alias] = Schema.prototype.oneOf;
|
|
6749
6784
|
for (const alias of ["not", "nope"]) Schema.prototype[alias] = Schema.prototype.notOneOf;
|
|
6785
|
+
const returnsTrue = () => true;
|
|
6786
|
+
function create$8(spec) {
|
|
6787
|
+
return new MixedSchema(spec);
|
|
6788
|
+
}
|
|
6789
|
+
class MixedSchema extends Schema {
|
|
6790
|
+
constructor(spec) {
|
|
6791
|
+
super(typeof spec === "function" ? {
|
|
6792
|
+
type: "mixed",
|
|
6793
|
+
check: spec
|
|
6794
|
+
} : Object.assign({
|
|
6795
|
+
type: "mixed",
|
|
6796
|
+
check: returnsTrue
|
|
6797
|
+
}, spec));
|
|
6798
|
+
}
|
|
6799
|
+
}
|
|
6800
|
+
create$8.prototype = MixedSchema.prototype;
|
|
6801
|
+
function create$7() {
|
|
6802
|
+
return new BooleanSchema();
|
|
6803
|
+
}
|
|
6804
|
+
class BooleanSchema extends Schema {
|
|
6805
|
+
constructor() {
|
|
6806
|
+
super({
|
|
6807
|
+
type: "boolean",
|
|
6808
|
+
check(v) {
|
|
6809
|
+
if (v instanceof Boolean) v = v.valueOf();
|
|
6810
|
+
return typeof v === "boolean";
|
|
6811
|
+
}
|
|
6812
|
+
});
|
|
6813
|
+
this.withMutation(() => {
|
|
6814
|
+
this.transform((value, _raw, ctx) => {
|
|
6815
|
+
if (ctx.spec.coerce && !ctx.isType(value)) {
|
|
6816
|
+
if (/^(true|1)$/i.test(String(value))) return true;
|
|
6817
|
+
if (/^(false|0)$/i.test(String(value))) return false;
|
|
6818
|
+
}
|
|
6819
|
+
return value;
|
|
6820
|
+
});
|
|
6821
|
+
});
|
|
6822
|
+
}
|
|
6823
|
+
isTrue(message2 = boolean.isValue) {
|
|
6824
|
+
return this.test({
|
|
6825
|
+
message: message2,
|
|
6826
|
+
name: "is-value",
|
|
6827
|
+
exclusive: true,
|
|
6828
|
+
params: {
|
|
6829
|
+
value: "true"
|
|
6830
|
+
},
|
|
6831
|
+
test(value) {
|
|
6832
|
+
return isAbsent(value) || value === true;
|
|
6833
|
+
}
|
|
6834
|
+
});
|
|
6835
|
+
}
|
|
6836
|
+
isFalse(message2 = boolean.isValue) {
|
|
6837
|
+
return this.test({
|
|
6838
|
+
message: message2,
|
|
6839
|
+
name: "is-value",
|
|
6840
|
+
exclusive: true,
|
|
6841
|
+
params: {
|
|
6842
|
+
value: "false"
|
|
6843
|
+
},
|
|
6844
|
+
test(value) {
|
|
6845
|
+
return isAbsent(value) || value === false;
|
|
6846
|
+
}
|
|
6847
|
+
});
|
|
6848
|
+
}
|
|
6849
|
+
default(def) {
|
|
6850
|
+
return super.default(def);
|
|
6851
|
+
}
|
|
6852
|
+
defined(msg) {
|
|
6853
|
+
return super.defined(msg);
|
|
6854
|
+
}
|
|
6855
|
+
optional() {
|
|
6856
|
+
return super.optional();
|
|
6857
|
+
}
|
|
6858
|
+
required(msg) {
|
|
6859
|
+
return super.required(msg);
|
|
6860
|
+
}
|
|
6861
|
+
notRequired() {
|
|
6862
|
+
return super.notRequired();
|
|
6863
|
+
}
|
|
6864
|
+
nullable() {
|
|
6865
|
+
return super.nullable();
|
|
6866
|
+
}
|
|
6867
|
+
nonNullable(msg) {
|
|
6868
|
+
return super.nonNullable(msg);
|
|
6869
|
+
}
|
|
6870
|
+
strip(v) {
|
|
6871
|
+
return super.strip(v);
|
|
6872
|
+
}
|
|
6873
|
+
}
|
|
6874
|
+
create$7.prototype = BooleanSchema.prototype;
|
|
6750
6875
|
const isoReg = /^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;
|
|
6751
6876
|
function parseIsoDate(date2) {
|
|
6752
6877
|
const struct = parseDateStruct(date2);
|
|
@@ -6786,6 +6911,333 @@ function parseDateStruct(date2) {
|
|
|
6786
6911
|
function toNumber(str, defaultValue = 0) {
|
|
6787
6912
|
return Number(str) || defaultValue;
|
|
6788
6913
|
}
|
|
6914
|
+
let rEmail = (
|
|
6915
|
+
// eslint-disable-next-line
|
|
6916
|
+
/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/
|
|
6917
|
+
);
|
|
6918
|
+
let rUrl = (
|
|
6919
|
+
// eslint-disable-next-line
|
|
6920
|
+
/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i
|
|
6921
|
+
);
|
|
6922
|
+
let rUUID = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
6923
|
+
let yearMonthDay = "^\\d{4}-\\d{2}-\\d{2}";
|
|
6924
|
+
let hourMinuteSecond = "\\d{2}:\\d{2}:\\d{2}";
|
|
6925
|
+
let zOrOffset = "(([+-]\\d{2}(:?\\d{2})?)|Z)";
|
|
6926
|
+
let rIsoDateTime = new RegExp(`${yearMonthDay}T${hourMinuteSecond}(\\.\\d+)?${zOrOffset}$`);
|
|
6927
|
+
let isTrimmed = (value) => isAbsent(value) || value === value.trim();
|
|
6928
|
+
let objStringTag = {}.toString();
|
|
6929
|
+
function create$6() {
|
|
6930
|
+
return new StringSchema();
|
|
6931
|
+
}
|
|
6932
|
+
class StringSchema extends Schema {
|
|
6933
|
+
constructor() {
|
|
6934
|
+
super({
|
|
6935
|
+
type: "string",
|
|
6936
|
+
check(value) {
|
|
6937
|
+
if (value instanceof String) value = value.valueOf();
|
|
6938
|
+
return typeof value === "string";
|
|
6939
|
+
}
|
|
6940
|
+
});
|
|
6941
|
+
this.withMutation(() => {
|
|
6942
|
+
this.transform((value, _raw, ctx) => {
|
|
6943
|
+
if (!ctx.spec.coerce || ctx.isType(value)) return value;
|
|
6944
|
+
if (Array.isArray(value)) return value;
|
|
6945
|
+
const strValue = value != null && value.toString ? value.toString() : value;
|
|
6946
|
+
if (strValue === objStringTag) return value;
|
|
6947
|
+
return strValue;
|
|
6948
|
+
});
|
|
6949
|
+
});
|
|
6950
|
+
}
|
|
6951
|
+
required(message2) {
|
|
6952
|
+
return super.required(message2).withMutation((schema) => schema.test({
|
|
6953
|
+
message: message2 || mixed.required,
|
|
6954
|
+
name: "required",
|
|
6955
|
+
skipAbsent: true,
|
|
6956
|
+
test: (value) => !!value.length
|
|
6957
|
+
}));
|
|
6958
|
+
}
|
|
6959
|
+
notRequired() {
|
|
6960
|
+
return super.notRequired().withMutation((schema) => {
|
|
6961
|
+
schema.tests = schema.tests.filter((t2) => t2.OPTIONS.name !== "required");
|
|
6962
|
+
return schema;
|
|
6963
|
+
});
|
|
6964
|
+
}
|
|
6965
|
+
length(length, message2 = string.length) {
|
|
6966
|
+
return this.test({
|
|
6967
|
+
message: message2,
|
|
6968
|
+
name: "length",
|
|
6969
|
+
exclusive: true,
|
|
6970
|
+
params: {
|
|
6971
|
+
length
|
|
6972
|
+
},
|
|
6973
|
+
skipAbsent: true,
|
|
6974
|
+
test(value) {
|
|
6975
|
+
return value.length === this.resolve(length);
|
|
6976
|
+
}
|
|
6977
|
+
});
|
|
6978
|
+
}
|
|
6979
|
+
min(min2, message2 = string.min) {
|
|
6980
|
+
return this.test({
|
|
6981
|
+
message: message2,
|
|
6982
|
+
name: "min",
|
|
6983
|
+
exclusive: true,
|
|
6984
|
+
params: {
|
|
6985
|
+
min: min2
|
|
6986
|
+
},
|
|
6987
|
+
skipAbsent: true,
|
|
6988
|
+
test(value) {
|
|
6989
|
+
return value.length >= this.resolve(min2);
|
|
6990
|
+
}
|
|
6991
|
+
});
|
|
6992
|
+
}
|
|
6993
|
+
max(max2, message2 = string.max) {
|
|
6994
|
+
return this.test({
|
|
6995
|
+
name: "max",
|
|
6996
|
+
exclusive: true,
|
|
6997
|
+
message: message2,
|
|
6998
|
+
params: {
|
|
6999
|
+
max: max2
|
|
7000
|
+
},
|
|
7001
|
+
skipAbsent: true,
|
|
7002
|
+
test(value) {
|
|
7003
|
+
return value.length <= this.resolve(max2);
|
|
7004
|
+
}
|
|
7005
|
+
});
|
|
7006
|
+
}
|
|
7007
|
+
matches(regex, options) {
|
|
7008
|
+
let excludeEmptyString = false;
|
|
7009
|
+
let message2;
|
|
7010
|
+
let name;
|
|
7011
|
+
if (options) {
|
|
7012
|
+
if (typeof options === "object") {
|
|
7013
|
+
({
|
|
7014
|
+
excludeEmptyString = false,
|
|
7015
|
+
message: message2,
|
|
7016
|
+
name
|
|
7017
|
+
} = options);
|
|
7018
|
+
} else {
|
|
7019
|
+
message2 = options;
|
|
7020
|
+
}
|
|
7021
|
+
}
|
|
7022
|
+
return this.test({
|
|
7023
|
+
name: name || "matches",
|
|
7024
|
+
message: message2 || string.matches,
|
|
7025
|
+
params: {
|
|
7026
|
+
regex
|
|
7027
|
+
},
|
|
7028
|
+
skipAbsent: true,
|
|
7029
|
+
test: (value) => value === "" && excludeEmptyString || value.search(regex) !== -1
|
|
7030
|
+
});
|
|
7031
|
+
}
|
|
7032
|
+
email(message2 = string.email) {
|
|
7033
|
+
return this.matches(rEmail, {
|
|
7034
|
+
name: "email",
|
|
7035
|
+
message: message2,
|
|
7036
|
+
excludeEmptyString: true
|
|
7037
|
+
});
|
|
7038
|
+
}
|
|
7039
|
+
url(message2 = string.url) {
|
|
7040
|
+
return this.matches(rUrl, {
|
|
7041
|
+
name: "url",
|
|
7042
|
+
message: message2,
|
|
7043
|
+
excludeEmptyString: true
|
|
7044
|
+
});
|
|
7045
|
+
}
|
|
7046
|
+
uuid(message2 = string.uuid) {
|
|
7047
|
+
return this.matches(rUUID, {
|
|
7048
|
+
name: "uuid",
|
|
7049
|
+
message: message2,
|
|
7050
|
+
excludeEmptyString: false
|
|
7051
|
+
});
|
|
7052
|
+
}
|
|
7053
|
+
datetime(options) {
|
|
7054
|
+
let message2 = "";
|
|
7055
|
+
let allowOffset;
|
|
7056
|
+
let precision;
|
|
7057
|
+
if (options) {
|
|
7058
|
+
if (typeof options === "object") {
|
|
7059
|
+
({
|
|
7060
|
+
message: message2 = "",
|
|
7061
|
+
allowOffset = false,
|
|
7062
|
+
precision = void 0
|
|
7063
|
+
} = options);
|
|
7064
|
+
} else {
|
|
7065
|
+
message2 = options;
|
|
7066
|
+
}
|
|
7067
|
+
}
|
|
7068
|
+
return this.matches(rIsoDateTime, {
|
|
7069
|
+
name: "datetime",
|
|
7070
|
+
message: message2 || string.datetime,
|
|
7071
|
+
excludeEmptyString: true
|
|
7072
|
+
}).test({
|
|
7073
|
+
name: "datetime_offset",
|
|
7074
|
+
message: message2 || string.datetime_offset,
|
|
7075
|
+
params: {
|
|
7076
|
+
allowOffset
|
|
7077
|
+
},
|
|
7078
|
+
skipAbsent: true,
|
|
7079
|
+
test: (value) => {
|
|
7080
|
+
if (!value || allowOffset) return true;
|
|
7081
|
+
const struct = parseDateStruct(value);
|
|
7082
|
+
if (!struct) return false;
|
|
7083
|
+
return !!struct.z;
|
|
7084
|
+
}
|
|
7085
|
+
}).test({
|
|
7086
|
+
name: "datetime_precision",
|
|
7087
|
+
message: message2 || string.datetime_precision,
|
|
7088
|
+
params: {
|
|
7089
|
+
precision
|
|
7090
|
+
},
|
|
7091
|
+
skipAbsent: true,
|
|
7092
|
+
test: (value) => {
|
|
7093
|
+
if (!value || precision == void 0) return true;
|
|
7094
|
+
const struct = parseDateStruct(value);
|
|
7095
|
+
if (!struct) return false;
|
|
7096
|
+
return struct.precision === precision;
|
|
7097
|
+
}
|
|
7098
|
+
});
|
|
7099
|
+
}
|
|
7100
|
+
//-- transforms --
|
|
7101
|
+
ensure() {
|
|
7102
|
+
return this.default("").transform((val) => val === null ? "" : val);
|
|
7103
|
+
}
|
|
7104
|
+
trim(message2 = string.trim) {
|
|
7105
|
+
return this.transform((val) => val != null ? val.trim() : val).test({
|
|
7106
|
+
message: message2,
|
|
7107
|
+
name: "trim",
|
|
7108
|
+
test: isTrimmed
|
|
7109
|
+
});
|
|
7110
|
+
}
|
|
7111
|
+
lowercase(message2 = string.lowercase) {
|
|
7112
|
+
return this.transform((value) => !isAbsent(value) ? value.toLowerCase() : value).test({
|
|
7113
|
+
message: message2,
|
|
7114
|
+
name: "string_case",
|
|
7115
|
+
exclusive: true,
|
|
7116
|
+
skipAbsent: true,
|
|
7117
|
+
test: (value) => isAbsent(value) || value === value.toLowerCase()
|
|
7118
|
+
});
|
|
7119
|
+
}
|
|
7120
|
+
uppercase(message2 = string.uppercase) {
|
|
7121
|
+
return this.transform((value) => !isAbsent(value) ? value.toUpperCase() : value).test({
|
|
7122
|
+
message: message2,
|
|
7123
|
+
name: "string_case",
|
|
7124
|
+
exclusive: true,
|
|
7125
|
+
skipAbsent: true,
|
|
7126
|
+
test: (value) => isAbsent(value) || value === value.toUpperCase()
|
|
7127
|
+
});
|
|
7128
|
+
}
|
|
7129
|
+
}
|
|
7130
|
+
create$6.prototype = StringSchema.prototype;
|
|
7131
|
+
let isNaN$1$1 = (value) => value != +value;
|
|
7132
|
+
function create$5() {
|
|
7133
|
+
return new NumberSchema();
|
|
7134
|
+
}
|
|
7135
|
+
class NumberSchema extends Schema {
|
|
7136
|
+
constructor() {
|
|
7137
|
+
super({
|
|
7138
|
+
type: "number",
|
|
7139
|
+
check(value) {
|
|
7140
|
+
if (value instanceof Number) value = value.valueOf();
|
|
7141
|
+
return typeof value === "number" && !isNaN$1$1(value);
|
|
7142
|
+
}
|
|
7143
|
+
});
|
|
7144
|
+
this.withMutation(() => {
|
|
7145
|
+
this.transform((value, _raw, ctx) => {
|
|
7146
|
+
if (!ctx.spec.coerce) return value;
|
|
7147
|
+
let parsed = value;
|
|
7148
|
+
if (typeof parsed === "string") {
|
|
7149
|
+
parsed = parsed.replace(/\s/g, "");
|
|
7150
|
+
if (parsed === "") return NaN;
|
|
7151
|
+
parsed = +parsed;
|
|
7152
|
+
}
|
|
7153
|
+
if (ctx.isType(parsed) || parsed === null) return parsed;
|
|
7154
|
+
return parseFloat(parsed);
|
|
7155
|
+
});
|
|
7156
|
+
});
|
|
7157
|
+
}
|
|
7158
|
+
min(min2, message2 = number.min) {
|
|
7159
|
+
return this.test({
|
|
7160
|
+
message: message2,
|
|
7161
|
+
name: "min",
|
|
7162
|
+
exclusive: true,
|
|
7163
|
+
params: {
|
|
7164
|
+
min: min2
|
|
7165
|
+
},
|
|
7166
|
+
skipAbsent: true,
|
|
7167
|
+
test(value) {
|
|
7168
|
+
return value >= this.resolve(min2);
|
|
7169
|
+
}
|
|
7170
|
+
});
|
|
7171
|
+
}
|
|
7172
|
+
max(max2, message2 = number.max) {
|
|
7173
|
+
return this.test({
|
|
7174
|
+
message: message2,
|
|
7175
|
+
name: "max",
|
|
7176
|
+
exclusive: true,
|
|
7177
|
+
params: {
|
|
7178
|
+
max: max2
|
|
7179
|
+
},
|
|
7180
|
+
skipAbsent: true,
|
|
7181
|
+
test(value) {
|
|
7182
|
+
return value <= this.resolve(max2);
|
|
7183
|
+
}
|
|
7184
|
+
});
|
|
7185
|
+
}
|
|
7186
|
+
lessThan(less, message2 = number.lessThan) {
|
|
7187
|
+
return this.test({
|
|
7188
|
+
message: message2,
|
|
7189
|
+
name: "max",
|
|
7190
|
+
exclusive: true,
|
|
7191
|
+
params: {
|
|
7192
|
+
less
|
|
7193
|
+
},
|
|
7194
|
+
skipAbsent: true,
|
|
7195
|
+
test(value) {
|
|
7196
|
+
return value < this.resolve(less);
|
|
7197
|
+
}
|
|
7198
|
+
});
|
|
7199
|
+
}
|
|
7200
|
+
moreThan(more, message2 = number.moreThan) {
|
|
7201
|
+
return this.test({
|
|
7202
|
+
message: message2,
|
|
7203
|
+
name: "min",
|
|
7204
|
+
exclusive: true,
|
|
7205
|
+
params: {
|
|
7206
|
+
more
|
|
7207
|
+
},
|
|
7208
|
+
skipAbsent: true,
|
|
7209
|
+
test(value) {
|
|
7210
|
+
return value > this.resolve(more);
|
|
7211
|
+
}
|
|
7212
|
+
});
|
|
7213
|
+
}
|
|
7214
|
+
positive(msg = number.positive) {
|
|
7215
|
+
return this.moreThan(0, msg);
|
|
7216
|
+
}
|
|
7217
|
+
negative(msg = number.negative) {
|
|
7218
|
+
return this.lessThan(0, msg);
|
|
7219
|
+
}
|
|
7220
|
+
integer(message2 = number.integer) {
|
|
7221
|
+
return this.test({
|
|
7222
|
+
name: "integer",
|
|
7223
|
+
message: message2,
|
|
7224
|
+
skipAbsent: true,
|
|
7225
|
+
test: (val) => Number.isInteger(val)
|
|
7226
|
+
});
|
|
7227
|
+
}
|
|
7228
|
+
truncate() {
|
|
7229
|
+
return this.transform((value) => !isAbsent(value) ? value | 0 : value);
|
|
7230
|
+
}
|
|
7231
|
+
round(method) {
|
|
7232
|
+
var _method;
|
|
7233
|
+
let avail = ["ceil", "floor", "round", "trunc"];
|
|
7234
|
+
method = ((_method = method) == null ? void 0 : _method.toLowerCase()) || "round";
|
|
7235
|
+
if (method === "trunc") return this.truncate();
|
|
7236
|
+
if (avail.indexOf(method.toLowerCase()) === -1) throw new TypeError("Only valid options for round() are: " + avail.join(", "));
|
|
7237
|
+
return this.transform((value) => !isAbsent(value) ? Math[method](value) : value);
|
|
7238
|
+
}
|
|
7239
|
+
}
|
|
7240
|
+
create$5.prototype = NumberSchema.prototype;
|
|
6789
7241
|
let invalidDate = /* @__PURE__ */ new Date("");
|
|
6790
7242
|
let isDate$3 = (obj) => Object.prototype.toString.call(obj) === "[object Date]";
|
|
6791
7243
|
class DateSchema extends Schema {
|
|
@@ -6847,6 +7299,550 @@ class DateSchema extends Schema {
|
|
|
6847
7299
|
}
|
|
6848
7300
|
}
|
|
6849
7301
|
DateSchema.INVALID_DATE = invalidDate;
|
|
7302
|
+
function sortFields(fields, excludedEdges = []) {
|
|
7303
|
+
let edges = [];
|
|
7304
|
+
let nodes = /* @__PURE__ */ new Set();
|
|
7305
|
+
let excludes = new Set(excludedEdges.map(([a3, b2]) => `${a3}-${b2}`));
|
|
7306
|
+
function addNode(depPath, key) {
|
|
7307
|
+
let node = propertyExprExports.split(depPath)[0];
|
|
7308
|
+
nodes.add(node);
|
|
7309
|
+
if (!excludes.has(`${key}-${node}`)) edges.push([key, node]);
|
|
7310
|
+
}
|
|
7311
|
+
for (const key of Object.keys(fields)) {
|
|
7312
|
+
let value = fields[key];
|
|
7313
|
+
nodes.add(key);
|
|
7314
|
+
if (Reference.isRef(value) && value.isSibling) addNode(value.path, key);
|
|
7315
|
+
else if (isSchema(value) && "deps" in value) value.deps.forEach((path) => addNode(path, key));
|
|
7316
|
+
}
|
|
7317
|
+
return toposort.array(Array.from(nodes), edges).reverse();
|
|
7318
|
+
}
|
|
7319
|
+
function findIndex$2(arr, err) {
|
|
7320
|
+
let idx = Infinity;
|
|
7321
|
+
arr.some((key, ii) => {
|
|
7322
|
+
var _err$path;
|
|
7323
|
+
if ((_err$path = err.path) != null && _err$path.includes(key)) {
|
|
7324
|
+
idx = ii;
|
|
7325
|
+
return true;
|
|
7326
|
+
}
|
|
7327
|
+
});
|
|
7328
|
+
return idx;
|
|
7329
|
+
}
|
|
7330
|
+
function sortByKeyOrder(keys) {
|
|
7331
|
+
return (a3, b2) => {
|
|
7332
|
+
return findIndex$2(keys, a3) - findIndex$2(keys, b2);
|
|
7333
|
+
};
|
|
7334
|
+
}
|
|
7335
|
+
const parseJson = (value, _2, ctx) => {
|
|
7336
|
+
if (typeof value !== "string") {
|
|
7337
|
+
return value;
|
|
7338
|
+
}
|
|
7339
|
+
let parsed = value;
|
|
7340
|
+
try {
|
|
7341
|
+
parsed = JSON.parse(value);
|
|
7342
|
+
} catch (err) {
|
|
7343
|
+
}
|
|
7344
|
+
return ctx.isType(parsed) ? parsed : value;
|
|
7345
|
+
};
|
|
7346
|
+
function deepPartial(schema) {
|
|
7347
|
+
if ("fields" in schema) {
|
|
7348
|
+
const partial = {};
|
|
7349
|
+
for (const [key, fieldSchema] of Object.entries(schema.fields)) {
|
|
7350
|
+
partial[key] = deepPartial(fieldSchema);
|
|
7351
|
+
}
|
|
7352
|
+
return schema.setFields(partial);
|
|
7353
|
+
}
|
|
7354
|
+
if (schema.type === "array") {
|
|
7355
|
+
const nextArray = schema.optional();
|
|
7356
|
+
if (nextArray.innerType) nextArray.innerType = deepPartial(nextArray.innerType);
|
|
7357
|
+
return nextArray;
|
|
7358
|
+
}
|
|
7359
|
+
if (schema.type === "tuple") {
|
|
7360
|
+
return schema.optional().clone({
|
|
7361
|
+
types: schema.spec.types.map(deepPartial)
|
|
7362
|
+
});
|
|
7363
|
+
}
|
|
7364
|
+
if ("optional" in schema) {
|
|
7365
|
+
return schema.optional();
|
|
7366
|
+
}
|
|
7367
|
+
return schema;
|
|
7368
|
+
}
|
|
7369
|
+
const deepHas = (obj, p) => {
|
|
7370
|
+
const path = [...propertyExprExports.normalizePath(p)];
|
|
7371
|
+
if (path.length === 1) return path[0] in obj;
|
|
7372
|
+
let last2 = path.pop();
|
|
7373
|
+
let parent = propertyExprExports.getter(propertyExprExports.join(path), true)(obj);
|
|
7374
|
+
return !!(parent && last2 in parent);
|
|
7375
|
+
};
|
|
7376
|
+
let isObject$4 = (obj) => Object.prototype.toString.call(obj) === "[object Object]";
|
|
7377
|
+
function unknown(ctx, value) {
|
|
7378
|
+
let known = Object.keys(ctx.fields);
|
|
7379
|
+
return Object.keys(value).filter((key) => known.indexOf(key) === -1);
|
|
7380
|
+
}
|
|
7381
|
+
const defaultSort = sortByKeyOrder([]);
|
|
7382
|
+
function create$3(spec) {
|
|
7383
|
+
return new ObjectSchema(spec);
|
|
7384
|
+
}
|
|
7385
|
+
class ObjectSchema extends Schema {
|
|
7386
|
+
constructor(spec) {
|
|
7387
|
+
super({
|
|
7388
|
+
type: "object",
|
|
7389
|
+
check(value) {
|
|
7390
|
+
return isObject$4(value) || typeof value === "function";
|
|
7391
|
+
}
|
|
7392
|
+
});
|
|
7393
|
+
this.fields = /* @__PURE__ */ Object.create(null);
|
|
7394
|
+
this._sortErrors = defaultSort;
|
|
7395
|
+
this._nodes = [];
|
|
7396
|
+
this._excludedEdges = [];
|
|
7397
|
+
this.withMutation(() => {
|
|
7398
|
+
if (spec) {
|
|
7399
|
+
this.shape(spec);
|
|
7400
|
+
}
|
|
7401
|
+
});
|
|
7402
|
+
}
|
|
7403
|
+
_cast(_value, options = {}) {
|
|
7404
|
+
var _options$stripUnknown;
|
|
7405
|
+
let value = super._cast(_value, options);
|
|
7406
|
+
if (value === void 0) return this.getDefault(options);
|
|
7407
|
+
if (!this._typeCheck(value)) return value;
|
|
7408
|
+
let fields = this.fields;
|
|
7409
|
+
let strip = (_options$stripUnknown = options.stripUnknown) != null ? _options$stripUnknown : this.spec.noUnknown;
|
|
7410
|
+
let props2 = [].concat(this._nodes, Object.keys(value).filter((v) => !this._nodes.includes(v)));
|
|
7411
|
+
let intermediateValue = {};
|
|
7412
|
+
let innerOptions = Object.assign({}, options, {
|
|
7413
|
+
parent: intermediateValue,
|
|
7414
|
+
__validating: options.__validating || false
|
|
7415
|
+
});
|
|
7416
|
+
let isChanged = false;
|
|
7417
|
+
for (const prop of props2) {
|
|
7418
|
+
let field = fields[prop];
|
|
7419
|
+
let exists = prop in value;
|
|
7420
|
+
if (field) {
|
|
7421
|
+
let fieldValue;
|
|
7422
|
+
let inputValue = value[prop];
|
|
7423
|
+
innerOptions.path = (options.path ? `${options.path}.` : "") + prop;
|
|
7424
|
+
field = field.resolve({
|
|
7425
|
+
value: inputValue,
|
|
7426
|
+
context: options.context,
|
|
7427
|
+
parent: intermediateValue
|
|
7428
|
+
});
|
|
7429
|
+
let fieldSpec = field instanceof Schema ? field.spec : void 0;
|
|
7430
|
+
let strict = fieldSpec == null ? void 0 : fieldSpec.strict;
|
|
7431
|
+
if (fieldSpec != null && fieldSpec.strip) {
|
|
7432
|
+
isChanged = isChanged || prop in value;
|
|
7433
|
+
continue;
|
|
7434
|
+
}
|
|
7435
|
+
fieldValue = !options.__validating || !strict ? (
|
|
7436
|
+
// TODO: use _cast, this is double resolving
|
|
7437
|
+
field.cast(value[prop], innerOptions)
|
|
7438
|
+
) : value[prop];
|
|
7439
|
+
if (fieldValue !== void 0) {
|
|
7440
|
+
intermediateValue[prop] = fieldValue;
|
|
7441
|
+
}
|
|
7442
|
+
} else if (exists && !strip) {
|
|
7443
|
+
intermediateValue[prop] = value[prop];
|
|
7444
|
+
}
|
|
7445
|
+
if (exists !== prop in intermediateValue || intermediateValue[prop] !== value[prop]) {
|
|
7446
|
+
isChanged = true;
|
|
7447
|
+
}
|
|
7448
|
+
}
|
|
7449
|
+
return isChanged ? intermediateValue : value;
|
|
7450
|
+
}
|
|
7451
|
+
_validate(_value, options = {}, panic, next2) {
|
|
7452
|
+
let {
|
|
7453
|
+
from = [],
|
|
7454
|
+
originalValue = _value,
|
|
7455
|
+
recursive = this.spec.recursive
|
|
7456
|
+
} = options;
|
|
7457
|
+
options.from = [{
|
|
7458
|
+
schema: this,
|
|
7459
|
+
value: originalValue
|
|
7460
|
+
}, ...from];
|
|
7461
|
+
options.__validating = true;
|
|
7462
|
+
options.originalValue = originalValue;
|
|
7463
|
+
super._validate(_value, options, panic, (objectErrors, value) => {
|
|
7464
|
+
if (!recursive || !isObject$4(value)) {
|
|
7465
|
+
next2(objectErrors, value);
|
|
7466
|
+
return;
|
|
7467
|
+
}
|
|
7468
|
+
originalValue = originalValue || value;
|
|
7469
|
+
let tests = [];
|
|
7470
|
+
for (let key of this._nodes) {
|
|
7471
|
+
let field = this.fields[key];
|
|
7472
|
+
if (!field || Reference.isRef(field)) {
|
|
7473
|
+
continue;
|
|
7474
|
+
}
|
|
7475
|
+
tests.push(field.asNestedTest({
|
|
7476
|
+
options,
|
|
7477
|
+
key,
|
|
7478
|
+
parent: value,
|
|
7479
|
+
parentPath: options.path,
|
|
7480
|
+
originalParent: originalValue
|
|
7481
|
+
}));
|
|
7482
|
+
}
|
|
7483
|
+
this.runTests({
|
|
7484
|
+
tests,
|
|
7485
|
+
value,
|
|
7486
|
+
originalValue,
|
|
7487
|
+
options
|
|
7488
|
+
}, panic, (fieldErrors) => {
|
|
7489
|
+
next2(fieldErrors.sort(this._sortErrors).concat(objectErrors), value);
|
|
7490
|
+
});
|
|
7491
|
+
});
|
|
7492
|
+
}
|
|
7493
|
+
clone(spec) {
|
|
7494
|
+
const next2 = super.clone(spec);
|
|
7495
|
+
next2.fields = Object.assign({}, this.fields);
|
|
7496
|
+
next2._nodes = this._nodes;
|
|
7497
|
+
next2._excludedEdges = this._excludedEdges;
|
|
7498
|
+
next2._sortErrors = this._sortErrors;
|
|
7499
|
+
return next2;
|
|
7500
|
+
}
|
|
7501
|
+
concat(schema) {
|
|
7502
|
+
let next2 = super.concat(schema);
|
|
7503
|
+
let nextFields = next2.fields;
|
|
7504
|
+
for (let [field, schemaOrRef] of Object.entries(this.fields)) {
|
|
7505
|
+
const target = nextFields[field];
|
|
7506
|
+
nextFields[field] = target === void 0 ? schemaOrRef : target;
|
|
7507
|
+
}
|
|
7508
|
+
return next2.withMutation((s3) => (
|
|
7509
|
+
// XXX: excludes here is wrong
|
|
7510
|
+
s3.setFields(nextFields, [...this._excludedEdges, ...schema._excludedEdges])
|
|
7511
|
+
));
|
|
7512
|
+
}
|
|
7513
|
+
_getDefault(options) {
|
|
7514
|
+
if ("default" in this.spec) {
|
|
7515
|
+
return super._getDefault(options);
|
|
7516
|
+
}
|
|
7517
|
+
if (!this._nodes.length) {
|
|
7518
|
+
return void 0;
|
|
7519
|
+
}
|
|
7520
|
+
let dft = {};
|
|
7521
|
+
this._nodes.forEach((key) => {
|
|
7522
|
+
var _innerOptions;
|
|
7523
|
+
const field = this.fields[key];
|
|
7524
|
+
let innerOptions = options;
|
|
7525
|
+
if ((_innerOptions = innerOptions) != null && _innerOptions.value) {
|
|
7526
|
+
innerOptions = Object.assign({}, innerOptions, {
|
|
7527
|
+
parent: innerOptions.value,
|
|
7528
|
+
value: innerOptions.value[key]
|
|
7529
|
+
});
|
|
7530
|
+
}
|
|
7531
|
+
dft[key] = field && "getDefault" in field ? field.getDefault(innerOptions) : void 0;
|
|
7532
|
+
});
|
|
7533
|
+
return dft;
|
|
7534
|
+
}
|
|
7535
|
+
setFields(shape, excludedEdges) {
|
|
7536
|
+
let next2 = this.clone();
|
|
7537
|
+
next2.fields = shape;
|
|
7538
|
+
next2._nodes = sortFields(shape, excludedEdges);
|
|
7539
|
+
next2._sortErrors = sortByKeyOrder(Object.keys(shape));
|
|
7540
|
+
if (excludedEdges) next2._excludedEdges = excludedEdges;
|
|
7541
|
+
return next2;
|
|
7542
|
+
}
|
|
7543
|
+
shape(additions, excludes = []) {
|
|
7544
|
+
return this.clone().withMutation((next2) => {
|
|
7545
|
+
let edges = next2._excludedEdges;
|
|
7546
|
+
if (excludes.length) {
|
|
7547
|
+
if (!Array.isArray(excludes[0])) excludes = [excludes];
|
|
7548
|
+
edges = [...next2._excludedEdges, ...excludes];
|
|
7549
|
+
}
|
|
7550
|
+
return next2.setFields(Object.assign(next2.fields, additions), edges);
|
|
7551
|
+
});
|
|
7552
|
+
}
|
|
7553
|
+
partial() {
|
|
7554
|
+
const partial = {};
|
|
7555
|
+
for (const [key, schema] of Object.entries(this.fields)) {
|
|
7556
|
+
partial[key] = "optional" in schema && schema.optional instanceof Function ? schema.optional() : schema;
|
|
7557
|
+
}
|
|
7558
|
+
return this.setFields(partial);
|
|
7559
|
+
}
|
|
7560
|
+
deepPartial() {
|
|
7561
|
+
const next2 = deepPartial(this);
|
|
7562
|
+
return next2;
|
|
7563
|
+
}
|
|
7564
|
+
pick(keys) {
|
|
7565
|
+
const picked = {};
|
|
7566
|
+
for (const key of keys) {
|
|
7567
|
+
if (this.fields[key]) picked[key] = this.fields[key];
|
|
7568
|
+
}
|
|
7569
|
+
return this.setFields(picked, this._excludedEdges.filter(([a3, b2]) => keys.includes(a3) && keys.includes(b2)));
|
|
7570
|
+
}
|
|
7571
|
+
omit(keys) {
|
|
7572
|
+
const remaining = [];
|
|
7573
|
+
for (const key of Object.keys(this.fields)) {
|
|
7574
|
+
if (keys.includes(key)) continue;
|
|
7575
|
+
remaining.push(key);
|
|
7576
|
+
}
|
|
7577
|
+
return this.pick(remaining);
|
|
7578
|
+
}
|
|
7579
|
+
from(from, to2, alias) {
|
|
7580
|
+
let fromGetter = propertyExprExports.getter(from, true);
|
|
7581
|
+
return this.transform((obj) => {
|
|
7582
|
+
if (!obj) return obj;
|
|
7583
|
+
let newObj = obj;
|
|
7584
|
+
if (deepHas(obj, from)) {
|
|
7585
|
+
newObj = Object.assign({}, obj);
|
|
7586
|
+
if (!alias) delete newObj[from];
|
|
7587
|
+
newObj[to2] = fromGetter(obj);
|
|
7588
|
+
}
|
|
7589
|
+
return newObj;
|
|
7590
|
+
});
|
|
7591
|
+
}
|
|
7592
|
+
/** Parse an input JSON string to an object */
|
|
7593
|
+
json() {
|
|
7594
|
+
return this.transform(parseJson);
|
|
7595
|
+
}
|
|
7596
|
+
/**
|
|
7597
|
+
* Similar to `noUnknown` but only validates that an object is the right shape without stripping the unknown keys
|
|
7598
|
+
*/
|
|
7599
|
+
exact(message2) {
|
|
7600
|
+
return this.test({
|
|
7601
|
+
name: "exact",
|
|
7602
|
+
exclusive: true,
|
|
7603
|
+
message: message2 || object.exact,
|
|
7604
|
+
test(value) {
|
|
7605
|
+
if (value == null) return true;
|
|
7606
|
+
const unknownKeys = unknown(this.schema, value);
|
|
7607
|
+
return unknownKeys.length === 0 || this.createError({
|
|
7608
|
+
params: {
|
|
7609
|
+
properties: unknownKeys.join(", ")
|
|
7610
|
+
}
|
|
7611
|
+
});
|
|
7612
|
+
}
|
|
7613
|
+
});
|
|
7614
|
+
}
|
|
7615
|
+
stripUnknown() {
|
|
7616
|
+
return this.clone({
|
|
7617
|
+
noUnknown: true
|
|
7618
|
+
});
|
|
7619
|
+
}
|
|
7620
|
+
noUnknown(noAllow = true, message2 = object.noUnknown) {
|
|
7621
|
+
if (typeof noAllow !== "boolean") {
|
|
7622
|
+
message2 = noAllow;
|
|
7623
|
+
noAllow = true;
|
|
7624
|
+
}
|
|
7625
|
+
let next2 = this.test({
|
|
7626
|
+
name: "noUnknown",
|
|
7627
|
+
exclusive: true,
|
|
7628
|
+
message: message2,
|
|
7629
|
+
test(value) {
|
|
7630
|
+
if (value == null) return true;
|
|
7631
|
+
const unknownKeys = unknown(this.schema, value);
|
|
7632
|
+
return !noAllow || unknownKeys.length === 0 || this.createError({
|
|
7633
|
+
params: {
|
|
7634
|
+
unknown: unknownKeys.join(", ")
|
|
7635
|
+
}
|
|
7636
|
+
});
|
|
7637
|
+
}
|
|
7638
|
+
});
|
|
7639
|
+
next2.spec.noUnknown = noAllow;
|
|
7640
|
+
return next2;
|
|
7641
|
+
}
|
|
7642
|
+
unknown(allow = true, message2 = object.noUnknown) {
|
|
7643
|
+
return this.noUnknown(!allow, message2);
|
|
7644
|
+
}
|
|
7645
|
+
transformKeys(fn7) {
|
|
7646
|
+
return this.transform((obj) => {
|
|
7647
|
+
if (!obj) return obj;
|
|
7648
|
+
const result = {};
|
|
7649
|
+
for (const key of Object.keys(obj)) result[fn7(key)] = obj[key];
|
|
7650
|
+
return result;
|
|
7651
|
+
});
|
|
7652
|
+
}
|
|
7653
|
+
camelCase() {
|
|
7654
|
+
return this.transformKeys(tinyCaseExports.camelCase);
|
|
7655
|
+
}
|
|
7656
|
+
snakeCase() {
|
|
7657
|
+
return this.transformKeys(tinyCaseExports.snakeCase);
|
|
7658
|
+
}
|
|
7659
|
+
constantCase() {
|
|
7660
|
+
return this.transformKeys((key) => tinyCaseExports.snakeCase(key).toUpperCase());
|
|
7661
|
+
}
|
|
7662
|
+
describe(options) {
|
|
7663
|
+
const next2 = (options ? this.resolve(options) : this).clone();
|
|
7664
|
+
const base = super.describe(options);
|
|
7665
|
+
base.fields = {};
|
|
7666
|
+
for (const [key, value] of Object.entries(next2.fields)) {
|
|
7667
|
+
var _innerOptions2;
|
|
7668
|
+
let innerOptions = options;
|
|
7669
|
+
if ((_innerOptions2 = innerOptions) != null && _innerOptions2.value) {
|
|
7670
|
+
innerOptions = Object.assign({}, innerOptions, {
|
|
7671
|
+
parent: innerOptions.value,
|
|
7672
|
+
value: innerOptions.value[key]
|
|
7673
|
+
});
|
|
7674
|
+
}
|
|
7675
|
+
base.fields[key] = value.describe(innerOptions);
|
|
7676
|
+
}
|
|
7677
|
+
return base;
|
|
7678
|
+
}
|
|
7679
|
+
}
|
|
7680
|
+
create$3.prototype = ObjectSchema.prototype;
|
|
7681
|
+
function create$2(type) {
|
|
7682
|
+
return new ArraySchema(type);
|
|
7683
|
+
}
|
|
7684
|
+
class ArraySchema extends Schema {
|
|
7685
|
+
constructor(type) {
|
|
7686
|
+
super({
|
|
7687
|
+
type: "array",
|
|
7688
|
+
spec: {
|
|
7689
|
+
types: type
|
|
7690
|
+
},
|
|
7691
|
+
check(v) {
|
|
7692
|
+
return Array.isArray(v);
|
|
7693
|
+
}
|
|
7694
|
+
});
|
|
7695
|
+
this.innerType = void 0;
|
|
7696
|
+
this.innerType = type;
|
|
7697
|
+
}
|
|
7698
|
+
_cast(_value, _opts2) {
|
|
7699
|
+
const value = super._cast(_value, _opts2);
|
|
7700
|
+
if (!this._typeCheck(value) || !this.innerType) {
|
|
7701
|
+
return value;
|
|
7702
|
+
}
|
|
7703
|
+
let isChanged = false;
|
|
7704
|
+
const castArray = value.map((v, idx) => {
|
|
7705
|
+
const castElement = this.innerType.cast(v, Object.assign({}, _opts2, {
|
|
7706
|
+
path: `${_opts2.path || ""}[${idx}]`
|
|
7707
|
+
}));
|
|
7708
|
+
if (castElement !== v) {
|
|
7709
|
+
isChanged = true;
|
|
7710
|
+
}
|
|
7711
|
+
return castElement;
|
|
7712
|
+
});
|
|
7713
|
+
return isChanged ? castArray : value;
|
|
7714
|
+
}
|
|
7715
|
+
_validate(_value, options = {}, panic, next2) {
|
|
7716
|
+
var _options$recursive;
|
|
7717
|
+
let innerType = this.innerType;
|
|
7718
|
+
let recursive = (_options$recursive = options.recursive) != null ? _options$recursive : this.spec.recursive;
|
|
7719
|
+
options.originalValue != null ? options.originalValue : _value;
|
|
7720
|
+
super._validate(_value, options, panic, (arrayErrors, value) => {
|
|
7721
|
+
var _options$originalValu2;
|
|
7722
|
+
if (!recursive || !innerType || !this._typeCheck(value)) {
|
|
7723
|
+
next2(arrayErrors, value);
|
|
7724
|
+
return;
|
|
7725
|
+
}
|
|
7726
|
+
let tests = new Array(value.length);
|
|
7727
|
+
for (let index = 0; index < value.length; index++) {
|
|
7728
|
+
var _options$originalValu;
|
|
7729
|
+
tests[index] = innerType.asNestedTest({
|
|
7730
|
+
options,
|
|
7731
|
+
index,
|
|
7732
|
+
parent: value,
|
|
7733
|
+
parentPath: options.path,
|
|
7734
|
+
originalParent: (_options$originalValu = options.originalValue) != null ? _options$originalValu : _value
|
|
7735
|
+
});
|
|
7736
|
+
}
|
|
7737
|
+
this.runTests({
|
|
7738
|
+
value,
|
|
7739
|
+
tests,
|
|
7740
|
+
originalValue: (_options$originalValu2 = options.originalValue) != null ? _options$originalValu2 : _value,
|
|
7741
|
+
options
|
|
7742
|
+
}, panic, (innerTypeErrors) => next2(innerTypeErrors.concat(arrayErrors), value));
|
|
7743
|
+
});
|
|
7744
|
+
}
|
|
7745
|
+
clone(spec) {
|
|
7746
|
+
const next2 = super.clone(spec);
|
|
7747
|
+
next2.innerType = this.innerType;
|
|
7748
|
+
return next2;
|
|
7749
|
+
}
|
|
7750
|
+
/** Parse an input JSON string to an object */
|
|
7751
|
+
json() {
|
|
7752
|
+
return this.transform(parseJson);
|
|
7753
|
+
}
|
|
7754
|
+
concat(schema) {
|
|
7755
|
+
let next2 = super.concat(schema);
|
|
7756
|
+
next2.innerType = this.innerType;
|
|
7757
|
+
if (schema.innerType)
|
|
7758
|
+
next2.innerType = next2.innerType ? (
|
|
7759
|
+
// @ts-expect-error Lazy doesn't have concat and will break
|
|
7760
|
+
next2.innerType.concat(schema.innerType)
|
|
7761
|
+
) : schema.innerType;
|
|
7762
|
+
return next2;
|
|
7763
|
+
}
|
|
7764
|
+
of(schema) {
|
|
7765
|
+
let next2 = this.clone();
|
|
7766
|
+
if (!isSchema(schema)) throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: " + printValue(schema));
|
|
7767
|
+
next2.innerType = schema;
|
|
7768
|
+
next2.spec = Object.assign({}, next2.spec, {
|
|
7769
|
+
types: schema
|
|
7770
|
+
});
|
|
7771
|
+
return next2;
|
|
7772
|
+
}
|
|
7773
|
+
length(length, message2 = array.length) {
|
|
7774
|
+
return this.test({
|
|
7775
|
+
message: message2,
|
|
7776
|
+
name: "length",
|
|
7777
|
+
exclusive: true,
|
|
7778
|
+
params: {
|
|
7779
|
+
length
|
|
7780
|
+
},
|
|
7781
|
+
skipAbsent: true,
|
|
7782
|
+
test(value) {
|
|
7783
|
+
return value.length === this.resolve(length);
|
|
7784
|
+
}
|
|
7785
|
+
});
|
|
7786
|
+
}
|
|
7787
|
+
min(min2, message2) {
|
|
7788
|
+
message2 = message2 || array.min;
|
|
7789
|
+
return this.test({
|
|
7790
|
+
message: message2,
|
|
7791
|
+
name: "min",
|
|
7792
|
+
exclusive: true,
|
|
7793
|
+
params: {
|
|
7794
|
+
min: min2
|
|
7795
|
+
},
|
|
7796
|
+
skipAbsent: true,
|
|
7797
|
+
// FIXME(ts): Array<typeof T>
|
|
7798
|
+
test(value) {
|
|
7799
|
+
return value.length >= this.resolve(min2);
|
|
7800
|
+
}
|
|
7801
|
+
});
|
|
7802
|
+
}
|
|
7803
|
+
max(max2, message2) {
|
|
7804
|
+
message2 = message2 || array.max;
|
|
7805
|
+
return this.test({
|
|
7806
|
+
message: message2,
|
|
7807
|
+
name: "max",
|
|
7808
|
+
exclusive: true,
|
|
7809
|
+
params: {
|
|
7810
|
+
max: max2
|
|
7811
|
+
},
|
|
7812
|
+
skipAbsent: true,
|
|
7813
|
+
test(value) {
|
|
7814
|
+
return value.length <= this.resolve(max2);
|
|
7815
|
+
}
|
|
7816
|
+
});
|
|
7817
|
+
}
|
|
7818
|
+
ensure() {
|
|
7819
|
+
return this.default(() => []).transform((val, original) => {
|
|
7820
|
+
if (this._typeCheck(val)) return val;
|
|
7821
|
+
return original == null ? [] : [].concat(original);
|
|
7822
|
+
});
|
|
7823
|
+
}
|
|
7824
|
+
compact(rejector) {
|
|
7825
|
+
let reject = !rejector ? (v) => !!v : (v, i2, a3) => !rejector(v, i2, a3);
|
|
7826
|
+
return this.transform((values2) => values2 != null ? values2.filter(reject) : values2);
|
|
7827
|
+
}
|
|
7828
|
+
describe(options) {
|
|
7829
|
+
const next2 = (options ? this.resolve(options) : this).clone();
|
|
7830
|
+
const base = super.describe(options);
|
|
7831
|
+
if (next2.innerType) {
|
|
7832
|
+
var _innerOptions;
|
|
7833
|
+
let innerOptions = options;
|
|
7834
|
+
if ((_innerOptions = innerOptions) != null && _innerOptions.value) {
|
|
7835
|
+
innerOptions = Object.assign({}, innerOptions, {
|
|
7836
|
+
parent: innerOptions.value,
|
|
7837
|
+
value: innerOptions.value[0]
|
|
7838
|
+
});
|
|
7839
|
+
}
|
|
7840
|
+
base.innerType = next2.innerType.describe(innerOptions);
|
|
7841
|
+
}
|
|
7842
|
+
return base;
|
|
7843
|
+
}
|
|
7844
|
+
}
|
|
7845
|
+
create$2.prototype = ArraySchema.prototype;
|
|
6850
7846
|
function generateComputedChildren(localVariable, newComputedSubKeys = []) {
|
|
6851
7847
|
const subItems = newComputedSubKeys.reduce((result, key) => {
|
|
6852
7848
|
if (!key) {
|
|
@@ -6892,8 +7888,12 @@ function generateComputedParent(data) {
|
|
|
6892
7888
|
}
|
|
6893
7889
|
const isFieldRequired = (schema, fieldName) => {
|
|
6894
7890
|
var _a3;
|
|
6895
|
-
|
|
6896
|
-
|
|
7891
|
+
try {
|
|
7892
|
+
const fieldSchema = reach(schema, fieldName);
|
|
7893
|
+
return ((_a3 = fieldSchema == null ? void 0 : fieldSchema.spec) == null ? void 0 : _a3.optional) === false;
|
|
7894
|
+
} catch {
|
|
7895
|
+
return false;
|
|
7896
|
+
}
|
|
6897
7897
|
};
|
|
6898
7898
|
function getStyleFromObject(style) {
|
|
6899
7899
|
return Object.keys(style).filter((key) => style[key]).join("; ");
|
|
@@ -8195,7 +9195,7 @@ function createDOMPurify() {
|
|
|
8195
9195
|
return DOMPurify;
|
|
8196
9196
|
}
|
|
8197
9197
|
var purify = createDOMPurify();
|
|
8198
|
-
const _sfc_main$
|
|
9198
|
+
const _sfc_main$1I = {
|
|
8199
9199
|
__name: "AppHtml",
|
|
8200
9200
|
props: /* @__PURE__ */ mergeModels({
|
|
8201
9201
|
tag: {
|
|
@@ -8220,8 +9220,8 @@ const _sfc_main$1G = {
|
|
|
8220
9220
|
};
|
|
8221
9221
|
}
|
|
8222
9222
|
};
|
|
8223
|
-
const _hoisted_1$
|
|
8224
|
-
const _sfc_main$
|
|
9223
|
+
const _hoisted_1$1d = ["src"];
|
|
9224
|
+
const _sfc_main$1H = {
|
|
8225
9225
|
__name: "AppIcon",
|
|
8226
9226
|
props: {
|
|
8227
9227
|
value: {},
|
|
@@ -8305,7 +9305,7 @@ const _sfc_main$1F = {
|
|
|
8305
9305
|
return null;
|
|
8306
9306
|
});
|
|
8307
9307
|
return (_ctx, _cache2) => {
|
|
8308
|
-
return isSvg.value ? (openBlock(), createBlock(_sfc_main$
|
|
9308
|
+
return isSvg.value ? (openBlock(), createBlock(_sfc_main$1I, {
|
|
8309
9309
|
key: 0,
|
|
8310
9310
|
modelValue: svgValue.value,
|
|
8311
9311
|
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => svgValue.value = $event),
|
|
@@ -8315,7 +9315,7 @@ const _sfc_main$1F = {
|
|
|
8315
9315
|
src: __props.value,
|
|
8316
9316
|
style: normalizeStyle(imgStyle.value),
|
|
8317
9317
|
class: normalizeClass(iconClass.value)
|
|
8318
|
-
}, null, 14, _hoisted_1$
|
|
9318
|
+
}, null, 14, _hoisted_1$1d)) : isComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(is.value), {
|
|
8319
9319
|
key: 2,
|
|
8320
9320
|
class: normalizeClass(iconClass.value),
|
|
8321
9321
|
size: __props.size,
|
|
@@ -8329,7 +9329,7 @@ const _sfc_main$1F = {
|
|
|
8329
9329
|
};
|
|
8330
9330
|
}
|
|
8331
9331
|
};
|
|
8332
|
-
const _sfc_main$
|
|
9332
|
+
const _sfc_main$1G = {
|
|
8333
9333
|
__name: "AppBadge",
|
|
8334
9334
|
props: {
|
|
8335
9335
|
value: {
|
|
@@ -8414,7 +9414,7 @@ const _sfc_main$1E = {
|
|
|
8414
9414
|
to: __props.route
|
|
8415
9415
|
}, {
|
|
8416
9416
|
default: withCtx(() => [
|
|
8417
|
-
computedIcon.value ? (openBlock(), createBlock(_sfc_main$
|
|
9417
|
+
computedIcon.value ? (openBlock(), createBlock(_sfc_main$1H, {
|
|
8418
9418
|
key: 0,
|
|
8419
9419
|
value: computedIcon.value,
|
|
8420
9420
|
style: { "padding": "2px" }
|
|
@@ -8428,7 +9428,7 @@ const _sfc_main$1E = {
|
|
|
8428
9428
|
};
|
|
8429
9429
|
}
|
|
8430
9430
|
};
|
|
8431
|
-
const _sfc_main$
|
|
9431
|
+
const _sfc_main$1F = {
|
|
8432
9432
|
__name: "AppPlaceholderImage",
|
|
8433
9433
|
props: {
|
|
8434
9434
|
imgSize: {
|
|
@@ -8460,7 +9460,7 @@ const _sfc_main$1D = {
|
|
|
8460
9460
|
};
|
|
8461
9461
|
}
|
|
8462
9462
|
};
|
|
8463
|
-
const _hoisted_1$
|
|
9463
|
+
const _hoisted_1$1c = { class: "breadcrumb" };
|
|
8464
9464
|
const _hoisted_2$U = {
|
|
8465
9465
|
key: 0,
|
|
8466
9466
|
class: "breadcrumb-elements-item"
|
|
@@ -8470,7 +9470,7 @@ const _hoisted_4$t = {
|
|
|
8470
9470
|
key: 0,
|
|
8471
9471
|
class: "pl-5 pr-5"
|
|
8472
9472
|
};
|
|
8473
|
-
const _sfc_main$
|
|
9473
|
+
const _sfc_main$1E = {
|
|
8474
9474
|
__name: "AppBreadcrumbs",
|
|
8475
9475
|
props: {
|
|
8476
9476
|
value: {
|
|
@@ -8491,9 +9491,9 @@ const _sfc_main$1C = {
|
|
|
8491
9491
|
};
|
|
8492
9492
|
return (_ctx, _cache2) => {
|
|
8493
9493
|
const _component_router_link = resolveComponent("router-link");
|
|
8494
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9494
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
8495
9495
|
__props.isLoading ? (openBlock(), createElementBlock("div", _hoisted_2$U, [
|
|
8496
|
-
createVNode(_sfc_main$
|
|
9496
|
+
createVNode(_sfc_main$1F, { style: { "width": "200px", "height": "20px" } })
|
|
8497
9497
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.value, (breadcrumb, index) => {
|
|
8498
9498
|
return openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
8499
9499
|
renderSlot(_ctx.$slots, "breadcrumb", {
|
|
@@ -8521,7 +9521,7 @@ const _sfc_main$1C = {
|
|
|
8521
9521
|
};
|
|
8522
9522
|
}
|
|
8523
9523
|
};
|
|
8524
|
-
const _sfc_main$
|
|
9524
|
+
const _sfc_main$1D = /* @__PURE__ */ Object.assign({
|
|
8525
9525
|
inheritAttrs: false
|
|
8526
9526
|
}, {
|
|
8527
9527
|
__name: "AppButton",
|
|
@@ -8732,7 +9732,7 @@ const _sfc_main$1B = /* @__PURE__ */ Object.assign({
|
|
|
8732
9732
|
style: _ctx.$attrs.style
|
|
8733
9733
|
}, computedProps.value, { onClick }), {
|
|
8734
9734
|
default: withCtx(() => [
|
|
8735
|
-
computedIcon.value ? (openBlock(), createBlock(_sfc_main$
|
|
9735
|
+
computedIcon.value ? (openBlock(), createBlock(_sfc_main$1H, {
|
|
8736
9736
|
key: 0,
|
|
8737
9737
|
value: computedIcon.value,
|
|
8738
9738
|
stroke: computedStroke.value
|
|
@@ -8750,7 +9750,7 @@ const _sfc_main$1B = /* @__PURE__ */ Object.assign({
|
|
|
8750
9750
|
};
|
|
8751
9751
|
}
|
|
8752
9752
|
});
|
|
8753
|
-
const _sfc_main$
|
|
9753
|
+
const _sfc_main$1C = {
|
|
8754
9754
|
__name: "AppButtonGroup",
|
|
8755
9755
|
props: {
|
|
8756
9756
|
/**
|
|
@@ -8807,7 +9807,7 @@ const _sfc_main$1A = {
|
|
|
8807
9807
|
key: index,
|
|
8808
9808
|
button: __props.value
|
|
8809
9809
|
}, () => [
|
|
8810
|
-
isVisible2(button) ? (openBlock(), createBlock(_sfc_main$
|
|
9810
|
+
isVisible2(button) ? (openBlock(), createBlock(_sfc_main$1D, {
|
|
8811
9811
|
key: 0,
|
|
8812
9812
|
value: button,
|
|
8813
9813
|
size: __props.size,
|
|
@@ -8904,7 +9904,7 @@ const _export_sfc = (sfc, props2) => {
|
|
|
8904
9904
|
}
|
|
8905
9905
|
return target;
|
|
8906
9906
|
};
|
|
8907
|
-
const _hoisted_1$
|
|
9907
|
+
const _hoisted_1$1b = ["name"];
|
|
8908
9908
|
const _hoisted_2$T = {
|
|
8909
9909
|
key: 0,
|
|
8910
9910
|
class: "text-danger"
|
|
@@ -8921,7 +9921,7 @@ const _hoisted_5$m = {
|
|
|
8921
9921
|
key: 1,
|
|
8922
9922
|
class: "help-block"
|
|
8923
9923
|
};
|
|
8924
|
-
const _sfc_main$
|
|
9924
|
+
const _sfc_main$1B = {
|
|
8925
9925
|
__name: "AppFormElement",
|
|
8926
9926
|
props: {
|
|
8927
9927
|
labelStyle: {},
|
|
@@ -9020,11 +10020,11 @@ const _sfc_main$1z = {
|
|
|
9020
10020
|
_ctx.infoText ? (openBlock(), createElementBlock("span", _hoisted_5$m, toDisplayString(_ctx.infoText), 1)) : createCommentVNode("", true),
|
|
9021
10021
|
renderSlot(_ctx.$slots, "help-block", {}, void 0, true)
|
|
9022
10022
|
], 4)
|
|
9023
|
-
], 10, _hoisted_1$
|
|
10023
|
+
], 10, _hoisted_1$1b)) : createCommentVNode("", true);
|
|
9024
10024
|
};
|
|
9025
10025
|
}
|
|
9026
10026
|
};
|
|
9027
|
-
const AppFormElement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10027
|
+
const AppFormElement = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-cf0edae9"]]);
|
|
9028
10028
|
function buildFormatLongFn$1(args) {
|
|
9029
10029
|
return function() {
|
|
9030
10030
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -13386,11 +14386,11 @@ const appDatePickerProps = {
|
|
|
13386
14386
|
}
|
|
13387
14387
|
}
|
|
13388
14388
|
};
|
|
13389
|
-
const _hoisted_1$
|
|
14389
|
+
const _hoisted_1$1a = { class: "" };
|
|
13390
14390
|
const CODE_SUB_DAY$1 = "subday";
|
|
13391
14391
|
const CODE_TODAY$1 = "today";
|
|
13392
14392
|
const CODE_ADD_DAY$1 = "addday";
|
|
13393
|
-
const _sfc_main$
|
|
14393
|
+
const _sfc_main$1A = {
|
|
13394
14394
|
__name: "AppDateEasyButtons",
|
|
13395
14395
|
props: {
|
|
13396
14396
|
modelValue: Date,
|
|
@@ -13452,8 +14452,8 @@ const _sfc_main$1y = {
|
|
|
13452
14452
|
selectedDate.value = subDays$1(selectedDate.value, 1);
|
|
13453
14453
|
};
|
|
13454
14454
|
return (_ctx, _cache2) => {
|
|
13455
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13456
|
-
createVNode(_sfc_main$
|
|
14455
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
14456
|
+
createVNode(_sfc_main$1C, {
|
|
13457
14457
|
value: buttons.value,
|
|
13458
14458
|
onClick: onEasyButtonsInput
|
|
13459
14459
|
}, null, 8, ["value"])
|
|
@@ -13461,7 +14461,7 @@ const _sfc_main$1y = {
|
|
|
13461
14461
|
};
|
|
13462
14462
|
}
|
|
13463
14463
|
};
|
|
13464
|
-
const _hoisted_1$
|
|
14464
|
+
const _hoisted_1$19 = {
|
|
13465
14465
|
class: "flex-center-vertical dp__input dp__pointer dp__input_readonly dp__input_reg",
|
|
13466
14466
|
style: { "gap": "3px" }
|
|
13467
14467
|
};
|
|
@@ -13477,7 +14477,7 @@ const _hoisted_7$6 = {
|
|
|
13477
14477
|
key: 0,
|
|
13478
14478
|
class: "ml-10"
|
|
13479
14479
|
};
|
|
13480
|
-
const _sfc_main$
|
|
14480
|
+
const _sfc_main$1z = {
|
|
13481
14481
|
__name: "AppDatePicker",
|
|
13482
14482
|
props: /* @__PURE__ */ mergeModels({
|
|
13483
14483
|
...appDatePickerProps,
|
|
@@ -13548,7 +14548,7 @@ const _sfc_main$1x = {
|
|
|
13548
14548
|
"auto-apply": true
|
|
13549
14549
|
}, _ctx.$attrs), {
|
|
13550
14550
|
"dp-input": withCtx(({ value, onInput, onEnter, onTab, onClear, onBlur, onKeypress, onPaste }) => [
|
|
13551
|
-
createElementVNode("div", _hoisted_1$
|
|
14551
|
+
createElementVNode("div", _hoisted_1$19, [
|
|
13552
14552
|
_cache2[2] || (_cache2[2] = createElementVNode("i", { class: "ph-calendar-blank" }, null, -1)),
|
|
13553
14553
|
isDayOfWeekVisible.value ? (openBlock(), createBlock(_component_app_date_picker_day_of_week, {
|
|
13554
14554
|
key: 0,
|
|
@@ -13590,7 +14590,7 @@ const _sfc_main$1x = {
|
|
|
13590
14590
|
_: 1
|
|
13591
14591
|
}, 16, ["modelValue", "class", "disabled", "format", "format-locale", "name", "placeholder", "text-input", "disabled-dates"]),
|
|
13592
14592
|
_ctx.showEasyButtons && !_ctx.disabled ? (openBlock(), createElementBlock("div", _hoisted_7$6, [
|
|
13593
|
-
createVNode(_sfc_main$
|
|
14593
|
+
createVNode(_sfc_main$1A, {
|
|
13594
14594
|
modelValue: modelValue.value,
|
|
13595
14595
|
"onUpdate:modelValue": _cache2[1] || (_cache2[1] = ($event) => modelValue.value = $event)
|
|
13596
14596
|
}, null, 8, ["modelValue"])
|
|
@@ -13610,13 +14610,13 @@ const _sfc_main$1x = {
|
|
|
13610
14610
|
};
|
|
13611
14611
|
}
|
|
13612
14612
|
};
|
|
13613
|
-
const _hoisted_1$
|
|
14613
|
+
const _hoisted_1$18 = { class: "w-100" };
|
|
13614
14614
|
const _hoisted_2$R = { class: "flex-center-vertical w-100 gap-1" };
|
|
13615
14615
|
const _hoisted_3$A = {
|
|
13616
14616
|
key: 0,
|
|
13617
14617
|
class: "flex-center-vertical mt-1"
|
|
13618
14618
|
};
|
|
13619
|
-
const _sfc_main$
|
|
14619
|
+
const _sfc_main$1y = {
|
|
13620
14620
|
__name: "AppDatePickerRange",
|
|
13621
14621
|
props: /* @__PURE__ */ mergeModels({
|
|
13622
14622
|
placeholderLeft: {
|
|
@@ -13675,9 +14675,9 @@ const _sfc_main$1w = {
|
|
|
13675
14675
|
const _component_app_button_group = resolveComponent("app-button-group");
|
|
13676
14676
|
return openBlock(), createBlock(AppFormElement, normalizeProps(guardReactiveProps(unref(formElementProps))), {
|
|
13677
14677
|
default: withCtx(() => [
|
|
13678
|
-
createElementVNode("div", _hoisted_1$
|
|
14678
|
+
createElementVNode("div", _hoisted_1$18, [
|
|
13679
14679
|
createElementVNode("div", _hoisted_2$R, [
|
|
13680
|
-
createVNode(_sfc_main$
|
|
14680
|
+
createVNode(_sfc_main$1z, mergeProps({
|
|
13681
14681
|
class: "app-form-group-element flex-1",
|
|
13682
14682
|
"input-only": true,
|
|
13683
14683
|
modelValue: modelValueStart.value,
|
|
@@ -13685,7 +14685,7 @@ const _sfc_main$1w = {
|
|
|
13685
14685
|
placeholder: __props.placeholderLeft,
|
|
13686
14686
|
name: __props.startName
|
|
13687
14687
|
}, bindableProps.value, { showEasyButtons: false }), null, 16, ["modelValue", "placeholder", "name"]),
|
|
13688
|
-
createVNode(_sfc_main$
|
|
14688
|
+
createVNode(_sfc_main$1z, mergeProps({
|
|
13689
14689
|
class: "app-form-group-element flex-1",
|
|
13690
14690
|
"input-only": true,
|
|
13691
14691
|
modelValue: modelValueEnd.value,
|
|
@@ -13708,10 +14708,10 @@ const _sfc_main$1w = {
|
|
|
13708
14708
|
};
|
|
13709
14709
|
}
|
|
13710
14710
|
};
|
|
13711
|
-
const _hoisted_1$
|
|
14711
|
+
const _hoisted_1$17 = { class: "d-flex align-items-center" };
|
|
13712
14712
|
const _hoisted_2$Q = { class: "mb-0 fw-normal" };
|
|
13713
14713
|
const _hoisted_3$z = { class: "ms-auto" };
|
|
13714
|
-
const _sfc_main$
|
|
14714
|
+
const _sfc_main$1x = {
|
|
13715
14715
|
__name: "AppCard",
|
|
13716
14716
|
props: {
|
|
13717
14717
|
type: {
|
|
@@ -13804,7 +14804,7 @@ const _sfc_main$1v = {
|
|
|
13804
14804
|
class: normalizeClass([headerClasses.value]),
|
|
13805
14805
|
onClick: collapseBody
|
|
13806
14806
|
}, [
|
|
13807
|
-
createElementVNode("div", _hoisted_1$
|
|
14807
|
+
createElementVNode("div", _hoisted_1$17, [
|
|
13808
14808
|
createElementVNode("div", _hoisted_2$Q, [
|
|
13809
14809
|
renderSlot(_ctx.$slots, "title"),
|
|
13810
14810
|
createElementVNode("div", {
|
|
@@ -13838,8 +14838,8 @@ const _sfc_main$1v = {
|
|
|
13838
14838
|
};
|
|
13839
14839
|
}
|
|
13840
14840
|
};
|
|
13841
|
-
const _hoisted_1$
|
|
13842
|
-
const _sfc_main$
|
|
14841
|
+
const _hoisted_1$16 = ["checked"];
|
|
14842
|
+
const _sfc_main$1w = {
|
|
13843
14843
|
__name: "AppCheckbox",
|
|
13844
14844
|
props: {
|
|
13845
14845
|
modelValue: {},
|
|
@@ -13892,7 +14892,7 @@ const _sfc_main$1u = {
|
|
|
13892
14892
|
checked: __props.modelValue,
|
|
13893
14893
|
class: checkedClass.value,
|
|
13894
14894
|
type: "checkbox"
|
|
13895
|
-
}, getDisabled.value), null, 16, _hoisted_1$
|
|
14895
|
+
}, getDisabled.value), null, 16, _hoisted_1$16),
|
|
13896
14896
|
renderSlot(_ctx.$slots, "afterCheckbox")
|
|
13897
14897
|
], 2)
|
|
13898
14898
|
]),
|
|
@@ -13901,14 +14901,14 @@ const _sfc_main$1u = {
|
|
|
13901
14901
|
};
|
|
13902
14902
|
}
|
|
13903
14903
|
};
|
|
13904
|
-
const _sfc_main$
|
|
14904
|
+
const _sfc_main$1v = {};
|
|
13905
14905
|
function _sfc_render$3(_ctx, _cache2) {
|
|
13906
14906
|
const _component_router_view = resolveComponent("router-view");
|
|
13907
14907
|
return openBlock(), createBlock(_component_router_view);
|
|
13908
14908
|
}
|
|
13909
|
-
const AppChild = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13910
|
-
const _hoisted_1$
|
|
13911
|
-
const _sfc_main$
|
|
14909
|
+
const AppChild = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$3], ["__scopeId", "data-v-f1bb4de2"]]);
|
|
14910
|
+
const _hoisted_1$15 = { class: "badge bg-secondary day-of-week-badge" };
|
|
14911
|
+
const _sfc_main$1u = {
|
|
13912
14912
|
__name: "AppDatePickerDayOfWeek",
|
|
13913
14913
|
props: {
|
|
13914
14914
|
value: {
|
|
@@ -13928,7 +14928,7 @@ const _sfc_main$1s = {
|
|
|
13928
14928
|
return format$1(props2.value, "EEEEEE", { locale });
|
|
13929
14929
|
});
|
|
13930
14930
|
return (_ctx, _cache2) => {
|
|
13931
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
14931
|
+
return openBlock(), createElementBlock("span", _hoisted_1$15, toDisplayString(currentDayOfWeek.value), 1);
|
|
13932
14932
|
};
|
|
13933
14933
|
}
|
|
13934
14934
|
};
|
|
@@ -14142,7 +15142,7 @@ function useAdaptiveDropdown(element, openDirection) {
|
|
|
14142
15142
|
updateDropdownStyle
|
|
14143
15143
|
};
|
|
14144
15144
|
}
|
|
14145
|
-
const _hoisted_1$
|
|
15145
|
+
const _hoisted_1$14 = { class: "w-100 position-relative cursor-pointer" };
|
|
14146
15146
|
const _hoisted_2$P = ["placeholder"];
|
|
14147
15147
|
const _hoisted_3$y = {
|
|
14148
15148
|
key: 1,
|
|
@@ -14153,7 +15153,7 @@ const _hoisted_4$q = {
|
|
|
14153
15153
|
class: "form-control-feedback-icon clear-button"
|
|
14154
15154
|
};
|
|
14155
15155
|
const _hoisted_5$k = ["onClick"];
|
|
14156
|
-
const _sfc_main$
|
|
15156
|
+
const _sfc_main$1t = {
|
|
14157
15157
|
__name: "AppGridPicker",
|
|
14158
15158
|
props: /* @__PURE__ */ mergeModels({
|
|
14159
15159
|
options: {
|
|
@@ -14311,7 +15311,7 @@ const _sfc_main$1r = {
|
|
|
14311
15311
|
const _directive_tippy = resolveDirective("tippy");
|
|
14312
15312
|
return openBlock(), createBlock(AppFormElement, normalizeProps(guardReactiveProps(unref(formElementProps))), {
|
|
14313
15313
|
default: withCtx(() => [
|
|
14314
|
-
createElementVNode("div", _hoisted_1$
|
|
15314
|
+
createElementVNode("div", _hoisted_1$14, [
|
|
14315
15315
|
createElementVNode("div", {
|
|
14316
15316
|
ref_key: "input",
|
|
14317
15317
|
ref: input,
|
|
@@ -14380,11 +15380,11 @@ const _sfc_main$1r = {
|
|
|
14380
15380
|
};
|
|
14381
15381
|
}
|
|
14382
15382
|
};
|
|
14383
|
-
const AppGridPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15383
|
+
const AppGridPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["__scopeId", "data-v-86b56f72"]]);
|
|
14384
15384
|
const EMIT_SUB_HOUR = "sub-hour";
|
|
14385
15385
|
const EMIT_NOW = "now";
|
|
14386
15386
|
const EMIT_ADD_HOUR = "add-hour";
|
|
14387
|
-
const _sfc_main$
|
|
15387
|
+
const _sfc_main$1s = {
|
|
14388
15388
|
__name: "AppTimePickerEasyButtons",
|
|
14389
15389
|
emits: [EMIT_NOW, EMIT_ADD_HOUR, EMIT_SUB_HOUR],
|
|
14390
15390
|
setup(__props, { emit: __emit }) {
|
|
@@ -14399,7 +15399,7 @@ const _sfc_main$1q = {
|
|
|
14399
15399
|
};
|
|
14400
15400
|
return (_ctx, _cache2) => {
|
|
14401
15401
|
return openBlock(), createElementBlock("div", null, [
|
|
14402
|
-
createVNode(_sfc_main$
|
|
15402
|
+
createVNode(_sfc_main$1C, {
|
|
14403
15403
|
value: buttons.value,
|
|
14404
15404
|
onClick
|
|
14405
15405
|
}, null, 8, ["value"])
|
|
@@ -14407,7 +15407,7 @@ const _sfc_main$1q = {
|
|
|
14407
15407
|
};
|
|
14408
15408
|
}
|
|
14409
15409
|
};
|
|
14410
|
-
const _hoisted_1$
|
|
15410
|
+
const _hoisted_1$13 = {
|
|
14411
15411
|
class: "display-block w-100",
|
|
14412
15412
|
style: {}
|
|
14413
15413
|
};
|
|
@@ -14419,7 +15419,7 @@ const _hoisted_3$x = {
|
|
|
14419
15419
|
key: 1,
|
|
14420
15420
|
class: "flex-center-vertical ml-5 mr-5 time-picker-icon"
|
|
14421
15421
|
};
|
|
14422
|
-
const _sfc_main$
|
|
15422
|
+
const _sfc_main$1r = {
|
|
14423
15423
|
__name: "AppTimePicker",
|
|
14424
15424
|
props: /* @__PURE__ */ mergeModels({
|
|
14425
15425
|
minuteOptions: {
|
|
@@ -14543,7 +15543,7 @@ const _sfc_main$1p = {
|
|
|
14543
15543
|
const _directive_tippy = resolveDirective("tippy");
|
|
14544
15544
|
return openBlock(), createBlock(AppFormElement, normalizeProps(guardReactiveProps(unref(formElementProps))), createSlots({
|
|
14545
15545
|
default: withCtx(() => [
|
|
14546
|
-
createElementVNode("div", _hoisted_1$
|
|
15546
|
+
createElementVNode("div", _hoisted_1$13, [
|
|
14547
15547
|
createElementVNode("div", {
|
|
14548
15548
|
class: normalizeClass(timePickerClass.value)
|
|
14549
15549
|
}, [
|
|
@@ -14579,7 +15579,7 @@ const _sfc_main$1p = {
|
|
|
14579
15579
|
"display-by": "value"
|
|
14580
15580
|
}, null, 8, ["modelValue", "disabled", "options"]),
|
|
14581
15581
|
_ctx.showEasyButtons && !_ctx.disabled ? (openBlock(), createElementBlock("div", _hoisted_2$O, [
|
|
14582
|
-
createVNode(_sfc_main$
|
|
15582
|
+
createVNode(_sfc_main$1s, {
|
|
14583
15583
|
onAddHour,
|
|
14584
15584
|
onSubHour,
|
|
14585
15585
|
onNow: onSelectNow
|
|
@@ -14611,7 +15611,7 @@ const _sfc_main$1p = {
|
|
|
14611
15611
|
};
|
|
14612
15612
|
}
|
|
14613
15613
|
};
|
|
14614
|
-
const AppTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15614
|
+
const AppTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["__scopeId", "data-v-96ccd197"]]);
|
|
14615
15615
|
const _DateUtils = class _DateUtils {
|
|
14616
15616
|
static getDayNames() {
|
|
14617
15617
|
return {
|
|
@@ -14842,8 +15842,24 @@ __publicField(_DateUtils, "commonFormats", [
|
|
|
14842
15842
|
"dd/MM/yyyy h:mm:ss a",
|
|
14843
15843
|
"dd/MM/yyyy h:mm a"
|
|
14844
15844
|
]);
|
|
15845
|
+
__publicField(_DateUtils, "isStringDate", (dateString) => {
|
|
15846
|
+
const bigFatRegex = /^\d{2,4}[-./]\d{1,2}[-./]\d{1,4}([ T]\d{2}:\d{2}(:\d{2}(\.\d+)?(Z|[+-]\d{2}:?\d{2})?)?)?$/;
|
|
15847
|
+
return bigFatRegex.test(dateString);
|
|
15848
|
+
});
|
|
15849
|
+
__publicField(_DateUtils, "stringToDateRecursive", (item, deep = false) => {
|
|
15850
|
+
if (!item) return item;
|
|
15851
|
+
if (lodashExports.isArray(item)) return item.map((el) => _DateUtils.stringToDateRecursive(el, deep));
|
|
15852
|
+
if (lodashExports.isPlainObject(item)) {
|
|
15853
|
+
for (const key in item) {
|
|
15854
|
+
if (Object.prototype.hasOwnProperty.call(item, key)) item[key] = deep ? _DateUtils.stringToDateRecursive(item[key], deep) : _DateUtils.stringToDateRecursive(item[key]);
|
|
15855
|
+
}
|
|
15856
|
+
return item;
|
|
15857
|
+
}
|
|
15858
|
+
if (typeof item === "string") return _DateUtils.isStringDate(item) ? _DateUtils.stringToDate(item) : item;
|
|
15859
|
+
return item;
|
|
15860
|
+
});
|
|
14845
15861
|
let DateUtils = _DateUtils;
|
|
14846
|
-
const _hoisted_1$
|
|
15862
|
+
const _hoisted_1$12 = { class: "flex-center-vertical w-100" };
|
|
14847
15863
|
const _hoisted_2$N = { class: "app-form-group-element flex-grow-1 mr-5" };
|
|
14848
15864
|
const _hoisted_3$w = { class: "app-form-group-element flex-grow-1" };
|
|
14849
15865
|
const _hoisted_4$p = {
|
|
@@ -14853,7 +15869,7 @@ const _hoisted_4$p = {
|
|
|
14853
15869
|
const CODE_SUB_DAY = "subday";
|
|
14854
15870
|
const CODE_TODAY = "today";
|
|
14855
15871
|
const CODE_ADD_DAY = "addday";
|
|
14856
|
-
const _sfc_main$
|
|
15872
|
+
const _sfc_main$1q = {
|
|
14857
15873
|
__name: "AppDateTimePicker",
|
|
14858
15874
|
props: {
|
|
14859
15875
|
modelValue: {},
|
|
@@ -14995,9 +16011,9 @@ const _sfc_main$1o = {
|
|
|
14995
16011
|
return (_ctx, _cache2) => {
|
|
14996
16012
|
return openBlock(), createBlock(AppFormElement, normalizeProps(guardReactiveProps(unref(formElementProps))), {
|
|
14997
16013
|
default: withCtx(() => [
|
|
14998
|
-
createElementVNode("div", _hoisted_1$
|
|
16014
|
+
createElementVNode("div", _hoisted_1$12, [
|
|
14999
16015
|
createElementVNode("div", _hoisted_2$N, [
|
|
15000
|
-
createVNode(_sfc_main$
|
|
16016
|
+
createVNode(_sfc_main$1z, {
|
|
15001
16017
|
modelValue: localDate.value,
|
|
15002
16018
|
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => localDate.value = $event),
|
|
15003
16019
|
"current-format": "dd.MM.yyyy",
|
|
@@ -15017,7 +16033,7 @@ const _sfc_main$1o = {
|
|
|
15017
16033
|
}, null, 8, ["modelValue", "disabled", "minuteOptions"])
|
|
15018
16034
|
]),
|
|
15019
16035
|
_ctx.showEasyButtons ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
|
|
15020
|
-
createVNode(_sfc_main$
|
|
16036
|
+
createVNode(_sfc_main$1A, {
|
|
15021
16037
|
modelValue: localValue.value,
|
|
15022
16038
|
"onUpdate:modelValue": _cache2[2] || (_cache2[2] = ($event) => localValue.value = $event)
|
|
15023
16039
|
}, null, 8, ["modelValue"])
|
|
@@ -15163,12 +16179,12 @@ var IconCaretDownFilled = createVueComponent("filled", "caret-down-filled", "Ico
|
|
|
15163
16179
|
* See the LICENSE file in the root directory of this source tree.
|
|
15164
16180
|
*/
|
|
15165
16181
|
var IconSquareCheckFilled = createVueComponent("filled", "square-check-filled", "IconSquareCheckFilled", [["path", { "d": "M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005 .195v12.666c0 1.96 -1.537 3.56 -3.472 3.662l-.195 .005h-12.666a3.667 3.667 0 0 1 -3.662 -3.472l-.005 -.195v-12.666c0 -1.96 1.537 -3.56 3.472 -3.662l.195 -.005h12.666zm-2.626 7.293a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z", "key": "svg-0" }]]);
|
|
15166
|
-
const _hoisted_1$
|
|
16182
|
+
const _hoisted_1$11 = { class: "display-flex-column h-100" };
|
|
15167
16183
|
const _hoisted_2$M = { class: "flex-center-vertical w-100 p-3" };
|
|
15168
16184
|
const _hoisted_3$v = { class: "flex-1" };
|
|
15169
16185
|
const _hoisted_4$o = { class: "font-600 text-size-14" };
|
|
15170
16186
|
const _hoisted_5$j = { class: "p-20 flex-1 w-100" };
|
|
15171
|
-
const _sfc_main$
|
|
16187
|
+
const _sfc_main$1p = {
|
|
15172
16188
|
__name: "AppDrawer",
|
|
15173
16189
|
props: {
|
|
15174
16190
|
title: {},
|
|
@@ -15214,7 +16230,7 @@ const _sfc_main$1n = {
|
|
|
15214
16230
|
class: normalizeClass(["filter-sidebar", drawerClass.value]),
|
|
15215
16231
|
style: normalizeStyle(drawerStyle.value)
|
|
15216
16232
|
}, [
|
|
15217
|
-
createElementVNode("div", _hoisted_1$
|
|
16233
|
+
createElementVNode("div", _hoisted_1$11, [
|
|
15218
16234
|
createElementVNode("div", _hoisted_2$M, [
|
|
15219
16235
|
createElementVNode("div", _hoisted_3$v, [
|
|
15220
16236
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
@@ -15238,14 +16254,14 @@ const _sfc_main$1n = {
|
|
|
15238
16254
|
};
|
|
15239
16255
|
}
|
|
15240
16256
|
};
|
|
15241
|
-
const AppDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15242
|
-
const _hoisted_1
|
|
16257
|
+
const AppDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-546ab102"]]);
|
|
16258
|
+
const _hoisted_1$10 = { class: "display-flex-column h-100" };
|
|
15243
16259
|
const _hoisted_2$L = { class: "flex-center-vertical pr-20 pl-20 w-100 mt-15" };
|
|
15244
16260
|
const _hoisted_3$u = { class: "flex-1 mb-10" };
|
|
15245
16261
|
const _hoisted_4$n = { class: "mb-0" };
|
|
15246
16262
|
const _hoisted_5$i = { class: "p-20 flex-1 w-100" };
|
|
15247
16263
|
const _hoisted_6$c = { class: "flex-center p-10 w-100 gap-1" };
|
|
15248
|
-
const _sfc_main$
|
|
16264
|
+
const _sfc_main$1o = {
|
|
15249
16265
|
__name: "AppTableFilterDrawer",
|
|
15250
16266
|
props: {
|
|
15251
16267
|
title: {
|
|
@@ -15303,7 +16319,7 @@ const _sfc_main$1m = {
|
|
|
15303
16319
|
ref: "drawer",
|
|
15304
16320
|
class: normalizeClass(["filter-sidebar", { active: isExpanded.value }])
|
|
15305
16321
|
}, [
|
|
15306
|
-
createElementVNode("div", _hoisted_1
|
|
16322
|
+
createElementVNode("div", _hoisted_1$10, [
|
|
15307
16323
|
createElementVNode("div", _hoisted_2$L, [
|
|
15308
16324
|
createElementVNode("div", _hoisted_3$u, [
|
|
15309
16325
|
createElementVNode("h4", _hoisted_4$n, toDisplayString(__props.title), 1)
|
|
@@ -15319,7 +16335,7 @@ const _sfc_main$1m = {
|
|
|
15319
16335
|
]),
|
|
15320
16336
|
_cache2[1] || (_cache2[1] = createElementVNode("hr", { class: "mb-5 mt-0 w-100" }, null, -1)),
|
|
15321
16337
|
createElementVNode("div", _hoisted_6$c, [
|
|
15322
|
-
createVNode(_sfc_main$
|
|
16338
|
+
createVNode(_sfc_main$1D, {
|
|
15323
16339
|
class: "btn-default",
|
|
15324
16340
|
onClick: onFilterReset
|
|
15325
16341
|
}, {
|
|
@@ -15328,7 +16344,7 @@ const _sfc_main$1m = {
|
|
|
15328
16344
|
]),
|
|
15329
16345
|
_: 1
|
|
15330
16346
|
}),
|
|
15331
|
-
createVNode(_sfc_main$
|
|
16347
|
+
createVNode(_sfc_main$1D, {
|
|
15332
16348
|
class: "bg-primary text-white",
|
|
15333
16349
|
onClick: onFilterSet
|
|
15334
16350
|
}, {
|
|
@@ -15341,7 +16357,7 @@ const _sfc_main$1m = {
|
|
|
15341
16357
|
])
|
|
15342
16358
|
], 2),
|
|
15343
16359
|
renderSlot(_ctx.$slots, "button", {}, () => [
|
|
15344
|
-
hasDrawerButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
16360
|
+
hasDrawerButton.value ? (openBlock(), createBlock(_sfc_main$1D, {
|
|
15345
16361
|
key: 0,
|
|
15346
16362
|
onClick: toggleDrawer,
|
|
15347
16363
|
icon: "icon-equalizer2",
|
|
@@ -15352,7 +16368,7 @@ const _sfc_main$1m = {
|
|
|
15352
16368
|
};
|
|
15353
16369
|
}
|
|
15354
16370
|
};
|
|
15355
|
-
const AppTableFilterDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16371
|
+
const AppTableFilterDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-f5f661ee"]]);
|
|
15356
16372
|
const _BaseRepository = class _BaseRepository {
|
|
15357
16373
|
constructor(url = null, axios2) {
|
|
15358
16374
|
__publicField(this, "fetchOne", async (id, { filters = [], includes = [], includesTrashed = [], appends = [], customAttributes = [], sort = null, url = null } = {}) => {
|
|
@@ -15741,7 +16757,7 @@ function joinList(list, path, separator = ",") {
|
|
|
15741
16757
|
}
|
|
15742
16758
|
return localList.join(separator);
|
|
15743
16759
|
}
|
|
15744
|
-
const _sfc_main$
|
|
16760
|
+
const _sfc_main$1n = {
|
|
15745
16761
|
__name: "AppFileDropZone",
|
|
15746
16762
|
emits: ["files-dropped"],
|
|
15747
16763
|
setup(__props, { emit: __emit }) {
|
|
@@ -18948,6 +19964,7 @@ __publicField(ResponseUtils, "STATUS_CODES", {
|
|
|
18948
19964
|
STATUS_CODE_UNAUTHORIZED: 401,
|
|
18949
19965
|
STATUS_CODE_FORBIDDEN: 403,
|
|
18950
19966
|
STATUS_CODE_CONFLICT: 409,
|
|
19967
|
+
STATUS_CODE_PRECONDITION_REQUIRED: 428,
|
|
18951
19968
|
STATUS_CODE_UNPROCESSABLE_ENTITY: 422,
|
|
18952
19969
|
STATUS_CODE_SERVER_ERROR: 500
|
|
18953
19970
|
});
|
|
@@ -21608,7 +22625,7 @@ const fileStatus = {
|
|
|
21608
22625
|
pending: { code: "pending", label: "În așteptare" },
|
|
21609
22626
|
uploaded: { code: "uploaded", label: "Fișier încărcat" }
|
|
21610
22627
|
};
|
|
21611
|
-
const _hoisted_1
|
|
22628
|
+
const _hoisted_1$$ = { class: "flex-center-vertical" };
|
|
21612
22629
|
const _hoisted_2$K = { key: 0 };
|
|
21613
22630
|
const _hoisted_3$t = {
|
|
21614
22631
|
key: 1,
|
|
@@ -21617,7 +22634,7 @@ const _hoisted_3$t = {
|
|
|
21617
22634
|
const _hoisted_4$m = { class: "ph-eye" };
|
|
21618
22635
|
const _hoisted_5$h = { class: "ph-download" };
|
|
21619
22636
|
const _hoisted_6$b = { class: "ph-x-circle" };
|
|
21620
|
-
const _sfc_main$
|
|
22637
|
+
const _sfc_main$1m = {
|
|
21621
22638
|
__name: "AppFileItem",
|
|
21622
22639
|
props: {
|
|
21623
22640
|
disabled: {
|
|
@@ -21657,7 +22674,7 @@ const _sfc_main$1k = {
|
|
|
21657
22674
|
});
|
|
21658
22675
|
return (_ctx, _cache2) => {
|
|
21659
22676
|
const _directive_tippy = resolveDirective("tippy");
|
|
21660
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
22677
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
21661
22678
|
createElementVNode("i", {
|
|
21662
22679
|
class: normalizeClass([mediaIconClass.value, "mr-10"]),
|
|
21663
22680
|
style: { "font-size": "22px" }
|
|
@@ -21696,8 +22713,8 @@ const _sfc_main$1k = {
|
|
|
21696
22713
|
};
|
|
21697
22714
|
}
|
|
21698
22715
|
};
|
|
21699
|
-
const AppFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21700
|
-
const _hoisted_1$
|
|
22716
|
+
const AppFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-a91b6b9a"]]);
|
|
22717
|
+
const _hoisted_1$_ = { class: "flex-center-vertical" };
|
|
21701
22718
|
const _hoisted_2$J = {
|
|
21702
22719
|
key: 0,
|
|
21703
22720
|
class: "flex-1"
|
|
@@ -21708,7 +22725,7 @@ const _hoisted_3$s = {
|
|
|
21708
22725
|
};
|
|
21709
22726
|
const _hoisted_4$l = { class: "btn-group" };
|
|
21710
22727
|
const _hoisted_5$g = ["accept", "disabled"];
|
|
21711
|
-
const _sfc_main$
|
|
22728
|
+
const _sfc_main$1l = {
|
|
21712
22729
|
__name: "AppFileInput",
|
|
21713
22730
|
props: /* @__PURE__ */ mergeModels({
|
|
21714
22731
|
accept: {},
|
|
@@ -21773,7 +22790,7 @@ const _sfc_main$1j = {
|
|
|
21773
22790
|
isLoading2.value = false;
|
|
21774
22791
|
};
|
|
21775
22792
|
return (_ctx, _cache2) => {
|
|
21776
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22793
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
21777
22794
|
!isMediaEmpty.value ? (openBlock(), createElementBlock("div", _hoisted_2$J, [
|
|
21778
22795
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(lodashExports.isArray)(media.value) ? media.value : [media.value], (file) => {
|
|
21779
22796
|
return openBlock(), createBlock(AppFileItem, {
|
|
@@ -21824,21 +22841,21 @@ const _sfc_main$1j = {
|
|
|
21824
22841
|
};
|
|
21825
22842
|
}
|
|
21826
22843
|
};
|
|
21827
|
-
const AppFileInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21828
|
-
const _sfc_main$
|
|
21829
|
-
const _hoisted_1$
|
|
22844
|
+
const AppFileInput = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-5ae7825f"]]);
|
|
22845
|
+
const _sfc_main$1k = {};
|
|
22846
|
+
const _hoisted_1$Z = { class: "blockUI blockOverlay" };
|
|
21830
22847
|
function _sfc_render$2(_ctx, _cache2) {
|
|
21831
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22848
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
21832
22849
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
21833
22850
|
]);
|
|
21834
22851
|
}
|
|
21835
|
-
const AppOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21836
|
-
const _hoisted_1$
|
|
22852
|
+
const AppOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$2], ["__scopeId", "data-v-07e2c47c"]]);
|
|
22853
|
+
const _hoisted_1$Y = { class: "w-100 h-100 flex-center" };
|
|
21837
22854
|
const _hoisted_2$I = {
|
|
21838
22855
|
key: 0,
|
|
21839
22856
|
class: "icon-spinner11 spinner"
|
|
21840
22857
|
};
|
|
21841
|
-
const _sfc_main$
|
|
22858
|
+
const _sfc_main$1j = {
|
|
21842
22859
|
__name: "AppLoadingOverlay",
|
|
21843
22860
|
props: {
|
|
21844
22861
|
showIcon: {
|
|
@@ -21850,7 +22867,7 @@ const _sfc_main$1h = {
|
|
|
21850
22867
|
return (_ctx, _cache2) => {
|
|
21851
22868
|
return openBlock(), createBlock(AppOverlay, null, {
|
|
21852
22869
|
default: withCtx(() => [
|
|
21853
|
-
createElementVNode("div", _hoisted_1$
|
|
22870
|
+
createElementVNode("div", _hoisted_1$Y, [
|
|
21854
22871
|
__props.showIcon ? (openBlock(), createElementBlock("i", _hoisted_2$I)) : createCommentVNode("", true)
|
|
21855
22872
|
])
|
|
21856
22873
|
]),
|
|
@@ -21859,8 +22876,8 @@ const _sfc_main$1h = {
|
|
|
21859
22876
|
};
|
|
21860
22877
|
}
|
|
21861
22878
|
};
|
|
21862
|
-
const _hoisted_1$
|
|
21863
|
-
const _sfc_main$
|
|
22879
|
+
const _hoisted_1$X = { class: "form-control" };
|
|
22880
|
+
const _sfc_main$1i = {
|
|
21864
22881
|
__name: "AppFile",
|
|
21865
22882
|
props: /* @__PURE__ */ mergeModels({
|
|
21866
22883
|
accept: {
|
|
@@ -21960,9 +22977,9 @@ const _sfc_main$1g = {
|
|
|
21960
22977
|
return (_ctx, _cache2) => {
|
|
21961
22978
|
return openBlock(), createBlock(AppFormElement, normalizeProps(guardReactiveProps(unref(formElementProps))), {
|
|
21962
22979
|
default: withCtx(() => [
|
|
21963
|
-
__props.isLoading ? (openBlock(), createBlock(_sfc_main$
|
|
21964
|
-
createElementVNode("div", _hoisted_1$
|
|
21965
|
-
createVNode(_sfc_main$
|
|
22980
|
+
__props.isLoading ? (openBlock(), createBlock(_sfc_main$1j, { key: 0 })) : createCommentVNode("", true),
|
|
22981
|
+
createElementVNode("div", _hoisted_1$X, [
|
|
22982
|
+
createVNode(_sfc_main$1n, { onFilesDropped: addFiles }, {
|
|
21966
22983
|
default: withCtx(({ dropZoneActive }) => [
|
|
21967
22984
|
createVNode(AppFileInput, {
|
|
21968
22985
|
modelValue: files.value,
|
|
@@ -21987,7 +23004,7 @@ const _sfc_main$1g = {
|
|
|
21987
23004
|
};
|
|
21988
23005
|
}
|
|
21989
23006
|
};
|
|
21990
|
-
const _hoisted_1$
|
|
23007
|
+
const _hoisted_1$W = { class: "display-flex align-items-center" };
|
|
21991
23008
|
const _hoisted_2$H = { class: "display-flex pl-10" };
|
|
21992
23009
|
const _hoisted_3$r = {
|
|
21993
23010
|
key: 1,
|
|
@@ -22007,7 +23024,7 @@ const _hoisted_11 = {
|
|
|
22007
23024
|
key: 0,
|
|
22008
23025
|
class: "text-muted"
|
|
22009
23026
|
};
|
|
22010
|
-
const _sfc_main$
|
|
23027
|
+
const _sfc_main$1h = {
|
|
22011
23028
|
__name: "AppFormRepeater",
|
|
22012
23029
|
props: /* @__PURE__ */ mergeModels({
|
|
22013
23030
|
emptyItem: {},
|
|
@@ -22093,7 +23110,7 @@ const _sfc_main$1f = {
|
|
|
22093
23110
|
onEnd
|
|
22094
23111
|
}, createSlots({
|
|
22095
23112
|
item: withCtx(({ element, index }) => [
|
|
22096
|
-
isTypeCard.value ? (openBlock(), createBlock(_sfc_main$
|
|
23113
|
+
isTypeCard.value ? (openBlock(), createBlock(_sfc_main$1x, {
|
|
22097
23114
|
key: 0,
|
|
22098
23115
|
"can-collapse": __props.collapsable,
|
|
22099
23116
|
"is-collapsed": __props.isCollapsed,
|
|
@@ -22102,7 +23119,7 @@ const _sfc_main$1f = {
|
|
|
22102
23119
|
onIsCollapsedChanged: (isCollapsed) => handleIsCollapsedChange(index, isCollapsed)
|
|
22103
23120
|
}, {
|
|
22104
23121
|
title: withCtx(() => [
|
|
22105
|
-
createElementVNode("div", _hoisted_1$
|
|
23122
|
+
createElementVNode("div", _hoisted_1$W, [
|
|
22106
23123
|
!__props.disabled && __props.isDraggable ? (openBlock(), createBlock(unref(IconMenu2), {
|
|
22107
23124
|
key: 0,
|
|
22108
23125
|
size: 22,
|
|
@@ -22115,7 +23132,7 @@ const _sfc_main$1f = {
|
|
|
22115
23132
|
]),
|
|
22116
23133
|
"heading-elements": withCtx(() => [
|
|
22117
23134
|
renderSlot(_ctx.$slots, "buttons", normalizeProps(guardReactiveProps({ index, element, removeItemAtIndex })), () => [
|
|
22118
|
-
!__props.disabled && __props.isDeletedVisible ? (openBlock(), createBlock(_sfc_main$
|
|
23135
|
+
!__props.disabled && __props.isDeletedVisible ? (openBlock(), createBlock(_sfc_main$1D, {
|
|
22119
23136
|
key: 0,
|
|
22120
23137
|
class: "btn-sm btn-icon",
|
|
22121
23138
|
onClick: ($event) => removeItemAtIndex(index)
|
|
@@ -22151,7 +23168,7 @@ const _sfc_main$1f = {
|
|
|
22151
23168
|
]),
|
|
22152
23169
|
renderSlot(_ctx.$slots, "buttons", normalizeProps(guardReactiveProps({ index, element, removeItemAtIndex })), () => [
|
|
22153
23170
|
createElementVNode("div", _hoisted_8$4, [
|
|
22154
|
-
!__props.disabled && __props.isDeletedVisible ? (openBlock(), createBlock(_sfc_main$
|
|
23171
|
+
!__props.disabled && __props.isDeletedVisible ? (openBlock(), createBlock(_sfc_main$1D, {
|
|
22155
23172
|
key: 0,
|
|
22156
23173
|
class: "btn-sm btn-icon ml-15 mr-5 bg-white",
|
|
22157
23174
|
onClick: ($event) => removeItemAtIndex(index)
|
|
@@ -22169,7 +23186,7 @@ const _sfc_main$1f = {
|
|
|
22169
23186
|
footer: withCtx(() => [
|
|
22170
23187
|
!__props.disabled ? (openBlock(), createElementBlock("div", _hoisted_9$4, [
|
|
22171
23188
|
renderSlot(_ctx.$slots, "addButton", normalizeProps(guardReactiveProps({ addItem })), () => [
|
|
22172
|
-
createVNode(_sfc_main$
|
|
23189
|
+
createVNode(_sfc_main$1D, {
|
|
22173
23190
|
class: "w-100 btn-light my-10",
|
|
22174
23191
|
onClick: addItem
|
|
22175
23192
|
}, {
|
|
@@ -23389,7 +24406,7 @@ const shadesList = [
|
|
|
23389
24406
|
"A4",
|
|
23390
24407
|
"A7"
|
|
23391
24408
|
];
|
|
23392
|
-
const _sfc_main$
|
|
24409
|
+
const _sfc_main$1g = {
|
|
23393
24410
|
name: "AppColorPicker",
|
|
23394
24411
|
props: {
|
|
23395
24412
|
colorSelected: {
|
|
@@ -23428,11 +24445,11 @@ const _sfc_main$1e = {
|
|
|
23428
24445
|
};
|
|
23429
24446
|
}
|
|
23430
24447
|
};
|
|
23431
|
-
const _hoisted_1$
|
|
24448
|
+
const _hoisted_1$V = { class: "card card-table table-responsive shadow-0 mb-20 overflow-hidden" };
|
|
23432
24449
|
const _hoisted_2$G = { class: "table table-bordered" };
|
|
23433
24450
|
const _hoisted_3$q = ["onClick"];
|
|
23434
24451
|
function _sfc_render$1(_ctx, _cache2, $props, $setup, $data, $options) {
|
|
23435
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24452
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
23436
24453
|
createElementVNode("table", _hoisted_2$G, [
|
|
23437
24454
|
createElementVNode("thead", null, [
|
|
23438
24455
|
createElementVNode("tr", null, [
|
|
@@ -23461,14 +24478,14 @@ function _sfc_render$1(_ctx, _cache2, $props, $setup, $data, $options) {
|
|
|
23461
24478
|
])
|
|
23462
24479
|
]);
|
|
23463
24480
|
}
|
|
23464
|
-
const AppColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23465
|
-
const _hoisted_1$
|
|
24481
|
+
const AppColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1]]);
|
|
24482
|
+
const _hoisted_1$U = ["disabled", "name", "placeholder", "type"];
|
|
23466
24483
|
const _hoisted_2$F = {
|
|
23467
24484
|
key: 0,
|
|
23468
24485
|
class: "form-control-feedback form-control-feedback-end"
|
|
23469
24486
|
};
|
|
23470
24487
|
const _hoisted_3$p = { class: "form-control-feedback-icon" };
|
|
23471
|
-
const _sfc_main$
|
|
24488
|
+
const _sfc_main$1f = {
|
|
23472
24489
|
__name: "AppInput",
|
|
23473
24490
|
props: /* @__PURE__ */ mergeModels({
|
|
23474
24491
|
type: {
|
|
@@ -23533,7 +24550,7 @@ const _sfc_main$1d = {
|
|
|
23533
24550
|
class: computedClass.value,
|
|
23534
24551
|
onBlur,
|
|
23535
24552
|
onKeyup: withKeys(onSubmit, ["enter"])
|
|
23536
|
-
}, _ctx.$attrs), null, 16, _hoisted_1$
|
|
24553
|
+
}, _ctx.$attrs), null, 16, _hoisted_1$U), [
|
|
23537
24554
|
[vModelDynamic, unref(modelValue)]
|
|
23538
24555
|
]),
|
|
23539
24556
|
__props.isClearable && unref(modelValue) && !props2.disabled ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
|
@@ -23562,11 +24579,11 @@ const _sfc_main$1d = {
|
|
|
23562
24579
|
};
|
|
23563
24580
|
}
|
|
23564
24581
|
};
|
|
23565
|
-
const _hoisted_1$
|
|
24582
|
+
const _hoisted_1$T = {
|
|
23566
24583
|
key: 0,
|
|
23567
24584
|
class: "app-link__label"
|
|
23568
24585
|
};
|
|
23569
|
-
const _sfc_main$
|
|
24586
|
+
const _sfc_main$1e = {
|
|
23570
24587
|
__name: "AppLink",
|
|
23571
24588
|
props: {
|
|
23572
24589
|
route: {
|
|
@@ -23620,7 +24637,7 @@ const _sfc_main$1c = {
|
|
|
23620
24637
|
return hasLink.value ? (openBlock(), createBlock(resolveDynamicComponent(componentType.value), mergeProps({ key: 0 }, linkBindings.value, { class: "app-link" }), {
|
|
23621
24638
|
default: withCtx(() => [
|
|
23622
24639
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
23623
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
24640
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_1$T, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
23624
24641
|
_cache2[0] || (_cache2[0] = createElementVNode("i", { class: "icon-link app-link__icon" }, null, -1))
|
|
23625
24642
|
])
|
|
23626
24643
|
]),
|
|
@@ -23629,8 +24646,8 @@ const _sfc_main$1c = {
|
|
|
23629
24646
|
};
|
|
23630
24647
|
}
|
|
23631
24648
|
};
|
|
23632
|
-
const _hoisted_1$
|
|
23633
|
-
const _sfc_main$
|
|
24649
|
+
const _hoisted_1$S = { class: "sidebar-item-name" };
|
|
24650
|
+
const _sfc_main$1d = {
|
|
23634
24651
|
__name: "AppMenuItemValue",
|
|
23635
24652
|
props: {
|
|
23636
24653
|
item: {
|
|
@@ -23674,11 +24691,11 @@ const _sfc_main$1b = {
|
|
|
23674
24691
|
class: normalizeClass(anchorClass.value)
|
|
23675
24692
|
}, {
|
|
23676
24693
|
default: withCtx(() => [
|
|
23677
|
-
createVNode(_sfc_main$
|
|
24694
|
+
createVNode(_sfc_main$1H, {
|
|
23678
24695
|
value: itemIcon.value,
|
|
23679
24696
|
class: normalizeClass(appIconClass.value)
|
|
23680
24697
|
}, null, 8, ["value", "class"]),
|
|
23681
|
-
createElementVNode("span", _hoisted_1$
|
|
24698
|
+
createElementVNode("span", _hoisted_1$S, toDisplayString(itemName.value), 1),
|
|
23682
24699
|
itemBadge.value ? (openBlock(), createElementBlock("span", {
|
|
23683
24700
|
key: 0,
|
|
23684
24701
|
class: normalizeClass(badgeClass.value)
|
|
@@ -23689,13 +24706,13 @@ const _sfc_main$1b = {
|
|
|
23689
24706
|
};
|
|
23690
24707
|
}
|
|
23691
24708
|
};
|
|
23692
|
-
const AppMenuItemValue = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23693
|
-
const _hoisted_1$
|
|
24709
|
+
const AppMenuItemValue = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-6411d77e"]]);
|
|
24710
|
+
const _hoisted_1$R = {
|
|
23694
24711
|
key: 0,
|
|
23695
24712
|
class: "nav nav-group-sub",
|
|
23696
24713
|
style: { "display": "block" }
|
|
23697
24714
|
};
|
|
23698
|
-
const _sfc_main$
|
|
24715
|
+
const _sfc_main$1c = {
|
|
23699
24716
|
__name: "AppMenuItem",
|
|
23700
24717
|
props: {
|
|
23701
24718
|
modelValue: {
|
|
@@ -23783,7 +24800,7 @@ const _sfc_main$1a = {
|
|
|
23783
24800
|
}, null, 8, ["item", "is-active"]),
|
|
23784
24801
|
createVNode(Transition, { name: "fadeHeight" }, {
|
|
23785
24802
|
default: withCtx(() => [
|
|
23786
|
-
isChildrenListOpen.value ? (openBlock(), createElementBlock("ul", _hoisted_1$
|
|
24803
|
+
isChildrenListOpen.value ? (openBlock(), createElementBlock("ul", _hoisted_1$R, [
|
|
23787
24804
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props2.modelValue.children, (menuItem) => {
|
|
23788
24805
|
return openBlock(), createBlock(AppMenuItem, {
|
|
23789
24806
|
key: menuItem.id,
|
|
@@ -23809,9 +24826,9 @@ const _sfc_main$1a = {
|
|
|
23809
24826
|
};
|
|
23810
24827
|
}
|
|
23811
24828
|
};
|
|
23812
|
-
const AppMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23813
|
-
const _hoisted_1$
|
|
23814
|
-
const _sfc_main$
|
|
24829
|
+
const AppMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-c259eef3"]]);
|
|
24830
|
+
const _hoisted_1$Q = { class: "nav nav-sidebar" };
|
|
24831
|
+
const _sfc_main$1b = {
|
|
23815
24832
|
__name: "AppMenu",
|
|
23816
24833
|
props: {
|
|
23817
24834
|
list: {
|
|
@@ -23845,7 +24862,7 @@ const _sfc_main$19 = {
|
|
|
23845
24862
|
emit("on-click-item", item);
|
|
23846
24863
|
};
|
|
23847
24864
|
return (_ctx, _cache2) => {
|
|
23848
|
-
return openBlock(), createElementBlock("ul", _hoisted_1$
|
|
24865
|
+
return openBlock(), createElementBlock("ul", _hoisted_1$Q, [
|
|
23849
24866
|
(openBlock(true), createElementBlock(Fragment, null, renderList(menu.value, (item) => {
|
|
23850
24867
|
return openBlock(), createBlock(AppMenuItem, {
|
|
23851
24868
|
key: item.id,
|
|
@@ -23858,9 +24875,9 @@ const _sfc_main$19 = {
|
|
|
23858
24875
|
};
|
|
23859
24876
|
}
|
|
23860
24877
|
};
|
|
23861
|
-
const _hoisted_1$
|
|
24878
|
+
const _hoisted_1$P = { class: "display-flex w-100" };
|
|
23862
24879
|
const _hoisted_2$E = ["disabled", "max", "min"];
|
|
23863
|
-
const _sfc_main$
|
|
24880
|
+
const _sfc_main$1a = {
|
|
23864
24881
|
__name: "AppNumberInput",
|
|
23865
24882
|
props: {
|
|
23866
24883
|
modelValue: {},
|
|
@@ -23944,11 +24961,11 @@ const _sfc_main$18 = {
|
|
|
23944
24961
|
return (_ctx, _cache2) => {
|
|
23945
24962
|
return openBlock(), createBlock(AppFormElement, normalizeProps(guardReactiveProps(unref(formElementProps))), {
|
|
23946
24963
|
default: withCtx(() => [
|
|
23947
|
-
createElementVNode("div", _hoisted_1$
|
|
24964
|
+
createElementVNode("div", _hoisted_1$P, [
|
|
23948
24965
|
createElementVNode("div", {
|
|
23949
24966
|
class: normalizeClass([disabledClass.value, "number-input flex-center-vertical"])
|
|
23950
24967
|
}, [
|
|
23951
|
-
createVNode(_sfc_main$
|
|
24968
|
+
createVNode(_sfc_main$1D, {
|
|
23952
24969
|
icon: "icon-minus2",
|
|
23953
24970
|
disabled: isDecrementDisabled.value,
|
|
23954
24971
|
onClick: decrement
|
|
@@ -23963,7 +24980,7 @@ const _sfc_main$18 = {
|
|
|
23963
24980
|
}, null, 40, _hoisted_2$E), [
|
|
23964
24981
|
[vModelText, currentValue.value]
|
|
23965
24982
|
]),
|
|
23966
|
-
createVNode(_sfc_main$
|
|
24983
|
+
createVNode(_sfc_main$1D, {
|
|
23967
24984
|
icon: "icon-plus2",
|
|
23968
24985
|
disabled: isIncrementDisabled.value,
|
|
23969
24986
|
onClick: increment
|
|
@@ -23977,8 +24994,8 @@ const _sfc_main$18 = {
|
|
|
23977
24994
|
};
|
|
23978
24995
|
}
|
|
23979
24996
|
};
|
|
23980
|
-
const AppNumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23981
|
-
const _sfc_main$
|
|
24997
|
+
const AppNumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-51be942a"]]);
|
|
24998
|
+
const _sfc_main$19 = {
|
|
23982
24999
|
__name: "AppPlaceholderHeading",
|
|
23983
25000
|
props: {
|
|
23984
25001
|
img: {
|
|
@@ -24036,7 +25053,7 @@ const _sfc_main$17 = {
|
|
|
24036
25053
|
};
|
|
24037
25054
|
}
|
|
24038
25055
|
};
|
|
24039
|
-
const _sfc_main$
|
|
25056
|
+
const _sfc_main$18 = {
|
|
24040
25057
|
__name: "AppPlaceholderText",
|
|
24041
25058
|
props: {
|
|
24042
25059
|
marginTop: {
|
|
@@ -24085,20 +25102,20 @@ const _sfc_main$16 = {
|
|
|
24085
25102
|
};
|
|
24086
25103
|
}
|
|
24087
25104
|
};
|
|
24088
|
-
const _hoisted_1$
|
|
25105
|
+
const _hoisted_1$O = { class: "row" };
|
|
24089
25106
|
const _hoisted_2$D = { class: "col-lg-12" };
|
|
24090
25107
|
const _hoisted_3$o = { class: "card card-white animated fadeIn" };
|
|
24091
25108
|
const _hoisted_4$j = { class: "card-header" };
|
|
24092
25109
|
const _hoisted_5$e = { class: "card-body" };
|
|
24093
|
-
const _sfc_main$
|
|
25110
|
+
const _sfc_main$17 = {
|
|
24094
25111
|
__name: "AppPlaceholderCard",
|
|
24095
25112
|
setup(__props) {
|
|
24096
25113
|
return (_ctx, _cache2) => {
|
|
24097
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25114
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
24098
25115
|
createElementVNode("div", _hoisted_2$D, [
|
|
24099
25116
|
createElementVNode("div", _hoisted_3$o, [
|
|
24100
25117
|
createElementVNode("div", _hoisted_4$j, [
|
|
24101
|
-
createVNode(_sfc_main$
|
|
25118
|
+
createVNode(_sfc_main$19, {
|
|
24102
25119
|
img: true,
|
|
24103
25120
|
imgSize: "23px",
|
|
24104
25121
|
lineMargin: "4px",
|
|
@@ -24106,7 +25123,7 @@ const _sfc_main$15 = {
|
|
|
24106
25123
|
})
|
|
24107
25124
|
]),
|
|
24108
25125
|
createElementVNode("div", _hoisted_5$e, [
|
|
24109
|
-
createVNode(_sfc_main$
|
|
25126
|
+
createVNode(_sfc_main$18, {
|
|
24110
25127
|
lines: 10,
|
|
24111
25128
|
lineSize: "10px",
|
|
24112
25129
|
marginTop: "0px"
|
|
@@ -24118,7 +25135,7 @@ const _sfc_main$15 = {
|
|
|
24118
25135
|
};
|
|
24119
25136
|
}
|
|
24120
25137
|
};
|
|
24121
|
-
const _sfc_main$
|
|
25138
|
+
const _sfc_main$16 = {
|
|
24122
25139
|
__name: "AppPage",
|
|
24123
25140
|
props: {
|
|
24124
25141
|
isLoading: {
|
|
@@ -24134,7 +25151,7 @@ const _sfc_main$14 = {
|
|
|
24134
25151
|
return (_ctx, _cache2) => {
|
|
24135
25152
|
return openBlock(), createBlock(TransitionGroup, { name: __props.transitionName }, {
|
|
24136
25153
|
default: withCtx(() => [
|
|
24137
|
-
__props.isLoading ? (openBlock(), createBlock(_sfc_main$
|
|
25154
|
+
__props.isLoading ? (openBlock(), createBlock(_sfc_main$17, { key: 0 })) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
24138
25155
|
]),
|
|
24139
25156
|
_: 3
|
|
24140
25157
|
}, 8, ["name"]);
|
|
@@ -24294,14 +25311,14 @@ function useModelWatch({ props: props2, emits, propName = "modelValue", onDataCh
|
|
|
24294
25311
|
localModelValue
|
|
24295
25312
|
};
|
|
24296
25313
|
}
|
|
24297
|
-
const _hoisted_1$
|
|
25314
|
+
const _hoisted_1$N = ["tabindex"];
|
|
24298
25315
|
const _hoisted_2$C = ["tabindex"];
|
|
24299
25316
|
const _hoisted_3$n = ["tabindex"];
|
|
24300
25317
|
const _hoisted_4$i = ["onClick", "onKeyup"];
|
|
24301
25318
|
const _hoisted_5$d = ["tabindex"];
|
|
24302
25319
|
const _hoisted_6$9 = ["tabindex"];
|
|
24303
25320
|
const _hoisted_7$4 = ["tabindex"];
|
|
24304
|
-
const _sfc_main$
|
|
25321
|
+
const _sfc_main$15 = {
|
|
24305
25322
|
__name: "AppPaginationButtons",
|
|
24306
25323
|
props: /* @__PURE__ */ mergeModels({
|
|
24307
25324
|
// modelValue: {},
|
|
@@ -24448,7 +25465,7 @@ const _sfc_main$13 = {
|
|
|
24448
25465
|
tabindex: firstPageSelected() ? -1 : 0,
|
|
24449
25466
|
onClick: _cache2[0] || (_cache2[0] = ($event) => selectFirstPage()),
|
|
24450
25467
|
onKeyup: _cache2[1] || (_cache2[1] = withKeys(($event) => selectFirstPage(), ["enter"]))
|
|
24451
|
-
}, toDisplayString(_ctx.firstButtonText), 43, _hoisted_1$
|
|
25468
|
+
}, toDisplayString(_ctx.firstButtonText), 43, _hoisted_1$N)
|
|
24452
25469
|
], 2)) : createCommentVNode("", true),
|
|
24453
25470
|
!(firstPageSelected() && _ctx.hidePrevNext) ? (openBlock(), createElementBlock("li", {
|
|
24454
25471
|
key: 1,
|
|
@@ -24461,7 +25478,7 @@ const _sfc_main$13 = {
|
|
|
24461
25478
|
onClick: _cache2[2] || (_cache2[2] = ($event) => prevPage()),
|
|
24462
25479
|
onKeyup: _cache2[3] || (_cache2[3] = withKeys(($event) => prevPage(), ["enter"]))
|
|
24463
25480
|
}, [
|
|
24464
|
-
createVNode(_sfc_main$
|
|
25481
|
+
createVNode(_sfc_main$1H, { value: "icon-arrow-small-left" })
|
|
24465
25482
|
], 42, _hoisted_2$C)) : (openBlock(), createElementBlock("a", {
|
|
24466
25483
|
key: 1,
|
|
24467
25484
|
class: normalizeClass(_ctx.prevLinkClass),
|
|
@@ -24507,7 +25524,7 @@ const _sfc_main$13 = {
|
|
|
24507
25524
|
onClick: _cache2[6] || (_cache2[6] = ($event) => nextPage()),
|
|
24508
25525
|
onKeyup: _cache2[7] || (_cache2[7] = withKeys(($event) => nextPage(), ["enter"]))
|
|
24509
25526
|
}, [
|
|
24510
|
-
createVNode(_sfc_main$
|
|
25527
|
+
createVNode(_sfc_main$1H, { value: "icon-arrow-small-right" })
|
|
24511
25528
|
], 42, _hoisted_5$d)) : (openBlock(), createElementBlock("a", {
|
|
24512
25529
|
key: 1,
|
|
24513
25530
|
class: normalizeClass(_ctx.nextLinkClass),
|
|
@@ -24532,11 +25549,11 @@ const _sfc_main$13 = {
|
|
|
24532
25549
|
};
|
|
24533
25550
|
}
|
|
24534
25551
|
};
|
|
24535
|
-
const _hoisted_1$
|
|
25552
|
+
const _hoisted_1$M = { class: "pagination-info-label" };
|
|
24536
25553
|
const _hoisted_2$B = { class: "text-muted d-none d-lg-block d-xl-block" };
|
|
24537
25554
|
const _hoisted_3$m = { key: 0 };
|
|
24538
25555
|
const _hoisted_4$h = { key: 1 };
|
|
24539
|
-
const _sfc_main$
|
|
25556
|
+
const _sfc_main$14 = {
|
|
24540
25557
|
__name: "AppPaginationInfo",
|
|
24541
25558
|
props: {
|
|
24542
25559
|
modelValue: {
|
|
@@ -24556,13 +25573,13 @@ const _sfc_main$12 = {
|
|
|
24556
25573
|
});
|
|
24557
25574
|
return (_ctx, _cache2) => {
|
|
24558
25575
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
24559
|
-
createElementVNode("div", _hoisted_1$
|
|
25576
|
+
createElementVNode("div", _hoisted_1$M, [
|
|
24560
25577
|
createElementVNode("span", _hoisted_2$B, [
|
|
24561
25578
|
createTextVNode(toDisplayString(`Inregistrari vizibile: ${props2.modelValue.from || 0} - ${props2.modelValue.to || 0}`) + " ", 1),
|
|
24562
25579
|
props2.modelValue.total ? (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(` din ${props2.modelValue.total}`), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString(` (total negenerat)`)))
|
|
24563
25580
|
])
|
|
24564
25581
|
]),
|
|
24565
|
-
__props.canTogglePagination ? (openBlock(), createBlock(_sfc_main$
|
|
25582
|
+
__props.canTogglePagination ? (openBlock(), createBlock(_sfc_main$1D, {
|
|
24566
25583
|
key: 0,
|
|
24567
25584
|
icon: toggleIcon.value,
|
|
24568
25585
|
class: "btn btn-default btn-xs ml-10 btn-transparent"
|
|
@@ -24571,7 +25588,7 @@ const _sfc_main$12 = {
|
|
|
24571
25588
|
};
|
|
24572
25589
|
}
|
|
24573
25590
|
};
|
|
24574
|
-
const AppPaginationInfo = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25591
|
+
const AppPaginationInfo = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-42b386e8"]]);
|
|
24575
25592
|
const SelectNewSymbol = Symbol("app-select-new-core");
|
|
24576
25593
|
function provideSelectNewCore(modelValue, config) {
|
|
24577
25594
|
const searchQuery = ref("");
|
|
@@ -24698,9 +25715,9 @@ function useSelectNewCore() {
|
|
|
24698
25715
|
}
|
|
24699
25716
|
return core;
|
|
24700
25717
|
}
|
|
24701
|
-
const _hoisted_1$
|
|
25718
|
+
const _hoisted_1$L = { class: "select-item d-flex align-items-center my-auto" };
|
|
24702
25719
|
const _hoisted_2$A = { class: "select-item-text text-truncate" };
|
|
24703
|
-
const _sfc_main$
|
|
25720
|
+
const _sfc_main$13 = {
|
|
24704
25721
|
__name: "AppSelectNewItem",
|
|
24705
25722
|
props: {
|
|
24706
25723
|
option: {}
|
|
@@ -24713,13 +25730,13 @@ const _sfc_main$11 = {
|
|
|
24713
25730
|
return lodashExports.isObject(props2.option) ? lodashExports.get(props2.option, displayBy.value, "") : props2.option;
|
|
24714
25731
|
});
|
|
24715
25732
|
return (_ctx, _cache2) => {
|
|
24716
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25733
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
24717
25734
|
createElementVNode("span", _hoisted_2$A, toDisplayString(text2.value), 1)
|
|
24718
25735
|
]);
|
|
24719
25736
|
};
|
|
24720
25737
|
}
|
|
24721
25738
|
};
|
|
24722
|
-
const _hoisted_1$
|
|
25739
|
+
const _hoisted_1$K = ["aria-activedescendant"];
|
|
24723
25740
|
const _hoisted_2$z = {
|
|
24724
25741
|
key: 0,
|
|
24725
25742
|
class: "px-3 py-2 text-muted"
|
|
@@ -24731,7 +25748,7 @@ const _hoisted_6$8 = {
|
|
|
24731
25748
|
key: 0,
|
|
24732
25749
|
class: "px-3 py-2 text-muted"
|
|
24733
25750
|
};
|
|
24734
|
-
const _sfc_main$
|
|
25751
|
+
const _sfc_main$12 = {
|
|
24735
25752
|
__name: "AppSelectNewDropdown",
|
|
24736
25753
|
emits: ["option-selected"],
|
|
24737
25754
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -24885,21 +25902,21 @@ const _sfc_main$10 = {
|
|
|
24885
25902
|
option: item,
|
|
24886
25903
|
remove: () => unref(toggleOption)(item)
|
|
24887
25904
|
}, () => [
|
|
24888
|
-
createVNode(_sfc_main$
|
|
25905
|
+
createVNode(_sfc_main$13, { option: item }, null, 8, ["option"])
|
|
24889
25906
|
], true)
|
|
24890
25907
|
])
|
|
24891
25908
|
], 46, _hoisted_4$g);
|
|
24892
25909
|
}), 128)),
|
|
24893
25910
|
!unref(visibleOptions) || unref(visibleOptions).length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$8, "No results")) : createCommentVNode("", true)
|
|
24894
25911
|
]))
|
|
24895
|
-
], 12, _hoisted_1$
|
|
25912
|
+
], 12, _hoisted_1$K);
|
|
24896
25913
|
};
|
|
24897
25914
|
}
|
|
24898
25915
|
};
|
|
24899
|
-
const AppSelectNewDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24900
|
-
const _hoisted_1$
|
|
25916
|
+
const AppSelectNewDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-357f2e17"]]);
|
|
25917
|
+
const _hoisted_1$J = { class: "select2-selection__choice flex-center-vertical" };
|
|
24901
25918
|
const _hoisted_2$y = { class: "flex-1 choice-text overflow-hidden text-truncate" };
|
|
24902
|
-
const _sfc_main
|
|
25919
|
+
const _sfc_main$11 = {
|
|
24903
25920
|
__name: "AppRemovableTag",
|
|
24904
25921
|
props: {
|
|
24905
25922
|
modelValue: {}
|
|
@@ -24912,7 +25929,7 @@ const _sfc_main$$ = {
|
|
|
24912
25929
|
emits("onRemove", props2.modelValue);
|
|
24913
25930
|
};
|
|
24914
25931
|
return (_ctx, _cache2) => {
|
|
24915
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25932
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
24916
25933
|
createElementVNode("div", _hoisted_2$y, [
|
|
24917
25934
|
renderSlot(_ctx.$slots, "modelValue", {}, () => [
|
|
24918
25935
|
createTextVNode(toDisplayString(__props.modelValue), 1)
|
|
@@ -24930,8 +25947,8 @@ const _sfc_main$$ = {
|
|
|
24930
25947
|
};
|
|
24931
25948
|
}
|
|
24932
25949
|
};
|
|
24933
|
-
const AppRemovableTag = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
24934
|
-
const _hoisted_1$
|
|
25950
|
+
const AppRemovableTag = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-41d0ea41"]]);
|
|
25951
|
+
const _hoisted_1$I = { class: "app-select-content display-flex flex-column gap-1 overflow-hidden" };
|
|
24935
25952
|
const _hoisted_2$x = ["placeholder"];
|
|
24936
25953
|
const _hoisted_3$k = { class: "display-flex flex-row gap-1 flex-wrap overflow-hidden" };
|
|
24937
25954
|
const _hoisted_4$f = ["title"];
|
|
@@ -24943,7 +25960,7 @@ const _hoisted_6$7 = {
|
|
|
24943
25960
|
key: 1,
|
|
24944
25961
|
class: "text-muted"
|
|
24945
25962
|
};
|
|
24946
|
-
const _sfc_main$
|
|
25963
|
+
const _sfc_main$10 = {
|
|
24947
25964
|
__name: "AppSelectNewContent",
|
|
24948
25965
|
props: { placeholder: { default: "Select..." } },
|
|
24949
25966
|
emits: ["filter", "keydown"],
|
|
@@ -24967,7 +25984,7 @@ const _sfc_main$_ = {
|
|
|
24967
25984
|
}
|
|
24968
25985
|
__expose({ focusInput: focusInput2 });
|
|
24969
25986
|
return (_ctx, _cache2) => {
|
|
24970
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25987
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
24971
25988
|
withDirectives(createElementVNode("input", {
|
|
24972
25989
|
ref_key: "inputRef",
|
|
24973
25990
|
ref: inputRef,
|
|
@@ -25003,7 +26020,7 @@ const _sfc_main$_ = {
|
|
|
25003
26020
|
option: opt,
|
|
25004
26021
|
remove: () => removeOption(opt)
|
|
25005
26022
|
}, () => [
|
|
25006
|
-
createVNode(_sfc_main$
|
|
26023
|
+
createVNode(_sfc_main$13, {
|
|
25007
26024
|
option: opt,
|
|
25008
26025
|
class: "flex-grow-1"
|
|
25009
26026
|
}, null, 8, ["option"])
|
|
@@ -25018,7 +26035,7 @@ const _sfc_main$_ = {
|
|
|
25018
26035
|
option: unref(selectedList)[0],
|
|
25019
26036
|
remove: () => removeOption(unref(selectedList)[0])
|
|
25020
26037
|
}, () => [
|
|
25021
|
-
createVNode(_sfc_main$
|
|
26038
|
+
createVNode(_sfc_main$13, {
|
|
25022
26039
|
option: unref(selectedList)[0],
|
|
25023
26040
|
class: "overflow-hidden text-truncate"
|
|
25024
26041
|
}, null, 8, ["option"])
|
|
@@ -25030,10 +26047,10 @@ const _sfc_main$_ = {
|
|
|
25030
26047
|
};
|
|
25031
26048
|
}
|
|
25032
26049
|
};
|
|
25033
|
-
const AppSelectNewContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25034
|
-
const _hoisted_1$
|
|
26050
|
+
const AppSelectNewContent = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-d2639de7"]]);
|
|
26051
|
+
const _hoisted_1$H = { class: "app-select-area flex-1 flex-center-vertical overflow-hidden" };
|
|
25035
26052
|
const _hoisted_2$w = { class: "flex-center-vertical" };
|
|
25036
|
-
const _sfc_main
|
|
26053
|
+
const _sfc_main$$ = {
|
|
25037
26054
|
__name: "AppSelectNew",
|
|
25038
26055
|
props: /* @__PURE__ */ mergeModels({
|
|
25039
26056
|
list: { type: [Array, Function], default: () => [] },
|
|
@@ -25162,7 +26179,7 @@ const _sfc_main$Z = {
|
|
|
25162
26179
|
class: normalizeClass(mainClass.value),
|
|
25163
26180
|
onClick: _cache2[1] || (_cache2[1] = (...args) => unref(toggleDropdown) && unref(toggleDropdown)(...args))
|
|
25164
26181
|
}, [
|
|
25165
|
-
createElementVNode("div", _hoisted_1$
|
|
26182
|
+
createElementVNode("div", _hoisted_1$H, [
|
|
25166
26183
|
createVNode(AppSelectNewContent, {
|
|
25167
26184
|
ref_key: "contentRef",
|
|
25168
26185
|
ref: contentRef,
|
|
@@ -25223,7 +26240,7 @@ const _sfc_main$Z = {
|
|
|
25223
26240
|
};
|
|
25224
26241
|
}
|
|
25225
26242
|
};
|
|
25226
|
-
const _hoisted_1$
|
|
26243
|
+
const _hoisted_1$G = {
|
|
25227
26244
|
key: 0,
|
|
25228
26245
|
class: "d-flex flex-center-vertical"
|
|
25229
26246
|
};
|
|
@@ -25238,7 +26255,7 @@ const _hoisted_5$a = {
|
|
|
25238
26255
|
class: "icon-cogs"
|
|
25239
26256
|
};
|
|
25240
26257
|
const _hoisted_6$6 = { class: "ml-auto" };
|
|
25241
|
-
const _sfc_main$
|
|
26258
|
+
const _sfc_main$_ = {
|
|
25242
26259
|
__name: "AppPagination",
|
|
25243
26260
|
props: /* @__PURE__ */ mergeModels({
|
|
25244
26261
|
...appPaginationProps,
|
|
@@ -25287,10 +26304,10 @@ const _sfc_main$Y = {
|
|
|
25287
26304
|
set: (value) => onPageSizeChanged(value)
|
|
25288
26305
|
});
|
|
25289
26306
|
return (_ctx, _cache2) => {
|
|
25290
|
-
return __props.isLoaded ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
26307
|
+
return __props.isLoaded ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
25291
26308
|
createElementVNode("div", _hoisted_2$v, [
|
|
25292
26309
|
createElementVNode("span", _hoisted_3$j, [
|
|
25293
|
-
createVNode(_sfc_main
|
|
26310
|
+
createVNode(_sfc_main$$, {
|
|
25294
26311
|
modelValue: pageSizeValue.value,
|
|
25295
26312
|
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => pageSizeValue.value = $event),
|
|
25296
26313
|
"input-only": true,
|
|
@@ -25302,7 +26319,7 @@ const _sfc_main$Y = {
|
|
|
25302
26319
|
])
|
|
25303
26320
|
]),
|
|
25304
26321
|
createVNode(AppPaginationInfo, { "model-value": modelValue.value }, null, 8, ["model-value"]),
|
|
25305
|
-
__props.showSimplePaginationToggle ? (openBlock(), createBlock(_sfc_main$
|
|
26322
|
+
__props.showSimplePaginationToggle ? (openBlock(), createBlock(_sfc_main$1D, {
|
|
25306
26323
|
key: 0,
|
|
25307
26324
|
onClick: _cache2[1] || (_cache2[1] = ($event) => isPaginationFull.value = !isPaginationFull.value),
|
|
25308
26325
|
class: "btn btn-default ml-10"
|
|
@@ -25313,7 +26330,7 @@ const _sfc_main$Y = {
|
|
|
25313
26330
|
_: 1
|
|
25314
26331
|
})) : createCommentVNode("", true),
|
|
25315
26332
|
createElementVNode("div", _hoisted_6$6, [
|
|
25316
|
-
createVNode(_sfc_main$
|
|
26333
|
+
createVNode(_sfc_main$15, {
|
|
25317
26334
|
modelValue: modelValue.value,
|
|
25318
26335
|
"onUpdate:modelValue": _cache2[2] || (_cache2[2] = ($event) => modelValue.value = $event),
|
|
25319
26336
|
class: "app-pagination-active"
|
|
@@ -25323,7 +26340,7 @@ const _sfc_main$Y = {
|
|
|
25323
26340
|
};
|
|
25324
26341
|
}
|
|
25325
26342
|
};
|
|
25326
|
-
const _sfc_main$
|
|
26343
|
+
const _sfc_main$Z = {
|
|
25327
26344
|
__name: "AppPlaceholderTitle",
|
|
25328
26345
|
props: {
|
|
25329
26346
|
img: {
|
|
@@ -25352,12 +26369,12 @@ const _sfc_main$X = {
|
|
|
25352
26369
|
};
|
|
25353
26370
|
}
|
|
25354
26371
|
};
|
|
25355
|
-
const _hoisted_1$
|
|
26372
|
+
const _hoisted_1$F = { class: "progress position-relative" };
|
|
25356
26373
|
const _hoisted_2$u = {
|
|
25357
26374
|
key: 0,
|
|
25358
26375
|
class: "progress-text"
|
|
25359
26376
|
};
|
|
25360
|
-
const _sfc_main$
|
|
26377
|
+
const _sfc_main$Y = {
|
|
25361
26378
|
__name: "AppProgressBar",
|
|
25362
26379
|
props: {
|
|
25363
26380
|
value: {
|
|
@@ -25392,7 +26409,7 @@ const _sfc_main$W = {
|
|
|
25392
26409
|
return result.join(";");
|
|
25393
26410
|
});
|
|
25394
26411
|
return (_ctx, _cache2) => {
|
|
25395
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26412
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
25396
26413
|
createElementVNode("div", {
|
|
25397
26414
|
class: normalizeClass(computedClass.value),
|
|
25398
26415
|
style: normalizeStyle(computedStyle.value)
|
|
@@ -25404,9 +26421,9 @@ const _sfc_main$W = {
|
|
|
25404
26421
|
};
|
|
25405
26422
|
}
|
|
25406
26423
|
};
|
|
25407
|
-
const AppProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25408
|
-
const _hoisted_1$
|
|
25409
|
-
const _sfc_main$
|
|
26424
|
+
const AppProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-6bfe7f23"]]);
|
|
26425
|
+
const _hoisted_1$E = { class: "blockUI blockOverlay progress-bar-background" };
|
|
26426
|
+
const _sfc_main$X = {
|
|
25410
26427
|
__name: "AppProgressBarOverlay",
|
|
25411
26428
|
props: {
|
|
25412
26429
|
value: {
|
|
@@ -25417,15 +26434,15 @@ const _sfc_main$V = {
|
|
|
25417
26434
|
setup(__props) {
|
|
25418
26435
|
return (_ctx, _cache2) => {
|
|
25419
26436
|
return openBlock(), createElementBlock("div", null, [
|
|
25420
|
-
createElementVNode("div", _hoisted_1$
|
|
26437
|
+
createElementVNode("div", _hoisted_1$E, [
|
|
25421
26438
|
createVNode(AppProgressBar, { value: __props.value }, null, 8, ["value"])
|
|
25422
26439
|
])
|
|
25423
26440
|
]);
|
|
25424
26441
|
};
|
|
25425
26442
|
}
|
|
25426
26443
|
};
|
|
25427
|
-
const AppProgressBarOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25428
|
-
const _sfc_main$
|
|
26444
|
+
const AppProgressBarOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-0752357f"]]);
|
|
26445
|
+
const _sfc_main$W = {
|
|
25429
26446
|
__name: "AppScrollToBottom",
|
|
25430
26447
|
props: {
|
|
25431
26448
|
useFixedContainer: {
|
|
@@ -25489,8 +26506,8 @@ const _sfc_main$U = {
|
|
|
25489
26506
|
};
|
|
25490
26507
|
}
|
|
25491
26508
|
};
|
|
25492
|
-
const AppScrollToBottom = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25493
|
-
const _sfc_main$
|
|
26509
|
+
const AppScrollToBottom = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-277c9e71"]]);
|
|
26510
|
+
const _sfc_main$V = {
|
|
25494
26511
|
__name: "AppScrollToTop",
|
|
25495
26512
|
props: {
|
|
25496
26513
|
useFixedContainer: {
|
|
@@ -25554,8 +26571,8 @@ const _sfc_main$T = {
|
|
|
25554
26571
|
};
|
|
25555
26572
|
}
|
|
25556
26573
|
};
|
|
25557
|
-
const AppScrollToTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25558
|
-
const _sfc_main$
|
|
26574
|
+
const AppScrollToTop = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-ff3d30b0"]]);
|
|
26575
|
+
const _sfc_main$U = {
|
|
25559
26576
|
__name: "AppScrollTopAndBottom",
|
|
25560
26577
|
props: {
|
|
25561
26578
|
top: {},
|
|
@@ -25844,9 +26861,9 @@ class DataUtils {
|
|
|
25844
26861
|
const getDisplayValue = (value, displayBy) => {
|
|
25845
26862
|
return lodashExports.isObject(value) ? lodashExports.get(value, `${displayBy}`) : value;
|
|
25846
26863
|
};
|
|
25847
|
-
const _hoisted_1$
|
|
26864
|
+
const _hoisted_1$D = { class: "app-option-item flex-center-vertical" };
|
|
25848
26865
|
const _hoisted_2$t = { class: "app-option-item-value" };
|
|
25849
|
-
const _sfc_main$
|
|
26866
|
+
const _sfc_main$T = {
|
|
25850
26867
|
__name: "AppSelectContentOption",
|
|
25851
26868
|
props: {
|
|
25852
26869
|
value: {},
|
|
@@ -25860,7 +26877,7 @@ const _sfc_main$R = {
|
|
|
25860
26877
|
const props2 = __props;
|
|
25861
26878
|
const computedValue = computed(() => getDisplayValue(props2.value, props2.displayBy));
|
|
25862
26879
|
return (_ctx, _cache2) => {
|
|
25863
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26880
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
25864
26881
|
props2.isSelected ? (openBlock(), createBlock(unref(IconSquareCheckFilled), {
|
|
25865
26882
|
key: 0,
|
|
25866
26883
|
size: 20,
|
|
@@ -25951,7 +26968,7 @@ const sharedProps = {
|
|
|
25951
26968
|
default: false
|
|
25952
26969
|
}
|
|
25953
26970
|
};
|
|
25954
|
-
const _hoisted_1$
|
|
26971
|
+
const _hoisted_1$C = ["onKeydown"];
|
|
25955
26972
|
const _hoisted_2$s = {
|
|
25956
26973
|
key: 0,
|
|
25957
26974
|
class: "p-2 text-muted flex-center-vertical gap-1"
|
|
@@ -25960,7 +26977,7 @@ const _hoisted_3$i = {
|
|
|
25960
26977
|
key: 1,
|
|
25961
26978
|
class: "p-2 text-muted flex-center-vertical gap-1"
|
|
25962
26979
|
};
|
|
25963
|
-
const _sfc_main$
|
|
26980
|
+
const _sfc_main$S = {
|
|
25964
26981
|
__name: "AppSelectDropdown",
|
|
25965
26982
|
props: /* @__PURE__ */ mergeModels({
|
|
25966
26983
|
list: {
|
|
@@ -26057,7 +27074,7 @@ const _sfc_main$Q = {
|
|
|
26057
27074
|
}, [
|
|
26058
27075
|
createElementVNode("div", null, [
|
|
26059
27076
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props2.list, (option, index) => {
|
|
26060
|
-
return openBlock(), createBlock(_sfc_main$
|
|
27077
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
26061
27078
|
key: index,
|
|
26062
27079
|
onClick: withModifiers(($event) => onOptionClicked(option), ["stop"]),
|
|
26063
27080
|
onMouseover: ($event) => onOptionHover(option),
|
|
@@ -26092,14 +27109,14 @@ const _sfc_main$Q = {
|
|
|
26092
27109
|
}),
|
|
26093
27110
|
_cache2[1] || (_cache2[1] = createTextVNode(" Cautarea nu a returnat nici un rezultat... ", -1))
|
|
26094
27111
|
])) : createCommentVNode("", true)
|
|
26095
|
-
], 40, _hoisted_1$
|
|
27112
|
+
], 40, _hoisted_1$C)), [
|
|
26096
27113
|
[vShow, isDropdownOpen.value],
|
|
26097
27114
|
[unref(vOnClickOutside), closeModal]
|
|
26098
27115
|
]);
|
|
26099
27116
|
};
|
|
26100
27117
|
}
|
|
26101
27118
|
};
|
|
26102
|
-
const _hoisted_1$
|
|
27119
|
+
const _hoisted_1$B = { class: "app-select-content display-flex flex-column" };
|
|
26103
27120
|
const _hoisted_2$r = { class: "flex-center-vertical" };
|
|
26104
27121
|
const _hoisted_3$h = {
|
|
26105
27122
|
key: 0,
|
|
@@ -26114,7 +27131,7 @@ const _hoisted_6$5 = {
|
|
|
26114
27131
|
class: "flex-center",
|
|
26115
27132
|
style: {}
|
|
26116
27133
|
};
|
|
26117
|
-
const _sfc_main$
|
|
27134
|
+
const _sfc_main$R = {
|
|
26118
27135
|
__name: "AppSelectContent",
|
|
26119
27136
|
props: /* @__PURE__ */ mergeModels({
|
|
26120
27137
|
...sharedProps,
|
|
@@ -26155,14 +27172,14 @@ const _sfc_main$P = {
|
|
|
26155
27172
|
const onBlur = async () => {
|
|
26156
27173
|
};
|
|
26157
27174
|
return (_ctx, _cache2) => {
|
|
26158
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
27175
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
26159
27176
|
createElementVNode("div", _hoisted_2$r, [
|
|
26160
27177
|
unref(isModelValueEmpty) ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
|
|
26161
27178
|
!props2.isDropdownOpen ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
26162
27179
|
createTextVNode(toDisplayString(props2.placeholder), 1)
|
|
26163
27180
|
], 64)) : createCommentVNode("", true)
|
|
26164
27181
|
])) : !isDropdownOpen.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
26165
|
-
!props2.isMultiSelect ? (openBlock(), createBlock(_sfc_main$
|
|
27182
|
+
!props2.isMultiSelect ? (openBlock(), createBlock(_sfc_main$T, {
|
|
26166
27183
|
key: 0,
|
|
26167
27184
|
value: modelValue.value,
|
|
26168
27185
|
class: "app-select-option",
|
|
@@ -26184,7 +27201,7 @@ const _sfc_main$P = {
|
|
|
26184
27201
|
onOnRemove: ($event) => unref(removeSelectedOption)(selectedOption)
|
|
26185
27202
|
}, {
|
|
26186
27203
|
modelValue: withCtx(() => [
|
|
26187
|
-
createVNode(_sfc_main$
|
|
27204
|
+
createVNode(_sfc_main$T, {
|
|
26188
27205
|
value: selectedOption,
|
|
26189
27206
|
"display-by": _ctx.displayBy
|
|
26190
27207
|
}, createSlots({ _: 2 }, [
|
|
@@ -26238,13 +27255,13 @@ const _sfc_main$P = {
|
|
|
26238
27255
|
};
|
|
26239
27256
|
}
|
|
26240
27257
|
};
|
|
26241
|
-
const _hoisted_1$
|
|
27258
|
+
const _hoisted_1$A = ["onKeyup"];
|
|
26242
27259
|
const _hoisted_2$q = { class: "app-select-area flex-center-vertical" };
|
|
26243
27260
|
const _hoisted_3$g = {
|
|
26244
27261
|
class: "flex-center-vertical",
|
|
26245
27262
|
style: {}
|
|
26246
27263
|
};
|
|
26247
|
-
const _sfc_main$
|
|
27264
|
+
const _sfc_main$Q = {
|
|
26248
27265
|
__name: "AppSelect",
|
|
26249
27266
|
props: /* @__PURE__ */ mergeModels({
|
|
26250
27267
|
list: {
|
|
@@ -26371,7 +27388,7 @@ const _sfc_main$O = {
|
|
|
26371
27388
|
tabindex: "0"
|
|
26372
27389
|
}, [
|
|
26373
27390
|
createElementVNode("div", _hoisted_2$q, [
|
|
26374
|
-
createVNode(_sfc_main$
|
|
27391
|
+
createVNode(_sfc_main$R, mergeProps({
|
|
26375
27392
|
placeholder: props2.placeholder,
|
|
26376
27393
|
class: "flex-1",
|
|
26377
27394
|
onSearch,
|
|
@@ -26403,7 +27420,7 @@ const _sfc_main$O = {
|
|
|
26403
27420
|
}, null, 8, ["class"])
|
|
26404
27421
|
])
|
|
26405
27422
|
]),
|
|
26406
|
-
withDirectives(createVNode(_sfc_main$
|
|
27423
|
+
withDirectives(createVNode(_sfc_main$S, mergeProps({
|
|
26407
27424
|
modelValue: modelValue.value,
|
|
26408
27425
|
"onUpdate:modelValue": _cache2[3] || (_cache2[3] = ($event) => modelValue.value = $event),
|
|
26409
27426
|
isDropdownOpen: isDropdownOpen.value,
|
|
@@ -26427,7 +27444,7 @@ const _sfc_main$O = {
|
|
|
26427
27444
|
]), 1040, ["modelValue", "isDropdownOpen", "hoveredOption", "search", "style", "list"]), [
|
|
26428
27445
|
[vShow, isDropdownOpen.value]
|
|
26429
27446
|
])
|
|
26430
|
-
], 42, _hoisted_1$
|
|
27447
|
+
], 42, _hoisted_1$A)
|
|
26431
27448
|
]),
|
|
26432
27449
|
_: 2
|
|
26433
27450
|
}, [
|
|
@@ -26443,13 +27460,13 @@ const _sfc_main$O = {
|
|
|
26443
27460
|
};
|
|
26444
27461
|
}
|
|
26445
27462
|
};
|
|
26446
|
-
const _hoisted_1$
|
|
27463
|
+
const _hoisted_1$z = { class: "sidebar-section" };
|
|
26447
27464
|
const _hoisted_2$p = {
|
|
26448
27465
|
key: 0,
|
|
26449
27466
|
class: "nav nav-sidebar"
|
|
26450
27467
|
};
|
|
26451
27468
|
const _hoisted_3$f = { style: { "padding": "12px 20px" } };
|
|
26452
|
-
const _sfc_main$
|
|
27469
|
+
const _sfc_main$P = {
|
|
26453
27470
|
__name: "AppSidebar",
|
|
26454
27471
|
props: {
|
|
26455
27472
|
isLoading: {
|
|
@@ -26488,7 +27505,7 @@ const _sfc_main$N = {
|
|
|
26488
27505
|
};
|
|
26489
27506
|
return (_ctx, _cache2) => {
|
|
26490
27507
|
const _component_app_placeholder_heading = resolveComponent("app-placeholder-heading");
|
|
26491
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
27508
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
26492
27509
|
createElementVNode("div", { onClick: toggleMobileSidebar }),
|
|
26493
27510
|
createElementVNode("div", {
|
|
26494
27511
|
class: normalizeClass(sidebarElementsClass.value)
|
|
@@ -26510,7 +27527,7 @@ const _sfc_main$N = {
|
|
|
26510
27527
|
])
|
|
26511
27528
|
]);
|
|
26512
27529
|
}), 64))
|
|
26513
|
-
])) : (openBlock(), createBlock(_sfc_main$
|
|
27530
|
+
])) : (openBlock(), createBlock(_sfc_main$1b, {
|
|
26514
27531
|
key: 1,
|
|
26515
27532
|
class: "animated fadeIn app-sidebar",
|
|
26516
27533
|
list: __props.list,
|
|
@@ -26522,7 +27539,7 @@ const _sfc_main$N = {
|
|
|
26522
27539
|
};
|
|
26523
27540
|
}
|
|
26524
27541
|
};
|
|
26525
|
-
const _hoisted_1$
|
|
27542
|
+
const _hoisted_1$y = { class: "sidebar-header display-flex position-relative justify-content-center" };
|
|
26526
27543
|
const _hoisted_2$o = {
|
|
26527
27544
|
key: 0,
|
|
26528
27545
|
class: "pr-2 flex-center-vertical"
|
|
@@ -26539,7 +27556,7 @@ const _hoisted_5$8 = {
|
|
|
26539
27556
|
key: 3,
|
|
26540
27557
|
class: "flex-center-vertical"
|
|
26541
27558
|
};
|
|
26542
|
-
const _sfc_main$
|
|
27559
|
+
const _sfc_main$O = {
|
|
26543
27560
|
__name: "AppSidebarHeader",
|
|
26544
27561
|
props: {
|
|
26545
27562
|
canCollapse: {
|
|
@@ -26558,7 +27575,7 @@ const _sfc_main$M = {
|
|
|
26558
27575
|
},
|
|
26559
27576
|
setup(__props) {
|
|
26560
27577
|
return (_ctx, _cache2) => {
|
|
26561
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
27578
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
26562
27579
|
!__props.canCollapse || !__props.sidebarCollapsed ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
|
|
26563
27580
|
renderSlot(_ctx.$slots, "sidebar-header-img")
|
|
26564
27581
|
])) : createCommentVNode("", true),
|
|
@@ -26566,7 +27583,7 @@ const _sfc_main$M = {
|
|
|
26566
27583
|
renderSlot(_ctx.$slots, "sidebar-header-text")
|
|
26567
27584
|
])) : createCommentVNode("", true),
|
|
26568
27585
|
__props.canCollapse ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
26569
|
-
createVNode(_sfc_main$
|
|
27586
|
+
createVNode(_sfc_main$1D, {
|
|
26570
27587
|
onClick: __props.toggleCollapseSidebar,
|
|
26571
27588
|
class: "sidebar-collapse-button"
|
|
26572
27589
|
}, {
|
|
@@ -26585,8 +27602,8 @@ const _sfc_main$M = {
|
|
|
26585
27602
|
};
|
|
26586
27603
|
}
|
|
26587
27604
|
};
|
|
26588
|
-
const _hoisted_1$
|
|
26589
|
-
const _sfc_main$
|
|
27605
|
+
const _hoisted_1$x = ["max", "min"];
|
|
27606
|
+
const _sfc_main$N = {
|
|
26590
27607
|
__name: "AppSliderInput",
|
|
26591
27608
|
props: {
|
|
26592
27609
|
modelValue: {},
|
|
@@ -26638,7 +27655,7 @@ const _sfc_main$L = {
|
|
|
26638
27655
|
min: __props.minRange,
|
|
26639
27656
|
type: "range",
|
|
26640
27657
|
class: "slider"
|
|
26641
|
-
}, null, 8, _hoisted_1$
|
|
27658
|
+
}, null, 8, _hoisted_1$x), [
|
|
26642
27659
|
[vModelText, currentValue.value]
|
|
26643
27660
|
])
|
|
26644
27661
|
], 2),
|
|
@@ -26649,13 +27666,13 @@ const _sfc_main$L = {
|
|
|
26649
27666
|
};
|
|
26650
27667
|
}
|
|
26651
27668
|
};
|
|
26652
|
-
const AppSliderInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26653
|
-
const _hoisted_1$
|
|
27669
|
+
const AppSliderInput = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-5e3013a5"]]);
|
|
27670
|
+
const _hoisted_1$w = { class: "page-header" };
|
|
26654
27671
|
const _hoisted_2$n = { class: "breadcrumb-line breadcrumb-line-light header-elements-md-inline" };
|
|
26655
27672
|
const _hoisted_3$d = { class: "d-flex" };
|
|
26656
27673
|
const _hoisted_4$b = { class: "breadcrumb" };
|
|
26657
27674
|
const _hoisted_5$7 = { class: "header-elements" };
|
|
26658
|
-
const _sfc_main$
|
|
27675
|
+
const _sfc_main$M = {
|
|
26659
27676
|
__name: "AppToolbarSubheader",
|
|
26660
27677
|
props: {
|
|
26661
27678
|
breadcrumbs: {
|
|
@@ -26669,12 +27686,12 @@ const _sfc_main$K = {
|
|
|
26669
27686
|
},
|
|
26670
27687
|
setup(__props) {
|
|
26671
27688
|
return (_ctx, _cache2) => {
|
|
26672
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
27689
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
26673
27690
|
createElementVNode("div", _hoisted_2$n, [
|
|
26674
27691
|
createElementVNode("div", _hoisted_3$d, [
|
|
26675
27692
|
createElementVNode("div", _hoisted_4$b, [
|
|
26676
27693
|
renderSlot(_ctx.$slots, "breadcrumbs", {}, () => [
|
|
26677
|
-
createVNode(_sfc_main$
|
|
27694
|
+
createVNode(_sfc_main$1E, {
|
|
26678
27695
|
"is-loading": __props.isLoading,
|
|
26679
27696
|
value: __props.breadcrumbs
|
|
26680
27697
|
}, null, 8, ["is-loading", "value"])
|
|
@@ -26689,7 +27706,7 @@ const _sfc_main$K = {
|
|
|
26689
27706
|
};
|
|
26690
27707
|
}
|
|
26691
27708
|
};
|
|
26692
|
-
const AppToolbarSubheader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
27709
|
+
const AppToolbarSubheader = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-bdf62cb4"]]);
|
|
26693
27710
|
/*!
|
|
26694
27711
|
* vue-tippy v6.7.0
|
|
26695
27712
|
* (c) 2025
|
|
@@ -30255,7 +31272,7 @@ setDefaultProps$1({
|
|
|
30255
31272
|
ignoreAttributes: true,
|
|
30256
31273
|
plugins: [sticky, inlinePositioning, followCursor, animateFill]
|
|
30257
31274
|
});
|
|
30258
|
-
const _sfc_main$
|
|
31275
|
+
const _sfc_main$L = {
|
|
30259
31276
|
__name: "AppEllipsisText",
|
|
30260
31277
|
props: {
|
|
30261
31278
|
value: {
|
|
@@ -30269,14 +31286,14 @@ const _sfc_main$J = {
|
|
|
30269
31286
|
},
|
|
30270
31287
|
setup(__props) {
|
|
30271
31288
|
const props2 = __props;
|
|
30272
|
-
const
|
|
31289
|
+
const isTrimmed2 = computed(() => {
|
|
30273
31290
|
var _a3;
|
|
30274
31291
|
return (((_a3 = props2.value) == null ? void 0 : _a3.length) ?? 0) > props2.maxLength;
|
|
30275
31292
|
});
|
|
30276
31293
|
const trimmedText = computed(() => {
|
|
30277
|
-
return
|
|
31294
|
+
return isTrimmed2.value ? props2.value.slice(0, props2.maxLength) + " ... " : props2.value;
|
|
30278
31295
|
});
|
|
30279
|
-
const tooltipText = computed(() =>
|
|
31296
|
+
const tooltipText = computed(() => isTrimmed2.value ? props2.value : "");
|
|
30280
31297
|
const contentClass = computed(() => ({
|
|
30281
31298
|
[useAttrs().class]: true,
|
|
30282
31299
|
"app-ellisis-content": true
|
|
@@ -30307,7 +31324,7 @@ const _sfc_main$J = {
|
|
|
30307
31324
|
};
|
|
30308
31325
|
}
|
|
30309
31326
|
};
|
|
30310
|
-
const _hoisted_1$
|
|
31327
|
+
const _hoisted_1$v = {
|
|
30311
31328
|
class: "display-flex gap-1",
|
|
30312
31329
|
style: { "overflow-x": "auto", "flex-wrap": "wrap" }
|
|
30313
31330
|
};
|
|
@@ -30318,7 +31335,7 @@ const _hoisted_5$6 = {
|
|
|
30318
31335
|
key: 1,
|
|
30319
31336
|
class: "text-muted"
|
|
30320
31337
|
};
|
|
30321
|
-
const _sfc_main$
|
|
31338
|
+
const _sfc_main$K = {
|
|
30322
31339
|
__name: "AppSummary",
|
|
30323
31340
|
props: {
|
|
30324
31341
|
list: {
|
|
@@ -30346,7 +31363,7 @@ const _sfc_main$I = {
|
|
|
30346
31363
|
return item.subtitleStyle ?? null;
|
|
30347
31364
|
};
|
|
30348
31365
|
return (_ctx, _cache2) => {
|
|
30349
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31366
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
30350
31367
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (currentItem, index) => {
|
|
30351
31368
|
return openBlock(), createElementBlock("div", {
|
|
30352
31369
|
key: index,
|
|
@@ -30358,12 +31375,12 @@ const _sfc_main$I = {
|
|
|
30358
31375
|
item: currentItem,
|
|
30359
31376
|
list: __props.list
|
|
30360
31377
|
}, () => [
|
|
30361
|
-
createVNode(_sfc_main$
|
|
31378
|
+
createVNode(_sfc_main$1x, { style: { "margin": "2px" } }, {
|
|
30362
31379
|
body: withCtx(() => [
|
|
30363
31380
|
createElementVNode("div", _hoisted_3$c, [
|
|
30364
31381
|
createElementVNode("div", _hoisted_4$a, [
|
|
30365
31382
|
createElementVNode("div", null, [
|
|
30366
|
-
currentItem.icon ? (openBlock(), createBlock(_sfc_main$
|
|
31383
|
+
currentItem.icon ? (openBlock(), createBlock(_sfc_main$1H, {
|
|
30367
31384
|
key: 0,
|
|
30368
31385
|
class: "mr-5",
|
|
30369
31386
|
value: currentItem.icon
|
|
@@ -30379,7 +31396,7 @@ const _sfc_main$I = {
|
|
|
30379
31396
|
class: normalizeClass(getSubtitleClass(currentItem)),
|
|
30380
31397
|
style: normalizeStyle(getSubtitleStyle(currentItem))
|
|
30381
31398
|
}, [
|
|
30382
|
-
createVNode(_sfc_main$
|
|
31399
|
+
createVNode(_sfc_main$L, {
|
|
30383
31400
|
value: currentItem.subtitle,
|
|
30384
31401
|
"max-length": 40
|
|
30385
31402
|
}, null, 8, ["value"])
|
|
@@ -30397,7 +31414,7 @@ const _sfc_main$I = {
|
|
|
30397
31414
|
};
|
|
30398
31415
|
}
|
|
30399
31416
|
};
|
|
30400
|
-
const _hoisted_1$
|
|
31417
|
+
const _hoisted_1$u = { key: 0 };
|
|
30401
31418
|
const _hoisted_2$l = { class: "p-3" };
|
|
30402
31419
|
const _hoisted_3$b = { key: 1 };
|
|
30403
31420
|
const _hoisted_4$9 = { class: "app-table-row-filters" };
|
|
@@ -30412,7 +31429,7 @@ const _hoisted_9$3 = {
|
|
|
30412
31429
|
key: 2,
|
|
30413
31430
|
class: "ml-5 mr-5 display-inline-block"
|
|
30414
31431
|
};
|
|
30415
|
-
const _sfc_main$
|
|
31432
|
+
const _sfc_main$J = {
|
|
30416
31433
|
__name: "AppTableSelectedFilters",
|
|
30417
31434
|
props: {
|
|
30418
31435
|
selectedFilters: {
|
|
@@ -30438,7 +31455,7 @@ const _sfc_main$H = {
|
|
|
30438
31455
|
return props2.selectedFilters.slice(0, 5);
|
|
30439
31456
|
});
|
|
30440
31457
|
return (_ctx, _cache2) => {
|
|
30441
|
-
return filterLength.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31458
|
+
return filterLength.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
30442
31459
|
createVNode(unref(TippyComponent), {
|
|
30443
31460
|
trigger: "click",
|
|
30444
31461
|
"animate-fill": true,
|
|
@@ -30484,12 +31501,12 @@ const _sfc_main$H = {
|
|
|
30484
31501
|
};
|
|
30485
31502
|
}
|
|
30486
31503
|
};
|
|
30487
|
-
const AppTableFilterDetailedRow = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30488
|
-
const _hoisted_1$
|
|
31504
|
+
const AppTableFilterDetailedRow = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-6654229d"]]);
|
|
31505
|
+
const _hoisted_1$t = { class: "app-table-filter-body d-flex" };
|
|
30489
31506
|
const _hoisted_2$k = { class: "flex-grow-1" };
|
|
30490
31507
|
const _hoisted_3$a = { class: "mr-5 pl-10 flex-center-vertical" };
|
|
30491
31508
|
const _hoisted_4$8 = { class: "display-flex" };
|
|
30492
|
-
const _sfc_main$
|
|
31509
|
+
const _sfc_main$I = {
|
|
30493
31510
|
__name: "AppTableFilter",
|
|
30494
31511
|
props: {
|
|
30495
31512
|
selectedFilters: {
|
|
@@ -30522,15 +31539,15 @@ const _sfc_main$G = {
|
|
|
30522
31539
|
emits("mounted", context);
|
|
30523
31540
|
};
|
|
30524
31541
|
return (_ctx, _cache2) => {
|
|
30525
|
-
return _ctx.$slots.filter ? (openBlock(), createBlock(_sfc_main$
|
|
31542
|
+
return _ctx.$slots.filter ? (openBlock(), createBlock(_sfc_main$1x, {
|
|
30526
31543
|
key: 0,
|
|
30527
31544
|
"is-loading": __props.isLoading
|
|
30528
31545
|
}, {
|
|
30529
31546
|
body: withCtx(() => [
|
|
30530
|
-
createElementVNode("div", _hoisted_1$
|
|
31547
|
+
createElementVNode("div", _hoisted_1$t, [
|
|
30531
31548
|
createElementVNode("div", _hoisted_2$k, [
|
|
30532
31549
|
renderSlot(_ctx.$slots, "filter", {}, () => [
|
|
30533
|
-
createVNode(_sfc_main$
|
|
31550
|
+
createVNode(_sfc_main$1f, {
|
|
30534
31551
|
modelValue: search.value,
|
|
30535
31552
|
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => search.value = $event),
|
|
30536
31553
|
"input-only": true,
|
|
@@ -30560,7 +31577,7 @@ const _sfc_main$G = {
|
|
|
30560
31577
|
key: "0"
|
|
30561
31578
|
} : void 0
|
|
30562
31579
|
]), 1024),
|
|
30563
|
-
createVNode(_sfc_main$
|
|
31580
|
+
createVNode(_sfc_main$1D, {
|
|
30564
31581
|
class: "btn-primary btn-md ml-5 font-weight-500",
|
|
30565
31582
|
onClick: onSearchFilterSet
|
|
30566
31583
|
}, {
|
|
@@ -30581,7 +31598,7 @@ const _sfc_main$G = {
|
|
|
30581
31598
|
};
|
|
30582
31599
|
}
|
|
30583
31600
|
};
|
|
30584
|
-
const _hoisted_1$
|
|
31601
|
+
const _hoisted_1$s = { class: "table-responsive" };
|
|
30585
31602
|
const _hoisted_2$j = { class: "table table-striped app-table-rows" };
|
|
30586
31603
|
const _hoisted_3$9 = {
|
|
30587
31604
|
key: 0,
|
|
@@ -30599,7 +31616,7 @@ const _hoisted_6$3 = {
|
|
|
30599
31616
|
const _hoisted_7$2 = { key: 1 };
|
|
30600
31617
|
const _hoisted_8$2 = { key: 0 };
|
|
30601
31618
|
const _hoisted_9$2 = ["colspan"];
|
|
30602
|
-
const _sfc_main$
|
|
31619
|
+
const _sfc_main$H = {
|
|
30603
31620
|
__name: "AppTableRows",
|
|
30604
31621
|
props: {
|
|
30605
31622
|
rows: {
|
|
@@ -30637,7 +31654,7 @@ const _sfc_main$F = {
|
|
|
30637
31654
|
};
|
|
30638
31655
|
const allowRowSelect = (row) => typeof props2.hasSelection === "function" ? props2.hasSelection(row) : props2.hasSelection;
|
|
30639
31656
|
return (_ctx, _cache2) => {
|
|
30640
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31657
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
30641
31658
|
createElementVNode("table", _hoisted_2$j, [
|
|
30642
31659
|
createElementVNode("thead", null, [
|
|
30643
31660
|
createElementVNode("tr", null, [
|
|
@@ -30665,7 +31682,7 @@ const _sfc_main$F = {
|
|
|
30665
31682
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props2.rows, (row, rowIndex) => {
|
|
30666
31683
|
return openBlock(), createElementBlock("tr", null, [
|
|
30667
31684
|
__props.hasSelection ? (openBlock(), createElementBlock("td", _hoisted_5$4, [
|
|
30668
|
-
createVNode(_sfc_main$
|
|
31685
|
+
createVNode(_sfc_main$1w, {
|
|
30669
31686
|
modelValue: getVmodelCheckbox(row).value,
|
|
30670
31687
|
"onUpdate:modelValue": ($event) => getVmodelCheckbox(row).value = $event,
|
|
30671
31688
|
"input-only": true,
|
|
@@ -30715,8 +31732,8 @@ function defineLocal(modelValue, modelValueTransform = null) {
|
|
|
30715
31732
|
}, { immediate: true });
|
|
30716
31733
|
return localModelValue;
|
|
30717
31734
|
}
|
|
30718
|
-
const _hoisted_1$
|
|
30719
|
-
const _sfc_main$
|
|
31735
|
+
const _hoisted_1$r = { class: "flex-center-vertical gap-1" };
|
|
31736
|
+
const _sfc_main$G = {
|
|
30720
31737
|
__name: "AppTable",
|
|
30721
31738
|
props: /* @__PURE__ */ mergeModels({
|
|
30722
31739
|
columns: {
|
|
@@ -30857,8 +31874,8 @@ const _sfc_main$E = {
|
|
|
30857
31874
|
});
|
|
30858
31875
|
return (_ctx, _cache2) => {
|
|
30859
31876
|
return openBlock(), createElementBlock("div", null, [
|
|
30860
|
-
createElementVNode("div", _hoisted_1$
|
|
30861
|
-
__props.hasSelection ? (openBlock(), createBlock(_sfc_main$
|
|
31877
|
+
createElementVNode("div", _hoisted_1$r, [
|
|
31878
|
+
__props.hasSelection ? (openBlock(), createBlock(_sfc_main$1w, {
|
|
30862
31879
|
key: 0,
|
|
30863
31880
|
modelValue: getCheckbox.value,
|
|
30864
31881
|
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => getCheckbox.value = $event),
|
|
@@ -30867,7 +31884,7 @@ const _sfc_main$E = {
|
|
|
30867
31884
|
}, null, 8, ["modelValue", "disabled"])) : createCommentVNode("", true),
|
|
30868
31885
|
renderSlot(_ctx.$slots, "allSelection", { selectedRows: selectedRowsList.value })
|
|
30869
31886
|
]),
|
|
30870
|
-
createVNode(_sfc_main$
|
|
31887
|
+
createVNode(_sfc_main$H, {
|
|
30871
31888
|
columns: __props.columns,
|
|
30872
31889
|
"has-selection": __props.hasSelection,
|
|
30873
31890
|
rows: displayedRows.value,
|
|
@@ -30885,7 +31902,7 @@ const _sfc_main$E = {
|
|
|
30885
31902
|
]), 1032, ["columns", "has-selection", "rows", "selected-rows-dictionary"]),
|
|
30886
31903
|
_cache2[3] || (_cache2[3] = createElementVNode("br", null, null, -1)),
|
|
30887
31904
|
_cache2[4] || (_cache2[4] = createElementVNode("br", null, null, -1)),
|
|
30888
|
-
!props2.showFullData ? (openBlock(), createBlock(_sfc_main$
|
|
31905
|
+
!props2.showFullData ? (openBlock(), createBlock(_sfc_main$_, {
|
|
30889
31906
|
key: 0,
|
|
30890
31907
|
modelValue: unref(localRows),
|
|
30891
31908
|
"onUpdate:modelValue": _cache2[1] || (_cache2[1] = ($event) => isRef(localRows) ? localRows.value = $event : null),
|
|
@@ -31255,9 +32272,9 @@ function useTable(config, emits) {
|
|
|
31255
32272
|
});
|
|
31256
32273
|
return externalContext;
|
|
31257
32274
|
}
|
|
31258
|
-
const _hoisted_1$
|
|
32275
|
+
const _hoisted_1$q = { class: "row" };
|
|
31259
32276
|
const _hoisted_2$i = { class: "col-lg-12" };
|
|
31260
|
-
const _sfc_main$
|
|
32277
|
+
const _sfc_main$F = {
|
|
31261
32278
|
__name: "AppTableMagic",
|
|
31262
32279
|
props: {
|
|
31263
32280
|
tableFilters: {},
|
|
@@ -31356,7 +32373,7 @@ const _sfc_main$D = {
|
|
|
31356
32373
|
return (_ctx, _cache2) => {
|
|
31357
32374
|
const _component_app_button_group = resolveComponent("app-button-group");
|
|
31358
32375
|
return openBlock(), createElementBlock("div", null, [
|
|
31359
|
-
__props.showTableFilter ? (openBlock(), createBlock(_sfc_main$
|
|
32376
|
+
__props.showTableFilter ? (openBlock(), createBlock(_sfc_main$I, {
|
|
31360
32377
|
key: 0,
|
|
31361
32378
|
selectedFilters: unref(displayFilters),
|
|
31362
32379
|
onOnFilterReset: unref(useTableContext).onFilterReset,
|
|
@@ -31365,7 +32382,7 @@ const _sfc_main$D = {
|
|
|
31365
32382
|
onMounted: onTableFilterMounted
|
|
31366
32383
|
}, createSlots({
|
|
31367
32384
|
beforeButton: withCtx(() => [
|
|
31368
|
-
unref(shouldShowFilterReset) ? (openBlock(), createBlock(_sfc_main$
|
|
32385
|
+
unref(shouldShowFilterReset) ? (openBlock(), createBlock(_sfc_main$1D, {
|
|
31369
32386
|
key: 0,
|
|
31370
32387
|
class: "btn-transparent mr-5",
|
|
31371
32388
|
icon: "icon-cross2",
|
|
@@ -31390,9 +32407,9 @@ const _sfc_main$D = {
|
|
|
31390
32407
|
} : void 0
|
|
31391
32408
|
]), 1032, ["selectedFilters", "onOnFilterReset", "onOnFilterSet", "onOnSearchFilterSet"])) : createCommentVNode("", true),
|
|
31392
32409
|
renderSlot(_ctx.$slots, "beforeTable"),
|
|
31393
|
-
createElementVNode("div", _hoisted_1$
|
|
32410
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
31394
32411
|
createElementVNode("div", _hoisted_2$i, [
|
|
31395
|
-
createVNode(_sfc_main$
|
|
32412
|
+
createVNode(_sfc_main$G, {
|
|
31396
32413
|
ref_key: "appTable",
|
|
31397
32414
|
ref: appTable,
|
|
31398
32415
|
modelValue: unref(tableData),
|
|
@@ -31435,9 +32452,9 @@ const _sfc_main$D = {
|
|
|
31435
32452
|
};
|
|
31436
32453
|
}
|
|
31437
32454
|
};
|
|
31438
|
-
const _hoisted_1$
|
|
32455
|
+
const _hoisted_1$p = { class: "display-flex flex-column align-items-start" };
|
|
31439
32456
|
const _hoisted_2$h = ["onClick"];
|
|
31440
|
-
const _sfc_main$
|
|
32457
|
+
const _sfc_main$E = {
|
|
31441
32458
|
__name: "AppTabs",
|
|
31442
32459
|
props: /* @__PURE__ */ mergeModels({
|
|
31443
32460
|
list: {
|
|
@@ -31505,7 +32522,7 @@ const _sfc_main$C = {
|
|
|
31505
32522
|
const _component_app_icon = resolveComponent("app-icon");
|
|
31506
32523
|
return openBlock(), createBlock(AppFormElement, normalizeProps(guardReactiveProps(unref(formElementProps))), {
|
|
31507
32524
|
default: withCtx(() => [
|
|
31508
|
-
createElementVNode("div", _hoisted_1$
|
|
32525
|
+
createElementVNode("div", _hoisted_1$p, [
|
|
31509
32526
|
createElementVNode("div", {
|
|
31510
32527
|
class: normalizeClass(tabContainerClass.value),
|
|
31511
32528
|
"data-toggle": "buttons"
|
|
@@ -31534,7 +32551,7 @@ const _sfc_main$C = {
|
|
|
31534
32551
|
};
|
|
31535
32552
|
}
|
|
31536
32553
|
};
|
|
31537
|
-
const _sfc_main$
|
|
32554
|
+
const _sfc_main$D = {
|
|
31538
32555
|
__name: "AppTabsBoolean",
|
|
31539
32556
|
props: /* @__PURE__ */ mergeModels({
|
|
31540
32557
|
...appFormElementProps,
|
|
@@ -31570,7 +32587,7 @@ const _sfc_main$B = {
|
|
|
31570
32587
|
};
|
|
31571
32588
|
}
|
|
31572
32589
|
};
|
|
31573
|
-
const _sfc_main$
|
|
32590
|
+
const _sfc_main$C = {
|
|
31574
32591
|
__name: "AppTag",
|
|
31575
32592
|
props: {
|
|
31576
32593
|
icon: {
|
|
@@ -31635,10 +32652,10 @@ const _sfc_main$A = {
|
|
|
31635
32652
|
};
|
|
31636
32653
|
}
|
|
31637
32654
|
};
|
|
31638
|
-
const AppTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31639
|
-
const _hoisted_1$
|
|
32655
|
+
const AppTag = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-c3f2c1ff"]]);
|
|
32656
|
+
const _hoisted_1$o = { class: "display-flex flex-column w-100" };
|
|
31640
32657
|
const _hoisted_2$g = ["name", "rows", "disabled", "placeholder"];
|
|
31641
|
-
const _sfc_main$
|
|
32658
|
+
const _sfc_main$B = {
|
|
31642
32659
|
__name: "AppTextArea",
|
|
31643
32660
|
props: /* @__PURE__ */ mergeModels({
|
|
31644
32661
|
modelValue: {
|
|
@@ -31723,7 +32740,7 @@ const _sfc_main$z = {
|
|
|
31723
32740
|
return (_ctx, _cache2) => {
|
|
31724
32741
|
return openBlock(), createBlock(AppFormElement, normalizeProps(guardReactiveProps(appFormElementBind.value)), createSlots({
|
|
31725
32742
|
default: withCtx(() => [
|
|
31726
|
-
createElementVNode("div", _hoisted_1$
|
|
32743
|
+
createElementVNode("div", _hoisted_1$o, [
|
|
31727
32744
|
withDirectives(createElementVNode("textarea", {
|
|
31728
32745
|
ref_key: "inputTextArea",
|
|
31729
32746
|
ref: inputTextArea,
|
|
@@ -31755,8 +32772,8 @@ const _sfc_main$z = {
|
|
|
31755
32772
|
};
|
|
31756
32773
|
}
|
|
31757
32774
|
};
|
|
31758
|
-
const AppTextArea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31759
|
-
const _sfc_main$
|
|
32775
|
+
const AppTextArea = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-2017c64a"]]);
|
|
32776
|
+
const _sfc_main$A = {
|
|
31760
32777
|
__name: "AppToggleButton",
|
|
31761
32778
|
props: /* @__PURE__ */ mergeModels({
|
|
31762
32779
|
options: {
|
|
@@ -31786,18 +32803,18 @@ const _sfc_main$y = {
|
|
|
31786
32803
|
modelValue.value = props2.options[newIndex];
|
|
31787
32804
|
};
|
|
31788
32805
|
return (_ctx, _cache2) => {
|
|
31789
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32806
|
+
return openBlock(), createBlock(_sfc_main$1D, {
|
|
31790
32807
|
value: modelValue.value,
|
|
31791
32808
|
onClick
|
|
31792
32809
|
}, null, 8, ["value"]);
|
|
31793
32810
|
};
|
|
31794
32811
|
}
|
|
31795
32812
|
};
|
|
31796
|
-
const _hoisted_1$
|
|
32813
|
+
const _hoisted_1$n = { class: "flex-column" };
|
|
31797
32814
|
const _hoisted_2$f = { class: "app-toolbar-top navbar navbar-dark navbar-static py-1" };
|
|
31798
32815
|
const _hoisted_3$8 = { class: "flex-center-vertical" };
|
|
31799
32816
|
const _hoisted_4$6 = { class: "app-toolbar-bottom page-header page-header-light shadow flex-center-vertical justify-content-between display-flex-column flex-lg-row" };
|
|
31800
|
-
const _sfc_main$
|
|
32817
|
+
const _sfc_main$z = {
|
|
31801
32818
|
__name: "AppToolbar",
|
|
31802
32819
|
emits: ["on-sidebar-toggle"],
|
|
31803
32820
|
setup(__props, { emit: __emit }) {
|
|
@@ -31806,10 +32823,10 @@ const _sfc_main$x = {
|
|
|
31806
32823
|
emit("on-sidebar-toggle");
|
|
31807
32824
|
};
|
|
31808
32825
|
return (_ctx, _cache2) => {
|
|
31809
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
32826
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
31810
32827
|
createElementVNode("div", _hoisted_2$f, [
|
|
31811
32828
|
createElementVNode("div", _hoisted_3$8, [
|
|
31812
|
-
createVNode(_sfc_main$
|
|
32829
|
+
createVNode(_sfc_main$1D, {
|
|
31813
32830
|
onClick: onSidebarToggle,
|
|
31814
32831
|
type: "button",
|
|
31815
32832
|
class: "btn-transparent px-2"
|
|
@@ -31837,9 +32854,9 @@ const _sfc_main$x = {
|
|
|
31837
32854
|
};
|
|
31838
32855
|
}
|
|
31839
32856
|
};
|
|
31840
|
-
const _hoisted_1$
|
|
32857
|
+
const _hoisted_1$m = { class: "fancytree-title" };
|
|
31841
32858
|
const _hoisted_2$e = { class: "ml-auto position-relative" };
|
|
31842
|
-
const _sfc_main$
|
|
32859
|
+
const _sfc_main$y = {
|
|
31843
32860
|
__name: "AppTreeItemValue",
|
|
31844
32861
|
props: {
|
|
31845
32862
|
value: {}
|
|
@@ -31869,7 +32886,7 @@ const _sfc_main$w = {
|
|
|
31869
32886
|
renderSlot(_ctx.$slots, "icon", normalizeProps(guardReactiveProps(__props.value)), () => [
|
|
31870
32887
|
_cache2[0] || (_cache2[0] = createElementVNode("div", { class: "fancytree-icon mt-0" }, null, -1))
|
|
31871
32888
|
]),
|
|
31872
|
-
createElementVNode("div", _hoisted_1$
|
|
32889
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
31873
32890
|
renderSlot(_ctx.$slots, "content", normalizeProps(guardReactiveProps(__props.value)), () => [
|
|
31874
32891
|
createTextVNode(toDisplayString(__props.value.label), 1)
|
|
31875
32892
|
])
|
|
@@ -31881,11 +32898,11 @@ const _sfc_main$w = {
|
|
|
31881
32898
|
};
|
|
31882
32899
|
}
|
|
31883
32900
|
};
|
|
31884
|
-
const _hoisted_1$
|
|
32901
|
+
const _hoisted_1$l = {
|
|
31885
32902
|
class: "fancytree-lastsib",
|
|
31886
32903
|
role: "treeitem"
|
|
31887
32904
|
};
|
|
31888
|
-
const _sfc_main$
|
|
32905
|
+
const _sfc_main$x = {
|
|
31889
32906
|
__name: "AppTreeItem",
|
|
31890
32907
|
props: {
|
|
31891
32908
|
list: {}
|
|
@@ -31893,8 +32910,8 @@ const _sfc_main$v = {
|
|
|
31893
32910
|
setup(__props) {
|
|
31894
32911
|
return (_ctx, _cache2) => {
|
|
31895
32912
|
const _component_app_tree_item = resolveComponent("app-tree-item", true);
|
|
31896
|
-
return openBlock(), createElementBlock("li", _hoisted_1$
|
|
31897
|
-
createVNode(_sfc_main$
|
|
32913
|
+
return openBlock(), createElementBlock("li", _hoisted_1$l, [
|
|
32914
|
+
createVNode(_sfc_main$y, { value: __props.list }, createSlots({ _: 2 }, [
|
|
31898
32915
|
renderList(_ctx.$slots, (_2, name) => {
|
|
31899
32916
|
return {
|
|
31900
32917
|
name,
|
|
@@ -31928,8 +32945,8 @@ const _sfc_main$v = {
|
|
|
31928
32945
|
};
|
|
31929
32946
|
}
|
|
31930
32947
|
};
|
|
31931
|
-
const _hoisted_1$
|
|
31932
|
-
const _sfc_main$
|
|
32948
|
+
const _hoisted_1$k = { class: "ui-fancytree fancytree-container fancytree-plain fancytree-ext-childcounter" };
|
|
32949
|
+
const _sfc_main$w = {
|
|
31933
32950
|
__name: "AppTree",
|
|
31934
32951
|
props: {
|
|
31935
32952
|
list: {},
|
|
@@ -31957,9 +32974,9 @@ const _sfc_main$u = {
|
|
|
31957
32974
|
clonedTree.value = setAttributes2(computedTree);
|
|
31958
32975
|
}, { immediate: true });
|
|
31959
32976
|
return (_ctx, _cache2) => {
|
|
31960
|
-
return openBlock(), createElementBlock("ul", _hoisted_1$
|
|
32977
|
+
return openBlock(), createElementBlock("ul", _hoisted_1$k, [
|
|
31961
32978
|
(openBlock(true), createElementBlock(Fragment, null, renderList(clonedTree.value, (item) => {
|
|
31962
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32979
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
31963
32980
|
key: item.id,
|
|
31964
32981
|
list: item
|
|
31965
32982
|
}, createSlots({ _: 2 }, [
|
|
@@ -31977,7 +32994,7 @@ const _sfc_main$u = {
|
|
|
31977
32994
|
};
|
|
31978
32995
|
}
|
|
31979
32996
|
};
|
|
31980
|
-
const _hoisted_1$
|
|
32997
|
+
const _hoisted_1$j = { class: "d-flex justify-content-end align-items-center px-2" };
|
|
31981
32998
|
const _hoisted_2$d = {
|
|
31982
32999
|
key: 0,
|
|
31983
33000
|
class: "nav-item nav-item-dropdown-lg dropdown ms-lg-2"
|
|
@@ -31986,7 +33003,7 @@ const _hoisted_3$7 = {
|
|
|
31986
33003
|
class: "dropdown-menu dropdown-menu-end show cursor-pointer",
|
|
31987
33004
|
"data-bs-popper": "static"
|
|
31988
33005
|
};
|
|
31989
|
-
const _sfc_main$
|
|
33006
|
+
const _sfc_main$v = {
|
|
31990
33007
|
__name: "AppDropdown",
|
|
31991
33008
|
props: {
|
|
31992
33009
|
list: [Array]
|
|
@@ -32002,7 +33019,7 @@ const _sfc_main$t = {
|
|
|
32002
33019
|
return (_ctx, _cache2) => {
|
|
32003
33020
|
const _component_app_button = resolveComponent("app-button");
|
|
32004
33021
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
32005
|
-
createElementVNode("div", _hoisted_1$
|
|
33022
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
32006
33023
|
createElementVNode("a", {
|
|
32007
33024
|
onClick: toggleDropdown,
|
|
32008
33025
|
class: "navbar-nav-link rounded-pill p-1 cursor-pointer mr-5",
|
|
@@ -32032,13 +33049,13 @@ const _sfc_main$t = {
|
|
|
32032
33049
|
};
|
|
32033
33050
|
}
|
|
32034
33051
|
};
|
|
32035
|
-
const _sfc_main$
|
|
32036
|
-
const _hoisted_1$
|
|
33052
|
+
const _sfc_main$u = {};
|
|
33053
|
+
const _hoisted_1$i = { class: "navbar navbar-sm navbar-footer border-top" };
|
|
32037
33054
|
const _hoisted_2$c = { class: "container-fluid" };
|
|
32038
33055
|
const _hoisted_3$6 = { class: "nav" };
|
|
32039
33056
|
const _hoisted_4$5 = { class: "nav-item" };
|
|
32040
33057
|
function _sfc_render(_ctx, _cache2) {
|
|
32041
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33058
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
32042
33059
|
createElementVNode("div", _hoisted_2$c, [
|
|
32043
33060
|
renderSlot(_ctx.$slots, "footer-left"),
|
|
32044
33061
|
createElementVNode("ul", _hoisted_3$6, [
|
|
@@ -32049,9 +33066,9 @@ function _sfc_render(_ctx, _cache2) {
|
|
|
32049
33066
|
])
|
|
32050
33067
|
]);
|
|
32051
33068
|
}
|
|
32052
|
-
const AppFooter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32053
|
-
const _hoisted_1$
|
|
32054
|
-
const _sfc_main$
|
|
33069
|
+
const AppFooter = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render]]);
|
|
33070
|
+
const _hoisted_1$h = { class: "w-100 h-100 flex-center" };
|
|
33071
|
+
const _sfc_main$t = {
|
|
32055
33072
|
__name: "AppLoading",
|
|
32056
33073
|
props: {
|
|
32057
33074
|
size: {
|
|
@@ -32062,7 +33079,7 @@ const _sfc_main$r = {
|
|
|
32062
33079
|
const props2 = __props;
|
|
32063
33080
|
const style = computed(() => `font-size: ${props2.size}px;`);
|
|
32064
33081
|
return (_ctx, _cache2) => {
|
|
32065
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33082
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
32066
33083
|
createElementVNode("i", {
|
|
32067
33084
|
class: "icon-spinner11 spinner",
|
|
32068
33085
|
style: normalizeStyle(style.value)
|
|
@@ -32071,12 +33088,12 @@ const _sfc_main$r = {
|
|
|
32071
33088
|
};
|
|
32072
33089
|
}
|
|
32073
33090
|
};
|
|
32074
|
-
const _hoisted_1$
|
|
33091
|
+
const _hoisted_1$g = {
|
|
32075
33092
|
"aria-modal": "true",
|
|
32076
33093
|
class: "modal fade show display-block",
|
|
32077
33094
|
tabindex: "-1"
|
|
32078
33095
|
};
|
|
32079
|
-
const _sfc_main$
|
|
33096
|
+
const _sfc_main$s = {
|
|
32080
33097
|
__name: "AppModal",
|
|
32081
33098
|
props: /* @__PURE__ */ mergeModels({
|
|
32082
33099
|
/**
|
|
@@ -32198,7 +33215,7 @@ const _sfc_main$q = {
|
|
|
32198
33215
|
class: "app-modal-overlay",
|
|
32199
33216
|
style: { "z-index": "99999" }
|
|
32200
33217
|
}, [
|
|
32201
|
-
createElementVNode("div", _hoisted_1$
|
|
33218
|
+
createElementVNode("div", _hoisted_1$g, [
|
|
32202
33219
|
createElementVNode("div", {
|
|
32203
33220
|
ref_key: "modal",
|
|
32204
33221
|
ref: modal,
|
|
@@ -32222,10 +33239,10 @@ const _sfc_main$q = {
|
|
|
32222
33239
|
};
|
|
32223
33240
|
}
|
|
32224
33241
|
};
|
|
32225
|
-
const AppModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32226
|
-
const _hoisted_1$
|
|
33242
|
+
const AppModal = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-e8a3ed1f"]]);
|
|
33243
|
+
const _hoisted_1$f = { class: "loading-modal-content" };
|
|
32227
33244
|
const _hoisted_2$b = { class: "display-flex flex-column gap-2" };
|
|
32228
|
-
const _sfc_main$
|
|
33245
|
+
const _sfc_main$r = {
|
|
32229
33246
|
__name: "AppLoadingModal",
|
|
32230
33247
|
props: /* @__PURE__ */ mergeModels({
|
|
32231
33248
|
loadingText: {
|
|
@@ -32252,10 +33269,10 @@ const _sfc_main$p = {
|
|
|
32252
33269
|
class: "modal-dim"
|
|
32253
33270
|
}, {
|
|
32254
33271
|
default: withCtx(() => [
|
|
32255
|
-
createElementVNode("div", _hoisted_1$
|
|
33272
|
+
createElementVNode("div", _hoisted_1$f, [
|
|
32256
33273
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
32257
33274
|
createElementVNode("div", _hoisted_2$b, [
|
|
32258
|
-
createVNode(_sfc_main$
|
|
33275
|
+
createVNode(_sfc_main$t),
|
|
32259
33276
|
createElementVNode("div", null, toDisplayString(__props.loadingText), 1)
|
|
32260
33277
|
])
|
|
32261
33278
|
], true)
|
|
@@ -32266,7 +33283,7 @@ const _sfc_main$p = {
|
|
|
32266
33283
|
};
|
|
32267
33284
|
}
|
|
32268
33285
|
};
|
|
32269
|
-
const AppLoadingModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
33286
|
+
const AppLoadingModal = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-eff13cc8"]]);
|
|
32270
33287
|
const millisecondsInWeek = 6048e5;
|
|
32271
33288
|
const millisecondsInDay = 864e5;
|
|
32272
33289
|
const millisecondsInMinute = 6e4;
|
|
@@ -40928,7 +41945,7 @@ const io = ({
|
|
|
40928
41945
|
Object.entries(To).forEach(([e2, t2]) => {
|
|
40929
41946
|
e2 !== "default" && (Qn[e2] = t2);
|
|
40930
41947
|
});
|
|
40931
|
-
const _hoisted_1$
|
|
41948
|
+
const _hoisted_1$e = { class: "flex-1" };
|
|
40932
41949
|
const _hoisted_2$a = { class: "display-flex mb-20 align-items-center" };
|
|
40933
41950
|
const _hoisted_3$5 = {
|
|
40934
41951
|
key: 0,
|
|
@@ -40944,7 +41961,7 @@ const _hoisted_7$1 = {
|
|
|
40944
41961
|
const _hoisted_8$1 = { class: "table no-padding" };
|
|
40945
41962
|
const _hoisted_9$1 = ["onClick"];
|
|
40946
41963
|
const _hoisted_10 = { class: "display-flex justify-content-between flex-1 px-2" };
|
|
40947
|
-
const _sfc_main$
|
|
41964
|
+
const _sfc_main$q = {
|
|
40948
41965
|
__name: "AppDualListSection",
|
|
40949
41966
|
props: {
|
|
40950
41967
|
isLoading: {
|
|
@@ -41022,7 +42039,7 @@ const _sfc_main$o = {
|
|
|
41022
42039
|
const _component_app_input = resolveComponent("app-input");
|
|
41023
42040
|
const _component_app_placeholder_heading = resolveComponent("app-placeholder-heading");
|
|
41024
42041
|
const _directive_tippy = resolveDirective("tippy");
|
|
41025
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
42042
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
41026
42043
|
createElementVNode("h6", null, toDisplayString(__props.title), 1),
|
|
41027
42044
|
createElementVNode("div", _hoisted_2$a, [
|
|
41028
42045
|
withDirectives(createVNode(_component_app_checkbox, {
|
|
@@ -41090,11 +42107,11 @@ const _sfc_main$o = {
|
|
|
41090
42107
|
};
|
|
41091
42108
|
}
|
|
41092
42109
|
};
|
|
41093
|
-
const _hoisted_1$
|
|
42110
|
+
const _hoisted_1$d = { class: "display-flex" };
|
|
41094
42111
|
const _hoisted_2$9 = { class: "pt-20" };
|
|
41095
42112
|
const _hoisted_3$4 = { class: "flex-center flex-column p-20 gap-2" };
|
|
41096
42113
|
const _hoisted_4$3 = { class: "pt-20" };
|
|
41097
|
-
const _sfc_main$
|
|
42114
|
+
const _sfc_main$p = {
|
|
41098
42115
|
__name: "AppDualList",
|
|
41099
42116
|
props: {
|
|
41100
42117
|
titleRight: {
|
|
@@ -41170,8 +42187,8 @@ const _sfc_main$n = {
|
|
|
41170
42187
|
rightSection.value.noItemSelected();
|
|
41171
42188
|
};
|
|
41172
42189
|
return (_ctx, _cache2) => {
|
|
41173
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
41174
|
-
createVNode(_sfc_main$
|
|
42190
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
42191
|
+
createVNode(_sfc_main$q, {
|
|
41175
42192
|
ref_key: "leftSection",
|
|
41176
42193
|
ref: leftSection,
|
|
41177
42194
|
list: __props.listLeft,
|
|
@@ -41196,20 +42213,20 @@ const _sfc_main$n = {
|
|
|
41196
42213
|
_: 3
|
|
41197
42214
|
}, 8, ["list", "is-checked", "is-loading", "location", "title"]),
|
|
41198
42215
|
createElementVNode("div", _hoisted_3$4, [
|
|
41199
|
-
createVNode(_sfc_main$
|
|
42216
|
+
createVNode(_sfc_main$1D, {
|
|
41200
42217
|
disabled: rightArrowDisabled.value,
|
|
41201
42218
|
class: "btn-primary",
|
|
41202
42219
|
icon: "icon-arrow-right7",
|
|
41203
42220
|
onClick: moveRight
|
|
41204
42221
|
}, null, 8, ["disabled"]),
|
|
41205
|
-
createVNode(_sfc_main$
|
|
42222
|
+
createVNode(_sfc_main$1D, {
|
|
41206
42223
|
disabled: leftArrowDisabled.value,
|
|
41207
42224
|
class: "btn-primary",
|
|
41208
42225
|
icon: "icon-arrow-left7",
|
|
41209
42226
|
onClick: moveLeft
|
|
41210
42227
|
}, null, 8, ["disabled"])
|
|
41211
42228
|
]),
|
|
41212
|
-
createVNode(_sfc_main$
|
|
42229
|
+
createVNode(_sfc_main$q, {
|
|
41213
42230
|
ref_key: "rightSection",
|
|
41214
42231
|
ref: rightSection,
|
|
41215
42232
|
list: __props.listRight,
|
|
@@ -41239,7 +42256,7 @@ const _sfc_main$n = {
|
|
|
41239
42256
|
};
|
|
41240
42257
|
const OPERATION_ADD = "ADD";
|
|
41241
42258
|
const OPERATION_REMOVE = "REMOVE";
|
|
41242
|
-
const _sfc_main$
|
|
42259
|
+
const _sfc_main$o = {
|
|
41243
42260
|
__name: "AppDualListMagic",
|
|
41244
42261
|
props: /* @__PURE__ */ mergeModels({
|
|
41245
42262
|
fetchOnMount: {
|
|
@@ -41456,7 +42473,7 @@ const _sfc_main$m = {
|
|
|
41456
42473
|
});
|
|
41457
42474
|
return (_ctx, _cache2) => {
|
|
41458
42475
|
const _component_app_pagination = resolveComponent("app-pagination");
|
|
41459
|
-
return openBlock(), createBlock(_sfc_main$
|
|
42476
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
41460
42477
|
"is-loading-left": isLoadingLeft.value,
|
|
41461
42478
|
"is-loading-right": isLoadingRight.value,
|
|
41462
42479
|
listLeft: listLeft.value,
|
|
@@ -41646,7 +42663,7 @@ const useSelectProps = {
|
|
|
41646
42663
|
isAddValueToOptions: {},
|
|
41647
42664
|
name: {}
|
|
41648
42665
|
};
|
|
41649
|
-
const _sfc_main$
|
|
42666
|
+
const _sfc_main$n = {
|
|
41650
42667
|
__name: "AppSelectBoolean",
|
|
41651
42668
|
props: /* @__PURE__ */ mergeModels({
|
|
41652
42669
|
...useSelectProps,
|
|
@@ -42730,7 +43747,7 @@ const IconConstants = {
|
|
|
42730
43747
|
"ph-youtube-logo"
|
|
42731
43748
|
]
|
|
42732
43749
|
};
|
|
42733
|
-
const _sfc_main$
|
|
43750
|
+
const _sfc_main$m = {
|
|
42734
43751
|
__name: "AppSelectIcon",
|
|
42735
43752
|
props: /* @__PURE__ */ mergeModels({
|
|
42736
43753
|
...useSelectProps,
|
|
@@ -42755,7 +43772,7 @@ const _sfc_main$k = {
|
|
|
42755
43772
|
};
|
|
42756
43773
|
return (_ctx, _cache2) => {
|
|
42757
43774
|
const _component_app_icon = resolveComponent("app-icon");
|
|
42758
|
-
return openBlock(), createBlock(_sfc_main$
|
|
43775
|
+
return openBlock(), createBlock(_sfc_main$Q, mergeProps({
|
|
42759
43776
|
list: filteredOptions.value,
|
|
42760
43777
|
modelValue: modelValue.value,
|
|
42761
43778
|
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => modelValue.value = $event),
|
|
@@ -42780,20 +43797,20 @@ const _sfc_main$k = {
|
|
|
42780
43797
|
};
|
|
42781
43798
|
}
|
|
42782
43799
|
};
|
|
42783
|
-
const _hoisted_1$
|
|
43800
|
+
const _hoisted_1$c = { class: "carousel-element panel-basic mb-15" };
|
|
42784
43801
|
const _hoisted_2$8 = { class: "text-muted" };
|
|
42785
|
-
const _sfc_main$
|
|
43802
|
+
const _sfc_main$l = {
|
|
42786
43803
|
__name: "AppCarouselItem",
|
|
42787
43804
|
props: ["modelValue"],
|
|
42788
43805
|
setup(__props) {
|
|
42789
43806
|
return (_ctx, _cache2) => {
|
|
42790
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
43807
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
42791
43808
|
createElementVNode("div", _hoisted_2$8, toDisplayString(__props.modelValue), 1)
|
|
42792
43809
|
]);
|
|
42793
43810
|
};
|
|
42794
43811
|
}
|
|
42795
43812
|
};
|
|
42796
|
-
const _hoisted_1$
|
|
43813
|
+
const _hoisted_1$b = {
|
|
42797
43814
|
ref: "appCarousel",
|
|
42798
43815
|
class: "carousel-component position-relative shadow-sm"
|
|
42799
43816
|
};
|
|
@@ -42814,7 +43831,7 @@ const _hoisted_8 = {
|
|
|
42814
43831
|
class: "navigate navigate-next"
|
|
42815
43832
|
};
|
|
42816
43833
|
const _hoisted_9 = ["disabled"];
|
|
42817
|
-
const _sfc_main$
|
|
43834
|
+
const _sfc_main$k = {
|
|
42818
43835
|
__name: "AppCarousel",
|
|
42819
43836
|
props: {
|
|
42820
43837
|
title: {},
|
|
@@ -42899,7 +43916,7 @@ const _sfc_main$i = {
|
|
|
42899
43916
|
return (_ctx, _cache2) => {
|
|
42900
43917
|
const _component_app_loading_overlay = resolveComponent("app-loading-overlay");
|
|
42901
43918
|
const _directive_horizontal_scroll = resolveDirective("horizontal-scroll");
|
|
42902
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
43919
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
42903
43920
|
__props.isLoading ? (openBlock(), createBlock(_component_app_loading_overlay, { key: 0 })) : createCommentVNode("", true),
|
|
42904
43921
|
createElementVNode("div", _hoisted_2$7, [
|
|
42905
43922
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
@@ -42928,7 +43945,7 @@ const _sfc_main$i = {
|
|
|
42928
43945
|
index,
|
|
42929
43946
|
item
|
|
42930
43947
|
}, () => [
|
|
42931
|
-
createVNode(_sfc_main$
|
|
43948
|
+
createVNode(_sfc_main$l, { "model-value": item }, null, 8, ["model-value"])
|
|
42932
43949
|
]);
|
|
42933
43950
|
}), 256))
|
|
42934
43951
|
])
|
|
@@ -42951,7 +43968,7 @@ const _sfc_main$i = {
|
|
|
42951
43968
|
};
|
|
42952
43969
|
}
|
|
42953
43970
|
};
|
|
42954
|
-
const _sfc_main$
|
|
43971
|
+
const _sfc_main$j = {
|
|
42955
43972
|
__name: "AppPreviewDrawer",
|
|
42956
43973
|
emits: [
|
|
42957
43974
|
"mounted"
|
|
@@ -73270,9 +74287,9 @@ function usePdf({
|
|
|
73270
74287
|
printPreview
|
|
73271
74288
|
};
|
|
73272
74289
|
}
|
|
73273
|
-
const _hoisted_1$
|
|
74290
|
+
const _hoisted_1$a = { class: "app-preview app-preview-pdf position-relative" };
|
|
73274
74291
|
const _hoisted_2$6 = { class: "app-preview-actions" };
|
|
73275
|
-
const _sfc_main$
|
|
74292
|
+
const _sfc_main$i = {
|
|
73276
74293
|
__name: "AppPreviewPdf",
|
|
73277
74294
|
props: {
|
|
73278
74295
|
source: {
|
|
@@ -73400,18 +74417,18 @@ const _sfc_main$g = {
|
|
|
73400
74417
|
}
|
|
73401
74418
|
};
|
|
73402
74419
|
return (_ctx, _cache2) => {
|
|
73403
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
74420
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
73404
74421
|
createElementVNode("div", _hoisted_2$6, [
|
|
73405
|
-
createVNode(_sfc_main$
|
|
74422
|
+
createVNode(_sfc_main$1C, {
|
|
73406
74423
|
value: pageButtons.value,
|
|
73407
74424
|
class: "mr-10",
|
|
73408
74425
|
onClick
|
|
73409
74426
|
}, null, 8, ["value"]),
|
|
73410
|
-
createVNode(_sfc_main$
|
|
74427
|
+
createVNode(_sfc_main$1C, {
|
|
73411
74428
|
value: zoomButtons.value,
|
|
73412
74429
|
onClick
|
|
73413
74430
|
}, null, 8, ["value"]),
|
|
73414
|
-
createVNode(_sfc_main$
|
|
74431
|
+
createVNode(_sfc_main$1C, {
|
|
73415
74432
|
class: "ml-30",
|
|
73416
74433
|
value: printButtons.value,
|
|
73417
74434
|
onClick
|
|
@@ -79656,9 +80673,9 @@ async function renderAsync(data, bodyContainer, styleContainer, userOptions) {
|
|
|
79656
80673
|
await renderDocument(doc, bodyContainer, styleContainer, userOptions);
|
|
79657
80674
|
return doc;
|
|
79658
80675
|
}
|
|
79659
|
-
const _hoisted_1$
|
|
80676
|
+
const _hoisted_1$9 = { class: "app-preview app-preview-pdf" };
|
|
79660
80677
|
const _hoisted_2$5 = { class: "app-preview-content" };
|
|
79661
|
-
const _sfc_main$
|
|
80678
|
+
const _sfc_main$h = {
|
|
79662
80679
|
__name: "AppPreviewDocx",
|
|
79663
80680
|
props: {
|
|
79664
80681
|
source: {
|
|
@@ -79691,7 +80708,7 @@ const _sfc_main$f = {
|
|
|
79691
80708
|
emits("isLoading", false);
|
|
79692
80709
|
}
|
|
79693
80710
|
return (_ctx, _cache2) => {
|
|
79694
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
80711
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
79695
80712
|
createElementVNode("div", _hoisted_2$5, [
|
|
79696
80713
|
createElementVNode("div", {
|
|
79697
80714
|
ref_key: "target",
|
|
@@ -82533,9 +83550,9 @@ var Viewer = /* @__PURE__ */ function() {
|
|
|
82533
83550
|
}]);
|
|
82534
83551
|
}();
|
|
82535
83552
|
assign(Viewer.prototype, render, events, handlers, methods, others);
|
|
82536
|
-
const _hoisted_1$
|
|
83553
|
+
const _hoisted_1$8 = { class: "app-preview-actions" };
|
|
82537
83554
|
const _hoisted_2$4 = { class: "app-preview-content" };
|
|
82538
|
-
const _sfc_main$
|
|
83555
|
+
const _sfc_main$g = {
|
|
82539
83556
|
__name: "AppPreviewImage",
|
|
82540
83557
|
props: {
|
|
82541
83558
|
source: {
|
|
@@ -82707,7 +83724,7 @@ const _sfc_main$e = {
|
|
|
82707
83724
|
return openBlock(), createElementBlock("div", {
|
|
82708
83725
|
class: normalizeClass(["app-preview app-preview-image", previewClass.value])
|
|
82709
83726
|
}, [
|
|
82710
|
-
createElementVNode("div", _hoisted_1$
|
|
83727
|
+
createElementVNode("div", _hoisted_1$8, [
|
|
82711
83728
|
createVNode(_component_app_button_group, {
|
|
82712
83729
|
value: buttons.value,
|
|
82713
83730
|
onClick
|
|
@@ -82725,8 +83742,8 @@ const _sfc_main$e = {
|
|
|
82725
83742
|
};
|
|
82726
83743
|
}
|
|
82727
83744
|
};
|
|
82728
|
-
const _hoisted_1$
|
|
82729
|
-
const _sfc_main$
|
|
83745
|
+
const _hoisted_1$7 = { class: "position-relative" };
|
|
83746
|
+
const _sfc_main$f = {
|
|
82730
83747
|
__name: "AppFilePreview",
|
|
82731
83748
|
props: {
|
|
82732
83749
|
source: {
|
|
@@ -82793,13 +83810,13 @@ const _sfc_main$d = {
|
|
|
82793
83810
|
});
|
|
82794
83811
|
return (_ctx, _cache2) => {
|
|
82795
83812
|
const _component_app_loading_overlay = resolveComponent("app-loading-overlay");
|
|
82796
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
83813
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
82797
83814
|
isLoading2.value ? (openBlock(), createBlock(_component_app_loading_overlay, { key: 0 })) : createCommentVNode("", true),
|
|
82798
|
-
createVNode(_sfc_main$
|
|
83815
|
+
createVNode(_sfc_main$j, {
|
|
82799
83816
|
onMounted: _cache2[0] || (_cache2[0] = ($event) => emits("mounted", $event))
|
|
82800
83817
|
}, {
|
|
82801
83818
|
content: withCtx(({ showDrawer, hideDrawer }) => [
|
|
82802
|
-
isPdf.value ? (openBlock(), createBlock(_sfc_main$
|
|
83819
|
+
isPdf.value ? (openBlock(), createBlock(_sfc_main$i, {
|
|
82803
83820
|
key: 0,
|
|
82804
83821
|
source: __props.source,
|
|
82805
83822
|
"render-text": __props.renderText,
|
|
@@ -82825,11 +83842,11 @@ const _sfc_main$d = {
|
|
|
82825
83842
|
]),
|
|
82826
83843
|
_: 3
|
|
82827
83844
|
}),
|
|
82828
|
-
isDocx.value ? (openBlock(), createBlock(_sfc_main$
|
|
83845
|
+
isDocx.value ? (openBlock(), createBlock(_sfc_main$h, {
|
|
82829
83846
|
key: 1,
|
|
82830
83847
|
source: __props.source
|
|
82831
83848
|
}, null, 8, ["source"])) : createCommentVNode("", true),
|
|
82832
|
-
isImage.value ? (openBlock(), createBlock(_sfc_main$
|
|
83849
|
+
isImage.value ? (openBlock(), createBlock(_sfc_main$g, {
|
|
82833
83850
|
key: 2,
|
|
82834
83851
|
source: __props.source,
|
|
82835
83852
|
onIsLoading: setIsLoading
|
|
@@ -82838,8 +83855,8 @@ const _sfc_main$d = {
|
|
|
82838
83855
|
};
|
|
82839
83856
|
}
|
|
82840
83857
|
};
|
|
82841
|
-
const _hoisted_1$
|
|
82842
|
-
const _sfc_main$
|
|
83858
|
+
const _hoisted_1$6 = ["srcdoc"];
|
|
83859
|
+
const _sfc_main$e = {
|
|
82843
83860
|
__name: "AppIframe",
|
|
82844
83861
|
props: /* @__PURE__ */ mergeModels({
|
|
82845
83862
|
useIframe: {
|
|
@@ -82881,7 +83898,7 @@ const _sfc_main$c = {
|
|
|
82881
83898
|
srcdoc: html2.value,
|
|
82882
83899
|
style: normalizeStyle(iframeStyle.value),
|
|
82883
83900
|
onLoad: resizeIframe
|
|
82884
|
-
}, null, 44, _hoisted_1$
|
|
83901
|
+
}, null, 44, _hoisted_1$6)) : (openBlock(), createBlock(_sfc_main$1I, {
|
|
82885
83902
|
key: 1,
|
|
82886
83903
|
modelValue: html2.value,
|
|
82887
83904
|
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => html2.value = $event),
|
|
@@ -82890,12 +83907,12 @@ const _sfc_main$c = {
|
|
|
82890
83907
|
};
|
|
82891
83908
|
}
|
|
82892
83909
|
};
|
|
82893
|
-
const _hoisted_1$
|
|
83910
|
+
const _hoisted_1$5 = { class: "wizard-form steps-enable-all wizard clearfix" };
|
|
82894
83911
|
const _hoisted_2$3 = { class: "steps clearfix" };
|
|
82895
83912
|
const _hoisted_3$2 = ["onClick"];
|
|
82896
83913
|
const _hoisted_4$1 = { class: "number" };
|
|
82897
83914
|
const _hoisted_5$1 = { class: "content clearfix" };
|
|
82898
|
-
const _sfc_main$
|
|
83915
|
+
const _sfc_main$d = {
|
|
82899
83916
|
__name: "AppFormWizard",
|
|
82900
83917
|
props: {
|
|
82901
83918
|
activeTab: {
|
|
@@ -82996,7 +84013,7 @@ const _sfc_main$b = {
|
|
|
82996
84013
|
};
|
|
82997
84014
|
return (_ctx, _cache2) => {
|
|
82998
84015
|
const _directive_horizontal_scroll = resolveDirective("horizontal-scroll");
|
|
82999
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
84016
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
83000
84017
|
createElementVNode("div", _hoisted_2$3, [
|
|
83001
84018
|
withDirectives((openBlock(), createElementBlock("ul", {
|
|
83002
84019
|
class: normalizeClass(stepsContainerClass.value)
|
|
@@ -83028,7 +84045,7 @@ const _sfc_main$b = {
|
|
|
83028
84045
|
};
|
|
83029
84046
|
}
|
|
83030
84047
|
};
|
|
83031
|
-
const _sfc_main$
|
|
84048
|
+
const _sfc_main$c = {
|
|
83032
84049
|
__name: "AppRadioButton",
|
|
83033
84050
|
props: ["modelValue"],
|
|
83034
84051
|
emits: ["update:modelValue"],
|
|
@@ -83056,7 +84073,7 @@ const _sfc_main$a = {
|
|
|
83056
84073
|
};
|
|
83057
84074
|
}
|
|
83058
84075
|
};
|
|
83059
|
-
const AppRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
84076
|
+
const AppRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-2757e2d2"]]);
|
|
83060
84077
|
const targetDictionary = ref({});
|
|
83061
84078
|
function useTeleport() {
|
|
83062
84079
|
const isTargetMounted = (id) => {
|
|
@@ -83064,7 +84081,7 @@ function useTeleport() {
|
|
|
83064
84081
|
};
|
|
83065
84082
|
return { targetDictionary, isTargetMounted };
|
|
83066
84083
|
}
|
|
83067
|
-
const _sfc_main$
|
|
84084
|
+
const _sfc_main$b = {
|
|
83068
84085
|
__name: "AppTeleport",
|
|
83069
84086
|
props: {
|
|
83070
84087
|
id: {}
|
|
@@ -83084,8 +84101,8 @@ const _sfc_main$9 = {
|
|
|
83084
84101
|
};
|
|
83085
84102
|
}
|
|
83086
84103
|
};
|
|
83087
|
-
const _hoisted_1$
|
|
83088
|
-
const _sfc_main$
|
|
84104
|
+
const _hoisted_1$4 = ["id"];
|
|
84105
|
+
const _sfc_main$a = {
|
|
83089
84106
|
__name: "AppTeleportTarget",
|
|
83090
84107
|
props: {
|
|
83091
84108
|
id: {}
|
|
@@ -83100,11 +84117,11 @@ const _sfc_main$8 = {
|
|
|
83100
84117
|
teleport.targetDictionary.value[props2.id] = false;
|
|
83101
84118
|
});
|
|
83102
84119
|
return (_ctx, _cache2) => {
|
|
83103
|
-
return openBlock(), createElementBlock("div", { id: __props.id }, null, 8, _hoisted_1$
|
|
84120
|
+
return openBlock(), createElementBlock("div", { id: __props.id }, null, 8, _hoisted_1$4);
|
|
83104
84121
|
};
|
|
83105
84122
|
}
|
|
83106
84123
|
};
|
|
83107
|
-
const _sfc_main$
|
|
84124
|
+
const _sfc_main$9 = {
|
|
83108
84125
|
__name: "app-skeleton",
|
|
83109
84126
|
props: {
|
|
83110
84127
|
className: {
|
|
@@ -83134,7 +84151,7 @@ const _sfc_main$7 = {
|
|
|
83134
84151
|
};
|
|
83135
84152
|
}
|
|
83136
84153
|
};
|
|
83137
|
-
const _sfc_main$
|
|
84154
|
+
const _sfc_main$8 = {
|
|
83138
84155
|
__name: "app-skeleton-group",
|
|
83139
84156
|
props: {
|
|
83140
84157
|
count: { type: Number, default: 4 },
|
|
@@ -83177,7 +84194,7 @@ const _sfc_main$6 = {
|
|
|
83177
84194
|
};
|
|
83178
84195
|
}
|
|
83179
84196
|
};
|
|
83180
|
-
const _sfc_main$
|
|
84197
|
+
const _sfc_main$7 = {
|
|
83181
84198
|
__name: "AppModalCard",
|
|
83182
84199
|
props: /* @__PURE__ */ mergeModels({
|
|
83183
84200
|
title: {},
|
|
@@ -83225,7 +84242,7 @@ const _sfc_main$5 = {
|
|
|
83225
84242
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
83226
84243
|
]),
|
|
83227
84244
|
"heading-elements": withCtx(() => [
|
|
83228
|
-
createVNode(_sfc_main$
|
|
84245
|
+
createVNode(_sfc_main$1D, {
|
|
83229
84246
|
class: "btn-transparent",
|
|
83230
84247
|
onClick: close3
|
|
83231
84248
|
}, {
|
|
@@ -83246,7 +84263,7 @@ const _sfc_main$5 = {
|
|
|
83246
84263
|
};
|
|
83247
84264
|
}
|
|
83248
84265
|
};
|
|
83249
|
-
const _sfc_main$
|
|
84266
|
+
const _sfc_main$6 = {
|
|
83250
84267
|
__name: "AppFormModal",
|
|
83251
84268
|
props: {
|
|
83252
84269
|
form: {},
|
|
@@ -83339,13 +84356,13 @@ const _sfc_main$4 = {
|
|
|
83339
84356
|
};
|
|
83340
84357
|
}
|
|
83341
84358
|
};
|
|
83342
|
-
const _hoisted_1$
|
|
84359
|
+
const _hoisted_1$3 = { class: "fileInfo" };
|
|
83343
84360
|
const _hoisted_2$2 = { class: "file-meta" };
|
|
83344
84361
|
const _hoisted_3$1 = {
|
|
83345
84362
|
key: 0,
|
|
83346
84363
|
class: "file-actions"
|
|
83347
84364
|
};
|
|
83348
|
-
const _sfc_main$
|
|
84365
|
+
const _sfc_main$5 = {
|
|
83349
84366
|
__name: "AppFileContentNew",
|
|
83350
84367
|
props: {
|
|
83351
84368
|
files: { type: Array, default: () => [] },
|
|
@@ -83404,7 +84421,7 @@ const _sfc_main$3 = {
|
|
|
83404
84421
|
}, [
|
|
83405
84422
|
createElementVNode("span", null, toDisplayString(unref(getExtension2)(file).toUpperCase()), 1)
|
|
83406
84423
|
], 2),
|
|
83407
|
-
createElementVNode("div", _hoisted_1$
|
|
84424
|
+
createElementVNode("div", _hoisted_1$3, [
|
|
83408
84425
|
createVNode(_component_app_ellipsis_text, {
|
|
83409
84426
|
"max-length": 30,
|
|
83410
84427
|
value: unref(getFilename2)(file),
|
|
@@ -83453,7 +84470,7 @@ const _sfc_main$3 = {
|
|
|
83453
84470
|
};
|
|
83454
84471
|
}
|
|
83455
84472
|
};
|
|
83456
|
-
const _sfc_main$
|
|
84473
|
+
const _sfc_main$4 = {
|
|
83457
84474
|
__name: "AppPreviewModal",
|
|
83458
84475
|
props: {
|
|
83459
84476
|
name: {
|
|
@@ -83545,7 +84562,7 @@ const _sfc_main$2 = {
|
|
|
83545
84562
|
};
|
|
83546
84563
|
}
|
|
83547
84564
|
};
|
|
83548
|
-
const _hoisted_1$
|
|
84565
|
+
const _hoisted_1$2 = { class: "fileupload" };
|
|
83549
84566
|
const _hoisted_2$1 = ["multiple", "accept", "disabled"];
|
|
83550
84567
|
const _hoisted_3 = { class: "dropzone__content" };
|
|
83551
84568
|
const _hoisted_4 = { class: "dropzone__text-inner" };
|
|
@@ -83555,7 +84572,7 @@ const _hoisted_6 = {
|
|
|
83555
84572
|
ref: "content",
|
|
83556
84573
|
class: "fileupload-content"
|
|
83557
84574
|
};
|
|
83558
|
-
const _sfc_main$
|
|
84575
|
+
const _sfc_main$3 = {
|
|
83559
84576
|
__name: "AppFileNew",
|
|
83560
84577
|
props: /* @__PURE__ */ mergeModels({
|
|
83561
84578
|
accept: { type: [Array, String], default: () => Object.values(mimeType) },
|
|
@@ -83609,7 +84626,7 @@ const _sfc_main$1 = {
|
|
|
83609
84626
|
const _component_app_button = resolveComponent("app-button");
|
|
83610
84627
|
const _component_app_form_element = resolveComponent("app-form-element");
|
|
83611
84628
|
return openBlock(), createElementBlock("div", null, [
|
|
83612
|
-
createVNode(_sfc_main$
|
|
84629
|
+
createVNode(_sfc_main$4, {
|
|
83613
84630
|
ref_key: "previewModal",
|
|
83614
84631
|
ref: previewModal,
|
|
83615
84632
|
name: "filePreviewModal"
|
|
@@ -83617,7 +84634,7 @@ const _sfc_main$1 = {
|
|
|
83617
84634
|
unref(fileUpload).isLoading.value ? (openBlock(), createBlock(_component_app_loading_overlay, { key: 0 })) : createCommentVNode("", true),
|
|
83618
84635
|
createVNode(_component_app_form_element, normalizeProps(guardReactiveProps(unref(formElementProps))), {
|
|
83619
84636
|
default: withCtx(() => [
|
|
83620
|
-
createElementVNode("div", _hoisted_1$
|
|
84637
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
83621
84638
|
createElementVNode("input", {
|
|
83622
84639
|
ref_key: "fileInput",
|
|
83623
84640
|
ref: fileInput,
|
|
@@ -83627,7 +84644,7 @@ const _sfc_main$1 = {
|
|
|
83627
84644
|
disabled: _ctx.disabled,
|
|
83628
84645
|
onChange: _cache2[0] || (_cache2[0] = (...args) => unref(fileUpload).onFileSelect && unref(fileUpload).onFileSelect(...args))
|
|
83629
84646
|
}, null, 40, _hoisted_2$1),
|
|
83630
|
-
createVNode(_sfc_main$
|
|
84647
|
+
createVNode(_sfc_main$1n, {
|
|
83631
84648
|
disabled: _ctx.disabled,
|
|
83632
84649
|
onFilesDropped: unref(fileUpload).onFileSelect
|
|
83633
84650
|
}, {
|
|
@@ -83695,7 +84712,7 @@ const _sfc_main$1 = {
|
|
|
83695
84712
|
_: 3
|
|
83696
84713
|
}, 8, ["disabled", "onFilesDropped"]),
|
|
83697
84714
|
unref(fileUpload).hasFiles.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
83698
|
-
createVNode(_sfc_main$
|
|
84715
|
+
createVNode(_sfc_main$5, {
|
|
83699
84716
|
files: modelValue.value,
|
|
83700
84717
|
disabled: _ctx.disabled,
|
|
83701
84718
|
onRemoved: unref(fileUpload).removeFile,
|
|
@@ -83720,111 +84737,6 @@ const _sfc_main$1 = {
|
|
|
83720
84737
|
};
|
|
83721
84738
|
}
|
|
83722
84739
|
};
|
|
83723
|
-
const components = {
|
|
83724
|
-
AppBadge: _sfc_main$1E,
|
|
83725
|
-
AppBreadcrumbs: _sfc_main$1C,
|
|
83726
|
-
AppButton: _sfc_main$1B,
|
|
83727
|
-
AppButtonGroup: _sfc_main$1A,
|
|
83728
|
-
AppDatePicker: _sfc_main$1x,
|
|
83729
|
-
AppDatePickerRange: _sfc_main$1w,
|
|
83730
|
-
AppDatePickerDayOfWeek: _sfc_main$1s,
|
|
83731
|
-
VueDatePicker: Qn,
|
|
83732
|
-
AppCard: _sfc_main$1v,
|
|
83733
|
-
AppCheckbox: _sfc_main$1u,
|
|
83734
|
-
AppChild,
|
|
83735
|
-
AppDateTimePicker: _sfc_main$1o,
|
|
83736
|
-
AppDrawer,
|
|
83737
|
-
AppTableFilterDrawer,
|
|
83738
|
-
AppFile: _sfc_main$1g,
|
|
83739
|
-
AppFileInput,
|
|
83740
|
-
AppFormRepeater: _sfc_main$1f,
|
|
83741
|
-
AppGridPicker,
|
|
83742
|
-
AppColorPicker,
|
|
83743
|
-
AppIcon: _sfc_main$1F,
|
|
83744
|
-
AppInput: _sfc_main$1d,
|
|
83745
|
-
AppLink: _sfc_main$1c,
|
|
83746
|
-
AppMenu: _sfc_main$19,
|
|
83747
|
-
AppNumberInput,
|
|
83748
|
-
AppPage: _sfc_main$14,
|
|
83749
|
-
AppPagination: _sfc_main$Y,
|
|
83750
|
-
AppPlaceholderCard: _sfc_main$15,
|
|
83751
|
-
AppPlaceholderHeading: _sfc_main$17,
|
|
83752
|
-
AppPlaceholderImage: _sfc_main$1D,
|
|
83753
|
-
AppPlaceholderText: _sfc_main$16,
|
|
83754
|
-
AppPlaceholderTitle: _sfc_main$X,
|
|
83755
|
-
AppProgressBar,
|
|
83756
|
-
AppProgressBarOverlay,
|
|
83757
|
-
AppRemovableTag,
|
|
83758
|
-
AppScrollToBottom,
|
|
83759
|
-
AppScrollToTop,
|
|
83760
|
-
AppScrollTopAndBottom: _sfc_main$S,
|
|
83761
|
-
AppSelect: _sfc_main$O,
|
|
83762
|
-
AppSelectNew: _sfc_main$Z,
|
|
83763
|
-
AppSidebar: _sfc_main$N,
|
|
83764
|
-
AppSidebarHeader: _sfc_main$M,
|
|
83765
|
-
AppSliderInput,
|
|
83766
|
-
AppToolbarSubheader,
|
|
83767
|
-
AppSummary: _sfc_main$I,
|
|
83768
|
-
AppTable: _sfc_main$E,
|
|
83769
|
-
AppTableMagic: _sfc_main$D,
|
|
83770
|
-
AppTableFilter: _sfc_main$G,
|
|
83771
|
-
AppTabs: _sfc_main$C,
|
|
83772
|
-
AppTag,
|
|
83773
|
-
AppTextArea,
|
|
83774
|
-
AppTimePicker,
|
|
83775
|
-
AppToggleButton: _sfc_main$y,
|
|
83776
|
-
AppToolbar: _sfc_main$x,
|
|
83777
|
-
AppTree: _sfc_main$u,
|
|
83778
|
-
AppFormElement,
|
|
83779
|
-
AppOverlay,
|
|
83780
|
-
AppLoadingOverlay: _sfc_main$1h,
|
|
83781
|
-
AppLoading: _sfc_main$r,
|
|
83782
|
-
AppLoadingModal,
|
|
83783
|
-
AppDropdown: _sfc_main$t,
|
|
83784
|
-
AppFooter,
|
|
83785
|
-
AppModal,
|
|
83786
|
-
AppModalCard: _sfc_main$5,
|
|
83787
|
-
AppDualListMagic: _sfc_main$m,
|
|
83788
|
-
AppSelectBoolean: _sfc_main$l,
|
|
83789
|
-
AppSelectIcon: _sfc_main$k,
|
|
83790
|
-
AppCarousel: _sfc_main$i,
|
|
83791
|
-
AppFormWizard: _sfc_main$b,
|
|
83792
|
-
AppElipsizedText: _sfc_main$J,
|
|
83793
|
-
AppEllipsisText: _sfc_main$J,
|
|
83794
|
-
AppFilePreview: _sfc_main$d,
|
|
83795
|
-
AppHtml: _sfc_main$1G,
|
|
83796
|
-
AppIframe: _sfc_main$c,
|
|
83797
|
-
AppRadioButton,
|
|
83798
|
-
AppTeleport: _sfc_main$9,
|
|
83799
|
-
AppTeleportTarget: _sfc_main$8,
|
|
83800
|
-
AppTabsBoolean: _sfc_main$B,
|
|
83801
|
-
AppSkeleton: _sfc_main$7,
|
|
83802
|
-
AppSkeletonGroup: _sfc_main$6,
|
|
83803
|
-
AppFormModal: _sfc_main$4,
|
|
83804
|
-
AppFileNew: _sfc_main$1
|
|
83805
|
-
};
|
|
83806
|
-
const vHorizontalScroll = {
|
|
83807
|
-
mounted(element) {
|
|
83808
|
-
element.addEventListener("wheel", (event) => {
|
|
83809
|
-
if (event.shiftKey || isTrackpad(event)) {
|
|
83810
|
-
return;
|
|
83811
|
-
}
|
|
83812
|
-
event.preventDefault();
|
|
83813
|
-
element.scrollLeft = element.scrollLeft + event.deltaY;
|
|
83814
|
-
});
|
|
83815
|
-
}
|
|
83816
|
-
};
|
|
83817
|
-
function isTrackpad(event) {
|
|
83818
|
-
let isTrackpad2 = false;
|
|
83819
|
-
if (event.wheelDeltaY) {
|
|
83820
|
-
if (event.wheelDeltaY === event.deltaY * -3) {
|
|
83821
|
-
isTrackpad2 = true;
|
|
83822
|
-
}
|
|
83823
|
-
} else if (event.deltaMode === 0) {
|
|
83824
|
-
isTrackpad2 = true;
|
|
83825
|
-
}
|
|
83826
|
-
return isTrackpad2;
|
|
83827
|
-
}
|
|
83828
84740
|
const APIConstants = {
|
|
83829
84741
|
STATUS_CODE_SUCCESS_GENERIC: 200,
|
|
83830
84742
|
STATUS_CODE_SUCCESS_ADD: 201,
|
|
@@ -83853,12 +84765,61 @@ const APIConstants = {
|
|
|
83853
84765
|
return errorCodesList.includes(responseStatus);
|
|
83854
84766
|
}
|
|
83855
84767
|
};
|
|
83856
|
-
|
|
84768
|
+
function useFormValidation(config) {
|
|
84769
|
+
const { item, schema, formName, onEvent, emits, shouldProvideErrors = true } = config;
|
|
84770
|
+
const errors = ref({});
|
|
84771
|
+
const hasErrors = computed(() => Object.keys(errors.value).length > 0);
|
|
84772
|
+
async function onValidate({ shouldScroll = true, shouldToast = true } = {}) {
|
|
84773
|
+
errors.value = {};
|
|
84774
|
+
try {
|
|
84775
|
+
await toValue$2(schema).validate(item.value, { abortEarly: false });
|
|
84776
|
+
} catch (validationErrors) {
|
|
84777
|
+
validationErrors.inner.forEach((e2) => {
|
|
84778
|
+
errors.value = { ...errors.value, [e2.path]: e2.message };
|
|
84779
|
+
});
|
|
84780
|
+
}
|
|
84781
|
+
const hasErrors2 = Object.keys(errors.value).length > 0;
|
|
84782
|
+
if (hasErrors2) {
|
|
84783
|
+
shouldToast ? UIUtils.showToastError("Formularul nu a putut fi validat") : null;
|
|
84784
|
+
shouldScroll ? scrollToFirstError() : null;
|
|
84785
|
+
return false;
|
|
84786
|
+
}
|
|
84787
|
+
return true;
|
|
84788
|
+
}
|
|
84789
|
+
const scrollToFirstError = () => {
|
|
84790
|
+
if (Object.keys(errors.value ?? {}).length === 0) {
|
|
84791
|
+
return;
|
|
84792
|
+
}
|
|
84793
|
+
let form = document.querySelector(`[vee-form=${formName.value}], [form-id=${formName.value}]`);
|
|
84794
|
+
const selector = Object.keys(errors.value).map((n) => `[name="${n}"]`).join(", ");
|
|
84795
|
+
const element = lodashExports.head(form.querySelectorAll(selector));
|
|
84796
|
+
element == null ? void 0 : element.scrollIntoView({ behavior: "smooth" });
|
|
84797
|
+
};
|
|
84798
|
+
const isFieldRequired2 = (fieldName) => {
|
|
84799
|
+
var _a3;
|
|
84800
|
+
try {
|
|
84801
|
+
const fieldSchema = reach(toValue$2(schema), fieldName);
|
|
84802
|
+
return ((_a3 = fieldSchema == null ? void 0 : fieldSchema.spec) == null ? void 0 : _a3.optional) === false;
|
|
84803
|
+
} catch {
|
|
84804
|
+
return false;
|
|
84805
|
+
}
|
|
84806
|
+
};
|
|
84807
|
+
const externalContext = {
|
|
84808
|
+
errors,
|
|
84809
|
+
hasErrors,
|
|
84810
|
+
onValidate,
|
|
84811
|
+
scrollToFirstError,
|
|
84812
|
+
isFieldRequired: isFieldRequired2
|
|
84813
|
+
};
|
|
84814
|
+
shouldProvideErrors ? provide("errors", errors) : null;
|
|
84815
|
+
return externalContext;
|
|
84816
|
+
}
|
|
84817
|
+
const _hoisted_1$1 = {
|
|
83857
84818
|
key: 0,
|
|
83858
84819
|
class: "app-dirty-toast flex-center-vertical"
|
|
83859
84820
|
};
|
|
83860
84821
|
const _hoisted_2 = { class: "mr-20" };
|
|
83861
|
-
const _sfc_main = {
|
|
84822
|
+
const _sfc_main$2 = {
|
|
83862
84823
|
__name: "AppDirtyToast",
|
|
83863
84824
|
props: {
|
|
83864
84825
|
label: {
|
|
@@ -83883,7 +84844,7 @@ const _sfc_main = {
|
|
|
83883
84844
|
return (_ctx, _cache2) => {
|
|
83884
84845
|
return openBlock(), createBlock(Transition, { name: "dirty-toast" }, {
|
|
83885
84846
|
default: withCtx(() => [
|
|
83886
|
-
__props.isDirty.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
84847
|
+
__props.isDirty.value ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
83887
84848
|
createVNode(unref(IconWriting)),
|
|
83888
84849
|
createElementVNode("label", _hoisted_2, toDisplayString(__props.label), 1),
|
|
83889
84850
|
createElementVNode("button", {
|
|
@@ -83916,7 +84877,7 @@ function useFormDirty(config) {
|
|
|
83916
84877
|
}
|
|
83917
84878
|
container = document.createElement("div");
|
|
83918
84879
|
document.body.appendChild(container);
|
|
83919
|
-
const vnode = h(_sfc_main, {
|
|
84880
|
+
const vnode = h(_sfc_main$2, {
|
|
83920
84881
|
onUndo: () => {
|
|
83921
84882
|
resetToInitial();
|
|
83922
84883
|
},
|
|
@@ -83962,289 +84923,6 @@ function useFormDirty(config) {
|
|
|
83962
84923
|
isDirty
|
|
83963
84924
|
};
|
|
83964
84925
|
}
|
|
83965
|
-
function useFormOld(props2, emits) {
|
|
83966
|
-
const formName = ref(`form-${getGUID()}`);
|
|
83967
|
-
const veeForm = props2.veeForm;
|
|
83968
|
-
const router2 = props2.router;
|
|
83969
|
-
const model = props2.model;
|
|
83970
|
-
const useInModal = props2.useInModal;
|
|
83971
|
-
const modelValue = props2.modelValue;
|
|
83972
|
-
const emitHandler = props2.emitHandler;
|
|
83973
|
-
const useDirty = props2.useDirty;
|
|
83974
|
-
const useDirtyLabel = props2.useDirtyLabel ? props2.useDirtyLabel : "Cu modificari nesalvate...";
|
|
83975
|
-
const repository = model.getRepository();
|
|
83976
|
-
const repositoryFetchOne = props2.repositoryFetchOne;
|
|
83977
|
-
const repositoryInsert = props2.repositoryInsert;
|
|
83978
|
-
const repositoryUpdate = props2.repositoryUpdate;
|
|
83979
|
-
const repositoryDelete = props2.repositoryDelete;
|
|
83980
|
-
const transformer = model.getTransformer();
|
|
83981
|
-
const transformFromApi = transformer.transformFromApi;
|
|
83982
|
-
const transformToApi = transformer.transformToApi;
|
|
83983
|
-
const itemEmpty = props2.empty ?? model.getEmpty() ?? {};
|
|
83984
|
-
const routeAfterCreate = useInModal ? null : model.getRouteForm();
|
|
83985
|
-
const routeAfterDelete = useInModal ? null : model.getRouteList();
|
|
83986
|
-
const route = computed(() => router2.currentRoute.value);
|
|
83987
|
-
const isCloning = computed(() => props2.isCloning ?? route.value.path.endsWith("/clone"));
|
|
83988
|
-
let isLoading2 = ref(false);
|
|
83989
|
-
let itemId = ref(null);
|
|
83990
|
-
let externalData = ref({});
|
|
83991
|
-
let item = ref({});
|
|
83992
|
-
let fetchedItem = ref({});
|
|
83993
|
-
ref(false);
|
|
83994
|
-
if (useDirty) {
|
|
83995
|
-
useFormDirty({
|
|
83996
|
-
label: useDirtyLabel,
|
|
83997
|
-
fetchedItem,
|
|
83998
|
-
item
|
|
83999
|
-
});
|
|
84000
|
-
}
|
|
84001
|
-
if (veeForm) {
|
|
84002
|
-
bindOneWay(veeForm.values, item);
|
|
84003
|
-
}
|
|
84004
|
-
if (!!veeForm && !!modelValue) {
|
|
84005
|
-
watch(
|
|
84006
|
-
modelValue,
|
|
84007
|
-
(newValue) => {
|
|
84008
|
-
setItem(newValue);
|
|
84009
|
-
},
|
|
84010
|
-
{ immediate: true }
|
|
84011
|
-
);
|
|
84012
|
-
}
|
|
84013
|
-
if (modelValue) {
|
|
84014
|
-
bindTwoWay(modelValue, item);
|
|
84015
|
-
}
|
|
84016
|
-
function setExternal(external) {
|
|
84017
|
-
externalData.value = external;
|
|
84018
|
-
let externalValues = lodashExports.get(externalData.value, "values", {});
|
|
84019
|
-
let newItem = lodashExports.cloneDeep(item.value);
|
|
84020
|
-
for (let key in externalValues) {
|
|
84021
|
-
newItem[key] = externalValues[key];
|
|
84022
|
-
}
|
|
84023
|
-
setItem(newItem);
|
|
84024
|
-
}
|
|
84025
|
-
async function initItem({ id = null, value = null, external = null } = {}) {
|
|
84026
|
-
itemId.value = id;
|
|
84027
|
-
if (veeForm) {
|
|
84028
|
-
veeForm.resetForm();
|
|
84029
|
-
}
|
|
84030
|
-
isLoading2.value = true;
|
|
84031
|
-
let itemValue = value ? lodashExports.cloneDeep(value) : lodashExports.cloneDeep(itemEmpty);
|
|
84032
|
-
setItem(itemValue);
|
|
84033
|
-
if (itemId.value) {
|
|
84034
|
-
await fetchItem();
|
|
84035
|
-
}
|
|
84036
|
-
if (external) {
|
|
84037
|
-
setExternal(external);
|
|
84038
|
-
}
|
|
84039
|
-
isLoading2.value = false;
|
|
84040
|
-
emit("inited", externalContext);
|
|
84041
|
-
}
|
|
84042
|
-
async function fetchItem() {
|
|
84043
|
-
isLoading2.value = true;
|
|
84044
|
-
let fetchMethod = repositoryFetchOne ?? repository.fetchOne;
|
|
84045
|
-
let newValue = await fetchMethod(itemId.value);
|
|
84046
|
-
let transformFromApiMethod = transformFromApi ?? transformer.transformFromApi;
|
|
84047
|
-
newValue = transformFromApiMethod(newValue);
|
|
84048
|
-
if (isCloning.value) {
|
|
84049
|
-
newValue.id = null;
|
|
84050
|
-
}
|
|
84051
|
-
setItem(newValue);
|
|
84052
|
-
fetchedItem.value = lodashExports.cloneDeep(newValue);
|
|
84053
|
-
await nextTick();
|
|
84054
|
-
isLoading2.value = false;
|
|
84055
|
-
emit("fetched", externalContext);
|
|
84056
|
-
}
|
|
84057
|
-
async function saveItem(autoFetch = true) {
|
|
84058
|
-
isLoading2.value = true;
|
|
84059
|
-
let newItem = getItem().value;
|
|
84060
|
-
let transformToApiMethod = transformToApi ?? transformer.transformToApi;
|
|
84061
|
-
newItem = transformToApiMethod(newItem);
|
|
84062
|
-
let response = null;
|
|
84063
|
-
let newItemId = isCloning.value ? null : itemId.value || newItem.id;
|
|
84064
|
-
if (newItemId) {
|
|
84065
|
-
let updateMethod = repositoryUpdate ?? repository.update;
|
|
84066
|
-
response = await updateMethod(newItemId, newItem);
|
|
84067
|
-
} else {
|
|
84068
|
-
let insertMethod = repositoryInsert ?? repository.insert;
|
|
84069
|
-
response = await insertMethod(newItem);
|
|
84070
|
-
}
|
|
84071
|
-
if (!APIConstants.isSuccess(response)) {
|
|
84072
|
-
isLoading2.value = false;
|
|
84073
|
-
return response;
|
|
84074
|
-
}
|
|
84075
|
-
UIUtils.showToastSuccess("Success");
|
|
84076
|
-
itemId.value = lodashExports.get(response, "data.id") ?? newItemId;
|
|
84077
|
-
if (autoFetch) {
|
|
84078
|
-
if (!newItemId && routeAfterCreate && router2) {
|
|
84079
|
-
navigateToId();
|
|
84080
|
-
} else {
|
|
84081
|
-
await fetchItem();
|
|
84082
|
-
}
|
|
84083
|
-
}
|
|
84084
|
-
isLoading2.value = false;
|
|
84085
|
-
return response;
|
|
84086
|
-
}
|
|
84087
|
-
async function deleteItem() {
|
|
84088
|
-
let deleteMethod = repositoryDelete ?? repository.delete;
|
|
84089
|
-
let response = await deleteMethod(itemId.value);
|
|
84090
|
-
if (APIConstants.isSuccess(response)) {
|
|
84091
|
-
UIUtils.showToastSuccess("Stergerea s-a realizat cu succes!");
|
|
84092
|
-
} else {
|
|
84093
|
-
UIUtils.showToastError("Stergere esuata!");
|
|
84094
|
-
}
|
|
84095
|
-
return response;
|
|
84096
|
-
}
|
|
84097
|
-
function navigateToId() {
|
|
84098
|
-
let routePath = route.value.path;
|
|
84099
|
-
let regexRemoveClone = /(.*)(\/[a-zA-Z0-9-]+)\/clone$/;
|
|
84100
|
-
routePath = routePath.replace(regexRemoveClone, "$1").replace("/clone", "").replace(/\/$/, "");
|
|
84101
|
-
const newRoute = `${routePath}/${itemId.value}`;
|
|
84102
|
-
router2.push(newRoute);
|
|
84103
|
-
}
|
|
84104
|
-
async function onDelete() {
|
|
84105
|
-
const deletionConfirmed = await UIUtils.showDeleteConfirmation("Esti sigur?", "Stergerea este ireversibila!");
|
|
84106
|
-
if (!deletionConfirmed.value) {
|
|
84107
|
-
return;
|
|
84108
|
-
}
|
|
84109
|
-
const response = await deleteItem();
|
|
84110
|
-
if (routeAfterDelete && router2 && APIConstants.isSuccess(response)) {
|
|
84111
|
-
router2.push(routeAfterDelete).catch((err) => {
|
|
84112
|
-
});
|
|
84113
|
-
}
|
|
84114
|
-
return response;
|
|
84115
|
-
}
|
|
84116
|
-
async function onSave(autoScroll = true) {
|
|
84117
|
-
const validationResult = await onValidate(autoScroll);
|
|
84118
|
-
if (!validationResult) {
|
|
84119
|
-
return;
|
|
84120
|
-
}
|
|
84121
|
-
return await saveItem();
|
|
84122
|
-
}
|
|
84123
|
-
async function onValidate(autoScroll) {
|
|
84124
|
-
if (veeForm) {
|
|
84125
|
-
await veeForm.submitForm();
|
|
84126
|
-
const hasErrors = Object.keys(veeForm.errors.value).length > 0;
|
|
84127
|
-
if (hasErrors) {
|
|
84128
|
-
UIUtils.showToastError("Formularul nu a putut fi validat");
|
|
84129
|
-
if (autoScroll) {
|
|
84130
|
-
scrollToError();
|
|
84131
|
-
}
|
|
84132
|
-
return false;
|
|
84133
|
-
}
|
|
84134
|
-
}
|
|
84135
|
-
return true;
|
|
84136
|
-
}
|
|
84137
|
-
function scrollToError() {
|
|
84138
|
-
const firstError = Object.keys(veeForm.errors.value)[0];
|
|
84139
|
-
let form = document.querySelector(`[vee-form=${formName.value}]`);
|
|
84140
|
-
let element = form == null ? void 0 : form.querySelector(`[vee-element="${firstError}"]`);
|
|
84141
|
-
element == null ? void 0 : element.scrollIntoView({
|
|
84142
|
-
behavior: "smooth"
|
|
84143
|
-
});
|
|
84144
|
-
}
|
|
84145
|
-
function getPayload(key) {
|
|
84146
|
-
return lodashExports.get(externalData.value, `payload.${key}`);
|
|
84147
|
-
}
|
|
84148
|
-
function getPayloadIsDisabled(key) {
|
|
84149
|
-
return lodashExports.get(externalData.value, `payload.${key}.isDisabled`, false);
|
|
84150
|
-
}
|
|
84151
|
-
function getPayloadIsVisible(key) {
|
|
84152
|
-
return lodashExports.get(externalData.value, `payload.${key}.isVisible`, true);
|
|
84153
|
-
}
|
|
84154
|
-
function getItem() {
|
|
84155
|
-
return item;
|
|
84156
|
-
}
|
|
84157
|
-
async function setItem(value) {
|
|
84158
|
-
if (veeForm) {
|
|
84159
|
-
await veeForm.resetForm({ values: value }, { force: true });
|
|
84160
|
-
return;
|
|
84161
|
-
}
|
|
84162
|
-
item.value = value;
|
|
84163
|
-
}
|
|
84164
|
-
const externalContext = {
|
|
84165
|
-
isLoading: isLoading2,
|
|
84166
|
-
itemId,
|
|
84167
|
-
isCloning,
|
|
84168
|
-
item,
|
|
84169
|
-
fetchedItem,
|
|
84170
|
-
emptyItem: itemEmpty,
|
|
84171
|
-
initItem,
|
|
84172
|
-
fetchItem,
|
|
84173
|
-
saveItem,
|
|
84174
|
-
deleteItem,
|
|
84175
|
-
onDelete,
|
|
84176
|
-
onSave,
|
|
84177
|
-
navigateToId,
|
|
84178
|
-
setItem,
|
|
84179
|
-
getItem,
|
|
84180
|
-
onValidate,
|
|
84181
|
-
getPayload,
|
|
84182
|
-
getPayloadIsDisabled,
|
|
84183
|
-
getPayloadIsVisible,
|
|
84184
|
-
setExternal,
|
|
84185
|
-
externalData,
|
|
84186
|
-
formName
|
|
84187
|
-
};
|
|
84188
|
-
onMounted(async () => {
|
|
84189
|
-
emit("mounted", externalContext);
|
|
84190
|
-
if (!props2.useInModal && props2.shouldFetchOnMount) {
|
|
84191
|
-
await initItem({ id: route.value.params.item_id });
|
|
84192
|
-
}
|
|
84193
|
-
});
|
|
84194
|
-
if (veeForm) {
|
|
84195
|
-
provide("errors", veeForm.errors);
|
|
84196
|
-
}
|
|
84197
|
-
function emit(event, ...eventParams) {
|
|
84198
|
-
emits == null ? void 0 : emits(event, ...eventParams);
|
|
84199
|
-
emitHandler == null ? void 0 : emitHandler(event, ...eventParams);
|
|
84200
|
-
}
|
|
84201
|
-
return externalContext;
|
|
84202
|
-
}
|
|
84203
|
-
function useFormValidation(config) {
|
|
84204
|
-
const { item, schema, formName, onEvent, emits, shouldProvideErrors = true } = config;
|
|
84205
|
-
const errors = ref({});
|
|
84206
|
-
const hasErrors = computed(() => Object.keys(errors.value).length > 0);
|
|
84207
|
-
async function onValidate({ shouldScroll = true, shouldToast = true } = {}) {
|
|
84208
|
-
errors.value = {};
|
|
84209
|
-
try {
|
|
84210
|
-
await toValue$2(schema).validate(item.value, { abortEarly: false });
|
|
84211
|
-
} catch (validationErrors) {
|
|
84212
|
-
validationErrors.inner.forEach((e2) => {
|
|
84213
|
-
errors.value = { ...errors.value, [e2.path]: e2.message };
|
|
84214
|
-
});
|
|
84215
|
-
}
|
|
84216
|
-
const hasErrors2 = Object.keys(errors.value).length > 0;
|
|
84217
|
-
if (hasErrors2) {
|
|
84218
|
-
shouldToast ? UIUtils.showToastError("Formularul nu a putut fi validat") : null;
|
|
84219
|
-
shouldScroll ? scrollToFirstError() : null;
|
|
84220
|
-
return false;
|
|
84221
|
-
}
|
|
84222
|
-
return true;
|
|
84223
|
-
}
|
|
84224
|
-
const scrollToFirstError = () => {
|
|
84225
|
-
if (Object.keys(errors.value ?? {}).length === 0) {
|
|
84226
|
-
return;
|
|
84227
|
-
}
|
|
84228
|
-
let form = document.querySelector(`[vee-form=${formName.value}], [form-id=${formName.value}]`);
|
|
84229
|
-
const selector = Object.keys(errors.value).map((n) => `[name="${n}"]`).join(", ");
|
|
84230
|
-
const element = lodashExports.head(form.querySelectorAll(selector));
|
|
84231
|
-
element == null ? void 0 : element.scrollIntoView({ behavior: "smooth" });
|
|
84232
|
-
};
|
|
84233
|
-
const isFieldRequired2 = (fieldName) => {
|
|
84234
|
-
var _a3, _b2;
|
|
84235
|
-
const fieldSchema = (_b2 = (_a3 = toValue$2(schema)) == null ? void 0 : _a3.fields) == null ? void 0 : _b2[fieldName];
|
|
84236
|
-
return (fieldSchema == null ? void 0 : fieldSchema.spec.optional) === false;
|
|
84237
|
-
};
|
|
84238
|
-
const externalContext = {
|
|
84239
|
-
errors,
|
|
84240
|
-
hasErrors,
|
|
84241
|
-
onValidate,
|
|
84242
|
-
scrollToFirstError,
|
|
84243
|
-
isFieldRequired: isFieldRequired2
|
|
84244
|
-
};
|
|
84245
|
-
shouldProvideErrors ? provide("errors", errors) : null;
|
|
84246
|
-
return externalContext;
|
|
84247
|
-
}
|
|
84248
84926
|
const useFormEvent = {
|
|
84249
84927
|
mounted: "mounted",
|
|
84250
84928
|
inited: "inited",
|
|
@@ -84582,6 +85260,669 @@ function useForm(config, emits) {
|
|
|
84582
85260
|
}
|
|
84583
85261
|
return externalContext;
|
|
84584
85262
|
}
|
|
85263
|
+
const getComponentType = (node) => {
|
|
85264
|
+
switch (node.component) {
|
|
85265
|
+
case "app-input":
|
|
85266
|
+
return _sfc_main$1f;
|
|
85267
|
+
case "app-card":
|
|
85268
|
+
return _sfc_main$1x;
|
|
85269
|
+
default:
|
|
85270
|
+
return node.component;
|
|
85271
|
+
}
|
|
85272
|
+
};
|
|
85273
|
+
const parseRuleString = (ruleString) => {
|
|
85274
|
+
if (!ruleString || typeof ruleString !== "string") return [];
|
|
85275
|
+
return ruleString.split("|").map((rule) => {
|
|
85276
|
+
const [name, ...rest] = rule.split(":");
|
|
85277
|
+
const params = rest.join(":");
|
|
85278
|
+
return { name: name.trim(), params: params || null };
|
|
85279
|
+
});
|
|
85280
|
+
};
|
|
85281
|
+
const buildFieldValidator = (rules) => {
|
|
85282
|
+
const typeRule = rules.find(
|
|
85283
|
+
(r) => ["string", "number", "integer", "boolean", "array", "mixed"].includes(r.name)
|
|
85284
|
+
);
|
|
85285
|
+
const typeName = (typeRule == null ? void 0 : typeRule.name) || "mixed";
|
|
85286
|
+
let validator2;
|
|
85287
|
+
switch (typeName) {
|
|
85288
|
+
case "string":
|
|
85289
|
+
validator2 = create$6();
|
|
85290
|
+
break;
|
|
85291
|
+
case "number":
|
|
85292
|
+
validator2 = create$5();
|
|
85293
|
+
break;
|
|
85294
|
+
case "integer":
|
|
85295
|
+
validator2 = create$5().integer();
|
|
85296
|
+
break;
|
|
85297
|
+
case "boolean":
|
|
85298
|
+
validator2 = create$7();
|
|
85299
|
+
break;
|
|
85300
|
+
case "array":
|
|
85301
|
+
validator2 = create$2();
|
|
85302
|
+
break;
|
|
85303
|
+
default:
|
|
85304
|
+
validator2 = create$8();
|
|
85305
|
+
}
|
|
85306
|
+
for (const rule of rules) {
|
|
85307
|
+
switch (rule.name) {
|
|
85308
|
+
// Type rules already handled above
|
|
85309
|
+
case "string":
|
|
85310
|
+
case "number":
|
|
85311
|
+
case "integer":
|
|
85312
|
+
case "boolean":
|
|
85313
|
+
case "array":
|
|
85314
|
+
case "mixed":
|
|
85315
|
+
break;
|
|
85316
|
+
case "required":
|
|
85317
|
+
validator2 = validator2.required();
|
|
85318
|
+
break;
|
|
85319
|
+
case "nullable":
|
|
85320
|
+
validator2 = validator2.nullable();
|
|
85321
|
+
break;
|
|
85322
|
+
case "email":
|
|
85323
|
+
validator2 = validator2.email();
|
|
85324
|
+
break;
|
|
85325
|
+
case "url":
|
|
85326
|
+
validator2 = validator2.url();
|
|
85327
|
+
break;
|
|
85328
|
+
case "min":
|
|
85329
|
+
validator2 = validator2.min(Number(rule.params));
|
|
85330
|
+
break;
|
|
85331
|
+
case "max":
|
|
85332
|
+
validator2 = validator2.max(Number(rule.params));
|
|
85333
|
+
break;
|
|
85334
|
+
case "between": {
|
|
85335
|
+
const [min2, max2] = rule.params.split(",").map(Number);
|
|
85336
|
+
validator2 = validator2.min(min2).max(max2);
|
|
85337
|
+
break;
|
|
85338
|
+
}
|
|
85339
|
+
case "in": {
|
|
85340
|
+
const allowed = rule.params.split(",").map((v) => v.trim());
|
|
85341
|
+
validator2 = validator2.oneOf(allowed);
|
|
85342
|
+
break;
|
|
85343
|
+
}
|
|
85344
|
+
case "not_in": {
|
|
85345
|
+
const disallowed = rule.params.split(",").map((v) => v.trim());
|
|
85346
|
+
validator2 = validator2.notOneOf(disallowed);
|
|
85347
|
+
break;
|
|
85348
|
+
}
|
|
85349
|
+
case "regex": {
|
|
85350
|
+
const match2 = rule.params.match(/^\/(.+)\/([gimsuy]*)$/);
|
|
85351
|
+
if (match2) {
|
|
85352
|
+
validator2 = validator2.matches(new RegExp(match2[1], match2[2]));
|
|
85353
|
+
}
|
|
85354
|
+
break;
|
|
85355
|
+
}
|
|
85356
|
+
default:
|
|
85357
|
+
console.warn(`[buildYupSchema] Unknown validation rule: "${rule.name}"`);
|
|
85358
|
+
}
|
|
85359
|
+
}
|
|
85360
|
+
return validator2;
|
|
85361
|
+
};
|
|
85362
|
+
const setNestedShape = (rootShape, path, validator2) => {
|
|
85363
|
+
const segments = path.split(".");
|
|
85364
|
+
let current = rootShape;
|
|
85365
|
+
for (let i2 = 0; i2 < segments.length - 1; i2++) {
|
|
85366
|
+
const seg = segments[i2];
|
|
85367
|
+
const nextSeg = segments[i2 + 1];
|
|
85368
|
+
if (nextSeg === "*") {
|
|
85369
|
+
const remainingPath = segments.slice(i2 + 2).join(".");
|
|
85370
|
+
if (!current[seg]) {
|
|
85371
|
+
current[seg] = { __type: "array", __shape: {} };
|
|
85372
|
+
}
|
|
85373
|
+
if (remainingPath) {
|
|
85374
|
+
setNestedShape(current[seg].__shape, remainingPath, validator2);
|
|
85375
|
+
} else {
|
|
85376
|
+
current[seg].__itemValidator = validator2;
|
|
85377
|
+
}
|
|
85378
|
+
return;
|
|
85379
|
+
}
|
|
85380
|
+
if (seg === "*") {
|
|
85381
|
+
continue;
|
|
85382
|
+
}
|
|
85383
|
+
if (!current[seg]) {
|
|
85384
|
+
current[seg] = { __type: "object", __shape: {} };
|
|
85385
|
+
}
|
|
85386
|
+
current = current[seg].__shape;
|
|
85387
|
+
}
|
|
85388
|
+
const lastSeg = segments[segments.length - 1];
|
|
85389
|
+
if (lastSeg !== "*") {
|
|
85390
|
+
current[lastSeg] = validator2;
|
|
85391
|
+
}
|
|
85392
|
+
};
|
|
85393
|
+
const buildShapeToYup = (shape) => {
|
|
85394
|
+
const yupShape = {};
|
|
85395
|
+
for (const [key, value] of Object.entries(shape)) {
|
|
85396
|
+
if (value && value.__type === "array") {
|
|
85397
|
+
const innerShape = buildShapeToYup(value.__shape);
|
|
85398
|
+
yupShape[key] = value.__itemValidator ? create$2().of(value.__itemValidator) : create$2().of(create$3().shape(innerShape));
|
|
85399
|
+
} else if (value && value.__type === "object") {
|
|
85400
|
+
const innerShape = buildShapeToYup(value.__shape);
|
|
85401
|
+
yupShape[key] = create$3().shape(innerShape);
|
|
85402
|
+
} else {
|
|
85403
|
+
yupShape[key] = value;
|
|
85404
|
+
}
|
|
85405
|
+
}
|
|
85406
|
+
return yupShape;
|
|
85407
|
+
};
|
|
85408
|
+
const buildYupSchema = (validationConfig) => {
|
|
85409
|
+
if (!validationConfig) return create$3();
|
|
85410
|
+
const intermediateShape = {};
|
|
85411
|
+
for (const [field, ruleString] of Object.entries(validationConfig)) {
|
|
85412
|
+
const rules = parseRuleString(ruleString);
|
|
85413
|
+
const validator2 = buildFieldValidator(rules);
|
|
85414
|
+
if (field.includes(".")) {
|
|
85415
|
+
setNestedShape(intermediateShape, field, validator2);
|
|
85416
|
+
} else {
|
|
85417
|
+
intermediateShape[field] = validator2;
|
|
85418
|
+
}
|
|
85419
|
+
}
|
|
85420
|
+
const yupShape = buildShapeToYup(intermediateShape);
|
|
85421
|
+
return create$3().shape(yupShape);
|
|
85422
|
+
};
|
|
85423
|
+
const evaluateVisibilityRules = (visibilityRules, item, formContext) => {
|
|
85424
|
+
if (!Array.isArray(visibilityRules) || !formContext) return;
|
|
85425
|
+
for (const rule of visibilityRules) {
|
|
85426
|
+
const isVisible2 = resolveCondition(rule.condition, item);
|
|
85427
|
+
formContext.setPayloadVisible(rule.target, isVisible2);
|
|
85428
|
+
}
|
|
85429
|
+
};
|
|
85430
|
+
const evaluateEnabledRules = (enabledRules, item, formContext) => {
|
|
85431
|
+
if (!Array.isArray(enabledRules) || !formContext) return;
|
|
85432
|
+
for (const rule of enabledRules) {
|
|
85433
|
+
const isEnabled = resolveCondition(rule.condition, item);
|
|
85434
|
+
formContext.setPayloadEnabled(rule.target, isEnabled);
|
|
85435
|
+
}
|
|
85436
|
+
};
|
|
85437
|
+
const resolveCondition = (condition, item) => {
|
|
85438
|
+
if (!condition) return true;
|
|
85439
|
+
if (condition.operator === "and" && Array.isArray(condition.conditions)) {
|
|
85440
|
+
return condition.conditions.every((c2) => resolveCondition(c2, item));
|
|
85441
|
+
}
|
|
85442
|
+
if (condition.operator === "or" && Array.isArray(condition.conditions)) {
|
|
85443
|
+
return condition.conditions.some((c2) => resolveCondition(c2, item));
|
|
85444
|
+
}
|
|
85445
|
+
const fieldValue = lodashExports.get(item, condition.field);
|
|
85446
|
+
switch (condition.operator) {
|
|
85447
|
+
case "==":
|
|
85448
|
+
case "eq":
|
|
85449
|
+
return fieldValue == condition.value;
|
|
85450
|
+
case "===":
|
|
85451
|
+
case "seq":
|
|
85452
|
+
return fieldValue === condition.value;
|
|
85453
|
+
case "!=":
|
|
85454
|
+
case "neq":
|
|
85455
|
+
return fieldValue != condition.value;
|
|
85456
|
+
case ">":
|
|
85457
|
+
case "gt":
|
|
85458
|
+
return fieldValue > condition.value;
|
|
85459
|
+
case "<":
|
|
85460
|
+
case "lt":
|
|
85461
|
+
return fieldValue < condition.value;
|
|
85462
|
+
case ">=":
|
|
85463
|
+
case "gte":
|
|
85464
|
+
return fieldValue >= condition.value;
|
|
85465
|
+
case "<=":
|
|
85466
|
+
case "lte":
|
|
85467
|
+
return fieldValue <= condition.value;
|
|
85468
|
+
case "in":
|
|
85469
|
+
return Array.isArray(condition.value) && condition.value.includes(fieldValue);
|
|
85470
|
+
case "not_in":
|
|
85471
|
+
return Array.isArray(condition.value) && !condition.value.includes(fieldValue);
|
|
85472
|
+
case "empty":
|
|
85473
|
+
return fieldValue == null || fieldValue === "" || Array.isArray(fieldValue) && fieldValue.length === 0;
|
|
85474
|
+
case "not_empty":
|
|
85475
|
+
return fieldValue != null && fieldValue !== "" && !(Array.isArray(fieldValue) && fieldValue.length === 0);
|
|
85476
|
+
default:
|
|
85477
|
+
return true;
|
|
85478
|
+
}
|
|
85479
|
+
};
|
|
85480
|
+
const _sfc_main$1 = {
|
|
85481
|
+
__name: "AppFormDynamicNode",
|
|
85482
|
+
props: {
|
|
85483
|
+
node: {
|
|
85484
|
+
type: Object,
|
|
85485
|
+
required: true
|
|
85486
|
+
}
|
|
85487
|
+
},
|
|
85488
|
+
setup(__props) {
|
|
85489
|
+
const props2 = __props;
|
|
85490
|
+
const formContext = inject("formContext");
|
|
85491
|
+
const nodeBinding = computed(() => {
|
|
85492
|
+
let excludedKeys = ["slots", "children"];
|
|
85493
|
+
let itemField = lodashExports.get(props2.node, "field") ?? lodashExports.get(props2.node, "item");
|
|
85494
|
+
let result = {
|
|
85495
|
+
...props2.node,
|
|
85496
|
+
...itemField ? formContext.getBinding(itemField) : {}
|
|
85497
|
+
};
|
|
85498
|
+
return lodashExports.omit(result, excludedKeys);
|
|
85499
|
+
});
|
|
85500
|
+
const slotsMap = computed(() => {
|
|
85501
|
+
if (props2.node.slots) return props2.node.slots;
|
|
85502
|
+
if (props2.node.children) return { default: props2.node.children };
|
|
85503
|
+
return {};
|
|
85504
|
+
});
|
|
85505
|
+
const componentIs = computed(() => getComponentType(props2.node));
|
|
85506
|
+
return (_ctx, _cache2) => {
|
|
85507
|
+
const _component_app_form_dynamic_node = resolveComponent("app-form-dynamic-node", true);
|
|
85508
|
+
return openBlock(), createBlock(resolveDynamicComponent(componentIs.value), normalizeProps(guardReactiveProps(nodeBinding.value)), createSlots({ _: 2 }, [
|
|
85509
|
+
__props.node.text ? {
|
|
85510
|
+
name: "default",
|
|
85511
|
+
fn: withCtx(() => [
|
|
85512
|
+
createTextVNode(toDisplayString(__props.node.text), 1)
|
|
85513
|
+
]),
|
|
85514
|
+
key: "0"
|
|
85515
|
+
} : void 0,
|
|
85516
|
+
renderList(slotsMap.value, (children, slotName) => {
|
|
85517
|
+
return {
|
|
85518
|
+
name: slotName,
|
|
85519
|
+
fn: withCtx(() => [
|
|
85520
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(children, (child, index) => {
|
|
85521
|
+
return openBlock(), createBlock(_component_app_form_dynamic_node, mergeProps({
|
|
85522
|
+
key: index,
|
|
85523
|
+
node: child
|
|
85524
|
+
}, { ref_for: true }, nodeBinding.value), null, 16, ["node"]);
|
|
85525
|
+
}), 128))
|
|
85526
|
+
])
|
|
85527
|
+
};
|
|
85528
|
+
})
|
|
85529
|
+
]), 1040);
|
|
85530
|
+
};
|
|
85531
|
+
}
|
|
85532
|
+
};
|
|
85533
|
+
const _hoisted_1 = ["form-id"];
|
|
85534
|
+
const _sfc_main = {
|
|
85535
|
+
__name: "AppFormDynamic",
|
|
85536
|
+
props: /* @__PURE__ */ mergeModels({
|
|
85537
|
+
schema: {
|
|
85538
|
+
type: Object,
|
|
85539
|
+
required: true,
|
|
85540
|
+
default: () => ({ layout: [], validation: {} })
|
|
85541
|
+
}
|
|
85542
|
+
}, {
|
|
85543
|
+
"modelValue": {},
|
|
85544
|
+
"modelModifiers": {}
|
|
85545
|
+
}),
|
|
85546
|
+
emits: /* @__PURE__ */ mergeModels(["mounted"], ["update:modelValue"]),
|
|
85547
|
+
setup(__props, { emit: __emit }) {
|
|
85548
|
+
const modelValue = useModel(__props, "modelValue");
|
|
85549
|
+
const props2 = __props;
|
|
85550
|
+
const emits = __emit;
|
|
85551
|
+
const yupSchema = computed(() => buildYupSchema(props2.schema.validation));
|
|
85552
|
+
console.log("yup schema!");
|
|
85553
|
+
const form = useForm({ schema: yupSchema }, emits);
|
|
85554
|
+
const { formName, item } = form;
|
|
85555
|
+
provide("formContext", form);
|
|
85556
|
+
watchEffect(() => {
|
|
85557
|
+
var _a3, _b2;
|
|
85558
|
+
if ((_a3 = props2.schema) == null ? void 0 : _a3.visible) {
|
|
85559
|
+
evaluateVisibilityRules(props2.schema.visible, form.item.value, form);
|
|
85560
|
+
}
|
|
85561
|
+
if ((_b2 = props2.schema) == null ? void 0 : _b2.enabled) {
|
|
85562
|
+
evaluateEnabledRules(props2.schema.enabled, form.item.value, form);
|
|
85563
|
+
}
|
|
85564
|
+
});
|
|
85565
|
+
bindTwoWay(modelValue, item);
|
|
85566
|
+
return (_ctx, _cache2) => {
|
|
85567
|
+
var _a3;
|
|
85568
|
+
return openBlock(), createElementBlock("div", {
|
|
85569
|
+
class: "app-form-dynamic",
|
|
85570
|
+
"form-id": unref(formName)
|
|
85571
|
+
}, [
|
|
85572
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(((_a3 = __props.schema) == null ? void 0 : _a3.layout) || [], (node, index) => {
|
|
85573
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
85574
|
+
key: index,
|
|
85575
|
+
node
|
|
85576
|
+
}, null, 8, ["node"]);
|
|
85577
|
+
}), 128))
|
|
85578
|
+
], 8, _hoisted_1);
|
|
85579
|
+
};
|
|
85580
|
+
}
|
|
85581
|
+
};
|
|
85582
|
+
const components = {
|
|
85583
|
+
AppBadge: _sfc_main$1G,
|
|
85584
|
+
AppBreadcrumbs: _sfc_main$1E,
|
|
85585
|
+
AppButton: _sfc_main$1D,
|
|
85586
|
+
AppButtonGroup: _sfc_main$1C,
|
|
85587
|
+
AppDatePicker: _sfc_main$1z,
|
|
85588
|
+
AppDatePickerRange: _sfc_main$1y,
|
|
85589
|
+
AppDatePickerDayOfWeek: _sfc_main$1u,
|
|
85590
|
+
VueDatePicker: Qn,
|
|
85591
|
+
AppCard: _sfc_main$1x,
|
|
85592
|
+
AppCheckbox: _sfc_main$1w,
|
|
85593
|
+
AppChild,
|
|
85594
|
+
AppDateTimePicker: _sfc_main$1q,
|
|
85595
|
+
AppDrawer,
|
|
85596
|
+
AppTableFilterDrawer,
|
|
85597
|
+
AppFile: _sfc_main$1i,
|
|
85598
|
+
AppFileInput,
|
|
85599
|
+
AppFormRepeater: _sfc_main$1h,
|
|
85600
|
+
AppGridPicker,
|
|
85601
|
+
AppColorPicker,
|
|
85602
|
+
AppIcon: _sfc_main$1H,
|
|
85603
|
+
AppInput: _sfc_main$1f,
|
|
85604
|
+
AppLink: _sfc_main$1e,
|
|
85605
|
+
AppMenu: _sfc_main$1b,
|
|
85606
|
+
AppNumberInput,
|
|
85607
|
+
AppPage: _sfc_main$16,
|
|
85608
|
+
AppPagination: _sfc_main$_,
|
|
85609
|
+
AppPlaceholderCard: _sfc_main$17,
|
|
85610
|
+
AppPlaceholderHeading: _sfc_main$19,
|
|
85611
|
+
AppPlaceholderImage: _sfc_main$1F,
|
|
85612
|
+
AppPlaceholderText: _sfc_main$18,
|
|
85613
|
+
AppPlaceholderTitle: _sfc_main$Z,
|
|
85614
|
+
AppProgressBar,
|
|
85615
|
+
AppProgressBarOverlay,
|
|
85616
|
+
AppRemovableTag,
|
|
85617
|
+
AppScrollToBottom,
|
|
85618
|
+
AppScrollToTop,
|
|
85619
|
+
AppScrollTopAndBottom: _sfc_main$U,
|
|
85620
|
+
AppSelect: _sfc_main$Q,
|
|
85621
|
+
AppSelectNew: _sfc_main$$,
|
|
85622
|
+
AppSidebar: _sfc_main$P,
|
|
85623
|
+
AppSidebarHeader: _sfc_main$O,
|
|
85624
|
+
AppSliderInput,
|
|
85625
|
+
AppToolbarSubheader,
|
|
85626
|
+
AppSummary: _sfc_main$K,
|
|
85627
|
+
AppTable: _sfc_main$G,
|
|
85628
|
+
AppTableMagic: _sfc_main$F,
|
|
85629
|
+
AppTableFilter: _sfc_main$I,
|
|
85630
|
+
AppTabs: _sfc_main$E,
|
|
85631
|
+
AppTag,
|
|
85632
|
+
AppTextArea,
|
|
85633
|
+
AppTimePicker,
|
|
85634
|
+
AppToggleButton: _sfc_main$A,
|
|
85635
|
+
AppToolbar: _sfc_main$z,
|
|
85636
|
+
AppTree: _sfc_main$w,
|
|
85637
|
+
AppFormElement,
|
|
85638
|
+
AppOverlay,
|
|
85639
|
+
AppLoadingOverlay: _sfc_main$1j,
|
|
85640
|
+
AppLoading: _sfc_main$t,
|
|
85641
|
+
AppLoadingModal,
|
|
85642
|
+
AppDropdown: _sfc_main$v,
|
|
85643
|
+
AppFooter,
|
|
85644
|
+
AppModal,
|
|
85645
|
+
AppModalCard: _sfc_main$7,
|
|
85646
|
+
AppDualListMagic: _sfc_main$o,
|
|
85647
|
+
AppSelectBoolean: _sfc_main$n,
|
|
85648
|
+
AppSelectIcon: _sfc_main$m,
|
|
85649
|
+
AppCarousel: _sfc_main$k,
|
|
85650
|
+
AppFormWizard: _sfc_main$d,
|
|
85651
|
+
AppElipsizedText: _sfc_main$L,
|
|
85652
|
+
AppEllipsisText: _sfc_main$L,
|
|
85653
|
+
AppFilePreview: _sfc_main$f,
|
|
85654
|
+
AppHtml: _sfc_main$1I,
|
|
85655
|
+
AppIframe: _sfc_main$e,
|
|
85656
|
+
AppRadioButton,
|
|
85657
|
+
AppTeleport: _sfc_main$b,
|
|
85658
|
+
AppTeleportTarget: _sfc_main$a,
|
|
85659
|
+
AppTabsBoolean: _sfc_main$D,
|
|
85660
|
+
AppSkeleton: _sfc_main$9,
|
|
85661
|
+
AppSkeletonGroup: _sfc_main$8,
|
|
85662
|
+
AppFormModal: _sfc_main$6,
|
|
85663
|
+
AppFileNew: _sfc_main$3,
|
|
85664
|
+
AppFormDynamic: _sfc_main
|
|
85665
|
+
};
|
|
85666
|
+
const vHorizontalScroll = {
|
|
85667
|
+
mounted(element) {
|
|
85668
|
+
element.addEventListener("wheel", (event) => {
|
|
85669
|
+
if (event.shiftKey || isTrackpad(event)) {
|
|
85670
|
+
return;
|
|
85671
|
+
}
|
|
85672
|
+
event.preventDefault();
|
|
85673
|
+
element.scrollLeft = element.scrollLeft + event.deltaY;
|
|
85674
|
+
});
|
|
85675
|
+
}
|
|
85676
|
+
};
|
|
85677
|
+
function isTrackpad(event) {
|
|
85678
|
+
let isTrackpad2 = false;
|
|
85679
|
+
if (event.wheelDeltaY) {
|
|
85680
|
+
if (event.wheelDeltaY === event.deltaY * -3) {
|
|
85681
|
+
isTrackpad2 = true;
|
|
85682
|
+
}
|
|
85683
|
+
} else if (event.deltaMode === 0) {
|
|
85684
|
+
isTrackpad2 = true;
|
|
85685
|
+
}
|
|
85686
|
+
return isTrackpad2;
|
|
85687
|
+
}
|
|
85688
|
+
function useFormOld(props2, emits) {
|
|
85689
|
+
const formName = ref(`form-${getGUID()}`);
|
|
85690
|
+
const veeForm = props2.veeForm;
|
|
85691
|
+
const router2 = props2.router;
|
|
85692
|
+
const model = props2.model;
|
|
85693
|
+
const useInModal = props2.useInModal;
|
|
85694
|
+
const modelValue = props2.modelValue;
|
|
85695
|
+
const emitHandler = props2.emitHandler;
|
|
85696
|
+
const useDirty = props2.useDirty;
|
|
85697
|
+
const useDirtyLabel = props2.useDirtyLabel ? props2.useDirtyLabel : "Cu modificari nesalvate...";
|
|
85698
|
+
const repository = model.getRepository();
|
|
85699
|
+
const repositoryFetchOne = props2.repositoryFetchOne;
|
|
85700
|
+
const repositoryInsert = props2.repositoryInsert;
|
|
85701
|
+
const repositoryUpdate = props2.repositoryUpdate;
|
|
85702
|
+
const repositoryDelete = props2.repositoryDelete;
|
|
85703
|
+
const transformer = model.getTransformer();
|
|
85704
|
+
const transformFromApi = transformer.transformFromApi;
|
|
85705
|
+
const transformToApi = transformer.transformToApi;
|
|
85706
|
+
const itemEmpty = props2.empty ?? model.getEmpty() ?? {};
|
|
85707
|
+
const routeAfterCreate = useInModal ? null : model.getRouteForm();
|
|
85708
|
+
const routeAfterDelete = useInModal ? null : model.getRouteList();
|
|
85709
|
+
const route = computed(() => router2.currentRoute.value);
|
|
85710
|
+
const isCloning = computed(() => props2.isCloning ?? route.value.path.endsWith("/clone"));
|
|
85711
|
+
let isLoading2 = ref(false);
|
|
85712
|
+
let itemId = ref(null);
|
|
85713
|
+
let externalData = ref({});
|
|
85714
|
+
let item = ref({});
|
|
85715
|
+
let fetchedItem = ref({});
|
|
85716
|
+
ref(false);
|
|
85717
|
+
if (useDirty) {
|
|
85718
|
+
useFormDirty({
|
|
85719
|
+
label: useDirtyLabel,
|
|
85720
|
+
fetchedItem,
|
|
85721
|
+
item
|
|
85722
|
+
});
|
|
85723
|
+
}
|
|
85724
|
+
if (veeForm) {
|
|
85725
|
+
bindOneWay(veeForm.values, item);
|
|
85726
|
+
}
|
|
85727
|
+
if (!!veeForm && !!modelValue) {
|
|
85728
|
+
watch(
|
|
85729
|
+
modelValue,
|
|
85730
|
+
(newValue) => {
|
|
85731
|
+
setItem(newValue);
|
|
85732
|
+
},
|
|
85733
|
+
{ immediate: true }
|
|
85734
|
+
);
|
|
85735
|
+
}
|
|
85736
|
+
if (modelValue) {
|
|
85737
|
+
bindTwoWay(modelValue, item);
|
|
85738
|
+
}
|
|
85739
|
+
function setExternal(external) {
|
|
85740
|
+
externalData.value = external;
|
|
85741
|
+
let externalValues = lodashExports.get(externalData.value, "values", {});
|
|
85742
|
+
let newItem = lodashExports.cloneDeep(item.value);
|
|
85743
|
+
for (let key in externalValues) {
|
|
85744
|
+
newItem[key] = externalValues[key];
|
|
85745
|
+
}
|
|
85746
|
+
setItem(newItem);
|
|
85747
|
+
}
|
|
85748
|
+
async function initItem({ id = null, value = null, external = null } = {}) {
|
|
85749
|
+
itemId.value = id;
|
|
85750
|
+
if (veeForm) {
|
|
85751
|
+
veeForm.resetForm();
|
|
85752
|
+
}
|
|
85753
|
+
isLoading2.value = true;
|
|
85754
|
+
let itemValue = value ? lodashExports.cloneDeep(value) : lodashExports.cloneDeep(itemEmpty);
|
|
85755
|
+
setItem(itemValue);
|
|
85756
|
+
if (itemId.value) {
|
|
85757
|
+
await fetchItem();
|
|
85758
|
+
}
|
|
85759
|
+
if (external) {
|
|
85760
|
+
setExternal(external);
|
|
85761
|
+
}
|
|
85762
|
+
isLoading2.value = false;
|
|
85763
|
+
emit("inited", externalContext);
|
|
85764
|
+
}
|
|
85765
|
+
async function fetchItem() {
|
|
85766
|
+
isLoading2.value = true;
|
|
85767
|
+
let fetchMethod = repositoryFetchOne ?? repository.fetchOne;
|
|
85768
|
+
let newValue = await fetchMethod(itemId.value);
|
|
85769
|
+
let transformFromApiMethod = transformFromApi ?? transformer.transformFromApi;
|
|
85770
|
+
newValue = transformFromApiMethod(newValue);
|
|
85771
|
+
if (isCloning.value) {
|
|
85772
|
+
newValue.id = null;
|
|
85773
|
+
}
|
|
85774
|
+
setItem(newValue);
|
|
85775
|
+
fetchedItem.value = lodashExports.cloneDeep(newValue);
|
|
85776
|
+
await nextTick();
|
|
85777
|
+
isLoading2.value = false;
|
|
85778
|
+
emit("fetched", externalContext);
|
|
85779
|
+
}
|
|
85780
|
+
async function saveItem(autoFetch = true) {
|
|
85781
|
+
isLoading2.value = true;
|
|
85782
|
+
let newItem = getItem().value;
|
|
85783
|
+
let transformToApiMethod = transformToApi ?? transformer.transformToApi;
|
|
85784
|
+
newItem = transformToApiMethod(newItem);
|
|
85785
|
+
let response = null;
|
|
85786
|
+
let newItemId = isCloning.value ? null : itemId.value || newItem.id;
|
|
85787
|
+
if (newItemId) {
|
|
85788
|
+
let updateMethod = repositoryUpdate ?? repository.update;
|
|
85789
|
+
response = await updateMethod(newItemId, newItem);
|
|
85790
|
+
} else {
|
|
85791
|
+
let insertMethod = repositoryInsert ?? repository.insert;
|
|
85792
|
+
response = await insertMethod(newItem);
|
|
85793
|
+
}
|
|
85794
|
+
if (!APIConstants.isSuccess(response)) {
|
|
85795
|
+
isLoading2.value = false;
|
|
85796
|
+
return response;
|
|
85797
|
+
}
|
|
85798
|
+
UIUtils.showToastSuccess("Success");
|
|
85799
|
+
itemId.value = lodashExports.get(response, "data.id") ?? newItemId;
|
|
85800
|
+
if (autoFetch) {
|
|
85801
|
+
if (!newItemId && routeAfterCreate && router2) {
|
|
85802
|
+
navigateToId();
|
|
85803
|
+
} else {
|
|
85804
|
+
await fetchItem();
|
|
85805
|
+
}
|
|
85806
|
+
}
|
|
85807
|
+
isLoading2.value = false;
|
|
85808
|
+
return response;
|
|
85809
|
+
}
|
|
85810
|
+
async function deleteItem() {
|
|
85811
|
+
let deleteMethod = repositoryDelete ?? repository.delete;
|
|
85812
|
+
let response = await deleteMethod(itemId.value);
|
|
85813
|
+
if (APIConstants.isSuccess(response)) {
|
|
85814
|
+
UIUtils.showToastSuccess("Stergerea s-a realizat cu succes!");
|
|
85815
|
+
} else {
|
|
85816
|
+
UIUtils.showToastError("Stergere esuata!");
|
|
85817
|
+
}
|
|
85818
|
+
return response;
|
|
85819
|
+
}
|
|
85820
|
+
function navigateToId() {
|
|
85821
|
+
let routePath = route.value.path;
|
|
85822
|
+
let regexRemoveClone = /(.*)(\/[a-zA-Z0-9-]+)\/clone$/;
|
|
85823
|
+
routePath = routePath.replace(regexRemoveClone, "$1").replace("/clone", "").replace(/\/$/, "");
|
|
85824
|
+
const newRoute = `${routePath}/${itemId.value}`;
|
|
85825
|
+
router2.push(newRoute);
|
|
85826
|
+
}
|
|
85827
|
+
async function onDelete() {
|
|
85828
|
+
const deletionConfirmed = await UIUtils.showDeleteConfirmation("Esti sigur?", "Stergerea este ireversibila!");
|
|
85829
|
+
if (!deletionConfirmed.value) {
|
|
85830
|
+
return;
|
|
85831
|
+
}
|
|
85832
|
+
const response = await deleteItem();
|
|
85833
|
+
if (routeAfterDelete && router2 && APIConstants.isSuccess(response)) {
|
|
85834
|
+
router2.push(routeAfterDelete).catch((err) => {
|
|
85835
|
+
});
|
|
85836
|
+
}
|
|
85837
|
+
return response;
|
|
85838
|
+
}
|
|
85839
|
+
async function onSave(autoScroll = true) {
|
|
85840
|
+
const validationResult = await onValidate(autoScroll);
|
|
85841
|
+
if (!validationResult) {
|
|
85842
|
+
return;
|
|
85843
|
+
}
|
|
85844
|
+
return await saveItem();
|
|
85845
|
+
}
|
|
85846
|
+
async function onValidate(autoScroll) {
|
|
85847
|
+
if (veeForm) {
|
|
85848
|
+
await veeForm.submitForm();
|
|
85849
|
+
const hasErrors = Object.keys(veeForm.errors.value).length > 0;
|
|
85850
|
+
if (hasErrors) {
|
|
85851
|
+
UIUtils.showToastError("Formularul nu a putut fi validat");
|
|
85852
|
+
if (autoScroll) {
|
|
85853
|
+
scrollToError();
|
|
85854
|
+
}
|
|
85855
|
+
return false;
|
|
85856
|
+
}
|
|
85857
|
+
}
|
|
85858
|
+
return true;
|
|
85859
|
+
}
|
|
85860
|
+
function scrollToError() {
|
|
85861
|
+
const firstError = Object.keys(veeForm.errors.value)[0];
|
|
85862
|
+
let form = document.querySelector(`[vee-form=${formName.value}]`);
|
|
85863
|
+
let element = form == null ? void 0 : form.querySelector(`[vee-element="${firstError}"]`);
|
|
85864
|
+
element == null ? void 0 : element.scrollIntoView({
|
|
85865
|
+
behavior: "smooth"
|
|
85866
|
+
});
|
|
85867
|
+
}
|
|
85868
|
+
function getPayload(key) {
|
|
85869
|
+
return lodashExports.get(externalData.value, `payload.${key}`);
|
|
85870
|
+
}
|
|
85871
|
+
function getPayloadIsDisabled(key) {
|
|
85872
|
+
return lodashExports.get(externalData.value, `payload.${key}.isDisabled`, false);
|
|
85873
|
+
}
|
|
85874
|
+
function getPayloadIsVisible(key) {
|
|
85875
|
+
return lodashExports.get(externalData.value, `payload.${key}.isVisible`, true);
|
|
85876
|
+
}
|
|
85877
|
+
function getItem() {
|
|
85878
|
+
return item;
|
|
85879
|
+
}
|
|
85880
|
+
async function setItem(value) {
|
|
85881
|
+
if (veeForm) {
|
|
85882
|
+
await veeForm.resetForm({ values: value }, { force: true });
|
|
85883
|
+
return;
|
|
85884
|
+
}
|
|
85885
|
+
item.value = value;
|
|
85886
|
+
}
|
|
85887
|
+
const externalContext = {
|
|
85888
|
+
isLoading: isLoading2,
|
|
85889
|
+
itemId,
|
|
85890
|
+
isCloning,
|
|
85891
|
+
item,
|
|
85892
|
+
fetchedItem,
|
|
85893
|
+
emptyItem: itemEmpty,
|
|
85894
|
+
initItem,
|
|
85895
|
+
fetchItem,
|
|
85896
|
+
saveItem,
|
|
85897
|
+
deleteItem,
|
|
85898
|
+
onDelete,
|
|
85899
|
+
onSave,
|
|
85900
|
+
navigateToId,
|
|
85901
|
+
setItem,
|
|
85902
|
+
getItem,
|
|
85903
|
+
onValidate,
|
|
85904
|
+
getPayload,
|
|
85905
|
+
getPayloadIsDisabled,
|
|
85906
|
+
getPayloadIsVisible,
|
|
85907
|
+
setExternal,
|
|
85908
|
+
externalData,
|
|
85909
|
+
formName
|
|
85910
|
+
};
|
|
85911
|
+
onMounted(async () => {
|
|
85912
|
+
emit("mounted", externalContext);
|
|
85913
|
+
if (!props2.useInModal && props2.shouldFetchOnMount) {
|
|
85914
|
+
await initItem({ id: route.value.params.item_id });
|
|
85915
|
+
}
|
|
85916
|
+
});
|
|
85917
|
+
if (veeForm) {
|
|
85918
|
+
provide("errors", veeForm.errors);
|
|
85919
|
+
}
|
|
85920
|
+
function emit(event, ...eventParams) {
|
|
85921
|
+
emits == null ? void 0 : emits(event, ...eventParams);
|
|
85922
|
+
emitHandler == null ? void 0 : emitHandler(event, ...eventParams);
|
|
85923
|
+
}
|
|
85924
|
+
return externalContext;
|
|
85925
|
+
}
|
|
84585
85926
|
const plugin = {
|
|
84586
85927
|
install(Vue, config) {
|
|
84587
85928
|
for (const prop in components) {
|