@axinom/mosaic-ui 0.32.0-rc.5 → 0.32.0-rc.6

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 (67) hide show
  1. package/dist/components/Actions/Action/Action.d.ts.map +1 -1
  2. package/dist/components/Buttons/Button/Button.d.ts +9 -10
  3. package/dist/components/Buttons/Button/Button.d.ts.map +1 -1
  4. package/dist/components/Buttons/Button/Button.model.d.ts +21 -0
  5. package/dist/components/Buttons/Button/Button.model.d.ts.map +1 -0
  6. package/dist/components/Buttons/Button/index.d.ts +3 -0
  7. package/dist/components/Buttons/Button/index.d.ts.map +1 -0
  8. package/dist/components/Buttons/Button.model.d.ts +69 -7
  9. package/dist/components/Buttons/Button.model.d.ts.map +1 -1
  10. package/dist/components/Buttons/CompositeButton/CompositeButton.d.ts +5 -14
  11. package/dist/components/Buttons/CompositeButton/CompositeButton.d.ts.map +1 -1
  12. package/dist/components/Buttons/CompositeButton/CompositeButton.model.d.ts +20 -0
  13. package/dist/components/Buttons/CompositeButton/CompositeButton.model.d.ts.map +1 -0
  14. package/dist/components/Buttons/CompositeButton/index.d.ts +3 -0
  15. package/dist/components/Buttons/CompositeButton/index.d.ts.map +1 -0
  16. package/dist/components/Buttons/TextButton/TextButton.d.ts +5 -9
  17. package/dist/components/Buttons/TextButton/TextButton.d.ts.map +1 -1
  18. package/dist/components/Buttons/TextButton/TextButton.model.d.ts +18 -0
  19. package/dist/components/Buttons/TextButton/TextButton.model.d.ts.map +1 -0
  20. package/dist/components/Buttons/TextButton/index.d.ts +3 -0
  21. package/dist/components/Buttons/TextButton/index.d.ts.map +1 -0
  22. package/dist/components/Buttons/index.d.ts +3 -3
  23. package/dist/components/Buttons/index.d.ts.map +1 -1
  24. package/dist/components/Explorer/Explorer.d.ts.map +1 -1
  25. package/dist/components/Explorer/NavigationExplorer/NavigationExplorer.d.ts +3 -2
  26. package/dist/components/Explorer/NavigationExplorer/NavigationExplorer.d.ts.map +1 -1
  27. package/dist/components/FormElements/ToggleButton/ToggleButton.d.ts +2 -2
  28. package/dist/components/FormElements/ToggleButton/ToggleButton.d.ts.map +1 -1
  29. package/dist/components/List/ListRow/ListRow.d.ts.map +1 -1
  30. package/dist/components/PageHeader/PageHeaderAction/PageHeaderAction.d.ts.map +1 -1
  31. package/dist/components/models.d.ts +5 -2
  32. package/dist/components/models.d.ts.map +1 -1
  33. package/dist/index.es.js +3 -3
  34. package/dist/index.es.js.map +1 -1
  35. package/dist/index.js +3 -3
  36. package/dist/index.js.map +1 -1
  37. package/package.json +3 -3
  38. package/src/components/Actions/Action/Action.spec.tsx +14 -0
  39. package/src/components/Actions/Action/Action.tsx +5 -2
  40. package/src/components/Buttons/Button/Button.model.ts +30 -0
  41. package/src/components/Buttons/Button/Button.scss +3 -1
  42. package/src/components/Buttons/Button/Button.spec.tsx +254 -83
  43. package/src/components/Buttons/Button/Button.stories.tsx +20 -0
  44. package/src/components/Buttons/Button/Button.tsx +103 -32
  45. package/src/components/Buttons/Button/index.ts +2 -0
  46. package/src/components/Buttons/Button.model.ts +84 -9
  47. package/src/components/Buttons/CompositeButton/CompositeButton.model.ts +32 -0
  48. package/src/components/Buttons/CompositeButton/CompositeButton.scss +6 -1
  49. package/src/components/Buttons/CompositeButton/CompositeButton.spec.tsx +277 -89
  50. package/src/components/Buttons/CompositeButton/CompositeButton.stories.tsx +20 -0
  51. package/src/components/Buttons/CompositeButton/CompositeButton.tsx +94 -30
  52. package/src/components/Buttons/CompositeButton/index.ts +2 -0
  53. package/src/components/Buttons/TextButton/TextButton.model.ts +27 -0
  54. package/src/components/Buttons/TextButton/TextButton.scss +3 -1
  55. package/src/components/Buttons/TextButton/TextButton.spec.tsx +198 -87
  56. package/src/components/Buttons/TextButton/TextButton.stories.tsx +20 -0
  57. package/src/components/Buttons/TextButton/TextButton.tsx +74 -20
  58. package/src/components/Buttons/TextButton/index.ts +2 -0
  59. package/src/components/Buttons/index.ts +3 -6
  60. package/src/components/Explorer/Explorer.tsx +2 -2
  61. package/src/components/Explorer/NavigationExplorer/NavigationExplorer.tsx +4 -3
  62. package/src/components/FormElements/CustomTags/CustomTags.spec.tsx +26 -16
  63. package/src/components/FormElements/ToggleButton/ToggleButton.tsx +2 -2
  64. package/src/components/List/ListRow/ListRow.tsx +18 -13
  65. package/src/components/PageHeader/PageHeaderAction/PageHeaderAction.spec.tsx +513 -388
  66. package/src/components/PageHeader/PageHeaderAction/PageHeaderAction.tsx +11 -7
  67. package/src/components/models.ts +5 -2
