quasar-ui-danx 0.3.10 → 0.3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/dist/danx.es.js +599 -593
  2. package/dist/danx.es.js.map +1 -1
  3. package/dist/danx.umd.js +5 -5
  4. package/dist/danx.umd.js.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/package.json +1 -1
  7. package/src/components/ActionTable/ActionMenu.vue +7 -7
  8. package/src/components/ActionTable/ActionTable.vue +33 -29
  9. package/src/components/ActionTable/ActionTableColumn.vue +37 -15
  10. package/src/components/ActionTable/ActionTableHeaderColumn.vue +9 -9
  11. package/src/components/ActionTable/Columns/ColumnListItem.vue +33 -10
  12. package/src/components/ActionTable/Columns/ColumnSettingsDialog.vue +23 -19
  13. package/src/components/ActionTable/Columns/TitleColumnFormat.vue +5 -3
  14. package/src/components/ActionTable/Columns/VisibleColumnsToggleButtons.vue +24 -22
  15. package/src/components/ActionTable/EmptyTableState.vue +4 -2
  16. package/src/components/ActionTable/Filters/CollapsableFiltersSidebar.vue +9 -9
  17. package/src/components/ActionTable/Filters/FilterFieldItem.vue +7 -5
  18. package/src/components/ActionTable/Filters/FilterFieldList.vue +21 -21
  19. package/src/components/ActionTable/Filters/FilterListToggle.vue +13 -10
  20. package/src/components/ActionTable/Filters/FilterToolbarLayout.vue +14 -7
  21. package/src/components/ActionTable/Filters/FilterableField.vue +75 -70
  22. package/src/components/ActionTable/Form/Fields/BooleanField.vue +9 -9
  23. package/src/components/ActionTable/Form/Fields/ConfirmPasswordField.vue +7 -7
  24. package/src/components/ActionTable/Form/Fields/DateField.vue +4 -4
  25. package/src/components/ActionTable/Form/Fields/DateRangeField.vue +9 -9
  26. package/src/components/ActionTable/Form/Fields/DateTimeField.vue +13 -10
  27. package/src/components/ActionTable/Form/Fields/DateTimePicker.vue +36 -14
  28. package/src/components/ActionTable/Form/Fields/EditableDiv.vue +3 -3
  29. package/src/components/ActionTable/Form/Fields/FieldLabel.vue +2 -2
  30. package/src/components/ActionTable/Form/Fields/FileUploadButton.vue +23 -20
  31. package/src/components/ActionTable/Form/Fields/InlineDateTimeField.vue +10 -10
  32. package/src/components/ActionTable/Form/Fields/IntegerField.vue +6 -6
  33. package/src/components/ActionTable/Form/Fields/LabeledInput.vue +20 -17
  34. package/src/components/ActionTable/Form/Fields/MultiFileField.vue +35 -35
  35. package/src/components/ActionTable/Form/Fields/MultiKeywordField.vue +15 -15
  36. package/src/components/ActionTable/Form/Fields/NewPasswordField.vue +4 -4
  37. package/src/components/ActionTable/Form/Fields/NumberField.vue +11 -11
  38. package/src/components/ActionTable/Form/Fields/NumberRangeField.vue +11 -11
  39. package/src/components/ActionTable/Form/Fields/SelectDrawer.vue +38 -33
  40. package/src/components/ActionTable/Form/Fields/SelectField.vue +37 -35
  41. package/src/components/ActionTable/Form/Fields/SelectWithChildrenField.vue +19 -15
  42. package/src/components/ActionTable/Form/Fields/SingleFileField.vue +29 -28
  43. package/src/components/ActionTable/Form/Fields/TextField.vue +22 -22
  44. package/src/components/ActionTable/Form/Fields/WysiwygField.vue +13 -13
  45. package/src/components/ActionTable/Form/RenderedForm.vue +5 -1
  46. package/src/components/ActionTable/TableSummaryRow.vue +15 -15
  47. package/src/components/AuditHistory/AuditHistoryItem.vue +12 -6
  48. package/src/components/AuditHistory/AuditHistoryItemValue.vue +6 -6
  49. package/src/components/DragAndDrop/HandleDraggable.vue +21 -21
  50. package/src/components/DragAndDrop/ListItemDraggable.vue +19 -15
  51. package/src/components/PanelsDrawer/PanelsDrawer.vue +18 -11
  52. package/src/components/PanelsDrawer/PanelsDrawerPanels.vue +9 -5
  53. package/src/components/PanelsDrawer/PanelsDrawerTabs.vue +18 -13
  54. package/src/components/Utility/Buttons/ExportButton.vue +5 -1
  55. package/src/components/Utility/Buttons/RefreshButton.vue +2 -2
  56. package/src/components/Utility/Controls/PreviousNextControls.vue +8 -8
  57. package/src/components/Utility/Dialogs/ConfirmDialog.vue +32 -29
  58. package/src/components/Utility/Dialogs/FullScreenDialog.vue +12 -9
  59. package/src/components/Utility/Dialogs/FullscreenCarouselDialog.vue +30 -26
  60. package/src/components/Utility/Dialogs/InfoDialog.vue +25 -22
  61. package/src/components/Utility/Dialogs/InputDialog.vue +7 -7
  62. package/src/components/Utility/Files/FilePreview.vue +64 -47
  63. package/src/components/Utility/Files/SvgImg.vue +7 -4
  64. package/src/components/Utility/Formats/GpsCoordinatesFormat.vue +11 -3
  65. package/src/components/Utility/Layouts/CollapsableSidebar.vue +15 -15
  66. package/src/components/Utility/Layouts/ContentDrawer.vue +8 -8
  67. package/src/components/Utility/Popovers/InteractiveTooltip.vue +7 -7
  68. package/src/components/Utility/Popovers/PopoverMenu.vue +21 -21
  69. package/src/components/Utility/Tabs/BadgeTab.vue +9 -7
  70. package/src/components/Utility/Tools/ActionVnode.vue +5 -5
  71. package/src/components/Utility/Tools/RenderComponent.vue +11 -9
  72. package/src/components/Utility/Transitions/StaggeredListTransition.vue +7 -7
  73. package/src/config/index.ts +7 -4
  74. package/src/helpers/FileUpload.ts +1 -1
  75. package/src/helpers/FlashMessages.ts +5 -5
  76. package/src/vendor/tinymce-config.ts +0 -1
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <TransitionGroup
3
- ref="list"
4
- tag="div"
5
- appear
6
- :css="false"
7
- @before-enter="onBeforeEnter"
8
- @enter="onEnter"
9
- @leave="onLeave"
3
+ ref="list"
4
+ tag="div"
5
+ appear
6
+ :css="false"
7
+ @before-enter="onBeforeEnter"
8
+ @enter="onEnter"
9
+ @leave="onLeave"
10
10
  >
