@quoreadmin/ui 1.4.0 → 1.4.2

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.
Files changed (153) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.js +14365 -16291
  3. package/dist/index.umd.cjs +935 -113
  4. package/dist/src/App.vue.d.ts +2 -0
  5. package/dist/src/components/accordion/accordion.d.ts +113 -0
  6. package/dist/src/components/accordion/accordion.stories.d.ts +803 -0
  7. package/dist/src/components/accordion/accordion.vue.d.ts +2 -0
  8. package/dist/src/components/activity-item/activity-item.d.ts +83 -0
  9. package/dist/src/components/activity-item/activity-item.stories.d.ts +7 -0
  10. package/dist/src/components/activity-item/activity-item.vue.d.ts +2 -0
  11. package/dist/src/components/avatar/avatar.d.ts +54 -0
  12. package/dist/src/components/avatar/avatar.stories.d.ts +68 -0
  13. package/dist/src/components/avatar/avatar.vue.d.ts +2 -0
  14. package/dist/src/components/badge/badge.d.ts +31 -0
  15. package/dist/src/components/badge/badge.stories.d.ts +135 -0
  16. package/dist/src/components/badge/badge.vue.d.ts +2 -0
  17. package/dist/src/components/banner/banner.d.ts +24 -0
  18. package/dist/src/components/banner/banner.stories.d.ts +40 -0
  19. package/dist/src/components/banner/banner.vue.d.ts +2 -0
  20. package/dist/src/components/bottom-sheet/bottom-sheet.d.ts +120 -0
  21. package/dist/src/components/bottom-sheet/bottom-sheet.stories.d.ts +925 -0
  22. package/dist/src/components/bottom-sheet/bottom-sheet.vue.d.ts +2 -0
  23. package/dist/src/components/button/button.d.ts +121 -0
  24. package/dist/src/components/button/button.stories.d.ts +518 -0
  25. package/dist/src/components/button/button.vue.d.ts +2 -0
  26. package/dist/src/components/button-group/button-group.d.ts +92 -0
  27. package/dist/src/components/button-group/button-group.stories.d.ts +325 -0
  28. package/dist/src/components/button-group/button-group.vue.d.ts +2 -0
  29. package/dist/src/components/checkbox/checkbox.d.ts +205 -0
  30. package/dist/src/components/checkbox/checkbox.vue.d.ts +2 -0
  31. package/dist/src/components/comment/comment.d.ts +3157 -0
  32. package/dist/src/components/comment/comment.stories.d.ts +3186 -0
  33. package/dist/src/components/comment/comment.vue.d.ts +2 -0
  34. package/dist/src/components/comment-section/comment-section.d.ts +4866 -0
  35. package/dist/src/components/comment-section/comment-section.stories.d.ts +6541 -0
  36. package/dist/src/components/comment-section/comment-section.vue.d.ts +2 -0
  37. package/dist/src/components/counter/counter.d.ts +53 -0
  38. package/dist/src/components/counter/counter.stories.d.ts +120 -0
  39. package/dist/src/components/counter/counter.vue.d.ts +2 -0
  40. package/dist/src/components/data-filter/data-filter.d.ts +773 -0
  41. package/dist/src/components/data-filter/data-filter.vue.d.ts +2 -0
  42. package/dist/src/components/data-list/data-list.d.ts +945 -0
  43. package/dist/src/components/data-list/data-list.vue.d.ts +2 -0
  44. package/dist/src/components/data-table/data-table.d.ts +543 -0
  45. package/dist/src/components/data-table/data-table.vue.d.ts +2 -0
  46. package/dist/src/components/data-table-cell/data-table-cell.d.ts +42 -0
  47. package/dist/src/components/data-table-cell/data-table-cell.vue.d.ts +2 -0
  48. package/dist/src/components/data-table-head/data-table-head.d.ts +110 -0
  49. package/dist/src/components/data-table-head/data-table-head.vue.d.ts +2 -0
  50. package/dist/src/components/date-picker/date-picker.d.ts +672 -0
  51. package/dist/src/components/date-picker/date-picker.stories.d.ts +1316 -0
  52. package/dist/src/components/date-picker/date-picker.vue.d.ts +2 -0
  53. package/dist/src/components/divider/divider.d.ts +41 -0
  54. package/dist/src/components/divider/divider.stories.d.ts +103 -0
  55. package/dist/src/components/divider/divider.vue.d.ts +2 -0
  56. package/dist/src/components/file-upload/file-upload.d.ts +1214 -0
  57. package/dist/src/components/file-upload/file-upload.stories.d.ts +6974 -0
  58. package/dist/src/components/file-upload/file-upload.vue.d.ts +2 -0
  59. package/dist/src/components/footer-actions/footer-actions.d.ts +3 -0
  60. package/dist/src/components/footer-actions/footer-actions.stories.d.ts +17 -0
  61. package/dist/src/components/footer-actions/footer-actions.vue.d.ts +2 -0
  62. package/dist/src/components/form-group/form-group.d.ts +33 -0
  63. package/dist/src/components/form-group/form-group.stories.d.ts +230 -0
  64. package/dist/src/components/form-group/form-group.vue.d.ts +2 -0
  65. package/dist/src/components/grid/grid.d.ts +267 -0
  66. package/dist/src/components/grid/grid.stories.d.ts +3523 -0
  67. package/dist/src/components/grid/grid.vue.d.ts +2 -0
  68. package/dist/src/components/icon/icon.d.ts +93 -0
  69. package/dist/src/components/icon/icon.stories.d.ts +115 -0
  70. package/dist/src/components/icon/icon.vue.d.ts +2 -0
  71. package/dist/src/components/icon-action-group/icon-action-group.d.ts +513 -0
  72. package/dist/src/components/icon-action-group/icon-action-group.stories.d.ts +2570 -0
  73. package/dist/src/components/icon-action-group/icon-action-group.vue.d.ts +2 -0
  74. package/dist/src/components/image-gallery/image-gallery.d.ts +840 -0
  75. package/dist/src/components/image-gallery/image-gallery.stories.d.ts +1711 -0
  76. package/dist/src/components/image-gallery/image-gallery.vue.d.ts +2 -0
  77. package/dist/src/components/input/input.d.ts +185 -0
  78. package/dist/src/components/input/input.stories.d.ts +1065 -0
  79. package/dist/src/components/input/input.vue.d.ts +2 -0
  80. package/dist/src/components/list/list.d.ts +209 -0
  81. package/dist/src/components/list/list.stories.d.ts +1682 -0
  82. package/dist/src/components/list/list.vue.d.ts +2 -0
  83. package/dist/src/components/menu/menu.d.ts +120 -0
  84. package/dist/src/components/menu/menu.stories.d.ts +239 -0
  85. package/dist/src/components/menu/menu.vue.d.ts +2 -0
  86. package/dist/src/components/modal/modal.d.ts +192 -0
  87. package/dist/src/components/modal/modal.stories.d.ts +2102 -0
  88. package/dist/src/components/modal/modal.vue.d.ts +2 -0
  89. package/dist/src/components/modal/variants/error-modal/error-modal.d.ts +221 -0
  90. package/dist/src/components/modal/variants/error-modal/error-modal.vue.d.ts +2 -0
  91. package/dist/src/components/modal/variants/warning-modal/warning-modal.d.ts +241 -0
  92. package/dist/src/components/modal/variants/warning-modal/warning-modal.vue.d.ts +2 -0
  93. package/dist/src/components/modal-content/modal-content.d.ts +37 -0
  94. package/dist/src/components/modal-content/modal-content.vue.d.ts +2 -0
  95. package/dist/src/components/page-heading/page-heading.d.ts +57 -0
  96. package/dist/src/components/page-heading/page-heading.vue.d.ts +2 -0
  97. package/dist/src/components/page-navigation/page-navigation.d.ts +15 -0
  98. package/dist/src/components/page-navigation/page-navigation.vue.d.ts +2 -0
  99. package/dist/src/components/pdf-viewer/pdf-viewer.d.ts +243 -0
  100. package/dist/src/components/pdf-viewer/pdf-viewer.stories.d.ts +260 -0
  101. package/dist/src/components/pdf-viewer/pdf-viewer.vue.d.ts +2 -0
  102. package/dist/src/components/popover/popover.d.ts +118 -0
  103. package/dist/src/components/popover/popover.stories.d.ts +411 -0
  104. package/dist/src/components/popover/popover.vue.d.ts +2 -0
  105. package/dist/src/components/progress-bar/progress-bar.d.ts +85 -0
  106. package/dist/src/components/progress-bar/progress-bar.stories.d.ts +103 -0
  107. package/dist/src/components/progress-bar/progress-bar.vue.d.ts +2 -0
  108. package/dist/src/components/progress-bar-group/progress-bar-group.d.ts +152 -0
  109. package/dist/src/components/progress-bar-group/progress-bar-group.stories.d.ts +5 -0
  110. package/dist/src/components/progress-bar-group/progress-bar-group.vue.d.ts +2 -0
  111. package/dist/src/components/radio/radio.d.ts +93 -0
  112. package/dist/src/components/radio/radio.stories.d.ts +233 -0
  113. package/dist/src/components/radio/radio.vue.d.ts +2 -0
  114. package/dist/src/components/room-details-popover/room-details-popover.d.ts +6467 -0
  115. package/dist/src/components/room-details-popover/room-details-popover.vue.d.ts +2 -0
  116. package/dist/src/components/select/select.d.ts +407 -0
  117. package/dist/src/components/select/select.stories.d.ts +1297 -0
  118. package/dist/src/components/select/select.vue.d.ts +2 -0
  119. package/dist/src/components/table/table.d.ts +407 -0
  120. package/dist/src/components/table/table.vue.d.ts +2 -0
  121. package/dist/src/components/tag/tag.d.ts +43 -0
  122. package/dist/src/components/tag/tag.stories.d.ts +176 -0
  123. package/dist/src/components/tag/tag.vue.d.ts +2 -0
  124. package/dist/src/components/textarea/textarea.d.ts +92 -0
  125. package/dist/src/components/textarea/textarea.stories.d.ts +111 -0
  126. package/dist/src/components/textarea/textarea.vue.d.ts +2 -0
  127. package/dist/src/components/toast/toast.d.ts +117 -0
  128. package/dist/src/components/toast/toast.stories.d.ts +661 -0
  129. package/dist/src/components/toast/toast.vue.d.ts +2 -0
  130. package/dist/src/components/tooltip/tooltip.d.ts +137 -0
  131. package/dist/src/components/tooltip/tooltip.stories.d.ts +953 -0
  132. package/dist/src/components/tooltip/tooltip.vue.d.ts +2 -0
  133. package/dist/src/components/tour/tour.d.ts +364 -0
  134. package/dist/src/components/tour/tour.vue.d.ts +2 -0
  135. package/dist/src/components/wysiwyg/wysiwyg.d.ts +1560 -0
  136. package/dist/src/components/wysiwyg/wysiwyg.stories.d.ts +1583 -0
  137. package/dist/src/components/wysiwyg/wysiwyg.vue.d.ts +2 -0
  138. package/dist/src/composables/filtering.d.ts +22 -0
  139. package/dist/src/composables/mq.d.ts +12 -0
  140. package/dist/src/composables/nanopop.d.ts +77 -0
  141. package/dist/src/composables/table-data.d.ts +138 -0
  142. package/dist/src/composables/useDeviceType.d.ts +4 -0
  143. package/dist/src/index.d.ts +58 -0
  144. package/dist/src/main.d.ts +0 -0
  145. package/dist/src/plugins/luxon.d.ts +3 -0
  146. package/dist/src/router/index.d.ts +2 -0
  147. package/dist/src/views/lists.vue.d.ts +2491 -0
  148. package/dist/src/views/rdp.vue.d.ts +9 -0
  149. package/dist/src/views/showcase.vue.d.ts +523 -0
  150. package/dist/src/views/tables.vue.d.ts +1846 -0
  151. package/dist/src/views/tour.vue.d.ts +48 -0
  152. package/package.json +30 -5
  153. package/tailwind.preset.ts +245 -0
