dinocollab-core 1.0.19 → 1.0.21

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.
Files changed (77) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -1
  3. package/dist/filter-bar/base.js +1 -1
  4. package/dist/filter-bar/base.js.map +1 -1
  5. package/dist/filter-bar/create.filter-bar.js +1 -1
  6. package/dist/filter-bar/create.filter-bar.js.map +1 -1
  7. package/dist/filter-bar/create.filter-menu.js +1 -1
  8. package/dist/filter-bar/create.filter-menu.js.map +1 -1
  9. package/dist/filter-bar/create.filter-panel.js +1 -1
  10. package/dist/filter-bar/create.filter-panel.js.map +1 -1
  11. package/dist/filter-bar/create.filtered.js +1 -1
  12. package/dist/filter-bar/create.filtered.js.map +1 -1
  13. package/dist/filter-bar/types.js.map +1 -1
  14. package/dist/filter-bar/ui.units.js +1 -1
  15. package/dist/filter-bar/ui.units.js.map +1 -1
  16. package/dist/form/create.autocomplete.chips.js.map +1 -1
  17. package/dist/form/create.form-base.js +1 -1
  18. package/dist/form/create.form-base.js.map +1 -1
  19. package/dist/form/create.form-grid-layout.js +1 -1
  20. package/dist/form/create.form-grid-layout.js.map +1 -1
  21. package/dist/form/create.input-file.csv-local-parser.js.map +1 -1
  22. package/dist/form/create.input.js +1 -1
  23. package/dist/form/create.input.js.map +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/table/create.table.js +1 -1
  26. package/dist/table/create.table.js.map +1 -1
  27. package/dist/table-grid/create.table-grid.js +1 -1
  28. package/dist/table-grid/create.table-grid.js.map +1 -1
  29. package/dist/types/filter-bar/base.d.ts +10 -16
  30. package/dist/types/filter-bar/create.filter-bar.d.ts +3 -91
  31. package/dist/types/filter-bar/create.filter-menu.d.ts +6 -59
  32. package/dist/types/filter-bar/create.filter-panel.d.ts +7 -111
  33. package/dist/types/filter-bar/create.filtered.d.ts +11 -8
  34. package/dist/types/filter-bar/create.sort-menu.d.ts +1 -7
  35. package/dist/types/filter-bar/index.d.ts +0 -1
  36. package/dist/types/filter-bar/types.d.ts +42 -23
  37. package/dist/types/filter-bar/ui.units.d.ts +4 -3
  38. package/dist/types/form/create.autocomplete.chips.d.ts +3 -3
  39. package/dist/types/form/create.form-base.d.ts +15 -21
  40. package/dist/types/form/create.form-grid-layout.units.d.ts +6 -2
  41. package/dist/types/form/create.input-file.csv-local-parser.d.ts +1 -2
  42. package/dist/types/form/create.input.d.ts +1 -2
  43. package/dist/types/form/dino-form.d.ts +4 -2
  44. package/dist/types/form/types.d.ts +18 -7
  45. package/dist/types/table-grid/types.d.ts +2 -2
  46. package/dist/types/utils/helpers.d.ts +1 -0
  47. package/dist/utils/helpers.js +1 -1
  48. package/dist/utils/helpers.js.map +1 -1
  49. package/package.json +5 -2
  50. package/dist/filter-bar/create.sort-menu.js +0 -2
  51. package/dist/filter-bar/create.sort-menu.js.map +0 -1
  52. package/dist/types/filter-bar/demo.d.ts +0 -3
  53. package/dist/types/lab/create.autocomplete.simple.d.ts +0 -19
  54. package/dist/types/lab/create.dino-store.d.ts +0 -1
  55. package/dist/types/lab/grafana-dashboard/configs.d.ts +0 -4
  56. package/dist/types/lab/grafana-dashboard/date-time-range/absolute-time-rage.d.ts +0 -14
  57. package/dist/types/lab/grafana-dashboard/date-time-range/helpers.d.ts +0 -36
  58. package/dist/types/lab/grafana-dashboard/date-time-range/index.d.ts +0 -24
  59. package/dist/types/lab/grafana-dashboard/date-time-range/menu-wrap.d.ts +0 -19
  60. package/dist/types/lab/grafana-dashboard/date-time-range/quick-ranges.d.ts +0 -20
  61. package/dist/types/lab/grafana-dashboard/date-time-range/types.d.ts +0 -8
  62. package/dist/types/lab/grafana-dashboard/date-time-range/units.d.ts +0 -2
  63. package/dist/types/lab/grafana-dashboard/helper.d.ts +0 -7
  64. package/dist/types/lab/grafana-dashboard/hooks.d.ts +0 -10
  65. package/dist/types/lab/grafana-dashboard/icons.d.ts +0 -5
  66. package/dist/types/lab/grafana-dashboard/index.d.ts +0 -12
  67. package/dist/types/lab/grafana-dashboard/top-bar.d.ts +0 -19
  68. package/dist/types/lab/grafana-dashboard/top-bar.types.d.ts +0 -4
  69. package/dist/types/lab/grafana-dashboard/types.d.ts +0 -8
  70. package/dist/types/lab/media-player.core1.d.ts +0 -14
  71. package/dist/types/lab/media-player.muted.d.ts +0 -10
  72. package/dist/types/lab/media-player.units.d.ts +0 -36
  73. package/dist/types/lab/select-mul-with-api/create.select-mul-with-api.d.ts +0 -26
  74. package/dist/types/lab/select-mul-with-api/index.d.ts +0 -2
  75. package/dist/types/lab/select-mul-with-api/table-custom.d.ts +0 -43
  76. package/dist/types/lab/select-mul-with-api/types.d.ts +0 -21
  77. package/dist/types/lab/select-mul-with-api/ui.units.d.ts +0 -29
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { ITopBarInfo } from './top-bar.types';
3
- import { IQuickRangeConfig } from './date-time-range';
4
- declare const GrafanaDashboardHooks: {
5
- useQueryParam: (data: ITopBarInfo, activated?: boolean) => void;
6
- useLoading: () => [boolean, () => void, () => void];
7
- useTopBarInfo: () => [ITopBarInfo, (value?: IQuickRangeConfig, callback?: () => void) => void];
8
- useCustomScrollBar: (iframeRef: React.RefObject<HTMLIFrameElement>) => void;
9
- };
10
- export default GrafanaDashboardHooks;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import { SvgIconProps } from '@mui/material';
3
- export declare const SvgLoading: React.FC<SvgIconProps & {
4
- fill?: string;
5
- }>;
@@ -1,12 +0,0 @@
1
- import { FC } from 'react';
2
- import { IGrafanaDashBoardOptions } from './types';
3
- interface IGrafanaDashboardProps {
4
- url: string;
5
- title?: string;
6
- options?: IGrafanaDashBoardOptions;
7
- topBar?: boolean;
8
- queryParam?: boolean;
9
- onLoadComplete?: () => void;
10
- }
11
- export declare const GrafanaDashboard: FC<IGrafanaDashboardProps>;
12
- export {};
@@ -1,19 +0,0 @@
1
- import { Component } from 'react';
2
- import { IQuickRangeConfig } from './date-time-range';
3
- export interface ITopBar {
4
- onRefresh?: () => void;
5
- onDateTimeRangeChange?: (value?: IQuickRangeConfig) => void;
6
- }
7
- interface IProps extends ITopBar {
8
- dateTimeRanges: {
9
- data: IQuickRangeConfig[];
10
- defaultValue?: IQuickRangeConfig;
11
- };
12
- after?: JSX.Element;
13
- before?: JSX.Element;
14
- }
15
- export default class TopBar extends Component<IProps> {
16
- render(): import("react/jsx-runtime").JSX.Element;
17
- }
18
- export declare const TopBarheight = 43;
19
- export {};
@@ -1,4 +0,0 @@
1
- import { IQuickRangeConfig } from './date-time-range';
2
- export interface ITopBarInfo {
3
- QuickRange?: IQuickRangeConfig;
4
- }
@@ -1,8 +0,0 @@
1
- export interface IGrafanaDashBoardOptions {
2
- from?: string;
3
- to?: string;
4
- refresh?: string;
5
- kiosk?: 'tv' | 'true' | 'false';
6
- theme?: 'light' | 'dark';
7
- orgId?: number;
8
- }
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { SvgIconOwnProps } from '@mui/material';
3
- export interface MediaPlayerCore1Slots {
4
- autoPlay?: boolean;
5
- muted?: boolean;
6
- iconPlayProps?: SvgIconOwnProps;
7
- }
8
- interface IProps {
9
- src: string;
10
- className?: string;
11
- slots?: MediaPlayerCore1Slots;
12
- }
13
- declare const MediaPlayerCore1: React.FC<IProps>;
14
- export default MediaPlayerCore1;
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- import { MediaPlayerBaseProps, MediaPlayerBaseSlots } from './media-player.units';
3
- import { MediaPlayerCore1Slots } from './media-player.core1';
4
- interface IProps extends MediaPlayerBaseProps {
5
- slots?: MediaPlayerBaseSlots & {
6
- core1Props?: MediaPlayerCore1Slots;
7
- };
8
- }
9
- declare const MediaPlayerMuted: FC<IProps>;
10
- export default MediaPlayerMuted;
@@ -1,36 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { Breakpoint, SxProps, Theme } from '@mui/material';
3
- export interface IMediaStream {
4
- code: number;
5
- token: string;
6
- StreamUrl: string;
7
- }
8
- export interface MediaPlayerBaseProps {
9
- resourceId: string;
10
- fetchDataStream: (resourceId: string, signal?: AbortSignal) => Promise<IMediaStream[]>;
11
- loading?: boolean;
12
- }
13
- export type AspectRatioParams = number | Partial<Record<Breakpoint, number>>;
14
- export interface MediaPlayerBaseSlots {
15
- /**
16
- * Aspect ratio (height / width), used to calculate height based on width.
17
- * @default 56.25 (%)
18
- */
19
- aspectRatio?: AspectRatioParams;
20
- loading?: ReactNode;
21
- loadingProps?: {
22
- disabled?: boolean;
23
- animationDuration?: string;
24
- };
25
- }
26
- export declare enum EMediaPlayerStatus {
27
- Loading = "Loading",
28
- Loaded = "Loaded",
29
- Error = "Error"
30
- }
31
- export declare const useStreamUrl: (resourceId: string | null, fetchDataStream: MediaPlayerBaseProps['fetchDataStream']) => {
32
- status: EMediaPlayerStatus;
33
- streamUrl: string | null;
34
- };
35
- export declare const getAspectRatio: (value?: AspectRatioParams, defaultAspectRatio?: string) => string | Partial<Record<Breakpoint, string>> | undefined;
36
- export declare const getAspectRatioStyled: (value?: AspectRatioParams) => SxProps<Theme>;
@@ -1,26 +0,0 @@
1
- import { ComponentType } from 'react';
2
- import { GridPaginationModel } from '@mui/x-data-grid';
3
- import { FilterBarParams, IFilterState } from '../../filter-bar';
4
- import { ISeclectMulFetchData, ISeclectMulFetchTotal, ISelectModel } from './types';
5
- export interface ISelectMulWithApiProps<T> {
6
- fetchData?: ISeclectMulFetchData<T>;
7
- fetchTotal?: ISeclectMulFetchTotal;
8
- onSubmit?: (value: ISelectModel[]) => Promise<void>;
9
- }
10
- export interface ISelectMulWithApiState<T> {
11
- loading?: boolean;
12
- submiting?: boolean;
13
- filterState: IFilterState<T>;
14
- pagination: GridPaginationModel;
15
- rows: ISelectModel[];
16
- totalRows: number;
17
- rowSelecteds: ISelectModel[];
18
- searchKeyLocal?: string;
19
- isUnselected?: boolean;
20
- }
21
- export interface ISelectMulWithApiParams<T> {
22
- filterConfig: FilterBarParams<T>;
23
- }
24
- declare function CreateSelectMulWithApi<T>(params: ISelectMulWithApiParams<T>): ComponentType<ISelectMulWithApiProps<T>>;
25
- export * from './types';
26
- export default CreateSelectMulWithApi;
@@ -1,2 +0,0 @@
1
- export * from './types';
2
- export { default as CreateSelectMulWithApi } from './create.select-mul-with-api';
@@ -1,43 +0,0 @@
1
- import React, { Component, ReactNode } from 'react';
2
- import { DataGridProps, GridColDef, GridFeatureMode, GridPaginationModel, GridRowSelectionModel } from '@mui/x-data-grid';
3
- import { ISelectModel } from './types';
4
- interface IProps {
5
- title: string;
6
- rows: ISelectModel[];
7
- featureMode?: GridFeatureMode;
8
- totalRows?: number;
9
- maxSelected?: number;
10
- pagination?: GridPaginationModel;
11
- defaultPagination?: GridPaginationModel;
12
- loading?: boolean;
13
- onPaginationChange?: DataGridProps['onPaginationModelChange'];
14
- isRowSelectable?: DataGridProps['isRowSelectable'];
15
- slots?: {
16
- title?: {
17
- before?: ReactNode;
18
- after?: ReactNode;
19
- };
20
- renderAction?: (value: ISelectModel) => ReactNode;
21
- renderHeaderAction?: (parmas: {
22
- rowSelecteds: GridRowSelectionModel;
23
- }) => ReactNode;
24
- header?: ReactNode;
25
- topBar?: ReactNode;
26
- dataGridProps?: Partial<DataGridProps>;
27
- };
28
- }
29
- export declare class TableCustom extends Component<IProps> {
30
- rowSelecteds: GridRowSelectionModel;
31
- constructor(props: IProps);
32
- shouldComponentUpdate(nextProps: Readonly<IProps>, nextState: Readonly<{}>, nextContext: any): boolean;
33
- render(): import("react/jsx-runtime").JSX.Element;
34
- getDataGridProps: () => DataGridProps;
35
- getData: () => {
36
- rows: ISelectModel<any>[];
37
- rowSelecteds: import("@mui/x-data-grid").GridRowId[];
38
- };
39
- getColumns: () => GridColDef[];
40
- renderHeader: () => number | true | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode>;
41
- handleRowSelectionChange: (value: GridRowSelectionModel) => void;
42
- }
43
- export {};
@@ -1,21 +0,0 @@
1
- import { IFilterState } from '../../filter-bar';
2
- export interface ISelectModel<F = any> {
3
- value: string;
4
- label?: string;
5
- disabled?: boolean;
6
- other?: F;
7
- }
8
- export interface IPaginationModel {
9
- /** @default 0 */
10
- page: number;
11
- /** @default 100 */
12
- pageSize: number;
13
- }
14
- export interface IFilterStateCustom<T> extends IFilterState<T> {
15
- pagination: IPaginationModel;
16
- }
17
- export type ISeclectMulFetchData<T> = (filterState: IFilterStateCustom<T>, signal?: AbortSignal) => Promise<{
18
- items: ISelectModel<T>[];
19
- totalItems: number;
20
- }>;
21
- export type ISeclectMulFetchTotal = (signal?: AbortSignal) => Promise<number>;
@@ -1,29 +0,0 @@
1
- import React, { FC } from 'react';
2
- import { InputBaseProps } from '@mui/material';
3
- import { ButtonProps, SwitchProps } from '@mui/material';
4
- import { ISelectModel } from './types';
5
- import { ILoadingButtonProps } from '../../components/buttons';
6
- export declare const ButtonAddToRight: FC<ButtonProps>;
7
- export declare const ButtonRemoveSelected: FC<ButtonProps>;
8
- export declare const ButtonAdd: FC<Omit<ButtonProps, 'value'> & {
9
- value: ISelectModel;
10
- }>;
11
- export declare const ButtonRemove: FC<ButtonProps>;
12
- export declare const ButtonSubmit: FC<ILoadingButtonProps>;
13
- export declare const Buttons: {
14
- AddToRight: React.FC<ButtonProps<"button", {}>>;
15
- RemoveSelected: React.FC<ButtonProps<"button", {}>>;
16
- Add: React.FC<Omit<ButtonProps<"button", {}>, "value"> & {
17
- value: ISelectModel;
18
- }>;
19
- Remove: React.FC<ButtonProps<"button", {}>>;
20
- Submit: React.FC<ILoadingButtonProps>;
21
- };
22
- export declare const SwitchUnselected: FC<SwitchProps & {
23
- totalHidden?: number;
24
- }>;
25
- interface InputSearchLocalProps extends Omit<InputBaseProps, 'onChange'> {
26
- onChange?: (value: string) => void;
27
- }
28
- export declare const InputSearchLocal: FC<InputSearchLocalProps>;
29
- export {};