@ldmjs/ui 2.1.12 → 2.1.14
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.js +1 -1
- package/dist/lib/runtime-template.js +1 -1
- package/dist/lib/toastification.js +1 -1
- package/dist/scss/_fonts.scss +14 -2
- package/dist/scss/_inputs.scss +7 -1
- package/dist/types/dialogs.d.ts +4 -0
- package/dist/utils/validators.js +1 -1
- package/package.json +2 -2
package/dist/types/dialogs.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export interface IInterativeDialogProps extends IDialogProps {
|
|
|
16
16
|
fullHeight?: boolean;
|
|
17
17
|
okTitle?: string;
|
|
18
18
|
cancelTitle?: string;
|
|
19
|
+
okColor?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'grey';
|
|
20
|
+
cancelColor?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'grey';
|
|
19
21
|
closable?: boolean;
|
|
20
22
|
hideFooter?: boolean;
|
|
21
23
|
}
|
|
@@ -68,6 +70,8 @@ export interface IModalInfo {
|
|
|
68
70
|
selectAsOk?: boolean;
|
|
69
71
|
okTitle?: string;
|
|
70
72
|
cancelTitle?: string;
|
|
73
|
+
okColor?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'grey';
|
|
74
|
+
cancelColor?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'grey';
|
|
71
75
|
okResult?: number | string | boolean | IModalResult<IViewModel<number | string>>;
|
|
72
76
|
cancelResult?: number | string | boolean | IModalResult<IViewModel<number | string>>;
|
|
73
77
|
settedResult?: boolean;
|
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={9347(e,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.validators=l.phoneRule=l.urlRule=l.numericRule=l.minValueRule=l.maxValueRule=l.macAddressRule=l.ipAddressRule=l.integerRule=l.emailRule=l.decimalRule=l.betweenRule=l.alphaNumRule=l.alphaRule=l.maxLengthRule=l.requiredRule=void 0;const n=u(887),requiredRule=(e,l)=>u=>{if(null==u||"string"===typeof u&&""===u)return e?`Поле ${e} обязательно`:l||"Это поле обязательно";const t=n.required.$validator(u,null,null);return!("boolean"!==typeof t||!t)||(e?`Поле ${e} обязательно`:l||"Это поле обязательно")};l.requiredRule=requiredRule;const maxLengthRule=e=>l=>{const u=(0,n.maxLength)(e).$validator(l,null,null);return!("boolean"!==typeof u||!u)||`Значение должно быть меньше ${e} символов`};l.maxLengthRule=maxLengthRule;const alphaRule=()=>e=>{const l=n.alpha.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Разрешены только латинские буквы"};l.alphaRule=alphaRule;const alphaNumRule=()=>e=>{const l=n.alphaNum.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Разрешены только латинские буквы и цифры"};l.alphaNumRule=alphaNumRule;const betweenRule=(e,l)=>u=>{const t=(0,n.between)(e,l).$validator(u,null,null);return!("boolean"!==typeof t||!t)||`Значение должно быть в диапазоне от ${e} до ${l}`};l.betweenRule=betweenRule;const decimalRule=()=>e=>{const l=n.decimal.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Значение должно быть целым или дробным числом"};l.decimalRule=decimalRule;const emailRule=()=>e=>{const l=n.email.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Неверный формат адреса эл.почты"};l.emailRule=emailRule;const integerRule=()=>e=>{const l=n.integer.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Значение должно быть целым числом"};l.integerRule=integerRule;const ipAddressRule=()=>e=>{const l=n.ipAddress.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Неправильный формат IP-адреса"};l.ipAddressRule=ipAddressRule;const macAddressRule=()=>e=>{const l=(0,n.macAddress)(":").$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Неправильный формат mac-адреса"};l.macAddressRule=macAddressRule;const maxValueRule=e=>l=>{const u=(0,n.maxValue)(e).$validator(l,null,null);return!("boolean"!==typeof u||!u)||`Значение должно быть меньше ${e}`};l.maxValueRule=maxValueRule;const minValueRule=e=>l=>{const u=(0,n.minValue)(e).$validator(l,null,null);return!("boolean"!==typeof u||!u)||`Значение должно быть больше ${e}`};l.minValueRule=minValueRule;const numericRule=()=>e=>{const l=n.numeric.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Разрешены только цифры"};l.numericRule=numericRule;const urlRule=()=>e=>{const l=n.url.$validator(e,null,null);return!("boolean"!==typeof l||!l)||"Неправильный формат URI"};l.urlRule=urlRule;const phoneRule=()=>e=>{const l=/^[\d()+-]+$/;return l.test(e)||"Неправильный формат телефона"};l.phoneRule=phoneRule,l.validators={requiredRule:l.requiredRule,maxLengthRule:l.maxLengthRule,alphaRule:l.alphaRule,alphaNumRule:l.alphaNumRule,betweenRule:l.betweenRule,decimalRule:l.decimalRule,emailRule:l.emailRule,integerRule:l.integerRule,ipAddressRule:l.ipAddressRule,macAddressRule:l.macAddressRule,maxValueRule:l.maxValueRule,minValueRule:l.minValueRule,numericRule:l.numericRule,urlRule:l.urlRule,phoneRule:l.phoneRule},l["default"]={}},887(l){l.exports=e}},u={};function __webpack_require__(e){var n=u[e];if(void 0!==n)return n.exports;var t=u[e]={exports:{}};return l[e](t,t.exports,__webpack_require__),t.exports}var n=__webpack_require__(9347);return n})());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldmjs/ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.14",
|
|
4
4
|
"description": "ldm ui",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@babel/plugin-transform-typescript": "7.28.0",
|
|
33
33
|
"@babel/preset-env": "7.28.3",
|
|
34
34
|
"@babel/preset-typescript": "7.27.1",
|
|
35
|
-
"@ldmjs/datatable": "2.0.
|
|
35
|
+
"@ldmjs/datatable": "2.0.7",
|
|
36
36
|
"@ldmjs/editor": "2.0.0",
|
|
37
37
|
"@ldmjs/treeview": "2.0.3",
|
|
38
38
|
"@popperjs/core": "2.11.8",
|