namirasoft-site-react 1.2.41 → 1.2.43

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 (181) hide show
  1. package/.gitlab-ci.yml +14 -14
  2. package/config-overrides.js +65 -65
  3. package/dist/App.d.ts +3 -3
  4. package/dist/App.js +8 -8
  5. package/dist/assets/images/arrow.svg +3 -3
  6. package/dist/assets/images/danger.svg +3 -3
  7. package/dist/assets/images/exit.svg +3 -3
  8. package/dist/assets/images/icon-input-date.svg +9 -9
  9. package/dist/assets/images/icon-input-duration.svg +9 -9
  10. package/dist/assets/images/icon-input-email.svg +9 -9
  11. package/dist/assets/images/icon-input-float.svg +9 -9
  12. package/dist/assets/images/icon-input-id.svg +9 -9
  13. package/dist/assets/images/icon-input-integer.svg +9 -9
  14. package/dist/assets/images/icon-input-phone.svg +9 -9
  15. package/dist/assets/images/icon-input-price.svg +9 -9
  16. package/dist/assets/images/icon-input-search.svg +4 -4
  17. package/dist/assets/images/icon-input-string.svg +9 -9
  18. package/dist/assets/images/icon-input-text.svg +9 -9
  19. package/dist/assets/images/icon-input-time.svg +9 -9
  20. package/dist/assets/images/logo.svg +9 -9
  21. package/dist/assets/images/menu.svg +3 -3
  22. package/dist/assets/images/namira.svg +9 -9
  23. package/dist/assets/images/rectangle.svg +3 -3
  24. package/dist/components/NSButtonGreen.d.ts +16 -16
  25. package/dist/components/NSButtonGreen.js +16 -16
  26. package/dist/components/NSButtonRed.d.ts +16 -16
  27. package/dist/components/NSButtonRed.js +16 -16
  28. package/dist/components/NSCard.d.ts +20 -20
  29. package/dist/components/NSCard.js +12 -12
  30. package/dist/components/NSFooter.d.ts +20 -20
  31. package/dist/components/NSFooter.js +46 -46
  32. package/dist/components/NSHeader.d.ts +23 -23
  33. package/dist/components/NSHeader.js +60 -60
  34. package/dist/components/NSInputDate.d.ts +15 -15
  35. package/dist/components/NSInputDate.js +27 -27
  36. package/dist/components/NSInputDuration.d.ts +15 -15
  37. package/dist/components/NSInputDuration.js +28 -28
  38. package/dist/components/NSInputEmail.d.ts +16 -16
  39. package/dist/components/NSInputEmail.js +36 -36
  40. package/dist/components/NSInputEmail.module.css +37 -37
  41. package/dist/components/NSInputFloat.d.ts +15 -15
  42. package/dist/components/NSInputFloat.js +28 -28
  43. package/dist/components/NSInputFloat.module.css +25 -25
  44. package/dist/components/NSInputIP.d.ts +15 -15
  45. package/dist/components/NSInputIP.js +28 -28
  46. package/dist/components/NSInputIP.module.css +25 -25
  47. package/dist/components/NSInputInteger.d.ts +15 -15
  48. package/dist/components/NSInputInteger.js +28 -28
  49. package/dist/components/NSInputInteger.module.css +25 -25
  50. package/dist/components/NSInputPhone.d.ts +16 -16
  51. package/dist/components/NSInputPhone.js +30 -30
  52. package/dist/components/NSInputPhone.module.css +32 -32
  53. package/dist/components/NSInputPrice.d.ts +17 -17
  54. package/dist/components/NSInputPrice.js +31 -31
  55. package/dist/components/NSInputPrice.module.css +26 -26
  56. package/dist/components/NSInputSearch.d.ts +17 -17
  57. package/dist/components/NSInputSearch.js +37 -37
  58. package/dist/components/NSInputSearch.module.css +25 -25
  59. package/dist/components/NSInputString.d.ts +17 -17
  60. package/dist/components/NSInputString.js +31 -31
  61. package/dist/components/NSInputString.module.css +26 -26
  62. package/dist/components/NSInputText.d.ts +17 -17
  63. package/dist/components/NSInputText.js +31 -31
  64. package/dist/components/NSInputText.module.css +27 -27
  65. package/dist/components/NSInputTime.d.ts +15 -15
  66. package/dist/components/NSInputTime.js +28 -28
  67. package/dist/components/NSInputTime.module.css +26 -26
  68. package/dist/components/NSLayout.d.ts +8 -8
  69. package/dist/components/NSLayout.js +8 -8
  70. package/dist/components/NSLayout.module.css +16 -16
  71. package/dist/components/NSLayoutHeroBanner.d.ts +12 -12
  72. package/dist/components/NSLayoutHeroBanner.js +8 -8
  73. package/dist/components/NSLayoutHeroBanner.module.css +43 -43
  74. package/dist/components/NSLayoutTitle.d.ts +10 -10
  75. package/dist/components/NSLayoutTitle.js +6 -6
  76. package/dist/components/NSLinkGreen.d.ts +16 -16
  77. package/dist/components/NSLinkGreen.js +20 -20
  78. package/dist/components/NSLinkGreen.module.css +15 -15
  79. package/dist/components/NSLinkRed.d.ts +16 -16
  80. package/dist/components/NSLinkRed.js +20 -20
  81. package/dist/components/NSLinkRed.module.css +15 -15
  82. package/dist/components/NSPagination.d.ts +15 -15
  83. package/dist/components/NSPagination.js +35 -35
  84. package/dist/components/NSPagination.module.css +24 -24
  85. package/dist/components/NSParentCard.module.css +34 -34
  86. package/dist/components/NSSelectBox.d.ts +16 -16
  87. package/dist/components/NSSelectBox.js +24 -24
  88. package/dist/components/NSSelectBox.module.css +28 -28
  89. package/dist/components/NSTable.d.ts +28 -28
  90. package/dist/components/NSTable.js +20 -20
  91. package/dist/components/NSTable.modules.css +76 -76
  92. package/dist/index.d.ts +1 -1
  93. package/dist/index.js +6 -6
  94. package/dist/main.d.ts +26 -26
  95. package/dist/main.js +26 -26
  96. package/dist/pages/NSLoginPage.d.ts +13 -13
  97. package/dist/pages/NSLoginPage.js +17 -17
  98. package/dist/pages/NSLoginPage.js.map +1 -1
  99. package/package.json +52 -52
  100. package/public/index.html +42 -42
  101. package/public/manifest.json +25 -25
  102. package/public/robots.txt +3 -3
  103. package/src/App.tsx +70 -70
  104. package/src/assets/images/arrow.svg +3 -3
  105. package/src/assets/images/danger.svg +3 -3
  106. package/src/assets/images/exit.svg +3 -3
  107. package/src/assets/images/icon-input-date.svg +9 -9
  108. package/src/assets/images/icon-input-duration.svg +9 -9
  109. package/src/assets/images/icon-input-email.svg +9 -9
  110. package/src/assets/images/icon-input-float.svg +9 -9
  111. package/src/assets/images/icon-input-id.svg +9 -9
  112. package/src/assets/images/icon-input-integer.svg +9 -9
  113. package/src/assets/images/icon-input-phone.svg +9 -9
  114. package/src/assets/images/icon-input-price.svg +9 -9
  115. package/src/assets/images/icon-input-search.svg +4 -4
  116. package/src/assets/images/icon-input-string.svg +9 -9
  117. package/src/assets/images/icon-input-text.svg +9 -9
  118. package/src/assets/images/icon-input-time.svg +9 -9
  119. package/src/assets/images/logo.svg +9 -9
  120. package/src/assets/images/menu.svg +3 -3
  121. package/src/assets/images/namira.svg +9 -9
  122. package/src/assets/images/rectangle.svg +3 -3
  123. package/src/components/NSButtonGreen.tsx +33 -33
  124. package/src/components/NSButtonRed.tsx +33 -33
  125. package/src/components/NSCard.tsx +54 -54
  126. package/src/components/NSFooter.tsx +123 -123
  127. package/src/components/NSHeader.tsx +134 -134
  128. package/src/components/NSInputDate.tsx +57 -57
  129. package/src/components/NSInputDuration.tsx +65 -65
  130. package/src/components/NSInputEmail.module.css +37 -37
  131. package/src/components/NSInputEmail.tsx +92 -92
  132. package/src/components/NSInputFloat.module.css +25 -25
  133. package/src/components/NSInputFloat.tsx +61 -61
  134. package/src/components/NSInputIP.module.css +25 -25
  135. package/src/components/NSInputIP.tsx +65 -65
  136. package/src/components/NSInputInteger.module.css +25 -25
  137. package/src/components/NSInputInteger.tsx +65 -65
  138. package/src/components/NSInputPhone.module.css +32 -32
  139. package/src/components/NSInputPhone.tsx +65 -65
  140. package/src/components/NSInputPrice.module.css +26 -26
  141. package/src/components/NSInputPrice.tsx +68 -68
  142. package/src/components/NSInputSearch.module.css +25 -25
  143. package/src/components/NSInputSearch.tsx +78 -78
  144. package/src/components/NSInputString.module.css +26 -26
  145. package/src/components/NSInputString.tsx +66 -66
  146. package/src/components/NSInputText.module.css +27 -27
  147. package/src/components/NSInputText.tsx +69 -69
  148. package/src/components/NSInputTime.module.css +26 -26
  149. package/src/components/NSInputTime.tsx +65 -65
  150. package/src/components/NSLayout.module.css +16 -16
  151. package/src/components/NSLayout.tsx +30 -30
  152. package/src/components/NSLayoutHeroBanner.module.css +43 -43
  153. package/src/components/NSLayoutHeroBanner.tsx +85 -85
  154. package/src/components/NSLayoutTitle.tsx +25 -25
  155. package/src/components/NSLinkGreen.module.css +15 -15
  156. package/src/components/NSLinkGreen.tsx +43 -43
  157. package/src/components/NSLinkRed.module.css +15 -15
  158. package/src/components/NSLinkRed.tsx +43 -43
  159. package/src/components/NSPagination.module.css +24 -24
  160. package/src/components/NSPagination.tsx +54 -54
  161. package/src/components/NSParentCard.module.css +34 -34
  162. package/src/components/NSParentCard.tsx.temp +58 -58
  163. package/src/components/NSSelectBox.module.css +28 -28
  164. package/src/components/NSSelectBox.tsx +62 -62
  165. package/src/components/NSTable.modules.css +76 -76
  166. package/src/components/NSTable.tsx +64 -64
  167. package/src/index.tsx +7 -7
  168. package/src/main.ts +25 -25
  169. package/src/pages/NSLoginPage.tsx +39 -39
  170. package/src/react-app-env.d.ts +1 -1
  171. package/tsconfig.json +37 -37
  172. package/dist/App.css +0 -0
  173. package/dist/assets/images/background.svg +0 -9
  174. package/dist/assets/images/left-vector.png +0 -0
  175. package/dist/assets/images/left_vector.png +0 -0
  176. package/dist/assets/images/right-vector.png +0 -0
  177. package/dist/assets/images/right_vector.png +0 -0
  178. package/dist/components/NSParentCard.d.ts +0 -0
  179. package/dist/components/NSParentCard.js +0 -2
  180. package/dist/components/NSParentCard.js.map +0 -1
  181. package/dist/index.css +0 -6
