@ldmjs/ui 1.0.89 → 2.0.0-beta.0

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.
Files changed (101) hide show
  1. package/README.md +39 -94
  2. package/dist/components/ld-avatar.js +1 -0
  3. package/dist/components/ld-badge.js +1 -0
  4. package/dist/components/ld-breadcrumbs.js +1 -0
  5. package/dist/components/ld-button.js +1 -0
  6. package/dist/components/ld-calendar.js +1 -0
  7. package/dist/components/ld-checkbox.js +1 -0
  8. package/dist/components/ld-chip.js +1 -0
  9. package/dist/components/ld-combobox.js +1 -0
  10. package/dist/components/ld-data-iterator.js +1 -0
  11. package/dist/components/ld-datepicker.js +1 -0
  12. package/dist/components/ld-dialog.js +1 -0
  13. package/dist/components/ld-edit-list-box.js +1 -0
  14. package/dist/components/ld-edit-masked-text.js +1 -0
  15. package/dist/components/ld-edit-text.js +1 -0
  16. package/dist/components/ld-icon.js +1 -0
  17. package/dist/components/ld-loader.js +1 -0
  18. package/dist/components/ld-page-toolbar.js +1 -0
  19. package/dist/components/ld-pager.js +1 -0
  20. package/dist/components/ld-progress.js +1 -0
  21. package/dist/components/ld-radiobutton.js +1 -0
  22. package/dist/components/ld-radiogroup.js +1 -0
  23. package/dist/components/ld-select-list-box.js +1 -0
  24. package/dist/components/ld-select.js +1 -0
  25. package/dist/components/ld-slider.js +1 -0
  26. package/dist/components/ld-splitter.js +1 -0
  27. package/dist/components/ld-step.js +1 -0
  28. package/dist/components/ld-switch.js +1 -0
  29. package/dist/components/ld-tab.js +1 -0
  30. package/dist/components/ld-tabs.js +1 -0
  31. package/dist/components/ld-text-markup.js +1 -0
  32. package/dist/components/ld-text-viewer.js +1 -0
  33. package/dist/components/ld-textarea.js +1 -0
  34. package/dist/components/ld-timepicker.js +1 -0
  35. package/dist/components/ld-toggle-buttons.js +1 -0
  36. package/dist/components/ld-uploader.js +1 -0
  37. package/dist/fonts/Roboto-Medium.ttf +0 -0
  38. package/dist/fonts/Roboto-Medium.woff +0 -0
  39. package/dist/fonts/Roboto-Medium.woff2 +0 -0
  40. package/dist/fonts/Roboto-SemiBold.ttf +0 -0
  41. package/dist/fonts/Roboto-SemiBold.woff +0 -0
  42. package/dist/fonts/Roboto-SemiBold.woff2 +0 -0
  43. package/dist/i18n/ru/ru-Ru.json +49 -2
  44. package/dist/index.d.ts +18 -15
  45. package/dist/index.js +1 -21178
  46. package/dist/lib/runtime-template.js +1 -1
  47. package/dist/lib/toastification.js +1 -1
  48. package/dist/scss/_animations.scss +31 -12
  49. package/dist/scss/_avatar.scss +333 -0
  50. package/dist/scss/_badge.scss +128 -0
  51. package/dist/scss/_breadcrumbs.scss +133 -17
  52. package/dist/scss/_buttons.scss +584 -282
  53. package/dist/scss/_calendar.scss +154 -51
  54. package/dist/scss/_checkbox.scss +245 -0
  55. package/dist/scss/_chip.scss +163 -63
  56. package/dist/scss/_colors.scss +21 -19
  57. package/dist/scss/_dialogs.scss +285 -178
  58. package/dist/scss/_editor.scss +146 -0
  59. package/dist/scss/_fonts.scss +115 -0
  60. package/dist/scss/_inputs.scss +905 -138
  61. package/dist/scss/_loader.scss +163 -0
  62. package/dist/scss/_pager.scss +83 -16
  63. package/dist/scss/_progress.scss +282 -0
  64. package/dist/scss/_radiobutton.scss +218 -0
  65. package/dist/scss/_radiogroup.scss +86 -0
  66. package/dist/scss/_scroll.scss +65 -0
  67. package/dist/scss/_shadows.scss +47 -0
  68. package/dist/scss/_slider.scss +53 -0
  69. package/dist/scss/_splitter.scss +60 -0
  70. package/dist/scss/_step.scss +179 -0
  71. package/dist/scss/_switch.scss +192 -0
  72. package/dist/scss/_tabs.scss +318 -0
  73. package/dist/scss/_textmarkup.scss +47 -0
  74. package/dist/scss/_textviewer.scss +13 -0
  75. package/dist/scss/_toasted.scss +44 -22
  76. package/dist/scss/_toggle.scss +125 -0
  77. package/dist/scss/_toolbar.scss +40 -1
  78. package/dist/scss/_tooltip.scss +30 -0
  79. package/dist/scss/_treeview.scss +35 -0
  80. package/dist/scss/_uploader.scss +167 -0
  81. package/dist/scss/_variables.scss +5 -27
  82. package/dist/scss/index.scss +140 -16
  83. package/dist/scss/utils.scss +17 -0
  84. package/dist/types/breadcrumbs.d.ts +2 -0
  85. package/dist/types/calendar.d.ts +8 -73
  86. package/dist/types/combobox.d.ts +10 -0
  87. package/dist/types/dialogs.d.ts +26 -1
  88. package/dist/types/form.d.ts +6 -0
  89. package/dist/types/options.d.ts +8 -1
  90. package/dist/types/toasted.d.ts +4 -4
  91. package/dist/utils/validators.js +1 -1
  92. package/package.json +122 -120
  93. package/dist/css/calendar.css +0 -1066
  94. package/dist/css/index.css +0 -20
  95. package/dist/css/root.css +0 -86
  96. package/dist/lib/calendar.js +0 -1
  97. package/dist/lib/floating.js +0 -1
  98. package/dist/lib/multiselect.js +0 -1
  99. package/dist/scss/_multiselect.scss +0 -170
  100. package/dist/scss/_toasted-old.scss +0 -408
  101. package/dist/scss/index-old.scss +0 -16
