@topvisor/ui 0.0.43 → 0.9.3

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 (106) hide show
  1. package/.chunks/{datepicker-92744062.es.js → datepicker-78c2af5a.es.js} +3 -3
  2. package/.chunks/{datepicker-92744062.es.js.map → datepicker-78c2af5a.es.js.map} +1 -1
  3. package/.chunks/{datepicker-a9226b0f.amd.js → datepicker-d67bd339.amd.js} +3 -3
  4. package/.chunks/{datepicker-a9226b0f.amd.js.map → datepicker-d67bd339.amd.js.map} +1 -1
  5. package/.chunks/forms-9284b6d9.amd.js +3 -0
  6. package/.chunks/forms-9284b6d9.amd.js.map +1 -0
  7. package/.chunks/forms-9516aa6c.es.js +1000 -0
  8. package/.chunks/forms-9516aa6c.es.js.map +1 -0
  9. package/.chunks/{popup-a622fe31.es.js → popup-3054fcc1.es.js} +27 -16
  10. package/.chunks/popup-3054fcc1.es.js.map +1 -0
  11. package/.chunks/{popup-de28e508.amd.js → popup-c85f28bf.amd.js} +7 -6
  12. package/.chunks/popup-c85f28bf.amd.js.map +1 -0
  13. package/assets/core.css +1 -1
  14. package/assets/forms.css +1 -1
  15. package/assets/tabsView.css +1 -0
  16. package/core/core.amd.js +1 -1
  17. package/core/core.d.ts +2 -2
  18. package/core/core.js +1 -1
  19. package/forms/forms.amd.js +1 -1
  20. package/forms/forms.js +8 -8
  21. package/formsExt/formsExt.amd.js +1 -1
  22. package/formsExt/formsExt.amd.js.map +1 -1
  23. package/formsExt/formsExt.js +83 -84
  24. package/formsExt/formsExt.js.map +1 -1
  25. package/package.json +4 -1
  26. package/popup/popup.amd.js +1 -1
  27. package/popup/popup.amd.js.map +1 -1
  28. package/popup/popup.js +52 -52
  29. package/popup/worker.amd.js +1 -1
  30. package/popup/worker.amd.js.map +1 -1
  31. package/popup/worker.js +14 -10
  32. package/popup/worker.js.map +1 -1
  33. package/src/components/forms/button/button.stories.d.ts +97 -140
  34. package/src/components/forms/checkbox/checkbox.stories.d.ts +61 -100
  35. package/src/components/forms/controlLabel/controlLabel.stories.d.ts +20 -53
  36. package/src/components/forms/input/input.stories.d.ts +101 -145
  37. package/src/components/forms/inputRange/inputRange.stories.d.ts +117 -221
  38. package/src/components/forms/radio/radio.stories.d.ts +57 -95
  39. package/src/components/forms/switcher/switcher.stories.d.ts +55 -93
  40. package/src/components/formsExt/editInput/editInput.stories.d.ts +34 -69
  41. package/src/components/popup/popup/popup.stories.d.ts +242 -363
  42. package/src/components/tabs/tabs/tabs.stories.d.ts +195 -370
  43. package/src/components/tabsView/tabsView/_MenuItem.stories.d.ts +255 -0
  44. package/src/components/tabsView/tabsView/_MenuTitle.stories.d.ts +180 -0
  45. package/src/components/tabsView/tabsView/content.vue.d.ts +19 -0
  46. package/src/components/tabsView/tabsView/menu.vue.d.ts +19 -0
  47. package/src/components/tabsView/tabsView/menuDelimeter.vue.d.ts +2 -0
  48. package/src/components/tabsView/tabsView/menuItem.vue.d.ts +19 -0
  49. package/src/components/tabsView/tabsView/menuTitle.vue.d.ts +19 -0
  50. package/src/components/tabsView/tabsView/state.d.ts +14 -0
  51. package/src/components/tabsView/tabsView/tabsView.d.ts +69 -0
  52. package/src/components/tabsView/tabsView/tabsView.stories.d.ts +358 -0
  53. package/src/components/tabsView/tabsView/tabsView.vue.d.ts +38 -0
  54. package/src/components/tabsView/tabsView.d.ts +4 -0
  55. package/src/core/core/page.d.ts +0 -7
  56. package/src/core/utils/css.d.ts +5 -0
  57. package/src/core/utils/date.d.ts +25 -27
  58. package/src/core/utils/device.d.ts +10 -13
  59. package/tabs/tabs.amd.js +1 -1
  60. package/tabs/tabs.js +37 -38
  61. package/tabs/tabs.js.map +1 -1
  62. package/tabsView/tabsView.amd.js +2 -0
  63. package/tabsView/tabsView.amd.js.map +1 -0
  64. package/tabsView/tabsView.d.ts +1 -0
  65. package/tabsView/tabsView.js +275 -0
  66. package/tabsView/tabsView.js.map +1 -0
  67. package/utils/css.amd.js +2 -0
  68. package/utils/css.amd.js.map +1 -0
  69. package/utils/css.d.ts +1 -0
  70. package/utils/css.js +35 -0
  71. package/utils/css.js.map +1 -0
  72. package/utils/date.amd.js +1 -1
  73. package/utils/date.d.ts +0 -2
  74. package/utils/date.js +5 -2
  75. package/utils/device.amd.js +1 -1
  76. package/utils/device.d.ts +0 -2
  77. package/utils/device.js +7 -2
  78. package/utils/dom.amd.js +1 -1
  79. package/utils/dom.amd.js.map +1 -1
  80. package/utils/dom.d.ts +2 -2
  81. package/utils/dom.js +61 -3
  82. package/utils/dom.js.map +1 -1
  83. package/.chunks/forms-727cc6aa.es.js +0 -1112
  84. package/.chunks/forms-727cc6aa.es.js.map +0 -1
  85. package/.chunks/forms-771091d4.amd.js +0 -3
  86. package/.chunks/forms-771091d4.amd.js.map +0 -1
  87. package/.chunks/popup-a622fe31.es.js.map +0 -1
  88. package/.chunks/popup-de28e508.amd.js.map +0 -1
  89. package/build/cssModules.d.ts +0 -13
  90. package/build/plugin/amdFix.d.ts +0 -8
  91. package/build/plugin/autoloadCSS.d.ts +0 -19
  92. package/build/rollup.config.d.ts +0 -15
  93. package/src/components/component.d.ts +0 -25
  94. package/src/components/helpersStories.d.ts +0 -28
  95. package/src/core/base/Colors.stories.d.ts +0 -19
  96. package/src/core/base/Layout.stories.d.ts +0 -19
  97. package/src/core/base/Properties.stories.d.ts +0 -19
  98. package/src/core/directives/tooltip.d.ts +0 -7
  99. package/src/core/theme/Colors.stories.d.ts +0 -19
  100. package/src/core/theme/Properties.stories.d.ts +0 -19
  101. 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
  102. package/src/d.d.ts +0 -4
  103. package/src/resources/styles/core/core.d.ts +0 -0
  104. package/src/resources/styles/themes/dark.d.ts +0 -0
  105. package/src/resources/styles/themes/light.d.ts +0 -0
  106. package/src/storybook/components/icomoon.d.ts +0 -2
