namirasoft-site-react 1.3.402 → 1.3.404

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.
Files changed (87) hide show
  1. package/dist/App.js +3 -3
  2. package/dist/App.js.map +1 -1
  3. package/dist/CopyToClipboard.d.ts +1 -1
  4. package/dist/CopyToClipboard.js +1 -1
  5. package/dist/CopyToClipboard.js.map +1 -1
  6. package/dist/components/NSAssistantButton.d.ts +1 -2
  7. package/dist/components/NSAssistantButton.js +3 -4
  8. package/dist/components/NSAssistantButton.js.map +1 -1
  9. package/dist/components/NSBoxEmail.d.ts +0 -1
  10. package/dist/components/NSBoxEmail.js +3 -4
  11. package/dist/components/NSBoxEmail.js.map +1 -1
  12. package/dist/components/NSBoxOTP.d.ts +3 -3
  13. package/dist/components/NSBoxOTP.js +1 -2
  14. package/dist/components/NSBoxOTP.js.map +1 -1
  15. package/dist/components/NSBoxSearch.js +2 -2
  16. package/dist/components/NSBoxSearch.js.map +1 -1
  17. package/dist/components/NSBoxString.js +3 -3
  18. package/dist/components/NSBoxString.js.map +1 -1
  19. package/dist/components/NSButton.d.ts +1 -1
  20. package/dist/components/NSButton.js +1 -1
  21. package/dist/components/NSButton.js.map +1 -1
  22. package/dist/components/NSButtonBlue.js +1 -1
  23. package/dist/components/NSButtonBlue.js.map +1 -1
  24. package/dist/components/NSButtonGreen.js +1 -1
  25. package/dist/components/NSButtonGreen.js.map +1 -1
  26. package/dist/components/NSButtonRed.js +1 -1
  27. package/dist/components/NSButtonRed.js.map +1 -1
  28. package/dist/components/NSDialog.d.ts +2 -3
  29. package/dist/components/NSDialog.js +1 -2
  30. package/dist/components/NSDialog.js.map +1 -1
  31. package/dist/components/NSElectronicCard.d.ts +1 -2
  32. package/dist/components/NSElectronicCard.js +1 -2
  33. package/dist/components/NSElectronicCard.js.map +1 -1
  34. package/dist/components/NSFilterBox.d.ts +1 -1
  35. package/dist/components/NSFilterBox.js +3 -3
  36. package/dist/components/NSFilterBox.js.map +1 -1
  37. package/dist/components/NSGroupedList.d.ts +2 -2
  38. package/dist/components/NSGroupedList.js +1 -1
  39. package/dist/components/NSGroupedList.js.map +1 -1
  40. package/dist/components/NSInfoDialog.d.ts +1 -1
  41. package/dist/components/NSInfoDialog.js +3 -2
  42. package/dist/components/NSInfoDialog.js.map +1 -1
  43. package/dist/components/NSPageSelectionModal.d.ts +1 -1
  44. package/dist/components/NSPageSelectionModal.js +2 -4
  45. package/dist/components/NSPageSelectionModal.js.map +1 -1
  46. package/dist/components/NSProductList.js +1 -1
  47. package/dist/components/NSProductList.js.map +1 -1
  48. package/dist/components/NSTable.d.ts +2 -2
  49. package/dist/components/NSTable.js +6 -6
  50. package/dist/components/NSTable.js.map +1 -1
  51. package/dist/components/NSTag.d.ts +1 -2
  52. package/dist/components/NSTag.js +2 -3
  53. package/dist/components/NSTag.js.map +1 -1
  54. package/dist/components/NSVerification.d.ts +4 -3
  55. package/dist/components/NSVerification.js +3 -4
  56. package/dist/components/NSVerification.js.map +1 -1
  57. package/dist/formatter/BackColorFormatter.d.ts +1 -1
  58. package/dist/formatter/BaseColumnFormatter.d.ts +1 -1
  59. package/dist/formatter/ForeColorFormatter.d.ts +1 -1
  60. package/dist/pages/NSNotFoundPage.js +1 -1
  61. package/dist/pages/NSNotFoundPage.js.map +1 -1
  62. package/package.json +1 -1
  63. package/src/App.tsx +3 -3
  64. package/src/CopyToClipboard.ts +1 -1
  65. package/src/components/NSAssistantButton.tsx +4 -6
  66. package/src/components/NSBoxEmail.tsx +4 -7
  67. package/src/components/NSBoxOTP.tsx +3 -5
  68. package/src/components/NSBoxSearch.tsx +2 -3
  69. package/src/components/NSBoxString.tsx +3 -4
  70. package/src/components/NSButton.tsx +1 -1
  71. package/src/components/NSButtonBlue.tsx +1 -2
  72. package/src/components/NSButtonGreen.tsx +1 -2
  73. package/src/components/NSButtonRed.tsx +1 -2
  74. package/src/components/NSDialog.tsx +3 -5
  75. package/src/components/NSElectronicCard.tsx +2 -4
  76. package/src/components/NSFilterBox.tsx +4 -5
  77. package/src/components/NSGroupedList.tsx +2 -2
  78. package/src/components/NSInfoDialog.tsx +3 -2
  79. package/src/components/NSPageSelectionModal.tsx +3 -6
  80. package/src/components/NSProductList.tsx +1 -1
  81. package/src/components/NSTable.tsx +7 -8
  82. package/src/components/NSTag.tsx +60 -61
  83. package/src/components/NSVerification.tsx +6 -7
  84. package/src/formatter/BackColorFormatter.tsx +1 -1
  85. package/src/formatter/BaseColumnFormatter.ts +1 -1
  86. package/src/formatter/ForeColorFormatter.tsx +1 -1
  87. package/src/pages/NSNotFoundPage.tsx +1 -1
