@limetech/lime-web-components 5.13.0 → 5.15.0

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 (45) hide show
  1. package/dist/application/index.d.ts +1 -0
  2. package/dist/application/index.d.ts.map +1 -1
  3. package/dist/application/index.js +1 -0
  4. package/dist/application/repository.d.ts +22 -0
  5. package/dist/application/repository.d.ts.map +1 -0
  6. package/dist/application/repository.js +1 -0
  7. package/dist/application/types.d.ts +3 -3
  8. package/dist/application/types.d.ts.map +1 -1
  9. package/dist/conditionregistry/conditionregistry.d.ts +58 -0
  10. package/dist/conditionregistry/conditionregistry.d.ts.map +1 -0
  11. package/dist/conditionregistry/conditionregistry.js +1 -0
  12. package/dist/conditionregistry/index.d.ts +3 -0
  13. package/dist/conditionregistry/index.d.ts.map +1 -0
  14. package/dist/conditionregistry/index.js +2 -0
  15. package/dist/conditionregistry/types.d.ts +15 -0
  16. package/dist/conditionregistry/types.d.ts.map +1 -0
  17. package/dist/conditionregistry/types.js +3 -0
  18. package/dist/config/repository.d.ts +9 -0
  19. package/dist/config/repository.d.ts.map +1 -1
  20. package/dist/core/state.d.ts +1 -1
  21. package/dist/core/state.d.ts.map +1 -1
  22. package/dist/es5/application/index.js +1 -0
  23. package/dist/es5/application/repository.js +2 -0
  24. package/dist/es5/conditionregistry/conditionregistry.js +2 -0
  25. package/dist/es5/conditionregistry/index.js +5 -0
  26. package/dist/es5/conditionregistry/types.js +5 -0
  27. package/dist/es5/index.js +1 -0
  28. package/dist/es5/limetype/index.js +1 -0
  29. package/dist/es5/limetype/repository.js +2 -0
  30. package/dist/index.d.ts +1 -0
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +1 -0
  33. package/dist/limeobject/commands/create-dialog.d.ts +7 -0
  34. package/dist/limeobject/commands/create-dialog.d.ts.map +1 -1
  35. package/dist/limeobject/repository.d.ts +18 -0
  36. package/dist/limeobject/repository.d.ts.map +1 -1
  37. package/dist/limetype/index.d.ts +1 -0
  38. package/dist/limetype/index.d.ts.map +1 -1
  39. package/dist/limetype/index.js +1 -0
  40. package/dist/limetype/repository.d.ts +22 -0
  41. package/dist/limetype/repository.d.ts.map +1 -0
  42. package/dist/limetype/repository.js +1 -0
  43. package/dist/limetype/types.d.ts +3 -3
  44. package/dist/limetype/types.d.ts.map +1 -1
  45. package/package.json +9 -9
@@ -1,5 +1,6 @@
1
1
  export * from './types';
2
2
  export * from './decorators';
3
+ export * from './repository';
3
4
  export * from './session';
4
5
  export * from './user';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/application/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/application/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './types';
2
2
  export * from './decorators';
3
+ export * from './repository';
3
4
  export * from './session';
4
5
  export * from './user';
@@ -0,0 +1,22 @@
1
+ import { StateRepository } from '../core';
2
+ import { User } from './user';
3
+ import { Session } from './session';
4
+ /**
5
+ * @beta
6
+ * @group Application
7
+ */
8
+ export interface ApplicationRepository extends StateRepository {
9
+ /**
10
+ * Get the name of the application
11
+ */
12
+ getApplicationName(): string | undefined;
13
+ /**
14
+ * Get the currently logged in user
15
+ */
16
+ getCurrentUser(): User | undefined;
17
+ /**
18
+ * Get the current session
19
+ */
20
+ getSession(): Session | undefined;
21
+ }
22
+ //# sourceMappingURL=repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/application/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;GAGG;AACH,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC1D;;OAEG;IACH,kBAAkB,IAAI,MAAM,GAAG,SAAS,CAAC;IAEzC;;OAEG;IACH,cAAc,IAAI,IAAI,GAAG,SAAS,CAAC;IAEnC;;OAEG;IACH,UAAU,IAAI,OAAO,GAAG,SAAS,CAAC;CACrC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,14 +1,14 @@
1
- import { StateRepository } from '../core';
1
+ import { ApplicationRepository } from './repository';
2
2
  declare const SERVICE_NAME = "state.application";
