namirasoft-site-react 1.3.265 → 1.3.267

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.
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
+ import { IValidationProps } from "../props/IValidationProps";
4
+ import { BaseOptionType } from "antd/es/select";
5
+ export interface INSBoxComboOption extends BaseOptionType {
6
+ desc: string;
7
+ value: string;
8
+ }
9
+ export interface INSBoxComboProps extends IBaseComponentProps, IValidationProps {
10
+ title: string;
11
+ options: INSBoxComboOption[];
12
+ multiple: boolean;
13
+ customClass?: string;
14
+ placeholder?: string;
15
+ defaultValue?: string;
16
+ onChanged?: (e: NSBoxCombo) => void;
17
+ searchable: boolean;
18
+ }
19
+ export interface INSBoxComboState {
20
+ value: string | null;
21
+ values: string[];
22
+ error?: string;
23
+ }
24
+ export declare class NSBoxCombo extends React.Component<INSBoxComboProps, INSBoxComboState> {
25
+ constructor(props: INSBoxComboProps);
26
+ getError(value: string): string | null;
27
+ getValue(): string | null;
28
+ getValues(): string[];
29
+ setValue(value: string | null): void;
30
+ setValues(values: string[]): void;
31
+ onChange(value: string | null | string[]): void;
32
+ render(): import("react/jsx-runtime").JSX.Element;
33
+ }
@@ -0,0 +1,65 @@
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 "./NSBoxCombo.module.css";
5
+ import { Select, Space } from 'antd';
6
+ import IconSelectBox from '../assets/images/icon-select-box.svg';
7
+ import { Validator } from "../Validator";
8
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
9
+ export class NSBoxCombo extends React.Component {
10
+ constructor(props) {
11
+ super(props);
12
+ this.state = {
13
+ value: null,
14
+ values: [],
15
+ };
16
+ this.getValues = this.getValues.bind(this);
17
+ this.setValues = this.setValues.bind(this);
18
+ this.setValue = this.setValue.bind(this);
19
+ this.getValue = this.getValue.bind(this);
20
+ this.onChange = this.onChange.bind(this);
21
+ }
22
+ getError(value) {
23
+ return (Validator.getError(this.props.title, value, this.props));
24
+ }
25
+ getValue() {
26
+ let error = this.getError(this.state.value || "");
27
+ if (error) {
28
+ this.setState({ error });
29
+ throw new Error(error);
30
+ }
31
+ return this.state.value;
32
+ }
33
+ getValues() {
34
+ this.state.values.forEach(value => {
35
+ let error = this.getError(value || "");
36
+ if (error) {
37
+ this.setState({ error });
38
+ throw new Error(error);
39
+ }
40
+ });
41
+ return this.state.values;
42
+ }
43
+ setValue(value) {
44
+ this.setState({ value }, () => {
45
+ if (this.props.onChanged)
46
+ this.props.onChanged(this);
47
+ });
48
+ }
49
+ setValues(values) {
50
+ this.setState({ values }, () => {
51
+ if (this.props.onChanged)
52
+ this.props.onChanged(this);
53
+ });
54
+ }
55
+ onChange(value) {
56
+ if (this.props.multiple)
57
+ this.setValues(value);
58
+ else
59
+ this.setValue(value);
60
+ }
61
+ render() {
62
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { id: this.props.id, className: `${Styles.ns_input_parent} ${this.props.customClass}`, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx(Select, { showSearch: this.props.searchable ? true : undefined, mode: this.props.multiple ? "multiple" : undefined, style: { width: '100%' }, className: Styles.ns_input_select, placeholder: this.props.placeholder, onChange: this.onChange, optionLabelProp: "label", options: this.props.options, optionRender: (option) => (_jsx(Space, { className: Styles.ns_input_select_option, children: option.data.desc })), suffixIcon: _jsx("img", { src: IconSelectBox, alt: "SelectBox Icon" }) })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error, clearError: () => this.setState({ error: "" }) })] }));
63
+ }
64
+ }
65
+ //# sourceMappingURL=NSBoxCombo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxCombo.js","sourceRoot":"","sources":["../../src/components/NSBoxCombo.tsx"],"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CAAC;CACD"}
@@ -0,0 +1,39 @@
1
+ .ns_input_parent {
2
+ width: 100%;
3
+ max-width: 100%;
4
+ color: #141B5C;
5
+ }
6
+
7
+ .ns_input_select {
8
+ height: 48px;
9
+ border: 1px solid #000 !important;
10
+ border-radius: 8px;
11
+ overflow: hidden;
12
+ width: 100% !important;
13
+ }
14
+
15
+ .ns_input_select span span svg path {
16
+ height: 24px !important;
17
+ width: 24px !important;
18
+ }
19
+
20
+ .ns_input_select span span svg {
21
+ height: 24px !important;
22
+ width: 24px !important;
23
+ }
24
+
25
+ .ns_input_select span span span svg path {
26
+ height: 12px !important;
27
+ width: 12px !important;
28
+ }
29
+
30
+ .ns_input_select span span span svg {
31
+ height: 12px !important;
32
+ width: 12px !important;
33
+ }
34
+
35
+ @media only screen and (min-width: 380px) {
36
+ .ns_input_parent {
37
+ width: 272px;
38
+ }
39
+ }
@@ -1,32 +1,19 @@
1
1
  import React from "react";
