@happyvertical/smrt-human-resources 0.55.15 → 0.55.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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/smrt-knowledge.json +3 -3
- package/dist/svelte/components/EmployeeForm.svelte +4 -1
- package/dist/svelte/components/EmployeeList.svelte +5 -2
- package/dist/svelte/components/ExpiringQualificationsList.svelte +5 -2
- package/dist/svelte/components/PersonQualifications.svelte +5 -2
- package/package.json +6 -6
package/dist/manifest.json
CHANGED
package/dist/smrt-knowledge.json
CHANGED
|
@@ -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.55.
|
|
6
|
+
"packageVersion": "0.55.17",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "da5c253f0cbe910454fdf97b10836a02743bc88ef81497c85d5627cd15582b41",
|
|
11
|
+
"packageJson": "8db744d024c9022e2ab8c5ebb7eb157b2f37b39bcfb1ae52945e52f32eae5f6b",
|
|
12
12
|
"agents": "441cce6da32d348df8bb6300d526f118d70efa5680c80615d373cc8ef98e95f4"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -170,7 +170,7 @@ function handleSubmit() {
|
|
|
170
170
|
}
|
|
171
171
|
</script>
|
|
172
172
|
|
|
173
|
-
<div class="employee-form-shell">
|
|
173
|
+
<div class="employee-form-shell" data-smrt-component="EmployeeForm">
|
|
174
174
|
<Form class="employee-form" onsubmit={handleSubmit}>
|
|
175
175
|
<div class="field">
|
|
176
176
|
<label for="{uid}-employee-number">
|
|
@@ -325,6 +325,8 @@ function handleSubmit() {
|
|
|
325
325
|
</div>
|
|
326
326
|
|
|
327
327
|
<style>
|
|
328
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
329
|
+
@layer smrt.theme {
|
|
328
330
|
.employee-form-shell :global(.employee-form) {
|
|
329
331
|
display: flex;
|
|
330
332
|
flex-direction: column;
|
|
@@ -366,4 +368,5 @@ function handleSubmit() {
|
|
|
366
368
|
gap: var(--smrt-spacing-sm, 0.5rem);
|
|
367
369
|
margin-top: var(--smrt-spacing-sm, 0.5rem);
|
|
368
370
|
}
|
|
371
|
+
}
|
|
369
372
|
</style>
|
|
@@ -31,11 +31,11 @@ const { employees, onselect, emptyMessage }: EmployeeListProps = $props();
|
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
33
|
{#if employees.length === 0}
|
|
34
|
-
<p class="employee-list-empty">
|
|
34
|
+
<p class="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">
|
|
38
|
+
<div class="employee-list-scroll" data-smrt-component="EmployeeList">
|
|
39
39
|
<table class="employee-list">
|
|
40
40
|
<caption class="employee-list-caption">{t(M['human_resources.employee_list.caption'])}</caption>
|
|
41
41
|
<thead>
|
|
@@ -101,6 +101,8 @@ const { employees, onselect, emptyMessage }: EmployeeListProps = $props();
|
|
|
101
101
|
{/if}
|
|
102
102
|
|
|
103
103
|
<style>
|
|
104
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
105
|
+
@layer smrt.theme {
|
|
104
106
|
.employee-list-scroll {
|
|
105
107
|
overflow-x: auto;
|
|
106
108
|
}
|
|
@@ -155,4 +157,5 @@ const { employees, onselect, emptyMessage }: EmployeeListProps = $props();
|
|
|
155
157
|
.employee-list-empty {
|
|
156
158
|
padding: 1rem 0;
|
|
157
159
|
}
|
|
160
|
+
}
|
|
158
161
|
</style>
|
|
@@ -38,11 +38,11 @@ function distance(daysUntilExpiry: number): string {
|
|
|
38
38
|
</script>
|
|
39
39
|
|
|
40
40
|
{#if sorted.length === 0}
|
|
41
|
-
<p class="expiring-qualifications-empty">
|
|
41
|
+
<p class="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">
|
|
45
|
+
<ul class="expiring-qualifications" data-smrt-component="ExpiringQualificationsList">
|
|
46
46
|
{#each sorted as item (item.id)}
|
|
47
47
|
<li class="expiring-qualification">
|
|
48
48
|
<div class="expiring-qualification-main">
|
|
@@ -70,6 +70,8 @@ function distance(daysUntilExpiry: number): string {
|
|
|
70
70
|
{/if}
|
|
71
71
|
|
|
72
72
|
<style>
|
|
73
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
74
|
+
@layer smrt.theme {
|
|
73
75
|
.expiring-qualifications {
|
|
74
76
|
list-style: none;
|
|
75
77
|
margin: 0;
|
|
@@ -123,4 +125,5 @@ function distance(daysUntilExpiry: number): string {
|
|
|
123
125
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
124
126
|
padding: 1rem 0;
|
|
125
127
|
}
|
|
128
|
+
}
|
|
126
129
|
</style>
|
|
@@ -46,11 +46,11 @@ function distance(daysUntilExpiry: number): string {
|
|
|
46
46
|
</script>
|
|
47
47
|
|
|
48
48
|
{#if qualifications.length === 0}
|
|
49
|
-
<p class="person-qualifications-empty">
|
|
49
|
+
<p class="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">
|
|
53
|
+
<ul class="person-qualifications" data-smrt-component="PersonQualifications">
|
|
54
54
|
{#each qualifications as qualification (qualification.id)}
|
|
55
55
|
{@const state = qualificationExpiryState(qualification, expiringSoonDays)}
|
|
56
56
|
<li class="person-qualification" data-state={state}>
|
|
@@ -101,6 +101,8 @@ function distance(daysUntilExpiry: number): string {
|
|
|
101
101
|
{/if}
|
|
102
102
|
|
|
103
103
|
<style>
|
|
104
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
105
|
+
@layer smrt.theme {
|
|
104
106
|
.person-qualifications {
|
|
105
107
|
list-style: none;
|
|
106
108
|
margin: 0;
|
|
@@ -153,4 +155,5 @@ function distance(daysUntilExpiry: number): string {
|
|
|
153
155
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
154
156
|
padding: 1rem 0;
|
|
155
157
|
}
|
|
158
|
+
}
|
|
156
159
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-human-resources",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.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",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@happyvertical/logger": "^0.103.4",
|
|
34
|
-
"@happyvertical/smrt-core": "0.55.
|
|
35
|
-
"@happyvertical/smrt-tenancy": "0.55.
|
|
36
|
-
"@happyvertical/smrt-types": "0.55.
|
|
37
|
-
"@happyvertical/smrt-ui": "0.55.
|
|
34
|
+
"@happyvertical/smrt-core": "0.55.17",
|
|
35
|
+
"@happyvertical/smrt-tenancy": "0.55.17",
|
|
36
|
+
"@happyvertical/smrt-types": "0.55.17",
|
|
37
|
+
"@happyvertical/smrt-ui": "0.55.17",
|
|
38
38
|
"@happyvertical/sql": "^0.103.4"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@happyvertical/smrt-vitest": "0.55.
|
|
49
|
+
"@happyvertical/smrt-vitest": "0.55.17",
|
|
50
50
|
"@sveltejs/package": "^2.5.8",
|
|
51
51
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
52
52
|
"@types/node": "24.13.6",
|