@@ -1,3 +1,3 @@
1
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect x="1" y="1" width="18" height="18" rx="3" fill="white" stroke="#848484" stroke-width="2"/>
3
- </svg>
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="1" y="1" width="18" height="18" rx="3" fill="white" stroke="#848484" stroke-width="2"/>
3
+ </svg>
@@ -1,16 +1,16 @@
1
- import React from "react";
2
- interface IProps {
3
- title: string;
4
- onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
5
- }
6
- interface IState {
7
- title: string;
8
- }
9
- interface IState {
10
- }
11
- export declare class NSButtonGreen extends React.Component<IProps, IState> {
12
- constructor(props: IProps);
13
- setTitle(title: string): void;
14
- render(): import("react/jsx-runtime").JSX.Element;
15
- }
16
- export {};
1
+ import React from "react";
2
+ interface IProps {
3
+ title: string;
4
+ onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
5
+ }
6
+ interface IState {
7
+ title: string;
8
+ }
9
+ interface IState {
10
+ }
11
+ export declare class NSButtonGreen extends React.Component<IProps, IState> {
12
+ constructor(props: IProps);
13
+ setTitle(title: string): void;
14
+ render(): import("react/jsx-runtime").JSX.Element;
15
+ }
16
+ export {};
@@ -1,17 +1,17 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import React from "react";
4
- import Style from "./NSButtonGreen.module.css";
5
- export class NSButtonGreen extends React.Component {
6
- constructor(props) {
7
- super(props);
8
- this.state = { title: props.title };
9
- }
10
- setTitle(title) {
11
- this.setState({ title });
12
- }
13
- render() {
14
- return _jsx("button", Object.assign({ onClick: e => this.props.onClick(e), className: Style.ns_button_green }, { children: this.state.title }));
15
- }
16
- }
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Style from "./NSButtonGreen.module.css";
5
+ export class NSButtonGreen extends React.Component {
6
+ constructor(props) {
7
+ super(props);
8
+ this.state = { title: props.title };
9
+ }
10
+ setTitle(title) {
11
+ this.setState({ title });
12
+ }
13
+ render() {
14
+ return _jsx("button", Object.assign({ onClick: e => this.props.onClick(e), className: Style.ns_button_green }, { children: this.state.title }));
15
+ }
16
+ }
17
17
  //# sourceMappingURL=NSButtonGreen.js.map
