@milaboratories/uikit 2.10.26 → 2.10.27
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/.turbo/turbo-build.log +47 -48
- package/.turbo/turbo-formatter$colon$check.log +2 -2
- package/.turbo/turbo-linter$colon$check.log +2 -2
- package/.turbo/turbo-types$colon$check.log +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/components/DataTable/TableComponent.vue.js +15 -16
- package/dist/components/DataTable/TableComponent.vue.js.map +1 -1
- package/dist/components/PlAutocomplete/PlAutocomplete.vue.js +33 -33
- package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.js +17 -17
- package/dist/components/PlBtnGroup/PlBtnGroup.vue.js +17 -17
- package/dist/components/PlCheckboxGroup/PlCheckboxGroup.vue.js +12 -12
- package/dist/components/PlChip/PlChip.vue.js +8 -8
- package/dist/components/PlDropdown/PlDropdown.vue.js +27 -27
- package/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +39 -39
- package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +20 -20
- package/dist/components/PlFileDialog/PlFileDialog.vue.d.ts +3 -1
- package/dist/components/PlFileDialog/PlFileDialog.vue.d.ts.map +1 -1
- package/dist/components/PlFileDialog/Remote.vue.d.ts +3 -1
- package/dist/components/PlFileDialog/Remote.vue.d.ts.map +1 -1
- package/dist/components/PlFileDialog/Remote.vue.js +80 -76
- package/dist/components/PlFileDialog/Remote.vue.js.map +1 -1
- package/dist/components/PlFileDialog/Shortcuts.vue.d.ts +4 -1
- package/dist/components/PlFileDialog/Shortcuts.vue.d.ts.map +1 -1
- package/dist/components/PlFileDialog/Shortcuts.vue2.js +18 -14
- package/dist/components/PlFileDialog/Shortcuts.vue2.js.map +1 -1
- package/dist/components/PlFileInput/PlFileInput.vue.js +17 -17
- package/dist/components/PlLogView/PlLogView.vue.js +22 -22
- package/dist/components/PlNumberField/PlNumberField.vue.js +8 -8
- package/dist/components/PlSlideModal/PlPureSlideModal.vue.js +2 -3
- package/dist/components/PlSlideModal/PlPureSlideModal.vue.js.map +1 -1
- package/dist/components/PlTabs/Tab.vue.d.ts +42 -12
- package/dist/components/PlTabs/Tab.vue.d.ts.map +1 -1
- package/dist/components/PlTabs/Tab.vue.js +6 -6
- package/dist/components/PlTextArea/PlTextArea.vue.js +22 -22
- package/dist/components/PlTextField/PlTextField.vue.js +14 -14
- package/dist/components/PlTooltip/PlTooltip.vue.d.ts +30 -3
- package/dist/components/PlTooltip/PlTooltip.vue.d.ts.map +1 -1
- package/dist/components/PlTooltip/PlTooltip.vue.js +7 -110
- package/dist/components/PlTooltip/PlTooltip.vue.js.map +1 -1
- package/dist/components/PlTooltip/PlTooltip.vue2.js +132 -2
- package/dist/components/PlTooltip/PlTooltip.vue2.js.map +1 -1
- package/dist/components/PlTooltip/PlTooltip.vue3.js +26 -0
- package/dist/components/PlTooltip/PlTooltip.vue3.js.map +1 -0
- package/dist/components/Slider.vue.d.ts +1 -1
- package/dist/components/Slider.vue.d.ts.map +1 -1
- package/dist/components/Slider.vue.js +21 -21
- package/dist/components/SliderRange.vue.d.ts +1 -1
- package/dist/components/SliderRange.vue.d.ts.map +1 -1
- package/dist/components/SliderRange.vue.js +31 -31
- package/dist/components/SliderRangeTriple.vue.d.ts +1 -1
- package/dist/components/SliderRangeTriple.vue.d.ts.map +1 -1
- package/dist/components/SliderRangeTriple.vue.js +23 -23
- package/dist/index.js +1 -1
- package/dist/utils/DoubleContour.vue2.js +23 -0
- package/dist/utils/DoubleContour.vue2.js.map +1 -0
- package/package.json +4 -4
- package/src/assets/base.scss +4 -1
- package/src/assets/mixins.scss +1 -2
- package/src/assets/utils.scss +1 -1
- package/src/components/PlFileDialog/Remote.vue +5 -3
- package/src/components/PlFileDialog/Shortcuts.vue +5 -1
- package/src/components/PlTooltip/PlTooltip.vue +227 -32
- package/dist/components/PlTooltip/Beak.vue.d.ts +0 -3
- package/dist/components/PlTooltip/Beak.vue.d.ts.map +0 -1
- package/dist/components/PlTooltip/Beak.vue.js +0 -23
- package/dist/components/PlTooltip/Beak.vue.js.map +0 -1
- package/dist/components/PlTooltip/useTooltipPosition.d.ts +0 -12
- package/dist/components/PlTooltip/useTooltipPosition.d.ts.map +0 -1
- package/dist/components/PlTooltip/useTooltipPosition.js +0 -18
- package/dist/components/PlTooltip/useTooltipPosition.js.map +0 -1
- package/src/components/PlTooltip/Beak.vue +0 -12
- package/src/components/PlTooltip/pl-tooltip.scss +0 -117
- package/src/components/PlTooltip/useTooltipPosition.ts +0 -59
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
.pl-tooltip {
|
|
2
|
-
--pl-tooltip-max-width: 300px;
|
|
3
|
-
|
|
4
|
-
z-index: var(--z-tooltip);
|
|
5
|
-
position: absolute;
|
|
6
|
-
display: inline-block;
|
|
7
|
-
padding: 8px 12px 9px 12px;
|
|
8
|
-
background: var(--tooltip-bg);
|
|
9
|
-
border-radius: 6px;
|
|
10
|
-
width: max-content;
|
|
11
|
-
word-break: normal;
|
|
12
|
-
transform-origin: 0 50%;
|
|
13
|
-
max-width: var(--pl-tooltip-max-width);
|
|
14
|
-
color: #fff;
|
|
15
|
-
|
|
16
|
-
&__container {
|
|
17
|
-
position: absolute;
|
|
18
|
-
width: 0;
|
|
19
|
-
height: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
a {
|
|
23
|
-
color: var(--tooltip-link-color);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
p {
|
|
27
|
-
margin-bottom: 8px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
ul,
|
|
31
|
-
li {
|
|
32
|
-
margin-left: 6px;
|
|
33
|
-
padding-left: 6px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
li {
|
|
37
|
-
margin-bottom: 4px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.beak {
|
|
41
|
-
position: absolute;
|
|
42
|
-
top: 50%;
|
|
43
|
-
right: 100%;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.top-left {
|
|
47
|
-
bottom: 0;
|
|
48
|
-
.beak {
|
|
49
|
-
position: absolute;
|
|
50
|
-
top: calc(100% - 2px);
|
|
51
|
-
transform: translateX(-50%) rotate(-90deg);
|
|
52
|
-
left: 20%;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.left {
|
|
57
|
-
right: 0;
|
|
58
|
-
transform: translateY(-50%);
|
|
59
|
-
.beak {
|
|
60
|
-
position: absolute;
|
|
61
|
-
top: 50%;
|
|
62
|
-
transform: translateY(-50%) rotate(180deg);
|
|
63
|
-
left: 100%;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&.right {
|
|
68
|
-
left: 0;
|
|
69
|
-
transform: translateY(-50%);
|
|
70
|
-
.beak {
|
|
71
|
-
position: absolute;
|
|
72
|
-
top: 50%;
|
|
73
|
-
transform: translateY(-50%);
|
|
74
|
-
right: 100%;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&.top {
|
|
79
|
-
transform: translateX(-50%);
|
|
80
|
-
bottom: 0;
|
|
81
|
-
.beak {
|
|
82
|
-
position: absolute;
|
|
83
|
-
top: calc(100% - 2px);
|
|
84
|
-
transform: translateX(-50%) rotate(-90deg);
|
|
85
|
-
left: 50%;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&.southwest {
|
|
90
|
-
transform: translateY(100%);
|
|
91
|
-
bottom: 0;
|
|
92
|
-
right: -6px;
|
|
93
|
-
.beak {
|
|
94
|
-
position: absolute;
|
|
95
|
-
top: -2px;
|
|
96
|
-
transform: translateY(-50%) rotate(90deg);
|
|
97
|
-
right: 12px;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.tooltip-transition {
|
|
103
|
-
&-enter-active,
|
|
104
|
-
&-leave-active {
|
|
105
|
-
transition: all 0.1s ease-in-out;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&-enter-from {
|
|
109
|
-
opacity: 0;
|
|
110
|
-
transform: translateY(-50%) scale(0);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&-leave-to {
|
|
114
|
-
opacity: 0;
|
|
115
|
-
transform: translateY(-50%) scale(0);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { computed, type Ref, ref, unref } from "vue";
|
|
2
|
-
import { useElementPosition } from "../../composition/usePosition";
|
|
3
|
-
import type { ElementPosition } from "../../types";
|
|
4
|
-
|
|
5
|
-
type Options = {
|
|
6
|
-
position: "top-left" | "right" | "left" | "top" | "southwest";
|
|
7
|
-
gap: number;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* A custom hook that calculates and returns the CSS style needed to position a tooltip
|
|
12
|
-
* relative to a target HTML element based on the specified position and gap.
|
|
13
|
-
*/
|
|
14
|
-
export function useTooltipPosition(el: Ref<HTMLElement | undefined>, optionsRef: Ref<Options>) {
|
|
15
|
-
const posRef = ref<ElementPosition>();
|
|
16
|
-
|
|
17
|
-
useElementPosition(el, (v) => {
|
|
18
|
-
posRef.value = v;
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
return computed(() => {
|
|
22
|
-
const pos = unref(posRef);
|
|
23
|
-
|
|
24
|
-
const options = unref(optionsRef);
|
|
25
|
-
|
|
26
|
-
const position = options.position ?? "top";
|
|
27
|
-
|
|
28
|
-
const gap = options.gap ?? 8;
|
|
29
|
-
|
|
30
|
-
if (!pos) {
|
|
31
|
-
return "";
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const offsetMiddleY = pos.offsetY + Math.floor(pos.height / 2);
|
|
35
|
-
const offsetMiddleX = pos.offsetX + Math.floor(pos.width / 2);
|
|
36
|
-
|
|
37
|
-
if (position === "top-left") {
|
|
38
|
-
return `left: ${pos.offsetX}px; top: ${pos.offsetY - gap}px;`;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (position === "top") {
|
|
42
|
-
return `left: ${offsetMiddleX}px; top: ${pos.offsetY - gap}px;`;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (position === "right") {
|
|
46
|
-
return `left: ${pos.offsetX + pos.width + gap}px; top: ${offsetMiddleY}px;`;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (position === "left") {
|
|
50
|
-
return `right: ${pos.scrollWidth - pos.x + gap}px; top: ${offsetMiddleY}px;`;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (position === "southwest") {
|
|
54
|
-
return `left: ${pos.offsetX + pos.width}px; top: ${pos.offsetY + pos.height + gap}px;`;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return "";
|
|
58
|
-
});
|
|
59
|
-
}
|