@iress-oss/ids-mcp-server 0.0.1-dev.3 → 0.0.1-dev.4

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.
@@ -246,7 +246,7 @@ To completely customise it, you can also send in a function that returns a React
246
246
  Available formats
247
247
  | String | Number | Date | Short date | ISO Date & Time | Relative time | Currency (AUD) | Percent | Custom |
248
248
  | --- | --- | --- | --- | --- | --- | --- | --- | --- |
249
- | Hello, world! | 123456 | 28/06/2020 | 28 Jun 2020 | 2020-06-28 00:00:00 (UTC) | 30 seconds ago | 123,456.78 | 12% | Custom |
249
+ | Hello, world! | 123456 | 28/06/2020 | 28 Jun 2020 | 2020-06-28 00:00:00 (UTC) | 21 seconds ago | 123,456.78 | 12% | Custom |
250
250
 
251
251
  Hide code
252
252
 
@@ -788,7 +788,7 @@ Copy
788
788
 
789
789
  For very simple tabular data, you have the option to hide the table header with the `hiddenHeader` prop. When this is set to true, the table header will not be rendered.
790
790
 
791
- <table class="ids-table-v5142 ids-table--hidden-header-v5142" id=":ru:"><caption id=":ru:--caption" class="">My investments</caption><tbody><tr id=":ru:--rows--0"><th data-column="investment_name" id=":ru:__0_investment_name" scope="row">Artemis Fund Managers Limited</th><td data-column="cost" headers=":ru:__0_investment_name" id=":ru:__0_cost">23898</td><td data-column="investmentDate" headers=":ru:__0_investment_name" id=":ru:__0_investmentDate">2019-09-23</td><td data-column="totalPercentage" headers=":ru:__0_investment_name" id=":ru:__0_totalPercentage">24.8</td></tr><tr id=":ru:--rows--1"><th data-column="investment_name" id=":ru:__1_investment_name" scope="row">CASH.CASH</th><td data-column="cost" headers=":ru:__1_investment_name" id=":ru:__1_cost">49751.4</td><td data-column="investmentDate" headers=":ru:__1_investment_name" id=":ru:__1_investmentDate">2020-06-28</td><td data-column="totalPercentage" headers=":ru:__1_investment_name" id=":ru:__1_totalPercentage">49</td></tr><tr id=":ru:--rows--2"><th data-column="investment_name" id=":ru:__2_investment_name" scope="row">VODAFONE GRP</th><td data-column="cost" headers=":ru:__2_investment_name" id=":ru:__2_cost">26382.456</td><td data-column="investmentDate" headers=":ru:__2_investment_name" id=":ru:__2_investmentDate">2019-02-05</td><td data-column="totalPercentage" headers=":ru:__2_investment_name" id=":ru:__2_totalPercentage">26.2</td></tr></tbody></table>
791
+ <table class="ids-table-v5150 ids-table--hidden-header-v5150" id=":ra:"><caption id=":ra:--caption" class="">My investments</caption><tbody><tr id=":ra:--rows--0"><th data-column="investment_name" id=":ra:__0_investment_name" scope="row">Artemis Fund Managers Limited</th><td data-column="cost" headers=":ra:__0_investment_name" id=":ra:__0_cost">23898</td><td data-column="investmentDate" headers=":ra:__0_investment_name" id=":ra:__0_investmentDate">2019-09-23</td><td data-column="totalPercentage" headers=":ra:__0_investment_name" id=":ra:__0_totalPercentage">24.8</td></tr><tr id=":ra:--rows--1"><th data-column="investment_name" id=":ra:__1_investment_name" scope="row">CASH.CASH</th><td data-column="cost" headers=":ra:__1_investment_name" id=":ra:__1_cost">49751.4</td><td data-column="investmentDate" headers=":ra:__1_investment_name" id=":ra:__1_investmentDate">2020-06-28</td><td data-column="totalPercentage" headers=":ra:__1_investment_name" id=":ra:__1_totalPercentage">49</td></tr><tr id=":ra:--rows--2"><th data-column="investment_name" id=":ra:__2_investment_name" scope="row">VODAFONE GRP</th><td data-column="cost" headers=":ra:__2_investment_name" id=":ra:__2_cost">26382.456</td><td data-column="investmentDate" headers=":ra:__2_investment_name" id=":ra:__2_investmentDate">2019-02-05</td><td data-column="totalPercentage" headers=":ra:__2_investment_name" id=":ra:__2_totalPercentage">26.2</td></tr></tbody></table>
792
792
 
