urit-qf-ui 0.0.6 → 0.1.0

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.
Files changed (42) hide show
  1. package/dist/components/Demo.vue.d.ts +2 -0
  2. package/dist/components/UCascader.vue.d.ts +40 -0
  3. package/dist/components/UDate.vue.d.ts +47 -0
  4. package/dist/components/{USelect/USelect.vue.d.ts → UDict.vue.d.ts} +6 -7
  5. package/dist/components/{UInput/UInput.vue.d.ts → UInput.vue.d.ts} +5 -6
  6. package/dist/components/UToggle.vue.d.ts +54 -0
  7. package/dist/index.d.ts +15 -5
  8. package/dist/index.js +60962 -4951
  9. package/dist/index.umd.cjs +93 -1
  10. package/dist/qf/event-bus.d.ts +7 -0
  11. package/dist/qf/http.d.ts +26 -0
  12. package/dist/qf/interface.d.ts +22 -0
  13. package/dist/qf/mqtt-adapter.d.ts +9 -0
  14. package/dist/qf/qf.d.ts +21 -0
  15. package/dist/show/UCascaderShow.vue.d.ts +11 -0
  16. package/dist/show/UDateShow.vue.d.ts +15 -0
  17. package/dist/{components/LayoutOne.vue.d.ts → show/UDictShow.vue.d.ts} +4 -2
  18. package/dist/show/UFieldView.vue.d.ts +24 -0
  19. package/dist/show/UInputShow.vue.d.ts +10 -0
  20. package/dist/show/UToggleShow.vue.d.ts +12 -0
  21. package/dist/style.css +1 -1
  22. package/dist/ts/constant.d.ts +11 -0
  23. package/dist/ts/dict.d.ts +61 -0
  24. package/dist/ts/form-render.d.ts +29 -0
  25. package/dist/ts/http.d.ts +13 -0
  26. package/dist/ts/model.d.ts +149 -0
  27. package/dist/ts/notify.d.ts +36 -0
  28. package/dist/ts/table-data-service.d.ts +30 -0
  29. package/dist/ts/table-render.d.ts +123 -0
  30. package/dist/uform/FormContainer.vue.d.ts +35 -0
  31. package/dist/uform/FormField.vue.d.ts +16 -0
  32. package/dist/uform/FormGrid.vue.d.ts +24 -0
  33. package/dist/uform/FormRender.vue.d.ts +104 -0
  34. package/dist/uform/TableDetail.vue.d.ts +15 -0
  35. package/dist/uform/TableGrid.vue.d.ts +30 -0
  36. package/dist/uform/TablePagination.vue.d.ts +14 -0
  37. package/dist/uform/TableRender.vue.d.ts +120 -0
  38. package/dist/uform/TableSearch.vue.d.ts +15 -0
  39. package/dist/uform/TableToolbar.vue.d.ts +39 -0
  40. package/package.json +8 -4
  41. package/dist/ufrom/URender.vue.d.ts +0 -17
  42. package/dist/ufrom/types.d.ts +0 -6
