fit2cloud-ui-plus 0.0.1-beta.10 → 0.0.1-beta.13

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 (117) hide show
  1. package/README.md +61 -9
  2. package/lib/fit2cloud-ui-plus.es.js +693 -90
  3. package/lib/fit2cloud-ui-plus.umd.js +1 -1
  4. package/package.json +6 -3
  5. package/src/.DS_Store +0 -0
  6. package/src/components/.DS_Store +0 -0
  7. package/src/components/speed-dial/FuSpeedDial.vue +289 -0
  8. package/src/components/speed-dial/FuSpeedDialActionButton.vue +88 -0
  9. package/src/components/speed-dial/FuSpeedDialButton.vue +45 -0
  10. package/src/components/speed-dial/FuSpeedDialItem.vue +82 -0
  11. package/src/components/speed-dial/index.ts +11 -0
  12. package/src/components/speed-dial/types.ts +12 -0
  13. package/src/styles/components/speed-dial.scss +1 -51
  14. package/src/styles/components/table.scss +0 -3
  15. package/types/examples/App.vue.d.ts +2 -0
  16. package/types/examples/components/CodeExample.vue.d.ts +29 -0
  17. package/types/examples/components/DocumentTable.vue.d.ts +14 -0
  18. package/types/examples/components/Markdown.vue.d.ts +12 -0
  19. package/types/examples/layout/components/AppHeader.vue.d.ts +2 -0
  20. package/types/examples/layout/components/Sidebar.vue.d.ts +2 -0
  21. package/types/examples/layout/index.vue.d.ts +2 -0
  22. package/types/examples/main.d.ts +2 -0
  23. package/types/examples/pages/filter-bar/attributes.d.ts +63 -0
  24. package/types/examples/pages/filter-bar/demo/BaseFilterBar.vue.d.ts +2 -0
  25. package/types/examples/pages/filter-bar/demo/SetConditionsDemo.vue.d.ts +2 -0
  26. package/types/examples/pages/filter-bar/demo/SlotDemo.vue.d.ts +2 -0
  27. package/types/examples/pages/filter-bar/index.vue.d.ts +2 -0
  28. package/types/examples/pages/index.d.ts +3 -0
  29. package/types/examples/pages/read-write-switch/attributes.d.ts +63 -0
  30. package/types/examples/pages/read-write-switch/demo/BaseDemo.vue.d.ts +2 -0
  31. package/types/examples/pages/read-write-switch/demo/CustomContentDemo.vue.d.ts +2 -0
  32. package/types/examples/pages/read-write-switch/demo/InputRwSwitchDemo.vue.d.ts +2 -0
  33. package/types/examples/pages/read-write-switch/demo/ReadSwitchDemo.vue.d.ts +2 -0
  34. package/types/examples/pages/read-write-switch/demo/SelectRwSwitchDemo.vue.d.ts +2 -0
  35. package/types/examples/pages/read-write-switch/demo/TableInnerEditDemo.vue.d.ts +2 -0
  36. package/types/examples/pages/read-write-switch/demo/WriteSwitchDemo.vue.d.ts +2 -0
  37. package/types/examples/pages/read-write-switch/index.vue.d.ts +2 -0
  38. package/types/examples/pages/speed-dial/attributes.d.ts +63 -0
  39. package/types/examples/pages/speed-dial/demo/BaseSpeedDial.vue.d.ts +2 -0
  40. package/types/examples/pages/speed-dial/demo/SpeedDialCustom.vue.d.ts +2 -0
  41. package/types/examples/pages/speed-dial/demo/SpeedDialPosition.vue.d.ts +2 -0
  42. package/types/examples/pages/speed-dial/demo/SpeedDialTrigger.vue.d.ts +2 -0
  43. package/types/examples/pages/speed-dial/index.vue.d.ts +2 -0
  44. package/types/examples/pages/split-pane/attributes.d.ts +63 -0
  45. package/types/examples/pages/split-pane/demo/BaseSplit.vue.d.ts +2 -0
  46. package/types/examples/pages/split-pane/demo/CustomResizer.vue.d.ts +2 -0
  47. package/types/examples/pages/split-pane/demo/NestSplit.vue.d.ts +2 -0
  48. package/types/examples/pages/split-pane/demo/ResizerType.vue.d.ts +2 -0
  49. package/types/examples/pages/split-pane/index.vue.d.ts +2 -0
  50. package/types/examples/pages/table/attributes.d.ts +121 -0
  51. package/types/examples/pages/table/demo/BaseTable.vue.d.ts +2 -0
  52. package/types/examples/pages/table/demo/DropdownColumn.vue.d.ts +2 -0
  53. package/types/examples/pages/table/demo/DropdownColumnSlot.vue.d.ts +2 -0
  54. package/types/examples/pages/table/demo/SaveSelectColumn.vue.d.ts +2 -0
  55. package/types/examples/pages/table/demo/SelectColumn.vue.d.ts +2 -0
  56. package/types/examples/pages/table/demo/TableOperations.vue.d.ts +2 -0
  57. package/types/examples/pages/table/demo/TablePagination.vue.d.ts +2 -0
  58. package/types/examples/pages/table/index.vue.d.ts +2 -0
  59. package/types/examples/pages/tabs/attributes.d.ts +63 -0
  60. package/types/examples/pages/tabs/demo/AddCloseTab.vue.d.ts +2 -0
  61. package/types/examples/pages/tabs/index.vue.d.ts +2 -0
  62. package/types/examples/router/doc-routes.d.ts +12 -0
  63. package/types/examples/router/index.d.ts +4 -0
  64. package/types/plugins/example-transform.d.ts +5 -0
  65. package/types/src/components/filter-bar/FuFilter.vue.d.ts +39 -0
  66. package/types/src/components/filter-bar/FuFilterBar.vue.d.ts +22 -0
  67. package/types/src/components/filter-bar/FuFilterConditions.vue.d.ts +8 -0
  68. package/types/src/components/filter-bar/FuSearchInput.vue.d.ts +17 -0
  69. package/types/src/components/filter-bar/filter-components/FuFilterDate.vue.d.ts +36 -0
  70. package/types/src/components/filter-bar/filter-components/FuFilterDateTime.vue.d.ts +36 -0
  71. package/types/src/components/filter-bar/filter-components/FuFilterOption.vue.d.ts +24 -0
  72. package/types/src/components/filter-bar/filter-components/FuFilterSelect.vue.d.ts +66 -0
  73. package/types/src/components/filter-bar/index.d.ts +2 -0
  74. package/types/src/components/filter-bar/types.d.ts +22 -0
  75. package/types/src/components/read-write-switch/FuInputRwSwitch.vue.d.ts +21 -0
  76. package/types/src/components/read-write-switch/FuReadWriteSwitch.vue.d.ts +23 -0
  77. package/types/src/components/read-write-switch/FuSelectRwSwitch.vue.d.ts +33 -0
  78. package/types/src/components/read-write-switch/index.d.ts +2 -0
  79. package/types/src/components/read-write-switch/types.d.ts +4 -0
  80. package/types/src/components/speed-dial/FuSpeedDial.vue.d.ts +218 -0
  81. package/types/src/components/speed-dial/FuSpeedDialActionButton.vue.d.ts +32 -0
  82. package/types/src/components/speed-dial/FuSpeedDialButton.vue.d.ts +42 -0
  83. package/types/src/components/speed-dial/FuSpeedDialItem.vue.d.ts +12 -0
  84. package/types/src/components/speed-dial/index.d.ts +2 -0
  85. package/types/src/components/speed-dial/types.d.ts +8 -0
  86. package/types/src/components/split-pane/FuSplitPane.vue.d.ts +59 -0
  87. package/types/src/components/split-pane/index.d.ts +2 -0
  88. package/types/src/components/table/FuTable.vue.d.ts +18 -0
  89. package/types/src/components/table/FuTableBody.d.ts +3 -0
  90. package/types/src/components/table/FuTableColumnDropdown.vue.d.ts +50 -0
  91. package/types/src/components/table/FuTablePagination.vue.d.ts +47 -0
  92. package/types/src/components/table/index.d.ts +2 -0
  93. package/types/src/components/table/table-column-select/FuTableColumnSelect.vue.d.ts +10 -0
  94. package/types/src/components/table/table-column-select/FuTableColumnSelectDialog.vue.d.ts +23 -0
  95. package/types/src/components/table/table-column-select/FuTableColumnSelectPopover.vue.d.ts +34 -0
  96. package/types/src/components/table/table-column-select/utils.d.ts +8 -0
  97. package/types/src/components/table/table-operations/FuTableButton.vue.d.ts +13 -0
  98. package/types/src/components/table/table-operations/FuTableMoreButton.vue.d.ts +37 -0
  99. package/types/src/components/table/table-operations/FuTableOperations.vue.d.ts +46 -0
  100. package/types/src/components/table/types.d.ts +2 -0
  101. package/types/src/components/tabs/FuTabs.vue.d.ts +54 -0
  102. package/types/src/components/tabs/index.d.ts +2 -0
  103. package/types/src/hooks/index.d.ts +3 -0
  104. package/types/src/hooks/use-global-config/index.d.ts +1 -0
  105. package/types/src/hooks/use-locale/index.d.ts +14 -0
  106. package/types/src/hooks/use-size/index.d.ts +5 -0
  107. package/types/src/index.d.ts +7 -0
  108. package/types/src/locale/index.d.ts +10 -0
  109. package/types/src/locale/lang/en.d.ts +59 -0
  110. package/types/src/locale/lang/zh-cn.d.ts +59 -0
  111. package/types/src/locale/lang/zh-tw.d.ts +59 -0
  112. package/types/src/tools/size.d.ts +4 -0
  113. package/types/src/tools/theme.d.ts +1 -0
  114. package/types/src/tools/time.d.ts +2 -0
  115. package/types/src/tools/types.d.ts +8 -0
  116. package/types/src/tools/utils.d.ts +2 -0
  117. package/types/src/tools/vnode.d.ts +9 -0
