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,31 +1,43 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Styles from './NSMenuButton.module.css';
|
|
2
3
|
import { useRef, useState } from 'react';
|
|
3
4
|
import { CopyToClipboard } from '../CopyToClipboard';
|
|
4
|
-
import
|
|
5
|
+
import { NSBoxTextArea } from '../components/NSBoxTextArea';
|
|
6
|
+
import { NSDialog } from '../components/NSDialog';
|
|
7
|
+
export function safeMenuMenuItem(props, pusher) {
|
|
8
|
+
let menu = props.menu;
|
|
9
|
+
if (!menu)
|
|
10
|
+
menu = { items: [], builtin: {} };
|
|
11
|
+
if (menu.items)
|
|
12
|
+
menu.items = [];
|
|
13
|
+
pusher(menu.items);
|
|
14
|
+
return menu;
|
|
15
|
+
}
|
|
5
16
|
export function NSMenuButton(props) {
|
|
6
|
-
var _a;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
7
18
|
let textarea = useRef(null);
|
|
8
|
-
let [state, setState] = useState({ value:
|
|
19
|
+
let [state, setState] = useState({ value: "", fullscreen: false });
|
|
9
20
|
const onClose = () => {
|
|
10
21
|
setState(prevState => { return Object.assign(Object.assign({}, prevState), { fullscreen: false }); });
|
|
11
22
|
props.setValue(state.value);
|
|
12
23
|
};
|
|
13
24
|
const onChanged = (e) => {
|
|
14
|
-
setState(prevState => { return Object.assign(Object.assign({}, prevState), { value: e.
|
|
25
|
+
setState(prevState => { return Object.assign(Object.assign({}, prevState), { value: e.getValue() }); });
|
|
15
26
|
};
|
|
16
27
|
let buttons = [];
|
|
17
|
-
if (
|
|
28
|
+
if (((_b = (_a = props.menu) === null || _a === void 0 ? void 0 : _a.builtin) === null || _b === void 0 ? void 0 : _b.copy) !== false)
|
|
18
29
|
buttons.push({
|
|
19
|
-
title: "Copy", icon: "https://static.namirasoft.com/image/concept/copy/blue.svg", onClick: () => { CopyToClipboard.copyToClipboard(props.
|
|
30
|
+
title: "Copy", icon: "https://static.namirasoft.com/image/concept/copy/blue.svg", onClick: () => { CopyToClipboard.copyToClipboard(props.getValue()); }
|
|
20
31
|
});
|
|
21
|
-
if (
|
|
32
|
+
if (((_d = (_c = props.menu) === null || _c === void 0 ? void 0 : _c.builtin) === null || _d === void 0 ? void 0 : _d.fullscreen) !== false)
|
|
22
33
|
buttons.push({
|
|
23
34
|
title: "Full Screen", icon: "https://static.namirasoft.com/image/concept/full-screen/blue.svg", onClick: () => {
|
|
24
|
-
setState(prevState => { return Object.assign(Object.assign({}, prevState), { fullscreen: true }); });
|
|
35
|
+
setState(prevState => { return Object.assign(Object.assign({}, prevState), { fullscreen: true, value: props.getValue() }); });
|
|
25
36
|
let focus = () => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
37
|
+
var _a;
|
|
38
|
+
if ((_a = textarea.current) === null || _a === void 0 ? void 0 : _a.textarea.current) {
|
|
39
|
+
textarea.current.textarea.current.focus({});
|
|
40
|
+
if (document.activeElement === textarea.current.textarea.current)
|
|
29
41
|
return;
|
|
30
42
|
}
|
|
31
43
|
setTimeout(focus, 10);
|
|
@@ -33,10 +45,11 @@ export function NSMenuButton(props) {
|
|
|
33
45
|
focus();
|
|
34
46
|
}
|
|
35
47
|
});
|
|
36
|
-
if (props.
|
|
37
|
-
buttons.push(...props.
|
|
38
|
-
return (_jsx("div", { id: props.id, className: `${Styles.
|
|
39
|
-
_jsx("a", { title: button.title, className: Styles.
|
|
40
|
-
_jsx("button", { title: button.title, className: Styles.
|
|
48
|
+
if ((_e = props.menu) === null || _e === void 0 ? void 0 : _e.items)
|
|
49
|
+
buttons.push(...(_f = props.menu) === null || _f === void 0 ? void 0 : _f.items);
|
|
50
|
+
return (_jsx("div", { id: props.id, className: `${Styles.ns_menu_button_container} ${(_g = props.classList) === null || _g === void 0 ? void 0 : _g.join(" ")}`, style: props.style, children: _jsxs("div", { className: Styles.ns_menu_button_group_parrent, children: [_jsx("div", { className: Styles.ns_menu_button_group, children: _jsx("div", { style: { direction: "rtl" }, children: buttons.map(button => (button.href ?
|
|
51
|
+
_jsx("a", { title: button.title, className: Styles.ns_menu_button_menu_item, href: button.href, children: _jsx("img", { src: button.icon, alt: button.title, width: 16, height: 16 }) }) :
|
|
52
|
+
_jsx("button", { title: button.title, className: Styles.ns_menu_button_menu_item, onClick: button.onClick, children: _jsx("img", { src: button.icon, alt: button.title, width: 16, height: 16 }) }))) }) }), state.fullscreen &&
|
|
53
|
+
_jsx(NSDialog, { onClose: () => { onClose(); }, center_dialog: true, hideCloseButton: true, style: { width: "80%", height: "80%", maxWidth: "100%", maxHeight: "100%" }, children: _jsx(NSBoxTextArea, { ref: textarea, required: false, title: '', hideHeader: true, defaultValue: props.getValue(), onChanged: onChanged, style: { width: "100%", height: "100%", maxWidth: "100%", maxHeight: "100%", zIndex: "999" } }) })] }) }));
|
|
41
54
|
}
|
|
42
55
|
//# sourceMappingURL=NSMenuButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSMenuButton.js","sourceRoot":"","sources":["../../src/components/NSMenuButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"NSMenuButton.js","sourceRoot":"","sources":["../../src/components/NSMenuButton.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA6BlD,MAAM,UAAU,gBAAgB,CAAC,KAAuC,EAAE,MAAoD;IAE1H,IAAI,IAAI,GAAsC,KAAK,CAAC,IAAI,CAAC;IACzD,IAAI,CAAC,IAAI;QACL,IAAI,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACtC,IAAI,IAAI,CAAC,KAAK;QACV,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IACpB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnB,OAAO,IAAI,CAAC;AAChB,CAAC;AACD,MAAM,UAAU,YAAY,CAAC,KAAwB;;IAEjD,IAAI,QAAQ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MAAM,CAAC,KAAK,EACjB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACZ,GACF,CAAC,CAAC;4BACN,iBACI,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,SAAS,EAAE,MAAM,CAAC,wBAAwB,EAC1C,OAAO,EAAE,MAAM,CAAC,OAAO,YAEvB,cACI,GAAG,EAAE,MAAM,CAAC,IAAI,EAChB,GAAG,EAAE,MAAM,CAAC,KAAK,EACjB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACZ,GACG,CAChB,CAAC,GAEJ,GACJ,EAEF,KAAK,CAAC,UAAU;oBAChB,KAAC,QAAQ,IACL,OAAO,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,CAAA,CAAC,CAAC,EAC5B,aAAa,QACb,eAAe,QACf,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAE3E,KAAC,aAAa,IACV,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,KAAK,EACf,KAAK,EAAC,EAAE,EACR,UAAU,QACV,YAAY,EAAE,KAAK,CAAC,QAAQ,EAAE,EAC9B,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAC/E,GACV,IAEb,GACJ,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1,125 +1,45 @@
|
|
|
1
|
-
.
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
justify-content: left;
|
|
5
|
-
align-items: flex-end;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: row;
|
|
11
|
-
width: 100%;
|
|
12
|
-
color: #141B5C;
|
|
13
|
-
justify-content:
|
|
14
|
-
max-width: 100%;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
width:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
border
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
justify-content: space-between;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@media only screen and (min-width: 380px) {
|
|
49
|
-
.ns_input {
|
|
50
|
-
max-width: 272px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/*Start Input phone*/
|
|
55
|
-
.ns_input_phone_parent input {
|
|
56
|
-
width: 100% !important;
|
|
57
|
-
height: 48px !important;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@media only screen and (min-width: 380px) {
|
|
61
|
-
.ns_input_phone_parent input {
|
|
62
|
-
width: 272px !important;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/*End Input phone*/
|
|
67
|
-
|
|
68
|
-
.ns_menu_item {
|
|
69
|
-
display: inline-flex;
|
|
70
|
-
width: 30px;
|
|
71
|
-
height: 30px;
|
|
72
|
-
opacity: 1;
|
|
73
|
-
color: #000;
|
|
74
|
-
border: 1px solid transparent;
|
|
75
|
-
cursor: pointer;
|
|
76
|
-
background-color: transparent;
|
|
77
|
-
box-sizing: border-box;
|
|
78
|
-
align-items: center;
|
|
79
|
-
justify-content: center;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.ns_menu_item:hover {
|
|
83
|
-
border-color: #aaaaaa;
|
|
84
|
-
border-width: 1px;
|
|
85
|
-
border-style: solid;
|
|
86
|
-
border-radius: 5px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.ns_menu_item img {
|
|
90
|
-
position: inherit;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.ns_input_modal_full {
|
|
94
|
-
position: fixed;
|
|
95
|
-
top: 0;
|
|
96
|
-
left: 0;
|
|
97
|
-
background-color: rgba(0, 0, 0, 0.6);
|
|
98
|
-
height: 100%;
|
|
99
|
-
width: 100%;
|
|
100
|
-
z-index: 15;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.ns_input_modal_full_screen textarea {
|
|
104
|
-
height: 80%;
|
|
105
|
-
width: 80%;
|
|
106
|
-
z-index: 15;
|
|
107
|
-
position: fixed;
|
|
108
|
-
top: 10%;
|
|
109
|
-
left: 10%;
|
|
110
|
-
text-align: left;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.ns_input_modal_full_screen img {
|
|
114
|
-
position: fixed;
|
|
115
|
-
top: 12%;
|
|
116
|
-
right: 11%;
|
|
117
|
-
z-index: 20;
|
|
118
|
-
transition: all 0.3s ease-in-out;
|
|
119
|
-
cursor: pointer;
|
|
120
|
-
border-radius: 50%;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.ns_input_modal_full_screen img:hover {
|
|
124
|
-
scale: 1.2;
|
|
1
|
+
.ns_menu_button_container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
justify-content: left;
|
|
5
|
+
align-items: flex-end;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ns_menu_button_group_parrent {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
width: 100%;
|
|
12
|
+
color: #141B5C;
|
|
13
|
+
justify-content: right;
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ns_menu_button_group {
|
|
18
|
+
display: flex;
|
|
19
|
+
width: max-content;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ns_menu_button_menu_item {
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
width: 30px;
|
|
25
|
+
height: 30px;
|
|
26
|
+
opacity: 1;
|
|
27
|
+
color: #000;
|
|
28
|
+
border: 1px solid transparent;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ns_menu_button_menu_item:hover {
|
|
37
|
+
border-color: #aaaaaa;
|
|
38
|
+
border-width: 1px;
|
|
39
|
+
border-style: solid;
|
|
40
|
+
border-radius: 5px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ns_menu_button_menu_item img {
|
|
44
|
+
position: inherit;
|
|
125
45
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.ns_table_no_data {
|
|
2
|
-
background-color: rgb(255, 255, 255);
|
|
3
|
-
color: rgba(140, 140, 140, 0.7);
|
|
4
|
-
text-align: center;
|
|
5
|
-
width: 100%;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.ns_table_no_data h4 {
|
|
9
|
-
font-size: 24px;
|
|
1
|
+
.ns_table_no_data {
|
|
2
|
+
background-color: rgb(255, 255, 255);
|
|
3
|
+
color: rgba(140, 140, 140, 0.7);
|
|
4
|
+
text-align: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ns_table_no_data h4 {
|
|
9
|
+
font-size: 24px;
|
|
10
10
|
}
|
|
@@ -31,55 +31,64 @@ export class NSPagination extends Component {
|
|
|
31
31
|
const current_min = Math.min(totalItems, (this.state.currentPage - 1) * pageSize + 1);
|
|
32
32
|
const current_max = Math.min(totalItems, this.state.currentPage * pageSize);
|
|
33
33
|
const pages = [];
|
|
34
|
+
const pushButton = (name, selected, onClick) => {
|
|
35
|
+
pages.push(_jsx("div", { className: `${Styles.ns_pagination_button_parent}`, children: _jsx("button", { className: `${Styles.ns_pagination_button} ${selected ? Styles.ns_pagination_button_selected : ''}`, onClick: (e) => {
|
|
36
|
+
e.preventDefault();
|
|
37
|
+
onClick();
|
|
38
|
+
}, children: name }) }, name));
|
|
39
|
+
};
|
|
34
40
|
const pushPage = (page) => {
|
|
35
|
-
|
|
41
|
+
pushButton(page.toLocaleString(), page === this.state.currentPage, () => {
|
|
42
|
+
let currentPage = page;
|
|
43
|
+
this.setState({ currentPage }, () => {
|
|
44
|
+
let pageSize = this.getPageSize();
|
|
45
|
+
onPageChange(currentPage, pageSize);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
const pushArrow = (key, logo, onClick) => {
|
|
50
|
+
pages.push(_jsx("div", { className: `${Styles.ns_pagination_button_parent}`, children: _jsx("button", { className: Styles.ns_pagination_button, onClick: e => {
|
|
36
51
|
e.preventDefault();
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
let pageSize = this.getPageSize();
|
|
40
|
-
onPageChange(currentPage, pageSize);
|
|
41
|
-
});
|
|
42
|
-
}, children: page }) }, page));
|
|
52
|
+
onClick();
|
|
53
|
+
}, children: _jsx("img", { src: logo, alt: key, width: 32, height: 32 }) }) }, key));
|
|
43
54
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}, children: _jsx("img", { style: { margin: "0 8px 0 0" }, src: "https://static.namirasoft.com/image/concept/arrow/left/white-blue.svg", alt: "left_vector", width: 32, height: 32 }) }) }, "prev"));
|
|
55
|
+
pushArrow("previous", "https://static.namirasoft.com/image/concept/arrow/left/white-blue.svg", () => {
|
|
56
|
+
if (this.state.currentPage > 1) {
|
|
57
|
+
let currentPage = this.state.currentPage - 1;
|
|
58
|
+
this.setState({ currentPage }, () => {
|
|
59
|
+
let pageSize = this.getPageSize();
|
|
60
|
+
onPageChange(currentPage, pageSize);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
});
|
|
54
64
|
pushPage(1);
|
|
55
65
|
if (this.state.currentPage > windowSize + 2) {
|
|
56
|
-
|
|
66
|
+
pushButton("...", false, () => { });
|
|
57
67
|
}
|
|
58
68
|
for (let i = minPage; i <= maxPage; i++)
|
|
59
69
|
pushPage(i);
|
|
60
70
|
if (this.state.currentPage < totalPages - windowSize - 1) {
|
|
61
|
-
|
|
71
|
+
pushButton("...", false, () => { });
|
|
62
72
|
}
|
|
63
73
|
if (totalPages > 1) {
|
|
64
74
|
pushPage(totalPages);
|
|
65
75
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
} }) }), _jsx("h6", { children: `(${current_min} - ${current_max}) of ${totalItems}` })] })] }) }));
|
|
76
|
+
pushArrow("next", "https://static.namirasoft.com/image/concept/arrow/right/white-blue.svg", () => {
|
|
77
|
+
if (this.state.currentPage < totalPages) {
|
|
78
|
+
let currentPage = this.state.currentPage + 1;
|
|
79
|
+
this.setState({ currentPage }, () => {
|
|
80
|
+
let pageSize = this.getPageSize();
|
|
81
|
+
onPageChange(currentPage, pageSize);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
return (_jsx(_Fragment, { children: _jsxs("div", { id: this.props.id, className: `${Styles.ns_pagination_container} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(' ')}`, style: (_b = this.props.style) !== null && _b !== void 0 ? _b : {}, children: [_jsx("div", { className: Styles.ns_pagination_buttons_container, children: pages }), _jsx(NSBoxCombo, { ref: this.PageSize, title: '', required: false, searchable: false, multiple: false, defaultValue: "25", placeholder: 'Page', hideHeader: true, getOptions: () => pageSizes.map(pagesize => { return { value: pagesize.toString(), title: pagesize.toString() }; }), onChanged: () => {
|
|
86
|
+
let currentPage = this.state.currentPage;
|
|
87
|
+
this.setState({ currentPage }, () => {
|
|
88
|
+
let pageSize = this.getPageSize();
|
|
89
|
+
onPageChange(currentPage, pageSize);
|
|
90
|
+
});
|
|
91
|
+
}, style: { width: "75px" } }), _jsx("p", { className: Styles.ns_pagination_info, children: `(${current_min.toLocaleString()} - ${current_max.toLocaleString()}) of ${totalItems.toLocaleString()}` })] }) }));
|
|
83
92
|
}
|
|
84
93
|
}
|
|
85
94
|
//# sourceMappingURL=NSPagination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSPagination.js","sourceRoot":"","sources":["../../src/components/NSPagination.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAa1C,IAAI,SAAS,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAExC,MAAM,OAAO,YAAa,SAAQ,SAA+C;IAG7E,YAAY,KAAwB;QAEhC,KAAK,CAAC,KAAK,CAAC,CAAC;QAHjB,aAAQ,GAAG,KAAK,CAAC,SAAS,EAAc,CAAC;QAIrC,IAAI,CAAC,KAAK,GAAG,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC;IACpC,CAAC;IACD,cAAc;QAEV,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC;IAClC,CAAC;IACD,WAAW;;QAEP,IAAI,GAAG,GAAG,MAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,0CAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;Q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CAAC,QAAQ,EAAE,EAAE,CAAA,CAAC,CAAC,CAAC,EAClH,SAAS,EAAE,GAAG,EAAE;4BAEZ,IAAI,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC;4BACzC,IAAI,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,EAAE,GAAG,EAAE;gCAEhC,IAAI,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;gCAClC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;4BACxC,CAAC,CAAC,CAAC;wBACP,CAAC,EACD,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAC1B,EACF,YAAG,SAAS,EAAE,MAAM,CAAC,kBAAkB,YAClC,IAAI,WAAW,CAAC,cAAc,EAAE,MAAM,WAAW,CAAC,cAAc,EAAE,QAAQ,UAAU,CAAC,cAAc,EAAE,EAAE,GACxG,IACF,GACP,CACN,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,111 +1,86 @@
|
|
|
1
|
-
.ns_pagination_container {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
text-align: left;
|
|
7
|
-
font-size: 14px;
|
|
8
|
-
justify-items: center;
|
|
9
|
-
width: 100%;
|
|
10
|
-
max-width: max-content;
|
|
11
|
-
flex-wrap: wrap;
|
|
12
|
-
gap: 16px
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
align-items: center;
|
|
87
|
-
justify-content: center;
|
|
88
|
-
height: 100%;
|
|
89
|
-
color: rgba(20, 27, 92, 1);
|
|
90
|
-
padding-left: 16px 24px;
|
|
91
|
-
text-align: center;
|
|
92
|
-
border-radius: 8px;
|
|
93
|
-
border: 1px solid black;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.ns_pagination_combobox div {
|
|
97
|
-
width: 74px;
|
|
98
|
-
margin: 0;
|
|
99
|
-
padding: 0;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.ns_pagination_combobox span {
|
|
103
|
-
margin: 0
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@media only screen and (min-width: 480px) {
|
|
107
|
-
.ns_pagination_container {
|
|
108
|
-
justify-content: space-between;
|
|
109
|
-
flex-wrap: nowrap;
|
|
110
|
-
}
|
|
1
|
+
.ns_pagination_container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
text-align: left;
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
justify-items: center;
|
|
9
|
+
width: 100%;
|
|
10
|
+
max-width: max-content;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
gap: 16px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ns_pagination_buttons_container {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
justify-items: center;
|
|
21
|
+
width: 100%;
|
|
22
|
+
max-width: max-content;
|
|
23
|
+
flex-wrap: wrap;
|
|
24
|
+
gap: 8px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ns_pagination_button_parent {
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
border-radius: 50px;
|
|
30
|
+
height: 32px;
|
|
31
|
+
width: 32px;
|
|
32
|
+
text-align: center;
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ns_pagination_button {
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
line-height: 22px;
|
|
42
|
+
font-family: inherit;
|
|
43
|
+
color: rgba(20, 27, 92, 1);
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
background-color: rgb(255, 255, 255);
|
|
46
|
+
border: 1px solid rgba(20, 27, 92, 1);
|
|
47
|
+
border-radius: 50px;
|
|
48
|
+
height: 32px;
|
|
49
|
+
width: 32px;
|
|
50
|
+
text-align: center;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ns_pagination_button_selected {
|
|
58
|
+
color: rgba(255, 255, 255, 1);
|
|
59
|
+
background-color: rgb(3, 119, 255);
|
|
60
|
+
border: 1px solid rgba(20, 27, 92, 1);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ns_pagination_info {
|
|
64
|
+
padding: 8px;
|
|
65
|
+
margin: 0px;
|
|
66
|
+
border: 1px solid rgba(0, 0, 0, 1) !important;
|
|
67
|
+
border-radius: 8px;
|
|
68
|
+
height: 48px !important;
|
|
69
|
+
width: fit-content;
|
|
70
|
+
max-width: inherit;
|
|
71
|
+
background-size: 24px 24px;
|
|
72
|
+
font-weight: bold;
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
background-color: rgb(255, 255, 255);
|
|
76
|
+
align-items: center;
|
|
77
|
+
color: rgba(20, 27, 200, 1);
|
|
78
|
+
text-align: center;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media only screen and (min-width: 480px) {
|
|
82
|
+
.ns_pagination_container {
|
|
83
|
+
justify-content: space-between;
|
|
84
|
+
flex-wrap: nowrap;
|
|
85
|
+
}
|
|
111
86
|
}
|