@iress-oss/ids-mcp-server 0.0.1-dev.5 → 0.0.1-dev.6

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 (36) hide show
  1. package/dist/componentHandlers.js +241 -0
  2. package/dist/componentHandlers.test.js +380 -0
  3. package/dist/config.js +16 -0
  4. package/dist/index.js +53 -0
  5. package/dist/iressHandlers.js +144 -0
  6. package/dist/iressHandlers.test.js +316 -0
  7. package/dist/resourceHandlers.js +67 -0
  8. package/dist/resourceHandlers.test.js +352 -0
  9. package/dist/searchHandlers.js +287 -0
  10. package/dist/searchHandlers.test.js +524 -0
  11. package/dist/toolHandler.js +31 -0
  12. package/dist/toolHandler.test.js +369 -0
  13. package/dist/tools.js +165 -0
  14. package/dist/types.js +4 -0
  15. package/dist/utils.js +59 -0
  16. package/dist/utils.test.js +286 -0
  17. package/generated/docs/components-autocomplete-docs.md +48 -4
  18. package/generated/docs/components-checkboxgroup-docs.md +17 -17
  19. package/generated/docs/components-col-docs.md +1 -1
  20. package/generated/docs/components-combobox-docs.md +4 -4
  21. package/generated/docs/components-filter-docs.md +3 -3
  22. package/generated/docs/components-form-docs.md +8 -73
  23. package/generated/docs/components-icon-docs.md +4 -4
  24. package/generated/docs/components-inputcurrency-docs.md +4 -47
  25. package/generated/docs/components-radiogroup-docs.md +21 -21
  26. package/generated/docs/components-richselect-docs.md +322 -1
  27. package/generated/docs/components-row-docs.md +4 -4
  28. package/generated/docs/components-skiplink-docs.md +1 -1
  29. package/generated/docs/components-table-ag-grid-docs.md +104 -1696
  30. package/generated/docs/components-table-docs.md +6 -6
  31. package/generated/docs/components-tabset-docs.md +28 -0
  32. package/generated/docs/extensions-editor-docs.md +8 -2
  33. package/generated/docs/introduction-docs.md +1 -1
  34. package/generated/docs/patterns-loading-docs.md +2 -2
  35. package/generated/docs/themes-available-themes-docs.md +29 -29
  36. package/package.json +12 -3
@@ -205,6 +205,8 @@ Salad
205
205
 
206
206
  Type to copy an existing character's name
207
207
 
208
+ Type at least 1 character to search
209
+
208
210
  \*Required Your star wars sidekick
209
211
 
210
212
  None selected
@@ -413,39 +415,7 @@ A boolean which, if `true`, indicates that the input must have a value before th
413
415
 
414
416
  Validate
415
417
 
416
- Hide code
417
-
418
- \[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; }
419
-
420
- <IressForm\>
421
- <IressStack gutter\="lg"\>
422
- <IressFormField
423
- hint\=""
424
- label\="Default message"
425
- name\="IressInput-default"
426
- render\={(controlledProps) \=> <IressInput {...controlledProps} />}
427
- rules\={{
428
- required: true
429
- }}
430
- />
431
- <IressFormField
432
- hint\=""
433
- label\="Custom message"
434
- name\="IressInput-custom"
435
- render\={(controlledProps) \=> <IressInput {...controlledProps} />}
436
- rules\={{
437
- required: 'Please check this field'
438
- }}
439
- />
440
- <IressButton
441
- mode\="primary"
442
- type\="submit"
443
- \>
444
- Validate </IressButton\>
445
- </IressStack\>
446
- </IressForm\>
447
-
448
- Copy
418
+ Show code
449
419
 
450
420
  #### [](#maxlength)`maxLength`
451
421
 
@@ -466,42 +436,7 @@ Enter a maximum length of 5 characters
466
436
 
467
437
  Validate
468
438
 
469
- Hide code
470
-
471
- \[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; }
472
-
473
- <IressForm\>
474
- <IressStack gutter\="lg"\>
475
- <IressFormField
476
- hint\="Enter a maximum length of 5 characters"
477
- label\="Default message"
478
- name\="IressInput-default"
479
- render\={(controlledProps) \=> <IressInput {...controlledProps} />}
480
- rules\={{
481
- maxLength: 5
482
- }}
483
- />
484
- <IressFormField
485
- hint\="Enter a maximum length of 5 characters"
486
- label\="Custom message"
487
- name\="IressInput-custom"
488
- render\={(controlledProps) \=> <IressInput {...controlledProps} />}
489
- rules\={{
490
- maxLength: {
491
- message: 'Please enter a max length of 5 characters!',
492
- value: 5
493
- }
494
- }}
495
- />
496
- <IressButton
497
- mode\="primary"
498
- type\="submit"
499
- \>
500
- Validate </IressButton\>
501
- </IressStack\>
502
- </IressForm\>
503
-
504
- Copy
439
+ Show code
505
440
 
