@smartsoft001/angular 2.176.0 → 2.177.0

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
@@ -1510,6 +1510,17 @@ The `<smart-stacked-list>` component renders a vertical list of records with opt
1510
1510
 
1511
1511
  **Wrapper:** `StackedListComponent` (selector: `smart-stacked-list`)
1512
1512
  **Default:** `StackedListStandardComponent` (selector: `smart-stacked-list-standard`)
1513
+ **Preset variation:** `StackedListPresetComponent` (selector: `smart-stacked-list-preset`): a styled Tailwind drop-in replacement with avatar or icon tiles, title/description/meta lines, trailing badge and action slots, and `dark:` styling. It honours `withDividers` (hairlines between rows) and `fullWidthOnMobile` (a card that bleeds to the screen edge below `sm` and is rounded from `sm` up). Register it through the token to restyle every `<smart-stacked-list>`:
1514
+
1515
+ ```typescript
1516
+ providers: [
1517
+ {
1518
+ provide: STACKED_LIST_STANDARD_COMPONENT_TOKEN,
1519
+ useValue: StackedListPresetComponent,
1520
+ },
1521
+ ];
1522
+ ```
1523
+
1513
1524
  **Token:** `STACKED_LIST_STANDARD_COMPONENT_TOKEN` — provide a `Type<StackedListBaseComponent>` to override the default.
1514
1525
 
1515
1526
  #### Usage
@@ -1587,8 +1598,8 @@ The `<smart-stacked-list>` component renders a vertical list of records with opt
1587
1598
  | `title` | `string` | - | Optional list title rendered as `<h3 class="title">` |
1588
1599
  | `description` | `string` | - | Optional description rendered as `<p class="description">` |
1589
1600
  | `items` | `IStackedListItem[]` | - | List entries to render as `<li class="item">` |
1590
- | `withDividers` | `boolean` | - | Hint for custom impls: render dividers between items |
1591
- | `fullWidthOnMobile` | `boolean` | - | Hint for custom impls: stretch the list edge-to-edge |
1601
+ | `withDividers` | `boolean` | - | Render dividers between items (preset; ignored by standard) |
1602
+ | `fullWidthOnMobile` | `boolean` | - | Stretch the list edge-to-edge on mobile (preset; ignored by standard) |
1592
1603
  | `emptyTpl` | `TemplateRef<unknown>` | - | Template rendered when items is empty |
1593
1604
  | `footerTpl` | `TemplateRef<unknown>` | - | Bottom footer slot |
1594
1605
 
@@ -1607,7 +1618,7 @@ The `<smart-stacked-list>` component renders a vertical list of records with opt
1607
1618
  | `actionTpl` | `TemplateRef<unknown>` | - | Trailing action slot (e.g. button) |
1608
1619
  | `ariaLabel` | `string` | - | Accessible label rendered on the `<li>` |
1609
1620
 
1610
- The default `StackedListStandardComponent` consumes every property; a section is rendered only when its template/string is provided. Within an item, `iconTpl` takes precedence over `avatarUrl` when both are set.
1621
+ The default `StackedListStandardComponent` renders every content property but ignores the `withDividers` / `fullWidthOnMobile` layout hints, which `StackedListPresetComponent` honours. A section is rendered only when its template/string is provided. Within an item, `iconTpl` takes precedence over `avatarUrl` when both are set.
1611
1622
 
1612
1623
  #### Overriding with Custom Implementation
1613
1624
 
@@ -1734,6 +1745,14 @@ The `<smart-table>` component renders a tabular data view with optional title, d
1734
1745
 
1735
1746
  **Wrapper:** `TableComponent` (selector: `smart-table`)
1736
1747
  **Default:** `TableStandardComponent` (selector: `smart-table-standard`)
1748
+ **Preset variation:** `TablePresetComponent` (selector: `smart-table-preset`) — styled Tailwind UI drop-in replacement that honours every layout hint the standard ignores: `striped` zebra rows, a `withBorder` card frame, a `stickyHeader`, per-column `align`, and `sortable` columns (client-side sort with `aria-sort`). It also adds select-all and a selected-row highlight to the checkbox column, and `dark:` styling throughout. Register it on the token to restyle every `<smart-table>`:
1749
+
1750
+ ```typescript
1751
+ providers: [
1752
+ { provide: TABLE_STANDARD_COMPONENT_TOKEN, useValue: TablePresetComponent },
1753
+ ];
1754
+ ```
1755
+
1737
1756
  **Token:** `TABLE_STANDARD_COMPONENT_TOKEN` — provide a `Type<TableBaseComponent>` to override the default.
1738
1757
 
1739
1758
  #### Usage
@@ -1808,10 +1827,10 @@ The `<smart-table>` component renders a tabular data view with optional title, d
1808
1827
  | `description` | `string` | - | Optional description rendered as `<p class="description">` |
