mediacube-ui-v2 0.0.1 → 0.0.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 (178) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/McBottomLoader-DP6VeK0N.js +4 -0
  3. package/dist/McOverlay-BZft7En3.js +4 -0
  4. package/dist/assets/tokens/json/animations.json.d.ts +8 -0
  5. package/dist/assets/tokens/json/border-radius.json.d.ts +26 -0
  6. package/dist/assets/tokens/json/box-shadows.json.d.ts +26 -0
  7. package/dist/assets/tokens/json/colors.json.d.ts +73 -0
  8. package/dist/assets/tokens/json/durations.json.d.ts +12 -0
  9. package/dist/assets/tokens/json/easings.json.d.ts +5 -0
  10. package/dist/assets/tokens/json/font-families.json.d.ts +6 -0
  11. package/dist/assets/tokens/json/font-sizes.json.d.ts +20 -0
  12. package/dist/assets/tokens/json/font-weights.json.d.ts +14 -0
  13. package/dist/assets/tokens/json/gradients.json.d.ts +15 -0
  14. package/dist/assets/tokens/json/index.d.ts +18 -0
  15. package/dist/assets/tokens/json/letter-spacings.json.d.ts +6 -0
  16. package/dist/assets/tokens/json/line-heights.json.d.ts +20 -0
  17. package/dist/assets/tokens/json/media-queries.json.d.ts +28 -0
  18. package/dist/assets/tokens/json/opacities.json.d.ts +7 -0
  19. package/dist/assets/tokens/json/sizes.json.d.ts +44 -0
  20. package/dist/assets/tokens/json/spacings.json.d.ts +36 -0
  21. package/dist/assets/tokens/json/z-indexes.json.d.ts +14 -0
  22. package/dist/components/elements/McAvatar/McAvatar.vue.d.ts +156 -0
  23. package/dist/components/elements/McBadge/McBadge.vue.d.ts +53 -0
  24. package/dist/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +14 -0
  25. package/dist/components/elements/McButton/McButton.vue.d.ts +438 -0
  26. package/dist/components/elements/McChip/McChip.vue.d.ts +122 -0
  27. package/dist/components/elements/McCropper/McCropper.vue.d.ts +28 -0
  28. package/dist/components/elements/McDatepicker/McDatepicker.vue.d.ts +12 -0
  29. package/dist/components/elements/McDraggable/McDraggable.vue.d.ts +78 -0
  30. package/dist/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts +11 -0
  31. package/dist/components/elements/McFieldRadio/McFieldRadio.vue.d.ts +189 -0
  32. package/dist/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts +10 -0
  33. package/dist/components/elements/McFieldRange/McFieldRange.vue.d.ts +216 -0
  34. package/dist/components/elements/McFieldSelect/McFieldSelect.vue.d.ts +529 -0
  35. package/dist/components/elements/McFieldText/McFieldText.vue.d.ts +461 -0
  36. package/dist/components/elements/McFieldToggle/McFieldToggle.vue.d.ts +158 -0
  37. package/dist/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts +58 -0
  38. package/dist/components/elements/McNodata/McNoData.vue.d.ts +110 -0
  39. package/dist/components/elements/McNotification/McNotification.vue.d.ts +124 -0
  40. package/dist/components/elements/McProgress/McProgress.vue.d.ts +135 -0
  41. package/dist/components/elements/McSeparator/McSeparator.vue.d.ts +133 -0
  42. package/dist/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +68 -0
  43. package/dist/components/elements/McStack/McStack.vue.d.ts +24 -0
  44. package/dist/components/elements/McSvgIcon/McSvgIcon.vue.d.ts +119 -0
  45. package/dist/components/elements/McTitle/McTitle.vue.d.ts +201 -0
  46. package/dist/components/elements/McTooltip/McTooltip.vue.d.ts +104 -0
  47. package/dist/components/index.d.ts +62 -0
  48. package/dist/components/patterns/McAccordion/McAccordion.vue.d.ts +28 -0
  49. package/dist/components/patterns/McCell/McCell.vue.d.ts +76 -0
  50. package/dist/components/patterns/McCollapse/McCollapse.vue.d.ts +67 -0
  51. package/dist/components/patterns/McDropdown/McDropdown.vue.d.ts +122 -0
  52. package/dist/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +22 -0
  53. package/dist/components/patterns/McFilter/McFilter.vue.d.ts +152 -0
  54. package/dist/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts +55 -0
  55. package/dist/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +85 -0
  56. package/dist/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts +66 -0
  57. package/dist/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts +57 -0
  58. package/dist/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts +74 -0
  59. package/dist/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts +57 -0
  60. package/dist/components/patterns/McGridCol/McGridCol.vue.d.ts +107 -0
  61. package/dist/components/patterns/McGridRow/McGridRow.vue.d.ts +104 -0
  62. package/dist/components/patterns/McOverlay/McOverlay.vue.d.ts +24 -0
  63. package/dist/components/patterns/McPreview/McPreview.vue.d.ts +33 -0
  64. package/dist/components/patterns/McSideBar/McSideBar.vue.d.ts +292 -0
  65. package/dist/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts +67 -0
  66. package/dist/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +203 -0
  67. package/dist/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts +94 -0
  68. package/dist/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +123 -0
  69. package/dist/components/patterns/McTab/McTab.vue.d.ts +224 -0
  70. package/dist/components/patterns/McTabs/McTabs.vue.d.ts +148 -0
  71. package/dist/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts +127 -0
  72. package/dist/components/templates/McDrawer/McDrawer.vue.d.ts +104 -0
  73. package/dist/components/templates/McDrawer/McDrawerContainer.vue.d.ts +31 -0
  74. package/dist/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts +39 -0
  75. package/dist/components/templates/McModal/McModal.vue.d.ts +232 -0
  76. package/dist/components/templates/McModal/McModalContainer.vue.d.ts +31 -0
  77. package/dist/components/templates/McTable/McTable/McTable.vue.d.ts +295 -0
  78. package/dist/components/templates/McTable/McTableCard/McTableCard.vue.d.ts +128 -0
  79. package/dist/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts +32 -0
  80. package/dist/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +18 -0
  81. package/dist/components/templates/McTable/McTableSort/McTableSort.vue.d.ts +29 -0
  82. package/dist/components/templates/McTopBar/McTopBar.vue.d.ts +85 -0
  83. package/dist/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts +79 -0
  84. package/dist/composables/index.d.ts +8 -0
  85. package/dist/composables/useDrawer.d.ts +6 -0
  86. package/dist/composables/useEncodeDecode.d.ts +5 -0
  87. package/dist/composables/useFieldErrors.d.ts +5 -0
  88. package/dist/composables/useHelper.d.ts +17 -0
  89. package/dist/composables/useModal.d.ts +5 -0
  90. package/dist/composables/useRandomNumber.d.ts +4 -0
  91. package/dist/composables/useTooltip.d.ts +8 -0
  92. package/dist/consts/table.d.ts +6 -0
  93. package/dist/enums/Cell.d.ts +5 -0
  94. package/dist/enums/Chip.d.ts +9 -0
  95. package/dist/enums/Datepicker.d.ts +37 -0
  96. package/dist/enums/Drawer.d.ts +4 -0
  97. package/dist/enums/Dropdown.d.ts +10 -0
  98. package/dist/enums/Filter.d.ts +12 -0
  99. package/dist/enums/Grid.d.ts +21 -0
  100. package/dist/enums/Input.d.ts +18 -0
  101. package/dist/enums/Modal.d.ts +4 -0
  102. package/dist/enums/Preview.d.ts +5 -0
  103. package/dist/enums/Radio.d.ts +4 -0
  104. package/dist/enums/RadioGroup.d.ts +4 -0
  105. package/dist/enums/Select.d.ts +9 -0
  106. package/dist/enums/Sidebar.d.ts +4 -0
  107. package/dist/enums/Tab.d.ts +5 -0
  108. package/dist/enums/Title.d.ts +19 -0
  109. package/dist/enums/Tooltip.d.ts +13 -0
  110. package/dist/enums/index.d.ts +21 -0
  111. package/dist/enums/ui/Alignment.d.ts +5 -0
  112. package/dist/enums/ui/Button.d.ts +21 -0
  113. package/dist/enums/ui/Directions.d.ts +4 -0
  114. package/dist/enums/ui/Weights.d.ts +6 -0
  115. package/dist/{es-ZT7NtsIJ.js → es-CKatgsl2.js} +1 -1
  116. package/dist/{index-BNI8_4VG.js → index-DUxSE0Pp.js} +11991 -9401
  117. package/dist/index.d.ts +9 -0
  118. package/dist/{mediacube-ui-v2.es.js → index.es.js} +1 -1
  119. package/dist/index.umd.js +38 -0
  120. package/dist/main.d.ts +0 -0
  121. package/dist/mocks/authUser.d.ts +132 -0
  122. package/dist/mocks/categories.d.ts +8 -0
  123. package/dist/mocks/filterMocks.d.ts +17 -0
  124. package/dist/mocks/icons.json.d.ts +3 -0
  125. package/dist/mocks/menuLangs.d.ts +5 -0
  126. package/dist/mocks/sidebar.d.ts +9 -0
  127. package/dist/mocks/tableData.d.ts +5 -0
  128. package/dist/no_table_data.png +0 -0
  129. package/dist/no_user.png +0 -0
  130. package/dist/{pt-DABURhaw.js → pt-CEavNnlV.js} +1 -1
  131. package/dist/{ru-DrTReLfa.js → ru-DX_6fNBy.js} +1 -1
  132. package/dist/style.css +1 -1
  133. package/dist/{th-CxdSf7Vb.js → th-DGTC0w1I.js} +1 -1
  134. package/dist/types/IButton.d.ts +40 -0
  135. package/dist/types/ICell.d.ts +4 -0
  136. package/dist/types/IChip.d.ts +8 -0
  137. package/dist/types/ICollapse.d.ts +14 -0
  138. package/dist/types/IDatepicker.d.ts +30 -0
  139. package/dist/types/IDirections.d.ts +4 -0
  140. package/dist/types/IDrawer.d.ts +25 -0
  141. package/dist/types/IDropdown.d.ts +5 -0
  142. package/dist/types/IFilter.d.ts +152 -0
  143. package/dist/types/IGrid.d.ts +4 -0
  144. package/dist/types/IInput.d.ts +5 -0
  145. package/dist/types/IModal.d.ts +27 -0
  146. package/dist/types/IPreview.d.ts +4 -0
  147. package/dist/types/IRadio.d.ts +4 -0
  148. package/dist/types/IRadioGroup.d.ts +9 -0
  149. package/dist/types/IRoute.d.ts +16 -0
  150. package/dist/types/ISelect.d.ts +15 -0
  151. package/dist/types/ISideBar.d.ts +73 -0
  152. package/dist/types/ITable.d.ts +69 -0
  153. package/dist/types/ITabs.d.ts +31 -0
  154. package/dist/types/ITitle.d.ts +5 -0
  155. package/dist/types/ITooltip.d.ts +26 -0
  156. package/dist/types/index.d.ts +36 -0
  157. package/dist/types/styles/Alignment.d.ts +2 -0
  158. package/dist/types/styles/AvatarSizes.d.ts +22 -0
  159. package/dist/types/styles/Colors.d.ts +73 -0
  160. package/dist/types/styles/Durations.d.ts +13 -0
  161. package/dist/types/styles/FontSizes.d.ts +20 -0
  162. package/dist/types/styles/FontWeights.d.ts +15 -0
  163. package/dist/types/styles/Grid.d.ts +4 -0
  164. package/dist/types/styles/Icons.d.ts +447 -0
  165. package/dist/types/styles/LineHeights.d.ts +20 -0
  166. package/dist/types/styles/MediaQueries.d.ts +26 -0
  167. package/dist/types/styles/Radiuses.d.ts +26 -0
  168. package/dist/types/styles/Sizes.d.ts +35 -0
  169. package/dist/types/styles/Spaces.d.ts +35 -0
  170. package/dist/types/styles/Weights.d.ts +2 -0
  171. package/dist/utils/dayjs.d.ts +175 -0
  172. package/dist/utils/mcGridColAdaptiveProps.d.ts +10 -0
  173. package/dist/utils/mcTitleAdaptiveProps.d.ts +10 -0
  174. package/dist/{vi-DiQKH9bm.js → vi-Pc8KAwzf.js} +1 -1
  175. package/package.json +3 -1
  176. package/dist/McBottomLoader-DXamMgue.js +0 -4
  177. package/dist/McOverlay-xiwfcXWp.js +0 -4
  178. package/dist/mediacube-ui-v2.umd.js +0 -38
