diff --git a/packages/nc-gui/components.d.ts b/packages/nc-gui/components.d.ts index 3307595f19..3d7eec5cba 100644 --- a/packages/nc-gui/components.d.ts +++ b/packages/nc-gui/components.d.ts @@ -189,6 +189,7 @@ declare module '@vue/runtime-core' { MdiLogin: typeof import('~icons/mdi/login')['default'] MdiLogout: typeof import('~icons/mdi/logout')['default'] MdiMagnify: typeof import('~icons/mdi/magnify')['default'] + MdiMapMarker: typeof import('~icons/mdi/map-marker')['default'] MdiMenu: typeof import('~icons/mdi/menu')['default'] MdiMenuDown: typeof import('~icons/mdi/menu-down')['default'] MdiMicrosoftTeams: typeof import('~icons/mdi/microsoft-teams')['default'] diff --git a/packages/nc-gui/components/cell/GeoData.vue b/packages/nc-gui/components/cell/GeoData.vue index bd3aa31736..a85a0ab7b6 100644 --- a/packages/nc-gui/components/cell/GeoData.vue +++ b/packages/nc-gui/components/cell/GeoData.vue @@ -29,91 +29,6 @@ let isExpanded = $ref(false) let isLoading = $ref(false) -// const localValue = computed | undefined>({ -// get: () => localValueState.value, -// set: (val: undefined | string | Record) => { -// localValueState.value = typeof val === 'object' ? JSON.stringify(val, null, 2) : val -// /** if form and not expanded then sync directly */ -// if (isForm.value && !isExpanded) { -// vModel.value = val -// } -// }, -// }) - -// const isPopupOpen = ref(false) -// const showPopup = () => (isPopupOpen.value = true) - -// const latitudeInput = ref(String(vModel?.value?.latitude) || '') -// const longitudeInput = ref(String(vModel?.value?.latitude) || '') - -// const onSubmit = () => { -// if (latitudeInput == null || longitudeInput == null) { -// console.error("Tried to submit a GeoLocation where latitude or longitude value wasn't provicde") -// return -// } -// emits('update:modelValue', { -// latitude: Number.parseFloat(latitudeInput.value), -// longitude: Number.parseFloat(longitudeInput.value), -// }) -// } - -// const onAbort = () => alert('ABORT!') - -// const isOpen = ref(false) - -// const visible = ref(false) - -// const readOnly = inject(ReadonlyInj)! - -// const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() - -// function onKeyDown(evt: KeyboardEvent) { -// return evt.key === '.' && evt.preventDefault() -// } - -// const visibleMenu = ref(false) - -// const toggleVisbility = () => { -// visible.value = !visible.value -// } - -// const latitude = computed(() => { - -// }) -// const onSave = () => { -// isExpanded = false - -// editEnabled.value = false - -// // localValue.value = localValue ? formatJson(localValue.value as string) : localValue - -// // vModel.value = localValue.value -// } - -// watch( -// vModel, -// (val) => { -// localValue.value = val -// }, -// { immediate: true }, -// ) - -// watch(localValue, (val) => { -// try { -// JSON.parse(val as string) - -// error = undefined -// } catch (e: any) { -// error = e -// } -// }) - -// watch(editEnabled, () => { -// isExpanded = false - -// localValue.value = vModel.valuec -// }) - const [latitude, longitude] = (vModel.value || '').split(';') const latLongStr = computed(() => { diff --git a/packages/nc-gui/components/smartsheet/sidebar/MenuBottom.vue b/packages/nc-gui/components/smartsheet/sidebar/MenuBottom.vue index c999f88379..bcb0e0fe65 100644 --- a/packages/nc-gui/components/smartsheet/sidebar/MenuBottom.vue +++ b/packages/nc-gui/components/smartsheet/sidebar/MenuBottom.vue @@ -1,6 +1,6 @@ + + diff --git a/packages/nc-gui/components/smartsheet/sidebar/toolbar/index.vue b/packages/nc-gui/components/smartsheet/sidebar/toolbar/index.vue index ed75c948a1..90abdf857e 100644 --- a/packages/nc-gui/components/smartsheet/sidebar/toolbar/index.vue +++ b/packages/nc-gui/components/smartsheet/sidebar/toolbar/index.vue @@ -29,6 +29,10 @@ const onClick = () => {
+ + + +