plugin-ui-for-kzt 0.0.23 → 0.0.25

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 (75) hide show
  1. package/dist/assets/0e28e37419c99ac65b12.png +0 -0
  2. package/dist/assets/264165b2b0e8a6840eb0.png +0 -0
  3. package/dist/components/{DataTable/DataTable.vue.d.ts → BaseDefaultPages/BaseDefaultPages.vue.d.ts} +8 -6
  4. package/dist/components/BaseInput/BaseInput.vue.d.ts +1 -1
  5. package/dist/components/{Tooltip/Tooltip.vue.d.ts → BasePageLoader/BasePageLoader.vue.d.ts} +24 -11
  6. package/dist/components/BaseTable/BaseTable.vue.d.ts +44 -0
  7. package/dist/components/BaseToast/BaseToast.vue.d.ts +69 -0
  8. package/dist/composables/useToast.d.ts +2 -0
  9. package/dist/index.d.ts +6 -5
  10. package/dist/index.js +1 -1
  11. package/dist/plugins/toastPlugin.d.ts +4 -0
  12. package/dist/sprite.svg +1 -1
  13. package/dist/store/toast.d.ts +8 -0
  14. package/example/App.vue +196 -29
  15. package/package.json +1 -1
  16. package/src/assets/404.png +0 -0
  17. package/src/assets/icons/arrow-down-stick.svg +4 -0
  18. package/src/assets/icons/edit-table.svg +5 -0
  19. package/src/assets/icons/ellipsis.svg +5 -0
  20. package/src/assets/icons/loading-page-default.svg +4 -0
  21. package/src/assets/icons/loading-page-error.svg +6 -0
  22. package/src/assets/icons/loading-page-success.svg +5 -0
  23. package/src/assets/icons/loading-page-warning.svg +6 -0
  24. package/src/assets/icons/more-dots.svg +5 -0
  25. package/src/assets/icons/time-table.svg +7 -0
  26. package/src/assets/icons/toast-error.svg +3 -0
  27. package/src/assets/icons/toast-info.svg +3 -0
  28. package/src/assets/icons/toast-success.svg +3 -0
  29. package/src/assets/icons/toast-warning.svg +3 -0
  30. package/src/assets/icons/trash-table.svg +7 -0
  31. package/src/assets/tech-work.png +0 -0
  32. package/src/components/BaseChips/BaseChips.vue +3 -1
  33. package/src/components/BaseDefaultPages/BaseDefaultPages.vue +140 -0
  34. package/src/components/BaseDefaultPages/README.md +128 -0
  35. package/src/components/BaseOpenedListItem/BaseOpenedListItem.vue +3 -3
  36. package/src/components/BasePageLoader/BasePageLoader.vue +211 -0
  37. package/src/components/BasePageLoader/README.md +80 -0
  38. package/src/components/BaseSelect/BaseSelect.vue +7 -3
  39. package/src/components/BaseTable/BaseTable.vue +411 -0
  40. package/src/components/BaseTable/README.md +294 -0
  41. package/src/components/BaseToast/BaseToast.vue +200 -0
  42. package/src/components/BaseToast/README.md +103 -0
  43. package/src/components/BaseTooltip/BaseTooltip.vue +1 -0
  44. package/src/components/BaseUpload/BaseUpload.vue +1 -1
  45. package/src/composables/useToast.ts +10 -0
  46. package/src/index.ts +17 -13
  47. package/src/plugins/toastPlugin.ts +100 -0
  48. package/src/store/toast.ts +59 -0
  49. package/src/styles/root.scss +2 -0
  50. package/src/styles/toast.scss +36 -0
  51. package/src/types/default-pages.d.ts +6 -0
  52. package/src/types/loading-page.d.ts +12 -0
  53. package/src/types/pagination.d.ts +1 -0
  54. package/src/types/table.d.ts +33 -0
  55. package/src/types/toast.d.ts +25 -0
  56. package/webpack.config.js +12 -0
  57. package/dist/components/Spinner/Spinner.vue.d.ts +0 -20
  58. package/dist/components/Toaster/Toaster.vue.d.ts +0 -80
  59. package/dist/components/Toaster/timer.d.ts +0 -12
  60. package/dist/plugins/toasterPlugin.d.ts +0 -26
  61. package/src/components/DataTable/DataTable.vue +0 -169
  62. package/src/components/DataTable/README.md +0 -57
  63. package/src/components/Spinner/README.md +0 -35
  64. package/src/components/Spinner/Spinner.vue +0 -60
  65. package/src/components/Toaster/README.md +0 -70
  66. package/src/components/Toaster/Toaster.vue +0 -235
  67. package/src/components/Toaster/timer.ts +0 -45
  68. package/src/components/Tooltip/README.md +0 -37
  69. package/src/components/Tooltip/Tooltip.vue +0 -96
  70. package/src/components/icons/CloseIcon.vue +0 -5
  71. package/src/components/icons/ErrorIcon.vue +0 -7
  72. package/src/components/icons/InfoIcon.vue +0 -7
  73. package/src/components/icons/SuccessIcon.vue +0 -6
  74. package/src/components/icons/WarningIcon.vue +0 -7
  75. package/src/plugins/toasterPlugin.ts +0 -179
