@ldmjs/ui 1.0.0-dev-12 → 1.0.0-dev-13

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (C) 2024 by LANIT <nevezhin@lanit.ru>
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.
1
+ MIT License
2
+
3
+ Copyright (C) 2024 by LANIT <nevezhin@lanit.ru>
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 CHANGED
@@ -1,10 +1,6 @@
1
1
  # Dependencies
2
2
 
3
- - vue: >= 3.4
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/main.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,54 @@ 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
+
253
289
  # Utilities
254
290
 
255
291
  - isDefined
256
292
  - uidGen
257
293
  - delay
294
+ - deepValueGetter
295
+ - isObjectEmpty
296
+ - datetime
258
297
 
259
298
  # Directives
260
299
  - v-active