@limetech/lime-web-components 5.44.0 → 5.45.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [5.45.0](https://github.com/Lundalogik/lime-web-components/compare/v5.44.0...v5.45.0) (2025-03-05)
2
+
3
+
4
+ ### Features
5
+
6
+
7
+ * **view:** add interfaces for layouts ([d3759e4](https://github.com/Lundalogik/lime-web-components/commit/d3759e43b88eb922551671be2efb48bcd2459cc8)), closes [Lundalogik/crm-feature#3190](https://github.com/Lundalogik/crm-feature/issues/3190)
8
+
1
9
  ## [5.44.0](https://github.com/Lundalogik/lime-web-components/compare/v5.43.0...v5.44.0) (2025-01-27)
2
10
 
3
11
 
@@ -3,3 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./registry"), exports);
5
5
  tslib_1.__exportStar(require("./types"), exports);
6
+ tslib_1.__exportStar(require("./layout"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
1
  export * from './registry';
2
2
  export * from './types';
3
+ export * from './layout';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/view/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/view/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './registry';
2
2
  export * from './types';
3
+ export * from './layout';
@@ -0,0 +1,31 @@
1
+ import { LoadOptions } from '../limeobject';
2
+ /**
3
+ * Layout config for a view
4
+ * @beta
5
+ * @group Views
6
+ */
7
+ export type ViewLayout<T extends object = object> = {
8
+ /**
9
+ * The order to sort the objects by for this layout
10
+ */
11
+ order?: LoadOptions['order'];
12
+ } & T;
13
+ /**
14
+ * Interface for components that render a configuration UI for a
15
+ * {@link ViewLayout}
16
+ * @beta
17
+ * @group Views
18
+ */
19
+ export interface ViewLayoutConfigurationComponent<T extends object = object> {
20
+ /**
21
+ * The layout config
22
+ */
23
+ layout: ViewLayout<T>;
24
+ /**
25
+ * Event emitter to use to emit events when the layout has changed
26
+ */
27
+ changeLayout: {
28
+ emit: (data?: ViewLayout<T>) => CustomEvent<ViewLayout<T>>;
29
+ };
30
+ }
31
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/view/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CAChC,GAAG,CAAC,CAAC;AAEN;;;;;GAKG;AACH,MAAM,WAAW,gCAAgC,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACvE;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAEtB;;OAEG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;KAC9D,CAAC;CACL"}
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-web-components",
3
- "version": "5.44.0",
3
+ "version": "5.45.0",
4
4
  "description": "Lime Web Components",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@stencil/core": "^2.22.3",
32
- "rxjs": "^7.8.1",
32
+ "rxjs": "^7.8.2",
33
33
  "tslib": "^2.8.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@commitlint/config-conventional": "^19.6.0",
37
- "@microsoft/api-extractor": "^7.49.1",
36
+ "@commitlint/config-conventional": "^19.7.1",
37
+ "@microsoft/api-extractor": "^7.51.1",
38
38
  "@types/jest": "^27.5.0",
39
39
  "@typescript-eslint/eslint-plugin": "^7.5.0",
40
40
  "@typescript-eslint/parser": "^7.5.0",