@zeedhi/vuetify 1.64.0 → 1.65.0

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.
@@ -41362,11 +41362,11 @@ let ZdTextInput = class ZdTextInput extends ZdInput$1 {
41362
41362
  }
41363
41363
  return events;
41364
41364
  }
41365
- setPlaceholder() {
41365
+ setPlaceholder(htmlElment = 'input') {
41366
41366
  const placeholder = this.$t(this.instance.placeholder);
41367
41367
  if (placeholder !== '') {
41368
41368
  setTimeout(() => {
41369
- const input = this.$el.getElementsByTagName('input')[0];
41369
+ const input = this.$el.getElementsByTagName(`${htmlElment}`)[0];
41370
41370
  input.setAttribute('placeholder', placeholder);
41371
41371
  }, 0);
41372
41372
  }
@@ -56613,6 +56613,13 @@ let ZdTextarea = class ZdTextarea extends ZdTextInput$1 {
56613
56613
  super(...arguments);
56614
56614
  this.instanceType = Textarea;
56615
56615
  }
56616
+ mounted() {
56617
+ this.setPlaceholder('textarea');
56618
+ }
56619
+ blur(event) {
56620
+ this.instance.blur(event, this.$el);
56621
+ this.setPlaceholder('textarea');
56622
+ }
56616
56623
  };
56617
56624
  __decorate([
56618
56625
  PropWatch({ type: [Boolean, String], default: false }),
@@ -56651,11 +56658,17 @@ __decorate([
56651
56658
  __metadata("design:type", Boolean)
56652
56659
  ], ZdTextarea.prototype, "rounded", void 0);
56653
56660
  __decorate([
56654
- PropWatch({ type: [Number, String], default: 24 }),
56661
+ PropWatch({
56662
+ type: [Number, String],
56663
+ default: 24,
56664
+ }),
56655
56665
  __metadata("design:type", Object)
56656
56666
  ], ZdTextarea.prototype, "rowHeight", void 0);
56657
56667
  __decorate([
56658
- PropWatch({ type: [Number, String], default: 5 }),
56668
+ PropWatch({
56669
+ type: [Number, String],
56670
+ default: 5,
56671
+ }),
56659
56672
  __metadata("design:type", Object)
56660
56673
  ], ZdTextarea.prototype, "rows", void 0);
56661
56674
  ZdTextarea = __decorate([
@@ -41361,11 +41361,11 @@ If you're seeing "$attrs is readonly", it's caused by this`);
41361
41361
  }
41362
41362
  return events;
41363
41363
  }
41364
- setPlaceholder() {
41364
+ setPlaceholder(htmlElment = 'input') {
41365
41365
  const placeholder = this.$t(this.instance.placeholder);
41366
41366
  if (placeholder !== '') {
41367
41367
  setTimeout(() => {
41368
- const input = this.$el.getElementsByTagName('input')[0];
41368
+ const input = this.$el.getElementsByTagName(`${htmlElment}`)[0];
41369
41369
  input.setAttribute('placeholder', placeholder);
41370
41370
  }, 0);
41371
41371
  }
@@ -56612,6 +56612,13 @@ If you're seeing "$attrs is readonly", it's caused by this`);
56612
56612
  super(...arguments);
56613
56613
  this.instanceType = common.Textarea;
56614
56614
  }
56615
+ mounted() {
56616
+ this.setPlaceholder('textarea');
56617
+ }
56618
+ blur(event) {
56619
+ this.instance.blur(event, this.$el);
56620
+ this.setPlaceholder('textarea');
56621
+ }
56615
56622
  };
56616
56623
  __decorate([
56617
56624
  PropWatch({ type: [Boolean, String], default: false }),
@@ -56650,11 +56657,17 @@ If you're seeing "$attrs is readonly", it's caused by this`);
56650
56657
  __metadata("design:type", Boolean)
56651
56658
  ], ZdTextarea.prototype, "rounded", void 0);
56652
56659
  __decorate([
56653
- PropWatch({ type: [Number, String], default: 24 }),
56660
+ PropWatch({
56661
+ type: [Number, String],
56662
+ default: 24,
56663
+ }),
56654
56664
  __metadata("design:type", Object)
56655
56665
  ], ZdTextarea.prototype, "rowHeight", void 0);
56656
56666
  __decorate([
56657
- PropWatch({ type: [Number, String], default: 5 }),
56667
+ PropWatch({
56668
+ type: [Number, String],
56669
+ default: 5,
56670
+ }),
56658
56671
  __metadata("design:type", Object)
56659
56672
  ], ZdTextarea.prototype, "rows", void 0);
56660
56673
  ZdTextarea = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/vuetify",
3
- "version": "1.64.0",
3
+ "version": "1.65.0",
4
4
  "description": "Zeedhi Components based on Vuetify",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -50,5 +50,5 @@
50
50
  "@types/prismjs": "^1.16.2",
51
51
  "@types/sortablejs": "^1.10.6"
52
52
  },
53
- "gitHead": "22e2fb9c709bc4960db1ec560700a99f9e49bf06"
53
+ "gitHead": "881697d836a93781b2ffd2e1d5ec5fbd93295370"
54
54
  }
@@ -25,5 +25,5 @@ export default class ZdTextInput extends ZdInput {
25
25
  mounted(): void;
26
26
  blur(event: Event): void;
27
27
  getIconClickEvents(): any;
28
- private setPlaceholder;
28
+ setPlaceholder(htmlElment?: string): void;
29
29
  }
@@ -17,4 +17,6 @@ export default class ZdTextarea extends ZdTextInput {
17
17
  rows: number | string;
18
18
  instance: Textarea;
19
19
  instanceType: typeof Textarea;
20
+ mounted(): void;
21
+ blur(event: Event): void;
20
22
  }