dotdata_widgets 0.1.8 → 0.1.10
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/css/widget.css +3 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -0
- package/lib/components/accordion/Accordion.js +4 -4
- package/lib/embed.js +18 -0
- package/lib/extension.js +32 -19
- package/lib/feature/feature-details/FeatureDistributionChart.js +1 -6
- package/lib/feature/feature-explanation/FeatureExplanation.js +8 -11
- package/lib/feature-descriptor/domains-descriptions-tree/context/domains-descriptions-selection-context.js +1 -1
- package/lib/feature-descriptor/domains-descriptions-tree/context/domains-descriptions-tree-config-context.js +2 -1
- package/lib/feature-descriptor/domains-descriptions-tree/context/domains-descriptions-tree-item-selection-context.js +14 -6
- package/lib/feature-descriptor/domains-descriptions-tree/domains-descriptions-tree.js +1 -1
- package/lib/feature-descriptor/domains-descriptions-tree/models/domains-descriptions-tree.model.js +11 -10
- package/lib/feature-descriptor/feature-descriptor-editor/AggregationEditor.js +109 -8
- package/lib/feature-descriptor/feature-descriptor-editor/FeatureDescriptorEditor.js +21 -8
- package/lib/feature-descriptor/feature-descriptor-editor/FilterEditor.js +65 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/ItemSelection.js +14 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/StringAutocomplete.js +13 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/ValueInput.js +2 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/AggregationSelection.js +15 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/AggregationTypeSelection.js +15 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/DistanceEditor.js +18 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/TemporalChangeEditor.js +23 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/aggregation-context.js +37 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/index.js +22 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/explainer.js +15 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/fd-operation-context.js +19 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/FieldLabel.js +17 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/ItemSelection.js +20 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/NumberField.js +24 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/StringField.js +24 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/StringSelectionField.js +24 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/ValueInput.js +19 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/index.js +22 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/widget-interface.js +3 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/filter/FilterTypeSelection.js +15 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/filter/index.js +20 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/index.js +23 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/widgets/ItemSelection.js +20 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/widgets/Label.js +2 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/widgets/ValueInput.js +19 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/widgets/index.js +19 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/widgets/widget-interface.js +3 -0
- package/lib/feature-descriptor/feature-descriptor-editor/index.js +5 -3
- package/lib/models/column/field.js +4 -2
- package/lib/models/column/table.js +4 -2
- package/lib/models/feature-descriptor/fd_data/aggregation.js +46 -24
- package/lib/models/feature-descriptor/fd_data/filter.js +20 -18
- package/lib/models/feature-descriptor/fd_data/index.js +7 -5
- package/lib/models/feature-descriptor/fd_data/join.js +4 -2
- package/lib/models/feature-descriptor/feature-descriptor.js +4 -2
- package/lib/models/feature-descriptor/index.js +6 -4
- package/lib/notebook.js +18 -0
- package/lib/utils/asserations.js +1 -1
- package/lib/utils/localize.js +1 -1
- package/lib/utils/widget-model/widget-model-context.js +1 -1
- package/lib/widgets/FeatureLeaderboardWidget.js +3 -19
- package/lib/widgets/FeatureSpaceWidget.js +3 -19
- package/lib/widgets/feature-leaderboard/FeatureLeaderboardOverview.js +2 -2
- package/lib/widgets/feature-leaderboard/FeatureLeaderboardView.js +5 -2
- package/lib/widgets/feature-space/FeatureDomainsDescriptions.js +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.useFdEditorAggregationContext = exports.FdEditorAggregationContext = void 0;
|
|
27
|
+
const React = __importStar(require("react"));
|
|
28
|
+
exports.FdEditorAggregationContext = React.createContext(undefined);
|
|
29
|
+
function useFdEditorAggregationContext() {
|
|
30
|
+
const context = React.useContext(exports.FdEditorAggregationContext);
|
|
31
|
+
if (context === undefined) {
|
|
32
|
+
throw new Error('useFdEditorAggregationContext must be used within a FdEditorAggregationContext');
|
|
33
|
+
}
|
|
34
|
+
return context;
|
|
35
|
+
}
|
|
36
|
+
exports.useFdEditorAggregationContext = useFdEditorAggregationContext;
|
|
37
|
+
//# sourceMappingURL=aggregation-context.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
+
if (k2 === undefined) k2 = k;
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
8
|
+
}) : (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
o[k2] = m[k];
|
|
11
|
+
}));
|
|
12
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
13
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
14
|
+
};
|
|
15
|
+
define(["require", "exports", "./AggregationTypeSelection", "./TemporalChangeEditor", "./DistanceEditor"], function (require, exports, AggregationTypeSelection_1, TemporalChangeEditor_1, DistanceEditor_1) {
|
|
16
|
+
"use strict";
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(AggregationTypeSelection_1, exports);
|
|
19
|
+
__exportStar(TemporalChangeEditor_1, exports);
|
|
20
|
+
__exportStar(DistanceEditor_1, exports);
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Token = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
function Token(props) {
|
|
9
|
+
const { field, widget, item, ...widgetProps } = props;
|
|
10
|
+
return (react_1.default.createElement("div", null,
|
|
11
|
+
react_1.default.createElement("span", null, field),
|
|
12
|
+
widget(widgetProps)));
|
|
13
|
+
}
|
|
14
|
+
exports.Token = Token;
|
|
15
|
+
//# sourceMappingURL=explainer.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
|
+
};
|
|
4
|
+
define(["require", "exports", "react"], function (require, exports, react_1) {
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.useFdEditorOperationContext = exports.FdEditorOperationContext = void 0;
|
|
8
|
+
react_1 = __importDefault(react_1);
|
|
9
|
+
exports.FdEditorOperationContext = react_1.default.createContext(undefined);
|
|
10
|
+
function useFdEditorOperationContext() {
|
|
11
|
+
const context = react_1.default.useContext(exports.FdEditorOperationContext);
|
|
12
|
+
if (context === undefined) {
|
|
13
|
+
throw new Error('useFdEditorOperationContext must be used within a FdEditorOperationContext');
|
|
14
|
+
}
|
|
15
|
+
return context;
|
|
16
|
+
}
|
|
17
|
+
exports.useFdEditorOperationContext = useFdEditorOperationContext;
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=fd-operation-context.js.map
|
package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/FieldLabel.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
|
+
};
|
|
4
|
+
define(["require", "exports", "react"], function (require, exports, react_1) {
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.FieldLabel = void 0;
|
|
8
|
+
react_1 = __importDefault(react_1);
|
|
9
|
+
const Capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
10
|
+
const FieldLabel = (props) => {
|
|
11
|
+
return (react_1.default.createElement("span", { style: { marginRight: '6px' } },
|
|
12
|
+
Capitalize(props.field.replaceAll('_', ' ')),
|
|
13
|
+
":"));
|
|
14
|
+
};
|
|
15
|
+
exports.FieldLabel = FieldLabel;
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=FieldLabel.js.map
|
package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/ItemSelection.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ColumnSelection = exports.ItemSelection = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const material_1 = require("@mui/material");
|
|
9
|
+
// Partial<Parameters<typeof Autocomplete<T, false, true, false>>[0]
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
11
|
+
function ItemSelection(props) {
|
|
12
|
+
const { onValueChange, value, options } = props;
|
|
13
|
+
return (react_1.default.createElement(material_1.Autocomplete, { options: options, value: value, size: "small", autoComplete: true, disableClearable: true, onChange: (e, value) => value && onValueChange(value), renderInput: params => react_1.default.createElement(material_1.TextField, { ...params, variant: "standard" }) }));
|
|
14
|
+
}
|
|
15
|
+
exports.ItemSelection = ItemSelection;
|
|
16
|
+
function ColumnSelection(props) {
|
|
17
|
+
return ItemSelection(props);
|
|
18
|
+
}
|
|
19
|
+
exports.ColumnSelection = ColumnSelection;
|
|
20
|
+
//# sourceMappingURL=ItemSelection.js.map
|
package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/NumberField.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
|
+
};
|
|
4
|
+
define(["require", "exports", "react", "@mui/material", "../fd-operation-context", "./FieldLabel"], function (require, exports, react_1, material_1, fd_operation_context_1, FieldLabel_1) {
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.NumberField = void 0;
|
|
8
|
+
react_1 = __importDefault(react_1);
|
|
9
|
+
function NumberField(props) {
|
|
10
|
+
var _a;
|
|
11
|
+
const [item, setItem] = (0, fd_operation_context_1.useFdEditorOperationContext)();
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
const value = (_a = item[props.field]) !== null && _a !== void 0 ? _a : null;
|
|
15
|
+
return (react_1.default.createElement("span", { style: {
|
|
16
|
+
display: 'inline-flex',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
} },
|
|
19
|
+
react_1.default.createElement(FieldLabel_1.FieldLabel, { field: props.field }),
|
|
20
|
+
react_1.default.createElement(material_1.TextField, { style: { width: '80px' }, value: value, variant: "standard", type: "number", onChange: e => setItem(Object.assign(Object.assign({}, item), { [props.field]: Number(e.target.value) })) })));
|
|
21
|
+
}
|
|
22
|
+
exports.NumberField = NumberField;
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=NumberField.js.map
|
package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/StringField.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
|
+
};
|
|
4
|
+
define(["require", "exports", "react", "@mui/material", "../fd-operation-context", "./FieldLabel"], function (require, exports, react_1, material_1, fd_operation_context_1, FieldLabel_1) {
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.StringField = void 0;
|
|
8
|
+
react_1 = __importDefault(react_1);
|
|
9
|
+
function StringField(props) {
|
|
10
|
+
var _a;
|
|
11
|
+
const [item, setItem] = (0, fd_operation_context_1.useFdEditorOperationContext)();
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
const value = (_a = item[props.field]) !== null && _a !== void 0 ? _a : null;
|
|
15
|
+
return (react_1.default.createElement("span", { style: {
|
|
16
|
+
display: 'inline-flex',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
} },
|
|
19
|
+
react_1.default.createElement(FieldLabel_1.FieldLabel, { field: props.field }),
|
|
20
|
+
react_1.default.createElement(material_1.TextField, { style: { width: '120px' }, value: value, variant: "standard", type: "number", onChange: e => setItem(Object.assign(Object.assign({}, item), { [props.field]: e.target.value })) })));
|
|
21
|
+
}
|
|
22
|
+
exports.StringField = StringField;
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=StringField.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
|
+
};
|
|
4
|
+
define(["require", "exports", "react", "@mui/material", "../fd-operation-context", "./FieldLabel"], function (require, exports, react_1, material_1, fd_operation_context_1, FieldLabel_1) {
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.StringSelectionField = void 0;
|
|
8
|
+
react_1 = __importDefault(react_1);
|
|
9
|
+
function StringSelectionField(props) {
|
|
10
|
+
var _a;
|
|
11
|
+
const [item, setItem] = (0, fd_operation_context_1.useFdEditorOperationContext)();
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
const value = (_a = item[props.field]) !== null && _a !== void 0 ? _a : null;
|
|
15
|
+
return (react_1.default.createElement("span", { style: {
|
|
16
|
+
display: 'inline-flex',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
} },
|
|
19
|
+
react_1.default.createElement(FieldLabel_1.FieldLabel, { field: props.field }),
|
|
20
|
+
react_1.default.createElement(material_1.Autocomplete, { style: { width: '200px' }, options: props.options, value: value, size: "small", autoComplete: true, disableClearable: true, onChange: (e, value) => setItem(Object.assign(Object.assign({}, item), { [props.field]: value })), renderInput: params => react_1.default.createElement(material_1.TextField, Object.assign({}, params, { variant: "standard" })) })));
|
|
21
|
+
}
|
|
22
|
+
exports.StringSelectionField = StringSelectionField;
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=StringSelectionField.js.map
|
package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/ValueInput.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NumberInput = exports.TextInput = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const material_1 = require("@mui/material");
|
|
9
|
+
function TextInput(props) {
|
|
10
|
+
const { onValueChange, value } = props;
|
|
11
|
+
return (react_1.default.createElement(material_1.TextField, { value: value, variant: "standard", onChange: e => onValueChange(e.target.value) }));
|
|
12
|
+
}
|
|
13
|
+
exports.TextInput = TextInput;
|
|
14
|
+
function NumberInput(props) {
|
|
15
|
+
const { onValueChange, value } = props;
|
|
16
|
+
return (react_1.default.createElement(material_1.TextField, { value: value, variant: "standard", type: "number", onChange: e => onValueChange(Number(e.target.value)) }));
|
|
17
|
+
}
|
|
18
|
+
exports.NumberInput = NumberInput;
|
|
19
|
+
//# sourceMappingURL=ValueInput.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
+
if (k2 === undefined) k2 = k;
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
8
|
+
}) : (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
o[k2] = m[k];
|
|
11
|
+
}));
|
|
12
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
13
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
14
|
+
};
|
|
15
|
+
define(["require", "exports", "./StringField", "./NumberField", "./StringSelectionField"], function (require, exports, StringField_1, NumberField_1, StringSelectionField_1) {
|
|
16
|
+
"use strict";
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(StringField_1, exports);
|
|
19
|
+
__exportStar(NumberField_1, exports);
|
|
20
|
+
__exportStar(StringSelectionField_1, exports);
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
package/lib/feature-descriptor/feature-descriptor-editor/components/filter/FilterTypeSelection.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
|
+
};
|
|
4
|
+
define(["require", "exports", "react", "@models/feature-descriptor", "@mui/material"], function (require, exports, react_1, feature_descriptor_1, material_1) {
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.FilterTypeSelector = void 0;
|
|
8
|
+
react_1 = __importDefault(react_1);
|
|
9
|
+
const FilterTypeSelector = (props) => {
|
|
10
|
+
const options = Object.values(feature_descriptor_1.Filter.Type);
|
|
11
|
+
return (react_1.default.createElement(material_1.Autocomplete, { style: { width: '300px' }, options: options, value: props.selectedType, size: "small", autoComplete: true, disableClearable: true, onChange: (e, value) => value && props.onTypeChange(value), renderInput: params => react_1.default.createElement(material_1.TextField, Object.assign({}, params, { variant: "standard" })) }));
|
|
12
|
+
};
|
|
13
|
+
exports.FilterTypeSelector = FilterTypeSelector;
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=FilterTypeSelection.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
+
if (k2 === undefined) k2 = k;
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
8
|
+
}) : (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
o[k2] = m[k];
|
|
11
|
+
}));
|
|
12
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
13
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
14
|
+
};
|
|
15
|
+
define(["require", "exports", "./FilterTypeSelection"], function (require, exports, FilterTypeSelection_1) {
|
|
16
|
+
"use strict";
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(FilterTypeSelection_1, exports);
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
+
if (k2 === undefined) k2 = k;
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
8
|
+
}) : (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
o[k2] = m[k];
|
|
11
|
+
}));
|
|
12
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
13
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
14
|
+
};
|
|
15
|
+
define(["require", "exports", "./field-widgets", "./fd-operation-context", "./aggregations", "./filter"], function (require, exports, field_widgets_1, fd_operation_context_1, aggregations_1, filter_1) {
|
|
16
|
+
"use strict";
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(field_widgets_1, exports);
|
|
19
|
+
__exportStar(fd_operation_context_1, exports);
|
|
20
|
+
__exportStar(aggregations_1, exports);
|
|
21
|
+
__exportStar(filter_1, exports);
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ColumnSelection = exports.ItemSelection = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const material_1 = require("@mui/material");
|
|
9
|
+
// Partial<Parameters<typeof Autocomplete<T, false, true, false>>[0]
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
11
|
+
function ItemSelection(props) {
|
|
12
|
+
const { onValueChange, value, options } = props;
|
|
13
|
+
return (react_1.default.createElement(material_1.Autocomplete, { options: options, value: value, size: "small", autoComplete: true, disableClearable: true, onChange: (e, value) => value && onValueChange(value), renderInput: params => react_1.default.createElement(material_1.TextField, { ...params, variant: "standard" }) }));
|
|
14
|
+
}
|
|
15
|
+
exports.ItemSelection = ItemSelection;
|
|
16
|
+
function ColumnSelection(props) {
|
|
17
|
+
return ItemSelection(props);
|
|
18
|
+
}
|
|
19
|
+
exports.ColumnSelection = ColumnSelection;
|
|
20
|
+
//# sourceMappingURL=ItemSelection.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NumberInput = exports.TextInput = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const material_1 = require("@mui/material");
|
|
9
|
+
function TextInput(props) {
|
|
10
|
+
const { onValueChange, value } = props;
|
|
11
|
+
return (react_1.default.createElement(material_1.TextField, { value: value, variant: "standard", onChange: e => onValueChange(e.target.value) }));
|
|
12
|
+
}
|
|
13
|
+
exports.TextInput = TextInput;
|
|
14
|
+
function NumberInput(props) {
|
|
15
|
+
const { onValueChange, value } = props;
|
|
16
|
+
return (react_1.default.createElement(material_1.TextField, { value: value, variant: "standard", type: "number", onChange: e => onValueChange(Number(e.target.value)) }));
|
|
17
|
+
}
|
|
18
|
+
exports.NumberInput = NumberInput;
|
|
19
|
+
//# sourceMappingURL=ValueInput.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ItemSelection"), exports);
|
|
18
|
+
__exportStar(require("./ValueInput"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
2
|
if (k2 === undefined) k2 = k;
|
|
4
3
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -13,6 +12,9 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
12
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
13
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
14
|
};
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
define(["require", "exports", "./FeatureDescriptorEditor"], function (require, exports, FeatureDescriptorEditor_1) {
|
|
16
|
+
"use strict";
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(FeatureDescriptorEditor_1, exports);
|
|
19
|
+
});
|
|
18
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,25 +1,47 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
define(["require", "exports"], function (require, exports) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Aggregation = void 0;
|
|
5
|
+
var Aggregation;
|
|
6
|
+
(function (Aggregation) {
|
|
7
|
+
let Type;
|
|
8
|
+
(function (Type) {
|
|
9
|
+
Type["AbsoluteTemporalChangeCountRecords"] = "AbsoluteTemporalChangeCountRecords";
|
|
10
|
+
Type["AbsoluteTemporalChangeMax"] = "AbsoluteTemporalChangeMax";
|
|
11
|
+
Type["AbsoluteTemporalChangeMean"] = "AbsoluteTemporalChangeMean";
|
|
12
|
+
Type["AbsoluteTemporalChangeMin"] = "AbsoluteTemporalChangeMin";
|
|
13
|
+
Type["AbsoluteTemporalChangeSum"] = "AbsoluteTemporalChangeSum";
|
|
14
|
+
Type["AsIs"] = "AsIs";
|
|
15
|
+
Type["C3"] = "C3";
|
|
16
|
+
Type["CWT"] = "CWT";
|
|
17
|
+
Type["ClosestTimeDifference"] = "ClosestTimeDifference";
|
|
18
|
+
Type["Count"] = "Count";
|
|
19
|
+
Type["CountRecords"] = "CountRecords";
|
|
20
|
+
Type["CountUnique"] = "CountUnique";
|
|
21
|
+
Type["DayOfWeek"] = "DayOfWeek";
|
|
22
|
+
Type["Distance"] = "Distance";
|
|
23
|
+
Type["Exist"] = "Exist";
|
|
24
|
+
Type["NullRatio"] = "NullRatio";
|
|
25
|
+
Type["RatioOfValue"] = "RatioOfValue";
|
|
26
|
+
Type["SourceTimeDifference"] = "SourceTimeDifference";
|
|
27
|
+
Type["Std"] = "Std";
|
|
28
|
+
Type["StdDistance"] = "StdDistance";
|
|
29
|
+
Type["StdSourceTimeDifference"] = "StdSourceTimeDifference";
|
|
30
|
+
Type["Sum"] = "Sum";
|
|
31
|
+
Type["SumDistance"] = "SumDistance";
|
|
32
|
+
Type["TargetMeanEncode"] = "TargetMeanEncode";
|
|
33
|
+
Type["TemporalChangeCountRecords"] = "TemporalChangeCountRecords";
|
|
34
|
+
Type["TemporalChangeMax"] = "TemporalChangeMax";
|
|
35
|
+
Type["TemporalChangeMean"] = "TemporalChangeMean";
|
|
36
|
+
Type["TemporalChangeMin"] = "TemporalChangeMin";
|
|
37
|
+
Type["TemporalChangeSum"] = "TemporalChangeSum";
|
|
38
|
+
Type["TemporalChangeRatioCountRecords"] = "TemporalChangeRatioCountRecords";
|
|
39
|
+
Type["TemporalChangeRatioMax"] = "TemporalChangeRatioMax";
|
|
40
|
+
Type["TemporalChangeRatioMean"] = "TemporalChangeRatioMean";
|
|
41
|
+
Type["TemporalChangeRatioMin"] = "TemporalChangeRatioMin";
|
|
42
|
+
Type["TemporalChangeRatioSum"] = "TemporalChangeRatioSum";
|
|
43
|
+
// TimeDifference = 'TimeDifference',
|
|
44
|
+
})(Type = Aggregation.Type || (Aggregation.Type = {}));
|
|
45
|
+
})(Aggregation = exports.Aggregation || (exports.Aggregation = {}));
|
|
46
|
+
});
|
|
25
47
|
//# sourceMappingURL=aggregation.js.map
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})(
|
|
1
|
+
define(["require", "exports"], function (require, exports) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Filter = void 0;
|
|
5
|
+
var Filter;
|
|
6
|
+
(function (Filter) {
|
|
7
|
+
let Type;
|
|
8
|
+
(function (Type) {
|
|
9
|
+
Type["AboveValue"] = "AboveValue";
|
|
10
|
+
Type["BelowValue"] = "BelowValue";
|
|
11
|
+
Type["FullPass"] = "FullPass";
|
|
12
|
+
Type["NgramFilter"] = "NgramFilter";
|
|
13
|
+
Type["RangeOfValues"] = "RangeOfValues";
|
|
14
|
+
Type["HourOfDay"] = "HourOfDay";
|
|
15
|
+
Type["Value"] = "Value";
|
|
16
|
+
Type["Weekday"] = "Weekday";
|
|
17
|
+
Type["Weekend"] = "Weekend";
|
|
18
|
+
})(Type = Filter.Type || (Filter.Type = {}));
|
|
19
|
+
})(Filter = exports.Filter || (exports.Filter = {}));
|
|
20
|
+
});
|
|
19
21
|
//# sourceMappingURL=filter.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
2
|
if (k2 === undefined) k2 = k;
|
|
4
3
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -13,8 +12,11 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
12
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
13
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
14
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
__exportStar(
|
|
15
|
+
define(["require", "exports", "./aggregation", "./filter", "./join"], function (require, exports, aggregation_1, filter_1, join_1) {
|
|
16
|
+
"use strict";
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(aggregation_1, exports);
|
|
19
|
+
__exportStar(filter_1, exports);
|
|
20
|
+
__exportStar(join_1, exports);
|
|
21
|
+
});
|
|
20
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
1
|
+
define(["require", "exports"], function (require, exports) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
});
|
|
3
5
|
//# sourceMappingURL=feature-descriptor.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
2
|
if (k2 === undefined) k2 = k;
|
|
4
3
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -13,7 +12,10 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
12
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
13
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
14
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
define(["require", "exports", "./feature-descriptor", "./fd_data"], function (require, exports, feature_descriptor_1, fd_data_1) {
|
|
16
|
+
"use strict";
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(feature_descriptor_1, exports);
|
|
19
|
+
__exportStar(fd_data_1, exports);
|
|
20
|
+
});
|
|
19
21
|
//# sourceMappingURL=index.js.map
|