@webority/ui-react 0.164.0 → 0.165.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.
Files changed (80) hide show
  1. package/LICENSE +1 -1
  2. package/dist/canvas-kit/kit.js +206 -206
  3. package/dist/canvas-kit/manifest.json +1086 -406
  4. package/dist/canvas-kit/release.json +6 -6
  5. package/dist/components/AppAsyncBlock.js +1 -1
  6. package/dist/components/AppColorField.js +1 -1
  7. package/dist/components/AppDataTable.js +1 -1
  8. package/dist/components/AppDatePicker.js +1 -1
  9. package/dist/components/AppDateRangePicker.js +1 -1
  10. package/dist/components/AppDescriptions.js +1 -1
  11. package/dist/components/AppDropZone.js +1 -1
  12. package/dist/components/AppDropdown.js +1 -1
  13. package/dist/components/AppEntryGrid.js +1 -0
  14. package/dist/components/AppFileAttachment.js +1 -1
  15. package/dist/components/AppFilePicker.js +1 -1
  16. package/dist/components/AppFilterBar.js +1 -1
  17. package/dist/components/AppForm.js +1 -1
  18. package/dist/components/AppFormulaSteps.js +1 -0
  19. package/dist/components/AppImagePicker.js +1 -1
  20. package/dist/components/AppInput.js +1 -1
  21. package/dist/components/AppMentionInput.js +1 -1
  22. package/dist/components/AppMetricStrip.js +1 -1
  23. package/dist/components/AppModal.js +1 -1
  24. package/dist/components/AppNumberInput.js +1 -1
  25. package/dist/components/AppOtpInput.js +1 -1
  26. package/dist/components/AppPhoneNumberInput.js +1 -1
  27. package/dist/components/AppPopover.js +1 -1
  28. package/dist/components/AppRadioGroup.js +1 -1
  29. package/dist/components/AppRating.js +1 -1
  30. package/dist/components/AppRichText.js +1 -1
  31. package/dist/components/AppRowActions.js +1 -0
  32. package/dist/components/AppScoreScale.js +1 -1
  33. package/dist/components/AppSectionFeatures.js +1 -1
  34. package/dist/components/AppSectionLogos.js +1 -1
  35. package/dist/components/AppSelect.js +1 -1
  36. package/dist/components/AppShell.js +1 -1
  37. package/dist/components/AppSlider.js +1 -1
  38. package/dist/components/AppTextarea.js +1 -1
  39. package/dist/components/AppTimePicker.js +1 -1
  40. package/dist/components/AppToast.js +1 -1
  41. package/dist/guidance.json +212 -137
  42. package/dist/hookForm/index.js +1 -0
  43. package/dist/lib/CheckField.js +1 -1
  44. package/dist/lib/formFields.js +1 -0
  45. package/dist/lib/unsavedText.js +1 -0
  46. package/dist/types/components/AppAsyncBlock.d.ts +3 -3
  47. package/dist/types/components/AppChart.d.ts +12 -4
  48. package/dist/types/components/AppDataTable.d.ts +29 -2
  49. package/dist/types/components/AppDateRangePicker.d.ts +4 -0
  50. package/dist/types/components/AppDescriptions.d.ts +6 -0
  51. package/dist/types/components/AppEntryGrid.d.ts +122 -0
  52. package/dist/types/components/AppFilterBar.d.ts +12 -1
  53. package/dist/types/components/AppForm.d.ts +18 -0
  54. package/dist/types/components/AppFormulaSteps.d.ts +64 -0
  55. package/dist/types/components/AppMetricStrip.d.ts +5 -0
  56. package/dist/types/components/AppModal.d.ts +5 -0
  57. package/dist/types/components/AppRowActions.d.ts +40 -0
  58. package/dist/types/components/AppSectionFeatures.d.ts +5 -1
  59. package/dist/types/components/AppSectionLogos.d.ts +1 -0
  60. package/dist/types/components/AppShell.d.ts +2 -0
  61. package/dist/types/components/AppSlider.d.ts +5 -0
  62. package/dist/types/components/AppToast.d.ts +5 -0
  63. package/dist/types/hookForm/index.d.ts +14 -0
  64. package/dist/types/index.d.ts +7 -5
  65. package/dist/types/lib/formFields.d.ts +12 -0
  66. package/dist/types/lib/unsavedText.d.ts +5 -0
  67. package/dist/ui-react.js +1 -1
  68. package/dist/web-core/dist/errors/extractApiError.js +2 -0
  69. package/dist/web-core/dist/errors/requestPlatform.js +1 -0
  70. package/package.json +20 -9
  71. package/dist/components/AppResizable.js +0 -1
  72. package/dist/components/AppResizableHandle.js +0 -1
  73. package/dist/components/AppResizablePanel.js +0 -1
  74. package/dist/components/AppRollingNumber.js +0 -1
  75. package/dist/components/AppRowSwitch.js +0 -1
  76. package/dist/types/components/AppResizable.d.ts +0 -37
  77. package/dist/types/components/AppResizableHandle.d.ts +0 -14
  78. package/dist/types/components/AppResizablePanel.d.ts +0 -14
  79. package/dist/types/components/AppRollingNumber.d.ts +0 -30
  80. package/dist/types/components/AppRowSwitch.d.ts +0 -18
@@ -2,7 +2,7 @@
2
2
  "kind": "WeborityWeb",
3
3
  "library": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.164.0"
5
+ "version": "0.165.0"
6
6
  },
7
7
  "rendererProtocolVersion": 14,
8
8
  "platform": "Web",
@@ -787,14 +787,14 @@
787
787
  "type": "string",
788
788
  "required": false,
789
789
  "description": "Replaces the built-in English text, for other languages.",
790
- "default": "Nothing to show yet"
790
+ "default": "Nothing here yet"
791
791
  },
792
792
  {
793
793
  "name": "errorTitle",
794
794
  "type": "string",
795
795
  "required": false,
796
796
  "description": "Replaces the built-in English text, for other languages.",
797
- "default": "Something went wrong"
797
+ "default": "That didn't load"
798
798
  },
799
799
  {
800
800
  "name": "loadingLabel",
@@ -808,7 +808,7 @@
808
808
  "type": "string",
809
809
  "required": false,
810
810
  "description": "Replaces the built-in English text, for other languages.",
811
- "default": "Retry"
811
+ "default": "Try again"
812
812
  },
813
813
  {
814
814
  "name": "skeleton",
@@ -930,7 +930,7 @@
930
930
  "a11y": [
931
931
  "Each drawn state is marked with a data-state attribute on the wrapper: loading, error, empty or data. Idle draws no wrapper.",
932
932
  "With no skeleton, the loading state is an indeterminate progress bar labelled Loading.",
933
- "The error state is an empty state with a Retry button that calls the state's retry.",
933
+ "The error state is an empty state with a Try again button that calls the state's retry.",
934
934
  "The component sets no aria attributes of its own."
935
935
  ]
936
936
  }
@@ -3157,6 +3157,63 @@
3157
3157
  {
3158
3158
  "name": "format",
3159
3159
  "type": "object",
3160
+ "fields": [
3161
+ {
3162
+ "name": "currency",
3163
+ "type": "string",
3164
+ "required": false,
3165
+ "description": "For currency and compact: a three-letter ISO 4217 code such as INR, USD, EUR or GBP. INR when left out."
3166
+ },
3167
+ {
3168
+ "name": "decimals",
3169
+ "type": "number",
3170
+ "required": false,
3171
+ "description": "Fraction digits: fixed for currency (0 when left out), a cap for other styles."
3172
+ },
3173
+ {
3174
+ "name": "pattern",
3175
+ "type": "enum",
3176
+ "enum": [
3177
+ "datetime",
3178
+ "day",
3179
+ "month",
3180
+ "time",
3181
+ "year"
3182
+ ],
3183
+ "required": false,
3184
+ "description": "For date: how the date prints. day shows 04-Oct-2026, in the time zone of the chart (IST by default).",
3185
+ "default": "day"
3186
+ },
3187
+ {
3188
+ "name": "style",
3189
+ "type": "enum",
3190
+ "enum": [
3191
+ "compact",
3192
+ "currency",
3193
+ "date",
3194
+ "duration",
3195
+ "number",
3196
+ "percent"
3197
+ ],
3198
+ "required": false,
3199
+ "description": "How the value prints. percent takes a ratio, so 0.125 shows as 12.5%. compact shortens (lakh and crore for rupees, K, M and B for other currencies).",
3200
+ "default": "number"
3201
+ },
3202
+ {
3203
+ "name": "unit",
3204
+ "type": "enum",
3205
+ "enum": [
3206
+ "h",
3207
+ "min",
3208
+ "ms",
3209
+ "paise",
3210
+ "rupees",
3211
+ "s"
3212
+ ],
3213
+ "required": false,
3214
+ "description": "What the value counts: rupees (default) or paise for money; ms, s (default), min or h for a duration."
3215
+ }
3216
+ ],
3160
3217
  "required": false,
3161
3218
  "description": "How this series' values print: a style, with currency, unit, decimals or pattern where the style takes them."
3162
3219
  },
