its_ui_vite 1.1.7 → 1.1.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/package.json +1 -1
- package/src/assets/icon/icons-manifest.ts +6 -0
- package/src/assets/icon/svg/gear.svg +4 -0
- package/src/assets/icon/svg/move.svg +3 -0
- package/src/components/CDatepicker.vue +9 -4
- package/src/components/CInput.vue +1 -1
- package/src/components/CInput2.vue +1 -1
- package/src/components/CInput2Select.vue +4 -2
- package/src/components/CSelect.vue +4 -2
- package/src/components/CTooltip.vue +5 -1
- package/src/pages/index.vue +24 -8
package/package.json
CHANGED
|
@@ -97,6 +97,10 @@ export type TIcon = {
|
|
|
97
97
|
'bx-wind'?: boolean,
|
|
98
98
|
/**  */
|
|
99
99
|
'calendar-month-outline'?: boolean,
|
|
100
|
+
/**  */
|
|
101
|
+
'gear'?: boolean,
|
|
102
|
+
/**  */
|
|
103
|
+
'move'?: boolean,
|
|
100
104
|
}
|
|
101
105
|
export const iconContent = {
|
|
102
106
|
'Bar-chart': `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 20V10" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 20V4" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 20V14" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,
|
|
@@ -148,4 +152,6 @@ export const iconContent = {
|
|
|
148
152
|
'bx-volume-mute': `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21.707 20.293L19.684 18.27C21.1845 16.5263 22.0063 14.3003 21.999 12C21.999 7.90897 19.527 4.54697 16 2.99997V4.99997C18.387 6.38597 19.999 9.04697 19.999 12C19.9946 13.7765 19.4072 15.5025 18.327 16.913L17.042 15.628C17.644 14.536 18 13.19 18 12C18 10.229 17.225 8.09997 16 6.99997V14.586L14 12.586V3.99997C13.9999 3.81908 13.9508 3.64161 13.8578 3.48645C13.7648 3.3313 13.6315 3.20426 13.472 3.11889C13.3125 3.03351 13.1329 2.99298 12.9522 3.00163C12.7715 3.01027 12.5966 3.06776 12.446 3.16797L7.727 6.31297L3.707 2.29297L2.293 3.70697L20.293 21.707L21.707 20.293ZM12 5.86797V10.586L9.169 7.75497L12 5.86797ZM4 17H6.697L12.445 20.832C12.5958 20.9321 12.7708 20.9896 12.9516 20.9984C13.1324 21.0072 13.3122 20.967 13.472 20.882C13.6316 20.7965 13.765 20.6693 13.858 20.514C13.951 20.3587 14.0001 20.181 14 20V18.121L12 16.121V18.132L7.555 15.168C7.53 15.151 7.499 15.148 7.473 15.135C7.35491 15.0707 7.22491 15.0312 7.091 15.019C7.059 15.016 7.032 15 7 15H4V8.99997H4.879L3.102 7.22297C2.77189 7.38821 2.4941 7.6418 2.29954 7.95553C2.10499 8.26926 2.00129 8.63081 2 8.99997V15C2 16.103 2.897 17 4 17Z" fill="white"/></svg>`,
|
|
149
153
|
'bx-wind': `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 5.5C13 3.57 11.43 2 9.5 2C7.466 2 6.25 3.525 6.25 5H8.25C8.25 4.585 8.638 4 9.5 4C10.327 4 11 4.673 11 5.5C11 6.327 10.327 7 9.5 7H2V9H9.5C11.43 9 13 7.43 13 5.5ZM15.5 15H8V17H15.5C16.327 17 17 17.673 17 18.5C17 19.327 16.327 20 15.5 20C14.638 20 14.25 19.415 14.25 19H12.25C12.25 20.475 13.466 22 15.5 22C17.43 22 19 20.43 19 18.5C19 16.57 17.43 15 15.5 15Z" fill="white"/><path d="M18 5C15.794 5 14 6.794 14 9H16C16 7.897 16.897 7 18 7C19.103 7 20 7.897 20 9C20 10.103 19.103 11 18 11H2V13H18C20.206 13 22 11.206 22 9C22 6.794 20.206 5 18 5ZM2 15H6V17H2V15Z" fill="white"/></svg>`,
|
|
150
154
|
'calendar-month-outline': `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 11H9V13H7V11ZM21 5V19C21 20.11 20.11 21 19 21H5C3.89 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H6V1H8V3H16V1H18V3H19C20.11 3 21 3.9 21 5ZM5 7H19V5H5V7ZM19 19V9H5V19H19ZM15 13V11H17V13H15ZM11 13V11H13V13H11ZM7 15H9V17H7V15ZM15 17V15H17V17H15ZM11 17V15H13V17H11Z" fill="white"/></svg>`,
|
|
155
|
+
'gear': `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12 15.5C13.933 15.5 15.5 13.933 15.5 12C15.5 10.067 13.933 8.5 12 8.5C10.067 8.5 8.5 10.067 8.5 12C8.5 13.933 10.067 15.5 12 15.5Z" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/> <path d="M2 12.88V11.12C2 10.08 2.85 9.22 3.9 9.22C5.71 9.22 6.45 7.94 5.54 6.37C5.02 5.47 5.33 4.3 6.24 3.78L7.97 2.79C8.76 2.32 9.78 2.6 10.25 3.39L10.36 3.58C11.26 5.15 12.74 5.15 13.65 3.58L13.76 3.39C14.23 2.6 15.25 2.32 16.04 2.79L17.77 3.78C18.68 4.3 18.99 5.47 18.47 6.37C17.56 7.94 18.3 9.22 20.11 9.22C21.15 9.22 22.01 10.07 22.01 11.12V12.88C22.01 13.92 21.16 14.78 20.11 14.78C18.3 14.78 17.56 16.06 18.47 17.63C18.99 18.54 18.68 19.7 17.77 20.22L16.04 21.21C15.25 21.68 14.23 21.4 13.76 20.61L13.65 20.42C12.75 18.85 11.27 18.85 10.36 20.42L10.25 20.61C9.78 21.4 8.76 21.68 7.97 21.21L6.24 20.22C5.33 19.7 5.02 18.53 5.54 17.63C6.45 16.06 5.71 14.78 3.9 14.78C2.85 14.78 2 13.92 2 12.88Z" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg>`,
|
|
156
|
+
'move': `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12 2L15 5H13V11H19V9L22 12L19 15V13H13V19H15L12 22L9 19H11V13H5V15L2 12L5 9V11H11V5H9L12 2Z" fill="white"/></svg>`,
|
|
151
157
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12 15.5C13.933 15.5 15.5 13.933 15.5 12C15.5 10.067 13.933 8.5 12 8.5C10.067 8.5 8.5 10.067 8.5 12C8.5 13.933 10.067 15.5 12 15.5Z" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M2 12.88V11.12C2 10.08 2.85 9.22 3.9 9.22C5.71 9.22 6.45 7.94 5.54 6.37C5.02 5.47 5.33 4.3 6.24 3.78L7.97 2.79C8.76 2.32 9.78 2.6 10.25 3.39L10.36 3.58C11.26 5.15 12.74 5.15 13.65 3.58L13.76 3.39C14.23 2.6 15.25 2.32 16.04 2.79L17.77 3.78C18.68 4.3 18.99 5.47 18.47 6.37C17.56 7.94 18.3 9.22 20.11 9.22C21.15 9.22 22.01 10.07 22.01 11.12V12.88C22.01 13.92 21.16 14.78 20.11 14.78C18.3 14.78 17.56 16.06 18.47 17.63C18.99 18.54 18.68 19.7 17.77 20.22L16.04 21.21C15.25 21.68 14.23 21.4 13.76 20.61L13.65 20.42C12.75 18.85 11.27 18.85 10.36 20.42L10.25 20.61C9.78 21.4 8.76 21.68 7.97 21.21L6.24 20.22C5.33 19.7 5.02 18.53 5.54 17.63C6.45 16.06 5.71 14.78 3.9 14.78C2.85 14.78 2 13.92 2 12.88Z" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
<template #customIcon>
|
|
21
21
|
<CTooltip
|
|
22
22
|
v-if="isTooltip"
|
|
23
|
+
:z-index="zIndex"
|
|
23
24
|
>
|
|
24
25
|
<template #icon>
|
|
25
26
|
<CIcon :name="{'calendar-month-outline': true}" :size="24" />
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
class="c-datepicker__time_list-wrap"
|
|
70
71
|
ref="timeContent"
|
|
71
72
|
:data-c-datepicker-id="datePickerId"
|
|
72
|
-
:style="timeStyle"
|
|
73
|
+
:style="[`--z-index: ${zIndex}`, timeStyle]"
|
|
73
74
|
>
|
|
74
75
|
<div
|
|
75
76
|
:style="`--transition: ${transition}ms; --picker-time-indent-y: ${pickerContentIndentY}px`"
|
|
@@ -115,7 +116,7 @@
|
|
|
115
116
|
|
|
116
117
|
<Teleport :to="teleportTo">
|
|
117
118
|
<div
|
|
118
|
-
:style="pickerContentStyle"
|
|
119
|
+
:style="[`--z-index: ${zIndex}`, pickerContentStyle]"
|
|
119
120
|
:class="['c-datepicker__content_wrap', { open: isOpenPicker }]"
|
|
120
121
|
>
|
|
121
122
|
<div
|
|
@@ -129,6 +130,7 @@
|
|
|
129
130
|
class="c-datepicker__select"
|
|
130
131
|
ref="monthSelect"
|
|
131
132
|
size="sm"
|
|
133
|
+
:z-index="zIndex"
|
|
132
134
|
:options="monthsOption"
|
|
133
135
|
:transform-val="true"
|
|
134
136
|
:placeholder="monthsOption[activeMonth - 1].text"
|
|
@@ -142,6 +144,7 @@
|
|
|
142
144
|
class="c-datepicker__select"
|
|
143
145
|
ref="yearSelect"
|
|
144
146
|
size="sm"
|
|
147
|
+
:z-index="zIndex"
|
|
145
148
|
:options="yearOption"
|
|
146
149
|
:transform-val="true"
|
|
147
150
|
:placeholder="String(activeYear)"
|
|
@@ -217,6 +220,7 @@ type TProps = {
|
|
|
217
220
|
locale?: 'rus' | 'usa' | 'tur' | 'spa',
|
|
218
221
|
max?: string,
|
|
219
222
|
min?: string,
|
|
223
|
+
zIndex?: number,
|
|
220
224
|
width?: string,
|
|
221
225
|
isOpen?: boolean,
|
|
222
226
|
modelValue?: any,
|
|
@@ -226,6 +230,7 @@ type TProps = {
|
|
|
226
230
|
const props = withDefaults(defineProps<TProps>(), {
|
|
227
231
|
locale: 'rus',
|
|
228
232
|
color: 'green',
|
|
233
|
+
zIndex: 999,
|
|
229
234
|
emptyDate: false,
|
|
230
235
|
showTime: true,
|
|
231
236
|
isOpen: false,
|
|
@@ -981,7 +986,7 @@ $timeWidth: 54px;
|
|
|
981
986
|
--scroll-height: 100px;
|
|
982
987
|
|
|
983
988
|
position: fixed;
|
|
984
|
-
z-index: 999;
|
|
989
|
+
z-index: var(--z-index, 999);
|
|
985
990
|
transition: var(--transition);
|
|
986
991
|
// transform: translate(0, 50px);
|
|
987
992
|
pointer-events: none;
|
|
@@ -1097,7 +1102,7 @@ $timeWidth: 54px;
|
|
|
1097
1102
|
|
|
1098
1103
|
.c-datepicker__content_wrap {
|
|
1099
1104
|
position: fixed;
|
|
1100
|
-
z-index: 999;
|
|
1105
|
+
z-index: var(--z-index, 999);
|
|
1101
1106
|
transition: var(--transition);
|
|
1102
1107
|
pointer-events: none;
|
|
1103
1108
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<Teleport :to="teleportTo">
|
|
39
39
|
<div
|
|
40
40
|
:data-c-input2-select-id="CInput2SelectId"
|
|
41
|
-
:style="listStyle"
|
|
41
|
+
:style="[`--z-index: ${zIndex}`, listStyle]"
|
|
42
42
|
:class="[classes.fixedContainer, variant, size, { open: isOpen, disabled }]"
|
|
43
43
|
>
|
|
44
44
|
<CScroll2
|
|
@@ -115,6 +115,7 @@ type TProps = {
|
|
|
115
115
|
variant?: 'default' | 'multiple',
|
|
116
116
|
size?: 'lg' | 'md' | 'sm',
|
|
117
117
|
color?: 'green' | 'green2',
|
|
118
|
+
zIndex?: number,
|
|
118
119
|
selectAll?: boolean,
|
|
119
120
|
autocomplete?: boolean,
|
|
120
121
|
disabled?: boolean,
|
|
@@ -134,6 +135,7 @@ const props = withDefaults(defineProps<TProps>(), {
|
|
|
134
135
|
variant: 'default',
|
|
135
136
|
size: 'lg',
|
|
136
137
|
color: 'green',
|
|
138
|
+
zIndex: 999,
|
|
137
139
|
selectAll: false,
|
|
138
140
|
autocomplete: false,
|
|
139
141
|
disabled: false,
|
|
@@ -472,7 +474,7 @@ defineExpose({
|
|
|
472
474
|
--font-size: 16px;
|
|
473
475
|
|
|
474
476
|
position: fixed;
|
|
475
|
-
z-index: 999;
|
|
477
|
+
z-index: var(--z-index, 999);
|
|
476
478
|
|
|
477
479
|
transition: var(--transition);
|
|
478
480
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<Teleport :to="teleportTo">
|
|
24
24
|
<div
|
|
25
25
|
:data-c-select-id="selectId"
|
|
26
|
-
:style="listStyle"
|
|
26
|
+
:style="[`--z-index: ${zIndex}`, listStyle]"
|
|
27
27
|
:class="[classes.fixedContainer, variant, size, { open: isOpen, disabled }]"
|
|
28
28
|
>
|
|
29
29
|
<CScroll2
|
|
@@ -99,6 +99,7 @@ type TProps = {
|
|
|
99
99
|
options?: TOption[],
|
|
100
100
|
variant?: 'default' | 'multiple',
|
|
101
101
|
size?: 'lg' | 'md' | 'sm',
|
|
102
|
+
zIndex?: number,
|
|
102
103
|
selectAll?: boolean,
|
|
103
104
|
autocomplete?: boolean,
|
|
104
105
|
disabled?: boolean,
|
|
@@ -116,6 +117,7 @@ const props = withDefaults(defineProps<TProps>(), {
|
|
|
116
117
|
options: () => [],
|
|
117
118
|
variant: 'default',
|
|
118
119
|
size: 'lg',
|
|
120
|
+
zIndex: 999,
|
|
119
121
|
selectAll: false,
|
|
120
122
|
autocomplete: false,
|
|
121
123
|
disabled: false,
|
|
@@ -436,7 +438,7 @@ defineExpose({
|
|
|
436
438
|
--font-size: 16px;
|
|
437
439
|
|
|
438
440
|
position: fixed;
|
|
439
|
-
z-index: 999;
|
|
441
|
+
z-index: var(--z-index, 999);
|
|
440
442
|
|
|
441
443
|
transition: var(--transition);
|
|
442
444
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<Teleport v-if="!disabled && isShowTooltip" :to="teleportTo">
|
|
9
9
|
<div
|
|
10
10
|
:class="[classes.fixedContainer, position, {interactive: false}, {open: isOpen.click || isOpen.hover}]"
|
|
11
|
-
:style="tooltipPosition"
|
|
11
|
+
:style="[`--z-index: ${zIndex}`, tooltipPosition]"
|
|
12
12
|
>
|
|
13
13
|
<div :class="classes.contentWrap">
|
|
14
14
|
<div :class="classes.content">
|
|
@@ -30,6 +30,7 @@ import { addTracingElement } from '../assets/js/helpers'
|
|
|
30
30
|
type TProps = {
|
|
31
31
|
position?: 'top' | 'top_left' | 'top_right' | 'bottom' | 'bottom_left' | 'bottom_right' | 'right' | 'left',
|
|
32
32
|
interactive?: boolean,
|
|
33
|
+
zIndex?: number,
|
|
33
34
|
disabled?: boolean,
|
|
34
35
|
saveTarget?: boolean,
|
|
35
36
|
isShowTooltip?: boolean,
|
|
@@ -37,6 +38,7 @@ type TProps = {
|
|
|
37
38
|
|
|
38
39
|
const props = withDefaults(defineProps<TProps>(), {
|
|
39
40
|
position: 'top',
|
|
41
|
+
zIndex: 999,
|
|
40
42
|
interactive: true,
|
|
41
43
|
disabled: false,
|
|
42
44
|
saveTarget: true,
|
|
@@ -226,6 +228,8 @@ function removeListener() {
|
|
|
226
228
|
|
|
227
229
|
font-size: 12px;
|
|
228
230
|
|
|
231
|
+
z-index: var(--z-index, 999);
|
|
232
|
+
|
|
229
233
|
transition: var(--transition);
|
|
230
234
|
pointer-events: none;
|
|
231
235
|
|
package/src/pages/index.vue
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<div class="overlay"></div>
|
|
2
3
|
<div class="" style="background-color: #152829; padding: 50px 20px 700px;">
|
|
3
4
|
<div class="hide-block"></div>
|
|
4
5
|
<!-- button -->
|
|
@@ -596,16 +597,16 @@
|
|
|
596
597
|
|
|
597
598
|
<!-- col -->
|
|
598
599
|
<div class="table__col">
|
|
599
|
-
<div class="table__item">
|
|
600
|
-
<CInput v-model="inpSuccess" :status="successStatus"/>
|
|
600
|
+
<div class="table__item" style="width: 200px;">
|
|
601
|
+
<CInput v-model="inpSuccess" width="100%" :status="successStatus"/>
|
|
601
602
|
</div>
|
|
602
603
|
|
|
603
604
|
<div class="table__item">
|
|
604
|
-
<CInput v-model="inpError" :status="errorStatus" />
|
|
605
|
+
<CInput v-model="inpError" width="100%" :status="errorStatus" />
|
|
605
606
|
</div>
|
|
606
607
|
|
|
607
608
|
<div class="table__item">
|
|
608
|
-
<CInput v-model="inpError" size="md" :icon-position="['right', 'left']" :status="errorStatus">
|
|
609
|
+
<CInput v-model="inpError" width="100%" size="md" :icon-position="['right', 'left']" :status="errorStatus">
|
|
609
610
|
<template #customIcon>
|
|
610
611
|
<CIcon :name="{'Bar-chart': true}" />
|
|
611
612
|
</template>
|
|
@@ -663,16 +664,16 @@
|
|
|
663
664
|
|
|
664
665
|
<!-- col -->
|
|
665
666
|
<div class="table__col">
|
|
666
|
-
<div class="table__item">
|
|
667
|
-
<CInput2 v-model="inpSuccess" :status="successStatus"/>
|
|
667
|
+
<div class="table__item" style="width: 200px;">
|
|
668
|
+
<CInput2 v-model="inpSuccess" width="100%" :status="successStatus"/>
|
|
668
669
|
</div>
|
|
669
670
|
|
|
670
671
|
<div class="table__item">
|
|
671
|
-
<CInput2 v-model="inpError" :status="errorStatus" />
|
|
672
|
+
<CInput2 v-model="inpError" width="100%" :status="errorStatus" />
|
|
672
673
|
</div>
|
|
673
674
|
|
|
674
675
|
<div class="table__item">
|
|
675
|
-
<CInput2 v-model="inpError" size="md" :icon-position="['right', 'left']" :status="errorStatus">
|
|
676
|
+
<CInput2 v-model="inpError" width="100%" size="md" :icon-position="['right', 'left']" :status="errorStatus">
|
|
676
677
|
<template #customIcon-left>
|
|
677
678
|
<CIcon :name="{'Bar-chart': true}" />
|
|
678
679
|
</template>
|
|
@@ -1999,4 +2000,19 @@ h6 {
|
|
|
1999
2000
|
|
|
2000
2001
|
color: var(--white);
|
|
2001
2002
|
}
|
|
2003
|
+
|
|
2004
|
+
.overlay {
|
|
2005
|
+
position: fixed;
|
|
2006
|
+
left: 0;
|
|
2007
|
+
top: 0;
|
|
2008
|
+
right: 0;
|
|
2009
|
+
bottom: 0;
|
|
2010
|
+
z-index: 999;
|
|
2011
|
+
|
|
2012
|
+
display: none;
|
|
2013
|
+
|
|
2014
|
+
background: rgba(0, 0, 0, 0.6);
|
|
2015
|
+
|
|
2016
|
+
pointer-events: none;
|
|
2017
|
+
}
|
|
2002
2018
|
</style>
|