@adaptabletools/adaptable 12.0.0 → 12.0.2
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/base.css +6 -19
- package/bundle.cjs.js +129 -129
- package/index.css +7 -23
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -2
- package/src/AdaptableOptions/ActionOptions.d.ts +1 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -1
- package/src/AdaptableOptions/StateOptions.d.ts +9 -23
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +34 -1
- package/src/Api/ChartingApi.d.ts +19 -2
- package/src/Api/FilterApi.d.ts +7 -2
- package/src/Api/FormatColumnApi.d.ts +6 -6
- package/src/Api/GridApi.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +6 -0
- package/src/Api/Implementation/ChartingApiImpl.js +17 -0
- package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ConfigApiImpl.js +11 -0
- package/src/Api/Implementation/FilterApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FilterApiImpl.js +5 -0
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +3 -3
- package/src/Api/Implementation/FormatColumnApiImpl.js +13 -11
- package/src/Api/Implementation/GridApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridApiImpl.js +2 -2
- package/src/Api/Implementation/InternalApiImpl.d.ts +4 -1
- package/src/Api/Implementation/InternalApiImpl.js +16 -3
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +1 -0
- package/src/Api/Implementation/TeamSharingApiImpl.js +5 -0
- package/src/Api/InternalApi.d.ts +4 -1
- package/src/Api/TeamSharingApi.d.ts +4 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -5
- package/src/PredefinedConfig/ChartingState.d.ts +20 -0
- package/src/PredefinedConfig/ChartingState.js +2 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +27 -6
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +2 -2
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -0
- package/src/PredefinedConfig/Selection/GridCellRange.d.ts +19 -0
- package/src/PredefinedConfig/StatusBarState.d.ts +1 -1
- package/src/Redux/ActionsReducers/ChartingRedux.d.ts +23 -0
- package/src/Redux/ActionsReducers/ChartingRedux.js +38 -0
- package/src/Redux/ActionsReducers/LayoutRedux.js +3 -0
- package/src/Redux/Store/AdaptableStore.js +2 -0
- package/src/Strategy/AdaptableModuleBase.d.ts +10 -5
- package/src/Strategy/AdaptableModuleBase.js +6 -0
- package/src/Strategy/AlertModule.d.ts +2 -8
- package/src/Strategy/AlertModule.js +6 -3
- package/src/Strategy/ChartingModule.js +1 -1
- package/src/Strategy/DashboardModule.js +1 -0
- package/src/Strategy/ExportModule.js +1 -0
- package/src/Strategy/FlashingCellModule.js +3 -3
- package/src/Strategy/FormatColumnModule.js +3 -3
- package/src/Strategy/GridInfoModule.js +2 -0
- package/src/Strategy/Interface/IModule.d.ts +16 -4
- package/src/Strategy/LayoutModule.js +2 -0
- package/src/Strategy/TeamSharingModule.d.ts +11 -1
- package/src/Strategy/TeamSharingModule.js +104 -0
- package/src/Utilities/Helpers/FormatHelper.d.ts +1 -1
- package/src/Utilities/Helpers/FormatHelper.js +6 -2
- package/src/Utilities/MenuItem.d.ts +4 -4
- package/src/Utilities/ObjectFactory.d.ts +5 -1
- package/src/Utilities/ObjectFactory.js +11 -1
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
- package/src/Utilities/Services/ReportService.d.ts +1 -1
- package/src/Utilities/Services/ReportService.js +5 -5
- package/src/Utilities/Services/TeamSharingService.js +0 -2
- package/src/View/AdaptableViewFactory.js +0 -2
- package/src/View/Alert/ActiveAlertsPanelItemLabel.d.ts +5 -0
- package/src/View/Alert/ActiveAlertsPanelItemLabel.js +22 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +4 -11
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +8 -4
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +13 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +23 -15
- package/src/View/Components/Buttons/ButtonDelete.js +3 -3
- package/src/View/Components/Buttons/ButtonPause.js +11 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +23 -2
- package/src/View/Components/Panels/PanelWithButton.d.ts +2 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +3 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +4 -0
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -11
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -11
- package/src/View/Dashboard/CustomDashboardButton.js +2 -15
- package/src/View/Dashboard/CustomToolbarWrapper.js +2 -11
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +13 -9
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +6 -0
- package/src/View/GridInfo/GridInfoPopup.js +1 -1
- package/src/View/Layout/LayoutEditorStandalonePopup.js +3 -1
- package/src/View/Layout/LayoutPopup.d.ts +1 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +2 -27
- package/src/View/TeamSharing/SharedEntityDependencies.d.ts +8 -0
- package/src/View/TeamSharing/SharedEntityDependencies.js +27 -0
- package/src/View/TeamSharing/SharedEntityObjectView.d.ts +9 -0
- package/src/View/TeamSharing/SharedEntityObjectView.js +84 -0
- package/src/View/TeamSharing/TeamSharingApplyButton.d.ts +6 -0
- package/src/View/TeamSharing/TeamSharingApplyButton.js +15 -0
- package/src/View/UIHelper.d.ts +2 -2
- package/src/agGrid/ActionColumnRenderer.js +5 -11
- package/src/agGrid/Adaptable.d.ts +5 -27
- package/src/agGrid/Adaptable.js +87 -72
- package/src/agGrid/agGridMenuHelper.d.ts +1 -0
- package/src/agGrid/agGridMenuHelper.js +15 -4
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +6 -12
- package/src/components/AdaptableIconComponent/index.d.ts +2 -1
- package/src/components/AdaptableIconComponent/index.js +36 -3
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/SimpleButton/index.js +1 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/icons/{color-drop.d.ts → ends-with.d.ts} +0 -0
- package/src/components/icons/{format-letter-ends-with.js → ends-with.js} +0 -0
- package/src/components/icons/{filter-outline.d.ts → filter.d.ts} +0 -0
- package/src/components/icons/{filter-outline.js → filter.js} +0 -0
- package/src/components/icons/index.d.ts +5 -7
- package/src/components/icons/index.js +7 -21
- package/src/components/icons/{format-letter-ends-with.d.ts → starts-with.d.ts} +0 -0
- package/src/components/icons/{format-letter-starts-with.js → starts-with.js} +0 -0
- package/src/metamodel/adaptable.metamodel.d.ts +150 -1
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +4 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/View/Alert/AlertSharedEntity.d.ts +0 -5
- package/src/View/Alert/AlertSharedEntity.js +0 -19
- package/src/View/CalculatedColumn/CalculatedColumnSharedEntity.d.ts +0 -5
- package/src/View/CalculatedColumn/CalculatedColumnSharedEntity.js +0 -20
- package/src/View/ConditionalStyle/ConditionalStyleSharedEntity.d.ts +0 -5
- package/src/View/ConditionalStyle/ConditionalStyleSharedEntity.js +0 -23
- package/src/View/CustomSort/CustomSortSharedEntity.d.ts +0 -6
- package/src/View/CustomSort/CustomSortSharedEntity.js +0 -24
- package/src/View/Export/ExportSharedEntity.d.ts +0 -5
- package/src/View/Export/ExportSharedEntity.js +0 -16
- package/src/View/Filter/FilterSharedEntity.d.ts +0 -5
- package/src/View/Filter/FilterSharedEntity.js +0 -15
- package/src/View/FormatColumn/FormatColumnSharedEntity.d.ts +0 -5
- package/src/View/FormatColumn/FormatColumnSharedEntity.js +0 -18
- package/src/View/FreeTextColumn/FreeTextColumnSharedEntity.d.ts +0 -5
- package/src/View/FreeTextColumn/FreeTextColumnSharedEntity.js +0 -24
- package/src/View/Layout/LayoutSharedEntity.d.ts +0 -5
- package/src/View/Layout/LayoutSharedEntity.js +0 -15
- package/src/View/PlusMinus/PlusMinusSharedEntity.d.ts +0 -5
- package/src/View/PlusMinus/PlusMinusSharedEntity.js +0 -21
- package/src/View/Query/NamedQuerySharedEntity.d.ts +0 -5
- package/src/View/Query/NamedQuerySharedEntity.js +0 -19
- package/src/View/Shortcut/ShortcutSharedEntity.d.ts +0 -5
- package/src/View/Shortcut/ShortcutSharedEntity.js +0 -19
- package/src/View/TeamSharing/TeamSharingPopup.d.ts +0 -23
- package/src/View/TeamSharing/TeamSharingPopup.js +0 -163
- package/src/agGrid/rowEditIcons.d.ts +0 -5
- package/src/agGrid/rowEditIcons.js +0 -10
- package/src/components/icons/color-drop.js +0 -7
- package/src/components/icons/format-letter-starts-with.d.ts +0 -3
- package/src/components/icons/pause-red.d.ts +0 -3
- package/src/components/icons/pause-red.js +0 -7
package/src/types.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type { FilterActionOnDataChange } from './PredefinedConfig/Common/FilterA
|
|
|
32
32
|
export type { ConfigState } from './PredefinedConfig/ConfigState';
|
|
33
33
|
export type { TeamSharingOptions } from './AdaptableOptions/TeamSharingOptions';
|
|
34
34
|
export type { ToolPanelOptions, CustomToolPanel, ToolPanelButtonContext, CustomToolPanelButtonContext, } from './AdaptableOptions/ToolPanelOptions';
|
|
35
|
-
export type { UserInterfaceOptions, CellValuesList, BasePermittedValues, PermittedValues, EditLookUpPermittedValues, FilterPermittedValues, CustomSortPermittedValues, BulkUpdatePermittedValues, EditLookUpContext, PermittedValuesContext, FilterPermittedValuesContext, BulkUpdatePermittedValuesContext, GridInfoSections, GridInfoSection, ObjectTagsContext, CustomDisplayFormatter, } from './AdaptableOptions/UserInterfaceOptions';
|
|
35
|
+
export type { UserInterfaceOptions, CellValuesList, BasePermittedValues, PermittedValues, EditLookUpPermittedValues, FilterPermittedValues, CustomSortPermittedValues, BulkUpdatePermittedValues, EditLookUpContext, PermittedValuesContext, FilterPermittedValuesContext, BulkUpdatePermittedValuesContext, GridInfoSections, GridInfoSection, ObjectTagsContext, CustomDisplayFormatter, CustomDisplayFormatterContext, } from './AdaptableOptions/UserInterfaceOptions';
|
|
36
36
|
export type { MenuOptions } from './AdaptableOptions/MenuOptions';
|
|
37
37
|
export type { CustomSettingsPanel, SettingsPanelOptions, } from './AdaptableOptions/SettingsPanelOptions';
|
|
38
38
|
export type { EntitlementOptions, EntitlementContext } from './AdaptableOptions/EntitlementOptions';
|
|
@@ -47,6 +47,7 @@ export type { CalculatedColumnApi } from './Api/CalculatedColumnApi';
|
|
|
47
47
|
export type { CellSummaryApi } from './Api/CellSummaryApi';
|
|
48
48
|
export type { ColumnApi } from './Api/ColumnApi';
|
|
49
49
|
export type { ActionApi } from './Api/ActionApi';
|
|
50
|
+
export type { ChartingApi } from './Api/ChartingApi';
|
|
50
51
|
export type { ConditionalStyleApi } from './Api/ConditionalStyleApi';
|
|
51
52
|
export type { ConfigApi } from './Api/ConfigApi';
|
|
52
53
|
export type { CustomSortApi } from './Api/CustomSortApi';
|
|
@@ -122,7 +123,7 @@ export type { AdaptablePredicate, AdaptablePredicateDef, ModuleScope, PredicateD
|
|
|
122
123
|
export type { FDC3Context, InstrumentContext, InstrumentListContext, PositionContext, PortfolioContext, ContactContext, ContactListContext, CountryContext, OrganizationContext, AdaptableFDC3EventInfo, ContextType, CustomFDC3Context, } from './PredefinedConfig/Common/FDC3Context';
|
|
123
124
|
export type { AdaptableScope } from './PredefinedConfig/Common/AdaptableScope';
|
|
124
125
|
export type { AdaptableStyle } from './PredefinedConfig/Common/AdaptableStyle';
|
|
125
|
-
export type { AdaptableIcon, AdaptableInternalIcon, AdaptableExternalIcon, AdaptableInternalIconName, } from './PredefinedConfig/Common/AdaptableIcon';
|
|
126
|
+
export type { AdaptableBaseIcon, AdaptableIcon, AdaptableInternalIcon, AdaptableExternalIcon, AdaptableInternalIconName, AdaptableElementIcon, } from './PredefinedConfig/Common/AdaptableIcon';
|
|
126
127
|
export type { CellHighlightInfo } from './PredefinedConfig/Common/CellHighlightInfo';
|
|
127
128
|
export type { RowHighlightInfo } from './PredefinedConfig/Common/RowHighlightInfo';
|
|
128
129
|
export type { RowsHighlightInfo } from './PredefinedConfig/Common/RowsHighlightInfo';
|
|
@@ -139,6 +140,7 @@ export type { Schedule } from './PredefinedConfig/Common/Schedule';
|
|
|
139
140
|
export type { ButtonStyle } from './PredefinedConfig/Common/ButtonStyle';
|
|
140
141
|
export type { AdaptableModule, AdaptableToolPanel, AdaptableQLModule, AdaptableSettingsPanel, AdaptableDashboardToolbar, AdaptableStatusBarPanel, AdaptableColumnType, } from './PredefinedConfig/Common/Types';
|
|
141
142
|
export type { ConditionalStyle, ConditionalStyleRule, ConditionalStyleState, } from './PredefinedConfig/ConditionalStyleState';
|
|
143
|
+
export type { ChartDefinition, ChartingState } from './PredefinedConfig/ChartingState';
|
|
142
144
|
export type { CustomSort, CustomSortState } from './PredefinedConfig/CustomSortState';
|
|
143
145
|
export type { DashboardState, DashboardTab, AdaptableCoordinate, } from './PredefinedConfig/DashboardState';
|
|
144
146
|
export type { ExportState, Report, ReportData, ReportSchedule, SystemReportName, SystemReportNames, } from './PredefinedConfig/ExportState';
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "12.0.
|
|
1
|
+
declare const _default: "12.0.2";
|
|
2
2
|
export default _default;
|
package/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = '12.0.
|
|
3
|
+
exports.default = '12.0.2'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AlertSharedEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
const CodeBlock_1 = require("../../components/CodeBlock");
|
|
8
|
-
class AlertSharedEntity extends React.Component {
|
|
9
|
-
render() {
|
|
10
|
-
let alertDefinition = this.props.entity;
|
|
11
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
12
|
-
React.createElement(rebass_1.Flex, { flex: 4 }, this.props.api.scopeApi.getScopeToString(alertDefinition.Scope)),
|
|
13
|
-
React.createElement(rebass_1.Flex, { flex: 8 },
|
|
14
|
-
React.createElement(CodeBlock_1.CodeBlock, null,
|
|
15
|
-
this.props.api.alertApi.getAlertRuleDescription(alertDefinition),
|
|
16
|
-
" "))));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.AlertSharedEntity = AlertSharedEntity;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SharedEntityComponent } from '../Components/SharedProps/ConfigEntityRowProps';
|
|
3
|
-
export declare class CalculatedColumnSharedEntity extends React.Component<SharedEntityComponent<CalculatedColumnSharedEntity>, {}> {
|
|
4
|
-
render(): any;
|
|
5
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CalculatedColumnSharedEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
const CodeBlock_1 = require("../../components/CodeBlock");
|
|
8
|
-
class CalculatedColumnSharedEntity extends React.Component {
|
|
9
|
-
render() {
|
|
10
|
-
// TODO AFL TTT
|
|
11
|
-
let calcCol = this.props.entity;
|
|
12
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
13
|
-
React.createElement(rebass_1.Flex, { flex: 4 }, calcCol.ColumnId),
|
|
14
|
-
React.createElement(rebass_1.Flex, { flex: 8 },
|
|
15
|
-
React.createElement(CodeBlock_1.CodeBlock, null,
|
|
16
|
-
' ',
|
|
17
|
-
this.props.api.queryLanguageApi.getAdaptableQueryExpression(calcCol.Query)))));
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.CalculatedColumnSharedEntity = CalculatedColumnSharedEntity;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SharedEntityComponent } from '../Components/SharedProps/ConfigEntityRowProps';
|
|
3
|
-
export declare class ConditionalStyleSharedEntity extends React.Component<SharedEntityComponent<ConditionalStyleSharedEntity>, {}> {
|
|
4
|
-
render(): any;
|
|
5
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConditionalStyleSharedEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
/// <reference path="../../typings/.d.ts" />
|
|
7
|
-
const StyleVisualItem_1 = require("../Components/StyleVisualItem");
|
|
8
|
-
const rebass_1 = require("rebass");
|
|
9
|
-
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
10
|
-
class ConditionalStyleSharedEntity extends React.Component {
|
|
11
|
-
render() {
|
|
12
|
-
const conditionalStyle = this.props.entity;
|
|
13
|
-
const predicateOrExpressionString = StringExtensions_1.default.IsNotNullOrEmpty(conditionalStyle.Rule.BooleanExpression)
|
|
14
|
-
? conditionalStyle.Rule.BooleanExpression
|
|
15
|
-
: this.props.api.predicateApi.predicateToString(conditionalStyle.Rule.Predicate);
|
|
16
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", padding: 1 },
|
|
17
|
-
React.createElement(rebass_1.Flex, { flex: 4 }, this.props.api.scopeApi.getScopeToString(conditionalStyle.Scope)),
|
|
18
|
-
React.createElement(rebass_1.Flex, { flex: 3, marginLeft: 2 },
|
|
19
|
-
React.createElement(StyleVisualItem_1.StyleVisualItem, { Style: conditionalStyle.Style })),
|
|
20
|
-
React.createElement(rebass_1.Flex, { flex: 5 }, predicateOrExpressionString)));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.ConditionalStyleSharedEntity = ConditionalStyleSharedEntity;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SharedEntityComponent } from '../Components/SharedProps/ConfigEntityRowProps';
|
|
3
|
-
export declare class CustomSortSharedEntity extends React.Component<SharedEntityComponent<CustomSortSharedEntity>, {}> {
|
|
4
|
-
render(): any;
|
|
5
|
-
private getCustomSortedValues;
|
|
6
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomSortSharedEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
8
|
-
class CustomSortSharedEntity extends React.Component {
|
|
9
|
-
render() {
|
|
10
|
-
let customSort = this.props.entity;
|
|
11
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
12
|
-
React.createElement(rebass_1.Flex, { flex: 4 }, this.props.api.columnApi.getFriendlyNameFromColumnId(customSort.ColumnId)),
|
|
13
|
-
React.createElement(rebass_1.Flex, { flex: 8 }, this.getCustomSortedValues(customSort))));
|
|
14
|
-
}
|
|
15
|
-
getCustomSortedValues(customSort) {
|
|
16
|
-
if (ArrayExtensions_1.default.IsNotNullOrEmpty(customSort.SortedValues)) {
|
|
17
|
-
return customSort.SortedValues.join(', ');
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return '[Has bespoke Custom Sort implementing using bespoke function]';
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.CustomSortSharedEntity = CustomSortSharedEntity;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExportSharedEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
class ExportSharedEntity extends React.Component {
|
|
8
|
-
render() {
|
|
9
|
-
var _a;
|
|
10
|
-
let report = this.props.entity;
|
|
11
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
12
|
-
React.createElement(rebass_1.Flex, { flex: 4 }, report.Name),
|
|
13
|
-
React.createElement(rebass_1.Flex, { flex: 8 }, (_a = report.Query) === null || _a === void 0 ? void 0 : _a.BooleanExpression)));
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.ExportSharedEntity = ExportSharedEntity;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FilterSharedEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
class FilterSharedEntity extends React.Component {
|
|
8
|
-
render() {
|
|
9
|
-
let columnFilter = this.props.entity;
|
|
10
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
11
|
-
React.createElement(rebass_1.Flex, { flex: 4 }, this.props.api.columnApi.getFriendlyNameFromColumnId(columnFilter.ColumnId)),
|
|
12
|
-
React.createElement(rebass_1.Flex, { flex: 8, marginLeft: 2 }, this.props.api.predicateApi.predicateToString(columnFilter.Predicate))));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.FilterSharedEntity = FilterSharedEntity;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormatColumnSharedEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
/// <reference path="../../typings/.d.ts" />
|
|
7
|
-
const StyleVisualItem_1 = require("../Components/StyleVisualItem");
|
|
8
|
-
const rebass_1 = require("rebass");
|
|
9
|
-
class FormatColumnSharedEntity extends React.Component {
|
|
10
|
-
render() {
|
|
11
|
-
let fc = this.props.entity;
|
|
12
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
13
|
-
React.createElement(rebass_1.Flex, { flex: 4 }, this.props.api.scopeApi.getScopeDescription(fc.Scope)),
|
|
14
|
-
React.createElement(rebass_1.Flex, { flex: 8 },
|
|
15
|
-
React.createElement(StyleVisualItem_1.StyleVisualItem, { Style: fc.Style }))));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.FormatColumnSharedEntity = FormatColumnSharedEntity;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SharedEntityComponent } from '../Components/SharedProps/ConfigEntityRowProps';
|
|
3
|
-
export declare class FreeTextColumnSharedEntity extends React.Component<SharedEntityComponent<FreeTextColumnSharedEntity>, {}> {
|
|
4
|
-
render(): any;
|
|
5
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FreeTextColumnSharedEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
8
|
-
class FreeTextColumnSharedEntity extends React.Component {
|
|
9
|
-
render() {
|
|
10
|
-
const freeTextColumn = this.props.entity;
|
|
11
|
-
let defaultValue = StringExtensions_1.default.IsNotNullOrEmpty(freeTextColumn.DefaultValue)
|
|
12
|
-
? freeTextColumn.DefaultValue
|
|
13
|
-
: 'None';
|
|
14
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
15
|
-
React.createElement(rebass_1.Flex, { flex: 4 }, freeTextColumn.ColumnId),
|
|
16
|
-
React.createElement(rebass_1.Flex, { flex: 8, flexDirection: "column" },
|
|
17
|
-
"ColumnName: ",
|
|
18
|
-
freeTextColumn.FriendlyName,
|
|
19
|
-
React.createElement("br", null),
|
|
20
|
-
"Default Value: ",
|
|
21
|
-
defaultValue)));
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.FreeTextColumnSharedEntity = FreeTextColumnSharedEntity;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LayoutSharedEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
class LayoutSharedEntity extends React.Component {
|
|
8
|
-
render() {
|
|
9
|
-
let layout = this.props.entity;
|
|
10
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
11
|
-
React.createElement(rebass_1.Flex, { flex: 4 }, layout.Name),
|
|
12
|
-
React.createElement(rebass_1.Flex, { flex: 8 }, layout.Columns.join(', '))));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.LayoutSharedEntity = LayoutSharedEntity;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlusMinusSharedEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
8
|
-
class PlusMinusSharedEntity extends React.Component {
|
|
9
|
-
render() {
|
|
10
|
-
var _a;
|
|
11
|
-
let plusMinusNudge = this.props.entity;
|
|
12
|
-
const predicateOrExpressionString = StringExtensions_1.default.IsNotNullOrEmpty((_a = plusMinusNudge.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression)
|
|
13
|
-
? plusMinusNudge.Rule.BooleanExpression
|
|
14
|
-
: 'Always';
|
|
15
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
16
|
-
React.createElement(rebass_1.Flex, { flex: 4 }, this.props.api.scopeApi.getScopeToString(plusMinusNudge.Scope)),
|
|
17
|
-
React.createElement(rebass_1.Flex, { flex: 3 }, plusMinusNudge.NudgeValue.toString()),
|
|
18
|
-
React.createElement(rebass_1.Flex, { flex: 5 }, predicateOrExpressionString)));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.PlusMinusSharedEntity = PlusMinusSharedEntity;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NamedQuerySharedEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
const CodeBlock_1 = require("../../components/CodeBlock");
|
|
8
|
-
class NamedQuerySharedEntity extends React.Component {
|
|
9
|
-
render() {
|
|
10
|
-
let namedQuery = this.props.entity;
|
|
11
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
12
|
-
React.createElement(rebass_1.Flex, { flex: 4 }, namedQuery.Name),
|
|
13
|
-
React.createElement(rebass_1.Flex, { flex: 8 },
|
|
14
|
-
React.createElement(CodeBlock_1.CodeBlock, null,
|
|
15
|
-
" ",
|
|
16
|
-
namedQuery.BooleanExpression))));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.NamedQuerySharedEntity = NamedQuerySharedEntity;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShortcutSharedEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
class ShortcutSharedEntity extends React.Component {
|
|
8
|
-
render() {
|
|
9
|
-
let shortcut = this.props.entity;
|
|
10
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
11
|
-
React.createElement(rebass_1.Flex, { flex: 4 },
|
|
12
|
-
"Key: ",
|
|
13
|
-
React.createElement("b", null, shortcut.ShortcutKey)),
|
|
14
|
-
React.createElement(rebass_1.Flex, { flex: 4 },
|
|
15
|
-
"Value: ",
|
|
16
|
-
React.createElement("b", null, shortcut.ShortcutValue))));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.ShortcutSharedEntity = ShortcutSharedEntity;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
|
|
3
|
-
import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
|
|
4
|
-
import { SharedEntity, SharedEntityActiveStatus } from '../../PredefinedConfig/TeamSharingState';
|
|
5
|
-
import { TypeUuid } from '../../PredefinedConfig/Uuid';
|
|
6
|
-
interface TeamSharingPopupProps extends ModuleViewPopupProps<TeamSharingPopupComponent> {
|
|
7
|
-
Entities: Array<SharedEntity>;
|
|
8
|
-
ActiveEntities: Record<TypeUuid, SharedEntity>;
|
|
9
|
-
onTeamSharingGet: () => TeamSharingRedux.TeamSharingGetAction;
|
|
10
|
-
onImportItem: (sharedEntity: SharedEntity) => TeamSharingRedux.TeamSharingImportItemAction;
|
|
11
|
-
onRemoveItem: (Uuid: string) => TeamSharingRedux.TeamSharingRemoveItemAction;
|
|
12
|
-
}
|
|
13
|
-
declare class TeamSharingPopupComponent extends React.Component<TeamSharingPopupProps, {}> {
|
|
14
|
-
componentDidMount(): void;
|
|
15
|
-
render(): JSX.Element;
|
|
16
|
-
isPresentInLocalState(sharedEntity: SharedEntity): boolean;
|
|
17
|
-
isStaleActive(sharedEntity: SharedEntity, staleActiveEntities: SharedEntityActiveStatus): boolean;
|
|
18
|
-
isUpToDateActive(sharedEntity: SharedEntity): boolean;
|
|
19
|
-
hasDeletionRights(sharedEntity: SharedEntity): boolean;
|
|
20
|
-
getSharedItemDetails(sharedEntity: SharedEntity): JSX.Element | "Preview not available";
|
|
21
|
-
}
|
|
22
|
-
export declare let TeamSharingPopup: import("react-redux").ConnectedComponent<typeof TeamSharingPopupComponent, any>;
|
|
23
|
-
export {};
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TeamSharingPopup = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const react_redux_1 = require("react-redux");
|
|
7
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
8
|
-
const PanelWithRow_1 = require("../Components/Panels/PanelWithRow");
|
|
9
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
10
|
-
const icons_1 = require("../../components/icons");
|
|
11
|
-
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
12
|
-
const rebass_1 = require("rebass");
|
|
13
|
-
const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
|
|
14
|
-
const HelpBlock_1 = tslib_1.__importDefault(require("../../components/HelpBlock"));
|
|
15
|
-
const CustomSortSharedEntity_1 = require("../CustomSort/CustomSortSharedEntity");
|
|
16
|
-
const CalculatedColumnSharedEntity_1 = require("../CalculatedColumn/CalculatedColumnSharedEntity");
|
|
17
|
-
const ExportSharedEntity_1 = require("../Export/ExportSharedEntity");
|
|
18
|
-
const ConditionalStyleSharedEntity_1 = require("../ConditionalStyle/ConditionalStyleSharedEntity");
|
|
19
|
-
const FormatColumnSharedEntity_1 = require("../FormatColumn/FormatColumnSharedEntity");
|
|
20
|
-
const LayoutSharedEntity_1 = require("../Layout/LayoutSharedEntity");
|
|
21
|
-
const PlusMinusSharedEntity_1 = require("../PlusMinus/PlusMinusSharedEntity");
|
|
22
|
-
const ShortcutSharedEntity_1 = require("../Shortcut/ShortcutSharedEntity");
|
|
23
|
-
const NamedQuerySharedEntity_1 = require("../Query/NamedQuerySharedEntity");
|
|
24
|
-
const FreeTextColumnSharedEntity_1 = require("../FreeTextColumn/FreeTextColumnSharedEntity");
|
|
25
|
-
const FilterSharedEntity_1 = require("../Filter/FilterSharedEntity");
|
|
26
|
-
const AlertSharedEntity_1 = require("../Alert/AlertSharedEntity");
|
|
27
|
-
const PopupPanel_1 = require("../Components/Popups/AdaptablePopup/PopupPanel");
|
|
28
|
-
class TeamSharingPopupComponent extends React.Component {
|
|
29
|
-
componentDidMount() {
|
|
30
|
-
this.props.onTeamSharingGet();
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
let colItems = [
|
|
34
|
-
{ Content: 'Module', Size: 2 },
|
|
35
|
-
{ Content: 'Description', Size: 2 },
|
|
36
|
-
{ Content: 'Audit', Size: 5 },
|
|
37
|
-
{ Content: 'Details', Size: 5 },
|
|
38
|
-
{ Content: '', Size: 1 },
|
|
39
|
-
];
|
|
40
|
-
const staleActiveEntities = this.props.api.internalApi
|
|
41
|
-
.getTeamSharingService()
|
|
42
|
-
.getStaleActiveSharedEntities();
|
|
43
|
-
let sharedItems = this.props.Entities.sort((a, b) => {
|
|
44
|
-
return a.Module < b.Module ? -1 : 1;
|
|
45
|
-
}).map((x, index) => {
|
|
46
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", key: index, padding: 2, fontSize: 'var( --ab-font-size-2)' },
|
|
47
|
-
React.createElement(rebass_1.Flex, { flex: 2 }, this.props.api.internalApi.getModuleService().getModuleInfoByModule(x.Module)
|
|
48
|
-
.FriendlyName),
|
|
49
|
-
React.createElement(rebass_1.Flex, { flex: 2, marginLeft: 2 }, x.Description),
|
|
50
|
-
React.createElement(rebass_1.Flex, { flex: 5, marginLeft: 2, flexDirection: "column" },
|
|
51
|
-
React.createElement("div", null,
|
|
52
|
-
React.createElement("b", null, x.Type === 'Snapshot' ? 'Snaphot' : 'Active share'),
|
|
53
|
-
" by ",
|
|
54
|
-
x.UserName,
|
|
55
|
-
" at",
|
|
56
|
-
' ',
|
|
57
|
-
new Date(x.Timestamp).toLocaleString()),
|
|
58
|
-
x.Type === 'Active' && x.Revision > 1 && (React.createElement("div", null,
|
|
59
|
-
"Latest ",
|
|
60
|
-
React.createElement("b", null,
|
|
61
|
-
"Revision ",
|
|
62
|
-
x.Revision),
|
|
63
|
-
" by ",
|
|
64
|
-
x.ChangedBy,
|
|
65
|
-
" at",
|
|
66
|
-
' ',
|
|
67
|
-
new Date(x.ChangedAt).toLocaleString())),
|
|
68
|
-
this.isUpToDateActive(x) && (React.createElement("div", { style: { color: 'var(--ab-color-success)' } },
|
|
69
|
-
"Active & ",
|
|
70
|
-
React.createElement("b", null, "up-to-date"))),
|
|
71
|
-
this.isStaleActive(x, staleActiveEntities) && (React.createElement("div", { style: { color: 'var(--ab-color-warn)' } },
|
|
72
|
-
"Local Revision ",
|
|
73
|
-
staleActiveEntities[x.Uuid].importedRevision,
|
|
74
|
-
" is ",
|
|
75
|
-
React.createElement("b", null, "stale!")))),
|
|
76
|
-
React.createElement(rebass_1.Flex, { flex: 5, marginLeft: 1 },
|
|
77
|
-
React.createElement(Panel_1.default, { variant: "primary", style: { flex: 1 }, fontSize: 'var( --ab-font-size-2)' }, this.getSharedItemDetails(x))),
|
|
78
|
-
React.createElement(rebass_1.Flex, { flex: 1 },
|
|
79
|
-
React.createElement(SimpleButton_1.default, { variant: "text", tooltip: "Import", onClick: () => this.props.onImportItem(x) },
|
|
80
|
-
React.createElement(icons_1.Icon, { name: "import-export" })),
|
|
81
|
-
this.hasDeletionRights(x) && (React.createElement(SimpleButton_1.default, { variant: "text", tooltip: "Remove", onClick: () => this.props.onRemoveItem(x.Uuid) },
|
|
82
|
-
React.createElement(icons_1.Icon, { name: "delete" }))))));
|
|
83
|
-
});
|
|
84
|
-
return (React.createElement(PopupPanel_1.PopupPanel, { headerText: this.props.moduleInfo.FriendlyName, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), glyphicon: this.props.moduleInfo.Glyph },
|
|
85
|
-
this.props.Entities.length == 0 ? (React.createElement(HelpBlock_1.default, { margin: 3 }, "Shared Items will appear here when available.")) : (React.createElement(PanelWithRow_1.PanelWithRow, { colItems: colItems })),
|
|
86
|
-
sharedItems));
|
|
87
|
-
}
|
|
88
|
-
isPresentInLocalState(sharedEntity) {
|
|
89
|
-
return !!this.props.api.internalApi
|
|
90
|
-
.getModuleService()
|
|
91
|
-
.getModuleById(sharedEntity.Module)
|
|
92
|
-
.getModuleAdaptableObjects()
|
|
93
|
-
.find((adaptableObject) => adaptableObject.Uuid === sharedEntity.Entity.Uuid);
|
|
94
|
-
}
|
|
95
|
-
isStaleActive(sharedEntity, staleActiveEntities) {
|
|
96
|
-
return this.isPresentInLocalState(sharedEntity) && !!staleActiveEntities[sharedEntity.Uuid];
|
|
97
|
-
}
|
|
98
|
-
isUpToDateActive(sharedEntity) {
|
|
99
|
-
var _a;
|
|
100
|
-
return (this.isPresentInLocalState(sharedEntity) &&
|
|
101
|
-
sharedEntity.Type === 'Active' &&
|
|
102
|
-
((_a = this.props.ActiveEntities[sharedEntity.Entity.Uuid]) === null || _a === void 0 ? void 0 : _a.Revision) === sharedEntity.Revision);
|
|
103
|
-
}
|
|
104
|
-
hasDeletionRights(sharedEntity) {
|
|
105
|
-
return this.props.api.teamSharingApi.hasTeamSharingFullRights() && !sharedEntity.IsReadOnly;
|
|
106
|
-
}
|
|
107
|
-
getSharedItemDetails(sharedEntity) {
|
|
108
|
-
switch (sharedEntity.Module) {
|
|
109
|
-
case ModuleConstants.CalculatedColumnModuleId: {
|
|
110
|
-
return React.createElement(CalculatedColumnSharedEntity_1.CalculatedColumnSharedEntity, { entity: sharedEntity.Entity, api: this.props.api });
|
|
111
|
-
}
|
|
112
|
-
case ModuleConstants.CustomSortModuleId: {
|
|
113
|
-
return React.createElement(CustomSortSharedEntity_1.CustomSortSharedEntity, { entity: sharedEntity.Entity, api: this.props.api });
|
|
114
|
-
}
|
|
115
|
-
case ModuleConstants.ConditionalStyleModuleId: {
|
|
116
|
-
return React.createElement(ConditionalStyleSharedEntity_1.ConditionalStyleSharedEntity, { entity: sharedEntity.Entity, api: this.props.api });
|
|
117
|
-
}
|
|
118
|
-
case ModuleConstants.ExportModuleId: {
|
|
119
|
-
return React.createElement(ExportSharedEntity_1.ExportSharedEntity, { entity: sharedEntity.Entity, api: this.props.api });
|
|
120
|
-
}
|
|
121
|
-
case ModuleConstants.FilterModuleId: {
|
|
122
|
-
return React.createElement(FilterSharedEntity_1.FilterSharedEntity, { entity: sharedEntity.Entity, api: this.props.api });
|
|
123
|
-
}
|
|
124
|
-
case ModuleConstants.FormatColumnModuleId: {
|
|
125
|
-
return React.createElement(FormatColumnSharedEntity_1.FormatColumnSharedEntity, { entity: sharedEntity.Entity, api: this.props.api });
|
|
126
|
-
}
|
|
127
|
-
case ModuleConstants.FreeTextColumnModuleId: {
|
|
128
|
-
return React.createElement(FreeTextColumnSharedEntity_1.FreeTextColumnSharedEntity, { entity: sharedEntity.Entity, api: this.props.api });
|
|
129
|
-
}
|
|
130
|
-
case ModuleConstants.LayoutModuleId: {
|
|
131
|
-
return React.createElement(LayoutSharedEntity_1.LayoutSharedEntity, { entity: sharedEntity.Entity, api: this.props.api });
|
|
132
|
-
}
|
|
133
|
-
case ModuleConstants.PlusMinusModuleId: {
|
|
134
|
-
return React.createElement(PlusMinusSharedEntity_1.PlusMinusSharedEntity, { entity: sharedEntity.Entity, api: this.props.api });
|
|
135
|
-
}
|
|
136
|
-
case ModuleConstants.ShortcutModuleId: {
|
|
137
|
-
return React.createElement(ShortcutSharedEntity_1.ShortcutSharedEntity, { entity: sharedEntity.Entity, api: this.props.api });
|
|
138
|
-
}
|
|
139
|
-
case ModuleConstants.QueryModuleId: {
|
|
140
|
-
return React.createElement(NamedQuerySharedEntity_1.NamedQuerySharedEntity, { entity: sharedEntity.Entity, api: this.props.api });
|
|
141
|
-
}
|
|
142
|
-
case ModuleConstants.AlertModuleId: {
|
|
143
|
-
return React.createElement(AlertSharedEntity_1.AlertSharedEntity, { entity: sharedEntity.Entity, api: this.props.api });
|
|
144
|
-
}
|
|
145
|
-
default:
|
|
146
|
-
return 'Preview not available';
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
function mapStateToProps(state, ownProps) {
|
|
151
|
-
return {
|
|
152
|
-
Entities: state.TeamSharing.SharedEntities,
|
|
153
|
-
ActiveEntities: state.TeamSharing.ActiveSharedEntityMap,
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
function mapDispatchToProps(dispatch) {
|
|
157
|
-
return {
|
|
158
|
-
onTeamSharingGet: () => dispatch(TeamSharingRedux.TeamSharingGet()),
|
|
159
|
-
onImportItem: (sharedEntity) => dispatch(TeamSharingRedux.TeamSharingImportItem(sharedEntity)),
|
|
160
|
-
onRemoveItem: (Uuid) => dispatch(TeamSharingRedux.TeamSharingRemoveItem(Uuid)),
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
exports.TeamSharingPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(TeamSharingPopupComponent);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rowDeleteIcon = exports.rowCloneIcon = exports.rowEditIcon = exports.rowAddIcon = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const icons_1 = require("../components/icons");
|
|
6
|
-
const React = tslib_1.__importStar(require("react"));
|
|
7
|
-
exports.rowAddIcon = React.createElement(icons_1.Icon, { name: "add-row" });
|
|
8
|
-
exports.rowEditIcon = React.createElement(icons_1.Icon, { name: "edit" });
|
|
9
|
-
exports.rowCloneIcon = React.createElement(icons_1.Icon, { name: "clone" });
|
|
10
|
-
exports.rowDeleteIcon = React.createElement(icons_1.Icon, { name: "delete" });
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const React = tslib_1.__importStar(require("react"));
|
|
5
|
-
const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
|
|
6
|
-
exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props),
|
|
7
|
-
React.createElement("path", { d: "M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6.62 16.69 6 15.19 6 13.59s.62-3.11 1.76-4.24L12 5.1v14.49z" })));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const React = tslib_1.__importStar(require("react"));
|
|
5
|
-
const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
|
|
6
|
-
exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props),
|
|
7
|
-
React.createElement("path", { d: "M6 19h4V5H6v14zm8-14v14h4V5h-4z", fill: "red" })));
|