@nymphjs/tilmeld-setup 1.0.0-beta.50 → 1.0.0-beta.52
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/CHANGELOG.md +10 -0
- package/app/src/routes/GroupEdit.svelte +70 -49
- package/app/src/routes/Groups.svelte +29 -17
- package/app/src/routes/UserEdit.svelte +233 -194
- package/app/src/routes/Users.svelte +29 -15
- package/dist/app/index.js +3348 -1673
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-beta.52](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.51...v1.0.0-beta.52) (2024-05-25)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- support setup app and users and groups when userFields is limited ([20e25a2](https://github.com/sciactive/nymphjs/commit/20e25a2bcc35f96b3146fd9d973e34083a85f854))
|
|
11
|
+
|
|
12
|
+
# [1.0.0-beta.51](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.50...v1.0.0-beta.51) (2024-04-12)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @nymphjs/tilmeld-setup
|
|
15
|
+
|
|
6
16
|
# [1.0.0-beta.50](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.49...v1.0.0-beta.50) (2024-04-08)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @nymphjs/tilmeld-setup
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</Icon>
|
|
16
16
|
</IconButton>
|
|
17
17
|
<h2 style="margin: 0px 12px 0px;" class="mdc-typography--headline5">
|
|
18
|
-
Editing {entity.guid ? entity.name : 'New Group'}
|
|
18
|
+
Editing {entity.guid ? entity.name ?? entity.groupname : 'New Group'}
|
|
19
19
|
</h2>
|
|
20
20
|
</div>
|
|
21
21
|
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
<div style="padding: 12px;" class="mdc-typography--subtitle1">
|
|
25
25
|
Generated primary group for <a
|
|
26
26
|
href="#/users/edit/{encodeURIComponent(entity.user.guid || '')}"
|
|
27
|
-
>{
|
|
27
|
+
>{clientConfig.userFields.includes('name')
|
|
28
|
+
? entity.user.name + ' (' + entity.user.username + ')'
|
|
29
|
+
: entity.user.username}</a
|
|
28
30
|
>
|
|
29
31
|
</div>
|
|
30
32
|
{/await}
|
|
@@ -65,7 +67,7 @@
|
|
|
65
67
|
</a>
|
|
66
68
|
</LayoutCell>
|
|
67
69
|
{#if !clientConfig.emailUsernames}
|
|
68
|
-
<LayoutCell span={6}>
|
|
70
|
+
<LayoutCell span={clientConfig.userFields.includes('email') ? 6 : 12}>
|
|
69
71
|
<Textfield
|
|
70
72
|
bind:value={entity.groupname}
|
|
71
73
|
label="Groupname"
|
|
@@ -84,35 +86,39 @@
|
|
|
84
86
|
</Textfield>
|
|
85
87
|
</LayoutCell>
|
|
86
88
|
{/if}
|
|
87
|
-
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
89
|
+
{#if clientConfig.userFields.includes('email')}
|
|
90
|
+
<LayoutCell span={clientConfig.emailUsernames ? 12 : 6}>
|
|
91
|
+
<Textfield
|
|
92
|
+
bind:value={entity.email}
|
|
93
|
+
label="Email"
|
|
94
|
+
type="email"
|
|
95
|
+
style="width: 100%;"
|
|
96
|
+
helperLine$style="width: 100%;"
|
|
97
|
+
invalid={emailVerified === false}
|
|
98
|
+
input$autocomplete="off"
|
|
99
|
+
input$autocapitalize="off"
|
|
100
|
+
input$spellcheck="false"
|
|
101
|
+
disabled={entity.user != null}
|
|
102
|
+
>
|
|
103
|
+
<HelperText persistent slot="helper">
|
|
104
|
+
{emailVerifiedMessage ?? ''}
|
|
105
|
+
</HelperText>
|
|
106
|
+
</Textfield>
|
|
107
|
+
</LayoutCell>
|
|
108
|
+
{/if}
|
|
109
|
+
{#if clientConfig.userFields.includes('name')}
|
|
110
|
+
<LayoutCell span={12}>
|
|
111
|
+
<Textfield
|
|
112
|
+
bind:value={entity.name}
|
|
113
|
+
label="Display Name"
|
|
114
|
+
type="text"
|
|
115
|
+
style="width: 100%;"
|
|
116
|
+
input$autocomplete="off"
|
|
117
|
+
disabled={entity.user != null}
|
|
118
|
+
/>
|
|
119
|
+
</LayoutCell>
|
|
120
|
+
{/if}
|
|
121
|
+
<LayoutCell span={clientConfig.userFields.includes('phone') ? 8 : 12}>
|
|
116
122
|
<Textfield
|
|
117
123
|
bind:value={entity.avatar}
|
|
118
124
|
label="Avatar"
|
|
@@ -122,16 +128,18 @@
|
|
|
122
128
|
disabled={entity.user != null}
|
|
123
129
|
/>
|
|
124
130
|
</LayoutCell>
|
|
125
|
-
|
|
126
|
-
<
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
{#if clientConfig.userFields.includes('phone')}
|
|
132
|
+
<LayoutCell span={4}>
|
|
133
|
+
<Textfield
|
|
134
|
+
bind:value={entity.phone}
|
|
135
|
+
label="Phone"
|
|
136
|
+
type="tel"
|
|
137
|
+
style="width: 100%;"
|
|
138
|
+
input$autocomplete="off"
|
|
139
|
+
disabled={entity.user != null}
|
|
140
|
+
/>
|
|
141
|
+
</LayoutCell>
|
|
142
|
+
{/if}
|
|
135
143
|
<LayoutCell span={12}>
|
|
136
144
|
<FormField>
|
|
137
145
|
<Checkbox bind:checked={entity.defaultPrimary} />
|
|
@@ -147,14 +155,17 @@
|
|
|
147
155
|
<FormField>
|
|
148
156
|
<Checkbox bind:checked={entity.defaultSecondary} />
|
|
149
157
|
<span slot="label"
|
|
150
|
-
>Default secondary group for newly registered{clientConfig.
|
|
158
|
+
>Default secondary group for newly registered{clientConfig.userFields.includes(
|
|
159
|
+
'email',
|
|
160
|
+
) &&
|
|
161
|
+
clientConfig.verifyEmail &&
|
|
151
162
|
clientConfig.unverifiedAccess
|
|
152
163
|
? ', verified'
|
|
153
164
|
: ''} users.</span
|
|
154
165
|
>
|
|
155
166
|
</FormField>
|
|
156
167
|
</LayoutCell>
|
|
157
|
-
{#if clientConfig.verifyEmail && clientConfig.unverifiedAccess}
|
|
168
|
+
{#if clientConfig.userFields.includes('email') && clientConfig.verifyEmail && clientConfig.unverifiedAccess}
|
|
158
169
|
<LayoutCell span={12}>
|
|
159
170
|
<FormField>
|
|
160
171
|
<Checkbox bind:checked={entity.unverifiedSecondary} />
|
|
@@ -177,7 +188,9 @@
|
|
|
177
188
|
No parent
|
|
178
189
|
{:else}
|
|
179
190
|
<a href="#/groups/edit/{encodeURIComponent(entity.parent.guid || '')}"
|
|
180
|
-
>{
|
|
191
|
+
>{clientConfig.userFields.includes('name')
|
|
192
|
+
? entity.parent.name + ' (' + entity.parent.groupname + ')'
|
|
193
|
+
: entity.parent.groupname}</a
|
|
181
194
|
>
|
|
182
195
|
|
|
183
196
|
<IconButton
|
|
@@ -232,8 +245,12 @@
|
|
|
232
245
|
{#if !clientConfig.emailUsernames}
|
|
233
246
|
<Cell>Groupname</Cell>
|
|
234
247
|
{/if}
|
|
235
|
-
|
|
236
|
-
|
|
248
|
+
{#if clientConfig.userFields.includes('name')}
|
|
249
|
+
<Cell>Name</Cell>
|
|
250
|
+
{/if}
|
|
251
|
+
{#if clientConfig.userFields.includes('email')}
|
|
252
|
+
<Cell>Email</Cell>
|
|
253
|
+
{/if}
|
|
237
254
|
<Cell>Enabled</Cell>
|
|
238
255
|
</Row>
|
|
239
256
|
</Head>
|
|
@@ -247,8 +264,12 @@
|
|
|
247
264
|
{#if !clientConfig.emailUsernames}
|
|
248
265
|
<Cell>{curEntity.groupname}</Cell>
|
|
249
266
|
{/if}
|
|
250
|
-
|
|
251
|
-
|
|
267
|
+
{#if clientConfig.userFields.includes('name')}
|
|
268
|
+
<Cell>{curEntity.name}</Cell>
|
|
269
|
+
{/if}
|
|
270
|
+
{#if clientConfig.userFields.includes('email')}
|
|
271
|
+
<Cell>{curEntity.email}</Cell>
|
|
272
|
+
{/if}
|
|
252
273
|
<Cell>{curEntity.enabled ? 'Yes' : 'No'}</Cell>
|
|
253
274
|
</Row>
|
|
254
275
|
{/each}
|
|
@@ -59,8 +59,12 @@
|
|
|
59
59
|
{#if !clientConfig.emailUsernames}
|
|
60
60
|
<Cell>Groupname</Cell>
|
|
61
61
|
{/if}
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
{#if clientConfig.userFields.includes('name')}
|
|
63
|
+
<Cell>Name</Cell>
|
|
64
|
+
{/if}
|
|
65
|
+
{#if clientConfig.userFields.includes('email')}
|
|
66
|
+
<Cell>Email</Cell>
|
|
67
|
+
{/if}
|
|
64
68
|
<Cell>Enabled</Cell>
|
|
65
69
|
</Row>
|
|
66
70
|
</Head>
|
|
@@ -76,25 +80,33 @@
|
|
|
76
80
|
></Cell
|
|
77
81
|
>
|
|
78
82
|
{/if}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
{#if clientConfig.userFields.includes('name')}
|
|
84
|
+
<Cell
|
|
85
|
+
><a
|
|
86
|
+
href="#/groups/edit/{encodeURIComponent(
|
|
87
|
+
curEntity.guid || '',
|
|
88
|
+
)}">{curEntity.name}</a
|
|
89
|
+
></Cell
|
|
90
|
+
>
|
|
91
|
+
{/if}
|
|
92
|
+
{#if clientConfig.userFields.includes('email')}
|
|
93
|
+
<Cell
|
|
94
|
+
><a
|
|
95
|
+
href="#/groups/edit/{encodeURIComponent(
|
|
96
|
+
curEntity.guid || '',
|
|
97
|
+
)}">{curEntity.email}</a
|
|
98
|
+
></Cell
|
|
99
|
+
>
|
|
100
|
+
{/if}
|
|
93
101
|
<Cell>{curEntity.enabled ? 'Yes' : 'No'}</Cell>
|
|
94
102
|
</Row>
|
|
95
103
|
{:else}
|
|
96
104
|
<Row>
|
|
97
|
-
<Cell
|
|
105
|
+
<Cell
|
|
106
|
+
colspan={1 +
|
|
107
|
+
(!clientConfig.emailUsernames ? 1 : 0) +
|
|
108
|
+
(clientConfig.userFields.includes('name') ? 1 : 0) +
|
|
109
|
+
(clientConfig.userFields.includes('email') ? 1 : 0)}
|
|
98
110
|
>None found.</Cell
|
|
99
111
|
>
|
|
100
112
|
</Row>
|