namirasoft-account-react 1.5.11 → 1.5.12

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 (43) hide show
  1. package/dist/NSFRoutes.d.ts +7 -0
  2. package/dist/NSFRoutes.js +29 -0
  3. package/dist/NSFRoutes.js.map +1 -0
  4. package/dist/layouts/NSALayout.js +2 -2
  5. package/dist/layouts/NSARouter.d.ts +17 -0
  6. package/dist/layouts/NSARouter.js +29 -0
  7. package/dist/layouts/NSARouter.js.map +1 -0
  8. package/dist/layouts/{NSARoutes_Field.d.ts → NSARouter_Field.d.ts} +2 -2
  9. package/dist/layouts/{NSARoutes_Field.js → NSARouter_Field.js} +27 -24
  10. package/dist/layouts/NSARouter_Field.js.map +1 -0
  11. package/dist/layouts/NSASectionList.js +1 -1
  12. package/dist/layouts/NSASectionList.js.map +1 -1
  13. package/dist/main.d.ts +21 -14
  14. package/dist/main.js +21 -14
  15. package/dist/main.js.map +1 -1
  16. package/dist/pages/NSFCategoryEditPage.d.ts +19 -0
  17. package/dist/pages/NSFCategoryEditPage.js +47 -0
  18. package/dist/pages/NSFCategoryEditPage.js.map +1 -0
  19. package/dist/pages/NSFCategoryListPage.d.ts +8 -0
  20. package/dist/pages/NSFCategoryListPage.js +12 -0
  21. package/dist/pages/NSFCategoryListPage.js.map +1 -0
  22. package/dist/pages/NSFCategoryViewPage.d.ts +8 -0
  23. package/dist/pages/NSFCategoryViewPage.js +12 -0
  24. package/dist/pages/NSFCategoryViewPage.js.map +1 -0
  25. package/dist/pages/NSFEntities.d.ts +13 -0
  26. package/dist/pages/NSFEntities.js +60 -0
  27. package/dist/pages/NSFEntities.js.map +1 -0
  28. package/package.json +1 -1
  29. package/src/NSFRoutes.ts +31 -0
  30. package/src/layouts/NSALayout.tsx +2 -2
  31. package/src/layouts/NSARouter.tsx +53 -0
  32. package/src/layouts/{NSARoutes_Field.ts → NSARouter_Field.ts} +25 -23
  33. package/src/layouts/NSASectionList.tsx +1 -1
  34. package/src/main.ts +21 -14
  35. package/src/pages/NSFCategoryEditPage.tsx +91 -0
  36. package/src/pages/NSFCategoryListPage.tsx +29 -0
  37. package/src/pages/NSFCategoryViewPage.tsx +28 -0
  38. package/src/pages/NSFEntities.ts +65 -0
  39. package/dist/layouts/NSARoutes.d.ts +0 -11
  40. package/dist/layouts/NSARoutes.js +0 -13
  41. package/dist/layouts/NSARoutes.js.map +0 -1
  42. package/dist/layouts/NSARoutes_Field.js.map +0 -1
  43. package/src/layouts/NSARoutes.tsx +0 -29
@@ -0,0 +1,7 @@
1
+ export declare class NSFRoutes {
2
+ static CategoryList(slot_id: string, slot_name: string): string;
3
+ static CategoryNew(slot_id: string, slot_name: string): string;
4
+ static CategoryCopy(slot_id: string, slot_name: string, id: string): string;
5
+ static CategoryEdit(slot_id: string, slot_name: string, id: string): string;
6
+ static CategoryView(slot_id: string, slot_name: string, id: string): string;
7
+ }
@@ -0,0 +1,29 @@
1
+ import { NamingConvention } from 'namirasoft-core';
2
+ export class NSFRoutes {
3
+ static CategoryList(slot_id, slot_name) {
4
+ const name = NamingConvention.auto.convert(slot_name, NamingConvention.lower_case_underscore);
5
+ return `/slot/${slot_id}/${name}/category/list`;
6
+ }
7
+ ;
8
+ static CategoryNew(slot_id, slot_name) {
9
+ const name = NamingConvention.auto.convert(slot_name, NamingConvention.lower_case_underscore);
10
+ return `/slot/${slot_id}/${name}/category/new`;
11
+ }
12
+ ;
13
+ static CategoryCopy(slot_id, slot_name, id) {
14
+ const name = NamingConvention.auto.convert(slot_name, NamingConvention.lower_case_underscore);
15
+ return `/slot/${slot_id}/${name}/category/${id}/copy`;
16
+ }
17
+ ;
18
+ static CategoryEdit(slot_id, slot_name, id) {
19
+ const name = NamingConvention.auto.convert(slot_name, NamingConvention.lower_case_underscore);
20
+ return `/slot/${slot_id}/${name}/category/${id}/edit`;
21
+ }
22
+ ;
23
+ static CategoryView(slot_id, slot_name, id) {
24
+ const name = NamingConvention.auto.convert(slot_name, NamingConvention.lower_case_underscore);
25
+ return `/slot/${slot_id}/${name}/category/${id}/view`;
26
+ }
27
+ ;
28
+ }
29
+ //# sourceMappingURL=NSFRoutes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSFRoutes.js","sourceRoot":"","sources":["../src/NSFRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,OAAO,SAAS;IAGrB,MAAM,CAAC,YAAY,CAAC,OAAe,EAAE,SAAiB;QAErD,MAAM,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;QAC9F,OAAO,SAAS,OAAO,IAAI,IAAI,gBAAgB,CAAC;IACjD,CAAC;IAAA,CAAC;IACF,MAAM,CAAC,WAAW,CAAC,OAAe,EAAE,SAAiB;QAEpD,MAAM,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;QAC9F,OAAO,SAAS,OAAO,IAAI,IAAI,eAAe,CAAC;IAChD,CAAC;IAAA,CAAC;IACF,MAAM,CAAC,YAAY,CAAC,OAAe,EAAE,SAAiB,EAAE,EAAU;QAEjE,MAAM,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;QAC9F,OAAO,SAAS,OAAO,IAAI,IAAI,aAAa,EAAE,OAAO,CAAC;IACvD,CAAC;IAAA,CAAC;IACF,MAAM,CAAC,YAAY,CAAC,OAAe,EAAE,SAAiB,EAAE,EAAU;QAEjE,MAAM,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;QAC9F,OAAO,SAAS,OAAO,IAAI,IAAI,aAAa,EAAE,OAAO,CAAC;IACvD,CAAC;IAAA,CAAC;IACF,MAAM,CAAC,YAAY,CAAC,OAAe,EAAE,SAAiB,EAAE,EAAU;QAEjE,MAAM,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;QAC9F,OAAO,SAAS,OAAO,IAAI,IAAI,aAAa,EAAE,OAAO,CAAC;IACvD,CAAC;IAAA,CAAC;CACF"}
@@ -26,7 +26,7 @@ import { FieldCacheService } from '../FieldCacheService';
26
26
  import { NSACacheService } from '../NSACacheService';
