@db-ux/v-core-components 4.5.4-table-c758ae7 → 4.5.4-tailwind-inline-5d37a00
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/README.md +50 -9
- package/dist/db-ux.es.js +4642 -4951
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +0 -16
- package/dist/shared/model.d.ts +2 -42
- package/package.json +6 -6
- package/dist/components/table/examples/data.d.ts +0 -9
- package/dist/components/table/index.d.ts +0 -1
- package/dist/components/table/model.d.ts +0 -74
- package/dist/components/table/table.vue.d.ts +0 -30
- package/dist/components/table-body/index.d.ts +0 -1
- package/dist/components/table-body/model.d.ts +0 -8
- package/dist/components/table-body/table-body.vue.d.ts +0 -20
- package/dist/components/table-caption/index.d.ts +0 -1
- package/dist/components/table-caption/model.d.ts +0 -5
- package/dist/components/table-caption/table-caption.vue.d.ts +0 -17
- package/dist/components/table-data-cell/index.d.ts +0 -1
- package/dist/components/table-data-cell/model.d.ts +0 -5
- package/dist/components/table-data-cell/table-data-cell.vue.d.ts +0 -25
- package/dist/components/table-footer/index.d.ts +0 -1
- package/dist/components/table-footer/model.d.ts +0 -8
- package/dist/components/table-footer/table-footer.vue.d.ts +0 -20
- package/dist/components/table-head/index.d.ts +0 -1
- package/dist/components/table-head/model.d.ts +0 -10
- package/dist/components/table-head/table-head.vue.d.ts +0 -20
- package/dist/components/table-header-cell/index.d.ts +0 -1
- package/dist/components/table-header-cell/model.d.ts +0 -24
- package/dist/components/table-header-cell/table-header-cell.vue.d.ts +0 -28
- package/dist/components/table-row/index.d.ts +0 -1
- package/dist/components/table-row/model.d.ts +0 -30
- package/dist/components/table-row/table-row.vue.d.ts +0 -21
package/README.md
CHANGED
|
@@ -49,14 +49,16 @@ import "@db-ux/core-components/build/styles/rollup.css";
|
|
|
49
49
|
|
|
50
50
|
</details>
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
### Vite 8
|
|
53
|
+
|
|
54
|
+
Starting with Vite 8, the default CSS minifier was changed to [LightningCSS](https://lightningcss.dev/), which provides buggy transformations for modern CSS features used by the DB UX Design System (e.g. `light-dark()` CSS function). To keep CSS output stable, configure `vite.config.ts` like this:
|
|
53
55
|
|
|
54
56
|
```ts
|
|
55
57
|
// vite.config.ts
|
|
56
58
|
export default defineConfig({
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
build: {
|
|
60
|
+
cssMinify: "esbuild"
|
|
61
|
+
}
|
|
60
62
|
});
|
|
61
63
|
```
|
|
62
64
|
|
|
@@ -71,11 +73,11 @@ import { browserslistToTargets } from "lightningcss";
|
|
|
71
73
|
import browserslist from "browserslist";
|
|
72
74
|
|
|
73
75
|
export default defineConfig({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
css: {
|
|
77
|
+
lightningcss: {
|
|
78
|
+
targets: browserslistToTargets(browserslist(">= 0.5%, last 2 major versions, Firefox ESR, not dead"))
|
|
79
|
+
}
|
|
80
|
+
}
|
|
79
81
|
});
|
|
80
82
|
```
|
|
81
83
|
|
|
@@ -141,6 +143,45 @@ This will create or update `.github/copilot-instructions.md` with component docu
|
|
|
141
143
|
|
|
142
144
|
📖 **[Learn more about `@db-ux/agent-cli` node package](packages/agent-cli/README.md)**
|
|
143
145
|
|
|
146
|
+
## Code Quality
|
|
147
|
+
|
|
148
|
+
To enforce correct usage of DB UX Design System components in your Vue project, we provide the [`@db-ux/core-eslint-plugin`](https://www.npmjs.com/package/@db-ux/core-eslint-plugin) ESLint plugin.
|
|
149
|
+
|
|
150
|
+
### Installation
|
|
151
|
+
|
|
152
|
+
```shell
|
|
153
|
+
npm install eslint @db-ux/core-eslint-plugin vue-eslint-parser @typescript-eslint/parser --save-dev
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Setup
|
|
157
|
+
|
|
158
|
+
```js
|
|
159
|
+
// eslint.config.js
|
|
160
|
+
import dbUx from "@db-ux/core-eslint-plugin";
|
|
161
|
+
import vueParser from "vue-eslint-parser";
|
|
162
|
+
import tsParser from "@typescript-eslint/parser";
|
|
163
|
+
|
|
164
|
+
export default [
|
|
165
|
+
{
|
|
166
|
+
files: ["**/*.vue"],
|
|
167
|
+
languageOptions: {
|
|
168
|
+
parser: vueParser,
|
|
169
|
+
parserOptions: {
|
|
170
|
+
parser: tsParser,
|
|
171
|
+
ecmaVersion: "latest",
|
|
172
|
+
sourceType: "module"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
plugins: {
|
|
176
|
+
"db-ux": dbUx
|
|
177
|
+
},
|
|
178
|
+
rules: dbUx.configs.recommended.rules
|
|
179
|
+
}
|
|
180
|
+
];
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
📖 **[Learn more about `@db-ux/core-eslint-plugin` node package](https://www.npmjs.com/package/@db-ux/core-eslint-plugin)**
|
|
184
|
+
|
|
144
185
|
## Deutsche Bahn brand
|
|
145
186
|
|
|
146
187
|
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even if being used with the code that we're providing with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
|