3
3
  declare module '../core/platform' {
4
4
  interface PlatformServiceNameType {
5
5
  /**
6
- * @see {@link StateRepository}
6
+ * @see {@link ApplicationRepository}
7
7
  */
8
8
  Application: typeof SERVICE_NAME;
9
9
  }
10
10
  interface LimeWebComponentPlatform {
11
- get(name: PlatformServiceNameType['Application']): StateRepository;
11
+ get(name: PlatformServiceNameType['Application']): ApplicationRepository;
12
12
  }
13
13
  }
14
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/application/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,QAAA,MAAM,YAAY,sBAAsB,CAAC;AAIzC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,WAAW,EAAE,OAAO,YAAY,CAAC;KACpC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC;KACtE;CACJ"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/application/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAErD,QAAA,MAAM,YAAY,sBAAsB,CAAC;AAIzC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,WAAW,EAAE,OAAO,YAAY,CAAC;KACpC;IAED,UAAU,wBAAwB;QAC9B,GAAG,CACC,IAAI,EAAE,uBAAuB,CAAC,aAAa,CAAC,GAC7C,qBAAqB,CAAC;KAC5B;CACJ"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * This interface defines callbacks intended to be registered to the {@link Condition} registry
3
+ *
4
+ * @alpha
5
+ * @group Conditions
6
+ */
7
+ export type Condition<T = unknown> = {
8
+ /**
9
+ * The condition type, describing what to evaluate the condition for, for example "limeobject"
10
+ */
11
+ type: string;
12
+ evaluate: (subject: T, params: any) => boolean;
13
+ id: string;
14
+ };
15
+ /**
16
+ * Service for adding and retrieving, and checking {@link Condition}s to and from the condition registry
17
+ *
18
+ * @alpha
19
+ * @group Conditions
20
+ */
21
+ export interface ConditionRegistry {
22
+ /**
23
+ * Add a {@link Condition} to the registry
24
+ *
25
+ * @param condition - the condition to pass to the registry
26
+ * @throws error if the id already exists in the registry
27
+ */
28
+ addCondition(condition: Condition): any;
29
+ /**
30
+ * Remove a {@link Condition} from the registry
31
+ *
32
+ * @param condition - the condition to remove
33
+ * @throws error if the id does not exist in the registry
34
+ */
35
+ removeCondition(condition: Condition): any;
36
+ /**
37
+ * Checks if a {@link Condition} exists on the registry
38
+ *
39
+ * @param id - id of the condition
40
+ * @returns true if it exists, false otherwise
41
+ */
42
+ hasCondition(id: string): boolean;
43
+ /**
44
+ * Gets all {@link Condition}s
45
+ *
46
+ * @returns a list of all existing conditions
47
+ */
48
+ getConditions(): Condition[];
49
+ /**
50
+ * Gets a {@link Condition} by id
51
+ *
52
+ * @param id - id of the condition
53
+ * @throws error if no condition was found with the specified id
54
+ * @returns the condition with the specified id
55
+ */
56
+ getCondition(id: string): Condition;
57
+ }
58
+ //# sourceMappingURL=conditionregistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditionregistry.d.ts","sourceRoot":"","sources":["../../src/conditionregistry/conditionregistry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,OAAO,IAAI;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAWb,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,OAAO,CAAC;IAK/C,EAAE,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;OAKG;IACH,YAAY,CAAC,SAAS,EAAE,SAAS,OAAE;IAEnC;;;;;OAKG;IACH,eAAe,CAAC,SAAS,EAAE,SAAS,OAAE;IAEtC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IAElC;;;;OAIG;IACH,aAAa,IAAI,SAAS,EAAE,CAAC;IAE7B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './conditionregistry';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conditionregistry/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './conditionregistry';
2
+ export * from './types';
@@ -0,0 +1,15 @@
1
+ import { ConditionRegistry as Service } from './conditionregistry';
2
+ declare const SERVICE_NAME = "conditionRegistry";
3
+ declare module '../core/platform' {
4
+ interface PlatformServiceNameType {
5
+ /**
6
+ * @see {@link Service | ConditionRegistry}
7
+ */
8
+ ConditionRegistry: typeof SERVICE_NAME;
9
+ }
10
+ interface LimeWebComponentPlatform {
11
+ get(name: PlatformServiceNameType['ConditionRegistry']): Service;
12
+ }
13
+ }
14
+ export {};
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/conditionregistry/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnE,QAAA,MAAM,YAAY,sBAAsB,CAAC;AAIzC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,iBAAiB,EAAE,OAAO,YAAY,CAAC;KAC1C;IACD,UAAU,wBAAwB;QAC9B,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,mBAAmB,CAAC,GAAG,OAAO,CAAC;KACpE;CACJ"}
@@ -0,0 +1,3 @@
1
+ import { PlatformServiceName } from '../core/platform';
2
+ const SERVICE_NAME = 'conditionRegistry';
3
+ PlatformServiceName.ConditionRegistry = SERVICE_NAME;
@@ -18,5 +18,14 @@ export interface ConfigRepository extends StateRepository {
18
18
  * @returns the config
19
19
  */
20
20
  get<T = any>(key: string): T;
21
+ /**
22
+ * Set config
23
+ *
24
+ * @param key - name of the key containing the config
25
+ * @param data - the config data
26
+ * @returns a promise that will be resolved when the config has been saved
27
+ * @beta
28
+ */
29
+ set?<T = any>(key: string, data: T): Promise<void>;
21
30
  }