11
11
  <slot />
12
12
  </TransitionGroup>
@@ -1,7 +1,9 @@
1
1
  import { QNotifyCreateOptions } from "quasar";
2
+ import { Ref, shallowRef } from "vue";
2
3
  import { FileUploadOptions } from "../helpers";
3
4
 
4
5
  export interface DanxOptions {
6
+ tinyMceApiKey: string;
5
7
  fileUpload: FileUploadOptions;
6
8
  flashMessages: {
7
9
  default: QNotifyCreateOptions;
@@ -11,7 +13,8 @@ export interface DanxOptions {
11
13
  };
12
14
  }
13
15
 
14
- export let danxOptions: DanxOptions = {
16
+ export const danxOptions: Ref<DanxOptions> = shallowRef({
17
+ tinyMceApiKey: "set-api-key-in-danx-options",
15
18
  fileUpload: {
16
19
  directory: "file-upload",
17
20
  presignedUploadUrl: null,
@@ -23,11 +26,11 @@ export let danxOptions: DanxOptions = {
23
26
  warning: {},
24
27
  error: {}
25
28
  }
26
- };
29
+ });
27
30
 
28
31
  export function configure(options: DanxOptions) {
29
- danxOptions = {
30
- ...danxOptions,
32
+ danxOptions.value = {
33
+ ...danxOptions.value,
31
34
  ...options
32
35
  };
33
36
  }
@@ -38,7 +38,7 @@ export class FileUpload {
38
38
  this.onAllCompleteCb = null;
39
39
 
40
40
  this.options = {
41
- ...danxOptions.fileUpload,
41
+ ...danxOptions.value.fileUpload,
42
42
  ...options
43
43
  };
44
44
 
@@ -37,7 +37,7 @@ export class FlashMessages {
37
37
  classes: "bg-gray-500 text-white",
38
38
  position: "top",
39
39
  closeBtn: "X",
40
- ...danxOptions.flashMessages.default,
40
+ ...danxOptions.value.flashMessages.default,
41
41
  ...options
42
42
  });
43
43
  }
@@ -48,7 +48,7 @@ export class FlashMessages {
48
48
  classes: "bg-green-300 !text-green-900",
49
49
  icon: "check",
50
50
  ...options,
51
- ...danxOptions.flashMessages.success
51
+ ...danxOptions.value.flashMessages.success
52
52
  });
53
53
  }
54
54
 
@@ -57,7 +57,7 @@ export class FlashMessages {
57
57
  classes: "bg-red-300 !text-red-900",
58
58
  icon: "error",
59
59
  ...options,
60
- ...danxOptions.flashMessages.error
60
+ ...danxOptions.value.flashMessages.error
61
61
  });
62
62
  }
63
63
 
@@ -66,12 +66,12 @@ export class FlashMessages {
66
66
  classes: "bg-yellow-300 !text-yellow-900",
67
67
  icon: "warning",
68
68
  ...options,
69
- ...danxOptions.flashMessages.warning
69
+ ...danxOptions.value.flashMessages.warning
70
70
  });
71
71
  }
72
72
 
73
73
  static combine(type: string, messages: string[] | { message: string, Message: string }[], options = {}) {
74
- // @ts-ignore
74
+ // @ts-expect-error - type is a string
75
75
  const messageType = FlashMessages[type];
76
76
 
77
77
  if (typeof messageType !== "function") {
@@ -1 +0,0 @@
1
- export const apiKey = "YOUR_API_KEY";