@@ -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;AA4IJ;;;;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
+ {"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,18 +1,17 @@
1
1
  import React from 'react';
2
2
  import { IconName } from '../../Icons';
3
- import { BaseButtonOptions } from '../Button.model';
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<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
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,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAS,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAiB,MAAM,iBAAiB,CAAC;AAGnE,MAAM,WAAW,WAAY,SAAQ,iBAAiB;IACpD,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,oBAAoB;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAuDD;;;;GAIG;AACH,eAAO,MAAM,MAAM,uFAElB,CAAC"}
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,3 @@
1
+ export { Button } from './Button';
2
+ export { ButtonProps } from './Button.model';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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
- /** Base options for all button components */
11
- export interface BaseButtonOptions {
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
- /** Button type (default: 'Navigation') */
15
- buttonContext?: ButtonContext;
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,6CAA6C;AAC7C,MAAM,WAAW,iBAAiB;IAChC,qDAAqD;IACrD,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,0CAA0C;IAC1C,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,mGAAmG;IACnG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,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"}
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 { IconName } from '../../Icons';
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;AAE1B,OAAO,EAAE,QAAQ,EAAS,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAiB,MAAM,iBAAiB,CAAC;AAInE,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,6BAA6B;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6C1D,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,3 @@
1
+ export { CompositeButton } from './CompositeButton';
2
+ export { CompositeButtonProps } from './CompositeButton.model';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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 { BaseButtonOptions } from '../Button.model';
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;AAE1B,OAAO,EAAE,iBAAiB,EAAiB,MAAM,iBAAiB,CAAC;AAGnE,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuChD,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,3 @@
1
+ export { TextButton } from './TextButton';
2
+ export { TextButtonProps } from './TextButton.model';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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 { Button, ButtonProps } from './Button/Button';
3
- export { CompositeButton, CompositeButtonProps, } from './CompositeButton/CompositeButton';
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,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EACL,eAAe,EACf,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
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,EACL,OAAO,IAAI,KAAK,EAKjB,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;AAEjB,OAAO,EAAc,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAIlE,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,8BAA8B,EAC9B,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAK1B,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,IAAI;IAC3C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AAW,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;IAEtC,yEAAyE;IACzE,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;IAE/B,gNAAgN;IAChN,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,sDAAsD;IACtD,YAAY,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAEtC,2EAA2E;IAC3E,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE/B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAE5D;;;;OAIG;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"}
@@ -1,15 +1,16 @@
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
  /**
7
- * - If a `string` is provided, it will be treated as a path to the station to
8
+ * - If a `LocationDescriptor` is provided, it will be treated as a path to the station to
8
9
  * navigate to, and a link will be generated.
9
10
  * - If a `function` is provided, it will be called when the create action is
10
11
  * clicked, and a button will be generated.
11
12
  */
12
- onCreateAction?: (() => void) | string;
13
+ onCreateAction?: (() => void) | LocationDescriptor;
13
14
  /**
14
15
  * Function that calculates the URL to navigate to when a row of data is clicked.
15
16
  * - The function should take the item data as input and return the URL string.
@@ -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;;;;;OAKG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,MAAM,CAAC;IAEvC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;CAC5C;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,2LAwC7B,CAAC"}
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 { BaseButtonOptions } from '../../Buttons/Button.model';
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<BaseButtonOptions, 'buttonContext' | 'onButtonClicked'>, BaseFormControl {
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,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAEjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIjD,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,iBAAiB,EAAE,eAAe,GAAG,iBAAiB,CAAC,EAClE,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"}
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,EACL,kBAAkB,EAClB,gBAAgB,EAEjB,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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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 +1 @@
1
- {"version":3,"file":"PageHeaderAction.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/PageHeaderAction/PageHeaderAction.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,OAAO,EACL,qBAAqB,EAErB,uBAAuB,EACvB,+BAA+B,EAChC,MAAM,0BAA0B,CAAC;AAuBlC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAK1D,CAAC;AAiKJ;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,qBAAqB,GAC5B,MAAM,IAAI,+BAA+B,CAE3C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,qBAAqB,GAC5B,MAAM,IAAI,uBAAuB,CAEnC"}
1
+ {"version":3,"file":"PageHeaderAction.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/PageHeaderAction/PageHeaderAction.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,OAAO,EACL,qBAAqB,EAErB,uBAAuB,EACvB,+BAA+B,EAChC,MAAM,0BAA0B,CAAC;AAuBlC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAK1D,CAAC;AAqKJ;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,qBAAqB,GAC5B,MAAM,IAAI,+BAA+B,CAE3C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,qBAAqB,GAC5B,MAAM,IAAI,uBAAuB,CAEnC"}
@@ -1,3 +1,4 @@
1
+ import { LocationDescriptor } from 'history';
1
2
  import React from 'react';
2
3
  import { ConfirmationConfig, ConfirmationMode } from './ConfirmDialog';
3
4
  import { MessageBarProps } from './MessageBar';
@@ -21,8 +22,10 @@ export type StationMessage = MessageBarProps & {
21
22
  export type ErrorType = StationError | string | Object | Error;
22
23
  /** Properties to generate a link */
23
24
  export interface LinkAction {
24
- /** Path to navigate to when the action is clicked. */
25
- path: string;
25
+ /** Where to navigate to when the action is clicked. */
26
+ path: LocationDescriptor<unknown>;
27
+ /** If set to true, the link will open in a new tab. */
28
+ openInNewTab?: boolean;
26
29
  }
27
30
  /**
28
31
  * Properties for Action click confirmation
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/components/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,GAAG;IAC1D;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG;IAC7C;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CACjC,CAAC;AAEF;;GAEG;AAEH,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE/D,oCAAoC;AACpC,MAAM,WAAW,UAAU;IACzB,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;CACd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