22
31
  //# sourceMappingURL=repository.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/config/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACrD;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAE1B;;;;;OAKG;IACH,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;CAChC"}
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/config/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACrD;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAE1B;;;;;OAKG;IACH,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;IAE7B;;;;;;;OAOG;IACH,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD"}
@@ -13,7 +13,7 @@ export interface StateRepository {
13
13
  * @param options - options for the state selector
14
14
  * @returns unsubscribe callback
15
15
  */
16
- subscribe(callback: () => void, options?: StateOptions): () => void;
16
+ subscribe(callback: (...args: unknown[]) => void, options?: StateOptions): () => void;
17
17
  }
18
18
  /**
19
19
  * Options for the state selector
@@ -1 +1 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/core/state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;;;OAMG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,MAAM,IAAI,CAAC;CACvE;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;OAGG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC,CAAC;IAEjC;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC;CAC3C;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC1D;;;;;OAKG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC;CAC1D"}
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/core/state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;;;OAMG;IACH,SAAS,CACL,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,EACtC,OAAO,CAAC,EAAE,YAAY,GACvB,MAAM,IAAI,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;OAGG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC,CAAC;IAEjC;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC;CAC3C;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC1D;;;;;OAKG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC;CAC1D"}
@@ -3,5 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./types"), exports);
5
5
  tslib_1.__exportStar(require("./decorators"), exports);
6
+ tslib_1.__exportStar(require("./repository"), exports);
6
7
  tslib_1.__exportStar(require("./session"), exports);
7
8
  tslib_1.__exportStar(require("./user"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./conditionregistry"), exports);
5
+ tslib_1.__exportStar(require("./types"), exports);
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var platform_1 = require("../core/platform");
4
+ var SERVICE_NAME = 'conditionRegistry';
5
+ platform_1.PlatformServiceName.ConditionRegistry = SERVICE_NAME;
package/dist/es5/index.js CHANGED
@@ -22,3 +22,4 @@ tslib_1.__exportStar(require("./userdata"), exports);
22
22
  tslib_1.__exportStar(require("./application"), exports);
23
23
  tslib_1.__exportStar(require("./userpreferences"), exports);
24
24
  tslib_1.__exportStar(require("./datetimeformatter"), exports);
25
+ tslib_1.__exportStar(require("./conditionregistry"), exports);
@@ -4,5 +4,6 @@ var tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./acl"), exports);
5
5
  tslib_1.__exportStar(require("./limetype"), exports);
6
6
  tslib_1.__exportStar(require("./property"), exports);
7
+ tslib_1.__exportStar(require("./repository"), exports);
7
8
  tslib_1.__exportStar(require("./types"), exports);
8
9
  tslib_1.__exportStar(require("./decorator"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -41,4 +41,5 @@ export * from './userdata';
41
41
  export * from './application';
42
42
  export * from './userpreferences';
43
43
  export * from './datetimeformatter';
44
+ export * from './conditionregistry';
44
45
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceR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CAAC;AACpC,cAAc,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -41,3 +41,4 @@ export * from './userdata';
41
41
  export * from './application';
42
42
  export * from './userpreferences';
43
43
  export * from './datetimeformatter';
44
+ export * from './conditionregistry';
@@ -28,6 +28,13 @@ export declare class CreateLimeobjectDialogCommand {
28
28
  title?: string;
29
29
  subtitle?: string;
30
30
  context?: LimeWebComponentContext;
31
+ /**
32
+ * When `context` is used, this is the name of the relation on the
33
+ * reference {@link LimeObject} to use when auto attaching the new object.
34
+ *
35
+ * @beta
36
+ */
37
+ autoAttachRelation?: string;
31
38
  /**
32
39
  * @beta
33
40
  * Specifies any command that can be used to save the result of the dialog.
@@ -1 +1 @@
1
- {"version":3,"file":"create-dialog.d.ts","sourceRoot":"","sources":["../../../src/limeobject/commands/create-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;GAWG;AACH,qBAGa,6BAA6B;IACtC;;OAEG;IACI,QAAQ,EAAE,QAAQ,CAAC;IAE1B;;OAEG;IACI,UAAU,CAAC,EAAE,GAAG,CAAC;IAExB;;OAEG;IACI,KAAK,CAAC,EAAE,OAAO,CAAS;IAKxB,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAEzC;;;;OAIG;IACI,WAAW,CAAC,EAAE,GAAG,CAAC;CAC5B"}
1
+ {"version":3,"file":"create-dialog.d.ts","sourceRoot":"","sources":["../../../src/limeobject/commands/create-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAK1C;;;;;;;;;;;GAWG;AACH,qBAGa,6BAA6B;IACtC;;OAEG;IACI,QAAQ,EAAE,QAAQ,CAAC;IAE1B;;OAEG;IACI,UAAU,CAAC,EAAE,GAAG,CAAC;IAExB;;OAEG;IACI,KAAK,CAAC,EAAE,OAAO,CAAS;IAKxB,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAEzC;;;;;OAKG;IACI,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAEnC;;;;OAIG;IACI,WAAW,CAAC,EAAE,GAAG,CAAC;CAC5B"}
@@ -1,5 +1,6 @@
1
1
  import { Expression } from '../query';
2
2
  import { StateRepository } from '../core';
3
+ import { LimeObject } from './limeobject';
3
4
  /**
4
5
  * @public
5
6
  * @group Lime objects
@@ -43,6 +44,23 @@ export interface LimeObjectRepository extends StateRepository {
43
44
  * @param id - the id of the limeobject
44
45
  */
45
46
  deleteObject(limetype: string, id: number): Promise<void>;
47
+ /**
48
+ * Get an already loaded {@link LimeObject}
49
+ *
50
+ * @beta
51
+ * @param limetype - name of the limetype
52
+ * @param id - the id of the object
53
+ * @returns the {@link LimeObject} if it is loaded, otherwise `undefined`
54
+ */
55
+ getObject?(limetype: string, id: number): LimeObject | undefined;
56
+ /**
57
+ * Get all loaded {@link LimeObject}s of a specific limetype
58
+ *
59
+ * @beta
60
+ * @param limetype - name of the limetype
61
+ * @returns list of loaded {@link LimeObject}s
62
+ */
63
+ getObjects?(limetype: string): LimeObject[];
46
64
  }
47
65
  /**
48
66
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/limeobject/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IACzD;;;;;OAKG;IACH,UAAU,CAAC,QAA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AU,EAAE,CAAC;CAC/C;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CACvC"}
@@ -1,6 +1,7 @@
1
1
  export * from './acl';
2
2
  export * from './limetype';
3
3
  export * from './property';
4
+ export * from './repository';
4
5
  export * from './types';
5
6
  export * from './decorator';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/limetype/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/limetype/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export * from './acl';
2
2
  export * from './limetype';
3
3
  export * from './property';
4
+ export * from './repository';
4
5
  export * from './types';
5
6
  export * from './decorator';
@@ -0,0 +1,22 @@
1
+ import { StateRepository } from '../core';
2
+ import { LimeType } from './limetype';
3
+ /**
4
+ * @beta
5
+ * @group Lime types
6
+ */
7
+ export interface LimeTypeRepository extends StateRepository {
8
+ /**
9
+ * Get a list of all loaded {@link LimeType}s
10
+ *
11
+ * @returns list of {@link LimeType}s
12
+ */
13
+ getLimeTypes(): LimeType[];
14
+ /**
15
+ * Get a loaded {@link LimeType} with the given name
16
+ *
17
+ * @param name - name of the {@link LimeType}
18
+ * @returns the {@link LimeType} or `undefined`
19
+ */
20
+ getLimeType(name: string): LimeType | undefined;
21
+ }
22
+ //# sourceMappingURL=repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/limetype/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACvD;;;;OAIG;IACH,YAAY,IAAI,QAAQ,EAAE,CAAC;IAE3B;;;;;OAKG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;CACnD"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,14 +1,14 @@
1
- import { StateRepository } from '../core';
1
+ import { LimeTypeRepository } from './repository';
2
2
  declare const SERVICE_NAME = "state.limetypes";
