@7365admin1/layer-common 1.8.0
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/.changeset/README.md +8 -0
- package/.changeset/config.json +11 -0
- package/.editorconfig +12 -0
- package/.github/workflows/main.yml +17 -0
- package/.github/workflows/publish.yml +39 -0
- package/.nuxtrc +1 -0
- package/.playground/app.vue +41 -0
- package/.playground/eslint.config.mjs +6 -0
- package/.playground/nuxt.config.ts +22 -0
- package/.playground/pages/feedback.vue +30 -0
- package/CHANGELOG.md +263 -0
- package/README.md +73 -0
- package/app.vue +3 -0
- package/components/AccessCardAddForm.vue +363 -0
- package/components/AccessManagement.vue +420 -0
- package/components/Avatar/Main.vue +68 -0
- package/components/BillingMain.vue +66 -0
- package/components/BtnUploadFile.vue +139 -0
- package/components/BuildingForm.vue +303 -0
- package/components/BuildingManagement/buildings.vue +335 -0
- package/components/BuildingManagement/units.vue +350 -0
- package/components/BuildingUnitFormAdd.vue +441 -0
- package/components/BuildingUnitFormEdit.vue +429 -0
- package/components/CameraForm.vue +264 -0
- package/components/CameraMain.vue +352 -0
- package/components/Card/DeleteConfirmation.vue +51 -0
- package/components/Card/MemberInfoSummary.vue +44 -0
- package/components/Card/Toggle.vue +25 -0
- package/components/Chat/Bubbles.vue +53 -0
- package/components/Chat/Information.vue +416 -0
- package/components/Chat/ListCard.vue +62 -0
- package/components/Chat/Message.vue +158 -0
- package/components/Chat/Navigation.vue +150 -0
- package/components/ConfirmDialog.vue +66 -0
- package/components/Container/Standard.vue +33 -0
- package/components/DashboardPlaceholder.vue +1524 -0
- package/components/Dialog/DeleteConfirmation.vue +51 -0
- package/components/Dialog/ReplaceAutofillPrompt.vue +49 -0
- package/components/Dialog/UpdateMoreAction.vue +103 -0
- package/components/DocumentForm.vue +187 -0
- package/components/DocumentManagement.vue +376 -0
- package/components/Editor.vue +95 -0
- package/components/EntryPassMain.vue +518 -0
- package/components/Feedback/Form.vue +173 -0
- package/components/FeedbackDetail.vue +599 -0
- package/components/FeedbackMain.vue +588 -0
- package/components/FormDialog.vue +65 -0
- package/components/ImageCarousel.vue +138 -0
- package/components/Input/Date.vue +177 -0
- package/components/Input/DateTimePicker.vue +131 -0
- package/components/Input/File.vue +236 -0
- package/components/Input/FileV2.vue +234 -0
- package/components/Input/InputPhoneNumberV2.vue +164 -0
- package/components/Input/ListGroupSelection.vue +96 -0
- package/components/Input/NRICNumber.vue +53 -0
- package/components/Input/NewDate.vue +123 -0
- package/components/Input/Number.vue +124 -0
- package/components/Input/Password.vue +22 -0
- package/components/Input/PhoneNumber.vue +188 -0
- package/components/Input/VehicleNumber.vue +49 -0
- package/components/InputLabel.vue +22 -0
- package/components/InvitationForm.vue +359 -0
- package/components/InvitationMain.vue +310 -0
- package/components/Layout/Header.vue +129 -0
- package/components/Layout/NavigationDrawer.vue +44 -0
- package/components/ListItem.vue +35 -0
- package/components/ListView.vue +87 -0
- package/components/LocalPagination.vue +31 -0
- package/components/MemberMain.vue +459 -0
- package/components/NFC/NFCPatrolReportMain.vue +591 -0
- package/components/NFC/NFCPatrolRouteForm.vue +596 -0
- package/components/NFC/NFCPatrolRouteMain.vue +539 -0
- package/components/NFC/NFCTagForm.vue +236 -0
- package/components/NFC/NFCTagMain.vue +337 -0
- package/components/NFC/PatrolSettings.vue +130 -0
- package/components/NavigationItem.vue +83 -0
- package/components/NumberSettingField.vue +107 -0
- package/components/OnlineFormConfigurationForm.vue +290 -0
- package/components/OnlineFormsConfiguration.vue +429 -0
- package/components/PeopleForm.vue +452 -0
- package/components/PlaceholderComponent.vue +34 -0
- package/components/RolePermissionFormCreate.vue +161 -0
- package/components/RolePermissionFormPreviewUpdate.vue +183 -0
- package/components/RolePermissionMain.vue +361 -0
- package/components/SearchVehicleNumberUser.vue +91 -0
- package/components/ServiceProviderFormCreate.vue +154 -0
- package/components/ServiceProviderMain.vue +547 -0
- package/components/SignaturePad.vue +73 -0
- package/components/Snackbar.vue +23 -0
- package/components/SpecificAttr.vue +53 -0
- package/components/SupplyManagement.vue +292 -0
- package/components/SwitchContext.vue +108 -0
- package/components/TableList.vue +150 -0
- package/components/TableListSecondary.vue +164 -0
- package/components/TableMain.vue +142 -0
- package/components/TableWithButton.vue +94 -0
- package/components/VehicleUpdateMoreAction.vue +84 -0
- package/components/VideoPlayer.vue +125 -0
- package/components/VisitorForm.vue +659 -0
- package/components/VisitorFormSelection.vue +53 -0
- package/components/VisitorManagement.vue +490 -0
- package/components/WorkOrder/Create.vue +284 -0
- package/components/WorkOrder/Detail.vue +71 -0
- package/components/WorkOrder/ListView.vue +96 -0
- package/components/WorkOrder/Main.vue +489 -0
- package/components/Workorder.vue +1 -0
- package/composables/useAddress.ts +107 -0
- package/composables/useBuilding.ts +250 -0
- package/composables/useBuildingUnit.ts +116 -0
- package/composables/useCard.ts +46 -0
- package/composables/useCommonPermission.ts +207 -0
- package/composables/useCustomer.ts +113 -0
- package/composables/useCustomerSite.ts +56 -0
- package/composables/useDashboard.ts +31 -0
- package/composables/useDashboardData.ts +425 -0
- package/composables/useDocument.ts +57 -0
- package/composables/useFacility.ts +246 -0
- package/composables/useFeedback.ts +119 -0
- package/composables/useFile.ts +55 -0
- package/composables/useInvoice.ts +18 -0
- package/composables/useLocal.ts +131 -0
- package/composables/useLocalAuth.ts +137 -0
- package/composables/useLocalSetup.ts +13 -0
- package/composables/useMember.ts +111 -0
- package/composables/useNFCPatrolRoute.ts +77 -0
- package/composables/useNFCPatrolSettings.ts +19 -0
- package/composables/useNFCPatrolTag.ts +53 -0
- package/composables/useOnlineForm.ts +67 -0
- package/composables/useOrg.ts +129 -0
- package/composables/usePDFDownload.ts +25 -0
- package/composables/usePaymentMethod.ts +101 -0
- package/composables/usePeople.ts +81 -0
- package/composables/usePermission.ts +54 -0
- package/composables/usePhoneCountries.ts +561 -0
- package/composables/usePrice.ts +15 -0
- package/composables/usePromoCode.ts +36 -0
- package/composables/useRecapPermission.ts +26 -0
- package/composables/useRole.ts +104 -0
- package/composables/useSecurityUtils.ts +18 -0
- package/composables/useServiceProvider.ts +224 -0
- package/composables/useSite.ts +109 -0
- package/composables/useSiteEntryPassSettings.ts +46 -0
- package/composables/useSiteSettings.ts +123 -0
- package/composables/useSubscription.ts +150 -0
- package/composables/useUser.ts +132 -0
- package/composables/useUtils.ts +445 -0
- package/composables/useVerification.ts +34 -0
- package/composables/useVisitor.ts +120 -0
- package/composables/useWorkOrder.ts +85 -0
- package/error.vue +41 -0
- package/layouts/plain.vue +7 -0
- package/middleware/01.auth.ts +20 -0
- package/middleware/02.org.ts +21 -0
- package/middleware/03.customer.ts +13 -0
- package/middleware/member.ts +4 -0
- package/nuxt.config.ts +54 -0
- package/package.json +39 -0
- package/pages/index.vue +3 -0
- package/pages/payment-method-linked.vue +31 -0
- package/pages/require-customer.vue +56 -0
- package/pages/require-organization-membership.vue +47 -0
- package/pages/unauthorized.vue +29 -0
- package/plugins/API.ts +21 -0
- package/plugins/iconify.client.ts +5 -0
- package/plugins/secure-member.client.ts +86 -0
- package/plugins/vuetify.ts +62 -0
- package/public/bg-camera.jpg +0 -0
- package/public/bg-city.jpg +0 -0
- package/public/bg-condo.jpg +0 -0
- package/public/images/icons/delete-icon.png +0 -0
- package/public/sprite.svg +1 -0
- package/tsconfig.json +3 -0
- package/types/address.d.ts +13 -0
- package/types/building.d.ts +27 -0
- package/types/camera.d.ts +31 -0
- package/types/card.d.ts +22 -0
- package/types/customer.d.ts +27 -0
- package/types/document.d.ts +6 -0
- package/types/feedback.d.ts +68 -0
- package/types/local.d.ts +74 -0
- package/types/member.d.ts +21 -0
- package/types/online-form.d.ts +15 -0
- package/types/org.d.ts +13 -0
- package/types/people.d.ts +24 -0
- package/types/permission.d.ts +25 -0
- package/types/phone-number.d.ts +10 -0
- package/types/price.d.ts +17 -0
- package/types/promo-code.d.ts +19 -0
- package/types/role.d.ts +11 -0
- package/types/select.d.ts +4 -0
- package/types/service-provider.d.ts +15 -0
- package/types/site.d.ts +20 -0
- package/types/subscription.d.ts +23 -0
- package/types/user.d.ts +19 -0
- package/types/verification.d.ts +20 -0
- package/types/visitor.d.ts +42 -0
- package/types/work-order.d.ts +42 -0
- package/utils/phoneMasks.ts +1703 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-sheet
|
|
3
|
+
elevation="1"
|
|
4
|
+
rounded="0"
|
|
5
|
+
class="pa-4 fill-height"
|
|
6
|
+
style="border-right: 1px solid #e0e0e0; border-top: 1px solid #e0e0e0"
|
|
7
|
+
>
|
|
8
|
+
<h3 class="text-h6 mb-4">{{ title }}</h3>
|
|
9
|
+
|
|
10
|
+
<v-text-field
|
|
11
|
+
v-model="search"
|
|
12
|
+
@input="_search"
|
|
13
|
+
label="Search"
|
|
14
|
+
prepend-inner-icon="mdi-magnify"
|
|
15
|
+
density="compact"
|
|
16
|
+
hide-details
|
|
17
|
+
variant="outlined"
|
|
18
|
+
class="mb-4"
|
|
19
|
+
/>
|
|
20
|
+
|
|
21
|
+
<v-select
|
|
22
|
+
label="Filter by Status"
|
|
23
|
+
:items="['All', 'In Progress', 'To Do', 'Done']"
|
|
24
|
+
v-model="selectedStatus"
|
|
25
|
+
density="compact"
|
|
26
|
+
hide-details
|
|
27
|
+
variant="outlined"
|
|
28
|
+
class="mb-4"
|
|
29
|
+
/>
|
|
30
|
+
|
|
31
|
+
<v-row dense class="mb-4" align="center">
|
|
32
|
+
<v-col cols="5">
|
|
33
|
+
<v-menu
|
|
34
|
+
v-model="startMenu"
|
|
35
|
+
:close-on-content-click="false"
|
|
36
|
+
transition="scale-transition"
|
|
37
|
+
offset-y
|
|
38
|
+
max-width="280px"
|
|
39
|
+
min-width="auto"
|
|
40
|
+
>
|
|
41
|
+
<template #activator="{ props }">
|
|
42
|
+
<v-text-field
|
|
43
|
+
v-bind="props"
|
|
44
|
+
v-model="startDate"
|
|
45
|
+
label="Start Date"
|
|
46
|
+
density="compact"
|
|
47
|
+
variant="outlined"
|
|
48
|
+
readonly
|
|
49
|
+
hide-details
|
|
50
|
+
prepend-inner-icon="mdi-calendar"
|
|
51
|
+
/>
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<v-date-picker
|
|
55
|
+
v-model="startDate"
|
|
56
|
+
@update:model-value="startMenu = false"
|
|
57
|
+
show-adjacent-months
|
|
58
|
+
hide-header
|
|
59
|
+
class="d-flex flex-column pa-2"
|
|
60
|
+
style="font-size: 0.85rem; max-height: 300px"
|
|
61
|
+
/>
|
|
62
|
+
</v-menu>
|
|
63
|
+
</v-col>
|
|
64
|
+
|
|
65
|
+
<v-col cols="2" class="d-flex align-center justify-center">
|
|
66
|
+
<span class="text-subtitle-2">to</span>
|
|
67
|
+
</v-col>
|
|
68
|
+
|
|
69
|
+
<v-col cols="5">
|
|
70
|
+
<v-menu
|
|
71
|
+
v-model="endMenu"
|
|
72
|
+
:close-on-content-click="false"
|
|
73
|
+
transition="scale-transition"
|
|
74
|
+
offset-y
|
|
75
|
+
max-width="280px"
|
|
76
|
+
min-width="auto"
|
|
77
|
+
>
|
|
78
|
+
<template #activator="{ props }">
|
|
79
|
+
<v-text-field
|
|
80
|
+
v-bind="props"
|
|
81
|
+
v-model="endDate"
|
|
82
|
+
label="End Date"
|
|
83
|
+
density="compact"
|
|
84
|
+
variant="outlined"
|
|
85
|
+
readonly
|
|
86
|
+
hide-details
|
|
87
|
+
prepend-inner-icon="mdi-calendar"
|
|
88
|
+
/>
|
|
89
|
+
</template>
|
|
90
|
+
|
|
91
|
+
<v-date-picker
|
|
92
|
+
v-model="endDate"
|
|
93
|
+
@update:model-value="endMenu = false"
|
|
94
|
+
show-adjacent-months
|
|
95
|
+
hide-header
|
|
96
|
+
class="d-flex flex-column pa-2"
|
|
97
|
+
style="font-size: 0.85rem; max-height: 300px"
|
|
98
|
+
/>
|
|
99
|
+
</v-menu>
|
|
100
|
+
</v-col>
|
|
101
|
+
</v-row>
|
|
102
|
+
|
|
103
|
+
<v-sheet
|
|
104
|
+
class="overflow-y-auto flex-grow-1 pa-3"
|
|
105
|
+
:style="{ height: 'calc(100vh - 320px)', overflowX: 'hidden' }"
|
|
106
|
+
>
|
|
107
|
+
<v-row dense>
|
|
108
|
+
<v-col v-for="(item, index) in items" :key="item._id" cols="12">
|
|
109
|
+
<div class="cursor-pointer" @click="$emit('select', item._id)">
|
|
110
|
+
<ChatListCard
|
|
111
|
+
:image="currentUser?.profile"
|
|
112
|
+
:subject="item.subject"
|
|
113
|
+
:status="item.status"
|
|
114
|
+
:createdAt="
|
|
115
|
+
item.createdAt
|
|
116
|
+
? new Date(item.createdAt).toLocaleDateString()
|
|
117
|
+
: ''
|
|
118
|
+
"
|
|
119
|
+
:createdByName="item.createdByName"
|
|
120
|
+
:userProfile="currentUser?.profile"
|
|
121
|
+
:getNameInitials="getNameInitials"
|
|
122
|
+
/>
|
|
123
|
+
</div>
|
|
124
|
+
</v-col>
|
|
125
|
+
</v-row>
|
|
126
|
+
</v-sheet>
|
|
127
|
+
</v-sheet>
|
|
128
|
+
</template>
|
|
129
|
+
|
|
130
|
+
<script setup lang="ts">
|
|
131
|
+
defineProps<{
|
|
132
|
+
title: string;
|
|
133
|
+
items: Array<Record<string, any>>;
|
|
134
|
+
}>();
|
|
135
|
+
|
|
136
|
+
const emit = defineEmits(["select", "search"]);
|
|
137
|
+
|
|
138
|
+
const { currentUser } = useLocalAuth();
|
|
139
|
+
const { getNameInitials, search } = useUtils();
|
|
140
|
+
|
|
141
|
+
const selectedStatus = ref("All");
|
|
142
|
+
const startDate = ref(null);
|
|
143
|
+
const endDate = ref(null);
|
|
144
|
+
const startMenu = ref(false);
|
|
145
|
+
const endMenu = ref(false);
|
|
146
|
+
|
|
147
|
+
function _search() {
|
|
148
|
+
emit("search", search.value);
|
|
149
|
+
}
|
|
150
|
+
</script>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-dialog v-model="dialog" max-width="400" persistent>
|
|
3
|
+
<v-card class="rounded-xl pa-6" elevation="2">
|
|
4
|
+
<!-- Close Button -->
|
|
5
|
+
<v-btn
|
|
6
|
+
icon
|
|
7
|
+
variant="text"
|
|
8
|
+
size="small"
|
|
9
|
+
class="position-absolute"
|
|
10
|
+
style="top: 8px; right: 8px"
|
|
11
|
+
@click="closeDialog"
|
|
12
|
+
>
|
|
13
|
+
<v-icon>mdi-close</v-icon>
|
|
14
|
+
</v-btn>
|
|
15
|
+
|
|
16
|
+
<v-card-text class="text-center">
|
|
17
|
+
<v-row v-if="imageSrc" justify="center" class="py-10">
|
|
18
|
+
<v-img height="120" :src="imageSrc" alt="Dialog Image" contain />
|
|
19
|
+
</v-row>
|
|
20
|
+
|
|
21
|
+
<!-- Title Slot -->
|
|
22
|
+
<div class="text-h6 font-weight-medium mb-2">
|
|
23
|
+
<slot name="title"></slot>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<!-- Description Slot -->
|
|
27
|
+
<div class="text-body-1 mb-4">
|
|
28
|
+
<slot name="description"></slot>
|
|
29
|
+
</div>
|
|
30
|
+
</v-card-text>
|
|
31
|
+
|
|
32
|
+
<!-- Footer Slot -->
|
|
33
|
+
<v-card-actions>
|
|
34
|
+
<slot name="footer"></slot>
|
|
35
|
+
</v-card-actions>
|
|
36
|
+
</v-card>
|
|
37
|
+
</v-dialog>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script lang="ts" setup>
|
|
41
|
+
const props = defineProps({
|
|
42
|
+
modelValue: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false,
|
|
45
|
+
},
|
|
46
|
+
imageSrc: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "",
|
|
49
|
+
},
|
|
50
|
+
loading: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
const emit = defineEmits(["update:modelValue", "submit"]);
|
|
57
|
+
|
|
58
|
+
const dialog = computed({
|
|
59
|
+
get: () => props.modelValue,
|
|
60
|
+
set: (value) => emit("update:modelValue", value),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
function closeDialog() {
|
|
64
|
+
dialog.value = false;
|
|
65
|
+
}
|
|
66
|
+
</script>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-row no-gutters>
|
|
3
|
+
<v-col cols="12">
|
|
4
|
+
<span
|
|
5
|
+
class="font-weight-medium text-subtitle-1 text-decoration-underline cursor-pointer"
|
|
6
|
+
@click="emit('back')"
|
|
7
|
+
>
|
|
8
|
+
Back
|
|
9
|
+
</span>
|
|
10
|
+
</v-col>
|
|
11
|
+
<v-col cols="12">
|
|
12
|
+
<span class="text-h5 font-weight-medium">{{ props.title }}</span>
|
|
13
|
+
</v-col>
|
|
14
|
+
|
|
15
|
+
<v-col cols="12" class="mt-4">
|
|
16
|
+
<slot name="default"> </slot>
|
|
17
|
+
</v-col>
|
|
18
|
+
|
|
19
|
+
<v-col cols="12" class="mt-4">
|
|
20
|
+
<slot name="footer"> </slot>
|
|
21
|
+
</v-col>
|
|
22
|
+
</v-row>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script setup lang="ts">
|
|
26
|
+
const emit = defineEmits(["back"]);
|
|
27
|
+
const props = defineProps({
|
|
28
|
+
title: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "",
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
</script>
|