plugin-ui-for-kzt 0.0.10 → 0.0.11
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/dist/example/App.vue.d.ts +46 -0
- package/dist/example/main.d.ts +1 -0
- package/dist/index.js +58230 -0
- package/dist/index.js.map +1 -0
- package/dist/sprite.svg +4 -0
- package/dist/src/components/BaseBreadCrumbs/BaseBreadCrumbs.vue.d.ts +34 -0
- package/dist/src/components/BaseButton/BaseButton.vue.d.ts +189 -0
- package/dist/src/components/BaseCalendar/BaseCalendar.vue.d.ts +176 -0
- package/dist/src/components/BaseCheckbox/BaseCheckbox.vue.d.ts +174 -0
- package/dist/src/components/BaseDropdown/BaseDropdown.vue.d.ts +151 -0
- package/dist/src/components/BaseIcon/BaseIcon.vue.d.ts +29 -0
- package/dist/src/components/BaseInputCalendar/BaseInputCalendar.vue.d.ts +202 -0
- package/dist/src/components/BaseInputEmail/BaseInputEmail.vue.d.ts +176 -0
- package/dist/src/components/BaseInputPhone/BaseInputPhone.vue.d.ts +251 -0
- package/dist/src/components/BaseLoader/BaseLoader.vue.d.ts +4 -0
- package/dist/src/components/BaseOpenedListItem/BaseOpenedListItem.vue.d.ts +148 -0
- package/dist/src/components/BaseRadio/BaseRadio.vue.d.ts +173 -0
- package/dist/src/components/BaseSegmentedButtons/BaseSegmentedButtons.vue.d.ts +142 -0
- package/dist/src/components/BaseSelect/BaseSelect.vue.d.ts +265 -0
- package/dist/src/components/BaseSiteInput/BaseSiteInput.vue.d.ts +119 -0
- package/dist/src/components/BaseTextarea/BaseTextarea.vue.d.ts +195 -0
- package/dist/src/components/BaseToggle/BaseToggle.vue.d.ts +166 -0
- package/dist/src/components/BaseTooltip/BaseTooltip.vue.d.ts +76 -0
- package/dist/src/components/DataTable/DataTable.vue.d.ts +42 -0
- package/dist/src/components/Modal/Modal.vue.d.ts +36 -0
- package/dist/src/components/Spinner/Spinner.vue.d.ts +46 -0
- package/dist/src/components/Toaster/Toaster.vue.d.ts +117 -0
- package/dist/src/components/Toaster/timer.d.ts +12 -0
- package/dist/src/components/Tooltip/Tooltip.vue.d.ts +43 -0
- package/dist/src/composables/kit/color.d.ts +6 -0
- package/dist/src/composables/kit/interactive.d.ts +7 -0
- package/dist/src/composables/kit/size.d.ts +6 -0
- package/dist/src/composables/kit/state.d.ts +17 -0
- package/dist/src/composables/kit/style.d.ts +8 -0
- package/dist/src/composables/kit/utils.d.ts +1 -0
- package/dist/src/icons/index.d.ts +4 -0
- package/dist/src/index.d.ts +33 -0
- package/dist/src/plugins/modalPlugin.d.ts +17 -0
- package/dist/src/plugins/toasterPlugin.d.ts +26 -0
- package/dist/src/store/modal.d.ts +11 -0
- package/dist/src/types/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
content: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
position: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
width: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
}>, {
|
|
18
|
+
props: any;
|
|
19
|
+
isVisible: import("vue").Ref<boolean, boolean>;
|
|
20
|
+
showTooltip: () => void;
|
|
21
|
+
hideTooltip: () => void;
|
|
22
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
content: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: true;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
position: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: false;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
width: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
required: false;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
}>> & Readonly<{}>, {
|
|
39
|
+
position: string;
|
|
40
|
+
content: string;
|
|
41
|
+
width: string;
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ICoreInteractive } from '../../types/utils';
|
|
2
|
+
export declare function useKitInteractive(props: ICoreInteractive): {
|
|
3
|
+
componentTag: import("vue").ComputedRef<string>;
|
|
4
|
+
interactiveClassList: import("vue").ComputedRef<{
|
|
5
|
+
'--is-interactive': boolean;
|
|
6
|
+
}[]>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ICoreState } from '../../types/utils';
|
|
2
|
+
export declare function useKitState(props: ICoreState): {
|
|
3
|
+
stateClassList: import("vue").ComputedRef<{
|
|
4
|
+
'--is-selected': boolean | undefined;
|
|
5
|
+
'--is-active': boolean | undefined;
|
|
6
|
+
'--is-required': boolean | undefined;
|
|
7
|
+
'--is-error': import("../../types/utils").Nullable<string | number | boolean> | undefined;
|
|
8
|
+
'--is-loading': boolean | undefined;
|
|
9
|
+
'--is-disabled': boolean | undefined;
|
|
10
|
+
}[]>;
|
|
11
|
+
stateAttrs: import("vue").ComputedRef<{
|
|
12
|
+
disabled?: true | undefined;
|
|
13
|
+
required?: true | undefined;
|
|
14
|
+
'data-disabled'?: true | undefined;
|
|
15
|
+
'data-error'?: boolean | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ICoreStyle } from '../../types/utils';
|
|
2
|
+
export declare function useKitStyle(props: ICoreStyle): {
|
|
3
|
+
styleClassList: import("vue").ComputedRef<{
|
|
4
|
+
'--is-outline': boolean | undefined;
|
|
5
|
+
'--is-rounded': boolean | undefined;
|
|
6
|
+
'--is-underline': boolean | undefined;
|
|
7
|
+
}[]>;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isValidUrl(string: string): boolean;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import Modal from "./components/Modal/Modal.vue";
|
|
2
|
+
import DataTable from "./components/DataTable/DataTable.vue";
|
|
3
|
+
import Tooltip from "./components/Tooltip/Tooltip.vue";
|
|
4
|
+
import Spinner from "./components/Spinner/Spinner.vue";
|
|
5
|
+
import { useModal } from "./plugins/modalPlugin";
|
|
6
|
+
import { useToast } from "./plugins/toasterPlugin";
|
|
7
|
+
import "./icons";
|
|
8
|
+
import "./styles/root.scss";
|
|
9
|
+
import BaseIcon from "./components/BaseIcon/BaseIcon.vue";
|
|
10
|
+
import BaseBreadCrumbs from "./components/BaseBreadCrumbs/BaseBreadCrumbs.vue";
|
|
11
|
+
import BaseButton from "./components/BaseButton/BaseButton.vue";
|
|
12
|
+
import BaseLoader from "./components/BaseLoader/BaseLoader.vue";
|
|
13
|
+
import BaseCalendar from "./components/BaseCalendar/BaseCalendar.vue";
|
|
14
|
+
import BaseCheckbox from "./components/BaseCheckbox/BaseCheckbox.vue";
|
|
15
|
+
import BaseRadio from "./components/BaseRadio/BaseRadio.vue";
|
|
16
|
+
import BaseTextarea from "./components/BaseTextarea/BaseTextarea.vue";
|
|
17
|
+
import BaseToggle from "./components/BaseToggle/BaseToggle.vue";
|
|
18
|
+
import BaseTooltip from "./components/BaseTooltip/BaseTooltip.vue";
|
|
19
|
+
import BaseInput from "./components/BaseInput/BaseInput.vue";
|
|
20
|
+
import BaseInputEmail from "./components/BaseInputEmail/BaseInputEmail.vue";
|
|
21
|
+
import BaseInputCalendar from "./components/BaseInputCalendar/BaseInputCalendar.vue";
|
|
22
|
+
import BaseOpenedListItem from "./components/BaseOpenedListItem/BaseOpenedListItem.vue";
|
|
23
|
+
import BaseDropdown from "./components/BaseDropdown/BaseDropdown.vue";
|
|
24
|
+
import BaseSelect from "./components/BaseSelect/BaseSelect.vue";
|
|
25
|
+
import BaseSiteInput from "./components/BaseSiteInput/BaseSiteInput.vue";
|
|
26
|
+
import BaseInputPhone from "./components/BaseInputPhone/BaseInputPhone.vue";
|
|
27
|
+
import BaseInputCurrency from "./components/BaseInputCurrency/BaseInputCurrency.vue";
|
|
28
|
+
import BaseSegmentedButtons from "./components/BaseSegmentedButtons/BaseSegmentedButtons.vue";
|
|
29
|
+
declare const _default: {
|
|
30
|
+
install(app: any): void;
|
|
31
|
+
};
|
|
32
|
+
export default _default;
|
|
33
|
+
export { Modal, DataTable, Tooltip, Spinner, useModal, useToast, BaseIcon, BaseBreadCrumbs, BaseButton, BaseLoader, BaseCalendar, BaseCheckbox, BaseRadio, BaseTextarea, BaseToggle, BaseTooltip, BaseInput, BaseInputEmail, BaseInputCalendar, BaseOpenedListItem, BaseDropdown, BaseSelect, BaseSiteInput, BaseInputPhone, BaseInputCurrency, BaseSegmentedButtons };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IModalState, IModalType } from "types";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
install(app: any): void;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare function useModal(): {
|
|
7
|
+
open: (name: IModalType, options?: IModalState) => void;
|
|
8
|
+
close: (id: number) => void;
|
|
9
|
+
} | undefined;
|
|
10
|
+
declare module "@vue/runtime-core" {
|
|
11
|
+
interface ComponentCustomProperties {
|
|
12
|
+
$modal: {
|
|
13
|
+
open: (name: IModalType, options?: IModalState) => void;
|
|
14
|
+
close: (id: number) => void;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface ToastOptions {
|
|
2
|
+
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
3
|
+
duration?: number;
|
|
4
|
+
dismissible?: boolean;
|
|
5
|
+
pauseOnHover?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: {
|
|
8
|
+
install(app: any): void;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare function useToast(): {
|
|
12
|
+
success: (message: string, options?: ToastOptions) => void;
|
|
13
|
+
error: (message: string, options?: ToastOptions) => void;
|
|
14
|
+
info: (message: string, options?: ToastOptions) => void;
|
|
15
|
+
warning: (message: string, options?: ToastOptions) => void;
|
|
16
|
+
} | undefined;
|
|
17
|
+
declare module "@vue/runtime-core" {
|
|
18
|
+
interface ComponentCustomProperties {
|
|
19
|
+
$toast: {
|
|
20
|
+
success: (message: string, options?: ToastOptions) => void;
|
|
21
|
+
error: (message: string, options?: ToastOptions) => void;
|
|
22
|
+
info: (message: string, options?: ToastOptions) => void;
|
|
23
|
+
warning: (message: string, options?: ToastOptions) => void;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IModalState } from "../types";
|
|
2
|
+
export declare const useModalStore: import("pinia").StoreDefinition<"modal", {
|
|
3
|
+
modals: Array<{
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
options: IModalState;
|
|
7
|
+
}>;
|
|
8
|
+
}, {}, {
|
|
9
|
+
openModal(name: string, options: IModalState): void;
|
|
10
|
+
closeModal(id: number): void;
|
|
11
|
+
}>;
|