@milaboratories/uikit 2.2.7 → 2.2.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/CHANGELOG.md +6 -0
- package/dist/pl-uikit.js +978 -965
- package/dist/pl-uikit.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/PlLogView/PlLogView.vue +7 -1
- package/src/components/PlLogView/pl-log-view.scss +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/uikit",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/pl-uikit.umd.js",
|
|
6
6
|
"module": "dist/pl-uikit.js",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"vue-tsc": "^2.1.6",
|
|
33
33
|
"yarpm": "^1.2.0",
|
|
34
34
|
"svgo": "^3.3.2",
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
35
|
+
"@platforma-sdk/model": "^1.10.12",
|
|
36
|
+
"@milaboratories/helpers": "^1.6.6"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"dev": "vite",
|
|
@@ -16,6 +16,7 @@ import type { AnyLogHandle, Platforma, ValueOrErrors } from '@platforma-sdk/mode
|
|
|
16
16
|
import { useLogHandle } from './useLogHandle';
|
|
17
17
|
import { useLabelNotch } from '@/utils/useLabelNotch';
|
|
18
18
|
import DoubleContour from '@/utils/DoubleContour.vue';
|
|
19
|
+
import { PlTooltip } from '../PlTooltip';
|
|
19
20
|
|
|
20
21
|
const getOutputError = <T,>(o?: ValueOrErrors<T>) => {
|
|
21
22
|
if (o && o.ok === false) {
|
|
@@ -115,7 +116,12 @@ const onContentScroll = (ev: Event) => {
|
|
|
115
116
|
<div ref="root" class="pl-log-view" :class="{ 'has-error': computedError }">
|
|
116
117
|
<label v-if="label"> {{ label }} </label>
|
|
117
118
|
<DoubleContour class="pl-log-view__contour" />
|
|
118
|
-
<
|
|
119
|
+
<div class="pl-log-view__copy">
|
|
120
|
+
<PlTooltip :close-delay="800" position="top">
|
|
121
|
+
<PlMaskIcon24 title="Copy content" :name="iconName" @click="onClickCopy" />
|
|
122
|
+
<template #tooltip>{{ copyActive ? 'copied' : 'copy' }}</template>
|
|
123
|
+
</PlTooltip>
|
|
124
|
+
</div>
|
|
119
125
|
<div v-if="computedError" class="pl-log-view__error">{{ computedError }}</div>
|
|
120
126
|
<div v-else ref="contentRef" class="pl-log-view__content" @scroll="onContentScroll">{{ computedValue }}</div>
|
|
121
127
|
</div>
|
|
@@ -46,11 +46,16 @@
|
|
|
46
46
|
position: absolute;
|
|
47
47
|
top: 12px;
|
|
48
48
|
right: 12px;
|
|
49
|
-
background-color: var(--ic-02);
|
|
50
49
|
cursor: pointer;
|
|
51
50
|
|
|
51
|
+
.mask-24 {
|
|
52
|
+
background-color: var(--ic-02);
|
|
53
|
+
}
|
|
54
|
+
|
|
52
55
|
&:hover {
|
|
53
|
-
|
|
56
|
+
.mask-24 {
|
|
57
|
+
background-color: var(--txt-01);
|
|
58
|
+
}
|
|
54
59
|
}
|
|
55
60
|
}
|
|
56
61
|
|