@simitgroup/simpleapp-generator 1.6.6-j-alpha → 1.6.6-k.1-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 +3 -2
- package/dist/buildinschemas/docnoformat.js +6 -6
- package/dist/buildinschemas/docnoformat.js.map +1 -1
- package/dist/buildinschemas/documentevent.js +1 -1
- package/dist/buildinschemas/documentevent.js.map +1 -1
- package/dist/buildinschemas/organization.js +1 -1
- package/dist/buildinschemas/organization.js.map +1 -1
- package/dist/buildinschemas/tenant.js +1 -1
- package/dist/buildinschemas/tenant.js.map +1 -1
- package/dist/buildinschemas/user.js +2 -2
- package/dist/buildinschemas/user.js.map +1 -1
- package/dist/framework.d.ts.map +1 -1
- package/dist/framework.js +2 -0
- package/dist/framework.js.map +1 -1
- package/dist/generate.d.ts.map +1 -1
- package/dist/generate.js +21 -20
- package/dist/generate.js.map +1 -1
- package/dist/processors/jrxmlbuilder.js +3 -3
- package/dist/processors/jrxmlbuilder.js.map +1 -1
- package/dist/processors/jsonschemabuilder.d.ts.map +1 -1
- package/dist/processors/jsonschemabuilder.js +17 -10
- package/dist/processors/jsonschemabuilder.js.map +1 -1
- package/dist/type.d.ts +1 -1
- package/dist/type.d.ts.map +1 -1
- package/package.json +1 -2
- package/reset-install.sh +3 -0
- package/src/buildinschemas/docnoformat.ts +6 -6
- package/src/buildinschemas/documentevent.ts +1 -1
- package/src/buildinschemas/organization.ts +1 -1
- package/src/buildinschemas/tenant.ts +1 -1
- package/src/buildinschemas/user.ts +2 -2
- package/src/framework.ts +2 -1
- package/src/generate.ts +22 -20
- package/src/processors/jrxmlbuilder.ts +3 -3
- package/src/processors/jsonschemabuilder.ts +27 -14
- package/src/type.ts +1 -1
- package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +3 -3
- package/templates/nest/.gitignore.eta +4 -5
- package/templates/nest/src/{app.module.ts.eta → app.module.ts._eta} +2 -2
- package/templates/nest/src/{main.ts.eta → main.ts._eta} +2 -2
- package/templates/nest/src/printapi/printapi.service.ts.eta +7 -8
- package/templates/nest/src/simpleapp/.gitignore.eta +1 -1
- package/templates/nest/src/simpleapp/additional.module.ts._eta +13 -0
- package/templates/nest/src/simpleapp/generate/commons/audittrail.service.ts.eta +2 -2
- package/templates/nest/src/simpleapp/generate/commons/customkeycloa.guard.ts.eta +14 -12
- package/templates/nest/src/simpleapp/generate/commons/customkeycloak.guard.ts.eta +36 -42
- package/templates/nest/src/simpleapp/generate/commons/docnogenerator.service.ts.eta +6 -3
- package/templates/nest/src/simpleapp/generate/commons/encryption.static.ts.eta +56 -61
- package/templates/nest/src/simpleapp/generate/commons/middlewares/tenant.middleware.ts.eta +65 -88
- package/templates/nest/src/simpleapp/generate/commons/robotuser.service.ts.eta +10 -9
- package/templates/nest/src/simpleapp/generate/commons/roles/roles.guard.ts.eta +10 -3
- package/templates/nest/src/simpleapp/generate/commons/runwebhook.service.ts.eta +41 -39
- package/templates/nest/src/simpleapp/generate/commons/user.context.ts.eta +439 -293
- package/templates/nest/src/simpleapp/generate/processors/autoinc.processor.ts.eta +20 -5
- package/templates/nest/src/simpleapp/generate/processors/simpleapp.processor.ts.eta +437 -40
- package/templates/nest/src/simpleapp/profile/{profile.controller.ts.eta → profile.controller.ts._eta} +2 -2
- package/templates/nest/src/simpleapp/profile/{profile.service.ts.eta → profile.service.ts._eta} +2 -2
- package/templates/nest/src/simpleapp/simpleapp.module.ts.eta +19 -15
- package/templates/nuxt/components/button/ButtonMultiple.vue._eta +1 -1
- package/templates/nuxt/components/calendar/{CalendarByResource.vue.eta → CalendarByResource.vue._eta} +2 -2
- package/templates/nuxt/components/calendar/{CalendarInput.vue.eta → CalendarInput.vue._eta} +2 -2
- package/templates/nuxt/components/calendar/{CalendarSmall.vue.eta → CalendarSmall.vue._eta} +6 -0
- package/templates/nuxt/components/debug/{DebugDocumentData.vue.eta → DebugDocumentData.vue._eta} +2 -2
- package/templates/nuxt/components/form/{FormDocnoformat.vue.eta → FormDocnoformat.vue._eta} +2 -1
- package/templates/nuxt/components/form/user/{FormUserPermission.vue.eta → FormUserPermission.vue._eta} +6 -0
- package/templates/nuxt/components/header/{HeaderBreadcrumb.vue.eta → HeaderBreadcrumb.vue._eta} +2 -2
- package/templates/nuxt/components/header/button/{HeaderButtonProfile.vue.eta → HeaderButtonProfile.vue._eta} +2 -2
- package/templates/nuxt/components/header/button/task/{HeaderButtonTaskList.vue.eta → HeaderButtonTaskList.vue._eta} +2 -2
- package/templates/nuxt/components/image/ImageAvatar.vue.eta +29 -30
- package/templates/nuxt/components/image/ImageOrganization.vue.eta +15 -9
- package/templates/nuxt/components/image/ImageToBase64Uploader.vue.eta +28 -18
- package/templates/nuxt/components/list/{ListDocumentTable.vue.eta → ListDocumentTable.vue._eta} +2 -2
- package/templates/nuxt/components/list/{ListItem.vue.eta → ListItem.vue._eta} +2 -2
- package/templates/nuxt/components/list/{ListMessages.vue.eta → ListMessages.vue._eta} +6 -0
- package/templates/nuxt/components/list/{ListView.vue.eta → ListView.vue._eta} +2 -2
- package/templates/nuxt/components/overlay/{OverlayPanelWithToolBar.vue.eta → OverlayPanelWithToolBar.vue._eta} +2 -2
- package/templates/nuxt/components/overlay/{OverlaySideBarCrud.vue.eta → OverlaySideBarCrud.vue._eta} +2 -2
- package/templates/nuxt/components/overlay/{OverlayViewer.vue.eta → OverlayViewer.vue._eta} +2 -2
- package/templates/nuxt/components/page/{PageDocList.vue.eta → PageDocList.vue._eta} +2 -2
- package/templates/nuxt/components/renderer/{RendererDateTime.vue.eta → RendererDateTime.vue._eta} +2 -2
- package/templates/nuxt/components/renderer/{RendererDocHistories.vue.eta → RendererDocHistories.vue._eta} +6 -0
- package/templates/nuxt/components/renderer/{RendererForeignKey.vue.eta → RendererForeignKey.vue._eta} +2 -2
- package/templates/nuxt/components/renderer/{RendererLink.vue.eta → RendererLink.vue._eta} +2 -2
- package/templates/nuxt/components/renderer/{RendererTime.vue.eta → RendererTime.vue._eta} +2 -2
- package/templates/nuxt/components/renderer/{RendererViewer.vue.eta → RendererViewer.vue._eta} +2 -2
- package/templates/nuxt/components/select/{SelectTemplate.vue.eta → SelectTemplate.vue._eta} +2 -2
- package/templates/nuxt/components/session/{SessionBlock.vue.eta → SessionBlock.vue._eta} +2 -2
- package/templates/nuxt/components/simpleApp/SimpleAppAutocomplete.vue.eta +55 -55
- package/templates/nuxt/components/simpleApp/SimpleAppCalendarInput.vue.eta +13 -11
- package/templates/nuxt/components/simpleApp/SimpleAppChildrenList.vue.eta +6 -3
- package/templates/nuxt/components/simpleApp/SimpleAppDocumentNo.vue.eta +32 -27
- package/templates/nuxt/components/simpleApp/SimpleAppFieldContainer.vue.eta +19 -28
- package/templates/nuxt/components/simpleApp/SimpleAppInput.vue.eta +114 -105
- package/templates/nuxt/components/simpleApp/SimpleAppInputTable.vue.eta +3 -3
- package/templates/nuxt/components/simpleApp/SimpleAppJsonSchemaForm.vue.eta +1 -1
- package/templates/nuxt/components/simpleApp/SimpleAppUserPicker.vue.eta +10 -12
- package/templates/nuxt/components/table/{TableDocuments.vue.eta → TableDocuments.vue._eta} +2 -2
- package/templates/nuxt/components/user/{UserButtonPermissionInfo.vue.eta → UserButtonPermissionInfo.vue._eta} +2 -2
- package/templates/nuxt/components/user/{UserInvitation.vue.eta → UserInvitation.vue._eta} +2 -2
- package/templates/nuxt/components/user/{UserProfileListItem.vue.eta → UserProfileListItem.vue._eta} +2 -2
- package/templates/nuxt/components/user/{UserTenantPicker.vue.eta → UserTenantPicker.vue._eta} +2 -2
- package/templates/nuxt/composables/getOpenApi.generate.ts.eta +11 -3
- package/templates/nuxt/composables/getUserStore.generate.ts.eta +1 -1
- package/templates/nuxt/composables/graphquery.generate.ts.eta +1 -1
- package/templates/nuxt/composables/recently.generate.ts.eta +0 -1
- package/templates/nuxt/composables/stringHelper.generate.ts.eta +5 -2
- package/templates/nuxt/pages/[xorg]/docnoformat/[id].vue.eta +0 -1
- package/templates/nuxt/pages/[xorg]/{docnoformat.vue.eta → docnoformat.vue._eta} +1 -0
- package/templates/nuxt/pages/[xorg]/organization/[id].vue.eta +13 -9
- package/templates/nuxt/pages/[xorg]/organization/new.vue.eta +10 -12
- package/templates/nuxt/pages/[xorg]/{user.vue.eta → user.vue._eta} +2 -2
- package/templates/nuxt/pages/{profile.vue.eta → profile.vue._eta} +2 -2
- package/templates/nuxt/plugins/10.simpleapp-event.ts.eta +6 -0
- package/templates/nuxt/plugins/20.simpleapp-userstore.ts.eta +89 -12
- package/templates/nuxt/plugins/40.pusher.ts.eta +6 -9
- package/templates/nuxt/providers/my-provider.ts.eta +1 -1
- package/templates/nuxt/server/api/profile/[...].ts.eta +4 -3
- package/templates/nuxt/simpleapp/generate/clients/SimpleAppClient.ts.eta +8 -4
- package/templates/nuxt/types/schema.ts.eta +1 -1
- package/templates/nuxt/types/user.ts.eta +6 -1
- package/templates/project/jsonschemas/appintegration.json_eta +227 -0
- package/templates/project/sharelibs/validate.ts.eta +1 -1
- package/dist/buildinschemas/message.d.ts +0 -3
- package/dist/buildinschemas/message.d.ts.map +0 -1
- package/dist/buildinschemas/message.js +0 -34
- package/dist/buildinschemas/message.js.map +0 -1
- package/dist/buildinschemas/webhookhistory.d.ts +0 -3
- package/dist/buildinschemas/webhookhistory.d.ts.map +0 -1
- package/dist/buildinschemas/webhookhistory.js +0 -44
- package/dist/buildinschemas/webhookhistory.js.map +0 -1
- package/dist/createproject.js +0 -138
- package/dist/createproject.js.map +0 -1
- package/dist/generate-allow-changebackend.js +0 -305
- package/dist/generate-allow-changebackend.js.map +0 -1
- package/dist/index2.js +0 -118
- package/dist/index2.js.map +0 -1
- package/dist/installdependency.js +0 -20
- package/dist/installdependency.js.map +0 -1
- package/dist/installnest.js +0 -2
- package/dist/installnest.js.map +0 -1
- package/dist/installnuxt.js +0 -2
- package/dist/installnuxt.js.map +0 -1
- package/dist/processors/groupsbuilder.js +0 -2
- package/dist/processors/groupsbuilder.js.map +0 -1
- package/dist/schematype/baseschema.js +0 -25
- package/dist/schematype/baseschema.js.map +0 -1
- package/dist/schematype/default.js +0 -2
- package/dist/schematype/default.js.map +0 -1
- package/dist/schematype/index.js +0 -12
- package/dist/schematype/index.js.map +0 -1
- package/dist/schematype/primarymasterdata.js +0 -38
- package/dist/schematype/primarymasterdata.js.map +0 -1
- package/dist/schematype/simple.js +0 -24
- package/dist/schematype/simple.js.map +0 -1
- package/dist/schematype/simplemasterdata.js +0 -31
- package/dist/schematype/simplemasterdata.js.map +0 -1
- package/dist/schematype/transaction.js +0 -74
- package/dist/schematype/transaction.js.map +0 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<SimpleAppFieldContainer
|
|
3
|
-
|
|
3
|
+
v-slot="slotprops"
|
|
4
4
|
v-model="modelValue"
|
|
5
|
+
:hidelabel="hidelabel"
|
|
5
6
|
:label="label"
|
|
6
7
|
:description="description"
|
|
7
8
|
:pt="pt"
|
|
8
|
-
:
|
|
9
|
+
:input-type="inputType"
|
|
9
10
|
:setting="setting"
|
|
10
11
|
:instancepath="instancepath"
|
|
11
12
|
:error="error"
|
|
12
|
-
#default="slotprops"
|
|
13
13
|
:resetcount="resetcount"
|
|
14
14
|
>
|
|
15
15
|
<Checkbox
|
|
16
16
|
v-if="inputType == SimpleAppInputType.checkbox"
|
|
17
|
+
v-model="modelValue"
|
|
17
18
|
:readonly="isReadonly"
|
|
18
19
|
:pt="pt"
|
|
19
|
-
:
|
|
20
|
+
:input-id="slotprops.uuid"
|
|
20
21
|
:path="setting.instancepath"
|
|
21
|
-
v-model="modelValue"
|
|
22
22
|
:binary="true"
|
|
23
|
-
v-bind="componentProps
|
|
23
|
+
v-bind="componentProps"
|
|
24
24
|
@change="onChange"
|
|
25
25
|
/>
|
|
26
26
|
<InputSwitch
|
|
27
27
|
v-else-if="inputType == SimpleAppInputType.switch"
|
|
28
|
+
v-model="modelValue"
|
|
28
29
|
:readonly="isReadonly"
|
|
29
30
|
:pt="pt"
|
|
30
|
-
:
|
|
31
|
+
:input-id="slotprops.uuid"
|
|
31
32
|
:path="setting.instancepath"
|
|
32
|
-
v-model="modelValue as boolean"
|
|
33
33
|
:binary="true"
|
|
34
|
-
v-bind="componentProps
|
|
34
|
+
v-bind="componentProps"
|
|
35
35
|
@change="onChange"
|
|
36
36
|
/>
|
|
37
37
|
|
|
@@ -41,102 +41,102 @@
|
|
|
41
41
|
SimpleAppInputType.calendar == inputType ||
|
|
42
42
|
inputType == SimpleAppInputType.date
|
|
43
43
|
"
|
|
44
|
+
v-model="modelValue"
|
|
44
45
|
:pt="pt"
|
|
45
46
|
type="date"
|
|
46
|
-
v-model="modelValue"
|
|
47
47
|
:uuid="slotprops.uuid"
|
|
48
48
|
:placeholder="placeholder"
|
|
49
49
|
:setting="setting"
|
|
50
50
|
:readonly="isReadonly"
|
|
51
|
-
:
|
|
51
|
+
:component-props="componentProps"
|
|
52
52
|
@change="onChange"
|
|
53
53
|
/>
|
|
54
54
|
|
|
55
55
|
<!-- time component -->
|
|
56
|
-
<
|
|
56
|
+
<SimpleAppCalendarTime
|
|
57
57
|
v-else-if="inputType == SimpleAppInputType.time"
|
|
58
|
+
v-model="modelValue"
|
|
58
59
|
:pt="pt"
|
|
59
60
|
type="time"
|
|
60
|
-
v-model="modelValue"
|
|
61
61
|
:uuid="slotprops.uuid"
|
|
62
62
|
:placeholder="placeholder"
|
|
63
63
|
:setting="setting"
|
|
64
64
|
:readonly="isReadonly"
|
|
65
|
-
:
|
|
65
|
+
:component-props="componentProps"
|
|
66
66
|
@change="onChange"
|
|
67
67
|
/>
|
|
68
68
|
|
|
69
69
|
<SimpleAppCalendarInput
|
|
70
70
|
v-else-if="inputType == SimpleAppInputType.datetime"
|
|
71
|
+
v-model="modelValue"
|
|
71
72
|
:pt="pt"
|
|
72
73
|
type="datetime"
|
|
73
|
-
v-model="modelValue"
|
|
74
74
|
:uuid="slotprops.uuid"
|
|
75
75
|
:placeholder="placeholder"
|
|
76
76
|
:setting="setting"
|
|
77
77
|
:readonly="isReadonly"
|
|
78
|
-
:
|
|
78
|
+
:component-props="componentProps"
|
|
79
79
|
@change="onChange"
|
|
80
80
|
/>
|
|
81
81
|
|
|
82
82
|
<!-- select/list component -->
|
|
83
83
|
<Listbox
|
|
84
|
+
v-else-if="SimpleAppInputType.list == inputType"
|
|
84
85
|
v-model="modelValue"
|
|
85
86
|
:pt="pt"
|
|
86
|
-
|
|
87
|
-
:inputId="slotprops.uuid"
|
|
87
|
+
:input-id="slotprops.uuid"
|
|
88
88
|
:path="setting.instancepath"
|
|
89
89
|
:readonly="isReadonly"
|
|
90
90
|
class="w w-full lg:w-full"
|
|
91
91
|
:disabled="isReadonly"
|
|
92
92
|
:options="getListOptions()"
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
option-label="label"
|
|
94
|
+
option-value="value"
|
|
95
95
|
:placeholder="placeholder"
|
|
96
|
-
v-bind="componentProps
|
|
96
|
+
v-bind="componentProps"
|
|
97
97
|
@change="onChange"
|
|
98
98
|
/>
|
|
99
99
|
|
|
100
|
-
<
|
|
100
|
+
<Select
|
|
101
|
+
v-else-if="SimpleAppInputType.select == inputType"
|
|
101
102
|
v-model="modelValue"
|
|
102
103
|
:pt="pt"
|
|
103
|
-
|
|
104
|
-
:inputId="slotprops.uuid"
|
|
104
|
+
:input-id="slotprops.uuid"
|
|
105
105
|
:path="setting.instancepath"
|
|
106
106
|
:readonly="isReadonly"
|
|
107
107
|
class="w w-full lg:w-full"
|
|
108
108
|
:disabled="isReadonly"
|
|
109
109
|
:options="getListOptions()"
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
option-label="label"
|
|
111
|
+
option-value="value"
|
|
112
112
|
:placeholder="placeholder"
|
|
113
113
|
v-bind="componentProps"
|
|
114
114
|
@change="onChange"
|
|
115
115
|
/>
|
|
116
116
|
|
|
117
117
|
<MultiSelect
|
|
118
|
+
v-else-if="SimpleAppInputType.selectmultiple == inputType"
|
|
118
119
|
v-model="modelValue"
|
|
119
120
|
:pt="pt"
|
|
120
|
-
|
|
121
|
-
:inputId="slotprops.uuid"
|
|
121
|
+
:input-id="slotprops.uuid"
|
|
122
122
|
:path="setting.instancepath"
|
|
123
123
|
:readonly="isReadonly"
|
|
124
124
|
class="w w-full lg:w-full"
|
|
125
125
|
:disabled="isReadonly"
|
|
126
126
|
:options="getListOptions()"
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
option-label="label"
|
|
128
|
+
option-value="value"
|
|
129
129
|
:placeholder="placeholder"
|
|
130
130
|
v-bind="componentProps"
|
|
131
131
|
@change="onChange"
|
|
132
132
|
/>
|
|
133
133
|
<!-- radio component -->
|
|
134
134
|
<div v-else-if="inputType == SimpleAppInputType.radio">
|
|
135
|
-
<div v-for="(item, index) in getListOptions()">
|
|
135
|
+
<div v-for="(item, index) in getListOptions()" :key="index">
|
|
136
136
|
<RadioButton
|
|
137
|
-
:pt="pt"
|
|
138
137
|
v-model="modelValue"
|
|
139
|
-
:
|
|
138
|
+
:pt="pt"
|
|
139
|
+
:input-id="setting.key + '-' + index"
|
|
140
140
|
name="smaple"
|
|
141
141
|
:value="item.value"
|
|
142
142
|
:readonly="isReadonly"
|
|
@@ -149,66 +149,66 @@
|
|
|
149
149
|
|
|
150
150
|
<SimpleAppUserPicker
|
|
151
151
|
v-else-if="inputType == SimpleAppInputType.user"
|
|
152
|
-
v-model="modelValue
|
|
152
|
+
v-model="modelValue"
|
|
153
153
|
:hidelabel="hidelabel"
|
|
154
154
|
:pt="pt"
|
|
155
155
|
:setting="setting"
|
|
156
156
|
:disabled="isReadonly"
|
|
157
|
-
:
|
|
157
|
+
:input-id="slotprops.uuid"
|
|
158
158
|
:path="setting.instancepath"
|
|
159
159
|
:readonly="isReadonly"
|
|
160
160
|
:placeholder="placeholder"
|
|
161
|
-
:
|
|
161
|
+
:autocomplete-filter="autocompleteFilter"
|
|
162
162
|
@change="onChange"
|
|
163
163
|
>
|
|
164
164
|
<template #header>
|
|
165
|
-
<slot name="header"
|
|
165
|
+
<slot name="header"/>
|
|
166
166
|
</template>
|
|
167
167
|
<template #content>
|
|
168
|
-
<slot name="content"
|
|
168
|
+
<slot name="content"/>
|
|
169
169
|
</template>
|
|
170
170
|
<template #option="{ index, option }">
|
|
171
|
-
<slot name="option" :index="index" :option="option"
|
|
171
|
+
<slot name="option" :index="index" :option="option"/>
|
|
172
172
|
</template>
|
|
173
173
|
</SimpleAppUserPicker>
|
|
174
174
|
|
|
175
175
|
<!-- autocomplete, need do more enterprise grade component-->
|
|
176
176
|
<SimpleAppAutocomplete
|
|
177
177
|
v-else-if="inputType == SimpleAppInputType.autocomplete"
|
|
178
|
-
v-model="modelValue
|
|
178
|
+
v-model="modelValue"
|
|
179
179
|
:hidelabel="hidelabel"
|
|
180
180
|
:pt="pt"
|
|
181
181
|
:setting="setting"
|
|
182
182
|
:disabled="isReadonly"
|
|
183
|
-
:
|
|
183
|
+
:input-id="slotprops.uuid"
|
|
184
184
|
:path="setting.instancepath"
|
|
185
185
|
:readonly="isReadonly"
|
|
186
186
|
:placeholder="placeholder"
|
|
187
|
-
:
|
|
187
|
+
:autocomplete-filter="autocompleteFilter"
|
|
188
188
|
@change="onChange"
|
|
189
189
|
>
|
|
190
190
|
<template #header>
|
|
191
|
-
<slot name="header"
|
|
191
|
+
<slot name="header"/>
|
|
192
192
|
</template>
|
|
193
193
|
<template #content>
|
|
194
|
-
<slot name="content"
|
|
194
|
+
<slot name="content"/>
|
|
195
195
|
</template>
|
|
196
196
|
<template #option="{ index, option }">
|
|
197
|
-
<slot name="option" :index="index" :option="option"
|
|
197
|
+
<slot name="option" :index="index" :option="option"/>
|
|
198
198
|
</template>
|
|
199
199
|
</SimpleAppAutocomplete>
|
|
200
200
|
<!-- v-bind:attributes="componentProps" -->
|
|
201
201
|
<!-- document no input-->
|
|
202
202
|
<SimpleAppDocumentNo
|
|
203
203
|
v-else-if="inputType == SimpleAppInputType.documentno"
|
|
204
|
+
v-model="modelValue"
|
|
204
205
|
:setting="setting"
|
|
205
|
-
|
|
206
|
-
:inputId="slotprops.uuid"
|
|
206
|
+
:input-id="slotprops.uuid"
|
|
207
207
|
:readonly="isReadonly"
|
|
208
|
-
@update:docNoFormat="triggerDocNoFormatChange"
|
|
209
208
|
:pt="pt"
|
|
210
209
|
:path="setting.instancepath"
|
|
211
210
|
v-bind="componentProps as any"
|
|
211
|
+
@update:doc-no-format="triggerDocNoFormatChange"
|
|
212
212
|
@change="onChange"
|
|
213
213
|
/>
|
|
214
214
|
<!-- use componentProps as any at the moment, no ideal yet, and for compatibility -->
|
|
@@ -216,67 +216,68 @@
|
|
|
216
216
|
<!-- password -->
|
|
217
217
|
<Password
|
|
218
218
|
v-else-if="inputType == SimpleAppInputType.password"
|
|
219
|
+
v-model="modelValue"
|
|
219
220
|
:type="type"
|
|
220
|
-
v-model="modelValue as string"
|
|
221
221
|
:pt="pt"
|
|
222
|
-
@focus="setFocus"
|
|
223
222
|
:readonly="isReadonly"
|
|
224
223
|
class="flex flex-col"
|
|
225
|
-
:
|
|
224
|
+
:input-id="slotprops.uuid"
|
|
226
225
|
:path="setting.instancepath"
|
|
227
|
-
@change="onChange"
|
|
228
226
|
:placeholder="placeholder"
|
|
229
|
-
v-bind="componentProps
|
|
227
|
+
v-bind="componentProps"
|
|
228
|
+
:toggleMask="true"
|
|
229
|
+
:feedback="false"
|
|
230
|
+
@focus="setFocus"
|
|
231
|
+
@change="onChange"
|
|
230
232
|
/>
|
|
231
233
|
|
|
232
234
|
<!-- rating -->
|
|
233
235
|
<Rating
|
|
234
236
|
v-else-if="inputType == SimpleAppInputType.rating"
|
|
237
|
+
v-model="modelValue"
|
|
235
238
|
:type="type"
|
|
236
|
-
v-model="modelValue as number"
|
|
237
239
|
:pt="pt"
|
|
238
240
|
:readonly="isReadonly"
|
|
239
|
-
:
|
|
241
|
+
:input-id="slotprops.uuid"
|
|
240
242
|
:path="setting.instancepath"
|
|
243
|
+
v-bind="componentProps"
|
|
241
244
|
@change="onChange"
|
|
242
|
-
v-bind="componentProps as RatingProps"
|
|
243
245
|
/>
|
|
244
246
|
|
|
245
247
|
<!-- chip -->
|
|
246
248
|
<Chips
|
|
247
249
|
v-else-if="inputType == SimpleAppInputType.chip"
|
|
250
|
+
v-model="modelValue"
|
|
248
251
|
:type="type"
|
|
249
|
-
v-model="modelValue as string[]"
|
|
250
252
|
:pt="pt"
|
|
251
253
|
:disabled="isReadonly"
|
|
252
|
-
:
|
|
254
|
+
:input-id="slotprops.uuid"
|
|
253
255
|
:path="setting.instancepath"
|
|
254
256
|
:placeholder="placeholder"
|
|
255
|
-
|
|
256
|
-
|
|
257
|
+
v-bind="componentProps"
|
|
258
|
+
@update:model-value="onChange"
|
|
257
259
|
/>
|
|
258
260
|
<!-- simple component -->
|
|
259
261
|
|
|
260
262
|
<InputNumber
|
|
261
263
|
v-else-if="inputType == SimpleAppInputType.number"
|
|
262
|
-
:type="type"
|
|
263
264
|
v-model="modelValue"
|
|
264
|
-
|
|
265
|
+
:type="type"
|
|
265
266
|
:readonly="isReadonly"
|
|
266
267
|
:pt="pt"
|
|
267
268
|
:class="!pt ? 'w-full flex flex-col' : ''"
|
|
268
|
-
:
|
|
269
|
-
@update:modelValue="onChange"
|
|
269
|
+
:input-id="slotprops.uuid"
|
|
270
270
|
:path="setting.instancepath"
|
|
271
|
-
v-bind="componentProps
|
|
271
|
+
v-bind="componentProps"
|
|
272
272
|
:placeholder="placeholder"
|
|
273
|
+
@focus="setFocus"
|
|
274
|
+
@update:model-value="onChange"
|
|
273
275
|
/>
|
|
274
276
|
<!-- // // -->
|
|
275
277
|
<InputNumber
|
|
276
278
|
v-else-if="inputType == SimpleAppInputType.money"
|
|
279
|
+
v-model="modelValue"
|
|
277
280
|
:type="type"
|
|
278
|
-
v-model="modelValue as number"
|
|
279
|
-
@focus="setFocus"
|
|
280
281
|
:max-fraction-digits="2"
|
|
281
282
|
:min-fraction-digits="2"
|
|
282
283
|
mode="currency"
|
|
@@ -284,54 +285,55 @@
|
|
|
284
285
|
:readonly="isReadonly"
|
|
285
286
|
:pt="pt"
|
|
286
287
|
:class="!pt ? 'w-full flex flex-col' : ''"
|
|
287
|
-
:
|
|
288
|
+
:input-id="slotprops.uuid"
|
|
288
289
|
:path="setting.instancepath"
|
|
289
|
-
|
|
290
|
-
v-bind="componentProps as InputNumber"
|
|
290
|
+
v-bind="componentProps"
|
|
291
291
|
:placeholder="placeholder"
|
|
292
|
+
@focus="setFocus"
|
|
293
|
+
@update:model-value="onChange"
|
|
292
294
|
/>
|
|
293
295
|
<Textarea
|
|
294
296
|
v-else-if="inputType == SimpleAppInputType.textarea"
|
|
295
|
-
v-model="modelValue
|
|
297
|
+
v-model="modelValue"
|
|
296
298
|
:autofocus="autofocus"
|
|
297
299
|
:readonly="isReadonly"
|
|
298
300
|
:pt="pt"
|
|
299
301
|
:type="type"
|
|
300
302
|
class="w-full flex flex-col"
|
|
301
|
-
:
|
|
303
|
+
:input-id="slotprops.uuid"
|
|
302
304
|
:path="setting.instancepath"
|
|
303
|
-
@change="onChange"
|
|
304
305
|
:placeholder="placeholder"
|
|
305
|
-
v-bind="componentProps
|
|
306
|
+
v-bind="componentProps"
|
|
307
|
+
@change="onChange"
|
|
306
308
|
/>
|
|
307
|
-
<Editor
|
|
309
|
+
<Editor
|
|
308
310
|
v-else-if="inputType == SimpleAppInputType.html"
|
|
309
|
-
|
|
310
|
-
:
|
|
311
|
+
v-model="modelValue"
|
|
312
|
+
:input-id="slotprops.uuid"
|
|
311
313
|
:path="setting.instancepath"
|
|
312
314
|
:placeholder="placeholder"
|
|
313
315
|
:readonly="isReadonly"
|
|
314
|
-
v-
|
|
315
|
-
|
|
316
|
-
|
|
316
|
+
v-bind="componentProps"
|
|
317
|
+
@update:model-value="onChange"
|
|
318
|
+
/>
|
|
317
319
|
<InputText
|
|
318
320
|
v-else
|
|
319
|
-
v-model="modelValue
|
|
320
|
-
@focus="setFocus"
|
|
321
|
+
v-model="modelValue"
|
|
321
322
|
:autofocus="autofocus"
|
|
322
323
|
:readonly="isReadonly"
|
|
323
324
|
:pt="pt"
|
|
324
325
|
:type="type"
|
|
325
326
|
class="w-full flex flex-col"
|
|
326
|
-
:
|
|
327
|
-
@change="onChange"
|
|
327
|
+
:input-id="slotprops.uuid"
|
|
328
328
|
:path="setting.instancepath"
|
|
329
329
|
:placeholder="placeholder"
|
|
330
|
-
v-bind="componentProps
|
|
330
|
+
v-bind="componentProps"
|
|
331
|
+
@focus="setFocus"
|
|
332
|
+
@change="onChange"
|
|
331
333
|
/>
|
|
332
334
|
<!-- component require special treatment -->
|
|
333
335
|
|
|
334
|
-
<slot name="footer"
|
|
336
|
+
<slot name="footer"/>
|
|
335
337
|
</SimpleAppFieldContainer>
|
|
336
338
|
</template>
|
|
337
339
|
|
|
@@ -342,29 +344,36 @@
|
|
|
342
344
|
* last change 2023-10-28
|
|
343
345
|
* Author: Ks Tan
|
|
344
346
|
*/
|
|
345
|
-
import { autocompletetype } from "~/types";
|
|
346
|
-
import moment from "moment";
|
|
347
|
-
import AutoComplete, { AutoCompleteProps } from "primevue/autocomplete";
|
|
348
|
-
import {
|
|
349
|
-
import Checkbox
|
|
350
|
-
import Chips
|
|
347
|
+
// import { autocompletetype } from "~/types";
|
|
348
|
+
// import moment from "moment";
|
|
349
|
+
// import AutoComplete, { AutoCompleteProps } from "primevue/autocomplete";
|
|
350
|
+
import type { CalendarProps } from "primevue/calendar";
|
|
351
|
+
import Checkbox from "primevue/checkbox";
|
|
352
|
+
import Chips from "primevue/chips";
|
|
351
353
|
import SimpleAppDocumentNo from "./SimpleAppDocumentNo.vue";
|
|
352
354
|
import SimpleAppAutocomplete from "./SimpleAppAutocomplete.vue";
|
|
353
|
-
import
|
|
354
|
-
import
|
|
355
|
-
import
|
|
356
|
-
import
|
|
357
|
-
import
|
|
358
|
-
import
|
|
359
|
-
import
|
|
360
|
-
import
|
|
361
|
-
import
|
|
362
|
-
import
|
|
363
|
-
import
|
|
355
|
+
import type { DropdownProps } from "primevue/dropdown";
|
|
356
|
+
// import Dropdown from "primevue/dropdown";
|
|
357
|
+
import type { InputNumberProps } from "primevue/inputnumber";
|
|
358
|
+
import InputNumber from "primevue/inputnumber";
|
|
359
|
+
import type { InputSwitchProps } from "primevue/inputswitch";
|
|
360
|
+
import InputSwitch from "primevue/inputswitch";
|
|
361
|
+
import type { InputTextProps } from "primevue/inputtext";
|
|
362
|
+
import InputText from "primevue/inputtext";
|
|
363
|
+
import Listbox from "primevue/listbox";
|
|
364
|
+
import MultiSelect from "primevue/multiselect";
|
|
365
|
+
import Password from "primevue/password";
|
|
366
|
+
import RadioButton from "primevue/radiobutton";
|
|
367
|
+
import type { RatingProps } from "primevue/rating";
|
|
368
|
+
import Rating from "primevue/rating";
|
|
369
|
+
// import Slider, { SliderProps } from "primevue/slider";
|
|
370
|
+
import type { TextareaProps } from "primevue/textarea";
|
|
371
|
+
import Textarea from "primevue/textarea";
|
|
372
|
+
import Editor from "primevue/editor";
|
|
364
373
|
import { SimpleAppInputType } from "~/types";
|
|
365
374
|
const resetcount = ref(0);
|
|
366
375
|
const instancepath = ref("");
|
|
367
|
-
const modelValue = defineModel({ required: true });
|
|
376
|
+
const modelValue = defineModel<any>({ required: true });
|
|
368
377
|
|
|
369
378
|
const watchOnChange = ref(false);
|
|
370
379
|
const props = withDefaults(
|
|
@@ -389,7 +398,7 @@ const props = withDefaults(
|
|
|
389
398
|
| InputTextProps
|
|
390
399
|
| TextareaProps
|
|
391
400
|
| DropdownProps
|
|
392
|
-
|
|
|
401
|
+
| CalendarProps
|
|
393
402
|
| RatingProps;
|
|
394
403
|
}>(),
|
|
395
404
|
{ type: "text" },
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-bind="$attrs"
|
|
4
4
|
stripedRows
|
|
5
5
|
resizableColumns
|
|
6
|
-
:rowClass="()=>'align-top'"
|
|
6
|
+
:rowClass="() => 'align-top'"
|
|
7
7
|
class="simpleapp-datatable p-datatable-sm"
|
|
8
8
|
:value="modelValue"
|
|
9
9
|
>
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
<Button
|
|
17
17
|
icon="pi pi-plus"
|
|
18
18
|
@click="addNew()"
|
|
19
|
-
class="simpleapp-datatable-add btn-primary"
|
|
19
|
+
class="simpleapp-datatable-add btn-primary pl-10 pr-10"
|
|
20
20
|
type="button"
|
|
21
|
-
>{{ t("add") }}</Button
|
|
21
|
+
><i class="pi pi-plus"> </i>{{ t("add") }}</Button
|
|
22
22
|
>
|
|
23
23
|
</slot>
|
|
24
24
|
</div>
|
|
@@ -133,7 +133,7 @@ import _ from 'lodash'
|
|
|
133
133
|
// this.errorlist.value = {};
|
|
134
134
|
// this.hook('pre-validation', this.data.value);
|
|
135
135
|
const validate = ajv.compile(props.schema);
|
|
136
|
-
console.log("validate data",props.data)
|
|
136
|
+
// console.log("validate data",props.data)
|
|
137
137
|
const valid = validate(props.data);
|
|
138
138
|
if (!valid) {
|
|
139
139
|
const errors = validate.errors;
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
v-if="readonly"
|
|
4
|
-
class="
|
|
4
|
+
class="px-3 py-1.5 border rounded-lg border-gray-300 dark:border-blue-900/40 h-input"
|
|
5
5
|
>
|
|
6
|
-
|
|
7
|
-
{{ modelValue && modelValue.fullName ? modelValue.fullName : "-" }}
|
|
8
|
-
</div>
|
|
6
|
+
{{ modelValue && modelValue.fullName ? modelValue.fullName : "-" }}
|
|
9
7
|
</div>
|
|
10
8
|
<div
|
|
11
9
|
v-else-if="modelValue !== undefined"
|
|
12
|
-
class="
|
|
10
|
+
class="py-1.5 px-3 border rounded-lg border-gray-300 dark:border-blue-900/40 relative h-input"
|
|
13
11
|
>
|
|
14
12
|
<div ref="autocompleteinput" readonly>
|
|
15
13
|
{{ modelValue && modelValue.fullName ? modelValue.fullName : "-" }}
|
|
16
14
|
</div>
|
|
17
15
|
|
|
18
16
|
<div
|
|
19
|
-
class="absolute h-full top-0 right-0 text-right text-white z-10 align-middle
|
|
17
|
+
class="absolute h-full top-0 right-0 text-right text-white z-10 align-middle py-1.5 pr-3"
|
|
20
18
|
>
|
|
21
19
|
<a
|
|
22
20
|
class="pi pi-times rounded-full bg-slate-500 p-1 cursor-pointer text-xs"
|
|
@@ -62,7 +60,7 @@
|
|
|
62
60
|
>
|
|
63
61
|
<template #header>
|
|
64
62
|
<slot name="header">
|
|
65
|
-
<div class="flex flex-row font font-bold
|
|
63
|
+
<div class="flex flex-row font font-bold">
|
|
66
64
|
<div>{{ t("user") }}</div>
|
|
67
65
|
</div>
|
|
68
66
|
</slot>
|
|
@@ -72,7 +70,7 @@
|
|
|
72
70
|
</template>
|
|
73
71
|
<template #option="{ index, option }">
|
|
74
72
|
<slot name="option" :index="index" :option="option">
|
|
75
|
-
<div class="flex flex-row
|
|
73
|
+
<div class="flex flex-row">
|
|
76
74
|
<div>{{ option.label }}</div>
|
|
77
75
|
</div>
|
|
78
76
|
</slot>
|
|
@@ -90,7 +88,7 @@
|
|
|
90
88
|
<InputGroupAddon
|
|
91
89
|
@click="showAutocompleteDialog(true)"
|
|
92
90
|
v-ripple
|
|
93
|
-
class="bg bg-primary-600
|
|
91
|
+
class="bg bg-primary-600 text-white rounded-r-lg p-3"
|
|
94
92
|
>
|
|
95
93
|
<i :class="`pi ${modelValue ? 'pi-link' : 'pi-angle-down'}`"></i>
|
|
96
94
|
</InputGroupAddon>
|
|
@@ -261,7 +259,7 @@ const getListFromAutocompleteApi = (event: any) => {
|
|
|
261
259
|
getDocumentApi("user")
|
|
262
260
|
.autoComplete(keyword, morefilter)
|
|
263
261
|
.then((res: any) => {
|
|
264
|
-
console.log("Run autocomplete?");
|
|
262
|
+
// console.log("Run autocomplete?");
|
|
265
263
|
list.value = res.data;
|
|
266
264
|
|
|
267
265
|
if (props.allowAddNew) {
|
|
@@ -364,7 +362,7 @@ const afterRenderMobileForm = async (
|
|
|
364
362
|
data: any,
|
|
365
363
|
result: any,
|
|
366
364
|
) => {
|
|
367
|
-
console.log("afterRenderMobileForm", eventType);
|
|
365
|
+
// console.log("afterRenderMobileForm", eventType);
|
|
368
366
|
if (eventType == FormCrudEvent.create || eventType == FormCrudEvent.update) {
|
|
369
367
|
autocompleteitem.value = {
|
|
370
368
|
_id: data._id,
|
|
@@ -381,7 +379,7 @@ const afterRenderMobileForm = async (
|
|
|
381
379
|
};
|
|
382
380
|
|
|
383
381
|
const clickAutocomplete = (a, b) => {
|
|
384
|
-
console.log("clickAutocomplete", a, b);
|
|
382
|
+
// console.log("clickAutocomplete", a, b);
|
|
385
383
|
return false;
|
|
386
384
|
};
|
|
387
385
|
</script>
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
</template>
|
|
98
98
|
<script setup lang="ts" generic="T">
|
|
99
99
|
/**
|
|
100
|
-
* This file was automatically generated by simpleapp generator.
|
|
101
|
-
*
|
|
100
|
+
* This file was automatically generated by simpleapp generator during initialization. It is changable.
|
|
101
|
+
* --remove-this-line-to-prevent-override--
|
|
102
102
|
* last change 2023-10-28
|
|
103
103
|
* Author: Ks Tan
|
|
104
104
|
*/
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
</template>
|
|
92
92
|
<script setup lang="ts">
|
|
93
93
|
/**
|
|
94
|
-
* This file was automatically generated by simpleapp generator.
|
|
95
|
-
*
|
|
94
|
+
* This file was automatically generated by simpleapp generator during initialization. It is changable.
|
|
95
|
+
* --remove-this-line-to-prevent-override--
|
|
96
96
|
* last change 2023-10-28
|
|
97
97
|
* Author: Ks Tan
|
|
98
98
|
*/
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
</template>
|
|
28
28
|
<script setup lang="ts">
|
|
29
29
|
/**
|
|
30
|
-
* This file was automatically generated by simpleapp generator.
|
|
31
|
-
*
|
|
30
|
+
* This file was automatically generated by simpleapp generator during initialization. It is changable.
|
|
31
|
+
* --remove-this-line-to-prevent-override--
|
|
32
32
|
* last change 2023-10-28
|
|
33
33
|
* Author: Ks Tan
|
|
34
34
|
*/
|
package/templates/nuxt/components/user/{UserProfileListItem.vue.eta → UserProfileListItem.vue._eta}
RENAMED
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
</template>
|
|
34
34
|
<script setup lang="ts">
|
|
35
35
|
/**
|
|
36
|
-
* This file was automatically generated by simpleapp generator.
|
|
37
|
-
*
|
|
36
|
+
* This file was automatically generated by simpleapp generator during initialization. It is changable.
|
|
37
|
+
* --remove-this-line-to-prevent-override--
|
|
38
38
|
* last change 2023-10-28
|
|
39
39
|
* Author: Ks Tan
|
|
40
40
|
*/
|
package/templates/nuxt/components/user/{UserTenantPicker.vue.eta → UserTenantPicker.vue._eta}
RENAMED
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
</template>
|
|
32
32
|
<script setup lang="ts">
|
|
33
33
|
/**
|
|
34
|
-
* This file was automatically generated by simpleapp generator.
|
|
35
|
-
*
|
|
34
|
+
* This file was automatically generated by simpleapp generator during initialization. It is changable.
|
|
35
|
+
* --remove-this-line-to-prevent-override--
|
|
36
36
|
* last change 2023-10-28
|
|
37
37
|
* Author: Ks Tan
|
|
38
38
|
*/
|