@qxs-bns/components-wc 0.0.8 → 0.0.10
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/es/editor/blocksuite-editor.mjs +25 -15
- package/es/editor/blocksuite-editor.mjs.map +1 -1
- package/es/editor/index.mjs +1 -1
- package/es/editor/index.mjs.map +1 -1
- package/es/node_modules/.pnpm/@tiptap_extension-placeholder@3.19.0_@tiptap_extensions@3.19.0_@tiptap_core@3.19.0_@tiptap_pm@3.20.5__@tiptap_pm@3.20.5_/node_modules/@tiptap/extension-placeholder/dist/index.mjs +2 -0
- package/es/node_modules/.pnpm/@tiptap_extension-placeholder@3.19.0_@tiptap_extensions@3.19.0_@tiptap_core@3.19.0_@tiptap_pm@3.20.5__@tiptap_pm@3.20.5_/node_modules/@tiptap/extension-placeholder/dist/index.mjs.map +1 -0
- package/es/node_modules/.pnpm/@tiptap_extensions@3.19.0_@tiptap_core@3.19.0_@tiptap_pm@3.20.5__@tiptap_pm@3.20.5/node_modules/@tiptap/extensions/dist/index.mjs +2 -0
- package/es/node_modules/.pnpm/@tiptap_extensions@3.19.0_@tiptap_core@3.19.0_@tiptap_pm@3.20.5__@tiptap_pm@3.20.5/node_modules/@tiptap/extensions/dist/index.mjs.map +1 -0
- package/es/subject/action.mjs +2 -2
- package/es/subject/action.mjs.map +1 -1
- package/es/subject/layout.mjs +4 -4
- package/es/subject/layout.mjs.map +1 -1
- package/es/subject/list.mjs +9 -12
- package/es/subject/list.mjs.map +1 -1
- package/lib/editor/blocksuite-editor.cjs +14 -4
- package/lib/editor/blocksuite-editor.cjs.map +1 -1
- package/lib/editor/index.cjs +1 -1
- package/lib/editor/index.cjs.map +1 -1
- package/lib/node_modules/.pnpm/@tiptap_extension-placeholder@3.19.0_@tiptap_extensions@3.19.0_@tiptap_core@3.19.0_@tiptap_pm@3.20.5__@tiptap_pm@3.20.5_/node_modules/@tiptap/extension-placeholder/dist/index.cjs +2 -0
- package/lib/node_modules/.pnpm/@tiptap_extension-placeholder@3.19.0_@tiptap_extensions@3.19.0_@tiptap_core@3.19.0_@tiptap_pm@3.20.5__@tiptap_pm@3.20.5_/node_modules/@tiptap/extension-placeholder/dist/index.cjs.map +1 -0
- package/lib/node_modules/.pnpm/@tiptap_extensions@3.19.0_@tiptap_core@3.19.0_@tiptap_pm@3.20.5__@tiptap_pm@3.20.5/node_modules/@tiptap/extensions/dist/index.cjs +2 -0
- package/lib/node_modules/.pnpm/@tiptap_extensions@3.19.0_@tiptap_core@3.19.0_@tiptap_pm@3.20.5__@tiptap_pm@3.20.5/node_modules/@tiptap/extensions/dist/index.cjs.map +1 -0
- package/lib/subject/action.cjs +2 -2
- package/lib/subject/action.cjs.map +1 -1
- package/lib/subject/layout.cjs +2 -2
- package/lib/subject/layout.cjs.map +1 -1
- package/lib/subject/list.cjs +8 -11
- package/lib/subject/list.cjs.map +1 -1
- package/package.json +29 -27
- package/types/base/define.d.ts +1 -0
- package/types/base/uid.d.ts +1 -0
- package/types/editor/blocksuite-editor.d.ts +84 -0
- package/types/editor/index.d.ts +3 -0
- package/types/index.d.ts +4 -0
- package/types/subject/action.d.ts +23 -0
- package/types/subject/blank-fill.d.ts +49 -0
- package/types/subject/index.d.ts +20 -0
- package/types/subject/layout.d.ts +7 -0
- package/types/subject/list.d.ts +43 -0
- package/types/subject/page-end.d.ts +10 -0
- package/types/subject/rich-text.d.ts +30 -0
- package/types/subject/scale.d.ts +42 -0
- package/types/subject/single.d.ts +79 -0
- package/types/subject/text-fill.d.ts +54 -0
- package/types/subject/type.d.ts +7 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { SubjectError } from './single';
|
|
3
|
+
export declare class QxsBlankFill extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
orderIndex: number;
|
|
6
|
+
title: string;
|
|
7
|
+
customId: string;
|
|
8
|
+
isEdit: boolean;
|
|
9
|
+
isSave: boolean;
|
|
10
|
+
isSet: boolean;
|
|
11
|
+
isKey: boolean;
|
|
12
|
+
showAction: boolean;
|
|
13
|
+
showAnalysis: boolean;
|
|
14
|
+
richTextContent: string;
|
|
15
|
+
analysis: string;
|
|
16
|
+
examAnswerRelationType: number;
|
|
17
|
+
examExpand: string;
|
|
18
|
+
examAnswerSetting: {
|
|
19
|
+
isInOrder: boolean;
|
|
20
|
+
isIgnoreCase: boolean;
|
|
21
|
+
};
|
|
22
|
+
uploadImage: (file: File) => Promise<string>;
|
|
23
|
+
answerList: any[];
|
|
24
|
+
modelValue: string;
|
|
25
|
+
useModel: boolean;
|
|
26
|
+
private _title;
|
|
27
|
+
private _analysis;
|
|
28
|
+
private _answers;
|
|
29
|
+
private _isInOrder;
|
|
30
|
+
private _isIgnoreCase;
|
|
31
|
+
private _showRichText;
|
|
32
|
+
private _richText;
|
|
33
|
+
private readonly TITLE_MAX;
|
|
34
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
35
|
+
private _syncProps;
|
|
36
|
+
private _emit;
|
|
37
|
+
private _addBlank;
|
|
38
|
+
private _onTitleInput;
|
|
39
|
+
private _emitModelUpdate;
|
|
40
|
+
private _handleAddTag;
|
|
41
|
+
private _closeTag;
|
|
42
|
+
toJSON(): Promise<any>;
|
|
43
|
+
private _save;
|
|
44
|
+
validate(): SubjectError[];
|
|
45
|
+
private _renderPreview;
|
|
46
|
+
private _renderEdit;
|
|
47
|
+
render(): import("lit").TemplateResult<1>;
|
|
48
|
+
}
|
|
49
|
+
export declare function register(): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import './action';
|
|
2
|
+
import './blank-fill';
|
|
3
|
+
import './layout';
|
|
4
|
+
import './list';
|
|
5
|
+
import './single';
|
|
6
|
+
import './text-fill';
|
|
7
|
+
import './scale';
|
|
8
|
+
import './page-end';
|
|
9
|
+
import './rich-text';
|
|
10
|
+
import './type';
|
|
11
|
+
export { QxsSubjectAction } from './action';
|
|
12
|
+
export { QxsBlankFill } from './blank-fill';
|
|
13
|
+
export { QxsSubjectLayout } from './layout';
|
|
14
|
+
export { QxsSubjectList } from './list';
|
|
15
|
+
export { QxsPageEnd } from './page-end';
|
|
16
|
+
export { SubjectRichText } from './rich-text';
|
|
17
|
+
export { QxsScale } from './scale';
|
|
18
|
+
export { QxsSubjectSingle, SubjectError } from './single';
|
|
19
|
+
export { QxsTextFill } from './text-fill';
|
|
20
|
+
export { QxsSubjectType } from './type';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { SubjectError } from './single';
|
|
3
|
+
export declare class QxsSubjectList extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
isPreview: boolean;
|
|
6
|
+
uploadImage: (file: File) => Promise<string>;
|
|
7
|
+
get subjectList(): any;
|
|
8
|
+
set subjectList(v: any);
|
|
9
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
10
|
+
private _list;
|
|
11
|
+
private _sortMode;
|
|
12
|
+
private _sortable;
|
|
13
|
+
private get _isPreviewValue();
|
|
14
|
+
private _initialDataProcessed;
|
|
15
|
+
connectedCallback(): void;
|
|
16
|
+
private _processAttributeList;
|
|
17
|
+
firstUpdated(): void;
|
|
18
|
+
updated(changed: Map<string, unknown>): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
private _initSortable;
|
|
21
|
+
private _emit;
|
|
22
|
+
toJSON(): Promise<any[]>;
|
|
23
|
+
validate(): Promise<{
|
|
24
|
+
valid: boolean;
|
|
25
|
+
errors: SubjectError[];
|
|
26
|
+
}>;
|
|
27
|
+
get currentList(): any[];
|
|
28
|
+
addSubject(type: string, index?: number, examAnswerRelationType?: number | null): void;
|
|
29
|
+
addExam(items: any[]): void;
|
|
30
|
+
uploadExcel(list: any[]): void;
|
|
31
|
+
setAnswerRelation(answerRelations: any, customId: string, customAnswerId: string): void;
|
|
32
|
+
private _orderIndex;
|
|
33
|
+
private _pageIndex;
|
|
34
|
+
private _totalPages;
|
|
35
|
+
private _move;
|
|
36
|
+
private _save;
|
|
37
|
+
private _deleteByCustomId;
|
|
38
|
+
private _delete;
|
|
39
|
+
private _setEdit;
|
|
40
|
+
private _renderItem;
|
|
41
|
+
render(): import("lit").TemplateResult<1>;
|
|
42
|
+
}
|
|
43
|
+
export declare function register(): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class QxsPageEnd extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
4
|
+
currentPageIndex: number;
|
|
5
|
+
totalPage: number;
|
|
6
|
+
showAction: boolean;
|
|
7
|
+
private _emit;
|
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
|
9
|
+
}
|
|
10
|
+
export declare function register(): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { SubjectError } from './single';
|
|
3
|
+
import '../editor/blocksuite-editor';
|
|
4
|
+
export declare class SubjectRichText extends LitElement {
|
|
5
|
+
createRenderRoot(): this;
|
|
6
|
+
static styles: import("lit").CSSResult;
|
|
7
|
+
orderIndex: number;
|
|
8
|
+
customId: string;
|
|
9
|
+
isEdit: boolean;
|
|
10
|
+
isSave: boolean;
|
|
11
|
+
showAction: boolean;
|
|
12
|
+
isSet: boolean;
|
|
13
|
+
richTextContent: string;
|
|
14
|
+
examAnswerRelationType: number;
|
|
15
|
+
uploadImage: (file: File) => Promise<string>;
|
|
16
|
+
private _content;
|
|
17
|
+
private _initialized;
|
|
18
|
+
private _editor;
|
|
19
|
+
modelValue: string;
|
|
20
|
+
useModel: boolean;
|
|
21
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
22
|
+
toJSON(): Promise<any>;
|
|
23
|
+
private _emit;
|
|
24
|
+
disconnectedCallback(): void;
|
|
25
|
+
private _save;
|
|
26
|
+
validate(): SubjectError[];
|
|
27
|
+
private _handleEditorInput;
|
|
28
|
+
render(): import("lit").TemplateResult<1>;
|
|
29
|
+
}
|
|
30
|
+
export declare function register(): void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { SubjectError } from './single';
|
|
3
|
+
export declare class QxsScale extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
orderIndex: number;
|
|
6
|
+
title: string;
|
|
7
|
+
customId: string;
|
|
8
|
+
isEdit: boolean;
|
|
9
|
+
isSave: boolean;
|
|
10
|
+
isSet: boolean;
|
|
11
|
+
showAction: boolean;
|
|
12
|
+
showAnalysis: boolean;
|
|
13
|
+
analysis: string;
|
|
14
|
+
richTextContent: string;
|
|
15
|
+
examAnswerRelationType: number;
|
|
16
|
+
uploadImage: (file: File) => Promise<string>;
|
|
17
|
+
get answerList(): any;
|
|
18
|
+
set answerList(v: any);
|
|
19
|
+
get scaleQuestions(): any;
|
|
20
|
+
set scaleQuestions(v: any);
|
|
21
|
+
private _answers;
|
|
22
|
+
private _scaleQuestions;
|
|
23
|
+
private _rowTitle;
|
|
24
|
+
private _title;
|
|
25
|
+
private _analysis;
|
|
26
|
+
private _showRichText;
|
|
27
|
+
private _richText;
|
|
28
|
+
modelValue: string;
|
|
29
|
+
useModel: boolean;
|
|
30
|
+
private readonly TITLE_MAX;
|
|
31
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
32
|
+
private _syncProps;
|
|
33
|
+
toJSON(): Promise<any>;
|
|
34
|
+
private _emit;
|
|
35
|
+
private _onTitleInput;
|
|
36
|
+
private _save;
|
|
37
|
+
validate(): SubjectError[];
|
|
38
|
+
private _renderPreview;
|
|
39
|
+
private _renderEdit;
|
|
40
|
+
render(): import("lit").TemplateResult<1>;
|
|
41
|
+
}
|
|
42
|
+
export declare function register(): void;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export interface SubjectErrorOptions {
|
|
3
|
+
message: string;
|
|
4
|
+
code?: string;
|
|
5
|
+
field?: string;
|
|
6
|
+
row?: any;
|
|
7
|
+
}
|
|
8
|
+
export declare class SubjectError extends Error {
|
|
9
|
+
code: string;
|
|
10
|
+
field?: string | undefined;
|
|
11
|
+
row?: any | undefined;
|
|
12
|
+
constructor(message: string, code?: string, field?: string | undefined, row?: any | undefined);
|
|
13
|
+
static from(options: SubjectErrorOptions): SubjectError;
|
|
14
|
+
}
|
|
15
|
+
export declare class QxsSubjectSingle extends LitElement {
|
|
16
|
+
static styles: import("lit").CSSResult;
|
|
17
|
+
orderIndex: number;
|
|
18
|
+
isEdit: boolean;
|
|
19
|
+
isSave: boolean;
|
|
20
|
+
isSet: boolean;
|
|
21
|
+
isKey: boolean;
|
|
22
|
+
showAction: boolean;
|
|
23
|
+
showAnalysis: boolean;
|
|
24
|
+
type: 'single' | 'multiple' | 'sort';
|
|
25
|
+
answerCheckType: number;
|
|
26
|
+
examAnswerRelationType: number;
|
|
27
|
+
richTextContent: string;
|
|
28
|
+
analysis: string;
|
|
29
|
+
leastAnswerCount: number;
|
|
30
|
+
examExpand: string;
|
|
31
|
+
customId: string;
|
|
32
|
+
examId: number;
|
|
33
|
+
uploadImage: (file: File) => Promise<string>;
|
|
34
|
+
get answerList(): any;
|
|
35
|
+
set answerList(v: any);
|
|
36
|
+
modelValue: string;
|
|
37
|
+
useModel: boolean;
|
|
38
|
+
private _answers;
|
|
39
|
+
private _title;
|
|
40
|
+
private _analysis;
|
|
41
|
+
private _richText;
|
|
42
|
+
private _showRichText;
|
|
43
|
+
private _leastAnswerCount;
|
|
44
|
+
private _answerCheckType;
|
|
45
|
+
private _orderList;
|
|
46
|
+
private _resultDialogOpen;
|
|
47
|
+
private _resultDialogIndex;
|
|
48
|
+
private _resultDialogValue;
|
|
49
|
+
private _sortDropdownOpen;
|
|
50
|
+
private readonly TITLE_MAX;
|
|
51
|
+
private readonly ANSWER_MAX;
|
|
52
|
+
connectedCallback(): void;
|
|
53
|
+
disconnectedCallback(): void;
|
|
54
|
+
private _handleDocumentClick;
|
|
55
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
56
|
+
private _syncProps;
|
|
57
|
+
private _syncExamExpand;
|
|
58
|
+
private _emit;
|
|
59
|
+
private _label;
|
|
60
|
+
private get _titlePlaceholder();
|
|
61
|
+
private _setCorrect;
|
|
62
|
+
private _onTitleInput;
|
|
63
|
+
private _onAnswerInput;
|
|
64
|
+
private _addAnswer;
|
|
65
|
+
private _deleteAnswer;
|
|
66
|
+
private _toggleSortItem;
|
|
67
|
+
private _removeSortItem;
|
|
68
|
+
private _getSortOrder;
|
|
69
|
+
toJSON(): Promise<any>;
|
|
70
|
+
validate(): SubjectError[];
|
|
71
|
+
private _openResultDialog;
|
|
72
|
+
private _saveResultDialog;
|
|
73
|
+
private _renderResultDialog;
|
|
74
|
+
private _save;
|
|
75
|
+
private _renderPreview;
|
|
76
|
+
private _renderEdit;
|
|
77
|
+
render(): import("lit").TemplateResult<1>;
|
|
78
|
+
}
|
|
79
|
+
export declare function register(): void;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { SubjectError } from './single';
|
|
3
|
+
export declare class QxsTextFill extends LitElement {
|
|
4
|
+
private readonly _iconPlus;
|
|
5
|
+
private readonly _iconRemove;
|
|
6
|
+
static styles: import("lit").CSSResult;
|
|
7
|
+
orderIndex: number;
|
|
8
|
+
title: string;
|
|
9
|
+
customId: string;
|
|
10
|
+
isEdit: boolean;
|
|
11
|
+
isSave: boolean;
|
|
12
|
+
isSet: boolean;
|
|
13
|
+
isKey: boolean;
|
|
14
|
+
showAction: boolean;
|
|
15
|
+
showAnalysis: boolean;
|
|
16
|
+
richTextContent: string;
|
|
17
|
+
analysis: string;
|
|
18
|
+
examAnswerRelationType: number;
|
|
19
|
+
examExpand: string;
|
|
20
|
+
examAnswerSetting: {
|
|
21
|
+
isInOrder: boolean;
|
|
22
|
+
isIgnoreCase: boolean;
|
|
23
|
+
keywordCount: number;
|
|
24
|
+
};
|
|
25
|
+
uploadImage: (file: File) => Promise<string>;
|
|
26
|
+
answerList: any[];
|
|
27
|
+
modelValue: string;
|
|
28
|
+
useModel: boolean;
|
|
29
|
+
private _answers;
|
|
30
|
+
private _title;
|
|
31
|
+
private _analysis;
|
|
32
|
+
private _isInOrder;
|
|
33
|
+
private _isIgnoreCase;
|
|
34
|
+
private _keywordCount;
|
|
35
|
+
private _correct;
|
|
36
|
+
private _showRichText;
|
|
37
|
+
private _richText;
|
|
38
|
+
private readonly TITLE_MAX;
|
|
39
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
40
|
+
private _syncProps;
|
|
41
|
+
private _emit;
|
|
42
|
+
private _onTitleInput;
|
|
43
|
+
private _addTag;
|
|
44
|
+
private _closeTag;
|
|
45
|
+
toJSON(): Promise<any>;
|
|
46
|
+
private _addAnswer;
|
|
47
|
+
private _deleteAnswer;
|
|
48
|
+
private _save;
|
|
49
|
+
validate(): SubjectError[];
|
|
50
|
+
private _renderPreview;
|
|
51
|
+
private _renderEdit;
|
|
52
|
+
render(): import("lit").TemplateResult<1>;
|
|
53
|
+
}
|
|
54
|
+
export declare function register(): void;
|