refactor(nc-gui): move common datetime utils functions to sdk

This commit is contained in:
աɨռɢӄաօռɢ
2023-11-05 14:55:50 +08:00
parent 399b4c1c54
commit 9bc12eaee3
20 changed files with 34 additions and 127 deletions

View File

@@ -3,17 +3,15 @@ import dayjs from 'dayjs'
import type { Ref } from 'vue'
import type { MaybeRef } from '@vueuse/core'
import type { ColumnType, LinkToAnotherRecordType, TableType } from 'nocodb-sdk'
import { RelationTypes, UITypes, isSystemColumn, isVirtualCol } from 'nocodb-sdk'
import { RelationTypes, UITypes, dateFormats, isDateMonthFormat, isSystemColumn, isVirtualCol, timeFormats } from 'nocodb-sdk'
import { parse } from 'papaparse'
import type { Cell } from './cellRange'
import { CellRange } from './cellRange'
import convertCellData from './convertCellData'
import type { Nullable, Row } from '#imports'
import {
dateFormats,
extractPkFromRow,
extractSdkResponseErrorMsg,
isDateMonthFormat,
isDrawerOrModalExist,
isExpandedCellInputExist,
isMac,
@@ -21,7 +19,6 @@ import {
message,
reactive,
ref,
timeFormats,
unref,
useBase,
useCopy,