fit2cloud-ui-plus 1.2.2 → 1.2.4-beta.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 (41) hide show
  1. package/README.md +1 -1
  2. package/lib/fit2cloud-ui-plus.es.js +67 -51
  3. package/lib/fit2cloud-ui-plus.umd.js +1 -1
  4. package/package.json +6 -2
  5. package/src/components/read-write-switch/FuInputRwSwitch.vue +5 -4
  6. package/src/components/table/table-operations/FuTableOperations.vue +11 -3
  7. package/types/examples/pages/search/attributes.d.ts +57 -0
  8. package/types/examples/pages/search/demo/BaseSearchbar.vue.d.ts +66 -0
  9. package/types/examples/pages/search/demo/ComplexComponentsDemo.vue.d.ts +60 -0
  10. package/types/examples/pages/search/demo/ComplexSearchDemo.vue.d.ts +84 -0
  11. package/types/examples/pages/search/demo/CustomComponentsDemo.vue.d.ts +50 -0
  12. package/types/examples/pages/search/demo/EchoConditionsDemo.vue.d.ts +52 -0
  13. package/types/examples/pages/search/demo/QuickSearchDemo.vue.d.ts +18 -0
  14. package/types/examples/pages/search/demo/SearchBarButtonDemo.vue.d.ts +54 -0
  15. package/types/examples/pages/search/index.vue.d.ts +150 -0
  16. package/types/examples/pages/table/demo/TablePagination.vue.d.ts +1 -1
  17. package/types/src/components/ steps/FuHorizontalNavigation.vue.d.ts +13 -0
  18. package/types/src/components/ steps/FuHorizontalSteps.vue.d.ts +6 -0
  19. package/types/src/components/ steps/FuStep.vue.d.ts +2 -0
  20. package/types/src/components/ steps/FuStepButton.vue.d.ts +2 -0
  21. package/types/src/components/ steps/FuSteps.vue.d.ts +12 -0
  22. package/types/src/components/ steps/FuStepsFooter.d.ts +6 -0
  23. package/types/src/components/ steps/FuVerticalNavigation.vue.d.ts +14 -0
  24. package/types/src/components/ steps/FuVerticalSteps.vue.d.ts +6 -0
  25. package/types/src/components/ steps/Stepper.d.ts +39 -0
  26. package/types/src/components/ steps/index.d.ts +2 -0
  27. package/types/src/components/ steps/types.d.ts +27 -0
  28. package/types/src/components/filter-bar/FuSearchInput.vue.d.ts +17 -0
  29. package/types/src/components/icon-button/FuIconButton.vue.d.ts +1 -1
  30. package/types/src/components/read-write-switch/FuInputRwSwitch.vue.d.ts +2 -1
  31. package/types/src/components/read-write-switch/FuSelectRwSwitch.vue.d.ts +1 -1
  32. package/types/src/components/search-bar/complex-components/index.d.ts +0 -0
  33. package/types/src/components/search-bar/complex-components/mixins.d.ts +6 -0
  34. package/types/src/components/table/FuTableBody-backup.d.ts +3 -0
  35. package/types/src/components/table/table-operations/FuTableOperations.vue.d.ts +18 -0
  36. package/types/src/components/table/types.d.ts +2 -0
  37. package/types/src/hooks/use-global-config/index.d.ts +2 -2
  38. package/types/src/hooks/use-locale/index.d.ts +3 -3
  39. package/types/src/locale/index.d.ts +2 -2
  40. package/types/src/tools/size.d.ts +1 -1
  41. package/types/src/tools/utils.d.ts +2 -0
