@topvisor/ui 0.0.41 → 0.0.42

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 (159) hide show
  1. package/.chunks/datepicker-126a4e1b.amd.js +234 -0
  2. package/.chunks/datepicker-126a4e1b.amd.js.map +1 -0
  3. package/.chunks/datepicker-47a90829.es.js +275 -0
  4. package/.chunks/datepicker-47a90829.es.js.map +1 -0
  5. package/.chunks/{forms-7f061546.es.js → forms-15b83561.es.js} +19 -18
  6. package/.chunks/forms-15b83561.es.js.map +1 -0
  7. package/.chunks/forms-41d0318c.amd.js +3 -0
  8. package/.chunks/forms-41d0318c.amd.js.map +1 -0
  9. package/.chunks/popup-431fc5d5.amd.js +377 -0
  10. package/.chunks/popup-431fc5d5.amd.js.map +1 -0
  11. package/.chunks/{popup-05538243.es.js → popup-e1bbd684.es.js} +429 -427
  12. package/.chunks/popup-e1bbd684.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/build/cssModules.d.ts +13 -0
  17. package/build/plugin/amdFix.d.ts +8 -0
  18. package/build/plugin/autoloadCSS.d.ts +19 -0
  19. package/build/rollup.config.d.ts +15 -0
  20. package/common/common.d.ts +1 -0
  21. package/core/core.amd.js +1 -1
  22. package/core/core.d.ts +3 -0
  23. package/core/core.js +1 -1
  24. package/forms/forms.amd.js +1 -1
  25. package/forms/forms.d.ts +1 -0
  26. package/forms/forms.js +1 -1
  27. package/forms/helpers.amd.js.map +1 -1
  28. package/forms/helpers.d.ts +1 -0
  29. package/forms/helpers.js.map +1 -1
  30. package/formsExt/formsExt.amd.js +1 -1
  31. package/formsExt/formsExt.amd.js.map +1 -1
  32. package/formsExt/formsExt.d.ts +1 -0
  33. package/formsExt/formsExt.js +1 -1
  34. package/formsExt/formsExt.js.map +1 -1
  35. package/icomoon/demo-files/demo.css +161 -161
  36. package/icomoon/demo-files/demo.js +30 -30
  37. package/icomoon/demo.html +2945 -2945
  38. package/icomoon/fonts/Topvisor-2.svg +232 -232
  39. package/icomoon/style.css +647 -647
  40. package/package.json +19 -19
  41. package/popup/popup.amd.js +1 -1
  42. package/popup/popup.amd.js.map +1 -1
  43. package/popup/popup.d.ts +1 -0
  44. package/popup/popup.js +17 -17
  45. package/popup/popup.js.map +1 -1
  46. package/popup/worker.amd.js +1 -1
  47. package/popup/worker.amd.js.map +1 -1
  48. package/popup/worker.d.ts +1 -0
  49. package/popup/worker.js +3 -2
  50. package/popup/worker.js.map +1 -1
  51. package/src/components/common/common.d.ts +0 -0
  52. package/src/components/common/icon/icon.d.ts +4 -0
  53. package/src/components/component.d.ts +25 -0
  54. package/src/components/forms/avatar/avatar.d.ts +29 -0
  55. package/src/components/forms/avatar/avatar.stories.d.ts +59 -0
  56. package/src/components/forms/avatar/avatar.vue.d.ts +26 -0
  57. package/src/components/forms/button/button.d.ts +40 -0
  58. package/src/components/forms/button/button.stories.d.ts +313 -0
  59. package/src/components/forms/button/button.vue.d.ts +39 -0
  60. package/src/components/forms/checkbox/checkbox.d.ts +22 -0
  61. package/src/components/forms/checkbox/checkbox.stories.d.ts +176 -0
  62. package/src/components/forms/checkbox/checkbox.vue.d.ts +23 -0
  63. package/src/components/forms/controlLabel/controlLabel.d.ts +4 -0
  64. package/src/components/forms/controlLabel/controlLabel.stories.d.ts +97 -0
  65. package/src/components/forms/controlLabel/controlLabel.vue.d.ts +19 -0
  66. package/src/components/forms/forms.d.ts +12 -0
  67. package/src/components/forms/helpers.d.ts +10 -0
  68. package/src/components/forms/hint/hint.d.ts +8 -0
  69. package/src/components/forms/hint/hint.stories.d.ts +138 -0
  70. package/src/components/forms/hint/hint.vue.d.ts +12 -0
  71. package/src/components/forms/input/input.d.ts +26 -0
  72. package/src/components/forms/input/input.stories.d.ts +255 -0
  73. package/src/components/forms/input/input.vue.d.ts +40 -0
  74. package/src/components/forms/inputDate/datepicker.d.ts +5 -0
  75. package/src/components/forms/inputDate/inputDate.d.ts +3 -0
  76. package/src/components/forms/inputDate/inputDate.stories.d.ts +108 -0
  77. package/src/components/forms/inputDate/inputDate.vue.d.ts +30 -0
  78. package/src/components/forms/inputRange/inputRange.d.ts +2 -0
  79. package/src/components/forms/inputRange/inputRange.stories.d.ts +405 -0
  80. package/src/components/forms/inputRange/inputRange.vue.d.ts +10 -0
  81. package/src/components/forms/radio/radio.d.ts +14 -0
  82. package/src/components/forms/radio/radio.stories.d.ts +168 -0
  83. package/src/components/forms/radio/radio.vue.d.ts +23 -0
  84. package/src/components/forms/select/select.d.ts +31 -0
  85. package/src/components/forms/select/select.stories.d.ts +83 -0
  86. package/src/components/forms/select/select.vue.d.ts +30 -0
  87. package/src/components/forms/select/stories/exampleOptions.d.ts +4 -0
  88. package/src/components/forms/switcher/switcher.d.ts +21 -0
  89. package/src/components/forms/switcher/switcher.stories.d.ts +163 -0
  90. package/src/components/forms/switcher/switcher.vue.d.ts +23 -0
  91. package/src/components/forms/textarea/textarea.d.ts +33 -0
  92. package/src/components/forms/textarea/textarea.stories.d.ts +88 -0
  93. package/src/components/forms/textarea/textarea.vue.d.ts +33 -0
  94. package/src/components/formsExt/editArea/editArea.d.ts +20 -0
  95. package/src/components/formsExt/editArea/editArea.stories.d.ts +140 -0
  96. package/src/components/formsExt/editArea/editArea.vue.d.ts +38 -0
  97. package/src/components/formsExt/editInput/editInput.d.ts +16 -0
  98. package/src/components/formsExt/editInput/editInput.stories.d.ts +129 -0
  99. package/src/components/formsExt/editInput/editInput.vue.d.ts +23 -0
  100. package/src/components/formsExt/formsExt.d.ts +3 -0
  101. package/src/components/formsExt/radioGroup/radioGroup.d.ts +22 -0
  102. package/src/components/formsExt/radioGroup/radioGroup.stories.d.ts +64 -0
  103. package/src/components/formsExt/radioGroup/radioGroup.vue.d.ts +30 -0
  104. package/src/components/helpersStories.d.ts +28 -0
  105. package/src/components/popup/popup/listItem.vue.d.ts +36 -0
  106. package/src/components/popup/popup/opener.vue.d.ts +39 -0
  107. package/src/components/popup/popup/popup.d.ts +79 -0
  108. package/src/components/popup/popup/popup.stories.d.ts +742 -0
  109. package/src/components/popup/popup/popup.vue.d.ts +52 -0
  110. package/src/components/popup/popup.d.ts +3 -0
  111. package/src/components/popup/worker.d.ts +2 -0
  112. package/src/components/tabs/tabs/content.vue.d.ts +19 -0
  113. package/src/components/tabs/tabs/tab.vue.d.ts +19 -0
  114. package/src/components/tabs/tabs/tabs.d.ts +19 -0
  115. package/src/components/tabs/tabs/tabs.stories.d.ts +774 -0
  116. package/src/components/tabs/tabs/tabs.vue.d.ts +21 -0
  117. package/src/components/tabs/tabs.d.ts +3 -0
  118. package/src/core/base/Colors.stories.d.ts +19 -0
  119. package/src/core/base/Layout.stories.d.ts +19 -0
  120. package/src/core/base/Properties.stories.d.ts +19 -0
  121. package/src/core/core/core.d.ts +58 -0
  122. package/src/core/core/events.d.ts +20 -0
  123. package/src/core/core/options.d.ts +13 -0
  124. package/src/core/core/page.d.ts +10 -0
  125. package/src/core/core/state.d.ts +34 -0
  126. package/src/core/directives/tooltip.d.ts +7 -0
  127. package/src/core/theme/Colors.stories.d.ts +19 -0
  128. package/src/core/theme/Properties.stories.d.ts +19 -0
  129. package/src/core/utils/date.d.ts +27 -0
  130. package/src/core/utils/device.d.ts +13 -0
  131. package/src/core/utils/dom.d.ts +98 -0
  132. 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" +6 -0
  133. package/src/d.d.ts +4 -0
  134. package/src/resources/styles/core/core.d.ts +0 -0
  135. package/src/resources/styles/themes/dark.d.ts +0 -0
  136. package/src/resources/styles/themes/light.d.ts +0 -0
  137. package/src/storybook/components/icomoon.d.ts +2 -0
  138. package/tabs/tabs.amd.js +1 -1
  139. package/tabs/tabs.d.ts +1 -0
  140. package/tabs/tabs.js +1 -1
  141. package/utils/date.amd.js +1 -1
  142. package/utils/date.d.ts +3 -0
  143. package/utils/date.js +1 -1
  144. package/utils/device.amd.js +1 -1
  145. package/utils/device.d.ts +3 -0
  146. package/utils/device.js +1 -1
  147. package/utils/dom.amd.js +1 -1
  148. package/utils/dom.d.ts +3 -0
  149. package/utils/dom.js +1 -1
  150. package/.chunks/datepicker-7f54fd80.es.js +0 -275
  151. package/.chunks/datepicker-7f54fd80.es.js.map +0 -1
  152. package/.chunks/datepicker-858c1cb6.amd.js +0 -234
  153. package/.chunks/datepicker-858c1cb6.amd.js.map +0 -1
  154. package/.chunks/forms-7f061546.es.js.map +0 -1
  155. package/.chunks/forms-b9e5edd2.amd.js +0 -3
  156. package/.chunks/forms-b9e5edd2.amd.js.map +0 -1
  157. package/.chunks/popup-05538243.es.js.map +0 -1
  158. package/.chunks/popup-a531e9ad.amd.js +0 -377
  159. package/.chunks/popup-a531e9ad.amd.js.map +0 -1
