diff --git a/package.json b/package.json index c07b7e1..079efcb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datagrid-bvue", - "version": "0.2.0", + "version": "0.2.1", "description": "DataGrid based on bootstrap vue", "keywords": [ "datagrid", diff --git a/src/datagrid-bvue.ts b/src/datagrid-bvue.ts index b9f7175..9dc9ed4 100644 --- a/src/datagrid-bvue.ts +++ b/src/datagrid-bvue.ts @@ -1,12 +1,12 @@ import { type Component } from 'vue'; import { type PluginObject } from 'vue/types/plugin'; import DataGridTable from './components/Table.vue'; -import RuleEngineFilter from '@components/RuleEngineFilter.vue'; -import RuleEditorModal from '@components/RuleEditorModal.vue'; -import { editorComponentsList, viewerComponentsList } from '@/editFields/config'; -import { componentsList, RuleEngineConfig, type SchemaList } from '@/rule/RuleElementCreator'; +import RuleEngineFilter from './components/RuleEngineFilter.vue'; +import RuleEditorModal from './components/RuleEditorModal.vue'; +import { editorComponentsList, viewerComponentsList } from './editFields/config'; +import { componentsList, RuleEngineConfig, type SchemaList } from './rule/RuleElementCreator'; import { type Money } from 'ts-money'; -import { type Language } from '@/fieldsData'; +import { type Language } from './fieldsData'; export interface GridFieldOptions { canView: boolean; @@ -305,4 +305,4 @@ if (typeof window !== 'undefined' && window.Vue !== undefined && window.Vue.use export default DataGridPlugin; export * from './namedExports'; -export * from '@/ModelDecorator/index'; +export * from './ModelDecorator/index'; diff --git a/src/editFields/config.ts b/src/editFields/config.ts index c4c83be..d44000f 100644 --- a/src/editFields/config.ts +++ b/src/editFields/config.ts @@ -1,20 +1,20 @@ import { type Component } from 'vue'; import { type FieldType } from '@/datagrid-bvue'; -import StringViewer from '@/editFields/viewer/StringViewer.vue'; -import NumberViewer from '@/editFields/viewer/NumberViewer.vue'; -import DateViewer from '@/editFields/viewer/DateViewer.vue'; -import StringEditor from '@/editFields/editor/StringEditor.vue'; -import NumberEditor from '@/editFields/editor/NumberEditor.vue'; -import DateEditor from '@/editFields/editor/DateEditor.vue'; -import BooleanViewer from '@/editFields/viewer/BooleanViewer.vue'; -import BooleanEditor from '@/editFields/editor/BooleanEditor.vue'; -import MoneyViewer from '@/editFields/viewer/MoneyViewer.vue'; -import MoneyEditor from '@/editFields/editor/MoneyEditor.vue'; -import PercentViewer from '@/editFields/viewer/PercentViewer.vue'; -import LangViewer from '@/editFields/viewer/LangViewer.vue'; -import LangEditor from '@/editFields/editor/LangEditor.vue'; -import PointerViewer from '@/editFields/viewer/PointerViewer.vue'; -import ArrayViewer from '@/editFields/viewer/ArrayViewer.vue'; +import StringViewer from './viewer/StringViewer.vue'; +import NumberViewer from './viewer/NumberViewer.vue'; +import DateViewer from './viewer/DateViewer.vue'; +import StringEditor from './editor/StringEditor.vue'; +import NumberEditor from './editor/NumberEditor.vue'; +import DateEditor from './editor/DateEditor.vue'; +import BooleanViewer from './viewer/BooleanViewer.vue'; +import BooleanEditor from './editor/BooleanEditor.vue'; +import MoneyViewer from './viewer/MoneyViewer.vue'; +import MoneyEditor from './editor/MoneyEditor.vue'; +import PercentViewer from './viewer/PercentViewer.vue'; +import LangViewer from './viewer/LangViewer.vue'; +import LangEditor from './editor/LangEditor.vue'; +import PointerViewer from './viewer/PointerViewer.vue'; +import ArrayViewer from './viewer/ArrayViewer.vue'; export const viewerComponentsList: Record = { String: StringViewer, diff --git a/src/namedExports.ts b/src/namedExports.ts index 415f111..5faf2a1 100644 --- a/src/namedExports.ts +++ b/src/namedExports.ts @@ -1,16 +1,16 @@ import DataGridTable from './components/Table.vue'; -import { editorComponentsList, viewerComponentsList } from '@/editFields/config'; -import StringViewer from '@/editFields/viewer/StringViewer.vue'; -import StringEditor from '@/editFields/editor/StringEditor.vue'; -import NumberEditor from '@/editFields/editor/NumberEditor.vue'; -import NumberViewer from '@/editFields/viewer/NumberViewer.vue'; -import BooleanViewer from '@/editFields/viewer/BooleanViewer.vue'; -import BooleanEditor from '@/editFields/editor/BooleanEditor.vue'; -import BooleanRule from '@/rule/RuleInputs/BooleanRule.vue'; -import NumberRule from '@/rule/RuleInputs/NumberRule.vue'; -import StringRule from '@/rule/RuleInputs/StringRule.vue'; -import ArrayInputMixin from '@/mixins/ArrayRuleInput'; -import FieldInputMixin from '@/mixins/RuleFieldInput'; +import { editorComponentsList, viewerComponentsList } from './editFields/config'; +import StringViewer from './editFields/viewer/StringViewer.vue'; +import StringEditor from './editFields/editor/StringEditor.vue'; +import NumberEditor from './editFields/editor/NumberEditor.vue'; +import NumberViewer from './editFields/viewer/NumberViewer.vue'; +import BooleanViewer from './editFields/viewer/BooleanViewer.vue'; +import BooleanEditor from './editFields/editor/BooleanEditor.vue'; +import BooleanRule from './rule/RuleInputs/BooleanRule.vue'; +import NumberRule from './rule/RuleInputs/NumberRule.vue'; +import StringRule from './rule/RuleInputs/StringRule.vue'; +import ArrayInputMixin from './mixins/ArrayRuleInput'; +import FieldInputMixin from './mixins/RuleFieldInput'; export { DataGridTable, diff --git a/tsconfig.json b/tsconfig.json index 0be3297..d3a0224 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,13 +25,13 @@ ], "paths": { "@/*": [ - "src/*" + "./src/*" ], "@filter/*": [ - "src/filter/*" + "./src/filter/*" ], "@components/*": [ - "src/components/*" + "./src/components/*" ] }, "lib": [