viur-ui 0.0.1
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 +79 -0
- package/index.d.ts +351 -0
- package/index.js +46 -0
- package/package.json +84 -0
- package/src/components/Browser/Browser.vue +496 -0
- package/src/components/Browser/TreeNav.vue +408 -0
- package/src/components/Browser/ViurBrowser.d.vue.ts +64 -0
- package/src/components/Browser/ViurBrowser.vue +271 -0
- package/src/components/Browser/dragSession.ts +134 -0
- package/src/components/Browser/index.ts +14 -0
- package/src/components/Browser/types.ts +30 -0
- package/src/components/DataTable/ColumnFilterPanel.vue +225 -0
- package/src/components/DataTable/DataTable.vue +3155 -0
- package/src/components/DataTable/ViurDataTable.d.vue.ts +72 -0
- package/src/components/DataTable/ViurDataTable.vue +331 -0
- package/src/components/DataTable/columns.ts +400 -0
- package/src/components/DataTable/index.ts +60 -0
- package/src/components/DataTable/rows.ts +446 -0
- package/src/components/DataTable/types.ts +267 -0
- package/src/components/DataTable/useColumnLayout.ts +294 -0
- package/src/components/DataTable/useGridNavigation.ts +193 -0
- package/src/components/DataTable/useVirtualRows.ts +126 -0
- package/src/components/DataTable/viurColumns.ts +330 -0
- package/src/forms/ViForm.d.vue.ts +106 -0
- package/src/forms/ViForm.vue +592 -0
- package/src/forms/ViFormCategory.vue +57 -0
- package/src/forms/bones/Bone.vue +1023 -0
- package/src/forms/bones/BoneActions.vue +127 -0
- package/src/forms/bones/BoneLabel.vue +122 -0
- package/src/forms/bones/BoneMultipleList.vue +91 -0
- package/src/forms/bones/BoneMultipleWrapper.vue +105 -0
- package/src/forms/bones/BoneNestedWrapper.vue +155 -0
- package/src/forms/bones/BoneSingleEntry.vue +51 -0
- package/src/forms/bones/FilterBone.vue +694 -0
- package/src/forms/bones/actionbar/defaultBar.vue +98 -0
- package/src/forms/bones/actionbar/fileBar.vue +165 -0
- package/src/forms/bones/actionbar/relationalBar.vue +125 -0
- package/src/forms/bones/actions/ActionDialog.vue +70 -0
- package/src/forms/bones/actions/Debug.vue +106 -0
- package/src/forms/bones/actions/Delete.vue +13 -0
- package/src/forms/bones/actions/DescribeImage.vue +201 -0
- package/src/forms/bones/actions/Download.vue +27 -0
- package/src/forms/bones/actions/Placeholder.vue +14 -0
- package/src/forms/bones/actions/Translation.vue +238 -0
- package/src/forms/bones/actions/index.js +280 -0
- package/src/forms/bones/bone.d.ts +45 -0
- package/src/forms/bones/country_information.json +779 -0
- package/src/forms/bones/index.js +225 -0
- package/src/forms/bones/uploadAdapter.js +46 -0
- package/src/forms/bones/utils.js +284 -0
- package/src/forms/bones/view/base_item.vue +35 -0
- package/src/forms/bones/view/boneLogic.js +202 -0
- package/src/forms/bones/view/index.js +5 -0
- package/src/forms/bones/widgets/booleanBone.vue +83 -0
- package/src/forms/bones/widgets/booleanBoneChoose.vue +57 -0
- package/src/forms/bones/widgets/booleanBoneSelect.vue +58 -0
- package/src/forms/bones/widgets/codeBone.vue +214 -0
- package/src/forms/bones/widgets/colorBone.vue +75 -0
- package/src/forms/bones/widgets/dateBone.vue +114 -0
- package/src/forms/bones/widgets/emailBone.vue +100 -0
- package/src/forms/bones/widgets/fileBone.vue +273 -0
- package/src/forms/bones/widgets/jsonBone.vue +63 -0
- package/src/forms/bones/widgets/keyBone.vue +71 -0
- package/src/forms/bones/widgets/numericBone.vue +125 -0
- package/src/forms/bones/widgets/passwordBone.vue +215 -0
- package/src/forms/bones/widgets/phoneBone.vue +173 -0
- package/src/forms/bones/widgets/rawBone.vue +94 -0
- package/src/forms/bones/widgets/recordBone.vue +64 -0
- package/src/forms/bones/widgets/relationalBone.vue +164 -0
- package/src/forms/bones/widgets/relationalBoneSelect.vue +120 -0
- package/src/forms/bones/widgets/selectBone.vue +122 -0
- package/src/forms/bones/widgets/selectBoneChoose.vue +104 -0
- package/src/forms/bones/widgets/spatialBone.vue +111 -0
- package/src/forms/bones/widgets/stringBone.vue +139 -0
- package/src/forms/bones/widgets/textBone.vue +641 -0
- package/src/forms/install.d.ts +4 -0
- package/src/forms/install.js +43 -0
- package/src/forms/layouts/LayloutList2Columns.vue +57 -0
- package/src/forms/layouts/LayoutCategory.vue +38 -0
- package/src/forms/layouts/LayoutList.vue +31 -0
- package/src/forms/utils.js +601 -0
- package/src/public/assets/icons/fontawesome-manifest.json +8 -0
- package/src/public/assets/icons/regular/file.svg +1 -0
- package/src/public/assets/icons/solid/arrows-left-right.svg +1 -0
- package/src/public/assets/icons/solid/bug.svg +1 -0
- package/src/public/assets/icons/solid/check.svg +1 -0
- package/src/public/assets/icons/solid/circle-info.svg +1 -0
- package/src/public/assets/icons/solid/compress.svg +1 -0
- package/src/public/assets/icons/solid/download.svg +1 -0
- package/src/public/assets/icons/solid/expand.svg +1 -0
- package/src/public/assets/icons/solid/grip-vertical.svg +1 -0
- package/src/public/assets/icons/solid/plus.svg +1 -0
- package/src/public/assets/icons/solid/question.svg +1 -0
- package/src/public/assets/icons/solid/triangle-exclamation.svg +1 -0
- package/src/public/assets/icons/solid/upload.svg +1 -0
- package/src/public/assets/icons/solid/xmark.svg +1 -0
- package/src/request/cache.js +183 -0
- package/src/request/configStore.js +516 -0
- package/src/request/envelope.js +211 -0
- package/src/request/index.js +35 -0
- package/src/request/messageStore.js +201 -0
- package/src/request/request.js +752 -0
- package/src/request/skel.js +90 -0
- package/src/theme/colorStore.js +168 -0
- package/src/translations/de.js +178 -0
- package/src/translations/en.js +177 -0
- package/src/user/LoginScreen.d.vue.ts +54 -0
- package/src/user/LoginScreen.vue +627 -0
- package/src/user/google.js +75 -0
- package/src/user/index.js +3 -0
- package/src/user/store.d.ts +59 -0
- package/src/user/store.js +183 -0
- package/src/webawesomeCompat.css +72 -0
- package/src/webawesomeConfig.js +61 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-id="Object.keys(formState.structure).length > 0"
|
|
4
|
+
class="wrapper"
|
|
5
|
+
>
|
|
6
|
+
<div class="column left">
|
|
7
|
+
<template
|
|
8
|
+
v-for="(boneValue, boneName, idx) in formState.skel"
|
|
9
|
+
:key="boneName"
|
|
10
|
+
>
|
|
11
|
+
<template v-if="formState.bones.includes(boneName)">
|
|
12
|
+
<slot
|
|
13
|
+
v-if="idx % 2 === 0"
|
|
14
|
+
:bone-name="boneName"
|
|
15
|
+
:widget="getBoneWidget(formState.structure[boneName]['type'])"
|
|
16
|
+
></slot>
|
|
17
|
+
</template>
|
|
18
|
+
</template>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="column right">
|
|
21
|
+
<template
|
|
22
|
+
v-for="(boneValue, boneName, idx) in formState.skel"
|
|
23
|
+
:key="boneName"
|
|
24
|
+
>
|
|
25
|
+
<template v-if="formState.bones.includes(boneName)">
|
|
26
|
+
<slot
|
|
27
|
+
v-if="idx % 2 !== 0"
|
|
28
|
+
:bone-name="boneName"
|
|
29
|
+
:widget="getBoneWidget(formState.structure[boneName]['type'])"
|
|
30
|
+
></slot>
|
|
31
|
+
</template>
|
|
32
|
+
</template>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script setup>
|
|
38
|
+
import { inject } from "vue"
|
|
39
|
+
import { getBoneWidget } from "../bones"
|
|
40
|
+
const formState = inject("formState")
|
|
41
|
+
const formUpdate = inject("formUpdate")
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<style scoped>
|
|
45
|
+
.wrapper {
|
|
46
|
+
padding: 20px;
|
|
47
|
+
display: flex;
|
|
48
|
+
gap: 20px;
|
|
49
|
+
width: 100%;
|
|
50
|
+
|
|
51
|
+
.column {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
width: 100%;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
</style>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<template v-for="(category, identifier) in formState.categories">
|
|
3
|
+
<vi-form-category
|
|
4
|
+
v-if="hasCategoryBones(category)"
|
|
5
|
+
:name="category['name']"
|
|
6
|
+
:identifier="identifier"
|
|
7
|
+
:visible="!!category['visible']"
|
|
8
|
+
:open="category['open']"
|
|
9
|
+
:hide="!formState.useCategories"
|
|
10
|
+
>
|
|
11
|
+
<template
|
|
12
|
+
v-for="bone in category['bones']"
|
|
13
|
+
:key="bone['name']"
|
|
14
|
+
>
|
|
15
|
+
<slot
|
|
16
|
+
:bone-name="bone['name']"
|
|
17
|
+
:widget="getBoneWidget(formState.structure[bone['name']]['type'])"
|
|
18
|
+
></slot>
|
|
19
|
+
</template>
|
|
20
|
+
</vi-form-category>
|
|
21
|
+
</template>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script setup>
|
|
25
|
+
import { inject } from "vue"
|
|
26
|
+
import { getBoneWidget } from "../bones"
|
|
27
|
+
import ViFormCategory from "../ViFormCategory.vue"
|
|
28
|
+
const formState = inject("formState")
|
|
29
|
+
const formUpdate = inject("formUpdate")
|
|
30
|
+
|
|
31
|
+
const hasCategoryBones = (category) => {
|
|
32
|
+
return category["bones"].some(
|
|
33
|
+
(bone) => formState.structure[bone["name"]] && formState.structure[bone["name"]]["visible"]
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<style scoped></style>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="Object.keys(formState.structure).length > 0"
|
|
4
|
+
class="wrapper"
|
|
5
|
+
>
|
|
6
|
+
<template
|
|
7
|
+
v-for="(boneValue, boneName) in formState.skel"
|
|
8
|
+
:key="boneName"
|
|
9
|
+
>
|
|
10
|
+
<template v-if="formState.structure?.[boneName]">
|
|
11
|
+
<slot
|
|
12
|
+
:bone-name="boneName"
|
|
13
|
+
:widget="getBoneWidget(formState.structure[boneName]['type'])"
|
|
14
|
+
></slot>
|
|
15
|
+
</template>
|
|
16
|
+
</template>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script setup>
|
|
21
|
+
import { inject } from "vue"
|
|
22
|
+
import { getBoneWidget } from "../bones"
|
|
23
|
+
const formState = inject("formState")
|
|
24
|
+
const formUpdate = inject("formUpdate")
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<style scoped>
|
|
28
|
+
.wrapper {
|
|
29
|
+
padding: 20px;
|
|
30
|
+
}
|
|
31
|
+
</style>
|