@milaboratories/uikit 2.2.7 → 2.2.9
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 +12 -0
- package/dist/pl-uikit.js +983 -970
- package/dist/pl-uikit.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/assets/base.scss +0 -9
- package/src/assets/mixins.scss +3 -4
- package/src/components/PlBtnGroup/PlBtnGroup.vue +5 -5
- package/src/components/PlBtnGroup/pl-btn-group.scss +5 -4
- package/src/components/PlLogView/PlLogView.vue +7 -1
- package/src/components/PlLogView/pl-log-view.scss +7 -2
package/package.json
CHANGED
package/src/assets/base.scss
CHANGED
|
@@ -155,15 +155,6 @@ body {
|
|
|
155
155
|
font-family: var(--font-family-base);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
/// @TODO
|
|
159
|
-
.space-keeper {
|
|
160
|
-
position: absolute;
|
|
161
|
-
top: 0;
|
|
162
|
-
left: 0;
|
|
163
|
-
right: 0;
|
|
164
|
-
bottom: 0;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
158
|
.base-form {
|
|
168
159
|
display: flex;
|
|
169
160
|
flex-direction: column;
|
package/src/assets/mixins.scss
CHANGED
|
@@ -61,7 +61,7 @@ const normalizedOptions = computed(() =>
|
|
|
61
61
|
</script>
|
|
62
62
|
|
|
63
63
|
<template>
|
|
64
|
-
<div class="
|
|
64
|
+
<div class="pl-btn-group" :class="{ disabled }">
|
|
65
65
|
<label v-if="label">
|
|
66
66
|
<span>{{ label }}</span>
|
|
67
67
|
<PlTooltip v-if="slots.tooltip" class="info" position="top">
|
|
@@ -70,11 +70,11 @@ const normalizedOptions = computed(() =>
|
|
|
70
70
|
</template>
|
|
71
71
|
</PlTooltip>
|
|
72
72
|
</label>
|
|
73
|
-
<InnerBorder class="
|
|
73
|
+
<InnerBorder class="pl-btn-group__container">
|
|
74
74
|
<div
|
|
75
75
|
v-for="(opt, i) in normalizedOptions"
|
|
76
76
|
:key="i"
|
|
77
|
-
class="
|
|
77
|
+
class="pl-btn-group__option text-s"
|
|
78
78
|
:tabindex="modelValue === opt.value || disabled ? undefined : 0"
|
|
79
79
|
:class="{ active: modelValue === opt.value }"
|
|
80
80
|
@keydown.enter="emitModel(opt.value)"
|
|
@@ -83,7 +83,7 @@ const normalizedOptions = computed(() =>
|
|
|
83
83
|
{{ opt.label }}
|
|
84
84
|
</div>
|
|
85
85
|
</InnerBorder>
|
|
86
|
-
<div v-if="helper" class="
|
|
87
|
-
<div v-else-if="error" class="
|
|
86
|
+
<div v-if="helper" class="pl-btn-group__helper">{{ helper }}</div>
|
|
87
|
+
<div v-else-if="error" class="pl-btn-group__error">{{ error }}</div>
|
|
88
88
|
</div>
|
|
89
89
|
</template>
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
@import "@/assets/mixins";
|
|
2
2
|
|
|
3
|
-
.
|
|
3
|
+
.pl-btn-group {
|
|
4
|
+
--pl-btn-group-height: 40px;
|
|
4
5
|
box-sizing: content-box;
|
|
5
6
|
position: relative;
|
|
6
|
-
min-height:
|
|
7
|
+
min-height: var(--pl-btn-group-height);
|
|
7
8
|
font-family: var(--control-font-family);
|
|
8
9
|
|
|
9
10
|
label {
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.inner-border {
|
|
28
|
-
min-height:
|
|
29
|
+
min-height: var(--pl-btn-group-height);
|
|
29
30
|
|
|
30
31
|
&::after {
|
|
31
32
|
border: 1px solid var(--color-border-default);
|
|
@@ -82,7 +83,7 @@
|
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
&:not(.active)+.
|
|
86
|
+
&:not(.active)+.pl-btn-group__option:not(.active) {
|
|
86
87
|
&::before {
|
|
87
88
|
content: '';
|
|
88
89
|
position: absolute;
|
|
@@ -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
|
|