@@ -3183,6 +3240,63 @@
3183
3240
  {
3184
3241
  "name": "format",
3185
3242
  "type": "object",
3243
+ "fields": [
3244
+ {
3245
+ "name": "currency",
3246
+ "type": "string",
3247
+ "required": false,
3248
+ "description": "For currency and compact: a three-letter ISO 4217 code such as INR, USD, EUR or GBP. INR when left out."
3249
+ },
3250
+ {
3251
+ "name": "decimals",
3252
+ "type": "number",
3253
+ "required": false,
3254
+ "description": "Fraction digits: fixed for currency (0 when left out), a cap for other styles."
3255
+ },
3256
+ {
3257
+ "name": "pattern",
3258
+ "type": "enum",
3259
+ "enum": [
3260
+ "datetime",
3261
+ "day",
3262
+ "month",
3263
+ "time",
3264
+ "year"
3265
+ ],
3266
+ "required": false,
3267
+ "description": "For date: how the date prints. day shows 04-Oct-2026, in the time zone of the chart (IST by default).",
3268
+ "default": "day"
3269
+ },
3270
+ {
3271
+ "name": "style",
3272
+ "type": "enum",
3273
+ "enum": [
3274
+ "compact",
3275
+ "currency",
3276
+ "date",
3277
+ "duration",
3278
+ "number",
3279
+ "percent"
3280
+ ],
3281
+ "required": false,
3282
+ "description": "How the value prints. percent takes a ratio, so 0.125 shows as 12.5%. compact shortens (lakh and crore for rupees, K, M and B for other currencies).",
3283
+ "default": "number"
3284
+ },
3285
+ {
3286
+ "name": "unit",
3287
+ "type": "enum",
3288
+ "enum": [
3289
+ "h",
3290
+ "min",
3291
+ "ms",
3292
+ "paise",
3293
+ "rupees",
3294
+ "s"
3295
+ ],
3296
+ "required": false,
3297
+ "description": "What the value counts: rupees (default) or paise for money; ms, s (default), min or h for a duration."
3298
+ }
3299
+ ],
3186
3300
  "required": false,
3187
3301
  "description": "How bubble areas print: a style, with currency, unit, decimals or pattern where the style takes them."
3188
3302
  },
@@ -3339,6 +3453,63 @@
3339
3453
  {
3340
3454
  "name": "format",
3341
3455
  "type": "object",
3456
+ "fields": [
3457
+ {
3458
+ "name": "currency",
3459
+ "type": "string",
3460
+ "required": false,
3461
+ "description": "For currency and compact: a three-letter ISO 4217 code such as INR, USD, EUR or GBP. INR when left out."
3462
+ },
3463
+ {
3464
+ "name": "decimals",
3465
+ "type": "number",
3466
+ "required": false,
3467
+ "description": "Fraction digits: fixed for currency (0 when left out), a cap for other styles."
3468
+ },
3469
+ {
3470
+ "name": "pattern",
3471
+ "type": "enum",
3472
+ "enum": [
3473
+ "datetime",
3474
+ "day",
3475
+ "month",
3476
+ "time",
3477
+ "year"
3478
+ ],
3479
+ "required": false,
3480
+ "description": "For date: how the date prints. day shows 04-Oct-2026, in the time zone of the chart (IST by default).",
3481
+ "default": "day"
3482
+ },
3483
+ {
3484
+ "name": "style",
3485
+ "type": "enum",
3486
+ "enum": [
3487
+ "compact",
3488
+ "currency",
3489
+ "date",
3490
+ "duration",
3491
+ "number",
3492
+ "percent"
3493
+ ],
3494
+ "required": false,
3495
+ "description": "How the value prints. percent takes a ratio, so 0.125 shows as 12.5%. compact shortens (lakh and crore for rupees, K, M and B for other currencies).",
3496
+ "default": "number"
3497
+ },
3498
+ {
3499
+ "name": "unit",
3500
+ "type": "enum",
3501
+ "enum": [
3502
+ "h",
3503
+ "min",
3504
+ "ms",
3505
+ "paise",
3506
+ "rupees",
3507
+ "s"
3508
+ ],
3509
+ "required": false,
3510
+ "description": "What the value counts: rupees (default) or paise for money; ms, s (default), min or h for a duration."
3511
+ }
3512
+ ],
3342
3513
  "required": false,
3343
3514
  "description": "How x values print: a style, with currency, unit, decimals or pattern where the style takes them."
3344
3515
  },
@@ -3389,6 +3560,63 @@
3389
3560
  {
3390
3561
  "name": "format",
3391
3562
  "type": "object",
3563
+ "fields": [
3564
+ {
3565
+ "name": "currency",
3566
+ "type": "string",
3567
+ "required": false,
3568
+ "description": "For currency and compact: a three-letter ISO 4217 code such as INR, USD, EUR or GBP. INR when left out."
3569
+ },
3570
+ {
3571
+ "name": "decimals",
3572
+ "type": "number",
3573
+ "required": false,
3574
+ "description": "Fraction digits: fixed for currency (0 when left out), a cap for other styles."
3575
+ },
3576
+ {
3577
+ "name": "pattern",
3578
+ "type": "enum",
3579
+ "enum": [
3580
+ "datetime",
3581
+ "day",
3582
+ "month",
3583
+ "time",
3584
+ "year"
3585
+ ],
3586
+ "required": false,
3587
+ "description": "For date: how the date prints. day shows 04-Oct-2026, in the time zone of the chart (IST by default).",
3588
+ "default": "day"
3589
+ },
3590
+ {
3591
+ "name": "style",
3592
+ "type": "enum",
3593
+ "enum": [
3594
+ "compact",
3595
+ "currency",
3596
+ "date",
3597
+ "duration",
3598
+ "number",
3599
+ "percent"
3600
+ ],
3601
+ "required": false,
3602
+ "description": "How the value prints. percent takes a ratio, so 0.125 shows as 12.5%. compact shortens (lakh and crore for rupees, K, M and B for other currencies).",
3603
+ "default": "number"
3604
+ },
3605
+ {
3606
+ "name": "unit",
3607
+ "type": "enum",
3608
+ "enum": [
3609
+ "h",
3610
+ "min",
3611
+ "ms",
3612
+ "paise",
3613
+ "rupees",
3614
+ "s"
3615
+ ],
3616
+ "required": false,
3617
+ "description": "What the value counts: rupees (default) or paise for money; ms, s (default), min or h for a duration."
3618
+ }
3619
+ ],
3392
3620
  "required": false,
3393
3621
  "description": "How axis values print: a style, with currency, unit, decimals or pattern where the style takes them."
3394
3622
  },
@@ -7308,6 +7536,12 @@
7308
7536
  "required": false,
7309
7537
  "description": "Gives this column the spare width."
7310
7538
  },
7539
+ {
7540
+ "name": "help",
7541
+ "type": "node",
7542
+ "required": false,
7543
+ "description": "Help shown in an info tip beside the header label."
7544
+ },
7311
7545
  {
7312
7546
  "name": "hideable",
7313
7547
  "type": "boolean",
@@ -7395,6 +7629,13 @@
7395
7629
  "required": false,
7396
7630
  "description": "Shown when there are no rows and sourceCount is unset or above 0."
7397
7631
  },
7632
+ {
7633
+ "name": "equalActions",
7634
+ "type": "boolean",
7635
+ "required": false,
7636
+ "description": "Gives every labelled button in the row actions column the same width, so the column lines up from row to row. Icon-only actions are not widened.",
7637
+ "default": false
7638
+ },
7398
7639
  {
7399
7640
  "name": "flush",
7400
7641
  "type": "boolean",
@@ -7432,6 +7673,13 @@
7432
7673
  "required": false,
7433
7674
  "description": "DOM id on the table's outer box; a column menu's for names it."
7434
7675
  },
7676
+ {
7677
+ "name": "linkFirstColumn",
7678
+ "type": "boolean",
7679
+ "required": false,
7680
+ "description": "Draws the first column's name as a link. Needs rowHref or onRowClick.",
7681
+ "default": false
7682
+ },
7435
7683
  {
7436
7684
  "name": "loading",
7437
7685
  "type": "boolean",
@@ -7511,6 +7759,13 @@
7511
7759
  "required": false,
7512
7760
  "description": "The footer's state, usually straight from usePagination. The footer shows once total is above the smallest page size and stays in place while loading."
7513
7761
  },