506
441
  #### [](#minlength)`minLength`
507
442
 
@@ -747,7 +682,7 @@ Hide code
747
682
  name\="IressInputDate-default"
748
683
  render\={(controlledProps) \=> <IressInput {...controlledProps} />}
749
684
  rules\={{
750
- minDate: new Date('2025-07-10T05:30:17.621Z')
685
+ minDate: new Date('2025-09-08T00:08:13.831Z')
751
686
  }}
752
687
  />
753
688
  <IressFormField
@@ -758,7 +693,7 @@ Hide code
758
693
  rules\={{
759
694
  minDate: {
760
695
  message: 'Please enter a date after today!',
761
- value: new Date('2025-07-10T05:30:17.621Z')
696
+ value: new Date('2025-09-08T00:08:13.831Z')
762
697
  }
763
698
  }}
764
699
  />
@@ -800,7 +735,7 @@ Hide code
800
735
  name\="IressInputDate-default"
801
736
  render\={(controlledProps) \=> <IressInput {...controlledProps} />}
802
737
  rules\={{
803
- maxDate: new Date('2025-07-10T05:30:17.621Z')
738
+ maxDate: new Date('2025-09-08T00:08:13.831Z')
804
739
  }}
805
740
  />
806
741
  <IressFormField
@@ -811,7 +746,7 @@ Hide code
811
746
  rules\={{
812
747
  maxDate: {
813
748
  message: 'Please enter a date before today!',
814
- value: new Date('2025-07-10T05:30:17.621Z')
749
+ value: new Date('2025-09-08T00:08:13.831Z')
815
750
  }
816
751
  }}
817
752
  />
@@ -467,13 +467,13 @@ Hide code
467
467
  \>
468
468
  Default width </IressText\>
469
469
  <IressIcon
470
- className\="ids-styles--alt-background-v5150"
470
+ className\="ids-styles--alt-background-v5200"
471
471
  name\="space-shuttle"
472
472
  size\="3x"
473
473
  />
474
474
  <br />
475
475
  <IressIcon
476
- className\="ids-styles--alt-background-v5150"
476
+ className\="ids-styles--alt-background-v5200"
477
477
  name\="wine-glass-alt"
478
478
  size\="3x"
479
479
  />
@@ -485,14 +485,14 @@ Hide code
485
485
  \>
486
486
  Fixed width </IressText\>
487
487
  <IressIcon
488
- className\="ids-styles--alt-background-v5150"
488
+ className\="ids-styles--alt-background-v5200"
489
489
  fixedWidth
490
490
  name\="space-shuttle"
491
491
  size\="3x"
492
492
  />
493
493
  <br />
494
494
  <IressIcon
495
- className\="ids-styles--alt-background-v5150"
495
+ className\="ids-styles--alt-background-v5200"
496
496
  fixedWidth
497
497
  name\="wine-glass-alt"
498
498
  size\="3x"
@@ -15,7 +15,6 @@ Hide code
15
15
  <IressInputCurrency
16
16
  currencyCode\="AUD"
17
17
  defaultValue\={12345.678}
18
- locale\="en-AU"
19
18
  placeholder\="Enter amount and dispay currency currency separator on blur"
20
19
  />
21
20
 
