@ldmjs/ui 2.0.0 → 2.0.1-beta.1

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.
@@ -1,68 +1,178 @@
1
+ /* eslint-disable-next-line @typescript-eslint/naming-convention */
2
+ export interface ldmuiExtension {
3
+ name: string;
4
+ alias: string;
5
+ props?: {
6
+ [key: string]: unknown;
7
+ };
8
+ }
9
+
10
+ /* eslint-disable-next-line @typescript-eslint/naming-convention */
11
+ export interface ldmuiAliases {
12
+ 'ld-button'?: string;
13
+ 'ld-icon'?: string;
14
+ 'ld-chip'?: string;
15
+ 'ld-badge'?: string;
16
+ 'ld-avatar'?: string;
17
+ 'ld-splitter'?: string;
18
+ 'ld-loader'?: string;
19
+ 'ld-progress'?: string;
20
+ 'ld-toggle-buttons'?: string;
21
+ 'ld-breadcrumbs'?: string;
22
+ 'ld-edit-text'?: string;
23
+ 'ld-datepicker'?: string;
24
+ 'ld-daterange'?: string;
25
+ 'ld-calendar'?: string;
26
+ 'ld-tab'?: string;
27
+ 'ld-tabs'?: string;
28
+ 'ld-page-toolbar'?: string;
29
+ 'ld-select-list-box'?: string;
30
+ 'ld-checkbox'?: string;
31
+ 'ld-radiobutton'?: string;
32
+ 'ld-radiogroup'?: string;
33
+ 'ld-textarea'?: string;
34
+ 'ld-select'?: string;
35
+ 'ld-combobox'?: string;
36
+ 'ld-timepicker'?: string;
37
+ 'ld-text-viewer'?: string;
38
+ 'ld-edit-masked-text'?: string;
39
+ 'ld-text-markup'?: string;
40
+ 'ld-switch'?: string;
41
+ 'ld-dialog'?: string;
42
+ 'ld-data-iterator'?: string;
43
+ 'ld-pager'?: string;
44
+ 'ld-edit-list-box'?: string;
45
+ 'ld-uploader'?: string;
46
+ 'ld-step'?: string;
47
+ 'ld-slider'?: string;
48
+ 'ld-datatable'?: string;
49
+ 'ld-expansion-panels'?: string;
50
+ 'ld-expansion-panel'?: string;
51
+ }
52
+
1
53
  /* eslint-disable-next-line @typescript-eslint/naming-convention */
2
54
  export interface ldmuiOptions {
3
55
  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
- };
56
+ aliases?: ldmuiAliases;
57
+ extensions?: Array<ldmuiExtension>;
58
+ language?: string;
44
59
  viewport?: {
45
60
  isMobile: string;
46
61
  isTablet: string;
47
62
  isDesktop: string;
48
63
  };
