@polymarbot/nuxt-layer-shadcn-ui 0.8.3 → 0.8.5
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/app/components/ui/DataTable/index.vue +3 -1
- package/app/components/ui/DataTable/types.ts +2 -0
- package/app/components/ui/InputCurrency/index.vue +1 -1
- package/app/components/ui/Modal/index.stories.ts +2 -0
- package/app/components/ui/Modal/index.vue +2 -0
- package/app/components/ui/Modal/types.ts +1 -0
- package/package.json +3 -3
|
@@ -137,7 +137,9 @@ function formatCellValue (value: unknown, column: DataTableColumn): string {
|
|
|
137
137
|
return formatDateTime((value as number) * 1000).split(' ').join('\n')
|
|
138
138
|
|
|
139
139
|
case 'currency':
|
|
140
|
-
return formatCurrency(value as number | string, column.currency ?? '
|
|
140
|
+
return formatCurrency(value as number | string, column.currency ?? 'USD', {
|
|
141
|
+
currencyDisplay: column.currencyDisplay,
|
|
142
|
+
})
|
|
141
143
|
|
|
142
144
|
case 'empty':
|
|
143
145
|
return ''
|
|
@@ -24,6 +24,8 @@ export interface DataTableColumn {
|
|
|
24
24
|
sortable?: boolean
|
|
25
25
|
/** Currency code for 'currency' type (e.g., 'USD', 'JPY'). Default: 'USD' */
|
|
26
26
|
currency?: string
|
|
27
|
+
/** How to display the currency for 'currency' type. Default: 'symbol' */
|
|
28
|
+
currencyDisplay?: 'symbol' | 'narrowSymbol' | 'code' | 'name'
|
|
27
29
|
/** Custom class applied to the body cell (`<td>`) container */
|
|
28
30
|
class?: string
|
|
29
31
|
/** Custom class applied to the header cell (`<th>`) container */
|
|
@@ -16,6 +16,7 @@ const meta = {
|
|
|
16
16
|
loading: { control: 'boolean' },
|
|
17
17
|
disabled: { control: 'boolean' },
|
|
18
18
|
confirmDisabled: { control: 'boolean' },
|
|
19
|
+
modal: { control: 'boolean' },
|
|
19
20
|
showCancel: { control: 'boolean' },
|
|
20
21
|
showClose: { control: 'boolean' },
|
|
21
22
|
closeOnClickOutside: { control: 'boolean' },
|
|
@@ -33,6 +34,7 @@ const meta = {
|
|
|
33
34
|
loading: false,
|
|
34
35
|
disabled: false,
|
|
35
36
|
confirmDisabled: false,
|
|
37
|
+
modal: true,
|
|
36
38
|
showCancel: true,
|
|
37
39
|
showClose: true,
|
|
38
40
|
closeOnClickOutside: false,
|
|
@@ -14,6 +14,7 @@ import type { ModalProps } from './types'
|
|
|
14
14
|
defineOptions({ inheritAttrs: false })
|
|
15
15
|
|
|
16
16
|
const props = withDefaults(defineProps<ModalProps>(), {
|
|
17
|
+
modal: true,
|
|
17
18
|
showCancel: true,
|
|
18
19
|
showClose: true,
|
|
19
20
|
closeOnClickOutside: false,
|
|
@@ -90,6 +91,7 @@ const contentClass = computed(() =>
|
|
|
90
91
|
<template>
|
|
91
92
|
<Dialog
|
|
92
93
|
:open="dialogOpen"
|
|
94
|
+
:modal="modal"
|
|
93
95
|
@update:open="onOpenUpdate"
|
|
94
96
|
>
|
|
95
97
|
<DialogTrigger
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polymarbot/nuxt-layer-shadcn-ui",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "Nuxt layer providing shadcn-vue based UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@polymarbot/nuxt-layer-basic": "^0.1",
|
|
21
|
-
"@polymarbot/uitls-shared": "^0.5",
|
|
21
|
+
"@polymarbot/uitls-shared": "^0.5.1",
|
|
22
22
|
"@tanstack/vue-table": "^8.21.3",
|
|
23
23
|
"@types/lodash-es": "^4.17.12",
|
|
24
24
|
"@types/qrcode": "^1.5.6",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"vue-i18n": "^11",
|
|
43
43
|
"vue-router": "^4 || ^5"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "e84dd247e6f1c960c3ba63b3748c1f3d14f77fb1"
|
|
46
46
|
}
|