@ytsaurus/components 0.2.3 → 0.2.5
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/esm/components/MetaTable/presets/compression.d.ts +1 -0
- package/build/esm/components/MetaTable/presets/compression.d.ts.map +1 -1
- package/build/esm/components/MetaTable/presets/compression.js +3 -0
- package/build/esm/components/MetaTable/presets/compression.js.map +1 -1
- package/build/esm/components/MetaTable/presets/erasure-replication.d.ts +2 -0
- package/build/esm/components/MetaTable/presets/erasure-replication.d.ts.map +1 -1
- package/build/esm/components/MetaTable/presets/erasure-replication.js +3 -0
- package/build/esm/components/MetaTable/presets/erasure-replication.js.map +1 -1
- package/build/esm/components/MetaTable/presets/helpers/commonFields.d.ts.map +1 -1
- package/build/esm/components/MetaTable/presets/helpers/commonFields.js +5 -3
- package/build/esm/components/MetaTable/presets/helpers/commonFields.js.map +1 -1
- package/build/esm/components/MetaTable/presets/i18n/dicts.d.ts +68 -0
- package/build/esm/components/MetaTable/presets/i18n/dicts.d.ts.map +1 -1
- package/build/esm/components/MetaTable/presets/i18n/en.json +35 -1
- package/build/esm/components/MetaTable/presets/i18n/index.d.ts +2 -2
- package/build/esm/components/MetaTable/presets/i18n/ru.json +35 -1
- package/build/esm/components/MetaTable/presets/main.d.ts.map +1 -1
- package/build/esm/components/MetaTable/presets/main.js +7 -0
- package/build/esm/components/MetaTable/presets/main.js.map +1 -1
- package/build/esm/components/MetaTable/presets/presets.d.ts +7 -29
- package/build/esm/components/MetaTable/presets/presets.d.ts.map +1 -1
- package/build/esm/components/MetaTable/presets/presets.js +10 -9
- package/build/esm/components/MetaTable/presets/presets.js.map +1 -1
- package/build/esm/components/MetaTable/presets/size.d.ts +1 -7
- package/build/esm/components/MetaTable/presets/size.d.ts.map +1 -1
- package/build/esm/components/MetaTable/presets/size.js +7 -1
- package/build/esm/components/MetaTable/presets/size.js.map +1 -1
- package/build/esm/components/MetaTable/presets/ttl.d.ts.map +1 -1
- package/build/esm/components/MetaTable/presets/ttl.js +7 -0
- package/build/esm/components/MetaTable/presets/ttl.js.map +1 -1
- package/build/esm/modules/NavigationTable/NavigationTable.css +3 -0
- package/build/esm/modules/NavigationTable/NavigationTable.css.map +1 -1
- package/build/esm/modules/NavigationTable/NavigationTable.d.ts +1 -1
- package/build/esm/modules/NavigationTable/NavigationTable.d.ts.map +1 -1
- package/build/esm/modules/NavigationTable/NavigationTable.js +18 -6
- package/build/esm/modules/NavigationTable/NavigationTable.js.map +1 -1
- package/build/esm/modules/NavigationTable/NavigationTable.scss +6 -0
- package/build/esm/modules/NavigationTable/NavigationTable.stories.js +1 -1
- package/build/esm/modules/NavigationTable/NavigationTable.stories.js.map +1 -1
- package/build/esm/modules/NavigationTable/SchemaTab.js +1 -1
- package/build/esm/modules/NavigationTable/SchemaTab.js.map +1 -1
- package/build/esm/modules/NavigationTable/helpers/filterSchema.d.ts +3 -0
- package/build/esm/modules/NavigationTable/helpers/filterSchema.d.ts.map +1 -0
- package/build/esm/modules/NavigationTable/helpers/filterSchema.js +12 -0
- package/build/esm/modules/NavigationTable/helpers/filterSchema.js.map +1 -0
- package/build/esm/modules/NavigationTable/helpers/sortColumnsBySchema.d.ts +3 -0
- package/build/esm/modules/NavigationTable/helpers/sortColumnsBySchema.d.ts.map +1 -0
- package/build/esm/modules/NavigationTable/helpers/sortColumnsBySchema.js +25 -0
- package/build/esm/modules/NavigationTable/helpers/sortColumnsBySchema.js.map +1 -0
- package/build/esm/types/navigation.d.ts +2 -7
- package/build/esm/types/navigation.d.ts.map +1 -1
- package/build/esm/types/navigation.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compression.d.ts","sourceRoot":"","sources":["../../../../../src/components/MetaTable/presets/compression.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compression.d.ts","sourceRoot":"","sources":["../../../../../src/components/MetaTable/presets/compression.js"],"names":[],"mappings":"AAGO;;;;IAkBN"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { format, ypath } from '../../../utils';
|
|
3
|
+
import i18n from './i18n';
|
|
3
4
|
export var compression = function compression(attributes) {
|
|
4
5
|
var _ypath$getValues = ypath.getValues(attributes, ['/compression_ratio', '/compression_codec']),
|
|
5
6
|
_ypath$getValues2 = _slicedToArray(_ypath$getValues, 2),
|
|
@@ -7,11 +8,13 @@ export var compression = function compression(attributes) {
|
|
|
7
8
|
compressionCodec = _ypath$getValues2[1];
|
|
8
9
|
return [{
|
|
9
10
|
key: 'compression_ratio',
|
|
11
|
+
label: i18n('field_compression-ratio'),
|
|
10
12
|
value: format['Number'](compressionRatio, {
|
|
11
13
|
digits: 5
|
|
12
14
|
})
|
|
13
15
|
}, {
|
|
14
16
|
key: 'compression_codec',
|
|
17
|
+
label: i18n('field_compression-codec'),
|
|
15
18
|
value: compressionCodec
|
|
16
19
|
}];
|
|
17
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["format","ypath","compression","attributes","_ypath$getValues","getValues","_ypath$getValues2","_slicedToArray","compressionRatio","compressionCodec","key","value","digits"],"sources":["compression.js"],"sourcesContent":["import {format, ypath} from '../../../utils';\n\nexport const compression = (attributes) => {\n const [compressionRatio, compressionCodec] = ypath.getValues(attributes, [\n '/compression_ratio',\n '/compression_codec',\n ]);\n\n return [\n {\n key: 'compression_ratio',\n value: format['Number'](compressionRatio, {digits: 5}),\n },\n {\n key: 'compression_codec',\n value: compressionCodec,\n },\n ];\n};\n"],"mappings":";AAAA,SAAQA,MAAM,EAAEC,KAAK,QAAO,gBAAgB;
|
|
1
|
+
{"version":3,"names":["format","ypath","i18n","compression","attributes","_ypath$getValues","getValues","_ypath$getValues2","_slicedToArray","compressionRatio","compressionCodec","key","label","value","digits"],"sources":["compression.js"],"sourcesContent":["import {format, ypath} from '../../../utils';\nimport i18n from './i18n';\n\nexport const compression = (attributes) => {\n const [compressionRatio, compressionCodec] = ypath.getValues(attributes, [\n '/compression_ratio',\n '/compression_codec',\n ]);\n\n return [\n {\n key: 'compression_ratio',\n label: i18n('field_compression-ratio'),\n value: format['Number'](compressionRatio, {digits: 5}),\n },\n {\n key: 'compression_codec',\n label: i18n('field_compression-codec'),\n value: compressionCodec,\n },\n ];\n};\n"],"mappings":";AAAA,SAAQA,MAAM,EAAEC,KAAK,QAAO,gBAAgB;AAC5C,OAAOC,IAAI,MAAM,QAAQ;AAEzB,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,UAAU,EAAK;EACvC,IAAAC,gBAAA,GAA6CJ,KAAK,CAACK,SAAS,CAACF,UAAU,EAAE,CACrE,oBAAoB,EACpB,oBAAoB,CACvB,CAAC;IAAAG,iBAAA,GAAAC,cAAA,CAAAH,gBAAA;IAHKI,gBAAgB,GAAAF,iBAAA;IAAEG,gBAAgB,GAAAH,iBAAA;EAKzC,OAAO,CACH;IACII,GAAG,EAAE,mBAAmB;IACxBC,KAAK,EAAEV,IAAI,CAAC,yBAAyB,CAAC;IACtCW,KAAK,EAAEb,MAAM,CAAC,QAAQ,CAAC,CAACS,gBAAgB,EAAE;MAACK,MAAM,EAAE;IAAC,CAAC;EACzD,CAAC,EACD;IACIH,GAAG,EAAE,mBAAmB;IACxBC,KAAK,EAAEV,IAAI,CAAC,yBAAyB,CAAC;IACtCW,KAAK,EAAEH;EACX,CAAC,CACJ;AACL,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erasure-replication.d.ts","sourceRoot":"","sources":["../../../../../src/components/MetaTable/presets/erasure-replication.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"erasure-replication.d.ts","sourceRoot":"","sources":["../../../../../src/components/MetaTable/presets/erasure-replication.js"],"names":[],"mappings":"AAKO;;;;;;;;;;;;KAuBN"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { ypath } from '../../../utils';
|
|
3
|
+
import i18n from './i18n';
|
|
3
4
|
var ERASURE_DOCS_KEY = 'storage:replication#erasure';
|
|
4
5
|
export var erasureReplication = function erasureReplication(attributes) {
|
|
5
6
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -11,11 +12,13 @@ export var erasureReplication = function erasureReplication(attributes) {
|
|
|
11
12
|
var hideReplicationFactor = erasureCodec && erasureCodec !== 'none';
|
|
12
13
|
return [{
|
|
13
14
|
key: 'erasure codec',
|
|
15
|
+
label: i18n('field_erasure-codec'),
|
|
14
16
|
value: erasureCodec,
|
|
15
17
|
helpUrl: docsUrls === null || docsUrls === void 0 ? void 0 : docsUrls[ERASURE_DOCS_KEY],
|
|
16
18
|
visible: erasureCodec !== 'none'
|
|
17
19
|
}, {
|
|
18
20
|
key: 'replication factor',
|
|
21
|
+
label: i18n('field_replication-factor'),
|
|
19
22
|
value: replicationFactor,
|
|
20
23
|
visible: !hideReplicationFactor && replicationFactor !== 'none'
|
|
21
24
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ypath","ERASURE_DOCS_KEY","erasureReplication","attributes","options","arguments","length","undefined","docsUrls","_ypath$getValues","getValues","_ypath$getValues2","_slicedToArray","erasureCodec","replicationFactor","hideReplicationFactor","key","value","helpUrl","visible"],"sources":["erasure-replication.js"],"sourcesContent":["import {ypath} from '../../../utils';\nconst ERASURE_DOCS_KEY = 'storage:replication#erasure';\n\nexport const erasureReplication = (attributes, options = {}) => {\n const {docsUrls} = options;\n const [erasureCodec, replicationFactor] = ypath.getValues(attributes, [\n '/erasure_codec',\n '/replication_factor',\n ]);\n\n const hideReplicationFactor = erasureCodec && erasureCodec !== 'none';\n return [\n {\n key: 'erasure codec',\n value: erasureCodec,\n helpUrl: docsUrls?.[ERASURE_DOCS_KEY],\n visible: erasureCodec !== 'none',\n },\n {\n key: 'replication factor',\n value: replicationFactor,\n visible: !hideReplicationFactor && replicationFactor !== 'none',\n },\n ];\n};\n"],"mappings":";AAAA,SAAQA,KAAK,QAAO,gBAAgB;AACpC,IAAMC,gBAAgB,GAAG,6BAA6B;AAEtD,OAAO,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,UAAU,EAAmB;EAAA,IAAjBC,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACvD,IAAOG,QAAQ,GAAIJ,OAAO,CAAnBI,QAAQ;EACf,IAAAC,gBAAA,
|
|
1
|
+
{"version":3,"names":["ypath","i18n","ERASURE_DOCS_KEY","erasureReplication","attributes","options","arguments","length","undefined","docsUrls","_ypath$getValues","getValues","_ypath$getValues2","_slicedToArray","erasureCodec","replicationFactor","hideReplicationFactor","key","label","value","helpUrl","visible"],"sources":["erasure-replication.js"],"sourcesContent":["import {ypath} from '../../../utils';\nimport i18n from './i18n';\n\nconst ERASURE_DOCS_KEY = 'storage:replication#erasure';\n\nexport const erasureReplication = (attributes, options = {}) => {\n const {docsUrls} = options;\n const [erasureCodec, replicationFactor] = ypath.getValues(attributes, [\n '/erasure_codec',\n '/replication_factor',\n ]);\n\n const hideReplicationFactor = erasureCodec && erasureCodec !== 'none';\n return [\n {\n key: 'erasure codec',\n label: i18n('field_erasure-codec'),\n value: erasureCodec,\n helpUrl: docsUrls?.[ERASURE_DOCS_KEY],\n visible: erasureCodec !== 'none',\n },\n {\n key: 'replication factor',\n label: i18n('field_replication-factor'),\n value: replicationFactor,\n visible: !hideReplicationFactor && replicationFactor !== 'none',\n },\n ];\n};\n"],"mappings":";AAAA,SAAQA,KAAK,QAAO,gBAAgB;AACpC,OAAOC,IAAI,MAAM,QAAQ;AAEzB,IAAMC,gBAAgB,GAAG,6BAA6B;AAEtD,OAAO,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,UAAU,EAAmB;EAAA,IAAjBC,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACvD,IAAOG,QAAQ,GAAIJ,OAAO,CAAnBI,QAAQ;EACf,IAAAC,gBAAA,GAA0CV,KAAK,CAACW,SAAS,CAACP,UAAU,EAAE,CAClE,gBAAgB,EAChB,qBAAqB,CACxB,CAAC;IAAAQ,iBAAA,GAAAC,cAAA,CAAAH,gBAAA;IAHKI,YAAY,GAAAF,iBAAA;IAAEG,iBAAiB,GAAAH,iBAAA;EAKtC,IAAMI,qBAAqB,GAAGF,YAAY,IAAIA,YAAY,KAAK,MAAM;EACrE,OAAO,CACH;IACIG,GAAG,EAAE,eAAe;IACpBC,KAAK,EAAEjB,IAAI,CAAC,qBAAqB,CAAC;IAClCkB,KAAK,EAAEL,YAAY;IACnBM,OAAO,EAAEX,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAGP,gBAAgB,CAAC;IACrCmB,OAAO,EAAEP,YAAY,KAAK;EAC9B,CAAC,EACD;IACIG,GAAG,EAAE,oBAAoB;IACzBC,KAAK,EAAEjB,IAAI,CAAC,0BAA0B,CAAC;IACvCkB,KAAK,EAAEJ,iBAAiB;IACxBM,OAAO,EAAE,CAACL,qBAAqB,IAAID,iBAAiB,KAAK;EAC7D,CAAC,CACJ;AACL,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonFields.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MetaTable/presets/helpers/commonFields.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACR,kCAAkC,EAClC,gCAAgC,EACnC,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"commonFields.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MetaTable/presets/helpers/commonFields.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACR,kCAAkC,EAClC,gCAAgC,EACnC,MAAM,mBAAmB,CAAC;AAG3B,MAAM,WAAW,aAAa;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,eAAe,GAAI,iFAM7B;IACC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,GAAG,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kCAAkC,CAAC,EAAE,kCAAkC,CAAC;IACxE,MAAM,CAAC,EAAE,OAAO,CAAC,gCAAgC,CAAC,CAAC;CACtD,8FA2DA,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { format, ypath } from '../../../../utils';
|
|
3
3
|
import reduce_ from 'lodash/reduce';
|
|
4
|
+
import i18n from '../i18n';
|
|
4
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
6
|
export var getCommonFields = function getCommonFields(_ref) {
|
|
6
7
|
var cluster = _ref.cluster,
|
|
@@ -17,22 +18,23 @@ export var getCommonFields = function getCommonFields(_ref) {
|
|
|
17
18
|
var renderAutomaticModeSwitch = config === null || config === void 0 ? void 0 : config.renderMetaTableAutomaticModeSwitch;
|
|
18
19
|
var fields = [{
|
|
19
20
|
key: 'tableType',
|
|
20
|
-
label: '
|
|
21
|
+
label: i18n('field_table-type'),
|
|
21
22
|
value: tableType
|
|
22
23
|
}, {
|
|
23
24
|
key: 'sorted',
|
|
25
|
+
label: i18n('field_sorted'),
|
|
24
26
|
value: sorted,
|
|
25
27
|
visible: sorted !== undefined
|
|
26
28
|
}, {
|
|
27
29
|
key: 'chaosCellBundle',
|
|
28
|
-
label: '
|
|
30
|
+
label: i18n('field_chaos-cell-bundle'),
|
|
29
31
|
value: chaosCellBundle ? ChaosCellBundleLink ? /*#__PURE__*/_jsx(ChaosCellBundleLink, {
|
|
30
32
|
cluster: cluster,
|
|
31
33
|
chaosCellBundle: chaosCellBundle
|
|
32
34
|
}) : chaosCellBundle : format.NO_VALUE
|
|
33
35
|
}, {
|
|
34
36
|
key: 'automaticModeSwitch',
|
|
35
|
-
label: '
|
|
37
|
+
label: i18n('field_table-automatic-mode-switch'),
|
|
36
38
|
value: renderAutomaticModeSwitch === null || renderAutomaticModeSwitch === void 0 ? void 0 : renderAutomaticModeSwitch({
|
|
37
39
|
value: enableReplicatedTableTracker,
|
|
38
40
|
cluster: cluster,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["format","ypath","reduce_","jsx","_jsx","getCommonFields","_ref","cluster","attributes","tableType","onEditEnableReplicatedTableTracker","config","_ypath$getValues","getValues","_ypath$getValues2","_slicedToArray","sorted","chaosCellBundle","enableReplicatedTableTracker","ChaosCellBundleLink","renderAutomaticModeSwitch","renderMetaTableAutomaticModeSwitch","fields","key","label","value","visible","undefined","NO_VALUE","onEdit","Boolean","commonFields","acc","item"],"sources":["commonFields.tsx"],"sourcesContent":["import {format, ypath} from '../../../../utils';\nimport reduce_ from 'lodash/reduce';\nimport type {\n MetaTableAutomaticModeSwitchOnEdit,\n TYComponentsNavigationMetaConfig,\n} from '../../../../types';\n\nexport interface MetaTableItem {\n key: string;\n label?: React.ReactChild;\n labelTopPadding?: string;\n value: boolean | React.ReactNode;\n icon?: React.ReactNode;\n visible?: boolean;\n helpUrl?: string;\n tooltip?: React.ReactNode;\n className?: string;\n qa?: string;\n}\n\nexport const getCommonFields = ({\n cluster,\n attributes,\n tableType,\n onEditEnableReplicatedTableTracker,\n config,\n}: {\n cluster: string;\n attributes: any;\n isDynamic: boolean;\n tableType: string;\n tabletErrorCount: number;\n onEditEnableReplicatedTableTracker?: MetaTableAutomaticModeSwitchOnEdit;\n config?: Partial<TYComponentsNavigationMetaConfig>;\n}) => {\n const [sorted, chaosCellBundle, enableReplicatedTableTracker] = ypath.getValues(attributes, [\n '/sorted',\n '/chaos_cell_bundle',\n '/replicated_table_options/enable_replicated_table_tracker',\n ]);\n\n const ChaosCellBundleLink = config?.ChaosCellBundleLink;\n const renderAutomaticModeSwitch = config?.renderMetaTableAutomaticModeSwitch;\n\n const fields = [\n {\n key: 'tableType',\n label: '
|
|
1
|
+
{"version":3,"names":["format","ypath","reduce_","i18n","jsx","_jsx","getCommonFields","_ref","cluster","attributes","tableType","onEditEnableReplicatedTableTracker","config","_ypath$getValues","getValues","_ypath$getValues2","_slicedToArray","sorted","chaosCellBundle","enableReplicatedTableTracker","ChaosCellBundleLink","renderAutomaticModeSwitch","renderMetaTableAutomaticModeSwitch","fields","key","label","value","visible","undefined","NO_VALUE","onEdit","Boolean","commonFields","acc","item"],"sources":["commonFields.tsx"],"sourcesContent":["import {format, ypath} from '../../../../utils';\nimport reduce_ from 'lodash/reduce';\nimport type {\n MetaTableAutomaticModeSwitchOnEdit,\n TYComponentsNavigationMetaConfig,\n} from '../../../../types';\nimport i18n from '../i18n';\n\nexport interface MetaTableItem {\n key: string;\n label?: React.ReactChild;\n labelTopPadding?: string;\n value: boolean | React.ReactNode;\n icon?: React.ReactNode;\n visible?: boolean;\n helpUrl?: string;\n tooltip?: React.ReactNode;\n className?: string;\n qa?: string;\n}\n\nexport const getCommonFields = ({\n cluster,\n attributes,\n tableType,\n onEditEnableReplicatedTableTracker,\n config,\n}: {\n cluster: string;\n attributes: any;\n isDynamic: boolean;\n tableType: string;\n tabletErrorCount: number;\n onEditEnableReplicatedTableTracker?: MetaTableAutomaticModeSwitchOnEdit;\n config?: Partial<TYComponentsNavigationMetaConfig>;\n}) => {\n const [sorted, chaosCellBundle, enableReplicatedTableTracker] = ypath.getValues(attributes, [\n '/sorted',\n '/chaos_cell_bundle',\n '/replicated_table_options/enable_replicated_table_tracker',\n ]);\n\n const ChaosCellBundleLink = config?.ChaosCellBundleLink;\n const renderAutomaticModeSwitch = config?.renderMetaTableAutomaticModeSwitch;\n\n const fields = [\n {\n key: 'tableType',\n label: i18n('field_table-type'),\n value: tableType,\n },\n {\n key: 'sorted',\n label: i18n('field_sorted'),\n value: sorted,\n visible: sorted !== undefined,\n },\n {\n key: 'chaosCellBundle',\n label: i18n('field_chaos-cell-bundle'),\n value: chaosCellBundle ? (\n ChaosCellBundleLink ? (\n <ChaosCellBundleLink cluster={cluster} chaosCellBundle={chaosCellBundle} />\n ) : (\n chaosCellBundle\n )\n ) : (\n format.NO_VALUE\n ),\n },\n {\n key: 'automaticModeSwitch',\n label: i18n('field_table-automatic-mode-switch'),\n value: renderAutomaticModeSwitch?.({\n value: enableReplicatedTableTracker,\n cluster,\n onEdit: onEditEnableReplicatedTableTracker,\n }),\n visible: Boolean(renderAutomaticModeSwitch),\n },\n ] as const;\n\n type Fields = typeof fields;\n\n const commonFields = reduce_(\n fields,\n (acc, item) => {\n acc[item.key] = item;\n return acc;\n },\n {} as Record<Fields[number]['key'], MetaTableItem>,\n );\n\n return commonFields;\n};\n"],"mappings":";AAAA,SAAQA,MAAM,EAAEC,KAAK,QAAO,mBAAmB;AAC/C,OAAOC,OAAO,MAAM,eAAe;AAKnC,OAAOC,IAAI,MAAM,SAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAe3B,OAAO,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EActB;EAAA,IAbFC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IACPC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IACVC,SAAS,GAAAH,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B;MACnCX,OAAO,EAAPA,OAAO;MACPsB,MAAM,EAAEnB;IACZ,CAAC,CAAC;IACFgB,OAAO,EAAEI,OAAO,CAACV,yBAAyB;EAC9C,CAAC,CACK;EAIV,IAAMW,YAAY,GAAG9B,OAAO,CACxBqB,MAAM,EACN,UAACU,GAAG,EAAEC,IAAI,EAAK;IACXD,GAAG,CAACC,IAAI,CAACV,GAAG,CAAC,GAAGU,IAAI;IACpB,OAAOD,GAAG;EACd,CAAC,EACD,CAAC,CACL,CAAC;EAED,OAAOD,YAAY;AACvB,CAAC","ignoreList":[]}
|
|
@@ -5,6 +5,40 @@ declare const _default: {
|
|
|
5
5
|
"context_medium-disk-space": string;
|
|
6
6
|
"context_compressed-size": string;
|
|
7
7
|
"context_uncompressed-size": string;
|
|
8
|
+
"field_access-time": string;
|
|
9
|
+
"field_erasure-codec": string;
|
|
10
|
+
"field_replication-factor": string;
|
|
11
|
+
field_account: string;
|
|
12
|
+
field_chunks: string;
|
|
13
|
+
"field_compressed-size": string;
|
|
14
|
+
"field_creation-time": string;
|
|
15
|
+
"field_data-weight": string;
|
|
16
|
+
field_id: string;
|
|
17
|
+
"field_in-memory-mode": string;
|
|
18
|
+
"field_medium-disk-space": string;
|
|
19
|
+
"field_modification-time": string;
|
|
20
|
+
"field_optimize-for": string;
|
|
21
|
+
field_owner: string;
|
|
22
|
+
"field_primary-medium": string;
|
|
23
|
+
"field_replicated-table-tracker": string;
|
|
24
|
+
field_rows: string;
|
|
25
|
+
field_sorted: string;
|
|
26
|
+
"field_table-automatic-mode-switch": string;
|
|
27
|
+
"field_table-type": string;
|
|
28
|
+
"field_tablet-cell-bundle": string;
|
|
29
|
+
"field_tablet-error-count": string;
|
|
30
|
+
"field_tablet-state": string;
|
|
31
|
+
"field_total-disk-space": string;
|
|
32
|
+
"field_uncompressed-size": string;
|
|
33
|
+
"field_effective-expiration-time": string;
|
|
34
|
+
"field_effective-expiration-time-path": string;
|
|
35
|
+
"field_expiration-time": string;
|
|
36
|
+
"field_effective-expiration-timeout": string;
|
|
37
|
+
"field_effective-expiration-timeout-path": string;
|
|
38
|
+
"field_expiration-timeout": string;
|
|
39
|
+
"field_compression-ratio": string;
|
|
40
|
+
"field_compression-codec": string;
|
|
41
|
+
"field_chaos-cell-bundle": string;
|
|
8
42
|
};
|
|
9
43
|
ru: {
|
|
10
44
|
"context_data-weight": string;
|
|
@@ -12,6 +46,40 @@ declare const _default: {
|
|
|
12
46
|
"context_medium-disk-space": string;
|
|
13
47
|
"context_compressed-size": string;
|
|
14
48
|
"context_uncompressed-size": string;
|
|
49
|
+
"field_access-time": string;
|
|
50
|
+
"field_erasure-codec": string;
|
|
51
|
+
"field_replication-factor": string;
|
|
52
|
+
field_account: string;
|
|
53
|
+
field_chunks: string;
|
|
54
|
+
"field_compressed-size": string;
|
|
55
|
+
"field_data-weight": string;
|
|
56
|
+
field_id: string;
|
|
57
|
+
"field_creation-time": string;
|
|
58
|
+
"field_in-memory-mode": string;
|
|
59
|
+
"field_medium-disk-space": string;
|
|
60
|
+
"field_modification-time": string;
|
|
61
|
+
"field_optimize-for": string;
|
|
62
|
+
field_owner: string;
|
|
63
|
+
"field_primary-medium": string;
|
|
64
|
+
"field_replicated-table-tracker": string;
|
|
65
|
+
field_rows: string;
|
|
66
|
+
field_sorted: string;
|
|
67
|
+
"field_table-automatic-mode-switch": string;
|
|
68
|
+
"field_table-type": string;
|
|
69
|
+
"field_tablet-cell-bundle": string;
|
|
70
|
+
"field_tablet-error-count": string;
|
|
71
|
+
"field_tablet-state": string;
|
|
72
|
+
"field_total-disk-space": string;
|
|
73
|
+
"field_uncompressed-size": string;
|
|
74
|
+
"field_effective-expiration-time": string;
|
|
75
|
+
"field_effective-expiration-time-path": string;
|
|
76
|
+
"field_expiration-time": string;
|
|
77
|
+
"field_effective-expiration-timeout": string;
|
|
78
|
+
"field_effective-expiration-timeout-path": string;
|
|
79
|
+
"field_expiration-timeout": string;
|
|
80
|
+
"field_compression-ratio": string;
|
|
81
|
+
"field_compression-codec": string;
|
|
82
|
+
"field_chaos-cell-bundle": string;
|
|
15
83
|
};
|
|
16
84
|
};
|
|
17
85
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dicts.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MetaTable/presets/i18n/dicts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dicts.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MetaTable/presets/i18n/dicts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAAwB"}
|
|
@@ -3,5 +3,39 @@
|
|
|
3
3
|
"context_disk-space": "Disk space - compressed size multiplied by replication factor.",
|
|
4
4
|
"context_medium-disk-space": "{{name}} disk space - disk space on \"{{medium}}\" medium.",
|
|
5
5
|
"context_compressed-size": "Compressed size - sum total of all chunk sizes after compression, not taking replication factor into account.",
|
|
6
|
-
"context_uncompressed-size": "Uncompressed size - sum total of all chunk sizes before compression, not taking replication factor into account."
|
|
6
|
+
"context_uncompressed-size": "Uncompressed size - sum total of all chunk sizes before compression, not taking replication factor into account.",
|
|
7
|
+
"field_access-time": "Access time",
|
|
8
|
+
"field_erasure-codec": "Erasure codec",
|
|
9
|
+
"field_replication-factor": "Replication factor",
|
|
10
|
+
"field_account": "Account",
|
|
11
|
+
"field_chunks": "Chunks",
|
|
12
|
+
"field_compressed-size": "Compressed size",
|
|
13
|
+
"field_creation-time": "Creation time",
|
|
14
|
+
"field_data-weight": "Data weight",
|
|
15
|
+
"field_id": "Id",
|
|
16
|
+
"field_in-memory-mode": "In-memory mode",
|
|
17
|
+
"field_medium-disk-space": "{{name}} disk space",
|
|
18
|
+
"field_modification-time": "Modification time",
|
|
19
|
+
"field_optimize-for": "Optimize for",
|
|
20
|
+
"field_owner": "Owner",
|
|
21
|
+
"field_primary-medium": "Primary medium",
|
|
22
|
+
"field_replicated-table-tracker": "Replicated table tracker",
|
|
23
|
+
"field_rows": "Rows",
|
|
24
|
+
"field_sorted": "Sorted",
|
|
25
|
+
"field_table-automatic-mode-switch": "Automatic mode switch",
|
|
26
|
+
"field_table-type": "Table type",
|
|
27
|
+
"field_tablet-cell-bundle": "Tablet cell bundle",
|
|
28
|
+
"field_tablet-error-count": "Tablet error count",
|
|
29
|
+
"field_tablet-state": "Tablet state",
|
|
30
|
+
"field_total-disk-space": "Total disk space",
|
|
31
|
+
"field_uncompressed-size": "Uncompressed size",
|
|
32
|
+
"field_effective-expiration-time": "Effective expiration time",
|
|
33
|
+
"field_effective-expiration-time-path": "Effective expiration time path",
|
|
34
|
+
"field_expiration-time": "Expiration time",
|
|
35
|
+
"field_effective-expiration-timeout": "Effective expiration timeout",
|
|
36
|
+
"field_effective-expiration-timeout-path": "Effective expiration timeout path",
|
|
37
|
+
"field_expiration-timeout": "Expiration timeout",
|
|
38
|
+
"field_compression-ratio": "Compression ratio",
|
|
39
|
+
"field_compression-codec": "Compression codec",
|
|
40
|
+
"field_chaos-cell-bundle": "Chaos cell bundle"
|
|
7
41
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: ((key: "context_data-weight" | "context_disk-space" | "context_medium-disk-space" | "context_compressed-size" | "context_uncompressed-size", params?: import("@gravity-ui/i18n").Params) => string) & {
|
|
1
|
+
declare const _default: ((key: "context_data-weight" | "context_disk-space" | "context_medium-disk-space" | "context_compressed-size" | "context_uncompressed-size" | "field_access-time" | "field_erasure-codec" | "field_replication-factor" | "field_account" | "field_chunks" | "field_compressed-size" | "field_data-weight" | "field_id" | "field_creation-time" | "field_in-memory-mode" | "field_medium-disk-space" | "field_modification-time" | "field_optimize-for" | "field_owner" | "field_primary-medium" | "field_replicated-table-tracker" | "field_rows" | "field_sorted" | "field_table-automatic-mode-switch" | "field_table-type" | "field_tablet-cell-bundle" | "field_tablet-error-count" | "field_tablet-state" | "field_total-disk-space" | "field_uncompressed-size" | "field_effective-expiration-time" | "field_effective-expiration-time-path" | "field_expiration-time" | "field_effective-expiration-timeout" | "field_effective-expiration-timeout-path" | "field_expiration-timeout" | "field_compression-ratio" | "field_compression-codec" | "field_chaos-cell-bundle", params?: import("@gravity-ui/i18n").Params) => string) & {
|
|
2
2
|
keysetData: {
|
|
3
|
-
"yt:meta-table:presets": Record<"context_data-weight" | "context_disk-space" | "context_medium-disk-space" | "context_compressed-size" | "context_uncompressed-size", import("@gravity-ui/i18n").KeyData>;
|
|
3
|
+
"yt:meta-table:presets": Record<"context_data-weight" | "context_disk-space" | "context_medium-disk-space" | "context_compressed-size" | "context_uncompressed-size" | "field_access-time" | "field_erasure-codec" | "field_replication-factor" | "field_account" | "field_chunks" | "field_compressed-size" | "field_data-weight" | "field_id" | "field_creation-time" | "field_in-memory-mode" | "field_medium-disk-space" | "field_modification-time" | "field_optimize-for" | "field_owner" | "field_primary-medium" | "field_replicated-table-tracker" | "field_rows" | "field_sorted" | "field_table-automatic-mode-switch" | "field_table-type" | "field_tablet-cell-bundle" | "field_tablet-error-count" | "field_tablet-state" | "field_total-disk-space" | "field_uncompressed-size" | "field_effective-expiration-time" | "field_effective-expiration-time-path" | "field_expiration-time" | "field_effective-expiration-timeout" | "field_effective-expiration-timeout-path" | "field_expiration-timeout" | "field_compression-ratio" | "field_compression-codec" | "field_chaos-cell-bundle", import("@gravity-ui/i18n").KeyData>;
|
|
4
4
|
};
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
@@ -3,5 +3,39 @@
|
|
|
3
3
|
"context_disk-space": "Disk space - это compressed size, помноженный на replication factor.",
|
|
4
4
|
"context_medium-disk-space": "{{name}} disk space - это Disk space на носителе \"{{medium}}\".",
|
|
5
5
|
"context_compressed-size": "Compressed size - размер данных после сжатия (без учета репликации).",
|
|
6
|
-
"context_uncompressed-size": "Uncompressed size - размер несжатых данных (без учета репликации)."
|
|
6
|
+
"context_uncompressed-size": "Uncompressed size - размер несжатых данных (без учета репликации).",
|
|
7
|
+
"field_access-time": "Время доступа",
|
|
8
|
+
"field_erasure-codec": "Erasure-кодек",
|
|
9
|
+
"field_replication-factor": "Фактор репликации",
|
|
10
|
+
"field_account": "Аккаунт",
|
|
11
|
+
"field_chunks": "Чанки",
|
|
12
|
+
"field_compressed-size": "Сжатый размер",
|
|
13
|
+
"field_data-weight": "Вес данных",
|
|
14
|
+
"field_id": "Идентификатор",
|
|
15
|
+
"field_creation-time": "Время создания",
|
|
16
|
+
"field_in-memory-mode": "Режим in-memory",
|
|
17
|
+
"field_medium-disk-space": "Размер {{name}}",
|
|
18
|
+
"field_modification-time": "Время изменения",
|
|
19
|
+
"field_optimize-for": "Оптимизировать для",
|
|
20
|
+
"field_owner": "Владелец",
|
|
21
|
+
"field_primary-medium": "Основной носитель",
|
|
22
|
+
"field_replicated-table-tracker": "Трекер реплицированной таблицы",
|
|
23
|
+
"field_rows": "Строки",
|
|
24
|
+
"field_sorted": "Сортировка",
|
|
25
|
+
"field_table-automatic-mode-switch": "Переключатель автоматического режима",
|
|
26
|
+
"field_table-type": "Тип таблицы",
|
|
27
|
+
"field_tablet-cell-bundle": "Таблетный бандл",
|
|
28
|
+
"field_tablet-error-count": "Количество ошибок таблета",
|
|
29
|
+
"field_tablet-state": "Состояние таблета",
|
|
30
|
+
"field_total-disk-space": "Общий дисковый размер",
|
|
31
|
+
"field_uncompressed-size": "Несжатый размер",
|
|
32
|
+
"field_effective-expiration-time": "Эффективное время истечения",
|
|
33
|
+
"field_effective-expiration-time-path": "Путь эффективного времени истечения",
|
|
34
|
+
"field_expiration-time": "Время истечения",
|
|
35
|
+
"field_effective-expiration-timeout": "Эффективный таймаут истечения",
|
|
36
|
+
"field_effective-expiration-timeout-path": "Путь эффективного таймаута истечения",
|
|
37
|
+
"field_expiration-timeout": "Таймаут истечения",
|
|
38
|
+
"field_compression-ratio": "Степень сжатия",
|
|
39
|
+
"field_compression-codec": "Кодек сжатия",
|
|
40
|
+
"field_chaos-cell-bundle": "Хаос-бандл"
|
|
7
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/components/MetaTable/presets/main.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gCAAgC,EAAC,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/components/MetaTable/presets/main.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gCAAgC,EAAC,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAW3C,KAAK,KAAK,GAAG,CACT,UAAU,EAAE,GAAG,EACf,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,OAAO,CAAC,gCAAgC,CAAC,KACjD,aAAa,EAAE,CAAC;AAErB,eAAO,MAAM,mBAAmB,EAAE,KAqEjC,CAAC"}
|
|
@@ -3,6 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import { ypath } from '../../../utils';
|
|
4
4
|
import { Template } from '../templates/Template';
|
|
5
5
|
import { makeTTLItems } from './ttl';
|
|
6
|
+
import i18n from './i18n';
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
var normalizeMetaOperationLinkItems = function normalizeMetaOperationLinkItems(result) {
|
|
8
9
|
if (!result) return [];
|
|
@@ -29,17 +30,20 @@ export var metaTablePresetMain = function metaTablePresetMain(attributes, cluste
|
|
|
29
30
|
})) : [];
|
|
30
31
|
return [{
|
|
31
32
|
key: 'id',
|
|
33
|
+
label: i18n('field_id'),
|
|
32
34
|
value: /*#__PURE__*/_jsx(Template.Id, {
|
|
33
35
|
id: id
|
|
34
36
|
})
|
|
35
37
|
}, {
|
|
36
38
|
key: 'owner',
|
|
39
|
+
label: i18n('field_owner'),
|
|
37
40
|
value: SubjectCard ? /*#__PURE__*/_jsx(SubjectCard, {
|
|
38
41
|
name: owner
|
|
39
42
|
}) : owner,
|
|
40
43
|
visible: Boolean(owner)
|
|
41
44
|
}, {
|
|
42
45
|
key: 'account',
|
|
46
|
+
label: i18n('field_account'),
|
|
43
47
|
value: AccountLink ? /*#__PURE__*/_jsx(AccountLink, {
|
|
44
48
|
account: account,
|
|
45
49
|
cluster: cluster
|
|
@@ -47,6 +51,7 @@ export var metaTablePresetMain = function metaTablePresetMain(attributes, cluste
|
|
|
47
51
|
visible: Boolean(account)
|
|
48
52
|
}, {
|
|
49
53
|
key: 'creation_time',
|
|
54
|
+
label: i18n('field_creation-time'),
|
|
50
55
|
value: /*#__PURE__*/_jsx(Template.Time, {
|
|
51
56
|
time: creationTime,
|
|
52
57
|
valueFormat: "DateTime"
|
|
@@ -59,6 +64,7 @@ export var metaTablePresetMain = function metaTablePresetMain(attributes, cluste
|
|
|
59
64
|
config: config
|
|
60
65
|
})), [{
|
|
61
66
|
key: 'modification_time',
|
|
67
|
+
label: i18n('field_modification-time'),
|
|
62
68
|
value: /*#__PURE__*/_jsx(Template.Time, {
|
|
63
69
|
time: modificationTime,
|
|
64
70
|
valueFormat: "DateTime"
|
|
@@ -66,6 +72,7 @@ export var metaTablePresetMain = function metaTablePresetMain(attributes, cluste
|
|
|
66
72
|
visible: Boolean(modificationTime)
|
|
67
73
|
}, {
|
|
68
74
|
key: 'access_time',
|
|
75
|
+
label: i18n('field_access-time'),
|
|
69
76
|
value: /*#__PURE__*/_jsx(Template.Time, {
|
|
70
77
|
time: accessTime,
|
|
71
78
|
valueFormat: "DateTime"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ypath","Template","makeTTLItems","jsx","_jsx","normalizeMetaOperationLinkItems","result","Array","isArray","metaTablePresetMain","attributes","cluster","_config$renderMetaOpe","config","arguments","length","undefined","SubjectCard","AccountLink","renderMetaOperationLink","_ypath$getValues","getValues","_ypath$getValues2","_slicedToArray","id","owner","account","creationTime","modificationTime","accessTime","yqlOpId","operationLinkItems","operationId","key","value","Id","name","visible","Boolean","Time","time","valueFormat","concat","_toConsumableArray","showTTLLabel","docsUrls"],"sources":["main.tsx"],"sourcesContent":["import {ypath} from '../../../utils';\nimport {Template} from '../templates/Template';\nimport {makeTTLItems} from './ttl';\nimport type {TYComponentsNavigationMetaConfig} from '../../../types';\nimport {MetaTableItem} from '../MetaTable';\n\nconst normalizeMetaOperationLinkItems = (\n result: MetaTableItem | MetaTableItem[] | null | undefined,\n): MetaTableItem[] => {\n if (!result) return [];\n\n return Array.isArray(result) ? result : [result];\n};\n\ntype Props = (\n attributes: any,\n cluster: string,\n config?: Partial<TYComponentsNavigationMetaConfig>,\n) => MetaTableItem[];\n\nexport const metaTablePresetMain: Props = (attributes, cluster, config = {}) => {\n const SubjectCard = config.SubjectCard;\n const AccountLink = config.AccountLink;\n const renderMetaOperationLink = config.renderMetaOperationLink ?? null;\n const [id, owner, account, creationTime, modificationTime, accessTime, yqlOpId] =\n ypath.getValues(attributes, [\n '/id',\n '/owner',\n '/account',\n '/creation_time',\n '/modification_time',\n '/access_time',\n '/_yql_op_id',\n ]);\n\n const operationLinkItems =\n yqlOpId && renderMetaOperationLink\n ? normalizeMetaOperationLinkItems(\n renderMetaOperationLink({\n operationId: yqlOpId,\n cluster,\n }),\n )\n : [];\n\n return [\n {\n key: 'id',\n value: <Template.Id id={id} />,\n },\n {\n key: 'owner',\n value: SubjectCard ? <SubjectCard name={owner} /> : owner,\n visible: Boolean(owner),\n },\n {\n key: 'account',\n value: AccountLink ? <AccountLink account={account} cluster={cluster} /> : account,\n visible: Boolean(account),\n },\n {\n key: 'creation_time',\n value: <Template.Time time={creationTime} valueFormat=\"DateTime\" />,\n visible: Boolean(creationTime),\n },\n ...makeTTLItems(attributes, {\n showTTLLabel: true,\n docsUrls: config.docsUrls,\n cluster,\n config,\n }),\n {\n key: 'modification_time',\n value: <Template.Time time={modificationTime} valueFormat=\"DateTime\" />,\n visible: Boolean(modificationTime),\n },\n {\n key: 'access_time',\n value: <Template.Time time={accessTime} valueFormat=\"DateTime\" />,\n visible: Boolean(accessTime),\n },\n ...operationLinkItems,\n ];\n};\n"],"mappings":";;AAAA,SAAQA,KAAK,QAAO,gBAAgB;AACpC,SAAQC,QAAQ,QAAO,uBAAuB;AAC9C,SAAQC,YAAY,QAAO,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["ypath","Template","makeTTLItems","i18n","jsx","_jsx","normalizeMetaOperationLinkItems","result","Array","isArray","metaTablePresetMain","attributes","cluster","_config$renderMetaOpe","config","arguments","length","undefined","SubjectCard","AccountLink","renderMetaOperationLink","_ypath$getValues","getValues","_ypath$getValues2","_slicedToArray","id","owner","account","creationTime","modificationTime","accessTime","yqlOpId","operationLinkItems","operationId","key","label","value","Id","name","visible","Boolean","Time","time","valueFormat","concat","_toConsumableArray","showTTLLabel","docsUrls"],"sources":["main.tsx"],"sourcesContent":["import {ypath} from '../../../utils';\nimport {Template} from '../templates/Template';\nimport {makeTTLItems} from './ttl';\nimport type {TYComponentsNavigationMetaConfig} from '../../../types';\nimport {MetaTableItem} from '../MetaTable';\nimport i18n from './i18n';\n\nconst normalizeMetaOperationLinkItems = (\n result: MetaTableItem | MetaTableItem[] | null | undefined,\n): MetaTableItem[] => {\n if (!result) return [];\n\n return Array.isArray(result) ? result : [result];\n};\n\ntype Props = (\n attributes: any,\n cluster: string,\n config?: Partial<TYComponentsNavigationMetaConfig>,\n) => MetaTableItem[];\n\nexport const metaTablePresetMain: Props = (attributes, cluster, config = {}) => {\n const SubjectCard = config.SubjectCard;\n const AccountLink = config.AccountLink;\n const renderMetaOperationLink = config.renderMetaOperationLink ?? null;\n const [id, owner, account, creationTime, modificationTime, accessTime, yqlOpId] =\n ypath.getValues(attributes, [\n '/id',\n '/owner',\n '/account',\n '/creation_time',\n '/modification_time',\n '/access_time',\n '/_yql_op_id',\n ]);\n\n const operationLinkItems =\n yqlOpId && renderMetaOperationLink\n ? normalizeMetaOperationLinkItems(\n renderMetaOperationLink({\n operationId: yqlOpId,\n cluster,\n }),\n )\n : [];\n\n return [\n {\n key: 'id',\n label: i18n('field_id'),\n value: <Template.Id id={id} />,\n },\n {\n key: 'owner',\n label: i18n('field_owner'),\n value: SubjectCard ? <SubjectCard name={owner} /> : owner,\n visible: Boolean(owner),\n },\n {\n key: 'account',\n label: i18n('field_account'),\n value: AccountLink ? <AccountLink account={account} cluster={cluster} /> : account,\n visible: Boolean(account),\n },\n {\n key: 'creation_time',\n label: i18n('field_creation-time'),\n value: <Template.Time time={creationTime} valueFormat=\"DateTime\" />,\n visible: Boolean(creationTime),\n },\n ...makeTTLItems(attributes, {\n showTTLLabel: true,\n docsUrls: config.docsUrls,\n cluster,\n config,\n }),\n {\n key: 'modification_time',\n label: i18n('field_modification-time'),\n value: <Template.Time time={modificationTime} valueFormat=\"DateTime\" />,\n visible: Boolean(modificationTime),\n },\n {\n key: 'access_time',\n label: i18n('field_access-time'),\n value: <Template.Time time={accessTime} valueFormat=\"DateTime\" />,\n visible: Boolean(accessTime),\n },\n ...operationLinkItems,\n ];\n};\n"],"mappings":";;AAAA,SAAQA,KAAK,QAAO,gBAAgB;AACpC,SAAQC,QAAQ,QAAO,uBAAuB;AAC9C,SAAQC,YAAY,QAAO,OAAO;AAGlC,OAAOC,IAAI,MAAM,QAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1B,IAAMC,+BAA+B,GAAG,SAAlCA,+BAA+BA,CACjCC,MAA0D,EACxC;EAClB,IAAI,CAACA,MAAM,EAAE,OAAO,EAAE;EAEtB,OAAOC,KAAK,CAACC,OAAO,CAACF,MAAM,CAAC,GAAGA,MAAM,GAAG,CAACA,MAAM,CAAC;AACpD,CAAC;AAQD,OAAO,IAAMG,mBAA0B,GAAG,SAA7BA,mBAA0BA,CAAIC,UAAU,EAAEC,OAAO,EAAkB;EAAA,IAAAC,qBAAA;EAAA,IA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AAO,CAACV,UAAU;EAC/B,CAAC,GAAAe,kBAAA,CACEb,kBAAkB;AAE7B,CAAC","ignoreList":[]}
|
|
@@ -8,20 +8,16 @@ export declare const CypressNodeTypes: {
|
|
|
8
8
|
};
|
|
9
9
|
export declare function replicatedTableTracker(attributes: any): {
|
|
10
10
|
key: string;
|
|
11
|
+
label: string;
|
|
11
12
|
value: import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
visible: boolean;
|
|
13
14
|
};
|
|
14
15
|
export declare function tableSize(attributes: any, isDynamic: boolean, mediumList: string[]): ({
|
|
15
16
|
key: string;
|
|
17
|
+
label: string;
|
|
16
18
|
value: import("react/jsx-runtime").JSX.Element;
|
|
17
19
|
visible: boolean;
|
|
18
20
|
tooltip: string;
|
|
19
|
-
} | {
|
|
20
|
-
key: string;
|
|
21
|
-
value: import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
visible: boolean;
|
|
23
|
-
label?: undefined;
|
|
24
|
-
tooltip?: undefined;
|
|
25
21
|
} | {
|
|
26
22
|
key: string;
|
|
27
23
|
label: string;
|
|
@@ -30,20 +26,11 @@ export declare function tableSize(attributes: any, isDynamic: boolean, mediumLis
|
|
|
30
26
|
})[];
|
|
31
27
|
export declare function tableStorage(attributes: any, tableType: string, options?: {
|
|
32
28
|
docsUrls?: Record<string, string>;
|
|
33
|
-
}):
|
|
34
|
-
key: string;
|
|
35
|
-
value: any;
|
|
36
|
-
} | {
|
|
37
|
-
key: string;
|
|
38
|
-
label: string;
|
|
39
|
-
value: string;
|
|
40
|
-
visible?: undefined;
|
|
41
|
-
} | {
|
|
29
|
+
}): {
|
|
42
30
|
key: string;
|
|
43
31
|
label: string;
|
|
44
|
-
value:
|
|
45
|
-
|
|
46
|
-
})[];
|
|
32
|
+
value: any;
|
|
33
|
+
}[];
|
|
47
34
|
export declare function dynTableInfo(attributes: any, cluster: string, tabletErrorCount: number, config?: Partial<TYComponentsNavigationMetaConfig>): {
|
|
48
35
|
key: string;
|
|
49
36
|
label: string;
|
|
@@ -59,18 +46,9 @@ export declare const makeMetaItems: ({ cluster, attributes, tableType, isDynamic
|
|
|
59
46
|
onEditEnableReplicatedTableTracker?: (currentValue?: boolean) => Promise<void>;
|
|
60
47
|
docsUrls?: Record<string, string>;
|
|
61
48
|
navigationTableConfig?: Partial<TYComponentsNavigationMetaConfig>;
|
|
62
|
-
}) => ({
|
|
63
|
-
key: string;
|
|
64
|
-
value: any;
|
|
65
|
-
} | {
|
|
49
|
+
}) => (import("./helpers/commonFields").MetaTableItem | {
|
|
66
50
|
key: string;
|
|
67
51
|
label: string;
|
|
68
|
-
value:
|
|
69
|
-
visible?: undefined;
|
|
70
|
-
} | {
|
|
71
|
-
key: string;
|
|
72
|
-
label: string;
|
|
73
|
-
value: import("react/jsx-runtime").JSX.Element;
|
|
74
|
-
visible: boolean;
|
|
52
|
+
value: any;
|
|
75
53
|
})[][];
|
|
76
54
|
//# sourceMappingURL=presets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../../../src/components/MetaTable/presets/presets.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAC,gCAAgC,EAAC,MAAM,gBAAgB,CAAC;AAKrE,eAAO,MAAM,gBAAgB;;;;;;CAM5B,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,GAAG
|
|
1
|
+
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../../../src/components/MetaTable/presets/presets.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAC,gCAAgC,EAAC,MAAM,gBAAgB,CAAC;AAKrE,eAAO,MAAM,gBAAgB;;;;;;CAM5B,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,GAAG;;;;;EAWrD;AAED,wBAAgB,SAAS,CAAC,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;;;;;;;KA6BlF;AAED,wBAAgB,YAAY,CACxB,UAAU,EAAE,GAAG,EACf,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAM;;;;IAmBpD;AAED,wBAAgB,YAAY,CACxB,UAAU,EAAE,GAAG,EACf,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,EACxB,MAAM,CAAC,EAAE,OAAO,CAAC,gCAAgC,CAAC;;;;IAkDrD;AAED,eAAO,MAAM,aAAa,GAAI,mJAU3B;IACC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kCAAkC,CAAC,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,qBAAqB,CAAC,EAAE,OAAO,CAAC,gCAAgC,CAAC,CAAC;CACrE;;;;MAuDA,CAAC"}
|
|
@@ -23,6 +23,7 @@ export function replicatedTableTracker(attributes) {
|
|
|
23
23
|
var value = ypath.getValue(attributes, '/replicated_table_options/replicated_table_tracker_enabled');
|
|
24
24
|
return {
|
|
25
25
|
key: 'replicated_table_tracker',
|
|
26
|
+
label: i18n('field_replicated-table-tracker'),
|
|
26
27
|
value: /*#__PURE__*/_jsx(LabelOnOff, {
|
|
27
28
|
value: value
|
|
28
29
|
}),
|
|
@@ -37,7 +38,7 @@ export function tableSize(attributes, isDynamic, mediumList) {
|
|
|
37
38
|
dataWeight = _ypath$getValues2[2];
|
|
38
39
|
return [{
|
|
39
40
|
key: 'rowCount',
|
|
40
|
-
label: '
|
|
41
|
+
label: i18n('field_rows'),
|
|
41
42
|
value: /*#__PURE__*/_jsx(RowsCount, {
|
|
42
43
|
isDynamic: isDynamic,
|
|
43
44
|
count: rowCount
|
|
@@ -45,12 +46,12 @@ export function tableSize(attributes, isDynamic, mediumList) {
|
|
|
45
46
|
visible: rowCount !== undefined
|
|
46
47
|
}, {
|
|
47
48
|
key: 'chunkCount',
|
|
48
|
-
label: '
|
|
49
|
+
label: i18n('field_chunks'),
|
|
49
50
|
value: format['Number'](chunkCount),
|
|
50
51
|
visible: chunkCount !== undefined
|
|
51
52
|
}].concat(_toConsumableArray(metaTablePresetSize(attributes, mediumList)), [{
|
|
52
53
|
key: 'dataWeight',
|
|
53
|
-
label: '
|
|
54
|
+
label: i18n('field_data-weight'),
|
|
54
55
|
value: /*#__PURE__*/_jsx(Template.FormattedValue, {
|
|
55
56
|
value: dataWeight,
|
|
56
57
|
format: "Bytes"
|
|
@@ -64,11 +65,11 @@ export function tableStorage(attributes, tableType) {
|
|
|
64
65
|
var optimizeFor = ypath.getValue(attributes, '/optimize_for');
|
|
65
66
|
return [{
|
|
66
67
|
key: 'tableType',
|
|
67
|
-
label: '
|
|
68
|
+
label: i18n('field_table-type'),
|
|
68
69
|
value: tableType
|
|
69
70
|
}, {
|
|
70
71
|
key: 'optimizeFor',
|
|
71
|
-
label: '
|
|
72
|
+
label: i18n('field_optimize-for'),
|
|
72
73
|
value: /*#__PURE__*/_jsx(Label, {
|
|
73
74
|
text: format['ReadableField'](optimizeFor),
|
|
74
75
|
theme: "info"
|
|
@@ -85,28 +86,28 @@ export function dynTableInfo(attributes, cluster, tabletErrorCount, config) {
|
|
|
85
86
|
var TabletCellBundleLink = config === null || config === void 0 ? void 0 : config.TabletCellBundleLink;
|
|
86
87
|
return [{
|
|
87
88
|
key: 'tabletCellBundle',
|
|
88
|
-
label: '
|
|
89
|
+
label: i18n('field_tablet-cell-bundle'),
|
|
89
90
|
value: tabletCellBundle ? TabletCellBundleLink ? /*#__PURE__*/_jsx(TabletCellBundleLink, {
|
|
90
91
|
cluster: cluster,
|
|
91
92
|
tabletCellBundle: tabletCellBundle
|
|
92
93
|
}) : tabletCellBundle : format.NO_VALUE
|
|
93
94
|
}, {
|
|
94
95
|
key: 'tabletState',
|
|
95
|
-
label: '
|
|
96
|
+
label: i18n('field_tablet-state'),
|
|
96
97
|
value: /*#__PURE__*/_jsx(Label, {
|
|
97
98
|
theme: tabletState === 'mounted' ? 'info' : 'default',
|
|
98
99
|
text: format['ReadableField'](tabletState)
|
|
99
100
|
})
|
|
100
101
|
}, {
|
|
101
102
|
key: 'inMemoryMode',
|
|
102
|
-
label: '
|
|
103
|
+
label: i18n('field_in-memory-mode'),
|
|
103
104
|
value: /*#__PURE__*/_jsx(Label, {
|
|
104
105
|
theme: inMemoryMode && inMemoryMode !== 'none' ? 'info' : 'default',
|
|
105
106
|
text: format['ReadableField'](inMemoryMode || 'none')
|
|
106
107
|
})
|
|
107
108
|
}, {
|
|
108
109
|
key: 'tabletErrorCount',
|
|
109
|
-
label: '
|
|
110
|
+
label: i18n('field_tablet-error-count'),
|
|
110
111
|
value: format['Number'](tabletErrorCount)
|
|
111
112
|
}];
|
|
112
113
|
}
|