@@ -1,408 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- $vt-namespace: "Vue-Toastification" !default;
4
- $vt-toast-min-width: 326px !default;
5
- $vt-toast-max-width: 600px !default;
6
- $vt-toast-background: #ffffff !default;
7
-
8
- $vt-toast-min-height: 64px !default;
9
- $vt-toast-max-height: 800px !default;
10
-
11
- $vt-color-default: #1976d2 !default;
12
- $vt-text-color-default: #fff !default;
13
- // $vt-color-info: #2196f3 !default;
14
- $vt-color-info: var(--primary-l-4);
15
- $vt-text-color-info: #fff !default;
16
- // $vt-color-success: #4caf50 !default;
17
- $vt-color-success: var(--success);
18
- $vt-text-color-success: #fff !default;
19
- // $vt-color-warning: #ffc107 !default;
20
- $vt-color-warning: var(--warning-l-2);
21
- $vt-text-color-warning: #fff !default;
22
- // $vt-color-error: #ff5252 !default;
23
- $vt-color-error: var(--error-l-2);
24
- $vt-text-color-error: #fff !default;
25
-
26
- $vt-color-progress-default: linear-gradient(
27
- to right,
28
- #4cd964,
29
- #5ac8fa,
30
- #007aff,
31
- #34aadc,
32
- #5856d6,
33
- #ff2d55
34
- ) !default;
35
-
36
- $vt-mobile: "only screen and (max-width : 600px)" !default;
37
- $vt-not-mobile: "only screen and (min-width : 600px)" !default;
38
- $vt-font-family: "Lato", Helvetica, "Roboto", Arial, sans-serif !default;
39
- $vt-z-index: 9999 !default;
40
-
41
- .#{$vt-namespace}__container {
42
- z-index: $vt-z-index;
43
- position: fixed;
44
- padding: 4px;
45
- width: $vt-toast-max-width;
46
- box-sizing: border-box;
47
- display: flex;
48
- min-height: 100%;
49
- color: #fff;
50
- flex-direction: column;
51
- pointer-events: none;
52
-
53
- @media #{$vt-not-mobile} {
54
- &.top-left,
55
- &.top-right,
56
- &.top-center {
57
- top: 1em;
58
- }
59
-
60
- &.bottom-left,
61
- &.bottom-right,
62
- &.bottom-center {
63
- bottom: 1em;
64
- flex-direction: column-reverse;
65
- }
66
-
67
- &.top-left,
68
- &.bottom-left {
69
- left: 1em;
70
- .#{$vt-namespace}__toast {
71
- margin-right: auto;
72
- }
73
- // Firefox does not apply rtl rules to containers and margins, it appears.
74
- // See https://github.com/Maronato/vue-toastification/issues/179
75
- @supports not (-moz-appearance:none) {
76
- .#{$vt-namespace}__toast--rtl {
77
- margin-right: unset;
78
- margin-left: auto;
79
- }
80
- }
81
- }
82
-
83
- &.top-right,
84
- &.bottom-right {
85
- right: 1em;
86
- .#{$vt-namespace}__toast {
87
- margin-left: auto;
88
- }
89
- // Firefox does not apply rtl rules to containers and margins, it appears.
90
- // See https://github.com/Maronato/vue-toastification/issues/179
91
- @supports not (-moz-appearance:none) {
92
- .#{$vt-namespace}__toast--rtl {
93
- margin-left: unset;
94
- margin-right: auto;
95
- }
96
- }
97
- }
98
-
99
- &.top-center,
100
- &.bottom-center {
101
- left: 50%;
102
- margin-left: calc(calc($vt-toast-max-width / 2 * (-1)));
103
- .#{$vt-namespace}__toast {
104
- margin-left: auto;
105
- margin-right: auto;
106
- }
107
- }
108
- }
109
-
110
- @media #{$vt-mobile} {
111
- width: 100vw;
112
- padding: 0;
113
- left: 0;
114
- margin: 0;
115
- .#{$vt-namespace}__toast {
116
- width: 100%;
117
- }
118
- &.top-left,
119
- &.top-right,
120
- &.top-center {
121
- top: 0;
122
- }
123
- &.bottom-left,
124
- &.bottom-right,
125
- &.bottom-center {
126
- bottom: 0;
127
- flex-direction: column-reverse;
128
- }
129
- }
130
- }
131
-
132
- .#{$vt-namespace}__toast {
133
- display: inline-flex;
134
- position: relative;
135
- max-height: $vt-toast-max-height;
136
- min-height: $vt-toast-min-height;
137
- box-sizing: border-box;
138
- margin-bottom: 1rem;
139
- padding: 22px 24px;
140
- border-radius: 8px;
141
- box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05);
142
- justify-content: space-between;
143
- font-family: $vt-font-family;
144
- max-width: $vt-toast-max-width;
145
- min-width: $vt-toast-min-width;
146
- pointer-events: auto;
147
- overflow: hidden;
148
- // overflow: hidden + border-radius does not work properly on Safari
149
- // The following magic line fixes it
150
- // https://stackoverflow.com/a/58283449
151
- transform: translateZ(0);
152
- direction: ltr;
153
- &--rtl {
154
- direction: rtl;
155
- }
156
-
157
- &--default {
158
- background-color: $vt-color-default;
159
- color: $vt-text-color-default;
160
- }
161
- &--info {
162
- background-color: $vt-color-info;
163
- color: $vt-text-color-info;
164
- }
165
- &--success {
166
- background-color: $vt-color-success;
167
- color: $vt-text-color-success;
168
- }
169
- &--error {
170
- background-color: $vt-color-error;
171
- color: $vt-text-color-error;
172
- }
173
- &--warning {
174
- background-color: $vt-color-warning;
175
- color: $vt-text-color-warning;
176
- }
177
-
178
- @media #{$vt-mobile} {
179
- border-radius: 0px;
180
- margin-bottom: 0.5rem;
181
- }
182
-
183
- &-body {
184
- flex: 1;
185
- line-height: 24px;
186
- font-size: 16px;
187
- word-break: break-word;
188
- white-space: pre-wrap;
189
- }
190
-
191
- &-component-body {
192
- flex: 1;
193
- }
194
-
195
- &.disable-transition {
196
- animation: none !important;
197
- }
198
- }
199
-
200
- .#{$vt-namespace}__close-button {
201
- font-weight: bold;
202
- font-size: 24px;
203
- line-height: 24px;
204
- background: transparent;
205
- outline: none;
206
- border: none;
207
- padding: 0;
208
- padding-left: 10px;
209
- cursor: pointer;
210
- align-items: center;
211
- color: #fff;
212
- opacity: 0.3;
213
- transition: visibility 0s, opacity 0.2s linear;
214
- &:hover,
215
- &:focus {
216
- opacity: 1;
217
- }
218
- .#{$vt-namespace}__toast:not(:hover) &.show-on-hover {
219
- opacity: 0;
220
- }
221
- .#{$vt-namespace}__toast--rtl & {
222
- padding-left: unset;
223
- padding-right: 10px;
224
- }
225
- }
226
-
227
- @keyframes scale-x-frames {
228
- 0% {
229
- transform: scaleX(1);
230
- }
231
- 100% {
232
- transform: scaleX(0);
233
- }
234
- }
235
-
236
- .#{$vt-namespace}__progress-bar {
237
- position: absolute;
238
- bottom: 0;
239
- left: 0;
240
- width: 100%;
241
- height: 5px;
242
- z-index: ($vt-z-index + 1);
243
- background-color: rgba(255, 255, 255, 0.7);
244
- transform-origin: left;
245
- animation: scale-x-frames linear 1 forwards;
246
- .#{$vt-namespace}__toast--rtl & {
247
- right: 0;
248
- left: unset;
249
- transform-origin: right;
250
- }
251
- }
252
-
253
- .#{$vt-namespace}__icon {
254
- margin: auto 18px auto 0px;
255
- background: transparent;
256
- outline: none;
257
- border: none;
258
- padding: 0;
259
- transition: 0.3s ease;
260
- align-items: center;
261
- width: 20px;
262
- height: 100%;
263
- .#{$vt-namespace}__toast--rtl & {
264
- margin: auto 0px auto 18px;
265
- }
266
- }
267
-
268
- /* ----------------------------------------------
269
- /* Animations
270
- /* ---------------------------------------------- */
271
-
272
- .#{$vt-namespace}__bounce-enter-active {
273
- &.top-left,
274
- &.bottom-left {
275
- animation-name: bounceInLeft;
276
- }
277
- &.top-right,
278
- &.bottom-right {
279
- animation-name: bounceInRight;
280
- }
281
- &.top-center {
282
- animation-name: bounceInDown;
283
- }
284
- &.bottom-center {
285
- animation-name: bounceInUp;
286
- }
287
- }
288
-
289
- .#{$vt-namespace}__bounce-leave-active:not(.disable-transition) {
290
- &.top-left,
291
- &.bottom-left {
292
- animation-name: bounceOutLeft;
293
- }
294
- &.top-right,
295
- &.bottom-right {
296
- animation-name: bounceOutRight;
297
- }
298
- &.top-center {
299
- animation-name: bounceOutUp;
300
- }
301
- &.bottom-center {
302
- animation-name: bounceOutDown;
303
- }
304
- }
305
-
306
- .#{$vt-namespace}__bounce-leave-active,
307
- .#{$vt-namespace}__bounce-enter-active {
308
- animation-duration: 750ms;
309
- animation-fill-mode: both;
310
- }
311
-
312
- .#{$vt-namespace}__bounce-move {
313
- transition-timing-function: ease-in-out;
314
- transition-property: all;
315
- transition-duration: 400ms;
316
- }
317
-
318
- .#{$vt-namespace}__fade-enter-active {
319
- &.top-left,
320
- &.bottom-left {
321
- animation-name: fadeInLeft;
322
- }
323
- &.top-right,
324
- &.bottom-right {
325
- animation-name: fadeInRight;
326
- }
327
- &.top-center {
328
- animation-name: fadeInTop;
329
- }
330
- &.bottom-center {
331
- animation-name: fadeInBottom;
332
- }
333
- }
334
-
335
- .#{$vt-namespace}__fade-leave-active:not(.disable-transition) {
336
- &.top-left,
337
- &.bottom-left {
338
- animation-name: fadeOutLeft;
339
- }
340
- &.top-right,
341
- &.bottom-right {
342
- animation-name: fadeOutRight;
343
- }
344
- &.top-center {
345
- animation-name: fadeOutTop;
346
- }
347
- &.bottom-center {
348
- animation-name: fadeOutBottom;
349
- }
350
- }
351
-
352
- .#{$vt-namespace}__fade-leave-active,
353
- .#{$vt-namespace}__fade-enter-active {
354
- animation-duration: 750ms;
355
- animation-fill-mode: both;
356
- }
357
-
358
- .#{$vt-namespace}__fade-move {
359
- transition-timing-function: ease-in-out;
360
- transition-property: all;
361
- transition-duration: 400ms;
362
- }
363
-
364
- .#{$vt-namespace}__slideBlurred-enter-active {
365
- &.top-left,
366
- &.bottom-left {
367
- animation-name: slideInBlurredLeft;
368
- }
369
- &.top-right,
370
- &.bottom-right {
371
- animation-name: slideInBlurredRight;
372
- }
373
- &.top-center {
374
- animation-name: slideInBlurredTop;
375
- }
376
- &.bottom-center {
377
- animation-name: slideInBlurredBottom;
378
- }
379
- }
380
-
381
- .#{$vt-namespace}__slideBlurred-leave-active:not(.disable-transition) {
382
- &.top-left,
383
- &.bottom-left {
384
- animation-name: slideOutBlurredLeft;
385
- }
386
- &.top-right,
387
- &.bottom-right {
388
- animation-name: slideOutBlurredRight;
389
- }
390
- &.top-center {
391
- animation-name: slideOutBlurredTop;
392
- }
393
- &.bottom-center {
394
- animation-name: slideOutBlurredBottom;
395
- }
396
- }
397
-
398
- .#{$vt-namespace}__slideBlurred-leave-active,
399
- .#{$vt-namespace}__slideBlurred-enter-active {
400
- animation-duration: 750ms;
401
- animation-fill-mode: both;
402
- }
403
-
404
- .#{$vt-namespace}__slideBlurred-move {
405
- transition-timing-function: ease-in-out;
406
- transition-property: all;
407
- transition-duration: 400ms;
408
- }
@@ -1,16 +0,0 @@
1
- @import 'fonts';
2
- @import 'colors';
3
- @import 'variables';
4
- @import 'buttons';
5
- @import 'chip';
6
- @import 'breadcrumbs';
7
- @import 'inputs';
8
- @import 'calendar';
9
- @import 'toolbar';
10
- @import 'multiselect';
11
- @import 'toasted-old';
12
- @import 'dialogs';
13
- @import 'iterator';
14
- @import 'pager';
15
- @import 'animations';
16
- @import 'time';