namirasoft-site-react 1.4.133 → 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 +3 -3
- package/dist/components/NSTable.js +6 -6
- 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 -477
- 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
|
@@ -1,89 +1,68 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
.ns_indeterminate
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
position: absolute;
|
|
69
|
-
width: 100%;
|
|
70
|
-
height: 100%;
|
|
71
|
-
top: 0;
|
|
72
|
-
right: 0;
|
|
73
|
-
border: 5px solid #141b5c;
|
|
74
|
-
color: #141b5c;
|
|
75
|
-
background: #fffbff;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.ns_indeterminate::after {
|
|
79
|
-
content: "";
|
|
80
|
-
display: block;
|
|
81
|
-
position: absolute;
|
|
82
|
-
width: 18px;
|
|
83
|
-
height: 18px;
|
|
84
|
-
top: 3px;
|
|
85
|
-
left: 3px;
|
|
86
|
-
border: 3px solid #fffbff;
|
|
87
|
-
color: #141b5c;
|
|
88
|
-
background: #141b5c;
|
|
1
|
+
.ns_checkbox_parent {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 48px;
|
|
4
|
+
padding: 10px 12px 10px 12px;
|
|
5
|
+
background-color: #fff;
|
|
6
|
+
color: #141B5C;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
border: 1px solid rgba(0, 0, 0, 1) !important;
|
|
9
|
+
font-size: 16px;
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
font-family: inherit;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
justify-content: left;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 4px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ns_input {
|
|
22
|
+
width: 24px;
|
|
23
|
+
height: 24px;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ns_input:focus-visible {
|
|
28
|
+
border-color: rgba(0, 0, 0, 1) !important;
|
|
29
|
+
outline: solid 1px #4096ff !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ns_input:checked {
|
|
33
|
+
accent-color: #141B5C;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ns_indeterminate:indeterminate {
|
|
37
|
+
border: 1px solid rgba(255, 148, 50, 1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ns_indeterminate {
|
|
41
|
+
position: relative;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ns_indeterminate::before {
|
|
45
|
+
content: "";
|
|
46
|
+
display: block;
|
|
47
|
+
position: absolute;
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
top: 0;
|
|
51
|
+
right: 0;
|
|
52
|
+
border: 5px solid #141b5c;
|
|
53
|
+
color: #141b5c;
|
|
54
|
+
background: #fffbff;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ns_indeterminate::after {
|
|
58
|
+
content: "";
|
|
59
|
+
display: block;
|
|
60
|
+
position: absolute;
|
|
61
|
+
width: 18px;
|
|
62
|
+
height: 18px;
|
|
63
|
+
top: 3px;
|
|
64
|
+
left: 3px;
|
|
65
|
+
border: 3px solid #fffbff;
|
|
66
|
+
color: #141b5c;
|
|
67
|
+
background: #141b5c;
|
|
89
68
|
}
|
|
@@ -1,33 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface INSBoxComboOption extends BaseOptionType {
|
|
6
|
-
value: string;
|
|
2
|
+
import { NSBoxBaseCombo, NSBoxBaseComboBaseProps, NSBoxBaseComboOption } from "./NSBoxBaseCombo";
|
|
3
|
+
export interface NSBoxComboProps extends NSBoxBaseComboBaseProps {
|
|
4
|
+
getOptions: () => NSBoxBaseComboOption[];
|
|
7
5
|
}
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
multiple: boolean;
|
|
12
|
-
customClass?: string;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
defaultValue?: string;
|
|
15
|
-
onChanged?: (e: NSBoxCombo, callback?: () => void) => void;
|
|
16
|
-
searchable?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface INSBoxComboState {
|
|
19
|
-
value: string | null;
|
|
20
|
-
values: string[];
|
|
21
|
-
error?: string;
|
|
22
|
-
}
|
|
23
|
-
export declare class NSBoxCombo extends React.Component<INSBoxComboProps, INSBoxComboState> {
|
|
24
|
-
constructor(props: INSBoxComboProps);
|
|
25
|
-
getError(value: string): string | null;
|
|
6
|
+
export declare class NSBoxCombo extends React.Component<NSBoxComboProps> {
|
|
7
|
+
NSBoxBaseCombo: React.RefObject<NSBoxBaseCombo<NSBoxBaseComboOption>>;
|
|
8
|
+
constructor(props: NSBoxComboProps);
|
|
26
9
|
getValue(checkError?: boolean): string | null;
|
|
27
10
|
getValues(): string[];
|
|
28
11
|
setValue(value: string | null, callback?: () => void): void;
|
|
29
12
|
setValues(values: string[], callback?: () => void): void;
|
|
30
|
-
onChange(value: string | null | string[]): void;
|
|
31
|
-
componentDidMount(): void;
|
|
32
13
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
33
14
|
}
|
|
@@ -1,82 +1,52 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
import React, { createRef } from "react";
|
|
13
|
+
import { NSBoxBaseCombo } from "./NSBoxBaseCombo";
|
|
9
14
|
export class NSBoxCombo extends React.Component {
|
|
10
15
|
constructor(props) {
|
|
11
16
|
super(props);
|
|
12
|
-
this.
|
|
13
|
-
value: null,
|
|
14
|
-
values: [],
|
|
15
|
-
};
|
|
17
|
+
this.NSBoxBaseCombo = createRef();
|
|
16
18
|
this.getValues = this.getValues.bind(this);
|
|
17
19
|
this.setValues = this.setValues.bind(this);
|
|
18
20
|
this.setValue = this.setValue.bind(this);
|
|
19
21
|
this.getValue = this.getValue.bind(this);
|
|
20
|
-
this.onChange = this.onChange.bind(this);
|
|
21
|
-
}
|
|
22
|
-
getError(value) {
|
|
23
|
-
return (Validator.getError(this.props.title, value, this.props));
|
|
24
22
|
}
|
|
25
23
|
getValue(checkError = true) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (error) {
|
|
29
|
-
this.setState({ error });
|
|
30
|
-
throw new Error(error);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return this.state.value;
|
|
24
|
+
var _a, _b;
|
|
25
|
+
return (_b = (_a = this.NSBoxBaseCombo.current) === null || _a === void 0 ? void 0 : _a.getValue(checkError)) !== null && _b !== void 0 ? _b : null;
|
|
34
26
|
}
|
|
35
27
|
getValues() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (error) {
|
|
39
|
-
this.setState({ error });
|
|
40
|
-
throw new Error(error);
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
return this.state.values;
|
|
28
|
+
var _a, _b;
|
|
29
|
+
return (_b = (_a = this.NSBoxBaseCombo.current) === null || _a === void 0 ? void 0 : _a.getValues()) !== null && _b !== void 0 ? _b : [];
|
|
44
30
|
}
|
|
45
31
|
setValue(value, callback) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
this.props.onChanged(this, callback);
|
|
49
|
-
else if (callback)
|
|
50
|
-
callback();
|
|
51
|
-
});
|
|
32
|
+
var _a;
|
|
33
|
+
(_a = this.NSBoxBaseCombo.current) === null || _a === void 0 ? void 0 : _a.setValue(value, callback);
|
|
52
34
|
}
|
|
53
35
|
setValues(values, callback) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
this.props.onChanged(this, callback);
|
|
57
|
-
else if (callback)
|
|
58
|
-
callback();
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
onChange(value) {
|
|
62
|
-
if (this.props.multiple)
|
|
63
|
-
this.setValues(value);
|
|
64
|
-
else
|
|
65
|
-
this.setValue(value);
|
|
66
|
-
}
|
|
67
|
-
componentDidMount() {
|
|
68
|
-
if (this.props.defaultValue) {
|
|
69
|
-
let value = this.getValue(false);
|
|
70
|
-
if (!value) {
|
|
71
|
-
this.setState({ value: this.props.defaultValue });
|
|
72
|
-
}
|
|
73
|
-
}
|
|
36
|
+
var _a;
|
|
37
|
+
(_a = this.NSBoxBaseCombo.current) === null || _a === void 0 ? void 0 : _a.setValues(values, callback);
|
|
74
38
|
}
|
|
75
39
|
render() {
|
|
76
|
-
return
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
40
|
+
return _jsx(NSBoxBaseCombo, Object.assign({ ref: this.NSBoxBaseCombo }, this.props, { onChanged: (_, callback) => {
|
|
41
|
+
if (this.props.onChanged)
|
|
42
|
+
this.props.onChanged(this, callback);
|
|
43
|
+
}, onClicked: (_) => {
|
|
44
|
+
if (this.props.onClicked)
|
|
45
|
+
this.props.onClicked(this);
|
|
46
|
+
}, getItems: () => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
let rows = this.props.getOptions();
|
|
48
|
+
return { count: rows.length, rows };
|
|
49
|
+
}), getValue: x => x.value, getTitle: x => x.title }));
|
|
80
50
|
}
|
|
81
51
|
}
|
|
82
52
|
//# sourceMappingURL=NSBoxCombo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxCombo.js","sourceRoot":"","sources":["../../src/components/NSBoxCombo.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"NSBoxCombo.js","sourceRoot":"","sources":["../../src/components/NSBoxCombo.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;AAEb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,cAAc,EAAiD,MAAM,kBAAkB,CAAC;AAOjG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AAC,KAAK,CAAC,SAAS;oBACvB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;YACvC,CAAC,EACD,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;gBAEhB,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;oBACvB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAC7B,CAAC,EACD,QAAQ,EAAE,GAAS,EAAE;gBAEpB,IAAI,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;gBACnC,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC;YACrC,CAAC,CAAA,EACD,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EACtB,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,IACrB,CAAA;IACH,CAAC;CACD"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import "./NSBoxDate.module.css";
|
|
2
3
|
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
3
4
|
import { IValidationProps } from "../props/IValidationProps";
|
|
4
|
-
export interface
|
|
5
|
+
export interface NSBoxDateProps extends IBaseComponentProps, IValidationProps {
|
|
5
6
|
title: string;
|
|
6
7
|
placeholder?: string;
|
|
7
8
|
defaultValue?: string;
|
|
8
9
|
onChanged?: (e: NSBoxDate, callback?: () => void) => void;
|
|
9
10
|
onClicked?: (e: NSBoxDate) => void;
|
|
10
11
|
}
|
|
11
|
-
export interface
|
|
12
|
+
export interface NSBoxDateState {
|
|
12
13
|
value: string;
|
|
13
14
|
error?: string;
|
|
14
15
|
}
|
|
15
|
-
export declare class NSBoxDate extends React.Component<
|
|
16
|
-
constructor(props:
|
|
16
|
+
export declare class NSBoxDate extends React.Component<NSBoxDateProps, NSBoxDateState> {
|
|
17
|
+
constructor(props: NSBoxDateProps);
|
|
17
18
|
getError(): string | null;
|
|
18
19
|
getValue(checkError?: boolean): Date;
|
|
19
20
|
setValue(value: string, callback?: () => void): void;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import "./NSBoxDate.module.css";
|
|
5
|
+
import StylesNSBox from "./NSBox.module.css";
|
|
6
|
+
import { NSLabelErrorNotifier } from "./NSLabelErrorNotifier";
|
|
6
7
|
import { Validator } from "../Validator";
|
|
8
|
+
import { NSMenuButton } from "./NSMenuButton";
|
|
7
9
|
export class NSBoxDate extends React.Component {
|
|
8
10
|
constructor(props) {
|
|
9
11
|
var _a;
|
|
@@ -39,8 +41,13 @@ export class NSBoxDate extends React.Component {
|
|
|
39
41
|
this.setValue(e.target.value);
|
|
40
42
|
}
|
|
41
43
|
render() {
|
|
42
|
-
var _a;
|
|
43
|
-
return (_jsx(_Fragment, { children: _jsxs("div", {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
return (_jsx(_Fragment, { children: _jsxs("div", { className: `${StylesNSBox.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: (_b = this.props.style) !== null && _b !== void 0 ? _b : {}, children: [_jsxs("div", { className: `${StylesNSBox.ns_input_bar}`, children: [_jsxs("span", { className: StylesNSBox.ns_input_title, children: [this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title] }), _jsx(NSMenuButton, { value: this.state.value, setValue: this.setValue, hideFullscreen: true })] }), _jsx("input", { id: this.props.id, name: this.props.name, type: "date", className: StylesNSBox.ns_input, placeholder: this.props.placeholder, value: this.state.value, onChange: this.onChanged, onClick: () => { if (this.props.onClicked)
|
|
46
|
+
this.props.onClicked(this); }, style: {
|
|
47
|
+
background: `url("https://static.namirasoft.com/image/concept/type/date.png") white no-repeat scroll center right 4px`,
|
|
48
|
+
backgroundSize: "24px",
|
|
49
|
+
paddingRight: "8px"
|
|
50
|
+
} }), _jsx(NSLabelErrorNotifier, { error: this.state.error, clearError: () => this.setState({ error: "" }) })] }) }));
|
|
44
51
|
}
|
|
45
52
|
}
|
|
46
53
|
//# sourceMappingURL=NSBoxDate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxDate.js","sourceRoot":"","sources":["../../src/components/NSBoxDate.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"NSBoxDate.js","sourceRoot":"","sources":["../../src/components/NSBoxDate.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,wBAAwB,CAAC;AAChC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAiB9C,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,SAAyC;IAE7E,YAAY,KAAqB;;QAEhC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,YAAY,mCAAI,EAAE,EAAE,CAAC;QACjD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CA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
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
color: #141B5C;
|
|
6
|
-
position: relative;
|
|
7
|
-
max-width: 100%;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.ns_input {
|
|
11
|
-
width: 100%;
|
|
12
|
-
height: 48px;
|
|
13
|
-
border-radius: 8px;
|
|
14
|
-
padding: 10px 12px;
|
|
15
|
-
font-size: 16px;
|
|
16
|
-
font-weight: 400;
|
|
17
|
-
border: 1px solid rgba(0, 0, 0, 1);
|
|
18
|
-
background-color: white;
|
|
19
|
-
position: relative;
|
|
20
|
-
appearance: none;
|
|
21
|
-
-webkit-appearance: none;
|
|
22
|
-
-moz-appearance: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.ns_input:focus-visible {
|
|
26
|
-
border-color: rgba(0, 0, 0, 1) !important;
|
|
27
|
-
outline: solid 1px #4096ff !important;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.ns_input_icon {
|
|
31
|
-
position: absolute;
|
|
32
|
-
right: 20px;
|
|
33
|
-
top: 51%;
|
|
34
|
-
z-index: 1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.ns_input_title {
|
|
38
|
-
font-size: 16px;
|
|
39
|
-
font-weight: 400;
|
|
40
|
-
display: flex;
|
|
41
|
-
flex-direction: row;
|
|
42
|
-
align-items: center;
|
|
43
|
-
gap: 4px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.ns_input::-webkit-calendar-picker-indicator {
|
|
47
|
-
display: block;
|
|
48
|
-
background: url("https://static.namirasoft.com/image/concept/nsbox/date.png") no-repeat;
|
|
49
|
-
background-size: 24px;
|
|
50
|
-
background-position: 90% 35%;
|
|
51
|
-
width: 100%;
|
|
52
|
-
height: 100%;
|
|
53
|
-
position: absolute;
|
|
54
|
-
top: 3px;
|
|
55
|
-
left: 4px;
|
|
56
|
-
cursor: pointer;
|
|
1
|
+
input[type="date"]::-webkit-calendar-picker-indicator {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
opacity: 0;
|
|
4
|
+
padding-right: 0px;
|
|
57
5
|
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import "./NSBoxDateTime.module.css";
|
|
2
3
|
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
3
4
|
import { IValidationProps } from "../props/IValidationProps";
|
|
4
|
-
export interface
|
|
5
|
+
export interface NSBoxDateTimeProps extends IBaseComponentProps, IValidationProps {
|
|
5
6
|
title: string;
|
|
6
7
|
placeholder?: string;
|
|
7
8
|
defaultValue?: string;
|
|
8
9
|
onChanged?: (e: NSBoxDateTime, callback?: () => void) => void;
|
|
9
10
|
onClicked?: (e: NSBoxDateTime) => void;
|
|
10
11
|
}
|
|
11
|
-
export interface
|
|
12
|
+
export interface NSBoxDateTimeState {
|
|
12
13
|
value: string;
|
|
13
14
|
error?: string;
|
|
14
15
|
}
|
|
15
|
-
export declare class NSBoxDateTime extends React.Component<
|
|
16
|
-
constructor(props:
|
|
16
|
+
export declare class NSBoxDateTime extends React.Component<NSBoxDateTimeProps, NSBoxDateTimeState> {
|
|
17
|
+
constructor(props: NSBoxDateTimeProps);
|
|
17
18
|
getError(): string | null;
|
|
18
19
|
getValue(checkError?: boolean): string;
|
|
19
20
|
setValue(value: string, callback?: () => void): void;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
4
|
+
import "./NSBoxDateTime.module.css";
|
|
5
|
+
import StylesNSBox from "./NSBox.module.css";
|
|
6
|
+
import { NSLabelErrorNotifier } from "./NSLabelErrorNotifier";
|
|
7
7
|
import { Validator } from "../Validator";
|
|
8
|
+
import { NSMenuButton } from "./NSMenuButton";
|
|
8
9
|
export class NSBoxDateTime extends React.Component {
|
|
9
10
|
constructor(props) {
|
|
10
11
|
var _a;
|
|
@@ -40,8 +41,13 @@ export class NSBoxDateTime extends React.Component {
|
|
|
40
41
|
this.setValue(e.target.value);
|
|
41
42
|
}
|
|
42
43
|
render() {
|
|
43
|
-
var _a;
|
|
44
|
-
return (_jsx(_Fragment, { children: _jsxs("div", {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
return (_jsx(_Fragment, { children: _jsxs("div", { className: `${StylesNSBox.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: (_b = this.props.style) !== null && _b !== void 0 ? _b : {}, children: [_jsxs("div", { className: `${StylesNSBox.ns_input_bar}`, children: [_jsxs("span", { className: StylesNSBox.ns_input_title, children: [this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title] }), _jsx(NSMenuButton, { value: this.state.value, setValue: this.setValue, hideFullscreen: true })] }), _jsx("input", { id: this.props.id, name: this.props.name, type: "datetime-local", className: StylesNSBox.ns_input, placeholder: this.props.placeholder, value: this.state.value, onChange: this.onChanged, onClick: () => { if (this.props.onClicked)
|
|
46
|
+
this.props.onClicked(this); }, style: {
|
|
47
|
+
background: `url("https://static.namirasoft.com/image/concept/type/date-time.png") white no-repeat scroll center right 4px`,
|
|
48
|
+
backgroundSize: "24px",
|
|
49
|
+
paddingRight: "8px"
|
|
50
|
+
} }), _jsx(NSLabelErrorNotifier, { error: this.state.error, clearError: () => this.setState({ error: "" }) })] }) }));
|
|
45
51
|
}
|
|
46
52
|
}
|
|
47
53
|
//# sourceMappingURL=NSBoxDateTime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxDateTime.js","sourceRoot":"","sources":["../../src/components/NSBoxDateTime.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"NSBoxDateTime.js","sour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C,KAAK,CAAC,EAAE,EACjB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,IAAI,EAAC,gBAAgB,EACrB,SAAS,EAAE,WAAW,CAAC,QAAQ,EAC/B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EACnC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;4BAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EACxE,KAAK,EAAE;4BACN,UAAU,EAAE,+GAA+G;4BAC3H,cAAc,EAAE,MAAM;4BACtB,YAAY,EAAE,KAAK;yBACnB,GACA,EACF,KAAC,oBAAoB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAI,IAC5F,GACJ,CACH,CAAC;IACH,CAAC;CACD"}
|
|
@@ -1,52 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
color: #141B5C;
|
|
6
|
-
position: relative;
|
|
7
|
-
max-width: 100%;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.ns_input {
|
|
11
|
-
width: 100%;
|
|
12
|
-
height: 48px;
|
|
13
|
-
border-radius: 8px;
|
|
14
|
-
padding: 10px 12px;
|
|
15
|
-
font-size: 16px;
|
|
16
|
-
font-weight: 400;
|
|
17
|
-
border: 1px solid rgba(0, 0, 0, 1);
|
|
18
|
-
background-color: white;
|
|
19
|
-
position: relative;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ns_input:focus-visible {
|
|
23
|
-
border-color: rgba(0, 0, 0, 1) !important;
|
|
24
|
-
outline: solid 1px #4096ff !important;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.ns_input_icon {
|
|
28
|
-
position: absolute;
|
|
29
|
-
right: 20px;
|
|
30
|
-
top: 51%;
|
|
31
|
-
z-index: 1;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ns_input_title {
|
|
35
|
-
font-size: 16px;
|
|
36
|
-
font-weight: 400;
|
|
37
|
-
display: flex;
|
|
38
|
-
gap: 4px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.ns_input::-webkit-calendar-picker-indicator {
|
|
42
|
-
display: block;
|
|
43
|
-
background: url("https://static.namirasoft.com/image/concept/nsbox/date-time.png") no-repeat;
|
|
44
|
-
background-size: 24px;
|
|
45
|
-
background-position: 90% 35%;
|
|
46
|
-
width: 100%;
|
|
47
|
-
height: 100%;
|
|
48
|
-
position: absolute;
|
|
49
|
-
top: 3px;
|
|
50
|
-
left: 4px;
|
|
51
|
-
cursor: pointer;
|
|
1
|
+
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
opacity: 0;
|
|
4
|
+
padding-right: 0px;
|
|
52
5
|
}
|
|
@@ -2,19 +2,19 @@ import React from "react";
|
|
|
2
2
|
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
3
3
|
import { IValidationProps } from "../props/IValidationProps";
|
|
4
4
|
import { IValidationNumberProps } from "../props/IValidationNumberProps";
|
|
5
|
-
export interface
|
|
5
|
+
export interface NSBoxDoubleProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps {
|
|
6
6
|
title: string;
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
defaultValue?: number;
|
|
9
9
|
onChanged?: (e: NSBoxDouble, callback?: () => void) => void;
|
|
10
10
|
onClicked?: (e: NSBoxDouble) => void;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface NSBoxDoubleState {
|
|
13
13
|
value?: number;
|
|
14
14
|
error?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare class NSBoxDouble extends React.Component<
|
|
17
|
-
constructor(props:
|
|
16
|
+
export declare class NSBoxDouble extends React.Component<NSBoxDoubleProps, NSBoxDoubleState> {
|
|
17
|
+
constructor(props: NSBoxDoubleProps);
|
|
18
18
|
getError(): string | null;
|
|
19
19
|
getValue(checkError?: boolean): number | undefined;
|
|
20
20
|
setValue(value: number | undefined, callback?: () => void): void;
|