@stsdti/funky-ui-kit 1.3.1 → 1.3.2

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.
@@ -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, _promise, _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, vModelText, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, toRef as toRef$1, readonly, customRef, vShow, nextTick, h, useTemplateRef, Transition, createApp, isRef, vModelDynamic, provide, TransitionGroup, defineComponent, shallowRef, onUnmounted, isVNode, Teleport, render as render$2, toValue as toValue$2, onBeforeUpdate, watchEffect } 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, vModelText, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, toRef as toRef$1, readonly, customRef, vShow, nextTick, h, useTemplateRef, Transition, render as render$2, isRef, vModelDynamic, provide, TransitionGroup, defineComponent, shallowRef, onUnmounted, isVNode, createApp, Teleport, 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 = [
@@ -9292,8 +9292,8 @@ const _sfc_main$1I = {
9292
9292
  return false;
9293
9293
  }
9294
9294
  const instance = getCurrentInstance();
9295
- const app = instance == null ? void 0 : instance.appContext.app;
9296
- return !!app.component(props2.value);
9295
+ const app2 = instance == null ? void 0 : instance.appContext.app;
9296
+ return !!app2.component(props2.value);
9297
9297
  });
9298
9298
  const is = computed(() => {
9299
9299
  if (isComponentInstance2.value) {
@@ -16807,6 +16807,27 @@ const _sfc_main$1o = {
16807
16807
  };
16808
16808
  }
16809
16809
  };
16810
+ class Media {
16811
+ static get type() {
16812
+ return {
16813
+ mediable: "mediable",
16814
+ spatieMediable: "spatie"
16815
+ };
16816
+ }
16817
+ static getTag(media, type = mediaType) {
16818
+ let path = type === this.type.mediable ? "pivot.tag" : "custom_properties.tag";
16819
+ return lodashExports.get(media, path);
16820
+ }
16821
+ }
16822
+ let router = null;
16823
+ const getRouter = () => router;
16824
+ const getRoute = () => lodashExports.get(router, "currentRoute.value");
16825
+ const setRouter = (value) => router = value;
16826
+ let app = null;
16827
+ const getApp = () => app;
16828
+ const setApp = (value) => app = value;
16829
+ let mediaType = Media.type.spatieMediable;
16830
+ const setMediaType = (value) => mediaType = value;
16810
16831
  const _hoisted_1$10 = {
16811
16832
  "aria-modal": "true",
16812
16833
  class: "modal fade show display-block",
@@ -17003,16 +17024,11 @@ const _sfc_main$1m = {
17003
17024
  resolve: {
17004
17025
  type: Function,
17005
17026
  required: true
17006
- },
17007
- destroy: {
17008
- type: Function,
17009
- required: true
17010
17027
  }
17011
17028
  },
17012
17029
  setup(__props) {
17013
17030
  const props2 = __props;
17014
17031
  const isVisible = ref(false);
17015
- let isResolved = false;
17016
17032
  const iconMap = {
17017
17033
  warning: IconAlertTriangle,
17018
17034
  info: IconInfoCircle
@@ -17042,15 +17058,8 @@ const _sfc_main$1m = {
17042
17058
  isVisible.value = true;
17043
17059
  });
17044
17060
  function close2(result) {
17045
- if (isResolved) {
17046
- return;
17047
- }
17048
- isResolved = true;
17049
17061
  isVisible.value = false;
17050
17062
  props2.resolve(result);
17051
- setTimeout(() => {
17052
- props2.destroy();
17053
- }, 300);
17054
17063
  }
17055
17064
  function onConfirm() {
17056
17065
  close2({ value: true });
@@ -17169,19 +17178,21 @@ class UIUtils {
17169
17178
  return new Promise((resolve) => {
17170
17179
  const container = document.createElement("div");
17171
17180
  document.body.appendChild(container);
17172
- let app = null;
17173
- const destroy2 = () => {
17174
- if (app) {
17175
- app.unmount();
17176
- }
17177
- container.remove();
17181
+ const cleanup = () => {
17182
+ setTimeout(() => {
17183
+ render$2(null, container);
17184
+ container.remove();
17185
+ }, 300);
17178
17186
  };
17179
- app = createApp(_sfc_main$1m, {
17187
+ const vNode = h(_sfc_main$1m, {
17180
17188
  ...options,
17181
- resolve,
17182
- destroy: destroy2
17189
+ resolve: (value) => {
17190
+ resolve(value);
17191
+ cleanup();
17192
+ }
17183
17193
  });
17184
- app.mount(container);
17194
+ vNode.appContext = getApp()._context;
17195
+ render$2(vNode, container);
17185
17196
  });
17186
17197
  }
17187
17198
  static closeToasts() {
@@ -28513,11 +28524,11 @@ const directive = {
28513
28524
  }
28514
28525
  };
28515
28526
  const plugin$1 = {
28516
- install(app, options = {}) {
28527
+ install(app2, options = {}) {
28517
28528
  tippy.setDefaultProps(options.defaultProps || {});
28518
- app.directive(options.directive || "tippy", directive);
28519
- app.component(options.component || "tippy", TippyComponent);
28520
- app.component(options.componentSingleton || "tippy-singleton", TippySingleton);
28529
+ app2.directive(options.directive || "tippy", directive);
28530
+ app2.component(options.component || "tippy", TippyComponent);
28531
+ app2.component(options.componentSingleton || "tippy-singleton", TippySingleton);
28521
28532
  }
28522
28533
  };
28523
28534
  const setDefaultProps$1 = tippy.setDefaultProps;
@@ -29225,24 +29236,6 @@ const urlToBooleanOption = (value) => {
29225
29236
  }
29226
29237
  return null;
29227
29238
  };
29228
- class Media {
29229
- static get type() {
29230
- return {
29231
- mediable: "mediable",
29232
- spatieMediable: "spatie"
29233
- };
29234
- }
29235
- static getTag(media, type = mediaType) {
29236
- let path = type === this.type.mediable ? "pivot.tag" : "custom_properties.tag";
29237
- return lodashExports.get(media, path);
29238
- }
29239
- }
29240
- let router = null;
29241
- let mediaType = Media.type.spatieMediable;
29242
- const getRouter = () => router;
29243
- const getRoute = () => lodashExports.get(router, "currentRoute.value");
29244
- const setRouter = (value) => router = value;
29245
- const setMediaType = (value) => mediaType = value;
29246
29239
  function useTableFilters(tableFilters, emits) {
29247
29240
  const migrateFilterDefinition = (filterDefinition) => {
29248
29241
  if ("computed" in filterDefinition) {
@@ -83039,6 +83032,7 @@ const plugin = {
83039
83032
  }
83040
83033
  Vue.use(ToastPlugin);
83041
83034
  Vue.directive("horizontal-scroll", vHorizontalScroll);
83035
+ setApp(config == null ? void 0 : config.app);
83042
83036
  setRouter(config == null ? void 0 : config.router);
83043
83037
  (config == null ? void 0 : config.mediaType) ? setMediaType(config.mediaType) : null;
83044
83038
  }