mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3802 - Improve folder structure for nuxt configurations
This commit is contained in:
parent
851950270b
commit
f5fe822afb
563 changed files with 1703 additions and 1095 deletions
167
components/lib/editor/Editor.d.ts
vendored
Executable file
167
components/lib/editor/Editor.d.ts
vendored
Executable file
|
@ -0,0 +1,167 @@
|
|||
/**
|
||||
*
|
||||
* Editor groups a collection of contents in tabs.
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/editor/)
|
||||
*
|
||||
* @module editor
|
||||
*
|
||||
*/
|
||||
import { VNode } from 'vue';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
/**
|
||||
* Custom text change event.
|
||||
* @see {@link EditorEmits['text-change']}
|
||||
*/
|
||||
export interface EditorTextChangeEvent {
|
||||
/**
|
||||
* Current value as html.
|
||||
*/
|
||||
htmlValue: string;
|
||||
/**
|
||||
* Current value as text.
|
||||
*/
|
||||
textValue: any;
|
||||
/**
|
||||
* Representation of the change.
|
||||
*/
|
||||
delta: any;
|
||||
/**
|
||||
* Source of change. Will be either 'user' or 'api'.
|
||||
*/
|
||||
source: string;
|
||||
/**
|
||||
* Text editor instance.
|
||||
*/
|
||||
instance: any;
|
||||
}
|
||||
/**
|
||||
* Custom selection change event.
|
||||
* @see {@link EditorEmits['selection-change']}
|
||||
*/
|
||||
export interface EditorSelectionChangeEvent {
|
||||
/**
|
||||
* Current value as html.
|
||||
*/
|
||||
htmlValue: string;
|
||||
/**
|
||||
* Current value as text.
|
||||
*/
|
||||
textValue: any;
|
||||
/**
|
||||
* Representation of the selection boundaries.
|
||||
*/
|
||||
range: any;
|
||||
/**
|
||||
* Representation of the previous selection boundaries.
|
||||
*/
|
||||
oldRange: any;
|
||||
/**
|
||||
* Source of change. Will be either 'user' or 'api'.
|
||||
*/
|
||||
source: string;
|
||||
/**
|
||||
* Text editor instance.
|
||||
*/
|
||||
instance: any;
|
||||
}
|
||||
/**
|
||||
* Custom load event.
|
||||
* @see {@link EditorEmits.load}
|
||||
*/
|
||||
export interface EditorLoadEvent {
|
||||
/**
|
||||
* Text editor instance.
|
||||
*/
|
||||
instance: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in Editor component.
|
||||
*/
|
||||
export interface EditorProps {
|
||||
/**
|
||||
* Value of the content.
|
||||
*/
|
||||
modelValue?: string | undefined;
|
||||
/**
|
||||
* Placeholder text to show when editor is empty.
|
||||
*/
|
||||
placeholder?: string | undefined;
|
||||
/**
|
||||
* Whether to instantiate the editor to readonly mode.
|
||||
* @defaultValue false
|
||||
*/
|
||||
readonly?: boolean | undefined;
|
||||
/**
|
||||
* Whitelist of formats to display, see [here](https://quilljs.com/docs/formats/) for available options.
|
||||
*/
|
||||
formats?: any[];
|
||||
/**
|
||||
* Inline style of the container.
|
||||
*/
|
||||
editorStyle?: any;
|
||||
/**
|
||||
* Modules configuration, see [here](https://quilljs.com/docs/modules/) for available options.
|
||||
*/
|
||||
modules?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid slots in Editor slots.
|
||||
*/
|
||||
export interface EditorSlots {
|
||||
/**
|
||||
* Custom toolbar template.
|
||||
*/
|
||||
toolbar: () => VNode[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid emits in Editor component.
|
||||
*/
|
||||
export interface EditorEmits {
|
||||
/**
|
||||
* Emitted when the value changes.
|
||||
* @param {string} value - New value.
|
||||
*/
|
||||
'update:modelValue'(value: string): void;
|
||||
/**
|
||||
* Callback to invoke when text of editor changes.
|
||||
* @param {EditorTextChangeEvent} event - Custom text change event.
|
||||
*/
|
||||
'text-change'(event: EditorTextChangeEvent): void;
|
||||
/**
|
||||
* Callback to invoke when selection of the text changes.
|
||||
* @param {EditorSelectionChangeEvent} event - Custom selection change event.
|
||||
*/
|
||||
'selection-change'(event: EditorSelectionChangeEvent): void;
|
||||
/**
|
||||
* Callback to invoke when the quill modules are loaded.
|
||||
* @param {EditorLoadEvent} event - Custom load event.
|
||||
*/
|
||||
load(event: EditorLoadEvent): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* **PrimeVue - Editor**
|
||||
*
|
||||
* _Editor groups a collection of contents in tabs._
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/editor/)
|
||||
* --- ---
|
||||
* 
|
||||
*
|
||||
* @group Component
|
||||
*
|
||||
*/
|
||||
declare class Editor extends ClassComponent<EditorProps, EditorSlots, EditorEmits> {}
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface GlobalComponents {
|
||||
Editor: GlobalComponentConstructor<Editor>;
|
||||
}
|
||||
}
|
||||
|
||||
export default Editor;
|
1125
components/lib/editor/Editor.vue
Executable file
1125
components/lib/editor/Editor.vue
Executable file
File diff suppressed because it is too large
Load diff
9
components/lib/editor/package.json
Normal file
9
components/lib/editor/package.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"main": "./editor.cjs.js",
|
||||
"module": "./editor.esm.js",
|
||||
"unpkg": "./editor.min.js",
|
||||
"types": "./Editor.d.ts",
|
||||
"browser": {
|
||||
"./sfc": "./Editor.vue"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue