@7365admin1/layer-common 4.0.4-staging.239 → 4.0.4-staging.240
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.
|
@@ -8,6 +8,18 @@
|
|
|
8
8
|
:disabled="bulkUploadLoading" @click="openBulkUploadFilePicker()">
|
|
9
9
|
Bulk Upload
|
|
10
10
|
</AppButton>
|
|
11
|
+
<v-tooltip v-if="canCreate && canCreateUnit" text="Download Template" location="top">
|
|
12
|
+
<template #activator="{ props: tooltipProps }">
|
|
13
|
+
<AppButton
|
|
14
|
+
v-bind="tooltipProps"
|
|
15
|
+
variant="icon"
|
|
16
|
+
class="bg-primary"
|
|
17
|
+
icon="mdi-tray-arrow-down"
|
|
18
|
+
aria-label="Download Template"
|
|
19
|
+
@click="downloadBulkUploadTemplate"
|
|
20
|
+
/>
|
|
21
|
+
</template>
|
|
22
|
+
</v-tooltip>
|
|
11
23
|
<AppButton v-if="canCreate && canCreateUnit" icon="mdi-plus" @click="setBuilding()">
|
|
12
24
|
Add Unit
|
|
13
25
|
</AppButton>
|
|
@@ -342,6 +354,15 @@ function openBulkUploadFilePicker() {
|
|
|
342
354
|
}
|
|
343
355
|
}
|
|
344
356
|
|
|
357
|
+
function downloadBulkUploadTemplate() {
|
|
358
|
+
const link = document.createElement("a");
|
|
359
|
+
link.href = "/files/Bulk-Upload-Unit-Template.xlsx";
|
|
360
|
+
link.download = "Bulk-Upload-Unit-Template.xlsx";
|
|
361
|
+
document.body.appendChild(link);
|
|
362
|
+
link.click();
|
|
363
|
+
document.body.removeChild(link);
|
|
364
|
+
}
|
|
365
|
+
|
|
345
366
|
function formatSkippedSummaryReason(item: Record<string, any>) {
|
|
346
367
|
if (Array.isArray(item.errors) && item.errors.length) {
|
|
347
368
|
return item.errors.join(", ");
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.0.4-staging.
|
|
5
|
+
"version": "4.0.4-staging.240",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|
|
Binary file
|