@nu-art/work-hub-frontend 0.401.9 → 0.500.6
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/_core/work-hub-item.d.ts +1 -1
- package/_core/work-hub-item.js +1 -3
- package/_module/ModuleFE_WorkHub/ModuleFE_WorkHub.d.ts +0 -3
- package/_module/ModuleFE_WorkHub/ModuleFE_WorkHub.js +2 -11
- package/_ui/Component_WorkHub/Component_WorkHub.d.ts +1 -1
- package/_ui/Component_WorkHub/Component_WorkHub.js +2 -2
- package/_ui/Component_WorkHubActionMenu/Component_WorkHubActionMenu.d.ts +2 -3
- package/_ui/Component_WorkHubActionMenu/Component_WorkHubActionMenu.js +6 -19
- package/_ui/Component_WorkHubActionMenu/types.d.ts +1 -3
- package/_ui/Component_WorkHub_Header/Component_WorkHub_Header.js +1 -1
- package/_ui/Component_WorkHub_Header/renderers/Component_WorkHub_Tab/Component_WorkHub_Tab.js +3 -2
- package/_ui/Component_WorkHub_Header/renderers/Component_WorkHub_TabGroup/Component_WorkHub_TabGroup.js +3 -3
- package/_ui/Component_WorkHub_Header/renderers/Component_WorkHub_TabGroupMenu/Component_WorkHub_TabGroupMenu.d.ts +2 -1
- package/_ui/Component_WorkHub_Header/renderers/Component_WorkHub_TabGroupMenu/Component_WorkHub_TabGroupMenu.js +4 -6
- package/_ui/Component_WorkHub_TabContent/Component_WorkHub_TabContent.d.ts +1 -3
- package/_ui/Component_WorkHub_TabContent/Component_WorkHub_TabContent.js +5 -15
- package/dispatchers.d.ts +1 -1
- package/dispatchers.js +1 -1
- package/package.json +19 -12
- package/_core/index.d.ts +0 -1
- package/_core/index.js +0 -1
- package/_module/index.d.ts +0 -1
- package/_module/index.js +0 -1
- package/_ui/index.d.ts +0 -2
- package/_ui/index.js +0 -2
package/_core/work-hub-item.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from '@nu-art/ts-common';
|
|
2
2
|
import { MouseEvent, ReactNode } from 'react';
|
|
3
|
-
import { ModuleFE_BaseDB } from '@nu-art/
|
|
3
|
+
import { ModuleFE_BaseDB } from '@nu-art/db-api-frontend';
|
|
4
4
|
import { WorkHubTab } from '@nu-art/work-hub-shared';
|
|
5
5
|
import { WorkHubItem_MenuSection } from '../_ui/Component_WorkHubActionMenu/types.js';
|
|
6
6
|
type MenuResolver = (tab: WorkHubTab) => (Promise<WorkHubItem_MenuSection[]> | WorkHubItem_MenuSection[]);
|
package/_core/work-hub-item.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { generateHex, Logger } from '@nu-art/ts-common';
|
|
2
|
-
import { ModuleFE_WorkHub } from '../_module/
|
|
2
|
+
import { ModuleFE_WorkHub } from '../_module/ModuleFE_WorkHub/ModuleFE_WorkHub.js';
|
|
3
3
|
import { Component_WorkHubActionMenu } from '../_ui/Component_WorkHubActionMenu/Component_WorkHubActionMenu.js';
|
|
4
4
|
export class WorkHubItem extends Logger {
|
|
5
5
|
key;
|
|
@@ -7,7 +7,6 @@ export class WorkHubItem extends Logger {
|
|
|
7
7
|
renderer;
|
|
8
8
|
tabTag;
|
|
9
9
|
customMenuActionsResolver;
|
|
10
|
-
// ######################## Builder ########################
|
|
11
10
|
constructor(key) {
|
|
12
11
|
super(`WorkHubItem_${key}`);
|
|
13
12
|
this.key = key;
|
|
@@ -31,7 +30,6 @@ export class WorkHubItem extends Logger {
|
|
|
31
30
|
this.customMenuActionsResolver = resolver;
|
|
32
31
|
return this;
|
|
33
32
|
};
|
|
34
|
-
// ######################## Public Methods ########################
|
|
35
33
|
openTab = (id, label, args) => {
|
|
36
34
|
ModuleFE_WorkHub.tabs.add(this.prepareTab(id, label, args));
|
|
37
35
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { Module } from '@nu-art/ts-common';
|
|
2
|
-
import { PermissionKeys_WorkHubUI } from '@nu-art/work-hub-shared';
|
|
3
2
|
import { ModuleFE_WorkHub_GroupActions, ModuleFE_WorkHub_TabActions } from './types.js';
|
|
4
3
|
import { WorkHubItem } from '../../_core/work-hub-item.js';
|
|
5
|
-
import { ModuleFE_PermissionMapper } from '@nu-art/permissions-frontend';
|
|
6
4
|
declare class ModuleFE_WorkHub_Class extends Module {
|
|
7
|
-
readonly permissions: ModuleFE_PermissionMapper<typeof PermissionKeys_WorkHubUI>;
|
|
8
5
|
constructor();
|
|
9
6
|
private readonly _tabs;
|
|
10
7
|
private readonly _tabStack;
|
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
import { BadImplementationException, filterInstances, lastElement, mergeObject, Module, removeFromArrayByIndex, removeItemFromArray } from '@nu-art/ts-common';
|
|
2
|
-
import { isWorkHubTab, isWorkHubTabGroup
|
|
2
|
+
import { isWorkHubTab, isWorkHubTabGroup } from '@nu-art/work-hub-shared';
|
|
3
3
|
import { dispatch_OnWorkHubTabSelected, dispatch_OnWorkHubTabsUpdated } from '../../dispatchers.js';
|
|
4
|
-
import { StorageKey } from '@nu-art/
|
|
4
|
+
import { StorageKey } from '@nu-art/thunder-core';
|
|
5
5
|
import { workHubTabGroupColors } from '../../_ui/Component_WorkHub_Header/renderers/Component_WorkHub_TabGroup/consts.js';
|
|
6
|
-
import { PermissionKey_FE } from '@nu-art/permissions-frontend';
|
|
7
6
|
class ModuleFE_WorkHub_Class extends Module {
|
|
8
|
-
permissions;
|
|
9
7
|
constructor() {
|
|
10
8
|
super();
|
|
11
9
|
this._tabs = this.storage_tabs.get([]);
|
|
12
10
|
this._tabStack = this.storage_tabStack.get([]);
|
|
13
11
|
this._workHubItemMap = {};
|
|
14
|
-
this.permissions = PermissionKey_FE.generatePermissionKeysByLevels(PermissionKeys_WorkHubUI);
|
|
15
|
-
if (this._tabs.length && !this._tabStack.length) {
|
|
16
|
-
let firstTab = this._tabs[0];
|
|
17
|
-
if (isWorkHubTabGroup(firstTab))
|
|
18
|
-
firstTab = firstTab.tabs[0];
|
|
19
|
-
this._tabStack.push(firstTab.id);
|
|
20
|
-
}
|
|
21
12
|
}
|
|
22
13
|
//######################### Class Properties #########################
|
|
23
14
|
_tabs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentSync } from '@nu-art/
|
|
1
|
+
import { ComponentSync } from '@nu-art/thunder-widgets';
|
|
2
2
|
import './Component_WorkHub.scss';
|
|
3
3
|
import { WorkHubTab, WorkHubTabGroup } from '@nu-art/work-hub-shared';
|
|
4
4
|
import { OnWorkHubTabs } from '../../dispatchers.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ComponentSync, LL_V_L } from '@nu-art/
|
|
2
|
+
import { ComponentSync, LL_V_L } from '@nu-art/thunder-widgets';
|
|
3
3
|
import './Component_WorkHub.scss';
|
|
4
|
-
import { ModuleFE_WorkHub } from '../../_module/
|
|
4
|
+
import { ModuleFE_WorkHub } from '../../_module/ModuleFE_WorkHub/ModuleFE_WorkHub.js';
|
|
5
5
|
import { Component_WorkHub_Header } from '../Component_WorkHub_Header/Component_WorkHub_Header.js';
|
|
6
6
|
import { Component_WorkHub_TabContent } from '../Component_WorkHub_TabContent/Component_WorkHub_TabContent.js';
|
|
7
7
|
import { BadImplementationException } from '@nu-art/ts-common';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
|
-
import { ComponentSync } from '@nu-art/
|
|
2
|
+
import { ComponentSync } from '@nu-art/thunder-widgets';
|
|
3
3
|
import { WorkHubItem_MenuSection } from './types.js';
|
|
4
4
|
import './Component_WorkHubActionMenu.scss';
|
|
5
5
|
type Props = {
|
|
@@ -11,8 +11,7 @@ export declare class Component_WorkHubActionMenu extends ComponentSync<Props> {
|
|
|
11
11
|
private generateGeneralSection;
|
|
12
12
|
private getSections;
|
|
13
13
|
private closeMenu;
|
|
14
|
-
|
|
15
|
-
render(): (import("react/jsx-runtime").JSX.Element | undefined)[];
|
|
14
|
+
render(): import("react/jsx-runtime").JSX.Element[];
|
|
16
15
|
private render_Section;
|
|
17
16
|
private render_Action;
|
|
18
17
|
private render_ActionButton;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
|
-
import { _className
|
|
4
|
-
import {
|
|
3
|
+
import { _className } from '@nu-art/thunder-core';
|
|
4
|
+
import { Button, ComponentSync, LL_H_C, LL_V_L } from '@nu-art/thunder-widgets';
|
|
5
|
+
import { ModuleFE_MouseInteractivity, mouseInteractivity_PopUp } from '@nu-art/thunder-mouse-interactivity-frontend';
|
|
6
|
+
import { ModuleFE_WorkHub } from '../../_module/ModuleFE_WorkHub/ModuleFE_WorkHub.js';
|
|
5
7
|
import './Component_WorkHubActionMenu.scss';
|
|
6
8
|
import { TS_Icons } from '@nu-art/ts-styles';
|
|
7
|
-
import {
|
|
9
|
+
import { generateHex } from '@nu-art/ts-common';
|
|
8
10
|
import { isWorkHubTabGroup } from '@nu-art/work-hub-shared';
|
|
9
11
|
export class Component_WorkHubActionMenu extends ComponentSync {
|
|
10
|
-
// ######################## Static ########################
|
|
11
12
|
static show = (e, props) => {
|
|
12
13
|
const model = {
|
|
13
14
|
id: 'work-hub-action-menu',
|
|
@@ -17,7 +18,6 @@ export class Component_WorkHubActionMenu extends ComponentSync {
|
|
|
17
18
|
};
|
|
18
19
|
ModuleFE_MouseInteractivity.showContent(model);
|
|
19
20
|
};
|
|
20
|
-
// ######################## Logic ########################
|
|
21
21
|
generateGeneralSection = () => {
|
|
22
22
|
const currentGroupKey = ModuleFE_WorkHub.group.getKeyForTabId(this.props.tabId);
|
|
23
23
|
const availableGroups = ModuleFE_WorkHub.tabs.get().filter(i => isWorkHubTabGroup(i) && i.groupKey !== currentGroupKey);
|
|
@@ -54,33 +54,20 @@ export class Component_WorkHubActionMenu extends ComponentSync {
|
|
|
54
54
|
closeMenu = () => {
|
|
55
55
|
ModuleFE_MouseInteractivity.hide(mouseInteractivity_PopUp);
|
|
56
56
|
};
|
|
57
|
-
hasVisibleActions = (item) => {
|
|
58
|
-
if ('actions' in item)
|
|
59
|
-
return item.actions.some(this.hasVisibleActions);
|
|
60
|
-
if (exists(item.visible))
|
|
61
|
-
return item.visible;
|
|
62
|
-
return item.innerActions?.length ? item.innerActions.some(this.hasVisibleActions) : true;
|
|
63
|
-
};
|
|
64
|
-
// ######################## Render ########################
|
|
65
57
|
render() {
|
|
66
58
|
const sections = this.getSections();
|
|
67
59
|
return sections.map(this.render_Section);
|
|
68
60
|
}
|
|
69
61
|
render_Section = (section, index) => {
|
|
70
|
-
if (!this.hasVisibleActions(section))
|
|
71
|
-
return;
|
|
72
62
|
return _jsxs(LL_V_L, { className: 'action-menu__section', children: [!!section.label?.length && _jsx("div", { className: 'action-menu__section-label', children: section.label }), section.actions.map(this.render_Action)] }, index);
|
|
73
63
|
};
|
|
74
64
|
render_Action = (action, index) => {
|
|
75
|
-
if (!this.hasVisibleActions(action))
|
|
76
|
-
return;
|
|
77
65
|
if (action.action)
|
|
78
66
|
return this.render_ActionButton(action, index);
|
|
79
67
|
return this.render_ActionWithInner(action, index);
|
|
80
68
|
};
|
|
81
69
|
render_ActionButton = (action, index) => {
|
|
82
|
-
|
|
83
|
-
return _jsxs(Fragment, { children: [_jsx(Button, { variant: 'work-hub-menu-action', disabled: disabled, onClick: async () => {
|
|
70
|
+
return _jsxs(Fragment, { children: [_jsx(Button, { variant: 'work-hub-menu-action', disabled: action.disabled, onClick: async () => {
|
|
84
71
|
await action.action();
|
|
85
72
|
this.closeMenu();
|
|
86
73
|
}, children: action.label }), action.separatorAfter && _jsx("div", { className: 'action-menu__separator' })] }, index);
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { ResolvableContent } from "@nu-art/ts-common";
|
|
2
1
|
export type WorkHubItem_MenuAction = {
|
|
3
2
|
label: string;
|
|
4
3
|
action?: () => (Promise<void> | void);
|
|
5
|
-
|
|
6
|
-
disabled?: ResolvableContent<boolean>;
|
|
4
|
+
disabled?: boolean;
|
|
7
5
|
separatorAfter?: boolean;
|
|
8
6
|
innerActions?: WorkHubItem_MenuAction[];
|
|
9
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { LL_H_C } from '@nu-art/
|
|
2
|
+
import { LL_H_C } from '@nu-art/thunder-widgets';
|
|
3
3
|
import { isWorkHubTabGroup } from '@nu-art/work-hub-shared';
|
|
4
4
|
import './Component_WorkHub_Header.scss';
|
|
5
5
|
import { Component_WorkHub_Tab } from './renderers/Component_WorkHub_Tab/Component_WorkHub_Tab.js';
|
package/_ui/Component_WorkHub_Header/renderers/Component_WorkHub_Tab/Component_WorkHub_Tab.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import './Component_WorkHub_Tab.scss';
|
|
3
|
-
import { _className
|
|
3
|
+
import { _className } from '@nu-art/thunder-core';
|
|
4
|
+
import { LL_H_C } from '@nu-art/thunder-widgets';
|
|
4
5
|
import { exists } from '@nu-art/ts-common';
|
|
5
|
-
import { ModuleFE_WorkHub } from '../../../../_module/
|
|
6
|
+
import { ModuleFE_WorkHub } from '../../../../_module/ModuleFE_WorkHub/ModuleFE_WorkHub.js';
|
|
6
7
|
const onTabMouseDown = (e, tabId) => {
|
|
7
8
|
if (e.button !== 1) //Only take into account middle mouse button
|
|
8
9
|
return;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { LL_H_C,
|
|
2
|
+
import { LL_H_C, TS_CollapsableContainer } from '@nu-art/thunder-widgets';
|
|
3
3
|
import { Component_WorkHub_Tab } from '../Component_WorkHub_Tab/Component_WorkHub_Tab.js';
|
|
4
4
|
import './Component_WorkHub_TabGroup.scss';
|
|
5
5
|
import { Component_WorkHub_TabGroupMenu } from '../Component_WorkHub_TabGroupMenu/Component_WorkHub_TabGroupMenu.js';
|
|
6
|
-
import { ModuleFE_WorkHub } from '../../../../_module/
|
|
6
|
+
import { ModuleFE_WorkHub } from '../../../../_module/ModuleFE_WorkHub/ModuleFE_WorkHub.js';
|
|
7
7
|
export const Component_WorkHub_TabGroup = (props) => {
|
|
8
8
|
const style = { '--color-fg': props.group.color.foreground, '--color-bg': props.group.color.background };
|
|
9
|
-
return _jsx(
|
|
9
|
+
return _jsx(TS_CollapsableContainer, { className: 'c__work-hub-tab-group', style: style, animated: true, forceUpdate: true, onCollapseToggle: () => {
|
|
10
10
|
ModuleFE_WorkHub.group.update(props.group.groupKey, { collapsed: !props.group.collapsed });
|
|
11
11
|
}, collapsed: props.group.collapsed, headerRenderer: () => props.group.label, onHeaderRightClick: e => Component_WorkHub_TabGroupMenu.show(e, props.group.groupKey), containerRenderer: () => _jsx(LL_H_C, { children: props.group.tabs.map(tab => _jsx(Component_WorkHub_Tab, { tab: tab, selected: tab.id === props.selectedTabId }, tab.id)) }) });
|
|
12
12
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EditableItem } from '@nu-art/editable-item';
|
|
2
|
+
import { ComponentSync } from '@nu-art/thunder-widgets';
|
|
2
3
|
import { WorkHubTabGroup } from '@nu-art/work-hub-shared';
|
|
3
4
|
import { MouseEvent } from 'react';
|
|
4
5
|
import './Component_WorkHub_TabGroupMenu.scss';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { EditableItem } from '@nu-art/editable-item';
|
|
3
|
+
import { ComponentSync, LL_H_C, TS_Input } from '@nu-art/thunder-widgets';
|
|
4
|
+
import { ModuleFE_MouseInteractivity } from '@nu-art/thunder-mouse-interactivity-frontend';
|
|
3
5
|
import { createRef } from 'react';
|
|
4
|
-
import { ModuleFE_WorkHub } from '../../../../_module/
|
|
6
|
+
import { ModuleFE_WorkHub } from '../../../../_module/ModuleFE_WorkHub/ModuleFE_WorkHub.js';
|
|
5
7
|
import { BadImplementationException, compare } from '@nu-art/ts-common';
|
|
6
8
|
import './Component_WorkHub_TabGroupMenu.scss';
|
|
7
9
|
import { workHubTabGroupColors } from '../Component_WorkHub_TabGroup/consts.js';
|
|
8
10
|
export class Component_WorkHub_TabGroupMenu extends ComponentSync {
|
|
9
11
|
inputRef = createRef();
|
|
10
|
-
// ######################## Static ########################
|
|
11
12
|
static show = (e, groupKey) => {
|
|
12
13
|
const group = ModuleFE_WorkHub.group.get(groupKey);
|
|
13
14
|
if (!group)
|
|
@@ -22,7 +23,6 @@ export class Component_WorkHub_TabGroupMenu extends ComponentSync {
|
|
|
22
23
|
};
|
|
23
24
|
ModuleFE_MouseInteractivity.showContent(model);
|
|
24
25
|
};
|
|
25
|
-
// ######################## Life Cycle ########################
|
|
26
26
|
deriveStateFromProps(nextProps, state) {
|
|
27
27
|
state.group = this.getEditable(nextProps.group);
|
|
28
28
|
return state;
|
|
@@ -33,7 +33,6 @@ export class Component_WorkHub_TabGroupMenu extends ComponentSync {
|
|
|
33
33
|
componentDidUpdate() {
|
|
34
34
|
this.inputRef.current?.focus();
|
|
35
35
|
}
|
|
36
|
-
// ######################## Logic ########################
|
|
37
36
|
getEditable(group) {
|
|
38
37
|
return new EditableItem(group)
|
|
39
38
|
.setOnChanged(async () => this.forceUpdate())
|
|
@@ -43,7 +42,6 @@ export class Component_WorkHub_TabGroupMenu extends ComponentSync {
|
|
|
43
42
|
})
|
|
44
43
|
.setAutoSave(true);
|
|
45
44
|
}
|
|
46
|
-
// ######################## Render ########################
|
|
47
45
|
render() {
|
|
48
46
|
return _jsxs(_Fragment, { children: [this.render_Label(), this.render_Color()] });
|
|
49
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WorkHubTab } from '@nu-art/work-hub-shared';
|
|
2
2
|
import './Component_WorkHub_TabContent.scss';
|
|
3
|
-
import { ComponentSync } from '@nu-art/
|
|
3
|
+
import { ComponentSync } from '@nu-art/thunder-widgets';
|
|
4
4
|
import { WorkHubItem } from '../../_core/work-hub-item.js';
|
|
5
5
|
import { OnWorkHubTabs } from '../../dispatchers.js';
|
|
6
6
|
type Props = {
|
|
@@ -19,7 +19,5 @@ export declare class Component_WorkHub_TabContent extends ComponentSync<Props, S
|
|
|
19
19
|
componentDidMount(): void;
|
|
20
20
|
componentDidUpdate(): void;
|
|
21
21
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
private renderAsync;
|
|
23
|
-
private renderSync;
|
|
24
22
|
}
|
|
25
23
|
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createRef } from 'react';
|
|
3
|
-
import { ModuleFE_WorkHub } from '../../_module/
|
|
3
|
+
import { ModuleFE_WorkHub } from '../../_module/ModuleFE_WorkHub/ModuleFE_WorkHub.js';
|
|
4
4
|
import './Component_WorkHub_TabContent.scss';
|
|
5
|
-
import {
|
|
5
|
+
import { ComponentSync, TS_ErrorBoundary } from '@nu-art/thunder-widgets';
|
|
6
6
|
import { voidFunction } from '@nu-art/ts-common';
|
|
7
7
|
export class Component_WorkHub_TabContent extends ComponentSync {
|
|
8
8
|
ref = createRef();
|
|
9
|
-
// ######################## Life Cycle ########################
|
|
10
9
|
__onWorkHubTabsUpdated = () => {
|
|
11
10
|
this.reDeriveState();
|
|
12
11
|
};
|
|
@@ -24,19 +23,10 @@ export class Component_WorkHub_TabContent extends ComponentSync {
|
|
|
24
23
|
componentDidUpdate() {
|
|
25
24
|
this.ref.current?.focus();
|
|
26
25
|
}
|
|
27
|
-
//
|
|
26
|
+
// Await-modules is up-level per user-account pattern (Component_AccountThumbnail); no AwaitModules wrapper here.
|
|
28
27
|
render() {
|
|
29
|
-
if (this.state.item.modulesToAwait?.length)
|
|
30
|
-
return this.renderAsync();
|
|
31
|
-
return this.renderSync();
|
|
32
|
-
}
|
|
33
|
-
renderAsync = () => {
|
|
34
28
|
const item = this.state.item;
|
|
35
29
|
const tab = this.state.tab;
|
|
36
|
-
return _jsx("div", { className: 'c__work-hub-tab-content', ref: this.ref, tabIndex: 0, children: _jsx(
|
|
37
|
-
}
|
|
38
|
-
renderSync = () => {
|
|
39
|
-
const item = this.state.item;
|
|
40
|
-
return _jsx("div", { className: 'c__work-hub-tab-content', ref: this.ref, tabIndex: 0, children: _jsx(TS_ErrorBoundary, { children: item.renderer(item, this.state.tab.id, this.state.renderArgs) }) });
|
|
41
|
-
};
|
|
30
|
+
return _jsx("div", { className: 'c__work-hub-tab-content', ref: this.ref, tabIndex: 0, children: _jsx(TS_ErrorBoundary, { children: item.renderer(item, tab.id, this.state.renderArgs) }) });
|
|
31
|
+
}
|
|
42
32
|
}
|
package/dispatchers.d.ts
CHANGED
package/dispatchers.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ThunderDispatcher } from '@nu-art/
|
|
1
|
+
import { ThunderDispatcher } from '@nu-art/thunder-core';
|
|
2
2
|
export const dispatch_OnWorkHubTabsUpdated = new ThunderDispatcher('__onWorkHubTabsUpdated');
|
|
3
3
|
export const dispatch_OnWorkHubTabSelected = new ThunderDispatcher('__onWorkHubTabSelected');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nu-art/work-hub-frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.500.6",
|
|
4
4
|
"description": "TS WorkHub Frontend",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TacB0sS",
|
|
@@ -21,13 +21,16 @@
|
|
|
21
21
|
"linkDirectory": true
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@nu-art/work-hub-shared": "0.
|
|
25
|
-
"@nu-art/ts-common": "0.
|
|
26
|
-
"@nu-art/ts-styles": "0.
|
|
27
|
-
"@nu-art/
|
|
28
|
-
"@nu-art/
|
|
29
|
-
"@nu-art/
|
|
30
|
-
"@nu-art/
|
|
24
|
+
"@nu-art/work-hub-shared": "0.500.6",
|
|
25
|
+
"@nu-art/ts-common": "0.500.6",
|
|
26
|
+
"@nu-art/ts-styles": "0.500.6",
|
|
27
|
+
"@nu-art/db-api-frontend": "0.500.6",
|
|
28
|
+
"@nu-art/editable-item": "0.500.6",
|
|
29
|
+
"@nu-art/thunder-core": "0.500.6",
|
|
30
|
+
"@nu-art/thunder-mouse-interactivity-frontend": "0.500.6",
|
|
31
|
+
"@nu-art/thunder-widgets": "0.500.6",
|
|
32
|
+
"@nu-art/permissions-frontend": "0.500.6",
|
|
33
|
+
"@nu-art/permissions-shared": "0.500.6",
|
|
31
34
|
"react": "^18.0.0"
|
|
32
35
|
},
|
|
33
36
|
"devDependencies": {
|
|
@@ -39,12 +42,16 @@
|
|
|
39
42
|
"type": "module",
|
|
40
43
|
"exports": {
|
|
41
44
|
"./core": {
|
|
42
|
-
"types": "./_core/
|
|
43
|
-
"import": "./_core/
|
|
45
|
+
"types": "./_core/work-hub-item.d.ts",
|
|
46
|
+
"import": "./_core/work-hub-item.js"
|
|
44
47
|
},
|
|
45
48
|
"./ui": {
|
|
46
|
-
"types": "./_ui/
|
|
47
|
-
"import": "./_ui/
|
|
49
|
+
"types": "./_ui/Component_WorkHub/Component_WorkHub.d.ts",
|
|
50
|
+
"import": "./_ui/Component_WorkHub/Component_WorkHub.js"
|
|
51
|
+
},
|
|
52
|
+
"./ui/action-menu-types": {
|
|
53
|
+
"types": "./_ui/Component_WorkHubActionMenu/types.d.ts",
|
|
54
|
+
"import": "./_ui/Component_WorkHubActionMenu/types.js"
|
|
48
55
|
},
|
|
49
56
|
"./modules": {
|
|
50
57
|
"types": "./_module/ModuleFE_WorkHub/ModuleFE_WorkHub.d.ts",
|
package/_core/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './work-hub-item.js';
|
package/_core/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './work-hub-item.js';
|
package/_module/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ModuleFE_WorkHub/ModuleFE_WorkHub.js';
|
package/_module/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ModuleFE_WorkHub/ModuleFE_WorkHub.js';
|
package/_ui/index.d.ts
DELETED
package/_ui/index.js
DELETED