@finema/core 1.4.220 → 2.1.0
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/README.md +79 -60
- package/dist/module.d.mts +4 -24
- package/dist/module.json +4 -3
- package/dist/module.mjs +75 -213
- package/dist/runtime/components/App.vue +27 -0
- package/dist/runtime/components/App.vue.d.ts +12 -0
- package/dist/runtime/components/DevToolsWindow/index.vue +312 -0
- package/dist/runtime/components/DevToolsWindow/index.vue.d.ts +2 -0
- package/dist/runtime/components/Dialog/index.vue +77 -110
- package/dist/runtime/components/Dialog/index.vue.d.ts +10 -0
- package/dist/runtime/components/Empty.vue +33 -18
- package/dist/runtime/components/Empty.vue.d.ts +12 -0
- package/dist/runtime/components/FlexDeck/Base.vue +154 -159
- package/dist/runtime/components/FlexDeck/Base.vue.d.ts +63 -0
- package/dist/runtime/components/FlexDeck/index.vue +67 -68
- package/dist/runtime/components/FlexDeck/index.vue.d.ts +43 -0
- package/dist/runtime/components/Form/FieldWrapper.vue +35 -23
- package/dist/runtime/components/Form/FieldWrapper.vue.d.ts +16 -0
- package/dist/runtime/components/Form/Fields.vue +92 -230
- package/dist/runtime/components/Form/Fields.vue.d.ts +14 -0
- package/dist/runtime/components/Form/InputCheckbox/index.vue +53 -28
- package/dist/runtime/components/Form/InputCheckbox/index.vue.d.ts +3 -0
- package/dist/runtime/components/Form/InputCheckbox/types.d.ts +5 -1
- package/dist/runtime/components/Form/InputDateTime/date_time_field.types.d.ts +1 -1
- package/dist/runtime/components/Form/InputDateTime/index.vue +97 -68
- package/dist/runtime/components/Form/InputDateTime/index.vue.d.ts +4 -0
- package/dist/runtime/components/Form/InputNumber/index.vue +61 -27
- package/dist/runtime/components/Form/InputNumber/index.vue.d.ts +5 -0
- package/dist/runtime/components/Form/InputNumber/types.d.ts +10 -5
- package/dist/runtime/components/Form/InputSelect/index.vue +95 -55
- package/dist/runtime/components/Form/InputSelect/index.vue.d.ts +5 -0
- package/dist/runtime/components/Form/InputSelect/types.d.ts +14 -8
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue +108 -54
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue.d.ts +3 -0
- package/dist/runtime/components/Form/InputSelectMultiple/types.d.ts +9 -8
- package/dist/runtime/components/Form/InputText/index.vue +135 -68
- package/dist/runtime/components/Form/InputText/index.vue.d.ts +5 -0
- package/dist/runtime/components/Form/InputText/types.d.ts +4 -3
- package/dist/runtime/components/Form/InputTextarea/index.vue +57 -25
- package/dist/runtime/components/Form/InputTextarea/index.vue.d.ts +3 -0
- package/dist/runtime/components/Form/InputTextarea/types.d.ts +7 -2
- package/dist/runtime/components/Form/InputToggle/index.vue +51 -27
- package/dist/runtime/components/Form/InputToggle/index.vue.d.ts +3 -0
- package/dist/runtime/components/Form/InputToggle/types.d.ts +5 -1
- package/dist/runtime/components/Form/index.vue +5 -6
- package/dist/runtime/components/Form/index.vue.d.ts +12 -0
- package/dist/runtime/components/Form/types.d.ts +13 -27
- package/dist/runtime/components/Image.vue +51 -36
- package/dist/runtime/components/Image.vue.d.ts +13 -0
- package/dist/runtime/components/Loader.vue +29 -27
- package/dist/runtime/components/Loader.vue.d.ts +22 -0
- package/dist/runtime/components/{LogItem.vue → Log/LogItem.vue} +44 -41
- package/dist/runtime/components/Log/LogItem.vue.d.ts +6 -0
- package/dist/runtime/components/Log/index.vue +28 -0
- package/dist/runtime/components/Log/index.vue.d.ts +7 -0
- package/dist/runtime/components/Table/Base.vue +166 -161
- package/dist/runtime/components/Table/Base.vue.d.ts +47 -0
- package/dist/runtime/components/Table/ColumnDate.vue +14 -16
- package/dist/runtime/components/Table/ColumnDate.vue.d.ts +8 -0
- package/dist/runtime/components/Table/ColumnDateTime.vue +16 -18
- package/dist/runtime/components/Table/ColumnDateTime.vue.d.ts +8 -0
- package/dist/runtime/components/Table/ColumnImage.vue +16 -15
- package/dist/runtime/components/Table/ColumnImage.vue.d.ts +8 -0
- package/dist/runtime/components/Table/ColumnNumber.vue +14 -14
- package/dist/runtime/components/Table/ColumnNumber.vue.d.ts +8 -0
- package/dist/runtime/components/Table/ColumnText.vue +24 -29
- package/dist/runtime/components/Table/ColumnText.vue.d.ts +8 -0
- package/dist/runtime/components/Table/Simple.vue +69 -70
- package/dist/runtime/components/Table/Simple.vue.d.ts +24 -0
- package/dist/runtime/components/Table/index.vue +178 -65
- package/dist/runtime/components/Table/index.vue.d.ts +25 -0
- package/dist/runtime/components/Table/types.d.ts +14 -18
- package/dist/runtime/components/Table/{types.mjs → types.js} +1 -0
- package/dist/runtime/components/TeleportSafe.vue +42 -40
- package/dist/runtime/components/TeleportSafe.vue.d.ts +16 -0
- package/dist/runtime/composables/loaderList.d.ts +2 -2
- package/dist/runtime/composables/loaderList.js +51 -0
- package/dist/runtime/composables/loaderObject.d.ts +1 -1
- package/dist/runtime/composables/loaderObject.js +50 -0
- package/dist/runtime/composables/loaderPage.d.ts +10 -11
- package/dist/runtime/composables/loaderPage.js +243 -0
- package/dist/runtime/composables/useApp.d.ts +4 -9
- package/dist/runtime/composables/{useApp.mjs → useApp.js} +0 -12
- package/dist/runtime/composables/useConfig.d.ts +3 -3
- package/dist/runtime/composables/useConfig.js +12 -0
- package/dist/runtime/composables/useDialog.d.ts +1 -7
- package/dist/runtime/composables/useDialog.js +53 -0
- package/dist/runtime/composables/useFlexDeck.d.ts +1 -1
- package/dist/runtime/composables/{useFlexDeck.mjs → useFlexDeck.js} +5 -5
- package/dist/runtime/composables/useForm.d.ts +5 -2
- package/dist/runtime/composables/useForm.js +37 -0
- package/dist/runtime/composables/useNotification.d.ts +6 -22
- package/dist/runtime/composables/{useNotification.mjs → useNotification.js} +5 -21
- package/dist/runtime/composables/useTable.d.ts +12 -11
- package/dist/runtime/composables/{useTable.mjs → useTable.js} +3 -8
- package/dist/runtime/composables/useUpload.d.ts +2 -2
- package/dist/runtime/composables/{useUpload.mjs → useUpload.js} +1 -1
- package/dist/runtime/helpers/apiBaseHelper.d.ts +29 -0
- package/dist/runtime/helpers/apiBaseHelper.js +63 -0
- package/dist/runtime/helpers/apiListHelper.d.ts +4 -6
- package/dist/runtime/helpers/apiListHelper.js +50 -0
- package/dist/runtime/helpers/apiObjectHelper.d.ts +19 -20
- package/dist/runtime/helpers/apiObjectHelper.js +51 -0
- package/dist/runtime/helpers/apiPageHelper.d.ts +44 -44
- package/dist/runtime/helpers/apiPageHelper.js +287 -0
- package/dist/runtime/helpers/componentHelper.d.ts +11 -12
- package/dist/runtime/helpers/{componentHelper.mjs → componentHelper.js} +2 -7
- package/dist/runtime/i18n/valibot.d.ts +69 -0
- package/dist/runtime/i18n/valibot.js +72 -0
- package/dist/runtime/plugin.d.ts +1 -1
- package/dist/runtime/plugin.js +12 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/theme/button.d.ts +5 -0
- package/dist/runtime/theme/button.js +1 -0
- package/dist/runtime/theme/dialog.d.ts +31 -0
- package/dist/runtime/theme/dialog.js +21 -0
- package/dist/runtime/theme/empty.d.ts +7 -0
- package/dist/runtime/theme/empty.js +7 -0
- package/dist/runtime/theme/form.d.ts +18 -0
- package/dist/runtime/theme/form.js +16 -0
- package/dist/runtime/theme/index.d.ts +10 -0
- package/dist/runtime/theme/index.js +10 -0
- package/dist/runtime/theme/input.d.ts +8 -0
- package/dist/runtime/theme/input.js +4 -0
- package/dist/runtime/theme/inputNumber.d.ts +8 -0
- package/dist/runtime/theme/inputNumber.js +4 -0
- package/dist/runtime/theme/loader.d.ts +28 -0
- package/dist/runtime/theme/loader.js +18 -0
- package/dist/runtime/theme/selectMenu.d.ts +17 -0
- package/dist/runtime/theme/selectMenu.js +18 -0
- package/dist/runtime/theme/table.d.ts +10 -0
- package/dist/runtime/theme/table.js +10 -0
- package/dist/runtime/theme/textarea.d.ts +5 -0
- package/dist/runtime/theme/textarea.js +1 -0
- package/dist/runtime/types/lib.d.ts +1 -1
- package/dist/runtime/utils/ArrayHelper.d.ts +1 -1
- package/dist/runtime/utils/{ArrayHelper.mjs → ArrayHelper.js} +1 -1
- package/dist/runtime/utils/ObjectHelper.d.ts +3 -3
- package/dist/runtime/utils/{ObjectHelper.mjs → ObjectHelper.js} +3 -3
- package/dist/runtime/utils/ParamHelper.d.ts +1 -1
- package/dist/runtime/utils/{ParamHelper.mjs → ParamHelper.js} +1 -1
- package/dist/types.d.mts +2 -15
- package/package.json +91 -100
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -50
- package/dist/runtime/components/Alert.vue +0 -48
- package/dist/runtime/components/Avatar.vue +0 -27
- package/dist/runtime/components/Badge.vue +0 -11
- package/dist/runtime/components/Breadcrumb.vue +0 -44
- package/dist/runtime/components/Button/Group.vue +0 -37
- package/dist/runtime/components/Button/index.vue +0 -75
- package/dist/runtime/components/Card.vue +0 -38
- package/dist/runtime/components/Core.vue +0 -45
- package/dist/runtime/components/Dropdown/index.vue +0 -70
- package/dist/runtime/components/Dropdown/types.d.ts +0 -2
- package/dist/runtime/components/Dropdown/types.mjs +0 -17
- package/dist/runtime/components/Form/InputDateTimeRange/date_range_time_field.types.d.ts +0 -17
- package/dist/runtime/components/Form/InputDateTimeRange/index.vue +0 -91
- package/dist/runtime/components/Form/InputRadio/index.vue +0 -27
- package/dist/runtime/components/Form/InputRadio/types.d.ts +0 -8
- package/dist/runtime/components/Form/InputStatic/index.vue +0 -16
- package/dist/runtime/components/Form/InputStatic/types.d.ts +0 -4
- package/dist/runtime/components/Form/InputTags/index.vue +0 -141
- package/dist/runtime/components/Form/InputTags/types.d.ts +0 -11
- package/dist/runtime/components/Form/InputTextarea/types.mjs +0 -0
- package/dist/runtime/components/Form/InputToggle/types.mjs +0 -0
- package/dist/runtime/components/Form/InputUploadDropzone/index.vue +0 -206
- package/dist/runtime/components/Form/InputUploadDropzone/types.d.ts +0 -11
- package/dist/runtime/components/Form/InputUploadDropzone/types.mjs +0 -0
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue +0 -362
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/types.d.ts +0 -23
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/types.mjs +0 -0
- package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/ItemUpload.vue +0 -241
- package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/ItemView.vue +0 -110
- package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/index.vue +0 -171
- package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/types.d.ts +0 -23
- package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/types.mjs +0 -0
- package/dist/runtime/components/Form/InputUploadDropzoneImageAutoMultiple/ItemUpload.vue +0 -161
- package/dist/runtime/components/Form/InputUploadDropzoneImageAutoMultiple/ItemView.vue +0 -64
- package/dist/runtime/components/Form/InputUploadDropzoneImageAutoMultiple/index.vue +0 -178
- package/dist/runtime/components/Form/InputUploadDropzoneImageAutoMultiple/types.d.ts +0 -21
- package/dist/runtime/components/Form/InputUploadDropzoneImageAutoMultiple/types.mjs +0 -0
- package/dist/runtime/components/Form/InputUploadFileClassic/index.vue +0 -95
- package/dist/runtime/components/Form/InputUploadFileClassic/types.d.ts +0 -13
- package/dist/runtime/components/Form/InputUploadFileClassic/types.mjs +0 -0
- package/dist/runtime/components/Form/InputUploadFileClassicAuto/index.vue +0 -151
- package/dist/runtime/components/Form/InputUploadFileClassicAuto/types.d.ts +0 -18
- package/dist/runtime/components/Form/InputUploadFileClassicAuto/types.mjs +0 -0
- package/dist/runtime/components/Form/InputUploadImageAuto/index.vue +0 -219
- package/dist/runtime/components/Form/InputUploadImageAuto/types.d.ts +0 -20
- package/dist/runtime/components/Form/InputUploadImageAuto/types.mjs +0 -0
- package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.vue +0 -55
- package/dist/runtime/components/Form/InputWYSIWYG/index.vue +0 -230
- package/dist/runtime/components/Form/InputWYSIWYG/types.d.ts +0 -19
- package/dist/runtime/components/Form/InputWYSIWYG/types.mjs +0 -0
- package/dist/runtime/components/Icon.vue +0 -23
- package/dist/runtime/components/Log.vue +0 -22
- package/dist/runtime/components/Modal/index.vue +0 -146
- package/dist/runtime/components/OTPInput.vue +0 -127
- package/dist/runtime/components/QRCode.vue +0 -22
- package/dist/runtime/components/SimplePagination.vue +0 -96
- package/dist/runtime/components/Slideover/index.vue +0 -110
- package/dist/runtime/components/Tabs/index.vue +0 -64
- package/dist/runtime/composables/loaderList.mjs +0 -52
- package/dist/runtime/composables/loaderObject.mjs +0 -52
- package/dist/runtime/composables/loaderPage.mjs +0 -229
- package/dist/runtime/composables/useConfig.mjs +0 -9
- package/dist/runtime/composables/useDialog.mjs +0 -81
- package/dist/runtime/composables/useForm.mjs +0 -18
- package/dist/runtime/core.config.d.ts +0 -14
- package/dist/runtime/core.config.mjs +0 -14
- package/dist/runtime/helpers/apiListHelper.mjs +0 -44
- package/dist/runtime/helpers/apiObjectHelper.mjs +0 -46
- package/dist/runtime/helpers/apiPageHelper.mjs +0 -270
- package/dist/runtime/plugin.mjs +0 -149
- package/dist/runtime/types/common.mjs +0 -0
- package/dist/runtime/types/config.d.ts +0 -1
- package/dist/runtime/types/config.mjs +0 -0
- package/dist/runtime/types/lib.mjs +0 -0
- package/dist/runtime/ui.config/alert.d.ts +0 -3
- package/dist/runtime/ui.config/alert.mjs +0 -6
- package/dist/runtime/ui.config/badge.d.ts +0 -3
- package/dist/runtime/ui.config/badge.mjs +0 -1
- package/dist/runtime/ui.config/breadcrumb.d.ts +0 -1
- package/dist/runtime/ui.config/breadcrumb.mjs +0 -7
- package/dist/runtime/ui.config/button.d.ts +0 -3
- package/dist/runtime/ui.config/button.mjs +0 -8
- package/dist/runtime/ui.config/buttonGroup.d.ts +0 -3
- package/dist/runtime/ui.config/buttonGroup.mjs +0 -1
- package/dist/runtime/ui.config/card.d.ts +0 -1
- package/dist/runtime/ui.config/card.mjs +0 -2
- package/dist/runtime/ui.config/checkbox.d.ts +0 -3
- package/dist/runtime/ui.config/checkbox.mjs +0 -1
- package/dist/runtime/ui.config/formGroup.d.ts +0 -3
- package/dist/runtime/ui.config/formGroup.mjs +0 -5
- package/dist/runtime/ui.config/icon.d.ts +0 -3
- package/dist/runtime/ui.config/icon.mjs +0 -3
- package/dist/runtime/ui.config/index.d.ts +0 -16
- package/dist/runtime/ui.config/index.mjs +0 -16
- package/dist/runtime/ui.config/input.d.ts +0 -3
- package/dist/runtime/ui.config/input.mjs +0 -5
- package/dist/runtime/ui.config/modal.d.ts +0 -1
- package/dist/runtime/ui.config/modal.mjs +0 -34
- package/dist/runtime/ui.config/notification.d.ts +0 -11
- package/dist/runtime/ui.config/notification.mjs +0 -13
- package/dist/runtime/ui.config/notifications.d.ts +0 -3
- package/dist/runtime/ui.config/notifications.mjs +0 -3
- package/dist/runtime/ui.config/pagination.d.ts +0 -3
- package/dist/runtime/ui.config/pagination.mjs +0 -37
- package/dist/runtime/ui.config/select.d.ts +0 -3
- package/dist/runtime/ui.config/select.mjs +0 -5
- package/dist/runtime/ui.config/selectMenu.d.ts +0 -3
- package/dist/runtime/ui.config/selectMenu.mjs +0 -5
- package/dist/runtime/ui.config/slideover.d.ts +0 -1
- package/dist/runtime/ui.config/slideover.mjs +0 -16
- package/dist/runtime/ui.config/table.d.ts +0 -3
- package/dist/runtime/ui.config/table.mjs +0 -47
- package/dist/runtime/ui.config/tabs.d.ts +0 -3
- package/dist/runtime/ui.config/tabs.mjs +0 -4
- package/dist/runtime/ui.config/tags.d.ts +0 -25
- package/dist/runtime/ui.config/tags.mjs +0 -25
- package/dist/runtime/ui.config/textarea.d.ts +0 -3
- package/dist/runtime/ui.config/textarea.mjs +0 -5
- package/dist/runtime/ui.config/toggle.d.ts +0 -3
- package/dist/runtime/ui.config/toggle.mjs +0 -5
- package/dist/runtime/ui.config/uploadDropzoneImage.d.ts +0 -83
- package/dist/runtime/ui.config/uploadDropzoneImage.mjs +0 -26
- package/dist/runtime/ui.config/uploadFileDropzone.d.ts +0 -61
- package/dist/runtime/ui.config/uploadFileDropzone.mjs +0 -61
- package/dist/runtime/ui.config/uploadFileInputClassicAuto.d.ts +0 -8
- package/dist/runtime/ui.config/uploadFileInputClassicAuto.mjs +0 -8
- package/dist/runtime/ui.config/uploadImage.d.ts +0 -34
- package/dist/runtime/ui.config/uploadImage.mjs +0 -36
- package/dist/runtime/ui.css +0 -1
- package/dist/runtime/utils/ArrayHelper.spec.d.ts +0 -1
- package/dist/runtime/utils/ArrayHelper.spec.mjs +0 -112
- package/dist/runtime/utils/FileHelper.spec.d.ts +0 -1
- package/dist/runtime/utils/FileHelper.spec.mjs +0 -14
- package/dist/runtime/utils/ObjectHelper.spec.d.ts +0 -1
- package/dist/runtime/utils/ObjectHelper.spec.mjs +0 -52
- package/dist/runtime/utils/ParamHelper.spec.d.ts +0 -1
- package/dist/runtime/utils/ParamHelper.spec.mjs +0 -78
- package/dist/runtime/utils/StringHelper.spec.d.ts +0 -1
- package/dist/runtime/utils/StringHelper.spec.mjs +0 -76
- package/dist/runtime/utils/TimeHelper.spec.d.ts +0 -1
- package/dist/runtime/utils/TimeHelper.spec.mjs +0 -79
- package/dist/runtime/utils/TimeHelper.thai.spec.d.ts +0 -1
- package/dist/runtime/utils/TimeHelper.thai.spec.mjs +0 -31
- package/dist/types.d.ts +0 -16
- package/dist/runtime/components/FlexDeck/{types.mjs → types.js} +0 -0
- package/dist/runtime/components/Form/InputCheckbox/{types.mjs → types.js} +0 -0
- package/dist/runtime/components/Form/InputDateTime/{date_time_field.types.mjs → date_time_field.types.js} +0 -0
- package/dist/runtime/components/Form/{InputDateTimeRange/date_range_time_field.types.mjs → InputNumber/types.js} +0 -0
- package/dist/runtime/components/Form/{InputNumber/types.mjs → InputSelect/types.js} +0 -0
- package/dist/runtime/components/Form/{InputRadio/types.mjs → InputSelectMultiple/types.js} +0 -0
- package/dist/runtime/components/Form/{InputSelect/types.mjs → InputText/types.js} +0 -0
- package/dist/runtime/components/Form/{InputSelectMultiple/types.mjs → InputTextarea/types.js} +0 -0
- package/dist/runtime/components/Form/{InputStatic/types.mjs → InputToggle/types.js} +0 -0
- package/dist/runtime/components/Form/{types.mjs → types.js} +0 -0
- package/dist/runtime/composables/{useWatch.mjs → useWatch.js} +0 -0
- package/dist/runtime/lib/{Requester.mjs → Requester.js} +0 -0
- package/dist/runtime/{components/Form/InputTags/types.mjs → types/common.js} +0 -0
- package/dist/runtime/{components/Form/InputText/types.mjs → types/lib.js} +0 -0
- package/dist/runtime/utils/{FileHelper.mjs → FileHelper.js} +0 -0
- package/dist/runtime/utils/{StringHelper.mjs → StringHelper.js} +0 -0
- package/dist/runtime/utils/{TimeHelper.mjs → TimeHelper.js} +1 -1
- /package/dist/runtime/utils/{lodash.mjs → lodash.js} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const dialogTheme: {
|
|
2
|
+
slots: {
|
|
3
|
+
base: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
wrapper: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
buttonGroup: string;
|
|
9
|
+
confirmButton: string;
|
|
10
|
+
cancelButton: string;
|
|
11
|
+
};
|
|
12
|
+
variants: {
|
|
13
|
+
color: {
|
|
14
|
+
success: {
|
|
15
|
+
icon: string;
|
|
16
|
+
};
|
|
17
|
+
info: {
|
|
18
|
+
icon: string;
|
|
19
|
+
};
|
|
20
|
+
warning: {
|
|
21
|
+
icon: string;
|
|
22
|
+
};
|
|
23
|
+
error: {
|
|
24
|
+
icon: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
color: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const dialogTheme = {
|
|
2
|
+
slots: {
|
|
3
|
+
base: "flex space-x-4",
|
|
4
|
+
icon: "size-12",
|
|
5
|
+
wrapper: "flex flex-col w-full",
|
|
6
|
+
title: "font-bold text-lg",
|
|
7
|
+
description: "text-neutral-400",
|
|
8
|
+
buttonGroup: "flex justify-end items-center space-x-3 mt-4",
|
|
9
|
+
confirmButton: "",
|
|
10
|
+
cancelButton: ""
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
color: {
|
|
14
|
+
success: { icon: "text-success" },
|
|
15
|
+
info: { icon: "text-info" },
|
|
16
|
+
warning: { icon: "text-warning" },
|
|
17
|
+
error: { icon: "text-error" }
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: { color: "info" }
|
|
20
|
+
}
|
|
21
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const formTheme: {
|
|
2
|
+
slots: {
|
|
3
|
+
base: string;
|
|
4
|
+
wrapper: string;
|
|
5
|
+
container: string;
|
|
6
|
+
};
|
|
7
|
+
variants: {
|
|
8
|
+
orientation: {
|
|
9
|
+
horizontal: {
|
|
10
|
+
container: string;
|
|
11
|
+
wrapper: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
orientation: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const formTheme = {
|
|
2
|
+
slots: {
|
|
3
|
+
base: "space-y-4",
|
|
4
|
+
wrapper: "",
|
|
5
|
+
container: ""
|
|
6
|
+
},
|
|
7
|
+
variants: {
|
|
8
|
+
orientation: {
|
|
9
|
+
horizontal: {
|
|
10
|
+
container: "lg:col-span-2",
|
|
11
|
+
wrapper: "lg:grid lg:grid-cols-3 lg:gap-4 lg:items-start"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: { orientation: "vertical" }
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { buttonTheme as button } from './button.js';
|
|
2
|
+
export { dialogTheme as dialog } from './dialog.js';
|
|
3
|
+
export { emptyTheme as empty } from './empty.js';
|
|
4
|
+
export { inputTheme as input } from './input.js';
|
|
5
|
+
export { loaderTheme as loader } from './loader.js';
|
|
6
|
+
export { selectMenuTheme as selectMenu } from './selectMenu.js';
|
|
7
|
+
export { textareaTheme as textarea } from './textarea.js';
|
|
8
|
+
export { tableTheme as table } from './table.js';
|
|
9
|
+
export { formTheme as form } from './form.js';
|
|
10
|
+
export { inputNumberTheme as inputNumber } from './inputNumber.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { buttonTheme as button } from "./button.js";
|
|
2
|
+
export { dialogTheme as dialog } from "./dialog.js";
|
|
3
|
+
export { emptyTheme as empty } from "./empty.js";
|
|
4
|
+
export { inputTheme as input } from "./input.js";
|
|
5
|
+
export { loaderTheme as loader } from "./loader.js";
|
|
6
|
+
export { selectMenuTheme as selectMenu } from "./selectMenu.js";
|
|
7
|
+
export { textareaTheme as textarea } from "./textarea.js";
|
|
8
|
+
export { tableTheme as table } from "./table.js";
|
|
9
|
+
export { formTheme as form } from "./form.js";
|
|
10
|
+
export { inputNumberTheme as inputNumber } from "./inputNumber.js";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const loaderTheme: {
|
|
2
|
+
slots: {
|
|
3
|
+
base: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
};
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
sm: {
|
|
9
|
+
icon: string;
|
|
10
|
+
};
|
|
11
|
+
md: {
|
|
12
|
+
icon: string;
|
|
13
|
+
};
|
|
14
|
+
lg: {
|
|
15
|
+
icon: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
color: {
|
|
19
|
+
primary: {
|
|
20
|
+
icon: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
size: string;
|
|
26
|
+
color: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const loaderTheme = {
|
|
2
|
+
slots: {
|
|
3
|
+
base: "flex w-full items-center justify-center h-[200px]",
|
|
4
|
+
icon: ""
|
|
5
|
+
},
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
sm: { icon: "text-2xl" },
|
|
9
|
+
md: { icon: "text-4xl" },
|
|
10
|
+
lg: { icon: "text-6xl" }
|
|
11
|
+
},
|
|
12
|
+
color: { primary: { icon: "text-primary" } }
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
size: "md",
|
|
16
|
+
color: "primary"
|
|
17
|
+
}
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const selectMenuTheme: {
|
|
2
|
+
slots: {
|
|
3
|
+
base: string;
|
|
4
|
+
trailingIcon: string;
|
|
5
|
+
selectedWrapper: string;
|
|
6
|
+
selectedLabel: string;
|
|
7
|
+
clearIcon: string;
|
|
8
|
+
tagsWrapper: string;
|
|
9
|
+
tagsItem: string;
|
|
10
|
+
tagsItemText: string;
|
|
11
|
+
tagsItemDelete: string[];
|
|
12
|
+
tagsItemDeleteIcon: string;
|
|
13
|
+
};
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
size: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const selectMenuTheme = {
|
|
2
|
+
slots: {
|
|
3
|
+
base: "w-full",
|
|
4
|
+
trailingIcon: "group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
5
|
+
selectedWrapper: "flex w-full items-center justify-between",
|
|
6
|
+
selectedLabel: "truncate",
|
|
7
|
+
clearIcon: "size-4 cursor-pointer text-gray-300 hover:text-gray-200",
|
|
8
|
+
tagsWrapper: "flex flex-wrap gap-x-2 gap-y-1",
|
|
9
|
+
tagsItem: "px-1.5 py-0.5 rounded-sm inline-flex items-center gap-0.5 bg-primary text-white data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
10
|
+
tagsItemText: "flex items-center gap-x-1 text-sm",
|
|
11
|
+
tagsItemDelete: [
|
|
12
|
+
"inline-flex items-center text-white disabled:pointer-events-none",
|
|
13
|
+
"transition-colors cursor-pointer"
|
|
14
|
+
],
|
|
15
|
+
tagsItemDeleteIcon: "ph:x"
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: { size: "lg" }
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const tableTheme = {
|
|
2
|
+
slots: {
|
|
3
|
+
searchContainer: "mb-4 flex justify-end",
|
|
4
|
+
captionContainer: "mb-4 text-gray-500",
|
|
5
|
+
captionBoldText: "font-bold",
|
|
6
|
+
errorMessage: "text-error-400 text-2xl h-[200px] flex justify-center items-center",
|
|
7
|
+
paginationContainer: "mt-4 flex justify-between px-3",
|
|
8
|
+
paginationInfo: "text-sm text-gray-500"
|
|
9
|
+
}
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const textareaTheme = { slots: { root: "w-full" } };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { AxiosError } from 'axios';
|
|
2
|
+
import type { IStatus } from '../types/lib.js';
|
|
3
|
+
import type { IOption } from '../types/common.js';
|
|
4
4
|
export declare class ObjectHelper {
|
|
5
5
|
static createOption(value: any, label?: string): IOption;
|
|
6
6
|
static toOption(data: any, valueAttr?: string, labelAttr?: string): IOption;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { _isEmpty } from "./lodash.
|
|
1
|
+
import { get as _get } from "lodash";
|
|
2
|
+
import { ParamHelper } from "./ParamHelper.js";
|
|
3
|
+
import { _isEmpty } from "./lodash.js";
|
|
4
4
|
export class ObjectHelper {
|
|
5
5
|
static createOption(value, label = "") {
|
|
6
6
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IError, IGetParams } from '../types/common.js';
|
|
2
2
|
export declare class ParamHelper {
|
|
3
3
|
static getParams: (opts: IGetParams, reqOptions: IGetParams) => Record<string, any> | undefined;
|
|
4
4
|
static getBoolTrue: (bool: any) => boolean;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
+
export { default } from './module.mjs'
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['core']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['core']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['core']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['core']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { core } from './module.js'
|
|
3
|
+
export { type ModuleOptions } from './module.mjs'
|
package/package.json
CHANGED
|
@@ -1,100 +1,91 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@finema/core",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"repository": "https://gitlab.finema.co/finema/ui-kit",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": "Finema Dev Core Team",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/types.d.
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"dev
|
|
28
|
-
"dev:
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"lint
|
|
32
|
-
"
|
|
33
|
-
"test
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"@nuxt/
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@tiptap/extension-
|
|
43
|
-
"@tiptap/extension-
|
|
44
|
-
"@tiptap/extension-text-
|
|
45
|
-
"@tiptap/extension-
|
|
46
|
-
"@tiptap/extension-
|
|
47
|
-
"@tiptap/
|
|
48
|
-
"@tiptap/
|
|
49
|
-
"@tiptap/
|
|
50
|
-
"@
|
|
51
|
-
"@vee-validate/
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"nuxt-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"@
|
|
70
|
-
"@nuxt/
|
|
71
|
-
"@nuxt/
|
|
72
|
-
"@
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"eslint": "^
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
},
|
|
93
|
-
"lint-staged": {
|
|
94
|
-
"*.{ts,vue,tsx,js}": "eslint --fix --cache"
|
|
95
|
-
},
|
|
96
|
-
"workspaces": [
|
|
97
|
-
"./*"
|
|
98
|
-
],
|
|
99
|
-
"packageManager": "yarn@4.4.1"
|
|
100
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@finema/core",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"repository": "https://gitlab.finema.co/finema/ui-kit",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Finema Dev Core Team",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types.d.mts",
|
|
11
|
+
"default": "./dist/module.mjs"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"main": "./dist/module.mjs",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
"*": {
|
|
17
|
+
".": [
|
|
18
|
+
"./dist/types.d.mts"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"prepack": "nuxt-module-build build",
|
|
27
|
+
"dev": "nuxi dev playground -o",
|
|
28
|
+
"dev:build": "nuxi build playground",
|
|
29
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
30
|
+
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
31
|
+
"lint": "eslint .",
|
|
32
|
+
"lint:fix": "eslint --fix .",
|
|
33
|
+
"test": "vitest run",
|
|
34
|
+
"test:watch": "vitest watch",
|
|
35
|
+
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
|
|
36
|
+
"prepare": "husky"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@nuxt/kit": "^3.17.4",
|
|
40
|
+
"@nuxt/ui": "^3.1.2",
|
|
41
|
+
"@pinia/nuxt": "^0.11.0",
|
|
42
|
+
"@tiptap/extension-image": "^2.8.0",
|
|
43
|
+
"@tiptap/extension-link": "^2.8.0",
|
|
44
|
+
"@tiptap/extension-text-align": "^2.8.0",
|
|
45
|
+
"@tiptap/extension-text-style": "^2.8.0",
|
|
46
|
+
"@tiptap/extension-underline": "^2.8.0",
|
|
47
|
+
"@tiptap/extension-youtube": "^2.8.0",
|
|
48
|
+
"@tiptap/pm": "^2.8.0",
|
|
49
|
+
"@tiptap/starter-kit": "^2.8.0",
|
|
50
|
+
"@tiptap/vue-3": "^2.8.0",
|
|
51
|
+
"@vee-validate/nuxt": "^4.15.0",
|
|
52
|
+
"@vee-validate/valibot": "^4.15.0",
|
|
53
|
+
"@vuepic/vue-datepicker": "^11.0.2",
|
|
54
|
+
"@vueuse/components": "^13.2.0",
|
|
55
|
+
"@vueuse/core": "^13.2.0",
|
|
56
|
+
"@wdns/vue-code-block": "^2.3.5",
|
|
57
|
+
"axios": "^1.9.0",
|
|
58
|
+
"date-fns": "^4.1.0",
|
|
59
|
+
"date-fns-tz": "^3.2.0",
|
|
60
|
+
"defu": "^6.1.4",
|
|
61
|
+
"maska": "^3.0.4",
|
|
62
|
+
"nuxt-lodash": "^2.5.3",
|
|
63
|
+
"url-join": "^5.0.0"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@eslint/js": "^9.26.0",
|
|
67
|
+
"@nuxt/devtools": "^2.4.1",
|
|
68
|
+
"@nuxt/eslint-config": "^1.3.1",
|
|
69
|
+
"@nuxt/module-builder": "^1.0.1",
|
|
70
|
+
"@nuxt/schema": "^3.17.3",
|
|
71
|
+
"@nuxt/test-utils": "^3.19.0",
|
|
72
|
+
"@types/node": "latest",
|
|
73
|
+
"changelogen": "^0.5.7",
|
|
74
|
+
"eslint": "^9.26.0",
|
|
75
|
+
"eslint-config-prettier": "^9.1.0",
|
|
76
|
+
"eslint-import-resolver-typescript": "^3.7.0",
|
|
77
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
78
|
+
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
79
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
80
|
+
"husky": "^9.1.7",
|
|
81
|
+
"lint-staged": "^16.0.0",
|
|
82
|
+
"nuxt": "3.17.3",
|
|
83
|
+
"typescript": "~5.6.3",
|
|
84
|
+
"typescript-eslint": "^8.18.0",
|
|
85
|
+
"vitest": "^3.1.3",
|
|
86
|
+
"vue-tsc": "^2.2.10"
|
|
87
|
+
},
|
|
88
|
+
"lint-staged": {
|
|
89
|
+
"*": "eslint --fix ."
|
|
90
|
+
}
|
|
91
|
+
}
|
package/dist/module.cjs
DELETED
package/dist/module.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
|
|
3
|
-
declare const core: {
|
|
4
|
-
limit_per_page: number;
|
|
5
|
-
default_primary_key: string;
|
|
6
|
-
time_format: string;
|
|
7
|
-
date_format: string;
|
|
8
|
-
date_time_format: string;
|
|
9
|
-
date_format_system: string;
|
|
10
|
-
date_time_format_system: string;
|
|
11
|
-
is_thai_year: boolean;
|
|
12
|
-
is_thai_month: boolean;
|
|
13
|
-
site_name: string;
|
|
14
|
-
is_simple_pagination: boolean;
|
|
15
|
-
time_zone: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
declare const config_core: typeof core;
|
|
19
|
-
declare namespace config {
|
|
20
|
-
export { config_core as core };
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface ModuleOptions {
|
|
24
|
-
/**
|
|
25
|
-
* @default ''
|
|
26
|
-
*/
|
|
27
|
-
prefix?: string;
|
|
28
|
-
/**
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
global?: boolean;
|
|
32
|
-
securityDisabled?: boolean;
|
|
33
|
-
}
|
|
34
|
-
type CORE = {
|
|
35
|
-
strategy?: 'merge' | 'override';
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
} & Partial<typeof config>;
|
|
38
|
-
declare module 'nuxt/schema' {
|
|
39
|
-
interface AppConfigInput {
|
|
40
|
-
core?: CORE;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
declare module '@nuxt/schema' {
|
|
44
|
-
interface AppConfigInput {
|
|
45
|
-
core?: CORE;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
49
|
-
|
|
50
|
-
export { type ModuleOptions, _default as default };
|