@axinom/mosaic-ui 0.32.0-rc.1 → 0.32.0-rc.11
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/components/Actions/Action/Action.d.ts.map +1 -1
- package/dist/components/Actions/Actions.models.d.ts +4 -16
- package/dist/components/Actions/Actions.models.d.ts.map +1 -1
- package/dist/components/Buttons/Button/Button.d.ts +9 -10
- package/dist/components/Buttons/Button/Button.d.ts.map +1 -1
- package/dist/components/Buttons/Button/Button.model.d.ts +21 -0
- package/dist/components/Buttons/Button/Button.model.d.ts.map +1 -0
- package/dist/components/Buttons/Button/index.d.ts +3 -0
- package/dist/components/Buttons/Button/index.d.ts.map +1 -0
- package/dist/components/Buttons/Button.model.d.ts +69 -7
- package/dist/components/Buttons/Button.model.d.ts.map +1 -1
- package/dist/components/Buttons/CompositeButton/CompositeButton.d.ts +5 -14
- package/dist/components/Buttons/CompositeButton/CompositeButton.d.ts.map +1 -1
- package/dist/components/Buttons/CompositeButton/CompositeButton.model.d.ts +20 -0
- package/dist/components/Buttons/CompositeButton/CompositeButton.model.d.ts.map +1 -0
- package/dist/components/Buttons/CompositeButton/index.d.ts +3 -0
- package/dist/components/Buttons/CompositeButton/index.d.ts.map +1 -0
- package/dist/components/Buttons/TextButton/TextButton.d.ts +5 -9
- package/dist/components/Buttons/TextButton/TextButton.d.ts.map +1 -1
- package/dist/components/Buttons/TextButton/TextButton.model.d.ts +18 -0
- package/dist/components/Buttons/TextButton/TextButton.model.d.ts.map +1 -0
- package/dist/components/Buttons/TextButton/index.d.ts +3 -0
- package/dist/components/Buttons/TextButton/index.d.ts.map +1 -0
- package/dist/components/Buttons/index.d.ts +3 -3
- package/dist/components/Buttons/index.d.ts.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts.map +1 -1
- package/dist/components/Explorer/Explorer.model.d.ts +2 -2
- package/dist/components/Explorer/Explorer.model.d.ts.map +1 -1
- package/dist/components/Explorer/NavigationExplorer/NavigationExplorer.d.ts +13 -3
- package/dist/components/Explorer/NavigationExplorer/NavigationExplorer.d.ts.map +1 -1
- package/dist/components/FormElements/ToggleButton/ToggleButton.d.ts +2 -2
- package/dist/components/FormElements/ToggleButton/ToggleButton.d.ts.map +1 -1
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/List.d.ts.map +1 -1
- package/dist/components/List/ListRow/ListRow.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +1 -22
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.model.d.ts +23 -0
- package/dist/components/PageHeader/PageHeader.model.d.ts.map +1 -0
- package/dist/components/PageHeader/PageHeaderAction/PageHeaderAction.d.ts +20 -33
- package/dist/components/PageHeader/PageHeaderAction/PageHeaderAction.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeaderAction/PageHeaderAction.model.d.ts +47 -0
- package/dist/components/PageHeader/PageHeaderAction/PageHeaderAction.model.d.ts.map +1 -0
- package/dist/components/PageHeader/PageHeaderAction/index.d.ts +3 -0
- package/dist/components/PageHeader/PageHeaderAction/index.d.ts.map +1 -0
- package/dist/components/PageHeader/PageHeaderBulkActions/PageHeaderBulkActions.d.ts +2 -2
- package/dist/components/PageHeader/PageHeaderBulkActions/PageHeaderBulkActions.d.ts.map +1 -1
- package/dist/components/PageHeader/index.d.ts +3 -2
- package/dist/components/PageHeader/index.d.ts.map +1 -1
- package/dist/components/models.d.ts +22 -0
- package/dist/components/models.d.ts.map +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/Actions/Action/Action.spec.tsx +16 -2
- package/src/components/Actions/Action/Action.tsx +6 -3
- package/src/components/Actions/Actions.models.ts +4 -23
- package/src/components/Buttons/Button/Button.model.ts +30 -0
- package/src/components/Buttons/Button/Button.scss +3 -1
- package/src/components/Buttons/Button/Button.spec.tsx +254 -83
- package/src/components/Buttons/Button/Button.stories.tsx +20 -0
- package/src/components/Buttons/Button/Button.tsx +103 -32
- package/src/components/Buttons/Button/index.ts +2 -0
- package/src/components/Buttons/Button.model.ts +84 -9
- package/src/components/Buttons/CompositeButton/CompositeButton.model.ts +32 -0
- package/src/components/Buttons/CompositeButton/CompositeButton.scss +6 -1
- package/src/components/Buttons/CompositeButton/CompositeButton.spec.tsx +277 -89
- package/src/components/Buttons/CompositeButton/CompositeButton.stories.tsx +20 -0
- package/src/components/Buttons/CompositeButton/CompositeButton.tsx +94 -30
- package/src/components/Buttons/CompositeButton/index.ts +2 -0
- package/src/components/Buttons/TextButton/TextButton.model.ts +27 -0
- package/src/components/Buttons/TextButton/TextButton.scss +3 -1
- package/src/components/Buttons/TextButton/TextButton.spec.tsx +198 -87
- package/src/components/Buttons/TextButton/TextButton.stories.tsx +20 -0
- package/src/components/Buttons/TextButton/TextButton.tsx +74 -20
- package/src/components/Buttons/TextButton/index.ts +2 -0
- package/src/components/Buttons/index.ts +3 -6
- package/src/components/Explorer/Explorer.model.ts +2 -2
- package/src/components/Explorer/Explorer.tsx +21 -16
- package/src/components/Explorer/NavigationExplorer/NavigationExplorer.tsx +32 -11
- package/src/components/FormElements/CustomTags/CustomTags.spec.tsx +26 -16
- package/src/components/FormElements/ToggleButton/ToggleButton.tsx +3 -3
- package/src/components/List/List.spec.tsx +23 -0
- package/src/components/List/List.stories.tsx +8 -0
- package/src/components/List/List.tsx +15 -3
- package/src/components/List/ListRow/ListRow.tsx +18 -13
- package/src/components/PageHeader/PageHeader.model.ts +23 -0
- package/src/components/PageHeader/PageHeader.stories.tsx +2 -1
- package/src/components/PageHeader/PageHeader.tsx +2 -26
- package/src/components/PageHeader/PageHeaderAction/PageHeaderAction.model.ts +60 -0
- package/src/components/PageHeader/PageHeaderAction/PageHeaderAction.spec.tsx +550 -383
- package/src/components/PageHeader/PageHeaderAction/PageHeaderAction.stories.tsx +12 -1
- package/src/components/PageHeader/PageHeaderAction/PageHeaderAction.tsx +95 -45
- package/src/components/PageHeader/PageHeaderAction/index.ts +2 -0
- package/src/components/PageHeader/PageHeaderBulkActions/PageHeaderBulkActions.spec.tsx +2 -2
- package/src/components/PageHeader/PageHeaderBulkActions/PageHeaderBulkActions.tsx +56 -43
- package/src/components/PageHeader/index.ts +3 -2
- package/src/components/models.ts +30 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../src/components/Actions/Action/Action.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAG3B,MAAM,WAAW,WAAW;IAC1B,wBAAwB;IACxB,MAAM,EAAE,UAAU,CAAC;IACnB,aAAa,CAAC,EAAE,kBAAkB,CAAC;CACpC;AAED,MAAM,MAAM,kBAAkB,GAAG,CAC/B,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,EAC/C,MAAM,EAAE,iBAAiB,KACtB,IAAI,CAAC;AAqBV;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAKtC,CAAC;
|
|
1
|
+
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../src/components/Actions/Action/Action.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAG3B,MAAM,WAAW,WAAW;IAC1B,wBAAwB;IACxB,MAAM,EAAE,UAAU,CAAC;IACnB,aAAa,CAAC,EAAE,kBAAkB,CAAC;CACpC;AAED,MAAM,MAAM,kBAAkB,GAAG,CAC/B,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,EAC/C,MAAM,EAAE,iBAAiB,KACtB,IAAI,CAAC;AAqBV;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAKtC,CAAC;AA+IJ;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,GAC1B,MAAM,IAAI,oBAAoB,CAEhC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,GAC1B,MAAM,IAAI,iBAAiB,CAE7B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Not } from '../../types';
|
|
2
|
-
import { ConfirmationConfig, ConfirmationMode } from '../ConfirmDialog';
|
|
3
2
|
import { IconName } from '../Icons';
|
|
4
|
-
import {
|
|
3
|
+
import { ConfirmAction, DefaultHandler, LinkAction } from '../models';
|
|
5
4
|
/**
|
|
6
5
|
* @deprecated ActionData interface has been changed and no longer uses `actionType` property
|
|
7
6
|
*/
|
|
@@ -9,13 +8,13 @@ export declare enum ActionType {
|
|
|
9
8
|
Navigation = 0,
|
|
10
9
|
Context = 1
|
|
11
10
|
}
|
|
12
|
-
export type ActionData<THandler =
|
|
11
|
+
export type ActionData<THandler = DefaultHandler> = ContextActionData<THandler> | NavigationActionData;
|
|
13
12
|
/**
|
|
14
13
|
* Properties necessary for context type action
|
|
15
14
|
* to render an element with JS handler
|
|
16
15
|
* and specified confirmation mode for click event
|
|
17
16
|
*/
|
|
18
|
-
export interface ContextActionData<THandler =
|
|
17
|
+
export interface ContextActionData<THandler = DefaultHandler> extends ActionBaseData, ConfirmAction, HandledAction<THandler>, Not<LinkAction> {
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
20
|
* Properties necessary for navigation type action
|
|
@@ -23,21 +22,10 @@ export interface ContextActionData<THandler = DefaultSelectionHandler> extends A
|
|
|
23
22
|
*/
|
|
24
23
|
export interface NavigationActionData extends ActionBaseData, LinkAction, Not<ConfirmAction>, Not<HandledAction<unknown>> {
|
|
25
24
|
}
|
|
26
|
-
export
|
|
27
|
-
interface LinkAction {
|
|
28
|
-
/** Path to navigate to when the action is clicked. */
|
|
29
|
-
path: string;
|
|
30
|
-
}
|
|
31
|
-
interface HandledAction<THandler> {
|
|
25
|
+
export interface HandledAction<THandler> {
|
|
32
26
|
/** Callback emitted when a user clicks on the Action. */
|
|
33
27
|
onActionSelected: THandler;
|
|
34
28
|
}
|
|
35
|
-
interface ConfirmAction {
|
|
36
|
-
/** If set to 'Simple', the action will require confirmation. If set to 'Advanced', action will require confirmation via a confirmation pop up. (default: 'None') */
|
|
37
|
-
confirmationMode?: ConfirmationMode;
|
|
38
|
-
/** Optional text overrides for the confirmation pop up. */
|
|
39
|
-
confirmationConfig?: ConfirmationConfig;
|
|
40
|
-
}
|
|
41
29
|
interface ActionBaseData {
|
|
42
30
|
/**
|
|
43
31
|
* @deprecated this property is no longer used,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Actions.models.d.ts","sourceRoot":"","sources":["../../../src/components/Actions/Actions.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Actions.models.d.ts","sourceRoot":"","sources":["../../../src/components/Actions/Actions.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEtE;;GAEG;AACH,oBAAY,UAAU;IACpB,UAAU,IAAA;IACV,OAAO,IAAA;CACR;AAED,MAAM,MAAM,UAAU,CAAC,QAAQ,GAAG,cAAc,IAC5C,iBAAiB,CAAC,QAAQ,CAAC,GAC3B,oBAAoB,CAAC;AAEzB;;;;GAIG;AACH,MAAM,WAAW,iBAAiB,CAAC,QAAQ,GAAG,cAAc,CAC1D,SAAQ,cAAc,EACpB,aAAa,EACb,aAAa,CAAC,QAAQ,CAAC,EACvB,GAAG,CAAC,UAAU,CAAC;CAAG;AAEtB;;;GAGG;AACH,MAAM,WAAW,oBACf,SAAQ,cAAc,EACpB,UAAU,EACV,GAAG,CAAC,aAAa,CAAC,EAClB,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;CAAG;AAElC,MAAM,WAAW,aAAa,CAAC,QAAQ;IACrC,yDAAyD;IACzD,gBAAgB,EAAE,QAAQ,CAAC;CAC5B;AAED,UAAU,cAAc;IACtB;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconName } from '../../Icons';
|
|
3
|
-
import {
|
|
4
|
-
export interface ButtonProps extends BaseButtonOptions {
|
|
5
|
-
/** Button's height (default: '50px') */
|
|
6
|
-
height?: string | number;
|
|
7
|
-
/** Button's width (default: '50px') */
|
|
8
|
-
width?: string | number;
|
|
9
|
-
/** Optional icon */
|
|
10
|
-
icon?: IconName;
|
|
11
|
-
}
|
|
3
|
+
import { ContextButtonProps, NavigationButtonProps } from './Button.model';
|
|
12
4
|
/**
|
|
13
5
|
* Button which can render an icon.
|
|
14
6
|
* @example
|
|
7
|
+
* // to render a button element
|
|
15
8
|
* <Button type="button" icon={IconName.X} />
|
|
9
|
+
* // to render an anchor element
|
|
10
|
+
* <Button path="/home" icon={IconName.X} />
|
|
16
11
|
*/
|
|
17
|
-
export declare const Button: React.ForwardRefExoticComponent<
|
|
12
|
+
export declare const Button: React.ForwardRefExoticComponent<((NavigationButtonProps | ContextButtonProps) & {
|
|
13
|
+
width?: string | number | undefined;
|
|
14
|
+
height?: string | number | undefined;
|
|
15
|
+
icon?: IconName | undefined;
|
|
16
|
+
}) & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
18
17
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,QAAQ,EAAS,MAAM,aAAa,CAAC;AAE9C,OAAO,EAEL,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AA8HxB;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM;;;;gEAGH,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IconName } from '../../Icons';
|
|
2
|
+
import { ButtonIconOptions, CommonJsButtonOptions, CommonNavigationButtonOptions } from '../Button.model';
|
|
3
|
+
export type ButtonProps = (NavigationButtonProps | ContextButtonProps) & {
|
|
4
|
+
/** Optional button's height (default: 50px) */
|
|
5
|
+
width?: string | number;
|
|
6
|
+
/** Optional button's height (default: 50px) */
|
|
7
|
+
height?: string | number;
|
|
8
|
+
/** Optional icon (default: IconName.ChevronRight) */
|
|
9
|
+
icon?: IconName;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Button options for icon buttons with navigation
|
|
13
|
+
*/
|
|
14
|
+
export interface NavigationButtonProps extends CommonNavigationButtonOptions, Pick<ButtonIconOptions, 'icon'> {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Button options for icon buttons with JS handlers
|
|
18
|
+
*/
|
|
19
|
+
export interface ContextButtonProps extends CommonJsButtonOptions, Pick<ButtonIconOptions, 'icon'> {
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=Button.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.model.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/Button/Button.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,6BAA6B,EAC9B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,WAAW,GACnB,CAAC,qBAAqB,GAAG,kBAAkB,CAAC,GAAG;IAC7C,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,qDAAqD;IACrD,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEN;;GAEG;AACH,MAAM,WAAW,qBACf,SAAQ,6BAA6B,EACnC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC;CAAG;AAEtC;;GAEG;AACH,MAAM,WAAW,kBACf,SAAQ,qBAAqB,EAC3B,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,26 +1,88 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { Not } from '../../types';
|
|
3
|
+
import { IconName } from '../Icons';
|
|
4
|
+
import { LinkAction } from '../models';
|
|
2
5
|
/** Button's context type. This type defines the button's colors and border. */
|
|
3
6
|
export declare enum ButtonContext {
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated not used anymore and will be removed in future versions.
|
|
9
|
+
* Define `path` property instead of `onButtonClicked`,
|
|
10
|
+
* `onBlur` properties for navigation type buttons.
|
|
11
|
+
* This will render link instead of button.
|
|
12
|
+
*/
|
|
4
13
|
Navigation = 0,
|
|
5
14
|
Context = 1,
|
|
6
15
|
Active = 2,
|
|
7
16
|
Icon = 3,
|
|
8
17
|
None = 4
|
|
9
18
|
}
|
|
10
|
-
/**
|
|
11
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Button options for buttons with JS handlers
|
|
21
|
+
* (renders as a button)
|
|
22
|
+
*/
|
|
23
|
+
export interface CommonJsButtonOptions extends CommonButtonOptions, ButtonSizeOptions, JsButtonOptions, Not<LinkAction> {
|
|
24
|
+
/**
|
|
25
|
+
* Buttons type (default: 'Active').
|
|
26
|
+
* Affects buttons color and border.
|
|
27
|
+
* Button context type `Navigation` is deprecated and will
|
|
28
|
+
* be removed in future versions.
|
|
29
|
+
* For navigation type of buttons define `path` instead
|
|
30
|
+
* of `onButtonClicked`, `onBlur` and `type` properties
|
|
31
|
+
* to render link instead of button.
|
|
32
|
+
*/
|
|
33
|
+
buttonContext?: ButtonContext;
|
|
12
34
|
/** HTML button type attribute (default: 'button') */
|
|
13
35
|
type?: 'button' | 'submit' | 'reset';
|
|
14
|
-
|
|
15
|
-
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Button options for buttons with navigation
|
|
39
|
+
* (renders as a link)
|
|
40
|
+
*/
|
|
41
|
+
export interface CommonNavigationButtonOptions extends CommonButtonOptions, ButtonSizeOptions, LinkAction, Not<JsButtonOptions> {
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Button text options
|
|
45
|
+
*/
|
|
46
|
+
export interface TextButtonOptions {
|
|
47
|
+
/** Button text */
|
|
48
|
+
text?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Button icon options
|
|
52
|
+
*/
|
|
53
|
+
export interface ButtonIconOptions {
|
|
54
|
+
/** Optional icon */
|
|
55
|
+
icon?: IconName;
|
|
56
|
+
/** Optional Icon Position */
|
|
57
|
+
iconPosition?: 'left' | 'right';
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Button event handler options for JS buttons
|
|
61
|
+
*/
|
|
62
|
+
interface JsButtonOptions {
|
|
63
|
+
/** Event to raise when the button is clicked */
|
|
64
|
+
onButtonClicked?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
65
|
+
onBlur?: React.FocusEventHandler<HTMLButtonElement>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Button size options
|
|
69
|
+
*/
|
|
70
|
+
interface ButtonSizeOptions {
|
|
71
|
+
/** Button's height */
|
|
72
|
+
height?: string | number;
|
|
73
|
+
/** Button's width */
|
|
74
|
+
width?: string | number;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Common properties for all buttons
|
|
78
|
+
*/
|
|
79
|
+
interface CommonButtonOptions {
|
|
16
80
|
/** Whether the button is disabled. If set to true, disallows interactions. (default: undefined) */
|
|
17
81
|
disabled?: boolean;
|
|
18
82
|
/** Optional class */
|
|
19
83
|
className?: string;
|
|
20
84
|
/** Optional data-test-id */
|
|
21
85
|
dataTestId?: string;
|
|
22
|
-
/** Event to raise when the button is clicked */
|
|
23
|
-
onButtonClicked?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
24
|
-
onBlur?: React.FocusEventHandler<HTMLButtonElement>;
|
|
25
86
|
}
|
|
87
|
+
export {};
|
|
26
88
|
//# sourceMappingURL=Button.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.model.d.ts","sourceRoot":"","sources":["../../../src/components/Buttons/Button.model.ts"],"names":[],"mappings":";AAAA,+EAA+E;AAC/E,oBAAY,aAAa;IACvB,UAAU,IAAA;IACV,OAAO,IAAA;IACP,MAAM,IAAA;IACN,IAAI,IAAA;IACJ,IAAI,IAAA;CACL;AAED
|
|
1
|
+
{"version":3,"file":"Button.model.d.ts","sourceRoot":"","sources":["../../../src/components/Buttons/Button.model.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,+EAA+E;AAC/E,oBAAY,aAAa;IACvB;;;;;OAKG;IACH,UAAU,IAAA;IACV,OAAO,IAAA;IACP,MAAM,IAAA;IACN,IAAI,IAAA;IACJ,IAAI,IAAA;CACL;AAED;;;GAGG;AACH,MAAM,WAAW,qBACf,SAAQ,mBAAmB,EACzB,iBAAiB,EACjB,eAAe,EACf,GAAG,CAAC,UAAU,CAAC;IACjB;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,qDAAqD;IACrD,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;CACtC;AAED;;;GAGG;AACH,MAAM,WAAW,6BACf,SAAQ,mBAAmB,EACzB,iBAAiB,EACjB,UAAU,EACV,GAAG,CAAC,eAAe,CAAC;CAAG;AAE3B;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,6BAA6B;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC;AAED;;GAEG;AACH,UAAU,eAAe;IACvB,gDAAgD;IAChD,eAAe,CAAC,EAAE,CAChB,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KACnD,IAAI,CAAC;IACV,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CACrD;AAED;;GAEG;AACH,UAAU,iBAAiB;IACzB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,UAAU,mBAAmB;IAC3B,mGAAmG;IACnG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { BaseButtonOptions } from '../Button.model';
|
|
4
|
-
export interface CompositeButtonProps extends BaseButtonOptions {
|
|
5
|
-
/** Button's height (default: '30px') */
|
|
6
|
-
height?: string | number;
|
|
7
|
-
/** Button's width (default: undefined) */
|
|
8
|
-
width?: string | number;
|
|
9
|
-
/** Button text */
|
|
10
|
-
text?: string;
|
|
11
|
-
/** Optional icon */
|
|
12
|
-
icon?: IconName;
|
|
13
|
-
/** Optional Icon Position */
|
|
14
|
-
iconPosition?: 'left' | 'right';
|
|
15
|
-
}
|
|
2
|
+
import { CompositeButtonProps } from './CompositeButton.model';
|
|
16
3
|
/**
|
|
17
4
|
* Button which can render an text together with an icon.
|
|
18
5
|
* @example
|
|
6
|
+
* // Rendered as button
|
|
19
7
|
* <CompositeButton type="button" text="Click me!" />
|
|
8
|
+
*
|
|
9
|
+
* // Rendered as link
|
|
10
|
+
* <CompositeButton path="/home" text="Click me!" />
|
|
20
11
|
*/
|
|
21
12
|
export declare const CompositeButton: React.FC<CompositeButtonProps>;
|
|
22
13
|
//# sourceMappingURL=CompositeButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompositeButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/CompositeButton/CompositeButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CompositeButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/CompositeButton/CompositeButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EACL,oBAAoB,EAGrB,MAAM,yBAAyB,CAAC;AAGjC;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgC1D,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ButtonIconOptions, CommonJsButtonOptions, CommonNavigationButtonOptions, TextButtonOptions } from '../Button.model';
|
|
2
|
+
export type CompositeButtonProps = (CompositeNavigationButtonProps | CompositeJsButtonProps) & {
|
|
3
|
+
/** Optional button's height (default: 50px) */
|
|
4
|
+
width?: string | number;
|
|
5
|
+
/** Optional button's height (default: undefined) */
|
|
6
|
+
height?: string | number;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Button options for composite buttons (text + icon)
|
|
10
|
+
* with navigation
|
|
11
|
+
*/
|
|
12
|
+
export interface CompositeNavigationButtonProps extends CommonNavigationButtonOptions, ButtonIconOptions, TextButtonOptions {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Button options for composite buttons (text + icon)
|
|
16
|
+
* with JS handlers
|
|
17
|
+
*/
|
|
18
|
+
export interface CompositeJsButtonProps extends CommonJsButtonOptions, ButtonIconOptions, TextButtonOptions {
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=CompositeButton.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompositeButton.model.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/CompositeButton/CompositeButton.model.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,6BAA6B,EAC7B,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,oBAAoB,GAC5B,CAAC,8BAA8B,GAAG,sBAAsB,CAAC,GAAG;IAC1D,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC;AAEN;;;GAGG;AACH,MAAM,WAAW,8BACf,SAAQ,6BAA6B,EACnC,iBAAiB,EACjB,iBAAiB;CAAG;AAExB;;;GAGG;AACH,MAAM,WAAW,sBACf,SAAQ,qBAAqB,EAC3B,iBAAiB,EACjB,iBAAiB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/CompositeButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface TextButtonProps extends BaseButtonOptions {
|
|
4
|
-
/** Button's height (default: '30px') */
|
|
5
|
-
height?: string | number;
|
|
6
|
-
/** Button's width (default: undefined) */
|
|
7
|
-
width?: string | number;
|
|
8
|
-
/** Button text */
|
|
9
|
-
text?: string;
|
|
10
|
-
}
|
|
2
|
+
import { TextButtonProps } from './TextButton.model';
|
|
11
3
|
/**
|
|
12
4
|
* Button which can render a text string.
|
|
13
5
|
* @example
|
|
6
|
+
* // Rendered as button
|
|
14
7
|
* <TextButton type="button" text="Click me!" />
|
|
8
|
+
*
|
|
9
|
+
* // Rendered as link
|
|
10
|
+
* <TextButton path="/home" text="Click me!" />
|
|
15
11
|
*/
|
|
16
12
|
export declare const TextButton: React.FC<TextButtonProps>;
|
|
17
13
|
//# sourceMappingURL=TextButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/TextButton/TextButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TextButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/TextButton/TextButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EACL,eAAe,EAGhB,MAAM,oBAAoB,CAAC;AAG5B;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsBhD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CommonJsButtonOptions, CommonNavigationButtonOptions, TextButtonOptions } from '../Button.model';
|
|
2
|
+
export type TextButtonProps = (TextNavigationButtonProps | TextContextButtonProps) & {
|
|
3
|
+
/** Optional button's height (default: 30px) */
|
|
4
|
+
height?: string | number;
|
|
5
|
+
/** Optional button's width (default: undefined) */
|
|
6
|
+
width?: string | number;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Button options for text buttons with navigation
|
|
10
|
+
*/
|
|
11
|
+
export interface TextNavigationButtonProps extends CommonNavigationButtonOptions, TextButtonOptions {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Button options for text buttons with JS handlers
|
|
15
|
+
*/
|
|
16
|
+
export interface TextContextButtonProps extends CommonJsButtonOptions, TextButtonOptions {
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=TextButton.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextButton.model.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/TextButton/TextButton.model.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,6BAA6B,EAC7B,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,eAAe,GACvB,CAAC,yBAAyB,GAAG,sBAAsB,CAAC,GAAG;IACrD,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AAEN;;GAEG;AACH,MAAM,WAAW,yBACf,SAAQ,6BAA6B,EACnC,iBAAiB;CAAG;AAExB;;GAEG;AACH,MAAM,WAAW,sBACf,SAAQ,qBAAqB,EAC3B,iBAAiB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/TextButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export * from './Button';
|
|
1
2
|
export { ButtonContext } from './Button.model';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export { TextButton, TextButtonProps } from './TextButton/TextButton';
|
|
3
|
+
export * from './CompositeButton';
|
|
4
|
+
export * from './TextButton';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Buttons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Buttons/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Explorer.d.ts","sourceRoot":"","sources":["../../../src/components/Explorer/Explorer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"Explorer.d.ts","sourceRoot":"","sources":["../../../src/components/Explorer/Explorer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAEL,OAAO,IAAI,KAAK,EAIjB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAGhC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EACL,MAAM,EAGN,cAAc,EACd,QAAQ,EACT,MAAM,SAAS,CAAC;AACjB,OAAO,EAAc,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAKlE,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,8BAA8B,EAC9B,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAK1B,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,IAAI;IAC3C,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAErB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhC,iCAAiC;IACjC,mBAAmB,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAEtC,2GAA2G;IAC3G,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;IAE7C,0GAA0G;IAC1G,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;IAEtB,sCAAsC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,8B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;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IAEzD;;;OAGG;IACH,oBAAoB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAEnD,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,UAAU,EAAE,CAAC;CAC/C;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,iLA8SnB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { Data } from '../../types/data';
|
|
|
3
3
|
import { FilterValues } from '../Filters';
|
|
4
4
|
import { SortData } from '../List';
|
|
5
5
|
import { ErrorType } from '../models';
|
|
6
|
-
import {
|
|
6
|
+
import { PageHeaderJsActionProps } from '../PageHeader/PageHeaderAction/PageHeaderAction.model';
|
|
7
7
|
/**
|
|
8
8
|
* Item selection can have two modes:
|
|
9
9
|
* * `SINGLE_ITEMS` - if single items were checked by the user. The selected items are available on the `items` property.
|
|
@@ -18,7 +18,7 @@ interface SelectAllSelection<T extends Data> {
|
|
|
18
18
|
mode: 'SELECT_ALL';
|
|
19
19
|
filters: FilterValues<T>;
|
|
20
20
|
}
|
|
21
|
-
export interface ExplorerBulkAction<T extends Data> extends Omit<
|
|
21
|
+
export interface ExplorerBulkAction<T extends Data> extends Omit<PageHeaderJsActionProps, 'onClick'> {
|
|
22
22
|
/**
|
|
23
23
|
* Callback to emit when a user clicks on the component
|
|
24
24
|
* @param arg ItemSelection details of the bulk action
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Explorer.model.d.ts","sourceRoot":"","sources":["../../../src/components/Explorer/Explorer.model.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM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KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,GACjE,CAAC,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CACrE;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB"}
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
import { LocationDescriptor } from 'history';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { Data } from '../../../types/data';
|
|
3
4
|
import { ExplorerProps } from '../Explorer';
|
|
4
5
|
import { ExplorerDataProviderConnection } from '../Explorer.model';
|
|
5
6
|
export interface NavigationExplorerProps<T extends Data> extends Omit<ExplorerProps<T>, 'selectionMode' | 'onBulkActionsToggled' | 'onItemClicked'> {
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* - If a `LocationDescriptor` is provided, it will be treated as a path to the station to
|
|
9
|
+
* navigate to, and a link will be generated.
|
|
10
|
+
* - If a `function` is provided, it will be called when the create action is
|
|
11
|
+
* clicked, and a button will be generated.
|
|
12
|
+
*/
|
|
13
|
+
onCreateAction?: (() => void) | LocationDescriptor;
|
|
14
|
+
/**
|
|
15
|
+
* Function that calculates the URL to navigate to when a row of data is clicked.
|
|
16
|
+
* - The function should take the item data as input and return the URL string.
|
|
17
|
+
* - Navigation will not occur if bulk actions are open.
|
|
18
|
+
*/
|
|
9
19
|
calculateNavigateUrl?: (item: T) => string;
|
|
10
20
|
}
|
|
11
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationExplorer.d.ts","sourceRoot":"","sources":["../../../../src/components/Explorer/NavigationExplorer/NavigationExplorer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAG3C,OAAO,EAAY,aAAa,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,WAAW,uBAAuB,CAAC,CAAC,SAAS,IAAI,CACrD,SAAQ,IAAI,CACV,aAAa,CAAC,CAAC,CAAC,EAChB,eAAe,GAAG,sBAAsB,GAAG,eAAe,CAC3D;IACD
|
|
1
|
+
{"version":3,"file":"NavigationExplorer.d.ts","sourceRoot":"","sources":["../../../../src/components/Explorer/NavigationExplorer/NavigationExplorer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAG3C,OAAO,EAAY,aAAa,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,WAAW,uBAAuB,CAAC,CAAC,SAAS,IAAI,CACrD,SAAQ,IAAI,CACV,aAAa,CAAC,CAAC,CAAC,EAChB,eAAe,GAAG,sBAAsB,GAAG,eAAe,CAC3D;IACD;;;;;OAKG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,kBAAkB,CAAC;IAEnD;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;CAC5C;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,2LAwC7B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { CommonJsButtonOptions } from '../../Buttons/Button.model';
|
|
3
3
|
import { ConfirmationConfig, ConfirmationMode } from '../../ConfirmDialog';
|
|
4
4
|
import { BaseFormControl } from '../Form.models';
|
|
5
|
-
export interface ToggleButtonProps extends Omit<
|
|
5
|
+
export interface ToggleButtonProps extends Omit<CommonJsButtonOptions, 'buttonContext' | 'onButtonClicked'>, BaseFormControl {
|
|
6
6
|
/** Current value. Can be used to control state (default: false) */
|
|
7
7
|
value?: boolean;
|
|
8
8
|
/** Whether the 'OFF'/'ON' text is shown (default: true) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleButton.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/ToggleButton/ToggleButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ToggleButton.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/ToggleButton/ToggleButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAEL,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIjD,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,qBAAqB,EAAE,eAAe,GAAG,iBAAiB,CAAC,EACtE,eAAe;IACjB,mEAAmE;IACnE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,0GAA0G;IAC1G,gBAAgB,CAAC,EAAE,OAAO,CAAC,gBAAgB,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC;IAClE,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,+FAA+F;IAC/F,eAAe,CAAC,EAAE,CAChB,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,EACtD,KAAK,EAAE,OAAO,KACX,IAAI,CAAC;CACX;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuIpD,CAAC"}
|
|
@@ -51,7 +51,7 @@ export interface ListProps<T extends Data> {
|
|
|
51
51
|
* Defines whether an action button will be rendered (default: true)
|
|
52
52
|
* Will not render if selectMode is not 'None'
|
|
53
53
|
*/
|
|
54
|
-
showActionButton?: boolean;
|
|
54
|
+
showActionButton?: boolean | ((data: T) => boolean);
|
|
55
55
|
/** Defines when the loading of the next page is triggered. The number represents the number of row left, before a load is triggered. (default: 10) */
|
|
56
56
|
loadingTriggerOffset?: number;
|
|
57
57
|
/** Defines how the list data should be sorted */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/components/List/List.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAEhC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGxC,OAAO,EACL,MAAM,EACN,mBAAmB,EAEnB,cAAc,EACd,QAAQ,EACT,MAAM,cAAc,CAAC;AAMtB,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,IAAI;IACvC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,2GAA2G;IAC3G,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;IACtB,gBAAgB;IAChB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,4DAA4D;IAC5D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AC;IAC3B,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;wGAGoG;IACpG,aAAa,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,CAAC;IAClE;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,UAAU,EAAE,CAAC;CAC/C;AAMD,eAAO,MAAM,SAAS,WAAY,MAAM,KAAG,IAW1C,CAAC;AA6BF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO,oVAoBoB,WA+KvC,CAAC"}
|
|
@@ -1,26 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface PageHeaderProps {
|
|
4
|
-
/** Title shown in page header */
|
|
5
|
-
title?: string;
|
|
6
|
-
/** Subtitle shown in page header */
|
|
7
|
-
subtitle?: string;
|
|
8
|
-
/** Array of actions to be rendered. (default: []) */
|
|
9
|
-
actions?: PageHeaderActionProps[];
|
|
10
|
-
/** Array of Bulk Actions to be rendered. If populated, Bulk Actions will become available. (default: []) */
|
|
11
|
-
bulkActions?: PageHeaderActionProps[];
|
|
12
|
-
/** Whether or bulk actions are shown by default. (default: false) */
|
|
13
|
-
openBulkActionsOnStart?: boolean;
|
|
14
|
-
/** Whether or not bulk actions are disabled (default: false)*/
|
|
15
|
-
bulkActionsDisabled?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Callback to emit when Bulk Actions is toggled
|
|
18
|
-
* The expanded state is supplied as an argument
|
|
19
|
-
*/
|
|
20
|
-
onBulkActionsToggled?: (expanded: boolean) => void;
|
|
21
|
-
/** CSS Class name for additional styles */
|
|
22
|
-
className?: string;
|
|
23
|
-
}
|
|
2
|
+
import { PageHeaderProps } from './PageHeader.model';
|
|
24
3
|
/**
|
|
25
4
|
* Primary header for stations. Accepts a title, subtitle, actions, and bulk actions.
|
|
26
5
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuGhD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PageHeaderActionProps } from './PageHeaderAction/PageHeaderAction.model';
|
|
2
|
+
export interface PageHeaderProps {
|
|
3
|
+
/** Title shown in page header */
|
|
4
|
+
title?: string;
|
|
5
|
+
/** Subtitle shown in page header */
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
/** Array of actions to be rendered. (default: []) */
|
|
8
|
+
actions?: PageHeaderActionProps[];
|
|
9
|
+
/** Array of Bulk Actions to be rendered. If populated, Bulk Actions will become available. (default: []) */
|
|
10
|
+
bulkActions?: PageHeaderActionProps[];
|
|
11
|
+
/** Whether or bulk actions are shown by default. (default: false) */
|
|
12
|
+
openBulkActionsOnStart?: boolean;
|
|
13
|
+
/** Whether or not bulk actions are disabled (default: false)*/
|
|
14
|
+
bulkActionsDisabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Callback to emit when Bulk Actions is toggled
|
|
17
|
+
* The expanded state is supplied as an argument
|
|
18
|
+
*/
|
|
19
|
+
onBulkActionsToggled?: (expanded: boolean) => void;
|
|
20
|
+
/** CSS Class name for additional styles */
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=PageHeader.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.model.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAElF,MAAM,WAAW,eAAe;IAC9B,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAClC,4GAA4G;IAC5G,WAAW,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACtC,qEAAqE;IACrE,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,+DAA+D;IAC/D,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|