@devtable/dashboard 8.64.0 → 8.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { FilterModelInstance } from '../../model';
3
- import { IFilterConfig_MultiSelect } from '../../model/filters/filter/multi-select';
2
+ import { FilterModelInstance } from '../../../model';
3
+ import { IFilterConfig_MultiSelect } from '../../../model/filters/filter/multi-select';
4
4
  interface IFilterMultiSelect extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
5
5
  config: IFilterConfig_MultiSelect;
6
6
  value: $TSFixMe;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { DefaultProps, MantineNumberSize, Selectors } from '@mantine/core';
3
+ import useStyles, { MultiSelectWidgetStylesParams } from './widget.styles';
4
+ export declare type TSelectOption = {
5
+ label: string;
6
+ value: string;
7
+ description: string;
8
+ };
9
+ declare type StylesNames = Selectors<typeof useStyles>;
10
+ interface IProps extends DefaultProps<StylesNames, MultiSelectWidgetStylesParams> {
11
+ radius?: MantineNumberSize;
12
+ style?: Record<string, any>;
13
+ label: string;
14
+ value: string[];
15
+ onChange: (v: string[]) => void;
16
+ options: TSelectOption[];
17
+ disabled: boolean;
18
+ }
19
+ export declare const MultiSelectWidget: ({ disabled, classNames, styles, unstyled, radius, style, label, value, onChange, options, }: IProps) => JSX.Element;
20
+ export {};
@@ -0,0 +1,14 @@
1
+ import { MantineNumberSize } from '@mantine/core';
2
+ export interface MultiSelectWidgetStylesParams {
3
+ radius?: MantineNumberSize;
4
+ }
5
+ declare const _default: (params: MultiSelectWidgetStylesParams, options?: import("@mantine/core").UseStylesOptions<string> | undefined) => {
6
+ classes: {
7
+ root: string;
8
+ label: string;
9
+ dropdown: string;
10
+ };
11
+ cx: (...args: any) => string;
12
+ theme: import("@mantine/core").MantineTheme;
13
+ };
14
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "8.64.0",
3
+ "version": "8.65.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -38,6 +38,7 @@
38
38
  "monaco-editor": "0.36.0",
39
39
  "performant-array-to-tree": "1.11.0",
40
40
  "popmotion": "^11.0.3",
41
+ "rc-select": "14.1.0",
41
42
  "rc-tree-select": "5.5.5",
42
43
  "reactflow": "^11.5.3"
43
44
  },