@@ -1,16 +1,16 @@
1
- import React from "react";
2
- interface IProps {
3
- title: string;
4
- onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
5
- }
6
- interface IState {
7
- title: string;
8
- }
9
- interface IState {
10
- }
11
- export declare class NSButtonRed extends React.Component<IProps, IState> {
12
- constructor(props: IProps);
13
- setTitle(title: string): void;
14
- render(): import("react/jsx-runtime").JSX.Element;
15
- }
16
- export {};
1
+ import React from "react";
2
+ interface IProps {
3
+ title: string;
4
+ onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
5
+ }
6
+ interface IState {
7
+ title: string;
8
+ }
9
+ interface IState {
10
+ }
11
+ export declare class NSButtonRed extends React.Component<IProps, IState> {
12
+ constructor(props: IProps);
13
+ setTitle(title: string): void;
14
+ render(): import("react/jsx-runtime").JSX.Element;
15
+ }
16
+ export {};
@@ -1,17 +1,17 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import React from "react";
4
- import Style from "./NSButtonRed.module.css";
5
- export class NSButtonRed extends React.Component {
6
- constructor(props) {
7
- super(props);
8
- this.state = { title: props.title };
9
- }
10
- setTitle(title) {
11
- this.setState({ title });
12
- }
13
- render() {
14
- return _jsx("button", Object.assign({ onClick: e => this.props.onClick(e), className: Style.ns_button_red }, { children: this.state.title }));
15
- }
16
- }
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Style from "./NSButtonRed.module.css";
5
+ export class NSButtonRed extends React.Component {
6
+ constructor(props) {
7
+ super(props);
8
+ this.state = { title: props.title };
9
+ }
10
+ setTitle(title) {
11
+ this.setState({ title });
12
+ }
13
+ render() {
14
+ return _jsx("button", Object.assign({ onClick: e => this.props.onClick(e), className: Style.ns_button_red }, { children: this.state.title }));
15
+ }
16
+ }
17
17
  //# sourceMappingURL=NSButtonRed.js.map
