@ldmjs/ui 2.0.0-beta.2 → 2.0.1-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 (154) hide show
  1. package/README.md +6 -13
  2. package/build/dist/components/ld-avatar.js +1 -0
  3. package/build/dist/components/ld-badge.js +1 -0
  4. package/build/dist/components/ld-breadcrumbs.js +1 -0
  5. package/build/dist/components/ld-button.js +1 -0
  6. package/build/dist/components/ld-calendar.js +1 -0
  7. package/build/dist/components/ld-checkbox.js +1 -0
  8. package/build/dist/components/ld-chip.js +1 -0
  9. package/build/dist/components/ld-combobox.js +1 -0
  10. package/build/dist/components/ld-data-iterator.js +1 -0
  11. package/build/dist/components/ld-datepicker.js +1 -0
  12. package/build/dist/components/ld-daterange.js +1 -0
  13. package/build/dist/components/ld-dialog.js +1 -0
  14. package/build/dist/components/ld-edit-list-box.js +1 -0
  15. package/build/dist/components/ld-edit-masked-text.js +1 -0
  16. package/build/dist/components/ld-edit-text.js +1 -0
  17. package/build/dist/components/ld-expansion-panel.js +1 -0
  18. package/build/dist/components/ld-expansion-panels.js +1 -0
  19. package/build/dist/components/ld-icon.js +1 -0
  20. package/build/dist/components/ld-loader.js +1 -0
  21. package/build/dist/components/ld-page-toolbar.js +1 -0
  22. package/build/dist/components/ld-pager.js +1 -0
  23. package/build/dist/components/ld-progress.js +1 -0
  24. package/build/dist/components/ld-radiobutton.js +1 -0
  25. package/build/dist/components/ld-radiogroup.js +1 -0
  26. package/build/dist/components/ld-select-list-box.js +1 -0
  27. package/build/dist/components/ld-select.js +1 -0
  28. package/build/dist/components/ld-slider.js +1 -0
  29. package/build/dist/components/ld-splitter.js +1 -0
  30. package/build/dist/components/ld-step.js +1 -0
  31. package/build/dist/components/ld-switch.js +1 -0
  32. package/build/dist/components/ld-tab.js +1 -0
  33. package/build/dist/components/ld-tabs.js +1 -0
  34. package/build/dist/components/ld-text-markup.js +1 -0
  35. package/build/dist/components/ld-text-viewer.js +1 -0
  36. package/build/dist/components/ld-textarea.js +1 -0
  37. package/build/dist/components/ld-timepicker.js +1 -0
  38. package/build/dist/components/ld-toggle-buttons.js +1 -0
  39. package/build/dist/components/ld-uploader.js +1 -0
  40. package/build/dist/i18n/en/en-En.json +66 -0
  41. package/{dist → build/dist}/index.d.ts +4 -1
  42. package/build/dist/index.js +1 -0
  43. package/build/dist/lib/imask.js +1 -0
  44. package/build/dist/lib/runtime-template.js +1 -0
  45. package/build/dist/lib/toastification.js +1 -0
  46. package/build/dist/scss/_badge.scss +204 -0
  47. package/{dist → build/dist}/scss/_buttons.scss +48 -3
  48. package/{dist → build/dist}/scss/_calendar.scss +44 -13
  49. package/{dist → build/dist}/scss/_chip.scss +126 -23
  50. package/{dist → build/dist}/scss/_inputs.scss +159 -80
  51. package/{dist → build/dist}/scss/_tabs.scss +113 -117
  52. package/build/dist/scss/_treeview.scss +34 -0
  53. package/{dist → build/dist}/scss/index.scss +1 -3
  54. package/{dist → build/dist}/scss/utils.scss +6 -0
  55. package/build/dist/types/daterange.d.ts +42 -0
  56. package/build/dist/types/options.d.ts +178 -0
  57. package/{dist → build/dist}/types/validators.d.ts +1 -1
  58. package/build/dist/utils/validators.js +1 -0
  59. package/package.json +9 -8
  60. package/dist/components/ld-avatar.js +0 -1
  61. package/dist/components/ld-badge.js +0 -1
  62. package/dist/components/ld-breadcrumbs.js +0 -1
  63. package/dist/components/ld-button.js +0 -1
  64. package/dist/components/ld-calendar.js +0 -1
  65. package/dist/components/ld-checkbox.js +0 -1
  66. package/dist/components/ld-chip.js +0 -1
  67. package/dist/components/ld-combobox.js +0 -1
  68. package/dist/components/ld-data-iterator.js +0 -1
  69. package/dist/components/ld-datepicker.js +0 -1
  70. package/dist/components/ld-dialog.js +0 -1
  71. package/dist/components/ld-edit-list-box.js +0 -1
  72. package/dist/components/ld-edit-masked-text.js +0 -1
  73. package/dist/components/ld-edit-text.js +0 -1
  74. package/dist/components/ld-expansion-panel.js +0 -1
  75. package/dist/components/ld-expansion-panels.js +0 -1
  76. package/dist/components/ld-icon.js +0 -1
  77. package/dist/components/ld-loader.js +0 -1
  78. package/dist/components/ld-page-toolbar.js +0 -1
  79. package/dist/components/ld-pager.js +0 -1
  80. package/dist/components/ld-progress.js +0 -1
  81. package/dist/components/ld-radiobutton.js +0 -1
  82. package/dist/components/ld-radiogroup.js +0 -1
  83. package/dist/components/ld-select-list-box.js +0 -1
  84. package/dist/components/ld-select.js +0 -1
  85. package/dist/components/ld-slider.js +0 -1
  86. package/dist/components/ld-splitter.js +0 -1
  87. package/dist/components/ld-step.js +0 -1
  88. package/dist/components/ld-switch.js +0 -1
  89. package/dist/components/ld-tab.js +0 -1
  90. package/dist/components/ld-tabs.js +0 -1
  91. package/dist/components/ld-text-markup.js +0 -1
  92. package/dist/components/ld-text-viewer.js +0 -1
  93. package/dist/components/ld-textarea.js +0 -1
  94. package/dist/components/ld-timepicker.js +0 -1
  95. package/dist/components/ld-toggle-buttons.js +0 -1
  96. package/dist/components/ld-uploader.js +0 -1
  97. package/dist/i18n/en/en-En.json +0 -18
  98. package/dist/index.js +0 -1
  99. package/dist/lib/imask.js +0 -1
  100. package/dist/lib/runtime-template.js +0 -1
  101. package/dist/lib/toastification.js +0 -1
  102. package/dist/scss/_badge.scss +0 -128
  103. package/dist/scss/_treeview.scss +0 -35
  104. package/dist/types/options.d.ts +0 -68
  105. package/dist/utils/validators.js +0 -1
  106. /package/{dist → build/dist}/fonts/Roboto-Medium.ttf +0 -0
  107. /package/{dist → build/dist}/fonts/Roboto-Medium.woff +0 -0
  108. /package/{dist → build/dist}/fonts/Roboto-Medium.woff2 +0 -0
  109. /package/{dist → build/dist}/fonts/Roboto-Regular.ttf +0 -0
  110. /package/{dist → build/dist}/fonts/Roboto-Regular.woff +0 -0
  111. /package/{dist → build/dist}/fonts/Roboto-Regular.woff2 +0 -0
  112. /package/{dist → build/dist}/fonts/Roboto-SemiBold.ttf +0 -0
  113. /package/{dist → build/dist}/fonts/Roboto-SemiBold.woff +0 -0
  114. /package/{dist → build/dist}/fonts/Roboto-SemiBold.woff2 +0 -0
  115. /package/{dist → build/dist}/i18n/ru/ru-Ru.json +0 -0
  116. /package/{dist → build/dist}/scss/_animations.scss +0 -0
  117. /package/{dist → build/dist}/scss/_avatar.scss +0 -0
  118. /package/{dist → build/dist}/scss/_breadcrumbs.scss +0 -0
  119. /package/{dist → build/dist}/scss/_checkbox.scss +0 -0
  120. /package/{dist → build/dist}/scss/_colors.scss +0 -0
  121. /package/{dist → build/dist}/scss/_dialogs.scss +0 -0
  122. /package/{dist → build/dist}/scss/_editor.scss +0 -0
  123. /package/{dist → build/dist}/scss/_expansions.scss +0 -0
  124. /package/{dist → build/dist}/scss/_fonts.scss +0 -0
  125. /package/{dist → build/dist}/scss/_iterator.scss +0 -0
  126. /package/{dist → build/dist}/scss/_loader.scss +0 -0
  127. /package/{dist → build/dist}/scss/_pager.scss +0 -0
  128. /package/{dist → build/dist}/scss/_progress.scss +0 -0
  129. /package/{dist → build/dist}/scss/_radiobutton.scss +0 -0
  130. /package/{dist → build/dist}/scss/_radiogroup.scss +0 -0
  131. /package/{dist → build/dist}/scss/_scroll.scss +0 -0
  132. /package/{dist → build/dist}/scss/_shadows.scss +0 -0
  133. /package/{dist → build/dist}/scss/_slider.scss +0 -0
  134. /package/{dist → build/dist}/scss/_splitter.scss +0 -0
  135. /package/{dist → build/dist}/scss/_step.scss +0 -0
  136. /package/{dist → build/dist}/scss/_switch.scss +0 -0
  137. /package/{dist → build/dist}/scss/_textmarkup.scss +0 -0
  138. /package/{dist → build/dist}/scss/_textviewer.scss +0 -0
  139. /package/{dist → build/dist}/scss/_time.scss +0 -0
  140. /package/{dist → build/dist}/scss/_toasted.scss +0 -0
  141. /package/{dist → build/dist}/scss/_toggle.scss +0 -0
  142. /package/{dist → build/dist}/scss/_toolbar.scss +0 -0
  143. /package/{dist → build/dist}/scss/_tooltip.scss +0 -0
  144. /package/{dist → build/dist}/scss/_uploader.scss +0 -0
  145. /package/{dist → build/dist}/scss/_variables.scss +0 -0
  146. /package/{dist → build/dist}/types/breadcrumbs.d.ts +0 -0
  147. /package/{dist → build/dist}/types/calendar.d.ts +0 -0
  148. /package/{dist → build/dist}/types/combobox.d.ts +0 -0
  149. /package/{dist → build/dist}/types/dialogs.d.ts +0 -0
  150. /package/{dist → build/dist}/types/form.d.ts +0 -0
  151. /package/{dist → build/dist}/types/iterator.d.ts +0 -0
  152. /package/{dist → build/dist}/types/pager.d.ts +0 -0
  153. /package/{dist → build/dist}/types/toasted.d.ts +0 -0
  154. /package/{dist → build/dist}/types/validation.d.ts +0 -0
