@limetech/lime-web-components 6.0.0-beta.1 → 6.0.0-beta.2

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,28 @@
1
+ ## [6.0.0-beta.2](https://github.com/Lundalogik/lime-web-components/compare/v6.0.0-beta.1...v6.0.0-beta.2) (2025-03-25)
2
+
3
+
4
+ ### Features
5
+
6
+
7
+ * **action:** add hideLabel to action interface ([1c75f1a](https://github.com/Lundalogik/lime-web-components/commit/1c75f1aed7e35b6f5792176b1e3a2569868606c5))
8
+ * **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)
9
+
10
+ ## [5.46.0](https://github.com/Lundalogik/lime-web-components/compare/v5.45.0...v5.46.0) (2025-03-06)
11
+
12
+
13
+ ### Features
14
+
15
+
16
+ * **action:** add hideLabel to action interface ([1c75f1a](https://github.com/Lundalogik/lime-web-components/commit/1c75f1aed7e35b6f5792176b1e3a2569868606c5))
17
+
18
+ ## [5.45.0](https://github.com/Lundalogik/lime-web-components/compare/v5.44.0...v5.45.0) (2025-03-05)
19
+
20
+
21
+ ### Features
22
+
23
+
24
+ * **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)
25
+
1
26
  ## [6.0.0-beta.1](https://github.com/Lundalogik/lime-web-components/compare/v5.44.0...v6.0.0-beta.1) (2025-02-10)
2
27
 
3
28
 
@@ -18,6 +18,12 @@ export interface Action<T extends AnyCommand = AnyCommand> {
18
18
  * Icon of the action
19
19
  */
20
20
  icon?: string | Icon;
21
+ /**
22
+ * True if the icon should be displayed without a label.
23
+ * A `label` should still be provided for accessibility and for scenarios
24
+ * where the action is displayed differently, such as in a tooltip or menu.
25
+ */
26
+ hideLabel?: boolean;
21
27
  /**
22
28
  * Label to display on or next to the action.
23
29
  * The label will be translated by the {@link Translator}
@@ -1 +1 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/action/action.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EACV,qBAAqB,EACrB,iBAAiB,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAMjD;;;;GAIG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU;IACrD;;OAEG;IACH,OAAO,EAAE,CAAC,CAAC;IAEX;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/action/action.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EACV,qBAAqB,EACrB,iBAAiB,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAMjD;;;;GAIG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU;IACrD;;OAEG;IACH,OAAO,EAAE,CAAC,CAAC;IAEX;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -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"}
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-web-components",
3
- "version": "6.0.0-beta.1",
3
+ "version": "6.0.0-beta.2",
4
4
  "description": "Lime Web Components",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -34,12 +34,12 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@stencil/core": "^2.22.3",
37
- "rxjs": "^7.8.1",
37
+ "rxjs": "^7.8.2",
38
38
  "tslib": "^2.8.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@commitlint/config-conventional": "^19.7.1",
42
- "@microsoft/api-extractor": "^7.49.2",
41
+ "@commitlint/config-conventional": "^19.8.0",
42
+ "@microsoft/api-extractor": "^7.52.1",
43
43
  "@types/jest": "^27.5.0",
44
44
  "@typescript-eslint/eslint-plugin": "^7.5.0",
45
45
  "@typescript-eslint/parser": "^7.5.0",