@akinon/akitable 0.5.0 → 1.0.1

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 (51) hide show
  1. package/dist/cjs/akitable.d.ts +11 -0
  2. package/dist/cjs/akitable.d.ts.map +1 -1
  3. package/dist/cjs/akitable.js +33 -11
  4. package/dist/cjs/components/actions.js +3 -3
  5. package/dist/cjs/components/controls.js +2 -2
  6. package/dist/cjs/components/datatable.css +67 -20
  7. package/dist/cjs/components/datatable.d.ts.map +1 -1
  8. package/dist/cjs/components/datatable.js +55 -18
  9. package/dist/cjs/components/footer.d.ts.map +1 -1
  10. package/dist/cjs/components/footer.js +2 -2
  11. package/dist/cjs/components/header.css +33 -1
  12. package/dist/cjs/components/header.d.ts.map +1 -1
  13. package/dist/cjs/components/header.js +19 -11
  14. package/dist/cjs/components/pagination.css +1 -1
  15. package/dist/cjs/components/pagination.d.ts.map +1 -1
  16. package/dist/cjs/components/pagination.js +19 -4
  17. package/dist/cjs/i18n/translations/en.d.ts +1 -0
  18. package/dist/cjs/i18n/translations/en.d.ts.map +1 -1
  19. package/dist/cjs/i18n/translations/en.js +2 -1
  20. package/dist/cjs/i18n/translations/tr.d.ts +2 -1
  21. package/dist/cjs/i18n/translations/tr.d.ts.map +1 -1
  22. package/dist/cjs/i18n/translations/tr.js +3 -2
  23. package/dist/cjs/types.d.ts +100 -1
  24. package/dist/cjs/types.d.ts.map +1 -1
  25. package/dist/cjs/types.js +5 -0
  26. package/dist/esm/akitable.d.ts +11 -0
  27. package/dist/esm/akitable.d.ts.map +1 -1
  28. package/dist/esm/akitable.js +33 -11
  29. package/dist/esm/components/actions.js +3 -3
  30. package/dist/esm/components/controls.js +2 -2
  31. package/dist/esm/components/datatable.css +67 -20
  32. package/dist/esm/components/datatable.d.ts.map +1 -1
  33. package/dist/esm/components/datatable.js +55 -18
  34. package/dist/esm/components/footer.d.ts.map +1 -1
  35. package/dist/esm/components/footer.js +2 -2
  36. package/dist/esm/components/header.css +33 -1
  37. package/dist/esm/components/header.d.ts.map +1 -1
  38. package/dist/esm/components/header.js +19 -11
  39. package/dist/esm/components/pagination.css +1 -1
  40. package/dist/esm/components/pagination.d.ts.map +1 -1
  41. package/dist/esm/components/pagination.js +19 -4
  42. package/dist/esm/i18n/translations/en.d.ts +1 -0
  43. package/dist/esm/i18n/translations/en.d.ts.map +1 -1
  44. package/dist/esm/i18n/translations/en.js +2 -1
  45. package/dist/esm/i18n/translations/tr.d.ts +2 -1
  46. package/dist/esm/i18n/translations/tr.d.ts.map +1 -1
  47. package/dist/esm/i18n/translations/tr.js +3 -2
  48. package/dist/esm/types.d.ts +100 -1
  49. package/dist/esm/types.d.ts.map +1 -1
  50. package/dist/esm/types.js +4 -1
  51. package/package.json +22 -21
