@sapudex/web-components 2.33.0 → 2.34.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/cypress/specs/FilterMenu.cy.tsx +53 -0
- package/cypress/specs/ListItem.cy.tsx +48 -0
- package/cypress/specs/MastheadMenu.cy.tsx +564 -0
- package/cypress/specs/MastheadMobileMenu.cy.tsx +573 -0
- package/cypress/specs/SelectBox.cy.tsx +63 -0
- package/dist/ListItem.d.ts +3 -0
- package/dist/ListItem.js +10 -1
- package/dist/ListItem.js.map +1 -1
- package/dist/ListItemBase.d.ts +29 -0
- package/dist/ListItemBase.js +22 -0
- package/dist/ListItemBase.js.map +1 -1
- package/dist/MastheadItem.d.ts +2 -1
- package/dist/MastheadItem.js.map +1 -1
- package/dist/MastheadMenu.d.ts +2 -1
- package/dist/MastheadMenu.js.map +1 -1
- package/dist/SearchableListBase.d.ts +3 -1
- package/dist/SearchableListBase.js +7 -1
- package/dist/SearchableListBase.js.map +1 -1
- package/dist/SelectBase.js +4 -2
- package/dist/SelectBase.js.map +1 -1
- package/dist/assets/{InputSuggestions-B_Dl2L6w.js → InputSuggestions-Bz7HZXUc.js} +1 -1
- package/dist/assets/{ListItemStandardExpandableTextTemplate-9Z-aZmJx.js → ListItemStandardExpandableTextTemplate-CjE7hAvu.js} +1 -1
- package/dist/assets/{bundle-DbTEs-Za.css → bundle-JYo3bV8v.css} +1 -1
- package/dist/assets/{bundle.esm-BlIxH9k1.js → bundle.esm-mAR7ytdB.js} +216 -216
- package/dist/css/themes/ListItem.css +1 -1
- package/dist/css/themes/MastheadMenu.css +1 -1
- package/dist/css/themes/MastheadMobileMenu.css +1 -1
- package/dist/css/themes/RatingIndicator.css +1 -1
- package/dist/css/themes/Slider.css +1 -1
- package/dist/custom-elements-internal.json +1113 -23
- package/dist/custom-elements.json +1114 -24
- package/dist/generated/templates/ListItemTemplate.lit.js +32 -28
- package/dist/generated/templates/ListItemTemplate.lit.js.map +1 -1
- package/dist/generated/templates/MastheadMenuTemplate.lit.js +8 -1
- package/dist/generated/templates/MastheadMenuTemplate.lit.js.map +1 -1
- package/dist/generated/templates/MastheadMobileMenuTemplate.lit.js +10 -4
- package/dist/generated/templates/MastheadMobileMenuTemplate.lit.js.map +1 -1
- package/dist/generated/templates/SearchableListBaseTemplate.lit.js +3 -3
- package/dist/generated/templates/SearchableListBaseTemplate.lit.js.map +1 -1
- package/dist/generated/templates/SelectBoxTemplate.lit.js +12 -10
- package/dist/generated/templates/SelectBoxTemplate.lit.js.map +1 -1
- package/dist/generated/themes/ListItem.css.d.ts +1 -1
- package/dist/generated/themes/ListItem.css.js +1 -1
- package/dist/generated/themes/ListItem.css.js.map +1 -1
- package/dist/generated/themes/MastheadMenu.css.d.ts +1 -1
- package/dist/generated/themes/MastheadMenu.css.js +1 -1
- package/dist/generated/themes/MastheadMenu.css.js.map +1 -1
- package/dist/generated/themes/MastheadMobileMenu.css.d.ts +1 -1
- package/dist/generated/themes/MastheadMobileMenu.css.js +1 -1
- package/dist/generated/themes/MastheadMobileMenu.css.js.map +1 -1
- package/dist/generated/themes/RatingIndicator.css.d.ts +1 -1
- package/dist/generated/themes/RatingIndicator.css.js +1 -1
- package/dist/generated/themes/RatingIndicator.css.js.map +1 -1
- package/dist/generated/themes/Slider.css.d.ts +1 -1
- package/dist/generated/themes/Slider.css.js +1 -1
- package/dist/generated/themes/Slider.css.js.map +1 -1
- package/dist/vscode.html-custom-data.json +220 -0
- package/dist/web-types.json +361 -1
- package/package.json +1 -1
- package/src/ListItem.hbs +26 -2
- package/src/ListItem.ts +12 -1
- package/src/ListItemBase.ts +40 -0
- package/src/MastheadItem.ts +2 -1
- package/src/MastheadMenu.hbs +35 -0
- package/src/MastheadMenu.ts +2 -1
- package/src/MastheadMobileMenu.hbs +40 -9
- package/src/SearchableListBase.hbs +12 -0
- package/src/SearchableListBase.ts +11 -2
- package/src/SelectBase.ts +4 -2
- package/src/SelectBox.hbs +13 -5
- package/src/generated/templates/ListItemTemplate.lit.ts +32 -28
- package/src/generated/templates/MastheadMenuTemplate.lit.ts +8 -1
- package/src/generated/templates/MastheadMobileMenuTemplate.lit.ts +10 -4
- package/src/generated/templates/SearchableListBaseTemplate.lit.ts +3 -3
- package/src/generated/templates/SelectBoxTemplate.lit.ts +12 -10
- package/src/generated/themes/ListItem.css.ts +1 -1
- package/src/generated/themes/MastheadMenu.css.ts +1 -1
- package/src/generated/themes/MastheadMobileMenu.css.ts +1 -1
- package/src/generated/themes/RatingIndicator.css.ts +1 -1
- package/src/generated/themes/Slider.css.ts +1 -1
- package/src/themes/ListItem.css +6 -4
- package/src/themes/MastheadMenu.css +45 -0
- package/src/themes/MastheadMobileMenu.css +45 -0
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@sapudex/web-components",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.34.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -2053,6 +2053,26 @@
|
|
|
2053
2053
|
"description": "Defines non-interactive the group header.",
|
|
2054
2054
|
"value": { "type": "boolean", "default": "false" }
|
|
2055
2055
|
},
|
|
2056
|
+
{
|
|
2057
|
+
"name": "rating-max",
|
|
2058
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
2059
|
+
"value": { "type": "number", "default": "5" }
|
|
2060
|
+
},
|
|
2061
|
+
{
|
|
2062
|
+
"name": "rating",
|
|
2063
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
2064
|
+
"value": { "type": "string | undefined" }
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
"name": "rating-count",
|
|
2068
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
2069
|
+
"value": { "type": "string | undefined" }
|
|
2070
|
+
},
|
|
2071
|
+
{
|
|
2072
|
+
"name": "total-count",
|
|
2073
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
2074
|
+
"value": { "type": "string | undefined" }
|
|
2075
|
+
},
|
|
2056
2076
|
{
|
|
2057
2077
|
"name": "label",
|
|
2058
2078
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -2144,6 +2164,26 @@
|
|
|
2144
2164
|
"description": "Defines non-interactive the group header.",
|
|
2145
2165
|
"value": { "type": "boolean" }
|
|
2146
2166
|
},
|
|
2167
|
+
{
|
|
2168
|
+
"name": "rating-max",
|
|
2169
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
2170
|
+
"value": { "type": "number" }
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
"name": "rating",
|
|
2174
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
2175
|
+
"value": { "type": "string | undefined" }
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
"name": "rating-count",
|
|
2179
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
2180
|
+
"value": { "type": "string | undefined" }
|
|
2181
|
+
},
|
|
2182
|
+
{
|
|
2183
|
+
"name": "total-count",
|
|
2184
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
2185
|
+
"value": { "type": "string | undefined" }
|
|
2186
|
+
},
|
|
2147
2187
|
{
|
|
2148
2188
|
"name": "label",
|
|
2149
2189
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -2232,6 +2272,26 @@
|
|
|
2232
2272
|
"name": "_is-filter-select-all-item",
|
|
2233
2273
|
"value": { "type": "boolean | undefined", "default": "false" }
|
|
2234
2274
|
},
|
|
2275
|
+
{
|
|
2276
|
+
"name": "rating-max",
|
|
2277
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
2278
|
+
"value": { "type": "number", "default": "5" }
|
|
2279
|
+
},
|
|
2280
|
+
{
|
|
2281
|
+
"name": "rating",
|
|
2282
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
2283
|
+
"value": { "type": "string | undefined" }
|
|
2284
|
+
},
|
|
2285
|
+
{
|
|
2286
|
+
"name": "rating-count",
|
|
2287
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
2288
|
+
"value": { "type": "string | undefined" }
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
"name": "total-count",
|
|
2292
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
2293
|
+
"value": { "type": "string | undefined" }
|
|
2294
|
+
},
|
|
2235
2295
|
{
|
|
2236
2296
|
"name": "label",
|
|
2237
2297
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -2319,6 +2379,26 @@
|
|
|
2319
2379
|
"name": "_is-filter-select-all-item",
|
|
2320
2380
|
"value": { "type": "boolean | undefined" }
|
|
2321
2381
|
},
|
|
2382
|
+
{
|
|
2383
|
+
"name": "rating-max",
|
|
2384
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
2385
|
+
"value": { "type": "number" }
|
|
2386
|
+
},
|
|
2387
|
+
{
|
|
2388
|
+
"name": "rating",
|
|
2389
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
2390
|
+
"value": { "type": "string | undefined" }
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
"name": "rating-count",
|
|
2394
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
2395
|
+
"value": { "type": "string | undefined" }
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
"name": "total-count",
|
|
2399
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
2400
|
+
"value": { "type": "string | undefined" }
|
|
2401
|
+
},
|
|
2322
2402
|
{
|
|
2323
2403
|
"name": "label",
|
|
2324
2404
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -2408,6 +2488,26 @@
|
|
|
2408
2488
|
"description": "Defines non-interactive the group header.",
|
|
2409
2489
|
"value": { "type": "boolean", "default": "false" }
|
|
2410
2490
|
},
|
|
2491
|
+
{
|
|
2492
|
+
"name": "rating-max",
|
|
2493
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
2494
|
+
"value": { "type": "number", "default": "5" }
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
"name": "rating",
|
|
2498
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
2499
|
+
"value": { "type": "string | undefined" }
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
"name": "rating-count",
|
|
2503
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
2504
|
+
"value": { "type": "string | undefined" }
|
|
2505
|
+
},
|
|
2506
|
+
{
|
|
2507
|
+
"name": "total-count",
|
|
2508
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
2509
|
+
"value": { "type": "string | undefined" }
|
|
2510
|
+
},
|
|
2411
2511
|
{
|
|
2412
2512
|
"name": "label",
|
|
2413
2513
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -2502,6 +2602,26 @@
|
|
|
2502
2602
|
"description": "Defines non-interactive the group header.",
|
|
2503
2603
|
"value": { "type": "boolean" }
|
|
2504
2604
|
},
|
|
2605
|
+
{
|
|
2606
|
+
"name": "rating-max",
|
|
2607
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
2608
|
+
"value": { "type": "number" }
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
"name": "rating",
|
|
2612
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
2613
|
+
"value": { "type": "string | undefined" }
|
|
2614
|
+
},
|
|
2615
|
+
{
|
|
2616
|
+
"name": "rating-count",
|
|
2617
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
2618
|
+
"value": { "type": "string | undefined" }
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
"name": "total-count",
|
|
2622
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
2623
|
+
"value": { "type": "string | undefined" }
|
|
2624
|
+
},
|
|
2505
2625
|
{
|
|
2506
2626
|
"name": "label",
|
|
2507
2627
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -3696,6 +3816,26 @@
|
|
|
3696
3816
|
"description": "Defines non-interactive the group header.",
|
|
3697
3817
|
"value": { "type": "boolean", "default": "false" }
|
|
3698
3818
|
},
|
|
3819
|
+
{
|
|
3820
|
+
"name": "rating-max",
|
|
3821
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
3822
|
+
"value": { "type": "number", "default": "5" }
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
"name": "rating",
|
|
3826
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
3827
|
+
"value": { "type": "string | undefined" }
|
|
3828
|
+
},
|
|
3829
|
+
{
|
|
3830
|
+
"name": "rating-count",
|
|
3831
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
3832
|
+
"value": { "type": "string | undefined" }
|
|
3833
|
+
},
|
|
3834
|
+
{
|
|
3835
|
+
"name": "total-count",
|
|
3836
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
3837
|
+
"value": { "type": "string | undefined" }
|
|
3838
|
+
},
|
|
3699
3839
|
{
|
|
3700
3840
|
"name": "label",
|
|
3701
3841
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -3794,6 +3934,26 @@
|
|
|
3794
3934
|
"description": "Defines non-interactive the group header.",
|
|
3795
3935
|
"value": { "type": "boolean" }
|
|
3796
3936
|
},
|
|
3937
|
+
{
|
|
3938
|
+
"name": "rating-max",
|
|
3939
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
3940
|
+
"value": { "type": "number" }
|
|
3941
|
+
},
|
|
3942
|
+
{
|
|
3943
|
+
"name": "rating",
|
|
3944
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
3945
|
+
"value": { "type": "string | undefined" }
|
|
3946
|
+
},
|
|
3947
|
+
{
|
|
3948
|
+
"name": "rating-count",
|
|
3949
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
3950
|
+
"value": { "type": "string | undefined" }
|
|
3951
|
+
},
|
|
3952
|
+
{
|
|
3953
|
+
"name": "total-count",
|
|
3954
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
3955
|
+
"value": { "type": "string | undefined" }
|
|
3956
|
+
},
|
|
3797
3957
|
{
|
|
3798
3958
|
"name": "label",
|
|
3799
3959
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -3949,6 +4109,26 @@
|
|
|
3949
4109
|
"description": "Defines the role attribute of component",
|
|
3950
4110
|
"value": { "type": "string", "default": "\"\"" }
|
|
3951
4111
|
},
|
|
4112
|
+
{
|
|
4113
|
+
"name": "rating-max",
|
|
4114
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
4115
|
+
"value": { "type": "number", "default": "5" }
|
|
4116
|
+
},
|
|
4117
|
+
{
|
|
4118
|
+
"name": "rating",
|
|
4119
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
4120
|
+
"value": { "type": "string | undefined" }
|
|
4121
|
+
},
|
|
4122
|
+
{
|
|
4123
|
+
"name": "rating-count",
|
|
4124
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
4125
|
+
"value": { "type": "string | undefined" }
|
|
4126
|
+
},
|
|
4127
|
+
{
|
|
4128
|
+
"name": "total-count",
|
|
4129
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
4130
|
+
"value": { "type": "string | undefined" }
|
|
4131
|
+
},
|
|
3952
4132
|
{
|
|
3953
4133
|
"name": "label",
|
|
3954
4134
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -4104,6 +4284,26 @@
|
|
|
4104
4284
|
"description": "Defines the role attribute of component",
|
|
4105
4285
|
"value": { "type": "string" }
|
|
4106
4286
|
},
|
|
4287
|
+
{
|
|
4288
|
+
"name": "rating-max",
|
|
4289
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
4290
|
+
"value": { "type": "number" }
|
|
4291
|
+
},
|
|
4292
|
+
{
|
|
4293
|
+
"name": "rating",
|
|
4294
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
4295
|
+
"value": { "type": "string | undefined" }
|
|
4296
|
+
},
|
|
4297
|
+
{
|
|
4298
|
+
"name": "rating-count",
|
|
4299
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
4300
|
+
"value": { "type": "string | undefined" }
|
|
4301
|
+
},
|
|
4302
|
+
{
|
|
4303
|
+
"name": "total-count",
|
|
4304
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
4305
|
+
"value": { "type": "string | undefined" }
|
|
4306
|
+
},
|
|
4107
4307
|
{
|
|
4108
4308
|
"name": "label",
|
|
4109
4309
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -4201,6 +4401,26 @@
|
|
|
4201
4401
|
"description": "Defines non-interactive the group header.",
|
|
4202
4402
|
"value": { "type": "boolean", "default": "false" }
|
|
4203
4403
|
},
|
|
4404
|
+
{
|
|
4405
|
+
"name": "rating-max",
|
|
4406
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
4407
|
+
"value": { "type": "number", "default": "5" }
|
|
4408
|
+
},
|
|
4409
|
+
{
|
|
4410
|
+
"name": "rating",
|
|
4411
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
4412
|
+
"value": { "type": "string | undefined" }
|
|
4413
|
+
},
|
|
4414
|
+
{
|
|
4415
|
+
"name": "rating-count",
|
|
4416
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
4417
|
+
"value": { "type": "string | undefined" }
|
|
4418
|
+
},
|
|
4419
|
+
{
|
|
4420
|
+
"name": "total-count",
|
|
4421
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
4422
|
+
"value": { "type": "string | undefined" }
|
|
4423
|
+
},
|
|
4204
4424
|
{
|
|
4205
4425
|
"name": "label",
|
|
4206
4426
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -4299,6 +4519,26 @@
|
|
|
4299
4519
|
"description": "Defines non-interactive the group header.",
|
|
4300
4520
|
"value": { "type": "boolean" }
|
|
4301
4521
|
},
|
|
4522
|
+
{
|
|
4523
|
+
"name": "rating-max",
|
|
4524
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
4525
|
+
"value": { "type": "number" }
|
|
4526
|
+
},
|
|
4527
|
+
{
|
|
4528
|
+
"name": "rating",
|
|
4529
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
4530
|
+
"value": { "type": "string | undefined" }
|
|
4531
|
+
},
|
|
4532
|
+
{
|
|
4533
|
+
"name": "rating-count",
|
|
4534
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
4535
|
+
"value": { "type": "string | undefined" }
|
|
4536
|
+
},
|
|
4537
|
+
{
|
|
4538
|
+
"name": "total-count",
|
|
4539
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
4540
|
+
"value": { "type": "string | undefined" }
|
|
4541
|
+
},
|
|
4302
4542
|
{
|
|
4303
4543
|
"name": "label",
|
|
4304
4544
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -7323,6 +7563,26 @@
|
|
|
7323
7563
|
"description": "Defines non-interactive the group header.",
|
|
7324
7564
|
"value": { "type": "boolean", "default": "false" }
|
|
7325
7565
|
},
|
|
7566
|
+
{
|
|
7567
|
+
"name": "rating-max",
|
|
7568
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
7569
|
+
"value": { "type": "number", "default": "5" }
|
|
7570
|
+
},
|
|
7571
|
+
{
|
|
7572
|
+
"name": "rating",
|
|
7573
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
7574
|
+
"value": { "type": "string | undefined" }
|
|
7575
|
+
},
|
|
7576
|
+
{
|
|
7577
|
+
"name": "rating-count",
|
|
7578
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
7579
|
+
"value": { "type": "string | undefined" }
|
|
7580
|
+
},
|
|
7581
|
+
{
|
|
7582
|
+
"name": "total-count",
|
|
7583
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
7584
|
+
"value": { "type": "string | undefined" }
|
|
7585
|
+
},
|
|
7326
7586
|
{
|
|
7327
7587
|
"name": "divider",
|
|
7328
7588
|
"description": "Defines whether a visual separator should be rendered after the item.",
|
|
@@ -7417,6 +7677,26 @@
|
|
|
7417
7677
|
"description": "Defines non-interactive the group header.",
|
|
7418
7678
|
"value": { "type": "boolean" }
|
|
7419
7679
|
},
|
|
7680
|
+
{
|
|
7681
|
+
"name": "rating-max",
|
|
7682
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
7683
|
+
"value": { "type": "number" }
|
|
7684
|
+
},
|
|
7685
|
+
{
|
|
7686
|
+
"name": "rating",
|
|
7687
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
7688
|
+
"value": { "type": "string | undefined" }
|
|
7689
|
+
},
|
|
7690
|
+
{
|
|
7691
|
+
"name": "rating-count",
|
|
7692
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
7693
|
+
"value": { "type": "string | undefined" }
|
|
7694
|
+
},
|
|
7695
|
+
{
|
|
7696
|
+
"name": "total-count",
|
|
7697
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
7698
|
+
"value": { "type": "string | undefined" }
|
|
7699
|
+
},
|
|
7420
7700
|
{
|
|
7421
7701
|
"name": "divider",
|
|
7422
7702
|
"description": "Defines whether a visual separator should be rendered after the item.",
|
|
@@ -7509,6 +7789,26 @@
|
|
|
7509
7789
|
"default": "\"None\""
|
|
7510
7790
|
}
|
|
7511
7791
|
},
|
|
7792
|
+
{
|
|
7793
|
+
"name": "rating-max",
|
|
7794
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
7795
|
+
"value": { "type": "number", "default": "5" }
|
|
7796
|
+
},
|
|
7797
|
+
{
|
|
7798
|
+
"name": "rating",
|
|
7799
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
7800
|
+
"value": { "type": "string | undefined" }
|
|
7801
|
+
},
|
|
7802
|
+
{
|
|
7803
|
+
"name": "rating-count",
|
|
7804
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
7805
|
+
"value": { "type": "string | undefined" }
|
|
7806
|
+
},
|
|
7807
|
+
{
|
|
7808
|
+
"name": "total-count",
|
|
7809
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
7810
|
+
"value": { "type": "string | undefined" }
|
|
7811
|
+
},
|
|
7512
7812
|
{
|
|
7513
7813
|
"name": "label",
|
|
7514
7814
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -7609,6 +7909,26 @@
|
|
|
7609
7909
|
"type": "\"Information\" | \"Warning\" | \"None\" | \"Success\" | \"Error\""
|
|
7610
7910
|
}
|
|
7611
7911
|
},
|
|
7912
|
+
{
|
|
7913
|
+
"name": "rating-max",
|
|
7914
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
7915
|
+
"value": { "type": "number" }
|
|
7916
|
+
},
|
|
7917
|
+
{
|
|
7918
|
+
"name": "rating",
|
|
7919
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
7920
|
+
"value": { "type": "string | undefined" }
|
|
7921
|
+
},
|
|
7922
|
+
{
|
|
7923
|
+
"name": "rating-count",
|
|
7924
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
7925
|
+
"value": { "type": "string | undefined" }
|
|
7926
|
+
},
|
|
7927
|
+
{
|
|
7928
|
+
"name": "total-count",
|
|
7929
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
7930
|
+
"value": { "type": "string | undefined" }
|
|
7931
|
+
},
|
|
7612
7932
|
{
|
|
7613
7933
|
"name": "label",
|
|
7614
7934
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -7698,6 +8018,26 @@
|
|
|
7698
8018
|
"description": "Defines non-interactive the group header.",
|
|
7699
8019
|
"value": { "type": "boolean", "default": "false" }
|
|
7700
8020
|
},
|
|
8021
|
+
{
|
|
8022
|
+
"name": "rating-max",
|
|
8023
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
8024
|
+
"value": { "type": "number", "default": "5" }
|
|
8025
|
+
},
|
|
8026
|
+
{
|
|
8027
|
+
"name": "rating",
|
|
8028
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
8029
|
+
"value": { "type": "string | undefined" }
|
|
8030
|
+
},
|
|
8031
|
+
{
|
|
8032
|
+
"name": "rating-count",
|
|
8033
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
8034
|
+
"value": { "type": "string | undefined" }
|
|
8035
|
+
},
|
|
8036
|
+
{
|
|
8037
|
+
"name": "total-count",
|
|
8038
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
8039
|
+
"value": { "type": "string | undefined" }
|
|
8040
|
+
},
|
|
7701
8041
|
{
|
|
7702
8042
|
"name": "label",
|
|
7703
8043
|
"description": "Defines the <code>label</code> for the item.",
|
|
@@ -7792,6 +8132,26 @@
|
|
|
7792
8132
|
"description": "Defines non-interactive the group header.",
|
|
7793
8133
|
"value": { "type": "boolean" }
|
|
7794
8134
|
},
|
|
8135
|
+
{
|
|
8136
|
+
"name": "rating-max",
|
|
8137
|
+
"description": "Defines the number of displayed rating symbols.",
|
|
8138
|
+
"value": { "type": "number" }
|
|
8139
|
+
},
|
|
8140
|
+
{
|
|
8141
|
+
"name": "rating",
|
|
8142
|
+
"description": "Defines the value of the rating.\nUse for rating indicator to represent aggregated review scores within list items",
|
|
8143
|
+
"value": { "type": "string | undefined" }
|
|
8144
|
+
},
|
|
8145
|
+
{
|
|
8146
|
+
"name": "rating-count",
|
|
8147
|
+
"description": "Defines the number of the rating.\nUse for the rating indicator",
|
|
8148
|
+
"value": { "type": "string | undefined" }
|
|
8149
|
+
},
|
|
8150
|
+
{
|
|
8151
|
+
"name": "total-count",
|
|
8152
|
+
"description": "The number of total votes.\nUse for the rating indicator",
|
|
8153
|
+
"value": { "type": "string | undefined" }
|
|
8154
|
+
},
|
|
7795
8155
|
{
|
|
7796
8156
|
"name": "label",
|
|
7797
8157
|
"description": "Defines the <code>label</code> for the item.",
|
package/package.json
CHANGED
package/src/ListItem.hbs
CHANGED
|
@@ -89,6 +89,18 @@
|
|
|
89
89
|
<span class="udex-list__supporting-text" part="supporting">{{supportingText}}</span>
|
|
90
90
|
{{/if}}
|
|
91
91
|
<slot part="content"></slot>
|
|
92
|
+
{{#if hasRating}}
|
|
93
|
+
<udex-rating-indicator
|
|
94
|
+
aria-label="{{ratingAriaLabel}}"
|
|
95
|
+
value="{{rating}}"
|
|
96
|
+
rating-count="{{ratingCount}}"
|
|
97
|
+
total-count="{{totalCount}}"
|
|
98
|
+
max="{{ratingMax}}"
|
|
99
|
+
display="{{_displayRating}}"
|
|
100
|
+
disabled
|
|
101
|
+
readonly>
|
|
102
|
+
</udex-rating-indicator>
|
|
103
|
+
{{/if}}
|
|
92
104
|
</div>
|
|
93
105
|
{{#if additionalText}}<div class="udex-list__add-text" part="additional-text">{{additionalText}}</div>{{/if}}
|
|
94
106
|
<div class="udex-list__btn-wrap">
|
|
@@ -103,6 +115,18 @@
|
|
|
103
115
|
<div class="udex-list__text-holder">
|
|
104
116
|
<slot part="content"></slot>
|
|
105
117
|
{{#if supportingText}}<span class="udex-list__supporting-text" part="supporting">{{supportingText}}</span>{{/if}}
|
|
118
|
+
{{#if hasRating}}
|
|
119
|
+
<udex-rating-indicator
|
|
120
|
+
aria-label="{{ratingAriaLabel}}"
|
|
121
|
+
value="{{rating}}"
|
|
122
|
+
rating-count="{{ratingCount}}"
|
|
123
|
+
total-count="{{totalCount}}"
|
|
124
|
+
max="{{ratingMax}}"
|
|
125
|
+
display="{{_displayRating}}"
|
|
126
|
+
disabled
|
|
127
|
+
readonly>
|
|
128
|
+
</udex-rating-indicator>
|
|
129
|
+
{{/if}}
|
|
106
130
|
</div>
|
|
107
131
|
{{#if additionalText}}<div class="udex-list__add-text" part="additional-text">{{additionalText}}</div>{{/if}}
|
|
108
132
|
<div class="udex-list__btn-wrap">
|
|
@@ -130,7 +154,7 @@
|
|
|
130
154
|
</div>
|
|
131
155
|
{{/if}}
|
|
132
156
|
</div>
|
|
133
|
-
|
|
134
|
-
|
|
157
|
+
<div class="hidden" id="{{this._id}}-invisibleText">{{accessibleListItemName}}</div>
|
|
158
|
+
<div class="hidden" id="{{this._id}}-invisibleText-describedby">{{itemState}}</div>
|
|
135
159
|
</div>
|
|
136
160
|
{{/inline}}
|
package/src/ListItem.ts
CHANGED
|
@@ -13,13 +13,14 @@ import type UDExListGroupHeaderBase from "./ListGroupHeaderBase.js";
|
|
|
13
13
|
import UDExAvatar, { UDExAvatarShape, UDExAvatarSize } from "./Avatar.js";
|
|
14
14
|
import UDExButton from "./Button.js";
|
|
15
15
|
import UDExStatusBadge from "./StatusBadge.js";
|
|
16
|
+
import UDExRatingIndicator, { UDExDisplayType } from "./RatingIndicator.js";
|
|
16
17
|
import type UDExStatusBadgeValueState from "./types/StatusBadgeValueState.js";
|
|
17
18
|
import { UDExListItemSize, UDExListMode, UDExAdditionalTextState } from "./types/List.js";
|
|
18
19
|
import UDExRadioButton from "./RadioButton.js";
|
|
19
20
|
import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js";
|
|
20
21
|
import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
|
|
21
22
|
import {
|
|
22
|
-
INDETERMINATE, SELECTED, UNSELECTED,
|
|
23
|
+
INDETERMINATE, SELECTED, UNSELECTED, RATING_INDICATOR_TEXT, RATING_COUNT_TITLE, TOTAL,
|
|
23
24
|
} from "./generated/i18n/i18n-defaults.js";
|
|
24
25
|
import translate from "./utils/translate.js";
|
|
25
26
|
|
|
@@ -71,6 +72,7 @@ type UDExListItemItemPressEventDetail = {
|
|
|
71
72
|
UDExRadioButton,
|
|
72
73
|
UDExCheckbox,
|
|
73
74
|
UDExStatusBadge,
|
|
75
|
+
UDExRatingIndicator,
|
|
74
76
|
Icon,
|
|
75
77
|
],
|
|
76
78
|
})
|
|
@@ -235,6 +237,8 @@ class UDExListItem extends UDExListItemBase {
|
|
|
235
237
|
@property({ type: String })
|
|
236
238
|
_additionalClassName!: string;
|
|
237
239
|
|
|
240
|
+
_displayRating: UDExDisplayType = UDExDisplayType.Desktop;
|
|
241
|
+
|
|
238
242
|
deactivate: () => void;
|
|
239
243
|
|
|
240
244
|
@i18n("@sapudex/web-components")
|
|
@@ -402,6 +406,13 @@ class UDExListItem extends UDExListItemBase {
|
|
|
402
406
|
get itemState(): string {
|
|
403
407
|
return this.selected ? "Selected" : "Not selected";
|
|
404
408
|
}
|
|
409
|
+
|
|
410
|
+
get ratingAriaLabel(): string {
|
|
411
|
+
const ratingText = this.ratingCount ? `${translate(UDExListItem, RATING_COUNT_TITLE)} ${this.ratingCount}` : "";
|
|
412
|
+
const totalText = this.totalCount ? `${translate(UDExListItem, TOTAL)} ${this.totalCount}` : "";
|
|
413
|
+
const ratingTitleText = translate(UDExListItem, RATING_INDICATOR_TEXT);
|
|
414
|
+
return [...[ratingText, totalText].filter(Boolean), `${ratingTitleText} ${this.rating} of ${this.ratingMax}`].join(", ");
|
|
415
|
+
}
|
|
405
416
|
}
|
|
406
417
|
|
|
407
418
|
UDExListItem.define();
|
package/src/ListItemBase.ts
CHANGED
|
@@ -70,6 +70,42 @@ type UDExListItemBaseAccordionClickEventDetail = {
|
|
|
70
70
|
class UDExListItemBase extends UI5Element {
|
|
71
71
|
eventDetails!: UDExListItemBaseEvents;
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Defines the number of displayed rating symbols.
|
|
75
|
+
*
|
|
76
|
+
* @default 5
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
@property({ type: Number })
|
|
80
|
+
ratingMax: number = 5;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Defines the value of the rating.
|
|
84
|
+
* Use for rating indicator to represent aggregated review scores within list items
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
@property({ type: String })
|
|
89
|
+
rating?: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Defines the number of the rating.
|
|
93
|
+
* Use for the rating indicator
|
|
94
|
+
*
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
@property({ type: String })
|
|
98
|
+
ratingCount?: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The number of total votes.
|
|
102
|
+
* Use for the rating indicator
|
|
103
|
+
*
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
@property({ type: String })
|
|
107
|
+
totalCount?: string;
|
|
108
|
+
|
|
73
109
|
/**
|
|
74
110
|
* Defines the <code>label</code> for the item.
|
|
75
111
|
*
|
|
@@ -313,6 +349,10 @@ class UDExListItemBase extends UI5Element {
|
|
|
313
349
|
get expanded(): boolean {
|
|
314
350
|
return !this.collapsed;
|
|
315
351
|
}
|
|
352
|
+
|
|
353
|
+
get hasRating(): boolean {
|
|
354
|
+
return !!this.rating;
|
|
355
|
+
}
|
|
316
356
|
}
|
|
317
357
|
|
|
318
358
|
export default UDExListItemBase;
|