27
27
  import { UseParams } from '../UseParams';
28
28
  import { Actions } from './Actions';
29
- import { NSARoutes_Field } from './NSARoutes_Field';
29
+ import { NSARouter_Field } from './NSARouter_Field';
30
30
  import { NSASectionEdit } from './NSASectionEdit';
31
31
  import { NSASectionList } from './NSASectionList';
32
32
  import { NSASectionView } from './NSASectionView';
@@ -405,7 +405,7 @@ export class NSALayout extends Component {
405
405
  onCollapse: () => {
406
406
  this.setState((prev) => ({ showMasterMenu: !prev.showMasterMenu }));
407
407
  },
408
- filters_postprocessor: (filters) => NSARoutes_Field.postprocess(filters, this.state.ctf_rows),
408
+ filters_postprocessor: (filters) => NSARouter_Field.postprocess(filters, this.state.ctf_rows),
409
409
  }, action: {
410
410
  title: action_title,
411
411
  description: action_description,
@@ -0,0 +1,17 @@
1
+ import { EntityResolveResponseRow } from 'namirasoft-field';
2
+ import { Component, ReactNode } from 'react';
3
+ import { NSARouterMakerProps } from '../NSARouterMakerProps';
4
+ import { NSFFieldServersProps } from '../pages/NSFEntities';
5
+ export interface NSARoutesProps {
6
+ props: NSARouterMakerProps;
7
+ servers: NSFFieldServersProps['servers'];
8
+ rows: EntityResolveResponseRow | null;
9
+ children: ReactNode;
10
+ }
11
+ interface NSARoutesState {
12
+ }
13
+ export declare class NSARouter extends Component<NSARoutesProps, NSARoutesState> {
14
+ constructor(props: NSARoutesProps);
15
+ render(): import("react/jsx-runtime").JSX.Element;
16
+ }
17
+ export {};
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { SlotEntityType } from 'namirasoft-field';
3
+ import { NSRoutes } from 'namirasoft-site-react';
4
+ import { Component } from 'react';
5
+ import { Route } from 'react-router-dom';
6
+ import { NSFRoutes } from '../NSFRoutes';
7
+ import { NSFCategoryEditPage } from '../pages/NSFCategoryEditPage';
8
+ import { NSFCategoryListPage } from '../pages/NSFCategoryListPage';
9
+ import { NSFCategoryViewPage } from '../pages/NSFCategoryViewPage';
10
+ export class NSARouter extends Component {
11
+ constructor(props) {
12
+ super(props);
13
+ this.state = {};
14
+ }
15
+ render() {
16
+ var _a;
17
+ const { props, servers, rows, children } = this.props;
18
+ const scope_slots = (_a = rows === null || rows === void 0 ? void 0 : rows.slots.filter(s => s.entity_type === SlotEntityType.CategoryScope)) !== null && _a !== void 0 ? _a : [];
19
+ let pairs = scope_slots.map(slot => ({ slot, category_scope: rows === null || rows === void 0 ? void 0 : rows.category_scopes.find(c => c.id === slot.entity_id) })).filter(i => i.category_scope);
20
+ return (_jsxs(NSRoutes, { children: [children, pairs.flatMap(({ slot, category_scope }) => [
21
+ _jsx(Route, { path: NSFRoutes.CategoryList(slot.id, slot.name), element: _jsx(NSFCategoryListPage, Object.assign({}, props, { servers: servers, slot: slot, category_scope: category_scope })) }, `${slot.id}-category-list`),
22
+ _jsx(Route, { path: NSFRoutes.CategoryNew(slot.id, slot.name), element: _jsx(NSFCategoryEditPage, Object.assign({ isEdit: false }, props, { servers: servers, slot: slot, category_scope: category_scope })) }, `${slot.id}-category-new`),
23
+ _jsx(Route, { path: NSFRoutes.CategoryCopy(slot.id, slot.name, ":id"), element: _jsx(NSFCategoryEditPage, Object.assign({ isEdit: false }, props, { servers: servers, slot: slot, category_scope: category_scope })) }, `${slot.id}-category-copy`),
24
+ _jsx(Route, { path: NSFRoutes.CategoryEdit(slot.id, slot.name, ":id"), element: _jsx(NSFCategoryEditPage, Object.assign({ isEdit: true }, props, { servers: servers, slot: slot, category_scope: category_scope })) }, `${slot.id}-category-edit`),
25
+ _jsx(Route, { path: NSFRoutes.CategoryView(slot.id, slot.name, ":id"), element: _jsx(NSFCategoryViewPage, Object.assign({}, props, { servers: servers, slot: slot, category_scope: category_scope })) }, `${slot.id}-category-view`),
26
+ ])] }));
27
+ }
28
+ }
29
+ //# sourceMappingURL=NSARouter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSARouter.js","sourceRoot":"","sources":["../../src/layouts/NSARouter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA8C,cAAc,EAAW,MAAM,kBAAkB,CAAC;AACvG,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAcnE,MAAM,OAAO,SAAU,SAAQ,SAAyC;IAEpE,YAAY,KAAqB;QAE7B,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IACpB,CAAC;IACQ,MAAM;;QAEX,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACtD,MAAM,WAAW,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,cAAc,CAAC,aAAa,CAAC,mCAAI,EAAE,CAAC;QACl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AAK,IAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,IAAI,IAA7M,GAAG,IAAI,CAAC,EAAE,gBAAgB,CAAuL;oBAC7N,KAAC,KAAK,IAAkC,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,KAAC,mBAAmB,kBAAC,MAAM,EAAE,IAAI,IAAM,KAAK,IAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,IAAI,IAA5M,GAAG,IAAI,CAAC,EAAE,gBAAgB,CAAsL;oBAC5N,KAAC,KAAK,IAAkC,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,KAAC,mBAAmB,oBAAK,KAAK,IAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,IAAI,IAA9L,GAAG,IAAI,CAAC,EAAE,gBAAgB,CAAwK;iBACjN,CAAC,IAEC,CACd,CAAC;IACN,CAAC;CACJ"}
@@ -1,8 +1,8 @@
1
1
  import { FilterLinkFullRow } from 'namirasoft-api-link';
2
2
  import { EntityResolveResponseRow } from 'namirasoft-field';
3
- export declare class NSARoutes_Field {
3
+ export declare class NSARouter_Field {
4
4
  static postprocess(filters: FilterLinkFullRow[], rows: EntityResolveResponseRow | null): FilterLinkFullRow[];
5
- private static findScope;
5
+ private static findEntityRow;
6
6
  private static make;
7
7
  private static walk;
8
8
  }
@@ -1,27 +1,28 @@
1
1
  import { NamingConvention } from 'namirasoft-core';
2
2
  import { SlotEntityType } from 'namirasoft-field';
3
- export class NSARoutes_Field {
3
+ import { NSFRoutes } from '../NSFRoutes';
4
+ export class NSARouter_Field {
4
5
  static postprocess(filters, rows) {
5
6
  var _a, _b, _c, _d, _e;
6
- if (!rows || rows.category_scopes.length === 0)
7
+ if (!rows || rows.slots.length === 0)
7
8
  return filters;
8
9
  const result = [...filters];
9
10
  const id_counter = { value: -1000000 };
10
11
  const matched = new Set();
11
- NSARoutes_Field.walk(filters, null, rows, result, id_counter, matched);
12
+ NSARouter_Field.walk(filters, null, rows, result, id_counter, matched);
12
13
  const fallback_filter_id = (_b = (_a = filters[0]) === null || _a === void 0 ? void 0 : _a.filter_id) !== null && _b !== void 0 ? _b : 0;
13
14
  const fallback_filter_ref = (_d = (_c = filters[0]) === null || _c === void 0 ? void 0 : _c.filter) !== null && _d !== void 0 ? _d : null;
14
- for (const scope of rows.category_scopes) {
15
- if (matched.has(scope.id))
15
+ for (const slot of rows.slots) {
16
+ if (matched.has(slot.id))
16
17
  continue;
17
- const parent = NSARoutes_Field.make(id_counter, null, fallback_filter_id, fallback_filter_ref, scope.name, (_e = scope.description) !== null && _e !== void 0 ? _e : "", "");
18
+ const parent = NSARouter_Field.make(id_counter, null, fallback_filter_id, fallback_filter_ref, slot.name, (_e = slot.description) !== null && _e !== void 0 ? _e : "", "");
18
19
  result.push(parent);
19
- result.push(NSARoutes_Field.make(id_counter, parent.id, fallback_filter_id, fallback_filter_ref, "Create", "", `./cateogry/${scope.name}/new`));
20
- result.push(NSARoutes_Field.make(id_counter, parent.id, fallback_filter_id, fallback_filter_ref, "List", "", `./cateogry/${scope.name}/list`));
20
+ result.push(NSARouter_Field.make(id_counter, parent.id, fallback_filter_id, fallback_filter_ref, "Create", "", NSFRoutes.CategoryNew(slot.id, slot.name)));
21
+ result.push(NSARouter_Field.make(id_counter, parent.id, fallback_filter_id, fallback_filter_ref, "List", "", NSFRoutes.CategoryList(slot.id, slot.name)));
21
22
  }
22
23
  return result;
23
24
  }
24
- static findScope(filter_name, rows) {
25
+ static findEntityRow(filter_name, rows) {
25
26
  var _a;
26
27
  const n = NamingConvention.auto.convert((filter_name !== null && filter_name !== void 0 ? filter_name : "").trim(), NamingConvention.lower_case);
27
28
  if (n.length === 0)
@@ -29,11 +30,8 @@ export class NSARoutes_Field {
29
30
  for (const slot of rows.slots) {
30
31
  if (slot.entity_type != SlotEntityType.CategoryScope)
31
32
  continue;
32
- if (NamingConvention.auto.convert(((_a = slot.entity) !== null && _a !== void 0 ? _a : "").trim(), NamingConvention.lower_case) === n) {
33
- const scope = rows.category_scopes.find(c => c.id == slot.entity_id);
34
- if (scope)
35
- return scope;
36
- }
33
+ if (NamingConvention.auto.convert(((_a = slot.entity) !== null && _a !== void 0 ? _a : "").trim(), NamingConvention.lower_case) === n)
34
+ return slot;
37
35
  }
38
36
  return null;
39
37
  }
@@ -70,20 +68,25 @@ export class NSARoutes_Field {
70
68
  };
71
69
  }
72
70
  static walk(filters, parent_id, rows, result, id_counter, matched) {
73
- var _a, _b, _c, _d;
71
+ var _a, _b, _c, _d, _e;
74
72
  const children = filters.filter(f => f.parent_id === parent_id);
75
73
  for (const filter of children) {
76
74
  const filter_name = (_c = (_a = filter.name) !== null && _a !== void 0 ? _a : (_b = filter.link) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : "";
77
- const scope = NSARoutes_Field.findScope(filter_name, rows);
78
- if (scope) {
79
- matched.add(scope.id);
80
- const parent = NSARoutes_Field.make(id_counter, filter.id, filter.filter_id, filter.filter, scope.name, (_d = scope.description) !== null && _d !== void 0 ? _d : "", "");
81
- result.push(parent);
82
- result.push(NSARoutes_Field.make(id_counter, parent.id, filter.filter_id, filter.filter, "Create", "", `./cateogry/${scope.name}/new`));
83
- result.push(NSARoutes_Field.make(id_counter, parent.id, filter.filter_id, filter.filter, "List", "", `./cateogry/${scope.name}/list`));
75
+ const slot = NSARouter_Field.findEntityRow(filter_name, rows);
76
+ if (slot) {
77
+ matched.add(slot.id);
78
+ const parent = NSARouter_Field.make(id_counter, filter.parent_id, filter.filter_id, filter.filter, slot.name, (_d = slot.description) !== null && _d !== void 0 ? _d : "", "");
79
+ parent.order = ((_e = filter.order) !== null && _e !== void 0 ? _e : 0) - 1;
80
+ const idx = result.indexOf(filter);
81
+ if (idx >= 0)
82
+ result.splice(idx, 0, parent);
83
+ else
84
+ result.push(parent);
85
+ result.push(NSARouter_Field.make(id_counter, parent.id, filter.filter_id, filter.filter, "Create", "", NSFRoutes.CategoryNew(slot.id, slot.name)));
86
+ result.push(NSARouter_Field.make(id_counter, parent.id, filter.filter_id, filter.filter, "List", "", NSFRoutes.CategoryList(slot.id, slot.name)));
84
87
  }
85
- NSARoutes_Field.walk(filters, filter.id, rows, result, id_counter, matched);
88
+ NSARouter_Field.walk(filters, filter.id, rows, result, id_counter, matched);
86
89
  }
87
90
  }
88
91
  }
89
- //# sourceMappingURL=NSARoutes_Field.js.map
92
+ //# sourceMappingURL=NSARouter_Field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSARouter_Field.js","sourceRoot":"","sources":["../../src/layouts/NSARouter_Field.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAA4B,cAAc,EAAW,MAAM,kBAAkB,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,OAAO,eAAe;IAExB,MAAM,CAAC,WAAW,CACd,OAA4B,EAC5B,IAAqC;;QAGrC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;YAChC,OAAO,OAAO,CAAC;QAEnB,MAAM,MAAM,GAAwB,CAAC,GAAG,OAAO,CAAC,CAAC;QACjD,MAAM,UAAU,GAAG,EAAE,KAAK,EAAE,CAAC,OAAS,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;QAElC,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QAEvE,MAAM,kBAAkB,GAAG,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,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBACnJ,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACtJ,CAAC;YACD,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QAChF,CAAC;IACL,CAAC;CACJ"}
@@ -44,7 +44,7 @@ export class NSASectionList extends Component {
44
44
  var _a;
45
45
  this.setState({ mode: (_a = e.getValueOne(false)) !== null && _a !== void 0 ? _a : "" });
46
46
  } }) }) }), _jsx(NSSpace, { size: NSSpaceSizeType.MINI })] }), show_view ?
