namirasoft-site-react 1.3.66 → 1.3.68
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/Validator.d.ts +6 -6
- package/dist/Validator.js.map +1 -1
- package/dist/components/NSButton.d.ts +5 -5
- package/dist/components/NSButton.js.map +1 -1
- package/dist/components/NSButtonBlue.d.ts +2 -2
- package/dist/components/NSButtonBlue.js.map +1 -1
- package/dist/components/NSButtonGreen.d.ts +2 -2
- package/dist/components/NSButtonGreen.js.map +1 -1
- package/dist/components/NSButtonRed.d.ts +2 -2
- package/dist/components/NSButtonRed.js.map +1 -1
- package/dist/components/NSCard.d.ts +7 -7
- package/dist/components/NSCard.js.map +1 -1
- package/dist/components/NSCopyToClipboard.d.ts +3 -3
- package/dist/components/NSCopyToClipboard.js.map +1 -1
- package/dist/components/NSEntityBar.d.ts +5 -5
- package/dist/components/NSEntityBar.js.map +1 -1
- package/dist/components/NSEntityCardBackground.d.ts +5 -5
- package/dist/components/NSEntityCardBackground.js.map +1 -1
- package/dist/components/NSFooter.d.ts +4 -4
- package/dist/components/NSFooter.js.map +1 -1
- package/dist/components/NSHeader.d.ts +5 -5
- package/dist/components/NSHeader.js.map +1 -1
- package/dist/components/NSInputDate.d.ts +5 -5
- package/dist/components/NSInputDate.js.map +1 -1
- package/dist/components/NSInputDuration.d.ts +7 -7
- package/dist/components/NSInputDuration.js.map +1 -1
- package/dist/components/NSInputEmail.d.ts +6 -6
- package/dist/components/NSInputEmail.js.map +1 -1
- package/dist/components/NSInputErrorNotifier.d.ts +3 -3
- package/dist/components/NSInputErrorNotifier.js.map +1 -1
- package/dist/components/NSInputFloat.d.ts +6 -6
- package/dist/components/NSInputFloat.js.map +1 -1
- package/dist/components/NSInputIP.d.ts +6 -6
- package/dist/components/NSInputIP.js.map +1 -1
- package/dist/components/NSInputInteger.d.ts +6 -6
- package/dist/components/NSInputInteger.js.map +1 -1
- package/dist/components/NSInputPassword.d.ts +6 -6
- package/dist/components/NSInputPassword.js.map +1 -1
- package/dist/components/NSInputPhone.d.ts +6 -6
- package/dist/components/NSInputPhone.js.map +1 -1
- package/dist/components/NSInputPrice.d.ts +6 -6
- package/dist/components/NSInputPrice.js.map +1 -1
- package/dist/components/NSInputSearch.d.ts +6 -6
- package/dist/components/NSInputSearch.js.map +1 -1
- package/dist/components/NSInputString.d.ts +6 -6
- package/dist/components/NSInputString.js.map +1 -1
- package/dist/components/NSInputText.d.ts +6 -6
- package/dist/components/NSInputText.js.map +1 -1
- package/dist/components/NSInputTime.d.ts +6 -6
- package/dist/components/NSInputTime.js.map +1 -1
- package/dist/components/NSLayout.d.ts +5 -5
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/components/NSLayoutHeroBanner.d.ts +4 -4
- package/dist/components/NSLayoutHeroBanner.js.map +1 -1
- package/dist/components/NSLayoutTitle.d.ts +4 -4
- package/dist/components/NSLayoutTitle.js.map +1 -1
- package/dist/components/NSLink.d.ts +4 -4
- package/dist/components/NSLink.js.map +1 -1
- package/dist/components/NSLinkBlue.d.ts +2 -2
- package/dist/components/NSLinkBlue.js.map +1 -1
- package/dist/components/NSLinkGreen.d.ts +2 -2
- package/dist/components/NSLinkGreen.js.map +1 -1
- package/dist/components/NSLinkRed.d.ts +2 -2
- package/dist/components/NSLinkRed.js.map +1 -1
- package/dist/components/NSLoading.d.ts +3 -3
- package/dist/components/NSLoading.js.map +1 -1
- package/dist/components/NSNotification.d.ts +3 -3
- package/dist/components/NSNotification.js.map +1 -1
- package/dist/components/NSPagination.d.ts +3 -3
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/components/NSPanel.d.ts +3 -3
- package/dist/components/NSPanel.js.map +1 -1
- package/dist/components/NSSection.d.ts +3 -3
- package/dist/components/NSSection.js.map +1 -1
- package/dist/components/NSSectionBars.d.ts +5 -5
- package/dist/components/NSSectionBars.js.map +1 -1
- package/dist/components/NSSectionCards.d.ts +7 -7
- package/dist/components/NSSectionCards.js.map +1 -1
- package/dist/components/NSSectionTitle.d.ts +3 -3
- package/dist/components/NSSectionTitle.js.map +1 -1
- package/dist/components/NSSelectBox.d.ts +5 -5
- package/dist/components/NSSelectBox.js.map +1 -1
- package/dist/components/NSSpace.d.ts +3 -3
- package/dist/components/NSSpace.js.map +1 -1
- package/dist/components/NSTable.d.ts +4 -4
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTitle.d.ts +3 -3
- package/dist/components/NSTitle.js.map +1 -1
- package/dist/main.d.ts +12 -0
- package/dist/main.js +12 -0
- package/dist/main.js.map +1 -1
- package/dist/pages/NSLoginPage.d.ts +2 -2
- package/dist/pages/NSLoginPage.js.map +1 -1
- package/dist/props/{BaseComponentProps.d.ts → IBaseComponentProps.d.ts} +1 -1
- package/dist/props/IBaseComponentProps.js +2 -0
- package/dist/props/IBaseComponentProps.js.map +1 -0
- package/dist/props/{ImageProps.d.ts → IImageProps.d.ts} +1 -1
- package/dist/props/IImageProps.js +2 -0
- package/dist/props/IImageProps.js.map +1 -0
- package/dist/props/{LinkProps.d.ts → ILinkProps.d.ts} +1 -1
- package/dist/props/ILinkProps.js +2 -0
- package/dist/props/ILinkProps.js.map +1 -0
- package/dist/props/IValidationNumberProps.d.ts +4 -0
- package/dist/props/IValidationNumberProps.js +2 -0
- package/dist/props/IValidationNumberProps.js.map +1 -0
- package/dist/props/IValidationProps.d.ts +6 -0
- package/dist/props/IValidationProps.js +2 -0
- package/dist/props/IValidationProps.js.map +1 -0
- package/dist/props/IValidationRegexProps.d.ts +4 -0
- package/dist/props/IValidationRegexProps.js +2 -0
- package/dist/props/IValidationRegexProps.js.map +1 -0
- package/dist/props/{ValidationStringProps.d.ts → IValidationStringProps.d.ts} +1 -1
- package/dist/props/IValidationStringProps.js +2 -0
- package/dist/props/IValidationStringProps.js.map +1 -0
- package/dist/routing/INSRouterMaker.d.ts +5 -0
- package/dist/routing/INSRouterMaker.js +2 -0
- package/dist/routing/INSRouterMaker.js.map +1 -0
- package/dist/routing/INSRouterProps.d.ts +4 -0
- package/dist/routing/INSRouterProps.js +2 -0
- package/dist/routing/INSRouterProps.js.map +1 -0
- package/dist/routing/INSRouterState.d.ts +4 -0
- package/dist/routing/INSRouterState.js +2 -0
- package/dist/routing/INSRouterState.js.map +1 -0
- package/dist/routing/NSRouterMaker.d.ts +11 -0
- package/dist/routing/NSRouterMaker.js +23 -0
- package/dist/routing/NSRouterMaker.js.map +1 -0
- package/dist/routing/Notifier.d.ts +16 -0
- package/dist/routing/Notifier.js +68 -0
- package/dist/routing/Notifier.js.map +1 -0
- package/package.json +1 -1
- package/src/Validator.ts +6 -6
- package/src/components/NSButton.tsx +5 -5
- package/src/components/NSButtonBlue.tsx +2 -2
- package/src/components/NSButtonGreen.tsx +2 -2
- package/src/components/NSButtonRed.tsx +2 -2
- package/src/components/NSCard.tsx +7 -7
- package/src/components/NSCopyToClipboard.tsx +3 -3
- package/src/components/NSEntityBar.tsx +5 -5
- package/src/components/NSEntityCardBackground.tsx +5 -5
- package/src/components/NSFooter.tsx +4 -4
- package/src/components/NSHeader.tsx +6 -6
- package/src/components/NSInputDate.tsx +5 -5
- package/src/components/NSInputDuration.tsx +7 -7
- package/src/components/NSInputEmail.tsx +6 -6
- package/src/components/NSInputErrorNotifier.tsx +3 -3
- package/src/components/NSInputFloat.tsx +6 -6
- package/src/components/NSInputIP.tsx +6 -6
- package/src/components/NSInputInteger.tsx +6 -6
- package/src/components/NSInputPassword.tsx +6 -6
- package/src/components/NSInputPhone.tsx +6 -6
- package/src/components/NSInputPrice.tsx +6 -6
- package/src/components/NSInputSearch.tsx +6 -6
- package/src/components/NSInputString.tsx +6 -6
- package/src/components/NSInputText.tsx +6 -6
- package/src/components/NSInputTime.tsx +6 -6
- package/src/components/NSLayout.tsx +5 -5
- package/src/components/NSLayoutHeroBanner.tsx +4 -4
- package/src/components/NSLayoutTitle.tsx +4 -4
- package/src/components/NSLink.tsx +4 -4
- package/src/components/NSLinkBlue.tsx +2 -2
- package/src/components/NSLinkGreen.tsx +2 -2
- package/src/components/NSLinkRed.tsx +2 -2
- package/src/components/NSLoading.tsx +3 -3
- package/src/components/NSNotification.tsx +3 -3
- package/src/components/NSPagination.tsx +3 -3
- package/src/components/NSPanel.tsx +3 -3
- package/src/components/NSSection.tsx +3 -3
- package/src/components/NSSectionBars.tsx +5 -5
- package/src/components/NSSectionCards.tsx +7 -7
- package/src/components/NSSectionTitle.tsx +3 -3
- package/src/components/NSSelectBox.tsx +5 -5
- package/src/components/NSSpace.tsx +3 -3
- package/src/components/NSTable.tsx +4 -4
- package/src/components/NSTitle.tsx +3 -3
- package/src/main.ts +13 -1
- package/src/pages/NSLoginPage.tsx +2 -2
- package/src/props/{BaseComponentProps.ts → IBaseComponentProps.ts} +1 -1
- package/src/props/{ImageProps.ts → IImageProps.ts} +1 -1
- package/src/props/{LinkProps.ts → ILinkProps.ts} +1 -1
- package/src/props/IValidationNumberProps.ts +5 -0
- package/src/props/IValidationProps.ts +8 -0
- package/src/props/IValidationRegexProps.ts +5 -0
- package/src/props/{ValidationStringProps.ts → IValidationStringProps.ts} +1 -1
- package/src/routing/INSRouterMaker.ts +7 -0
- package/src/routing/INSRouterProps.ts +6 -0
- package/src/routing/INSRouterState.ts +6 -0
- package/src/routing/NSRouterMaker.tsx +34 -0
- package/src/routing/Notifier.ts +80 -0
- package/dist/props/BaseComponentProps.js +0 -2
- package/dist/props/BaseComponentProps.js.map +0 -1
- package/dist/props/ImageProps.js +0 -2
- package/dist/props/ImageProps.js.map +0 -1
- package/dist/props/LinkProps.js +0 -2
- package/dist/props/LinkProps.js.map +0 -1
- package/dist/props/ValidationNumberProps.d.ts +0 -4
- package/dist/props/ValidationNumberProps.js +0 -2
- package/dist/props/ValidationNumberProps.js.map +0 -1
- package/dist/props/ValidationProps.d.ts +0 -6
- package/dist/props/ValidationProps.js +0 -2
- package/dist/props/ValidationProps.js.map +0 -1
- package/dist/props/ValidationRegexProps.d.ts +0 -4
- package/dist/props/ValidationRegexProps.js +0 -2
- package/dist/props/ValidationRegexProps.js.map +0 -1
- package/dist/props/ValidationStringProps.js +0 -2
- package/dist/props/ValidationStringProps.js.map +0 -1
- package/src/props/ValidationNumberProps.ts +0 -5
- package/src/props/ValidationProps.ts +0 -8
- package/src/props/ValidationRegexProps.ts +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
2
|
+
export interface INSSpaceProps extends IBaseComponentProps {
|
|
3
3
|
size: NSSpaceSizeType;
|
|
4
4
|
}
|
|
5
5
|
export declare enum NSSpaceSizeType {
|
|
@@ -14,4 +14,4 @@ export declare enum NSSpaceSizeType {
|
|
|
14
14
|
XXLARGE = "96px",
|
|
15
15
|
XXXLARGE = "128px"
|
|
16
16
|
}
|
|
17
|
-
export declare function NSSpace(props:
|
|
17
|
+
export declare function NSSpace(props: INSSpaceProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSSpace.js","sourceRoot":"","sources":["../../src/components/NSSpace.tsx"],"names":[],"mappings":";AAOA,MAAM,CAAN,IAAY,eAYX;AAZD,WAAY,eAAe;IAEvB,+BAAY,CAAA;IACZ,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,iCAAc,CAAA;IACd,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,iCAAc,CAAA;IACd,kCAAe,CAAA;IACf,mCAAgB,CAAA;IAChB,qCAAkB,CAAA;AACtB,CAAC,EAZW,eAAe,KAAf,eAAe,QAY1B;AAED,MAAM,UAAU,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"NSSpace.js","sourceRoot":"","sources":["../../src/components/NSSpace.tsx"],"names":[],"mappings":";AAOA,MAAM,CAAN,IAAY,eAYX;AAZD,WAAY,eAAe;IAEvB,+BAAY,CAAA;IACZ,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,iCAAc,CAAA;IACd,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,iCAAc,CAAA;IACd,kCAAe,CAAA;IACf,mCAAgB,CAAA;IAChB,qCAAkB,CAAA;AACtB,CAAC,EAZW,eAAe,KAAf,eAAe,QAY1B;AAED,MAAM,UAAU,OAAO,CAAC,KAAoB;;IAExC,OAAO,CACH,aAAI,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAE,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EACrC,KAAK,kCAAO,KAAK,CAAC,KAAK,KAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,MAAM,CAClK,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
3
|
+
export interface INSTableProps<RowType> extends IBaseComponentProps {
|
|
4
4
|
columns: {
|
|
5
5
|
[key: string]: string;
|
|
6
6
|
};
|
|
@@ -18,8 +18,8 @@ export interface NSTableState<RowType> {
|
|
|
18
18
|
rows: RowType[];
|
|
19
19
|
modalState: boolean;
|
|
20
20
|
}
|
|
21
|
-
export declare class NSTable<RowType> extends Component<
|
|
22
|
-
constructor(props:
|
|
21
|
+
export declare class NSTable<RowType> extends Component<INSTableProps<RowType>, NSTableState<RowType>> {
|
|
22
|
+
constructor(props: INSTableProps<RowType>);
|
|
23
23
|
setColumns(columns: {
|
|
24
24
|
[key: string]: string;
|
|
25
25
|
}): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSTable.js","sourceRoot":"","sources":["../../src/components/NSTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb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AE,GAAG,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,gCAAgC,EAAE,GAAI,IACtJ,IACA,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
2
|
+
export interface INSTitleProps extends IBaseComponentProps {
|
|
3
3
|
title: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function NSTitle(props:
|
|
5
|
+
export declare function NSTitle(props: INSTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSTitle.js","sourceRoot":"","sources":["../../src/components/NSTitle.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAQ1C,MAAM,UAAU,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"NSTitle.js","sourceRoot":"","sources":["../../src/components/NSTitle.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAQ1C,MAAM,UAAU,OAAO,CAAC,KAAoB;;IAE3C,OAAO,CACN,aACC,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAC7D,KAAK,EAAE,KAAK,CAAC,KAAK,YAEjB,KAAK,CAAC,KAAK,GACR,CACL,CAAC;AACH,CAAC"}
|
package/dist/main.d.ts
CHANGED
|
@@ -41,3 +41,15 @@ export * from "./components/NSTable";
|
|
|
41
41
|
export * from "./components/NSTitle";
|
|
42
42
|
export * from "./pages/NSLoginPage";
|
|
43
43
|
export * from "./pages/NSNotFoundPage";
|
|
44
|
+
export * from "./props/IBaseComponentProps";
|
|
45
|
+
export * from "./props/IImageProps";
|
|
46
|
+
export * from "./props/ILinkProps";
|
|
47
|
+
export * from "./props/IValidationNumberProps";
|
|
48
|
+
export * from "./props/IValidationProps";
|
|
49
|
+
export * from "./props/IValidationRegexProps";
|
|
50
|
+
export * from "./props/IValidationStringProps";
|
|
51
|
+
export * from "./routing/INSRouterMaker";
|
|
52
|
+
export * from "./routing/INSRouterProps";
|
|
53
|
+
export * from "./routing/INSRouterState";
|
|
54
|
+
export * from "./routing/Notifier";
|
|
55
|
+
export * from "./routing/NSRouterMaker";
|
package/dist/main.js
CHANGED
|
@@ -41,4 +41,16 @@ export * from "./components/NSTable";
|
|
|
41
41
|
export * from "./components/NSTitle";
|
|
42
42
|
export * from "./pages/NSLoginPage";
|
|
43
43
|
export * from "./pages/NSNotFoundPage";
|
|
44
|
+
export * from "./props/IBaseComponentProps";
|
|
45
|
+
export * from "./props/IImageProps";
|
|
46
|
+
export * from "./props/ILinkProps";
|
|
47
|
+
export * from "./props/IValidationNumberProps";
|
|
48
|
+
export * from "./props/IValidationProps";
|
|
49
|
+
export * from "./props/IValidationRegexProps";
|
|
50
|
+
export * from "./props/IValidationStringProps";
|
|
51
|
+
export * from "./routing/INSRouterMaker";
|
|
52
|
+
export * from "./routing/INSRouterProps";
|
|
53
|
+
export * from "./routing/INSRouterState";
|
|
54
|
+
export * from "./routing/Notifier";
|
|
55
|
+
export * from "./routing/NSRouterMaker";
|
|
44
56
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,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,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,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,6BAA6B,CAAC;AAC5C,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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cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface INSLoginPageProps {
|
|
2
2
|
title: string;
|
|
3
3
|
logo: string;
|
|
4
4
|
background: string;
|
|
5
5
|
href?: string;
|
|
6
6
|
onClick?: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare function NSLoginPage(props:
|
|
8
|
+
export declare function NSLoginPage(props: INSLoginPageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLoginPage.js","sourceRoot":"","sources":["../../src/pages/NSLoginPage.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAWjE,MAAM,UAAU,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"NSLoginPage.js","sourceRoot":"","sources":["../../src/pages/NSLoginPage.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;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AC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IBaseComponentProps.js","sourceRoot":"","sources":["../../src/props/IBaseComponentProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IImageProps.js","sourceRoot":"","sources":["../../src/props/IImageProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ILinkProps.js","sourceRoot":"","sources":["../../src/props/ILinkProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IValidationNumberProps.js","sourceRoot":"","sources":["../../src/props/IValidationNumberProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IValidationProps.js","sourceRoot":"","sources":["../../src/props/IValidationProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IValidationRegexProps.js","sourceRoot":"","sources":["../../src/props/IValidationRegexProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IValidationStringProps.js","sourceRoot":"","sources":["../../src/props/IValidationStringProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INSRouterMaker.js","sourceRoot":"","sources":["../../src/routing/INSRouterMaker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INSRouterProps.js","sourceRoot":"","sources":["../../src/routing/INSRouterProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INSRouterState.js","sourceRoot":"","sources":["../../src/routing/INSRouterState.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { INSRouterMaker } from './INSRouterMaker';
|
|
3
|
+
import { INSRouterState } from './INSRouterState';
|
|
4
|
+
export declare class NSRouterMaker {
|
|
5
|
+
private state;
|
|
6
|
+
private setState;
|
|
7
|
+
private component;
|
|
8
|
+
constructor(state: INSRouterState | undefined, setState: React.Dispatch<React.SetStateAction<INSRouterState | undefined>>, component: INSRouterMaker);
|
|
9
|
+
private init;
|
|
10
|
+
onRender(): React.JSX.Element;
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Notifier } from './Notifier';
|
|
2
|
+
export class NSRouterMaker {
|
|
3
|
+
constructor(state, setState, component) {
|
|
4
|
+
this.state = state;
|
|
5
|
+
this.setState = setState;
|
|
6
|
+
this.component = component;
|
|
7
|
+
this.init = this.init.bind(this);
|
|
8
|
+
this.onRender = this.onRender.bind(this);
|
|
9
|
+
}
|
|
10
|
+
init() {
|
|
11
|
+
let notifier = new Notifier(this.state, this.setState);
|
|
12
|
+
let props = {
|
|
13
|
+
notifier
|
|
14
|
+
};
|
|
15
|
+
return { props };
|
|
16
|
+
}
|
|
17
|
+
onRender() {
|
|
18
|
+
let { props } = this.init();
|
|
19
|
+
return this.component.onRender(props);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
;
|
|
23
|
+
//# sourceMappingURL=NSRouterMaker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSRouterMaker.js","sourceRoot":"","sources":["../../src/routing/NSRouterMaker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,OAAO,aAAa;IAKtB,YAAY,KAAiC,EAAE,QAA0E,EAAE,SAAyB;QAEhJ,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IACO,IAAI;QAER,IAAI,QAAQ,GAAa,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEjE,IAAI,KAAK,GAAmB;YACxB,QAAQ;SACX,CAAC;QAEF,OAAO,EAAE,KAAK,EAAE,CAAC;IACrB,CAAC;IACD,QAAQ;QAEJ,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;CACJ;AAAA,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { INSNotificationProps } from "../components/NSNotification";
|
|
3
|
+
import { INSRouterState } from "./INSRouterState";
|
|
4
|
+
export declare class Notifier {
|
|
5
|
+
private static Counter;
|
|
6
|
+
private state;
|
|
7
|
+
private setState;
|
|
8
|
+
constructor(state: INSRouterState | undefined, setState: React.Dispatch<React.SetStateAction<INSRouterState | undefined>>);
|
|
9
|
+
private notify;
|
|
10
|
+
onInformation(text: string): void;
|
|
11
|
+
onSuccess(text: string): void;
|
|
12
|
+
onWarning(text: string): void;
|
|
13
|
+
onError(error: Error | string): void;
|
|
14
|
+
delNotification(id: string): void;
|
|
15
|
+
getNotifications(): INSNotificationProps[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import axios from "axios";
|
|
2
|
+
import { NSNotificationColor, NotificationType } from "../components/NSNotification";
|
|
3
|
+
export class Notifier {
|
|
4
|
+
constructor(state, setState) {
|
|
5
|
+
this.state = state;
|
|
6
|
+
this.setState = setState;
|
|
7
|
+
this.notify = this.notify.bind(this);
|
|
8
|
+
this.onInformation = this.onInformation.bind(this);
|
|
9
|
+
this.onSuccess = this.onSuccess.bind(this);
|
|
10
|
+
this.onWarning = this.onWarning.bind(this);
|
|
11
|
+
this.onError = this.onError.bind(this);
|
|
12
|
+
this.delNotification = this.delNotification.bind(this);
|
|
13
|
+
this.getNotifications = this.getNotifications.bind(this);
|
|
14
|
+
}
|
|
15
|
+
notify(message) {
|
|
16
|
+
var _a;
|
|
17
|
+
let notifications = [];
|
|
18
|
+
if ((_a = this.state) === null || _a === void 0 ? void 0 : _a.notifications)
|
|
19
|
+
notifications.push(...this.state.notifications);
|
|
20
|
+
notifications.push(message);
|
|
21
|
+
this.setState({ notifications });
|
|
22
|
+
setTimeout(() => {
|
|
23
|
+
message.onClose();
|
|
24
|
+
}, 5000);
|
|
25
|
+
window.scrollTo({ top: 0, left: 0, behavior: 'smooth' });
|
|
26
|
+
}
|
|
27
|
+
onInformation(text) {
|
|
28
|
+
let id = Notifier.Counter++ + "";
|
|
29
|
+
this.notify({ id, text, type: NotificationType.Information, color: NSNotificationColor.GRAY, onClose: () => this.delNotification(id) });
|
|
30
|
+
}
|
|
31
|
+
onSuccess(text) {
|
|
32
|
+
let id = Notifier.Counter++ + "";
|
|
33
|
+
this.notify({ id, text, type: NotificationType.Success, color: NSNotificationColor.GREEN, onClose: () => this.delNotification(id) });
|
|
34
|
+
}
|
|
35
|
+
onWarning(text) {
|
|
36
|
+
let id = Notifier.Counter++ + "";
|
|
37
|
+
this.notify({ id, text, type: NotificationType.Warning, color: NSNotificationColor.YELLOW, onClose: () => this.delNotification(id) });
|
|
38
|
+
}
|
|
39
|
+
onError(error) {
|
|
40
|
+
var _a;
|
|
41
|
+
let id = Notifier.Counter++ + "";
|
|
42
|
+
let text = "";
|
|
43
|
+
if (error instanceof Error) {
|
|
44
|
+
text = error.message;
|
|
45
|
+
if (axios.isAxiosError(error))
|
|
46
|
+
if ((_a = error.response) === null || _a === void 0 ? void 0 : _a.data)
|
|
47
|
+
text = error.response.data;
|
|
48
|
+
}
|
|
49
|
+
else
|
|
50
|
+
text = error;
|
|
51
|
+
this.notify({ id, text, type: NotificationType.Error, color: NSNotificationColor.RED, onClose: () => this.delNotification(id) });
|
|
52
|
+
}
|
|
53
|
+
delNotification(id) {
|
|
54
|
+
if (!this.state)
|
|
55
|
+
return;
|
|
56
|
+
let notifications = [];
|
|
57
|
+
if (this.state.notifications)
|
|
58
|
+
notifications.push(...this.state.notifications);
|
|
59
|
+
notifications = notifications.filter(x => x.id !== id);
|
|
60
|
+
this.setState({ notifications });
|
|
61
|
+
}
|
|
62
|
+
getNotifications() {
|
|
63
|
+
var _a, _b;
|
|
64
|
+
return (_b = (_a = this.state) === null || _a === void 0 ? void 0 : _a.notifications) !== null && _b !== void 0 ? _b : [];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
Notifier.Counter = 1;
|
|
68
|
+
//# sourceMappingURL=Notifier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notifier.js","sourceRoot":"","sources":["../../src/routing/Notifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAwB,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAG3G,MAAM,OAAO,QAAQ;IAKjB,YAAY,KAAiC,EAAE,QAA0E;QAErH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,I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AAC,EAAU;QAEtB,IAAI,CAAC,IAAI,CAAC,KAAK;YACX,OAAO;QAEX,IAAI,aAAa,GAA2B,EAAE,CAAC;QAC/C,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa;YACxB,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACpD,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACvD,IAAI,CAAC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC;IACrC,CAAC;IACD,gBAAgB;;QAEZ,OAAO,MAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,aAAa,mCAAI,EAAE,CAAC;IAC3C,CAAC;;AAxEc,gBAAO,GAAW,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/Validator.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PhoneOperation, RegexTemplate } from "namirasoft-core";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { IValidationNumberProps } from "./props/IValidationNumberProps";
|
|
3
|
+
import { IValidationProps } from "./props/IValidationProps";
|
|
4
|
+
import { IValidationStringProps } from "./props/IValidationStringProps";
|
|
5
5
|
|
|
6
6
|
export class Validator
|
|
7
7
|
{
|
|
8
|
-
static getError(name: string, value: string | number | null | undefined, validator:
|
|
8
|
+
static getError(name: string, value: string | number | null | undefined, validator: IValidationProps): string | null
|
|
9
9
|
{
|
|
10
10
|
if (validator.required)
|
|
11
11
|
if (!value)
|
|
@@ -23,7 +23,7 @@ export class Validator
|
|
|
23
23
|
}
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
|
-
static getErrorString(name: string, value: string | null | undefined, validator:
|
|
26
|
+
static getErrorString(name: string, value: string | null | undefined, validator: IValidationStringProps): string | null
|
|
27
27
|
{
|
|
28
28
|
if (value != null)
|
|
29
29
|
{
|
|
@@ -36,7 +36,7 @@ export class Validator
|
|
|
36
36
|
}
|
|
37
37
|
return null;
|
|
38
38
|
}
|
|
39
|
-
static getErrorNumber(name: string, value: number | null | undefined, validator:
|
|
39
|
+
static getErrorNumber(name: string, value: number | null | undefined, validator: IValidationNumberProps): string | null
|
|
40
40
|
{
|
|
41
41
|
if (value != null)
|
|
42
42
|
{
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
2
|
+
import { IImageProps } from "../props/IImageProps";
|
|
3
3
|
import Styles from "./NSButton.module.css";
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface INSButtonProps extends IBaseComponentProps
|
|
6
6
|
{
|
|
7
7
|
title: string;
|
|
8
|
-
icon?:
|
|
8
|
+
icon?: IImageProps;
|
|
9
9
|
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export default function NSButton(props:
|
|
12
|
+
export default function NSButton(props: INSButtonProps)
|
|
13
13
|
{
|
|
14
14
|
return (
|
|
15
15
|
<button id={props.id}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import NSButton from "./NSButton";
|
|
2
2
|
import Style from "./NSButtonBlue.module.css";
|
|
3
|
-
import {
|
|
3
|
+
import { INSButtonProps } from "./NSButton";
|
|
4
4
|
|
|
5
|
-
export function NSButtonBlue(props:
|
|
5
|
+
export function NSButtonBlue(props: INSButtonProps)
|
|
6
6
|
{
|
|
7
7
|
let classList = []
|
|
8
8
|
if (props.classList)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import NSButton from "./NSButton";
|
|
2
2
|
import Style from "./NSButtonGreen.module.css";
|
|
3
|
-
import {
|
|
3
|
+
import { INSButtonProps } from "./NSButton";
|
|
4
4
|
|
|
5
|
-
export function NSButtonGreen(props:
|
|
5
|
+
export function NSButtonGreen(props: INSButtonProps)
|
|
6
6
|
{
|
|
7
7
|
let classList = []
|
|
8
8
|
if (props.classList)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import NSButton from "./NSButton";
|
|
2
2
|
import Style from "./NSButtonGreen.module.css";
|
|
3
|
-
import {
|
|
3
|
+
import { INSButtonProps } from "./NSButton";
|
|
4
4
|
|
|
5
|
-
export function NSButtonRed(props:
|
|
5
|
+
export function NSButtonRed(props: INSButtonProps)
|
|
6
6
|
{
|
|
7
7
|
let classList = []
|
|
8
8
|
if (props.classList)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Styles from './NSCard.module.css'
|
|
2
2
|
import { NSLinkBlue } from './NSLinkBlue';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { ILinkProps } from '../props/ILinkProps';
|
|
4
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
5
|
+
import { IImageProps } from '../props/IImageProps';
|
|
6
6
|
|
|
7
|
-
export interface
|
|
7
|
+
export interface INSCardProps extends IBaseComponentProps
|
|
8
8
|
{
|
|
9
9
|
title?: string;
|
|
10
10
|
headline?: {
|
|
@@ -12,11 +12,11 @@ export interface NSCardProps extends BaseComponentProps
|
|
|
12
12
|
text: string;
|
|
13
13
|
}
|
|
14
14
|
description?: string;
|
|
15
|
-
image:
|
|
16
|
-
link?:
|
|
15
|
+
image: IImageProps;
|
|
16
|
+
link?: ILinkProps;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export function NSCard(props:
|
|
19
|
+
export function NSCard(props: INSCardProps)
|
|
20
20
|
{
|
|
21
21
|
return (
|
|
22
22
|
<article id={props.id}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import Styles from "./NSCopyToClipboard.module.css";
|
|
2
2
|
import IconInputString from '../assets/images/icon-input-copy.svg';
|
|
3
|
-
import {
|
|
3
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface INSCopyToClipboardProps extends IBaseComponentProps
|
|
6
6
|
{
|
|
7
7
|
title: string;
|
|
8
8
|
value: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export function NSCopyToClipboard(props:
|
|
11
|
+
export function NSCopyToClipboard(props: INSCopyToClipboardProps)
|
|
12
12
|
{
|
|
13
13
|
function copyToClipboard(): void
|
|
14
14
|
{
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import Styles from './NSEntityBar.module.css'
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
3
|
+
import { IImageProps } from '../props/IImageProps';
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface INSEntityBarProps extends IBaseComponentProps
|
|
6
6
|
{
|
|
7
7
|
title: string;
|
|
8
8
|
description: string;
|
|
9
|
-
image:
|
|
9
|
+
image: IImageProps;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export function NSEntityBar(props:
|
|
12
|
+
export function NSEntityBar(props: INSEntityBarProps)
|
|
13
13
|
{
|
|
14
14
|
return (
|
|
15
15
|
<article id={props.id}
|