adminforth 1.1.45 → 1.1.47

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/index.js CHANGED
@@ -1018,7 +1018,6 @@ class AdminForth {
1018
1018
  }
1019
1019
  }
1020
1020
  }
1021
- console.log('✅ newValues', newValues);
1022
1021
  if (Object.keys(newValues).length > 0) {
1023
1022
  yield connector.updateRecord({ resource, recordId, record, newValues });
1024
1023
  }
@@ -18,9 +18,8 @@
18
18
  <span v-else-if="column.enum">
19
19
  {{ checkEmptyValues(column.enum.find(e => e.value === record[column.name])?.label,route.meta.type) }}
20
20
  </span>
21
- <span v-else-if="column.type === 'datetime'">
21
+ <span v-else-if="column.type === 'datetime'" class="whitespace-nowrap">
22
22
  {{ checkEmptyValues(formatDate(record[column.name]),route.meta.type) }}
23
-
24
23
  </span>
25
24
  <span v-else>
26
25
  {{ checkEmptyValues(record[column.name],route.meta.type) }}
package/index.ts CHANGED
@@ -1162,7 +1162,6 @@ class AdminForth implements AdminForthClass {
1162
1162
  }
1163
1163
  }
1164
1164
 
1165
- console.log('✅ newValues', newValues)
1166
1165
  if (Object.keys(newValues).length > 0) {
1167
1166
  await connector.updateRecord({ resource, recordId, record, newValues});
1168
1167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.1.45",
3
+ "version": "1.1.47",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,9 +18,8 @@
18
18
  <span v-else-if="column.enum">
19
19
  {{ checkEmptyValues(column.enum.find(e => e.value === record[column.name])?.label,route.meta.type) }}
20
20
  </span>
21
- <span v-else-if="column.type === 'datetime'">
21
+ <span v-else-if="column.type === 'datetime'" class="whitespace-nowrap">
22
22
  {{ checkEmptyValues(formatDate(record[column.name]),route.meta.type) }}
23
-
24
23
  </span>
25
24
  <span v-else>
26
25
  {{ checkEmptyValues(record[column.name],route.meta.type) }}
@@ -382,7 +382,7 @@ export type AdminForthResourceColumn = {
382
382
  *
383
383
  * This field will be displayed in show and list views with custom component `CountryFlag.vue`. CountryFlag.vue should be placed in custom folder and can be next:
384
384
  *
385
- * ```vue
385
+ * ```html
386
386
  * <template>
387
387
  * {{ getFlagEmojiFromIso(record.ipCountry) }}
388
388
  * </template>
@@ -952,7 +952,7 @@ export type AdminForthComponentDeclarationFull = {
952
952
  *
953
953
  * In Flag.vue you can access this meta object like this:
954
954
  *
955
- * ```vue
955
+ * ```html
956
956
  * <template>
957
957
  * <img :src="loadFile(`@@/flags/${meta.flagType}/${meta.flagType === 'country' ? record.countryIso : record.teamCode}.png`)" />
958
958
  * </template>
@@ -975,7 +975,7 @@ export type AdminForthFieldComponents = {
975
975
  *
976
976
  * Example: `FullName.vue`
977
977
  *
978
- * ```vue
978
+ * ```html
979
979
  * <template>
980
980
  * {{ record.firstName }} {{ record.lastName }}
981
981
  * </template>