@apexara/ng-components 1.0.6-test.5 → 1.0.6-test.7

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/README.md CHANGED
@@ -979,6 +979,64 @@ Simple styled radio-button that can accept a formGroup and a control.
979
979
  ><apex-select>
980
980
  >```
981
981
 
982
+ ### In-dropdown search
983
+ >Set `searchInDropdown: true` to move the search input inside the dropdown
984
+ >(instead of the trigger). Intended for multi-select. The trigger then shows
985
+ >chips (or a counter when `counterAsValue: true`) and the arrow only, and the
986
+ >search input auto-focuses when the dropdown opens.
987
+ >```typescript
988
+ >public selectOptions: ApexSelectOptions = {
989
+ > label: 'Property Type',
990
+ > data: [
991
+ > { label: 'SFR', value: 'sfr' },
992
+ > { label: 'Duplex', value: 'duplex' },
993
+ > { label: 'Condo', value: 'condo' },
994
+ > ],
995
+ > multiple: true,
996
+ > searchInDropdown: true,
997
+ > counterAsValue: true,
998
+ > placeholder: 'Select property types',
999
+ > formGroup: this.selectForm,
1000
+ > formControlName: 'selectControl',
1001
+ >};
1002
+ >```
1003
+
1004
+ ### Grouped options with categories
1005
+ >Pass a `groups` array to render category headers above each section. `groups`
1006
+ >supersedes `data` when both are present. Grouped mode requires
1007
+ >`searchInDropdown: true` and uses native scroll (not virtual scroll), so it is
1008
+ >intended for bounded lists that fit comfortably within
1009
+ >`--apex-select-dropdown-body-max-height`. Search filters inside each category
1010
+ >and empty categories disappear.
1011
+ >```typescript
1012
+ >public selectOptions: ApexSelectOptions = {
1013
+ > label: 'Property Type',
1014
+ > data: [], // ignored when groups is present
1015
+ > groups: [
1016
+ > {
1017
+ > label: 'Residential',
1018
+ > data: [
1019
+ > { label: 'SFR', value: 'sfr' },
1020
+ > { label: 'SFR w/ ADU', value: 'sfr-adu' },
1021
+ > { label: 'Duplex', value: 'duplex' },
1022
+ > ],
1023
+ > },
1024
+ > {
1025
+ > label: 'Commercial',
1026
+ > data: [
1027
+ > { label: 'Medical', value: 'medical' },
1028
+ > { label: 'Mixed Use', value: 'mixed-use' },
1029
+ > ],
1030
+ > },
1031
+ > ],
1032
+ > multiple: true,
1033
+ > searchInDropdown: true,
1034
+ > counterAsValue: true,
1035
+ > formGroup: this.selectForm,
1036
+ > formControlName: 'selectControl',
1037
+ >};
1038
+ >```
1039
+
982
1040
  ### CSS Variables
983
1041
  >Here are all the available CSS variables (and their default values) you can set when using the apex-select:
984
1042
  >```css
@@ -1041,6 +1099,16 @@ Simple styled radio-button that can accept a formGroup and a control.
1041
1099
  > --apex-select-dropdown-border-color: #E9E9E9;
1042
1100
  > --apex-select-dropdown-background-color: #FFFFFF;
1043
1101
  >
1102
+ > /* In-dropdown search row (searchInDropdown: true) */
1103
+ > --apex-select-dropdown-search-border-color: #E9E9E9;
1104
+ > --apex-select-dropdown-search-icon-color: #5D6068;
1105
+ >
1106
+ > /* Dropdown body scroll area (grouped mode) */
1107
+ > --apex-select-dropdown-body-max-height: 320px;
1108
+ >
1109
+ > /* Group header (grouped mode) */
1110
+ > --apex-select-group-header-color: #9A9A9A;
1111
+ >
1044
1112
  > /* Option icons (per-item icons in dropdown): */
1045
1113
  > --apex-select-option-icon-size: 20px;
1046
1114
  > --apex-select-option-icon-spacing: 10px;
@@ -1679,6 +1747,7 @@ Two types of tables are available. One with local data and local sorting & filte
1679
1747
  > NumberMath, // A column for displaying combined properties' values numbers with additional addition, subtraction, multiplication, division logic.
