dhx-react-suite 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dhx-react-suite.js +1798 -1415
- package/dist/dhx-react-suite.js.map +1 -1
- package/dist/dhx-react-suite.umd.cjs +2 -2
- package/dist/dhx-react-suite.umd.cjs.map +1 -1
- package/dist/index.d.ts +56 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -147,6 +147,8 @@ export declare interface DataViewProps {
|
|
|
147
147
|
style?: React.CSSProperties;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
export declare type DHXColor = "danger" | "secondary" | "primary" | "success";
|
|
151
|
+
|
|
150
152
|
export declare function Form({ config, defaultValues, onSubmit, style }: FormProps): JSX_2.Element;
|
|
151
153
|
|
|
152
154
|
export declare interface FormConfig {
|
|
@@ -409,68 +411,107 @@ export declare interface PopupProps {
|
|
|
409
411
|
style?: React.CSSProperties;
|
|
410
412
|
}
|
|
411
413
|
|
|
412
|
-
export declare function Ribbon({ items,
|
|
414
|
+
export declare function Ribbon({ items, css: cssProp, menuCss, style, onAction, onInputChange, onInputBlur, onInputFocus, onOpenMenu, }: RibbonProps): JSX_2.Element;
|
|
413
415
|
|
|
414
|
-
declare interface RibbonBlock {
|
|
416
|
+
export declare interface RibbonBlock {
|
|
415
417
|
type: "block";
|
|
418
|
+
id?: string;
|
|
416
419
|
title?: string;
|
|
417
420
|
label?: string;
|
|
418
421
|
direction?: "col" | "row";
|
|
422
|
+
css?: string | string[];
|
|
423
|
+
disabled?: boolean;
|
|
424
|
+
hidden?: boolean;
|
|
419
425
|
items?: (RibbonSubItem | RibbonBlock)[];
|
|
420
426
|
}
|
|
421
427
|
|
|
422
428
|
export declare type RibbonItem = RibbonSubItem | RibbonBlock;
|
|
423
429
|
|
|
430
|
+
export declare type RibbonItemSize = "auto" | "medium" | "small";
|
|
431
|
+
|
|
424
432
|
export declare interface RibbonProps {
|
|
425
433
|
items?: RibbonItem[];
|
|
426
|
-
|
|
434
|
+
css?: string;
|
|
435
|
+
menuCss?: string;
|
|
427
436
|
style?: React.CSSProperties;
|
|
437
|
+
onAction?: (id: string, item: RibbonSubItem) => void;
|
|
438
|
+
onInputChange?: (id: string, value: string) => void;
|
|
439
|
+
onInputBlur?: (id: string, value: string) => void;
|
|
440
|
+
onInputFocus?: (id: string, value: string) => void;
|
|
441
|
+
onOpenMenu?: (id: string) => void;
|
|
428
442
|
}
|
|
429
443
|
|
|
430
|
-
declare interface RibbonSubItem {
|
|
444
|
+
export declare interface RibbonSubItem {
|
|
431
445
|
id?: string;
|
|
432
|
-
type?: "separator" | "sep" | "input" | "selectButton";
|
|
446
|
+
type?: "button" | "navItem" | "imageButton" | "separator" | "sep" | "spacer" | "title" | "input" | "selectButton" | "customHTML";
|
|
433
447
|
value?: string;
|
|
434
448
|
text?: string;
|
|
449
|
+
html?: string;
|
|
435
450
|
icon?: React.ReactNode;
|
|
451
|
+
src?: string;
|
|
452
|
+
size?: RibbonItemSize;
|
|
453
|
+
color?: DHXColor;
|
|
454
|
+
view?: "flat" | "link";
|
|
455
|
+
circle?: boolean;
|
|
456
|
+
loading?: boolean;
|
|
436
457
|
active?: boolean;
|
|
437
458
|
twoState?: boolean;
|
|
438
459
|
group?: string;
|
|
439
460
|
disabled?: boolean;
|
|
440
461
|
hidden?: boolean;
|
|
441
462
|
tooltip?: string;
|
|
463
|
+
hotkey?: string;
|
|
442
464
|
label?: string;
|
|
443
|
-
size?: "auto" | "small";
|
|
444
465
|
placeholder?: string;
|
|
445
466
|
width?: number;
|
|
446
467
|
count?: number;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
}[];
|
|
468
|
+
countColor?: DHXColor;
|
|
469
|
+
items?: MenuItem[];
|
|
470
|
+
css?: string | string[];
|
|
451
471
|
onClick?: (item: RibbonSubItem) => void;
|
|
452
472
|
onChange?: (value: string) => void;
|
|
473
|
+
onBlur?: (value: string) => void;
|
|
474
|
+
onFocus?: (value: string) => void;
|
|
453
475
|
}
|
|
454
476
|
|
|
455
|
-
export declare function Sidebar({ items, width, collapsed
|
|
477
|
+
export declare function Sidebar({ items, width, minWidth, header, footer, collapsed, defaultCollapsed, selected, defaultSelected, onSelect, onCollapse, onExpand, onBeforeCollapse, onBeforeExpand, onToggleItem, style, }: SidebarProps): JSX_2.Element;
|
|
478
|
+
|
|
479
|
+
export declare type SidebarBadgeColor = "danger" | "primary" | "success" | "secondary";
|
|
456
480
|
|
|
457
481
|
export declare interface SidebarItem {
|
|
458
|
-
id
|
|
482
|
+
id?: string;
|
|
483
|
+
type?: "navItem" | "separator" | "spacer" | "title" | "customHTML";
|
|
459
484
|
value?: string;
|
|
460
485
|
icon?: React.ReactNode;
|
|
461
|
-
count?: number;
|
|
462
|
-
type?: "separator" | "customHTML";
|
|
463
486
|
html?: string;
|
|
487
|
+
tooltip?: string;
|
|
488
|
+
count?: number;
|
|
489
|
+
countColor?: SidebarBadgeColor;
|
|
490
|
+
twoState?: boolean;
|
|
491
|
+
active?: boolean;
|
|
492
|
+
group?: string;
|
|
493
|
+
disabled?: boolean;
|
|
494
|
+
hidden?: boolean;
|
|
464
495
|
items?: SidebarItem[];
|
|
496
|
+
onClick?: (id: string) => void;
|
|
465
497
|
}
|
|
466
498
|
|
|
467
499
|
export declare interface SidebarProps {
|
|
468
500
|
items?: SidebarItem[];
|
|
469
501
|
width?: number;
|
|
470
|
-
|
|
502
|
+
minWidth?: number;
|
|
471
503
|
header?: React.ReactNode;
|
|
472
504
|
footer?: React.ReactNode;
|
|
505
|
+
collapsed?: boolean;
|
|
506
|
+
defaultCollapsed?: boolean;
|
|
507
|
+
selected?: string;
|
|
508
|
+
defaultSelected?: string;
|
|
473
509
|
onSelect?: (item: SidebarItem) => void;
|
|
510
|
+
onCollapse?: () => void;
|
|
511
|
+
onExpand?: () => void;
|
|
512
|
+
onBeforeCollapse?: () => boolean | void;
|
|
513
|
+
onBeforeExpand?: () => boolean | void;
|
|
514
|
+
onToggleItem?: (id: string, active: boolean) => void;
|
|
474
515
|
style?: React.CSSProperties;
|
|
475
516
|
}
|
|
476
517
|
|