@@ -1,20 +1,20 @@
1
- import { Component } from 'react';
2
- interface IProps {
3
- title: string;
4
- description?: string;
5
- image: {
6
- src: string;
7
- alt: string;
8
- };
9
- link?: {
10
- text: string;
11
- href: string;
12
- target?: string;
13
- };
14
- }
15
- interface IStart {
16
- }
17
- export declare class NSCard extends Component<IProps, IStart> {
18
- render(): import("react/jsx-runtime").JSX.Element;
19
- }
20
- export {};
1
+ import { Component } from 'react';
2
+ interface IProps {
3
+ title: string;
4
+ description?: string;
5
+ image: {
6
+ src: string;
7
+ alt: string;
8
+ };
9
+ link?: {
10
+ text: string;
11
+ href: string;
12
+ target?: string;
13
+ };
14
+ }
15
+ interface IStart {
16
+ }
17
+ export declare class NSCard extends Component<IProps, IStart> {
18
+ render(): import("react/jsx-runtime").JSX.Element;
19
+ }
20
+ export {};
@@ -1,13 +1,13 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
- import { Component } from 'react';
4
- import Styles from './NSCard.module.css';
5
- export class NSCard extends Component {
6
- render() {
7
- var _a;
8
- const { title, image, description, link } = this.props;
9
- return (_jsx(_Fragment, { children: _jsxs("article", Object.assign({ className: Styles.ns_card }, { children: [_jsxs("div", Object.assign({ className: Styles.ns_card_detail_container }, { children: [_jsxs("div", Object.assign({ className: Styles.ns_card_title_img }, { children: [_jsx("h3", Object.assign({ className: Styles.card_title }, { children: title })), _jsx("img", { className: Styles.card_img, src: image.src, alt: image.alt })] })), _jsx("p", Object.assign({ className: Styles.card_description }, { children: description }))] })), link &&
10
- _jsx("div", { children: _jsx("a", Object.assign({ className: Styles.ns_card_link, href: link.href, target: (_a = link.target) !== null && _a !== void 0 ? _a : "_self" }, { children: link.text })) })] })) }));
11
- }
12
- }
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { Component } from 'react';
4
+ import Styles from './NSCard.module.css';
5
+ export class NSCard extends Component {
6
+ render() {
7
+ var _a;
8
+ const { title, image, description, link } = this.props;
9
+ return (_jsx(_Fragment, { children: _jsxs("article", Object.assign({ className: Styles.ns_card }, { children: [_jsxs("div", Object.assign({ className: Styles.ns_card_detail_container }, { children: [_jsxs("div", Object.assign({ className: Styles.ns_card_title_img }, { children: [_jsx("h3", Object.assign({ className: Styles.card_title }, { children: title })), _jsx("img", { className: Styles.card_img, src: image.src, alt: image.alt })] })), _jsx("p", Object.assign({ className: Styles.card_description }, { children: description }))] })), link &&
10
+ _jsx("div", { children: _jsx("a", Object.assign({ className: Styles.ns_card_link, href: link.href, target: (_a = link.target) !== null && _a !== void 0 ? _a : "_self" }, { children: link.text })) })] })) }));
11
+ }
12
+ }
13
13
  //# sourceMappingURL=NSCard.js.map
