@stsdti/funky-ui-kit 1.0.3 → 1.2.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 +271 -369
- package/dist/funky-ui-kit.es.js.map +1 -1
- package/package.json +5 -2
- package/web-types.json +5871 -0
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,
|
|
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, vModelText, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, toRef as toRef$1, readonly, customRef, 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 = [
|
|
@@ -5932,7 +5932,7 @@ let tuple = {
|
|
|
5932
5932
|
return ValidationError.formatError(mixed.notType, params);
|
|
5933
5933
|
}
|
|
5934
5934
|
};
|
|
5935
|
-
|
|
5935
|
+
Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
5936
5936
|
mixed,
|
|
5937
5937
|
string,
|
|
5938
5938
|
number,
|
|
@@ -5982,9 +5982,6 @@ const prefixes = {
|
|
|
5982
5982
|
context: "$",
|
|
5983
5983
|
value: "."
|
|
5984
5984
|
};
|
|
5985
|
-
function create$9(key, options) {
|
|
5986
|
-
return new Reference(key, options);
|
|
5987
|
-
}
|
|
5988
5985
|
class Reference {
|
|
5989
5986
|
constructor(key, options = {}) {
|
|
5990
5987
|
this.key = void 0;
|
|
@@ -7243,9 +7240,6 @@ class NumberSchema extends Schema {
|
|
|
7243
7240
|
create$5.prototype = NumberSchema.prototype;
|
|
7244
7241
|
let invalidDate = /* @__PURE__ */ new Date("");
|
|
7245
7242
|
let isDate$3 = (obj) => Object.prototype.toString.call(obj) === "[object Date]";
|
|
7246
|
-
function create$4() {
|
|
7247
|
-
return new DateSchema();
|
|
7248
|
-
}
|
|
7249
7243
|
class DateSchema extends Schema {
|
|
7250
7244
|
constructor() {
|
|
7251
7245
|
super({
|
|
@@ -7305,8 +7299,6 @@ class DateSchema extends Schema {
|
|
|
7305
7299
|
}
|
|
7306
7300
|
}
|
|
7307
7301
|
DateSchema.INVALID_DATE = invalidDate;
|
|
7308
|
-
create$4.prototype = DateSchema.prototype;
|
|
7309
|
-
create$4.INVALID_DATE = invalidDate;
|
|
7310
7302
|
function sortFields(fields, excludedEdges = []) {
|
|
7311
7303
|
let edges = [];
|
|
7312
7304
|
let nodes = /* @__PURE__ */ new Set();
|
|
@@ -7851,233 +7843,6 @@ class ArraySchema extends Schema {
|
|
|
7851
7843
|
}
|
|
7852
7844
|
}
|
|
7853
7845
|
create$2.prototype = ArraySchema.prototype;
|
|
7854
|
-
function create$1(schemas) {
|
|
7855
|
-
return new TupleSchema(schemas);
|
|
7856
|
-
}
|
|
7857
|
-
class TupleSchema extends Schema {
|
|
7858
|
-
constructor(schemas) {
|
|
7859
|
-
super({
|
|
7860
|
-
type: "tuple",
|
|
7861
|
-
spec: {
|
|
7862
|
-
types: schemas
|
|
7863
|
-
},
|
|
7864
|
-
check(v) {
|
|
7865
|
-
const types = this.spec.types;
|
|
7866
|
-
return Array.isArray(v) && v.length === types.length;
|
|
7867
|
-
}
|
|
7868
|
-
});
|
|
7869
|
-
this.withMutation(() => {
|
|
7870
|
-
this.typeError(tuple.notType);
|
|
7871
|
-
});
|
|
7872
|
-
}
|
|
7873
|
-
_cast(inputValue, options) {
|
|
7874
|
-
const {
|
|
7875
|
-
types
|
|
7876
|
-
} = this.spec;
|
|
7877
|
-
const value = super._cast(inputValue, options);
|
|
7878
|
-
if (!this._typeCheck(value)) {
|
|
7879
|
-
return value;
|
|
7880
|
-
}
|
|
7881
|
-
let isChanged = false;
|
|
7882
|
-
const castArray = types.map((type, idx) => {
|
|
7883
|
-
const castElement = type.cast(value[idx], Object.assign({}, options, {
|
|
7884
|
-
path: `${options.path || ""}[${idx}]`
|
|
7885
|
-
}));
|
|
7886
|
-
if (castElement !== value[idx]) isChanged = true;
|
|
7887
|
-
return castElement;
|
|
7888
|
-
});
|
|
7889
|
-
return isChanged ? castArray : value;
|
|
7890
|
-
}
|
|
7891
|
-
_validate(_value, options = {}, panic, next2) {
|
|
7892
|
-
let itemTypes = this.spec.types;
|
|
7893
|
-
super._validate(_value, options, panic, (tupleErrors, value) => {
|
|
7894
|
-
var _options$originalValu2;
|
|
7895
|
-
if (!this._typeCheck(value)) {
|
|
7896
|
-
next2(tupleErrors, value);
|
|
7897
|
-
return;
|
|
7898
|
-
}
|
|
7899
|
-
let tests = [];
|
|
7900
|
-
for (let [index, itemSchema] of itemTypes.entries()) {
|
|
7901
|
-
var _options$originalValu;
|
|
7902
|
-
tests[index] = itemSchema.asNestedTest({
|
|
7903
|
-
options,
|
|
7904
|
-
index,
|
|
7905
|
-
parent: value,
|
|
7906
|
-
parentPath: options.path,
|
|
7907
|
-
originalParent: (_options$originalValu = options.originalValue) != null ? _options$originalValu : _value
|
|
7908
|
-
});
|
|
7909
|
-
}
|
|
7910
|
-
this.runTests({
|
|
7911
|
-
value,
|
|
7912
|
-
tests,
|
|
7913
|
-
originalValue: (_options$originalValu2 = options.originalValue) != null ? _options$originalValu2 : _value,
|
|
7914
|
-
options
|
|
7915
|
-
}, panic, (innerTypeErrors) => next2(innerTypeErrors.concat(tupleErrors), value));
|
|
7916
|
-
});
|
|
7917
|
-
}
|
|
7918
|
-
describe(options) {
|
|
7919
|
-
const next2 = (options ? this.resolve(options) : this).clone();
|
|
7920
|
-
const base = super.describe(options);
|
|
7921
|
-
base.innerType = next2.spec.types.map((schema, index) => {
|
|
7922
|
-
var _innerOptions;
|
|
7923
|
-
let innerOptions = options;
|
|
7924
|
-
if ((_innerOptions = innerOptions) != null && _innerOptions.value) {
|
|
7925
|
-
innerOptions = Object.assign({}, innerOptions, {
|
|
7926
|
-
parent: innerOptions.value,
|
|
7927
|
-
value: innerOptions.value[index]
|
|
7928
|
-
});
|
|
7929
|
-
}
|
|
7930
|
-
return schema.describe(innerOptions);
|
|
7931
|
-
});
|
|
7932
|
-
return base;
|
|
7933
|
-
}
|
|
7934
|
-
}
|
|
7935
|
-
create$1.prototype = TupleSchema.prototype;
|
|
7936
|
-
function create$a(builder) {
|
|
7937
|
-
return new Lazy(builder);
|
|
7938
|
-
}
|
|
7939
|
-
function catchValidationError(fn7) {
|
|
7940
|
-
try {
|
|
7941
|
-
return fn7();
|
|
7942
|
-
} catch (err) {
|
|
7943
|
-
if (ValidationError.isError(err)) return Promise.reject(err);
|
|
7944
|
-
throw err;
|
|
7945
|
-
}
|
|
7946
|
-
}
|
|
7947
|
-
class Lazy {
|
|
7948
|
-
constructor(builder) {
|
|
7949
|
-
this.type = "lazy";
|
|
7950
|
-
this.__isYupSchema__ = true;
|
|
7951
|
-
this.spec = void 0;
|
|
7952
|
-
this._resolve = (value, options = {}) => {
|
|
7953
|
-
let schema = this.builder(value, options);
|
|
7954
|
-
if (!isSchema(schema)) throw new TypeError("lazy() functions must return a valid schema");
|
|
7955
|
-
if (this.spec.optional) schema = schema.optional();
|
|
7956
|
-
return schema.resolve(options);
|
|
7957
|
-
};
|
|
7958
|
-
this.builder = builder;
|
|
7959
|
-
this.spec = {
|
|
7960
|
-
meta: void 0,
|
|
7961
|
-
optional: false
|
|
7962
|
-
};
|
|
7963
|
-
}
|
|
7964
|
-
clone(spec) {
|
|
7965
|
-
const next2 = new Lazy(this.builder);
|
|
7966
|
-
next2.spec = Object.assign({}, this.spec, spec);
|
|
7967
|
-
return next2;
|
|
7968
|
-
}
|
|
7969
|
-
optionality(optional) {
|
|
7970
|
-
const next2 = this.clone({
|
|
7971
|
-
optional
|
|
7972
|
-
});
|
|
7973
|
-
return next2;
|
|
7974
|
-
}
|
|
7975
|
-
optional() {
|
|
7976
|
-
return this.optionality(true);
|
|
7977
|
-
}
|
|
7978
|
-
resolve(options) {
|
|
7979
|
-
return this._resolve(options.value, options);
|
|
7980
|
-
}
|
|
7981
|
-
cast(value, options) {
|
|
7982
|
-
return this._resolve(value, options).cast(value, options);
|
|
7983
|
-
}
|
|
7984
|
-
asNestedTest(config) {
|
|
7985
|
-
let {
|
|
7986
|
-
key,
|
|
7987
|
-
index,
|
|
7988
|
-
parent,
|
|
7989
|
-
options
|
|
7990
|
-
} = config;
|
|
7991
|
-
let value = parent[index != null ? index : key];
|
|
7992
|
-
return this._resolve(value, Object.assign({}, options, {
|
|
7993
|
-
value,
|
|
7994
|
-
parent
|
|
7995
|
-
})).asNestedTest(config);
|
|
7996
|
-
}
|
|
7997
|
-
validate(value, options) {
|
|
7998
|
-
return catchValidationError(() => this._resolve(value, options).validate(value, options));
|
|
7999
|
-
}
|
|
8000
|
-
validateSync(value, options) {
|
|
8001
|
-
return this._resolve(value, options).validateSync(value, options);
|
|
8002
|
-
}
|
|
8003
|
-
validateAt(path, value, options) {
|
|
8004
|
-
return catchValidationError(() => this._resolve(value, options).validateAt(path, value, options));
|
|
8005
|
-
}
|
|
8006
|
-
validateSyncAt(path, value, options) {
|
|
8007
|
-
return this._resolve(value, options).validateSyncAt(path, value, options);
|
|
8008
|
-
}
|
|
8009
|
-
isValid(value, options) {
|
|
8010
|
-
try {
|
|
8011
|
-
return this._resolve(value, options).isValid(value, options);
|
|
8012
|
-
} catch (err) {
|
|
8013
|
-
if (ValidationError.isError(err)) {
|
|
8014
|
-
return Promise.resolve(false);
|
|
8015
|
-
}
|
|
8016
|
-
throw err;
|
|
8017
|
-
}
|
|
8018
|
-
}
|
|
8019
|
-
isValidSync(value, options) {
|
|
8020
|
-
return this._resolve(value, options).isValidSync(value, options);
|
|
8021
|
-
}
|
|
8022
|
-
describe(options) {
|
|
8023
|
-
return options ? this.resolve(options).describe(options) : {
|
|
8024
|
-
type: "lazy",
|
|
8025
|
-
meta: this.spec.meta,
|
|
8026
|
-
label: void 0
|
|
8027
|
-
};
|
|
8028
|
-
}
|
|
8029
|
-
meta(...args) {
|
|
8030
|
-
if (args.length === 0) return this.spec.meta;
|
|
8031
|
-
let next2 = this.clone();
|
|
8032
|
-
next2.spec.meta = Object.assign(next2.spec.meta || {}, args[0]);
|
|
8033
|
-
return next2;
|
|
8034
|
-
}
|
|
8035
|
-
}
|
|
8036
|
-
function setLocale(custom) {
|
|
8037
|
-
Object.keys(custom).forEach((type) => {
|
|
8038
|
-
Object.keys(custom[type]).forEach((method) => {
|
|
8039
|
-
locale$2[type][method] = custom[type][method];
|
|
8040
|
-
});
|
|
8041
|
-
});
|
|
8042
|
-
}
|
|
8043
|
-
function addMethod(schemaType, name, fn7) {
|
|
8044
|
-
if (!schemaType || !isSchema(schemaType.prototype)) throw new TypeError("You must provide a yup schema constructor function");
|
|
8045
|
-
if (typeof name !== "string") throw new TypeError("A Method name must be provided");
|
|
8046
|
-
if (typeof fn7 !== "function") throw new TypeError("Method function must be provided");
|
|
8047
|
-
schemaType.prototype[name] = fn7;
|
|
8048
|
-
}
|
|
8049
|
-
const yup = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8050
|
-
__proto__: null,
|
|
8051
|
-
ArraySchema,
|
|
8052
|
-
BooleanSchema,
|
|
8053
|
-
DateSchema,
|
|
8054
|
-
LazySchema: Lazy,
|
|
8055
|
-
MixedSchema,
|
|
8056
|
-
NumberSchema,
|
|
8057
|
-
ObjectSchema,
|
|
8058
|
-
Schema,
|
|
8059
|
-
StringSchema,
|
|
8060
|
-
TupleSchema,
|
|
8061
|
-
ValidationError,
|
|
8062
|
-
addMethod,
|
|
8063
|
-
array: create$2,
|
|
8064
|
-
bool: create$7,
|
|
8065
|
-
boolean: create$7,
|
|
8066
|
-
date: create$4,
|
|
8067
|
-
defaultLocale: locale$2,
|
|
8068
|
-
getIn,
|
|
8069
|
-
isSchema,
|
|
8070
|
-
lazy: create$a,
|
|
8071
|
-
mixed: create$8,
|
|
8072
|
-
number: create$5,
|
|
8073
|
-
object: create$3,
|
|
8074
|
-
printValue,
|
|
8075
|
-
reach,
|
|
8076
|
-
ref: create$9,
|
|
8077
|
-
setLocale,
|
|
8078
|
-
string: create$6,
|
|
8079
|
-
tuple: create$1
|
|
8080
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
8081
7846
|
function generateComputedChildren(localVariable, newComputedSubKeys = []) {
|
|
8082
7847
|
const subItems = newComputedSubKeys.reduce((result, key) => {
|
|
8083
7848
|
if (!key) {
|
|
@@ -8123,8 +7888,12 @@ function generateComputedParent(data) {
|
|
|
8123
7888
|
}
|
|
8124
7889
|
const isFieldRequired = (schema, fieldName) => {
|
|
8125
7890
|
var _a3;
|
|
8126
|
-
|
|
8127
|
-
|
|
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
|
+
}
|
|
8128
7897
|
};
|
|
8129
7898
|
function getStyleFromObject(style) {
|
|
8130
7899
|
return Object.keys(style).filter((key) => style[key]).join("; ");
|
|
@@ -9696,7 +9465,7 @@ const _hoisted_2$U = {
|
|
|
9696
9465
|
key: 0,
|
|
9697
9466
|
class: "breadcrumb-elements-item"
|
|
9698
9467
|
};
|
|
9699
|
-
const _hoisted_3$
|
|
9468
|
+
const _hoisted_3$E = { class: "flex-center-vertical" };
|
|
9700
9469
|
const _hoisted_4$t = {
|
|
9701
9470
|
key: 0,
|
|
9702
9471
|
class: "pl-5 pr-5"
|
|
@@ -9726,7 +9495,7 @@ const _sfc_main$1E = {
|
|
|
9726
9495
|
__props.isLoading ? (openBlock(), createElementBlock("div", _hoisted_2$U, [
|
|
9727
9496
|
createVNode(_sfc_main$1F, { style: { "width": "200px", "height": "20px" } })
|
|
9728
9497
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.value, (breadcrumb, index) => {
|
|
9729
|
-
return openBlock(), createElementBlock("div", _hoisted_3$
|
|
9498
|
+
return openBlock(), createElementBlock("div", _hoisted_3$E, [
|
|
9730
9499
|
renderSlot(_ctx.$slots, "breadcrumb", {
|
|
9731
9500
|
index,
|
|
9732
9501
|
item: breadcrumb
|
|
@@ -10140,7 +9909,7 @@ const _hoisted_2$T = {
|
|
|
10140
9909
|
key: 0,
|
|
10141
9910
|
class: "text-danger"
|
|
10142
9911
|
};
|
|
10143
|
-
const _hoisted_3$
|
|
9912
|
+
const _hoisted_3$D = {
|
|
10144
9913
|
key: 0,
|
|
10145
9914
|
class: "form-control-feedback-icon"
|
|
10146
9915
|
};
|
|
@@ -10237,7 +10006,7 @@ const _sfc_main$1B = {
|
|
|
10237
10006
|
createElementVNode("div", {
|
|
10238
10007
|
class: normalizeClass(contentContainerClass.value)
|
|
10239
10008
|
}, [
|
|
10240
|
-
_ctx.leftIcon ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
10009
|
+
_ctx.leftIcon ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
10241
10010
|
createVNode(_component_app_icon, { value: _ctx.leftIcon }, null, 8, ["value"])
|
|
10242
10011
|
])) : renderSlot(_ctx.$slots, "beforeContent", { key: 1 }, void 0, true),
|
|
10243
10012
|
createElementVNode("div", {
|
|
@@ -14696,8 +14465,8 @@ const _hoisted_1$19 = {
|
|
|
14696
14465
|
class: "flex-center-vertical dp__input dp__pointer dp__input_readonly dp__input_reg",
|
|
14697
14466
|
style: { "gap": "3px" }
|
|
14698
14467
|
};
|
|
14699
|
-
const _hoisted_2$S = ["
|
|
14700
|
-
const _hoisted_3$
|
|
14468
|
+
const _hoisted_2$S = ["disabled", "placeholder", "onBlur", "onKeydown", "onKeypress", "onPaste"];
|
|
14469
|
+
const _hoisted_3$C = { key: 0 };
|
|
14701
14470
|
const _hoisted_4$r = {
|
|
14702
14471
|
key: 1,
|
|
14703
14472
|
class: "app-form-element-placeholder"
|
|
@@ -14721,27 +14490,18 @@ const _sfc_main$1z = {
|
|
|
14721
14490
|
setup(__props) {
|
|
14722
14491
|
const modelValue = useModel(__props, "modelValue");
|
|
14723
14492
|
const inputValue = ref("");
|
|
14724
|
-
const inputElement = ref(null);
|
|
14725
14493
|
const props2 = __props;
|
|
14726
14494
|
const { formElementProps, computedName, computedPlaceHolder } = useAppFormElement(props2);
|
|
14727
|
-
const computedClass = computed(() => {
|
|
14728
|
-
|
|
14729
|
-
|
|
14730
|
-
|
|
14731
|
-
};
|
|
14732
|
-
});
|
|
14495
|
+
const computedClass = computed(() => ({
|
|
14496
|
+
"app-date-picker": true,
|
|
14497
|
+
"disabled-element": props2.disabled
|
|
14498
|
+
}));
|
|
14733
14499
|
const isDayOfWeekVisible = computed(() => props2.showDayOfWeek && modelValue.value);
|
|
14734
|
-
watch(
|
|
14735
|
-
|
|
14736
|
-
|
|
14737
|
-
inputValue.value = newValue ? format$1(newValue, props2.currentFormat) : "";
|
|
14738
|
-
},
|
|
14739
|
-
{ immediate: true }
|
|
14740
|
-
);
|
|
14741
|
-
const handleInput = (value) => {
|
|
14742
|
-
inputValue.value = value;
|
|
14743
|
-
};
|
|
14500
|
+
watch(modelValue, (newValue) => {
|
|
14501
|
+
inputValue.value = newValue ? format$1(newValue, props2.currentFormat) : "";
|
|
14502
|
+
}, { immediate: true });
|
|
14744
14503
|
const attemptToParseDate = (dateStr) => {
|
|
14504
|
+
if (!lodashExports.isString(dateStr)) return null;
|
|
14745
14505
|
dateStr = dateStr.replace(/[.,\-\/]/g, ".");
|
|
14746
14506
|
const formats = [props2.currentFormat.replace("yyyy", "yy"), props2.currentFormat];
|
|
14747
14507
|
for (const format2 of formats) {
|
|
@@ -14757,54 +14517,60 @@ const _sfc_main$1z = {
|
|
|
14757
14517
|
modelValue.value = null;
|
|
14758
14518
|
inputValue.value = null;
|
|
14759
14519
|
};
|
|
14520
|
+
const updateDate = (date2) => {
|
|
14521
|
+
date2.setHours(0);
|
|
14522
|
+
date2.setMinutes(0);
|
|
14523
|
+
date2.setSeconds(0);
|
|
14524
|
+
};
|
|
14760
14525
|
return (_ctx, _cache2) => {
|
|
14761
14526
|
const _component_app_date_picker_day_of_week = resolveComponent("app-date-picker-day-of-week");
|
|
14762
|
-
const
|
|
14527
|
+
const _component_vue_date_picker = resolveComponent("vue-date-picker");
|
|
14763
14528
|
return openBlock(), createBlock(AppFormElement, normalizeProps(guardReactiveProps(unref(formElementProps))), createSlots({
|
|
14764
14529
|
default: withCtx(() => [
|
|
14765
|
-
createVNode(
|
|
14530
|
+
createVNode(_component_vue_date_picker, mergeProps({
|
|
14766
14531
|
modelValue: modelValue.value,
|
|
14767
|
-
"onUpdate:modelValue": _cache2[
|
|
14532
|
+
"onUpdate:modelValue": _cache2[1] || (_cache2[1] = ($event) => modelValue.value = $event)
|
|
14533
|
+
}, _ctx.$attrs, {
|
|
14534
|
+
position: "left",
|
|
14535
|
+
"action-row": { showSelect: true, showCancel: true, showPreview: true },
|
|
14536
|
+
"auto-apply": true,
|
|
14768
14537
|
class: computedClass.value,
|
|
14538
|
+
"disabled-dates": _ctx.disabledDates,
|
|
14769
14539
|
disabled: _ctx.disabled,
|
|
14770
14540
|
"enable-time-picker": false,
|
|
14771
|
-
format: _ctx.currentFormat,
|
|
14772
14541
|
"format-locale": unref(locale),
|
|
14542
|
+
format: _ctx.currentFormat,
|
|
14773
14543
|
name: unref(computedName),
|
|
14774
14544
|
placeholder: unref(computedPlaceHolder),
|
|
14775
14545
|
"text-input": _ctx.isTypeable,
|
|
14776
|
-
|
|
14777
|
-
|
|
14778
|
-
|
|
14779
|
-
"auto-apply": true
|
|
14780
|
-
}, _ctx.$attrs), {
|
|
14781
|
-
"dp-input": withCtx(({ value, onInput, onEnter, onTab, onClear, onBlur, onKeypress, onPaste }) => [
|
|
14546
|
+
onDateUpdate: updateDate
|
|
14547
|
+
}), {
|
|
14548
|
+
"dp-input": withCtx(({ value, isMenuOpen, onTab, onKeypress, onPaste }) => [
|
|
14782
14549
|
createElementVNode("div", _hoisted_1$19, [
|
|
14783
|
-
_cache2[
|
|
14550
|
+
_cache2[3] || (_cache2[3] = createElementVNode("i", { class: "ph-calendar-blank" }, null, -1)),
|
|
14784
14551
|
isDayOfWeekVisible.value ? (openBlock(), createBlock(_component_app_date_picker_day_of_week, {
|
|
14785
14552
|
key: 0,
|
|
14786
14553
|
language: _ctx.currentLanguage,
|
|
14787
14554
|
value: modelValue.value
|
|
14788
14555
|
}, null, 8, ["language", "value"])) : createCommentVNode("", true),
|
|
14789
|
-
props2.isTypeable ? (openBlock(), createElementBlock("input", {
|
|
14556
|
+
props2.isTypeable ? withDirectives((openBlock(), createElementBlock("input", {
|
|
14790
14557
|
key: 1,
|
|
14558
|
+
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => inputValue.value = $event),
|
|
14559
|
+
class: "dp__input_readonly dp__input_icon_pad dp__input_reg borderless-input date-picker-input",
|
|
14791
14560
|
type: "text",
|
|
14792
|
-
|
|
14793
|
-
ref: inputElement,
|
|
14794
|
-
value: inputValue.value,
|
|
14561
|
+
disabled: _ctx.disabled,
|
|
14795
14562
|
placeholder: _ctx.placeholder,
|
|
14796
|
-
|
|
14563
|
+
onBlur: ($event) => !isMenuOpen && applyInputValue(),
|
|
14797
14564
|
onKeydown: [
|
|
14798
14565
|
withKeys(applyInputValue, ["enter"]),
|
|
14799
14566
|
withKeys(onTab, ["tab"])
|
|
14800
14567
|
],
|
|
14801
|
-
onBlur: applyInputValue,
|
|
14802
14568
|
onKeypress,
|
|
14803
|
-
onPaste
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
|
|
14807
|
-
modelValue.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
14569
|
+
onPaste
|
|
14570
|
+
}, null, 40, _hoisted_2$S)), [
|
|
14571
|
+
[vModelText, inputValue.value]
|
|
14572
|
+
]) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
14573
|
+
modelValue.value ? (openBlock(), createElementBlock("span", _hoisted_3$C, toDisplayString(value), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.placeholder), 1))
|
|
14808
14574
|
], 64))
|
|
14809
14575
|
])
|
|
14810
14576
|
]),
|
|
@@ -14819,11 +14585,11 @@ const _sfc_main$1z = {
|
|
|
14819
14585
|
])
|
|
14820
14586
|
]),
|
|
14821
14587
|
_: 1
|
|
14822
|
-
}, 16, ["modelValue", "class", "disabled", "
|
|
14588
|
+
}, 16, ["modelValue", "class", "disabled-dates", "disabled", "format-locale", "format", "name", "placeholder", "text-input"]),
|
|
14823
14589
|
_ctx.showEasyButtons && !_ctx.disabled ? (openBlock(), createElementBlock("div", _hoisted_7$6, [
|
|
14824
14590
|
createVNode(_sfc_main$1A, {
|
|
14825
14591
|
modelValue: modelValue.value,
|
|
14826
|
-
"onUpdate:modelValue": _cache2[
|
|
14592
|
+
"onUpdate:modelValue": _cache2[2] || (_cache2[2] = ($event) => modelValue.value = $event)
|
|
14827
14593
|
}, null, 8, ["modelValue"])
|
|
14828
14594
|
])) : createCommentVNode("", true)
|
|
14829
14595
|
]),
|
|
@@ -14843,7 +14609,7 @@ const _sfc_main$1z = {
|
|
|
14843
14609
|
};
|
|
14844
14610
|
const _hoisted_1$18 = { class: "w-100" };
|
|
14845
14611
|
const _hoisted_2$R = { class: "flex-center-vertical w-100 gap-1" };
|
|
14846
|
-
const _hoisted_3$
|
|
14612
|
+
const _hoisted_3$B = {
|
|
14847
14613
|
key: 0,
|
|
14848
14614
|
class: "flex-center-vertical mt-1"
|
|
14849
14615
|
};
|
|
@@ -14925,7 +14691,7 @@ const _sfc_main$1y = {
|
|
|
14925
14691
|
name: __props.endName
|
|
14926
14692
|
}, bindableProps.value, { showEasyButtons: false }), null, 16, ["modelValue", "placeholder", "name"])
|
|
14927
14693
|
]),
|
|
14928
|
-
_ctx.showEasyButtons ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
14694
|
+
_ctx.showEasyButtons ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
14929
14695
|
createVNode(_component_app_button_group, {
|
|
14930
14696
|
value: unref(easyButtonsList),
|
|
14931
14697
|
onClick: onEasyButtonClick
|
|
@@ -14941,7 +14707,7 @@ const _sfc_main$1y = {
|
|
|
14941
14707
|
};
|
|
14942
14708
|
const _hoisted_1$17 = { class: "d-flex align-items-center" };
|
|
14943
14709
|
const _hoisted_2$Q = { class: "mb-0 fw-normal" };
|
|
14944
|
-
const _hoisted_3$
|
|
14710
|
+
const _hoisted_3$A = { class: "ms-auto" };
|
|
14945
14711
|
const _sfc_main$1x = {
|
|
14946
14712
|
__name: "AppCard",
|
|
14947
14713
|
props: {
|
|
@@ -15045,7 +14811,7 @@ const _sfc_main$1x = {
|
|
|
15045
14811
|
createElementVNode("i", { class: "icon-more" }, null, -1)
|
|
15046
14812
|
])])
|
|
15047
14813
|
]),
|
|
15048
|
-
createElementVNode("div", _hoisted_3$
|
|
14814
|
+
createElementVNode("div", _hoisted_3$A, [
|
|
15049
14815
|
createElementVNode("div", {
|
|
15050
14816
|
class: normalizeClass([headerElementsClasses.value])
|
|
15051
14817
|
}, [
|
|
@@ -15375,7 +15141,7 @@ function useAdaptiveDropdown(element, openDirection) {
|
|
|
15375
15141
|
}
|
|
15376
15142
|
const _hoisted_1$14 = { class: "w-100 position-relative cursor-pointer" };
|
|
15377
15143
|
const _hoisted_2$P = ["placeholder"];
|
|
15378
|
-
const _hoisted_3$
|
|
15144
|
+
const _hoisted_3$z = {
|
|
15379
15145
|
key: 1,
|
|
15380
15146
|
class: "flex-1 input-placeholder"
|
|
15381
15147
|
};
|
|
@@ -15567,7 +15333,7 @@ const _sfc_main$1t = {
|
|
|
15567
15333
|
renderSlot(_ctx.$slots, "default", { item: modelValue.value }, () => [
|
|
15568
15334
|
modelValue.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
15569
15335
|
createTextVNode(toDisplayString(getDisplayValue2(modelValue.value)), 1)
|
|
15570
|
-
], 64)) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
15336
|
+
], 64)) : (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(props2.placeholder), 1))
|
|
15571
15337
|
], true)
|
|
15572
15338
|
], 2)),
|
|
15573
15339
|
modelValue.value && __props.showRemoveButtons ? (openBlock(), createElementBlock("div", _hoisted_4$q, [
|
|
@@ -15646,7 +15412,7 @@ const _hoisted_2$O = {
|
|
|
15646
15412
|
key: 0,
|
|
15647
15413
|
class: "ml-10"
|
|
15648
15414
|
};
|
|
15649
|
-
const _hoisted_3$
|
|
15415
|
+
const _hoisted_3$y = {
|
|
15650
15416
|
key: 1,
|
|
15651
15417
|
class: "flex-center-vertical ml-5 mr-5 time-picker-icon"
|
|
15652
15418
|
};
|
|
@@ -15816,7 +15582,7 @@ const _sfc_main$1r = {
|
|
|
15816
15582
|
onNow: onSelectNow
|
|
15817
15583
|
})
|
|
15818
15584
|
])) : createCommentVNode("", true),
|
|
15819
|
-
!_ctx.disabled && __props.isClearable && modelValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
15585
|
+
!_ctx.disabled && __props.isClearable && modelValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
15820
15586
|
withDirectives(createElementVNode("i", {
|
|
15821
15587
|
class: "ph-x-circle app-cross-icon",
|
|
15822
15588
|
onClick: withModifiers(reset2, ["stop"])
|
|
@@ -16092,7 +15858,7 @@ __publicField(_DateUtils, "stringToDateRecursive", (item, deep = false) => {
|
|
|
16092
15858
|
let DateUtils = _DateUtils;
|
|
16093
15859
|
const _hoisted_1$12 = { class: "flex-center-vertical w-100" };
|
|
16094
15860
|
const _hoisted_2$N = { class: "app-form-group-element flex-grow-1 mr-5" };
|
|
16095
|
-
const _hoisted_3$
|
|
15861
|
+
const _hoisted_3$x = { class: "app-form-group-element flex-grow-1" };
|
|
16096
15862
|
const _hoisted_4$p = {
|
|
16097
15863
|
key: 0,
|
|
16098
15864
|
class: "easy-buttons"
|
|
@@ -16253,7 +16019,7 @@ const _sfc_main$1q = {
|
|
|
16253
16019
|
"input-only": true
|
|
16254
16020
|
}, null, 8, ["modelValue", "disabled", "show-day-of-week"])
|
|
16255
16021
|
]),
|
|
16256
|
-
createElementVNode("div", _hoisted_3$
|
|
16022
|
+
createElementVNode("div", _hoisted_3$x, [
|
|
16257
16023
|
createVNode(AppTimePicker, {
|
|
16258
16024
|
ref: "timePicker",
|
|
16259
16025
|
modelValue: localTime.value,
|
|
@@ -16412,7 +16178,7 @@ var IconCaretDownFilled = createVueComponent("filled", "caret-down-filled", "Ico
|
|
|
16412
16178
|
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" }]]);
|
|
16413
16179
|
const _hoisted_1$11 = { class: "display-flex-column h-100" };
|
|
16414
16180
|
const _hoisted_2$M = { class: "flex-center-vertical w-100 p-3" };
|
|
16415
|
-
const _hoisted_3$
|
|
16181
|
+
const _hoisted_3$w = { class: "flex-1" };
|
|
16416
16182
|
const _hoisted_4$o = { class: "font-600 text-size-14" };
|
|
16417
16183
|
const _hoisted_5$j = { class: "p-20 flex-1 w-100" };
|
|
16418
16184
|
const _sfc_main$1p = {
|
|
@@ -16463,7 +16229,7 @@ const _sfc_main$1p = {
|
|
|
16463
16229
|
}, [
|
|
16464
16230
|
createElementVNode("div", _hoisted_1$11, [
|
|
16465
16231
|
createElementVNode("div", _hoisted_2$M, [
|
|
16466
|
-
createElementVNode("div", _hoisted_3$
|
|
16232
|
+
createElementVNode("div", _hoisted_3$w, [
|
|
16467
16233
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
16468
16234
|
createElementVNode("div", _hoisted_4$o, toDisplayString(__props.title), 1)
|
|
16469
16235
|
], true)
|
|
@@ -16488,7 +16254,7 @@ const _sfc_main$1p = {
|
|
|
16488
16254
|
const AppDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-546ab102"]]);
|
|
16489
16255
|
const _hoisted_1$10 = { class: "display-flex-column h-100" };
|
|
16490
16256
|
const _hoisted_2$L = { class: "flex-center-vertical pr-20 pl-20 w-100 mt-15" };
|
|
16491
|
-
const _hoisted_3$
|
|
16257
|
+
const _hoisted_3$v = { class: "flex-1 mb-10" };
|
|
16492
16258
|
const _hoisted_4$n = { class: "mb-0" };
|
|
16493
16259
|
const _hoisted_5$i = { class: "p-20 flex-1 w-100" };
|
|
16494
16260
|
const _hoisted_6$c = { class: "flex-center p-10 w-100 gap-1" };
|
|
@@ -16552,7 +16318,7 @@ const _sfc_main$1o = {
|
|
|
16552
16318
|
}, [
|
|
16553
16319
|
createElementVNode("div", _hoisted_1$10, [
|
|
16554
16320
|
createElementVNode("div", _hoisted_2$L, [
|
|
16555
|
-
createElementVNode("div", _hoisted_3$
|
|
16321
|
+
createElementVNode("div", _hoisted_3$v, [
|
|
16556
16322
|
createElementVNode("h4", _hoisted_4$n, toDisplayString(__props.title), 1)
|
|
16557
16323
|
]),
|
|
16558
16324
|
createElementVNode("i", {
|
|
@@ -20195,6 +19961,7 @@ __publicField(ResponseUtils, "STATUS_CODES", {
|
|
|
20195
19961
|
STATUS_CODE_UNAUTHORIZED: 401,
|
|
20196
19962
|
STATUS_CODE_FORBIDDEN: 403,
|
|
20197
19963
|
STATUS_CODE_CONFLICT: 409,
|
|
19964
|
+
STATUS_CODE_PRECONDITION_REQUIRED: 428,
|
|
20198
19965
|
STATUS_CODE_UNPROCESSABLE_ENTITY: 422,
|
|
20199
19966
|
STATUS_CODE_SERVER_ERROR: 500
|
|
20200
19967
|
});
|
|
@@ -22857,7 +22624,7 @@ const fileStatus = {
|
|
|
22857
22624
|
};
|
|
22858
22625
|
const _hoisted_1$$ = { class: "flex-center-vertical" };
|
|
22859
22626
|
const _hoisted_2$K = { key: 0 };
|
|
22860
|
-
const _hoisted_3$
|
|
22627
|
+
const _hoisted_3$u = {
|
|
22861
22628
|
key: 1,
|
|
22862
22629
|
class: "file-action-button flex-1 mr-10"
|
|
22863
22630
|
};
|
|
@@ -22910,7 +22677,7 @@ const _sfc_main$1m = {
|
|
|
22910
22677
|
style: { "font-size": "22px" }
|
|
22911
22678
|
}, null, 2),
|
|
22912
22679
|
__props.file ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(filename.value), 1)) : createCommentVNode("", true),
|
|
22913
|
-
__props.file ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
22680
|
+
__props.file ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
22914
22681
|
props2.showPreview ? (openBlock(), createElementBlock("div", {
|
|
22915
22682
|
key: 0,
|
|
22916
22683
|
class: "ml-5 mr-5 action-icon",
|
|
@@ -22949,7 +22716,7 @@ const _hoisted_2$J = {
|
|
|
22949
22716
|
key: 0,
|
|
22950
22717
|
class: "flex-1"
|
|
22951
22718
|
};
|
|
22952
|
-
const _hoisted_3$
|
|
22719
|
+
const _hoisted_3$t = {
|
|
22953
22720
|
key: 1,
|
|
22954
22721
|
class: "flex-1"
|
|
22955
22722
|
};
|
|
@@ -23035,7 +22802,7 @@ const _sfc_main$1l = {
|
|
|
23035
22802
|
tag: "li"
|
|
23036
22803
|
}, null, 8, ["file", "disabled", "show-preview", "show-download", "onRemove", "onDownload", "onPreview"]);
|
|
23037
22804
|
}), 128))
|
|
23038
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
22805
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_3$t, toDisplayString(__props.disabled ? "Nu a fost ales niciun fișier." : "Alegeți un fișier."), 1)),
|
|
23039
22806
|
createElementVNode("div", _hoisted_4$l, [
|
|
23040
22807
|
!__props.disabled ? (openBlock(), createElementBlock("div", {
|
|
23041
22808
|
key: 0,
|
|
@@ -23236,7 +23003,7 @@ const _sfc_main$1i = {
|
|
|
23236
23003
|
};
|
|
23237
23004
|
const _hoisted_1$W = { class: "display-flex align-items-center" };
|
|
23238
23005
|
const _hoisted_2$H = { class: "display-flex pl-10" };
|
|
23239
|
-
const _hoisted_3$
|
|
23006
|
+
const _hoisted_3$s = {
|
|
23240
23007
|
key: 1,
|
|
23241
23008
|
class: "card list app-form-repeater-list'"
|
|
23242
23009
|
};
|
|
@@ -23381,7 +23148,7 @@ const _sfc_main$1h = {
|
|
|
23381
23148
|
renderSlot(_ctx.$slots, "content", normalizeProps(guardReactiveProps({ index, element, removeItemAtIndex })))
|
|
23382
23149
|
]),
|
|
23383
23150
|
_: 2
|
|
23384
|
-
}, 1032, ["can-collapse", "is-collapsed", "onIsCollapsedChanged"])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
23151
|
+
}, 1032, ["can-collapse", "is-collapsed", "onIsCollapsedChanged"])) : (openBlock(), createElementBlock("div", _hoisted_3$s, [
|
|
23385
23152
|
createElementVNode("div", _hoisted_4$k, [
|
|
23386
23153
|
createElementVNode("div", _hoisted_5$f, [
|
|
23387
23154
|
!__props.disabled && __props.isDraggable ? (openBlock(), createBlock(unref(IconMenu2), {
|
|
@@ -24677,7 +24444,7 @@ const _sfc_main$1g = {
|
|
|
24677
24444
|
};
|
|
24678
24445
|
const _hoisted_1$V = { class: "card card-table table-responsive shadow-0 mb-20 overflow-hidden" };
|
|
24679
24446
|
const _hoisted_2$G = { class: "table table-bordered" };
|
|
24680
|
-
const _hoisted_3$
|
|
24447
|
+
const _hoisted_3$r = ["onClick"];
|
|
24681
24448
|
function _sfc_render$1(_ctx, _cache2, $props, $setup, $data, $options) {
|
|
24682
24449
|
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
24683
24450
|
createElementVNode("table", _hoisted_2$G, [
|
|
@@ -24700,7 +24467,7 @@ function _sfc_render$1(_ctx, _cache2, $props, $setup, $data, $options) {
|
|
|
24700
24467
|
class: normalizeClass($setup.tdClass(colorShade)),
|
|
24701
24468
|
style: normalizeStyle($setup.cellStyle(colorShade)),
|
|
24702
24469
|
onClick: ($event) => $setup.selectColor(colorShade)
|
|
24703
|
-
}, null, 14, _hoisted_3$
|
|
24470
|
+
}, null, 14, _hoisted_3$r);
|
|
24704
24471
|
}), 256))
|
|
24705
24472
|
]);
|
|
24706
24473
|
}), 128))
|
|
@@ -24714,7 +24481,7 @@ const _hoisted_2$F = {
|
|
|
24714
24481
|
key: 0,
|
|
24715
24482
|
class: "form-control-feedback form-control-feedback-end"
|
|
24716
24483
|
};
|
|
24717
|
-
const _hoisted_3$
|
|
24484
|
+
const _hoisted_3$q = { class: "form-control-feedback-icon" };
|
|
24718
24485
|
const _sfc_main$1f = {
|
|
24719
24486
|
__name: "AppInput",
|
|
24720
24487
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -24784,7 +24551,7 @@ const _sfc_main$1f = {
|
|
|
24784
24551
|
[vModelDynamic, unref(modelValue)]
|
|
24785
24552
|
]),
|
|
24786
24553
|
__props.isClearable && unref(modelValue) && !props2.disabled ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
|
24787
|
-
createElementVNode("div", _hoisted_3$
|
|
24554
|
+
createElementVNode("div", _hoisted_3$q, [
|
|
24788
24555
|
withDirectives(createElementVNode("i", {
|
|
24789
24556
|
class: "ph-x-circle app-cross-icon",
|
|
24790
24557
|
onClick: withModifiers(clearOptions, ["stop"])
|
|
@@ -25334,7 +25101,7 @@ const _sfc_main$18 = {
|
|
|
25334
25101
|
};
|
|
25335
25102
|
const _hoisted_1$O = { class: "row" };
|
|
25336
25103
|
const _hoisted_2$D = { class: "col-lg-12" };
|
|
25337
|
-
const _hoisted_3$
|
|
25104
|
+
const _hoisted_3$p = { class: "card card-white animated fadeIn" };
|
|
25338
25105
|
const _hoisted_4$j = { class: "card-header" };
|
|
25339
25106
|
const _hoisted_5$e = { class: "card-body" };
|
|
25340
25107
|
const _sfc_main$17 = {
|
|
@@ -25343,7 +25110,7 @@ const _sfc_main$17 = {
|
|
|
25343
25110
|
return (_ctx, _cache2) => {
|
|
25344
25111
|
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
25345
25112
|
createElementVNode("div", _hoisted_2$D, [
|
|
25346
|
-
createElementVNode("div", _hoisted_3$
|
|
25113
|
+
createElementVNode("div", _hoisted_3$p, [
|
|
25347
25114
|
createElementVNode("div", _hoisted_4$j, [
|
|
25348
25115
|
createVNode(_sfc_main$19, {
|
|
25349
25116
|
img: true,
|
|
@@ -25543,7 +25310,7 @@ function useModelWatch({ props: props2, emits, propName = "modelValue", onDataCh
|
|
|
25543
25310
|
}
|
|
25544
25311
|
const _hoisted_1$N = ["tabindex"];
|
|
25545
25312
|
const _hoisted_2$C = ["tabindex"];
|
|
25546
|
-
const _hoisted_3$
|
|
25313
|
+
const _hoisted_3$o = ["tabindex"];
|
|
25547
25314
|
const _hoisted_4$i = ["onClick", "onKeyup"];
|
|
25548
25315
|
const _hoisted_5$d = ["tabindex"];
|
|
25549
25316
|
const _hoisted_6$9 = ["tabindex"];
|
|
@@ -25715,7 +25482,7 @@ const _sfc_main$15 = {
|
|
|
25715
25482
|
tabindex: firstPageSelected() ? -1 : 0,
|
|
25716
25483
|
onClick: _cache2[4] || (_cache2[4] = ($event) => prevPage()),
|
|
25717
25484
|
onKeyup: _cache2[5] || (_cache2[5] = withKeys(($event) => prevPage(), ["enter"]))
|
|
25718
|
-
}, toDisplayString(_ctx.prevText), 43, _hoisted_3$
|
|
25485
|
+
}, toDisplayString(_ctx.prevText), 43, _hoisted_3$o))
|
|
25719
25486
|
], 2)) : createCommentVNode("", true),
|
|
25720
25487
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
25721
25488
|
return openBlock(), createElementBlock("li", {
|
|
@@ -25781,7 +25548,7 @@ const _sfc_main$15 = {
|
|
|
25781
25548
|
};
|
|
25782
25549
|
const _hoisted_1$M = { class: "pagination-info-label" };
|
|
25783
25550
|
const _hoisted_2$B = { class: "text-muted d-none d-lg-block d-xl-block" };
|
|
25784
|
-
const _hoisted_3$
|
|
25551
|
+
const _hoisted_3$n = { key: 0 };
|
|
25785
25552
|
const _hoisted_4$h = { key: 1 };
|
|
25786
25553
|
const _sfc_main$14 = {
|
|
25787
25554
|
__name: "AppPaginationInfo",
|
|
@@ -25806,7 +25573,7 @@ const _sfc_main$14 = {
|
|
|
25806
25573
|
createElementVNode("div", _hoisted_1$M, [
|
|
25807
25574
|
createElementVNode("span", _hoisted_2$B, [
|
|
25808
25575
|
createTextVNode(toDisplayString(`Inregistrari vizibile: ${props2.modelValue.from || 0} - ${props2.modelValue.to || 0}`) + " ", 1),
|
|
25809
|
-
props2.modelValue.total ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
25576
|
+
props2.modelValue.total ? (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(` din ${props2.modelValue.total}`), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString(` (total negenerat)`)))
|
|
25810
25577
|
])
|
|
25811
25578
|
]),
|
|
25812
25579
|
__props.canTogglePagination ? (openBlock(), createBlock(_sfc_main$1D, {
|
|
@@ -25971,7 +25738,7 @@ const _hoisted_2$z = {
|
|
|
25971
25738
|
key: 0,
|
|
25972
25739
|
class: "px-3 py-2 text-muted"
|
|
25973
25740
|
};
|
|
25974
|
-
const _hoisted_3$
|
|
25741
|
+
const _hoisted_3$m = { key: 1 };
|
|
25975
25742
|
const _hoisted_4$g = ["id", "aria-disabled", "aria-selected", "onMouseenter", "onClick"];
|
|
25976
25743
|
const _hoisted_5$c = { class: "overflow-hidden text-truncate mx-2" };
|
|
25977
25744
|
const _hoisted_6$8 = {
|
|
@@ -26110,7 +25877,7 @@ const _sfc_main$12 = {
|
|
|
26110
25877
|
class: "multiselect-container dropdown-menu show select-dropdown",
|
|
26111
25878
|
role: "listbox"
|
|
26112
25879
|
}, [
|
|
26113
|
-
unref(isLoading2) ? (openBlock(), createElementBlock("div", _hoisted_2$z, "Loading…")) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
25880
|
+
unref(isLoading2) ? (openBlock(), createElementBlock("div", _hoisted_2$z, "Loading…")) : (openBlock(), createElementBlock("div", _hoisted_3$m, [
|
|
26114
25881
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(visibleOptions), (item, idx) => {
|
|
26115
25882
|
return openBlock(), createElementBlock("div", {
|
|
26116
25883
|
id: getItemId(idx),
|
|
@@ -26180,7 +25947,7 @@ const _sfc_main$11 = {
|
|
|
26180
25947
|
const AppRemovableTag = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-41d0ea41"]]);
|
|
26181
25948
|
const _hoisted_1$I = { class: "app-select-content display-flex flex-column gap-1 overflow-hidden" };
|
|
26182
25949
|
const _hoisted_2$x = ["placeholder"];
|
|
26183
|
-
const _hoisted_3$
|
|
25950
|
+
const _hoisted_3$l = { class: "display-flex flex-row gap-1 flex-wrap overflow-hidden" };
|
|
26184
25951
|
const _hoisted_4$f = ["title"];
|
|
26185
25952
|
const _hoisted_5$b = {
|
|
26186
25953
|
key: 1,
|
|
@@ -26232,7 +25999,7 @@ const _sfc_main$10 = {
|
|
|
26232
25999
|
[vShow, unref(isDropdownOpen)],
|
|
26233
26000
|
[vModelText, unref(searchQuery)]
|
|
26234
26001
|
]),
|
|
26235
|
-
createElementVNode("div", _hoisted_3$
|
|
26002
|
+
createElementVNode("div", _hoisted_3$l, [
|
|
26236
26003
|
unref(selectedList).length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
26237
26004
|
unref(isMultiSelect) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(selectedList), (opt, idx) => {
|
|
26238
26005
|
return openBlock(), createElementBlock("div", {
|
|
@@ -26475,7 +26242,7 @@ const _hoisted_1$G = {
|
|
|
26475
26242
|
class: "d-flex flex-center-vertical"
|
|
26476
26243
|
};
|
|
26477
26244
|
const _hoisted_2$v = { class: "mr-auto" };
|
|
26478
|
-
const _hoisted_3$
|
|
26245
|
+
const _hoisted_3$k = { class: "d-flex" };
|
|
26479
26246
|
const _hoisted_4$e = {
|
|
26480
26247
|
key: 0,
|
|
26481
26248
|
class: "icon-eye-blocked"
|
|
@@ -26536,7 +26303,7 @@ const _sfc_main$_ = {
|
|
|
26536
26303
|
return (_ctx, _cache2) => {
|
|
26537
26304
|
return __props.isLoaded ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
26538
26305
|
createElementVNode("div", _hoisted_2$v, [
|
|
26539
|
-
createElementVNode("span", _hoisted_3$
|
|
26306
|
+
createElementVNode("span", _hoisted_3$k, [
|
|
26540
26307
|
createVNode(_sfc_main$$, {
|
|
26541
26308
|
modelValue: pageSizeValue.value,
|
|
26542
26309
|
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => pageSizeValue.value = $event),
|
|
@@ -27203,7 +26970,7 @@ const _hoisted_2$s = {
|
|
|
27203
26970
|
key: 0,
|
|
27204
26971
|
class: "p-2 text-muted flex-center-vertical gap-1"
|
|
27205
26972
|
};
|
|
27206
|
-
const _hoisted_3$
|
|
26973
|
+
const _hoisted_3$j = {
|
|
27207
26974
|
key: 1,
|
|
27208
26975
|
class: "p-2 text-muted flex-center-vertical gap-1"
|
|
27209
26976
|
};
|
|
@@ -27332,7 +27099,7 @@ const _sfc_main$S = {
|
|
|
27332
27099
|
}),
|
|
27333
27100
|
_cache2[0] || (_cache2[0] = createTextVNode(" Tastati pentru a cauta... ", -1))
|
|
27334
27101
|
])) : createCommentVNode("", true),
|
|
27335
|
-
isNoResultsVisible.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
27102
|
+
isNoResultsVisible.value ? (openBlock(), createElementBlock("div", _hoisted_3$j, [
|
|
27336
27103
|
createVNode(unref(IconMoodEmpty), {
|
|
27337
27104
|
size: 22,
|
|
27338
27105
|
"stroke-width": 1.8
|
|
@@ -27348,7 +27115,7 @@ const _sfc_main$S = {
|
|
|
27348
27115
|
};
|
|
27349
27116
|
const _hoisted_1$B = { class: "app-select-content display-flex flex-column" };
|
|
27350
27117
|
const _hoisted_2$r = { class: "flex-center-vertical" };
|
|
27351
|
-
const _hoisted_3$
|
|
27118
|
+
const _hoisted_3$i = {
|
|
27352
27119
|
key: 0,
|
|
27353
27120
|
class: "text-muted flex-1 input-placeholder"
|
|
27354
27121
|
};
|
|
@@ -27404,7 +27171,7 @@ const _sfc_main$R = {
|
|
|
27404
27171
|
return (_ctx, _cache2) => {
|
|
27405
27172
|
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
27406
27173
|
createElementVNode("div", _hoisted_2$r, [
|
|
27407
|
-
unref(isModelValueEmpty) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
27174
|
+
unref(isModelValueEmpty) ? (openBlock(), createElementBlock("div", _hoisted_3$i, [
|
|
27408
27175
|
!props2.isDropdownOpen ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
27409
27176
|
createTextVNode(toDisplayString(props2.placeholder), 1)
|
|
27410
27177
|
], 64)) : createCommentVNode("", true)
|
|
@@ -27487,7 +27254,7 @@ const _sfc_main$R = {
|
|
|
27487
27254
|
};
|
|
27488
27255
|
const _hoisted_1$A = ["onKeyup"];
|
|
27489
27256
|
const _hoisted_2$q = { class: "app-select-area flex-center-vertical" };
|
|
27490
|
-
const _hoisted_3$
|
|
27257
|
+
const _hoisted_3$h = {
|
|
27491
27258
|
class: "flex-center-vertical",
|
|
27492
27259
|
style: {}
|
|
27493
27260
|
};
|
|
@@ -27636,7 +27403,7 @@ const _sfc_main$Q = {
|
|
|
27636
27403
|
};
|
|
27637
27404
|
})
|
|
27638
27405
|
]), 1040, ["placeholder", "modelValue", "is-dropdown-open"]),
|
|
27639
|
-
createElementVNode("div", _hoisted_3$
|
|
27406
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
27640
27407
|
unref(isClearable) ? withDirectives((openBlock(), createElementBlock("i", {
|
|
27641
27408
|
key: 0,
|
|
27642
27409
|
class: "ph-x-circle",
|
|
@@ -27695,7 +27462,7 @@ const _hoisted_2$p = {
|
|
|
27695
27462
|
key: 0,
|
|
27696
27463
|
class: "nav nav-sidebar"
|
|
27697
27464
|
};
|
|
27698
|
-
const _hoisted_3$
|
|
27465
|
+
const _hoisted_3$g = { style: { "padding": "12px 20px" } };
|
|
27699
27466
|
const _sfc_main$P = {
|
|
27700
27467
|
__name: "AppSidebar",
|
|
27701
27468
|
props: {
|
|
@@ -27747,7 +27514,7 @@ const _sfc_main$P = {
|
|
|
27747
27514
|
key: n,
|
|
27748
27515
|
style: { "opacity": "0.5" }
|
|
27749
27516
|
}, [
|
|
27750
|
-
createElementVNode("div", _hoisted_3$
|
|
27517
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
27751
27518
|
createVNode(_component_app_placeholder_heading, {
|
|
27752
27519
|
img: true,
|
|
27753
27520
|
"img-size": "20px",
|
|
@@ -27774,7 +27541,7 @@ const _hoisted_2$o = {
|
|
|
27774
27541
|
key: 0,
|
|
27775
27542
|
class: "pr-2 flex-center-vertical"
|
|
27776
27543
|
};
|
|
27777
|
-
const _hoisted_3$
|
|
27544
|
+
const _hoisted_3$f = {
|
|
27778
27545
|
key: 1,
|
|
27779
27546
|
class: "pr-2 flex-grow-1 flex-column justify-content-center sidebar-header-text"
|
|
27780
27547
|
};
|
|
@@ -27809,7 +27576,7 @@ const _sfc_main$O = {
|
|
|
27809
27576
|
!__props.canCollapse || !__props.sidebarCollapsed ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
|
|
27810
27577
|
renderSlot(_ctx.$slots, "sidebar-header-img")
|
|
27811
27578
|
])) : createCommentVNode("", true),
|
|
27812
|
-
!__props.canCollapse || !__props.sidebarCollapsed ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
27579
|
+
!__props.canCollapse || !__props.sidebarCollapsed ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
27813
27580
|
renderSlot(_ctx.$slots, "sidebar-header-text")
|
|
27814
27581
|
])) : createCommentVNode("", true),
|
|
27815
27582
|
__props.canCollapse ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
@@ -27899,7 +27666,7 @@ const _sfc_main$N = {
|
|
|
27899
27666
|
const AppSliderInput = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-5e3013a5"]]);
|
|
27900
27667
|
const _hoisted_1$w = { class: "page-header" };
|
|
27901
27668
|
const _hoisted_2$n = { class: "breadcrumb-line breadcrumb-line-light header-elements-md-inline" };
|
|
27902
|
-
const _hoisted_3$
|
|
27669
|
+
const _hoisted_3$e = { class: "d-flex" };
|
|
27903
27670
|
const _hoisted_4$b = { class: "breadcrumb" };
|
|
27904
27671
|
const _hoisted_5$7 = { class: "header-elements" };
|
|
27905
27672
|
const _sfc_main$M = {
|
|
@@ -27918,7 +27685,7 @@ const _sfc_main$M = {
|
|
|
27918
27685
|
return (_ctx, _cache2) => {
|
|
27919
27686
|
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
27920
27687
|
createElementVNode("div", _hoisted_2$n, [
|
|
27921
|
-
createElementVNode("div", _hoisted_3$
|
|
27688
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
27922
27689
|
createElementVNode("div", _hoisted_4$b, [
|
|
27923
27690
|
renderSlot(_ctx.$slots, "breadcrumbs", {}, () => [
|
|
27924
27691
|
createVNode(_sfc_main$1E, {
|
|
@@ -31559,7 +31326,7 @@ const _hoisted_1$v = {
|
|
|
31559
31326
|
style: { "overflow-x": "auto", "flex-wrap": "wrap" }
|
|
31560
31327
|
};
|
|
31561
31328
|
const _hoisted_2$m = ["onClick"];
|
|
31562
|
-
const _hoisted_3$
|
|
31329
|
+
const _hoisted_3$d = { class: "flex-center-vertical mr-5" };
|
|
31563
31330
|
const _hoisted_4$a = { class: "display-flex-column" };
|
|
31564
31331
|
const _hoisted_5$6 = {
|
|
31565
31332
|
key: 1,
|
|
@@ -31607,7 +31374,7 @@ const _sfc_main$K = {
|
|
|
31607
31374
|
}, () => [
|
|
31608
31375
|
createVNode(_sfc_main$1x, { style: { "margin": "2px" } }, {
|
|
31609
31376
|
body: withCtx(() => [
|
|
31610
|
-
createElementVNode("div", _hoisted_3$
|
|
31377
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
31611
31378
|
createElementVNode("div", _hoisted_4$a, [
|
|
31612
31379
|
createElementVNode("div", null, [
|
|
31613
31380
|
currentItem.icon ? (openBlock(), createBlock(_sfc_main$1H, {
|
|
@@ -31646,7 +31413,7 @@ const _sfc_main$K = {
|
|
|
31646
31413
|
};
|
|
31647
31414
|
const _hoisted_1$u = { key: 0 };
|
|
31648
31415
|
const _hoisted_2$l = { class: "p-3" };
|
|
31649
|
-
const _hoisted_3$
|
|
31416
|
+
const _hoisted_3$c = { key: 1 };
|
|
31650
31417
|
const _hoisted_4$9 = { class: "app-table-row-filters" };
|
|
31651
31418
|
const _hoisted_5$5 = { class: "app-table-row-filters-number bg-primary flex-shrink-0" };
|
|
31652
31419
|
const _hoisted_6$4 = { class: "break-normal" };
|
|
@@ -31702,7 +31469,7 @@ const _sfc_main$J = {
|
|
|
31702
31469
|
(currentFilter == null ? void 0 : currentFilter.field) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
31703
31470
|
createElementVNode("span", null, toDisplayString(currentFilter.field) + ": ", 1),
|
|
31704
31471
|
createElementVNode("span", null, toDisplayString(currentFilter.value), 1)
|
|
31705
|
-
], 64)) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
31472
|
+
], 64)) : (openBlock(), createElementBlock("span", _hoisted_3$c, toDisplayString(currentFilter), 1))
|
|
31706
31473
|
]);
|
|
31707
31474
|
}), 128))
|
|
31708
31475
|
])
|
|
@@ -31734,7 +31501,7 @@ const _sfc_main$J = {
|
|
|
31734
31501
|
const AppTableFilterDetailedRow = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-6654229d"]]);
|
|
31735
31502
|
const _hoisted_1$t = { class: "app-table-filter-body d-flex" };
|
|
31736
31503
|
const _hoisted_2$k = { class: "flex-grow-1" };
|
|
31737
|
-
const _hoisted_3$
|
|
31504
|
+
const _hoisted_3$b = { class: "mr-5 pl-10 flex-center-vertical" };
|
|
31738
31505
|
const _hoisted_4$8 = { class: "display-flex" };
|
|
31739
31506
|
const _sfc_main$I = {
|
|
31740
31507
|
__name: "AppTableFilter",
|
|
@@ -31786,7 +31553,7 @@ const _sfc_main$I = {
|
|
|
31786
31553
|
}, null, 8, ["modelValue"])
|
|
31787
31554
|
])
|
|
31788
31555
|
]),
|
|
31789
|
-
createElementVNode("div", _hoisted_3$
|
|
31556
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
31790
31557
|
renderSlot(_ctx.$slots, "beforeButton"),
|
|
31791
31558
|
renderSlot(_ctx.$slots, "button", {}, () => [
|
|
31792
31559
|
createElementVNode("div", _hoisted_4$8, [
|
|
@@ -31830,7 +31597,7 @@ const _sfc_main$I = {
|
|
|
31830
31597
|
};
|
|
31831
31598
|
const _hoisted_1$s = { class: "table-responsive" };
|
|
31832
31599
|
const _hoisted_2$j = { class: "table table-striped app-table-rows" };
|
|
31833
|
-
const _hoisted_3$
|
|
31600
|
+
const _hoisted_3$a = {
|
|
31834
31601
|
key: 0,
|
|
31835
31602
|
class: "td-selection"
|
|
31836
31603
|
};
|
|
@@ -31888,7 +31655,7 @@ const _sfc_main$H = {
|
|
|
31888
31655
|
createElementVNode("table", _hoisted_2$j, [
|
|
31889
31656
|
createElementVNode("thead", null, [
|
|
31890
31657
|
createElementVNode("tr", null, [
|
|
31891
|
-
__props.hasSelection ? (openBlock(), createElementBlock("th", _hoisted_3$
|
|
31658
|
+
__props.hasSelection ? (openBlock(), createElementBlock("th", _hoisted_3$a)) : createCommentVNode("", true),
|
|
31892
31659
|
_ctx.$slots.actions ? (openBlock(), createElementBlock("th", _hoisted_4$7, [
|
|
31893
31660
|
renderSlot(_ctx.$slots, "actionsTitle", {}, () => [
|
|
31894
31661
|
_cache2[0] || (_cache2[0] = createTextVNode(" Acțiuni ", -1))
|
|
@@ -32502,8 +32269,9 @@ function useTable(config, emits) {
|
|
|
32502
32269
|
});
|
|
32503
32270
|
return externalContext;
|
|
32504
32271
|
}
|
|
32505
|
-
const _hoisted_1$q = { class: "
|
|
32506
|
-
const _hoisted_2$i = { class: "
|
|
32272
|
+
const _hoisted_1$q = { class: "position-relative" };
|
|
32273
|
+
const _hoisted_2$i = { class: "row" };
|
|
32274
|
+
const _hoisted_3$9 = { class: "col-lg-12" };
|
|
32507
32275
|
const _sfc_main$F = {
|
|
32508
32276
|
__name: "AppTableMagic",
|
|
32509
32277
|
props: {
|
|
@@ -32561,7 +32329,7 @@ const _sfc_main$F = {
|
|
|
32561
32329
|
}
|
|
32562
32330
|
};
|
|
32563
32331
|
let useTableContext = useTable({ ...props2, onEvent });
|
|
32564
|
-
let { tableData, displayFilters, shouldShowFilterReset } = useTableContext;
|
|
32332
|
+
let { tableData, displayFilters, shouldShowFilterReset, isLoading: isLoading2 } = useTableContext;
|
|
32565
32333
|
let getCombinedContext = () => {
|
|
32566
32334
|
return {
|
|
32567
32335
|
...appTableContext,
|
|
@@ -32602,9 +32370,10 @@ const _sfc_main$F = {
|
|
|
32602
32370
|
});
|
|
32603
32371
|
return (_ctx, _cache2) => {
|
|
32604
32372
|
const _component_app_button_group = resolveComponent("app-button-group");
|
|
32605
|
-
return openBlock(), createElementBlock("div",
|
|
32373
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
32374
|
+
unref(isLoading2) ? (openBlock(), createBlock(_sfc_main$1j, { key: 0 })) : createCommentVNode("", true),
|
|
32606
32375
|
__props.showTableFilter ? (openBlock(), createBlock(_sfc_main$I, {
|
|
32607
|
-
key:
|
|
32376
|
+
key: 1,
|
|
32608
32377
|
selectedFilters: unref(displayFilters),
|
|
32609
32378
|
onOnFilterReset: unref(useTableContext).onFilterReset,
|
|
32610
32379
|
onOnFilterSet: unref(useTableContext).onFilterSet,
|
|
@@ -32637,8 +32406,8 @@ const _sfc_main$F = {
|
|
|
32637
32406
|
} : void 0
|
|
32638
32407
|
]), 1032, ["selectedFilters", "onOnFilterReset", "onOnFilterSet", "onOnSearchFilterSet"])) : createCommentVNode("", true),
|
|
32639
32408
|
renderSlot(_ctx.$slots, "beforeTable"),
|
|
32640
|
-
createElementVNode("div",
|
|
32641
|
-
createElementVNode("div",
|
|
32409
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
32410
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
32642
32411
|
createVNode(_sfc_main$G, {
|
|
32643
32412
|
ref_key: "appTable",
|
|
32644
32413
|
ref: appTable,
|
|
@@ -85026,9 +84795,13 @@ function useFormValidation(config) {
|
|
|
85026
84795
|
element == null ? void 0 : element.scrollIntoView({ behavior: "smooth" });
|
|
85027
84796
|
};
|
|
85028
84797
|
const isFieldRequired2 = (fieldName) => {
|
|
85029
|
-
var _a3
|
|
85030
|
-
|
|
85031
|
-
|
|
84798
|
+
var _a3;
|
|
84799
|
+
try {
|
|
84800
|
+
const fieldSchema = reach(toValue$2(schema), fieldName);
|
|
84801
|
+
return ((_a3 = fieldSchema == null ? void 0 : fieldSchema.spec) == null ? void 0 : _a3.optional) === false;
|
|
84802
|
+
} catch {
|
|
84803
|
+
return false;
|
|
84804
|
+
}
|
|
85032
84805
|
};
|
|
85033
84806
|
const externalContext = {
|
|
85034
84807
|
errors,
|
|
@@ -85496,27 +85269,155 @@ const getComponentType = (node) => {
|
|
|
85496
85269
|
return node.component;
|
|
85497
85270
|
}
|
|
85498
85271
|
};
|
|
85499
|
-
const
|
|
85500
|
-
if (!
|
|
85501
|
-
|
|
85502
|
-
|
|
85503
|
-
|
|
85504
|
-
|
|
85505
|
-
|
|
85506
|
-
|
|
85272
|
+
const parseRuleString = (ruleString) => {
|
|
85273
|
+
if (!ruleString || typeof ruleString !== "string") return [];
|
|
85274
|
+
return ruleString.split("|").map((rule) => {
|
|
85275
|
+
const [name, ...rest] = rule.split(":");
|
|
85276
|
+
const params = rest.join(":");
|
|
85277
|
+
return { name: name.trim(), params: params || null };
|
|
85278
|
+
});
|
|
85279
|
+
};
|
|
85280
|
+
const buildFieldValidator = (rules) => {
|
|
85281
|
+
const typeRule = rules.find(
|
|
85282
|
+
(r) => ["string", "number", "integer", "boolean", "array", "mixed"].includes(r.name)
|
|
85283
|
+
);
|
|
85284
|
+
const typeName = (typeRule == null ? void 0 : typeRule.name) || "mixed";
|
|
85285
|
+
let validator2;
|
|
85286
|
+
switch (typeName) {
|
|
85287
|
+
case "string":
|
|
85288
|
+
validator2 = create$6();
|
|
85289
|
+
break;
|
|
85290
|
+
case "number":
|
|
85291
|
+
validator2 = create$5();
|
|
85292
|
+
break;
|
|
85293
|
+
case "integer":
|
|
85294
|
+
validator2 = create$5().integer();
|
|
85295
|
+
break;
|
|
85296
|
+
case "boolean":
|
|
85297
|
+
validator2 = create$7();
|
|
85298
|
+
break;
|
|
85299
|
+
case "array":
|
|
85300
|
+
validator2 = create$2();
|
|
85301
|
+
break;
|
|
85302
|
+
default:
|
|
85303
|
+
validator2 = create$8();
|
|
85304
|
+
}
|
|
85305
|
+
for (const rule of rules) {
|
|
85306
|
+
switch (rule.name) {
|
|
85307
|
+
// Type rules already handled above
|
|
85308
|
+
case "string":
|
|
85309
|
+
case "number":
|
|
85310
|
+
case "integer":
|
|
85311
|
+
case "boolean":
|
|
85312
|
+
case "array":
|
|
85313
|
+
case "mixed":
|
|
85314
|
+
break;
|
|
85315
|
+
case "required":
|
|
85316
|
+
validator2 = validator2.required();
|
|
85317
|
+
break;
|
|
85318
|
+
case "nullable":
|
|
85319
|
+
validator2 = validator2.nullable();
|
|
85320
|
+
break;
|
|
85321
|
+
case "email":
|
|
85322
|
+
validator2 = validator2.email();
|
|
85323
|
+
break;
|
|
85324
|
+
case "url":
|
|
85325
|
+
validator2 = validator2.url();
|
|
85326
|
+
break;
|
|
85327
|
+
case "min":
|
|
85328
|
+
validator2 = validator2.min(Number(rule.params));
|
|
85329
|
+
break;
|
|
85330
|
+
case "max":
|
|
85331
|
+
validator2 = validator2.max(Number(rule.params));
|
|
85332
|
+
break;
|
|
85333
|
+
case "between": {
|
|
85334
|
+
const [min2, max2] = rule.params.split(",").map(Number);
|
|
85335
|
+
validator2 = validator2.min(min2).max(max2);
|
|
85336
|
+
break;
|
|
85337
|
+
}
|
|
85338
|
+
case "in": {
|
|
85339
|
+
const allowed = rule.params.split(",").map((v) => v.trim());
|
|
85340
|
+
validator2 = validator2.oneOf(allowed);
|
|
85341
|
+
break;
|
|
85342
|
+
}
|
|
85343
|
+
case "not_in": {
|
|
85344
|
+
const disallowed = rule.params.split(",").map((v) => v.trim());
|
|
85345
|
+
validator2 = validator2.notOneOf(disallowed);
|
|
85346
|
+
break;
|
|
85347
|
+
}
|
|
85348
|
+
case "regex": {
|
|
85349
|
+
const match2 = rule.params.match(/^\/(.+)\/([gimsuy]*)$/);
|
|
85350
|
+
if (match2) {
|
|
85351
|
+
validator2 = validator2.matches(new RegExp(match2[1], match2[2]));
|
|
85352
|
+
}
|
|
85353
|
+
break;
|
|
85354
|
+
}
|
|
85355
|
+
default:
|
|
85356
|
+
console.warn(`[buildYupSchema] Unknown validation rule: "${rule.name}"`);
|
|
85507
85357
|
}
|
|
85508
|
-
|
|
85509
|
-
|
|
85358
|
+
}
|
|
85359
|
+
return validator2;
|
|
85360
|
+
};
|
|
85361
|
+
const setNestedShape = (rootShape, path, validator2) => {
|
|
85362
|
+
const segments = path.split(".");
|
|
85363
|
+
let current = rootShape;
|
|
85364
|
+
for (let i2 = 0; i2 < segments.length - 1; i2++) {
|
|
85365
|
+
const seg = segments[i2];
|
|
85366
|
+
const nextSeg = segments[i2 + 1];
|
|
85367
|
+
if (nextSeg === "*") {
|
|
85368
|
+
const remainingPath = segments.slice(i2 + 2).join(".");
|
|
85369
|
+
if (!current[seg]) {
|
|
85370
|
+
current[seg] = { __type: "array", __shape: {} };
|
|
85371
|
+
}
|
|
85372
|
+
if (remainingPath) {
|
|
85373
|
+
setNestedShape(current[seg].__shape, remainingPath, validator2);
|
|
85374
|
+
} else {
|
|
85375
|
+
current[seg].__itemValidator = validator2;
|
|
85376
|
+
}
|
|
85377
|
+
return;
|
|
85378
|
+
}
|
|
85379
|
+
if (seg === "*") {
|
|
85380
|
+
continue;
|
|
85510
85381
|
}
|
|
85511
|
-
if (
|
|
85512
|
-
|
|
85382
|
+
if (!current[seg]) {
|
|
85383
|
+
current[seg] = { __type: "object", __shape: {} };
|
|
85513
85384
|
}
|
|
85514
|
-
|
|
85515
|
-
|
|
85385
|
+
current = current[seg].__shape;
|
|
85386
|
+
}
|
|
85387
|
+
const lastSeg = segments[segments.length - 1];
|
|
85388
|
+
if (lastSeg !== "*") {
|
|
85389
|
+
current[lastSeg] = validator2;
|
|
85390
|
+
}
|
|
85391
|
+
};
|
|
85392
|
+
const buildShapeToYup = (shape) => {
|
|
85393
|
+
const yupShape = {};
|
|
85394
|
+
for (const [key, value] of Object.entries(shape)) {
|
|
85395
|
+
if (value && value.__type === "array") {
|
|
85396
|
+
const innerShape = buildShapeToYup(value.__shape);
|
|
85397
|
+
yupShape[key] = value.__itemValidator ? create$2().of(value.__itemValidator) : create$2().of(create$3().shape(innerShape));
|
|
85398
|
+
} else if (value && value.__type === "object") {
|
|
85399
|
+
const innerShape = buildShapeToYup(value.__shape);
|
|
85400
|
+
yupShape[key] = create$3().shape(innerShape);
|
|
85401
|
+
} else {
|
|
85402
|
+
yupShape[key] = value;
|
|
85403
|
+
}
|
|
85404
|
+
}
|
|
85405
|
+
return yupShape;
|
|
85406
|
+
};
|
|
85407
|
+
const buildYupSchema = (validationConfig) => {
|
|
85408
|
+
if (!validationConfig) return create$3();
|
|
85409
|
+
const intermediateShape = {};
|
|
85410
|
+
for (const [field, ruleString] of Object.entries(validationConfig)) {
|
|
85411
|
+
const rules = parseRuleString(ruleString);
|
|
85412
|
+
const validator2 = buildFieldValidator(rules);
|
|
85413
|
+
if (field.includes(".")) {
|
|
85414
|
+
setNestedShape(intermediateShape, field, validator2);
|
|
85415
|
+
} else {
|
|
85416
|
+
intermediateShape[field] = validator2;
|
|
85516
85417
|
}
|
|
85517
|
-
shape[field] = validator2;
|
|
85518
85418
|
}
|
|
85519
|
-
|
|
85419
|
+
const yupShape = buildShapeToYup(intermediateShape);
|
|
85420
|
+
return create$3().shape(yupShape);
|
|
85520
85421
|
};
|
|
85521
85422
|
const evaluateVisibilityRules = (visibilityRules, item, formContext) => {
|
|
85522
85423
|
if (!Array.isArray(visibilityRules) || !formContext) return;
|
|
@@ -85646,7 +85547,8 @@ const _sfc_main = {
|
|
|
85646
85547
|
const modelValue = useModel(__props, "modelValue");
|
|
85647
85548
|
const props2 = __props;
|
|
85648
85549
|
const emits = __emit;
|
|
85649
|
-
const yupSchema = buildYupSchema(props2.schema.validation);
|
|
85550
|
+
const yupSchema = computed(() => buildYupSchema(props2.schema.validation));
|
|
85551
|
+
console.log("yup schema!");
|
|
85650
85552
|
const form = useForm({ schema: yupSchema }, emits);
|
|
85651
85553
|
const { formName, item } = form;
|
|
85652
85554
|
provide("formContext", form);
|