793
793
  Hide code
794
794
 
@@ -1070,7 +1070,7 @@ Copy
1070
1070
 
1071
1071
  In some cases you may have a table with multiple groups of rows inside it, however the columns are the same. For these cases, you can use the `IressTableBody` component.
1072
1072
 
1073
- <table class="ids-table-v5142" id=":rc:"><caption id=":rc:--caption" class="">My liabilities</caption><tbody aria-labelledby=":rd:--caption" class=""><tr><th aria-expanded="true" colspan="8" class="ids-table--row-group-header-v5142" id=":rd:--caption" scope="rowgroup" aria-controls=":rd:--header--0 :rd:--rows--0 :rd:--children"><button class="ids-table--activator-v5142" type="button">Current liabilities</button></th></tr><tr class="ids-table--row-group-column-headers-v5142" id=":rd:--header--0"><th id=":rd:__owner" headers=":rd:--caption" class="" style="width: 75px; min-width: 75px;">Owner</th><th id=":rd:__type" headers=":rd:--caption" class="" style="width: 100px; min-width: 100px;">Type</th><th id=":rd:__provider" headers=":rd:--caption" class="">Provider</th><th id=":rd:__status" headers=":rd:--caption" class="ids-table--divider-v5142">Status</th><th id=":rd:__frequency" headers=":rd:--caption" class="">Frequency</th><th id=":rd:__outstanding" headers=":rd:--caption" aria-sort="none" class="ids-table--cell--currency-v5142"><button type="button" class="ids-table--sort-button-v5142 ids-table--sort-button-no-wrap-v5142">Outstanding (GBP)<span role="img" class="ids-table--sort-icon-v5142 ids-icon-v5142 fa-sort fal" aria-label="sortable"></span></button></th><th id=":rd:__interestRate" headers=":rd:--caption" aria-sort="none" class="ids-table--cell--right-v5142"><button type="button" class="ids-table--sort-button-v5142 ids-table--sort-button-no-wrap-v5142">Interest rate p.a.<span role="img" class="ids-table--sort-icon-v5142 ids-icon-v5142 fa-sort fal" aria-label="sortable"></span></button></th><th id=":rd:__repayment" headers=":rd:--caption" aria-sort="none" class="ids-table--cell--currency-v5142"><button type="button" class="ids-table--sort-button-v5142 ids-table--sort-button-no-wrap-v5142">Repayment (GBP)<span role="img" class="ids-table--sort-icon-v5142 ids-icon-v5142 fa-sort fal" aria-label="sortable"></span></button></th></tr><tr id=":rd:--rows--0"><td data-column="owner" headers=":rd:__owner :rd:--caption" id=":rd:__0_owner" class="" style="width: 75px; min-width: 75px;">Client</td><td data-column="type" headers=":rd:__type :rd:--caption" id=":rd:__0_type" class="" style="width: 100px; min-width: 100px;">Credit card</td><td data-column="provider" headers=":rd:__provider :rd:--caption" id=":rd:__0_provider" class=""></td><td data-column="status" headers=":rd:__status :rd:--caption" id=":rd:__0_status" class="ids-table--divider-v5142">Current</td><td data-column="frequency" headers=":rd:__frequency :rd:--caption" id=":rd:__0_frequency" class="">Monthly</td><td data-column="outstanding" headers=":rd:__outstanding :rd:--caption" id=":rd:__0_outstanding" class="ids-table--cell--currency-v5142">5,000.00</td><td data-column="interestRate" headers=":rd:__interestRate :rd:--caption" id=":rd:__0_interestRate" class="ids-table--cell--right-v5142">0%</td><td data-column="repayment" headers=":rd:__repayment :rd:--caption" id=":rd:__0_repayment" class="ids-table--cell--currency-v5142">300.00</td></tr><tr id=":rd:--children"><td colspan="8"><button class="iress-form-element iress-form-element__inner iress-u-button iress--mode--tertiary" type="button"><span class="iress-u-button__prepend"><span role="img" class="ids-icon-v5142 fa-plus-circle fal" aria-hidden="true"></span></span>Add current liability</button></td></tr></tbody><tbody aria-labelledby=":rf:--caption" class=""><tr><th aria-expanded="false" colspan="8" class="ids-table--row-group-header-v5142" id=":rf:--caption" scope="rowgroup"><button class="ids-table--activator-v5142" type="button">Long term liabilities</button></th></tr></tbody><tbody aria-labelledby=":rg:--caption" class=""><tr><th aria-expanded="false" colspan="8" class="ids-table--row-group-header-v5142" id=":rg:--caption" scope="rowgroup"><button class="ids-table--activator-v5142" type="button">Contingent liabilities</button></th></tr></tbody></table>
1073
+ <table class="ids-table-v5150" id=":rr:"><caption id=":rr:--caption" class="">My liabilities</caption><tbody aria-labelledby=":rs:--caption" class=""><tr><th aria-expanded="true" colspan="8" class="ids-table--row-group-header-v5150" id=":rs:--caption" scope="rowgroup" aria-controls=":rs:--header--0 :rs:--rows--0 :rs:--children"><button class="ids-table--activator-v5150" type="button">Current liabilities</button></th></tr><tr class="ids-table--row-group-column-headers-v5150" id=":rs:--header--0"><th id=":rs:__owner" headers=":rs:--caption" class="" style="width: 75px; min-width: 75px;">Owner</th><th id=":rs:__type" headers=":rs:--caption" class="" style="width: 100px; min-width: 100px;">Type</th><th id=":rs:__provider" headers=":rs:--caption" class="">Provider</th><th id=":rs:__status" headers=":rs:--caption" class="ids-table--divider-v5150">Status</th><th id=":rs:__frequency" headers=":rs:--caption" class="">Frequency</th><th id=":rs:__outstanding" headers=":rs:--caption" aria-sort="none" class="ids-table--cell--currency-v5150"><button type="button" class="ids-table--sort-button-v5150 ids-table--sort-button-no-wrap-v5150">Outstanding (GBP)<span role="img" class="ids-table--sort-icon-v5150 ids-icon-v5150 fa-sort fal" aria-label="sortable"></span></button></th><th id=":rs:__interestRate" headers=":rs:--caption" aria-sort="none" class="ids-table--cell--right-v5150"><button type="button" class="ids-table--sort-button-v5150 ids-table--sort-button-no-wrap-v5150">Interest rate p.a.<span role="img" class="ids-table--sort-icon-v5150 ids-icon-v5150 fa-sort fal" aria-label="sortable"></span></button></th><th id=":rs:__repayment" headers=":rs:--caption" aria-sort="none" class="ids-table--cell--currency-v5150"><button type="button" class="ids-table--sort-button-v5150 ids-table--sort-button-no-wrap-v5150">Repayment (GBP)<span role="img" class="ids-table--sort-icon-v5150 ids-icon-v5150 fa-sort fal" aria-label="sortable"></span></button></th></tr><tr id=":rs:--rows--0"><td data-column="owner" headers=":rs:__owner :rs:--caption" id=":rs:__0_owner" class="" style="width: 75px; min-width: 75px;">Client</td><td data-column="type" headers=":rs:__type :rs:--caption" id=":rs:__0_type" class="" style="width: 100px; min-width: 100px;">Credit card</td><td data-column="provider" headers=":rs:__provider :rs:--caption" id=":rs:__0_provider" class=""></td><td data-column="status" headers=":rs:__status :rs:--caption" id=":rs:__0_status" class="ids-table--divider-v5150">Current</td><td data-column="frequency" headers=":rs:__frequency :rs:--caption" id=":rs:__0_frequency" class="">Monthly</td><td data-column="outstanding" headers=":rs:__outstanding :rs:--caption" id=":rs:__0_outstanding" class="ids-table--cell--currency-v5150">5,000.00</td><td data-column="interestRate" headers=":rs:__interestRate :rs:--caption" id=":rs:__0_interestRate" class="ids-table--cell--right-v5150">0%</td><td data-column="repayment" headers=":rs:__repayment :rs:--caption" id=":rs:__0_repayment" class="ids-table--cell--currency-v5150">300.00</td></tr><tr id=":rs:--children"><td colspan="8"><button class="iress-form-element iress-form-element__inner iress-u-button iress--mode--tertiary" type="button"><span class="iress-u-button__prepend"><span role="img" class="ids-icon-v5150 fa-plus-circle fal" aria-hidden="true"></span></span>Add current liability</button></td></tr></tbody><tbody aria-labelledby=":ru:--caption" class=""><tr><th aria-expanded="false" colspan="8" class="ids-table--row-group-header-v5150" id=":ru:--caption" scope="rowgroup"><button class="ids-table--activator-v5150" type="button">Long term liabilities</button></th></tr></tbody><tbody aria-labelledby=":rv:--caption" class=""><tr><th aria-expanded="false" colspan="8" class="ids-table--row-group-header-v5150" id=":rv:--caption" scope="rowgroup"><button class="ids-table--activator-v5150" type="button">Contingent liabilities</button></th></tr></tbody></table>
1074
1074
 