@@ -0,0 +1,358 @@
1
+ declare const meta: {
2
+ component: {
3
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
4
+ modelValue: {
5
+ type: import("vue").PropType<string>;
6
+ required: true;
7
+ };
8
+ showMenuInPopup: {
9
+ type: import("vue").PropType<boolean>;
10
+ };
11
+ isShortable: {
12
+ type: import("vue").PropType<boolean>;
13
+ default: boolean;
14
+ };
15
+ keyForSaveState: {
16
+ type: import("vue").PropType<string>;
17
+ };
18
+ }>> & {
19
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
20
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (value: string) => void;
22
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
23
+ modelValue: {
24
+ type: import("vue").PropType<string>;
25
+ required: true;
26
+ };
27
+ showMenuInPopup: {
28
+ type: import("vue").PropType<boolean>;
29
+ };
30
+ isShortable: {
31
+ type: import("vue").PropType<boolean>;
32
+ default: boolean;
33
+ };
34
+ keyForSaveState: {
35
+ type: import("vue").PropType<string>;
36
+ };
37
+ }>> & {
38
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
39
+ }, {
40
+ isShortable: boolean;
41
+ }, true, {}, {}, {
42
+ P: {};
43
+ B: {};
44
+ D: {};
45
+ C: {};
46
+ M: {};
47
+ Defaults: {};
48
+ }, Readonly<import("vue").ExtractPropTypes<{
49
+ modelValue: {
50
+ type: import("vue").PropType<string>;
51
+ required: true;
52
+ };
53
+ showMenuInPopup: {
54
+ type: import("vue").PropType<boolean>;
55
+ };
56
+ isShortable: {
57
+ type: import("vue").PropType<boolean>;
58
+ default: boolean;
59
+ };
60
+ keyForSaveState: {
61
+ type: import("vue").PropType<string>;
62
+ };
63
+ }>> & {
64
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
65
+ }, {}, {}, {}, {}, {
66
+ isShortable: boolean;
67
+ }>;
68
+ __isFragment?: undefined;
69
+ __isTeleport?: undefined;
70
+ __isSuspense?: undefined;
71
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
72
+ modelValue: {
73
+ type: import("vue").PropType<string>;
74
+ required: true;
75
+ };
76
+ showMenuInPopup: {
77
+ type: import("vue").PropType<boolean>;
78
+ };
79
+ isShortable: {
80
+ type: import("vue").PropType<boolean>;
81
+ default: boolean;
82
+ };
83
+ keyForSaveState: {
84
+ type: import("vue").PropType<string>;
85
+ };
86
+ }>> & {
87
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
88
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
89
+ "update:modelValue": (value: string) => void;
90
+ }, string, {
91
+ isShortable: boolean;
92
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
93
+ $slots: {
94
+ menu?(_: {}): any;
95
+ contents?(_: {}): any;
96
+ };
97
+ });
98
+ tags: string[];
99
+ argTypes: any;
100
+ parameters: {
101
+ docs: {
102
+ description: {
103
+ component: string;
104
+ };
105
+ };
106
+ };
107
+ };
108
+ export declare const Overview: {
109
+ args: {
110
+ modelValue: string;
111
+ keyForSaveState: string;
112
+ isShortable: true;
113
+ };
114
+ render: (args: any) => {
115
+ components: {
116
+ TabsView: {
117
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
118
+ modelValue: {
119
+ type: import("vue").PropType<string>;
120
+ required: true;
121
+ };
122
+ showMenuInPopup: {
123
+ type: import("vue").PropType<boolean>;
124
+ };
125
+ isShortable: {
126
+ type: import("vue").PropType<boolean>;
127
+ default: boolean;
128
+ };
129
+ keyForSaveState: {
130
+ type: import("vue").PropType<string>;
131
+ };
132
+ }>> & {
133
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
134
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
135
+ "update:modelValue": (value: string) => void;
136
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
137
+ modelValue: {
138
+ type: import("vue").PropType<string>;
139
+ required: true;
140
+ };
141
+ showMenuInPopup: {
142
+ type: import("vue").PropType<boolean>;
143
+ };
144
+ isShortable: {
145
+ type: import("vue").PropType<boolean>;
146
+ default: boolean;
147
+ };
148
+ keyForSaveState: {
149
+ type: import("vue").PropType<string>;
150
+ };
151
+ }>> & {
152
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
153
+ }, {
154
+ isShortable: boolean;
155
+ }, true, {}, {}, {
156
+ P: {};
157
+ B: {};
158
+ D: {};
159
+ C: {};
160
+ M: {};
161
+ Defaults: {};
162
+ }, Readonly<import("vue").ExtractPropTypes<{
163
+ modelValue: {
164
+ type: import("vue").PropType<string>;
165
+ required: true;
166
+ };
167
+ showMenuInPopup: {
168
+ type: import("vue").PropType<boolean>;
169
+ };
170
+ isShortable: {
171
+ type: import("vue").PropType<boolean>;
172
+ default: boolean;
173
+ };
174
+ keyForSaveState: {
175
+ type: import("vue").PropType<string>;
176
+ };
177
+ }>> & {
178
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
179
+ }, {}, {}, {}, {}, {
180
+ isShortable: boolean;
181
+ }>;
182
+ __isFragment?: undefined;
183
+ __isTeleport?: undefined;
184
+ __isSuspense?: undefined;
185
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
186
+ modelValue: {
187
+ type: import("vue").PropType<string>;
188
+ required: true;
189
+ };
190
+ showMenuInPopup: {
191
+ type: import("vue").PropType<boolean>;
192
+ };
193
+ isShortable: {
194
+ type: import("vue").PropType<boolean>;
195
+ default: boolean;
196
+ };
197
+ keyForSaveState: {
198
+ type: import("vue").PropType<string>;
199
+ };
200
+ }>> & {
201
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
202
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
203
+ "update:modelValue": (value: string) => void;
204
+ }, string, {
205
+ isShortable: boolean;
206
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
207
+ $slots: {
208
+ menu?(_: {}): any;
209
+ contents?(_: {}): any;
210
+ };
211
+ });
212
+ TabsViewMenuItem: {
213
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
214
+ name: {
215
+ type: import("vue").PropType<string>;
216
+ };
217
+ href: {
218
+ type: import("vue").PropType<string>;
219
+ };
220
+ icon: {
221
+ type: import("vue").PropType<string>;
222
+ };
223
+ disabled: {
224
+ type: import("vue").PropType<boolean>;
225
+ };
226
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
227
+ name: {
228
+ type: import("vue").PropType<string>;
229
+ };
230
+ href: {
231
+ type: import("vue").PropType<string>;
232
+ };
233
+ icon: {
234
+ type: import("vue").PropType<string>;
235
+ };
236
+ disabled: {
237
+ type: import("vue").PropType<boolean>;
238
+ };
239
+ }>>, {}, true, {}, {}, {
240
+ P: {};
241
+ B: {};
242
+ D: {};
243
+ C: {};
244
+ M: {};
245
+ Defaults: {};
246
+ }, Readonly<import("vue").ExtractPropTypes<{
247
+ name: {
248
+ type: import("vue").PropType<string>;
249
+ };
250
+ href: {
251
+ type: import("vue").PropType<string>;
252
+ };
253
+ icon: {
254
+ type: import("vue").PropType<string>;
255
+ };
256
+ disabled: {
257
+ type: import("vue").PropType<boolean>;
258
+ };
259
+ }>>, {}, {}, {}, {}, {}>;
260
+ __isFragment?: undefined;
261
+ __isTeleport?: undefined;
262
+ __isSuspense?: undefined;
263
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
264
+ name: {
265
+ type: import("vue").PropType<string>;
266
+ };
267
+ href: {
268
+ type: import("vue").PropType<string>;
269
+ };
270
+ icon: {
271
+ type: import("vue").PropType<string>;
272
+ };
273
+ disabled: {
274
+ type: import("vue").PropType<boolean>;
275
+ };
276
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
277
+ $slots: {
278
+ default?(_: {}): any;
279
+ };
280
+ });
281
+ TabsViewMenuTitle: {
282
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
283
+ isSubtitle: {
284
+ type: import("vue").PropType<boolean>;
285
+ };
286
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
287
+ isSubtitle: {
288
+ type: import("vue").PropType<boolean>;
289
+ };
290
+ }>>, {}, true, {}, {}, {
291
+ P: {};
292
+ B: {};
293
+ D: {};
294
+ C: {};
295
+ M: {};
296
+ Defaults: {};
297
+ }, Readonly<import("vue").ExtractPropTypes<{
298
+ isSubtitle: {
299
+ type: import("vue").PropType<boolean>;
300
+ };
301
+ }>>, {}, {}, {}, {}, {}>;
302
+ __isFragment?: undefined;
303
+ __isTeleport?: undefined;
304
+ __isSuspense?: undefined;
305
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
306
+ isSubtitle: {
307
+ type: import("vue").PropType<boolean>;
308
+ };
309
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
310
+ $slots: {
311
+ default?(_: {}): any;
312
+ };
313
+ });
314
+ TabsViewContent: {
315
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
316
+ name: {
317
+ type: import("vue").PropType<string>;
318
+ required: true;
319
+ };
320
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
321
+ name: {
322
+ type: import("vue").PropType<string>;
323
+ required: true;
324
+ };
325
+ }>>, {}, true, {}, {}, {
326
+ P: {};
327
+ B: {};
328
+ D: {};
329
+ C: {};
330
+ M: {};
331
+ Defaults: {};
332
+ }, Readonly<import("vue").ExtractPropTypes<{
333
+ name: {
334
+ type: import("vue").PropType<string>;
335
+ required: true;
336
+ };
337
+ }>>, {}, {}, {}, {}, {}>;
338
+ __isFragment?: undefined;
339
+ __isTeleport?: undefined;
340
+ __isSuspense?: undefined;
341
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
342
+ name: {
343
+ type: import("vue").PropType<string>;
344
+ required: true;
345
+ };
346
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
347
+ $slots: {
348
+ default?(_: {}): any;
349
+ };
350
+ });
351
+ };
352
+ setup(this: void): {
353
+ args: any;
354
+ };
355
+ template: string;
356
+ };
357
+ };
358
+ export default meta;
@@ -0,0 +1,38 @@
1
+ import type { Props } from './tabsView';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
3
+ isShortable: boolean;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (value: string) => void;
6
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ isShortable: boolean;
8
+ }>>> & {
9
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
10
+ }, {
11
+ isShortable: boolean;
12
+ }, {}>, {
13
+ menu?(_: {}): any;
14
+ contents?(_: {}): any;
15
+ }>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
26
+ type __VLS_WithDefaults<P, D> = {
27
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
28
+ default: D[K];
29
+ }> : P[K];
30
+ };
31
+ type __VLS_Prettify<T> = {
32
+ [K in keyof T]: T[K];
33
+ } & {};
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,4 @@
1
+ export { default as TabsView } from './tabsView/tabsView.vue';
2
+ export { default as TabsViewMenuItem } from './tabsView/menuItem.vue';
3
+ export { default as TabsViewMenuTitle } from './tabsView/menuTitle.vue';
4
+ export { default as TabsViewContent } from './tabsView/content.vue';
@@ -1,10 +1,3 @@
1
1
  declare class Page {
2
- /**
3
- * Вставить css стили на страницу с автоматическим определением media
4
- * @param fileNames - список ссылок на css файлы
5
- * @param props - атрибуты <link>
6
- */
7
- static addCss(fileNames: Array<String>, props?: any): void;
8
- static _addCss(fileNames: Array<String>, props: any): void;
9
2
  }