7762
+ {
7763
+ "name": "refreshing",
7764
+ "type": "boolean",
7765
+ "required": false,
7766
+ "description": "Keeps the current rows on screen, dimmed and marked busy, while new rows load. Has no effect with no rows; loading shows skeleton rows instead.",
7767
+ "default": false
7768
+ },
7514
7769
  {
7515
7770
  "name": "resizableColumns",
7516
7771
  "type": "boolean",
@@ -7550,6 +7805,13 @@
7550
7805
  "required": false,
7551
7806
  "description": "Currently selected row keys, as a Set."
7552
7807
  },
7808
+ {
7809
+ "name": "singleExpand",
7810
+ "type": "boolean",
7811
+ "required": false,
7812
+ "description": "With renderExpanded, opening a row closes the one that was open, so at most one row is expanded.",
7813
+ "default": false
7814
+ },
7553
7815
  {
7554
7816
  "name": "skeletonRows",
7555
7817
  "type": "number",
@@ -7599,7 +7861,7 @@
7599
7861
  "name": "stickyActions",
7600
7862
  "type": "boolean",
7601
7863
  "required": false,
7602
- "description": "Pins the last column, where rowActions render, to the end edge while a wide table scrolls sideways, so a row's actions stay in view in a narrow box.",
7864
+ "description": "Pins the last column, where the rowActions list renders, to the end edge while a wide table scrolls sideways, so a row's actions stay in view in a narrow box.",
7603
7865
  "default": false
7604
7866
  },
7605
7867
  {
@@ -8321,6 +8583,12 @@
8321
8583
  "required": false,
8322
8584
  "description": "A glyph in a 36px round tile before the label, by name or as a node."
8323
8585
  },
8586
+ {
8587
+ "name": "id",
8588
+ "type": "string",
8589
+ "required": false,
8590
+ "description": "Set on the item's root so a link can jump to the row. Any data-* attribute on an item is set there too."
8591
+ },
8324
8592
  {
8325
8593
  "name": "key",
8326
8594
  "type": "string",
@@ -8345,6 +8613,12 @@
8345
8613
  "required": false,
8346
8614
  "description": "How many grid columns the item spans: 2 or 3 for a longer value."
8347
8615
  },
8616
+ {
8617
+ "name": "tabIndex",
8618
+ "type": "number",
8619
+ "required": false,
8620
+ "description": "Set on the item's root; 0 or -1 makes the row focusable."
8621
+ },
8348
8622
  {
8349
8623
  "name": "value",
8350
8624
  "type": "node",
@@ -9625,80 +9899,353 @@
9625
9899
  }
9626
9900
  },
