@adaptabletools/adaptable 16.0.3 → 16.0.4
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 +3 -0
- package/base.css.map +1 -1
- package/bundle.cjs.js +141 -141
- package/index.css +5 -0
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/Fdc3Options.d.ts +48 -34
- package/src/Api/ConfigApi.d.ts +6 -1
- package/src/Api/Fdc3Api.d.ts +1 -1
- package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -1
- package/src/Api/Implementation/ConfigApiImpl.js +11 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/Fdc3Context.d.ts +6 -6
- package/src/PredefinedConfig/Common/Fdc3Context.js +6 -6
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +4 -4
- package/src/PredefinedConfig/Common/Fdc3Intent.js +4 -4
- package/src/Redux/ActionsReducers/CommentsRedux.d.ts +8 -0
- package/src/Redux/ActionsReducers/CommentsRedux.js +10 -1
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +11 -2
- package/src/components/icons/contact.d.ts +3 -0
- package/src/components/icons/contact.js +8 -0
- package/src/components/icons/index.js +10 -0
- package/src/components/icons/interactions.d.ts +3 -0
- package/src/components/icons/interactions.js +8 -0
- package/src/components/icons/money.d.ts +3 -0
- package/src/components/icons/money.js +8 -0
- package/src/components/icons/order.d.ts +3 -0
- package/src/components/icons/order.js +7 -0
- package/src/components/icons/organisation.d.ts +3 -0
- package/src/components/icons/organisation.js +8 -0
- package/src/metamodel/adaptable.metamodel.d.ts +50 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -1
- package/themes/dark.css +2 -0
- package/themes/dark.css.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -12,6 +12,10 @@ export declare const COMMENTS_EDIT = "COMMENTS_EDIT";
|
|
|
12
12
|
* @ReduxAction A Comment has been deleted
|
|
13
13
|
*/
|
|
14
14
|
export declare const COMMENTS_DELETE = "COMMENTS_DELETE";
|
|
15
|
+
/**
|
|
16
|
+
* @ReduxAction Comments Module is ready
|
|
17
|
+
*/
|
|
18
|
+
export declare const COMMENTS_READY = "COMMENTS_READY";
|
|
15
19
|
export interface AdaptableCommentAction extends Redux.Action {
|
|
16
20
|
adaptableComment: AdaptableComment;
|
|
17
21
|
}
|
|
@@ -21,9 +25,13 @@ export interface AdaptableCommentEditAction extends AdaptableCommentAction {
|
|
|
21
25
|
}
|
|
22
26
|
export interface AdaptableCommentDeleteAction extends AdaptableCommentAction {
|
|
23
27
|
}
|
|
28
|
+
export interface CommentsReadyAction extends Redux.Action {
|
|
29
|
+
commentsState: CommentsState;
|
|
30
|
+
}
|
|
24
31
|
export declare const CommentsAdd: (adaptableComment: AdaptableComment) => AdaptableCommentAddAction;
|
|
25
32
|
export declare const CommentsEdit: (adaptableComment: AdaptableComment) => AdaptableCommentEditAction;
|
|
26
33
|
export declare const CommentsDelete: (adaptableComment: AdaptableComment) => AdaptableCommentDeleteAction;
|
|
34
|
+
export declare const CommentsReady: (commentsState: CommentsState) => CommentsReadyAction;
|
|
27
35
|
export declare const GetCommentsSelector: (state: CommentsState, config?: {
|
|
28
36
|
PrimaryKeyValue: string | number;
|
|
29
37
|
ColumnId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommentsReducer = exports.GetCommentsSelector = exports.CommentsDelete = exports.CommentsEdit = exports.CommentsAdd = exports.COMMENTS_DELETE = exports.COMMENTS_EDIT = exports.COMMENTS_ADD = void 0;
|
|
3
|
+
exports.CommentsReducer = exports.GetCommentsSelector = exports.CommentsReady = exports.CommentsDelete = exports.CommentsEdit = exports.CommentsAdd = exports.COMMENTS_READY = exports.COMMENTS_DELETE = exports.COMMENTS_EDIT = exports.COMMENTS_ADD = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
6
6
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
@@ -16,6 +16,10 @@ exports.COMMENTS_EDIT = 'COMMENTS_EDIT';
|
|
|
16
16
|
* @ReduxAction A Comment has been deleted
|
|
17
17
|
*/
|
|
18
18
|
exports.COMMENTS_DELETE = 'COMMENTS_DELETE';
|
|
19
|
+
/**
|
|
20
|
+
* @ReduxAction Comments Module is ready
|
|
21
|
+
*/
|
|
22
|
+
exports.COMMENTS_READY = 'COMMENTS_READY';
|
|
19
23
|
const CommentsAdd = (adaptableComment) => ({
|
|
20
24
|
type: exports.COMMENTS_ADD,
|
|
21
25
|
adaptableComment,
|
|
@@ -31,6 +35,11 @@ const CommentsDelete = (adaptableComment) => ({
|
|
|
31
35
|
adaptableComment,
|
|
32
36
|
});
|
|
33
37
|
exports.CommentsDelete = CommentsDelete;
|
|
38
|
+
const CommentsReady = (commentsState) => ({
|
|
39
|
+
type: exports.COMMENTS_READY,
|
|
40
|
+
commentsState,
|
|
41
|
+
});
|
|
42
|
+
exports.CommentsReady = CommentsReady;
|
|
34
43
|
const GetCommentsSelector = (state, config) => {
|
|
35
44
|
var _a, _b;
|
|
36
45
|
if (!config) {
|
|
@@ -12,6 +12,8 @@ const AdaptableFormControlTextClear_1 = require("../Forms/AdaptableFormControlTe
|
|
|
12
12
|
const GridList_1 = tslib_1.__importDefault(require("../../../components/List/GridList"));
|
|
13
13
|
const react_1 = require("react");
|
|
14
14
|
const Loader_1 = require("../../../components/Loader");
|
|
15
|
+
const isEqual_1 = tslib_1.__importDefault(require("date-fns/isEqual"));
|
|
16
|
+
const DateHelper_1 = require("../../../Utilities/Helpers/DateHelper");
|
|
15
17
|
const ListBoxFilterForm = (props) => {
|
|
16
18
|
const [FilterValue, setFilterValue] = (0, react_1.useState)('');
|
|
17
19
|
const handleFilterValueChange = React.useCallback((newValue) => {
|
|
@@ -30,7 +32,10 @@ const ListBoxFilterForm = (props) => {
|
|
|
30
32
|
return (React.createElement(CheckBox_1.CheckBox, Object.assign({}, props, { variant: "agGrid", fontSize: 2, marginTop: 1, marginBottom: 1, marginLeft: 1, marginRight: 1, title: typeof props.children === 'string' ? props.children : null })));
|
|
31
33
|
};
|
|
32
34
|
const onClickItemColumnValue = (item) => {
|
|
33
|
-
|
|
35
|
+
let index = UiSelectedColumnValues.indexOf(item);
|
|
36
|
+
if (item instanceof Date) {
|
|
37
|
+
index = UiSelectedColumnValues.findIndex((selectedValue) => (0, isEqual_1.default)((0, DateHelper_1.parseDateValue)(selectedValue), (0, DateHelper_1.parseDateValue)(item)));
|
|
38
|
+
}
|
|
34
39
|
if (index >= 0) {
|
|
35
40
|
const newArray = [...UiSelectedColumnValues];
|
|
36
41
|
newArray.splice(index, 1);
|
|
@@ -41,7 +46,11 @@ const ListBoxFilterForm = (props) => {
|
|
|
41
46
|
}
|
|
42
47
|
};
|
|
43
48
|
const columnValuesItemsElements = props.columnDistinctValues.map((distinctValue, index) => {
|
|
44
|
-
|
|
49
|
+
let isActive = UiSelectedColumnValues.indexOf(distinctValue.value) >= 0;
|
|
50
|
+
// special case for date objects, need to check against string values
|
|
51
|
+
if (!isActive && distinctValue.value && distinctValue.value instanceof Date) {
|
|
52
|
+
isActive = UiSelectedColumnValues.some((dateStr) => (0, isEqual_1.default)((0, DateHelper_1.parseDateValue)(dateStr), (0, DateHelper_1.parseDateValue)(distinctValue.value)));
|
|
53
|
+
}
|
|
45
54
|
const columnLabel = distinctValue.label;
|
|
46
55
|
if (StringExtensions_1.StringExtensions.IsNullOrEmpty(columnLabel)) {
|
|
47
56
|
return null;
|
|
@@ -0,0 +1,8 @@
|
|
|
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, { viewBox: "0 -960 960 960" }),
|
|
7
|
+
React.createElement("path", { d: "M144-40v-60h672v60H144Zm0-820v-60h672v60H144Zm336 416q50 0 84-34t34-84q0-50-34-84t-84-34q-50 0-84 34t-34 84q0 50 34 84t84 34ZM132-160q-24 0-42-18t-18-42v-520q0-26 18-43t42-17h696q24 0 42 18t18 42v520q0 24-18 42t-42 18H132Zm88-60q51-63 121-94.5T479.5-346q68.5 0 140 31.5T740-220h88v-520H132v520h88Zm94 0h334q-31-30-72.5-48T480-286q-54 0-94.5 18T314-220Zm166.158-284Q456-504 439.5-521T423-562q0-24 16.342-41t40.5-17Q504-620 520.5-603t16.5 41q0 24-16.342 41t-40.5 17ZM480-480Z" }),
|
|
8
|
+
' '));
|
|
@@ -147,7 +147,12 @@ const visibility_1 = tslib_1.__importDefault(require("./visibility"));
|
|
|
147
147
|
const visibility_off_1 = tslib_1.__importDefault(require("./visibility-off"));
|
|
148
148
|
const mail_1 = tslib_1.__importDefault(require("./mail"));
|
|
149
149
|
const dollar_1 = tslib_1.__importDefault(require("./dollar"));
|
|
150
|
+
const organisation_1 = tslib_1.__importDefault(require("./organisation"));
|
|
150
151
|
const science_1 = tslib_1.__importDefault(require("./science"));
|
|
152
|
+
const interactions_1 = tslib_1.__importDefault(require("./interactions"));
|
|
153
|
+
const money_1 = tslib_1.__importDefault(require("./money"));
|
|
154
|
+
const order_1 = tslib_1.__importDefault(require("./order"));
|
|
155
|
+
const contact_1 = tslib_1.__importDefault(require("./contact"));
|
|
151
156
|
const Icon_1 = require("../Icon");
|
|
152
157
|
const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
|
|
153
158
|
const allIcons = {
|
|
@@ -295,7 +300,12 @@ const allIcons = {
|
|
|
295
300
|
fdc3: fdc3_1.default,
|
|
296
301
|
mail: mail_1.default,
|
|
297
302
|
dollar: dollar_1.default,
|
|
303
|
+
organisation: organisation_1.default,
|
|
298
304
|
science: science_1.default,
|
|
305
|
+
interactions: interactions_1.default,
|
|
306
|
+
money: money_1.default,
|
|
307
|
+
order: order_1.default,
|
|
308
|
+
contact: contact_1.default,
|
|
299
309
|
};
|
|
300
310
|
Object.keys(allIcons).forEach((name) => {
|
|
301
311
|
const ReactCmp = allIcons[name];
|
|
@@ -0,0 +1,8 @@
|
|
|
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, { viewBox: "0 -960 960 960" }),
|
|
7
|
+
React.createElement("path", { d: "M246-160q-24 0-42-18t-18-42v-406L47-800h773q24 0 42 18t18 42v520q0 24-18 42t-42 18H246Zm0-580v520h574v-520H246Zm284 471 43-43-63-61h206v-60H364l166 164ZM364-527h352L550-690l-43 42 63 61H364v60ZM246-740v520-520Z" }),
|
|
8
|
+
' '));
|
|
@@ -0,0 +1,8 @@
|
|
|
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, { viewBox: "0 -960 960 960" }),
|
|
7
|
+
React.createElement("path", { d: "M602-319h131q12.75 0 21.375-8.625T763-349v-262q0-12.75-8.625-21.375T733-641H602q-12.75 0-21.375 8.625T572-611v262q0 12.75 8.625 21.375T602-319Zm30-60v-202h71v202h-71Zm-278 60h126q12.75 0 21.375-8.625T510-349v-262q0-12.75-8.625-21.375T480-641H354q-12.75 0-21.375 8.625T324-611v262q0 12.75 8.625 21.375T354-319Zm30-60v-202h66v202h-66Zm-187 60h60v-322h-60v322ZM80-160v-640h800v640H80Zm60-580v520-520Zm0 520h680v-520H140v520Z" }),
|
|
8
|
+
' '));
|
|
@@ -0,0 +1,7 @@
|
|
|
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, { viewBox: "0 -960 960 960" }),
|
|
7
|
+
React.createElement("path", { d: "m704-139 139-138-42-42-97 95-39-39-42 43 81 81ZM240-620h480v-60H240v60ZM732.5-41Q655-41 600-96.5T545-228q0-78.435 54.99-133.717Q654.98-417 733-417q77 0 132.5 55.283Q921-306.435 921-228q0 76-55.5 131.5T732.5-41ZM120-81v-699q0-24.75 17.625-42.375T180-840h600q24.75 0 42.375 17.625T840-780v327q-14.169-6.857-29.085-11.429Q796-469 780-472v-308H180v599h310q2.885 18.172 8.942 34.586Q505-130 513-114l-33 33-60-60-60 60-60-60-60 60-60-60-60 60Zm120-199h252.272q3.728-16 8.228-31t12.5-29H240v60Zm0-170h384q22-11 46-17.5t50-8.5v-34H240v60Zm-60 269v-599 599Z" })));
|
|
@@ -0,0 +1,8 @@
|
|
|
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, { viewBox: "0 -960 960 960" }),
|
|
7
|
+
React.createElement("path", { d: "M80-120v-720h390v165h410v555H80Zm60-60h270v-105H140v105Zm0-165h270v-105H140v105Zm0-165h270v-105H140v105Zm0-165h270v-105H140v105Zm330 495h350v-435H470v435Zm80-270v-60h165v60H550Zm0 165v-60h165v60H550Z" }),
|
|
8
|
+
' '));
|
|
@@ -2677,6 +2677,24 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2677
2677
|
kind: string;
|
|
2678
2678
|
desc: string;
|
|
2679
2679
|
};
|
|
2680
|
+
Fdc3ContextOptions: {
|
|
2681
|
+
name: string;
|
|
2682
|
+
kind: string;
|
|
2683
|
+
desc: string;
|
|
2684
|
+
props: ({
|
|
2685
|
+
name: string;
|
|
2686
|
+
kind: string;
|
|
2687
|
+
desc: string;
|
|
2688
|
+
isOpt: boolean;
|
|
2689
|
+
ref: string;
|
|
2690
|
+
} | {
|
|
2691
|
+
name: string;
|
|
2692
|
+
kind: string;
|
|
2693
|
+
desc: string;
|
|
2694
|
+
isOpt: boolean;
|
|
2695
|
+
ref?: undefined;
|
|
2696
|
+
})[];
|
|
2697
|
+
};
|
|
2680
2698
|
Fdc3CustomContext: {
|
|
2681
2699
|
name: string;
|
|
2682
2700
|
kind: string;
|
|
@@ -2687,6 +2705,24 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2687
2705
|
kind: string;
|
|
2688
2706
|
desc: string;
|
|
2689
2707
|
};
|
|
2708
|
+
Fdc3IntentOptions: {
|
|
2709
|
+
name: string;
|
|
2710
|
+
kind: string;
|
|
2711
|
+
desc: string;
|
|
2712
|
+
props: ({
|
|
2713
|
+
name: string;
|
|
2714
|
+
kind: string;
|
|
2715
|
+
desc: string;
|
|
2716
|
+
isOpt: boolean;
|
|
2717
|
+
ref?: undefined;
|
|
2718
|
+
} | {
|
|
2719
|
+
name: string;
|
|
2720
|
+
kind: string;
|
|
2721
|
+
desc: string;
|
|
2722
|
+
isOpt: boolean;
|
|
2723
|
+
ref: string;
|
|
2724
|
+
})[];
|
|
2725
|
+
};
|
|
2690
2726
|
Fdc3IntentType: {
|
|
2691
2727
|
name: string;
|
|
2692
2728
|
kind: string;
|
|
@@ -2708,15 +2744,15 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2708
2744
|
kind: string;
|
|
2709
2745
|
desc: string;
|
|
2710
2746
|
isOpt: boolean;
|
|
2747
|
+
defVal: string;
|
|
2711
2748
|
ref?: undefined;
|
|
2712
|
-
defVal?: undefined;
|
|
2713
2749
|
} | {
|
|
2714
2750
|
name: string;
|
|
2715
2751
|
kind: string;
|
|
2716
2752
|
desc: string;
|
|
2717
2753
|
isOpt: boolean;
|
|
2718
|
-
defVal: string;
|
|
2719
2754
|
ref?: undefined;
|
|
2755
|
+
defVal?: undefined;
|
|
2720
2756
|
})[];
|
|
2721
2757
|
};
|
|
2722
2758
|
Fdc3StandardContextType: {
|
|
@@ -4696,6 +4732,18 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
4696
4732
|
kind: string;
|
|
4697
4733
|
desc: string;
|
|
4698
4734
|
};
|
|
4735
|
+
UIControlConfig: {
|
|
4736
|
+
name: string;
|
|
4737
|
+
kind: string;
|
|
4738
|
+
desc: string;
|
|
4739
|
+
props: {
|
|
4740
|
+
name: string;
|
|
4741
|
+
kind: string;
|
|
4742
|
+
desc: string;
|
|
4743
|
+
isOpt: boolean;
|
|
4744
|
+
ref: string;
|
|
4745
|
+
}[];
|
|
4746
|
+
};
|
|
4699
4747
|
UnbalancedGroupsKeyContext: {
|
|
4700
4748
|
name: string;
|
|
4701
4749
|
kind: string;
|