@simitgroup/simpleapp-generator 2.0.2-m-alpha → 2.0.2-n-alpha
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/ReleaseNote.md +2 -4
- package/app-publish.sh +2 -0
- package/dist/buildinschemas/autoincreament.d.ts +3 -0
- package/dist/buildinschemas/autoincreament.d.ts.map +1 -0
- package/dist/buildinschemas/autoincreament.js +39 -0
- package/dist/buildinschemas/autoincreament.js.map +1 -0
- package/dist/buildinschemas/docnoformat.d.ts +3 -0
- package/dist/buildinschemas/docnoformat.d.ts.map +1 -0
- package/dist/buildinschemas/docnoformat.js +58 -0
- package/dist/buildinschemas/docnoformat.js.map +1 -0
- package/dist/buildinschemas/documentevent.d.ts +3 -0
- package/dist/buildinschemas/documentevent.d.ts.map +1 -0
- package/dist/buildinschemas/documentevent.js +48 -0
- package/dist/buildinschemas/documentevent.js.map +1 -0
- package/dist/buildinschemas/webhooklog.d.ts +3 -0
- package/dist/buildinschemas/webhooklog.d.ts.map +1 -0
- package/dist/buildinschemas/webhooklog.js +79 -0
- package/dist/buildinschemas/webhooklog.js.map +1 -0
- package/dist/framework.d.ts.map +1 -1
- package/dist/framework.js +8 -18
- package/dist/framework.js.map +1 -1
- package/dist/generate.d.ts.map +1 -1
- package/dist/generate.js +8 -18
- package/dist/generate.js.map +1 -1
- package/dist/index.js +7 -17
- package/dist/index.js.map +1 -1
- package/dist/libs.d.ts.map +1 -1
- package/dist/processors/bpmnbuilder.d.ts.map +1 -1
- package/dist/processors/bpmnbuilder.js +7 -17
- package/dist/processors/bpmnbuilder.js.map +1 -1
- package/dist/processors/jrxmlbuilder.d.ts.map +1 -1
- package/dist/processors/jrxmlbuilder.js +7 -17
- package/dist/processors/jrxmlbuilder.js.map +1 -1
- package/dist/processors/jsonschemabuilder.d.ts.map +1 -1
- package/dist/processors/jsonschemabuilder.js.map +1 -1
- package/package.json +1 -1
- package/templates/basic/nest/schema.ts.eta +7 -5
- package/templates/nest/src/simple-app/_core/features/auth/keycloak/keycloak.guard.ts.eta +1 -1
- package/templates/nest/src/simple-app/_core/features/document-no-format/document-no-format.service.ts.eta +1 -1
- package/templates/nest/src/simple-app/_core/features/log/schemas/api-event.schema.ts.eta +3 -3
- package/templates/nest/src/simple-app/_core/features/log/schemas/document-event.schema.ts.eta +1 -1
- package/templates/nest/src/simple-app/_core/features/maintenance/schemas/db-update.ts.eta +3 -3
- package/templates/nest/src/simple-app/_core/features/profile/profile.schema.ts.eta +5 -5
- package/templates/nest/src/simple-app/_core/features/user-context/user.context.ts.eta +3 -9
- package/templates/nest/src/simple-app/_core/features/webhook/run-webhook.service.ts.eta +1 -1
- package/templates/nest/src/simple-app/_core/framework/base/simple-app.service.ts.eta +24 -26
- package/templates/nest/src/simple-app/_core/framework/schemas/others.schema.ts.eta +1 -1
- package/templates/nest/src/simple-app/_core/framework/schemas/simple-app.schema.ts.eta +2 -2
- package/templates/nest/src/simple-app/_core/framework/simple-app.interceptor.ts.eta +11 -14
- package/templates/nest/src/simple-app/_core/utils/string-utils.ts.eta +2 -2
- package/templates/nuxt/app.vue.eta +4 -6
- package/templates/nuxt/components/simpleApp/SimpleAppAutocomplete.vue.eta +0 -3
- package/templates/nuxt/components/simpleApp/SimpleAppInput.vue.eta +1 -3
- package/templates/nuxt/composables/date.generate.ts.eta +5 -5
- package/templates/nuxt/plugins/20.simpleapp-userstore.ts.eta +0 -11
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
<EventDocumentViewer></EventDocumentViewer>
|
|
10
10
|
<EventDecision/>
|
|
11
11
|
<EventNotification/>
|
|
12
|
-
<SubscriptionExpirationWarning/>
|
|
13
|
-
<SubscriptionFreeBanner/>
|
|
14
12
|
<NuxtPage/>
|
|
15
13
|
</NuxtLayout>
|
|
16
14
|
</template>
|
|
@@ -31,9 +29,9 @@ watch(()=>useRoute().fullPath,async (newval,oldvalue)=>{
|
|
|
31
29
|
if(getPathPara('xorg','')!=''){
|
|
32
30
|
|
|
33
31
|
if(getCurrentXorg()===''){
|
|
34
|
-
|
|
32
|
+
navigateTo('/picktenant')
|
|
35
33
|
}else if(!getUserProfile()?.currentGroup){
|
|
36
|
-
|
|
34
|
+
goTo('pickgroup')
|
|
37
35
|
}
|
|
38
36
|
setGraphqlServer()
|
|
39
37
|
}
|
|
@@ -56,9 +54,9 @@ onMounted(async()=>{
|
|
|
56
54
|
const currentgroup = useCookie('currentGroup').value
|
|
57
55
|
//if no xorg, no enforce pick group
|
|
58
56
|
if(getCurrentXorg()===''){
|
|
59
|
-
|
|
57
|
+
navigateTo('/picktenant')
|
|
60
58
|
}else if(!currentgroup){
|
|
61
|
-
|
|
59
|
+
goTo('/pickgroup')
|
|
62
60
|
}
|
|
63
61
|
setGraphqlServer()
|
|
64
62
|
}else{
|
|
@@ -160,7 +160,6 @@
|
|
|
160
160
|
getDocument(setting.fieldsetting['x-foreignkey']).viewer,
|
|
161
161
|
)
|
|
162
162
|
"
|
|
163
|
-
:paras="props.paras"
|
|
164
163
|
@after="
|
|
165
164
|
async (eventType: FormCrudEvent, data: any, result: any) =>
|
|
166
165
|
await afterRenderMobileForm(eventType, data)
|
|
@@ -207,7 +206,6 @@ const props = withDefaults(
|
|
|
207
206
|
componentProps?: AutoCompleteProps;
|
|
208
207
|
autocompleteFilter?: any;
|
|
209
208
|
pt?: any;
|
|
210
|
-
paras?: any;
|
|
211
209
|
}>(),
|
|
212
210
|
{
|
|
213
211
|
allowAddNew: true,
|
|
@@ -360,7 +358,6 @@ const openViewer = (readonly: boolean) => {
|
|
|
360
358
|
readonly: readonly,
|
|
361
359
|
viewer: getDocument(docname)?.viewer,
|
|
362
360
|
documentName: docname,
|
|
363
|
-
paras: props.paras,
|
|
364
361
|
|
|
365
362
|
//after create, auto copy value into auto complete
|
|
366
363
|
after: async (eventType: FormCrudEvent, data: any) => {
|
|
@@ -179,7 +179,6 @@
|
|
|
179
179
|
:readonly="isReadonly"
|
|
180
180
|
:placeholder="placeholder"
|
|
181
181
|
:autocomplete-filter="autocompleteFilter"
|
|
182
|
-
:paras="paras"
|
|
183
182
|
@change="onChange"
|
|
184
183
|
>
|
|
185
184
|
<template #header>
|
|
@@ -420,14 +419,13 @@ const props = withDefaults(
|
|
|
420
419
|
setting: any;
|
|
421
420
|
type?: string;
|
|
422
421
|
instancepath?: string;
|
|
423
|
-
options?: string[]
|
|
422
|
+
options?: string[];
|
|
424
423
|
hidelabel?: boolean;
|
|
425
424
|
readonly?: boolean;
|
|
426
425
|
autofocus?: boolean;
|
|
427
426
|
pt?: any;
|
|
428
427
|
placeholder?: string;
|
|
429
428
|
autocompleteFilter?: any;
|
|
430
|
-
paras?: any;
|
|
431
429
|
componentProps?:
|
|
432
430
|
| InputNumberProps
|
|
433
431
|
| InputSwitchProps
|
|
@@ -16,24 +16,24 @@ export const today = () => useDayjs()().format('YYYY-MM-DD')
|
|
|
16
16
|
/**
|
|
17
17
|
* convert date object or ISO8601 date become local datetime string
|
|
18
18
|
* @param date date|string
|
|
19
|
-
* @returns local shortform date-time
|
|
19
|
+
* @returns local shortform date-time
|
|
20
20
|
*/
|
|
21
21
|
export const dateRenderToDateTimeStr = (date:Date|string) =>
|
|
22
|
-
|
|
22
|
+
convertToDate(date).toLocaleString().replace(',', ' ').slice(0,-3)
|
|
23
23
|
/**
|
|
24
24
|
* convert date object or ISO datestring become local date string
|
|
25
25
|
* @param date date|string
|
|
26
|
-
* @returns local short form date
|
|
26
|
+
* @returns local short form date
|
|
27
27
|
*/
|
|
28
28
|
export const dateRenderToDateStr = (date:Date|string) =>
|
|
29
|
-
|
|
29
|
+
convertToDate(date).toLocaleDateString().replace(',', ' ')
|
|
30
30
|
/**
|
|
31
31
|
* convert date object or ISO datestring become time string (without seconds)
|
|
32
32
|
* @param date date|string
|
|
33
33
|
* @returns
|
|
34
34
|
*/
|
|
35
35
|
export const dateRenderToTimeStr = (date:Date|string) =>
|
|
36
|
-
|
|
36
|
+
convertToDate(date).toLocaleTimeString().slice(0,-3)
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
/**
|
|
@@ -327,17 +327,6 @@ export default defineNuxtPlugin(async (nuxtApp) => {
|
|
|
327
327
|
isExecutive() {
|
|
328
328
|
return this.currentGroup == "executive";
|
|
329
329
|
},
|
|
330
|
-
isBillingUser() {
|
|
331
|
-
const roles = this.roles;
|
|
332
|
-
return roles.includes("tenantowner") || roles.includes("billing") || roles.includes("superadmin") || roles.includes("devbilling") || roles.includes("devsupport");
|
|
333
|
-
},
|
|
334
|
-
isInternalUser() {
|
|
335
|
-
const roles = this.roles;
|
|
336
|
-
return roles.includes("superadmin") || roles.includes("devbilling") || roles.includes("devsupport");
|
|
337
|
-
},
|
|
338
|
-
isDevSupport() {
|
|
339
|
-
return this.roles.includes("devsupport");
|
|
340
|
-
},
|
|
341
330
|
},
|
|
342
331
|
});
|
|
343
332
|
|