@topvisor/ui 0.0.42 → 0.9.2

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 (99) hide show
  1. package/.chunks/datepicker-32bc8bd9.es.js +275 -0
  2. package/.chunks/datepicker-32bc8bd9.es.js.map +1 -0
  3. package/.chunks/datepicker-8a42d8a6.amd.js +234 -0
  4. package/.chunks/datepicker-8a42d8a6.amd.js.map +1 -0
  5. package/.chunks/forms-30d68077.amd.js +3 -0
  6. package/.chunks/forms-30d68077.amd.js.map +1 -0
  7. package/.chunks/forms-64632f73.es.js +1091 -0
  8. package/.chunks/forms-64632f73.es.js.map +1 -0
  9. package/.chunks/{popup-431fc5d5.amd.js → popup-14ca85cf.amd.js} +378 -377
  10. package/.chunks/popup-14ca85cf.amd.js.map +1 -0
  11. package/.chunks/{popup-e1bbd684.es.js → popup-b2fe3094.es.js} +439 -429
  12. package/.chunks/popup-b2fe3094.es.js.map +1 -0
  13. package/README.md +80 -80
  14. package/assets/core.css +1 -1
  15. package/assets/forms.css +1 -1
  16. package/assets/tabsView.css +1 -0
  17. package/core/core.amd.js +1 -1
  18. package/core/core.d.ts +2 -2
  19. package/core/core.js +1 -1
  20. package/forms/forms.amd.js +1 -1
  21. package/forms/forms.js +8 -8
  22. package/forms/helpers.amd.js.map +1 -1
  23. package/forms/helpers.js.map +1 -1
  24. package/formsExt/formsExt.amd.js +1 -1
  25. package/formsExt/formsExt.amd.js.map +1 -1
  26. package/formsExt/formsExt.js +1 -1
  27. package/formsExt/formsExt.js.map +1 -1
  28. package/icomoon/demo-files/demo.css +161 -161
  29. package/icomoon/demo-files/demo.js +30 -30
  30. package/icomoon/demo.html +2945 -2945
  31. package/icomoon/fonts/Topvisor-2.svg +232 -232
  32. package/icomoon/style.css +647 -647
  33. package/package.json +19 -19
  34. package/popup/popup.amd.js +1 -1
  35. package/popup/popup.amd.js.map +1 -1
  36. package/popup/popup.js +1 -1
  37. package/popup/popup.js.map +1 -1
  38. package/popup/worker.amd.js +1 -1
  39. package/popup/worker.amd.js.map +1 -1
  40. package/popup/worker.js +13 -10
  41. package/popup/worker.js.map +1 -1
  42. package/src/components/tabsView/tabsView/_MenuItem.stories.d.ts +361 -0
  43. package/src/components/tabsView/tabsView/_MenuTitle.stories.d.ts +280 -0
  44. package/src/components/tabsView/tabsView/content.vue.d.ts +19 -0
  45. package/src/components/tabsView/tabsView/menu.vue.d.ts +19 -0
  46. package/src/components/tabsView/tabsView/menuDelimeter.vue.d.ts +2 -0
  47. package/src/components/tabsView/tabsView/menuItem.vue.d.ts +19 -0
  48. package/src/components/tabsView/tabsView/menuTitle.vue.d.ts +19 -0
  49. package/src/components/tabsView/tabsView/state.d.ts +14 -0
  50. package/src/components/tabsView/tabsView/tabsView.d.ts +69 -0
  51. package/src/components/tabsView/tabsView/tabsView.stories.d.ts +529 -0
  52. package/src/components/tabsView/tabsView/tabsView.vue.d.ts +38 -0
  53. package/src/components/tabsView/tabsView.d.ts +4 -0
  54. package/src/core/utils/date.d.ts +25 -27
  55. package/src/core/utils/device.d.ts +10 -13
  56. package/tabs/tabs.amd.js +1 -1
  57. package/tabs/tabs.js +1 -1
  58. package/tabsView/tabsView.amd.js +2 -0
  59. package/tabsView/tabsView.amd.js.map +1 -0
  60. package/tabsView/tabsView.d.ts +1 -0
  61. package/tabsView/tabsView.js +271 -0
  62. package/tabsView/tabsView.js.map +1 -0
  63. package/utils/date.amd.js +1 -1
  64. package/utils/date.d.ts +0 -2
  65. package/utils/date.js +5 -2
  66. package/utils/device.amd.js +1 -1
  67. package/utils/device.d.ts +0 -2
  68. package/utils/device.js +7 -2
  69. package/utils/dom.amd.js +1 -1
  70. package/utils/dom.d.ts +2 -2
  71. package/utils/dom.js +1 -1
  72. package/.chunks/datepicker-126a4e1b.amd.js +0 -234
  73. package/.chunks/datepicker-126a4e1b.amd.js.map +0 -1
  74. package/.chunks/datepicker-47a90829.es.js +0 -275
  75. package/.chunks/datepicker-47a90829.es.js.map +0 -1
  76. package/.chunks/forms-15b83561.es.js +0 -1109
  77. package/.chunks/forms-15b83561.es.js.map +0 -1
  78. package/.chunks/forms-41d0318c.amd.js +0 -3
  79. package/.chunks/forms-41d0318c.amd.js.map +0 -1
  80. package/.chunks/popup-431fc5d5.amd.js.map +0 -1
  81. package/.chunks/popup-e1bbd684.es.js.map +0 -1
  82. package/build/cssModules.d.ts +0 -13
  83. package/build/plugin/amdFix.d.ts +0 -8
  84. package/build/plugin/autoloadCSS.d.ts +0 -19
  85. package/build/rollup.config.d.ts +0 -15
  86. package/src/components/component.d.ts +0 -25
  87. package/src/components/helpersStories.d.ts +0 -28
  88. package/src/core/base/Colors.stories.d.ts +0 -19
  89. package/src/core/base/Layout.stories.d.ts +0 -19
  90. package/src/core/base/Properties.stories.d.ts +0 -19
  91. package/src/core/directives/tooltip.d.ts +0 -7
  92. package/src/core/theme/Colors.stories.d.ts +0 -19
  93. package/src/core/theme/Properties.stories.d.ts +0 -19
  94. package/src/core//320/235/320/260/320/261/320/276/321/200 /320/270/320/272/320/276/320/275/320/276/320/272//320/235/320/260/320/261/320/276/321/200 /320/270/320/272/320/276/320/275/320/276/320/272.stories.d.ts" +0 -6
  95. package/src/d.d.ts +0 -4
  96. package/src/resources/styles/core/core.d.ts +0 -0
  97. package/src/resources/styles/themes/dark.d.ts +0 -0
  98. package/src/resources/styles/themes/light.d.ts +0 -0
  99. package/src/storybook/components/icomoon.d.ts +0 -2