47
- _jsx(NSSplitter, { storage_key: `nsa_splitter_${this.props.entity.product_id}_${this.props.entity.name}`, master_content: mode_current.getChild(this.props.entity), detail_content: (this.state.selected_row_ids.length === 1 &&
47
+ _jsx(NSSplitter, { storage_key: `ns-splitter-product:${this.props.entity.product_id}-entity:${this.props.entity.name}-height`, master_content: mode_current.getChild(this.props.entity), detail_content: (this.state.selected_row_ids.length === 1 &&
48
48
  _jsx(NSASectionViewTabPage, Object.assign({ ref: this.NSASectionViewTabPage_Ref }, this.props, { ui: (_f = this.props.ui) === null || _f === void 0 ? void 0 : _f.tab_page_view, model: {
49
49
  id: this.getSelectedIDs()[0],
50
50
  row: this.getSelectedRows()[0]
@@ -1 +1 @@
1
- {"version":3,"file":"NSASectionList.js","sourceRoot":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AC,GACA,GACG,GACC,EACR,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,IAAI,GAAI,IACrC,EAGH,SAAS,CAAC,CAAC;4BACV,KAAC,UAAU,IACV,WAAW,EAAE,uBAAuB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,WAAW,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,SAAS,EAC1G,cAAc,EAAE,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACxD,cAAc,EAAE,CACf,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC;oCACxC,KAAC,qBAAqB,kBAErB,GAAG,EAAE,IAAI,CAAC,yBAAyB,IAC/B,IAAI,CAAC,KAAK,IACd,EAAE,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,EAAE,0CAAE,aAAa,EAChC,KAAK,EAAE;4CACN,EAAE,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;4CAC5B,GAAG,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC;yCAC9B,KAPI,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAQlC,CACF,GACA,CAAC,CAAC;4BACJ,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAErC,EACL,IAAI,CAAC,KAAK,CAAC,QAAQ,IAClB,CACH,CAAC;IACH,CAAC;CACD"}
package/dist/main.d.ts CHANGED
@@ -1,8 +1,15 @@
1
1
  export * from "./components/NSAAccessListDialog";
2
+ export * from "./components/NSABoxSecret";
2
3
  export * from "./components/NSAMasterMenu";
3
4
  export * from "./components/NSAMasterMenuItem";
4
5
  export * from "./components/NSAMessageListDialog";
5
6
  export * from "./components/NSAProductListDialog";
7
+ export * from "./components/NSAReorderDialog";
8
+ export * from "./components/NSASortDialog";
9
+ export * from "./components/NSATable";
10
+ export * from "./components/NSAUserDialog";
11
+ export * from "./components/NSAWorkspaceListDialog";
12
+ export * from "./components/NSLabelSecret";
6
13
  export * from "./components/quickfilter/NSAFilterBoxBase";
7
14
  export * from "./components/quickfilter/NSAFilterBoxBoolean";
8
15
  export * from "./components/quickfilter/NSAFilterBoxDate";
@@ -13,35 +20,35 @@ export * from "./components/quickfilter/NSAFilterBoxString";
13
20
  export * from "./components/quickfilter/NSAFilterBoxTime";
14
21
  export * from "./components/quickfilter/NSAQuickFilterBar";
15
22
  export * from "./components/quickfilter/NSAQuickFilterDialog";
16
- export * from "./components/NSAReorderDialog";
17
- export * from "./components/NSASortDialog";
18
- export * from "./components/NSATable";
19
- export * from "./components/NSAUserDialog";
20
- export * from "./components/NSAWorkspaceListDialog";
21
- export * from "./components/NSABoxSecret";
22
- export * from "./components/NSLabelSecret";
23
+ export * from "./CTFRow";
23
24
  export * from "./formatters/SecretFormatter";
25
+ export * from "./IEntityInfo";
24
26
  export * from "./layouts/Actions";
25
27
  export * from "./layouts/CFTUtil";
26
28
  export * from "./layouts/NSALayout";
29
+ export * from "./layouts/NSARouter";
30
+ export * from "./layouts/NSARouter_Field";
27
31
  export * from "./layouts/NSASectionEdit";
28
32
  export * from "./layouts/NSASectionEditTabPage";
29
33
  export * from "./layouts/NSASectionList";
30
34
  export * from "./layouts/NSASectionView";
31
35
  export * from "./layouts/NSASectionViewTabMore";
32
36
  export * from "./layouts/NSASectionViewTabPage";
37
+ export * from "./NSACacheService";
38
+ export * from "./NSAFilterOperators";
39
+ export * from "./NSARouterMaker";
40
+ export * from "./NSARouterMakerConfig";
41
+ export * from "./NSARouterMakerProps";
42
+ export * from "./NSFRoutes";
33
43
  export * from "./pages/NSAConsentPage";
34
44
  export * from "./pages/NSAEmailVerificationPage";
35
45
  export * from "./pages/NSAHomePage";
36
46
  export * from "./pages/NSALoginPage";
37
47
  export * from "./pages/NSAPhoneVerificationPage";
38
48
  export * from "./pages/NSAVerificationPage";
49
+ export * from "./pages/NSFCategoryEditPage";
50
+ export * from "./pages/NSFCategoryListPage";
51
+ export * from "./pages/NSFCategoryViewPage";
52
+ export * from "./pages/NSFEntities";
39
53
  export * from "./pages/PaymentRequired";
40
- export * from "./CTFRow";
41
- export * from "./IEntityInfo";
42
- export * from "./NSACacheService";
43
- export * from "./NSAFilterOperators";
44
- export * from "./NSARouterMaker";
45
- export * from "./NSARouterMakerConfig";
46
- export * from "./NSARouterMakerProps";
47
54
  export * from "./UseParams";
package/dist/main.js CHANGED
@@ -1,8 +1,15 @@
1
1
  export * from "./components/NSAAccessListDialog";
2
+ export * from "./components/NSABoxSecret";
2
3
  export * from "./components/NSAMasterMenu";
3
4
  export * from "./components/NSAMasterMenuItem";
4
5
  export * from "./components/NSAMessageListDialog";
5
6
  export * from "./components/NSAProductListDialog";
7
+ export * from "./components/NSAReorderDialog";
8
+ export * from "./components/NSASortDialog";
9
+ export * from "./components/NSATable";
10
+ export * from "./components/NSAUserDialog";
11
+ export * from "./components/NSAWorkspaceListDialog";
12
+ export * from "./components/NSLabelSecret";
6
13
  export * from "./components/quickfilter/NSAFilterBoxBase";
7
14
  export * from "./components/quickfilter/NSAFilterBoxBoolean";
8
15
  export * from "./components/quickfilter/NSAFilterBoxDate";
@@ -13,36 +20,36 @@ export * from "./components/quickfilter/NSAFilterBoxString";
13
20
  export * from "./components/quickfilter/NSAFilterBoxTime";
14
21
  export * from "./components/quickfilter/NSAQuickFilterBar";
15
22
  export * from "./components/quickfilter/NSAQuickFilterDialog";
16
- export * from "./components/NSAReorderDialog";
17
- export * from "./components/NSASortDialog";
18
- export * from "./components/NSATable";
19
- export * from "./components/NSAUserDialog";
20
- export * from "./components/NSAWorkspaceListDialog";
21
- export * from "./components/NSABoxSecret";
22
- export * from "./components/NSLabelSecret";
23
+ export * from "./CTFRow";
23
24
  export * from "./formatters/SecretFormatter";
25
+ export * from "./IEntityInfo";
24
26
  export * from "./layouts/Actions";
25
27
  export * from "./layouts/CFTUtil";
26
28
  export * from "./layouts/NSALayout";
29
+ export * from "./layouts/NSARouter";
30
+ export * from "./layouts/NSARouter_Field";
27
31
  export * from "./layouts/NSASectionEdit";
28
32
  export * from "./layouts/NSASectionEditTabPage";
29
33
  export * from "./layouts/NSASectionList";
30
34
  export * from "./layouts/NSASectionView";
31
35
  export * from "./layouts/NSASectionViewTabMore";
32
36
  export * from "./layouts/NSASectionViewTabPage";
37
+ export * from "./NSACacheService";
38
+ export * from "./NSAFilterOperators";
39
+ export * from "./NSARouterMaker";
40
+ export * from "./NSARouterMakerConfig";
41
+ export * from "./NSARouterMakerProps";
42
+ export * from "./NSFRoutes";
33
43
  export * from "./pages/NSAConsentPage";
34
44
  export * from "./pages/NSAEmailVerificationPage";
35
45
  export * from "./pages/NSAHomePage";
36
46
  export * from "./pages/NSALoginPage";
37
47
  export * from "./pages/NSAPhoneVerificationPage";
38
48
  export * from "./pages/NSAVerificationPage";
49
+ export * from "./pages/NSFCategoryEditPage";
50
+ export * from "./pages/NSFCategoryListPage";
51
+ export * from "./pages/NSFCategoryViewPage";
52
+ export * from "./pages/NSFEntities";
39
53
  export * from "./pages/PaymentRequired";
40
- export * from "./CTFRow";
41
- export * from "./IEntityInfo";
42
- export * from "./NSACacheService";
43
- export * from "./NSAFilterOperators";
44
- export * from "./NSARouterMaker";
45
- export * from "./NSARouterMakerConfig";
46
- export * from "./NSARouterMakerProps";
47
54
  export * from "./UseParams";
48
55
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAA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AAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { CategoryScopeRow, SlotRow } from "namirasoft-field";
2
+ import { NSBoxString, NSBoxTextArea } from "namirasoft-site-react";
3
+ import { Component } from "react";
4
+ import { NSARouterMakerProps } from "../NSARouterMakerProps";
5
+ import { NSFFieldServersProps } from "./NSFEntities";
6
+ export interface NSFCategoryEditPageProps extends NSARouterMakerProps, NSFFieldServersProps {
7
+ slot: SlotRow;
8
+ category_scope: CategoryScopeRow;
9
+ isEdit: boolean;
10
+ }
11
+ interface NSFCategoryEditPageState {
12
+ }
13
+ export declare class NSFCategoryEditPage extends Component<NSFCategoryEditPageProps, NSFCategoryEditPageState> {
14
+ NSBoxString_Name: import("react").RefObject<NSBoxString>;
15
+ NSBoxTexArea_Description: import("react").RefObject<NSBoxTextArea>;
16
+ constructor(props: NSFCategoryEditPageProps);
17
+ render(): import("react/jsx-runtime").JSX.Element;
18
+ }
19
+ export {};
@@ -0,0 +1,47 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { NSBox, NSBoxString, NSBoxTextArea, NSColumn, NSRow } from "namirasoft-site-react";
3
+ import { Component, createRef } from "react";
4
+ import { NSALayout } from "../layouts/NSALayout";
5
+ import { NSFEntities } from "./NSFEntities";
6
+ export class NSFCategoryEditPage extends Component {
7
+ constructor(props) {
8
+ super(props);
9
+ this.NSBoxString_Name = createRef();
10
+ this.NSBoxTexArea_Description = createRef();
11
+ this.state = {};
12
+ }
13
+ render() {
14
+ return (_jsx(NSALayout, Object.assign({}, this.props, { action: {
15
+ description: this.props.isEdit ? "This section allows you to update the details of an existing category." : "This section allows you to add a new category by entering its details."
16
+ }, pages: {
17
+ entity: NSFEntities.category(this.props, this.props.slot, this.props.category_scope),
18
+ edit: Object.assign(Object.assign({}, this.props), { ui: {
19
+ tab_page_edit: {
20
+ editor: {
21
+ getInputRow: () => {
22
+ var _a, _b, _c, _d;
23
+ let category_scope_id = this.props.category_scope.id;
24
+ let name = (_b = (_a = this.NSBoxString_Name.current) === null || _a === void 0 ? void 0 : _a.getValue()) !== null && _b !== void 0 ? _b : "";
25
+ let description = (_d = (_c = this.NSBoxTexArea_Description.current) === null || _c === void 0 ? void 0 : _c.getValue()) !== null && _d !== void 0 ? _d : "";
26
+ return {
27
+ workspace_id: "",
28
+ category_scope_id,
29
+ name,
30
+ description,
31
+ category_category: [],
32
+ category_field: [],
33
+ category_tag: [],
34
+ };
35
+ },
36
+ setRow: (row) => {
37
+ var _a, _b, _c;
38
+ (_a = this.NSBoxString_Name.current) === null || _a === void 0 ? void 0 : _a.setValue(row.name);
39
+ (_b = this.NSBoxTexArea_Description.current) === null || _b === void 0 ? void 0 : _b.setValue((_c = row.description) !== null && _c !== void 0 ? _c : "");
40
+ }
41
+ }
42
+ }
43
+ } })
44
+ }, children: _jsxs(NSColumn, { children: [_jsx(NSRow, { children: _jsx(NSBoxString, { ref: this.NSBoxString_Name, title: "Name", required: true, style: { width: NSBox.width.double }, info: { link: "https://namirasoft.com/field/console-guide/category/#field-name" } }) }), _jsx(NSBoxTextArea, { ref: this.NSBoxTexArea_Description, title: "Description", required: false, style: { width: NSBox.width.double }, info: { link: "https://namirasoft.com/field/console-guide/category/#field-description" } })] }) })));
45
+ }
46
+ }
47
+ //# sourceMappingURL=NSFCategoryEditPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSFCategoryEditPage.js","sourceRoot":"","sources":["../../src/pages/NSFCategoryEditPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAwB,MAAM,eAAe,CAA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f,MAAA,IAAI,CAAC,gBAAgB,CAAC,OAAO,0CAAE,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;oCAClD,MAAA,IAAI,CAAC,wBAAwB,CAAC,OAAO,0CAAE,QAAQ,CAAC,MAAA,GAAG,CAAC,WAAW,mCAAI,EAAE,CAAC,CAAC;gCACxE,CAAC;6BACD;yBACD;qBACD,GACD;aACD,YAED,MAAC,QAAQ,eACR,KAAC,KAAK,cACL,KAAC,WAAW,IACX,GAAG,EAAE,IAAI,CAAC,gBAAgB,EAC1B,KAAK,EAAC,MAAM,EACZ,QAAQ,QACR,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,EACpC,IAAI,EAAE,EAAE,IAAI,EAAE,iEAAiE,EAAE,GAChF,GACK,EACR,KAAC,aAAa,IACb,GAAG,EAAE,IAAI,CAAC,wBAAwB,EAClC,KAAK,EAAC,aAAa,EACnB,QAAQ,EAAE,KAAK,EACf,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,EACpC,IAAI,EAAE,EAAE,IAAI,EAAE,wEAAwE,EAAE,GACvF,IACQ,IACA,CACZ,CAAC;IACH,CAAC;CACD"}
@@ -0,0 +1,8 @@
1
+ import { CategoryScopeRow, SlotRow } from "namirasoft-field";
2
+ import { NSARouterMakerProps } from "../NSARouterMakerProps";
3
+ import { NSFFieldServersProps } from "./NSFEntities";
4
+ export interface NSFCategoryListPageProps extends NSARouterMakerProps, NSFFieldServersProps {
5
+ slot: SlotRow;
6
+ category_scope: CategoryScopeRow;
7
+ }
8
+ export declare function NSFCategoryListPage(props: NSFCategoryListPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { NSALayout } from "../layouts/NSALayout";
3
+ import { NSFEntities } from "./NSFEntities";
4
+ export function NSFCategoryListPage(props) {
5
+ return (_jsx(NSALayout, Object.assign({}, props, { action: {
6
+ description: "This section displays all categories you have created with their basic information."
7
+ }, pages: {
8
+ entity: NSFEntities.category(props, props.slot, props.category_scope),
9
+ list: {}
10
+ }, children: _jsx(_Fragment, {}) })));
11
+ }
12
+ //# sourceMappingURL=NSFCategoryListPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSFCategoryListPage.js","sourceRoot":"","sources":["../../src/pages/NSFCategoryListPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAwB,MAAM,eAAe,CAAC;AAQlE,MAAM,UAAU,mBAAmB,CAAC,KAA+B;IAElE,OAAO,CACN,KAAC,SAAS,oBACL,KAAK,IACT,MAAM,EAAE;YACP,WAAW,EAAE,qFAAqF;SAClG,EACD,KAAK,EAAE;YACN,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC;YACrE,IAAI,EAAE,EAAE;SACR,YAED,mBACG,IACQ,CACZ,CAAC;AACH,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { CategoryScopeRow, SlotRow } from "namirasoft-field";
2
+ import { NSARouterMakerProps } from "../NSARouterMakerProps";
3
+ import { NSFFieldServersProps } from "./NSFEntities";
4
+ export interface NSFCategoryViewPageProps extends NSARouterMakerProps, NSFFieldServersProps {
5
+ slot: SlotRow;
6
+ category_scope: CategoryScopeRow;
7
+ }
8
+ export declare function NSFCategoryViewPage(props: NSFCategoryViewPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { NSALayout } from "../layouts/NSALayout";
3
+ import { NSFEntities } from "./NSFEntities";
4
+ export function NSFCategoryViewPage(props) {
5
+ return (_jsx(NSALayout, Object.assign({}, props, { action: {
6
+ description: "This section displays detailed information about a selected category."
7
+ }, pages: {
8
+ entity: NSFEntities.category(props, props.slot, props.category_scope),
9
+ view: {}
10
+ }, children: _jsx(_Fragment, { children: " " }) })));
11
+ }
12
+ //# sourceMappingURL=NSFCategoryViewPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSFCategoryViewPage.js","sourceRoot":"","sources":["../../src/pages/NSFCategoryViewPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAwB,MAAM,eAAe,CAAC;AAQlE,MAAM,UAAU,mBAAmB,CAAC,KAA+B;IAElE,OAAO,CACN,KAAC,SAAS,oBACL,KAAK,IACT,MAAM,EAAE;YACP,WAAW,EAAE,uEAAuE;SACpF,EACD,KAAK,EAAE;YACN,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC;YACrE,IAAI,EAAE,EAAE;SACR,YAED,kCAAM,IACK,CACZ,CAAC;AACH,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { NamirasoftAPIProductServer } from "namirasoft-api-product";
2
+ import { CategoryInputRow, CategoryRow, CategoryScopeRow, NamirasoftFieldServer, SlotRow } from "namirasoft-field";
3
+ import { IEntityInfo } from "../IEntityInfo";
4
+ import { NSARouterMakerProps } from "../NSARouterMakerProps";
5
+ export interface NSFFieldServersProps {
6
+ servers: {
7
+ field: NamirasoftFieldServer;
8
+ product: NamirasoftAPIProductServer;
9
+ };
10
+ }
11
+ export declare class NSFEntities {
12
+ static category(props: NSARouterMakerProps & NSFFieldServersProps, slot: SlotRow, category_scope: CategoryScopeRow): IEntityInfo<CategoryRow, CategoryInputRow>;
13
+ }
@@ -0,0 +1,60 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { ProductUUID } from "namirasoft-api-product";
11
+ import { EnvService, FilterItem, FilterItemOperator, IStorageLocal } from "namirasoft-core";
12
+ import { NamirasoftFieldMetaDatabase, NamirasoftFieldServer } from "namirasoft-field";
13
+ import { NamirasoftMap } from "namirasoft-site-map";
14
+ import { BaseColumnFormatter, DateTimeFormatter, IDFormatter, StringFormatter, StringFormatterSizeType } from "namirasoft-site-react";
15
+ import { NSFRoutes } from "../NSFRoutes";
16
+ export class NSFEntities {
17
+ static category(props, slot, category_scope) {
18
+ let namirasoft = new NamirasoftMap(props.account.token_manager, console.error);
19
+ return {
20
+ product_id: ProductUUID.NAMIRASOFT_FIELD,
21
+ name: "category",
22
+ tables: [{ table: namirasoft.field.tables.category, required: true }],
23
+ client: {
24
+ getColumns() {
25
+ return [
26
+ BaseColumnFormatter.getColumn(namirasoft.field.tables.category.columns.id, new IDFormatter(namirasoft, null)),
27
+ BaseColumnFormatter.getColumn(namirasoft.field.tables.category.columns.user_id, new IDFormatter(namirasoft, new IStorageLocal())),
28
+ BaseColumnFormatter.getColumn(namirasoft.field.tables.category.columns.workspace_id, new IDFormatter(namirasoft, new IStorageLocal())),
29
+ BaseColumnFormatter.getColumn(namirasoft.field.tables.category.columns.category_scope_id, new IDFormatter(namirasoft, new IStorageLocal())),
30
+ BaseColumnFormatter.getColumn(namirasoft.field.tables.category.columns.name, new StringFormatter(StringFormatterSizeType.Sentence)),
31
+ BaseColumnFormatter.getColumn(namirasoft.field.tables.category.columns.description, new StringFormatter(StringFormatterSizeType.Description)),
32
+ BaseColumnFormatter.getColumn(namirasoft.field.tables.category.columns.created_at, new DateTimeFormatter()),
33
+ BaseColumnFormatter.getColumn(namirasoft.field.tables.category.columns.updated_at, new DateTimeFormatter()),
34
+ ];
35
+ },
36
+ getListURL: () => NSFRoutes.CategoryList(slot.id, slot.name),
37
+ getNewURL: () => NSFRoutes.CategoryNew(slot.id, slot.name),
38
+ getCopyURL: (id) => NSFRoutes.CategoryCopy(slot.id, slot.name, id),
39
+ getEditURL: (id) => NSFRoutes.CategoryEdit(slot.id, slot.name, id),
40
+ getViewURL: (id) => NSFRoutes.CategoryView(slot.id, slot.name, id),
41
+ },
42
+ server: {
43
+ value_list: props.servers.field.value.List,
44
+ get: props.servers.field.category.Get,
45
+ list: (filters, page, size, sorts, all_workspaces) => __awaiter(this, void 0, void 0, function* () {
46
+ let REACT_APP_BASE_URL_FIELD = new EnvService("REACT_APP_BASE_URL_FIELD", true).getString();
47
+ let field = new NamirasoftFieldServer(REACT_APP_BASE_URL_FIELD, props.account.token_manager, props.notifier.onError);
48
+ let meta = new NamirasoftFieldMetaDatabase(props.account.token_manager);
49
+ let filter_category_scope = new FilterItem(meta.tables.category, meta.tables.category.columns.category_scope_id, false, FilterItemOperator.all.equals, category_scope.id);
50
+ filters = [filter_category_scope, ...(filters !== null && filters !== void 0 ? filters : [])];
51
+ return yield field.category.List(filters, page, size, sorts, all_workspaces);
52
+ }),
53
+ create: props.servers.field.category.Create,
54
+ update: props.servers.field.category.Update,
55
+ delete: props.servers.field.category.Delete
56
+ }
57
+ };
58
+ }
59
+ }
60
+ //# sourceMappingURL=NSFEntities.js.map