quasar-ui-danx 0.4.28 → 0.4.29
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +35 -35
- package/dist/danx.es.js +2927 -2814
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +48 -48
- package/dist/danx.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/ActionTable/Form/Fields/EditableDiv.vue +47 -17
- package/src/components/ActionTable/Form/Fields/TextField.vue +2 -0
- package/src/components/ActionTable/Form/RenderedForm.vue +7 -20
- package/src/components/ActionTable/Form/Utilities/MaxLengthCounter.vue +1 -1
- package/src/components/ActionTable/Form/Utilities/SaveStateIndicator.vue +37 -0
- package/src/components/ActionTable/Form/Utilities/index.ts +1 -0
- package/src/components/ActionTable/Layouts/ActionTableLayout.vue +3 -3
- package/src/components/ActionTable/{listControls.ts → controls.ts} +11 -7
- package/src/components/ActionTable/index.ts +1 -1
- package/src/components/DragAndDrop/ListItemDraggable.vue +8 -4
- package/src/components/DragAndDrop/dragAndDrop.ts +2 -1
- package/src/components/DragAndDrop/listDragAndDrop.ts +19 -6
- package/src/helpers/FileUpload.ts +4 -4
- package/src/helpers/files.ts +56 -43
- package/src/types/actions.d.ts +45 -27
- package/src/types/controls.d.ts +22 -41
- package/src/types/fields.d.ts +1 -0
- package/src/types/files.d.ts +2 -2
- package/src/types/index.d.ts +5 -0
- package/src/types/shared.d.ts +9 -0
- package/src/types/tables.d.ts +3 -3
package/README.md
CHANGED
@@ -14,20 +14,20 @@
|
|
14
14
|
```vue
|
15
15
|
|
16
16
|
<template>
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
17
|
+
<ActionTable
|
18
|
+
label="Danx"
|
19
|
+
name="danx"
|
20
|
+
v-model:quasar-pagination="quasarPagination"
|
21
|
+
v-model:selected-rows="selectedRows"
|
22
|
+
:columns="columns"
|
23
|
+
/>
|
24
24
|
</template>
|
25
25
|
<script setup>
|
26
|
-
|
27
|
-
|
26
|
+
import 'quasar-ui-danx/dist/index.css';
|
27
|
+
import { ActionTable, useTableColumns, useControls } from 'quasar-ui-danx';
|
28
28
|
|
29
|
-
|
30
|
-
|
29
|
+
const { columns } = useTableColumns([{ name: 'name', label: 'Name' }, { name: 'age', label: 'Age' }]);
|
30
|
+
const { quasarPagination, selectedRows } = useControls({});
|
31
31
|
</script>
|
32
32
|
```
|
33
33
|
|
@@ -57,23 +57,23 @@ yarn add -D sass vite-svg-loader tailwindcss eslint eslint-plugin-import autopre
|
|
57
57
|
|
58
58
|
```ts
|
59
59
|
export default ({ command }) => {
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
60
|
+
// For development w/ HMR, load the danx library + styles directly from the directory
|
61
|
+
// NOTE: These are the paths relative to the mounted quasar-ui-danx directory inside the mva docker container
|
62
|
+
const danx = (command === "serve" ? {
|
63
|
+
"quasar-ui-danx": resolve(__dirname, "../quasar-ui-danx/ui/src"),
|
64
|
+
"quasar-ui-danx-styles": resolve(__dirname, "../quasar-ui-danx/src/styles/index.scss")
|
65
|
+
} : {
|
66
|
+
// Import from quasar-ui-danx module for production
|
67
|
+
"quasar-ui-danx-styles": "quasar-ui-danx/dist/style.css"
|
68
|
+
});
|
69
|
+
|
70
|
+
return defineConfig({
|
71
|
+
resolve: {
|
72
|
+
alias: {
|
73
|
+
...danx
|
74
|
+
}
|
75
|
+
},
|
76
|
+
});
|
77
77
|
}
|
78
78
|
```
|
79
79
|
|
@@ -123,13 +123,13 @@ npx tailwindcss init -p
|
|
123
123
|
export const colors = {}
|
124
124
|
|
125
125
|
export default {
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
126
|
+
content: [],
|
127
|
+
theme: {
|
128
|
+
extend: {
|
129
|
+
colors
|
130
|
+
}
|
131
|
+
},
|
132
|
+
plugins: []
|
133
133
|
}
|
134
134
|
```
|
135
135
|
|