@@ -1,20 +1,20 @@
1
- import React from "react";
2
- import { FilterLinkRow } from 'namirasoft-api-link';
3
- interface IProps {
4
- scope: string;
5
- name: string;
6
- logo: string;
7
- }
8
- interface IState {
9
- filters: FilterLinkRow[];
10
- selected: FilterLinkRow | null;
11
- }
12
- export declare class NSFooter extends React.Component<IProps, IState> {
13
- constructor(props: IProps);
14
- componentDidMount(): void;
15
- private hasChild;
16
- render(): import("react/jsx-runtime").JSX.Element;
17
- private render_menu;
18
- private render_menuItem;
19
- }
20
- export {};
1
+ import React from "react";
2
+ import { FilterLinkRow } from 'namirasoft-api-link';
3
+ interface IProps {
4
+ scope: string;
5
+ name: string;
6
+ logo: string;
7
+ }
8
+ interface IState {
9
+ filters: FilterLinkRow[];
10
+ selected: FilterLinkRow | null;
11
+ }
12
+ export declare class NSFooter extends React.Component<IProps, IState> {
13
+ constructor(props: IProps);
14
+ componentDidMount(): void;
15
+ private hasChild;
16
+ render(): import("react/jsx-runtime").JSX.Element;
17
+ private render_menu;
18
+ private render_menuItem;
19
+ }
20
+ export {};
@@ -1,47 +1,47 @@
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 "./NSFooter.module.css";
5
- import { NamirasoftAPILinkServer } from 'namirasoft-api-link';
6
- export class NSFooter extends React.Component {
7
- constructor(props) {
8
- super(props);
9
- this.state = {
10
- filters: [],
11
- selected: null
12
- };
13
- this.hasChild = this.hasChild.bind(this);
14
- this.render_menu = this.render_menu.bind(this);
15
- this.render_menuItem = this.render_menuItem.bind(this);
16
- }
17
- componentDidMount() {
18
- let server = new NamirasoftAPILinkServer(console.error);
19
- server.filter.GetFilters(this.props.scope, this.props.name).then(filters => {
20
- this.setState({ filters });
21
- });
22
- }
23
- hasChild(id) {
24
- return this.state.filters.filter(f => f.parent_id === id).length > 0;
25
- }
26
- render() {
27
- return (_jsx("div", Object.assign({ className: Styles.ns_footer }, { children: _jsxs("div", Object.assign({ className: `container ${Styles.ns_package_footer}` }, { children: [_jsxs("div", Object.assign({ className: `${Styles.ns_footer_parent_items}` }, { children: [_jsx("div", Object.assign({ className: `${Styles.ns_footer_project_logo_tablet}` }, { children: _jsx("a", Object.assign({ href: "/" }, { children: _jsx("img", { src: this.props.logo, alt: 'Logo', width: 80, height: 80 }) })) })), _jsx("div", Object.assign({ className: `${Styles.ns_footer_menu_container}` }, { children: this.render_menu(0, null) })), _jsx("div", Object.assign({ className: `${Styles.ns_footer_namira_logo_tablet}` }, { children: _jsx("a", Object.assign({ href: "/" }, { children: _jsx("img", { src: "https://static.namirasoft.com/logo/namirasoft/name.png", alt: 'Namira Software Corporation Logo', width: 80, height: 80 }) })) }))] })), _jsxs("div", Object.assign({ className: `${Styles.ns_footer_logos_mobile}` }, { children: [_jsx("div", { children: _jsx("a", Object.assign({ href: "/" }, { children: _jsx("img", { src: this.props.logo, alt: 'Logo', width: 80, height: 80 }) })) }), _jsx("div", { children: _jsx("a", Object.assign({ href: "/" }, { children: _jsx("img", { src: "https://static.namirasoft.com/logo/namirasoft/name.png", alt: 'Namira Software Corporation Logo', width: 80, height: 80 }) })) })] })), _jsxs("div", Object.assign({ className: `${Styles.ns_footer_copyright}` }, { children: [_jsxs("span", { children: [" \u00A9Copyright 2010 - ", new Date().getFullYear(), " "] }), _jsx("a", Object.assign({ href: "https://namirasoft.com/", target: "_blank", rel: "noopener noreferrer" }, { children: " Namira Software Corporation" })), ". All rights reserved."] }))] })) })));
28
- }
29
- render_menu(level, parent_id) {
30
- var _a;
31
- let fs = (_a = this.state.filters) === null || _a === void 0 ? void 0 : _a.filter(f => f.parent_id === parent_id);
32
- return (_jsx(_Fragment, { children: (fs === null || fs === void 0 ? void 0 : fs.map(f => this.render_menuItem(level, f))) }));
33
- }
34
- render_menuItem(level, filter) {
35
- var _a;
36
- if (this.hasChild(filter.id)) {
37
- return (_jsx(_Fragment, { children: _jsxs("ul", Object.assign({ id: `dropdown_parent${filter.id}` }, { children: [filter.name, this.render_menu(1, filter.id)] })) }));
38
- }
39
- else if (level === 0) {
40
- return (_jsx(_Fragment, { children: _jsx("ul", Object.assign({ id: `dropdown_parent${filter.id}` }, { children: filter.name })) }));
41
- }
42
- else {
43
- return (_jsx("a", Object.assign({ href: (_a = filter.link) === null || _a === void 0 ? void 0 : _a.url }, { children: _jsx("li", Object.assign({ className: "mb-2" }, { children: filter.name })) })));
44
- }
45
- }
46
- }
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 "./NSFooter.module.css";
5
+ import { NamirasoftAPILinkServer } from 'namirasoft-api-link';
6
+ export class NSFooter extends React.Component {
7
+ constructor(props) {
8
+ super(props);
9
+ this.state = {
10
+ filters: [],
11
+ selected: null
12
+ };
13
+ this.hasChild = this.hasChild.bind(this);
14
+ this.render_menu = this.render_menu.bind(this);
15
+ this.render_menuItem = this.render_menuItem.bind(this);
16
+ }
17
+ componentDidMount() {
18
+ let server = new NamirasoftAPILinkServer(console.error);
19
+ server.filter.GetFilters(this.props.scope, this.props.name).then(filters => {
20
+ this.setState({ filters });
21
+ });
22
+ }
23
+ hasChild(id) {
24
+ return this.state.filters.filter(f => f.parent_id === id).length > 0;
25
+ }
26
+ render() {
27
+ return (_jsx("div", Object.assign({ className: Styles.ns_footer }, { children: _jsxs("div", Object.assign({ className: `container ${Styles.ns_package_footer}` }, { children: [_jsxs("div", Object.assign({ className: `${Styles.ns_footer_parent_items}` }, { children: [_jsx("div", Object.assign({ className: `${Styles.ns_footer_project_logo_tablet}` }, { children: _jsx("a", Object.assign({ href: "/" }, { children: _jsx("img", { src: this.props.logo, alt: 'Logo', width: 80, height: 80 }) })) })), _jsx("div", Object.assign({ className: `${Styles.ns_footer_menu_container}` }, { children: this.render_menu(0, null) })), _jsx("div", Object.assign({ className: `${Styles.ns_footer_namira_logo_tablet}` }, { children: _jsx("a", Object.assign({ href: "/" }, { children: _jsx("img", { src: "https://static.namirasoft.com/logo/namirasoft/name.png", alt: 'Namira Software Corporation Logo', width: 80, height: 80 }) })) }))] })), _jsxs("div", Object.assign({ className: `${Styles.ns_footer_logos_mobile}` }, { children: [_jsx("div", { children: _jsx("a", Object.assign({ href: "/" }, { children: _jsx("img", { src: this.props.logo, alt: 'Logo', width: 80, height: 80 }) })) }), _jsx("div", { children: _jsx("a", Object.assign({ href: "/" }, { children: _jsx("img", { src: "https://static.namirasoft.com/logo/namirasoft/name.png", alt: 'Namira Software Corporation Logo', width: 80, height: 80 }) })) })] })), _jsxs("div", Object.assign({ className: `${Styles.ns_footer_copyright}` }, { children: [_jsxs("span", { children: [" \u00A9Copyright 2010 - ", new Date().getFullYear(), " "] }), _jsx("a", Object.assign({ href: "https://namirasoft.com/", target: "_blank", rel: "noopener noreferrer" }, { children: " Namira Software Corporation" })), ". All rights reserved."] }))] })) })));
28
+ }
29
+ render_menu(level, parent_id) {
30
+ var _a;
31
+ let fs = (_a = this.state.filters) === null || _a === void 0 ? void 0 : _a.filter(f => f.parent_id === parent_id);
32
+ return (_jsx(_Fragment, { children: (fs === null || fs === void 0 ? void 0 : fs.map(f => this.render_menuItem(level, f))) }));
33
+ }
34
+ render_menuItem(level, filter) {
35
+ var _a;
36
+ if (this.hasChild(filter.id)) {
37
+ return (_jsx(_Fragment, { children: _jsxs("ul", Object.assign({ id: `dropdown_parent${filter.id}` }, { children: [filter.name, this.render_menu(1, filter.id)] })) }));
38
+ }
39
+ else if (level === 0) {
40
+ return (_jsx(_Fragment, { children: _jsx("ul", Object.assign({ id: `dropdown_parent${filter.id}` }, { children: filter.name })) }));
41
+ }
42
+ else {
43
+ return (_jsx("a", Object.assign({ href: (_a = filter.link) === null || _a === void 0 ? void 0 : _a.url }, { children: _jsx("li", Object.assign({ className: "mb-2" }, { children: filter.name })) })));
44
+ }
45
+ }
46
+ }
47
47
  //# sourceMappingURL=NSFooter.js.map
