@ldmjs/ui 1.0.0-dev-12 → 1.0.0-dev-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/README.md +60 -6
- package/dist/calendar.js +1 -15796
- package/dist/css/index.css +22 -86
- package/dist/css/root.css +86 -0
- package/dist/floating.js +1 -0
- package/dist/imask.js +1 -0
- package/dist/index.d.ts +24 -1
- package/dist/index.js +4340 -302
- package/dist/multiselect.js +1 -0
- package/dist/scss/_multiselect.scss +164 -0
- package/dist/scss/_variables.scss +1 -0
- package/dist/scss/index.scss +1 -0
- package/dist/types/options.d.ts +4 -0
- package/dist/types/validation.d.ts +16 -0
- package/package.json +3 -2
- package/dist/css/main.css +0 -14
package/README.md
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
# Dependencies
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
- vuetify: >= 3.5
|
|
5
|
-
- lodash: >= 4
|
|
6
|
-
- @vuelidate: >= 2
|
|
7
|
-
- vue-imask: >= 6
|
|
3
|
+
??????????
|
|
8
4
|
|
|
9
5
|
# Installation
|
|
10
6
|
|
|
@@ -21,7 +17,7 @@ yarn add @ldmjs/ui@latest
|
|
|
21
17
|
```js
|
|
22
18
|
import { createApp } from 'vue';
|
|
23
19
|
import '@ldmjs/ui/dist/css/index.css';
|
|
24
|
-
import '@ldmjs/ui/dist/css/
|
|
20
|
+
import '@ldmjs/ui/dist/css/root.css';
|
|
25
21
|
import '@ldmjs/ui/dist/css/calendar.css';
|
|
26
22
|
import '@ldmjs/ui/dist/scss';
|
|
27
23
|
import ldmui from '@ldmjs/ui';
|
|
@@ -250,11 +246,69 @@ const items = [
|
|
|
250
246
|
</ld-page-toolbar>
|
|
251
247
|
```
|
|
252
248
|
|
|
249
|
+
## #ld-select-list-box
|
|
250
|
+
|
|
251
|
+
### use select list box
|
|
252
|
+
|
|
253
|
+
```html
|
|
254
|
+
<ld-select-list-box
|
|
255
|
+
ref="selectListBox"
|
|
256
|
+
v-model="selectedValue"
|
|
257
|
+
v-model:modelItems="selectedItems"
|
|
258
|
+
:handlers="handlers"
|
|
259
|
+
:multiselect="multiselect"
|
|
260
|
+
:required="required"
|
|
261
|
+
label="Ld Select List Box"
|
|
262
|
+
item-text="first_name"
|
|
263
|
+
:persistent-hint="persistentHint"
|
|
264
|
+
:option-hint="optionHint"
|
|
265
|
+
input-hint="Select Box Hint"
|
|
266
|
+
>
|
|
267
|
+
<template #tag="{ item, onRemove }">
|
|
268
|
+
tag template
|
|
269
|
+
</template>
|
|
270
|
+
<template #option="{ item }">
|
|
271
|
+
option template
|
|
272
|
+
</template>
|
|
273
|
+
<template #option-hint="{ item }">
|
|
274
|
+
option hint
|
|
275
|
+
</template>
|
|
276
|
+
</ld-select-list-box>
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
```js
|
|
280
|
+
// methods for work with vacabularies
|
|
281
|
+
const handlers = {
|
|
282
|
+
fetchData: () => { return [] },
|
|
283
|
+
fetchItem: (ids) => { return [] },
|
|
284
|
+
serverSearch: (searchTerm) => { return [] },
|
|
285
|
+
select: () => { return [] },
|
|
286
|
+
}
|
|
287
|
+
```
|
|
288
|
+
## #ld-radiogroup
|
|
289
|
+
|
|
290
|
+
### use radio inputs
|
|
291
|
+
|
|
292
|
+
```html
|
|
293
|
+
<ld-radiogroup v-model="radioValue" label="Ld Radio Buttons">
|
|
294
|
+
<ld-radiobutton label="Radio Button 1" :value="0" />
|
|
295
|
+
<ld-radiobutton label="Radio Button 2" :value="1" />
|
|
296
|
+
</ld-radiogroup>
|
|
297
|
+
```
|
|
298
|
+
|
|
253
299
|
# Utilities
|
|
254
300
|
|
|
255
301
|
- isDefined
|
|
256
302
|
- uidGen
|
|
257
303
|
- delay
|
|
304
|
+
- deepValueGetter
|
|
305
|
+
- isObjectEmpty
|
|
306
|
+
- datetime
|
|
258
307
|
|
|
259
308
|
# Directives
|
|
260
309
|
- v-active
|
|
310
|
+
|
|
311
|
+
# Mixins
|
|
312
|
+
|
|
313
|
+
- ValidateMixin // class-component style
|
|
314
|
+
- ValidateMixinOptions // options style
|