@@ -1,3 +1,3 @@
1
- .akinon-pagination-options .akinon-select {
1
+ .akitable-pagination .akinon-pagination-options .akinon-select {
2
2
  height: 38px;
3
3
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,kBAAkB,yBAoB9B,CAAC"}
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,eAAO,MAAM,kBAAkB,yBAuC9B,CAAC"}
@@ -3,11 +3,26 @@ import { Pagination } from '@akinon/ui-pagination';
3
3
  import React from 'react';
4
4
  import { useAkitableContext } from '../akitable-context';
5
5
  import { i18n } from '../i18n';
6
+ const PAGE_SIZE_OPTIONS = [20, 50, 100, 250];
6
7
  export const AkitablePagination = () => {
7
8
  const { isLoading, pagination, onPaginationChanged } = useAkitableContext();
8
9
  const { t } = i18n;
9
- return (React.createElement("div", null,
10
- React.createElement(Pagination, { simple: true, disabled: isLoading || (pagination === null || pagination === void 0 ? void 0 : pagination.total) === 0, current: pagination === null || pagination === void 0 ? void 0 : pagination.page, pageSize: pagination === null || pagination === void 0 ? void 0 : pagination.size, pageSizeOptions: [20, 50, 100, 250], total: pagination === null || pagination === void 0 ? void 0 : pagination.total, onChange: (page, size) => onPaginationChanged === null || onPaginationChanged === void 0 ? void 0 : onPaginationChanged(page, size), locale: {
11
- items_per_page: t('itemsPerPage')
12
- } })));
10
+ const totalPagination = (pagination === null || pagination === void 0 ? void 0 : pagination.total) || 0;
11
+ const hasItems = totalPagination > 0;
12
+ const locale = {
13
+ items_per_page: t('itemsPerPage')
14
+ };
15
+ const handleShowTotal = (total, range) => {
16
+ return t('paginationShowTotal', {
17
+ from: range[0],
18
+ to: range[1],
19
+ total
20
+ });
21
+ };
22
+ const handleOnChange = (page, size) => {
23
+ onPaginationChanged === null || onPaginationChanged === void 0 ? void 0 : onPaginationChanged(page, size);
24
+ return null;
25
+ };
26
+ return (React.createElement("div", { className: "akitable-pagination" },
27
+ React.createElement(Pagination, { disabled: isLoading || !hasItems, current: pagination === null || pagination === void 0 ? void 0 : pagination.page, pageSize: pagination === null || pagination === void 0 ? void 0 : pagination.size, pageSizeOptions: PAGE_SIZE_OPTIONS, total: totalPagination, showTotal: handleShowTotal, showSizeChanger: true, onChange: handleOnChange, locale: locale, theme: "light" })));
13
28
  };
@@ -11,6 +11,7 @@ declare const translations: {
11
11
  readonly edit: "Edit";
12
12
  readonly save: "Save";
13
13
  readonly cancel: "Cancel";
14
+ readonly paginationShowTotal: "{{from}}-{{to}} of {{total}} items";
14
15
  };
15
16
  export default translations;
16
17
  //# sourceMappingURL=en.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../src/i18n/translations/en.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;;;;;;;;;;;;;CAcR,CAAC;AAEX,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../src/i18n/translations/en.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;CAeR,CAAC;AAEX,eAAe,YAAY,CAAC"}
@@ -10,6 +10,7 @@ const translations = {
10
10
  selectedCount: 'Selected {{count}} record(s).',
11
11
  edit: 'Edit',
12
12
  save: 'Save',
13
- cancel: 'Cancel'
13
+ cancel: 'Cancel',
14
+ paginationShowTotal: '{{from}}-{{to}} of {{total}} items'
14
15
  };
15
16
  export default translations;
@@ -7,10 +7,11 @@ declare const translations: {
7
7
  readonly noData: "Kayıt bulunamadı.";
8
8
  readonly resultsFound: "{{count}} sonuç bulundu.";
9
9
  readonly selectAction: "Aksiyon Seçiniz";
10
- readonly selectedCount: "{{count}} kayit seçildi.";
10
+ readonly selectedCount: "{{count}} kayıt seçildi.";
11
11
  readonly edit: "Düzenle";
12
12
  readonly save: "Kaydet";
13
13
  readonly cancel: "İptal";
14
+ readonly paginationShowTotal: "{{from}}-{{to}} / {{total}} kayıt";
14
15
  };
15
16
  export default translations;
16
17
  //# sourceMappingURL=tr.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../../src/i18n/translations/tr.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;;;;;;;;;;;;;CAcR,CAAC;AAEX,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../../src/i18n/translations/tr.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;CAeR,CAAC;AAEX,eAAe,YAAY,CAAC"}
@@ -7,9 +7,10 @@ const translations = {
7
7
  noData: 'Kayıt bulunamadı.',
8
8
  resultsFound: '{{count}} sonuç bulundu.',
9
9
  selectAction: 'Aksiyon Seçiniz',
10
- selectedCount: '{{count}} kayit seçildi.',
10
+ selectedCount: '{{count}} kayıt seçildi.',
11
11
  edit: 'Düzenle',
12
12
  save: 'Kaydet',
13
- cancel: 'İptal'
13
+ cancel: 'İptal',
14
+ paginationShowTotal: '{{from}}-{{to}} / {{total}} kayıt'
14
15
  };
15
16
  export default translations;
@@ -1,55 +1,154 @@
1
1
  import { TableColumnType } from 'antd';
2
2
  import { ReactNode } from 'react';
3
3
  type RowClickEvent = (record: AkitableData, event?: React.MouseEvent<HTMLElement>, rowIndex?: number) => void;
4
- type RowEditCallback = (modifiedRecord: AkitableData, payload: AkitableData) => void;
4
+ type RowEditCallback = (modifiedRecord: AkitableData, payload: AkitableData) => void | Promise<void>;
5
5
  export type PaginationChangeEvent = (page: number, size: number) => void;
6
6
  export interface AkitableProps {
7
+ /**
8
+ * Actions available for the table rows.
9
+ */
7
10
  actions?: AkitableAction[];
11
+ /**
12
+ * Columns definition for the table.
13
+ */
8
14
  columns: AkitableColumn[];
15
+ /**
16
+ * Data source for the table.
17
+ */
9
18
  data: AkitableData[] | AkitablePaginatedData;
19
+ /**
20
+ * Header configuration for the table.
21
+ */
10
22
  header?: AkitableHeaderProps;
23
+ /**
24
+ * Footer configuration for the table.
25
+ */
11
26
  footer?: AkitableFooterProps;
27
+ /**
28
+ * Loading state for the table.
29
+ */
12
30
  isLoading?: boolean;
31
+ /**
32
+ * Pagination configuration for the table.
33
+ */
13
34
  pagination?: AkitablePaginationProps;
35
+ /**
36
+ * Unique key for each table row.
37
+ */
14
38
  rowKey: string;
39
+ /**
40
+ * Callback when pagination changes.
41
+ */
15
42
  onPaginationChanged?: PaginationChangeEvent;
43
+ /**
44
+ * Callback for row click events.
45
+ */
16
46
  onRowClick?: RowClickEvent;
47
+ /**
48
+ * Callback for row edit events.
49
+ */
17
50
  onRowEdit?: RowEditCallback;
18
51
  }
19
52
  export interface AkitableHeaderProps {
53
+ /**
54
+ * Title of the table header.
55
+ */
20
56
  title?: string;
57
+ /**
58
+ * Additional content for the table header.
59
+ */
21
60
  extra?: ReactNode;
22
61
  }
23
62
  export interface AkitableFooterProps {
63
+ /**
64
+ * Additional content for the table footer.
65
+ */
24
66
  extra?: ReactNode;
25
67
  }
26
68
  export interface AkitableDataTableProps {
69
+ /**
70
+ * Columns definition for the table.
71
+ */
27
72
  columns: AkitableColumn[];
73
+ /**
74
+ * Data source for the table.
75
+ */
28
76
  data: AkitableData[];
77
+ /**
78
+ * Unique key for each table row.
79
+ */
29
80
  rowKey: string;
81
+ /**
82
+ * Callback for row click events.
83
+ */
30
84
  onRowClick?: RowClickEvent;
85
+ /**
86
+ * Callback for row edit events.
87
+ */
31
88
  onRowEdit?: RowEditCallback;
32
89
  }
33
90
  export type AkitablePageSizes = 20 | 50 | 100 | 250;
34
91
  export interface AkitablePaginationProps {
92
+ /**
93
+ * Current page number.
94
+ */
35
95
  page: number;
96
+ /**
97
+ * Number of rows per page.
98
+ */
36
99
  size: AkitablePageSizes;
37
100
  }
38
101
  export interface AkitableColumn extends TableColumnType<AkitableData> {
102
+ /**
103
+ * Whether the column is copyable.
104
+ */
39
105
  copyable?: boolean;
106
+ /**
107
+ * Whether the column is editable.
108
+ */
40
109
  editable?: boolean;
41
110
  }
111
+ export declare const AkitableRowStatus: {
112
+ readonly PENDING: "pending";
113
+ readonly ERROR: "error";
114
+ };
115
+ type AllAkitableRowStatuses = `${(typeof AkitableRowStatus)[keyof typeof AkitableRowStatus]}`;
42
116
  export interface AkitableData {
117
+ /**
118
+ * Status of the table row.
119
+ */
120
+ rowStatus?: AllAkitableRowStatuses;
121
+ /**
122
+ * Additional properties for the table row.
123
+ */
43
124
  [key: string]: any;
44
125
  }
45
126
  export interface AkitablePaginatedData {
127
+ /**
128
+ * Total count of rows.
129
+ */
46
130
  count: number;
131
+ /**
132
+ * URL for the next set of paginated data.
133
+ */
47
134
  next?: string | null;
135
+ /**
136
+ * URL for the previous set of paginated data.
137
+ */
48
138
  previous?: string | null;
139
+ /**
140
+ * Results of the current page.
141
+ */
49
142
  results: AkitableData[];
50
143
  }
51
144
  export interface AkitableAction {
145
+ /**
146
+ * Label for the action.
147
+ */
52
148
  label: string;
149
+ /**
150
+ * Callback when the action is selected.
151
+ */
53
152
  onSelect: (selectedRowKeys: React.Key[]) => void;
54
153
  }
55
154
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,KAAK,aAAa,GAAG,CACnB,MAAM,EAAE,YAAY,EACpB,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EACrC,QAAQ,CAAC,EAAE,MAAM,KACd,IAAI,CAAC;AAEV,KAAK,eAAe,GAAG,CACrB,cAAc,EAAE,YAAY,EAC5B,OAAO,EAAE,YAAY,KAClB,IAAI,CAAC;AAEV,MAAM,MAAM,qBAAqB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;AAEzE,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,IAAI,EAAE,YAAY,EAAE,GAAG,qBAAqB,CAAC;IAC7C,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,CAAC,EAAE,qBAAqB,CAAC;IAC5C,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,mB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export {};
1
+ export const AkitableRowStatus = {
2
+ PENDING: 'pending',
3
+ ERROR: 'error'
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/akitable",
3
- "version": "0.5.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",
@@ -9,33 +9,34 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "antd": "5.17.0",
12
+ "antd": "5.22.6",
13
13
  "clsx": "^2.0.0",
14
14
  "react-error-boundary": "^4.0.13",
15
- "@akinon/akiform": "0.9.0",
16
- "@akinon/akilocale": "0.14.0",
17
- "@akinon/icons": "0.6.0",
18
- "@akinon/ui-card": "0.5.0",
19
- "@akinon/ui-button": "0.7.0",
20
- "@akinon/ui-select": "0.5.0",
21
- "@akinon/ui-space": "0.5.0",
22
- "@akinon/ui-progress": "0.5.0",
23
- "@akinon/ui-result": "0.3.0",
24
- "@akinon/ui-pagination": "0.5.0",
25
- "@akinon/ui-skeleton": "0.5.0",
26
- "@akinon/ui-theme": "0.7.0",
27
- "@akinon/ui-input": "0.6.0",
28
- "@akinon/ui-typography": "0.5.0",
29
- "@akinon/ui-spin": "0.5.0",
30
- "@akinon/ui-table": "0.5.0",
31
- "@akinon/ui-steps": "0.5.0"
15
+ "@akinon/akiform": "1.0.1",
16
+ "@akinon/akilocale": "1.0.1",
17
+ "@akinon/icons": "1.0.1",
18
+ "@akinon/ui-button": "1.0.1",
19
+ "@akinon/ui-card": "1.0.1",
20
+ "@akinon/ui-input": "1.0.1",
21
+ "@akinon/ui-pagination": "1.0.1",
22
+ "@akinon/ui-progress": "1.0.1",
23
+ "@akinon/ui-result": "1.0.1",
24
+ "@akinon/ui-select": "1.0.1",
25
+ "@akinon/ui-skeleton": "1.0.1",
26
+ "@akinon/ui-space": "1.0.1",
27
+ "@akinon/ui-table": "1.0.1",
28
+ "@akinon/ui-steps": "1.0.1",
29
+ "@akinon/ui-spin": "1.0.1",
30
+ "@akinon/ui-typography": "1.0.1",
31
+ "@akinon/ui-theme": "1.0.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "clean-package": "2.2.0",
35
35
  "copyfiles": "^2.4.1",
36
36
  "rimraf": "^5.0.5",
37
- "typescript": "^5.2.2",
38
- "@akinon/typescript-config": "0.4.0"
37
+ "typescript": "*",
38
+ "@akinon/typescript-config": "1.0.1",
39
+ "@akinon/utils": "1.0.1"
39
40
  },
40
41
  "peerDependencies": {
41
42
  "react": ">=18",