@finema/core 1.4.136 → 1.4.137

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.136",
3
+ "version": "1.4.137",
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.136";
4
+ const version = "1.4.137";
5
5
 
6
6
  const colors = {
7
7
  black: "#20243E",
@@ -105,7 +105,7 @@
105
105
  @click="handleDownloadFile"
106
106
  />
107
107
  <Icon
108
- v-if="!isReadonly || !isDisabled"
108
+ v-if="!(isDisabled || isReadonly)"
109
109
  :name="ui.action.deleteIcon"
110
110
  :class="[ui.action.iconClass]"
111
111
  title="ลบไฟล์"
@@ -247,7 +247,7 @@ const { isOverDropZone } = useDropZone(dropzoneRef as unknown as HTMLElement, {
247
247
  })
248
248
 
249
249
  const handleChange = (e: Event) => {
250
- if (props.isDisabled) return
250
+ if (props.isDisabled || props.isReadonly) return
251
251
 
252
252
  const file = (e.target as HTMLInputElement).files?.[0]
253
253
  const result = handleCheckFileCondition(file)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.136",
3
+ "version": "1.4.137",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",