@happyvertical/smrt-human-resources 0.60.15 → 0.60.17

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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-human-resources",
5
- "packageVersion": "0.60.15",
5
+ "packageVersion": "0.60.17",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-human-resources:Employment": {
8
8
  "name": "employment",
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-human-resources",
6
- "packageVersion": "0.60.15",
6
+ "packageVersion": "0.60.17",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "ddd88c77517e273f94182a01829523a6f8ce2c9077a722b5e0c4d5f1fb0f87c0",
11
- "packageJson": "851abbb5cbc2311476ad201da710211abc94cce32bb304df8229294679788aac",
10
+ "manifest": "aaf609701b44455b6e14637652b1ba5228a69e416d77bef37cd6a97b48d4c343",
11
+ "packageJson": "0f01822e4c02776ec090f9a0899701527d7e2e30576418924f7eb782fbf7f2aa",
12
12
  "agents": "39e33413cdd174e5fd877f57fd119a4246f3f8795095e356d3df46e42a9b6345"
13
13
  },
14
14
  "exports": [
@@ -170,11 +170,11 @@ function handleSubmit() {
170
170
  }
171
171
  </script>
172
172
 
173
- <div class="employee-form-shell" data-smrt-component="EmployeeForm">
173
+ <div class="smrt-employee-form__root" data-smrt-component="EmployeeForm">
174
174
  <Form class="employee-form" onsubmit={handleSubmit}>
175
- <div class="field">
175
+ <div class="smrt-employee-form__field" data-smrt-part="field">
176
176
  <label for="{uid}-employee-number">
177
- {t(M['human_resources.employee_form.employee_number'])}<span class="required" aria-hidden="true">*</span>
177
+ {t(M['human_resources.employee_form.employee_number'])}<span class="smrt-employee-form__required" aria-hidden="true" data-smrt-part="marker">*</span>
178
178
  </label>
179
179
  <Input
180
180
  id="{uid}-employee-number"
@@ -191,15 +191,15 @@ function handleSubmit() {
191
191
  )}
192
192
  />
193
193
  {#if !isNew}
194
- <span class="hint" id="{uid}-employee-number-hint">
194
+ <span class="smrt-employee-form__hint" id="{uid}-employee-number-hint" data-smrt-part="description">
195
195
  {t(M['human_resources.employee_form.employee_number_edit_help'])}
196
196
  </span>
197
197
  {/if}
198
198
  </div>
199
199
 
200
- <div class="field">
200
+ <div class="smrt-employee-form__field" data-smrt-part="field">
201
201
  <label for="{uid}-worker-type">
202
- {t(M['human_resources.employee_form.worker_type'])}<span class="required" aria-hidden="true">*</span>
202
+ {t(M['human_resources.employee_form.worker_type'])}<span class="smrt-employee-form__required" aria-hidden="true" data-smrt-part="marker">*</span>
203
203
  </label>
204
204
  <Input
205
205
  id="{uid}-worker-type"
@@ -218,20 +218,20 @@ function handleSubmit() {
218
218
  <option value={suggestion}></option>
219
219
  {/each}
220
220
  </datalist>
221
- <span class="hint" id="{uid}-worker-type-hint">
221
+ <span class="smrt-employee-form__hint" id="{uid}-worker-type-hint" data-smrt-part="description">
222
222
  {t(M['human_resources.employee_form.worker_type_help'])}
223
223
  </span>
224
224
  </div>
225
225
 
226
- <div class="field">
226
+ <div class="smrt-employee-form__field" data-smrt-part="field">
227
227
  <label for="{uid}-position">{t(M['human_resources.employee_form.position'])}</label>
228
228
  <Input id="{uid}-position" name="position" type="text" bind:value={position} disabled={loading} />
229
229
  </div>
230
230
 
231
231
  {#if isNew}
232
- <div class="field">
232
+ <div class="smrt-employee-form__field" data-smrt-part="field">
233
233
  <label for="{uid}-started-on">
234
- {t(M['human_resources.employee_form.started_on'])}<span class="required" aria-hidden="true">*</span>
234
+ {t(M['human_resources.employee_form.started_on'])}<span class="smrt-employee-form__required" aria-hidden="true" data-smrt-part="marker">*</span>
235
235
  </label>
236
236
  <Input
237
237
  id="{uid}-started-on"
@@ -245,9 +245,9 @@ function handleSubmit() {
245
245
  />
246
246
  </div>
247
247
  {:else}
248
- <div class="field">
248
+ <div class="smrt-employee-form__field" data-smrt-part="field">
249
249
  <label for="{uid}-effective-on">
250
- {t(M['human_resources.employee_form.effective_on'])}<span class="required" aria-hidden="true">*</span>
250
+ {t(M['human_resources.employee_form.effective_on'])}<span class="smrt-employee-form__required" aria-hidden="true" data-smrt-part="marker">*</span>
251
251
  </label>
252
252
  <Input
253
253
  id="{uid}-effective-on"
@@ -259,13 +259,13 @@ function handleSubmit() {
259
259
  aria-invalid={invalid.includes('effectiveOn') ? 'true' : undefined}
260
260
  aria-describedby={describedBy('effectiveOn', `${uid}-effective-on-hint`)}
261
261
  />
262
- <span class="hint" id="{uid}-effective-on-hint">
262
+ <span class="smrt-employee-form__hint" id="{uid}-effective-on-hint" data-smrt-part="description">
263
263
  {t(M['human_resources.employee_form.effective_on_help'])}
264
264
  </span>
265
265
  </div>
266
266
  {/if}
267
267
 
268
- <div class="field">
268
+ <div class="smrt-employee-form__field" data-smrt-part="field">
269
269
  <label for="{uid}-login">{t(M['human_resources.employee_form.login'])}</label>
270
270
  {#if loginOptions}
271
271
  <Select
@@ -290,13 +290,13 @@ function handleSubmit() {
290
290
  aria-describedby="{uid}-login-hint"
291
291
  />
292
292
  {/if}
293
- <span class="hint" id="{uid}-login-hint">
293
+ <span class="smrt-employee-form__hint" id="{uid}-login-hint" data-smrt-part="description">
294
294
  {t(M['human_resources.employee_form.login_help'])}
295
295
  </span>
296
296
  </div>
297
297
 
298
298
  {#if errors.length > 0}
299
- <div class="errors" role="alert">
299
+ <div class="smrt-employee-form__errors" data-smrt-part="error" role="alert">
300
300
  <ul>
301
301
  {#each errors as error (error.field)}
302
302
  <li id={errorId(error.field)}>{error.message}</li>
@@ -305,7 +305,7 @@ function handleSubmit() {
305
305
  </div>
306
306
  {/if}
307
307
 
308
- <div class="actions">
308
+ <div class="smrt-employee-form__actions" data-smrt-part="actions">
309
309
  {#if oncancel}
310
310
  <Button variant="secondary" type="button" onclick={oncancel} disabled={loading}>
311
311
  {t(M['human_resources.employee_form.cancel'])}
@@ -326,47 +326,44 @@ function handleSubmit() {
326
326
 
327
327
  <style>
328
328
  @layer smrt.reset, smrt.structure, smrt.theme;
329
- @layer smrt.theme {
330
- .employee-form-shell :global(.employee-form) {
329
+ @layer smrt.structure {
330
+ .smrt-employee-form__root :global([data-smrt-component="Form"]) {
331
331
  display: flex;
332
332
  flex-direction: column;
333
333
  gap: var(--smrt-spacing-md, 1rem);
334
334
  }
335
-
336
- .field {
335
+ .smrt-employee-form__field {
337
336
  display: flex;
338
337
  flex-direction: column;
339
338
  gap: 0.25rem;
340
339
  }
340
+ .smrt-employee-form__errors ul {
341
+ margin: 0;
342
+ padding-left: 1.25rem;
343
+ }
344
+ .smrt-employee-form__actions {
345
+ display: flex;
346
+ justify-content: flex-end;
347
+ gap: var(--smrt-spacing-sm, 0.5rem);
348
+ margin-top: var(--smrt-spacing-sm, 0.5rem);
349
+ }
350
+ }
341
351
 
352
+ @layer smrt.theme {
342
353
  label {
343
354
  font: var(--smrt-typography-body-medium-font, 500 0.875rem / 1.25 sans-serif);
344
355
  color: var(--smrt-color-on-surface-variant, inherit);
345
356
  }
346
-
347
- .required {
357
+ .smrt-employee-form__required {
348
358
  color: var(--smrt-color-error, inherit);
349
359
  }
350
-
351
- .hint {
360
+ .smrt-employee-form__hint {
352
361
  font: var(--smrt-typography-body-small-font, 0.75rem / 1.25 sans-serif);
353
362
  color: var(--smrt-color-on-surface-variant, inherit);
354
363
  }
355
-
356
- .errors {
364
+ .smrt-employee-form__errors {
357
365
  color: var(--smrt-color-error, inherit);
358
366
  }
359
-
360
- .errors ul {
361
- margin: 0;
362
- padding-left: 1.25rem;
363
- }
364
-
365
- .actions {
366
- display: flex;
367
- justify-content: flex-end;
368
- gap: var(--smrt-spacing-sm, 0.5rem);
369
- margin-top: var(--smrt-spacing-sm, 0.5rem);
370
- }
371
367
  }
368
+
372
369
  </style>
@@ -31,14 +31,14 @@ const { employees, onselect, emptyMessage }: EmployeeListProps = $props();
31
31
  </script>
32
32
 
33
33
  {#if employees.length === 0}
34
- <p class="employee-list-empty" data-smrt-component="EmployeeList">
34
+ <p class="smrt-employee-list__empty" data-smrt-component="EmployeeList" >
35
35
  {emptyMessage ?? t(M['human_resources.employee_list.empty'])}
36
36
  </p>
37
37
  {:else}
38
- <div class="employee-list-scroll" data-smrt-component="EmployeeList">
39
- <table class="employee-list">
40
- <caption class="employee-list-caption">{t(M['human_resources.employee_list.caption'])}</caption>
41
- <thead>
38
+ <div class="smrt-employee-list__root" data-smrt-component="EmployeeList">
39
+ <table class="smrt-employee-list__table" data-smrt-part="table">
40
+ <caption class="smrt-employee-list__caption" data-smrt-part="caption">{t(M['human_resources.employee_list.caption'])}</caption>
41
+ <thead data-smrt-part="header">
42
42
  <tr>
43
43
  <th scope="col">{t(M['human_resources.employee_list.name'])}</th>
44
44
  <th scope="col">{t(M['human_resources.employee_list.employee_number'])}</th>
@@ -48,10 +48,10 @@ const { employees, onselect, emptyMessage }: EmployeeListProps = $props();
48
48
  <th scope="col">{t(M['human_resources.employee_list.started_on'])}</th>
49
49
  </tr>
50
50
  </thead>
51
- <tbody>
51
+ <tbody data-smrt-part="body">
52
52
  {#each employees as employee (employee.id)}
53
- <tr>
54
- <th scope="row" class="employee-list-name">
53
+ <tr data-smrt-part="row">
54
+ <th scope="row" class="smrt-employee-list__name" data-smrt-part="cell">
55
55
  {#if onselect}
56
56
  <Button
57
57
  variant="ghost"
@@ -65,12 +65,12 @@ const { employees, onselect, emptyMessage }: EmployeeListProps = $props();
65
65
  {employee.displayName}
66
66
  {/if}
67
67
  </th>
68
- <td class="employee-list-number">{employee.employeeNumber}</td>
68
+ <td class="smrt-employee-list__number" data-smrt-part="cell">{employee.employeeNumber}</td>
69
69
  <td>
70
70
  {#if employee.position}
71
71
  {employee.position}
72
72
  {:else}
73
- <span class="employee-list-none">{t(M['human_resources.employee_list.none'])}</span>
73
+ <span class="smrt-employee-list__none" data-smrt-part="meta">{t(M['human_resources.employee_list.none'])}</span>
74
74
  {/if}
75
75
  </td>
76
76
  <td>{employee.workerType}</td>
@@ -81,7 +81,7 @@ const { employees, onselect, emptyMessage }: EmployeeListProps = $props();
81
81
  size="sm"
82
82
  />
83
83
  {#if employee.endsOn}
84
- <span class="employee-list-last-day">
84
+ <span class="smrt-employee-list__last-day" data-smrt-part="meta">
85
85
  {t(M['human_resources.employee_list.last_day'], { date: employee.endsOn })}
86
86
  </span>
87
87
  {/if}
@@ -90,7 +90,7 @@ const { employees, onselect, emptyMessage }: EmployeeListProps = $props();
90
90
  {#if employee.startedOn}
91
91
  <time datetime={employee.startedOn}>{employee.startedOn}</time>
92
92
  {:else}
93
- <span class="employee-list-none">{t(M['human_resources.employee_list.none'])}</span>
93
+ <span class="smrt-employee-list__none" data-smrt-part="meta">{t(M['human_resources.employee_list.none'])}</span>
94
94
  {/if}
95
95
  </td>
96
96
  </tr>
@@ -102,17 +102,14 @@ const { employees, onselect, emptyMessage }: EmployeeListProps = $props();
102
102
 
103
103
  <style>
104
104
  @layer smrt.reset, smrt.structure, smrt.theme;
105
- @layer smrt.theme {
106
- .employee-list-scroll {
105
+ @layer smrt.structure {
106
+ .smrt-employee-list__root {
107
107
  overflow-x: auto;
108
108
  }
109
-
110
- .employee-list {
109
+ .smrt-employee-list__table {
111
110
  width: 100%;
112
- border-collapse: collapse;
113
111
  }
114
-
115
- .employee-list-caption {
112
+ .smrt-employee-list__caption {
116
113
  position: absolute;
117
114
  width: 1px;
118
115
  height: 1px;
@@ -120,42 +117,47 @@ const { employees, onselect, emptyMessage }: EmployeeListProps = $props();
120
117
  clip-path: inset(50%);
121
118
  white-space: nowrap;
122
119
  }
123
-
124
- .employee-list th,
125
- .employee-list td {
120
+ .smrt-employee-list__table th,
121
+ .smrt-employee-list__table td {
126
122
  padding: 0.5rem 0.75rem;
123
+ }
124
+ .smrt-employee-list__last-day {
125
+ margin-left: 0.5rem;
126
+ white-space: nowrap;
127
+ }
128
+ .smrt-employee-list__empty {
129
+ padding: 1rem 0;
130
+ }
131
+ }
132
+
133
+ @layer smrt.theme {
134
+ .smrt-employee-list__table {
135
+ border-collapse: collapse;
136
+ }
137
+ .smrt-employee-list__table th,
138
+ .smrt-employee-list__table td {
127
139
  text-align: left;
128
140
  border-bottom: var(--smrt-hairline);
129
141
  }
130
-
131
- .employee-list thead th {
142
+ .smrt-employee-list__table thead th {
132
143
  font-size: 0.75rem;
133
144
  font-weight: 500;
134
145
  color: var(--smrt-color-on-surface-variant, inherit);
135
146
  }
136
-
137
- .employee-list-name {
147
+ .smrt-employee-list__name {
138
148
  font-weight: 500;
139
149
  }
140
-
141
- .employee-list-number {
150
+ .smrt-employee-list__number {
142
151
  font-variant-numeric: tabular-nums;
143
152
  }
144
-
145
- .employee-list-last-day {
146
- margin-left: 0.5rem;
153
+ .smrt-employee-list__last-day {
147
154
  font-size: 0.75rem;
148
- white-space: nowrap;
149
155
  color: var(--smrt-color-on-surface-variant, inherit);
150
156
  }
151
-
152
- .employee-list-none,
153
- .employee-list-empty {
157
+ .smrt-employee-list__none,
158
+ .smrt-employee-list__empty {
154
159
  color: var(--smrt-color-on-surface-variant, inherit);
155
160
  }
156
-
157
- .employee-list-empty {
158
- padding: 1rem 0;
159
- }
160
161
  }
162
+
161
163
  </style>
@@ -38,14 +38,14 @@ function distance(daysUntilExpiry: number): string {
38
38
  </script>
39
39
 
40
40
  {#if sorted.length === 0}
41
- <p class="expiring-qualifications-empty" data-smrt-component="ExpiringQualificationsList">
41
+ <p class="smrt-expiring-qualifications__empty" data-smrt-component="ExpiringQualificationsList" >
42
42
  {emptyMessage ?? t(M['human_resources.expiring_qualifications_list.empty'])}
43
43
  </p>
44
44
  {:else}
45
- <ul class="expiring-qualifications" data-smrt-component="ExpiringQualificationsList">
45
+ <ul class="smrt-expiring-qualifications__root" data-smrt-component="ExpiringQualificationsList">
46
46
  {#each sorted as item (item.id)}
47
- <li class="expiring-qualification">
48
- <div class="expiring-qualification-main">
47
+ <li class="smrt-expiring-qualifications__row" data-smrt-part="row">
48
+ <div class="smrt-expiring-qualifications__main" data-smrt-part="body">
49
49
  {#if onselect}
50
50
  <Button
51
51
  variant="ghost"
@@ -56,12 +56,12 @@ function distance(daysUntilExpiry: number): string {
56
56
  {item.qualificationName}
57
57
  </Button>
58
58
  {:else}
59
- <span class="expiring-qualification-name">{item.qualificationName}</span>
59
+ <span class="smrt-expiring-qualifications__name" data-smrt-part="title">{item.qualificationName}</span>
60
60
  {/if}
61
- <span class="expiring-qualification-person">{item.displayName}</span>
61
+ <span class="smrt-expiring-qualifications__person" data-smrt-part="author">{item.displayName}</span>
62
62
  </div>
63
- <div class="expiring-qualification-when">
64
- <span class="expiring-qualification-distance">{distance(item.daysUntilExpiry)}</span>
63
+ <div class="smrt-expiring-qualifications__when" data-smrt-part="meta">
64
+ <span class="smrt-expiring-qualifications__distance" data-smrt-part="meta">{distance(item.daysUntilExpiry)}</span>
65
65
  <span>{t(M['human_resources.expiring_qualifications_list.expires_on'], { date: item.expiresOn })}</span>
66
66
  </div>
67
67
  </li>
@@ -71,30 +71,23 @@ function distance(daysUntilExpiry: number): string {
71
71
 
72
72
  <style>
73
73
  @layer smrt.reset, smrt.structure, smrt.theme;
74
- @layer smrt.theme {
75
- .expiring-qualifications {
74
+ @layer smrt.structure {
75
+ .smrt-expiring-qualifications__root {
76
76
  list-style: none;
77
77
  margin: 0;
78
78
  padding: 0;
79
79
  display: flex;
80
80
  flex-direction: column;
81
81
  }
82
-
83
- .expiring-qualification {
82
+ .smrt-expiring-qualifications__row {
84
83
  display: flex;
85
84
  flex-wrap: wrap;
86
85
  align-items: center;
87
86
  justify-content: space-between;
88
87
  gap: 0.75rem;
89
88
  padding: 0.5rem 0.25rem;
90
- border-bottom: var(--smrt-hairline);
91
- }
92
-
93
- .expiring-qualification:last-child {
94
- border-bottom: none;
95
89
  }
96
-
97
- .expiring-qualification-main {
90
+ .smrt-expiring-qualifications__main {
98
91
  display: flex;
99
92
  flex-direction: column;
100
93
  align-items: flex-start;
@@ -102,28 +95,36 @@ function distance(daysUntilExpiry: number): string {
102
95
  min-width: 0;
103
96
  flex: 1;
104
97
  }
105
-
106
- .expiring-qualification-name,
107
- .expiring-qualification-distance {
108
- font-weight: 500;
109
- }
110
-
111
- .expiring-qualification-person,
112
- .expiring-qualification-when {
113
- font-size: 0.75rem;
114
- color: var(--smrt-color-on-surface-variant, inherit);
115
- }
116
-
117
- .expiring-qualification-when {
98
+ .smrt-expiring-qualifications__when {
118
99
  display: flex;
119
100
  flex-direction: column;
120
101
  align-items: flex-end;
121
102
  gap: 0.125rem;
122
103
  }
104
+ .smrt-expiring-qualifications__empty {
105
+ padding: 1rem 0;
106
+ }
107
+ }
123
108
 
124
- .expiring-qualifications-empty {
109
+ @layer smrt.theme {
110
+ .smrt-expiring-qualifications__row {
111
+ border-bottom: var(--smrt-hairline);
112
+ }
113
+ .smrt-expiring-qualifications__row:last-child {
114
+ border-bottom: none;
115
+ }
116
+ .smrt-expiring-qualifications__name,
117
+ .smrt-expiring-qualifications__distance {
118
+ font-weight: 500;
119
+ }
120
+ .smrt-expiring-qualifications__person,
121
+ .smrt-expiring-qualifications__when {
122
+ font-size: 0.75rem;
123
+ color: var(--smrt-color-on-surface-variant, inherit);
124
+ }
125
+ .smrt-expiring-qualifications__empty {
125
126
  color: var(--smrt-color-on-surface-variant, inherit);
126
- padding: 1rem 0;
127
127
  }
128
128
  }
129
+
129
130
  </style>
@@ -46,15 +46,15 @@ function distance(daysUntilExpiry: number): string {
46
46
  </script>
47
47
 
48
48
  {#if qualifications.length === 0}
49
- <p class="person-qualifications-empty" data-smrt-component="PersonQualifications">
49
+ <p class="smrt-person-qualifications__empty" data-smrt-component="PersonQualifications" >
50
50
  {emptyMessage ?? t(M['human_resources.person_qualifications.empty'])}
51
51
  </p>
52
52
  {:else}
53
- <ul class="person-qualifications" data-smrt-component="PersonQualifications">
53
+ <ul class="smrt-person-qualifications__root" data-smrt-component="PersonQualifications">
54
54
  {#each qualifications as qualification (qualification.id)}
55
55
  {@const state = qualificationExpiryState(qualification, expiringSoonDays)}
56
- <li class="person-qualification" data-state={state}>
57
- <div class="person-qualification-main">
56
+ <li class="smrt-person-qualifications__row" data-state={state} data-smrt-part="row">
57
+ <div class="smrt-person-qualifications__main" data-smrt-part="body">
58
58
  {#if onselect}
59
59
  <Button
60
60
  variant="ghost"
@@ -65,9 +65,9 @@ function distance(daysUntilExpiry: number): string {
65
65
  {qualification.name}
66
66
  </Button>
67
67
  {:else}
68
- <span class="person-qualification-name">{qualification.name}</span>
68
+ <span class="smrt-person-qualifications__name" data-smrt-part="title">{qualification.name}</span>
69
69
  {/if}
70
- <span class="person-qualification-detail">
70
+ <span class="smrt-person-qualifications__detail" data-smrt-part="description">
71
71
  <span>{t(qualificationKindLabelKey(qualification.kind))}</span>
72
72
  {#if qualification.issuingBody}
73
73
  <span>{qualification.issuingBody}</span>
@@ -79,14 +79,14 @@ function distance(daysUntilExpiry: number): string {
79
79
  {/if}
80
80
  </span>
81
81
  </div>
82
- <div class="person-qualification-dates">
82
+ <div class="smrt-person-qualifications__dates" data-smrt-part="meta">
83
83
  <span>{t(M['human_resources.person_qualifications.issued_on'], { date: qualification.issuedOn })}</span>
84
84
  {#if qualification.expiresOn === null}
85
85
  <span>{t(M['human_resources.person_qualifications.no_expiry'])}</span>
86
86
  {:else}
87
87
  <span>{t(M['human_resources.person_qualifications.expires_on'], { date: qualification.expiresOn })}</span>
88
88
  {#if qualification.daysUntilExpiry !== null && (state === 'valid' || state === 'expiring-soon' || state === 'expired')}
89
- <span class="person-qualification-distance">{distance(qualification.daysUntilExpiry)}</span>
89
+ <span class="smrt-person-qualifications__distance" data-smrt-part="meta">{distance(qualification.daysUntilExpiry)}</span>
90
90
  {/if}
91
91
  {/if}
92
92
  </div>
@@ -102,30 +102,23 @@ function distance(daysUntilExpiry: number): string {
102
102
 
103
103
  <style>
104
104
  @layer smrt.reset, smrt.structure, smrt.theme;
105
- @layer smrt.theme {
106
- .person-qualifications {
105
+ @layer smrt.structure {
106
+ .smrt-person-qualifications__root {
107
107
  list-style: none;
108
108
  margin: 0;
109
109
  padding: 0;
110
110
  display: flex;
111
111
  flex-direction: column;
112
112
  }
113
-
114
- .person-qualification {
113
+ .smrt-person-qualifications__row {
115
114
  display: flex;
116
115
  flex-wrap: wrap;
117
116
  align-items: center;
118
117
  justify-content: space-between;
119
118
  gap: 0.75rem;
120
119
  padding: 0.5rem 0.25rem;
121
- border-bottom: var(--smrt-hairline);
122
120
  }
123
-
124
- .person-qualification:last-child {
125
- border-bottom: none;
126
- }
127
-
128
- .person-qualification-main {
121
+ .smrt-person-qualifications__main {
129
122
  display: flex;
130
123
  flex-direction: column;
131
124
  align-items: flex-start;
@@ -133,27 +126,38 @@ function distance(daysUntilExpiry: number): string {
133
126
  min-width: 0;
134
127
  flex: 1;
135
128
  }
136
-
137
- .person-qualification-name {
138
- font-weight: 500;
139
- }
140
-
141
- .person-qualification-detail,
142
- .person-qualification-dates {
129
+ .smrt-person-qualifications__detail,
130
+ .smrt-person-qualifications__dates {
143
131
  display: flex;
144
132
  flex-wrap: wrap;
145
133
  gap: 0.5rem;
134
+ }
135
+ .smrt-person-qualifications__empty {
136
+ padding: 1rem 0;
137
+ }
138
+ }
139
+
140
+ @layer smrt.theme {
141
+ .smrt-person-qualifications__row {
142
+ border-bottom: var(--smrt-hairline);
143
+ }
144
+ .smrt-person-qualifications__row:last-child {
145
+ border-bottom: none;
146
+ }
147
+ .smrt-person-qualifications__name {
148
+ font-weight: 500;
149
+ }
150
+ .smrt-person-qualifications__detail,
151
+ .smrt-person-qualifications__dates {
146
152
  font-size: 0.75rem;
147
153
  color: var(--smrt-color-on-surface-variant, inherit);
148
154
  }
149
-
150
- .person-qualification-distance {
155
+ .smrt-person-qualifications__distance {
151
156
  font-weight: 500;
152
157
  }
153
-
154
- .person-qualifications-empty {
158
+ .smrt-person-qualifications__empty {
155
159
  color: var(--smrt-color-on-surface-variant, inherit);
156
- padding: 1rem 0;
157
160
  }
158
161
  }
162
+
159
163
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-human-resources",
3
- "version": "0.60.15",
3
+ "version": "0.60.17",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "HR records for the SMRT framework: who works for an organization, as what, and with what standing — employment with dated terms, and qualifications with expiry",
6
6
  "type": "module",
@@ -30,12 +30,12 @@
30
30
  "./manifest.json": "./dist/manifest.json"
31
31
  },
32
32
  "dependencies": {
33
- "@happyvertical/logger": "^0.111.6",
34
- "@happyvertical/smrt-core": "0.60.15",
35
- "@happyvertical/smrt-tenancy": "0.60.15",
36
- "@happyvertical/smrt-types": "0.60.15",
37
- "@happyvertical/smrt-ui": "0.60.15",
38
- "@happyvertical/sql": "^0.111.6"
33
+ "@happyvertical/logger": "^0.112.2",
34
+ "@happyvertical/smrt-core": "0.60.17",
35
+ "@happyvertical/smrt-tenancy": "0.60.17",
36
+ "@happyvertical/smrt-types": "0.60.17",
37
+ "@happyvertical/smrt-ui": "0.60.17",
38
+ "@happyvertical/sql": "^0.112.2"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "svelte": "^5.57.0"
@@ -46,7 +46,7 @@
46
46
  }
47
47
  },
48
48
  "devDependencies": {
49
- "@happyvertical/smrt-vitest": "0.60.15",
49
+ "@happyvertical/smrt-vitest": "0.60.17",
50
50
  "@sveltejs/package": "^2.5.8",
51
51
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
52
52
  "@types/node": "24.13.6",