@@ -1,75 +1,74 @@
1
1
  import { Component, createRef } from 'react';
2
2
  import { NSBoxString } from './NSBoxString';
3
- import NSButton from './NSButton';
3
+ import { NSButton } from './NSButton';
4
4
  import Styles from './NSTag.module.css';
5
5
 
6
6
  export interface NSTagProps
7
7
  {
8
- onChanged?: () => void;
9
- onDeleted?: () => void;
8
+ onChanged?: () => void;
9
+ onDeleted?: () => void;
10
10
  }
11
11
  export interface NSTagValue
12
12
  {
13
- name: string;
14
- value: string;
15
- description?: string;
13
+ name: string;
14
+ value: string;
15
+ description?: string;
16
16
  }
17
17
 
18
- class NSTag extends Component<NSTagProps>
18
+ export class NSTag extends Component<NSTagProps>
19
19
  {
20
- static isEmpty(value: NSTagValue)
21
- {
22
- if (value.name || value.value || value.description)
23
- return false
24
- return true;
25
- }
20
+ static isEmpty(value: NSTagValue)
21
+ {
22
+ if (value.name || value.value || value.description)
23
+ return false
24
+ return true;
25
+ }
26
26
 
27
- private NSBoxString_Key = createRef<NSBoxString>();
28
- private NSBoxString_Value = createRef<NSBoxString>();
29
- private NSBoxString_Description = createRef<NSBoxString>();
27
+ private NSBoxString_Key = createRef<NSBoxString>();
28
+ private NSBoxString_Value = createRef<NSBoxString>();
29
+ private NSBoxString_Description = createRef<NSBoxString>();
30
30
 
31
- getValue(checkError: boolean = true): NSTagValue
32
- {
33
- let name = this.NSBoxString_Key.current?.getValue(checkError) ?? "";
34
- let value = this.NSBoxString_Value.current?.getValue(checkError) ?? "";
35
- let description = this.NSBoxString_Description.current?.getValue(checkError) ?? "";
36
- return {
37
- name,
38
- value,
39
- description
40
- };
41
- }
42
- setValue(value: NSTagValue)
43
- {
44
- this.NSBoxString_Key.current?.setValue(value.name);
45
- this.NSBoxString_Value.current?.setValue(value.value);
46
- this.NSBoxString_Description.current?.setValue(value.description ?? "");
47
- }
48
- override render()
49
- {
50
- return (
51
- <section className={Styles.ns_tag_input_container} >
52
- <div className={Styles.ns_tag_input_group}>
53
- <NSBoxString ref={this.NSBoxString_Key} title='Name' required onChanged={this.props.onChanged} />
54
- <NSBoxString ref={this.NSBoxString_Value} title='Value' required onChanged={this.props.onChanged} />
55
- <NSBoxString ref={this.NSBoxString_Description} title='Description' required={false} onChanged={this.props.onChanged} />
56
- <NSButton
57
- title='Remove'
58
- onClick={() =>
59
- {
60
- if (this.props.onDeleted)
61
- this.props.onDeleted();
62
- }}
63
- style={{
64
- backgroundColor: "transparent",
65
- border: "1px solid rgba(3, 119, 255, 1)",
66
- width: "145px",
67
- marginTop: "28px"
68
- }}
69
- />
70
- </div>
71
- </section>
72
- );
73
- }
74
- }
75
- export default NSTag;
31
+ getValue(checkError: boolean = true): NSTagValue
32
+ {
33
+ let name = this.NSBoxString_Key.current?.getValue(checkError) ?? "";
34
+ let value = this.NSBoxString_Value.current?.getValue(checkError) ?? "";
35
+ let description = this.NSBoxString_Description.current?.getValue(checkError) ?? "";
36
+ return {
37
+ name,
38
+ value,
39
+ description
40
+ };
41
+ }
42
+ setValue(value: NSTagValue)
43
+ {
44
+ this.NSBoxString_Key.current?.setValue(value.name);
45
+ this.NSBoxString_Value.current?.setValue(value.value);
46
+ this.NSBoxString_Description.current?.setValue(value.description ?? "");
47
+ }
48
+ override render()
49
+ {
50
+ return (
51
+ <section className={Styles.ns_tag_input_container} >
52
+ <div className={Styles.ns_tag_input_group}>
53
+ <NSBoxString ref={this.NSBoxString_Key} title='Name' required onChanged={this.props.onChanged} />
54
+ <NSBoxString ref={this.NSBoxString_Value} title='Value' required onChanged={this.props.onChanged} />
55
+ <NSBoxString ref={this.NSBoxString_Description} title='Description' required={false} onChanged={this.props.onChanged} />
56
+ <NSButton
57
+ title='Remove'
58
+ onClick={() =>
59
+ {
60
+ if (this.props.onDeleted)
61
+ this.props.onDeleted();
62
+ }}
63
+ style={{
64
+ backgroundColor: "transparent",
65
+ border: "1px solid rgba(3, 119, 255, 1)",
66
+ width: "145px",
67
+ marginTop: "28px"
68
+ }}
69
+ />
70
+ </div>
71
+ </section>
72
+ );
73
+ }
74
+ }
@@ -1,8 +1,9 @@
1
1
  import React, { useState } from "react";
