@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,403 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'relative',
|
|
5
|
+
|
|
6
|
+
// Flex & Alignment
|
|
7
|
+
{ 'flex flex-col': props.scrollable && props.scrollHeight === 'flex' },
|
|
8
|
+
|
|
9
|
+
// Size
|
|
10
|
+
{ 'h-full': props.scrollable && props.scrollHeight === 'flex' }
|
|
11
|
+
]
|
|
12
|
+
}),
|
|
13
|
+
mask: {
|
|
14
|
+
class: [
|
|
15
|
+
// Position
|
|
16
|
+
'absolute',
|
|
17
|
+
'top-0 left-0',
|
|
18
|
+
'z-20',
|
|
19
|
+
|
|
20
|
+
// Flex & Alignment
|
|
21
|
+
'flex items-center justify-center',
|
|
22
|
+
|
|
23
|
+
// Size
|
|
24
|
+
'w-full h-full',
|
|
25
|
+
|
|
26
|
+
// Color
|
|
27
|
+
'bg-surface-100/40 dark:bg-surface-800/40',
|
|
28
|
+
|
|
29
|
+
// Transition
|
|
30
|
+
'transition duration-200'
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
loadingIcon: {
|
|
34
|
+
class: 'w-8 h-8 animate-spin'
|
|
35
|
+
},
|
|
36
|
+
tableContainer: ({ props }) => ({
|
|
37
|
+
class: [
|
|
38
|
+
{ relative: props.scrollable, 'flex flex-col grow': props.scrollable && props.scrollHeight === 'flex' },
|
|
39
|
+
|
|
40
|
+
// Size
|
|
41
|
+
{ 'h-full': props.scrollable && props.scrollHeight === 'flex' }
|
|
42
|
+
]
|
|
43
|
+
}),
|
|
44
|
+
header: ({ props }) => ({
|
|
45
|
+
class: [
|
|
46
|
+
'font-bold',
|
|
47
|
+
|
|
48
|
+
// Shape
|
|
49
|
+
props.showGridlines ? 'border-x border-t border-b-0' : 'border-y border-x-0',
|
|
50
|
+
|
|
51
|
+
// Spacing
|
|
52
|
+
'p-4',
|
|
53
|
+
|
|
54
|
+
// Color
|
|
55
|
+
'bg-surface-50 dark:bg-surface-800',
|
|
56
|
+
'border-surface-200 dark:border-surface-700',
|
|
57
|
+
'text-surface-700 dark:text-white/80'
|
|
58
|
+
]
|
|
59
|
+
}),
|
|
60
|
+
table: {
|
|
61
|
+
class: 'w-full border-spacing-0 border-separate'
|
|
62
|
+
},
|
|
63
|
+
thead: ({ context }) => ({
|
|
64
|
+
class: [
|
|
65
|
+
{
|
|
66
|
+
'bg-surface-50 dark:bg-surface-800 top-0 z-40 sticky': context.scrollable
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}),
|
|
70
|
+
tbody: ({ instance, context }) => ({
|
|
71
|
+
class: [
|
|
72
|
+
{
|
|
73
|
+
'sticky z-20': instance.frozenRow && context.scrollable
|
|
74
|
+
},
|
|
75
|
+
'bg-surface-50 dark:bg-surface-800'
|
|
76
|
+
]
|
|
77
|
+
}),
|
|
78
|
+
tfoot: ({ context }) => ({
|
|
79
|
+
class: [
|
|
80
|
+
{
|
|
81
|
+
'bg-surface-50 bottom-0 z-0': context.scrollable
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}),
|
|
85
|
+
footer: {
|
|
86
|
+
class: [
|
|
87
|
+
'font-bold',
|
|
88
|
+
|
|
89
|
+
// Shape
|
|
90
|
+
'border-t-0 border-b border-x-0',
|
|
91
|
+
|
|
92
|
+
// Spacing
|
|
93
|
+
'p-4',
|
|
94
|
+
|
|
95
|
+
// Color
|
|
96
|
+
'bg-surface-50 dark:bg-surface-800',
|
|
97
|
+
'border-surface-200 dark:border-surface-700',
|
|
98
|
+
'text-surface-700 dark:text-white/80'
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
column: {
|
|
102
|
+
headerCell: ({ context, props }) => ({
|
|
103
|
+
class: [
|
|
104
|
+
'font-bold',
|
|
105
|
+
|
|
106
|
+
// Position
|
|
107
|
+
{ 'sticky z-20 border-b': props.frozen || props.frozen === '' },
|
|
108
|
+
|
|
109
|
+
{ relative: context.resizable },
|
|
110
|
+
|
|
111
|
+
// Alignment
|
|
112
|
+
'text-left',
|
|
113
|
+
|
|
114
|
+
// Shape
|
|
115
|
+
{ 'first:border-l border-y border-r': context?.showGridlines },
|
|
116
|
+
'border-0 border-b border-solid',
|
|
117
|
+
|
|
118
|
+
// Spacing
|
|
119
|
+
context?.size === 'small' ? 'p-2' : context?.size === 'large' ? 'p-5' : 'p-4',
|
|
120
|
+
|
|
121
|
+
// Color
|
|
122
|
+
(props.sortable === '' || props.sortable) && context.sorted ? 'bg-highlight' : 'bg-surface-50 text-surface-700 dark:text-white/80 dark:bg-surface-800',
|
|
123
|
+
'border-surface-200 dark:border-surface-700 ',
|
|
124
|
+
|
|
125
|
+
// States
|
|
126
|
+
{ 'hover:bg-surface-100 dark:hover:bg-surface-400/30': (props.sortable === '' || props.sortable) && !context?.sorted },
|
|
127
|
+
'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',
|
|
128
|
+
|
|
129
|
+
// Transition
|
|
130
|
+
{ 'transition duration-200': props.sortable === '' || props.sortable },
|
|
131
|
+
|
|
132
|
+
// Misc
|
|
133
|
+
{ 'cursor-pointer': props.sortable === '' || props.sortable },
|
|
134
|
+
{
|
|
135
|
+
'overflow-hidden space-nowrap border-y bg-clip-padding': context.resizable // Resizable
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
}),
|
|
139
|
+
columnHeaderContent: {
|
|
140
|
+
class: 'flex items-center'
|
|
141
|
+
},
|
|
142
|
+
sort: ({ context }) => ({
|
|
143
|
+
class: [context.sorted ? 'text-primary-500' : 'text-surface-700', context.sorted ? 'dark:text-primary-400' : 'dark:text-white/80']
|
|
144
|
+
}),
|
|
145
|
+
bodyCell: ({ props, context, state, parent }) => ({
|
|
146
|
+
class: [
|
|
147
|
+
//Position
|
|
148
|
+
{ 'sticky box-border border-b': parent.instance.frozenRow },
|
|
149
|
+
{ 'sticky box-border border-b z-20': props.frozen || props.frozen === '' },
|
|
150
|
+
|
|
151
|
+
// Alignment
|
|
152
|
+
'text-left',
|
|
153
|
+
|
|
154
|
+
// Shape
|
|
155
|
+
'border-0 border-b border-solid',
|
|
156
|
+
{ 'first:border-l border-r border-b': context?.showGridlines },
|
|
157
|
+
{ 'bg-surface-0 dark:bg-surface-800': parent.instance.frozenRow || props.frozen || props.frozen === '' },
|
|
158
|
+
|
|
159
|
+
// Spacing
|
|
160
|
+
{ 'p-2': context?.size === 'small' && !state['d_editing'] },
|
|
161
|
+
{ 'p-5': context?.size === 'large' && !state['d_editing'] },
|
|
162
|
+
{ 'p-4': context?.size !== 'large' && context?.size !== 'small' && !state['d_editing'] },
|
|
163
|
+
{ 'py-[0.6rem] px-2': state['d_editing'] },
|
|
164
|
+
|
|
165
|
+
// Color
|
|
166
|
+
'border-surface-200 dark:border-surface-700',
|
|
167
|
+
|
|
168
|
+
{
|
|
169
|
+
'overflow-hidden whitespace-nowrap border-y bg-clip-padding': parent.instance?.$parentInstance?.$parentInstance?.resizableColumns // Resizable
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}),
|
|
173
|
+
footerCell: ({ context }) => ({
|
|
174
|
+
class: [
|
|
175
|
+
// Font
|
|
176
|
+
'font-bold',
|
|
177
|
+
|
|
178
|
+
// Alignment
|
|
179
|
+
'text-left',
|
|
180
|
+
|
|
181
|
+
// Shape
|
|
182
|
+
'border-0 border-b border-solid',
|
|
183
|
+
{ 'border-x border-y': context?.showGridlines },
|
|
184
|
+
|
|
185
|
+
// Spacing
|
|
186
|
+
context?.size === 'small' ? 'p-2' : context?.size === 'large' ? 'p-5' : 'p-4',
|
|
187
|
+
|
|
188
|
+
// Color
|
|
189
|
+
'border-surface-200 dark:border-surface-700',
|
|
190
|
+
'text-surface-700 dark:text-white/80',
|
|
191
|
+
'bg-surface-50 dark:bg-surface-800'
|
|
192
|
+
]
|
|
193
|
+
}),
|
|
194
|
+
sortIcon: ({ context }) => ({
|
|
195
|
+
class: ['ml-2', context.sorted ? 'text-inherit' : 'text-surface-700 dark:text-white/70']
|
|
196
|
+
}),
|
|
197
|
+
columnFilter: {
|
|
198
|
+
class: 'inline-flex items-center ml-auto'
|
|
199
|
+
},
|
|
200
|
+
filterOverlay: {
|
|
201
|
+
class: [
|
|
202
|
+
// Position
|
|
203
|
+
'absolute top-0 left-0',
|
|
204
|
+
|
|
205
|
+
// Shape
|
|
206
|
+
'border-0 dark:border',
|
|
207
|
+
'rounded-md',
|
|
208
|
+
'shadow-md',
|
|
209
|
+
|
|
210
|
+
// Size
|
|
211
|
+
'min-w-[12.5rem]',
|
|
212
|
+
|
|
213
|
+
// Color
|
|
214
|
+
'bg-surface-0 dark:bg-surface-800',
|
|
215
|
+
'text-surface-800 dark:text-white/80',
|
|
216
|
+
'dark:border-surface-700'
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
filterConstraintList: {
|
|
220
|
+
class: 'm-0 p-0 py-3 list-none'
|
|
221
|
+
},
|
|
222
|
+
filterConstraint: ({ context }) => ({
|
|
223
|
+
class: [
|
|
224
|
+
// Font
|
|
225
|
+
'font-normal',
|
|
226
|
+
'leading-none',
|
|
227
|
+
|
|
228
|
+
// Position
|
|
229
|
+
'relative',
|
|
230
|
+
|
|
231
|
+
// Shape
|
|
232
|
+
'border-0',
|
|
233
|
+
'rounded-none',
|
|
234
|
+
|
|
235
|
+
// Spacing
|
|
236
|
+
'm-0',
|
|
237
|
+
'py-3 px-5',
|
|
238
|
+
|
|
239
|
+
// Color
|
|
240
|
+
{ 'bg-surface-0 dark:bg-surface-800 text-surface-700 dark:text-white/80': !context?.highlighted },
|
|
241
|
+
{ 'bg-highlight': context?.highlighted },
|
|
242
|
+
|
|
243
|
+
//States
|
|
244
|
+
{ 'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context?.highlighted },
|
|
245
|
+
{ 'hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80': !context?.highlighted },
|
|
246
|
+
'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',
|
|
247
|
+
|
|
248
|
+
// Transitions
|
|
249
|
+
'transition-shadow',
|
|
250
|
+
'duration-200',
|
|
251
|
+
|
|
252
|
+
// Misc
|
|
253
|
+
'cursor-pointer',
|
|
254
|
+
'overflow-hidden',
|
|
255
|
+
'whitespace-nowrap'
|
|
256
|
+
]
|
|
257
|
+
}),
|
|
258
|
+
filterOperator: {
|
|
259
|
+
class: [
|
|
260
|
+
// Shape
|
|
261
|
+
'border-b border-solid',
|
|
262
|
+
'rounded-t-md',
|
|
263
|
+
|
|
264
|
+
// Color
|
|
265
|
+
'text-surface-700 dark:text-white/80',
|
|
266
|
+
'border-surface-200 dark:border-surface-800',
|
|
267
|
+
'bg-surface-0 dark:bg-surface-700',
|
|
268
|
+
'[&>[data-pc-name=pcfilteroperatordropdown]]:w-full'
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
filter: ({ instance }) => ({
|
|
272
|
+
class: [{ 'flex items-center w-full gap-2': instance.display === 'row', 'inline-flex ml-auto': instance.display === 'menu' }]
|
|
273
|
+
}),
|
|
274
|
+
filterRuleList: 'flex flex-col gap-2',
|
|
275
|
+
filterRule: 'flex flex-col gap-2',
|
|
276
|
+
filterButtonbar: 'flex items-center justify-between p-0',
|
|
277
|
+
filterAddButtonContainer: '[&>[data-pc-name=pcfilteraddrulebutton]]:w-full',
|
|
278
|
+
rowToggleButton: {
|
|
279
|
+
class: [
|
|
280
|
+
'relative',
|
|
281
|
+
|
|
282
|
+
// Flex & Alignment
|
|
283
|
+
'inline-flex items-center justify-center',
|
|
284
|
+
'text-left',
|
|
285
|
+
|
|
286
|
+
// Spacing
|
|
287
|
+
'm-0 p-0',
|
|
288
|
+
|
|
289
|
+
// Size
|
|
290
|
+
'w-8 h-8',
|
|
291
|
+
|
|
292
|
+
// Shape
|
|
293
|
+
'border-0 rounded-full',
|
|
294
|
+
|
|
295
|
+
// Color
|
|
296
|
+
'text-surface-500 dark:text-white/70',
|
|
297
|
+
'bg-transparent',
|
|
298
|
+
'focus-visible:outline-none focus-visible:outline-offset-0',
|
|
299
|
+
'focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
|
|
300
|
+
|
|
301
|
+
// Transition
|
|
302
|
+
'transition duration-200',
|
|
303
|
+
|
|
304
|
+
// Misc
|
|
305
|
+
'overflow-hidden',
|
|
306
|
+
'cursor-pointer select-none'
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
columnResizer: {
|
|
310
|
+
class: [
|
|
311
|
+
'block',
|
|
312
|
+
|
|
313
|
+
// Position
|
|
314
|
+
'absolute top-0 right-0',
|
|
315
|
+
|
|
316
|
+
// Sizing
|
|
317
|
+
'w-2 h-full',
|
|
318
|
+
|
|
319
|
+
// Spacing
|
|
320
|
+
'm-0 p-0',
|
|
321
|
+
|
|
322
|
+
// Color
|
|
323
|
+
'border border-transparent',
|
|
324
|
+
|
|
325
|
+
// Misc
|
|
326
|
+
'cursor-col-resize'
|
|
327
|
+
]
|
|
328
|
+
},
|
|
329
|
+
transition: {
|
|
330
|
+
class: 'p-4 flex flex-col gap-2',
|
|
331
|
+
enterFromClass: 'opacity-0 scale-y-[0.8]',
|
|
332
|
+
enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
|
|
333
|
+
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
|
|
334
|
+
leaveToClass: 'opacity-0'
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
bodyRow: ({ context, props }) => ({
|
|
338
|
+
class: [
|
|
339
|
+
// Color
|
|
340
|
+
'dark:text-white/80',
|
|
341
|
+
{ 'bg-highlight': context.selected },
|
|
342
|
+
{ 'bg-surface-0 text-surface-600 dark:bg-surface-800': !context.selected },
|
|
343
|
+
{ 'font-bold bg-surface-0 dark:bg-surface-800 z-20': props.frozenRow },
|
|
344
|
+
{ 'odd:bg-surface-0 odd:text-surface-600 dark:odd:bg-surface-800 even:bg-surface-50 even:text-surface-600 dark:even:bg-surface-900/50': context.stripedRows },
|
|
345
|
+
|
|
346
|
+
// State
|
|
347
|
+
{ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 ring-inset dark:focus:ring-primary-300/50': context.selectable },
|
|
348
|
+
{ 'hover:bg-surface-300/20 hover:text-surface-600': props.selectionMode && !context.selected },
|
|
349
|
+
|
|
350
|
+
// Transition
|
|
351
|
+
{ 'transition duration-200': (props.selectionMode && !context.selected) || props.rowHover },
|
|
352
|
+
|
|
353
|
+
// Misc
|
|
354
|
+
{ 'cursor-pointer': props.selectionMode }
|
|
355
|
+
]
|
|
356
|
+
}),
|
|
357
|
+
rowExpansion: {
|
|
358
|
+
class: 'bg-surface-0 dark:bg-surface-800 text-surface-600 dark:text-white/80'
|
|
359
|
+
},
|
|
360
|
+
rowGroupHeader: {
|
|
361
|
+
class: ['sticky z-20', 'bg-surface-0 text-surface-600 dark:text-white/70', 'dark:bg-surface-800']
|
|
362
|
+
},
|
|
363
|
+
rowGroupFooter: {
|
|
364
|
+
class: ['sticky z-20', 'bg-surface-0 text-surface-600 dark:text-white/70', 'dark:bg-surface-800']
|
|
365
|
+
},
|
|
366
|
+
rowToggleButton: {
|
|
367
|
+
class: [
|
|
368
|
+
'relative',
|
|
369
|
+
|
|
370
|
+
// Flex & Alignment
|
|
371
|
+
'inline-flex items-center justify-center',
|
|
372
|
+
'text-left',
|
|
373
|
+
|
|
374
|
+
// Spacing
|
|
375
|
+
'm-0 p-0',
|
|
376
|
+
|
|
377
|
+
// Size
|
|
378
|
+
'w-8 h-8',
|
|
379
|
+
|
|
380
|
+
// Shape
|
|
381
|
+
'border-0 rounded-full',
|
|
382
|
+
|
|
383
|
+
// Color
|
|
384
|
+
'text-surface-500 dark:text-white/70',
|
|
385
|
+
'bg-transparent',
|
|
386
|
+
'focus-visible:outline-none focus-visible:outline-offset-0',
|
|
387
|
+
'focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
|
|
388
|
+
|
|
389
|
+
// Transition
|
|
390
|
+
'transition duration-200',
|
|
391
|
+
|
|
392
|
+
// Misc
|
|
393
|
+
'overflow-hidden',
|
|
394
|
+
'cursor-pointer select-none'
|
|
395
|
+
]
|
|
396
|
+
},
|
|
397
|
+
rowToggleIcon: {
|
|
398
|
+
class: 'inline-block w-4 h-4'
|
|
399
|
+
},
|
|
400
|
+
columnResizeIndicator: {
|
|
401
|
+
class: 'absolute hidden w-[2px] z-20 bg-primary'
|
|
402
|
+
}
|
|
403
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
content: {
|
|
3
|
+
class: [
|
|
4
|
+
// Spacing
|
|
5
|
+
'p-0',
|
|
6
|
+
|
|
7
|
+
// Shape
|
|
8
|
+
'border-0',
|
|
9
|
+
|
|
10
|
+
// Color
|
|
11
|
+
'text-surface-700 dark:text-white/80',
|
|
12
|
+
'bg-surface-0 dark:bg-surface-800'
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
header: {
|
|
16
|
+
class: [
|
|
17
|
+
'font-bold',
|
|
18
|
+
|
|
19
|
+
// Spacing
|
|
20
|
+
'p-4',
|
|
21
|
+
|
|
22
|
+
// Color
|
|
23
|
+
'text-surface-800 dark:text-white/80',
|
|
24
|
+
'bg-surface-50 dark:bg-surface-800',
|
|
25
|
+
'border-surface-200 dark:border-surface-700 border-y'
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
};
|