@tager/admin-banners 1.0.1 → 1.0.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.
Files changed (36) hide show
  1. package/dist/dev/App.vue.d.ts +4 -3
  2. package/dist/hooks/useFetchBanner.d.ts +3 -3
  3. package/dist/hooks/useFetchBanners.d.ts +2 -2
  4. package/dist/hooks/useFetchZoneFields.d.ts +4 -4
  5. package/dist/hooks/useFetchZones.d.ts +2 -2
  6. package/dist/index.mjs +576 -673
  7. package/dist/services/requests.d.ts +3 -3
  8. package/dist/typings/banners.d.ts +3 -3
  9. package/dist/typings/common.d.ts +1 -1
  10. package/dist/typings/model.d.ts +3 -3
  11. package/dist/typings/zones.d.ts +1 -1
  12. package/dist/views/Banners/BannerForm/BannerForm.helpers.d.ts +3 -3
  13. package/dist/views/Banners/BannerForm/BannerForm.vue.d.ts +1845 -370
  14. package/dist/views/Banners/BannerList/BannerList.helpers.d.ts +4 -4
  15. package/dist/views/Banners/BannerList/BannerList.vue.d.ts +5 -4
  16. package/dist/views/Banners/BannerList/hooks/useAdvancedSearch.d.ts +5 -5
  17. package/dist/views/Zones/ZoneList/ZoneList.helpers.d.ts +3 -3
  18. package/dist/views/Zones/ZoneList/ZoneList.vue.d.ts +4 -3
  19. package/package.json +20 -24
  20. package/src/dev/App.vue +1 -1
  21. package/src/dev/env.ts +11 -11
  22. package/src/hooks/useFetchBanner.ts +3 -3
  23. package/src/hooks/useFetchBanners.ts +3 -3
  24. package/src/hooks/useFetchZoneFields.ts +4 -4
  25. package/src/hooks/useFetchZones.ts +2 -2
  26. package/src/services/requests.ts +3 -3
  27. package/src/typings/banners.ts +6 -6
  28. package/src/typings/model.ts +7 -7
  29. package/src/typings/zones.ts +1 -1
  30. package/src/views/Banners/BannerForm/BannerForm.helpers.ts +5 -5
  31. package/src/views/Banners/BannerForm/BannerForm.vue +6 -6
  32. package/src/views/Banners/BannerList/BannerList.helpers.ts +4 -4
  33. package/src/views/Banners/BannerList/BannerList.vue +3 -3
  34. package/src/views/Banners/BannerList/hooks/useAdvancedSearch.ts +6 -6
  35. package/src/views/Zones/ZoneList/ZoneList.helpers.ts +3 -3
  36. package/src/views/Zones/ZoneList/ZoneList.vue +2 -2
@@ -1,6 +1,6 @@
1
- import { TFunction } from 'i18next';
2
- import { ColumnDefinition } from '@tager/admin-ui';
3
- import { Banner, Status } from '../../../typings/banners';
4
- import { Zone } from '../../../typings/zones';
1
+ import { type TFunction } from 'i18next';
2
+ import { type ColumnDefinition } from '@tager/admin-ui';
3
+ import { type Banner, Status } from '../../../typings/banners';
4
+ import { type Zone } from '../../../typings/zones';
5
5
  export declare function getStatus(type: Status, t: TFunction): string;
6
6
  export declare function getColumnDefs(zoneList: Zone[], t: TFunction): ColumnDefinition<Banner>[];
@@ -1,7 +1,9 @@
1
- import { ColumnDefinition } from '@tager/admin-ui';
2
- import { Banner } from '../../../typings/banners';
1
+ import { type ColumnDefinition } from '@tager/admin-ui';
2
+ import { type Banner } from '../../../typings/banners';
3
3
  import { getBannersBannerFormUrl } from '../../../utils/paths';
