@adminforth/i18n 1.3.0 → 1.3.1

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/build.log CHANGED
@@ -16,5 +16,5 @@ custom/package-lock.json
16
16
  custom/package.json
17
17
  custom/tsconfig.json
18
18
 
19
- sent 30,826 bytes received 229 bytes 62,110.00 bytes/sec
20
- total size is 29,971 speedup is 0.97
19
+ sent 31,064 bytes received 229 bytes 62,586.00 bytes/sec
20
+ total size is 30,197 speedup is 0.96
@@ -1,7 +1,12 @@
1
1
  <template>
2
- <div class="relative group flex items-center" @click.stop>
2
+ <div class="relative group flex items-center">
3
3
  <!-- Normal value display -->
4
- <div v-if="!isEditing" class="flex items-center" :class="limitedText?.length > 50 ? 'min-w-48 max-w-full' : 'min-w-32'">
4
+ <div v-if="column.editReadonly" class="flex items-center" :class="limitedText?.length > 50 ? 'min-w-48 max-w-full' : 'min-w-32'">
5
+ {{ limitedText? limitedText : '-' }}
6
+ </div>
7
+
8
+ <div @click.stop="startEdit()"
9
+ v-else-if="!isEditing" class="flex items-center" :class="limitedText?.length > 50 ? 'min-w-48 max-w-full' : 'min-w-32'">
5
10
  {{ limitedText? limitedText : '-' }}
6
11
 
7
12
  <span v-if="meta?.reviewedCheckboxesFieldName && limitedText" class="flex items-center ml-2">
@@ -31,7 +36,7 @@
31
36
  </div>
32
37
 
33
38
  <!-- Edit mode -->
34
- <div v-else class="flex flex-col gap-2">
39
+ <div v-else class="flex flex-col gap-2" @click.stop>
35
40
  <div class="flex items-center max-w-full gap-2"
36
41
  :class="limitedText?.length > 50 ? 'min-w-72' : 'min-w-64'"
37
42
  ref="inputHolder"
@@ -1,7 +1,12 @@
1
1
  <template>
2
- <div class="relative group flex items-center" @click.stop>
2
+ <div class="relative group flex items-center">
3
3
  <!-- Normal value display -->
4
- <div v-if="!isEditing" class="flex items-center" :class="limitedText?.length > 50 ? 'min-w-48 max-w-full' : 'min-w-32'">
4
+ <div v-if="column.editReadonly" class="flex items-center" :class="limitedText?.length > 50 ? 'min-w-48 max-w-full' : 'min-w-32'">
5
+ {{ limitedText? limitedText : '-' }}
6
+ </div>
7
+
8
+ <div @click.stop="startEdit()"
9
+ v-else-if="!isEditing" class="flex items-center" :class="limitedText?.length > 50 ? 'min-w-48 max-w-full' : 'min-w-32'">
5
10
  {{ limitedText? limitedText : '-' }}
6
11
 
7
12
  <span v-if="meta?.reviewedCheckboxesFieldName && limitedText" class="flex items-center ml-2">
@@ -31,7 +36,7 @@
31
36
  </div>
32
37
 
33
38
  <!-- Edit mode -->
34
- <div v-else class="flex flex-col gap-2">
39
+ <div v-else class="flex flex-col gap-2" @click.stop>
35
40
  <div class="flex items-center max-w-full gap-2"
36
41
  :class="limitedText?.length > 50 ? 'min-w-72' : 'min-w-64'"
37
42
  ref="inputHolder"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/i18n",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",