@@ -0,0 +1,37 @@
1
+ import { PropType } from "vue";
2
+ import { DropdownProps } from "@/tools/types";
3
+ declare const _default: import("vue").DefineComponent<{
4
+ row: ObjectConstructor;
5
+ buttons: {
6
+ type: PropType<DropdownProps[]>;
7
+ required: true;
8
+ };
9
+ size: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ type: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ validator: (value: string) => boolean;
17
+ };
18
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ row: ObjectConstructor;
20
+ buttons: {
21
+ type: PropType<DropdownProps[]>;
22
+ required: true;
23
+ };
24
+ size: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ type: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ validator: (value: string) => boolean;
32
+ };
33
+ }>>, {
34
+ type: string;
35
+ size: string;
36
+ }>;
37
+ export default _default;
@@ -0,0 +1,46 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ align: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ width: (StringConstructor | NumberConstructor)[];
7
+ minWidth: (StringConstructor | NumberConstructor)[];
8
+ ellipsis: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
12
+ buttons: {
13
+ type: ArrayConstructor;
14
+ required: true;
15
+ };
16
+ type: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ validator: (value: string) => boolean;
20
+ };
21
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ align: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ width: (StringConstructor | NumberConstructor)[];
27
+ minWidth: (StringConstructor | NumberConstructor)[];
28
+ ellipsis: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ buttons: {
33
+ type: ArrayConstructor;
34
+ required: true;
35
+ };
36
+ type: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ validator: (value: string) => boolean;
40
+ };
41
+ }>>, {
42
+ type: string;
43
+ align: string;
44
+ ellipsis: number;
45
+ }>;
46
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { InjectionKey } from "vue";
2
+ export declare const LocalKey: InjectionKey<string | undefined>;
@@ -0,0 +1,54 @@
1
+ import { PropType } from "vue";
2
+ import { DropdownProps } from "@/tools/types";
3
+ declare const _default: import("vue").DefineComponent<{
4
+ addType: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ validator: (val: string) => boolean;
8
+ };
9
+ dropdownMenus: {
10
+ type: PropType<DropdownProps[]>;
11
+ default: () => never[];
12
+ };
13
+ addTrigger: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ validator: (val: string) => boolean;
17
+ };
18
+ addIcon: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ addButtonLabel: StringConstructor;
23
+ addable: BooleanConstructor;
24
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "command"[], "command", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ addType: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ validator: (val: string) => boolean;
29
+ };
30
+ dropdownMenus: {
31
+ type: PropType<DropdownProps[]>;
32
+ default: () => never[];
33
+ };
34
+ addTrigger: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ validator: (val: string) => boolean;
38
+ };
39
+ addIcon: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ addButtonLabel: StringConstructor;
44
+ addable: BooleanConstructor;
45
+ }>> & {
46
+ onCommand?: ((...args: any[]) => any) | undefined;
47
+ }, {
48
+ addable: boolean;
49
+ addType: string;
50
+ dropdownMenus: DropdownProps[];
51
+ addTrigger: string;
52
+ addIcon: string;
53
+ }>;
54
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import FuTabs from "./FuTabs.vue";
2
+ export default FuTabs;
@@ -0,0 +1,3 @@
1
+ export * from './use-global-config';
2
+ export * from './use-locale';
3
+ export * from './use-size';
@@ -0,0 +1 @@
1
+ export declare function useGlobalConfig(key?: keyof any, defaultValue?: undefined): import("vue").Ref<any>;
@@ -0,0 +1,14 @@
1
+ import type { MaybeRef } from '@vueuse/core';
2
+ import type { Ref } from 'vue';
3
+ import type { Language } from '@/locale';
4
+ export declare type TranslatorOption = Record<string, string | number>;
5
+ export declare type Translator = (path: string, option?: TranslatorOption) => string;
6
+ export declare type LocaleContext = {
7
+ locale: Ref<Language>;
8
+ lang: Ref<string>;
9
+ t: Translator;
10
+ };
11
+ export declare const buildTranslator: (locale: MaybeRef<Language>) => Translator;
12
+ export declare const translate: (path: string, option: undefined | TranslatorOption, locale: Language) => string;
13
+ export declare const buildLocaleContext: (locale: MaybeRef<Language>) => LocaleContext;
14
+ export declare const useLocale: () => LocaleContext;
@@ -0,0 +1,5 @@
1
+ import type { ComputedRef } from 'vue';
2
+ import type { ComponentSize } from '@/tools/size';
3
+ import type { MaybeRef } from '@vueuse/core';
4
+ export declare const useProp: <T>(name: string) => ComputedRef<T | undefined>;
5
+ export declare const useSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<'prop' | 'global', boolean>>) => ComputedRef<string>;
@@ -0,0 +1,7 @@
1
+ import type { App } from 'vue';
2
+ declare const plugin: {
3
+ name: string;
4
+ version: string;
5
+ install: (app: App) => void;
6
+ };
7
+ export default plugin;
@@ -0,0 +1,10 @@
1
+ export { default as en } from './lang/en';
2
+ export { default as zhCn } from './lang/zh-cn';
3
+ export { default as zhTw } from './lang/zh-tw';
4
+ export declare type TranslatePair = {
5
+ [key: string]: string | string[] | TranslatePair;
6
+ };
7
+ export declare type Language = {
8
+ name: string;
9
+ el: TranslatePair;
10
+ };
@@ -0,0 +1,59 @@
1
+ declare const _default: {
2
+ name: string;
3
+ fu: {
4
+ filter_bar: {
5
+ filter: string;
6
+ results: string;
7
+ clear: string;
8
+ drawer_title: string;
9
+ cancel: string;
10
+ search: string;
11
+ select_all: string;
12
+ more: string;
13
+ };
14
+ search_bar: {
15
+ search: string;
16
+ adv_search: string;
17
+ ok: string;
18
+ cancel: string;
19
+ please_select: string;
20
+ please_input: string;
21
+ like: string;
22
+ not_like: string;
23
+ in: string;
24
+ not_in: string;
25
+ gt: string;
26
+ ge: string;
27
+ lt: string;
28
+ le: string;
29
+ eq: string;
30
+ ne: string;
31
+ between: string;
32
+ select_date: string;
33
+ start_date: string;
34
+ end_date: string;
35
+ select_date_time: string;
36
+ start_date_time: string;
37
+ end_date_time: string;
38
+ range_separator: string;
39
+ data_time_error: string;
40
+ clean: string;
41
+ refresh: string;
42
+ };
43
+ table: {
44
+ ok: string;
45
+ reset: string;
46
+ custom_table_fields: string;
47
+ custom_table_fields_desc: string;
48
+ custom_table_rows: string;
49
+ more: string;
50
+ };
51
+ steps: {
52
+ cancel: string;
53
+ next: string;
54
+ prev: string;
55
+ finish: string;
56
+ };
57
+ };
58
+ };
59
+ export default _default;
@@ -0,0 +1,59 @@
1
+ declare const _default: {
2
+ name: string;
3
+ fu: {
4
+ filter_bar: {
5
+ filter: string;
6
+ results: string;
7
+ clear: string;
8
+ drawer_title: string;
9
+ cancel: string;
10
+ search: string;
11
+ select_all: string;
12
+ more: string;
13
+ };
14
+ search_bar: {
15
+ search: string;
16
+ adv_search: string;
17
+ ok: string;
18
+ cancel: string;
19
+ please_select: string;
20
+ please_input: string;
21
+ like: string;
22
+ not_like: string;
23
+ in: string;
24
+ not_in: string;
25
+ gt: string;
26
+ ge: string;
27
+ lt: string;
28
+ le: string;
29
+ eq: string;
30
+ ne: string;
31
+ between: string;
32
+ select_date: string;
33
+ start_date: string;
34
+ end_date: string;
35
+ select_date_time: string;
36
+ start_date_time: string;
37
+ end_date_time: string;
38
+ range_separator: string;
39
+ data_time_error: string;
40
+ clean: string;
41
+ refresh: string;
42
+ };
43
+ table: {
44
+ ok: string;
45
+ reset: string;
46
+ custom_table_fields: string;
47
+ custom_table_fields_desc: string;
48
+ custom_table_rows: string;
49
+ more: string;
50
+ };
51
+ steps: {
52
+ cancel: string;
53
+ next: string;
54
+ prev: string;
55
+ finish: string;
56
+ };
57
+ };
58
+ };
59
+ export default _default;
@@ -0,0 +1,59 @@
1
+ declare const _default: {
2
+ name: string;
3
+ fu: {
4
+ filter_bar: {
5
+ filter: string;
6
+ results: string;
7
+ clear: string;
8
+ drawer_title: string;
9
+ cancel: string;
10
+ search: string;
11
+ select_all: string;
12
+ more: string;
13
+ };
14
+ search_bar: {
15
+ search: string;
16
+ adv_search: string;
17
+ ok: string;
18
+ cancel: string;
19
+ please_select: string;
20
+ please_input: string;
21
+ like: string;
22
+ not_like: string;
23
+ in: string;
24
+ not_in: string;
25
+ gt: string;
26
+ ge: string;
27
+ lt: string;
28
+ le: string;
29
+ eq: string;
30
+ ne: string;
31
+ between: string;
32
+ select_date: string;
33
+ start_date: string;
34
+ end_date: string;
35
+ select_date_time: string;
36
+ start_date_time: string;
37
+ end_date_time: string;
38
+ range_separator: string;
39
+ data_time_error: string;
40
+ clean: string;
41
+ refresh: string;
42
+ };
43
+ table: {
44
+ ok: string;
45
+ reset: string;
46
+ custom_table_fields: string;
47
+ custom_table_fields_desc: string;
48
+ custom_table_rows: string;
49
+ more: string;
50
+ };
51
+ steps: {
52
+ cancel: string;
53
+ next: string;
54
+ prev: string;
55
+ finish: string;
56
+ };
57
+ };
58
+ };
59
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const COMPONENTS_SIZE: string[];
2
+ export declare type ComponentSize = typeof COMPONENTS_SIZE[number];
3
+ export declare const validateSize: (val: string) => val is string;
4
+ export {};
@@ -0,0 +1 @@
1
+ export declare const validateType: (value: string) => boolean;
@@ -0,0 +1,2 @@
1
+ export declare const datetimeFormat: (timestamp: string) => string;
2
+ export declare const dateFormat: (timestamp: string) => string;
@@ -0,0 +1,8 @@
1
+ export interface DropdownProps {
2
+ icon?: string;
3
+ disabled?: boolean;
4
+ divided?: boolean;
5
+ command?: string | number | object;
6
+ label?: string | number;
7
+ [k: string]: any;
8
+ }
@@ -0,0 +1,2 @@
1
+ export declare const uuid: () => string;
2
+ export declare const randomId: () => number;
@@ -0,0 +1,9 @@
1
+ import type { VNode, VNodeNormalizedChildren } from 'vue';
2
+ export declare function isFragment(node: VNode): boolean;
3
+ export declare function isFragment(node: unknown): node is VNode;
4
+ export declare function isComment(node: VNode): boolean;
5
+ export declare function isComment(node: unknown): node is VNode;
6
+ export declare function isValidElementNode(node: VNode): boolean;
7
+ export declare function isValidElementNode(node: unknown): node is VNode;
8
+ export declare function isValidChildren(children: VNodeNormalizedChildren): children is VNodeNormalizedChildren;
9
+ export declare function getChildren(nodes: VNodeNormalizedChildren | VNode[], depth?: number): VNodeNormalizedChildren | VNode[];