@@ -24,9 +23,9 @@ Copy
24
23
  [](#examples)Examples
25
24
  ---------------------
26
25
 
27
- ### [](#different-locale-and-currencycode)Different Locale and CurrencyCode
26
+ ### [](#different-currency-code)Different Currency Code
28
27
 
29
- Display the GBP with `locale="en-GB"` and `currencyCode="GBP"` props (must pass both together)
28
+ Display GBP currency using the `currencyCode="GBP"` prop.
30
29
 
31
30
  GBP
32
31
 
@@ -37,49 +36,11 @@ Hide code
37
36
  <IressInputCurrency
38
37
  currencyCode\="GBP"
39
38
  defaultValue\={12345.678}
40
- locale\="en-GB"
41
39
  placeholder\="Enter amount and dispay currency currency separator on blur"
42
40
  />
43
41
 
44
42
  Copy
45
43
 
46
- Display the JPY with `locale="ja-JPY"` and `currencyCode="JPY"` props (must pass both together)
47
-
48
- JPY
49
-
50
- Hide code
51
-
52
- \[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; }
53
-
54
- <IressInputCurrency
55
- currencyCode\="JPY"
56
- defaultValue\={12345678}
57
- locale\="ja-JP"
58
- placeholder\="Enter amount and dispay currency currency separator on blur"
59
- />
60
-
61
- Copy
62
-
63
- ### [](#with-symbol)With Symbol
64
-
65
- Display the currency symbol with `withSymbol` props
66
-
67
- AUD
68
-
69
- Hide code
70
-
71
- \[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; }
72
-
73
- <IressInputCurrency
74
- currencyCode\="AUD"
75
- defaultValue\={12345.678}
76
- locale\="en-AU"
77
- placeholder\="Enter amount and dispay currency symbol on blur"
78
- withSymbol
79
- />
80
-
81
- Copy
82
-
83
44
  ### [](#more-format-options)More Format Options
84
45
 
85
46
  Pass more format options with `formatOptions` props. More format options in [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat)
@@ -97,7 +58,6 @@ Hide code
97
58
  maximumFractionDigits: 4,
98
59
  minimumFractionDigits: 2
99
60
  }}
100
- locale\="en-AU"
101
61
  placeholder\="Pass and play around with other native Intl.NumberFormat options to the code sandbox"
102
62
  />
103
63
 
@@ -107,7 +67,7 @@ Copy
107
67
 
108
68
  The `readOnly` prop can be set to prevent the user from changing the value of the input. This will change the input to a custom read-only style and the user will not be able to interact with the input. If you want to make the number align to right, please pass `alignRight` together.
109
69
 
110
- $12,345.68
70
+ A$12,345.68
111
71
 
112
72
  AUD
113
73
 
@@ -119,7 +79,6 @@ Hide code
119
79
  alignRight
120
80
  currencyCode\="AUD"
121
81
  defaultValue\={12345.678}
122
- locale\="en-AU"
123
82
  readOnly
124
83
  withSymbol
125
84
  />
@@ -140,7 +99,6 @@ Hide code
140
99
  alignRight
141
100
  currencyCode\="AUD"
142
101
  defaultValue\={12345.678}
143
- locale\="en-AU"
144
102
  />
145
103
 
146
104
  Copy