9627
9901
  {
9628
- "name": "AppErrorBoundary",
9629
- "marker": null,
9630
- "acceptsChildren": true,
9902
+ "name": "AppEntryGrid",
9903
+ "marker": "AppEntryGrid",
9904
+ "acceptsChildren": false,
9631
9905
  "props": [
9632
9906
  {
9633
- "name": "brand",
9634
- "type": "node",
9907
+ "name": "activeRowKey",
9908
+ "type": "string",
9635
9909
  "required": false,
9636
- "description": "Shown above the default screen."
9910
+ "nullable": true,
9911
+ "description": "The key, as rowKey returns it, of the row the person is working on; that row is drawn as active."
9637
9912
  },
9638
9913
  {
9639
- "name": "fallback",
9640
- "type": "node",
9914
+ "name": "addLabel",
9915
+ "type": "string",
9641
9916
  "required": false,
9642
- "description": "What to show after an error. A function receives { error, reset }. Default: the AppRouteError screen with Try again, Reload the page and a home link."
9917
+ "description": "The text of the button that adds an empty line at the end.",
9918
+ "default": "Add line"
9643
9919
  },
9644
9920
  {
9645
- "name": "homeHref",
9646
- "type": "url",
9921
+ "name": "className",
9922
+ "type": "string",
9647
9923
  "required": false,
9648
- "description": "Where \"Go to the home page\" leads in the default screen.",
9649
- "default": "/"
9924
+ "description": "Extra class names added to the grid's root element.",
9925
+ "default": ""
9650
9926
  },
9651
9927
  {
9652
- "name": "resetKeys",
9928
+ "name": "columns",
9653
9929
  "type": "array",
9930
+ "itemFields": [
9931
+ {
9932
+ "name": "help",
9933
+ "type": "node",
9934
+ "required": false,
9935
+ "description": "Help shown beside the column heading."
9936
+ },
9937
+ {
9938
+ "name": "key",
9939
+ "type": "string",
9940
+ "required": true,
9941
+ "description": "The row field this column reads and edits."
9942
+ },
9943
+ {
9944
+ "name": "kind",
9945
+ "type": "enum",
9946
+ "enum": [
9947
+ "number",
9948
+ "text"
9949
+ ],
9950
+ "required": false,
9951
+ "description": "number right-aligns the column and selects the text of a focused input.",
9952
+ "default": "text"
9953
+ },
9954
+ {
9955
+ "name": "label",
9956
+ "type": "node",
9957
+ "required": true,
9958
+ "description": "The column heading."
9959
+ },
9960
+ {
9961
+ "name": "width",
9962
+ "type": "stringOrNumber",
9963
+ "required": false,
9964
+ "description": "The column's width, in px or a CSS length."
9965
+ }
9966
+ ],
9967
+ "required": true,
9968
+ "description": "The columns, left to right, each with a key and a label, plus optional kind, width and help."
9969
+ },
9970
+ {
9971
+ "name": "commitNextLabel",
9972
+ "type": "string",
9654
9973
  "required": false,
9655
- "description": "The boundary clears itself when any item changes, such as the route path."
9656
- }
9657
- ],
9658
- "itemsTakeAction": [],
9659
- "takesAction": [],
9660
- "source": "@webority/ui-react",
9661
- "usage": {
9662
- "when": [
9663
- "One page or section may throw while the rest of the app still works.",
9664
- "A failed section should offer Try again without a full page load."
9665
- ],
9666
- "whenNot": [
9667
- {
9668
- "text": "The root of the app, where a stale build must reload the page once and the error is logged.",
9669
- "instead": "ErrorBoundary from @webority/web-core"
9670
- },
9671
- {
9672
- "text": "A router errorElement for a failed route or loader.",
9673
- "instead": "AppRouteError"
9674
- },
9675
- {
9676
- "text": "A section whose data request failed but nothing threw.",
9677
- "instead": "AppAsyncBlock"
9678
- }
9679
- ],
9680
- "do": [
9681
- {
9682
- "title": "Clear the error on navigation",
9683
- "note": "Pass resetKeys so moving to another page clears the error.",
9684
- "example": [
9685
- {
9686
- "component": "AppErrorBoundary",
9687
- "props": {
9688
- "resetKeys": [
9689
- "/projects"
9690
- ]
9691
- }
9692
- }
9693
- ]
9694
- },
9695
- {
9696
- "title": "Never show the error text",
9697
- "note": "The default screen shows a plain sentence, so internal details stay private.",
9698
- "example": [
9699
- {
9700
- "component": "AppErrorBoundary",
9701
- "props": {
9974
+ "description": "The keyboard legend for Enter.",
9975
+ "default": "Save and go to the next line"
9976
+ },
9977
+ {
9978
+ "name": "commitStayLabel",
9979
+ "type": "string",
9980
+ "required": false,
9981
+ "description": "The keyboard legend for Ctrl and S.",
9982
+ "default": "Save"
9983
+ },
9984
+ {
9985
+ "name": "dirtyLabel",
9986
+ "type": "string",
9987
+ "required": false,
9988
+ "description": "The status word for a line with changes not yet saved.",
9989
+ "default": "Changed"
9990
+ },
9991
+ {
9992
+ "name": "discardLabel",
9993
+ "type": "string",
9994
+ "required": false,
9995
+ "description": "The keyboard legend for Escape.",
9996
+ "default": "Discard changes"
9997
+ },
9998
+ {
9999
+ "name": "emptyLabel",
10000
+ "type": "string",
10001
+ "required": false,
10002
+ "description": "The message shown when there are no rows.",
10003
+ "default": "No lines yet"
10004
+ },
10005
+ {
10006
+ "name": "failedLabel",
10007
+ "type": "string",
10008
+ "required": false,
10009
+ "description": "The status word for a line whose save failed.",
10010
+ "default": "Not saved"
10011
+ },
10012
+ {
10013
+ "name": "hint",
10014
+ "type": "boolean",
10015
+ "required": false,
10016
+ "description": "Shows the keyboard legend under the grid.",
10017
+ "default": true
10018
+ },
10019
+ {
10020
+ "name": "label",
10021
+ "type": "string",
10022
+ "required": false,
10023
+ "description": "The accessible name of the table.",
10024
+ "default": "Entry lines"
10025
+ },
10026
+ {
10027
+ "name": "moveLabel",
10028
+ "type": "string",
10029
+ "required": false,
10030
+ "description": "The keyboard legend for Ctrl and the arrow keys.",
10031
+ "default": "Move between lines"
10032
+ },
10033
+ {
10034
+ "name": "rows",
10035
+ "type": "array",
10036
+ "required": true,
10037
+ "description": "The row objects shown in the grid, one per line, in the order they appear."
10038
+ },
10039
+ {
10040
+ "name": "savedLabel",
10041
+ "type": "string",
10042
+ "required": false,
10043
+ "description": "The status word for a line that was saved.",
10044
+ "default": "Saved"
10045
+ },
10046
+ {
10047
+ "name": "savingLabel",
10048
+ "type": "string",
10049
+ "required": false,
10050
+ "description": "The status word for a line being saved.",
10051
+ "default": "Saving"
10052
+ },
10053
+ {
10054
+ "name": "statusLabel",
10055
+ "type": "string",
10056
+ "required": false,
10057
+ "description": "The name of the status column, read by screen readers but not shown.",
10058
+ "default": "Status"
10059
+ }
10060
+ ],
10061
+ "itemsTakeAction": [],
10062
+ "takesAction": [],
10063
+ "source": "@webority/ui-react",
10064
+ "usage": {
10065
+ "when": [
10066
+ "A person enters or corrects several lines of figures in one table, one line at a time.",
10067
+ "Each line is saved on its own, and the person moves through the lines with the keyboard."
10068
+ ],
10069
+ "whenNot": [
10070
+ {
10071
+ "text": "The table only shows records and nothing is typed into it.",
10072
+ "instead": "AppDataTable"
10073
+ },
10074
+ {
10075
+ "text": "One field on a record is edited in place.",
10076
+ "instead": "AppInlineEdit"
10077
+ }
10078
+ ],
10079
+ "do": [
10080
+ {
10081
+ "title": "Save each line as the person leaves it",
10082
+ "note": "Enter saves the line and moves to the next one, so the person never reaches for a save button per line.",
10083
+ "example": [
10084
+ {
10085
+ "component": "AppEntryGrid",
10086
+ "props": {
10087
+ "columns": [
10088
+ {
10089
+ "key": "item",
10090
+ "label": "Item"
10091
+ },
10092
+ {
10093
+ "key": "units",
10094
+ "label": "Units",
10095
+ "kind": "number"
10096
+ }
10097
+ ],
10098
+ "rows": [
10099
+ {
10100
+ "id": "L1",
10101
+ "item": "Blue pens",
10102
+ "units": 48
10103
+ }
10104
+ ]
10105
+ }
10106
+ }
10107
+ ]
10108
+ }
10109
+ ],
10110
+ "dont": [
10111
+ {
10112
+ "title": "Save each line as the person leaves it",
10113
+ "note": "A read-only table with no save path leaves the person's typing with nowhere to go.",
10114
+ "example": [
10115
+ {
10116
+ "component": "AppDataTable",
10117
+ "props": {
10118
+ "columns": [
10119
+ {
10120
+ "key": "item",
10121
+ "label": "Item"
10122
+ },
10123
+ {
10124
+ "key": "units",
10125
+ "label": "Units"
10126
+ }
10127
+ ],
10128
+ "rows": [
10129
+ {
10130
+ "id": "L1",
10131
+ "item": "Blue pens",
10132
+ "units": 48
10133
+ }
10134
+ ]
10135
+ }
10136
+ }
10137
+ ]
10138
+ }
10139
+ ],
10140
+ "a11y": [
10141
+ "The table is named by label, and the active line carries aria-current.",
10142
+ "Each status is a glyph with a visually hidden word, so a saving, saved or failed line is not shown by colour alone.",
10143
+ "A failed line shows its error in an alert region under the line."
10144
+ ],
10145
+ "keyboard": [
10146
+ {
10147
+ "key": "Enter",
10148
+ "does": "Saves the line; the page moves to the next line once the save succeeds.",
10149
+ "notes": "Does nothing inside a text area, a button, or an open menu."
10150
+ },
10151
+ {
10152
+ "key": "Ctrl+S",
10153
+ "does": "Saves the line and keeps the focus on it.",
10154
+ "notes": "Meta+S does the same on a Mac."
10155
+ },
10156
+ {
10157
+ "key": "Escape",
10158
+ "does": "Discards the changes on the line and restores its last saved values.",
10159
+ "notes": "Does nothing inside an open menu."
10160
+ },
10161
+ {
10162
+ "key": "Ctrl+ArrowUp and Ctrl+ArrowDown",
10163
+ "does": "Moves the active line up or down.",
10164
+ "notes": "Does nothing at the first or last line."
10165
+ },
10166
+ {
10167
+ "key": "Tab and Shift+Tab",
10168
+ "does": "Move between the fields of a line in page order.",
10169
+ "notes": "Never intercepted, so the person can always tab out of the grid."
10170
+ }
10171
+ ]
10172
+ }
10173
+ },
10174
+ {
10175
+ "name": "AppErrorBoundary",
10176
+ "marker": null,
10177
+ "acceptsChildren": true,
10178
+ "props": [
10179
+ {
10180
+ "name": "brand",
10181
+ "type": "node",
10182
+ "required": false,
10183
+ "description": "Shown above the default screen."
10184
+ },
10185
+ {
10186
+ "name": "fallback",
10187
+ "type": "node",
10188
+ "required": false,
10189
+ "description": "What to show after an error. A function receives { error, reset }. Default: the AppRouteError screen with Try again, Reload the page and a home link."
10190
+ },
10191
+ {
10192
+ "name": "homeHref",
10193
+ "type": "url",
10194
+ "required": false,
10195
+ "description": "Where \"Go to the home page\" leads in the default screen.",
10196
+ "default": "/"
10197
+ },
10198
+ {
10199
+ "name": "resetKeys",
10200
+ "type": "array",
10201
+ "required": false,
10202
+ "description": "The boundary clears itself when any item changes, such as the route path."
10203
+ }
10204
+ ],
10205
+ "itemsTakeAction": [],
10206
+ "takesAction": [],
10207
+ "source": "@webority/ui-react",
10208
+ "usage": {
10209
+ "when": [
10210
+ "One page or section may throw while the rest of the app still works.",
10211
+ "A failed section should offer Try again without a full page load."
10212
+ ],
10213
+ "whenNot": [
10214
+ {
10215
+ "text": "The root of the app, where a stale build must reload the page once and the error is logged.",
10216
+ "instead": "ErrorBoundary from @webority/web-core"
10217
+ },
10218
+ {
10219
+ "text": "A router errorElement for a failed route or loader.",
10220
+ "instead": "AppRouteError"
10221
+ },
10222
+ {
10223
+ "text": "A section whose data request failed but nothing threw.",
10224
+ "instead": "AppAsyncBlock"
10225
+ }
10226
+ ],
10227
+ "do": [
10228
+ {
10229
+ "title": "Clear the error on navigation",
10230
+ "note": "Pass resetKeys so moving to another page clears the error.",
10231
+ "example": [
10232
+ {
10233
+ "component": "AppErrorBoundary",
10234
+ "props": {
10235
+ "resetKeys": [
10236
+ "/projects"
10237
+ ]
10238
+ }
10239
+ }
10240
+ ]
10241
+ },
10242
+ {
10243
+ "title": "Never show the error text",
10244
+ "note": "The default screen shows a plain sentence, so internal details stay private.",
10245
+ "example": [
10246
+ {
10247
+ "component": "AppErrorBoundary",
10248
+ "props": {
9702
10249
  "homeHref": "/dashboard"
9703
10250
  }
9704
10251
  }
@@ -10613,6 +11160,13 @@
10613
11160
  "description": "Replaces the built-in English text, for other languages. {date} is the end date of a date range chip.",
10614
11161
  "default": "Until {date}"
10615
11162
  },
11163
+ {
11164
+ "name": "facetLabels",
11165
+ "type": "boolean",
11166
+ "required": false,
11167
+ "description": "Draws each inline facet's label above its control. The folded Filters panel always shows labels.",
11168
+ "default": false
11169
+ },
10616
11170
  {
10617
11171
  "name": "facets",
10618
11172
  "type": "array",
@@ -10639,6 +11193,18 @@
10639
11193
  "name": "options",
10640
11194
  "type": "array",
10641
11195
  "itemFields": [
11196
+ {
11197
+ "name": "count",
11198
+ "type": "number",
11199
+ "required": false,
11200
+ "description": "A number drawn in the option's segment, such as how many rows it would show. Only an enum facet drawn as segments shows it."
11201
+ },
11202
+ {
11203
+ "name": "icon",
11204
+ "type": "icon",
11205
+ "required": false,
11206
+ "description": "A library icon name drawn in the option's segment. Only an enum facet drawn as segments shows it."
11207
+ },
10642
11208
  {
10643
11209
  "name": "label",
10644
11210
  "type": "string",
@@ -11022,6 +11588,33 @@
11022
11588
  "required": false,
11023
11589
  "description": "Extra class names added to the form element.",
11024
11590
  "default": ""
11591
+ },
11592
+ {
11593
+ "name": "fieldErrors",
11594
+ "type": "object",
11595
+ "required": false,
11596
+ "description": "Field name to message. A field inside the form with that name and no error of its own shows it; one no field claims is drawn at the top of the form.",
11597
+ "default": {}
11598
+ },
11599
+ {
11600
+ "name": "formErrors",
11601
+ "type": "array",
11602
+ "required": false,
11603
+ "description": "Errors that name no field, drawn at the top of the form.",
11604
+ "default": []
11605
+ },
11606
+ {
11607
+ "name": "unsavedChanges",
11608
+ "type": "object",
11609
+ "required": false,
11610
+ "description": "The guard from useUnsavedChanges (@webority/web-core/router); the form asks before a held navigation goes ahead."
11611
+ },
11612
+ {
11613
+ "name": "unsavedChangesMessage",
11614
+ "type": "string",
11615
+ "required": false,
11616
+ "description": "Replaces the question's message.",
11617
+ "default": "Your changes on this page are not saved. If you leave now, they are lost."
11025
11618
  }
11026
11619
  ],
11027
11620
  "itemsTakeAction": [],
@@ -11276,14 +11869,154 @@
11276
11869
  "display"
11277
11870
  ],
11278
11871
  "required": false,
11279
- "description": "display sets the title in the display face; body keeps the text face.",
11280
- "default": "body"
11872
+ "description": "display sets the title in the display face; body keeps the text face.",
11873
+ "default": "body"
11874
+ },
11875
+ {
11876
+ "name": "titleSize",
11877
+ "type": "number",
11878
+ "required": false,
11879
+ "description": "The title's font size in px; unset keeps the theme's 15px."
11880
+ }
11881
+ ],
11882
+ "itemsTakeAction": [],
11883
+ "takesAction": [],
11884
+ "source": "@webority/ui-react",
11885
+ "usage": {
11886
+ "when": [
11887
+ "You're building a form page: use all three helpers together for a consistent layout.",
11888
+ "You need to group logically related fields: AppFormSection wraps them with a title.",
11889
+ "You have multiple fields in a row: AppFormRow arranges them responsively.",
11890
+ "You're adding action buttons (submit, cancel, etc.): AppFormActions keeps them aligned."
11891
+ ],
11892
+ "whenNot": [
11893
+ {
11894
+ "text": "You're placing a single isolated field",
11895
+ "instead": "just use AppInput directly"
11896
+ },
11897
+ {
11898
+ "text": "Your form is a dialog/modal",
11899
+ "instead": "AppModal / AppConfirmDialog owns the footer logic"
11900
+ },
11901
+ {
11902
+ "text": "You need a custom grid layout",
11903
+ "instead": "use Bootstrap Row/Col for full control"
11904
+ }
11905
+ ],
11906
+ "do": [],
11907
+ "dont": [],
11908
+ "a11y": [
11909
+ "Renders a section element whose title is a real heading: h3 by default, h2 to h4 through headingLevel, so it appears in the page outline.",
11910
+ "The description is a paragraph under the heading; the heading and description are left out when neither title nor description is given.",
11911
+ "Extra attributes such as aria-labelledby pass through to the section."
11912
+ ]
11913
+ }
11914
+ },
11915
+ {
11916
+ "name": "AppFormulaSteps",
11917
+ "marker": "AppFormulaSteps",
11918
+ "acceptsChildren": false,
11919
+ "props": [
11920
+ {
11921
+ "name": "className",
11922
+ "type": "string",
11923
+ "required": false,
11924
+ "description": "Extra class names added to the list's root element.",
11925
+ "default": ""
11926
+ },
11927
+ {
11928
+ "name": "divideLabel",
11929
+ "type": "string",
11930
+ "required": false,
11931
+ "description": "The word a divide line is read as. Replaces the built-in English text, for other languages.",
11932
+ "default": "divided by"
11933
+ },
11934
+ {
11935
+ "name": "equalLabel",
11936
+ "type": "string",
11937
+ "required": false,
11938
+ "description": "The word an equal line is read as. Replaces the built-in English text, for other languages.",
11939
+ "default": "equals"
11940
+ },
11941
+ {
11942
+ "name": "label",
11943
+ "type": "string",
11944
+ "required": false,
11945
+ "description": "The accessible name of the list.",
11946
+ "default": "Calculation"
11947
+ },
11948
+ {
11949
+ "name": "minusLabel",
11950
+ "type": "string",
11951
+ "required": false,
11952
+ "description": "The word a minus line is read as. Replaces the built-in English text, for other languages.",
11953
+ "default": "minus"
11954
+ },
11955
+ {
11956
+ "name": "plusLabel",
11957
+ "type": "string",
11958
+ "required": false,
11959
+ "description": "The word a plus line is read as. Replaces the built-in English text, for other languages.",
11960
+ "default": "plus"
11961
+ },
11962
+ {
11963
+ "name": "steps",
11964
+ "type": "array",
11965
+ "itemFields": [
11966
+ {
11967
+ "name": "key",
11968
+ "type": "string",
11969
+ "required": false,
11970
+ "description": "The React key of the line. Not shown."
11971
+ },
11972
+ {
11973
+ "name": "label",
11974
+ "type": "string",
11975
+ "required": true,
11976
+ "description": "What the line is, such as the name of the amount."
11977
+ },
11978
+ {
11979
+ "name": "note",
11980
+ "type": "string",
11981
+ "required": false,
11982
+ "description": "A short note under the line, such as a section reference."
11983
+ },
11984
+ {
11985
+ "name": "result",
11986
+ "type": "string",
11987
+ "required": true,
11988
+ "description": "The line's figure, already formatted."
11989
+ },
11990
+ {
11991
+ "name": "sign",
11992
+ "type": "enum",
11993
+ "enum": [
11994
+ "divide",
11995
+ "equal",
11996
+ "minus",
11997
+ "plus",
11998
+ "times"
11999
+ ],
12000
+ "required": false,
12001
+ "description": "The operator before the line. An equal line is the result and is drawn as the total. Unset on the first line."
12002
+ },
12003
+ {
12004
+ "name": "working",
12005
+ "type": "string",
12006
+ "required": false,
12007
+ "description": "The working in words and numbers, shown under the label."
12008
+ }
12009
+ ],
12010
+ "required": false,
12011
+ "description": "The lines of the calculation, top to bottom. The first line has no sign; each later line names its operator.",
12012
+ "default": []
11281
12013
  },
11282
12014
  {
11283
- "name": "titleSize",
11284
- "type": "number",
12015
+ "name": "timesLabel",
12016
+ "type": "string",
11285
12017
  "required": false,
11286
- "description": "The title's font size in px; unset keeps the theme's 15px."
12018
+ "description": "The word a times line is read as. Replaces the built-in English text, for other languages.",
12019
+ "default": "times"
11287
12020
  }
11288
12021
  ],
11289
12022
  "itemsTakeAction": [],
@@ -11291,31 +12024,87 @@
11291
12024
  "source": "@webority/ui-react",
11292
12025
  "usage": {
11293
12026
  "when": [
11294
- "You're building a form page: use all three helpers together for a consistent layout.",
11295
- "You need to group logically related fields: AppFormSection wraps them with a title.",
11296
- "You have multiple fields in a row: AppFormRow arranges them responsively.",
11297
- "You're adding action buttons (submit, cancel, etc.): AppFormActions keeps them aligned."
12027
+ "Show how a figure on the page is reached, line by line, with the real numbers.",
12028
+ "The server computes the figure and the page only shows it: the lines display that result, and the page does no arithmetic of its own."
11298
12029
  ],
11299
12030
  "whenNot": [
11300
12031
  {
11301
- "text": "You're placing a single isolated field",
11302
- "instead": "just use AppInput directly"
12032
+ "text": "The figures are many rows the user scans, sorts or edits.",
12033
+ "instead": "AppDataTable"
11303
12034
  },
11304
12035
  {
11305
- "text": "Your form is a dialog/modal",
11306
- "instead": "AppModal / AppConfirmDialog owns the footer logic"
12036
+ "text": "The figures are a trend or a comparison shown as a picture.",
12037
+ "instead": "AppChart"
11307
12038
  },
11308
12039
  {
11309
- "text": "You need a custom grid layout",
11310
- "instead": "use Bootstrap Row/Col for full control"
12040
+ "text": "The figure is a single value with no working to show.",
12041
+ "instead": "a plain value in the page text"
12042
+ }
12043
+ ],
12044
+ "do": [
12045
+ {
12046
+ "title": "End with the result line",
12047
+ "note": "Give each line the amount it stands for, and end with one equal line for the result.",
12048
+ "example": [
12049
+ {
12050
+ "component": "AppFormulaSteps",
12051
+ "props": {
12052
+ "label": "TDS on a bill",
12053
+ "steps": [
12054
+ {
12055
+ "key": "a",
12056
+ "label": "Bill amount",
12057
+ "result": "₹10,00,000.00"
12058
+ },
12059
+ {
12060
+ "key": "b",
12061
+ "sign": "minus",
12062
+ "label": "TDS",
12063
+ "result": "₹1,000.00"
12064
+ },
12065
+ {
12066
+ "key": "c",
12067
+ "sign": "equal",
12068
+ "label": "Net payable",
12069
+ "result": "₹9,99,000.00"
12070
+ }
12071
+ ]
12072
+ }
12073
+ }
12074
+ ]
12075
+ }
12076
+ ],
12077
+ "dont": [
12078
+ {
12079
+ "title": "End with the result line",
12080
+ "note": "A list of amounts with no equal line leaves the reader to add them up and find the total.",
12081
+ "example": [
12082
+ {
12083
+ "component": "AppFormulaSteps",
12084
+ "props": {
12085
+ "label": "TDS on a bill",
12086
+ "steps": [
12087
+ {
12088
+ "key": "a",
12089
+ "label": "Bill amount",
12090
+ "result": "₹10,00,000.00"
12091
+ },
12092
+ {
12093
+ "key": "b",
12094
+ "sign": "minus",
12095
+ "label": "TDS",
12096
+ "result": "₹1,000.00"
12097
+ }
12098
+ ]
12099
+ }
12100
+ }
12101
+ ]
11311
12102
  }
11312
12103
  ],
11313
- "do": [],
11314
- "dont": [],
11315
12104
  "a11y": [
11316
- "Renders a section element whose title is a real heading: h3 by default, h2 to h4 through headingLevel, so it appears in the page outline.",
11317
- "The description is a paragraph under the heading; the heading and description are left out when neither title nor description is given.",
11318
- "Extra attributes such as aria-labelledby pass through to the section."
12105
+ "The lines are an ordered list with an accessible name, so a screen reader announces the count and reads each line in order.",
12106
+ "A screen reader reads each operator as its word, such as minus or times, taken from the sign-word props.",
12107
+ "Each operator glyph is hidden from assistive tech, so the symbol itself is never read out."
11319
12108
  ]
11320
12109
  }
11321
12110
  },
@@ -14432,6 +15221,13 @@
14432
15221
  "description": "How many values sit in a row.",
14433
15222
  "default": 4
14434
15223
  },
15224
+ {
15225
+ "name": "divided",
15226
+ "type": "boolean",
15227
+ "required": false,
15228
+ "description": "Draws the strip as one flush row with a rule between figures from the medium breakpoint up, for a strip inside a flush card.",
15229
+ "default": false
15230
+ },
14435
15231
  {
14436
15232
  "name": "items",
14437
15233
  "type": "array",
@@ -14656,6 +15452,17 @@
14656
15452
  "required": false,
14657
15453
  "description": "The dialog title, shown in the header."
14658
15454
  },
15455
+ {
15456
+ "name": "titleFont",
15457
+ "type": "enum",
15458
+ "enum": [
15459
+ "sans",
15460
+ "serif"
15461
+ ],
15462
+ "required": false,
15463
+ "description": "Face of the title. serif draws it in the display typeface at the 3xl size, weight 500.",
15464
+ "default": "sans"
15465
+ },
14659
15466
  {
14660
15467
  "name": "tone",
14661
15468
  "type": "enum",
@@ -16505,7 +17312,7 @@
16505
17312
  },
16506
17313
  {
16507
17314
  "name": "AppPopover",
16508
- "marker": null,
17315
+ "marker": "AppPopover",
16509
17316
  "acceptsChildren": true,
16510
17317
  "props": [
16511
17318
  {
@@ -18202,188 +19009,34 @@
18202
19009
  },
18203
19010
  "children": [
18204
19011
  "Company name ",
18205
- {
18206
- "component": "span",
18207
- "props": {
18208
- "className": "text-danger"
18209
- },
18210
- "children": "*"
18211
- }
18212
- ]
18213
- }
18214
- ]
18215
- },
18216
- {
18217
- "title": "Let the field own the mark",
18218
- "note": "A star typed into the label of a required field doubles the mark: the field already draws one.",
18219
- "example": [
18220
- {
18221
- "component": "AppInput",
18222
- "props": {
18223
- "label": "Phone *",
18224
- "required": true
18225
- }
18226
- }
18227
- ]
18228
- }
18229
- ],
18230
- "a11y": [
18231
- "The asterisk is hidden from assistive technology with aria-hidden=\"true\", so it is never read aloud.",
18232
- "Because the mark is hidden, the control itself must carry the required state: set required or aria-required on it."
18233
- ]
18234
- }
18235
- },
18236
- {
18237
- "name": "AppResizable",
18238
- "marker": "AppResizable",
18239
- "acceptsChildren": true,
18240
- "props": [
18241
- {
18242
- "name": "className",
18243
- "type": "string",
18244
- "required": false,
18245
- "description": "Extra classes on the group.",
18246
- "default": ""
18247
- },
18248
- {
18249
- "name": "direction",
18250
- "type": "enum",
18251
- "enum": [
18252
- "horizontal",
18253
- "vertical"
18254
- ],
18255
- "required": false,
18256
- "description": "Horizontal puts the panels side by side, vertical stacks them. A vertical group needs a height from its parent.",
18257
- "default": "horizontal"
18258
- },
18259
- {
18260
- "name": "storageKey",
18261
- "type": "string",
18262
- "required": false,
18263
- "description": "Remember the sizes under this name, one per screen."
18264
- },
18265
- {
18266
- "name": "style",
18267
- "type": "object",
18268
- "required": false,
18269
- "description": "Inline style on the group; a vertical group takes its height as --wui-resizable-height."
18270
- }
18271
- ],
18272
- "itemsTakeAction": [],
18273
- "takesAction": [],
18274
- "source": "@webority/ui-react",
18275
- "usage": {
18276
- "when": [
18277
- "A reading pane, editor or preview whose ideal size depends on the person and the task.",
18278
- "Layouts a person returns to: add a storageKey."
18279
- ],
18280
- "whenNot": [
18281
- {
18282
- "text": "A fixed list beside an open item that stacks on phones.",
18283
- "instead": "AppSplitView"
18284
- },
18285
- {
18286
- "text": "Collapsing a region rather than sizing it.",
18287
- "instead": "AppAccordion"
18288
- }
18289
- ],
18290
- "do": [],
18291
- "dont": [],
18292
- "a11y": [
18293
- "Each handle is a keyboard-focusable separator named by its label.",
18294
- "Arrow keys along the axis move it 5%, with Shift 20%; Home and End take the panel before it to its minimum or maximum; a double click restores the default sizes.",
18295
- "The group writes each handle's current size and limits as aria-valuenow, aria-valuemin and aria-valuemax."
18296
- ]
18297
- }
18298
- },
18299
- {
18300
- "name": "AppResizableHandle",
18301
- "marker": "AppResizableHandle",
18302
- "acceptsChildren": false,
18303
- "props": [
18304
- {
18305
- "name": "className",
18306
- "type": "string",
18307
- "required": false,
18308
- "description": "Extra classes on the handle.",
18309
- "default": ""
18310
- },
18311
- {
18312
- "name": "label",
18313
- "type": "string",
18314
- "required": false,
18315
- "description": "Its accessible name. Say what it resizes, such as \"Resize the list\".",
18316
- "default": "Resize panels"
18317
- }
18318
- ],
18319
- "itemsTakeAction": [],
18320
- "takesAction": [],
18321
- "source": "@webority/ui-react",
18322
- "usage": {
18323
- "when": [
18324
- "Between two AppResizablePanels inside an AppResizable, as the divider the person drags."
18325
- ],
18326
- "whenNot": [
18327
- {
18328
- "text": "Outside an AppResizable group: there are no panels for it to resize.",
18329
- "instead": "AppResizable"
18330
- }
18331
- ],
18332
- "do": [],
18333
- "dont": [],
18334
- "a11y": [
18335
- "It is a focusable separator (role separator, one tab stop) named by its label.",
18336
- "Arrow keys, Home and End resize the panel before it against the panel after it, and its current size and limits are announced."
18337
- ]
18338
- }
18339
- },
18340
- {
18341
- "name": "AppResizablePanel",
18342
- "marker": "AppResizablePanel",
18343
- "acceptsChildren": true,
18344
- "props": [
18345
- {
18346
- "name": "className",
18347
- "type": "string",
18348
- "required": false,
18349
- "description": "Extra classes on the panel.",
18350
- "default": ""
18351
- },
18352
- {
18353
- "name": "defaultSize",
18354
- "type": "number",
18355
- "required": false,
18356
- "description": "The starting size in percent. Panels without one share what the sized ones leave."
18357
- },
18358
- {
18359
- "name": "maxSize",
18360
- "type": "number",
18361
- "required": false,
18362
- "description": "The largest the person can make it, in percent. 100 when not set."
18363
- },
18364
- {
18365
- "name": "minSize",
18366
- "type": "number",
18367
- "required": false,
18368
- "description": "The smallest the person can make it, in percent. 10 when not set."
18369
- }
18370
- ],
18371
- "itemsTakeAction": [],
18372
- "takesAction": [],
18373
- "source": "@webority/ui-react",
18374
- "usage": {
18375
- "when": [
18376
- "Inside an AppResizable, one for each region whose size the person can change."
18377
- ],
18378
- "whenNot": [
19012
+ {
19013
+ "component": "span",
19014
+ "props": {
19015
+ "className": "text-danger"
19016
+ },
19017
+ "children": "*"
19018
+ }
19019
+ ]
19020
+ }
19021
+ ]
19022
+ },
18379
19023
  {
18380
- "text": "Content that must keep a fixed size beside a resizable region. Place it outside the group."
19024
+ "title": "Let the field own the mark",
19025
+ "note": "A star typed into the label of a required field doubles the mark: the field already draws one.",
19026
+ "example": [
19027
+ {
19028
+ "component": "AppInput",
19029
+ "props": {
19030
+ "label": "Phone *",
19031
+ "required": true
19032
+ }
19033
+ }
19034
+ ]
18381
19035
  }
