mediacube-ui 0.1.293 → 0.1.295

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.295](https://github.com/MediaCubeCo/mcui/compare/v0.1.294...v0.1.295) (2024-07-15)
6
+
7
+ ### [0.1.294](https://github.com/MediaCubeCo/mcui/compare/v0.1.293...v0.1.294) (2024-07-15)
8
+
5
9
  ### [0.1.293](https://github.com/MediaCubeCo/mcui/compare/v0.1.292...v0.1.293) (2024-07-12)
6
10
 
7
11
  ### [0.1.292](https://github.com/MediaCubeCo/mcui/compare/v0.1.291...v0.1.292) (2024-07-11)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.293",
3
+ "version": "0.1.295",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -234,7 +234,19 @@ export default {
234
234
  type: String,
235
235
  required: true,
236
236
  },
237
-
237
+ /**
238
+ * плейсхолдеры для короткого обозначения даты (для маски dd.mm.yyyy)
239
+ * {
240
+ * date: 'd',
241
+ * month: 'm',
242
+ * year: 'y',
243
+ * }
244
+ *
245
+ */
246
+ dateMaskPlaceholder: {
247
+ type: Object,
248
+ default: () => ({}),
249
+ },
238
250
  /**
239
251
  * textarea-autosize Min height
240
252
  *
@@ -426,9 +438,27 @@ export default {
426
438
  mask: Date,
427
439
  autofix: true,
428
440
  blocks: {
429
- d: { mask: IMask.MaskedRange, placeholderChar: 'd', from: 1, to: 31, maxLength: 2 },
430
- m: { mask: IMask.MaskedRange, placeholderChar: 'm', from: 1, to: 12, maxLength: 2 },
431
- Y: { mask: IMask.MaskedRange, placeholderChar: 'y', from: 1900, to: 2999, maxLength: 4 },
441
+ d: {
442
+ mask: IMask.MaskedRange,
443
+ placeholderChar: this.dateMaskPlaceholder.date || 'd',
444
+ from: 1,
445
+ to: 31,
446
+ maxLength: 2,
447
+ },
448
+ m: {
449
+ mask: IMask.MaskedRange,
450
+ placeholderChar: this.dateMaskPlaceholder.month || 'm',
451
+ from: 1,
452
+ to: 12,
453
+ maxLength: 2,
454
+ },
455
+ Y: {
456
+ mask: IMask.MaskedRange,
457
+ placeholderChar: this.dateMaskPlaceholder.year || 'y',
458
+ from: 1900,
459
+ to: 2999,
460
+ maxLength: 4,
461
+ },
432
462
  },
433
463
  }
434
464
  },
@@ -177,6 +177,12 @@ export default {
177
177
  this.checkInitTab()
178
178
  })
179
179
  },
180
+ activeTab(val, oldVal) {
181
+ if (val !== oldVal)
182
+ this.$nextTick(() => {
183
+ this.checkInitTab()
184
+ })
185
+ },
180
186
  },
181
187
  created() {
182
188
  this.children = this.$children