@@ -0,0 +1,2 @@
1
+ export * from './wysiwyg.js';
2
+ export { default } from './wysiwyg.js';
@@ -0,0 +1,22 @@
1
+ export interface FilterOption {
2
+ id?: number | string;
3
+ key?: string;
4
+ name: string;
5
+ value?: number | string | boolean;
6
+ checked?: boolean;
7
+ }
8
+ export interface FilterObject {
9
+ key?: string;
10
+ message?: string;
11
+ name?: string;
12
+ options: FilterOption[];
13
+ selected: FilterOption | FilterOption[] | null;
14
+ required?: boolean;
15
+ }
16
+ export declare const filterData: (data: any, // data to be filtered
17
+ searchBy?: string, // provided by a search input
18
+ filterBy?: FilterObject[], // provided by a filter select
19
+ sortBy?: string, // provided by table headers
20
+ orderBy?: number, // provided by table header arrows
21
+ excludedKeys?: string[] | string, // keys to exclude from the search
22
+ noneEqualsAll?: boolean) => any;
@@ -0,0 +1,12 @@
1
+ declare const mq: {
2
+ xs: boolean;
3
+ sm: boolean;
4
+ md: boolean;
5
+ lg: boolean;
6
+ xl: boolean;
7
+ 'sm-md': boolean;
8
+ 'md-lg': boolean;
9
+ 'lg-xl': boolean;
10
+ 'sm-down': boolean;
11
+ };
12
+ export default mq;
@@ -0,0 +1,77 @@
1
+ type Direction = 'top' | 'left' | 'bottom' | 'right';
2
+ type Alignment = 'start' | 'middle' | 'end';
3
+ export type VariantFlipOrder = {
4
+ start: string;
5
+ middle: string;
6
+ end: string;
7
+ };
8
+ export type PositionFlipOrder = {
9
+ top: string;
10
+ right: string;
11
+ bottom: string;
12
+ left: string;
13
+ };
14
+ export type NanoPopPosition = `${Direction}-${Alignment}` | Direction;
15
+ export type NanoPopOptions = {
16
+ container: DOMRect;
17
+ position: NanoPopPosition;
18
+ variantFlipOrder: VariantFlipOrder;
19
+ positionFlipOrder: PositionFlipOrder;
20
+ margin: number;
21
+ reference?: HTMLElement;
22
+ popper?: HTMLElement;
23
+ arrow?: HTMLElement;
24
+ padding?: number;
25
+ };
26
+ export type PositionMatch = 'ts' | 'tm' | 'te' | 'bs' | 'bm' | 'be' | 'ls' | 'lm' | 'le' | 'rs' | 'rm' | 're';
27
+ export interface NanoPop {
28
+ update(updatedOptions?: Partial<NanoPopOptions>): PositionMatch | null;
29
+ }
30
+ export interface NanoPopConstructor {
31
+ /**
32
+ * @param reference Reference element
33
+ * @param popper Actual popper element
34
+ * @param options Optional options
35
+ */
36
+ (reference: HTMLElement, popper: HTMLElement, options?: Partial<NanoPopOptions>): NanoPop;
37
+ /**
38
+ * @param options Partial options which get merged with the current one
39
+ */
40
+ (options?: Partial<NanoPopOptions>): NanoPop;
41
+ }
42
+ export declare const defaults: {
43
+ variantFlipOrder: {
44
+ start: string;
45
+ middle: string;
46
+ end: string;
47
+ };
48
+ positionFlipOrder: {
49
+ top: string;
50
+ right: string;
51
+ bottom: string;
52
+ left: string;
53
+ };
54
+ position: string;
55
+ margin: number;
56
+ padding: number;
57
+ };
58
+ /**
59
+ * Repositions an element once using the provided options and elements.
60
+ * @param reference Reference element
61
+ * @param popper Popper element
62
+ * @param opt Optional, additional options
63
+ */
64
+ export declare const reposition: (reference: HTMLElement, popper: HTMLElement, opt?: Partial<NanoPopOptions>) => PositionMatch | null;
65
+ /**
66
+ * Creates a stateful popper.
67
+ * You can either...
68
+ * ... pass an options object: createPopper(<options>)
69
+ * ... pass both the reference and popper: create(<ref>, <el>, <?options>)
70
+ * ... pass nothing, in this case you'll have to set at least both a reference and a popper in update.
71
+ *
72
+ * @param reference | options Reference element or options
73
+ * @param popper Popper element
74
+ * @param options Optional additional options
75
+ */
76
+ export declare const createPopper: NanoPopConstructor;
77
+ export {};
@@ -0,0 +1,138 @@
1
+ export declare const data: {
2
+ inspections: ({
3
+ id: string;
4
+ template: {
5
+ id: string;
6
+ name: string;
7
+ isChecklist: number;
8
+ };
9
+ property: {
10
+ id: string;
11
+ name: string;
12
+ timezone: string;
13
+ };
14
+ properties: {
15
+ id: string;
16
+ name: string;
17
+ timezone: string;
18
+ }[];
19
+ started: {
20
+ dateUtc: string;
21
+ dateLocal: string;
22
+ dateShort: string;
23
+ user: {
24
+ id: string;
25
+ name: string;
26
+ };
27
+ };
28
+ inspector: {
29
+ id: string;
30
+ name: string;
31
+ };
32
+ items: number;
33
+ } | {
34
+ id: string;
35
+ template: {
36
+ id: string;
37
+ name: string;
38
+ isChecklist: number;
39
+ };
40
+ property: {
41
+ id: string;
42
+ name: string;
43
+ timezone: string;
44
+ };
45
+ started: {
46
+ dateUtc: string;
47
+ dateLocal: string;
48
+ dateShort: string;
49
+ user: {
50
+ id: string;
51
+ name: string;
52
+ };
53
+ };
54
+ inspector: {
55
+ id: string;
56
+ name: string;
57
+ };
58
+ items: number;
59
+ properties?: undefined;
60
+ })[];
61
+ templates: ({
62
+ id: string;
63
+ name: string;
64
+ postdate_local: string;
65
+ multipleFails: number;
66
+ isChecklist: number;
67
+ reminder: number;
68
+ delayTasks: number;
69
+ description: string;
70
+ showRooms: number;
71
+ quoreOwned: number;
72
+ editableControls: string[];
73
+ created: {
74
+ name: string;
75
+ dateUtc: string;
76
+ dateLocal: string;
77
+ dateShort: string;
78
+ };
79
+ department: {
80
+ id: number;
81
+ name: string;
82
+ };
83
+ properties: {
84
+ id: string;
85
+ name: string;
86
+ }[];
87
+ usedBy: {
88
+ text: string;
89
+ count: number;
90
+ };
91
+ recurring: {
92
+ id: number;
93
+ name: string;
94
+ ordering: number;
95
+ max_days: number;
96
+ };
97
+ } | {
98
+ id: string;
99
+ name: string;
100
+ postdate_local: string;
101
+ multipleFails: number;
102
+ isChecklist: number;
103
+ reminder: number;
104
+ delayTasks: number;
105
+ description: string;
106
+ showRooms: number;
107
+ quoreOwned: number;
108
+ editableControls: string[];
109
+ created: {
110
+ name: string;
111
+ dateUtc: string;
112
+ dateLocal: string;
113
+ dateShort: string;
114
+ };
115
+ department: {
116
+ id: number;
117
+ name: string;
118
+ };
119
+ properties: {
120
+ id: string;
121
+ name: string;
122
+ }[];
123
+ usedBy: {
124
+ text: string;
125
+ count: number;
126
+ };
127
+ recurring: {
128
+ id: string;
129
+ name: string;
130
+ ordering: string;
131
+ max_days: string;
132
+ };
133
+ })[];
134
+ properties: {
135
+ id: string;
136
+ name: string;
137
+ }[];
138
+ };
@@ -0,0 +1,4 @@
1
+ declare const useDeviceType: () => {
2
+ deviceType: import('vue').Ref<string, string>;
3
+ };
4
+ export default useDeviceType;
@@ -0,0 +1,58 @@
1
+ export { default as QAccordion } from './components/accordion/accordion.vue';
2
+ export { default as QActivityItem } from './components/activity-item/activity-item.vue';
3
+ export { default as QAvatar } from './components/avatar/avatar.vue';
4
+ export { default as QBanner } from './components/banner/banner.vue';
5
+ export { default as QBadge } from './components/badge/badge.vue';
6
+ export { default as QBottomSheet } from './components/bottom-sheet/bottom-sheet.vue';
7
+ export { default as QButton } from './components/button/button.vue';
8
+ export { default as QButtonGroup } from './components/button-group/button-group.vue';
9
+ export { default as QCheckbox } from './components/checkbox/checkbox.vue';
10
+ export { default as QComment } from './components/comment/comment.vue';
11
+ export { default as QCommentSection } from './components/comment-section/comment-section.vue';
12
+ export { default as QCounter } from './components/counter/counter.vue';
13
+ export { default as QDataFilter } from './components/data-filter/data-filter.vue';
14
+ export { default as QDataList } from './components/data-list/data-list.vue';
15
+ export { default as QDataTable } from './components/data-table/data-table.vue';
16
+ export { default as QDataTableCell } from './components/data-table-cell/data-table-cell.vue';
17
+ export { default as QDataTableHead } from './components/data-table-head/data-table-head.vue';
18
+ export { default as QDatePicker } from './components/date-picker/date-picker.vue';
19
+ export { default as QDivider } from './components/divider/divider.vue';
20
+ export { default as QErrorModal } from './components/modal/variants/error-modal/error-modal.vue';
21
+ export { default as QFileUpload } from './components/file-upload/file-upload.vue';
22
+ export { default as QFooterActions } from './components/footer-actions/footer-actions.vue';
23
+ export { default as QFormGroup } from './components/form-group/form-group.vue';
24
+ export { default as QGrid } from './components/grid/grid.vue';
25
+ export { default as QIcon } from './components/icon/icon.vue';
26
+ export { default as QIconActionGroup } from './components/icon-action-group/icon-action-group.vue';
27
+ export { default as QImageGallery } from './components/image-gallery/image-gallery.vue';
28
+ export { default as QInput } from './components/input/input.vue';
29
+ export { default as QList } from './components/list/list.vue';
30
+ export { default as QMenu } from './components/menu/menu.vue';
31
+ export { default as QModal } from './components/modal/modal.vue';
32
+ export { default as QModalContent } from './components/modal-content/modal-content.vue';
33
+ export { default as QPageHeading } from './components/page-heading/page-heading.vue';
34
+ export { default as QPageNavigation } from './components/page-navigation/page-navigation.vue';
35
+ export { default as QPdfViewer } from './components/pdf-viewer/pdf-viewer.vue';
36
+ export { default as QPopover } from './components/popover/popover.vue';
37
+ export { default as QProgressBar } from './components/progress-bar/progress-bar.vue';
38
+ export { default as QProgressBarGroup } from './components/progress-bar-group/progress-bar-group.vue';
39
+ export { default as QRadio } from './components/radio/radio.vue';
40
+ export { default as QRoomDetailsPopover } from './components/room-details-popover/room-details-popover.vue';
41
+ export { default as QSelect } from './components/select/select.vue';
42
+ export { default as QTable } from './components/table/table.vue';
43
+ export { default as QTag } from './components/tag/tag.vue';
44
+ export { default as QTextarea } from './components/textarea/textarea.vue';
45
+ export { default as QToast } from './components/toast/toast.vue';
46
+ export { default as QTooltip } from './components/tooltip/tooltip.vue';
47
+ export { default as QTour } from './components/tour/tour.vue';
48
+ export { default as QWarningModal } from './components/modal/variants/warning-modal/warning-modal.vue';
49
+ export { default as QWysiwyg } from './components/wysiwyg/wysiwyg.vue';
50
+ export type { MenuItem } from './components/menu/menu';
51
+ export type { IconActionOption } from './components/icon-action-group/icon-action-group';
52
+ export { filterData } from './composables/filtering';
53
+ export type { FilterObject, FilterOption } from './composables/filtering';
54
+ export { default as mq } from './composables/mq';
55
+ export { default as useDeviceType } from './composables/useDeviceType';
56
+ export { default as DateTimePlugin } from './plugins/luxon';
57
+ export { default as PrimeVue } from 'primevue/config';
58
+ export { default as PrimeVuePresets } from './presets';
File without changes
@@ -0,0 +1,3 @@
1
+ import { Plugin } from 'vue';
2
+ declare const formatDate: Plugin;
3
+ export default formatDate;
@@ -0,0 +1,2 @@
1
+ declare const router: import('vue-router').Router;
2
+ export default router;