namirasoft-site-react 1.3.310 → 1.3.313

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 (268) hide show
  1. package/.dockerignore +87 -0
  2. package/Dockerfile +19 -0
  3. package/dist/App.d.ts +9 -0
  4. package/dist/App.js +96 -0
  5. package/dist/App.js.map +1 -0
  6. package/dist/CopyToClipboard.d.ts +3 -0
  7. package/dist/CopyToClipboard.js +7 -0
  8. package/dist/CopyToClipboard.js.map +1 -0
  9. package/dist/Validator.d.ts +14 -0
  10. package/dist/Validator.js +94 -0
  11. package/dist/Validator.js.map +1 -0
  12. package/dist/components/NSActionMenu.d.ts +14 -0
  13. package/dist/components/NSActionMenu.js +33 -0
  14. package/dist/components/NSActionMenu.js.map +1 -0
  15. package/dist/components/NSAssistantButton.d.ts +6 -0
  16. package/dist/components/NSAssistantButton.js +20 -0
  17. package/dist/components/NSAssistantButton.js.map +1 -0
  18. package/dist/components/NSBarAction.d.ts +12 -0
  19. package/dist/components/NSBarAction.js +20 -0
  20. package/dist/components/NSBarAction.js.map +1 -0
  21. package/dist/components/NSBarHeroBanner.d.ts +7 -0
  22. package/dist/components/NSBarHeroBanner.js +8 -0
  23. package/dist/components/NSBarHeroBanner.js.map +1 -0
  24. package/dist/components/NSBarNotification.d.ts +21 -0
  25. package/dist/components/NSBarNotification.js +37 -0
  26. package/dist/components/NSBarNotification.js.map +1 -0
  27. package/dist/components/NSBarTitle.d.ts +5 -0
  28. package/dist/components/NSBarTitle.js +11 -0
  29. package/dist/components/NSBarTitle.js.map +1 -0
  30. package/dist/components/NSBoxBoolean.d.ts +23 -0
  31. package/dist/components/NSBoxBoolean.js +40 -0
  32. package/dist/components/NSBoxBoolean.js.map +1 -0
  33. package/dist/components/NSBoxCombo.d.ts +33 -0
  34. package/dist/components/NSBoxCombo.js +65 -0
  35. package/dist/components/NSBoxCombo.js.map +1 -0
  36. package/dist/components/NSBoxDate.d.ts +22 -0
  37. package/dist/components/NSBoxDate.js +42 -0
  38. package/dist/components/NSBoxDate.js.map +1 -0
  39. package/dist/components/NSBoxDateTime.d.ts +22 -0
  40. package/dist/components/NSBoxDateTime.js +42 -0
  41. package/dist/components/NSBoxDateTime.js.map +1 -0
  42. package/dist/components/NSBoxDouble.d.ts +23 -0
  43. package/dist/components/NSBoxDouble.js +42 -0
  44. package/dist/components/NSBoxDouble.js.map +1 -0
  45. package/dist/components/NSBoxDuration.d.ts +24 -0
  46. package/dist/components/NSBoxDuration.js +43 -0
  47. package/dist/components/NSBoxDuration.js.map +1 -0
  48. package/dist/components/NSBoxEmail.d.ts +25 -0
  49. package/dist/components/NSBoxEmail.js +50 -0
  50. package/dist/components/NSBoxEmail.js.map +1 -0
  51. package/dist/components/NSBoxEntity.d.ts +42 -0
  52. package/dist/components/NSBoxEntity.js +86 -0
  53. package/dist/components/NSBoxEntity.js.map +1 -0
  54. package/dist/components/NSBoxEnum.d.ts +19 -0
  55. package/dist/components/NSBoxEnum.js +46 -0
  56. package/dist/components/NSBoxEnum.js.map +1 -0
  57. package/dist/components/NSBoxErrorNotifier.d.ts +6 -0
  58. package/dist/components/NSBoxErrorNotifier.js +11 -0
  59. package/dist/components/NSBoxErrorNotifier.js.map +1 -0
  60. package/dist/components/NSBoxIPV4.d.ts +23 -0
  61. package/dist/components/NSBoxIPV4.js +45 -0
  62. package/dist/components/NSBoxIPV4.js.map +1 -0
  63. package/dist/components/NSBoxIPV6.d.ts +23 -0
  64. package/dist/components/NSBoxIPV6.js +45 -0
  65. package/dist/components/NSBoxIPV6.js.map +1 -0
  66. package/dist/components/NSBoxInteger.d.ts +23 -0
  67. package/dist/components/NSBoxInteger.js +42 -0
  68. package/dist/components/NSBoxInteger.js.map +1 -0
  69. package/dist/components/NSBoxLabel.d.ts +12 -0
  70. package/dist/components/NSBoxLabel.js +11 -0
  71. package/dist/components/NSBoxLabel.js.map +1 -0
  72. package/dist/components/NSBoxOTP.d.ts +9 -0
  73. package/dist/components/NSBoxOTP.js +34 -0
  74. package/dist/components/NSBoxOTP.js.map +1 -0
  75. package/dist/components/NSBoxPassword.d.ts +23 -0
  76. package/dist/components/NSBoxPassword.js +43 -0
  77. package/dist/components/NSBoxPassword.js.map +1 -0
  78. package/dist/components/NSBoxPhone.d.ts +25 -0
  79. package/dist/components/NSBoxPhone.js +45 -0
  80. package/dist/components/NSBoxPhone.js.map +1 -0
  81. package/dist/components/NSBoxPrice.d.ts +23 -0
  82. package/dist/components/NSBoxPrice.js +42 -0
  83. package/dist/components/NSBoxPrice.js.map +1 -0
  84. package/dist/components/NSBoxSearch.d.ts +25 -0
  85. package/dist/components/NSBoxSearch.js +52 -0
  86. package/dist/components/NSBoxSearch.js.map +1 -0
  87. package/dist/components/NSBoxString.d.ts +25 -0
  88. package/dist/components/NSBoxString.js +48 -0
  89. package/dist/components/NSBoxString.js.map +1 -0
  90. package/dist/components/NSBoxTextArea.d.ts +27 -0
  91. package/dist/components/NSBoxTextArea.js +60 -0
  92. package/dist/components/NSBoxTextArea.js.map +1 -0
  93. package/dist/components/NSBoxTime.d.ts +23 -0
  94. package/dist/components/NSBoxTime.js +44 -0
  95. package/dist/components/NSBoxTime.js.map +1 -0
  96. package/dist/components/NSButton.d.ts +9 -0
  97. package/dist/components/NSButton.js +8 -0
  98. package/dist/components/NSButton.js.map +1 -0
  99. package/dist/components/NSButtonBlue.d.ts +2 -0
  100. package/dist/components/NSButtonBlue.js +11 -0
  101. package/dist/components/NSButtonBlue.js.map +1 -0
  102. package/dist/components/NSButtonGreen.d.ts +2 -0
  103. package/dist/components/NSButtonGreen.js +11 -0
  104. package/dist/components/NSButtonGreen.js.map +1 -0
  105. package/dist/components/NSButtonRed.d.ts +2 -0
  106. package/dist/components/NSButtonRed.js +11 -0
  107. package/dist/components/NSButtonRed.js.map +1 -0
  108. package/dist/components/NSCard.d.ts +14 -0
  109. package/dist/components/NSCard.js +18 -0
  110. package/dist/components/NSCard.js.map +1 -0
  111. package/dist/components/NSCopyToClipboard.d.ts +6 -0
  112. package/dist/components/NSCopyToClipboard.js +12 -0
  113. package/dist/components/NSCopyToClipboard.js.map +1 -0
  114. package/dist/components/NSElectronicCard.d.ts +9 -0
  115. package/dist/components/NSElectronicCard.js +13 -0
  116. package/dist/components/NSElectronicCard.js.map +1 -0
  117. package/dist/components/NSEntityBar.d.ts +8 -0
  118. package/dist/components/NSEntityBar.js +7 -0
  119. package/dist/components/NSEntityBar.js.map +1 -0
  120. package/dist/components/NSEntityCardBackground.d.ts +7 -0
  121. package/dist/components/NSEntityCardBackground.js +9 -0
  122. package/dist/components/NSEntityCardBackground.js.map +1 -0
  123. package/dist/components/NSFilterBox.d.ts +61 -0
  124. package/dist/components/NSFilterBox.js +230 -0
  125. package/dist/components/NSFilterBox.js.map +1 -0
  126. package/dist/components/NSFilterBoxDialog.d.ts +12 -0
  127. package/dist/components/NSFilterBoxDialog.js +17 -0
  128. package/dist/components/NSFilterBoxDialog.js.map +1 -0
  129. package/dist/components/NSFilterItem.d.ts +17 -0
  130. package/dist/components/NSFilterItem.js +30 -0
  131. package/dist/components/NSFilterItem.js.map +1 -0
  132. package/dist/components/NSFooter.d.ts +20 -0
  133. package/dist/components/NSFooter.js +56 -0
  134. package/dist/components/NSFooter.js.map +1 -0
  135. package/dist/components/NSGroupedList.d.ts +31 -0
  136. package/dist/components/NSGroupedList.js +42 -0
  137. package/dist/components/NSGroupedList.js.map +1 -0
  138. package/dist/components/NSHeader.d.ts +26 -0
  139. package/dist/components/NSHeader.js +81 -0
  140. package/dist/components/NSHeader.js.map +1 -0
  141. package/dist/components/NSLayout.d.ts +22 -0
  142. package/dist/components/NSLayout.js +30 -0
  143. package/dist/components/NSLayout.js.map +1 -0
  144. package/dist/components/NSLine.d.ts +4 -0
  145. package/dist/components/NSLine.js +6 -0
  146. package/dist/components/NSLine.js.map +1 -0
  147. package/dist/components/NSLink.d.ts +5 -0
  148. package/dist/components/NSLink.js +7 -0
  149. package/dist/components/NSLink.js.map +1 -0
  150. package/dist/components/NSLinkBlue.d.ts +2 -0
  151. package/dist/components/NSLinkBlue.js +13 -0
  152. package/dist/components/NSLinkBlue.js.map +1 -0
  153. package/dist/components/NSLinkGreen.d.ts +2 -0
  154. package/dist/components/NSLinkGreen.js +6 -0
  155. package/dist/components/NSLinkGreen.js.map +1 -0
  156. package/dist/components/NSLinkRed.d.ts +2 -0
  157. package/dist/components/NSLinkRed.js +6 -0
  158. package/dist/components/NSLinkRed.js.map +1 -0
  159. package/dist/components/NSLoading.d.ts +4 -0
  160. package/dist/components/NSLoading.js +7 -0
  161. package/dist/components/NSLoading.js.map +1 -0
  162. package/dist/components/NSModal.d.ts +10 -0
  163. package/dist/components/NSModal.js +13 -0
  164. package/dist/components/NSModal.js.map +1 -0
  165. package/dist/components/NSNoData.d.ts +5 -0
  166. package/dist/components/NSNoData.js +7 -0
  167. package/dist/components/NSNoData.js.map +1 -0
  168. package/dist/components/NSPagination.d.ts +20 -0
  169. package/dist/components/NSPagination.js +82 -0
  170. package/dist/components/NSPagination.js.map +1 -0
  171. package/dist/components/NSPanel.d.ts +7 -0
  172. package/dist/components/NSPanel.js +7 -0
  173. package/dist/components/NSPanel.js.map +1 -0
  174. package/dist/components/NSPrintModal.d.ts +15 -0
  175. package/dist/components/NSPrintModal.js +35 -0
  176. package/dist/components/NSPrintModal.js.map +1 -0
  177. package/dist/components/NSRadioButton.d.ts +5 -0
  178. package/dist/components/NSRadioButton.js +15 -0
  179. package/dist/components/NSRadioButton.js.map +1 -0
  180. package/dist/components/NSSection.d.ts +7 -0
  181. package/dist/components/NSSection.js +10 -0
  182. package/dist/components/NSSection.js.map +1 -0
  183. package/dist/components/NSSectionBars.d.ts +7 -0
  184. package/dist/components/NSSectionBars.js +10 -0
  185. package/dist/components/NSSectionBars.js.map +1 -0
  186. package/dist/components/NSSectionCards.d.ts +13 -0
  187. package/dist/components/NSSectionCards.js +15 -0
  188. package/dist/components/NSSectionCards.js.map +1 -0
  189. package/dist/components/NSSectionTitle.d.ts +7 -0
  190. package/dist/components/NSSectionTitle.js +8 -0
  191. package/dist/components/NSSectionTitle.js.map +1 -0
  192. package/dist/components/NSSpace.d.ts +17 -0
  193. package/dist/components/NSSpace.js +19 -0
  194. package/dist/components/NSSpace.js.map +1 -0
  195. package/dist/components/NSTabPage.d.ts +13 -0
  196. package/dist/components/NSTabPage.js +9 -0
  197. package/dist/components/NSTabPage.js.map +1 -0
  198. package/dist/components/NSTable.d.ts +50 -0
  199. package/dist/components/NSTable.js +154 -0
  200. package/dist/components/NSTable.js.map +1 -0
  201. package/dist/components/NSTable.module.css +3 -3
  202. package/dist/components/NSTag.d.ts +2 -0
  203. package/dist/components/NSTag.js +22 -0
  204. package/dist/components/NSTag.js.map +1 -0
  205. package/dist/components/NSTitle.d.ts +5 -0
  206. package/dist/components/NSTitle.js +7 -0
  207. package/dist/components/NSTitle.js.map +1 -0
  208. package/dist/components/NSVerification.d.ts +9 -0
  209. package/dist/components/NSVerification.js +19 -0
  210. package/dist/components/NSVerification.js.map +1 -0
  211. package/dist/index.d.ts +1 -0
  212. package/dist/index.js +7 -0
  213. package/dist/index.js.map +1 -0
  214. package/dist/main.d.ts +81 -0
  215. package/dist/main.js +82 -0
  216. package/dist/main.js.map +1 -0
  217. package/dist/pages/NSLoginPage.d.ts +6 -0
  218. package/dist/pages/NSLoginPage.js +8 -0
  219. package/dist/pages/NSLoginPage.js.map +1 -0
  220. package/dist/pages/NSNotFoundPage.d.ts +1 -0
  221. package/dist/pages/NSNotFoundPage.js +7 -0
  222. package/dist/pages/NSNotFoundPage.js.map +1 -0
  223. package/dist/props/IBaseComponentProps.d.ts +7 -0
  224. package/dist/props/IBaseComponentProps.js +2 -0
  225. package/dist/props/IBaseComponentProps.js.map +1 -0
  226. package/dist/props/IHeaderIconProps.d.ts +8 -0
  227. package/dist/props/IHeaderIconProps.js +2 -0
  228. package/dist/props/IHeaderIconProps.js.map +1 -0
  229. package/dist/props/IHeaderProps.d.ts +5 -0
  230. package/dist/props/IHeaderProps.js +2 -0
  231. package/dist/props/IHeaderProps.js.map +1 -0
  232. package/dist/props/IImageProps.d.ts +4 -0
  233. package/dist/props/IImageProps.js +2 -0
  234. package/dist/props/IImageProps.js.map +1 -0
  235. package/dist/props/ILinkProps.d.ts +5 -0
  236. package/dist/props/ILinkProps.js +2 -0
  237. package/dist/props/ILinkProps.js.map +1 -0
  238. package/dist/props/IValidationNumberProps.d.ts +4 -0
  239. package/dist/props/IValidationNumberProps.js +2 -0
  240. package/dist/props/IValidationNumberProps.js.map +1 -0
  241. package/dist/props/IValidationProps.d.ts +6 -0
  242. package/dist/props/IValidationProps.js +2 -0
  243. package/dist/props/IValidationProps.js.map +1 -0
  244. package/dist/props/IValidationRegexProps.d.ts +4 -0
  245. package/dist/props/IValidationRegexProps.js +2 -0
  246. package/dist/props/IValidationRegexProps.js.map +1 -0
  247. package/dist/props/IValidationStringProps.d.ts +4 -0
  248. package/dist/props/IValidationStringProps.js +2 -0
  249. package/dist/props/IValidationStringProps.js.map +1 -0
  250. package/dist/routing/INSRouterMaker.d.ts +5 -0
  251. package/dist/routing/INSRouterMaker.js +2 -0
  252. package/dist/routing/INSRouterMaker.js.map +1 -0
  253. package/dist/routing/INSRouterProps.d.ts +4 -0
  254. package/dist/routing/INSRouterProps.js +2 -0
  255. package/dist/routing/INSRouterProps.js.map +1 -0
  256. package/dist/routing/INSRouterState.d.ts +4 -0
  257. package/dist/routing/INSRouterState.js +2 -0
  258. package/dist/routing/INSRouterState.js.map +1 -0
  259. package/dist/routing/NSRouterMaker.d.ts +11 -0
  260. package/dist/routing/NSRouterMaker.js +23 -0
  261. package/dist/routing/NSRouterMaker.js.map +1 -0
  262. package/dist/routing/Notifier.d.ts +16 -0
  263. package/dist/routing/Notifier.js +68 -0
  264. package/dist/routing/Notifier.js.map +1 -0
  265. package/package.json +1 -1
  266. package/src/components/NSTable.module.css +3 -3
  267. package/src/components/NSTable.tsx +1 -1
  268. package/tsconfig.json +7 -8