@@ -1,23 +1,23 @@
1
- import React from "react";
2
- import { FilterLinkRow } from 'namirasoft-api-link';
3
- interface IProps {
4
- scope: string;
5
- name: string;
6
- logo: string;
7
- }
8
- interface IState {
9
- filters: FilterLinkRow[];
10
- selected: FilterLinkRow | null;
11
- showNavbar: boolean;
12
- }
13
- export declare class NSHeader extends React.Component<IProps, IState> {
14
- constructor(props: IProps);
15
- componentDidMount(): void;
16
- private onMenuItemToggled;
17
- private hasChild;
18
- handleShowNavbar(): void;
19
- render(): import("react/jsx-runtime").JSX.Element;
20
- private render_menu;
21
- private render_menuItem;
22
- }
23
- export {};
1
+ import React from "react";
2
+ import { FilterLinkRow } from 'namirasoft-api-link';
3
+ interface IProps {
4
+ scope: string;
5
+ name: string;
6
+ logo: string;
7
+ }
8
+ interface IState {
9
+ filters: FilterLinkRow[];
10
+ selected: FilterLinkRow | null;
11
+ showNavbar: boolean;
12
+ }
13
+ export declare class NSHeader extends React.Component<IProps, IState> {
14
+ constructor(props: IProps);
15
+ componentDidMount(): void;
16
+ private onMenuItemToggled;
17
+ private hasChild;
18
+ handleShowNavbar(): void;
19
+ render(): import("react/jsx-runtime").JSX.Element;
20
+ private render_menu;
21
+ private render_menuItem;
22
+ }
23
+ export {};
@@ -1,61 +1,61 @@
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 "./NSHeader.module.css";
5
- import NavDropdown from 'react-bootstrap/NavDropdown';
6
- import { NamirasoftAPILinkServer } from 'namirasoft-api-link';
7
- export class NSHeader extends React.Component {
8
- constructor(props) {
9
- super(props);
10
- this.state = {
11
- filters: [],
12
- selected: null,
13
- showNavbar: false
14
- };
15
- this.hasChild = this.hasChild.bind(this);
16
- this.onMenuItemToggled = this.onMenuItemToggled.bind(this);
17
- this.render_menu = this.render_menu.bind(this);
18
- this.render_menuItem = this.render_menuItem.bind(this);
19
- this.handleShowNavbar = this.handleShowNavbar.bind(this);
20
- }
21
- componentDidMount() {
22
- let server = new NamirasoftAPILinkServer(console.error);
23
- server.filter.GetFilters(this.props.scope, this.props.name).then(filters => {
24
- this.setState({ filters });
25
- });
26
- }
27
- onMenuItemToggled(checked, selected) {
28
- if (checked)
29
- this.setState({ selected });
30
- }
31
- hasChild(id) {
32
- return this.state.filters.filter(f => f.parent_id === id).length > 0;
33
- }
34
- handleShowNavbar() {
35
- this.setState({ showNavbar: !this.state.showNavbar });
36
- }
37
- render() {
38
- return (_jsx("nav", Object.assign({ className: Styles.ns_navbar }, { children: _jsxs("div", Object.assign({ className: `${Styles.ns_navbar_parent_content} container` }, { children: [_jsx("img", { src: this.props.logo, alt: "Logo", width: 48, height: 48 }), _jsxs("div", Object.assign({ className: `${Styles.ns_navbar_content} ` }, { children: [_jsx("div", Object.assign({ className: `${Styles.ns_navbar_elements} ${this.state.showNavbar && Styles.ns_navbar_active}` }, { children: this.render_menu(0, null) })), _jsxs("div", Object.assign({ className: `${Styles.ns_navbar_login_status}` }, { children: [_jsx("span", Object.assign({ className: `${Styles.ns_navbar_usersname}` }, { children: "name" })), _jsx("img", { src: '../assets/images/exit.svg', alt: "Exit", width: 20, height: 20 })] })), _jsx("div", Object.assign({ className: Styles.ns_navbar_menu_icon, onClick: this.handleShowNavbar }, { children: _jsx("img", { src: '../assets/images/menu.svg', alt: "Menu", width: 19, height: 17 }) }))] }))] })) })));
39
- }
40
- render_menu(level, parent_id) {
41
- var _a;
42
- let fs = (_a = this.state.filters) === null || _a === void 0 ? void 0 : _a.filter(f => f.parent_id === parent_id);
43
- return (_jsx("div", Object.assign({ className: `me-auto nav ${Styles.ns_navbar_items_container}` }, { children: (fs === null || fs === void 0 ? void 0 : fs.map(f => this.render_menuItem(level, f))) })));
44
- }
45
- render_menuItem(level, filter) {
46
- var _a;
47
- if (this.hasChild(filter.id)) {
48
- let sub_menus = _jsx(_Fragment, {});
49
- if (level === 0)
50
- if (this.state.selected) {
51
- sub_menus =
52
- _jsx("div", Object.assign({ id: `dropdown_items${filter.id}` }, { children: this.render_menu(1, this.state.selected.id) }));
53
- }
54
- return (_jsx(_Fragment, { children: _jsx(NavDropdown, Object.assign({ onToggle: (checked) => this.onMenuItemToggled(checked, filter), className: level === 0 ? Styles.ns_navbar_first_level_item : Styles.ns_navbar_second_level_item, title: filter.name, id: `dropdown_parent${filter.id}` }, { children: sub_menus })) }));
55
- }
56
- else {
57
- return (_jsx("a", Object.assign({ className: `${Styles.ns_navbar_items_link} ${level === 0 ? Styles.ns_navbar_first_level_item : Styles.ns_navbar_second_level_item}`, href: (_a = filter.link) === null || _a === void 0 ? void 0 : _a.url }, { children: filter.name })));
58
- }
59
- }
60
- }
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 "./NSHeader.module.css";
5
+ import NavDropdown from 'react-bootstrap/NavDropdown';
6
+ import { NamirasoftAPILinkServer } from 'namirasoft-api-link';
7
+ export class NSHeader extends React.Component {
8
+ constructor(props) {
9
+ super(props);
10
+ this.state = {
11
+ filters: [],
12
+ selected: null,
13
+ showNavbar: false
14
+ };
15
+ this.hasChild = this.hasChild.bind(this);
16
+ this.onMenuItemToggled = this.onMenuItemToggled.bind(this);
17
+ this.render_menu = this.render_menu.bind(this);
18
+ this.render_menuItem = this.render_menuItem.bind(this);
19
+ this.handleShowNavbar = this.handleShowNavbar.bind(this);
20
+ }
21
+ componentDidMount() {
22
+ let server = new NamirasoftAPILinkServer(console.error);
23
+ server.filter.GetFilters(this.props.scope, this.props.name).then(filters => {
24
+ this.setState({ filters });
25
+ });
26
+ }
27
+ onMenuItemToggled(checked, selected) {
28
+ if (checked)
29
+ this.setState({ selected });
30
+ }
31
+ hasChild(id) {
32
+ return this.state.filters.filter(f => f.parent_id === id).length > 0;
33
+ }
34
+ handleShowNavbar() {
35
+ this.setState({ showNavbar: !this.state.showNavbar });
36
+ }
37
+ render() {
38
+ return (_jsx("nav", Object.assign({ className: Styles.ns_navbar }, { children: _jsxs("div", Object.assign({ className: `${Styles.ns_navbar_parent_content} container` }, { children: [_jsx("img", { src: this.props.logo, alt: "Logo", width: 48, height: 48 }), _jsxs("div", Object.assign({ className: `${Styles.ns_navbar_content} ` }, { children: [_jsx("div", Object.assign({ className: `${Styles.ns_navbar_elements} ${this.state.showNavbar && Styles.ns_navbar_active}` }, { children: this.render_menu(0, null) })), _jsxs("div", Object.assign({ className: `${Styles.ns_navbar_login_status}` }, { children: [_jsx("span", Object.assign({ className: `${Styles.ns_navbar_usersname}` }, { children: "name" })), _jsx("img", { src: '../assets/images/exit.svg', alt: "Exit", width: 20, height: 20 })] })), _jsx("div", Object.assign({ className: Styles.ns_navbar_menu_icon, onClick: this.handleShowNavbar }, { children: _jsx("img", { src: '../assets/images/menu.svg', alt: "Menu", width: 19, height: 17 }) }))] }))] })) })));
39
+ }
40
+ render_menu(level, parent_id) {
41
+ var _a;
42
+ let fs = (_a = this.state.filters) === null || _a === void 0 ? void 0 : _a.filter(f => f.parent_id === parent_id);
43
+ return (_jsx("div", Object.assign({ className: `me-auto nav ${Styles.ns_navbar_items_container}` }, { children: (fs === null || fs === void 0 ? void 0 : fs.map(f => this.render_menuItem(level, f))) })));
44
+ }
45
+ render_menuItem(level, filter) {
46
+ var _a;
47
+ if (this.hasChild(filter.id)) {
48
+ let sub_menus = _jsx(_Fragment, {});
49
+ if (level === 0)
50
+ if (this.state.selected) {
51
+ sub_menus =
52
+ _jsx("div", Object.assign({ id: `dropdown_items${filter.id}` }, { children: this.render_menu(1, this.state.selected.id) }));
53
+ }
54
+ return (_jsx(_Fragment, { children: _jsx(NavDropdown, Object.assign({ onToggle: (checked) => this.onMenuItemToggled(checked, filter), className: level === 0 ? Styles.ns_navbar_first_level_item : Styles.ns_navbar_second_level_item, title: filter.name, id: `dropdown_parent${filter.id}` }, { children: sub_menus })) }));
55
+ }
56
+ else {
57
+ return (_jsx("a", Object.assign({ className: `${Styles.ns_navbar_items_link} ${level === 0 ? Styles.ns_navbar_first_level_item : Styles.ns_navbar_second_level_item}`, href: (_a = filter.link) === null || _a === void 0 ? void 0 : _a.url }, { children: filter.name })));
58
+ }
59
+ }
60
+ }
61
61
  //# sourceMappingURL=NSHeader.js.map
