@sapudex/web-components 2.26.0 → 2.28.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/config/dev-server.mjs +8 -0
- package/cypress/specs/RatingIndicator.cy.tsx +6 -5
- package/cypress/specs/TabNavigation.cy.tsx +1024 -0
- package/cypress/support/component-imports.src.ts +4 -0
- package/dist/RatingIndicator.d.ts +7 -0
- package/dist/RatingIndicator.js +10 -5
- package/dist/RatingIndicator.js.map +1 -1
- package/dist/RatingIndicatorTemplate.js +16 -4
- package/dist/RatingIndicatorTemplate.js.map +1 -1
- package/dist/Review.js +1 -1
- package/dist/Review.js.map +1 -1
- package/dist/SelectBase.d.ts +2 -0
- package/dist/SelectBase.js +6 -1
- package/dist/SelectBase.js.map +1 -1
- package/dist/Tab.d.ts +57 -0
- package/dist/Tab.js +67 -0
- package/dist/Tab.js.map +1 -1
- package/dist/TabNavigation.d.ts +25 -3
- package/dist/TabNavigation.js +96 -18
- package/dist/TabNavigation.js.map +1 -1
- package/dist/assets/{InputSuggestions-CG5owMFQ.js → InputSuggestions-DTdaDbps.js} +1 -1
- package/dist/assets/{ListItemStandardExpandableTextTemplate-DpVr7qdn.js → ListItemStandardExpandableTextTemplate-DoV7tVwi.js} +1 -1
- package/dist/assets/{bundle.esm-CTkLMr6f.js → bundle.esm-BUg2IPOZ.js} +218 -218
- package/dist/assets/messagebundle_en-DfoXjU7o.js +1 -0
- package/dist/css/themes/Checkbox.css +1 -1
- package/dist/css/themes/RatingIndicator.css +1 -1
- package/dist/css/themes/Review.css +1 -1
- package/dist/css/themes/ReviewItem.css +1 -1
- package/dist/css/themes/Slider.css +1 -1
- package/dist/css/themes/TabNavigation.css +1 -1
- package/dist/custom-elements-internal.json +68 -0
- package/dist/custom-elements.json +64 -0
- package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
- package/dist/generated/i18n/i18n-defaults.d.ts +2 -1
- package/dist/generated/i18n/i18n-defaults.js +2 -1
- package/dist/generated/i18n/i18n-defaults.js.map +1 -1
- package/dist/generated/templates/TabHeaderTemplate.lit.js +30 -11
- package/dist/generated/templates/TabHeaderTemplate.lit.js.map +1 -1
- package/dist/generated/templates/TabNavigationTemplate.lit.js +8 -6
- package/dist/generated/templates/TabNavigationTemplate.lit.js.map +1 -1
- package/dist/generated/themes/Checkbox.css.d.ts +1 -1
- package/dist/generated/themes/Checkbox.css.js +1 -1
- package/dist/generated/themes/Checkbox.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/Review.css.d.ts +1 -1
- package/dist/generated/themes/Review.css.js +1 -1
- package/dist/generated/themes/Review.css.js.map +1 -1
- package/dist/generated/themes/ReviewItem.css.d.ts +1 -1
- package/dist/generated/themes/ReviewItem.css.js +1 -1
- package/dist/generated/themes/ReviewItem.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/generated/themes/TabNavigation.css.d.ts +1 -1
- package/dist/generated/themes/TabNavigation.css.js +1 -1
- package/dist/generated/themes/TabNavigation.css.js.map +1 -1
- package/dist/messagebundle.properties +1 -0
- package/dist/messagebundle_en.properties +1 -0
- package/dist/vscode.html-custom-data.json +16 -1
- package/dist/web-types.json +39 -2
- package/package.json +1 -1
- package/src/RatingIndicator.ts +18 -6
- package/src/RatingIndicatorTemplate.tsx +37 -9
- package/src/Review.ts +1 -1
- package/src/SelectBase.ts +8 -1
- package/src/Tab.ts +98 -0
- package/src/TabHeader.hbs +85 -33
- package/src/TabNavigation.hbs +16 -0
- package/src/TabNavigation.ts +109 -21
- package/src/generated/i18n/i18n-defaults.ts +2 -2
- package/src/generated/templates/TabHeaderTemplate.lit.ts +29 -10
- package/src/generated/templates/TabNavigationTemplate.lit.ts +8 -6
- package/src/generated/themes/Checkbox.css.ts +1 -1
- package/src/generated/themes/RatingIndicator.css.ts +1 -1
- package/src/generated/themes/Review.css.ts +1 -1
- package/src/generated/themes/ReviewItem.css.ts +1 -1
- package/src/generated/themes/Slider.css.ts +1 -1
- package/src/generated/themes/TabNavigation.css.ts +1 -1
- package/src/i18n/messagebundle.properties +1 -0
- package/src/i18n/messagebundle_en.properties +1 -0
- package/src/themes/Checkbox.css +9 -4
- package/src/themes/RatingIndicator.css +24 -9
- package/src/themes/Review.css +24 -31
- package/src/themes/ReviewItem.css +10 -11
- package/src/themes/TabNavigation.css +203 -1
- package/dist/assets/messagebundle_en-mjqY85LY.js +0 -1
package/config/dev-server.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import fs from "fs/promises";
|
|
|
2
2
|
import { createServer } from 'vite';
|
|
3
3
|
import yargs from 'yargs';
|
|
4
4
|
import { hideBin } from 'yargs/helpers';
|
|
5
|
+
import { pathToFileURL } from "url";
|
|
5
6
|
|
|
6
7
|
const startVite = async (config, port) => {
|
|
7
8
|
const server = await createServer({
|
|
@@ -65,6 +66,13 @@ async function start(outArgv) {
|
|
|
65
66
|
}
|
|
66
67
|
};
|
|
67
68
|
|
|
69
|
+
const filePath = process.argv[1];
|
|
70
|
+
const fileUrl = pathToFileURL(filePath).href;
|
|
71
|
+
|
|
72
|
+
if (import.meta.url === fileUrl) {
|
|
73
|
+
start(process.argv)
|
|
74
|
+
}
|
|
75
|
+
|
|
68
76
|
export default {
|
|
69
77
|
_ui5mainFn: start
|
|
70
78
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UDExRatingIndicator } from "../support/component-imports.js";
|
|
2
2
|
|
|
3
|
+
const ratingCount = 2.5;
|
|
3
4
|
const totalCount = 100;
|
|
4
5
|
const ratingValue = 2.5;
|
|
5
6
|
const newValue = 4;
|
|
@@ -7,7 +8,7 @@ const maxSymbols = 10;
|
|
|
7
8
|
const displayType = "Mobile";
|
|
8
9
|
const accName = "test";
|
|
9
10
|
|
|
10
|
-
const ratingIndicator = <UDExRatingIndicator total-count={totalCount} value={ratingValue} max={maxSymbols} display={displayType} accessible-name={accName}></UDExRatingIndicator>
|
|
11
|
+
const ratingIndicator = <UDExRatingIndicator total-count={totalCount} ratingCount={ratingCount} value={ratingValue} max={maxSymbols} display={displayType} accessible-name={accName}></UDExRatingIndicator>
|
|
11
12
|
const disabledRatingIndicator = <UDExRatingIndicator value={ratingValue} disabled></UDExRatingIndicator>
|
|
12
13
|
|
|
13
14
|
describe("Rating Indicator", () => {
|
|
@@ -32,8 +33,8 @@ describe("Rating Indicator", () => {
|
|
|
32
33
|
cy.get("[udex-rating-indicator]").shadow().find(".udex-rating-indicator__item").should("have.length", maxSymbols);
|
|
33
34
|
});
|
|
34
35
|
|
|
35
|
-
it("renders with total count", () => {
|
|
36
|
-
cy.get("[udex-rating-indicator]").shadow().find(".udex-rating-indicator__total").should("have.text",
|
|
36
|
+
it("renders with total count and rating count", () => {
|
|
37
|
+
cy.get("[udex-rating-indicator]").shadow().find(".udex-rating-indicator__total").should("have.text", `${ratingValue} (${totalCount})`);
|
|
37
38
|
});
|
|
38
39
|
|
|
39
40
|
it("renders with mobile display", () => {
|
|
@@ -41,7 +42,7 @@ describe("Rating Indicator", () => {
|
|
|
41
42
|
});
|
|
42
43
|
|
|
43
44
|
it("renders with proper accessible name", () => {
|
|
44
|
-
cy.get("[udex-rating-indicator]").shadow().find(".udex-rating-indicator").should("have.attr", "aria-label", `${accName}, Total ${totalCount}`);
|
|
45
|
+
cy.get("[udex-rating-indicator]").shadow().find(".udex-rating-indicator").should("have.attr", "aria-label", `${accName}, Rating ${ratingValue}, Total ${totalCount}`);
|
|
45
46
|
});
|
|
46
47
|
|
|
47
48
|
it("renders disabled", () => {
|
|
@@ -71,4 +72,4 @@ describe("General interaction", () => {
|
|
|
71
72
|
cy.get("[udex-rating-indicator]").shadow().find(".udex-rating-indicator__item").eq(newValue).click();
|
|
72
73
|
cy.get("[udex-rating-indicator]").should("have.attr", "value", `${ratingValue}`);
|
|
73
74
|
});
|
|
74
|
-
});
|
|
75
|
+
});
|