@vc-shell/framework 1.1.74 → 1.1.76
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/CHANGELOG.md +13 -0
- package/dist/framework.js +4682 -4500
- package/dist/index.css +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
- package/dist/shared/components/change-password/change-password.vue.d.ts.map +1 -1
- package/dist/shared/components/change-password-button/change-password-button.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-info.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts.map +1 -1
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/DraggableDashboard.vue.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/_internal/DashboardWidget.vue.d.ts.map +1 -1
- package/dist/shared/components/generic-dropdown/generic-dropdown.vue.d.ts +2 -2
- package/dist/shared/components/generic-dropdown/generic-dropdown.vue.d.ts.map +1 -1
- package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/logout-button/logout-button.vue.d.ts.map +1 -1
- package/dist/shared/components/multilanguage-selector/multilanguage-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-template/notification-template.vue.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -1
- package/dist/shared/components/settings-menu/settings-menu.vue.d.ts.map +1 -1
- package/dist/shared/components/settings-menu-item/settings-menu-item.vue.d.ts.map +1 -1
- package/dist/shared/components/sidebar/sidebar.vue.d.ts.map +1 -1
- package/dist/shared/components/sign-in/external-provider.vue.d.ts.map +1 -1
- package/dist/shared/components/sign-in/external-providers.vue.d.ts.map +1 -1
- package/dist/shared/components/theme-selector/theme-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/_internal/user-info.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/_internal/user-sidebar.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/composables/useMenuExpanded.d.ts +1 -1
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/shared/pages/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-banner/vc-banner.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon-examples.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon-test.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-svg-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/_internal/extensions/font-size.d.ts +12 -0
- package/dist/ui/components/molecules/vc-editor/_internal/extensions/font-size.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/_internal/toolbar-types.d.ts +49 -0
- package/dist/ui/components/molecules/vc-editor/_internal/toolbar-types.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-custom-button.vue.d.ts +10 -0
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-custom-button.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-font-selector.vue.d.ts +8 -0
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-font-selector.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts +4 -1
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +7 -3
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +7 -8
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-switch/vc-switch.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarContent.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarMobileActions.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarOverlay.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarOverlay.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarSlots.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetsMenu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/desktop/vc-blade-toolbar-desktop.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/mobile/vc-blade-toolbar-mobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/vc-blade-toolbar-buttons.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-desktop.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/vc-widget-container.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-add-new/vc-table-add-new.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts +25 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts +25 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-select-all-header/vc-table-select-all-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts +31 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-footer/vc-table-footer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-select-all/vc-table-select-all.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +28 -3
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/dist/vendor-floating-ui-vue-C1Zscv9o.js +836 -0
- package/dist/{vendor-linkifyjs-DTu7SY_Y.js → vendor-linkifyjs-dCH9UYes.js} +183 -187
- package/dist/{vendor-prosemirror-commands-B8fhFbTo.js → vendor-prosemirror-commands-DKHyfRYE.js} +26 -26
- package/dist/{vendor-prosemirror-dropcursor-CdHQ9kQG.js → vendor-prosemirror-dropcursor-Dro-INCI.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-W-ky5QTm.js → vendor-prosemirror-gapcursor-BgyglWtH.js} +3 -3
- package/dist/{vendor-prosemirror-history-CrtTR5Cd.js → vendor-prosemirror-history-B4ei16kP.js} +2 -2
- package/dist/{vendor-prosemirror-keymap-DWvoDWf6.js → vendor-prosemirror-keymap-21y6bXc_.js} +1 -1
- package/dist/{vendor-prosemirror-schema-list-Ds6x_KLX.js → vendor-prosemirror-schema-list-Dmi4oPas.js} +11 -11
- package/dist/{vendor-prosemirror-state-CRUasa1V.js → vendor-prosemirror-state-6jGEPgrP.js} +1 -1
- package/dist/{vendor-prosemirror-tables-DzTfCeHX.js → vendor-prosemirror-tables-U7ypaxJu.js} +4 -4
- package/dist/{vendor-prosemirror-transform-BeDaI3CS.js → vendor-prosemirror-transform-Dk6c_eg4.js} +5 -4
- package/dist/vendor-prosemirror-view-Bfe9EVLy.js +1489 -0
- package/dist/vendor-swiper-1bp0oJwt.js +3387 -0
- package/dist/vendor-tiptap-core-CtNT-ozM.js +3096 -0
- package/dist/{vendor-tiptap-extension-blockquote-iAIM-meW.js → vendor-tiptap-extension-blockquote-25QerT8O.js} +6 -8
- package/dist/{vendor-tiptap-extension-bold-bkOLNH6E.js → vendor-tiptap-extension-bold-B-B75KIy.js} +10 -10
- package/dist/{vendor-tiptap-extension-code-CgIql8q6.js → vendor-tiptap-extension-code-CEZA5x7I.js} +8 -10
- package/dist/vendor-tiptap-extension-code-block-BFDiCj59.js +192 -0
- package/dist/vendor-tiptap-extension-document-C8JdW_kC.js +9 -0
- package/dist/{vendor-tiptap-extension-hard-break-DygHhzqw.js → vendor-tiptap-extension-hard-break-D9Nzegu6.js} +4 -6
- package/dist/{vendor-tiptap-extension-heading-C-ArDc3_.js → vendor-tiptap-extension-heading-TmkrHpE2.js} +9 -6
- package/dist/vendor-tiptap-extension-horizontal-rule-BC1YMUau.js +53 -0
- package/dist/{vendor-tiptap-extension-image-DChcWb4v.js → vendor-tiptap-extension-image-BQnBpg7z.js} +9 -3
- package/dist/{vendor-tiptap-extension-italic-BNJrFvrR.js → vendor-tiptap-extension-italic-mSCwLnXY.js} +4 -4
- package/dist/vendor-tiptap-extension-link-CQ0Mw6gd.js +287 -0
- package/dist/vendor-tiptap-extension-list-BwidYizT.js +420 -0
- package/dist/{vendor-tiptap-extension-paragraph-DZfkaJJ-.js → vendor-tiptap-extension-paragraph-C_OQHUNe.js} +3 -5
- package/dist/vendor-tiptap-extension-placeholder-BIojfRhh.js +1 -0
- package/dist/{vendor-tiptap-extension-strike-BlGNozxy.js → vendor-tiptap-extension-strike-Bfc-eud8.js} +3 -3
- package/dist/vendor-tiptap-extension-table-D26aUVrb.js +302 -0
- package/dist/vendor-tiptap-extension-table-cell-DuWy52BP.js +1 -0
- package/dist/vendor-tiptap-extension-table-header-DuWy52BP.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-DuWy52BP.js +1 -0
- package/dist/vendor-tiptap-extension-text-DrXC1h34.js +8 -0
- package/dist/vendor-tiptap-extension-text-style-vv6u__7g.js +230 -0
- package/dist/{vendor-tiptap-extension-underline-CIVtuRLl.js → vendor-tiptap-extension-underline-BfygI164.js} +2 -2
- package/dist/vendor-tiptap-extensions-_4zopegS.js +289 -0
- package/dist/{vendor-tiptap-markdown-CidDIpZ-.js → vendor-tiptap-markdown-pGf8MOss.js} +26 -26
- package/dist/vendor-tiptap-pm-B2DY8bDS.js +7681 -0
- package/dist/vendor-tiptap-starter-kit-DPG4_B0q.js +28 -0
- package/dist/vendor-tiptap-vue-3-Ctgrxv1U.js +157 -0
- package/dist/vendor-vueuse-components-CuLo31bP.js +219 -0
- package/dist/vendor-vueuse-core-A9T6NeUn.js +6880 -0
- package/dist/vendor-vueuse-shared-B2Uva3Md.js +35 -0
- package/package.json +33 -27
- package/ui/components/molecules/vc-editor/_internal/extensions/font-size.ts +59 -0
- package/ui/components/molecules/vc-editor/_internal/toolbar-types.ts +57 -0
- package/ui/components/molecules/vc-editor/_internal/vc-editor-custom-button.vue +79 -0
- package/ui/components/molecules/vc-editor/_internal/vc-editor-font-selector.vue +215 -0
- package/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue +42 -0
- package/ui/components/molecules/vc-editor/index.ts +5 -0
- package/ui/components/molecules/vc-editor/vc-editor.stories.ts +172 -3
- package/ui/components/molecules/vc-editor/vc-editor.vue +49 -26
- package/ui/components/molecules/vc-slider/vc-slider.vue +8 -8
- package/dist/vendor-dom7-wvIUV9pT.js +0 -529
- package/dist/vendor-floating-ui-core-3dy7r5mx.js +0 -349
- package/dist/vendor-floating-ui-dom-DCjH_QK4.js +0 -393
- package/dist/vendor-floating-ui-vue-BUBCqiRN.js +0 -107
- package/dist/vendor-popperjs-core-LGjf7Wza.js +0 -905
- package/dist/vendor-prosemirror-view-BGYdOWiJ.js +0 -3748
- package/dist/vendor-ssr-window-D4k3p53c.js +0 -133
- package/dist/vendor-swiper-DrZzJvo8.js +0 -2825
- package/dist/vendor-tippy-js-nNhcw_JH.js +0 -812
- package/dist/vendor-tiptap-core-dlTW4S11.js +0 -2817
- package/dist/vendor-tiptap-extension-bubble-menu-BRWVLpun.js +0 -128
- package/dist/vendor-tiptap-extension-bullet-list-DfU428XB.js +0 -53
- package/dist/vendor-tiptap-extension-code-block-V26-erQk.js +0 -133
- package/dist/vendor-tiptap-extension-document-BYF_BzDD.js +0 -9
- package/dist/vendor-tiptap-extension-dropcursor-DqjaaFex.js +0 -20
- package/dist/vendor-tiptap-extension-floating-menu-vptdm_Y0.js +0 -99
- package/dist/vendor-tiptap-extension-gapcursor-DxLBw8V0.js +0 -24
- package/dist/vendor-tiptap-extension-history-C41RW3Bv.js +0 -35
- package/dist/vendor-tiptap-extension-horizontal-rule-BGMGd9fo.js +0 -58
- package/dist/vendor-tiptap-extension-link-DFN4ENph.js +0 -270
- package/dist/vendor-tiptap-extension-list-item-3qKYhGHe.js +0 -33
- package/dist/vendor-tiptap-extension-ordered-list-D3QL0eiW.js +0 -71
- package/dist/vendor-tiptap-extension-placeholder-CoOAmd0a.js +0 -52
- package/dist/vendor-tiptap-extension-table-CZn6Xykb.js +0 -213
- package/dist/vendor-tiptap-extension-table-cell-BQuS-XFD.js +0 -40
- package/dist/vendor-tiptap-extension-table-header-ZrtK7HiQ.js +0 -40
- package/dist/vendor-tiptap-extension-table-row-CBrXvqsO.js +0 -22
- package/dist/vendor-tiptap-extension-text-DwA7jrBq.js +0 -8
- package/dist/vendor-tiptap-pm-9TOy65Oe.js +0 -1
- package/dist/vendor-tiptap-starter-kit-BdU6UtqB.js +0 -29
- package/dist/vendor-tiptap-vue-3-CnYccgV4.js +0 -225
- package/dist/vendor-vueuse-components-B0zqjNRW.js +0 -542
- package/dist/vendor-vueuse-core-CYgwn-B2.js +0 -5130
- package/dist/vendor-vueuse-shared-B_uDJJ6V.js +0 -1169
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { E as e } from "./vendor-tiptap-core-CtNT-ozM.js";
|
|
2
|
+
import { B as n } from "./vendor-tiptap-extension-blockquote-25QerT8O.js";
|
|
3
|
+
import { B as p } from "./vendor-tiptap-extension-bold-B-B75KIy.js";
|
|
4
|
+
import { C as a } from "./vendor-tiptap-extension-code-CEZA5x7I.js";
|
|
5
|
+
import { C as f } from "./vendor-tiptap-extension-code-block-BFDiCj59.js";
|
|
6
|
+
import { D as h } from "./vendor-tiptap-extension-document-C8JdW_kC.js";
|
|
7
|
+
import { H as u } from "./vendor-tiptap-extension-hard-break-D9Nzegu6.js";
|
|
8
|
+
import { H as l } from "./vendor-tiptap-extension-heading-TmkrHpE2.js";
|
|
9
|
+
import { H as c } from "./vendor-tiptap-extension-horizontal-rule-BC1YMUau.js";
|
|
10
|
+
import { I as d } from "./vendor-tiptap-extension-italic-mSCwLnXY.js";
|
|
11
|
+
import { L as m } from "./vendor-tiptap-extension-link-CQ0Mw6gd.js";
|
|
12
|
+
import { B as g, L as k, a as B, O as L } from "./vendor-tiptap-extension-list-BwidYizT.js";
|
|
13
|
+
import { P as b } from "./vendor-tiptap-extension-paragraph-C_OQHUNe.js";
|
|
14
|
+
import { S as x } from "./vendor-tiptap-extension-strike-Bfc-eud8.js";
|
|
15
|
+
import { T as v } from "./vendor-tiptap-extension-text-DrXC1h34.js";
|
|
16
|
+
import { U as H } from "./vendor-tiptap-extension-underline-BfygI164.js";
|
|
17
|
+
import { D as R, G as I, U as K, T as C } from "./vendor-tiptap-extensions-_4zopegS.js";
|
|
18
|
+
var J = e.create({
|
|
19
|
+
name: "starterKit",
|
|
20
|
+
addExtensions() {
|
|
21
|
+
var i, s, t, r;
|
|
22
|
+
const o = [];
|
|
23
|
+
return this.options.bold !== !1 && o.push(p.configure(this.options.bold)), this.options.blockquote !== !1 && o.push(n.configure(this.options.blockquote)), this.options.bulletList !== !1 && o.push(g.configure(this.options.bulletList)), this.options.code !== !1 && o.push(a.configure(this.options.code)), this.options.codeBlock !== !1 && o.push(f.configure(this.options.codeBlock)), this.options.document !== !1 && o.push(h.configure(this.options.document)), this.options.dropcursor !== !1 && o.push(R.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && o.push(I.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && o.push(u.configure(this.options.hardBreak)), this.options.heading !== !1 && o.push(l.configure(this.options.heading)), this.options.undoRedo !== !1 && o.push(K.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && o.push(c.configure(this.options.horizontalRule)), this.options.italic !== !1 && o.push(d.configure(this.options.italic)), this.options.listItem !== !1 && o.push(k.configure(this.options.listItem)), this.options.listKeymap !== !1 && o.push(B.configure((i = this.options) == null ? void 0 : i.listKeymap)), this.options.link !== !1 && o.push(m.configure((s = this.options) == null ? void 0 : s.link)), this.options.orderedList !== !1 && o.push(L.configure(this.options.orderedList)), this.options.paragraph !== !1 && o.push(b.configure(this.options.paragraph)), this.options.strike !== !1 && o.push(x.configure(this.options.strike)), this.options.text !== !1 && o.push(v.configure(this.options.text)), this.options.underline !== !1 && o.push(H.configure((t = this.options) == null ? void 0 : t.underline)), this.options.trailingNode !== !1 && o.push(C.configure((r = this.options) == null ? void 0 : r.trailingNode)), o;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
J as S
|
|
28
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { z as c } from "./vendor-tiptap-core-CtNT-ozM.js";
|
|
2
|
+
import { defineComponent as a, shallowRef as p, onMounted as v, onBeforeUnmount as u, h as s, ref as h, getCurrentInstance as f, watchEffect as g, nextTick as m, unref as S, markRaw as w, customRef as C } from "vue";
|
|
3
|
+
function l(t) {
|
|
4
|
+
return C((e, r) => ({
|
|
5
|
+
get() {
|
|
6
|
+
return e(), t;
|
|
7
|
+
},
|
|
8
|
+
set(n) {
|
|
9
|
+
t = n, requestAnimationFrame(() => {
|
|
10
|
+
requestAnimationFrame(() => {
|
|
11
|
+
r();
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}));
|
|
16
|
+
}
|
|
17
|
+
var x = class extends c {
|
|
18
|
+
constructor(t = {}) {
|
|
19
|
+
return super(t), this.contentComponent = null, this.appContext = null, this.reactiveState = l(this.view.state), this.reactiveExtensionStorage = l(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
|
|
20
|
+
this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
21
|
+
}), w(this);
|
|
22
|
+
}
|
|
23
|
+
get state() {
|
|
24
|
+
return this.reactiveState ? this.reactiveState.value : this.view.state;
|
|
25
|
+
}
|
|
26
|
+
get storage() {
|
|
27
|
+
return this.reactiveExtensionStorage ? this.reactiveExtensionStorage.value : super.storage;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Register a ProseMirror plugin.
|
|
31
|
+
*/
|
|
32
|
+
registerPlugin(t, e) {
|
|
33
|
+
const r = super.registerPlugin(t, e);
|
|
34
|
+
return this.reactiveState && (this.reactiveState.value = r), r;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Unregister a ProseMirror plugin.
|
|
38
|
+
*/
|
|
39
|
+
unregisterPlugin(t) {
|
|
40
|
+
const e = super.unregisterPlugin(t);
|
|
41
|
+
return this.reactiveState && e && (this.reactiveState.value = e), e;
|
|
42
|
+
}
|
|
43
|
+
}, _ = a({
|
|
44
|
+
name: "EditorContent",
|
|
45
|
+
props: {
|
|
46
|
+
editor: {
|
|
47
|
+
default: null,
|
|
48
|
+
type: Object
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
setup(t) {
|
|
52
|
+
const e = h(), r = f();
|
|
53
|
+
return g(() => {
|
|
54
|
+
const n = t.editor;
|
|
55
|
+
n && n.options.element && e.value && m(() => {
|
|
56
|
+
var o;
|
|
57
|
+
if (!e.value || !((o = n.options.element) != null && o.firstChild))
|
|
58
|
+
return;
|
|
59
|
+
const i = S(e.value);
|
|
60
|
+
e.value.append(...n.options.element.childNodes), n.contentComponent = r.ctx._, r && (n.appContext = {
|
|
61
|
+
...r.appContext,
|
|
62
|
+
// Vue internally uses prototype chain to forward/shadow injects across the entire component chain
|
|
63
|
+
// so don't use object spread operator or 'Object.assign' and just set `provides` as is on editor's appContext
|
|
64
|
+
// @ts-expect-error forward instance's 'provides' into appContext
|
|
65
|
+
provides: r.provides
|
|
66
|
+
}), n.setOptions({
|
|
67
|
+
element: i
|
|
68
|
+
}), n.createNodeViews();
|
|
69
|
+
});
|
|
70
|
+
}), u(() => {
|
|
71
|
+
const n = t.editor;
|
|
72
|
+
n && (n.contentComponent = null, n.appContext = null);
|
|
73
|
+
}), { rootEl: e };
|
|
74
|
+
},
|
|
75
|
+
render() {
|
|
76
|
+
return s("div", {
|
|
77
|
+
ref: (t) => {
|
|
78
|
+
this.rootEl = t;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
a({
|
|
84
|
+
name: "NodeViewContent",
|
|
85
|
+
props: {
|
|
86
|
+
as: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: "div"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
render() {
|
|
92
|
+
return s(this.as, {
|
|
93
|
+
style: {
|
|
94
|
+
whiteSpace: "pre-wrap"
|
|
95
|
+
},
|
|
96
|
+
"data-node-view-content": ""
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
a({
|
|
101
|
+
name: "NodeViewWrapper",
|
|
102
|
+
props: {
|
|
103
|
+
as: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: "div"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
inject: ["onDragStart", "decorationClasses"],
|
|
109
|
+
render() {
|
|
110
|
+
var t, e;
|
|
111
|
+
return s(
|
|
112
|
+
this.as,
|
|
113
|
+
{
|
|
114
|
+
// @ts-ignore
|
|
115
|
+
class: this.decorationClasses,
|
|
116
|
+
style: {
|
|
117
|
+
whiteSpace: "normal"
|
|
118
|
+
},
|
|
119
|
+
"data-node-view-wrapper": "",
|
|
120
|
+
// @ts-ignore (https://github.com/vuejs/vue-next/issues/3031)
|
|
121
|
+
onDragstart: this.onDragStart
|
|
122
|
+
},
|
|
123
|
+
(e = (t = this.$slots).default) == null ? void 0 : e.call(t)
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
var N = (t = {}) => {
|
|
128
|
+
const e = p();
|
|
129
|
+
return v(() => {
|
|
130
|
+
e.value = new x(t);
|
|
131
|
+
}), u(() => {
|
|
132
|
+
var r, n, o;
|
|
133
|
+
const i = (r = e.value) == null ? void 0 : r.options.element, d = i?.cloneNode(!0);
|
|
134
|
+
(n = i?.parentNode) == null || n.replaceChild(d, i), (o = e.value) == null || o.destroy();
|
|
135
|
+
}), e;
|
|
136
|
+
};
|
|
137
|
+
a({
|
|
138
|
+
name: "MarkViewContent",
|
|
139
|
+
props: {
|
|
140
|
+
as: {
|
|
141
|
+
type: String,
|
|
142
|
+
default: "span"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
render() {
|
|
146
|
+
return s(this.as, {
|
|
147
|
+
style: {
|
|
148
|
+
whiteSpace: "inherit"
|
|
149
|
+
},
|
|
150
|
+
"data-mark-view-content": ""
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
export {
|
|
155
|
+
_ as E,
|
|
156
|
+
N as u
|
|
157
|
+
};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { defineComponent as N, ref as M, h as j, watch as x, computed as I } from "vue";
|
|
2
|
+
import { d as b, n as D, i as T, a as B, t as O, b as X, c as R, e as V } from "./vendor-vueuse-shared-B2Uva3Md.js";
|
|
3
|
+
function L(t) {
|
|
4
|
+
var n;
|
|
5
|
+
const e = O(t);
|
|
6
|
+
return (n = e?.$el) != null ? n : e;
|
|
7
|
+
}
|
|
8
|
+
const U = B ? window : void 0;
|
|
9
|
+
function g(...t) {
|
|
10
|
+
let n, e, o, u;
|
|
11
|
+
if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([e, o, u] = t, n = U) : [n, e, o, u] = t, !n)
|
|
12
|
+
return D;
|
|
13
|
+
Array.isArray(e) || (e = [e]), Array.isArray(o) || (o = [o]);
|
|
14
|
+
const a = [], m = () => {
|
|
15
|
+
a.forEach((v) => v()), a.length = 0;
|
|
16
|
+
}, l = (v, p, r, s) => (v.addEventListener(p, r, s), () => v.removeEventListener(p, r, s)), d = x(
|
|
17
|
+
() => [L(n), O(u)],
|
|
18
|
+
([v, p]) => {
|
|
19
|
+
if (m(), !v)
|
|
20
|
+
return;
|
|
21
|
+
const r = X(p) ? { ...p } : p;
|
|
22
|
+
a.push(
|
|
23
|
+
...e.flatMap((s) => o.map((f) => l(v, s, f, r)))
|
|
24
|
+
);
|
|
25
|
+
},
|
|
26
|
+
{ immediate: !0, flush: "post" }
|
|
27
|
+
), c = () => {
|
|
28
|
+
d(), m();
|
|
29
|
+
};
|
|
30
|
+
return R(c), c;
|
|
31
|
+
}
|
|
32
|
+
let W = !1;
|
|
33
|
+
function H(t, n, e = {}) {
|
|
34
|
+
const { window: o = U, ignore: u = [], capture: a = !0, detectIframe: m = !1 } = e;
|
|
35
|
+
if (!o)
|
|
36
|
+
return D;
|
|
37
|
+
T && !W && (W = !0, Array.from(o.document.body.children).forEach((r) => r.addEventListener("click", D)), o.document.documentElement.addEventListener("click", D));
|
|
38
|
+
let l = !0;
|
|
39
|
+
const d = (r) => u.some((s) => {
|
|
40
|
+
if (typeof s == "string")
|
|
41
|
+
return Array.from(o.document.querySelectorAll(s)).some((f) => f === r.target || r.composedPath().includes(f));
|
|
42
|
+
{
|
|
43
|
+
const f = L(s);
|
|
44
|
+
return f && (r.target === f || r.composedPath().includes(f));
|
|
45
|
+
}
|
|
46
|
+
}), v = [
|
|
47
|
+
g(o, "click", (r) => {
|
|
48
|
+
const s = L(t);
|
|
49
|
+
if (!(!s || s === r.target || r.composedPath().includes(s))) {
|
|
50
|
+
if (r.detail === 0 && (l = !d(r)), !l) {
|
|
51
|
+
l = !0;
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
n(r);
|
|
55
|
+
}
|
|
56
|
+
}, { passive: !0, capture: a }),
|
|
57
|
+
g(o, "pointerdown", (r) => {
|
|
58
|
+
const s = L(t);
|
|
59
|
+
l = !d(r) && !!(s && !r.composedPath().includes(s));
|
|
60
|
+
}, { passive: !0 }),
|
|
61
|
+
m && g(o, "blur", (r) => {
|
|
62
|
+
setTimeout(() => {
|
|
63
|
+
var s;
|
|
64
|
+
const f = L(t);
|
|
65
|
+
((s = o.document.activeElement) == null ? void 0 : s.tagName) === "IFRAME" && !f?.contains(o.document.activeElement) && n(r);
|
|
66
|
+
}, 0);
|
|
67
|
+
})
|
|
68
|
+
].filter(Boolean);
|
|
69
|
+
return () => v.forEach((r) => r());
|
|
70
|
+
}
|
|
71
|
+
const ne = {
|
|
72
|
+
[b.mounted](t, n) {
|
|
73
|
+
const e = !n.modifiers.bubble;
|
|
74
|
+
if (typeof n.value == "function")
|
|
75
|
+
t.__onClickOutside_stop = H(t, n.value, { capture: e });
|
|
76
|
+
else {
|
|
77
|
+
const [o, u] = n.value;
|
|
78
|
+
t.__onClickOutside_stop = H(t, o, Object.assign({ capture: e }, u));
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
[b.unmounted](t) {
|
|
82
|
+
t.__onClickOutside_stop();
|
|
83
|
+
}
|
|
84
|
+
}, $ = 500, z = 10;
|
|
85
|
+
function G(t, n, e) {
|
|
86
|
+
var o, u;
|
|
87
|
+
const a = I(() => L(t));
|
|
88
|
+
let m, l, d, c = !1;
|
|
89
|
+
function v() {
|
|
90
|
+
m && (clearTimeout(m), m = void 0), l = void 0, d = void 0, c = !1;
|
|
91
|
+
}
|
|
92
|
+
function p(i) {
|
|
93
|
+
var h, y, _;
|
|
94
|
+
const [w, E, k] = [d, l, c];
|
|
95
|
+
if (v(), !e?.onMouseUp || !E || !w || (h = e?.modifiers) != null && h.self && i.target !== a.value)
|
|
96
|
+
return;
|
|
97
|
+
(y = e?.modifiers) != null && y.prevent && i.preventDefault(), (_ = e?.modifiers) != null && _.stop && i.stopPropagation();
|
|
98
|
+
const A = i.x - E.x, C = i.y - E.y, F = Math.sqrt(A * A + C * C);
|
|
99
|
+
e.onMouseUp(i.timeStamp - w, F, k);
|
|
100
|
+
}
|
|
101
|
+
function r(i) {
|
|
102
|
+
var h, y, _, w;
|
|
103
|
+
(h = e?.modifiers) != null && h.self && i.target !== a.value || (v(), (y = e?.modifiers) != null && y.prevent && i.preventDefault(), (_ = e?.modifiers) != null && _.stop && i.stopPropagation(), l = {
|
|
104
|
+
x: i.x,
|
|
105
|
+
y: i.y
|
|
106
|
+
}, d = i.timeStamp, m = setTimeout(
|
|
107
|
+
() => {
|
|
108
|
+
c = !0, n(i);
|
|
109
|
+
},
|
|
110
|
+
(w = e?.delay) != null ? w : $
|
|
111
|
+
));
|
|
112
|
+
}
|
|
113
|
+
function s(i) {
|
|
114
|
+
var h, y, _, w;
|
|
115
|
+
if ((h = e?.modifiers) != null && h.self && i.target !== a.value || !l || e?.distanceThreshold === !1)
|
|
116
|
+
return;
|
|
117
|
+
(y = e?.modifiers) != null && y.prevent && i.preventDefault(), (_ = e?.modifiers) != null && _.stop && i.stopPropagation();
|
|
118
|
+
const E = i.x - l.x, k = i.y - l.y;
|
|
119
|
+
Math.sqrt(E * E + k * k) >= ((w = e?.distanceThreshold) != null ? w : z) && v();
|
|
120
|
+
}
|
|
121
|
+
const f = {
|
|
122
|
+
capture: (o = e?.modifiers) == null ? void 0 : o.capture,
|
|
123
|
+
once: (u = e?.modifiers) == null ? void 0 : u.once
|
|
124
|
+
}, q = [
|
|
125
|
+
g(a, "pointerdown", r, f),
|
|
126
|
+
g(a, "pointermove", s, f),
|
|
127
|
+
g(a, ["pointerup", "pointerleave"], p, f)
|
|
128
|
+
];
|
|
129
|
+
return () => q.forEach((i) => i());
|
|
130
|
+
}
|
|
131
|
+
const oe = /* @__PURE__ */ N({
|
|
132
|
+
name: "OnLongPress",
|
|
133
|
+
props: ["as", "options"],
|
|
134
|
+
emits: ["trigger"],
|
|
135
|
+
setup(t, { slots: n, emit: e }) {
|
|
136
|
+
const o = M();
|
|
137
|
+
return G(
|
|
138
|
+
o,
|
|
139
|
+
(u) => {
|
|
140
|
+
e("trigger", u);
|
|
141
|
+
},
|
|
142
|
+
t.options
|
|
143
|
+
), () => {
|
|
144
|
+
if (n.default)
|
|
145
|
+
return j(t.as || "div", { ref: o }, n.default());
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
function S(t) {
|
|
150
|
+
return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
|
|
151
|
+
}
|
|
152
|
+
function Y(t) {
|
|
153
|
+
const n = window.getComputedStyle(t);
|
|
154
|
+
if (n.overflowX === "scroll" || n.overflowY === "scroll" || n.overflowX === "auto" && t.clientWidth < t.scrollWidth || n.overflowY === "auto" && t.clientHeight < t.scrollHeight)
|
|
155
|
+
return !0;
|
|
156
|
+
{
|
|
157
|
+
const e = t.parentNode;
|
|
158
|
+
return !e || e.tagName === "BODY" ? !1 : Y(e);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function J(t) {
|
|
162
|
+
const n = t || window.event, e = n.target;
|
|
163
|
+
return Y(e) ? !1 : n.touches.length > 1 ? !0 : (n.preventDefault && n.preventDefault(), !1);
|
|
164
|
+
}
|
|
165
|
+
const P = /* @__PURE__ */ new WeakMap();
|
|
166
|
+
function K(t, n = !1) {
|
|
167
|
+
const e = M(n);
|
|
168
|
+
let o = null, u = "";
|
|
169
|
+
x(V(t), (l) => {
|
|
170
|
+
const d = S(O(l));
|
|
171
|
+
if (d) {
|
|
172
|
+
const c = d;
|
|
173
|
+
if (P.get(c) || P.set(c, c.style.overflow), c.style.overflow !== "hidden" && (u = c.style.overflow), c.style.overflow === "hidden")
|
|
174
|
+
return e.value = !0;
|
|
175
|
+
if (e.value)
|
|
176
|
+
return c.style.overflow = "hidden";
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
immediate: !0
|
|
180
|
+
});
|
|
181
|
+
const a = () => {
|
|
182
|
+
const l = S(O(t));
|
|
183
|
+
!l || e.value || (T && (o = g(
|
|
184
|
+
l,
|
|
185
|
+
"touchmove",
|
|
186
|
+
(d) => {
|
|
187
|
+
J(d);
|
|
188
|
+
},
|
|
189
|
+
{ passive: !1 }
|
|
190
|
+
)), l.style.overflow = "hidden", e.value = !0);
|
|
191
|
+
}, m = () => {
|
|
192
|
+
const l = S(O(t));
|
|
193
|
+
!l || !e.value || (T && o?.(), l.style.overflow = u, P.delete(l), e.value = !1);
|
|
194
|
+
};
|
|
195
|
+
return R(m), I({
|
|
196
|
+
get() {
|
|
197
|
+
return e.value;
|
|
198
|
+
},
|
|
199
|
+
set(l) {
|
|
200
|
+
l ? a() : m();
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
function Q() {
|
|
205
|
+
let t = !1;
|
|
206
|
+
const n = M(!1);
|
|
207
|
+
return (e, o) => {
|
|
208
|
+
if (n.value = o.value, t)
|
|
209
|
+
return;
|
|
210
|
+
t = !0;
|
|
211
|
+
const u = K(e, o.value);
|
|
212
|
+
x(n, (a) => u.value = a);
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
Q();
|
|
216
|
+
export {
|
|
217
|
+
oe as O,
|
|
218
|
+
ne as v
|
|
219
|
+
};
|