@@ -1,15 +1,15 @@
1
- import React from "react";
2
- interface IProps {
3
- title: string;
4
- }
5
- interface IState {
6
- value: string;
7
- }
8
- export declare class NSInputDate extends React.Component<IProps, IState> {
9
- constructor(props: IProps);
10
- setValue(e: React.ChangeEvent<HTMLInputElement>): void;
11
- setDefaultValue(value: string): void;
12
- getValue(): string;
13
- render(): import("react/jsx-runtime").JSX.Element;
14
- }
15
- export {};
1
+ import React from "react";
2
+ interface IProps {
3
+ title: string;
4
+ }
5
+ interface IState {
6
+ value: string;
7
+ }
8
+ export declare class NSInputDate extends React.Component<IProps, IState> {
9
+ constructor(props: IProps);
10
+ setValue(e: React.ChangeEvent<HTMLInputElement>): void;
11
+ setDefaultValue(value: string): void;
12
+ getValue(): string;
13
+ render(): import("react/jsx-runtime").JSX.Element;
14
+ }
15
+ export {};
@@ -1,28 +1,28 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import React from "react";
4
- import Styles from "./NSInputDate.module.css";
5
- export class NSInputDate extends React.Component {
6
- constructor(props) {
7
- super(props);
8
- this.state = {
9
- value: "",
10
- };
11
- this.setValue = this.setValue.bind(this);
12
- this.getValue = this.getValue.bind(this);
13
- this.setDefaultValue = this.setDefaultValue.bind(this);
14
- }
15
- setValue(e) {
16
- this.setState({ value: e.target.value });
17
- }
18
- setDefaultValue(value) {
19
- this.setState({ value });
20
- }
21
- getValue() {
22
- return this.state.value;
23
- }
24
- render() {
25
- return (_jsxs("div", Object.assign({ className: `${Styles.ns_parent_input} p-2` }, { children: [_jsx("span", Object.assign({ className: Styles.ns_input_title }, { children: this.props.title })), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "date", className: Styles.ns_input, placeholder: "YYYY/MM/DD", id: "ns-input-date" })] })));
26
- }
27
- }
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Styles from "./NSInputDate.module.css";
5
+ export class NSInputDate extends React.Component {
6
+ constructor(props) {
7
+ super(props);
8
+ this.state = {
9
+ value: "",
10
+ };
11
+ this.setValue = this.setValue.bind(this);
12
+ this.getValue = this.getValue.bind(this);
13
+ this.setDefaultValue = this.setDefaultValue.bind(this);
14
+ }
15
+ setValue(e) {
16
+ this.setState({ value: e.target.value });
17
+ }
18
+ setDefaultValue(value) {
19
+ this.setState({ value });
20
+ }
21
+ getValue() {
22
+ return this.state.value;
23
+ }
24
+ render() {
25
+ return (_jsxs("div", Object.assign({ className: `${Styles.ns_parent_input} p-2` }, { children: [_jsx("span", Object.assign({ className: Styles.ns_input_title }, { children: this.props.title })), _jsx("input", { value: this.state.value, onChange: this.setValue, type: "date", className: Styles.ns_input, placeholder: "YYYY/MM/DD", id: "ns-input-date" })] })));
26
+ }
27
+ }
28
28
  //# sourceMappingURL=NSInputDate.js.map