@zeedhi/vuetify 1.83.0 → 1.83.1

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.
@@ -48977,6 +48977,13 @@ __vue_render__$Y._withStripped = true;
48977
48977
  * Grid action component
48978
48978
  */
48979
48979
  let ZdGridAction = class ZdGridAction extends Vue {
48980
+ constructor() {
48981
+ super(...arguments);
48982
+ this.actions = [];
48983
+ }
48984
+ change() {
48985
+ this.actions = this.column.childrenProps.map((child) => this.getActionComponent(child, this.column, this.row));
48986
+ }
48980
48987
  };
48981
48988
  __decorate([
48982
48989
  Prop({ type: Object, required: true }),
@@ -48994,6 +49001,15 @@ __decorate([
48994
49001
  Prop({ type: [String, Number], required: true }),
48995
49002
  __metadata("design:type", Object)
48996
49003
  ], ZdGridAction.prototype, "rowKey", void 0);
49004
+ __decorate([
49005
+ Watch('column', { immediate: true, deep: true }),
49006
+ Watch('row', { immediate: true, deep: true }),
49007
+ Watch('getActionComponent', { immediate: true, deep: true }),
49008
+ Watch('rowKey', { immediate: true, deep: true }),
49009
+ __metadata("design:type", Function),
49010
+ __metadata("design:paramtypes", []),
49011
+ __metadata("design:returntype", void 0)
49012
+ ], ZdGridAction.prototype, "change", null);
48997
49013
  ZdGridAction = __decorate([
48998
49014
  Component$1
48999
49015
  ], ZdGridAction);
@@ -49010,13 +49026,13 @@ var __vue_render__$X = function () {
49010
49026
  return _c(
49011
49027
  "div",
49012
49028
  { staticClass: "zd-grid-action" },
49013
- _vm._l(_vm.column.childrenProps, function (child) {
49029
+ _vm._l(_vm.actions, function (child) {
49014
49030
  return _c(
49015
49031
  child.component,
49016
49032
  _vm._b(
49017
49033
  { key: "" + child.name + _vm.rowKey, tag: "component" },
49018
49034
  "component",
49019
- _vm.getActionComponent(child, _vm.column, _vm.row),
49035
+ _vm.actions,
49020
49036
  false
49021
49037
  )
49022
49038
  )
@@ -49030,7 +49046,7 @@ __vue_render__$X._withStripped = true;
49030
49046
  /* style */
49031
49047
  const __vue_inject_styles__$X = function (inject) {
49032
49048
  if (!inject) return
49033
- inject("data-v-5420f962_0", { source: "\n.zd-grid-action {\n height: 100%;\n display: flex;\n}\n", map: undefined, media: undefined });
49049
+ inject("data-v-739ae1c4_0", { source: "\n.zd-grid-action {\n height: 100%;\n display: flex;\n}\n", map: undefined, media: undefined });
49034
49050
 
49035
49051
  };
49036
49052
  /* scoped */
@@ -49684,11 +49700,7 @@ var __vue_render__$S = function () {
49684
49700
  ],
49685
49701
  cellStyle: _vm.cellStyle,
49686
49702
  },
49687
- on: {
49688
- click: function ($event) {
49689
- return _vm.cellClick(_vm.row, _vm.column, $event)
49690
- },
49691
- },
49703
+ on: { click: _vm.click },
49692
49704
  },
49693
49705
  [
49694
49706
  _c(
@@ -48976,6 +48976,13 @@ If you're seeing "$attrs is readonly", it's caused by this`);
48976
48976
  * Grid action component
48977
48977
  */
48978
48978
  let ZdGridAction = class ZdGridAction extends Vue__default["default"] {
48979
+ constructor() {
48980
+ super(...arguments);
48981
+ this.actions = [];
48982
+ }
48983
+ change() {
48984
+ this.actions = this.column.childrenProps.map((child) => this.getActionComponent(child, this.column, this.row));
48985
+ }
48979
48986
  };
48980
48987
  __decorate([
48981
48988
  vuePropertyDecorator.Prop({ type: Object, required: true }),
@@ -48993,6 +49000,15 @@ If you're seeing "$attrs is readonly", it's caused by this`);
48993
49000
  vuePropertyDecorator.Prop({ type: [String, Number], required: true }),
48994
49001
  __metadata("design:type", Object)
48995
49002
  ], ZdGridAction.prototype, "rowKey", void 0);
49003
+ __decorate([
49004
+ vuePropertyDecorator.Watch('column', { immediate: true, deep: true }),
49005
+ vuePropertyDecorator.Watch('row', { immediate: true, deep: true }),
49006
+ vuePropertyDecorator.Watch('getActionComponent', { immediate: true, deep: true }),
49007
+ vuePropertyDecorator.Watch('rowKey', { immediate: true, deep: true }),
49008
+ __metadata("design:type", Function),
49009
+ __metadata("design:paramtypes", []),
49010
+ __metadata("design:returntype", void 0)
49011
+ ], ZdGridAction.prototype, "change", null);
48996
49012
  ZdGridAction = __decorate([
48997
49013
  vuePropertyDecorator.Component
48998
49014
  ], ZdGridAction);
@@ -49009,13 +49025,13 @@ If you're seeing "$attrs is readonly", it's caused by this`);
49009
49025
  return _c(
49010
49026
  "div",
49011
49027
  { staticClass: "zd-grid-action" },
49012
- _vm._l(_vm.column.childrenProps, function (child) {
49028
+ _vm._l(_vm.actions, function (child) {
49013
49029
  return _c(
49014
49030
  child.component,
49015
49031
  _vm._b(
49016
49032
  { key: "" + child.name + _vm.rowKey, tag: "component" },
49017
49033
  "component",
49018
- _vm.getActionComponent(child, _vm.column, _vm.row),
49034
+ _vm.actions,
49019
49035
  false
49020
49036
  )
49021
49037
  )
@@ -49029,7 +49045,7 @@ If you're seeing "$attrs is readonly", it's caused by this`);
49029
49045
  /* style */
49030
49046
  const __vue_inject_styles__$X = function (inject) {
49031
49047
  if (!inject) return
49032
- inject("data-v-5420f962_0", { source: "\n.zd-grid-action {\n height: 100%;\n display: flex;\n}\n", map: undefined, media: undefined });
49048
+ inject("data-v-739ae1c4_0", { source: "\n.zd-grid-action {\n height: 100%;\n display: flex;\n}\n", map: undefined, media: undefined });
49033
49049
 
49034
49050
  };
49035
49051
  /* scoped */
@@ -49683,11 +49699,7 @@ If you're seeing "$attrs is readonly", it's caused by this`);
49683
49699
  ],
49684
49700
  cellStyle: _vm.cellStyle,
49685
49701
  },
49686
- on: {
49687
- click: function ($event) {
49688
- return _vm.cellClick(_vm.row, _vm.column, $event)
49689
- },
49690
- },
49702
+ on: { click: _vm.click },
49691
49703
  },
49692
49704
  [
49693
49705
  _c(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/vuetify",
3
- "version": "1.83.0",
3
+ "version": "1.83.1",
4
4
  "description": "Zeedhi Components based on Vuetify",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -51,5 +51,5 @@
51
51
  "@types/prismjs": "1.26.*",
52
52
  "@types/sortablejs": "1.15.*"
53
53
  },
54
- "gitHead": "e3c34a4519294071d682b2503faa583b7e6d86fd"
54
+ "gitHead": "640bf855e7e75466406a3ad6f6797cf088af2622"
55
55
  }
@@ -1,12 +1,14 @@
1
1
  import Vue from 'vue';
2
- import { GridColumn } from '@zeedhi/common';
2
+ import { ComponentRender, GridColumn } from '@zeedhi/common';
3
3
  import { IDictionary } from '@zeedhi/core';
4
4
  /**
5
5
  * Grid action component
6
6
  */
7
7
  export default class ZdGridAction extends Vue {
8
- column?: GridColumn;
9
- row?: IDictionary<any>;
10
- getActionComponent?: Function;
11
- rowKey?: string | number;
8
+ column: GridColumn;
9
+ row: IDictionary<any>;
10
+ getActionComponent: Function;
11
+ rowKey: string | number;
12
+ actions: ComponentRender[];
13
+ change(): void;
12
14
  }