@@ -150,8 +108,7 @@ On this page
150
108
  * [Overview](#overview)
151
109
  * [Props](#props)
152
110
  * [Examples](#examples)
153
- * [Different Locale and CurrencyCode](#different-locale-and-currencycode)
154
- * [With Symbol](#with-symbol)
111
+ * [Different Currency Code](#different-currency-code)
155
112
  * [More Format Options](#more-format-options)
156
113
  * [Read Only](#read-only)
157
114
  * [Align Right](#align-right)
@@ -171,22 +171,22 @@ Hide code
171
171
  stack </h3\>
172
172
  <IressRadioGroup layout\="stack"\>
173
173
  <IressRadio
174
- className\="ids-styles--add-border-v5150"
174
+ className\="ids-styles--add-border-v5200"
175
175
  value\="google"
176
176
  \>
177
177
  Google </IressRadio\>
178
178
  <IressRadio
179
- className\="ids-styles--add-border-v5150"
179
+ className\="ids-styles--add-border-v5200"
180
180
  value\="newspaper"
181
181
  \>
182
182
  Newspaper </IressRadio\>
183
183
  <IressRadio
184
- className\="ids-styles--add-border-v5150"
184
+ className\="ids-styles--add-border-v5200"
185
185
  value\="friend"
186
186
  \>
187
187
  Friend </IressRadio\>
188
188
  <IressRadio
189
- className\="ids-styles--add-border-v5150"
189
+ className\="ids-styles--add-border-v5200"
190
190
  value\="other"
191
191
  \>
192
192
  Other </IressRadio\>
@@ -197,22 +197,22 @@ Hide code
197
197
  block </h3\>
198
198
  <IressRadioGroup layout\="block"\>
199
199
  <IressRadio
200
- className\="ids-styles--add-border-v5150"
200
+ className\="ids-styles--add-border-v5200"
201
201
  value\="google"
202
202
  \>
203
203
  Google </IressRadio\>
204
204
  <IressRadio
205
- className\="ids-styles--add-border-v5150"
205
+ className\="ids-styles--add-border-v5200"
206
206
  value\="newspaper"
207
207
  \>
208
208
  Newspaper </IressRadio\>
209
209
  <IressRadio
210
- className\="ids-styles--add-border-v5150"
210
+ className\="ids-styles--add-border-v5200"
211
211
  value\="friend"
212
212
  \>
213
213
  Friend </IressRadio\>
214
214
  <IressRadio
215
- className\="ids-styles--add-border-v5150"
215
+ className\="ids-styles--add-border-v5200"
216
216
  value\="other"
217
217
  \>
218
218
  Other </IressRadio\>
@@ -223,22 +223,22 @@ Hide code
223
223
  inline </h3\>
224
224
  <IressRadioGroup layout\="inline"\>
225
225
  <IressRadio
226
- className\="ids-styles--add-border-v5150"
226
+ className\="ids-styles--add-border-v5200"
227
227
  value\="google"
228
228
  \>
229
229
  Google </IressRadio\>
230
230
  <IressRadio
231
- className\="ids-styles--add-border-v5150"
231
+ className\="ids-styles--add-border-v5200"
232
232
  value\="newspaper"
233
233
  \>
234
234
  Newspaper </IressRadio\>
235
235
  <IressRadio
236
- className\="ids-styles--add-border-v5150"
236
+ className\="ids-styles--add-border-v5200"
237
237
  value\="friend"
238
238
  \>
239
239
  Friend </IressRadio\>
240
240
  <IressRadio
241
- className\="ids-styles--add-border-v5150"
241
+ className\="ids-styles--add-border-v5200"
242
242
  value\="other"
243
243
  \>
244
244
  Other </IressRadio\>
@@ -249,22 +249,22 @@ Hide code
249
249
  inlineFlex </h3\>
250
250
  <IressRadioGroup layout\="inlineFlex"\>
251
251
  <IressRadio
252
- className\="ids-styles--add-border-v5150"
252
+ className\="ids-styles--add-border-v5200"
253
253
  value\="google"
254
254
  \>
255
255
  Google </IressRadio\>
256
256
  <IressRadio
257
- className\="ids-styles--add-border-v5150"
257
+ className\="ids-styles--add-border-v5200"
258
258
  value\="newspaper"
259
259
  \>
260
260
  Newspaper </IressRadio\>
261
261
  <IressRadio
262
- className\="ids-styles--add-border-v5150"
262
+ className\="ids-styles--add-border-v5200"
263
263
  value\="friend"
264
264
  \>
265
265
  Friend </IressRadio\>
266
266
  <IressRadio
267
- className\="ids-styles--add-border-v5150"
267
+ className\="ids-styles--add-border-v5200"
268
268
  value\="other"
269
269
  \>
270
270
  Other </IressRadio\>
@@ -275,22 +275,22 @@ Hide code
275
275
  inlineEqualWidth </h3\>
276
276
  <IressRadioGroup layout\="inlineEqualWidth"\>
277
277
  <IressRadio
278
- className\="ids-styles--add-border-v5150"
278
+ className\="ids-styles--add-border-v5200"
279
279
  value\="google"
280
280
  \>
281
281
  Google </IressRadio\>
282
282
  <IressRadio
283
- className\="ids-styles--add-border-v5150"
283
+ className\="ids-styles--add-border-v5200"
284
284
  value\="newspaper"
285
285
  \>
286
286
  Newspaper </IressRadio\>
287
287
  <IressRadio
288
- className\="ids-styles--add-border-v5150"
288
+ className\="ids-styles--add-border-v5200"
289
289
  value\="friend"
290
290
  \>
291
291
  Friend </IressRadio\>
292
292
  <IressRadio
293
- className\="ids-styles--add-border-v5150"
293
+ className\="ids-styles--add-border-v5200"
294
294
  value\="other"
295
295
  \>
296
296
  Other </IressRadio\>
@@ -441,7 +441,7 @@ Hide code
441
441
  }}
442
442
  \>
443
443
  <div
444
- className\="ids-styles--resizable-v5150"
444
+ className\="ids-styles--resizable-v5200"
445
445
  style\={{
446
446
  display: 'grid',
447
447
  gridAutoRows: '1fr',