quasar-ui-danx 0.2.15 → 0.2.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. package/dist/danx.es.js +2 -2
  2. package/dist/danx.es.js.map +1 -1
  3. package/dist/danx.umd.js +1 -1
  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 +4 -4
  8. package/src/components/ActionTable/ActionTable.vue +12 -12
  9. package/src/components/ActionTable/ActionTableColumn.vue +11 -11
  10. package/src/components/ActionTable/Columns/ColumnListItem.vue +2 -2
  11. package/src/components/ActionTable/Columns/ColumnSettingsDialog.vue +8 -8
  12. package/src/components/ActionTable/Columns/TitleColumnFormat.vue +1 -1
  13. package/src/components/ActionTable/Columns/VisibleColumnsToggleButtons.vue +7 -7
  14. package/src/components/ActionTable/EmptyTableState.vue +4 -4
  15. package/src/components/ActionTable/Filters/CollapsableFiltersSidebar.vue +3 -3
  16. package/src/components/ActionTable/Filters/FilterFieldList.vue +6 -6
  17. package/src/components/ActionTable/Filters/FilterListToggle.vue +3 -3
  18. package/src/components/ActionTable/Filters/FilterToolbarLayout.vue +3 -3
  19. package/src/components/ActionTable/Filters/FilterableField.vue +6 -6
  20. package/src/components/ActionTable/Form/Fields/BooleanField.vue +4 -4
  21. package/src/components/ActionTable/Form/Fields/ConfirmPasswordField.vue +7 -7
  22. package/src/components/ActionTable/Form/Fields/DateField.vue +6 -6
  23. package/src/components/ActionTable/Form/Fields/DateRangeField.vue +13 -13
  24. package/src/components/ActionTable/Form/Fields/DateTimeField.vue +6 -6
  25. package/src/components/ActionTable/Form/Fields/DateTimePicker.vue +6 -6
  26. package/src/components/ActionTable/Form/Fields/EditableDiv.vue +3 -3
  27. package/src/components/ActionTable/Form/Fields/FieldLabel.vue +2 -2
  28. package/src/components/ActionTable/Form/Fields/FileUploadButton.vue +15 -15
  29. package/src/components/ActionTable/Form/Fields/InlineDateTimeField.vue +7 -7
  30. package/src/components/ActionTable/Form/Fields/IntegerField.vue +2 -2
  31. package/src/components/ActionTable/Form/Fields/LabeledInput.vue +2 -2
  32. package/src/components/ActionTable/Form/Fields/MultiFileField.vue +6 -6
  33. package/src/components/ActionTable/Form/Fields/MultiKeywordField.vue +8 -8
  34. package/src/components/ActionTable/Form/Fields/NewPasswordField.vue +6 -6
  35. package/src/components/ActionTable/Form/Fields/NumberField.vue +20 -20
  36. package/src/components/ActionTable/Form/Fields/NumberRangeField.vue +20 -20
  37. package/src/components/ActionTable/Form/Fields/SelectDrawer.vue +8 -8
  38. package/src/components/ActionTable/Form/Fields/SelectField.vue +36 -36
  39. package/src/components/ActionTable/Form/Fields/SelectWithChildrenField.vue +9 -9
  40. package/src/components/ActionTable/Form/Fields/SingleFileField.vue +6 -6
  41. package/src/components/ActionTable/Form/Fields/TextField.vue +15 -15
  42. package/src/components/ActionTable/Form/Fields/WysiwygField.vue +4 -4
  43. package/src/components/ActionTable/Form/RenderedForm.vue +5 -5
  44. package/src/components/ActionTable/TableSummaryRow.vue +8 -8
  45. package/src/components/ActionTable/listControls.ts +5 -5
  46. package/src/components/ActionTable/listHelpers.ts +1 -1
  47. package/src/components/ActionTable/tableColumns.ts +24 -1
  48. package/src/components/AuditHistory/AuditHistoryItem.vue +4 -4
  49. package/src/components/AuditHistory/AuditHistoryItemValue.vue +10 -10
  50. package/src/components/DragAndDrop/HandleDraggable.vue +8 -8
  51. package/src/components/DragAndDrop/ListItemDraggable.vue +8 -8
  52. package/src/components/DragAndDrop/dragAndDrop.ts +219 -219
  53. package/src/components/DragAndDrop/listDragAndDrop.ts +4 -4
  54. package/src/components/PanelsDrawer/PanelsDrawer.vue +8 -8
  55. package/src/components/PanelsDrawer/PanelsDrawerPanels.vue +1 -1
  56. package/src/components/PanelsDrawer/PanelsDrawerTabs.vue +4 -4
  57. package/src/components/Utility/Buttons/ExportButton.vue +4 -4
  58. package/src/components/Utility/Buttons/RefreshButton.vue +2 -2
  59. package/src/components/Utility/Controls/PreviousNextControls.vue +2 -2
  60. package/src/components/Utility/Dialogs/ConfirmDialog.vue +14 -14
  61. package/src/components/Utility/Dialogs/FullScreenDialog.vue +8 -8
  62. package/src/components/Utility/Dialogs/FullscreenCarouselDialog.vue +11 -11
  63. package/src/components/Utility/Dialogs/InfoDialog.vue +12 -12
  64. package/src/components/Utility/Dialogs/InputDialog.vue +5 -5
  65. package/src/components/Utility/Files/FilePreview.vue +10 -10
  66. package/src/components/Utility/Formats/GpsCoordinatesFormat.vue +4 -4
  67. package/src/components/Utility/Formats/IconWithTextFormat.vue +2 -2
  68. package/src/components/Utility/Formats/LabelValueFormat.vue +2 -2
  69. package/src/components/Utility/Layouts/CollapsableSidebar.vue +15 -15
  70. package/src/components/Utility/Layouts/ContentDrawer.vue +6 -6
  71. package/src/components/Utility/Popovers/InteractiveTooltip.vue +4 -4
  72. package/src/components/Utility/Popovers/PopoverMenu.vue +49 -49
  73. package/src/components/Utility/Tabs/BadgeTab.vue +1 -1
  74. package/src/components/Utility/Tabs/IndicatorTab.vue +3 -3
  75. package/src/components/Utility/Tools/ActionVnode.vue +3 -3
  76. package/src/components/Utility/Tools/RenderComponent.vue +3 -3
  77. package/src/components/Utility/Transitions/StaggeredListTransition.vue +3 -3
  78. package/src/helpers/array.ts +16 -16
  79. package/src/helpers/storage.ts +5 -5
  80. package/src/helpers/utils.ts +1 -1
  81. package/src/index.common.js +1 -2
  82. package/src/index.esm.js +1 -1
  83. package/src/index.umd.js +2 -2
  84. package/src/svg/CaretDownIcon.svg +1 -1
  85. package/src/svg/DragHandleDotsIcon.svg +3 -3
  86. package/src/svg/DragHandleIcon.svg +3 -3
  87. package/src/svg/FilterIcon.svg +5 -5
  88. package/src/svg/ImageIcon.svg +27 -27
  89. package/src/svg/PdfIcon.svg +5 -5
  90. package/src/svg/SkipNextIcon.svg +3 -3
  91. package/src/svg/SkipPreviousIcon.svg +3 -3
  92. package/src/svg/TrashIcon.svg +12 -12
  93. package/src/svg/WarningIcon.svg +3 -3
  94. package/src/svg/XIcon.svg +15 -15
  95. package/src/vue-plugin.js +5 -5
  96. package/vite.config.js +7 -0