1809
1828
  | `columns` | `ITableColumn[]` | - | Column definitions (rendered as `<thead><th>`) |
1810
1829
  | `rows` | `TableRow[]` | - | Row data (each row read via `row[col.key]`) |
1811
- | `striped` | `boolean` | - | Hint for custom impls: zebra-stripe rows |
1812
- | `stickyHeader` | `boolean` | - | Hint for custom impls: sticky `<thead>` |
1830
+ | `striped` | `boolean` | - | Zebra-stripe rows (preset; ignored by standard) |
1831
+ | `stickyHeader` | `boolean` | - | Sticky `<thead>` (preset; ignored by standard) |
1813
1832
  | `withCheckboxes` | `boolean` | - | Render an extra checkbox column |
1814
- | `withBorder` | `boolean` | - | Hint for custom impls: bordered table |
1833
+ | `withBorder` | `boolean` | - | Bordered card (preset; ignored by standard) |
1815
1834
  | `emptyTpl` | `TemplateRef<unknown>` | - | Template rendered when `rows` is empty |
1816
1835
  | `footerTpl` | `TemplateRef<unknown>` | - | Bottom footer slot |
1817
1836
  | `toolbarTpl` | `TemplateRef<unknown>` | - | Top toolbar slot rendered above `<table>` |
@@ -1823,7 +1842,7 @@ The `<smart-table>` component renders a tabular data view with optional title, d
1823
1842
  | `key` | `string` | - | **Required** key used to read `row[key]` |
1824
1843
  | `label` | `string` | - | Header label (falls back to `key` if missing) |
1825
1844
  | `align` | `'left' \| 'center' \| 'right'` | `'left'` | Alignment hint (set on `data-align` attribute) |
1826
- | `sortable` | `boolean` | - | Hint for custom impls: column is sortable |
1845
+ | `sortable` | `boolean` | - | Client-side sortable heading (preset; ignored by standard) |
1827
1846
  | `cellTpl` | `TemplateRef<unknown>` | - | Custom cell template (`{ $implicit: row, column: col }`) |
1828
1847
  | `headerTpl` | `TemplateRef<unknown>` | - | Custom header template |
1829
1848
  | `ariaLabel` | `string` | - | Accessible label rendered on `<th>` |
@@ -1853,6 +1872,14 @@ The `<smart-textarea>` component renders a multi-line text input with optional l
1853
1872
 
1854
1873
  **Wrapper:** `TextareaComponent` (selector: `smart-textarea`)
1855
1874
  **Default:** `TextareaStandardComponent` (selector: `smart-textarea-standard`)
1875
+ **Preset variation:** `TextareaPresetComponent` (selector: `smart-textarea-preset`) — styled drop-in replacement that honours `options.variant` (**simple / with-avatar-actions / with-underline / with-pill-actions / with-preview**, default `'simple'`), `autoFocus`, a `maxLength` character counter and per-variant `primary` / `secondary` / `ghost` action buttons, with `dark:` styling. Register through the token to restyle every `<smart-textarea>`:
1876
+
1877
+ ```typescript
1878
+ providers: [
1879
+ { provide: TEXTAREA_STANDARD_COMPONENT_TOKEN, useValue: TextareaPresetComponent },
1880
+ ];
1881
+ ```
1882
+
1856
1883
  **Token:** `TEXTAREA_STANDARD_COMPONENT_TOKEN` — provide a `Type<TextareaBaseComponent>` to override the default.
1857
1884
 
1858
1885
  #### Usage
@@ -1884,11 +1911,11 @@ The `<smart-textarea>` component renders a multi-line text input with optional l
1884
1911
  | ------------- | -------------------------- | ------- | -------------------------------------------------------- |
1885
1912
  | `rows` | `number` | `3` | Number of `<textarea>` rows |
1886
1913
  | `maxLength` | `number` | - | Max characters (`maxlength` attr) |
1887
- | `variant` | `SmartTextareaVariant` | - | Hint for custom impls |
1914
+ | `variant` | `SmartTextareaVariant` | - | Layout; honoured by the preset, ignored by the standard |
1888
1915
  | `label` | `string` | - | Render `<label>` above textarea |
1889
1916
  | `name` | `string` | - | Form `name` attribute |
1890
1917
  | `required` | `boolean` | - | Set `required` attribute |
1891
- | `autoFocus` | `boolean` | - | Hint for custom impls |
1918
+ | `autoFocus` | `boolean` | - | Focus on render; honoured by the preset |
1892
1919
  | `ariaLabel` | `string` | - | Accessible label |
1893
1920
  | `actions` | `ITextareaAction[]` | - | Render action buttons below textarea |
1894
1921
  | `avatarTpl` | `TemplateRef<unknown>` | - | Avatar slot |