@myparcel-dev/pdk-admin-preset-fontawesome 1.13.0

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 ADDED
@@ -0,0 +1,205 @@
1
+ # Changelog
2
+
3
+ <!-- MONOWEAVE:BELOW -->
4
+
5
+ ## [1.13.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-admin-preset-fontawesome@1.12.0...@myparcel-dev/pdk-admin-preset-fontawesome@1.13.0) "@myparcel-dev/pdk-admin-preset-fontawesome" (2025-12-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * migrate to [@myparcel-dev](https://github.com/myparcel-dev) scope ([#289](https://github.com/myparcelnl/js-pdk/issues/289)) ([ca169be](https://github.com/myparcelnl/js-pdk/commit/ca169bec42dcf7174ce20b1bfb392ae620b6c7fd))
11
+
12
+
13
+
14
+
15
+ ## [1.11.5](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.11.4...@myparcel-pdk/admin-preset-fontawesome@1.11.5) "@myparcel-pdk/admin-preset-fontawesome" (2025-11-10)
16
+
17
+
18
+
19
+
20
+ ## [1.5.4](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.5.3...@myparcel-pdk/admin-preset-fontawesome@1.5.4) "@myparcel-pdk/admin-preset-fontawesome" (2024-11-20)
21
+
22
+
23
+
24
+
25
+ ## [1.5.3](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.8...@myparcel-pdk/admin-preset-fontawesome@1.5.3) "@myparcel-pdk/admin-preset-fontawesome" (2024-10-24)
26
+
27
+
28
+
29
+
30
+ ## [1.0.8](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.7...@myparcel-pdk/admin-preset-fontawesome@1.0.8) "@myparcel-pdk/admin-preset-fontawesome" (2024-10-24)
31
+
32
+
33
+
34
+
35
+ ## [1.0.4](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.3...@myparcel-pdk/admin-preset-fontawesome@1.0.4) "@myparcel-pdk/admin-preset-fontawesome" (2024-10-04)
36
+
37
+
38
+
39
+
40
+ ## [1.0.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.12...@myparcel-pdk/admin-preset-fontawesome@1.0.0) "@myparcel-pdk/admin-preset-fontawesome" (2024-04-11)
41
+
42
+
43
+ ### ⚠ BREAKING CHANGES
44
+
45
+ * update node requirement to 20
46
+
47
+ ### Miscellaneous Chores
48
+
49
+ * update node requirement to 20 ([e3f867f](https://github.com/myparcelnl/js-pdk/commit/e3f867fd3e19245154748a6858dbad4b56673fa3))
50
+
51
+
52
+
53
+
54
+ ## [1.0.0-beta.3](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-beta.2...@myparcel-pdk/admin-preset-fontawesome@1.0.0-beta.3) "@myparcel-pdk/admin-preset-fontawesome" (2024-03-14)
55
+
56
+
57
+
58
+
59
+ ## [1.0.0-beta.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.12...@myparcel-pdk/admin-preset-fontawesome@1.0.0-beta.0) "@myparcel-pdk/admin-preset-fontawesome" (2024-03-06)
60
+
61
+
62
+ ### Bug Fixes
63
+
64
+ * clean up type and constant imports ([f29b3c0](https://github.com/myparcelnl/js-pdk/commit/f29b3c077d42c45f6bc50a96177bb3e4c2037bf9))
65
+
66
+
67
+
68
+
69
+ ## [1.0.0-alpha.107](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.106...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.107) "@myparcel-pdk/admin-preset-fontawesome" (2023-09-08)
70
+
71
+
72
+
73
+
74
+ ## [1.0.0-alpha.105](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.104...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.105) "@myparcel-pdk/admin-preset-fontawesome" (2023-09-06)
75
+
76
+
77
+
78
+
79
+ ## [1.0.0-alpha.96](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.95...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.96) "@myparcel-pdk/admin-preset-fontawesome" (2023-08-08)
80
+
81
+
82
+
83
+
84
+ ## [1.0.0-alpha.95](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.94...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.95) "@myparcel-pdk/admin-preset-fontawesome" (2023-08-04)
85
+
86
+
87
+
88
+
89
+ ## [1.0.0-alpha.93](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.92...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.93) "@myparcel-pdk/admin-preset-fontawesome" (2023-08-03)
90
+
91
+
92
+ ### Bug Fixes
93
+
94
+ * **test:** improve test ids ([67f09ed](https://github.com/myparcelnl/js-pdk/commit/67f09ed1ffe051beffb34c3eac1bd1907fee535d))
95
+
96
+
97
+
98
+
99
+ ## [1.0.0-alpha.91](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.90...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.91) "@myparcel-pdk/admin-preset-fontawesome" (2023-08-03)
100
+
101
+
102
+
103
+
104
+ ## [1.0.0-alpha.88](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.87...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.88) "@myparcel-pdk/admin-preset-fontawesome" (2023-07-26)
105
+
106
+
107
+ ### Bug Fixes
108
+
109
+ * **npm:** update repository field ([e940854](https://github.com/myparcelnl/js-pdk/commit/e940854ba1d99c0fcdada8b66f88a7c7e6060272))
110
+
111
+
112
+
113
+
114
+ ## [1.0.0-alpha.83](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.82...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.83) "@myparcel-pdk/admin-preset-fontawesome" (2023-07-11)
115
+
116
+
117
+
118
+
119
+ ## [1.0.0-alpha.81](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.80...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.81) "@myparcel-pdk/admin-preset-fontawesome" (2023-07-04)
120
+
121
+
122
+
123
+
124
+ ## [1.0.0-alpha.79](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.78...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.79) "@myparcel-pdk/admin-preset-fontawesome" (2023-07-03)
125
+
126
+
127
+
128
+
129
+ ## [1.0.0-alpha.70](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.69...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.70) "@myparcel-pdk/admin-preset-fontawesome" (2023-06-06)
130
+
131
+
132
+
133
+
134
+ ## [1.0.0-alpha.69](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.68...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.69) "@myparcel-pdk/admin-preset-fontawesome" (2023-06-06)
135
+
136
+
137
+
138
+
139
+ ## [1.0.0-alpha.65](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.64...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.65) "@myparcel-pdk/admin-preset-fontawesome" (2023-05-31)
140
+
141
+
142
+ ### Bug Fixes
143
+
144
+ * **meta:** fix all ts errors ([dfa0bbb](https://github/myparcelnl/js-pdk/commit/dfa0bbb308c4863ce0fb4c9a0d55f2b5fa8fdb6c))
145
+
146
+
147
+
148
+
149
+ ## [1.0.0-alpha.64](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.63...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.64) "@myparcel-pdk/admin-preset-fontawesome" (2023-05-26)
150
+
151
+
152
+ ### Bug Fixes
153
+
154
+ * restore missing types ([903cfb9](https://github/myparcelnl/js-pdk/commit/903cfb95f161bb5b49fbb91c4f96a7e44c524db8))
155
+
156
+
157
+
158
+
159
+ ## [1.0.0-alpha.63](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.62...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.63) "@myparcel-pdk/admin-preset-fontawesome" (2023-05-25)
160
+
161
+
162
+
163
+
164
+ ## [1.0.0-alpha.62](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.61...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.62) "@myparcel-pdk/admin-preset-fontawesome" (2023-05-25)
165
+
166
+
167
+ ### ⚠ BREAKING CHANGES
168
+
169
+ * change all packages so imports don't need /src anymore
170
+
171
+ ### Code Refactoring
172
+
173
+ * change all packages so imports don't need /src anymore ([892306b](https://github/myparcelnl/js-pdk/commit/892306bd3307fe8d5d011bbf6eb7654f7365347a))
174
+
175
+
176
+
177
+
178
+ ## [1.0.0-alpha.56](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.55...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.56) "@myparcel-pdk/admin-preset-fontawesome" (2023-05-02)
179
+
180
+
181
+
182
+
183
+ ## [1.0.0-alpha.45](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.44...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.45) "@myparcel-pdk/admin-preset-fontawesome" (2023-04-12)
184
+
185
+
186
+
187
+
188
+ ## [1.0.0-alpha.41](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.40...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.41) "@myparcel-pdk/admin-preset-fontawesome" (2023-04-05)
189
+
190
+
191
+
192
+
193
+ ## [1.0.0-alpha.14](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.13...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.14) "@myparcel-pdk/admin-preset-fontawesome" (2023-03-10)
194
+
195
+
196
+
197
+
198
+ ## [1.0.0-alpha.12](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.11...@myparcel-pdk/admin-preset-fontawesome@1.0.0-alpha.12) "@myparcel-pdk/admin-preset-fontawesome" (2023-03-09)
199
+
200
+
201
+ ### Features
202
+
203
+ * add admin-preset-fontawesome ([e023b83](https://github/myparcelnl/js-pdk/commit/e023b833bd1da1db62a226b7ac43675a22ca3583))
204
+
205
+
@@ -0,0 +1,12 @@
1
+ import { type IconProps } from '@myparcel-dev/pdk-admin';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IconProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IconProps>>>, {}, {}>;
3
+ export default _default;
4
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
+ type __VLS_TypePropsToOption<T> = {
6
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
7
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
8
+ } : {
9
+ type: import('vue').PropType<T[K]>;
10
+ required: true;
11
+ };
12
+ };
@@ -0,0 +1 @@
1
+ export { default as FontAwesomeIcon } from './FontAwesomeIcon.vue';
@@ -0,0 +1,2 @@
1
+ import { AdminIcon } from '@myparcel-dev/pdk-admin';
2
+ export declare const convertToFontAwesomeIcon: ((icon: AdminIcon) => string | undefined) & import("lodash").MemoizedFunction;
@@ -0,0 +1 @@
1
+ export * from './components';
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@myparcel-dev/pdk-admin-preset-fontawesome",
3
+ "version": "1.13.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/myparcelnl/js-pdk.git",
7
+ "directory": "apps/admin-preset-fontawesome"
8
+ },
9
+ "license": "MIT",
10
+ "sideEffects": false,
11
+ "type": "module",
12
+ "exports": "./src/index.ts",
13
+ "types": "./dist/index.d.ts",
14
+ "files": [
15
+ "./src",
16
+ "./dist"
17
+ ],
18
+ "scripts": {
19
+ "build": "run ws:vue:build \"$(pwd)\" || true",
20
+ "clean": "run ws:clean \"$(pwd)\"",
21
+ "lint": "run ws:lint \"$(pwd)\"",
22
+ "lint:fix": "run ws:lint:fix \"$(pwd)\"",
23
+ "test": "run ws:test \"$(pwd)\"",
24
+ "test:coverage": "run ws:test:coverage \"$(pwd)\"",
25
+ "test:run": "run ws:test:run \"$(pwd)\"",
26
+ "test:update": "run ws:test:update \"$(pwd)\"",
27
+ "typecheck": "run ws:vue:typecheck \"$(pwd)\""
28
+ },
29
+ "dependencies": {
30
+ "@myparcel-dev/pdk-admin": "^1.13.0",
31
+ "vite": "^5.4.10",
32
+ "vue": "^3.3.0",
33
+ "vue-tsc": "^2.0.0"
34
+ },
35
+ "devDependencies": {
36
+ "@myparcel-dev/pdk-admin-component-tests": "1.13.0",
37
+ "@myparcel-dev/pdk-build-vite": "1.0.0-alpha.0",
38
+ "typescript": "^5.2.2",
39
+ "vitest": "^2.1.3"
40
+ },
41
+ "engines": {
42
+ "node": ">=20"
43
+ },
44
+ "volta": {
45
+ "extends": "../../package.json"
46
+ },
47
+ "publishConfig": {
48
+ "access": "public"
49
+ },
50
+ "deployGroup": "admin"
51
+ }
@@ -0,0 +1,7 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`exports > exports from index.ts 1`] = `
4
+ [
5
+ "FontAwesomeIcon",
6
+ ]
7
+ `;
@@ -0,0 +1,8 @@
1
+ import {describe, expect, it} from 'vitest';
2
+ import * as index from '../index';
3
+
4
+ describe('exports', () => {
5
+ it('exports from index.ts', () => {
6
+ expect(Object.keys(index).sort()).toMatchSnapshot();
7
+ });
8
+ });
@@ -0,0 +1,6 @@
1
+ import {executePdkComponentTests} from '@myparcel-dev/pdk-admin-component-tests';
2
+ import {FontAwesomeIcon} from '../components';
3
+
4
+ executePdkComponentTests({
5
+ Icon: FontAwesomeIcon,
6
+ });
@@ -0,0 +1,17 @@
1
+ <template>
2
+ <span
3
+ v-if="faIcon"
4
+ v-test="[AdminComponent.Icon, icon]"
5
+ :class="faIcon"
6
+ role="none" />
7
+ </template>
8
+
9
+ <script lang="ts" setup>
10
+ import {computed} from 'vue';
11
+ import {AdminComponent, type IconProps} from '@myparcel-dev/pdk-admin';
12
+ import {convertToFontAwesomeIcon} from '../convertToFontAwesomeIcon';
13
+
14
+ const props = defineProps<IconProps>();
15
+
16
+ const faIcon = computed(() => convertToFontAwesomeIcon(props.icon));
17
+ </script>
@@ -0,0 +1 @@
1
+ export {default as FontAwesomeIcon} from './FontAwesomeIcon.vue';
@@ -0,0 +1,25 @@
1
+ import {memoize} from 'lodash-unified';
2
+ import {AdminIcon} from '@myparcel-dev/pdk-admin';
3
+
4
+ const PDK_FONT_AWESOME_ICON_MAP: Partial<Record<AdminIcon, string>> = {
5
+ [AdminIcon.Add]: 'fas fa-plus',
6
+ [AdminIcon.ArrowDown]: 'fas fa-arrow-down',
7
+ [AdminIcon.ArrowUp]: 'fas fa-arrow-up',
8
+ [AdminIcon.Close]: 'fas fa-times',
9
+ [AdminIcon.Delete]: 'fas fa-trash',
10
+ [AdminIcon.Download]: 'fas fa-download',
11
+ [AdminIcon.Edit]: 'fas fa-edit',
12
+ [AdminIcon.Export]: 'fas fa-file-export',
13
+ [AdminIcon.External]: 'fas fa-external-link-alt',
14
+ [AdminIcon.No]: 'fas fa-times',
15
+ [AdminIcon.Print]: 'fas fa-print',
16
+ [AdminIcon.Refresh]: 'fas fa-sync',
17
+ [AdminIcon.Return]: 'fas fa-reply',
18
+ [AdminIcon.Save]: 'fas fa-save',
19
+ [AdminIcon.Spinner]: 'fas fa-spinner',
20
+ [AdminIcon.Yes]: 'fas fa-check',
21
+ };
22
+
23
+ export const convertToFontAwesomeIcon = memoize((icon: AdminIcon): string | undefined => {
24
+ return PDK_FONT_AWESOME_ICON_MAP[icon];
25
+ });
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,7 @@
1
+ /* eslint-disable */
2
+
3
+ declare module '*.vue' {
4
+ import type {DefineComponent} from 'vue';
5
+ const component: DefineComponent<{}, {}, any>;
6
+ export default component;
7
+ }