@@ -1,12 +1,14 @@
1
1
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- columns: {};
3
- rows: {};
4
- pageSize: {};
2
+ title: {};
3
+ description: {};
4
+ buttonText: {};
5
+ type: {};
5
6
  }>, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
6
7
  [key: string]: any;
7
8
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8
- columns: {};
9
- rows: {};
10
- pageSize: {};
9
+ title: {};
10
+ description: {};
11
+ buttonText: {};
12
+ type: {};
11
13
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
14
  export default _default;
@@ -96,6 +96,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
96
96
  size: string;
97
97
  type: string;
98
98
  id: string;
99
+ mask: string;
99
100
  selected: boolean;
100
101
  active: boolean;
101
102
  disabled: boolean;
@@ -104,7 +105,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
104
105
  modelValue: string;
105
106
  readonly: boolean;
106
107
  placeholder: string;
107
- mask: string;
108
108
  focusable: boolean;
109
109
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
110
110
  export default _default;
@@ -1,28 +1,41 @@
1
1
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- content: {
3
- default: string;
2
+ loading: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
4
5
  };
5
- position: {
6
+ iconType: {};
7
+ message: {
6
8
  default: string;
7
9
  };
8
- width: {
10
+ modal: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ size: {
9
15
  default: string;
10
16
  };
11
17
  }>, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
12
18
  [key: string]: any;
13
19
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
- content: {
15
- default: string;
20
+ loading: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
16
23
  };
17
- position: {
24
+ iconType: {};
25
+ message: {
18
26
  default: string;
19
27
  };
20
- width: {
28
+ modal: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ size: {
21
33
  default: string;
22
34
  };
23
35
  }>> & Readonly<{}>, {
24
- position: string;
25
- content: string;
26
- width: string;
36
+ size: string;
37
+ modal: boolean;
38
+ message: string;
39
+ loading: boolean;
27
40
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
41
  export default _default;
@@ -0,0 +1,44 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ columns: {};
3
+ data: {};
4
+ rowKey: {
5
+ type: (StringConstructor | FunctionConstructor)[];
6
+ };
7
+ showRowSelection: {
8
+ type: BooleanConstructor;
9
+ };
10
+ checkboxTitle: {};
11
+ showActions: {
12
+ type: BooleanConstructor;
13
+ };
14
+ actions: {};
15
+ pagination: {};
16
+ subTable: {};
17
+ }>, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
+ [key: string]: any;
19
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "select-all" | "sort-change" | "page-change")[], "update:selected" | "select-all" | "sort-change" | "page-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
+ columns: {};
21
+ data: {};
22
+ rowKey: {
23
+ type: (StringConstructor | FunctionConstructor)[];
24
+ };
25
+ showRowSelection: {
26
+ type: BooleanConstructor;
27
+ };
28
+ checkboxTitle: {};
29
+ showActions: {
30
+ type: BooleanConstructor;
31
+ };
32
+ actions: {};
33
+ pagination: {};
34
+ subTable: {};
35
+ }>> & Readonly<{
36
+ "onUpdate:selected"?: ((...args: any[]) => any) | undefined;
37
+ "onSelect-all"?: ((...args: any[]) => any) | undefined;
38
+ "onSort-change"?: ((...args: any[]) => any) | undefined;
39
+ "onPage-change"?: ((...args: any[]) => any) | undefined;
40
+ }>, {
41
+ showRowSelection: boolean;
42
+ showActions: boolean;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
44
+ export default _default;
@@ -0,0 +1,69 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ title: {};
3
+ type: {
4
+ default: string;
5
+ };
6
+ withBackground: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ description: {};
11
+ showIcon: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ closable: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ primaryActionText: {};
20
+ secondaryActionText: {};
21
+ isOpen: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ duration: {
26
+ default: undefined;
27
+ };
28
+ }>, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
+ [key: string]: any;
30
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "primaryAction" | "secondaryAction")[], "close" | "primaryAction" | "secondaryAction", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
+ title: {};
32
+ type: {
33
+ default: string;
34
+ };
35
+ withBackground: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ description: {};
40
+ showIcon: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ closable: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ primaryActionText: {};
49
+ secondaryActionText: {};
50
+ isOpen: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ duration: {
55
+ default: undefined;
56
+ };
57
+ }>> & Readonly<{
58
+ onClose?: ((...args: any[]) => any) | undefined;
59
+ onPrimaryAction?: ((...args: any[]) => any) | undefined;
60
+ onSecondaryAction?: ((...args: any[]) => any) | undefined;
61
+ }>, {
62
+ type: string;
63
+ isOpen: boolean;
64
+ closable: boolean;
65
+ withBackground: boolean;
66
+ showIcon: boolean;
67
+ duration: undefined;
68
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
69
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import type { IToastApi } from '../types/toast';
2
+ export declare function useToast(): IToastApi;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,5 @@
1
- import DataTable from "./components/DataTable/DataTable.vue";
2
- import Tooltip from "./components/Tooltip/Tooltip.vue";
3
- import Spinner from "./components/Spinner/Spinner.vue";
4
1
  import { useModal } from "./composables/useModal";
5
- import { useToast } from "./plugins/toasterPlugin";
2
+ import { useToast } from "./composables/useToast";
6
3
  import "./sprite";
7
4
  import "./styles/root.scss";
8
5
  import BaseIcon from "./components/BaseIcon/BaseIcon.vue";
@@ -34,9 +31,13 @@ import BaseBadge from "./components/BaseBadge/BaseBadge.vue";
34
31
  import BaseTag from "./components/BaseTag/BaseTag.vue";
35
32
  import BaseBadgeGroup from "./components/BaseBadge/BaseBadgeGroup.vue";
36
33
  import BaseField from "./components/BaseField/BaseField.vue";
34
+ import BaseToast from "./components/BaseToast/BaseToast.vue";
35
+ import BasePageLoader from "./components/BasePageLoader/BasePageLoader.vue";
37
36
  import BaseTabs from "./components/BaseTabs/BaseTabs.vue";
37
+ import BaseTable from "./components/BaseTable/BaseTable.vue";
38
+ import BaseDefaultPages from "./components/BaseDefaultPages/BaseDefaultPages.vue";
38
39
  declare const _default: {
39
40
  install(app: any): void;
40
41
  };
41
42
  export default _default;
42
- export { BaseModal, BaseBadgeGroup, BaseBadge, DataTable, BaseTag, Tooltip, Spinner, useModal, useToast, BaseIcon, BaseBreadCrumbs, BaseButton, BaseLoader, BaseCalendar, BaseCheckbox, BaseRadio, BaseTextarea, BaseToggle, BaseTooltip, BaseInput, BaseInputEmail, BaseInputCalendar, BaseOpenedListItem, BaseDropdown, BaseSelect, BaseSiteInput, BaseInputPhone, BaseInputCurrency, BasePagination, BaseSegmentedButtons, BaseChips, BaseSwiper, BaseUpload, BaseField, BaseTabs };
43
+ export { BaseModal, BaseBadgeGroup, BaseBadge, BaseTag, useModal, useToast, BaseIcon, BaseBreadCrumbs, BaseButton, BaseLoader, BaseCalendar, BaseCheckbox, BaseRadio, BaseTextarea, BaseToggle, BaseTooltip, BaseInput, BaseInputEmail, BaseInputCalendar, BaseOpenedListItem, BaseDropdown, BaseSelect, BaseSiteInput, BaseInputPhone, BaseInputCurrency, BasePagination, BaseSegmentedButtons, BaseChips, BaseSwiper, BaseUpload, BaseField, BaseToast, BasePageLoader, BaseTabs, BaseTable, BaseDefaultPages };