@topvisor/ui 0.0.35 → 0.0.36

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 (266) hide show
  1. package/{src/components/forms/inputDate/datepicker.css → .chunks/datepicker-1e725859.amd.js} +3 -2
  2. package/.chunks/datepicker-1e725859.amd.js.map +1 -0
  3. package/.chunks/datepicker-ad465c48.es.js +275 -0
  4. package/.chunks/datepicker-ad465c48.es.js.map +1 -0
  5. package/.chunks/forms-2891e074.amd.js +3 -0
  6. package/.chunks/forms-2891e074.amd.js.map +1 -0
  7. package/.chunks/forms-db4cb24d.es.js +946 -0
  8. package/.chunks/forms-db4cb24d.es.js.map +1 -0
  9. package/.chunks/popup-0f540839.es.js +700 -0
  10. package/.chunks/popup-0f540839.es.js.map +1 -0
  11. package/.chunks/popup-e49a9bab.amd.js +341 -0
  12. package/.chunks/popup-e49a9bab.amd.js.map +1 -0
  13. package/README.md +63 -30
  14. package/common/common.amd.js +2 -0
  15. package/common/common.amd.js.map +1 -0
  16. package/common/common.js +2 -0
  17. package/common/common.js.map +1 -0
  18. package/core/core.amd.js +2 -0
  19. package/core/core.amd.js.map +1 -0
  20. package/core/core.js +6 -0
  21. package/core/core.js.map +1 -0
  22. package/core.css +1 -0
  23. package/dark.css +1 -0
  24. package/forms/forms.amd.js +2 -0
  25. package/forms/forms.amd.js.map +1 -0
  26. package/forms/forms.js +15 -0
  27. package/forms/forms.js.map +1 -0
  28. package/forms/helpers.amd.js +2 -0
  29. package/forms/helpers.amd.js.map +1 -0
  30. package/forms/helpers.js +9 -0
  31. package/forms/helpers.js.map +1 -0
  32. package/forms.css +1 -0
  33. package/formsExt/formsExt.amd.js +3 -0
  34. package/formsExt/formsExt.amd.js.map +1 -0
  35. package/formsExt/formsExt.js +207 -0
  36. package/formsExt/formsExt.js.map +1 -0
  37. package/formsExt.css +1 -0
  38. package/light.css +1 -0
  39. package/package.json +1 -50
  40. package/popup/popup.amd.js +3 -0
  41. package/popup/popup.amd.js.map +1 -0
  42. package/popup/popup.js +144 -0
  43. package/popup/popup.js.map +1 -0
  44. package/popup/worker.amd.js +2 -0
  45. package/popup/worker.amd.js.map +1 -0
  46. package/popup/worker.js +154 -0
  47. package/popup/worker.js.map +1 -0
  48. package/popup.css +1 -0
  49. package/tabs/tabs.amd.js +3 -0
  50. package/tabs/tabs.amd.js.map +1 -0
  51. package/tabs/tabs.js +97 -0
  52. package/tabs/tabs.js.map +1 -0
  53. package/tabs.css +1 -0
  54. package/utils/date.amd.js +2 -0
  55. package/utils/date.amd.js.map +1 -0
  56. package/utils/date.js +6 -0
  57. package/utils/date.js.map +1 -0
  58. package/utils/device.amd.js +2 -0
  59. package/utils/device.amd.js.map +1 -0
  60. package/utils/device.js +6 -0
  61. package/utils/device.js.map +1 -0
  62. package/utils/dom.amd.js +2 -0
  63. package/utils/dom.amd.js.map +1 -0
  64. package/utils/dom.js +64 -0
  65. package/utils/dom.js.map +1 -0
  66. package/.storybook/TopTheme.js +0 -82
  67. package/.storybook/TopThemeManager.js +0 -44
  68. package/.storybook/main.ts +0 -43
  69. package/.storybook/manager.ts +0 -28
  70. package/.storybook/preview-head.html +0 -16
  71. package/.storybook/preview.ts +0 -48
  72. package/.storybook/vue/coreDecorator.ts +0 -19
  73. package/.storybook/vue/vModelDecorator.ts +0 -27
  74. package/.vscode/extensions.json +0 -11
  75. package/.vscode/keybindings.example.json +0 -121
  76. package/.vscode/settings.json +0 -46
  77. package/Dockerfile +0 -3
  78. package/NPM.md +0 -25
  79. package/PUBLISH.md +0 -18
  80. package/STORYBOOK.md +0 -27
  81. package/USE_IN_PROJECT.md +0 -29
  82. package/build/afterBuild.sh +0 -12
  83. package/build/cssModules.ts +0 -39
  84. package/build/plugin/amdFix.ts +0 -46
  85. package/build/rollup.config.ts +0 -18
  86. package/nbproject/project.properties +0 -11
  87. package/nbproject/project.xml +0 -9
  88. package/public/README.md +0 -63
  89. package/src/components/common/common.ts +0 -1
  90. package/src/components/common/icon/icon.ts +0 -4
  91. package/src/components/common/icon/icon.vue +0 -15
  92. package/src/components/component.ts +0 -133
  93. package/src/components/forms/button/button.stories.ts +0 -112
  94. package/src/components/forms/button/button.ts +0 -51
  95. package/src/components/forms/button/button.vue +0 -75
  96. package/src/components/forms/button/stories/README.md +0 -35
  97. package/src/components/forms/button/stories/overview.vue +0 -33
  98. package/src/components/forms/button/style/button.css +0 -124
  99. package/src/components/forms/button/style/style-outline.css +0 -42
  100. package/src/components/forms/button/style/style-soft.css +0 -31
  101. package/src/components/forms/button/style/style-transparent.css +0 -35
  102. package/src/components/forms/checkbox/checkbox.stories.ts +0 -33
  103. package/src/components/forms/checkbox/checkbox.ts +0 -23
  104. package/src/components/forms/checkbox/checkbox.vue +0 -135
  105. package/src/components/forms/checkbox/stories/overview.vue +0 -171
  106. package/src/components/forms/controlLabel/controlLabel.stories.ts +0 -38
  107. package/src/components/forms/controlLabel/controlLabel.ts +0 -4
  108. package/src/components/forms/controlLabel/controlLabel.vue +0 -48
  109. package/src/components/forms/forms.ts +0 -10
  110. package/src/components/forms/helpers.ts +0 -10
  111. package/src/components/forms/hint/hint.stories.ts +0 -46
  112. package/src/components/forms/hint/hint.ts +0 -8
  113. package/src/components/forms/hint/hint.vue +0 -32
  114. package/src/components/forms/input/input.stories.ts +0 -31
  115. package/src/components/forms/input/input.ts +0 -34
  116. package/src/components/forms/input/input.vue +0 -170
  117. package/src/components/forms/input/stories/overview.vue +0 -61
  118. package/src/components/forms/inputDate/datepicker.ts +0 -101
  119. package/src/components/forms/inputDate/inputDate.stories.ts +0 -41
  120. package/src/components/forms/inputDate/inputDate.ts +0 -4
  121. package/src/components/forms/inputDate/inputDate.vue +0 -127
  122. package/src/components/forms/inputDate/stories/overview.vue +0 -35
  123. package/src/components/forms/radio/radio.stories.ts +0 -34
  124. package/src/components/forms/radio/radio.ts +0 -15
  125. package/src/components/forms/radio/radio.vue +0 -107
  126. package/src/components/forms/radio/stories/overview.vue +0 -79
  127. package/src/components/forms/select/select.stories.ts +0 -34
  128. package/src/components/forms/select/select.ts +0 -36
  129. package/src/components/forms/select/select.vue +0 -253
  130. package/src/components/forms/select/stories/exampleOptions.ts +0 -71
  131. package/src/components/forms/select/stories/overview.vue +0 -60
  132. package/src/components/forms/switcher/stories/overview.vue +0 -139
  133. package/src/components/forms/switcher/switcher.stories.ts +0 -33
  134. package/src/components/forms/switcher/switcher.ts +0 -22
  135. package/src/components/forms/switcher/switcher.vue +0 -113
  136. package/src/components/forms/textarea/stories/overview.vue +0 -62
  137. package/src/components/forms/textarea/textarea.stories.ts +0 -33
  138. package/src/components/forms/textarea/textarea.ts +0 -38
  139. package/src/components/forms/textarea/textarea.vue +0 -119
  140. package/src/components/formsExt/editArea/editArea.stories.ts +0 -72
  141. package/src/components/formsExt/editArea/editArea.ts +0 -25
  142. package/src/components/formsExt/editArea/editArea.vue +0 -172
  143. package/src/components/formsExt/editArea/stories/README.md +0 -17
  144. package/src/components/formsExt/editArea/stories/overview.vue +0 -66
  145. package/src/components/formsExt/editInput/editInput.stories.ts +0 -36
  146. package/src/components/formsExt/editInput/editInput.ts +0 -20
  147. package/src/components/formsExt/editInput/editInput.vue +0 -57
  148. package/src/components/formsExt/editInput/stories/overview.vue +0 -54
  149. package/src/components/formsExt/formsExt.ts +0 -3
  150. package/src/components/formsExt/radioGroup/radioGroup.stories.ts +0 -51
  151. package/src/components/formsExt/radioGroup/radioGroup.ts +0 -28
  152. package/src/components/formsExt/radioGroup/radioGroup.vue +0 -143
  153. package/src/components/formsExt/radioGroup/stories/overview.vue +0 -78
  154. package/src/components/formsExt/radioGroup/styles/top-scrollBar.css +0 -52
  155. package/src/components/helper.js +0 -10
  156. package/src/components/helpersStories.ts +0 -151
  157. package/src/components/popup/lib/popup.globalEvents.js +0 -205
  158. package/src/components/popup/lib/popup.js +0 -702
  159. package/src/components/popup/lib/worker.globalEvents.js +0 -78
  160. package/src/components/popup/lib/worker.js +0 -232
  161. package/src/components/popup/popup/listItem.vue +0 -42
  162. package/src/components/popup/popup/opener.vue +0 -74
  163. package/src/components/popup/popup/popup.stories.ts +0 -68
  164. package/src/components/popup/popup/popup.ts +0 -93
  165. package/src/components/popup/popup/popup.vue +0 -95
  166. package/src/components/popup/popup/stories/README.md +0 -34
  167. package/src/components/popup/popup/stories/listItems.vue +0 -44
  168. package/src/components/popup/popup/stories/listSubItems.vue +0 -52
  169. package/src/components/popup/popup/stories/overview.vue +0 -208
  170. package/src/components/popup/popup/style/popup.css +0 -243
  171. package/src/components/popup/popup/style/popup.m.css +0 -71
  172. package/src/components/popup/popup/style/popup.pc.css +0 -28
  173. package/src/components/popup/popup.ts +0 -3
  174. package/src/components/popup/worker.ts +0 -1
  175. package/src/components/tabs/tabs/content.vue +0 -24
  176. package/src/components/tabs/tabs/stories/README.md +0 -10
  177. package/src/components/tabs/tabs/tab.vue +0 -52
  178. package/src/components/tabs/tabs/tabs.stories.ts +0 -171
  179. package/src/components/tabs/tabs/tabs.ts +0 -22
  180. package/src/components/tabs/tabs/tabs.vue +0 -64
  181. package/src/components/tabs/tabs.ts +0 -3
  182. package/src/core/base/Colors.stories.ts +0 -15
  183. package/src/core/base/Layout.stories.ts +0 -15
  184. package/src/core/base/Properties.stories.ts +0 -15
  185. package/src/core/base/base.mdx +0 -21
  186. package/src/core/core/core.ts +0 -144
  187. package/src/core/core/events.ts +0 -54
  188. package/src/core/core/options.ts +0 -15
  189. package/src/core/core/state.ts +0 -44
  190. package/src/core/directives/tooltip.ts +0 -55
  191. package/src/core/theme/Colors.stories.ts +0 -15
  192. package/src/core/theme/Properties.stories.ts +0 -15
  193. package/src/core/theme/theme.mdx +0 -15
  194. package/src/core/utils/date.ts +0 -164
  195. package/src/core/utils/device.ts +0 -48
  196. package/src/core/utils/dom.ts +0 -185
  197. 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/gallery.vue" +0 -72
  198. 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.mdx" +0 -31
  199. 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.ts" +0 -14
  200. package/src/docs/CSS/FAQ.mdx +0 -43
  201. package/src/docs/CSS//320/236/320/261/321/211/320/270/320/265 /320/274/320/276/320/264/320/270/321/204/320/270/320/272/320/260/321/202/320/276/321/200/321/213.mdx" +0 -156
  202. package/src/docs/CSS//320/237/320/265/321/200/320/265/320/274/320/265/320/275/320/275/321/213/320/265.mdx +0 -47
  203. package/src/docs/CSS//320/237/321/200/320/265/320/264/320/277/321/200/320/276/321/206/320/265/321/201/321/201/320/276/321/200/321/213.mdx +0 -15
  204. package/src/docs/CSS//320/240/320/265/320/272/320/276/320/274/320/265/320/275/320/264/320/260/321/206/320/270/320/270 /320/221/320/255/320/234.mdx" +0 -49
  205. package/src/docs/CSS//320/241/321/202/320/270/320/273/320/270.md +0 -53
  206. package/src/docs/CSS//320/241/321/202/320/270/320/273/320/270.mdx +0 -4
  207. package/src/docs/CSS//320/247/321/202/320/276 /321/202/320/260/320/272/320/276/320/265 css /320/274/320/276/320/264/321/203/320/273/321/214.mdx" +0 -53
  208. package/src/docs/ROADMAP.md +0 -17
  209. package/src/docs/Roadmap.mdx +0 -4
  210. package/src/docs//320/222/320/262/320/265/320/264/320/265/320/275/320/270/320/265 /320/262 Storybook.mdx" +0 -323
  211. package/src/docs//320/232/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213.mdx +0 -20
  212. package/src/docs//320/237/320/276/320/273/320/265/320/267/320/275/320/260/321/217 /320/270/320/275/321/204/320/276/321/200/320/274/320/260/321/206/320/270/321/217.mdx" +0 -8
  213. package/src/docs//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260/IDE.mdx" +0 -42
  214. package/src/docs//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260//320/233/320/270/320/275/321/202/320/265/321/200.mdx" +0 -72
  215. package/src/docs//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260.mdx" +0 -29
  216. package/src/globals.d.ts +0 -1
  217. package/src/resources/styles/core/colors.css +0 -204
  218. package/src/resources/styles/core/components.css +0 -70
  219. package/src/resources/styles/core/core.ts +0 -10
  220. package/src/resources/styles/core/forms/clear.css +0 -19
  221. package/src/resources/styles/core/forms/controls.css +0 -20
  222. package/src/resources/styles/core/forms/focusable.css +0 -26
  223. package/src/resources/styles/core/forms/forms.css +0 -100
  224. package/src/resources/styles/core/icon.css +0 -58
  225. package/src/resources/styles/core/layout.css +0 -40
  226. package/src/resources/styles/core/modifiers/as.css +0 -9
  227. package/src/resources/styles/core/modifiers/ellipsis.css +0 -18
  228. package/src/resources/styles/core/modifiers/modifiers.css +0 -81
  229. package/src/resources/styles/core/modifiers/only.css +0 -19
  230. package/src/resources/styles/core/select.css +0 -16
  231. package/src/resources/styles/jquery-ui.min.css +0 -6
  232. package/src/resources/styles/storybook.css +0 -11
  233. package/src/resources/styles/themes/dark/theme.css +0 -139
  234. package/src/resources/styles/themes/dark.ts +0 -1
  235. package/src/resources/styles/themes/light/theme.css +0 -139
  236. package/src/resources/styles/themes/light.ts +0 -1
  237. package/src/storybook/components/color.vue +0 -45
  238. package/src/storybook/components/colors.vue +0 -34
  239. package/src/storybook/components/icomoon.ts +0 -38
  240. package/src/storybook/components/properties.vue +0 -82
  241. package/src/storybook/resources/accessibility.png +0 -0
  242. package/src/storybook/resources/accessibility.svg +0 -5
  243. package/src/storybook/resources/addon-library.png +0 -0
  244. package/src/storybook/resources/assets.png +0 -0
  245. package/src/storybook/resources/context.png +0 -0
  246. package/src/storybook/resources/discord.svg +0 -15
  247. package/src/storybook/resources/docs.png +0 -0
  248. package/src/storybook/resources/figma-plugin.png +0 -0
  249. package/src/storybook/resources/github.svg +0 -3
  250. package/src/storybook/resources/share.png +0 -0
  251. package/src/storybook/resources/styling.png +0 -0
  252. package/src/storybook/resources/testing.png +0 -0
  253. package/src/storybook/resources/theming.png +0 -0
  254. package/src/storybook/resources/tutorials.svg +0 -12
  255. package/src/storybook/resources/youtube.svg +0 -4
  256. package/src//320/224/320/276/320/261/321/200/320/276 /320/277/320/276/320/266/320/260/320/273/320/276/320/262/320/260/321/202/321/214.mdx" +0 -3
  257. package/tsconfig.json +0 -62
  258. package/vite.config.ts +0 -91
  259. /package/{src/resources/icomoon → icomoon}/demo-files/demo.css +0 -0
  260. /package/{src/resources/icomoon → icomoon}/demo-files/demo.js +0 -0
  261. /package/{src/resources/icomoon → icomoon}/demo.html +0 -0
  262. /package/{src/resources/icomoon → icomoon}/fonts/Topvisor-2.svg +0 -0
  263. /package/{src/resources/icomoon → icomoon}/fonts/Topvisor-2.ttf +0 -0
  264. /package/{src/resources/icomoon → icomoon}/fonts/Topvisor-2.woff +0 -0
  265. /package/{src/resources/icomoon → icomoon}/selection.json +0 -0
  266. /package/{src/resources/icomoon → icomoon}/style.css +0 -0
