@mythpe/quasar-ui-qui 0.2.24 → 0.2.26
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/package.json +2 -2
- package/src/components/form/MCkeditor.vue +606 -150
- package/src/components/form/MSignaturePad.vue +20 -26
- package/src/components/form/__MCkeditor.vue +403 -0
- package/src/components/form/index.ts +2 -2
- package/src/components/form/useCkeditor.ts +26 -0
- package/src/index.sass +1 -0
- package/src/style/ckeditor5.sass +1 -1
- package/src/style/m-ck.css +135 -0
- package/src/types/components.d.ts +4 -5
- package/src/types/install-options.d.ts +3 -0
- package/src/types/myth-api.ts +2 -1
- package/src/utils/createMyth.ts +1 -0
|
@@ -39,7 +39,7 @@ import type { FieldContext, FieldOptions, FormContext, FormOptions, FormState }
|
|
|
39
39
|
import type { ThemeShadow, ThemeSize } from './theme'
|
|
40
40
|
import type { ApiInterface, HelpersStubSchema } from './api-helpers'
|
|
41
41
|
import type { MDatatableProps, MDatatableSlots, MDtAvatarProps, MDtAvatarSlots, MDtBtnProps, MDtBtnSlots, MDtContextmenuItemsProps, MDtContextmenuItemsSlots } from './m-datatable'
|
|
42
|
-
import type { EditorConfig } from 'ckeditor5'
|
|
42
|
+
import type { EditorConfig } from 'https://cdn.ckeditor.com/typings/ckeditor5.d.ts'
|
|
43
43
|
import type { MAvatarViewerProps, MAvatarViewerSlots } from './api/MAvatarViewer'
|
|
44
44
|
import type { MTransitionGroupProps, MTransitionProps, MTransitionsSlots } from './api/MTransition'
|
|
45
45
|
import type { MAxiosProps, MAxiosSlots } from './api/MAxios'
|
|
@@ -962,7 +962,7 @@ export type MCkeditorProps = Omit<BaseInputsProps, 'hint' | 'topLabel' | 'placeh
|
|
|
962
962
|
* Specifies the configuration of the editor.
|
|
963
963
|
* https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editorconfig-EditorConfig.html
|
|
964
964
|
*/
|
|
965
|
-
config?: (
|
|
965
|
+
config?: (config: EditorConfig) => EditorConfig;
|
|
966
966
|
/**
|
|
967
967
|
* By default, the editor component creates a <div> container which is used as an element passed to the editor (for example, ClassicEditor#element).
|
|
968
968
|
* The element can be configured, so for example to create a <textarea>, use the following directive:
|
|
@@ -976,10 +976,9 @@ export type MCkeditorProps = Omit<BaseInputsProps, 'hint' | 'topLabel' | 'placeh
|
|
|
976
976
|
*/
|
|
977
977
|
disabled?: boolean;
|
|
978
978
|
/**
|
|
979
|
-
*
|
|
980
|
-
* Default value: false.
|
|
979
|
+
* Use HTML instead of Markdown.
|
|
981
980
|
*/
|
|
982
|
-
|
|
981
|
+
html?: boolean;
|
|
983
982
|
}
|
|
984
983
|
export type MCkeditorSlots = BaseInputsSlots
|
|
985
984
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ThemeContext } from './theme'
|
|
2
2
|
import type { MythComponentsProps } from './plugin-props-option'
|
|
3
3
|
import type { ApiContext, MythApi } from './myth-api'
|
|
4
|
+
import type { MInputProps } from './components'
|
|
4
5
|
|
|
5
6
|
export interface InstallOptions extends MythApi {
|
|
6
7
|
api: ApiContext;
|
|
@@ -8,4 +9,6 @@ export interface InstallOptions extends MythApi {
|
|
|
8
9
|
props?: Partial<MythComponentsProps>;
|
|
9
10
|
theme?: Partial<ThemeContext>;
|
|
10
11
|
rules?: string[];
|
|
12
|
+
mobileRule?: MInputProps['mobile'];
|
|
13
|
+
ckeditorKey?: string;
|
|
11
14
|
}
|
package/src/types/myth-api.ts
CHANGED