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.
Files changed (75) hide show
  1. package/dist/danx.es.js +7127 -6615
  2. package/dist/danx.es.js.map +1 -1
  3. package/dist/danx.umd.js +11 -5
  4. package/dist/danx.umd.js.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/package.json +3 -1
  7. package/src/components/ActionTable/ActionTable.vue +28 -41
  8. package/src/components/ActionTable/Columns/ActionTableColumn.vue +19 -18
  9. package/src/components/ActionTable/Filters/CollapsableFiltersSidebar.vue +6 -6
  10. package/src/components/ActionTable/Filters/{FilterFieldList.vue → FilterList.vue} +26 -26
  11. package/src/components/ActionTable/Filters/FilterableField.vue +28 -31
  12. package/src/components/ActionTable/Filters/index.ts +2 -2
  13. package/src/components/ActionTable/Form/Fields/EditOnClickTextField.vue +71 -0
  14. package/src/components/ActionTable/Form/Fields/FieldLabel.vue +8 -13
  15. package/src/components/ActionTable/Form/Fields/MultiFileField.vue +48 -44
  16. package/src/components/ActionTable/Form/Fields/SelectField.vue +24 -38
  17. package/src/components/ActionTable/Form/Fields/SelectWithChildrenField.vue +28 -33
  18. package/src/components/ActionTable/Form/Fields/SingleFileField.vue +15 -15
  19. package/src/components/ActionTable/Form/Fields/SliderNumberField.vue +45 -0
  20. package/src/components/ActionTable/Form/Fields/TextField.vue +47 -66
  21. package/src/components/ActionTable/Form/Fields/index.ts +2 -0
  22. package/src/components/ActionTable/Form/RenderedForm.vue +50 -9
  23. package/src/components/ActionTable/Form/Utilities/MaxLengthCounter.vue +17 -0
  24. package/src/components/ActionTable/Form/Utilities/index.ts +1 -0
  25. package/src/components/ActionTable/Form/index.ts +1 -0
  26. package/src/components/ActionTable/Layouts/ActionTableLayout.vue +16 -15
  27. package/src/components/ActionTable/Toolbars/ActionToolbar.vue +6 -6
  28. package/src/components/ActionTable/listControls.ts +106 -166
  29. package/src/components/ActionTable/listHelpers.ts +2 -3
  30. package/src/components/ActionTable/tableColumns.ts +3 -27
  31. package/src/components/AuditHistory/AuditHistoryItemValue.vue +26 -26
  32. package/src/components/PanelsDrawer/PanelsDrawer.vue +17 -4
  33. package/src/components/PanelsDrawer/PanelsDrawerPanels.vue +6 -11
  34. package/src/components/PanelsDrawer/PanelsDrawerTabs.vue +20 -20
  35. package/src/components/Utility/Dialogs/ConfirmActionDialog.vue +39 -0
  36. package/src/components/Utility/Dialogs/ConfirmDialog.vue +10 -24
  37. package/src/components/Utility/Dialogs/DialogLayout.vue +10 -28
  38. package/src/components/Utility/Dialogs/FullscreenCarouselDialog.vue +42 -36
  39. package/src/components/Utility/Dialogs/index.ts +1 -0
  40. package/src/components/Utility/Files/FilePreview.vue +76 -73
  41. package/src/components/Utility/Layouts/ContentDrawer.vue +24 -31
  42. package/src/components/Utility/Tools/ActionVnode.vue +3 -3
  43. package/src/components/Utility/Tools/RenderVnode.vue +1 -1
  44. package/src/components/Utility/Transitions/MaxHeightTransition.vue +26 -0
  45. package/src/components/Utility/Transitions/index.ts +1 -0
  46. package/src/config/index.ts +36 -31
  47. package/src/helpers/FileUpload.ts +295 -297
  48. package/src/helpers/FlashMessages.ts +80 -71
  49. package/src/helpers/actions.ts +102 -82
  50. package/src/helpers/download.ts +189 -189
  51. package/src/helpers/downloadPdf.ts +55 -52
  52. package/src/helpers/formats.ts +151 -109
  53. package/src/helpers/index.ts +2 -0
  54. package/src/helpers/multiFileUpload.ts +72 -58
  55. package/src/helpers/objectStore.ts +52 -0
  56. package/src/helpers/request.ts +70 -51
  57. package/src/helpers/routes.ts +29 -0
  58. package/src/helpers/storage.ts +7 -3
  59. package/src/helpers/utils.ts +47 -29
  60. package/src/styles/quasar-reset.scss +16 -1
  61. package/src/styles/themes/danx/dialogs.scss +4 -0
  62. package/src/types/actions.d.ts +43 -0
  63. package/src/types/config.d.ts +15 -0
  64. package/src/types/controls.d.ts +99 -0
  65. package/src/types/dialogs.d.ts +32 -0
  66. package/src/types/fields.d.ts +20 -0
  67. package/src/types/files.d.ts +54 -0
  68. package/src/types/formats.d.ts +4 -0
  69. package/src/{components/ActionTable/Form/form.d.ts → types/forms.d.ts} +6 -0
  70. package/src/types/index.d.ts +12 -0
  71. package/src/types/requests.d.ts +13 -0
  72. package/src/types/shared.d.ts +15 -0
  73. package/src/types/tables.d.ts +27 -0
  74. package/types/index.d.ts +1 -1
  75. /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";
@@ -1,36 +1,41 @@
1
- import { QNotifyCreateOptions } from "quasar";
2
- import { Ref, shallowRef } from "vue";
3
- import { FileUploadOptions } from "../helpers";
1
+ import { shallowRef } from "vue";
2
+ import { DanxOptions } from "../types";
4
3
 
5
- export interface DanxOptions {
6
- tinyMceApiKey: string;
7
- fileUpload: FileUploadOptions;
8
- flashMessages: {
9
- default: QNotifyCreateOptions;
10
- success: QNotifyCreateOptions;
11
- warning: QNotifyCreateOptions;
12
- error: QNotifyCreateOptions;
13
- };
14
- }
15
-
16
- export const danxOptions: Ref<DanxOptions> = shallowRef({
17
- tinyMceApiKey: "set-api-key-in-danx-options",
18
- fileUpload: {
19
- directory: "file-upload",
20
- presignedUploadUrl: null,
21
- uploadCompletedUrl: null
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
- danxOptions.value = {
33
- ...danxOptions.value,
34
- ...options
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
  }