1075
1075
  Hide code
1076
1076
 
@@ -1231,9 +1231,9 @@ IressTableFormattedValue
1231
1231
  | --- | --- |
1232
1232
  | string | string |
1233
1233
  | number | 10000 |
1234
- | date | 25/06/2025 |
1235
- | shortDate | 25 Jun 2025 |
1236
- | isoDateTime | 2025-06-25 00:12:43 (UTC) |
1234
+ | date | 27/06/2025 |
1235
+ | shortDate | 27 Jun 2025 |
1236
+ | isoDateTime | 2025-06-27 04:09:53 (UTC) |
1237
1237
  | relativeTime | now |
1238
1238
  | currency | $10,000.00 |
1239
1239
  | percent | 50% |
@@ -89,6 +89,56 @@ export const SimpleToasterExample \= () \=> (
89
89
 
90
90
  Copy
91
91
 
92
+ ### [](#closing-toasts-via-the-provider)Closing toasts via the provider
93
+
94
+ If you want to dismiss a toast programmatically, you can use the `close` method from the `useToaster` hook. This method takes a toast ID as an argument, which is returned when you create a toast using the `useToaster` hook.
95
+
96
+ Show toast using provider
97
+
98
+ Hide code
99
+
100
+ \[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
101
+
102
+ import {
103
+ IressButton,
104
+ IressInline,
105
+ IressToasterProvider,
106
+ IressToasterProviderProps,
107
+ useToaster,
108
+ } from '@iress-oss/ids-components';
109
+ import { useState } from 'react';
110
+ const ToastWithTrigger \= () \=> {
111
+ const toaster \= useToaster();
112
+ const \[lastToastId, setLastToastId\] \= useState<string | null\>(null);
113
+ return (
114
+ <IressInline gutter\="sm"\>
115
+ <IressButton onClick={() \=> {
116
+ const toastId \= toaster.error({
117
+ heading: 'Error',
118
+ children:
119
+ 'Connection failure. Longer text description should wrap and look like this. Try to limit to 3 lines or less.',
120
+ onClose: () \=> {
121
+ setLastToastId(null);
122
+ },
123
+ });
124
+ setLastToastId(toastId);
125
+ }}
126
+ > Show toast using provider </IressButton\>
127
+ {lastToastId && (
128
+ <IressButton onClick\={() \=> toaster.close(lastToastId)}\>
129
+ Close the last toast opened </IressButton\>
130
+ )}
131
+ </IressInline\>
132
+ );
133
+ };
134
+ export const CloseToastViaProvider \= () \=> (
135
+ <IressToasterProvider \>
136
+ <ToastWithTrigger />
137
+ </IressToasterProvider\>
138
+ );
139
+
140
+ Copy
141
+
92
142
  [](#examples)Examples
93
143
  ---------------------
94
144
 
@@ -286,6 +336,7 @@ On this page
286
336
  * [Props](#props)
287
337
  * [Controlling toasts](#controlling-toasts)
288
338
  * [Using the IressToasterProvider](#using-the-iresstoasterprovider)
339
+ * [Closing toasts via the provider](#closing-toasts-via-the-provider)
289
340
  * [Examples](#examples)
290
341
  * [Status](#status)
291
342
  * [Timeout](#timeout)