@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.
- package/ReleaseNote.md +7 -0
- package/dist/buildinschemas/docnoformat.js +6 -6
- package/dist/buildinschemas/docnoformat.js.map +1 -1
- package/dist/buildinschemas/documentevent.js +1 -1
- package/dist/buildinschemas/documentevent.js.map +1 -1
- package/dist/buildinschemas/organization.js +1 -1
- package/dist/buildinschemas/organization.js.map +1 -1
- package/dist/buildinschemas/tenant.js +1 -1
- package/dist/buildinschemas/tenant.js.map +1 -1
- package/dist/buildinschemas/user.js +2 -2
- package/dist/buildinschemas/user.js.map +1 -1
- package/dist/buildinschemas/webhook.d.ts.map +1 -1
- package/dist/buildinschemas/webhook.js +1 -0
- package/dist/buildinschemas/webhook.js.map +1 -1
- package/dist/framework.d.ts.map +1 -1
- package/dist/framework.js +30 -3
- package/dist/framework.js.map +1 -1
- package/dist/generate.d.ts.map +1 -1
- package/dist/generate.js +21 -20
- package/dist/generate.js.map +1 -1
- package/dist/index.js +0 -0
- package/dist/processors/jrxmlbuilder.js +3 -3
- package/dist/processors/jrxmlbuilder.js.map +1 -1
- package/dist/processors/jsonschemabuilder.d.ts.map +1 -1
- package/dist/processors/jsonschemabuilder.js +17 -10
- package/dist/processors/jsonschemabuilder.js.map +1 -1
- package/dist/type.d.ts +1 -1
- package/dist/type.d.ts.map +1 -1
- package/package.json +2 -3
- package/reset-install.sh +3 -0
- package/src/buildinschemas/docnoformat.ts +6 -6
- package/src/buildinschemas/documentevent.ts +1 -1
- package/src/buildinschemas/organization.ts +1 -1
- package/src/buildinschemas/tenant.ts +1 -1
- package/src/buildinschemas/user.ts +2 -2
- package/src/buildinschemas/webhook.ts +1 -0
- package/src/framework.ts +33 -5
- package/src/generate.ts +22 -20
- package/src/processors/jrxmlbuilder.ts +3 -3
- package/src/processors/jsonschemabuilder.ts +27 -14
- package/src/type.ts +1 -1
- package/templates/basic/nest/controller.ts.eta +6 -5
- package/templates/basic/nest/resolver.ts.eta +4 -2
- package/templates/basic/nest/service.ts.eta +5 -2
- package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +3 -3
- package/templates/nest/.gitignore.eta +4 -5
- package/templates/nest/src/{app.module.ts.eta → app.module.ts._eta} +2 -2
- package/templates/nest/src/{main.ts.eta → main.ts._eta} +2 -2
- package/templates/nest/src/printapi/printapi.service.ts.eta +7 -8
- package/templates/nest/src/simpleapp/.gitignore.eta +1 -1
- package/templates/nest/src/simpleapp/generate/commons/audittrail.service.ts.eta +2 -2
- package/templates/nest/src/simpleapp/generate/commons/customkeycloa.guard.ts.eta +14 -12
- package/templates/nest/src/simpleapp/generate/commons/customkeycloak.guard.ts.eta +36 -42
- package/templates/nest/src/simpleapp/generate/commons/docnogenerator.service.ts.eta +6 -3
- package/templates/nest/src/simpleapp/generate/commons/encryption.static.ts.eta +56 -61
- package/templates/nest/src/simpleapp/generate/commons/middlewares/tenant.middleware.ts.eta +65 -88
- package/templates/nest/src/simpleapp/generate/commons/robotuser.service.ts.eta +10 -9
- package/templates/nest/src/simpleapp/generate/commons/roles/roles.guard.ts.eta +10 -3
- package/templates/nest/src/simpleapp/generate/commons/runwebhook.service.ts.eta +71 -77
- package/templates/nest/src/simpleapp/generate/commons/user.context.ts.eta +439 -293
- package/templates/nest/src/simpleapp/generate/processors/autoinc.processor.ts.eta +20 -5
- package/templates/nest/src/simpleapp/generate/processors/simpleapp.processor.ts.eta +423 -38
- package/templates/nest/src/simpleapp/profile/{profile.controller.ts.eta → profile.controller.ts._eta} +2 -2
- package/templates/nest/src/simpleapp/profile/{profile.service.ts.eta → profile.service.ts._eta} +2 -2
- package/templates/nest/src/simpleapp/simpleapp.module.ts.eta +15 -4
- package/templates/nuxt/assets/css/style.css._eta +74 -28
- package/templates/nuxt/components/button/ButtonMultiple.vue._eta +1 -1
- package/templates/nuxt/components/calendar/{CalendarByResource.vue.eta → CalendarByResource.vue._eta} +2 -2
- package/templates/nuxt/components/calendar/{CalendarInput.vue.eta → CalendarInput.vue._eta} +3 -3
- package/templates/nuxt/components/calendar/{CalendarSmall.vue.eta → CalendarSmall.vue._eta} +13 -7
- package/templates/nuxt/components/debug/{DebugDocumentData.vue.eta → DebugDocumentData.vue._eta} +4 -5
- package/templates/nuxt/components/form/{FormDocnoformat.vue.eta → FormDocnoformat.vue._eta} +2 -1
- package/templates/nuxt/components/form/user/{FormUserPermission.vue.eta → FormUserPermission.vue._eta} +6 -0
- package/templates/nuxt/components/header/{HeaderBreadcrumb.vue.eta → HeaderBreadcrumb.vue._eta} +5 -5
- package/templates/nuxt/components/header/button/{HeaderButtonProfile.vue.eta → HeaderButtonProfile.vue._eta} +2 -2
- package/templates/nuxt/components/header/button/task/{HeaderButtonTaskList.vue.eta → HeaderButtonTaskList.vue._eta} +4 -4
- package/templates/nuxt/components/image/ImageAvatar.vue.eta +56 -0
- package/templates/nuxt/components/image/{ImageOrganization.vue.eta.vue → ImageOrganization.vue.eta} +15 -9
- package/templates/nuxt/components/image/{ImageToBase64Uploader.vue.eta.vue → ImageToBase64Uploader.vue.eta} +28 -18
- package/templates/nuxt/components/list/{ListDocumentTable.vue.eta → ListDocumentTable.vue._eta} +3 -3
- package/templates/nuxt/components/list/{ListItem.vue.eta → ListItem.vue._eta} +2 -2
- package/templates/nuxt/components/list/{ListMessages.vue.eta → ListMessages.vue._eta} +8 -2
- package/templates/nuxt/components/list/{ListView.vue.eta → ListView.vue._eta} +2 -2
- package/templates/nuxt/components/overlay/{OverlayPanelWithToolBar.vue.eta → OverlayPanelWithToolBar.vue._eta} +5 -5
- package/templates/nuxt/components/overlay/{OverlaySideBarCrud.vue.eta → OverlaySideBarCrud.vue._eta} +4 -4
- package/templates/nuxt/components/overlay/{OverlayViewer.vue.eta → OverlayViewer.vue._eta} +2 -2
- package/templates/nuxt/components/page/{PageDocList.vue.eta → PageDocList.vue._eta} +5 -5
- package/templates/nuxt/components/renderer/RendererDateAge.vue.eta +19 -0
- package/templates/nuxt/components/renderer/{RendererDateTime.vue.eta → RendererDateTime.vue._eta} +2 -2
- package/templates/nuxt/components/renderer/{RendererDocHistories.vue.eta → RendererDocHistories.vue._eta} +6 -0
- package/templates/nuxt/components/renderer/{RendererForeignKey.vue.eta → RendererForeignKey.vue._eta} +2 -2
- package/templates/nuxt/components/renderer/{RendererLink.vue.eta → RendererLink.vue._eta} +2 -2
- package/templates/nuxt/components/renderer/{RendererTime.vue.eta → RendererTime.vue._eta} +2 -2
- package/templates/nuxt/components/renderer/{RendererViewer.vue.eta → RendererViewer.vue._eta} +2 -2
- package/templates/nuxt/components/select/{SelectTemplate.vue.eta → SelectTemplate.vue._eta} +2 -2
- package/templates/nuxt/components/session/{SessionBlock.vue.eta → SessionBlock.vue._eta} +2 -2
- package/templates/nuxt/components/simpleApp/SimpleAppAutocomplete.vue.eta +55 -55
- package/templates/nuxt/components/simpleApp/SimpleAppCalendarInput.vue.eta +13 -11
- package/templates/nuxt/components/simpleApp/SimpleAppChildrenList.vue.eta +6 -3
- package/templates/nuxt/components/simpleApp/SimpleAppDocumentNo.vue.eta +33 -28
- package/templates/nuxt/components/simpleApp/SimpleAppFieldContainer.vue.eta +19 -28
- package/templates/nuxt/components/simpleApp/SimpleAppInput.vue.eta +113 -105
- package/templates/nuxt/components/simpleApp/SimpleAppInputTable.vue.eta +3 -3
- package/templates/nuxt/components/simpleApp/SimpleAppJsonSchemaForm.vue.eta +3 -16
- package/templates/nuxt/components/simpleApp/SimpleAppUserPicker.vue.eta +10 -12
- package/templates/nuxt/components/table/{TableDocuments.vue.eta → TableDocuments.vue._eta} +2 -2
- package/templates/nuxt/components/user/{UserButtonPermissionInfo.vue.eta → UserButtonPermissionInfo.vue._eta} +4 -4
- package/templates/nuxt/components/user/{UserInvitation.vue.eta → UserInvitation.vue._eta} +2 -2
- package/templates/nuxt/components/user/{UserProfileListItem.vue.eta → UserProfileListItem.vue._eta} +2 -2
- package/templates/nuxt/components/user/{UserTenantPicker.vue.eta → UserTenantPicker.vue._eta} +2 -2
- package/templates/nuxt/composables/getOpenApi.generate.ts.eta +11 -3
- package/templates/nuxt/composables/getUserStore.generate.ts.eta +1 -1
- package/templates/nuxt/composables/graphquery.generate.ts.eta +1 -1
- package/templates/nuxt/composables/recently.generate.ts.eta +0 -1
- package/templates/nuxt/composables/stringHelper.generate.ts.eta +5 -2
- package/templates/nuxt/nuxt.config.ts._eta +6 -5
- package/templates/nuxt/pages/[xorg]/docnoformat/[id].vue.eta +0 -1
- package/templates/nuxt/pages/[xorg]/{docnoformat.vue.eta → docnoformat.vue._eta} +1 -0
- package/templates/nuxt/pages/[xorg]/organization/[id].vue.eta +13 -9
- package/templates/nuxt/pages/[xorg]/organization/new.vue.eta +10 -12
- package/templates/nuxt/pages/[xorg]/{user.vue.eta → user.vue._eta} +2 -2
- package/templates/nuxt/pages/index.vue._eta +1 -1
- package/templates/nuxt/pages/{profile.vue.eta → profile.vue._eta} +2 -2
- package/templates/nuxt/plugins/10.simpleapp-event.ts.eta +6 -0
- package/templates/nuxt/plugins/20.simpleapp-userstore.ts.eta +89 -12
- package/templates/nuxt/plugins/40.pusher.ts.eta +8 -5
- package/templates/nuxt/presets/lara/accordion/index.js +79 -0
- package/templates/nuxt/presets/lara/accordioncontent/index.js +3 -0
- package/templates/nuxt/presets/lara/accordionheader/index.js +11 -0
- package/templates/nuxt/presets/lara/accordionpanel/index.js +18 -0
- package/templates/nuxt/presets/lara/autocomplete/index.js +208 -0
- package/templates/nuxt/presets/lara/avatar/index.js +43 -0
- package/templates/nuxt/presets/lara/avatargroup/index.js +5 -0
- package/templates/nuxt/presets/lara/badge/index.js +47 -0
- package/templates/nuxt/presets/lara/badgedirective/index.js +43 -0
- package/templates/nuxt/presets/lara/blockui/index.js +4 -0
- package/templates/nuxt/presets/lara/breadcrumb/index.js +64 -0
- package/templates/nuxt/presets/lara/button/index.js +238 -0
- package/templates/nuxt/presets/lara/buttongroup/index.js +12 -0
- package/templates/nuxt/presets/lara/card/index.js +37 -0
- package/templates/nuxt/presets/lara/carousel/index.js +103 -0
- package/templates/nuxt/presets/lara/cascadeselect/index.js +199 -0
- package/templates/nuxt/presets/lara/checkbox/index.js +104 -0
- package/templates/nuxt/presets/lara/chip/index.js +42 -0
- package/templates/nuxt/presets/lara/colorpicker/index.js +123 -0
- package/templates/nuxt/presets/lara/confirmdialog/index.js +3 -0
- package/templates/nuxt/presets/lara/confirmpopup/index.js +56 -0
- package/templates/nuxt/presets/lara/contextmenu/index.js +126 -0
- package/templates/nuxt/presets/lara/datatable/index.js +403 -0
- package/templates/nuxt/presets/lara/dataview/index.js +28 -0
- package/templates/nuxt/presets/lara/datepicker/index.js +435 -0
- package/templates/nuxt/presets/lara/deferred/index.js +3 -0
- package/templates/nuxt/presets/lara/dialog/index.js +148 -0
- package/templates/nuxt/presets/lara/divider/index.js +67 -0
- package/templates/nuxt/presets/lara/dock/index.js +86 -0
- package/templates/nuxt/presets/lara/drawer/index.js +149 -0
- package/templates/nuxt/presets/lara/fieldset/index.js +84 -0
- package/templates/nuxt/presets/lara/fileupload/index.js +95 -0
- package/templates/nuxt/presets/lara/floatlabel/index.js +26 -0
- package/templates/nuxt/presets/lara/galleria/index.js +308 -0
- package/templates/nuxt/presets/lara/global.js +90 -0
- package/templates/nuxt/presets/lara/iconfield/index.js +27 -0
- package/templates/nuxt/presets/lara/image/index.js +206 -0
- package/templates/nuxt/presets/lara/index.js +234 -0
- package/templates/nuxt/presets/lara/inplace/index.js +27 -0
- package/templates/nuxt/presets/lara/inputgroup/index.js +5 -0
- package/templates/nuxt/presets/lara/inputgroupaddon/index.js +28 -0
- package/templates/nuxt/presets/lara/inputmask/index.js +39 -0
- package/templates/nuxt/presets/lara/inputnumber/index.js +167 -0
- package/templates/nuxt/presets/lara/inputotp/index.js +10 -0
- package/templates/nuxt/presets/lara/inputswitch/index.js +80 -0
- package/templates/nuxt/presets/lara/inputtext/index.js +54 -0
- package/templates/nuxt/presets/lara/knob/index.js +44 -0
- package/templates/nuxt/presets/lara/listbox/index.js +117 -0
- package/templates/nuxt/presets/lara/megamenu/index.js +198 -0
- package/templates/nuxt/presets/lara/menu/index.js +96 -0
- package/templates/nuxt/presets/lara/menubar/index.js +176 -0
- package/templates/nuxt/presets/lara/message/index.js +92 -0
- package/templates/nuxt/presets/lara/metergroup/index.js +96 -0
- package/templates/nuxt/presets/lara/multiselect/index.js +201 -0
- package/templates/nuxt/presets/lara/orderlist/index.js +13 -0
- package/templates/nuxt/presets/lara/organizationchart/index.js +137 -0
- package/templates/nuxt/presets/lara/overlaybadge/index.js +18 -0
- package/templates/nuxt/presets/lara/paginator/index.js +178 -0
- package/templates/nuxt/presets/lara/panel/index.js +91 -0
- package/templates/nuxt/presets/lara/panelmenu/index.js +127 -0
- package/templates/nuxt/presets/lara/password/index.js +72 -0
- package/templates/nuxt/presets/lara/picklist/index.js +52 -0
- package/templates/nuxt/presets/lara/popover/index.js +31 -0
- package/templates/nuxt/presets/lara/progressbar/index.js +55 -0
- package/templates/nuxt/presets/lara/progressspinner/index.js +51 -0
- package/templates/nuxt/presets/lara/radiobutton/index.js +104 -0
- package/templates/nuxt/presets/lara/rating/index.js +63 -0
- package/templates/nuxt/presets/lara/ripple/index.js +6 -0
- package/templates/nuxt/presets/lara/scrollpanel/index.js +77 -0
- package/templates/nuxt/presets/lara/scrolltop/index.js +26 -0
- package/templates/nuxt/presets/lara/select/index.js +240 -0
- package/templates/nuxt/presets/lara/selectbutton/index.js +16 -0
- package/templates/nuxt/presets/lara/skeleton/index.js +16 -0
- package/templates/nuxt/presets/lara/slider/index.js +137 -0
- package/templates/nuxt/presets/lara/speeddial/index.js +57 -0
- package/templates/nuxt/presets/lara/splitbutton/index.js +19 -0
- package/templates/nuxt/presets/lara/splitter/index.js +61 -0
- package/templates/nuxt/presets/lara/splitterpanel/index.js +5 -0
- package/templates/nuxt/presets/lara/step/index.js +62 -0
- package/templates/nuxt/presets/lara/stepitem/index.js +11 -0
- package/templates/nuxt/presets/lara/steplist/index.js +3 -0
- package/templates/nuxt/presets/lara/steppanels/index.js +3 -0
- package/templates/nuxt/presets/lara/stepper/index.js +13 -0
- package/templates/nuxt/presets/lara/steps/index.js +111 -0
- package/templates/nuxt/presets/lara/tab/index.js +42 -0
- package/templates/nuxt/presets/lara/tablist/index.js +8 -0
- package/templates/nuxt/presets/lara/tabmenu/index.js +73 -0
- package/templates/nuxt/presets/lara/tabpanel/index.js +3 -0
- package/templates/nuxt/presets/lara/tabpanels/index.js +3 -0
- package/templates/nuxt/presets/lara/tabs/index.js +5 -0
- package/templates/nuxt/presets/lara/tabview/index.js +156 -0
- package/templates/nuxt/presets/lara/tag/index.js +38 -0
- package/templates/nuxt/presets/lara/terminal/index.js +60 -0
- package/templates/nuxt/presets/lara/textarea/index.js +39 -0
- package/templates/nuxt/presets/lara/tieredmenu/index.js +121 -0
- package/templates/nuxt/presets/lara/timeline/index.js +81 -0
- package/templates/nuxt/presets/lara/toast/index.js +102 -0
- package/templates/nuxt/presets/lara/togglebutton/index.js +45 -0
- package/templates/nuxt/presets/lara/toggleswitch/index.js +80 -0
- package/templates/nuxt/presets/lara/toolbar/index.js +28 -0
- package/templates/nuxt/presets/lara/tooltip/index.js +46 -0
- package/templates/nuxt/presets/lara/tree/index.js +101 -0
- package/templates/nuxt/presets/lara/treeselect/index.js +102 -0
- package/templates/nuxt/presets/lara/treetable/index.js +305 -0
- package/templates/nuxt/providers/my-provider.ts.eta +1 -1
- package/templates/nuxt/server/api/profile/[...].ts.eta +4 -3
- package/templates/nuxt/simpleapp/generate/clients/SimpleAppClient.ts.eta +10 -20
- package/templates/nuxt/tailwind.config.ts._eta +4 -15
- package/templates/nuxt/types/schema.ts.eta +1 -1
- package/templates/nuxt/types/user.ts.eta +6 -1
- package/templates/project/jsonschemas/appintegration.json_eta +227 -0
- package/templates/project/sharelibs/validate.ts.eta +23 -0
- package/templates/nuxt/components/image/ImageAvatar.vue.eta._vue +0 -57
|
@@ -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,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,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
|
+
};
|