@uzum-tech/ui 1.14.3 → 1.14.5
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.
- package/dist/index.js +22847 -22848
- package/dist/index.prod.js +3 -3
- package/es/_internal/select-menu/src/SelectOption.d.ts +3 -3
- package/es/_internal/select-menu/src/SelectOption.js +23 -20
- package/es/_internal/select-menu/src/styles/index.cssr.js +5 -4
- package/es/_internal/selection/src/styles/index.cssr.js +3 -0
- package/es/carousel/src/Carousel.d.ts +8 -3
- package/es/carousel/src/Carousel.js +42 -26
- package/es/carousel/src/CarouselArrow.js +1 -1
- package/es/carousel/src/CarouselContext.d.ts +2 -2
- package/es/carousel/src/CarouselContext.js +4 -4
- package/es/carousel/src/CarouselDots.js +1 -1
- package/es/carousel/src/CarouselItem.d.ts +1 -1
- package/es/carousel/src/CarouselItem.js +6 -3
- package/es/carousel/src/interface.d.ts +16 -0
- package/es/carousel/src/utils/index.js +4 -4
- package/es/carousel/styles/light.d.ts +1 -2
- package/es/carousel/styles/light.js +2 -2
- package/es/mapping-card/src/MappingCard.d.ts +9 -0
- package/es/mapping-card/src/MappingCardList.d.ts +3 -5
- package/es/mapping-card/src/MappingCardList.js +11 -57
- package/es/mapping-card/src/MappingCardParts/Body.js +9 -3
- package/es/mapping-card/src/MappingCardParts/Header.js +21 -19
- package/es/mapping-card/src/interface.d.ts +5 -0
- package/es/mapping-card/src/interface.js +4 -0
- package/es/mapping-card/src/styles/index.cssr.js +4 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/select-menu/src/SelectOption.d.ts +3 -3
- package/lib/_internal/select-menu/src/SelectOption.js +22 -19
- package/lib/_internal/select-menu/src/styles/index.cssr.js +5 -4
- package/lib/_internal/selection/src/styles/index.cssr.js +3 -0
- package/lib/carousel/src/Carousel.d.ts +8 -3
- package/lib/carousel/src/Carousel.js +41 -25
- package/lib/carousel/src/CarouselContext.d.ts +2 -2
- package/lib/carousel/src/CarouselContext.js +6 -7
- package/lib/carousel/src/CarouselDots.js +1 -1
- package/lib/carousel/src/CarouselItem.d.ts +1 -1
- package/lib/carousel/src/CarouselItem.js +7 -5
- package/lib/carousel/src/interface.d.ts +16 -0
- package/lib/carousel/src/utils/index.js +4 -4
- package/lib/carousel/styles/light.d.ts +1 -2
- package/lib/carousel/styles/light.js +4 -5
- package/lib/mapping-card/src/MappingCard.d.ts +9 -0
- package/lib/mapping-card/src/MappingCardList.d.ts +3 -5
- package/lib/mapping-card/src/MappingCardList.js +10 -56
- package/lib/mapping-card/src/MappingCardParts/Body.js +9 -3
- package/lib/mapping-card/src/MappingCardParts/Header.js +20 -18
- package/lib/mapping-card/src/interface.d.ts +5 -0
- package/lib/mapping-card/src/interface.js +4 -0
- package/lib/mapping-card/src/styles/index.cssr.js +4 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +8 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VNode } from 'vue';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function isCarouselItem(child: VNode): boolean;
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
4
4
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
5
5
|
selfElRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isCarouselItem =
|
|
3
|
+
exports.isCarouselItem = isCarouselItem;
|
|
4
|
+
const lodash_es_1 = require("lodash-es");
|
|
4
5
|
const vue_1 = require("vue");
|
|
5
|
-
const lodash_1 = require("lodash");
|
|
6
6
|
const _mixins_1 = require("../../_mixins");
|
|
7
7
|
const CarouselContext_1 = require("./CarouselContext");
|
|
8
8
|
const CarouselItemName = 'CarouselItem';
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
function isCarouselItem(child) {
|
|
10
|
+
var _a;
|
|
11
|
+
return ((_a = child.type) === null || _a === void 0 ? void 0 : _a.name) === CarouselItemName;
|
|
12
|
+
}
|
|
11
13
|
exports.default = (0, vue_1.defineComponent)({
|
|
12
14
|
name: CarouselItemName,
|
|
13
15
|
setup(props) {
|
|
14
16
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
15
|
-
const UCarousel = (0, CarouselContext_1.useCarouselContext)((0,
|
|
17
|
+
const UCarousel = (0, CarouselContext_1.useCarouselContext)((0, lodash_es_1.camelCase)(CarouselItemName), `u-${(0, lodash_es_1.camelCase)(CarouselItemName)}`);
|
|
16
18
|
const selfElRef = (0, vue_1.ref)();
|
|
17
19
|
const indexRef = (0, vue_1.computed)(() => {
|
|
18
20
|
const { value: selfEl } = selfElRef;
|
|
@@ -7,13 +7,29 @@ export interface CarouselInst {
|
|
|
7
7
|
}
|
|
8
8
|
export interface ArrowScopedSlotProps extends Pick<CarouselContextValue, 'to' | 'prev' | 'next' | 'isPrevDisabled' | 'isNextDisabled'> {
|
|
9
9
|
total: number;
|
|
10
|
+
current: number;
|
|
10
11
|
currentIndex: number;
|
|
11
12
|
}
|
|
12
13
|
export interface DotScopedSlotProps extends Pick<CarouselContextValue, 'to'> {
|
|
13
14
|
total: number;
|
|
15
|
+
current: number;
|
|
14
16
|
currentIndex: number;
|
|
15
17
|
}
|
|
16
18
|
export interface Size {
|
|
17
19
|
width: number;
|
|
18
20
|
height: number;
|
|
19
21
|
}
|
|
22
|
+
export interface CarouselArrowSlotProps {
|
|
23
|
+
total: number;
|
|
24
|
+
current: number;
|
|
25
|
+
currentIndex: number;
|
|
26
|
+
to: (index: number) => void;
|
|
27
|
+
prev: () => void;
|
|
28
|
+
next: () => void;
|
|
29
|
+
}
|
|
30
|
+
export interface CarouselDotSlotProps {
|
|
31
|
+
total: number;
|
|
32
|
+
current: number;
|
|
33
|
+
currentIndex: number;
|
|
34
|
+
to: (index: number) => void;
|
|
35
|
+
}
|
|
@@ -25,12 +25,12 @@ function calculateSize(element, innerOnly) {
|
|
|
25
25
|
const style = getComputedStyle(element);
|
|
26
26
|
width =
|
|
27
27
|
width -
|
|
28
|
-
parseFloat(style.getPropertyValue('padding-left')) -
|
|
29
|
-
parseFloat(style.getPropertyValue('padding-right'));
|
|
28
|
+
Number.parseFloat(style.getPropertyValue('padding-left')) -
|
|
29
|
+
Number.parseFloat(style.getPropertyValue('padding-right'));
|
|
30
30
|
height =
|
|
31
31
|
height -
|
|
32
|
-
parseFloat(style.getPropertyValue('padding-top')) -
|
|
33
|
-
parseFloat(style.getPropertyValue('padding-bottom'));
|
|
32
|
+
Number.parseFloat(style.getPropertyValue('padding-top')) -
|
|
33
|
+
Number.parseFloat(style.getPropertyValue('padding-bottom'));
|
|
34
34
|
}
|
|
35
35
|
return { width, height };
|
|
36
36
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.self =
|
|
3
|
+
exports.self = self;
|
|
4
4
|
const common_1 = require("../../_styles/common");
|
|
5
|
-
|
|
5
|
+
function self() {
|
|
6
6
|
return {
|
|
7
7
|
dotSize: '8px',
|
|
8
8
|
dotColor: 'rgba(255, 255, 255, .3)',
|
|
@@ -12,11 +12,10 @@ const self = (vars) => {
|
|
|
12
12
|
dotLineWidthActive: '24px',
|
|
13
13
|
arrowColor: '#eee'
|
|
14
14
|
};
|
|
15
|
-
}
|
|
16
|
-
exports.self = self;
|
|
15
|
+
}
|
|
17
16
|
const carouselLight = {
|
|
18
17
|
name: 'Carousel',
|
|
19
18
|
common: common_1.commonLight,
|
|
20
|
-
self
|
|
19
|
+
self
|
|
21
20
|
};
|
|
22
21
|
exports.default = carouselLight;
|
|
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
readonly type: import("vue").PropType<import("./interface").MappingCardInterface["hideCopy"]>;
|
|
16
16
|
readonly default: false;
|
|
17
17
|
};
|
|
18
|
+
hideHeaderActions: {
|
|
19
|
+
readonly type: import("vue").PropType<import("./interface").MappingCardInterface["hideHeaderActions"]>;
|
|
20
|
+
readonly default: false;
|
|
21
|
+
};
|
|
18
22
|
copyButtonProps: import("vue").PropType<import("./interface").MappingCardInterface["copyButtonProps"]>;
|
|
19
23
|
copyIconProps: import("vue").PropType<import("./interface").MappingCardInterface["copyIconProps"]>;
|
|
20
24
|
headerEditButtonProps: import("vue").PropType<import("./interface").MappingCardInterface["headerEditButtonProps"]>;
|
|
@@ -1065,6 +1069,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1065
1069
|
readonly type: import("vue").PropType<import("./interface").MappingCardInterface["hideCopy"]>;
|
|
1066
1070
|
readonly default: false;
|
|
1067
1071
|
};
|
|
1072
|
+
hideHeaderActions: {
|
|
1073
|
+
readonly type: import("vue").PropType<import("./interface").MappingCardInterface["hideHeaderActions"]>;
|
|
1074
|
+
readonly default: false;
|
|
1075
|
+
};
|
|
1068
1076
|
copyButtonProps: import("vue").PropType<import("./interface").MappingCardInterface["copyButtonProps"]>;
|
|
1069
1077
|
copyIconProps: import("vue").PropType<import("./interface").MappingCardInterface["copyIconProps"]>;
|
|
1070
1078
|
headerEditButtonProps: import("vue").PropType<import("./interface").MappingCardInterface["headerEditButtonProps"]>;
|
|
@@ -2087,5 +2095,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2087
2095
|
cols: number | undefined;
|
|
2088
2096
|
defaultSpan: number | undefined;
|
|
2089
2097
|
hideCopy: boolean | undefined;
|
|
2098
|
+
hideHeaderActions: boolean | undefined;
|
|
2090
2099
|
}, {}>;
|
|
2091
2100
|
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { PaginationProps } from '../../pagination';
|
|
2
|
-
import type { MappingCardProps } from './interface';
|
|
3
2
|
declare const _default: import("vue").DefineComponent<{
|
|
4
3
|
readonly items: {
|
|
5
|
-
readonly type: import("vue").PropType<MappingCardProps[]>;
|
|
4
|
+
readonly type: import("vue").PropType<import("./interface").MappingCardProps[]>;
|
|
6
5
|
readonly default: () => never[];
|
|
7
6
|
};
|
|
8
7
|
readonly pagination: {
|
|
@@ -15,11 +14,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
14
|
};
|
|
16
15
|
}, {
|
|
17
16
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
18
|
-
paginatedItems: import("vue").ComputedRef<MappingCardProps[]>;
|
|
19
17
|
mergedPagination: import("vue").ComputedRef<PaginationProps | null>;
|
|
20
18
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
19
|
readonly items: {
|
|
22
|
-
readonly type: import("vue").PropType<MappingCardProps[]>;
|
|
20
|
+
readonly type: import("vue").PropType<import("./interface").MappingCardProps[]>;
|
|
23
21
|
readonly default: () => never[];
|
|
24
22
|
};
|
|
25
23
|
readonly pagination: {
|
|
@@ -32,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
30
|
};
|
|
33
31
|
}>>, {
|
|
34
32
|
readonly gap: number;
|
|
35
|
-
readonly items: MappingCardProps[];
|
|
33
|
+
readonly items: import("./interface").MappingCardProps[];
|
|
36
34
|
readonly pagination: false | PaginationProps;
|
|
37
35
|
}, {}>;
|
|
38
36
|
export default _default;
|
|
@@ -5,80 +5,34 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const vue_1 = require("vue");
|
|
7
7
|
const _mixins_1 = require("../../_mixins");
|
|
8
|
-
const _utils_1 = require("../../_utils");
|
|
9
8
|
const pagination_1 = require("../../pagination");
|
|
9
|
+
const flex_1 = require("../../flex");
|
|
10
10
|
const MappingCard_1 = __importDefault(require("./MappingCard"));
|
|
11
11
|
const interface_1 = require("./interface");
|
|
12
12
|
exports.default = (0, vue_1.defineComponent)({
|
|
13
13
|
name: 'MappingCardList',
|
|
14
14
|
props: interface_1.mappingCardListProps,
|
|
15
15
|
setup(props) {
|
|
16
|
-
var _a;
|
|
17
16
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
18
|
-
const uncontrolledPageRef = (0, vue_1.ref)(1);
|
|
19
|
-
const uncontrolledPageSizeRef = (0, vue_1.ref)(props.pagination !== false ? (_a = props.pagination.pageSize) !== null && _a !== void 0 ? _a : 10 : 10);
|
|
20
|
-
const mergedPageRef = (0, vue_1.computed)(() => {
|
|
21
|
-
const { pagination } = props;
|
|
22
|
-
if (pagination !== false && pagination.page !== undefined) {
|
|
23
|
-
return pagination.page;
|
|
24
|
-
}
|
|
25
|
-
return uncontrolledPageRef.value;
|
|
26
|
-
});
|
|
27
|
-
const mergedPageSizeRef = (0, vue_1.computed)(() => {
|
|
28
|
-
const { pagination } = props;
|
|
29
|
-
if (pagination !== false && pagination.pageSize !== undefined) {
|
|
30
|
-
return pagination.pageSize;
|
|
31
|
-
}
|
|
32
|
-
return uncontrolledPageSizeRef.value;
|
|
33
|
-
});
|
|
34
|
-
const paginatedItemsRef = (0, vue_1.computed)(() => {
|
|
35
|
-
const { pagination, items } = props;
|
|
36
|
-
if (!pagination)
|
|
37
|
-
return items;
|
|
38
|
-
const pageSize = mergedPageSizeRef.value;
|
|
39
|
-
const startIndex = (mergedPageRef.value - 1) * pageSize;
|
|
40
|
-
return items.slice(startIndex, startIndex + pageSize);
|
|
41
|
-
});
|
|
42
|
-
function doUpdatePage(page) {
|
|
43
|
-
uncontrolledPageRef.value = page;
|
|
44
|
-
const pagination = props.pagination;
|
|
45
|
-
if (!pagination)
|
|
46
|
-
return;
|
|
47
|
-
if (pagination['onUpdate:page']) {
|
|
48
|
-
(0, _utils_1.call)(pagination['onUpdate:page'], page);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
function doUpdatePageSize(pageSize) {
|
|
52
|
-
uncontrolledPageSizeRef.value = pageSize;
|
|
53
|
-
uncontrolledPageRef.value = 1;
|
|
54
|
-
const pagination = props.pagination;
|
|
55
|
-
if (!pagination)
|
|
56
|
-
return;
|
|
57
|
-
if (pagination['onUpdate:pageSize']) {
|
|
58
|
-
(0, _utils_1.call)(pagination['onUpdate:pageSize'], pageSize);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
17
|
const mergedPaginationRef = (0, vue_1.computed)(() => {
|
|
62
18
|
const { pagination } = props;
|
|
63
|
-
if (
|
|
19
|
+
if (pagination === false)
|
|
64
20
|
return null;
|
|
65
|
-
return
|
|
21
|
+
return pagination;
|
|
66
22
|
});
|
|
67
23
|
return {
|
|
68
24
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
69
|
-
paginatedItems: paginatedItemsRef,
|
|
70
25
|
mergedPagination: mergedPaginationRef
|
|
71
26
|
};
|
|
72
27
|
},
|
|
73
28
|
render() {
|
|
74
|
-
const { mergedClsPrefix,
|
|
29
|
+
const { mergedClsPrefix, mergedPagination, gap, items } = this;
|
|
75
30
|
return ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-mapping-card-list` },
|
|
76
|
-
(0, vue_1.h)(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
(0, vue_1.h)(pagination_1.UPagination, Object.assign({}, mergedPagination)))) : null));
|
|
31
|
+
(0, vue_1.h)(flex_1.UFlex, { vertical: true, size: gap, class: `${mergedClsPrefix}-mapping-card-list__items` }, {
|
|
32
|
+
default: () => items.map((item, index) => (0, vue_1.h)(MappingCard_1.default, Object.assign({ key: index }, item)))
|
|
33
|
+
}),
|
|
34
|
+
mergedPagination ? ((0, vue_1.h)(flex_1.UFlex, { justify: "flex-end", class: `${mergedClsPrefix}-mapping-card-list__pagination` }, {
|
|
35
|
+
default: () => (0, vue_1.h)(pagination_1.UPagination, Object.assign({}, mergedPagination))
|
|
36
|
+
})) : null));
|
|
83
37
|
}
|
|
84
38
|
});
|
|
@@ -33,10 +33,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
33
33
|
})));
|
|
34
34
|
};
|
|
35
35
|
return ((0, vue_1.h)("div", { class: `${prefix}-mapping-card__body` }, rows.map((group, index) => {
|
|
36
|
-
var _a
|
|
36
|
+
var _a;
|
|
37
37
|
return ((0, vue_1.h)("div", { key: (_a = group.id) !== null && _a !== void 0 ? _a : index, class: `${prefix}-mapping-card__body-group` },
|
|
38
|
-
(0, vue_1.h)(list_1.UList, { showDivider: false, showIcon: false },
|
|
39
|
-
|
|
38
|
+
(0, vue_1.h)(list_1.UList, { showDivider: false, showIcon: false }, {
|
|
39
|
+
default: () => {
|
|
40
|
+
var _a;
|
|
41
|
+
return ((0, vue_1.h)(grid_1.UGrid, { cols: (_a = props.cols) !== null && _a !== void 0 ? _a : 3, layoutShiftDisabled: true, class: `${prefix}-mapping-card__body-items` }, {
|
|
42
|
+
default: () => group.items.map(renderRowItem)
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
}),
|
|
40
46
|
group.icon && ((0, vue_1.h)("div", { class: `${prefix}-mapping-card__body-group-icon` }, group.icon()))));
|
|
41
47
|
})));
|
|
42
48
|
}
|
|
@@ -24,23 +24,25 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
24
24
|
const locale = localeRef.value;
|
|
25
25
|
const renderTextProp = (value) => typeof value === 'function' ? value() : value;
|
|
26
26
|
return ((0, vue_1.h)("div", { class: `${prefix}-mapping-card__header` },
|
|
27
|
-
(0, vue_1.h)(flex_1.UFlex, { align: "center", size: "small", class: `${prefix}-mapping-card__header-info` },
|
|
28
|
-
(0, vue_1.h)(
|
|
29
|
-
(0, vue_1.h)("div", { class: `${prefix}-mapping-card__header-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
27
|
+
(0, vue_1.h)(flex_1.UFlex, { align: "center", size: "small", class: `${prefix}-mapping-card__header-info` }, {
|
|
28
|
+
default: () => ((0, vue_1.h)(vue_1.Fragment, null,
|
|
29
|
+
(0, vue_1.h)("div", { class: `${prefix}-mapping-card__header-info-text` },
|
|
30
|
+
(0, vue_1.h)("div", { class: `${prefix}-mapping-card__header-title` }, renderTextProp(props.title)),
|
|
31
|
+
props.description && ((0, vue_1.h)("div", { class: `${prefix}-mapping-card__header-description` }, renderTextProp(props.description)))),
|
|
32
|
+
!props.hideCopy && ((0, vue_1.h)(tooltip_1.UTooltip, null, {
|
|
33
|
+
trigger: () => {
|
|
34
|
+
var _a;
|
|
35
|
+
return ((0, vue_1.h)(button_1.UButton, Object.assign({ quaternary: true, circle: true }, ((_a = props.copyButtonProps) !== null && _a !== void 0 ? _a : {}), { theme: theme.peers.Button, themeOverrides: theme.peerOverrides.Button, onClick: () => { var _a; return (_a = props.onCopy) === null || _a === void 0 ? void 0 : _a.call(props); } }), {
|
|
36
|
+
icon: () => {
|
|
37
|
+
var _a;
|
|
38
|
+
return ((0, vue_1.h)(icon_1.UIcon, Object.assign({}, ((_a = props.copyIconProps) !== null && _a !== void 0 ? _a : {}), { theme: theme.peers.CopyIcon, themeOverrides: theme.peerOverrides.CopyIcon }), { default: () => (0, vue_1.h)(icons_1.ContentCopy, null) }));
|
|
39
|
+
}
|
|
40
|
+
}));
|
|
41
|
+
},
|
|
42
|
+
default: () => locale.copyTooltip
|
|
43
|
+
}))))
|
|
44
|
+
}),
|
|
45
|
+
!props.hideHeaderActions && ((0, vue_1.h)(flex_1.UFlex, { align: "center", size: "small" }, {
|
|
44
46
|
default: () => (0, _utils_1.resolveSlot)(slots.headerActions, () => {
|
|
45
47
|
var _a, _b;
|
|
46
48
|
const buttons = [];
|
|
@@ -71,6 +73,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
71
73
|
}));
|
|
72
74
|
return buttons;
|
|
73
75
|
})
|
|
74
|
-
})));
|
|
76
|
+
}))));
|
|
75
77
|
}
|
|
76
78
|
});
|
|
@@ -36,6 +36,7 @@ export interface MappingCardInterface {
|
|
|
36
36
|
defaultSpan?: number;
|
|
37
37
|
copy?: () => string;
|
|
38
38
|
hideCopy?: boolean;
|
|
39
|
+
hideHeaderActions?: boolean;
|
|
39
40
|
copyButtonProps?: Partial<ButtonProps>;
|
|
40
41
|
copyIconProps?: Partial<IconProps>;
|
|
41
42
|
headerEditButtonProps?: Partial<ButtonProps>;
|
|
@@ -72,6 +73,10 @@ export declare const mappingCardProps: {
|
|
|
72
73
|
readonly type: PropType<MappingCardInterface["hideCopy"]>;
|
|
73
74
|
readonly default: false;
|
|
74
75
|
};
|
|
76
|
+
readonly hideHeaderActions: {
|
|
77
|
+
readonly type: PropType<MappingCardInterface["hideHeaderActions"]>;
|
|
78
|
+
readonly default: false;
|
|
79
|
+
};
|
|
75
80
|
readonly copyButtonProps: PropType<MappingCardInterface["copyButtonProps"]>;
|
|
76
81
|
readonly copyIconProps: PropType<MappingCardInterface["copyIconProps"]>;
|
|
77
82
|
readonly headerEditButtonProps: PropType<MappingCardInterface["headerEditButtonProps"]>;
|
|
@@ -13,7 +13,7 @@ const cssr_1 = require("../../../_utils/cssr");
|
|
|
13
13
|
// --u-body-padding
|
|
14
14
|
// --u-title-color
|
|
15
15
|
// --u-description-color
|
|
16
|
-
exports.default = (0, cssr_1.cB)('mapping-card', `
|
|
16
|
+
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('mapping-card', `
|
|
17
17
|
background-color: var(--u-background-color);
|
|
18
18
|
border: 1px solid var(--u-border-color);
|
|
19
19
|
border-radius: var(--u-border-radius);
|
|
@@ -92,4 +92,6 @@ exports.default = (0, cssr_1.cB)('mapping-card', `
|
|
|
92
92
|
color: var(--u-arrow-color);
|
|
93
93
|
font-size: 16px;
|
|
94
94
|
flex-shrink: 0;
|
|
95
|
-
`)])
|
|
95
|
+
`)]), (0, cssr_1.cB)('mapping-card-list', [(0, cssr_1.cE)('pagination', `
|
|
96
|
+
margin-top: 16px;
|
|
97
|
+
`)])]);
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.14.
|
|
1
|
+
declare const _default: "1.14.5";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@uzum-tech/ui",
|
|
5
|
-
"version": "1.14.
|
|
5
|
+
"version": "1.14.5",
|
|
6
6
|
"js-types-syntax": "typescript",
|
|
7
7
|
"contributions": {
|
|
8
8
|
"html": {
|
|
@@ -19430,6 +19430,13 @@
|
|
|
19430
19430
|
"description": "Hide the copy button in the header.",
|
|
19431
19431
|
"default": "false"
|
|
19432
19432
|
},
|
|
19433
|
+
{
|
|
19434
|
+
"name": "hide-header-actions",
|
|
19435
|
+
"doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/mapping-card",
|
|
19436
|
+
"type": "boolean",
|
|
19437
|
+
"description": "Hide the entire header actions group (switch, edit, delete buttons).",
|
|
19438
|
+
"default": "false"
|
|
19439
|
+
},
|
|
19433
19440
|
{
|
|
19434
19441
|
"name": "copy-button-props",
|
|
19435
19442
|
"doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/mapping-card",
|