@uzum-tech/ui 2.4.7 → 2.4.8
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 +212 -73
- package/dist/index.mjs +212 -73
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +3 -3
- package/es/components.d.ts +33 -10
- package/es/dynamic-tags/index.d.ts +3 -3
- package/es/dynamic-tags/index.mjs +2 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +74 -1177
- package/es/dynamic-tags/src/DynamicTags.mjs +150 -107
- package/es/dynamic-tags/src/interface.d.ts +1146 -6
- package/es/dynamic-tags/src/interface.mjs +34 -1
- package/es/dynamic-tags/src/styles/index.cssr.mjs +35 -3
- package/es/dynamic-tags/styles/dark.mjs +4 -2
- package/es/dynamic-tags/styles/light.d.ts +2 -0
- package/es/dynamic-tags/styles/light.mjs +4 -2
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/components.d.ts +33 -10
- package/lib/dynamic-tags/index.d.ts +3 -3
- package/lib/dynamic-tags/index.js +3 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +74 -1177
- package/lib/dynamic-tags/src/DynamicTags.js +142 -77
- package/lib/dynamic-tags/src/interface.d.ts +1146 -6
- package/lib/dynamic-tags/src/interface.js +24 -0
- package/lib/dynamic-tags/src/styles/index.cssr.js +34 -2
- package/lib/dynamic-tags/styles/dark.js +4 -2
- package/lib/dynamic-tags/styles/light.d.ts +2 -0
- package/lib/dynamic-tags/styles/light.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 +11 -1
|
@@ -1,2 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.dynamicTagsProps = void 0;
|
|
7
|
+
const _mixins_1 = require("../../_mixins");
|
|
8
|
+
const common_props_1 = __importDefault(require("../../tag/src/common-props"));
|
|
9
|
+
exports.dynamicTagsProps = Object.assign(Object.assign(Object.assign({}, _mixins_1.useTheme.props), common_props_1.default), { size: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: 'medium'
|
|
12
|
+
}, closable: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: true
|
|
15
|
+
}, draggable: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: false
|
|
18
|
+
}, defaultValue: {
|
|
19
|
+
type: Array,
|
|
20
|
+
default: () => []
|
|
21
|
+
}, value: Array, inputStyle: [String, Object], inputProps: Object, max: Number, tagStyle: [String, Object], renderTag: Function, onCreate: {
|
|
22
|
+
type: Function,
|
|
23
|
+
default: (label) => label
|
|
24
|
+
}, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array],
|
|
25
|
+
// deprecated
|
|
26
|
+
onChange: [Function, Array] });
|
|
@@ -5,7 +5,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
const cssr_1 = require("../../../_utils/cssr");
|
|
7
7
|
// vars:
|
|
8
|
-
// --input-width
|
|
8
|
+
// --u-input-width
|
|
9
|
+
// --u-dragging-opacity
|
|
10
|
+
// --u-drop-indicator-color
|
|
9
11
|
exports.default = (0, cssr_1.cB)('dynamic-tags', [(0, cssr_1.cB)('input', {
|
|
10
12
|
minWidth: 'var(--u-input-width)'
|
|
11
|
-
})
|
|
13
|
+
}), (0, cssr_1.cE)('tag-wrapper', `
|
|
14
|
+
display: flex;
|
|
15
|
+
position: relative;
|
|
16
|
+
cursor: default;
|
|
17
|
+
`, [(0, cssr_1.c)('& > *', `
|
|
18
|
+
cursor: inherit;
|
|
19
|
+
`)]), (0, cssr_1.cE)('tag', [(0, cssr_1.cM)('draggable', `
|
|
20
|
+
cursor: grab;
|
|
21
|
+
user-select: none;
|
|
22
|
+
`), (0, cssr_1.cM)('dragging', `
|
|
23
|
+
opacity: var(--u-dragging-opacity);
|
|
24
|
+
cursor: grabbing;
|
|
25
|
+
`), (0, cssr_1.cM)('drop-before', [(0, cssr_1.c)('&::before', `
|
|
26
|
+
content: '';
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 0;
|
|
29
|
+
bottom: 0;
|
|
30
|
+
left: -5px;
|
|
31
|
+
width: 2px;
|
|
32
|
+
border-radius: 2px;
|
|
33
|
+
background-color: var(--u-drop-indicator-color);
|
|
34
|
+
`)]), (0, cssr_1.cM)('drop-after', [(0, cssr_1.c)('&::after', `
|
|
35
|
+
content: '';
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 0;
|
|
38
|
+
bottom: 0;
|
|
39
|
+
right: -5px;
|
|
40
|
+
width: 2px;
|
|
41
|
+
border-radius: 2px;
|
|
42
|
+
background-color: var(--u-drop-indicator-color);
|
|
43
|
+
`)])])]);
|
|
@@ -14,9 +14,11 @@ const dynamicTagsDark = {
|
|
|
14
14
|
Tag: styles_4.tagDark,
|
|
15
15
|
Space: styles_3.spaceDark
|
|
16
16
|
},
|
|
17
|
-
self() {
|
|
17
|
+
self(vars) {
|
|
18
18
|
return {
|
|
19
|
-
inputWidth: '64px'
|
|
19
|
+
inputWidth: '64px',
|
|
20
|
+
draggingOpacity: '0.5',
|
|
21
|
+
dropIndicatorColor: vars.elementsPrimary
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
};
|
|
@@ -15,9 +15,11 @@ const dynamicTagsLight = (0, _mixins_1.createTheme)({
|
|
|
15
15
|
Tag: styles_4.tagLight,
|
|
16
16
|
Space: styles_3.spaceLight
|
|
17
17
|
},
|
|
18
|
-
self() {
|
|
18
|
+
self(vars) {
|
|
19
19
|
return {
|
|
20
|
-
inputWidth: '64px'
|
|
20
|
+
inputWidth: '64px',
|
|
21
|
+
draggingOpacity: '0.5',
|
|
22
|
+
dropIndicatorColor: vars.elementsPrimary
|
|
21
23
|
};
|
|
22
24
|
}
|
|
23
25
|
});
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.4.
|
|
1
|
+
declare const _default: "2.4.8";
|
|
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": "2.4.
|
|
5
|
+
"version": "2.4.8",
|
|
6
6
|
"js-types-syntax": "typescript",
|
|
7
7
|
"contributions": {
|
|
8
8
|
"html": {
|
|
@@ -5397,6 +5397,16 @@
|
|
|
5397
5397
|
"description": "Whether the tag is disabled.",
|
|
5398
5398
|
"default": "false"
|
|
5399
5399
|
},
|
|
5400
|
+
{
|
|
5401
|
+
"name": "draggable",
|
|
5402
|
+
"doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/dynamic-tags",
|
|
5403
|
+
"type": "boolean",
|
|
5404
|
+
"description": "Whether tags can be reordered by drag and drop. Doesn't work when `disabled`. With `render-tag`, each custom tag is wrapped in a `div` that receives the drag handlers.",
|
|
5405
|
+
"default": "false",
|
|
5406
|
+
"description-sections": {
|
|
5407
|
+
"since": "2.4.8"
|
|
5408
|
+
}
|
|
5409
|
+
},
|
|
5400
5410
|
{
|
|
5401
5411
|
"name": "input-props",
|
|
5402
5412
|
"doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/dynamic-tags",
|