@polymarbot/nuxt-layer-shadcn-ui 0.6.1 → 0.6.2

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.
@@ -0,0 +1,4 @@
1
+ {
2
+ "endPlaceholder": "Max",
3
+ "startPlaceholder": "Min"
4
+ }
@@ -10,13 +10,17 @@ const meta = {
10
10
  end: { control: 'number' },
11
11
  min: { control: 'number' },
12
12
  max: { control: 'number' },
13
+ startPlaceholder: { control: 'text' },
14
+ endPlaceholder: { control: 'text' },
13
15
  disabled: { control: 'boolean' },
14
16
  },
15
17
  args: {
16
- start: 20,
17
- end: 80,
18
+ start: undefined,
19
+ end: undefined,
18
20
  min: 0,
19
21
  max: 100,
22
+ startPlaceholder: undefined,
23
+ endPlaceholder: undefined,
20
24
  disabled: false,
21
25
  },
22
26
  render: args => ({
@@ -8,6 +8,8 @@ const props = withDefaults(defineProps<InputRangeProps>(), {
8
8
  end: undefined,
9
9
  min: 0,
10
10
  max: undefined,
11
+ startPlaceholder: undefined,
12
+ endPlaceholder: undefined,
11
13
  })
12
14
 
13
15
  const emit = defineEmits<{
@@ -16,6 +18,7 @@ const emit = defineEmits<{
16
18
  }>()
17
19
 
18
20
  const { t } = useI18n()
21
+ const T = useTranslations('components.ui.InputRange')
19
22
 
20
23
  const start = computed({
21
24
  get: () => props.start,
@@ -35,6 +38,7 @@ const end = computed({
35
38
  v-bind="$attrs"
36
39
  :min="min"
37
40
  :max="end ?? max"
41
+ :placeholder="startPlaceholder ?? T('startPlaceholder')"
38
42
  fluid
39
43
  />
40
44
  <span class="leading-0 text-muted-foreground">
@@ -45,6 +49,7 @@ const end = computed({
45
49
  v-bind="$attrs"
46
50
  :min="start ?? min"
47
51
  :max="max"
52
+ :placeholder="endPlaceholder ?? T('endPlaceholder')"
48
53
  fluid
49
54
  />
50
55
  </div>
@@ -5,4 +5,8 @@ export interface InputRangeProps extends /* @vue-ignore */ InputNumberProps {
5
5
  end?: number
6
6
  min?: number
7
7
  max?: number
8
+ /** Placeholder for start input */
9
+ startPlaceholder?: string
10
+ /** Placeholder for end input */
11
+ endPlaceholder?: string
8
12
  }
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "لا توجد عناصر"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "أقصى",
56
+ "startPlaceholder": "أدنى"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} من {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "Keine Elemente"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "Maximum",
56
+ "startPlaceholder": "Minimum"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} von {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "No items"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "Max",
56
+ "startPlaceholder": "Min"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} of {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "Sin elementos"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "Máximo",
56
+ "startPlaceholder": "Mínimo"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} de {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "Aucun élément"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "Max",
56
+ "startPlaceholder": "Min"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} sur {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "कोई आइटम नहीं"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "अधिकतम",
56
+ "startPlaceholder": "न्यूनतम"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} में से {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "Tidak ada item"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "Maksimal",
56
+ "startPlaceholder": "Minimal"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} dari {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "Nessun elemento"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "Massimo",
56
+ "startPlaceholder": "Minimo"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} di {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "アイテムなし"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "最大値",
56
+ "startPlaceholder": "最小値"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}〜{last}件 / 全{total}件"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "항목 없음"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "최대값",
56
+ "startPlaceholder": "최소값"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} / {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "Geen items"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "Maximum",
56
+ "startPlaceholder": "Minimum"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} van {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "Brak elementów"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "Maksimum",
56
+ "startPlaceholder": "Minimum"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} z {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "Sem itens"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "Máximo",
56
+ "startPlaceholder": "Mínimo"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} de {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "Нет элементов"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "Максимум",
56
+ "startPlaceholder": "Минимум"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} из {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "ไม่มีรายการ"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "สูงสุด",
56
+ "startPlaceholder": "ต่ำสุด"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "รายการที่ {first}–{last} จากทั้งหมด {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "Öğe yok"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "Maks",
56
+ "startPlaceholder": "Min"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} / {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "Không có mục"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "Tối đa",
56
+ "startPlaceholder": "Tối thiểu"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} của {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "无项目"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "最大值",
56
+ "startPlaceholder": "最小值"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} 共 {total}"
56
60
  },
@@ -51,6 +51,10 @@
51
51
  "Dropdown": {
52
52
  "empty": "沒有項目"
53
53
  },
54
+ "InputRange": {
55
+ "endPlaceholder": "最大值",
56
+ "startPlaceholder": "最小值"
57
+ },
54
58
  "Pagination": {
55
59
  "pageReport": "{first}–{last} 共 {total}"
56
60
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polymarbot/nuxt-layer-shadcn-ui",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Nuxt layer providing shadcn-vue based UI components",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -42,5 +42,5 @@
42
42
  "vue-i18n": "^11",
43
43
  "vue-router": "^4 || ^5"
44
44
  },
45
- "gitHead": "6d666cbb075bfeae008655dcb644bcac99f70ff4"
45
+ "gitHead": "fa45348c0fd5ef56ec2c3e57b835dbd9774d6c8c"
46
46
  }