quasar-ui-danx 0.4.2 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/danx.es.js +7127 -6615
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +11 -5
- package/dist/danx.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/src/components/ActionTable/ActionTable.vue +28 -41
- package/src/components/ActionTable/Columns/ActionTableColumn.vue +19 -18
- package/src/components/ActionTable/Filters/CollapsableFiltersSidebar.vue +6 -6
- package/src/components/ActionTable/Filters/{FilterFieldList.vue → FilterList.vue} +26 -26
- package/src/components/ActionTable/Filters/FilterableField.vue +28 -31
- package/src/components/ActionTable/Filters/index.ts +2 -2
- package/src/components/ActionTable/Form/Fields/EditOnClickTextField.vue +71 -0
- package/src/components/ActionTable/Form/Fields/FieldLabel.vue +8 -13
- package/src/components/ActionTable/Form/Fields/MultiFileField.vue +48 -44
- package/src/components/ActionTable/Form/Fields/SelectField.vue +24 -38
- package/src/components/ActionTable/Form/Fields/SelectWithChildrenField.vue +28 -33
- package/src/components/ActionTable/Form/Fields/SingleFileField.vue +15 -15
- package/src/components/ActionTable/Form/Fields/SliderNumberField.vue +45 -0
- package/src/components/ActionTable/Form/Fields/TextField.vue +47 -66
- package/src/components/ActionTable/Form/Fields/index.ts +2 -0
- package/src/components/ActionTable/Form/RenderedForm.vue +50 -9
- package/src/components/ActionTable/Form/Utilities/MaxLengthCounter.vue +17 -0
- package/src/components/ActionTable/Form/Utilities/index.ts +1 -0
- package/src/components/ActionTable/Form/index.ts +1 -0
- package/src/components/ActionTable/Layouts/ActionTableLayout.vue +16 -15
- package/src/components/ActionTable/Toolbars/ActionToolbar.vue +6 -6
- package/src/components/ActionTable/listControls.ts +106 -166
- package/src/components/ActionTable/listHelpers.ts +2 -3
- package/src/components/ActionTable/tableColumns.ts +3 -27
- package/src/components/AuditHistory/AuditHistoryItemValue.vue +26 -26
- package/src/components/PanelsDrawer/PanelsDrawer.vue +17 -4
- package/src/components/PanelsDrawer/PanelsDrawerPanels.vue +6 -11
- package/src/components/PanelsDrawer/PanelsDrawerTabs.vue +20 -20
- package/src/components/Utility/Dialogs/ConfirmActionDialog.vue +39 -0
- package/src/components/Utility/Dialogs/ConfirmDialog.vue +10 -24
- package/src/components/Utility/Dialogs/DialogLayout.vue +10 -28
- package/src/components/Utility/Dialogs/FullscreenCarouselDialog.vue +42 -36
- package/src/components/Utility/Dialogs/index.ts +1 -0
- package/src/components/Utility/Files/FilePreview.vue +76 -73
- package/src/components/Utility/Layouts/ContentDrawer.vue +24 -31
- package/src/components/Utility/Tools/ActionVnode.vue +3 -3
- package/src/components/Utility/Tools/RenderVnode.vue +1 -1
- package/src/components/Utility/Transitions/MaxHeightTransition.vue +26 -0
- package/src/components/Utility/Transitions/index.ts +1 -0
- package/src/config/index.ts +36 -31
- package/src/helpers/FileUpload.ts +295 -297
- package/src/helpers/FlashMessages.ts +80 -71
- package/src/helpers/actions.ts +102 -82
- package/src/helpers/download.ts +189 -189
- package/src/helpers/downloadPdf.ts +55 -52
- package/src/helpers/formats.ts +151 -109
- package/src/helpers/index.ts +2 -0
- package/src/helpers/multiFileUpload.ts +72 -58
- package/src/helpers/objectStore.ts +52 -0
- package/src/helpers/request.ts +70 -51
- package/src/helpers/routes.ts +29 -0
- package/src/helpers/storage.ts +7 -3
- package/src/helpers/utils.ts +47 -29
- package/src/styles/quasar-reset.scss +16 -1
- package/src/styles/themes/danx/dialogs.scss +4 -0
- package/src/types/actions.d.ts +43 -0
- package/src/types/config.d.ts +15 -0
- package/src/types/controls.d.ts +99 -0
- package/src/types/dialogs.d.ts +32 -0
- package/src/types/fields.d.ts +20 -0
- package/src/types/files.d.ts +54 -0
- package/src/types/formats.d.ts +4 -0
- package/src/{components/ActionTable/Form/form.d.ts → types/forms.d.ts} +6 -0
- package/src/types/index.d.ts +12 -0
- package/src/types/requests.d.ts +13 -0
- package/src/types/shared.d.ts +15 -0
- package/src/types/tables.d.ts +27 -0
- package/types/index.d.ts +1 -1
- /package/src/components/ActionTable/Filters/{FilterFieldItem.vue → FilterItem.vue} +0 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<template>
|
2
|
+
<Transition name="maxHeight">
|
3
|
+
<slot />
|
4
|
+
</Transition>
|
5
|
+
</template>
|
6
|
+
|
7
|
+
<script setup lang="ts">
|
8
|
+
defineProps<{
|
9
|
+
maxHeight: string,
|
10
|
+
}>();
|
11
|
+
</script>
|
12
|
+
<style lang="scss">
|
13
|
+
.maxHeight-enter-active,
|
14
|
+
.maxHeight-leave-active {
|
15
|
+
transition: all .3s linear;
|
16
|
+
max-height: v-bind(maxHeight);
|
17
|
+
}
|
18
|
+
|
19
|
+
.maxHeight-enter-to, .maxHeight-leave-from {
|
20
|
+
max-height: v-bind(maxHeight);
|
21
|
+
}
|
22
|
+
|
23
|
+
.maxHeight-enter-from, .maxHeight-leave-to {
|
24
|
+
max-height: 0;
|
25
|
+
}
|
26
|
+
</style>
|
@@ -1,3 +1,4 @@
|
|
1
1
|
export { default as ListTransition } from "./ListTransition.vue";
|
2
|
+
export { default as MaxHeightTransition } from "./MaxHeightTransition.vue";
|
2
3
|
export { default as SlideTransition } from "./SlideTransition.vue";
|
3
4
|
export { default as StaggeredListTransition } from "./StaggeredListTransition.vue";
|
package/src/config/index.ts
CHANGED
@@ -1,36 +1,41 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { FileUploadOptions } from "../helpers";
|
1
|
+
import { shallowRef } from "vue";
|
2
|
+
import { DanxOptions } from "../types";
|
4
3
|
|
5
|
-
export
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
flashMessages: {
|
24
|
-
default: {},
|
25
|
-
success: {},
|
26
|
-
warning: {},
|
27
|
-
error: {}
|
28
|
-
}
|
4
|
+
export const danxOptions = shallowRef<DanxOptions>({
|
5
|
+
tinyMceApiKey: "set-api-key-in-danx-options",
|
6
|
+
request: {
|
7
|
+
baseUrl: "",
|
8
|
+
headers: {},
|
9
|
+
onUnauthorized: undefined
|
10
|
+
},
|
11
|
+
fileUpload: {
|
12
|
+
directory: "file-upload",
|
13
|
+
createPresignedUpload: null,
|
14
|
+
completePresignedUpload: null
|
15
|
+
},
|
16
|
+
flashMessages: {
|
17
|
+
default: {},
|
18
|
+
success: {},
|
19
|
+
warning: {},
|
20
|
+
error: {}
|
21
|
+
}
|
29
22
|
});
|
30
23
|
|
31
24
|
export function configure(options: DanxOptions) {
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
25
|
+
danxOptions.value = {
|
26
|
+
...danxOptions.value,
|
27
|
+
...options,
|
28
|
+
fileUpload: {
|
29
|
+
...danxOptions.value.fileUpload,
|
30
|
+
...options.fileUpload
|
31
|
+
},
|
32
|
+
flashMessages: {
|
33
|
+
...danxOptions.value.flashMessages,
|
34
|
+
...options.flashMessages
|
35
|
+
},
|
36
|
+
request: {
|
37
|
+
...danxOptions.value.request,
|
38
|
+
...options.request
|
39
|
+
}
|
40
|
+
};
|
36
41
|
}
|