@gravity-ui/dashkit
Advanced tools
Comparing version
@@ -1,3 +0,3 @@ | ||
/// <reference types="react" /> | ||
import { ActionPanelItem, ActionPanelProps } from './types'; | ||
import { ActionPanelItem, ActionPanelProps } from "./types.js"; | ||
import "./ActionPanel.css"; | ||
export declare const ActionPanelItemContainer: ({ item }: { | ||
@@ -4,0 +4,0 @@ item: ActionPanelItem; |
@@ -7,4 +7,5 @@ "use strict"; | ||
const react_transition_group_1 = require("react-transition-group"); | ||
const useDnDItemProps_1 = require("../../hooks/useDnDItemProps"); | ||
const cn_1 = require("../../utils/cn"); | ||
const useDnDItemProps_1 = require("../../hooks/useDnDItemProps.js"); | ||
const cn_1 = require("../../utils/cn.js"); | ||
require("./ActionPanel.css"); | ||
const b = (0, cn_1.cn)('dashkit-action-panel'); | ||
@@ -37,1 +38,2 @@ const ActionPanelItemContainer = ({ item }) => { | ||
exports.ActionPanel = ActionPanel; | ||
//# sourceMappingURL=ActionPanel.js.map |
import React from 'react'; | ||
import type { ItemDragProps } from '../../shared'; | ||
import type { ItemDragProps } from "../../shared/index.js"; | ||
export type ActionPanelItem = { | ||
@@ -4,0 +4,0 @@ id: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=types.js.map |
import React from 'react'; | ||
import type { Config, ConfigItem, ConfigLayout, GlobalParams, ItemDropProps, ItemsStateAndParams } from '../../shared'; | ||
import type { AddNewItemOptions, ContextProps, DashKitGroup, ItemManipulationCallback, MenuItem, Plugin, SetConfigItem, Settings, SettingsProps } from '../../typings'; | ||
import GridLayout from '../GridLayout/GridLayout'; | ||
import type { OverlayControlItem, PreparedCopyItemOptions } from '../OverlayControls/OverlayControls'; | ||
import type { Config, ConfigItem, ConfigLayout, GlobalParams, ItemDropProps, ItemsStateAndParams } from "../../shared/index.js"; | ||
import type { AddNewItemOptions, ContextProps, DashKitGroup, ItemManipulationCallback, MenuItem, Plugin, SetConfigItem, Settings, SettingsProps } from "../../typings/index.js"; | ||
import GridLayout from "../GridLayout/GridLayout.js"; | ||
import type { OverlayControlItem, PreparedCopyItemOptions } from "../OverlayControls/OverlayControls.js"; | ||
interface DashKitGeneralProps { | ||
@@ -50,3 +50,3 @@ config: Config; | ||
static defaultProps: DashKitDefaultProps; | ||
static contextType: React.Context<void | import("../../context").DashKitDnDCtxShape>; | ||
static contextType: React.Context<void | import("../../context/index.js").DashKitDnDCtxShape>; | ||
static registerPlugins(...plugins: Plugin[]): void; | ||
@@ -53,0 +53,0 @@ static reloadPlugins(...plugins: Plugin[]): void; |
@@ -6,9 +6,9 @@ "use strict"; | ||
const react_1 = tslib_1.__importDefault(require("react")); | ||
const noop_1 = tslib_1.__importDefault(require("lodash/noop")); | ||
const pick_1 = tslib_1.__importDefault(require("lodash/pick")); | ||
const constants_1 = require("../../constants"); | ||
const context_1 = require("../../context"); | ||
const utils_1 = require("../../utils"); | ||
const DashKitDnDWrapper_1 = require("../DashKitDnDWrapper/DashKitDnDWrapper"); | ||
const DashKitView_1 = tslib_1.__importDefault(require("../DashKitView/DashKitView")); | ||
const noop_1 = tslib_1.__importDefault(require("lodash/noop.js")); | ||
const pick_1 = tslib_1.__importDefault(require("lodash/pick.js")); | ||
const constants_1 = require("../../constants/index.js"); | ||
const context_1 = require("../../context/index.js"); | ||
const utils_1 = require("../../utils/index.js"); | ||
const DashKitDnDWrapper_1 = require("../DashKitDnDWrapper/DashKitDnDWrapper.js"); | ||
const DashKitView_1 = tslib_1.__importDefault(require("../DashKitView/DashKitView.js")); | ||
const registerManager = new utils_1.RegisterManager(); | ||
@@ -117,1 +117,2 @@ const getReflowProps = (props) => Object.assign({ compactType: 'vertical', cols: 36 }, (0, pick_1.default)(props, 'cols', 'maxRows', 'compactType')); | ||
DashKit.contextType = context_1.DashKitDnDContext; | ||
//# sourceMappingURL=DashKit.js.map |
@@ -1,1 +0,1 @@ | ||
export * from './DashKit'; | ||
export * from "./DashKit.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./DashKit"), exports); | ||
tslib_1.__exportStar(require("./DashKit.js"), exports); | ||
//# sourceMappingURL=index.js.map |
import React from 'react'; | ||
import type { DraggedOverItem, ItemDragProps } from '../../shared'; | ||
import type { DraggedOverItem, ItemDragProps } from "../../shared/index.js"; | ||
type DashKitDnDWrapperProps = { | ||
@@ -4,0 +4,0 @@ dragImageSrc?: string; |
@@ -6,3 +6,3 @@ "use strict"; | ||
const react_1 = tslib_1.__importDefault(require("react")); | ||
const context_1 = require("../../context"); | ||
const context_1 = require("../../context/index.js"); | ||
const defaultImageSrc = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='; | ||
@@ -38,1 +38,2 @@ const DashKitDnDWrapper = (props) => { | ||
exports.DashKitDnDWrapper = DashKitDnDWrapper; | ||
//# sourceMappingURL=DashKitDnDWrapper.js.map |
import React from 'react'; | ||
import type { RegisterManager } from '../../utils'; | ||
import type { DashKitProps } from '../DashKit'; | ||
import type { RegisterManager } from "../../utils/index.js"; | ||
import type { DashKitProps } from "../DashKit/index.js"; | ||
import "./DashKitView.css"; | ||
declare const DashKitViewForwardedMeta: React.ForwardRefExoticComponent<DashKitProps & { | ||
@@ -5,0 +6,0 @@ registerManager: RegisterManager; |
@@ -5,8 +5,9 @@ "use strict"; | ||
const react_1 = tslib_1.__importDefault(require("react")); | ||
const context_1 = require("../../context"); | ||
const withContext_1 = require("../../hocs/withContext"); | ||
const useCalcLayout_1 = require("../../hooks/useCalcLayout"); | ||
const cn_1 = require("../../utils/cn"); | ||
const GridLayout_1 = tslib_1.__importDefault(require("../GridLayout/GridLayout")); | ||
const MobileLayout_1 = tslib_1.__importDefault(require("../MobileLayout/MobileLayout")); | ||
const context_1 = require("../../context/index.js"); | ||
const withContext_1 = require("../../hocs/withContext.js"); | ||
const useCalcLayout_1 = require("../../hooks/useCalcLayout.js"); | ||
const cn_1 = require("../../utils/cn.js"); | ||
const GridLayout_1 = tslib_1.__importDefault(require("../GridLayout/GridLayout.js")); | ||
const MobileLayout_1 = tslib_1.__importDefault(require("../MobileLayout/MobileLayout.js")); | ||
require("./DashKitView.css"); | ||
const b = (0, cn_1.cn)('dashkit'); | ||
@@ -25,1 +26,2 @@ function DashKitView() { | ||
exports.default = DashKitViewForwardedMeta; | ||
//# sourceMappingURL=DashKitView.js.map |
@@ -6,7 +6,8 @@ "use strict"; | ||
const prop_types_1 = tslib_1.__importDefault(require("prop-types")); | ||
const constants_1 = require("../../constants"); | ||
const context_1 = require("../../context"); | ||
const cn_1 = require("../../utils/cn"); | ||
const Item_1 = tslib_1.__importDefault(require("../Item/Item")); | ||
const OverlayControls_1 = tslib_1.__importDefault(require("../OverlayControls/OverlayControls")); | ||
const constants_1 = require("../../constants/index.js"); | ||
const context_1 = require("../../context/index.js"); | ||
const cn_1 = require("../../utils/cn.js"); | ||
const Item_1 = tslib_1.__importDefault(require("../Item/Item.js")); | ||
const OverlayControls_1 = tslib_1.__importDefault(require("../OverlayControls/OverlayControls.js")); | ||
require("./GridItem.css"); | ||
const b = (0, cn_1.cn)('dashkit-grid-item'); | ||
@@ -177,1 +178,2 @@ class WindowFocusObserver { | ||
exports.default = GridItemForwarderRef; | ||
//# sourceMappingURL=GridItem.js.map |
export default class GridLayout extends React.PureComponent<any, any, any> { | ||
static contextType: React.Context<import("../../context").DashKitCtxShape>; | ||
static contextType: React.Context<import("../../context/index.js").DashKitCtxShape>; | ||
constructor(props: any, context: any); | ||
@@ -4,0 +4,0 @@ pluginsRefs: any[]; |
@@ -5,7 +5,7 @@ "use strict"; | ||
const react_1 = tslib_1.__importDefault(require("react")); | ||
const constants_1 = require("../../constants"); | ||
const context_1 = require("../../context"); | ||
const utils_1 = require("../../utils"); | ||
const GridItem_1 = tslib_1.__importDefault(require("../GridItem/GridItem")); | ||
const ReactGridLayout_1 = require("./ReactGridLayout"); | ||
const constants_1 = require("../../constants/index.js"); | ||
const context_1 = require("../../context/index.js"); | ||
const utils_1 = require("../../utils/index.js"); | ||
const GridItem_1 = tslib_1.__importDefault(require("../GridItem/GridItem.js")); | ||
const ReactGridLayout_1 = require("./ReactGridLayout.js"); | ||
class GridLayout extends react_1.default.PureComponent { | ||
@@ -524,1 +524,2 @@ constructor(props, context) { | ||
exports.default = GridLayout; | ||
//# sourceMappingURL=GridLayout.js.map |
@@ -7,3 +7,3 @@ "use strict"; | ||
const react_grid_layout_1 = tslib_1.__importStar(require("react-grid-layout")); | ||
const constants_1 = require("../../constants"); | ||
const constants_1 = require("../../constants/index.js"); | ||
class DragOverLayout extends react_grid_layout_1.default { | ||
@@ -200,1 +200,2 @@ constructor(...args) { | ||
exports.Layout = (0, react_grid_layout_1.WidthProvider)(DragOverLayout); | ||
//# sourceMappingURL=ReactGridLayout.js.map |
@@ -1,5 +0,5 @@ | ||
export * from './DashKit'; | ||
export type { OverlayControlItem, PreparedCopyItemOptions } from './OverlayControls/OverlayControls'; | ||
export * from './ActionPanel/ActionPanel'; | ||
export type { ActionPanelItem, ActionPanelProps } from './ActionPanel/types'; | ||
export * from './DashKitDnDWrapper/DashKitDnDWrapper'; | ||
export * from "./DashKit/index.js"; | ||
export type { OverlayControlItem, PreparedCopyItemOptions } from "./OverlayControls/OverlayControls.js"; | ||
export * from "./ActionPanel/ActionPanel.js"; | ||
export type { ActionPanelItem, ActionPanelProps } from "./ActionPanel/types.js"; | ||
export * from "./DashKitDnDWrapper/DashKitDnDWrapper.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./DashKit"), exports); | ||
tslib_1.__exportStar(require("./ActionPanel/ActionPanel"), exports); | ||
tslib_1.__exportStar(require("./DashKitDnDWrapper/DashKitDnDWrapper"), exports); | ||
tslib_1.__exportStar(require("./DashKit/index.js"), exports); | ||
tslib_1.__exportStar(require("./ActionPanel/ActionPanel.js"), exports); | ||
tslib_1.__exportStar(require("./DashKitDnDWrapper/DashKitDnDWrapper.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -69,3 +69,3 @@ declare const _default: { | ||
}; | ||
contextType: React.Context<import("../../context").DashKitCtxShape>; | ||
contextType: React.Context<import("../../context/index.js").DashKitCtxShape>; | ||
}; | ||
@@ -72,0 +72,0 @@ export default _default; |
@@ -6,4 +6,5 @@ "use strict"; | ||
const prop_types_1 = tslib_1.__importDefault(require("prop-types")); | ||
const prepareItem_1 = require("../../hocs/prepareItem"); | ||
const cn_1 = require("../../utils/cn"); | ||
const prepareItem_1 = require("../../hocs/prepareItem.js"); | ||
const cn_1 = require("../../utils/cn.js"); | ||
require("./Item.css"); | ||
const b = (0, cn_1.cn)('dashkit-item'); | ||
@@ -73,1 +74,2 @@ // TODO: getDerivedStateFromError и заглушка с ошибкой | ||
exports.default = (0, prepareItem_1.prepareItem)(Item); | ||
//# sourceMappingURL=Item.js.map |
@@ -1,3 +0,3 @@ | ||
import type { ConfigItem, ConfigLayout } from '../../shared'; | ||
import { DashKitProps } from '../DashKit'; | ||
export declare const getSortedConfigItems: (config: DashKitProps['config'], hasOrderId: boolean) => (ConfigItem & ConfigLayout)[]; | ||
import type { ConfigItem, ConfigLayout } from "../../shared/index.js"; | ||
import { DashKitProps } from "../DashKit/index.js"; | ||
export declare const getSortedConfigItems: (config: DashKitProps["config"], hasOrderId: boolean) => (ConfigItem & ConfigLayout)[]; |
@@ -33,1 +33,2 @@ "use strict"; | ||
exports.getSortedConfigItems = getSortedConfigItems; | ||
//# sourceMappingURL=helpers.js.map |
import React from 'react'; | ||
import { DashKitContext } from '../../context'; | ||
import { getSortedConfigItems } from './helpers'; | ||
import { DashKitContext } from "../../context/index.js"; | ||
import { getSortedConfigItems } from "./helpers.js"; | ||
import "./MobileLayout.css"; | ||
type MobileLayoutProps = {}; | ||
@@ -10,7 +11,7 @@ type MobileLayoutState = { | ||
export default class MobileLayout extends React.PureComponent<MobileLayoutProps, MobileLayoutState> { | ||
static contextType: React.Context<import("../../context").DashKitCtxShape>; | ||
static contextType: React.Context<import("../../context/index.js").DashKitCtxShape>; | ||
context: React.ContextType<typeof DashKitContext>; | ||
pluginsRefs: PlugibRefObject[]; | ||
sortedLayoutItems: Record<string, ReturnType<typeof getSortedConfigItems>> | null; | ||
_memoLayout: import("../..").ConfigLayout[]; | ||
_memoLayout: import("../../index.js").ConfigLayout[]; | ||
_memoForwardedPluginRef: Array<(refObject: PlugibRefObject) => void>; | ||
@@ -22,3 +23,3 @@ _memoAdjustWidgetLayout: Record<string, (props: { | ||
render(): JSX.Element; | ||
getSortedLayoutItems(): Record<string, (import("../..").ConfigItem & import("../..").ConfigLayout)[]>; | ||
getSortedLayoutItems(): Record<string, (import("../../index.js").ConfigItem & import("../../index.js").ConfigLayout)[]>; | ||
getMemoForwardRefCallback(refIndex: number): (refObject: PlugibRefObject) => void; | ||
@@ -25,0 +26,0 @@ adjustWidgetLayout(id: string, { needSetDefault }: { |
@@ -5,8 +5,9 @@ "use strict"; | ||
const react_1 = tslib_1.__importDefault(require("react")); | ||
const groupBy_1 = tslib_1.__importDefault(require("lodash/groupBy")); | ||
const constants_1 = require("../../constants"); | ||
const context_1 = require("../../context"); | ||
const cn_1 = require("../../utils/cn"); | ||
const Item_1 = tslib_1.__importDefault(require("../Item/Item")); | ||
const helpers_1 = require("./helpers"); | ||
const groupBy_1 = tslib_1.__importDefault(require("lodash/groupBy.js")); | ||
const constants_1 = require("../../constants/index.js"); | ||
const context_1 = require("../../context/index.js"); | ||
const cn_1 = require("../../utils/cn.js"); | ||
const Item_1 = tslib_1.__importDefault(require("../Item/Item.js")); | ||
const helpers_1 = require("./helpers.js"); | ||
require("./MobileLayout.css"); | ||
const b = (0, cn_1.cn)('dashkit-mobile-layout'); | ||
@@ -92,1 +93,2 @@ class MobileLayout extends react_1.default.PureComponent { | ||
exports.default = MobileLayout; | ||
//# sourceMappingURL=MobileLayout.js.map |
import React from 'react'; | ||
import { ButtonSize, ButtonView, IconProps, MenuItemProps } from '@gravity-ui/uikit'; | ||
import { OverlayControlsCtxShape } from '../../context'; | ||
import { type ConfigItem, type ItemParams, type ItemState, type PluginBase } from '../../shared'; | ||
import { OverlayControlsCtxShape } from "../../context/index.js"; | ||
import { type ConfigItem, type ItemParams, type ItemState, type PluginBase } from "../../shared/index.js"; | ||
import "./OverlayControls.css"; | ||
export declare enum OverlayControlsPosition { | ||
@@ -25,3 +26,3 @@ TopRight = "top_right", | ||
title?: string; | ||
icon?: MenuItemProps['icon']; | ||
icon?: MenuItemProps['iconStart']; | ||
iconSize?: number | string; | ||
@@ -28,0 +29,0 @@ handler?: (item: ConfigItem, params: ItemParams, state: ItemState) => void; |
@@ -8,8 +8,9 @@ "use strict"; | ||
const uikit_1 = require("@gravity-ui/uikit"); | ||
const noop_1 = tslib_1.__importDefault(require("lodash/noop")); | ||
const constants_1 = require("../../constants"); | ||
const context_1 = require("../../context"); | ||
const i18n_1 = require("../../i18n"); | ||
const shared_1 = require("../../shared"); | ||
const cn_1 = require("../../utils/cn"); | ||
const noop_1 = tslib_1.__importDefault(require("lodash/noop.js")); | ||
const constants_1 = require("../../constants/index.js"); | ||
const context_1 = require("../../context/index.js"); | ||
const i18n_1 = require("../../i18n/index.js"); | ||
const shared_1 = require("../../shared/index.js"); | ||
const cn_1 = require("../../utils/cn.js"); | ||
require("./OverlayControls.css"); | ||
const b = (0, cn_1.cn)(constants_1.OVERLAY_CONTROLS_CLASS_NAME); | ||
@@ -234,3 +235,3 @@ var OverlayControlsPosition; | ||
text: item.title || (0, i18n_1.i18n)(item.id), | ||
icon: item.icon, | ||
iconStart: item.icon, | ||
action: itemAction, | ||
@@ -247,3 +248,3 @@ className: item.className, | ||
react_1.default.createElement(uikit_1.Icon, { data: icons_1.Ellipsis, size: constants_1.OVERLAY_ICON_SIZE }))), popupProps: { | ||
contentClassName: constants_1.DRAGGABLE_CANCEL_CLASS_NAME, | ||
className: constants_1.DRAGGABLE_CANCEL_CLASS_NAME, | ||
} })); | ||
@@ -282,1 +283,2 @@ } | ||
exports.default = OverlayControls; | ||
//# sourceMappingURL=OverlayControls.js.map |
@@ -23,1 +23,2 @@ "use strict"; | ||
exports.DROPPING_ELEMENT_CLASS_NAME = 'dropping'; | ||
//# sourceMappingURL=common.js.map |
@@ -1,1 +0,1 @@ | ||
export * from './common'; | ||
export * from "./common.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./common"), exports); | ||
tslib_1.__exportStar(require("./common.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,6 +0,5 @@ | ||
/// <reference types="react-grid-layout" /> | ||
import React from 'react'; | ||
import type { RegisterManager } from '..//utils'; | ||
import type { DashKitProps } from '../components/DashKit'; | ||
import type { ConfigItem, ConfigLayout, ItemParams, ItemState, ItemStateAndParams, ItemStateAndParamsChangeOptions } from '../shared'; | ||
import type { RegisterManager } from "../utils/index.js"; | ||
import type { DashKitProps } from "../components/DashKit/index.js"; | ||
import type { ConfigItem, ConfigLayout, ItemParams, ItemState, ItemStateAndParams, ItemStateAndParamsChangeOptions } from "../shared/index.js"; | ||
type DashkitPropsPassedToCtx = Pick<DashKitProps, 'config' | 'groups' | 'context' | 'noOverlay' | 'focusable' | 'globalParams' | 'editMode' | 'settings' | 'onItemMountChange' | 'onItemRender' | 'draggableHandleClassName' | 'onDragStart' | 'onDrag' | 'onDragStop' | 'onResizeStart' | 'onResize' | 'onResizeStop'>; | ||
@@ -7,0 +6,0 @@ type PluginType = string; |
@@ -8,1 +8,2 @@ "use strict"; | ||
exports.DashKitContext = DashKitContext; | ||
//# sourceMappingURL=DashKitContext.js.map |
import React from 'react'; | ||
import type { DraggedOverItem, ItemDragProps } from '../shared/types'; | ||
import type { DraggedOverItem, ItemDragProps } from "../shared/types/index.js"; | ||
export type DashKitDnDCtxShape = { | ||
@@ -4,0 +4,0 @@ dragProps: ItemDragProps | null; |
@@ -7,1 +7,2 @@ "use strict"; | ||
exports.DashKitDnDContext = react_1.default.createContext(undefined); | ||
//# sourceMappingURL=DashKitDnDContext.js.map |
import React from 'react'; | ||
import type { DashKitProps } from '../components'; | ||
import type { ConfigLayout, ItemParams, ItemState } from '../shared'; | ||
import type { MenuItem } from '../typings'; | ||
import type { DashKitProps } from "../components/index.js"; | ||
import type { ConfigLayout, ItemParams, ItemState } from "../shared/index.js"; | ||
import type { MenuItem } from "../typings/index.js"; | ||
export type OverlayControlsCtxShape = Pick<DashKitProps, 'context' | 'overlayControls' | 'itemsStateAndParams' | 'getPreparedCopyItemOptions' | 'onCopyFulfill'> & { | ||
@@ -6,0 +6,0 @@ menu: DashKitProps['overlayMenuItems'] | MenuItem[]; |
@@ -7,1 +7,2 @@ "use strict"; | ||
exports.DashkitOvelayControlsContext = react_1.default.createContext(undefined); | ||
//# sourceMappingURL=DashkitOverlayControlsContext.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './DashKitContext'; | ||
export * from './DashkitOverlayControlsContext'; | ||
export * from './DashKitDnDContext'; | ||
export * from "./DashKitContext.js"; | ||
export * from "./DashkitOverlayControlsContext.js"; | ||
export * from "./DashKitDnDContext.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./DashKitContext"), exports); | ||
tslib_1.__exportStar(require("./DashkitOverlayControlsContext"), exports); | ||
tslib_1.__exportStar(require("./DashKitDnDContext"), exports); | ||
tslib_1.__exportStar(require("./DashKitContext.js"), exports); | ||
tslib_1.__exportStar(require("./DashkitOverlayControlsContext.js"), exports); | ||
tslib_1.__exportStar(require("./DashKitDnDContext.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './utils'; | ||
export * from './constants'; | ||
export * from './shared'; | ||
export * from "./utils/index.js"; | ||
export * from "./constants/index.js"; | ||
export * from "./shared/index.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./utils"), exports); | ||
tslib_1.__exportStar(require("./constants"), exports); | ||
tslib_1.__exportStar(require("./shared"), exports); | ||
tslib_1.__exportStar(require("./utils/index.js"), exports); | ||
tslib_1.__exportStar(require("./constants/index.js"), exports); | ||
tslib_1.__exportStar(require("./shared/index.js"), exports); | ||
//# sourceMappingURL=helpers.js.map |
@@ -69,5 +69,5 @@ export function prepareItem(Component: any): { | ||
}; | ||
contextType: React.Context<import("../context").DashKitCtxShape>; | ||
contextType: React.Context<import("../context/index.js").DashKitCtxShape>; | ||
}; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.prepareItem = void 0; | ||
exports.prepareItem = prepareItem; | ||
const tslib_1 = require("tslib"); | ||
const react_1 = tslib_1.__importDefault(require("react")); | ||
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual")); | ||
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual.js")); | ||
const prop_types_1 = tslib_1.__importDefault(require("prop-types")); | ||
const context_1 = require("../context"); | ||
const context_1 = require("../context/index.js"); | ||
function prepareItem(Component) { | ||
@@ -89,2 +89,2 @@ var _a; | ||
} | ||
exports.prepareItem = prepareItem; | ||
//# sourceMappingURL=prepareItem.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.withContext = void 0; | ||
exports.withContext = withContext; | ||
const tslib_1 = require("tslib"); | ||
const react_1 = tslib_1.__importDefault(require("react")); | ||
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual")); | ||
const pick_1 = tslib_1.__importDefault(require("lodash/pick")); | ||
const common_1 = require("../constants/common"); | ||
const context_1 = require("../context"); | ||
const useDeepEqualMemo_1 = require("../hooks/useDeepEqualMemo"); | ||
const shared_1 = require("../shared"); | ||
const utils_1 = require("../utils"); | ||
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual.js")); | ||
const pick_1 = tslib_1.__importDefault(require("lodash/pick.js")); | ||
const common_1 = require("../constants/common.js"); | ||
const context_1 = require("../context/index.js"); | ||
const useDeepEqualMemo_1 = require("../hooks/useDeepEqualMemo.js"); | ||
const shared_1 = require("../shared/index.js"); | ||
const utils_1 = require("../utils/index.js"); | ||
const ITEM_PROPS = ['i', 'h', 'w', 'x', 'y', 'parent']; | ||
@@ -430,2 +430,2 @@ function useMemoStateContext(props) { | ||
} | ||
exports.withContext = withContext; | ||
//# sourceMappingURL=withContext.js.map |
@@ -1,3 +0,3 @@ | ||
import type { Config } from '../shared'; | ||
import { RegisterManager } from '../utils'; | ||
import type { Config } from "../shared/index.js"; | ||
import { RegisterManager } from "../utils/index.js"; | ||
export declare const useCalcPropsLayout: (config: Config, registerManager: RegisterManager) => { | ||
@@ -9,7 +9,7 @@ i: string; | ||
y: number; | ||
parent?: string | undefined; | ||
minW?: number | undefined; | ||
minH?: number | undefined; | ||
parent?: string; | ||
minW?: number; | ||
minH?: number; | ||
maxW?: number | undefined; | ||
maxH?: number | undefined; | ||
}[]; |
@@ -6,3 +6,3 @@ "use strict"; | ||
const react_1 = tslib_1.__importDefault(require("react")); | ||
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual")); | ||
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual.js")); | ||
function onUpdatePropsConfig(config, registerManager) { | ||
@@ -33,1 +33,2 @@ return config.layout.map((itemLayout, i) => { | ||
// }; | ||
//# sourceMappingURL=useCalcLayout.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
const react_1 = tslib_1.__importDefault(require("react")); | ||
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual")); | ||
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual.js")); | ||
const useDeepEqualMemo = (predicate, deps) => { | ||
@@ -19,1 +19,2 @@ const previousValueRef = react_1.default.useRef({}); | ||
exports.useDeepEqualMemo = useDeepEqualMemo; | ||
//# sourceMappingURL=useDeepEqualMemo.js.map |
import React from 'react'; | ||
import { ActionPanelItem } from '../components'; | ||
import { ActionPanelItem } from "../components/index.js"; | ||
type DndProps = null | { | ||
@@ -4,0 +4,0 @@ draggable: true; |
@@ -6,3 +6,3 @@ "use strict"; | ||
const react_1 = tslib_1.__importDefault(require("react")); | ||
const context_1 = require("../context"); | ||
const context_1 = require("../context/index.js"); | ||
const useDnDItemProps = (item) => { | ||
@@ -32,1 +32,2 @@ const dragContext = react_1.default.useContext(context_1.DashKitDnDContext); | ||
exports.useDnDItemProps = useDnDItemProps; | ||
//# sourceMappingURL=useDnDItemProps.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const i18n: ((key: "button_retry" | "label_render-markdown-error" | "label_settings" | "label_copy" | "label_delete" | "label_error", params?: import("@gravity-ui/i18n").Params | undefined) => string) & { | ||
export declare const i18n: ((key: "button_retry" | "label_render-markdown-error" | "label_settings" | "label_copy" | "label_delete" | "label_error", params?: import("@gravity-ui/i18n").Params) => string) & { | ||
keysetData: { | ||
@@ -3,0 +3,0 @@ dashkit: Record<"button_retry" | "label_render-markdown-error" | "label_settings" | "label_copy" | "label_delete" | "label_error", import("@gravity-ui/i18n").KeyData>; |
@@ -9,1 +9,2 @@ "use strict"; | ||
exports.i18n = (0, i18n_1.addComponentKeysets)({ en: en_json_1.default, ru: ru_json_1.default }, 'dashkit'); | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,4 @@ | ||
export * from './components'; | ||
export * from './plugins'; | ||
export * from './shared/types'; | ||
export * from './typings'; | ||
export * from "./components/index.js"; | ||
export * from "./plugins/index.js"; | ||
export * from "./shared/types/index.js"; | ||
export * from "./typings/index.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./components"), exports); | ||
tslib_1.__exportStar(require("./plugins"), exports); | ||
tslib_1.__exportStar(require("./shared/types"), exports); | ||
tslib_1.__exportStar(require("./typings"), exports); | ||
tslib_1.__exportStar(require("./components/index.js"), exports); | ||
tslib_1.__exportStar(require("./plugins/index.js"), exports); | ||
tslib_1.__exportStar(require("./shared/types/index.js"), exports); | ||
tslib_1.__exportStar(require("./typings/index.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -5,1 +5,2 @@ "use strict"; | ||
exports.PLUGIN_ROOT_ATTR_NAME = 'data-plugin-root-el'; | ||
//# sourceMappingURL=constants.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './Text'; | ||
export * from './Title'; | ||
export * from './constants'; | ||
export * from "./Text/index.js"; | ||
export * from "./Title/index.js"; | ||
export * from "./constants.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./Text"), exports); | ||
tslib_1.__exportStar(require("./Title"), exports); | ||
tslib_1.__exportStar(require("./constants"), exports); | ||
tslib_1.__exportStar(require("./Text/index.js"), exports); | ||
tslib_1.__exportStar(require("./Title/index.js"), exports); | ||
tslib_1.__exportStar(require("./constants.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
export * from './Text'; | ||
export { default as pluginText } from './Text'; | ||
export * from "./Text.js"; | ||
export { default as pluginText } from "./Text.js"; |
@@ -5,4 +5,5 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./Text"), exports); | ||
var Text_1 = require("./Text"); | ||
tslib_1.__exportStar(require("./Text.js"), exports); | ||
var Text_1 = require("./Text.js"); | ||
Object.defineProperty(exports, "pluginText", { enumerable: true, get: function () { return tslib_1.__importDefault(Text_1).default; } }); | ||
//# sourceMappingURL=index.js.map |
import React from 'react'; | ||
import { Plugin, PluginWidgetProps } from '../../typings'; | ||
import { Plugin, PluginWidgetProps } from "../../typings/index.js"; | ||
import "./Text.css"; | ||
declare enum LoadStatus { | ||
@@ -4,0 +5,0 @@ Pending = "pending", |
@@ -7,5 +7,6 @@ "use strict"; | ||
const uikit_1 = require("@gravity-ui/uikit"); | ||
const i18n_1 = require("../../i18n"); | ||
const cn_1 = require("../../utils/cn"); | ||
const constants_1 = require("../constants"); | ||
const i18n_1 = require("../../i18n/index.js"); | ||
const cn_1 = require("../../utils/cn.js"); | ||
const constants_1 = require("../constants.js"); | ||
require("./Text.css"); | ||
// need to set markdown styles separately | ||
@@ -125,1 +126,2 @@ // for instance can use yfm-transform | ||
exports.default = plugin; | ||
//# sourceMappingURL=Text.js.map |
@@ -1,3 +0,3 @@ | ||
import { PluginTitleSize, TitleFontParams } from './types'; | ||
import { PluginTitleSize, TitleFontParams } from "./types.js"; | ||
export declare const TITLE_DEFAULT_SIZES: Record<PluginTitleSize, TitleFontParams>; | ||
export declare const RECCOMMENDED_LINE_HEIGHT_MULTIPLIER = 1.1; |
@@ -27,1 +27,2 @@ "use strict"; | ||
exports.RECCOMMENDED_LINE_HEIGHT_MULTIPLIER = 1.1; | ||
//# sourceMappingURL=constants.js.map |
@@ -1,4 +0,4 @@ | ||
export * from './Title'; | ||
export { default as pluginTitle } from './Title'; | ||
export { PluginTitleSize, TitleFontParams } from './types'; | ||
export * from './constants'; | ||
export * from "./Title.js"; | ||
export { default as pluginTitle } from "./Title.js"; | ||
export { PluginTitleSize, TitleFontParams } from "./types.js"; | ||
export * from "./constants.js"; |
@@ -5,5 +5,6 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./Title"), exports); | ||
var Title_1 = require("./Title"); | ||
tslib_1.__exportStar(require("./Title.js"), exports); | ||
var Title_1 = require("./Title.js"); | ||
Object.defineProperty(exports, "pluginTitle", { enumerable: true, get: function () { return tslib_1.__importDefault(Title_1).default; } }); | ||
tslib_1.__exportStar(require("./constants"), exports); | ||
tslib_1.__exportStar(require("./constants.js"), exports); | ||
//# sourceMappingURL=index.js.map |
import React from 'react'; | ||
import { Plugin, PluginWidgetProps } from '../../typings'; | ||
import type { PluginTitleSize, TitleFontParams } from './types'; | ||
import { Plugin, PluginWidgetProps } from "../../typings/index.js"; | ||
import type { PluginTitleSize, TitleFontParams } from "./types.js"; | ||
import "./Title.css"; | ||
export interface PluginTitleProps extends PluginWidgetProps { | ||
@@ -5,0 +6,0 @@ data: { |
@@ -6,6 +6,7 @@ "use strict"; | ||
const react_1 = tslib_1.__importDefault(require("react")); | ||
const cn_1 = require("../../utils/cn"); | ||
const constants_1 = require("../constants"); | ||
const constants_2 = require("./constants"); | ||
const utils_1 = require("./utils"); | ||
const cn_1 = require("../../utils/cn.js"); | ||
const constants_1 = require("../constants.js"); | ||
const constants_2 = require("./constants.js"); | ||
const utils_1 = require("./utils.js"); | ||
require("./Title.css"); | ||
const b = (0, cn_1.cn)('dashkit-plugin-title'); | ||
@@ -37,1 +38,2 @@ class PluginTitle extends react_1.default.Component { | ||
exports.default = plugin; | ||
//# sourceMappingURL=Title.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=types.js.map |
@@ -1,2 +0,2 @@ | ||
import type { PluginTitleSize, TitleFontParams } from './types'; | ||
import type { PluginTitleSize, TitleFontParams } from "./types.js"; | ||
export declare function isCustomSize(size: PluginTitleSize | TitleFontParams): size is TitleFontParams; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isCustomSize = void 0; | ||
exports.isCustomSize = isCustomSize; | ||
function isCustomSize(size) { | ||
return typeof size === 'object'; | ||
} | ||
exports.isCustomSize = isCustomSize; | ||
//# sourceMappingURL=utils.js.map |
@@ -8,1 +8,2 @@ "use strict"; | ||
exports.TERMORARY_ITEM_ID = '__dropping-elem__'; | ||
//# sourceMappingURL=common.js.map |
@@ -1,1 +0,1 @@ | ||
export * from './common'; | ||
export * from "./common.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./common"), exports); | ||
tslib_1.__exportStar(require("./common.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,4 @@ | ||
export * from './constants'; | ||
export * from './types'; | ||
export * from './modules'; | ||
export * from './units'; | ||
export * from "./constants/index.js"; | ||
export * from "./types/index.js"; | ||
export * from "./modules/index.js"; | ||
export * from "./units/index.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./constants"), exports); | ||
tslib_1.__exportStar(require("./types"), exports); | ||
tslib_1.__exportStar(require("./modules"), exports); | ||
tslib_1.__exportStar(require("./units"), exports); | ||
tslib_1.__exportStar(require("./constants/index.js"), exports); | ||
tslib_1.__exportStar(require("./types/index.js"), exports); | ||
tslib_1.__exportStar(require("./modules/index.js"), exports); | ||
tslib_1.__exportStar(require("./units/index.js"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../../constants"); | ||
const helpers_1 = require("../helpers"); | ||
const constants_1 = require("../../constants/index.js"); | ||
const helpers_1 = require("../helpers.js"); | ||
const DEFAULT_CONTROL_ID = 'controlId'; | ||
@@ -505,1 +505,2 @@ const DEFAULT_CONTROL_ID_2 = 'controlId2'; | ||
}); | ||
//# sourceMappingURL=helpers.test.js.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
const hashids_1 = tslib_1.__importDefault(require("hashids")); | ||
const uniq_id_1 = require("../uniq-id"); | ||
const uniq_id_1 = require("../uniq-id.js"); | ||
const salt = 'salt'; | ||
@@ -79,1 +79,2 @@ const hashids = new hashids_1.default(salt); | ||
}); | ||
//# sourceMappingURL=uniq-id.test.js.map |
@@ -1,2 +0,2 @@ | ||
import { Config, ConfigAliases, ConfigConnection, ConfigItem, ConfigItemGroup, ConfigItemWithGroup, ConfigItemWithTabs, ItemStateAndParams, ItemsStateAndParams, PluginBase, StateAndParamsMetaData, StringParams } from '../types'; | ||
import { Config, ConfigAliases, ConfigConnection, ConfigItem, ConfigItemGroup, ConfigItemWithGroup, ConfigItemWithTabs, ItemStateAndParams, ItemsStateAndParams, PluginBase, StateAndParamsMetaData, StringParams } from "../types/index.js"; | ||
export declare function prerenderItems({ items, plugins, }: { | ||
@@ -3,0 +3,0 @@ items: ConfigItem[]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.hasActionParams = exports.hasActionParam = exports.transformParamsToActionParams = exports.pickExceptActionParamsFromParams = exports.pickActionParamsFromParams = exports.deleteFromQueue = exports.addGroupToQueue = exports.addToQueue = exports.getInitialItemsStateAndParamsMeta = exports.mergeParamsWithAliases = exports.getMapItemsIgnores = exports.resolveItemInnerId = exports.formQueueData = exports.isItemWithGroup = exports.isItemWithTabs = exports.getCurrentVersion = exports.getItemsStateAndParamsMeta = exports.prerenderItems = void 0; | ||
exports.prerenderItems = prerenderItems; | ||
exports.getItemsStateAndParamsMeta = getItemsStateAndParamsMeta; | ||
exports.getCurrentVersion = getCurrentVersion; | ||
exports.isItemWithTabs = isItemWithTabs; | ||
exports.isItemWithGroup = isItemWithGroup; | ||
exports.formQueueData = formQueueData; | ||
exports.resolveItemInnerId = resolveItemInnerId; | ||
exports.getMapItemsIgnores = getMapItemsIgnores; | ||
exports.mergeParamsWithAliases = mergeParamsWithAliases; | ||
exports.getInitialItemsStateAndParamsMeta = getInitialItemsStateAndParamsMeta; | ||
exports.addToQueue = addToQueue; | ||
exports.addGroupToQueue = addGroupToQueue; | ||
exports.deleteFromQueue = deleteFromQueue; | ||
exports.pickActionParamsFromParams = pickActionParamsFromParams; | ||
exports.pickExceptActionParamsFromParams = pickExceptActionParamsFromParams; | ||
exports.transformParamsToActionParams = transformParamsToActionParams; | ||
exports.hasActionParam = hasActionParam; | ||
exports.hasActionParams = hasActionParams; | ||
const tslib_1 = require("tslib"); | ||
const get_1 = tslib_1.__importDefault(require("lodash/get")); | ||
const invert_1 = tslib_1.__importDefault(require("lodash/invert")); | ||
const isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty")); | ||
const keyBy_1 = tslib_1.__importDefault(require("lodash/keyBy")); | ||
const pick_1 = tslib_1.__importDefault(require("lodash/pick")); | ||
const constants_1 = require("../constants"); | ||
const get_1 = tslib_1.__importDefault(require("lodash/get.js")); | ||
const invert_1 = tslib_1.__importDefault(require("lodash/invert.js")); | ||
const isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty.js")); | ||
const keyBy_1 = tslib_1.__importDefault(require("lodash/keyBy.js")); | ||
const pick_1 = tslib_1.__importDefault(require("lodash/pick.js")); | ||
const constants_1 = require("../constants/index.js"); | ||
function getNormalizedPlugins(plugins) { | ||
@@ -24,3 +41,2 @@ return (0, keyBy_1.default)(plugins, 'type'); | ||
} | ||
exports.prerenderItems = prerenderItems; | ||
function getItemsStateAndParamsMeta(itemsStateAndParams) { | ||
@@ -30,3 +46,2 @@ const meta = itemsStateAndParams === null || itemsStateAndParams === void 0 ? void 0 : itemsStateAndParams[constants_1.META_KEY]; | ||
} | ||
exports.getItemsStateAndParamsMeta = getItemsStateAndParamsMeta; | ||
function getCurrentVersion(itemsStateAndParams) { | ||
@@ -48,3 +63,2 @@ if ((0, isEmpty_1.default)(itemsStateAndParams)) { | ||
} | ||
exports.getCurrentVersion = getCurrentVersion; | ||
function isConfigData(item) { | ||
@@ -57,3 +71,2 @@ return 'data' in item && 'type' in item; | ||
} | ||
exports.isItemWithTabs = isItemWithTabs; | ||
function isItemWithGroup(item) { | ||
@@ -63,3 +76,2 @@ var _a; | ||
} | ||
exports.isItemWithGroup = isItemWithGroup; | ||
// Array of parameters from widgets according to queue | ||
@@ -122,3 +134,2 @@ function formQueueData({ items, itemsStateAndParams, }) { | ||
} | ||
exports.formQueueData = formQueueData; | ||
function resolveItemInnerId({ item, itemsStateAndParams, }) { | ||
@@ -135,3 +146,2 @@ var _a, _b; | ||
} | ||
exports.resolveItemInnerId = resolveItemInnerId; | ||
// В config.connections в from/to может быть как id item'a (item.id), так и id таба (item.data.tabs[].id) | ||
@@ -163,3 +173,2 @@ // Тут мы нормализуем к виду Record<itemId: ignoredItemId[]> | ||
} | ||
exports.getMapItemsIgnores = getMapItemsIgnores; | ||
function mergeParamsWithAliases({ aliases, namespace, params, actionParams, }) { | ||
@@ -178,3 +187,2 @@ const aliasesByNamespace = (0, get_1.default)(aliases, [namespace], []); | ||
} | ||
exports.mergeParamsWithAliases = mergeParamsWithAliases; | ||
function getInitialItemsStateAndParamsMeta() { | ||
@@ -186,3 +194,2 @@ return { | ||
} | ||
exports.getInitialItemsStateAndParamsMeta = getInitialItemsStateAndParamsMeta; | ||
function getActualItemsIds(items) { | ||
@@ -223,3 +230,2 @@ return items.reduce((ids, item) => { | ||
} | ||
exports.addToQueue = addToQueue; | ||
function addGroupToQueue({ id, groupItemIds, config, itemsStateAndParams, }) { | ||
@@ -249,3 +255,2 @@ const queueItems = groupItemIds.map((groupItemId) => ({ | ||
} | ||
exports.addGroupToQueue = addGroupToQueue; | ||
function deleteFromQueue(data) { | ||
@@ -255,3 +260,2 @@ const meta = addToQueue(data); | ||
} | ||
exports.deleteFromQueue = deleteFromQueue; | ||
/** | ||
@@ -279,3 +283,2 @@ * public function for getting only actionParams from object (all fields with keys that contains prefix) | ||
} | ||
exports.pickActionParamsFromParams = pickActionParamsFromParams; | ||
/** | ||
@@ -297,3 +300,2 @@ * public function for getting params from object without actionParams | ||
} | ||
exports.pickExceptActionParamsFromParams = pickExceptActionParamsFromParams; | ||
/** | ||
@@ -313,3 +315,2 @@ * public function for transforming object to actionParams format | ||
} | ||
exports.transformParamsToActionParams = transformParamsToActionParams; | ||
/** | ||
@@ -327,3 +328,2 @@ * check if object contains actionParams | ||
} | ||
exports.hasActionParam = hasActionParam; | ||
/** | ||
@@ -339,2 +339,2 @@ * check if ItemStateAndParams object has actionParams in params or state field | ||
} | ||
exports.hasActionParams = hasActionParams; | ||
//# sourceMappingURL=helpers.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './helpers'; | ||
export * from './state-and-params'; | ||
export * from './uniq-id'; | ||
export * from "./helpers.js"; | ||
export * from "./state-and-params.js"; | ||
export * from "./uniq-id.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./helpers"), exports); | ||
tslib_1.__exportStar(require("./state-and-params"), exports); | ||
tslib_1.__exportStar(require("./uniq-id"), exports); | ||
tslib_1.__exportStar(require("./helpers.js"), exports); | ||
tslib_1.__exportStar(require("./state-and-params.js"), exports); | ||
tslib_1.__exportStar(require("./uniq-id.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import { Config, GlobalParams, ItemState, ItemsStateAndParams, PluginBase, StringParams } from '../types'; | ||
import { Config, GlobalParams, ItemState, ItemsStateAndParams, PluginBase, StringParams } from "../types/index.js"; | ||
export interface GetItemsParamsArg { | ||
@@ -3,0 +3,0 @@ defaultGlobalParams: GlobalParams; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getItemsStateAndParams = exports.getItemsState = exports.getItemsParams = void 0; | ||
exports.getItemsParams = getItemsParams; | ||
exports.getItemsState = getItemsState; | ||
exports.getItemsStateAndParams = getItemsStateAndParams; | ||
const tslib_1 = require("tslib"); | ||
const groupBy_1 = tslib_1.__importDefault(require("lodash/groupBy")); | ||
const constants_1 = require("../constants"); | ||
const helpers_1 = require("./helpers"); | ||
const groupBy_1 = tslib_1.__importDefault(require("lodash/groupBy.js")); | ||
const constants_1 = require("../constants/index.js"); | ||
const helpers_1 = require("./helpers.js"); | ||
const getParamsFromStateAndParams = ({ itemsStateAndParams, parentItemId, item, }) => { | ||
@@ -120,3 +122,2 @@ const widgetId = parentItemId || item.id; | ||
} | ||
exports.getItemsParams = getItemsParams; | ||
function getItemsState({ config, itemsStateAndParams, }) { | ||
@@ -129,3 +130,2 @@ return config.items.reduce((acc, { id }) => { | ||
} | ||
exports.getItemsState = getItemsState; | ||
function getItemsStateAndParams({ defaultGlobalParams = {}, globalParams = {}, config, itemsStateAndParams, plugins, }) { | ||
@@ -160,2 +160,2 @@ const params = getItemsParams({ | ||
} | ||
exports.getItemsStateAndParams = getItemsStateAndParams; | ||
//# sourceMappingURL=state-and-params.js.map |
@@ -1,2 +0,2 @@ | ||
import type { Config } from '../types'; | ||
import type { Config } from "../types/index.js"; | ||
export declare function extractIdsFromConfig(config: Config): string[]; | ||
@@ -3,0 +3,0 @@ type GenerateUniqIdArgs = { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateUniqId = exports.extractIdsFromConfig = void 0; | ||
exports.extractIdsFromConfig = extractIdsFromConfig; | ||
exports.generateUniqId = generateUniqId; | ||
const tslib_1 = require("tslib"); | ||
const hashids_1 = tslib_1.__importDefault(require("hashids")); | ||
const helpers_1 = require("./helpers"); | ||
const helpers_1 = require("./helpers.js"); | ||
function extractIdsFromConfig(config) { | ||
@@ -25,3 +26,2 @@ const ids = []; | ||
} | ||
exports.extractIdsFromConfig = extractIdsFromConfig; | ||
function generateUniqId({ salt, counter, ids }) { | ||
@@ -40,2 +40,2 @@ let newCounter = counter; | ||
} | ||
exports.generateUniqId = generateUniqId; | ||
//# sourceMappingURL=uniq-id.js.map |
@@ -1,2 +0,2 @@ | ||
import { ConfigLayout } from './config'; | ||
import { ConfigLayout } from "./config.js"; | ||
export type Dictionary<T = unknown> = Record<string, T>; | ||
@@ -3,0 +3,0 @@ export interface StringParams extends Dictionary<string | string[]> { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=common.js.map |
@@ -1,2 +0,2 @@ | ||
import { StringParams } from './common'; | ||
import { StringParams } from "./common.js"; | ||
export interface AdditionalWidgetLayout { | ||
@@ -3,0 +3,0 @@ parent?: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=config.js.map |
@@ -1,4 +0,4 @@ | ||
export * from './common'; | ||
export * from './config'; | ||
export * from './state-and-params'; | ||
export * from './plugin'; | ||
export * from "./common.js"; | ||
export * from "./config.js"; | ||
export * from "./state-and-params.js"; | ||
export * from "./plugin.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./common"), exports); | ||
tslib_1.__exportStar(require("./config"), exports); | ||
tslib_1.__exportStar(require("./state-and-params"), exports); | ||
tslib_1.__exportStar(require("./plugin"), exports); | ||
tslib_1.__exportStar(require("./common.js"), exports); | ||
tslib_1.__exportStar(require("./config.js"), exports); | ||
tslib_1.__exportStar(require("./state-and-params.js"), exports); | ||
tslib_1.__exportStar(require("./plugin.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import type { ConfigItem } from './config'; | ||
import type { ConfigItem } from "./config.js"; | ||
interface PluginSpecialFields { | ||
@@ -3,0 +3,0 @@ prerenderMiddleware?: (item: ConfigItem) => ConfigItem; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=plugin.js.map |
@@ -1,3 +0,3 @@ | ||
import { META_KEY } from '../constants'; | ||
import { StringParams } from './common'; | ||
import { META_KEY } from "../constants/index.js"; | ||
import { StringParams } from "./common.js"; | ||
export interface ItemState { | ||
@@ -4,0 +4,0 @@ [key: string]: any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../constants"); | ||
const constants_1 = require("../constants/index.js"); | ||
//# sourceMappingURL=state-and-params.js.map |
@@ -5,5 +5,5 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const omit_1 = tslib_1.__importDefault(require("lodash/omit")); | ||
const constants_1 = require("../../constants"); | ||
const datalens_1 = require("../datalens"); | ||
const omit_1 = tslib_1.__importDefault(require("lodash/omit.js")); | ||
const constants_1 = require("../../constants/index.js"); | ||
const datalens_1 = require("../datalens/index.js"); | ||
const configs_json_1 = tslib_1.__importDefault(require("./configs.json")); | ||
@@ -725,1 +725,2 @@ exports.stateAndParams1 = { | ||
}); | ||
//# sourceMappingURL=state-and-params.test.js.map |
@@ -1,3 +0,3 @@ | ||
import { GetItemsParamsArg } from '../../modules'; | ||
import { ItemsStateAndParamsBase, PluginBase } from '../../types'; | ||
import { GetItemsParamsArg } from "../../modules/index.js"; | ||
import { ItemsStateAndParamsBase, PluginBase } from "../../types/index.js"; | ||
export declare const pluginControlBaseDL: PluginBase; | ||
@@ -4,0 +4,0 @@ export declare const pluginGroupControlBaseDL: PluginBase; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getItemsStateAndParamsDL = exports.pluginWidgetBaseDL = exports.pluginGroupControlBaseDL = exports.pluginControlBaseDL = void 0; | ||
exports.pluginWidgetBaseDL = exports.pluginGroupControlBaseDL = exports.pluginControlBaseDL = void 0; | ||
exports.getItemsStateAndParamsDL = getItemsStateAndParamsDL; | ||
const tslib_1 = require("tslib"); | ||
const omit_1 = tslib_1.__importDefault(require("lodash/omit")); | ||
const constants_1 = require("../../constants"); | ||
const modules_1 = require("../../modules"); | ||
const omit_1 = tslib_1.__importDefault(require("lodash/omit.js")); | ||
const constants_1 = require("../../constants/index.js"); | ||
const modules_1 = require("../../modules/index.js"); | ||
exports.pluginControlBaseDL = { | ||
@@ -29,2 +30,2 @@ type: 'control', | ||
} | ||
exports.getItemsStateAndParamsDL = getItemsStateAndParamsDL; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
export * from './datalens'; | ||
export * from "./datalens/index.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./datalens"), exports); | ||
tslib_1.__exportStar(require("./datalens/index.js"), exports); | ||
//# sourceMappingURL=index.js.map |
import type ReactGridLayout from 'react-grid-layout'; | ||
import type { OverlayCustomControlItem } from '../components/OverlayControls/OverlayControls'; | ||
import { MenuItems } from '../constants'; | ||
import { AdditionalWidgetLayout } from '../shared'; | ||
import type { OverlayCustomControlItem } from "../components/OverlayControls/OverlayControls.js"; | ||
import { MenuItems } from "../constants/index.js"; | ||
import { AdditionalWidgetLayout } from "../shared/index.js"; | ||
export type GridLayoutSettings = ReactGridLayout.ReactGridLayoutProps & { | ||
@@ -6,0 +6,0 @@ noOverlay?: boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=common.js.map |
@@ -1,5 +0,4 @@ | ||
/// <reference types="react" /> | ||
import type { Layout, Layouts } from 'react-grid-layout'; | ||
import type { Config, ConfigItem, ConfigLayout } from '../shared'; | ||
import { GridLayoutSettings } from './common'; | ||
import type { Config, ConfigItem, ConfigLayout } from "../shared/index.js"; | ||
import { GridLayoutSettings } from "./common.js"; | ||
export interface AddConfigItem extends Omit<ConfigItem, 'id' | 'namespace'> { | ||
@@ -6,0 +5,0 @@ id?: null; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=config.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './common'; | ||
export * from './plugin'; | ||
export * from './config'; | ||
export * from "./common.js"; | ||
export * from "./plugin.js"; | ||
export * from "./config.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./common"), exports); | ||
tslib_1.__exportStar(require("./plugin"), exports); | ||
tslib_1.__exportStar(require("./config"), exports); | ||
tslib_1.__exportStar(require("./common.js"), exports); | ||
tslib_1.__exportStar(require("./plugin.js"), exports); | ||
tslib_1.__exportStar(require("./config.js"), exports); | ||
//# sourceMappingURL=index.js.map |
import React from 'react'; | ||
import ReactGridLayout from 'react-grid-layout'; | ||
import type { ConfigItem, ItemState, ItemStateAndParams, ItemStateAndParamsChangeOptions, PluginBase, StringParams } from '../shared'; | ||
import type { ContextProps, SettingsProps, WidgetLayout } from './common'; | ||
import type { ConfigItem, ItemState, ItemStateAndParams, ItemStateAndParamsChangeOptions, PluginBase, StringParams } from "../shared/index.js"; | ||
import type { ContextProps, SettingsProps, WidgetLayout } from "./common.js"; | ||
export interface PluginWidgetProps<T = StringParams> { | ||
@@ -6,0 +6,0 @@ id: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=plugin.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const update_manager_1 = require("../update-manager"); | ||
const update_manager_1 = require("../update-manager.js"); | ||
const config = { | ||
@@ -824,1 +824,2 @@ salt: '0.09852189776033704', | ||
}); | ||
//# sourceMappingURL=update-manager.test.js.map |
@@ -6,1 +6,2 @@ "use strict"; | ||
exports.cn = (0, classname_1.withNaming)({ e: '__', m: '_' }); | ||
//# sourceMappingURL=cn.js.map |
@@ -1,2 +0,2 @@ | ||
import type { Config } from '../shared'; | ||
import type { Config } from "../shared/index.js"; | ||
type GetNewIdArgs = { | ||
@@ -3,0 +3,0 @@ config: Config; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getNewId = void 0; | ||
const shared_1 = require("../shared"); | ||
exports.getNewId = getNewId; | ||
const shared_1 = require("../shared/index.js"); | ||
function getNewId({ config, salt, counter, excludeIds = [] }) { | ||
@@ -9,2 +9,2 @@ const allIds = [...(0, shared_1.extractIdsFromConfig)(config), ...excludeIds]; | ||
} | ||
exports.getNewId = getNewId; | ||
//# sourceMappingURL=get-new-id.js.map |
import { Layout } from 'react-grid-layout'; | ||
import type { CompactType } from '../'; | ||
import type { CompactType } from "../index.js"; | ||
export declare const compact: (layout: Layout[], compactType: CompactType, cols: number) => Layout[]; | ||
export declare const bottom: (layout: Layout[]) => number; |
@@ -18,1 +18,2 @@ "use strict"; | ||
exports.bottom = bottom; | ||
//# sourceMappingURL=grid-layout.js.map |
@@ -1,3 +0,3 @@ | ||
import type { ConfigLayout } from '../shared/types'; | ||
import type { ConfigLayout } from "../shared/types/index.js"; | ||
export declare const resolveLayoutGroup: (item: ConfigLayout) => string; | ||
export declare const isDefaultLayoutGroup: (item: ConfigLayout) => boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isDefaultLayoutGroup = exports.resolveLayoutGroup = void 0; | ||
const constants_1 = require("../constants"); | ||
const constants_1 = require("../constants/index.js"); | ||
const resolveLayoutGroup = (item) => { | ||
@@ -16,1 +16,2 @@ if (!item.parent) { | ||
exports.isDefaultLayoutGroup = isDefaultLayoutGroup; | ||
//# sourceMappingURL=group-helpers.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './register-manager'; | ||
export * from './update-manager'; | ||
export * from './group-helpers'; | ||
export * from "./register-manager.js"; | ||
export * from "./update-manager.js"; | ||
export * from "./group-helpers.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./register-manager"), exports); | ||
tslib_1.__exportStar(require("./update-manager"), exports); | ||
tslib_1.__exportStar(require("./group-helpers"), exports); | ||
tslib_1.__exportStar(require("./register-manager.js"), exports); | ||
tslib_1.__exportStar(require("./update-manager.js"), exports); | ||
tslib_1.__exportStar(require("./group-helpers.js"), exports); | ||
//# sourceMappingURL=index.js.map |
import ReactGridLayout from 'react-grid-layout'; | ||
import type { Plugin, PluginDefaultLayout, Settings } from '../typings'; | ||
import type { Plugin, PluginDefaultLayout, Settings } from "../typings/index.js"; | ||
interface RegisterManagerDefaultLayout { | ||
@@ -4,0 +4,0 @@ x: number; |
@@ -63,1 +63,2 @@ "use strict"; | ||
exports.RegisterManager = RegisterManager; | ||
//# sourceMappingURL=register-manager.js.map |
@@ -1,5 +0,5 @@ | ||
import { ConfigLayout } from '../shared'; | ||
import type { Config, ConfigItem, ConfigItemGroup, ItemStateAndParams, ItemStateAndParamsChangeOptions, ItemsStateAndParams } from '../shared'; | ||
import type { AddConfigItem, AddNewItemOptions, ReflowLayoutOptions, SetItemOptions, WidgetLayout } from '../typings'; | ||
import { RegisterManagerPluginLayout } from './register-manager'; | ||
import { ConfigLayout } from "../shared/index.js"; | ||
import type { Config, ConfigItem, ConfigItemGroup, ItemStateAndParams, ItemStateAndParamsChangeOptions, ItemsStateAndParams } from "../shared/index.js"; | ||
import type { AddConfigItem, AddNewItemOptions, ReflowLayoutOptions, SetItemOptions, WidgetLayout } from "../typings/index.js"; | ||
import { RegisterManagerPluginLayout } from "./register-manager.js"; | ||
interface RemoveItemArg { | ||
@@ -6,0 +6,0 @@ id: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UpdateManager = exports.reflowLayout = exports.getChangedParams = void 0; | ||
exports.UpdateManager = exports.getChangedParams = void 0; | ||
exports.reflowLayout = reflowLayout; | ||
const tslib_1 = require("tslib"); | ||
const immutability_helper_1 = tslib_1.__importStar(require("immutability-helper")); | ||
const omit_1 = tslib_1.__importDefault(require("lodash/omit")); | ||
const pick_1 = tslib_1.__importDefault(require("lodash/pick")); | ||
const constants_1 = require("../constants"); | ||
const shared_1 = require("../shared"); | ||
const get_new_id_1 = require("./get-new-id"); | ||
const grid_layout_1 = require("./grid-layout"); | ||
const group_helpers_1 = require("./group-helpers"); | ||
const omit_1 = tslib_1.__importDefault(require("lodash/omit.js")); | ||
const pick_1 = tslib_1.__importDefault(require("lodash/pick.js")); | ||
const constants_1 = require("../constants/index.js"); | ||
const shared_1 = require("../shared/index.js"); | ||
const get_new_id_1 = require("./get-new-id.js"); | ||
const grid_layout_1 = require("./grid-layout.js"); | ||
const group_helpers_1 = require("./group-helpers.js"); | ||
(0, immutability_helper_1.extend)('$auto', (value, object) => (object ? (0, immutability_helper_1.default)(object, value) : (0, immutability_helper_1.default)({}, value))); | ||
@@ -275,3 +276,2 @@ function removeItemVersion1({ id, config, itemsStateAndParams }) { | ||
} | ||
exports.reflowLayout = reflowLayout; | ||
class UpdateManager { | ||
@@ -503,1 +503,2 @@ static addItem({ item, namespace = constants_1.DEFAULT_NAMESPACE, layout, config, options = {}, }) { | ||
exports.UpdateManager = UpdateManager; | ||
//# sourceMappingURL=update-manager.js.map |
@@ -1,4 +0,3 @@ | ||
/// <reference types="react" /> | ||
import { ActionPanelItem, ActionPanelProps } from './types'; | ||
import './ActionPanel.css'; | ||
import { ActionPanelItem, ActionPanelProps } from "./types.js"; | ||
import "./ActionPanel.css"; | ||
export declare const ActionPanelItemContainer: ({ item }: { | ||
@@ -5,0 +4,0 @@ item: ActionPanelItem; |
import { __rest } from "tslib"; | ||
import React from 'react'; | ||
import { CSSTransition } from 'react-transition-group'; | ||
import { useDnDItemProps } from '../../hooks/useDnDItemProps'; | ||
import { cn } from '../../utils/cn'; | ||
import './ActionPanel.css'; | ||
import { useDnDItemProps } from "../../hooks/useDnDItemProps.js"; | ||
import { cn } from "../../utils/cn.js"; | ||
import "./ActionPanel.css"; | ||
const b = cn('dashkit-action-panel'); | ||
@@ -32,1 +32,2 @@ export const ActionPanelItemContainer = ({ item }) => { | ||
}; | ||
//# sourceMappingURL=ActionPanel.js.map |
import React from 'react'; | ||
import type { ItemDragProps } from '../../shared'; | ||
import type { ItemDragProps } from "../../shared/index.js"; | ||
export type ActionPanelItem = { | ||
@@ -4,0 +4,0 @@ id: string; |
export {}; | ||
//# sourceMappingURL=types.js.map |
import React from 'react'; | ||
import type { Config, ConfigItem, ConfigLayout, GlobalParams, ItemDropProps, ItemsStateAndParams } from '../../shared'; | ||
import type { AddNewItemOptions, ContextProps, DashKitGroup, ItemManipulationCallback, MenuItem, Plugin, SetConfigItem, Settings, SettingsProps } from '../../typings'; | ||
import GridLayout from '../GridLayout/GridLayout'; | ||
import type { OverlayControlItem, PreparedCopyItemOptions } from '../OverlayControls/OverlayControls'; | ||
import type { Config, ConfigItem, ConfigLayout, GlobalParams, ItemDropProps, ItemsStateAndParams } from "../../shared/index.js"; | ||
import type { AddNewItemOptions, ContextProps, DashKitGroup, ItemManipulationCallback, MenuItem, Plugin, SetConfigItem, Settings, SettingsProps } from "../../typings/index.js"; | ||
import GridLayout from "../GridLayout/GridLayout.js"; | ||
import type { OverlayControlItem, PreparedCopyItemOptions } from "../OverlayControls/OverlayControls.js"; | ||
interface DashKitGeneralProps { | ||
@@ -50,3 +50,3 @@ config: Config; | ||
static defaultProps: DashKitDefaultProps; | ||
static contextType: React.Context<void | import("../../context").DashKitDnDCtxShape>; | ||
static contextType: React.Context<void | import("../../context/index.js").DashKitDnDCtxShape>; | ||
static registerPlugins(...plugins: Plugin[]): void; | ||
@@ -53,0 +53,0 @@ static reloadPlugins(...plugins: Plugin[]): void; |
import React from 'react'; | ||
import noop from 'lodash/noop'; | ||
import pick from 'lodash/pick'; | ||
import { DEFAULT_GROUP, DEFAULT_NAMESPACE } from '../../constants'; | ||
import { DashKitDnDContext } from '../../context'; | ||
import { RegisterManager, UpdateManager, reflowLayout } from '../../utils'; | ||
import { DashKitDnDWrapper } from '../DashKitDnDWrapper/DashKitDnDWrapper'; | ||
import DashKitView from '../DashKitView/DashKitView'; | ||
import noop from "lodash/noop.js"; | ||
import pick from "lodash/pick.js"; | ||
import { DEFAULT_GROUP, DEFAULT_NAMESPACE } from "../../constants/index.js"; | ||
import { DashKitDnDContext } from "../../context/index.js"; | ||
import { RegisterManager, UpdateManager, reflowLayout } from "../../utils/index.js"; | ||
import { DashKitDnDWrapper } from "../DashKitDnDWrapper/DashKitDnDWrapper.js"; | ||
import DashKitView from "../DashKitView/DashKitView.js"; | ||
const registerManager = new RegisterManager(); | ||
@@ -111,1 +111,2 @@ const getReflowProps = (props) => Object.assign({ compactType: 'vertical', cols: 36 }, pick(props, 'cols', 'maxRows', 'compactType')); | ||
DashKit.contextType = DashKitDnDContext; | ||
//# sourceMappingURL=DashKit.js.map |
@@ -1,1 +0,1 @@ | ||
export * from './DashKit'; | ||
export * from "./DashKit.js"; |
@@ -1,1 +0,2 @@ | ||
export * from './DashKit'; | ||
export * from "./DashKit.js"; | ||
//# sourceMappingURL=index.js.map |
import React from 'react'; | ||
import type { DraggedOverItem, ItemDragProps } from '../../shared'; | ||
import type { DraggedOverItem, ItemDragProps } from "../../shared/index.js"; | ||
type DashKitDnDWrapperProps = { | ||
@@ -4,0 +4,0 @@ dragImageSrc?: string; |
import React from 'react'; | ||
import { DashKitDnDContext } from '../../context'; | ||
import { DashKitDnDContext } from "../../context/index.js"; | ||
const defaultImageSrc = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='; | ||
@@ -32,1 +32,2 @@ export const DashKitDnDWrapper = (props) => { | ||
}; | ||
//# sourceMappingURL=DashKitDnDWrapper.js.map |
import React from 'react'; | ||
import type { RegisterManager } from '../../utils'; | ||
import type { DashKitProps } from '../DashKit'; | ||
import './DashKitView.css'; | ||
import type { RegisterManager } from "../../utils/index.js"; | ||
import type { DashKitProps } from "../DashKit/index.js"; | ||
import "./DashKitView.css"; | ||
declare const DashKitViewForwardedMeta: React.ForwardRefExoticComponent<DashKitProps & { | ||
@@ -6,0 +6,0 @@ registerManager: RegisterManager; |
import React from 'react'; | ||
import { DashKitContext } from '../../context'; | ||
import { withContext } from '../../hocs/withContext'; | ||
import { useCalcPropsLayout } from '../../hooks/useCalcLayout'; | ||
import { cn } from '../../utils/cn'; | ||
import GridLayout from '../GridLayout/GridLayout'; | ||
import MobileLayout from '../MobileLayout/MobileLayout'; | ||
import './DashKitView.css'; | ||
import { DashKitContext } from "../../context/index.js"; | ||
import { withContext } from "../../hocs/withContext.js"; | ||
import { useCalcPropsLayout } from "../../hooks/useCalcLayout.js"; | ||
import { cn } from "../../utils/cn.js"; | ||
import GridLayout from "../GridLayout/GridLayout.js"; | ||
import MobileLayout from "../MobileLayout/MobileLayout.js"; | ||
import "./DashKitView.css"; | ||
const b = cn('dashkit'); | ||
@@ -22,1 +22,2 @@ function DashKitView() { | ||
export default DashKitViewForwardedMeta; | ||
//# sourceMappingURL=DashKitView.js.map |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { FOCUSED_CLASS_NAME } from '../../constants'; | ||
import { DashKitContext } from '../../context'; | ||
import { cn } from '../../utils/cn'; | ||
import Item from '../Item/Item'; | ||
import OverlayControls from '../OverlayControls/OverlayControls'; | ||
import './GridItem.css'; | ||
import { FOCUSED_CLASS_NAME } from "../../constants/index.js"; | ||
import { DashKitContext } from "../../context/index.js"; | ||
import { cn } from "../../utils/cn.js"; | ||
import Item from "../Item/Item.js"; | ||
import OverlayControls from "../OverlayControls/OverlayControls.js"; | ||
import "./GridItem.css"; | ||
const b = cn('dashkit-grid-item'); | ||
@@ -174,1 +174,2 @@ class WindowFocusObserver { | ||
export default GridItemForwarderRef; | ||
//# sourceMappingURL=GridItem.js.map |
export default class GridLayout extends React.PureComponent<any, any, any> { | ||
static contextType: React.Context<import("../../context").DashKitCtxShape>; | ||
static contextType: React.Context<import("../../context/index.js").DashKitCtxShape>; | ||
constructor(props: any, context: any); | ||
@@ -4,0 +4,0 @@ pluginsRefs: any[]; |
import React from 'react'; | ||
import { COMPACT_TYPE_HORIZONTAL_NOWRAP, DEFAULT_GROUP, DRAGGABLE_CANCEL_CLASS_NAME, TEMPORARY_ITEM_ID, } from '../../constants'; | ||
import { DashKitContext } from '../../context'; | ||
import { resolveLayoutGroup } from '../../utils'; | ||
import GridItem from '../GridItem/GridItem'; | ||
import { Layout } from './ReactGridLayout'; | ||
import { COMPACT_TYPE_HORIZONTAL_NOWRAP, DEFAULT_GROUP, DRAGGABLE_CANCEL_CLASS_NAME, TEMPORARY_ITEM_ID, } from "../../constants/index.js"; | ||
import { DashKitContext } from "../../context/index.js"; | ||
import { resolveLayoutGroup } from "../../utils/index.js"; | ||
import GridItem from "../GridItem/GridItem.js"; | ||
import { Layout } from "./ReactGridLayout.js"; | ||
class GridLayout extends React.PureComponent { | ||
@@ -520,1 +520,2 @@ constructor(props, context) { | ||
export default GridLayout; | ||
//# sourceMappingURL=GridLayout.js.map |
import React from 'react'; | ||
import ReactGridLayout, { WidthProvider, utils } from 'react-grid-layout'; | ||
import { DROPPING_ELEMENT_CLASS_NAME, OVERLAY_CLASS_NAME } from '../../constants'; | ||
import { DROPPING_ELEMENT_CLASS_NAME, OVERLAY_CLASS_NAME } from "../../constants/index.js"; | ||
class DragOverLayout extends ReactGridLayout { | ||
@@ -195,1 +195,2 @@ constructor(...args) { | ||
export const Layout = WidthProvider(DragOverLayout); | ||
//# sourceMappingURL=ReactGridLayout.js.map |
@@ -1,5 +0,5 @@ | ||
export * from './DashKit'; | ||
export type { OverlayControlItem, PreparedCopyItemOptions } from './OverlayControls/OverlayControls'; | ||
export * from './ActionPanel/ActionPanel'; | ||
export type { ActionPanelItem, ActionPanelProps } from './ActionPanel/types'; | ||
export * from './DashKitDnDWrapper/DashKitDnDWrapper'; | ||
export * from "./DashKit/index.js"; | ||
export type { OverlayControlItem, PreparedCopyItemOptions } from "./OverlayControls/OverlayControls.js"; | ||
export * from "./ActionPanel/ActionPanel.js"; | ||
export type { ActionPanelItem, ActionPanelProps } from "./ActionPanel/types.js"; | ||
export * from "./DashKitDnDWrapper/DashKitDnDWrapper.js"; |
@@ -1,3 +0,4 @@ | ||
export * from './DashKit'; | ||
export * from './ActionPanel/ActionPanel'; | ||
export * from './DashKitDnDWrapper/DashKitDnDWrapper'; | ||
export * from "./DashKit/index.js"; | ||
export * from "./ActionPanel/ActionPanel.js"; | ||
export * from "./DashKitDnDWrapper/DashKitDnDWrapper.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -69,3 +69,3 @@ declare const _default: { | ||
}; | ||
contextType: React.Context<import("../../context").DashKitCtxShape>; | ||
contextType: React.Context<import("../../context/index.js").DashKitCtxShape>; | ||
}; | ||
@@ -72,0 +72,0 @@ export default _default; |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { prepareItem } from '../../hocs/prepareItem'; | ||
import { cn } from '../../utils/cn'; | ||
import './Item.css'; | ||
import { prepareItem } from "../../hocs/prepareItem.js"; | ||
import { cn } from "../../utils/cn.js"; | ||
import "./Item.css"; | ||
const b = cn('dashkit-item'); | ||
@@ -70,1 +70,2 @@ // TODO: getDerivedStateFromError и заглушка с ошибкой | ||
export default prepareItem(Item); | ||
//# sourceMappingURL=Item.js.map |
@@ -1,3 +0,3 @@ | ||
import type { ConfigItem, ConfigLayout } from '../../shared'; | ||
import { DashKitProps } from '../DashKit'; | ||
export declare const getSortedConfigItems: (config: DashKitProps['config'], hasOrderId: boolean) => (ConfigItem & ConfigLayout)[]; | ||
import type { ConfigItem, ConfigLayout } from "../../shared/index.js"; | ||
import { DashKitProps } from "../DashKit/index.js"; | ||
export declare const getSortedConfigItems: (config: DashKitProps["config"], hasOrderId: boolean) => (ConfigItem & ConfigLayout)[]; |
@@ -29,1 +29,2 @@ const sortByOrderComparator = (prev, next, fieldName) => { | ||
}; | ||
//# sourceMappingURL=helpers.js.map |
import React from 'react'; | ||
import { DashKitContext } from '../../context'; | ||
import { getSortedConfigItems } from './helpers'; | ||
import './MobileLayout.css'; | ||
import { DashKitContext } from "../../context/index.js"; | ||
import { getSortedConfigItems } from "./helpers.js"; | ||
import "./MobileLayout.css"; | ||
type MobileLayoutProps = {}; | ||
@@ -11,7 +11,7 @@ type MobileLayoutState = { | ||
export default class MobileLayout extends React.PureComponent<MobileLayoutProps, MobileLayoutState> { | ||
static contextType: React.Context<import("../../context").DashKitCtxShape>; | ||
static contextType: React.Context<import("../../context/index.js").DashKitCtxShape>; | ||
context: React.ContextType<typeof DashKitContext>; | ||
pluginsRefs: PlugibRefObject[]; | ||
sortedLayoutItems: Record<string, ReturnType<typeof getSortedConfigItems>> | null; | ||
_memoLayout: import("../..").ConfigLayout[]; | ||
_memoLayout: import("../../index.js").ConfigLayout[]; | ||
_memoForwardedPluginRef: Array<(refObject: PlugibRefObject) => void>; | ||
@@ -23,3 +23,3 @@ _memoAdjustWidgetLayout: Record<string, (props: { | ||
render(): JSX.Element; | ||
getSortedLayoutItems(): Record<string, (import("../..").ConfigItem & import("../..").ConfigLayout)[]>; | ||
getSortedLayoutItems(): Record<string, (import("../../index.js").ConfigItem & import("../../index.js").ConfigLayout)[]>; | ||
getMemoForwardRefCallback(refIndex: number): (refObject: PlugibRefObject) => void; | ||
@@ -26,0 +26,0 @@ adjustWidgetLayout(id: string, { needSetDefault }: { |
import React from 'react'; | ||
import groupBy from 'lodash/groupBy'; | ||
import { DEFAULT_GROUP } from '../../constants'; | ||
import { DashKitContext } from '../../context'; | ||
import { cn } from '../../utils/cn'; | ||
import Item from '../Item/Item'; | ||
import { getSortedConfigItems } from './helpers'; | ||
import './MobileLayout.css'; | ||
import groupBy from "lodash/groupBy.js"; | ||
import { DEFAULT_GROUP } from "../../constants/index.js"; | ||
import { DashKitContext } from "../../context/index.js"; | ||
import { cn } from "../../utils/cn.js"; | ||
import Item from "../Item/Item.js"; | ||
import { getSortedConfigItems } from "./helpers.js"; | ||
import "./MobileLayout.css"; | ||
const b = cn('dashkit-mobile-layout'); | ||
@@ -89,1 +89,2 @@ class MobileLayout extends React.PureComponent { | ||
export default MobileLayout; | ||
//# sourceMappingURL=MobileLayout.js.map |
import React from 'react'; | ||
import { ButtonSize, ButtonView, IconProps, MenuItemProps } from '@gravity-ui/uikit'; | ||
import { OverlayControlsCtxShape } from '../../context'; | ||
import { type ConfigItem, type ItemParams, type ItemState, type PluginBase } from '../../shared'; | ||
import './OverlayControls.css'; | ||
import { OverlayControlsCtxShape } from "../../context/index.js"; | ||
import { type ConfigItem, type ItemParams, type ItemState, type PluginBase } from "../../shared/index.js"; | ||
import "./OverlayControls.css"; | ||
export declare enum OverlayControlsPosition { | ||
@@ -26,3 +26,3 @@ TopRight = "top_right", | ||
title?: string; | ||
icon?: MenuItemProps['icon']; | ||
icon?: MenuItemProps['iconStart']; | ||
iconSize?: number | string; | ||
@@ -29,0 +29,0 @@ handler?: (item: ConfigItem, params: ItemParams, state: ItemState) => void; |
import React from 'react'; | ||
import { Ellipsis, Gear, Xmark } from '@gravity-ui/icons'; | ||
import { Button, DropdownMenu, Icon, } from '@gravity-ui/uikit'; | ||
import noop from 'lodash/noop'; | ||
import { COPIED_WIDGET_STORE_KEY, DRAGGABLE_CANCEL_CLASS_NAME, MenuItems, OVERLAY_CONTROLS_CLASS_NAME, OVERLAY_ICON_SIZE, } from '../../constants'; | ||
import { DashkitOvelayControlsContext } from '../../context'; | ||
import { i18n } from '../../i18n'; | ||
import { isItemWithTabs, resolveItemInnerId, } from '../../shared'; | ||
import { cn } from '../../utils/cn'; | ||
import './OverlayControls.css'; | ||
import noop from "lodash/noop.js"; | ||
import { COPIED_WIDGET_STORE_KEY, DRAGGABLE_CANCEL_CLASS_NAME, MenuItems, OVERLAY_CONTROLS_CLASS_NAME, OVERLAY_ICON_SIZE, } from "../../constants/index.js"; | ||
import { DashkitOvelayControlsContext } from "../../context/index.js"; | ||
import { i18n } from "../../i18n/index.js"; | ||
import { isItemWithTabs, resolveItemInnerId, } from "../../shared/index.js"; | ||
import { cn } from "../../utils/cn.js"; | ||
import "./OverlayControls.css"; | ||
const b = cn(OVERLAY_CONTROLS_CLASS_NAME); | ||
@@ -230,3 +230,3 @@ export var OverlayControlsPosition; | ||
text: item.title || i18n(item.id), | ||
icon: item.icon, | ||
iconStart: item.icon, | ||
action: itemAction, | ||
@@ -243,3 +243,3 @@ className: item.className, | ||
React.createElement(Icon, { data: Ellipsis, size: OVERLAY_ICON_SIZE }))), popupProps: { | ||
contentClassName: DRAGGABLE_CANCEL_CLASS_NAME, | ||
className: DRAGGABLE_CANCEL_CLASS_NAME, | ||
} })); | ||
@@ -278,1 +278,2 @@ } | ||
export default OverlayControls; | ||
//# sourceMappingURL=OverlayControls.js.map |
@@ -20,1 +20,2 @@ export const COPIED_WIDGET_STORE_KEY = 'dashCopiedItem'; | ||
export const DROPPING_ELEMENT_CLASS_NAME = 'dropping'; | ||
//# sourceMappingURL=common.js.map |
@@ -1,1 +0,1 @@ | ||
export * from './common'; | ||
export * from "./common.js"; |
@@ -1,1 +0,2 @@ | ||
export * from './common'; | ||
export * from "./common.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,6 +0,5 @@ | ||
/// <reference types="react-grid-layout" /> | ||
import React from 'react'; | ||
import type { RegisterManager } from '..//utils'; | ||
import type { DashKitProps } from '../components/DashKit'; | ||
import type { ConfigItem, ConfigLayout, ItemParams, ItemState, ItemStateAndParams, ItemStateAndParamsChangeOptions } from '../shared'; | ||
import type { RegisterManager } from "../utils/index.js"; | ||
import type { DashKitProps } from "../components/DashKit/index.js"; | ||
import type { ConfigItem, ConfigLayout, ItemParams, ItemState, ItemStateAndParams, ItemStateAndParamsChangeOptions } from "../shared/index.js"; | ||
type DashkitPropsPassedToCtx = Pick<DashKitProps, 'config' | 'groups' | 'context' | 'noOverlay' | 'focusable' | 'globalParams' | 'editMode' | 'settings' | 'onItemMountChange' | 'onItemRender' | 'draggableHandleClassName' | 'onDragStart' | 'onDrag' | 'onDragStop' | 'onResizeStart' | 'onResize' | 'onResizeStop'>; | ||
@@ -7,0 +6,0 @@ type PluginType = string; |
import React from 'react'; | ||
const DashKitContext = React.createContext({}); | ||
export { DashKitContext }; | ||
//# sourceMappingURL=DashKitContext.js.map |
import React from 'react'; | ||
import type { DraggedOverItem, ItemDragProps } from '../shared/types'; | ||
import type { DraggedOverItem, ItemDragProps } from "../shared/types/index.js"; | ||
export type DashKitDnDCtxShape = { | ||
@@ -4,0 +4,0 @@ dragProps: ItemDragProps | null; |
import React from 'react'; | ||
export const DashKitDnDContext = React.createContext(undefined); | ||
//# sourceMappingURL=DashKitDnDContext.js.map |
import React from 'react'; | ||
import type { DashKitProps } from '../components'; | ||
import type { ConfigLayout, ItemParams, ItemState } from '../shared'; | ||
import type { MenuItem } from '../typings'; | ||
import type { DashKitProps } from "../components/index.js"; | ||
import type { ConfigLayout, ItemParams, ItemState } from "../shared/index.js"; | ||
import type { MenuItem } from "../typings/index.js"; | ||
export type OverlayControlsCtxShape = Pick<DashKitProps, 'context' | 'overlayControls' | 'itemsStateAndParams' | 'getPreparedCopyItemOptions' | 'onCopyFulfill'> & { | ||
@@ -6,0 +6,0 @@ menu: DashKitProps['overlayMenuItems'] | MenuItem[]; |
import React from 'react'; | ||
export const DashkitOvelayControlsContext = React.createContext(undefined); | ||
//# sourceMappingURL=DashkitOverlayControlsContext.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './DashKitContext'; | ||
export * from './DashkitOverlayControlsContext'; | ||
export * from './DashKitDnDContext'; | ||
export * from "./DashKitContext.js"; | ||
export * from "./DashkitOverlayControlsContext.js"; | ||
export * from "./DashKitDnDContext.js"; |
@@ -1,3 +0,4 @@ | ||
export * from './DashKitContext'; | ||
export * from './DashkitOverlayControlsContext'; | ||
export * from './DashKitDnDContext'; | ||
export * from "./DashKitContext.js"; | ||
export * from "./DashkitOverlayControlsContext.js"; | ||
export * from "./DashKitDnDContext.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './utils'; | ||
export * from './constants'; | ||
export * from './shared'; | ||
export * from "./utils/index.js"; | ||
export * from "./constants/index.js"; | ||
export * from "./shared/index.js"; |
@@ -1,3 +0,4 @@ | ||
export * from './utils'; | ||
export * from './constants'; | ||
export * from './shared'; | ||
export * from "./utils/index.js"; | ||
export * from "./constants/index.js"; | ||
export * from "./shared/index.js"; | ||
//# sourceMappingURL=helpers.js.map |
@@ -69,5 +69,5 @@ export function prepareItem(Component: any): { | ||
}; | ||
contextType: React.Context<import("../context").DashKitCtxShape>; | ||
contextType: React.Context<import("../context/index.js").DashKitCtxShape>; | ||
}; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; |
import React from 'react'; | ||
import isEqual from 'lodash/isEqual'; | ||
import isEqual from "lodash/isEqual.js"; | ||
import PropTypes from 'prop-types'; | ||
import { DashKitContext } from '../context'; | ||
import { DashKitContext } from "../context/index.js"; | ||
export function prepareItem(Component) { | ||
@@ -85,1 +85,2 @@ var _a; | ||
} | ||
//# sourceMappingURL=prepareItem.js.map |
import { __rest } from "tslib"; | ||
import React from 'react'; | ||
import isEqual from 'lodash/isEqual'; | ||
import pick from 'lodash/pick'; | ||
import { COMPACT_TYPE_HORIZONTAL_NOWRAP, DEFAULT_GROUP, DEFAULT_WIDGET_HEIGHT, DEFAULT_WIDGET_WIDTH, TEMPORARY_ITEM_ID, } from '../constants/common'; | ||
import { DashKitContext, DashKitDnDContext, DashkitOvelayControlsContext } from '../context'; | ||
import { useDeepEqualMemo } from '../hooks/useDeepEqualMemo'; | ||
import { getItemsParams, getItemsState } from '../shared'; | ||
import { UpdateManager, resolveLayoutGroup } from '../utils'; | ||
import isEqual from "lodash/isEqual.js"; | ||
import pick from "lodash/pick.js"; | ||
import { COMPACT_TYPE_HORIZONTAL_NOWRAP, DEFAULT_GROUP, DEFAULT_WIDGET_HEIGHT, DEFAULT_WIDGET_WIDTH, TEMPORARY_ITEM_ID, } from "../constants/common.js"; | ||
import { DashKitContext, DashKitDnDContext, DashkitOvelayControlsContext } from "../context/index.js"; | ||
import { useDeepEqualMemo } from "../hooks/useDeepEqualMemo.js"; | ||
import { getItemsParams, getItemsState } from "../shared/index.js"; | ||
import { UpdateManager, resolveLayoutGroup } from "../utils/index.js"; | ||
const ITEM_PROPS = ['i', 'h', 'w', 'x', 'y', 'parent']; | ||
@@ -427,1 +427,2 @@ function useMemoStateContext(props) { | ||
} | ||
//# sourceMappingURL=withContext.js.map |
@@ -1,3 +0,3 @@ | ||
import type { Config } from '../shared'; | ||
import { RegisterManager } from '../utils'; | ||
import type { Config } from "../shared/index.js"; | ||
import { RegisterManager } from "../utils/index.js"; | ||
export declare const useCalcPropsLayout: (config: Config, registerManager: RegisterManager) => { | ||
@@ -9,7 +9,7 @@ i: string; | ||
y: number; | ||
parent?: string | undefined; | ||
minW?: number | undefined; | ||
minH?: number | undefined; | ||
parent?: string; | ||
minW?: number; | ||
minH?: number; | ||
maxW?: number | undefined; | ||
maxH?: number | undefined; | ||
}[]; |
import React from 'react'; | ||
import isEqual from 'lodash/isEqual'; | ||
import isEqual from "lodash/isEqual.js"; | ||
function onUpdatePropsConfig(config, registerManager) { | ||
@@ -27,1 +27,2 @@ return config.layout.map((itemLayout, i) => { | ||
// }; | ||
//# sourceMappingURL=useCalcLayout.js.map |
import React from 'react'; | ||
import isEqual from 'lodash/isEqual'; | ||
import isEqual from "lodash/isEqual.js"; | ||
export const useDeepEqualMemo = (predicate, deps) => { | ||
@@ -13,1 +13,2 @@ const previousValueRef = React.useRef({}); | ||
}; | ||
//# sourceMappingURL=useDeepEqualMemo.js.map |
import React from 'react'; | ||
import { ActionPanelItem } from '../components'; | ||
import { ActionPanelItem } from "../components/index.js"; | ||
type DndProps = null | { | ||
@@ -4,0 +4,0 @@ draggable: true; |
import React from 'react'; | ||
import { DashKitDnDContext } from '../context'; | ||
import { DashKitDnDContext } from "../context/index.js"; | ||
export const useDnDItemProps = (item) => { | ||
@@ -26,1 +26,2 @@ const dragContext = React.useContext(DashKitDnDContext); | ||
}; | ||
//# sourceMappingURL=useDnDItemProps.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const i18n: ((key: "button_retry" | "label_render-markdown-error" | "label_settings" | "label_copy" | "label_delete" | "label_error", params?: import("@gravity-ui/i18n").Params | undefined) => string) & { | ||
export declare const i18n: ((key: "button_retry" | "label_render-markdown-error" | "label_settings" | "label_copy" | "label_delete" | "label_error", params?: import("@gravity-ui/i18n").Params) => string) & { | ||
keysetData: { | ||
@@ -3,0 +3,0 @@ dashkit: Record<"button_retry" | "label_render-markdown-error" | "label_settings" | "label_copy" | "label_delete" | "label_error", import("@gravity-ui/i18n").KeyData>; |
import { addComponentKeysets } from '@gravity-ui/uikit/i18n'; | ||
import en from './en.json'; | ||
import ru from './ru.json'; | ||
import en from "./en.json"; | ||
import ru from "./ru.json"; | ||
export const i18n = addComponentKeysets({ en, ru }, 'dashkit'); | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,4 @@ | ||
export * from './components'; | ||
export * from './plugins'; | ||
export * from './shared/types'; | ||
export * from './typings'; | ||
export * from "./components/index.js"; | ||
export * from "./plugins/index.js"; | ||
export * from "./shared/types/index.js"; | ||
export * from "./typings/index.js"; |
@@ -1,4 +0,5 @@ | ||
export * from './components'; | ||
export * from './plugins'; | ||
export * from './shared/types'; | ||
export * from './typings'; | ||
export * from "./components/index.js"; | ||
export * from "./plugins/index.js"; | ||
export * from "./shared/types/index.js"; | ||
export * from "./typings/index.js"; | ||
//# sourceMappingURL=index.js.map |
export const PLUGIN_ROOT_ATTR_NAME = 'data-plugin-root-el'; | ||
//# sourceMappingURL=constants.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './Text'; | ||
export * from './Title'; | ||
export * from './constants'; | ||
export * from "./Text/index.js"; | ||
export * from "./Title/index.js"; | ||
export * from "./constants.js"; |
@@ -1,3 +0,4 @@ | ||
export * from './Text'; | ||
export * from './Title'; | ||
export * from './constants'; | ||
export * from "./Text/index.js"; | ||
export * from "./Title/index.js"; | ||
export * from "./constants.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
export * from './Text'; | ||
export { default as pluginText } from './Text'; | ||
export * from "./Text.js"; | ||
export { default as pluginText } from "./Text.js"; |
@@ -1,2 +0,3 @@ | ||
export * from './Text'; | ||
export { default as pluginText } from './Text'; | ||
export * from "./Text.js"; | ||
export { default as pluginText } from "./Text.js"; | ||
//# sourceMappingURL=index.js.map |
import React from 'react'; | ||
import { Plugin, PluginWidgetProps } from '../../typings'; | ||
import './Text.css'; | ||
import { Plugin, PluginWidgetProps } from "../../typings/index.js"; | ||
import "./Text.css"; | ||
declare enum LoadStatus { | ||
@@ -5,0 +5,0 @@ Pending = "pending", |
import React from 'react'; | ||
import { Button, Loader } from '@gravity-ui/uikit'; | ||
import { i18n } from '../../i18n'; | ||
import { cn } from '../../utils/cn'; | ||
import { PLUGIN_ROOT_ATTR_NAME } from '../constants'; | ||
import './Text.css'; | ||
import { i18n } from "../../i18n/index.js"; | ||
import { cn } from "../../utils/cn.js"; | ||
import { PLUGIN_ROOT_ATTR_NAME } from "../constants.js"; | ||
import "./Text.css"; | ||
// need to set markdown styles separately | ||
@@ -120,1 +120,2 @@ // for instance can use yfm-transform | ||
export default plugin; | ||
//# sourceMappingURL=Text.js.map |
@@ -1,3 +0,3 @@ | ||
import { PluginTitleSize, TitleFontParams } from './types'; | ||
import { PluginTitleSize, TitleFontParams } from "./types.js"; | ||
export declare const TITLE_DEFAULT_SIZES: Record<PluginTitleSize, TitleFontParams>; | ||
export declare const RECCOMMENDED_LINE_HEIGHT_MULTIPLIER = 1.1; |
@@ -24,1 +24,2 @@ export const TITLE_DEFAULT_SIZES = { | ||
export const RECCOMMENDED_LINE_HEIGHT_MULTIPLIER = 1.1; | ||
//# sourceMappingURL=constants.js.map |
@@ -1,4 +0,4 @@ | ||
export * from './Title'; | ||
export { default as pluginTitle } from './Title'; | ||
export { PluginTitleSize, TitleFontParams } from './types'; | ||
export * from './constants'; | ||
export * from "./Title.js"; | ||
export { default as pluginTitle } from "./Title.js"; | ||
export { PluginTitleSize, TitleFontParams } from "./types.js"; | ||
export * from "./constants.js"; |
@@ -1,3 +0,4 @@ | ||
export * from './Title'; | ||
export { default as pluginTitle } from './Title'; | ||
export * from './constants'; | ||
export * from "./Title.js"; | ||
export { default as pluginTitle } from "./Title.js"; | ||
export * from "./constants.js"; | ||
//# sourceMappingURL=index.js.map |
import React from 'react'; | ||
import { Plugin, PluginWidgetProps } from '../../typings'; | ||
import type { PluginTitleSize, TitleFontParams } from './types'; | ||
import './Title.css'; | ||
import { Plugin, PluginWidgetProps } from "../../typings/index.js"; | ||
import type { PluginTitleSize, TitleFontParams } from "./types.js"; | ||
import "./Title.css"; | ||
export interface PluginTitleProps extends PluginWidgetProps { | ||
@@ -6,0 +6,0 @@ data: { |
import React from 'react'; | ||
import { cn } from '../../utils/cn'; | ||
import { PLUGIN_ROOT_ATTR_NAME } from '../constants'; | ||
import { RECCOMMENDED_LINE_HEIGHT_MULTIPLIER } from './constants'; | ||
import { isCustomSize } from './utils'; | ||
import './Title.css'; | ||
import { cn } from "../../utils/cn.js"; | ||
import { PLUGIN_ROOT_ATTR_NAME } from "../constants.js"; | ||
import { RECCOMMENDED_LINE_HEIGHT_MULTIPLIER } from "./constants.js"; | ||
import { isCustomSize } from "./utils.js"; | ||
import "./Title.css"; | ||
const b = cn('dashkit-plugin-title'); | ||
@@ -32,1 +32,2 @@ export class PluginTitle extends React.Component { | ||
export default plugin; | ||
//# sourceMappingURL=Title.js.map |
export {}; | ||
//# sourceMappingURL=types.js.map |
@@ -1,2 +0,2 @@ | ||
import type { PluginTitleSize, TitleFontParams } from './types'; | ||
import type { PluginTitleSize, TitleFontParams } from "./types.js"; | ||
export declare function isCustomSize(size: PluginTitleSize | TitleFontParams): size is TitleFontParams; |
export function isCustomSize(size) { | ||
return typeof size === 'object'; | ||
} | ||
//# sourceMappingURL=utils.js.map |
@@ -5,1 +5,2 @@ export const CURRENT_VERSION = 2; | ||
export const TERMORARY_ITEM_ID = '__dropping-elem__'; | ||
//# sourceMappingURL=common.js.map |
@@ -1,1 +0,1 @@ | ||
export * from './common'; | ||
export * from "./common.js"; |
@@ -1,1 +0,2 @@ | ||
export * from './common'; | ||
export * from "./common.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,4 @@ | ||
export * from './constants'; | ||
export * from './types'; | ||
export * from './modules'; | ||
export * from './units'; | ||
export * from "./constants/index.js"; | ||
export * from "./types/index.js"; | ||
export * from "./modules/index.js"; | ||
export * from "./units/index.js"; |
@@ -1,4 +0,5 @@ | ||
export * from './constants'; | ||
export * from './types'; | ||
export * from './modules'; | ||
export * from './units'; | ||
export * from "./constants/index.js"; | ||
export * from "./types/index.js"; | ||
export * from "./modules/index.js"; | ||
export * from "./units/index.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
import { ACTION_PARAM_PREFIX, META_KEY } from '../../constants'; | ||
import { addGroupToQueue, addToQueue, formQueueData, hasActionParams, pickExceptActionParamsFromParams, transformParamsToActionParams, } from '../helpers'; | ||
import { ACTION_PARAM_PREFIX, META_KEY } from "../../constants/index.js"; | ||
import { addGroupToQueue, addToQueue, formQueueData, hasActionParams, pickExceptActionParamsFromParams, transformParamsToActionParams, } from "../helpers.js"; | ||
const DEFAULT_CONTROL_ID = 'controlId'; | ||
@@ -503,1 +503,2 @@ const DEFAULT_CONTROL_ID_2 = 'controlId2'; | ||
}); | ||
//# sourceMappingURL=helpers.test.js.map |
import Hashids from 'hashids'; | ||
import { extractIdsFromConfig, generateUniqId } from '../uniq-id'; | ||
import { extractIdsFromConfig, generateUniqId } from "../uniq-id.js"; | ||
const salt = 'salt'; | ||
@@ -75,1 +75,2 @@ const hashids = new Hashids(salt); | ||
}); | ||
//# sourceMappingURL=uniq-id.test.js.map |
@@ -1,2 +0,2 @@ | ||
import { Config, ConfigAliases, ConfigConnection, ConfigItem, ConfigItemGroup, ConfigItemWithGroup, ConfigItemWithTabs, ItemStateAndParams, ItemsStateAndParams, PluginBase, StateAndParamsMetaData, StringParams } from '../types'; | ||
import { Config, ConfigAliases, ConfigConnection, ConfigItem, ConfigItemGroup, ConfigItemWithGroup, ConfigItemWithTabs, ItemStateAndParams, ItemsStateAndParams, PluginBase, StateAndParamsMetaData, StringParams } from "../types/index.js"; | ||
export declare function prerenderItems({ items, plugins, }: { | ||
@@ -3,0 +3,0 @@ items: ConfigItem[]; |
@@ -1,7 +0,7 @@ | ||
import get from 'lodash/get'; | ||
import invert from 'lodash/invert'; | ||
import isEmpty from 'lodash/isEmpty'; | ||
import keyBy from 'lodash/keyBy'; | ||
import pick from 'lodash/pick'; | ||
import { ACTION_PARAM_PREFIX, CURRENT_VERSION, META_KEY } from '../constants'; | ||
import get from "lodash/get.js"; | ||
import invert from "lodash/invert.js"; | ||
import isEmpty from "lodash/isEmpty.js"; | ||
import keyBy from "lodash/keyBy.js"; | ||
import pick from "lodash/pick.js"; | ||
import { ACTION_PARAM_PREFIX, CURRENT_VERSION, META_KEY } from "../constants/index.js"; | ||
function getNormalizedPlugins(plugins) { | ||
@@ -301,1 +301,2 @@ return keyBy(plugins, 'type'); | ||
} | ||
//# sourceMappingURL=helpers.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './helpers'; | ||
export * from './state-and-params'; | ||
export * from './uniq-id'; | ||
export * from "./helpers.js"; | ||
export * from "./state-and-params.js"; | ||
export * from "./uniq-id.js"; |
@@ -1,3 +0,4 @@ | ||
export * from './helpers'; | ||
export * from './state-and-params'; | ||
export * from './uniq-id'; | ||
export * from "./helpers.js"; | ||
export * from "./state-and-params.js"; | ||
export * from "./uniq-id.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import { Config, GlobalParams, ItemState, ItemsStateAndParams, PluginBase, StringParams } from '../types'; | ||
import { Config, GlobalParams, ItemState, ItemsStateAndParams, PluginBase, StringParams } from "../types/index.js"; | ||
export interface GetItemsParamsArg { | ||
@@ -3,0 +3,0 @@ defaultGlobalParams: GlobalParams; |
@@ -1,4 +0,4 @@ | ||
import groupBy from 'lodash/groupBy'; | ||
import { META_KEY } from '../constants'; | ||
import { formQueueData, getCurrentVersion, getMapItemsIgnores, hasActionParam, isItemWithGroup, isItemWithTabs, mergeParamsWithAliases, pickActionParamsFromParams, pickExceptActionParamsFromParams, prerenderItems, resolveItemInnerId, } from './helpers'; | ||
import groupBy from "lodash/groupBy.js"; | ||
import { META_KEY } from "../constants/index.js"; | ||
import { formQueueData, getCurrentVersion, getMapItemsIgnores, hasActionParam, isItemWithGroup, isItemWithTabs, mergeParamsWithAliases, pickActionParamsFromParams, pickExceptActionParamsFromParams, prerenderItems, resolveItemInnerId, } from "./helpers.js"; | ||
const getParamsFromStateAndParams = ({ itemsStateAndParams, parentItemId, item, }) => { | ||
@@ -152,1 +152,2 @@ const widgetId = parentItemId || item.id; | ||
} | ||
//# sourceMappingURL=state-and-params.js.map |
@@ -1,2 +0,2 @@ | ||
import type { Config } from '../types'; | ||
import type { Config } from "../types/index.js"; | ||
export declare function extractIdsFromConfig(config: Config): string[]; | ||
@@ -3,0 +3,0 @@ type GenerateUniqIdArgs = { |
import Hashids from 'hashids'; | ||
import { isItemWithGroup, isItemWithTabs } from './helpers'; | ||
import { isItemWithGroup, isItemWithTabs } from "./helpers.js"; | ||
export function extractIdsFromConfig(config) { | ||
@@ -34,1 +34,2 @@ const ids = []; | ||
} | ||
//# sourceMappingURL=uniq-id.js.map |
@@ -1,2 +0,2 @@ | ||
import { ConfigLayout } from './config'; | ||
import { ConfigLayout } from "./config.js"; | ||
export type Dictionary<T = unknown> = Record<string, T>; | ||
@@ -3,0 +3,0 @@ export interface StringParams extends Dictionary<string | string[]> { |
export {}; | ||
//# sourceMappingURL=common.js.map |
@@ -1,2 +0,2 @@ | ||
import { StringParams } from './common'; | ||
import { StringParams } from "./common.js"; | ||
export interface AdditionalWidgetLayout { | ||
@@ -3,0 +3,0 @@ parent?: string; |
export {}; | ||
//# sourceMappingURL=config.js.map |
@@ -1,4 +0,4 @@ | ||
export * from './common'; | ||
export * from './config'; | ||
export * from './state-and-params'; | ||
export * from './plugin'; | ||
export * from "./common.js"; | ||
export * from "./config.js"; | ||
export * from "./state-and-params.js"; | ||
export * from "./plugin.js"; |
@@ -1,4 +0,5 @@ | ||
export * from './common'; | ||
export * from './config'; | ||
export * from './state-and-params'; | ||
export * from './plugin'; | ||
export * from "./common.js"; | ||
export * from "./config.js"; | ||
export * from "./state-and-params.js"; | ||
export * from "./plugin.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import type { ConfigItem } from './config'; | ||
import type { ConfigItem } from "./config.js"; | ||
interface PluginSpecialFields { | ||
@@ -3,0 +3,0 @@ prerenderMiddleware?: (item: ConfigItem) => ConfigItem; |
export {}; | ||
//# sourceMappingURL=plugin.js.map |
@@ -1,3 +0,3 @@ | ||
import { META_KEY } from '../constants'; | ||
import { StringParams } from './common'; | ||
import { META_KEY } from "../constants/index.js"; | ||
import { StringParams } from "./common.js"; | ||
export interface ItemState { | ||
@@ -4,0 +4,0 @@ [key: string]: any; |
@@ -1,1 +0,2 @@ | ||
import { META_KEY } from '../constants'; | ||
import { META_KEY } from "../constants/index.js"; | ||
//# sourceMappingURL=state-and-params.js.map |
@@ -1,5 +0,5 @@ | ||
import omit from 'lodash/omit'; | ||
import { META_KEY } from '../../constants'; | ||
import { getItemsStateAndParamsDL } from '../datalens'; | ||
import mockConfigs from './configs.json'; | ||
import omit from "lodash/omit.js"; | ||
import { META_KEY } from "../../constants/index.js"; | ||
import { getItemsStateAndParamsDL } from "../datalens/index.js"; | ||
import mockConfigs from "./configs.json"; | ||
export const stateAndParams1 = { | ||
@@ -720,1 +720,2 @@ in: { | ||
}); | ||
//# sourceMappingURL=state-and-params.test.js.map |
@@ -1,3 +0,3 @@ | ||
import { GetItemsParamsArg } from '../../modules'; | ||
import { ItemsStateAndParamsBase, PluginBase } from '../../types'; | ||
import { GetItemsParamsArg } from "../../modules/index.js"; | ||
import { ItemsStateAndParamsBase, PluginBase } from "../../types/index.js"; | ||
export declare const pluginControlBaseDL: PluginBase; | ||
@@ -4,0 +4,0 @@ export declare const pluginGroupControlBaseDL: PluginBase; |
@@ -1,4 +0,4 @@ | ||
import omit from 'lodash/omit'; | ||
import { META_KEY } from '../../constants'; | ||
import { getItemsStateAndParams } from '../../modules'; | ||
import omit from "lodash/omit.js"; | ||
import { META_KEY } from "../../constants/index.js"; | ||
import { getItemsStateAndParams } from "../../modules/index.js"; | ||
export const pluginControlBaseDL = { | ||
@@ -25,1 +25,2 @@ type: 'control', | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
export * from './datalens'; | ||
export * from "./datalens/index.js"; |
@@ -1,1 +0,2 @@ | ||
export * from './datalens'; | ||
export * from "./datalens/index.js"; | ||
//# sourceMappingURL=index.js.map |
import type ReactGridLayout from 'react-grid-layout'; | ||
import type { OverlayCustomControlItem } from '../components/OverlayControls/OverlayControls'; | ||
import { MenuItems } from '../constants'; | ||
import { AdditionalWidgetLayout } from '../shared'; | ||
import type { OverlayCustomControlItem } from "../components/OverlayControls/OverlayControls.js"; | ||
import { MenuItems } from "../constants/index.js"; | ||
import { AdditionalWidgetLayout } from "../shared/index.js"; | ||
export type GridLayoutSettings = ReactGridLayout.ReactGridLayoutProps & { | ||
@@ -6,0 +6,0 @@ noOverlay?: boolean; |
export {}; | ||
//# sourceMappingURL=common.js.map |
@@ -1,5 +0,4 @@ | ||
/// <reference types="react" /> | ||
import type { Layout, Layouts } from 'react-grid-layout'; | ||
import type { Config, ConfigItem, ConfigLayout } from '../shared'; | ||
import { GridLayoutSettings } from './common'; | ||
import type { Config, ConfigItem, ConfigLayout } from "../shared/index.js"; | ||
import { GridLayoutSettings } from "./common.js"; | ||
export interface AddConfigItem extends Omit<ConfigItem, 'id' | 'namespace'> { | ||
@@ -6,0 +5,0 @@ id?: null; |
export {}; | ||
//# sourceMappingURL=config.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './common'; | ||
export * from './plugin'; | ||
export * from './config'; | ||
export * from "./common.js"; | ||
export * from "./plugin.js"; | ||
export * from "./config.js"; |
@@ -1,3 +0,4 @@ | ||
export * from './common'; | ||
export * from './plugin'; | ||
export * from './config'; | ||
export * from "./common.js"; | ||
export * from "./plugin.js"; | ||
export * from "./config.js"; | ||
//# sourceMappingURL=index.js.map |
import React from 'react'; | ||
import ReactGridLayout from 'react-grid-layout'; | ||
import type { ConfigItem, ItemState, ItemStateAndParams, ItemStateAndParamsChangeOptions, PluginBase, StringParams } from '../shared'; | ||
import type { ContextProps, SettingsProps, WidgetLayout } from './common'; | ||
import type { ConfigItem, ItemState, ItemStateAndParams, ItemStateAndParamsChangeOptions, PluginBase, StringParams } from "../shared/index.js"; | ||
import type { ContextProps, SettingsProps, WidgetLayout } from "./common.js"; | ||
export interface PluginWidgetProps<T = StringParams> { | ||
@@ -6,0 +6,0 @@ id: string; |
export {}; | ||
//# sourceMappingURL=plugin.js.map |
@@ -1,2 +0,2 @@ | ||
import { UpdateManager } from '../update-manager'; | ||
import { UpdateManager } from "../update-manager.js"; | ||
const config = { | ||
@@ -822,1 +822,2 @@ salt: '0.09852189776033704', | ||
}); | ||
//# sourceMappingURL=update-manager.test.js.map |
import { withNaming } from '@bem-react/classname'; | ||
export const cn = withNaming({ e: '__', m: '_' }); | ||
//# sourceMappingURL=cn.js.map |
@@ -1,2 +0,2 @@ | ||
import type { Config } from '../shared'; | ||
import type { Config } from "../shared/index.js"; | ||
type GetNewIdArgs = { | ||
@@ -3,0 +3,0 @@ config: Config; |
@@ -1,2 +0,2 @@ | ||
import { extractIdsFromConfig, generateUniqId } from '../shared'; | ||
import { extractIdsFromConfig, generateUniqId } from "../shared/index.js"; | ||
export function getNewId({ config, salt, counter, excludeIds = [] }) { | ||
@@ -6,1 +6,2 @@ const allIds = [...extractIdsFromConfig(config), ...excludeIds]; | ||
} | ||
//# sourceMappingURL=get-new-id.js.map |
import { Layout } from 'react-grid-layout'; | ||
import type { CompactType } from '../'; | ||
import type { CompactType } from "../index.js"; | ||
export declare const compact: (layout: Layout[], compactType: CompactType, cols: number) => Layout[]; | ||
export declare const bottom: (layout: Layout[]) => number; |
@@ -12,1 +12,2 @@ import gridLayout from 'react-grid-layout'; | ||
}; | ||
//# sourceMappingURL=grid-layout.js.map |
@@ -1,3 +0,3 @@ | ||
import type { ConfigLayout } from '../shared/types'; | ||
import type { ConfigLayout } from "../shared/types/index.js"; | ||
export declare const resolveLayoutGroup: (item: ConfigLayout) => string; | ||
export declare const isDefaultLayoutGroup: (item: ConfigLayout) => boolean; |
@@ -1,2 +0,2 @@ | ||
import { DEFAULT_GROUP } from '../constants'; | ||
import { DEFAULT_GROUP } from "../constants/index.js"; | ||
export const resolveLayoutGroup = (item) => { | ||
@@ -11,1 +11,2 @@ if (!item.parent) { | ||
}; | ||
//# sourceMappingURL=group-helpers.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './register-manager'; | ||
export * from './update-manager'; | ||
export * from './group-helpers'; | ||
export * from "./register-manager.js"; | ||
export * from "./update-manager.js"; | ||
export * from "./group-helpers.js"; |
@@ -1,3 +0,4 @@ | ||
export * from './register-manager'; | ||
export * from './update-manager'; | ||
export * from './group-helpers'; | ||
export * from "./register-manager.js"; | ||
export * from "./update-manager.js"; | ||
export * from "./group-helpers.js"; | ||
//# sourceMappingURL=index.js.map |
import ReactGridLayout from 'react-grid-layout'; | ||
import type { Plugin, PluginDefaultLayout, Settings } from '../typings'; | ||
import type { Plugin, PluginDefaultLayout, Settings } from "../typings/index.js"; | ||
interface RegisterManagerDefaultLayout { | ||
@@ -4,0 +4,0 @@ x: number; |
@@ -59,1 +59,2 @@ import { __rest } from "tslib"; | ||
} | ||
//# sourceMappingURL=register-manager.js.map |
@@ -1,5 +0,5 @@ | ||
import { ConfigLayout } from '../shared'; | ||
import type { Config, ConfigItem, ConfigItemGroup, ItemStateAndParams, ItemStateAndParamsChangeOptions, ItemsStateAndParams } from '../shared'; | ||
import type { AddConfigItem, AddNewItemOptions, ReflowLayoutOptions, SetItemOptions, WidgetLayout } from '../typings'; | ||
import { RegisterManagerPluginLayout } from './register-manager'; | ||
import { ConfigLayout } from "../shared/index.js"; | ||
import type { Config, ConfigItem, ConfigItemGroup, ItemStateAndParams, ItemStateAndParamsChangeOptions, ItemsStateAndParams } from "../shared/index.js"; | ||
import type { AddConfigItem, AddNewItemOptions, ReflowLayoutOptions, SetItemOptions, WidgetLayout } from "../typings/index.js"; | ||
import { RegisterManagerPluginLayout } from "./register-manager.js"; | ||
interface RemoveItemArg { | ||
@@ -6,0 +6,0 @@ id: string; |
import update, { extend } from 'immutability-helper'; | ||
import omit from 'lodash/omit'; | ||
import pick from 'lodash/pick'; | ||
import { DEFAULT_GROUP, DEFAULT_NAMESPACE } from '../constants'; | ||
import { META_KEY, addGroupToQueue, addToQueue, deleteFromQueue, getCurrentVersion, getInitialItemsStateAndParamsMeta, getItemsStateAndParamsMeta, isItemWithGroup, isItemWithTabs, mergeParamsWithAliases, pickActionParamsFromParams, resolveItemInnerId, transformParamsToActionParams, } from '../shared'; | ||
import { getNewId } from './get-new-id'; | ||
import { bottom, compact } from './grid-layout'; | ||
import { resolveLayoutGroup } from './group-helpers'; | ||
import omit from "lodash/omit.js"; | ||
import pick from "lodash/pick.js"; | ||
import { DEFAULT_GROUP, DEFAULT_NAMESPACE } from "../constants/index.js"; | ||
import { META_KEY, addGroupToQueue, addToQueue, deleteFromQueue, getCurrentVersion, getInitialItemsStateAndParamsMeta, getItemsStateAndParamsMeta, isItemWithGroup, isItemWithTabs, mergeParamsWithAliases, pickActionParamsFromParams, resolveItemInnerId, transformParamsToActionParams, } from "../shared/index.js"; | ||
import { getNewId } from "./get-new-id.js"; | ||
import { bottom, compact } from "./grid-layout.js"; | ||
import { resolveLayoutGroup } from "./group-helpers.js"; | ||
extend('$auto', (value, object) => (object ? update(object, value) : update({}, value))); | ||
@@ -495,1 +495,2 @@ function removeItemVersion1({ id, config, itemsStateAndParams }) { | ||
} | ||
//# sourceMappingURL=update-manager.js.map |
{ | ||
"name": "@gravity-ui/dashkit", | ||
"version": "8.26.0", | ||
"version": "9.0.0-beta.0", | ||
"description": "Library for rendering dashboard grid layout", | ||
@@ -64,3 +64,2 @@ "license": "MIT", | ||
"@bem-react/classname": "^1.6.0", | ||
"@gravity-ui/icons": "^2.11.0", | ||
"hashids": "^2.2.8", | ||
@@ -73,13 +72,16 @@ "immutability-helper": "^3.1.1", | ||
"peerDependencies": { | ||
"@gravity-ui/uikit": "^6.0.0", | ||
"@gravity-ui/icons": "^2.13.0", | ||
"@gravity-ui/uikit": "^7.2.0", | ||
"react": "^16.8.0 || ^17 || ^18" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.0.3", | ||
"@commitlint/config-conventional": "^17.0.3", | ||
"@commitlint/cli": "^19.6.1", | ||
"@commitlint/config-conventional": "^19.6.0", | ||
"@gravity-ui/eslint-config": "^3.2.0", | ||
"@gravity-ui/gulp-utils": "^1.0.2", | ||
"@gravity-ui/icons": "^2.13.0", | ||
"@gravity-ui/prettier-config": "^1.1.0", | ||
"@gravity-ui/stylelint-config": "^4.0.1", | ||
"@gravity-ui/tsconfig": "^1.0.0", | ||
"@gravity-ui/uikit": "^6.37.0", | ||
"@gravity-ui/uikit": "^7.2.0", | ||
"@storybook/addon-essentials": "^7.6.15", | ||
@@ -92,7 +94,6 @@ "@storybook/addon-knobs": "^7.0.2", | ||
"@types/enzyme": "^3.10.8", | ||
"@types/jest": "^26.0.20", | ||
"@types/jest": "^29.5.14", | ||
"@types/lodash": "^4.14.170", | ||
"@types/react": "^18.0.27", | ||
"@types/react-grid-layout": "^1.3.5", | ||
"babel-jest": "^26.6.3", | ||
"copyfiles": "^2.4.1", | ||
@@ -102,10 +103,9 @@ "enzyme": "^3.11.0", | ||
"enzyme-to-json": "^3.6.1", | ||
"eslint": "^8.56.0", | ||
"eslint": "^8.57.1", | ||
"gulp": "^4.0.2", | ||
"gulp-cli": "^2.3.0", | ||
"gulp-dart-sass": "^1.0.2", | ||
"gulp-replace": "^1.1.3", | ||
"gulp-typescript": "^6.0.0-alpha.1", | ||
"gulp-sourcemaps": "^3.0.0", | ||
"husky": "^9.0.11", | ||
"jest": "^26.6.3", | ||
"jest": "^29.7.0", | ||
"lint-staged": "^13.0.3", | ||
@@ -126,5 +126,5 @@ "npm-run-all": "^4.1.5", | ||
"terser-webpack-plugin": "^4.2.3", | ||
"ts-jest": "^26.5.3", | ||
"ts-jest": "^29.2.5", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.3.3" | ||
"typescript": "^5.7.3" | ||
}, | ||
@@ -131,0 +131,0 @@ "husky": { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1523728
149.31%423
46.37%15157
0.87%2
100%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed