namirasoft-site-react 1.3.304 → 1.3.306
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/config-overrides.js +70 -70
- package/dist/App.css +17 -0
- package/dist/App.js +1 -1
- package/dist/App.js.map +1 -1
- package/dist/assets/images/1.png +0 -0
- package/dist/assets/images/2.png +0 -0
- package/dist/assets/images/3.png +0 -0
- package/dist/assets/images/4.png +0 -0
- package/dist/assets/images/404 image.svg +9 -9
- package/dist/assets/images/404 image_mobile.svg +9 -9
- package/dist/assets/images/5.jpg +0 -0
- package/dist/assets/images/arrow.svg +3 -3
- package/dist/assets/images/danger.svg +3 -3
- package/dist/assets/images/exit.svg +3 -3
- package/dist/assets/images/icon-export.svg +3 -0
- package/dist/assets/images/icon-input-copy.svg +3 -3
- package/dist/assets/images/icon-input-date.svg +9 -9
- package/dist/assets/images/icon-input-duration.svg +9 -9
- package/dist/assets/images/icon-input-email.svg +9 -9
- package/dist/assets/images/icon-input-float.svg +9 -9
- package/dist/assets/images/icon-input-id.svg +9 -0
- package/dist/assets/images/icon-input-integer.svg +9 -9
- package/dist/assets/images/icon-input-ip.svg +9 -9
- package/dist/assets/images/icon-input-phone.svg +9 -9
- package/dist/assets/images/icon-input-price.svg +9 -9
- package/dist/assets/images/icon-input-search.svg +3 -3
- package/dist/assets/images/icon-input-string.svg +9 -9
- package/dist/assets/images/icon-input-text.svg +9 -9
- package/dist/assets/images/icon-input-time.svg +9 -9
- package/dist/assets/images/icon-refresh.svg +3 -0
- package/dist/assets/images/icon-select-box.svg +3 -3
- package/dist/assets/images/logo.svg +9 -9
- package/dist/assets/images/menu.svg +3 -3
- package/dist/assets/images/namira.svg +9 -9
- package/dist/assets/images/rectangle.svg +3 -3
- package/dist/components/NSAccess.d.ts +2 -0
- package/dist/components/NSAccess.js +8 -0
- package/dist/components/NSAccess.js.map +1 -0
- package/dist/components/NSAccess.module.css +39 -0
- package/dist/components/NSActionMenu.js +2 -2
- package/dist/components/NSActionMenu.module.css +75 -75
- package/dist/components/NSAssistantButton.module.css +133 -133
- package/dist/components/NSBarAction.module.css +87 -87
- package/dist/components/NSBarHeroBanner.module.css +42 -42
- package/dist/components/NSBarNotification.module.css +34 -34
- package/dist/components/NSBarTitle.module.css +9 -9
- package/dist/components/NSBox.module.css +123 -123
- package/dist/components/NSBoxBoolean.module.css +53 -53
- package/dist/components/NSBoxCombo.module.css +16 -16
- package/dist/components/NSBoxDate.module.css +39 -39
- package/dist/components/NSBoxErrorNotifier.module.css +2 -2
- package/dist/components/NSBoxLabel.module.css +12 -12
- package/dist/components/NSBoxOTP.module.css +10 -10
- package/dist/components/NSBoxText.d.ts +25 -0
- package/dist/components/NSBoxText.js +56 -0
- package/dist/components/NSBoxText.js.map +1 -0
- package/dist/components/NSBoxTextArea.module.css +76 -76
- package/dist/components/NSButton.module.css +27 -27
- 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 +108 -108
- package/dist/components/NSCopyToClipboard.module.css +39 -39
- package/dist/components/NSElectronicCard.module.css +60 -60
- package/dist/components/NSEntityBar.module.css +77 -77
- package/dist/components/NSEntityCardBackground.module.css +27 -27
- package/dist/components/NSFilterBox.module.css +47 -47
- package/dist/components/NSFilterBoxDialog.module.css +36 -36
- package/dist/components/NSFilterItem.module.css +23 -23
- package/dist/components/NSFooter.module.css +123 -123
- package/dist/components/NSGroupedList.module.css +72 -72
- package/dist/components/NSHeader.module.css +271 -271
- package/dist/components/NSInput.module.css +74 -0
- package/dist/components/NSInputDate.d.ts +21 -0
- package/dist/components/NSInputDate.js +41 -0
- package/dist/components/NSInputDate.js.map +1 -0
- package/dist/components/NSInputDate.module.css +42 -0
- package/dist/components/NSInputDuration.d.ts +23 -0
- package/dist/components/NSInputDuration.js +42 -0
- package/dist/components/NSInputDuration.js.map +1 -0
- package/dist/components/NSInputEmail.d.ts +22 -0
- package/dist/components/NSInputEmail.js +43 -0
- package/dist/components/NSInputEmail.js.map +1 -0
- package/dist/components/NSInputErrorNotifier.d.ts +5 -0
- package/dist/components/NSInputErrorNotifier.js +7 -0
- package/dist/components/NSInputErrorNotifier.js.map +1 -0
- package/dist/components/NSInputErrorNotifier.module.css +3 -0
- package/dist/components/NSInputFloat.d.ts +22 -0
- package/dist/components/NSInputFloat.js +41 -0
- package/dist/components/NSInputFloat.js.map +1 -0
- package/dist/components/NSInputIP.d.ts +22 -0
- package/dist/components/NSInputIP.js +43 -0
- package/dist/components/NSInputIP.js.map +1 -0
- package/dist/components/NSInputInteger.d.ts +22 -0
- package/dist/components/NSInputInteger.js +41 -0
- package/dist/components/NSInputInteger.js.map +1 -0
- package/dist/components/NSInputPassword.d.ts +22 -0
- package/dist/components/NSInputPassword.js +42 -0
- package/dist/components/NSInputPassword.js.map +1 -0
- package/dist/components/NSInputPhone.d.ts +22 -0
- package/dist/components/NSInputPhone.js +38 -0
- package/dist/components/NSInputPhone.js.map +1 -0
- package/dist/components/NSInputPrice.d.ts +22 -0
- package/dist/components/NSInputPrice.js +41 -0
- package/dist/components/NSInputPrice.js.map +1 -0
- package/dist/components/NSInputSearch.d.ts +22 -0
- package/dist/components/NSInputSearch.js +41 -0
- package/dist/components/NSInputSearch.js.map +1 -0
- package/dist/components/NSInputString.d.ts +22 -0
- package/dist/components/NSInputString.js +42 -0
- package/dist/components/NSInputString.js.map +1 -0
- package/dist/components/NSInputText.d.ts +22 -0
- package/dist/components/NSInputText.js +42 -0
- package/dist/components/NSInputText.js.map +1 -0
- package/dist/components/NSInputTime.d.ts +22 -0
- package/dist/components/NSInputTime.js +43 -0
- package/dist/components/NSInputTime.js.map +1 -0
- package/dist/components/NSLayout.module.css +13 -13
- package/dist/components/NSLayoutAction.d.ts +5 -0
- package/dist/components/NSLayoutAction.js +20 -0
- package/dist/components/NSLayoutAction.js.map +1 -0
- package/dist/components/NSLayoutAction.module.css +88 -0
- package/dist/components/NSLayoutHeroBanner.d.ts +2 -0
- package/dist/components/NSLayoutHeroBanner.js +8 -0
- package/dist/components/NSLayoutHeroBanner.js.map +1 -0
- package/dist/components/NSLayoutHeroBanner.module.css +43 -0
- package/dist/components/NSLayoutTitle.d.ts +2 -0
- package/dist/components/NSLayoutTitle.js +11 -0
- package/dist/components/NSLayoutTitle.js.map +1 -0
- package/dist/components/NSLayoutTitle.module.css +10 -0
- package/dist/components/NSLink.module.css +36 -36
- package/dist/components/NSLoading.module.css +29 -29
- package/dist/components/NSModal.js +2 -2
- package/dist/components/NSModal.module.css +70 -70
- package/dist/components/NSNoData.module.css +8 -8
- package/dist/components/NSNotification.d.ts +21 -0
- package/dist/components/NSNotification.js +37 -0
- package/dist/components/NSNotification.js.map +1 -0
- package/dist/components/NSNotification.module.css +32 -0
- package/dist/components/NSPagination.module.css +101 -101
- package/dist/components/NSPanel.module.css +46 -46
- package/dist/components/NSPrintModal.module.css +81 -81
- package/dist/components/NSRadioButton.module.css +28 -28
- package/dist/components/NSSection.module.css +10 -10
- package/dist/components/NSSectionBars.module.css +10 -10
- package/dist/components/NSSectionCards.module.css +38 -38
- package/dist/components/NSSelectBox.d.ts +24 -0
- package/dist/components/NSSelectBox.js +61 -0
- package/dist/components/NSSelectBox.js.map +1 -0
- package/dist/components/NSSelectBox.module.css +42 -0
- package/dist/components/NSTabPage.module.css +48 -48
- package/dist/components/NSTable.d.ts +12 -7
- package/dist/components/NSTable.js +26 -8
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTable.module.css +210 -210
- package/dist/components/NSTag.module.css +44 -44
- package/dist/components/NSTitle.module.css +15 -15
- package/dist/components/NSVerification.module.css +22 -22
- package/dist/index.css +6 -0
- package/dist/pages/NSLoginPage.module.css +19 -19
- package/dist/pages/NSNotFoundPage.module.css +18 -18
- package/dist/props/BaseComponentProps.d.ts +6 -0
- package/dist/props/BaseComponentProps.js +2 -0
- package/dist/props/BaseComponentProps.js.map +10 -0
- package/dist/props/INamirasoftProps.d.ts +4 -0
- package/dist/props/INamirasoftProps.js +2 -0
- package/dist/props/INamirasoftProps.js.map +1 -0
- package/dist/props/ImageProps.d.ts +4 -0
- package/dist/props/ImageProps.js +2 -0
- package/dist/props/ImageProps.js.map +10 -0
- package/dist/props/LinkProps.d.ts +5 -0
- package/dist/props/LinkProps.js +2 -0
- package/dist/props/LinkProps.js.map +10 -0
- package/dist/props/ValidationNumberProps.d.ts +4 -0
- package/dist/props/ValidationNumberProps.js +2 -0
- package/dist/props/ValidationNumberProps.js.map +10 -0
- package/dist/props/ValidationProps.d.ts +6 -0
- package/dist/props/ValidationProps.js +2 -0
- package/dist/props/ValidationProps.js.map +10 -0
- package/dist/props/ValidationRegexProps.d.ts +4 -0
- package/dist/props/ValidationRegexProps.js +2 -0
- package/dist/props/ValidationRegexProps.js.map +1 -0
- package/dist/props/ValidationStringProps.d.ts +4 -0
- package/dist/props/ValidationStringProps.js +2 -0
- package/dist/props/ValidationStringProps.js.map +10 -0
- package/package.json +67 -67
- package/public/index.html +38 -38
- package/src/App.css +16 -16
- package/src/App.tsx +167 -166
- package/src/CopyToClipboard.ts +6 -6
- package/src/Validator.ts +110 -110
- package/src/assets/images/404 image.svg +9 -9
- package/src/assets/images/404 image_mobile.svg +9 -9
- package/src/assets/images/arrow.svg +3 -3
- package/src/assets/images/danger.svg +3 -3
- package/src/assets/images/exit.svg +3 -3
- package/src/assets/images/icon-input-copy.svg +3 -3
- package/src/assets/images/icon-input-date.svg +9 -9
- package/src/assets/images/icon-input-duration.svg +9 -9
- package/src/assets/images/icon-input-email.svg +9 -9
- package/src/assets/images/icon-input-float.svg +9 -9
- package/src/assets/images/icon-input-integer.svg +9 -9
- package/src/assets/images/icon-input-ip.svg +9 -9
- package/src/assets/images/icon-input-phone.svg +9 -9
- package/src/assets/images/icon-input-price.svg +9 -9
- package/src/assets/images/icon-input-search.svg +3 -3
- package/src/assets/images/icon-input-string.svg +9 -9
- package/src/assets/images/icon-input-text.svg +9 -9
- package/src/assets/images/icon-input-time.svg +9 -9
- package/src/assets/images/icon-select-box.svg +3 -3
- package/src/assets/images/logo.svg +9 -9
- package/src/assets/images/menu.svg +3 -3
- package/src/assets/images/namira.svg +9 -9
- package/src/assets/images/rectangle.svg +3 -3
- package/src/components/NSActionMenu.module.css +75 -75
- package/src/components/NSActionMenu.tsx +88 -88
- package/src/components/NSAssistantButton.module.css +133 -133
- package/src/components/NSAssistantButton.tsx +74 -74
- package/src/components/NSBarAction.module.css +87 -87
- package/src/components/NSBarAction.tsx +86 -86
- package/src/components/NSBarHeroBanner.module.css +42 -42
- package/src/components/NSBarHeroBanner.tsx +61 -61
- package/src/components/NSBarNotification.module.css +34 -34
- package/src/components/NSBarNotification.tsx +63 -63
- package/src/components/NSBarTitle.module.css +9 -9
- package/src/components/NSBarTitle.tsx +28 -28
- package/src/components/NSBox.module.css +123 -123
- package/src/components/NSBoxBoolean.module.css +53 -53
- package/src/components/NSBoxBoolean.tsx +84 -84
- package/src/components/NSBoxCombo.module.css +16 -16
- package/src/components/NSBoxCombo.tsx +131 -131
- package/src/components/NSBoxDate.module.css +39 -39
- package/src/components/NSBoxDate.tsx +83 -83
- package/src/components/NSBoxDateTime.tsx +83 -83
- package/src/components/NSBoxDouble.tsx +88 -88
- package/src/components/NSBoxDuration.tsx +88 -88
- package/src/components/NSBoxEmail.tsx +104 -104
- package/src/components/NSBoxEntity.tsx +159 -159
- package/src/components/NSBoxEnum.tsx +56 -56
- package/src/components/NSBoxErrorNotifier.module.css +2 -2
- package/src/components/NSBoxErrorNotifier.tsx +33 -33
- package/src/components/NSBoxIPV4.tsx +93 -93
- package/src/components/NSBoxIPV6.tsx +90 -90
- package/src/components/NSBoxInteger.tsx +86 -86
- package/src/components/NSBoxLabel.module.css +12 -12
- package/src/components/NSBoxLabel.tsx +29 -29
- package/src/components/NSBoxOTP.module.css +10 -10
- package/src/components/NSBoxOTP.tsx +65 -65
- package/src/components/NSBoxPassword.tsx +86 -86
- package/src/components/NSBoxPhone.tsx +88 -88
- package/src/components/NSBoxPrice.tsx +88 -88
- package/src/components/NSBoxSearch.tsx +103 -103
- package/src/components/NSBoxString.tsx +98 -98
- package/src/components/NSBoxTextArea.module.css +76 -76
- package/src/components/NSBoxTextArea.tsx +106 -106
- package/src/components/NSBoxTime.tsx +88 -88
- package/src/components/NSButton.module.css +27 -27
- package/src/components/NSButton.tsx +23 -23
- package/src/components/NSButtonBlue.module.css +4 -4
- package/src/components/NSButtonBlue.tsx +12 -12
- package/src/components/NSButtonGreen.module.css +4 -4
- package/src/components/NSButtonGreen.tsx +11 -11
- package/src/components/NSButtonRed.module.css +4 -4
- package/src/components/NSButtonRed.tsx +11 -11
- package/src/components/NSCard.module.css +108 -108
- package/src/components/NSCard.tsx +70 -70
- package/src/components/NSCopyToClipboard.module.css +39 -39
- package/src/components/NSCopyToClipboard.tsx +35 -35
- package/src/components/NSElectronicCard.module.css +60 -60
- package/src/components/NSElectronicCard.tsx +47 -47
- package/src/components/NSEntityBar.module.css +77 -77
- package/src/components/NSEntityBar.tsx +27 -27
- package/src/components/NSEntityCardBackground.module.css +27 -27
- package/src/components/NSEntityCardBackground.tsx +34 -34
- package/src/components/NSFilterBox.module.css +47 -47
- package/src/components/NSFilterBox.tsx +374 -374
- package/src/components/NSFilterBoxDialog.module.css +36 -36
- package/src/components/NSFilterBoxDialog.tsx +74 -74
- 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 +153 -153
- package/src/components/NSGroupedList.module.css +72 -72
- package/src/components/NSGroupedList.tsx +107 -107
- package/src/components/NSHeader.module.css +271 -271
- package/src/components/NSHeader.tsx +191 -191
- package/src/components/NSLayout.module.css +13 -13
- package/src/components/NSLayout.tsx +75 -75
- package/src/components/NSLine.tsx +18 -18
- 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/NSLoading.module.css +29 -29
- package/src/components/NSLoading.tsx +19 -19
- package/src/components/NSModal.module.css +70 -70
- package/src/components/NSModal.tsx +49 -49
- package/src/components/NSNoData.module.css +8 -8
- package/src/components/NSNoData.tsx +24 -24
- package/src/components/NSPagination.module.css +101 -101
- package/src/components/NSPagination.tsx +191 -191
- package/src/components/NSPanel.module.css +46 -46
- package/src/components/NSPanel.tsx +19 -19
- package/src/components/NSPrintModal.module.css +81 -81
- package/src/components/NSPrintModal.tsx +98 -98
- package/src/components/NSRadioButton.module.css +28 -28
- package/src/components/NSRadioButton.tsx +117 -117
- package/src/components/NSSection.module.css +10 -10
- package/src/components/NSSection.tsx +23 -23
- package/src/components/NSSectionBars.module.css +10 -10
- package/src/components/NSSectionBars.tsx +25 -25
- package/src/components/NSSectionCards.module.css +38 -38
- package/src/components/NSSectionCards.tsx +51 -51
- package/src/components/NSSectionTitle.tsx +21 -21
- package/src/components/NSSpace.tsx +28 -28
- package/src/components/NSTabPage.module.css +48 -48
- package/src/components/NSTabPage.tsx +45 -45
- package/src/components/NSTable.module.css +210 -210
- package/src/components/NSTable.tsx +276 -248
- package/src/components/NSTag.module.css +44 -44
- package/src/components/NSTag.tsx +49 -49
- package/src/components/NSTitle.module.css +15 -15
- package/src/components/NSTitle.tsx +19 -19
- package/src/components/NSVerification.module.css +22 -22
- package/src/components/NSVerification.tsx +41 -41
- package/src/index.tsx +7 -7
- package/src/main.ts +80 -80
- package/src/pages/NSLoginPage.module.css +19 -19
- package/src/pages/NSLoginPage.tsx +30 -30
- package/src/pages/NSNotFoundPage.module.css +18 -18
- package/src/pages/NSNotFoundPage.tsx +11 -11
- package/src/props/IBaseComponentProps.ts +8 -8
- package/src/props/IHeaderIconProps.ts +9 -9
- package/src/props/IHeaderProps.ts +6 -6
- 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 +44 -44
|
@@ -7,6 +7,7 @@ export interface INSTableProps<RowType> extends IBaseComponentProps {
|
|
|
7
7
|
[key: string]: string;
|
|
8
8
|
};
|
|
9
9
|
totalItems: number;
|
|
10
|
+
checkbox: boolean;
|
|
10
11
|
reload: (page: number, size: number) => void;
|
|
11
12
|
getRowKey: (row: RowType, rowIndex: number) => string;
|
|
12
13
|
getColumnAttributes?: (column: string, columnIndex: number) => {
|
|
@@ -15,9 +16,9 @@ export interface INSTableProps<RowType> extends IBaseComponentProps {
|
|
|
15
16
|
getCell?: (row: RowType, column: string, rowIndex: number, columnIndex: number) => any;
|
|
16
17
|
onRowClick?: (e: React.MouseEvent<HTMLTableRowElement, MouseEvent>, row: RowType, rowIndex: number) => void;
|
|
17
18
|
onCellClick?: (e: React.MouseEvent<HTMLTableDataCellElement, MouseEvent>, row: RowType, column: string, rowIndex: number, columnIndex: number) => boolean | undefined;
|
|
18
|
-
|
|
19
|
+
onSelectedIDsChanged?: () => void;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
+
interface NSTableState<RowType> {
|
|
21
22
|
columns: {
|
|
22
23
|
[key: string]: string;
|
|
23
24
|
};
|
|
@@ -28,6 +29,7 @@ export interface NSTableState<RowType> {
|
|
|
28
29
|
description?: string;
|
|
29
30
|
};
|
|
30
31
|
headerCheckboxChecked: boolean;
|
|
32
|
+
selectedIDs: string[];
|
|
31
33
|
}
|
|
32
34
|
export declare class NSTable<RowType> extends Component<INSTableProps<RowType>, NSTableState<RowType>> {
|
|
33
35
|
NSPagination: React.RefObject<NSPagination>;
|
|
@@ -36,11 +38,14 @@ export declare class NSTable<RowType> extends Component<INSTableProps<RowType>,
|
|
|
36
38
|
[key: string]: string;
|
|
37
39
|
}): void;
|
|
38
40
|
setRows(rows: RowType[] | null): void;
|
|
39
|
-
showModal
|
|
40
|
-
hideModal
|
|
41
|
-
onPageChange
|
|
42
|
-
toggleAllCheckboxes
|
|
43
|
-
|
|
41
|
+
private showModal;
|
|
42
|
+
private hideModal;
|
|
43
|
+
private onPageChange;
|
|
44
|
+
private toggleAllCheckboxes;
|
|
45
|
+
print(): void;
|
|
44
46
|
exportToExcel(): void;
|
|
47
|
+
getSelectedIDs(): string[];
|
|
48
|
+
setSelectedIDs(ids: string[]): void;
|
|
45
49
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
46
50
|
}
|
|
51
|
+
export {};
|
|
@@ -15,14 +15,12 @@ export class NSTable extends Component {
|
|
|
15
15
|
constructor(props) {
|
|
16
16
|
super(props);
|
|
17
17
|
this.NSPagination = React.createRef();
|
|
18
|
-
this.onPageChange = (page, size) => {
|
|
19
|
-
this.props.reload(page, size);
|
|
20
|
-
};
|
|
21
18
|
this.state = {
|
|
22
19
|
columns: props.columns,
|
|
23
20
|
rows: null,
|
|
24
21
|
model: { show: false },
|
|
25
|
-
headerCheckboxChecked: false
|
|
22
|
+
headerCheckboxChecked: false,
|
|
23
|
+
selectedIDs: []
|
|
26
24
|
};
|
|
27
25
|
this.setColumns = this.setColumns.bind(this);
|
|
28
26
|
this.setRows = this.setRows.bind(this);
|
|
@@ -30,7 +28,7 @@ export class NSTable extends Component {
|
|
|
30
28
|
this.hideModal = this.hideModal.bind(this);
|
|
31
29
|
this.onPageChange = this.onPageChange.bind(this);
|
|
32
30
|
this.toggleAllCheckboxes = this.toggleAllCheckboxes.bind(this);
|
|
33
|
-
this.
|
|
31
|
+
this.print = this.print.bind(this);
|
|
34
32
|
this.exportToExcel = this.exportToExcel.bind(this);
|
|
35
33
|
}
|
|
36
34
|
setColumns(columns) {
|
|
@@ -45,6 +43,9 @@ export class NSTable extends Component {
|
|
|
45
43
|
hideModal() {
|
|
46
44
|
this.setState({ model: { show: false } });
|
|
47
45
|
}
|
|
46
|
+
onPageChange(page, size) {
|
|
47
|
+
this.props.reload(page, size);
|
|
48
|
+
}
|
|
48
49
|
toggleAllCheckboxes() {
|
|
49
50
|
const isChecked = !this.state.headerCheckboxChecked;
|
|
50
51
|
this.setState({ headerCheckboxChecked: isChecked });
|
|
@@ -53,7 +54,7 @@ export class NSTable extends Component {
|
|
|
53
54
|
checkbox.checked = isChecked;
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
+
print() {
|
|
57
58
|
var _a;
|
|
58
59
|
const printWindow = window.open('', '', 'height=500,width=800');
|
|
59
60
|
printWindow.document.write('<html><head><title>Print Table</title>');
|
|
@@ -83,6 +84,15 @@ export class NSTable extends Component {
|
|
|
83
84
|
utils.book_append_sheet(workbook, worksheet, "Table Data");
|
|
84
85
|
writeFile(workbook, "TableData.xlsx");
|
|
85
86
|
}
|
|
87
|
+
getSelectedIDs() {
|
|
88
|
+
return this.state.selectedIDs;
|
|
89
|
+
}
|
|
90
|
+
setSelectedIDs(ids) {
|
|
91
|
+
this.setState({ selectedIDs: ids }, () => {
|
|
92
|
+
if (this.props.onSelectedIDsChanged)
|
|
93
|
+
this.props.onSelectedIDsChanged();
|
|
94
|
+
});
|
|
95
|
+
}
|
|
86
96
|
render() {
|
|
87
97
|
var _a;
|
|
88
98
|
let column_keys = Object.keys(this.state.columns);
|
|
@@ -123,9 +133,17 @@ export class NSTable extends Component {
|
|
|
123
133
|
content = (_jsx(NSNoData, { lable: 'No Data' }));
|
|
124
134
|
}
|
|
125
135
|
else {
|
|
126
|
-
content = this.state.rows.map((row, rowIndex) =>
|
|
136
|
+
content = this.state.rows.map((row, rowIndex) => _jsxs("tr", { onClick: (e) => { onRowClick(e, row, rowIndex); }, children: [this.props.checkbox && _jsx("input", { id: `checkbox_device_${this.props.getRowKey(row, rowIndex)}`, type: "checkbox", defaultValue: this.state.selectedIDs.includes(this.props.getRowKey(row, rowIndex)) + "", onChange: (e) => {
|
|
137
|
+
let selectedIDs = this.state.selectedIDs;
|
|
138
|
+
let id = this.props.getRowKey(row, rowIndex);
|
|
139
|
+
if (e.currentTarget.checked)
|
|
140
|
+
selectedIDs.push(id);
|
|
141
|
+
else
|
|
142
|
+
selectedIDs = selectedIDs.filter(x => x !== id);
|
|
143
|
+
this.setSelectedIDs(selectedIDs);
|
|
144
|
+
} }), column_keys.map((column, columnIndex) => (_createElement("td", Object.assign({}, getColumnAttributes(column, columnIndex + 1), { key: columnIndex + 1, "data-label": `${this.state.columns[column]} : `, onClick: (e) => { onCellClick(e, row, column, rowIndex, columnIndex + 1); } }), getCell(row, column, rowIndex, columnIndex + 1))))] }, this.props.getRowKey(row, rowIndex)));
|
|
127
145
|
}
|
|
128
|
-
return (_jsxs("div", { id: this.props.id, className: `${Styles.ns_project_list_container} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("table", { className: Styles.ns_table, children: [_jsx("thead", { className: Styles.ns_thead, children: _jsxs("tr", { children: [_jsx("th", { className: Styles.ns_check_box, children: _jsx("input", { className: Styles.ns_check_box_input, id: 'checkbox', type: 'checkbox', onChange: this.toggleAllCheckboxes, checked: this.state.headerCheckboxChecked }) }), column_keys.map(column_key => _jsx("th", { scope: "col", children: this.state.columns[column_key] }, column_key))] }) }), _jsx("tbody", { className: Styles.ns_tbody, children: content })] }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsxs("section", { className: Styles.ns_pagination_button, children: [_jsx(NSPagination, { ref: this.NSPagination, totalItems: this.props.totalItems, onPageChange: this.onPageChange }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("div", { className: Styles.ns_button, children: [_jsx(NSButton, { title: 'Chart', icon: { src: "https://static.namirasoft.com/image/concept/chart/blue.svg" }, onClick: () => { }, style: { border: '1px solid rgba(255, 148, 50, 1)', width: "128px" } }), _jsx(NSButton, { title: 'Print', icon: { src: "https://static.namirasoft.com/image/concept/print/blue.svg" }, onClick: this.
|
|
146
|
+
return (_jsxs("div", { id: this.props.id, className: `${Styles.ns_project_list_container} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("table", { className: Styles.ns_table, children: [_jsx("thead", { className: Styles.ns_thead, children: _jsxs("tr", { children: [this.props.checkbox && _jsx("th", { className: Styles.ns_check_box, children: _jsx("input", { className: Styles.ns_check_box_input, id: 'checkbox', type: 'checkbox', onChange: this.toggleAllCheckboxes, checked: this.state.headerCheckboxChecked }) }), column_keys.map(column_key => _jsx("th", { scope: "col", children: this.state.columns[column_key] }, column_key))] }) }), _jsx("tbody", { className: Styles.ns_tbody, children: content })] }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsxs("section", { className: Styles.ns_pagination_button, children: [_jsx(NSPagination, { ref: this.NSPagination, totalItems: this.props.totalItems, onPageChange: this.onPageChange }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("div", { className: Styles.ns_button, children: [_jsx(NSButton, { title: 'Chart', icon: { src: "https://static.namirasoft.com/image/concept/chart/blue.svg" }, onClick: () => { }, style: { border: '1px solid rgba(255, 148, 50, 1)', width: "128px" } }), _jsx(NSButton, { title: 'Print', icon: { src: "https://static.namirasoft.com/image/concept/print/blue.svg" }, onClick: this.print, style: { border: '1px solid rgba(255, 148, 50, 1)', width: "128px" } }), _jsx(NSButton, { title: 'Export', icon: { src: "https://static.namirasoft.com/image/concept/export/blue.svg" }, onClick: this.exportToExcel, style: { border: '1px solid rgba(255, 148, 50, 1)', width: "128px" } }), _jsx(NSButton, { title: 'Refresh', icon: { src: "https://static.namirasoft.com/image/concept/refresh/blue.svg" }, onClick: () => {
|
|
129
147
|
if (this.NSPagination.current)
|
|
130
148
|
this.props.reload(this.NSPagination.current.getCurrentPage(), this.NSPagination.current.getPageSize());
|
|
131
149
|
}, style: { border: '1px solid rgba(3, 119, 255, 1)', width: "128px" } })] })] }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx(NSModal, { show: this.state.model.show, description: this.state.model.description, onClose: () => { this.hideModal(); }, title: this.state.title })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSTable.js","sourceRoot":"","sources":["../../src/components/NSTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"NSTable.js","sourceRoot":"","sources":["../../src/components/NSTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO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,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;oCACzG,CAAC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,gCAAgC,EAAE,KAAK,EAAE,OAAO,EAAE,GAAI,IACrE,IACG,EACV,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACxC,KAAC,OAAO,IACP,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAC3B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,EACzC,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EACpC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GACtB,IACI,CACP,CAAC;IACH,CAAC;CACD"}
|
|
@@ -1,211 +1,211 @@
|
|
|
1
|
-
.ns_table {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
color: rgba(20, 27, 92, 1);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.ns_search_input {
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: space-between;
|
|
10
|
-
align-items: center;
|
|
11
|
-
flex-wrap: wrap;
|
|
12
|
-
position: relative;
|
|
13
|
-
z-index: -1;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.ns_table thead {
|
|
17
|
-
clip: rect(0 0 0 0);
|
|
18
|
-
position: fixed;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ns_table tr {
|
|
22
|
-
border-radius: 8px;
|
|
23
|
-
padding: 16px;
|
|
24
|
-
display: block;
|
|
25
|
-
background-color: rgba(255, 255, 255, 1);
|
|
26
|
-
margin: 24px 0;
|
|
27
|
-
transition: all 0.2s ease-in-out;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.ns_table td {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
gap: 16px;
|
|
34
|
-
padding: 8px 0;
|
|
35
|
-
font-size: 16px;
|
|
36
|
-
justify-content: left;
|
|
37
|
-
align-items: center;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.ns_table td::before {
|
|
41
|
-
content: attr(data-label);
|
|
42
|
-
font-weight: bold;
|
|
43
|
-
float: left;
|
|
44
|
-
min-width: 30%;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/* Button Group */
|
|
48
|
-
.ns_pagination_button {
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.ns_button {
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: row;
|
|
56
|
-
justify-content: space-between;
|
|
57
|
-
align-items: center;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.ns_modal a {
|
|
61
|
-
float: right;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.modal img {
|
|
65
|
-
width: 32px;
|
|
66
|
-
height: 32px;
|
|
67
|
-
right: 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.ns_table_no_data {
|
|
71
|
-
display: flex;
|
|
72
|
-
justify-content: center
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@media screen and (min-width: 768px) {
|
|
76
|
-
.ns_table {
|
|
77
|
-
color: #000000;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.ns_table thead {
|
|
81
|
-
position: static;
|
|
82
|
-
background-color: rgba(20, 27, 92, 1);
|
|
83
|
-
border-top-left-radius: 8px;
|
|
84
|
-
border-top-right-radius: 8px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.ns_table tbody {
|
|
88
|
-
background-color: rgba(255, 255, 255, 1);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.ns_table tr {
|
|
92
|
-
display: grid;
|
|
93
|
-
grid-template-columns: 50px repeat(auto-fit, minmax(100px, 1fr));
|
|
94
|
-
padding: 12px 16px;
|
|
95
|
-
margin: 0;
|
|
96
|
-
border-radius: 0;
|
|
97
|
-
border-bottom: 1px solid rgba(20, 27, 92, 0.3);
|
|
98
|
-
background-color: transparent;
|
|
99
|
-
align-items: center;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.ns_checkbox {
|
|
103
|
-
display: flex;
|
|
104
|
-
justify-content: left;
|
|
105
|
-
align-items: center;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.ns_table tr:hover {
|
|
109
|
-
background-color: rgba(20, 27, 92, 0.5);
|
|
110
|
-
color: white;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.ns_table td {
|
|
114
|
-
text-align: left;
|
|
115
|
-
display: flex;
|
|
116
|
-
align-items: flex-start;
|
|
117
|
-
padding: 0;
|
|
118
|
-
margin: 0;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.ns_table th {
|
|
122
|
-
font-size: 16px;
|
|
123
|
-
font-weight: 300;
|
|
124
|
-
color: #ffffff;
|
|
125
|
-
margin: 0;
|
|
126
|
-
padding: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.ns_table td::before {
|
|
130
|
-
content: "";
|
|
131
|
-
float: left;
|
|
132
|
-
font-weight: bold;
|
|
133
|
-
min-width: unset;
|
|
134
|
-
display: none;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/* Button Group */
|
|
138
|
-
.ns_pagination_button {
|
|
139
|
-
display: flex;
|
|
140
|
-
flex-direction: row;
|
|
141
|
-
align-items: center;
|
|
142
|
-
justify-content: center;
|
|
143
|
-
padding: 16px 0;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.ns_button {
|
|
147
|
-
display: flex;
|
|
148
|
-
flex-direction: row;
|
|
149
|
-
justify-content: space-between;
|
|
150
|
-
align-items: center;
|
|
151
|
-
gap: 24px;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.ns_check_box {
|
|
155
|
-
display: flex;
|
|
156
|
-
align-items: center;
|
|
157
|
-
cursor: pointer;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.ns_check_box input {
|
|
161
|
-
scale: 1.5;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@media screen and (min-width: 1024px) {
|
|
166
|
-
|
|
167
|
-
.ns_table thead {
|
|
168
|
-
font-size: 24px;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.ns_table tr {
|
|
172
|
-
font-size: 24px;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/* Button Group */
|
|
176
|
-
.ns_pagination_button {
|
|
177
|
-
display: flex;
|
|
178
|
-
flex-direction: row;
|
|
179
|
-
width: 100%;
|
|
180
|
-
padding: 16px 0;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.ns_table th {
|
|
185
|
-
word-break: break-all;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.ns_table td {
|
|
189
|
-
word-break: break-all;
|
|
190
|
-
color: #000;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.ns_tbody tr:nth-child(odd) {
|
|
194
|
-
background-color: #f9f9f9;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.ns_tbody tr:nth-child(even) {
|
|
198
|
-
background-color: #ffffff;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.ns_check_box_input {
|
|
202
|
-
width: 100% !important;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.ns_check_box input {
|
|
206
|
-
width: 100% !important;
|
|
207
|
-
}
|
|
208
|
-
td input{
|
|
209
|
-
cursor: pointer;
|
|
210
|
-
width: 100% !important;
|
|
1
|
+
.ns_table {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
color: rgba(20, 27, 92, 1);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.ns_search_input {
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
align-items: center;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
position: relative;
|
|
13
|
+
z-index: -1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ns_table thead {
|
|
17
|
+
clip: rect(0 0 0 0);
|
|
18
|
+
position: fixed;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ns_table tr {
|
|
22
|
+
border-radius: 8px;
|
|
23
|
+
padding: 16px;
|
|
24
|
+
display: block;
|
|
25
|
+
background-color: rgba(255, 255, 255, 1);
|
|
26
|
+
margin: 24px 0;
|
|
27
|
+
transition: all 0.2s ease-in-out;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ns_table td {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
gap: 16px;
|
|
34
|
+
padding: 8px 0;
|
|
35
|
+
font-size: 16px;
|
|
36
|
+
justify-content: left;
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ns_table td::before {
|
|
41
|
+
content: attr(data-label);
|
|
42
|
+
font-weight: bold;
|
|
43
|
+
float: left;
|
|
44
|
+
min-width: 30%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Button Group */
|
|
48
|
+
.ns_pagination_button {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ns_button {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: row;
|
|
56
|
+
justify-content: space-between;
|
|
57
|
+
align-items: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ns_modal a {
|
|
61
|
+
float: right;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.modal img {
|
|
65
|
+
width: 32px;
|
|
66
|
+
height: 32px;
|
|
67
|
+
right: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ns_table_no_data {
|
|
71
|
+
display: flex;
|
|
72
|
+
justify-content: center
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@media screen and (min-width: 768px) {
|
|
76
|
+
.ns_table {
|
|
77
|
+
color: #000000;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ns_table thead {
|
|
81
|
+
position: static;
|
|
82
|
+
background-color: rgba(20, 27, 92, 1);
|
|
83
|
+
border-top-left-radius: 8px;
|
|
84
|
+
border-top-right-radius: 8px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ns_table tbody {
|
|
88
|
+
background-color: rgba(255, 255, 255, 1);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ns_table tr {
|
|
92
|
+
display: grid;
|
|
93
|
+
grid-template-columns: 50px repeat(auto-fit, minmax(100px, 1fr));
|
|
94
|
+
padding: 12px 16px;
|
|
95
|
+
margin: 0;
|
|
96
|
+
border-radius: 0;
|
|
97
|
+
border-bottom: 1px solid rgba(20, 27, 92, 0.3);
|
|
98
|
+
background-color: transparent;
|
|
99
|
+
align-items: center;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ns_checkbox {
|
|
103
|
+
display: flex;
|
|
104
|
+
justify-content: left;
|
|
105
|
+
align-items: center;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.ns_table tr:hover {
|
|
109
|
+
background-color: rgba(20, 27, 92, 0.5);
|
|
110
|
+
color: white;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ns_table td {
|
|
114
|
+
text-align: left;
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: flex-start;
|
|
117
|
+
padding: 0;
|
|
118
|
+
margin: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ns_table th {
|
|
122
|
+
font-size: 16px;
|
|
123
|
+
font-weight: 300;
|
|
124
|
+
color: #ffffff;
|
|
125
|
+
margin: 0;
|
|
126
|
+
padding: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.ns_table td::before {
|
|
130
|
+
content: "";
|
|
131
|
+
float: left;
|
|
132
|
+
font-weight: bold;
|
|
133
|
+
min-width: unset;
|
|
134
|
+
display: none;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* Button Group */
|
|
138
|
+
.ns_pagination_button {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: row;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
padding: 16px 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ns_button {
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-direction: row;
|
|
149
|
+
justify-content: space-between;
|
|
150
|
+
align-items: center;
|
|
151
|
+
gap: 24px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ns_check_box {
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
cursor: pointer;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.ns_check_box input {
|
|
161
|
+
scale: 1.5;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@media screen and (min-width: 1024px) {
|
|
166
|
+
|
|
167
|
+
.ns_table thead {
|
|
168
|
+
font-size: 24px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ns_table tr {
|
|
172
|
+
font-size: 24px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Button Group */
|
|
176
|
+
.ns_pagination_button {
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: row;
|
|
179
|
+
width: 100%;
|
|
180
|
+
padding: 16px 0;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.ns_table th {
|
|
185
|
+
word-break: break-all;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.ns_table td {
|
|
189
|
+
word-break: break-all;
|
|
190
|
+
color: #000;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.ns_tbody tr:nth-child(odd) {
|
|
194
|
+
background-color: #f9f9f9;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ns_tbody tr:nth-child(even) {
|
|
198
|
+
background-color: #ffffff;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.ns_check_box_input {
|
|
202
|
+
width: 100% !important;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.ns_check_box input {
|
|
206
|
+
width: 100% !important;
|
|
207
|
+
}
|
|
208
|
+
td input{
|
|
209
|
+
cursor: pointer;
|
|
210
|
+
width: 100% !important;
|
|
211
211
|
}
|