18382
19036
  ],
18383
- "do": [],
18384
- "dont": [],
18385
19037
  "a11y": [
18386
- "The panel is a plain div with no role or aria attributes; the content inside carries its own semantics."
19038
+ "The asterisk is hidden from assistive technology with aria-hidden=\"true\", so it is never read aloud.",
19039
+ "Because the mark is hidden, the control itself must carry the required state: set required or aria-required on it."
18387
19040
  ]
18388
19041
  }
18389
19042
  },
@@ -18783,85 +19436,6 @@
18783
19436
  ]
18784
19437
  }
18785
19438
  },
18786
- {
18787
- "name": "AppRollingNumber",
18788
- "marker": "AppRollingNumber",
18789
- "acceptsChildren": false,
18790
- "props": [
18791
- {
18792
- "name": "className",
18793
- "type": "string",
18794
- "required": false,
18795
- "description": "Extra classes on the figure.",
18796
- "default": ""
18797
- },
18798
- {
18799
- "name": "decimals",
18800
- "type": "number",
18801
- "required": false,
18802
- "description": "Fraction digits: fixed for `currency` (default 0), the most shown for `number` (default 2) and `percent` (default 1)."
18803
- },
18804
- {
18805
- "name": "duration",
18806
- "type": "number",
18807
- "required": false,
18808
- "description": "How long the roll takes, in milliseconds. It is 600 when left out."
18809
- },
18810
- {
18811
- "name": "format",
18812
- "type": "enum",
18813
- "enum": [
18814
- "currency",
18815
- "number",
18816
- "percent"
18817
- ],
18818
- "required": false,
18819
- "description": "How the figure is written. `currency` is rupees (₹12,55,015); `percent` takes a ratio (0.125 is 12.5%).",
18820
- "default": "number"
18821
- },
18822
- {
18823
- "name": "unit",
18824
- "type": "enum",
18825
- "enum": [
18826
- "paise",
18827
- "rupees"
18828
- ],
18829
- "required": false,
18830
- "description": "What `value` counts, for `currency`. Rupees are used when it is left out."
18831
- },
18832
- {
18833
- "name": "value",
18834
- "type": "stringOrNumber",
18835
- "required": false,
18836
- "description": "The figure. Without a number it shows a hyphen."
18837
- }
18838
- ],
18839
- "itemsTakeAction": [],
18840
- "takesAction": [],
18841
- "source": "@webority/ui-react",
18842
- "usage": {
18843
- "when": [
18844
- "A total or count that changes while the person is looking: a cart, a dashboard tile, a live counter."
18845
- ],
18846
- "whenNot": [
18847
- {
18848
- "text": "A figure that is set once on load, or a table cell in a long list.",
18849
- "instead": "plain text"
18850
- },
18851
- {
18852
- "text": "A KPI with a label, trend and sparkline.",
18853
- "instead": "AppKpiTile"
18854
- }
18855
- ],
18856
- "do": [],
18857
- "dont": [],
18858
- "a11y": [
18859
- "The rolling digits are hidden from assistive technology, and the final value sits next to them as plain text.",
18860
- "A change is not announced on every roll: wrap the figure in your own live region where a change should be announced.",
18861
- "Under reduced motion the figure just changes."
18862
- ]
18863
- }
18864
- },
18865
19439
  {
18866
19440
  "name": "AppRouteError",
18867
19441
  "marker": "AppRouteError",
@@ -19035,89 +19609,135 @@
19035
19609
  }
