@imaginario27/air-ui-utils 1.0.7 → 1.0.8

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.
@@ -1,6 +1,6 @@
1
- export interface HeaderConfig {
2
- field: string
3
- callback?: (value: any) => string
4
- }
5
-
1
+ export interface HeaderConfig {
2
+ field: string
3
+ callback?: (value: any) => string
4
+ }
5
+
6
6
  export type Headers = Record<string, string | HeaderConfig>
package/nuxt.config.ts CHANGED
@@ -1,13 +1,13 @@
1
- // https://nuxt.com/docs/api/configuration/nuxt-config
2
-
3
- export default defineNuxtConfig({
4
- compatibilityDate: "2024-11-01",
5
- devtools: { enabled: false },
6
- ssr: false,
7
-
8
- imports: {
9
- dirs: [
10
- "models/**"
11
- ],
12
- },
1
+ // https://nuxt.com/docs/api/configuration/nuxt-config
2
+
3
+ export default defineNuxtConfig({
4
+ compatibilityDate: "2024-11-01",
5
+ devtools: { enabled: false },
6
+ ssr: false,
7
+
8
+ imports: {
9
+ dirs: [
10
+ "models/**"
11
+ ],
12
+ },
13
13
  })
package/package.json CHANGED
@@ -1,38 +1,39 @@
1
- {
2
- "name": "@imaginario27/air-ui-utils",
3
- "version": "1.0.7",
4
- "author": "imaginario27",
5
- "type": "module",
6
- "homepage": "https://air-ui.netlify.app/",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/imaginario27/air-ui.git"
10
- },
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "scripts": {
15
- "build": "nuxt build",
16
- "dev": "nuxt dev",
17
- "generate": "nuxt generate",
18
- "preview": "nuxt preview",
19
- "postinstall": "nuxt prepare",
20
- "test": "vitest",
21
- "typecheck": "vue-tsc --noEmit -p tsconfig.typecheck.json"
22
- },
23
- "dependencies": {
24
- "jspdf": "3.0.3",
25
- "jspdf-autotable": "5.0.2",
26
- "nuxt": "4.1.2",
27
- "vue": "3.5.22",
28
- "vue-router": "4.5.1"
29
- },
30
- "devDependencies": {
31
- "@vitest/coverage-v8": "3.2.4",
32
- "happy-dom": "18.0.1",
33
- "prettier": "3.6.2",
34
- "ts-node": "10.9.2",
35
- "typescript": "5.9.3",
36
- "vitest": "3.2.4"
37
- }
38
- }
1
+ {
2
+ "name": "@imaginario27/air-ui-utils",
3
+ "version": "1.0.8",
4
+ "author": "imaginario27",
5
+ "type": "module",
6
+ "homepage": "https://air-ui.netlify.app/",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/imaginario27/air-ui.git"
10
+ },
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "scripts": {
15
+ "build": "nuxt build",
16
+ "dev": "nuxt dev",
17
+ "generate": "nuxt generate",
18
+ "preview": "nuxt preview",
19
+ "postinstall": "nuxt prepare",
20
+ "test": "vitest",
21
+ "typecheck": "vue-tsc --noEmit -p tsconfig.typecheck.json"
22
+ },
23
+ "dependencies": {
24
+ "jspdf": "4.0.0",
25
+ "jspdf-autotable": "5.0.7",
26
+ "nuxt": "4.3.0",
27
+ "vue": "3.5.27",
28
+ "vue-router": "5.0.1"
29
+ },
30
+ "devDependencies": {
31
+ "@nuxt/test-utils": "3.23.0",
32
+ "@vitest/coverage-v8": "4.0.18",
33
+ "happy-dom": "20.4.0",
34
+ "prettier": "3.8.1",
35
+ "ts-node": "10.9.2",
36
+ "typescript": "5.9.3",
37
+ "vitest": "4.0.18"
38
+ }
39
+ }
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
- {
2
- // https://nuxt.com/docs/guide/concepts/typescript
3
- "extends": "./.nuxt/tsconfig.json",
4
- "compilerOptions": {
5
- "types": ["vitest/globals"],
6
- }
7
- }
1
+ {
2
+ // https://nuxt.com/docs/guide/concepts/typescript
3
+ "extends": "./.nuxt/tsconfig.json",
4
+ "compilerOptions": {
5
+ "types": ["vitest/globals"],
6
+ }
7
+ }
package/utils/rating.ts CHANGED
@@ -7,9 +7,9 @@
7
7
  */
8
8
  export const getRatingIndicator = (
9
9
  value: number,
10
- emptyIndicator: string = 'mdiStarOutline',
11
- halfIndicator: string = 'mdiStarHalfFull',
12
- fullIndicator: string = 'mdiStar'
10
+ emptyIndicator: string = 'mdi:star-outline',
11
+ halfIndicator: string = 'mdi:star-half-full',
12
+ fullIndicator: string = 'mdi:star'
13
13
  ): string[] => {
14
14
  const clamped = Math.min(5, Math.max(0, Math.round(value * 2) / 2))
15
15
  const icons: string[] = []