@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.
Files changed (185) hide show
  1. package/ReleaseNote.md +13 -1
  2. package/dist/buildinschemas/message.d.ts +3 -0
  3. package/dist/buildinschemas/message.d.ts.map +1 -0
  4. package/dist/buildinschemas/message.js +34 -0
  5. package/dist/buildinschemas/message.js.map +1 -0
  6. package/dist/buildinschemas/webhook.d.ts.map +1 -1
  7. package/dist/buildinschemas/webhook.js +1 -0
  8. package/dist/buildinschemas/webhook.js.map +1 -1
  9. package/dist/buildinschemas/webhookhistory.d.ts +3 -0
  10. package/dist/buildinschemas/webhookhistory.d.ts.map +1 -0
  11. package/dist/buildinschemas/webhookhistory.js +44 -0
  12. package/dist/buildinschemas/webhookhistory.js.map +1 -0
  13. package/dist/createproject.js +138 -0
  14. package/dist/createproject.js.map +1 -0
  15. package/dist/framework.d.ts.map +1 -1
  16. package/dist/framework.js +28 -3
  17. package/dist/framework.js.map +1 -1
  18. package/dist/generate-allow-changebackend.js +305 -0
  19. package/dist/generate-allow-changebackend.js.map +1 -0
  20. package/dist/index.js +0 -0
  21. package/dist/index2.js +118 -0
  22. package/dist/index2.js.map +1 -0
  23. package/dist/installdependency.js +20 -0
  24. package/dist/installdependency.js.map +1 -0
  25. package/dist/installnest.js +2 -0
  26. package/dist/installnest.js.map +1 -0
  27. package/dist/installnuxt.js +2 -0
  28. package/dist/installnuxt.js.map +1 -0
  29. package/dist/processors/groupsbuilder.js +2 -0
  30. package/dist/processors/groupsbuilder.js.map +1 -0
  31. package/dist/schematype/baseschema.js +25 -0
  32. package/dist/schematype/baseschema.js.map +1 -0
  33. package/dist/schematype/default.js +2 -0
  34. package/dist/schematype/default.js.map +1 -0
  35. package/dist/schematype/index.js +12 -0
  36. package/dist/schematype/index.js.map +1 -0
  37. package/dist/schematype/primarymasterdata.js +38 -0
  38. package/dist/schematype/primarymasterdata.js.map +1 -0
  39. package/dist/schematype/simple.js +24 -0
  40. package/dist/schematype/simple.js.map +1 -0
  41. package/dist/schematype/simplemasterdata.js +31 -0
  42. package/dist/schematype/simplemasterdata.js.map +1 -0
  43. package/dist/schematype/transaction.js +74 -0
  44. package/dist/schematype/transaction.js.map +1 -0
  45. package/package.json +1 -1
  46. package/src/buildinschemas/webhook.ts +1 -0
  47. package/src/framework.ts +31 -4
  48. package/templates/basic/nest/controller.ts.eta +6 -5
  49. package/templates/basic/nest/resolver.ts.eta +4 -2
  50. package/templates/basic/nest/service.ts.eta +5 -2
  51. package/templates/nest/.env._eta +1 -1
  52. package/templates/nest/src/simpleapp/generate/commons/middlewares/tenant.middleware.ts.eta +2 -2
  53. package/templates/nest/src/simpleapp/generate/commons/runwebhook.service.ts.eta +99 -107
  54. package/templates/nest/src/simpleapp/generate/commons/user.context.ts.eta +2 -2
  55. package/templates/nest/src/simpleapp/generate/processors/simpleapp.processor.ts.eta +3 -15
  56. package/templates/nuxt/assets/css/style.css._eta +74 -28
  57. package/templates/nuxt/components/calendar/CalendarInput.vue.eta +1 -1
  58. package/templates/nuxt/components/calendar/CalendarSmall.vue.eta +7 -7
  59. package/templates/nuxt/components/debug/DebugDocumentData.vue.eta +2 -3
  60. package/templates/nuxt/components/header/HeaderBreadcrumb.vue.eta +3 -3
  61. package/templates/nuxt/components/header/button/task/HeaderButtonTaskList.vue.eta +2 -2
  62. package/templates/nuxt/components/list/ListDocumentTable.vue.eta +1 -1
  63. package/templates/nuxt/components/list/ListMessages.vue.eta +2 -2
  64. package/templates/nuxt/components/overlay/OverlayPanelWithToolBar.vue.eta +3 -3
  65. package/templates/nuxt/components/overlay/OverlaySideBarCrud.vue.eta +2 -2
  66. package/templates/nuxt/components/page/PageDocList.vue.eta +3 -3
  67. package/templates/nuxt/components/renderer/RendererDateAge.vue.eta +19 -0
  68. package/templates/nuxt/components/simpleApp/SimpleAppCalendarInput.vue.eta +4 -4
  69. package/templates/nuxt/components/simpleApp/SimpleAppDocumentNo.vue.eta +3 -3
  70. package/templates/nuxt/components/simpleApp/SimpleAppInput.vue.eta +2 -3
  71. package/templates/nuxt/components/simpleApp/SimpleAppJsonSchemaForm.vue.eta +2 -15
  72. package/templates/nuxt/components/user/UserButtonPermissionInfo.vue.eta +2 -2
  73. package/templates/nuxt/nuxt.config.ts._eta +6 -5
  74. package/templates/nuxt/pages/index.vue._eta +1 -1
  75. package/templates/nuxt/plugins/40.pusher.ts.eta +8 -2
  76. package/templates/nuxt/presets/lara/accordion/index.js +79 -0
  77. package/templates/nuxt/presets/lara/accordioncontent/index.js +3 -0
  78. package/templates/nuxt/presets/lara/accordionheader/index.js +11 -0
  79. package/templates/nuxt/presets/lara/accordionpanel/index.js +18 -0
  80. package/templates/nuxt/presets/lara/autocomplete/index.js +208 -0
  81. package/templates/nuxt/presets/lara/avatar/index.js +43 -0
  82. package/templates/nuxt/presets/lara/avatargroup/index.js +5 -0
  83. package/templates/nuxt/presets/lara/badge/index.js +47 -0
  84. package/templates/nuxt/presets/lara/badgedirective/index.js +43 -0
  85. package/templates/nuxt/presets/lara/blockui/index.js +4 -0
  86. package/templates/nuxt/presets/lara/breadcrumb/index.js +64 -0
  87. package/templates/nuxt/presets/lara/button/index.js +238 -0
  88. package/templates/nuxt/presets/lara/buttongroup/index.js +12 -0
  89. package/templates/nuxt/presets/lara/card/index.js +37 -0
  90. package/templates/nuxt/presets/lara/carousel/index.js +103 -0
  91. package/templates/nuxt/presets/lara/cascadeselect/index.js +199 -0
  92. package/templates/nuxt/presets/lara/checkbox/index.js +104 -0
  93. package/templates/nuxt/presets/lara/chip/index.js +42 -0
  94. package/templates/nuxt/presets/lara/colorpicker/index.js +123 -0
  95. package/templates/nuxt/presets/lara/confirmdialog/index.js +3 -0
  96. package/templates/nuxt/presets/lara/confirmpopup/index.js +56 -0
  97. package/templates/nuxt/presets/lara/contextmenu/index.js +126 -0
  98. package/templates/nuxt/presets/lara/datatable/index.js +403 -0
  99. package/templates/nuxt/presets/lara/dataview/index.js +28 -0
  100. package/templates/nuxt/presets/lara/datepicker/index.js +435 -0
  101. package/templates/nuxt/presets/lara/deferred/index.js +3 -0
  102. package/templates/nuxt/presets/lara/dialog/index.js +148 -0
  103. package/templates/nuxt/presets/lara/divider/index.js +67 -0
  104. package/templates/nuxt/presets/lara/dock/index.js +86 -0
  105. package/templates/nuxt/presets/lara/drawer/index.js +149 -0
  106. package/templates/nuxt/presets/lara/fieldset/index.js +84 -0
  107. package/templates/nuxt/presets/lara/fileupload/index.js +95 -0
  108. package/templates/nuxt/presets/lara/floatlabel/index.js +26 -0
  109. package/templates/nuxt/presets/lara/galleria/index.js +308 -0
  110. package/templates/nuxt/presets/lara/global.js +90 -0
  111. package/templates/nuxt/presets/lara/iconfield/index.js +27 -0
  112. package/templates/nuxt/presets/lara/image/index.js +206 -0
  113. package/templates/nuxt/presets/lara/index.js +234 -0
  114. package/templates/nuxt/presets/lara/inplace/index.js +27 -0
  115. package/templates/nuxt/presets/lara/inputgroup/index.js +5 -0
  116. package/templates/nuxt/presets/lara/inputgroupaddon/index.js +28 -0
  117. package/templates/nuxt/presets/lara/inputmask/index.js +39 -0
  118. package/templates/nuxt/presets/lara/inputnumber/index.js +167 -0
  119. package/templates/nuxt/presets/lara/inputotp/index.js +10 -0
  120. package/templates/nuxt/presets/lara/inputswitch/index.js +80 -0
  121. package/templates/nuxt/presets/lara/inputtext/index.js +54 -0
  122. package/templates/nuxt/presets/lara/knob/index.js +44 -0
  123. package/templates/nuxt/presets/lara/listbox/index.js +117 -0
  124. package/templates/nuxt/presets/lara/megamenu/index.js +198 -0
  125. package/templates/nuxt/presets/lara/menu/index.js +96 -0
  126. package/templates/nuxt/presets/lara/menubar/index.js +176 -0
  127. package/templates/nuxt/presets/lara/message/index.js +92 -0
  128. package/templates/nuxt/presets/lara/metergroup/index.js +96 -0
  129. package/templates/nuxt/presets/lara/multiselect/index.js +201 -0
  130. package/templates/nuxt/presets/lara/orderlist/index.js +13 -0
  131. package/templates/nuxt/presets/lara/organizationchart/index.js +137 -0
  132. package/templates/nuxt/presets/lara/overlaybadge/index.js +18 -0
  133. package/templates/nuxt/presets/lara/paginator/index.js +178 -0
  134. package/templates/nuxt/presets/lara/panel/index.js +91 -0
  135. package/templates/nuxt/presets/lara/panelmenu/index.js +127 -0
  136. package/templates/nuxt/presets/lara/password/index.js +72 -0
  137. package/templates/nuxt/presets/lara/picklist/index.js +52 -0
  138. package/templates/nuxt/presets/lara/popover/index.js +31 -0
  139. package/templates/nuxt/presets/lara/progressbar/index.js +55 -0
  140. package/templates/nuxt/presets/lara/progressspinner/index.js +51 -0
  141. package/templates/nuxt/presets/lara/radiobutton/index.js +104 -0
  142. package/templates/nuxt/presets/lara/rating/index.js +63 -0
  143. package/templates/nuxt/presets/lara/ripple/index.js +6 -0
  144. package/templates/nuxt/presets/lara/scrollpanel/index.js +77 -0
  145. package/templates/nuxt/presets/lara/scrolltop/index.js +26 -0
  146. package/templates/nuxt/presets/lara/select/index.js +240 -0
  147. package/templates/nuxt/presets/lara/selectbutton/index.js +16 -0
  148. package/templates/nuxt/presets/lara/skeleton/index.js +16 -0
  149. package/templates/nuxt/presets/lara/slider/index.js +137 -0
  150. package/templates/nuxt/presets/lara/speeddial/index.js +57 -0
  151. package/templates/nuxt/presets/lara/splitbutton/index.js +19 -0
  152. package/templates/nuxt/presets/lara/splitter/index.js +61 -0
  153. package/templates/nuxt/presets/lara/splitterpanel/index.js +5 -0
  154. package/templates/nuxt/presets/lara/step/index.js +62 -0
  155. package/templates/nuxt/presets/lara/stepitem/index.js +11 -0
  156. package/templates/nuxt/presets/lara/steplist/index.js +3 -0
  157. package/templates/nuxt/presets/lara/steppanels/index.js +3 -0
  158. package/templates/nuxt/presets/lara/stepper/index.js +13 -0
  159. package/templates/nuxt/presets/lara/steps/index.js +111 -0
  160. package/templates/nuxt/presets/lara/tab/index.js +42 -0
  161. package/templates/nuxt/presets/lara/tablist/index.js +8 -0
  162. package/templates/nuxt/presets/lara/tabmenu/index.js +73 -0
  163. package/templates/nuxt/presets/lara/tabpanel/index.js +3 -0
  164. package/templates/nuxt/presets/lara/tabpanels/index.js +3 -0
  165. package/templates/nuxt/presets/lara/tabs/index.js +5 -0
  166. package/templates/nuxt/presets/lara/tabview/index.js +156 -0
  167. package/templates/nuxt/presets/lara/tag/index.js +38 -0
  168. package/templates/nuxt/presets/lara/terminal/index.js +60 -0
  169. package/templates/nuxt/presets/lara/textarea/index.js +39 -0
  170. package/templates/nuxt/presets/lara/tieredmenu/index.js +121 -0
  171. package/templates/nuxt/presets/lara/timeline/index.js +81 -0
  172. package/templates/nuxt/presets/lara/toast/index.js +102 -0
  173. package/templates/nuxt/presets/lara/togglebutton/index.js +45 -0
  174. package/templates/nuxt/presets/lara/toggleswitch/index.js +80 -0
  175. package/templates/nuxt/presets/lara/toolbar/index.js +28 -0
  176. package/templates/nuxt/presets/lara/tooltip/index.js +46 -0
  177. package/templates/nuxt/presets/lara/tree/index.js +101 -0
  178. package/templates/nuxt/presets/lara/treeselect/index.js +102 -0
  179. package/templates/nuxt/presets/lara/treetable/index.js +305 -0
  180. package/templates/nuxt/simpleapp/generate/clients/SimpleAppClient.ts.eta +2 -16
  181. package/templates/nuxt/tailwind.config.ts._eta +4 -15
  182. package/templates/project/sharelibs/validate.ts.eta +23 -0
  183. /package/templates/nuxt/components/image/{ImageAvatar.vue.eta._vue → ImageAvatar.vue.eta} +0 -0
  184. /package/templates/nuxt/components/image/{ImageOrganization.vue.eta.vue → ImageOrganization.vue.eta} +0 -0
  185. /package/templates/nuxt/components/image/{ImageToBase64Uploader.vue.eta.vue → ImageToBase64Uploader.vue.eta} +0 -0