49
- language?: string;
50
- LdIcon?: {
51
- path: string;
52
- map?: {
53
- icons: Array<[string, string]>;
54
- };
64
+ LdAvatar?: {
65
+ [key: string]: unknown;
66
+ };
67
+ LdBadge?: {
68
+ [key: string]: unknown;
55
69
  };
56
70
  LdBreadcrumbs?: {
57
- home: {
58
- name: string;
59
- path: string;
60
- };
71
+ [key: string]: unknown;
61
72
  };
62
- LdTabs?: {
63
- header: string;
73
+ LdButton?: {
74
+ [key: string]: unknown;
75
+ };
76
+ LdCalendar?: {
77
+ [key: string]: unknown;
78
+ };
79
+ LdCheckbox?: {
80
+ [key: string]: unknown;
81
+ };
82
+ LdChip?: {
83
+ [key: string]: unknown;
84
+ };
85
+ LdCombobox?: {
86
+ [key: string]: unknown;
87
+ };
88
+ LdDataIterator?: {
89
+ [key: string]: unknown;
90
+ };
91
+ LdDatatable?: {
92
+ [key: string]: unknown;
93
+ };
94
+ LdDatepicker?: {
95
+ [key: string]: unknown;
96
+ };
97
+ LdDialog?: {
98
+ [key: string]: unknown;
99
+ };
100
+ LdEditListBox?: {
101
+ [key: string]: unknown;
102
+ };
103
+ LdEditMaskedText?: {
104
+ [key: string]: unknown;
105
+ };
106
+ LdEditText?: {
107
+ [key: string]: unknown;
108
+ };
109
+ LdExpansionPanel?: {
110
+ [key: string]: unknown;
111
+ };
112
+ LdExpansionPanels?: {
113
+ [key: string]: unknown;
114
+ };
115
+ LdIcon?: {
116
+ [key: string]: unknown;
117
+ };
118
+ LdLoader?: {
119
+ [key: string]: unknown;
120
+ };
121
+ LdPageToolbar?: {
122
+ [key: string]: unknown;
64
123
  };
65
124
  LdPager?: {
66
- entityName: (contentType: unknown, count: number) => string;
125
+ [key: string]: unknown;
126
+ };
127
+ LdProgress?: {
128
+ [key: string]: unknown;
129
+ };
130
+ LdRadioButton?: {
131
+ [key: string]: unknown;
132
+ };
133
+ LdRadioGroup?: {
134
+ [key: string]: unknown;
135
+ };
136
+ LdSelect?: {
137
+ [key: string]: unknown;
138
+ };
139
+ LdSelectListBox?: {
140
+ [key: string]: unknown;
141
+ };
142
+ LdSlider?: {
143
+ [key: string]: unknown;
144
+ };
145
+ LdSplitter?: {
146
+ [key: string]: unknown;
147
+ };
148
+ LdStep?: {
149
+ [key: string]: unknown;
150
+ };
151
+ LdSwitch?: {
152
+ [key: string]: unknown;
153
+ };
154
+ LdTab?: {
155
+ [key: string]: unknown;
156
+ };
157
+ LdTabs?: {
158
+ [key: string]: unknown;
159
+ };
160
+ LdTextMarkup?: {
161
+ [key: string]: unknown;
162
+ };
163
+ LdTextViewer?: {
164
+ [key: string]: unknown;
165
+ };
166
+ LdTextarea?: {
167
+ [key: string]: unknown;
168
+ };
169
+ LdTimepicker?: {
170
+ [key: string]: unknown;
171
+ };
172
+ LdToggleButtons?: {
173
+ [key: string]: unknown;
174
+ };
175
+ LdUploader?: {
176
+ [key: string]: unknown;
67
177
  };
68
178
  }
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable no-nested-ternary */
2
- import { ValidateFunction } from './validation';
3
2
  import {
4
3
  alpha,
5
4
  alphaNum,
@@ -16,6 +15,7 @@ import {
16
15
  required,
17
16
  url,
18
17
  } from '@vuelidate/validators';
18
+ import { ValidateFunction } from './validation';
19
19
 
20
20
  /** requiredRule(name?: string) - Обязательность заполнения поля */
21
21
  export const requiredRule: (name?: string) => ValidateFunction;
package/package.json CHANGED
@@ -1,128 +1,112 @@
1
- {
2
- "name": "@ldmjs/ui",
3
- "version": "2.0.0",
4
- "description": "ldm ui",
5
- "main": "dist/index.js",
6
- "engines": {
7
- "node": ">=22",
8
- "npm": ">=11"
9
- },
10
- "scripts": {
11
- "dev": "cross-env NODE_ENV=development webpack serve --config config/webpack.config.dev.js --progress --profile --stats-error-details",
12
- "build": "cross-env NODE_ENV=production webpack --config config/webpack.config.build.js",
13
- "build:demo": "cross-env NODE_ENV=production webpack --config config/webpack.config.build.demo.js",
14
- "build:all": "npm run build && npm run build:demo && npm run build:box",
15
- "demo": "cross-env NODE_ENV=production webpack serve --config config/webpack.config.demo.js --progress --profile",
16
- "build:box:stage1": "cross-env NODE_ENV=production webpack --config config/webpack.config.box.js --progress --profile",
17
- "build:box:stage2": "node config/index.js",
18
- "build:box": "npm run build:box:stage1 && npm run build:box:stage2",
19
- "test": "npm run clear && jest --runInBand --no-cache",
20
- "clear": "node config/clear.js",
21
- "lint": "npx eslint --cache --ext .ts src",
22
- "version": "node -v",
23
- "pub": "node config/publish.js && npm publish --access=public"
24
- },
25
- "repository": {
26
- "type": "git",
27
- "url": ""
28
- },
29
- "keywords": [
30
- "ldm",
31
- "ui"
32
- ],
33
- "author": "LANIT",
34
- "license": "MIT",
35
- "homepage": "",
36
- "files": [
37
- "dist/"
38
- ],
39
- "devDependencies": {
40
- "@babel/core": "7.28.4",
41
- "@babel/plugin-proposal-decorators": "7.28.0",
42
- "@babel/plugin-proposal-export-default-from": "7.27.1",
43
- "@babel/plugin-transform-class-properties": "7.27.1",
44
- "@babel/plugin-transform-export-namespace-from": "7.27.1",
45
- "@babel/plugin-transform-private-methods": "7.28.6",
46
- "@babel/plugin-transform-runtime": "7.28.3",
47
- "@babel/plugin-transform-typescript": "7.28.0",
48
- "@babel/preset-env": "7.28.3",
49
- "@babel/preset-typescript": "7.27.1",
50
- "@ldmjs/editor": "2.0.0",
51
- "@ldmjs/treeview": "2.0.0",
52
- "@popperjs/core": "2.11.8",
53
- "@types/babel__core": "7.20.5",
54
- "@types/babel__plugin-transform-runtime": "7.9.5",
55
- "@types/babel__preset-env": "7.10.0",
56
- "@types/eslint": "8.56.10",
57
- "@types/jest": "29.5.12",
58
- "@types/lodash-es": "4.17.12",
59
- "@types/markdown-it": "14.1.2",
60
- "@typescript-eslint/eslint-plugin": "6.21.0",
61
- "@typescript-eslint/parser": "6.21.0",
62
- "@vue/test-utils": "2.4.6",
63
- "@vue/vue3-jest": "29.2.6",
64
- "@vuelidate/core": "2.0.3",
65
- "@vuelidate/validators": "2.0.4",
66
- "agentkeepalive": "4.2.1",
67
- "babel-jest": "29.5.0",
68
- "babel-plugin-const-enum": "1.2.0",
69
- "baseline-browser-mapping": "2.9.19",
70
- "cache-loader": "4.1.0",
71
- "copy-webpack-plugin": "12.0.2",
72
- "cross-env": "7.0.3",
73
- "css-loader": "6.8.1",
74
- "eslint": "8.56.0",
75
- "eslint-config-prettier": "8.10.0",
76
- "eslint-formatter-friendly": "7.0.0",
77
- "eslint-plugin-prettier": "5.1.3",
78
- "eslint-plugin-promise": "6.1.1",
79
- "eslint-plugin-simple-import-sort": "10.0.0",
80
- "eslint-plugin-vue": "9.21.1",
81
- "eslint-plugin-vuetify": "2.1.1",
82
- "eslint-webpack-plugin": "3.2.0",
83
- "html-webpack-plugin": "5.6.4",
84
- "imask": "7.6.1",
85
- "jest": "30.2.0",
86
- "jest-environment-jsdom": "30.2.0",
87
- "jest-transform-stub": "2.0.0",
88
- "lodash-es": "4.17.21",
89
- "markdown-it": "14.1.0",
90
- "md-editor-v3": "6.3.1",
91
- "mini-css-extract-plugin": "2.9.4",
92
- "mol_time_all": "1.1.1504",
93
- "postcss-loader": "8.2.0",
94
- "prettier": "3.6.2",
95
- "prettier-eslint": "16.4.2",
96
- "sass": "1.93.2",
97
- "sass-loader": "16.0.3",
98
- "string-replace-loader": "3.1.0",
99
- "style-loader": "4.0.0",
100
- "terser-webpack-plugin": "5.3.16",
101
- "thread-loader": "4.0.4",
102
- "ts-jest": "29.4.5",
103
- "ts-loader": "9.5.4",
104
- "typescript": "4.9.5",
105
- "vue": "3.5.22",
106
- "vue-class-component": "8.0.0-rc.1",
107
- "vue-eslint-parser": "10.2.0",
108
- "vue-imask": "7.6.1",
109
- "vue-loader": "17.4.2",
110
- "vue-property-decorator": "10.0.0-rc.3",
111
- "vue-screen-utils": "1.0.0-beta.13",
112
- "vuetify": "3.12.2",
113
- "webpack": "5.105.2",
114
- "webpack-cli": "6.0.1",
115
- "webpack-dev-server": "5.2.2",
116
- "webpack-plugin-vuetify": "3.1.2"
117
- },
118
- "dependencies": {
119
- "@ldmjs/core": "2.0.1",
120
- "@ldmjs/datatable": "2.0.0-beta.3"
121
- },
122
- "volta": {
123
- "node": "22.15.0",
124
- "yarn": "4.5.3",
125
- "npm": "11.4.2"
126
- },
127
- "packageManager": "yarn@4.9.2"
128
- }
1
+ {
2
+ "name": "@ldmjs/ui",
3
+ "version": "2.0.1-beta.1",
4
+ "description": "ldm ui",
5
+ "main": "dist/index.js",
6
+ "engines": {
7
+ "node": ">=22",
8
+ "npm": ">=11"
9
+ },
10
+ "scripts": {
11
+ "demo": "cross-env NODE_ENV=production webpack serve --config webpack.config.js --progress --profile",
12
+ "pub": "node publish.js && npm publish --access=public --tag=latest"
13
+ },
14
+ "keywords": [
15
+ "ldm",
16
+ "ui"
17
+ ],
18
+ "author": "LANIT",
19
+ "license": "MIT",
20
+ "homepage": "",
21
+ "files": [
22
+ "dist/"
23
+ ],
24
+ "devDependencies": {
25
+ "@babel/core": "7.28.4",
26
+ "@babel/plugin-proposal-decorators": "7.28.0",
27
+ "@babel/plugin-proposal-export-default-from": "7.27.1",
28
+ "@babel/plugin-transform-class-properties": "7.27.1",
29
+ "@babel/plugin-transform-export-namespace-from": "7.27.1",
30
+ "@babel/plugin-transform-private-methods": "7.28.6",
31
+ "@babel/plugin-transform-runtime": "7.28.3",
32
+ "@babel/plugin-transform-typescript": "7.28.0",
33
+ "@babel/preset-env": "7.28.3",
34
+ "@babel/preset-typescript": "7.27.1",
35
+ "@ldmjs/editor": "2.0.0",
36
+ "@popperjs/core": "2.11.8",
37
+ "@types/babel__core": "7.20.5",
38
+ "@types/babel__plugin-transform-runtime": "7.9.5",
39
+ "@types/babel__preset-env": "7.10.0",
40
+ "@types/eslint": "8.56.10",
41
+ "@types/jest": "29.5.12",
42
+ "@types/lodash-es": "4.17.12",
43
+ "@types/markdown-it": "14.1.2",
44
+ "@typescript-eslint/eslint-plugin": "6.21.0",
45
+ "@typescript-eslint/parser": "6.21.0",
46
+ "@vue/test-utils": "2.4.6",
47
+ "@vue/vue3-jest": "29.2.6",
48
+ "@vuelidate/core": "2.0.3",
49
+ "@vuelidate/validators": "2.0.4",
50
+ "agentkeepalive": "4.2.1",
51
+ "babel-jest": "29.5.0",
52
+ "babel-plugin-const-enum": "1.2.0",
53
+ "baseline-browser-mapping": "2.9.19",
54
+ "cache-loader": "4.1.0",
55
+ "copy-webpack-plugin": "12.0.2",
56
+ "cross-env": "7.0.3",
57
+ "css-loader": "6.8.1",
58
+ "eslint": "8.56.0",
59
+ "eslint-config-prettier": "8.10.0",
60
+ "eslint-formatter-friendly": "7.0.0",
61
+ "eslint-plugin-prettier": "5.1.3",
62
+ "eslint-plugin-promise": "6.1.1",
63
+ "eslint-plugin-simple-import-sort": "10.0.0",
64
+ "eslint-plugin-vue": "9.21.1",
65
+ "eslint-plugin-vuetify": "2.1.1",
66
+ "eslint-webpack-plugin": "3.2.0",
67
+ "html-webpack-plugin": "5.6.4",
68
+ "imask": "7.6.1",
69
+ "jest": "30.2.0",
70
+ "jest-environment-jsdom": "30.2.0",
71
+ "jest-transform-stub": "2.0.0",
72
+ "lodash-es": "4.17.21",
73
+ "markdown-it": "14.1.0",
74
+ "md-editor-v3": "6.3.1",
75
+ "mini-css-extract-plugin": "2.9.4",
76
+ "mol_time_all": "1.1.1504",
77
+ "postcss-loader": "8.2.0",
78
+ "prettier": "3.6.2",
79
+ "prettier-eslint": "16.4.2",
80
+ "sass": "1.93.2",
81
+ "sass-loader": "16.0.3",
82
+ "string-replace-loader": "3.1.0",
83
+ "style-loader": "4.0.0",
84
+ "terser-webpack-plugin": "5.3.16",
85
+ "thread-loader": "4.0.4",
86
+ "ts-jest": "29.4.5",
87
+ "ts-loader": "9.5.4",
88
+ "typescript": "4.9.5",
89
+ "vue": "3.5.22",
90
+ "vue-class-component": "8.0.0-rc.1",
91
+ "vue-eslint-parser": "10.2.0",
92
+ "vue-imask": "7.6.1",
93
+ "vue-loader": "17.4.2",
94
+ "vue-property-decorator": "10.0.0-rc.3",
95
+ "vue-screen-utils": "1.0.0-beta.13",
96
+ "vuetify": "3.12.3",
97
+ "webpack": "5.105.2",
98
+ "webpack-cli": "6.0.1",
99
+ "webpack-dev-server": "5.2.2",
100
+ "webpack-plugin-vuetify": "3.1.2"
101
+ },
102
+ "dependencies": {
103
+ "@ldmjs/core": "2.0.1",
104
+ "@ldmjs/datatable": "2.0.0",
105
+ "@ldmjs/treeview": "2.0.3"
106
+ },
107
+ "volta": {
108
+ "node": "22.15.0",
109
+ "yarn": "4.5.3",
110
+ "npm": "11.4.2"
111
+ }
112
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (C) 2024 by ldmjs
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
package/README.md DELETED
@@ -1,97 +0,0 @@
1
- # Dependencies
2
-
3
- "@ldmjs/core": "1.0.0",
4
- "vue": "3.4.21",
5
- "vue-class-component": "8.0.0-rc.1",
6
- "vue-property-decorator": "10.0.0-rc.3",
7
- "vuetify": "3.6.8",
8
- "vue-screen-utils": "1.0.0-beta.13",
9
- "lodash-es": "4.17.21",
10
- "md-editor-v3": "4.15.6",
11
- "@vuelidate/core": "2.0.2",
12
- "@vuelidate/validators": "2.0.2",
13
-
14
- # Documentation
15
-
16
- http://172.19.93.149:8101
17
-
18
- # Library contains
19
-
20
- - ld-button
21
- - ld-icon
22
- - ld-chip
23
- - ld-badge
24
- - ld-avatar
25
- - ld-splitter
26
- - ld-loader
27
- - ld-progress
28
- - ld-toggle-buttons
29
- - ld-breadcrumbs
30
- - ld-edit-text
31
- - ld-datepicker
32
- - ld-calendar
33
- - ld-tab
34
- - ld-tabs
35
- - ld-page-toolbar
36
- - ld-select-list-box
37
- - ld-checkbox
38
- - ld-radiobutton
39
- - ld-radiogroup
40
- - ld-textarea
41
- - ld-select
42
- - ld-combobox
43
- - ld-timepicker
44
- - ld-text-viewer
45
- - ld-edit-masked-text
46
- - ld-text-markup
47
- - ld-switch
48
- - ld-dialog
49
- - ld-data-iterator
50
- - ld-pager
51
- - ld-edit-list-box
52
- - ld-uploader
53
- - ld-step
54
- - ld-slider
55
- - ld-datatable
56
- - ld-expansion-panels
57
- - ld-expansion-panel
58
-
59
- # Utilities
60
-
61
- - awaiting
62
- - base64
63
- .encode
64
- .decode
65
- .isValid
66
- - cookie
67
- .get
68
- .set
69
- .delete
70
- - delay
71
- - deepValueGetter
72
- - removeDuplicates
73
- - isDefined
74
- - isObjectEmpty
75
- - pluralizeNoun
76
- - strings
77
- .camelCase
78
- .capitalize
79
- - datetime
80
- .toDate
81
- .localToISO
82
- .dateToLocal
83
- .compare
84
- - uidGen
85
- - fileToArrayBuffer
86
- - fileToBase64
87
- - base64ToUint8Array
88
- - base64ToBlob
89
- - uint8ArrayToHex
90
- - hexToArrayBuffer
91
- - uint8ArrayToBase64
92
- - arrayBufferToUint8Array
93
-
94
- # Mixins
95
-
96
- - ValidateMixin // class-component style
97
- - ValidateMixinOptions // options style