@@ -1,128 +0,0 @@
1
- @use "sass:list";
2
-
3
- :root {
4
- --badge-s: 20px;
5
- --badge-m: 24px;
6
- --badge-l: 28px;
7
- --badge-rounded-border-radius: 24px;
8
- --badge-square-border-radius: 6px;
9
- }
10
-
11
- $colors: (
12
- "primary": (
13
- // bg
14
- var(--primary-l-5),
15
- // color
16
- var(--primary)
17
- ),
18
- "secondary": (
19
- var(--secondary-l-5),
20
- var(--secondary-d-2),
21
- ),
22
- "success": (
23
- var(--success-l-6),
24
- var(--success-d-1)
25
- ),
26
- "warning": (
27
- var(--warning-l-5),
28
- var(--warning-d-1)
29
- ),
30
- "error": (
31
- var(--error-l-6),
32
- var(--error),
33
- ),
34
- "grey": (
35
- var(--grey-l-5),
36
- var(--grey-d-3)
37
- ),
38
- );
39
-
40
- $sizearray: (
41
- "x-small": (
42
- // height
43
- var(--badge-s),
44
- // padding
45
- 6px,
46
- // font size
47
- var(--font-size),
48
- ),
49
- "small": (
50
- var(--badge-m),
51
- 8px,
52
- var(--text-body-s),
53
- ),
54
- "large": (
55
- var(--badge-l),
56
- 10px,
57
- var(--text-body-m),
58
- ),
59
- );
60
-
61
- body {
62
- .ld-badge {
63
- font-family: var(--medium);
64
- &.ld-badge--rounded {
65
- border-radius: var(--badge-rounded-border-radius);
66
- }
67
-
68
- &.ld-badge--square {
69
- border-radius: var(--badge-square-border-radius);
70
- }
71
-
72
- @each $color, $values in $colors {
73
- &.v-btn--variant-tonal.text-#{$color} {
74
- $bg: list.nth($values, 1);
75
- $c: list.nth($values, 2);
76
-
77
- &.ld-badge--fill {
78
- background-color: $c;
79
- color: var(--white);
80
-
81
- .ld-badge-dot {
82
- background-color: var(--white);
83
- }
84
- }
85
-
86
- &:not(.ld-badge--fill) {
87
- background-color: $bg;
88
- color: $c;
89
-
90
- .ld-badge-dot {
91
- background-color: $c;
92
- }
93
- }
94
- }
95
- }
96
-
97
- @each $size, $values in $sizearray {
98
- &.v-btn--size-#{$size} {
99
- $h: list.nth($values, 1);
100
- $p: list.nth($values, 2);
101
- $f: list.nth($values, 3);
102
- font-weight: 500;
103
- height: $h;
104
- padding: 0 $p !important;
105
-
106
- .v-btn__content {
107
- font-size: $f;
108
- line-height: calc($f + 4px);
109
- }
110
-
111
- &.ld-badge--circle {
112
- width: $h;
113
- max-width: $h;
114
- min-width: $h;
115
- padding: 0 0 !important;
116
- }
117
- }
118
- }
119
-
120
- .ld-badge-dot {
121
- display: block;
122
- width: 6px;
123
- height: 6px;
124
- border-radius: 3px;
125
- margin-right: 4px;
126
- }
127
- }
128
- }
@@ -1,35 +0,0 @@
1
- body {
2
- .ld-tree-view {
3
- .ld-tree-view__category {
4
- .ld-tree-view__item {
5
- font-family: var(--medium);
6
- font-size: var(--text-body-s);
7
- color: var(--text);
8
- min-height: var(--input-s);
9
-
10
- .ld-tree-view__opener {
11
- color: var(--grey-d-3);
12
- }
13
- }
14
-
15
- &--selected {
16
- & > .ld-tree-view__item {
17
- color: var(--primary-d-1);
18
- background-color: var(--primary-l-5);
19
- }
20
- }
21
- }
22
-
23
- &--hovered {
24
- & > ul {
25
- & > li {
26
- & > .ld-tree-view__item {
27
- &:hover {
28
- background-color: var(--primary-l-6);
29
- }
30
- }
31
- }
32
- }
33
- }
34
- }
35
- }
@@ -1,68 +0,0 @@
1
- /* eslint-disable-next-line @typescript-eslint/naming-convention */
2
- export interface ldmuiOptions {
3
- prefix?: string;
4
- aliases?: {
5
- 'ld-button'?: string;
6
- 'ld-icon'?: string;
7
- 'ld-chip'?: string;
8
- 'ld-badge'?: string;
9
- 'ld-avatar'?: string;
10
- 'ld-splitter'?: string;
11
- 'ld-loader'?: string;
12
- 'ld-progress'?: string;
13
- 'ld-toggle-buttons'?: string;
14
- 'ld-breadcrumbs'?: string;
15
- 'ld-edit-text'?: string;
16
- 'ld-datepicker'?: string;
17
- 'ld-calendar'?: string;
18
- 'ld-tab'?: string;
19
- 'ld-tabs'?: string;
20
- 'ld-page-toolbar'?: string;
21
- 'ld-select-list-box'?: string;
22
- 'ld-checkbox'?: string;
23
- 'ld-radiobutton'?: string;
24
- 'ld-radiogroup'?: string;
25
- 'ld-textarea'?: string;
26
- 'ld-select'?: string;
27
- 'ld-combobox'?: string;
28
- 'ld-timepicker'?: string;
29
- 'ld-text-viewer'?: string;
30
- 'ld-edit-masked-text'?: string;
31
- 'ld-text-markup'?: string;
32
- 'ld-switch'?: string;
33
- 'ld-dialog'?: string;
34
- 'ld-data-iterator'?: string;
35
- 'ld-pager'?: string;
36
- 'ld-edit-list-box'?: string;
37
- 'ld-uploader'?: string;
38
- 'ld-step'?: string;
39
- 'ld-slider'?: string;
40
- 'ld-datatable'?: string;
41
- 'ld-expansion-panels'?: string;
42
- 'ld-expansion-panel'?: string;
43
- };
44
- viewport?: {
45
- isMobile: string;
46
- isTablet: string;
47
- isDesktop: string;
48
- };
49
- language?: string;
50
- LdIcon?: {
51
- path: string;
52
- map: {
53
- icons: Array<[string, string]>;
54
- };
55
- };
56
- LdBreadcrumbs?: {
57
- home: {
58
- name: string;
59
- path: string;
60
- };
61
- };
62
- LdTabs?: {
63
- header: string;
64
- };
65
- LdPager?: {
66
- entityName: (contentType: unknown, count: number) => string;
67
- };
68
- }
@@ -1 +0,0 @@
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})());
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes