@trackunit/iris-app-api 0.0.135 → 0.0.136

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.0.136](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.135...iris-app-api/0.0.136) (2023-11-23)
6
+
5
7
  ## [0.0.135](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.134...iris-app-api/0.0.135) (2023-11-20)
6
8
 
7
9
  ## [0.0.134](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.133...iris-app-api/0.0.134) (2023-11-20)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-api",
3
- "version": "0.0.135",
3
+ "version": "0.0.136",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "engines": {
@@ -0,0 +1,4 @@
1
+ /**
2
+ * CSS Color
3
+ */
4
+ export type CSSColor = `#${string}` | `rgb(${number},${number},${number})` | `rgba(${number},${number},${number},${number})` | `rgba(${number},${number},${number},${string})` | `hsl(${number},${string},${string})` | `hsla(${number},${string},${string},${number})` | `hsla(${number},${string},${string},${string})`;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=cssColor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssColor.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/cssColor.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * CSS Color\n */\nexport type CSSColor =\n | `#${string}`\n | `rgb(${number},${number},${number})`\n | `rgba(${number},${number},${number},${number})`\n | `rgba(${number},${number},${number},${string})`\n | `hsl(${number},${string},${string})`\n | `hsla(${number},${string},${string},${number})`\n | `hsla(${number},${string},${string},${string})`;\n"]}
@@ -1,6 +1,7 @@
1
1
  export * from "./adminExtensionManifest";
2
2
  export * from "./assetEventsActionsExtensionManifest";
3
3
  export * from "./assetHomeExtensionManifest";
4
+ export * from "./cssColor";
4
5
  export * from "./fleetExtensionManifest";
5
6
  export * from "./irisAppSettingsExtensionManifest";
6
7
  export * from "./reportExtensionManifest";
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./adminExtensionManifest"), exports);
5
5
  tslib_1.__exportStar(require("./assetEventsActionsExtensionManifest"), exports);
6
6
  tslib_1.__exportStar(require("./assetHomeExtensionManifest"), exports);
7
+ tslib_1.__exportStar(require("./cssColor"), exports);
7
8
  tslib_1.__exportStar(require("./fleetExtensionManifest"), exports);
8
9
  tslib_1.__exportStar(require("./irisAppSettingsExtensionManifest"), exports);
9
10
  tslib_1.__exportStar(require("./reportExtensionManifest"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/index.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,gFAAsD;AACtD,uEAA6C;AAC7C,mEAAyC;AACzC,6EAAmD;AACnD,oEAA0C;AAC1C,sEAA4C;AAC5C,oEAA0C","sourcesContent":["export * from \"./adminExtensionManifest\";\nexport * from \"./assetEventsActionsExtensionManifest\";\nexport * from \"./assetHomeExtensionManifest\";\nexport * from \"./fleetExtensionManifest\";\nexport * from \"./irisAppSettingsExtensionManifest\";\nexport * from \"./reportExtensionManifest\";\nexport * from \"./siteHomeExtensionManifest\";\nexport * from \"./widgetExtensionManifest\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/index.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,gFAAsD;AACtD,uEAA6C;AAC7C,qDAA2B;AAC3B,mEAAyC;AACzC,6EAAmD;AACnD,oEAA0C;AAC1C,sEAA4C;AAC5C,oEAA0C","sourcesContent":["export * from \"./adminExtensionManifest\";\nexport * from \"./assetEventsActionsExtensionManifest\";\nexport * from \"./assetHomeExtensionManifest\";\nexport * from \"./cssColor\";\nexport * from \"./fleetExtensionManifest\";\nexport * from \"./irisAppSettingsExtensionManifest\";\nexport * from \"./reportExtensionManifest\";\nexport * from \"./siteHomeExtensionManifest\";\nexport * from \"./widgetExtensionManifest\";\n"]}
@@ -1,5 +1,7 @@
1
1
  import { AbstractExtensionManifest, TranslationKey, Translations } from "../irisAppExtensionManifest";
2
- export type WidgetBreakpointTypes = "lg" | "xxs";
2
+ import { CSSColor } from "./cssColor";
3
+ export type WidgetBreakpointTypes = "sm" | "md" | "lg" | "xl";
4
+ export declare const widgetBreakpointTypes: WidgetBreakpointTypes[];
3
5
  export interface WidgetGridOptions {
4
6
  /**
5
7
  * Minimum width in grid units.
@@ -38,6 +40,11 @@ export interface WidgetExtensionManifest extends AbstractExtensionManifest {
38
40
  */
39
41
  hasEditDialog?: boolean;
40
42
  };
43
+ /**
44
+ * The widget will have this padding, default is "default" if not supplied
45
+ */
46
+ padding?: "none" | "default";
47
+ brandingColor?: CSSColor;
41
48
  supportedLocations: WidgetSupportedLocations[];
42
49
  gridOptions?: WidgetGridOptions;
43
50
  }
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.widgetBreakpointTypes = void 0;
4
+ exports.widgetBreakpointTypes = ["sm", "md", "lg", "xl"];
3
5
  //# sourceMappingURL=widgetExtensionManifest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"widgetExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/widgetExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { AbstractExtensionManifest, TranslationKey, Translations } from \"../irisAppExtensionManifest\";\n\nexport type WidgetBreakpointTypes = \"lg\" | \"xxs\";\n\nexport interface WidgetGridOptions {\n /**\n * Minimum width in grid units.\n */\n minW?: number | undefined;\n\n /**\n * Maximum width in grid units.\n */\n maxW?: number | undefined;\n\n /**\n * Minimum height in grid units.\n */\n minH?: number | undefined;\n\n /**\n * Maximum height in grid units.\n */\n maxH?: number | undefined;\n}\n\nexport type WidgetSupportedLocations = \"MY_HOME\" | \"SITE_HOME\";\n\n/**\n * BETA! DONT USE THIS YET - its under development\n */\nexport interface WidgetExtensionManifest extends AbstractExtensionManifest {\n type: \"WIDGET_EXTENSION\";\n\n header: {\n /**\n * The name of the widget to display in the header\n */\n name: string | Translations | TranslationKey;\n\n /**\n * The icon of the widget to display in the header\n */\n icon?: string;\n\n /**\n * If true a button will be on the header and an editDialog from the src folder of this extension will be loaded\n */\n hasEditDialog?: boolean;\n };\n\n supportedLocations: WidgetSupportedLocations[];\n gridOptions?: WidgetGridOptions;\n}\n"]}
1
+ {"version":3,"file":"widgetExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/widgetExtensionManifest.ts"],"names":[],"mappings":";;;AAIa,QAAA,qBAAqB,GAA4B,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import { AbstractExtensionManifest, TranslationKey, Translations } from \"../irisAppExtensionManifest\";\nimport { CSSColor } from \"./cssColor\";\n\nexport type WidgetBreakpointTypes = \"sm\" | \"md\" | \"lg\" | \"xl\";\nexport const widgetBreakpointTypes: WidgetBreakpointTypes[] = [\"sm\", \"md\", \"lg\", \"xl\"];\n\nexport interface WidgetGridOptions {\n /**\n * Minimum width in grid units.\n */\n minW?: number | undefined;\n\n /**\n * Maximum width in grid units.\n */\n maxW?: number | undefined;\n\n /**\n * Minimum height in grid units.\n */\n minH?: number | undefined;\n\n /**\n * Maximum height in grid units.\n */\n maxH?: number | undefined;\n}\n\nexport type WidgetSupportedLocations = \"MY_HOME\" | \"SITE_HOME\";\n\n/**\n * BETA! DONT USE THIS YET - its under development\n */\nexport interface WidgetExtensionManifest extends AbstractExtensionManifest {\n type: \"WIDGET_EXTENSION\";\n\n header: {\n /**\n * The name of the widget to display in the header\n */\n name: string | Translations | TranslationKey;\n\n /**\n * The icon of the widget to display in the header\n */\n icon?: string;\n\n /**\n * If true a button will be on the header and an editDialog from the src folder of this extension will be loaded\n */\n hasEditDialog?: boolean;\n };\n\n /**\n * The widget will have this padding, default is \"default\" if not supplied\n */\n padding?: \"none\" | \"default\";\n\n brandingColor?: CSSColor;\n\n supportedLocations: WidgetSupportedLocations[];\n gridOptions?: WidgetGridOptions;\n}\n"]}