@@ -1,4 +1,4 @@
1
- import { g as i, d as l, c as f } from "./index-BNI8_4VG.js";
1
+ import { g as i, d as l, c as f } from "./index-DUxSE0Pp.js";
2
2
  function m(s, n) {
3
3
  for (var _ = 0; _ < n.length; _++) {
4
4
  const t = n[_];
@@ -0,0 +1,40 @@
1
+ import { ButtonModifiers, ButtonSize, ButtonType } from '../enums/ui/Button';
2
+ import { ColorsUnion, ColorTypes } from './styles/Colors';
3
+ import { HorizontalAlignmentUnion } from './styles/Alignment';
4
+ import { WeightsUnion } from './styles/Weights';
5
+ import { TooltipPositionsUnion } from './ITooltip';
6
+ export interface IButton {
7
+ to?: string;
8
+ href?: string;
9
+ nuxt?: boolean;
10
+ disabled?: boolean;
11
+ inactive?: boolean;
12
+ loading?: boolean;
13
+ iconLoading?: boolean;
14
+ type?: ButtonTypeUnion;
15
+ variation?: ButtonVariationUnion;
16
+ size?: ButtonSizeUnion;
17
+ shadow?: boolean;
18
+ rounded?: boolean;
19
+ semiRounded?: boolean;
20
+ textAlign?: HorizontalAlignmentUnion;
21
+ fullWidth?: boolean;
22
+ isActive?: boolean;
23
+ exact?: boolean;
24
+ uppercase?: boolean;
25
+ defaultTag?: string;
26
+ secondaryColor?: ColorsUnion;
27
+ underlineLink?: boolean;
28
+ bgFlat?: boolean;
29
+ weight?: WeightsUnion;
30
+ tooltip?: string;
31
+ tooltipPlacement?: TooltipPositionsUnion;
32
+ tabindex?: string | number;
33
+ }
34
+ export interface IButtonStyleOptions {
35
+ color: string;
36
+ type: string;
37
+ }
38
+ export type ButtonTypeUnion = (typeof ButtonType)[keyof typeof ButtonType];
39
+ export type ButtonSizeUnion = (typeof ButtonSize)[keyof typeof ButtonSize];
40
+ export type ButtonVariationUnion = ColorTypes | `${ColorTypes}-${ButtonModifiers.Link}` | `${ColorTypes}-${ButtonModifiers.Flat}` | `${ColorTypes}-${ButtonModifiers.Outline}` | `${ColorTypes}-${ButtonModifiers.Invert}`;
@@ -0,0 +1,4 @@
1
+ import { CellSizes } from '../enums/Cell';
2
+ export interface ICell {
3
+ }
4
+ export type CellSizesUnion = (typeof CellSizes)[keyof typeof CellSizes];
@@ -0,0 +1,8 @@
1
+ import { ChipModifiers, ChipSize } from '../enums/Chip';
2
+ import { ColorTypes } from './styles/Colors';
3
+ export interface IChipStyleOptions {
4
+ color: string;
5
+ variation: string;
6
+ }
7
+ export type ChipSizeUnion = (typeof ChipSize)[keyof typeof ChipSize];
8
+ export type ChipVariationUnion = ColorTypes | `${ColorTypes}-${ChipModifiers.Invert}` | `${ColorTypes}-${ChipModifiers.Outline}`;
@@ -0,0 +1,14 @@
1
+ export interface ICollapse {
2
+ isDisabled: boolean;
3
+ border: boolean;
4
+ icon: boolean;
5
+ id: string | number;
6
+ isCollapsed: boolean;
7
+ open: Function;
8
+ close: Function;
9
+ toggle: Function;
10
+ }
11
+ export interface ICollapseEmitPayload {
12
+ value: boolean;
13
+ component: ICollapse;
14
+ }
@@ -0,0 +1,30 @@
1
+ import { DatepickerFormat, DatepickerFormatsVariations, DatepickerOutputFormat, DatepickerTypes, DayjsFormat } from '../enums/Datepicker';
2
+ export interface IDatepickerPlaceholders {
3
+ week?: string;
4
+ month?: string;
5
+ quarter?: string;
6
+ year?: string;
7
+ confirm?: string;
8
+ }
9
+ export interface IDatepickerPresetPeriod {
10
+ start_date: string;
11
+ end_date: string;
12
+ }
13
+ export interface IDatepickerPreset {
14
+ title: string;
15
+ period: IDatepickerPresetPeriod[];
16
+ }
17
+ export type DatePickerValue = null | string | string[];
18
+ export type DatepickerFormatsObjectFormat = {
19
+ [DatepickerFormatsVariations.Picker]: DatepickerFormat;
20
+ [DatepickerFormatsVariations.Dayjs]: DayjsFormat;
21
+ [DatepickerFormatsVariations.Output]: DatepickerOutputFormat;
22
+ };
23
+ export type DatepickerFormatsObject = {
24
+ [key in DatepickerTypes]: DatepickerFormatsObjectFormat;
25
+ };
26
+ export type DatepickerTypesUnion = (typeof DatepickerTypes)[keyof typeof DatepickerTypes];
27
+ export type DatepickerFormatsVariationsUnion = (typeof DatepickerFormatsVariations)[keyof typeof DatepickerFormatsVariations];
28
+ export type DatepickerFormatUnion = (typeof DatepickerFormat)[keyof typeof DatepickerFormat];
29
+ export type DayjsFormatUnion = (typeof DayjsFormat)[keyof typeof DayjsFormat];
30
+ export type DatepickerOutputFormatUnion = (typeof DatepickerOutputFormat)[keyof typeof DatepickerOutputFormat];
@@ -0,0 +1,4 @@
1
+ import { Directions } from '../enums/ui/Directions';
2
+ export interface IDirections {
3
+ }
4
+ export type DirectionsUnion = (typeof Directions)[keyof typeof Directions];
@@ -0,0 +1,25 @@
1
+ import { IconsListUnion } from './styles/Icons';
2
+ import { DrawerPositions } from '../enums/Drawer';
3
+ export interface IDrawerServiceState {
4
+ isOpen: boolean;
5
+ closeServiceState: Function;
6
+ }
7
+ export interface IDrawerProps {
8
+ duration?: number;
9
+ width?: number;
10
+ position?: DrawerPositionsUnion;
11
+ title?: string;
12
+ titleEllipsis?: boolean;
13
+ closeVisible?: boolean;
14
+ iconClose?: IconsListUnion;
15
+ }
16
+ export interface IDrawerState {
17
+ component: boolean;
18
+ drawerProps?: IDrawerProps;
19
+ componentName?: string;
20
+ componentProps?: object;
21
+ modelValue?: boolean;
22
+ id: string | number;
23
+ close: Function;
24
+ }
25
+ export type DrawerPositionsUnion = (typeof DrawerPositions)[keyof typeof DrawerPositions];
@@ -0,0 +1,5 @@
1
+ import { DropdownListPositions, DropdownPositions } from '../enums/Dropdown';
2
+ export interface IDropdown {
3
+ }
4
+ export type DropdownListPositionsUnion = (typeof DropdownListPositions)[keyof typeof DropdownListPositions];
5
+ export type DropdownPositionsUnion = (typeof DropdownPositions)[keyof typeof DropdownPositions];
@@ -0,0 +1,152 @@
1
+ import { FilterRelations, FilterTypes } from '../enums/Filter';
2
+ export interface IBaseFilter {
3
+ name: string;
4
+ value: string;
5
+ type: FilterTypes;
6
+ placeholder?: string;
7
+ }
8
+ export interface IFastFilter extends IBaseFilter {
9
+ type: FilterTypes.Fast;
10
+ relation: FilterRelations;
11
+ default: string | number;
12
+ description: string;
13
+ }
14
+ export interface IRangeFilter extends IBaseFilter {
15
+ type: FilterTypes.Range;
16
+ min: number;
17
+ max: number;
18
+ }
19
+ export interface IRelationOptionsFilter extends IBaseFilter {
20
+ type: FilterTypes.Relation;
21
+ is_text: boolean;
22
+ options: FilterOption[];
23
+ getAjaxOne?: never;
24
+ getAjaxOptions?: never;
25
+ }
26
+ export interface IRelationApiFilter extends IBaseFilter {
27
+ type: FilterTypes.Relation;
28
+ is_text: boolean;
29
+ options?: never;
30
+ getAjaxOne: Function;
31
+ getAjaxOptions: Function;
32
+ }
33
+ export type FilterOption = Record<string, string | number>;
34
+ export type IRelationFilter = IRelationApiFilter | IRelationOptionsFilter;
35
+ export type IFilter = IFastFilter | IRangeFilter | IRelationFilter | IBaseFilter;
36
+ export interface IFilterBaseTag {
37
+ id: string | number;
38
+ title: string;
39
+ description?: string;
40
+ category: string;
41
+ categoryName: string;
42
+ closable?: boolean;
43
+ type: FilterTypes;
44
+ }
45
+ export interface IFilterRelationTag extends IFilterBaseTag {
46
+ value: string | number;
47
+ relationKey: FilterRelations;
48
+ }
49
+ export interface IFilterRangeTag extends IFilterBaseTag {
50
+ value: IFilterRangeValue;
51
+ relationKey?: never;
52
+ }
53
+ export interface IFilterDateTag extends IFilterBaseTag {
54
+ value: IFilterDateValue;
55
+ relationKey?: never;
56
+ }
57
+ export interface IFilterTextTag extends IFilterBaseTag {
58
+ value: string | number;
59
+ relationKey?: never;
60
+ }
61
+ export type IFilterTag = IFilterRelationTag | IFilterRangeTag | IFilterDateTag | IFilterTextTag;
62
+ export type DateFilterValue = string | null;
63
+ export type RangeFilterValue = string | number | null;
64
+ export interface IFilterRangeValue {
65
+ more: RangeFilterValue;
66
+ less: RangeFilterValue;
67
+ }
68
+ export interface IFilterRangeName {
69
+ more: RangeFilterValue;
70
+ less: RangeFilterValue;
71
+ }
72
+ export interface IFilterDateValue {
73
+ more: DateFilterValue;
74
+ less: DateFilterValue;
75
+ }
76
+ export interface IFilterDateName {
77
+ more: DateFilterValue;
78
+ less: DateFilterValue;
79
+ }
80
+ export type FilterRelationValue = {
81
+ [FilterRelations.Exists]?: string | number | null;
82
+ [FilterRelations.Is]?: string[];
83
+ [FilterRelations.IsNot]?: string[];
84
+ };
85
+ export type FilterRelationName = {
86
+ [FilterRelations.Exists]?: string | null;
87
+ [FilterRelations.Is]?: Record<string, string>;
88
+ [FilterRelations.IsNot]?: Record<string, string>;
89
+ };
90
+ export type FilterTextValue = string | number;
91
+ export type FilterTextName = string | number;
92
+ export type FilterMoreLessConditionName = IFilterRangeName | IFilterDateName;
93
+ export type FilterConditionValue = IFilterRangeValue | IFilterDateValue | FilterRelationValue | FilterTextValue;
94
+ export type FilterConditionName = FilterMoreLessConditionName | FilterRelationName | FilterTextName;
95
+ export type IFilterValueFilter = Record<string, FilterConditionValue>;
96
+ export type IFilterValueFilterName = string;
97
+ export type IFilterParsedValueFilter = Record<string, FilterConditionValue>;
98
+ export type IFilterParsedValueFilterName = Record<string, FilterConditionName>;
99
+ export interface IFilterValue {
100
+ filter: IFilterValueFilter;
101
+ filter_name: IFilterValueFilterName;
102
+ }
103
+ export interface IFilterParsedValue {
104
+ filter: IFilterParsedValueFilter;
105
+ filter_name: IFilterParsedValueFilterName;
106
+ }
107
+ export interface IFilterPreset extends IFilterValue {
108
+ name: string;
109
+ }
110
+ export interface IFilterCondition {
111
+ value: FilterConditionValue;
112
+ valueName?: FilterConditionName;
113
+ }
114
+ export interface IFilterPlaceholders {
115
+ main_tooltip: string;
116
+ value: string;
117
+ condition: string;
118
+ create_preset: string;
119
+ fast_filters: string;
120
+ added_filters: string;
121
+ enter_preset_name: string;
122
+ enter_preset_tooltip: string;
123
+ from: string;
124
+ to: string;
125
+ enter: string;
126
+ choose: string;
127
+ actions: {
128
+ add: string;
129
+ save: string;
130
+ clear: string;
131
+ create: string;
132
+ delete_preset: string;
133
+ is: string;
134
+ is_not: string;
135
+ empty: string;
136
+ confirm: string;
137
+ };
138
+ calendar: {
139
+ week: string;
140
+ month: string;
141
+ quarter: string;
142
+ year: string;
143
+ confirm: string;
144
+ };
145
+ messages: {
146
+ same_filter: string;
147
+ same_preset_name: string;
148
+ accidentally_cleared: string;
149
+ accidentally_deleted: string;
150
+ more_than: string;
151
+ };
152
+ }
@@ -0,0 +1,4 @@
1
+ export interface IGridGutters {
2
+ gutterX: number;
3
+ gutterY: number;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { InputTypes } from '../enums/Input';
2
+ export interface IInput {
3
+ }
4
+ export type InputValue = string | number | null;
5
+ export type InputTypesUnion = (typeof InputTypes)[keyof typeof InputTypes];
@@ -0,0 +1,27 @@
1
+ import { HorizontalAlignment } from '../enums';
2
+ import { ModalVariation } from '../enums/Modal';
3
+ export interface IModalServiceState {
4
+ isOpen: boolean;
5
+ closeServiceState: Function;
6
+ }
7
+ export interface IModalProps {
8
+ name: string;
9
+ maxWidth: number;
10
+ duration: number;
11
+ closeVisible: boolean;
12
+ clickBackdropToClose: boolean;
13
+ arrowVisible: boolean;
14
+ scrollableContent: boolean;
15
+ separators: boolean;
16
+ headerAlign: HorizontalAlignment;
17
+ topPadding: boolean;
18
+ variation: ModalVariation;
19
+ }
20
+ export interface IModalState {
21
+ component: boolean;
22
+ componentName?: string;
23
+ componentProps?: object;
24
+ modelValue?: boolean;
25
+ id: string | number;
26
+ close: Function;
27
+ }
@@ -0,0 +1,4 @@
1
+ import { PreviewSizes } from '../enums/Preview';
2
+ export interface IPreview {
3
+ }
4
+ export type PreviewSizesUnion = (typeof PreviewSizes)[keyof typeof PreviewSizes];
@@ -0,0 +1,4 @@
1
+ import { RadioVariation } from '../enums/Radio';
2
+ export interface IRadio {
3
+ }
4
+ export type RadioVariationUnion = (typeof RadioVariation)[keyof typeof RadioVariation];
@@ -0,0 +1,9 @@
1
+ import { RadioGroupDirection } from '../enums/RadioGroup';
2
+ export interface IRadioGroupOption {
3
+ label: string | number;
4
+ value: string | number;
5
+ helpText?: string;
6
+ disabled?: boolean;
7
+ }
8
+ export type IRadioGroupOptions = string[] | number[] | IRadioGroupOption[];
9
+ export type RadioGroupDirectionUnion = (typeof RadioGroupDirection)[keyof typeof RadioGroupDirection];
@@ -0,0 +1,16 @@
1
+ export interface IRouteWithName {
2
+ name: string;
3
+ path?: never;
4
+ }
5
+ export interface IRouteWithPath {
6
+ path: string;
7
+ name?: never;
8
+ }
9
+ export type IRoute = (IRouteWithName | IRouteWithPath) & {
10
+ params?: {
11
+ [key: string]: any;
12
+ };
13
+ query?: {
14
+ [key: string]: any;
15
+ };
16
+ };
@@ -0,0 +1,15 @@
1
+ import { SelectGroupKeys, SelectListDirections } from '../enums/Select';
2
+ export interface ISelectOption {
3
+ name?: string;
4
+ value?: string | number;
5
+ text?: string;
6
+ icon?: string;
7
+ [key: string]: any;
8
+ }
9
+ export interface ISelectGroupOption {
10
+ [SelectGroupKeys.Label]: string;
11
+ [SelectGroupKeys.Values]: ISelectOption[];
12
+ }
13
+ export type ISelectOptions = ISelectOption[];
14
+ export type ISelectGroupOptions = ISelectGroupOption[];
15
+ export type SelectListDirectionsUnion = (typeof SelectListDirections)[keyof typeof SelectListDirections];
@@ -0,0 +1,73 @@
1
+ import { IconsListUnion } from './styles/Icons';
2
+ import { ButtonVariationUnion } from './IButton';
3
+ import { SidebarTheme } from '../enums';
4
+ import { ColorTypes } from './styles/Colors';
5
+ import { TitleVariationsUnion } from './ITitle';
6
+ export interface ISideBar {
7
+ logoTitle: string;
8
+ logoTitleVariation: TitleVariationsUnion;
9
+ logoSrc: string;
10
+ logoIcon: IconsListUnion;
11
+ menuMainTitle: string;
12
+ menuMain: ISideBarMenuItem[];
13
+ counts: Record<string, number | null>;
14
+ menuApps: ISideBarApp[];
15
+ chatraConfig: ISideBarChatra;
16
+ hideText: string;
17
+ compact: boolean;
18
+ variable: SidebarTheme;
19
+ width: string;
20
+ compactWidth: string;
21
+ absoluteBreakpoint: number;
22
+ hiddenBreakpoint: number;
23
+ }
24
+ export interface ISideBarChatra {
25
+ title: string;
26
+ id: string;
27
+ }
28
+ export interface ISideBarLang {
29
+ name: 'en' | 'ru' | 'ar' | 'es' | 'pt' | string;
30
+ href: string;
31
+ }
32
+ export interface ISideBarApp {
33
+ name: string;
34
+ icon: IconsListUnion | string;
35
+ href: string;
36
+ isVisible?: boolean;
37
+ exact: boolean;
38
+ isActive: boolean;
39
+ }
40
+ export interface ISideBarLink {
41
+ name: string;
42
+ icon: IconsListUnion;
43
+ iconColor?: ColorTypes;
44
+ href: string;
45
+ to: string;
46
+ info?: string | number | null;
47
+ count_key: string;
48
+ }
49
+ export interface ISideBarMenuItem extends ISideBarLink {
50
+ menu?: ISideBarLink[];
51
+ }
52
+ export interface ISideBarMenuItemEnrichment extends ISideBarMenuItem {
53
+ id: number;
54
+ active: Function;
55
+ indicator: Function;
56
+ open: boolean;
57
+ }
58
+ export interface ISidebarThemeConfig {
59
+ mode: SidebarTheme;
60
+ className: string;
61
+ dropdownActivator: ButtonVariationUnion;
62
+ mainMenuLinks: {
63
+ variable: ButtonVariationUnion;
64
+ secondaryColor: ColorTypes;
65
+ };
66
+ closeButton: {
67
+ variable: ButtonVariationUnion;
68
+ secondaryColor: ColorTypes;
69
+ };
70
+ }
71
+ export interface ISidebarThemeConfigProvide {
72
+ currentThemeConfig: ISidebarThemeConfig;
73
+ }
@@ -0,0 +1,69 @@
1
+ import { HorizontalAlignmentUnion } from './styles/Alignment';
2
+ import { IconsListUnion } from './styles/Icons';
3
+ export type SortDirection = null | 'asc' | 'desc';
4
+ export interface ITableColumnBase {
5
+ header: string | number;
6
+ field: string;
7
+ total?: number;
8
+ sortable?: boolean;
9
+ align?: HorizontalAlignmentUnion;
10
+ }
11
+ export interface ITableColumnWidth extends ITableColumnBase {
12
+ width: number;
13
+ minWidth?: never;
14
+ }
15
+ export interface ITableColumnMinWidth extends ITableColumnBase {
16
+ minWidth: number;
17
+ width?: never;
18
+ }
19
+ export type ITableColumn = ITableColumnWidth | ITableColumnMinWidth;
20
+ export type ITableColumnEnriched = ITableColumn & {
21
+ fixedFirst: boolean;
22
+ fixedLast: boolean;
23
+ style?: {
24
+ [key: string]: undefined | string | number;
25
+ };
26
+ class?: {
27
+ [key: string]: boolean;
28
+ };
29
+ };
30
+ export type ITableTotals<T extends ITableColumnBase> = {
31
+ [key in T['field']]?: string | number;
32
+ };
33
+ export type ITableData = any[];
34
+ export interface ITableSort {
35
+ sort_column: string;
36
+ sort_direction: SortDirection;
37
+ }
38
+ export interface ITableSortState {
39
+ direction: SortDirection;
40
+ next_direction: SortDirection;
41
+ icon: IconsListUnion;
42
+ }
43
+ export interface ITablePlaceholders {
44
+ no_data: string;
45
+ loading: string;
46
+ all_loaded: string;
47
+ total: string;
48
+ }
49
+ export interface ITableCardProps {
50
+ id?: string | number;
51
+ tableColumns: ITableColumn[];
52
+ tableData: ITableData;
53
+ tableTotals: ITableTotals<ITableColumn>;
54
+ tableSort: ITableSort;
55
+ tableHeaderRowHeight: number;
56
+ tableFooterRowHeight: number;
57
+ tableFixedFirstColumn: boolean;
58
+ tableCardProps: Record<any, any>;
59
+ footerBlur?: boolean;
60
+ }
61
+ export interface ITableCardOpenState {
62
+ state: true;
63
+ id: string | number | undefined;
64
+ }
65
+ export interface ITableCardCloseState {
66
+ state: false;
67
+ id?: never;
68
+ }
69
+ export type TableCardState = ITableCardOpenState | ITableCardCloseState;
@@ -0,0 +1,31 @@
1
+ import { IRoute } from './IRoute';
2
+ import { ColorTypes } from './styles/Colors';
3
+ import { IconsListUnion } from './styles/Icons';
4
+ import { TabVariations } from '../enums/Tab';
5
+ export interface ITab {
6
+ isActive: boolean;
7
+ isVisible: boolean;
8
+ computedId: string;
9
+ hash: string;
10
+ hasAppendCount: boolean;
11
+ appendCountStyles: string;
12
+ header: string;
13
+ href?: string;
14
+ to?: IRoute;
15
+ id: string;
16
+ name: string;
17
+ iconAppendColor: ColorTypes;
18
+ iconPrependColor: ColorTypes;
19
+ iconAppend: IconsListUnion;
20
+ iconPrepend: IconsListUnion;
21
+ visible: boolean;
22
+ isDisabled: boolean;
23
+ appendCountColor: string;
24
+ appendCount: string | number;
25
+ suffix: string;
26
+ prefix: string;
27
+ hideTab: Function;
28
+ showTab: Function;
29
+ onClick: Function | unknown;
30
+ }
31
+ export type TabVariationUnion = (typeof TabVariations)[keyof typeof TabVariations];
@@ -0,0 +1,5 @@
1
+ import { TitleSizes, TitleVariations } from '../enums/Title';
2
+ export interface ITitle {
3
+ }
4
+ export type TitleSizesUnion = (typeof TitleSizes)[keyof typeof TitleSizes];
5
+ export type TitleVariationsUnion = (typeof TitleVariations)[keyof typeof TitleVariations];
@@ -0,0 +1,26 @@
1
+ import { TooltipPositions, TooltipSizes } from '../enums/Tooltip';
2
+ export interface ITooltip {
3
+ content?: string;
4
+ size?: TooltipSizes;
5
+ placement?: TooltipPositions;
6
+ arrow?: boolean;
7
+ color?: string | undefined | null;
8
+ textColor?: string | undefined | null;
9
+ }
10
+ export interface ITooltipStyles {
11
+ top: number | null;
12
+ left: number | null;
13
+ translate: string;
14
+ }
15
+ export interface ITooltipInstance extends ITooltip {
16
+ target: HTMLElement;
17
+ id: number;
18
+ visible: boolean;
19
+ position: ITooltipStyles;
20
+ updateTooltipPosition: Function;
21
+ destroy: Function;
22
+ showTooltip: Function;
23
+ hideTooltip: Function;
24
+ }
25
+ export type TooltipPositionsUnion = (typeof TooltipPositions)[keyof typeof TooltipPositions];
26
+ export type TooltipSizesUnion = (typeof TooltipSizes)[keyof typeof TooltipSizes];
@@ -0,0 +1,36 @@
1
+ export * from './IButton';
2
+ export * from './ICell';
3
+ export * from './IChip';
4
+ export * from './ICollapse';
5
+ export * from './IDatepicker';
6
+ export * from './IDirections';
7
+ export * from './IDrawer';
8
+ export * from './IDropdown';
9
+ export * from './IFilter';
10
+ export * from './IGrid';
11
+ export * from './IInput';
12
+ export * from './IModal';
13
+ export * from './IPreview';
14
+ export * from './IRadio';
15
+ export * from './IRadioGroup';
16
+ export * from './IRoute';
17
+ export * from './ISelect';
18
+ export * from './ISideBar';
19
+ export * from './ITable';
20
+ export * from './ITabs';
21
+ export * from './ITitle';
22
+ export * from './ITooltip';
23
+ export * from './styles/Alignment';
24
+ export * from './styles/AvatarSizes';
25
+ export * from './styles/Colors';
26
+ export * from './styles/Durations';
27
+ export * from './styles/FontSizes';
28
+ export * from './styles/FontWeights';
29
+ export * from './styles/Grid';
30
+ export * from './styles/Icons';
31
+ export * from './styles/LineHeights';
32
+ export * from './styles/MediaQueries';
33
+ export * from './styles/Radiuses';
34
+ export * from './styles/Sizes';
35
+ export * from './styles/Spaces';
36
+ export * from './styles/Weights';
@@ -0,0 +1,2 @@
1
+ import { HorizontalAlignment } from '../../enums/ui/Alignment';
2
+ export type HorizontalAlignmentUnion = (typeof HorizontalAlignment)[keyof typeof HorizontalAlignment];
@@ -0,0 +1,22 @@
1
+ export declare const AvatarSizes: {
2
+ "300": string;
3
+ "400": string;
4
+ "500": string;
5
+ "600": string;
6
+ "700": string;
7
+ "800": string;
8
+ "900": string;
9
+ "1000": string;
10
+ };
11
+ declare const modes: {
12
+ readonly "300": string;
13
+ readonly "400": string;
14
+ readonly "500": string;
15
+ readonly "600": string;
16
+ readonly "700": string;
17
+ readonly "800": string;
18
+ readonly "900": string;
19
+ readonly "1000": string;
20
+ };
21
+ export type AvatarSizeTypes = keyof typeof modes;
22
+ export {};