@sbb-esta/lyne-elements 1.11.2 → 1.12.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/_index.scss +1 -1
- package/core/a11y/focus.d.ts.map +1 -1
- package/core/a11y.js +1 -1
- package/core/i18n/i18n.d.ts +5 -0
- package/core/i18n/i18n.d.ts.map +1 -1
- package/core/i18n.js +85 -55
- package/core/styles/lists.scss +4 -0
- package/core/styles/mixins/lists.scss +128 -76
- package/custom-elements.json +774 -76
- package/development/core/a11y/focus.d.ts.map +1 -1
- package/development/core/a11y.js +2 -2
- package/development/core/i18n/i18n.d.ts +5 -0
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n.js +36 -1
- package/development/paginator/index.d.ts +2 -0
- package/development/paginator/index.d.ts.map +1 -0
- package/development/paginator/paginator.d.ts +91 -0
- package/development/paginator/paginator.d.ts.map +1 -0
- package/development/paginator.d.ts +2 -0
- package/development/paginator.d.ts.map +1 -0
- package/development/paginator.js +526 -0
- package/development/radio-button/radio-button-group/radio-button-group.d.ts +1 -1
- package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/development/radio-button/radio-button-group.js +16 -12
- package/development/select/select.d.ts +6 -0
- package/development/select/select.d.ts.map +1 -1
- package/development/select.js +22 -2
- package/development/slider/slider.d.ts +35 -16
- package/development/slider/slider.d.ts.map +1 -1
- package/development/slider.js +102 -81
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/lists.css +102 -36
- package/package.json +6 -1
- package/paginator/index.d.ts +2 -0
- package/paginator/index.d.ts.map +1 -0
- package/paginator/paginator.d.ts +91 -0
- package/paginator/paginator.d.ts.map +1 -0
- package/paginator.d.ts +2 -0
- package/paginator.d.ts.map +1 -0
- package/paginator.js +263 -0
- package/radio-button/radio-button-group/radio-button-group.d.ts +1 -1
- package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/radio-button/radio-button-group.js +11 -7
- package/select/select.d.ts +6 -0
- package/select/select.d.ts.map +1 -1
- package/select.js +40 -24
- package/slider/slider.d.ts +35 -16
- package/slider/slider.d.ts.map +1 -1
- package/slider.js +111 -78
- package/standard-theme.css +102 -36
package/custom-elements.json
CHANGED
|
@@ -9201,6 +9201,483 @@
|
|
|
9201
9201
|
}
|
|
9202
9202
|
]
|
|
9203
9203
|
},
|
|
9204
|
+
{
|
|
9205
|
+
"kind": "javascript-module",
|
|
9206
|
+
"path": "paginator.js",
|
|
9207
|
+
"declarations": [
|
|
9208
|
+
{
|
|
9209
|
+
"kind": "class",
|
|
9210
|
+
"description": "It displays a paginator component.",
|
|
9211
|
+
"name": "SbbPaginatorElement",
|
|
9212
|
+
"members": [
|
|
9213
|
+
{
|
|
9214
|
+
"kind": "field",
|
|
9215
|
+
"name": "events",
|
|
9216
|
+
"type": {
|
|
9217
|
+
"text": "{\n page: 'page',\n }"
|
|
9218
|
+
},
|
|
9219
|
+
"privacy": "public",
|
|
9220
|
+
"static": true,
|
|
9221
|
+
"readonly": true,
|
|
9222
|
+
"default": "{ page: 'page', }"
|
|
9223
|
+
},
|
|
9224
|
+
{
|
|
9225
|
+
"kind": "field",
|
|
9226
|
+
"name": "length",
|
|
9227
|
+
"privacy": "public",
|
|
9228
|
+
"description": "Total number of items.",
|
|
9229
|
+
"type": {
|
|
9230
|
+
"text": "number"
|
|
9231
|
+
},
|
|
9232
|
+
"attribute": "length",
|
|
9233
|
+
"default": "0"
|
|
9234
|
+
},
|
|
9235
|
+
{
|
|
9236
|
+
"kind": "field",
|
|
9237
|
+
"name": "_length",
|
|
9238
|
+
"type": {
|
|
9239
|
+
"text": "number"
|
|
9240
|
+
},
|
|
9241
|
+
"privacy": "private",
|
|
9242
|
+
"default": "0"
|
|
9243
|
+
},
|
|
9244
|
+
{
|
|
9245
|
+
"kind": "field",
|
|
9246
|
+
"name": "pageSize",
|
|
9247
|
+
"privacy": "public",
|
|
9248
|
+
"description": "Number of items per page.",
|
|
9249
|
+
"type": {
|
|
9250
|
+
"text": "number"
|
|
9251
|
+
},
|
|
9252
|
+
"attribute": "page-size",
|
|
9253
|
+
"default": "10"
|
|
9254
|
+
},
|
|
9255
|
+
{
|
|
9256
|
+
"kind": "field",
|
|
9257
|
+
"name": "_pageSize",
|
|
9258
|
+
"type": {
|
|
9259
|
+
"text": "number"
|
|
9260
|
+
},
|
|
9261
|
+
"privacy": "private",
|
|
9262
|
+
"default": "10"
|
|
9263
|
+
},
|
|
9264
|
+
{
|
|
9265
|
+
"kind": "field",
|
|
9266
|
+
"name": "pageIndex",
|
|
9267
|
+
"privacy": "public",
|
|
9268
|
+
"description": "Current page index.",
|
|
9269
|
+
"type": {
|
|
9270
|
+
"text": "number"
|
|
9271
|
+
},
|
|
9272
|
+
"attribute": "page-index",
|
|
9273
|
+
"default": "0"
|
|
9274
|
+
},
|
|
9275
|
+
{
|
|
9276
|
+
"kind": "field",
|
|
9277
|
+
"name": "_pageIndex",
|
|
9278
|
+
"type": {
|
|
9279
|
+
"text": "number"
|
|
9280
|
+
},
|
|
9281
|
+
"privacy": "private",
|
|
9282
|
+
"default": "0"
|
|
9283
|
+
},
|
|
9284
|
+
{
|
|
9285
|
+
"kind": "field",
|
|
9286
|
+
"name": "pageSizeOptions",
|
|
9287
|
+
"privacy": "public",
|
|
9288
|
+
"description": "The available `pageSize` choices.",
|
|
9289
|
+
"type": {
|
|
9290
|
+
"text": "number[] | undefined"
|
|
9291
|
+
},
|
|
9292
|
+
"attribute": "page-size-options"
|
|
9293
|
+
},
|
|
9294
|
+
{
|
|
9295
|
+
"kind": "field",
|
|
9296
|
+
"name": "_pageSizeOptions",
|
|
9297
|
+
"type": {
|
|
9298
|
+
"text": "number[] | undefined"
|
|
9299
|
+
},
|
|
9300
|
+
"privacy": "private"
|
|
9301
|
+
},
|
|
9302
|
+
{
|
|
9303
|
+
"kind": "field",
|
|
9304
|
+
"name": "pagerPosition",
|
|
9305
|
+
"type": {
|
|
9306
|
+
"text": "'start' | 'end'"
|
|
9307
|
+
},
|
|
9308
|
+
"privacy": "public",
|
|
9309
|
+
"default": "'start'",
|
|
9310
|
+
"description": "Position of the prev/next buttons: if `pageSizeOptions` is set, the sbb-select for the pageSize change\nwill be positioned oppositely with the page numbers always in the center.",
|
|
9311
|
+
"attribute": "pager-position",
|
|
9312
|
+
"reflects": true
|
|
9313
|
+
},
|
|
9314
|
+
{
|
|
9315
|
+
"kind": "field",
|
|
9316
|
+
"name": "size",
|
|
9317
|
+
"type": {
|
|
9318
|
+
"text": "'m' | 's'"
|
|
9319
|
+
},
|
|
9320
|
+
"privacy": "public",
|
|
9321
|
+
"default": "'m'",
|
|
9322
|
+
"description": "Size variant, either m or s.",
|
|
9323
|
+
"attribute": "size",
|
|
9324
|
+
"reflects": true
|
|
9325
|
+
},
|
|
9326
|
+
{
|
|
9327
|
+
"kind": "field",
|
|
9328
|
+
"name": "_page",
|
|
9329
|
+
"type": {
|
|
9330
|
+
"text": "EventEmitter<SbbPaginatorPageEventDetails>"
|
|
9331
|
+
},
|
|
9332
|
+
"privacy": "private",
|
|
9333
|
+
"default": "new EventEmitter( this, SbbPaginatorElement.events.page, { composed: true, bubbles: true }, )"
|
|
9334
|
+
},
|
|
9335
|
+
{
|
|
9336
|
+
"kind": "field",
|
|
9337
|
+
"name": "_paginatorOptionsLabel",
|
|
9338
|
+
"privacy": "private",
|
|
9339
|
+
"default": "`sbb-paginator-options-label-${++nextId}`"
|
|
9340
|
+
},
|
|
9341
|
+
{
|
|
9342
|
+
"kind": "field",
|
|
9343
|
+
"name": "_language",
|
|
9344
|
+
"privacy": "private",
|
|
9345
|
+
"default": "new SbbLanguageController(this)"
|
|
9346
|
+
},
|
|
9347
|
+
{
|
|
9348
|
+
"kind": "field",
|
|
9349
|
+
"name": "_markForFocus",
|
|
9350
|
+
"type": {
|
|
9351
|
+
"text": "number | null"
|
|
9352
|
+
},
|
|
9353
|
+
"privacy": "private",
|
|
9354
|
+
"default": "null"
|
|
9355
|
+
},
|
|
9356
|
+
{
|
|
9357
|
+
"kind": "field",
|
|
9358
|
+
"name": "_updateSelectAriaLabelledBy",
|
|
9359
|
+
"type": {
|
|
9360
|
+
"text": "boolean"
|
|
9361
|
+
},
|
|
9362
|
+
"privacy": "private",
|
|
9363
|
+
"default": "false"
|
|
9364
|
+
},
|
|
9365
|
+
{
|
|
9366
|
+
"kind": "method",
|
|
9367
|
+
"name": "_numberOfPages",
|
|
9368
|
+
"privacy": "private",
|
|
9369
|
+
"return": {
|
|
9370
|
+
"type": {
|
|
9371
|
+
"text": "number"
|
|
9372
|
+
}
|
|
9373
|
+
},
|
|
9374
|
+
"description": "Calculates the current number of pages based on the `length` and the `pageSize`;\nvalue must be rounded up (e.g. `length = 21` and `pageSize = 10` means 3 pages)."
|
|
9375
|
+
},
|
|
9376
|
+
{
|
|
9377
|
+
"kind": "method",
|
|
9378
|
+
"name": "_pageSizeChanged",
|
|
9379
|
+
"privacy": "private",
|
|
9380
|
+
"return": {
|
|
9381
|
+
"type": {
|
|
9382
|
+
"text": "void"
|
|
9383
|
+
}
|
|
9384
|
+
},
|
|
9385
|
+
"parameters": [
|
|
9386
|
+
{
|
|
9387
|
+
"name": "value",
|
|
9388
|
+
"type": {
|
|
9389
|
+
"text": "number"
|
|
9390
|
+
}
|
|
9391
|
+
}
|
|
9392
|
+
],
|
|
9393
|
+
"description": "If the `pageSize` changes due to user interaction with the `pageSizeOptions` select,\nemit the `page` event and then update the `pageSize` value."
|
|
9394
|
+
},
|
|
9395
|
+
{
|
|
9396
|
+
"kind": "method",
|
|
9397
|
+
"name": "_pageIndexChanged",
|
|
9398
|
+
"privacy": "private",
|
|
9399
|
+
"return": {
|
|
9400
|
+
"type": {
|
|
9401
|
+
"text": "void"
|
|
9402
|
+
}
|
|
9403
|
+
},
|
|
9404
|
+
"parameters": [
|
|
9405
|
+
{
|
|
9406
|
+
"name": "value",
|
|
9407
|
+
"type": {
|
|
9408
|
+
"text": "number"
|
|
9409
|
+
}
|
|
9410
|
+
}
|
|
9411
|
+
],
|
|
9412
|
+
"description": "If the `pageIndex` changes due to user interaction,\nemit the `page` event and then update the `pageIndex` value."
|
|
9413
|
+
},
|
|
9414
|
+
{
|
|
9415
|
+
"kind": "method",
|
|
9416
|
+
"name": "_emitPageEvent",
|
|
9417
|
+
"privacy": "private",
|
|
9418
|
+
"return": {
|
|
9419
|
+
"type": {
|
|
9420
|
+
"text": "void"
|
|
9421
|
+
}
|
|
9422
|
+
},
|
|
9423
|
+
"parameters": [
|
|
9424
|
+
{
|
|
9425
|
+
"name": "previousPageIndex",
|
|
9426
|
+
"type": {
|
|
9427
|
+
"text": "number"
|
|
9428
|
+
}
|
|
9429
|
+
}
|
|
9430
|
+
]
|
|
9431
|
+
},
|
|
9432
|
+
{
|
|
9433
|
+
"kind": "method",
|
|
9434
|
+
"name": "_getVisiblePages",
|
|
9435
|
+
"privacy": "private",
|
|
9436
|
+
"return": {
|
|
9437
|
+
"type": {
|
|
9438
|
+
"text": "Element[]"
|
|
9439
|
+
}
|
|
9440
|
+
},
|
|
9441
|
+
"description": "Returns the displayed page elements."
|
|
9442
|
+
},
|
|
9443
|
+
{
|
|
9444
|
+
"kind": "method",
|
|
9445
|
+
"name": "_coercePageIndexInRange",
|
|
9446
|
+
"privacy": "private",
|
|
9447
|
+
"return": {
|
|
9448
|
+
"type": {
|
|
9449
|
+
"text": "number"
|
|
9450
|
+
}
|
|
9451
|
+
},
|
|
9452
|
+
"parameters": [
|
|
9453
|
+
{
|
|
9454
|
+
"name": "pageIndex",
|
|
9455
|
+
"type": {
|
|
9456
|
+
"text": "number"
|
|
9457
|
+
}
|
|
9458
|
+
}
|
|
9459
|
+
],
|
|
9460
|
+
"description": "Evaluate `pageIndex` by excluding edge cases."
|
|
9461
|
+
},
|
|
9462
|
+
{
|
|
9463
|
+
"kind": "method",
|
|
9464
|
+
"name": "_getVisiblePagesIndex",
|
|
9465
|
+
"privacy": "private",
|
|
9466
|
+
"return": {
|
|
9467
|
+
"type": {
|
|
9468
|
+
"text": "(number | 'ellipsis')[]"
|
|
9469
|
+
}
|
|
9470
|
+
},
|
|
9471
|
+
"description": "Calculate the pages set based on the following rules:\n - the first page must always be visible;\n - the last page must always be visible;\n - if there are more than `MAX_PAGE_NUMBERS_DISPLAYED` other pages, ellipsis button must be used."
|
|
9472
|
+
},
|
|
9473
|
+
{
|
|
9474
|
+
"kind": "method",
|
|
9475
|
+
"name": "_range",
|
|
9476
|
+
"privacy": "private",
|
|
9477
|
+
"return": {
|
|
9478
|
+
"type": {
|
|
9479
|
+
"text": "number[]"
|
|
9480
|
+
}
|
|
9481
|
+
},
|
|
9482
|
+
"parameters": [
|
|
9483
|
+
{
|
|
9484
|
+
"name": "length",
|
|
9485
|
+
"type": {
|
|
9486
|
+
"text": "number"
|
|
9487
|
+
}
|
|
9488
|
+
},
|
|
9489
|
+
{
|
|
9490
|
+
"name": "offset",
|
|
9491
|
+
"default": "0",
|
|
9492
|
+
"type": {
|
|
9493
|
+
"text": "number"
|
|
9494
|
+
}
|
|
9495
|
+
}
|
|
9496
|
+
],
|
|
9497
|
+
"description": "Creates an array of consecutive numbers given the length and the starting value."
|
|
9498
|
+
},
|
|
9499
|
+
{
|
|
9500
|
+
"kind": "method",
|
|
9501
|
+
"name": "_handleKeyUp",
|
|
9502
|
+
"privacy": "private",
|
|
9503
|
+
"return": {
|
|
9504
|
+
"type": {
|
|
9505
|
+
"text": "void"
|
|
9506
|
+
}
|
|
9507
|
+
},
|
|
9508
|
+
"parameters": [
|
|
9509
|
+
{
|
|
9510
|
+
"name": "event",
|
|
9511
|
+
"type": {
|
|
9512
|
+
"text": "KeyboardEvent"
|
|
9513
|
+
}
|
|
9514
|
+
}
|
|
9515
|
+
]
|
|
9516
|
+
},
|
|
9517
|
+
{
|
|
9518
|
+
"kind": "method",
|
|
9519
|
+
"name": "_currentPageLabel",
|
|
9520
|
+
"privacy": "private",
|
|
9521
|
+
"return": {
|
|
9522
|
+
"type": {
|
|
9523
|
+
"text": "string"
|
|
9524
|
+
}
|
|
9525
|
+
}
|
|
9526
|
+
},
|
|
9527
|
+
{
|
|
9528
|
+
"kind": "method",
|
|
9529
|
+
"name": "_renderPrevNextButtons",
|
|
9530
|
+
"privacy": "private",
|
|
9531
|
+
"return": {
|
|
9532
|
+
"type": {
|
|
9533
|
+
"text": "TemplateResult"
|
|
9534
|
+
}
|
|
9535
|
+
}
|
|
9536
|
+
},
|
|
9537
|
+
{
|
|
9538
|
+
"kind": "method",
|
|
9539
|
+
"name": "_renderItemPerPageTemplate",
|
|
9540
|
+
"privacy": "private",
|
|
9541
|
+
"return": {
|
|
9542
|
+
"type": {
|
|
9543
|
+
"text": "TemplateResult | typeof nothing"
|
|
9544
|
+
}
|
|
9545
|
+
}
|
|
9546
|
+
},
|
|
9547
|
+
{
|
|
9548
|
+
"kind": "method",
|
|
9549
|
+
"name": "_renderPageNumbers",
|
|
9550
|
+
"privacy": "private",
|
|
9551
|
+
"return": {
|
|
9552
|
+
"type": {
|
|
9553
|
+
"text": "TemplateResult"
|
|
9554
|
+
}
|
|
9555
|
+
}
|
|
9556
|
+
},
|
|
9557
|
+
{
|
|
9558
|
+
"kind": "field",
|
|
9559
|
+
"name": "negative",
|
|
9560
|
+
"type": {
|
|
9561
|
+
"text": "boolean"
|
|
9562
|
+
},
|
|
9563
|
+
"privacy": "public",
|
|
9564
|
+
"default": "false",
|
|
9565
|
+
"description": "Negative coloring variant flag.",
|
|
9566
|
+
"attribute": "negative",
|
|
9567
|
+
"reflects": true,
|
|
9568
|
+
"inheritedFrom": {
|
|
9569
|
+
"name": "SbbNegativeMixin",
|
|
9570
|
+
"module": "core/mixins.js"
|
|
9571
|
+
}
|
|
9572
|
+
}
|
|
9573
|
+
],
|
|
9574
|
+
"events": [
|
|
9575
|
+
{
|
|
9576
|
+
"type": {
|
|
9577
|
+
"text": "CustomEvent<SbbPaginatorPageEventDetails>"
|
|
9578
|
+
},
|
|
9579
|
+
"description": "Emits when the pageIndex changes.",
|
|
9580
|
+
"name": "page"
|
|
9581
|
+
}
|
|
9582
|
+
],
|
|
9583
|
+
"attributes": [
|
|
9584
|
+
{
|
|
9585
|
+
"name": "length",
|
|
9586
|
+
"description": "Total number of items.",
|
|
9587
|
+
"type": {
|
|
9588
|
+
"text": "number"
|
|
9589
|
+
},
|
|
9590
|
+
"fieldName": "length"
|
|
9591
|
+
},
|
|
9592
|
+
{
|
|
9593
|
+
"name": "page-size",
|
|
9594
|
+
"description": "Number of items per page.",
|
|
9595
|
+
"type": {
|
|
9596
|
+
"text": "number"
|
|
9597
|
+
},
|
|
9598
|
+
"fieldName": "pageSize"
|
|
9599
|
+
},
|
|
9600
|
+
{
|
|
9601
|
+
"name": "page-index",
|
|
9602
|
+
"description": "Current page index.",
|
|
9603
|
+
"type": {
|
|
9604
|
+
"text": "number"
|
|
9605
|
+
},
|
|
9606
|
+
"fieldName": "pageIndex"
|
|
9607
|
+
},
|
|
9608
|
+
{
|
|
9609
|
+
"name": "page-size-options",
|
|
9610
|
+
"description": "The available `pageSize` choices.",
|
|
9611
|
+
"type": {
|
|
9612
|
+
"text": "number[] | undefined"
|
|
9613
|
+
},
|
|
9614
|
+
"fieldName": "pageSizeOptions"
|
|
9615
|
+
},
|
|
9616
|
+
{
|
|
9617
|
+
"name": "pager-position",
|
|
9618
|
+
"type": {
|
|
9619
|
+
"text": "'start' | 'end'"
|
|
9620
|
+
},
|
|
9621
|
+
"default": "'start'",
|
|
9622
|
+
"description": "Position of the prev/next buttons: if `pageSizeOptions` is set, the sbb-select for the pageSize change\nwill be positioned oppositely with the page numbers always in the center.",
|
|
9623
|
+
"fieldName": "pagerPosition"
|
|
9624
|
+
},
|
|
9625
|
+
{
|
|
9626
|
+
"name": "size",
|
|
9627
|
+
"type": {
|
|
9628
|
+
"text": "'m' | 's'"
|
|
9629
|
+
},
|
|
9630
|
+
"default": "'m'",
|
|
9631
|
+
"description": "Size variant, either m or s.",
|
|
9632
|
+
"fieldName": "size"
|
|
9633
|
+
},
|
|
9634
|
+
{
|
|
9635
|
+
"name": "negative",
|
|
9636
|
+
"type": {
|
|
9637
|
+
"text": "boolean"
|
|
9638
|
+
},
|
|
9639
|
+
"default": "false",
|
|
9640
|
+
"description": "Negative coloring variant flag.",
|
|
9641
|
+
"fieldName": "negative",
|
|
9642
|
+
"inheritedFrom": {
|
|
9643
|
+
"name": "SbbNegativeMixin",
|
|
9644
|
+
"module": "core/mixins.js"
|
|
9645
|
+
}
|
|
9646
|
+
}
|
|
9647
|
+
],
|
|
9648
|
+
"mixins": [
|
|
9649
|
+
{
|
|
9650
|
+
"name": "SbbNegativeMixin",
|
|
9651
|
+
"module": "core/mixins.js"
|
|
9652
|
+
}
|
|
9653
|
+
],
|
|
9654
|
+
"superclass": {
|
|
9655
|
+
"name": "LitElement",
|
|
9656
|
+
"package": "lit"
|
|
9657
|
+
},
|
|
9658
|
+
"tagName": "sbb-paginator",
|
|
9659
|
+
"customElement": true
|
|
9660
|
+
}
|
|
9661
|
+
],
|
|
9662
|
+
"exports": [
|
|
9663
|
+
{
|
|
9664
|
+
"kind": "js",
|
|
9665
|
+
"name": "SbbPaginatorElement",
|
|
9666
|
+
"declaration": {
|
|
9667
|
+
"name": "SbbPaginatorElement",
|
|
9668
|
+
"module": "paginator.js"
|
|
9669
|
+
}
|
|
9670
|
+
},
|
|
9671
|
+
{
|
|
9672
|
+
"kind": "custom-element-definition",
|
|
9673
|
+
"name": "sbb-paginator",
|
|
9674
|
+
"declaration": {
|
|
9675
|
+
"name": "SbbPaginatorElement",
|
|
9676
|
+
"module": "paginator.js"
|
|
9677
|
+
}
|
|
9678
|
+
}
|
|
9679
|
+
]
|
|
9680
|
+
},
|
|
9204
9681
|
{
|
|
9205
9682
|
"kind": "javascript-module",
|
|
9206
9683
|
"path": "popover.js",
|
|
@@ -9537,6 +10014,25 @@
|
|
|
9537
10014
|
"privacy": "private",
|
|
9538
10015
|
"readonly": true
|
|
9539
10016
|
},
|
|
10017
|
+
{
|
|
10018
|
+
"kind": "method",
|
|
10019
|
+
"name": "_onSelectAttributesChange",
|
|
10020
|
+
"privacy": "private",
|
|
10021
|
+
"return": {
|
|
10022
|
+
"type": {
|
|
10023
|
+
"text": "void"
|
|
10024
|
+
}
|
|
10025
|
+
},
|
|
10026
|
+
"parameters": [
|
|
10027
|
+
{
|
|
10028
|
+
"name": "mutationsList",
|
|
10029
|
+
"type": {
|
|
10030
|
+
"text": "MutationRecord[]"
|
|
10031
|
+
}
|
|
10032
|
+
}
|
|
10033
|
+
],
|
|
10034
|
+
"description": "TODO: Accessibility fix required to correctly read the label;\ncan be possibly removed after the merge of https://github.com/sbb-design-systems/lyne-components/issues/3062"
|
|
10035
|
+
},
|
|
9540
10036
|
{
|
|
9541
10037
|
"kind": "method",
|
|
9542
10038
|
"name": "open",
|
|
@@ -11283,67 +11779,67 @@
|
|
|
11283
11779
|
{
|
|
11284
11780
|
"kind": "field",
|
|
11285
11781
|
"name": "value",
|
|
11782
|
+
"privacy": "public",
|
|
11783
|
+
"description": "Value of the form element.\nIf no value is provided, default is the middle point between min and max.",
|
|
11286
11784
|
"type": {
|
|
11287
|
-
"text": "string |
|
|
11785
|
+
"text": "string | null"
|
|
11288
11786
|
},
|
|
11289
|
-
"
|
|
11290
|
-
"
|
|
11291
|
-
|
|
11292
|
-
|
|
11787
|
+
"attribute": "value",
|
|
11788
|
+
"inheritedFrom": {
|
|
11789
|
+
"name": "SbbFormAssociatedMixin",
|
|
11790
|
+
"module": "core/mixins.js"
|
|
11791
|
+
},
|
|
11792
|
+
"default": "null"
|
|
11293
11793
|
},
|
|
11294
11794
|
{
|
|
11295
11795
|
"kind": "field",
|
|
11296
11796
|
"name": "valueAsNumber",
|
|
11297
|
-
"type": {
|
|
11298
|
-
"text": "number | undefined"
|
|
11299
|
-
},
|
|
11300
11797
|
"privacy": "public",
|
|
11301
11798
|
"description": "Numeric value for the inner HTMLInputElement.",
|
|
11799
|
+
"type": {
|
|
11800
|
+
"text": "number | null"
|
|
11801
|
+
},
|
|
11302
11802
|
"attribute": "value-as-number"
|
|
11303
11803
|
},
|
|
11304
11804
|
{
|
|
11305
11805
|
"kind": "field",
|
|
11306
|
-
"name": "
|
|
11806
|
+
"name": "min",
|
|
11807
|
+
"privacy": "public",
|
|
11808
|
+
"description": "Minimum acceptable value for the inner HTMLInputElement.",
|
|
11307
11809
|
"type": {
|
|
11308
|
-
"text": "string
|
|
11810
|
+
"text": "string"
|
|
11309
11811
|
},
|
|
11310
|
-
"
|
|
11311
|
-
"default": "''"
|
|
11312
|
-
"description": "Name of the inner HTMLInputElement.",
|
|
11313
|
-
"attribute": "name",
|
|
11314
|
-
"reflects": true
|
|
11812
|
+
"attribute": "min",
|
|
11813
|
+
"default": "'0'"
|
|
11315
11814
|
},
|
|
11316
11815
|
{
|
|
11317
11816
|
"kind": "field",
|
|
11318
|
-
"name": "
|
|
11817
|
+
"name": "_min",
|
|
11319
11818
|
"type": {
|
|
11320
|
-
"text": "string
|
|
11819
|
+
"text": "string"
|
|
11321
11820
|
},
|
|
11322
|
-
"privacy": "
|
|
11323
|
-
"
|
|
11324
|
-
"attribute": "form"
|
|
11821
|
+
"privacy": "private",
|
|
11822
|
+
"default": "'0'"
|
|
11325
11823
|
},
|
|
11326
11824
|
{
|
|
11327
11825
|
"kind": "field",
|
|
11328
|
-
"name": "
|
|
11826
|
+
"name": "max",
|
|
11827
|
+
"privacy": "public",
|
|
11828
|
+
"description": "Maximum acceptable value for the inner HTMLInputElement.",
|
|
11329
11829
|
"type": {
|
|
11330
|
-
"text": "string
|
|
11830
|
+
"text": "string"
|
|
11331
11831
|
},
|
|
11332
|
-
"
|
|
11333
|
-
"default": "'
|
|
11334
|
-
"description": "Minimum acceptable value for the inner HTMLInputElement.",
|
|
11335
|
-
"attribute": "min"
|
|
11832
|
+
"attribute": "max",
|
|
11833
|
+
"default": "'100'"
|
|
11336
11834
|
},
|
|
11337
11835
|
{
|
|
11338
11836
|
"kind": "field",
|
|
11339
|
-
"name": "
|
|
11837
|
+
"name": "_max",
|
|
11340
11838
|
"type": {
|
|
11341
|
-
"text": "string
|
|
11839
|
+
"text": "string"
|
|
11342
11840
|
},
|
|
11343
|
-
"privacy": "
|
|
11344
|
-
"default": "'100'"
|
|
11345
|
-
"description": "Maximum acceptable value for the inner HTMLInputElement.",
|
|
11346
|
-
"attribute": "max"
|
|
11841
|
+
"privacy": "private",
|
|
11842
|
+
"default": "'100'"
|
|
11347
11843
|
},
|
|
11348
11844
|
{
|
|
11349
11845
|
"kind": "field",
|
|
@@ -11413,41 +11909,61 @@
|
|
|
11413
11909
|
},
|
|
11414
11910
|
{
|
|
11415
11911
|
"kind": "method",
|
|
11416
|
-
"name": "
|
|
11912
|
+
"name": "_getDefaultValue",
|
|
11417
11913
|
"privacy": "private",
|
|
11418
11914
|
"return": {
|
|
11419
11915
|
"type": {
|
|
11420
|
-
"text": "
|
|
11916
|
+
"text": "string"
|
|
11917
|
+
}
|
|
11918
|
+
},
|
|
11919
|
+
"description": "If no value is provided, default is the middle point between min and max\n(see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range#value)"
|
|
11920
|
+
},
|
|
11921
|
+
{
|
|
11922
|
+
"kind": "method",
|
|
11923
|
+
"name": "_isValidNumber",
|
|
11924
|
+
"privacy": "private",
|
|
11925
|
+
"return": {
|
|
11926
|
+
"type": {
|
|
11927
|
+
"text": "boolean"
|
|
11421
11928
|
}
|
|
11422
11929
|
},
|
|
11423
11930
|
"parameters": [
|
|
11424
11931
|
{
|
|
11425
|
-
"name": "
|
|
11932
|
+
"name": "value",
|
|
11426
11933
|
"type": {
|
|
11427
|
-
"text": "string |
|
|
11934
|
+
"text": "string | null"
|
|
11428
11935
|
}
|
|
11429
11936
|
}
|
|
11430
11937
|
]
|
|
11431
11938
|
},
|
|
11432
11939
|
{
|
|
11433
11940
|
"kind": "method",
|
|
11434
|
-
"name": "
|
|
11941
|
+
"name": "_boundBetweenMinMax",
|
|
11435
11942
|
"privacy": "private",
|
|
11436
11943
|
"return": {
|
|
11437
11944
|
"type": {
|
|
11438
|
-
"text": "
|
|
11945
|
+
"text": "string"
|
|
11439
11946
|
}
|
|
11440
11947
|
},
|
|
11441
11948
|
"parameters": [
|
|
11442
11949
|
{
|
|
11443
11950
|
"name": "value",
|
|
11444
|
-
"default": "this._rangeInput?.valueAsNumber",
|
|
11445
11951
|
"type": {
|
|
11446
|
-
"text": "
|
|
11952
|
+
"text": "string"
|
|
11447
11953
|
}
|
|
11448
11954
|
}
|
|
11449
11955
|
],
|
|
11450
|
-
"description": "
|
|
11956
|
+
"description": "Restrains the value between the min and max"
|
|
11957
|
+
},
|
|
11958
|
+
{
|
|
11959
|
+
"kind": "method",
|
|
11960
|
+
"name": "_calculateValueFraction",
|
|
11961
|
+
"privacy": "private",
|
|
11962
|
+
"return": {
|
|
11963
|
+
"type": {
|
|
11964
|
+
"text": "void"
|
|
11965
|
+
}
|
|
11966
|
+
}
|
|
11451
11967
|
},
|
|
11452
11968
|
{
|
|
11453
11969
|
"kind": "method",
|
|
@@ -11529,15 +12045,93 @@
|
|
|
11529
12045
|
"name": "SbbDisabledMixin",
|
|
11530
12046
|
"module": "core/mixins.js"
|
|
11531
12047
|
}
|
|
11532
|
-
}
|
|
11533
|
-
],
|
|
11534
|
-
"events": [
|
|
12048
|
+
},
|
|
11535
12049
|
{
|
|
11536
|
-
"
|
|
12050
|
+
"kind": "field",
|
|
12051
|
+
"name": "formAssociated",
|
|
11537
12052
|
"type": {
|
|
11538
|
-
"text": "
|
|
12053
|
+
"text": "boolean"
|
|
12054
|
+
},
|
|
12055
|
+
"privacy": "public",
|
|
12056
|
+
"static": true,
|
|
12057
|
+
"default": "true",
|
|
12058
|
+
"inheritedFrom": {
|
|
12059
|
+
"name": "SbbFormAssociatedMixin",
|
|
12060
|
+
"module": "core/mixins.js"
|
|
11539
12061
|
}
|
|
11540
12062
|
},
|
|
12063
|
+
{
|
|
12064
|
+
"kind": "field",
|
|
12065
|
+
"name": "form",
|
|
12066
|
+
"type": {
|
|
12067
|
+
"text": "HTMLFormElement | null"
|
|
12068
|
+
},
|
|
12069
|
+
"privacy": "public",
|
|
12070
|
+
"description": "Returns the form owner of internals target element.",
|
|
12071
|
+
"readonly": true,
|
|
12072
|
+
"inheritedFrom": {
|
|
12073
|
+
"name": "SbbFormAssociatedMixin",
|
|
12074
|
+
"module": "core/mixins.js"
|
|
12075
|
+
}
|
|
12076
|
+
},
|
|
12077
|
+
{
|
|
12078
|
+
"kind": "field",
|
|
12079
|
+
"name": "name",
|
|
12080
|
+
"privacy": "public",
|
|
12081
|
+
"description": "Name of the form element. Will be read from name attribute.",
|
|
12082
|
+
"type": {
|
|
12083
|
+
"text": "string"
|
|
12084
|
+
},
|
|
12085
|
+
"attribute": "name",
|
|
12086
|
+
"inheritedFrom": {
|
|
12087
|
+
"name": "SbbFormAssociatedMixin",
|
|
12088
|
+
"module": "core/mixins.js"
|
|
12089
|
+
}
|
|
12090
|
+
},
|
|
12091
|
+
{
|
|
12092
|
+
"kind": "field",
|
|
12093
|
+
"name": "_value",
|
|
12094
|
+
"type": {
|
|
12095
|
+
"text": "string | null"
|
|
12096
|
+
},
|
|
12097
|
+
"privacy": "private",
|
|
12098
|
+
"default": "null",
|
|
12099
|
+
"inheritedFrom": {
|
|
12100
|
+
"name": "SbbFormAssociatedMixin",
|
|
12101
|
+
"module": "core/mixins.js"
|
|
12102
|
+
}
|
|
12103
|
+
},
|
|
12104
|
+
{
|
|
12105
|
+
"kind": "field",
|
|
12106
|
+
"name": "formDisabled",
|
|
12107
|
+
"type": {
|
|
12108
|
+
"text": "boolean"
|
|
12109
|
+
},
|
|
12110
|
+
"privacy": "protected",
|
|
12111
|
+
"default": "false",
|
|
12112
|
+
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
12113
|
+
"inheritedFrom": {
|
|
12114
|
+
"name": "SbbFormAssociatedMixin",
|
|
12115
|
+
"module": "core/mixins.js"
|
|
12116
|
+
}
|
|
12117
|
+
},
|
|
12118
|
+
{
|
|
12119
|
+
"kind": "method",
|
|
12120
|
+
"name": "updateFormValue",
|
|
12121
|
+
"privacy": "protected",
|
|
12122
|
+
"return": {
|
|
12123
|
+
"type": {
|
|
12124
|
+
"text": "void"
|
|
12125
|
+
}
|
|
12126
|
+
},
|
|
12127
|
+
"description": "Should be called when form value is changed.",
|
|
12128
|
+
"inheritedFrom": {
|
|
12129
|
+
"name": "SbbFormAssociatedMixin",
|
|
12130
|
+
"module": "core/mixins.js"
|
|
12131
|
+
}
|
|
12132
|
+
}
|
|
12133
|
+
],
|
|
12134
|
+
"events": [
|
|
11541
12135
|
{
|
|
11542
12136
|
"type": {
|
|
11543
12137
|
"text": "CustomEvent<void>"
|
|
@@ -11549,54 +12143,38 @@
|
|
|
11549
12143
|
"attributes": [
|
|
11550
12144
|
{
|
|
11551
12145
|
"name": "value",
|
|
12146
|
+
"description": "Value of the form element.\nIf no value is provided, default is the middle point between min and max.",
|
|
11552
12147
|
"type": {
|
|
11553
|
-
"text": "string |
|
|
12148
|
+
"text": "string | null"
|
|
11554
12149
|
},
|
|
11555
|
-
"
|
|
11556
|
-
"
|
|
11557
|
-
|
|
12150
|
+
"fieldName": "value",
|
|
12151
|
+
"inheritedFrom": {
|
|
12152
|
+
"name": "SbbFormAssociatedMixin",
|
|
12153
|
+
"module": "core/mixins.js"
|
|
12154
|
+
}
|
|
11558
12155
|
},
|
|
11559
12156
|
{
|
|
11560
12157
|
"name": "value-as-number",
|
|
11561
|
-
"type": {
|
|
11562
|
-
"text": "number | undefined"
|
|
11563
|
-
},
|
|
11564
12158
|
"description": "Numeric value for the inner HTMLInputElement.",
|
|
11565
|
-
"fieldName": "valueAsNumber"
|
|
11566
|
-
},
|
|
11567
|
-
{
|
|
11568
|
-
"name": "name",
|
|
11569
|
-
"type": {
|
|
11570
|
-
"text": "string | undefined"
|
|
11571
|
-
},
|
|
11572
|
-
"default": "''",
|
|
11573
|
-
"description": "Name of the inner HTMLInputElement.",
|
|
11574
|
-
"fieldName": "name"
|
|
11575
|
-
},
|
|
11576
|
-
{
|
|
11577
|
-
"name": "form",
|
|
11578
12159
|
"type": {
|
|
11579
|
-
"text": "
|
|
12160
|
+
"text": "number | null"
|
|
11580
12161
|
},
|
|
11581
|
-
"
|
|
11582
|
-
"fieldName": "form"
|
|
12162
|
+
"fieldName": "valueAsNumber"
|
|
11583
12163
|
},
|
|
11584
12164
|
{
|
|
11585
12165
|
"name": "min",
|
|
12166
|
+
"description": "Minimum acceptable value for the inner HTMLInputElement.",
|
|
11586
12167
|
"type": {
|
|
11587
|
-
"text": "string
|
|
12168
|
+
"text": "string"
|
|
11588
12169
|
},
|
|
11589
|
-
"default": "'0'",
|
|
11590
|
-
"description": "Minimum acceptable value for the inner HTMLInputElement.",
|
|
11591
12170
|
"fieldName": "min"
|
|
11592
12171
|
},
|
|
11593
12172
|
{
|
|
11594
12173
|
"name": "max",
|
|
12174
|
+
"description": "Maximum acceptable value for the inner HTMLInputElement.",
|
|
11595
12175
|
"type": {
|
|
11596
|
-
"text": "string
|
|
12176
|
+
"text": "string"
|
|
11597
12177
|
},
|
|
11598
|
-
"default": "'100'",
|
|
11599
|
-
"description": "Maximum acceptable value for the inner HTMLInputElement.",
|
|
11600
12178
|
"fieldName": "max"
|
|
11601
12179
|
},
|
|
11602
12180
|
{
|
|
@@ -11635,12 +12213,28 @@
|
|
|
11635
12213
|
"name": "SbbDisabledMixin",
|
|
11636
12214
|
"module": "core/mixins.js"
|
|
11637
12215
|
}
|
|
12216
|
+
},
|
|
12217
|
+
{
|
|
12218
|
+
"name": "name",
|
|
12219
|
+
"description": "Name of the form element. Will be read from name attribute.",
|
|
12220
|
+
"type": {
|
|
12221
|
+
"text": "string"
|
|
12222
|
+
},
|
|
12223
|
+
"fieldName": "name",
|
|
12224
|
+
"inheritedFrom": {
|
|
12225
|
+
"name": "SbbFormAssociatedMixin",
|
|
12226
|
+
"module": "core/mixins.js"
|
|
12227
|
+
}
|
|
11638
12228
|
}
|
|
11639
12229
|
],
|
|
11640
12230
|
"mixins": [
|
|
11641
12231
|
{
|
|
11642
12232
|
"name": "SbbDisabledMixin",
|
|
11643
12233
|
"module": "core/mixins.js"
|
|
12234
|
+
},
|
|
12235
|
+
{
|
|
12236
|
+
"name": "SbbFormAssociatedMixin",
|
|
12237
|
+
"module": "core/mixins.js"
|
|
11644
12238
|
}
|
|
11645
12239
|
],
|
|
11646
12240
|
"superclass": {
|
|
@@ -32041,6 +32635,55 @@
|
|
|
32041
32635
|
}
|
|
32042
32636
|
}
|
|
32043
32637
|
]
|
|
32638
|
+
},
|
|
32639
|
+
{
|
|
32640
|
+
"kind": "variable",
|
|
32641
|
+
"name": "i18nNextPage",
|
|
32642
|
+
"type": {
|
|
32643
|
+
"text": "Record<string, string>"
|
|
32644
|
+
},
|
|
32645
|
+
"default": "{ de: 'Nächste Seite', en: 'Next page', fr: 'Prochaine page', it: 'Pagina successiva', }"
|
|
32646
|
+
},
|
|
32647
|
+
{
|
|
32648
|
+
"kind": "variable",
|
|
32649
|
+
"name": "i18nPreviousPage",
|
|
32650
|
+
"type": {
|
|
32651
|
+
"text": "Record<string, string>"
|
|
32652
|
+
},
|
|
32653
|
+
"default": "{ de: 'Vorherige Seite', en: 'Previous page', fr: 'Page précédente', it: 'Pagina precedente', }"
|
|
32654
|
+
},
|
|
32655
|
+
{
|
|
32656
|
+
"kind": "variable",
|
|
32657
|
+
"name": "i18nPage",
|
|
32658
|
+
"type": {
|
|
32659
|
+
"text": "Record<string, string>"
|
|
32660
|
+
},
|
|
32661
|
+
"default": "{ de: 'Seite', en: 'Page', fr: 'Page', it: 'Pagina', }"
|
|
32662
|
+
},
|
|
32663
|
+
{
|
|
32664
|
+
"kind": "variable",
|
|
32665
|
+
"name": "i18nItemsPerPage",
|
|
32666
|
+
"type": {
|
|
32667
|
+
"text": "Record<string, string>"
|
|
32668
|
+
},
|
|
32669
|
+
"default": "{ de: 'Einträge pro Seite', en: 'Items per page', fr: 'Entrées par page', it: 'Elementi per pagina', }"
|
|
32670
|
+
},
|
|
32671
|
+
{
|
|
32672
|
+
"kind": "function",
|
|
32673
|
+
"name": "i18nSelectedPage",
|
|
32674
|
+
"return": {
|
|
32675
|
+
"type": {
|
|
32676
|
+
"text": "Record<string, string>"
|
|
32677
|
+
}
|
|
32678
|
+
},
|
|
32679
|
+
"parameters": [
|
|
32680
|
+
{
|
|
32681
|
+
"name": "pageNumber",
|
|
32682
|
+
"type": {
|
|
32683
|
+
"text": "number"
|
|
32684
|
+
}
|
|
32685
|
+
}
|
|
32686
|
+
]
|
|
32044
32687
|
}
|
|
32045
32688
|
],
|
|
32046
32689
|
"exports": [
|
|
@@ -32611,6 +33254,46 @@
|
|
|
32611
33254
|
"name": "i18nFileSelectorCurrentlySelected",
|
|
32612
33255
|
"module": "core/i18n.js"
|
|
32613
33256
|
}
|
|
33257
|
+
},
|
|
33258
|
+
{
|
|
33259
|
+
"kind": "js",
|
|
33260
|
+
"name": "i18nNextPage",
|
|
33261
|
+
"declaration": {
|
|
33262
|
+
"name": "i18nNextPage",
|
|
33263
|
+
"module": "core/i18n.js"
|
|
33264
|
+
}
|
|
33265
|
+
},
|
|
33266
|
+
{
|
|
33267
|
+
"kind": "js",
|
|
33268
|
+
"name": "i18nPreviousPage",
|
|
33269
|
+
"declaration": {
|
|
33270
|
+
"name": "i18nPreviousPage",
|
|
33271
|
+
"module": "core/i18n.js"
|
|
33272
|
+
}
|
|
33273
|
+
},
|
|
33274
|
+
{
|
|
33275
|
+
"kind": "js",
|
|
33276
|
+
"name": "i18nPage",
|
|
33277
|
+
"declaration": {
|
|
33278
|
+
"name": "i18nPage",
|
|
33279
|
+
"module": "core/i18n.js"
|
|
33280
|
+
}
|
|
33281
|
+
},
|
|
33282
|
+
{
|
|
33283
|
+
"kind": "js",
|
|
33284
|
+
"name": "i18nItemsPerPage",
|
|
33285
|
+
"declaration": {
|
|
33286
|
+
"name": "i18nItemsPerPage",
|
|
33287
|
+
"module": "core/i18n.js"
|
|
33288
|
+
}
|
|
33289
|
+
},
|
|
33290
|
+
{
|
|
33291
|
+
"kind": "js",
|
|
33292
|
+
"name": "i18nSelectedPage",
|
|
33293
|
+
"declaration": {
|
|
33294
|
+
"name": "i18nSelectedPage",
|
|
33295
|
+
"module": "core/i18n.js"
|
|
33296
|
+
}
|
|
32614
33297
|
}
|
|
32615
33298
|
]
|
|
32616
33299
|
},
|
|
@@ -52928,6 +53611,21 @@
|
|
|
52928
53611
|
}
|
|
52929
53612
|
]
|
|
52930
53613
|
},
|
|
53614
|
+
{
|
|
53615
|
+
"kind": "javascript-module",
|
|
53616
|
+
"path": "paginator/index.js",
|
|
53617
|
+
"declarations": [],
|
|
53618
|
+
"exports": [
|
|
53619
|
+
{
|
|
53620
|
+
"kind": "js",
|
|
53621
|
+
"name": "*",
|
|
53622
|
+
"declaration": {
|
|
53623
|
+
"name": "*",
|
|
53624
|
+
"package": "./paginator.js"
|
|
53625
|
+
}
|
|
53626
|
+
}
|
|
53627
|
+
]
|
|
53628
|
+
},
|
|
52931
53629
|
{
|
|
52932
53630
|
"kind": "javascript-module",
|
|
52933
53631
|
"path": "popover/popover-trigger.js",
|
|
@@ -54219,7 +54917,7 @@
|
|
|
54219
54917
|
},
|
|
54220
54918
|
{
|
|
54221
54919
|
"kind": "method",
|
|
54222
|
-
"name": "
|
|
54920
|
+
"name": "_onRadioButtonChange",
|
|
54223
54921
|
"privacy": "private",
|
|
54224
54922
|
"return": {
|
|
54225
54923
|
"type": {
|