@data-fair/lib-vuetify 1.13.0 → 1.13.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.
@@ -60,5 +60,4 @@ import { mdiDotsVertical } from '@mdi/js'
60
60
  import { useDisplay } from 'vuetify'
61
61
 
62
62
  const display = useDisplay()
63
-
64
63
  </script>
package/owner-avatar.vue CHANGED
@@ -50,7 +50,7 @@ const avatarUrl = computed(() => {
50
50
  const label = computed(() => {
51
51
  let label = ''
52
52
  if (!props.omitOwnerName || !props.owner.department) label += props.owner.name
53
- if (props.owner.department) label += ' - ' + (props.owner.departmentName || props.owner.department)
53
+ if (props.owner.department) label += !props.omitOwnerName ? ' - ' : '' + (props.owner.departmentName || props.owner.department)
54
54
  if (props.owner.role) label += ` (${props.owner.role})`
55
55
  return label
56
56
  })
@@ -18,7 +18,7 @@ const label = computed(() => {
18
18
  if (!props.omitOwnerName || !props.owner.department)
19
19
  label += props.owner.name;
20
20
  if (props.owner.department)
21
- label += ' - ' + (props.owner.departmentName || props.owner.department);
21
+ label += !props.omitOwnerName ? ' - ' : '' + (props.owner.departmentName || props.owner.department);
22
22
  if (props.owner.role)
23
23
  label += ` (${props.owner.role})`;
24
24
  return label;
package/owner-pick.vue CHANGED
@@ -80,6 +80,7 @@ const owners = computedAsync(async () => {
80
80
  const org = await ofetch(`/simple-directory/api/organizations/${o.id}`)
81
81
  owners.push({ type: 'organization', id: o.id, name: o.name })
82
82
  if (!org.departments) continue
83
+ org.departments.sort((d1: any, d2: any) => d1.name.localeCompare(d2.name))
83
84
  for (const dep of org.departments) {
84
85
  if (!owners.find(ow => ow.type === 'organization' && ow.id === o.id && ow.department === dep.id)) {
85
86
  owners.push({ type: 'organization', id: o.id, name: o.name, department: dep.id, departmentName: dep.name })
package/owner-pick.vue.js CHANGED
@@ -37,6 +37,7 @@ const owners = computedAsync(async () => {
37
37
  owners.push({ type: 'organization', id: o.id, name: o.name });
38
38
  if (!org.departments)
39
39
  continue;
40
+ org.departments.sort((d1, d2) => d1.name.localeCompare(d2.name));
40
41
  for (const dep of org.departments) {
41
42
  if (!owners.find(ow => ow.type === 'organization' && ow.id === o.id && ow.department === dep.id)) {
42
43
  owners.push({ type: 'organization', id: o.id, name: o.name, department: dep.id, departmentName: dep.name });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-vuetify",
3
- "version": "1.13.0",
3
+ "version": "1.13.2",
4
4
  "description": "Components based on the Vuetify 3 UI lib for the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -38,7 +38,7 @@ const findAdressesFn = async (search: string, selectedId?: string) => {
38
38
  addressesList.value = address.value ? [address.value] : []
39
39
  } else {
40
40
  const params = { q: search }
41
- const result = (await ofetch('https://api-adresse.data.gouv.fr/search/', { params }))
41
+ const result = (await ofetch('https://data.geopf.fr/geocodage/search/', { params }))
42
42
  addressesList.value = result.features.map((f: any) => ({
43
43
  title: f.properties.label,
44
44
  value: {
@@ -16,7 +16,7 @@ const findAdressesFn = async (search, selectedId) => {
16
16
  }
17
17
  else {
18
18
  const params = { q: search };
19
- const result = (await ofetch('https://api-adresse.data.gouv.fr/search/', { params }));
19
+ const result = (await ofetch('https://data.geopf.fr/geocodage/search/', { params }));
20
20
  addressesList.value = result.features.map((f) => ({
21
21
  title: f.properties.label,
22
22
  value: {
package/vite.d.ts CHANGED
@@ -5,9 +5,12 @@ export declare const autoImports: (string | {
5
5
  '@data-fair/lib-vue/concept-filters.js': string[];
6
6
  '@data-fair/lib-vue/ui-notif.js': string[];
7
7
  '@data-fair/lib-vue/fetch.js': string[];
8
+ '@data-fair/lib-vue/edit-fetch.js': string[];
8
9
  '@data-fair/lib-vue/ws.js': string[];
9
10
  '@data-fair/lib-vue/async-action.js': string[];
11
+ '@data-fair/lib-vue/leave-guard.js': string[];
10
12
  '@data-fair/lib-vue/deep-diff.js': string[];
13
+ '@data-fair/lib-vue/format/bytes.js': string[];
11
14
  } | {
12
15
  '@data-fair/lib-vuetify/date-match-filter.vue': string[][];
13
16
  '@data-fair/lib-vuetify/date-range-picker.vue': string[][];