1680
1748
  > Actions, // A column for action buttons
1681
1749
  > List, // A column for displaying arrays with overflow badge
1750
+ > Status, // A column for displaying multi-step progress indicators
1682
1751
  >}
1683
1752
  >```
1684
1753
  >
@@ -1697,6 +1766,8 @@ Two types of tables are available. One with local data and local sorting & filte
1697
1766
  >Actions Column: Displays action buttons with dynamic visibility based on context.
1698
1767
  >
1699
1768
  >List Column: Displays an array of objects as a formatted text string joined by " / " (e.g., "Miami / Orlando / Tampa"). When the array exceeds `listOptions.max` items, an overflow badge (+N) appears. Hovering the badge shows a tooltip with all remaining items.
1769
+ >
1770
+ >Status Column: Displays a horizontal sequence of labeled steps, each underlined by a colored bar. Steps up to and including the row's current status show their configured color; later steps show a muted gray bar. Useful for deal pipelines, order progress, approval flows, etc.
1700
1771
 
1701
1772
  ### List Column Usage
1702
1773
 
@@ -1744,6 +1815,53 @@ Two types of tables are available. One with local data and local sorting & filte
1744
1815
  >| `--apex-table-list-overflow-color` | `#FFA753` | Overflow badge text color |
1745
1816
  >| `--apex-table-list-overflow-border-color` | `#FFEFE1` | Overflow badge border color |
1746
1817
 
1818
+ ### Status Column Usage
1819
+
1820
+ >```typescript
1821
+ >export interface ApexTableStatusStep {
1822
+ > label: string; // Display label for the step
1823
+ > value: string | number | boolean; // Identifier matched against the row's status value (strict equality)
1824
+ > color: string; // Bar color when this step is reached
1825
+ >}
1826
+ >```
1827
+ >
1828
+ >The row's status value (resolved from `column.value`) is matched against each step's `value`. All steps up to and including the matched one are considered completed and show their configured `color`. Remaining steps show the muted incomplete color. If the value doesn't match any step → every step renders as incomplete.
1829
+ >
1830
+ >```typescript
1831
+ >// Data
1832
+ >public tableData = [
1833
+ > { id: 1, offerStatus: 'listed' },
1834
+ > { id: 2, offerStatus: 'sold' },
1835
+ > { id: 3, offerStatus: 'offerAccepted' }
1836
+ >];
1837
+ >
1838
+ >// Column config
1839
+ >public tableColumns: ApexTableColumn[] = [
1840
+ > {
1841
+ > label: 'Offer Status',
1842
+ > value: 'offerStatus',
1843
+ > type: ApexTableColumnType.Status,
1844
+ > width: '320px',
1845
+ > statusSteps: [
1846
+ > { label: 'Listed', value: 'listed', color: '#FBD84A' },
1847
+ > { label: 'Receiving Offers', value: 'receivingOffers', color: '#4AC0E0' },
1848
+ > { label: 'Offer Accepted', value: 'offerAccepted', color: '#26D280' },
1849
+ > { label: 'Sold', value: 'sold', color: '#FFA753' }
1850
+ > ]
1851
+ > }
1852
+ >];
1853
+ >```
1854
+
1855
+ ### Status Column CSS Variables
1856
+
1857
+ >| Variable | Default | Description |
1858
+ >|---|---|---|
1859
+ >| `--apex-table-status-gap` | `8px` | Gap between steps |
1860
+ >| `--apex-table-status-bar-height` | `3px` | Height of the underline bar |
1861
+ >| `--apex-table-status-incomplete-color` | `#E5E7EB` | Bar color for not-yet-reached steps |
1862
+ >| `--apex-table-status-label-color` | `#888B95` | Label color for not-yet-reached steps |
1863
+ >| `--apex-table-status-label-completed-color` | `#191B22` | Label color for reached steps |
1864
+
1747
1865
  ### Cell Icons
1748
1866
 
1749
1867
  Cell icons allow you to display an icon next to the text in a cell. The icon can be static or mapped per value, making it useful for status indicators, engagement levels, etc.