10
3
  export default Page;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Вставить css стили на страницу с автоматическим определением media
3
+ * @param fileNames - список ссылок на css файлы
4
+ */
5
+ export declare const insertToPage: (fileNames: Array<string>) => Promise<any[]>;
@@ -1,27 +1,25 @@
1
- declare class UtilsDate {
2
- /**
3
- * Получить объект Date из строки
4
- * @param date - строка с датой
5
- */
6
- static stringToDate(date: string): Date;
7
- /**
8
- * Перевод миллисекунд (UTC) в дату-строку (время локальное)
9
- * @param {?number} ms
10
- * @param {?boolean} useFormat
11
- */
12
- static ms2Date(ms: number, useFormat?: boolean): string;
13
- /**
14
- * Перевод даты в формат пользователя
15
- * @param {string} date - строка в формате Y-m-d H:i:s
16
- * @param {0|1|2|3} time - 0: только дата, 1: дата и часы, 2: дата и часы с минутами, 3: дата и часы с минутами и секундами
17
- * @param {string} emptyValue - значение, которое надо вернуть, если дата не указана
18
- */
19
- static dateFormat(date: string, time?: 0 | 1 | 2 | 3, emptyValue?: string): string;
20
- /**
21
- * Перевод даты из формата пользователя в системный формат
22
- * @param {string} date - строка в формате Y-m-d H:i:s
23
- * @param {string} emptyValue - значение, которое надо вернуть, если дата не указана
24
- */
25
- static dateUnformat(date: string, emptyValue?: string): string;
26
- }
27
- export default UtilsDate;
1
+ /**
2
+ * Получить объект Date из строки
3
+ * @param date - строка с датой
4
+ */
5
+ export declare function stringToDate(date: string): Date;
6
+ /**
7
+ * Генерация строки с датой в формате Y-m-d H:i:s или в формате Core.state.dateFormat, если указан useFormat = true
8
+ * @param {?number} timestamp
9
+ * @param {?boolean} useFormat
10
+ * @param {0|1|2|3} time - 0: только дата, 1: дата и часы, 2: дата и часы с минутами, 3: дата и часы с минутами и секундами
11
+ */
12
+ export declare function genDate(timestamp: number, useFormat?: boolean, time?: 0 | 1 | 2 | 3): string;
13
+ /**
14
+ * Перевод даты в формат пользователя
15
+ * @param {string} date - строка в формате Y-m-d H:i:s
16
+ * @param {0|1|2|3} time - 0: только дата, 1: дата и часы, 2: дата и часы с минутами, 3: дата и часы с минутами и секундами
17
+ * @param {string} emptyValue - значение, которое надо вернуть, если дата не указана
18
+ */
19
+ export declare function dateFormat(date: string, time?: 0 | 1 | 2 | 3, emptyValue?: string): string;
20
+ /**
21
+ * Перевод даты из формата пользователя в системный формат
22
+ * @param {string} date - строка в формате Y-m-d H:i:s
23
+ * @param {string} emptyValue - значение, которое надо вернуть, если дата не указана
24
+ */
25
+ export declare function dateUnformat(date: string, emptyValue?: string): string;
@@ -1,13 +1,10 @@
1
- declare class Device {
2
- static isRetina(): boolean;
3
- static isMobile(): boolean;
4
- static isApp(): boolean;
5
- static isMacOS(): boolean;
6
- static isSafari(): boolean;
7
- /**
8
- * Вернуть текст для обозначения клавиши Ctrl / Command в зависимости от OS
9
- * @returns {'Ctrl'|'⌘'}
10
- */
11
- static getCommandKeyLabel(): 'Ctrl' | '⌘';
12
- }
13
- export default Device;
1
+ export declare function isRetina(): boolean;
2
+ export declare function isMobile(): boolean;
3
+ export declare function isApp(): boolean;
4
+ export declare function isMacOS(): boolean;
5
+ export declare function isSafari(): boolean;
6
+ /**
7
+ * Вернуть текст для обозначения клавиши Ctrl / Command в зависимости от OS
8
+ * @returns {'Ctrl'|'⌘'}
9
+ */
10
+ export declare function getCommandKeyLabel(): 'Ctrl' | '⌘';
package/tabs/tabs.amd.js CHANGED
@@ -1,2 +1,2 @@
1
- define(["require","exports","vue","../.chunks/forms-771091d4.amd"],function(l,s,t,n){"use strict";l(["../core/core.amd"],o=>{const e=["../assets/tabs.css"].map(a=>l.toUrl(a));o.Page.addCss(e)});const c={class:t.normalizeClass({"top-tabs":!0})},d={key:0,class:"top-tabs_header"},b={class:"top-tabs_contents"},p=t.defineComponent({__name:"tabs",props:{id:{}},setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock("div",c,[t.renderSlot(e.$slots,"buttons"),e.$slots.header?(t.openBlock(),t.createElementBlock("div",d,[t.renderSlot(e.$slots,"header")])):t.createCommentVNode("",!0),t.createElementVNode("div",b,[t.renderSlot(e.$slots,"contents")])]))}}),r={$style:{"top-tabs":"top-tabs","top-tabs_header":"top-tabs_header","top-tabs_contents":"top-tabs_contents","top-tabs_tabInput":"top-tabs_tabInput","top-tabs_content":"top-tabs_content"}},_=n._export_sfc(p,[["__cssModules",r]]),i=["id","name","value","checked","disabled"],m=["for"],$=t.defineComponent({__name:"tab",props:{tabsId:{},name:{},title:{},active:{type:Boolean},disabled:{type:Boolean}},setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("input",{type:"radio",class:"top-tabs_tabInput top-unvisible",id:e.tabsId+e.name,name:e.tabsId,value:e.name,checked:e.active,disabled:e.disabled},null,8,i),t.createElementVNode("label",{class:t.normalizeClass({"top-tabs_tabLabel":!0,"top-forms-focusable":!0,"top-disabled":e.disabled}),for:e.tabsId+e.name},[t.renderSlot(e.$slots,"default")],10,m)],64))}}),f={$style:{"top-tabs_tabLabel":"top-tabs_tabLabel","top-tabs_tabInput":"top-tabs_tabInput","top-disabled":"top-disabled"}},u=n._export_sfc($,[["__cssModules",f]]),h=["data-tabs-name"],y=t.defineComponent({__name:"content",props:{name:{}},setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"top-tabs_content":!0}),"data-tabs-name":e.name},[t.renderSlot(e.$slots,"default")],8,h))}}),k={$style:{"top-tabs_content":"top-tabs_content"}},B=n._export_sfc(y,[["__cssModules",k]]);s.Tabs=_,s.TabsContent=B,s.TabsTab=u,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
1
+ define(["require","exports","vue","../.chunks/forms-9284b6d9.amd"],function(l,s,t,n){"use strict";l(["../utils/css.amd"],({insertToPage:o})=>{const e=["../assets/tabs.css"].map(a=>l.toUrl(a));o(e)});const c={class:t.normalizeClass({"top-tabs":!0})},d={key:0,class:"top-tabs_header"},b={class:"top-tabs_contents"},p=t.defineComponent({__name:"tabs",props:{id:{}},setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock("div",c,[t.renderSlot(e.$slots,"buttons"),e.$slots.header?(t.openBlock(),t.createElementBlock("div",d,[t.renderSlot(e.$slots,"header")])):t.createCommentVNode("",!0),t.createElementVNode("div",b,[t.renderSlot(e.$slots,"contents")])]))}}),r={$style:{"top-tabs":"top-tabs","top-tabs_header":"top-tabs_header","top-tabs_contents":"top-tabs_contents","top-tabs_tabInput":"top-tabs_tabInput","top-tabs_content":"top-tabs_content"}},_=n._export_sfc(p,[["__cssModules",r]]),i=["id","name","value","checked","disabled"],m=["for"],$=t.defineComponent({__name:"tab",props:{tabsId:{},name:{},title:{},active:{type:Boolean},disabled:{type:Boolean}},setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("input",{type:"radio",class:"top-tabs_tabInput top-unvisible",id:e.tabsId+e.name,name:e.tabsId,value:e.name,checked:e.active,disabled:e.disabled},null,8,i),t.createElementVNode("label",{class:t.normalizeClass({"top-tabs_tabLabel":!0,"top-forms-focusable":!0,"top-disabled":e.disabled}),for:e.tabsId+e.name},[t.renderSlot(e.$slots,"default")],10,m)],64))}}),u={$style:{"top-tabs_tabLabel":"top-tabs_tabLabel","top-tabs_tabInput":"top-tabs_tabInput","top-disabled":"top-disabled"}},f=n._export_sfc($,[["__cssModules",u]]),h=["data-tabs-name"],y=t.defineComponent({__name:"content",props:{name:{}},setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"top-tabs_content":!0}),"data-tabs-name":e.name},[t.renderSlot(e.$slots,"default")],8,h))}}),k={$style:{"top-tabs_content":"top-tabs_content"}},B=n._export_sfc(y,[["__cssModules",k]]);s.Tabs=_,s.TabsContent=B,s.TabsTab=f,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
2
2
  //# sourceMappingURL=tabs.amd.js.map
