@ytsaurus/ui 0.0.4 → 0.1.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/build/cjs/server/ServerFactory.js +2 -1
- package/build/cjs/server/ServerFactory.js.map +1 -1
- package/build/cjs/server/config.localcluster.js +1 -1
- package/build/cjs/server/config.localcluster.js.map +1 -1
- package/build/cjs/server/configs/local.d.ts +3 -0
- package/build/cjs/server/configs/local.js +33 -0
- package/build/cjs/server/configs/local.js.map +1 -0
- package/build/cjs/server/utils/default-settings.js +1 -1
- package/build/cjs/server/utils/default-settings.js.map +1 -1
- package/build/cjs/shared/ui-settings.d.ts +1 -0
- package/build/cjs/shared/ui-settings.js.map +1 -1
- package/build/cjs/ui/common/utils/url-encoder.js +1 -0
- package/build/cjs/ui/common/utils/url-encoder.js.map +1 -1
- package/build/cjs/ui/common/yt-api-init.js +7 -12
- package/build/cjs/ui/common/yt-api-init.js.map +1 -1
- package/build/cjs/ui/components/EditableAsText/EditableAsText.js +8 -6
- package/build/cjs/ui/components/EditableAsText/EditableAsText.js.map +1 -1
- package/build/cjs/ui/components/SchemaDataType/SchemaDataType.js +3 -59
- package/build/cjs/ui/components/SchemaDataType/SchemaDataType.js.map +1 -1
- package/build/cjs/ui/components/SchemaDataType/dateTypesV3.d.ts +48 -0
- package/build/cjs/ui/components/SchemaDataType/dateTypesV3.js +65 -0
- package/build/cjs/ui/components/SchemaDataType/dateTypesV3.js.map +1 -0
- package/build/cjs/ui/config/index.d.ts +1 -0
- package/build/cjs/ui/config/index.js +4 -0
- package/build/cjs/ui/config/index.js.map +1 -1
- package/build/cjs/ui/containers/ClusterPage/ClusterPage.js.map +1 -1
- package/build/cjs/ui/pages/navigation/content/Table/TableOverview/CreateQueryFromTable.d.ts +7 -0
- package/build/cjs/ui/pages/navigation/content/Table/TableOverview/CreateQueryFromTable.js +78 -0
- package/build/cjs/ui/pages/navigation/content/Table/TableOverview/CreateQueryFromTable.js.map +1 -0
- package/build/cjs/ui/pages/navigation/content/Table/TableOverview/TableOverview.d.ts +3 -1
- package/build/cjs/ui/pages/navigation/content/Table/TableOverview/TableOverview.js +10 -2
- package/build/cjs/ui/pages/navigation/content/Table/TableOverview/TableOverview.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/QueriesHistoryList/index.js +3 -3
- package/build/cjs/ui/pages/query-tracker/QueriesHistoryList/index.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/QueryDuration/index.js +13 -2
- package/build/cjs/ui/pages/query-tracker/QueryDuration/index.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/QueryEditor/QueryEditor.d.ts +3 -1
- package/build/cjs/ui/pages/query-tracker/QueryEditor/QueryEditor.js +19 -10
- package/build/cjs/ui/pages/query-tracker/QueryEditor/QueryEditor.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/QueryResults/index.d.ts +2 -0
- package/build/cjs/ui/pages/query-tracker/QueryResults/index.js +2 -3
- package/build/cjs/ui/pages/query-tracker/QueryResults/index.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/QueryResultsView/index.js +4 -9
- package/build/cjs/ui/pages/query-tracker/QueryResultsView/index.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/QueryStatus/index.js +2 -1
- package/build/cjs/ui/pages/query-tracker/QueryStatus/index.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/QueryTracker/QueryTracker.js +14 -2
- package/build/cjs/ui/pages/query-tracker/QueryTracker/QueryTracker.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/QueryTrackerNewButton/index.d.ts +18 -0
- package/build/cjs/ui/pages/query-tracker/QueryTrackerNewButton/index.js +89 -0
- package/build/cjs/ui/pages/query-tracker/QueryTrackerNewButton/index.js.map +1 -0
- package/build/cjs/ui/pages/query-tracker/QueryTrackerTopRow/QueryMetaForm/index.d.ts +4 -0
- package/build/cjs/ui/pages/query-tracker/QueryTrackerTopRow/QueryMetaForm/index.js +88 -0
- package/build/cjs/ui/pages/query-tracker/QueryTrackerTopRow/QueryMetaForm/index.js.map +1 -0
- package/build/cjs/ui/pages/query-tracker/QueryTrackerTopRow/index.d.ts +1 -0
- package/build/cjs/ui/pages/query-tracker/QueryTrackerTopRow/index.js +18 -131
- package/build/cjs/ui/pages/query-tracker/QueryTrackerTopRow/index.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/QueryWidget/index.d.ts +5 -0
- package/build/cjs/ui/pages/query-tracker/QueryWidget/index.js +78 -0
- package/build/cjs/ui/pages/query-tracker/QueryWidget/index.js.map +1 -0
- package/build/cjs/ui/pages/query-tracker/module/api.d.ts +15 -13
- package/build/cjs/ui/pages/query-tracker/module/api.js +175 -63
- package/build/cjs/ui/pages/query-tracker/module/api.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/module/query/actions.d.ts +3 -2
- package/build/cjs/ui/pages/query-tracker/module/query/actions.js +83 -23
- package/build/cjs/ui/pages/query-tracker/module/query/actions.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/module/query/reducer.d.ts +2 -1
- package/build/cjs/ui/pages/query-tracker/module/query/reducer.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/module/query/selectors.d.ts +2 -1
- package/build/cjs/ui/pages/query-tracker/module/query/url_mapping.js +7 -3
- package/build/cjs/ui/pages/query-tracker/module/query/url_mapping.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/module/query_result/actions.js +48 -41
- package/build/cjs/ui/pages/query-tracker/module/query_result/actions.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/utils/navigation.d.ts +4 -1
- package/build/cjs/ui/pages/query-tracker/utils/navigation.js +8 -3
- package/build/cjs/ui/pages/query-tracker/utils/navigation.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/utils/query.d.ts +1 -0
- package/build/cjs/ui/pages/query-tracker/utils/query.js +4 -0
- package/build/cjs/ui/pages/query-tracker/utils/query.js.map +1 -1
- package/build/cjs/ui/pages/query-tracker/utils/query_generate.d.ts +13 -0
- package/build/cjs/ui/pages/query-tracker/utils/query_generate.js +84 -0
- package/build/cjs/ui/pages/query-tracker/utils/query_generate.js.map +1 -0
- package/build/cjs/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/BundleEditorDialog.js +19 -36
- package/build/cjs/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/BundleEditorDialog.js.map +1 -1
- package/build/cjs/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleInput/BundleInput.d.ts +0 -1
- package/build/cjs/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleInput/BundleInput.js +15 -41
- package/build/cjs/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleInput/BundleInput.js.map +1 -1
- package/build/cjs/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleTitle/BundleTitle.d.ts +1 -2
- package/build/cjs/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleTitle/BundleTitle.js +1 -5
- package/build/cjs/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleTitle/BundleTitle.js.map +1 -1
- package/build/cjs/ui/store/selectors/global/index.d.ts +3 -0
- package/build/cjs/ui/store/selectors/global/index.js +20 -1
- package/build/cjs/ui/store/selectors/global/index.js.map +1 -1
- package/build/esm/server/ServerFactory.js +2 -1
- package/build/esm/server/ServerFactory.js.map +1 -1
- package/build/esm/server/config.localcluster.js +1 -1
- package/build/esm/server/config.localcluster.js.map +1 -1
- package/build/esm/server/configs/local.d.ts +3 -0
- package/build/esm/server/configs/local.js +28 -0
- package/build/esm/server/configs/local.js.map +1 -0
- package/build/esm/server/utils/default-settings.js +1 -1
- package/build/esm/server/utils/default-settings.js.map +1 -1
- package/build/esm/shared/ui-settings.d.ts +1 -0
- package/build/esm/shared/ui-settings.js.map +1 -1
- package/build/esm/ui/common/utils/url-encoder.js +1 -0
- package/build/esm/ui/common/utils/url-encoder.js.map +1 -1
- package/build/esm/ui/common/yt-api-init.js +4 -9
- package/build/esm/ui/common/yt-api-init.js.map +1 -1
- package/build/esm/ui/components/Dialog/Dialog.css +1 -1
- package/build/esm/ui/components/Dialog/Dialog.css.map +1 -1
- package/build/esm/ui/components/Dialog/Dialog.scss +1 -1
- package/build/esm/ui/components/EditableAsText/EditableAsText.js +8 -6
- package/build/esm/ui/components/EditableAsText/EditableAsText.js.map +1 -1
- package/build/esm/ui/components/SchemaDataType/SchemaDataType.js +2 -57
- package/build/esm/ui/components/SchemaDataType/SchemaDataType.js.map +1 -1
- package/build/esm/ui/components/SchemaDataType/dateTypesV3.d.ts +48 -0
- package/build/esm/ui/components/SchemaDataType/dateTypesV3.js +57 -0
- package/build/esm/ui/components/SchemaDataType/dateTypesV3.js.map +1 -0
- package/build/esm/ui/config/index.d.ts +1 -0
- package/build/esm/ui/config/index.js +3 -0
- package/build/esm/ui/config/index.js.map +1 -1
- package/build/esm/ui/containers/ClusterPage/ClusterPage.js.map +1 -1
- package/build/esm/ui/pages/navigation/content/Table/TableOverview/CreateQueryFromTable.css +8 -0
- package/build/esm/ui/pages/navigation/content/Table/TableOverview/CreateQueryFromTable.css.map +1 -0
- package/build/esm/ui/pages/navigation/content/Table/TableOverview/CreateQueryFromTable.d.ts +7 -0
- package/build/esm/ui/pages/navigation/content/Table/TableOverview/CreateQueryFromTable.js +72 -0
- package/build/esm/ui/pages/navigation/content/Table/TableOverview/CreateQueryFromTable.js.map +1 -0
- package/build/esm/ui/pages/navigation/content/Table/TableOverview/CreateQueryFromTable.scss +7 -0
- package/build/esm/ui/pages/navigation/content/Table/TableOverview/TableOverview.css +3 -0
- package/build/esm/ui/pages/navigation/content/Table/TableOverview/TableOverview.css.map +1 -1
- package/build/esm/ui/pages/navigation/content/Table/TableOverview/TableOverview.d.ts +3 -1
- package/build/esm/ui/pages/navigation/content/Table/TableOverview/TableOverview.js +11 -3
- package/build/esm/ui/pages/navigation/content/Table/TableOverview/TableOverview.js.map +1 -1
- package/build/esm/ui/pages/navigation/content/Table/TableOverview/TableOverview.scss +4 -0
- package/build/esm/ui/pages/query-tracker/QueriesHistoryList/index.js +4 -4
- package/build/esm/ui/pages/query-tracker/QueriesHistoryList/index.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/QueryDuration/index.js +13 -2
- package/build/esm/ui/pages/query-tracker/QueryDuration/index.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/QueryEditor/QueryEditor.d.ts +3 -1
- package/build/esm/ui/pages/query-tracker/QueryEditor/QueryEditor.js +19 -10
- package/build/esm/ui/pages/query-tracker/QueryEditor/QueryEditor.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/QueryResults/index.d.ts +2 -0
- package/build/esm/ui/pages/query-tracker/QueryResults/index.js +2 -3
- package/build/esm/ui/pages/query-tracker/QueryResults/index.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/QueryResultsView/index.css +3 -10
- package/build/esm/ui/pages/query-tracker/QueryResultsView/index.css.map +1 -1
- package/build/esm/ui/pages/query-tracker/QueryResultsView/index.js +4 -9
- package/build/esm/ui/pages/query-tracker/QueryResultsView/index.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/QueryResultsView/index.scss +3 -11
- package/build/esm/ui/pages/query-tracker/QueryStatus/index.css +4 -0
- package/build/esm/ui/pages/query-tracker/QueryStatus/index.css.map +1 -1
- package/build/esm/ui/pages/query-tracker/QueryStatus/index.js +2 -1
- package/build/esm/ui/pages/query-tracker/QueryStatus/index.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/QueryStatus/index.scss +4 -0
- package/build/esm/ui/pages/query-tracker/QueryTracker/QueryTracker.js +16 -4
- package/build/esm/ui/pages/query-tracker/QueryTracker/QueryTracker.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/QueryTrackerNewButton/index.css +19 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerNewButton/index.css.map +1 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerNewButton/index.d.ts +18 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerNewButton/index.js +82 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerNewButton/index.js.map +1 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerNewButton/index.scss +20 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerTopRow/QueryMetaForm/index.css +13 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerTopRow/QueryMetaForm/index.css.map +1 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerTopRow/QueryMetaForm/index.d.ts +4 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerTopRow/QueryMetaForm/index.js +82 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerTopRow/QueryMetaForm/index.js.map +1 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerTopRow/QueryMetaForm/index.scss +13 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerTopRow/index.css +6 -16
- package/build/esm/ui/pages/query-tracker/QueryTrackerTopRow/index.css.map +1 -1
- package/build/esm/ui/pages/query-tracker/QueryTrackerTopRow/index.d.ts +1 -0
- package/build/esm/ui/pages/query-tracker/QueryTrackerTopRow/index.js +19 -133
- package/build/esm/ui/pages/query-tracker/QueryTrackerTopRow/index.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/QueryTrackerTopRow/index.scss +4 -20
- package/build/esm/ui/pages/query-tracker/QueryWidget/index.css +28 -0
- package/build/esm/ui/pages/query-tracker/QueryWidget/index.css.map +1 -0
- package/build/esm/ui/pages/query-tracker/QueryWidget/index.d.ts +5 -0
- package/build/esm/ui/pages/query-tracker/QueryWidget/index.js +73 -0
- package/build/esm/ui/pages/query-tracker/QueryWidget/index.js.map +1 -0
- package/build/esm/ui/pages/query-tracker/QueryWidget/index.scss +31 -0
- package/build/esm/ui/pages/query-tracker/module/api.d.ts +15 -13
- package/build/esm/ui/pages/query-tracker/module/api.js +175 -63
- package/build/esm/ui/pages/query-tracker/module/api.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/module/query/actions.d.ts +3 -2
- package/build/esm/ui/pages/query-tracker/module/query/actions.js +83 -24
- package/build/esm/ui/pages/query-tracker/module/query/actions.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/module/query/reducer.d.ts +2 -1
- package/build/esm/ui/pages/query-tracker/module/query/reducer.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/module/query/selectors.d.ts +2 -1
- package/build/esm/ui/pages/query-tracker/module/query/url_mapping.js +7 -3
- package/build/esm/ui/pages/query-tracker/module/query/url_mapping.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/module/query_result/actions.js +48 -41
- package/build/esm/ui/pages/query-tracker/module/query_result/actions.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/utils/navigation.d.ts +4 -1
- package/build/esm/ui/pages/query-tracker/utils/navigation.js +8 -3
- package/build/esm/ui/pages/query-tracker/utils/navigation.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/utils/query.d.ts +1 -0
- package/build/esm/ui/pages/query-tracker/utils/query.js +4 -1
- package/build/esm/ui/pages/query-tracker/utils/query.js.map +1 -1
- package/build/esm/ui/pages/query-tracker/utils/query_generate.d.ts +13 -0
- package/build/esm/ui/pages/query-tracker/utils/query_generate.js +73 -0
- package/build/esm/ui/pages/query-tracker/utils/query_generate.js.map +1 -0
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/BundleEditorDialog.css +3 -15
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/BundleEditorDialog.css.map +1 -1
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/BundleEditorDialog.js +19 -36
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/BundleEditorDialog.js.map +1 -1
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/BundleEditorDialog.scss +5 -21
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleInput/BundleInput.css +1 -1
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleInput/BundleInput.css.map +1 -1
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleInput/BundleInput.d.ts +0 -1
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleInput/BundleInput.js +16 -42
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleInput/BundleInput.js.map +1 -1
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleInput/BundleInput.scss +1 -1
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleTitle/BundleTitle.css +0 -9
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleTitle/BundleTitle.css.map +1 -1
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleTitle/BundleTitle.d.ts +1 -2
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleTitle/BundleTitle.js +1 -5
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleTitle/BundleTitle.js.map +1 -1
- package/build/esm/ui/pages/tablet_cell_bundles/bundles/BundleEditorDialog/components/BundleTitle/BundleTitle.scss +0 -11
- package/build/esm/ui/store/selectors/global/index.d.ts +3 -0
- package/build/esm/ui/store/selectors/global/index.js +16 -1
- package/build/esm/ui/store/selectors/global/index.js.map +1 -1
- package/build/img/svg/page-query-tracker.svg +3 -3
- package/package.json +3 -3
@@ -12,17 +12,10 @@
|
|
12
12
|
width: 100%;
|
13
13
|
z-index: 1;
|
14
14
|
}
|
15
|
-
.query-result-table__floating-bottom-left {
|
16
|
-
position: sticky;
|
17
|
-
bottom: 20px;
|
18
|
-
pointer-events: none;
|
19
|
-
display: flex;
|
20
|
-
z-index: 2;
|
21
|
-
}
|
22
|
-
.query-result-table__padding_span {
|
23
|
-
flex: 1;
|
24
|
-
}
|
25
15
|
.query-result-table__pagination {
|
16
|
+
position: fixed;
|
17
|
+
right: 20px;
|
18
|
+
bottom: 20px;
|
26
19
|
margin-right: 20px;
|
27
20
|
background-color: var(--yc-color-base-float);
|
28
21
|
border-radius: 8px;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.scss","index.css"],"names":[],"mappings":"AAAA;EACI,YAAA;EACA,kBAAA;EACA,cAAA;ACCJ;ADCI;EACI,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,YAAA;EACA,kBAAA;EACA,WAAA;EACA,UAAA;ACCR;ADEI;EACI,
|
1
|
+
{"version":3,"sources":["index.scss","index.css"],"names":[],"mappings":"AAAA;EACI,YAAA;EACA,kBAAA;EACA,cAAA;ACCJ;ADCI;EACI,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,YAAA;EACA,kBAAA;EACA,WAAA;EACA,UAAA;ACCR;ADEI;EACI,eAAA;EACA,WAAA;EACA,YAAA;EAEA,kBAAA;EACA,4CAAA;EACA,kBAAA;EACA,gDAAA;EACA,YAAA;EACA,mBAAA;ACDR","file":"index.css","sourcesContent":[".query-result-table {\n height: 100%;\n position: relative;\n overflow: auto;\n\n &__loading {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n position: absolute;\n width: 100%;\n z-index: 1;\n }\n\n &__pagination {\n position: fixed;\n right: 20px;\n bottom: 20px;\n\n margin-right: 20px;\n background-color: var(--yc-color-base-float);\n border-radius: 8px;\n box-shadow: 0 1px 8px var(--yc-color-sfx-shadow);\n padding: 8px;\n pointer-events: all;\n }\n}\n",".query-result-table {\n height: 100%;\n position: relative;\n overflow: auto;\n}\n.query-result-table__loading {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n position: absolute;\n width: 100%;\n z-index: 1;\n}\n.query-result-table__pagination {\n position: fixed;\n right: 20px;\n bottom: 20px;\n margin-right: 20px;\n background-color: var(--yc-color-base-float);\n border-radius: 8px;\n box-shadow: 0 1px 8px var(--yc-color-sfx-shadow);\n padding: 8px;\n pointer-events: all;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
|
@@ -48,15 +48,10 @@ export var QueryResultsView = /*#__PURE__*/React.memo(function QueryResultsView(
|
|
48
48
|
}), (result === null || result === void 0 ? void 0 : result.resultReady) && /*#__PURE__*/_jsxs(_Fragment, {
|
49
49
|
children: [/*#__PURE__*/_jsx(QueryReadyResultView, {
|
50
50
|
result: result
|
51
|
-
}), result.settings.viewMode === QueryResultsViewMode.Table && /*#__PURE__*/
|
52
|
-
className: b('
|
53
|
-
|
54
|
-
|
55
|
-
}), /*#__PURE__*/_jsx(ResultPaginator, {
|
56
|
-
className: b('pagination'),
|
57
|
-
queryId: query.id,
|
58
|
-
resultIndex: index
|
59
|
-
})]
|
51
|
+
}), result.settings.viewMode === QueryResultsViewMode.Table && /*#__PURE__*/_jsx(ResultPaginator, {
|
52
|
+
className: b('pagination'),
|
53
|
+
queryId: query.id,
|
54
|
+
resultIndex: index
|
60
55
|
})]
|
61
56
|
}), (result === null || result === void 0 ? void 0 : result.state) === QueryResultState.Error && /*#__PURE__*/_jsx(Error, {
|
62
57
|
error: result.error
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Loader","React","useSelector","block","getQueryResult","Error","ResultsTable","QueryResultState","QueryResultsViewMode","YQLSchemeTable","ResultPaginator","NotRenderUntilFirstVisible","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","b","QueryReadyResultView","_ref","_result$settings","result","mode","settings","viewMode","children","hide","Scheme","Table","QueryResultsView","memo","_ref2","query","index","state","id","className","Init","Loading","size","resultReady","queryId","resultIndex","error","prev","next"],"sources":["index.tsx"],"sourcesContent":["import {Loader} from '@gravity-ui/uikit';\nimport React from 'react';\nimport {useSelector} from 'react-redux';\nimport block from 'bem-cn-lite';\nimport {RootState} from '../../../store/reducers';\nimport {getQueryResult} from '../module/query_result/selectors';\nimport Error from '../../../components/Error/Error';\nimport {ResultsTable} from './ResultsTable';\nimport {QueryItem} from '../module/api';\nimport {\n QueryResultReadyState,\n QueryResultState,\n QueryResultsViewMode,\n} from '../module/query_result/types';\nimport {YQLSchemeTable} from './YQLSchemeTable';\nimport {ResultPaginator} from './ResultPaginator';\nimport NotRenderUntilFirstVisible from '../NotRenderUntilFirstVisible/NotRenderUntilFirstVisible';\n\nimport './index.scss';\n\nconst b = block('query-result-table');\n\nfunction QueryReadyResultView({result}: {result: QueryResultReadyState}) {\n const mode = result?.settings?.viewMode;\n return (\n <>\n <NotRenderUntilFirstVisible hide={mode !== QueryResultsViewMode.Scheme}>\n <YQLSchemeTable result={result} />\n </NotRenderUntilFirstVisible>\n <NotRenderUntilFirstVisible hide={mode !== QueryResultsViewMode.Table}>\n <ResultsTable result={result} />\n </NotRenderUntilFirstVisible>\n </>\n );\n}\n\nexport const QueryResultsView = React.memo(\n function QueryResultsView({query, index}: {query: QueryItem; index: number}) {\n const result = useSelector((state: RootState) => getQueryResult(state, query.id, index));\n\n return (\n <div className={b()}>\n {(result?.state === QueryResultState.Init ||\n result?.state === QueryResultState.Loading) && (\n <div className={b('loading')}>\n <Loader size=\"m\" />\n </div>\n )}\n {result?.resultReady && (\n <>\n <QueryReadyResultView result={result} />\n {result.settings.viewMode === QueryResultsViewMode.Table && (\n <
|
1
|
+
{"version":3,"names":["Loader","React","useSelector","block","getQueryResult","Error","ResultsTable","QueryResultState","QueryResultsViewMode","YQLSchemeTable","ResultPaginator","NotRenderUntilFirstVisible","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","b","QueryReadyResultView","_ref","_result$settings","result","mode","settings","viewMode","children","hide","Scheme","Table","QueryResultsView","memo","_ref2","query","index","state","id","className","Init","Loading","size","resultReady","queryId","resultIndex","error","prev","next"],"sources":["index.tsx"],"sourcesContent":["import {Loader} from '@gravity-ui/uikit';\nimport React from 'react';\nimport {useSelector} from 'react-redux';\nimport block from 'bem-cn-lite';\nimport {RootState} from '../../../store/reducers';\nimport {getQueryResult} from '../module/query_result/selectors';\nimport Error from '../../../components/Error/Error';\nimport {ResultsTable} from './ResultsTable';\nimport {QueryItem} from '../module/api';\nimport {\n QueryResultReadyState,\n QueryResultState,\n QueryResultsViewMode,\n} from '../module/query_result/types';\nimport {YQLSchemeTable} from './YQLSchemeTable';\nimport {ResultPaginator} from './ResultPaginator';\nimport NotRenderUntilFirstVisible from '../NotRenderUntilFirstVisible/NotRenderUntilFirstVisible';\n\nimport './index.scss';\n\nconst b = block('query-result-table');\n\nfunction QueryReadyResultView({result}: {result: QueryResultReadyState}) {\n const mode = result?.settings?.viewMode;\n return (\n <>\n <NotRenderUntilFirstVisible hide={mode !== QueryResultsViewMode.Scheme}>\n <YQLSchemeTable result={result} />\n </NotRenderUntilFirstVisible>\n <NotRenderUntilFirstVisible hide={mode !== QueryResultsViewMode.Table}>\n <ResultsTable result={result} />\n </NotRenderUntilFirstVisible>\n </>\n );\n}\n\nexport const QueryResultsView = React.memo(\n function QueryResultsView({query, index}: {query: QueryItem; index: number}) {\n const result = useSelector((state: RootState) => getQueryResult(state, query.id, index));\n\n return (\n <div className={b()}>\n {(result?.state === QueryResultState.Init ||\n result?.state === QueryResultState.Loading) && (\n <div className={b('loading')}>\n <Loader size=\"m\" />\n </div>\n )}\n {result?.resultReady && (\n <>\n <QueryReadyResultView result={result} />\n {result.settings.viewMode === QueryResultsViewMode.Table && (\n <ResultPaginator\n className={b('pagination')}\n queryId={query.id}\n resultIndex={index}\n />\n )}\n </>\n )}\n {result?.state === QueryResultState.Error && <Error error={result.error} />}\n </div>\n );\n },\n (prev, next) => prev.query.id === next.query.id && prev.index === next.index,\n);\n"],"mappings":"AAAA,SAAQA,MAAM,QAAO,mBAAmB;AACxC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAAQC,WAAW,QAAO,aAAa;AACvC,OAAOC,KAAK,MAAM,aAAa;AAE/B,SAAQC,cAAc,QAAO,kCAAkC;AAC/D,OAAOC,KAAK,MAAM,iCAAiC;AACnD,SAAQC,YAAY,QAAO,gBAAgB;AAE3C,SAEIC,gBAAgB,EAChBC,oBAAoB,Q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
16
|
-
&
|
17
|
-
position:
|
16
|
+
&__pagination {
|
17
|
+
position: fixed;
|
18
|
+
right: 20px;
|
18
19
|
bottom: 20px;
|
19
|
-
pointer-events: none;
|
20
|
-
display: flex;
|
21
|
-
z-index: 2;
|
22
|
-
}
|
23
20
|
|
24
|
-
&__padding_span {
|
25
|
-
flex: 1;
|
26
|
-
}
|
27
|
-
|
28
|
-
&__pagination {
|
29
21
|
margin-right: 20px;
|
30
22
|
background-color: var(--yc-color-base-float);
|
31
23
|
border-radius: 8px;
|
@@ -5,6 +5,10 @@
|
|
5
5
|
.query-status__icon-container {
|
6
6
|
margin-right: 4px;
|
7
7
|
}
|
8
|
+
.query-status__icon-container_draft {
|
9
|
+
color: var(--yc-color-text-secondary);
|
10
|
+
color: var(--color-status-icon-draft, var(--yc-color-text-secondary));
|
11
|
+
}
|
8
12
|
.query-status__icon-container_completed {
|
9
13
|
color: var(--yc-color-text-positive);
|
10
14
|
color: var(--color-status-icon-completed, var(--yc-color-text-positive));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.scss","index.css"],"names":[],"mappings":"AAAA;EACI,oBAAA;EACA,mBAAA;ACCJ;ADCI;EACI,iBAAA;ACCR;ADCQ;EACI,
|
1
|
+
{"version":3,"sources":["index.scss","index.css"],"names":[],"mappings":"AAAA;EACI,oBAAA;EACA,mBAAA;ACCJ;ADCI;EACI,iBAAA;ACCR;ADCQ;EACI,qCAAA;EAAA,qEAAA;ACCZ;ADEQ;EACI,oCAAA;EAAA,wEAAA;ACAZ;ADGQ;EACI,sCAAA;EAAA,sEAAA;ACDZ;ADIQ;EACI,WAAA;EACA,YAAA;ACFZ;ADKQ;EACI,qCAAA;EAAA,wEAAA;ACHZ","file":"index.css","sourcesContent":[".query-status {\n display: inline-flex;\n align-items: center;\n\n &__icon-container {\n margin-right: 4px;\n\n &_draft {\n color: var(--color-status-icon-draft, var(--yc-color-text-secondary));\n }\n\n &_completed {\n color: var(--color-status-icon-completed, var(--yc-color-text-positive));\n }\n\n &_failed {\n color: var(--color-status-icon-error, var(--yc-color-text-yandex-red));\n }\n\n &.loading {\n width: 16px;\n height: 16px;\n }\n\n &_aborted {\n color: var(--color-status-icon-aborting, var(--yc-color-text-secondary));\n }\n }\n}\n",".query-status {\n display: inline-flex;\n align-items: center;\n}\n.query-status__icon-container {\n margin-right: 4px;\n}\n.query-status__icon-container_draft {\n color: var(--color-status-icon-draft, var(--yc-color-text-secondary));\n}\n.query-status__icon-container_completed {\n color: var(--color-status-icon-completed, var(--yc-color-text-positive));\n}\n.query-status__icon-container_failed {\n color: var(--color-status-icon-error, var(--yc-color-text-yandex-red));\n}\n.query-status__icon-container.loading {\n width: 16px;\n height: 16px;\n}\n.query-status__icon-container_aborted {\n color: var(--color-status-icon-aborting, var(--yc-color-text-secondary));\n}\n\n/*# sourceMappingURL=index.css.map */"]}
|
@@ -7,13 +7,14 @@ import hammer from '../../../common/hammer';
|
|
7
7
|
import doneIcon from '../../../../../img/svg/icons/check-circle.svg';
|
8
8
|
import errorIcon from '../../../../../img/svg/icons/exclamation-circle.svg';
|
9
9
|
import abortedIcon from '../../../../../img/svg/icons/stop-circle.svg';
|
10
|
+
import draftIcon from '../../../../../img/svg/icons/file.svg';
|
10
11
|
import { ProgressStatuses, QueryStatus } from '../module/api';
|
11
12
|
import './index.css';
|
12
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
13
14
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
14
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
15
16
|
var b = block('query-status');
|
16
|
-
var STATUS_ICONS = (_STATUS_ICONS = {}, _defineProperty(_STATUS_ICONS, QueryStatus.FAILED, errorIcon), _defineProperty(_STATUS_ICONS, QueryStatus.ABORTED, abortedIcon), _defineProperty(_STATUS_ICONS, QueryStatus.COMPLETED, doneIcon), _STATUS_ICONS);
|
17
|
+
var STATUS_ICONS = (_STATUS_ICONS = {}, _defineProperty(_STATUS_ICONS, QueryStatus.DRAFT, draftIcon), _defineProperty(_STATUS_ICONS, QueryStatus.FAILED, errorIcon), _defineProperty(_STATUS_ICONS, QueryStatus.ABORTED, abortedIcon), _defineProperty(_STATUS_ICONS, QueryStatus.COMPLETED, doneIcon), _STATUS_ICONS);
|
17
18
|
export function QueryStatusIcon(_ref) {
|
18
19
|
var status = _ref.status,
|
19
20
|
className = _ref.className;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Icon","Spin","React","block","hammer","doneIcon","errorIcon","abortedIcon","ProgressStatuses","QueryStatus","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","b","STATUS_ICONS","_STATUS_ICONS","_defineProperty","FAILED","ABORTED","COMPLETED","QueryStatusIcon","_ref","status","className","includes","size","loading","toLocaleLowerCase","data","children","QueryStatusView","_ref2","mode","format","Readable"],"sources":["index.tsx"],"sourcesContent":["import {Icon, Spin} from '@gravity-ui/uikit';\nimport React from 'react';\nimport block from 'bem-cn-lite';\nimport hammer from '../../../common/hammer';\nimport doneIcon from '../../../../../img/svg/icons/check-circle.svg';\nimport errorIcon from '../../../../../img/svg/icons/exclamation-circle.svg';\nimport abortedIcon from '../../../../../img/svg/icons/stop-circle.svg';\nimport {SVGIconData} from '@gravity-ui/uikit/build/esm/components/Icon/types';\nimport {ProgressStatuses, QueryStatus} from '../module/api';\nimport './index.scss';\n\nconst b = block('query-status');\n\ntype Props = {\n status: QueryStatus;\n mode: 'icon' | 'text' | 'both';\n className?: string;\n};\n\nconst STATUS_ICONS: Partial<Record<QueryStatus, SVGIconData>> = {\n [QueryStatus.FAILED]: errorIcon,\n [QueryStatus.ABORTED]: abortedIcon,\n [QueryStatus.COMPLETED]: doneIcon,\n};\n\nexport function QueryStatusIcon({status, className}: {status: QueryStatus; className?: string}) {\n if (ProgressStatuses.includes(status)) {\n return <Spin size=\"xs\" className={b('icon-container', {loading: true}, className)} />;\n }\n if (STATUS_ICONS[status]) {\n return (\n <Icon\n className={b(\n 'icon-container',\n {\n [status.toLocaleLowerCase()]: true,\n },\n className,\n )}\n data={STATUS_ICONS[status]!}\n size={16}\n />\n );\n }\n return <>{status}</>;\n}\n\nexport const QueryStatusView = ({mode, status, className}: Props) => {\n return (\n <div className={b(null, className)}>\n {(mode === 'icon' || mode === 'both') && <QueryStatusIcon status={status} />}\n {(mode === 'text' || mode === 'both') && hammer.format.Readable(status)}\n </div>\n );\n};\n"],"mappings":";;AAAA,SAAQA,IAAI,EAAEC,IAAI,QAAO,mBAAmB;AAC5C,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,aAAa;AAC/B,OAAOC,MAAM,MAAM,wBAAwB;AAC3C,OAAOC,QAAQ,MAAM,+CAA+C;AACpE,OAAOC,SAAS,MAAM,qDAAqD;AAC3E,OAAOC,WAAW,MAAM,8CAA8C;
|
1
|
+
{"version":3,"names":["Icon","Spin","React","block","hammer","doneIcon","errorIcon","abortedIcon","draftIcon","ProgressStatuses","QueryStatus","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","b","STATUS_ICONS","_STATUS_ICONS","_defineProperty","DRAFT","FAILED","ABORTED","COMPLETED","QueryStatusIcon","_ref","status","className","includes","size","loading","toLocaleLowerCase","data","children","QueryStatusView","_ref2","mode","format","Readable"],"sources":["index.tsx"],"sourcesContent":["import {Icon, Spin} from '@gravity-ui/uikit';\nimport React from 'react';\nimport block from 'bem-cn-lite';\nimport hammer from '../../../common/hammer';\nimport doneIcon from '../../../../../img/svg/icons/check-circle.svg';\nimport errorIcon from '../../../../../img/svg/icons/exclamation-circle.svg';\nimport abortedIcon from '../../../../../img/svg/icons/stop-circle.svg';\nimport draftIcon from '../../../../../img/svg/icons/file.svg';\nimport {SVGIconData} from '@gravity-ui/uikit/build/esm/components/Icon/types';\nimport {ProgressStatuses, QueryStatus} from '../module/api';\nimport './index.scss';\n\nconst b = block('query-status');\n\ntype Props = {\n status: QueryStatus;\n mode: 'icon' | 'text' | 'both';\n className?: string;\n};\n\nconst STATUS_ICONS: Partial<Record<QueryStatus, SVGIconData>> = {\n [QueryStatus.DRAFT]: draftIcon,\n [QueryStatus.FAILED]: errorIcon,\n [QueryStatus.ABORTED]: abortedIcon,\n [QueryStatus.COMPLETED]: doneIcon,\n};\n\nexport function QueryStatusIcon({status, className}: {status: QueryStatus; className?: string}) {\n if (ProgressStatuses.includes(status)) {\n return <Spin size=\"xs\" className={b('icon-container', {loading: true}, className)} />;\n }\n if (STATUS_ICONS[status]) {\n return (\n <Icon\n className={b(\n 'icon-container',\n {\n [status.toLocaleLowerCase()]: true,\n },\n className,\n )}\n data={STATUS_ICONS[status]!}\n size={16}\n />\n );\n }\n return <>{status}</>;\n}\n\nexport const QueryStatusView = ({mode, status, className}: Props) => {\n return (\n <div className={b(null, className)}>\n {(mode === 'icon' || mode === 'both') && <QueryStatusIcon status={status} />}\n {(mode === 'text' || mode === 'both') && hammer.format.Readable(status)}\n </div>\n );\n};\n"],"mappings":";;AAAA,SAAQA,IAAI,EAAEC,IAAI,QAAO,mBAAmB;AAC5C,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,aAAa;AAC/B,OAAOC,MAAM,MAAM,wBAAwB;AAC3C,OAAOC,QAAQ,MAAM,+CAA+C;AACpE,OAAOC,SAAS,MAAM,qDAAqD;AAC3E,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,SAAS,MAAM,uCAAuC;AAE7D,SAAQC,gBAAgB,EAAEC,WAAW,QAAO,eAAe;AAC3D,OAAO,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAEtB,IAAMC,CAAC,GAAGd,KAAK,CAAC,cAAc,CAAC;AAQ/B,IAAMe,YAAuD,IAAAC,aAAA,OAAAC,eAAA,CAAAD,aAAA,EACxDT,WAAW,CAACW,KAAK,EAAGb,SAAS,GAAAY,eAAA,CAAAD,aAAA,EAC7BT,WAAW,CAACY,MAAM,EAAGhB,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MAACE,MAAM,EAAEA;IAAO,EAAG,EAC3E,CAACU,IAAI,KAAK,MAAM,IAAIA,IAAI,KAAK,MAAM,KAAKjC,MAAM,CAACkC,MAAM,CAACC,QAAQ,CAACZ,MAAM,CAAC;EAAA,EACrE;AAEd,CAAC"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
2
|
-
import React, { useEffect, useMemo, useState } from 'react';
|
2
|
+
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
4
4
|
import { Switch, Route } from 'react-router';
|
5
5
|
import FlexSplitPane from '../../../components/FlexSplitPane/FlexSplitPane';
|
6
6
|
import { QueriesPooling } from '../hooks/QueriesPooling/context';
|
7
7
|
import { isEngine, QueryEngine } from '../module/api';
|
8
|
-
import { createEmptyQuery, loadQuery } from '../module/query/actions';
|
8
|
+
import { createEmptyQuery, createQueryFromTablePath, goToQuery, loadQuery } from '../module/query/actions';
|
9
9
|
import { getQueryGetParams } from '../module/query/selectors';
|
10
10
|
import { QueriesList } from '../QueriesList';
|
11
11
|
import { QueryEditor } from '../QueryEditor/QueryEditor';
|
@@ -20,7 +20,12 @@ function DefaultQueriesPage() {
|
|
20
20
|
var dispatch = useDispatch();
|
21
21
|
var routeParams = useSelector(getQueryGetParams);
|
22
22
|
useEffect(function () {
|
23
|
-
|
23
|
+
var engine = routeParams.engine && isEngine(routeParams.engine) ? routeParams.engine : QueryEngine.YQL;
|
24
|
+
if (routeParams.cluster && routeParams.path) {
|
25
|
+
dispatch(createQueryFromTablePath(engine, routeParams.cluster, routeParams.path));
|
26
|
+
} else {
|
27
|
+
dispatch(createEmptyQuery(engine));
|
28
|
+
}
|
24
29
|
}, [dispatch, routeParams]);
|
25
30
|
return null;
|
26
31
|
}
|
@@ -46,6 +51,11 @@ export var QueryTracker = function QueryTracker(_ref) {
|
|
46
51
|
return sizes;
|
47
52
|
};
|
48
53
|
}, [sizes]);
|
54
|
+
var dispatch = useDispatch();
|
55
|
+
var goToCreatedQuery = useCallback(function (queryId) {
|
56
|
+
dispatch(goToQuery(queryId));
|
57
|
+
return true;
|
58
|
+
}, [dispatch]);
|
49
59
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
50
60
|
children: [/*#__PURE__*/_jsxs(Switch, {
|
51
61
|
children: [/*#__PURE__*/_jsx(Route, {
|
@@ -63,7 +73,9 @@ export var QueryTracker = function QueryTracker(_ref) {
|
|
63
73
|
onResizeEnd: setSize,
|
64
74
|
minSize: minSize,
|
65
75
|
getInitialSizes: getSize,
|
66
|
-
children: [/*#__PURE__*/_jsx(QueriesList, {}), /*#__PURE__*/_jsx(QueryEditor, {
|
76
|
+
children: [/*#__PURE__*/_jsx(QueriesList, {}), /*#__PURE__*/_jsx(QueryEditor, {
|
77
|
+
onStartQuery: goToCreatedQuery
|
78
|
+
})]
|
67
79
|
})
|
68
80
|
})]
|
69
81
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","useEffect","useMemo","useState","useDispatch","useSelector","Switch","Route","FlexSplitPane","QueriesPooling","isEngine","QueryEngine","createEmptyQuery","loadQuery","getQueryGetParams","QueriesList","QueryEditor","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","initialSizes","minSize","DefaultQueriesPage","dispatch","routeParams","engine","YQL","
|
1
|
+
{"version":3,"names":["React","useCallback","useEffect","useMemo","useState","useDispatch","useSelector","Switch","Route","FlexSplitPane","QueriesPooling","isEngine","QueryEngine","createEmptyQuery","createQueryFromTablePath","goToQuery","loadQuery","getQueryGetParams","QueriesList","QueryEditor","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","initialSizes","minSize","DefaultQueriesPage","dispatch","routeParams","engine","YQL","cluster","path","QueryPage","props","match","params","queryId","QueryTracker","_ref","_useState","_useState2","_slicedToArray","sizes","setSize","getSize","goToCreatedQuery","children","exact","component","concat","className","direction","HORIZONTAL","onResizeEnd","getInitialSizes","onStartQuery"],"sources":["QueryTracker.tsx"],"sourcesContent":["import React, {useCallback, useEffect, useMemo, useState} from 'react';\nimport {useDispatch, useSelector} from 'react-redux';\nimport {Switch, Route} from 'react-router';\nimport FlexSplitPane from '../../../components/FlexSplitPane/FlexSplitPane';\nimport {QueriesPooling} from '../hooks/QueriesPooling/context';\nimport {isEngine, QueryEngine} from '../module/api';\nimport {\n createEmptyQuery,\n createQueryFromTablePath,\n goToQuery,\n loadQuery,\n} from '../module/query/actions';\nimport {getQueryGetParams} from '../module/query/selectors';\nimport {QueriesList} from '../QueriesList';\nimport {QueryEditor} from '../QueryEditor/QueryEditor';\nimport './QueryTracker.scss';\n\ntype Props = {\n match: {\n path: string;\n params: {\n queryId?: string;\n };\n };\n location: {\n search: string;\n };\n};\n\nconst initialSizes = [23, 77];\nconst minSize = 380; // see history list's cells size\n\nfunction DefaultQueriesPage() {\n const dispatch = useDispatch();\n const routeParams = useSelector(getQueryGetParams);\n\n useEffect(() => {\n const engine =\n routeParams.engine && isEngine(routeParams.engine)\n ? (routeParams.engine as QueryEngine)\n : QueryEngine.YQL;\n if (routeParams.cluster && routeParams.path) {\n dispatch(createQueryFromTablePath(engine, routeParams.cluster, routeParams.path));\n } else {\n dispatch(createEmptyQuery(engine));\n }\n }, [dispatch, routeParams]);\n return null;\n}\n\nfunction QueryPage(props: Props) {\n const dispatch = useDispatch();\n\n useEffect(() => {\n if (props.match.params.queryId) {\n dispatch(loadQuery(props.match.params.queryId));\n } else {\n dispatch(createEmptyQuery());\n }\n }, [dispatch, props.match.params.queryId]);\n return null;\n}\n\nexport const QueryTracker = ({match}: Props) => {\n const [sizes, setSize] = useState(initialSizes);\n const getSize = useMemo(() => {\n return () => sizes;\n }, [sizes]);\n const dispatch = useDispatch();\n\n const goToCreatedQuery = useCallback(\n (queryId: string) => {\n dispatch(goToQuery(queryId));\n return true;\n },\n [dispatch],\n );\n return (\n <>\n <Switch>\n <Route exact path={match.path} component={DefaultQueriesPage} />\n <Route path={`${match.path}/:queryId`} component={QueryPage} />\n </Switch>\n <QueriesPooling>\n <FlexSplitPane\n className=\"query-tracker-page-container\"\n direction={FlexSplitPane.HORIZONTAL}\n onResizeEnd={setSize}\n minSize={minSize}\n getInitialSizes={getSize}\n >\n <QueriesList />\n\n <QueryEditor onStartQuery={goToCreatedQuery}></QueryEditor>\n </FlexSplitPane>\n </QueriesPooling>\n </>\n );\n};\n"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAO,OAAO;AACtE,SAAQC,WAAW,EAAEC,WAAW,QAAO,aAAa;AACpD,SAAQC,MAAM,EAAEC,KAAK,QAAO,cAAc;AAC1C,OAAOC,aAAa,MAAM,iDAAiD;AAC3E,SAAQC,cAAc,QAAO,iCAAiC;AAC9D,SAAQC,QAAQ,EAAEC,WAAW,QAAO,eAAe;AACnD,SACIC,gBAAgB,EAChBC,wBAAwB,EACxBC,SAAS,EACTC,SAAS,QACN,yBAAyB;AAChC,SAAQC,iBAAiB,QAAO,2BAA2B;AAC3D,SAAQC,WAAW,QAAO,gBAAgB;AAC1C,SAAQC,WAAW,QAAO,4BAA4B;AACtD,OAAO,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAc7B,IAAMC,YAAY,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC;AAC7B,IAAMC,OAAO,GAAG,GAAG,CAAC,CAAC;;AAErB,SAASC,kBAAkBA,CAAA,EAAG;EAC1B,IAAMC,QAAQ,GAAGxB,WAAW,EAAE;EAC9B,IAAMyB,WAAW,GAAGxB,WAAW,CAACW,iBAAiB,CAAC;EAElDf,SAAS,CAAC,YAAM;IACZ,IAAM6B,MAAM,GACRD,WAAW,CAACC,MAAM,IAAIpB,QAAQ,CAACmB,WAAW,CAACC,MAAM,CAAC,GAC3CD,WAAW,CAACC,MAAM,GACnBnB,W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gBAAgB,GAAG/C,WAAW,CAChC,UAACsC,OAAe,EAAK;IACjBV,QAAQ,CAACd,SAAS,CAACwB,OAAO,CAAC,CAAC;IAC5B,OAAO,IAAI;EACf,CAAC,EACD,CAACV,QAAQ,CAAC,CACb;EACD,oBACIN,KAAA,CAAAE,SAAA;IAAAwB,QAAA,gBACI1B,KAAA,CAAChB,MAAM;MAAA0C,QAAA,gBACH5B,IAAA,CAACb,KAAK;QAAC0C,KAAK;QAAChB,IAAI,EAAEG,KAAK,CAACH,IAAK;QAACiB,SAAS,EAAEvB;MAAmB,EAAG,eAChEP,IAAA,CAACb,KAAK;QAAC0B,IAAI,KAAAkB,MAAA,CAAKf,KAAK,CAACH,IAAI,cAAY;QAACiB,SAAS,EAAEhB;MAAU,EAAG;IAAA,EAC1D,eACTd,IAAA,CAACX,cAAc;MAAAuC,QAAA,eACX1B,KAAA,CAACd,aAAa;QACV4C,SAAS,EAAC,8BAA8B;QACxCC,SAAS,EAAE7C,aAAa,CAAC8C,UAAW;QACpCC,WAAW,EAAEV,OAAQ;QACrBnB,OAAO,EAAEA,OAAQ;QACjB8B,eAAe,EAAEV,OAAQ;QAAAE,QAAA,gBAEzB5B,IAAA,CAACH,WAAW,KAAG,eAEfG,IAAA,CAACF,WAAW;UAACuC,YAAY,EAAEV;QAAiB,EAAe;MAAA;IAC/C,EACH;EAAA,EAClB;AAEX,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.query-new-button {
|
2
|
+
display: inline-flex;
|
3
|
+
align-items: center;
|
4
|
+
}
|
5
|
+
.query-new-button__default {
|
6
|
+
margin-right: 1px;
|
7
|
+
}
|
8
|
+
|
9
|
+
.query-language-selector-item__link {
|
10
|
+
color: var(--yc-color-text-primary) !important;
|
11
|
+
}
|
12
|
+
|
13
|
+
.query-language-selector-item__link {
|
14
|
+
text-decoration: none;
|
15
|
+
}
|
16
|
+
.query-language-selector-item__link:hover {
|
17
|
+
color: var(--yc-color-text-primary) !important;
|
18
|
+
}
|
19
|
+
/*# sourceMappingURL=index.css.map */
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["index.scss","index.css"],"names":[],"mappings":"AAAA;EACI,oBAAA;EACA,mBAAA;ACCJ;ADCI;EACI,iBAAA;ACCR;;ADII;EAEI,8CAAA;ACDR;;ADDI;EACI,qBAAA;ACAR;ADGQ;EACI,8CAAA;ACDZ","file":"index.css","sourcesContent":[".query-new-button {\n display: inline-flex;\n align-items: center;\n\n &__default {\n margin-right: 1px;\n }\n}\n\n.query-language-selector-item {\n &__link {\n text-decoration: none;\n color: var(--yc-color-text-primary) !important;\n\n &:hover {\n color: var(--yc-color-text-primary) !important;\n }\n }\n}\n\n",".query-new-button {\n display: inline-flex;\n align-items: center;\n}\n.query-new-button__default {\n margin-right: 1px;\n}\n\n.query-language-selector-item__link {\n text-decoration: none;\n color: var(--yc-color-text-primary) !important;\n}\n.query-language-selector-item__link:hover {\n color: var(--yc-color-text-primary) !important;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { ButtonProps } from '@gravity-ui/uikit';
|
3
|
+
import { QueryEngine } from '../module/api';
|
4
|
+
import './index.scss';
|
5
|
+
export type QueryTracketrNewButtonProps = {
|
6
|
+
className?: string;
|
7
|
+
view?: ButtonProps['view'];
|
8
|
+
cluster: string;
|
9
|
+
engines?: QueryEngine[];
|
10
|
+
defaultEngine?: QueryEngine;
|
11
|
+
target?: '_blank';
|
12
|
+
renderDefaultTitle: (props: {
|
13
|
+
engine: QueryEngine;
|
14
|
+
engineTitle: string;
|
15
|
+
}) => React.ReactChild;
|
16
|
+
path?: string;
|
17
|
+
};
|
18
|
+
export declare const QueryTrackerNewButton: ({ className, view, cluster, path, engines, renderDefaultTitle, defaultEngine, target, }: QueryTracketrNewButtonProps) => JSX.Element;
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import React, { useMemo } from 'react';
|
2
|
+
import cn from 'bem-cn-lite';
|
3
|
+
import { Button, Select } from '@gravity-ui/uikit';
|
4
|
+
import { Engines, QueryEngine } from '../module/api';
|
5
|
+
import { createNewQueryUrl } from '../utils/navigation';
|
6
|
+
import Link from '../../../components/Link/Link';
|
7
|
+
import Icon from '../../../components/Icon/Icon';
|
8
|
+
import { QueryEnginesNames } from '../utils/query';
|
9
|
+
import './index.css';
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
12
|
+
var block = cn('query-new-button');
|
13
|
+
var engineSelectorItem = cn('query-language-selector-item');
|
14
|
+
export var QueryTrackerNewButton = function QueryTrackerNewButton(_ref) {
|
15
|
+
var className = _ref.className,
|
16
|
+
view = _ref.view,
|
17
|
+
cluster = _ref.cluster,
|
18
|
+
path = _ref.path,
|
19
|
+
_ref$engines = _ref.engines,
|
20
|
+
engines = _ref$engines === void 0 ? Engines : _ref$engines,
|
21
|
+
renderDefaultTitle = _ref.renderDefaultTitle,
|
22
|
+
_ref$defaultEngine = _ref.defaultEngine,
|
23
|
+
defaultEngine = _ref$defaultEngine === void 0 ? QueryEngine.YQL : _ref$defaultEngine,
|
24
|
+
target = _ref.target;
|
25
|
+
var engineOptions = useMemo(function () {
|
26
|
+
return engines.filter(function (engine) {
|
27
|
+
return engine !== defaultEngine;
|
28
|
+
}).map(function (engine) {
|
29
|
+
return {
|
30
|
+
value: engine,
|
31
|
+
content: /*#__PURE__*/_jsx(Link, {
|
32
|
+
className: engineSelectorItem('link'),
|
33
|
+
routed: target !== '_blank',
|
34
|
+
url: createNewQueryUrl(cluster, engine, {
|
35
|
+
path: path
|
36
|
+
}),
|
37
|
+
children: QueryEnginesNames[engine]
|
38
|
+
})
|
39
|
+
};
|
40
|
+
});
|
41
|
+
}, [cluster, defaultEngine, engines, path]);
|
42
|
+
return /*#__PURE__*/_jsxs("div", {
|
43
|
+
className: block(null, className),
|
44
|
+
children: [/*#__PURE__*/_jsx(Link, {
|
45
|
+
routed: target !== '_blank',
|
46
|
+
url: createNewQueryUrl(cluster, defaultEngine, {
|
47
|
+
path: path
|
48
|
+
}),
|
49
|
+
children: /*#__PURE__*/_jsx(Button, {
|
50
|
+
className: block('default'),
|
51
|
+
view: view,
|
52
|
+
pin: engineOptions !== null && engineOptions !== void 0 && engineOptions.length ? 'round-clear' : 'round-round',
|
53
|
+
children: renderDefaultTitle({
|
54
|
+
engine: defaultEngine,
|
55
|
+
engineTitle: QueryEnginesNames[defaultEngine]
|
56
|
+
})
|
57
|
+
})
|
58
|
+
}), Boolean(engineOptions === null || engineOptions === void 0 ? void 0 : engineOptions.length) && /*#__PURE__*/_jsx(Select, {
|
59
|
+
popupClassName: block('select'),
|
60
|
+
options: engineOptions,
|
61
|
+
value: undefined,
|
62
|
+
renderControl: function renderControl(_ref2) {
|
63
|
+
var onClick = _ref2.onClick,
|
64
|
+
onKeyDown = _ref2.onKeyDown,
|
65
|
+
ref = _ref2.ref;
|
66
|
+
return /*#__PURE__*/_jsx(Button, {
|
67
|
+
ref: ref,
|
68
|
+
onClick: onClick,
|
69
|
+
extraProps: {
|
70
|
+
onKeyDown: onKeyDown
|
71
|
+
},
|
72
|
+
view: view,
|
73
|
+
pin: "clear-round",
|
74
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
75
|
+
awesome: "chevron-down"
|
76
|
+
})
|
77
|
+
});
|
78
|
+
}
|
79
|
+
})]
|
80
|
+
});
|
81
|
+
};
|
82
|
+
// #sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["React","useMemo","cn","Button","Select","Engines","QueryEngine","createNewQueryUrl","Link","Icon","QueryEnginesNames","jsx","_jsx","jsxs","_jsxs","block","engineSelectorItem","QueryTrackerNewButton","_ref","className","view","cluster","path","_ref$engines","engines","renderDefaultTitle","_ref$defaultEngine","defaultEngine","YQL","target","engineOptions","filter","engine","map","value","content","routed","url","children","pin","length","engineTitle","Boolean","popupClassName","options","undefined","renderControl","_ref2","onClick","onKeyDown","ref","extraProps","awesome"],"sources":["index.tsx"],"sourcesContent":["import React, {useMemo} from 'react';\nimport cn from 'bem-cn-lite';\nimport {ButtonProps, SelectOption, Button, Select} from '@gravity-ui/uikit';\nimport {Engines, QueryEngine} from '../module/api';\nimport {createNewQueryUrl} from '../utils/navigation';\nimport Link from '../../../components/Link/Link';\nimport Icon from '../../../components/Icon/Icon';\nimport {QueryEnginesNames} from '../utils/query';\n\nimport './index.scss';\n\nconst block = cn('query-new-button');\n\nconst engineSelectorItem = cn('query-language-selector-item');\n\nexport type QueryTracketrNewButtonProps = {\n className?: string;\n view?: ButtonProps['view'];\n cluster: string;\n engines?: QueryEngine[];\n defaultEngine?: QueryEngine;\n target?: '_blank';\n renderDefaultTitle: (props: {engine: QueryEngine; engineTitle: string}) => React.ReactChild;\n path?: string;\n};\n\nexport const QueryTrackerNewButton = ({\n className,\n view,\n cluster,\n path,\n engines = Engines,\n renderDefaultTitle,\n defaultEngine = QueryEngine.YQL,\n target,\n}: QueryTracketrNewButtonProps) => {\n const engineOptions = useMemo<SelectOption[]>(() => {\n return engines\n .filter((engine) => engine !== defaultEngine)\n .map((engine) => ({\n value: engine,\n content: (\n <Link\n className={engineSelectorItem('link')}\n routed={target !== '_blank'}\n url={createNewQueryUrl(cluster, engine, {path})}\n >\n {QueryEnginesNames[engine]}\n </Link>\n ),\n }));\n }, [cluster, defaultEngine, engines, path]);\n\n return (\n <div className={block(null, className)}>\n <Link\n routed={target !== '_blank'}\n url={createNewQueryUrl(cluster, defaultEngine, {path})}\n >\n <Button\n className={block('default')}\n view={view}\n pin={engineOptions?.length ? 'round-clear' : 'round-round'}\n >\n {renderDefaultTitle({\n engine: defaultEngine,\n engineTitle: QueryEnginesNames[defaultEngine],\n })}\n </Button>\n </Link>\n {Boolean(engineOptions?.length) && (\n <Select\n popupClassName={block('select')}\n options={engineOptions}\n value={undefined}\n renderControl={({onClick, onKeyDown, ref}) => (\n <Button\n ref={ref}\n onClick={onClick}\n ext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KAAK,CAAC,QAAQ,CAAE;MAChC6B,OAAO,EAAEd,aAAc;MACvBI,KAAK,EAAEW,SAAU;MACjBC,aAAa,EAAE,SAAAA,cAAAC,KAAA;QAAA,IAAEC,OAAO,GAAAD,KAAA,CAAPC,OAAO;UAAEC,SAAS,GAAAF,KAAA,CAATE,SAAS;UAAEC,GAAG,GAAAH,KAAA,CAAHG,GAAG;QAAA,oBACpCtC,IAAA,CAACT,MAAM;UACH+C,GAAG,EAAEA,GAAI;UACTF,OAAO,EAAEA,OAAQ;UACjBG,UAAU,EAAE;YAACF,SAAS,EAATA;UAAS,CAAE;UACxB7B,IAAI,EAAEA,IAAK;UACXmB,GAAG,EAAC,aAAa;UAAAD,QAAA,eAEjB1B,IAAA,CAACH,IAAI;YAAC2C,OAAO,EAAC;UAAc;QAAG,EAC1B;MAAA;IACX,EAET;EAAA,EACC;AAEd,CAAC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
.query-new-button {
|
2
|
+
display: inline-flex;
|
3
|
+
align-items: center;
|
4
|
+
|
5
|
+
&__default {
|
6
|
+
margin-right: 1px;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
.query-language-selector-item {
|
11
|
+
&__link {
|
12
|
+
text-decoration: none;
|
13
|
+
color: var(--yc-color-text-primary) !important;
|
14
|
+
|
15
|
+
&:hover {
|
16
|
+
color: var(--yc-color-text-primary) !important;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
.query-tracker-meta-form {
|
2
|
+
display: flex;
|
3
|
+
}
|
4
|
+
.query-tracker-meta-form__control {
|
5
|
+
margin-right: 8px;
|
6
|
+
}
|
7
|
+
.query-tracker-meta-form__control_name {
|
8
|
+
display: inline-flex;
|
9
|
+
max-width: 30%;
|
10
|
+
min-width: 80px;
|
11
|
+
align-items: center;
|
12
|
+
}
|
13
|
+
/*# sourceMappingURL=index.css.map */
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["index.scss","index.css"],"names":[],"mappings":"AAAA;EACI,aAAA;ACCJ;ADCI;EACI,iBAAA;ACCR;ADAQ;EACI,oBAAA;EACA,cAAA;EACA,eAAA;EACA,mBAAA;ACEZ","file":"index.css","sourcesContent":[".query-tracker-meta-form {\n display: flex;\n\n &__control {\n margin-right: 8px;\n &_name {\n display: inline-flex;\n max-width: 30%;\n min-width: 80px;\n align-items: center;\n }\n }\n}\n",".query-tracker-meta-form {\n display: flex;\n}\n.query-tracker-meta-form__control {\n margin-right: 8px;\n}\n.query-tracker-meta-form__control_name {\n display: inline-flex;\n max-width: 30%;\n min-width: 80px;\n align-items: center;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import React, { useCallback } from 'react';
|
2
|
+
import cn from 'bem-cn-lite';
|
3
|
+
import { Select, Text } from '@gravity-ui/uikit';
|
4
|
+
import { EditableAsText } from '../../../../components/EditableAsText/EditableAsText';
|
5
|
+
import { useDispatch, useSelector } from 'react-redux';
|
6
|
+
import { Engines } from '../../module/api';
|
7
|
+
import { SET_QUERY_PATCH } from '../../module/query/actions';
|
8
|
+
import { getQueryDraft, getQuery } from '../../module/query/selectors';
|
9
|
+
import { QueryEnginesNames } from '../../utils/query';
|
10
|
+
import { QuerySettingsButton } from '../../QuerySettingsButton';
|
11
|
+
import './index.css';
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
14
|
+
var EngineOptions = Engines.map(function (key) {
|
15
|
+
return {
|
16
|
+
value: key,
|
17
|
+
content: QueryEnginesNames[key]
|
18
|
+
};
|
19
|
+
});
|
20
|
+
var block = cn('query-tracker-meta-form');
|
21
|
+
export function QueryMetaForm(_ref) {
|
22
|
+
var _draft$annotations;
|
23
|
+
var className = _ref.className;
|
24
|
+
var dispatch = useDispatch();
|
25
|
+
var draft = useSelector(getQueryDraft);
|
26
|
+
var originalQuery = useSelector(getQuery);
|
27
|
+
var onEngineChange = useCallback(function (engines) {
|
28
|
+
dispatch({
|
29
|
+
type: SET_QUERY_PATCH,
|
30
|
+
data: {
|
31
|
+
engine: engines[0]
|
32
|
+
}
|
33
|
+
});
|
34
|
+
}, [dispatch]);
|
35
|
+
var onNameChange = useCallback(function (name) {
|
36
|
+
dispatch({
|
37
|
+
type: SET_QUERY_PATCH,
|
38
|
+
data: {
|
39
|
+
annotations: {
|
40
|
+
title: name
|
41
|
+
}
|
42
|
+
}
|
43
|
+
});
|
44
|
+
}, [dispatch]);
|
45
|
+
var onSettingsChange = useCallback(function (settings) {
|
46
|
+
dispatch({
|
47
|
+
type: SET_QUERY_PATCH,
|
48
|
+
data: {
|
49
|
+
settings: settings
|
50
|
+
}
|
51
|
+
});
|
52
|
+
}, [dispatch]);
|
53
|
+
var queryName = (_draft$annotations = draft.annotations) === null || _draft$annotations === void 0 ? void 0 : _draft$annotations.title;
|
54
|
+
return /*#__PURE__*/_jsxs("div", {
|
55
|
+
className: block(null, className),
|
56
|
+
children: [/*#__PURE__*/_jsx(EditableAsText, {
|
57
|
+
withControls: true,
|
58
|
+
className: block('control', {
|
59
|
+
name: true
|
60
|
+
}),
|
61
|
+
onChange: onNameChange,
|
62
|
+
text: queryName,
|
63
|
+
children: /*#__PURE__*/_jsx(Text, {
|
64
|
+
title: queryName,
|
65
|
+
variant: "body-1",
|
66
|
+
color: queryName ? 'primary' : 'secondary',
|
67
|
+
ellipsis: true,
|
68
|
+
children: queryName || 'No name'
|
69
|
+
})
|
70
|
+
}, originalQuery === null || originalQuery === void 0 ? void 0 : originalQuery.id), /*#__PURE__*/_jsx(Select, {
|
71
|
+
className: block('control'),
|
72
|
+
options: EngineOptions,
|
73
|
+
value: [draft.engine],
|
74
|
+
onUpdate: onEngineChange
|
75
|
+
}), /*#__PURE__*/_jsx(QuerySettingsButton, {
|
76
|
+
className: block('control'),
|
77
|
+
settings: draft.settings,
|
78
|
+
onChange: onSettingsChange
|
79
|
+
})]
|
80
|
+
});
|
81
|
+
}
|
82
|
+
// #sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["React","useCallback","cn","Select","Text","EditableAsText","useDispatch","useSelector","Engines","SET_QUERY_PATCH","getQueryDraft","getQuery","QueryEnginesNames","QuerySettingsButton","jsx","_jsx","jsxs","_jsxs","EngineOptions","map","key","value","content","block","QueryMetaForm","_ref","_draft$annotations","className","dispatch","draft","originalQuery","onEngineChange","engines","type","data","engine","onNameChange","name","annotations","title","onSettingsChange","settings","queryName","children","withControls","onChange","text","variant","color","ellipsis","id","options","onUpdate"],"sources":["index.tsx"],"sourcesContent":["import React, {useCallback} from 'react';\nimport cn from 'bem-cn-lite';\nimport {Select, Text} from '@gravity-ui/uikit';\nimport {EditableAsText} from '../../../../components/EditableAsText/EditableAsText';\nimport {useDispatch, useSelector} from 'react-redux';\nimport {Engines} from '../../module/api';\nimport {SET_QUERY_PATCH} from '../../module/query/actions';\nimport {getQueryDraft, getQuery} from '../../module/query/selectors';\nimport {QueryEnginesNames} from '../../utils/query';\nimport {QuerySettingsButton} from '../../QuerySettingsButton';\nimport './index.scss';\n\nconst EngineOptions = Engines.map((key) => ({\n value: key,\n content: QueryEnginesNames[key],\n}));\n\nconst block = cn('query-tracker-meta-form');\nexport function QueryMetaForm({className}: {className: string}) {\n const dispatch = useDispatch();\n const draft = useSelector(getQueryDraft);\n const originalQuery = useSelector(getQuery);\n\n const onEngineChange = useCallback(\n (engines: string[]) => {\n dispatch({\n type: SET_QUERY_PATCH,\n data: {\n engine: engines[0],\n },\n });\n },\n [dispatch],\n );\n\n const onNameChange = useCallback(\n (name: string) => {\n dispatch({\n type: SET_QUERY_PATCH,\n data: {\n annotations: {\n title: name,\n },\n },\n });\n },\n [dispatch],\n );\n\n const onSettingsChange = useCallback(\n (settings: Record<string, string>) => {\n dispatch({\n type: SET_QUERY_PATCH,\n data: {\n settings,\n },\n });\n },\n [dispatch],\n );\n\n const queryName = draft.annotations?.title;\n return (\n <div className={block(null, className)}>\n <EditableAsText\n withControls\n className={block('control', {name: true})}\n onChange={onNameChange}\n text={queryName}\n key={originalQuery?.id}\n >\n <Text\n title={queryName}\n variant=\"body-1\"\n color={queryName ? 'primary' : 'secondary'}\n ellipsis\n >\n {queryName || 'No name'}\n </Text>\n </EditableAsText>\n <Select\n className={block('control')}\n options={EngineOptions}\n value={[draft.engine]}\n onUpdate={onEngineChange}\n />\n <QuerySettingsButton\n className={block('control')}\n settings={draft.settings}\n onChange={onSettingsChange}\n />\n </div>\n );\n}\n"],"mappings":"AAAA,OAAOA,KAAK,IAAGC,WAAW,QAAO,OAAO;AACxC,OAAOC,EAAE,MAAM,aAAa;AAC5B,SAAQC,MAAM,EAAEC,IAAI,QAAO,mBAAmB;AAC9C,SAAQC,cAAc,QAAO,sDAAsD;AACnF,SAAQC,WAAW,EAAEC,WAAW,QAAO,aAAa;AACpD,SAAQC,OAAO,QAAO,kBAAkB;AACxC,SAAQC,eAAe,QAAO,4BAA4B;AAC1D,SAAQC,aAAa,EAAEC,QAAQ,QAAO,8BAA8B;AACpE,SAAQC,iBAAiB,QAAO,mBAAmB;AACnD,SAAQC,mBAAmB,QAAO,2BAA2B;AAC7D,OAAO,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAEtB,IAAMC,aAAa,GAAGV,OAAO,CAACW,GAAG,CAAC,UAACC,GAAG;EAAA,OAAM;IACxCC,KAAK,EAAED,GAAG;IACVE,OAAO,EAAEV,iBAAiB,CAACQ,GAAG;EAClC,CAAC;AAAA,CAAC,CAAC;AAEH,IAAMG,KAAK,GAAGrB,EAAE,CAAC,yBAAyB,CAAC;AAC3C,OAAO,SAASsB,aAAaA,CAAAC,IAAA,EAAmC;EAAA,IAAAC,kBAAA;EAAA,IAAjCC,SAAS,GAAAF,IAAA,CAATE,SAAS;EACpC,IAAMC,QAAQ,GAAGtB,WAAW,EAAE;EAC9B,IA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AAC,QAAQ;QAChBC,KAAK,EAAEN,SAAS,GAAG,SAAS,GAAG,WAAY;QAC3CO,QAAQ;QAAAN,QAAA,EAEPD,SAAS,IAAI;MAAS;IACpB,GATFZ,aAAa,aAAbA,aAAa,uBAAbA,aAAa,CAAEoB,EAAE,CAUT,eACjBnC,IAAA,CAACZ,MAAM;MACHwB,SAAS,EAAEJ,KAAK,CAAC,SAAS,CAAE;MAC5B4B,OAAO,EAAEjC,aAAc;MACvBG,KAAK,EAAE,CAACQ,KAAK,CAACM,MAAM,CAAE;MACtBiB,QAAQ,EAAErB;IAAe,EAC3B,eACFhB,IAAA,CAACF,mBAAmB;MAChBc,SAAS,EAAEJ,KAAK,CAAC,SAAS,CAAE;MAC5BkB,QAAQ,EAAEZ,KAAK,CAACY,QAAS;MACzBI,QAAQ,EAAEL;IAAiB,EAC7B;EAAA,EACA;AAEd"}
|
@@ -1,23 +1,13 @@
|
|
1
|
+
.query-tracker-top-row-content {
|
2
|
+
display: flex;
|
3
|
+
flex: 1;
|
4
|
+
}
|
1
5
|
.query-tracker-top-row-content__meta {
|
2
6
|
flex: 1;
|
3
7
|
display: flex;
|
4
8
|
align-items: center;
|
5
9
|
}
|
6
|
-
.query-tracker-top-row-
|
7
|
-
|
8
|
-
}
|
9
|
-
.query-tracker-top-row-content__control_name {
|
10
|
-
display: inline-flex;
|
11
|
-
max-width: 30%;
|
12
|
-
align-items: center;
|
13
|
-
}
|
14
|
-
.query-tracker-top-row-content__select .query-language-selector-item__link {
|
15
|
-
color: var(--yc-color-text-primary) !important;
|
16
|
-
}
|
17
|
-
.query-tracker-top-row-content__select .query-language-selector-item__link {
|
18
|
-
text-decoration: none;
|
19
|
-
}
|
20
|
-
.query-tracker-top-row-content__select .query-language-selector-item__link:hover {
|
21
|
-
color: var(--yc-color-text-primary) !important;
|
10
|
+
.query-tracker-top-row-content__meta .query-tracker-top-row-content__meta-form {
|
11
|
+
flex: 1;
|
22
12
|
}
|
23
13
|
/*# sourceMappingURL=index.css.map */
|