namirasoft-account-react 1.5.13 → 1.5.14

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.
@@ -1,15 +1,15 @@
1
1
  import { EntityResolveResponseRow } from 'namirasoft-field';
2
2
  import { Component, ReactNode } from 'react';
3
3
  import { NSARouterMakerProps } from './NSARouterMakerProps';
4
- export interface NSARoutesProps extends NSARouterMakerProps {
4
+ export interface NSARouterProps extends NSARouterMakerProps {
5
5
  children: ReactNode;
6
6
  }
7
- interface NSARoutesState {
7
+ interface NSARouterState {
8
8
  rows: EntityResolveResponseRow | null;
9
9
  }
10
- export declare class NSARouter extends Component<NSARoutesProps, NSARoutesState> {
10
+ export declare class NSARouter extends Component<NSARouterProps, NSARouterState> {
11
11
  private cache_field;
12
- constructor(props: NSARoutesProps);
12
+ constructor(props: NSARouterProps);
13
13
  componentDidMount(): void;
14
14
  render(): import("react/jsx-runtime").JSX.Element;
15
15
  }
package/dist/NSARouter.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { EnvService } from 'namirasoft-core';
3
3
  import { NamirasoftFieldServer, SlotEntityType } from 'namirasoft-field';
4
- import { NSRoutes } from 'namirasoft-site-react';
5
4
  import { Component } from 'react';
6
- import { Route } from 'react-router-dom';
5
+ import { Route, Routes } from 'react-router-dom';
7
6
  import { FieldCacheService } from './FieldCacheService';
8
7
  import { NSFRoutes } from './NSFRoutes';
9
8
  import { NSFCategoryEditPage } from './pages/NSFCategoryEditPage';
@@ -30,7 +29,7 @@ export class NSARouter extends Component {
30
29
  let REACT_APP_BASE_URL_FIELD = new EnvService("REACT_APP_BASE_URL_FIELD", true).getString();
31
30
  let field = new NamirasoftFieldServer(REACT_APP_BASE_URL_FIELD, this.props.account.token_manager, this.props.notifier.onError);
32
31
  let servers = { field };
33
- return (_jsxs(NSRoutes, { children: [this.props.children, pairs.flatMap(({ slot, category_scope }) => [
32
+ return (_jsxs(Routes, { children: [this.props.children, pairs.flatMap(({ slot, category_scope }) => [
34
33
  _jsx(Route, { path: NSFRoutes.CategoryList(slot.id, slot.name), element: _jsx(NSFCategoryListPage, Object.assign({}, this.props, { servers: servers, slot: slot, category_scope: category_scope })) }, `${slot.id}-category-list`),
35
34
  _jsx(Route, { path: NSFRoutes.CategoryNew(slot.id, slot.name), element: _jsx(NSFCategoryEditPage, Object.assign({}, this.props, { servers: servers, isEdit: false, slot: slot, category_scope: category_scope })) }, `${slot.id}-category-new`),
36
35
  _jsx(Route, { path: NSFRoutes.CategoryCopy(slot.id, slot.name, ":id"), element: _jsx(NSFCategoryEditPage, Object.assign({}, this.props, { servers: servers, isEdit: false, slot: slot, category_scope: category_scope })) }, `${slot.id}-category-copy`),
@@ -1 +1 @@
1
- {"version":3,"file":"NSARouter.js","sourceRoot":"","sources":["../src/NSARouter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgB,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAA8C,qBAAqB,EAAE,cAAc,EAAW,MAAM,kBAAkB,CAAC;AAC9H,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAYlE,MAAM,OAAO,SAAU,SAAQ,SAAyC;IAIpE,YAAY,KAAqB;QAE7B,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,CAAC,WAAW,GAAG,i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,IAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,IAAI,IAAlN,GAAG,IAAI,CAAC,EAAE,gBAAgB,CAA4L;oBAClO,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,IAAI,CAAC,KAAK,IAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,IAAI,IAAjN,GAAG,IAAI,CAAC,EAAE,gBAAgB,CAA2L;oBACjO,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,IAAI,CAAC,KAAK,IAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,IAAI,IAAnM,GAAG,IAAI,CAAC,EAAE,gBAAgB,CAA6K;iBACtN,CAAC,IAED,CACZ,CAAC;IACN,CAAC;CACJ"}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.5.13",
11
+ "version": "1.5.14",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -40,7 +40,7 @@
40
40
  "namirasoft-schema": "^1.5.0",
41
41
  "namirasoft-secret": "^1.5.1",
42
42
  "namirasoft-site-map": "^1.5.0",
43
- "namirasoft-site-react": "^1.5.9",
43
+ "namirasoft-site-react": "^1.5.10",
44
44
  "namirasoft-workspace": "^1.5.0",
45
45
  "os-browserify": "^0.3.0",
46
46
  "path-browserify": "^1.0.1",
package/src/NSARouter.tsx CHANGED
@@ -1,69 +1,68 @@
1
- import { CacheService, EnvService } from 'namirasoft-core';
2
- import { CategoryScopeRow, EntityResolveResponseRow, NamirasoftFieldServer, SlotEntityType, SlotRow } from 'namirasoft-field';
3
- import { NSRoutes } from 'namirasoft-site-react';
4
- import { Component, ReactNode } from 'react';
5
- import { Route } from 'react-router-dom';
6
- import { FieldCacheService } from './FieldCacheService';
7
- import { NSARouterMakerProps } from './NSARouterMakerProps';
8
- import { NSFRoutes } from './NSFRoutes';
9
- import { NSFCategoryEditPage } from './pages/NSFCategoryEditPage';
10
- import { NSFCategoryListPage } from './pages/NSFCategoryListPage';
11
- import { NSFCategoryViewPage } from './pages/NSFCategoryViewPage';
12
-
13
- export interface NSARoutesProps extends NSARouterMakerProps
14
- {
15
- children: ReactNode;
16
- }
17
-
18
- interface NSARoutesState
19
- {
20
- rows: EntityResolveResponseRow | null;
21
- }
22
-
23
- export class NSARouter extends Component<NSARoutesProps, NSARoutesState>
24
- {
25
- private cache_field: CacheService<EntityResolveResponseRow>;
26
-
27
- constructor(props: NSARoutesProps)
28
- {
29
- super(props);
30
-
31
- this.cache_field = FieldCacheService.get(this.props.account.token_manager, this.props.product_id, this.props.notifier.onError);
32
-
33
- this.state = {
34
- rows: null,
35
- };
36
- }
37
- override componentDidMount(): void
38
- {
39
- this.cache_field.get().then(rows =>
40
- {
41
- this.setState(prev => ({ ...prev, rows }));
42
- });
43
- }
44
- override render()
45
- {
46
- const { rows } = this.state;
47
- const scope_slots = rows?.slots.filter(s => s.entity_type === SlotEntityType.CategoryScope) ?? [];
48
- let pairs = scope_slots.map(slot => ({ slot, category_scope: rows?.category_scopes.find(c => c.id === slot.entity_id) })).filter(i => i.category_scope) as { slot: SlotRow, category_scope: CategoryScopeRow }[];
49
-
50
- let REACT_APP_BASE_URL_FIELD = new EnvService("REACT_APP_BASE_URL_FIELD", true).getString();
51
- let field = new NamirasoftFieldServer(REACT_APP_BASE_URL_FIELD, this.props.account.token_manager, this.props.notifier.onError);
52
- let servers = { field };
53
-
54
- return (
55
- <NSRoutes>
56
- {this.props.children}
57
- {
58
- pairs.flatMap(({ slot, category_scope }) => [
59
- <Route key={`${slot.id}-category-list`} path={NSFRoutes.CategoryList(slot.id, slot.name)} element={<NSFCategoryListPage {...this.props} servers={servers} slot={slot} category_scope={category_scope} />} />,
60
- <Route key={`${slot.id}-category-new`} path={NSFRoutes.CategoryNew(slot.id, slot.name)} element={<NSFCategoryEditPage {...this.props} servers={servers} isEdit={false} slot={slot} category_scope={category_scope} />} />,
61
- <Route key={`${slot.id}-category-copy`} path={NSFRoutes.CategoryCopy(slot.id, slot.name, ":id")} element={<NSFCategoryEditPage {...this.props} servers={servers} isEdit={false} slot={slot} category_scope={category_scope} />} />,
62
- <Route key={`${slot.id}-category-edit`} path={NSFRoutes.CategoryEdit(slot.id, slot.name, ":id")} element={<NSFCategoryEditPage {...this.props} servers={servers} isEdit={true} slot={slot} category_scope={category_scope} />} />,
63
- <Route key={`${slot.id}-category-view`} path={NSFRoutes.CategoryView(slot.id, slot.name, ":id")} element={<NSFCategoryViewPage {...this.props} servers={servers} slot={slot} category_scope={category_scope} />} />,
64
- ])
65
- }
66
- </NSRoutes>
67
- );
68
- }
1
+ import { CacheService, EnvService } from 'namirasoft-core';
2
+ import { CategoryScopeRow, EntityResolveResponseRow, NamirasoftFieldServer, SlotEntityType, SlotRow } from 'namirasoft-field';
3
+ import { Component, ReactNode } from 'react';
4
+ import { Route, Routes } from 'react-router-dom';
5
+ import { FieldCacheService } from './FieldCacheService';
6
+ import { NSARouterMakerProps } from './NSARouterMakerProps';
7
+ import { NSFRoutes } from './NSFRoutes';
8
+ import { NSFCategoryEditPage } from './pages/NSFCategoryEditPage';
9
+ import { NSFCategoryListPage } from './pages/NSFCategoryListPage';
10
+ import { NSFCategoryViewPage } from './pages/NSFCategoryViewPage';
11
+
12
+ export interface NSARouterProps extends NSARouterMakerProps
13
+ {
14
+ children: ReactNode;
15
+ }
16
+
17
+ interface NSARouterState
18
+ {
19
+ rows: EntityResolveResponseRow | null;
20
+ }
21
+
22
+ export class NSARouter extends Component<NSARouterProps, NSARouterState>
23
+ {
24
+ private cache_field: CacheService<EntityResolveResponseRow>;
25
+
26
+ constructor(props: NSARouterProps)
27
+ {
28
+ super(props);
29
+
30
+ this.cache_field = FieldCacheService.get(this.props.account.token_manager, this.props.product_id, this.props.notifier.onError);
31
+
32
+ this.state = {
33
+ rows: null,
34
+ };
35
+ }
36
+ override componentDidMount(): void
37
+ {
38
+ this.cache_field.get().then(rows =>
39
+ {
40
+ this.setState(prev => ({ ...prev, rows }));
41
+ });
42
+ }
43
+ override render()
44
+ {
45
+ const { rows } = this.state;
46
+ const scope_slots = rows?.slots.filter(s => s.entity_type === SlotEntityType.CategoryScope) ?? [];
47
+ let pairs = scope_slots.map(slot => ({ slot, category_scope: rows?.category_scopes.find(c => c.id === slot.entity_id) })).filter(i => i.category_scope) as { slot: SlotRow, category_scope: CategoryScopeRow }[];
48
+
49
+ let REACT_APP_BASE_URL_FIELD = new EnvService("REACT_APP_BASE_URL_FIELD", true).getString();
50
+ let field = new NamirasoftFieldServer(REACT_APP_BASE_URL_FIELD, this.props.account.token_manager, this.props.notifier.onError);
51
+ let servers = { field };
52
+
53
+ return (
54
+ <Routes>
55
+ {this.props.children}
56
+ {
57
+ pairs.flatMap(({ slot, category_scope }) => [
58
+ <Route key={`${slot.id}-category-list`} path={NSFRoutes.CategoryList(slot.id, slot.name)} element={<NSFCategoryListPage {...this.props} servers={servers} slot={slot} category_scope={category_scope} />} />,
59
+ <Route key={`${slot.id}-category-new`} path={NSFRoutes.CategoryNew(slot.id, slot.name)} element={<NSFCategoryEditPage {...this.props} servers={servers} isEdit={false} slot={slot} category_scope={category_scope} />} />,
60
+ <Route key={`${slot.id}-category-copy`} path={NSFRoutes.CategoryCopy(slot.id, slot.name, ":id")} element={<NSFCategoryEditPage {...this.props} servers={servers} isEdit={false} slot={slot} category_scope={category_scope} />} />,
61
+ <Route key={`${slot.id}-category-edit`} path={NSFRoutes.CategoryEdit(slot.id, slot.name, ":id")} element={<NSFCategoryEditPage {...this.props} servers={servers} isEdit={true} slot={slot} category_scope={category_scope} />} />,
62
+ <Route key={`${slot.id}-category-view`} path={NSFRoutes.CategoryView(slot.id, slot.name, ":id")} element={<NSFCategoryViewPage {...this.props} servers={servers} slot={slot} category_scope={category_scope} />} />,
63
+ ])
64
+ }
65
+ </Routes>
66
+ );
67
+ }
69
68
  }
package/dist/App.css DELETED
@@ -1,32 +0,0 @@
1
- @font-face {
2
- font-family: inter;
3
- src: url("../src/assets/fonts/Inter-Regular.ttf");
4
- }
5
-
6
- body {
7
- margin: 0;
8
- font-family: inter;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- }
12
-
13
-
14
- .btn-close {
15
- background: url(https://static.namirasoft.com/image/concept/close/blue.svg) center/1em auto no-repeat !important;
16
- opacity: 1 !important;
17
- }
18
-
19
- .nsa_font_16_bold {
20
- font-size: 16px;
21
- font-weight: 600;
22
- }
23
-
24
- .nsa_font_13_normal {
25
- font-size: 13px;
26
- font-weight: 300;
27
- }
28
-
29
- .nsa_font_12_normal {
30
- font-size: 12px;
31
- font-weight: 300;
32
- }
@@ -1,16 +0,0 @@
1
- import { EntityResolveResponseRow } from 'namirasoft-field';
2
- import { Component, ReactNode } from 'react';
3
- import { NSARouterMakerProps } from '../NSARouterMakerProps';
4
- export interface NSARoutesProps extends NSARouterMakerProps {
5
- children: ReactNode;
6
- }
7
- interface NSARoutesState {
8
- rows: EntityResolveResponseRow | null;
9
- }
10
- export declare class NSARouter extends Component<NSARoutesProps, NSARoutesState> {
11
- private cache_field;
12
- constructor(props: NSARoutesProps);
13
- componentDidMount(): void;
14
- render(): import("react/jsx-runtime").JSX.Element;
15
- }
16
- export {};
@@ -1,38 +0,0 @@
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 { FieldCacheService } from '../FieldCacheService';
7
- import { NSFRoutes } from '../NSFRoutes';
8
- import { NSFCategoryEditPage } from '../pages/NSFCategoryEditPage';
9
- import { NSFCategoryListPage } from '../pages/NSFCategoryListPage';
10
- import { NSFCategoryViewPage } from '../pages/NSFCategoryViewPage';
11
- export class NSARouter extends Component {
12
- constructor(props) {
13
- super(props);
14
- this.cache_field = FieldCacheService.get(this.props.account.token_manager, this.props.product_id, this.props.notifier.onError);
15
- this.state = {
16
- rows: null,
17
- };
18
- }
19
- componentDidMount() {
20
- this.cache_field.get().then(rows => {
21
- this.setState(prev => (Object.assign(Object.assign({}, prev), { rows })));
22
- });
23
- }
24
- render() {
25
- var _a;
26
- const { rows } = this.state;
27
- 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 : [];
28
- 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);
29
- return (_jsxs(NSRoutes, { children: [this.props.children, pairs.flatMap(({ slot, category_scope }) => [
30
- _jsx(Route, { path: NSFRoutes.CategoryList(slot.id, slot.name), element: _jsx(NSFCategoryListPage, Object.assign({}, this.props, { slot: slot, category_scope: category_scope })) }, `${slot.id}-category-list`),
31
- _jsx(Route, { path: NSFRoutes.CategoryNew(slot.id, slot.name), element: _jsx(NSFCategoryEditPage, Object.assign({}, this.props, { isEdit: false, slot: slot, category_scope: category_scope })) }, `${slot.id}-category-new`),
32
- _jsx(Route, { path: NSFRoutes.CategoryCopy(slot.id, slot.name, ":id"), element: _jsx(NSFCategoryEditPage, Object.assign({}, this.props, { isEdit: false, slot: slot, category_scope: category_scope })) }, `${slot.id}-category-copy`),
33
- _jsx(Route, { path: NSFRoutes.CategoryEdit(slot.id, slot.name, ":id"), element: _jsx(NSFCategoryEditPage, Object.assign({}, this.props, { isEdit: true, slot: slot, category_scope: category_scope })) }, `${slot.id}-category-edit`),
34
- _jsx(Route, { path: NSFRoutes.CategoryView(slot.id, slot.name, ":id"), element: _jsx(NSFCategoryViewPage, Object.assign({}, this.props, { slot: slot, category_scope: category_scope })) }, `${slot.id}-category-view`),
35
- ])] }));
36
- }
37
- }
38
- //# sourceMappingURL=NSARouter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NSARouter.js","sourceRoot":"","sources":["../../src/layouts/NSARouter.tsx"],"names":[],"mappings":";AACA,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;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAYnE,MAAM,OAAO,SAAU,SAAQ,SAAyC;IAIpE,YAAY,KAAqB;QAE7B,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,CAAC,WAAW,GAAG,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE/H,IAAI,CAAC,KAAK,GAAG;YACT,IAAI,EAAE,IAAI;SACb,CAAC;IACN,CAAC;IACQ,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,CAAC;CACJ"}
@@ -1,8 +0,0 @@
1
- import { FilterLinkFullRow } from 'namirasoft-api-link';
2
- import { EntityResolveResponseRow } from 'namirasoft-field';
3
- export declare class NSARouter_Field {
4
- static postprocess(filters: FilterLinkFullRow[], rows: EntityResolveResponseRow | null): FilterLinkFullRow[];
5
- private static findEntityRow;
6
- private static make;
7
- private static walk;
8
- }
@@ -1,92 +0,0 @@
1
- import { NamingConvention } from 'namirasoft-core';
2
- import { SlotEntityType } from 'namirasoft-field';
3
- import { NSFRoutes } from '../NSFRoutes';
4
- export class NSARouter_Field {
5
- static postprocess(filters, rows) {
6
- var _a, _b, _c, _d, _e;
7
- if (!rows || rows.slots.length === 0)
8
- return filters;
9
- const result = [...filters];
10
- const id_counter = { value: -1000000 };
11
- const matched = new Set();
12
- NSARouter_Field.walk(filters, null, rows, result, id_counter, matched);
13
- const fallback_filter_id = (_b = (_a = filters[0]) === null || _a === void 0 ? void 0 : _a.filter_id) !== null && _b !== void 0 ? _b : 0;
14
- const fallback_filter_ref = (_d = (_c = filters[0]) === null || _c === void 0 ? void 0 : _c.filter) !== null && _d !== void 0 ? _d : null;
15
- for (const slot of rows.slots) {
16
- if (matched.has(slot.id))
17
- continue;
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 : "", "");
19
- result.push(parent);
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)));
22
- }
23
- return result;
24
- }
25
- static findEntityRow(filter_name, rows) {
26
- var _a;
27
- const n = NamingConvention.auto.convert((filter_name !== null && filter_name !== void 0 ? filter_name : "").trim(), NamingConvention.lower_case);
28
- if (n.length === 0)
29
- return null;
30
- for (const slot of rows.slots) {
31
- if (slot.entity_type != SlotEntityType.CategoryScope)
32
- continue;
33
- if (NamingConvention.auto.convert(((_a = slot.entity) !== null && _a !== void 0 ? _a : "").trim(), NamingConvention.lower_case) === n)
34
- return slot;
35
- }
36
- return null;
37
- }
38
- static make(id_counter, parent_id, filter_id, filter_ref, label, description, url) {
39
- const now = new Date();
40
- const id = id_counter.value--;
41
- return {
42
- id,
43
- parent_id,
44
- filter_id,
45
- link_id: null,
46
- name: label,
47
- logo: "https://static.namirasoft.com/image/namirasoft/field/logo/base.png",
48
- order: 0,
49
- created_at: now,
50
- updated_at: now,
51
- filter: filter_ref,
52
- link: {
53
- id: 0,
54
- category_id: 0,
55
- domain_id: 0,
56
- name: label,
57
- url: url,
58
- logo: "https://static.namirasoft.com/image/namirasoft/field/logo/base.png",
59
- public: true,
60
- private: true,
61
- importance: 0,
62
- description,
63
- created_at: now,
64
- updated_at: now,
65
- category: null,
66
- domain: null,
67
- }
68
- };
69
- }
70
- static walk(filters, parent_id, rows, result, id_counter, matched) {
71
- var _a, _b, _c, _d, _e;
72
- const children = filters.filter(f => f.parent_id === parent_id);
73
- for (const filter of children) {
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 : "";
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)));
87
- }
88
- NSARouter_Field.walk(filters, filter.id, rows, result, id_counter, matched);
89
- }
90
- }
91
- }
92
- //# sourceMappingURL=NSARouter_Field.js.map
@@ -1 +0,0 @@
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,MAAA,MAAA,OAAO,CAAC,CAAC,CAAC,0CAAE,SAAS,mCAAI,CAAC,CAAC;QACtD,MAAM,mBAAmB,GAAG,MAAA,MAAA,OAAO,CAAC,CAAC,CAAC,0CAAE,MAAM,mCAAI,IAAI,CAAC;QACvD,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,EAC7B,CAAC;YACG,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBACpB,SAAS;YAEb,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC,UAAU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AY,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"}
package/src/App.css DELETED
@@ -1,32 +0,0 @@
1
- @font-face {
2
- font-family: inter;
3
- src: url("../src/assets/fonts/Inter-Regular.ttf");
4
- }
5
-
6
- body {
7
- margin: 0;
8
- font-family: inter;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- }
12
-
13
-
14
- .btn-close {
15
- background: url(https://static.namirasoft.com/image/concept/close/blue.svg) center/1em auto no-repeat !important;
16
- opacity: 1 !important;
17
- }
18
-
19
- .nsa_font_16_bold {
20
- font-size: 16px;
21
- font-weight: 600;
22
- }
23
-
24
- .nsa_font_13_normal {
25
- font-size: 13px;
26
- font-weight: 300;
27
- }
28
-
29
- .nsa_font_12_normal {
30
- font-size: 12px;
31
- font-weight: 300;
32
- }