@finema/core 3.14.0 → 3.14.2

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/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "3.14.0",
3
+ "version": "3.14.2",
4
4
  "configKey": "core",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import * as lodash from 'lodash-es';
4
4
  import * as theme from '../dist/runtime/theme/index.js';
5
5
 
6
6
  const name = "@finema/core";
7
- const version = "3.14.0";
7
+ const version = "3.14.2";
8
8
 
9
9
  const nuxtAppOptions = {
10
10
  head: {
@@ -1,29 +1,29 @@
1
1
  <template>
2
2
  <FieldWrapper v-bind="wrapperProps">
3
- <Drawer
3
+ <!-- <Drawer
4
4
  v-if="isMobile"
5
5
  v-model:open="isShowModal"
6
6
  >
7
7
  <Input
8
8
  v-if="!readMode"
9
- :trailing-icon="innerValue ? void 0 : 'i-heroicons-calendar-days'"
9
+ :trailing-icon="innerValue ? undefined : 'i-heroicons-calendar-days'"
10
10
  type="text"
11
11
  :disabled="wrapperProps.disabled"
12
12
  :model-value="format(innerValue)"
13
13
  :placeholder="wrapperProps.placeholder"
14
14
  :readonly="true"
15
15
  :ui="{
16
- base: 'cursor-pointer select-none',
17
- trailingIcon: 'cursor-pointer'
18
- }"
16
+ base: 'cursor-pointer select-none',
17
+ trailingIcon: 'cursor-pointer',
18
+ }"
19
19
  >
20
20
  <template #trailing>
21
21
  <Icon
22
22
  v-if="clearable && value"
23
23
  :name="clearIcon"
24
24
  :class="theme.clearIcon({
25
- class: [ui?.clearIcon, 'mr-0 cursor-pointer']
26
- })"
25
+ class: [ui?.clearIcon, 'mr-0 cursor-pointer'],
26
+ })"
27
27
  @click.stop="value = null"
28
28
  />
29
29
  </template>
@@ -33,7 +33,7 @@
33
33
  class="cursor-pointer rounded-md px-2 py-1 hover:bg-gray-100"
34
34
  :class="classReadMode"
35
35
  >
36
- {{ innerValue ? format(innerValue) : "None" }}
36
+ {{ innerValue ? format(innerValue) : 'None' }}
37
37
  </div>
38
38
 
39
39
  <template #content>
@@ -41,12 +41,12 @@
41
41
  inline
42
42
  :model-value="innerValue"
43
43
  :disabled="wrapperProps.disabled"
44
- :cancel-text="appConfig.core?.locale === 'th' ? '\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01' : 'Cancel'"
45
- :select-text="appConfig.core?.locale === 'th' ? '\u0E15\u0E01\u0E25\u0E07' : 'Select'"
44
+ :cancel-text="appConfig.core?.locale === 'th' ? 'ยกเลิก' : 'Cancel'"
45
+ :select-text="appConfig.core?.locale === 'th' ? 'ตกลง' : 'Select'"
46
46
  :locale="appConfig.core?.locale"
47
47
  :enable-time-picker="!disabledTime"
48
48
  :placeholder="wrapperProps.placeholder"
49
- :format="format"
49
+ :format="(format as any)"
50
50
  :min-date="minDate"
51
51
  :max-date="maxDate"
52
52
  :min-time="minTime"
@@ -60,22 +60,20 @@
60
60
  <template #action-row="{ internalModelValue, selectDate, closePicker }">
61
61
  <div class="flex w-full items-center justify-between">
62
62
  <p>
63
- {{ format(internalModelValue) }}
63
+ {{ format(internalModelValue as any) }}
64
64
  </p>
65
65
 
66
66
  <div class="flex items-center space-x-2">
67
67
  <Button
68
68
  color="neutral"
69
69
  variant="subtle"
70
- @click="closePicker;
71
- isShowModal = false"
70
+ @click="closePicker; isShowModal = false"
72
71
  >
73
- {{ appConfig.core?.locale === "th" ? "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01" : "Cancel" }}
72
+ {{ appConfig.core?.locale === 'th' ? 'ยกเลิก' : 'Cancel' }}
74
73
  </Button> <Button
75
- @click="selectDate;
76
- isShowModal = false"
74
+ @click="selectDate; isShowModal = false"
77
75
  >
78
- {{ appConfig.core?.locale === "th" ? "\u0E15\u0E01\u0E25\u0E07" : "Select" }}
76
+ {{ appConfig.core?.locale === 'th' ? 'ตกลง' : 'Select' }}
79
77
  </Button>
80
78
  </div>
81
79
  </div>
@@ -94,9 +92,8 @@
94
92
  </template>
95
93
  </Datepicker>
96
94
  </template>
97
- </Drawer>
95
+ </Drawer> -->
98
96
  <Datepicker
99
- v-else
100
97
  :model-value="innerValue"
101
98
  :disabled="wrapperProps.disabled"
102
99
  :cancel-text="appConfig.core?.locale === 'th' ? '\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01' : 'Cancel'"
@@ -69,8 +69,11 @@
69
69
  :color="page === item.value ? 'neutral' : 'neutral'"
70
70
  :label="String(NumberHelper.withComma(item.value))"
71
71
  :ui="{ label: themePagination.label }"
72
- :to="to?.(item.value)"
73
72
  square
73
+ :to="to?.(item.value)"
74
+ :class="theme.buttonPagination({
75
+ class: [ui?.buttonPagination]
76
+ })"
74
77
  />
75
78
  </template>
76
79
  </UPagination>
@@ -15,6 +15,7 @@ export declare const tableTheme: {
15
15
  th: string;
16
16
  td: string;
17
17
  tr: string;
18
+ buttonPagination: string;
18
19
  };
19
20
  variants: {
20
21
  pinned: {
@@ -6,15 +6,16 @@ export const tableTheme = {
6
6
  captionContainer: "hidden mb-4 text-gray-500",
7
7
  captionBoldText: "font-bold",
8
8
  errorMessage: "text-error-400 text-2xl h-[200px] flex justify-center items-center",
9
- paginationContainer: "flex justify-between items-center flex-row md:flex-col lg:flex-row gap-4 px-4 py-3 bg-[#F2F4F7]",
10
- paginationInfoWrapper: "flex items-center justify-between gap-4",
9
+ paginationContainer: "flex justify-between items-center flex-row md:flex-col lg:flex-row gap-y-2 gap-x-4 px-4 py-3 bg-[#F2F4F7]",
10
+ paginationInfoWrapper: "flex flex-wrap items-center justify-between gap-4",
11
11
  paginationInfo: "text-sm font-bold text-gray-600",
12
12
  paginationLimitSelect: "max-sm:!hidden min-w-[120px]",
13
13
  paginationLimitSelectLabel: "font-bold text-gray-600",
14
14
  thead: "",
15
15
  th: "text-[#475467] whitespace-nowrap font-medium text-xs",
16
16
  td: "text-[#475467]",
17
- tr: "hover:bg-gray-50"
17
+ tr: "hover:bg-gray-50",
18
+ buttonPagination: "min-w-10 justify-center"
18
19
  },
19
20
  variants: {
20
21
  pinned: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "3.14.0",
3
+ "version": "3.14.2",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",