@jskit-ai/users-web 0.1.28 → 0.1.31
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/package.descriptor.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default Object.freeze({
|
|
2
2
|
packageVersion: 1,
|
|
3
3
|
packageId: "@jskit-ai/users-web",
|
|
4
|
-
version: "0.1.
|
|
4
|
+
version: "0.1.31",
|
|
5
5
|
description: "Users web module: workspace selector shell element plus workspace/profile/members UI elements.",
|
|
6
6
|
dependsOn: [
|
|
7
7
|
"@jskit-ai/http-runtime",
|
|
@@ -245,7 +245,7 @@ export default Object.freeze({
|
|
|
245
245
|
"@jskit-ai/realtime": "0.1.16",
|
|
246
246
|
"@jskit-ai/kernel": "0.1.17",
|
|
247
247
|
"@jskit-ai/shell-web": "0.1.16",
|
|
248
|
-
"@jskit-ai/users-core": "0.1.
|
|
248
|
+
"@jskit-ai/users-core": "0.1.26",
|
|
249
249
|
"vuetify": "^4.0.0"
|
|
250
250
|
},
|
|
251
251
|
dev: {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/users-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@tanstack/vue-query": "5.92.12",
|
|
23
23
|
"@mdi/js": "^7.4.47",
|
|
24
|
-
"@jskit-ai/users-core": "0.1.
|
|
24
|
+
"@jskit-ai/users-core": "0.1.26",
|
|
25
25
|
"@jskit-ai/realtime": "0.1.16",
|
|
26
26
|
"@jskit-ai/http-runtime": "0.1.16",
|
|
27
27
|
"@jskit-ai/kernel": "0.1.17",
|
|
@@ -47,18 +47,6 @@
|
|
|
47
47
|
/>
|
|
48
48
|
</v-col>
|
|
49
49
|
|
|
50
|
-
<v-col cols="12" md="3">
|
|
51
|
-
<v-text-field
|
|
52
|
-
v-model="workspaceProfileForm.color"
|
|
53
|
-
label="Accent color"
|
|
54
|
-
type="color"
|
|
55
|
-
variant="outlined"
|
|
56
|
-
density="comfortable"
|
|
57
|
-
:readonly="!addEdit.canSave || addEdit.isSaving || addEdit.isRefetching"
|
|
58
|
-
:error-messages="addEdit.fieldErrors.color ? [addEdit.fieldErrors.color] : []"
|
|
59
|
-
/>
|
|
60
|
-
</v-col>
|
|
61
|
-
|
|
62
50
|
<v-col cols="12" class="d-flex align-center justify-end ga-3">
|
|
63
51
|
<v-btn
|
|
64
52
|
v-if="addEdit.canSave"
|
|
@@ -83,7 +71,6 @@ import { computed, reactive } from "vue";
|
|
|
83
71
|
import { validateOperationSection } from "@jskit-ai/http-runtime/shared/validators/operationValidation";
|
|
84
72
|
import { workspaceResource } from "@jskit-ai/users-core/shared/resources/workspaceResource";
|
|
85
73
|
import { USERS_ROUTE_VISIBILITY_WORKSPACE } from "@jskit-ai/users-core/shared/support/usersVisibility";
|
|
86
|
-
import { DEFAULT_WORKSPACE_LIGHT_PALETTE } from "@jskit-ai/users-core/shared/settings";
|
|
87
74
|
import { useAddEdit } from "../composables/useAddEdit.js";
|
|
88
75
|
import { buildWorkspaceQueryKey } from "../support/workspaceQueryKeys.js";
|
|
89
76
|
|
|
@@ -91,8 +78,7 @@ const emit = defineEmits(["saved"]);
|
|
|
91
78
|
|
|
92
79
|
const workspaceProfileForm = reactive({
|
|
93
80
|
name: "",
|
|
94
|
-
avatarUrl: ""
|
|
95
|
-
color: DEFAULT_WORKSPACE_LIGHT_PALETTE.color
|
|
81
|
+
avatarUrl: ""
|
|
96
82
|
});
|
|
97
83
|
|
|
98
84
|
const addEdit = useAddEdit({
|
|
@@ -105,7 +91,7 @@ const addEdit = useAddEdit({
|
|
|
105
91
|
savePermissions: ["workspace.settings.update"],
|
|
106
92
|
placementSource: "users-web.workspace-profile-view",
|
|
107
93
|
fallbackLoadError: "Unable to load workspace profile.",
|
|
108
|
-
fieldErrorKeys: ["name", "avatarUrl"
|
|
94
|
+
fieldErrorKeys: ["name", "avatarUrl"],
|
|
109
95
|
model: workspaceProfileForm,
|
|
110
96
|
parseInput: (rawPayload) =>
|
|
111
97
|
validateOperationSection({
|
|
@@ -116,12 +102,10 @@ const addEdit = useAddEdit({
|
|
|
116
102
|
mapLoadedToModel: (model, payload = {}) => {
|
|
117
103
|
model.name = String(payload?.name || "");
|
|
118
104
|
model.avatarUrl = String(payload?.avatarUrl || "");
|
|
119
|
-
model.color = String(payload?.color || DEFAULT_WORKSPACE_LIGHT_PALETTE.color).toUpperCase();
|
|
120
105
|
},
|
|
121
106
|
buildRawPayload: (model) => ({
|
|
122
107
|
name: model.name,
|
|
123
|
-
avatarUrl: model.avatarUrl
|
|
124
|
-
color: model.color
|
|
108
|
+
avatarUrl: model.avatarUrl
|
|
125
109
|
}),
|
|
126
110
|
onSaveSuccess: async () => {
|
|
127
111
|
emit("saved");
|