@grucloud/bau-ui 0.301.0 → 0.303.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/accordion/accordion.js +36 -63
- package/alert/alert.js +14 -24
- package/alertStack/README.md +89 -0
- package/alertStack/alertStack.js +98 -28
- package/animate/animate.js +2 -0
- package/autocomplete/autocomplete.js +130 -164
- package/avatar/avatar.js +20 -25
- package/breadcrumbs/breadcrumbs.js +34 -30
- package/button/button.js +27 -41
- package/buttonGroup/buttonGroup.js +20 -27
- package/calendar/calendar.js +6 -12
- package/carousel/carousel.js +64 -47
- package/checkbox/checkbox.js +10 -13
- package/chip/chip.js +9 -0
- package/collapsible/collapsible.js +73 -47
- package/collapsible/index.d.ts +12 -1
- package/constants.d.ts +1 -0
- package/constants.js +4 -0
- package/divider/divider.js +1 -0
- package/drawer/drawer.js +48 -1
- package/drillDownMenu/drillDownMenu.js +90 -67
- package/dropdownMenu/dropdownMenu.js +29 -122
- package/fileInput/fileInput.js +4 -0
- package/globalStyle/globalStyle.js +75 -30
- package/input/input.js +35 -44
- package/inputSearch/inputSearch.js +26 -31
- package/lazy/lazy.js +8 -5
- package/linearProgress/linearProgress.js +12 -24
- package/list/list.js +2 -1
- package/loadingButton/loadingButton.js +29 -22
- package/modal/modal.js +38 -41
- package/multiSelect/multiSelect.js +84 -171
- package/package.json +13 -5
- package/paginationNavigation/paginationNavigation.js +8 -13
- package/popover/popover.js +5 -2
- package/radioButton/radioButton.js +10 -23
- package/radioButtonGroup/radioButtonGroup.js +15 -24
- package/resizable/resizable.js +74 -70
- package/select/select.js +84 -160
- package/selectNative/selectNative.js +2 -0
- package/slider/slider.js +6 -12
- package/spinner/spinner.js +37 -53
- package/stepper/stepper.js +23 -35
- package/switch/switch.js +28 -45
- package/tableOfContent/tableOfContent.js +55 -84
- package/tablePagination/tablePagination.js +39 -69
- package/tabs/tabs.js +95 -59
- package/textareaAutosize/textareaAutosize.js +13 -16
- package/themeSwitch/themeSwitch.js +27 -41
- package/toggle/index.d.ts +8 -1
- package/toggle/toggle.js +17 -9
- package/toggleGroup/toggleGroup.js +23 -28
- package/tooltip/tooltip.js +79 -94
- package/treeView/treeView.js +57 -25
- package/utils/control.js +20 -0
- package/utils/popupList.js +137 -0
- package/utils/urlChange.js +32 -0
- package/virtualList/index.d.ts +27 -0
- package/virtualList/index.js +1 -0
- package/virtualList/virtualList.js +111 -0
- package/vite.config.js +48 -0
package/vite.config.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import { playwright } from "@vitest/browser-playwright";
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
optimizeDeps: {
|
|
6
|
+
// Pre-bundle the coverage runtime, otherwise vite reloads the tests
|
|
7
|
+
// when it discovers it
|
|
8
|
+
include: ["@vitest/coverage-istanbul"],
|
|
9
|
+
},
|
|
10
|
+
test: {
|
|
11
|
+
coverage: {
|
|
12
|
+
// Instrumented with istanbul: v8 coverage merges the test files badly
|
|
13
|
+
// in browser mode
|
|
14
|
+
provider: "istanbul",
|
|
15
|
+
// The components; not the examples, the tests, the re-exports, or the
|
|
16
|
+
// login page, a placeholder
|
|
17
|
+
include: ["**/*.js"],
|
|
18
|
+
exclude: [
|
|
19
|
+
"examples/**",
|
|
20
|
+
"test/**",
|
|
21
|
+
"vite.config.js",
|
|
22
|
+
"**/index.js",
|
|
23
|
+
"pages/**",
|
|
24
|
+
],
|
|
25
|
+
reporter: ["text", "html", "lcov"],
|
|
26
|
+
// Fail when the coverage drops below 100%
|
|
27
|
+
thresholds: {
|
|
28
|
+
statements: 100,
|
|
29
|
+
branches: 100,
|
|
30
|
+
functions: 100,
|
|
31
|
+
lines: 100,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
include: ["test/**/*.test.js"],
|
|
35
|
+
// One file at a time: the files run in iframes of the same browser, which
|
|
36
|
+
// share the keyboard focus
|
|
37
|
+
fileParallelism: false,
|
|
38
|
+
browser: {
|
|
39
|
+
// Keyboard, focus, popovers and dialogs need a real browser: Playwright
|
|
40
|
+
// drives the installed Google Chrome
|
|
41
|
+
provider: playwright({ launchOptions: { channel: "chrome" } }),
|
|
42
|
+
enabled: true,
|
|
43
|
+
headless: true,
|
|
44
|
+
screenshotFailures: false,
|
|
45
|
+
instances: [{ browser: "chromium" }],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
});
|