whelk-ui 0.0.3 → 0.0.5
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 +4 -5
- package/dist/index.d.ts +50 -0
- package/dist/index.html +12 -0
- package/dist/whelk-ui.css +1 -0
- package/dist/whelk-ui.js +48 -0
- package/dist/whelk-ui.umd.cjs +1 -0
- package/package.json +45 -9
- package/index.html +0 -16
- package/playwright.config.ts +0 -79
- package/src/App.vue +0 -28
- package/src/components/add_object/AddObject.vue +0 -40
- package/src/components/button/ButtonComponent.spec.ts +0 -11
- package/src/components/button/ButtonComponent.vue +0 -129
- package/src/components/card/CardComponent.vue +0 -14
- package/src/components/card/card_footer/CardFooter.vue +0 -19
- package/src/components/card/card_header/CardHeader.vue +0 -16
- package/src/components/check_box/CheckBox.vue +0 -42
- package/src/components/datetime/DatetimeComponent.vue +0 -147
- package/src/components/drop_down/DropDown.vue +0 -104
- package/src/components/drop_down/drop_down_item/DropDownItem.vue +0 -58
- package/src/components/form_group/FormGroup.spec.ts +0 -16
- package/src/components/form_group/FormGroup.vue +0 -19
- package/src/components/number_input/NumberInput.spec.ts +0 -712
- package/src/components/number_input/NumberInput.vue +0 -264
- package/src/components/password_input/PasswordInput.vue +0 -166
- package/src/components/render_error_message/RenderErrorMessage.spec.ts +0 -0
- package/src/components/render_error_message/RenderErrorMessage.vue +0 -32
- package/src/components/switch/SwitchComponent.vue +0 -152
- package/src/components/text_area/TextArea.vue +0 -151
- package/src/components/text_input/TextInput.vue +0 -178
- package/src/components/tool_tip/ToolTip.vue +0 -96
- package/src/main.ts +0 -6
- package/src/styles/main.css +0 -1
- package/src/styles/partials/_general_variables.css +0 -74
- package/src/utils/enums/ObjectStateEnum.ts +0 -13
- package/src/utils/enums/ObjectTitleCaseEnums.ts +0 -17
- package/src/utils/enums/ObjectTypeEnums.ts +0 -15
- package/src/utils/interfaces/DocumentItemInterface.ts +0 -5
- package/src/utils/interfaces/DropDownItemsInterface.ts +0 -8
- package/src/utils/interfaces/FolderItemInterface.ts +0 -4
- package/src/utils/interfaces/MenuItemInterface.ts +0 -10
- package/tests/example.spec.ts +0 -18
- package/tsconfig.app.json +0 -16
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -25
- package/vite.config.ts +0 -79
- /package/{public → dist}/vite.svg +0 -0
package/vite.config.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import {defineConfig} from 'vite'
|
|
2
|
-
import vue from '@vitejs/plugin-vue'
|
|
3
|
-
import postcssNesting from 'postcss-nesting'
|
|
4
|
-
import {resolve} from 'path'
|
|
5
|
-
import {playwright} from "@vitest/browser-playwright";
|
|
6
|
-
import {configDefaults} from "vitest/config";
|
|
7
|
-
import {fileURLToPath} from "node:url";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// https://vite.dev/config/
|
|
11
|
-
export default defineConfig({
|
|
12
|
-
build: {
|
|
13
|
-
cssCodeSplit: true,
|
|
14
|
-
lib: {
|
|
15
|
-
entry: {
|
|
16
|
-
addObject: resolve(__dirname, 'src/components/add_object/AddObject.vue'),
|
|
17
|
-
button: resolve(__dirname, 'src/components/button/ButtonComponent.vue'),
|
|
18
|
-
card: resolve(__dirname, 'src/components/card/CardComponent.vue'),
|
|
19
|
-
checkBox: resolve(__dirname, 'src/components/check_box/CheckBox.vue'),
|
|
20
|
-
datetime: resolve(__dirname, 'src/components/datetime/DatetimeComponent.vue'),
|
|
21
|
-
dropDown: resolve(__dirname, 'src/components/drop_down/DropDown.vue'),
|
|
22
|
-
formGroup: resolve(__dirname, 'src/components/form_group/FormGroup.vue'),
|
|
23
|
-
numberInput: resolve(__dirname, 'src/components/number_input/NumberInput.vue'),
|
|
24
|
-
passwordInput: resolve(__dirname, 'src/components/password_input/PasswordInput.vue'),
|
|
25
|
-
renderErrorMessage: resolve(__dirname, 'src/components/render_error_message/RenderErrorMessage.vue'),
|
|
26
|
-
switch: resolve(__dirname, 'src/components/switch/SwitchComponent.vue'),
|
|
27
|
-
textArea: resolve(__dirname, 'src/components/text_area/TextArea.vue'),
|
|
28
|
-
textInput: resolve(__dirname, 'src/components/text_input/TextInput.vue'),
|
|
29
|
-
toolTip: resolve(__dirname, 'src/components/tool_tip/ToolTip.vue'),
|
|
30
|
-
},
|
|
31
|
-
name: 'whelk-ui',
|
|
32
|
-
formats: ['es', 'cjs']
|
|
33
|
-
},
|
|
34
|
-
rollupOptions: {
|
|
35
|
-
external: ['vue'],
|
|
36
|
-
output: {
|
|
37
|
-
globals: {
|
|
38
|
-
vue: 'Vue',
|
|
39
|
-
},
|
|
40
|
-
preserveModules: true,
|
|
41
|
-
preserveModulesRoot: 'src'
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
css: {
|
|
46
|
-
postcss: {
|
|
47
|
-
plugins: [
|
|
48
|
-
postcssNesting,
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
plugins: [
|
|
53
|
-
vue(),
|
|
54
|
-
],
|
|
55
|
-
test: {
|
|
56
|
-
browser: {
|
|
57
|
-
enabled: true,
|
|
58
|
-
provider: playwright(),
|
|
59
|
-
instances: [
|
|
60
|
-
{browser: 'chromium'},
|
|
61
|
-
],
|
|
62
|
-
},
|
|
63
|
-
coverage: {
|
|
64
|
-
provider: 'v8',
|
|
65
|
-
exclude: [
|
|
66
|
-
'e2e/**',
|
|
67
|
-
'src/main.ts'
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
environment: 'jsdom',
|
|
71
|
-
exclude: [
|
|
72
|
-
...configDefaults.exclude,
|
|
73
|
-
'e2e/**'
|
|
74
|
-
],
|
|
75
|
-
root: fileURLToPath(
|
|
76
|
-
new URL('./', import.meta.url)
|
|
77
|
-
),
|
|
78
|
-
}
|
|
79
|
-
})
|
|
File without changes
|