@@ -0,0 +1,14 @@
1
+ import type { PropType } from 'vue';
2
+ import { Step } from "@/components/ steps/Stepper";
3
+ declare const _default: import("vue").DefineComponent<{
4
+ stepper: ObjectConstructor;
5
+ steps: PropType<Step[]>;
6
+ disable: PropType<(index: number) => boolean>;
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "active"[], "active", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ stepper: ObjectConstructor;
9
+ steps: PropType<Step[]>;
10
+ disable: PropType<(index: number) => boolean>;
11
+ }>> & {
12
+ onActive?: ((...args: any[]) => any) | undefined;
13
+ }, {}>;
14
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
+ [key: string]: any;
3
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
4
+ onChange?: ((...args: any[]) => any) | undefined;
5
+ }, {}>;
6
+ export default _default;
@@ -0,0 +1,39 @@
1
+ import { StepperOptions, StepOptions } from './types';
2
+ export declare class Stepper implements StepperOptions {
3
+ steps: [Step];
4
+ index: number;
5
+ activeSet: any;
6
+ isLoading: boolean;
7
+ onCancelButtonText: string;
8
+ onFinishButtonText: string;
9
+ prevButtonText: string;
10
+ nextButtonText: string;
11
+ buttonSize: string;
12
+ footerAlign: string;
13
+ showCancel: any;
14
+ beforeActive: Function;
15
+ beforeLeave: Function;
16
+ height: string;
17
+ constructor(options?: StepperOptions);
18
+ isFirst(index: number): boolean;
19
+ isLast(index: number): boolean;
20
+ isActive(index: number): boolean;
21
+ isCurrent(index: number): boolean;
22
+ active(index: number): Promise<void>;
23
+ next(): void;
24
+ prev(): void;
25
+ getStep(index: number): Step | undefined;
26
+ executeBeforeLeave(index: number, forward: boolean): any;
27
+ executeBeforeActive(index: number, forward: boolean): any;
28
+ }
29
+ export declare class Step implements StepOptions {
30
+ id?: string;
31
+ index: number;
32
+ beforeActive?: Function;
33
+ beforeLeave?: Function;
34
+ title?: string;
35
+ description?: string;
36
+ icon?: string;
37
+ status?: string;
38
+ constructor(options?: StepOptions);
39
+ }
@@ -0,0 +1,2 @@
1
+ import FuSteps from "./FuSteps.vue";
2
+ export default FuSteps;
@@ -0,0 +1,27 @@
1
+ import { Step } from "@/components/ steps/Stepper";
2
+ export interface StepperOptions {
3
+ steps: [Step];
4
+ index: number;
5
+ activeSet: any;
6
+ isLoading?: boolean;
7
+ onCancelButtonText: string;
8
+ onFinishButtonText: string;
9
+ prevButtonText: string;
10
+ nextButtonText: string;
11
+ buttonSize: string;
12
+ footerAlign: string;
13
+ showCancel: any;
14
+ beforeActive: Function;
15
+ beforeLeave: Function;
16
+ height: string;
17
+ }
18
+ export interface StepOptions {
19
+ id?: string;
20
+ index: number;
21
+ beforeActive?: Function;
22
+ beforeLeave?: Function;
23
+ title?: string;
24
+ description?: string;
25
+ icon?: string;
26
+ status?: string;
27
+ }
@@ -0,0 +1,17 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ size: {
3
+ type: StringConstructor;
4
+ validator: (val: string) => val is string;
5
+ };
6
+ value: StringConstructor;
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input")[], "input" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ size: {
9
+ type: StringConstructor;
10
+ validator: (val: string) => val is string;
11
+ };
12
+ value: StringConstructor;
13
+ }>> & {
14
+ onChange?: ((...args: any[]) => any) | undefined;
15
+ onInput?: ((...args: any[]) => any) | undefined;
16
+ }, {}>;
17
+ export default _default;
@@ -35,9 +35,9 @@ declare const _default: import("vue").DefineComponent<{
35
35
  }>> & {
36
36
  onClick?: ((...args: any[]) => any) | undefined;
37
37
  }, {
38
- tabindex: string | number;
39
38
  disabled: boolean;
40
39
  size: string | number;
41
40
  loading: boolean;
41
+ tabindex: string | number;
42
42
  }>;
43
43
  export default _default;
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<{
5
5
  default: string;
6
6
  validator: (value: string) => boolean;
7
7
  };
8
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "input")[], "input" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "enter")[], "input" | "blur" | "enter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
9
  modelValue: (StringConstructor | NumberConstructor)[];
10
10
  writeTrigger: {
11
11
  type: StringConstructor;
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  }>> & {
16
16
  onBlur?: ((...args: any[]) => any) | undefined;
17
17
  onInput?: ((...args: any[]) => any) | undefined;
18
+ onEnter?: ((...args: any[]) => any) | undefined;
18
19
  }, {
19
20
  writeTrigger: string;
20
21
  }>;
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  default: string;
16
16
  validator: (value: string) => boolean;
