@singularsystems/neo-core 0.10.53 → 0.10.55

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.
@@ -11,8 +11,8 @@ export interface IButtonOptions {
11
11
  /** Bootstrap outline */
12
12
  isOutline?: boolean;
13
13
  onClick?: (event: any, data?: any) => void;
14
- /** Font-awesome icon. Don't specify fa- */
15
- icon?: string;
14
+ /** Specify a string name if using font-awesome. No need to specify fa- */
15
+ icon?: any;
16
16
  /** Alignment of icon relative to text. Left by default. */
17
17
  iconAlignment?: "left" | "right";
18
18
  /** Button text. This should be set by providing html in the button tag itself. */
@@ -48,8 +48,8 @@ export interface IButtonOptions {
48
48
  export interface IButtonDropDownItem {
49
49
  /** Menu item text or component */
50
50
  text?: ElementOrText;
51
- /** Font awesome icon to show. */
52
- icon?: string;
51
+ /** Specify a string name if using font-awesome. No need to specify fa- */
52
+ icon?: any;
53
53
  /** Make this a non clickable header item. */
54
54
  header?: string;
55
55
  /** True if this should be a divider to seperate items. */
@@ -8,8 +8,8 @@ export interface INotificationOptions extends ICollapsableOptions {
8
8
  show?: boolean;
9
9
  /** Refresh value which can be used to reset the auto close timer. */
10
10
  refreshValue?: number;
11
- /** Font awesome icon name. */
12
- icon?: string;
11
+ /** Specify a string name if using font-awesome. No need to specify fa- */
12
+ icon?: any;
13
13
  }
14
14
  export interface INotification {
15
15
  hide(): void;
@@ -14,5 +14,5 @@ export interface IMenuRoute extends IRoute {
14
14
  /** Children to show as sub menu items. The breadCrumbParent property of each child will also be set to this item. */
15
15
  children?: IMenuRoute[];
16
16
  /** Icon to show on the menu. */
17
- icon?: string;
17
+ icon?: any;
18
18
  }
@@ -9,6 +9,14 @@ export declare const Settings: {
9
9
  form: {
10
10
  validationDisplayMode: ValidationDisplayMode;
11
11
  };
12
+ icons: {
13
+ loadingIcon: any;
14
+ errorIcon: any;
15
+ warningIcon: any;
16
+ infoIcon: any;
17
+ expanded: string;
18
+ collapsed: string;
19
+ };
12
20
  /** Grid default settings */
13
21
  grid: {
14
22
  /** When specified, the default bootstrap table borders (sides and cells) will be added */
package/dist/Settings.js CHANGED
@@ -8,6 +8,14 @@ export var Settings = {
8
8
  form: {
9
9
  validationDisplayMode: ValidationDisplayMode.AfterBlur,
10
10
  },
11
+ icons: {
12
+ loadingIcon: "fa-circle-notch",
13
+ errorIcon: "fa-exclamation-triangle",
14
+ warningIcon: "fa-exclamation-triangle",
15
+ infoIcon: "fa-exclamation-circle",
16
+ expanded: "far-minus-square",
17
+ collapsed: "far-plus-square"
18
+ },
11
19
  /** Grid default settings */
12
20
  grid: {
13
21
  /** When specified, the default bootstrap table borders (sides and cells) will be added */
@@ -46,7 +54,6 @@ export var Settings = {
46
54
  },
47
55
  expandButton: {
48
56
  variant: "light",
49
- icon: "far-plus-square",
50
57
  size: "sm",
51
58
  tabIndex: -1
52
59
  },
@@ -2,7 +2,7 @@ import { RuleSeverity, ValidationState } from './ValidationState';
2
2
  import { variant } from '../Components';
3
3
  export declare class ValidationDisplayInfo {
4
4
  additionalClassName: string;
5
- iconClass: string;
5
+ icon: any;
6
6
  errorText: string;
7
7
  asyncBusyText: string;
8
8
  warningText: string;
@@ -1,9 +1,9 @@
1
1
  import { RuleSeverity } from './ValidationState';
2
2
  import { Utils } from '../Utils';
3
+ import { Settings } from '../Settings';
3
4
  var ValidationDisplayInfo = /** @class */ (function () {
4
5
  function ValidationDisplayInfo() {
5
6
  this.additionalClassName = "";
6
- this.iconClass = "";
7
7
  this.errorText = "";
8
8
  this.asyncBusyText = "";
9
9
  this.warningText = "";
@@ -71,22 +71,22 @@ var ValidationDisplayHelper = /** @class */ (function () {
71
71
  switch (displayInfo.severity) {
72
72
  case RuleSeverity.Error:
73
73
  displayInfo.additionalClassName = "error";
74
- displayInfo.iconClass = "fa fa-exclamation-triangle";
74
+ displayInfo.icon = Settings.icons.errorIcon;
75
75
  displayInfo.variant = "danger";
76
76
  break;
77
77
  case RuleSeverity.AsyncBusy:
78
78
  displayInfo.additionalClassName = "busy";
79
- displayInfo.iconClass = "spinner-grow";
79
+ displayInfo.icon = Settings.icons.loadingIcon;
80
80
  displayInfo.variant = "info";
81
81
  break;
82
82
  case RuleSeverity.Warning:
83
83
  displayInfo.additionalClassName = "warning";
84
- displayInfo.iconClass = "fa fa-exclamation-triangle";
84
+ displayInfo.icon = Settings.icons.warningIcon;
85
85
  displayInfo.variant = "warning";
86
86
  break;
87
87
  case RuleSeverity.Info:
88
88
  displayInfo.additionalClassName = "info";
89
- displayInfo.iconClass = "fa fa-exclamation-circle";
89
+ displayInfo.icon = Settings.icons.infoIcon;
90
90
  displayInfo.variant = "info";
91
91
  break;
92
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-core",
3
- "version": "0.10.53",
3
+ "version": "0.10.55",
4
4
  "description": "Core functionality for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",