quasar-ui-danx 0.0.22 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-danx",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "author": "Dan <dan@flytedesk.com>",
5
5
  "description": "DanX Vue / Quasar component library",
6
6
  "license": "MIT",
@@ -23,7 +23,7 @@
23
23
  </template>
24
24
  <script setup>
25
25
  import { computed, ref } from 'vue';
26
- import PopoverMenu from '../../components/Utility/Popover/PopoverMenu';
26
+ import { PopoverMenu } from '../Utility';
27
27
 
28
28
  const emit = defineEmits(['action']);
29
29
  const props = defineProps({
@@ -33,7 +33,7 @@
33
33
  </div>
34
34
 
35
35
  <div class="max-w-[50em] flex items-stretch justify-start">
36
- <ImagePreview
36
+ <FilePreview
37
37
  v-for="file in uploadedFiles"
38
38
  :key="'file-upload-' + file.id"
39
39
  class="w-32 m-2 cursor-pointer bg-neutral-plus-5"
@@ -44,7 +44,7 @@
44
44
  :removable="!readonly && !disable"
45
45
  @remove="onRemove(file)"
46
46
  />
47
- <ImagePreview
47
+ <FilePreview
48
48
  v-if="!disable && !readonly"
49
49
  class="w-32 m-2 cursor-pointer border border-dashed border-blue-base"
50
50
  disabled
@@ -63,7 +63,7 @@
63
63
  <script setup>
64
64
  import { onMounted } from 'vue';
65
65
  import { useMultiFileUpload } from '../../../../helpers';
66
- import { ImagePreview } from '../../../Utility';
66
+ import { FilePreview } from '../../../Utility';
67
67
  import FieldLabel from './FieldLabel';
68
68
 
69
69
  const emit = defineEmits(['update:model-value']);
@@ -31,7 +31,7 @@
31
31
  />
32
32
  </div>
33
33
 
34
- <ImagePreview
34
+ <FilePreview
35
35
  v-if="!readonly || uploadedFile"
36
36
  class="w-32 cursor-pointer mt-2"
37
37
  :class="{'border border-dashed border-blue-base': !uploadedFile, 'mx-auto': !readonly}"
@@ -50,7 +50,7 @@
50
50
  <script setup>
51
51
  import { onMounted } from 'vue';
52
52
  import { useSingleFileUpload } from '../../../../helpers';
53
- import { ImagePreview } from '../../../Utility';
53
+ import { FilePreview } from '../../../Utility';
54
54
  import FieldLabel from './FieldLabel';
55
55
 
56
56
  const emit = defineEmits(['update:model-value']);
@@ -17,7 +17,7 @@
17
17
  </template>
18
18
  <script setup>
19
19
  import { DragHandleDotsIcon as DragHandleIcon } from '../../svg';
20
- import SvgImg from '../Utility/SvgImg';
20
+ import { SvgImg } from '../Utility';
21
21
  import { ListDragAndDrop } from './listDragAndDrop';
22
22
 
23
23
  const emit = defineEmits(['position', 'update:list-items']);
@@ -0,0 +1,2 @@
1
+ export { default as ExportButton } from "./ExportButton.vue";
2
+ export { default as RefreshButton } from "./RefreshButton.vue";
@@ -0,0 +1,5 @@
1
+ export { default as ConfirmDialog } from "./ConfirmDialog.vue";
2
+ export { default as FullScreenCarouselDialog } from "./FullscreenCarouselDialog.vue";
3
+ export { default as FullScreenDialog } from "./FullScreenDialog.vue";
4
+ export { default as InfoDialog } from "./InfoDialog.vue";
5
+ export { default as InputDialog } from "./InputDialog.vue";
@@ -100,9 +100,9 @@
100
100
  <script setup>
101
101
  import { DocumentTextIcon as TextFileIcon, DownloadIcon, PlayIcon } from '@heroicons/vue/outline';
102
102
  import { computed, ref } from 'vue';
103
- import { FullScreenCarouselDialog } from '.';
104
- import { download } from '../../helpers';
105
- import { ImageIcon, PdfIcon, TrashIcon as RemoveIcon } from '../../svg';
103
+ import { download } from '../../../helpers';
104
+ import { ImageIcon, PdfIcon, TrashIcon as RemoveIcon } from '../../../svg';
105
+ import { FullScreenCarouselDialog } from '../Dialogs';
106
106
 
107
107
  const emit = defineEmits(['remove']);
108
108
  const props = defineProps({
@@ -0,0 +1,2 @@
1
+ export { default as FilePreview } from "./FilePreview.vue";
2
+ export { default as SvgImg } from "./SvgImg.vue";
@@ -0,0 +1,29 @@
1
+ <template>
2
+ <div class="address-format">
3
+ <div v-if="address.attn" class="address-attn">Attn: {{ address.attn }}</div>
4
+ <div v-else-if="address.name" class="address-name">{{ address.name }}</div>
5
+ <template v-if="address.line1">
6
+ <div class="address-line-1">
7
+ {{ address.line1 }}
8
+ </div>
9
+ <div v-if="address.line2" class="address-line-2">
10
+ {{ address.line2 }}
11
+ </div>
12
+ <div v-if="address.line3" class="address-line-3">
13
+ {{ address.line3 }}
14
+ </div>
15
+ <div class="address-city-state-zip">
16
+ <template v-if="address.city">{{ address.city }},</template>
17
+ {{ address.state }} {{ address.zip_code }}
18
+ </div>
19
+ </template>
20
+ </div>
21
+ </template>
22
+ <script setup>
23
+ defineProps({
24
+ address: {
25
+ type: Object,
26
+ required: true
27
+ }
28
+ });
29
+ </script>
@@ -0,0 +1,28 @@
1
+ <template>
2
+ <div class="flex flex-nowrap items-center">
3
+ <LocationIcon class="mr-1 ml-[-.2em]" :class="iconClass" />
4
+ <div v-if="location?.latitude" class="whitespace-nowrap">
5
+ {{ location.latitude.toFixed(decimals) }},
6
+ {{ location.longitude.toFixed(decimals) }}
7
+ </div>
8
+ <template v-else>Unknown</template>
9
+ </div>
10
+ </template>
11
+ <script setup>
12
+ import { LocationMarkerIcon as LocationIcon } from "@heroicons/vue/solid";
13
+
14
+ defineProps({
15
+ location: {
16
+ type: Object,
17
+ default: null,
18
+ },
19
+ decimals: {
20
+ type: Number,
21
+ default: 6,
22
+ },
23
+ iconClass: {
24
+ type: String,
25
+ default: "w-7",
26
+ },
27
+ });
28
+ </script>
@@ -0,0 +1,24 @@
1
+ <template>
2
+ <div class="flex items-center">
3
+ <component :is="icon" :class="iconClass" />
4
+ <div :class="textClass">
5
+ <slot />
6
+ </div>
7
+ </div>
8
+ </template>
9
+ <script setup>
10
+ defineProps({
11
+ icon: {
12
+ type: [String, Object],
13
+ required: true
14
+ },
15
+ iconClass: {
16
+ type: String,
17
+ default: "w-6"
18
+ },
19
+ textClass: {
20
+ type: String,
21
+ default: "ml-2"
22
+ }
23
+ });
24
+ </script>
@@ -0,0 +1,4 @@
1
+ export { default as AddressFormat } from "./AddressFormat.vue";
2
+ export { default as FlatListFormat } from "./FlatListFormat.vue";
3
+ export { default as GpsCoordinatesFormat } from "./GpsCoordinatesFormat.vue";
4
+ export { default as IconWithTextFormat } from "./IconWithTextFormat.vue";
@@ -0,0 +1,2 @@
1
+ export { default as CollapsableSidebar } from "./CollapsableSidebar.vue";
2
+ export { default as ContentDrawer } from "./ContentDrawer.vue";
@@ -0,0 +1 @@
1
+ export { default as PopoverMenu } from "./PopoverMenu.vue";
@@ -0,0 +1,3 @@
1
+ export { default as ListTransition } from "./ListTransition.vue";
2
+ export { default as SlideTransition } from "./SlideTransition.vue";
3
+ export { default as StaggeredListTransition } from "./StaggeredListTransition.vue";
@@ -1,14 +1,7 @@
1
- export { default as CollapsableSidebar } from "./CollapsableSidebar.vue";
2
- export { default as ConfirmDialog } from "./Dialogs/ConfirmDialog.vue";
3
- export { default as ContentDrawer } from "./ContentDrawer.vue";
4
- export { default as ExportButton } from "src/components/Utility/Buttons/ExportButton.vue";
5
- export { default as FlatList } from "./FlatList.vue";
6
- export { default as FullScreenCarouselDialog } from "./Dialogs/FullscreenCarouselDialog.vue";
7
- export { default as FullScreenDialog } from "./Dialogs/FullScreenDialog.vue";
8
- export { default as ImagePreview } from "./ImagePreview.vue";
9
- export { default as InfoDialog } from "./Dialogs/InfoDialog.vue";
10
- export { default as InputDialog } from "./Dialogs/InputDialog.vue";
11
- export { default as ListTransition } from "./Transitions/ListTransition.vue";
12
- export { default as RefreshButton } from "src/components/Utility/Buttons/RefreshButton.vue";
13
- export { default as SlideTransition } from "./Transitions/SlideTransition.vue";
14
- export { default as StaggeredListTransition } from "./Transitions/StaggeredListTransition.vue";
1
+ export * from "./Buttons";
2
+ export * from "./Dialogs";
3
+ export * from "./Files";
4
+ export * from "./Formats";
5
+ export * from "./Layouts";
6
+ export * from "./Popovers";
7
+ export * from "./Transitions";