@@ -0,0 +1,36 @@
1
+ import type { ListItemProps } from './popup';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ListItemProps>, {
3
+ type: string;
4
+ closeByClick: boolean;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ListItemProps>, {
6
+ type: string;
7
+ closeByClick: boolean;
8
+ }>>>, {
9
+ type: "button" | "title" | "regular" | "delimiter";
10
+ closeByClick: boolean;
11
+ }, {}>, {
12
+ default?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
24
+ type __VLS_WithDefaults<P, D> = {
25
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
26
+ default: D[K];
27
+ }> : P[K];
28
+ };
29
+ type __VLS_Prettify<T> = {
30
+ [K in keyof T]: T[K];
31
+ } & {};
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,39 @@
1
+ import type { OpenerProps } from './popup';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OpenerProps>, {
3
+ pos: string;
4
+ notch: boolean;
5
+ posBy: string;
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OpenerProps>, {
7
+ pos: string;
8
+ notch: boolean;
9
+ posBy: string;
10
+ }>>>, {
11
+ pos: import("./popup").Pos;
12
+ notch: boolean;
13
+ posBy: import("./popup").PosBy;
14
+ }, {}>, {
15
+ default?(_: {}): any;
16
+ }>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,79 @@
1
+ export interface Props extends OpenerProps {
2
+ /**
3
+ * Уникальный id компонента, используется только в setup, т.е. изменение id будет проигнорировано
4
+ *
5
+ * Генерируется автоматически при создании кнопки Popup
6
+ *
7
+ * Можно задать вручную, если необходимо создать Popup без кнопки для последюущего использования,
8
+ * особенно важно при создании большого числа кнопок, например в списках и таблицах
9
+ */
10
+ id?: string;
11
+ /**
12
+ * Класс, который нужно добавить к Popup, устанавилвается в момент открытия
13
+ */
14
+ class?: string;
15
+ }
16
+ export interface Emits {
17
+ /**
18
+ * Будет вызвано при открытии Popup
19
+ */
20
+ (e: 'open'): void;
21
+ /**
22
+ * Будет вызвано после закрытия Popup
23
+ */
24
+ (e: 'close'): void;
25
+ }
26
+ export interface OpenerProps {
27
+ /**
28
+ * id компонента Popup, который необходимо открыть
29
+ */
30
+ id?: string;
31
+ /**
32
+ * Положение Popup по часовой стрелке
33
+ */
34
+ pos?: Pos;
35
+ /**
36
+ * Добавить клювик
37
+ */
38
+ notch?: boolean;
39
+ /**
40
+ * Открывать / закрывать при наведении / отведении мыши
41
+ */
42
+ openByHover?: boolean;
43
+ /**
44
+ * Способ привязки позиционирования меню
45
+ *
46
+ * left/right - левый/правый край родителя
47
+ *
48
+ * fixed - по окну
49
+ */
50
+ posBy?: PosBy;
51
+ }
52
+ export interface ListItemProps {
53
+ /**
54
+ * Тип элемента списка
55
+ * * button - обычный кликабельный (выбираемый) элемент, поддерижвает вставку ссылок через атрибут href
56
+ * * regular - произвольное содержимое
57
+ * * title - заголовок
58
+ * * delimiter - разделитель
59
+ */
60
+ type?: 'button' | 'regular' | 'title' | 'delimiter';
61
+ /**
62
+ * Следует ли закрывать меню по клику на элемент типа button и link
63
+ */
64
+ closeByClick?: boolean;
65
+ }
66
+ export declare const pos: {
67
+ readonly over: "0";
68
+ readonly top: "1";
69
+ readonly right: "2";
70
+ readonly bottom: "3";
71
+ readonly left: "4";
72
+ };
73
+ export type Pos = typeof pos[keyof typeof pos];
74
+ export declare const posBy: {
75
+ readonly fixed: "fixed";
76
+ readonly left: "left";
77
+ readonly right: "right";
78
+ };
79
+ export type PosBy = typeof posBy[keyof typeof posBy];