@@ -14,22 +14,22 @@
14
14
  </div>
15
15
  </template>
16
16
  <script setup>
17
- import { QSpinnerBall } from 'quasar';
17
+ import { QSpinnerBall } from "quasar";
18
18
 
19
19
  defineProps({
20
20
  loading: Boolean,
21
21
  saving: Boolean,
22
22
  text: {
23
23
  type: String,
24
- default: 'No records found'
24
+ default: "No records found"
25
25
  },
26
26
  loadingText: {
27
27
  type: String,
28
- default: 'Loading...'
28
+ default: "Loading..."
29
29
  },
30
30
  savingText: {
31
31
  type: String,
32
- default: 'Saving...'
32
+ default: "Saving..."
33
33
  }
34
34
  });
35
35
  </script>
@@ -15,10 +15,10 @@
15
15
  </CollapsableSidebar>
16
16
  </template>
17
17
  <script setup>
18
- import { FilterFieldList } from '.';
19
- import { CollapsableSidebar } from '../../Utility';
18
+ import { FilterFieldList } from ".";
19
+ import { CollapsableSidebar } from "../../Utility";
20
20
 
21
- defineEmits(['update:filter', 'update:show-filters']);
21
+ defineEmits(["update:filter", "update:show-filters"]);
22
22
  defineProps({
23
23
  name: {
24
24
  type: String,
@@ -39,14 +39,14 @@
39
39
  />
40
40
  </template>
41
41
  </div>
42
- </QList>
42
+ </QList>
43
43
  </template>
44
44
  <script setup>
45
- import { computed } from 'vue';
46
- import FilterableField from './FilterableField';
47
- import FilterFieldItem from './FilterFieldItem';
45
+ import { computed } from "vue";
46
+ import FilterableField from "./FilterableField";
47
+ import FilterFieldItem from "./FilterFieldItem";
48
48
 
49
- const emit = defineEmits(['update:filter']);
49
+ const emit = defineEmits(["update:filter"]);
50
50
  const props = defineProps({
51
51
  filterFields: {
52
52
  type: Array,
@@ -71,6 +71,6 @@ function updateFilter(field, value) {
71
71
  if (field.filterBy) {
72
72
  fieldFilter = field.filterBy(value);
73
73
  }
74
- emit('update:filter', { ...props.filter, ...fieldFilter });
74
+ emit("update:filter", { ...props.filter, ...fieldFilter });
75
75
  }
76
76
  </script>
@@ -22,10 +22,10 @@
22
22
  </div>
23
23
  </template>
24
24
  <script setup>
25
- import { computed } from 'vue';
26
- import { FilterIcon } from '../../../svg';
25
+ import { computed } from "vue";
26
+ import { FilterIcon } from "../../../svg";
27
27
 
28
- defineEmits(['update:show-filters', 'update:filter']);
28
+ defineEmits(["update:show-filters", "update:filter"]);
29
29
  const props = defineProps({
30
30
  filter: {
31
31
  type: Object,
@@ -19,10 +19,10 @@
19
19
  </div>
20
20
  </template>
21
21
  <script setup>
22
- import { QSeparator } from 'quasar';
23
- import { FilterListToggle } from '../Filters';
22
+ import { QSeparator } from "quasar";
23
+ import { FilterListToggle } from "../Filters";
24
24
 
25
- defineEmits(['update:show-filters', 'update:filter']);
25
+ defineEmits(["update:show-filters", "update:filter"]);
26
26
  defineProps({
27
27
  filter: {
28
28
  type: Object,
@@ -110,9 +110,9 @@ import {
110
110
  NumberRangeField,
111
111
  SelectField,
112
112
  SelectWithChildrenField
113
- } from '../Form/Fields';
113
+ } from "../Form/Fields";
114
114
 
115
- const emit = defineEmits(['update:model-value']);
115
+ const emit = defineEmits(["update:model-value"]);
116
116
  const props = defineProps({
117
117
  field: {
118
118
  type: Object,
@@ -129,15 +129,15 @@ function onUpdate(val) {
129
129
  let newVal = val || undefined;
130
130
 
131
131
  switch (props.field.type) {
132
- case 'multi-select':
132
+ case "multi-select":
133
133
  newVal = val.length > 0 ? val : undefined;
134
134
  break;
135
- case 'single-select':
136
- case 'boolean':
135
+ case "single-select":
136
+ case "boolean":
137
137
  newVal = val === null ? undefined : val;
138
138
  break;
139
139
  }
140
140
 
141
- emit('update:model-value', newVal);
141
+ emit("update:model-value", newVal);
142
142
  }
143
143
  </script>
@@ -11,13 +11,13 @@
11
11
  :show-name="showName"
12
12
  :class="labelClass"
13
13
  />
14
- </QToggle>
14
+ </QToggle>
15
15
  </template>
16
16
 
17
17
  <script setup>
18
- import FieldLabel from './FieldLabel';
18
+ import FieldLabel from "./FieldLabel";
19
19
 
20
- defineEmits(['update:model-value']);
20
+ defineEmits(["update:model-value"]);
21
21
  defineProps({
22
22
  modelValue: {
23
23
  type: [Boolean],
@@ -29,7 +29,7 @@ defineProps({
29
29
  },
30
30
  labelClass: {
31
31
  type: String,
32
- default: 'text-sm'
32
+ default: "text-sm"
33
33
  },
34
34
  showName: Boolean,
35
35
  toggleIndeterminate: Boolean
@@ -10,21 +10,21 @@
10
10
  </template>
11
11
 
12
12
  <script setup>
13
- import LabeledInput from './LabeledInput';
13
+ import LabeledInput from "./LabeledInput";
14
14
 
15
- defineEmits(['update:model-value']);
15
+ defineEmits(["update:model-value"]);
16
16
  const props = defineProps({
17
17
  name: {
18
18
  type: String,
19
- default: 'password_confirmation'
19
+ default: "password_confirmation"
20
20
  },
21
21
  label: {
22
22
  type: String,
23
- default: 'Confirm Password'
23
+ default: "Confirm Password"
24
24
  },
25
25
  placeholder: {
26
26
  type: String,
27
- default: 'Confirm Password'
27
+ default: "Confirm Password"
28
28
  },
29
29
  modelValue: {
30
30
  type: [String, Number],
@@ -36,13 +36,13 @@ const props = defineProps({
36
36
  },
37
37
  password: {
38
38
  type: String,
39
- default: ''
39
+ default: ""
40
40
  },
41
41
  disabled: Boolean
42
42
  });
43
43
 
44
44
  const rules = [
45
45
  (val) =>
46
- val === props.password || 'The password and confirmation do not match'
46
+ val === props.password || "The password and confirmation do not match"
47
47
  ];
48
48
  </script>
@@ -27,11 +27,11 @@
27
27
  </template>
28
28
 
29
29
  <script setup>
30
- import { CalendarIcon as DateIcon } from '@heroicons/vue/outline';
31
- import { computed, ref, watch } from 'vue';
32
- import { fDate, parseQDate } from '../../../../helpers';
30
+ import { CalendarIcon as DateIcon } from "@heroicons/vue/outline";
31
+ import { computed, ref, watch } from "vue";
32
+ import { fDate, parseQDate } from "../../../../helpers";
33
33
 
34
- const emit = defineEmits(['update:model-value']);
34
+ const emit = defineEmits(["update:model-value"]);
35
35
  const props = defineProps({
36
36
  modelValue: {
37
37
  type: [String, Object],
@@ -45,7 +45,7 @@ const props = defineProps({
45
45
 
46
46
  const formattedDate = computed(() => {
47
47
  if (props.modelValue) {
48
- return fDate(parseQDate(props.modelValue || '0000-00-00'));
48
+ return fDate(parseQDate(props.modelValue || "0000-00-00"));
49
49
  }
50
50
  return null;
51
51
  });
@@ -54,6 +54,6 @@ const date = ref(props.modelValue);
54
54
  watch(() => props.modelValue, val => date.value = val);
55
55
 
56
56
  function onSave() {
57
- emit('update:model-value', date.value);
57
+ emit("update:model-value", date.value);
58
58
  }
59
59
  </script>
@@ -38,11 +38,11 @@
38
38
  </template>
39
39
 
40
40
  <script setup>
41
- import { CalendarIcon as DateIcon } from '@heroicons/vue/outline';
42
- import { computed, ref, watch } from 'vue';
43
- import { fDate, parseQDate, parseQDateTime } from '../../../../helpers';
41
+ import { CalendarIcon as DateIcon } from "@heroicons/vue/outline";
42
+ import { computed, ref, watch } from "vue";
43
+ import { fDate, parseQDate, parseQDateTime } from "../../../../helpers";
44
44
 
45
- const emit = defineEmits(['update:model-value']);
45
+ const emit = defineEmits(["update:model-value"]);
46
46
  const props = defineProps({
47
47
  modelValue: {
48
48
  type: Object,
@@ -60,14 +60,14 @@ const formattedDates = computed(() => {
60
60
  if (dateRangeValue.value) {
61
61
  if (props.withTime) {
62
62
  return {
63
- from: fDate(parseQDateTime(dateRangeValue.value.from || '0000-00-00')),
64
- to: fDate(parseQDateTime(dateRangeValue.value.to || '9999-12-31'))
63
+ from: fDate(parseQDateTime(dateRangeValue.value.from || "0000-00-00")),
64
+ to: fDate(parseQDateTime(dateRangeValue.value.to || "9999-12-31"))
65
65
  };
66
66
  }
67
67
 
68
68
  return {
69
- from: fDate(parseQDate(dateRangeValue.value.from || '0000-00-00')),
70
- to: fDate(parseQDate(dateRangeValue.value.to || '9999-12-31'))
69
+ from: fDate(parseQDate(dateRangeValue.value.from || "0000-00-00")),
70
+ to: fDate(parseQDate(dateRangeValue.value.to || "9999-12-31"))
71
71
  };
72
72
  }
73
73
  return {
@@ -89,7 +89,7 @@ function toQDateValue(val) {
89
89
  const dateRangeValue = computed(() => {
90
90
  let range;
91
91
 
92
- if (typeof dateRange.value === 'string') {
92
+ if (typeof dateRange.value === "string") {
93
93
  range = {
94
94
  from: dateRange.value,
95
95
  to: dateRange.value
@@ -101,15 +101,15 @@ const dateRangeValue = computed(() => {
101
101
  };
102
102
  }
103
103
 
104
- if (range?.from && range?.to && props.withTime && !range.from.includes('00:00:00')) {
105
- range.from += ' 00:00:00';
106
- range.to += ' 23:59:59';
104
+ if (range?.from && range?.to && props.withTime && !range.from.includes("00:00:00")) {
105
+ range.from += " 00:00:00";
106
+ range.to += " 23:59:59";
107
107
  }
108
108
 
109
109
  return range;
110
110
  });
111
111
 
112
112
  function onSave() {
113
- emit('update:model-value', dateRangeValue.value);
113
+ emit("update:model-value", dateRangeValue.value);
114
114
  }
115
115
  </script>
@@ -24,11 +24,11 @@
24
24
  </template>
25
25
 
26
26
  <script setup>
27
- import { ref } from 'vue';
28
- import { fLocalizedDateTime } from '../../../../helpers';
29
- import DateTimePicker from './DateTimePicker';
27
+ import { ref } from "vue";
28
+ import { fLocalizedDateTime } from "../../../../helpers";
29
+ import DateTimePicker from "./DateTimePicker";
30
30
 
31
- const emit = defineEmits(['update:model-value']);
31
+ const emit = defineEmits(["update:model-value"]);
32
32
  const props = defineProps({
33
33
  modelValue: {
34
34
  type: String,
@@ -36,7 +36,7 @@ const props = defineProps({
36
36
  },
37
37
  color: {
38
38
  type: String,
39
- default: 'blue-600'
39
+ default: "blue-600"
40
40
  }
41
41
  });
42
42
 
@@ -44,7 +44,7 @@ const isShowing = ref(false);
44
44
  const dateTime = ref(props.modelValue);
45
45
 
46
46
  function onSave() {
47
- emit('update:model-value', dateTime.value);
47
+ emit("update:model-value", dateTime.value);
48
48
  isShowing.value = false;
49
49
  }
50
50
  </script>
@@ -26,10 +26,10 @@
26
26
  </QPopupProxy>
27
27
  </template>
28
28
  <script setup>
29
- import { computed } from 'vue';
30
- import { dbDateTime, localizedDateTime, remoteDateTime } from '../../../../helpers';
29
+ import { computed } from "vue";
30
+ import { dbDateTime, localizedDateTime, remoteDateTime } from "../../../../helpers";
31
31
 
32
- const emit = defineEmits(['update:modelValue', 'save', 'cancel', 'clear']);
32
+ const emit = defineEmits(["update:modelValue", "save", "cancel", "clear"]);
33
33
  const props = defineProps({
34
34
  modelValue: {
35
35
  type: String,
@@ -37,11 +37,11 @@ const props = defineProps({
37
37
  },
38
38
  mask: {
39
39
  type: String,
40
- default: 'YYYY-MM-DD HH:mm'
40
+ default: "YYYY-MM-DD HH:mm"
41
41
  },
42
42
  color: {
43
43
  type: String,
44
- default: 'blue-600'
44
+ default: "blue-600"
45
45
  },
46
46
  nullable: Boolean
47
47
  });
@@ -52,7 +52,7 @@ const dateTime = computed({
52
52
  const newValue = value ? dbDateTime(remoteDateTime(value)) : null;
53
53
 
54
54
  if (newValue || props.nullable) {
55
- emit('update:modelValue', newValue);
55
+ emit("update:modelValue", newValue);
56
56
  }
57
57
  }
58
58
  });
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <div
3
- contenteditable
4
- class="inline-block hover:bg-blue-light focus:bg-blue-light transition duration-300 outline-none"
5
- @input="onInput"
3
+ contenteditable
4
+ class="inline-block hover:bg-blue-light focus:bg-blue-light transition duration-300 outline-none"
5
+ @input="onInput"
6
6
  >
7
7
  {{ text }}
8
8
  </div>
@@ -5,8 +5,8 @@
5
5
  <template v-if="showName">({{ field?.name }})</template>
6
6
  </slot>
7
7
  <span
8
- v-if="requiredLabel"
9
- class="text-red-dark ml-1 text-xs bottom-1 relative"
8
+ v-if="requiredLabel"
9
+ class="text-red-dark ml-1 text-xs bottom-1 relative"
10
10
  >{{ requiredLabel }}</span>
11
11
  </span>
12
12
  </template>
@@ -15,30 +15,30 @@
15
15
  multiple
16
16
  @change="onAttachFiles"
17
17
  />
18
- </QBtn>
18
+ </QBtn>
19
19
  </template>
20
20
  <script setup>
21
- import { PlusIcon } from '@heroicons/vue/outline';
22
- import { QBtn } from 'quasar';
23
- import { ref } from 'vue';
24
- import { FileUpload } from '../../../../helpers';
21
+ import { PlusIcon } from "@heroicons/vue/outline";
22
+ import { QBtn } from "quasar";
23
+ import { ref } from "vue";
24
+ import { FileUpload } from "../../../../helpers";
25
25
 
26
26
  defineExpose({ upload });
27
27
  const emit = defineEmits([
28
- 'uploading',
29
- 'file-progress',
30
- 'file-complete',
31
- 'complete'
28
+ "uploading",
29
+ "file-progress",
30
+ "file-complete",
31
+ "complete"
32
32
  ]);
33
33
  const props = defineProps({
34
34
  ...QBtn.props,
35
35
  text: {
36
36
  type: String,
37
- default: 'Add File'
37
+ default: "Add File"
38
38
  },
39
39
  locationWaitMessage: {
40
40
  type: String,
41
- default: 'Waiting for location...'
41
+ default: "Waiting for location..."
42
42
  },
43
43
  geolocation: Boolean
44
44
  });
@@ -56,17 +56,17 @@ function upload() {
56
56
  * @returns {Promise<void>}
57
57
  */
58
58
  async function onAttachFiles({ target: { files } }) {
59
- emit('uploading', files);
59
+ emit("uploading", files);
60
60
  let fileUpload = new FileUpload(files)
61
61
  .onProgress(({ file, progress }) => {
62
62
  file.progress = progress;
63
- emit('file-progress', file);
63
+ emit("file-progress", file);
64
64
  })
65
65
  .onComplete(({ file, uploadedFile }) => {
66
- emit('file-complete', { file, uploadedFile });
66
+ emit("file-complete", { file, uploadedFile });
67
67
  })
68
68
  .onAllComplete(() => {
69
- emit('complete', fileUpload.files);
69
+ emit("complete", fileUpload.files);
70
70
  });
71
71
 
72
72
  if (props.geolocation) {
@@ -3,7 +3,7 @@
3
3
  <div
4
4
  class="cursor-pointer py-2 hover:bg-blue-light flex items-center justify-end"
5
5
  >
6
- {{ fLocalizedDateTime(modelValue, { empty: 'Never' }) }}
6
+ {{ fLocalizedDateTime(modelValue, { empty: "Never" }) }}
7
7
  <EditIcon class="w-4 font-bold ml-2 text-gray-base" />
8
8
  <QPopupEdit
9
9
  v-slot="scope"
@@ -23,11 +23,11 @@
23
23
  </div>
24
24
  </template>
25
25
  <script setup>
26
- import { PencilIcon as EditIcon } from '@heroicons/vue/solid';
27
- import { fLocalizedDateTime } from '../../../../helpers';
28
- import DateTimePicker from './DateTimePicker';
26
+ import { PencilIcon as EditIcon } from "@heroicons/vue/solid";
27
+ import { fLocalizedDateTime } from "../../../../helpers";
28
+ import DateTimePicker from "./DateTimePicker";
29
29
 
30
- const emit = defineEmits(['close', 'save', 'update:model-value']);
30
+ const emit = defineEmits(["close", "save", "update:model-value"]);
31
31
  defineProps({
32
32
  modelValue: {
33
33
  type: String,
@@ -37,8 +37,8 @@ defineProps({
37
37
  });
38
38
 
39
39
  function onSave(scope) {
40
- emit('update:model-value', scope.value);
41
- emit('save', scope.value);
40
+ emit("update:model-value", scope.value);
41
+ emit("save", scope.value);
42
42
  scope.set();
43
43
  }
44
44
  </script>
@@ -9,9 +9,9 @@
9
9
  </template>
10
10
 
11
11
  <script setup>
12
- import NumberField from './NumberField';
12
+ import NumberField from "./NumberField";
13
13
 
14
- defineEmits(['update:model-value']);
14
+ defineEmits(["update:model-value"]);
15
15
  defineProps({
16
16
  modelValue: {
17
17
  type: [String, Number],
@@ -27,11 +27,11 @@
27
27
  </template>
28
28
 
29
29
  <script setup>
30
- defineEmits(['update:model-value']);
30
+ defineEmits(["update:model-value"]);
31
31
  defineProps({
32
32
  type: {
33
33
  type: String,
34
- default: 'text'
34
+ default: "text"
35
35
  },
36
36
  name: {
37
37
  type: String,
@@ -61,12 +61,12 @@
61
61
  </template>
62
62
 
63
63
  <script setup>
64
- import { onMounted } from 'vue';
65
- import { useMultiFileUpload } from '../../../../helpers';
66
- import { FilePreview } from '../../../Utility';
67
- import FieldLabel from './FieldLabel';
64
+ import { onMounted } from "vue";
65
+ import { useMultiFileUpload } from "../../../../helpers";
66
+ import { FilePreview } from "../../../Utility";
67
+ import FieldLabel from "./FieldLabel";
68
68
 
69
- const emit = defineEmits(['update:model-value']);
69
+ const emit = defineEmits(["update:model-value"]);
70
70
  const props = defineProps({
71
71
  modelValue: {
72
72
  type: [Object, String],
@@ -87,5 +87,5 @@ onMounted(() => {
87
87
  uploadedFiles.value = props.modelValue;
88
88
  }
89
89
  });
90
- onComplete(() => emit('update:model-value', uploadedFiles.value));
90
+ onComplete(() => emit("update:model-value", uploadedFiles.value));
91
91
  </script>
@@ -23,15 +23,15 @@
23
23
  </template>
24
24
 
25
25
  <script setup>
26
- import { computed, ref, watch } from 'vue';
27
- import SelectField from './SelectField';
28
- import TextField from './TextField';
26
+ import { computed, ref, watch } from "vue";
27
+ import SelectField from "./SelectField";
28
+ import TextField from "./TextField";
29
29
 
30
- const emit = defineEmits(['update:model-value']);
30
+ const emit = defineEmits(["update:model-value"]);
31
31
  const props = defineProps({
32
32
  modelValue: {
33
33
  type: [String, Number, Object],
34
- default: ''
34
+ default: ""
35
35
  },
36
36
  field: {
37
37
  type: Object,
@@ -43,12 +43,12 @@ const selectedFieldName = ref(props.field.defaultOption);
43
43
  const searchList = computed(() => props.modelValue && props.modelValue[selectedFieldName.value]);
44
44
  const textInput = ref(formatModelValue());
45
45
  function onChange() {
46
- textInput.value = textInput.value?.replace(/\n/g, ',').replace(/,{2,}/g, ',') || '';
47
- emit('update:model-value', textInput.value ? { [selectedFieldName.value]: textInput.value.split(',') } : undefined);
46
+ textInput.value = textInput.value?.replace(/\n/g, ",").replace(/,{2,}/g, ",") || "";
47
+ emit("update:model-value", textInput.value ? { [selectedFieldName.value]: textInput.value.split(",") } : undefined);
48
48
  }
49
49
 
50
50
  function formatModelValue() {
51
- return Array.isArray(searchList.value) ? searchList.value?.join(',') : '';
51
+ return Array.isArray(searchList.value) ? searchList.value?.join(",") : "";
52
52
  }
53
53
 
54
54
  watch(() => props.modelValue, () => {
@@ -8,21 +8,21 @@
8
8
  </template>
9
9
 
10
10
  <script setup>
11
- import LabeledInput from './LabeledInput';
11
+ import LabeledInput from "./LabeledInput";
12
12
 
13
- defineEmits(['update:model-value']);
13
+ defineEmits(["update:model-value"]);
14
14
  const props = defineProps({
15
15
  name: {
16
16
  type: String,
17
- default: 'password'
17
+ default: "password"
18
18
  },
19
19
  label: {
20
20
  type: String,
21
- default: 'Password'
21
+ default: "Password"
22
22
  },
23
23
  placeholder: {
24
24
  type: String,
25
- default: 'Enter Password'
25
+ default: "Enter Password"
26
26
  },
27
27
  modelValue: {
28
28
  type: [String, Number],
@@ -35,5 +35,5 @@ const props = defineProps({
35
35
  disabled: Boolean
36
36
  });
37
37
 
38
- const rules = [(val) => val.length >= 8 || 'Please use at least 8 characters'];
38
+ const rules = [(val) => val.length >= 8 || "Please use at least 8 characters"];
39
39
  </script>