@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,77 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
contentContainer: {
|
|
3
|
+
class: [
|
|
4
|
+
// Size & Position
|
|
5
|
+
'h-full w-full',
|
|
6
|
+
|
|
7
|
+
// Layering
|
|
8
|
+
'z-[1]',
|
|
9
|
+
|
|
10
|
+
// Spacing
|
|
11
|
+
'overflow-hidden',
|
|
12
|
+
|
|
13
|
+
// Misc
|
|
14
|
+
'relative float-left'
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
content: {
|
|
18
|
+
class: [
|
|
19
|
+
// Size & Spacing
|
|
20
|
+
'h-[calc(100%+18px)] w-[calc(100%+18px)] pr-[18px] pb-[18px] pl-0 pt-0',
|
|
21
|
+
|
|
22
|
+
// Overflow & Scrollbar
|
|
23
|
+
'overflow-scroll scrollbar-none',
|
|
24
|
+
|
|
25
|
+
// Box Model
|
|
26
|
+
'box-border',
|
|
27
|
+
|
|
28
|
+
// Position
|
|
29
|
+
'relative',
|
|
30
|
+
|
|
31
|
+
// Webkit Specific
|
|
32
|
+
'[&::-webkit-scrollbar]:hidden'
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
barX: {
|
|
36
|
+
class: [
|
|
37
|
+
// Size & Position
|
|
38
|
+
'h-[9px] bottom-0',
|
|
39
|
+
|
|
40
|
+
// Appearance
|
|
41
|
+
'bg-surface-50 dark:bg-surface-700 rounded',
|
|
42
|
+
|
|
43
|
+
// Interactivity
|
|
44
|
+
'cursor-pointer',
|
|
45
|
+
|
|
46
|
+
// Visibility & Layering
|
|
47
|
+
'invisible z-20',
|
|
48
|
+
|
|
49
|
+
// Transition
|
|
50
|
+
'transition duration-[250ms] ease-linear',
|
|
51
|
+
|
|
52
|
+
// Misc
|
|
53
|
+
'relative'
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
barY: {
|
|
57
|
+
class: [
|
|
58
|
+
// Size & Position
|
|
59
|
+
'w-[9px] top-0',
|
|
60
|
+
|
|
61
|
+
// Appearance
|
|
62
|
+
'bg-surface-50 dark:bg-surface-700 rounded',
|
|
63
|
+
|
|
64
|
+
// Interactivity
|
|
65
|
+
'cursor-pointer',
|
|
66
|
+
|
|
67
|
+
// Visibility & Layering
|
|
68
|
+
'z-20',
|
|
69
|
+
|
|
70
|
+
// Transition
|
|
71
|
+
'transition duration-[250ms] ease-linear',
|
|
72
|
+
|
|
73
|
+
// Misc
|
|
74
|
+
'relative'
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
button: ({ props }) => ({
|
|
3
|
+
root: {
|
|
4
|
+
class: [
|
|
5
|
+
// Flex & Alignment
|
|
6
|
+
'flex items-center justify-center',
|
|
7
|
+
|
|
8
|
+
// Positioning
|
|
9
|
+
{
|
|
10
|
+
'!sticky flex ml-auto': props.target === 'parent',
|
|
11
|
+
'!fixed': props.target === 'window'
|
|
12
|
+
},
|
|
13
|
+
'bottom-[20px] right-[20px]',
|
|
14
|
+
'h-12 w-12 rounded-full shadow-md',
|
|
15
|
+
'text-white dark:text-surface-900 bg-surface-500 dark:bg-surface-400',
|
|
16
|
+
'hover:bg-surface-600 dark:hover:bg-surface-300'
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
}),
|
|
20
|
+
transition: {
|
|
21
|
+
enterFromClass: 'opacity-0',
|
|
22
|
+
enterActiveClass: 'transition-opacity duration-150',
|
|
23
|
+
leaveActiveClass: 'transition-opacity duration-150',
|
|
24
|
+
leaveToClass: 'opacity-0'
|
|
25
|
+
}
|
|
26
|
+
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props, state, parent }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Display and Position
|
|
5
|
+
'inline-flex',
|
|
6
|
+
'relative',
|
|
7
|
+
|
|
8
|
+
// Shape
|
|
9
|
+
{ 'rounded-md': parent.instance.$name !== 'InputGroup' },
|
|
10
|
+
{ 'first:rounded-l-md rounded-none last:rounded-r-md': parent.instance.$name == 'InputGroup' },
|
|
11
|
+
{ 'border-0 border-y border-l last:border-r': parent.instance.$name == 'InputGroup' },
|
|
12
|
+
{ 'first:ml-0 ml-[-1px]': parent.instance.$name == 'InputGroup' && !props.showButtons },
|
|
13
|
+
|
|
14
|
+
// Color and Background
|
|
15
|
+
'bg-surface-0 dark:bg-surface-900',
|
|
16
|
+
|
|
17
|
+
'border border-surface-300',
|
|
18
|
+
{ 'dark:border-surface-700': parent.instance.$name != 'InputGroup' },
|
|
19
|
+
{ 'dark:border-surface-600': parent.instance.$name == 'InputGroup' },
|
|
20
|
+
{ 'border-surface-300 dark:border-surface-600': !props.invalid },
|
|
21
|
+
|
|
22
|
+
// Invalid State
|
|
23
|
+
{ 'border-red-500 dark:border-red-400': props.invalid },
|
|
24
|
+
|
|
25
|
+
// Transitions
|
|
26
|
+
'transition-all',
|
|
27
|
+
'duration-200',
|
|
28
|
+
|
|
29
|
+
// States
|
|
30
|
+
{ 'hover:border-primary': !props.invalid },
|
|
31
|
+
{ 'outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50': state.focused },
|
|
32
|
+
|
|
33
|
+
// Misc
|
|
34
|
+
'cursor-pointer',
|
|
35
|
+
'select-none',
|
|
36
|
+
{ 'opacity-60': props.disabled, 'pointer-events-none': props.disabled, 'cursor-default': props.disabled }
|
|
37
|
+
]
|
|
38
|
+
}),
|
|
39
|
+
label: ({ props, parent }) => ({
|
|
40
|
+
class: [
|
|
41
|
+
//Font
|
|
42
|
+
'leading-[normal]',
|
|
43
|
+
|
|
44
|
+
// Display
|
|
45
|
+
'block',
|
|
46
|
+
'flex-auto',
|
|
47
|
+
|
|
48
|
+
// Color and Background
|
|
49
|
+
'bg-transparent',
|
|
50
|
+
'border-0',
|
|
51
|
+
{ 'text-surface-800 dark:text-white/80': props.modelValue != undefined, 'text-surface-400 dark:text-surface-500': props.modelValue == undefined },
|
|
52
|
+
'placeholder:text-surface-400 dark:placeholder:text-surface-500',
|
|
53
|
+
|
|
54
|
+
// Sizing and Spacing
|
|
55
|
+
'w-[1%]',
|
|
56
|
+
'p-3',
|
|
57
|
+
{ 'pr-7': props.showClear },
|
|
58
|
+
|
|
59
|
+
//Shape
|
|
60
|
+
'rounded-none',
|
|
61
|
+
|
|
62
|
+
// Transitions
|
|
63
|
+
'transition',
|
|
64
|
+
'duration-200',
|
|
65
|
+
|
|
66
|
+
// States
|
|
67
|
+
'focus:outline-none focus:shadow-none',
|
|
68
|
+
|
|
69
|
+
// Filled State *for FloatLabel
|
|
70
|
+
{ filled: parent.instance?.$name == 'FloatLabel' && props.modelValue !== null },
|
|
71
|
+
|
|
72
|
+
// Misc
|
|
73
|
+
'relative',
|
|
74
|
+
'cursor-pointer',
|
|
75
|
+
'overflow-hidden overflow-ellipsis',
|
|
76
|
+
'whitespace-nowrap',
|
|
77
|
+
'appearance-none'
|
|
78
|
+
]
|
|
79
|
+
}),
|
|
80
|
+
dropdown: {
|
|
81
|
+
class: [
|
|
82
|
+
// Flexbox
|
|
83
|
+
'flex items-center justify-center',
|
|
84
|
+
'shrink-0',
|
|
85
|
+
|
|
86
|
+
// Color and Background
|
|
87
|
+
'bg-transparent',
|
|
88
|
+
'text-surface-500',
|
|
89
|
+
|
|
90
|
+
// Size
|
|
91
|
+
'w-12',
|
|
92
|
+
|
|
93
|
+
// Shape
|
|
94
|
+
'rounded-tr-md',
|
|
95
|
+
'rounded-br-md'
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
overlay: {
|
|
99
|
+
class: [
|
|
100
|
+
// Position
|
|
101
|
+
'absolute top-0 left-0',
|
|
102
|
+
|
|
103
|
+
// Shape
|
|
104
|
+
'border-0 dark:border',
|
|
105
|
+
'rounded-md',
|
|
106
|
+
'shadow-md',
|
|
107
|
+
|
|
108
|
+
// Color
|
|
109
|
+
'bg-surface-0 dark:bg-surface-800',
|
|
110
|
+
'text-surface-800 dark:text-white/80',
|
|
111
|
+
'dark:border-surface-700'
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
listContainer: {
|
|
115
|
+
class: [
|
|
116
|
+
// Sizing
|
|
117
|
+
'max-h-[200px]',
|
|
118
|
+
|
|
119
|
+
// Misc
|
|
120
|
+
'overflow-auto'
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
list: {
|
|
124
|
+
class: 'py-3 list-none m-0'
|
|
125
|
+
},
|
|
126
|
+
option: ({ context }) => ({
|
|
127
|
+
class: [
|
|
128
|
+
// Font
|
|
129
|
+
'font-normal',
|
|
130
|
+
'leading-none',
|
|
131
|
+
|
|
132
|
+
// Position
|
|
133
|
+
'relative',
|
|
134
|
+
'flex items-center',
|
|
135
|
+
|
|
136
|
+
// Shape
|
|
137
|
+
'border-0',
|
|
138
|
+
'rounded-none',
|
|
139
|
+
|
|
140
|
+
// Spacing
|
|
141
|
+
'm-0',
|
|
142
|
+
'py-3 px-5',
|
|
143
|
+
|
|
144
|
+
// Colors
|
|
145
|
+
{
|
|
146
|
+
'text-surface-700 dark:text-white/80': !context.focused && !context.selected,
|
|
147
|
+
'bg-surface-200 dark:bg-surface-600/60': context.focused && !context.selected,
|
|
148
|
+
'text-surface-700 dark:text-white/80': context.focused && !context.selected,
|
|
149
|
+
'bg-highlight': context.selected
|
|
150
|
+
},
|
|
151
|
+
|
|
152
|
+
//States
|
|
153
|
+
{ 'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context.focused && !context.selected },
|
|
154
|
+
{ 'hover:bg-highlight-emphasis': context.selected },
|
|
155
|
+
'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',
|
|
156
|
+
|
|
157
|
+
// Transitions
|
|
158
|
+
'transition-shadow',
|
|
159
|
+
'duration-200',
|
|
160
|
+
|
|
161
|
+
// Misc
|
|
162
|
+
{ 'pointer-events-none cursor-default': context.disabled },
|
|
163
|
+
{ 'cursor-pointer': !context.disabled },
|
|
164
|
+
'overflow-hidden',
|
|
165
|
+
'whitespace-nowrap'
|
|
166
|
+
]
|
|
167
|
+
}),
|
|
168
|
+
optionGroup: {
|
|
169
|
+
class: [
|
|
170
|
+
//Font
|
|
171
|
+
'font-bold',
|
|
172
|
+
|
|
173
|
+
// Spacing
|
|
174
|
+
'm-0',
|
|
175
|
+
'py-3 px-5',
|
|
176
|
+
|
|
177
|
+
// Color
|
|
178
|
+
'text-surface-800 dark:text-white/80',
|
|
179
|
+
'bg-surface-0 dark:bg-surface-600/80',
|
|
180
|
+
|
|
181
|
+
// Misc
|
|
182
|
+
'cursor-auto'
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
optionCheckIcon: 'relative -ms-1.5 me-1.5 text-surface-700 dark:text-white/80 w-4 h-4',
|
|
186
|
+
optionBlankIcon: 'w-4 h-4',
|
|
187
|
+
emptyMessage: {
|
|
188
|
+
class: [
|
|
189
|
+
// Font
|
|
190
|
+
'leading-none',
|
|
191
|
+
|
|
192
|
+
// Spacing
|
|
193
|
+
'py-3 px-5',
|
|
194
|
+
|
|
195
|
+
// Color
|
|
196
|
+
'text-surface-800 dark:text-white/80',
|
|
197
|
+
'bg-transparent'
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
header: {
|
|
201
|
+
class: [
|
|
202
|
+
// Spacing
|
|
203
|
+
'py-3 px-5',
|
|
204
|
+
'm-0',
|
|
205
|
+
|
|
206
|
+
//Shape
|
|
207
|
+
'border-b',
|
|
208
|
+
'rounded-tl-md',
|
|
209
|
+
'rounded-tr-md',
|
|
210
|
+
|
|
211
|
+
// Color
|
|
212
|
+
'text-surface-700 dark:text-white/80',
|
|
213
|
+
'bg-surface-100 dark:bg-surface-800',
|
|
214
|
+
'border-surface-300 dark:border-surface-700'
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
clearIcon: {
|
|
218
|
+
class: [
|
|
219
|
+
// Color
|
|
220
|
+
'text-surface-500',
|
|
221
|
+
|
|
222
|
+
// Position
|
|
223
|
+
'absolute',
|
|
224
|
+
'top-1/2',
|
|
225
|
+
'right-12',
|
|
226
|
+
|
|
227
|
+
// Spacing
|
|
228
|
+
'-mt-2'
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
loadingIcon: {
|
|
232
|
+
class: 'text-surface-400 dark:text-surface-500 animate-spin'
|
|
233
|
+
},
|
|
234
|
+
transition: {
|
|
235
|
+
enterFromClass: 'opacity-0 scale-y-[0.8]',
|
|
236
|
+
enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
|
|
237
|
+
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
|
|
238
|
+
leaveToClass: 'opacity-0'
|
|
239
|
+
}
|
|
240
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'inline-flex select-none align-bottom outline-transparent',
|
|
5
|
+
'border border-transparent rounded-md [&>button]:rounded-none',
|
|
6
|
+
'[&>button:first-child]:border-r-none [&>button:first-child]:rounded-r-none [&>button:first-child]:rounded-tl-md [&>button:first-child]:rounded-bl-md',
|
|
7
|
+
'[&>button:last-child]:border-l-none [&>button:first-child]:rounded-l-none [&>button:last-child]:rounded-tr-md [&>button:last-child]:rounded-br-md',
|
|
8
|
+
|
|
9
|
+
// Invalid State
|
|
10
|
+
{
|
|
11
|
+
'border-red-500 dark:border-red-400': props.invalid,
|
|
12
|
+
'border-surface-100 dark:border-surface-950': !props.invalid
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
})
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'overflow-hidden',
|
|
5
|
+
{
|
|
6
|
+
'animate-pulse': props.animation !== 'none'
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
// Round
|
|
10
|
+
{ 'rounded-full': props.shape === 'circle', 'rounded-md': props.shape !== 'circle' },
|
|
11
|
+
|
|
12
|
+
// Colors
|
|
13
|
+
'bg-surface-200 dark:bg-surface-700'
|
|
14
|
+
]
|
|
15
|
+
})
|
|
16
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'relative',
|
|
5
|
+
|
|
6
|
+
// Size
|
|
7
|
+
{ 'h-1 w-60': props.orientation == 'horizontal', 'w-1 h-56': props.orientation == 'vertical' },
|
|
8
|
+
|
|
9
|
+
// Shape
|
|
10
|
+
'border-0',
|
|
11
|
+
|
|
12
|
+
// Colors
|
|
13
|
+
'bg-surface-100 dark:bg-surface-700',
|
|
14
|
+
|
|
15
|
+
// States
|
|
16
|
+
{ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }
|
|
17
|
+
]
|
|
18
|
+
}),
|
|
19
|
+
range: ({ props }) => ({
|
|
20
|
+
class: [
|
|
21
|
+
// Position
|
|
22
|
+
'block absolute',
|
|
23
|
+
{
|
|
24
|
+
'top-0 left-0': props.orientation == 'horizontal',
|
|
25
|
+
'bottom-0 left-0': props.orientation == 'vertical'
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
//Size
|
|
29
|
+
{
|
|
30
|
+
'h-full': props.orientation == 'horizontal',
|
|
31
|
+
'w-full': props.orientation == 'vertical'
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
// Colors
|
|
35
|
+
'bg-primary'
|
|
36
|
+
]
|
|
37
|
+
}),
|
|
38
|
+
handle: ({ props }) => ({
|
|
39
|
+
class: [
|
|
40
|
+
'block',
|
|
41
|
+
|
|
42
|
+
// Size
|
|
43
|
+
'h-[1.143rem]',
|
|
44
|
+
'w-[1.143rem]',
|
|
45
|
+
{
|
|
46
|
+
'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
|
|
47
|
+
'left-[50%] mb-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'vertical'
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
// Shape
|
|
51
|
+
'rounded-full',
|
|
52
|
+
'border-2',
|
|
53
|
+
|
|
54
|
+
// Colors
|
|
55
|
+
'bg-surface-0 dark:bg-surface-600',
|
|
56
|
+
'border-primary',
|
|
57
|
+
|
|
58
|
+
// States
|
|
59
|
+
'hover:bg-primary-emphasis',
|
|
60
|
+
'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring',
|
|
61
|
+
'ring-primary-400/50 dark:ring-primary-300/50',
|
|
62
|
+
|
|
63
|
+
// Transitions
|
|
64
|
+
'transition duration-200',
|
|
65
|
+
|
|
66
|
+
// Misc
|
|
67
|
+
'cursor-grab',
|
|
68
|
+
'touch-action-none'
|
|
69
|
+
]
|
|
70
|
+
}),
|
|
71
|
+
startHandler: ({ props }) => ({
|
|
72
|
+
class: [
|
|
73
|
+
'block',
|
|
74
|
+
|
|
75
|
+
// Size
|
|
76
|
+
'h-[1.143rem]',
|
|
77
|
+
'w-[1.143rem]',
|
|
78
|
+
{
|
|
79
|
+
'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
|
|
80
|
+
'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical'
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
// Shape
|
|
84
|
+
'rounded-full',
|
|
85
|
+
'border-2',
|
|
86
|
+
|
|
87
|
+
// Colors
|
|
88
|
+
'bg-surface-0 dark:bg-surface-600',
|
|
89
|
+
'border-primary',
|
|
90
|
+
|
|
91
|
+
// States
|
|
92
|
+
'hover:bg-primary-emphasis',
|
|
93
|
+
'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring',
|
|
94
|
+
'focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
|
|
95
|
+
|
|
96
|
+
// Transitions
|
|
97
|
+
'transition duration-200',
|
|
98
|
+
|
|
99
|
+
// Misc
|
|
100
|
+
'cursor-grab',
|
|
101
|
+
'touch-action-none'
|
|
102
|
+
]
|
|
103
|
+
}),
|
|
104
|
+
endHandler: ({ props }) => ({
|
|
105
|
+
class: [
|
|
106
|
+
'block',
|
|
107
|
+
|
|
108
|
+
// Size
|
|
109
|
+
'h-[1.143rem]',
|
|
110
|
+
'w-[1.143rem]',
|
|
111
|
+
{
|
|
112
|
+
'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
|
|
113
|
+
'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical'
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
// Shape
|
|
117
|
+
'rounded-full',
|
|
118
|
+
'border-2',
|
|
119
|
+
|
|
120
|
+
// Colors
|
|
121
|
+
'bg-surface-0 dark:bg-surface-600',
|
|
122
|
+
'border-primary',
|
|
123
|
+
|
|
124
|
+
// States
|
|
125
|
+
'hover:bg-primary-emphasis',
|
|
126
|
+
'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring',
|
|
127
|
+
'focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
|
|
128
|
+
|
|
129
|
+
// Transitions
|
|
130
|
+
'transition duration-200',
|
|
131
|
+
|
|
132
|
+
// Misc
|
|
133
|
+
'cursor-grab',
|
|
134
|
+
'touch-action-none'
|
|
135
|
+
]
|
|
136
|
+
})
|
|
137
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ state }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'static flex gap-2',
|
|
5
|
+
{
|
|
6
|
+
'[&_[data-pc-name=pcbutton]]:rotate-45': state.d_visible,
|
|
7
|
+
'[&_[data-pc-name=pcbutton]]:rotate-0': !state.d_visible
|
|
8
|
+
}
|
|
9
|
+
]
|
|
10
|
+
}),
|
|
11
|
+
list: {
|
|
12
|
+
class: [
|
|
13
|
+
// Spacing
|
|
14
|
+
'm-0 p-0',
|
|
15
|
+
|
|
16
|
+
// Layout & Flexbox
|
|
17
|
+
'list-none flex items-center justify-center',
|
|
18
|
+
|
|
19
|
+
// Transitions
|
|
20
|
+
'transition delay-200',
|
|
21
|
+
|
|
22
|
+
// Z-Index (Positioning)
|
|
23
|
+
'z-20'
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
item: ({ props, context }) => ({
|
|
27
|
+
class: [
|
|
28
|
+
'transform transition-transform duration-200 ease-out transition-opacity duration-800',
|
|
29
|
+
|
|
30
|
+
// Conditional Appearance
|
|
31
|
+
context.hidden ? 'opacity-0 scale-0' : 'opacity-100 scale-100',
|
|
32
|
+
|
|
33
|
+
// Conditional Spacing
|
|
34
|
+
{
|
|
35
|
+
'my-1 first:mb-2': props.direction == 'up' && props.type == 'linear',
|
|
36
|
+
'my-1 first:mt-2': props.direction == 'down' && props.type == 'linear',
|
|
37
|
+
'mx-1 first:mr-2': props.direction == 'left' && props.type == 'linear',
|
|
38
|
+
'mx-1 first:ml-2': props.direction == 'right' && props.type == 'linear'
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
// Conditional Positioning
|
|
42
|
+
{ absolute: props.type !== 'linear' }
|
|
43
|
+
]
|
|
44
|
+
}),
|
|
45
|
+
mask: ({ state }) => ({
|
|
46
|
+
class: [
|
|
47
|
+
// Base Styles
|
|
48
|
+
'absolute left-0 top-0 w-full h-full transition-opacity duration-250 ease-in-out bg-black/40 z-0',
|
|
49
|
+
|
|
50
|
+
// Conditional Appearance
|
|
51
|
+
{
|
|
52
|
+
'opacity-0 pointer-events-none': !state.d_visible,
|
|
53
|
+
'opacity-100 transition-opacity duration-400 ease-in-out': state.d_visible
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
})
|
|
57
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Flexbox and Position
|
|
5
|
+
'inline-flex',
|
|
6
|
+
'relative',
|
|
7
|
+
|
|
8
|
+
// Shape
|
|
9
|
+
'rounded-md',
|
|
10
|
+
{ 'shadow-lg': props.raised },
|
|
11
|
+
|
|
12
|
+
'[&>[data-pc-name=pcbutton]]:rounded-tr-none',
|
|
13
|
+
'[&>[data-pc-name=pcbutton]]:rounded-br-none',
|
|
14
|
+
'[&>[data-pc-name=pcdropdown]]:rounded-tl-none',
|
|
15
|
+
'[&>[data-pc-name=pcdropdown]]:rounded-bl-none',
|
|
16
|
+
'[&>[data-pc-name=pcmenu]]:min-w-full'
|
|
17
|
+
]
|
|
18
|
+
})
|
|
19
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ context }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Colors
|
|
5
|
+
'bg-surface-0',
|
|
6
|
+
'dark:bg-surface-900',
|
|
7
|
+
'text-surface-700',
|
|
8
|
+
'dark:text-surface-0/80',
|
|
9
|
+
|
|
10
|
+
// Shape
|
|
11
|
+
'rounded-lg',
|
|
12
|
+
|
|
13
|
+
// Borders (Conditional)
|
|
14
|
+
{ 'border border-solid border-surface-50 dark:border-surface-700': !context.nested },
|
|
15
|
+
|
|
16
|
+
// Nested
|
|
17
|
+
{ 'flex grow border-0': context.nested }
|
|
18
|
+
]
|
|
19
|
+
}),
|
|
20
|
+
|
|
21
|
+
gutter: ({ props }) => ({
|
|
22
|
+
class: [
|
|
23
|
+
// Flexbox
|
|
24
|
+
'flex',
|
|
25
|
+
'items-center',
|
|
26
|
+
'justify-center',
|
|
27
|
+
'shrink-0',
|
|
28
|
+
|
|
29
|
+
// Colors
|
|
30
|
+
'bg-surface-50',
|
|
31
|
+
'dark:bg-surface-800',
|
|
32
|
+
|
|
33
|
+
// Transitions
|
|
34
|
+
'transition-all',
|
|
35
|
+
'duration-200',
|
|
36
|
+
|
|
37
|
+
// Misc
|
|
38
|
+
{
|
|
39
|
+
'cursor-col-resize': props.layout == 'horizontal',
|
|
40
|
+
'cursor-row-resize': props.layout !== 'horizontal'
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}),
|
|
44
|
+
gutterhandler: ({ props }) => ({
|
|
45
|
+
class: [
|
|
46
|
+
// Colors
|
|
47
|
+
'bg-surface-100',
|
|
48
|
+
'dark:bg-surface-600',
|
|
49
|
+
|
|
50
|
+
// Transitions
|
|
51
|
+
'transition-all',
|
|
52
|
+
'duration-200',
|
|
53
|
+
|
|
54
|
+
// Sizing (Conditional)
|
|
55
|
+
{
|
|
56
|
+
'h-7': props.layout == 'horizontal',
|
|
57
|
+
'w-7 h-2': props.layout !== 'horizontal'
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
})
|
|
61
|
+
};
|