@ldmjs/ui 2.1.15 → 2.1.16
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/components/ld-avatar.js +1 -1
- package/dist/components/ld-badge.js +1 -1
- package/dist/components/ld-breadcrumbs.js +1 -1
- package/dist/components/ld-button.js +1 -1
- package/dist/components/ld-calendar.js +1 -1
- package/dist/components/ld-checkbox.js +1 -1
- package/dist/components/ld-chip.js +1 -1
- package/dist/components/ld-combobox.js +1 -1
- package/dist/components/ld-data-iterator.js +1 -1
- package/dist/components/ld-datepicker.js +1 -1
- package/dist/components/ld-daterange.js +1 -1
- package/dist/components/ld-dialog.js +1 -1
- package/dist/components/ld-edit-list-box.js +1 -1
- package/dist/components/ld-edit-masked-text.js +1 -1
- package/dist/components/ld-edit-text.js +1 -1
- package/dist/components/ld-expansion-panel.js +1 -1
- package/dist/components/ld-expansion-panels.js +1 -1
- package/dist/components/ld-icon.js +1 -1
- package/dist/components/ld-loader.js +1 -1
- package/dist/components/ld-page-toolbar.js +1 -1
- package/dist/components/ld-pager.js +1 -1
- package/dist/components/ld-progress.js +1 -1
- package/dist/components/ld-radiobutton.js +1 -1
- package/dist/components/ld-radiogroup.js +1 -1
- package/dist/components/ld-select-list-box.js +1 -1
- package/dist/components/ld-select.js +1 -1
- package/dist/components/ld-slider.js +1 -1
- package/dist/components/ld-splitter.js +1 -1
- package/dist/components/ld-step.js +1 -1
- package/dist/components/ld-switch.js +1 -1
- package/dist/components/ld-tab.js +1 -1
- package/dist/components/ld-tabs.js +1 -1
- package/dist/components/ld-text-markup.js +1 -1
- package/dist/components/ld-text-viewer.js +1 -1
- package/dist/components/ld-textarea.js +1 -1
- package/dist/components/ld-timepicker.js +1 -1
- package/dist/components/ld-toggle-buttons.js +1 -1
- package/dist/components/ld-uploader.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/lib/runtime-template.js +1 -1
- package/dist/lib/toastification.js +1 -1
- package/dist/scss/_avatar.scss +7 -6
- package/dist/scss/_chip.scss +2 -2
- package/dist/scss/_dialogs.scss +8 -1
- package/dist/scss/_inputs.scss +2 -0
- package/dist/scss/_iterator.scss +43 -40
- package/dist/scss/_progress.scss +62 -4
- package/dist/scss/_shadows.scss +1 -1
- package/dist/scss/_textviewer.scss +0 -1
- package/dist/scss/_toolbar.scss +1 -1
- package/dist/types/dialogs.d.ts +11 -1
- package/dist/utils/validators.js +1 -1
- package/package.json +1 -1
package/dist/scss/_inputs.scss
CHANGED
package/dist/scss/_iterator.scss
CHANGED
|
@@ -4,54 +4,57 @@
|
|
|
4
4
|
position: relative;
|
|
5
5
|
height: 100%;
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
& > .iterator-list {
|
|
8
10
|
height: 100%;
|
|
9
11
|
overflow-y: auto;
|
|
10
12
|
overflow-anchor: auto;
|
|
11
13
|
contain: content;
|
|
12
|
-
}
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
15
|
+
& > .scroller {
|
|
16
|
+
position: relative;
|
|
17
|
+
transform: translateZ(0);
|
|
18
|
+
&.mobile {
|
|
19
|
+
scroll-snap-type: y mandatory;
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
& > .item {
|
|
23
|
+
position: absolute;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: max-content;
|
|
26
|
+
&.mobile {
|
|
27
|
+
scroll-snap-align: start;
|
|
28
|
+
}
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
&.blink {
|
|
31
|
+
animation: blinker 0.5s linear;
|
|
32
|
+
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
34
|
+
@keyframes blinker {
|
|
35
|
+
5% {
|
|
36
|
+
left: -5%;
|
|
37
|
+
}
|
|
38
|
+
15% {
|
|
39
|
+
left: -15%;
|
|
40
|
+
}
|
|
41
|
+
25% {
|
|
42
|
+
opacity: 75%;
|
|
43
|
+
left: -25%;
|
|
44
|
+
}
|
|
45
|
+
50% {
|
|
46
|
+
opacity: 50%;
|
|
47
|
+
left: -50%;
|
|
48
|
+
}
|
|
49
|
+
75% {
|
|
50
|
+
opacity: 25%;
|
|
51
|
+
left: -75%;
|
|
52
|
+
}
|
|
53
|
+
100% {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
left: -100%;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
55
58
|
}
|
|
56
59
|
}
|
|
57
60
|
}
|
package/dist/scss/_progress.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
1
3
|
body {
|
|
2
4
|
.ld-progress {
|
|
3
5
|
|
|
@@ -22,11 +24,17 @@ body {
|
|
|
22
24
|
&.ld-progress--no-label {
|
|
23
25
|
display: flex;
|
|
24
26
|
align-items: center;
|
|
27
|
+
gap: 16px;
|
|
28
|
+
|
|
29
|
+
&.ld-progress--reversed {
|
|
30
|
+
flex-direction: row-reverse;
|
|
31
|
+
}
|
|
25
32
|
}
|
|
26
33
|
|
|
27
34
|
.ld-progress-label {
|
|
28
35
|
display: flex;
|
|
29
36
|
align-items: center;
|
|
37
|
+
gap: 16px;
|
|
30
38
|
height: 20px;
|
|
31
39
|
margin-bottom: 8px;
|
|
32
40
|
}
|
|
@@ -36,12 +44,21 @@ body {
|
|
|
36
44
|
flex: 1 1 auto;
|
|
37
45
|
}
|
|
38
46
|
|
|
47
|
+
&.ld-progress--reversed {
|
|
48
|
+
.ld-progress-label {
|
|
49
|
+
flex-direction: row-reverse;
|
|
50
|
+
}
|
|
51
|
+
.ld-progress-text {
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: flex-end;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
39
57
|
.ld-progress-counter {
|
|
40
58
|
font-size: var(--text-body-s);
|
|
41
59
|
color: var(--grey-d-1);
|
|
42
60
|
white-space: nowrap;
|
|
43
61
|
font-weight: 500;
|
|
44
|
-
margin-left: 16px;
|
|
45
62
|
flex-shrink: 0;
|
|
46
63
|
}
|
|
47
64
|
|
|
@@ -49,7 +66,6 @@ body {
|
|
|
49
66
|
flex: 1 1 auto;
|
|
50
67
|
height: 4px;
|
|
51
68
|
background-color: var(--grey-l-5);
|
|
52
|
-
border-radius: 6px;
|
|
53
69
|
|
|
54
70
|
&:after {
|
|
55
71
|
content: '';
|
|
@@ -57,7 +73,49 @@ body {
|
|
|
57
73
|
height: 100%;
|
|
58
74
|
width: calc(var(--n) * 1%);
|
|
59
75
|
background-color: var(--primary);
|
|
60
|
-
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
$sizearray: (
|
|
80
|
+
'x-small': (
|
|
81
|
+
// height
|
|
82
|
+
4px,
|
|
83
|
+
// border radius
|
|
84
|
+
6px
|
|
85
|
+
),
|
|
86
|
+
'small': (
|
|
87
|
+
8px,
|
|
88
|
+
var(--border-radius),
|
|
89
|
+
),
|
|
90
|
+
'default': (
|
|
91
|
+
12px,
|
|
92
|
+
var(--border-radius),
|
|
93
|
+
),
|
|
94
|
+
'large': (
|
|
95
|
+
16px,
|
|
96
|
+
var(--border-radius),
|
|
97
|
+
),
|
|
98
|
+
'x-large': (
|
|
99
|
+
20px,
|
|
100
|
+
12px,
|
|
101
|
+
),
|
|
102
|
+
'extra-large': (
|
|
103
|
+
24px,
|
|
104
|
+
12px,
|
|
105
|
+
),
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
@each $size, $values in $sizearray {
|
|
109
|
+
$h: list.nth($values, 1);
|
|
110
|
+
$r: list.nth($values, 2);
|
|
111
|
+
&.ld-progress--#{$size} {
|
|
112
|
+
.ld-progress-bar {
|
|
113
|
+
height: $h;
|
|
114
|
+
border-radius: $r;
|
|
115
|
+
&:after {
|
|
116
|
+
border-radius: $r;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
61
119
|
}
|
|
62
120
|
}
|
|
63
121
|
}
|
|
@@ -279,4 +337,4 @@ body {
|
|
|
279
337
|
}
|
|
280
338
|
}
|
|
281
339
|
}
|
|
282
|
-
}
|
|
340
|
+
}
|
package/dist/scss/_shadows.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$shadow-xs: 0px 1px 4px 0px hsla(218, 87%, 6%, 0.05);
|
|
2
|
-
$shadow-s: 0px 1px 4px 0px hsla(218, 87%, 6%, 0.
|
|
2
|
+
$shadow-s: 0px 1px 4px 0px hsla(218, 87%, 6%, 0.16);
|
|
3
3
|
$shadow-sm: 0px 4px 8px -2px hsla(218, 87%, 6%, 0.1);
|
|
4
4
|
$shadow-m: 0px 12px 16px -4px hsla(218, 87%, 6%, 0.07);
|
|
5
5
|
$shadow-l: 0px 20px 24px -4px hsla(218, 87%, 6%, 0.07);
|
package/dist/scss/_toolbar.scss
CHANGED
package/dist/types/dialogs.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ModalType } from '@/ld-dialog/dialog.manager';
|
|
2
|
+
|
|
1
3
|
export interface IDialogProps {
|
|
2
4
|
title: string;
|
|
3
5
|
content?: string;
|
|
@@ -62,7 +64,6 @@ export interface IModalInfo {
|
|
|
62
64
|
* ограничивая пользователя в действиях, пока окно не будет закрыто
|
|
63
65
|
*/
|
|
64
66
|
noModal?: boolean;
|
|
65
|
-
darkTitle?: boolean;
|
|
66
67
|
content?: string;
|
|
67
68
|
loading?: boolean;
|
|
68
69
|
component?: string;
|
|
@@ -106,6 +107,15 @@ export interface IModalInfo {
|
|
|
106
107
|
isChanged?: () => boolean;
|
|
107
108
|
}
|
|
108
109
|
|
|
110
|
+
enum ModalType {
|
|
111
|
+
Alert,
|
|
112
|
+
Prompt,
|
|
113
|
+
Info,
|
|
114
|
+
Confirm,
|
|
115
|
+
Select,
|
|
116
|
+
CreateEdit,
|
|
117
|
+
}
|
|
118
|
+
|
|
109
119
|
export interface IModalWindow extends IModalInfo {
|
|
110
120
|
id: number;
|
|
111
121
|
type: ModalType;
|
package/dist/utils/validators.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function webpackUniversalModuleDefinition(e,l){"object"===typeof exports&&"object"===typeof module?module.exports=l(require("@vuelidate/validators")):"function"===typeof define&&define.amd?define(["@vuelidate/validators"],l):"object"===typeof exports?exports["ldmui"]=l(require("@vuelidate/validators")):e["ldmui"]=l(e["@vuelidate/validators"])})(self,e=>(()=>{"use strict";var l={
|
|
1
|
+
(function webpackUniversalModuleDefinition(e,l){"object"===typeof exports&&"object"===typeof module?module.exports=l(require("@vuelidate/validators")):"function"===typeof define&&define.amd?define(["@vuelidate/validators"],l):"object"===typeof exports?exports["ldmui"]=l(require("@vuelidate/validators")):e["ldmui"]=l(e["@vuelidate/validators"])})(self,e=>(()=>{"use strict";var l={887(l){l.exports=e}},r={};function __webpack_require__(e){var u=r[e];if(void 0!==u)return u.exports;var t=r[e]={exports:{}};return l[e](t,t.exports,__webpack_require__),t.exports}(()=>{__webpack_require__.n=e=>{var l=e&&e.__esModule?()=>e["default"]:()=>e;return __webpack_require__.d(l,{a:l}),l}})(),(()=>{__webpack_require__.d=(e,l)=>{for(var r in l)__webpack_require__.o(l,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:l[r]})}})(),(()=>{__webpack_require__.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l)})(),(()=>{__webpack_require__.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var u={};__webpack_require__.r(u),__webpack_require__.d(u,{alphaNumRule:()=>alphaNumRule,alphaRule:()=>alphaRule,betweenRule:()=>betweenRule,decimalRule:()=>decimalRule,default:()=>a,emailRule:()=>emailRule,integerRule:()=>integerRule,ipAddressRule:()=>ipAddressRule,macAddressRule:()=>macAddressRule,maxLengthRule:()=>maxLengthRule,maxValueRule:()=>maxValueRule,minValueRule:()=>minValueRule,numericRule:()=>numericRule,phoneRule:()=>phoneRule,requiredRule:()=>requiredRule,urlRule:()=>urlRule,validators:()=>o});var t=__webpack_require__(887);const requiredRule=(e,l)=>r=>{if(null==r||"string"===typeof r&&""===r)return e?`Поле ${e} обязательно`:l||"Это поле обязательно";const u=t.required.$validator(r,null,null);return!("boolean"!==typeof u||!u)||(e?`Поле ${e} обязательно`:l||"Это поле обязательно")},maxLengthRule=e=>l=>{const r=(0,t.maxLength)(e).$validator(l,null,null);return!("boolean"!==typeof r||!r)||`Значение должно быть меньше ${e} символов`},alphaRule=()=>e=>{const l=t.alpha.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Разрешены только латинские буквы"},alphaNumRule=()=>e=>{const l=t.alphaNum.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Разрешены только латинские буквы и цифры"},betweenRule=(e,l)=>r=>{const u=(0,t.between)(e,l).$validator(r,null,null);return!("boolean"!==typeof u||!u)||`Значение должно быть в диапазоне от ${e} до ${l}`},decimalRule=()=>e=>{const l=t.decimal.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Значение должно быть целым или дробным числом"},emailRule=()=>e=>{const l=t.email.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Неверный формат адреса эл.почты"},integerRule=()=>e=>{const l=t.integer.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Значение должно быть целым числом"},ipAddressRule=()=>e=>{const l=t.ipAddress.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Неправильный формат IP-адреса"},macAddressRule=()=>e=>{const l=(0,t.macAddress)(":").$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Неправильный формат mac-адреса"},maxValueRule=e=>l=>{const r=(0,t.maxValue)(e).$validator(l,null,null);return!("boolean"!==typeof r||!r)||`Значение должно быть меньше ${e}`},minValueRule=e=>l=>{const r=(0,t.minValue)(e).$validator(l,null,null);return!("boolean"!==typeof r||!r)||`Значение должно быть больше ${e}`},numericRule=()=>e=>{const l=t.numeric.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Разрешены только цифры"},urlRule=()=>e=>{const l=t.url.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Неправильный формат URI"},phoneRule=()=>e=>{const l=/^[\d()+-]+$/;return l.test(e)||"Неправильный формат телефона"},o={requiredRule,maxLengthRule,alphaRule,alphaNumRule,betweenRule,decimalRule,emailRule,integerRule,ipAddressRule,macAddressRule,maxValueRule,minValueRule,numericRule,urlRule,phoneRule},a={};return u})());
|