2
- import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
- import { IValidationProps } from "../props/IValidationProps";
4
- import { BaseOptionType } from "antd/es/select";
5
- export interface INSBoxEnumOption extends BaseOptionType {
6
- desc: string;
7
- value: string;
2
+ import { INSBoxComboProps, NSBoxCombo } from "./NSBoxCombo";
3
+ export interface INSBoxEnumProps extends INSBoxComboProps {
4
+ options: any;
8
5
  }
9
- export interface INSBoxEnumProps extends IBaseComponentProps, IValidationProps {
10
- title: string;
11
- options: INSBoxEnumOption[];
12
- multiple: boolean;
13
- customClass?: string;
14
- placeholder?: string;
15
- defaultValue?: string;
16
- onChanged?: (e: NSBoxEnum) => void;
17
- }
18
- export interface INSBoxEnumState {
19
- value: string | null;
20
- values: string[];
21
- error?: string;
22
- }
23
- export declare class NSBoxEnum extends React.Component<INSBoxEnumProps, INSBoxEnumState> {
6
+ export declare class NSBoxEnum extends React.Component<INSBoxEnumProps> {
7
+ NSBoxCombo: React.RefObject<NSBoxCombo>;
24
8
  constructor(props: INSBoxEnumProps);
25
9
  getError(value: string): string | null;
26
- getValue(): string | null;
27
- getValues(): string[];
10
+ getValue<T>(enumObj: {
11
+ [s: string]: T;
12
+ }, _default: T): T | null;
13
+ getValues<T>(enumObj: {
14
+ [s: string]: T;
15
+ }, _default: T): T[];
28
16
  setValue(value: string | null): void;
29
17
  setValues(values: string[]): void;
30
- onChange(value: string | null | string[]): void;
31
18
  render(): import("react/jsx-runtime").JSX.Element;
32
19
  }
@@ -1,66 +1,46 @@
1
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 "./NSBoxEnum.module.css";
5
- import { Select, Space } from 'antd';
6
- import IconSelectBox from '../assets/images/icon-select-box.svg';
7
- import { Validator } from "../Validator";
8
- import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import React, { createRef } from "react";
4
+ import { ObjectService } from "namirasoft-core";
5
+ import { NSBoxCombo } from "./NSBoxCombo";
9
6
  export class NSBoxEnum extends React.Component {
10
7
  constructor(props) {
11
8
  super(props);
12
- this.state = {
13
- value: null,
14
- values: [],
15
- };
9
+ this.NSBoxCombo = createRef();
16
10
  this.getValues = this.getValues.bind(this);
17
11
  this.setValues = this.setValues.bind(this);
18
12
  this.setValue = this.setValue.bind(this);
19
13
  this.getValue = this.getValue.bind(this);
20
- this.onChange = this.onChange.bind(this);
21
14
  }
22
15
  getError(value) {
23
- return (Validator.getError(this.props.title, value, this.props));
16
+ var _a, _b;
17
+ return (_b = (_a = this.NSBoxCombo.current) === null || _a === void 0 ? void 0 : _a.getError(value)) !== null && _b !== void 0 ? _b : null;
24
18
  }
25
- getValue() {
26
- let error = this.getError(this.state.value || "");
27
- if (error) {
28
- this.setState({ error });
29
- throw new Error(error);
30
- }
31
- return this.state.value;
19
+ getValue(enumObj, _default) {
20
+ var _a;
21
+ return new ObjectService((_a = this.NSBoxCombo.current) === null || _a === void 0 ? void 0 : _a.getValue()).getEnum(enumObj, _default);
32
22
  }
33
- getValues() {
34
- this.state.values.forEach(value => {
35
- let error = this.getError(value || "");
36
- if (error) {
37
- this.setState({ error });
38
- throw new Error(error);
39
- }
40
- });
41
- return this.state.values;
23
+ getValues(enumObj, _default) {
24
+ var _a, _b;
25
+ let values = (_b = (_a = this.NSBoxCombo.current) === null || _a === void 0 ? void 0 : _a.getValues()) !== null && _b !== void 0 ? _b : [];
26
+ return values.map(value => new ObjectService(value).getEnum(enumObj, _default));
42
27
  }
43
28
  setValue(value) {
44
- this.setState({ value }, () => {
45
- if (this.props.onChanged)
46
- this.props.onChanged(this);
47
- });
29
+ var _a;
30
+ (_a = this.NSBoxCombo.current) === null || _a === void 0 ? void 0 : _a.setValue(value);
48
31
  }
49
32
  setValues(values) {
50
- this.setState({ values }, () => {
51
- if (this.props.onChanged)
52
- this.props.onChanged(this);
53
- });
54
- }
55
- onChange(value) {
56
- if (this.props.multiple)
57
- this.setValues(value);
58
- else
59
- this.setValue(value);
33
+ var _a;
34
+ (_a = this.NSBoxCombo.current) === null || _a === void 0 ? void 0 : _a.setValues(values);
60
35
  }
61
36
  render() {
62
- var _a;
63
- return (_jsxs(_Fragment, { children: [_jsxs("div", { id: this.props.id, className: `${Styles.ns_input_parent} ${this.props.customClass}`, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsx(Select, { mode: this.props.multiple ? "multiple" : undefined, style: { width: '100%' }, className: Styles.ns_input_select, placeholder: (_a = this.props.placeholder) !== null && _a !== void 0 ? _a : "Combo Box", onChange: this.onChange, optionLabelProp: "label", options: this.props.options, optionRender: (option) => (_jsx(Space, { className: Styles.ns_input_select_option, children: option.data.desc })), suffixIcon: _jsx("img", { src: IconSelectBox, alt: "SelectBox Icon" }) })] }), _jsx(NSBoxErrorNotifier, { error: this.state.error, clearError: () => this.setState({ error: "" }) })] }));
37
+ let options = Object.keys(this.props.options).map(key => {
38
+ return {
39
+ desc: key,
40
+ value: key,
41
+ };
42
+ });
43
+ return (_jsx(NSBoxCombo, Object.assign({ ref: this.NSBoxCombo }, this.props, { options: options })));
64
44
  }
65
45
  }
66
46
  //# sourceMappingURL=NSBoxEnum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSBoxEnum.js","sourceRoot":"","sources":["../../src/components/NSBoxEnum.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,aAAa,MAAM,sCAAsC,CAAC;AAGjE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AA2B1D,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,SAA2C;IAE/E,YAAY,KAAsB;QAEjC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACZ,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,EAAE;SACV,CAAC;QACF,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3C,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,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IACD,QAAQ,CAAC,KAAa;QAErB,OAAO,CAC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OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC1F,CAAC;IACD,SAAS,CAAI,OAA2B,EAAE,QAAW;;QAEpD,IAAI,MAAM,GAAG,MAAA,MAAA,IAAI,CAAC,UAAU,CAAC,OAAO,0CAAE,SAAS,EAAE,mCAAI,EAAE,CAAC;QACxD,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IACjF,CAAC;IACD,QAAQ,CAAC,KAAoB;;QAE5B,MAAA,IAAI,CAAC,UAAU,CAAC,OAAO,0CAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IACD,SAAS,CAAC,MAAgB;;QAEzB,MAAA,IAAI,CAAC,UAAU,CAAC,OAAO,0CAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IACQ,MAAM;QAEd,IAAI,OAAO,GAAwB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAE5E,OAAO;gBACN,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;aACV,CAAC;QACH,CAAC,CAAC,CAAC;QACH,OAAO,CACN,KAAC,UAAU,kBAAC,GAAG,EAAE,IAAI,CAAC,UAAU,IAAM,IAAI,CAAC,KAAK,IAAE,OAAO,EAAE,OAAO,IAAe,CACjF,CAAC;IACH,CAAC;CACD"}
@@ -1,39 +0,0 @@
1
- .ns_input_parent {
2
- width: 100%;
3
- max-width: 100%;
4
- color: #141B5C;
5
- }
6
-
7
- .ns_input_select {
8
- height: 48px;
9
- border: 1px solid #000 !important;
10
- border-radius: 8px;
11
- overflow: hidden;
12
- width: 100% !important;
13
- }
14
-
15
- .ns_input_select span span svg path {
16
- height: 24px !important;
17
- width: 24px !important;
18
- }
19
-
20
- .ns_input_select span span svg {
21
- height: 24px !important;
22
- width: 24px !important;
23
- }
24
-
25
- .ns_input_select span span span svg path {
26
- height: 12px !important;
27
- width: 12px !important;
28
- }
29
-
30
- .ns_input_select span span span svg {
31
- height: 12px !important;
32
- width: 12px !important;
33
- }
34
-
35
- @media only screen and (min-width: 380px) {
36
- .ns_input_parent {
37
- width: 272px;
38
- }
39
- }
@@ -7,7 +7,7 @@ import { NSButtonBlue } from './NSButtonBlue';
7
7
  import { NSButtonRed } from './NSButtonRed';
8
8
  export class NSFilterBoxDialog extends Component {
9
9
  render() {
10
- return (_jsxs("div", { className: Styles.ns_dialog_holder, children: [_jsx("button", { className: Styles.ns_dialog_close, onClick: this.props.onCloseDialog, children: _jsx("img", { src: "https://static.namirasoft.com/image/concept/close/blue.svg", alt: "close-dialog", width: 24, height: 24 }) }), _jsx("h3", { className: Styles.ns_dialog_title, children: "Edit Dialog" }), _jsx(NSBoxEnum, { title: "this.props.title", placeholder: "", options: [], multiple: false, required: false }), _jsx(NSBoxEnum, { title: "this.props.title", placeholder: "", options: [], multiple: false, required: false }), _jsx(NSBoxString, { title: '', required: false }), _jsxs("div", { className: Styles.ns_dialog_btn_container, children: [_jsx(NSButtonRed, { title: 'Apply', onClick: () => { }, style: {
10
+ return (_jsxs("div", { className: Styles.ns_dialog_holder, children: [_jsx("button", { className: Styles.ns_dialog_close, onClick: this.props.onCloseDialog, children: _jsx("img", { src: "https://static.namirasoft.com/image/concept/close/blue.svg", alt: "close-dialog", width: 24, height: 24 }) }), _jsx("h3", { className: Styles.ns_dialog_title, children: "Edit Dialog" }), _jsx(NSBoxEnum, { searchable: true, title: "this.props.title", placeholder: "", options: {}, multiple: false, required: false }), _jsx(NSBoxEnum, { searchable: true, title: "this.props.title", placeholder: "", options: {}, multiple: false, required: false }), _jsx(NSBoxString, { title: '', required: false }), _jsxs("div", { className: Styles.ns_dialog_btn_container, children: [_jsx(NSButtonRed, { title: 'Apply', onClick: () => { }, style: {
11
11
  border: "solid 1px red",
12
12
  color: "red",
13
13
  backgroundColor: "#fff"
@@ -1 +1 @@
1
- {"version":3,"file":"NSFilterBoxDialog.js","sourceRoot":"","sources":["../../src/components/NSFilterBoxDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,MAAM,MAAM,gCAAgC,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAW5C,MAAM,OAAO,iBAAkB,SAAQ,SAA2D;IAExF,MAAM;QAEd,OAAO,CACN,eAAK,SAAS,EAAE,MAAM,CAAC,gBAAgB,aACtC,iBAAQ,SAAS,EAAE,MAAM,CAAC,eAAe,EACxC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,YACjC,cAAK,GAAG,EAAC,4DAA4D,EAAC,GAAG,EAAC,cAAc,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,GAC1G,EACT,aAAI,SAAS,EAAE,MAAM,CAAC,eAAe,4BAEhC,EACL,KAAC,SAAS,IACT,KAAK,EAAE,kBAAkB,EACzB,WAAW,EAAC,EAAE,EACd,OAAO,EAAE,EAAE,EACX,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,KAAK,GACd,EAEF,KAAC,SAAS,IACT,KAAK,EAAE,kBAAkB,EACzB,WAAW,EAAC,EAAE,EACd,OAAO,EAAE,EAAE,EACX,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,KAAK,GACd,EAEF,KAAC,WAAW,IACX,KAAK,EAAC,EAAE,EACR,QAAQ,EAAE,KAAK,GACd,EAEF,eAAK,SAAS,EAAE,MAAM,CAAC,uBAAuB,aAC7C,KAAC,WAAW,IACX,KAAK,EAAC,OA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I,EAChB,KAAK,EAAE,kBAAkB,EACzB,WAAW,EAAC,EAAE,EACd,OAAO,EAAE,EAAE,EACX,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,KAAK,GACd,EAEF,KAAC,WAAW,IACX,KAAK,EAAC,EAAE,EACR,QAAQ,EAAE,KAAK,GACd,EAEF,eAAK,SAAS,EAAE,MAAM,CAAC,uBAAuB,aAC7C,KAAC,WAAW,IACX,KAAK,EAAC,OAAO,EACb,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,EAClB,KAAK,EACJ;gCACC,MAAM,EAAE,eAAe;gCACvB,KAAK,EAAE,KAAK;gCACZ,eAAe,EAAE,MAAM;6BACvB,GAED,EAEF,KAAC,YAAY,IACZ,KAAK,EAAC,QAAQ,EACd,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,GAChC,IACG,IACD,CACN,CAAC;IACH,CAAC;CACD"}
@@ -1,7 +1,7 @@
1
1
  import { Component } from 'react';
2
2
  import { IBaseComponentProps } from '../props/IBaseComponentProps';
3
- import { NSBoxEnum } from './NSBoxEnum';
4
3
  import React from "react";
4
+ import { NSBoxCombo } from './NSBoxCombo';
5
5
  export interface INSPaginationProps extends IBaseComponentProps {
6
6
  totalItems: number;
7
7
  onPageChange: (page: number, size: number) => void;
@@ -11,7 +11,7 @@ interface INSPaginationState {
11
11
  pageSize: number;
12
12
  }
13
13
  export declare class NSPagination extends Component<INSPaginationProps, INSPaginationState> {
14
- PageSize: React.RefObject<NSBoxEnum>;
14
+ PageSize: React.RefObject<NSBoxCombo>;
15
15
  constructor(props: INSPaginationProps);
16
16
  getCurrentPage(): number;
17
17
  getPageSize(): number;
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { Component } from 'react';
3
- import { NSBoxEnum } from './NSBoxEnum';
4
3
  import Styles from './NSPagination.module.css';
5
4
  import React from "react";
5
+ import { NSBoxCombo } from './NSBoxCombo';
6
6
  let pageSizes = [25, 50, 100, 200, 500];
7
7
  export class NSPagination extends Component {
8
8
  constructor(props) {
@@ -69,7 +69,7 @@ export class NSPagination extends Component {
69
69
  });
70
70
  }
71
71
  }, children: _jsx("img", { style: { margin: "0 0 0 8px" }, src: "https://static.namirasoft.com/image/concept/arrow/right/white-blue.svg", width: 32, height: 32, alt: "right_vector" }) }) }, "next"));
72
- return (_jsx(_Fragment, { children: _jsxs("div", { id: this.props.id, className: `${Styles.ns_pagination_container} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(' ')}`, style: this.props.style, children: [pages, _jsxs("div", { className: Styles.ns_pagination_info, children: [_jsx("div", { style: { width: 70 }, children: _jsx(NSBoxEnum, { ref: this.PageSize, title: '', multiple: false, required: false, options: pageSizes.map(pagesize => { return { desc: pagesize.toString(), value: pagesize.toString() }; }), onChanged: () => {
72
+ return (_jsx(_Fragment, { children: _jsxs("div", { id: this.props.id, className: `${Styles.ns_pagination_container} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(' ')}`, style: this.props.style, children: [pages, _jsxs("div", { className: Styles.ns_pagination_info, children: [_jsx("div", { style: { width: 70 }, children: _jsx(NSBoxCombo, { searchable: false, ref: this.PageSize, title: '', multiple: false, required: false, options: pageSizes.map(pagesize => { return { desc: pagesize.toString(), value: pagesize.toString() }; }), onChanged: () => {
73
73
  var _a, _b;
74
74
  let currentPage = this.state.currentPage;
75
75
  let pageSize = parseInt((_b = (_a = this.PageSize.current) === null || _a === void 0 ? void 0 : _a.getValue()) !== null && _b !== void 0 ? _b : pageSizes[0].toString());
@@ -1 +1 @@
1
- {"version":3,"file":"NSPagination.js","sourceRoot":"","sources":["../../src/components/NSPagination.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,KA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AAA,IAAI,CAAC,QAAQ,CAAC,OAAO,0CAAE,QAAQ,EAAE,mCAAI,SAAS,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;wCACtF,IAAI,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE;4CAE1C,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;wCACxC,CAAC,CAAC,CAAC;oCACP,CAAC,GACH,GACA,EACN,uBACK,IAAI,WAAW,MAAM,WAAW,QAAQ,UAAU,EAAE,GACpD,IACH,IACJ,GACP,CACN,CAAC;IACN,CAAC;CACJ"}
package/dist/main.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from "./components/NSBarHeroBanner";
4
4
  export * from "./components/NSBarNotification";
5
5
  export * from "./components/NSBarTitle";
6
6
  export * from "./components/NSBoxBoolean";
7
+ export * from "./components/NSBoxCombo";
7
8
  export * from "./components/NSBoxDate";
8
9
  export * from "./components/NSBoxDateTime";
9
10
  export * from "./components/NSBoxDouble";
package/dist/main.js CHANGED
@@ -4,6 +4,7 @@ export * from "./components/NSBarHeroBanner";
4
4
  export * from "./components/NSBarNotification";
5
5
  export * from "./components/NSBarTitle";
6
6
  export * from "./components/NSBoxBoolean";
7
+ export * from "./components/NSBoxCombo";
7
8
  export * from "./components/NSBoxDate";
8
9
  export * from "./components/NSBoxDateTime";
9
10
  export * from "./components/NSBoxDouble";
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;A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AAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.265",
11
+ "version": "1.3.267",
12
12
  "author": "Amir Abolhasani, Alireza Esmaeeli, Sepideh Mazloumi, Hooman Shashaeh",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -28,7 +28,7 @@
28
28
  "bootstrap": "^5.3.3",
29
29
  "copyfiles": "^2.4.1",
30
30
  "link-react": "^3.0.0",
31
- "namirasoft-api-link": "^1.3.12",
31
+ "namirasoft-api-link": "^1.3.13",
32
32
  "namirasoft-core": "^1.3.67",
33
33
  "path-browserify": "^1.0.1",
34
34
  "react": "^18.3.1",
@@ -0,0 +1,39 @@
1
+ .ns_input_parent {
2
+ width: 100%;
3
+ max-width: 100%;
4
+ color: #141B5C;
5
+ }
6
+
7
+ .ns_input_select {
8
+ height: 48px;
9
+ border: 1px solid #000 !important;
10
+ border-radius: 8px;
11
+ overflow: hidden;
12
+ width: 100% !important;
13
+ }
14
+
15
+ .ns_input_select span span svg path {
16
+ height: 24px !important;
17
+ width: 24px !important;
18
+ }
19
+
20
+ .ns_input_select span span svg {
21
+ height: 24px !important;
22
+ width: 24px !important;
23
+ }
24
+
25
+ .ns_input_select span span span svg path {
26
+ height: 12px !important;
27
+ width: 12px !important;
28
+ }
29
+
30
+ .ns_input_select span span span svg {
31
+ height: 12px !important;
32
+ width: 12px !important;
33
+ }
34
+
35
+ @media only screen and (min-width: 380px) {
36
+ .ns_input_parent {
37
+ width: 272px;
38
+ }
39
+ }
@@ -0,0 +1,132 @@
1
+ "use client";
2
+
3
+ import React from "react";
4
+ import Styles from "./NSBoxCombo.module.css";
5
+ import { Select, Space } from 'antd';
6
+ import IconSelectBox from '../assets/images/icon-select-box.svg';
7
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
8
+ import { IValidationProps } from "../props/IValidationProps";
9
+ import { Validator } from "../Validator";
10
+ import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
11
+ import { BaseOptionType } from "antd/es/select";
12
+
13
+ export interface INSBoxComboOption extends BaseOptionType
14
+ {
15
+ desc: string;
16
+ value: string;
17
+ }
18
+
19
+ export interface INSBoxComboProps extends IBaseComponentProps, IValidationProps
20
+ {
21
+ title: string;
22
+ options: INSBoxComboOption[];
23
+ multiple: boolean;
24
+ customClass?: string;
25
+ placeholder?: string;
26
+ defaultValue?: string;
27
+ onChanged?: (e: NSBoxCombo) => void;
28
+ searchable: boolean;
29
+ }
30
+
31
+ export interface INSBoxComboState
32
+ {
33
+ value: string | null;
34
+ values: string[];
35
+ error?: string;
36
+ }
37
+
38
+ export class NSBoxCombo extends React.Component<INSBoxComboProps, INSBoxComboState>
39
+ {
40
+ constructor(props: INSBoxComboProps)
41
+ {
42
+ super(props);
43
+ this.state = {
44
+ value: null,
45
+ values: [],
46
+ };
47
+ this.getValues = this.getValues.bind(this);
48
+ this.setValues = this.setValues.bind(this);
49
+ this.setValue = this.setValue.bind(this);
50
+ this.getValue = this.getValue.bind(this);
51
+ this.onChange = this.onChange.bind(this);
52
+ }
53
+ getError(value: string): string | null
54
+ {
55
+ return (
56
+ Validator.getError(this.props.title, value, this.props)
57
+ );
58
+ }
59
+ getValue(): string | null
60
+ {
61
+ let error = this.getError(this.state.value || "");
62
+ if (error)
63
+ {
64
+ this.setState({ error });
65
+ throw new Error(error);
66
+ }
67
+ return this.state.value;
68
+ }
69
+ getValues(): string[]
70
+ {
71
+ this.state.values.forEach(value =>
72
+ {
73
+ let error = this.getError(value || "");
74
+ if (error)
75
+ {
76
+ this.setState({ error });
77
+ throw new Error(error);
78
+ }
79
+ });
80
+ return this.state.values;
81
+ }
82
+ setValue(value: string | null): void
83
+ {
84
+ this.setState({ value }, () =>
85
+ {
86
+ if (this.props.onChanged)
87
+ this.props.onChanged(this);
88
+ });
89
+ }
90
+ setValues(values: string[]): void
91
+ {
92
+ this.setState({ values }, () =>
93
+ {
94
+ if (this.props.onChanged)
95
+ this.props.onChanged(this);
96
+ });
97
+ }
98
+ onChange(value: string | null | string[]): void
99
+ {
100
+ if (this.props.multiple)
101
+ this.setValues(value as string[]);
102
+ else
103
+ this.setValue(value as string | null);
104
+ }
105
+ override render()
106
+ {
107
+ return (
108
+ <>
109
+ <div id={this.props.id} className={`${Styles.ns_input_parent} ${this.props.customClass}`}>
110
+ <span className={Styles.ns_input_title}> {this.props.required && <span style={{ color: "red" }} >*</span>} {this.props.title} </span>
111
+ <Select
112
+ showSearch={this.props.searchable ? true : undefined}
113
+ mode={this.props.multiple ? "multiple" : undefined}
114
+ style={{ width: '100%' }}
115
+ className={Styles.ns_input_select}
116
+ placeholder={this.props.placeholder}
117
+ onChange={this.onChange}
118
+ optionLabelProp="label"
119
+ options={this.props.options}
120
+ optionRender={(option) => (
121
+ <Space className={Styles.ns_input_select_option}>
122
+ {option.data.desc}
123
+ </Space>
124
+ )}
125
+ suffixIcon={<img src={IconSelectBox} alt="SelectBox Icon" />}
126
+ />
127
+ </div>
128
+ <NSBoxErrorNotifier error={this.state.error} clearError={() => this.setState({ error: "" })} />
129
+ </>
130
+ );
131
+ }
132
+ }
@@ -1,39 +0,0 @@
1
- .ns_input_parent {
2
- width: 100%;
3
- max-width: 100%;
4
- color: #141B5C;
5
- }
6
-
7
- .ns_input_select {
8
- height: 48px;
9
- border: 1px solid #000 !important;
10
- border-radius: 8px;
11
- overflow: hidden;
12
- width: 100% !important;
13
- }
14
-
15
- .ns_input_select span span svg path {
16
- height: 24px !important;
17
- width: 24px !important;
18
- }
19
-
20
- .ns_input_select span span svg {
21
- height: 24px !important;
22
- width: 24px !important;
23
- }
24
-
25
- .ns_input_select span span span svg path {
26
- height: 12px !important;
27
- width: 12px !important;
28
- }
29
-
30
- .ns_input_select span span span svg {
31
- height: 12px !important;
32
- width: 12px !important;
33
- }
34
-
35
- @media only screen and (min-width: 380px) {
36
- .ns_input_parent {
37
- width: 272px;
38
- }
39
- }
@@ -1,130 +1,57 @@
1
1
  "use client";
2
2
 
3
- import React from "react";
4
- import Styles from "./NSBoxEnum.module.css";
5
- import { Select, Space } from 'antd';
6
- import IconSelectBox from '../assets/images/icon-select-box.svg';
7
- import { IBaseComponentProps } from "../props/IBaseComponentProps";
8
- import { IValidationProps } from "../props/IValidationProps";
9
- import { Validator } from "../Validator";
10
- import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
11
- import { BaseOptionType } from "antd/es/select";
3
+ import React, { createRef } from "react";
4
+ import { ObjectService } from "namirasoft-core";
5
+ import { INSBoxComboOption, INSBoxComboProps, NSBoxCombo } from "./NSBoxCombo";
12
6
 
13
- export interface INSBoxEnumOption extends BaseOptionType
7
+ export interface INSBoxEnumProps extends INSBoxComboProps
14
8
  {
15
- desc: string;
16
- value: string;
9
+ options: any;
17
10
  }
18
11
 
19
- export interface INSBoxEnumProps extends IBaseComponentProps, IValidationProps
20
- {
21
- title: string;
22
- options: INSBoxEnumOption[];
23
- multiple: boolean;
24
- customClass?: string;
25
- placeholder?: string;
26
- defaultValue?: string;
27
- onChanged?: (e: NSBoxEnum) => void;
28
- }
29
-
30
- export interface INSBoxEnumState
31
- {
32
- value: string | null;
33
- values: string[];
34
- error?: string;
35
- }
36
-
37
- export class NSBoxEnum extends React.Component<INSBoxEnumProps, INSBoxEnumState>
12
+ export class NSBoxEnum extends React.Component<INSBoxEnumProps>
38
13
  {
14
+ public NSBoxCombo = createRef<NSBoxCombo>();
39
15
  constructor(props: INSBoxEnumProps)
40
16
  {
41
17
  super(props);
42
- this.state = {
43
- value: null,
44
- values: [],
45
- };
46
18
  this.getValues = this.getValues.bind(this);
47
19
  this.setValues = this.setValues.bind(this);
48
20
  this.setValue = this.setValue.bind(this);
49
21
  this.getValue = this.getValue.bind(this);
50
- this.onChange = this.onChange.bind(this);
51
22
  }
52
23
  getError(value: string): string | null
53
24
  {
54
- return (
55
- Validator.getError(this.props.title, value, this.props)
56
- );
25
+ return this.NSBoxCombo.current?.getError(value) ?? null;
57
26
  }
58
- getValue(): string | null
27
+ getValue<T>(enumObj: { [s: string]: T }, _default: T): T | null
59
28
  {
60
- let error = this.getError(this.state.value || "");
61
- if (error)
62
- {
63
- this.setState({ error });
64
- throw new Error(error);
65
- }
66
- return this.state.value;
29
+ return new ObjectService(this.NSBoxCombo.current?.getValue()).getEnum(enumObj, _default);
67
30
  }
68
- getValues(): string[]
31
+ getValues<T>(enumObj: { [s: string]: T }, _default: T): T[]
69
32
  {
70
- this.state.values.forEach(value =>
71
- {
72
- let error = this.getError(value || "");
73
- if (error)
74
- {
75
- this.setState({ error });
76
- throw new Error(error);
77
- }
78
- });
79
- return this.state.values;
33
+ let values = this.NSBoxCombo.current?.getValues() ?? [];
34
+ return values.map(value => new ObjectService(value).getEnum(enumObj, _default));
80
35
  }
81
36
  setValue(value: string | null): void
82
37
  {
83
- this.setState({ value }, () =>
84
- {
85
- if (this.props.onChanged)
86
- this.props.onChanged(this);
87
- });
38
+ this.NSBoxCombo.current?.setValue(value);
88
39
  }
89
40
  setValues(values: string[]): void
90
41
  {
91
- this.setState({ values }, () =>
92
- {
93
- if (this.props.onChanged)
94
- this.props.onChanged(this);
95
- });
96
- }
97
- onChange(value: string | null | string[]): void
98
- {
99
- if (this.props.multiple)
100
- this.setValues(value as string[]);
101
- else
102
- this.setValue(value as string | null);
42
+ this.NSBoxCombo.current?.setValues(values);
103
43
  }
104
44
  override render()
105
45
  {
46
+ let options: INSBoxComboOption[] = Object.keys(this.props.options).map(key =>
47
+ {
48
+ return {
49
+ desc: key,
50
+ value: key,
51
+ };
52
+ });
106
53
  return (
107
- <>
108
- <div id={this.props.id} className={`${Styles.ns_input_parent} ${this.props.customClass}`}>
109
- <span className={Styles.ns_input_title}> {this.props.required && <span style={{ color: "red" }} >*</span>} {this.props.title} </span>
110
- <Select
111
- mode={this.props.multiple ? "multiple" : undefined}
112
- style={{ width: '100%' }}
113
- className={Styles.ns_input_select}
114
- placeholder={this.props.placeholder ?? "Combo Box"}
115
- onChange={this.onChange}
116
- optionLabelProp="label"
117
- options={this.props.options}
118
- optionRender={(option) => (
119
- <Space className={Styles.ns_input_select_option}>
120
- {option.data.desc}
121
- </Space>
122
- )}
123
- suffixIcon={<img src={IconSelectBox} alt="SelectBox Icon" />}
124
- />
125
- </div>
126
- <NSBoxErrorNotifier error={this.state.error} clearError={() => this.setState({ error: "" })} />
127
- </>
54
+ <NSBoxCombo ref={this.NSBoxCombo} {...this.props} options={options}></NSBoxCombo>
128
55
  );
129
56
  }
130
57
  }
@@ -29,17 +29,19 @@ export class NSFilterBoxDialog extends Component<INSFilterBoxDialogProps, INSFil
29
29
  Edit Dialog
30
30
  </h3>
31
31
  <NSBoxEnum
32
+ searchable={true}
32
33
  title={"this.props.title"}
33
34
  placeholder=""
34
- options={[]}
35
+ options={{}}
35
36
  multiple={false}
36
37
  required={false}
37
38
  />
38
39
 
39
40
  <NSBoxEnum
41
+ searchable={true}
40
42
  title={"this.props.title"}
41
43
  placeholder=""
42
- options={[]}
44
+ options={{}}
43
45
  multiple={false}
44
46
  required={false}
45
47
  />
@@ -1,8 +1,8 @@
1
1
  import { Component } from 'react';
2
2
  import { IBaseComponentProps } from '../props/IBaseComponentProps';
3
- import { NSBoxEnum } from './NSBoxEnum';
4
3
  import Styles from './NSPagination.module.css';
5
4
  import React from "react";
5
+ import { NSBoxCombo } from './NSBoxCombo';
6
6
 
7
7
  export interface INSPaginationProps extends IBaseComponentProps
8
8
  {
@@ -20,7 +20,7 @@ let pageSizes = [25, 50, 100, 200, 500];
20
20
 
21
21
  export class NSPagination extends Component<INSPaginationProps, INSPaginationState>
22
22
  {
23
- PageSize = React.createRef<NSBoxEnum>();
23
+ PageSize = React.createRef<NSBoxCombo>();
24
24
  constructor(props: INSPaginationProps)
25
25
  {
26
26
  super(props);
@@ -163,7 +163,8 @@ export class NSPagination extends Component<INSPaginationProps, INSPaginationSta
163
163
  {pages}
164
164
  <div className={Styles.ns_pagination_info}>
165
165
  <div style={{ width: 70 }}>
166
- <NSBoxEnum
166
+ <NSBoxCombo
167
+ searchable={false}
167
168
  ref={this.PageSize}
168
169
  title=''
169
170
  multiple={false}
package/src/main.ts CHANGED
@@ -4,6 +4,7 @@ export * from "./components/NSBarHeroBanner";
4
4
  export * from "./components/NSBarNotification";
5
5
  export * from "./components/NSBarTitle";
6
6
  export * from "./components/NSBoxBoolean";
7
+ export * from "./components/NSBoxCombo";
7
8
  export * from "./components/NSBoxDate";
8
9
  export * from "./components/NSBoxDateTime";
9
10
  export * from "./components/NSBoxDouble";