@@ -0,0 +1,19 @@
1
+ import type { PropsContent } from './tabsView';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PropsContent>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PropsContent>>>, {}, {}>, {
3
+ default?(_: {}): any;
4
+ }>;
5
+ export default _default;
6
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
7
+ type __VLS_TypePropsToRuntimeProps<T> = {
8
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
9
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
10
+ } : {
11
+ type: import('vue').PropType<T[K]>;
12
+ required: true;
13
+ };
14
+ };
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,19 @@
1
+ import type { PropsMenu } from './tabsView';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PropsMenu>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PropsMenu>>>, {}, {}>, {
3
+ default?(_: {}): any;
4
+ }>;
5
+ export default _default;
6
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
7
+ type __VLS_TypePropsToRuntimeProps<T> = {
8
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
9
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
10
+ } : {
11
+ type: import('vue').PropType<T[K]>;
12
+ required: true;
13
+ };
14
+ };
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import type { PropsMenuItem } from './tabsView';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PropsMenuItem>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PropsMenuItem>>>, {}, {}>, {
3
+ default?(_: {}): any;
4
+ }>;
5
+ export default _default;
6
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
7
+ type __VLS_TypePropsToRuntimeProps<T> = {
8
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
9
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
10
+ } : {
11
+ type: import('vue').PropType<T[K]>;
12
+ required: true;
13
+ };
14
+ };
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,19 @@
1
+ import type { PropsMenuTitle } from './tabsView';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PropsMenuTitle>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PropsMenuTitle>>>, {}, {}>, {
3
+ default?(_: {}): any;
4
+ }>;
5
+ export default _default;
6
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
7
+ type __VLS_TypePropsToRuntimeProps<T> = {
8
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
9
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
10
+ } : {
11
+ type: import('vue').PropType<T[K]>;
12
+ required: true;
13
+ };
14
+ };
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,14 @@
1
+ import type { InjectionKey } from 'vue';
2
+ import type { State } from './tabsView';
3
+ import type { Emits, Props } from './tabsView';
4
+ export declare const injectionKey: InjectionKey<State>;
5
+ /**
6
+ * Инициировать State компонента
7
+ * @param props
8
+ * @param emit
9
+ */
10
+ export declare const initState: (props: Props, emit: Emits) => State;
11
+ /**
12
+ * Получить State компонента
13
+ */
14
+ export declare const useState: () => State;
@@ -0,0 +1,69 @@
1
+ import type { State as StateManagerState } from '../../../components/stateManager';
2
+ export interface Props {
3
+ /**
4
+ * Имя активной вкладки
5
+ */
6
+ modelValue: string;
7
+ /**
8
+ * Если true - меню будет скрыто в popup под кнопку, которая его открывает
9
+ *
10
+ * Если не указано будет использоваться Core.state.isMobile
11
+ */
12
+ showMenuInPopup?: boolean;
13
+ /**
14
+ * Если true - меню в режиме без popup можно сворачивать
15
+ */
16
+ isShortable?: boolean;
17
+ /**
18
+ * @see GlobalState.key
19
+ */
20
+ keyForSaveState?: string;
21
+ }
22
+ export interface State extends StateManagerState {
23
+ /**
24
+ * Если true - меню будет скрыто в popup под кнопку, которая его открывает, на кнопке будет текст активного элемента меню
25
+ */
26
+ showMenuInPopup: Props['showMenuInPopup'];
27
+ /**
28
+ * Если true - меню будет отображено в свернутом режиме без текста у кнопок
29
+ */
30
+ isShort: boolean;
31
+ /**
32
+ * Имя активной вкладки
33
+ */
34
+ activeItemName: Props['modelValue'];
35
+ }
36
+ export interface Emits {
37
+ (e: 'update:modelValue', value: Props['modelValue']): void;
38
+ }
39
+ export interface PropsMenu {
40
+ /**
41
+ * Если true - будет выведена кнопка сжатия меню
42
+ */
43
+ isShortable: Props['isShortable'];
44
+ }
45
+ export interface PropsMenuItem {
46
+ /**
47
+ * Униальное имя вкладки, указывать только если кнопка должна менять выбранную вкладку
48
+ */
49
+ name?: Props['modelValue'];
50
+ /**
51
+ * Если указано, кнопка будет вставлена как ссылка
52
+ */
53
+ href?: string;
54
+ icon?: string;
55
+ disabled?: boolean;
56
+ }
57
+ export interface MenuItem {
58
+ title?: string;
59
+ icon?: PropsMenuItem['icon'];
60
+ }
61
+ export interface PropsMenuTitle {
62
+ isSubtitle?: boolean;
63
+ }
64
+ export interface PropsContent {
65
+ /**
66
+ * Имя активной вкладки, должно быть уникально для каждого пункта меню в пределах одного компонента
67
+ */
68
+ name: Props['modelValue'];
69
+ }