4
- declare const _default: import("vue").DefineComponent<{}, {
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: import("vue").DefineComponent<{}, {
5
7
  columnDefs: import("vue").ComputedRef<ColumnDefinition<Banner>[]>;
6
8
  isRowDataLoading: import("vue").ComputedRef<boolean>;
7
9
  rowData: import("vue").Ref<Banner[]>;
@@ -22,4 +24,3 @@ declare const _default: import("vue").DefineComponent<{}, {
22
24
  tags: import("vue").ComputedRef<import("@tager/admin-ui").FilterTagType[]>;
23
25
  tagRemovalHandler: (event: import("@tager/admin-ui").FilterTagType) => void;
24
26
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
25
- export default _default;
@@ -1,8 +1,8 @@
1
- import { ComputedRef, Ref } from 'vue';
2
- import { TFunction } from 'i18next';
3
- import { RouteLocationNormalizedLoaded } from 'vue-router';
4
- import { FilterTagType, OptionType } from '@tager/admin-ui';
5
- import { Zone } from '../../../../typings/zones';
1
+ import { type ComputedRef, type Ref } from 'vue';
2
+ import { type TFunction } from 'i18next';
3
+ import { type RouteLocationNormalizedLoaded } from 'vue-router';
4
+ import { type FilterTagType, type OptionType } from '@tager/admin-ui';
5
+ import { type Zone } from '../../../../typings/zones';
6
6
  interface Params {
7
7
  t: TFunction;
8
8
  zoneList: Ref<Zone[]>;
@@ -1,5 +1,5 @@
1
- import { TFunction } from 'i18next';
2
- import { ColumnDefinition } from '@tager/admin-ui';
3
- import { Zone } from '../../../typings/zones';
1
+ import { type TFunction } from 'i18next';
2
+ import { type ColumnDefinition } from '@tager/admin-ui';
3
+ import { type Zone } from '../../../typings/zones';
4
4
  export declare function getColumnDefs(t: TFunction): ColumnDefinition<Zone>[];
5
5
  export declare function getLinkToBannersByZone(zoneId: number): string;
@@ -1,6 +1,8 @@
1
- import { Zone } from '../../../typings/zones';
1
+ import { type Zone } from '../../../typings/zones';
2
2
  import { getLinkToBannersByZone } from './ZoneList.helpers';
3
- declare const _default: import("vue").DefineComponent<{}, {
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: import("vue").DefineComponent<{}, {
4
6
  columnDefs: import("vue").ComputedRef<import("@tager/admin-ui").ColumnDefinition<Zone>[]>;
5
7
  isRowDataLoading: import("vue").ComputedRef<boolean>;
6
8
  rowData: import("vue").Ref<Zone[]>;
@@ -8,4 +10,3 @@ declare const _default: import("vue").DefineComponent<{}, {
8
10
  handleChange: (event: import("@tager/admin-ui/dist/components/DataTable/DataTable.types").TableChangeEvent) => void;
9
11
  getLinkToBannersByZone: typeof getLinkToBannersByZone;
10
12
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
11
- export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tager/admin-banners",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",
@@ -16,11 +16,13 @@
16
16
  },
17
17
  "scripts": {
18
18
  "build:js": "vite build",
19
- "build:package": "concurrently --success first \"yarn build:js\" \"yarn emit-declarations\"",
19
+ "build:package": "yarn build:js && (yarn emit-declarations || echo 'vue-tsc: type errors found, declarations emitted anyway')",
20
20
  "emit-declarations": "vue-tsc --project tsconfig.json --emitDeclarationOnly",
21
- "start": "vue-cli-service serve",
21
+ "start": "vite",
22
22
  "prepare": "yarn build:package",
23
- "tager:update": "yarn upgrade --latest --scope @tager"
23
+ "tager:update": "yarn upgrade --latest --scope @tager",
24
+ "lint": "eslint .",
25
+ "format": "prettier --write src"
24
26
  },
25
27
  "dependencies": {
26
28
  "filesize": "^9.0.11",
@@ -30,9 +32,7 @@
30
32
  "path-to-regexp": "^6.1.0"
31
33
  },
32
34
  "devDependencies": {
33
- "@babel/core": "^7.17.9",
34
- "@babel/eslint-parser": "^7.17.0",
35
- "@rushstack/eslint-patch": "^1.1.2",
35
+ "@eslint/js": "^9.39.5",
36
36
  "@tager/admin-dynamic-field": "^1.0.0",
37
37
  "@tager/admin-layout": "^1.0.0",
38
38
  "@tager/admin-services": "^1.0.0",
@@ -41,29 +41,25 @@
41
41
  "@types/lodash.isequal": "^4.5.6",
42
42
  "@types/lodash.pick": "^4.4.7",
43
43
  "@types/node": "16.x",
44
- "@typescript-eslint/eslint-plugin": "^5.21.0",
45
- "@typescript-eslint/parser": "^5.21.0",
46
- "@vitejs/plugin-vue": "^2.3.1",
47
- "@vue/cli-plugin-babel": "^5.0.4",
48
- "@vue/cli-plugin-typescript": "^5.0.4",
49
- "@vue/cli-service": "~5.0.0",
50
- "@vue/eslint-config-prettier": "^7.0.0",
51
- "@vue/eslint-config-typescript": "^10.0.0",
52
- "concurrently": "^7.1.0",
44
+ "@vitejs/plugin-vue": "^5.2.4",
45
+ "@vue/eslint-config-typescript": "^14.9.0",
53
46
  "core-js": "^3.22.3",
54
- "eslint": "^8.14.0",
55
- "eslint-config-prettier": "^8.5.0",
56
- "eslint-plugin-import": "^2.26.0",
57
- "eslint-plugin-prettier": "^4.0.0",
58
- "eslint-plugin-vue": "^8.7.1",
47
+ "eslint": "^9.39.5",
48
+ "eslint-config-prettier": "^10.1.8",
49
+ "eslint-import-resolver-typescript": "^4.4.5",
50
+ "eslint-plugin-import": "^2.32.0",
51
+ "eslint-plugin-vue": "^10.12.0",
52
+ "globals": "^16.5.0",
59
53
  "pinia": "^2.0.21",
54
+ "prettier": "^3.9.10",
60
55
  "sass": "^1.51.0",
61
56
  "sass-loader": "^12.6.0",
62
- "typescript": "^4.6.3",
63
- "vite": "^2.9.6",
57
+ "typescript": "^5.9.3",
58
+ "vite": "^6.4.5",
64
59
  "vue": "^3.2.31",
60
+ "vue-eslint-parser": "^10.4.1",
65
61
  "vue-router": "^4.0.14",
66
- "vue-tsc": "^0.34.10"
62
+ "vue-tsc": "^3.3.14"
67
63
  },
68
64
  "peerDependencies": {
69
65
  "@tager/admin-layout": "^1.0.0",
package/src/dev/App.vue CHANGED
@@ -7,7 +7,7 @@
7
7
  <script lang="ts">
8
8
  import { defineComponent } from 'vue';
9
9
 
10
- import { MenuItemType, PageLayout } from '@tager/admin-layout';
10
+ import { type MenuItemType, PageLayout } from '@tager/admin-layout';
11
11
  import { ViewListIcon } from '@tager/admin-ui';
12
12
  import { useI18n } from '@tager/admin-services';
13
13
 
package/src/dev/env.ts CHANGED
@@ -2,16 +2,16 @@ import { initializeEnvironment } from '@tager/admin-services';
2
2
 
3
3
  export function populateEnvironment() {
4
4
  initializeEnvironment({
5
- publicPath: process.env.VUE_APP_PUBLIC_PATH,
6
- appEnv: process.env.VUE_APP_ENV,
7
- apiUrl: process.env.VUE_APP_API_URL,
8
- accessToken: process.env.VUE_APP_ACCESS_TOKEN,
9
- websiteUrl: process.env.VUE_APP_WEBSITE_URL,
10
- websiteButtonUrl: process.env.VUE_APP_WEBSITE_BUTTON_URL,
11
- sentryDsn: process.env.VUE_APP_SENTRY_DSN,
12
- sentryEnv: process.env.VUE_APP_SENTRY_ENVIRONMENT,
13
- baseUrl: process.env.BASE_URL,
14
- nodeEnv: process.env.NODE_ENV,
15
- version: process.env.VUE_APP_VERSION,
5
+ publicPath: import.meta.env.VUE_APP_PUBLIC_PATH,
6
+ appEnv: import.meta.env.VUE_APP_ENV,
7
+ apiUrl: import.meta.env.VUE_APP_API_URL,
8
+ accessToken: import.meta.env.VUE_APP_ACCESS_TOKEN,
9
+ websiteUrl: import.meta.env.VUE_APP_WEBSITE_URL,
10
+ websiteButtonUrl: import.meta.env.VUE_APP_WEBSITE_BUTTON_URL,
11
+ sentryDsn: import.meta.env.VUE_APP_SENTRY_DSN,
12
+ sentryEnv: import.meta.env.VUE_APP_SENTRY_ENVIRONMENT,
13
+ baseUrl: import.meta.env.BASE_URL,
14
+ nodeEnv: import.meta.env.MODE,
15
+ version: import.meta.env.VUE_APP_VERSION,
16
16
  });
17
17
  }
@@ -1,9 +1,9 @@
1
- import { onMounted, Ref, watch } from 'vue';
1
+ import { onMounted, type Ref, watch } from 'vue';
2
2
 
3
- import { Nullable, ResourceRef, useResource } from '@tager/admin-services';
3
+ import { type Nullable, type ResourceRef, useResource } from '@tager/admin-services';
4
4
 
5
5
  import { getBanner } from '../services/requests';
6
- import { Banner } from '../typings/banners';
6
+ import { type Banner } from '../typings/banners';
7
7
 
8
8
  export function useFetchBanner({
9
9
  bannerId,
@@ -1,9 +1,9 @@
1
- import { onMounted, SetupContext } from 'vue';
1
+ import { onMounted, type SetupContext } from 'vue';
2
2
 
3
- import { ResourceRef, useResource } from '@tager/admin-services';
3
+ import { type ResourceRef, useResource } from '@tager/admin-services';
4
4
 
5
5
  import { getBanners } from '../services/requests';
6
- import { Banner } from '../typings/banners';
6
+ import { type Banner } from '../typings/banners';
7
7
 
8
8
  export function useFetchBanners(): ResourceRef<Banner[]> {
9
9
  const [fetchBanners, resource] = useResource<Banner[]>({
@@ -1,10 +1,10 @@
1
- import { computed, onMounted, Ref, SetupContext, watch } from 'vue';
1
+ import { computed, onMounted, type Ref, type SetupContext, watch } from 'vue';
2
2
 
3
- import { Nullable, ResourceRef, useResource } from '@tager/admin-services';
3
+ import { type Nullable, type ResourceRef, useResource } from '@tager/admin-services';
4
4
 
5
5
  import { getZoneFields } from '../services/requests';
6
- import { ZoneFields } from '../typings/zones';
7
- import { BannerFormValues } from '../typings/banners';
6
+ import { type ZoneFields } from '../typings/zones';
7
+ import { type BannerFormValues } from '../typings/banners';
8
8
 
9
9
  export function useFetchZoneFields({
10
10
  values,
@@ -1,9 +1,9 @@
1
1
  import { onMounted } from 'vue';
2
2
 
3
- import { ResourceRef, useResource } from '@tager/admin-services';
3
+ import { type ResourceRef, useResource } from '@tager/admin-services';
4
4
 
5
5
  import { getZones } from '../services/requests';
6
- import { Zone } from '../typings/zones';
6
+ import { type Zone } from '../typings/zones';
7
7
 
8
8
  export function useFetchZones(): ResourceRef<Zone[]> {
9
9
  const [fetchZones, resource] = useResource<Zone[]>({
@@ -1,7 +1,7 @@
1
- import { request, ResponseBody } from '@tager/admin-services';
1
+ import { request, type ResponseBody } from '@tager/admin-services';
2
2
 
3
- import { Zone, ZoneFields } from '../typings/zones';
4
- import { Banner, BannerPayload } from '../typings/banners';
3
+ import { type Zone, type ZoneFields } from '../typings/zones';
4
+ import { type Banner, type BannerPayload } from '../typings/banners';
5
5
 
6
6
  /** Zones **/
7
7
 
@@ -1,10 +1,10 @@
1
- import { FileType, Nullable } from '@tager/admin-services';
2
- import { OptionType, SingleFileInputValueType } from '@tager/admin-ui';
1
+ import { type FileType, type Nullable } from '@tager/admin-services';
2
+ import { type OptionType, type SingleFileInputValueType } from '@tager/admin-ui';
3
3
  import {
4
- FieldShortType,
5
- FieldUnion,
6
- IncomingValueUnion,
7
- OutgoingValueUnion,
4
+ type FieldShortType,
5
+ type FieldUnion,
6
+ type IncomingValueUnion,
7
+ type OutgoingValueUnion,
8
8
  } from '@tager/admin-dynamic-field';
9
9
 
10
10
  export enum Status {
@@ -1,13 +1,13 @@
1
- import { Nullable, FileType } from '@tager/admin-services';
1
+ import { type Nullable, type FileType } from '@tager/admin-services';
2
2
  import {
3
- FieldConfigUnion,
4
- FieldShortType,
5
- IncomingValueUnion,
3
+ type FieldConfigUnion,
4
+ type FieldShortType,
5
+ type IncomingValueUnion,
6
6
  } from '@tager/admin-dynamic-field';
7
7
  import {
8
- OptionType,
9
- ShortCodeItemType,
10
- SingleFileInputValueType,
8
+ type OptionType,
9
+ type ShortCodeItemType,
10
+ type SingleFileInputValueType,
11
11
  } from '@tager/admin-ui';
12
12
 
13
13
  export interface SeoInfo {
@@ -1,4 +1,4 @@
1
- import { FieldConfigUnion } from '@tager/admin-dynamic-field';
1
+ import { type FieldConfigUnion } from '@tager/admin-dynamic-field';
2
2
 
3
3
  export interface Zone {
4
4
  id: string;
@@ -1,11 +1,11 @@
1
- import { OptionType } from '@tager/admin-ui';
2
- import { createId, Nullable } from '@tager/admin-services';
1
+ import { type OptionType } from '@tager/admin-ui';
2
+ import { createId, type Nullable } from '@tager/admin-services';
3
3
  import { universalFieldUtils } from '@tager/admin-dynamic-field';
4
4
 
5
5
  import {
6
- Banner,
7
- BannerFormValues,
8
- BannerPayload,
6
+ type Banner,
7
+ type BannerFormValues,
8
+ type BannerPayload,
9
9
  } from '../../../typings/banners';
10
10
 
11
11
  export function convertBannerToFormValues(
@@ -8,7 +8,7 @@
8
8
  :is-content-loading="isContentLoading"
9
9
  >
10
10
  <template #content>
11
- <form novalidate @submit.prevent="submitForm">
11
+ <form novalidate @submit.prevent>
12
12
  <div class="zone">
13
13
  <FormFieldSelect
14
14
  v-model:value="values.bannerZone"
@@ -79,7 +79,7 @@
79
79
 
80
80
  <DynamicField
81
81
  v-for="field of values.fields"
82
- :key="field.name"
82
+ :key="field.id"
83
83
  :field="field"
84
84
  />
85
85
 
@@ -106,7 +106,7 @@
106
106
  </template>
107
107
 
108
108
  <script lang="ts">
109
- import { computed, defineComponent, ref, SetupContext, watch } from 'vue';
109
+ import { computed, defineComponent, ref, type SetupContext, watch } from 'vue';
110
110
  import { useRoute, useRouter } from 'vue-router';
111
111
 
112
112
  import {
@@ -116,8 +116,8 @@ import {
116
116
  FormFieldSelect,
117
117
  FormFooter,
118
118
  InputLabel,
119
- OptionType,
120
- TagerFormSubmitEvent,
119
+ type OptionType,
120
+ type TagerFormSubmitEvent,
121
121
  } from '@tager/admin-ui';
122
122
  import { DynamicField, universalFieldUtils } from '@tager/admin-dynamic-field';
123
123
  import {
@@ -129,7 +129,7 @@ import {
129
129
  import { Page } from '@tager/admin-layout';
130
130
 
131
131
  import { useFetchZones } from '../../../hooks';
132
- import { BannerFormValues } from '../../../typings/banners';
132
+ import { type BannerFormValues } from '../../../typings/banners';
133
133
  import { useFetchBanner } from '../../../hooks/useFetchBanner';
134
134
  import {
135
135
  getBannersBannerFormUrl,
@@ -1,9 +1,9 @@
1
- import { TFunction } from 'i18next';
1
+ import { type TFunction } from 'i18next';
2
2
 
3
- import { ColumnDefinition } from '@tager/admin-ui';
3
+ import { type ColumnDefinition } from '@tager/admin-ui';
4
4
 
5
- import { Banner, Status } from '../../../typings/banners';
6
- import { Zone } from '../../../typings/zones';
5
+ import { type Banner, Status } from '../../../typings/banners';
6
+ import { type Zone } from '../../../typings/zones';
7
7
 
8
8
  export function getStatus(type: Status, t: TFunction) {
9
9
  switch (type) {
@@ -83,13 +83,13 @@
83
83
  </template>
84
84
 
85
85
  <script lang="ts">
86
- import { computed, defineComponent, SetupContext, watch } from 'vue';
86
+ import { computed, defineComponent, type SetupContext, watch } from 'vue';
87
87
  import isEqual from 'lodash.isequal';
88
88
  import pick from 'lodash.pick';
89
89
  import { useRoute, useRouter } from 'vue-router';
90
90
 
91
91
  import {
92
- ColumnDefinition,
92
+ type ColumnDefinition,
93
93
  useDataTable,
94
94
  DataTable,
95
95
  AdvancedSearch,
@@ -103,7 +103,7 @@ import { useI18n, useResourceDelete } from '@tager/admin-services';
103
103
  import { Page } from '@tager/admin-layout';
104
104
 
105
105
  import { deleteBanner, getBanners } from '../../../services/requests';
106
- import { Banner } from '../../../typings/banners';
106
+ import { type Banner } from '../../../typings/banners';
107
107
  import { getBannersBannerFormUrl } from '../../../utils/paths';
108
108
  import { useFetchZones } from '../../../hooks';
109
109
 
@@ -1,17 +1,17 @@
1
- import { computed, ComputedRef, ref, Ref, SetupContext, watch } from 'vue';
2
- import { TFunction } from 'i18next';
3
- import { RouteLocationNormalizedLoaded } from 'vue-router';
1
+ import { computed, type ComputedRef, ref, type Ref, type SetupContext, watch } from 'vue';
2
+ import { type TFunction } from 'i18next';
3
+ import { type RouteLocationNormalizedLoaded } from 'vue-router';
4
4
 
5
5
  import {
6
- FilterTagType,
6
+ type FilterTagType,
7
7
  getFilterParamAsString,
8
8
  getFilterParamAsStringArray,
9
9
  getFilterParams,
10
- OptionType,
10
+ type OptionType,
11
11
  } from '@tager/admin-ui';
12
12
  import { isNotNullish } from '@tager/admin-services';
13
13
 
14
- import { Zone } from '../../../../typings/zones';
14
+ import { type Zone } from '../../../../typings/zones';
15
15
  import { Status } from '../../../../typings/banners';
16
16
  import { getStatus } from '../BannerList.helpers';
17
17
 
@@ -1,8 +1,8 @@
1
- import { TFunction } from 'i18next';
1
+ import { type TFunction } from 'i18next';
2
2
 
3
- import { ColumnDefinition } from '@tager/admin-ui';
3
+ import { type ColumnDefinition } from '@tager/admin-ui';
4
4
 
5
- import { Zone } from '../../../typings/zones';
5
+ import { type Zone } from '../../../typings/zones';
6
6
  import { getBannersBannerListUrl } from '../../../utils/paths';
7
7
 
8
8
  export function getColumnDefs(t: TFunction): ColumnDefinition<Zone>[] {
@@ -26,13 +26,13 @@
26
26
  </template>
27
27
 
28
28
  <script lang="ts">
29
- import { computed, defineComponent, onMounted, SetupContext } from 'vue';
29
+ import { computed, defineComponent, onMounted, type SetupContext } from 'vue';
30
30
 
31
31
  import { CountButton, useDataTable, DataTable } from '@tager/admin-ui';
32
32
  import { Page } from '@tager/admin-layout';
33
33
  import { useI18n } from '@tager/admin-services';
34
34
 
35
- import { Zone } from '../../../typings/zones';
35
+ import { type Zone } from '../../../typings/zones';
36
36
  import { getZones } from '../../../services/requests';
37
37
 
38
38
  import { getColumnDefs, getLinkToBannersByZone } from './ZoneList.helpers';