@onereach/ui-components 20.1.1 → 20.1.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.
- package/dist/esm/components/OrAutocompleteV3-8c6de221.js +910 -0
- package/dist/{esm-deps/components/or-editor-tabs-v3/index.js → esm/components/OrEditorTabsV3-7f1eb4be.js} +124 -34
- package/dist/esm/components/OrInlineInputV3-061441a3.js +292 -0
- package/dist/{esm-deps → esm}/components/index.js +51 -83
- package/dist/esm/components/or-autocomplete-v3/index.js +29 -0
- package/dist/{esm-deps → esm}/components/or-avatar-v3/index.js +48 -4
- package/dist/{esm-deps → esm}/components/or-bottom-sheet-v3/index.js +50 -4
- package/dist/esm/components/or-button-group-v3/index.js +92 -0
- package/dist/{esm-deps → esm}/components/or-button-v3/index.js +84 -4
- package/dist/{esm-deps → esm}/components/or-card-collection-v3/index.js +96 -87
- package/dist/{esm-deps → esm}/components/or-card-v3/index.js +13 -1
- package/dist/esm/components/or-checkbox-group-v3/index.js +116 -0
- package/dist/esm/components/or-checkbox-tree-v3/index.js +235 -0
- package/dist/{esm-deps → esm}/components/or-checkbox-v3/index.js +66 -5
- package/dist/esm/components/or-code-v3/index.js +496 -0
- package/dist/esm/components/or-combined-input-v3/index.js +123 -0
- package/dist/{esm-deps → esm}/components/or-confirm-v3/index.js +84 -40
- package/dist/{esm-deps → esm}/components/or-context-menu-v3/index.js +42 -11
- package/dist/esm/components/or-data-grid-v3/index.js +1376 -0
- package/dist/esm/components/or-date-format-v3/index.js +93 -0
- package/dist/esm/components/or-date-picker-v3/index.js +345 -0
- package/dist/esm/components/or-date-range-picker-v3/index.js +430 -0
- package/dist/esm/components/or-date-time-format-v3/index.js +100 -0
- package/dist/esm/components/or-date-time-picker-v3/index.js +1522 -0
- package/dist/{esm-deps → esm}/components/or-drawer-v3/index.js +43 -4
- package/dist/{esm-deps → esm}/components/or-drop-area-v3/index.js +84 -5
- package/dist/esm/components/or-editor-tabs-v3/index.js +31 -0
- package/dist/{esm-deps → esm}/components/or-empty-state-v3/index.js +24 -1
- package/dist/esm/components/or-error-tag-v3/index.js +53 -0
- package/dist/{esm-deps → esm}/components/or-error-v3/index.js +17 -1
- package/dist/{esm-deps → esm}/components/or-expansion-panel-v3/index.js +70 -5
- package/dist/esm/components/or-fab-v3/index.js +114 -0
- package/dist/{esm-deps/components/or-filter-v3 → esm/components/or-filter-popover-v3}/index.js +144 -129
- package/dist/{esm-deps → esm}/components/or-filter-trigger-v3/index.js +54 -15
- package/dist/esm/components/or-filter-v3/index.js +128 -0
- package/dist/esm/components/or-form-group-v3/index.js +111 -0
- package/dist/{esm-deps → esm}/components/or-hint-v3/index.js +17 -1
- package/dist/{esm-deps → esm}/components/or-icon-button-v3/index.js +53 -13
- package/dist/{esm-deps → esm}/components/or-icon-v3/index.js +12 -1
- package/dist/{esm-deps → esm}/components/or-indicator-v3/index.js +15 -2
- package/dist/{esm-deps → esm}/components/or-inline-input-box-v3/index.js +14 -1
- package/dist/esm/components/or-inline-input-v3/index.js +29 -0
- package/dist/esm/components/or-inline-textarea-v3/index.js +248 -0
- package/dist/{esm-deps → esm}/components/or-input-box-v3/index.js +54 -6
- package/dist/{esm-deps/OrInput-4fcaf87c.js → esm/components/or-input-v3/index.js} +202 -3
- package/dist/{esm-deps → esm}/components/or-label-v3/index.js +24 -1
- package/dist/{esm-deps → esm}/components/or-link-v3/index.js +18 -1
- package/dist/esm/components/or-list-v3/index.js +294 -0
- package/dist/esm/components/or-loader-v3/index.js +190 -0
- package/dist/{esm-deps → esm}/components/or-menu-item-v3/index.js +61 -13
- package/dist/esm/components/or-menu-v3/index.js +127 -0
- package/dist/{esm-deps → esm}/components/or-modal-v3/index.js +61 -20
- package/dist/{esm-deps → esm}/components/or-notification-v3/index.js +47 -16
- package/dist/esm/components/or-overlay-v3/index.js +92 -0
- package/dist/esm/components/or-pagination-v3/index.js +356 -0
- package/dist/esm/components/or-popover-v3/index.js +442 -0
- package/dist/{esm-deps → esm}/components/or-progress-v3/index.js +101 -3
- package/dist/esm/components/or-radio-group-v3/index.js +116 -0
- package/dist/{esm-deps → esm}/components/or-radio-v3/index.js +70 -5
- package/dist/{esm-deps → esm}/components/or-range-slider-v3/index.js +120 -11
- package/dist/{esm-deps → esm}/components/or-rating-v3/index.js +60 -5
- package/dist/{esm-deps → esm}/components/or-resizeable-panel-v3/index.js +56 -13
- package/dist/esm/components/or-rich-text-editor-v3/index.js +1250 -0
- package/dist/{esm-deps → esm}/components/or-rich-tooltip-v3/index.js +58 -9
- package/dist/{esm-deps → esm}/components/or-search-v3/index.js +38 -22
- package/dist/{esm-deps → esm}/components/or-segmented-control-v3/index.js +51 -6
- package/dist/{esm-deps → esm}/components/or-select-v3/index.js +293 -99
- package/dist/{esm-deps → esm}/components/or-sidebar-v3/index.js +58 -52
- package/dist/esm/components/or-skeleton-v3/index.js +250 -0
- package/dist/{esm-deps → esm}/components/or-slider-v3/index.js +103 -11
- package/dist/esm/components/or-sorting-v3/index.js +137 -0
- package/dist/{esm-deps → esm}/components/or-status-v3/index.js +18 -3
- package/dist/{esm-deps → esm}/components/or-switch-v3/index.js +77 -6
- package/dist/{esm-deps → esm}/components/or-tab-v3/index.js +18 -1
- package/dist/{esm-deps → esm}/components/or-tabs-v3/index.js +94 -42
- package/dist/{esm-deps → esm}/components/or-tag-input-v3/index.js +142 -22
- package/dist/{esm-deps → esm}/components/or-tag-v3/index.js +51 -16
- package/dist/esm/components/or-tags-v3/index.js +252 -0
- package/dist/esm/components/or-teleport-v3/index.js +27 -0
- package/dist/{esm-deps → esm}/components/or-text-v3/index.js +17 -1
- package/dist/esm/components/or-textarea-v3/index.js +265 -0
- package/dist/esm/components/or-time-format-v3/index.js +93 -0
- package/dist/esm/components/or-time-picker-v3/index.js +340 -0
- package/dist/esm/components/or-time-range-picker-v3/index.js +415 -0
- package/dist/{esm-deps → esm}/components/or-toast-v3/index.js +61 -21
- package/dist/{esm-deps → esm}/components/or-tooltip-v3/index.js +53 -10
- package/dist/{esm-deps → esm}/components/or-tree-v3/index.js +55 -8
- package/dist/esm/constants.d.ts +2 -0
- package/dist/esm/index.js +129 -0
- package/package.json +11 -12
- package/src/constants.ts +1 -1
- package/dist/esm-deps/OrButton-91f48227.js +0 -39
- package/dist/esm-deps/OrCheckbox-cfd587f1.js +0 -43
- package/dist/esm-deps/OrDateTimePicker.vue_vue_type_script_lang-92237043.js +0 -275
- package/dist/esm-deps/OrDateTimePickerMonthSelect-8ff9ca1b.js +0 -507
- package/dist/esm-deps/OrDateTimePickerPopoverHeader-b4f2d13e.js +0 -162
- package/dist/esm-deps/OrDateTimePickerTimeSelect-92ce3cf8.js +0 -382
- package/dist/esm-deps/OrFormGroup-081248a1.js +0 -38
- package/dist/esm-deps/OrHint-fcdf591c.js +0 -35
- package/dist/esm-deps/OrIcon-cd8db2b5.js +0 -13
- package/dist/esm-deps/OrIconButton-b7d4175c.js +0 -34
- package/dist/esm-deps/OrIndicator-c4efdee9.js +0 -16
- package/dist/esm-deps/OrInlineInputBox-d9dc104a.js +0 -15
- package/dist/esm-deps/OrInputBox-e79531c2.js +0 -34
- package/dist/esm-deps/OrLabel-d50a3ebb.js +0 -25
- package/dist/esm-deps/OrLoader-4e331586.js +0 -75
- package/dist/esm-deps/OrMenu-13beee12.js +0 -26
- package/dist/esm-deps/OrMenuItem-c40a275b.js +0 -44
- package/dist/esm-deps/OrModal-b06077ec.js +0 -37
- package/dist/esm-deps/OrOverlay-d67e7093.js +0 -19
- package/dist/esm-deps/OrPopover-bd078650.js +0 -38
- package/dist/esm-deps/OrSearch-8e817fad.js +0 -25
- package/dist/esm-deps/OrSkeletonText.vue_vue_type_script_lang-890c25e3.js +0 -104
- package/dist/esm-deps/OrTagInput-4439b294.js +0 -133
- package/dist/esm-deps/OrTags-995e4846.js +0 -73
- package/dist/esm-deps/OrTooltip-62181b78.js +0 -32
- package/dist/esm-deps/components/or-autocomplete-v3/index.js +0 -383
- package/dist/esm-deps/components/or-button-group-v3/index.js +0 -55
- package/dist/esm-deps/components/or-checkbox-group-v3/index.js +0 -155
- package/dist/esm-deps/components/or-checkbox-tree-v3/index.js +0 -148
- package/dist/esm-deps/components/or-code-v3/index.js +0 -1413
- package/dist/esm-deps/components/or-combined-input-v3/index.js +0 -83
- package/dist/esm-deps/components/or-data-grid-v3/index.js +0 -2111
- package/dist/esm-deps/components/or-date-format-v3/index.js +0 -55
- package/dist/esm-deps/components/or-date-picker-v3/index.js +0 -232
- package/dist/esm-deps/components/or-date-range-picker-v3/index.js +0 -278
- package/dist/esm-deps/components/or-date-time-format-v3/index.js +0 -63
- package/dist/esm-deps/components/or-date-time-picker-v3/index.js +0 -48
- package/dist/esm-deps/components/or-error-tag-v3/index.js +0 -37
- package/dist/esm-deps/components/or-fab-v3/index.js +0 -64
- package/dist/esm-deps/components/or-filter-popover-v3/index.js +0 -146
- package/dist/esm-deps/components/or-form-group-v3/index.js +0 -77
- package/dist/esm-deps/components/or-inline-input-v3/index.js +0 -220
- package/dist/esm-deps/components/or-inline-textarea-v3/index.js +0 -174
- package/dist/esm-deps/components/or-input-v3/index.js +0 -206
- package/dist/esm-deps/components/or-list-v3/index.js +0 -3307
- package/dist/esm-deps/components/or-loader-v3/index.js +0 -117
- package/dist/esm-deps/components/or-menu-v3/index.js +0 -90
- package/dist/esm-deps/components/or-overlay-v3/index.js +0 -63
- package/dist/esm-deps/components/or-pagination-v3/index.js +0 -232
- package/dist/esm-deps/components/or-popover-v3/index.js +0 -1010
- package/dist/esm-deps/components/or-radio-group-v3/index.js +0 -115
- package/dist/esm-deps/components/or-rich-text-editor-v3/index.js +0 -14305
- package/dist/esm-deps/components/or-skeleton-v3/index.js +0 -91
- package/dist/esm-deps/components/or-sorting-v3/index.js +0 -92
- package/dist/esm-deps/components/or-tags-v3/index.js +0 -210
- package/dist/esm-deps/components/or-teleport-v3/index.js +0 -17
- package/dist/esm-deps/components/or-textarea-v3/index.js +0 -174
- package/dist/esm-deps/components/or-time-format-v3/index.js +0 -55
- package/dist/esm-deps/components/or-time-picker-v3/index.js +0 -226
- package/dist/esm-deps/components/or-time-range-picker-v3/index.js +0 -265
- package/dist/esm-deps/constants-57e8b5da.js +0 -6
- package/dist/esm-deps/constants.d.ts +0 -2
- package/dist/esm-deps/dom-CwV-xS38-5babad01.js +0 -72
- package/dist/esm-deps/dropdown-open-k6cFnrqA-b1726667.js +0 -17
- package/dist/esm-deps/extractCssVarName-IHa2pGlF-614fb8d2.js +0 -85
- package/dist/esm-deps/formatDate-0536a8d5.js +0 -11
- package/dist/esm-deps/formatTime-6d5fedb0.js +0 -14
- package/dist/esm-deps/getNextMonthDate-25fe3c1a.js +0 -6
- package/dist/esm-deps/index-df637b06.js +0 -407
- package/dist/esm-deps/index-f0e8521b.js +0 -19754
- package/dist/esm-deps/index.js +0 -2658
- package/dist/esm-deps/props-bba3dca8.js +0 -21
- package/dist/esm-deps/searchItemsByLabel-BhinsABA-b8049fb6.js +0 -11
- package/dist/esm-deps/style-inject.es-87955792.js +0 -26
- package/dist/esm-deps/types-75a1cc13.js +0 -14
- package/dist/esm-deps/types-98e9a758.js +0 -18
- package/dist/esm-deps/useValidationAttributes-DxhcSj_h-3380c3cf.js +0 -4004
- /package/dist/{esm-deps → esm}/components/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-autocomplete-v3/OrAutocomplete.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-autocomplete-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-autocomplete-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-autocomplete-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-avatar-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-avatar-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-avatar-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-bottom-sheet-v3/hooks/useBottomSheetSwipeState.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-bottom-sheet-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-bottom-sheet-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-bottom-sheet-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-group-v3/OrButtonGroup.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-group-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-group-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-v3/OrButton.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-v3/constants.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-collection-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-collection-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-collection-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-collection-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-v3/OrCard.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-group-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-tree-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-tree-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-tree-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-tree-v3/utils/extractChildrenValues.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-v3/OrCheckbox.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-code-v3/OrCode.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-code-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-code-v3/libs.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-code-v3/partials/OrCodeControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-code-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-code-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-combined-input-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-combined-input-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-confirm-v3/OrConfirm.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-confirm-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-confirm-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-confirm-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-context-menu-v3/OrContextMenu.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-context-menu-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/OrDataGrid.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-footer/OrDataGridFooter.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-footer/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-header/OrDataGridHeader.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-header/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table/OrDataGridTable.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-content/OrDataGridTableContent.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-content/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/OrDataGridTableContentCell.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-content-row/OrDataGridTableContentRow.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-content-row/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-footer/OrDataGridTableFooter.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-footer/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-footer-cell/OrDataGridTableFooterCell.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-footer-cell/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-footer-row/OrDataGridTableFooterRow.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-footer-row/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-header/OrDataGridTableHeader.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-header/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-header-cell/OrDataGridTableHeaderCell.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-header-cell/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-header-row/OrDataGridTableHeaderRow.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-header-row/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-placeholder/OrDataGridTablePlaceholder.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-placeholder/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-toolbar/OrDataGridToolbar.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-toolbar/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-format-v3/OrDateFormat.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-format-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-format-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-picker-v3/OrDatePicker.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-picker-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-picker-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-range-picker-v3/OrDateRangePicker.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-range-picker-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-range-picker-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-range-picker-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-format-v3/OrDateTimeFormat.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-format-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-format-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/formatDate.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/formatMobileDate.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/formatMobileTime.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/formatTime.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/getCurrentDate.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/getNextMonthDate.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/scrollToElementWithinContainer.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drawer-v3/OrDrawer.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drawer-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drawer-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drawer-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drop-area-v3/OrDropArea.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drop-area-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drop-area-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drop-area-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drop-area-v3/utils/approximateFileSize.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drop-area-v3/utils/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/OrEditorTabs.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/constants.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/partials/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/partials/or-editor-tabs-item/OrEditorTabsItem.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/partials/or-editor-tabs-item/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-empty-state-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-empty-state-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-empty-state-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-empty-state-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-error-tag-v3/OrErrorTag.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-error-tag-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-error-tag-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-error-v3/OrError.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-error-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-error-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-expansion-panel-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-expansion-panel-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-expansion-panel-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-fab-v3/OrFab.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-fab-v3/constants.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-fab-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-fab-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-fab-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-popover-v3/OrFilterPopover.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-popover-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-popover-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-trigger-v3/OrFilterTrigger.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-trigger-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-trigger-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-v3/OrFilter.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-form-group-v3/OrFormGroup.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-form-group-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-form-group-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-form-group-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-hint-v3/OrHint.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-hint-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-hint-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-button-v3/OrIconButton.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-button-v3/constants.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-button-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-button-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-button-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-v3/OrIcon.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-indicator-v3/OrIndicator.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-indicator-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-indicator-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-indicator-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-box-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-box-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-box-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-v3/OrInlineInput.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-textarea-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-textarea-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-textarea-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-box-v3/OrInputBox.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-box-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-box-v3/partials/or-input-box-addon/OrInputBoxAddon.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-box-v3/partials/or-input-box-addon/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-box-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-box-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-v3/OrInput.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-label-v3/OrLabel.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-label-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-label-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-label-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-link-v3/OrLink.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-link-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-link-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-link-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/OrList.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/partials/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/partials/or-list-item/OrListItem.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/partials/or-list-item/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-loader-v3/OrLoader.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-loader-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-loader-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-loader-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-menu-item-v3/OrMenuItem.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-menu-item-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-menu-item-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-menu-v3/OrMenu.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-menu-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-menu-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/OrModal.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/partials/or-modal-content/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/partials/or-modal-footer/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/partials/or-modal-header/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-notification-v3/OrNotification.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-notification-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-notification-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-notification-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-overlay-v3/OrOverlay.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-overlay-v3/constants.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-overlay-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-overlay-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-pagination-v3/OrPagination.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-pagination-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-pagination-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-pagination-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/OrPopover.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/hooks/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/hooks/useFloating.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/utils/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/utils/isPrevented.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-progress-v3/OrProgress.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-progress-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-progress-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-progress-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-group-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-group-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-v3/OrRadio.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-range-slider-v3/OrRangeSlider.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-range-slider-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-range-slider-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-range-slider-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rating-v3/OrRating.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rating-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rating-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rating-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-resizeable-panel-v3/OrResizeablePanel.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-resizeable-panel-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-resizeable-panel-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-resizeable-panel-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-tooltip-v3/OrRichTooltip.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-tooltip-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-tooltip-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-tooltip-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-search-v3/OrSearch.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-search-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-search-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/constants.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/partials/or-segmented-control-item/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/OrSelect.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-control-input/OrSelectControlInput.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-control-input/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-control-input/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-multiple-control/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-multiple-control/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-placeholder/OrSelectPlaceholder.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-placeholder/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-placeholder/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-single-control/OrSelectSingleControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-single-control/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-single-control/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sidebar-v3/OrSidebar.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sidebar-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sidebar-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sidebar-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/or-skeleton-circle-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/or-skeleton-rect-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/or-skeleton-text-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-slider-v3/OrSlider.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-slider-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-slider-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-slider-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sorting-v3/OrSorting.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sorting-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sorting-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sorting-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-status-v3/OrStatus.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-status-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-status-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-status-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-switch-v3/OrSwitch.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-switch-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-switch-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-switch-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tab-v3/OrTab.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tab-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tab-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tabs-v3/OrTabs.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tabs-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tabs-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tabs-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tabs-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-input-v3/OrTagInput.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-input-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-input-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-input-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-v3/OrTag.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tags-v3/OrTags.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tags-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tags-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tags-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tags-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tags-v3/utils/castToTag.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-teleport-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-text-v3/OrText.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-text-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-text-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-textarea-v3/OrTextarea.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-textarea-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-textarea-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-textarea-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-format-v3/OrTimeFormat.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-format-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-format-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-picker-v3/OrTimePicker.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-picker-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-picker-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-range-picker-v3/OrTimeRangePicker.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-range-picker-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-range-picker-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-range-picker-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/OrToast.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/Timer.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/composable/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/composable/useQueue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/composable/useToast.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/composable/useToastEventBus.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/or-toast-container-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tooltip-v3/OrTooltip.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tooltip-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tooltip-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tree-v3/OrTree.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tree-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tree-v3/partials/or-tree-node/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tree-v3/partials/or-tree-node/utils.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tree-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/index.d.ts +0 -0
|
@@ -0,0 +1,1250 @@
|
|
|
1
|
+
import { defineComponent, shallowRef, ref, onMounted, onBeforeUnmount, computed, watch, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, createElementVNode, Fragment, renderList, withDirectives, vShow, vModelText } from 'vue';
|
|
2
|
+
import { s as styleInject } from '../OrInlineInputV3-061441a3.js';
|
|
3
|
+
import { Node, Editor, mergeAttributes } from '@tiptap/core';
|
|
4
|
+
import Blockquote from '@tiptap/extension-blockquote';
|
|
5
|
+
import BulletList from '@tiptap/extension-bullet-list';
|
|
6
|
+
import Heading from '@tiptap/extension-heading';
|
|
7
|
+
import Highlight from '@tiptap/extension-highlight';
|
|
8
|
+
import Link from '@tiptap/extension-link';
|
|
9
|
+
import OrderedList from '@tiptap/extension-ordered-list';
|
|
10
|
+
import Paragraph from '@tiptap/extension-paragraph';
|
|
11
|
+
import Placeholder from '@tiptap/extension-placeholder';
|
|
12
|
+
import Underline from '@tiptap/extension-underline';
|
|
13
|
+
import StarterKit from '@tiptap/starter-kit';
|
|
14
|
+
import { useResizeObserver, useDebounceFn, onClickOutside } from '@vueuse/core';
|
|
15
|
+
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap';
|
|
16
|
+
import { u as ue, e } from '../OrAutocompleteV3-8c6de221.js';
|
|
17
|
+
import { TextSelection, Selection } from 'prosemirror-state';
|
|
18
|
+
import { exitCode } from 'prosemirror-commands';
|
|
19
|
+
import { EditorState } from '@codemirror/state';
|
|
20
|
+
import { EditorView, highlightActiveLine, highlightActiveLineGutter, lineNumbers, keymap } from '@codemirror/view';
|
|
21
|
+
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
22
|
+
import { tags } from '@lezer/highlight';
|
|
23
|
+
import { minimalSetup } from 'codemirror';
|
|
24
|
+
import { javascript } from '@codemirror/lang-javascript';
|
|
25
|
+
import { defaultMarkdownSerializer, MarkdownSerializer } from 'prosemirror-markdown';
|
|
26
|
+
import { DOMParser as DOMParser$1 } from 'prosemirror-model';
|
|
27
|
+
import { marked } from 'marked';
|
|
28
|
+
import ListItem from '@tiptap/extension-list-item';
|
|
29
|
+
import Strike from '@tiptap/extension-strike';
|
|
30
|
+
import Italic from '@tiptap/extension-italic';
|
|
31
|
+
import HardBreak from '@tiptap/extension-hard-break';
|
|
32
|
+
import HorizontalRule from '@tiptap/extension-horizontal-rule';
|
|
33
|
+
import Bold from '@tiptap/extension-bold';
|
|
34
|
+
import CodeBlock from '@tiptap/extension-code-block';
|
|
35
|
+
import { OrButtonV3 as script$1 } from '../or-button-v3/index.js';
|
|
36
|
+
import { OrErrorV3 as script$2 } from '../or-error-v3/index.js';
|
|
37
|
+
import { OrHintV3 as script$3 } from '../or-hint-v3/index.js';
|
|
38
|
+
import { OrIconButtonV3 as script$4 } from '../or-icon-button-v3/index.js';
|
|
39
|
+
import { OrInputV3 as script$5 } from '../or-input-v3/index.js';
|
|
40
|
+
import { OrInputBoxV3 as script$6 } from '../or-input-box-v3/index.js';
|
|
41
|
+
import { OrLabelV3 as script$7 } from '../or-label-v3/index.js';
|
|
42
|
+
import { OrMenuV3 as script$8 } from '../or-menu-v3/index.js';
|
|
43
|
+
import { OrMenuItemV3 as script$9 } from '../or-menu-item-v3/index.js';
|
|
44
|
+
import { OrModalV3 as script$a } from '../or-modal-v3/index.js';
|
|
45
|
+
import { OrPopoverV3 as script$b } from '../or-popover-v3/index.js';
|
|
46
|
+
import '../or-inline-input-box-v3/index.js';
|
|
47
|
+
import '../or-text-v3/index.js';
|
|
48
|
+
import '@onereach/styles/screens.json';
|
|
49
|
+
import '@onereach/styles/tailwind.config.json';
|
|
50
|
+
import 'lodash/get';
|
|
51
|
+
import 'lodash/isElement';
|
|
52
|
+
import '../or-loader-v3/index.js';
|
|
53
|
+
import '../or-tag-input-v3/index.js';
|
|
54
|
+
import '../or-tags-v3/index.js';
|
|
55
|
+
import '../or-tag-v3/index.js';
|
|
56
|
+
import '../or-icon-v3/index.js';
|
|
57
|
+
import '../or-tooltip-v3/index.js';
|
|
58
|
+
import '@floating-ui/dom';
|
|
59
|
+
import '../or-bottom-sheet-v3/index.js';
|
|
60
|
+
import '../or-overlay-v3/index.js';
|
|
61
|
+
import '../or-teleport-v3/index.js';
|
|
62
|
+
|
|
63
|
+
var Formats;
|
|
64
|
+
(function (Formats) {
|
|
65
|
+
Formats["Markdown"] = "markdown";
|
|
66
|
+
Formats["Markup"] = "markup";
|
|
67
|
+
})(Formats || (Formats = {}));
|
|
68
|
+
var RichTextEditorIcons;
|
|
69
|
+
(function (RichTextEditorIcons) {
|
|
70
|
+
RichTextEditorIcons["bold"] = "format_bold";
|
|
71
|
+
RichTextEditorIcons["italic"] = "format_italic";
|
|
72
|
+
RichTextEditorIcons["underline"] = "format_underlined";
|
|
73
|
+
RichTextEditorIcons["strike"] = "format_strikethrough";
|
|
74
|
+
RichTextEditorIcons["bulletList"] = "format_list_bulleted";
|
|
75
|
+
RichTextEditorIcons["orderedList"] = "format_list_numbered";
|
|
76
|
+
RichTextEditorIcons["link"] = "link";
|
|
77
|
+
RichTextEditorIcons["highlight"] = "highlight";
|
|
78
|
+
RichTextEditorIcons["redo"] = "redo";
|
|
79
|
+
RichTextEditorIcons["undo"] = "undo";
|
|
80
|
+
RichTextEditorIcons["codeBlock"] = "code_blocks";
|
|
81
|
+
RichTextEditorIcons["blockquote"] = "format_quote";
|
|
82
|
+
RichTextEditorIcons["file"] = "attach_file";
|
|
83
|
+
RichTextEditorIcons["source"] = "source_notes";
|
|
84
|
+
})(RichTextEditorIcons || (RichTextEditorIcons = {}));
|
|
85
|
+
var RichTextEditorTooltips;
|
|
86
|
+
(function (RichTextEditorTooltips) {
|
|
87
|
+
RichTextEditorTooltips["bold"] = "Bold";
|
|
88
|
+
RichTextEditorTooltips["italic"] = "Italic";
|
|
89
|
+
RichTextEditorTooltips["underline"] = "Underline";
|
|
90
|
+
RichTextEditorTooltips["strike"] = "Strike";
|
|
91
|
+
RichTextEditorTooltips["bulletList"] = "Bulleted List";
|
|
92
|
+
RichTextEditorTooltips["orderedList"] = "Numbered List";
|
|
93
|
+
RichTextEditorTooltips["link"] = "Link";
|
|
94
|
+
RichTextEditorTooltips["highlight"] = "Highlight";
|
|
95
|
+
RichTextEditorTooltips["redo"] = "Redo";
|
|
96
|
+
RichTextEditorTooltips["undo"] = "Undo";
|
|
97
|
+
RichTextEditorTooltips["codeBlock"] = "Code Block";
|
|
98
|
+
RichTextEditorTooltips["blockquote"] = "Quote";
|
|
99
|
+
RichTextEditorTooltips["file"] = "File";
|
|
100
|
+
RichTextEditorTooltips["source"] = "Source";
|
|
101
|
+
})(RichTextEditorTooltips || (RichTextEditorTooltips = {}));
|
|
102
|
+
|
|
103
|
+
const RichTextEditor = [
|
|
104
|
+
// Layout
|
|
105
|
+
'layout-column',
|
|
106
|
+
// Spacing
|
|
107
|
+
'gap-xs',
|
|
108
|
+
// Box
|
|
109
|
+
'max-h-full'];
|
|
110
|
+
const RichTextEditorToolbar = [
|
|
111
|
+
// Layout
|
|
112
|
+
'layout-row',
|
|
113
|
+
// Spacing
|
|
114
|
+
'px-0', 'py-sm',
|
|
115
|
+
// Theme
|
|
116
|
+
'border-b-1', 'theme-border-outline', 'dark:theme-border-outline-dark'];
|
|
117
|
+
const RichTextEditorToolbarGroup = [
|
|
118
|
+
// Layout
|
|
119
|
+
'layout-row',
|
|
120
|
+
// Spacing
|
|
121
|
+
'px-sm', 'py-0', 'gap-md',
|
|
122
|
+
// Theme
|
|
123
|
+
'theme-foreground-outline', 'dark:theme-foreground-outline-dark', 'border-e-1 last:border-e-0', 'theme-border-outline', 'dark:theme-border-outline-dark'];
|
|
124
|
+
const RichTextEditorControl = [
|
|
125
|
+
// Typography
|
|
126
|
+
'typography-body-2-regular',
|
|
127
|
+
// Size
|
|
128
|
+
'h-full'];
|
|
129
|
+
|
|
130
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
131
|
+
const themes = ue();
|
|
132
|
+
const chalky = themes === null || themes === void 0 ? void 0 : themes.backgroundColor['custom-colors-custom-6'],
|
|
133
|
+
coral = themes === null || themes === void 0 ? void 0 : themes.backgroundColor['custom-colors-custom-1'],
|
|
134
|
+
cyan = themes === null || themes === void 0 ? void 0 : themes.backgroundColor['custom-colors-custom-3'],
|
|
135
|
+
invalid = (_a = themes === null || themes === void 0 ? void 0 : themes.backgroundColor) === null || _a === void 0 ? void 0 : _a.white,
|
|
136
|
+
ivory = themes === null || themes === void 0 ? void 0 : themes.backgroundColor['custom-colors-custom-6'],
|
|
137
|
+
stone = themes === null || themes === void 0 ? void 0 : themes.backgroundColor['custom-colors-custom-5'],
|
|
138
|
+
// Brightened compared to original to increase contrast
|
|
139
|
+
malibu = themes === null || themes === void 0 ? void 0 : themes.backgroundColor['custom-colors-custom-3'],
|
|
140
|
+
sage = themes === null || themes === void 0 ? void 0 : themes.backgroundColor.success,
|
|
141
|
+
whiskey = themes === null || themes === void 0 ? void 0 : themes.backgroundColor.warning,
|
|
142
|
+
violet = themes === null || themes === void 0 ? void 0 : themes.backgroundColor['custom-colors-custom-1'];
|
|
143
|
+
/// The editor theme styles for One Dark.
|
|
144
|
+
const orCodeTheme = EditorView.theme({
|
|
145
|
+
'&': {
|
|
146
|
+
color: ivory,
|
|
147
|
+
backgroundColor: (_b = themes === null || themes === void 0 ? void 0 : themes.backgroundColor) === null || _b === void 0 ? void 0 : _b['bg-primary-container']
|
|
148
|
+
},
|
|
149
|
+
'.cm-editor': {
|
|
150
|
+
border: 'none',
|
|
151
|
+
borderRadius: (_c = themes === null || themes === void 0 ? void 0 : themes.spacing) === null || _c === void 0 ? void 0 : _c.xs
|
|
152
|
+
},
|
|
153
|
+
'&.cm-focused': {
|
|
154
|
+
outline: 'none'
|
|
155
|
+
},
|
|
156
|
+
'.cm-scroller': {
|
|
157
|
+
borderRadius: (_d = themes === null || themes === void 0 ? void 0 : themes.spacing) === null || _d === void 0 ? void 0 : _d.xs
|
|
158
|
+
},
|
|
159
|
+
'.cm-content': {
|
|
160
|
+
// caretColor: cursor,
|
|
161
|
+
},
|
|
162
|
+
'.cm-button': {
|
|
163
|
+
// background: highlightBackground,
|
|
164
|
+
// color: themes?.colors?.neutral?.[600],
|
|
165
|
+
border: 0,
|
|
166
|
+
borderRadius: (_e = themes === null || themes === void 0 ? void 0 : themes.spacing) === null || _e === void 0 ? void 0 : _e.xs
|
|
167
|
+
},
|
|
168
|
+
'.cm-panel.cm-search input[type=checkbox]': {
|
|
169
|
+
display: 'inline-block',
|
|
170
|
+
verticalAlign: 'middle'
|
|
171
|
+
},
|
|
172
|
+
// '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
|
|
173
|
+
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
|
|
174
|
+
// backgroundColor: selection,
|
|
175
|
+
},
|
|
176
|
+
'.cm-panels': {
|
|
177
|
+
// backgroundColor: darkBackground,
|
|
178
|
+
color: ivory
|
|
179
|
+
},
|
|
180
|
+
// '.cm-panels.cm-panels-top': { borderBottom: `2px solid ${themes?.colors?.neutral?.[200]}` },
|
|
181
|
+
// '.cm-panels.cm-panels-bottom': { borderTop: `2px solid ${themes?.colors?.neutral?.[200]}` },
|
|
182
|
+
'.cm-searchMatch': {
|
|
183
|
+
// backgroundColor: themes?.colors?.neutral?.[100],
|
|
184
|
+
// outline: `1px solid ${themes?.colors?.neutral?.[200]}`,
|
|
185
|
+
},
|
|
186
|
+
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
187
|
+
// backgroundColor: themes?.colors?.sky?.[100],
|
|
188
|
+
},
|
|
189
|
+
'.cm-activeLine': {
|
|
190
|
+
backgroundColor: (_f = themes === null || themes === void 0 ? void 0 : themes.backgroundColor) === null || _f === void 0 ? void 0 : _f['bg-secondary-container']
|
|
191
|
+
},
|
|
192
|
+
// '.cm-selectionMatch': { backgroundColor: themes?.colors?.lime?.[500] },
|
|
193
|
+
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
194
|
+
// backgroundColor: themes?.colors?.lime?.[600],
|
|
195
|
+
},
|
|
196
|
+
'.cm-gutters': {
|
|
197
|
+
backgroundColor: (_g = themes === null || themes === void 0 ? void 0 : themes.backgroundColor) === null || _g === void 0 ? void 0 : _g['primary-opacity-0-12'],
|
|
198
|
+
color: stone,
|
|
199
|
+
border: 'none'
|
|
200
|
+
},
|
|
201
|
+
'.cm-lineNumbers .cm-gutterElement': {
|
|
202
|
+
paddingLeft: (_h = themes === null || themes === void 0 ? void 0 : themes.spacing) === null || _h === void 0 ? void 0 : _h['sm+*'],
|
|
203
|
+
paddingRight: (_j = themes === null || themes === void 0 ? void 0 : themes.spacing) === null || _j === void 0 ? void 0 : _j['sm+*']
|
|
204
|
+
},
|
|
205
|
+
'.cm-activeLineGutter': {
|
|
206
|
+
backgroundColor: (_k = themes === null || themes === void 0 ? void 0 : themes.backgroundColor) === null || _k === void 0 ? void 0 : _k['primary-opacity-0-16']
|
|
207
|
+
},
|
|
208
|
+
'.cm-foldPlaceholder': {
|
|
209
|
+
backgroundColor: 'transparent',
|
|
210
|
+
border: 'none'
|
|
211
|
+
// color: themes?.colors?.neutral?.[200],
|
|
212
|
+
},
|
|
213
|
+
'.cm-tooltip': {
|
|
214
|
+
border: 'none'
|
|
215
|
+
// backgroundColor: tooltipBackground,
|
|
216
|
+
},
|
|
217
|
+
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
218
|
+
borderTopColor: 'transparent',
|
|
219
|
+
borderBottomColor: 'transparent'
|
|
220
|
+
},
|
|
221
|
+
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
222
|
+
// borderTopColor: tooltipBackground,
|
|
223
|
+
// borderBottomColor: tooltipBackground,
|
|
224
|
+
},
|
|
225
|
+
'.cm-tooltip-autocomplete': {
|
|
226
|
+
'& > ul > li[aria-selected]': {
|
|
227
|
+
// backgroundColor: highlightBackground,
|
|
228
|
+
color: ivory
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
'.cm-textfield': {
|
|
232
|
+
outline: 'none',
|
|
233
|
+
// background: background,
|
|
234
|
+
// color: themes?.colors?.neutral?.[600],
|
|
235
|
+
// backgroundColor: themes?.colors?.neutral?.[100],
|
|
236
|
+
// border: `1px solid ${themes?.colors?.neutral?.[200]}`,
|
|
237
|
+
borderRadius: (_l = themes === null || themes === void 0 ? void 0 : themes.spacing) === null || _l === void 0 ? void 0 : _l.xs
|
|
238
|
+
}
|
|
239
|
+
}, {
|
|
240
|
+
dark: true
|
|
241
|
+
});
|
|
242
|
+
/// The highlighting style for code in the One Dark theme.
|
|
243
|
+
const orCodeHighlightStyle = HighlightStyle.define([{
|
|
244
|
+
tag: tags.keyword,
|
|
245
|
+
color: violet
|
|
246
|
+
}, {
|
|
247
|
+
tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
|
|
248
|
+
color: coral
|
|
249
|
+
}, {
|
|
250
|
+
tag: [tags.function(tags.variableName), tags.labelName],
|
|
251
|
+
color: malibu
|
|
252
|
+
}, {
|
|
253
|
+
tag: [tags.color, tags.constant(tags.name), tags.standard(tags.name)],
|
|
254
|
+
color: whiskey
|
|
255
|
+
}, {
|
|
256
|
+
tag: [tags.definition(tags.name), tags.separator],
|
|
257
|
+
color: ivory
|
|
258
|
+
}, {
|
|
259
|
+
tag: [tags.typeName, tags.className, tags.number, tags.changed, tags.annotation, tags.modifier, tags.self, tags.namespace],
|
|
260
|
+
color: chalky
|
|
261
|
+
}, {
|
|
262
|
+
tag: [tags.operator, tags.operatorKeyword, tags.url, tags.escape, tags.regexp, tags.link, tags.special(tags.string)],
|
|
263
|
+
color: cyan
|
|
264
|
+
}, {
|
|
265
|
+
tag: [tags.meta, tags.comment],
|
|
266
|
+
color: stone
|
|
267
|
+
}, {
|
|
268
|
+
tag: tags.strong,
|
|
269
|
+
fontWeight: 'bold'
|
|
270
|
+
}, {
|
|
271
|
+
tag: tags.emphasis,
|
|
272
|
+
fontStyle: 'italic'
|
|
273
|
+
}, {
|
|
274
|
+
tag: tags.strikethrough,
|
|
275
|
+
textDecoration: 'line-through'
|
|
276
|
+
}, {
|
|
277
|
+
tag: tags.link,
|
|
278
|
+
color: stone,
|
|
279
|
+
textDecoration: 'underline'
|
|
280
|
+
}, {
|
|
281
|
+
tag: tags.heading,
|
|
282
|
+
fontWeight: 'bold',
|
|
283
|
+
color: coral
|
|
284
|
+
}, {
|
|
285
|
+
tag: [tags.atom, tags.bool, tags.special(tags.variableName)],
|
|
286
|
+
color: whiskey
|
|
287
|
+
}, {
|
|
288
|
+
tag: [tags.processingInstruction, tags.string, tags.inserted],
|
|
289
|
+
color: sage
|
|
290
|
+
}, {
|
|
291
|
+
tag: tags.invalid,
|
|
292
|
+
color: invalid
|
|
293
|
+
}]);
|
|
294
|
+
/// Extension to enable the One Dark theme (both the editor theme and
|
|
295
|
+
/// the highlight style).
|
|
296
|
+
const theme = [orCodeTheme, syntaxHighlighting(orCodeHighlightStyle)];
|
|
297
|
+
|
|
298
|
+
const computeChange = (oldVal, newVal) => {
|
|
299
|
+
if (oldVal === newVal) {
|
|
300
|
+
return null;
|
|
301
|
+
}
|
|
302
|
+
let start = 0;
|
|
303
|
+
let oldEnd = oldVal.length;
|
|
304
|
+
let newEnd = newVal.length;
|
|
305
|
+
while (start < oldEnd && oldVal.charCodeAt(start) === newVal.charCodeAt(start)) {
|
|
306
|
+
start += 1;
|
|
307
|
+
}
|
|
308
|
+
while (oldEnd > start && newEnd > start && oldVal.charCodeAt(oldEnd - 1) === newVal.charCodeAt(newEnd - 1)) {
|
|
309
|
+
oldEnd -= 1;
|
|
310
|
+
newEnd -= 1;
|
|
311
|
+
}
|
|
312
|
+
return {
|
|
313
|
+
from: start,
|
|
314
|
+
to: oldEnd,
|
|
315
|
+
text: newVal.slice(start, newEnd)
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
class CodeMirrorView {
|
|
319
|
+
constructor(options) {
|
|
320
|
+
var _a;
|
|
321
|
+
this.updating = false;
|
|
322
|
+
// Store for later
|
|
323
|
+
this.node = options.node;
|
|
324
|
+
this.view = options.view;
|
|
325
|
+
const cmExtensions = ((_a = options.cmOptions) === null || _a === void 0 ? void 0 : _a.extensions) || [];
|
|
326
|
+
this.name = 'codeBlock', this.getPos = options.getPos;
|
|
327
|
+
const changeFilter = EditorState.changeFilter.of(tr => {
|
|
328
|
+
if (!tr.docChanged && !this.updating) {
|
|
329
|
+
this.forwardSelection();
|
|
330
|
+
}
|
|
331
|
+
return true;
|
|
332
|
+
});
|
|
333
|
+
// Create a CodeMirror instancew
|
|
334
|
+
this.cm = new EditorView({
|
|
335
|
+
dispatch: this.dispatch.bind(this)
|
|
336
|
+
});
|
|
337
|
+
// The editor's outer node is our DOM representation
|
|
338
|
+
this.dom = this.cm.dom;
|
|
339
|
+
const cmState = EditorState.create({
|
|
340
|
+
doc: this.node.textContent,
|
|
341
|
+
extensions: [theme, changeFilter, highlightActiveLine(), highlightActiveLineGutter(), lineNumbers(), keymap.of([{
|
|
342
|
+
key: 'ArrowUp',
|
|
343
|
+
run: this.mayBeEscape('line', -1)
|
|
344
|
+
}, {
|
|
345
|
+
key: 'ArrowLeft',
|
|
346
|
+
run: this.mayBeEscape('char', -1)
|
|
347
|
+
}, {
|
|
348
|
+
key: 'ArrowDown',
|
|
349
|
+
run: this.mayBeEscape('line', 1)
|
|
350
|
+
}, {
|
|
351
|
+
key: 'ArrowRight',
|
|
352
|
+
run: this.mayBeEscape('char', 1)
|
|
353
|
+
}, {
|
|
354
|
+
key: 'Ctrl-Enter',
|
|
355
|
+
run: () => {
|
|
356
|
+
if (exitCode(this.view.state, this.view.dispatch)) {
|
|
357
|
+
this.view.focus();
|
|
358
|
+
return true;
|
|
359
|
+
}
|
|
360
|
+
return false;
|
|
361
|
+
}
|
|
362
|
+
}]), cmExtensions]
|
|
363
|
+
});
|
|
364
|
+
this.cm.setState(cmState);
|
|
365
|
+
}
|
|
366
|
+
forwardSelection() {
|
|
367
|
+
if (!this.cm.hasFocus) {
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
const {
|
|
371
|
+
state
|
|
372
|
+
} = this.view;
|
|
373
|
+
const selection = this.asProseMirrorSelection(state.doc);
|
|
374
|
+
if (!selection.eq(state.selection)) {
|
|
375
|
+
this.view.dispatch(state.tr.setSelection(selection));
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
asProseMirrorSelection(doc) {
|
|
379
|
+
const offset = this.getPos() + 1;
|
|
380
|
+
const {
|
|
381
|
+
anchor,
|
|
382
|
+
head
|
|
383
|
+
} = this.cm.state.selection.main;
|
|
384
|
+
return TextSelection.create(doc, anchor + offset, head + offset);
|
|
385
|
+
}
|
|
386
|
+
dispatch(cmTr) {
|
|
387
|
+
this.cm.setState(cmTr.state);
|
|
388
|
+
if (cmTr.docChanged && !this.updating) {
|
|
389
|
+
const start = this.getPos() + 1;
|
|
390
|
+
const cmValue = cmTr.state.doc.toString();
|
|
391
|
+
const change = computeChange(this.node.textContent, cmValue);
|
|
392
|
+
if (!change) {
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
const content = change.text ? this.view.state.schema.text(change.text) : null;
|
|
396
|
+
const tr = this.view.state.tr.replaceWith(change.from + start, change.to + start, content);
|
|
397
|
+
this.view.dispatch(tr);
|
|
398
|
+
this.forwardSelection();
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
mayBeEscape(unit, dir) {
|
|
402
|
+
return view => {
|
|
403
|
+
const {
|
|
404
|
+
state
|
|
405
|
+
} = view;
|
|
406
|
+
const {
|
|
407
|
+
selection
|
|
408
|
+
} = state;
|
|
409
|
+
const offsetToPos = () => {
|
|
410
|
+
const offset = selection.main.from;
|
|
411
|
+
const line = state.doc.lineAt(offset);
|
|
412
|
+
return {
|
|
413
|
+
line: line.number,
|
|
414
|
+
ch: offset - line.from
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
const pos = offsetToPos();
|
|
418
|
+
const hasSelection = state.selection.ranges.some(r => !r.empty);
|
|
419
|
+
const firstLine = 1;
|
|
420
|
+
const lastLine = state.doc.lineAt(state.doc.length).number;
|
|
421
|
+
if (hasSelection || pos.line !== (dir < 0 ? firstLine : lastLine) || unit === 'char' && pos.ch !== (dir < 0 ? 0 : state.doc.line(pos.line).length)) {
|
|
422
|
+
return false;
|
|
423
|
+
}
|
|
424
|
+
const targetPos = this.getPos() + (dir < 0 ? 0 : this.node.nodeSize);
|
|
425
|
+
const pmSelection = Selection.near(this.view.state.doc.resolve(targetPos), dir);
|
|
426
|
+
this.view.dispatch(this.view.state.tr.setSelection(pmSelection).scrollIntoView());
|
|
427
|
+
this.view.focus();
|
|
428
|
+
return true;
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
update(node) {
|
|
432
|
+
if (node.type !== this.node.type) {
|
|
433
|
+
return false;
|
|
434
|
+
}
|
|
435
|
+
this.node = node;
|
|
436
|
+
const change = computeChange(this.cm.state.doc.toString(), node.textContent);
|
|
437
|
+
if (change) {
|
|
438
|
+
this.updating = true;
|
|
439
|
+
this.cm.dispatch({
|
|
440
|
+
changes: {
|
|
441
|
+
from: change.from,
|
|
442
|
+
to: change.to,
|
|
443
|
+
insert: change.text
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
this.updating = false;
|
|
447
|
+
}
|
|
448
|
+
return true;
|
|
449
|
+
}
|
|
450
|
+
setSelection(anchor, head) {
|
|
451
|
+
this.focus();
|
|
452
|
+
this.updating = true;
|
|
453
|
+
this.cm.dispatch({
|
|
454
|
+
selection: {
|
|
455
|
+
anchor,
|
|
456
|
+
head
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
this.updating = false;
|
|
460
|
+
}
|
|
461
|
+
focus() {
|
|
462
|
+
this.cm.focus();
|
|
463
|
+
this.forwardSelection();
|
|
464
|
+
}
|
|
465
|
+
selectNode() {
|
|
466
|
+
this.focus();
|
|
467
|
+
}
|
|
468
|
+
stopEvent() {
|
|
469
|
+
return true;
|
|
470
|
+
}
|
|
471
|
+
destroy() {
|
|
472
|
+
this.cm.destroy();
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
var CodeBlockView = CodeMirrorView;
|
|
476
|
+
|
|
477
|
+
var codemirrorNode = Node.create({
|
|
478
|
+
name: 'codeBlock',
|
|
479
|
+
content: 'text*',
|
|
480
|
+
marks: '',
|
|
481
|
+
group: 'block',
|
|
482
|
+
code: true,
|
|
483
|
+
defining: true,
|
|
484
|
+
isolating: true,
|
|
485
|
+
parseHTML() {
|
|
486
|
+
return [{
|
|
487
|
+
tag: 'pre',
|
|
488
|
+
preserveWhitespace: 'full'
|
|
489
|
+
}];
|
|
490
|
+
},
|
|
491
|
+
renderHTML() {
|
|
492
|
+
return ['pre', ['code', 0]];
|
|
493
|
+
},
|
|
494
|
+
addNodeView() {
|
|
495
|
+
return ({
|
|
496
|
+
node,
|
|
497
|
+
editor,
|
|
498
|
+
getPos
|
|
499
|
+
}) => {
|
|
500
|
+
return new CodeBlockView({
|
|
501
|
+
node,
|
|
502
|
+
view: editor.view,
|
|
503
|
+
getPos: getPos,
|
|
504
|
+
cmOptions: {
|
|
505
|
+
extensions: [minimalSetup, javascript()]
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
|
|
512
|
+
const mdSerializerNodes = {
|
|
513
|
+
...defaultMarkdownSerializer.nodes,
|
|
514
|
+
[Paragraph.name]: defaultMarkdownSerializer.nodes.paragraph,
|
|
515
|
+
[BulletList.name]: defaultMarkdownSerializer.nodes.bullet_list,
|
|
516
|
+
[ListItem.name]: defaultMarkdownSerializer.nodes.list_item,
|
|
517
|
+
[OrderedList.name]: defaultMarkdownSerializer.nodes.ordered_list,
|
|
518
|
+
[HardBreak.name]: defaultMarkdownSerializer.nodes.hard_break,
|
|
519
|
+
[CodeBlock.name]: defaultMarkdownSerializer.nodes.code_block,
|
|
520
|
+
[Blockquote.name]: defaultMarkdownSerializer.nodes.blockquote,
|
|
521
|
+
[HorizontalRule.name]: defaultMarkdownSerializer.nodes.horizontal_rule
|
|
522
|
+
};
|
|
523
|
+
const mdSerializerMarks = {
|
|
524
|
+
...defaultMarkdownSerializer.marks,
|
|
525
|
+
[Bold.name]: defaultMarkdownSerializer.marks.strong,
|
|
526
|
+
[Strike.name]: {
|
|
527
|
+
open: '~~',
|
|
528
|
+
close: '~~',
|
|
529
|
+
mixable: true,
|
|
530
|
+
expelEnclosingWhitespace: true
|
|
531
|
+
},
|
|
532
|
+
[Italic.name]: {
|
|
533
|
+
open: ' _',
|
|
534
|
+
close: '_ ',
|
|
535
|
+
mixable: true,
|
|
536
|
+
expelEnclosingWhitespace: true
|
|
537
|
+
},
|
|
538
|
+
[Highlight.name]: {
|
|
539
|
+
open: '==',
|
|
540
|
+
close: '==',
|
|
541
|
+
mixable: true,
|
|
542
|
+
expelEnclosingWhitespace: true
|
|
543
|
+
},
|
|
544
|
+
[Underline.name]: {
|
|
545
|
+
open: '',
|
|
546
|
+
close: '',
|
|
547
|
+
mixable: true,
|
|
548
|
+
expelEnclosingWhitespace: true
|
|
549
|
+
},
|
|
550
|
+
[Link.name]: {
|
|
551
|
+
open(state, mark, parent, index) {
|
|
552
|
+
return isPlainURL(mark, parent, index, 1) ? '<' : '[';
|
|
553
|
+
},
|
|
554
|
+
close(state, mark, parent, index) {
|
|
555
|
+
const href = mark.attrs.canonicalSrc || mark.attrs.href;
|
|
556
|
+
return isPlainURL(mark, parent, index, -1) ? '>' : `](${state.esc(href)}${mark.attrs.title ? ` ${state.quote(mark.attrs.title)}` : ''})`;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
function isPlainURL(link, parent, index, side) {
|
|
561
|
+
if (link.attrs.title || !/^\w+:/.test(link.attrs.href)) return false;
|
|
562
|
+
const content = parent.child(index + (side < 0 ? -1 : 0));
|
|
563
|
+
if (!content.isText || content.text !== link.attrs.href || content.marks[content.marks.length - 1] !== link) return false;
|
|
564
|
+
if (index === (side < 0 ? 1 : parent.childCount - 1)) return true;
|
|
565
|
+
const next = parent.child(index + (side < 0 ? -2 : 1));
|
|
566
|
+
return !link.isInSet(next.marks);
|
|
567
|
+
}
|
|
568
|
+
function serialize(schema, content) {
|
|
569
|
+
const mdSerializer = new MarkdownSerializer(mdSerializerNodes, mdSerializerMarks);
|
|
570
|
+
const proseMirrorDocument = schema.nodeFromJSON(content);
|
|
571
|
+
return mdSerializer.serialize(proseMirrorDocument, {
|
|
572
|
+
tightLists: true
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
function deserialize(schema, content) {
|
|
576
|
+
if (!content) return null;
|
|
577
|
+
const html = marked.parse(content);
|
|
578
|
+
if (!html) return null;
|
|
579
|
+
const parser = new DOMParser();
|
|
580
|
+
const {
|
|
581
|
+
body
|
|
582
|
+
} = parser.parseFromString(html, 'text/html');
|
|
583
|
+
// append original source as a comment that nodes can access
|
|
584
|
+
body.append(document.createComment(content));
|
|
585
|
+
const state = DOMParser$1.fromSchema(schema).parse(body);
|
|
586
|
+
return state.toJSON();
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
var script = defineComponent({
|
|
590
|
+
name: 'OrRichTextEditor',
|
|
591
|
+
components: {
|
|
592
|
+
OrButton: script$1,
|
|
593
|
+
OrError: script$2,
|
|
594
|
+
OrHint: script$3,
|
|
595
|
+
OrIconButton: script$4,
|
|
596
|
+
OrInput: script$5,
|
|
597
|
+
OrInputBox: script$6,
|
|
598
|
+
OrLabel: script$7,
|
|
599
|
+
OrMenu: script$8,
|
|
600
|
+
OrMenuItem: script$9,
|
|
601
|
+
OrModal: script$a,
|
|
602
|
+
OrPopover: script$b
|
|
603
|
+
},
|
|
604
|
+
model: {
|
|
605
|
+
prop: 'modelValue',
|
|
606
|
+
event: 'update:modelValue'
|
|
607
|
+
},
|
|
608
|
+
props: {
|
|
609
|
+
modelValue: {
|
|
610
|
+
type: String,
|
|
611
|
+
default: undefined
|
|
612
|
+
},
|
|
613
|
+
toolbar: {
|
|
614
|
+
type: Array,
|
|
615
|
+
default: () => []
|
|
616
|
+
},
|
|
617
|
+
autofocus: {
|
|
618
|
+
type: Boolean,
|
|
619
|
+
default: false
|
|
620
|
+
},
|
|
621
|
+
format: {
|
|
622
|
+
type: String,
|
|
623
|
+
default: () => Formats.Markup
|
|
624
|
+
},
|
|
625
|
+
label: {
|
|
626
|
+
type: String,
|
|
627
|
+
default: undefined
|
|
628
|
+
},
|
|
629
|
+
placeholder: {
|
|
630
|
+
type: String,
|
|
631
|
+
default: undefined
|
|
632
|
+
},
|
|
633
|
+
hint: {
|
|
634
|
+
type: String,
|
|
635
|
+
default: undefined
|
|
636
|
+
},
|
|
637
|
+
error: {
|
|
638
|
+
type: [String, Boolean],
|
|
639
|
+
default: undefined
|
|
640
|
+
},
|
|
641
|
+
required: {
|
|
642
|
+
type: Boolean,
|
|
643
|
+
default: false
|
|
644
|
+
},
|
|
645
|
+
disabled: {
|
|
646
|
+
type: Boolean,
|
|
647
|
+
default: false
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
emits: ['update:modelValue', 'input', 'file-upload'],
|
|
651
|
+
expose: ['root', 'editor'],
|
|
652
|
+
setup(props, context) {
|
|
653
|
+
let editor = shallowRef();
|
|
654
|
+
const controlRef = ref();
|
|
655
|
+
const toolbarRef = ref();
|
|
656
|
+
// Refs & Styles
|
|
657
|
+
const root = ref();
|
|
658
|
+
const textareaRef = ref();
|
|
659
|
+
const containerRef = ref();
|
|
660
|
+
const moreButtonRef = ref();
|
|
661
|
+
const moreRef = ref();
|
|
662
|
+
const toolbarButtonRef = ref();
|
|
663
|
+
const menuRef = ref();
|
|
664
|
+
// isActive should be set with default values for all toolbar buttons, otherwise it will not work in vue2
|
|
665
|
+
const isActive = ref({
|
|
666
|
+
bold: false,
|
|
667
|
+
italic: false,
|
|
668
|
+
underline: false,
|
|
669
|
+
strike: false,
|
|
670
|
+
bulletList: false,
|
|
671
|
+
orderedList: false,
|
|
672
|
+
link: false,
|
|
673
|
+
highlight: false,
|
|
674
|
+
redo: false,
|
|
675
|
+
undo: false,
|
|
676
|
+
codeBlock: false,
|
|
677
|
+
blockquote: false,
|
|
678
|
+
file: false,
|
|
679
|
+
source: false
|
|
680
|
+
});
|
|
681
|
+
const isFocused = ref(props.autofocus);
|
|
682
|
+
const headingLevels = [1, 2, 3, 4];
|
|
683
|
+
const activeHeadingLevel = ref(0);
|
|
684
|
+
const markdownOutput = ref('');
|
|
685
|
+
const isOpenLinkModal = ref(false);
|
|
686
|
+
const disableMarkdown = ref(false);
|
|
687
|
+
const text = ref('');
|
|
688
|
+
const link = ref('');
|
|
689
|
+
const countOfNotVisibleTools = ref(0);
|
|
690
|
+
const sourceValue = ref('');
|
|
691
|
+
let trap = useFocusTrap(controlRef, {
|
|
692
|
+
fallbackFocus: '.container',
|
|
693
|
+
allowOutsideClick: true
|
|
694
|
+
});
|
|
695
|
+
useResizeObserver(root, useDebounceFn(entries => {
|
|
696
|
+
var _a, _b;
|
|
697
|
+
const entry = entries[0];
|
|
698
|
+
const {
|
|
699
|
+
width
|
|
700
|
+
} = entry.contentRect;
|
|
701
|
+
if (containerRef.value && toolbarRef.value && toolbarLength.value) {
|
|
702
|
+
let lengthOfItem = 0;
|
|
703
|
+
lengthOfItem = ((_b = (_a = toolbarRef.value.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild) === null || _b === void 0 ? void 0 : _b.offsetWidth) + 16;
|
|
704
|
+
const count = width / lengthOfItem - 2;
|
|
705
|
+
countOfNotVisibleTools.value = Math.round(toolbarLength.value - count);
|
|
706
|
+
}
|
|
707
|
+
}, 10));
|
|
708
|
+
onMounted(() => {
|
|
709
|
+
editor.value = new Editor({
|
|
710
|
+
onUpdate: ({
|
|
711
|
+
editor
|
|
712
|
+
}) => {
|
|
713
|
+
isFocused.value = true;
|
|
714
|
+
setActiveFormats();
|
|
715
|
+
const html = editor.getHTML();
|
|
716
|
+
const text = editor.getText();
|
|
717
|
+
if (props.format === 'markdown') {
|
|
718
|
+
markdownOutput.value = serialize(editor.schema, editor.getJSON());
|
|
719
|
+
model.value = markdownOutput.value;
|
|
720
|
+
} else {
|
|
721
|
+
model.value = text === '' ? text : html;
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
onCreate: ({
|
|
725
|
+
editor
|
|
726
|
+
}) => {
|
|
727
|
+
if (props.format === 'markdown') {
|
|
728
|
+
editor.commands.setContent(deserialize(editor.schema, model.value));
|
|
729
|
+
} else {
|
|
730
|
+
editor.commands.setContent(model.value);
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
element: controlRef.value,
|
|
734
|
+
autofocus: props.autofocus,
|
|
735
|
+
enableInputRules: true,
|
|
736
|
+
enablePasteRules: true,
|
|
737
|
+
extensions: [codemirrorNode, StarterKit.configure({
|
|
738
|
+
heading: false,
|
|
739
|
+
codeBlock: false,
|
|
740
|
+
paragraph: false,
|
|
741
|
+
bulletList: false,
|
|
742
|
+
orderedList: false,
|
|
743
|
+
blockquote: false
|
|
744
|
+
}), Paragraph.configure({
|
|
745
|
+
HTMLAttributes: {
|
|
746
|
+
class: 'my-xs'
|
|
747
|
+
}
|
|
748
|
+
}), BulletList.configure({
|
|
749
|
+
HTMLAttributes: {
|
|
750
|
+
class: 'mx-lg my-xs list-disc'
|
|
751
|
+
}
|
|
752
|
+
}), OrderedList.configure({
|
|
753
|
+
HTMLAttributes: {
|
|
754
|
+
class: 'mx-lg my-xs list-decimal'
|
|
755
|
+
}
|
|
756
|
+
}), Blockquote.configure({
|
|
757
|
+
HTMLAttributes: {
|
|
758
|
+
class: 'my-sm mx-lg px-lg border-l-2 border-outline'
|
|
759
|
+
}
|
|
760
|
+
}), Heading.configure({
|
|
761
|
+
levels: headingLevels
|
|
762
|
+
}).extend({
|
|
763
|
+
levels: headingLevels,
|
|
764
|
+
renderHTML({
|
|
765
|
+
node,
|
|
766
|
+
HTMLAttributes
|
|
767
|
+
}) {
|
|
768
|
+
return ['h' + node.attrs.level, mergeAttributes(HTMLAttributes, {
|
|
769
|
+
class: `typography-headline-${node.attrs.level} my-xs`
|
|
770
|
+
}), 0];
|
|
771
|
+
}
|
|
772
|
+
}), Underline, Link.configure({
|
|
773
|
+
openOnClick: true,
|
|
774
|
+
linkOnPaste: true,
|
|
775
|
+
autolink: false,
|
|
776
|
+
protocols: ['ftp', 'mailto', 'http', 'https'],
|
|
777
|
+
validate: href => /^https?:\/\//.test(href),
|
|
778
|
+
HTMLAttributes: {
|
|
779
|
+
class: 'text-primary cursor-pointer'
|
|
780
|
+
}
|
|
781
|
+
}), Highlight, Placeholder.configure({
|
|
782
|
+
placeholder: props.placeholder,
|
|
783
|
+
emptyEditorClass: 'is-editor-empty text-outline'
|
|
784
|
+
})],
|
|
785
|
+
editorProps: {
|
|
786
|
+
attributes: {
|
|
787
|
+
class: 'flex flex-col focus:outline-none gap-xs h-full'
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
parseOptions: {
|
|
791
|
+
preserveWhitespace: true
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
setActiveFormats();
|
|
795
|
+
trap.activate();
|
|
796
|
+
});
|
|
797
|
+
onBeforeUnmount(() => {
|
|
798
|
+
var _a;
|
|
799
|
+
(_a = editor.value) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
800
|
+
});
|
|
801
|
+
onClickOutside(root, () => {
|
|
802
|
+
isFocused.value = false;
|
|
803
|
+
trap.deactivate();
|
|
804
|
+
});
|
|
805
|
+
// Computed
|
|
806
|
+
const model = computed({
|
|
807
|
+
get: () => {
|
|
808
|
+
return props.modelValue;
|
|
809
|
+
},
|
|
810
|
+
set: value => {
|
|
811
|
+
context.emit('input', value);
|
|
812
|
+
context.emit('update:modelValue', value);
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
const getIndexOfHeading = computed(() => {
|
|
816
|
+
return props.toolbar.flat().indexOf('heading');
|
|
817
|
+
});
|
|
818
|
+
const getRichTextEditorIcon = computed(() => item => {
|
|
819
|
+
return RichTextEditorIcons[item];
|
|
820
|
+
});
|
|
821
|
+
const getRichTextEditorTooltipIcon = computed(() => item => {
|
|
822
|
+
return RichTextEditorTooltips[item];
|
|
823
|
+
});
|
|
824
|
+
const headingIcon = computed(() => {
|
|
825
|
+
if (activeHeadingLevel.value && isActive.value.heading) {
|
|
826
|
+
return `format_h${activeHeadingLevel.value}`;
|
|
827
|
+
}
|
|
828
|
+
return 'format_paragraph';
|
|
829
|
+
});
|
|
830
|
+
const toolbarLength = computed(() => {
|
|
831
|
+
return props.toolbar.flat().length;
|
|
832
|
+
});
|
|
833
|
+
const notVisibleTools = computed(() => {
|
|
834
|
+
const count = countOfNotVisibleTools.value;
|
|
835
|
+
const toolbar = props.toolbar.flat();
|
|
836
|
+
let notVisible = new Set(toolbar.slice(toolbar.length - count, toolbar.length));
|
|
837
|
+
props.toolbar.forEach(tools => {
|
|
838
|
+
if (tools.some(item => notVisible.has(item))) {
|
|
839
|
+
tools.forEach(item => notVisible.add(item));
|
|
840
|
+
}
|
|
841
|
+
});
|
|
842
|
+
return notVisible;
|
|
843
|
+
});
|
|
844
|
+
//Methods
|
|
845
|
+
const handleEditorClick = () => {
|
|
846
|
+
var _a, _b, _c;
|
|
847
|
+
setActiveFormats();
|
|
848
|
+
isFocused.value = true;
|
|
849
|
+
(_a = editor.value) === null || _a === void 0 ? void 0 : _a.commands.focus();
|
|
850
|
+
activeHeadingLevel.value = ((_c = (_b = editor.value) === null || _b === void 0 ? void 0 : _b.getAttributes('heading')) === null || _c === void 0 ? void 0 : _c.level) || 0;
|
|
851
|
+
};
|
|
852
|
+
const isVisible = value => {
|
|
853
|
+
if (e(value)) {
|
|
854
|
+
const isHaveNotVisibleTools = value.some(item => notVisibleTools.value.has(item));
|
|
855
|
+
return isHaveNotVisibleTools;
|
|
856
|
+
}
|
|
857
|
+
return !notVisibleTools.value.has(value);
|
|
858
|
+
};
|
|
859
|
+
const handleInput = event => {
|
|
860
|
+
var _a, _b, _c, _d;
|
|
861
|
+
const target = event.target;
|
|
862
|
+
const value = target.value;
|
|
863
|
+
(_a = editor.value) === null || _a === void 0 ? void 0 : _a.commands.setContent(deserialize((_b = editor.value) === null || _b === void 0 ? void 0 : _b.schema, value));
|
|
864
|
+
markdownOutput.value = serialize((_c = editor.value) === null || _c === void 0 ? void 0 : _c.schema, (_d = editor.value) === null || _d === void 0 ? void 0 : _d.getJSON());
|
|
865
|
+
model.value = markdownOutput.value;
|
|
866
|
+
};
|
|
867
|
+
const handleToolbarClick = (item, level) => {
|
|
868
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
869
|
+
switch (item) {
|
|
870
|
+
case 'source':
|
|
871
|
+
disableMarkdown.value = !disableMarkdown.value;
|
|
872
|
+
sourceValue.value = serialize((_a = editor.value) === null || _a === void 0 ? void 0 : _a.schema, (_b = editor.value) === null || _b === void 0 ? void 0 : _b.getJSON());
|
|
873
|
+
(_c = textareaRef.value) === null || _c === void 0 ? void 0 : _c.style.setProperty('height', `${((_d = controlRef.value) === null || _d === void 0 ? void 0 : _d.offsetHeight) || 88}px`);
|
|
874
|
+
nextTick(() => {
|
|
875
|
+
var _a;
|
|
876
|
+
return (_a = textareaRef.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
877
|
+
});
|
|
878
|
+
break;
|
|
879
|
+
case 'bulletList':
|
|
880
|
+
case 'orderedList':
|
|
881
|
+
item === 'bulletList' ? (_e = editor.value) === null || _e === void 0 ? void 0 : _e.commands.toggleBulletList() : (_f = editor.value) === null || _f === void 0 ? void 0 : _f.commands.toggleOrderedList();
|
|
882
|
+
break;
|
|
883
|
+
case 'link':
|
|
884
|
+
if (editor.value) {
|
|
885
|
+
const cursorPosition = ((_g = editor.value) === null || _g === void 0 ? void 0 : _g.state.selection.$anchor.pos) || 0;
|
|
886
|
+
const {
|
|
887
|
+
from,
|
|
888
|
+
to,
|
|
889
|
+
empty
|
|
890
|
+
} = editor.value.state.selection;
|
|
891
|
+
const isLink = (_h = editor.value.view.state.doc.nodeAt(cursorPosition)) === null || _h === void 0 ? void 0 : _h.marks.filter(mark => mark.type.name === 'link');
|
|
892
|
+
const existedText = (isLink === null || isLink === void 0 ? void 0 : isLink.length) ? ((_j = editor.value.view.state.doc.nodeAt(cursorPosition)) === null || _j === void 0 ? void 0 : _j.text) || '' : '';
|
|
893
|
+
text.value = empty ? existedText : editor.value.state.doc.textBetween(from, to, ' ');
|
|
894
|
+
link.value = editor.value.getAttributes('link').href || '';
|
|
895
|
+
}
|
|
896
|
+
isOpenLinkModal.value = !isOpenLinkModal.value;
|
|
897
|
+
break;
|
|
898
|
+
case 'blockquote':
|
|
899
|
+
(_k = editor.value) === null || _k === void 0 ? void 0 : _k.chain().toggleBlockquote().run();
|
|
900
|
+
break;
|
|
901
|
+
case 'codeBlock':
|
|
902
|
+
if (!isActive.value['codeBlock']) {
|
|
903
|
+
(_l = editor.value) === null || _l === void 0 ? void 0 : _l.commands.setNode(item, {
|
|
904
|
+
language: 'javascript'
|
|
905
|
+
});
|
|
906
|
+
} else {
|
|
907
|
+
(_m = editor.value) === null || _m === void 0 ? void 0 : _m.commands.setNode('paragraph');
|
|
908
|
+
}
|
|
909
|
+
break;
|
|
910
|
+
case 'heading':
|
|
911
|
+
if (!level) {
|
|
912
|
+
(_o = editor.value) === null || _o === void 0 ? void 0 : _o.commands.setParagraph();
|
|
913
|
+
activeHeadingLevel.value = 0;
|
|
914
|
+
} else {
|
|
915
|
+
activeHeadingLevel.value = level;
|
|
916
|
+
(_p = editor.value) === null || _p === void 0 ? void 0 : _p.commands.toggleHeading({
|
|
917
|
+
level: level
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
break;
|
|
921
|
+
case 'undo':
|
|
922
|
+
case 'redo':
|
|
923
|
+
item === 'undo' ? (_q = editor.value) === null || _q === void 0 ? void 0 : _q.commands.undo() : (_r = editor.value) === null || _r === void 0 ? void 0 : _r.commands.redo();
|
|
924
|
+
break;
|
|
925
|
+
case 'file':
|
|
926
|
+
context.emit('file-upload');
|
|
927
|
+
break;
|
|
928
|
+
default:
|
|
929
|
+
(_s = editor.value) === null || _s === void 0 ? void 0 : _s.chain().toggleMark(item).run();
|
|
930
|
+
break;
|
|
931
|
+
}
|
|
932
|
+
};
|
|
933
|
+
const attachLink = async () => {
|
|
934
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
935
|
+
// empty
|
|
936
|
+
if (link.value === '') {
|
|
937
|
+
(_a = editor.value) === null || _a === void 0 ? void 0 : _a.chain().focus().extendMarkRange('link').unsetLink().run();
|
|
938
|
+
}
|
|
939
|
+
const isEmptySelection = (_b = editor.value) === null || _b === void 0 ? void 0 : _b.state.selection.empty;
|
|
940
|
+
const cursorPosition = ((_c = editor.value) === null || _c === void 0 ? void 0 : _c.state.selection.$anchor.pos) || 0;
|
|
941
|
+
const isLink = (_e = (_d = editor.value) === null || _d === void 0 ? void 0 : _d.view.state.doc.nodeAt(cursorPosition)) === null || _e === void 0 ? void 0 : _e.marks.filter(mark => mark.type.name === 'link');
|
|
942
|
+
const existedText = (isLink === null || isLink === void 0 ? void 0 : isLink.length) ? (_g = (_f = editor.value) === null || _f === void 0 ? void 0 : _f.view.state.doc.nodeAt(cursorPosition)) === null || _g === void 0 ? void 0 : _g.text : '';
|
|
943
|
+
if (link.value && isEmptySelection && !existedText) {
|
|
944
|
+
(_h = editor.value) === null || _h === void 0 ? void 0 : _h.chain().focus().setMark('link', {
|
|
945
|
+
href: link.value,
|
|
946
|
+
target: '__blank'
|
|
947
|
+
}).command(({
|
|
948
|
+
tr
|
|
949
|
+
}) => {
|
|
950
|
+
const preparedValue = text.value[text.value.length - 1] === ' ' ? text.value : `${text.value} `;
|
|
951
|
+
tr.insertText(preparedValue);
|
|
952
|
+
return true;
|
|
953
|
+
}).run();
|
|
954
|
+
}
|
|
955
|
+
if (link.value && existedText === text.value && isEmptySelection) {
|
|
956
|
+
(_j = editor.value) === null || _j === void 0 ? void 0 : _j.chain().extendMarkRange('link').updateAttributes('link', {
|
|
957
|
+
href: link.value
|
|
958
|
+
}).run();
|
|
959
|
+
}
|
|
960
|
+
if (link.value && !isEmptySelection) {
|
|
961
|
+
(_k = editor.value) === null || _k === void 0 ? void 0 : _k.chain().focus().setMark('link', {
|
|
962
|
+
href: link.value,
|
|
963
|
+
target: '__blank'
|
|
964
|
+
}).run();
|
|
965
|
+
}
|
|
966
|
+
text.value = '';
|
|
967
|
+
link.value = '';
|
|
968
|
+
isOpenLinkModal.value = false;
|
|
969
|
+
};
|
|
970
|
+
const discardLink = () => {
|
|
971
|
+
isOpenLinkModal.value = false;
|
|
972
|
+
};
|
|
973
|
+
const setActiveFormats = () => {
|
|
974
|
+
const toolbarList = props.toolbar.flat();
|
|
975
|
+
toolbarList.forEach(item => {
|
|
976
|
+
var _a;
|
|
977
|
+
if (item === 'source') {
|
|
978
|
+
isActive.value[item] = disableMarkdown.value;
|
|
979
|
+
} else {
|
|
980
|
+
isActive.value[item] = ((_a = editor.value) === null || _a === void 0 ? void 0 : _a.isActive(item)) || false;
|
|
981
|
+
}
|
|
982
|
+
});
|
|
983
|
+
};
|
|
984
|
+
// Effects
|
|
985
|
+
watch([editor, model, () => props.disabled], ([editor, model, disabled]) => {
|
|
986
|
+
if (model !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && props.format !== 'markdown') {
|
|
987
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setContent(model);
|
|
988
|
+
}
|
|
989
|
+
if (model !== markdownOutput.value && props.format === 'markdown') {
|
|
990
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, model));
|
|
991
|
+
}
|
|
992
|
+
editor === null || editor === void 0 ? void 0 : editor.setEditable(!disabled);
|
|
993
|
+
});
|
|
994
|
+
// Styles
|
|
995
|
+
const rootStyles = computed(() => ['or-rich-text-editor-v3', ...RichTextEditor]);
|
|
996
|
+
const toolbarStyles = computed(() => [...RichTextEditorToolbar]);
|
|
997
|
+
const toolbarGroupStyles = computed(() => [...RichTextEditorToolbarGroup]);
|
|
998
|
+
const controlStyles = computed(() => ['tiptap-editor-v3', ...RichTextEditorControl]);
|
|
999
|
+
return {
|
|
1000
|
+
root,
|
|
1001
|
+
rootStyles,
|
|
1002
|
+
toolbarRef,
|
|
1003
|
+
toolbarStyles,
|
|
1004
|
+
toolbarGroupStyles,
|
|
1005
|
+
controlRef,
|
|
1006
|
+
controlStyles,
|
|
1007
|
+
editor,
|
|
1008
|
+
containerRef,
|
|
1009
|
+
toolbarButtonRef,
|
|
1010
|
+
moreButtonRef,
|
|
1011
|
+
textareaRef,
|
|
1012
|
+
moreRef,
|
|
1013
|
+
menuRef,
|
|
1014
|
+
handleToolbarClick,
|
|
1015
|
+
handleEditorClick,
|
|
1016
|
+
isActive,
|
|
1017
|
+
getRichTextEditorIcon,
|
|
1018
|
+
getRichTextEditorTooltipIcon,
|
|
1019
|
+
getIndexOfHeading,
|
|
1020
|
+
headingLevels,
|
|
1021
|
+
headingIcon,
|
|
1022
|
+
attachLink,
|
|
1023
|
+
discardLink,
|
|
1024
|
+
isOpenLinkModal,
|
|
1025
|
+
text,
|
|
1026
|
+
link,
|
|
1027
|
+
isFocused,
|
|
1028
|
+
isVisible,
|
|
1029
|
+
countOfNotVisibleTools,
|
|
1030
|
+
notVisibleTools,
|
|
1031
|
+
handleInput,
|
|
1032
|
+
model,
|
|
1033
|
+
disableMarkdown,
|
|
1034
|
+
sourceValue,
|
|
1035
|
+
activeHeadingLevel
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
});
|
|
1039
|
+
|
|
1040
|
+
const _hoisted_1 = ["disabled"];
|
|
1041
|
+
const _hoisted_2 = ["disabled"];
|
|
1042
|
+
const _hoisted_3 = {
|
|
1043
|
+
class: /*#__PURE__*/normalizeClass(['p-sm', 'overflow-auto', 'min-h-[88px]', 'h-full'])
|
|
1044
|
+
};
|
|
1045
|
+
const _hoisted_4 = ["activated"];
|
|
1046
|
+
const _hoisted_5 = {
|
|
1047
|
+
class: "flex p-sm gap-md"
|
|
1048
|
+
};
|
|
1049
|
+
const _hoisted_6 = {
|
|
1050
|
+
class: /*#__PURE__*/normalizeClass(['layout-column', 'gap-md'])
|
|
1051
|
+
};
|
|
1052
|
+
const _hoisted_7 = {
|
|
1053
|
+
class: /*#__PURE__*/normalizeClass(['layout-row-reverse', 'gap-md'])
|
|
1054
|
+
};
|
|
1055
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1056
|
+
const _component_OrLabel = resolveComponent("OrLabel");
|
|
1057
|
+
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
1058
|
+
const _component_OrInputBox = resolveComponent("OrInputBox");
|
|
1059
|
+
const _component_OrHint = resolveComponent("OrHint");
|
|
1060
|
+
const _component_OrError = resolveComponent("OrError");
|
|
1061
|
+
const _component_OrPopover = resolveComponent("OrPopover");
|
|
1062
|
+
const _component_OrMenuItem = resolveComponent("OrMenuItem");
|
|
1063
|
+
const _component_OrMenu = resolveComponent("OrMenu");
|
|
1064
|
+
const _component_OrInput = resolveComponent("OrInput");
|
|
1065
|
+
const _component_OrButton = resolveComponent("OrButton");
|
|
1066
|
+
const _component_OrModal = resolveComponent("OrModal");
|
|
1067
|
+
return openBlock(), createElementBlock("div", {
|
|
1068
|
+
ref: 'root',
|
|
1069
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
1070
|
+
}, [_ctx.$slots.label || _ctx.$slots.addon || _ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
1071
|
+
key: 0,
|
|
1072
|
+
variant: 'input',
|
|
1073
|
+
required: _ctx.required,
|
|
1074
|
+
disabled: _ctx.disabled
|
|
1075
|
+
}, {
|
|
1076
|
+
addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
|
|
1077
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)])]),
|
|
1078
|
+
_: 3 /* FORWARDED */
|
|
1079
|
+
}, 8 /* PROPS */, ["required", "disabled"])) : createCommentVNode("v-if", true), createVNode(_component_OrInputBox, {
|
|
1080
|
+
ref: 'containerRef',
|
|
1081
|
+
class: "grow",
|
|
1082
|
+
direction: 'column',
|
|
1083
|
+
invalid: !!_ctx.error,
|
|
1084
|
+
disabled: _ctx.disabled,
|
|
1085
|
+
onClick: _cache[4] || (_cache[4] = $event => _ctx.handleEditorClick())
|
|
1086
|
+
}, {
|
|
1087
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
1088
|
+
ref: 'toolbarRef',
|
|
1089
|
+
class: normalizeClass(_ctx.toolbarStyles),
|
|
1090
|
+
disabled: _ctx.disabled || !_ctx.isFocused
|
|
1091
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.toolbar, (tools, index) => {
|
|
1092
|
+
return openBlock(), createElementBlock("div", {
|
|
1093
|
+
key: index,
|
|
1094
|
+
class: normalizeClass([..._ctx.toolbarGroupStyles, {
|
|
1095
|
+
'hidden': _ctx.isVisible(tools)
|
|
1096
|
+
}]),
|
|
1097
|
+
disabled: _ctx.disabled || !_ctx.isFocused
|
|
1098
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(tools, item => {
|
|
1099
|
+
return openBlock(), createElementBlock("div", {
|
|
1100
|
+
key: item,
|
|
1101
|
+
class: normalizeClass(['flex gap-md', {
|
|
1102
|
+
'hidden': !_ctx.isVisible(item)
|
|
1103
|
+
}])
|
|
1104
|
+
}, [item === 'heading' ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
1105
|
+
key: 0,
|
|
1106
|
+
ref_for: true,
|
|
1107
|
+
ref: 'toolbarButtonRef',
|
|
1108
|
+
icon: {
|
|
1109
|
+
icon: _ctx.headingIcon,
|
|
1110
|
+
variant: 'inherit'
|
|
1111
|
+
},
|
|
1112
|
+
tooltip: {
|
|
1113
|
+
content: item,
|
|
1114
|
+
placement: 'top'
|
|
1115
|
+
},
|
|
1116
|
+
selected: _ctx.isActive[item],
|
|
1117
|
+
disabled: _ctx.disabled || !_ctx.isFocused,
|
|
1118
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.menuRef && _ctx.menuRef.toggle())
|
|
1119
|
+
}, null, 8 /* PROPS */, ["icon", "tooltip", "selected", "disabled"])) : _ctx.isVisible(item) ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
1120
|
+
key: 1,
|
|
1121
|
+
icon: {
|
|
1122
|
+
icon: _ctx.getRichTextEditorIcon(item),
|
|
1123
|
+
variant: 'inherit'
|
|
1124
|
+
},
|
|
1125
|
+
tooltip: {
|
|
1126
|
+
content: _ctx.getRichTextEditorTooltipIcon(item),
|
|
1127
|
+
placement: 'top'
|
|
1128
|
+
},
|
|
1129
|
+
selected: _ctx.isActive[item],
|
|
1130
|
+
disabled: _ctx.disabled || !_ctx.isFocused,
|
|
1131
|
+
onClick: $event => _ctx.handleToolbarClick(item)
|
|
1132
|
+
}, null, 8 /* PROPS */, ["icon", "tooltip", "selected", "disabled", "onClick"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
1133
|
+
}), 128 /* KEYED_FRAGMENT */))], 10 /* CLASS, PROPS */, _hoisted_2);
|
|
1134
|
+
}), 128 /* KEYED_FRAGMENT */)), _ctx.countOfNotVisibleTools > 0 ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
1135
|
+
key: 0,
|
|
1136
|
+
ref: 'moreButtonRef',
|
|
1137
|
+
class: normalizeClass(['px-sm']),
|
|
1138
|
+
icon: {
|
|
1139
|
+
icon: 'more_horiz',
|
|
1140
|
+
variant: 'inherit'
|
|
1141
|
+
},
|
|
1142
|
+
disabled: _ctx.disabled || !_ctx.isFocused,
|
|
1143
|
+
onClick: _cache[1] || (_cache[1] = $event => _ctx.moreRef && _ctx.moreRef.open())
|
|
1144
|
+
}, null, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 10 /* CLASS, PROPS */, _hoisted_1), createElementVNode("div", _hoisted_3, [withDirectives(createElementVNode("textarea", {
|
|
1145
|
+
ref: 'textareaRef',
|
|
1146
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.sourceValue = $event),
|
|
1147
|
+
activated: _ctx.disableMarkdown,
|
|
1148
|
+
class: "block w-full h-full resize-none border-none outline-none bg-transparent typography-body-2-regular",
|
|
1149
|
+
onInput: _cache[3] || (_cache[3] = (...args) => _ctx.handleInput && _ctx.handleInput(...args))
|
|
1150
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_4), [[vShow, _ctx.disableMarkdown], [vModelText, _ctx.sourceValue]]), withDirectives(createElementVNode("div", {
|
|
1151
|
+
ref: 'controlRef',
|
|
1152
|
+
class: normalizeClass(_ctx.controlStyles)
|
|
1153
|
+
}, null, 2 /* CLASS */), [[vShow, !_ctx.disableMarkdown]]), renderSlot(_ctx.$slots, "files")])]),
|
|
1154
|
+
_: 3 /* FORWARDED */
|
|
1155
|
+
}, 8 /* PROPS */, ["invalid", "disabled"]), _ctx.$slots.hint || _ctx.hint ? withDirectives((openBlock(), createBlock(_component_OrHint, {
|
|
1156
|
+
key: 1,
|
|
1157
|
+
disabled: _ctx.disabled
|
|
1158
|
+
}, {
|
|
1159
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "hint", {}, () => [createTextVNode(toDisplayString(_ctx.hint), 1 /* TEXT */)])]),
|
|
1160
|
+
_: 3 /* FORWARDED */
|
|
1161
|
+
}, 8 /* PROPS */, ["disabled"])), [[vShow, !_ctx.error]]) : createCommentVNode("v-if", true), withDirectives(createVNode(_component_OrError, {
|
|
1162
|
+
disabled: _ctx.disabled
|
|
1163
|
+
}, {
|
|
1164
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.error), 1 /* TEXT */)]),
|
|
1165
|
+
_: 1 /* STABLE */
|
|
1166
|
+
}, 8 /* PROPS */, ["disabled"]), [[vShow, typeof _ctx.error === 'string' && _ctx.error.length > 0]]), _ctx.moreButtonRef ? (openBlock(), createBlock(_component_OrPopover, {
|
|
1167
|
+
key: 2,
|
|
1168
|
+
ref: 'moreRef',
|
|
1169
|
+
trigger: _ctx.moreButtonRef && _ctx.moreButtonRef.root,
|
|
1170
|
+
placement: 'top-end'
|
|
1171
|
+
}, {
|
|
1172
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_5, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.notVisibleTools, item => {
|
|
1173
|
+
return openBlock(), createBlock(_component_OrIconButton, {
|
|
1174
|
+
key: item,
|
|
1175
|
+
icon: {
|
|
1176
|
+
icon: _ctx.getRichTextEditorIcon(item),
|
|
1177
|
+
variant: 'inherit'
|
|
1178
|
+
},
|
|
1179
|
+
tooltip: {
|
|
1180
|
+
content: _ctx.getRichTextEditorTooltipIcon(item),
|
|
1181
|
+
placement: 'top'
|
|
1182
|
+
},
|
|
1183
|
+
selected: _ctx.isActive[item],
|
|
1184
|
+
onClick: $event => _ctx.handleToolbarClick(item)
|
|
1185
|
+
}, null, 8 /* PROPS */, ["icon", "tooltip", "selected", "onClick"]);
|
|
1186
|
+
}), 128 /* KEYED_FRAGMENT */))])]),
|
|
1187
|
+
_: 1 /* STABLE */
|
|
1188
|
+
}, 8 /* PROPS */, ["trigger"])) : createCommentVNode("v-if", true), _ctx.toolbarButtonRef ? (openBlock(), createBlock(_component_OrMenu, {
|
|
1189
|
+
key: 3,
|
|
1190
|
+
ref: 'menuRef',
|
|
1191
|
+
trigger: _ctx.toolbarButtonRef[_ctx.getIndexOfHeading] && _ctx.toolbarButtonRef[_ctx.getIndexOfHeading].root,
|
|
1192
|
+
placement: 'bottom-start'
|
|
1193
|
+
}, {
|
|
1194
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.headingLevels, heading => {
|
|
1195
|
+
return openBlock(), createBlock(_component_OrMenuItem, {
|
|
1196
|
+
key: heading,
|
|
1197
|
+
selected: _ctx.activeHeadingLevel === heading,
|
|
1198
|
+
onClick: $event => _ctx.handleToolbarClick('heading', heading)
|
|
1199
|
+
}, {
|
|
1200
|
+
default: withCtx(() => [createTextVNode(" Heading " + toDisplayString(heading), 1 /* TEXT */)]),
|
|
1201
|
+
_: 2 /* DYNAMIC */
|
|
1202
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "onClick"]);
|
|
1203
|
+
}), 128 /* KEYED_FRAGMENT */)), createVNode(_component_OrMenuItem, {
|
|
1204
|
+
selected: !_ctx.activeHeadingLevel,
|
|
1205
|
+
onClick: _cache[5] || (_cache[5] = $event => _ctx.handleToolbarClick('heading'))
|
|
1206
|
+
}, {
|
|
1207
|
+
default: withCtx(() => [createTextVNode(" None ")]),
|
|
1208
|
+
_: 1 /* STABLE */
|
|
1209
|
+
}, 8 /* PROPS */, ["selected"])]),
|
|
1210
|
+
_: 1 /* STABLE */
|
|
1211
|
+
}, 8 /* PROPS */, ["trigger"])) : createCommentVNode("v-if", true), createVNode(_component_OrModal, {
|
|
1212
|
+
"is-open": _ctx.isOpenLinkModal,
|
|
1213
|
+
size: 's'
|
|
1214
|
+
}, {
|
|
1215
|
+
header: withCtx(() => [createTextVNode(" Add Link ")]),
|
|
1216
|
+
footer: withCtx(() => [createElementVNode("div", _hoisted_7, [createVNode(_component_OrButton, {
|
|
1217
|
+
variant: 'contained',
|
|
1218
|
+
onClick: _cache[8] || (_cache[8] = $event => _ctx.attachLink())
|
|
1219
|
+
}, {
|
|
1220
|
+
default: withCtx(() => [createTextVNode(" Save ")]),
|
|
1221
|
+
_: 1 /* STABLE */
|
|
1222
|
+
}), createVNode(_component_OrButton, {
|
|
1223
|
+
variant: 'outlined',
|
|
1224
|
+
onClick: _cache[9] || (_cache[9] = $event => _ctx.discardLink())
|
|
1225
|
+
}, {
|
|
1226
|
+
default: withCtx(() => [createTextVNode(" Cancel ")]),
|
|
1227
|
+
_: 1 /* STABLE */
|
|
1228
|
+
})])]),
|
|
1229
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_6, [createVNode(_component_OrInput, {
|
|
1230
|
+
modelValue: _ctx.text,
|
|
1231
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => _ctx.text = $event),
|
|
1232
|
+
label: 'Text',
|
|
1233
|
+
placeholder: 'Enter text'
|
|
1234
|
+
}, null, 8 /* PROPS */, ["modelValue"]), createVNode(_component_OrInput, {
|
|
1235
|
+
modelValue: _ctx.link,
|
|
1236
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => _ctx.link = $event),
|
|
1237
|
+
label: 'Link',
|
|
1238
|
+
placeholder: 'Enter link'
|
|
1239
|
+
}, null, 8 /* PROPS */, ["modelValue"])])]),
|
|
1240
|
+
_: 1 /* STABLE */
|
|
1241
|
+
}, 8 /* PROPS */, ["is-open"])], 2 /* CLASS */);
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
var css_248z = ".tiptap-editor-v3 .is-editor-empty::before {\n float: left;\n height: 0;\n pointer-events: none;\n content: attr(data-placeholder);\n}";
|
|
1245
|
+
styleInject(css_248z);
|
|
1246
|
+
|
|
1247
|
+
script.render = render;
|
|
1248
|
+
script.__file = "src/components/or-rich-text-editor-v3/OrRichTextEditor.vue";
|
|
1249
|
+
|
|
1250
|
+
export { Formats, script as OrRichTextEditorV3, RichTextEditorIcons, RichTextEditorTooltips };
|