@@ -1,28 +0,0 @@
1
- import { addons } from '@storybook/manager-api';
2
- import * as TopThemeManager from './TopThemeManager';
3
-
4
- addons.setConfig({
5
- isFullscreen2: false,
6
- showNav: true,
7
- showPanel: true,
8
- panelPosition: 'right',
9
- enableShortcuts: true,
10
- showToolbar: true,
11
- theme: TopThemeManager.get(),
12
- selectedPanel: undefined,
13
- initialActive: 'sidebar',
14
- sidebar: {
15
- showRoots: true,
16
- collapsedRoots: [
17
- 'docs',
18
- 'core',
19
- ],
20
- },
21
- toolbar: {
22
- title: { hidden: false },
23
- zoom: { hidden: false },
24
- eject: { hidden: false },
25
- copy: { hidden: false },
26
- fullscreen: { hidden: false },
27
- },
28
- });
@@ -1,16 +0,0 @@
1
- <link
2
- href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300..800&display=swap"
3
- rel="stylesheet"
4
- crossorigin="anonymous"
5
- >
6
-
7
- <link
8
- href="/src/resources/styles/jquery-ui.min.css"
9
- rel="stylesheet"
10
- crossorigin="anonymous"
11
- >
12
-
13
- <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
14
- <script src="https://code.jquery.com/ui/1.13.2/jquery-ui.min.js"></script>
15
-
16
- <style id="topThemeStyle"></style>
@@ -1,48 +0,0 @@
1
- import type { Preview } from '@storybook/vue3';
2
- import * as TopTheme from './TopTheme';
3
- import * as TopThemeManager from './TopThemeManager';
4
- import vModelDecorator from './vue/vModelDecorator';
5
- import coreDecorator from './vue/coreDecorator';
6
- import Core from '@/core/core/core';
7
-
8
- Core.defineOptions({});
9
-
10
- import '@/resources/styles/storybook.css';
11
- import '@/resources/styles/core/core';
12
- import '@/resources/icomoon/style.css';
13
-
14
- const preview = {
15
- parameters: {
16
- actions: { argTypesRegex: '^on[A-Z].*' },
17
- controls: {
18
- matchers: {
19
- color: /(background|color)$/i,
20
- date: /Date$/,
21
- },
22
- },
23
- docs: {
24
- theme: TopThemeManager.get(),
25
- },
26
- options: {
27
- storySort: {
28
- order: [
29
- 'Добро пожаловать',
30
- 'docs',
31
- 'core',
32
- 'components',
33
- ],
34
- },
35
- },
36
- },
37
- decorators: [
38
- // если декораторы меняют args, то show code перестает работать и выводит {} satisfies Story
39
- TopTheme.decorator,
40
- coreDecorator,
41
- vModelDecorator,
42
- ],
43
- globalTypes: {
44
- topTheme: TopTheme.type,
45
- },
46
- } satisfies Preview;
47
-
48
- export default preview;
@@ -1,19 +0,0 @@
1
- import type { Preview } from '@storybook/vue3';
2
- import { getCurrentInstance } from 'vue';
3
- import Core from '@/core/core/core';
4
-
5
- type Decorator = Required<Preview>['decorators'][number];
6
-
7
- /**
8
- * Подключение Core UI
9
- */
10
- const coreDecorator: Decorator = (story, context) => {
11
- const app = getCurrentInstance()?.appContext.app;
12
- app?.use(Core, {
13
- dateFormat: 'd.m.Y',
14
- });
15
-
16
- return story(context);
17
- };
18
-
19
- export default coreDecorator;
@@ -1,27 +0,0 @@
1
- import type { Preview } from '@storybook/vue3';
2
- import { useArgs } from '@storybook/preview-api';
3
-
4
- type Decorator = Required<Preview>['decorators'][number];
5
-
6
- /**
7
- * Двусторонняя привязка v-model vue и args storybook
8
- */
9
- const vModelDecorator: Decorator = (story, context) => {
10
- const [args, updateArgs] = useArgs();
11
-
12
- if ('modelValue' in args) {
13
- const onUpdate = args['onUpdate:model-value'] || args['onUpdate:modelValue'];
14
- args['onUpdate:model-value'] = undefined;
15
-
16
- args['onUpdate:modelValue'] = (...params) => {
17
- onUpdate?.(...params);
18
-
19
- const modelValue = params[0] === undefined ? null : params[0];
20
- updateArgs({ modelValue });
21
- };
22
- }
23
-
24
- return story(context);
25
- };
26
-
27
- export default vModelDecorator;
@@ -1,11 +0,0 @@
1
- {
2
- "recommendations": [
3
- "ruakr.ftp-kr",
4
- "unifiedjs.vscode-mdx",
5
- "vue.vscode-typescript-vue-plugin",
6
- "vue.volar",
7
- "dbaeumer.vscode-eslint",
8
- "bmewburn.vscode-intelephense-client",
9
- "neilbrayfield.php-docblocker"
10
- ]
11
- }
@@ -1,121 +0,0 @@
1
- [
2
- {
3
- "key": "ctrl+shift+alt+u",
4
- "command": "git.pull"
5
- },
6
- {
7
- "key": "ctrl+alt+r",
8
- "command": "git.cleanAll"
9
- },
10
- {
11
- "key": "ctrl+alt+s",
12
- "command": "git.commit"
13
- },
14
- {
15
- "key": "ctrl+shift+alt+s",
16
- "command": "git.push"
17
- },
18
- {
19
- "key": "ctrl+shift+alt+e",
20
- "command": "git.openChange"
21
- },
22
- {
23
- "key": "ctrl+q",
24
- "command": "workbench.action.navigateToLastEditLocation"
25
- },
26
- {
27
- "key": "f4",
28
- "command": "workbench.action.toggleZenMode"
29
- },
30
- {
31
- "key": "f7",
32
- "command": "outline.focus"
33
- },
34
- {
35
- "key": "alt+1",
36
- "command": "workbench.files.action.showActiveFileInExplorer"
37
- },
38
- {
39
- "key": "alt+2",
40
- "command": "copyRelativeFilePath"
41
- },
42
- {
43
- "key": "alt+3",
44
- "command": "revealFileInOS"
45
- },
46
- {
47
- "key": "ctrl+c",
48
- "command": "-gitlens.views.commits.copy",
49
- "when": "gitlens:enabled && focusedView =~ /^gitlens\\.views\\.commits/"
50
- },
51
- {
52
- "key": "ctrl+c",
53
- "command": "-gitlens.views.branches.copy",
54
- "when": "gitlens:enabled && focusedView =~ /^gitlens\\.views\\.branches/"
55
- },
56
- {
57
- "key": "ctrl+c",
58
- "command": "-gitlens.views.fileHistory.copy",
59
- "when": "gitlens:enabled && focusedView =~ /^gitlens\\.views\\.fileHistory/"
60
- },
61
- {
62
- "key": "ctrl+c",
63
- "command": "-gitlens.views.contributors.copy",
64
- "when": "gitlens:enabled && focusedView =~ /^gitlens\\.views\\.contributors/"
65
- },
66
- {
67
- "key": "ctrl+c",
68
- "command": "-gitlens.views.lineHistory.copy",
69
- "when": "gitlens:enabled && focusedView =~ /^gitlens\\.views\\.lineHistory/"
70
- },
71
- {
72
- "key": "ctrl+c",
73
- "command": "-gitlens.views.remotes.copy",
74
- "when": "gitlens:enabled && focusedView =~ /^gitlens\\.views\\.remotes/"
75
- },
76
- {
77
- "key": "ctrl+c",
78
- "command": "-gitlens.views.repositories.copy",
79
- "when": "gitlens:enabled && focusedView =~ /^gitlens\\.views\\.repositories/"
80
- },
81
- {
82
- "key": "ctrl+c",
83
- "command": "-gitlens.views.searchAndCompare.copy",
84
- "when": "gitlens:enabled && focusedView =~ /^gitlens\\.views\\.searchAndCompare\\b/"
85
- },
86
- {
87
- "key": "ctrl+c",
88
- "command": "-gitlens.views.stashes.copy",
89
- "when": "gitlens:enabled && focusedView =~ /^gitlens\\.views\\.stashes/"
90
- },
91
- {
92
- "key": "ctrl+c",
93
- "command": "-gitlens.views.tags.copy",
94
- "when": "gitlens:enabled && focusedView =~ /^gitlens\\.views\\.tags/"
95
- },
96
- {
97
- "key": "ctrl+shift+d",
98
- "command": "ftpkr.download"
99
- },
100
- {
101
- "key": "ctrl+shift+u",
102
- "command": "ftpkr.upload"
103
- },
104
- {
105
- "key": "ctrl+shift+alt+r",
106
- "command": "git.revertSelectedRanges"
107
- },
108
- {
109
- "key": "ctrl+k ctrl+r",
110
- "command": "-git.revertSelectedRanges",
111
- "when": "isInDiffEditor && !operationInProgress"
112
- },
113
- {
114
- "key": "alt+4",
115
- "command": "-workbench.action.openEditorAtIndex4"
116
- },
117
- {
118
- "key": "alt+4",
119
- "command": "gl.openActiveFile"
120
- }
121
- ]
@@ -1,46 +0,0 @@
1
- {
2
- "git.autofetch": true,
3
- "git.confirmSync": false,
4
- "git.enableSmartCommit": true,
5
- "zenMode.hideActivityBar": false,
6
- "zenMode.hideLineNumbers": false,
7
- "[json]": {
8
- "editor.defaultFormatter": "vscode.json-language-features"
9
- },
10
- "[javascript]": {
11
- "editor.defaultFormatter": "vscode.typescript-language-features"
12
- },
13
- "intelephense.phpdoc.useFullyQualifiedNames": true,
14
- "intelephense.format.braces": "k&r",
15
- "explorer.confirmDelete": false,
16
- "zenMode.hideStatusBar": false,
17
- "zenMode.hideTabs": false,
18
- "zenMode.centerLayout": false,
19
- "zenMode.fullScreen": false,
20
- "editor.lineHeight": 17,
21
- // "editor.hover.enabled": false,
22
- "editor.hover.delay": 1000,
23
- "workbench.tree.indent": 24,
24
- "workbench.editor.pinnedTabSizing": "shrink",
25
- "workbench.editor.highlightModifiedTabs": true,
26
- "editor.rulers": [
27
- 150
28
- ],
29
- "editor.formatOnType": true,
30
- "git.allowForcePush": false,
31
- "npm.packageManager": "npm",
32
- "files.eol": "auto",
33
- "html.format.wrapAttributes": "force-expand-multiline",
34
- "css.format.newlineBetweenRules": false,
35
- "css.format.maxPreserveNewLines": 2,
36
- "css.format.spaceAroundSelectorSeparator": true,
37
- "css.lint.emptyRules": "ignore",
38
- "vue.codeLens.enabled": false,
39
- "git.useEditorAsCommitInput": false,
40
- "git.postCommitCommand": "sync",
41
- "files.exclude": {
42
- "**/nbproject": true,
43
- "**/node_modules": true,
44
- },
45
- "typescript.tsdk": "node_modules/typescript/lib"
46
- }
package/Dockerfile DELETED
@@ -1,3 +0,0 @@
1
- FROM nginx:alpine
2
-
3
- COPY ./storybook-static /usr/share/nginx/html
package/NPM.md DELETED
@@ -1,25 +0,0 @@
1
- # Введение в npm
2
-
3
- Скачать node.js (npm входит в состав node.js): https://nodejs.org/ru/download
4
-
5
- Описание файлов:
6
-
7
- - **package.json** - настройки разрабатываемого пакета, а также его зависимости, [документация](https://docs.npmjs.com/cli/v9/configuring-npm/package-json)
8
- - **package-lock.json** - информация об установленных версиях пакетов, [документация](https://docs.npmjs.com/cli/v9/configuring-npm/package-lock-json)
9
-
10
- Описание команд:
11
-
12
- > `npm i` - является сокращенной командой `npm install`
13
-
14
- > `npm i -D` - является сокращенной командой `npm install --save-dev`
15
-
16
- - `npm i -g npm@latest` - обновление npm до последней версии
17
- - `npm i` - установка зависимостей из файла **package.json**
18
- - `npm- ci i` - установка зависимостей из файла **package-lock.json**
19
- - `npm i {{ name }}` - установка конкретного пакета
20
- - `npm i -D {{ name }}` - установка конкретного пакета как dev зависимости
21
-
22
- Команду **npm ci** необходимо использовать в случаях, когда есть необходимость загрузки конкретных версий.
23
- Обычно это нужно для отладки и в сценариях CI/CD, которые обязаны использовать указанные вами версии.
24
-
25
- Если вы не знакомы с **npm** рекомендуется прочитать статью на хабре: [npm, package.json и package-lock.json](https://habr.com/ru/companies/ruvds/articles/423703/)
package/PUBLISH.md DELETED
@@ -1,18 +0,0 @@
1
- # Публикация в npm
2
-
3
- Не путать с публикацией Storybook.
4
-
5
- https://www.npmjs.com/package/topvisor-ui.
6
-
7
- Настройки и скрипты сборки см. в папке [build/](build/)
8
-
9
- - `npm run build` - выполнить сбоку
10
- - убедиться, что в сборке нет приватных данных, после публикации все файлы в /dist/ доступны в открытом доступе
11
- - `npm run publish` - запустить публикацию
12
-
13
- ## Публикация в CDN
14
-
15
- После публикации в npm пакет будет автоматически доступен на следующих CDN:
16
-
17
- - https://unpkg.com/@topvisor/ui/
18
- - https://cdn.jsdelivr.net/npm/@topvisor/ui/
package/STORYBOOK.md DELETED
@@ -1,27 +0,0 @@
1
- # Storybook
2
-
3
- https://storybook.js.org/
4
-
5
- ## Основные команды Storybook
6
-
7
- Информация о параметрах dev сервера и сборки: https://storybook.js.org/docs/react/api/cli-options
8
-
9
- - `npx storybook@latest init` - установка файлов Storybook в проект (в этом проекте повторно не выполнять)
10
- - `npx storybook@latest upgrade` - обновить Storybook в случае необходимости
11
- - `storybook dev` - запуск локального сервера Storybook
12
- - `storybook build` - запуск сборки Storybook
13
-
14
- ## Локальный сервер разработки
15
-
16
- - `npm -i` - загрузить все зависимости проекта (выполнять один раз)
17
- - `npx storybook@latest upgrade` - обновить Storybook (в случае необходимости)
18
- - `npm run storybook` - запуск локального сервера Storybook
19
-
20
- ## Сборка storybook в статический сайт
21
-
22
- Не путать со сборкой проекта @topvisor/ui.
23
-
24
- `storybook build` - выполнить сборку
25
-
26
- Сборка Storybook производится автоматически через CI/CD и публикуется по адресу: https://ui.topvisor.com/.
27
- Вам нет необходимости делать сборку самостоятельно.
package/USE_IN_PROJECT.md DELETED
@@ -1,29 +0,0 @@
1
- [![npm version](https://badge.fury.io/js/@topvisor%2Fui.svg)](https://badge.fury.io/js/@topvisor%2Fui)
2
-
3
- # Использование в других проектах
4
-
5
- ## Использование @topvisor/ui после публикации, пример с topvisor.com
6
-
7
- Опубликованный пакет можно сразу использовать через публичный [CDN](PUBLISH.md#публикация-в-cdn).
8
-
9
- Подключение js пактов в topvisor.com настраивается в файле [requirejs.json](https://gitlab.topvisor.com/topvisor/topvisor.com/-/tree/master/requirejs.json).
10
-
11
- ## Тестирование сборки @topvisor/ui без публикации
12
-
13
- Для тестирования сборки используется локальный сервер предпросмотра vite preview с автосборкой vite build --watch.
14
-
15
- Получаемые файлы с этого сервера не кешируются.
16
-
17
- Режим автосборки автоматически пересобирает проект и новая сборка доступна на сервере предпросмотра.
18
-
19
- Адрес севера предпросмотра по умолчанию: http://localhost:4173
20
-
21
- - `npm run preview` - запустить сервер предпросмотра с автосборкой
22
- - в нужном проекте замените путь к @topvisor/ui на сервер предпросмотра
23
-
24
- Например: `https://cdn.jsdelivr.net/npm/@topvisor/ui` => `http://localhost:4173`
25
-
26
- ## Использование topvisor-ui в другом проекте без публикации, пример с topvisor.dev
27
-
28
- - ```git submodule init``` - инициализация подмодуля в проекте
29
- - ```git submodule update``` - загрузка подмодуля, будет произведен clone репозитория подмодуля
@@ -1,12 +0,0 @@
1
- echo ''
2
- echo 'run afterBuild...'
3
-
4
- echo '- remove /dist/for-delete/'
5
- rm -rf dist/for-delete/
6
-
7
- echo '- add icomoon'
8
- cp -r src/resources/icomoon dist/
9
-
10
- echo '- make package.json'
11
- cp package.json dist/
12
- npm pkg --prefix dist delete scripts devDependencies
@@ -1,39 +0,0 @@
1
- import stringHash from "string-hash";
2
-
3
- // https://github.com/madyankin/postcss-modules/blob/325f0b33f1b746eae7aa827504a5efd0949022ef/src/scoping.js#L36
4
- function generateScopedNameDefault(name, filename, css) {
5
- const i = css.indexOf(`.${name}`);
6
- const lineNumber = css.substr(0, i).split(/[\r\n]/).length;
7
- const hash = stringHash(css).toString(36).substr(0, 5);
8
-
9
- return `_${name}_${hash}_${lineNumber}`;
10
- }
11
-
12
- export default {
13
- /**
14
- * Оставить глобальные классы без преобразования
15
- * С глобальными классами нельзя работать через css module
16
- * С глобальными классами можно работать, определяя их их в интерфесе vue css module
17
- * @param {type} name - имя класса
18
- * @param {type} filename - файл стилей
19
- * @param {type} css - стили
20
- * @returns {String} - имя класса после предкомпиляции
21
- */
22
- generateScopedName: (name: string, filename: string, css: string) => {
23
- const isGlobalCSS = (name: string, filename: string) => {
24
- // классы topvisor-ui
25
- if (name.indexOf('top-') === 0) return true;
26
-
27
- return false;
28
- };
29
-
30
- if (isGlobalCSS(name, filename)) {
31
- return name;
32
- }
33
-
34
- return generateScopedNameDefault(name, filename, css);
35
- },
36
- // globalModulePaths: [],
37
- // scopeBehaviour: 'global',
38
- // exportGlobals: true,
39
- }
@@ -1,46 +0,0 @@
1
- import glob from 'glob';
2
- import fs from 'fs';
3
- import type { UserConfig } from 'vite'
4
-
5
- /**
6
- * опеределить значение переменной vue в импорте requriejs
7
- * vue не предоставляет export для amd
8
- */
9
- export default () => {
10
- return {
11
- name: 'amd-fix',
12
-
13
- async closeBundle() {
14
- console.log('fix amd')
15
-
16
- const amdFilenames = glob.sync('dist/**/*.amd.js');
17
-
18
- const fixAMDFile = async (amdFilename: string) => {
19
- console.log(amdFilename);
20
-
21
- const data = await fs.promises.readFile(amdFilename, 'utf8');
22
- const result = data.replace(/"use strict";/g, '"use strict"; if(typeof vue === "undefined") var vue = window.Vue;');
23
- await fs.promises.writeFile(amdFilename, result, 'utf8');
24
- }
25
-
26
- console.time('amd-fix');
27
-
28
- const tasks = amdFilenames.map((amdFilename) => fixAMDFile(amdFilename));
29
-
30
- await Promise.all(tasks);
31
-
32
- console.timeEnd('amd-fix');
33
- },
34
-
35
- config(config: UserConfig, env: { mode: string, command: string }) {
36
- // в режиме watch запись в папку и ее очистка одновременно работать не будут
37
- if (!config.build?.watch) return;
38
-
39
- return {
40
- build: {
41
- emptyOutDir: false
42
- }
43
- }
44
- }
45
- }
46
- }
@@ -1,18 +0,0 @@
1
- import type { RollupOptions } from 'rollup';
2
-
3
- export default {
4
- external: ['vue'],
5
- output: {
6
- globals: {
7
- vue: 'Vue',
8
- },
9
-
10
- // часто используемые компоненты вручную группируются по файлам
11
- manualChunks: {
12
- forms: [
13
- './src/components/forms/forms.ts',
14
- ],
15
- },
16
- chunkFileNames: '.chunks/[name]-[hash].[format].js',
17
- },
18
- } satisfies RollupOptions;
@@ -1,11 +0,0 @@
1
- auxiliary.org-netbeans-modules-css-prep.less_2e_compiler_2e_options=
2
- auxiliary.org-netbeans-modules-css-prep.less_2e_enabled=false
3
- auxiliary.org-netbeans-modules-css-prep.less_2e_mappings=/less:/css
4
- auxiliary.org-netbeans-modules-css-prep.sass_2e_compiler_2e_options=
5
- auxiliary.org-netbeans-modules-css-prep.sass_2e_enabled=false
6
- auxiliary.org-netbeans-modules-css-prep.sass_2e_mappings=/scss:/css
7
- auxiliary.org-netbeans-modules-javascript2-json.json_2e_comments=true
8
- auxiliary.org-netbeans-modules-javascript2-requirejs.enabled=true
9
- files.encoding=UTF-8
10
- site.root.folder=
11
- source.folder=
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xmlns="http://www.netbeans.org/ns/project/1">
3
- <type>org.netbeans.modules.web.clientproject</type>
4
- <configuration>
5
- <data xmlns="http://www.netbeans.org/ns/clientside-project/1">
6
- <name>topvisor-ui</name>
7
- </data>
8
- </configuration>
9
- </project>
package/public/README.md DELETED
@@ -1,63 +0,0 @@
1
- # UI kit Topvisor Vue
2
-
3
- ## Vue компоненты
4
-
5
- Компоненты поставляются в двух форматах:
6
-
7
- - amd (requirejs)
8
- - es
9
-
10
- Компоненты делятся на разные модули и доступны через импорт этих модулей.
11
-
12
- Каждый модуль находится в отдельной папке, соответствующей имени модулю.
13
-
14
- Все стили модулей находятся в корневой папке в файлах соответствующих имени модулю.
15
-
16
- Список всех компонентов см. на [npmjs](https://www.npmjs.com/package/topvisor-ui?activeTab=code).
17
-
18
- ## Другие ресурсы
19
-
20
- - [core.css](core.css) - основная палитра цветов и стили компонентов
21
- - [light.css](light.css) - светлая тема
22
- - [dark.css](dark.css) - темная тема
23
-
24
- ## Подключение стилей
25
-
26
- Стили компонентов подгружаются автоматически.
27
-
28
- Стили core.css необходимо подгрузить на страницу.
29
-
30
- ```js
31
- import '@topvisor/ui/core.css';
32
- ```
33
-
34
- Стили темы необходимо подгрузить на страницу.
35
-
36
- Для смены темы необходимо подгрузить файл стилей необходимой темы и сразу отключить стили предыдущей темы.
37
-
38
- ```js
39
- import '@topvisor/ui/light.css';
40
- ```
41
-
42
- Стили icomoon необходимо подгрузить на страницу.
43
-
44
- ```js
45
- import '@topvisor/ui/icomoon/style.css';
46
- ```
47
-
48
- ## Подключение компонентов
49
-
50
- Пример подключения библиотеки Forms и компонента Button:
51
-
52
- ```javascript
53
- requirejs(['@topvisor/ui/forms/forms.amd'], ({Button}) => {
54
- console.log(Button);
55
- });
56
-
57
- requirejs(['@topvisor/ui/forms/forms.amd'], Forms => {
58
- const { Button } = Forms;
59
-
60
- console.log(Forms);
61
- console.log(Button);
62
- });
63
- ```
@@ -1 +0,0 @@
1
- // export { default as Icon } from './icon/icon.vue'
@@ -1,4 +0,0 @@
1
- export interface Props {
2
- icon?: string
3
- icon2?: string
4
- }
@@ -1,15 +0,0 @@
1
- <script setup lang="ts">
2
- import type { Props } from './icon'
3
-
4
- defineProps<Props>()
5
- </script>
6
-
7
- <template>
8
- <div
9
- :data-top-icon="icon"
10
- :data-top-icon2="icon2"
11
- ></div>
12
- </template>
13
-
14
- <!-- см resources/styles/core/icon.css -->
15
- <style></style>