2
- import vector from '../assets/images/verify.png'
3
- import { IBaseComponentProps, IImageProps } from '../main';
4
- import NSBoxOTP from './NSBoxOTP';
2
+ import { IBaseComponentProps } from '../props/IBaseComponentProps';
3
+ import { IImageProps } from '../props/IImageProps';
4
+ import { NSBoxOTP } from './NSBoxOTP';
5
5
  import Styles from './NSVerification.module.css'
6
+ import vector from '../assets/images/verify.png'
6
7
 
7
8
  interface INSVerificationProps extends IBaseComponentProps {
8
9
  verificationType : string;
@@ -12,7 +13,7 @@ interface INSVerificationProps extends IBaseComponentProps {
12
13
 
13
14
 
14
15
 
15
- function NSVerification(props:INSVerificationProps) {
16
+ export function NSVerification(props:INSVerificationProps) {
16
17
  const [values, setValue] = useState<string>('')
17
18
 
18
19
  function onChanged(event: React.ChangeEvent<HTMLInputElement>): string | undefined
@@ -37,6 +38,4 @@ function NSVerification(props:INSVerificationProps) {
37
38
  <NSBoxOTP onChanged={onChanged}/>
38
39
  </div>
39
40
  );
40
- }
41
-
42
- export default NSVerification;
41
+ }
@@ -1,4 +1,4 @@
1
- import { TableColumnInfo, TableRowInfo } from "../main";
1
+ import { TableColumnInfo, TableRowInfo } from "../components/NSTable";
2
2
  import { BaseColumnFormatter } from "./BaseColumnFormatter";
3
3
 
4
4
  export class BackColorFormatter extends BaseColumnFormatter
@@ -1,5 +1,5 @@
1
1
  import { BaseMetaColumn } from "namirasoft-core";
2
- import { TableColumnInfo, TableRowInfo } from "../main";
2
+ import { TableColumnInfo, TableRowInfo } from "../components/NSTable";
3
3
 
4
4
  export abstract class BaseColumnFormatter
5
5
  {
@@ -1,4 +1,4 @@
1
- import { TableColumnInfo, TableRowInfo } from "../main";
1
+ import { TableColumnInfo, TableRowInfo } from "../components/NSTable";
2
2
  import { BaseColumnFormatter } from "./BaseColumnFormatter";
3
3
 
4
4
  export class ForeColorFormatter extends BaseColumnFormatter
@@ -1,5 +1,5 @@
1
+ import { NSLinkBlue } from '../components/NSLinkBlue';
1
2
  import Styles from './NSNotFoundPage.module.css'
2
- import { NSLinkBlue } from '../main';
3
3
 
4
4
  export function NSNotFoundPage()
5
5
  {