@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.
Files changed (46) hide show
  1. package/combo-box/README.md +26 -0
  2. package/fesm2022/acorex-components-calendar.mjs +10 -12
  3. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  4. package/fesm2022/acorex-components-combo-box.mjs +237 -0
  5. package/fesm2022/acorex-components-combo-box.mjs.map +1 -0
  6. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-DCcRJYfF.mjs +50 -0
  7. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-DCcRJYfF.mjs.map +1 -0
  8. package/fesm2022/{acorex-components-conversation-open-composer-picker-for-files-Hh5Oyp3p.mjs → acorex-components-conversation-open-composer-picker-for-files-BuNEjswI.mjs} +2 -2
  9. 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
  10. package/fesm2022/acorex-components-conversation.mjs +1104 -6411
  11. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  12. package/fesm2022/acorex-components-data-table.mjs +42 -36
  13. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  14. package/fesm2022/acorex-components-datetime-box.mjs +42 -12
  15. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  16. package/fesm2022/acorex-components-datetime-input.mjs +358 -319
  17. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  18. package/fesm2022/acorex-components-datetime-picker.mjs +11 -1
  19. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  20. package/fesm2022/acorex-components-decorators.mjs +2 -2
  21. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  22. package/fesm2022/acorex-components-dialog.mjs +3 -2
  23. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  24. package/fesm2022/acorex-components-file-viewer.mjs +346 -125
  25. package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
  26. package/fesm2022/acorex-components-grid-layout-builder.mjs +139 -34
  27. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  28. package/fesm2022/acorex-components-list.mjs +2 -2
  29. package/fesm2022/acorex-components-list.mjs.map +1 -1
  30. package/fesm2022/acorex-components-menu.mjs +211 -74
  31. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  32. package/fesm2022/acorex-components-number-box.mjs +30 -29
  33. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  34. package/fesm2022/acorex-components-select-box.mjs +2 -2
  35. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  36. package/package.json +7 -3
  37. package/types/acorex-components-combo-box.d.ts +114 -0
  38. package/types/acorex-components-conversation.d.ts +136 -56
  39. package/types/acorex-components-datetime-box.d.ts +16 -4
  40. package/types/acorex-components-datetime-input.d.ts +74 -71
  41. package/types/acorex-components-file-viewer.d.ts +109 -17
  42. package/types/acorex-components-grid-layout-builder.d.ts +25 -2
  43. package/types/acorex-components-menu.d.ts +26 -4
  44. package/types/acorex-components-number-box.d.ts +3 -1
  45. package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-CNHiM1Sp.mjs +0 -106
  46. 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
- this._monthOptions.find((month) => month.id === monthId) ?? {
484
- id: monthId,
485
- text: `@acorex:${this.getMonthName(this._viewStartDate, 'short')}`,
486
- };
487
- this._selectedYearOption =
488
- this._yearOptions.find((year) => year.id === yearId) ?? {
489
- id: yearId,
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
- // col-start-1 col-start-2 col-start-3 col-start-4 col-start-5 col-start-6 col-start-7
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;