@@ -0,0 +1,96 @@
1
+ export default {
2
+ root: ({ props }) => ({
3
+ class: [
4
+ // Flexbox
5
+ 'flex gap-4',
6
+
7
+ { 'flex-col': props.orientation == 'horizontal', 'flex-row': props.orientation == 'vertical' }
8
+ ]
9
+ }),
10
+ meters: ({ props }) => ({
11
+ class: [
12
+ // Flexbox
13
+ 'flex',
14
+
15
+ { 'flex-col': props.orientation === 'vertical' },
16
+
17
+ // Sizing
18
+ { 'w-2 h-full': props.orientation === 'vertical' },
19
+ { 'h-2': props.orientation === 'horizontal' },
20
+
21
+ // Colors
22
+ 'bg-gray-200 dark:bg-gray-700',
23
+
24
+ // Border Radius
25
+ 'rounded-lg'
26
+ ]
27
+ }),
28
+ meter: ({ props }) => ({
29
+ class: [
30
+ // Shape
31
+ 'border-0',
32
+
33
+ // Rounded Corners - Horizontal
34
+ {
35
+ 'first:rounded-l-lg last:rounded-r-lg': props.orientation === 'horizontal'
36
+ },
37
+
38
+ // Rounded Corners - Vertical
39
+ {
40
+ 'first:rounded-t-lg last:rounded-b-lg': props.orientation === 'vertical'
41
+ },
42
+
43
+ // Colors
44
+ 'bg-primary'
45
+ ]
46
+ }),
47
+ labelList: ({ props }) => ({
48
+ class: [
49
+ // Display & Flexbox
50
+ 'flex flex-wrap',
51
+
52
+ { 'gap-4': props.labelOrientation === 'horizontal' },
53
+
54
+ { 'gap-2': props.labelOrientation === 'vertical' },
55
+
56
+ { 'flex-col': props.labelOrientation === 'vertical' },
57
+
58
+ // Conditional Alignment - Horizontal
59
+ {
60
+ 'align-end': props.labelOrientation === 'horizontal' && props.labelPosition === 'end',
61
+ 'align-start': props.labelOrientation === 'horizontal' && props.labelPosition === 'start'
62
+ },
63
+
64
+ // Conditional Alignment - Vertical
65
+ {
66
+ 'justify-start': props.labelOrientation === 'vertical' && props.labelPosition === 'start'
67
+ },
68
+
69
+ // List Styling
70
+ 'm-0 p-0 list-none'
71
+ ]
72
+ }),
73
+ label: {
74
+ class: [
75
+ // Flexbox
76
+ 'inline-flex',
77
+ 'items-center',
78
+ 'gap-2'
79
+ ]
80
+ },
81
+ labelMarker: {
82
+ class: [
83
+ // Display
84
+ 'inline-flex',
85
+
86
+ // Background Color
87
+ 'bg-primary',
88
+
89
+ // Size
90
+ 'w-2 h-2',
91
+
92
+ // Rounded Shape
93
+ 'rounded-full'
94
+ ]
95
+ }
96
+ };
@@ -0,0 +1,201 @@
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: 'overflow-hidden flex flex-auto cursor-pointer',
34
+ label: ({ props }) => ({
35
+ class: [
36
+ 'leading-[normal]',
37
+ 'block ',
38
+
39
+ // Spacing
40
+ {
41
+ 'p-3': props.display !== 'chip',
42
+ 'py-3 px-3': props.display === 'chip' && !props?.modelValue?.length,
43
+ 'py-[0.375rem] px-3': props.display === 'chip' && props?.modelValue?.length > 0
44
+ },
45
+
46
+ // Color
47
+ { 'text-surface-800 dark:text-white/80': props.modelValue?.length, 'text-surface-400 dark:text-surface-500': !props.modelValue?.length },
48
+ 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
49
+
50
+ // Transitions
51
+ 'transition duration-200',
52
+
53
+ // Misc
54
+ 'overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis'
55
+ ]
56
+ }),
57
+ dropdown: {
58
+ class: [
59
+ // Flexbox
60
+ 'flex items-center justify-center',
61
+ 'shrink-0',
62
+
63
+ // Color and Background
64
+ 'bg-transparent',
65
+ 'text-surface-500',
66
+
67
+ // Size
68
+ 'w-12',
69
+
70
+ // Shape
71
+ 'rounded-tr-md',
72
+ 'rounded-br-md'
73
+ ]
74
+ },
75
+ overlay: {
76
+ class: [
77
+ // Position
78
+
79
+ // Shape
80
+ 'border-0 dark:border',
81
+ 'rounded-md',
82
+ 'shadow-md',
83
+
84
+ // Color
85
+ 'bg-surface-0 dark:bg-surface-800',
86
+ 'text-surface-800 dark:text-white/80',
87
+ 'dark:border-surface-700'
88
+ ]
89
+ },
90
+ header: {
91
+ class: [
92
+ 'flex items-center justify-between',
93
+ // Spacing
94
+ 'py-3 px-5 gap-2',
95
+ 'm-0',
96
+
97
+ //Shape
98
+ 'border-b',
99
+ 'rounded-tl-md',
100
+ 'rounded-tr-md',
101
+
102
+ // Color
103
+ 'text-surface-700 dark:text-white/80',
104
+ 'bg-surface-100 dark:bg-surface-800',
105
+ 'border-surface-300 dark:border-surface-700',
106
+
107
+ '[&_[data-pc-name=pcfiltercontainer]]:!flex-auto',
108
+ '[&_[data-pc-name=pcfilter]]:w-full'
109
+ ]
110
+ },
111
+ listContainer: {
112
+ class: [
113
+ // Sizing
114
+ 'max-h-[200px]',
115
+
116
+ // Misc
117
+ 'overflow-auto'
118
+ ]
119
+ },
120
+ list: {
121
+ class: 'py-3 list-none m-0'
122
+ },
123
+ option: ({ context }) => ({
124
+ class: [
125
+ // Font
126
+ 'font-normal',
127
+ 'leading-none',
128
+
129
+ // Flexbox
130
+ 'flex items-center',
131
+
132
+ // Position
133
+ 'relative',
134
+
135
+ // Shape
136
+ 'border-0',
137
+ 'rounded-none',
138
+
139
+ // Spacing
140
+ 'm-0',
141
+ 'py-3 px-5 gap-2',
142
+
143
+ // Color
144
+ { 'text-surface-700 dark:text-white/80': !context.focused && !context.selected },
145
+ { 'bg-surface-200 dark:bg-surface-600/60 text-surface-700 dark:text-white/80': context.focused && !context.selected },
146
+ { 'bg-highlight': context.selected },
147
+
148
+ //States
149
+ { 'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context.focused && !context.selected },
150
+ { 'hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80': context.focused && !context.selected },
151
+
152
+ // Transitions
153
+ 'transition-shadow',
154
+ 'duration-200',
155
+
156
+ // Misc
157
+ 'cursor-pointer',
158
+ 'overflow-hidden',
159
+ 'whitespace-nowrap'
160
+ ]
161
+ }),
162
+ optionGroup: {
163
+ class: [
164
+ //Font
165
+ 'font-bold',
166
+
167
+ // Spacing
168
+ 'm-0',
169
+ 'p-3 px-5',
170
+
171
+ // Color
172
+ 'text-surface-800 dark:text-white/80',
173
+ 'bg-surface-0 dark:bg-surface-600/80',
174
+
175
+ // Misc
176
+ 'cursor-auto'
177
+ ]
178
+ },
179
+ emptyMessage: {
180
+ class: [
181
+ // Font
182
+ 'leading-none',
183
+
184
+ // Spacing
185
+ 'py-3 px-5',
186
+
187
+ // Color
188
+ 'text-surface-800 dark:text-white/80',
189
+ 'bg-transparent'
190
+ ]
191
+ },
192
+ loadingIcon: {
193
+ class: 'text-surface-400 dark:text-surface-500 animate-spin'
194
+ },
195
+ transition: {
196
+ enterFromClass: 'opacity-0 scale-y-[0.8]',
197
+ enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
198
+ leaveActiveClass: 'transition-opacity duration-100 ease-linear',
199
+ leaveToClass: 'opacity-0'
200
+ }
201
+ };
@@ -0,0 +1,13 @@
1
+ export default {
2
+ root: 'flex',
3
+ controls: {
4
+ class: [
5
+ // Flexbox & Alignment
6
+ 'flex flex-col justify-center gap-2',
7
+
8
+ // Spacing
9
+ 'p-5'
10
+ ]
11
+ },
12
+ container: 'flex-auto'
13
+ };
@@ -0,0 +1,137 @@
1
+ export default {
2
+ table: {
3
+ class: [
4
+ // Spacing & Position
5
+ 'mx-auto my-0',
6
+
7
+ // Table Style
8
+ 'border-spacing-0 border-separate'
9
+ ]
10
+ },
11
+ cell: {
12
+ class: [
13
+ // Alignment
14
+ 'text-center align-top',
15
+
16
+ // Spacing
17
+ 'py-0 px-3'
18
+ ]
19
+ },
20
+ node: ({ context }) => ({
21
+ class: [
22
+ 'relative inline-block',
23
+
24
+ // Spacing
25
+ 'p-5',
26
+
27
+ // Shape
28
+ 'border',
29
+
30
+ // Color
31
+ {
32
+ 'text-surface-600 dark:text-white/80': !context?.selected,
33
+ 'bg-surface-0 dark:bg-surface-800': !context?.selected,
34
+ 'border-surface-200 dark:border-surface-700': !context?.selected,
35
+ 'bg-highlight': context?.selected,
36
+ 'border-primary-200 dark:border-primary-600': context?.selected
37
+ },
38
+
39
+ // States
40
+ {
41
+ 'hover:bg-surface-100 dark:hover:bg-surface-700': context?.selectable && !context?.selected,
42
+ 'hover:bg-highlight-emphasis': context?.selectable && context?.selected
43
+ },
44
+
45
+ { 'cursor-pointer': context?.selectable }
46
+ ]
47
+ }),
48
+ lineCell: {
49
+ class: [
50
+ // Alignment
51
+ 'text-center align-top',
52
+
53
+ // Spacing
54
+ 'py-0 px-3'
55
+ ]
56
+ },
57
+ connectorDown: {
58
+ class: [
59
+ // Spacing
60
+ 'mx-auto my-0',
61
+
62
+ // Size
63
+ 'w-px h-[20px]',
64
+
65
+ // Color
66
+ 'bg-surface-200 dark:bg-surface-700'
67
+ ]
68
+ },
69
+ connectorLeft: ({ context }) => ({
70
+ class: [
71
+ // Alignment
72
+ 'text-center align-top',
73
+
74
+ // Spacing
75
+ 'py-0 px-3',
76
+
77
+ // Shape
78
+ 'rounded-none border-r',
79
+ { 'border-t': context.lineTop },
80
+
81
+ // Color
82
+ 'border-surface-200 dark:border-surface-700'
83
+ ]
84
+ }),
85
+ connectorRight: ({ context }) => ({
86
+ class: [
87
+ // Alignment
88
+ 'text-center align-top',
89
+
90
+ // Spacing
91
+ 'py-0 px-3',
92
+
93
+ // Shape
94
+ 'rounded-none',
95
+
96
+ // Color
97
+ { 'border-t border-surface-200 dark:border-surface-700': context.lineTop }
98
+ ]
99
+ }),
100
+ nodeCell: {
101
+ class: 'text-center align-top py-0 px-3'
102
+ },
103
+ nodeToggleButton: {
104
+ class: [
105
+ // Position
106
+ 'absolute bottom-[-0.75rem] left-2/4 -ml-3',
107
+ 'z-20',
108
+
109
+ // Flexbox
110
+ 'flex items-center justify-center',
111
+
112
+ // Size
113
+ 'w-6 h-6',
114
+
115
+ // Shape
116
+ 'rounded-full',
117
+
118
+ // Color
119
+ 'bg-inherit text-inherit',
120
+
121
+ // Focus
122
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
123
+
124
+ // Misc
125
+ 'cursor-pointer no-underline select-none'
126
+ ]
127
+ },
128
+ nodeToggleButtonIcon: {
129
+ class: [
130
+ // Position
131
+ 'relative inline-block',
132
+
133
+ // Size
134
+ 'w-4 h-4'
135
+ ]
136
+ }
137
+ };
@@ -0,0 +1,18 @@
1
+ export default {
2
+ root: {
3
+ class: [
4
+ 'relative',
5
+ '[&>[data-pc-name=pcbadge]]:absolute',
6
+ '[&>[data-pc-name=pcbadge]]:top-0',
7
+ '[&>[data-pc-name=pcbadge]]:right-0',
8
+ '[&>[data-pc-name=pcbadge]]:translate-x-1/2',
9
+ '[&>[data-pc-name=pcbadge]]:-translate-y-1/2',
10
+ '[&>[data-pc-name=pcbadge]]:m-0',
11
+ '[&>[data-pc-name=pcbadge]]:origin-[100%_0]',
12
+ '[&>[data-pc-name=pcbadge]]:outline',
13
+ '[&>[data-pc-name=pcbadge]]:outline-[2px]',
14
+ '[&>[data-pc-name=pcbadge]]:outline-surface-0',
15
+ 'dark:[&>[data-pc-name=pcbadge]]:outline-surface-900'
16
+ ]
17
+ }
18
+ };
@@ -0,0 +1,178 @@
1
+ export default {
2
+ root: {
3
+ class: [
4
+ // Flex & Alignment
5
+ 'flex items-center justify-center flex-wrap',
6
+
7
+ // Spacing
8
+ 'px-4 py-2',
9
+
10
+ // Shape
11
+ 'border-0',
12
+
13
+ // Color
14
+ 'bg-surface-0 dark:bg-surface-800',
15
+ 'text-surface-500 dark:text-white/60'
16
+ ]
17
+ },
18
+ first: ({ context }) => ({
19
+ class: [
20
+ 'relative',
21
+
22
+ // Flex & Alignment
23
+ 'inline-flex items-center justify-center',
24
+
25
+ // Shape
26
+ 'border-0 rounded-full dark:rounded-md',
27
+
28
+ // Size
29
+ 'min-w-[3rem] h-12 m-[0.143rem]',
30
+ 'leading-none',
31
+
32
+ // Color
33
+ 'text-surface-500 dark:text-white/60',
34
+
35
+ // State
36
+ {
37
+ 'hover:bg-surface-50 dark:hover:bg-surface-700/70': !context.disabled,
38
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50': !context.disabled
39
+ },
40
+
41
+ // Transition
42
+ 'transition duration-200',
43
+
44
+ // Misc
45
+ 'user-none overflow-hidden',
46
+ { 'cursor-default pointer-events-none opacity-60': context.disabled }
47
+ ]
48
+ }),
49
+ prev: ({ context }) => ({
50
+ class: [
51
+ 'relative',
52
+
53
+ // Flex & Alignment
54
+ 'inline-flex items-center justify-center',
55
+
56
+ // Shape
57
+ 'border-0 rounded-full dark:rounded-md',
58
+
59
+ // Size
60
+ 'min-w-[3rem] h-12 m-[0.143rem]',
61
+ 'leading-none',
62
+
63
+ // Color
64
+ 'text-surface-500 dark:text-white/60',
65
+
66
+ // State
67
+ {
68
+ 'hover:bg-surface-50 dark:hover:bg-surface-700/70': !context.disabled,
69
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50': !context.disabled
70
+ },
71
+
72
+ // Transition
73
+ 'transition duration-200',
74
+
75
+ // Misc
76
+ 'user-none overflow-hidden',
77
+ { 'cursor-default pointer-events-none opacity-60': context.disabled }
78
+ ]
79
+ }),
80
+ next: ({ context }) => ({
81
+ class: [
82
+ 'relative',
83
+
84
+ // Flex & Alignment
85
+ 'inline-flex items-center justify-center',
86
+
87
+ // Shape
88
+ 'border-0 rounded-full dark:rounded-md',
89
+
90
+ // Size
91
+ 'min-w-[3rem] h-12 m-[0.143rem]',
92
+ 'leading-none',
93
+
94
+ // Color
95
+ 'text-surface-500 dark:text-white/60',
96
+
97
+ // State
98
+ {
99
+ 'hover:bg-surface-50 dark:hover:bg-surface-700/70': !context.disabled,
100
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50': !context.disabled
101
+ },
102
+
103
+ // Transition
104
+ 'transition duration-200',
105
+
106
+ // Misc
107
+ 'user-none overflow-hidden',
108
+ { 'cursor-default pointer-events-none opacity-60': context.disabled }
109
+ ]
110
+ }),
111
+ last: ({ context }) => ({
112
+ class: [
113
+ 'relative',
114
+
115
+ // Flex & Alignment
116
+ 'inline-flex items-center justify-center',
117
+
118
+ // Shape
119
+ 'border-0 rounded-full dark:rounded-md',
120
+
121
+ // Size
122
+ 'min-w-[3rem] h-12 m-[0.143rem]',
123
+ 'leading-none',
124
+
125
+ // Color
126
+ 'text-surface-500 dark:text-white/60',
127
+
128
+ // State
129
+ {
130
+ 'hover:bg-surface-50 dark:hover:bg-surface-700/70': !context.disabled,
131
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50': !context.disabled
132
+ },
133
+
134
+ // Transition
135
+ 'transition duration-200',
136
+
137
+ // Misc
138
+ 'user-none overflow-hidden',
139
+ { 'cursor-default pointer-events-none opacity-60': context.disabled }
140
+ ]
141
+ }),
142
+ page: ({ context }) => ({
143
+ class: [
144
+ 'relative',
145
+
146
+ // Flex & Alignment
147
+ 'inline-flex items-center justify-center',
148
+
149
+ // Shape
150
+ 'border-0 rounded-full dark:rounded-md',
151
+
152
+ // Size
153
+ 'min-w-[3rem] h-12 m-[0.143rem]',
154
+ 'leading-none',
155
+
156
+ // Color
157
+ 'text-surface-500 dark:text-white/80',
158
+ {
159
+ 'bg-highlight': context.active
160
+ },
161
+
162
+ // State
163
+ {
164
+ 'hover:bg-surface-50 dark:hover:bg-surface-700/70': !context.disabled && !context.active,
165
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50': !context.disabled
166
+ },
167
+
168
+ // Transition
169
+ 'transition duration-200',
170
+
171
+ // Misc
172
+ 'user-none overflow-hidden',
173
+ { 'cursor-default pointer-events-none opacity-60': context.disabled }
174
+ ]
175
+ }),
176
+ contentStart: 'mr-auto',
177
+ contentEnd: 'ml-auto'
178
+ };