@adaptabletools/adaptable 12.0.0 → 12.0.1-canary.0
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 +1 -1
- package/bundle.cjs.js +118 -118
- package/index.css +1 -1
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +1 -1
- package/src/Api/Implementation/InternalApiImpl.d.ts +4 -1
- package/src/Api/Implementation/InternalApiImpl.js +16 -3
- package/src/Api/InternalApi.d.ts +4 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +24 -6
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +2 -2
- package/src/PredefinedConfig/Selection/GridCellRange.d.ts +19 -0
- package/src/PredefinedConfig/StatusBarState.d.ts +1 -1
- package/src/Strategy/AdaptableModuleBase.d.ts +6 -5
- package/src/Strategy/AlertModule.d.ts +2 -8
- package/src/Strategy/AlertModule.js +3 -0
- package/src/Strategy/Interface/IModule.d.ts +5 -3
- package/src/Utilities/MenuItem.d.ts +4 -4
- package/src/View/Alert/ActiveAlertsPanelItemLabel.d.ts +5 -0
- package/src/View/Alert/ActiveAlertsPanelItemLabel.js +22 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +2 -2
- 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.js +6 -1
- package/src/View/Components/Buttons/ButtonPause.js +11 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +1 -1
- package/src/View/Components/Panels/PanelWithButton.d.ts +2 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +3 -2
- 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/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +6 -0
- package/src/View/GridInfo/GridInfoPopup.js +1 -1
- package/src/View/UIHelper.d.ts +2 -2
- package/src/agGrid/ActionColumnRenderer.js +5 -11
- package/src/agGrid/Adaptable.d.ts +2 -26
- package/src/agGrid/Adaptable.js +51 -51
- 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 -17
- 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 +70 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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/index.css
CHANGED
|
@@ -2649,7 +2649,7 @@ template {
|
|
|
2649
2649
|
--ab-cmp-adaptable-object-compact-list__header__padding: var(--ab-space-2);
|
|
2650
2650
|
--ab-cmp-adaptable-object-compact-list__header__margin-bottom: var(--ab-space-1);
|
|
2651
2651
|
--ab-cmp-adaptable-object-compact-list__header__font-size: var(--ab-font-size-4);
|
|
2652
|
-
--ab-cmp-adaptable-object-compact-list-item-name__width:
|
|
2652
|
+
--ab-cmp-adaptable-object-compact-list-item-name__width: 95px;
|
|
2653
2653
|
--ab-cmp-adaptable-object-compact-list-item-name__padding: var(--ab-space-1);
|
|
2654
2654
|
--ab-cmp-adaptable-object-compact-list-item-name__margin-right: var(--ab-space-1);
|
|
2655
2655
|
--ab-cmp-adaptable-object-compact-list-item-name__font-size: var(--ab-font-size-4); }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "12.0.0",
|
|
3
|
+
"version": "12.0.1-canary.0",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1656107619570;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -131,7 +131,7 @@ export interface ActionRowFormOptions {
|
|
|
131
131
|
/**
|
|
132
132
|
* Custom form buttons provider. If provided, the custom implementation is responsible for firing the 'ActionRowSubmitted' and/or invoking the 'onFormSubmit' callback (if necessary).
|
|
133
133
|
*/
|
|
134
|
-
formButtons?: AdaptableButton<
|
|
134
|
+
formButtons?: AdaptableButton<ActionRowContext>[];
|
|
135
135
|
/**
|
|
136
136
|
* Function which is invoked when the form in an Action Row is submitted via a standard button (provided by AdapTable). This is not invoked when custom form buttons are provided!
|
|
137
137
|
*
|
|
@@ -114,7 +114,10 @@ export declare class InternalApiImpl extends ApiBase implements InternalApi {
|
|
|
114
114
|
getLabelForButton(button: AdaptableButton<BaseContext>, context: BaseContext): string | undefined;
|
|
115
115
|
getTooltipForButton(button: AdaptableButton<BaseContext>, context: BaseContext): string | undefined;
|
|
116
116
|
getStyleForButton(button: AdaptableButton<BaseContext>, context: BaseContext): ButtonStyle | undefined;
|
|
117
|
-
getIconForButton(button: AdaptableButton<BaseContext>, context: BaseContext
|
|
117
|
+
getIconForButton(button: AdaptableButton<BaseContext>, context: BaseContext, defaultWidthHeight?: {
|
|
118
|
+
height: number | string;
|
|
119
|
+
width: number | string;
|
|
120
|
+
}): AdaptableIcon | undefined;
|
|
118
121
|
isDocumentationLinksDisplayed(): boolean;
|
|
119
122
|
getQueryPreviewData(): any;
|
|
120
123
|
getLocalTeamSharingEntities(): SharedEntity[];
|
|
@@ -16,6 +16,7 @@ const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
|
16
16
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
17
17
|
const AdaptableAlert_1 = require("../../PredefinedConfig/Common/AdaptableAlert");
|
|
18
18
|
const waitForCondition_1 = require("../../Utilities/waitForCondition");
|
|
19
|
+
const AdaptableIconComponent_1 = require("../../components/AdaptableIconComponent");
|
|
19
20
|
class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
20
21
|
getSystemState() {
|
|
21
22
|
return this.getAdaptableState().System;
|
|
@@ -360,16 +361,28 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
360
361
|
return button.buttonStyle;
|
|
361
362
|
}
|
|
362
363
|
}
|
|
363
|
-
getIconForButton(button, context) {
|
|
364
|
+
getIconForButton(button, context, defaultWidthHeight) {
|
|
365
|
+
var _a, _b;
|
|
364
366
|
if (!button.icon) {
|
|
365
367
|
return;
|
|
366
368
|
}
|
|
369
|
+
let buttonIcon;
|
|
367
370
|
if (button.icon != null && typeof button.icon === 'function') {
|
|
368
|
-
|
|
371
|
+
buttonIcon = button.icon(button, context);
|
|
369
372
|
}
|
|
370
373
|
else {
|
|
371
|
-
|
|
374
|
+
buttonIcon = button.icon;
|
|
375
|
+
}
|
|
376
|
+
if (!buttonIcon) {
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
if (AdaptableIconComponent_1.isAdaptableInternalIcon(buttonIcon) || AdaptableIconComponent_1.isAdaptableExternalIcon(buttonIcon)) {
|
|
380
|
+
const defaultIconWidth = (_a = defaultWidthHeight === null || defaultWidthHeight === void 0 ? void 0 : defaultWidthHeight.width) !== null && _a !== void 0 ? _a : 'var(--ab-cmp-simple-button__width)';
|
|
381
|
+
const defaultIconHeight = (_b = defaultWidthHeight === null || defaultWidthHeight === void 0 ? void 0 : defaultWidthHeight.height) !== null && _b !== void 0 ? _b : 'var(--ab-cmp-simple-button__height)';
|
|
382
|
+
const buttonIconStyle = Object.assign({}, { width: defaultIconWidth, height: defaultIconHeight }, buttonIcon.style);
|
|
383
|
+
buttonIcon.style = buttonIconStyle;
|
|
372
384
|
}
|
|
385
|
+
return buttonIcon;
|
|
373
386
|
}
|
|
374
387
|
isDocumentationLinksDisplayed() {
|
|
375
388
|
return this.adaptable.adaptableOptions.userInterfaceOptions.showDocumentationLinks;
|
package/src/Api/InternalApi.d.ts
CHANGED
|
@@ -117,7 +117,10 @@ export interface InternalApi {
|
|
|
117
117
|
getLabelForButton(button: AdaptableButton<BaseContext>, context: BaseContext): string | undefined;
|
|
118
118
|
getTooltipForButton(button: AdaptableButton<BaseContext>, context: BaseContext): string | undefined;
|
|
119
119
|
getStyleForButton(button: AdaptableButton<BaseContext>, context: BaseContext): ButtonStyle | undefined;
|
|
120
|
-
getIconForButton(button: AdaptableButton<BaseContext>, context: BaseContext
|
|
120
|
+
getIconForButton(button: AdaptableButton<BaseContext>, context: BaseContext, defaultWidthHeight?: {
|
|
121
|
+
height: number | string;
|
|
122
|
+
width: number | string;
|
|
123
|
+
}): AdaptableIcon | undefined;
|
|
121
124
|
dispatchReduxAction(action: Action): void;
|
|
122
125
|
waitForTeamSharingImportEnd(): Promise<boolean>;
|
|
123
126
|
getLocalTeamSharingEntities(): SharedEntity[];
|
|
@@ -1,25 +1,44 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Defines an icon to be used in AdapTable (e.g. in Dashboard Header, Buttons, Menu, etc.)
|
|
4
4
|
*/
|
|
5
|
-
export declare type AdaptableIcon = AdaptableInternalIcon | AdaptableExternalIcon;
|
|
5
|
+
export declare type AdaptableIcon = AdaptableInternalIcon | AdaptableExternalIcon | AdaptableElementIcon;
|
|
6
6
|
/**
|
|
7
7
|
* Defines an icon from the internal AdapTable icon set
|
|
8
8
|
*/
|
|
9
9
|
export interface AdaptableInternalIcon extends AdaptableBaseIcon {
|
|
10
|
+
/**
|
|
11
|
+
* The name of the icon to use (referencing the AdapTable Icon Library)
|
|
12
|
+
*/
|
|
10
13
|
name: AdaptableInternalIconName;
|
|
14
|
+
/**
|
|
15
|
+
* The size (in pixels) of the SVG icon (defaults to `17px`)
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
11
18
|
size?: number;
|
|
12
19
|
}
|
|
13
20
|
/**
|
|
14
21
|
* Defines an icon from an external source
|
|
15
22
|
*/
|
|
16
23
|
export interface AdaptableExternalIcon extends AdaptableBaseIcon {
|
|
24
|
+
/**
|
|
25
|
+
* The URL of the icon to use
|
|
26
|
+
*/
|
|
17
27
|
src: string;
|
|
18
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Defines an icon as a provided DOM element or HTML string
|
|
31
|
+
*/
|
|
32
|
+
export interface AdaptableElementIcon {
|
|
33
|
+
/**
|
|
34
|
+
* The icon to display, either a DOM element or HTML string
|
|
35
|
+
*/
|
|
36
|
+
element: HTMLElement | string;
|
|
37
|
+
}
|
|
19
38
|
/**
|
|
20
39
|
* Base interface for AdaptableIcon
|
|
21
40
|
*/
|
|
22
|
-
interface AdaptableBaseIcon {
|
|
41
|
+
export interface AdaptableBaseIcon {
|
|
23
42
|
/**
|
|
24
43
|
* The class name of the icon
|
|
25
44
|
*/
|
|
@@ -27,7 +46,6 @@ interface AdaptableBaseIcon {
|
|
|
27
46
|
/**
|
|
28
47
|
* CSS Properties
|
|
29
48
|
*/
|
|
30
|
-
style?: CSSProperties;
|
|
49
|
+
style?: React.CSSProperties;
|
|
31
50
|
}
|
|
32
|
-
export declare type AdaptableInternalIconName =
|
|
33
|
-
export {};
|
|
51
|
+
export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-box' | 'check-box-outline' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'column-info' | 'comment' | 'conditional-style' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
|
|
@@ -266,7 +266,7 @@ exports.SystemPredicateDefs = [
|
|
|
266
266
|
{
|
|
267
267
|
id: 'StartsWith',
|
|
268
268
|
label: 'Starts With',
|
|
269
|
-
icon: { name: '
|
|
269
|
+
icon: { name: 'starts-with' },
|
|
270
270
|
columnScope: { DataTypes: ['String'] },
|
|
271
271
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
272
272
|
inputs: [{ type: 'text' }],
|
|
@@ -284,7 +284,7 @@ exports.SystemPredicateDefs = [
|
|
|
284
284
|
{
|
|
285
285
|
id: 'EndsWith',
|
|
286
286
|
label: 'Ends With',
|
|
287
|
-
icon: { name: '
|
|
287
|
+
icon: { name: 'ends-with' },
|
|
288
288
|
columnScope: { DataTypes: ['String'] },
|
|
289
289
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
290
290
|
inputs: [{ type: 'text' }],
|
|
@@ -1,7 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines a range of Cell - used in Grid Api Selection methods
|
|
3
|
+
* Typically use either PrimaryKey Values or Row Indexes
|
|
4
|
+
*/
|
|
1
5
|
export interface GridCellRange {
|
|
6
|
+
/**
|
|
7
|
+
* Columns to select
|
|
8
|
+
*/
|
|
2
9
|
columnIds: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Primary Key value of row at start of range
|
|
12
|
+
*/
|
|
3
13
|
primaryKeyValueStart?: any;
|
|
14
|
+
/**
|
|
15
|
+
* Primary Key value of row at end of range
|
|
16
|
+
*/
|
|
4
17
|
primaryKeyValueEnd?: any;
|
|
18
|
+
/**
|
|
19
|
+
* Index of row at start of range
|
|
20
|
+
*/
|
|
5
21
|
rowIndexStart?: any;
|
|
22
|
+
/**
|
|
23
|
+
* Index of row at end of range
|
|
24
|
+
*/
|
|
6
25
|
rowIndexEnd?: any;
|
|
7
26
|
}
|
|
@@ -5,7 +5,7 @@ import { AdaptableStatusBarPanel } from './Common/Types';
|
|
|
5
5
|
*/
|
|
6
6
|
export interface StatusBarState extends ConfigState {
|
|
7
7
|
/**
|
|
8
|
-
* Adaptable Status Bars to display -
|
|
8
|
+
* Adaptable Status Bars to display - can be unlimited and displayed in 3 locations
|
|
9
9
|
* @defaultValue null
|
|
10
10
|
*/
|
|
11
11
|
StatusBars?: AdaptableStatusBar[];
|
|
@@ -11,6 +11,7 @@ import { AdaptableApi } from '../Api/AdaptableApi';
|
|
|
11
11
|
import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
|
|
12
12
|
import { CalculatedColumn } from '../PredefinedConfig/CalculatedColumnState';
|
|
13
13
|
import { FreeTextColumn } from '../PredefinedConfig/FreeTextColumnState';
|
|
14
|
+
import { AdaptableInternalIconName } from '../PredefinedConfig/Common/AdaptableIcon';
|
|
14
15
|
/**
|
|
15
16
|
* Base class for all strategies and does most of the work of creating menus
|
|
16
17
|
*/
|
|
@@ -18,7 +19,7 @@ export declare abstract class AdaptableModuleBase implements IModule {
|
|
|
18
19
|
protected api: AdaptableApi;
|
|
19
20
|
moduleInfo: ModuleInfo;
|
|
20
21
|
AccessLevel: AccessLevel;
|
|
21
|
-
constructor(module: AdaptableModule, friendlyName: string, glyph:
|
|
22
|
+
constructor(module: AdaptableModule, friendlyName: string, glyph: AdaptableInternalIconName, popup: string, description: string, api: AdaptableApi);
|
|
22
23
|
protected getViewAccessLevel(): AccessLevel;
|
|
23
24
|
protected getEditAccessLevel(): AccessLevel;
|
|
24
25
|
isModuleAvailable(): boolean;
|
|
@@ -37,12 +38,12 @@ export declare abstract class AdaptableModuleBase implements IModule {
|
|
|
37
38
|
createMainMenuItemShowPopup({ Label, ComponentName, Icon, PopupParams, }: {
|
|
38
39
|
Label: string;
|
|
39
40
|
ComponentName: string;
|
|
40
|
-
Icon:
|
|
41
|
+
Icon: AdaptableInternalIconName;
|
|
41
42
|
PopupParams?: ModuleParams;
|
|
42
43
|
}): MenuItemShowPopup;
|
|
43
|
-
createColumnMenuItemClickFunction(Label: string, Icon:
|
|
44
|
-
createColumnMenuItemReduxAction(Label: string, Icon:
|
|
45
|
-
createColumnMenuItemShowPopup(Label: string, ComponentName: string, Icon:
|
|
44
|
+
createColumnMenuItemClickFunction(Label: string, Icon: AdaptableInternalIconName, ClickFunction: () => void): MenuItemDoClickFunction;
|
|
45
|
+
createColumnMenuItemReduxAction(Label: string, Icon: AdaptableInternalIconName, Action: Action): MenuItemDoReduxAction;
|
|
46
|
+
createColumnMenuItemShowPopup(Label: string, ComponentName: string, Icon: AdaptableInternalIconName, PopupParams?: ModuleParams): MenuItemShowPopup;
|
|
46
47
|
canCreateColumnMenuItem(column: AdaptableColumn, minimumAccessLevel: AccessLevel, functionType?: 'sort' | 'editable' | 'style' | 'filter' | 'quickfilter' | 'numeric'): boolean;
|
|
47
48
|
getTeamSharingAction(): TeamSharingImportInfo<AdaptableObject> | undefined;
|
|
48
49
|
getModuleNamedQueryReferences(): string[];
|
|
@@ -4,7 +4,7 @@ import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
|
4
4
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
5
5
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
6
6
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
7
|
-
import { AdaptableModuleView, AdaptableObjectView, IModule } from './Interface/IModule';
|
|
7
|
+
import { AdaptableModuleView, AdaptableObjectCompactView, AdaptableObjectView, IModule } from './Interface/IModule';
|
|
8
8
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
9
9
|
export declare class AlertModule extends AdaptableModuleBase implements IModule {
|
|
10
10
|
constructor(api: AdaptableApi);
|
|
@@ -25,13 +25,7 @@ export declare class AlertModule extends AdaptableModuleBase implements IModule
|
|
|
25
25
|
private isAlertPredicateTriggered;
|
|
26
26
|
private isAlertDefinitionForRowChangeEvent;
|
|
27
27
|
getTeamSharingAction(): TeamSharingImportInfo<AlertDefinition>;
|
|
28
|
-
toViewCompact(alert: AdaptableAlert):
|
|
29
|
-
item: {
|
|
30
|
-
name: string;
|
|
31
|
-
values: string[];
|
|
32
|
-
};
|
|
33
|
-
abObject: AdaptableAlert;
|
|
34
|
-
};
|
|
28
|
+
toViewCompact(alert: AdaptableAlert): AdaptableObjectCompactView;
|
|
35
29
|
toView(alert: AlertDefinition): AdaptableObjectView;
|
|
36
30
|
toViewAll(): AdaptableObjectView[];
|
|
37
31
|
getViewProperties(): AdaptableModuleView;
|
|
@@ -17,6 +17,7 @@ const getAlertBehaviourViewItems_1 = require("./Utilities/getAlertBehaviourViewI
|
|
|
17
17
|
const AlertEmptyView_1 = require("../View/Alert/AlertEmptyView");
|
|
18
18
|
const AlertStatusSubPanel_1 = require("../View/Alert/AlertStatusSubPanel");
|
|
19
19
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
20
|
+
const ActiveAlertsPanelItemLabel_1 = require("../View/Alert/ActiveAlertsPanelItemLabel");
|
|
20
21
|
class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
21
22
|
constructor(api) {
|
|
22
23
|
super(ModuleConstants.AlertModuleId, 'Alert', 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
|
|
@@ -249,6 +250,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
249
250
|
return {
|
|
250
251
|
item: {
|
|
251
252
|
name: alert.header,
|
|
253
|
+
label: ActiveAlertsPanelItemLabel_1.ActiveAlertsPanelItemLabel,
|
|
252
254
|
values: [alert.message],
|
|
253
255
|
},
|
|
254
256
|
abObject: alert,
|
|
@@ -285,6 +287,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
285
287
|
getEditWizard: () => AlertWizard_1.AlertWizard,
|
|
286
288
|
getStatusBarPanelProps: () => {
|
|
287
289
|
return {
|
|
290
|
+
popoverMinWidth: 360,
|
|
288
291
|
view: AlertStatusSubPanel_1.AlertStatusPanel,
|
|
289
292
|
};
|
|
290
293
|
},
|
|
@@ -9,13 +9,13 @@ import { CalculatedColumn } from '../../PredefinedConfig/CalculatedColumnState';
|
|
|
9
9
|
import { FreeTextColumn } from '../../PredefinedConfig/FreeTextColumnState';
|
|
10
10
|
import { AdaptableOnePageWizardProps } from '../../View/Wizard/Interface/IAdaptableWizard';
|
|
11
11
|
import * as Redux from 'redux';
|
|
12
|
-
import { SuspendableObject } from '../../../types';
|
|
12
|
+
import { AdaptableInternalIconName, SuspendableObject } from '../../../types';
|
|
13
13
|
import { StatusBarPanelProps } from '../../View/StatusBar/StatusBarPanel';
|
|
14
14
|
import { StrictExtract } from '../../Utilities/Extensions/TypeExtensions';
|
|
15
15
|
export interface ModuleInfo {
|
|
16
16
|
ModuleName: AdaptableModule;
|
|
17
17
|
FriendlyName: string;
|
|
18
|
-
Glyph:
|
|
18
|
+
Glyph: AdaptableInternalIconName;
|
|
19
19
|
Popup: string;
|
|
20
20
|
Description: string;
|
|
21
21
|
HelpPage: string;
|
|
@@ -34,7 +34,9 @@ export interface AdaptableObjectItemView {
|
|
|
34
34
|
/**
|
|
35
35
|
* Custom name for the property name
|
|
36
36
|
*/
|
|
37
|
-
label?: string
|
|
37
|
+
label?: string | React.FunctionComponent<{
|
|
38
|
+
data: AdaptableObject | SuspendableObject;
|
|
39
|
+
}>;
|
|
38
40
|
/**
|
|
39
41
|
* How the item is rendered.
|
|
40
42
|
* Defaults to tags.
|
|
@@ -2,9 +2,9 @@ import * as Redux from 'redux';
|
|
|
2
2
|
import { ModuleParams } from '../View/Components/SharedProps/ModuleViewPopupProps';
|
|
3
3
|
import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
4
4
|
import { AdaptableModule } from '../PredefinedConfig/Common/Types';
|
|
5
|
-
import { AdaptableIcon } from '../PredefinedConfig/Common/AdaptableIcon';
|
|
5
|
+
import { AdaptableIcon, AdaptableInternalIconName } from '../PredefinedConfig/Common/AdaptableIcon';
|
|
6
6
|
export declare class MenuItemDoReduxAction implements AdaptableMenuItem {
|
|
7
|
-
constructor(label: string, module: AdaptableModule, reduxAction: Redux.Action, icon:
|
|
7
|
+
constructor(label: string, module: AdaptableModule, reduxAction: Redux.Action, icon: AdaptableInternalIconName, isVisible: boolean);
|
|
8
8
|
reduxAction: Redux.Action;
|
|
9
9
|
label: string;
|
|
10
10
|
module: AdaptableModule;
|
|
@@ -12,7 +12,7 @@ export declare class MenuItemDoReduxAction implements AdaptableMenuItem {
|
|
|
12
12
|
icon: AdaptableIcon;
|
|
13
13
|
}
|
|
14
14
|
export declare class MenuItemDoClickFunction implements AdaptableMenuItem {
|
|
15
|
-
constructor(label: string, module: AdaptableModule, clickFunction: () => void, icon:
|
|
15
|
+
constructor(label: string, module: AdaptableModule, clickFunction: () => void, icon: AdaptableInternalIconName, isVisible: boolean);
|
|
16
16
|
onClick: () => void;
|
|
17
17
|
label: string;
|
|
18
18
|
module: AdaptableModule;
|
|
@@ -20,7 +20,7 @@ export declare class MenuItemDoClickFunction implements AdaptableMenuItem {
|
|
|
20
20
|
icon: AdaptableIcon;
|
|
21
21
|
}
|
|
22
22
|
export declare class MenuItemShowPopup implements AdaptableMenuItem {
|
|
23
|
-
constructor(label: string, module: AdaptableModule, componentName: string, icon:
|
|
23
|
+
constructor(label: string, module: AdaptableModule, componentName: string, icon: AdaptableInternalIconName, isVisible: boolean, popupParams?: ModuleParams);
|
|
24
24
|
reduxAction: Redux.Action;
|
|
25
25
|
label: string;
|
|
26
26
|
module: AdaptableModule;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActiveAlertsPanelItemLabel = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const rebass_1 = require("rebass");
|
|
7
|
+
const icons_1 = tslib_1.__importDefault(require("../../components/icons"));
|
|
8
|
+
const UIHelper_1 = tslib_1.__importDefault(require("../UIHelper"));
|
|
9
|
+
const ActiveAlertsPanelItemLabel = (props) => {
|
|
10
|
+
const iconColor = UIHelper_1.default.getColorByMessageType(props.data.alertDefinition.MessageType);
|
|
11
|
+
const iconStyle = {
|
|
12
|
+
color: iconColor,
|
|
13
|
+
fill: iconColor,
|
|
14
|
+
};
|
|
15
|
+
const iconName = UIHelper_1.default.getGlyphByMessageType(props.data.alertDefinition.MessageType);
|
|
16
|
+
const IconCmp = icons_1.default[iconName];
|
|
17
|
+
const icon = IconCmp ? React.createElement(IconCmp, null) : null;
|
|
18
|
+
return (React.createElement(rebass_1.Box, null,
|
|
19
|
+
React.createElement(rebass_1.Text, { style: Object.assign({ float: 'left' }, iconStyle) }, icon),
|
|
20
|
+
props.data.header));
|
|
21
|
+
};
|
|
22
|
+
exports.ActiveAlertsPanelItemLabel = ActiveAlertsPanelItemLabel;
|
|
@@ -113,8 +113,8 @@ const CalculatedColumnSettingsWizardSection = (props) => {
|
|
|
113
113
|
React.createElement(Input_1.default, { "data-name": "column-width", type: "number", width: 300, value: Width || '', onChange: (e) => handleSpecialColumnSettingsChange({
|
|
114
114
|
Width: Number(e.target.value),
|
|
115
115
|
}) })),
|
|
116
|
-
React.createElement(FormLayout_1.FormRow, { label: "Header
|
|
117
|
-
React.createElement(Input_1.default, { "data-name": "
|
|
116
|
+
React.createElement(FormLayout_1.FormRow, { label: "Header Tooltip" },
|
|
117
|
+
React.createElement(Input_1.default, { "data-name": "header-tooltip", type: "text", width: 300, value: HeaderToolTip, onChange: (e) => handleSpecialColumnSettingsChange({
|
|
118
118
|
HeaderToolTip: e.target.value,
|
|
119
119
|
}) })),
|
|
120
120
|
' ',
|
|
@@ -11,4 +11,4 @@ export declare const ColorPicker: React.ForwardRefExoticComponent<Pick<Omit<Reac
|
|
|
11
11
|
api: AdaptableApi;
|
|
12
12
|
onChange: (color: string) => void;
|
|
13
13
|
value: string;
|
|
14
|
-
} & Omit<BoxProps, "onChange">, "max" | "required" | "default" | "high" | "low" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "disabled" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "type" | "min" | "contextMenu" | "api" | "value" | "onKeyDown" | "rows" | "name" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "
|
|
14
|
+
} & Omit<BoxProps, "onChange">, "max" | "required" | "default" | "high" | "low" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "disabled" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "type" | "min" | "contextMenu" | "api" | "value" | "onKeyDown" | "rows" | "name" | "checked" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "maxLength" | "minLength" | "readOnly" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "poster" | "challenge" | "keyType" | "keyParams" | "mt" | "mb" | "ml" | "mr" | "my" | "marginY" | "mx" | "marginX" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "bg"> & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AdaptableInputProps } from '../AdaptableInput';
|
|
3
3
|
export declare type AdaptableDateInputProps = AdaptableInputProps;
|
|
4
|
-
declare const AdaptableDateInput: React.ForwardRefExoticComponent<Pick<import("../../../components/Input").InputProps, "max" | "required" | "default" | "high" | "low" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "disabled" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "type" | "min" | "contextMenu" | "value" | "onKeyDown" | "rows" | "name" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "
|
|
4
|
+
declare const AdaptableDateInput: React.ForwardRefExoticComponent<Pick<import("../../../components/Input").InputProps, "max" | "required" | "default" | "high" | "low" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "disabled" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "type" | "min" | "contextMenu" | "value" | "onKeyDown" | "rows" | "name" | "checked" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "maxLength" | "minLength" | "readOnly" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "poster" | "challenge" | "keyType" | "keyParams" | "mt" | "mb" | "ml" | "mr" | "my" | "marginY" | "mx" | "marginX" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "bg" | "placehoder"> & React.RefAttributes<HTMLInputElement>>;
|
|
5
5
|
export default AdaptableDateInput;
|
|
@@ -11,7 +11,7 @@ const ValueSelector_1 = require("../ValueSelector");
|
|
|
11
11
|
const baseClassName = 'ab-Adaptable-Object-Compact-List';
|
|
12
12
|
const ICON_SIZE = 20;
|
|
13
13
|
const AdaptableObjectCompactListItem = (props) => {
|
|
14
|
-
var _a, _b, _c, _d, _e, _f
|
|
14
|
+
var _a, _b, _c, _d, _e, _f;
|
|
15
15
|
const dispatch = react_redux_1.useDispatch();
|
|
16
16
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
17
17
|
const objectView = props.module.toViewCompact(props.abObject);
|
|
@@ -23,15 +23,19 @@ const AdaptableObjectCompactListItem = (props) => {
|
|
|
23
23
|
const handleDelete = React.useCallback(() => {
|
|
24
24
|
dispatch(deleteAction);
|
|
25
25
|
}, []);
|
|
26
|
-
|
|
26
|
+
let labelEl = objectView.item.label;
|
|
27
|
+
if (typeof labelEl === 'function') {
|
|
28
|
+
labelEl = React.createElement(labelEl, { data: props.abObject });
|
|
29
|
+
}
|
|
30
|
+
labelEl = labelEl !== null && labelEl !== void 0 ? labelEl : objectView.item.name;
|
|
27
31
|
return (React.createElement(rebass_1.Flex, { className: `${baseClassName}__Item`, alignItems: "center" },
|
|
28
|
-
|
|
32
|
+
labelEl && React.createElement(rebass_1.Flex, { className: `${baseClassName}__Item__Name` }, labelEl),
|
|
29
33
|
React.createElement(rebass_1.Box, { flex: 1 },
|
|
30
34
|
objectView.item.view &&
|
|
31
35
|
React.createElement(objectView.item.view, {
|
|
32
36
|
data: props.abObject,
|
|
33
37
|
}),
|
|
34
|
-
Boolean(((
|
|
38
|
+
Boolean(((_d = objectView.item) === null || _d === void 0 ? void 0 : _d.values) && ((_f = (_e = objectView.item) === null || _e === void 0 ? void 0 : _e.values) === null || _f === void 0 ? void 0 : _f.length)) && (React.createElement(rebass_1.Box, { mb: 2, className: `${baseClassName}__Item__Values` },
|
|
35
39
|
React.createElement(ValueSelector_1.ValueOptionsTags, { style: { marginRight: 0 }, readOnly: true, options: objectView.item.values, value: objectView.item.values, allowWrap: true, toIdentifier: (c) => c, toLabel: (c) => React.createElement(React.Fragment, null, c) })))),
|
|
36
40
|
React.createElement(rebass_1.Flex, { ml: 1 }, deleteAction && (React.createElement(SimpleButton_1.default, { iconSize: ICON_SIZE, icon: "delete", variant: "text", onClick: handleDelete, accessLevel: moduleAccessLevel })))));
|
|
37
41
|
};
|
|
@@ -59,9 +59,14 @@ const AdaptableObjectListItem = (props) => {
|
|
|
59
59
|
return (React.createElement(rebass_1.Flex, { "data-name": "adaptable-object-list-item", "data-value": props.data.abObject.Uuid, as: "li", mb: 3, className: itemClassName },
|
|
60
60
|
React.createElement(rebass_1.Box, { flex: 1, className: `${baseClassName}__rows` }, (_j = (_h = (_g = props.data.items).filter) === null || _h === void 0 ? void 0 : _h.call(_g, Boolean)) === null || _j === void 0 ? void 0 : _j.map((tag, index) => {
|
|
61
61
|
var _a;
|
|
62
|
+
let labelEl = tag.label;
|
|
63
|
+
if (typeof tag.label === 'function') {
|
|
64
|
+
labelEl = React.createElement(tag.label, { data: props.data.abObject });
|
|
65
|
+
}
|
|
66
|
+
labelEl = labelEl !== null && labelEl !== void 0 ? labelEl : tag.name;
|
|
62
67
|
return (React.createElement(rebass_1.Flex, { "data-name": tag.name, key: index, mb: 2, className: `${baseClassName}__row` },
|
|
63
68
|
React.createElement(rebass_1.Box, { className: `${baseClassName}__label`, mr: 3 },
|
|
64
|
-
|
|
69
|
+
labelEl,
|
|
65
70
|
EditWizard && (React.createElement(SimpleButton_1.default, { accessLevel: accessLevel, className: `${baseClassName}__edit-property`, ml: 1, icon: "edit", tooltip: "edit", iconSize: 18, variant: "text", onClick: () => {
|
|
66
71
|
handleOnEdit(tag.name);
|
|
67
72
|
} }))),
|
|
@@ -6,7 +6,17 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
7
7
|
class ButtonPause extends React.Component {
|
|
8
8
|
render() {
|
|
9
|
-
|
|
9
|
+
const buttonIcon = this.props.fillColor === 'red'
|
|
10
|
+
? {
|
|
11
|
+
name: 'pause',
|
|
12
|
+
style: {
|
|
13
|
+
fill: 'red',
|
|
14
|
+
},
|
|
15
|
+
}
|
|
16
|
+
: {
|
|
17
|
+
name: 'pause',
|
|
18
|
+
};
|
|
19
|
+
return (React.createElement(SimpleButton_1.default, Object.assign({ "data-name": "pause", tooltip: "Pause", iconSize: 20, icon: buttonIcon, variant: "text" }, this.props)));
|
|
10
20
|
}
|
|
11
21
|
}
|
|
12
22
|
exports.ButtonPause = ButtonPause;
|
|
@@ -153,7 +153,7 @@ class QuickFilterFormComponent extends React.Component {
|
|
|
153
153
|
}
|
|
154
154
|
renderPredicateIcon(predicateDef) {
|
|
155
155
|
if (!predicateDef || !predicateDef.icon) {
|
|
156
|
-
return React.createElement(icons_1.Icon, { name: "filter
|
|
156
|
+
return React.createElement(icons_1.Icon, { name: "filter" });
|
|
157
157
|
}
|
|
158
158
|
if ('text' in predicateDef.icon) {
|
|
159
159
|
return React.createElement("span", null, predicateDef.icon.text);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PanelProps } from '../../../components/Panel';
|
|
3
3
|
import { BoxProps } from 'rebass';
|
|
4
|
+
import { AdaptableInternalIconName } from '../../../PredefinedConfig/Common/AdaptableIcon';
|
|
4
5
|
export interface PanelWithButtonProps extends PanelProps {
|
|
5
6
|
buttonContent?: React.ReactNode;
|
|
6
7
|
buttonClick?: () => void;
|
|
@@ -10,7 +11,7 @@ export interface PanelWithButtonProps extends PanelProps {
|
|
|
10
11
|
headerProps?: BoxProps & {
|
|
11
12
|
'data-name': string;
|
|
12
13
|
};
|
|
13
|
-
glyphicon?:
|
|
14
|
+
glyphicon?: AdaptableInternalIconName;
|
|
14
15
|
buttonDisabled?: boolean;
|
|
15
16
|
buttonStyle?: string;
|
|
16
17
|
borderRadius?: string;
|