@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,89 @@
|
|
|
1
|
+
@use '@nu-art/ts-styles' as styles;
|
|
2
|
+
|
|
3
|
+
.ts-label {
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
.ts-label__content {
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&.truncate-active {
|
|
11
|
+
.ts-label__content {
|
|
12
|
+
@include styles.text-ellipsis;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.tooltip-active {
|
|
17
|
+
//Tooltip arrow
|
|
18
|
+
&::before {
|
|
19
|
+
content: "";
|
|
20
|
+
position: absolute;
|
|
21
|
+
left: 50%;
|
|
22
|
+
bottom: 100%;
|
|
23
|
+
transform: translateX(-50%) translateY(10px);
|
|
24
|
+
border-width: 6px;
|
|
25
|
+
border-style: solid;
|
|
26
|
+
border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
|
|
27
|
+
opacity: 0;
|
|
28
|
+
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
z-index: 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//Tooltip content
|
|
34
|
+
&::after {
|
|
35
|
+
content: attr(data-tooltip);
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: 50%;
|
|
38
|
+
bottom: 100%;
|
|
39
|
+
transform: translateX(-50%);
|
|
40
|
+
background: rgba(0, 0, 0, 0.85);
|
|
41
|
+
color: #fff;
|
|
42
|
+
padding: 8px 10px;
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
border-radius: 6px;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
opacity: 0;
|
|
47
|
+
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
z-index: 2;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
&::before {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
transform: translateX(-50%) translateY(5px);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&::after {
|
|
59
|
+
opacity: 1;
|
|
60
|
+
transform: translateX(-50%) translateY(-5px);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.invert-tooltip {
|
|
66
|
+
&::before {
|
|
67
|
+
bottom: unset;
|
|
68
|
+
top: 100%;
|
|
69
|
+
transform: translateX(-50%) translateY(-10px);
|
|
70
|
+
border-color: transparent transparent rgba(0, 0, 0, 0.85) transparent;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&::after {
|
|
74
|
+
bottom: unset;
|
|
75
|
+
top: 100%;
|
|
76
|
+
transform: translateX(-50%) translateY(0);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
&::before {
|
|
81
|
+
transform: translateX(-50%) translateY(-5px);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&::after {
|
|
85
|
+
transform: translateX(-50%) translateY(5px);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CSSProperties, HTMLProps } from 'react';
|
|
3
|
+
import './_Layouts.scss';
|
|
4
|
+
export type LinearLayoutProps = React.PropsWithChildren<HTMLProps<HTMLDivElement>> & {
|
|
5
|
+
ref?: React.Ref<any>;
|
|
6
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
};
|
|
9
|
+
declare class LinearLayout extends React.Component<LinearLayoutProps> {
|
|
10
|
+
private layoutClass;
|
|
11
|
+
constructor(props: LinearLayoutProps, layoutClass: string);
|
|
12
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export declare class Grid extends React.Component<LinearLayoutProps> {
|
|
15
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
export declare class LL_V_L extends LinearLayout {
|
|
18
|
+
constructor(props: LinearLayoutProps);
|
|
19
|
+
}
|
|
20
|
+
export declare class LL_V_C extends LinearLayout {
|
|
21
|
+
constructor(props: LinearLayoutProps);
|
|
22
|
+
}
|
|
23
|
+
export declare class LL_V_R extends LinearLayout {
|
|
24
|
+
constructor(props: LinearLayoutProps);
|
|
25
|
+
}
|
|
26
|
+
export declare class LL_H_T extends LinearLayout {
|
|
27
|
+
constructor(props: LinearLayoutProps);
|
|
28
|
+
}
|
|
29
|
+
export declare class LL_H_C extends LinearLayout {
|
|
30
|
+
constructor(props: LinearLayoutProps);
|
|
31
|
+
}
|
|
32
|
+
export declare class LL_H_B extends LinearLayout {
|
|
33
|
+
constructor(props: LinearLayoutProps);
|
|
34
|
+
}
|
|
35
|
+
export declare class LL_VH_C extends LinearLayout {
|
|
36
|
+
constructor(props: LinearLayoutProps);
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import './_Layouts.scss';
|
|
4
|
+
import { _className } from '../../utils/tools.js';
|
|
5
|
+
class LinearLayout extends React.Component {
|
|
6
|
+
layoutClass;
|
|
7
|
+
constructor(props, layoutClass) {
|
|
8
|
+
super(props);
|
|
9
|
+
this.layoutClass = layoutClass;
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
const { innerRef, ...props } = this.props;
|
|
13
|
+
return _jsx("div", { ...props, ref: innerRef, className: _className(this.layoutClass, props.className), children: props.children });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class Grid extends React.Component {
|
|
17
|
+
render() {
|
|
18
|
+
const { innerRef, ...props } = this.props;
|
|
19
|
+
return _jsx("div", { ...props, ref: innerRef, className: _className('ts-grid', props.className), children: props.children });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export class LL_V_L extends LinearLayout {
|
|
23
|
+
constructor(props) {
|
|
24
|
+
super(props, 'll_v_l');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export class LL_V_C extends LinearLayout {
|
|
28
|
+
constructor(props) {
|
|
29
|
+
super(props, 'll_v_c');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export class LL_V_R extends LinearLayout {
|
|
33
|
+
constructor(props) {
|
|
34
|
+
super(props, 'll_v_r');
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export class LL_H_T extends LinearLayout {
|
|
38
|
+
constructor(props) {
|
|
39
|
+
super(props, 'll_h_t');
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export class LL_H_C extends LinearLayout {
|
|
43
|
+
constructor(props) {
|
|
44
|
+
super(props, 'll_h_c');
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export class LL_H_B extends LinearLayout {
|
|
48
|
+
constructor(props) {
|
|
49
|
+
super(props, 'll_h_b');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export class LL_VH_C extends LinearLayout {
|
|
53
|
+
constructor(props) {
|
|
54
|
+
super(props, 'll_vh_c');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Thunderstorm is a full web app framework!
|
|
3
|
+
*
|
|
4
|
+
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
5
|
+
* Typescript & React frontend infrastructure
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2020 Adam van der Kruk aka TacB0sS
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
@use "./Layouts_" as *;
|
|
22
|
+
|
|
23
|
+
.ll_v_l {
|
|
24
|
+
@extend %ll_v_l
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ll_v_c {
|
|
28
|
+
@extend %ll_v_c
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ll_v_r {
|
|
32
|
+
@extend %ll_v_r
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ll_h_t {
|
|
36
|
+
@extend %ll_h_t
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ll_h_c {
|
|
40
|
+
@extend %ll_h_c
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ll_h_b {
|
|
44
|
+
@extend %ll_h_b
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ll_vh_c {
|
|
48
|
+
@extend %ll_vh_c
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ts-grid {
|
|
52
|
+
@extend %ts-grid
|
|
53
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Thunderstorm is a full web app framework!
|
|
3
|
+
*
|
|
4
|
+
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
5
|
+
* Typescript & React frontend infrastructure
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2020 Adam van der Kruk aka TacB0sS
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
%ll_v_l {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-flow: column;
|
|
25
|
+
align-items: flex-start;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
%ll_v_c {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-flow: column;
|
|
31
|
+
align-items: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
%ll_vh_c {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-flow: column;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
height: 100%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
%ll_v_r {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-flow: column;
|
|
45
|
+
align-items: flex-end;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
%ll_h_t {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-flow: row;
|
|
52
|
+
align-items: flex-start;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
%ll_h_c {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-flow: row;
|
|
58
|
+
align-items: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
%ll_h_b {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-flow: row;
|
|
64
|
+
align-items: flex-end;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
%ts-grid {
|
|
68
|
+
display: grid;
|
|
69
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Layouts.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Thunderstorm is a full web app framework!
|
|
3
|
+
*
|
|
4
|
+
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
5
|
+
* Typescript & React frontend infrastructure
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2020 Adam van der Kruk aka TacB0sS
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
export * from './Layouts.js';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DBProto, UniqueId } from '@nu-art/ts-common';
|
|
3
|
+
import { TS_Route } from '../../modules/routing/index.js';
|
|
4
|
+
import './Page_ItemsEditor.scss';
|
|
5
|
+
import { ModuleFE_BaseApi } from '../../modules/db-api-gen/ModuleFE_BaseApi.js';
|
|
6
|
+
import { Props_ListRenderer } from './defaults/ItemEditor_ListRenderer/index.js';
|
|
7
|
+
import { ItemEditor_CustomSort, ItemEditor_FilterType, ItemEditor_MapperType } from './types.js';
|
|
8
|
+
import { Props_Filter } from './defaults/ItemEditor_DefaultFilter/index.js';
|
|
9
|
+
import { InferProps, InferState } from '../../utils/types.js';
|
|
10
|
+
import { ProtoComponent, ProtoComponentDef, SuperProto } from '../../core/proto-component/index.js';
|
|
11
|
+
import { Props_EditableItemControllerProto } from '../TS_EditableItemControllerProto/index.js';
|
|
12
|
+
import { EditableItem } from '../../utils/EditableItem.js';
|
|
13
|
+
export type MenuAction<Proto extends DBProto<any>> = {
|
|
14
|
+
label: string;
|
|
15
|
+
action: (state: State_ItemsEditor<Proto>) => Promise<any>;
|
|
16
|
+
};
|
|
17
|
+
export type State_ItemsEditor<Proto extends DBProto<any>> = {
|
|
18
|
+
editable: EditableItem<Proto['uiType']>;
|
|
19
|
+
filter: ItemEditor_FilterType<Proto>;
|
|
20
|
+
actionInProgress?: number;
|
|
21
|
+
};
|
|
22
|
+
export type Props_ItemsEditor<Proto extends DBProto<any>> = {
|
|
23
|
+
ListRenderer?: React.ComponentType<Props_ListRenderer<Proto>>;
|
|
24
|
+
EditorRenderer: React.ComponentType<Partial<Props_EditableItemControllerProto<Proto>>>;
|
|
25
|
+
Filter?: React.ComponentType<Props_Filter<Proto>>;
|
|
26
|
+
module: ModuleFE_BaseApi<Proto>;
|
|
27
|
+
route?: TS_Route<{
|
|
28
|
+
_id: string;
|
|
29
|
+
}>;
|
|
30
|
+
sort: ItemEditor_CustomSort<Proto>;
|
|
31
|
+
mapper: ItemEditor_MapperType<Proto>;
|
|
32
|
+
itemRenderer: (item: Proto['uiType']) => JSX.Element;
|
|
33
|
+
actions: MenuAction<Proto>[];
|
|
34
|
+
id?: string;
|
|
35
|
+
onSelectedItemChanged?: (editable?: EditableItem<Proto['uiType']>) => void;
|
|
36
|
+
contextMenuActions: MenuAction<Proto>[];
|
|
37
|
+
hideAddItem: boolean;
|
|
38
|
+
className?: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Manages a list of items on the left with a selected item, and an editor on the right
|
|
42
|
+
*/
|
|
43
|
+
export type ProtoDef_Selection = ProtoComponentDef<'selected', {
|
|
44
|
+
selected: {
|
|
45
|
+
[dbKey: string]: UniqueId;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
export declare abstract class Page_ItemsEditor<Proto extends DBProto<any>, CProto extends SuperProto<ProtoDef_Selection, ProtoComponentDef<string, any>> = ProtoDef_Selection, P = {}, S = {}> extends ProtoComponent<CProto, Props_ItemsEditor<Proto> & P, State_ItemsEditor<Proto> & S> {
|
|
49
|
+
static _defaultProps: ProtoDef_Selection['props'];
|
|
50
|
+
constructor(p: InferProps<Page_ItemsEditor<Proto, CProto, P, S>>);
|
|
51
|
+
componentDidMount(): void;
|
|
52
|
+
protected deriveStateFromProps(nextProps: InferProps<this>, state: InferState<this>): InferState<this>;
|
|
53
|
+
private __onItemUpdated;
|
|
54
|
+
private createEditableItem;
|
|
55
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
protected renderHeader(): React.ReactNode;
|
|
57
|
+
protected renderAddNewItem(): "" | import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
static refactoring_setSelected<Proto extends DBProto<any>>(module: ModuleFE_BaseApi<Proto>, id?: string): void;
|
|
59
|
+
private onSelected;
|
|
60
|
+
private renderMenuIcon;
|
|
61
|
+
private renderMenu;
|
|
62
|
+
}
|
|
63
|
+
export declare const Component_AddNewItem: (props: {
|
|
64
|
+
onCreateNewItem: () => Promise<any>;
|
|
65
|
+
entity: React.ReactNode;
|
|
66
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { asArray, dbObjectToId, exists } from '@nu-art/ts-common';
|
|
3
|
+
import { FrameLayout } from '../FrameLayout/index.js';
|
|
4
|
+
import { LL_H_C, LL_H_T, LL_V_L } from '../Layouts/index.js';
|
|
5
|
+
import './Page_ItemsEditor.scss';
|
|
6
|
+
import { ItemEditor_DefaultList } from './defaults/ItemEditor_ListRenderer/index.js';
|
|
7
|
+
import { ItemEditor_DefaultFilter } from './defaults/ItemEditor_DefaultFilter/index.js';
|
|
8
|
+
import { TS_Icons } from '@nu-art/ts-styles';
|
|
9
|
+
import { ModuleFE_MouseInteractivity, mouseInteractivity_PopUp, openContent } from '../../component-modules/mouse-interactivity/index.js';
|
|
10
|
+
import { TS_ButtonLoader } from '../TS_ButtonLoader/index.js';
|
|
11
|
+
import { _className } from '../../utils/tools.js';
|
|
12
|
+
import { ProtoComponent } from '../../core/proto-component/index.js';
|
|
13
|
+
import { ModuleFE_BrowserHistoryV2 } from '../../modules/ModuleFE_BrowserHistoryV2.js';
|
|
14
|
+
import { EditableDBItemV3 } from '../../utils/EditableItem.js';
|
|
15
|
+
export class Page_ItemsEditor extends ProtoComponent {
|
|
16
|
+
static _defaultProps = {
|
|
17
|
+
keys: ['selected'],
|
|
18
|
+
};
|
|
19
|
+
constructor(p) {
|
|
20
|
+
super(p);
|
|
21
|
+
}
|
|
22
|
+
componentDidMount() {
|
|
23
|
+
const selectedId = this.getQueryParam('selected', {})[this.props.module.dbDef.dbKey];
|
|
24
|
+
if (!selectedId)
|
|
25
|
+
this.onSelected(this.props.sort(this.props.module.cache.allMutable())[0]);
|
|
26
|
+
}
|
|
27
|
+
deriveStateFromProps(nextProps, state) {
|
|
28
|
+
if (nextProps === this.props || nextProps.module !== this.props.module) {
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
delete this[this.props.module.defaultDispatcher.method];
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
this[nextProps.module.defaultDispatcher.method] = (...args) => this.__onItemUpdated(...args);
|
|
33
|
+
}
|
|
34
|
+
const selectedId = this.getQueryParam('selected', {})[this.props.module.dbDef.dbKey];
|
|
35
|
+
if (!exists(selectedId)) {
|
|
36
|
+
state.editable = this.createEditableItem({});
|
|
37
|
+
this.props.onSelectedItemChanged?.(state.editable);
|
|
38
|
+
return state;
|
|
39
|
+
}
|
|
40
|
+
const item = this.props.module.cache.unique(selectedId);
|
|
41
|
+
if (!exists(item)) {
|
|
42
|
+
this.logError(`Could not find item ${this.props.module.dbDef.dbKey} with id ${selectedId}`);
|
|
43
|
+
this.onSelected();
|
|
44
|
+
this.props.onSelectedItemChanged?.();
|
|
45
|
+
return state;
|
|
46
|
+
}
|
|
47
|
+
state.editable = this.createEditableItem(item);
|
|
48
|
+
this.props.onSelectedItemChanged?.(state.editable);
|
|
49
|
+
state.filter ??= () => true;
|
|
50
|
+
return state;
|
|
51
|
+
}
|
|
52
|
+
__onItemUpdated = (...params) => {
|
|
53
|
+
const items = asArray(params[1]);
|
|
54
|
+
if (!items.map(dbObjectToId).includes(this.state.editable.get('_id')))
|
|
55
|
+
return this.onSelected(items[0]);
|
|
56
|
+
if (params[0] === 'delete' || params[0] === 'delete-multi')
|
|
57
|
+
return this.onSelected();
|
|
58
|
+
return this.reDeriveState();
|
|
59
|
+
};
|
|
60
|
+
createEditableItem(item) {
|
|
61
|
+
return new EditableDBItemV3({ ...item }, this.props.module)
|
|
62
|
+
.setOnSaveCompleted(this.onSelected.bind(this))
|
|
63
|
+
.setAutoSave(true);
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
const List = this.props.ListRenderer || ItemEditor_DefaultList;
|
|
67
|
+
const Filter = this.props.Filter || ItemEditor_DefaultFilter;
|
|
68
|
+
const Editor = this.props.EditorRenderer;
|
|
69
|
+
const sort = this.props.sort;
|
|
70
|
+
const selectedItem = this.state.editable?.item;
|
|
71
|
+
return _jsx(FrameLayout, { id: this.props.id, className: "editor-page", children: _jsxs(LL_H_T, { className: _className(this.props.className ?? 'editor-content', 'match_parent'), children: [_jsxs(LL_V_L, { className: "items-editor__list", children: [_jsxs(LL_V_L, { className: 'items-editor__list-header-content', children: [_jsx("div", { className: 'items-editor__list-header', children: this.renderHeader() }), _jsx(Filter, { onFilterChanged: filter => this.setState({ filter }), mapper: this.props.mapper }), this.renderMenuIcon()] }), _jsx(List, { contextMenuItems: this.props.contextMenuActions, itemRenderer: this.props.itemRenderer, filter: this.state.filter, selected: selectedItem, sort: sort, module: this.props.module, onSelected: this.onSelected.bind(this) }), this.renderAddNewItem()] }), _jsx("div", { className: "item-editor", children: _jsx(Editor, { item: selectedItem }) })] }) });
|
|
72
|
+
}
|
|
73
|
+
renderHeader() {
|
|
74
|
+
return '';
|
|
75
|
+
}
|
|
76
|
+
renderAddNewItem() {
|
|
77
|
+
if (this.props.hideAddItem)
|
|
78
|
+
return '';
|
|
79
|
+
return _jsx(Component_AddNewItem, { entity: this.renderHeader(), onCreateNewItem: async () => this.onSelected({}) });
|
|
80
|
+
}
|
|
81
|
+
static refactoring_setSelected(module, id) {
|
|
82
|
+
const selected = (ModuleFE_BrowserHistoryV2.get('selected') ?? {});
|
|
83
|
+
const selectedId = id;
|
|
84
|
+
if (!selectedId)
|
|
85
|
+
delete selected[module.dbDef.dbKey];
|
|
86
|
+
else
|
|
87
|
+
selected[module.dbDef.dbKey] = selectedId;
|
|
88
|
+
ModuleFE_BrowserHistoryV2.set('selected', selected);
|
|
89
|
+
}
|
|
90
|
+
onSelected(item) {
|
|
91
|
+
Page_ItemsEditor.refactoring_setSelected(this.props.module, item?._id);
|
|
92
|
+
// const selected = this.getQueryParam('selected', {} as CProto['queryParamDef']['selected']);
|
|
93
|
+
//
|
|
94
|
+
// const selectedId = item?._id;
|
|
95
|
+
// if (!selectedId)
|
|
96
|
+
// delete selected[this.props.module.dbDef.dbKey];
|
|
97
|
+
// else
|
|
98
|
+
// selected[this.props.module.dbDef.dbKey] = selectedId;
|
|
99
|
+
//
|
|
100
|
+
// this.setQueryParam('selected', selected);
|
|
101
|
+
this.reDeriveState();
|
|
102
|
+
}
|
|
103
|
+
renderMenuIcon = () => {
|
|
104
|
+
if (!this.props.actions)
|
|
105
|
+
return;
|
|
106
|
+
return _jsx(TS_Icons.more.component, { className: 'editor--menu-icon', ...openContent.popUp.bottom('editor--menu', this.renderMenu, 10) });
|
|
107
|
+
};
|
|
108
|
+
renderMenu = (refreshPopup) => {
|
|
109
|
+
return _jsx(_Fragment, { children: this.props.actions.map((action, index) => {
|
|
110
|
+
const actionInProgress = this.state.actionInProgress;
|
|
111
|
+
if (actionInProgress === index)
|
|
112
|
+
return _jsx("div", { className: 'editor--loader-wrapper', children: _jsx(TS_ButtonLoader, {}) }, action.label);
|
|
113
|
+
const className = _className('editor--menu-action', exists(actionInProgress) && 'disabled');
|
|
114
|
+
return _jsx("div", { className: className, onClick: async () => {
|
|
115
|
+
if (exists(this.state.actionInProgress))
|
|
116
|
+
return;
|
|
117
|
+
this.setState({ actionInProgress: index }, async () => {
|
|
118
|
+
refreshPopup();
|
|
119
|
+
try {
|
|
120
|
+
await action.action(this.state);
|
|
121
|
+
ModuleFE_MouseInteractivity.hide(mouseInteractivity_PopUp);
|
|
122
|
+
}
|
|
123
|
+
catch (err) {
|
|
124
|
+
this.logError(err);
|
|
125
|
+
this.setState({ actionInProgress: undefined }, () => refreshPopup());
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}, children: action.label }, action.label);
|
|
129
|
+
}) });
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
export const Component_AddNewItem = (props) => {
|
|
133
|
+
return _jsxs(LL_H_C, { className: "add-item-v3 clickable", onClick: props.onCreateNewItem, children: ["Add new ", props.entity] });
|
|
134
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
@use '@nu-art/ts-styles' as styles;
|
|
2
|
+
|
|
3
|
+
.editor-page {
|
|
4
|
+
.editor-content {
|
|
5
|
+
position: absolute;
|
|
6
|
+
|
|
7
|
+
.items-editor__list {
|
|
8
|
+
height: 100%;
|
|
9
|
+
border: 2px solid black;
|
|
10
|
+
border-radius: 10px;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
min-width: 300px;
|
|
13
|
+
|
|
14
|
+
.items-editor__list-header-content {
|
|
15
|
+
width: 100%;
|
|
16
|
+
|
|
17
|
+
.items-editor__list-header {
|
|
18
|
+
height: 40px;
|
|
19
|
+
width: 100%;
|
|
20
|
+
border-bottom: 2px solid black;
|
|
21
|
+
background: #a4a4a4;
|
|
22
|
+
color: white;
|
|
23
|
+
display: grid;
|
|
24
|
+
font-size: 18px;
|
|
25
|
+
place-content: center;
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.item-editor__default-filter {
|
|
31
|
+
background: white;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 30px;
|
|
34
|
+
border-bottom: 2px solid black;
|
|
35
|
+
|
|
36
|
+
.icon--wrapper {
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
width: 30px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ts-input {
|
|
42
|
+
height: 100%;
|
|
43
|
+
width: 0;
|
|
44
|
+
flex-grow: 1;
|
|
45
|
+
border: none;
|
|
46
|
+
outline: none !important;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.items-list {
|
|
52
|
+
width: 300px;
|
|
53
|
+
gap: 2px;
|
|
54
|
+
@include styles.customScrollbar('vertical', true);
|
|
55
|
+
|
|
56
|
+
.list-item {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
padding: 8px;
|
|
59
|
+
font-weight: bold;
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
align-items: center;
|
|
63
|
+
background: #b6b6b6;
|
|
64
|
+
white-space: pre-wrap;
|
|
65
|
+
color: white;
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.list-item__selected {
|
|
70
|
+
background: white;
|
|
71
|
+
color: #b6b6b6;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.add-item-v3 {
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 35px;
|
|
79
|
+
font-weight: bold;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
font-size: 16px;
|
|
82
|
+
background: #b4b4b4;
|
|
83
|
+
color: white;
|
|
84
|
+
|
|
85
|
+
&:hover {
|
|
86
|
+
background: #929292;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.item-editor {
|
|
92
|
+
height: 100%;
|
|
93
|
+
flex-grow: 1;
|
|
94
|
+
|
|
95
|
+
div[data-lastpass-icon-root] {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.editor-container {
|
|
100
|
+
gap: 12px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
package/components/Page_ItemsEditor/defaults/ItemEditor_DefaultFilter/ItemEditor_DefaultFilter.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './ItemEditor_DefaultFilter.scss';
|
|
3
|
+
import { DBProto, Filter } from '@nu-art/ts-common';
|
|
4
|
+
import { ItemEditor_FilterType, ItemEditor_MapperType } from '../../types.js';
|
|
5
|
+
export type Props_Filter<Proto extends DBProto<any>> = {
|
|
6
|
+
onFilterChanged: (filter: ItemEditor_FilterType<Proto>) => void;
|
|
7
|
+
mapper: ItemEditor_MapperType<Proto>;
|
|
8
|
+
};
|
|
9
|
+
export declare class ItemEditor_DefaultFilter<Proto extends DBProto<any>> extends React.Component<Props_Filter<Proto>, {
|
|
10
|
+
filter: Filter<Proto['uiType']>;
|
|
11
|
+
}> {
|
|
12
|
+
state: {
|
|
13
|
+
filter: Filter<Proto["uiType"]>;
|
|
14
|
+
};
|
|
15
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
}
|
package/components/Page_ItemsEditor/defaults/ItemEditor_DefaultFilter/ItemEditor_DefaultFilter.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import './ItemEditor_DefaultFilter.scss';
|
|
4
|
+
import { Filter } from '@nu-art/ts-common';
|
|
5
|
+
import { TS_Input } from '../../../TS_Input/index.js';
|
|
6
|
+
import { LL_H_C } from '../../../Layouts/index.js';
|
|
7
|
+
import { TS_Icons } from '@nu-art/ts-styles';
|
|
8
|
+
export class ItemEditor_DefaultFilter extends React.Component {
|
|
9
|
+
state = { filter: new Filter(this.props.mapper).setRegexp(false) };
|
|
10
|
+
render() {
|
|
11
|
+
return _jsxs(LL_H_C, { className: 'item-editor__default-filter', children: [_jsx(TS_Input, { placeholder: 'Type to Filter', type: 'text', onChange: value => {
|
|
12
|
+
this.props.onFilterChanged((item) => this.state.filter.filterItem(item, value));
|
|
13
|
+
} }), _jsx(TS_Icons.Search.component, {})] });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ItemEditor_DefaultFilter.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ItemEditor_DefaultFilter.js';
|