@simitgroup/simpleapp-generator 1.1.5 → 1.1.6
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/package.json +1 -1
- package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +2 -2
- package/templates/nuxt/assets/css/style.css._eta +3 -0
- package/templates/nuxt/assets/primevue/passthrough.ts._eta +6 -2
- package/templates/nuxt/components/header/button/HeaderButtonMenuPicker.vue.eta +1 -1
- package/templates/nuxt/lang/df.ts.eta +5 -0
- package/templates/nuxt/simpleapp/generate/clients/SimpleAppClient.ts.eta +4 -2
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Author: Ks Tan
|
|
7
7
|
*/
|
|
8
8
|
import _ from 'lodash'
|
|
9
|
-
import {SchemaType} from '
|
|
9
|
+
import {SchemaType} from '~/types'
|
|
10
10
|
import * as sharelibs from '../sharelibs'
|
|
11
11
|
import * as jsonpath from 'jsonpath'
|
|
12
12
|
import { SimpleAppClient } from "./SimpleAppClient";
|
|
@@ -67,7 +67,7 @@ export class <%= it.typename%>Client extends SimpleAppClient<<%= it.typename%>,<
|
|
|
67
67
|
this.listen=$listen
|
|
68
68
|
|
|
69
69
|
this.setNew();
|
|
70
|
-
watch(
|
|
70
|
+
watch(this.getData(),(newvalue)=>{
|
|
71
71
|
//console.log("Something change",this.completeformula)
|
|
72
72
|
if(this.completeformula==true){
|
|
73
73
|
// console.log("Trigger caclculate")
|
|
@@ -24,7 +24,8 @@ const CustomTailwind = usePassThrough(
|
|
|
24
24
|
selectbutton:{
|
|
25
25
|
root:{class:'flex flex-row gap-1'},
|
|
26
26
|
button: ({ context }) => ({
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
class: ['text-center border text-gray-300 dark:border-gray-700 dark:text-gray-300 rounded-lg p-2 cursor-pointer hover:bg-primary-400 dark:hover:bg-primary-800 hover:text-white', context.active ? 'bg-primary-600 dark:bg-primary-700 text-white' : '']
|
|
28
29
|
}),
|
|
29
30
|
label:{class: 'text-sm'},
|
|
30
31
|
},
|
|
@@ -39,13 +40,16 @@ const CustomTailwind = usePassThrough(
|
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
sidebar:{
|
|
42
|
-
root:{class:'w-1/2
|
|
43
|
+
root:{class:'w-1/2 bg-white dark:bg-gray-800 border p-2 h-full'}
|
|
43
44
|
},
|
|
44
45
|
panel: {
|
|
45
46
|
root:{class:['border']},
|
|
46
47
|
title: {class: ['leading-none font-light text-2xl']},
|
|
47
48
|
header:{class:['bg bg-gray-200 h-10 content-middle']},
|
|
48
49
|
content:{class:['']}
|
|
50
|
+
},
|
|
51
|
+
breadcrumb:{
|
|
52
|
+
root:{class:''}
|
|
49
53
|
}
|
|
50
54
|
},
|
|
51
55
|
);
|
|
@@ -21,7 +21,7 @@ const selectMenu = (menu:MenuData) =>{
|
|
|
21
21
|
</svg>
|
|
22
22
|
</button>
|
|
23
23
|
|
|
24
|
-
<Dialog v-model:visible="visible" modal header="
|
|
24
|
+
<Dialog v-model:visible="visible" modal :header="t('pickDocument')" :pt="{dialog:{ class:' bg-primary-800 ' }}">
|
|
25
25
|
<div class="">
|
|
26
26
|
<Button v-for="menu in getMenus()" @click="selectMenu(menu)" >
|
|
27
27
|
<div v-if="menu.isolationType == 'none'" class="text-warning-600 hover:text-warning-500">
|
|
@@ -12,6 +12,11 @@ export default {
|
|
|
12
12
|
keyword: 'Keyword',
|
|
13
13
|
empty: 'Empty',
|
|
14
14
|
noDataFound:'No Data Found',
|
|
15
|
+
userInfo:'User Information',
|
|
16
|
+
currentBranchAccessRights: 'Current Branch Access Rights',
|
|
17
|
+
yourCompanyName: 'Your Company Name',
|
|
18
|
+
onlyAppearInDebugMode: 'Only Appear In Debug Mode',
|
|
19
|
+
pickDocument:'Pick Document',
|
|
15
20
|
|
|
16
21
|
//auto generate from schema
|
|
17
22
|
<% for(let i=0; i< it.allfields.length; i++){ %>
|
|
@@ -24,7 +24,7 @@ type crudType = {
|
|
|
24
24
|
runSearch: Function
|
|
25
25
|
};
|
|
26
26
|
export class SimpleAppClient<
|
|
27
|
-
TData extends { _id?: string,created
|
|
27
|
+
TData extends { _id?: string,created?:string },
|
|
28
28
|
TApi extends crudType,
|
|
29
29
|
> {
|
|
30
30
|
protected defaultTimeOut=5000
|
|
@@ -134,7 +134,9 @@ export class SimpleAppClient<
|
|
|
134
134
|
summary:'Record update success',
|
|
135
135
|
status:NotificationStatus.success,
|
|
136
136
|
data:errors
|
|
137
|
-
})
|
|
137
|
+
})
|
|
138
|
+
this.data.value = res.data
|
|
139
|
+
console.log("save ok ", this.data.value)
|
|
138
140
|
return res.data;
|
|
139
141
|
}).catch((errors:any)=>{
|
|
140
142
|
$event('Notification',{
|