namirasoft-site-react 1.5.9 → 1.5.11
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/components/NSListMenu.d.ts +2 -0
- package/dist/components/NSListMenu.js +26 -9
- package/dist/components/NSListMenu.js.map +1 -1
- package/dist/components/NSReorderDialog.d.ts +30 -0
- package/dist/components/NSReorderDialog.js +73 -0
- package/dist/components/NSReorderDialog.js.map +1 -0
- package/dist/components/NSReorderDialog.module.css +50 -0
- package/dist/components/NSSortDialog.d.ts +21 -0
- package/dist/components/NSSortDialog.js +67 -0
- package/dist/components/NSSortDialog.js.map +1 -0
- package/dist/components/NSTable.d.ts +17 -1
- package/dist/components/NSTable.js +117 -39
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTable.module.css +1 -0
- package/dist/formatter/BaseColumnFormatter.d.ts +7 -0
- package/dist/formatter/BaseColumnFormatter.js +53 -0
- package/dist/formatter/BaseColumnFormatter.js.map +1 -1
- package/dist/formatter/BaseURLImageFormatter.d.ts +1 -0
- package/dist/formatter/BaseURLImageFormatter.js +3 -0
- package/dist/formatter/BaseURLImageFormatter.js.map +1 -1
- package/dist/formatter/BooleanFormatter.d.ts +1 -0
- package/dist/formatter/BooleanFormatter.js +3 -0
- package/dist/formatter/BooleanFormatter.js.map +1 -1
- package/dist/formatter/BytesFormatter.d.ts +1 -0
- package/dist/formatter/BytesFormatter.js +3 -0
- package/dist/formatter/BytesFormatter.js.map +1 -1
- package/dist/formatter/DateFormatter.d.ts +1 -0
- package/dist/formatter/DateFormatter.js +3 -0
- package/dist/formatter/DateFormatter.js.map +1 -1
- package/dist/formatter/DateTimeFormatter.d.ts +1 -0
- package/dist/formatter/DateTimeFormatter.js +3 -0
- package/dist/formatter/DateTimeFormatter.js.map +1 -1
- package/dist/formatter/DurationFormatter.d.ts +1 -0
- package/dist/formatter/DurationFormatter.js +3 -0
- package/dist/formatter/DurationFormatter.js.map +1 -1
- package/dist/formatter/EmailFormatter.d.ts +1 -0
- package/dist/formatter/EmailFormatter.js +3 -0
- package/dist/formatter/EmailFormatter.js.map +1 -1
- package/dist/formatter/EnumFormatter.d.ts +1 -0
- package/dist/formatter/EnumFormatter.js +3 -0
- package/dist/formatter/EnumFormatter.js.map +1 -1
- package/dist/formatter/FloatFormatter.d.ts +1 -0
- package/dist/formatter/FloatFormatter.js +3 -0
- package/dist/formatter/FloatFormatter.js.map +1 -1
- package/dist/formatter/IDFormatter.d.ts +1 -0
- package/dist/formatter/IDFormatter.js +3 -0
- package/dist/formatter/IDFormatter.js.map +1 -1
- package/dist/formatter/IPFormatter.d.ts +1 -0
- package/dist/formatter/IPFormatter.js +23 -0
- package/dist/formatter/IPFormatter.js.map +1 -1
- package/dist/formatter/IntegerFormatter.d.ts +1 -0
- package/dist/formatter/IntegerFormatter.js +3 -0
- package/dist/formatter/IntegerFormatter.js.map +1 -1
- package/dist/formatter/JsonFormatter.d.ts +1 -0
- package/dist/formatter/JsonFormatter.js +13 -0
- package/dist/formatter/JsonFormatter.js.map +1 -1
- package/dist/formatter/MoneyFormatter.d.ts +1 -0
- package/dist/formatter/MoneyFormatter.js +3 -0
- package/dist/formatter/MoneyFormatter.js.map +1 -1
- package/dist/formatter/PercentFormatter.d.ts +1 -0
- package/dist/formatter/PercentFormatter.js +3 -0
- package/dist/formatter/PercentFormatter.js.map +1 -1
- package/dist/formatter/PhoneFormatter.d.ts +1 -0
- package/dist/formatter/PhoneFormatter.js +3 -0
- package/dist/formatter/PhoneFormatter.js.map +1 -1
- package/dist/formatter/SensitiveFormatter.d.ts +1 -0
- package/dist/formatter/SensitiveFormatter.js +3 -0
- package/dist/formatter/SensitiveFormatter.js.map +1 -1
- package/dist/formatter/StringFormatter.d.ts +1 -0
- package/dist/formatter/StringFormatter.js +3 -0
- package/dist/formatter/StringFormatter.js.map +1 -1
- package/dist/formatter/TimeFormatter.d.ts +1 -0
- package/dist/formatter/TimeFormatter.js +3 -0
- package/dist/formatter/TimeFormatter.js.map +1 -1
- package/dist/formatter/URLFormatter.d.ts +1 -0
- package/dist/formatter/URLFormatter.js +3 -0
- package/dist/formatter/URLFormatter.js.map +1 -1
- package/dist/formatter/UnknowFormatter.d.ts +1 -0
- package/dist/formatter/UnknowFormatter.js +3 -0
- package/dist/formatter/UnknowFormatter.js.map +1 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.js +2 -1
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NSListMenu.tsx +43 -12
- package/src/components/NSReorderDialog.module.css +50 -0
- package/src/components/NSReorderDialog.tsx +155 -0
- package/src/components/NSSortDialog.tsx +125 -0
- package/src/components/NSTable.module.css +1 -0
- package/src/components/NSTable.tsx +207 -68
- package/src/formatter/BaseColumnFormatter.ts +68 -0
- package/src/formatter/BaseURLImageFormatter.tsx +4 -0
- package/src/formatter/BooleanFormatter.ts +4 -0
- package/src/formatter/BytesFormatter.tsx +4 -0
- package/src/formatter/DateFormatter.ts +4 -0
- package/src/formatter/DateTimeFormatter.ts +4 -0
- package/src/formatter/DurationFormatter.ts +4 -0
- package/src/formatter/EmailFormatter.tsx +4 -0
- package/src/formatter/EnumFormatter.ts +4 -0
- package/src/formatter/FloatFormatter.ts +4 -0
- package/src/formatter/IDFormatter.tsx +5 -1
- package/src/formatter/IPFormatter.ts +26 -0
- package/src/formatter/IntegerFormatter.ts +4 -0
- package/src/formatter/JsonFormatter.tsx +17 -0
- package/src/formatter/MoneyFormatter.ts +4 -0
- package/src/formatter/PercentFormatter.tsx +4 -0
- package/src/formatter/PhoneFormatter.tsx +4 -0
- package/src/formatter/SensitiveFormatter.tsx +4 -0
- package/src/formatter/StringFormatter.tsx +4 -0
- package/src/formatter/TimeFormatter.ts +4 -0
- package/src/formatter/URLFormatter.tsx +4 -0
- package/src/formatter/UnknowFormatter.ts +4 -0
- package/src/main.ts +2 -1
- package/dist/routing/NSRoutes.d.ts +0 -11
- package/dist/routing/NSRoutes.js +0 -14
- package/dist/routing/NSRoutes.js.map +0 -1
- package/src/routing/NSRoutes.tsx +0 -31
|
@@ -19,4 +19,8 @@ export class PhoneFormatter extends BaseColumnFormatter
|
|
|
19
19
|
image: { url: "https://static.namirasoft.com/image/concept/type/phone.png", alt: "phone" }
|
|
20
20
|
}, column, row, printable);
|
|
21
21
|
}
|
|
22
|
+
override compare(a: any, b: any): number
|
|
23
|
+
{
|
|
24
|
+
return BaseColumnFormatter.stringCompare(a, b);
|
|
25
|
+
}
|
|
22
26
|
}
|
|
@@ -22,4 +22,8 @@ export class URLFormatter extends BaseColumnFormatter
|
|
|
22
22
|
image: { url: "https://static.namirasoft.com/image/concept/type/url.png", alt: "url" }
|
|
23
23
|
}, column, row, printable);
|
|
24
24
|
}
|
|
25
|
+
override compare(a: any, b: any): number
|
|
26
|
+
{
|
|
27
|
+
return BaseColumnFormatter.stringCompare(a, b);
|
|
28
|
+
}
|
|
25
29
|
}
|
package/src/main.ts
CHANGED
|
@@ -174,6 +174,8 @@ export * from "./components/NSSpace";
|
|
|
174
174
|
|
|
175
175
|
// Table
|
|
176
176
|
export * from "./components/NSTable";
|
|
177
|
+
export * from "./components/NSReorderDialog";
|
|
178
|
+
export * from "./components/NSSortDialog";
|
|
177
179
|
|
|
178
180
|
// TabPage
|
|
179
181
|
export * from "./components/NSTabPage";
|
|
@@ -242,7 +244,6 @@ export * from "./routing/NSNotifier";
|
|
|
242
244
|
export * from "./routing/NSRouterMaker";
|
|
243
245
|
export * from "./routing/NSRouterMakerComponent";
|
|
244
246
|
export * from "./routing/NSRouterMakerProps";
|
|
245
|
-
export * from "./routing/NSRoutes";
|
|
246
247
|
|
|
247
248
|
export * from "./BrowserDetector";
|
|
248
249
|
export * from "./CopyToClipboard";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Component, ReactNode } from 'react';
|
|
2
|
-
export interface NSRoutesProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
interface NSRoutesState {
|
|
6
|
-
}
|
|
7
|
-
export declare class NSRoutes extends Component<NSRoutesProps, NSRoutesState> {
|
|
8
|
-
constructor(props: NSRoutesProps);
|
|
9
|
-
render(): import("react").JSX.Element;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
package/dist/routing/NSRoutes.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Component } from 'react';
|
|
3
|
-
import { Route, Routes } from 'react-router-dom';
|
|
4
|
-
import { NSNotFoundPage } from '../pages/NSNotFoundPage';
|
|
5
|
-
export class NSRoutes extends Component {
|
|
6
|
-
constructor(props) {
|
|
7
|
-
super(props);
|
|
8
|
-
this.state = {};
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
return (_jsxs(Routes, { children: [this.props.children, _jsx(Route, { path: "*", element: _jsx(NSNotFoundPage, {}) })] }));
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=NSRoutes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NSRoutes.js","sourceRoot":"","sources":["../../src/routing/NSRoutes.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAWzD,MAAM,OAAO,QAAS,SAAQ,SAAuC;IAEjE,YAAY,KAAoB;QAE5B,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IACpB,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,MAAC,MAAM,eACF,IAAI,CAAC,KAAK,CAAC,QAAQ,EACpB,KAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,KAAC,cAAc,KAAG,GAAI,IAC1C,CACZ,CAAC;IACN,CAAC;CACJ"}
|
package/src/routing/NSRoutes.tsx
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Component, ReactNode } from 'react';
|
|
2
|
-
import { Route, Routes } from 'react-router-dom';
|
|
3
|
-
import { NSNotFoundPage } from '../pages/NSNotFoundPage';
|
|
4
|
-
|
|
5
|
-
export interface NSRoutesProps
|
|
6
|
-
{
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface NSRoutesState
|
|
11
|
-
{
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class NSRoutes extends Component<NSRoutesProps, NSRoutesState>
|
|
15
|
-
{
|
|
16
|
-
constructor(props: NSRoutesProps)
|
|
17
|
-
{
|
|
18
|
-
super(props);
|
|
19
|
-
|
|
20
|
-
this.state = {};
|
|
21
|
-
}
|
|
22
|
-
override render()
|
|
23
|
-
{
|
|
24
|
-
return (
|
|
25
|
-
<Routes>
|
|
26
|
-
{this.props.children}
|
|
27
|
-
<Route path="*" element={<NSNotFoundPage />} />
|
|
28
|
-
</Routes>
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
}
|