@@ -0,0 +1,45 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Styles from "./NSBox.module.css";
5
+ import PhoneIcon from '../assets/images/icon-input-phone.svg';
6
+ import PhoneInput from 'react-phone-input-2';
7
+ import 'react-phone-input-2/lib/style.css';
8
+ import { Validator } from "../Validator";
9
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
10
+ export class NSBoxPhone extends React.Component {
11
+ constructor(props) {
12
+ var _a;
13
+ super(props);
14
+ this.state = { value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : "", isFullScreen: false };
15
+ this.setValue = this.setValue.bind(this);
16
+ this.getValue = this.getValue.bind(this);
17
+ this.toggleFullScreen = this.toggleFullScreen.bind(this);
18
+ }
19
+ getError() {
20
+ return (Validator.getError(this.props.title, this.state.value, this.props) ||
21
+ Validator.getErrorString(this.props.title, this.state.value, this.props));
22
+ }
23
+ getValue() {
24
+ let error = this.getError();
25
+ if (error) {
26
+ this.setState({ error });
27
+ throw new Error(error);
28
+ }
29
+ return this.state.value;
30
+ }
31
+ setValue(value) {
32
+ this.setState({ value });
33
+ }
34
+ toggleFullScreen() {
35
+ this.setState(prevState => ({ isFullScreen: !prevState.isFullScreen }));
36
+ }
37
+ render() {
38
+ var _a;
39
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { id: this.props.id, className: `${Styles.ns_input_phone_parent} ${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")} ${this.state.isFullScreen ? Styles.ns_full_screen : ""}`, style: this.props.style, children: [_jsx("div", { className: "d-flex justify-content-between align-item-center", children: _jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }) }), _jsx(PhoneInput, { value: this.state.value, onChange: this.setValue, country: 'us', inputClass: Styles.PhoneIconns_input, placeholder: this.props.placeholder, inputStyle: {
40
+ background: `url(${PhoneIcon}) white no-repeat scroll center right 16px`,
41
+ backgroundSize: "24px"
42
+ } })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error, clearError: () => this.setState({ error: "" }) })] }));
43
+ }
44
+ }
45
+ //# sourceMappingURL=NSBoxPhone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxPhone.js","sourceRoot":"","sources":["../../src/components/NSBoxPhone.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,SAAS,MAAM,uCAAuC,CAAC;AAC9D,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,mCAAmC,CAAA;AAI1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAkB1D,MAAM,OAAO,UAAW,SAAQ,KAAK,CAAC,SAA6C;IAElF,YAAY,KAAuB;;QAElC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,YAAY,mCAAI,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;QACtE,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,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;IACD,QAAQ;QAEP,OAAO,CACN,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;YAClE,SAAS,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AAC,KAAK,SAAS,GAChI,EACN,KAAC,UAAU,IACV,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,IAAI,EACb,UAAU,EAAE,MAAM,CAAC,iBAAiB,EACpC,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EACnC,UAAU,EAAE;gCACX,UAAU,EAAE,OAAO,SAAS,4CAA4C;gCACxE,cAAc,EAAE,MAAM;6BACtB,GACA,IACI,EACP,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAI,IAC7F,CACH,CAAC;IACH,CAAC;CACD"}
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
+ import { IValidationProps } from "../props/IValidationProps";
4
+ import { IValidationNumberProps } from "../props/IValidationNumberProps";
5
+ export interface INSBoxPriceProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps {
6
+ title: string;
7
+ placeholder?: number;
8
+ defaultValue?: number;
9
+ onChanged?: (e: NSBoxPrice) => void;
10
+ onClicked?: (e: NSBoxPrice) => void;
11
+ }
12
+ export interface INSBoxPriceState {
13
+ value?: number;
14
+ error?: string;
15
+ }
16
+ export declare class NSBoxPrice extends React.Component<INSBoxPriceProps, INSBoxPriceState> {
17
+ constructor(props: INSBoxPriceProps);
18
+ getError(): string | null;
19
+ getValue(): number | undefined;
20
+ setValue(value: number | undefined): void;
21
+ private onChanged;
22
+ render(): import("react/jsx-runtime").JSX.Element;
23
+ }
@@ -0,0 +1,42 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Styles from "./NSBox.module.css";
5
+ import IconInputFloat from '../assets/images/icon-input-float.svg';
6
+ import { Validator } from "../Validator";
7
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
8
+ export class NSBoxPrice extends React.Component {
9
+ constructor(props) {
10
+ super(props);
11
+ this.state = { value: props.defaultValue };
12
+ this.setValue = this.setValue.bind(this);
13
+ this.getValue = this.getValue.bind(this);
14
+ this.onChanged = this.onChanged.bind(this);
15
+ }
16
+ getError() {
17
+ return (Validator.getError(this.props.title, this.state.value, this.props) ||
18
+ Validator.getErrorNumber(this.props.title, this.state.value, this.props));
19
+ }
20
+ getValue() {
21
+ let error = this.getError();
22
+ if (error) {
23
+ this.setState({ error });
24
+ throw new Error(error);
25
+ }
26
+ return this.state.value;
27
+ }
28
+ setValue(value) {
29
+ this.setState({ value }, () => {
30
+ if (this.props.onChanged)
31
+ this.props.onChanged(this);
32
+ });
33
+ }
34
+ onChanged(e) {
35
+ this.setValue(parseFloat(e.target.value));
36
+ }
37
+ render() {
38
+ var _a, _b;
39
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { id: this.props.id, className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("input", { type: "number", name: this.props.name, className: Styles.ns_input, placeholder: (_b = this.props.placeholder) === null || _b === void 0 ? void 0 : _b.toString.name, value: this.state.value, onChange: this.onChanged, onClick: () => this.props.onClicked, step: "0.01", min: "0", style: { background: `url(${IconInputFloat}) white no-repeat scroll center right 16px` } })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error, clearError: () => this.setState({ error: "" }) })] }));
40
+ }
41
+ }
42
+ //# sourceMappingURL=NSBoxPrice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxPrice.js","sourceRoot":"","sources":["../../src/components/NSBoxPrice.tsx"],"names":[],"mappings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KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,cAAc,4CAA4C,EAAE,GACvF,IACG,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAI,IAC7F,CACH,CAAC;IACH,CAAC;CACD"}
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
+ import { IValidationProps } from "../props/IValidationProps";
4
+ import { IValidationStringProps } from "../props/IValidationStringProps";
5
+ export interface INSBoxSearchProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
6
+ title: string;
7
+ placeholder?: string;
8
+ defaultValue?: string;
9
+ onChanged?: (e: NSBoxSearch) => void;
10
+ onClicked?: (e: NSBoxSearch) => void;
11
+ }
12
+ export interface INSBoxSearchState {
13
+ value: string;
14
+ error?: string;
15
+ isFullScreen: boolean;
16
+ }
17
+ export declare class NSBoxSearch extends React.Component<INSBoxSearchProps, INSBoxSearchState> {
18
+ constructor(props: INSBoxSearchProps);
19
+ getError(): string | null;
20
+ getValue(): string;
21
+ setValue(value: string): void;
22
+ private onChanged;
23
+ private toggleFullScreen;
24
+ render(): import("react/jsx-runtime").JSX.Element;
25
+ }
@@ -0,0 +1,52 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Styles from "./NSBox.module.css";
5
+ import { Validator } from "../Validator";
6
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
7
+ import NSAssistantButton from "./NSAssistantButton";
8
+ export class NSBoxSearch extends React.Component {
9
+ constructor(props) {
10
+ var _a;
11
+ super(props);
12
+ this.state = { value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : "", isFullScreen: false };
13
+ this.getValue = this.getValue.bind(this);
14
+ this.setValue = this.setValue.bind(this);
15
+ this.onChanged = this.onChanged.bind(this);
16
+ this.toggleFullScreen = this.toggleFullScreen.bind(this);
17
+ }
18
+ getError() {
19
+ return (Validator.getError(this.props.title, this.state.value, this.props) ||
20
+ Validator.getErrorString(this.props.title, this.state.value, this.props));
21
+ }
22
+ getValue() {
23
+ let error = this.getError();
24
+ if (error) {
25
+ this.setState({ error });
26
+ throw new Error(error);
27
+ }
28
+ return this.state.value;
29
+ }
30
+ setValue(value) {
31
+ this.setState({ value }, () => {
32
+ if (this.props.onChanged)
33
+ this.props.onChanged(this);
34
+ });
35
+ }
36
+ onChanged(e) {
37
+ this.setValue(e.target.value);
38
+ }
39
+ toggleFullScreen() {
40
+ this.setState(prevState => ({ isFullScreen: !prevState.isFullScreen }));
41
+ }
42
+ render() {
43
+ var _a;
44
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { id: this.props.id, className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")} ${this.state.isFullScreen ? Styles.ns_full_screen : ""}`, style: this.props.style, children: [_jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [_jsxs("span", { className: Styles.ns_input_title, children: [this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title] }), _jsx(NSAssistantButton, { value: this.state.value, setValue: this.setValue })] }), _jsx("input", { type: "text", name: this.props.name, className: Styles.ns_input, placeholder: this.props.placeholder, value: this.state.value, onChange: this.onChanged, onClick: () => this.props.onClicked, style: {
45
+ background: `url(${"https://static.namirasoft.com/image/concept/search/blue.svg"}) white no-repeat left`,
46
+ backgroundSize: "32px",
47
+ backgroundPosition: "10px",
48
+ paddingLeft: "48px",
49
+ } })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error, clearError: () => this.setState({ error: "" }) })] }));
50
+ }
51
+ }
52
+ //# sourceMappingURL=NSBoxSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxSearch.js","sourceRoot":"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AAG,IAAI,CAAC,KAAK,CAAC,KAAK,IAC5E,EACP,KAAC,iBAAiB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAI,IAClE,EACN,gBACC,IAAI,EAAC,MAAM,EACX,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EACnC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EACnC,KAAK,EACJ;gCACA,UAAU,EAAE,OAAO,6DAA6D,wBAAwB;gCACxG,cAAc,EAAE,MAAM;gCACtB,kBAAkB,EAAE,MAAM;gCAC1B,WAAW,EAAE,MAAM;6BACnB,GACA,IACG,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAI,IAC7F,CACH,CAAC;IACH,CAAC;CACD"}
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
+ import { IValidationProps } from "../props/IValidationProps";
4
+ import { IValidationStringProps } from "../props/IValidationStringProps";
5
+ export interface INSBoxStringProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
6
+ title: string;
7
+ placeholder?: string;
8
+ defaultValue?: string;
9
+ onChanged?: (e: NSBoxString) => void;
10
+ onClicked?: (e: NSBoxString) => void;
11
+ }
12
+ export interface INSBoxStringState {
13
+ value: string;
14
+ error?: string;
15
+ isFullScreen: boolean;
16
+ }
17
+ export declare class NSBoxString extends React.Component<INSBoxStringProps, INSBoxStringState> {
18
+ constructor(props: INSBoxStringProps);
19
+ getError(): string | null;
20
+ getValue(): string;
21
+ setValue(value: string): void;
22
+ private onChanged;
23
+ private toggleFullScreen;
24
+ render(): import("react/jsx-runtime").JSX.Element;
25
+ }
@@ -0,0 +1,48 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Styles from "./NSBox.module.css";
5
+ import IconInputString from '../assets/images/icon-input-string.svg';
6
+ import { Validator } from "../Validator";
7
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
8
+ import NSAssistantButton from "./NSAssistantButton";
9
+ export class NSBoxString extends React.Component {
10
+ constructor(props) {
11
+ var _a;
12
+ super(props);
13
+ this.state = { value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : "", isFullScreen: false };
14
+ this.getValue = this.getValue.bind(this);
15
+ this.setValue = this.setValue.bind(this);
16
+ this.onChanged = this.onChanged.bind(this);
17
+ this.toggleFullScreen = this.toggleFullScreen.bind(this);
18
+ }
19
+ getError() {
20
+ return (Validator.getError(this.props.title, this.state.value, this.props) ||
21
+ Validator.getErrorString(this.props.title, this.state.value, this.props));
22
+ }
23
+ getValue() {
24
+ let error = this.getError();
25
+ if (error) {
26
+ this.setState({ error });
27
+ throw new Error(error);
28
+ }
29
+ return this.state.value;
30
+ }
31
+ setValue(value) {
32
+ this.setState({ value }, () => {
33
+ if (this.props.onChanged)
34
+ this.props.onChanged(this);
35
+ });
36
+ }
37
+ onChanged(e) {
38
+ this.setValue(e.target.value);
39
+ }
40
+ toggleFullScreen() {
41
+ this.setState(prevState => ({ isFullScreen: !prevState.isFullScreen }));
42
+ }
43
+ render() {
44
+ var _a;
45
+ return (_jsx(_Fragment, { children: _jsxs("div", { id: this.props.id, className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")} ${this.state.isFullScreen ? Styles.ns_full_screen : ""}`, style: this.props.style, children: [_jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [_jsxs("span", { className: Styles.ns_input_title, children: [this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title] }), _jsx(NSAssistantButton, { value: this.state.value, setValue: this.setValue })] }), _jsx("input", { type: "text", name: this.props.name, className: Styles.ns_input, placeholder: this.props.placeholder, value: this.state.value, onChange: this.onChanged, onClick: () => this.props.onClicked, style: { background: `url(${IconInputString}) white no-repeat scroll center right 16px` } }), _jsx(NSBoxErrorNotifier, { error: this.state.error, clearError: () => this.setState({ error: "" }) })] }) }));
46
+ }
47
+ }
48
+ //# sourceMappingURL=NSBoxString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxString.js","sourceRoot":"","sources":["../../src/components/NSBoxString.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,eAAe,MAAM,wCAAwC,CAAC;AAIrE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAkBpD,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAA+C;IAErF,YAAY,KAAwB;;QAEnC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,YAAY,mCAAI,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;QACtE,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,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I,IAC1F,GACJ,CACH,CAAC;IACH,CAAC;CACD"}
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
+ import { IValidationProps } from "../props/IValidationProps";
4
+ import { IValidationStringProps } from "../props/IValidationStringProps";
5
+ export interface INSBoxTextAreaProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
6
+ title: string;
7
+ placeholder?: string;
8
+ defaultValue?: string;
9
+ onChanged?: (e: NSBoxTextArea) => void;
10
+ onClicked?: (e: NSBoxTextArea) => void;
11
+ cols?: number;
12
+ rows?: number;
13
+ }
14
+ export interface INSBoxTextAreaState {
15
+ value: string;
16
+ error?: string;
17
+ isFullScreen: boolean;
18
+ }
19
+ export declare class NSBoxTextArea extends React.Component<INSBoxTextAreaProps, INSBoxTextAreaState> {
20
+ constructor(props: INSBoxTextAreaProps);
21
+ getError(): string | null;
22
+ getValue(): string;
23
+ setValue(value: string): void;
24
+ private onChanged;
25
+ private toggleFullScreen;
26
+ render(): import("react/jsx-runtime").JSX.Element;
27
+ }
@@ -0,0 +1,60 @@
1
+ "use client";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
12
+ import React from "react";
13
+ import Styles from "./NSBoxTextArea.module.css";
14
+ import { Validator } from "../Validator";
15
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
16
+ import IconInputString from '../assets/images/icon-input-string.svg';
17
+ export class NSBoxTextArea extends React.Component {
18
+ constructor(props) {
19
+ var _a;
20
+ super(props);
21
+ this.onChanged = (e) => __awaiter(this, void 0, void 0, function* () {
22
+ yield this.setValue(e.target.value);
23
+ });
24
+ this.state = { value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : "", isFullScreen: false };
25
+ this.getValue = this.getValue.bind(this);
26
+ this.setValue = this.setValue.bind(this);
27
+ this.onChanged = this.onChanged.bind(this);
28
+ this.toggleFullScreen = this.toggleFullScreen.bind(this);
29
+ }
30
+ getError() {
31
+ return (Validator.getError(this.props.title, this.state.value, this.props) ||
32
+ Validator.getErrorString(this.props.title, this.state.value, this.props));
33
+ }
34
+ getValue() {
35
+ let error = this.getError();
36
+ if (error) {
37
+ this.setState({ error });
38
+ throw new Error(error);
39
+ }
40
+ return this.state.value;
41
+ }
42
+ setValue(value) {
43
+ this.setState({ value }, () => {
44
+ if (this.props.onChanged)
45
+ this.props.onChanged(this);
46
+ });
47
+ }
48
+ toggleFullScreen() {
49
+ this.setState(prevState => ({ isFullScreen: !prevState.isFullScreen }));
50
+ }
51
+ render() {
52
+ var _a;
53
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { id: this.props.id, className: `${Styles.ns_text_area_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")} ${this.state.isFullScreen ? Styles.ns_full_screen : ""}`, style: this.props.style, onClick: this.state.isFullScreen ? () => { } : () => { }, children: [_jsx("div", { className: "d-flex justify-content-between align-items-center", children: _jsxs("span", { className: Styles.ns_input_title, children: [this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title] }) }), _jsx("div", { className: Styles.ns_text_area_container, children: _jsx("textarea", { style: {
54
+ height: !this.props.rows ? "96px" : "",
55
+ background: `url(${IconInputString}) white no-repeat scroll top right 16px `,
56
+ backgroundPositionY: "12px"
57
+ }, cols: this.props.cols, rows: this.props.rows, value: this.state.value, className: Styles.ns_text_area, placeholder: this.props.placeholder, onChange: this.onChanged, onClick: () => this.props.onClicked }) })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error, clearError: () => this.setState({ error: "" }) })] }));
58
+ }
59
+ }
60
+ //# sourceMappingURL=NSBoxTextArea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxTextArea.js","sourceRoot":"","sources":["../../src/components/NSBoxTextArea.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAIhD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,eAAe,MAAM,wCAAwC,CAAC;AAoBrE,MAAM,OAAO,aAAc,SAAQ,KAAK,CAAC,SAAmD;IAE3F,YAAY,KAA0B;;QAErC,KAAK,CAAC,KAAK,CAAC,CAAC;QAiCN,cAAS,GAAG,CAAO,CAAyC,EAAiB,EAAE;YAEtF,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC,CAAA,CAAA;QAnCA,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,YAAY,mCAAI,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;QACtE,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;QAC3C,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;I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CACD"}
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
+ import { IValidationProps } from "../props/IValidationProps";
4
+ import { IValidationStringProps } from "../props/IValidationStringProps";
5
+ export interface INSBoxTimeProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
6
+ title: string;
7
+ placeholder?: string;
8
+ defaultValue?: string;
9
+ onChanged?: (e: NSBoxTime) => void;
10
+ onClicked?: (e: NSBoxTime) => void;
11
+ }
12
+ export interface INSBoxTimeState {
13
+ value: string;
14
+ error?: string;
15
+ }
16
+ export declare class NSBoxTime extends React.Component<INSBoxTimeProps, INSBoxTimeState> {
17
+ constructor(props: INSBoxTimeProps);
18
+ getError(): string | null;
19
+ getValue(): string;
20
+ setValue(value: string): void;
21
+ private onChanged;
22
+ render(): import("react/jsx-runtime").JSX.Element;
23
+ }
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Styles from "./NSBox.module.css";
5
+ import IconInputTime from '../assets/images/icon-input-time.svg';
6
+ import { Validator } from "../Validator";
7
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
8
+ export class NSBoxTime extends React.Component {
9
+ constructor(props) {
10
+ var _a;
11
+ super(props);
12
+ this.state = { value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : "" };
13
+ this.getValue = this.getValue.bind(this);
14
+ this.setValue = this.setValue.bind(this);
15
+ this.onChanged = this.onChanged.bind(this);
16
+ }
17
+ getError() {
18
+ return (Validator.getError(this.props.title, this.state.value, this.props) ||
19
+ Validator.getErrorString(this.props.title, this.state.value, this.props) ||
20
+ Validator.getErrorTime(this.props.title, this.state.value));
21
+ }
22
+ getValue() {
23
+ let error = this.getError();
24
+ if (error) {
25
+ this.setState({ error });
26
+ throw new Error(error);
27
+ }
28
+ return this.state.value;
29
+ }
30
+ setValue(value) {
31
+ this.setState({ value }, () => {
32
+ if (this.props.onChanged)
33
+ this.props.onChanged(this);
34
+ });
35
+ }
36
+ onChanged(e) {
37
+ this.setValue(e.target.value);
38
+ }
39
+ render() {
40
+ var _a;
41
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { id: this.props.id, className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx("input", { type: "time", name: this.props.name, className: Styles.ns_input, placeholder: this.props.placeholder, value: this.state.value, onChange: this.onChanged, onClick: () => this.props.onClicked, step: "2", style: { background: `url(${IconInputTime}) white no-repeat scroll center right 16px` } })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error, clearError: () => this.setState({ error: "" }) })] }));
42
+ }
43
+ }
44
+ //# sourceMappingURL=NSBoxTime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxTime.js","sourceRoot":"","sources":["../../src/components/NSBoxTime.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,aAAa,MAAM,sCAAsC,CAAC;AAIjE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAiB1D,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,SAA2C;IAE/E,YAAY,KAAsB;;QAEjC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,YAAY,mCAAI,EAAE,EAAE,CAAC;QACjD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,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,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,IAAI,MAAA,IAAI,CAAC,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,aACzH,gBAAM,SAAS,EAAE,MAAM,CAAC,cAAc,kBAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,eAAM,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,kBAAW,OAAG,IAAI,CAAC,KAAK,CAAC,KAAK,SAAS,EACrI,gBACC,IAAI,EAAC,MAAM,EACX,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EACnC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EACnC,IAAI,EAAC,GAAG,EACR,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,aAAa,4CAA4C,EAAE,GACtF,IACG,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAI,IAC7F,CACH,CAAC;IACH,CAAC;CACD"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
+ import { IImageProps } from "../props/IImageProps";
4
+ export interface INSButtonProps extends IBaseComponentProps {
5
+ title?: string;
6
+ icon?: IImageProps;
7
+ onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
8
+ }
9
+ export default function NSButton(props: INSButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Styles from "./NSButton.module.css";
3
+ export default function NSButton(props) {
4
+ var _a;
5
+ return (_jsxs("button", { id: props.id, className: `${Styles.ns_button} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, onClick: (e) => { props.onClick(e); }, children: [props.icon && _jsx("img", Object.assign({}, props.icon, { alt: "Icon", width: 24, height: 24 })), props.title] }));
6
+ }
7
+ ;
8
+ //# sourceMappingURL=NSButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSButton.js","sourceRoot":"","sources":["../../src/components/NSButton.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAW3C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAqB;;IAElD,OAAO,CACH,kBAAQ,EAAE,EAAE,KAAK,CAAC,EAAE,EAChB,SAAS,EAAE,GAAG,MAAM,CAAC,SAAS,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAC9D,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA,CAAC,CAAC,aAEnC,KAAK,CAAC,IAAI,IAAI,8BAAS,KAAK,CAAC,IAAI,IAAE,GAAG,EAAC,MAAM,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EACvE,KAAK,CAAC,KAAK,IACN,CACb,CAAC;AACN,CAAC;AAAA,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { INSButtonProps } from "./NSButton";
2
+ export declare function NSButtonBlue(props: INSButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import NSButton from "./NSButton";
3
+ import Style from "./NSButtonBlue.module.css";
4
+ export function NSButtonBlue(props) {
5
+ let classList = [];
6
+ if (props.classList)
7
+ classList.push(...props.classList);
8
+ classList.push(Style.ns_button_blue);
9
+ return _jsx(NSButton, { title: props.title, icon: props.icon, onClick: props.onClick, id: props.id, classList: classList, style: props.style });
10
+ }
11
+ //# sourceMappingURL=NSButtonBlue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSButtonBlue.js","sourceRoot":"","sources":["../../src/components/NSButtonBlue.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAG9C,MAAM,UAAU,YAAY,CAAC,KAAqB;IAE9C,IAAI,SAAS,GAAG,EAAE,CAAA;IAClB,IAAI,KAAK,CAAC,SAAS;QACf,SAAS,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;IACvC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAErC,OAAO,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,GAAI,CAAC;AAC9I,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { INSButtonProps } from "./NSButton";
2
+ export declare function NSButtonGreen(props: INSButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import NSButton from "./NSButton";
3
+ import Style from "./NSButtonGreen.module.css";
4
+ export function NSButtonGreen(props) {
5
+ let classList = [];
6
+ if (props.classList)
7
+ classList.push(...props.classList);
8
+ classList.push(Style.ns_button_green);
9
+ return _jsx(NSButton, { title: props.title, icon: props.icon, onClick: props.onClick, id: props.id, classList: classList, style: props.style });
10
+ }
11
+ //# sourceMappingURL=NSButtonGreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSButtonGreen.js","sourceRoot":"","sources":["../../src/components/NSButtonGreen.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,MAAM,4BAA4B,CAAC;AAG/C,MAAM,UAAU,aAAa,CAAC,KAAqB;IAE/C,IAAI,SAAS,GAAG,EAAE,CAAA;IAClB,IAAI,KAAK,CAAC,SAAS;QACf,SAAS,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;IACvC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IACtC,OAAO,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,GAAI,CAAC;AAC9I,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { INSButtonProps } from "./NSButton";
2
+ export declare function NSButtonRed(props: INSButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import NSButton from "./NSButton";
3
+ import Style from "./NSButtonRed.module.css";
4
+ export function NSButtonRed(props) {
5
+ let classList = [];
6
+ if (props.classList)
7
+ classList.push(...props.classList);
8
+ classList.push(Style.ns_button_red);
9
+ return _jsx(NSButton, { title: props.title, icon: props.icon, onClick: props.onClick, id: props.id, classList: classList, style: props.style });
10
+ }
11
+ //# sourceMappingURL=NSButtonRed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSButtonRed.js","sourceRoot":"","sources":["../../src/components/NSButtonRed.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAG7C,MAAM,UAAU,WAAW,CAAC,KAAqB;IAE7C,IAAI,SAAS,GAAG,EAAE,CAAA;IAClB,IAAI,KAAK,CAAC,SAAS;QACf,SAAS,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;IACvC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IACpC,OAAO,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,GAAI,CAAC;AAC9I,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { ILinkProps } from '../props/ILinkProps';
2
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
+ import { IImageProps } from '../props/IImageProps';
4
+ export interface INSCardProps extends IBaseComponentProps {
5
+ title?: string;
6
+ headline?: {
7
+ color?: string;
8
+ text: string;
9
+ };
10
+ description?: string;
11
+ image: IImageProps;
12
+ link: ILinkProps;
13
+ }
14
+ export declare function NSCard(props: INSCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Styles from './NSCard.module.css';
3
+ import { NSLinkBlue } from './NSLinkBlue';
4
+ export function NSCard(props) {
5
+ var _a, _b;
6
+ return (_jsxs("a", { href: props.link.href, id: props.id, className: `${Styles.ns_card} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, target: '_blank', children: [_jsxs("div", { className: Styles.ns_card_detail_container, children: [_jsxs("div", { className: Styles.ns_card_title_img, style: {
7
+ alignItems: props.description ? "flex-start" : "center",
8
+ }, children: [_jsx("img", Object.assign({ className: Styles.ns_card_img, alt: 'Card' }, props.image)), props.headline &&
9
+ _jsxs("span", { className: Styles.ns_card_headline, style: { color: (_b = props.headline) === null || _b === void 0 ? void 0 : _b.color }, children: [" ", props.headline.text, " "] }), _jsx("h3", { className: Styles.ns_card_title, children: props.title })] }), props.description &&
10
+ _jsx("p", { className: Styles.ns_card_description, children: props.description })] }), props.link ?
11
+ props.link.title ?
12
+ _jsx("div", { className: Styles.ns_card_link_container, children: _jsx(NSLinkBlue, { title: props.link.title, href: props.link.href, target: props.link.target, style: { marginTop: "24px" } }) })
13
+ :
14
+ _jsx("div", { className: Styles.ns_card_link_container, children: _jsx(NSLinkBlue, { href: props.link.href, target: props.link.target }) })
15
+ :
16
+ _jsx("div", {})] }));
17
+ }
18
+ //# sourceMappingURL=NSCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSCard.js","sourceRoot":"","sources":["../../src/components/NSCard.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAiB1C,MAAM,UAAU,MAAM,CAAC,KAAmB;;IAEzC,OAAO,CACN,aAAG,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EACrC,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAC5D,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,MAAM,EAAC,QAAQ,aAEf,eAAK,SAAS,EAAE,MAAM,CAAC,wBAAwB,aAC9C,eAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,EACvC,KAAK,EAAE;4BACN,UAAU,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ;yBACvD,aAED,4BAAK,SAAS,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,EAAC,MAAM,IAAK,KAAK,CAAC,KAAK,EAAI,EACjE,KAAK,CAAC,QAAQ;gCACd,gBAAM,SAAS,EAAE,MAAM,CAAC,gBAAgB,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,QAAQ,0CAAE,KAAK,EAAE,kBAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,SAAS,EAElH,aAAI,SAAS,EAAE,MAAM,CAAC,aAAa,YACjC,KAAK,CAAC,KAAK,GACR,IACA,EAEL,KAAK,CAAC,WAAW;wBACjB,YAAG,SAAS,EAAE,MAAM,CAAC,mBAAmB,YACtC,KAAK,CAAC,WAAW,GACf,IAEA,EAEL,KAAK,CAAC,IAAI,CAAC,CAAC;gBACX,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBACjB,cAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC5C,KAAC,UAAU,IACV,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,EACvB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EACrB,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EACzB,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,GAC3B,GACG;oBACN,CAAC;wBACD,cAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC5C,KAAC,UAAU,IACV,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EACrB,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,GACxB,GACG;gBACP,CAAC;oBACD,eAAW,IAET,CACL,CAAC;AACH,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
2
+ export interface INSCopyToClipboardProps extends IBaseComponentProps {
3
+ title: string;
4
+ value: string;
5
+ }
6
+ export declare function NSCopyToClipboard(props: INSCopyToClipboardProps): import("react/jsx-runtime").JSX.Element;