@tager/admin-banners 1.0.0 → 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.
- package/dist/dev/App.vue.d.ts +4 -3
- package/dist/hooks/useFetchBanner.d.ts +3 -3
- package/dist/hooks/useFetchBanners.d.ts +2 -2
- package/dist/hooks/useFetchZoneFields.d.ts +4 -4
- package/dist/hooks/useFetchZones.d.ts +2 -2
- package/dist/index.mjs +584 -666
- package/dist/services/requests.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/typings/banners.d.ts +3 -3
- package/dist/typings/common.d.ts +1 -1
- package/dist/typings/model.d.ts +3 -3
- package/dist/typings/zones.d.ts +1 -1
- package/dist/views/Banners/BannerForm/BannerForm.helpers.d.ts +3 -3
- package/dist/views/Banners/BannerForm/BannerForm.vue.d.ts +1845 -370
- package/dist/views/Banners/BannerList/BannerList.helpers.d.ts +4 -4
- package/dist/views/Banners/BannerList/BannerList.vue.d.ts +5 -4
- package/dist/views/Banners/BannerList/hooks/useAdvancedSearch.d.ts +6 -7
- package/dist/views/Zones/ZoneList/ZoneList.helpers.d.ts +3 -3
- package/dist/views/Zones/ZoneList/ZoneList.vue.d.ts +4 -3
- package/package.json +20 -24
- package/src/dev/App.vue +1 -1
- package/src/dev/env.ts +11 -11
- package/src/hooks/useFetchBanner.ts +3 -3
- package/src/hooks/useFetchBanners.ts +3 -3
- package/src/hooks/useFetchZoneFields.ts +4 -4
- package/src/hooks/useFetchZones.ts +2 -2
- package/src/services/requests.ts +3 -3
- package/src/typings/banners.ts +6 -6
- package/src/typings/model.ts +7 -7
- package/src/typings/zones.ts +1 -1
- package/src/utils/paths.ts +5 -5
- package/src/views/Banners/BannerForm/BannerForm.helpers.ts +5 -5
- package/src/views/Banners/BannerForm/BannerForm.vue +6 -6
- package/src/views/Banners/BannerList/BannerList.helpers.ts +4 -4
- package/src/views/Banners/BannerList/BannerList.vue +7 -17
- package/src/views/Banners/BannerList/hooks/useAdvancedSearch.ts +34 -14
- package/src/views/Zones/ZoneList/ZoneList.helpers.ts +3 -3
- package/src/views/Zones/ZoneList/ZoneList.vue +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ResponseBody } from '@tager/admin-services';
|
|
2
|
-
import { Zone, ZoneFields } from '../typings/zones';
|
|
3
|
-
import { Banner, BannerPayload } from '../typings/banners';
|
|
1
|
+
import { type ResponseBody } from '@tager/admin-services';
|
|
2
|
+
import { type Zone, type ZoneFields } from '../typings/zones';
|
|
3
|
+
import { type Banner, type BannerPayload } from '../typings/banners';
|
|
4
4
|
/** Zones **/
|
|
5
5
|
export declare function getZones(params?: {
|
|
6
6
|
query?: string;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.filters{display:
|
|
1
|
+
.filters{display:grid;gap:1rem;grid-template-columns:1fr 1fr 1fr}.date{display:grid;grid-template-columns:repeat(2,1fr);column-gap:10px}.zone{display:flex}.zone>*:first-child{flex:1 1 1px}.zone>*:last-child{flex-basis:30%;margin-left:20px}.link{display:flex;align-items:flex-end}.link>*:first-child{flex:1 1 1px}.link>*:last-child{flex-basis:30%;margin-left:20px;padding-bottom:8px}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FileType, Nullable } from '@tager/admin-services';
|
|
2
|
-
import { OptionType, SingleFileInputValueType } from '@tager/admin-ui';
|
|
3
|
-
import { FieldShortType, FieldUnion, IncomingValueUnion, OutgoingValueUnion } from '@tager/admin-dynamic-field';
|
|
1
|
+
import { type FileType, type Nullable } from '@tager/admin-services';
|
|
2
|
+
import { type OptionType, type SingleFileInputValueType } from '@tager/admin-ui';
|
|
3
|
+
import { type FieldShortType, type FieldUnion, type IncomingValueUnion, type OutgoingValueUnion } from '@tager/admin-dynamic-field';
|
|
4
4
|
export declare enum Status {
|
|
5
5
|
Waiting = "WAITING",
|
|
6
6
|
Archived = "ARCHIVED",
|
package/dist/typings/common.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Values<T> = T[keyof T];
|
package/dist/typings/model.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Nullable, FileType } from '@tager/admin-services';
|
|
2
|
-
import { FieldConfigUnion, FieldShortType, IncomingValueUnion } from '@tager/admin-dynamic-field';
|
|
3
|
-
import { OptionType, ShortCodeItemType, SingleFileInputValueType } from '@tager/admin-ui';
|
|
1
|
+
import { type Nullable, type FileType } from '@tager/admin-services';
|
|
2
|
+
import { type FieldConfigUnion, type FieldShortType, type IncomingValueUnion } from '@tager/admin-dynamic-field';
|
|
3
|
+
import { type OptionType, type ShortCodeItemType, type SingleFileInputValueType } from '@tager/admin-ui';
|
|
4
4
|
export interface SeoInfo {
|
|
5
5
|
readonly pageTitle: Nullable<string>;
|
|
6
6
|
readonly pageDescription: Nullable<string>;
|
package/dist/typings/zones.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OptionType } from '@tager/admin-ui';
|
|
2
|
-
import { Nullable } from '@tager/admin-services';
|
|
3
|
-
import { Banner, BannerFormValues, BannerPayload } from '../../../typings/banners';
|
|
1
|
+
import { type OptionType } from '@tager/admin-ui';
|
|
2
|
+
import { type Nullable } from '@tager/admin-services';
|
|
3
|
+
import { type Banner, type BannerFormValues, type BannerPayload } from '../../../typings/banners';
|
|
4
4
|
export declare function convertBannerToFormValues(banner: Nullable<Banner>, zonesOptionList: OptionType[]): BannerFormValues;
|
|
5
5
|
export declare function convertBannerFormValuesToPayload(values: BannerFormValues): BannerPayload;
|