@nu-art/thunderstorm-frontend 0.400.5
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/_ats/ATS_ActionProcessor/ATS_ActionProcessor.d.ts +17 -0
- package/_ats/ATS_ActionProcessor/ATS_ActionProcessor.js +52 -0
- package/_ats/ATS_ActionProcessor/ATS_ActionProcessor.scss +43 -0
- package/_ats/ATS_AppConfigEditor/ATS_AppConfigEditor.d.ts +25 -0
- package/_ats/ATS_AppConfigEditor/ATS_AppConfigEditor.js +88 -0
- package/_ats/ATS_AppConfigEditor/ATS_AppConfigEditor.scss +117 -0
- package/_ats/ATS_CollectionUpgrades/ATS_CollectionUpgrades.d.ts +17 -0
- package/_ats/ATS_CollectionUpgrades/ATS_CollectionUpgrades.js +45 -0
- package/_ats/ATS_CollectionUpgrades/ATS_CollectionUpgrades.scss +24 -0
- package/_ats/ATS_CrudOperations/ATS_CrudOperations.d.ts +29 -0
- package/_ats/ATS_CrudOperations/ATS_CrudOperations.js +93 -0
- package/_ats/ATS_CrudOperations/ATS_CrudOperations.scss +46 -0
- package/_ats/ATS_CrudOperations/ui-components.d.ts +24 -0
- package/_ats/ATS_CrudOperations/ui-components.js +11 -0
- package/_ats/ATS_EditableItem/ATS_EditableItem.d.ts +16 -0
- package/_ats/ATS_EditableItem/ATS_EditableItem.js +48 -0
- package/_ats/ATS_IDBCacheComparison/ATS_IDBCacheComparison.d.ts +18 -0
- package/_ats/ATS_IDBCacheComparison/ATS_IDBCacheComparison.js +28 -0
- package/_ats/ATS_IDBCacheComparison/ATS_IDBCacheComparison.scss +7 -0
- package/_ats/ATS_IDBCacheComparison/Component_CollectionGrid.d.ts +23 -0
- package/_ats/ATS_IDBCacheComparison/Component_CollectionGrid.js +66 -0
- package/_ats/ATS_IDBCacheComparison/Component_CollectionGrid.scss +52 -0
- package/_ats/ATS_IDBCacheComparison/Dialog_IDBCacheComparison.d.ts +17 -0
- package/_ats/ATS_IDBCacheComparison/Dialog_IDBCacheComparison.js +30 -0
- package/_ats/ATS_IDBCacheComparison/Dialog_IDBCacheComparison.scss +25 -0
- package/_ats/ATS_Printables/ATS_AbstractPrintable.d.ts +16 -0
- package/_ats/ATS_Printables/ATS_AbstractPrintable.js +37 -0
- package/_ats/ATS_Printables/ATS_Printable.d.ts +13 -0
- package/_ats/ATS_Printables/ATS_Printable.js +45 -0
- package/_ats/ATS_Printables/ATS_Printable.scss +40 -0
- package/_ats/ATS_ProtoComponent/ATS_ProtoComponent.d.ts +33 -0
- package/_ats/ATS_ProtoComponent/ATS_ProtoComponent.js +80 -0
- package/_ats/ATS_ProtoComponent/ATS_ProtoComponent.scss +19 -0
- package/_ats/ATS_SyncEnv/ATS_SyncEnv.d.ts +51 -0
- package/_ats/ATS_SyncEnv/ATS_SyncEnv.js +215 -0
- package/_ats/ATS_SyncEnv/ATS_SyncEnv.scss +172 -0
- package/_ats/ATS_Toaster/ATS_Toaster.d.ts +23 -0
- package/_ats/ATS_Toaster/ATS_Toaster.js +48 -0
- package/_ats/ATS_Toaster/ATS_Toaster.scss +2 -0
- package/_ats/ATS_Toaster/index.d.ts +1 -0
- package/_ats/ATS_Toaster/index.js +1 -0
- package/_ats/dialogs/Dialog_ActionProcessorConfirmation/Dialog_ActionProcessorConfirmation.d.ts +18 -0
- package/_ats/dialogs/Dialog_ActionProcessorConfirmation/Dialog_ActionProcessorConfirmation.js +41 -0
- package/_ats/dialogs/Dialog_ActionProcessorConfirmation/Dialog_ActionProcessorConfirmation.scss +71 -0
- package/_ats/dialogs/index.d.ts +1 -0
- package/_ats/dialogs/index.js +1 -0
- package/_ats/index.d.ts +8 -0
- package/_ats/index.js +8 -0
- package/_entity/app-config/ModuleFE_AppConfig.d.ts +24 -0
- package/_entity/app-config/ModuleFE_AppConfig.js +52 -0
- package/_entity/app-config/index.d.ts +2 -0
- package/_entity/app-config/index.js +2 -0
- package/_entity/app-config/module-pack.d.ts +1 -0
- package/_entity/app-config/module-pack.js +2 -0
- package/_entity/editable-test/ModuleFE_EditableTest.d.ts +11 -0
- package/_entity/editable-test/ModuleFE_EditableTest.js +12 -0
- package/_entity/editable-test/index.d.ts +2 -0
- package/_entity/editable-test/index.js +2 -0
- package/_entity/editable-test/module-pack.d.ts +1 -0
- package/_entity/editable-test/module-pack.js +2 -0
- package/_entity/editable-test/ui-components.d.ts +37 -0
- package/_entity/editable-test/ui-components.js +21 -0
- package/_entity.d.ts +2 -0
- package/_entity.js +2 -0
- package/_to-refactor/MenuAndButton.d.ts +1 -0
- package/_to-refactor/MenuAndButton.js +87 -0
- package/behavior-functions/index.d.ts +1 -0
- package/behavior-functions/index.js +1 -0
- package/behavior-functions/scroll-into-view.d.ts +6 -0
- package/behavior-functions/scroll-into-view.js +55 -0
- package/component-modules/ModuleFE_Dialog.d.ts +27 -0
- package/component-modules/ModuleFE_Dialog.js +48 -0
- package/component-modules/ModuleFE_Notifications.d.ts +45 -0
- package/component-modules/ModuleFE_Notifications.js +133 -0
- package/component-modules/ModuleFE_Toaster.d.ts +28 -0
- package/component-modules/ModuleFE_Toaster.js +97 -0
- package/component-modules/mouse-interactivity/ModuleFE_MouseInteractivity.d.ts +9 -0
- package/component-modules/mouse-interactivity/ModuleFE_MouseInteractivity.js +35 -0
- package/component-modules/mouse-interactivity/helper-functions.d.ts +108 -0
- package/component-modules/mouse-interactivity/helper-functions.js +339 -0
- package/component-modules/mouse-interactivity/index.d.ts +3 -0
- package/component-modules/mouse-interactivity/index.js +3 -0
- package/component-modules/mouse-interactivity/types.d.ts +37 -0
- package/component-modules/mouse-interactivity/types.js +2 -0
- package/components/ActionButton.d.ts +7 -0
- package/components/ActionButton.js +29 -0
- package/components/AwaitModules/AwaitModules.d.ts +40 -0
- package/components/AwaitModules/AwaitModules.js +95 -0
- package/components/AwaitModules/AwaitModules.scss +53 -0
- package/components/AwaitSync/AwaitSync.d.ts +18 -0
- package/components/AwaitSync/AwaitSync.js +25 -0
- package/components/AwaitSync/AwaitSync.scss +13 -0
- package/components/Button/ATS_Button.d.ts +21 -0
- package/components/Button/ATS_Button.js +66 -0
- package/components/Button/ATS_Button.scss +19 -0
- package/components/Button/Button.d.ts +40 -0
- package/components/Button/Button.js +94 -0
- package/components/Button/Button.scss +151 -0
- package/components/FrameLayout/FrameLayout.d.ts +7 -0
- package/components/FrameLayout/FrameLayout.js +10 -0
- package/components/FrameLayout/FrameLayout.scss +5 -0
- package/components/FrameLayout/index.d.ts +1 -0
- package/components/FrameLayout/index.js +1 -0
- package/components/GenericDropDown/GenericDropDownV3.d.ts +108 -0
- package/components/GenericDropDown/GenericDropDownV3.js +98 -0
- package/components/GenericDropDown/index.d.ts +1 -0
- package/components/GenericDropDown/index.js +1 -0
- package/components/GenericRenderer/Component_GenericRenderer.d.ts +15 -0
- package/components/GenericRenderer/Component_GenericRenderer.js +13 -0
- package/components/HeightBounder.d.ts +11 -0
- package/components/HeightBounder.js +25 -0
- package/components/Label/ATS_Label.d.ts +12 -0
- package/components/Label/ATS_Label.js +34 -0
- package/components/Label/ATS_Label.scss +24 -0
- package/components/Label/Label.d.ts +30 -0
- package/components/Label/Label.js +84 -0
- package/components/Label/Label.scss +89 -0
- package/components/Layouts/Layouts.d.ts +38 -0
- package/components/Layouts/Layouts.js +56 -0
- package/components/Layouts/_Layouts.scss +53 -0
- package/components/Layouts/_Layouts_.scss +69 -0
- package/components/Layouts/index.d.ts +1 -0
- package/components/Layouts/index.js +21 -0
- package/components/Page_ItemsEditor/Page_ItemsEditor.d.ts +66 -0
- package/components/Page_ItemsEditor/Page_ItemsEditor.js +134 -0
- package/components/Page_ItemsEditor/Page_ItemsEditor.scss +104 -0
- package/components/Page_ItemsEditor/defaults/ItemEditor_DefaultFilter/ItemEditor_DefaultFilter.d.ts +16 -0
- package/components/Page_ItemsEditor/defaults/ItemEditor_DefaultFilter/ItemEditor_DefaultFilter.js +15 -0
- package/components/Page_ItemsEditor/defaults/ItemEditor_DefaultFilter/ItemEditor_DefaultFilter.scss +4 -0
- package/components/Page_ItemsEditor/defaults/ItemEditor_DefaultFilter/index.d.ts +1 -0
- package/components/Page_ItemsEditor/defaults/ItemEditor_DefaultFilter/index.js +1 -0
- package/components/Page_ItemsEditor/defaults/ItemEditor_ListRenderer/ItemEditor_DefaultList.d.ts +26 -0
- package/components/Page_ItemsEditor/defaults/ItemEditor_ListRenderer/ItemEditor_DefaultList.js +68 -0
- package/components/Page_ItemsEditor/defaults/ItemEditor_ListRenderer/ItemEditor_DefaultList.scss +4 -0
- package/components/Page_ItemsEditor/defaults/ItemEditor_ListRenderer/index.d.ts +1 -0
- package/components/Page_ItemsEditor/defaults/ItemEditor_ListRenderer/index.js +1 -0
- package/components/Page_ItemsEditor/index.d.ts +1 -0
- package/components/Page_ItemsEditor/index.js +1 -0
- package/components/Page_ItemsEditor/types.d.ts +4 -0
- package/components/Page_ItemsEditor/types.js +1 -0
- package/components/RelativeLayout/RelativeLayout.d.ts +7 -0
- package/components/RelativeLayout/RelativeLayout.js +10 -0
- package/components/RelativeLayout/RelativeLayout.scss +3 -0
- package/components/RelativeLayout/index.d.ts +1 -0
- package/components/RelativeLayout/index.js +1 -0
- package/components/Show.d.ts +20 -0
- package/components/Show.js +30 -0
- package/components/TS_AppTools/TS_AppTools.d.ts +30 -0
- package/components/TS_AppTools/TS_AppTools.js +144 -0
- package/components/TS_AppTools/TS_AppTools.scss +193 -0
- package/components/TS_AppTools/TS_AppTools_Default.d.ts +7 -0
- package/components/TS_AppTools/TS_AppTools_Default.js +16 -0
- package/components/TS_AppTools/index.d.ts +2 -0
- package/components/TS_AppTools/index.js +22 -0
- package/components/TS_AppTools/types.d.ts +19 -0
- package/components/TS_AppTools/types.js +6 -0
- package/components/TS_ButtonGroup/TS_ButtonGroup.d.ts +12 -0
- package/components/TS_ButtonGroup/TS_ButtonGroup.js +94 -0
- package/components/TS_ButtonGroup/TS_ButtonGroup.scss +58 -0
- package/components/TS_ButtonGroup/index.d.ts +2 -0
- package/components/TS_ButtonGroup/index.js +2 -0
- package/components/TS_ButtonGroup/types.d.ts +38 -0
- package/components/TS_ButtonGroup/types.js +1 -0
- package/components/TS_ButtonLoader/TS_ButtonLoader.d.ts +5 -0
- package/components/TS_ButtonLoader/TS_ButtonLoader.js +8 -0
- package/components/TS_ButtonLoader/TS_ButtonLoader.scss +63 -0
- package/components/TS_ButtonLoader/index.d.ts +1 -0
- package/components/TS_ButtonLoader/index.js +1 -0
- package/components/TS_Card/TS_Card.d.ts +7 -0
- package/components/TS_Card/TS_Card.js +14 -0
- package/components/TS_Card/TS_Card.scss +7 -0
- package/components/TS_Card/index.d.ts +1 -0
- package/components/TS_Card/index.js +1 -0
- package/components/TS_Checkbox/ATS_CheckboxV2.d.ts +3 -0
- package/components/TS_Checkbox/ATS_CheckboxV2.js +30 -0
- package/components/TS_Checkbox/ATS_CheckboxV2.scss +4 -0
- package/components/TS_Checkbox/TS_Checkbox.d.ts +48 -0
- package/components/TS_Checkbox/TS_Checkbox.js +46 -0
- package/components/TS_Checkbox/TS_Checkbox.scss +62 -0
- package/components/TS_Checkbox/TS_CheckboxV2.d.ts +37 -0
- package/components/TS_Checkbox/TS_CheckboxV2.js +53 -0
- package/components/TS_Checkbox/TS_CheckboxV2.scss +97 -0
- package/components/TS_Checkbox/index.d.ts +1 -0
- package/components/TS_Checkbox/index.js +21 -0
- package/components/TS_CheckboxGroup/ATS_CheckboxGroup.d.ts +19 -0
- package/components/TS_CheckboxGroup/ATS_CheckboxGroup.js +89 -0
- package/components/TS_CheckboxGroup/ATS_CheckboxGroup.scss +6 -0
- package/components/TS_CheckboxGroup/TS_CheckboxGroup.d.ts +35 -0
- package/components/TS_CheckboxGroup/TS_CheckboxGroup.js +47 -0
- package/components/TS_CheckboxGroup/TS_CheckboxGroup.scss +32 -0
- package/components/TS_CheckboxGroup/index.d.ts +1 -0
- package/components/TS_CheckboxGroup/index.js +1 -0
- package/components/TS_CollapsableContainer/TS_CollapsableContainer.d.ts +44 -0
- package/components/TS_CollapsableContainer/TS_CollapsableContainer.js +80 -0
- package/components/TS_CollapsableContainer/TS_CollapsableContainer.scss +47 -0
- package/components/TS_CollapsableContainer/index.d.ts +1 -0
- package/components/TS_CollapsableContainer/index.js +1 -0
- package/components/TS_CollapsableContainerV2/TS_CollapsableContainerV2.d.ts +36 -0
- package/components/TS_CollapsableContainerV2/TS_CollapsableContainerV2.js +46 -0
- package/components/TS_CollapsableContainerV2/TS_CollapsableContainerV2.scss +66 -0
- package/components/TS_CollapsableContainerV2/ats.d.ts +3 -0
- package/components/TS_CollapsableContainerV2/ats.js +39 -0
- package/components/TS_CollapsableContainerV2/ats.scss +35 -0
- package/components/TS_CollapsableContainerV2/index.d.ts +2 -0
- package/components/TS_CollapsableContainerV2/index.js +2 -0
- package/components/TS_ComponentTransition/TS_ComponentTransition.d.ts +25 -0
- package/components/TS_ComponentTransition/TS_ComponentTransition.js +65 -0
- package/components/TS_ComponentTransition/index.d.ts +1 -0
- package/components/TS_ComponentTransition/index.js +1 -0
- package/components/TS_CopyToClipboard/TS_CopyToClipboard.d.ts +4 -0
- package/components/TS_CopyToClipboard/TS_CopyToClipboard.js +11 -0
- package/components/TS_CopyToClipboard/index.d.ts +1 -0
- package/components/TS_CopyToClipboard/index.js +21 -0
- package/components/TS_Dialog/TS_Dialog.d.ts +89 -0
- package/components/TS_Dialog/TS_Dialog.js +140 -0
- package/components/TS_Dialog/TS_Dialog.scss +116 -0
- package/components/TS_Dialog/TS_DialogOverlay.d.ts +15 -0
- package/components/TS_Dialog/TS_DialogOverlay.js +48 -0
- package/components/TS_Dialog/TS_DialogOverlay.scss +41 -0
- package/components/TS_Dialog/TS_SimpleDialog.d.ts +21 -0
- package/components/TS_Dialog/TS_SimpleDialog.js +37 -0
- package/components/TS_Dialog/TS_SimpleDialog.scss +5 -0
- package/components/TS_Dialog/TS_SimpleDialogue.d.ts +28 -0
- package/components/TS_Dialog/TS_SimpleDialogue.js +38 -0
- package/components/TS_Dialog/index.d.ts +2 -0
- package/components/TS_Dialog/index.js +22 -0
- package/components/TS_DragAndDrop/TS_DragAndDrop.d.ts +48 -0
- package/components/TS_DragAndDrop/TS_DragAndDrop.js +105 -0
- package/components/TS_DragAndDrop/TS_DragAndDrop.scss +61 -0
- package/components/TS_DragAndDrop/index.d.ts +1 -0
- package/components/TS_DragAndDrop/index.js +21 -0
- package/components/TS_Dropdown/TS_DropDown.d.ts +120 -0
- package/components/TS_Dropdown/TS_DropDown.js +332 -0
- package/components/TS_Dropdown/TS_DropDown.scss +134 -0
- package/components/TS_Dropdown/index.d.ts +1 -0
- package/components/TS_Dropdown/index.js +21 -0
- package/components/TS_EditableContent/TS_EditableContent.d.ts +19 -0
- package/components/TS_EditableContent/TS_EditableContent.js +32 -0
- package/components/TS_EditableContent/types.d.ts +4 -0
- package/components/TS_EditableContent/types.js +1 -0
- package/components/TS_EditableItemComponent/TS_EditableItemComponent.d.ts +23 -0
- package/components/TS_EditableItemComponent/TS_EditableItemComponent.js +47 -0
- package/components/TS_EditableItemController/TS_EditableItemController.d.ts +36 -0
- package/components/TS_EditableItemController/TS_EditableItemController.js +54 -0
- package/components/TS_EditableItemController/TS_EditableItemController.scss +3 -0
- package/components/TS_EditableItemController/index.d.ts +1 -0
- package/components/TS_EditableItemController/index.js +1 -0
- package/components/TS_EditableItemControllerProto/TS_EditableItemControllerProto.d.ts +32 -0
- package/components/TS_EditableItemControllerProto/TS_EditableItemControllerProto.js +53 -0
- package/components/TS_EditableItemControllerProto/TS_EditableItemControllerProto.scss +3 -0
- package/components/TS_EditableItemControllerProto/index.d.ts +1 -0
- package/components/TS_EditableItemControllerProto/index.js +1 -0
- package/components/TS_EditableItemStatus/TS_EditableItemStatus.d.ts +20 -0
- package/components/TS_EditableItemStatus/TS_EditableItemStatus.js +34 -0
- package/components/TS_EditableText/TS_EditableText.d.ts +57 -0
- package/components/TS_EditableText/TS_EditableText.js +100 -0
- package/components/TS_EditableText/TS_EditableText.scss +90 -0
- package/components/TS_EditableText/index.d.ts +1 -0
- package/components/TS_EditableText/index.js +1 -0
- package/components/TS_ErrorBoundary/TS_ErrorBoundary.d.ts +54 -0
- package/components/TS_ErrorBoundary/TS_ErrorBoundary.js +103 -0
- package/components/TS_ErrorBoundary/TS_ErrorBoundary.scss +95 -0
- package/components/TS_ErrorBoundary/index.d.ts +1 -0
- package/components/TS_ErrorBoundary/index.js +21 -0
- package/components/TS_Form/TS_Form.d.ts +9 -0
- package/components/TS_Form/TS_Form.js +11 -0
- package/components/TS_Form/TS_Form.scss +0 -0
- package/components/TS_Form/consts.d.ts +1 -0
- package/components/TS_Form/consts.js +1 -0
- package/components/TS_Form/index.d.ts +3 -0
- package/components/TS_Form/index.js +3 -0
- package/components/TS_Form/types.d.ts +13 -0
- package/components/TS_Form/types.js +1 -0
- package/components/TS_GridTableProto/TS_GridTableProto.d.ts +18 -0
- package/components/TS_GridTableProto/TS_GridTableProto.js +22 -0
- package/components/TS_GridTableProto/TS_GridTableProto.scss +4 -0
- package/components/TS_GridTableProto/index.d.ts +1 -0
- package/components/TS_GridTableProto/index.js +1 -0
- package/components/TS_Input/ATS_TextArea.d.ts +14 -0
- package/components/TS_Input/ATS_TextArea.js +24 -0
- package/components/TS_Input/ATS_TextArea.scss +24 -0
- package/components/TS_Input/TS_BaseInput.d.ts +44 -0
- package/components/TS_Input/TS_BaseInput.js +47 -0
- package/components/TS_Input/TS_Input.d.ts +24 -0
- package/components/TS_Input/TS_Input.js +53 -0
- package/components/TS_Input/TS_Input.scss +64 -0
- package/components/TS_Input/TS_TextArea.d.ts +14 -0
- package/components/TS_Input/TS_TextArea.js +72 -0
- package/components/TS_Input/TS_TextArea.scss +41 -0
- package/components/TS_Input/index.d.ts +4 -0
- package/components/TS_Input/index.js +25 -0
- package/components/TS_JSONViewer/TS_JSONViewer.d.ts +18 -0
- package/components/TS_JSONViewer/TS_JSONViewer.js +64 -0
- package/components/TS_JSONViewer/TS_JSONViewer.scss +87 -0
- package/components/TS_JSONViewer/types.d.ts +10 -0
- package/components/TS_JSONViewer/types.js +1 -0
- package/components/TS_Link/TS_Link.d.ts +15 -0
- package/components/TS_Link/TS_Link.js +36 -0
- package/components/TS_Link/TS_Link.scss +32 -0
- package/components/TS_Link/index.d.ts +1 -0
- package/components/TS_Link/index.js +21 -0
- package/components/TS_ListOrganizer/TS_ListOrganizer.d.ts +33 -0
- package/components/TS_ListOrganizer/TS_ListOrganizer.js +64 -0
- package/components/TS_ListOrganizer/TS_ListOrganizer.scss +37 -0
- package/components/TS_ListOrganizer/index.d.ts +1 -0
- package/components/TS_ListOrganizer/index.js +21 -0
- package/components/TS_Loader/TS_Loader.d.ts +6 -0
- package/components/TS_Loader/TS_Loader.js +9 -0
- package/components/TS_Loader/TS_Loader.scss +71 -0
- package/components/TS_Loader/index.d.ts +1 -0
- package/components/TS_Loader/index.js +1 -0
- package/components/TS_MemoryMonitor/TS_MemoryMonitor.d.ts +10 -0
- package/components/TS_MemoryMonitor/TS_MemoryMonitor.js +48 -0
- package/components/TS_MemoryMonitor/TS_MemoryMonitor.scss +31 -0
- package/components/TS_MemoryMonitor/index.d.ts +1 -0
- package/components/TS_MemoryMonitor/index.js +21 -0
- package/components/TS_MouseInteractivity/TS_PopUp/TS_PopUp.d.ts +9 -0
- package/components/TS_MouseInteractivity/TS_PopUp/TS_PopUp.js +28 -0
- package/components/TS_MouseInteractivity/TS_PopUp/TS_PopUp.scss +53 -0
- package/components/TS_MouseInteractivity/TS_Tooltip/TS_ToolTip.d.ts +12 -0
- package/components/TS_MouseInteractivity/TS_Tooltip/TS_ToolTip.js +65 -0
- package/components/TS_MouseInteractivity/TS_Tooltip/TS_ToolTip.scss +46 -0
- package/components/TS_MouseInteractivity/base/TS_MouseInteractivity.d.ts +18 -0
- package/components/TS_MouseInteractivity/base/TS_MouseInteractivity.js +100 -0
- package/components/TS_MouseInteractivity/index.d.ts +2 -0
- package/components/TS_MouseInteractivity/index.js +22 -0
- package/components/TS_MultiSelect/TS_MultiSelect.scss +34 -0
- package/components/TS_MultiSelect/TS_MultiSelect_V2.d.ts +36 -0
- package/components/TS_MultiSelect/TS_MultiSelect_V2.js +41 -0
- package/components/TS_MultiSelect/index.d.ts +1 -0
- package/components/TS_MultiSelect/index.js +21 -0
- package/components/TS_Notifications/TS_Notifications.d.ts +22 -0
- package/components/TS_Notifications/TS_Notifications.js +96 -0
- package/components/TS_Notifications/TS_Notifications.scss +120 -0
- package/components/TS_Notifications/genericNotificationAction.d.ts +8 -0
- package/components/TS_Notifications/genericNotificationAction.js +16 -0
- package/components/TS_Notifications/index.d.ts +2 -0
- package/components/TS_Notifications/index.js +2 -0
- package/components/TS_Overlay/TS_Overlay.d.ts +12 -0
- package/components/TS_Overlay/TS_Overlay.js +32 -0
- package/components/TS_Overlay/TS_Overlay.scss +41 -0
- package/components/TS_Overlay/index.d.ts +1 -0
- package/components/TS_Overlay/index.js +21 -0
- package/components/TS_Printable/TS_Printable.d.ts +13 -0
- package/components/TS_Printable/TS_Printable.js +20 -0
- package/components/TS_Printable/TS_Printable.scss +47 -0
- package/components/TS_Printable/index.d.ts +1 -0
- package/components/TS_Printable/index.js +21 -0
- package/components/TS_ProgressBar/TS_ProgressBar.d.ts +22 -0
- package/components/TS_ProgressBar/TS_ProgressBar.js +47 -0
- package/components/TS_ProgressBar/TS_ProgressBar.scss +79 -0
- package/components/TS_ProgressBar/index.d.ts +1 -0
- package/components/TS_ProgressBar/index.js +1 -0
- package/components/TS_PropRenderer/TS_PropRenderer.d.ts +18 -0
- package/components/TS_PropRenderer/TS_PropRenderer.js +36 -0
- package/components/TS_PropRenderer/TS_PropRenderer.scss +19 -0
- package/components/TS_PropRenderer/index.d.ts +1 -0
- package/components/TS_PropRenderer/index.js +1 -0
- package/components/TS_Radio/TS_Radio.d.ts +34 -0
- package/components/TS_Radio/TS_Radio.js +49 -0
- package/components/TS_Radio/TS_Radio.scss +68 -0
- package/components/TS_Radio/index.d.ts +1 -0
- package/components/TS_Radio/index.js +1 -0
- package/components/TS_ReadMore/TS_ReadMore.d.ts +26 -0
- package/components/TS_ReadMore/TS_ReadMore.js +86 -0
- package/components/TS_ReadMore/TS_ReadMore.scss +36 -0
- package/components/TS_ReadMore/index.d.ts +1 -0
- package/components/TS_ReadMore/index.js +1 -0
- package/components/TS_Slider/TS_Slider.d.ts +26 -0
- package/components/TS_Slider/TS_Slider.js +42 -0
- package/components/TS_Slider/TS_Slider.scss +68 -0
- package/components/TS_Slider/index.d.ts +1 -0
- package/components/TS_Slider/index.js +1 -0
- package/components/TS_Space/TS_Space.d.ts +8 -0
- package/components/TS_Space/TS_Space.js +8 -0
- package/components/TS_Space/index.d.ts +1 -0
- package/components/TS_Space/index.js +1 -0
- package/components/TS_Space/ts-space.scss +3 -0
- package/components/TS_Table/TS_Table.d.ts +42 -0
- package/components/TS_Table/TS_Table.js +74 -0
- package/components/TS_Table/TS_Table.scss +51 -0
- package/components/TS_Table/index.d.ts +1 -0
- package/components/TS_Table/index.js +21 -0
- package/components/TS_Tabs/TS_Tabs.d.ts +55 -0
- package/components/TS_Tabs/TS_Tabs.js +102 -0
- package/components/TS_Tabs/TS_Tabs.scss +103 -0
- package/components/TS_Tabs/index.d.ts +1 -0
- package/components/TS_Tabs/index.js +21 -0
- package/components/TS_Toaster/TS_Toast.d.ts +5 -0
- package/components/TS_Toaster/TS_Toast.js +9 -0
- package/components/TS_Toaster/TS_Toast.scss +80 -0
- package/components/TS_Toaster/TS_ToastOverlay.d.ts +16 -0
- package/components/TS_Toaster/TS_ToastOverlay.js +26 -0
- package/components/TS_Toaster/TS_ToastOverlay.scss +33 -0
- package/components/TS_Toaster/index.d.ts +2 -0
- package/components/TS_Toaster/index.js +22 -0
- package/components/TS_Toggle/ATS_Toggle.d.ts +11 -0
- package/components/TS_Toggle/ATS_Toggle.js +18 -0
- package/components/TS_Toggle/TS_Toggle.d.ts +21 -0
- package/components/TS_Toggle/TS_Toggle.js +26 -0
- package/components/TS_Toggle/TS_Toggle.scss +56 -0
- package/components/TS_Toggle/index.d.ts +2 -0
- package/components/TS_Toggle/index.js +2 -0
- package/components/TS_Toggler/TS_Toggler.d.ts +23 -0
- package/components/TS_Toggler/TS_Toggler.js +50 -0
- package/components/TS_Toggler/TS_Toggler.scss +83 -0
- package/components/TS_Toggler/index.d.ts +1 -0
- package/components/TS_Toggler/index.js +1 -0
- package/components/TS_Tree/SimpleTreeNodeRenderer.d.ts +9 -0
- package/components/TS_Tree/SimpleTreeNodeRenderer.js +53 -0
- package/components/TS_Tree/TS_Tree.d.ts +68 -0
- package/components/TS_Tree/TS_Tree.js +174 -0
- package/components/TS_Tree/TS_Tree.scss +44 -0
- package/components/TS_Tree/index.d.ts +3 -0
- package/components/TS_Tree/index.js +23 -0
- package/components/TS_Tree/types.d.ts +4 -0
- package/components/TS_Tree/types.js +21 -0
- package/components/TS_V2_Input/TS_InputV2.d.ts +93 -0
- package/components/TS_V2_Input/TS_InputV2.js +220 -0
- package/components/TS_V2_Input/index.d.ts +1 -0
- package/components/TS_V2_Input/index.js +21 -0
- package/components/TS_V2_TextArea/TS_BaseInput.d.ts +42 -0
- package/components/TS_V2_TextArea/TS_BaseInput.js +46 -0
- package/components/TS_V2_TextArea/TS_TextAreaV2.d.ts +78 -0
- package/components/TS_V2_TextArea/TS_TextAreaV2.js +178 -0
- package/components/TS_V2_TextArea/TS_TextAreaV2.scss +49 -0
- package/components/TS_V2_TextArea/index.d.ts +2 -0
- package/components/TS_V2_TextArea/index.js +22 -0
- package/components/TS_VirtualizedList/TS_VirtualizedList.d.ts +14 -0
- package/components/TS_VirtualizedList/TS_VirtualizedList.js +22 -0
- package/components/TS_VirtualizedList/index.d.ts +1 -0
- package/components/TS_VirtualizedList/index.js +1 -0
- package/components/Video/Video.d.ts +16 -0
- package/components/Video/Video.js +40 -0
- package/components/Video/VideoDialog.d.ts +20 -0
- package/components/Video/VideoDialog.js +44 -0
- package/components/Video/VideoDialog.scss +31 -0
- package/components/Video/types.d.ts +20 -0
- package/components/Video/types.js +1 -0
- package/components/_TS_MultiSelect/DBItemDropDownMultiSelector.d.ts +57 -0
- package/components/_TS_MultiSelect/DBItemDropDownMultiSelector.js +63 -0
- package/components/adapter/Adapter.d.ts +139 -0
- package/components/adapter/Adapter.js +259 -0
- package/components/adapter/BaseRenderer.d.ts +24 -0
- package/components/adapter/BaseRenderer.js +31 -0
- package/components/ats-group.d.ts +2 -0
- package/components/ats-group.js +14 -0
- package/components/form/Form.d.ts +24 -0
- package/components/form/Form.js +34 -0
- package/components/form/types.d.ts +23 -0
- package/components/form/types.js +21 -0
- package/components/formv3/FormV3.d.ts +25 -0
- package/components/formv3/FormV3.js +23 -0
- package/components/formv3/types.d.ts +29 -0
- package/components/formv3/types.js +1 -0
- package/components/treeicons.d.ts +10 -0
- package/components/treeicons.js +3 -0
- package/components/types.d.ts +23 -0
- package/components/types.js +22 -0
- package/components/utils.d.ts +1 -0
- package/components/utils.js +7 -0
- package/consts.d.ts +2 -0
- package/consts.js +2 -0
- package/core/AppPage.d.ts +11 -0
- package/core/AppPage.js +52 -0
- package/core/AppPageV2.d.ts +9 -0
- package/core/AppPageV2.js +53 -0
- package/core/AppWrapper.d.ts +4 -0
- package/core/AppWrapper.js +34 -0
- package/core/ComponentAsync.d.ts +16 -0
- package/core/ComponentAsync.js +64 -0
- package/core/ComponentBase.d.ts +28 -0
- package/core/ComponentBase.js +152 -0
- package/core/ComponentSync.d.ts +13 -0
- package/core/ComponentSync.js +49 -0
- package/core/Controller.d.ts +13 -0
- package/core/Controller.js +28 -0
- package/core/IndexedDB.d.ts +42 -0
- package/core/IndexedDB.js +259 -0
- package/core/IndexedDBV3.d.ts +43 -0
- package/core/IndexedDBV3.js +259 -0
- package/core/IndexedDBV4/IndexedDB_Database.d.ts +20 -0
- package/core/IndexedDBV4/IndexedDB_Database.js +268 -0
- package/core/IndexedDBV4/IndexedDB_Store.d.ts +34 -0
- package/core/IndexedDBV4/IndexedDB_Store.js +207 -0
- package/core/IndexedDBV4/ModuleFE_IDBManager.d.ts +11 -0
- package/core/IndexedDBV4/ModuleFE_IDBManager.js +19 -0
- package/core/IndexedDBV4/types.d.ts +16 -0
- package/core/IndexedDBV4/types.js +1 -0
- package/core/SimpleScriptInjector.d.ts +13 -0
- package/core/SimpleScriptInjector.js +42 -0
- package/core/Thunder.d.ts +37 -0
- package/core/Thunder.js +139 -0
- package/core/ThunderstormDefaultApp.d.ts +12 -0
- package/core/ThunderstormDefaultApp.js +29 -0
- package/core/consts.d.ts +6 -0
- package/core/consts.js +2 -0
- package/core/db-api-gen/consts.d.ts +22 -0
- package/core/db-api-gen/consts.js +25 -0
- package/core/db-api-gen/db-def.d.ts +9 -0
- package/core/db-api-gen/db-def.js +16 -0
- package/core/db-api-gen/types.d.ts +23 -0
- package/core/db-api-gen/types.js +3 -0
- package/core/proto-component/ProtoComponent.d.ts +57 -0
- package/core/proto-component/ProtoComponent.js +73 -0
- package/core/proto-component/UrlState.d.ts +42 -0
- package/core/proto-component/UrlState.js +59 -0
- package/core/proto-component/index.d.ts +2 -0
- package/core/proto-component/index.js +2 -0
- package/core/proto-component/types.d.ts +25 -0
- package/core/proto-component/types.js +15 -0
- package/core/thunder-dispatcher.d.ts +13 -0
- package/core/thunder-dispatcher.js +69 -0
- package/core/thunder-helpers.d.ts +7 -0
- package/core/thunder-helpers.js +171 -0
- package/core/thunder-modulepack.d.ts +3 -0
- package/core/thunder-modulepack.js +34 -0
- package/core/typed-api.d.ts +6 -0
- package/core/typed-api.js +41 -0
- package/core/types.d.ts +6 -0
- package/core/types.js +1 -0
- package/editable-item.d.ts +7 -0
- package/editable-item.js +7 -0
- package/index.d.ts +112 -0
- package/index.js +134 -0
- package/modules/ModuleFE_BaseTheme.d.ts +18 -0
- package/modules/ModuleFE_BaseTheme.js +27 -0
- package/modules/ModuleFE_BroadcastChannel/ModuleFE_BroadcastChannel.d.ts +20 -0
- package/modules/ModuleFE_BroadcastChannel/ModuleFE_BroadcastChannel.js +66 -0
- package/modules/ModuleFE_BrowserHistory.d.ts +46 -0
- package/modules/ModuleFE_BrowserHistory.js +165 -0
- package/modules/ModuleFE_BrowserHistoryV2.d.ts +43 -0
- package/modules/ModuleFE_BrowserHistoryV2.js +113 -0
- package/modules/ModuleFE_CSVParser.d.ts +12 -0
- package/modules/ModuleFE_CSVParser.js +52 -0
- package/modules/ModuleFE_CollectionActions.d.ts +10 -0
- package/modules/ModuleFE_CollectionActions.js +18 -0
- package/modules/ModuleFE_ConnectivityModule.d.ts +15 -0
- package/modules/ModuleFE_ConnectivityModule.js +31 -0
- package/modules/ModuleFE_ForceUpgrade.d.ts +20 -0
- package/modules/ModuleFE_ForceUpgrade.js +54 -0
- package/modules/ModuleFE_LocalStorage.d.ts +46 -0
- package/modules/ModuleFE_LocalStorage.js +179 -0
- package/modules/ModuleFE_Locale.d.ts +44 -0
- package/modules/ModuleFE_Locale.js +83 -0
- package/modules/ModuleFE_Print.d.ts +16 -0
- package/modules/ModuleFE_Print.js +116 -0
- package/modules/ModuleFE_StorageCleaner.d.ts +17 -0
- package/modules/ModuleFE_StorageCleaner.js +90 -0
- package/modules/ModuleFE_Thunderstorm.d.ts +31 -0
- package/modules/ModuleFE_Thunderstorm.js +122 -0
- package/modules/ModuleFE_Utils/ModuleFE_Utils.d.ts +29 -0
- package/modules/ModuleFE_Utils/ModuleFE_Utils.js +43 -0
- package/modules/ModuleFE_Window.d.ts +19 -0
- package/modules/ModuleFE_Window.js +42 -0
- package/modules/ModuleFE_WindowMessenger.d.ts +62 -0
- package/modules/ModuleFE_WindowMessenger.js +128 -0
- package/modules/action-processor/ModuleFE_ActionProcessor.d.ts +9 -0
- package/modules/action-processor/ModuleFE_ActionProcessor.js +14 -0
- package/modules/archiving/ModuleFE_Archiving.d.ts +8 -0
- package/modules/archiving/ModuleFE_Archiving.js +15 -0
- package/modules/clearWebsiteDataDispatcher.d.ts +5 -0
- package/modules/clearWebsiteDataDispatcher.js +2 -0
- package/modules/component-loader/ReactEntryComponentInjector.d.ts +23 -0
- package/modules/component-loader/ReactEntryComponentInjector.js +59 -0
- package/modules/component-loader/entry-component-loading-module.d.ts +7 -0
- package/modules/component-loader/entry-component-loading-module.js +52 -0
- package/modules/component-loader/index.d.ts +2 -0
- package/modules/component-loader/index.js +2 -0
- package/modules/db-api-gen/ModuleFE_BaseApi.d.ts +45 -0
- package/modules/db-api-gen/ModuleFE_BaseApi.js +152 -0
- package/modules/db-api-gen/ModuleFE_BaseDB.d.ts +146 -0
- package/modules/db-api-gen/ModuleFE_BaseDB.js +433 -0
- package/modules/db-api-gen/types.d.ts +13 -0
- package/modules/db-api-gen/types.js +6 -0
- package/modules/http/ModuleFE_XHR.d.ts +20 -0
- package/modules/http/ModuleFE_XHR.js +175 -0
- package/modules/routing/LocationChangeListener.d.ts +6 -0
- package/modules/routing/LocationChangeListener.js +15 -0
- package/modules/routing/ModuleFE_Routing.d.ts +30 -0
- package/modules/routing/ModuleFE_Routing.js +122 -0
- package/modules/routing/ModuleFE_RoutingV2.d.ts +25 -0
- package/modules/routing/ModuleFE_RoutingV2.js +143 -0
- package/modules/routing/index.d.ts +5 -0
- package/modules/routing/index.js +5 -0
- package/modules/routing/route.d.ts +22 -0
- package/modules/routing/route.js +83 -0
- package/modules/routing/types.d.ts +20 -0
- package/modules/routing/types.js +1 -0
- package/modules/sync-env/ModuleFE_SyncEnvV2.d.ts +8 -0
- package/modules/sync-env/ModuleFE_SyncEnvV2.js +18 -0
- package/modules/sync-manager/ModuleFE_SyncManager.d.ts +59 -0
- package/modules/sync-manager/ModuleFE_SyncManager.js +378 -0
- package/modules/sync-manager/ModuleFE_SyncManager_CSV.d.ts +11 -0
- package/modules/sync-manager/ModuleFE_SyncManager_CSV.js +121 -0
- package/package.json +107 -0
- package/server-info/Button_VersionUpdate.d.ts +15 -0
- package/server-info/Button_VersionUpdate.js +29 -0
- package/server-info/Button_VersionUpdate.scss +29 -0
- package/server-info/ModuleFE_ServerInfo.d.ts +26 -0
- package/server-info/ModuleFE_ServerInfo.js +73 -0
- package/server-info/index.d.ts +2 -0
- package/server-info/index.js +2 -0
- package/shared.d.ts +1 -0
- package/shared.js +21 -0
- package/styles/declaration/basic.scss +155 -0
- package/styles/declaration/mixins.scss +58 -0
- package/styles/impl/basic.scss +141 -0
- package/styles/impl/icons.scss +34 -0
- package/styles.scss +40 -0
- package/utils/EditableItem.d.ts +240 -0
- package/utils/EditableItem.js +552 -0
- package/utils/console/LogClient_ConsoleInterceptor.d.ts +5 -0
- package/utils/console/LogClient_ConsoleInterceptor.js +70 -0
- package/utils/perform-action/genereteToasts.d.ts +3 -0
- package/utils/perform-action/genereteToasts.js +14 -0
- package/utils/perform-action/index.d.ts +2 -0
- package/utils/perform-action/index.js +2 -0
- package/utils/perform-action/notification-dispatchers.d.ts +6 -0
- package/utils/perform-action/notification-dispatchers.js +2 -0
- package/utils/perform-action/performAction.d.ts +34 -0
- package/utils/perform-action/performAction.js +77 -0
- package/utils/perform-action/resolve-dependency-toast/ResolveDependencyToast.d.ts +8 -0
- package/utils/perform-action/resolve-dependency-toast/ResolveDependencyToast.js +11 -0
- package/utils/perform-action/resolve-dependency-toast/ResolveDependencyToast.scss +12 -0
- package/utils/tools.d.ts +31 -0
- package/utils/tools.js +138 -0
- package/utils/types.d.ts +3 -0
- package/utils/types.js +1 -0
- package/widgets/FieldEditor.d.ts +29 -0
- package/widgets/FieldEditor.js +47 -0
- package/widgets/FieldEditorClick.d.ts +33 -0
- package/widgets/FieldEditorClick.js +49 -0
- package/widgets/FieldEditorWithButtons.d.ts +32 -0
- package/widgets/FieldEditorWithButtons.js +42 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import './ATS_SyncEnv.scss';
|
|
2
|
+
import { TypedMap } from '@nu-art/ts-common';
|
|
3
|
+
import { AppToolsScreen } from '../../components/TS_AppTools/index.js';
|
|
4
|
+
import { Response_FetchBackupMetadata } from '@nu-art/thunderstorm-shared';
|
|
5
|
+
import { ComponentSync } from '../../core/ComponentSync.js';
|
|
6
|
+
declare const Environments: readonly ["prod", "staging", "dev", "local"];
|
|
7
|
+
type Env = typeof Environments[number];
|
|
8
|
+
declare const ChunkSizes: readonly [2000, 1000, 500, 200, 100, 50];
|
|
9
|
+
type ChunkSize = typeof ChunkSizes[number];
|
|
10
|
+
type ModuleMetadata = {
|
|
11
|
+
local?: boolean;
|
|
12
|
+
remote?: boolean;
|
|
13
|
+
backup?: boolean;
|
|
14
|
+
};
|
|
15
|
+
type State = {
|
|
16
|
+
selectedEnv?: Env;
|
|
17
|
+
selectedChunkSize?: ChunkSize;
|
|
18
|
+
backupId?: string;
|
|
19
|
+
selectedModules: Set<string>;
|
|
20
|
+
moduleList: TypedMap<ModuleMetadata>;
|
|
21
|
+
searchFilter: string;
|
|
22
|
+
restoreTime?: string;
|
|
23
|
+
backingUpInProgress?: boolean;
|
|
24
|
+
fetchMetadataInProgress?: boolean;
|
|
25
|
+
metadata?: Response_FetchBackupMetadata;
|
|
26
|
+
cleanSync: boolean;
|
|
27
|
+
};
|
|
28
|
+
export declare class ATS_SyncEnvironment extends ComponentSync<{}, State> {
|
|
29
|
+
static screen: AppToolsScreen;
|
|
30
|
+
protected deriveStateFromProps(nextProps: {}, state: State): State;
|
|
31
|
+
private fetchMetadata;
|
|
32
|
+
private syncEnv;
|
|
33
|
+
private syncFirebase;
|
|
34
|
+
private createNewBackup;
|
|
35
|
+
private canSync;
|
|
36
|
+
private getCollectionModuleList;
|
|
37
|
+
private allModulesSelected;
|
|
38
|
+
private setBackupId;
|
|
39
|
+
private setEnv;
|
|
40
|
+
private setChunkSize;
|
|
41
|
+
private toggleSelectAll;
|
|
42
|
+
private toggleSelectedModule;
|
|
43
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
private renderHeader;
|
|
45
|
+
private renderMenu;
|
|
46
|
+
private renderOperations;
|
|
47
|
+
private renderStatus;
|
|
48
|
+
private renderBackupModules;
|
|
49
|
+
private renderModule;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import './ATS_SyncEnv.scss';
|
|
3
|
+
import { _keys, filterKeys, RuntimeModules, tsValidateResult, tsValidateUniqueId } from '@nu-art/ts-common';
|
|
4
|
+
import { ATS_Fullstack, TS_AppTools } from '../../components/TS_AppTools/index.js';
|
|
5
|
+
import { genericNotificationAction } from '../../components/TS_Notifications/index.js';
|
|
6
|
+
import { ModuleFE_SyncEnvV2 } from '../../modules/sync-env/ModuleFE_SyncEnvV2.js';
|
|
7
|
+
import { LL_H_C, LL_V_L } from '../../components/Layouts/index.js';
|
|
8
|
+
import { TS_Checkbox } from '../../components/TS_Checkbox/index.js';
|
|
9
|
+
import { TS_Input } from '../../components/TS_Input/index.js';
|
|
10
|
+
import { ComponentSync } from '../../core/ComponentSync.js';
|
|
11
|
+
import { Thunder } from '../../core/Thunder.js';
|
|
12
|
+
import { TS_PropRenderer } from '../../components/TS_PropRenderer/index.js';
|
|
13
|
+
import { SimpleListAdapter } from '../../components/adapter/Adapter.js';
|
|
14
|
+
import { TS_DropDown } from '../../components/TS_Dropdown/index.js';
|
|
15
|
+
import { _className } from '../../utils/tools.js';
|
|
16
|
+
import { StorageKey } from '../../modules/ModuleFE_LocalStorage.js';
|
|
17
|
+
import { ModuleFE_SyncManager } from '../../modules/sync-manager/ModuleFE_SyncManager.js';
|
|
18
|
+
import { Button } from '../../components/Button/Button.js';
|
|
19
|
+
const Environments = ['prod', 'staging', 'dev', 'local'];
|
|
20
|
+
const ChunkSizes = [2000, 1000, 500, 200, 100, 50];
|
|
21
|
+
const StorageKey_BackupId = new StorageKey('sync-env--backup-id');
|
|
22
|
+
const StorageKey_Env = new StorageKey('sync-env--env');
|
|
23
|
+
const StorageKey_ChunkSize = new StorageKey('sync-env--chunk-size');
|
|
24
|
+
export class ATS_SyncEnvironment extends ComponentSync {
|
|
25
|
+
static screen = {
|
|
26
|
+
name: 'Sync Environment',
|
|
27
|
+
key: 'sync-environment',
|
|
28
|
+
renderer: this,
|
|
29
|
+
group: ATS_Fullstack
|
|
30
|
+
};
|
|
31
|
+
// ######################## Life Cycle ########################
|
|
32
|
+
deriveStateFromProps(nextProps, state) {
|
|
33
|
+
//Set Initials
|
|
34
|
+
state.selectedModules ??= new Set();
|
|
35
|
+
state.selectedChunkSize ??= StorageKey_ChunkSize.get(100);
|
|
36
|
+
state.selectedEnv ??= StorageKey_Env.get('prod');
|
|
37
|
+
state.backupId ??= StorageKey_BackupId.get();
|
|
38
|
+
//Add local module data
|
|
39
|
+
state.moduleList = this.getCollectionModuleList().reduce((toRet, name) => {
|
|
40
|
+
toRet[name] = { local: true };
|
|
41
|
+
return toRet;
|
|
42
|
+
}, {});
|
|
43
|
+
if (state.metadata) {
|
|
44
|
+
state.metadata.collectionsData.forEach(moduleData => {
|
|
45
|
+
state.moduleList[moduleData.dbKey] = { ...state.moduleList[moduleData.dbKey], backup: true };
|
|
46
|
+
});
|
|
47
|
+
state.metadata.remoteCollectionNames.forEach(moduleName => {
|
|
48
|
+
state.moduleList[moduleName] = { ...state.moduleList[moduleName], remote: true };
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return state;
|
|
52
|
+
}
|
|
53
|
+
// ######################## Logic ########################
|
|
54
|
+
fetchMetadata = async () => {
|
|
55
|
+
if (!this.state.backupId?.length)
|
|
56
|
+
return;
|
|
57
|
+
if (!this.state.selectedEnv)
|
|
58
|
+
return;
|
|
59
|
+
this.setState({ fetchMetadataInProgress: true });
|
|
60
|
+
try {
|
|
61
|
+
await genericNotificationAction(async () => {
|
|
62
|
+
const metadata = await ModuleFE_SyncEnvV2.vv1.fetchBackupMetadata({
|
|
63
|
+
env: this.state.selectedEnv,
|
|
64
|
+
backupId: this.state.backupId,
|
|
65
|
+
}).executeSync();
|
|
66
|
+
this.reDeriveState({ metadata: metadata });
|
|
67
|
+
}, 'Fetching backup metadata');
|
|
68
|
+
}
|
|
69
|
+
catch (err) {
|
|
70
|
+
this.logError(err);
|
|
71
|
+
}
|
|
72
|
+
this.setState({ fetchMetadataInProgress: false });
|
|
73
|
+
};
|
|
74
|
+
syncEnv = async () => {
|
|
75
|
+
if (!this.canSync())
|
|
76
|
+
return;
|
|
77
|
+
const start = performance.now();
|
|
78
|
+
ModuleFE_SyncManager.stopListening();
|
|
79
|
+
await genericNotificationAction(async () => {
|
|
80
|
+
try {
|
|
81
|
+
await ModuleFE_SyncEnvV2.vv1.syncFromEnvBackup(filterKeys({
|
|
82
|
+
env: this.state.selectedEnv,
|
|
83
|
+
backupId: this.state.backupId,
|
|
84
|
+
chunkSize: this.state.selectedChunkSize,
|
|
85
|
+
selectedModules: Array.from(this.state.selectedModules),
|
|
86
|
+
cleanSync: this.state.cleanSync,
|
|
87
|
+
}, 'selectedModules')).executeSync();
|
|
88
|
+
}
|
|
89
|
+
catch (err) {
|
|
90
|
+
this.logError(err);
|
|
91
|
+
}
|
|
92
|
+
finally {
|
|
93
|
+
ModuleFE_SyncManager.startListening();
|
|
94
|
+
}
|
|
95
|
+
}, 'Syncing Env');
|
|
96
|
+
const end = performance.now();
|
|
97
|
+
this.setState({ restoreTime: `${((end - start) / 1000).toFixed(3)} seconds` });
|
|
98
|
+
};
|
|
99
|
+
syncFirebase = async () => {
|
|
100
|
+
if (!this.canSync())
|
|
101
|
+
return;
|
|
102
|
+
await genericNotificationAction(async () => {
|
|
103
|
+
await ModuleFE_SyncEnvV2.vv1.syncFirebaseFromBackup({
|
|
104
|
+
env: this.state.selectedEnv,
|
|
105
|
+
backupId: this.state.backupId
|
|
106
|
+
}).executeSync();
|
|
107
|
+
}, 'Syncing Firebase');
|
|
108
|
+
};
|
|
109
|
+
createNewBackup = async () => {
|
|
110
|
+
return genericNotificationAction(async () => {
|
|
111
|
+
this.setState({ backingUpInProgress: true }, async () => {
|
|
112
|
+
const toRet = await ModuleFE_SyncEnvV2.vv1.createBackup({}).executeSync();
|
|
113
|
+
this.setState({ backingUpInProgress: false });
|
|
114
|
+
return toRet;
|
|
115
|
+
});
|
|
116
|
+
}, 'Create Backup');
|
|
117
|
+
};
|
|
118
|
+
canSync = () => {
|
|
119
|
+
return !!this.state.selectedEnv && !!this.state.backupId;
|
|
120
|
+
};
|
|
121
|
+
getCollectionModuleList() {
|
|
122
|
+
//the moduleKey in ModuleBE_BaseDB's config is taken from collection's name.
|
|
123
|
+
return (RuntimeModules().filter((module) => !!module.dbDef?.dbKey)).map(_module => _module.dbDef.dbKey).sort();
|
|
124
|
+
}
|
|
125
|
+
allModulesSelected = () => {
|
|
126
|
+
return this.state.selectedModules.size === _keys(this.state.moduleList).length;
|
|
127
|
+
};
|
|
128
|
+
// ######################## Set Data
|
|
129
|
+
setBackupId = (id) => {
|
|
130
|
+
this.setState({ backupId: id }, () => {
|
|
131
|
+
if (!id)
|
|
132
|
+
return StorageKey_BackupId.delete();
|
|
133
|
+
StorageKey_BackupId.set(id);
|
|
134
|
+
if (tsValidateResult(this.state.backupId, tsValidateUniqueId)) //Don't fetch metadata if id doesn't fit
|
|
135
|
+
return;
|
|
136
|
+
return this.fetchMetadata();
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
setEnv = (env) => {
|
|
140
|
+
this.setState({ selectedEnv: env }, () => {
|
|
141
|
+
if (!env)
|
|
142
|
+
return StorageKey_Env.delete();
|
|
143
|
+
StorageKey_Env.set(env);
|
|
144
|
+
this.fetchMetadata();
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
setChunkSize = (size) => {
|
|
148
|
+
this.setState({ selectedChunkSize: size });
|
|
149
|
+
if (size)
|
|
150
|
+
return this.fetchMetadata();
|
|
151
|
+
};
|
|
152
|
+
toggleSelectAll = () => {
|
|
153
|
+
const selectedLength = this.state.selectedModules.size;
|
|
154
|
+
const allModules = _keys(this.state.moduleList);
|
|
155
|
+
//All are selected, clear all modules
|
|
156
|
+
if (selectedLength === allModules.length)
|
|
157
|
+
return this.setState({ selectedModules: new Set() });
|
|
158
|
+
//Some or none of the modules are selected, select all
|
|
159
|
+
this.setState({ selectedModules: new Set(allModules) });
|
|
160
|
+
};
|
|
161
|
+
toggleSelectedModule = (moduleName) => {
|
|
162
|
+
if (this.state.selectedModules.has(moduleName))
|
|
163
|
+
this.state.selectedModules.delete(moduleName);
|
|
164
|
+
else
|
|
165
|
+
this.state.selectedModules.add(moduleName);
|
|
166
|
+
this.forceUpdate();
|
|
167
|
+
};
|
|
168
|
+
// ######################## Render ########################
|
|
169
|
+
render() {
|
|
170
|
+
return _jsxs(LL_V_L, { className: 'sync-env-page', children: [this.renderHeader(), this.renderMenu(), this.renderBackupModules()] });
|
|
171
|
+
}
|
|
172
|
+
renderHeader = () => {
|
|
173
|
+
return TS_AppTools.renderPageHeader('Sync Environment V2');
|
|
174
|
+
};
|
|
175
|
+
renderMenu = () => {
|
|
176
|
+
const envAdapter = SimpleListAdapter([...Environments], item => _jsx("div", { className: 'node-data', children: item.item }));
|
|
177
|
+
const chunkSizesAdapter = SimpleListAdapter([...ChunkSizes], item => _jsx("div", { className: 'node-data', children: item.item }));
|
|
178
|
+
return _jsxs(LL_V_L, { className: 'sync-env-page__menu', children: [_jsxs(LL_H_C, { className: 'sync-env-page__menu__row', children: [_jsx(TS_PropRenderer.Vertical, { label: 'Environment', children: _jsx(TS_DropDown, { placeholder: 'Select Environment', className: 'fancy', adapter: envAdapter, onSelected: this.setEnv, selected: this.state.selectedEnv, canUnselect: true }) }), _jsx(TS_PropRenderer.Vertical, { label: 'Chunk Size', children: _jsx(TS_DropDown, { placeholder: 'Chunk Size', className: 'fancy', adapter: chunkSizesAdapter, onSelected: this.setChunkSize, selected: this.state.selectedChunkSize, canUnselect: true }) }), this.renderOperations()] }), _jsxs(LL_H_C, { className: 'sync-env-page__menu__row', children: [_jsx(TS_PropRenderer.Vertical, { label: 'Backup ID', children: _jsx(TS_Input, { className: _className(!tsValidateResult(this.state.backupId, tsValidateUniqueId) ? 'valid-id' : 'invalid-id'), type: 'text', value: this.state.backupId, onBlur: this.setBackupId }) }), _jsx(TS_PropRenderer.Vertical, { label: 'Collection Filter', children: _jsx(TS_Input, { onChange: val => this.setState({ searchFilter: val }), type: 'text', placeholder: 'search collection' }) }), this.renderStatus(), this.state.restoreTime && _jsx("div", { children: this.state.restoreTime })] })] });
|
|
179
|
+
};
|
|
180
|
+
renderOperations = () => {
|
|
181
|
+
return _jsx(TS_PropRenderer.Vertical, { label: 'Operations', children: _jsxs(LL_H_C, { className: 'sync-env-page__operations', children: [_jsx(Button, { onClick: this.createNewBackup, children: "Trigger Backup" }), _jsx(Button, { onClick: this.syncEnv, disabled: !this.canSync(), children: "Sync Environment" }), Thunder.getInstance().getConfig().name?.toLowerCase() === this.state.selectedEnv && _jsx(Button, { onClick: this.syncFirebase, disabled: !this.canSync(), className: 'deter-users-from-this-button', children: "Restore Firebase To Older Backup" }), _jsx(TS_Checkbox, { checked: this.state.cleanSync, onCheck: (value) => {
|
|
182
|
+
this.setState({ cleanSync: value });
|
|
183
|
+
}, children: "Clean Sync" })] }) });
|
|
184
|
+
};
|
|
185
|
+
renderStatus = () => {
|
|
186
|
+
const style = {
|
|
187
|
+
'--color': '#000',
|
|
188
|
+
'--color-faded': '#0008',
|
|
189
|
+
};
|
|
190
|
+
if (this.state.fetchMetadataInProgress)
|
|
191
|
+
return _jsxs(LL_H_C, { className: 'sync-env-page__status', children: ["Fetching Metadata", _jsxs("span", { style: style, className: 'three-dot-loader', children: [_jsx("span", {}), _jsx("span", {}), _jsx("span", {})] })] });
|
|
192
|
+
if (this.state.backingUpInProgress)
|
|
193
|
+
return _jsxs(LL_H_C, { className: 'sync-env-page__status', children: ["Backup In Progress", _jsxs("span", { style: style, className: 'three-dot-loader', children: [_jsx("span", {}), _jsx("span", {}), _jsx("span", {})] })] });
|
|
194
|
+
};
|
|
195
|
+
renderBackupModules = () => {
|
|
196
|
+
if (!this.canSync())
|
|
197
|
+
return;
|
|
198
|
+
return _jsx(_Fragment, { children: _jsxs(LL_V_L, { className: 'sync-env_modules-list-v2', children: [_jsx(LL_H_C, { className: 'utils', children: _jsx(TS_Checkbox, { checked: this.allModulesSelected(), onCheck: this.toggleSelectAll, children: "Select All" }) }), _keys(this.state.moduleList).map(this.renderModule)] }) });
|
|
199
|
+
};
|
|
200
|
+
renderModule = (moduleName) => {
|
|
201
|
+
const collectionMetadata = this.state.metadata?.collectionsData.find(collection => collection.dbKey === moduleName);
|
|
202
|
+
if ((this.state.searchFilter && this.state.searchFilter.length) && !moduleName.includes(this.state.searchFilter))
|
|
203
|
+
return;
|
|
204
|
+
const relevantLocalModules = RuntimeModules().filter((module) => {
|
|
205
|
+
return (!!module.getCollectionName && module.getCollectionName() == collectionMetadata?.dbKey);
|
|
206
|
+
});
|
|
207
|
+
const localCount = relevantLocalModules.length === 1 && relevantLocalModules[0] ? relevantLocalModules[0].cache._array.length : 0;
|
|
208
|
+
const diffCount = collectionMetadata?.numOfDocs !== undefined ? collectionMetadata.numOfDocs - localCount : undefined;
|
|
209
|
+
const diffShow = diffCount !== 0 ? diffCount : undefined;
|
|
210
|
+
return _jsx(TS_PropRenderer.Horizontal, { label: _jsxs(LL_H_C, { className: 'header', children: [_jsx(TS_Checkbox, { checked: this.state.selectedModules.has(moduleName), onCheck: () => this.toggleSelectedModule(moduleName) }), _jsx("div", { children: moduleName })] }), children: _jsxs(LL_H_C, { className: 'collection-row', children: [_jsxs(LL_H_C, { className: 'backup-info', children: [diffShow !== undefined &&
|
|
211
|
+
_jsx("div", { className: _className(diffShow > 0 ? 'higher' : 'lower'), children: `${diffShow > 0 ? '+' : ''}${diffShow}` }), _jsx("div", { children: collectionMetadata?.numOfDocs !== undefined ? collectionMetadata?.numOfDocs : '--' }), "|", _jsx("div", { className: 'left-row', children: collectionMetadata?.version || '--' })] }), _jsx("div", { style: { fontFamily: 'monospace' }, children: `${this.state.moduleList[moduleName].local ? 'L' : '-'}${this.state.moduleList[moduleName].remote
|
|
212
|
+
? 'R'
|
|
213
|
+
: '-'}${this.state.moduleList[moduleName].backup ? 'B' : '-'}` })] }) }, moduleName);
|
|
214
|
+
};
|
|
215
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
@use '@nu-art/ts-styles' as S;
|
|
2
|
+
|
|
3
|
+
.sync-env-page {
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
|
|
7
|
+
.ts-input {
|
|
8
|
+
width: 300px;
|
|
9
|
+
background: white;
|
|
10
|
+
border: 2px solid black;
|
|
11
|
+
border-radius: 10px;
|
|
12
|
+
font: {
|
|
13
|
+
size: 14px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.invalid-id {
|
|
17
|
+
background-color: rgba(255, 52, 52, 0.5);
|
|
18
|
+
background-blend-mode: multiply;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.valid-id {
|
|
22
|
+
background-color: rgba(142, 255, 98, 0.5);
|
|
23
|
+
background-blend-mode: multiply;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ts-busy-button {
|
|
28
|
+
padding: 8px 16px;
|
|
29
|
+
margin: 0;
|
|
30
|
+
@include S.mouse-interactive-background(S.dark-blue(2), S.dark-blue(1));
|
|
31
|
+
|
|
32
|
+
&.ts-busy-button__disabled {
|
|
33
|
+
background: S.dark-blue(2);
|
|
34
|
+
opacity: 0.5;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.deter-users-from-this-button {
|
|
38
|
+
background: #FF2222;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.three-dot-loader {
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
gap: 5px;
|
|
45
|
+
translate: 0 -3px;
|
|
46
|
+
|
|
47
|
+
& > span {
|
|
48
|
+
width: 5px;
|
|
49
|
+
aspect-ratio: 1/1;
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
background: var(--color-faded);
|
|
52
|
+
animation: ThreeDotLoader 1.5s ease-out infinite;
|
|
53
|
+
|
|
54
|
+
&:nth-child(2) {
|
|
55
|
+
animation-delay: 0.5s;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:last-child {
|
|
59
|
+
animation-delay: 1s;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.sync-env-page__menu {
|
|
65
|
+
padding: 0 16px;
|
|
66
|
+
align-items: flex-end;
|
|
67
|
+
gap: 10px;
|
|
68
|
+
|
|
69
|
+
.ts-prop-renderer {
|
|
70
|
+
width: unset;
|
|
71
|
+
|
|
72
|
+
.ts-dropdown {
|
|
73
|
+
width: 145px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ts-prop-renderer__error {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.sync-env-page__menu__row {
|
|
82
|
+
width: 100%;
|
|
83
|
+
gap: 10px;
|
|
84
|
+
align-items: flex-end;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.sync-env-page__operations {
|
|
88
|
+
gap: 10px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.sync-env-page__status {
|
|
92
|
+
align-items: flex-end;
|
|
93
|
+
gap: 4px;
|
|
94
|
+
font: {
|
|
95
|
+
size: 14px;
|
|
96
|
+
style: italic;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.sync-env_modules-list-v2 {
|
|
102
|
+
flex-grow: 1;
|
|
103
|
+
row-gap: 5px;
|
|
104
|
+
column-gap: 25px;
|
|
105
|
+
margin-top: 10px;
|
|
106
|
+
padding: 0 10px 10px 10px;
|
|
107
|
+
flex-wrap: wrap;
|
|
108
|
+
height: 0;
|
|
109
|
+
|
|
110
|
+
.utils {
|
|
111
|
+
width: 500px;
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
align-items: flex-end;
|
|
114
|
+
|
|
115
|
+
.ts-checkbox {
|
|
116
|
+
gap: 5px;
|
|
117
|
+
|
|
118
|
+
.ts-checkbox__content {
|
|
119
|
+
margin-inline-start: 0;
|
|
120
|
+
font-size: 1rem;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.ts-prop-renderer {
|
|
126
|
+
justify-content: space-between;
|
|
127
|
+
width: 500px;
|
|
128
|
+
|
|
129
|
+
.ts-prop-renderer__label {
|
|
130
|
+
color: #121212;
|
|
131
|
+
font-weight: normal;
|
|
132
|
+
|
|
133
|
+
.header {
|
|
134
|
+
gap: 5px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.collection-row {
|
|
139
|
+
.backup-info {
|
|
140
|
+
gap: 3px;
|
|
141
|
+
|
|
142
|
+
.higher {
|
|
143
|
+
color: darkgreen;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.lower {
|
|
147
|
+
color: red;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
div {
|
|
151
|
+
min-width: 50px;
|
|
152
|
+
text-align: right;
|
|
153
|
+
|
|
154
|
+
&.left-row {
|
|
155
|
+
text-align: center;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@keyframes ThreeDotLoader {
|
|
165
|
+
0%, 50%, 100% {
|
|
166
|
+
background: var(--color-faded);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
25% {
|
|
170
|
+
background: var(--color);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AppToolsScreen } from '../../components/TS_AppTools/index.js';
|
|
2
|
+
import { ComponentSync } from '../../core/ComponentSync.js';
|
|
3
|
+
type ATS_Toaster_Props = {};
|
|
4
|
+
type ATS_Toaster_State = {};
|
|
5
|
+
export declare class ATS_Toaster extends ComponentSync<ATS_Toaster_Props, ATS_Toaster_State> {
|
|
6
|
+
static screen: AppToolsScreen;
|
|
7
|
+
static defaultProps: {
|
|
8
|
+
modules: never[];
|
|
9
|
+
pageTitle: () => string;
|
|
10
|
+
};
|
|
11
|
+
protected deriveStateFromProps(nextProps: ATS_Toaster_Props, state?: ATS_Toaster_State): ATS_Toaster_State;
|
|
12
|
+
constructor(p: ATS_Toaster_Props);
|
|
13
|
+
showAppToasterSuccessExample: () => void;
|
|
14
|
+
showToastForVeryLongTime: () => void;
|
|
15
|
+
showAppToasterErrorExample: () => void;
|
|
16
|
+
showAppToasterInfoExample: () => void;
|
|
17
|
+
showAppToasterCustomInfoExample: () => void;
|
|
18
|
+
showAppToasterCustomErrorExample: () => void;
|
|
19
|
+
showAppToasterCustomSuccessExample: () => void;
|
|
20
|
+
showAppToasterLiveDocsExample: () => void;
|
|
21
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { ModuleFE_Toaster, ToastBuilder } from '../../component-modules/ModuleFE_Toaster.js';
|
|
3
|
+
import { TS_Toast } from '../../components/TS_Toaster/index.js';
|
|
4
|
+
import { ATS_Frontend } from '../../components/TS_AppTools/index.js';
|
|
5
|
+
import { LL_V_L } from '../../components/Layouts/index.js';
|
|
6
|
+
import { Minute } from '@nu-art/ts-common';
|
|
7
|
+
import { ComponentSync } from '../../core/ComponentSync.js';
|
|
8
|
+
export class ATS_Toaster extends ComponentSync {
|
|
9
|
+
static screen = { name: `Toaster`, group: ATS_Frontend, renderer: this };
|
|
10
|
+
static defaultProps = {
|
|
11
|
+
modules: [],
|
|
12
|
+
pageTitle: () => this.screen.name
|
|
13
|
+
};
|
|
14
|
+
deriveStateFromProps(nextProps, state = {}) {
|
|
15
|
+
return state;
|
|
16
|
+
}
|
|
17
|
+
constructor(p) {
|
|
18
|
+
super(p);
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
}
|
|
21
|
+
showAppToasterSuccessExample = () => {
|
|
22
|
+
ModuleFE_Toaster.toastSuccess('Simple success message');
|
|
23
|
+
};
|
|
24
|
+
showToastForVeryLongTime = () => {
|
|
25
|
+
ModuleFE_Toaster.toastSuccess('Simple success message', 6 * Minute);
|
|
26
|
+
};
|
|
27
|
+
showAppToasterErrorExample = () => {
|
|
28
|
+
ModuleFE_Toaster.toastError('Simple error message');
|
|
29
|
+
};
|
|
30
|
+
showAppToasterInfoExample = () => {
|
|
31
|
+
ModuleFE_Toaster.toastInfo('Simple info message');
|
|
32
|
+
};
|
|
33
|
+
showAppToasterCustomInfoExample = () => {
|
|
34
|
+
ModuleFE_Toaster.toastInfo('Custom info message closes in 3 sec', 3000);
|
|
35
|
+
};
|
|
36
|
+
showAppToasterCustomErrorExample = () => {
|
|
37
|
+
ModuleFE_Toaster.toastError('Custom Error message closes in 8 sec', 8000);
|
|
38
|
+
};
|
|
39
|
+
showAppToasterCustomSuccessExample = () => {
|
|
40
|
+
new ToastBuilder().setContent(TS_Toast('is a very nice!', 'success')).show();
|
|
41
|
+
};
|
|
42
|
+
showAppToasterLiveDocsExample = () => {
|
|
43
|
+
new ToastBuilder().setContent(TS_Toast('you spin me right \'round, baby, right \'round', 'success')).show();
|
|
44
|
+
};
|
|
45
|
+
render() {
|
|
46
|
+
return _jsxs(_Fragment, { children: [_jsxs(LL_V_L, { children: [_jsx("button", { style: { marginRight: 8 }, onClick: this.showAppToasterSuccessExample, children: "Toaster Default Success Example" }), _jsx("button", { style: { marginRight: 8 }, onClick: this.showAppToasterErrorExample, children: "Toaster Default Failure Example" }), _jsx("button", { style: { marginRight: 8 }, onClick: this.showAppToasterInfoExample, children: "Toaster Default Info Example" }), _jsx("button", { style: { marginRight: 8 }, onClick: this.showAppToasterLiveDocsExample, children: "Toaster Default Live Docs Example" })] }), _jsx("hr", {}), _jsxs(LL_V_L, { children: [_jsx("button", { style: { marginRight: 8 }, onClick: this.showToastForVeryLongTime, children: "Toaster for ever" }), _jsx("button", { style: { marginRight: 8 }, onClick: this.showAppToasterCustomSuccessExample, children: "Toaster Custom Success Example" }), _jsx("button", { style: { marginRight: 8 }, onClick: this.showAppToasterCustomErrorExample, children: "Toaster Custom Failure Example" }), _jsx("button", { style: { marginRight: 8 }, onClick: this.showAppToasterCustomInfoExample, children: "Toaster Custom Info Example" })] })] });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ATS_Toaster.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ATS_Toaster.js';
|
package/_ats/dialogs/Dialog_ActionProcessorConfirmation/Dialog_ActionProcessorConfirmation.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ActionMetaData } from '@nu-art/thunderstorm-shared/action-processor/index';
|
|
2
|
+
import { ComponentSync } from '../../../core/ComponentSync.js';
|
|
3
|
+
import './Dialog_ActionProcessorConfirmation.scss';
|
|
4
|
+
type Props = {
|
|
5
|
+
action: ActionMetaData;
|
|
6
|
+
onExecute: () => (void | Promise<void>);
|
|
7
|
+
};
|
|
8
|
+
export declare class Dialog_ActionProcessorConfirmation extends ComponentSync<Props> {
|
|
9
|
+
static show(action: ActionMetaData, onExecute: () => (void | Promise<void>)): void;
|
|
10
|
+
protected deriveStateFromProps(nextProps: Props, state?: Partial<any> | undefined): void;
|
|
11
|
+
private closeDialog;
|
|
12
|
+
private executeAction;
|
|
13
|
+
private renderHeader;
|
|
14
|
+
private renderMain;
|
|
15
|
+
private renderButtons;
|
|
16
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { functionThatReturnsTrue } from '@nu-art/ts-common';
|
|
3
|
+
import { ComponentSync } from '../../../core/ComponentSync.js';
|
|
4
|
+
import { TS_Icons } from '@nu-art/ts-styles';
|
|
5
|
+
import './Dialog_ActionProcessorConfirmation.scss';
|
|
6
|
+
import { ModuleFE_Dialog } from '../../../component-modules/ModuleFE_Dialog.js';
|
|
7
|
+
import { LL_H_C, LL_V_L } from '../../../components/Layouts/index.js';
|
|
8
|
+
import { Button } from '../../../components/Button/Button.js';
|
|
9
|
+
export class Dialog_ActionProcessorConfirmation extends ComponentSync {
|
|
10
|
+
// ######################### Static #########################
|
|
11
|
+
static show(action, onExecute) {
|
|
12
|
+
ModuleFE_Dialog.show({
|
|
13
|
+
content: _jsx(Dialog_ActionProcessorConfirmation, { action: action, onExecute: onExecute }),
|
|
14
|
+
closeOverlayOnClick: functionThatReturnsTrue
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
// ######################### Life Cycle #########################
|
|
18
|
+
deriveStateFromProps(nextProps, state) {
|
|
19
|
+
}
|
|
20
|
+
// ######################### Logic #########################
|
|
21
|
+
closeDialog = () => {
|
|
22
|
+
ModuleFE_Dialog.close(true);
|
|
23
|
+
};
|
|
24
|
+
executeAction = () => {
|
|
25
|
+
this.props.onExecute();
|
|
26
|
+
this.closeDialog();
|
|
27
|
+
};
|
|
28
|
+
// ######################### Render #########################
|
|
29
|
+
renderHeader = () => {
|
|
30
|
+
return _jsx(LL_H_C, { className: 'dialog__header', children: _jsx("div", { className: 'dialog__header__title', children: "Refactoring Action Conformation" }) });
|
|
31
|
+
};
|
|
32
|
+
renderMain = () => {
|
|
33
|
+
return _jsxs(LL_H_C, { className: 'dialog__main', children: [_jsx(TS_Icons.information.component, { className: 'dialog__main__warning-icon' }), _jsxs(LL_V_L, { className: 'dialog__main__warning', children: [_jsx("div", { className: 'dialog__main__warning__title', children: "Action Description" }), _jsx("div", { className: 'dialog__main__warning__text', children: this.props.action.description })] })] });
|
|
34
|
+
};
|
|
35
|
+
renderButtons = () => {
|
|
36
|
+
return _jsxs(LL_H_C, { className: 'dialog__buttons', children: [_jsx(Button, { onClick: this.closeDialog, children: "Cancel" }), _jsx(Button, { onClick: this.executeAction, children: "Execute" })] });
|
|
37
|
+
};
|
|
38
|
+
render() {
|
|
39
|
+
return _jsxs(LL_V_L, { className: 'dialog-refactoring-action-conformation', children: [this.renderHeader(), this.renderMain(), this.renderButtons()] });
|
|
40
|
+
}
|
|
41
|
+
}
|
package/_ats/dialogs/Dialog_ActionProcessorConfirmation/Dialog_ActionProcessorConfirmation.scss
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@use '@nu-art/ts-styles' as styles;
|
|
2
|
+
|
|
3
|
+
.dialog-refactoring-action-conformation {
|
|
4
|
+
width: 640px;
|
|
5
|
+
height: 270px;
|
|
6
|
+
background: styles.gray(6);
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
-webkit-box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.5);
|
|
10
|
+
box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.5);
|
|
11
|
+
border: 4px solid styles.gray(3);
|
|
12
|
+
|
|
13
|
+
.dialog__header {
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 50px;
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
background: styles.gray(3);
|
|
18
|
+
|
|
19
|
+
padding: 0 8px;
|
|
20
|
+
|
|
21
|
+
.dialog__header__title {
|
|
22
|
+
color: white;
|
|
23
|
+
font: {
|
|
24
|
+
size: 20px;
|
|
25
|
+
weight: bold;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dialog__main {
|
|
31
|
+
flex-grow: 1;
|
|
32
|
+
width: 100%;
|
|
33
|
+
justify-content: flex-start;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: 16px;
|
|
36
|
+
padding: 32px;
|
|
37
|
+
|
|
38
|
+
.dialog__main__warning-icon {
|
|
39
|
+
width: 60px;
|
|
40
|
+
height: 60px;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dialog__main__warning {
|
|
45
|
+
flex-grow: 1;
|
|
46
|
+
gap: 4px;
|
|
47
|
+
|
|
48
|
+
.dialog__main__warning__title {
|
|
49
|
+
text-decoration: underline;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dialog__main__warning__text {
|
|
53
|
+
width: 100%;
|
|
54
|
+
white-space: pre-wrap;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.dialog__buttons {
|
|
60
|
+
height: 50px;
|
|
61
|
+
width: 100%;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: flex-end;
|
|
64
|
+
gap: 16px;
|
|
65
|
+
padding: 0 16px;
|
|
66
|
+
|
|
67
|
+
.ts-button {
|
|
68
|
+
margin: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dialog_ActionProcessorConfirmation/Dialog_ActionProcessorConfirmation.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dialog_ActionProcessorConfirmation/Dialog_ActionProcessorConfirmation.js';
|
package/_ats/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './ATS_ActionProcessor/ATS_ActionProcessor.js';
|
|
2
|
+
export * from './ATS_CollectionUpgrades/ATS_CollectionUpgrades.js';
|
|
3
|
+
export * from './ATS_SyncEnv/ATS_SyncEnv.js';
|
|
4
|
+
export * from './ATS_ProtoComponent/ATS_ProtoComponent.js';
|
|
5
|
+
export * from './ATS_IDBCacheComparison/Component_CollectionGrid.js';
|
|
6
|
+
export * from './ATS_IDBCacheComparison/Dialog_IDBCacheComparison.js';
|
|
7
|
+
export * from './ATS_AppConfigEditor/ATS_AppConfigEditor.js';
|
|
8
|
+
export * from './ATS_CrudOperations/ATS_CrudOperations.js';
|