dotdata_widgets 0.1.9 → 0.2.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/README.md +71 -104
- package/css/widget.css +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/lib/components/ActionFooter.js +21 -0
- package/lib/components/WithLabel.js +20 -0
- package/lib/components/accordion/Accordion.js +4 -4
- package/lib/components/column-analytic-type-icons/analytic-type-category.js +13 -0
- package/lib/components/column-analytic-type-icons/analytic-type-datatime.js +13 -0
- package/lib/components/column-analytic-type-icons/analytic-type-geo-latitude.js +13 -0
- package/lib/components/column-analytic-type-icons/analytic-type-geo-longitude.js +13 -0
- package/lib/components/column-analytic-type-icons/analytic-type-numeric.js +13 -0
- package/lib/components/column-analytic-type-icons/index.js +22 -0
- package/lib/{feature-descriptor/domains-descriptors-tree/components → components/column-source-type-icons}/index.js +1 -1
- package/lib/components/column-source-type-icons/source-type-int.js +16 -0
- package/lib/{components/input/index.js → embed.js} +2 -2
- package/lib/extension.js +32 -19
- package/lib/feature/feature-details/FeatureCorrelatedFeaturesTable.js +1 -1
- package/lib/feature/feature-details/FeatureDistributionChart.js +1 -6
- package/lib/feature/feature-explanation/FeatureExplanation.js +8 -11
- package/lib/feature/feature-likes/{feature-likes.js → FeatureLikes.js} +3 -6
- package/lib/feature/feature-likes/index.js +1 -1
- package/lib/feature/feature-user-explanation/FeatureUserExplanation.js +14 -0
- package/lib/feature/feature-user-explanation/FeatureUserExplanationDisplay.js +23 -0
- package/lib/feature/feature-user-explanation/explanation-to-user-explanation.js +58 -0
- package/lib/{feature-descriptor/domains-descriptors-tree/context → feature/feature-user-explanation}/index.js +3 -2
- 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/index.js +1 -0
- package/lib/feature-descriptor/domains-descriptions-tree/models/domains-descriptions-tree.model.js +3 -6
- package/lib/feature-descriptor/feature-descriptor-editor/AggregationEditor.js +206 -109
- package/lib/feature-descriptor/feature-descriptor-editor/FeatureDescriptorEditor.js +32 -21
- package/lib/feature-descriptor/feature-descriptor-editor/FilterEditor.js +69 -61
- package/lib/feature-descriptor/feature-descriptor-editor/JoinEditor.js +50 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/EditorTemplateRenderer.js +14 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/AggregationTypeSelection.js +11 -11
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/ColumnEditor.js +15 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/DistanceEditor.js +30 -13
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/LastKEditor.js +17 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/TemporalChangeEditor.js +19 -16
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/TopicEditor.js +16 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/index.js +8 -7
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/BooleanField.js +31 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/ChipField.js +27 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/ColumnField.js +47 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/NumberField.js +12 -20
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/StringField.js +12 -20
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/TableColumnField.js +30 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/TableField.js +17 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/_InlineEditorField.js +48 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/index.js +10 -7
- package/lib/feature-descriptor/feature-descriptor-editor/components/filter/FilterTypeSelection.js +14 -11
- package/lib/feature-descriptor/feature-descriptor-editor/components/filter/index.js +3 -5
- package/lib/feature-descriptor/feature-descriptor-editor/components/index.js +7 -8
- package/lib/feature-descriptor/feature-descriptor-editor/components/join/JoinConditionEditor.js +96 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/join/JoinConditionTypeSelection.js +15 -0
- package/lib/feature-descriptor/feature-descriptor-editor/components/join/JoinTableColumnSelector.js +15 -0
- package/lib/feature-descriptor/{domains-descriptors-tree/models → feature-descriptor-editor/components/join}/index.js +2 -1
- package/lib/feature-descriptor/feature-descriptor-editor/context/feature-descriptor-editor-context.js +38 -0
- package/lib/feature-descriptor/feature-descriptor-editor/context/feature-descriptor-editor.js +46 -0
- package/lib/feature-descriptor/{context → feature-descriptor-editor/context}/index.js +2 -1
- package/lib/feature-descriptor/feature-descriptor-editor/index.js +5 -5
- package/lib/feature-descriptor/feature-descriptor-editor/models/aggregation-draft.js +351 -0
- package/lib/feature-descriptor/feature-descriptor-editor/models/common-field-draft.js +13 -0
- package/lib/feature-descriptor/feature-descriptor-editor/models/feature-descriptor-editor.js +29 -0
- package/lib/feature-descriptor/feature-descriptor-editor/models/filter-draft.js +79 -0
- package/lib/feature-descriptor/feature-descriptor-editor/models/index.js +21 -0
- package/lib/feature-descriptor/feature-descriptor-editor/models/join-draft.js +78 -0
- package/lib/models/column/column.js +59 -0
- package/lib/models/column/field.js +2 -4
- package/lib/models/column/index.js +3 -0
- package/lib/models/column/table-columns.js +27 -0
- package/lib/models/column/table.js +2 -4
- package/lib/models/feature/feature.js +13 -0
- package/lib/models/feature-descriptor/fd_data/aggregation.js +86 -46
- package/lib/models/feature-descriptor/fd_data/filter.js +32 -20
- package/lib/models/feature-descriptor/fd_data/index.js +5 -7
- package/lib/models/feature-descriptor/fd_data/join.js +20 -4
- package/lib/models/feature-descriptor/fd_data/utils.js +25 -0
- package/lib/models/feature-descriptor/feature-descriptor.js +2 -4
- package/lib/models/feature-descriptor/index.js +4 -6
- package/lib/{feature-descriptors-domain/feature-descriptor-domain-descriptions/components/index.js → notebook.js} +2 -2
- package/lib/utils/asserations.js +1 -1
- package/lib/utils/crypto.js +28 -0
- package/lib/utils/index.js +2 -0
- package/lib/utils/localize.js +1 -1
- package/lib/utils/redux/action.js +35 -0
- package/lib/utils/redux/index.js +10 -0
- package/lib/{feature-descriptor/feature-descriptor-editor/components/field-widgets/widget-interface.js → utils/redux/models.js} +1 -1
- package/lib/utils/redux/reducer.js +30 -0
- package/lib/{feature-descriptor/feature-descriptor-editor/components/widgets/widget-interface.js → utils/types.js} +1 -1
- package/lib/utils/widget-api.js +47 -0
- package/lib/utils/widget-model/widget-model-context.js +1 -1
- package/lib/widgets/FeatureLeaderboardWidget.js +14 -21
- package/lib/widgets/FeatureSpaceWidget.js +3 -19
- package/lib/widgets/feature-leaderboard/FeatureLeaderboardView.js +45 -10
- package/lib/widgets/feature-leaderboard/components/{leaderboard-feature-likes.js → LeaderboardFeatureLikes.js} +4 -4
- package/lib/widgets/feature-leaderboard/leaderboard-entry/FeatureLeaderboardEntryDrawer.js +88 -0
- package/lib/widgets/feature-leaderboard/leaderboard-entry/FeatureLeaderboardEntryFeatureEditor.js +31 -0
- package/lib/widgets/feature-leaderboard/leaderboard-entry/FeatureLeaderboardEntryHeader.js +15 -0
- package/lib/widgets/feature-leaderboard/leaderboard-entry/FeatureLeaderboardUserExplanation.js +28 -0
- package/lib/widgets/feature-space/FeatureSpaceView.js +6 -6
- package/package.json +8 -10
- package/lib/components/input/input.js +0 -14
- package/lib/feature-descriptor/context/fd-domains-descriptions-selection.context.js +0 -37
- package/lib/feature-descriptor/domains-descriptors-tree/components/column-tree-item.js +0 -16
- package/lib/feature-descriptor/domains-descriptors-tree/components/descriptions-tree-item.js +0 -50
- package/lib/feature-descriptor/domains-descriptors-tree/components/tree-item-label.js +0 -56
- package/lib/feature-descriptor/domains-descriptors-tree/components/type-tree-item.js +0 -19
- package/lib/feature-descriptor/domains-descriptors-tree/config/index.js +0 -2
- package/lib/feature-descriptor/domains-descriptors-tree/context/domains-descriptions-tree-config-context.js +0 -43
- package/lib/feature-descriptor/domains-descriptors-tree/context/domains-descriptions-tree-context-provider.js +0 -53
- package/lib/feature-descriptor/domains-descriptors-tree/context/domains-descriptions-tree-item-selection-context.js +0 -56
- package/lib/feature-descriptor/domains-descriptors-tree/domains-descriptions-tree.js +0 -44
- package/lib/feature-descriptor/domains-descriptors-tree/index.js +0 -21
- package/lib/feature-descriptor/domains-descriptors-tree/models/domains-descriptions-tree.model.js +0 -37
- package/lib/feature-descriptor/domains-descriptors-tree/utils/create-domain-predicate.js +0 -16
- package/lib/feature-descriptor/domains-descriptors-tree/utils/filter-domains-descriptions-tree.js +0 -23
- package/lib/feature-descriptor/domains-descriptors-tree/utils/index.js +0 -19
- package/lib/feature-descriptor/feature-descriptor-editor/components/ItemSelection.js +0 -14
- package/lib/feature-descriptor/feature-descriptor-editor/components/StringAutocomplete.js +0 -13
- package/lib/feature-descriptor/feature-descriptor-editor/components/ValueInput.js +0 -2
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/AggregationSelection.js +0 -15
- package/lib/feature-descriptor/feature-descriptor-editor/components/aggregations/aggregation-context.js +0 -37
- package/lib/feature-descriptor/feature-descriptor-editor/components/explainer.js +0 -15
- package/lib/feature-descriptor/feature-descriptor-editor/components/fd-operation-context.js +0 -19
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/FieldLabel.js +0 -17
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/ItemSelection.js +0 -20
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/StringSelectionField.js +0 -24
- package/lib/feature-descriptor/feature-descriptor-editor/components/field-widgets/ValueInput.js +0 -19
- package/lib/feature-descriptor/feature-descriptor-editor/components/widgets/ItemSelection.js +0 -20
- package/lib/feature-descriptor/feature-descriptor-editor/components/widgets/Label.js +0 -2
- package/lib/feature-descriptor/feature-descriptor-editor/components/widgets/ValueInput.js +0 -19
- package/lib/feature-descriptor/feature-descriptor-editor/components/widgets/index.js +0 -19
- package/lib/feature-descriptor/feature-details/FeatureCorrelatedFeaturesTable.js +0 -22
- package/lib/feature-descriptor/feature-details/FeatureDistributionChart.js +0 -218
- package/lib/feature-descriptor/feature-details/FeatureStatisticsTable.js +0 -44
- package/lib/feature-descriptor/feature-details/index.js +0 -20
- package/lib/feature-descriptor/feature-explanation/FeatureExplanation.js +0 -48
- package/lib/feature-descriptor/feature-explanation/components/ColoredExplanationBlock.js +0 -36
- package/lib/feature-descriptor/feature-explanation/components/ColumnExplanationBlock.js +0 -12
- package/lib/feature-descriptor/feature-explanation/components/DataSlotExplanationBlock.js +0 -12
- package/lib/feature-descriptor/feature-explanation/components/PetExplanationBlock.js +0 -11
- package/lib/feature-descriptor/feature-explanation/components/TextExplanationBlock.js +0 -10
- package/lib/feature-descriptor/feature-explanation/components/TextWithDataSlotContextExplanationBlock.js +0 -10
- package/lib/feature-descriptor/feature-explanation/components/TopicExplanationBlock.js +0 -10
- package/lib/feature-descriptor/feature-explanation/components/UnknownExplanationBlock.js +0 -10
- package/lib/feature-descriptors-domain/context/feature-domain-descriptions-selection.context.js +0 -37
- package/lib/feature-descriptors-domain/context/feature-domain-selection.context.js +0 -37
- package/lib/feature-descriptors-domain/context/index.js +0 -19
- package/lib/feature-descriptors-domain/exploration-path/exploration-path-header.js +0 -21
- package/lib/feature-descriptors-domain/exploration-path/exploration-path-join-list.js +0 -16
- package/lib/feature-descriptors-domain/exploration-path/index.js +0 -19
- package/lib/feature-descriptors-domain/fd-grouped-domain-tree.js +0 -81
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions/components/column-tree-item.js +0 -17
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions/components/descriptions-tree-item.js +0 -49
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions/components/selection-indicator-with-label.js +0 -40
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions/components/type-tree-item.js +0 -16
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions/feature-descriptor-domain-descriptions-context.js +0 -43
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions/feature-descriptor-domain-descriptions-tree.js +0 -57
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions/index.js +0 -18
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/components/column-tree-item.js +0 -17
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/components/description-tree-item.js +0 -2
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/components/descriptions-tree-item.js +0 -49
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/components/index.js +0 -18
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/components/selection-indicator-with-label.js +0 -19
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/components/tree-item-label.js +0 -15
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/components/tree-level-item.js +0 -54
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/components/type-tree-item.js +0 -16
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/feature-descriptor-domain-descriptions-tree.js +0 -55
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/feature-descriptor-domain-descriptions-tree.model.js +0 -2
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/index.js +0 -18
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/utils/filter-domain-descriptions.js +0 -21
- package/lib/feature-descriptors-domain/feature-descriptor-domain-descriptions-tree/utils/index.js +0 -18
- package/lib/feature-descriptors-domain/feature-descriptor-grouped-domain-tree.js +0 -87
- package/lib/feature-descriptors-domain/feature-domain-descriptions/components/column-tree-item.js +0 -16
- package/lib/feature-descriptors-domain/feature-domain-descriptions/components/descriptions-tree-item.js +0 -50
- package/lib/feature-descriptors-domain/feature-domain-descriptions/components/index.js +0 -18
- package/lib/feature-descriptors-domain/feature-domain-descriptions/components/selection-indicator-with-label.js +0 -67
- package/lib/feature-descriptors-domain/feature-domain-descriptions/components/type-tree-item.js +0 -19
- package/lib/feature-descriptors-domain/feature-domain-descriptions/feature-domain-descriptions-context.js +0 -37
- package/lib/feature-descriptors-domain/feature-domain-descriptions/feature-domain-descriptions-tree.js +0 -51
- package/lib/feature-descriptors-domain/feature-domain-descriptions/index.js +0 -18
- package/lib/feature-descriptors-domain/feature-exploration-path/exploration-path-header.js +0 -38
- package/lib/feature-descriptors-domain/feature-exploration-path/exploration-path-join-list.js +0 -36
- package/lib/feature-descriptors-domain/feature-exploration-path/index.js +0 -19
- package/lib/feature-descriptors-domain/grouped-domains-descriptions-list.js +0 -58
- package/lib/feature-descriptors-domain/selected-feature-domain-context.js +0 -2
- package/lib/feature-descriptors-domain/utils/filter-domain-descriptions.js +0 -23
- package/lib/feature-descriptors-domain/utils/filter-grouped-domain-descriptions.js +0 -23
- package/lib/feature-descriptors-domain/utils/index.js +0 -18
- package/lib/models/feature/feature-leaderboard.js +0 -3
- package/lib/models/feature-descriptor/feature-descriptors-domain.js +0 -3
- package/lib/models/feature-descriptors-domain/fd-domain-description.js +0 -9
- package/lib/models/feature-descriptors-domain/fd-grouped-domain-descriptions.js +0 -3
- package/lib/models/feature-descriptors-domain/index.js +0 -19
- package/lib/models/feature-space/feature-space-description.js +0 -3
- package/lib/models/index.js +0 -2
- package/lib/utils/model-transform-hook.js +0 -21
- package/lib/utils/set.js +0 -14
- package/lib/utils/widget/index.js +0 -19
- package/lib/utils/widget/widget-model-context.js +0 -38
- package/lib/utils/widget/widget-model.js +0 -30
- package/lib/widgets/feature-leaderboard/FeatureLeaderboardEntries.js +0 -18
- package/lib/widgets/feature-leaderboard/entry-item/FeatureLeaderboardEntryDetails.js +0 -23
- package/lib/widgets/feature-leaderboard/entry-item/FeatureLeaderboardEntryHeader.js +0 -35
- package/lib/widgets/feature-leaderboard/entry-item/FeatureLeaderboardEntryItem.js +0 -22
- package/lib/widgets/feature-leaderboard/leaderboard-entry/FeatureLeaderboardEntry.js +0 -19
- package/lib/widgets/feature-leaderboard/leaderboard-entry/FeatureLeaderboardEntryRow.js +0 -23
- package/lib/widgets/feature-leaderboard/leaderboard-overview/overview-metric-slider.js +0 -2
- package/lib/widgets/feature-space/FeatureSpaceDomain.js +0 -75
- package/lib/widgets/feature-space/FeatureSpaceDomainDescriptions.js +0 -80
- package/lib/widgets/feature-space/FeatureSpaceDomainsDescriptions.js +0 -88
|
@@ -1,13 +0,0 @@
|
|
|
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.StringSelection = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
|
-
function StringSelection({ options }) {
|
|
10
|
-
return (react_1.default.createElement(material_1.Autocomplete, { options: options, size: "small", autoComplete: true, disableClearable: true, renderInput: params => react_1.default.createElement(material_1.TextField, { ...params, variant: "standard" }) }));
|
|
11
|
-
}
|
|
12
|
-
exports.StringSelection = StringSelection;
|
|
13
|
-
//# sourceMappingURL=StringAutocomplete.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
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.AggregationTypeSelector = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const feature_descriptor_1 = require("../../../../models/feature-descriptor");
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
|
-
const AggregationTypeSelector = (props) => {
|
|
11
|
-
const options = Object.values(feature_descriptor_1.Aggregation.Type);
|
|
12
|
-
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, { ...params, variant: "standard" }) }));
|
|
13
|
-
};
|
|
14
|
-
exports.AggregationTypeSelector = AggregationTypeSelector;
|
|
15
|
-
//# sourceMappingURL=AggregationSelection.js.map
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1,19 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,24 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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
|
package/lib/feature-descriptor/feature-descriptor-editor/components/widgets/ItemSelection.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
|
@@ -1,19 +0,0 @@
|
|
|
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,22 +0,0 @@
|
|
|
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.FeatureCorrelatedFeaturesTable = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const FeatureExplanation_1 = require("../feature-explanation/FeatureExplanation");
|
|
9
|
-
const _utils_1 = require("../../utils");
|
|
10
|
-
const FeatureCorrelatedFeaturesTable = ({ correlatedFeatures }) => {
|
|
11
|
-
return (react_1.default.createElement("table", { className: "table", style: { width: '100%' } },
|
|
12
|
-
react_1.default.createElement("tr", null,
|
|
13
|
-
react_1.default.createElement("th", { className: "label-bold" }, "Name"),
|
|
14
|
-
react_1.default.createElement("th", { className: "label-bold" }, "Correlation"),
|
|
15
|
-
react_1.default.createElement("th", { className: "label-bold" }, "Explanation")),
|
|
16
|
-
correlatedFeatures.map(([{ id, explanation }, correlation]) => (react_1.default.createElement("tr", null,
|
|
17
|
-
react_1.default.createElement("td", null, id),
|
|
18
|
-
react_1.default.createElement("td", null, _utils_1.Localize.formatNumber(correlation)),
|
|
19
|
-
react_1.default.createElement("td", null, react_1.default.createElement(FeatureExplanation_1.FeatureExplanation, { explanationBlocks: explanation.tokens })))))));
|
|
20
|
-
};
|
|
21
|
-
exports.FeatureCorrelatedFeaturesTable = FeatureCorrelatedFeaturesTable;
|
|
22
|
-
//# sourceMappingURL=FeatureCorrelatedFeaturesTable.js.map
|
|
@@ -1,218 +0,0 @@
|
|
|
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.FeatureDistributionChart = void 0;
|
|
27
|
-
const react_1 = __importStar(require("react"));
|
|
28
|
-
const vega = __importStar(require("vega"));
|
|
29
|
-
const feature_1 = require("../../models/feature");
|
|
30
|
-
const FeatureDistributionChart = ({ histogram }) => {
|
|
31
|
-
const elemRef = react_1.default.useRef(null);
|
|
32
|
-
(0, react_1.useEffect)(() => {
|
|
33
|
-
if (!elemRef.current) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const histogramSpec = feature_1.ContinuousHistogram.isTypeOf(histogram)
|
|
37
|
-
? createContinuousHistogramSpec(histogram)
|
|
38
|
-
: createDiscreteHistogramSpec(histogram);
|
|
39
|
-
const view = new vega.View(vega.parse({
|
|
40
|
-
width: elemRef.current.clientWidth,
|
|
41
|
-
height: 140,
|
|
42
|
-
padding: 5,
|
|
43
|
-
...histogramSpec,
|
|
44
|
-
}), {
|
|
45
|
-
renderer: 'canvas',
|
|
46
|
-
hover: true,
|
|
47
|
-
container: elemRef.current,
|
|
48
|
-
});
|
|
49
|
-
view.runAsync();
|
|
50
|
-
}, [elemRef]);
|
|
51
|
-
return react_1.default.createElement("div", { ref: elemRef });
|
|
52
|
-
};
|
|
53
|
-
exports.FeatureDistributionChart = FeatureDistributionChart;
|
|
54
|
-
function createContinuousHistogramSpec(histogram) {
|
|
55
|
-
return {
|
|
56
|
-
signals: [
|
|
57
|
-
{
|
|
58
|
-
name: 'tooltip',
|
|
59
|
-
value: {},
|
|
60
|
-
on: [
|
|
61
|
-
{ events: 'rect:mouseover', update: 'datum' },
|
|
62
|
-
{ events: 'rect:mouseout', update: '{}' },
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
data: [
|
|
67
|
-
{
|
|
68
|
-
name: 'table',
|
|
69
|
-
values: histogram.bins,
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
scales: [
|
|
73
|
-
{
|
|
74
|
-
name: 'xscale',
|
|
75
|
-
type: 'linear',
|
|
76
|
-
domain: {
|
|
77
|
-
fields: [
|
|
78
|
-
{ data: 'table', field: 'l' },
|
|
79
|
-
{ data: 'table', field: 'u' },
|
|
80
|
-
],
|
|
81
|
-
},
|
|
82
|
-
range: 'width',
|
|
83
|
-
nice: true,
|
|
84
|
-
round: true,
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: 'yscale',
|
|
88
|
-
domain: { data: 'table', field: 'frequency' },
|
|
89
|
-
nice: true,
|
|
90
|
-
range: 'height',
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
axes: [
|
|
94
|
-
{
|
|
95
|
-
orient: 'bottom',
|
|
96
|
-
scale: 'xscale',
|
|
97
|
-
labelOverlap: 'parity',
|
|
98
|
-
},
|
|
99
|
-
{ orient: 'left', scale: 'yscale' },
|
|
100
|
-
],
|
|
101
|
-
marks: [
|
|
102
|
-
{
|
|
103
|
-
type: 'rect',
|
|
104
|
-
from: { data: 'table' },
|
|
105
|
-
encode: {
|
|
106
|
-
enter: {
|
|
107
|
-
x: { scale: 'xscale', field: 'l' },
|
|
108
|
-
x2: { scale: 'xscale', field: 'u' },
|
|
109
|
-
y: { scale: 'yscale', field: 'frequency' },
|
|
110
|
-
y2: { scale: 'yscale', value: 0 },
|
|
111
|
-
},
|
|
112
|
-
update: {
|
|
113
|
-
fill: { value: '#1976d2' },
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
type: 'text',
|
|
119
|
-
encode: {
|
|
120
|
-
enter: {
|
|
121
|
-
align: { value: 'center' },
|
|
122
|
-
baseline: { value: 'bottom' },
|
|
123
|
-
fill: { value: '#333' },
|
|
124
|
-
},
|
|
125
|
-
update: {
|
|
126
|
-
x: {
|
|
127
|
-
scale: 'xscale',
|
|
128
|
-
signal: '(tooltip.u + tooltip.l) / 2',
|
|
129
|
-
band: 0.5,
|
|
130
|
-
},
|
|
131
|
-
y: { scale: 'yscale', signal: 'tooltip.frequency', offset: -2 },
|
|
132
|
-
text: { signal: 'tooltip.frequency' },
|
|
133
|
-
fillOpacity: [
|
|
134
|
-
{ test: 'datum === tooltip', value: 0 },
|
|
135
|
-
{ value: 1 },
|
|
136
|
-
],
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
],
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
function createDiscreteHistogramSpec(histogram) {
|
|
144
|
-
return {
|
|
145
|
-
signals: [
|
|
146
|
-
{
|
|
147
|
-
name: 'tooltip',
|
|
148
|
-
value: {},
|
|
149
|
-
on: [
|
|
150
|
-
{ events: 'rect:mouseover', update: 'datum' },
|
|
151
|
-
{ events: 'rect:mouseout', update: '{}' },
|
|
152
|
-
],
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
data: [
|
|
156
|
-
{
|
|
157
|
-
name: 'table',
|
|
158
|
-
values: histogram.bins,
|
|
159
|
-
},
|
|
160
|
-
],
|
|
161
|
-
scales: [
|
|
162
|
-
{
|
|
163
|
-
name: 'xscale',
|
|
164
|
-
type: 'band',
|
|
165
|
-
domain: { data: 'table', field: 'label' },
|
|
166
|
-
range: 'width',
|
|
167
|
-
round: true,
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
name: 'yscale',
|
|
171
|
-
domain: { data: 'table', field: 'frequency' },
|
|
172
|
-
nice: true,
|
|
173
|
-
range: 'height',
|
|
174
|
-
},
|
|
175
|
-
],
|
|
176
|
-
axes: [
|
|
177
|
-
{ orient: 'bottom', scale: 'xscale', labelOverlap: 'parity' },
|
|
178
|
-
{ orient: 'left', scale: 'yscale' },
|
|
179
|
-
],
|
|
180
|
-
marks: [
|
|
181
|
-
{
|
|
182
|
-
type: 'rect',
|
|
183
|
-
from: { data: 'table' },
|
|
184
|
-
encode: {
|
|
185
|
-
enter: {
|
|
186
|
-
x: { scale: 'xscale', field: 'label' },
|
|
187
|
-
width: { scale: 'xscale', band: 1 },
|
|
188
|
-
y: { scale: 'yscale', field: 'frequency' },
|
|
189
|
-
y2: { scale: 'yscale', value: 0 },
|
|
190
|
-
},
|
|
191
|
-
update: {
|
|
192
|
-
fill: { value: '#1976d2' },
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
type: 'text',
|
|
198
|
-
encode: {
|
|
199
|
-
enter: {
|
|
200
|
-
align: { value: 'center' },
|
|
201
|
-
baseline: { value: 'bottom' },
|
|
202
|
-
fill: { value: '#333' },
|
|
203
|
-
},
|
|
204
|
-
update: {
|
|
205
|
-
x: { scale: 'xscale', signal: 'tooltip.label', band: 0.5 },
|
|
206
|
-
y: { scale: 'yscale', signal: 'tooltip.frequency', offset: -2 },
|
|
207
|
-
text: { signal: 'tooltip.frequency' },
|
|
208
|
-
fillOpacity: [
|
|
209
|
-
{ test: 'datum === tooltip', value: 0 },
|
|
210
|
-
{ value: 1 },
|
|
211
|
-
],
|
|
212
|
-
},
|
|
213
|
-
},
|
|
214
|
-
},
|
|
215
|
-
],
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
//# sourceMappingURL=FeatureDistributionChart.js.map
|
|
@@ -1,44 +0,0 @@
|
|
|
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.FeatureStatisticsTable = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const feature_1 = require("../../models/feature");
|
|
9
|
-
const _utils_1 = require("../../utils");
|
|
10
|
-
const metricRowStyle = {
|
|
11
|
-
borderTop: '1px solid var(--c-grey-100)',
|
|
12
|
-
display: 'flex',
|
|
13
|
-
justifyContent: 'space-between',
|
|
14
|
-
alignItems: 'center',
|
|
15
|
-
paddingInlineEnd: '50px',
|
|
16
|
-
height: '30px',
|
|
17
|
-
};
|
|
18
|
-
const metricNameStyle = {
|
|
19
|
-
textTransform: 'capitalize',
|
|
20
|
-
};
|
|
21
|
-
const statsOrder = [
|
|
22
|
-
feature_1.FeatureMetric.Min,
|
|
23
|
-
feature_1.FeatureMetric.Max,
|
|
24
|
-
feature_1.FeatureMetric.Mean,
|
|
25
|
-
feature_1.FeatureMetric.Stddev,
|
|
26
|
-
feature_1.FeatureMetric.Count,
|
|
27
|
-
feature_1.FeatureMetric.NullRatio,
|
|
28
|
-
feature_1.FeatureMetric.ZerosRatio,
|
|
29
|
-
feature_1.FeatureMetric.Correlation,
|
|
30
|
-
feature_1.FeatureMetric.FeatureAUC,
|
|
31
|
-
];
|
|
32
|
-
const FeatureStatisticsTable = ({ statistics }) => {
|
|
33
|
-
return (react_1.default.createElement("div", { style: { columnCount: 2, columnFill: 'balance', columnGap: '60px' } }, Object.entries(statistics)
|
|
34
|
-
.sort(sortStatsByName)
|
|
35
|
-
.map(([metricName, metricValue]) => (react_1.default.createElement("div", { key: metricName, style: metricRowStyle },
|
|
36
|
-
react_1.default.createElement("span", { className: "label-bold", style: metricNameStyle }, metricName),
|
|
37
|
-
' ',
|
|
38
|
-
react_1.default.createElement("span", null, _utils_1.Localize.formatNumber(metricValue, '-')))))));
|
|
39
|
-
};
|
|
40
|
-
exports.FeatureStatisticsTable = FeatureStatisticsTable;
|
|
41
|
-
function sortStatsByName(a, b) {
|
|
42
|
-
return statsOrder.indexOf(a[0]) - statsOrder.indexOf(b[0]);
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=FeatureStatisticsTable.js.map
|
|
@@ -1,20 +0,0 @@
|
|
|
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("./FeatureStatisticsTable"), exports);
|
|
18
|
-
__exportStar(require("./FeatureDistributionChart"), exports);
|
|
19
|
-
__exportStar(require("./FeatureCorrelatedFeaturesTable"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,48 +0,0 @@
|
|
|
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.FeatureExplanation = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const feature_explanation_1 = require("../../models/feature-explanation");
|
|
9
|
-
const TextExplanationBlock_1 = require("./components/TextExplanationBlock");
|
|
10
|
-
const ColumnExplanationBlock_1 = require("./components/ColumnExplanationBlock");
|
|
11
|
-
const PetExplanationBlock_1 = require("./components/PetExplanationBlock");
|
|
12
|
-
const DataSlotExplanationBlock_1 = require("./components/DataSlotExplanationBlock");
|
|
13
|
-
const TopicExplanationBlock_1 = require("./components/TopicExplanationBlock");
|
|
14
|
-
const TextWithDataSlotContextExplanationBlock_1 = require("./components/TextWithDataSlotContextExplanationBlock");
|
|
15
|
-
const UnknownExplanationBlock_1 = require("./components/UnknownExplanationBlock");
|
|
16
|
-
const FeatureExplanation = ({ explanationBlocks, }) => {
|
|
17
|
-
return (react_1.default.createElement("div", { style: { display: 'flex' } }, explanationBlocks.map(block => {
|
|
18
|
-
if (feature_explanation_1.FeatureExplanationBlock.isTextExplanationBlock(block)) {
|
|
19
|
-
return react_1.default.createElement(TextExplanationBlock_1.TextExplanationBlock, { ...block });
|
|
20
|
-
}
|
|
21
|
-
else if (feature_explanation_1.FeatureExplanationBlock.isColumnExplanationBlock(block)) {
|
|
22
|
-
return react_1.default.createElement(ColumnExplanationBlock_1.ColumnExplanationBlock, { ...block });
|
|
23
|
-
}
|
|
24
|
-
else if (feature_explanation_1.FeatureExplanationBlock.isDataSlotExplanationBlock(block)) {
|
|
25
|
-
return react_1.default.createElement(DataSlotExplanationBlock_1.DataSlotExplanationBlock, { ...block });
|
|
26
|
-
}
|
|
27
|
-
else if (feature_explanation_1.FeatureExplanationBlock.isPetExplanationBlock(block)) {
|
|
28
|
-
return react_1.default.createElement(PetExplanationBlock_1.PetExplanationBlock, { ...block });
|
|
29
|
-
}
|
|
30
|
-
else if (feature_explanation_1.FeatureExplanationBlock.isTextWithDataSlotContextExplanationBlock(block)) {
|
|
31
|
-
return react_1.default.createElement(TextWithDataSlotContextExplanationBlock_1.TextWithDataSlotContextExplanationBlock, { ...block });
|
|
32
|
-
}
|
|
33
|
-
else if (feature_explanation_1.FeatureExplanationBlock.isTopicExplanationBlock(block)) {
|
|
34
|
-
return react_1.default.createElement(TopicExplanationBlock_1.TopicExplanationBlock, { ...block });
|
|
35
|
-
}
|
|
36
|
-
else if (feature_explanation_1.FeatureExplanationBlock.isOperatorExplanationBlock(block)) {
|
|
37
|
-
return (react_1.default.createElement(exports.FeatureExplanation, { explanationBlocks: block.tokens.map(token => ({
|
|
38
|
-
...token,
|
|
39
|
-
pathType: block.type,
|
|
40
|
-
})) }));
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return react_1.default.createElement(UnknownExplanationBlock_1.UnknownExplanationBlock, { ...block });
|
|
44
|
-
}
|
|
45
|
-
})));
|
|
46
|
-
};
|
|
47
|
-
exports.FeatureExplanation = FeatureExplanation;
|
|
48
|
-
//# sourceMappingURL=FeatureExplanation.js.map
|
|
@@ -1,36 +0,0 @@
|
|
|
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.ColoredExplanationBlock = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const feature_explanation_1 = require("../../../models/feature-explanation");
|
|
9
|
-
const ColoredExplanationBlock = ({ block, children }) => {
|
|
10
|
-
let color = 'revert';
|
|
11
|
-
let fontWeight = '400';
|
|
12
|
-
if (block.type === feature_explanation_1.FeatureExplanationBlock.Type.DataSlot) {
|
|
13
|
-
color = 'var(--c-blue-700)';
|
|
14
|
-
fontWeight = '500';
|
|
15
|
-
}
|
|
16
|
-
else if (block.type === feature_explanation_1.FeatureExplanationBlock.Type.Column ||
|
|
17
|
-
block.type === feature_explanation_1.FeatureExplanationBlock.Type.PredictionExecutionTime) {
|
|
18
|
-
const pathType = block.pathType;
|
|
19
|
-
if ([
|
|
20
|
-
feature_explanation_1.FeatureExplanationBlock.Type.Filter,
|
|
21
|
-
feature_explanation_1.FeatureExplanationBlock.Type.Reduce,
|
|
22
|
-
].includes(pathType)) {
|
|
23
|
-
color = 'var(--c-blue-700)';
|
|
24
|
-
fontWeight = '500';
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return (react_1.default.createElement("span", { style: {
|
|
28
|
-
color: color,
|
|
29
|
-
fontWeight,
|
|
30
|
-
display: 'inline-block',
|
|
31
|
-
wordBreak: 'break-word',
|
|
32
|
-
whiteSpace: 'pre',
|
|
33
|
-
} }, children));
|
|
34
|
-
};
|
|
35
|
-
exports.ColoredExplanationBlock = ColoredExplanationBlock;
|
|
36
|
-
//# sourceMappingURL=ColoredExplanationBlock.js.map
|