@acorex/components 22.0.0-next.3 → 22.0.0-next.30
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/combo-box/README.md +26 -0
- package/fesm2022/acorex-components-calendar.mjs +10 -12
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-combo-box.mjs +237 -0
- package/fesm2022/acorex-components-combo-box.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-DCcRJYfF.mjs +50 -0
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-DCcRJYfF.mjs.map +1 -0
- package/fesm2022/{acorex-components-conversation-open-composer-picker-for-files-Hh5Oyp3p.mjs → acorex-components-conversation-open-composer-picker-for-files-BuNEjswI.mjs} +2 -2
- package/fesm2022/{acorex-components-conversation-open-composer-picker-for-files-Hh5Oyp3p.mjs.map → acorex-components-conversation-open-composer-picker-for-files-BuNEjswI.mjs.map} +1 -1
- package/fesm2022/acorex-components-conversation.mjs +1104 -6411
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +42 -36
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +42 -12
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +358 -319
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +11 -1
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +2 -2
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +3 -2
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-file-viewer.mjs +346 -125
- package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +139 -34
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +2 -2
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +211 -74
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +30 -29
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +2 -2
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/package.json +7 -3
- package/types/acorex-components-combo-box.d.ts +114 -0
- package/types/acorex-components-conversation.d.ts +136 -56
- package/types/acorex-components-datetime-box.d.ts +16 -4
- package/types/acorex-components-datetime-input.d.ts +74 -71
- package/types/acorex-components-file-viewer.d.ts +109 -17
- package/types/acorex-components-grid-layout-builder.d.ts +25 -2
- package/types/acorex-components-menu.d.ts +26 -4
- package/types/acorex-components-number-box.d.ts +3 -1
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-CNHiM1Sp.mjs +0 -106
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-CNHiM1Sp.mjs.map +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @acorex/components/combo-box
|
|
2
|
+
|
|
3
|
+
A minimal, accessible combo box component for selecting a value from a list, built on top of `@angular/aria/combobox`.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { AXComboBoxComponent, AXComboBoxItem } from '@acorex/components/combo-box';
|
|
9
|
+
|
|
10
|
+
const items: AXComboBoxItem[] = [
|
|
11
|
+
{ id: 'apple', text: 'Apple', value: 1 },
|
|
12
|
+
{ id: 'banana', text: 'Banana', value: 2 },
|
|
13
|
+
];
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<ax-combo-box [items]="items" [(value)]="selected" placeholder="Select a fruit"></ax-combo-box>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- `id`: used for typeahead filtering and list identity
|
|
21
|
+
- `text`: shown in the list and trigger/input
|
|
22
|
+
- `value`: written to `[(value)]` when the item is selected (`string | number`)
|
|
23
|
+
- `editable="true"` (default): a text input with typeahead filtering on `id`
|
|
24
|
+
- `editable="false"`: a non-editable, select-like trigger
|
|
25
|
+
- `look`: the same editor-container look schemes as other editors like `ax-text-box`
|
|
26
|
+
- `ax-prefix` / `ax-suffix`: project decorators into the editor container, same as `ax-text-box`
|
|
@@ -479,16 +479,14 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
|
|
|
479
479
|
}
|
|
480
480
|
const monthId = this._viewStartDate.monthOfYear;
|
|
481
481
|
const yearId = this._viewStartDate.year;
|
|
482
|
-
this._selectedMonthOption =
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
text: String(yearId),
|
|
491
|
-
};
|
|
482
|
+
this._selectedMonthOption = this._monthOptions.find((month) => month.id === monthId) ?? {
|
|
483
|
+
id: monthId,
|
|
484
|
+
text: `@acorex:${this.getMonthName(this._viewStartDate, 'short')}`,
|
|
485
|
+
};
|
|
486
|
+
this._selectedYearOption = this._yearOptions.find((year) => year.id === yearId) ?? {
|
|
487
|
+
id: yearId,
|
|
488
|
+
text: String(yearId),
|
|
489
|
+
};
|
|
492
490
|
}
|
|
493
491
|
/**
|
|
494
492
|
* @ignore
|
|
@@ -612,8 +610,8 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
|
|
|
612
610
|
});
|
|
613
611
|
}
|
|
614
612
|
}
|
|
615
|
-
//
|
|
616
|
-
r.cssClass[`column-start-${this._getWeekColumn(view.range.startTime)}`] = i == 0;
|
|
613
|
+
// ax-column-start-1 … ax-column-start-7 (first day of month grid offset)
|
|
614
|
+
r.cssClass[`ax-column-start-${this._getWeekColumn(view.range.startTime)}`] = i == 0;
|
|
617
615
|
if (this.cellClass)
|
|
618
616
|
applyCellClass(r);
|
|
619
617
|
return r;
|