@topvisor/ui 0.9.36-colors-1 → 0.9.36-colors-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 (101) hide show
  1. package/.chunks/{popup-rXUMJeua.es.js → popup-BWh8DRIt.es.js} +2 -2
  2. package/.chunks/popup-BWh8DRIt.es.js.map +1 -0
  3. package/.chunks/{popup-COBSXWy_.amd.js → popup-CKfepE91.amd.js} +2 -2
  4. package/.chunks/popup-CKfepE91.amd.js.map +1 -0
  5. package/assets/dark.css +1 -1
  6. package/assets/light.css +1 -1
  7. package/common/common.d.ts +1 -1
  8. package/components/forms/avatar/avatar.vue.d.ts +12 -12
  9. package/components/forms/button/button.d.ts +0 -1
  10. package/components/forms/button/button.vue.d.ts +11 -12
  11. package/components/forms/checkbox/checkbox.vue.d.ts +19 -43
  12. package/components/forms/controlLabel/controlLabel.vue.d.ts +7 -8
  13. package/components/forms/forms.d.ts +0 -1
  14. package/components/forms/hint/hint.vue.d.ts +2 -3
  15. package/components/forms/input/input.d.ts +0 -1
  16. package/components/forms/input/input.vue.d.ts +11 -12
  17. package/components/forms/inputDate/inputDate.d.ts +0 -1
  18. package/components/forms/inputDate/inputDate.vue.d.ts +11 -12
  19. package/components/forms/radio/radio.vue.d.ts +8 -9
  20. package/components/forms/select/select.d.ts +0 -1
  21. package/components/forms/select/select.vue.d.ts +31 -69
  22. package/components/forms/select/stories/exampleOptions.d.ts +0 -1
  23. package/components/forms/switcher/switcher.vue.d.ts +8 -9
  24. package/components/forms/textarea/textarea.vue.d.ts +11 -12
  25. package/components/formsExt/editArea/editArea.d.ts +0 -1
  26. package/components/formsExt/editArea/editArea.vue.d.ts +11 -12
  27. package/components/formsExt/editInput/editInput.d.ts +0 -1
  28. package/components/formsExt/editInput/editInput.vue.d.ts +3 -4
  29. package/components/formsExt/formsExt.d.ts +0 -1
  30. package/components/formsExt/menu/menu.d.ts +0 -1
  31. package/components/formsExt/menu/menu.vue.d.ts +32 -48
  32. package/components/formsExt/menu/stories/items.d.ts +0 -1
  33. package/components/formsExt/radioGroup/radioGroup.d.ts +0 -1
  34. package/components/formsExt/radioGroup/radioGroup.vue.d.ts +31 -42
  35. package/components/formsExt/selector2/api.d.ts +0 -1
  36. package/components/formsExt/selector2/itemMulti.vue.d.ts +3 -4
  37. package/components/formsExt/selector2/selector2.d.ts +0 -1
  38. package/components/formsExt/selector2/selector2.vue.d.ts +37 -117
  39. package/components/popup/lib/popup.d.ts +0 -1
  40. package/components/popup/lib/worker.d.ts +0 -1
  41. package/components/popup/popup/listItem.vue.d.ts +11 -12
  42. package/components/popup/popup/opener.vue.d.ts +11 -12
  43. package/components/popup/popup/popup.vue.d.ts +11 -12
  44. package/components/popup/popup/widgetInput.vue.d.ts +32 -82
  45. package/components/popup/popup.d.ts +0 -1
  46. package/components/project/project.d.ts +0 -1
  47. package/components/project/selectorCompetitors/composables.d.ts +0 -1
  48. package/components/project/selectorCompetitors/selectorCompetitors.d.ts +0 -1
  49. package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +32 -24
  50. package/components/tabs/tabs/content.vue.d.ts +7 -8
  51. package/components/tabs/tabs/tab.vue.d.ts +7 -8
  52. package/components/tabs/tabs/tabs.vue.d.ts +7 -8
  53. package/components/tabs/tabs.d.ts +0 -1
  54. package/components/tabsView/tabsView/menu.vue.d.ts +22 -14
  55. package/components/tabsView/tabsView/menuItem.vue.d.ts +12 -12
  56. package/components/tabsView/tabsView/menuTitle.vue.d.ts +8 -8
  57. package/components/tabsView/tabsView/store.d.ts +1 -2
  58. package/components/tabsView/tabsView/tabsView.d.ts +0 -1
  59. package/components/tabsView/tabsView/tabsView.vue.d.ts +34 -34
  60. package/components/tabsView/tabsView.d.ts +0 -1
  61. package/core/app.d.ts +0 -1
  62. package/core/core.d.ts +2 -1
  63. package/core/directives/focus.d.ts +0 -1
  64. package/core/directives/sticky.d.ts +0 -1
  65. package/core/directives/swimUp.d.ts +0 -1
  66. package/core/directives/tooltip.d.ts +0 -1
  67. package/core/plugins/core.d.ts +0 -1
  68. package/core/plugins/i18n.d.ts +0 -1
  69. package/core/plugins/piniaTPA.d.ts +0 -1
  70. package/core/utils/price.d.ts +0 -1
  71. package/core/utils/store/localStorage.d.ts +0 -1
  72. package/core/utils/store/plugin.d.ts +0 -1
  73. package/core/utils/store/store.d.ts +0 -1
  74. package/forms/forms.d.ts +1 -0
  75. package/forms/helpers.d.ts +1 -0
  76. package/formsExt/formsExt.d.ts +1 -0
  77. package/package.json +1 -1
  78. package/popup/popup.d.ts +1 -0
  79. package/popup/worker.amd.js +1 -1
  80. package/popup/worker.d.ts +3 -0
  81. package/popup/worker.js +1 -1
  82. package/project/project.d.ts +1 -0
  83. package/tabs/tabs.d.ts +1 -0
  84. package/tabsView/tabsView.d.ts +1 -0
  85. package/utils/check.d.ts +1 -0
  86. package/utils/clipboard.d.ts +1 -0
  87. package/utils/date.d.ts +1 -0
  88. package/utils/device.d.ts +1 -0
  89. package/utils/dom.d.ts +3 -0
  90. package/utils/image.d.ts +1 -0
  91. package/utils/keyboard.d.ts +1 -0
  92. package/utils/number.d.ts +1 -0
  93. package/utils/price.d.ts +1 -0
  94. package/utils/route.d.ts +1 -0
  95. package/utils/scroll.d.ts +1 -0
  96. package/utils/store.d.ts +1 -0
  97. package/utils/string.d.ts +1 -0
  98. package/utils/system.d.ts +1 -0
  99. package/utils/url.d.ts +1 -0
  100. package/.chunks/popup-COBSXWy_.amd.js.map +0 -1
  101. package/.chunks/popup-rXUMJeua.es.js.map +0 -1
