namirasoft-site-react 1.4.132 → 1.4.134
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.d.ts +0 -6
- package/dist/App.js +44 -174
- package/dist/App.js.map +1 -1
- package/dist/Validator.d.ts +2 -1
- package/dist/Validator.js +16 -8
- package/dist/Validator.js.map +1 -1
- package/dist/components/NSBarAction.d.ts +4 -4
- package/dist/components/NSBarAction.js +3 -3
- package/dist/components/NSBarAction.js.map +1 -1
- package/dist/components/NSBarAction.module.css +97 -97
- package/dist/components/NSBarAlert.d.ts +5 -5
- package/dist/components/NSBarAlert.js +1 -1
- package/dist/components/NSBarAlert.js.map +1 -1
- package/dist/components/NSBarAlert.module.css +69 -69
- package/dist/components/NSBarNotification.d.ts +3 -3
- package/dist/components/NSBarNotification.js +1 -1
- package/dist/components/NSBarNotification.js.map +1 -1
- package/dist/components/NSBarNotification.module.css +34 -34
- package/dist/components/NSBarTitle.d.ts +2 -2
- package/dist/components/NSBarTitle.js.map +1 -1
- package/dist/components/NSBarTitle.module.css +9 -9
- package/dist/components/NSBox.module.css +50 -126
- package/dist/components/NSBoxBaseCombo.d.ts +58 -0
- package/dist/components/NSBoxBaseCombo.js +163 -0
- package/dist/components/NSBoxBaseCombo.js.map +1 -0
- package/dist/components/{NSBoxCombo.module.css → NSBoxBaseCombo.module.css} +6 -6
- package/dist/components/NSBoxBoolean.d.ts +5 -6
- package/dist/components/NSBoxBoolean.js +6 -3
- package/dist/components/NSBoxBoolean.js.map +1 -1
- package/dist/components/NSBoxBoolean.module.css +67 -88
- package/dist/components/NSBoxCombo.d.ts +6 -25
- package/dist/components/NSBoxCombo.js +31 -61
- package/dist/components/NSBoxCombo.js.map +1 -1
- package/dist/components/NSBoxDate.d.ts +5 -4
- package/dist/components/NSBoxDate.js +11 -4
- package/dist/components/NSBoxDate.js.map +1 -1
- package/dist/components/NSBoxDate.module.css +4 -56
- package/dist/components/NSBoxDateTime.d.ts +5 -4
- package/dist/components/NSBoxDateTime.js +11 -5
- package/dist/components/NSBoxDateTime.js.map +1 -1
- package/dist/components/NSBoxDateTime.module.css +4 -51
- package/dist/components/NSBoxDouble.d.ts +4 -4
- package/dist/components/NSBoxDouble.js +9 -4
- package/dist/components/NSBoxDouble.js.map +1 -1
- package/dist/components/NSBoxDuration.d.ts +5 -4
- package/dist/components/NSBoxDuration.js +11 -4
- package/dist/components/NSBoxDuration.js.map +1 -1
- package/dist/components/NSBoxDuration.module.css +5 -0
- package/dist/components/NSBoxEmail.d.ts +6 -7
- package/dist/components/NSBoxEmail.js +18 -11
- package/dist/components/NSBoxEmail.js.map +1 -1
- package/dist/components/NSBoxEntity.d.ts +10 -44
- package/dist/components/NSBoxEntity.js +19 -92
- package/dist/components/NSBoxEntity.js.map +1 -1
- package/dist/components/NSBoxEnum.d.ts +12 -9
- package/dist/components/NSBoxEnum.js +29 -20
- package/dist/components/NSBoxEnum.js.map +1 -1
- package/dist/components/NSBoxFile.d.ts +9 -14
- package/dist/components/NSBoxFile.js +33 -47
- package/dist/components/NSBoxFile.js.map +1 -1
- package/dist/components/NSBoxFile.module.css +10 -4
- package/dist/components/NSBoxIPV4.d.ts +4 -4
- package/dist/components/NSBoxIPV4.js +12 -6
- package/dist/components/NSBoxIPV4.js.map +1 -1
- package/dist/components/NSBoxIPV6.d.ts +4 -4
- package/dist/components/NSBoxIPV6.js +11 -6
- package/dist/components/NSBoxIPV6.js.map +1 -1
- package/dist/components/NSBoxInteger.d.ts +4 -4
- package/dist/components/NSBoxInteger.js +9 -4
- package/dist/components/NSBoxInteger.js.map +1 -1
- package/dist/components/{NSBoxPrice.d.ts → NSBoxMoney.d.ts} +7 -7
- package/dist/components/NSBoxMoney.js +50 -0
- package/dist/components/NSBoxMoney.js.map +1 -0
- package/dist/components/NSBoxPassword.d.ts +5 -4
- package/dist/components/NSBoxPassword.js +18 -5
- package/dist/components/NSBoxPassword.js.map +1 -1
- package/dist/components/NSBoxPhone.d.ts +7 -8
- package/dist/components/NSBoxPhone.js +30 -20
- package/dist/components/NSBoxPhone.js.map +1 -1
- package/dist/components/NSBoxPhone.module.css +36 -0
- package/dist/components/NSBoxRadio.d.ts +5 -6
- package/dist/components/NSBoxRadio.js +3 -3
- package/dist/components/NSBoxRadio.js.map +1 -1
- package/dist/components/NSBoxRadio.module.css +69 -70
- package/dist/components/NSBoxSearch.d.ts +4 -6
- package/dist/components/NSBoxSearch.js +9 -14
- package/dist/components/NSBoxSearch.js.map +1 -1
- package/dist/components/NSBoxString.d.ts +4 -6
- package/dist/components/NSBoxString.js +10 -10
- package/dist/components/NSBoxString.js.map +1 -1
- package/dist/components/NSBoxTextArea.d.ts +4 -6
- package/dist/components/NSBoxTextArea.js +9 -12
- package/dist/components/NSBoxTextArea.js.map +1 -1
- package/dist/components/NSBoxTextArea.module.css +45 -83
- package/dist/components/NSBoxTime.d.ts +5 -4
- package/dist/components/NSBoxTime.js +11 -4
- package/dist/components/NSBoxTime.js.map +1 -1
- package/dist/components/NSBoxTime.module.css +5 -0
- package/dist/components/NSButton.d.ts +2 -2
- package/dist/components/NSButton.js.map +1 -1
- package/dist/components/NSButton.module.css +42 -42
- package/dist/components/NSButtonBlue.d.ts +2 -2
- package/dist/components/NSButtonBlue.js.map +1 -1
- package/dist/components/NSButtonBlue.module.css +4 -4
- package/dist/components/NSButtonGreen.d.ts +2 -2
- package/dist/components/NSButtonGreen.js.map +1 -1
- package/dist/components/NSButtonGreen.module.css +4 -4
- package/dist/components/NSButtonRed.d.ts +2 -2
- package/dist/components/NSButtonRed.js.map +1 -1
- package/dist/components/NSButtonRed.module.css +4 -4
- package/dist/components/NSCard.d.ts +2 -2
- package/dist/components/NSCard.js.map +1 -1
- 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/NSChartRange.d.ts +2 -2
- package/dist/components/NSChartRange.js.map +1 -1
- package/dist/components/NSChartTable.module.css +21 -21
- package/dist/components/NSCopyBox.d.ts +7 -0
- package/dist/components/{NSBoxCopy.js → NSCopyBox.js} +3 -3
- package/dist/components/{NSBoxCopy.js.map → NSCopyBox.js.map} +1 -1
- package/{src/components/NSBoxCopy.module.css → dist/components/NSCopyBox.module.css} +43 -43
- package/dist/components/NSDialog.module.css +106 -106
- package/dist/components/NSDialogDelete.d.ts +6 -0
- package/dist/components/{NSDeleteDialog.js → NSDialogDelete.js} +4 -4
- package/dist/components/NSDialogDelete.js.map +1 -0
- package/dist/components/{NSInfoDialog.d.ts → NSDialogInfo.d.ts} +2 -2
- package/dist/components/{NSInfoDialog.js → NSDialogInfo.js} +2 -2
- package/dist/components/{NSInfoDialog.js.map → NSDialogInfo.js.map} +1 -1
- package/dist/components/{NSPageSelectionModal.d.ts → NSDialogPageSelection.d.ts} +4 -4
- package/dist/components/{NSPageSelectionModal.js → NSDialogPageSelection.js} +4 -4
- package/dist/components/NSDialogPageSelection.js.map +1 -0
- package/dist/components/{NSPageSelectionModal.module.css → NSDialogPageSelection.module.css} +103 -103
- package/dist/components/NSDownTimer.module.css +55 -55
- package/dist/components/NSDownload.js.map +1 -1
- package/dist/components/NSDownload.module.css +46 -46
- package/dist/components/NSElectronicCard.d.ts +2 -2
- package/dist/components/NSElectronicCard.js.map +1 -1
- package/dist/components/NSElectronicCard.module.css +60 -60
- package/dist/components/NSEntityCardBackground.d.ts +2 -2
- package/dist/components/NSEntityCardBackground.js.map +1 -1
- package/dist/components/NSEntityCardBackground.module.css +27 -27
- package/dist/components/NSFilterBox.d.ts +13 -13
- package/dist/components/NSFilterBox.js +4 -4
- package/dist/components/NSFilterBox.js.map +1 -1
- package/dist/components/NSFilterBox.module.css +62 -62
- package/dist/components/NSFilterBoxDialog.js +1 -1
- package/dist/components/NSFilterBoxDialog.js.map +1 -1
- package/dist/components/NSFilterBoxDialog.module.css +36 -36
- package/dist/components/NSFilterItem.module.css +23 -23
- package/dist/components/NSFooter.d.ts +3 -3
- package/dist/components/NSFooter.js +4 -4
- package/dist/components/NSFooter.js.map +1 -1
- package/dist/components/NSFooter.module.css +123 -123
- package/dist/components/NSHeader.d.ts +3 -3
- package/dist/components/NSHeader.js +3 -3
- package/dist/components/NSHeader.js.map +1 -1
- package/dist/components/NSHeader.module.css +291 -291
- package/dist/components/NSHeaderScreenshot.d.ts +2 -2
- package/dist/components/NSHeaderScreenshot.js.map +1 -1
- package/dist/components/NSHeaderScreenshot.module.css +35 -35
- package/dist/components/{NSBoxLabel.d.ts → NSLabel.d.ts} +3 -3
- package/dist/components/NSLabel.js +11 -0
- package/dist/components/NSLabel.js.map +1 -0
- package/{src/components/NSBoxLabel.module.css → dist/components/NSLabel.module.css} +15 -14
- package/dist/components/NSLabelErrorNotifier.d.ts +6 -0
- package/dist/components/{NSBoxErrorNotifier.js → NSLabelErrorNotifier.js} +3 -3
- package/dist/components/NSLabelErrorNotifier.js.map +1 -0
- package/dist/components/{NSBoxErrorNotifier.module.css → NSLabelErrorNotifier.module.css} +2 -2
- package/dist/components/NSLayout.d.ts +10 -12
- package/dist/components/NSLayout.js +2 -4
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/components/NSLayout.module.css +13 -13
- package/dist/components/NSLine.module.css +12 -12
- package/dist/components/NSLink.d.ts +2 -2
- package/dist/components/NSLink.js.map +1 -1
- package/dist/components/NSLink.module.css +36 -36
- package/dist/components/NSLinkBlue.d.ts +2 -2
- package/dist/components/NSLinkBlue.js.map +1 -1
- package/dist/components/NSLinkGreen.d.ts +2 -2
- package/dist/components/NSLinkGreen.js.map +1 -1
- package/dist/components/NSLinkRed.d.ts +2 -2
- package/dist/components/NSLinkRed.js.map +1 -1
- package/dist/components/{NSGroupedList.d.ts → NSListGrouped.d.ts} +8 -8
- package/dist/components/NSListGrouped.js +40 -0
- package/dist/components/{NSGroupedList.js.map → NSListGrouped.js.map} +1 -1
- package/dist/components/{NSGroupedList.module.css → NSListGrouped.module.css} +72 -72
- package/dist/components/{NSProductList.d.ts → NSListProduct.d.ts} +2 -2
- package/dist/components/{NSProductList.js → NSListProduct.js} +2 -2
- package/dist/components/{NSProductList.js.map → NSListProduct.js.map} +1 -1
- package/dist/components/NSLoading.d.ts +2 -2
- package/dist/components/NSLoading.js.map +1 -1
- package/dist/components/NSLoading.module.css +30 -30
- package/dist/components/{NSActionMenu.d.ts → NSMenuAction.d.ts} +4 -4
- package/dist/components/{NSActionMenu.js → NSMenuAction.js} +5 -5
- package/dist/components/{NSActionMenu.js.map → NSMenuAction.js.map} +1 -1
- package/{src/components/NSActionMenu.module.css → dist/components/NSMenuAction.module.css} +100 -101
- package/dist/components/NSMenuButton.d.ts +18 -0
- package/dist/components/NSMenuButton.js +42 -0
- package/dist/components/NSMenuButton.js.map +1 -0
- package/{src/components/NSAssistantButton.module.css → dist/components/NSMenuButton.module.css} +124 -135
- package/dist/components/NSNoData.d.ts +2 -2
- package/dist/components/NSNoData.js.map +1 -1
- package/dist/components/NSNoData.module.css +9 -9
- package/dist/components/NSPagination.d.ts +4 -4
- package/dist/components/NSPagination.js +2 -2
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/components/NSPagination.module.css +110 -110
- package/dist/components/NSPanel.module.css +46 -46
- package/dist/components/{NSAccordion.d.ts → NSPanelAccordion.d.ts} +2 -2
- package/dist/components/{NSAccordion.js → NSPanelAccordion.js} +5 -5
- package/dist/components/NSPanelAccordion.js.map +1 -0
- package/dist/components/{NSAccordion.module.css → NSPanelAccordion.module.css} +4 -4
- package/dist/components/NSRange.d.ts +2 -2
- package/dist/components/NSRange.js.map +1 -1
- package/dist/components/NSRange.module.css +66 -66
- package/dist/components/NSSection.d.ts +2 -2
- package/dist/components/NSSection.js.map +1 -1
- package/dist/components/NSSection.module.css +10 -10
- package/dist/components/NSSectionCards.d.ts +4 -4
- package/dist/components/NSSectionCards.js.map +1 -1
- package/dist/components/NSSectionCards.module.css +38 -38
- package/dist/components/NSSectionTiles.d.ts +7 -0
- package/dist/components/NSSectionTiles.js +10 -0
- package/dist/components/NSSectionTiles.js.map +1 -0
- package/dist/components/{NSSectionBars.module.css → NSSectionTiles.module.css} +10 -10
- package/dist/components/NSSectionTitle.d.ts +2 -2
- package/dist/components/NSSectionTitle.js.map +1 -1
- package/dist/components/NSSpace.d.ts +2 -2
- package/dist/components/NSSpace.js.map +1 -1
- package/dist/components/NSTabPage.js +2 -1
- package/dist/components/NSTabPage.js.map +1 -1
- package/dist/components/NSTabPage.module.css +59 -59
- package/dist/components/NSTable.d.ts +6 -4
- package/dist/components/NSTable.js +25 -13
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTable.module.css +260 -260
- package/dist/components/NSTag.js +2 -2
- package/dist/components/NSTag.js.map +1 -1
- package/dist/components/NSTag.module.css +52 -52
- package/dist/components/{NSEntityBar.d.ts → NSTile.d.ts} +2 -2
- package/dist/components/{NSEntityBar.js → NSTile.js} +3 -3
- package/dist/components/NSTile.js.map +1 -0
- package/{src/components/NSEntityBar.module.css → dist/components/NSTile.module.css} +77 -77
- package/dist/components/NSTimelineMonthly.d.ts +2 -2
- package/dist/components/NSTimelineMonthly.js.map +1 -1
- package/dist/components/NSTimelineMonthly.module.css +71 -71
- package/dist/components/NSTitle.d.ts +2 -2
- package/dist/components/NSTitle.js.map +1 -1
- package/dist/components/NSTitle.module.css +15 -15
- package/dist/main.d.ts +21 -26
- package/dist/main.js +21 -26
- 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/routing/INSRouterState.d.ts +2 -2
- package/dist/routing/Notifier.d.ts +2 -2
- package/dist/routing/Notifier.js.map +1 -1
- package/package.json +76 -75
- package/public/index.html +38 -38
- package/src/App.css +33 -57
- package/src/App.tsx +191 -377
- package/src/Color.tsx +10 -10
- package/src/CopyToClipboard.ts +6 -6
- package/src/Validator.ts +125 -117
- package/src/components/NSBarAction.module.css +97 -97
- package/src/components/NSBarAction.tsx +89 -89
- package/src/components/NSBarAlert.module.css +69 -69
- package/src/components/NSBarAlert.tsx +30 -30
- package/src/components/NSBarNotification.module.css +34 -34
- package/src/components/NSBarNotification.tsx +89 -87
- package/src/components/NSBarTitle.module.css +9 -9
- package/src/components/NSBarTitle.tsx +29 -29
- package/src/components/NSBox.module.css +50 -126
- package/src/components/{NSBoxCombo.module.css → NSBoxBaseCombo.module.css} +6 -6
- package/src/components/NSBoxBaseCombo.tsx +268 -0
- package/src/components/NSBoxBoolean.module.css +67 -88
- package/src/components/NSBoxBoolean.tsx +131 -124
- package/src/components/NSBoxBooleans.tsx +159 -159
- package/src/components/NSBoxCombo.tsx +61 -151
- package/src/components/NSBoxDate.module.css +4 -56
- package/src/components/NSBoxDate.tsx +101 -88
- package/src/components/NSBoxDateTime.module.css +4 -51
- package/src/components/NSBoxDateTime.tsx +101 -89
- package/src/components/NSBoxDouble.tsx +104 -92
- package/src/components/NSBoxDuration.module.css +5 -0
- package/src/components/NSBoxDuration.tsx +105 -92
- package/src/components/NSBoxEmail.tsx +112 -103
- package/src/components/NSBoxEntity.tsx +52 -197
- package/src/components/NSBoxEnum.tsx +64 -55
- package/src/components/NSBoxFile.module.css +10 -4
- package/src/components/NSBoxFile.tsx +101 -124
- package/src/components/NSBoxIPV4.tsx +107 -97
- package/src/components/NSBoxIPV6.tsx +103 -94
- package/src/components/NSBoxInteger.tsx +104 -94
- package/src/components/{NSBoxPrice.tsx → NSBoxMoney.tsx} +102 -92
- package/src/components/NSBoxPassword.tsx +111 -90
- package/src/components/NSBoxPhone.module.css +36 -0
- package/src/components/NSBoxPhone.tsx +116 -97
- package/src/components/NSBoxRadio.module.css +69 -70
- package/src/components/NSBoxRadio.tsx +107 -111
- package/src/components/NSBoxSearch.tsx +99 -107
- package/src/components/NSBoxString.tsx +104 -106
- package/src/components/NSBoxTextArea.module.css +45 -83
- package/src/components/NSBoxTextArea.tsx +108 -112
- package/src/components/NSBoxTime.module.css +5 -0
- package/src/components/NSBoxTime.tsx +104 -92
- package/src/components/NSButton.module.css +42 -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 -15
- package/src/components/NSChartTable.module.css +21 -21
- package/src/components/NSChartTable.tsx +94 -94
- package/src/components/NSCopy.tsx +67 -67
- package/{dist/components/NSBoxCopy.module.css → src/components/NSCopyBox.module.css} +43 -43
- package/src/components/{NSBoxCopy.tsx → NSCopyBox.tsx} +41 -41
- package/src/components/NSDialog.module.css +106 -106
- package/src/components/NSDialog.tsx +56 -56
- package/src/components/{NSDeleteDialog.tsx → NSDialogDelete.tsx} +26 -26
- package/src/components/{NSInfoDialog.tsx → NSDialogInfo.tsx} +36 -36
- package/src/components/{NSPageSelectionModal.module.css → NSDialogPageSelection.module.css} +103 -103
- package/src/components/{NSPageSelectionModal.tsx → NSDialogPageSelection.tsx} +223 -228
- 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 -62
- package/src/components/NSElectronicCard.module.css +60 -60
- package/src/components/NSElectronicCard.tsx +46 -45
- package/src/components/NSEntityCardBackground.module.css +27 -27
- package/src/components/NSEntityCardBackground.tsx +36 -34
- package/src/components/NSFilterBox.module.css +62 -62
- package/src/components/NSFilterBox.tsx +360 -360
- package/src/components/NSFilterBoxDialog.module.css +36 -36
- package/src/components/NSFilterBoxDialog.tsx +72 -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 +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 -38
- package/{dist/components/NSBoxLabel.module.css → src/components/NSLabel.module.css} +15 -14
- package/src/components/{NSBoxLabel.tsx → NSLabel.tsx} +29 -29
- package/src/components/{NSBoxErrorNotifier.module.css → NSLabelErrorNotifier.module.css} +2 -2
- package/src/components/{NSBoxErrorNotifier.tsx → NSLabelErrorNotifier.tsx} +32 -32
- package/src/components/NSLayout.module.css +13 -13
- package/src/components/NSLayout.tsx +100 -109
- 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/{NSGroupedList.module.css → NSListGrouped.module.css} +72 -72
- package/src/components/{NSGroupedList.tsx → NSListGrouped.tsx} +112 -112
- package/src/components/{NSProductList.tsx → NSListProduct.tsx} +45 -45
- package/src/components/NSLoading.module.css +30 -30
- package/src/components/NSLoading.tsx +19 -20
- package/{dist/components/NSActionMenu.module.css → src/components/NSMenuAction.module.css} +100 -101
- package/src/components/{NSActionMenu.tsx → NSMenuAction.tsx} +90 -90
- package/{dist/components/NSAssistantButton.module.css → src/components/NSMenuButton.module.css} +124 -135
- package/src/components/NSMenuButton.tsx +125 -0
- package/src/components/NSNoData.module.css +9 -9
- package/src/components/NSNoData.tsx +24 -24
- package/src/components/NSPagination.module.css +110 -110
- package/src/components/NSPagination.tsx +190 -189
- package/src/components/NSPanel.module.css +46 -46
- package/src/components/NSPanel.tsx +19 -19
- package/src/components/{NSAccordion.module.css → NSPanelAccordion.module.css} +4 -4
- package/src/components/{NSAccordion.tsx → NSPanelAccordion.tsx} +51 -51
- package/src/components/NSRange.module.css +66 -66
- package/src/components/NSRange.tsx +83 -81
- 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/{NSSectionBars.module.css → NSSectionTiles.module.css} +10 -10
- package/src/components/{NSSectionBars.tsx → 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 +260 -260
- package/src/components/NSTable.tsx +477 -462
- package/src/components/NSTag.module.css +52 -52
- package/src/components/NSTag.tsx +78 -78
- package/{dist/components/NSEntityBar.module.css → src/components/NSTile.module.css} +77 -77
- package/src/components/{NSEntityBar.tsx → NSTile.tsx} +27 -27
- package/src/components/NSTimelineMonthly.module.css +71 -71
- package/src/components/NSTimelineMonthly.tsx +44 -42
- 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 +14 -14
- package/src/index.tsx +7 -7
- package/src/main.ts +186 -118
- 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/App.css +0 -58
- package/dist/components/NSAccordion.js.map +0 -1
- package/dist/components/NSAssistantButton.d.ts +0 -5
- package/dist/components/NSAssistantButton.js +0 -17
- package/dist/components/NSAssistantButton.js.map +0 -1
- package/dist/components/NSBarHeroBanner.d.ts +0 -7
- package/dist/components/NSBarHeroBanner.js +0 -8
- package/dist/components/NSBarHeroBanner.js.map +0 -1
- package/dist/components/NSBarHeroBanner.module.css +0 -43
- package/dist/components/NSBoxCopy.d.ts +0 -7
- package/dist/components/NSBoxEntity.module.css +0 -22
- package/dist/components/NSBoxErrorNotifier.d.ts +0 -6
- package/dist/components/NSBoxErrorNotifier.js.map +0 -1
- package/dist/components/NSBoxLabel.js +0 -11
- package/dist/components/NSBoxLabel.js.map +0 -1
- package/dist/components/NSBoxPrice.js +0 -45
- package/dist/components/NSBoxPrice.js.map +0 -1
- package/dist/components/NSCopyToClipboard.d.ts +0 -7
- package/dist/components/NSCopyToClipboard.js +0 -13
- package/dist/components/NSCopyToClipboard.js.map +0 -1
- package/dist/components/NSCopyToClipboard.module.css +0 -44
- package/dist/components/NSDeleteDialog.d.ts +0 -6
- package/dist/components/NSDeleteDialog.js.map +0 -1
- package/dist/components/NSEntityBar.js.map +0 -1
- package/dist/components/NSGroupedList.js +0 -40
- package/dist/components/NSPageSelectionModal.js.map +0 -1
- package/dist/components/NSRadioButton.d.ts +0 -25
- package/dist/components/NSRadioButton.js +0 -49
- package/dist/components/NSRadioButton.js.map +0 -1
- package/dist/components/NSSectionBars.d.ts +0 -7
- package/dist/components/NSSectionBars.js +0 -10
- package/dist/components/NSSectionBars.js.map +0 -1
- package/dist/components/NSTimeTable.d.ts +0 -15
- package/dist/components/NSTimeTable.js +0 -21
- package/dist/components/NSTimeTable.js.map +0 -1
- package/dist/components/NSTimeTable.module.css +0 -7
- package/dist/formatter/ForeignIDFormatter.d.ts +0 -4
- package/dist/formatter/ForeignIDFormatter.js +0 -7
- package/dist/formatter/ForeignIDFormatter.js.map +0 -1
- package/dist/index.css +0 -6
- package/src/components/NSAssistantButton.tsx +0 -71
- package/src/components/NSBarHeroBanner.module.css +0 -43
- package/src/components/NSBarHeroBanner.tsx +0 -62
- package/src/components/NSBoxEntity.module.css +0 -22
- package/src/components/NSDeleteDialog.module.css +0 -0
- package/src/components/NSInfoDialog.module.css +0 -0
- package/src/components/NSProductList.module.css +0 -0
- package/src/components/NSTimeTable.module.css +0 -7
- package/src/components/NSTimeTable.tsx +0 -50
- /package/dist/components/{NSBoxEnum.module.css → NSDialogDelete.module.css} +0 -0
- /package/dist/components/{NSChartPie.module.css → NSDialogInfo.module.css} +0 -0
- /package/dist/components/{NSDeleteDialog.module.css → NSListProduct.module.css} +0 -0
- /package/{dist/components/NSInfoDialog.module.css → src/components/NSDialogDelete.module.css} +0 -0
- /package/{dist/components/NSProductList.module.css → src/components/NSDialogInfo.module.css} +0 -0
- /package/src/components/{NSBoxEnum.module.css → NSListProduct.module.css} +0 -0
package/.dockerignore
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
# Editor
|
|
2
|
-
.vscode/
|
|
3
|
-
.vscode-test/
|
|
4
|
-
.idea
|
|
5
|
-
|
|
6
|
-
# Logs
|
|
7
|
-
logs
|
|
8
|
-
*.log
|
|
9
|
-
npm-debug.log*
|
|
10
|
-
npm-debug.log*
|
|
11
|
-
yarn-debug.log*
|
|
12
|
-
yarn-error.log*
|
|
13
|
-
lerna-debug.log*
|
|
14
|
-
.pnpm-debug.log*
|
|
15
|
-
npm-debug.log*
|
|
16
|
-
yarn-debug.log*
|
|
17
|
-
yarn-error.log*
|
|
18
|
-
|
|
19
|
-
# misc
|
|
20
|
-
.DS_Store
|
|
21
|
-
*.pem
|
|
22
|
-
|
|
23
|
-
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
24
|
-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
25
|
-
|
|
26
|
-
# local env files
|
|
27
|
-
.env
|
|
28
|
-
.env.*
|
|
29
|
-
!.env.template
|
|
30
|
-
|
|
31
|
-
# Runtime data
|
|
32
|
-
pids
|
|
33
|
-
*.pid
|
|
34
|
-
*.seed
|
|
35
|
-
*.pid.lock
|
|
36
|
-
|
|
37
|
-
# Cache
|
|
38
|
-
.npm
|
|
39
|
-
.cache
|
|
40
|
-
.parcel-cache
|
|
41
|
-
.temp
|
|
42
|
-
.docusaurus
|
|
43
|
-
.fusebox/
|
|
44
|
-
.eslintcache
|
|
45
|
-
.stylelintcache
|
|
46
|
-
.rpt2_cache/
|
|
47
|
-
.rts2_cache_cjs/
|
|
48
|
-
.rts2_cache_es/
|
|
49
|
-
.rts2_cache_umd/
|
|
50
|
-
|
|
51
|
-
# Dependency
|
|
52
|
-
node_modules/
|
|
53
|
-
jspm_packages/
|
|
54
|
-
web_modules/
|
|
55
|
-
bower_components/
|
|
56
|
-
|
|
57
|
-
# Package Json
|
|
58
|
-
package-lock.json
|
|
59
|
-
|
|
60
|
-
# yarn v2
|
|
61
|
-
.yarn/cache
|
|
62
|
-
.yarn/unplugged
|
|
63
|
-
.yarn/build-state.yml
|
|
64
|
-
.yarn/install-state.gz
|
|
65
|
-
.yarn-integrity
|
|
66
|
-
.pnp.*
|
|
67
|
-
|
|
68
|
-
# Build
|
|
69
|
-
build/
|
|
70
|
-
out/
|
|
71
|
-
bin/
|
|
72
|
-
dist/
|
|
73
|
-
|
|
74
|
-
# typescript
|
|
75
|
-
*.tsbuildinfo
|
|
76
|
-
|
|
77
|
-
# swagger
|
|
78
|
-
*.swg
|
|
79
|
-
|
|
80
|
-
#schema
|
|
81
|
-
*.schema
|
|
82
|
-
|
|
83
|
-
# auto generated
|
|
84
|
-
/page/
|
|
85
|
-
/pages/
|
|
86
|
-
/asset/
|
|
1
|
+
# Editor
|
|
2
|
+
.vscode/
|
|
3
|
+
.vscode-test/
|
|
4
|
+
.idea
|
|
5
|
+
|
|
6
|
+
# Logs
|
|
7
|
+
logs
|
|
8
|
+
*.log
|
|
9
|
+
npm-debug.log*
|
|
10
|
+
npm-debug.log*
|
|
11
|
+
yarn-debug.log*
|
|
12
|
+
yarn-error.log*
|
|
13
|
+
lerna-debug.log*
|
|
14
|
+
.pnpm-debug.log*
|
|
15
|
+
npm-debug.log*
|
|
16
|
+
yarn-debug.log*
|
|
17
|
+
yarn-error.log*
|
|
18
|
+
|
|
19
|
+
# misc
|
|
20
|
+
.DS_Store
|
|
21
|
+
*.pem
|
|
22
|
+
|
|
23
|
+
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
24
|
+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
25
|
+
|
|
26
|
+
# local env files
|
|
27
|
+
.env
|
|
28
|
+
.env.*
|
|
29
|
+
!.env.template
|
|
30
|
+
|
|
31
|
+
# Runtime data
|
|
32
|
+
pids
|
|
33
|
+
*.pid
|
|
34
|
+
*.seed
|
|
35
|
+
*.pid.lock
|
|
36
|
+
|
|
37
|
+
# Cache
|
|
38
|
+
.npm
|
|
39
|
+
.cache
|
|
40
|
+
.parcel-cache
|
|
41
|
+
.temp
|
|
42
|
+
.docusaurus
|
|
43
|
+
.fusebox/
|
|
44
|
+
.eslintcache
|
|
45
|
+
.stylelintcache
|
|
46
|
+
.rpt2_cache/
|
|
47
|
+
.rts2_cache_cjs/
|
|
48
|
+
.rts2_cache_es/
|
|
49
|
+
.rts2_cache_umd/
|
|
50
|
+
|
|
51
|
+
# Dependency
|
|
52
|
+
node_modules/
|
|
53
|
+
jspm_packages/
|
|
54
|
+
web_modules/
|
|
55
|
+
bower_components/
|
|
56
|
+
|
|
57
|
+
# Package Json
|
|
58
|
+
package-lock.json
|
|
59
|
+
|
|
60
|
+
# yarn v2
|
|
61
|
+
.yarn/cache
|
|
62
|
+
.yarn/unplugged
|
|
63
|
+
.yarn/build-state.yml
|
|
64
|
+
.yarn/install-state.gz
|
|
65
|
+
.yarn-integrity
|
|
66
|
+
.pnp.*
|
|
67
|
+
|
|
68
|
+
# Build
|
|
69
|
+
build/
|
|
70
|
+
out/
|
|
71
|
+
bin/
|
|
72
|
+
dist/
|
|
73
|
+
|
|
74
|
+
# typescript
|
|
75
|
+
*.tsbuildinfo
|
|
76
|
+
|
|
77
|
+
# swagger
|
|
78
|
+
*.swg
|
|
79
|
+
|
|
80
|
+
#schema
|
|
81
|
+
*.schema
|
|
82
|
+
|
|
83
|
+
# auto generated
|
|
84
|
+
/page/
|
|
85
|
+
/pages/
|
|
86
|
+
/asset/
|
|
87
87
|
/assets/
|
package/.env.template
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
## BASE
|
|
2
|
-
REACT_APP_BASE_PATH = ""
|
|
3
|
-
REACT_APP_BASE_URL_ACCESS = "https://access.namirasoft.com/api/v1"
|
|
4
|
-
REACT_APP_BASE_URL_ACCOUNT = "https://account.namirasoft.com/api/v1"
|
|
5
|
-
REACT_APP_BASE_URL_ACCOUNT_CONSOLE = "https://account.namirasoft.com"
|
|
6
|
-
REACT_APP_BASE_URL_API_LINK = "https://namirasoft.com/api/link/v1"
|
|
7
|
-
REACT_APP_BASE_URL_API_PRODUCT = "https://namirasoft.com/api/product/v1"
|
|
8
|
-
REACT_APP_BASE_URL_FIELD = "https://field.namirasoft.com/api/v1"
|
|
9
|
-
REACT_APP_BASE_URL_HISTORY = "https://history.namirasoft.com/api/v1"
|
|
10
|
-
REACT_APP_BASE_URL_MESSAGE = "https://message.namirasoft.com/api/v1"
|
|
1
|
+
## BASE
|
|
2
|
+
REACT_APP_BASE_PATH = ""
|
|
3
|
+
REACT_APP_BASE_URL_ACCESS = "https://access.namirasoft.com/api/v1"
|
|
4
|
+
REACT_APP_BASE_URL_ACCOUNT = "https://account.namirasoft.com/api/v1"
|
|
5
|
+
REACT_APP_BASE_URL_ACCOUNT_CONSOLE = "https://account.namirasoft.com"
|
|
6
|
+
REACT_APP_BASE_URL_API_LINK = "https://namirasoft.com/api/link/v1"
|
|
7
|
+
REACT_APP_BASE_URL_API_PRODUCT = "https://namirasoft.com/api/product/v1"
|
|
8
|
+
REACT_APP_BASE_URL_FIELD = "https://field.namirasoft.com/api/v1"
|
|
9
|
+
REACT_APP_BASE_URL_HISTORY = "https://history.namirasoft.com/api/v1"
|
|
10
|
+
REACT_APP_BASE_URL_MESSAGE = "https://message.namirasoft.com/api/v1"
|
|
11
11
|
REACT_APP_BASE_URL_WORKSPACE = "https://workspace.namirasoft.com/api/v1"
|
package/Dockerfile
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
FROM nexus.namirasoft.com:8443/arm-nodets:latest
|
|
2
|
-
|
|
3
|
-
WORKDIR /app
|
|
4
|
-
|
|
5
|
-
ENV NODE_ENV=production
|
|
6
|
-
|
|
7
|
-
# Install
|
|
8
|
-
COPY package*.json ./
|
|
9
|
-
RUN npm install
|
|
10
|
-
|
|
11
|
-
# Copy
|
|
12
|
-
COPY . .
|
|
13
|
-
|
|
14
|
-
# Build
|
|
15
|
-
RUN tsc
|
|
16
|
-
|
|
17
|
-
EXPOSE 3000
|
|
18
|
-
|
|
1
|
+
FROM nexus.namirasoft.com:8443/arm-nodets:latest
|
|
2
|
+
|
|
3
|
+
WORKDIR /app
|
|
4
|
+
|
|
5
|
+
ENV NODE_ENV=production
|
|
6
|
+
|
|
7
|
+
# Install
|
|
8
|
+
COPY package*.json ./
|
|
9
|
+
RUN npm install
|
|
10
|
+
|
|
11
|
+
# Copy
|
|
12
|
+
COPY . .
|
|
13
|
+
|
|
14
|
+
# Build
|
|
15
|
+
RUN tsc
|
|
16
|
+
|
|
17
|
+
EXPOSE 3000
|
|
18
|
+
|
|
19
19
|
CMD ["node", "./dist/index.js"]
|
package/config-overrides.js
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
|
|
2
|
-
const webpack = require('webpack');
|
|
3
|
-
|
|
4
|
-
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
|
|
5
|
-
|
|
6
|
-
module.exports = function config_overrides(config, webpackEnv)
|
|
7
|
-
{
|
|
8
|
-
console.log('overriding webpack config...');
|
|
9
|
-
const isEnvDevelopment = webpackEnv === 'development';
|
|
10
|
-
const isEnvProduction = webpackEnv === 'production';
|
|
11
|
-
const loaders = config.module.rules[1].oneOf;
|
|
12
|
-
|
|
13
|
-
loaders.splice(loaders.length - 1, 0, {
|
|
14
|
-
test: /\.(js|mjs|cjs)$/,
|
|
15
|
-
exclude: /@babel(?:\/|\\{1,2})runtime/,
|
|
16
|
-
loader: require.resolve('babel-loader'),
|
|
17
|
-
options: {
|
|
18
|
-
babelrc: false,
|
|
19
|
-
configFile: false,
|
|
20
|
-
compact: false,
|
|
21
|
-
presets: [
|
|
22
|
-
[
|
|
23
|
-
require.resolve('babel-preset-react-app/dependencies'),
|
|
24
|
-
{ helpers: true },
|
|
25
|
-
],
|
|
26
|
-
],
|
|
27
|
-
cacheDirectory: true,
|
|
28
|
-
// See #6846 for context on why cacheCompression is disabled
|
|
29
|
-
cacheCompression: false,
|
|
30
|
-
// @remove-on-eject-begin
|
|
31
|
-
cacheIdentifier: getCacheIdentifier(
|
|
32
|
-
isEnvProduction
|
|
33
|
-
? 'production'
|
|
34
|
-
: isEnvDevelopment && 'development',
|
|
35
|
-
[
|
|
36
|
-
'babel-plugin-named-asset-import',
|
|
37
|
-
'babel-preset-react-app',
|
|
38
|
-
'react-dev-utils',
|
|
39
|
-
'react-scripts',
|
|
40
|
-
]
|
|
41
|
-
),
|
|
42
|
-
// @remove-on-eject-end
|
|
43
|
-
// Babel sourcemaps are needed for debugging into node_modules
|
|
44
|
-
// code. Without the options below, debuggers like VSCode
|
|
45
|
-
// show incorrect code and set breakpoints on the wrong lines.
|
|
46
|
-
sourceMaps: shouldUseSourceMap,
|
|
47
|
-
inputSourceMap: shouldUseSourceMap,
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
config.resolve.fallback = {
|
|
52
|
-
"child_process": false,
|
|
53
|
-
"crypto": false,
|
|
54
|
-
// "crypto": require.resolve("crypto-browserify")
|
|
55
|
-
"fs": false,
|
|
56
|
-
// "http": require.resolve("stream-http"),
|
|
57
|
-
"https": false,
|
|
58
|
-
"net": false,
|
|
59
|
-
"os": require.resolve("os-browserify"),
|
|
60
|
-
"path": require.resolve("path-browserify"),
|
|
61
|
-
// "stream": require.resolve("stream-browserify"),
|
|
62
|
-
"tls": false,
|
|
63
|
-
// "util": require.resolve("util/"),
|
|
64
|
-
// "zlib": require.resolve("browserify-zlib"),
|
|
65
|
-
}
|
|
66
|
-
config.plugins = (config.plugins || []).concat([
|
|
67
|
-
new webpack.NormalModuleReplacementPlugin(/node:/, (resource) =>
|
|
68
|
-
{
|
|
69
|
-
resource.request = resource.request.replace(/^node:/, "");
|
|
70
|
-
})
|
|
71
|
-
]);
|
|
72
|
-
return config;
|
|
1
|
+
const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
|
|
2
|
+
const webpack = require('webpack');
|
|
3
|
+
|
|
4
|
+
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
|
|
5
|
+
|
|
6
|
+
module.exports = function config_overrides(config, webpackEnv)
|
|
7
|
+
{
|
|
8
|
+
console.log('overriding webpack config...');
|
|
9
|
+
const isEnvDevelopment = webpackEnv === 'development';
|
|
10
|
+
const isEnvProduction = webpackEnv === 'production';
|
|
11
|
+
const loaders = config.module.rules[1].oneOf;
|
|
12
|
+
|
|
13
|
+
loaders.splice(loaders.length - 1, 0, {
|
|
14
|
+
test: /\.(js|mjs|cjs)$/,
|
|
15
|
+
exclude: /@babel(?:\/|\\{1,2})runtime/,
|
|
16
|
+
loader: require.resolve('babel-loader'),
|
|
17
|
+
options: {
|
|
18
|
+
babelrc: false,
|
|
19
|
+
configFile: false,
|
|
20
|
+
compact: false,
|
|
21
|
+
presets: [
|
|
22
|
+
[
|
|
23
|
+
require.resolve('babel-preset-react-app/dependencies'),
|
|
24
|
+
{ helpers: true },
|
|
25
|
+
],
|
|
26
|
+
],
|
|
27
|
+
cacheDirectory: true,
|
|
28
|
+
// See #6846 for context on why cacheCompression is disabled
|
|
29
|
+
cacheCompression: false,
|
|
30
|
+
// @remove-on-eject-begin
|
|
31
|
+
cacheIdentifier: getCacheIdentifier(
|
|
32
|
+
isEnvProduction
|
|
33
|
+
? 'production'
|
|
34
|
+
: isEnvDevelopment && 'development',
|
|
35
|
+
[
|
|
36
|
+
'babel-plugin-named-asset-import',
|
|
37
|
+
'babel-preset-react-app',
|
|
38
|
+
'react-dev-utils',
|
|
39
|
+
'react-scripts',
|
|
40
|
+
]
|
|
41
|
+
),
|
|
42
|
+
// @remove-on-eject-end
|
|
43
|
+
// Babel sourcemaps are needed for debugging into node_modules
|
|
44
|
+
// code. Without the options below, debuggers like VSCode
|
|
45
|
+
// show incorrect code and set breakpoints on the wrong lines.
|
|
46
|
+
sourceMaps: shouldUseSourceMap,
|
|
47
|
+
inputSourceMap: shouldUseSourceMap,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
config.resolve.fallback = {
|
|
52
|
+
"child_process": false,
|
|
53
|
+
"crypto": false,
|
|
54
|
+
// "crypto": require.resolve("crypto-browserify")
|
|
55
|
+
"fs": false,
|
|
56
|
+
// "http": require.resolve("stream-http"),
|
|
57
|
+
"https": false,
|
|
58
|
+
"net": false,
|
|
59
|
+
"os": require.resolve("os-browserify"),
|
|
60
|
+
"path": require.resolve("path-browserify"),
|
|
61
|
+
// "stream": require.resolve("stream-browserify"),
|
|
62
|
+
"tls": false,
|
|
63
|
+
// "util": require.resolve("util/"),
|
|
64
|
+
// "zlib": require.resolve("browserify-zlib"),
|
|
65
|
+
}
|
|
66
|
+
config.plugins = (config.plugins || []).concat([
|
|
67
|
+
new webpack.NormalModuleReplacementPlugin(/node:/, (resource) =>
|
|
68
|
+
{
|
|
69
|
+
resource.request = resource.request.replace(/^node:/, "");
|
|
70
|
+
})
|
|
71
|
+
]);
|
|
72
|
+
return config;
|
|
73
73
|
};
|
package/dist/App.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import './App.css';
|
|
2
2
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
3
|
-
export interface INSBarActionState {
|
|
4
|
-
id: string;
|
|
5
|
-
menu_item: string;
|
|
6
|
-
handler: () => void;
|
|
7
|
-
isActive: () => boolean;
|
|
8
|
-
}
|
|
9
3
|
export declare function App(): import("react/jsx-runtime").JSX.Element;
|
package/dist/App.js
CHANGED
|
@@ -1,179 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
2
|
import './App.css';
|
|
3
|
+
import { VariableType } from 'namirasoft-schema';
|
|
12
4
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
{
|
|
18
|
-
index: 0,
|
|
19
|
-
name: 'id',
|
|
20
|
-
text: 'ID',
|
|
21
|
-
formatter: new IDFormatter(),
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
index: 1,
|
|
25
|
-
name: 'valid',
|
|
26
|
-
text: 'Valid',
|
|
27
|
-
formatter: new ForeColorFormatter(new BooleanFormatter("Yes", "Invalid"), { true: "green", false: "red" }),
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
index: 2,
|
|
31
|
-
name: 'data',
|
|
32
|
-
text: 'Date',
|
|
33
|
-
formatter: new DateFormatter(),
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
index: 3,
|
|
37
|
-
name: 'time',
|
|
38
|
-
text: 'Time',
|
|
39
|
-
formatter: new TimeFormatter(),
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
index: 4,
|
|
43
|
-
name: 'datetime',
|
|
44
|
-
text: 'DateTime',
|
|
45
|
-
formatter: new DateTimeFormatter(),
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
index: 5,
|
|
49
|
-
name: 'email',
|
|
50
|
-
text: 'Email',
|
|
51
|
-
formatter: new EmailFormatter(),
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
index: 5,
|
|
55
|
-
name: 'status',
|
|
56
|
-
text: 'Status',
|
|
57
|
-
formatter: new EnumFormatter(),
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
index: 5,
|
|
61
|
-
name: 'float',
|
|
62
|
-
text: 'Float',
|
|
63
|
-
formatter: new FloatFormatter(),
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
index: 5,
|
|
67
|
-
name: 'int',
|
|
68
|
-
text: 'Int',
|
|
69
|
-
formatter: new IntegerFormatter(),
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
index: 5,
|
|
73
|
-
name: 'ip',
|
|
74
|
-
text: 'IP',
|
|
75
|
-
formatter: new IPFormatter(),
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
index: 5,
|
|
79
|
-
name: 'phone',
|
|
80
|
-
text: 'Phone',
|
|
81
|
-
formatter: new PhoneFormatter(),
|
|
82
|
-
},
|
|
83
|
-
];
|
|
84
|
-
let rows = [
|
|
85
|
-
{ index: 0, id: 'bln-trn-401234012340', valid: true, data: new Date(), time: new Date(), datetime: new Date(), email: "jane.doe123@example.com", status: "Active", float: 0.0123, int: -500, ip: "127.0.0.1", phone: "(123) 456-7890" },
|
|
86
|
-
{ index: 1, id: 'sss-0123401234012340', valid: false, data: new Date(), time: new Date(), datetime: new Date(), email: "random.guy45@fakeemail.net", status: "Pending", float: 200, int: 0.123, ip: "localhost", phone: "+1-234-567-8901" },
|
|
87
|
-
{ index: 2, id: 'pym-0123401234012340', valid: true, data: new Date(), time: new Date(), datetime: new Date(), email: "hello.world99@sample.org", status: "Done", float: 4000, int: 9.999, ip: "192.168.10.255", phone: "123.456.7890" },
|
|
88
|
-
{ index: 2, id: 'pym-0123401234012340', valid: true, data: new Date(), time: new Date(), datetime: new Date(), email: "user.name2024@testmail.com", status: "Done", float: 5999.0099, int: 4200, ip: "10.10.0.0/24", phone: "+44 20 7946 0958" },
|
|
89
|
-
{ index: 2, id: 'pym-0123401234012340', valid: true, data: new Date(), time: new Date(), datetime: new Date(), email: "cool.kid77@domain.io", status: "Done", float: 800000.99, int: 250000000000, ip: "200.122.43.555/24", phone: "+1 (555) 555-5555" },
|
|
90
|
-
];
|
|
91
|
-
let getFakeRows = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
92
|
-
return { rows, count: rows.length };
|
|
93
|
-
});
|
|
94
|
-
const getFakeRowKey = (row) => { return `${row.index}`; };
|
|
5
|
+
import { NSMenuAction, NSBarAction, NSBoxEmail, NSBoxPhone, NSBoxSearch, NSBoxCombo, NSBoxBoolean, NSSection, NSPanel, NSBoxDate, NSBoxDateTime, NSBoxDouble, NSBoxInteger, NSBoxDuration, NSBoxTime, NSBoxEnum, NSBoxFile, NSBoxIPV4, NSBoxIPV6, NSBoxPassword, NSBoxMoney, NSBoxRadio, NSBoxTextArea, } from './main';
|
|
6
|
+
import { NSBoxEntity } from './components/NSBoxEntity';
|
|
7
|
+
import { NamirasoftAPIProductServer } from 'namirasoft-api-product';
|
|
8
|
+
import { useRef } from 'react';
|
|
95
9
|
export function App() {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
title: ";lkjqwiu lasid yh",
|
|
137
|
-
getContent: () => {
|
|
138
|
-
return (_jsx("div", { style: { backgroundColor: "#fff", width: "100%", color: "#fff" }, className: 'ns_tab_page_custom_style', children: _jsx(NSBoxPhone, { required: true, title: 'teststs' }) }));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
] }), _jsx(NSBoxDate, { required: true, title: 'Test Test' }), _jsx(NSBarAlert, { isVisible: () => true, onContinue: () => window.open("/"), title: {
|
|
142
|
-
title: "Verify Your Email",
|
|
143
|
-
description: "Lorem ipsum dolor sit amet consectetur. In ipsum gravida libero vitae tempor.Ipsum"
|
|
144
|
-
} }), _jsx(NSBarAlert, { isVisible: () => true, onContinue: () => window.open("/"), title: {
|
|
145
|
-
title: "Verify Your Email",
|
|
146
|
-
description: "Lorem ipsum dolor sit amet consectetur. In ipsum gravida libero vitae tempor.Ipsum"
|
|
147
|
-
} }), _jsx("div", { style: { width: "560px" }, children: _jsx(NSBoxSearch, { required: true, title: 'asdasd', style: { width: "100%", maxWidth: "100%" } }) }), _jsx(NSButtonBlue, { onClick: () => { }, title: 'sssssssssss', disabled: true }), _jsx(NSBarAlert, { isVisible: () => true, onContinue: () => window.open("/"), title: {
|
|
148
|
-
title: "Verify Your Email",
|
|
149
|
-
description: "Lorem ipsum dolor sit amet consectetur. In ipsum gravida libero vitae tempor.Ipsum"
|
|
150
|
-
} }), _jsx(NSCard, { title: "Namirasoft Job Arranger ", description: "asdasd asda sd asd asdd asd ", image: {
|
|
151
|
-
src: "https://static.namirasoft.com/image/namirasoft/history/logo/base.png",
|
|
152
|
-
}, link: {
|
|
153
|
-
href: "ss",
|
|
154
|
-
title: "test",
|
|
155
|
-
target: "_seld"
|
|
156
|
-
} }), _jsx("div", { className: "flex justify-content-center align-items-center w-100", children: _jsx(NSChartDoughnut, { datas: [7, 5, 8, 22, 5, 18], labels: ["test", "test2", "test3", "test4", "test5", "test6",], backgroundColors: ["#FF5733",
|
|
157
|
-
"#42A5F5",
|
|
158
|
-
"#FFC107",
|
|
159
|
-
"#8BC34A",
|
|
160
|
-
"#FF5722",
|
|
161
|
-
"#673AB7",
|
|
162
|
-
"#E91E63",
|
|
163
|
-
"#4CAF50",
|
|
164
|
-
"#FF9800",
|
|
165
|
-
"#9C27B0",
|
|
166
|
-
"#2196F3",
|
|
167
|
-
"#FFEB3B",
|
|
168
|
-
"#FF4081",
|
|
169
|
-
"#00BCD4",
|
|
170
|
-
"#CDDC39",], title: 'test' }) }), _jsx(NSBoxBoolean, { required: false, title: 'test', checked: true }), _jsx("div", { className: 'out', children: _jsx("div", { className: "middle", children: _jsx("div", { className: 'in' }) }) }), _jsx(NSDownTimer, { date: new Date(), text: 'Test ' }), _jsx(NSBoxBooleans, { items: [
|
|
171
|
-
{ value: "test1", text: "test1" },
|
|
172
|
-
{ value: "test2", text: "test2" },
|
|
173
|
-
{ value: "test3", text: "test3" },
|
|
174
|
-
], onChanged: (box) => {
|
|
175
|
-
console.log(box.getValues());
|
|
176
|
-
} }), state &&
|
|
177
|
-
_jsx(NSDialog, { center_dialog: true, onClose: () => { setState(false); }, children: _jsx(_Fragment, {}) })] }));
|
|
10
|
+
let NSBoxTest = useRef(null);
|
|
11
|
+
return (_jsxs(_Fragment, { children: [_jsx(NSMenuAction, { items: [{
|
|
12
|
+
handler: () => { },
|
|
13
|
+
id: "1",
|
|
14
|
+
menu_item: "Name",
|
|
15
|
+
isActive: () => true
|
|
16
|
+
}, {
|
|
17
|
+
handler: () => { },
|
|
18
|
+
id: "2",
|
|
19
|
+
menu_item: "Text",
|
|
20
|
+
isActive: () => false
|
|
21
|
+
}], name: 'Test' }), _jsx(NSBarAction, { menus: {
|
|
22
|
+
"Test": [{
|
|
23
|
+
handler: () => { },
|
|
24
|
+
id: "1",
|
|
25
|
+
menu_item: "Name",
|
|
26
|
+
isActive: () => true
|
|
27
|
+
}, {
|
|
28
|
+
handler: () => { },
|
|
29
|
+
id: "2",
|
|
30
|
+
menu_item: "Text",
|
|
31
|
+
isActive: () => false
|
|
32
|
+
}]
|
|
33
|
+
}, title: 'Title' }), _jsx(NSSection, { center_items: true, children: _jsxs(NSPanel, { grid: true, children: [_jsx(NSBoxBoolean, { style: { width: "100%" }, title: 'Text', required: true, indeterminate: true }), _jsx(NSBoxCombo, { style: { width: "100%" }, title: 'Text', required: true, multiple: false, getOptions: () => [{
|
|
34
|
+
value: "1",
|
|
35
|
+
title: "1",
|
|
36
|
+
}] }), _jsx(NSBoxEnum, { style: { width: "100%" }, title: 'Type', required: true, multiple: true, getEnumObject: () => { return VariableType; }, onChanged: e => {
|
|
37
|
+
console.log(e.getValues(VariableType, VariableType.Any));
|
|
38
|
+
} }), _jsx(NSBoxEntity, { style: { width: "100%" }, title: 'Product', required: true, multiple: false, getItems: new NamirasoftAPIProductServer("https://namirasoft.com/api/product/v1", console.error).product.List, getValue: x => x.id, getTitle: x => x.name, onChanged: e => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
let box = e;
|
|
41
|
+
console.log((_a = box.NSBoxBaseCombo.current) === null || _a === void 0 ? void 0 : _a.getData());
|
|
42
|
+
try {
|
|
43
|
+
(_b = NSBoxTest.current) === null || _b === void 0 ? void 0 : _b.getValue();
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
}
|
|
47
|
+
} }), _jsx(NSBoxEmail, { style: { width: "100%" }, title: 'Email', required: true }), _jsx(NSBoxTextArea, { style: { width: "100%" }, title: 'Test', required: true }), _jsx(NSBoxMoney, { style: { width: "100%" }, title: 'Money', required: true }), _jsx(NSBoxRadio, { style: { width: "100%" }, title: 'NSBoxRadio', required: true }), _jsx(NSBoxPhone, { style: { width: "100%" }, title: 'Phone', required: true }), _jsx(NSBoxPassword, { style: { width: "100%" }, title: 'Password', required: true }), _jsx(NSBoxIPV4, { style: { width: "100%" }, ref: NSBoxTest, title: 'IPV4', required: true }), _jsx(NSBoxIPV6, { style: { width: "100%" }, title: 'IPV6', required: true }), _jsx(NSBoxDate, { style: { width: "100%" }, title: 'Date', required: true }), _jsx(NSBoxDateTime, { style: { width: "100%" }, title: 'Datetime', required: true }), _jsx(NSBoxDouble, { style: { width: "100%" }, title: 'Double', required: true }), _jsx(NSBoxDuration, { style: { width: "100%" }, title: 'Duration', required: true }), _jsx(NSBoxTime, { style: { width: "100%" }, title: 'Time', required: true }), _jsx(NSBoxInteger, { style: { width: "100%" }, title: 'Integer', required: true }), _jsx(NSBoxSearch, { style: { width: "100%" }, title: 'Search', required: true }), _jsx(NSBoxFile, { style: { width: "100%" }, required: true, title: 'Driver License', multiple: true, maxFilesCount: 3 })] }) })] }));
|
|
178
48
|
}
|
|
179
49
|
//# sourceMappingURL=App.js.map
|