19036
19610
  },
19037
19611
  {
19038
- "name": "AppRowSwitch",
19039
- "marker": "AppRowSwitch",
19612
+ "name": "AppRowActions",
19613
+ "marker": "AppRowActions",
19040
19614
  "acceptsChildren": false,
19041
19615
  "props": [
19042
19616
  {
19043
- "name": "checked",
19044
- "type": "boolean",
19045
- "required": true,
19046
- "description": "The on or off state the row shows. onToggle receives the next state; the caller owns this value."
19617
+ "name": "className",
19618
+ "type": "string",
19619
+ "required": false,
19620
+ "description": "Extra classes on the row's action group.",
19621
+ "default": ""
19047
19622
  },
19048
19623
  {
19049
- "name": "disabled",
19050
- "type": "boolean",
19051
- "required": false,
19052
- "description": "Locks the switch and dims it.",
19053
- "default": false
19624
+ "name": "items",
19625
+ "type": "array",
19626
+ "itemFields": [
19627
+ {
19628
+ "name": "disabled",
19629
+ "type": "boolean",
19630
+ "required": false,
19631
+ "description": "Disables the action in both the icon button and the menu row."
19632
+ },
19633
+ {
19634
+ "name": "disabledReason",
19635
+ "type": "string",
19636
+ "required": false,
19637
+ "description": "Why the action is disabled: joined to the icon button's label as \"Edit: locked\", and shown on the menu row. Needs disabled."
19638
+ },
19639
+ {
19640
+ "name": "href",
19641
+ "type": "string",
19642
+ "required": false,
19643
+ "description": "A plain link, never routed through linkComponent. An action takes to or href, not both."
19644
+ },
19645
+ {
19646
+ "name": "icon",
19647
+ "type": "icon",
19648
+ "required": false,
19649
+ "description": "A library icon name. Without it (and without showLabel) the action is a menu row at every width."
19650
+ },
19651
+ {
19652
+ "name": "iconVariant",
19653
+ "type": "enum",
19654
+ "enum": [
19655
+ "bold",
19656
+ "broken",
19657
+ "bulk",
19658
+ "linear",
19659
+ "outline",
19660
+ "twotone"
19661
+ ],
19662
+ "required": false,
19663
+ "description": "The inline icon's style; the menu row draws the linear glyph."
19664
+ },
19665
+ {
19666
+ "name": "key",
19667
+ "type": "string",
19668
+ "required": true,
19669
+ "description": "Unique within the row's list."
19670
+ },
19671
+ {
19672
+ "name": "label",
19673
+ "type": "string",
19674
+ "required": true,
19675
+ "description": "The icon button's accessible name and tooltip, and the menu row's text."
19676
+ },
19677
+ {
19678
+ "name": "menuOnly",
19679
+ "type": "boolean",
19680
+ "required": false,
19681
+ "description": "Keeps the action in the menu at every width. Not with showLabel."
19682
+ },
19683
+ {
19684
+ "name": "showLabel",
19685
+ "type": "boolean",
19686
+ "required": false,
19687
+ "description": "From sm up, draws the action as a small labelled button instead of an icon button."
19688
+ },
19689
+ {
19690
+ "name": "to",
19691
+ "type": "string",
19692
+ "required": false,
19693
+ "description": "An in-app route, drawn through linkComponent when one is given."
19694
+ },
19695
+ {
19696
+ "name": "tone",
19697
+ "type": "enum",
19698
+ "enum": [
19699
+ "danger"
19700
+ ],
19701
+ "required": false,
19702
+ "description": "tone=\"danger\" marks a destructive action."
19703
+ }
19704
+ ],
19705
+ "required": true,
19706
+ "description": "The row's actions, in order. A list entry; false, null and undefined are skipped, so `canEdit && { ... }` leaves an action out. Each item needs a unique `key`, and onClick, href or to unless it is disabled; onClick may accompany href or to."
19054
19707
  },
19055
19708
  {
19056
- "name": "label",
19709
+ "name": "menuLabel",
19057
19710
  "type": "string",
19058
- "required": true,
19059
- "description": "The accessible name of the switch, read out with its state."
19711
+ "required": false,
19712
+ "description": "The menu trigger's accessible name and tooltip.",
19713
+ "default": "More actions"
19060
19714
  }
19061
19715
  ],
19062
- "itemsTakeAction": [],
19716
+ "itemsTakeAction": [
19717
+ "items"
19718
+ ],
19063
19719
  "takesAction": [],
19064
19720
  "source": "@webority/ui-react",
19065
19721
  "usage": {
19066
19722
  "when": [
19067
- "A setting on one row of a table that saves on its own, such as portal access or auto-reminders.",
19068
- "Each row has its own state and the change must reach the server before the row shows it."
19723
+ "The actions at the end of a table or list row, one list that shows as icon buttons from sm up and as one menu on a phone."
19069
19724
  ],
19070
19725
  "whenNot": [
19071
19726
  {
19072
- "text": "The switch is a page-level setting with no table row.",
19073
- "instead": "AppSwitch"
19074
- },
19075
- {
19076
- "text": "The row action opens several choices.",
19727
+ "text": "A menu that is not a row's own actions.",
19077
19728
  "instead": "AppDropdown"
19078
19729
  },
19079
19730
  {
19080
- "text": "The user submits several rows of settings together.",
19081
- "instead": "AppCheckbox"
19082
- }
19083
- ],
19084
- "do": [
19085
- {
19086
- "title": "Wait for the save before flipping",
19087
- "note": "The row keeps its saved state. The switch shows the next state only after the save resolves.",
19088
- "example": [
19089
- {
19090
- "component": "AppRowSwitch",
19091
- "props": {
19092
- "label": "Portal access",
19093
- "checked": true
19094
- },
19095
- "handlers": [
19096
- "onToggle"
19097
- ]
19098
- }
19099
- ]
19100
- }
19101
- ],
19102
- "dont": [
19103
- {
19104
- "title": "Wait for the save before flipping",
19105
- "note": "A page-level switch in a row has no busy state, so a second flip can race the first save.",
19106
- "example": [
19107
- {
19108
- "component": "AppSwitch",
19109
- "props": {
19110
- "label": "Portal access",
19111
- "defaultChecked": true
19112
- }
19113
- }
19114
- ]
19731
+ "text": "Bulk actions on the selected rows.",
19732
+ "instead": "AppTableToolbar"
19115
19733
  }
19116
19734
  ],
19735
+ "do": [],
19736
+ "dont": [],
19117
19737
  "a11y": [
19118
- "The control is a button with role switch and aria-checked, so a screen reader reads its state.",
19119
- "label is the accessible name, read out with the state.",
19120
- "While a save is pending the switch is busy and disabled, so a second flip cannot race the first."
19738
+ "Each icon button is named by its label and shows it as a tooltip; a disabled one names its disabledReason too.",
19739
+ "The menu trigger is named by menuLabel; Enter or Space opens the menu, arrows move through its rows, and Escape closes it and returns focus to the trigger.",
19740
+ "Below sm only the menu is shown, so every action is reachable by a touch target and by the keyboard."
19121
19741
  ]
19122
19742
  }
19123
19743
  },
