@hed-hog/tag 0.0.332 → 0.0.347

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.
@@ -5,12 +5,12 @@ export declare class TagController {
5
5
  constructor(tagService: TagService);
6
6
  list(paginationParams: any): Promise<{
7
7
  data: {
8
+ color: string;
9
+ status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
8
10
  id: number;
9
11
  created_at: Date;
10
12
  updated_at: Date;
11
13
  slug: string;
12
- status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
13
- color: string;
14
14
  }[];
15
15
  total: number;
16
16
  page: number;
@@ -25,36 +25,36 @@ export declare class TagController {
25
25
  inactive: number;
26
26
  }>;
27
27
  getById(id: number, locale: string): Promise<{
28
+ color: string;
29
+ status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
28
30
  id: number;
29
31
  created_at: Date;
30
32
  updated_at: Date;
31
33
  slug: string;
32
- status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
33
- color: string;
34
34
  }>;
35
35
  create(locale: string, body: TagDTO): Promise<{
36
+ color: string;
37
+ status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
36
38
  id: number;
37
39
  created_at: Date;
38
40
  updated_at: Date;
39
41
  slug: string;
40
- status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
41
- color: string;
42
42
  }>;
43
43
  update(id: number, body: Partial<TagDTO>, locale: string): Promise<{
44
+ color: string;
45
+ status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
44
46
  id: number;
45
47
  created_at: Date;
46
48
  updated_at: Date;
47
49
  slug: string;
48
- status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
49
- color: string;
50
50
  }>;
51
51
  delete(id: number, locale: string): Promise<{
52
+ color: string;
53
+ status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
52
54
  id: number;
53
55
  created_at: Date;
54
56
  updated_at: Date;
55
57
  slug: string;
56
- status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
57
- color: string;
58
58
  }>;
59
59
  }
60
60
  //# sourceMappingURL=tag.controller.d.ts.map
@@ -5,12 +5,12 @@ export declare class TagService {
5
5
  constructor(prisma: PrismaService);
6
6
  list(paginationParams: any): Promise<{
7
7
  data: {
8
+ color: string;
9
+ status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
8
10
  id: number;
9
11
  created_at: Date;
10
12
  updated_at: Date;
11
13
  slug: string;
12
- status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
13
- color: string;
14
14
  }[];
15
15
  total: number;
16
16
  page: number;
@@ -25,36 +25,36 @@ export declare class TagService {
25
25
  inactive: number;
26
26
  }>;
27
27
  create(locale: string, body: TagDTO): Promise<{
28
+ color: string;
29
+ status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
28
30
  id: number;
29
31
  created_at: Date;
30
32
  updated_at: Date;
31
33
  slug: string;
32
- status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
33
- color: string;
34
34
  }>;
35
35
  getById(id: number, locale: string): Promise<{
36
+ color: string;
37
+ status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
36
38
  id: number;
37
39
  created_at: Date;
38
40
  updated_at: Date;
39
41
  slug: string;
40
- status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
41
- color: string;
42
42
  }>;
43
43
  update(id: number, body: Partial<TagDTO>, locale: string): Promise<{
44
+ color: string;
45
+ status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
44
46
  id: number;
45
47
  created_at: Date;
46
48
  updated_at: Date;
47
49
  slug: string;
48
- status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
49
- color: string;
50
50
  }>;
51
51
  delete(id: number, locale: string): Promise<{
52
+ color: string;
53
+ status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
52
54
  id: number;
53
55
  created_at: Date;
54
56
  updated_at: Date;
55
57
  slug: string;
56
- status: import("@prisma/client").$Enums.tag_status_43028a2f87_enum | null;
57
- color: string;
58
58
  }>;
59
59
  }
60
60
  //# sourceMappingURL=tag.service.d.ts.map
@@ -48,6 +48,7 @@ import {
48
48
  } from '@/components/ui/sheet';
49
49
  import { useDebounce } from '@/hooks/use-debounce';
50
50
  import { useFormDraft } from '@/hooks/use-form-draft';
51
+ import { usePersistedPageSize } from '@/hooks/use-persisted-page-size';
51
52
  import { formatDateTime } from '@/lib/format-date';
52
53
  import { useApp, useQuery } from '@hed-hog/next-app-provider';
53
54
  import { zodResolver } from '@hookform/resolvers/zod';
@@ -114,7 +115,11 @@ export default function TagPage() {
114
115
  const [searchTerm, setSearchTerm] = useState('');
115
116
  const debouncedSearch = useDebounce(searchTerm);
116
117
  const [page, setPage] = useState(1);
117
- const [pageSize, setPageSize] = useState<number>(10);
118
+ const [pageSize, setPageSize] = usePersistedPageSize({
119
+ storageKey: 'pagination:global:pageSize',
120
+ defaultValue: 10,
121
+ allowedValues: [...PAGE_SIZE_OPTIONS],
122
+ });
118
123
  const { request, currentLocaleCode, getSettingValue } = useApp();
119
124
 
120
125
  const form = useForm<FormValues>({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/tag",
3
- "version": "0.0.332",
3
+ "version": "0.0.347",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -10,10 +10,10 @@
10
10
  "@nestjs/jwt": "^11",
11
11
  "@nestjs/mapped-types": "*",
12
12
  "@hed-hog/api-prisma": "0.0.6",
13
- "@hed-hog/api-pagination": "0.0.7",
13
+ "@hed-hog/core": "0.0.347",
14
14
  "@hed-hog/api": "0.0.8",
15
- "@hed-hog/core": "0.0.332",
16
- "@hed-hog/api-locale": "0.0.14"
15
+ "@hed-hog/api-locale": "0.0.14",
16
+ "@hed-hog/api-pagination": "0.0.7"
17
17
  },
18
18
  "exports": {
19
19
  ".": {