@weconstudio/nuxt 0.0.0-stage → 1.72.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/LICENSE +1 -0
- package/README.md +115 -2
- package/dist/module.d.mts +7 -0
- package/dist/module.json +12 -0
- package/dist/module.mjs +250 -0
- package/dist/runtime/components/We/Autocomplete.d.vue.ts +13 -0
- package/dist/runtime/components/We/Autocomplete.vue +91 -0
- package/dist/runtime/components/We/Autocomplete.vue.d.ts +13 -0
- package/dist/runtime/components/We/BoldText.d.vue.ts +17 -0
- package/dist/runtime/components/We/BoldText.vue +29 -0
- package/dist/runtime/components/We/BoldText.vue.d.ts +17 -0
- package/dist/runtime/components/We/ColorPicker.d.vue.ts +11 -0
- package/dist/runtime/components/We/ColorPicker.vue +199 -0
- package/dist/runtime/components/We/ColorPicker.vue.d.ts +11 -0
- package/dist/runtime/components/We/ConfirmDialog.d.vue.ts +104 -0
- package/dist/runtime/components/We/ConfirmDialog.vue +143 -0
- package/dist/runtime/components/We/ConfirmDialog.vue.d.ts +104 -0
- package/dist/runtime/components/We/Datatable.d.vue.ts +40 -0
- package/dist/runtime/components/We/Datatable.vue +87 -0
- package/dist/runtime/components/We/Datatable.vue.d.ts +40 -0
- package/dist/runtime/components/We/DatatableInternal.d.vue.ts +194 -0
- package/dist/runtime/components/We/DatatableInternal.vue +638 -0
- package/dist/runtime/components/We/DatatableInternal.vue.d.ts +194 -0
- package/dist/runtime/components/We/DatePicker.d.vue.ts +51 -0
- package/dist/runtime/components/We/DatePicker.vue +901 -0
- package/dist/runtime/components/We/DatePicker.vue.d.ts +51 -0
- package/dist/runtime/components/We/Dt/Actions.d.vue.ts +51 -0
- package/dist/runtime/components/We/Dt/Actions.vue +106 -0
- package/dist/runtime/components/We/Dt/Actions.vue.d.ts +51 -0
- package/dist/runtime/components/We/Dt/BooleanFormatter.d.vue.ts +8 -0
- package/dist/runtime/components/We/Dt/BooleanFormatter.vue +26 -0
- package/dist/runtime/components/We/Dt/BooleanFormatter.vue.d.ts +8 -0
- package/dist/runtime/components/We/Dt/CardFilterContainer.d.vue.ts +17 -0
- package/dist/runtime/components/We/Dt/CardFilterContainer.vue +60 -0
- package/dist/runtime/components/We/Dt/CardFilterContainer.vue.d.ts +17 -0
- package/dist/runtime/components/We/Dt/CheckboxFilter.d.vue.ts +16 -0
- package/dist/runtime/components/We/Dt/CheckboxFilter.vue +47 -0
- package/dist/runtime/components/We/Dt/CheckboxFilter.vue.d.ts +16 -0
- package/dist/runtime/components/We/Dt/ChipGroupSelect.d.vue.ts +7 -0
- package/dist/runtime/components/We/Dt/ChipGroupSelect.vue +35 -0
- package/dist/runtime/components/We/Dt/ChipGroupSelect.vue.d.ts +7 -0
- package/dist/runtime/components/We/Dt/ClusterFilter.d.vue.ts +18 -0
- package/dist/runtime/components/We/Dt/ClusterFilter.vue +68 -0
- package/dist/runtime/components/We/Dt/ClusterFilter.vue.d.ts +18 -0
- package/dist/runtime/components/We/Dt/DatasetFormatter.d.vue.ts +19 -0
- package/dist/runtime/components/We/Dt/DatasetFormatter.vue +65 -0
- package/dist/runtime/components/We/Dt/DatasetFormatter.vue.d.ts +19 -0
- package/dist/runtime/components/We/Dt/DaterangeFilter.d.vue.ts +28 -0
- package/dist/runtime/components/We/Dt/DaterangeFilter.vue +140 -0
- package/dist/runtime/components/We/Dt/DaterangeFilter.vue.d.ts +28 -0
- package/dist/runtime/components/We/Dt/Filter.d.vue.ts +7 -0
- package/dist/runtime/components/We/Dt/Filter.vue +234 -0
- package/dist/runtime/components/We/Dt/Filter.vue.d.ts +7 -0
- package/dist/runtime/components/We/Dt/Filters.d.vue.ts +6 -0
- package/dist/runtime/components/We/Dt/Filters.vue +24 -0
- package/dist/runtime/components/We/Dt/Filters.vue.d.ts +6 -0
- package/dist/runtime/components/We/Dt/LuxonFormatter.d.vue.ts +12 -0
- package/dist/runtime/components/We/Dt/LuxonFormatter.vue +23 -0
- package/dist/runtime/components/We/Dt/LuxonFormatter.vue.d.ts +12 -0
- package/dist/runtime/components/We/Dt/SelectFilter.d.vue.ts +60 -0
- package/dist/runtime/components/We/Dt/SelectFilter.vue +333 -0
- package/dist/runtime/components/We/Dt/SelectFilter.vue.d.ts +60 -0
- package/dist/runtime/components/We/Dt/SelectResourceFilter.d.vue.ts +43 -0
- package/dist/runtime/components/We/Dt/SelectResourceFilter.vue +127 -0
- package/dist/runtime/components/We/Dt/SelectResourceFilter.vue.d.ts +43 -0
- package/dist/runtime/components/We/Dt/dt.types.d.ts +8 -0
- package/dist/runtime/components/We/EndpointSwitcher.d.vue.ts +12 -0
- package/dist/runtime/components/We/EndpointSwitcher.vue +256 -0
- package/dist/runtime/components/We/EndpointSwitcher.vue.d.ts +12 -0
- package/dist/runtime/components/We/Import.d.vue.ts +118 -0
- package/dist/runtime/components/We/Import.vue +730 -0
- package/dist/runtime/components/We/Import.vue.d.ts +118 -0
- package/dist/runtime/components/We/ImportDefaultValues.d.vue.ts +3666 -0
- package/dist/runtime/components/We/ImportDefaultValues.vue +115 -0
- package/dist/runtime/components/We/ImportDefaultValues.vue.d.ts +3666 -0
- package/dist/runtime/components/We/ImportMatchColumns.d.vue.ts +66 -0
- package/dist/runtime/components/We/ImportMatchColumns.vue +172 -0
- package/dist/runtime/components/We/ImportMatchColumns.vue.d.ts +66 -0
- package/dist/runtime/components/We/ImportPreviewResults.d.vue.ts +38 -0
- package/dist/runtime/components/We/ImportPreviewResults.vue +165 -0
- package/dist/runtime/components/We/ImportPreviewResults.vue.d.ts +38 -0
- package/dist/runtime/components/We/ImportSelectStart.d.vue.ts +47 -0
- package/dist/runtime/components/We/ImportSelectStart.vue +106 -0
- package/dist/runtime/components/We/ImportSelectStart.vue.d.ts +47 -0
- package/dist/runtime/components/We/Notification.d.vue.ts +7 -0
- package/dist/runtime/components/We/Notification.vue +49 -0
- package/dist/runtime/components/We/Notification.vue.d.ts +7 -0
- package/dist/runtime/components/We/S3Dropzone.d.vue.ts +17 -0
- package/dist/runtime/components/We/S3Dropzone.vue +527 -0
- package/dist/runtime/components/We/S3Dropzone.vue.d.ts +17 -0
- package/dist/runtime/components/We/Select.d.vue.ts +39 -0
- package/dist/runtime/components/We/Select.vue +354 -0
- package/dist/runtime/components/We/Select.vue.d.ts +39 -0
- package/dist/runtime/components/We/TipTap.d.vue.ts +26 -0
- package/dist/runtime/components/We/TipTap.vue +362 -0
- package/dist/runtime/components/We/TipTap.vue.d.ts +26 -0
- package/dist/runtime/components/We/datatable.props.d.ts +57 -0
- package/dist/runtime/components/We/datatable.props.js +60 -0
- package/dist/runtime/composables/datatable/useAutoFillHeight.d.ts +31 -0
- package/dist/runtime/composables/datatable/useAutoFillHeight.js +57 -0
- package/dist/runtime/composables/datatable/useDataTable.d.ts +33 -0
- package/dist/runtime/composables/datatable/useDataTable.js +161 -0
- package/dist/runtime/composables/datatable/useDatatableColumns.d.ts +12 -0
- package/dist/runtime/composables/datatable/useDatatableColumns.js +96 -0
- package/dist/runtime/composables/useApi.d.ts +56 -0
- package/dist/runtime/composables/useApi.js +230 -0
- package/dist/runtime/composables/useApiFetch.d.ts +2 -0
- package/dist/runtime/composables/useApiFetch.js +9 -0
- package/dist/runtime/composables/useApiUrl.d.ts +10 -0
- package/dist/runtime/composables/useApiUrl.js +37 -0
- package/dist/runtime/composables/useAuth.d.ts +9 -0
- package/dist/runtime/composables/useAuth.js +22 -0
- package/dist/runtime/composables/useBus.d.ts +8 -0
- package/dist/runtime/composables/useBus.js +18 -0
- package/dist/runtime/composables/useDateRangePresets.d.ts +21 -0
- package/dist/runtime/composables/useDateRangePresets.js +90 -0
- package/dist/runtime/composables/useForm.d.ts +29 -0
- package/dist/runtime/composables/useForm.js +74 -0
- package/dist/runtime/composables/useFormLock.d.ts +11 -0
- package/dist/runtime/composables/useFormLock.js +8 -0
- package/dist/runtime/composables/useFormWrapper.d.ts +16 -0
- package/dist/runtime/composables/useFormWrapper.js +36 -0
- package/dist/runtime/composables/useImportJob.d.ts +55 -0
- package/dist/runtime/composables/useImportJob.js +94 -0
- package/dist/runtime/composables/useLux.d.ts +1 -0
- package/dist/runtime/composables/useLux.js +8 -0
- package/dist/runtime/composables/useNotify.d.ts +12 -0
- package/dist/runtime/composables/useNotify.js +24 -0
- package/dist/runtime/composables/usePaginatedFetch.d.ts +24 -0
- package/dist/runtime/composables/usePaginatedFetch.js +154 -0
- package/dist/runtime/composables/useServerErrors.d.ts +16 -0
- package/dist/runtime/composables/useServerErrors.js +60 -0
- package/dist/runtime/composables/useValidators.d.ts +18 -0
- package/dist/runtime/composables/useValidators.js +56 -0
- package/dist/runtime/generator/code/dt.d.ts +8 -0
- package/dist/runtime/generator/code/dt.js +97 -0
- package/dist/runtime/generator/code/edit.d.ts +4 -0
- package/dist/runtime/generator/code/edit.js +41 -0
- package/dist/runtime/generator/code/form.d.ts +6 -0
- package/dist/runtime/generator/code/form.js +229 -0
- package/dist/runtime/generator/code/i18n.d.ts +5 -0
- package/dist/runtime/generator/code/i18n.js +43 -0
- package/dist/runtime/generator/code/index.d.ts +11 -0
- package/dist/runtime/generator/code/index.js +90 -0
- package/dist/runtime/generator/components/CodeSnippet.d.vue.ts +14 -0
- package/dist/runtime/generator/components/CodeSnippet.vue +49 -0
- package/dist/runtime/generator/components/CodeSnippet.vue.d.ts +14 -0
- package/dist/runtime/generator/components/Configuration.d.vue.ts +16 -0
- package/dist/runtime/generator/components/Configuration.vue +154 -0
- package/dist/runtime/generator/components/Configuration.vue.d.ts +16 -0
- package/dist/runtime/generator/components/GeneratorPage.d.vue.ts +50 -0
- package/dist/runtime/generator/components/GeneratorPage.vue +226 -0
- package/dist/runtime/generator/components/GeneratorPage.vue.d.ts +50 -0
- package/dist/runtime/generator/fs.d.ts +16 -0
- package/dist/runtime/generator/fs.js +79 -0
- package/dist/runtime/generator/index.d.vue.ts +52 -0
- package/dist/runtime/generator/index.vue +17 -0
- package/dist/runtime/generator/index.vue.d.ts +52 -0
- package/dist/runtime/internals/api.d.ts +3 -0
- package/dist/runtime/internals/api.js +16 -0
- package/dist/runtime/internals/bus.d.ts +1 -0
- package/dist/runtime/internals/bus.js +2 -0
- package/dist/runtime/internals/dt.d.ts +24 -0
- package/dist/runtime/internals/dt.js +57 -0
- package/dist/runtime/lang/en.json +211 -0
- package/dist/runtime/lang/it.json +211 -0
- package/dist/runtime/mixins/formValidator.d.ts +38 -0
- package/dist/runtime/mixins/formValidator.js +118 -0
- package/dist/runtime/plugins/api-legacy.d.ts +76 -0
- package/dist/runtime/plugins/api-legacy.js +11 -0
- package/dist/runtime/plugins/auth-legacy.d.ts +22 -0
- package/dist/runtime/plugins/auth-legacy.js +14 -0
- package/dist/runtime/plugins/bus-legacy.d.ts +6 -0
- package/dist/runtime/plugins/bus-legacy.js +9 -0
- package/dist/runtime/plugins/notify-legacy.d.ts +25 -0
- package/dist/runtime/plugins/notify-legacy.js +35 -0
- package/dist/runtime/plugins/portal.d.ts +2 -0
- package/dist/runtime/plugins/portal.js +5 -0
- package/dist/runtime/plugins/update-sanctum-app-config.d.ts +2 -0
- package/dist/runtime/plugins/update-sanctum-app-config.js +44 -0
- package/dist/runtime/plugins/vuetify-nuxt-icon.d.ts +4 -0
- package/dist/runtime/plugins/vuetify-nuxt-icon.js +30 -0
- package/dist/runtime/types/app-config.d.ts +24 -0
- package/dist/runtime/types/app-config.js +1 -0
- package/dist/runtime/types/icons.d.ts +82 -0
- package/dist/runtime/types/icons.js +84 -0
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/module-options.d.ts +29 -0
- package/dist/runtime/types/module-options.js +0 -0
- package/dist/runtime/types/runtime-hooks.d.ts +17 -0
- package/dist/runtime/types/runtime-hooks.js +1 -0
- package/dist/runtime/utils/color.d.ts +10 -0
- package/dist/runtime/utils/color.js +38 -0
- package/dist/runtime/utils/file.d.ts +17 -0
- package/dist/runtime/utils/file.js +108 -0
- package/dist/runtime/utils/format.d.ts +1 -0
- package/dist/runtime/utils/format.js +14 -0
- package/dist/runtime/utils/make-enum.d.ts +15 -0
- package/dist/runtime/utils/make-enum.js +27 -0
- package/dist/runtime/utils/mergeDefaults.d.ts +1 -0
- package/dist/runtime/utils/mergeDefaults.js +18 -0
- package/dist/runtime/utils/object-to-formdata.d.ts +10 -0
- package/dist/runtime/utils/object-to-formdata.js +82 -0
- package/dist/runtime/utils/uuid.d.ts +1 -0
- package/dist/runtime/utils/uuid.js +9 -0
- package/dist/types.d.mts +9 -0
- package/package.json +92 -4
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useApiUrl } from "#imports";
|
|
3
|
+
import { computed, ref, watch } from "vue";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
password: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "letmein"
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
const { changeBaseUrl, endpoints, apiBaseUrl, xDebug, changeXDebug } = useApiUrl();
|
|
11
|
+
const dialog = ref(false);
|
|
12
|
+
const counts = ref(0);
|
|
13
|
+
const url = ref(apiBaseUrl.value);
|
|
14
|
+
const unlocked = ref(false);
|
|
15
|
+
const passwordInput = ref("");
|
|
16
|
+
const passwordField = ref(null);
|
|
17
|
+
const passwordVisible = ref(false);
|
|
18
|
+
const passwordError = ref(false);
|
|
19
|
+
const shake = ref(false);
|
|
20
|
+
const lockDialog = computed({
|
|
21
|
+
get: () => dialog.value && !unlocked.value,
|
|
22
|
+
set: (open) => {
|
|
23
|
+
if (!open && !unlocked.value) {
|
|
24
|
+
dialog.value = false;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const activatorAttrs = {
|
|
29
|
+
attrs: {
|
|
30
|
+
onClick: () => {
|
|
31
|
+
counts.value++;
|
|
32
|
+
if (counts.value === 5) {
|
|
33
|
+
counts.value = 0;
|
|
34
|
+
dialog.value = true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
watch(dialog, (open) => {
|
|
40
|
+
if (open) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
unlocked.value = false;
|
|
44
|
+
passwordInput.value = "";
|
|
45
|
+
passwordVisible.value = false;
|
|
46
|
+
passwordError.value = false;
|
|
47
|
+
});
|
|
48
|
+
function focusPassword() {
|
|
49
|
+
if (lockDialog.value) {
|
|
50
|
+
passwordField.value?.focus();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function unlock() {
|
|
54
|
+
if (passwordInput.value === props.password) {
|
|
55
|
+
unlocked.value = true;
|
|
56
|
+
passwordError.value = false;
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
passwordError.value = true;
|
|
60
|
+
shake.value = false;
|
|
61
|
+
requestAnimationFrame(() => {
|
|
62
|
+
shake.value = true;
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function save() {
|
|
66
|
+
changeBaseUrl(url.value);
|
|
67
|
+
exit();
|
|
68
|
+
}
|
|
69
|
+
function exit() {
|
|
70
|
+
dialog.value = false;
|
|
71
|
+
}
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<template>
|
|
75
|
+
<div>
|
|
76
|
+
<slot
|
|
77
|
+
name="activator"
|
|
78
|
+
v-bind="activatorAttrs"
|
|
79
|
+
/>
|
|
80
|
+
<v-dialog
|
|
81
|
+
v-model="dialog"
|
|
82
|
+
width="500"
|
|
83
|
+
@after-enter="focusPassword"
|
|
84
|
+
>
|
|
85
|
+
<v-card>
|
|
86
|
+
<v-container>
|
|
87
|
+
<v-row>
|
|
88
|
+
<v-col cols="12">
|
|
89
|
+
<h3 class="mb-2">
|
|
90
|
+
{{ $t('weEndpointSwitcher.title') }}
|
|
91
|
+
</h3>
|
|
92
|
+
</v-col>
|
|
93
|
+
<v-col cols="12">
|
|
94
|
+
<v-alert
|
|
95
|
+
icon="$warning"
|
|
96
|
+
text
|
|
97
|
+
type="error"
|
|
98
|
+
variant="tonal"
|
|
99
|
+
>
|
|
100
|
+
<p class="mb-0">
|
|
101
|
+
<i18n-t keypath="weEndpointSwitcher.warning">
|
|
102
|
+
<template #strong1>
|
|
103
|
+
<strong>{{ $t('weEndpointSwitcher.test') }}</strong>
|
|
104
|
+
</template>
|
|
105
|
+
<template #strong2>
|
|
106
|
+
<strong>{{ $t('weEndpointSwitcher.malfunctions') }}</strong>
|
|
107
|
+
</template>
|
|
108
|
+
</i18n-t>
|
|
109
|
+
</p>
|
|
110
|
+
</v-alert>
|
|
111
|
+
</v-col>
|
|
112
|
+
<v-col cols="12">
|
|
113
|
+
<v-card
|
|
114
|
+
v-for="(d, i) in endpoints"
|
|
115
|
+
:key="i"
|
|
116
|
+
:elevation="1"
|
|
117
|
+
class="pa-3 d-flex align-cente mb-3"
|
|
118
|
+
@click="url = d"
|
|
119
|
+
>
|
|
120
|
+
<div>{{ d }}</div>
|
|
121
|
+
<v-icon
|
|
122
|
+
v-if="url === d"
|
|
123
|
+
color="primary"
|
|
124
|
+
class="ml-auto"
|
|
125
|
+
>
|
|
126
|
+
$complete
|
|
127
|
+
</v-icon>
|
|
128
|
+
</v-card>
|
|
129
|
+
|
|
130
|
+
<v-card
|
|
131
|
+
:elevation="1"
|
|
132
|
+
class="pa-3 d-flex align-center mb-3"
|
|
133
|
+
hide-details
|
|
134
|
+
>
|
|
135
|
+
<v-text-field
|
|
136
|
+
id="endpoint-url-text-field"
|
|
137
|
+
v-model="url"
|
|
138
|
+
hide-details
|
|
139
|
+
:label="$t('weEndpointSwitcher.url.label')"
|
|
140
|
+
/>
|
|
141
|
+
</v-card>
|
|
142
|
+
<v-card
|
|
143
|
+
:elevation="1"
|
|
144
|
+
class="px-3 mb-3"
|
|
145
|
+
hide-details
|
|
146
|
+
@click="changeXDebug(!xDebug)"
|
|
147
|
+
>
|
|
148
|
+
<v-list-item
|
|
149
|
+
density="comfortable"
|
|
150
|
+
class="px-2"
|
|
151
|
+
>
|
|
152
|
+
<v-list-item-title>
|
|
153
|
+
{{ $t('weEndpointSwitcher.debug.label') }}
|
|
154
|
+
</v-list-item-title>
|
|
155
|
+
<template #append>
|
|
156
|
+
<v-switch
|
|
157
|
+
:model-value="!!xDebug"
|
|
158
|
+
density="comfortable"
|
|
159
|
+
color="primary"
|
|
160
|
+
hide-details
|
|
161
|
+
@click.stop="changeXDebug(!xDebug)"
|
|
162
|
+
/>
|
|
163
|
+
</template>
|
|
164
|
+
</v-list-item>
|
|
165
|
+
</v-card>
|
|
166
|
+
|
|
167
|
+
<v-btn
|
|
168
|
+
block
|
|
169
|
+
color="primary"
|
|
170
|
+
size="large"
|
|
171
|
+
class="mt-2"
|
|
172
|
+
@click="save"
|
|
173
|
+
>
|
|
174
|
+
{{ $t('save') }}
|
|
175
|
+
</v-btn>
|
|
176
|
+
|
|
177
|
+
<v-btn
|
|
178
|
+
block
|
|
179
|
+
variant="text"
|
|
180
|
+
size="small"
|
|
181
|
+
class="mt-3 text-black"
|
|
182
|
+
color="grey"
|
|
183
|
+
@click="exit"
|
|
184
|
+
>
|
|
185
|
+
{{ $t('close') }}
|
|
186
|
+
</v-btn>
|
|
187
|
+
</v-col>
|
|
188
|
+
</v-row>
|
|
189
|
+
</v-container>
|
|
190
|
+
|
|
191
|
+
<v-overlay
|
|
192
|
+
v-model="lockDialog"
|
|
193
|
+
contained
|
|
194
|
+
persistent
|
|
195
|
+
class="we-endpoint-switcher-lock align-center justify-center"
|
|
196
|
+
>
|
|
197
|
+
<v-card
|
|
198
|
+
width="340"
|
|
199
|
+
max-width="calc(100vw - 32px)"
|
|
200
|
+
:class="{ 'we-endpoint-switcher--shake': shake }"
|
|
201
|
+
@animationend="shake = false"
|
|
202
|
+
>
|
|
203
|
+
<v-card-item class="text-center pt-5 pb-0">
|
|
204
|
+
<v-icon size="40" color="primary" icon="mdi-lock-outline" />
|
|
205
|
+
</v-card-item>
|
|
206
|
+
|
|
207
|
+
<v-card-text class="pb-0">
|
|
208
|
+
<p class="text-center mb-4">
|
|
209
|
+
{{ $t('weEndpointSwitcher.locked.description') }}
|
|
210
|
+
</p>
|
|
211
|
+
<v-text-field
|
|
212
|
+
ref="passwordField"
|
|
213
|
+
v-model="passwordInput"
|
|
214
|
+
:type="passwordVisible ? 'text' : 'password'"
|
|
215
|
+
:append-inner-icon="passwordVisible ? 'mdi-eye-off' : 'mdi-eye'"
|
|
216
|
+
:error-messages="passwordError ? $t('weEndpointSwitcher.locked.error') : []"
|
|
217
|
+
density="compact"
|
|
218
|
+
autofocus
|
|
219
|
+
autocomplete="off"
|
|
220
|
+
@click:append-inner="passwordVisible = !passwordVisible"
|
|
221
|
+
@update:model-value="passwordError = false"
|
|
222
|
+
@keydown.enter="unlock"
|
|
223
|
+
/>
|
|
224
|
+
</v-card-text>
|
|
225
|
+
|
|
226
|
+
<v-card-actions class="px-4 pb-4">
|
|
227
|
+
<v-btn
|
|
228
|
+
variant="text"
|
|
229
|
+
class="flex-1-1-0"
|
|
230
|
+
@click="exit"
|
|
231
|
+
>
|
|
232
|
+
{{ $t('close') }}
|
|
233
|
+
</v-btn>
|
|
234
|
+
<v-btn
|
|
235
|
+
class="flex-1-1-0"
|
|
236
|
+
color="primary"
|
|
237
|
+
:disabled="!passwordInput"
|
|
238
|
+
@click="unlock"
|
|
239
|
+
>
|
|
240
|
+
{{ $t('weEndpointSwitcher.locked.unlock') }}
|
|
241
|
+
</v-btn>
|
|
242
|
+
</v-card-actions>
|
|
243
|
+
</v-card>
|
|
244
|
+
</v-overlay>
|
|
245
|
+
</v-card>
|
|
246
|
+
</v-dialog>
|
|
247
|
+
</div>
|
|
248
|
+
</template>
|
|
249
|
+
|
|
250
|
+
<style scoped>
|
|
251
|
+
.we-endpoint-switcher--shake{animation:we-endpoint-switcher-shake .4s ease-in-out}@keyframes we-endpoint-switcher-shake{0%,to{transform:translateX(0)}20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}
|
|
252
|
+
</style>
|
|
253
|
+
|
|
254
|
+
<style>
|
|
255
|
+
.we-endpoint-switcher-lock>.v-overlay__scrim{backdrop-filter:blur(6px);background:rgba(var(--v-theme-on-surface),.12);border-radius:inherit;opacity:1}
|
|
256
|
+
</style>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
password: string;
|
|
8
|
+
$props: any;
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
type __VLS_Slots = {
|
|
11
|
+
activator?: ((props: any) => any) | undefined;
|
|
12
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
url: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
acceptedFiles: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
extraParams: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
14
|
+
signedUrl: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Quanto aspettare, in ms, un import che l'API esegue in coda prima di dichiararlo perso.
|
|
20
|
+
* Vale solo per i backend che accodano: gli altri rispondono nella stessa richiesta.
|
|
21
|
+
*/
|
|
22
|
+
pollTimeout: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
}>, {}, {
|
|
27
|
+
loading: boolean;
|
|
28
|
+
progress: null;
|
|
29
|
+
step: number;
|
|
30
|
+
exampleItems: never[];
|
|
31
|
+
previewHeaders: never[];
|
|
32
|
+
previewItems: never[];
|
|
33
|
+
currentRow: null;
|
|
34
|
+
resultItems: never[];
|
|
35
|
+
matches: {};
|
|
36
|
+
file: null;
|
|
37
|
+
defaultValues: {};
|
|
38
|
+
errorPanel: boolean;
|
|
39
|
+
allColumns: never[];
|
|
40
|
+
matchColumns: never[];
|
|
41
|
+
dropzoneFiles: null;
|
|
42
|
+
}, {
|
|
43
|
+
resultHeaders(): {
|
|
44
|
+
title: any;
|
|
45
|
+
value: any;
|
|
46
|
+
}[];
|
|
47
|
+
missingFields(): never[];
|
|
48
|
+
correctImportedColumns(): number;
|
|
49
|
+
errorHeaders(): ({
|
|
50
|
+
title: any;
|
|
51
|
+
value: any;
|
|
52
|
+
} | {
|
|
53
|
+
value: string;
|
|
54
|
+
})[];
|
|
55
|
+
errorItems(): never[];
|
|
56
|
+
resultIcon(): "$booleanOn" | "$booleanOff" | "$alert";
|
|
57
|
+
colorResultIcon(): "error" | "success" | "warning";
|
|
58
|
+
exampleColumn(): never[];
|
|
59
|
+
defaultFieldSlots(): string[];
|
|
60
|
+
checkIfDisabled(): true;
|
|
61
|
+
progressPercent(): number | null;
|
|
62
|
+
}, {
|
|
63
|
+
/**
|
|
64
|
+
* Esegue un'azione dell'import e ne restituisce il risultato.
|
|
65
|
+
*
|
|
66
|
+
* Se l'API risponde accodando il lavoro, ne aspetta la fine interrogandola; se risponde
|
|
67
|
+
* come ha sempre fatto, restituisce direttamente quello che ha ricevuto. Gli step del
|
|
68
|
+
* wizard ricevono lo stesso payload nei due casi.
|
|
69
|
+
*/
|
|
70
|
+
runAction(body: any): Promise<any>;
|
|
71
|
+
/**
|
|
72
|
+
* Traduce in un messaggio per l'utente il fallimento di un lavoro accodato.
|
|
73
|
+
*/
|
|
74
|
+
notifyJobError(error: any): void;
|
|
75
|
+
fetchExampleData(): Promise<void>;
|
|
76
|
+
clearUploadedFile(): void;
|
|
77
|
+
step2(): Promise<void>;
|
|
78
|
+
step3(): void;
|
|
79
|
+
step5(): void;
|
|
80
|
+
backStep5(): void;
|
|
81
|
+
onImport(options: any): Promise<void>;
|
|
82
|
+
onMatch(matches: any): void;
|
|
83
|
+
onDefaultValues(values: any): Promise<void>;
|
|
84
|
+
preparePreview(): Promise<void>;
|
|
85
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "done"[], "done", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
86
|
+
url: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
required: true;
|
|
89
|
+
};
|
|
90
|
+
acceptedFiles: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
extraParams: {
|
|
95
|
+
type: ObjectConstructor;
|
|
96
|
+
default: () => {};
|
|
97
|
+
};
|
|
98
|
+
signedUrl: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: undefined;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Quanto aspettare, in ms, un import che l'API esegue in coda prima di dichiararlo perso.
|
|
104
|
+
* Vale solo per i backend che accodano: gli altri rispondono nella stessa richiesta.
|
|
105
|
+
*/
|
|
106
|
+
pollTimeout: {
|
|
107
|
+
type: NumberConstructor;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
}>> & Readonly<{
|
|
111
|
+
onDone?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
}>, {
|
|
113
|
+
extraParams: Record<string, any>;
|
|
114
|
+
acceptedFiles: string;
|
|
115
|
+
signedUrl: string;
|
|
116
|
+
pollTimeout: number;
|
|
117
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
118
|
+
export default _default;
|