@@ -19760,6 +20380,30 @@
19760
20380
  "required": false,
19761
20381
  "description": "The name of a library icon shown above the title."
19762
20382
  },
20383
+ {
20384
+ "name": "imageAlt",
20385
+ "type": "string",
20386
+ "required": false,
20387
+ "description": "The text alternative of the image above the title."
20388
+ },
20389
+ {
20390
+ "name": "imageHeight",
20391
+ "type": "number",
20392
+ "required": false,
20393
+ "description": "The image's intrinsic height in px."
20394
+ },
20395
+ {
20396
+ "name": "imageSrc",
20397
+ "type": "string",
20398
+ "required": false,
20399
+ "description": "The URL of an image drawn above the title in place of the icon. Needs imageAlt, imageWidth and imageHeight; do not set icon as well."
20400
+ },
20401
+ {
20402
+ "name": "imageWidth",
20403
+ "type": "number",
20404
+ "required": false,
20405
+ "description": "The image's intrinsic width in px."
20406
+ },
19763
20407
  {
19764
20408
  "name": "key",
19765
20409
  "type": "string",
@@ -19780,7 +20424,7 @@
19780
20424
  }
19781
20425
  ],
19782
20426
  "required": false,
19783
- "description": "The points: a title, a description, a library icon name and an image.",
20427
+ "description": "The points: a title, a description, a library icon name or an image, and a second image for the rows layout.",
19784
20428
  "default": []
