quasar-ui-sellmate-ui-kit 2.2.1 → 2.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-sellmate-ui-kit",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "author": "Sellmate Dev Team <dev@sellmate.co.kr>",
5
5
  "description": "Sellmate UI Kit",
6
6
  "license": "MIT",
@@ -173,6 +173,38 @@
173
173
  '12월',
174
174
  ],
175
175
  },
176
+ ja: {
177
+ today: '今日',
178
+ daysShort: ['日', '月', '火', '水', '木', '金', '土'],
179
+ months: [
180
+ '1月',
181
+ '2月',
182
+ '3月',
183
+ '4月',
184
+ '5月',
185
+ '6月',
186
+ '7月',
187
+ '8月',
188
+ '9月',
189
+ '10月',
190
+ '11月',
191
+ '12月',
192
+ ],
193
+ monthsShort: [
194
+ '1月',
195
+ '2月',
196
+ '3月',
197
+ '4月',
198
+ '5月',
199
+ '6月',
200
+ '7月',
201
+ '8月',
202
+ '9月',
203
+ '10月',
204
+ '11月',
205
+ '12月',
206
+ ],
207
+ },
176
208
  };
177
209
 
178
210
  export default {
@@ -60,7 +60,7 @@
60
60
  class="reset-to-today-btn no-shadow no-hover"
61
61
  unelevated
62
62
  text-color="black"
63
- label="오늘"
63
+ :label="lang ? locale[lang].today : '오늘'"
64
64
  @click="resetDate"
65
65
  />
66
66
  </q-date>
@@ -111,6 +111,7 @@
111
111
  <script>
112
112
  const locale = {
113
113
  ko: {
114
+ today: '오늘',
114
115
  daysShort: ['일', '월', '화', '수', '목', '금', '토'],
115
116
  months: [
116
117
  '1월',
@@ -141,6 +142,38 @@
141
142
  '12월',
142
143
  ],
143
144
  },
145
+ ja: {
146
+ today: '今日',
147
+ daysShort: ['日', '月', '火', '水', '木', '金', '土'],
148
+ months: [
149
+ '1月',
150
+ '2月',
151
+ '3月',
152
+ '4月',
153
+ '5月',
154
+ '6月',
155
+ '7月',
156
+ '8月',
157
+ '9月',
158
+ '10月',
159
+ '11月',
160
+ '12月',
161
+ ],
162
+ monthsShort: [
163
+ '1月',
164
+ '2月',
165
+ '3月',
166
+ '4月',
167
+ '5月',
168
+ '6月',
169
+ '7月',
170
+ '8月',
171
+ '9月',
172
+ '10月',
173
+ '11月',
174
+ '12月',
175
+ ],
176
+ },
144
177
  };
145
178
  import { defineComponent, ref, watch } from 'vue';
146
179
  import { QInput, QBtn, QDate, QMenu, QIcon, QSeparator, date } from 'quasar';
@@ -531,7 +564,7 @@
531
564
 
532
565
  > .reset-to-today-btn {
533
566
  padding: 0;
534
- width: 26px;
567
+ width: 28px;
535
568
  height: 22px;
536
569
  min-height: 22px;
537
570
  position: absolute;
@@ -126,6 +126,38 @@
126
126
  'Dec',
127
127
  ],
128
128
  },
129
+ ja: {
130
+ today: '今日',
131
+ daysShort: ['日', '月', '火', '水', '木', '金', '土'],
132
+ months: [
133
+ '1月',
134
+ '2月',
135
+ '3月',
136
+ '4月',
137
+ '5月',
138
+ '6月',
139
+ '7月',
140
+ '8月',
141
+ '9月',
142
+ '10月',
143
+ '11月',
144
+ '12月',
145
+ ],
146
+ monthsShort: [
147
+ '1月',
148
+ '2月',
149
+ '3月',
150
+ '4月',
151
+ '5月',
152
+ '6月',
153
+ '7月',
154
+ '8月',
155
+ '9月',
156
+ '10月',
157
+ '11月',
158
+ '12月',
159
+ ],
160
+ },
129
161
  };
130
162
  export default {
131
163
  name: 'SDateTimePicker',
@@ -93,7 +93,7 @@
93
93
  emits: ['update:modelValue'],
94
94
  setup(props, { emit }) {
95
95
  const model = ref(props.modelValue);
96
- const language = { ko: { am: '오전', pm: '오후' }, en: { am: 'AM', pm: 'PM' } };
96
+ const language = { ko: { am: '오전', pm: '오후' }, en: { am: 'AM', pm: 'PM' }, ja: { am: '午前', pm: '午後' } };
97
97
 
98
98
  function timeFormat(time) {
99
99
  const timeRegex = props.useSecond ? /(\d{2}):(\d{2}):(\d{2})/ : /(\d{2}):(\d{2})/;
@@ -139,7 +139,7 @@
139
139
  },
140
140
  },
141
141
  setup(props) {
142
- const language = { ko: { am: '오전', pm: '오후' }, en: { am: 'AM', pm: 'PM' } };
142
+ const language = { ko: { am: '오전', pm: '오후' }, en: { am: 'AM', pm: 'PM' }, ja: { am: '午前', pm: '午後' } };
143
143
  const model = useModelBinder(props);
144
144
  const modelFormat = props.useSecond ? 'HH:mm:ss' : 'HH:mm';
145
145
  const timeRegex = props.useSecond ? /(\d{2}):(\d{2}):(\d{2})/ : /(\d{2}):(\d{2})/;