@@ -1,4 +1,3 @@
1
1
  import { ComponentCustomProps } from 'vue';
2
2
  import { default as SelectorCompetitors } from './selectorCompetitors/selectorCompetitors.vue';
3
-
4
3
  export declare const TopSelectorCompetitors: typeof SelectorCompetitors & ComponentCustomProps;
@@ -1,5 +1,4 @@
1
1
  import { MaybeRefOrGetter, ComputedRef } from 'vue';
2
2
  import { Item } from './selectorCompetitors';
3
3
  import { Competitor } from './types/competitor';
4
-
5
4
  export declare const useItemsFromCompetitors: (competitors: MaybeRefOrGetter<Competitor[]>, projectId: MaybeRefOrGetter<number>) => ComputedRef<Item[]>;
@@ -1,5 +1,4 @@
1
1
  import { Props as ButtonProps } from '../../forms/button/button';
2
-
3
2
  export interface Props {
4
3
  /**
5
4
  * Выбранные элементы меню
@@ -1,27 +1,35 @@
1
- import { Props, Item } from './selectorCompetitors';
2
- import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
-
4
- declare const _default: DefineComponent<{
5
- modelValue: PropType<Props["modelValue"]>;
6
- items: {
7
- type: PropType< Item[]>;
8
- required: true;
9
- };
10
- showSelectAllItem: {
11
- type: PropType<boolean>;
12
- default: boolean;
13
- };
14
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
15
- modelValue: PropType<Props["modelValue"]>;
16
- items: {
17
- type: PropType< Item[]>;
18
- required: true;
19
- };
20
- showSelectAllItem: {
21
- type: PropType<boolean>;
22
- default: boolean;
23
- };
24
- }>>, {
1
+ import { Props } from './selectorCompetitors';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare let __VLS_typeProps: Props;
4
+ type __VLS_PublicProps = {
5
+ modelValue?: Props['modelValue'];
6
+ } & typeof __VLS_typeProps;
7
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
8
+ showSelectAllItem: boolean;
9
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ "update:modelValue": (modelValue: number[]) => void;
11
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
12
+ showSelectAllItem: boolean;
13
+ }>>> & {
14
+ "onUpdate:modelValue"?: ((modelValue: number[]) => any) | undefined;
15
+ }, {
25
16
  showSelectAllItem: boolean;
26
17
  }, {}>;
27
18
  export default _default;
19
+ type __VLS_WithDefaults<P, D> = {
20
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
21
+ default: D[K];
22
+ }> : P[K];
23
+ };
24
+ type __VLS_Prettify<T> = {
25
+ [K in keyof T]: T[K];
26
+ } & {};
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToOption<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
@@ -1,14 +1,18 @@
1
1
  import { PropsContent } from './tabs';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
-
4
3
  declare function __VLS_template(): {
5
4
  default?(_: {}): any;
6
5
  };
7
- declare const __VLS_component: DefineComponent<__VLS_TypePropsToRuntimeProps<PropsContent>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PropsContent>>>, {}, {}>;
6
+ declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<PropsContent>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<PropsContent>>>, {}, {}>;
8
7
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
9
8
  export default _default;
9
+ type __VLS_WithTemplateSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
10
14
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
- type __VLS_TypePropsToRuntimeProps<T> = {
15
+ type __VLS_TypePropsToOption<T> = {
12
16
  [K in keyof T]-?: {} extends Pick<T, K> ? {
13
17
  type: PropType<__VLS_NonUndefinedable<T[K]>>;
14
18
  } : {
@@ -16,8 +20,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
16
20
  required: true;
17
21
  };
18
22
  };
19
- type __VLS_WithTemplateSlots<T, S> = T & {
20
- new (): {
21
- $slots: S;
22
- };
23
- };
@@ -1,14 +1,18 @@
1
1
  import { PropsTab } from './tabs';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
-
4
3
  declare function __VLS_template(): {
5
4
  default?(_: {}): any;
6
5
  };
7
- declare const __VLS_component: DefineComponent<__VLS_TypePropsToRuntimeProps<PropsTab>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PropsTab>>>, {}, {}>;
6
+ declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<PropsTab>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<PropsTab>>>, {}, {}>;
8
7
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
9
8
  export default _default;
9
+ type __VLS_WithTemplateSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
10
14
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
- type __VLS_TypePropsToRuntimeProps<T> = {
15
+ type __VLS_TypePropsToOption<T> = {
12
16
  [K in keyof T]-?: {} extends Pick<T, K> ? {
13
17
  type: PropType<__VLS_NonUndefinedable<T[K]>>;
14
18
  } : {
@@ -16,8 +20,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
16
20
  required: true;
17
21
  };
18
22
  };
19
- type __VLS_WithTemplateSlots<T, S> = T & {
20
- new (): {
21
- $slots: S;
22
- };
23
- };
@@ -1,16 +1,20 @@
1
1
  import { Props } from './tabs';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
-
4
3
  declare function __VLS_template(): {
5
4
  buttons?(_: {}): any;
6
5
  header?(_: {}): any;
7
6
  contents?(_: {}): any;
8
7
  };
9
- declare const __VLS_component: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
8
+ declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Props>>>, {}, {}>;
10
9
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
11
10
  export default _default;
11
+ type __VLS_WithTemplateSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
12
16
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToRuntimeProps<T> = {
17
+ type __VLS_TypePropsToOption<T> = {
14
18
  [K in keyof T]-?: {} extends Pick<T, K> ? {
15
19
  type: PropType<__VLS_NonUndefinedable<T[K]>>;
16
20
  } : {
@@ -18,8 +22,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
18
22
  required: true;
19
23
  };
20
24
  };
21
- type __VLS_WithTemplateSlots<T, S> = T & {
22
- new (): {
23
- $slots: S;
24
- };
25
- };
@@ -2,7 +2,6 @@ import { ComponentCustomProps } from 'vue';
2
2
  import { default as Tabs } from './tabs/tabs.vue';
3
3
  import { default as TabsTab } from './tabs/tab.vue';
4
4
  import { default as TabsContent } from './tabs/content.vue';
5
-
6
5
  export declare const TopTabs: typeof Tabs & ComponentCustomProps;
7
6
  export declare const TopTabsTab: typeof TabsTab & ComponentCustomProps;
8
7
  export declare const TopTabsContent: typeof TabsContent & ComponentCustomProps;
@@ -1,20 +1,19 @@
1
- import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
1
+ import { PropsMenu } from './tabsView';
2
+ import { ModelRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare let __VLS_typeProps: PropsMenu;
4
+ declare const isLoading: ModelRef<unknown, string>;
5
+ type __VLS_PublicProps = {
6
+ 'isLoading'?: NonNullable<typeof isLoading['value']>;
7
+ } & typeof __VLS_typeProps;
2
8
  declare function __VLS_template(): {
3
9
  default?(_: {}): any;
10
+ default?(_: {}): any;
4
11
  };
5
- declare const __VLS_component: DefineComponent<{
6
- isLoading: PropType<any>;
7
- isShortable: {
8
- type: PropType<boolean | undefined>;
9
- required: true;
10
- };
11
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
12
- isLoading: PropType<any>;
13
- isShortable: {
14
- type: PropType<boolean | undefined>;
15
- required: true;
16
- };
17
- }>>, {}, {}>;
12
+ declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
+ "update:isLoading": (isLoading: {}) => void;
14
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
15
+ "onUpdate:isLoading"?: ((isLoading: {}) => any) | undefined;
16
+ }, {}, {}>;
18
17
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
19
18
  export default _default;
20
19
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -22,3 +21,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
22
21
  $slots: S;
23
22
  };
24
23
  };
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToOption<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
@@ -1,13 +1,13 @@
1
1
  import { PropsMenuItem } from './tabsView';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, Component, PropType } from 'vue';
3
-
4
3
  declare function __VLS_template(): {
5
4
  default?(_: {}): any;
5
+ default?(_: {}): any;
6
6
  };
7
- declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PropsMenuItem>, {
7
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PropsMenuItem>, {
8
8
  scrollable: boolean;
9
9
  component: undefined;
10
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PropsMenuItem>, {
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PropsMenuItem>, {
11
11
  scrollable: boolean;
12
12
  component: undefined;
13
13
  }>>>, {
@@ -16,15 +16,6 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
16
16
  }, {}>;
17
17
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
18
18
  export default _default;
19
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
- type __VLS_TypePropsToRuntimeProps<T> = {
21
- [K in keyof T]-?: {} extends Pick<T, K> ? {
22
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
23
- } : {
24
- type: PropType<T[K]>;
25
- required: true;
26
- };
27
- };
28
19
  type __VLS_WithDefaults<P, D> = {
29
20
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
30
21
  default: D[K];
@@ -38,3 +29,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
38
29
  $slots: S;
39
30
  };
40
31
  };
32
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
+ type __VLS_TypePropsToOption<T> = {
34
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
35
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
36
+ } : {
37
+ type: PropType<T[K]>;
38
+ required: true;
39
+ };
40
+ };
@@ -1,14 +1,19 @@
1
1
  import { PropsMenuTitle } from './tabsView';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
-
4
3
  declare function __VLS_template(): {
5
4
  default?(_: {}): any;
5
+ default?(_: {}): any;
6
6
  };
7
- declare const __VLS_component: DefineComponent<__VLS_TypePropsToRuntimeProps<PropsMenuTitle>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PropsMenuTitle>>>, {}, {}>;
7
+ declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<PropsMenuTitle>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<PropsMenuTitle>>>, {}, {}>;
8
8
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
9
9
  export default _default;
10
+ type __VLS_WithTemplateSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
10
15
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
- type __VLS_TypePropsToRuntimeProps<T> = {
16
+ type __VLS_TypePropsToOption<T> = {
12
17
  [K in keyof T]-?: {} extends Pick<T, K> ? {
13
18
  type: PropType<__VLS_NonUndefinedable<T[K]>>;
14
19
  } : {
@@ -16,8 +21,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
16
21
  required: true;
17
22
  };
18
23
  };
19
- type __VLS_WithTemplateSlots<T, S> = T & {
20
- new (): {
21
- $slots: S;
22
- };
23
- };
@@ -2,7 +2,6 @@ import { ModelRef, InjectionKey, Slot, Component, Directive, ComputedOptions, Me
2
2
  import { Props, Store, PropsMenuItem } from './tabsView';
3
3
  import { LooseRequired } from '@vue/shared';
4
4
  import { Store } from '../../../core/utils/store/store';
5
-
6
5
  export declare const injectionKey: InjectionKey<Store>;
7
6
  /**
8
7
  * Инициировать Store компонента
@@ -126,7 +125,7 @@ export declare const defineTabsStore: (props: Props, model: ModelRef<string | un
126
125
  __name: string;
127
126
  } | {
128
127
  props: ComponentPropsOptions<any>;
129
- emits: {} | never[];
128
+ emits: never[] | {};
130
129
  slots: Readonly<{
131
130
  [name: string]: Slot<any> | undefined;
132
131
  }>;
@@ -1,5 +1,4 @@
1
1
  import { Component } from 'vue';
2
-
3
2
  export interface Store {
4
3
  /**
5
4
  * Если true - меню будет скрыто в popup под кнопку, которая его открывает, на кнопке будет текст активного элемента меню
@@ -1,47 +1,47 @@
1
- import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
1
+ import { Props } from './tabsView';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare let __VLS_typeProps: Props;
4
+ type __VLS_PublicProps = {
5
+ modelValue?: string;
6
+ } & typeof __VLS_typeProps;
2
7
  declare function __VLS_template(): {
3
8
  menu?(_: {}): any;
4
9
  };
5
- declare const __VLS_component: DefineComponent<{
6
- modelValue: PropType<string>;
7
- showMenuInPopup: {
8
- type: PropType<boolean>;
9
- default: undefined;
10
- };
11
- isShortable: {
12
- type: PropType<boolean>;
13
- default: boolean;
14
- };
15
- pageMod: {
16
- type: PropType<boolean>;
17
- };
18
- idState: {
19
- type: PropType<string>;
20
- };
21
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
22
- modelValue: PropType<string>;
23
- showMenuInPopup: {
24
- type: PropType<boolean>;
25
- default: undefined;
26
- };
27
- isShortable: {
28
- type: PropType<boolean>;
29
- default: boolean;
30
- };
31
- pageMod: {
32
- type: PropType<boolean>;
33
- };
34
- idState: {
35
- type: PropType<string>;
36
- };
37
- }>>, {
10
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
11
+ showMenuInPopup: undefined;
12
+ isShortable: boolean;
13
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
+ "update:modelValue": (modelValue: string) => void;
15
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
16
+ showMenuInPopup: undefined;
17
+ isShortable: boolean;
18
+ }>>> & {
19
+ "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
20
+ }, {
38
21
  showMenuInPopup: boolean;
39
22
  isShortable: boolean;
40
23
  }, {}>;
41
24
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
42
25
  export default _default;
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
+ } & {};
43
34
  type __VLS_WithTemplateSlots<T, S> = T & {
44
35
  new (): {
45
36
  $slots: S;
46
37
  };
47
38
  };
39
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
+ type __VLS_TypePropsToOption<T> = {
41
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
42
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
43
+ } : {
44
+ type: PropType<T[K]>;
45
+ required: true;
46
+ };
47
+ };
@@ -2,7 +2,6 @@ import { ComponentCustomProps } from 'vue';
2
2
  import { default as TabsView } from './tabsView/tabsView.vue';
3
3
  import { default as TabsViewMenuItem } from './tabsView/menuItem.vue';
4
4
  import { default as TabsViewMenuTitle } from './tabsView/menuTitle.vue';
5
-
6
5
  export declare const TopTabsView: typeof TabsView & ComponentCustomProps;
7
6
  export declare const TopTabsViewMenuItem: typeof TabsViewMenuItem & ComponentCustomProps;
8
7
  export declare const TopTabsViewMenuTitle: typeof TabsViewMenuTitle & ComponentCustomProps;
package/core/app.d.ts CHANGED
@@ -2,6 +2,5 @@ import { default as Core } from './core/core';
2
2
  import { default as corePlugin } from './plugins/core';
3
3
  import { Lang, default as i18nPlugin, useI18n, useI18nLang, useI18nSetLang } from './plugins/i18n';
4
4
  import { default as piniaTPAPlugin } from './plugins/piniaTPA';
5
-
6
5
  export { Core, useI18n, useI18nLang, useI18nSetLang, corePlugin, i18nPlugin, piniaTPAPlugin, };
7
6
  export type { Lang, };
package/core/core.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- export * from './core/core'
1
+ export {}
2
2
  import topvisorui from './core/core'
3
3
  export default topvisorui
4
+ export {}
@@ -1,5 +1,4 @@
1
1
  import { DirectiveBinding } from 'vue';
2
-
3
2
  /**
4
3
  * Фокусировка на элементе сразу после его отображения
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { DirectiveBinding, VNode } from 'vue';
2
-
3
2
  /**
4
3
  * Добавление sticky
5
4
  * К элементу добляется класс переданный как значение диррективы либо **'top-sticky'** по умолчанию
@@ -1,5 +1,4 @@
1
1
  import { DirectiveBinding, VNode } from 'vue';
2
-
3
2
  interface HTMLElementWithSwimUpOptions extends HTMLElement {
4
3
  directiveSwipUpOptions: {
5
4
  distance: number;
@@ -1,5 +1,4 @@
1
1
  import { DirectiveBinding, VNode } from 'vue';
2
-
3
2
  /**
4
3
  * Добавление всплывающей подсказки к элементу.
5
4
  */
@@ -1,7 +1,6 @@
1
1
  import { default as Core } from '../core/core';
2
2
  import { default as coreDefaultOptions } from '../core/options';
3
3
  import { App } from 'vue';
4
-
5
4
  import * as Forms from '../../components/forms/forms';
6
5
  declare module 'vue' {
7
6
  interface ComponentCustomProperties {
@@ -1,6 +1,5 @@
1
1
  import { Reactive, Ref, App } from 'vue';
2
2
  import { components as I18nComponents } from 'topvisor-openapi/src/ts/I18n';
3
-
4
3
  export type Lang = 'ru' | 'en';
5
4
  type Options = {
6
5
  /**
@@ -1,5 +1,4 @@
1
1
  import { PiniaPluginContext } from 'pinia';
2
-
3
2
  /**
4
3
  * Плагин tpa (Third-party access) для pinia
5
4
  *
@@ -1,6 +1,5 @@
1
1
  import { Lang } from '../plugins/i18n';
2
2
  import { default as Core } from '../core/core';
3
-
4
3
  /**
5
4
  * Сгенерировать строку с суммой и валютой
6
5
  * @param sum - сумма
@@ -1,5 +1,4 @@
1
1
  import { Store } from './store';
2
-
3
2
  declare const _default: {
4
3
  loadLocalStorge: <T extends Store>(stateName: keyof T, store: T) => void;
5
4
  addSaverLocalStorge: <T extends Store>(stateName: keyof T, store: T) => void;
@@ -1,6 +1,5 @@
1
1
  import { Store } from './store';
2
2
  import { App } from 'vue';
3
-
4
3
  type Options = {
5
4
  onInit: (context: Context) => void;
6
5
  };
@@ -1,5 +1,4 @@
1
1
  import { InjectionKey, UnwrapNestedRefs } from 'vue';
2
-
3
2
  /**
4
3
  * Определить Store
5
4
  *
package/forms/forms.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from '../components/forms/forms'
2
+ export {}
@@ -1 +1,2 @@
1
1
  export * from '../components/forms/helpers'
2
+ export {}
@@ -1 +1,2 @@
1
1
  export * from '../components/formsExt/formsExt'
2
+ export {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@topvisor/ui",
3
3
  "private": false,
4
- "version": "0.9.36-colors-1",
4
+ "version": "0.9.36-colors-2",
5
5
  "type": "module",
6
6
  "description": "Topvisor UI-kit Vue",
7
7
  "author": "Topvisor",
package/popup/popup.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from '../components/popup/popup'
2
+ export {}
@@ -1,2 +1,2 @@
1
- define(["require","exports","../.chunks/forms-2IN9bh7q.amd","../utils/dom.amd","../utils/scroll.amd"],function(require,exports,forms,utils_dom,utils_scroll){"use strict";if(typeof vue>"u")var vue=window.Vue;class WorkerEvents{static init(){document.addEventListener("mouseover",t=>{var o;!(t.target instanceof HTMLElement)||!((o=t.target.dataset)!=null&&o.topPopupOpenByHover)||t.target.click()}),document.addEventListener("scroll",()=>{forms.Core.state.isMobile||forms.Core.state.isMobileUA||Worker$1.getAll().forEach(t=>Worker$1.close(t))}),forms.Events.addOnReize(t=>{forms.Core.state.isMobile&&t.topEvent.widthDiff&&Worker$1.getAll().forEach(o=>Worker$1.close(o))}),document.addEventListener("click",this.onclick)}static async onclick(t){var p,a,r,s,n;if(!(t.target instanceof HTMLElement))return;let o;switch(!0){case!!((p=t.target.dataset)!=null&&p.topPopup):o=t.target;break;case!!((a=t.target.parentElement)!=null&&a.dataset.topPopup):o=t.target.parentElement;break;case!!((s=(r=t.target.parentElement)==null?void 0:r.parentElement)!=null&&s.dataset.topPopup):o=(n=t.target.parentElement)==null?void 0:n.parentElement;break}o&&(o.dataset.topPopupDisabled||o.dataset.topPopupOpened||(t.preventDefault(),await Worker$1.openByOpener(o)))}}let decoratorBeforeOpen,decoratorAfterOpen,decoratorIsIgnoreOuterClick;class Worker{static noClose=!1;static vueConnectors=new Map;static onInitApp(e){e&&(decoratorBeforeOpen=e.decoratorBeforeOpen,decoratorAfterOpen=e.decoratorAfterOpen,decoratorIsIgnoreOuterClick=e.decoratorIsIgnoreOuterClick)}static getPopup(e){return utils_dom.default.storage(e,"Popup")}static getAll(){return utils_dom.default.querySelectorAllArray(document,".top-popup-wrapper")}static getAllVisible(){return utils_dom.default.querySelectorAllVisible(document,".top-popup-wrapper")}static async openByOpener(e){if(!(e instanceof HTMLElement))return;const t={};return t.popup=e.dataset.topPopup,e.dataset.topPopupP&&(t.p=parseInt(e.dataset.topPopupP)),e.dataset.topPopupNotch&&(t.notch=e.dataset.topPopupNotch==="true"||e.dataset.topPopupNotch==="1"),e.dataset.topPopupClass&&(t.class=e.dataset.topPopupClass),e.dataset.topPopupPosBy&&(t.posBy=e.dataset.topPopupPosBy),e.dataset.topPopupFront&&(t.frontSelector=e.dataset.topPopupFront),e.dataset.topPopupInvertX&&(t.invertX=e.dataset.topPopupInvertX==="true"||e.dataset.topPopupInvertX==="1"),e.dataset.topPopupOpenByHover&&(t.openByHover=e.dataset.topPopupOpenByHover==="true"||e.dataset.topPopupOpenByHover==="1"),e.dataset.topPopupUseOriginal&&(t.useOriginal=e.dataset.topPopupUseOriginal==="true"||e.dataset.topPopupUseOriginal==="1"),await Worker.open(e,t)}static async open(elOpener,options){elOpener instanceof HTMLElement&&(elOpener.dataset.topPopupOpened="opened");const{default:Popup}=await new Promise((e,t)=>require(["../.chunks/popup-COBSXWy_.amd"],e,t));if(forms.Core.$){const $elOpener=forms.Core.$(elOpener);if($elOpener.data("aftershow")){let afterShow=$elOpener.data("aftershow");typeof afterShow=="string"&&(afterShow=eval(afterShow.replace(/\W/g,""))),$elOpener.one("aftershow.top-menu-popup",afterShow)}if($elOpener.data("afterclose")){let afterclose=$elOpener.data("afterclose");typeof afterclose=="string"&&(afterclose=eval(afterclose.replace(/\W/g,""))),$elOpener.one("afterclose.top-menu-popup",afterclose)}}return options.isFullScreen=forms.Core.state.isMobile,new Popup(elOpener,options)}static close(e){const t=Worker.getPopup(e);t&&t.close()}static recalcPosition(e){const t=Worker.getPopup(e);t&&t.elPopupBody instanceof HTMLElement&&(t.recalcPosition(),utils_scroll.genHasScroll(t.elPopupBody))}static scrollToActive(e){if(!utils_dom.default.querySelectorVisible(e,"ul.top-popup_content > li > .top-active"))return;const o=e.querySelector("ul.top-popup_content"),p=utils_dom.default.querySelectorAllVisible(e,"ul.top-popup_content > li");e.classList.add("top-popup-wrapper-no_animate"),setTimeout(()=>e.classList.remove("top-popup-wrapper-no_animate"),100);let a=100;for(const r of p){if(r.querySelector(":scope > .top-active"))break;r instanceof HTMLElement&&(a+=r.offsetHeight)}if(o instanceof HTMLElement){const r=o.offsetHeight;a>r?o.scrollTop=a-r:o.scrollTop=0}}static decoratorBeforeOpen(e){decoratorBeforeOpen&&decoratorBeforeOpen(e)}static decoratorAfterOpen(e){decoratorAfterOpen&&decoratorAfterOpen(e)}static decoratorIsIgnoreOuterClick(e){return decoratorIsIgnoreOuterClick?decoratorIsIgnoreOuterClick(e):!1}static regVueComponent(e,t){if(Worker.vueConnectors.get(e))throw"Vue component Popup use duplicated id: "+e;Worker.vueConnectors.set(e,t)}static unregVueComponent(e){Worker.vueConnectors.delete(e)}}WorkerEvents.init();const Worker$1=Worker;exports.TopPopupWorker=Worker$1,exports.default=Worker$1,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ define(["require","exports","../.chunks/forms-2IN9bh7q.amd","../utils/dom.amd","../utils/scroll.amd"],function(require,exports,forms,utils_dom,utils_scroll){"use strict";if(typeof vue>"u")var vue=window.Vue;class WorkerEvents{static init(){document.addEventListener("mouseover",t=>{var o;!(t.target instanceof HTMLElement)||!((o=t.target.dataset)!=null&&o.topPopupOpenByHover)||t.target.click()}),document.addEventListener("scroll",()=>{forms.Core.state.isMobile||forms.Core.state.isMobileUA||Worker$1.getAll().forEach(t=>Worker$1.close(t))}),forms.Events.addOnReize(t=>{forms.Core.state.isMobile&&t.topEvent.widthDiff&&Worker$1.getAll().forEach(o=>Worker$1.close(o))}),document.addEventListener("click",this.onclick)}static async onclick(t){var p,a,r,s,n;if(!(t.target instanceof HTMLElement))return;let o;switch(!0){case!!((p=t.target.dataset)!=null&&p.topPopup):o=t.target;break;case!!((a=t.target.parentElement)!=null&&a.dataset.topPopup):o=t.target.parentElement;break;case!!((s=(r=t.target.parentElement)==null?void 0:r.parentElement)!=null&&s.dataset.topPopup):o=(n=t.target.parentElement)==null?void 0:n.parentElement;break}o&&(o.dataset.topPopupDisabled||o.dataset.topPopupOpened||(t.preventDefault(),await Worker$1.openByOpener(o)))}}let decoratorBeforeOpen,decoratorAfterOpen,decoratorIsIgnoreOuterClick;class Worker{static noClose=!1;static vueConnectors=new Map;static onInitApp(e){e&&(decoratorBeforeOpen=e.decoratorBeforeOpen,decoratorAfterOpen=e.decoratorAfterOpen,decoratorIsIgnoreOuterClick=e.decoratorIsIgnoreOuterClick)}static getPopup(e){return utils_dom.default.storage(e,"Popup")}static getAll(){return utils_dom.default.querySelectorAllArray(document,".top-popup-wrapper")}static getAllVisible(){return utils_dom.default.querySelectorAllVisible(document,".top-popup-wrapper")}static async openByOpener(e){if(!(e instanceof HTMLElement))return;const t={};return t.popup=e.dataset.topPopup,e.dataset.topPopupP&&(t.p=parseInt(e.dataset.topPopupP)),e.dataset.topPopupNotch&&(t.notch=e.dataset.topPopupNotch==="true"||e.dataset.topPopupNotch==="1"),e.dataset.topPopupClass&&(t.class=e.dataset.topPopupClass),e.dataset.topPopupPosBy&&(t.posBy=e.dataset.topPopupPosBy),e.dataset.topPopupFront&&(t.frontSelector=e.dataset.topPopupFront),e.dataset.topPopupInvertX&&(t.invertX=e.dataset.topPopupInvertX==="true"||e.dataset.topPopupInvertX==="1"),e.dataset.topPopupOpenByHover&&(t.openByHover=e.dataset.topPopupOpenByHover==="true"||e.dataset.topPopupOpenByHover==="1"),e.dataset.topPopupUseOriginal&&(t.useOriginal=e.dataset.topPopupUseOriginal==="true"||e.dataset.topPopupUseOriginal==="1"),await Worker.open(e,t)}static async open(elOpener,options){elOpener instanceof HTMLElement&&(elOpener.dataset.topPopupOpened="opened");const{default:Popup}=await new Promise((e,t)=>require(["../.chunks/popup-CKfepE91.amd"],e,t));if(forms.Core.$){const $elOpener=forms.Core.$(elOpener);if($elOpener.data("aftershow")){let afterShow=$elOpener.data("aftershow");typeof afterShow=="string"&&(afterShow=eval(afterShow.replace(/\W/g,""))),$elOpener.one("aftershow.top-menu-popup",afterShow)}if($elOpener.data("afterclose")){let afterclose=$elOpener.data("afterclose");typeof afterclose=="string"&&(afterclose=eval(afterclose.replace(/\W/g,""))),$elOpener.one("afterclose.top-menu-popup",afterclose)}}return options.isFullScreen=forms.Core.state.isMobile,new Popup(elOpener,options)}static close(e){const t=Worker.getPopup(e);t&&t.close()}static recalcPosition(e){const t=Worker.getPopup(e);t&&t.elPopupBody instanceof HTMLElement&&(t.recalcPosition(),utils_scroll.genHasScroll(t.elPopupBody))}static scrollToActive(e){if(!utils_dom.default.querySelectorVisible(e,"ul.top-popup_content > li > .top-active"))return;const o=e.querySelector("ul.top-popup_content"),p=utils_dom.default.querySelectorAllVisible(e,"ul.top-popup_content > li");e.classList.add("top-popup-wrapper-no_animate"),setTimeout(()=>e.classList.remove("top-popup-wrapper-no_animate"),100);let a=100;for(const r of p){if(r.querySelector(":scope > .top-active"))break;r instanceof HTMLElement&&(a+=r.offsetHeight)}if(o instanceof HTMLElement){const r=o.offsetHeight;a>r?o.scrollTop=a-r:o.scrollTop=0}}static decoratorBeforeOpen(e){decoratorBeforeOpen&&decoratorBeforeOpen(e)}static decoratorAfterOpen(e){decoratorAfterOpen&&decoratorAfterOpen(e)}static decoratorIsIgnoreOuterClick(e){return decoratorIsIgnoreOuterClick?decoratorIsIgnoreOuterClick(e):!1}static regVueComponent(e,t){if(Worker.vueConnectors.get(e))throw"Vue component Popup use duplicated id: "+e;Worker.vueConnectors.set(e,t)}static unregVueComponent(e){Worker.vueConnectors.delete(e)}}WorkerEvents.init();const Worker$1=Worker;exports.TopPopupWorker=Worker$1,exports.default=Worker$1,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
2
2
  //# sourceMappingURL=worker.amd.js.map
package/popup/worker.d.ts CHANGED
@@ -1,3 +1,6 @@
1
1
  export * from '../components/popup/worker'
2
+ export {}
2
3
  import topvisorui from '../components/popup/worker'
3
4
  export default topvisorui
5
+ export * from '../components/popup/worker'
6
+ export {}
package/popup/worker.js CHANGED
@@ -75,7 +75,7 @@ class Worker {
75
75
  */
76
76
  static async open(elOpener, options) {
77
77
  elOpener instanceof HTMLElement && (elOpener.dataset.topPopupOpened = "opened");
78
- const { default: Popup } = await import("../.chunks/popup-rXUMJeua.es.js");
78
+ const { default: Popup } = await import("../.chunks/popup-BWh8DRIt.es.js");
79
79
  if (Core.$) {
80
80
  const $elOpener = Core.$(elOpener);
81
81
  if ($elOpener.data("aftershow")) {
@@ -1 +1,2 @@
1
1
  export * from '../components/project/project'
2
+ export {}
package/tabs/tabs.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from '../components/tabs/tabs'
2
+ export {}
@@ -1 +1,2 @@
1
1
  export * from '../components/tabsView/tabsView'
2
+ export {}
package/utils/check.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from '../core/utils/check'
2
+ export {}
@@ -1 +1,2 @@
1
1
  export * from '../core/utils/clipboard'
2
+ export {}
package/utils/date.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from '../core/utils/date'
2
+ export {}
package/utils/device.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from '../core/utils/device'
2
+ export {}
package/utils/dom.d.ts CHANGED
@@ -1,3 +1,6 @@
1
1
  export * from '../core/utils/dom'
2
+ export {}
2
3
  import topvisorui from '../core/utils/dom'
3
4
  export default topvisorui
5
+ export * from '../core/utils/dom'
6
+ export {}