@mythpe/quasar-ui-qui 0.1.88 → 0.1.89

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mythpe/quasar-ui-qui",
3
- "version": "0.1.88",
3
+ "version": "0.1.89",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -175,9 +175,11 @@ export const useDtHelpers = (options: MaybeRefOrGetter<MDatatableProps>) => {
175
175
  return __('show_details')
176
176
  })
177
177
  const getFormTitle = computed(() => {
178
- const name = serviceName.value && typeof serviceName.value !== 'function' ? __(`choice.${pascalCase(pluralize(
179
- serviceName.value.split(
180
- '/').pop()))}`, 1) : ''
178
+ let name = ''
179
+ if (serviceName.value && typeof serviceName.value !== 'function') {
180
+ const s = serviceName.value?.toString()?.split('/').pop() ?? ''
181
+ name = __(`choice.${pascalCase(pluralize(s))}`, 1)
182
+ }
181
183
  return __(`replace.${formMode.value}`, { name })
182
184
  })
183
185
  const isGrid = computed(() => {
package/src/utils/Str.ts CHANGED
@@ -7,7 +7,8 @@
7
7
  */
8
8
 
9
9
  // import { plural as pluralCase, singular as singularCase } from '__pluralize'
10
- import __pluralize from './copy_pluralize'
10
+ // import __pluralize from './copy_pluralize'
11
+ import __pluralize from 'pluralize'
11
12
  import { camelCase, capitalCase, dotCase, kebabCase, pascalCase, snakeCase } from 'change-case'
12
13
  // console.log(__pluralize.plural())
13
14
  export const Str = {