@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,234 @@
1
+ import accordion from './accordion';
2
+ import accordioncontent from './accordioncontent';
3
+ import accordionheader from './accordionheader';
4
+ import accordionpanel from './accordionpanel';
5
+ import autocomplete from './autocomplete';
6
+ import avatar from './avatar';
7
+ import avatargroup from './avatargroup';
8
+ import badge from './badge';
9
+ import badgedirective from './badgedirective';
10
+ import blockui from './blockui';
11
+ import breadcrumb from './breadcrumb';
12
+ import button from './button';
13
+ import buttongroup from './buttongroup';
14
+ import card from './card';
15
+ import carousel from './carousel';
16
+ import cascadeselect from './cascadeselect';
17
+ import checkbox from './checkbox';
18
+ import chip from './chip';
19
+ import colorpicker from './colorpicker';
20
+ import confirmdialog from './confirmdialog';
21
+ import confirmpopup from './confirmpopup';
22
+ import contextmenu from './contextmenu';
23
+ import datatable from './datatable';
24
+ import dataview from './dataview';
25
+ import datepicker from './datepicker';
26
+ import deferred from './deferred';
27
+ import dialog from './dialog';
28
+ import divider from './divider';
29
+ import dock from './dock';
30
+ import drawer from './drawer';
31
+ import fieldset from './fieldset';
32
+ import fileupload from './fileupload';
33
+ import floatlabel from './floatlabel';
34
+ import galleria from './galleria';
35
+ import global from './global';
36
+ import iconfield from './iconfield';
37
+ import image from './image';
38
+ import inplace from './inplace';
39
+ import inputgroup from './inputgroup';
40
+ import inputgroupaddon from './inputgroupaddon';
41
+ import inputmask from './inputmask';
42
+ import inputnumber from './inputnumber';
43
+ import inputotp from './inputotp';
44
+ import inputtext from './inputtext';
45
+ import knob from './knob';
46
+ import listbox from './listbox';
47
+ import megamenu from './megamenu';
48
+ import menu from './menu';
49
+ import menubar from './menubar';
50
+ import message from './message';
51
+ import metergroup from './metergroup';
52
+ import multiselect from './multiselect';
53
+ import orderlist from './orderlist';
54
+ import organizationchart from './organizationchart';
55
+ import overlaybadge from './overlaybadge';
56
+ import paginator from './paginator';
57
+ import panel from './panel';
58
+ import panelmenu from './panelmenu';
59
+ import password from './password';
60
+ import picklist from './picklist';
61
+ import popover from './popover';
62
+ import progressbar from './progressbar';
63
+ import progressspinner from './progressspinner';
64
+ import radiobutton from './radiobutton';
65
+ import rating from './rating';
66
+ import ripple from './ripple';
67
+ import scrollpanel from './scrollpanel';
68
+ import scrolltop from './scrolltop';
69
+ import select from './select';
70
+ import selectbutton from './selectbutton';
71
+ import skeleton from './skeleton';
72
+ import slider from './slider';
73
+ import speeddial from './speeddial';
74
+ import splitbutton from './splitbutton';
75
+ import splitter from './splitter';
76
+ import splitterpanel from './splitterpanel';
77
+ import step from './step';
78
+ import stepitem from './stepitem';
79
+ import steplist from './steplist';
80
+ import steppanels from './steppanels';
81
+ import stepper from './stepper';
82
+ import steps from './steps';
83
+ import tab from './tab';
84
+ import tablist from './tablist';
85
+ import tabmenu from './tabmenu';
86
+ import tabpanel from './tabpanel';
87
+ import tabpanels from './tabpanels';
88
+ import tabs from './tabs';
89
+ import tabview from './tabview';
90
+ import tag from './tag';
91
+ import terminal from './terminal';
92
+ import textarea from './textarea';
93
+ import tieredmenu from './tieredmenu';
94
+ import timeline from './timeline';
95
+ import toast from './toast';
96
+ import togglebutton from './togglebutton';
97
+ import toggleswitch from './toggleswitch';
98
+ import toolbar from './toolbar';
99
+ import tooltip from './tooltip';
100
+ import tree from './tree';
101
+ import treeselect from './treeselect';
102
+ import treetable from './treetable';
103
+
104
+ export default {
105
+ global,
106
+ directives: {
107
+ badge: badgedirective,
108
+ ripple,
109
+ tooltip
110
+ },
111
+
112
+ //forms
113
+ autocomplete,
114
+ select,
115
+ dropdown: select,
116
+ inputnumber,
117
+ inputtext,
118
+ datepicker,
119
+ calendar: datepicker,
120
+ checkbox,
121
+ radiobutton,
122
+ toggleswitch,
123
+ inputswitch: toggleswitch,
124
+ selectbutton,
125
+ slider,
126
+ rating,
127
+ multiselect,
128
+ togglebutton,
129
+ cascadeselect,
130
+ listbox,
131
+ colorpicker,
132
+ inputgroup,
133
+ inputgroupaddon,
134
+ inputmask,
135
+ knob,
136
+ treeselect,
137
+ textarea,
138
+ password,
139
+ iconfield,
140
+ floatlabel,
141
+ inputotp,
142
+
143
+ //buttons
144
+ button,
145
+ buttongroup,
146
+ splitbutton,
147
+ speeddial,
148
+
149
+ //data
150
+ paginator,
151
+ datatable,
152
+ tree,
153
+ dataview,
154
+ organizationchart,
155
+ orderlist,
156
+ picklist,
157
+ treetable,
158
+ timeline,
159
+
160
+ //panels
161
+ accordion,
162
+ accordionpanel,
163
+ accordionheader,
164
+ accordioncontent,
165
+ panel,
166
+ fieldset,
167
+ card,
168
+ tabview,
169
+ divider,
170
+ toolbar,
171
+ scrollpanel,
172
+ splitter,
173
+ splitterpanel,
174
+ stepper,
175
+ steplist,
176
+ step,
177
+ stepitem,
178
+ steppanels,
179
+ deferred,
180
+ tab,
181
+ tabs,
182
+ tablist,
183
+ tabpanels,
184
+ tabpanel,
185
+
186
+ //file
187
+ fileupload,
188
+
189
+ //menu
190
+ contextmenu,
191
+ menu,
192
+ menubar,
193
+ steps,
194
+ tieredmenu,
195
+ breadcrumb,
196
+ panelmenu,
197
+ megamenu,
198
+ dock,
199
+ tabmenu,
200
+
201
+ //overlays
202
+ dialog,
203
+ popover,
204
+ sidebar: popover,
205
+ drawer,
206
+ overlaypanel: drawer,
207
+ confirmpopup,
208
+ confirmdialog,
209
+
210
+ //messages
211
+ message,
212
+ toast,
213
+
214
+ //media
215
+ carousel,
216
+ galleria,
217
+ image,
218
+
219
+ //misc
220
+ badge,
221
+ overlaybadge,
222
+ avatar,
223
+ avatargroup,
224
+ tag,
225
+ chip,
226
+ progressbar,
227
+ skeleton,
228
+ scrolltop,
229
+ terminal,
230
+ blockui,
231
+ metergroup,
232
+ inplace,
233
+ progressspinner
234
+ };
@@ -0,0 +1,27 @@
1
+ export default {
2
+ display: {
3
+ class: [
4
+ // Display
5
+ 'inline',
6
+
7
+ // Spacing
8
+ 'p-3',
9
+
10
+ // Shape
11
+ 'rounded-md',
12
+
13
+ // Colors
14
+ 'text-surface-700 dark:text-white/80',
15
+
16
+ // States
17
+ 'hover:bg-surface-100 hover:text-surface-700 dark:hover:bg-surface-700/80 dark:hover:text-white/80',
18
+
19
+ // Transitions
20
+ 'transition',
21
+ 'duration-200',
22
+
23
+ // Misc
24
+ 'cursor-pointer'
25
+ ]
26
+ }
27
+ };
@@ -0,0 +1,5 @@
1
+ export default {
2
+ root: {
3
+ class: ['flex items-stretch', 'w-full']
4
+ }
5
+ };
@@ -0,0 +1,28 @@
1
+ export default {
2
+ root: {
3
+ class: [
4
+ // Flex
5
+ 'flex items-center justify-center',
6
+
7
+ // Shape
8
+ 'first:rounded-l-md',
9
+ 'last:rounded-r-md',
10
+ 'border-y',
11
+
12
+ 'last:border-r',
13
+ 'border-l',
14
+ 'border-r-0',
15
+
16
+ // Space
17
+ 'p-3',
18
+
19
+ // Size
20
+ 'min-w-[3rem]',
21
+
22
+ // Color
23
+ 'bg-surface-50 dark:bg-surface-800',
24
+ 'text-surface-600 dark:text-surface-400',
25
+ 'border-surface-300 dark:border-surface-600'
26
+ ]
27
+ }
28
+ };
@@ -0,0 +1,39 @@
1
+ export default {
2
+ root: ({ context, props, parent }) => ({
3
+ class: [
4
+ // Font
5
+ 'leading-[normal]',
6
+
7
+ // Spacing
8
+ 'm-0 p-3',
9
+
10
+ // Colors
11
+ 'text-surface-600 dark:text-surface-200',
12
+ 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
13
+ 'bg-surface-0 dark:bg-surface-900',
14
+
15
+ 'border',
16
+ { 'border-surface-300 dark:border-surface-600': !props.invalid },
17
+
18
+ // Invalid State
19
+ 'invalid:focus:ring-red-200',
20
+ 'invalid:hover:border-red-500',
21
+ { 'border-red-500 dark:border-red-400': props.invalid },
22
+
23
+ // States
24
+ {
25
+ 'hover:border-primary': !context.disabled && !props.invalid,
26
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50': !context.disabled,
27
+ 'opacity-60 select-none pointer-events-none cursor-default': context.disabled
28
+ },
29
+
30
+ // Filled State *for FloatLabel
31
+ { filled: parent.instance?.$name == 'FloatLabel' && props.modelValue !== null && props.modelValue?.length !== 0 },
32
+
33
+ // Misc
34
+ 'rounded-md',
35
+ 'appearance-none',
36
+ 'transition-colors duration-200'
37
+ ]
38
+ })
39
+ };
@@ -0,0 +1,167 @@
1
+ export default {
2
+ root: ({ props, parent }) => ({
3
+ class: [
4
+ // Flex
5
+ 'inline-flex',
6
+ 'relative',
7
+ { 'flex-col': props.showButtons && props.buttonLayout == 'vertical' },
8
+ { 'flex-1 w-[1%]': parent.instance.$name == 'InputGroup' },
9
+ { 'w-full': props.fluid },
10
+
11
+ // Shape
12
+ { 'first:rounded-l-md rounded-none last:rounded-r-md': parent.instance.$name == 'InputGroup' && !props.showButtons },
13
+ { 'border-0 border-y border-l last:border-r border-surface-300 dark:border-surface-600': parent.instance.$name == 'InputGroup' && !props.showButtons },
14
+ { 'first:ml-0 -ml-px': parent.instance.$name == 'InputGroup' && !props.showButtons },
15
+
16
+ //Sizing
17
+ { '!w-16': props.showButtons && props.buttonLayout == 'vertical' }
18
+ ]
19
+ }),
20
+ pcInput: {
21
+ root: ({ parent, context }) => ({
22
+ class: [
23
+ // Font
24
+ // 'text-base leading-none',
25
+ // 'leading-[normal]',
26
+
27
+ // Display
28
+ 'flex-auto',
29
+ { 'w-[1%]': parent.props.fluid },
30
+
31
+ //Text
32
+ { 'text-center': parent.props.showButtons && parent.props.buttonLayout == 'vertical' },
33
+
34
+ // Spacing
35
+ 'py-2 px-3',
36
+ 'm-0',
37
+
38
+ // Shape
39
+ 'rounded-md',
40
+ { 'rounded-l-none rounded-r-none': parent.props.showButtons && parent.props.buttonLayout == 'horizontal' },
41
+ { 'rounded-none': parent.props.showButtons && parent.props.buttonLayout == 'vertical' },
42
+
43
+ { 'border-0': parent.instance.$parentInstance?.$name == 'InputGroup' && !parent.props.showButtons },
44
+
45
+ // Colors
46
+ 'text-surface-800 dark:text-white/80',
47
+ 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
48
+ { 'bg-surface-0 dark:bg-surface-900': !context.disabled },
49
+ 'border',
50
+ { 'border-surface-300 dark:border-surface-700': !parent.props.invalid },
51
+
52
+ // Invalid State
53
+ 'invalid:focus:ring-red-200',
54
+ 'invalid:hover:border-red-500',
55
+ { 'border-red-500 dark:border-red-400': parent.props.invalid },
56
+
57
+ // States
58
+ { 'hover:border-primary': !parent.props.invalid },
59
+ 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10',
60
+ { 'opacity-60 select-none pointer-events-none cursor-default': context.disabled },
61
+
62
+ // Filled State *for FloatLabel
63
+ { filled: parent.instance?.$parentInstance?.$name == 'FloatLabel' && parent.state.d_modelValue !== null },
64
+
65
+ //Position
66
+ { 'order-2': parent.props.buttonLayout == 'horizontal' || parent.props.buttonLayout == 'vertical' }
67
+ ]
68
+ })
69
+ },
70
+ buttonGroup: ({ props }) => ({
71
+ class: [
72
+ 'absolute',
73
+
74
+ // Flex
75
+ 'flex',
76
+ 'flex-col',
77
+
78
+ 'top-px right-px',
79
+
80
+ { 'h-[calc(100%-2px)]': props.showButtons && props.buttonLayout === 'stacked' }
81
+ ]
82
+ }),
83
+ incrementButton: ({ props }) => ({
84
+ class: [
85
+ // Display
86
+ { 'flex flex-initial shrink-0': props.showButtons && props.buttonLayout === 'horizontal' },
87
+ { 'flex flex-auto': props.showButtons && props.buttonLayout === 'stacked' },
88
+
89
+ // Alignment
90
+ 'items-center',
91
+ 'justify-center',
92
+ 'text-center align-bottom',
93
+
94
+ //Position
95
+ 'relative',
96
+ { 'order-3': props.showButtons && props.buttonLayout === 'horizontal' },
97
+ { 'order-1': props.showButtons && props.buttonLayout === 'vertical' },
98
+
99
+ //Color
100
+ 'text-primary-contrast',
101
+ 'bg-primary',
102
+ 'border-primary',
103
+
104
+ // Sizing
105
+ 'w-[3rem]',
106
+ { 'px-4 py-3': props.showButtons && props.buttonLayout !== 'stacked' },
107
+ { 'p-0': props.showButtons && props.buttonLayout === 'stacked' },
108
+ { 'w-full': props.showButtons && props.buttonLayout === 'vertical' },
109
+
110
+ // Shape
111
+ 'rounded-md',
112
+ { 'rounded-tl-none rounded-br-none rounded-bl-none': props.showButtons && props.buttonLayout == 'stacked' },
113
+ { 'rounded-bl-none rounded-tl-none': props.showButtons && props.buttonLayout == 'horizontal' },
114
+ { 'rounded-bl-none rounded-br-none': props.showButtons && props.buttonLayout == 'vertical' },
115
+
116
+ //States
117
+ 'focus:outline-none focus:outline-offset-0 focus:ring',
118
+ 'hover:bg-primary-emphasis hover:border-primary-emphasis',
119
+
120
+ //Misc
121
+ 'cursor-pointer overflow-hidden select-none'
122
+ ]
123
+ }),
124
+ incrementIcon: 'inline-block w-4 h-4',
125
+ decrementButton: ({ props }) => ({
126
+ class: [
127
+ // Display
128
+ { 'flex flex-initial shrink-0': props.showButtons && props.buttonLayout === 'horizontal' },
129
+ { 'flex flex-auto': props.showButtons && props.buttonLayout === 'stacked' },
130
+
131
+ // Alignment
132
+ 'items-center',
133
+ 'justify-center',
134
+ 'text-center align-bottom',
135
+
136
+ //Position
137
+ 'relative',
138
+ { 'order-1': props.showButtons && props.buttonLayout == 'horizontal' },
139
+ { 'order-3': props.showButtons && props.buttonLayout == 'vertical' },
140
+
141
+ //Color
142
+ 'text-primary-contrast',
143
+ 'bg-primary',
144
+ 'border-primary',
145
+
146
+ // Sizing
147
+ 'w-[3rem]',
148
+ { 'px-4 py-3': props.showButtons && props.buttonLayout !== 'stacked' },
149
+ { 'p-0': props.showButtons && props.buttonLayout == 'stacked' },
150
+ { 'w-full': props.showButtons && props.buttonLayout == 'vertical' },
151
+
152
+ // Shape
153
+ 'rounded-md',
154
+ { 'rounded-tr-none rounded-tl-none rounded-bl-none': props.showButtons && props.buttonLayout == 'stacked' },
155
+ { 'rounded-tr-none rounded-br-none ': props.showButtons && props.buttonLayout == 'horizontal' },
156
+ { 'rounded-tr-none rounded-tl-none ': props.showButtons && props.buttonLayout == 'vertical' },
157
+
158
+ //States
159
+ 'focus:outline-none focus:outline-offset-0 focus:ring',
160
+ 'hover:bg-primary-emphasis hover:border-primary-emphasis',
161
+
162
+ //Misc
163
+ 'cursor-pointer overflow-hidden select-none'
164
+ ]
165
+ }),
166
+ decrementIcon: 'inline-block w-4 h-4'
167
+ };
@@ -0,0 +1,10 @@
1
+ export default {
2
+ root: {
3
+ class: [
4
+ // Alignment
5
+ 'flex items-center',
6
+ 'gap-2',
7
+ '[&_[data-pc-name=pcinput]]:w-10'
8
+ ]
9
+ }
10
+ };
@@ -0,0 +1,80 @@
1
+ export default {
2
+ root: ({ props }) => ({
3
+ class: [
4
+ 'inline-block relative',
5
+ 'w-12 h-7',
6
+ 'rounded-2xl',
7
+ {
8
+ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
9
+ }
10
+ ]
11
+ }),
12
+ slider: ({ props }) => ({
13
+ class: [
14
+ // Position
15
+ 'absolute top-0 left-0 right-0 bottom-0',
16
+ { 'before:transform before:translate-x-5': props.modelValue == props.trueValue },
17
+
18
+ // Shape
19
+ 'rounded-2xl',
20
+
21
+ // Before:
22
+ 'before:absolute before:top-1/2 before:left-1',
23
+ 'before:-mt-2.5',
24
+ 'before:h-5 before:w-5',
25
+ 'before:rounded-full',
26
+ 'before:duration-200',
27
+ 'before:bg-surface-0 before:dark:bg-surface-900',
28
+
29
+ // Colors
30
+ 'border',
31
+ {
32
+ 'bg-surface-200 dark:bg-surface-700': !(props.modelValue == props.trueValue),
33
+ 'bg-primary': props.modelValue == props.trueValue
34
+ },
35
+
36
+ { 'border-transparent': !props.invalid },
37
+
38
+ // Invalid State
39
+ { 'border-red-500 dark:border-red-400': props.invalid },
40
+
41
+ // States
42
+ { 'peer-hover:bg-surface-300 dark:peer-hover:bg-surface-600 ': !(props.modelValue == props.trueValue) && !props.disabled },
43
+ { 'peer-hover:bg-primary-emphasis ': props.modelValue == props.trueValue && !props.disabled },
44
+ 'peer-focus-visible:ring peer-focus-visible:ring-primary-400/50 dark:peer-focus-visible:ring-primary-300/50',
45
+
46
+ // Transition
47
+ 'transition-colors duration-200',
48
+
49
+ // Misc
50
+ 'cursor-pointer'
51
+ ]
52
+ }),
53
+ input: {
54
+ class: [
55
+ 'peer',
56
+
57
+ // Size
58
+ 'w-full ',
59
+ 'h-full',
60
+
61
+ // Position
62
+ 'absolute',
63
+ 'top-0 left-0',
64
+ 'z-10',
65
+
66
+ // Spacing
67
+ 'p-0',
68
+ 'm-0',
69
+
70
+ // Shape
71
+ 'opacity-0',
72
+ 'rounded-[2.5rem]',
73
+ 'outline-none',
74
+
75
+ // Misc
76
+ 'appearance-none',
77
+ 'cursor-pointer'
78
+ ]
79
+ }
80
+ };
@@ -0,0 +1,54 @@
1
+ export default {
2
+ root: ({ props, context, parent }) => ({
3
+ class: [
4
+ // Font
5
+ 'leading-[normal]',
6
+
7
+ // Flex
8
+ { 'flex-1 w-[1%]': parent.instance.$name == 'InputGroup' },
9
+
10
+ // Spacing
11
+ 'm-0',
12
+ { 'w-full': props.fluid },
13
+
14
+ // Size
15
+ {
16
+ 'px-4 py-4': props.size == 'large',
17
+ 'px-2 py-2': props.size == 'small',
18
+ 'p-3': props.size == null
19
+ },
20
+
21
+ // Shape
22
+ { 'rounded-md': parent.instance.$name !== 'InputGroup' },
23
+ { 'first:rounded-l-md rounded-none last:rounded-r-md': parent.instance.$name == 'InputGroup' },
24
+ { 'border-0 border-y border-l last:border-r': parent.instance.$name == 'InputGroup' },
25
+ { 'first:ml-0 -ml-px': parent.instance.$name == 'InputGroup' && !props.showButtons },
26
+
27
+ // Colors
28
+ 'text-surface-800 dark:text-white/80',
29
+ 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
30
+ 'bg-surface-0 dark:bg-surface-900',
31
+ 'border',
32
+ { 'border-surface-300 dark:border-surface-600': !props.invalid },
33
+
34
+ // Invalid State
35
+ 'invalid:focus:ring-red-200',
36
+ 'invalid:hover:border-red-500',
37
+ { 'border-red-500 dark:border-red-400': props.invalid },
38
+
39
+ // States
40
+ {
41
+ 'hover:border-primary': !context.disabled && !props.invalid,
42
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10': !context.disabled,
43
+ 'opacity-60 select-none pointer-events-none cursor-default': context.disabled
44
+ },
45
+
46
+ // Filled State *for FloatLabel
47
+ { filled: parent.instance?.$name == 'FloatLabel' && context.filled },
48
+
49
+ // Misc
50
+ 'appearance-none',
51
+ 'transition-colors duration-200'
52
+ ]
53
+ })
54
+ };
@@ -0,0 +1,44 @@
1
+ export default {
2
+ root: ({ props }) => ({
3
+ class: [
4
+ // Misc
5
+ { 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }
6
+ ]
7
+ }),
8
+ range: {
9
+ class: [
10
+ // Stroke
11
+ 'stroke-current',
12
+
13
+ // Color
14
+ 'stroke-surface-200 dark:stroke-surface-700',
15
+
16
+ // Fill
17
+ 'fill-none',
18
+
19
+ // Transition
20
+ 'transition duration-100 ease-in'
21
+ ]
22
+ },
23
+ value: {
24
+ class: [
25
+ // Animation
26
+ 'animate-dash-frame',
27
+
28
+ // Color
29
+ 'stroke-primary',
30
+
31
+ // Fill
32
+ 'fill-none'
33
+ ]
34
+ },
35
+ text: {
36
+ class: [
37
+ // Text Style
38
+ 'text-center text-xl',
39
+
40
+ // Color
41
+ 'fill-surface-600 dark:fill-surface-200'
42
+ ]
43
+ }
44
+ };