@finema/core 1.4.68 → 1.4.69

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": "1.4.68",
3
+ "version": "1.4.69",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
package/dist/module.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineNuxtModule, createResolver, installModule, addPlugin, addComponentsDir, addImportsDir } from '@nuxt/kit';
2
2
 
3
3
  const name = "@finema/core";
4
- const version = "1.4.68";
4
+ const version = "1.4.69";
5
5
 
6
6
  const colors = {
7
7
  black: "#20243E",
@@ -11,6 +11,7 @@ export interface IDateTimeFieldProps extends IFieldProps {
11
11
  startTime?: ITimeOption;
12
12
  minTime?: ITimeOption;
13
13
  maxTime?: ITimeOption;
14
+ isReturnISO?: boolean;
14
15
  }
15
16
  export type IDateTimeField = IFormFieldBase<INPUT_TYPES.DATE_TIME | INPUT_TYPES.DATE, IDateTimeFieldProps, {
16
17
  change: (value: string) => void;
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FieldWrapper v-bind="wrapperProps">
3
3
  <Datepicker
4
- v-model="value"
4
+ :model-value="value"
5
5
  :disabled="wrapperProps.isDisabled"
6
6
  cancel-text="ยกเลิก"
7
7
  select-text="เลือก"
@@ -16,6 +16,7 @@
16
16
  :start-time="startTime"
17
17
  :required="isRequired"
18
18
  time-picker-inline
19
+ @update:model-value="onInput"
19
20
  >
20
21
  <template #dp-input="{ value: innerValue }">
21
22
  <UInput
@@ -48,4 +49,12 @@ const format = (date: Date) => {
48
49
 
49
50
  return TimeHelper.displayDateTime(date)
50
51
  }
52
+
53
+ const onInput = (_value: any) => {
54
+ if (props.disabledTime && !props.isReturnISO) {
55
+ value.value = TimeHelper.getDateFormTime(_value)
56
+ } else {
57
+ value.value = _value
58
+ }
59
+ }
51
60
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.68",
3
+ "version": "1.4.69",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",