namirasoft-account-react 1.5.13 → 1.5.15
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/App.d.ts +2 -2
- package/dist/FieldCacheService.d.ts +14 -1
- package/dist/FieldCacheService.js +28 -2
- package/dist/FieldCacheService.js.map +1 -1
- package/dist/NSARouterMaker.d.ts +7 -12
- package/dist/NSARouterMaker.js +29 -35
- package/dist/NSARouterMaker.js.map +1 -1
- package/dist/NSARouterMakerProps.d.ts +17 -23
- package/dist/NSARouterMakerResult.d.ts +26 -0
- package/dist/NSARouterMakerResult.js +2 -0
- package/dist/NSARouterMakerResult.js.map +1 -0
- package/dist/NSFRouterMaker.d.ts +10 -0
- package/dist/NSFRouterMaker.js +27 -0
- package/dist/NSFRouterMaker.js.map +1 -0
- package/dist/Router.d.ts +1 -1
- package/dist/Router.js +5 -11
- package/dist/Router.js.map +1 -1
- package/dist/components/NSAAccessListDialog.d.ts +2 -2
- package/dist/components/NSABoxSecret.d.ts +2 -2
- package/dist/components/NSAMasterMenu.d.ts +2 -2
- package/dist/components/NSAMasterMenuItem.d.ts +2 -2
- package/dist/components/NSAMessageListDialog.d.ts +4 -4
- package/dist/components/NSAMessageListDialog.js +2 -2
- package/dist/components/NSAMessageListDialog.js.map +1 -1
- package/dist/components/NSAProductListDialog.d.ts +2 -2
- package/dist/components/NSATable.d.ts +0 -3
- package/dist/components/NSATable.js +3 -34
- package/dist/components/NSATable.js.map +1 -1
- package/dist/components/NSAUserDialog.d.ts +2 -2
- package/dist/components/NSAWorkspaceListDialog.d.ts +2 -2
- package/dist/components/NSFBoxCategoryScope.d.ts +2 -2
- package/dist/components/NSFBoxSlot.d.ts +2 -2
- package/dist/layouts/Actions.d.ts +6 -6
- package/dist/layouts/Actions.js.map +1 -1
- package/dist/layouts/NSALayout.d.ts +2 -7
- package/dist/layouts/NSALayout.js +88 -86
- package/dist/layouts/NSALayout.js.map +1 -1
- package/dist/layouts/NSASectionEdit.d.ts +3 -4
- package/dist/layouts/NSASectionEdit.js.map +1 -1
- package/dist/layouts/NSASectionEditTabPage.d.ts +2 -3
- package/dist/layouts/NSASectionEditTabPage.js +1 -1
- package/dist/layouts/NSASectionEditTabPage.js.map +1 -1
- package/dist/layouts/NSASectionList.d.ts +2 -3
- package/dist/layouts/NSASectionList.js.map +1 -1
- package/dist/layouts/NSASectionView.d.ts +2 -3
- package/dist/layouts/NSASectionView.js.map +1 -1
- package/dist/layouts/NSASectionViewTabMore.d.ts +2 -2
- package/dist/layouts/NSASectionViewTabMore.js +3 -2
- package/dist/layouts/NSASectionViewTabMore.js.map +1 -1
- package/dist/layouts/NSASectionViewTabPage.d.ts +2 -3
- package/dist/layouts/NSASectionViewTabPage.js +1 -1
- package/dist/layouts/NSASectionViewTabPage.js.map +1 -1
- package/dist/main.d.ts +2 -4
- package/dist/main.js +2 -4
- package/dist/main.js.map +1 -1
- package/dist/pages/NSAConsentPage.d.ts +2 -2
- package/dist/pages/NSAEmailVerificationPage.d.ts +2 -2
- package/dist/pages/NSAHomePage.d.ts +3 -3
- package/dist/pages/NSAHomePage.js +5 -5
- package/dist/pages/NSAHomePage.js.map +1 -1
- package/dist/pages/NSAPhoneVerificationPage.d.ts +2 -2
- package/dist/pages/NSAPhoneVerificationPage.js +1 -1
- package/dist/pages/NSAPhoneVerificationPage.js.map +1 -1
- package/dist/pages/NSAVerificationPage.d.ts +3 -3
- package/dist/pages/NSAVerificationPage.js +2 -3
- package/dist/pages/NSAVerificationPage.js.map +1 -1
- package/dist/pages/NSFCategoryEditPage.d.ts +2 -2
- package/dist/pages/NSFCategoryListPage.d.ts +2 -2
- package/dist/pages/NSFCategoryViewPage.d.ts +2 -2
- package/dist/pages/NSFEntities.d.ts +2 -2
- package/dist/pages/NSFEntities.js.map +1 -1
- package/dist/pages/PaymentRequired.d.ts +2 -2
- package/dist/pages/PaymentRequired.js.map +1 -1
- package/package.json +2 -2
- package/src/App.tsx +2 -2
- package/src/FieldCacheService.tsx +85 -0
- package/src/NSARouterMaker.tsx +38 -45
- package/src/NSARouterMakerProps.ts +19 -21
- package/src/NSARouterMakerResult.ts +25 -0
- package/src/NSFRouterMaker.tsx +37 -0
- package/src/Router.tsx +15 -12
- package/src/components/NSAAccessListDialog.tsx +2 -2
- package/src/components/NSABoxSecret.tsx +2 -2
- package/src/components/NSAMasterMenu.tsx +6 -6
- package/src/components/NSAMasterMenuItem.tsx +2 -2
- package/src/components/NSAMessageListDialog.tsx +4 -4
- package/src/components/NSAProductListDialog.tsx +2 -2
- package/src/components/NSATable.tsx +3 -54
- package/src/components/NSAUserDialog.tsx +2 -2
- package/src/components/NSAWorkspaceListDialog.tsx +2 -2
- package/src/components/NSFBoxCategoryScope.tsx +2 -2
- package/src/components/NSFBoxSlot.tsx +2 -2
- package/src/layouts/Actions.ts +6 -6
- package/src/layouts/NSALayout.tsx +159 -161
- package/src/layouts/NSASectionEdit.tsx +3 -4
- package/src/layouts/NSASectionEditTabPage.tsx +3 -4
- package/src/layouts/NSASectionList.tsx +2 -3
- package/src/layouts/NSASectionView.tsx +2 -3
- package/src/layouts/NSASectionViewTabMore.tsx +8 -7
- package/src/layouts/NSASectionViewTabPage.tsx +3 -4
- package/src/main.ts +2 -4
- package/src/pages/NSAConsentPage.tsx +2 -2
- package/src/pages/NSAEmailVerificationPage.tsx +2 -2
- package/src/pages/NSAHomePage.tsx +23 -22
- package/src/pages/NSAPhoneVerificationPage.tsx +3 -3
- package/src/pages/NSAVerificationPage.tsx +4 -5
- package/src/pages/NSFCategoryEditPage.tsx +2 -2
- package/src/pages/NSFCategoryListPage.tsx +2 -2
- package/src/pages/NSFCategoryViewPage.tsx +2 -2
- package/src/pages/NSFEntities.ts +2 -2
- package/src/pages/PaymentRequired.tsx +5 -5
- package/dist/App.css +0 -32
- package/dist/NSARouter.d.ts +0 -16
- package/dist/NSARouter.js +0 -42
- package/dist/NSARouter.js.map +0 -1
- package/dist/NSARouterMakerConfig.d.ts +0 -14
- package/dist/NSARouterMakerConfig.js +0 -2
- package/dist/NSARouterMakerConfig.js.map +0 -1
- package/dist/components/NSAReorderDialog.d.ts +0 -30
- package/dist/components/NSAReorderDialog.js +0 -69
- package/dist/components/NSAReorderDialog.js.map +0 -1
- package/dist/components/NSAReorderDialog.module.css +0 -50
- package/dist/components/NSASortDialog.d.ts +0 -21
- package/dist/components/NSASortDialog.js +0 -61
- package/dist/components/NSASortDialog.js.map +0 -1
- package/dist/layouts/NSARouter.d.ts +0 -16
- package/dist/layouts/NSARouter.js +0 -38
- package/dist/layouts/NSARouter.js.map +0 -1
- package/dist/layouts/NSARouter_Field.d.ts +0 -8
- package/dist/layouts/NSARouter_Field.js +0 -92
- package/dist/layouts/NSARouter_Field.js.map +0 -1
- package/src/App.css +0 -32
- package/src/FieldCacheService.ts +0 -37
- package/src/NSARouter.tsx +0 -69
- package/src/NSARouterMakerConfig.ts +0 -16
- package/src/components/NSAReorderDialog.module.css +0 -50
- package/src/components/NSAReorderDialog.tsx +0 -150
- package/src/components/NSASortDialog.tsx +0 -118
package/src/Router.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NSARouterMaker } from './NSARouterMaker';
|
|
2
|
-
import {
|
|
2
|
+
import { NSARouterMakerResult } from './NSARouterMakerResult';
|
|
3
3
|
import { Routes, Route, useNavigate } from 'react-router-dom';
|
|
4
4
|
import { NSNotFoundPage } from 'namirasoft-site-react';
|
|
5
5
|
import { App } from './App';
|
|
@@ -13,8 +13,12 @@ export default function Router()
|
|
|
13
13
|
|
|
14
14
|
let navigate = useNavigate();
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
return <NSARouterMaker
|
|
17
|
+
product_id={ProductUUID.NAMIRASOFT_INFRA}
|
|
18
|
+
notifier_storage={new IStorageSession()}
|
|
19
|
+
page_force_update={() => { setState(state + Math.random()); }}
|
|
20
|
+
navigate={navigate}
|
|
21
|
+
renderOnLogin={(props: NSARouterMakerResult) =>
|
|
18
22
|
{
|
|
19
23
|
return (
|
|
20
24
|
<Routes>
|
|
@@ -22,25 +26,24 @@ export default function Router()
|
|
|
22
26
|
<Route path="*" element={<App {...props}></App>} />
|
|
23
27
|
</Routes>
|
|
24
28
|
);
|
|
25
|
-
}
|
|
26
|
-
|
|
29
|
+
}}
|
|
30
|
+
renderOnLogout={(_: NSARouterMakerResult, __: boolean) =>
|
|
27
31
|
{
|
|
28
32
|
return (
|
|
29
33
|
<Routes>
|
|
30
34
|
<Route path="*" element={<NSNotFoundPage></NSNotFoundPage>} />
|
|
31
35
|
</Routes>
|
|
32
36
|
);
|
|
33
|
-
}
|
|
34
|
-
|
|
37
|
+
}}
|
|
38
|
+
getNSALayout={(_, children) =>
|
|
35
39
|
{
|
|
36
40
|
return children;
|
|
37
|
-
}
|
|
38
|
-
requirement
|
|
41
|
+
}}
|
|
42
|
+
requirement={{
|
|
39
43
|
verification: {
|
|
40
44
|
email: true,
|
|
41
45
|
phone: true
|
|
42
46
|
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return maker.onRender();
|
|
47
|
+
}}
|
|
48
|
+
/>;
|
|
46
49
|
}
|
|
@@ -2,10 +2,10 @@ import { NamirasoftAccessServer, PermissionRow } from 'namirasoft-access';
|
|
|
2
2
|
import { EnvService } from 'namirasoft-core';
|
|
3
3
|
import { NSCopy, NSDialog, NSDialogProps, NSLine, NSLoading, NSSpace, NSSpaceSizeType } from 'namirasoft-site-react';
|
|
4
4
|
import React, { Component, createRef } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { NSARouterMakerResult } from '../NSARouterMakerResult';
|
|
6
6
|
import Styles from './NSAAccessListDialog.module.css';
|
|
7
7
|
|
|
8
|
-
export interface NSAAccessListDialogProps extends
|
|
8
|
+
export interface NSAAccessListDialogProps extends NSARouterMakerResult, NSDialogProps
|
|
9
9
|
{
|
|
10
10
|
onClose: () => void;
|
|
11
11
|
}
|
|
@@ -2,10 +2,10 @@ import { BaseUUID, EnvService } from "namirasoft-core";
|
|
|
2
2
|
import { NamirasoftSecretMetaDatabase, NamirasoftSecretServer } from "namirasoft-secret";
|
|
3
3
|
import { IBaseComponentProps, INSBox, INSBoxBaseLayoutProps, IValidationProps, IValidationStringProps, NSBoxBoolean, NSBoxSensitive, NSBoxString, NSColumn, safeMenuMenuItem } from "namirasoft-site-react";
|
|
4
4
|
import React, { createRef, HTMLInputAutoCompleteAttribute } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { NSARouterMakerResult } from "../NSARouterMakerResult";
|
|
6
6
|
import Styles from "./NSABoxSecret.module.css";
|
|
7
7
|
|
|
8
|
-
export interface NSABoxSecretProps extends IBaseComponentProps, IValidationProps, IValidationStringProps,
|
|
8
|
+
export interface NSABoxSecretProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, NSARouterMakerResult, INSBoxBaseLayoutProps<NSABoxSecret | NSBoxString, string>
|
|
9
9
|
{
|
|
10
10
|
input?: IBaseComponentProps;
|
|
11
11
|
auto_complete?: HTMLInputAutoCompleteAttribute | undefined;
|
|
@@ -4,11 +4,11 @@ import { SetTimeouService } from "namirasoft-core";
|
|
|
4
4
|
import { NSBoxSearch, NSLoading } from "namirasoft-site-react";
|
|
5
5
|
import { Component, createRef } from "react";
|
|
6
6
|
import { NSACacheService } from "../NSACacheService";
|
|
7
|
-
import {
|
|
7
|
+
import { NSARouterMakerResult } from "../NSARouterMakerResult";
|
|
8
8
|
import Styles from "./NSAMasterMenu.module.css";
|
|
9
9
|
import NSAMasterMenuItem from "./NSAMasterMenuItem";
|
|
10
10
|
|
|
11
|
-
export interface NSAMasterMenuProps extends
|
|
11
|
+
export interface NSAMasterMenuProps extends NSARouterMakerResult
|
|
12
12
|
{
|
|
13
13
|
open: boolean;
|
|
14
14
|
setOpen: (open: boolean) => void;
|
|
@@ -26,21 +26,21 @@ export interface NSAMasterMenuState
|
|
|
26
26
|
class NSAMasterMenu extends Component<NSAMasterMenuProps, NSAMasterMenuState>
|
|
27
27
|
{
|
|
28
28
|
private TimeoutSearch: SetTimeouService;
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
private MasterMenuAsideEl_Ref = createRef<HTMLElement>();
|
|
31
31
|
private MasterMenuEl_Ref = createRef<HTMLDivElement>();
|
|
32
32
|
|
|
33
33
|
constructor(props: NSAMasterMenuProps)
|
|
34
34
|
{
|
|
35
35
|
super(props);
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
this.TimeoutSearch = new SetTimeouService();
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
this.state = {
|
|
40
40
|
loading: true,
|
|
41
41
|
show_footer: false,
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
|
|
44
44
|
this.load = this.load.bind(this);
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -2,11 +2,11 @@ import { FilterLinkFullRow } from "namirasoft-api-link";
|
|
|
2
2
|
import { ProductFullRow } from 'namirasoft-api-product';
|
|
3
3
|
import { NSLoading } from 'namirasoft-site-react';
|
|
4
4
|
import { useEffect, useMemo, useState } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { NSARouterMakerResult } from '../NSARouterMakerResult';
|
|
6
6
|
import Styles from "./NSAMasterMenu.module.css";
|
|
7
7
|
import { SearchOperation } from "namirasoft-core";
|
|
8
8
|
|
|
9
|
-
export interface NSAMasterMenuItemProps extends
|
|
9
|
+
export interface NSAMasterMenuItemProps extends NSARouterMakerResult
|
|
10
10
|
{
|
|
11
11
|
product: ProductFullRow;
|
|
12
12
|
fls: FilterLinkFullRow[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
1
|
import { EnvService, FilterItem, FilterItemOperator, SortItem } from 'namirasoft-core';
|
|
2
|
+
import { MessageRow, NamirasoftMessageMetaDatabase, NamirasoftMessageServer } from 'namirasoft-message';
|
|
3
3
|
import { IBaseComponentProps, LinkOperation, NSButtonBlue, NSDialog, NSDialogProps, NSLoading, NSNoData, StringFormatter } from "namirasoft-site-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Component } from 'react';
|
|
5
|
+
import { NSARouterMakerResult } from '../NSARouterMakerResult';
|
|
6
6
|
import Styles from './NSAMessageListDialog.module.css';
|
|
7
7
|
|
|
8
|
-
export interface NSAMessageListDialogProps extends
|
|
8
|
+
export interface NSAMessageListDialogProps extends NSARouterMakerResult, NSDialogProps, IBaseComponentProps
|
|
9
9
|
{
|
|
10
10
|
onClose: () => void;
|
|
11
11
|
onSeenAll: () => void;
|
|
@@ -3,10 +3,10 @@ import { CacheService, SearchOperation } from 'namirasoft-core';
|
|
|
3
3
|
import { NSBoxSearch, NSDialog, NSDialogProps, NSLoading } from 'namirasoft-site-react';
|
|
4
4
|
import { Component } from 'react';
|
|
5
5
|
import { NSACacheService } from '../NSACacheService';
|
|
6
|
-
import {
|
|
6
|
+
import { NSARouterMakerResult } from '../NSARouterMakerResult';
|
|
7
7
|
import Styles from './NSAProductListDialog.module.css';
|
|
8
8
|
|
|
9
|
-
export interface NSAProductListDialogProps extends
|
|
9
|
+
export interface NSAProductListDialogProps extends NSARouterMakerResult, NSDialogProps { }
|
|
10
10
|
|
|
11
11
|
interface NSAProductListState
|
|
12
12
|
{
|
|
@@ -5,8 +5,6 @@ import { IBaseComponentProps, NSButtonProps, NSFilterBox, NSFilterBoxItems, NSFi
|
|
|
5
5
|
import { Component, ReactNode, createRef } from "react";
|
|
6
6
|
import { IEntityInfo } from "../IEntityInfo";
|
|
7
7
|
import { NSACacheService } from "../NSACacheService";
|
|
8
|
-
import { NSAReorderDialog } from "./NSAReorderDialog";
|
|
9
|
-
import { NSASortDialog } from "./NSASortDialog";
|
|
10
8
|
import { NSAQuickFilterBar } from "./quickfilter/NSAQuickFilterBar";
|
|
11
9
|
import { NSAQuickFilterDialog, QuickFilterConfig } from "./quickfilter/NSAQuickFilterDialog";
|
|
12
10
|
|
|
@@ -43,11 +41,8 @@ export interface NSATableProps<RowType extends { id: string }, RowTypeInput = Ro
|
|
|
43
41
|
interface NSATableState<RowType>
|
|
44
42
|
{
|
|
45
43
|
res: { rows: RowType[]; count: number; } | null;
|
|
46
|
-
sorts: SortItem[];
|
|
47
44
|
visible_column_keys: string[];
|
|
48
45
|
quick_filter_configs: QuickFilterConfig[];
|
|
49
|
-
show_sort_dialog: boolean;
|
|
50
|
-
show_reorder_dialog: boolean;
|
|
51
46
|
show_quick_filter_dialog: boolean;
|
|
52
47
|
filter_revision: number;
|
|
53
48
|
}
|
|
@@ -68,11 +63,8 @@ export class NSATable<RowType extends { id: string }, RowTypeInput = RowType>
|
|
|
68
63
|
quick_filter_configs = this.buildDefaultQuickFilters();
|
|
69
64
|
this.state = {
|
|
70
65
|
res: null,
|
|
71
|
-
sorts: [],
|
|
72
66
|
visible_column_keys: [],
|
|
73
67
|
quick_filter_configs,
|
|
74
|
-
show_sort_dialog: false,
|
|
75
|
-
show_reorder_dialog: false,
|
|
76
68
|
show_quick_filter_dialog: false,
|
|
77
69
|
filter_revision: 0,
|
|
78
70
|
};
|
|
@@ -250,24 +242,6 @@ export class NSATable<RowType extends { id: string }, RowTypeInput = RowType>
|
|
|
250
242
|
private buildButtons(): NSButtonProps[]
|
|
251
243
|
{
|
|
252
244
|
const buttons: NSButtonProps[] = [
|
|
253
|
-
{
|
|
254
|
-
title: "",
|
|
255
|
-
icon: { src: "https://static.namirasoft.com/image/concept/grip-vertical/blue.svg", alt: "reorder" },
|
|
256
|
-
attributes: { title: "Reorder" },
|
|
257
|
-
onClick: {
|
|
258
|
-
action: () => this.setState({ show_reorder_dialog: true, visible_column_keys: this.getVisibleColumns().map(c => c.table + "." + c.column) }),
|
|
259
|
-
showLoading: false,
|
|
260
|
-
},
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
title: "",
|
|
264
|
-
icon: { src: "https://static.namirasoft.com/image/concept/arrow-down-short-wide/blue.svg", alt: "sort" },
|
|
265
|
-
attributes: { title: "Sort" },
|
|
266
|
-
onClick: {
|
|
267
|
-
action: () => this.setState({ show_sort_dialog: true, sorts: this.getSortItems() }),
|
|
268
|
-
showLoading: false,
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
245
|
{
|
|
272
246
|
title: "",
|
|
273
247
|
icon: { src: "https://static.namirasoft.com/image/concept/sliders/blue.svg", alt: "filter" },
|
|
@@ -484,6 +458,9 @@ export class NSATable<RowType extends { id: string }, RowTypeInput = RowType>
|
|
|
484
458
|
return res;
|
|
485
459
|
}}
|
|
486
460
|
getRowKey={(row) => row.value.id.toString()}
|
|
461
|
+
sort={{
|
|
462
|
+
onSort: () => { this.NSTable_Main.current?.reload(null, null); },
|
|
463
|
+
}}
|
|
487
464
|
getRowAttributes={(row_value, row_index) => this.props.ui?.getRowAttributes?.(row_value, row_index, this.state.res) ?? {}}
|
|
488
465
|
getColumnAttributes={this.props.ui?.getColumnAttributes}
|
|
489
466
|
getCellFormattedValue={this.props.ui?.getCellFormattedValue}
|
|
@@ -493,34 +470,6 @@ export class NSATable<RowType extends { id: string }, RowTypeInput = RowType>
|
|
|
493
470
|
{filterChips}
|
|
494
471
|
{quickFilterBar}
|
|
495
472
|
</NSTable>
|
|
496
|
-
{
|
|
497
|
-
this.state.show_sort_dialog &&
|
|
498
|
-
<NSASortDialog
|
|
499
|
-
sorts={this.state.sorts}
|
|
500
|
-
getColumns={() => this.getColumns()}
|
|
501
|
-
onCancel={() => this.setState({ show_sort_dialog: false })}
|
|
502
|
-
onApply={sorts =>
|
|
503
|
-
{
|
|
504
|
-
this.setSortItems(sorts);
|
|
505
|
-
this.setState({ show_sort_dialog: false, sorts: sorts ?? [] });
|
|
506
|
-
}}
|
|
507
|
-
/>
|
|
508
|
-
}
|
|
509
|
-
{
|
|
510
|
-
this.state.show_reorder_dialog &&
|
|
511
|
-
<NSAReorderDialog
|
|
512
|
-
visibleColumnKeys={this.state.visible_column_keys}
|
|
513
|
-
getColumns={() => this.getColumns()}
|
|
514
|
-
onCancel={() => this.setState({ show_reorder_dialog: false })}
|
|
515
|
-
onApply={orderedKeys =>
|
|
516
|
-
{
|
|
517
|
-
const cs_all = this.getColumns();
|
|
518
|
-
const cs = orderedKeys.map((v: string) => cs_all.find((c: TableColumnInfo) => v === c.table.name + "." + c.name)).filter(Boolean) as TableColumnInfo[];
|
|
519
|
-
this.setVisibleColumns(cs.map(c => ({ table: c.table.name, column: c.name })));
|
|
520
|
-
this.setState({ show_reorder_dialog: false, visible_column_keys: orderedKeys });
|
|
521
|
-
}}
|
|
522
|
-
/>
|
|
523
|
-
}
|
|
524
473
|
{
|
|
525
474
|
this.state.show_quick_filter_dialog &&
|
|
526
475
|
<NSAQuickFilterDialog
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { NamirasoftAccountClient } from 'namirasoft-account-client';
|
|
2
2
|
import { NSButton, NSCopy, NSDialog, NSDialogProps, NSLine, NSLink, NSLoading, NSSpace, NSSpaceSizeType } from 'namirasoft-site-react';
|
|
3
3
|
import { Component } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { NSARouterMakerResult } from '../NSARouterMakerResult';
|
|
5
5
|
import Styles from "./NSAUserDialog.module.css";
|
|
6
6
|
|
|
7
|
-
export interface NSAUserDialogProps extends
|
|
7
|
+
export interface NSAUserDialogProps extends NSARouterMakerResult, NSDialogProps
|
|
8
8
|
{
|
|
9
9
|
client: NamirasoftAccountClient;
|
|
10
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { NSBoxSearch, NSCopy, NSDialog, NSDialogProps, NSLoading } from 'namirasoft-site-react';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { NamirasoftWorkspaceServer, WorkspaceRow } from 'namirasoft-workspace';
|
|
4
|
-
import {
|
|
4
|
+
import { NSARouterMakerResult } from '../NSARouterMakerResult';
|
|
5
5
|
import { EnvService, SearchOperation } from 'namirasoft-core';
|
|
6
6
|
import Styles from './NSAWorkspaceListDialog.module.css';
|
|
7
7
|
|
|
8
|
-
export interface NSAWorkspaceListDialogProps extends
|
|
8
|
+
export interface NSAWorkspaceListDialogProps extends NSARouterMakerResult, NSDialogProps { }
|
|
9
9
|
|
|
10
10
|
export interface NSAWorkspaceListDialogState
|
|
11
11
|
{
|
|
@@ -2,10 +2,10 @@ import { EnvService, FilterItem, FilterItemOperator } from "namirasoft-core";
|
|
|
2
2
|
import { CategoryRow, CategoryScopeRow, NamirasoftFieldMetaDatabase, NamirasoftFieldServer, SlotRow } from "namirasoft-field";
|
|
3
3
|
import { NSBoxEntity } from "namirasoft-site-react";
|
|
4
4
|
import { Component, createRef } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { NSARouterMakerResult } from "../NSARouterMakerResult";
|
|
6
6
|
import { NSFBoxSlot } from "./NSFBoxSlot";
|
|
7
7
|
|
|
8
|
-
export interface NSFBoxCategoryScopeProps extends
|
|
8
|
+
export interface NSFBoxCategoryScopeProps extends NSARouterMakerResult
|
|
9
9
|
{
|
|
10
10
|
slot: SlotRow;
|
|
11
11
|
category_scope: CategoryScopeRow;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CategoryScopeRow, FieldRow, SlotEntityType, SlotRow, SlotSize } from "namirasoft-field";
|
|
2
2
|
import { NSBox } from "namirasoft-site-react";
|
|
3
3
|
import { Component, createRef } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { NSARouterMakerResult } from "../NSARouterMakerResult";
|
|
5
5
|
import { NSFBoxCategoryScope } from "./NSFBoxCategoryScope";
|
|
6
6
|
import { NSFBoxField } from "./NSFBoxField";
|
|
7
7
|
|
|
8
|
-
export interface NSFBoxSlotProps extends
|
|
8
|
+
export interface NSFBoxSlotProps extends NSARouterMakerResult
|
|
9
9
|
{
|
|
10
10
|
slot: SlotRow;
|
|
11
11
|
getField: () => FieldRow;
|
package/src/layouts/Actions.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { EnvService, FilterItem, FilterItemOperator } from "namirasoft-core";
|
|
|
2
2
|
import { NamirasoftHistoryMetaDatabase } from "namirasoft-history";
|
|
3
3
|
import { LinkOperation, NSButtonOnClickProps, NSMenuActionProps } from "namirasoft-site-react";
|
|
4
4
|
import { IEntityInfo } from "../IEntityInfo";
|
|
5
|
-
import {
|
|
5
|
+
import { NSARouterMakerResult } from "../NSARouterMakerResult";
|
|
6
6
|
|
|
7
7
|
export class Actions
|
|
8
8
|
{
|
|
@@ -15,7 +15,7 @@ export class Actions
|
|
|
15
15
|
isActive() { return true; }
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
static _new(props:
|
|
18
|
+
static _new(props: NSARouterMakerResult, entity: IEntityInfo<any>): NSMenuActionProps
|
|
19
19
|
{
|
|
20
20
|
return {
|
|
21
21
|
id: "1",
|
|
@@ -34,7 +34,7 @@ export class Actions
|
|
|
34
34
|
isActive() { return true; }
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
static list(props:
|
|
37
|
+
static list(props: NSARouterMakerResult, entity: IEntityInfo<any>): NSMenuActionProps
|
|
38
38
|
{
|
|
39
39
|
return {
|
|
40
40
|
id: "2",
|
|
@@ -53,7 +53,7 @@ export class Actions
|
|
|
53
53
|
isActive() { return true; }
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
static view(props:
|
|
56
|
+
static view(props: NSARouterMakerResult, entity: IEntityInfo<any>, getIDs: () => string[]): NSMenuActionProps
|
|
57
57
|
{
|
|
58
58
|
return {
|
|
59
59
|
id: "3",
|
|
@@ -95,7 +95,7 @@ export class Actions
|
|
|
95
95
|
isActive() { return getIDs().length === 1; }
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
static copy(props:
|
|
98
|
+
static copy(props: NSARouterMakerResult, entity: IEntityInfo<any>, getIDs: () => string[]): NSMenuActionProps
|
|
99
99
|
{
|
|
100
100
|
return {
|
|
101
101
|
id: "5",
|
|
@@ -115,7 +115,7 @@ export class Actions
|
|
|
115
115
|
isActive() { return getIDs().length === 1; }
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
static edit(props:
|
|
118
|
+
static edit(props: NSARouterMakerResult, entity: IEntityInfo<any>, getIDs: () => string[]): NSMenuActionProps
|
|
119
119
|
{
|
|
120
120
|
return {
|
|
121
121
|
id: "6",
|