17
17
  };
18
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "input" | "update:modelValue")[], "input" | "blur" | "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "change" | "update:modelValue")[], "input" | "blur" | "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
19
  modelValue: (StringConstructor | NumberConstructor)[];
20
20
  options: {
21
21
  type: PropType<OptionProps[]>;
@@ -0,0 +1,6 @@
1
+ declare namespace _default {
2
+ const props: any;
3
+ const methods: any;
4
+ const computed: any;
5
+ }
6
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare const isFix: (node: any) => boolean;
2
+ export declare const getLabel: (node: any) => any;
3
+ export declare const FuTableBody: (props: any, context: any) => any;
@@ -18,6 +18,14 @@ declare const _default: import("vue").DefineComponent<{
18
18
  default: string;
19
19
  validator: (value: string) => boolean;
20
20
  };
21
+ maxHeight: {
22
+ type: (StringConstructor | NumberConstructor)[];
23
+ default: string;
24
+ };
25
+ trigger: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
21
29
  }, {}, 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
30
  align: {
23
31
  type: StringConstructor;
@@ -38,9 +46,19 @@ declare const _default: import("vue").DefineComponent<{
38
46
  default: string;
39
47
  validator: (value: string) => boolean;
40
48
  };
49
+ maxHeight: {
50
+ type: (StringConstructor | NumberConstructor)[];
51
+ default: string;
52
+ };
53
+ trigger: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
41
57
  }>>, {
42
58
  type: string;
43
59
  align: string;
60
+ trigger: string;
44
61
  ellipsis: number;
62
+ maxHeight: string | number;
45
63
  }>;
46
64
  export default _default;
@@ -0,0 +1,2 @@
1
+ import { InjectionKey } from "vue";
2
+ export declare const LocalKey: InjectionKey<string | undefined>;
@@ -6,5 +6,5 @@ export interface GlobalConfig {
6
6
  locale?: any;
7
7
  i18n?: Function;
8
8
  }
9
- export declare function useGlobalConfig(key?: keyof any, defaultValue?: undefined): Ref<any>;
10
- export declare const provideGlobalConfig: (config: MaybeRef<GlobalConfig>, app?: App<any> | undefined) => import("vue").ComputedRef<GlobalConfig>;
9
+ export declare function useGlobalConfig(key?: keyof any, defaultValue?: undefined): Ref<any> | import("vue").ComputedRef<any>;
10
+ export declare const provideGlobalConfig: (config: MaybeRef<GlobalConfig>, app?: App) => import("vue").ComputedRef<GlobalConfig>;
@@ -1,9 +1,9 @@
1
1
  import type { MaybeRef } from '@vueuse/core';
2
2
  import type { Ref } from 'vue';
3
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 = {
4
+ export type TranslatorOption = Record<string, string | number>;
5
+ export type Translator = (path: string, option?: TranslatorOption) => string;
6
+ export type LocaleContext = {
7
7
  locale: Ref<Language>;
8
8
  lang: Ref<string>;
9
9
  t: Translator;
@@ -5,10 +5,10 @@ export { default as ja } from './lang/ja';
5
5
  export { default as ms } from './lang/ms';
6
6
  export { default as ru } from './lang/ru';
7
7
  export { default as ptBr } from './lang/pt-br';
8
- export declare type TranslatePair = {
8
+ export type TranslatePair = {
9
9
  [key: string]: string | string[] | TranslatePair;
10
10
  };
11
- export declare type Language = {
11
+ export type Language = {
12
12
  name: string;
13
13
  el: TranslatePair;
14
14
  };
@@ -1,4 +1,4 @@
1
1
  declare const COMPONENTS_SIZE: string[];
2
- export declare type ComponentSize = typeof COMPONENTS_SIZE[number];
2
+ export type ComponentSize = typeof COMPONENTS_SIZE[number];
3
3
  export declare const validateSize: (val: string) => val is string;
4
4
  export {};
@@ -0,0 +1,2 @@
1
+ export declare const uuid: () => string;
2
+ export declare const randomId: () => number;