@webority/ui-react 0.169.0 → 0.170.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas-kit/kit.js +138 -135
- package/dist/canvas-kit/manifest.json +541 -15
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppDataTable.js +1 -1
- package/dist/components/AppFilterBar.js +1 -1
- package/dist/components/AppMonthPicker.js +1 -0
- package/dist/components/AppSelect.js +1 -1
- package/dist/components/AppSplitView.js +1 -1
- package/dist/components/AppYearPicker.js +1 -0
- package/dist/guidance.json +181 -1
- package/dist/types/components/AppDataTable.d.ts +2 -2
- package/dist/types/components/AppFilterBar.d.ts +2 -0
- package/dist/types/components/AppMonthPicker.d.ts +92 -0
- package/dist/types/components/AppSelect.d.ts +2 -0
- package/dist/types/components/AppYearPicker.d.ts +92 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/ui-react.js +1 -1
- package/package.json +9 -9
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"kind": "WeborityWeb",
|
|
3
3
|
"library": {
|
|
4
4
|
"name": "@webority/ui-react",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.170.0"
|
|
6
6
|
},
|
|
7
7
|
"rendererProtocolVersion": 14,
|
|
8
8
|
"platform": "Web",
|
|
@@ -7617,8 +7617,8 @@
|
|
|
7617
7617
|
"cozy"
|
|
7618
7618
|
],
|
|
7619
7619
|
"required": false,
|
|
7620
|
-
"description": "Row height:
|
|
7621
|
-
"default": "
|
|
7620
|
+
"description": "Row height: cozy 48 px (the default), comfortable 72 px for reading-heavy pages, compact 40 px. Compact is one line per row and hides the identity subline.",
|
|
7621
|
+
"default": "cozy"
|
|
7622
7622
|
},
|
|
7623
7623
|
{
|
|
7624
7624
|
"name": "empty",
|
|
@@ -11422,6 +11422,12 @@
|
|
|
11422
11422
|
"required": false,
|
|
11423
11423
|
"description": "An enum that always holds one of its options: no All segment, its select cannot be cleared, and it draws no chip and is left out of Clear all and the Filters count."
|
|
11424
11424
|
},
|
|
11425
|
+
{
|
|
11426
|
+
"name": "source",
|
|
11427
|
+
"type": "string",
|
|
11428
|
+
"required": false,
|
|
11429
|
+
"description": "Enum and multiEnum facets: search the server for options (GET source?q=query). `options` then holds only the records of the current value, so a chosen option shows its label."
|
|
11430
|
+
},
|
|
11425
11431
|
{
|
|
11426
11432
|
"name": "type",
|
|
11427
11433
|
"type": "enum",
|
|
@@ -16160,6 +16166,263 @@
|
|
|
16160
16166
|
]
|
|
16161
16167
|
}
|
|
16162
16168
|
},
|
|
16169
|
+
{
|
|
16170
|
+
"name": "AppMonthPicker",
|
|
16171
|
+
"marker": "AppMonthPicker",
|
|
16172
|
+
"acceptsChildren": false,
|
|
16173
|
+
"props": [
|
|
16174
|
+
{
|
|
16175
|
+
"name": "aria-invalid",
|
|
16176
|
+
"type": "any",
|
|
16177
|
+
"required": false,
|
|
16178
|
+
"description": "Marks the control invalid (aria-invalid) without an error message. A given value wins over the one an error sets, and it draws no field wrapper or message in the bare form."
|
|
16179
|
+
},
|
|
16180
|
+
{
|
|
16181
|
+
"name": "ariaLabel",
|
|
16182
|
+
"type": "string",
|
|
16183
|
+
"required": false,
|
|
16184
|
+
"description": "Accessible name when there is no visible label."
|
|
16185
|
+
},
|
|
16186
|
+
{
|
|
16187
|
+
"name": "className",
|
|
16188
|
+
"type": "string",
|
|
16189
|
+
"required": false,
|
|
16190
|
+
"description": "Classes for the wui-datepicker control itself.",
|
|
16191
|
+
"default": ""
|
|
16192
|
+
},
|
|
16193
|
+
{
|
|
16194
|
+
"name": "defaultValue",
|
|
16195
|
+
"type": "string",
|
|
16196
|
+
"required": false,
|
|
16197
|
+
"description": "The starting month of an uncontrolled field, as YYYY-MM."
|
|
16198
|
+
},
|
|
16199
|
+
{
|
|
16200
|
+
"name": "disabled",
|
|
16201
|
+
"type": "boolean",
|
|
16202
|
+
"required": false,
|
|
16203
|
+
"description": "Disables the control."
|
|
16204
|
+
},
|
|
16205
|
+
{
|
|
16206
|
+
"name": "displayFormat",
|
|
16207
|
+
"type": "string",
|
|
16208
|
+
"required": false,
|
|
16209
|
+
"description": "How the chosen month reads in the field, from the tokens yyyy, MMMM, MMM and MM (for example MM/yyyy). The onChange value stays YYYY-MM.",
|
|
16210
|
+
"default": "MMM yyyy"
|
|
16211
|
+
},
|
|
16212
|
+
{
|
|
16213
|
+
"name": "error",
|
|
16214
|
+
"type": "string",
|
|
16215
|
+
"required": false,
|
|
16216
|
+
"description": "An error message shown under the control."
|
|
16217
|
+
},
|
|
16218
|
+
{
|
|
16219
|
+
"name": "fieldClassName",
|
|
16220
|
+
"type": "string",
|
|
16221
|
+
"required": false,
|
|
16222
|
+
"description": "Classes for the field wrapper that holds the label, helper text and error.",
|
|
16223
|
+
"default": ""
|
|
16224
|
+
},
|
|
16225
|
+
{
|
|
16226
|
+
"name": "help",
|
|
16227
|
+
"type": "node",
|
|
16228
|
+
"required": false,
|
|
16229
|
+
"description": "The content of the info-tip beside the label, opened by a button."
|
|
16230
|
+
},
|
|
16231
|
+
{
|
|
16232
|
+
"name": "helpLabel",
|
|
16233
|
+
"type": "string",
|
|
16234
|
+
"required": false,
|
|
16235
|
+
"description": "The accessible name of the info-tip button.",
|
|
16236
|
+
"default": "More information"
|
|
16237
|
+
},
|
|
16238
|
+
{
|
|
16239
|
+
"name": "helperText",
|
|
16240
|
+
"type": "string",
|
|
16241
|
+
"required": false,
|
|
16242
|
+
"description": "Helper text shown under the control."
|
|
16243
|
+
},
|
|
16244
|
+
{
|
|
16245
|
+
"name": "id",
|
|
16246
|
+
"type": "string",
|
|
16247
|
+
"required": false,
|
|
16248
|
+
"description": "The id of the control; a unique one is made when left out."
|
|
16249
|
+
},
|
|
16250
|
+
{
|
|
16251
|
+
"name": "label",
|
|
16252
|
+
"type": "node",
|
|
16253
|
+
"required": false,
|
|
16254
|
+
"description": "The field label, shown above the control and used as its accessible name."
|
|
16255
|
+
},
|
|
16256
|
+
{
|
|
16257
|
+
"name": "loading",
|
|
16258
|
+
"type": "boolean",
|
|
16259
|
+
"required": false,
|
|
16260
|
+
"description": "Shows a busy state and blocks input while data loads.",
|
|
16261
|
+
"default": false
|
|
16262
|
+
},
|
|
16263
|
+
{
|
|
16264
|
+
"name": "max",
|
|
16265
|
+
"type": "string",
|
|
16266
|
+
"required": false,
|
|
16267
|
+
"description": "The latest selectable month, as YYYY-MM."
|
|
16268
|
+
},
|
|
16269
|
+
{
|
|
16270
|
+
"name": "min",
|
|
16271
|
+
"type": "string",
|
|
16272
|
+
"required": false,
|
|
16273
|
+
"description": "The earliest selectable month, as YYYY-MM."
|
|
16274
|
+
},
|
|
16275
|
+
{
|
|
16276
|
+
"name": "name",
|
|
16277
|
+
"type": "string",
|
|
16278
|
+
"required": false,
|
|
16279
|
+
"description": "The form field name the YYYY-MM month posts under."
|
|
16280
|
+
},
|
|
16281
|
+
{
|
|
16282
|
+
"name": "optional",
|
|
16283
|
+
"type": "boolean",
|
|
16284
|
+
"required": false,
|
|
16285
|
+
"description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
|
|
16286
|
+
"default": false
|
|
16287
|
+
},
|
|
16288
|
+
{
|
|
16289
|
+
"name": "optionalLabel",
|
|
16290
|
+
"type": "string",
|
|
16291
|
+
"required": false,
|
|
16292
|
+
"description": "Replaces the built-in English text, for other languages.",
|
|
16293
|
+
"default": "(optional)"
|
|
16294
|
+
},
|
|
16295
|
+
{
|
|
16296
|
+
"name": "placeholder",
|
|
16297
|
+
"type": "string",
|
|
16298
|
+
"required": false,
|
|
16299
|
+
"description": "Text shown in the field while no month is chosen.",
|
|
16300
|
+
"default": "Choose a month"
|
|
16301
|
+
},
|
|
16302
|
+
{
|
|
16303
|
+
"name": "readOnly",
|
|
16304
|
+
"type": "boolean",
|
|
16305
|
+
"required": false,
|
|
16306
|
+
"description": "Shows the value but blocks editing. The value still posts.",
|
|
16307
|
+
"default": false
|
|
16308
|
+
},
|
|
16309
|
+
{
|
|
16310
|
+
"name": "required",
|
|
16311
|
+
"type": "boolean",
|
|
16312
|
+
"required": false,
|
|
16313
|
+
"description": "Marks the field required, with the required mark on the label.",
|
|
16314
|
+
"default": false
|
|
16315
|
+
},
|
|
16316
|
+
{
|
|
16317
|
+
"name": "size",
|
|
16318
|
+
"type": "enum",
|
|
16319
|
+
"enum": [
|
|
16320
|
+
"lg",
|
|
16321
|
+
"md",
|
|
16322
|
+
"sm",
|
|
16323
|
+
"xl"
|
|
16324
|
+
],
|
|
16325
|
+
"required": false,
|
|
16326
|
+
"description": "Control height tier, matching AppInput."
|
|
16327
|
+
},
|
|
16328
|
+
{
|
|
16329
|
+
"name": "value",
|
|
16330
|
+
"type": "string",
|
|
16331
|
+
"required": false,
|
|
16332
|
+
"description": "The chosen month as YYYY-MM."
|
|
16333
|
+
}
|
|
16334
|
+
],
|
|
16335
|
+
"itemsTakeAction": [],
|
|
16336
|
+
"takesAction": [],
|
|
16337
|
+
"source": "@webority/ui-react",
|
|
16338
|
+
"usage": {
|
|
16339
|
+
"when": [
|
|
16340
|
+
"Capturing a single calendar month: billing month, reporting period, expiry month.",
|
|
16341
|
+
"You need one consistent month picker across every browser and both surfaces.",
|
|
16342
|
+
"Restricting selection to a valid window with min / max."
|
|
16343
|
+
],
|
|
16344
|
+
"whenNot": [
|
|
16345
|
+
{
|
|
16346
|
+
"text": "You need a full calendar date.",
|
|
16347
|
+
"instead": "AppDatePicker"
|
|
16348
|
+
},
|
|
16349
|
+
{
|
|
16350
|
+
"text": "You are capturing a start-and-end range of months or dates.",
|
|
16351
|
+
"instead": "AppDateRangePicker"
|
|
16352
|
+
},
|
|
16353
|
+
{
|
|
16354
|
+
"text": "The value is free text, not a month.",
|
|
16355
|
+
"instead": "AppInput"
|
|
16356
|
+
},
|
|
16357
|
+
{
|
|
16358
|
+
"text": "You are picking from a fixed list of labels.",
|
|
16359
|
+
"instead": "AppSelect"
|
|
16360
|
+
}
|
|
16361
|
+
],
|
|
16362
|
+
"do": [
|
|
16363
|
+
{
|
|
16364
|
+
"title": "Give the month a visible label",
|
|
16365
|
+
"note": "A visible label above the field. The user knows what the month is for before opening it.",
|
|
16366
|
+
"example": [
|
|
16367
|
+
{
|
|
16368
|
+
"component": "AppMonthPicker",
|
|
16369
|
+
"props": {
|
|
16370
|
+
"id": "bp-good-month",
|
|
16371
|
+
"label": "Billing month",
|
|
16372
|
+
"value": "2026-07"
|
|
16373
|
+
}
|
|
16374
|
+
}
|
|
16375
|
+
]
|
|
16376
|
+
},
|
|
16377
|
+
{
|
|
16378
|
+
"title": "Set min and max bounds",
|
|
16379
|
+
"note": "min / max stop invalid months at the source, so the user can only pick a real one.",
|
|
16380
|
+
"example": [
|
|
16381
|
+
{
|
|
16382
|
+
"component": "AppMonthPicker",
|
|
16383
|
+
"props": {
|
|
16384
|
+
"value": "2026-07",
|
|
16385
|
+
"min": "2026-01",
|
|
16386
|
+
"max": "2026-12"
|
|
16387
|
+
}
|
|
16388
|
+
}
|
|
16389
|
+
]
|
|
16390
|
+
}
|
|
16391
|
+
],
|
|
16392
|
+
"dont": [
|
|
16393
|
+
{
|
|
16394
|
+
"title": "Give the month a visible label",
|
|
16395
|
+
"note": "Only a placeholder as the label, which vanishes the moment a month is picked.",
|
|
16396
|
+
"example": [
|
|
16397
|
+
{
|
|
16398
|
+
"component": "AppMonthPicker",
|
|
16399
|
+
"props": {
|
|
16400
|
+
"value": "",
|
|
16401
|
+
"placeholder": "Month"
|
|
16402
|
+
}
|
|
16403
|
+
}
|
|
16404
|
+
]
|
|
16405
|
+
},
|
|
16406
|
+
{
|
|
16407
|
+
"title": "Set min and max bounds",
|
|
16408
|
+
"note": "No bounds, then reject the month after submit. Constrain up front instead.",
|
|
16409
|
+
"example": [
|
|
16410
|
+
{
|
|
16411
|
+
"component": "AppMonthPicker",
|
|
16412
|
+
"props": {
|
|
16413
|
+
"value": "2030-01"
|
|
16414
|
+
}
|
|
16415
|
+
}
|
|
16416
|
+
]
|
|
16417
|
+
}
|
|
16418
|
+
],
|
|
16419
|
+
"a11y": [
|
|
16420
|
+
"The field label names the control through aria-label when it is a string, and ariaLabel overrides it.",
|
|
16421
|
+
"Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid. A caller's aria-invalid takes its place.",
|
|
16422
|
+
"Required and disabled are set as native attributes on the control."
|
|
16423
|
+
]
|
|
16424
|
+
}
|
|
16425
|
+
},
|
|
16163
16426
|
{
|
|
16164
16427
|
"name": "AppNavList",
|
|
16165
16428
|
"marker": "AppNavList",
|
|
@@ -23095,6 +23358,12 @@
|
|
|
23095
23358
|
"description": "Control size: sm, md, lg or xl (35, 40, 45 or 50px). md is the default.",
|
|
23096
23359
|
"default": "md"
|
|
23097
23360
|
},
|
|
23361
|
+
{
|
|
23362
|
+
"name": "source",
|
|
23363
|
+
"type": "string",
|
|
23364
|
+
"required": false,
|
|
23365
|
+
"description": "Search, multiple and tag modes: the endpoint the select calls as GET source?q=query, answering a JSON array of option records. Leave it off with remote or loadOptions."
|
|
23366
|
+
},
|
|
23098
23367
|
{
|
|
23099
23368
|
"name": "suffix",
|
|
23100
23369
|
"type": "node",
|
|
@@ -31018,6 +31287,263 @@
|
|
|
31018
31287
|
"Logos carry an empty alt, so each workspace name is read once."
|
|
31019
31288
|
]
|
|
31020
31289
|
}
|
|
31290
|
+
},
|
|
31291
|
+
{
|
|
31292
|
+
"name": "AppYearPicker",
|
|
31293
|
+
"marker": "AppYearPicker",
|
|
31294
|
+
"acceptsChildren": false,
|
|
31295
|
+
"props": [
|
|
31296
|
+
{
|
|
31297
|
+
"name": "aria-invalid",
|
|
31298
|
+
"type": "any",
|
|
31299
|
+
"required": false,
|
|
31300
|
+
"description": "Marks the control invalid (aria-invalid) without an error message. A given value wins over the one an error sets, and it draws no field wrapper or message in the bare form."
|
|
31301
|
+
},
|
|
31302
|
+
{
|
|
31303
|
+
"name": "ariaLabel",
|
|
31304
|
+
"type": "string",
|
|
31305
|
+
"required": false,
|
|
31306
|
+
"description": "Accessible name when there is no visible label."
|
|
31307
|
+
},
|
|
31308
|
+
{
|
|
31309
|
+
"name": "className",
|
|
31310
|
+
"type": "string",
|
|
31311
|
+
"required": false,
|
|
31312
|
+
"description": "Classes for the wui-datepicker control itself.",
|
|
31313
|
+
"default": ""
|
|
31314
|
+
},
|
|
31315
|
+
{
|
|
31316
|
+
"name": "defaultValue",
|
|
31317
|
+
"type": "string",
|
|
31318
|
+
"required": false,
|
|
31319
|
+
"description": "The starting year of an uncontrolled field, as YYYY."
|
|
31320
|
+
},
|
|
31321
|
+
{
|
|
31322
|
+
"name": "disabled",
|
|
31323
|
+
"type": "boolean",
|
|
31324
|
+
"required": false,
|
|
31325
|
+
"description": "Disables the control."
|
|
31326
|
+
},
|
|
31327
|
+
{
|
|
31328
|
+
"name": "displayFormat",
|
|
31329
|
+
"type": "string",
|
|
31330
|
+
"required": false,
|
|
31331
|
+
"description": "How the chosen year reads in the field, from the token yyyy; any other text is kept as written (for example FY yyyy). The onChange value stays YYYY.",
|
|
31332
|
+
"default": "yyyy"
|
|
31333
|
+
},
|
|
31334
|
+
{
|
|
31335
|
+
"name": "error",
|
|
31336
|
+
"type": "string",
|
|
31337
|
+
"required": false,
|
|
31338
|
+
"description": "An error message shown under the control."
|
|
31339
|
+
},
|
|
31340
|
+
{
|
|
31341
|
+
"name": "fieldClassName",
|
|
31342
|
+
"type": "string",
|
|
31343
|
+
"required": false,
|
|
31344
|
+
"description": "Classes for the field wrapper that holds the label, helper text and error.",
|
|
31345
|
+
"default": ""
|
|
31346
|
+
},
|
|
31347
|
+
{
|
|
31348
|
+
"name": "help",
|
|
31349
|
+
"type": "node",
|
|
31350
|
+
"required": false,
|
|
31351
|
+
"description": "The content of the info-tip beside the label, opened by a button."
|
|
31352
|
+
},
|
|
31353
|
+
{
|
|
31354
|
+
"name": "helpLabel",
|
|
31355
|
+
"type": "string",
|
|
31356
|
+
"required": false,
|
|
31357
|
+
"description": "The accessible name of the info-tip button.",
|
|
31358
|
+
"default": "More information"
|
|
31359
|
+
},
|
|
31360
|
+
{
|
|
31361
|
+
"name": "helperText",
|
|
31362
|
+
"type": "string",
|
|
31363
|
+
"required": false,
|
|
31364
|
+
"description": "Helper text shown under the control."
|
|
31365
|
+
},
|
|
31366
|
+
{
|
|
31367
|
+
"name": "id",
|
|
31368
|
+
"type": "string",
|
|
31369
|
+
"required": false,
|
|
31370
|
+
"description": "The id of the control; a unique one is made when left out."
|
|
31371
|
+
},
|
|
31372
|
+
{
|
|
31373
|
+
"name": "label",
|
|
31374
|
+
"type": "node",
|
|
31375
|
+
"required": false,
|
|
31376
|
+
"description": "The field label, shown above the control and used as its accessible name."
|
|
31377
|
+
},
|
|
31378
|
+
{
|
|
31379
|
+
"name": "loading",
|
|
31380
|
+
"type": "boolean",
|
|
31381
|
+
"required": false,
|
|
31382
|
+
"description": "Shows a busy state and blocks input while data loads.",
|
|
31383
|
+
"default": false
|
|
31384
|
+
},
|
|
31385
|
+
{
|
|
31386
|
+
"name": "max",
|
|
31387
|
+
"type": "string",
|
|
31388
|
+
"required": false,
|
|
31389
|
+
"description": "The latest selectable year, as YYYY."
|
|
31390
|
+
},
|
|
31391
|
+
{
|
|
31392
|
+
"name": "min",
|
|
31393
|
+
"type": "string",
|
|
31394
|
+
"required": false,
|
|
31395
|
+
"description": "The earliest selectable year, as YYYY."
|
|
31396
|
+
},
|
|
31397
|
+
{
|
|
31398
|
+
"name": "name",
|
|
31399
|
+
"type": "string",
|
|
31400
|
+
"required": false,
|
|
31401
|
+
"description": "The form field name the YYYY year posts under."
|
|
31402
|
+
},
|
|
31403
|
+
{
|
|
31404
|
+
"name": "optional",
|
|
31405
|
+
"type": "boolean",
|
|
31406
|
+
"required": false,
|
|
31407
|
+
"description": "Ends the label with (optional) when the field is not required. Required wins when both are set.",
|
|
31408
|
+
"default": false
|
|
31409
|
+
},
|
|
31410
|
+
{
|
|
31411
|
+
"name": "optionalLabel",
|
|
31412
|
+
"type": "string",
|
|
31413
|
+
"required": false,
|
|
31414
|
+
"description": "Replaces the built-in English text, for other languages.",
|
|
31415
|
+
"default": "(optional)"
|
|
31416
|
+
},
|
|
31417
|
+
{
|
|
31418
|
+
"name": "placeholder",
|
|
31419
|
+
"type": "string",
|
|
31420
|
+
"required": false,
|
|
31421
|
+
"description": "Text shown in the field while no year is chosen.",
|
|
31422
|
+
"default": "Choose a year"
|
|
31423
|
+
},
|
|
31424
|
+
{
|
|
31425
|
+
"name": "readOnly",
|
|
31426
|
+
"type": "boolean",
|
|
31427
|
+
"required": false,
|
|
31428
|
+
"description": "Shows the value but blocks editing. The value still posts.",
|
|
31429
|
+
"default": false
|
|
31430
|
+
},
|
|
31431
|
+
{
|
|
31432
|
+
"name": "required",
|
|
31433
|
+
"type": "boolean",
|
|
31434
|
+
"required": false,
|
|
31435
|
+
"description": "Marks the field required, with the required mark on the label.",
|
|
31436
|
+
"default": false
|
|
31437
|
+
},
|
|
31438
|
+
{
|
|
31439
|
+
"name": "size",
|
|
31440
|
+
"type": "enum",
|
|
31441
|
+
"enum": [
|
|
31442
|
+
"lg",
|
|
31443
|
+
"md",
|
|
31444
|
+
"sm",
|
|
31445
|
+
"xl"
|
|
31446
|
+
],
|
|
31447
|
+
"required": false,
|
|
31448
|
+
"description": "Control height tier, matching AppInput."
|
|
31449
|
+
},
|
|
31450
|
+
{
|
|
31451
|
+
"name": "value",
|
|
31452
|
+
"type": "string",
|
|
31453
|
+
"required": false,
|
|
31454
|
+
"description": "The chosen year as YYYY."
|
|
31455
|
+
}
|
|
31456
|
+
],
|
|
31457
|
+
"itemsTakeAction": [],
|
|
31458
|
+
"takesAction": [],
|
|
31459
|
+
"source": "@webority/ui-react",
|
|
31460
|
+
"usage": {
|
|
31461
|
+
"when": [
|
|
31462
|
+
"Capturing a single calendar year: financial year, reporting year, graduation year.",
|
|
31463
|
+
"You need one consistent year picker across every browser and both surfaces.",
|
|
31464
|
+
"Restricting selection to a valid window with min / max."
|
|
31465
|
+
],
|
|
31466
|
+
"whenNot": [
|
|
31467
|
+
{
|
|
31468
|
+
"text": "You need a month or a full calendar date.",
|
|
31469
|
+
"instead": "AppMonthPicker"
|
|
31470
|
+
},
|
|
31471
|
+
{
|
|
31472
|
+
"text": "You are capturing a start-and-end range of dates.",
|
|
31473
|
+
"instead": "AppDateRangePicker"
|
|
31474
|
+
},
|
|
31475
|
+
{
|
|
31476
|
+
"text": "The value is free text, not a year.",
|
|
31477
|
+
"instead": "AppInput"
|
|
31478
|
+
},
|
|
31479
|
+
{
|
|
31480
|
+
"text": "You are picking from a fixed list of labels.",
|
|
31481
|
+
"instead": "AppSelect"
|
|
31482
|
+
}
|
|
31483
|
+
],
|
|
31484
|
+
"do": [
|
|
31485
|
+
{
|
|
31486
|
+
"title": "Give the year a visible label",
|
|
31487
|
+
"note": "A visible label above the field. The user knows what the year is for before opening it.",
|
|
31488
|
+
"example": [
|
|
31489
|
+
{
|
|
31490
|
+
"component": "AppYearPicker",
|
|
31491
|
+
"props": {
|
|
31492
|
+
"id": "yp-good-year",
|
|
31493
|
+
"label": "Financial year",
|
|
31494
|
+
"value": "2026"
|
|
31495
|
+
}
|
|
31496
|
+
}
|
|
31497
|
+
]
|
|
31498
|
+
},
|
|
31499
|
+
{
|
|
31500
|
+
"title": "Set min and max bounds",
|
|
31501
|
+
"note": "min / max stop invalid years at the source, so the user can only pick a real one.",
|
|
31502
|
+
"example": [
|
|
31503
|
+
{
|
|
31504
|
+
"component": "AppYearPicker",
|
|
31505
|
+
"props": {
|
|
31506
|
+
"value": "2026",
|
|
31507
|
+
"min": "2024",
|
|
31508
|
+
"max": "2030"
|
|
31509
|
+
}
|
|
31510
|
+
}
|
|
31511
|
+
]
|
|
31512
|
+
}
|
|
31513
|
+
],
|
|
31514
|
+
"dont": [
|
|
31515
|
+
{
|
|
31516
|
+
"title": "Give the year a visible label",
|
|
31517
|
+
"note": "Only a placeholder as the label, which vanishes the moment a year is picked.",
|
|
31518
|
+
"example": [
|
|
31519
|
+
{
|
|
31520
|
+
"component": "AppYearPicker",
|
|
31521
|
+
"props": {
|
|
31522
|
+
"value": "",
|
|
31523
|
+
"placeholder": "Year"
|
|
31524
|
+
}
|
|
31525
|
+
}
|
|
31526
|
+
]
|
|
31527
|
+
},
|
|
31528
|
+
{
|
|
31529
|
+
"title": "Set min and max bounds",
|
|
31530
|
+
"note": "No bounds, then reject the year after submit. Constrain up front instead.",
|
|
31531
|
+
"example": [
|
|
31532
|
+
{
|
|
31533
|
+
"component": "AppYearPicker",
|
|
31534
|
+
"props": {
|
|
31535
|
+
"value": "2990"
|
|
31536
|
+
}
|
|
31537
|
+
}
|
|
31538
|
+
]
|
|
31539
|
+
}
|
|
31540
|
+
],
|
|
31541
|
+
"a11y": [
|
|
31542
|
+
"The field label names the control through aria-label when it is a string, and ariaLabel overrides it.",
|
|
31543
|
+
"Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid. A caller's aria-invalid takes its place.",
|
|
31544
|
+
"Required and disabled are set as native attributes on the control."
|
|
31545
|
+
]
|
|
31546
|
+
}
|
|
31021
31547
|
}
|
|
31022
31548
|
],
|
|
31023
31549
|
"tokens": {
|
|
@@ -31376,32 +31902,32 @@
|
|
|
31376
31902
|
"dark": "#aeaaf5"
|
|
31377
31903
|
},
|
|
31378
31904
|
"chart-2": {
|
|
31379
|
-
"light": "#
|
|
31380
|
-
"dark": "#
|
|
31905
|
+
"light": "#0a7979",
|
|
31906
|
+
"dark": "#0a7979"
|
|
31381
31907
|
},
|
|
31382
31908
|
"chart-3": {
|
|
31383
|
-
"light": "#
|
|
31384
|
-
"dark": "#
|
|
31909
|
+
"light": "#7c3aed",
|
|
31910
|
+
"dark": "#a78bfa"
|
|
31385
31911
|
},
|
|
31386
31912
|
"chart-4": {
|
|
31387
|
-
"light": "#
|
|
31388
|
-
"dark": "#
|
|
31913
|
+
"light": "#2462eb",
|
|
31914
|
+
"dark": "#3987e5"
|
|
31389
31915
|
},
|
|
31390
31916
|
"chart-5": {
|
|
31391
31917
|
"light": "#e87ba4",
|
|
31392
31918
|
"dark": "#d55181"
|
|
31393
31919
|
},
|
|
31394
31920
|
"chart-6": {
|
|
31395
|
-
"light": "#
|
|
31396
|
-
"dark": "#
|
|
31921
|
+
"light": "#4b5675",
|
|
31922
|
+
"dark": "#8a90a0"
|
|
31397
31923
|
},
|
|
31398
31924
|
"chart-7": {
|
|
31399
|
-
"light": "#
|
|
31400
|
-
"dark": "#
|
|
31925
|
+
"light": "#818cf8",
|
|
31926
|
+
"dark": "#7a90ef"
|
|
31401
31927
|
},
|
|
31402
31928
|
"chart-8": {
|
|
31403
|
-
"light": "#
|
|
31404
|
-
"dark": "#
|
|
31929
|
+
"light": "#a78bfa",
|
|
31930
|
+
"dark": "#8dc2ff"
|
|
31405
31931
|
},
|
|
31406
31932
|
"chart-axis": {
|
|
31407
31933
|
"light": "#c4cada",
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webority-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.170.0",
|
|
4
4
|
"platform": "Web",
|
|
5
5
|
"kitModuleVersion": 2,
|
|
6
6
|
"rendererProtocolVersion": 14,
|
|
7
7
|
"library": {
|
|
8
8
|
"name": "@webority/ui-react",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.170.0"
|
|
10
10
|
},
|
|
11
11
|
"files": {
|
|
12
12
|
"manifest.json": {
|
|
13
|
-
"sha256": "
|
|
14
|
-
"bytes":
|
|
13
|
+
"sha256": "389e087bf5fbedbda316bfaffbce165a60d6b64b394881e09cb54e30b22eca1f",
|
|
14
|
+
"bytes": 1118084
|
|
15
15
|
},
|
|
16
16
|
"kit.js": {
|
|
17
|
-
"sha256": "
|
|
18
|
-
"bytes":
|
|
17
|
+
"sha256": "4635e62b64e352fff6cca1e1649ed438ad1af31e3ca56667d574b76fd5c5714f",
|
|
18
|
+
"bytes": 10072054
|
|
19
19
|
},
|
|
20
20
|
"kit.css": {
|
|
21
21
|
"sha256": "13b14f71fb6ea024945f95cba617b4f1d49f44a65ba7c7ed05d2354805539ef6",
|