namirasoft-site-react 1.4.531 → 1.4.533
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/App.d.ts +1 -1
- package/dist/NSBoxBuilder.d.ts +25 -25
- package/dist/Validator.d.ts +4 -0
- package/dist/Validator.js +23 -0
- package/dist/Validator.js.map +1 -1
- package/dist/components/NSBanner.d.ts +1 -1
- package/dist/components/NSBarAction.d.ts +1 -1
- package/dist/components/NSBarAlert.d.ts +1 -1
- package/dist/components/NSBarNotification.d.ts +1 -1
- package/dist/components/NSBarTitle.d.ts +1 -1
- package/dist/components/NSBoxBaseCombo.d.ts +1 -1
- package/dist/components/NSBoxBaseLayout.d.ts +1 -1
- package/dist/components/NSBoxBaseLayoutRecursive.d.ts +1 -1
- package/dist/components/NSBoxBoolean.d.ts +1 -1
- package/dist/components/NSBoxBooleans.d.ts +1 -1
- package/dist/components/NSBoxColor.d.ts +1 -1
- package/dist/components/NSBoxCombo.d.ts +1 -1
- package/dist/components/NSBoxDate.d.ts +1 -1
- package/dist/components/NSBoxDateRange.d.ts +14 -0
- package/dist/components/NSBoxDateRange.js +39 -0
- package/dist/components/NSBoxDateRange.js.map +1 -0
- package/dist/components/NSBoxDateRangeBase.d.ts +46 -0
- package/dist/components/NSBoxDateRangeBase.js +94 -0
- package/dist/components/NSBoxDateRangeBase.js.map +1 -0
- package/dist/components/NSBoxDateRangeBase.module.css +90 -0
- package/dist/components/NSBoxDateTime.d.ts +1 -1
- package/dist/components/NSBoxDateTimeRange.d.ts +14 -0
- package/dist/components/NSBoxDateTimeRange.js +47 -0
- package/dist/components/NSBoxDateTimeRange.js.map +1 -0
- package/dist/components/NSBoxDouble.d.ts +1 -1
- package/dist/components/NSBoxDuration.d.ts +1 -1
- package/dist/components/NSBoxDynamic.d.ts +1 -1
- package/dist/components/NSBoxDynamics.d.ts +1 -1
- package/dist/components/NSBoxEmail.d.ts +1 -1
- package/dist/components/NSBoxEntity.d.ts +1 -1
- package/dist/components/NSBoxEnum.d.ts +1 -1
- package/dist/components/NSBoxFile.d.ts +1 -1
- package/dist/components/NSBoxFilePath.d.ts +1 -1
- package/dist/components/NSBoxFont.d.ts +1 -1
- package/dist/components/NSBoxIPV4.d.ts +1 -1
- package/dist/components/NSBoxIPV4Range.d.ts +1 -1
- package/dist/components/NSBoxIPV6.d.ts +1 -1
- package/dist/components/NSBoxIPV6Range.d.ts +1 -1
- package/dist/components/NSBoxInteger.d.ts +1 -1
- package/dist/components/NSBoxMoney.d.ts +1 -1
- package/dist/components/NSBoxPhone.d.ts +1 -1
- package/dist/components/NSBoxRadio.d.ts +1 -1
- package/dist/components/NSBoxSchemaBase.d.ts +1 -1
- package/dist/components/NSBoxSchemaVariable.d.ts +1 -1
- package/dist/components/NSBoxSearch.d.ts +1 -1
- package/dist/components/NSBoxSensitive.d.ts +1 -1
- package/dist/components/NSBoxString.d.ts +1 -1
- package/dist/components/NSBoxTextArea.d.ts +1 -1
- package/dist/components/NSBoxTime.d.ts +1 -1
- package/dist/components/NSBoxTimeRange.d.ts +17 -0
- package/dist/components/NSBoxTimeRange.js +64 -0
- package/dist/components/NSBoxTimeRange.js.map +1 -0
- package/dist/components/NSBoxTimeZone.d.ts +7 -7
- package/dist/components/NSBoxTimeZone.js +30 -8
- package/dist/components/NSBoxTimeZone.js.map +1 -1
- package/dist/components/NSBoxURL.d.ts +1 -1
- package/dist/components/NSBoxVersion.d.ts +1 -1
- package/dist/components/NSButtonBlue.d.ts +1 -1
- package/dist/components/NSButtonGreen.d.ts +1 -1
- package/dist/components/NSButtonRed.d.ts +1 -1
- package/dist/components/NSCard.d.ts +1 -1
- package/dist/components/NSCardScreenshot.d.ts +1 -1
- package/dist/components/NSChartColumn.d.ts +1 -1
- package/dist/components/NSChartDoughnut.d.ts +1 -1
- package/dist/components/NSChartPie.d.ts +1 -1
- package/dist/components/NSChartRange.d.ts +1 -1
- package/dist/components/NSChartTable.d.ts +1 -1
- package/dist/components/NSColumn.d.ts +1 -1
- package/dist/components/NSCopy.d.ts +1 -1
- package/dist/components/NSCopyBox.d.ts +1 -1
- package/dist/components/NSDialog.d.ts +1 -1
- package/dist/components/NSDialogBox.d.ts +1 -1
- package/dist/components/NSDialogBoxDate.d.ts +1 -1
- package/dist/components/NSDialogBoxDateTime.d.ts +1 -1
- package/dist/components/NSDialogBoxPhone.d.ts +1 -1
- package/dist/components/NSDialogBoxString.d.ts +1 -1
- package/dist/components/NSDialogDelete.d.ts +1 -1
- package/dist/components/NSDialogInfo.d.ts +1 -1
- package/dist/components/NSDialogPageSelection.d.ts +2 -2
- package/dist/components/NSDownTimer.d.ts +1 -1
- package/dist/components/NSDownload.d.ts +1 -1
- package/dist/components/NSElectronicCard.d.ts +1 -1
- package/dist/components/NSEntityCardBackground.d.ts +1 -1
- package/dist/components/NSFilterBox.d.ts +2 -2
- package/dist/components/NSFilterBoxItems.d.ts +1 -1
- package/dist/components/NSFilterItem.d.ts +1 -1
- package/dist/components/NSFooter.d.ts +1 -1
- package/dist/components/NSGauge.d.ts +1 -1
- package/dist/components/NSGaugeDate.d.ts +1 -1
- package/dist/components/NSGaugeNumber.d.ts +1 -1
- package/dist/components/NSHeader.d.ts +1 -1
- package/dist/components/NSHeaderScreenshot.d.ts +1 -1
- package/dist/components/NSID.d.ts +1 -1
- package/dist/components/NSInfo.d.ts +1 -1
- package/dist/components/NSLabel.d.ts +1 -1
- package/dist/components/NSLabelErrorNotifier.d.ts +1 -1
- package/dist/components/NSLabelSensitive.d.ts +1 -1
- package/dist/components/NSLayout.d.ts +1 -1
- package/dist/components/NSLine.d.ts +1 -1
- package/dist/components/NSLineText.d.ts +1 -1
- package/dist/components/NSLink.d.ts +1 -1
- package/dist/components/NSLinkBlue.d.ts +1 -1
- package/dist/components/NSLinkGreen.d.ts +1 -1
- package/dist/components/NSLinkRed.d.ts +1 -1
- package/dist/components/NSListGrouped.d.ts +1 -1
- package/dist/components/NSListProduct.d.ts +1 -1
- package/dist/components/NSLoading.d.ts +1 -1
- package/dist/components/NSMegaMenu.d.ts +1 -1
- package/dist/components/NSMenuAction.d.ts +1 -1
- package/dist/components/NSMenuButton.d.ts +1 -1
- package/dist/components/NSNoData.d.ts +1 -1
- package/dist/components/NSPagination.d.ts +1 -1
- package/dist/components/NSPanel.d.ts +1 -1
- package/dist/components/NSPanelAccordion.d.ts +1 -1
- package/dist/components/NSProductSearch.d.ts +1 -1
- package/dist/components/NSProgressBar.d.ts +1 -1
- package/dist/components/NSRange.d.ts +1 -1
- package/dist/components/NSRepeater.d.ts +1 -1
- package/dist/components/NSRepeaterNSBoxSchemaVariable.d.ts +1 -1
- package/dist/components/NSRepeaterNSTag.d.ts +1 -1
- package/dist/components/NSRow.d.ts +1 -1
- package/dist/components/NSSection.d.ts +1 -1
- package/dist/components/NSSectionCards.d.ts +1 -1
- package/dist/components/NSSectionTiles.d.ts +1 -1
- package/dist/components/NSSectionTitle.d.ts +1 -1
- package/dist/components/NSSpace.d.ts +1 -1
- package/dist/components/NSSplitter.d.ts +1 -1
- package/dist/components/NSTabPage.d.ts +1 -1
- package/dist/components/NSTable.d.ts +1 -1
- package/dist/components/NSTag.d.ts +1 -1
- package/dist/components/NSTile.d.ts +1 -1
- package/dist/components/NSTimelineMonthly.d.ts +1 -1
- package/dist/components/NSTitle.d.ts +1 -1
- package/dist/formatter/StringFormatter.d.ts +1 -1
- package/dist/main.d.ts +4 -0
- package/dist/main.js +4 -0
- package/dist/main.js.map +1 -1
- package/dist/pages/NSImplementing.d.ts +1 -1
- package/dist/pages/NSNotFoundPage.d.ts +1 -1
- package/dist/pages/NSUpdating.d.ts +1 -1
- package/package.json +4 -3
- package/src/Validator.ts +24 -0
- package/src/components/NSBoxDateRange.tsx +59 -0
- package/src/components/NSBoxDateRangeBase.module.css +90 -0
- package/src/components/NSBoxDateRangeBase.tsx +189 -0
- package/src/components/NSBoxDateTimeRange.tsx +68 -0
- package/src/components/NSBoxTimeRange.tsx +94 -0
- package/src/components/NSBoxTimeZone.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AC5B,CAAC,GACH,CACL,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -19,5 +19,5 @@ export declare class NSBoxDouble extends React.Component<NSBoxDoubleProps, NSBox
|
|
|
19
19
|
getValue(checkError?: boolean): number | null;
|
|
20
20
|
setValue(value: number | null, callback?: () => void): void;
|
|
21
21
|
setDisabled(disabled: boolean): void;
|
|
22
|
-
render():
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
}
|
|
@@ -20,5 +20,5 @@ export declare class NSBoxDuration extends React.Component<NSBoxDurationProps, N
|
|
|
20
20
|
getValue(checkError?: boolean): string | null;
|
|
21
21
|
setValue(value: string | null, callback?: () => void): void;
|
|
22
22
|
setDisabled(disabled: boolean): void;
|
|
23
|
-
render():
|
|
23
|
+
render(): React.JSX.Element;
|
|
24
24
|
}
|
|
@@ -19,5 +19,5 @@ export declare class NSBoxDynamic extends React.Component<NSBoxDynamicProps, NSB
|
|
|
19
19
|
setValue(value: any | null, callback?: () => void): void;
|
|
20
20
|
isEmpty(value: any): boolean;
|
|
21
21
|
setDisabled(disabled: boolean): void;
|
|
22
|
-
render():
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
}
|
|
@@ -24,5 +24,5 @@ export declare class NSBoxEmail extends React.Component<NSBoxEmailProps, NSBoxEm
|
|
|
24
24
|
getValue(checkError?: boolean): string | null;
|
|
25
25
|
setValue(value: string | null, callback?: () => void): void;
|
|
26
26
|
setDisabled(disabled: boolean): void;
|
|
27
|
-
render():
|
|
27
|
+
render(): React.JSX.Element;
|
|
28
28
|
}
|
|
@@ -47,5 +47,5 @@ export declare class NSBoxEntity<Data> extends React.Component<NSBoxEntityProps<
|
|
|
47
47
|
setDataAll(values: Data[], callback?: () => void): void;
|
|
48
48
|
setDisabled(disabled: boolean): void;
|
|
49
49
|
reload(): void;
|
|
50
|
-
render():
|
|
50
|
+
render(): React.JSX.Element;
|
|
51
51
|
}
|
|
@@ -29,6 +29,6 @@ export declare class NSBoxEnum<Data> extends React.Component<NSBoxEnumProps<Data
|
|
|
29
29
|
}, _default: Data): Data[];
|
|
30
30
|
setDisabled(disabled: boolean): void;
|
|
31
31
|
reload(): void;
|
|
32
|
-
render():
|
|
32
|
+
render(): React.JSX.Element;
|
|
33
33
|
}
|
|
34
34
|
export {};
|
|
@@ -18,5 +18,5 @@ export interface NSBoxFileState {
|
|
|
18
18
|
export declare class NSBoxFile extends React.Component<NSBoxFileProps, NSBoxFileState> {
|
|
19
19
|
NSBoxBaseLayout_Main: React.RefObject<NSBoxBaseLayout>;
|
|
20
20
|
constructor(props: NSBoxFileProps);
|
|
21
|
-
render():
|
|
21
|
+
render(): React.JSX.Element;
|
|
22
22
|
}
|
|
@@ -18,5 +18,5 @@ export declare class NSBoxFilePath extends React.Component<NSBoxFilePathProps, N
|
|
|
18
18
|
getValue(checkError?: boolean): string | null;
|
|
19
19
|
setValue(value: string | null, callback?: () => void): void;
|
|
20
20
|
setDisabled(disabled: boolean): void;
|
|
21
|
-
render():
|
|
21
|
+
render(): React.JSX.Element;
|
|
22
22
|
}
|
|
@@ -18,5 +18,5 @@ export declare class NSBoxFont extends React.Component<NSBoxFontProps, NSBoxFont
|
|
|
18
18
|
getValue(checkError?: boolean): string | null;
|
|
19
19
|
setValue(value: string | null, callback?: () => void): void;
|
|
20
20
|
setDisabled(disabled: boolean): void;
|
|
21
|
-
render():
|
|
21
|
+
render(): React.JSX.Element;
|
|
22
22
|
}
|
|
@@ -18,5 +18,5 @@ export declare class NSBoxIPV4 extends React.Component<NSBoxIPV4Props, NSBoxIPV4
|
|
|
18
18
|
getValue(checkError?: boolean): string | null;
|
|
19
19
|
setValue(value: string | null, callback?: () => void): void;
|
|
20
20
|
setDisabled(disabled: boolean): void;
|
|
21
|
-
render():
|
|
21
|
+
render(): React.JSX.Element;
|
|
22
22
|
}
|
|
@@ -18,5 +18,5 @@ export declare class NSBoxIPV4Range extends React.Component<NSBoxIPV4RangeProps,
|
|
|
18
18
|
getValue(checkError?: boolean): string | null;
|
|
19
19
|
setValue(value: string | null, callback?: () => void): void;
|
|
20
20
|
setDisabled(disabled: boolean): void;
|
|
21
|
-
render():
|
|
21
|
+
render(): React.JSX.Element;
|
|
22
22
|
}
|
|
@@ -18,5 +18,5 @@ export declare class NSBoxIPV6 extends React.Component<NSBoxIPV6Props, NSBoxIPV6
|
|
|
18
18
|
getValue(checkError?: boolean): string | null;
|
|
19
19
|
setValue(value: string | null, callback?: () => void): void;
|
|
20
20
|
setDisabled(disabled: boolean): void;
|
|
21
|
-
render():
|
|
21
|
+
render(): React.JSX.Element;
|
|
22
22
|
}
|
|
@@ -18,5 +18,5 @@ export declare class NSBoxIPV6Range extends React.Component<NSBoxIPV6RangeProps,
|
|
|
18
18
|
getValue(checkError?: boolean): string | null;
|
|
19
19
|
setValue(value: string | null, callback?: () => void): void;
|
|
20
20
|
setDisabled(disabled: boolean): void;
|
|
21
|
-
render():
|
|
21
|
+
render(): React.JSX.Element;
|
|
22
22
|
}
|
|
@@ -21,5 +21,5 @@ export declare class NSBoxInteger extends React.Component<NSBoxIntegerProps, NSB
|
|
|
21
21
|
getValue(checkError?: boolean): number | null;
|
|
22
22
|
setValue(value: number | null, callback?: () => void): void;
|
|
23
23
|
setDisabled(disabled: boolean): void;
|
|
24
|
-
render():
|
|
24
|
+
render(): React.JSX.Element;
|
|
25
25
|
}
|
|
@@ -19,5 +19,5 @@ export declare class NSBoxMoney extends Component<NSBoxMoneyProps, NSBoxMoneySta
|
|
|
19
19
|
getValue(checkError?: boolean): number | null;
|
|
20
20
|
setValue(value: number | null, callback?: () => void): void;
|
|
21
21
|
setDisabled(disabled: boolean): void;
|
|
22
|
-
render(): import("react
|
|
22
|
+
render(): import("react").JSX.Element;
|
|
23
23
|
}
|
|
@@ -19,5 +19,5 @@ export declare class NSBoxPhone extends React.Component<NSBoxPhoneProps, NSBoxPh
|
|
|
19
19
|
getValue(checkError?: boolean): string | null;
|
|
20
20
|
setValue(value: string | null, callback?: () => void): void;
|
|
21
21
|
setDisabled(disabled: boolean): void;
|
|
22
|
-
render():
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
}
|
|
@@ -20,5 +20,5 @@ export declare class NSBoxRadio extends React.Component<NSBoxRadioProps, NSBoxRa
|
|
|
20
20
|
setValue(value: boolean, callback?: () => void): void;
|
|
21
21
|
setDisabled(disabled: boolean): void;
|
|
22
22
|
componentDidUpdate(prevProps: NSBoxRadioProps): void;
|
|
23
|
-
render():
|
|
23
|
+
render(): React.JSX.Element;
|
|
24
24
|
}
|
|
@@ -37,5 +37,5 @@ export declare class NSBoxSchemaBase extends React.Component<NSBoxSchemaBaseProp
|
|
|
37
37
|
setValue(value: BaseTypeSchema | null, callback?: () => void): void;
|
|
38
38
|
setDisabled(disabled: boolean): void;
|
|
39
39
|
private onChanged;
|
|
40
|
-
render():
|
|
40
|
+
render(): React.JSX.Element;
|
|
41
41
|
}
|
|
@@ -30,5 +30,5 @@ export declare class NSBoxSchemaVariable extends React.Component<NSBoxSchemaVari
|
|
|
30
30
|
setValue(value: BaseVariableSchema | null, callback?: () => void): void;
|
|
31
31
|
setDisabled(disabled: boolean): void;
|
|
32
32
|
private onChanged;
|
|
33
|
-
render():
|
|
33
|
+
render(): React.JSX.Element;
|
|
34
34
|
}
|
|
@@ -26,5 +26,5 @@ export declare class NSBoxSearch extends Component<NSBoxSearchProps, NSBoxSearch
|
|
|
26
26
|
getValue(checkError?: boolean): string | null;
|
|
27
27
|
setValue(value: string | null, callback?: () => void): void;
|
|
28
28
|
setDisabled(disabled: boolean): void;
|
|
29
|
-
render(): import("react
|
|
29
|
+
render(): import("react").JSX.Element;
|
|
30
30
|
}
|
|
@@ -29,5 +29,5 @@ export declare class NSBoxSensitive extends React.Component<NSBoxSensitiveProps,
|
|
|
29
29
|
getValue(checkError?: boolean): string | null;
|
|
30
30
|
setValue(value: string | null, callback?: () => void): void;
|
|
31
31
|
setDisabled(disabled: boolean): void;
|
|
32
|
-
render():
|
|
32
|
+
render(): React.JSX.Element;
|
|
33
33
|
}
|
|
@@ -19,5 +19,5 @@ export declare class NSBoxString extends React.Component<NSBoxStringProps, NSBox
|
|
|
19
19
|
getValue(checkError?: boolean): string | null;
|
|
20
20
|
setValue(value: string | null, callback?: () => void): void;
|
|
21
21
|
setDisabled(disabled: boolean): void;
|
|
22
|
-
render():
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
}
|
|
@@ -21,5 +21,5 @@ export declare class NSBoxTextArea extends React.Component<NSBoxTextAreaProps, N
|
|
|
21
21
|
getValue(checkError?: boolean): string | null;
|
|
22
22
|
setValue(value: string | null, callback?: () => void): void;
|
|
23
23
|
setDisabled(disabled: boolean): void;
|
|
24
|
-
render():
|
|
24
|
+
render(): React.JSX.Element;
|
|
25
25
|
}
|
|
@@ -19,5 +19,5 @@ export declare class NSBoxTime extends React.Component<NSBoxTimeProps, NSBoxTime
|
|
|
19
19
|
getValue(checkError?: boolean): string | null;
|
|
20
20
|
setValue(value: string | null, callback?: () => void): void;
|
|
21
21
|
setDisabled(disabled: boolean): void;
|
|
22
|
-
render():
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Dayjs } from 'dayjs';
|
|
2
|
+
import { NSBoxDateRangeBase, NSBoxDateRangeBaseProps } from './NSBoxDateRangeBase';
|
|
3
|
+
export interface NSBoxTimeRangeProps extends NSBoxDateRangeBaseProps<NSBoxTimeRange> {
|
|
4
|
+
maxRangeSeconds?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class NSBoxTimeRange extends NSBoxDateRangeBase<NSBoxTimeRangeProps> {
|
|
7
|
+
protected getFormat(): string;
|
|
8
|
+
getError(): string | null;
|
|
9
|
+
protected getBuiltinPresets(): {
|
|
10
|
+
label: string;
|
|
11
|
+
title: string;
|
|
12
|
+
from: string;
|
|
13
|
+
to: string;
|
|
14
|
+
}[];
|
|
15
|
+
protected toDayjsValue(): [Dayjs, Dayjs] | null;
|
|
16
|
+
protected renderPicker(): import("react").JSX.Element;
|
|
17
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { TimePicker } from 'antd';
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
|
+
import { TimeOperation } from 'namirasoft-core';
|
|
6
|
+
import { Validator } from '../Validator';
|
|
7
|
+
import StylesNSBox from './NSBox.module.css';
|
|
8
|
+
import { NSBoxDateRangeBase } from './NSBoxDateRangeBase';
|
|
9
|
+
import Styles from './NSBoxDateRangeBase.module.css';
|
|
10
|
+
export class NSBoxTimeRange extends NSBoxDateRangeBase {
|
|
11
|
+
getFormat() {
|
|
12
|
+
return 'HH:mm:ss';
|
|
13
|
+
}
|
|
14
|
+
getError() {
|
|
15
|
+
const { title, required, maxRangeSeconds } = this.props;
|
|
16
|
+
const { value } = this.state;
|
|
17
|
+
if (required && (!value || !value.from || !value.to))
|
|
18
|
+
return `${title} is required.`;
|
|
19
|
+
const fromErr = Validator.getErrorTime(title, value === null || value === void 0 ? void 0 : value.from, false);
|
|
20
|
+
if (fromErr)
|
|
21
|
+
return fromErr;
|
|
22
|
+
const toErr = Validator.getErrorTime(title, value === null || value === void 0 ? void 0 : value.to, false);
|
|
23
|
+
if (toErr)
|
|
24
|
+
return toErr;
|
|
25
|
+
if (maxRangeSeconds && (value === null || value === void 0 ? void 0 : value.from) && (value === null || value === void 0 ? void 0 : value.to)) {
|
|
26
|
+
const toSeconds = (t) => t.split(':').reduce((acc, v, i) => acc + Number(v) * [3600, 60, 1][i], 0);
|
|
27
|
+
if (toSeconds(value.to) - toSeconds(value.from) > maxRangeSeconds) {
|
|
28
|
+
const h = Math.floor(maxRangeSeconds / 3600).toString().padStart(2, '0');
|
|
29
|
+
const m = Math.floor((maxRangeSeconds % 3600) / 60).toString().padStart(2, '0');
|
|
30
|
+
const s = (maxRangeSeconds % 60).toString().padStart(2, '0');
|
|
31
|
+
return `${title} range must not exceed ${h}:${m}:${s}.`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
getBuiltinPresets() {
|
|
37
|
+
const fmt = this.getFormat();
|
|
38
|
+
const now = new Date();
|
|
39
|
+
now.setSeconds(0, 0);
|
|
40
|
+
const to = TimeOperation.format(now, fmt);
|
|
41
|
+
return [
|
|
42
|
+
{ label: '30M', title: 'Last 30 Min', from: TimeOperation.format(TimeOperation.minutesAgo(30, now), fmt), to },
|
|
43
|
+
{ label: '1H', title: 'Last 1 Hour', from: TimeOperation.format(TimeOperation.hoursAgo(1, now), fmt), to },
|
|
44
|
+
{ label: '2H', title: 'Last 2 Hours', from: TimeOperation.format(TimeOperation.hoursAgo(2, now), fmt), to },
|
|
45
|
+
{ label: '6H', title: 'Last 6 Hours', from: TimeOperation.format(TimeOperation.hoursAgo(6, now), fmt), to },
|
|
46
|
+
{ label: '12H', title: 'Last 12 Hours', from: TimeOperation.format(TimeOperation.hoursAgo(12, now), fmt), to },
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
toDayjsValue() {
|
|
50
|
+
const { value } = this.state;
|
|
51
|
+
if (!(value === null || value === void 0 ? void 0 : value.from) || !(value === null || value === void 0 ? void 0 : value.to))
|
|
52
|
+
return null;
|
|
53
|
+
return [dayjs(value.from, 'HH:mm:ss'), dayjs(value.to, 'HH:mm:ss')];
|
|
54
|
+
}
|
|
55
|
+
renderPicker() {
|
|
56
|
+
return (_jsx(TimePicker.RangePicker, { className: `${StylesNSBox.ns_box_input} ${Styles.ns_picker}`, variant: "borderless", value: this.toDayjsValue(), format: this.getFormat(), onChange: (_, timeStrings) => {
|
|
57
|
+
if ((timeStrings === null || timeStrings === void 0 ? void 0 : timeStrings[0]) && (timeStrings === null || timeStrings === void 0 ? void 0 : timeStrings[1]))
|
|
58
|
+
this.setValue({ from: timeStrings[0], to: timeStrings[1] });
|
|
59
|
+
else
|
|
60
|
+
this.setValue(null);
|
|
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,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAA,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,EAAE,CAAA;YAC1B,OAAO,IAAI,CAAC;QAChB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC;IACxE,CAAC;IAES,YAAY;QAElB,OAAO,CACH,KAAC,UAAU,CAAC,WAAW,IACnB,SAAS,EAAE,GAAG,WAAW,CAAC,YAAY,IAAI,MAAM,CAAC,SAAS,EAAE,EAC5D,OAAO,EAAC,YAAY,EACpB,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,EAC1B,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,EACxB,QAAQ,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,EAAE;gBAEzB,IAAI,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,CAAC,CAAC,MAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,CAAC,CAAC,CAAA;oBACpC,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;;oBAE5D,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC5B,CAAC,GACH,CACL,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component } from "react";
|
|
2
2
|
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
3
3
|
import { IValidationProps } from "../props/IValidationProps";
|
|
4
|
-
import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
5
|
-
import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
6
4
|
import { INSBox } from "./INSBox";
|
|
7
|
-
|
|
5
|
+
import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
6
|
+
export interface NSBoxTimeZoneProps extends IBaseComponentProps, IValidationProps, INSBoxBaseLayoutProps<NSBoxTimeZone, string> {
|
|
8
7
|
input?: IBaseComponentProps;
|
|
9
8
|
}
|
|
10
9
|
export interface NSBoxTimeZoneState {
|
|
11
10
|
value: string | null;
|
|
12
11
|
}
|
|
13
|
-
export declare class NSBoxTimeZone extends
|
|
14
|
-
NSBoxBaseLayout_Main:
|
|
12
|
+
export declare class NSBoxTimeZone extends Component<NSBoxTimeZoneProps, NSBoxTimeZoneState> implements INSBox {
|
|
13
|
+
NSBoxBaseLayout_Main: import("react").RefObject<NSBoxBaseLayout>;
|
|
15
14
|
constructor(props: NSBoxTimeZoneProps);
|
|
16
15
|
isEmpty(value: string): boolean;
|
|
17
16
|
getError(): string | null;
|
|
18
17
|
getValue(checkError?: boolean): string | null;
|
|
19
18
|
setValue(value: string | null, callback?: () => void): void;
|
|
20
19
|
setDisabled(disabled: boolean): void;
|
|
21
|
-
|
|
20
|
+
private getOptions;
|
|
21
|
+
render(): import("react").JSX.Element;
|
|
22
22
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { Select } from 'antd';
|
|
4
|
+
import { TimeZone } from 'namirasoft-core';
|
|
5
|
+
import { Component, createRef } from "react";
|
|
5
6
|
import { Validator } from "../Validator";
|
|
6
|
-
import
|
|
7
|
+
import Styles from "./NSBoxBaseCombo.module.css";
|
|
7
8
|
import { NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
8
|
-
|
|
9
|
+
import { safeMenuMenuItem } from "./NSMenuButton";
|
|
10
|
+
export class NSBoxTimeZone extends Component {
|
|
9
11
|
constructor(props) {
|
|
10
12
|
var _a;
|
|
11
13
|
super(props);
|
|
@@ -22,8 +24,7 @@ export class NSBoxTimeZone extends React.Component {
|
|
|
22
24
|
return true;
|
|
23
25
|
}
|
|
24
26
|
getError() {
|
|
25
|
-
return
|
|
26
|
-
Validator.getErrorString(this.props.title, this.state.value, this.props));
|
|
27
|
+
return Validator.getError(this.props.title, this.state.value, this.props);
|
|
27
28
|
}
|
|
28
29
|
getValue(checkError = true) {
|
|
29
30
|
var _a;
|
|
@@ -46,12 +47,33 @@ export class NSBoxTimeZone extends React.Component {
|
|
|
46
47
|
var _a;
|
|
47
48
|
(_a = this.NSBoxBaseLayout_Main.current) === null || _a === void 0 ? void 0 : _a.setDisabled(disabled);
|
|
48
49
|
}
|
|
50
|
+
getOptions() {
|
|
51
|
+
try {
|
|
52
|
+
return TimeZone.list()
|
|
53
|
+
.sort((a, b) => a.Minutes - b.Minutes || a.FullName.localeCompare(b.FullName))
|
|
54
|
+
.map(tz => {
|
|
55
|
+
const sign = tz.Minutes >= 0 ? '+' : '-';
|
|
56
|
+
const abs = Math.abs(tz.Minutes);
|
|
57
|
+
const h = String(Math.floor(abs / 60)).padStart(2, '0');
|
|
58
|
+
const m = String(abs % 60).padStart(2, '0');
|
|
59
|
+
const label = `(UTC${sign}${h}:${m}) ${tz.FullName.replace(/_/g, ' ')}`;
|
|
60
|
+
return {
|
|
61
|
+
label,
|
|
62
|
+
value: tz.FullName,
|
|
63
|
+
search: `${label} ${tz.FullName}`.toLowerCase()
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
catch (_a) {
|
|
68
|
+
return [];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
49
71
|
render() {
|
|
50
|
-
var _a, _b, _c, _d, _e;
|
|
72
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
51
73
|
let menu = safeMenuMenuItem(this.props, () => { });
|
|
52
74
|
if (!menu.builtin.copy)
|
|
53
75
|
menu.builtin.copy = { enabled: true, getValue: () => { var _a; return (_a = this.state.value) !== null && _a !== void 0 ? _a : ""; } };
|
|
54
|
-
return (_jsx(NSBoxBaseLayout, Object.assign({ ref: this.NSBoxBaseLayout_Main }, this.props, { menu: menu, getValue: () => this.
|
|
76
|
+
return (_jsx(NSBoxBaseLayout, Object.assign({ ref: this.NSBoxBaseLayout_Main }, this.props, { menu: menu, getValue: () => this.state.value, children: _jsx(Select, { id: (_a = this.props.input) === null || _a === void 0 ? void 0 : _a.id, className: `${Styles.ns_box_base_combo_select} ${(_d = (_c = (_b = this.props.input) === null || _b === void 0 ? void 0 : _b.classList) === null || _c === void 0 ? void 0 : _c.join(" ")) !== null && _d !== void 0 ? _d : ""}`, showSearch: { optionFilterProp: 'search' }, allowClear: true, placeholder: (_e = this.props.placeholder) !== null && _e !== void 0 ? _e : "Please select a timezone", value: (_f = this.state.value) !== null && _f !== void 0 ? _f : undefined, onChange: (value) => this.setValue(value !== null && value !== void 0 ? value : null), onClick: () => { var _a, _b; return (_b = (_a = this.props).onClicked) === null || _b === void 0 ? void 0 : _b.call(_a, this); }, options: this.getOptions(), style: (_g = this.props.input) === null || _g === void 0 ? void 0 : _g.style }) })));
|
|
55
77
|
}
|
|
56
78
|
}
|
|
57
79
|
//# sourceMappingURL=NSBoxTimeZone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxTimeZone.js","sourceRoot":"","sources":["../../src/components/NSBoxTimeZone.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,
|
|
1
|
+
{"version":3,"file":"NSBoxTimeZone.js","sourceRoot":"","sources":["../../src/components/NSBoxTimeZone.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE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AA,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,0CAAE,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,mCAAI,EAAE,EAAE,EAC/F,UAAU,EAAE,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAC1C,UAAU,QACV,WAAW,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,WAAW,mCAAI,0BAA0B,EACjE,KAAK,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,mCAAI,SAAS,EACpC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,IAAI,CAAC,EACjD,OAAO,EAAE,GAAG,EAAE,eAAC,OAAA,MAAA,MAAA,IAAI,CAAC,KAAK,EAAC,SAAS,mDAAG,IAAI,CAAC,CAAA,EAAA,EAC3C,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,EAC1B,KAAK,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,0CAAE,KAAK,GAChC,IACY,CACrB,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -18,5 +18,5 @@ export declare class NSBoxURL extends React.Component<NSBoxURLProps, NSBoxURLSta
|
|
|
18
18
|
getValue(checkError?: boolean): string | null;
|
|
19
19
|
setValue(value: string | null, callback?: () => void): void;
|
|
20
20
|
setDisabled(disabled: boolean): void;
|
|
21
|
-
render():
|
|
21
|
+
render(): React.JSX.Element;
|
|
22
22
|
}
|
|
@@ -18,5 +18,5 @@ export declare class NSBoxVersion extends React.Component<NSBoxVersionProps, NSB
|
|
|
18
18
|
getValue(checkError?: boolean): string | null;
|
|
19
19
|
setValue(value: string | null, callback?: () => void): void;
|
|
20
20
|
setDisabled(disabled: boolean): void;
|
|
21
|
-
render():
|
|
21
|
+
render(): React.JSX.Element;
|
|
22
22
|
}
|
|
@@ -11,4 +11,4 @@ export interface NSCardProps extends IBaseComponentProps {
|
|
|
11
11
|
image?: IImageProps;
|
|
12
12
|
link: NSLinkProps;
|
|
13
13
|
}
|
|
14
|
-
export declare function NSCard(props: NSCardProps): import("react
|
|
14
|
+
export declare function NSCard(props: NSCardProps): import("react").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export interface NSCardScreenshotProps extends IBaseComponentProps {
|
|
|
5
5
|
timeSpent: string;
|
|
6
6
|
onDelete: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare function NSCardScreenshot(props: NSCardScreenshotProps): import("react
|
|
8
|
+
export declare function NSCardScreenshot(props: NSCardScreenshotProps): import("react").JSX.Element;
|
|
@@ -15,4 +15,4 @@ export interface NSChartColumnProps extends IBaseComponentProps {
|
|
|
15
15
|
height?: number;
|
|
16
16
|
width?: number;
|
|
17
17
|
}
|
|
18
|
-
export declare function NSChartColumn(props: NSChartColumnProps): import("react
|
|
18
|
+
export declare function NSChartColumn(props: NSChartColumnProps): import("react").JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface NSChartDoughnutProps extends IBaseComponentProps {
|
|
|
6
6
|
backgroundColors?: string[];
|
|
7
7
|
borderWidth?: number;
|
|
8
8
|
}
|
|
9
|
-
export declare function NSChartDoughnut(props: NSChartDoughnutProps): import("react
|
|
9
|
+
export declare function NSChartDoughnut(props: NSChartDoughnutProps): import("react").JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface NSChartPieProps extends IBaseComponentProps {
|
|
|
6
6
|
backgroundColors?: string[];
|
|
7
7
|
borderWidth?: number;
|
|
8
8
|
}
|
|
9
|
-
export declare function NSChartPie(props: NSChartPieProps): import("react
|
|
9
|
+
export declare function NSChartPie(props: NSChartPieProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
2
2
|
export interface NSChartRangeProps extends IBaseComponentProps {
|
|
3
3
|
}
|
|
4
|
-
export declare function NSChartRange(_: NSChartRangeProps): import("react
|
|
4
|
+
export declare function NSChartRange(_: NSChartRangeProps): import("react").JSX.Element;
|
|
@@ -11,5 +11,5 @@ interface DataType {
|
|
|
11
11
|
interface CustomTableProps extends IBaseComponentProps {
|
|
12
12
|
data: DataType[];
|
|
13
13
|
}
|
|
14
|
-
export declare function NSChartTable(props: CustomTableProps): import("react
|
|
14
|
+
export declare function NSChartTable(props: CustomTableProps): import("react").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -4,4 +4,4 @@ export interface NSColumnProps extends IBaseComponentProps {
|
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
onEnterPressed?: () => void;
|
|
6
6
|
}
|
|
7
|
-
export declare function NSColumn(props: NSColumnProps): import("react
|
|
7
|
+
export declare function NSColumn(props: NSColumnProps): import("react").JSX.Element;
|
|
@@ -7,4 +7,4 @@ export interface NSCopyProps extends IBaseComponentProps {
|
|
|
7
7
|
export interface NSCopyState {
|
|
8
8
|
copied: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare function NSCopy(props: NSCopyProps):
|
|
10
|
+
export declare function NSCopy(props: NSCopyProps): React.JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface NSCopyBoxProps extends IBaseComponentProps {
|
|
|
6
6
|
export interface NSCopyBoxState {
|
|
7
7
|
copied: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare function NSCopyBox(props: NSCopyBoxProps): import("react
|
|
9
|
+
export declare function NSCopyBox(props: NSCopyBoxProps): import("react").JSX.Element;
|
|
@@ -10,4 +10,4 @@ export interface NSDialogProps extends IBaseComponentProps {
|
|
|
10
10
|
};
|
|
11
11
|
zIndex?: number;
|
|
12
12
|
}
|
|
13
|
-
export declare function NSDialog(props: NSDialogProps): import("react
|
|
13
|
+
export declare function NSDialog(props: NSDialogProps): import("react").JSX.Element;
|
|
@@ -8,5 +8,5 @@ export interface NSDialogBoxProps<ChildrenType> extends INSDialogBoxBaseProps<Ch
|
|
|
8
8
|
children_ref: RefObject<ChildrenType>;
|
|
9
9
|
}
|
|
10
10
|
export declare class NSDialogBox<ChildrenType> extends Component<NSDialogBoxProps<ChildrenType>> {
|
|
11
|
-
render(): import("react
|
|
11
|
+
render(): import("react").JSX.Element;
|
|
12
12
|
}
|
|
@@ -6,5 +6,5 @@ export interface NSDialogBoxDateProps extends INSDialogBoxBaseProps<NSBoxDate> {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class NSDialogBoxDate extends Component<NSDialogBoxDateProps> {
|
|
8
8
|
private NSBoxDate_Ref;
|
|
9
|
-
render(): import("react
|
|
9
|
+
render(): import("react").JSX.Element;
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@ export interface NSDialogBoxDateTimeProps extends INSDialogBoxBaseProps<NSBoxDat
|
|
|
6
6
|
}
|
|
7
7
|
export declare class NSDialogBoxDateTime extends Component<NSDialogBoxDateTimeProps> {
|
|
8
8
|
private NSBoxDateTime_Ref;
|
|
9
|
-
render(): import("react
|
|
9
|
+
render(): import("react").JSX.Element;
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@ export interface NSDialogBoxPhoneProps extends INSDialogBoxBaseProps<NSBoxPhone>
|
|
|
6
6
|
}
|
|
7
7
|
export declare class NSDialogBoxPhone extends Component<NSDialogBoxPhoneProps> {
|
|
8
8
|
private NSBoxPhone_Ref;
|
|
9
|
-
render(): import("react
|
|
9
|
+
render(): import("react").JSX.Element;
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@ export interface NSDialogBoxStringProps extends INSDialogBoxBaseProps<NSBoxStrin
|
|
|
6
6
|
}
|
|
7
7
|
export declare class NSDialogBoxString extends Component<NSDialogBoxStringProps> {
|
|
8
8
|
private NSBoxString_Ref;
|
|
9
|
-
render(): import("react
|
|
9
|
+
render(): import("react").JSX.Element;
|
|
10
10
|
}
|
|
@@ -5,4 +5,4 @@ export interface NSDialogDeleteProps extends NSDialogInfoProps {
|
|
|
5
5
|
onNo: NSButtonOnClickProps;
|
|
6
6
|
loading?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare function NSDialogDelete(props: NSDialogDeleteProps): import("react
|
|
8
|
+
export declare function NSDialogDelete(props: NSDialogDeleteProps): import("react").JSX.Element;
|