@simitgroup/simpleapp-generator 1.6.6-h-alpha → 1.6.6-j-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 +13 -1
- package/dist/buildinschemas/message.d.ts +3 -0
- package/dist/buildinschemas/message.d.ts.map +1 -0
- package/dist/buildinschemas/message.js +34 -0
- package/dist/buildinschemas/message.js.map +1 -0
- package/dist/buildinschemas/webhook.d.ts.map +1 -1
- package/dist/buildinschemas/webhook.js +1 -0
- package/dist/buildinschemas/webhook.js.map +1 -1
- package/dist/buildinschemas/webhookhistory.d.ts +3 -0
- package/dist/buildinschemas/webhookhistory.d.ts.map +1 -0
- package/dist/buildinschemas/webhookhistory.js +44 -0
- package/dist/buildinschemas/webhookhistory.js.map +1 -0
- package/dist/createproject.js +138 -0
- package/dist/createproject.js.map +1 -0
- package/dist/framework.d.ts.map +1 -1
- package/dist/framework.js +28 -3
- package/dist/framework.js.map +1 -1
- package/dist/generate-allow-changebackend.js +305 -0
- package/dist/generate-allow-changebackend.js.map +1 -0
- package/dist/index.js +0 -0
- package/dist/index2.js +118 -0
- package/dist/index2.js.map +1 -0
- package/dist/installdependency.js +20 -0
- package/dist/installdependency.js.map +1 -0
- package/dist/installnest.js +2 -0
- package/dist/installnest.js.map +1 -0
- package/dist/installnuxt.js +2 -0
- package/dist/installnuxt.js.map +1 -0
- package/dist/processors/groupsbuilder.js +2 -0
- package/dist/processors/groupsbuilder.js.map +1 -0
- package/dist/schematype/baseschema.js +25 -0
- package/dist/schematype/baseschema.js.map +1 -0
- package/dist/schematype/default.js +2 -0
- package/dist/schematype/default.js.map +1 -0
- package/dist/schematype/index.js +12 -0
- package/dist/schematype/index.js.map +1 -0
- package/dist/schematype/primarymasterdata.js +38 -0
- package/dist/schematype/primarymasterdata.js.map +1 -0
- package/dist/schematype/simple.js +24 -0
- package/dist/schematype/simple.js.map +1 -0
- package/dist/schematype/simplemasterdata.js +31 -0
- package/dist/schematype/simplemasterdata.js.map +1 -0
- package/dist/schematype/transaction.js +74 -0
- package/dist/schematype/transaction.js.map +1 -0
- package/package.json +1 -1
- package/src/buildinschemas/webhook.ts +1 -0
- package/src/framework.ts +31 -4
- package/templates/basic/nest/controller.ts.eta +6 -5
- package/templates/basic/nest/resolver.ts.eta +4 -2
- package/templates/basic/nest/service.ts.eta +5 -2
- package/templates/nest/.env._eta +1 -1
- package/templates/nest/src/simpleapp/generate/commons/middlewares/tenant.middleware.ts.eta +2 -2
- package/templates/nest/src/simpleapp/generate/commons/runwebhook.service.ts.eta +99 -107
- package/templates/nest/src/simpleapp/generate/commons/user.context.ts.eta +2 -2
- package/templates/nest/src/simpleapp/generate/processors/simpleapp.processor.ts.eta +3 -15
- package/templates/nuxt/assets/css/style.css._eta +74 -28
- package/templates/nuxt/components/calendar/CalendarInput.vue.eta +1 -1
- package/templates/nuxt/components/calendar/CalendarSmall.vue.eta +7 -7
- package/templates/nuxt/components/debug/DebugDocumentData.vue.eta +2 -3
- package/templates/nuxt/components/header/HeaderBreadcrumb.vue.eta +3 -3
- package/templates/nuxt/components/header/button/task/HeaderButtonTaskList.vue.eta +2 -2
- package/templates/nuxt/components/list/ListDocumentTable.vue.eta +1 -1
- package/templates/nuxt/components/list/ListMessages.vue.eta +2 -2
- package/templates/nuxt/components/overlay/OverlayPanelWithToolBar.vue.eta +3 -3
- package/templates/nuxt/components/overlay/OverlaySideBarCrud.vue.eta +2 -2
- package/templates/nuxt/components/page/PageDocList.vue.eta +3 -3
- package/templates/nuxt/components/renderer/RendererDateAge.vue.eta +19 -0
- package/templates/nuxt/components/simpleApp/SimpleAppCalendarInput.vue.eta +4 -4
- package/templates/nuxt/components/simpleApp/SimpleAppDocumentNo.vue.eta +3 -3
- package/templates/nuxt/components/simpleApp/SimpleAppInput.vue.eta +2 -3
- package/templates/nuxt/components/simpleApp/SimpleAppJsonSchemaForm.vue.eta +2 -15
- package/templates/nuxt/components/user/UserButtonPermissionInfo.vue.eta +2 -2
- package/templates/nuxt/nuxt.config.ts._eta +6 -5
- package/templates/nuxt/pages/index.vue._eta +1 -1
- package/templates/nuxt/plugins/40.pusher.ts.eta +8 -2
- package/templates/nuxt/presets/lara/accordion/index.js +79 -0
- package/templates/nuxt/presets/lara/accordioncontent/index.js +3 -0
- package/templates/nuxt/presets/lara/accordionheader/index.js +11 -0
- package/templates/nuxt/presets/lara/accordionpanel/index.js +18 -0
- package/templates/nuxt/presets/lara/autocomplete/index.js +208 -0
- package/templates/nuxt/presets/lara/avatar/index.js +43 -0
- package/templates/nuxt/presets/lara/avatargroup/index.js +5 -0
- package/templates/nuxt/presets/lara/badge/index.js +47 -0
- package/templates/nuxt/presets/lara/badgedirective/index.js +43 -0
- package/templates/nuxt/presets/lara/blockui/index.js +4 -0
- package/templates/nuxt/presets/lara/breadcrumb/index.js +64 -0
- package/templates/nuxt/presets/lara/button/index.js +238 -0
- package/templates/nuxt/presets/lara/buttongroup/index.js +12 -0
- package/templates/nuxt/presets/lara/card/index.js +37 -0
- package/templates/nuxt/presets/lara/carousel/index.js +103 -0
- package/templates/nuxt/presets/lara/cascadeselect/index.js +199 -0
- package/templates/nuxt/presets/lara/checkbox/index.js +104 -0
- package/templates/nuxt/presets/lara/chip/index.js +42 -0
- package/templates/nuxt/presets/lara/colorpicker/index.js +123 -0
- package/templates/nuxt/presets/lara/confirmdialog/index.js +3 -0
- package/templates/nuxt/presets/lara/confirmpopup/index.js +56 -0
- package/templates/nuxt/presets/lara/contextmenu/index.js +126 -0
- package/templates/nuxt/presets/lara/datatable/index.js +403 -0
- package/templates/nuxt/presets/lara/dataview/index.js +28 -0
- package/templates/nuxt/presets/lara/datepicker/index.js +435 -0
- package/templates/nuxt/presets/lara/deferred/index.js +3 -0
- package/templates/nuxt/presets/lara/dialog/index.js +148 -0
- package/templates/nuxt/presets/lara/divider/index.js +67 -0
- package/templates/nuxt/presets/lara/dock/index.js +86 -0
- package/templates/nuxt/presets/lara/drawer/index.js +149 -0
- package/templates/nuxt/presets/lara/fieldset/index.js +84 -0
- package/templates/nuxt/presets/lara/fileupload/index.js +95 -0
- package/templates/nuxt/presets/lara/floatlabel/index.js +26 -0
- package/templates/nuxt/presets/lara/galleria/index.js +308 -0
- package/templates/nuxt/presets/lara/global.js +90 -0
- package/templates/nuxt/presets/lara/iconfield/index.js +27 -0
- package/templates/nuxt/presets/lara/image/index.js +206 -0
- package/templates/nuxt/presets/lara/index.js +234 -0
- package/templates/nuxt/presets/lara/inplace/index.js +27 -0
- package/templates/nuxt/presets/lara/inputgroup/index.js +5 -0
- package/templates/nuxt/presets/lara/inputgroupaddon/index.js +28 -0
- package/templates/nuxt/presets/lara/inputmask/index.js +39 -0
- package/templates/nuxt/presets/lara/inputnumber/index.js +167 -0
- package/templates/nuxt/presets/lara/inputotp/index.js +10 -0
- package/templates/nuxt/presets/lara/inputswitch/index.js +80 -0
- package/templates/nuxt/presets/lara/inputtext/index.js +54 -0
- package/templates/nuxt/presets/lara/knob/index.js +44 -0
- package/templates/nuxt/presets/lara/listbox/index.js +117 -0
- package/templates/nuxt/presets/lara/megamenu/index.js +198 -0
- package/templates/nuxt/presets/lara/menu/index.js +96 -0
- package/templates/nuxt/presets/lara/menubar/index.js +176 -0
- package/templates/nuxt/presets/lara/message/index.js +92 -0
- package/templates/nuxt/presets/lara/metergroup/index.js +96 -0
- package/templates/nuxt/presets/lara/multiselect/index.js +201 -0
- package/templates/nuxt/presets/lara/orderlist/index.js +13 -0
- package/templates/nuxt/presets/lara/organizationchart/index.js +137 -0
- package/templates/nuxt/presets/lara/overlaybadge/index.js +18 -0
- package/templates/nuxt/presets/lara/paginator/index.js +178 -0
- package/templates/nuxt/presets/lara/panel/index.js +91 -0
- package/templates/nuxt/presets/lara/panelmenu/index.js +127 -0
- package/templates/nuxt/presets/lara/password/index.js +72 -0
- package/templates/nuxt/presets/lara/picklist/index.js +52 -0
- package/templates/nuxt/presets/lara/popover/index.js +31 -0
- package/templates/nuxt/presets/lara/progressbar/index.js +55 -0
- package/templates/nuxt/presets/lara/progressspinner/index.js +51 -0
- package/templates/nuxt/presets/lara/radiobutton/index.js +104 -0
- package/templates/nuxt/presets/lara/rating/index.js +63 -0
- package/templates/nuxt/presets/lara/ripple/index.js +6 -0
- package/templates/nuxt/presets/lara/scrollpanel/index.js +77 -0
- package/templates/nuxt/presets/lara/scrolltop/index.js +26 -0
- package/templates/nuxt/presets/lara/select/index.js +240 -0
- package/templates/nuxt/presets/lara/selectbutton/index.js +16 -0
- package/templates/nuxt/presets/lara/skeleton/index.js +16 -0
- package/templates/nuxt/presets/lara/slider/index.js +137 -0
- package/templates/nuxt/presets/lara/speeddial/index.js +57 -0
- package/templates/nuxt/presets/lara/splitbutton/index.js +19 -0
- package/templates/nuxt/presets/lara/splitter/index.js +61 -0
- package/templates/nuxt/presets/lara/splitterpanel/index.js +5 -0
- package/templates/nuxt/presets/lara/step/index.js +62 -0
- package/templates/nuxt/presets/lara/stepitem/index.js +11 -0
- package/templates/nuxt/presets/lara/steplist/index.js +3 -0
- package/templates/nuxt/presets/lara/steppanels/index.js +3 -0
- package/templates/nuxt/presets/lara/stepper/index.js +13 -0
- package/templates/nuxt/presets/lara/steps/index.js +111 -0
- package/templates/nuxt/presets/lara/tab/index.js +42 -0
- package/templates/nuxt/presets/lara/tablist/index.js +8 -0
- package/templates/nuxt/presets/lara/tabmenu/index.js +73 -0
- package/templates/nuxt/presets/lara/tabpanel/index.js +3 -0
- package/templates/nuxt/presets/lara/tabpanels/index.js +3 -0
- package/templates/nuxt/presets/lara/tabs/index.js +5 -0
- package/templates/nuxt/presets/lara/tabview/index.js +156 -0
- package/templates/nuxt/presets/lara/tag/index.js +38 -0
- package/templates/nuxt/presets/lara/terminal/index.js +60 -0
- package/templates/nuxt/presets/lara/textarea/index.js +39 -0
- package/templates/nuxt/presets/lara/tieredmenu/index.js +121 -0
- package/templates/nuxt/presets/lara/timeline/index.js +81 -0
- package/templates/nuxt/presets/lara/toast/index.js +102 -0
- package/templates/nuxt/presets/lara/togglebutton/index.js +45 -0
- package/templates/nuxt/presets/lara/toggleswitch/index.js +80 -0
- package/templates/nuxt/presets/lara/toolbar/index.js +28 -0
- package/templates/nuxt/presets/lara/tooltip/index.js +46 -0
- package/templates/nuxt/presets/lara/tree/index.js +101 -0
- package/templates/nuxt/presets/lara/treeselect/index.js +102 -0
- package/templates/nuxt/presets/lara/treetable/index.js +305 -0
- package/templates/nuxt/simpleapp/generate/clients/SimpleAppClient.ts.eta +2 -16
- package/templates/nuxt/tailwind.config.ts._eta +4 -15
- package/templates/project/sharelibs/validate.ts.eta +23 -0
- /package/templates/nuxt/components/image/{ImageAvatar.vue.eta._vue → ImageAvatar.vue.eta} +0 -0
- /package/templates/nuxt/components/image/{ImageOrganization.vue.eta.vue → ImageOrganization.vue.eta} +0 -0
- /package/templates/nuxt/components/image/{ImageToBase64Uploader.vue.eta.vue → ImageToBase64Uploader.vue.eta} +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props, state }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Display and Position
|
|
5
|
+
'inline-flex',
|
|
6
|
+
'relative',
|
|
7
|
+
|
|
8
|
+
// Shape
|
|
9
|
+
'rounded-md',
|
|
10
|
+
|
|
11
|
+
// Color and Background
|
|
12
|
+
'bg-surface-0 dark:bg-surface-900',
|
|
13
|
+
'border',
|
|
14
|
+
{ 'border-surface-300 dark:border-surface-600': !props.invalid },
|
|
15
|
+
|
|
16
|
+
// Invalid State
|
|
17
|
+
{ 'border-red-500 dark:border-red-400': props.invalid },
|
|
18
|
+
|
|
19
|
+
// Transitions
|
|
20
|
+
'transition-all',
|
|
21
|
+
'duration-200',
|
|
22
|
+
|
|
23
|
+
// States
|
|
24
|
+
{ 'hover:border-primary': !props.invalid },
|
|
25
|
+
{ 'outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50': state.focused },
|
|
26
|
+
|
|
27
|
+
// Misc
|
|
28
|
+
'cursor-pointer',
|
|
29
|
+
'select-none',
|
|
30
|
+
{ 'opacity-60': props.disabled, 'pointer-events-none': props.disabled, 'cursor-default': props.disabled }
|
|
31
|
+
]
|
|
32
|
+
}),
|
|
33
|
+
labelContainer: {
|
|
34
|
+
class: ['overflow-hidden flex flex-auto cursor-pointer']
|
|
35
|
+
},
|
|
36
|
+
label: {
|
|
37
|
+
class: [
|
|
38
|
+
'block leading-[normal]',
|
|
39
|
+
|
|
40
|
+
// Space
|
|
41
|
+
'p-3',
|
|
42
|
+
|
|
43
|
+
// Color
|
|
44
|
+
'text-surface-800 dark:text-white/80',
|
|
45
|
+
|
|
46
|
+
// Transition
|
|
47
|
+
'transition duration-200',
|
|
48
|
+
|
|
49
|
+
// Misc
|
|
50
|
+
'overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis'
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
dropdown: {
|
|
54
|
+
class: [
|
|
55
|
+
// Flexbox
|
|
56
|
+
'flex items-center justify-center',
|
|
57
|
+
'shrink-0',
|
|
58
|
+
|
|
59
|
+
// Color and Background
|
|
60
|
+
'bg-transparent',
|
|
61
|
+
'text-surface-500',
|
|
62
|
+
|
|
63
|
+
// Size
|
|
64
|
+
'w-12',
|
|
65
|
+
|
|
66
|
+
// Shape
|
|
67
|
+
'rounded-tr-md',
|
|
68
|
+
'rounded-br-md'
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
panel: {
|
|
72
|
+
class: [
|
|
73
|
+
// Position
|
|
74
|
+
'absolute top-0 left-0',
|
|
75
|
+
|
|
76
|
+
// Shape
|
|
77
|
+
'border-0 dark:border',
|
|
78
|
+
'rounded-md',
|
|
79
|
+
'shadow-md',
|
|
80
|
+
|
|
81
|
+
// Color
|
|
82
|
+
'bg-surface-0 dark:bg-surface-800',
|
|
83
|
+
'text-surface-800 dark:text-white/80',
|
|
84
|
+
'dark:border-surface-700'
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
treeContainer: {
|
|
88
|
+
class: [
|
|
89
|
+
// Sizing
|
|
90
|
+
'max-h-[200px]',
|
|
91
|
+
|
|
92
|
+
// Misc
|
|
93
|
+
'overflow-auto'
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
transition: {
|
|
97
|
+
enterFromClass: 'opacity-0 scale-y-[0.8]',
|
|
98
|
+
enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
|
|
99
|
+
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
|
|
100
|
+
leaveToClass: 'opacity-0'
|
|
101
|
+
}
|
|
102
|
+
};
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'relative',
|
|
5
|
+
{
|
|
6
|
+
'flex flex-col h-full': props.scrollHeight === 'flex'
|
|
7
|
+
}
|
|
8
|
+
]
|
|
9
|
+
}),
|
|
10
|
+
mask: {
|
|
11
|
+
class: [
|
|
12
|
+
// Position
|
|
13
|
+
'absolute',
|
|
14
|
+
'top-0 left-0',
|
|
15
|
+
'z-20',
|
|
16
|
+
|
|
17
|
+
// Flex & Alignment
|
|
18
|
+
'flex items-center justify-center',
|
|
19
|
+
|
|
20
|
+
// Size
|
|
21
|
+
'w-full h-full',
|
|
22
|
+
|
|
23
|
+
// Color
|
|
24
|
+
'bg-surface-100/40 dark:bg-surface-800/40',
|
|
25
|
+
|
|
26
|
+
// Transition
|
|
27
|
+
'transition duration-200'
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
loadingIcon: {
|
|
31
|
+
class: 'w-8 h-8 animate-spin'
|
|
32
|
+
},
|
|
33
|
+
tableContainer: ({ props }) => ({
|
|
34
|
+
class: [
|
|
35
|
+
// Overflow
|
|
36
|
+
{
|
|
37
|
+
'relative overflow-auto': props.scrollable,
|
|
38
|
+
'overflow-x-auto': props.resizableColumns
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}),
|
|
42
|
+
header: ({ props }) => ({
|
|
43
|
+
class: [
|
|
44
|
+
'font-bold',
|
|
45
|
+
|
|
46
|
+
// Shape
|
|
47
|
+
props.showGridlines ? 'border-x border-t border-b-0' : 'border-y border-x-0',
|
|
48
|
+
|
|
49
|
+
// Spacing
|
|
50
|
+
'p-4',
|
|
51
|
+
|
|
52
|
+
// Color
|
|
53
|
+
'bg-surface-50 dark:bg-surface-800',
|
|
54
|
+
'border-surface-200 dark:border-surface-700',
|
|
55
|
+
'text-surface-700 dark:text-white/80'
|
|
56
|
+
]
|
|
57
|
+
}),
|
|
58
|
+
footer: {
|
|
59
|
+
class: [
|
|
60
|
+
// Background, Border & Text
|
|
61
|
+
'bg-slate-50 text-slate-700',
|
|
62
|
+
'border border-x-0 border-t-0 border-surface-50',
|
|
63
|
+
// Padding & Font
|
|
64
|
+
'p-4 font-bold',
|
|
65
|
+
// Dark Mode
|
|
66
|
+
'dark:bg-surface-900 dark:text-white/70 dark:border-surface-700'
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
table: {
|
|
70
|
+
class: [
|
|
71
|
+
// Table & Width
|
|
72
|
+
'border-collapse table-fixed w-full '
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
thead: ({ props }) => ({
|
|
76
|
+
class: [
|
|
77
|
+
// Position & Z-index
|
|
78
|
+
{
|
|
79
|
+
'top-0 z-40 sticky': props.scrollable
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}),
|
|
83
|
+
tbody: ({ props }) => ({
|
|
84
|
+
class: [
|
|
85
|
+
// Block Display
|
|
86
|
+
{
|
|
87
|
+
block: props.scrollable
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}),
|
|
91
|
+
tfoot: ({ props }) => ({
|
|
92
|
+
class: [
|
|
93
|
+
// Block Display
|
|
94
|
+
{
|
|
95
|
+
block: props.scrollable
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}),
|
|
99
|
+
headerRow: ({ props }) => ({
|
|
100
|
+
class: [
|
|
101
|
+
// Flexbox & Width
|
|
102
|
+
{
|
|
103
|
+
'flex flex-nowrap w-full': props.scrollable
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}),
|
|
107
|
+
row: ({ context, props }) => ({
|
|
108
|
+
class: [
|
|
109
|
+
// Flex
|
|
110
|
+
{ 'flex flex-nowrap w-full': context.scrollable },
|
|
111
|
+
|
|
112
|
+
// Color
|
|
113
|
+
'dark:text-white/80',
|
|
114
|
+
{ 'bg-highlight': context.selected },
|
|
115
|
+
{ 'bg-surface-0 text-surface-600 dark:bg-surface-800': !context.selected },
|
|
116
|
+
|
|
117
|
+
// Hover & Flexbox
|
|
118
|
+
{
|
|
119
|
+
'hover:bg-surface-300/20 hover:text-surface-600': context.selectable && !context.selected
|
|
120
|
+
},
|
|
121
|
+
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 ring-inset dark:focus:ring-primary-300/50',
|
|
122
|
+
|
|
123
|
+
// Transition
|
|
124
|
+
{ 'transition duration-200': (props.selectionMode && !context.selected) || props.rowHover }
|
|
125
|
+
]
|
|
126
|
+
}),
|
|
127
|
+
headerCell: ({ context, props }) => ({
|
|
128
|
+
class: [
|
|
129
|
+
'font-bold',
|
|
130
|
+
|
|
131
|
+
// Position
|
|
132
|
+
{ 'sticky z-40': context.scrollable && context.scrollDirection === 'both' && context.frozen },
|
|
133
|
+
|
|
134
|
+
// Flex & Alignment
|
|
135
|
+
{
|
|
136
|
+
'flex flex-1 items-center': context.scrollable,
|
|
137
|
+
'flex-initial shrink-0': context.scrollable && context.scrollDirection === 'both' && !context.frozen
|
|
138
|
+
},
|
|
139
|
+
'text-left',
|
|
140
|
+
|
|
141
|
+
// Shape
|
|
142
|
+
{ 'first:border-l border-y border-r': context?.showGridlines },
|
|
143
|
+
'border-0 border-b border-solid',
|
|
144
|
+
|
|
145
|
+
// Spacing
|
|
146
|
+
context?.size === 'small' ? 'p-2' : context?.size === 'large' ? 'p-5' : 'p-4',
|
|
147
|
+
|
|
148
|
+
// Color
|
|
149
|
+
(props.sortable === '' || props.sortable) && context.sorted ? 'bg-highlight' : 'bg-surface-50 text-surface-700 dark:text-white/80 dark:bg-surface-800',
|
|
150
|
+
'border-surface-200 dark:border-surface-700',
|
|
151
|
+
|
|
152
|
+
// States
|
|
153
|
+
{ 'hover:bg-surface-100 dark:hover:bg-surface-400/30': (props.sortable === '' || props.sortable) && !context?.sorted },
|
|
154
|
+
'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
|
|
155
|
+
|
|
156
|
+
// Transition
|
|
157
|
+
{ 'transition duration-200': props.sortable === '' || props.sortable },
|
|
158
|
+
|
|
159
|
+
// Misc
|
|
160
|
+
{
|
|
161
|
+
'overflow-hidden relative bg-clip-padding': context.resizable && !context.frozen
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}),
|
|
165
|
+
column: {
|
|
166
|
+
headerCell: ({ context, props }) => ({
|
|
167
|
+
class: [
|
|
168
|
+
'font-bold',
|
|
169
|
+
|
|
170
|
+
// Position
|
|
171
|
+
{ 'sticky z-40': context.scrollable && context.scrollDirection === 'both' && context.frozen },
|
|
172
|
+
|
|
173
|
+
// Flex & Alignment
|
|
174
|
+
{
|
|
175
|
+
'flex flex-1 items-center': context.scrollable,
|
|
176
|
+
'flex-initial shrink-0': context.scrollable && context.scrollDirection === 'both' && !context.frozen
|
|
177
|
+
},
|
|
178
|
+
'text-left',
|
|
179
|
+
|
|
180
|
+
// Shape
|
|
181
|
+
{ 'first:border-l border-y border-r': context?.showGridlines },
|
|
182
|
+
'border-0 border-b border-solid',
|
|
183
|
+
|
|
184
|
+
// Spacing
|
|
185
|
+
context?.size === 'small' ? 'p-2' : context?.size === 'large' ? 'p-5' : 'p-4',
|
|
186
|
+
|
|
187
|
+
// Color
|
|
188
|
+
(props.sortable === '' || props.sortable) && context.sorted ? 'bg-highlight' : 'bg-surface-50 text-surface-700 dark:text-white/80 dark:bg-surface-800',
|
|
189
|
+
'border-surface-200 dark:border-surface-700',
|
|
190
|
+
|
|
191
|
+
// States
|
|
192
|
+
{ 'hover:bg-surface-100 dark:hover:bg-surface-400/30': (props.sortable === '' || props.sortable) && !context?.sorted },
|
|
193
|
+
'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
|
|
194
|
+
|
|
195
|
+
// Transition
|
|
196
|
+
{ 'transition duration-200': props.sortable === '' || props.sortable },
|
|
197
|
+
|
|
198
|
+
// Misc
|
|
199
|
+
{
|
|
200
|
+
'overflow-hidden relative bg-clip-padding': context.resizable && !context.frozen
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}),
|
|
204
|
+
bodyCell: ({ context }) => ({
|
|
205
|
+
class: [
|
|
206
|
+
// Position
|
|
207
|
+
{
|
|
208
|
+
sticky: context.scrollable && context.scrollDirection === 'both' && context.frozen
|
|
209
|
+
},
|
|
210
|
+
|
|
211
|
+
// Flex & Alignment
|
|
212
|
+
{
|
|
213
|
+
'flex flex-1 items-center': context.scrollable,
|
|
214
|
+
'flex-initial shrink-0': context.scrollable && context.scrollDirection === 'both' && !context.frozen
|
|
215
|
+
},
|
|
216
|
+
'text-left',
|
|
217
|
+
|
|
218
|
+
// Shape
|
|
219
|
+
'border-0 border-b border-solid',
|
|
220
|
+
'border-surface-200 dark:border-surface-700',
|
|
221
|
+
{
|
|
222
|
+
'border-x-0 border-l-0': !context.showGridlines
|
|
223
|
+
},
|
|
224
|
+
{ 'first:border-l border-r border-b': context?.showGridlines },
|
|
225
|
+
|
|
226
|
+
// Spacing
|
|
227
|
+
context?.size === 'small' ? 'p-2' : context?.size === 'large' ? 'p-5' : 'p-4',
|
|
228
|
+
|
|
229
|
+
// Misc
|
|
230
|
+
{
|
|
231
|
+
'cursor-pointer': context.selectable,
|
|
232
|
+
sticky: context.scrollable && context.scrollDirection === 'both' && context.frozen,
|
|
233
|
+
'border-x-0 border-l-0': !context.showGridlines
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
}),
|
|
237
|
+
bodyCellContent: 'flex items-center gap-2',
|
|
238
|
+
rowToggleButton: {
|
|
239
|
+
class: [
|
|
240
|
+
'relative',
|
|
241
|
+
|
|
242
|
+
// Flex & Alignment
|
|
243
|
+
'inline-flex items-center justify-center',
|
|
244
|
+
'text-left align-middle',
|
|
245
|
+
|
|
246
|
+
// Spacing
|
|
247
|
+
'm-0 mr-2 p-0',
|
|
248
|
+
|
|
249
|
+
// Size
|
|
250
|
+
'w-8 h-8',
|
|
251
|
+
|
|
252
|
+
// Shape
|
|
253
|
+
'border-0 rounded-full',
|
|
254
|
+
|
|
255
|
+
// Color
|
|
256
|
+
'text-surface-500 dark:text-white/70',
|
|
257
|
+
'bg-transparent',
|
|
258
|
+
|
|
259
|
+
// States
|
|
260
|
+
'hover:bg-surface-50 dark:hover:bg-surface-700',
|
|
261
|
+
'focus-visible:outline-none focus-visible:outline-offset-0',
|
|
262
|
+
'focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
|
|
263
|
+
|
|
264
|
+
// Transition
|
|
265
|
+
'transition duration-200',
|
|
266
|
+
|
|
267
|
+
// Misc
|
|
268
|
+
'overflow-hidden',
|
|
269
|
+
'cursor-pointer select-none'
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
sortIcon: ({ context }) => ({
|
|
273
|
+
class: ['ml-2 inline-block', context.sorted ? 'text-inherit' : 'fill-surface-700 dark:fill-white/70']
|
|
274
|
+
}),
|
|
275
|
+
columnResizer: {
|
|
276
|
+
class: [
|
|
277
|
+
'block',
|
|
278
|
+
|
|
279
|
+
// Position
|
|
280
|
+
'absolute top-0 right-0',
|
|
281
|
+
|
|
282
|
+
// Sizing
|
|
283
|
+
'w-2 h-full',
|
|
284
|
+
|
|
285
|
+
// Spacing
|
|
286
|
+
'm-0 p-0',
|
|
287
|
+
|
|
288
|
+
// Color
|
|
289
|
+
'border border-transparent',
|
|
290
|
+
|
|
291
|
+
// Misc
|
|
292
|
+
'cursor-col-resize'
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
transition: {
|
|
296
|
+
enterFromClass: 'opacity-0 scale-y-[0.8]',
|
|
297
|
+
enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
|
|
298
|
+
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
|
|
299
|
+
leaveToClass: 'opacity-0'
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
columnResizeIndicator: {
|
|
303
|
+
class: 'absolute hidden w-[2px] z-20 bg-primary'
|
|
304
|
+
}
|
|
305
|
+
};
|
|
@@ -4,13 +4,11 @@
|
|
|
4
4
|
* last change 2024-03-08
|
|
5
5
|
* Author: Ks Tan
|
|
6
6
|
*/
|
|
7
|
-
import Ajv from 'ajv';
|
|
8
|
-
import addFormats from 'ajv-formats';
|
|
9
|
-
import addErrors from 'ajv-errors';
|
|
10
7
|
import { ref } from 'vue';
|
|
11
8
|
import type { Ref } from 'vue';
|
|
12
9
|
import type { AxiosResponse } from 'axios';
|
|
13
10
|
import {SearchBody,TextSearchBody,Notification,NotificationStatus,SchemaType,FormActions} from '~/types'
|
|
11
|
+
import { getValidateService } from '~/simpleapp/generate/sharelibs/validate';
|
|
14
12
|
|
|
15
13
|
// import { useToast, } from 'primevue/usetoast';
|
|
16
14
|
// import type { ToastMessageOptions } from 'primevue/toast';
|
|
@@ -294,19 +292,7 @@ export class SimpleAppClient<
|
|
|
294
292
|
return true;
|
|
295
293
|
}
|
|
296
294
|
validateFailed() {
|
|
297
|
-
const ajv =
|
|
298
|
-
addFormats(ajv);
|
|
299
|
-
addErrors(ajv)
|
|
300
|
-
|
|
301
|
-
ajv.addFormat('tel',/^$|^\d{7,15}$/gm)
|
|
302
|
-
ajv.addFormat('text',/.*$/)
|
|
303
|
-
ajv.addFormat('html',/.*$/)
|
|
304
|
-
ajv.addFormat('documentno',/.*$/)
|
|
305
|
-
ajv.addFormat('money',/.*$/)
|
|
306
|
-
|
|
307
|
-
ajv.addKeyword({ keyword: 'x-foreignkey', schemaType: 'string' });
|
|
308
|
-
ajv.addKeyword({ keyword: 'x-simpleapp-config', schemaType: 'object' });
|
|
309
|
-
|
|
295
|
+
const ajv = getValidateService();
|
|
310
296
|
|
|
311
297
|
this.errorlist.value = {};
|
|
312
298
|
this.hook('pre-validation', this.data.value);
|
|
@@ -16,24 +16,14 @@ export default <Partial<Config>>{
|
|
|
16
16
|
"./layouts/*.{vue,js,ts,jsx,tsx,css}",
|
|
17
17
|
"./pages/**/*.{vue,js,ts,jsx,tsx}",
|
|
18
18
|
"./pages/*.{vue,js,ts,jsx,tsx}",
|
|
19
|
-
"./node_modules/primevue/**/*.{vue,js,ts,jsx,tsx}"
|
|
19
|
+
"./node_modules/primevue/**/*.{vue,js,ts,jsx,tsx}",
|
|
20
|
+
"./presets/**/*.{js,vue,ts}",
|
|
20
21
|
],
|
|
22
|
+
plugins: [require('tailwindcss-primeui')],
|
|
21
23
|
theme: {
|
|
22
24
|
extend:{
|
|
23
25
|
colors:{
|
|
24
|
-
|
|
25
|
-
'50': '#f0f9ff',
|
|
26
|
-
'100': '#e0f2fe',
|
|
27
|
-
'200': '#bae6fd',
|
|
28
|
-
'300': '#93c5fd',
|
|
29
|
-
'400': '#38bdf8',
|
|
30
|
-
'500': '#0ea5e9',
|
|
31
|
-
'600': '#0284c7',
|
|
32
|
-
'700': '#0369a1',
|
|
33
|
-
'800': '#075985',
|
|
34
|
-
'900': '#0c4a6e',
|
|
35
|
-
'950': '#082f49',
|
|
36
|
-
},
|
|
26
|
+
|
|
37
27
|
secondary:{
|
|
38
28
|
'50': '#f0fdf4',
|
|
39
29
|
'100': '#dcfce7',
|
|
@@ -78,6 +68,5 @@ export default <Partial<Config>>{
|
|
|
78
68
|
}
|
|
79
69
|
}
|
|
80
70
|
},
|
|
81
|
-
plugins: [],
|
|
82
71
|
darkMode: 'class',
|
|
83
72
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import Ajv from 'ajv';
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
import addFormats from 'ajv-formats';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import addErrors from 'ajv-errors';
|
|
7
|
+
|
|
8
|
+
export const getValidateService = (): Ajv => {
|
|
9
|
+
const ajv = new Ajv({ allErrors: true });
|
|
10
|
+
addFormats(ajv);
|
|
11
|
+
addErrors(ajv)
|
|
12
|
+
|
|
13
|
+
ajv.addFormat('tel',/^$|^\d{7,15}$/gm)
|
|
14
|
+
ajv.addFormat('text',/.*$/)
|
|
15
|
+
ajv.addFormat('html',/.*$/)
|
|
16
|
+
ajv.addFormat('documentno',/.*$/)
|
|
17
|
+
ajv.addFormat('money',/.*$/)
|
|
18
|
+
|
|
19
|
+
ajv.addKeyword({ keyword: 'x-foreignkey', schemaType: 'string' });
|
|
20
|
+
ajv.addKeyword({ keyword: 'x-simpleapp-config', schemaType: 'object' });
|
|
21
|
+
ajv.addKeyword({ keyword: 'example', schemaType: 'array' });
|
|
22
|
+
return ajv;
|
|
23
|
+
}
|
|
File without changes
|
/package/templates/nuxt/components/image/{ImageOrganization.vue.eta.vue → ImageOrganization.vue.eta}
RENAMED
|
File without changes
|
|
File without changes
|