@guiexpert/table 1.1.4 → 1.1.5

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.
@@ -0,0 +1,22 @@
1
+ /**
2
+ * LicenseManager class responsible for managing license keys.
3
+ * As it's a singleton class, it only allows one instance of itself to exist.
4
+ *
5
+ * Usage: LicenseManager.getInstance().setLicenseKey('Your API key');
6
+ */
7
+ export declare class LicenseManager {
8
+ private static instance;
9
+ private alreadySet;
10
+ private constructor();
11
+ static getInstance(): LicenseManager;
12
+ /**
13
+ * Method to set the license key for the application.
14
+ * A 'meta' element is created with content as 'guiexperttable=<license key>'
15
+ * and appended into the head section of the document
16
+ *
17
+ * @param {string} key - The license key to set for the application.
18
+ *
19
+ * @return {void} - This method does not return anything
20
+ */
21
+ setLicenseKey(key: string | undefined): void;
22
+ }
@@ -15,13 +15,18 @@ import { GeKeyEvent } from "./data/common/event/ge-key-event";
15
15
  import { OnActionTriggeredIf } from "./action/on-action-triggered.if";
16
16
  import { ActionId } from "./action/action-id.type";
17
17
  import { ShortcutService } from "./action/shortcut.service";
18
+ import { LicenseManager } from './license-manager';
18
19
  /**
19
- * Class representing a TableScope.
20
- * @extends RenderScope
21
- * @implements OnActionTriggeredIf
20
+ * Creates a TableScope instance.
21
+ * @param {HTMLDivElement} hostElement - The host element.
22
+ * @param {TableModelIf} tableModel - The table model object.
23
+ * @param {TableOptionsIf} [tableOptions=new TableOptions()] - Optional table options object.
24
+ * @param {EventListenerIf} [eventListener=new EventAdapter()] - Optional event listener object.
25
+ * @param {DomServiceIf} [domService=new SimpleDomService()] - Optional DOM service object.
22
26
  */
23
27
  export declare class TableScope extends RenderScope implements OnActionTriggeredIf {
24
28
  protected readonly eventListener: EventListenerIf;
29
+ licenseManager: LicenseManager;
25
30
  mouseHandler: MouseHandler;
26
31
  inputHandler: InputHandler;
27
32
  shortcutService: ShortcutService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guiexpert/table",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },