namirasoft-site-react 1.4.134 → 1.4.136
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/.dockerignore +86 -86
- package/.env.template +10 -10
- package/Dockerfile +18 -18
- package/config-overrides.js +72 -72
- package/dist/App.css +34 -0
- package/dist/App.js +50 -6
- package/dist/App.js.map +1 -1
- package/dist/components/NSBarAction.js +1 -1
- package/dist/components/NSBarAction.js.map +1 -1
- package/dist/components/NSBarAction.module.css +97 -97
- package/dist/components/NSBarAlert.d.ts +2 -1
- package/dist/components/NSBarAlert.js +2 -1
- package/dist/components/NSBarAlert.js.map +1 -1
- package/dist/components/NSBarAlert.module.css +69 -69
- package/dist/components/NSBarNotification.module.css +34 -34
- package/dist/components/NSBarTitle.module.css +9 -9
- package/dist/components/NSBox.module.css +50 -50
- package/dist/components/NSBoxBaseCombo.d.ts +8 -12
- package/dist/components/NSBoxBaseCombo.js +22 -34
- package/dist/components/NSBoxBaseCombo.js.map +1 -1
- package/dist/components/NSBoxBaseCombo.module.css +6 -6
- package/dist/components/NSBoxBaseLayout.d.ts +31 -0
- package/dist/components/NSBoxBaseLayout.js +34 -0
- package/dist/components/NSBoxBaseLayout.js.map +1 -0
- package/dist/components/NSBoxBoolean.d.ts +5 -8
- package/dist/components/NSBoxBoolean.js +15 -26
- package/dist/components/NSBoxBoolean.js.map +1 -1
- package/dist/components/NSBoxBoolean.module.css +67 -67
- package/dist/components/NSBoxBooleans.d.ts +2 -0
- package/dist/components/NSBoxBooleans.js +1 -1
- package/dist/components/NSBoxBooleans.js.map +1 -1
- package/dist/components/NSBoxCombo.d.ts +4 -2
- package/dist/components/NSBoxCombo.js.map +1 -1
- package/dist/components/NSBoxDate.d.ts +3 -7
- package/dist/components/NSBoxDate.js +14 -19
- package/dist/components/NSBoxDate.js.map +1 -1
- package/dist/components/NSBoxDate.module.css +4 -4
- package/dist/components/NSBoxDateTime.d.ts +3 -7
- package/dist/components/NSBoxDateTime.js +14 -19
- package/dist/components/NSBoxDateTime.js.map +1 -1
- package/dist/components/NSBoxDateTime.module.css +4 -4
- package/dist/components/NSBoxDouble.d.ts +6 -10
- package/dist/components/NSBoxDouble.js +15 -19
- package/dist/components/NSBoxDouble.js.map +1 -1
- package/dist/components/NSBoxDuration.d.ts +3 -7
- package/dist/components/NSBoxDuration.js +14 -19
- package/dist/components/NSBoxDuration.js.map +1 -1
- package/dist/components/NSBoxDuration.module.css +4 -4
- package/dist/components/NSBoxEmail.d.ts +4 -8
- package/dist/components/NSBoxEmail.js +19 -25
- package/dist/components/NSBoxEmail.js.map +1 -1
- package/dist/components/NSBoxEntity.d.ts +2 -2
- package/dist/components/NSBoxEntity.js +1 -1
- package/dist/components/NSBoxEntity.js.map +1 -1
- package/dist/components/NSBoxEnum.d.ts +13 -11
- package/dist/components/NSBoxEnum.js +1 -1
- package/dist/components/NSBoxEnum.js.map +1 -1
- package/dist/components/NSBoxFile.d.ts +5 -4
- package/dist/components/NSBoxFile.js +31 -22
- package/dist/components/NSBoxFile.js.map +1 -1
- package/dist/components/NSBoxFile.module.css +10 -10
- package/dist/components/NSBoxIPV4.d.ts +3 -7
- package/dist/components/NSBoxIPV4.js +13 -19
- package/dist/components/NSBoxIPV4.js.map +1 -1
- package/dist/components/NSBoxIPV6.d.ts +3 -7
- package/dist/components/NSBoxIPV6.js +13 -18
- package/dist/components/NSBoxIPV6.js.map +1 -1
- package/dist/components/NSBoxInteger.d.ts +6 -12
- package/dist/components/NSBoxInteger.js +15 -19
- package/dist/components/NSBoxInteger.js.map +1 -1
- package/dist/components/NSBoxMoney.d.ts +3 -7
- package/dist/components/NSBoxMoney.js +13 -18
- package/dist/components/NSBoxMoney.js.map +1 -1
- package/dist/components/NSBoxPassword.d.ts +3 -7
- package/dist/components/NSBoxPassword.js +21 -25
- package/dist/components/NSBoxPassword.js.map +1 -1
- package/dist/components/NSBoxPhone.d.ts +3 -7
- package/dist/components/NSBoxPhone.js +26 -30
- package/dist/components/NSBoxPhone.js.map +1 -1
- package/dist/components/NSBoxPhone.module.css +35 -35
- package/dist/components/NSBoxRadio.d.ts +4 -8
- package/dist/components/NSBoxRadio.js +13 -17
- package/dist/components/NSBoxRadio.js.map +1 -1
- package/dist/components/NSBoxRadio.module.css +33 -69
- package/dist/components/NSBoxSearch.d.ts +4 -2
- package/dist/components/NSBoxSearch.js +10 -18
- package/dist/components/NSBoxSearch.js.map +1 -1
- package/dist/components/NSBoxString.d.ts +3 -8
- package/dist/components/NSBoxString.js +11 -23
- package/dist/components/NSBoxString.js.map +1 -1
- package/dist/components/NSBoxTextArea.d.ts +4 -7
- package/dist/components/NSBoxTextArea.js +14 -20
- package/dist/components/NSBoxTextArea.js.map +1 -1
- package/dist/components/NSBoxTextArea.module.css +12 -45
- package/dist/components/NSBoxTime.d.ts +3 -8
- package/dist/components/NSBoxTime.js +14 -23
- package/dist/components/NSBoxTime.js.map +1 -1
- package/dist/components/NSBoxTime.module.css +4 -4
- package/dist/components/NSButton.module.css +41 -42
- package/dist/components/NSButtonBlue.module.css +4 -4
- package/dist/components/NSButtonGreen.module.css +4 -4
- package/dist/components/NSButtonRed.module.css +4 -4
- package/dist/components/NSCard.module.css +114 -114
- package/dist/components/NSCardScreenshot.module.css +41 -41
- package/dist/components/NSChartColumn.module.css +7 -7
- package/dist/components/NSChartTable.module.css +21 -21
- package/dist/components/NSCopyBox.module.css +43 -43
- package/dist/components/NSDialog.d.ts +1 -0
- package/dist/components/NSDialog.js +1 -1
- package/dist/components/NSDialog.js.map +1 -1
- package/dist/components/NSDialog.module.css +110 -106
- package/dist/components/NSDialogPageSelection.js +1 -1
- package/dist/components/NSDialogPageSelection.js.map +1 -1
- package/dist/components/NSDialogPageSelection.module.css +103 -103
- package/dist/components/NSDownTimer.module.css +55 -55
- package/dist/components/NSDownload.js +2 -2
- package/dist/components/NSDownload.js.map +1 -1
- package/dist/components/NSDownload.module.css +46 -46
- package/dist/components/NSElectronicCard.module.css +60 -60
- package/dist/components/NSEntityCardBackground.module.css +27 -27
- package/dist/components/NSFilterBox.js +3 -3
- package/dist/components/NSFilterBox.js.map +1 -1
- package/dist/components/NSFilterBox.module.css +55 -62
- package/dist/components/NSFilterItem.module.css +23 -23
- package/dist/components/NSFooter.module.css +123 -123
- package/dist/components/NSHeader.module.css +291 -291
- package/dist/components/NSHeaderScreenshot.module.css +35 -35
- package/dist/components/NSLabel.module.css +15 -15
- package/dist/components/NSLabelErrorNotifier.js +1 -1
- package/dist/components/NSLabelErrorNotifier.js.map +1 -1
- package/dist/components/NSLabelErrorNotifier.module.css +2 -2
- package/dist/components/NSLayout.module.css +13 -13
- package/dist/components/NSLine.module.css +12 -12
- package/dist/components/NSLink.module.css +36 -36
- package/dist/components/NSListGrouped.module.css +72 -72
- package/dist/components/NSLoading.module.css +30 -30
- package/dist/components/NSMenuAction.js +3 -3
- package/dist/components/NSMenuAction.js.map +1 -1
- package/dist/components/NSMenuAction.module.css +78 -100
- package/dist/components/NSMenuButton.d.ts +19 -10
- package/dist/components/NSMenuButton.js +29 -16
- package/dist/components/NSMenuButton.js.map +1 -1
- package/dist/components/NSMenuButton.module.css +44 -124
- package/dist/components/NSNoData.module.css +9 -9
- package/dist/components/NSPagination.js +45 -36
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/components/NSPagination.module.css +85 -110
- package/dist/components/NSPanel.module.css +46 -46
- package/dist/components/NSPanelAccordion.module.css +4 -4
- package/dist/components/NSRange.module.css +66 -66
- package/dist/components/NSSection.module.css +10 -10
- package/dist/components/NSSectionCards.module.css +38 -38
- package/dist/components/NSSectionTiles.module.css +10 -10
- package/dist/components/NSTabPage.module.css +59 -59
- package/dist/components/NSTable.module.css +261 -260
- package/dist/components/NSTag.d.ts +1 -1
- package/dist/components/NSTag.module.css +52 -52
- package/dist/components/NSTile.module.css +77 -77
- package/dist/components/NSTimelineMonthly.module.css +71 -71
- package/dist/components/NSTitle.module.css +15 -15
- package/dist/formatter/IDFormatter.d.ts +1 -1
- package/dist/formatter/UnknowFormatter.d.ts +2 -1
- package/dist/formatter/UnknowFormatter.js +4 -1
- package/dist/formatter/UnknowFormatter.js.map +1 -1
- package/dist/index.css +6 -0
- package/dist/main.d.ts +0 -1
- package/dist/main.js +0 -1
- package/dist/main.js.map +1 -1
- package/dist/pages/NSNotFoundPage.module.css +17 -17
- package/dist/pages/NSUpdating.module.css +35 -35
- package/dist/props/IValidationProps.d.ts +1 -1
- package/package.json +76 -76
- package/public/index.html +38 -38
- package/src/App.css +33 -33
- package/src/App.tsx +225 -191
- package/src/Color.tsx +10 -10
- package/src/CopyToClipboard.ts +6 -6
- package/src/Validator.ts +125 -125
- package/src/components/NSBarAction.module.css +97 -97
- package/src/components/NSBarAction.tsx +91 -89
- package/src/components/NSBarAlert.module.css +69 -69
- package/src/components/NSBarAlert.tsx +31 -30
- package/src/components/NSBarNotification.module.css +34 -34
- package/src/components/NSBarNotification.tsx +89 -89
- package/src/components/NSBarTitle.module.css +9 -9
- package/src/components/NSBarTitle.tsx +29 -29
- package/src/components/NSBox.module.css +50 -50
- package/src/components/NSBoxBaseCombo.module.css +6 -6
- package/src/components/NSBoxBaseCombo.tsx +241 -267
- package/src/components/NSBoxBaseLayout.tsx +83 -0
- package/src/components/NSBoxBoolean.module.css +67 -67
- package/src/components/NSBoxBoolean.tsx +112 -131
- package/src/components/NSBoxBooleans.tsx +163 -159
- package/src/components/NSBoxCombo.tsx +63 -61
- package/src/components/NSBoxDate.module.css +4 -4
- package/src/components/NSBoxDate.tsx +86 -101
- package/src/components/NSBoxDateTime.module.css +4 -4
- package/src/components/NSBoxDateTime.tsx +86 -101
- package/src/components/NSBoxDouble.tsx +89 -104
- package/src/components/NSBoxDuration.module.css +4 -4
- package/src/components/NSBoxDuration.tsx +91 -105
- package/src/components/NSBoxEmail.tsx +96 -112
- package/src/components/NSBoxEntity.tsx +52 -52
- package/src/components/NSBoxEnum.tsx +66 -64
- package/src/components/NSBoxFile.module.css +10 -10
- package/src/components/NSBoxFile.tsx +111 -101
- package/src/components/NSBoxIPV4.tsx +91 -107
- package/src/components/NSBoxIPV6.tsx +88 -103
- package/src/components/NSBoxInteger.tsx +88 -104
- package/src/components/NSBoxMoney.tsx +87 -102
- package/src/components/NSBoxPassword.tsx +97 -111
- package/src/components/NSBoxPhone.module.css +35 -35
- package/src/components/NSBoxPhone.tsx +103 -116
- package/src/components/NSBoxRadio.module.css +33 -69
- package/src/components/NSBoxRadio.tsx +97 -107
- package/src/components/NSBoxSearch.tsx +86 -99
- package/src/components/NSBoxString.tsx +79 -104
- package/src/components/NSBoxTextArea.module.css +12 -45
- package/src/components/NSBoxTextArea.tsx +89 -108
- package/src/components/NSBoxTime.module.css +4 -4
- package/src/components/NSBoxTime.tsx +83 -104
- package/src/components/NSButton.module.css +41 -42
- package/src/components/NSButton.tsx +25 -25
- package/src/components/NSButtonBlue.module.css +4 -4
- package/src/components/NSButtonBlue.tsx +19 -19
- package/src/components/NSButtonGreen.module.css +4 -4
- package/src/components/NSButtonGreen.tsx +19 -19
- package/src/components/NSButtonRed.module.css +4 -4
- package/src/components/NSButtonRed.tsx +19 -19
- package/src/components/NSCard.module.css +114 -114
- package/src/components/NSCard.tsx +63 -63
- package/src/components/NSCardScreenshot.module.css +41 -41
- package/src/components/NSCardScreenshot.tsx +31 -31
- package/src/components/NSChartColumn.module.css +7 -7
- package/src/components/NSChartColumn.tsx +106 -106
- package/src/components/NSChartDoughnut.tsx +108 -108
- package/src/components/NSChartPie.tsx +105 -105
- package/src/components/NSChartRange.tsx +14 -14
- package/src/components/NSChartTable.module.css +21 -21
- package/src/components/NSChartTable.tsx +94 -94
- package/src/components/NSCopy.tsx +67 -67
- package/src/components/NSCopyBox.module.css +43 -43
- package/src/components/NSCopyBox.tsx +41 -41
- package/src/components/NSDialog.module.css +110 -106
- package/src/components/NSDialog.tsx +57 -56
- package/src/components/NSDialogDelete.tsx +26 -26
- package/src/components/NSDialogInfo.tsx +36 -36
- package/src/components/NSDialogPageSelection.module.css +103 -103
- package/src/components/NSDialogPageSelection.tsx +223 -223
- package/src/components/NSDownTimer.module.css +55 -55
- package/src/components/NSDownTimer.tsx +77 -77
- package/src/components/NSDownload.module.css +46 -46
- package/src/components/NSDownload.tsx +63 -63
- package/src/components/NSElectronicCard.module.css +60 -60
- package/src/components/NSElectronicCard.tsx +46 -46
- package/src/components/NSEntityCardBackground.module.css +27 -27
- package/src/components/NSEntityCardBackground.tsx +36 -36
- package/src/components/NSFilterBox.module.css +55 -62
- package/src/components/NSFilterBox.tsx +360 -360
- package/src/components/NSFilterItem.module.css +23 -23
- package/src/components/NSFilterItem.tsx +72 -72
- package/src/components/NSFooter.module.css +123 -123
- package/src/components/NSFooter.tsx +316 -316
- package/src/components/NSHeader.module.css +291 -291
- package/src/components/NSHeader.tsx +250 -250
- package/src/components/NSHeaderScreenshot.module.css +35 -35
- package/src/components/NSHeaderScreenshot.tsx +39 -39
- package/src/components/NSLabel.module.css +15 -15
- package/src/components/NSLabel.tsx +29 -29
- package/src/components/NSLabelErrorNotifier.module.css +2 -2
- package/src/components/NSLabelErrorNotifier.tsx +32 -32
- package/src/components/NSLayout.module.css +13 -13
- package/src/components/NSLayout.tsx +100 -100
- package/src/components/NSLine.module.css +12 -12
- package/src/components/NSLine.tsx +15 -15
- package/src/components/NSLink.module.css +36 -36
- package/src/components/NSLink.tsx +25 -25
- package/src/components/NSLinkBlue.tsx +20 -20
- package/src/components/NSLinkGreen.tsx +5 -5
- package/src/components/NSLinkRed.tsx +5 -5
- package/src/components/NSListGrouped.module.css +72 -72
- package/src/components/NSListGrouped.tsx +112 -112
- package/src/components/NSListProduct.tsx +45 -45
- package/src/components/NSLoading.module.css +30 -30
- package/src/components/NSLoading.tsx +19 -19
- package/src/components/NSMenuAction.module.css +78 -100
- package/src/components/NSMenuAction.tsx +89 -90
- package/src/components/NSMenuButton.module.css +44 -124
- package/src/components/NSMenuButton.tsx +148 -124
- package/src/components/NSNoData.module.css +9 -9
- package/src/components/NSNoData.tsx +24 -24
- package/src/components/NSPagination.module.css +85 -110
- package/src/components/NSPagination.tsx +183 -190
- package/src/components/NSPanel.module.css +46 -46
- package/src/components/NSPanel.tsx +19 -19
- package/src/components/NSPanelAccordion.module.css +4 -4
- package/src/components/NSPanelAccordion.tsx +51 -51
- package/src/components/NSRange.module.css +66 -66
- package/src/components/NSRange.tsx +83 -83
- package/src/components/NSRepeater.tsx +179 -179
- package/src/components/NSSection.module.css +10 -10
- package/src/components/NSSection.tsx +23 -23
- package/src/components/NSSectionCards.module.css +38 -38
- package/src/components/NSSectionCards.tsx +51 -51
- package/src/components/NSSectionTiles.module.css +10 -10
- package/src/components/NSSectionTiles.tsx +25 -25
- package/src/components/NSSectionTitle.tsx +21 -21
- package/src/components/NSSpace.tsx +28 -28
- package/src/components/NSTabPage.module.css +59 -59
- package/src/components/NSTabPage.tsx +78 -78
- package/src/components/NSTable.module.css +261 -260
- package/src/components/NSTable.tsx +477 -477
- package/src/components/NSTag.module.css +52 -52
- package/src/components/NSTag.tsx +78 -78
- package/src/components/NSTile.module.css +77 -77
- package/src/components/NSTile.tsx +27 -27
- package/src/components/NSTimelineMonthly.module.css +71 -71
- package/src/components/NSTimelineMonthly.tsx +44 -44
- package/src/components/NSTitle.module.css +15 -15
- package/src/components/NSTitle.tsx +19 -19
- package/src/formatter/BackColorFormatter.tsx +23 -23
- package/src/formatter/BaseColumnFormatter.ts +16 -16
- package/src/formatter/BooleanFormatter.ts +22 -22
- package/src/formatter/DateFormatter.ts +20 -20
- package/src/formatter/DateTimeFormatter.ts +20 -20
- package/src/formatter/DurationFormatter.ts +13 -13
- package/src/formatter/EmailFormatter.ts +13 -13
- package/src/formatter/EnumFormatter.ts +13 -13
- package/src/formatter/FloatFormatter.ts +16 -16
- package/src/formatter/ForeColorFormatter.tsx +24 -24
- package/src/formatter/IDFormatter.tsx +30 -30
- package/src/formatter/IPFormatter.ts +13 -13
- package/src/formatter/IntegerFormatter.ts +16 -16
- package/src/formatter/JsonFormatter.ts +14 -14
- package/src/formatter/MoneyFormatter.ts +16 -16
- package/src/formatter/PhoneFormatter.ts +13 -13
- package/src/formatter/StringFormatter.ts +22 -22
- package/src/formatter/TimeFormatter.ts +21 -21
- package/src/formatter/UnknowFormatter.ts +18 -14
- package/src/index.tsx +7 -7
- package/src/main.ts +184 -185
- package/src/pages/NSNotFoundPage.module.css +17 -17
- package/src/pages/NSNotFoundPage.tsx +11 -11
- package/src/pages/NSUpdating.module.css +35 -35
- package/src/pages/NSUpdating.tsx +32 -32
- package/src/props/IBaseComponentProps.ts +8 -8
- package/src/props/IHeaderIconProps.ts +10 -10
- package/src/props/IHeaderProps.ts +7 -7
- package/src/props/IImageProps.ts +4 -4
- package/src/props/ILinkProps.ts +5 -5
- package/src/props/IValidationNumberProps.ts +4 -4
- package/src/props/IValidationProps.ts +7 -7
- package/src/props/IValidationRegexProps.ts +4 -4
- package/src/props/IValidationStringProps.ts +4 -4
- package/src/routing/INSRouterMaker.ts +6 -6
- package/src/routing/INSRouterProps.ts +5 -5
- package/src/routing/INSRouterState.ts +5 -5
- package/src/routing/NSRouterMaker.tsx +33 -33
- package/src/routing/Notifier.ts +79 -79
- package/tsconfig.json +43 -43
- 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/NSFilterBoxDialog.module.css +0 -37
- package/src/components/NSFilterBoxDialog.module.css +0 -37
- package/src/components/NSFilterBoxDialog.tsx +0 -73
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx
|
|
3
|
-
import React from "react";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import React, { createRef } from "react";
|
|
4
4
|
import "./NSBoxDate.module.css";
|
|
5
5
|
import StylesNSBox from "./NSBox.module.css";
|
|
6
|
-
import { NSLabelErrorNotifier } from "./NSLabelErrorNotifier";
|
|
7
6
|
import { Validator } from "../Validator";
|
|
8
|
-
import {
|
|
7
|
+
import { safeMenuMenuItem } from "./NSMenuButton";
|
|
8
|
+
import { NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
9
9
|
export class NSBoxDate extends React.Component {
|
|
10
10
|
constructor(props) {
|
|
11
11
|
var _a;
|
|
12
12
|
super(props);
|
|
13
|
+
this.NSBoxBaseLayout_Main = createRef();
|
|
13
14
|
this.state = { value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : "" };
|
|
14
15
|
this.setValue = this.setValue.bind(this);
|
|
15
16
|
this.getValue = this.getValue.bind(this);
|
|
@@ -20,14 +21,7 @@ export class NSBoxDate extends React.Component {
|
|
|
20
21
|
Validator.getErrorDate(this.props.title, this.state.value));
|
|
21
22
|
}
|
|
22
23
|
getValue(checkError = true) {
|
|
23
|
-
|
|
24
|
-
let error = this.getError();
|
|
25
|
-
if (error) {
|
|
26
|
-
this.setState({ error });
|
|
27
|
-
throw new Error(error);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return new Date(this.state.value);
|
|
24
|
+
return NSBoxBaseLayout.checkGetValue(this, checkError, () => new Date(this.state.value));
|
|
31
25
|
}
|
|
32
26
|
setValue(value, callback) {
|
|
33
27
|
this.setState({ value }, () => {
|
|
@@ -41,13 +35,14 @@ export class NSBoxDate extends React.Component {
|
|
|
41
35
|
this.setValue(e.target.value);
|
|
42
36
|
}
|
|
43
37
|
render() {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
let menu = safeMenuMenuItem(this.props, () => { });
|
|
39
|
+
menu.builtin.fullscreen = false;
|
|
40
|
+
return (_jsx(NSBoxBaseLayout, Object.assign({ ref: this.NSBoxBaseLayout_Main }, this.props, { getValue: () => this.state.value, setValue: this.setValue, menu: menu, children: _jsx("input", { id: this.props.id, name: this.props.name, type: "date", className: StylesNSBox.ns_box_input, placeholder: this.props.placeholder, value: this.state.value, onChange: this.onChanged, onClick: () => { if (this.props.onClicked)
|
|
41
|
+
this.props.onClicked(this); }, style: {
|
|
42
|
+
background: `url("https://static.namirasoft.com/image/concept/type/date.png") white no-repeat scroll center right 4px`,
|
|
43
|
+
backgroundSize: "24px",
|
|
44
|
+
paddingRight: "8px"
|
|
45
|
+
} }) })));
|
|
51
46
|
}
|
|
52
47
|
}
|
|
53
48
|
//# sourceMappingURL=NSBoxDate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxDate.js","sourceRoot":"","sources":["../../src/components/NSBoxDate.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NSBoxDate.js","sourceRoot":"","sources":["../../src/components/NSBoxDate.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,wBAAwB,CAAC;AAChC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAyB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAU3E,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,SAAyC;IAG7E,YAAY,KAAqB;;QAEhC,KAAK,CAAC,KAAK,CAAC,CAAC;QAHd,yBAAoB,GAAG,SAAS,EAAmB,CAAC;QAInD,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,YAAY,mCAAI,EAAE,EAAE,CAAC;QACjD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,C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CAAC,KAAK,IACd,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAChC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,YAEV,gBACC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EACjB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,WAAW,CAAC,YAAY,EACnC,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,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;oBAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EACxE,KAAK,EAAE;oBACN,UAAU,EAAE,0GAA0G;oBACtH,cAAc,EAAE,MAAM;oBACtB,YAAY,EAAE,KAAK;iBACnB,GACA,IACe,CAClB,CAAC;IACH,CAAC;CACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
input[type="date"]::-webkit-calendar-picker-indicator {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
opacity: 0;
|
|
4
|
-
padding-right: 0px;
|
|
1
|
+
input[type="date"]::-webkit-calendar-picker-indicator {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
opacity: 0;
|
|
4
|
+
padding-right: 0px;
|
|
5
5
|
}
|
|
@@ -2,18 +2,14 @@ import React from "react";
|
|
|
2
2
|
import "./NSBoxDateTime.module.css";
|
|
3
3
|
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
4
4
|
import { IValidationProps } from "../props/IValidationProps";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
defaultValue?: string;
|
|
9
|
-
onChanged?: (e: NSBoxDateTime, callback?: () => void) => void;
|
|
10
|
-
onClicked?: (e: NSBoxDateTime) => void;
|
|
5
|
+
import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
6
|
+
export interface NSBoxDateTimeProps extends IBaseComponentProps, IValidationProps, INSBoxBaseLayoutProps<string, NSBoxDateTime> {
|
|
11
7
|
}
|
|
12
8
|
export interface NSBoxDateTimeState {
|
|
13
9
|
value: string;
|
|
14
|
-
error?: string;
|
|
15
10
|
}
|
|
16
11
|
export declare class NSBoxDateTime extends React.Component<NSBoxDateTimeProps, NSBoxDateTimeState> {
|
|
12
|
+
NSBoxBaseLayout_Main: React.RefObject<NSBoxBaseLayout>;
|
|
17
13
|
constructor(props: NSBoxDateTimeProps);
|
|
18
14
|
getError(): string | null;
|
|
19
15
|
getValue(checkError?: boolean): string;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx
|
|
3
|
-
import React from "react";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import React, { createRef } from "react";
|
|
4
4
|
import "./NSBoxDateTime.module.css";
|
|
5
5
|
import StylesNSBox from "./NSBox.module.css";
|
|
6
|
-
import { NSLabelErrorNotifier } from "./NSLabelErrorNotifier";
|
|
7
6
|
import { Validator } from "../Validator";
|
|
8
|
-
import {
|
|
7
|
+
import { safeMenuMenuItem } from "./NSMenuButton";
|
|
8
|
+
import { NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
9
9
|
export class NSBoxDateTime extends React.Component {
|
|
10
10
|
constructor(props) {
|
|
11
11
|
var _a;
|
|
12
12
|
super(props);
|
|
13
|
+
this.NSBoxBaseLayout_Main = createRef();
|
|
13
14
|
this.state = { value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : "" };
|
|
14
15
|
this.setValue = this.setValue.bind(this);
|
|
15
16
|
this.getValue = this.getValue.bind(this);
|
|
@@ -20,14 +21,7 @@ export class NSBoxDateTime extends React.Component {
|
|
|
20
21
|
Validator.getErrorDate(this.props.title, this.state.value));
|
|
21
22
|
}
|
|
22
23
|
getValue(checkError = true) {
|
|
23
|
-
|
|
24
|
-
let error = this.getError();
|
|
25
|
-
if (error) {
|
|
26
|
-
this.setState({ error });
|
|
27
|
-
throw new Error(error);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return this.state.value;
|
|
24
|
+
return NSBoxBaseLayout.checkGetValue(this, checkError, () => this.state.value);
|
|
31
25
|
}
|
|
32
26
|
setValue(value, callback) {
|
|
33
27
|
this.setState({ value }, () => {
|
|
@@ -41,13 +35,14 @@ export class NSBoxDateTime extends React.Component {
|
|
|
41
35
|
this.setValue(e.target.value);
|
|
42
36
|
}
|
|
43
37
|
render() {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
let menu = safeMenuMenuItem(this.props, () => { });
|
|
39
|
+
menu.builtin.fullscreen = false;
|
|
40
|
+
return (_jsx(NSBoxBaseLayout, Object.assign({ ref: this.NSBoxBaseLayout_Main }, this.props, { getValue: () => this.state.value, setValue: this.setValue, menu: menu, children: _jsx("input", { id: this.props.id, name: this.props.name, type: "datetime-local", className: StylesNSBox.ns_box_input, placeholder: this.props.placeholder, value: this.state.value, onChange: this.onChanged, onClick: () => { if (this.props.onClicked)
|
|
41
|
+
this.props.onClicked(this); }, style: {
|
|
42
|
+
background: `url("https://static.namirasoft.com/image/concept/type/date-time.png") white no-repeat scroll center right 4px`,
|
|
43
|
+
backgroundSize: "24px",
|
|
44
|
+
paddingRight: "8px"
|
|
45
|
+
} }) })));
|
|
51
46
|
}
|
|
52
47
|
}
|
|
53
48
|
//# sourceMappingURL=NSBoxDateTime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxDateTime.js","sourceRoot":"","sources":["../../src/components/NSBoxDateTime.tsx"],"names":[],"mappings":"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C,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;oBAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EACxE,KAAK,EAAE;oBACN,UAAU,EAAE,+GAA+G;oBAC3H,cAAc,EAAE,MAAM;oBACtB,YAAY,EAAE,KAAK;iBACnB,GACA,IACe,CAClB,CAAC;IACH,CAAC;CACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
opacity: 0;
|
|
4
|
-
padding-right: 0px;
|
|
1
|
+
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
opacity: 0;
|
|
4
|
+
padding-right: 0px;
|
|
5
5
|
}
|
|
@@ -2,22 +2,18 @@ import React from "react";
|
|
|
2
2
|
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
3
3
|
import { IValidationProps } from "../props/IValidationProps";
|
|
4
4
|
import { IValidationNumberProps } from "../props/IValidationNumberProps";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
defaultValue?: number;
|
|
9
|
-
onChanged?: (e: NSBoxDouble, callback?: () => void) => void;
|
|
10
|
-
onClicked?: (e: NSBoxDouble) => void;
|
|
5
|
+
import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
6
|
+
export interface NSBoxDoubleProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps, INSBoxBaseLayoutProps<number, NSBoxDouble> {
|
|
11
7
|
}
|
|
12
8
|
export interface NSBoxDoubleState {
|
|
13
|
-
value
|
|
14
|
-
error?: string;
|
|
9
|
+
value: number;
|
|
15
10
|
}
|
|
16
11
|
export declare class NSBoxDouble extends React.Component<NSBoxDoubleProps, NSBoxDoubleState> {
|
|
12
|
+
NSBoxBaseLayout_Main: React.RefObject<NSBoxBaseLayout>;
|
|
17
13
|
constructor(props: NSBoxDoubleProps);
|
|
18
14
|
getError(): string | null;
|
|
19
|
-
getValue(checkError?: boolean): number
|
|
20
|
-
setValue(value: number
|
|
15
|
+
getValue(checkError?: boolean): number;
|
|
16
|
+
setValue(value: number, callback?: () => void): void;
|
|
21
17
|
private onChanged;
|
|
22
18
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
23
19
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx
|
|
3
|
-
import React from "react";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import React, { createRef } from "react";
|
|
4
4
|
import StylesNSBox from "./NSBox.module.css";
|
|
5
5
|
import { Validator } from "../Validator";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { safeMenuMenuItem } from "./NSMenuButton";
|
|
7
|
+
import { NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
8
8
|
export class NSBoxDouble extends React.Component {
|
|
9
9
|
constructor(props) {
|
|
10
|
+
var _a;
|
|
10
11
|
super(props);
|
|
11
|
-
this.
|
|
12
|
+
this.NSBoxBaseLayout_Main = createRef();
|
|
13
|
+
this.state = { value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : 0 };
|
|
12
14
|
this.setValue = this.setValue.bind(this);
|
|
13
15
|
this.getValue = this.getValue.bind(this);
|
|
14
16
|
this.onChanged = this.onChanged.bind(this);
|
|
@@ -18,14 +20,7 @@ export class NSBoxDouble extends React.Component {
|
|
|
18
20
|
Validator.getErrorNumber(this.props.title, this.state.value, this.props));
|
|
19
21
|
}
|
|
20
22
|
getValue(checkError = true) {
|
|
21
|
-
|
|
22
|
-
let error = this.getError();
|
|
23
|
-
if (error) {
|
|
24
|
-
this.setState({ error });
|
|
25
|
-
throw new Error(error);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return this.state.value;
|
|
23
|
+
return NSBoxBaseLayout.checkGetValue(this, checkError, () => this.state.value);
|
|
29
24
|
}
|
|
30
25
|
setValue(value, callback) {
|
|
31
26
|
this.setState({ value }, () => {
|
|
@@ -39,12 +34,13 @@ export class NSBoxDouble extends React.Component {
|
|
|
39
34
|
this.setValue(parseFloat(e.target.value));
|
|
40
35
|
}
|
|
41
36
|
render() {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
37
|
+
let menu = safeMenuMenuItem(this.props, () => { });
|
|
38
|
+
menu.builtin.fullscreen = false;
|
|
39
|
+
return (_jsx(NSBoxBaseLayout, Object.assign({ ref: this.NSBoxBaseLayout_Main }, this.props, { getValue: () => { var _a, _b; return (_b = (_a = this.state.value) === null || _a === void 0 ? void 0 : _a.toLocaleString()) !== null && _b !== void 0 ? _b : ""; }, setValue: () => { }, menu: menu, children: _jsx("input", { id: this.props.id, name: this.props.name, type: "number", className: StylesNSBox.ns_box_input, placeholder: this.props.placeholder, value: this.state.value, onChange: this.onChanged, onClick: () => { if (this.props.onClicked)
|
|
40
|
+
this.props.onClicked(this); }, min: this.props.min, max: this.props.max, inputMode: "decimal", pattern: "[0-9]*[.,]?[0-9]*", style: {
|
|
41
|
+
background: `url("https://static.namirasoft.com/image/concept/type/float.png") white no-repeat scroll center right 4px`,
|
|
42
|
+
backgroundSize: "24px"
|
|
43
|
+
} }) })));
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
46
|
//# sourceMappingURL=NSBoxDouble.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxDouble.js","sourceRoot":"","sources":["../../src/components/NSBoxDouble.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NSBoxDouble.js","sourceRoot":"","s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AI,CAAC,SAAS,EACxB,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;oBAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EACxE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EACnB,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EACnB,SAAS,EAAC,SAAS,EACnB,OAAO,EAAC,mBAAmB,EAC3B,KAAK,EAAE;oBACN,UAAU,EAAE,2GAA2G;oBACvH,cAAc,EAAE,MAAM;iBACtB,GACA,IACe,CAClB,CAAC;IACH,CAAC;CACD"}
|
|
@@ -4,18 +4,14 @@ import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
|
4
4
|
import { IValidationProps } from "../props/IValidationProps";
|
|
5
5
|
import { IValidationNumberProps } from "../props/IValidationNumberProps";
|
|
6
6
|
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
defaultValue?: string;
|
|
11
|
-
onChanged?: (e: NSBoxDuration, callback?: () => void) => void;
|
|
12
|
-
onClicked?: (e: NSBoxDuration) => void;
|
|
7
|
+
import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
8
|
+
export interface NSBoxDurationProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, IValidationNumberProps, INSBoxBaseLayoutProps<string, NSBoxDuration> {
|
|
13
9
|
}
|
|
14
10
|
export interface NSBoxDurationState {
|
|
15
11
|
value: string;
|
|
16
|
-
error?: string;
|
|
17
12
|
}
|
|
18
13
|
export declare class NSBoxDuration extends React.Component<NSBoxDurationProps, NSBoxDurationState> {
|
|
14
|
+
NSBoxBaseLayout_Main: React.RefObject<NSBoxBaseLayout>;
|
|
19
15
|
constructor(props: NSBoxDurationProps);
|
|
20
16
|
getError(): string | null;
|
|
21
17
|
getValue(checkError?: boolean): string;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx
|
|
3
|
-
import React from "react";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import React, { createRef } from "react";
|
|
4
4
|
import "./NSBoxDuration.module.css";
|
|
5
5
|
import StylesNSBox from "./NSBox.module.css";
|
|
6
6
|
import { Validator } from "../Validator";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { safeMenuMenuItem } from "./NSMenuButton";
|
|
8
|
+
import { NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
9
9
|
export class NSBoxDuration extends React.Component {
|
|
10
10
|
constructor(props) {
|
|
11
11
|
var _a;
|
|
12
12
|
super(props);
|
|
13
|
+
this.NSBoxBaseLayout_Main = createRef();
|
|
13
14
|
this.state = { value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : "" };
|
|
14
15
|
this.getValue = this.getValue.bind(this);
|
|
15
16
|
this.setValue = this.setValue.bind(this);
|
|
@@ -20,14 +21,7 @@ export class NSBoxDuration extends React.Component {
|
|
|
20
21
|
Validator.getErrorDuration(this.props.title, this.state.value));
|
|
21
22
|
}
|
|
22
23
|
getValue(checkError = true) {
|
|
23
|
-
|
|
24
|
-
let error = this.getError();
|
|
25
|
-
if (error) {
|
|
26
|
-
this.setState({ error });
|
|
27
|
-
throw new Error(error);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return this.state.value;
|
|
24
|
+
return NSBoxBaseLayout.checkGetValue(this, checkError, () => this.state.value);
|
|
31
25
|
}
|
|
32
26
|
setValue(value, callback) {
|
|
33
27
|
this.setState({ value }, () => {
|
|
@@ -41,13 +35,14 @@ export class NSBoxDuration extends React.Component {
|
|
|
41
35
|
this.setValue(e.target.value);
|
|
42
36
|
}
|
|
43
37
|
render() {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
let menu = safeMenuMenuItem(this.props, () => { });
|
|
39
|
+
menu.builtin.fullscreen = false;
|
|
40
|
+
return (_jsx(NSBoxBaseLayout, Object.assign({ ref: this.NSBoxBaseLayout_Main }, this.props, { getValue: () => { var _a, _b; return (_b = (_a = this.state.value) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : ""; }, setValue: () => { }, menu: menu, children: _jsx("input", { id: this.props.id, name: this.props.name, type: "time", className: StylesNSBox.ns_box_input, placeholder: this.props.placeholder, value: this.state.value, onChange: this.onChanged, onClick: () => { if (this.props.onClicked)
|
|
41
|
+
this.props.onClicked(this); }, step: "1", style: {
|
|
42
|
+
background: `url("https://static.namirasoft.com/image/concept/type/duration.png") white no-repeat scroll center right 4px`,
|
|
43
|
+
backgroundSize: "24px",
|
|
44
|
+
paddingRight: "7px"
|
|
45
|
+
} }) })));
|
|
51
46
|
}
|
|
52
47
|
}
|
|
53
48
|
//# sourceMappingURL=NSBoxDuration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxDuration.js","sourceRoot":"","sources":["../../src/components/NSBoxDuration.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NSBoxDuration.js","sourceRoot":"","sources":["../../src/components/NSBoxDuration.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,4BAA4B,CAAA;AACnC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAK7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAyB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAU3E,MAAM,OAAO,aAAc,SAAQ,KAAK,CA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icator {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
opacity: 0;
|
|
4
|
-
padding-right: 0px;
|
|
1
|
+
input[type="time"]::-webkit-calendar-picker-indicator {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
opacity: 0;
|
|
4
|
+
padding-right: 0px;
|
|
5
5
|
}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
3
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
2
4
|
import { IValidationProps } from "../props/IValidationProps";
|
|
3
5
|
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
4
|
-
|
|
5
|
-
export interface NSBoxEmailProps extends IBaseComponentProps, IValidationProps, IValidationStringProps {
|
|
6
|
-
title: string;
|
|
7
|
-
defaultValue?: string;
|
|
8
|
-
onChanged?: (e: NSBoxEmail, callback?: () => void) => void;
|
|
9
|
-
onClicked?: (e: NSBoxEmail) => void;
|
|
10
|
-
placeholder?: string;
|
|
6
|
+
export interface NSBoxEmailProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxEmail> {
|
|
11
7
|
}
|
|
12
8
|
export interface NSBoxEmailState {
|
|
13
9
|
value: string;
|
|
14
|
-
error?: string;
|
|
15
10
|
}
|
|
16
11
|
export declare class NSBoxEmail extends React.Component<NSBoxEmailProps, NSBoxEmailState> {
|
|
12
|
+
NSBoxBaseLayout_Main: React.RefObject<NSBoxBaseLayout>;
|
|
17
13
|
constructor(props: NSBoxEmailProps);
|
|
18
14
|
getError(): string | null;
|
|
19
15
|
getValue(checkError?: boolean): string;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx
|
|
3
|
-
import React from "react";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import React, { createRef } from "react";
|
|
4
4
|
import StylesNSBox from "./NSBox.module.css";
|
|
5
5
|
import { Validator } from "../Validator";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
7
|
+
import { safeMenuMenuItem } from "./NSMenuButton";
|
|
8
8
|
export class NSBoxEmail extends React.Component {
|
|
9
9
|
constructor(props) {
|
|
10
10
|
var _a;
|
|
11
11
|
super(props);
|
|
12
|
+
this.NSBoxBaseLayout_Main = createRef();
|
|
12
13
|
this.state = { value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : "" };
|
|
13
14
|
this.setValue = this.setValue.bind(this);
|
|
14
15
|
this.getValue = this.getValue.bind(this);
|
|
@@ -20,14 +21,7 @@ export class NSBoxEmail extends React.Component {
|
|
|
20
21
|
Validator.getErrorEmail(this.props.title, this.state.value, this.props));
|
|
21
22
|
}
|
|
22
23
|
getValue(checkError = true) {
|
|
23
|
-
|
|
24
|
-
let error = this.getError();
|
|
25
|
-
if (error) {
|
|
26
|
-
this.setState({ error });
|
|
27
|
-
throw new Error(error);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return this.state.value;
|
|
24
|
+
return NSBoxBaseLayout.checkGetValue(this, checkError, () => this.state.value);
|
|
31
25
|
}
|
|
32
26
|
setValue(value, callback) {
|
|
33
27
|
this.setState({ value }, callback);
|
|
@@ -40,19 +34,19 @@ export class NSBoxEmail extends React.Component {
|
|
|
40
34
|
callback();
|
|
41
35
|
}
|
|
42
36
|
render() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return (_jsx(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
37
|
+
let menu = safeMenuMenuItem(this.props, (items) => {
|
|
38
|
+
if (!this.getError())
|
|
39
|
+
items.push({
|
|
40
|
+
title: "Send Email",
|
|
41
|
+
icon: "https://static.namirasoft.com/image/concept/type/email.png",
|
|
42
|
+
href: `mailto:${this.state.value}`
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
return (_jsx(NSBoxBaseLayout, Object.assign({ ref: this.NSBoxBaseLayout_Main }, this.props, { getValue: () => this.state.value, setValue: this.setValue, menu: menu, children: _jsx("input", { id: this.props.id, name: this.props.name, type: "email", className: StylesNSBox.ns_box_input, placeholder: this.props.placeholder, value: this.state.value, onChange: this.onChanged, onClick: () => { if (this.props.onClicked)
|
|
46
|
+
this.props.onClicked(this); }, style: {
|
|
47
|
+
background: `url("https://static.namirasoft.com/image/concept/type/email.png") white no-repeat scroll center right 4px`,
|
|
48
|
+
backgroundSize: "24px"
|
|
49
|
+
} }) })));
|
|
56
50
|
}
|
|
57
51
|
}
|
|
58
52
|
//# sourceMappingURL=NSBoxEmail.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxEmail.js","sourceRoot":"","sources":["../../src/components/NSBoxEmail.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NSBoxEmail.js","sourceRoot":"","sources":["../../src/components/NSBoxEmail.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAyB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAclD,MAAM,OAAO,UAAW,SAAQ,KAAK,CAAC,SAA2C;IAGhF,YAAY,KAAsB;;QAEjC,KAAK,CAAC,KAAK,CAAC,CAAC;QAHd,yBAAoB,GAAG,SAAS,EAAmB,CAAC;QAInD,IAAI,CAAC,KAAK,GAA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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { NSBoxBaseCombo, NSBoxBaseComboProps } from "../
|
|
3
|
-
export interface NSBoxEntityProps<Data> extends NSBoxBaseComboProps<Data
|
|
2
|
+
import { NSBoxBaseCombo, NSBoxBaseComboProps } from "../components/NSBoxBaseCombo";
|
|
3
|
+
export interface NSBoxEntityProps<Data> extends NSBoxBaseComboProps<Data, NSBoxEntity<Data>> {
|
|
4
4
|
}
|
|
5
5
|
export declare class NSBoxEntity<Data> extends React.Component<NSBoxEntityProps<Data>> {
|
|
6
6
|
NSBoxBaseCombo: React.RefObject<NSBoxBaseCombo<Data>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import React, { createRef } from "react";
|
|
4
|
-
import { NSBoxBaseCombo } from "../
|
|
4
|
+
import { NSBoxBaseCombo } from "../components/NSBoxBaseCombo";
|
|
5
5
|
export class NSBoxEntity extends React.Component {
|
|
6
6
|
constructor(props) {
|
|
7
7
|
super(props);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxEntity.js","sourceRoot":"","sources":["../../src/components/NSBoxEntity.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,cAAc,EAAuB,MAAM,
|
|
1
|
+
{"version":3,"file":"NSBoxEntity.js","sourceRoot":"","sources":["../../src/components/NSBoxEntity.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,cAAc,EAAuB,MAAM,8BAA8B,CAAC;AAKnF,MAAM,OAAO,WAAkB,SAAQ,KAAK,CAAC,SAAiC;IAG7E,YAAY,KAA6B;QAExC,KAAK,CAAC,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CAAC,CAAC;YACvC,CAAC,EACD,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;gBAEhB,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;oBACvB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAC7B,CAAC,IACA,CAAA;IACH,CAAC;CACD"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
3
|
+
import { IValidationProps } from "../props/IValidationProps";
|
|
4
|
+
import { NSBoxBaseCombo, INSBoxBaseComboProps } from "../components/NSBoxBaseCombo";
|
|
5
|
+
interface NSBoxEnumProps<Data> extends IBaseComponentProps, IValidationProps, INSBoxBaseComboProps<NSBoxEnum<Data>> {
|
|
4
6
|
getEnumObject: () => {
|
|
5
|
-
[s: string]:
|
|
7
|
+
[s: string]: Data;
|
|
6
8
|
};
|
|
7
9
|
}
|
|
8
|
-
export declare class NSBoxEnum<
|
|
10
|
+
export declare class NSBoxEnum<Data> extends React.Component<NSBoxEnumProps<Data>> {
|
|
9
11
|
NSBoxBaseCombo: React.RefObject<NSBoxBaseCombo<string>>;
|
|
10
|
-
constructor(props: NSBoxEnumProps<
|
|
11
|
-
getValue
|
|
12
|
-
[s: string]:
|
|
13
|
-
}, _default:
|
|
14
|
-
getValues
|
|
15
|
-
[s: string]:
|
|
16
|
-
}, _default:
|
|
12
|
+
constructor(props: NSBoxEnumProps<Data>);
|
|
13
|
+
getValue(enumObject: {
|
|
14
|
+
[s: string]: Data;
|
|
15
|
+
}, _default: Data, checkError?: boolean): Data | null;
|
|
16
|
+
getValues(enumObject: {
|
|
17
|
+
[s: string]: Data;
|
|
18
|
+
}, _default: Data): Data[];
|
|
17
19
|
setValue(value: string | null, callback?: () => void): void;
|
|
18
20
|
setValues(values: string[], callback?: () => void): void;
|
|
19
21
|
render(): import("react/jsx-runtime").JSX.Element;
|