@@ -0,0 +1,30 @@
1
+ import { TableColumn } from '../ts/model';
2
+ type __VLS_Props = {
3
+ rows: any[];
4
+ columns: TableColumn[];
5
+ loading: boolean;
6
+ actions?: {
7
+ edit?: string | false;
8
+ delete?: string | false;
9
+ };
10
+ formId?: string;
11
+ apiDelete?: string;
12
+ keyField?: string;
13
+ selection?: 'single' | 'multiple' | boolean;
14
+ dictData?: Record<string, Array<{
15
+ label: string;
16
+ value: any;
17
+ }>>;
18
+ };
19
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ selectionChange: (rows: any[]) => any;
21
+ rowEdit: (row: any) => any;
22
+ rowDelete: (row: any) => any;
23
+ rowClick: (row: any) => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onSelectionChange?: ((rows: any[]) => any) | undefined;
26
+ onRowEdit?: ((row: any) => any) | undefined;
27
+ onRowDelete?: ((row: any) => any) | undefined;
28
+ onRowClick?: ((row: any) => any) | undefined;
29
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
+ export default _default;
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ page: number;
3
+ pageSize: number;
4
+ total: number;
5
+ type?: 'page' | 'auto' | 'all';
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:page": (page: number) => any;
9
+ "update:pageSize": (pageSize: number) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:page"?: ((page: number) => any) | undefined;
12
+ "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,120 @@
1
+ type __VLS_Props = {
2
+ formId?: string;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
5
+ loadConfig: (tableId: string) => Promise<void>;
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
7
+ formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
8
+ showForm: (formId: string, query?: string) => Promise<unknown>;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
10
+ formRef: ({
11
+ $: import('vue').ComponentInternalInstance;
12
+ $data: {};
13
+ $props: {
14
+ readonly model?: Record<string, any> | undefined;
15
+ readonly rules?: import('element-plus').FormRules | undefined;
16
+ readonly labelPosition?: "left" | "right" | "top" | undefined;
17
+ readonly requireAsteriskPosition?: "left" | "right" | undefined;
18
+ readonly labelWidth?: string | number | undefined;
19
+ readonly labelSuffix?: string | undefined;
20
+ readonly inline?: boolean | undefined;
21
+ readonly inlineMessage?: boolean | undefined;
22
+ readonly statusIcon?: boolean | undefined;
23
+ readonly showMessage?: boolean | undefined;
24
+ readonly validateOnRuleChange?: boolean | undefined;
25
+ readonly hideRequiredAsterisk?: boolean | undefined;
26
+ readonly scrollToError?: boolean | undefined;
27
+ readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
28
+ readonly size?: import('element-plus').ComponentSize | undefined;
29
+ readonly disabled?: boolean | undefined;
30
+ readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
31
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
32
+ $attrs: import('vue').Attrs;
33
+ $refs: {
34
+ [x: string]: unknown;
35
+ };
36
+ $slots: Readonly<{
37
+ [name: string]: globalThis.Slot | undefined;
38
+ }>;
39
+ $root: ComponentPublicInstance | null;
40
+ $parent: ComponentPublicInstance | null;
41
+ $host: Element | null;
42
+ $emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
43
+ $el: any;
44
+ $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
45
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
46
+ }>, {
47
+ validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
48
+ validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
49
+ resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
50
+ clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
51
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
52
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
53
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
54
+ setInitialValues: (initModel: Record<string, any>) => void;
55
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
+ validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
57
+ }, string, {
58
+ labelWidth: string | number;
59
+ labelPosition: "left" | "right" | "top";
60
+ requireAsteriskPosition: "left" | "right";
61
+ labelSuffix: string;
62
+ showMessage: boolean;
63
+ validateOnRuleChange: boolean;
64
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
65
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
66
+ beforeCreate?: (() => void) | (() => void)[];
67
+ created?: (() => void) | (() => void)[];
68
+ beforeMount?: (() => void) | (() => void)[];
69
+ mounted?: (() => void) | (() => void)[];
70
+ beforeUpdate?: (() => void) | (() => void)[];
71
+ updated?: (() => void) | (() => void)[];
72
+ activated?: (() => void) | (() => void)[];
73
+ deactivated?: (() => void) | (() => void)[];
74
+ beforeDestroy?: (() => void) | (() => void)[];
75
+ beforeUnmount?: (() => void) | (() => void)[];
76
+ destroyed?: (() => void) | (() => void)[];
77
+ unmounted?: (() => void) | (() => void)[];
78
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
79
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
80
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
81
+ };
82
+ $forceUpdate: () => void;
83
+ $nextTick: typeof import('vue').nextTick;
84
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
85
+ } & Readonly<{
86
+ labelWidth: string | number;
87
+ labelPosition: "left" | "right" | "top";
88
+ requireAsteriskPosition: "left" | "right";
89
+ labelSuffix: string;
90
+ showMessage: boolean;
91
+ validateOnRuleChange: boolean;
92
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
93
+ }> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
94
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
95
+ }>, "labelPosition" | "labelWidth" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & {
96
+ validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
97
+ validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
98
+ resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
99
+ clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
100
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
101
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
102
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
103
+ setInitialValues: (initModel: Record<string, any>) => void;
104
+ } & {} & import('vue').ComponentCustomProperties & {} & {
105
+ $slots: {
106
+ default?: (props: {}) => any;
107
+ };
108
+ }) | null;
109
+ }, any, import('vue').ComponentProvideOptions, {
110
+ P: {};
111
+ B: {};
112
+ D: {};
113
+ C: {};
114
+ M: {};
115
+ Defaults: {};
116
+ }, Readonly<{}> & Readonly<{}>, {
117
+ showForm: (formId: string, query?: string) => Promise<unknown>;
118
+ }, {}, {}, {}, {}> | null;
119
+ }, HTMLDivElement>;
120
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { SearchField } from '../ts/model';
2
+ type __VLS_Props = {
3
+ fields: SearchField[];
4
+ modelValue: Record<string, any>;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:modelValue": (value: Record<string, any>) => any;
8
+ search: () => any;
9
+ reset: () => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
12
+ onSearch?: (() => any) | undefined;
13
+ onReset?: (() => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ export default _default;
@@ -0,0 +1,39 @@
1
+ import { ToolbarItem } from '../ts/model';
2
+ type __VLS_Props = {
3
+ toolbar: ToolbarItem[];
4
+ actions?: {
5
+ edit?: string | false;
6
+ delete?: string | false;
7
+ };
8
+ formId?: string;
9
+ apiDelete?: string;
10
+ selectedCount: number;
11
+ };
12
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ create: () => any;
14
+ import: () => any;
15
+ export: () => any;
16
+ batchEdit: () => any;
17
+ batchDelete: () => any;
18
+ custom: (item: {
19
+ text: string;
20
+ url: string;
21
+ primary?: boolean;
22
+ icon?: string;
23
+ confirm?: string;
24
+ }) => any;
25
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
26
+ onCreate?: (() => any) | undefined;
27
+ onImport?: (() => any) | undefined;
28
+ onExport?: (() => any) | undefined;
29
+ onBatchEdit?: (() => any) | undefined;
30
+ onBatchDelete?: (() => any) | undefined;
31
+ onCustom?: ((item: {
32
+ text: string;
33
+ url: string;
34
+ primary?: boolean;
35
+ icon?: string;
36
+ confirm?: string;
37
+ }) => any) | undefined;
38
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
39
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "urit-qf-ui",
3
- "version": "0.0.6",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",
@@ -21,16 +21,20 @@
21
21
  "preview": "vite preview"
22
22
  },
23
23
  "dependencies": {
24
- "@quasar/extras": "^1.16.0",
25
- "quasar": "^2.16.0",
24
+ "@element-plus/icons-vue": "^2.3.2",
25
+ "axios": "^1.7.0",
26
+ "element-plus": "^2.14.5",
27
+ "mitt": "^3.0.1",
28
+ "mqtt": "^5.15.2",
26
29
  "vue": "^3.4.0"
27
30
  },
28
31
  "devDependencies": {
29
- "@quasar/vite-plugin": "^1.7.0",
30
32
  "@types/node": "^20.0.0",
31
33
  "@vitejs/plugin-vue": "^5.0.0",
32
34
  "sass-embedded": "^1.102.0",
33
35
  "typescript": "^5.3.0",
36
+ "unplugin-auto-import": "^21.1.0",
37
+ "unplugin-vue-components": "^32.1.0",
34
38
  "vite": "^5.0.0",
35
39
  "vite-plugin-dts": "^4.0.0",
36
40
  "vue-tsc": "^2.0.0"
@@ -1,17 +0,0 @@
1
- import { WidgetConfig } from './types';
2
- interface Props {
3
- layout?: WidgetConfig[];
4
- selectedField?: string;
5
- }
6
- declare const _default: import('vue').DefineComponent<Props, {
7
- setLayout: (list: WidgetConfig[]) => void;
8
- getLayout: () => WidgetConfig[];
9
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
- "item-click": (field: string) => any;
11
- }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
12
- "onItem-click"?: ((field: string) => any) | undefined;
13
- }>, {
14
- layout: WidgetConfig[];
15
- selectedField: string;
16
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
- export default _default;
@@ -1,6 +0,0 @@
1
- export interface WidgetConfig {
2
- field: string;
3
- type: string;
4
- fieldLabel: string;
5
- values: Record<string, any>;
6
- }