package/tabs/tabs.js CHANGED
@@ -1,41 +1,40 @@
1
- import { defineComponent as l, openBlock as o, createElementBlock as n, renderSlot as s, createCommentVNode as c, createElementVNode as b, normalizeClass as p, Fragment as r } from "vue";
2
- import { _ as d } from "../.chunks/forms-727cc6aa.es.js";
3
- import("../core/core.js").then((e) => {
4
- const t = ["../assets/tabs.css"].map((a) => import.meta.resolve(a));
5
- e.default.Page.addCss(t);
6
- });
7
- const _ = {
8
- class: /* @__PURE__ */ p({
1
+ import { insertToPage as c } from "../utils/css.js";
2
+ import { defineComponent as b, openBlock as a, createElementBlock as o, renderSlot as s, createCommentVNode as _, createElementVNode as n, normalizeClass as l, Fragment as i } from "vue";
3
+ import { _ as p } from "../.chunks/forms-9516aa6c.es.js";
4
+ const r = ["../assets/tabs.css"].map((e) => import.meta.resolve(e));
5
+ await c(r);
6
+ const u = {
7
+ class: /* @__PURE__ */ l({
9
8
  "top-tabs": !0
10
9
  })
11
- }, i = {
10
+ }, m = {
12
11
  key: 0,
13
12
  class: "top-tabs_header"
14
- }, u = { class: "top-tabs_contents" }, m = /* @__PURE__ */ l({
13
+ }, $ = { class: "top-tabs_contents" }, h = /* @__PURE__ */ b({
15
14
  __name: "tabs",
16
15
  props: {
17
16
  id: {}
18
17
  },
19
18
  setup(e) {
20
- return (t, a) => (o(), n("div", _, [
19
+ return (t, d) => (a(), o("div", u, [
21
20
  s(t.$slots, "buttons"),
22
- t.$slots.header ? (o(), n("div", i, [
21
+ t.$slots.header ? (a(), o("div", m, [
23
22
  s(t.$slots, "header")
24
- ])) : c("", !0),
25
- b("div", u, [
23
+ ])) : _("", !0),
24
+ n("div", $, [
26
25
  s(t.$slots, "contents")
27
26
  ])
28
27
  ]));
29
28
  }
30
- }), $ = {
29
+ }), f = {
31
30
  "top-tabs": "top-tabs",
32
31
  "top-tabs_header": "top-tabs_header",
33
32
  "top-tabs_contents": "top-tabs_contents",
34
33
  "top-tabs_tabInput": "top-tabs_tabInput",
35
34
  "top-tabs_content": "top-tabs_content"
36
- }, h = {
37
- $style: $
38
- }, g = /* @__PURE__ */ d(m, [["__cssModules", h]]), f = ["id", "name", "value", "checked", "disabled"], v = ["for"], y = /* @__PURE__ */ l({
35
+ }, v = {
36
+ $style: f
37
+ }, P = /* @__PURE__ */ p(h, [["__cssModules", v]]), y = ["id", "name", "value", "checked", "disabled"], I = ["for"], M = /* @__PURE__ */ b({
39
38
  __name: "tab",
40
39
  props: {
41
40
  tabsId: {},
@@ -45,8 +44,8 @@ const _ = {
45
44
  disabled: { type: Boolean }
46
45
  },
47
46
  setup(e) {
48
- return (t, a) => (o(), n(r, null, [
49
- b("input", {
47
+ return (t, d) => (a(), o(i, null, [
48
+ n("input", {
50
49
  type: "radio",
51
50
  class: "top-tabs_tabInput top-unvisible",
52
51
  id: t.tabsId + t.name,
@@ -54,9 +53,9 @@ const _ = {
54
53
  value: t.name,
55
54
  checked: t.active,
56
55
  disabled: t.disabled
57
- }, null, 8, f),
58
- b("label", {
59
- class: p({
56
+ }, null, 8, y),
57
+ n("label", {
58
+ class: l({
60
59
  "top-tabs_tabLabel": !0,
61
60
  "top-forms-focusable": !0,
62
61
  "top-disabled": t.disabled
@@ -64,38 +63,38 @@ const _ = {
64
63
  for: t.tabsId + t.name
65
64
  }, [
66
65
  s(t.$slots, "default")
67
- ], 10, v)
66
+ ], 10, I)
68
67
  ], 64));
69
68
  }
70
- }), I = {
69
+ }), T = {
71
70
  "top-tabs_tabLabel": "top-tabs_tabLabel",
72
71
  "top-tabs_tabInput": "top-tabs_tabInput",
73
72
  "top-disabled": "top-disabled"
74
- }, M = {
75
- $style: I
76
- }, E = /* @__PURE__ */ d(y, [["__cssModules", M]]), k = ["data-tabs-name"], C = /* @__PURE__ */ l({
73
+ }, k = {
74
+ $style: T
75
+ }, V = /* @__PURE__ */ p(M, [["__cssModules", k]]), C = ["data-tabs-name"], B = /* @__PURE__ */ b({
77
76
  __name: "content",
78
77
  props: {
79
78
  name: {}
80
79
  },
81
80
  setup(e) {
82
- return (t, a) => (o(), n("div", {
83
- class: p({
81
+ return (t, d) => (a(), o("div", {
82
+ class: l({
84
83
  "top-tabs_content": !0
85
84
  }),
86
85
  "data-tabs-name": t.name
87
86
  }, [
88
87
  s(t.$slots, "default")
89
- ], 8, k));
88
+ ], 8, C));
90
89
  }
91
- }), B = {
90
+ }), g = {
92
91
  "top-tabs_content": "top-tabs_content"
93
- }, T = {
94
- $style: B
95
- }, V = /* @__PURE__ */ d(C, [["__cssModules", T]]);
92
+ }, L = {
93
+ $style: g
94
+ }, w = /* @__PURE__ */ p(B, [["__cssModules", L]]);
96
95
  export {
97
- g as Tabs,
98
- V as TabsContent,
99
- E as TabsTab
96
+ P as Tabs,
97
+ w as TabsContent,
98
+ V as TabsTab
100
99
  };
101
100
  //# sourceMappingURL=tabs.js.map
package/tabs/tabs.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tabs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}