@gravity-ui/dashkit 8.0.0 → 8.0.2
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GetItemsParamsArg } from '../../modules';
|
|
2
2
|
import { ItemsStateAndParamsBase, PluginBase } from '../../types';
|
|
3
3
|
export declare const pluginControlBaseDL: PluginBase;
|
|
4
|
+
export declare const pluginGroupControlBaseDL: PluginBase;
|
|
4
5
|
export declare const pluginWidgetBaseDL: PluginBase;
|
|
5
6
|
export declare function getItemsStateAndParamsDL(data: Omit<GetItemsParamsArg, 'plugins'>): ItemsStateAndParamsBase;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getItemsStateAndParamsDL = exports.pluginWidgetBaseDL = exports.pluginControlBaseDL = void 0;
|
|
3
|
+
exports.getItemsStateAndParamsDL = exports.pluginWidgetBaseDL = exports.pluginGroupControlBaseDL = exports.pluginControlBaseDL = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const omit_1 = tslib_1.__importDefault(require("lodash/omit"));
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
@@ -8,6 +8,9 @@ const modules_1 = require("../../modules");
|
|
|
8
8
|
exports.pluginControlBaseDL = {
|
|
9
9
|
type: 'control',
|
|
10
10
|
};
|
|
11
|
+
exports.pluginGroupControlBaseDL = {
|
|
12
|
+
type: 'group_control',
|
|
13
|
+
};
|
|
11
14
|
exports.pluginWidgetBaseDL = {
|
|
12
15
|
type: 'widget',
|
|
13
16
|
};
|
|
@@ -16,6 +19,7 @@ const pluginsBaseDL = [
|
|
|
16
19
|
{ type: 'text' },
|
|
17
20
|
exports.pluginControlBaseDL,
|
|
18
21
|
exports.pluginWidgetBaseDL,
|
|
22
|
+
exports.pluginGroupControlBaseDL,
|
|
19
23
|
];
|
|
20
24
|
// Используется в DataLens на серверной стороне для формирования параметров и стейта чарта в рассылках
|
|
21
25
|
function getItemsStateAndParamsDL(data) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GetItemsParamsArg } from '../../modules';
|
|
2
2
|
import { ItemsStateAndParamsBase, PluginBase } from '../../types';
|
|
3
3
|
export declare const pluginControlBaseDL: PluginBase;
|
|
4
|
+
export declare const pluginGroupControlBaseDL: PluginBase;
|
|
4
5
|
export declare const pluginWidgetBaseDL: PluginBase;
|
|
5
6
|
export declare function getItemsStateAndParamsDL(data: Omit<GetItemsParamsArg, 'plugins'>): ItemsStateAndParamsBase;
|
|
@@ -4,6 +4,9 @@ import { getItemsStateAndParams } from '../../modules';
|
|
|
4
4
|
export const pluginControlBaseDL = {
|
|
5
5
|
type: 'control',
|
|
6
6
|
};
|
|
7
|
+
export const pluginGroupControlBaseDL = {
|
|
8
|
+
type: 'group_control',
|
|
9
|
+
};
|
|
7
10
|
export const pluginWidgetBaseDL = {
|
|
8
11
|
type: 'widget',
|
|
9
12
|
};
|
|
@@ -12,6 +15,7 @@ const pluginsBaseDL = [
|
|
|
12
15
|
{ type: 'text' },
|
|
13
16
|
pluginControlBaseDL,
|
|
14
17
|
pluginWidgetBaseDL,
|
|
18
|
+
pluginGroupControlBaseDL,
|
|
15
19
|
];
|
|
16
20
|
// Используется в DataLens на серверной стороне для формирования параметров и стейта чарта в рассылках
|
|
17
21
|
export function getItemsStateAndParamsDL(data) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/dashkit",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Library for rendering dashboard grid layout",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"main": "./build/cjs/index.js",
|
|
33
33
|
"module": "./build/esm/index.js",
|
|
34
|
-
"types": "build/esm/index.d.ts",
|
|
34
|
+
"types": "./build/esm/index.d.ts",
|
|
35
35
|
"typesVersions": {
|
|
36
36
|
"*": {
|
|
37
37
|
"index.d.ts": [
|