@simitgroup/simpleapp-generator 1.6.6-i-alpha → 1.6.6-k-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.
Files changed (239) hide show
  1. package/ReleaseNote.md +7 -0
  2. package/dist/buildinschemas/docnoformat.js +6 -6
  3. package/dist/buildinschemas/docnoformat.js.map +1 -1
  4. package/dist/buildinschemas/documentevent.js +1 -1
  5. package/dist/buildinschemas/documentevent.js.map +1 -1
  6. package/dist/buildinschemas/organization.js +1 -1
  7. package/dist/buildinschemas/organization.js.map +1 -1
  8. package/dist/buildinschemas/tenant.js +1 -1
  9. package/dist/buildinschemas/tenant.js.map +1 -1
  10. package/dist/buildinschemas/user.js +2 -2
  11. package/dist/buildinschemas/user.js.map +1 -1
  12. package/dist/buildinschemas/webhook.d.ts.map +1 -1
  13. package/dist/buildinschemas/webhook.js +1 -0
  14. package/dist/buildinschemas/webhook.js.map +1 -1
  15. package/dist/framework.d.ts.map +1 -1
  16. package/dist/framework.js +30 -3
  17. package/dist/framework.js.map +1 -1
  18. package/dist/generate.d.ts.map +1 -1
  19. package/dist/generate.js +21 -20
  20. package/dist/generate.js.map +1 -1
  21. package/dist/index.js +0 -0
  22. package/dist/processors/jrxmlbuilder.js +3 -3
  23. package/dist/processors/jrxmlbuilder.js.map +1 -1
  24. package/dist/processors/jsonschemabuilder.d.ts.map +1 -1
  25. package/dist/processors/jsonschemabuilder.js +17 -10
  26. package/dist/processors/jsonschemabuilder.js.map +1 -1
  27. package/dist/type.d.ts +1 -1
  28. package/dist/type.d.ts.map +1 -1
  29. package/package.json +2 -3
  30. package/reset-install.sh +3 -0
  31. package/src/buildinschemas/docnoformat.ts +6 -6
  32. package/src/buildinschemas/documentevent.ts +1 -1
  33. package/src/buildinschemas/organization.ts +1 -1
  34. package/src/buildinschemas/tenant.ts +1 -1
  35. package/src/buildinschemas/user.ts +2 -2
  36. package/src/buildinschemas/webhook.ts +1 -0
  37. package/src/framework.ts +33 -5
  38. package/src/generate.ts +22 -20
  39. package/src/processors/jrxmlbuilder.ts +3 -3
  40. package/src/processors/jsonschemabuilder.ts +27 -14
  41. package/src/type.ts +1 -1
  42. package/templates/basic/nest/controller.ts.eta +6 -5
  43. package/templates/basic/nest/resolver.ts.eta +4 -2
  44. package/templates/basic/nest/service.ts.eta +5 -2
  45. package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +3 -3
  46. package/templates/nest/.gitignore.eta +4 -5
  47. package/templates/nest/src/{app.module.ts.eta → app.module.ts._eta} +2 -2
  48. package/templates/nest/src/{main.ts.eta → main.ts._eta} +2 -2
  49. package/templates/nest/src/printapi/printapi.service.ts.eta +7 -8
  50. package/templates/nest/src/simpleapp/.gitignore.eta +1 -1
  51. package/templates/nest/src/simpleapp/generate/commons/audittrail.service.ts.eta +2 -2
  52. package/templates/nest/src/simpleapp/generate/commons/customkeycloa.guard.ts.eta +14 -12
  53. package/templates/nest/src/simpleapp/generate/commons/customkeycloak.guard.ts.eta +36 -42
  54. package/templates/nest/src/simpleapp/generate/commons/docnogenerator.service.ts.eta +6 -3
  55. package/templates/nest/src/simpleapp/generate/commons/encryption.static.ts.eta +56 -61
  56. package/templates/nest/src/simpleapp/generate/commons/middlewares/tenant.middleware.ts.eta +65 -88
  57. package/templates/nest/src/simpleapp/generate/commons/robotuser.service.ts.eta +10 -9
  58. package/templates/nest/src/simpleapp/generate/commons/roles/roles.guard.ts.eta +10 -3
  59. package/templates/nest/src/simpleapp/generate/commons/runwebhook.service.ts.eta +71 -77
  60. package/templates/nest/src/simpleapp/generate/commons/user.context.ts.eta +439 -293
  61. package/templates/nest/src/simpleapp/generate/processors/autoinc.processor.ts.eta +20 -5
  62. package/templates/nest/src/simpleapp/generate/processors/simpleapp.processor.ts.eta +423 -38
  63. package/templates/nest/src/simpleapp/profile/{profile.controller.ts.eta → profile.controller.ts._eta} +2 -2
  64. package/templates/nest/src/simpleapp/profile/{profile.service.ts.eta → profile.service.ts._eta} +2 -2
  65. package/templates/nest/src/simpleapp/simpleapp.module.ts.eta +15 -4
  66. package/templates/nuxt/assets/css/style.css._eta +74 -28
  67. package/templates/nuxt/components/button/ButtonMultiple.vue._eta +1 -1
  68. package/templates/nuxt/components/calendar/{CalendarByResource.vue.eta → CalendarByResource.vue._eta} +2 -2
  69. package/templates/nuxt/components/calendar/{CalendarInput.vue.eta → CalendarInput.vue._eta} +3 -3
  70. package/templates/nuxt/components/calendar/{CalendarSmall.vue.eta → CalendarSmall.vue._eta} +13 -7
  71. package/templates/nuxt/components/debug/{DebugDocumentData.vue.eta → DebugDocumentData.vue._eta} +4 -5
  72. package/templates/nuxt/components/form/{FormDocnoformat.vue.eta → FormDocnoformat.vue._eta} +2 -1
  73. package/templates/nuxt/components/form/user/{FormUserPermission.vue.eta → FormUserPermission.vue._eta} +6 -0
  74. package/templates/nuxt/components/header/{HeaderBreadcrumb.vue.eta → HeaderBreadcrumb.vue._eta} +5 -5
  75. package/templates/nuxt/components/header/button/{HeaderButtonProfile.vue.eta → HeaderButtonProfile.vue._eta} +2 -2
  76. package/templates/nuxt/components/header/button/task/{HeaderButtonTaskList.vue.eta → HeaderButtonTaskList.vue._eta} +4 -4
  77. package/templates/nuxt/components/image/ImageAvatar.vue.eta +56 -0
  78. package/templates/nuxt/components/image/{ImageOrganization.vue.eta.vue → ImageOrganization.vue.eta} +15 -9
  79. package/templates/nuxt/components/image/{ImageToBase64Uploader.vue.eta.vue → ImageToBase64Uploader.vue.eta} +28 -18
  80. package/templates/nuxt/components/list/{ListDocumentTable.vue.eta → ListDocumentTable.vue._eta} +3 -3
  81. package/templates/nuxt/components/list/{ListItem.vue.eta → ListItem.vue._eta} +2 -2
  82. package/templates/nuxt/components/list/{ListMessages.vue.eta → ListMessages.vue._eta} +8 -2
  83. package/templates/nuxt/components/list/{ListView.vue.eta → ListView.vue._eta} +2 -2
  84. package/templates/nuxt/components/overlay/{OverlayPanelWithToolBar.vue.eta → OverlayPanelWithToolBar.vue._eta} +5 -5
  85. package/templates/nuxt/components/overlay/{OverlaySideBarCrud.vue.eta → OverlaySideBarCrud.vue._eta} +4 -4
  86. package/templates/nuxt/components/overlay/{OverlayViewer.vue.eta → OverlayViewer.vue._eta} +2 -2
  87. package/templates/nuxt/components/page/{PageDocList.vue.eta → PageDocList.vue._eta} +5 -5
  88. package/templates/nuxt/components/renderer/RendererDateAge.vue.eta +19 -0
  89. package/templates/nuxt/components/renderer/{RendererDateTime.vue.eta → RendererDateTime.vue._eta} +2 -2
  90. package/templates/nuxt/components/renderer/{RendererDocHistories.vue.eta → RendererDocHistories.vue._eta} +6 -0
  91. package/templates/nuxt/components/renderer/{RendererForeignKey.vue.eta → RendererForeignKey.vue._eta} +2 -2
  92. package/templates/nuxt/components/renderer/{RendererLink.vue.eta → RendererLink.vue._eta} +2 -2
  93. package/templates/nuxt/components/renderer/{RendererTime.vue.eta → RendererTime.vue._eta} +2 -2
  94. package/templates/nuxt/components/renderer/{RendererViewer.vue.eta → RendererViewer.vue._eta} +2 -2
  95. package/templates/nuxt/components/select/{SelectTemplate.vue.eta → SelectTemplate.vue._eta} +2 -2
  96. package/templates/nuxt/components/session/{SessionBlock.vue.eta → SessionBlock.vue._eta} +2 -2
  97. package/templates/nuxt/components/simpleApp/SimpleAppAutocomplete.vue.eta +55 -55
  98. package/templates/nuxt/components/simpleApp/SimpleAppCalendarInput.vue.eta +13 -11
  99. package/templates/nuxt/components/simpleApp/SimpleAppChildrenList.vue.eta +6 -3
  100. package/templates/nuxt/components/simpleApp/SimpleAppDocumentNo.vue.eta +33 -28
  101. package/templates/nuxt/components/simpleApp/SimpleAppFieldContainer.vue.eta +19 -28
  102. package/templates/nuxt/components/simpleApp/SimpleAppInput.vue.eta +113 -105
  103. package/templates/nuxt/components/simpleApp/SimpleAppInputTable.vue.eta +3 -3
  104. package/templates/nuxt/components/simpleApp/SimpleAppJsonSchemaForm.vue.eta +3 -16
  105. package/templates/nuxt/components/simpleApp/SimpleAppUserPicker.vue.eta +10 -12
  106. package/templates/nuxt/components/table/{TableDocuments.vue.eta → TableDocuments.vue._eta} +2 -2
  107. package/templates/nuxt/components/user/{UserButtonPermissionInfo.vue.eta → UserButtonPermissionInfo.vue._eta} +4 -4
  108. package/templates/nuxt/components/user/{UserInvitation.vue.eta → UserInvitation.vue._eta} +2 -2
  109. package/templates/nuxt/components/user/{UserProfileListItem.vue.eta → UserProfileListItem.vue._eta} +2 -2
  110. package/templates/nuxt/components/user/{UserTenantPicker.vue.eta → UserTenantPicker.vue._eta} +2 -2
  111. package/templates/nuxt/composables/getOpenApi.generate.ts.eta +11 -3
  112. package/templates/nuxt/composables/getUserStore.generate.ts.eta +1 -1
  113. package/templates/nuxt/composables/graphquery.generate.ts.eta +1 -1
  114. package/templates/nuxt/composables/recently.generate.ts.eta +0 -1
  115. package/templates/nuxt/composables/stringHelper.generate.ts.eta +5 -2
  116. package/templates/nuxt/nuxt.config.ts._eta +6 -5
  117. package/templates/nuxt/pages/[xorg]/docnoformat/[id].vue.eta +0 -1
  118. package/templates/nuxt/pages/[xorg]/{docnoformat.vue.eta → docnoformat.vue._eta} +1 -0
  119. package/templates/nuxt/pages/[xorg]/organization/[id].vue.eta +13 -9
  120. package/templates/nuxt/pages/[xorg]/organization/new.vue.eta +10 -12
  121. package/templates/nuxt/pages/[xorg]/{user.vue.eta → user.vue._eta} +2 -2
  122. package/templates/nuxt/pages/index.vue._eta +1 -1
  123. package/templates/nuxt/pages/{profile.vue.eta → profile.vue._eta} +2 -2
  124. package/templates/nuxt/plugins/10.simpleapp-event.ts.eta +6 -0
  125. package/templates/nuxt/plugins/20.simpleapp-userstore.ts.eta +89 -12
  126. package/templates/nuxt/plugins/40.pusher.ts.eta +8 -5
  127. package/templates/nuxt/presets/lara/accordion/index.js +79 -0
  128. package/templates/nuxt/presets/lara/accordioncontent/index.js +3 -0
  129. package/templates/nuxt/presets/lara/accordionheader/index.js +11 -0
  130. package/templates/nuxt/presets/lara/accordionpanel/index.js +18 -0
  131. package/templates/nuxt/presets/lara/autocomplete/index.js +208 -0
  132. package/templates/nuxt/presets/lara/avatar/index.js +43 -0
  133. package/templates/nuxt/presets/lara/avatargroup/index.js +5 -0
  134. package/templates/nuxt/presets/lara/badge/index.js +47 -0
  135. package/templates/nuxt/presets/lara/badgedirective/index.js +43 -0
  136. package/templates/nuxt/presets/lara/blockui/index.js +4 -0
  137. package/templates/nuxt/presets/lara/breadcrumb/index.js +64 -0
  138. package/templates/nuxt/presets/lara/button/index.js +238 -0
  139. package/templates/nuxt/presets/lara/buttongroup/index.js +12 -0
  140. package/templates/nuxt/presets/lara/card/index.js +37 -0
  141. package/templates/nuxt/presets/lara/carousel/index.js +103 -0
  142. package/templates/nuxt/presets/lara/cascadeselect/index.js +199 -0
  143. package/templates/nuxt/presets/lara/checkbox/index.js +104 -0
  144. package/templates/nuxt/presets/lara/chip/index.js +42 -0
  145. package/templates/nuxt/presets/lara/colorpicker/index.js +123 -0
  146. package/templates/nuxt/presets/lara/confirmdialog/index.js +3 -0
  147. package/templates/nuxt/presets/lara/confirmpopup/index.js +56 -0
  148. package/templates/nuxt/presets/lara/contextmenu/index.js +126 -0
  149. package/templates/nuxt/presets/lara/datatable/index.js +403 -0
  150. package/templates/nuxt/presets/lara/dataview/index.js +28 -0
  151. package/templates/nuxt/presets/lara/datepicker/index.js +435 -0
  152. package/templates/nuxt/presets/lara/deferred/index.js +3 -0
  153. package/templates/nuxt/presets/lara/dialog/index.js +148 -0
  154. package/templates/nuxt/presets/lara/divider/index.js +67 -0
  155. package/templates/nuxt/presets/lara/dock/index.js +86 -0
  156. package/templates/nuxt/presets/lara/drawer/index.js +149 -0
  157. package/templates/nuxt/presets/lara/fieldset/index.js +84 -0
  158. package/templates/nuxt/presets/lara/fileupload/index.js +95 -0
  159. package/templates/nuxt/presets/lara/floatlabel/index.js +26 -0
  160. package/templates/nuxt/presets/lara/galleria/index.js +308 -0
  161. package/templates/nuxt/presets/lara/global.js +90 -0
  162. package/templates/nuxt/presets/lara/iconfield/index.js +27 -0
  163. package/templates/nuxt/presets/lara/image/index.js +206 -0
  164. package/templates/nuxt/presets/lara/index.js +234 -0
  165. package/templates/nuxt/presets/lara/inplace/index.js +27 -0
  166. package/templates/nuxt/presets/lara/inputgroup/index.js +5 -0
  167. package/templates/nuxt/presets/lara/inputgroupaddon/index.js +28 -0
  168. package/templates/nuxt/presets/lara/inputmask/index.js +39 -0
  169. package/templates/nuxt/presets/lara/inputnumber/index.js +167 -0
  170. package/templates/nuxt/presets/lara/inputotp/index.js +10 -0
  171. package/templates/nuxt/presets/lara/inputswitch/index.js +80 -0
  172. package/templates/nuxt/presets/lara/inputtext/index.js +54 -0
  173. package/templates/nuxt/presets/lara/knob/index.js +44 -0
  174. package/templates/nuxt/presets/lara/listbox/index.js +117 -0
  175. package/templates/nuxt/presets/lara/megamenu/index.js +198 -0
  176. package/templates/nuxt/presets/lara/menu/index.js +96 -0
  177. package/templates/nuxt/presets/lara/menubar/index.js +176 -0
  178. package/templates/nuxt/presets/lara/message/index.js +92 -0
  179. package/templates/nuxt/presets/lara/metergroup/index.js +96 -0
  180. package/templates/nuxt/presets/lara/multiselect/index.js +201 -0
  181. package/templates/nuxt/presets/lara/orderlist/index.js +13 -0
  182. package/templates/nuxt/presets/lara/organizationchart/index.js +137 -0
  183. package/templates/nuxt/presets/lara/overlaybadge/index.js +18 -0
  184. package/templates/nuxt/presets/lara/paginator/index.js +178 -0
  185. package/templates/nuxt/presets/lara/panel/index.js +91 -0
  186. package/templates/nuxt/presets/lara/panelmenu/index.js +127 -0
  187. package/templates/nuxt/presets/lara/password/index.js +72 -0
  188. package/templates/nuxt/presets/lara/picklist/index.js +52 -0
  189. package/templates/nuxt/presets/lara/popover/index.js +31 -0
  190. package/templates/nuxt/presets/lara/progressbar/index.js +55 -0
  191. package/templates/nuxt/presets/lara/progressspinner/index.js +51 -0
  192. package/templates/nuxt/presets/lara/radiobutton/index.js +104 -0
  193. package/templates/nuxt/presets/lara/rating/index.js +63 -0
  194. package/templates/nuxt/presets/lara/ripple/index.js +6 -0
  195. package/templates/nuxt/presets/lara/scrollpanel/index.js +77 -0
  196. package/templates/nuxt/presets/lara/scrolltop/index.js +26 -0
  197. package/templates/nuxt/presets/lara/select/index.js +240 -0
  198. package/templates/nuxt/presets/lara/selectbutton/index.js +16 -0
  199. package/templates/nuxt/presets/lara/skeleton/index.js +16 -0
  200. package/templates/nuxt/presets/lara/slider/index.js +137 -0
  201. package/templates/nuxt/presets/lara/speeddial/index.js +57 -0
  202. package/templates/nuxt/presets/lara/splitbutton/index.js +19 -0
  203. package/templates/nuxt/presets/lara/splitter/index.js +61 -0
  204. package/templates/nuxt/presets/lara/splitterpanel/index.js +5 -0
  205. package/templates/nuxt/presets/lara/step/index.js +62 -0
  206. package/templates/nuxt/presets/lara/stepitem/index.js +11 -0
  207. package/templates/nuxt/presets/lara/steplist/index.js +3 -0
  208. package/templates/nuxt/presets/lara/steppanels/index.js +3 -0
  209. package/templates/nuxt/presets/lara/stepper/index.js +13 -0
  210. package/templates/nuxt/presets/lara/steps/index.js +111 -0
  211. package/templates/nuxt/presets/lara/tab/index.js +42 -0
  212. package/templates/nuxt/presets/lara/tablist/index.js +8 -0
  213. package/templates/nuxt/presets/lara/tabmenu/index.js +73 -0
  214. package/templates/nuxt/presets/lara/tabpanel/index.js +3 -0
  215. package/templates/nuxt/presets/lara/tabpanels/index.js +3 -0
  216. package/templates/nuxt/presets/lara/tabs/index.js +5 -0
  217. package/templates/nuxt/presets/lara/tabview/index.js +156 -0
  218. package/templates/nuxt/presets/lara/tag/index.js +38 -0
  219. package/templates/nuxt/presets/lara/terminal/index.js +60 -0
  220. package/templates/nuxt/presets/lara/textarea/index.js +39 -0
  221. package/templates/nuxt/presets/lara/tieredmenu/index.js +121 -0
  222. package/templates/nuxt/presets/lara/timeline/index.js +81 -0
  223. package/templates/nuxt/presets/lara/toast/index.js +102 -0
  224. package/templates/nuxt/presets/lara/togglebutton/index.js +45 -0
  225. package/templates/nuxt/presets/lara/toggleswitch/index.js +80 -0
  226. package/templates/nuxt/presets/lara/toolbar/index.js +28 -0
  227. package/templates/nuxt/presets/lara/tooltip/index.js +46 -0
  228. package/templates/nuxt/presets/lara/tree/index.js +101 -0
  229. package/templates/nuxt/presets/lara/treeselect/index.js +102 -0
  230. package/templates/nuxt/presets/lara/treetable/index.js +305 -0
  231. package/templates/nuxt/providers/my-provider.ts.eta +1 -1
  232. package/templates/nuxt/server/api/profile/[...].ts.eta +4 -3
  233. package/templates/nuxt/simpleapp/generate/clients/SimpleAppClient.ts.eta +10 -20
  234. package/templates/nuxt/tailwind.config.ts._eta +4 -15
  235. package/templates/nuxt/types/schema.ts.eta +1 -1
  236. package/templates/nuxt/types/user.ts.eta +6 -1
  237. package/templates/project/jsonschemas/appintegration.json_eta +227 -0
  238. package/templates/project/sharelibs/validate.ts.eta +23 -0
  239. package/templates/nuxt/components/image/ImageAvatar.vue.eta._vue +0 -57
@@ -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
+ };
@@ -0,0 +1,5 @@
1
+ export default {
2
+ root: ({ context }) => ({
3
+ class: ['grow', { flex: context.nested }]
4
+ })
5
+ };