@mythpe/quasar-ui-qui 0.1.90 → 0.1.91
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/package.json +4 -2
- package/src/utils/Str.ts +4 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mythpe/quasar-ui-qui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.91",
|
|
4
4
|
"description": "MyTh Quasar UI Kit App Extension",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "MyTh Ahmed Faiz",
|
|
@@ -33,11 +33,12 @@
|
|
|
33
33
|
"axios": "^1.7.8",
|
|
34
34
|
"change-case": "^5.4.4",
|
|
35
35
|
"ckeditor5": "^43.3.1",
|
|
36
|
+
"pluralize-es": "^1.0.0",
|
|
36
37
|
"qs": "^6.13.1",
|
|
37
38
|
"radash": "^12.1.0",
|
|
38
39
|
"typed.js": "^2.1.0",
|
|
39
40
|
"vee-validate": "^4.14.7",
|
|
40
|
-
"vue-i18n": "^11.
|
|
41
|
+
"vue-i18n": "^11.1.2",
|
|
41
42
|
"vue3-signature": "^0.2.4"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
"@rollup/plugin-replace": "^6.0.1",
|
|
50
51
|
"@types/express": "^5.0.0",
|
|
51
52
|
"@types/node": "^22.10.1",
|
|
53
|
+
"@types/pluralize": "^0.0.33",
|
|
52
54
|
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
|
53
55
|
"@typescript-eslint/parser": "^7.16.0",
|
|
54
56
|
"autoprefixer": "^10.4.20",
|
package/src/utils/Str.ts
CHANGED
|
@@ -6,11 +6,9 @@
|
|
|
6
6
|
* Github: https://github.com/mythpe
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
// import __pluralize from './copy_pluralize'
|
|
11
|
-
import __pluralize from 'pluralize'
|
|
9
|
+
import { plural as pluralCase, singular as singularCase } from 'pluralize-es'
|
|
12
10
|
import { camelCase, capitalCase, dotCase, kebabCase, pascalCase, snakeCase } from 'change-case'
|
|
13
|
-
|
|
11
|
+
|
|
14
12
|
export const Str = {
|
|
15
13
|
/**
|
|
16
14
|
* Str vue3
|
|
@@ -94,14 +92,10 @@ export const Str = {
|
|
|
94
92
|
return string ? dotCase(string?.toString() || '') : ''
|
|
95
93
|
},
|
|
96
94
|
pluralize (string?: unknown): string {
|
|
97
|
-
|
|
98
|
-
return string ? __pluralize.plural(string?.toString() || '') : ''
|
|
99
|
-
// return ''
|
|
95
|
+
return string ? pluralCase(string?.toString() || '') : ''
|
|
100
96
|
},
|
|
101
97
|
singular (string?: unknown): string {
|
|
102
|
-
|
|
103
|
-
return string ? __pluralize.singular(string?.toString() || '') : ''
|
|
104
|
-
// return ''
|
|
98
|
+
return string ? singularCase(string?.toString() || '') : ''
|
|
105
99
|
},
|
|
106
100
|
flipChoice (data: Record<any, any>) {
|
|
107
101
|
const f: Record<any, any> = {}
|