namirasoft-site-react 1.3.42 → 1.3.44
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.js +1 -4
- package/dist/App.js.map +1 -1
- package/dist/components/NSButton.d.ts +15 -0
- package/dist/components/NSButton.js +29 -0
- package/dist/components/NSButton.js.map +1 -0
- package/dist/components/NSButton.module.css +12 -0
- package/dist/components/NSCard.d.ts +2 -2
- package/dist/components/NSEntityCardBackground.d.ts +5 -5
- package/dist/components/NSHeader.d.ts +2 -2
- package/dist/components/NSInputDate.d.ts +4 -2
- package/dist/components/NSInputDate.js +9 -7
- package/dist/components/NSInputDate.js.map +1 -1
- package/dist/components/NSLinkBlue.d.ts +3 -3
- package/dist/components/NSLoading.d.ts +2 -2
- package/dist/components/NSSection.d.ts +3 -3
- package/dist/components/NSSectionBars.d.ts +2 -2
- package/dist/components/NSSectionBars.js.map +1 -1
- package/dist/components/NSSectionCards.d.ts +2 -2
- package/dist/components/NSSectionTitle.d.ts +2 -2
- package/dist/components/NSSectionTitle.js.map +1 -1
- package/dist/components/NSTable.d.ts +2 -2
- package/dist/components/NSTable.js +12 -2
- package/dist/components/NSTable.js.map +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/{types/Background.d.ts → props/BackgroundProps.d.ts} +1 -1
- package/dist/props/BackgroundProps.js +2 -0
- package/dist/props/BackgroundProps.js.map +1 -0
- package/dist/props/ImageProps.d.ts +4 -0
- package/dist/props/ImageProps.js +2 -0
- package/dist/props/ImageProps.js.map +1 -0
- package/dist/{types/Link.d.ts → props/LinkProps.d.ts} +1 -1
- package/dist/props/LinkProps.js +2 -0
- package/dist/props/LinkProps.js.map +1 -0
- package/dist/props/NSButtonProps.d.ts +10 -0
- package/dist/props/NSButtonProps.js +2 -0
- package/dist/props/NSButtonProps.js.map +1 -0
- package/package.json +1 -1
- package/src/App.tsx +1 -6
- package/src/components/NSButton.module.css +12 -0
- package/src/components/NSButton.tsx +72 -0
- package/src/components/NSCard.tsx +2 -2
- package/src/components/NSEntityCardBackground.tsx +5 -5
- package/src/components/NSHeader.tsx +2 -2
- package/src/components/NSInputDate.tsx +11 -7
- package/src/components/NSLinkBlue.tsx +3 -3
- package/src/components/NSLoading.tsx +2 -2
- package/src/components/NSSection.tsx +3 -3
- package/src/components/NSSectionBars.tsx +4 -3
- package/src/components/NSSectionCards.tsx +2 -2
- package/src/components/NSSectionTitle.tsx +4 -3
- package/src/components/NSTable.tsx +18 -6
- package/src/main.ts +1 -1
- package/src/{types/Background.ts → props/BackgroundProps.ts} +1 -1
- package/src/props/ImageProps.ts +5 -0
- package/src/{types/Link.ts → props/LinkProps.ts} +1 -1
- package/src/props/NSButtonProps.ts +11 -0
- package/dist/components/NSButtonGroup.d.ts +0 -2
- package/dist/components/NSButtonGroup.js +0 -7
- package/dist/components/NSButtonGroup.js.map +0 -1
- package/dist/components/NSButtonGroup.module.css +0 -38
- package/dist/types/Background.js +0 -2
- package/dist/types/Background.js.map +0 -1
- package/dist/types/Link.js +0 -2
- package/dist/types/Link.js.map +0 -1
- package/src/components/NSButtonGroup.module.css +0 -38
- package/src/components/NSButtonGroup.tsx +0 -12
package/dist/App.js
CHANGED
|
@@ -28,9 +28,6 @@ export function App() {
|
|
|
28
28
|
status: "Done"
|
|
29
29
|
}
|
|
30
30
|
];
|
|
31
|
-
|
|
32
|
-
return row[column];
|
|
33
|
-
}
|
|
34
|
-
return (_jsx(NSLayoutTitle, { scope: 'Namirasoft Account Console', logo: '', title: "Namirasoft", children: _jsx("div", { className: "container", children: _jsx(NSTable, { columns: columns, rows: rows, getCell: getCell, getColumnAttributes: () => { return {}; }, getRowKey: row => row.id.toString() }) }) }));
|
|
31
|
+
return (_jsx(NSLayoutTitle, { scope: 'Namirasoft Account Console', logo: '', title: "Namirasoft", children: _jsx("div", { className: "container", children: _jsx(NSTable, { columns: columns, rows: rows, getRowKey: row => row.id.toString() }) }) }));
|
|
35
32
|
}
|
|
36
33
|
//# sourceMappingURL=App.js.map
|
package/dist/App.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,UAAU,GAAG;IAEf,IAAI,OAAO,GAAG;QACV,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE,OAAO;QAChB,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,UAAU,GAAG;IAEf,IAAI,OAAO,GAAG;QACV,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE,OAAO;QAChB,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,QAAQ;KACrB,CAAA;IACD,IAAI,IAAI,GAAG,CAAC;YACR,EAAE,EAAE,CAAC;YACL,OAAO,EAAE,oBAAoB;YAC7B,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,yCAAyC;YAClD,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,MAAM;SACjB;QACD;YACI,EAAE,EAAE,CAAC;YACL,OAAO,EAAE,oBAAoB;YAC7B,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,yCAAyC;YAClD,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,MAAM;SACjB;KACA,CAAA;IAUD,OAAO,CACH,KAAC,aAAa,IAAC,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,EAAC,YAAY,YACxE,cAAK,SAAS,EAAC,WAAW,YACtB,KAAC,OAAO,IAAM,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAI,GACjF,GACM,CACnB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BackgroundProps } from "../props/BackgroundProps";
|
|
3
|
+
import { ImageProps } from "../props/ImageProps";
|
|
4
|
+
import { NSButtonProps } from "../props/NSButtonProps";
|
|
5
|
+
export interface NSButtonState {
|
|
6
|
+
title: string;
|
|
7
|
+
border?: string;
|
|
8
|
+
background?: BackgroundProps;
|
|
9
|
+
icon?: ImageProps;
|
|
10
|
+
}
|
|
11
|
+
export declare class NSButton extends React.Component<NSButtonProps, NSButtonState> {
|
|
12
|
+
constructor(props: NSButtonProps);
|
|
13
|
+
setTitle(title: string): void;
|
|
14
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import Style from "./NSButton.module.css";
|
|
5
|
+
export class NSButton extends React.Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.state = {
|
|
9
|
+
title: props.title,
|
|
10
|
+
border: props.border,
|
|
11
|
+
background: props.background,
|
|
12
|
+
icon: props.icon,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
setTitle(title) {
|
|
16
|
+
this.setState({ title });
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
var _a, _b, _c, _d;
|
|
20
|
+
return (_jsxs("button", { onClick: e => this.props.onClick(e), className: Style.ns_button, style: {
|
|
21
|
+
border: this.state.border,
|
|
22
|
+
backgroundColor: (_a = this.state.background) === null || _a === void 0 ? void 0 : _a.color,
|
|
23
|
+
backgroundImage: (_b = this.state.background) === null || _b === void 0 ? void 0 : _b.image,
|
|
24
|
+
backdropFilter: (_c = this.state.background) === null || _c === void 0 ? void 0 : _c.filter,
|
|
25
|
+
backgroundPosition: (_d = this.state.background) === null || _d === void 0 ? void 0 : _d.position,
|
|
26
|
+
}, children: [this.state.icon && _jsx("img", { src: this.state.icon.src, alt: this.state.icon.alt }), this.state.title] }));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=NSButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSButton.js","sourceRoot":"","sources":["../../src/components/NSButton.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAkC1C,MAAM,OAAO,QAAS,SAAQ,KAAK,CAAC,SAAuC;IAEvE,YAAY,KAAoB;QAE5B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,IAAI,EAAE,KAAK,CAAC,IAAI;SACnB,CAAC;IACN,CAAC;IACD,QAAQ,CAAC,KAAa;QAElB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACQ,MAAM;;QAEX,OAAO,CACH,kBAAQ,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EACnE,KAAK,EAAE;gBACH,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;gBACzB,eAAe,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,UAAU,0CAAE,KAAK;gBAC7C,eAAe,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,UAAU,0CAAE,KAAK;gBAC7C,cAAc,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,UAAU,0CAAE,MAAM;gBAC7C,kBAAkB,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,UAAU,0CAAE,QAAQ;aACtD,aAEG,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,cAAK,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,GAAI,EAEjF,IAAI,CAAC,KAAK,CAAC,KAAK,IACX,CACb,CAAA;IACL,CAAC;CACJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { LinkProps } from '../props/LinkProps';
|
|
3
3
|
export interface NSCardProps {
|
|
4
4
|
id?: string | number;
|
|
5
5
|
title?: string;
|
|
@@ -12,7 +12,7 @@ export interface NSCardProps {
|
|
|
12
12
|
src: string;
|
|
13
13
|
alt: string;
|
|
14
14
|
};
|
|
15
|
-
link?:
|
|
15
|
+
link?: LinkProps;
|
|
16
16
|
}
|
|
17
17
|
export declare class NSCard extends Component<NSCardProps> {
|
|
18
18
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { BackgroundProps } from '../props/BackgroundProps';
|
|
3
|
+
import { LinkProps } from '../props/LinkProps';
|
|
4
4
|
export interface NSEntityCardBackgroundProps {
|
|
5
5
|
id?: string | number;
|
|
6
6
|
title: string;
|
|
7
|
-
link?:
|
|
8
|
-
background?:
|
|
7
|
+
link?: LinkProps;
|
|
8
|
+
background?: BackgroundProps;
|
|
9
9
|
}
|
|
10
10
|
export interface NSEntityCardBackgroundState {
|
|
11
|
-
background?:
|
|
11
|
+
background?: BackgroundProps;
|
|
12
12
|
}
|
|
13
13
|
export declare class NSEntityCardBackground extends Component<NSEntityCardBackgroundProps, NSEntityCardBackgroundState> {
|
|
14
14
|
constructor(props: NSEntityCardBackgroundProps);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FilterLinkRow } from 'namirasoft-api-link';
|
|
3
|
-
import {
|
|
3
|
+
import { BackgroundProps } from "../props/BackgroundProps";
|
|
4
4
|
export interface NSHeaderProps {
|
|
5
5
|
scope: string;
|
|
6
6
|
name: string;
|
|
7
7
|
logo: string;
|
|
8
8
|
account?: boolean;
|
|
9
|
-
background?:
|
|
9
|
+
background?: BackgroundProps;
|
|
10
10
|
}
|
|
11
11
|
export interface NSHeaderState {
|
|
12
12
|
filters: FilterLinkRow[];
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export interface NSInputDateProps {
|
|
3
3
|
title: string;
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
4
6
|
}
|
|
5
7
|
export interface NSInputDateState {
|
|
6
8
|
value: string;
|
|
7
9
|
}
|
|
8
10
|
export declare class NSInputDate extends React.Component<NSInputDateProps, NSInputDateState> {
|
|
9
11
|
constructor(props: NSInputDateProps);
|
|
10
|
-
setValue(e: React.ChangeEvent<HTMLInputElement>): void;
|
|
11
|
-
setDefaultValue(value: string): void;
|
|
12
12
|
getValue(): string;
|
|
13
|
+
setValue(value: string): void;
|
|
14
|
+
private onChanged;
|
|
13
15
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
}
|
|
@@ -10,19 +10,21 @@ export class NSInputDate extends React.Component {
|
|
|
10
10
|
};
|
|
11
11
|
this.setValue = this.setValue.bind(this);
|
|
12
12
|
this.getValue = this.getValue.bind(this);
|
|
13
|
-
this.
|
|
13
|
+
this.onChanged = this.onChanged.bind(this);
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
this.
|
|
15
|
+
getValue() {
|
|
16
|
+
return this.state.value;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
setValue(value) {
|
|
19
19
|
this.setState({ value });
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
onChanged(e) {
|
|
22
|
+
this.setValue(e.target.value);
|
|
23
|
+
if (this.props.onChanged)
|
|
24
|
+
this.props.onChanged(e);
|
|
23
25
|
}
|
|
24
26
|
render() {
|
|
25
|
-
return (_jsxs("div", { className: `${Styles.ns_parent_input} p-2`, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx("input", { value: this.state.value, onChange: this.
|
|
27
|
+
return (_jsxs("div", { className: `${Styles.ns_parent_input} p-2`, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx("input", { value: this.state.value, onChange: this.onChanged, type: "date", className: Styles.ns_input, placeholder: "YYYY/MM/DD", id: "ns-input-date" })] }));
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
//# sourceMappingURL=NSInputDate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSInputDate.js","sourceRoot":"","sources":["../../src/components/NSInputDate.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"NSInputDate.js","sourceRoot":"","sources":["../../src/components/NSInputDate.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAc9C,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAA6C;IAChF,YAAY,KAAuB;QAE/B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,KAAK,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IACD,QAAQ;QAEJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAC5B,CAAC;IACD,QAAQ,CAAC,KAAa;QAElB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACO,SAAS,CAAC,CAAsC;QAEpD,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;YACpB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,MAAM,aAC3C,eAAM,SAAS,EAAE,MAAM,CAAC,cAAc,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAQ,EACjE,gBACI,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAC,YAAY,EACxB,EAAE,EAAC,eAAe,GACpB,IACA,CACT,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LinkProps } from "../props/LinkProps";
|
|
2
2
|
import React from "react";
|
|
3
|
-
export interface NSLinkBlueProps extends
|
|
3
|
+
export interface NSLinkBlueProps extends LinkProps {
|
|
4
4
|
style?: React.CSSProperties;
|
|
5
5
|
}
|
|
6
|
-
export interface NSLinkBlueState extends
|
|
6
|
+
export interface NSLinkBlueState extends LinkProps {
|
|
7
7
|
}
|
|
8
8
|
export declare class NSLinkBlue extends React.Component<NSLinkBlueProps, NSLinkBlueState> {
|
|
9
9
|
constructor(props: NSLinkBlueProps);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BackgroundProps } from '../props/BackgroundProps';
|
|
3
3
|
interface NSLoadingProps {
|
|
4
|
-
background?:
|
|
4
|
+
background?: BackgroundProps;
|
|
5
5
|
}
|
|
6
6
|
export declare class NSLoading extends Component<NSLoadingProps> {
|
|
7
7
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component, ReactNode } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { BackgroundProps } from "../props/BackgroundProps";
|
|
3
3
|
export interface NSSectionProps {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
background?:
|
|
5
|
+
background?: BackgroundProps;
|
|
6
6
|
center_items?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export interface NSSectionState {
|
|
9
|
-
background?:
|
|
9
|
+
background?: BackgroundProps;
|
|
10
10
|
}
|
|
11
11
|
export declare class NSSection extends Component<NSSectionProps, NSSectionState> {
|
|
12
12
|
constructor(props: NSSectionProps);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
import { NSEntityBarProps } from './NSEntityBar';
|
|
3
|
-
import {
|
|
3
|
+
import { BackgroundProps } from '../props/BackgroundProps';
|
|
4
4
|
export interface NSSectionBarsProps {
|
|
5
|
-
background?:
|
|
5
|
+
background?: BackgroundProps;
|
|
6
6
|
bars: NSEntityBarProps[];
|
|
7
7
|
}
|
|
8
8
|
export declare class NSSectionBars extends Component<NSSectionBarsProps> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSSectionBars.js","sourceRoot":"","sources":["../../src/components/NSSectionBars.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,WAAW,EAAoB,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC,MAAM,OAAO,aAAc,SAAQ,SAA6B;
|
|
1
|
+
{"version":3,"file":"NSSectionBars.js","sourceRoot":"","sources":["../../src/components/NSSectionBars.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,WAAW,EAAoB,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC,MAAM,OAAO,aAAc,SAAQ,SAA6B;IAEtD,MAAM;;QAEd,OAAO,CACN,4BACC,KAAC,SAAS,IAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,YAC3C,cAAK,SAAS,EAAE,mCAAmC,MAAM,CAAC,uBAAuB,EAAE,YAEjF,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,0CAAE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,KAAC,WAAW,oBAAkB,GAAG,GAAf,GAAG,CAAC,EAAE,CAAa,CAAC,GAEhE,GACK,GACV,CACH,CAAC;IACH,CAAC;CACD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
import { NSCardProps } from './NSCard';
|
|
3
|
-
import {
|
|
3
|
+
import { BackgroundProps } from '../props/BackgroundProps';
|
|
4
4
|
export interface NSSectionCardsProps {
|
|
5
5
|
title?: {
|
|
6
6
|
text: string;
|
|
@@ -10,7 +10,7 @@ export interface NSSectionCardsProps {
|
|
|
10
10
|
text: string;
|
|
11
11
|
color?: string;
|
|
12
12
|
};
|
|
13
|
-
background?:
|
|
13
|
+
background?: BackgroundProps;
|
|
14
14
|
button?: {
|
|
15
15
|
href: string;
|
|
16
16
|
title: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Component, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BackgroundProps } from '../props/BackgroundProps';
|
|
3
3
|
export interface NSSectionTitleProps {
|
|
4
4
|
title: {
|
|
5
5
|
text: string;
|
|
6
6
|
color?: string;
|
|
7
7
|
};
|
|
8
|
-
background?:
|
|
8
|
+
background?: BackgroundProps;
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}
|
|
11
11
|
export declare class NSSectionTitle extends Component<NSSectionTitleProps> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSSectionTitle.js","sourceRoot":"","sources":["../../src/components/NSSectionTitle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAapC,MAAM,OAAO,cAAe,SAAQ,SAA8B;
|
|
1
|
+
{"version":3,"file":"NSSectionTitle.js","sourceRoot":"","sources":["../../src/components/NSSectionTitle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAapC,MAAM,OAAO,cAAe,SAAQ,SAA8B;IAExD,MAAM;QAEd,OAAO,CACN,MAAC,SAAS,IAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,aAC3C,KAAC,OAAO,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAI,EACvE,IAAI,CAAC,KAAK,CAAC,QAAQ,IACT,CACZ,CAAC;IACH,CAAC;CACD"}
|
|
@@ -5,10 +5,10 @@ export interface NSTableProps<RowType> {
|
|
|
5
5
|
};
|
|
6
6
|
rows: RowType[];
|
|
7
7
|
getRowKey: (row: RowType, rowIndex: number) => string;
|
|
8
|
-
getColumnAttributes
|
|
8
|
+
getColumnAttributes?: (column: string, columnIndex: number) => {
|
|
9
9
|
[key: string]: string;
|
|
10
10
|
};
|
|
11
|
-
getCell
|
|
11
|
+
getCell?: (row: RowType, column: string, rowIndex: number, columnIndex: number) => any;
|
|
12
12
|
}
|
|
13
13
|
export interface NSTableState<RowType> {
|
|
14
14
|
columns: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import { NSButton } from './NSButton';
|
|
4
4
|
import { NSInputSearch } from './NSInputSearch';
|
|
5
5
|
import { NSPagination } from './NSPagination';
|
|
6
6
|
import { NSSpace, NSSpaceSizeType } from './NSSpace';
|
|
@@ -19,7 +19,17 @@ export class NSTable extends Component {
|
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
21
|
let column_keys = Object.keys(this.state.columns);
|
|
22
|
-
|
|
22
|
+
let getColumnAttributes = (column, columnIndex) => {
|
|
23
|
+
if (this.props.getColumnAttributes)
|
|
24
|
+
return this.props.getColumnAttributes(column, columnIndex);
|
|
25
|
+
return {};
|
|
26
|
+
};
|
|
27
|
+
let getCell = (row, column, rowIndex, columnIndex) => {
|
|
28
|
+
if (this.props.getCell)
|
|
29
|
+
return this.props.getCell(row, column, rowIndex, columnIndex);
|
|
30
|
+
return row[column];
|
|
31
|
+
};
|
|
32
|
+
return (_jsxs("div", { className: `container ${Styles.ns_project_list_container}`, children: [_jsx("section", { className: Styles.ns_search_input, children: _jsx(NSInputSearch, {}) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("table", { className: Styles.ns_table, children: [_jsx("thead", { className: Styles.ns_thead, children: _jsx("tr", { children: column_keys.map(column_key => _jsx("th", { scope: "col", children: this.state.columns[column_key] }, column_key)) }) }), _jsx("tbody", { className: Styles.ns_tbody, children: this.state.rows.map((row, rowIndex) => _jsx("tr", { onClick: () => this.setState({ modalState: !this.state.modalState }), children: column_keys.map((column, columnIndex) => (_jsx("td", Object.assign({}, getColumnAttributes(column, columnIndex), { "data-label": this.state.columns[column], children: getCell(row, column, rowIndex, columnIndex) })))) }, this.props.getRowKey(row, rowIndex))) })] }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsxs("section", { className: Styles.ns_button_group, children: [_jsx(NSPagination, { size: 50, page: 5 }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx(NSButton, { title: 'Export', icon: { src: "/assets/images/export-vector.png" }, onClick: () => { }, background: { color: "" }, border: '1px solid rgba(255, 148, 50, 1)' })] }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("section", { onClick: () => this.setState({ modalState: !this.state.modalState }), className: Styles.ns_modal, style: { display: this.state.modalState ? "block" : "none" }, children: [_jsx("a", { children: _jsx("img", { src: '/assets/images/close-vector.png' }) }), _jsx("p", { children: "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur vitae diam non enim vestibulum interdum. Duis condimentum augue id magna semper rutrum. Nullam sit amet magna in magna gravida vehicula. Vestibulum erat nulla, ullamcorper nec, rutrum non, nonummy ac, erat. In laoreet, magna id viverra tincidunt, sem odio bibendum justo, vel imperdiet sapien wisi sed libero. Phasellus enim erat, vestibulum vel, aliquam a, posuere eu, velit. Morbi imperdiet, mauris ac auctor dictum, nisl ligula egestas nulla, et sollicitudin sem purus in lacus. Mauris dictum facilisis augue. Phasellus faucibus molestie nisl. Aliquam ante. Nulla accumsan, elit sit amet varius semper, nulla mauris mollis quam, tempor suscipit diam nulla vel leo. In convallis. Phasellus rhoncus.." })] })] }));
|
|
23
33
|
}
|
|
24
34
|
}
|
|
25
35
|
//# sourceMappingURL=NSTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSTable.js","sourceRoot":"","sources":["../../src/components/NSTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,
|
|
1
|
+
{"version":3,"file":"NSTable.js","sourceRoot":"","sources":["../../src/components/NSTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAkBlC,MAAM,OAAO,OAAiB,SAAQ,SAAuD;IAEzF,YAAY,KAA4B;QAEpC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;IACjF,CAAC;IACD,UAAU,CAAC,OAAkC;QAEzC,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,CAAC,IAAe;QAEnB,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,IAAI,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,mBAAmB,GAAG,CAAC,MAAc,EAAE,WAAmB,EAAE,EAAE;YAE9D,IAAI,IAAI,CAAC,KAAK,CAAC,mBAAmB;gBAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;YAC/D,OAAO,EAAE,CAAC;QACd,CAAC,CAAA;QACD,IAAI,OAAO,GAAG,CAAC,GAAY,EAAE,MAAc,EAAE,QAAgB,EAAE,WAAmB,EAAE,EAAE;YAElF,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO;gBAClB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;YAClE,OAAQ,GAAW,CAAC,MAAM,CAAC,CAAC;QAChC,CAAC,CAAA;QACD,OAAO,CACH,eAAK,SAAS,EAAE,aAAa,MAAM,CAAC,yBAAyB,EAAE,aAC3D,kBAAS,SAAS,EAAE,MAAM,CAAC,eAAe,YACtC,KAAC,aAAa,KAAG,GACX,EACV,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACxC,iBAAO,SAAS,EAAE,MAAM,CAAC,QAAQ,aAC7B,gBAAO,SAAS,EAAE,MAAM,CAAC,QAAQ,YAC7B,uBACK,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,aAAqB,KAAK,EAAC,KAAK,YAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAvD,UAAU,CAAmD,CAAC,GACrG,GACD,EACR,gBAAO,SAAS,EAAE,MAAM,CAAC,QAAQ,YAEzB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,CAClC,aAA8C,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,YAE1G,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,CAAC,CACrC,6BAAQ,mBAAmB,CAAC,MAAM,EAAE,WAAW,CAAC,kBAAc,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,YACnF,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,CAAC,IAC3C,CACR,CAAC,IAND,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC,CAQvC,CAAC,GAET,IACL,EACR,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACxC,mBAAS,SAAS,EAAE,MAAM,CAAC,eAAe,aACtC,KAAC,YAAY,IAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,GAAI,EACnC,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACxC,KAAC,QAAQ,IAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAE,EAAE,GAAG,EAAE,kCAAkC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,EAAC,iCAAiC,GAAG,IAChK,EACV,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACxC,mBAAS,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,aACnK,sBAAG,cAAK,GAAG,EAAC,iCAAiC,GAAG,GAAI,EACpD,4xBAGI,IACE,IACP,CACV,CAAA;IACL,CAAC;CACJ"}
|
package/dist/main.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./components/NSButtonBlue";
|
|
2
2
|
export * from "./components/NSButtonBlueVector";
|
|
3
3
|
export * from "./components/NSButtonGreen";
|
|
4
|
-
export * from "./components/
|
|
4
|
+
export * from "./components/NSButton";
|
|
5
5
|
export * from "./components/NSButtonRed";
|
|
6
6
|
export * from "./components/NSCard";
|
|
7
7
|
export * from "./components/NSEntityCardBackground";
|
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./components/NSButtonBlue";
|
|
2
2
|
export * from "./components/NSButtonBlueVector";
|
|
3
3
|
export * from "./components/NSButtonGreen";
|
|
4
|
-
export * from "./components/
|
|
4
|
+
export * from "./components/NSButton";
|
|
5
5
|
export * from "./components/NSButtonRed";
|
|
6
6
|
export * from "./components/NSCard";
|
|
7
7
|
export * from "./components/NSEntityCardBackground";
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackgroundProps.js","sourceRoot":"","sources":["../../src/props/BackgroundProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageProps.js","sourceRoot":"","sources":["../../src/props/ImageProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkProps.js","sourceRoot":"","sources":["../../src/props/LinkProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BackgroundProps } from "./BackgroundProps";
|
|
3
|
+
import { ImageProps } from "./ImageProps";
|
|
4
|
+
export interface NSButtonProps {
|
|
5
|
+
title: string;
|
|
6
|
+
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
7
|
+
border?: string;
|
|
8
|
+
background?: BackgroundProps;
|
|
9
|
+
icon?: ImageProps;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSButtonProps.js","sourceRoot":"","sources":["../../src/props/NSButtonProps.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
package/src/App.tsx
CHANGED
|
@@ -11,7 +11,6 @@ export function App()
|
|
|
11
11
|
"message": "Message",
|
|
12
12
|
"cent": "Cent",
|
|
13
13
|
"status": "Status",
|
|
14
|
-
|
|
15
14
|
}
|
|
16
15
|
let rows = [{
|
|
17
16
|
id: 1,
|
|
@@ -39,14 +38,10 @@ export function App()
|
|
|
39
38
|
cent: string,
|
|
40
39
|
status: string
|
|
41
40
|
}
|
|
42
|
-
function getCell(row: Row, column: string): any
|
|
43
|
-
{
|
|
44
|
-
return (row as any)[column];
|
|
45
|
-
}
|
|
46
41
|
return (
|
|
47
42
|
<NSLayoutTitle scope='Namirasoft Account Console' logo='' title="Namirasoft">
|
|
48
43
|
<div className="container">
|
|
49
|
-
<NSTable columns={columns} rows={rows}
|
|
44
|
+
<NSTable<Row> columns={columns} rows={rows} getRowKey={row => row.id.toString()} />
|
|
50
45
|
</div>
|
|
51
46
|
</NSLayoutTitle>
|
|
52
47
|
);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import Style from "./NSButton.module.css";
|
|
5
|
+
import { BackgroundProps } from "../props/BackgroundProps";
|
|
6
|
+
import { ImageProps } from "../props/ImageProps";
|
|
7
|
+
import { NSButtonProps } from "../props/NSButtonProps";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
// export enum NSButtonBackgroundColor;
|
|
11
|
+
// {
|
|
12
|
+
// red = "#FF0000",
|
|
13
|
+
// blue =" #0000FF",
|
|
14
|
+
// green ="#008000",
|
|
15
|
+
// black ="#000000",
|
|
16
|
+
// white ="#fffaf0",
|
|
17
|
+
// orange ="#ff8c00",
|
|
18
|
+
// yellow ="#FFFF00",
|
|
19
|
+
// }
|
|
20
|
+
// export enum NSButtonBackgroundSize;
|
|
21
|
+
// {
|
|
22
|
+
// xsmal = "",
|
|
23
|
+
// small ="",
|
|
24
|
+
// medium ="",
|
|
25
|
+
// large ="",
|
|
26
|
+
// xlarge ="",
|
|
27
|
+
// xxlarge ="",
|
|
28
|
+
// xxxlarge ="",
|
|
29
|
+
// }
|
|
30
|
+
export interface NSButtonState
|
|
31
|
+
{
|
|
32
|
+
title: string;
|
|
33
|
+
border?: string;
|
|
34
|
+
background?: BackgroundProps;
|
|
35
|
+
icon?: ImageProps;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class NSButton extends React.Component<NSButtonProps, NSButtonState>
|
|
39
|
+
{
|
|
40
|
+
constructor(props: NSButtonProps)
|
|
41
|
+
{
|
|
42
|
+
super(props);
|
|
43
|
+
this.state = {
|
|
44
|
+
title: props.title,
|
|
45
|
+
border: props.border,
|
|
46
|
+
background: props.background,
|
|
47
|
+
icon: props.icon,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
setTitle(title: string)
|
|
51
|
+
{
|
|
52
|
+
this.setState({ title });
|
|
53
|
+
}
|
|
54
|
+
override render()
|
|
55
|
+
{
|
|
56
|
+
return (
|
|
57
|
+
<button onClick={e => this.props.onClick(e)} className={Style.ns_button}
|
|
58
|
+
style={{
|
|
59
|
+
border: this.state.border,
|
|
60
|
+
backgroundColor: this.state.background?.color,
|
|
61
|
+
backgroundImage: this.state.background?.image,
|
|
62
|
+
backdropFilter: this.state.background?.filter,
|
|
63
|
+
backgroundPosition: this.state.background?.position,
|
|
64
|
+
}}>
|
|
65
|
+
{
|
|
66
|
+
this.state.icon && <img src={this.state.icon.src} alt={this.state.icon.alt} />
|
|
67
|
+
}
|
|
68
|
+
{this.state.title}
|
|
69
|
+
</button >
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import Styles from './NSCard.module.css'
|
|
4
4
|
import { NSLinkBlue } from './NSLinkBlue';
|
|
5
|
-
import {
|
|
5
|
+
import { LinkProps } from '../props/LinkProps';
|
|
6
6
|
|
|
7
7
|
export interface NSCardProps
|
|
8
8
|
{
|
|
@@ -17,7 +17,7 @@ export interface NSCardProps
|
|
|
17
17
|
src: string;
|
|
18
18
|
alt: string;
|
|
19
19
|
};
|
|
20
|
-
link?:
|
|
20
|
+
link?: LinkProps
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export class NSCard extends Component<NSCardProps>
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import Styles from './NSEntityCardBackground.module.css'
|
|
5
|
-
import {
|
|
5
|
+
import { BackgroundProps } from '../props/BackgroundProps';
|
|
6
6
|
import { NSLinkBlue } from './NSLinkBlue';
|
|
7
|
-
import {
|
|
7
|
+
import { LinkProps } from '../props/LinkProps';
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export interface NSEntityCardBackgroundProps
|
|
11
11
|
{
|
|
12
12
|
id?: string | number;
|
|
13
13
|
title: string;
|
|
14
|
-
link?:
|
|
14
|
+
link?: LinkProps
|
|
15
15
|
|
|
16
|
-
background?:
|
|
16
|
+
background?: BackgroundProps;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export interface NSEntityCardBackgroundState
|
|
20
20
|
{
|
|
21
|
-
background?:
|
|
21
|
+
background?: BackgroundProps;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export class NSEntityCardBackground extends Component<NSEntityCardBackgroundProps, NSEntityCardBackgroundState>
|
|
@@ -4,7 +4,7 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSHeader.module.css";
|
|
5
5
|
import NavDropdown from 'react-bootstrap/NavDropdown';
|
|
6
6
|
import { NamirasoftAPILinkServer, FilterLinkRow } from 'namirasoft-api-link';
|
|
7
|
-
import {
|
|
7
|
+
import { BackgroundProps } from "../props/BackgroundProps";
|
|
8
8
|
|
|
9
9
|
export interface NSHeaderProps
|
|
10
10
|
{
|
|
@@ -12,7 +12,7 @@ export interface NSHeaderProps
|
|
|
12
12
|
name: string;
|
|
13
13
|
logo: string;
|
|
14
14
|
account?: boolean;
|
|
15
|
-
background?:
|
|
15
|
+
background?: BackgroundProps;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export interface NSHeaderState
|
|
@@ -6,6 +6,8 @@ import Styles from "./NSInputDate.module.css";
|
|
|
6
6
|
export interface NSInputDateProps
|
|
7
7
|
{
|
|
8
8
|
title: string;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
export interface NSInputDateState
|
|
@@ -22,19 +24,21 @@ export class NSInputDate extends React.Component<NSInputDateProps, NSInputDateSt
|
|
|
22
24
|
};
|
|
23
25
|
this.setValue = this.setValue.bind(this);
|
|
24
26
|
this.getValue = this.getValue.bind(this);
|
|
25
|
-
this.
|
|
27
|
+
this.onChanged = this.onChanged.bind(this);
|
|
26
28
|
}
|
|
27
|
-
|
|
29
|
+
getValue(): string
|
|
28
30
|
{
|
|
29
|
-
this.
|
|
31
|
+
return this.state.value;
|
|
30
32
|
}
|
|
31
|
-
|
|
33
|
+
setValue(value: string): void
|
|
32
34
|
{
|
|
33
35
|
this.setState({ value });
|
|
34
36
|
}
|
|
35
|
-
|
|
37
|
+
private onChanged(e: React.ChangeEvent<HTMLInputElement>): void
|
|
36
38
|
{
|
|
37
|
-
|
|
39
|
+
this.setValue(e.target.value);
|
|
40
|
+
if (this.props.onChanged)
|
|
41
|
+
this.props.onChanged(e);
|
|
38
42
|
}
|
|
39
43
|
override render()
|
|
40
44
|
{
|
|
@@ -43,7 +47,7 @@ export class NSInputDate extends React.Component<NSInputDateProps, NSInputDateSt
|
|
|
43
47
|
<span className={Styles.ns_input_title}>{this.props.title}</span>
|
|
44
48
|
<input
|
|
45
49
|
value={this.state.value}
|
|
46
|
-
onChange={this.
|
|
50
|
+
onChange={this.onChanged}
|
|
47
51
|
type="date"
|
|
48
52
|
className={Styles.ns_input}
|
|
49
53
|
placeholder="YYYY/MM/DD"
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { LinkProps } from "../props/LinkProps";
|
|
4
4
|
import Styles from "./NSLinkBlue.module.css";
|
|
5
5
|
import React from "react";
|
|
6
6
|
|
|
7
|
-
export interface NSLinkBlueProps extends
|
|
7
|
+
export interface NSLinkBlueProps extends LinkProps
|
|
8
8
|
{
|
|
9
9
|
style?: React.CSSProperties;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export interface NSLinkBlueState extends
|
|
12
|
+
export interface NSLinkBlueState extends LinkProps
|
|
13
13
|
{
|
|
14
14
|
|
|
15
15
|
}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import Styles from './NSLoading.module.css';
|
|
5
5
|
import { NSSection } from './NSSection';
|
|
6
|
-
import {
|
|
6
|
+
import { BackgroundProps } from '../props/BackgroundProps';
|
|
7
7
|
|
|
8
8
|
interface NSLoadingProps
|
|
9
9
|
{
|
|
10
|
-
background?:
|
|
10
|
+
background?: BackgroundProps;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export class NSLoading extends Component<NSLoadingProps>
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
import { Component, ReactNode } from "react";
|
|
4
4
|
import Styles from './NSSection.module.css'
|
|
5
|
-
import {
|
|
5
|
+
import { BackgroundProps } from "../props/BackgroundProps";
|
|
6
6
|
|
|
7
7
|
export interface NSSectionProps
|
|
8
8
|
{
|
|
9
9
|
children: ReactNode;
|
|
10
|
-
background?:
|
|
10
|
+
background?: BackgroundProps;
|
|
11
11
|
center_items?: boolean;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export interface NSSectionState
|
|
15
15
|
{
|
|
16
|
-
background?:
|
|
16
|
+
background?: BackgroundProps;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export class NSSection extends Component<NSSectionProps, NSSectionState>
|
|
@@ -4,15 +4,16 @@ import { Component } from 'react';
|
|
|
4
4
|
import Styles from './NSSectionBars.module.css';
|
|
5
5
|
import { NSEntityBar, NSEntityBarProps } from './NSEntityBar';
|
|
6
6
|
import { NSSection } from './NSSection';
|
|
7
|
-
import {
|
|
7
|
+
import { BackgroundProps } from '../props/BackgroundProps';
|
|
8
8
|
|
|
9
9
|
export interface NSSectionBarsProps
|
|
10
10
|
{
|
|
11
|
-
background?:
|
|
11
|
+
background?: BackgroundProps;
|
|
12
12
|
bars: NSEntityBarProps[]
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export class NSSectionBars extends Component<NSSectionBarsProps>
|
|
15
|
+
export class NSSectionBars extends Component<NSSectionBarsProps>
|
|
16
|
+
{
|
|
16
17
|
override render()
|
|
17
18
|
{
|
|
18
19
|
return (
|
|
@@ -6,7 +6,7 @@ import { NSTitle } from './NSTitle';
|
|
|
6
6
|
import { NSCard, NSCardProps } from './NSCard';
|
|
7
7
|
import { NSSection } from './NSSection';
|
|
8
8
|
import { NSLinkBlue } from './NSLinkBlue';
|
|
9
|
-
import {
|
|
9
|
+
import { BackgroundProps } from '../props/BackgroundProps';
|
|
10
10
|
|
|
11
11
|
export interface NSSectionCardsProps
|
|
12
12
|
{
|
|
@@ -18,7 +18,7 @@ export interface NSSectionCardsProps
|
|
|
18
18
|
text: string,
|
|
19
19
|
color?: string
|
|
20
20
|
};
|
|
21
|
-
background?:
|
|
21
|
+
background?: BackgroundProps
|
|
22
22
|
button?: {
|
|
23
23
|
href: string;
|
|
24
24
|
title: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { Component, ReactNode } from 'react';
|
|
4
4
|
import { NSSection } from './NSSection';
|
|
5
5
|
import { NSTitle } from './NSTitle';
|
|
6
|
-
import {
|
|
6
|
+
import { BackgroundProps } from '../props/BackgroundProps';
|
|
7
7
|
|
|
8
8
|
export interface NSSectionTitleProps
|
|
9
9
|
{
|
|
@@ -11,11 +11,12 @@ export interface NSSectionTitleProps
|
|
|
11
11
|
text: string,
|
|
12
12
|
color?: string
|
|
13
13
|
};
|
|
14
|
-
background?:
|
|
14
|
+
background?: BackgroundProps
|
|
15
15
|
children: ReactNode
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export class NSSectionTitle extends Component<NSSectionTitleProps>
|
|
18
|
+
export class NSSectionTitle extends Component<NSSectionTitleProps>
|
|
19
|
+
{
|
|
19
20
|
override render()
|
|
20
21
|
{
|
|
21
22
|
return (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { NSButton } from './NSButton';
|
|
4
4
|
import { NSInputSearch } from './NSInputSearch';
|
|
5
5
|
import { NSPagination } from './NSPagination';
|
|
6
6
|
import { NSSpace, NSSpaceSizeType } from './NSSpace';
|
|
@@ -12,8 +12,8 @@ export interface NSTableProps<RowType>
|
|
|
12
12
|
columns: { [key: string]: string };
|
|
13
13
|
rows: RowType[];
|
|
14
14
|
getRowKey: (row: RowType, rowIndex: number) => string;
|
|
15
|
-
getColumnAttributes
|
|
16
|
-
getCell
|
|
15
|
+
getColumnAttributes?: (column: string, columnIndex: number) => { [key: string]: string };
|
|
16
|
+
getCell?: (row: RowType, column: string, rowIndex: number, columnIndex: number) => any;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export interface NSTableState<RowType>
|
|
@@ -41,6 +41,18 @@ export class NSTable<RowType> extends Component<NSTableProps<RowType>, NSTableSt
|
|
|
41
41
|
override render()
|
|
42
42
|
{
|
|
43
43
|
let column_keys = Object.keys(this.state.columns);
|
|
44
|
+
let getColumnAttributes = (column: string, columnIndex: number) =>
|
|
45
|
+
{
|
|
46
|
+
if (this.props.getColumnAttributes)
|
|
47
|
+
return this.props.getColumnAttributes(column, columnIndex);
|
|
48
|
+
return {};
|
|
49
|
+
}
|
|
50
|
+
let getCell = (row: RowType, column: string, rowIndex: number, columnIndex: number) =>
|
|
51
|
+
{
|
|
52
|
+
if (this.props.getCell)
|
|
53
|
+
return this.props.getCell(row, column, rowIndex, columnIndex);
|
|
54
|
+
return (row as any)[column];
|
|
55
|
+
}
|
|
44
56
|
return (
|
|
45
57
|
<div className={`container ${Styles.ns_project_list_container}`}>
|
|
46
58
|
<section className={Styles.ns_search_input}>
|
|
@@ -59,8 +71,8 @@ export class NSTable<RowType> extends Component<NSTableProps<RowType>, NSTableSt
|
|
|
59
71
|
<tr key={this.props.getRowKey(row, rowIndex)} onClick={() => this.setState({ modalState: !this.state.modalState })}>
|
|
60
72
|
{
|
|
61
73
|
column_keys.map((column, columnIndex) => (
|
|
62
|
-
<td {...
|
|
63
|
-
{
|
|
74
|
+
<td {...getColumnAttributes(column, columnIndex)} data-label={this.state.columns[column]}>
|
|
75
|
+
{getCell(row, column, rowIndex, columnIndex)}
|
|
64
76
|
</td>
|
|
65
77
|
))
|
|
66
78
|
}
|
|
@@ -72,7 +84,7 @@ export class NSTable<RowType> extends Component<NSTableProps<RowType>, NSTableSt
|
|
|
72
84
|
<section className={Styles.ns_button_group}>
|
|
73
85
|
<NSPagination size={50} page={5} />
|
|
74
86
|
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
75
|
-
<
|
|
87
|
+
<NSButton title='Export' icon={{ src: "/assets/images/export-vector.png" }} onClick={() => { }} background={{ color: "" }} border='1px solid rgba(255, 148, 50, 1)' />
|
|
76
88
|
</section>
|
|
77
89
|
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
78
90
|
<section onClick={() => this.setState({ modalState: !this.state.modalState })} className={Styles.ns_modal} style={{ display: this.state.modalState ? "block" : "none" }}>
|
package/src/main.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./components/NSButtonBlue";
|
|
2
2
|
export * from "./components/NSButtonBlueVector";
|
|
3
3
|
export * from "./components/NSButtonGreen";
|
|
4
|
-
export * from "./components/
|
|
4
|
+
export * from "./components/NSButton";
|
|
5
5
|
export * from "./components/NSButtonRed";
|
|
6
6
|
export * from "./components/NSCard";
|
|
7
7
|
export * from "./components/NSEntityCardBackground";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BackgroundProps } from "./BackgroundProps";
|
|
2
|
+
import { ImageProps } from "./ImageProps";
|
|
3
|
+
|
|
4
|
+
export interface NSButtonProps
|
|
5
|
+
{
|
|
6
|
+
title: string;
|
|
7
|
+
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
8
|
+
border?: string;
|
|
9
|
+
background?: BackgroundProps;
|
|
10
|
+
icon?: ImageProps;
|
|
11
|
+
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import Styles from './NSButtonGroup.module.css';
|
|
3
|
-
function NSButtonGroup() {
|
|
4
|
-
return (_jsxs("div", { className: Styles.ns_button_group_desktop, children: [_jsxs("button", { onClick: () => window.print(), className: Styles.ns_export_button, children: [_jsx("img", { src: "/assets/images/export-vector.png", alt: "Export Table Data", width: 13, height: 16 }), "Export"] }), _jsxs("button", { onClick: () => window.location.reload(), className: Styles.ns_refresh_button, children: [_jsx("img", { src: "/assets/images/refresh-vector.png", alt: "Refresh Table Contnet", width: 15, height: 16 }), "Refresh"] })] }));
|
|
5
|
-
}
|
|
6
|
-
export default NSButtonGroup;
|
|
7
|
-
//# sourceMappingURL=NSButtonGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NSButtonGroup.js","sourceRoot":"","sources":["../../src/components/NSButtonGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,4BAA4B,CAAA;AAC/C,SAAS,aAAa;IAElB,OAAO,CACH,eAAK,SAAS,EAAE,MAAM,CAAC,uBAAuB,aAC1C,kBAAQ,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,gBAAgB,aAAE,cAAK,GAAG,EAAC,kCAAkC,EAAC,GAAG,EAAC,mBAAmB,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,cAAe,EACvL,kBAAQ,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,iBAAiB,aAAE,cAAK,GAAG,EAAC,mCAAmC,EAAC,GAAG,EAAC,uBAAuB,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,eAAgB,IACtM,CACT,CAAC;AACN,CAAC;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.ns_button_group_desktop {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
width: 100%;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.ns_button_group_desktop button {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
font-size: 16px;
|
|
13
|
-
border-radius: 8px;
|
|
14
|
-
width: 128px;
|
|
15
|
-
height: 48px;
|
|
16
|
-
gap: 10px;
|
|
17
|
-
text-decoration: none;
|
|
18
|
-
color: black;
|
|
19
|
-
background-color: transparent;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ns_export_button {
|
|
23
|
-
border: 1px solid rgba(255, 148, 50, 1);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.ns_refresh_button {
|
|
27
|
-
border: 1px solid rgba(3, 119, 255, 1);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.ns_project img {
|
|
31
|
-
margin-right: 8px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@media only screen and (min-width:768px) {
|
|
35
|
-
.ns_button_group_desktop {
|
|
36
|
-
gap: 24px;
|
|
37
|
-
}
|
|
38
|
-
}
|
package/dist/types/Background.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Background.js","sourceRoot":"","sources":["../../src/types/Background.ts"],"names":[],"mappings":""}
|
package/dist/types/Link.js
DELETED
package/dist/types/Link.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../src/types/Link.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.ns_button_group_desktop {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
width: 100%;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.ns_button_group_desktop button {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
font-size: 16px;
|
|
13
|
-
border-radius: 8px;
|
|
14
|
-
width: 128px;
|
|
15
|
-
height: 48px;
|
|
16
|
-
gap: 10px;
|
|
17
|
-
text-decoration: none;
|
|
18
|
-
color: black;
|
|
19
|
-
background-color: transparent;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ns_export_button {
|
|
23
|
-
border: 1px solid rgba(255, 148, 50, 1);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.ns_refresh_button {
|
|
27
|
-
border: 1px solid rgba(3, 119, 255, 1);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.ns_project img {
|
|
31
|
-
margin-right: 8px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@media only screen and (min-width:768px) {
|
|
35
|
-
.ns_button_group_desktop {
|
|
36
|
-
gap: 24px;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Styles from './NSButtonGroup.module.css'
|
|
2
|
-
function NSButtonGroup()
|
|
3
|
-
{
|
|
4
|
-
return (
|
|
5
|
-
<div className={Styles.ns_button_group_desktop}>
|
|
6
|
-
<button onClick={() => window.print()} className={Styles.ns_export_button}><img src="/assets/images/export-vector.png" alt="Export Table Data" width={13} height={16} />Export</button>
|
|
7
|
-
<button onClick={() => window.location.reload()} className={Styles.ns_refresh_button}><img src="/assets/images/refresh-vector.png" alt="Refresh Table Contnet" width={15} height={16} />Refresh</button>
|
|
8
|
-
</div>
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default NSButtonGroup;
|