3
3
  declare module '../core/platform' {
4
4
  interface PlatformServiceNameType {
5
5
  /**
6
- * @see {@link StateRepository}
6
+ * @see {@link LimeTypeRepository}
7
7
  */
8
8
  LimeTypeRepository: typeof SERVICE_NAME;
9
9
  }
10
10
  interface LimeWebComponentPlatform {
11
- get(name: PlatformServiceNameType['LimeTypeRepository']): StateRepository;
11
+ get(name: PlatformServiceNameType['LimeTypeRepository']): LimeTypeRepository;
12
12
  }
13
13
  }
14
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/limetype/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,QAAA,MAAM,YAAY,oBAAoB,CAAC;AAIvC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,kBAAkB,EAAE,OAAO,YAAY,CAAC;KAC3C;IAED,UAAU,wBAAwB;QAC9B,GAAG,CACC,IAAI,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,GACpD,eAAe,CAAC;KACtB;CACJ"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/limetype/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,QAAA,MAAM,YAAY,oBAAoB,CAAC;AAIvC,OAAO,QAAQ,kBAAkB,CAAC;IAC9B,UAAU,uBAAuB;QAC7B;;WAEG;QACH,kBAAkB,EAAE,OAAO,YAAY,CAAC;KAC3C;IAED,UAAU,wBAAwB;QAC9B,GAAG,CACC,IAAI,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,GACpD,kBAAkB,CAAC;KACzB;CACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-web-components",
3
- "version": "5.13.0",
3
+ "version": "5.15.0",
4
4
  "description": "Lime Web Components",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -31,23 +31,23 @@
31
31
  "dependencies": {
32
32
  "@stencil/core": "^2.22.3",
33
33
  "rxjs": "^7.8.1",
34
- "tslib": "^2.6.0"
34
+ "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@commitlint/config-conventional": "^16.2.4",
38
- "@microsoft/api-extractor": "^7.36.1",
38
+ "@microsoft/api-extractor": "^7.36.4",
39
39
  "@types/jest": "^27.5.0",
40
- "@typescript-eslint/eslint-plugin": "^5.61.0",
41
- "@typescript-eslint/parser": "^5.61.0",
40
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
41
+ "@typescript-eslint/parser": "^5.62.0",
42
42
  "commitizen": "^4.3.0",
43
43
  "cz-conventional-changelog": "^3.3.0",
44
- "eslint": "^8.44.0",
45
- "eslint-config-prettier": "^8.8.0",
44
+ "eslint": "^8.49.0",
45
+ "eslint-config-prettier": "^8.10.0",
46
46
  "eslint-plugin-ban": "^1.6.0",
47
47
  "eslint-plugin-prefer-arrow": "^1.2.3",
48
48
  "eslint-plugin-prettier": "^4.2.1",
49
- "eslint-plugin-react": "^7.32.2",
50
- "eslint-plugin-sonarjs": "^0.19.0",
49
+ "eslint-plugin-react": "^7.33.2",
50
+ "eslint-plugin-sonarjs": "^0.21.0",
51
51
  "eslint-plugin-tsdoc": "^0.2.17",
52
52
  "jest": "^27.5.1",
53
53
  "jest-cli": "^27.5.1",