namirasoft-site-react 1.3.309 → 1.3.310
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/NSBoxEntity.module.css +17 -0
- package/package.json +1 -1
- package/src/components/NSBoxEntity.module.css +17 -0
- package/src/components/NSBoxEntity.tsx +3 -3
- package/tsconfig.json +8 -7
- package/dist/App.d.ts +0 -9
- package/dist/App.js +0 -96
- package/dist/App.js.map +0 -1
- package/dist/CopyToClipboard.d.ts +0 -3
- package/dist/CopyToClipboard.js +0 -7
- package/dist/CopyToClipboard.js.map +0 -1
- package/dist/Validator.d.ts +0 -14
- package/dist/Validator.js +0 -94
- package/dist/Validator.js.map +0 -1
- package/dist/components/NSActionMenu.d.ts +0 -14
- package/dist/components/NSActionMenu.js +0 -33
- package/dist/components/NSActionMenu.js.map +0 -1
- package/dist/components/NSAssistantButton.d.ts +0 -6
- package/dist/components/NSAssistantButton.js +0 -20
- package/dist/components/NSAssistantButton.js.map +0 -1
- package/dist/components/NSBarAction.d.ts +0 -12
- package/dist/components/NSBarAction.js +0 -20
- package/dist/components/NSBarAction.js.map +0 -1
- package/dist/components/NSBarHeroBanner.d.ts +0 -7
- package/dist/components/NSBarHeroBanner.js +0 -8
- package/dist/components/NSBarHeroBanner.js.map +0 -1
- package/dist/components/NSBarNotification.d.ts +0 -21
- package/dist/components/NSBarNotification.js +0 -37
- package/dist/components/NSBarNotification.js.map +0 -1
- package/dist/components/NSBarTitle.d.ts +0 -5
- package/dist/components/NSBarTitle.js +0 -11
- package/dist/components/NSBarTitle.js.map +0 -1
- package/dist/components/NSBoxBoolean.d.ts +0 -23
- package/dist/components/NSBoxBoolean.js +0 -40
- package/dist/components/NSBoxBoolean.js.map +0 -1
- package/dist/components/NSBoxCombo.d.ts +0 -33
- package/dist/components/NSBoxCombo.js +0 -65
- package/dist/components/NSBoxCombo.js.map +0 -1
- package/dist/components/NSBoxDate.d.ts +0 -22
- package/dist/components/NSBoxDate.js +0 -42
- package/dist/components/NSBoxDate.js.map +0 -1
- package/dist/components/NSBoxDateTime.d.ts +0 -22
- package/dist/components/NSBoxDateTime.js +0 -42
- package/dist/components/NSBoxDateTime.js.map +0 -1
- package/dist/components/NSBoxDouble.d.ts +0 -23
- package/dist/components/NSBoxDouble.js +0 -42
- package/dist/components/NSBoxDouble.js.map +0 -1
- package/dist/components/NSBoxDuration.d.ts +0 -24
- package/dist/components/NSBoxDuration.js +0 -43
- package/dist/components/NSBoxDuration.js.map +0 -1
- package/dist/components/NSBoxEmail.d.ts +0 -25
- package/dist/components/NSBoxEmail.js +0 -50
- package/dist/components/NSBoxEmail.js.map +0 -1
- package/dist/components/NSBoxEntity.d.ts +0 -42
- package/dist/components/NSBoxEntity.js +0 -86
- package/dist/components/NSBoxEntity.js.map +0 -1
- package/dist/components/NSBoxEnum.d.ts +0 -19
- package/dist/components/NSBoxEnum.js +0 -46
- package/dist/components/NSBoxEnum.js.map +0 -1
- package/dist/components/NSBoxErrorNotifier.d.ts +0 -6
- package/dist/components/NSBoxErrorNotifier.js +0 -11
- package/dist/components/NSBoxErrorNotifier.js.map +0 -1
- package/dist/components/NSBoxIPV4.d.ts +0 -23
- package/dist/components/NSBoxIPV4.js +0 -45
- package/dist/components/NSBoxIPV4.js.map +0 -1
- package/dist/components/NSBoxIPV6.d.ts +0 -23
- package/dist/components/NSBoxIPV6.js +0 -45
- package/dist/components/NSBoxIPV6.js.map +0 -1
- package/dist/components/NSBoxInteger.d.ts +0 -23
- package/dist/components/NSBoxInteger.js +0 -42
- package/dist/components/NSBoxInteger.js.map +0 -1
- package/dist/components/NSBoxLabel.d.ts +0 -12
- package/dist/components/NSBoxLabel.js +0 -11
- package/dist/components/NSBoxLabel.js.map +0 -1
- package/dist/components/NSBoxOTP.d.ts +0 -9
- package/dist/components/NSBoxOTP.js +0 -34
- package/dist/components/NSBoxOTP.js.map +0 -1
- package/dist/components/NSBoxPassword.d.ts +0 -23
- package/dist/components/NSBoxPassword.js +0 -43
- package/dist/components/NSBoxPassword.js.map +0 -1
- package/dist/components/NSBoxPhone.d.ts +0 -25
- package/dist/components/NSBoxPhone.js +0 -45
- package/dist/components/NSBoxPhone.js.map +0 -1
- package/dist/components/NSBoxPrice.d.ts +0 -23
- package/dist/components/NSBoxPrice.js +0 -42
- package/dist/components/NSBoxPrice.js.map +0 -1
- package/dist/components/NSBoxSearch.d.ts +0 -25
- package/dist/components/NSBoxSearch.js +0 -52
- package/dist/components/NSBoxSearch.js.map +0 -1
- package/dist/components/NSBoxString.d.ts +0 -25
- package/dist/components/NSBoxString.js +0 -48
- package/dist/components/NSBoxString.js.map +0 -1
- package/dist/components/NSBoxTextArea.d.ts +0 -27
- package/dist/components/NSBoxTextArea.js +0 -60
- package/dist/components/NSBoxTextArea.js.map +0 -1
- package/dist/components/NSBoxTime.d.ts +0 -23
- package/dist/components/NSBoxTime.js +0 -44
- package/dist/components/NSBoxTime.js.map +0 -1
- package/dist/components/NSButton.d.ts +0 -9
- package/dist/components/NSButton.js +0 -8
- package/dist/components/NSButton.js.map +0 -1
- package/dist/components/NSButtonBlue.d.ts +0 -2
- package/dist/components/NSButtonBlue.js +0 -11
- package/dist/components/NSButtonBlue.js.map +0 -1
- package/dist/components/NSButtonGreen.d.ts +0 -2
- package/dist/components/NSButtonGreen.js +0 -11
- package/dist/components/NSButtonGreen.js.map +0 -1
- package/dist/components/NSButtonRed.d.ts +0 -2
- package/dist/components/NSButtonRed.js +0 -11
- package/dist/components/NSButtonRed.js.map +0 -1
- package/dist/components/NSCard.d.ts +0 -14
- package/dist/components/NSCard.js +0 -18
- package/dist/components/NSCard.js.map +0 -1
- package/dist/components/NSCopyToClipboard.d.ts +0 -6
- package/dist/components/NSCopyToClipboard.js +0 -12
- package/dist/components/NSCopyToClipboard.js.map +0 -1
- package/dist/components/NSElectronicCard.d.ts +0 -9
- package/dist/components/NSElectronicCard.js +0 -13
- package/dist/components/NSElectronicCard.js.map +0 -1
- package/dist/components/NSEntityBar.d.ts +0 -8
- package/dist/components/NSEntityBar.js +0 -7
- package/dist/components/NSEntityBar.js.map +0 -1
- package/dist/components/NSEntityCardBackground.d.ts +0 -7
- package/dist/components/NSEntityCardBackground.js +0 -9
- package/dist/components/NSEntityCardBackground.js.map +0 -1
- package/dist/components/NSFilterBox.d.ts +0 -61
- package/dist/components/NSFilterBox.js +0 -230
- package/dist/components/NSFilterBox.js.map +0 -1
- package/dist/components/NSFilterBoxDialog.d.ts +0 -12
- package/dist/components/NSFilterBoxDialog.js +0 -17
- package/dist/components/NSFilterBoxDialog.js.map +0 -1
- package/dist/components/NSFilterItem.d.ts +0 -17
- package/dist/components/NSFilterItem.js +0 -30
- package/dist/components/NSFilterItem.js.map +0 -1
- package/dist/components/NSFooter.d.ts +0 -20
- package/dist/components/NSFooter.js +0 -56
- package/dist/components/NSFooter.js.map +0 -1
- package/dist/components/NSGroupedList.d.ts +0 -31
- package/dist/components/NSGroupedList.js +0 -42
- package/dist/components/NSGroupedList.js.map +0 -1
- package/dist/components/NSHeader.d.ts +0 -26
- package/dist/components/NSHeader.js +0 -81
- package/dist/components/NSHeader.js.map +0 -1
- package/dist/components/NSLayout.d.ts +0 -22
- package/dist/components/NSLayout.js +0 -30
- package/dist/components/NSLayout.js.map +0 -1
- package/dist/components/NSLine.d.ts +0 -4
- package/dist/components/NSLine.js +0 -6
- package/dist/components/NSLine.js.map +0 -1
- package/dist/components/NSLink.d.ts +0 -5
- package/dist/components/NSLink.js +0 -7
- package/dist/components/NSLink.js.map +0 -1
- package/dist/components/NSLinkBlue.d.ts +0 -2
- package/dist/components/NSLinkBlue.js +0 -13
- package/dist/components/NSLinkBlue.js.map +0 -1
- package/dist/components/NSLinkGreen.d.ts +0 -2
- package/dist/components/NSLinkGreen.js +0 -6
- package/dist/components/NSLinkGreen.js.map +0 -1
- package/dist/components/NSLinkRed.d.ts +0 -2
- package/dist/components/NSLinkRed.js +0 -6
- package/dist/components/NSLinkRed.js.map +0 -1
- package/dist/components/NSLoading.d.ts +0 -4
- package/dist/components/NSLoading.js +0 -7
- package/dist/components/NSLoading.js.map +0 -1
- package/dist/components/NSModal.d.ts +0 -10
- package/dist/components/NSModal.js +0 -13
- package/dist/components/NSModal.js.map +0 -1
- package/dist/components/NSNoData.d.ts +0 -5
- package/dist/components/NSNoData.js +0 -7
- package/dist/components/NSNoData.js.map +0 -1
- package/dist/components/NSPagination.d.ts +0 -20
- package/dist/components/NSPagination.js +0 -82
- package/dist/components/NSPagination.js.map +0 -1
- package/dist/components/NSPanel.d.ts +0 -7
- package/dist/components/NSPanel.js +0 -7
- package/dist/components/NSPanel.js.map +0 -1
- package/dist/components/NSPrintModal.d.ts +0 -15
- package/dist/components/NSPrintModal.js +0 -35
- package/dist/components/NSPrintModal.js.map +0 -1
- package/dist/components/NSRadioButton.d.ts +0 -5
- package/dist/components/NSRadioButton.js +0 -15
- package/dist/components/NSRadioButton.js.map +0 -1
- package/dist/components/NSSection.d.ts +0 -7
- package/dist/components/NSSection.js +0 -10
- package/dist/components/NSSection.js.map +0 -1
- package/dist/components/NSSectionBars.d.ts +0 -7
- package/dist/components/NSSectionBars.js +0 -10
- package/dist/components/NSSectionBars.js.map +0 -1
- package/dist/components/NSSectionCards.d.ts +0 -13
- package/dist/components/NSSectionCards.js +0 -15
- package/dist/components/NSSectionCards.js.map +0 -1
- package/dist/components/NSSectionTitle.d.ts +0 -7
- package/dist/components/NSSectionTitle.js +0 -8
- package/dist/components/NSSectionTitle.js.map +0 -1
- package/dist/components/NSSpace.d.ts +0 -17
- package/dist/components/NSSpace.js +0 -19
- package/dist/components/NSSpace.js.map +0 -1
- package/dist/components/NSTabPage.d.ts +0 -13
- package/dist/components/NSTabPage.js +0 -9
- package/dist/components/NSTabPage.js.map +0 -1
- package/dist/components/NSTable.d.ts +0 -50
- package/dist/components/NSTable.js +0 -154
- package/dist/components/NSTable.js.map +0 -1
- package/dist/components/NSTag.d.ts +0 -2
- package/dist/components/NSTag.js +0 -22
- package/dist/components/NSTag.js.map +0 -1
- package/dist/components/NSTitle.d.ts +0 -5
- package/dist/components/NSTitle.js +0 -7
- package/dist/components/NSTitle.js.map +0 -1
- package/dist/components/NSVerification.d.ts +0 -9
- package/dist/components/NSVerification.js +0 -19
- package/dist/components/NSVerification.js.map +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
- package/dist/main.d.ts +0 -81
- package/dist/main.js +0 -82
- package/dist/main.js.map +0 -1
- package/dist/pages/NSLoginPage.d.ts +0 -6
- package/dist/pages/NSLoginPage.js +0 -8
- package/dist/pages/NSLoginPage.js.map +0 -1
- package/dist/pages/NSNotFoundPage.d.ts +0 -1
- package/dist/pages/NSNotFoundPage.js +0 -7
- package/dist/pages/NSNotFoundPage.js.map +0 -1
- package/dist/props/IBaseComponentProps.d.ts +0 -7
- package/dist/props/IBaseComponentProps.js +0 -2
- package/dist/props/IBaseComponentProps.js.map +0 -1
- package/dist/props/IHeaderIconProps.d.ts +0 -8
- package/dist/props/IHeaderIconProps.js +0 -2
- package/dist/props/IHeaderIconProps.js.map +0 -1
- package/dist/props/IHeaderProps.d.ts +0 -5
- package/dist/props/IHeaderProps.js +0 -2
- package/dist/props/IHeaderProps.js.map +0 -1
- package/dist/props/IImageProps.d.ts +0 -4
- package/dist/props/IImageProps.js +0 -2
- package/dist/props/IImageProps.js.map +0 -1
- package/dist/props/ILinkProps.d.ts +0 -5
- package/dist/props/ILinkProps.js +0 -2
- package/dist/props/ILinkProps.js.map +0 -1
- package/dist/props/IValidationNumberProps.d.ts +0 -4
- package/dist/props/IValidationNumberProps.js +0 -2
- package/dist/props/IValidationNumberProps.js.map +0 -1
- package/dist/props/IValidationProps.d.ts +0 -6
- package/dist/props/IValidationProps.js +0 -2
- package/dist/props/IValidationProps.js.map +0 -1
- package/dist/props/IValidationRegexProps.d.ts +0 -4
- package/dist/props/IValidationRegexProps.js +0 -2
- package/dist/props/IValidationRegexProps.js.map +0 -1
- package/dist/props/IValidationStringProps.d.ts +0 -4
- package/dist/props/IValidationStringProps.js +0 -2
- package/dist/props/IValidationStringProps.js.map +0 -1
- package/dist/routing/INSRouterMaker.d.ts +0 -5
- package/dist/routing/INSRouterMaker.js +0 -2
- package/dist/routing/INSRouterMaker.js.map +0 -1
- package/dist/routing/INSRouterProps.d.ts +0 -4
- package/dist/routing/INSRouterProps.js +0 -2
- package/dist/routing/INSRouterProps.js.map +0 -1
- package/dist/routing/INSRouterState.d.ts +0 -4
- package/dist/routing/INSRouterState.js +0 -2
- package/dist/routing/INSRouterState.js.map +0 -1
- package/dist/routing/NSRouterMaker.d.ts +0 -11
- package/dist/routing/NSRouterMaker.js +0 -23
- package/dist/routing/NSRouterMaker.js.map +0 -1
- package/dist/routing/Notifier.d.ts +0 -16
- package/dist/routing/Notifier.js +0 -68
- package/dist/routing/Notifier.js.map +0 -1
|
@@ -1,45 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,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P,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"}
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
}
|
|
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,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EACnC,IAAI,EAAC,MAAM,EACX,GAAG,EAAC,GAAG,EACP,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"}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxSearch.js","sourceRoot":"","sources":["../../src/components/NSBoxSearch.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAIxC,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,Y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,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"}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CA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CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAI,IAC1F,GACJ,CACH,CAAC;IACH,CAAC;CACD"}
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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;AAoB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AE;oCACN,MAAM,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;oCACtC,UAAU,EACT,OAAO,eAAe,0CAA0C;oCACjE,mBAAmB,EAAE,MAAM;iCAC3B,EACD,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,SAAS,EAAE,MAAM,CAAC,YAAY,EAC9B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EACnC,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,GAClC,GACG,IACD,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"}
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CAA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ACC,eAAK,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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,O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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"}
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|