19785
20429
  },
19786
20430
  {
@@ -20260,6 +20904,12 @@
20260
20904
  "required": false,
20261
20905
  "description": "The company's name, used as the image's alternative text. Falls back to name, then label."
20262
20906
  },
20907
+ {
20908
+ "name": "caption",
20909
+ "type": "string",
20910
+ "required": false,
20911
+ "description": "A short text under the logo, such as the company's name."
20912
+ },
20263
20913
  {
20264
20914
  "name": "height",
20265
20915
  "type": "number",
@@ -22580,6 +23230,13 @@
22580
23230
  "description": "Leave the job title off the topbar trigger, so it shows the name only. The opened menu still shows it.",
22581
23231
  "default": false
22582
23232
  },
23233
+ {
23234
+ "name": "outlined",
23235
+ "type": "boolean",
23236
+ "required": false,
23237
+ "description": "Draws an always-on outline around the topbar trigger.",
23238
+ "default": false
23239
+ },
22583
23240
  {
22584
23241
  "name": "photo",
22585
23242
  "type": "string",
@@ -23218,6 +23875,17 @@
23218
23875
  "description": "Class applied to the wrapper field element.",
23219
23876
  "default": ""
23220
23877
  },
23878
+ {
23879
+ "name": "grouping",
23880
+ "type": "enum",
23881
+ "enum": [
23882
+ "indian",
23883
+ "none"
23884
+ ],
23885
+ "required": false,
23886
+ "description": "Digit grouping of the value label: indian writes 1,50,000; none writes 150000.",
23887
+ "default": "none"
23888
+ },
23221
23889
  {
23222
23890
  "name": "help",
23223
23891
  "type": "node",
@@ -27042,6 +27710,13 @@
27042
27710
  "description": "Extra class on the container element.",
27043
27711
  "default": ""
27044
27712
  },
27713
+ {
27714
+ "name": "closeLabel",
27715
+ "type": "string",
27716
+ "required": false,
27717
+ "description": "The close button's accessible name on every toast, for other languages.",
27718
+ "default": "Close"
27719
+ },
27045
27720
  {
27046
27721
  "name": "maxVisible",
27047
27722
  "type": "number",
@@ -31346,6 +32021,11 @@
31346
32021
  "version": "0.164.0",
31347
32022
  "components": [],
31348
32023
  "values": {}
32024
+ },
32025
+ {
32026
+ "version": "0.165.0",
32027
+ "components": [],
32028
+ "values": {}
31349
32029
  }
31350
32030
  ]
31351
32031
  }