@unipin/angular-applet 18.9.4 → 18.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unipin/angular-applet",
3
- "version": "18.9.4",
3
+ "version": "18.9.5",
4
4
  "scripts": {
5
5
  "ng": "ng",
6
6
  "start": "ng serve",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unipin/angular-applet",
3
- "version": "18.9.4",
3
+ "version": "18.9.5",
4
4
  "sideEffects": false,
5
5
  "homepage": "https://backoffice.unipin.com/",
6
6
  "description": "Angular specific wrappers for UniPin applet",
@@ -72,6 +72,7 @@
72
72
  [searchable]="true"
73
73
  [items]="c.options!"
74
74
  [multiple]="c.multiple || false"
75
+ [groupBy]="c.groupBy || ''"
75
76
  />
76
77
  }
77
78
 
@@ -70,4 +70,11 @@ export interface FilterField {
70
70
  * @type {string}
71
71
  */
72
72
  max?: string;
73
+
74
+ /**
75
+ * Property to group options for select-like fields (select, searchable-select, checkbox).
76
+ * It allows to group options by a specified field.
77
+ * @type {string}
78
+ */
79
+ groupBy?: string;
73
80
  }
@@ -16,6 +16,7 @@
16
16
  [appendTo]="appendTo"
17
17
  [clearable]="clearable"
18
18
  [searchable]="searchable"
19
+ [groupBy]="groupBy"
19
20
  (change)="change($event);"
20
21
  />
21
22
 
@@ -108,6 +108,13 @@ export class FormSelectComponent implements ControlValueAccessor, Validator {
108
108
  */
109
109
  @Input() public appendTo: string = '';
110
110
 
111
+ /**
112
+ * Input variable specifying how to group the items in the select input.
113
+ * @type {string}
114
+ * @default ''
115
+ */
116
+ @Input() public groupBy: string = '';
117
+
111
118
  /**
112
119
  * Boolean flag indicating whether the select input has been touched.
113
120
  * @type {boolean}