@zeedhi/teknisa-components-vuetify 1.42.0 → 1.43.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.
@@ -2,7 +2,7 @@ import { Modal, ModalService, Icons } from '@zeedhi/common';
2
2
  import { Prop, Component, Watch } from 'vue-property-decorator';
3
3
  import { BreadcrumbHeader, CardTitle, CrudButton, CrudAddButton, CrudCancelButton, CrudDeleteButton, CrudForm, CrudSaveButton, TekGrid as TekGrid$2, TekRestDatasource, TekMemoryDatasource, TekGridColumn, TekGridColumnsButton as TekGridColumnsButton$1, TekGridLayoutOptions as TekGridLayoutOptions$1, TekFilterHelper, Image, IterableCarousel, IterableComponentRender, Loading, Notifications, ProductCard, TekTreeGrid } from '@zeedhi/teknisa-components-common';
4
4
  import { ZdComponent, ZdComponentRender, components as components$1, ZdForm, ZdGrid, ZdIterableColumnsButton, ZdIterable, ZdLoading } from '@zeedhi/vuetify';
5
- import { Metadata, Config, dayjs, Singleton, normalize, I18n, Loader } from '@zeedhi/core';
5
+ import { Metadata, Config, dayjs, Singleton, Utils, I18n, Loader } from '@zeedhi/core';
6
6
  import debounce from 'lodash.debounce';
7
7
  import Sortable from 'sortablejs';
8
8
  import cloneDeep from 'lodash.clonedeep';
@@ -3317,7 +3317,7 @@ let TekGridColumnsOptionsController = class TekGridColumnsOptionsController {
3317
3317
  return result;
3318
3318
  }
3319
3319
  columnInSearch(column) {
3320
- return (!this.searchValue || normalize(column.label).indexOf(normalize(this.searchValue)) !== -1);
3320
+ return (!this.searchValue || Utils.normalize(column.label).indexOf(Utils.normalize(this.searchValue)) !== -1);
3321
3321
  }
3322
3322
  get fixedColumnData() {
3323
3323
  return this.fixedColumns.filter(this.columnInSearch.bind(this));
@@ -5242,6 +5242,18 @@ __decorate([
5242
5242
  }),
5243
5243
  __metadata("design:type", Array)
5244
5244
  ], TekIterableComponentRender.prototype, "noResultSlot", void 0);
5245
+ __decorate([
5246
+ Prop({ type: [Number, String], default: 'auto' }),
5247
+ __metadata("design:type", Object)
5248
+ ], TekIterableComponentRender.prototype, "height", void 0);
5249
+ __decorate([
5250
+ Prop({ type: [Number, String], default: 'none' }),
5251
+ __metadata("design:type", Object)
5252
+ ], TekIterableComponentRender.prototype, "maxHeight", void 0);
5253
+ __decorate([
5254
+ Prop({ type: [Number, String], default: 'none' }),
5255
+ __metadata("design:type", Object)
5256
+ ], TekIterableComponentRender.prototype, "minHeight", void 0);
5245
5257
  TekIterableComponentRender = __decorate([
5246
5258
  Component
5247
5259
  ], TekIterableComponentRender);
@@ -5260,6 +5272,11 @@ var __vue_render__$4 = function () {
5260
5272
  "div",
5261
5273
  {
5262
5274
  class: ["tek-iterable-component-render", _vm.instance.cssClass],
5275
+ style: Object.assign({}, _vm.instance.cssStyle, {
5276
+ height: _vm.$formatSize(_vm.instance.height),
5277
+ minHeight: _vm.$formatSize(_vm.instance.minHeight),
5278
+ maxHeight: _vm.$formatSize(_vm.instance.maxHeight),
5279
+ }),
5263
5280
  attrs: { id: _vm.instance.name },
5264
5281
  },
5265
5282
  [
@@ -5436,11 +5453,11 @@ __vue_render__$4._withStripped = true;
5436
5453
  /* style */
5437
5454
  const __vue_inject_styles__$4 = function (inject) {
5438
5455
  if (!inject) return
5439
- inject("data-v-42c57cb2_0", { source: ".tek-iterable-component-render[data-v-42c57cb2] {\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n -webkit-box-flex: 1;\n flex: 1 1 auto;\n}\n.tek-iterable-component-render .error--text[data-v-42c57cb2],\n.tek-iterable-component-render .no--data[data-v-42c57cb2] {\n text-align: center;\n width: 100%;\n font-size: 14px;\n}\n.tek-iterable-component-render .no--data[data-v-42c57cb2] {\n color: rgba(0, 0, 0, 0.38);\n}\n.tek-iterable-component-render .tek-iterable-toolbar[data-v-42c57cb2] {\n display: flex;\n justify-content: space-between;\n margin-bottom: 16px;\n align-items: center;\n width: 100%;\n}\n.tek-iterable-component-render .tek-iterable-footer[data-v-42c57cb2] {\n padding: 5px 0;\n display: flex;\n width: 100%;\n}", map: undefined, media: undefined });
5456
+ inject("data-v-1447399a_0", { source: ".tek-iterable-component-render[data-v-1447399a] {\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n -webkit-box-flex: 1;\n flex: 1 1 auto;\n}\n.tek-iterable-component-render .error--text[data-v-1447399a],\n.tek-iterable-component-render .no--data[data-v-1447399a] {\n text-align: center;\n width: 100%;\n font-size: 14px;\n}\n.tek-iterable-component-render .no--data[data-v-1447399a] {\n color: rgba(0, 0, 0, 0.38);\n}\n.tek-iterable-component-render .tek-iterable-toolbar[data-v-1447399a] {\n display: flex;\n justify-content: space-between;\n margin-bottom: 16px;\n align-items: center;\n width: 100%;\n}\n.tek-iterable-component-render .tek-iterable-footer[data-v-1447399a] {\n padding: 5px 0;\n display: flex;\n width: 100%;\n}", map: undefined, media: undefined });
5440
5457
 
5441
5458
  };
5442
5459
  /* scoped */
5443
- const __vue_scope_id__$4 = "data-v-42c57cb2";
5460
+ const __vue_scope_id__$4 = "data-v-1447399a";
5444
5461
  /* module identifier */
5445
5462
  const __vue_module_identifier__$4 = undefined;
5446
5463
  /* functional template */
@@ -5744,6 +5761,18 @@ __decorate([
5744
5761
  Prop({ type: String, default: '' }),
5745
5762
  __metadata("design:type", String)
5746
5763
  ], TekProductCard.prototype, "width", void 0);
5764
+ __decorate([
5765
+ Prop({ type: [Number, String], default: 'auto' }),
5766
+ __metadata("design:type", Object)
5767
+ ], TekProductCard.prototype, "height", void 0);
5768
+ __decorate([
5769
+ Prop({ type: [Number, String], default: 'none' }),
5770
+ __metadata("design:type", Object)
5771
+ ], TekProductCard.prototype, "maxHeight", void 0);
5772
+ __decorate([
5773
+ Prop({ type: [Number, String], default: 'none' }),
5774
+ __metadata("design:type", Object)
5775
+ ], TekProductCard.prototype, "minHeight", void 0);
5747
5776
  TekProductCard = __decorate([
5748
5777
  Component
5749
5778
  ], TekProductCard);
@@ -5772,7 +5801,12 @@ var __vue_render__$1 = function () {
5772
5801
  { "theme--light": !_vm.$vuetify.theme.dark || _vm.instance.light },
5773
5802
  _vm.instance.cssClass,
5774
5803
  ],
5775
- style: { width: _vm.instance.width },
5804
+ style: Object.assign({}, _vm.instance.cssStyle, {
5805
+ width: _vm.instance.width,
5806
+ height: _vm.$formatSize(_vm.instance.height),
5807
+ minHeight: _vm.$formatSize(_vm.instance.minHeight),
5808
+ maxHeight: _vm.$formatSize(_vm.instance.maxHeight),
5809
+ }),
5776
5810
  attrs: { id: _vm.instance.name },
5777
5811
  on: {
5778
5812
  click: function ($event) {
@@ -5888,7 +5922,7 @@ __vue_render__$1._withStripped = true;
5888
5922
  /* style */
5889
5923
  const __vue_inject_styles__$1 = function (inject) {
5890
5924
  if (!inject) return
5891
- inject("data-v-67ead2c4_0", { source: ".tek-product-card * {\n text-decoration: none;\n}\n.tek-product-card .v-card {\n padding: 0%;\n}\n.tek-product-card .v-card .tek-image-content {\n text-align: center;\n}\n.tek-product-card .v-card .tek-product-card-image-container {\n position: relative;\n}\n.tek-product-card .v-card .tek-product-card-info {\n display: flex;\n flex-direction: column;\n padding: 5px 10px 10px 10px;\n color: var(--zd-font-color);\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 16px;\n line-height: 19px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-supplier {\n font-size: var(--zd-font-body2-size);\n line-height: 14px;\n color: #c4c4c4;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-top: 10px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer .tek-product-card-brand {\n font-size: var(--zd-font-body2-size);\n line-height: 14px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer .tek-product-card-price {\n font-weight: var(--zd-font-body4-weight);\n font-size: var(--zd-font-body4-size);\n line-height: 16px;\n}\n.tek-product-card--link .v-card {\n cursor: pointer;\n}", map: undefined, media: undefined });
5925
+ inject("data-v-3dd89d23_0", { source: ".tek-product-card * {\n text-decoration: none;\n}\n.tek-product-card .v-card {\n padding: 0%;\n}\n.tek-product-card .v-card .tek-image-content {\n text-align: center;\n}\n.tek-product-card .v-card .tek-product-card-image-container {\n position: relative;\n}\n.tek-product-card .v-card .tek-product-card-info {\n display: flex;\n flex-direction: column;\n padding: 5px 10px 10px 10px;\n color: var(--zd-font-color);\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 16px;\n line-height: 19px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-supplier {\n font-size: var(--zd-font-body2-size);\n line-height: 14px;\n color: #c4c4c4;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-top: 10px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer .tek-product-card-brand {\n font-size: var(--zd-font-body2-size);\n line-height: 14px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer .tek-product-card-price {\n font-weight: var(--zd-font-body4-weight);\n font-size: var(--zd-font-body4-size);\n line-height: 16px;\n}\n.tek-product-card--link .v-card {\n cursor: pointer;\n}", map: undefined, media: undefined });
5892
5926
 
5893
5927
  };
5894
5928
  /* scoped */
@@ -3320,7 +3320,7 @@
3320
3320
  return result;
3321
3321
  }
3322
3322
  columnInSearch(column) {
3323
- return (!this.searchValue || core.normalize(column.label).indexOf(core.normalize(this.searchValue)) !== -1);
3323
+ return (!this.searchValue || core.Utils.normalize(column.label).indexOf(core.Utils.normalize(this.searchValue)) !== -1);
3324
3324
  }
3325
3325
  get fixedColumnData() {
3326
3326
  return this.fixedColumns.filter(this.columnInSearch.bind(this));
@@ -5245,6 +5245,18 @@
5245
5245
  }),
5246
5246
  __metadata("design:type", Array)
5247
5247
  ], TekIterableComponentRender.prototype, "noResultSlot", void 0);
5248
+ __decorate([
5249
+ vuePropertyDecorator.Prop({ type: [Number, String], default: 'auto' }),
5250
+ __metadata("design:type", Object)
5251
+ ], TekIterableComponentRender.prototype, "height", void 0);
5252
+ __decorate([
5253
+ vuePropertyDecorator.Prop({ type: [Number, String], default: 'none' }),
5254
+ __metadata("design:type", Object)
5255
+ ], TekIterableComponentRender.prototype, "maxHeight", void 0);
5256
+ __decorate([
5257
+ vuePropertyDecorator.Prop({ type: [Number, String], default: 'none' }),
5258
+ __metadata("design:type", Object)
5259
+ ], TekIterableComponentRender.prototype, "minHeight", void 0);
5248
5260
  TekIterableComponentRender = __decorate([
5249
5261
  vuePropertyDecorator.Component
5250
5262
  ], TekIterableComponentRender);
@@ -5263,6 +5275,11 @@
5263
5275
  "div",
5264
5276
  {
5265
5277
  class: ["tek-iterable-component-render", _vm.instance.cssClass],
5278
+ style: Object.assign({}, _vm.instance.cssStyle, {
5279
+ height: _vm.$formatSize(_vm.instance.height),
5280
+ minHeight: _vm.$formatSize(_vm.instance.minHeight),
5281
+ maxHeight: _vm.$formatSize(_vm.instance.maxHeight),
5282
+ }),
5266
5283
  attrs: { id: _vm.instance.name },
5267
5284
  },
5268
5285
  [
@@ -5439,11 +5456,11 @@
5439
5456
  /* style */
5440
5457
  const __vue_inject_styles__$4 = function (inject) {
5441
5458
  if (!inject) return
5442
- inject("data-v-42c57cb2_0", { source: ".tek-iterable-component-render[data-v-42c57cb2] {\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n -webkit-box-flex: 1;\n flex: 1 1 auto;\n}\n.tek-iterable-component-render .error--text[data-v-42c57cb2],\n.tek-iterable-component-render .no--data[data-v-42c57cb2] {\n text-align: center;\n width: 100%;\n font-size: 14px;\n}\n.tek-iterable-component-render .no--data[data-v-42c57cb2] {\n color: rgba(0, 0, 0, 0.38);\n}\n.tek-iterable-component-render .tek-iterable-toolbar[data-v-42c57cb2] {\n display: flex;\n justify-content: space-between;\n margin-bottom: 16px;\n align-items: center;\n width: 100%;\n}\n.tek-iterable-component-render .tek-iterable-footer[data-v-42c57cb2] {\n padding: 5px 0;\n display: flex;\n width: 100%;\n}", map: undefined, media: undefined });
5459
+ inject("data-v-1447399a_0", { source: ".tek-iterable-component-render[data-v-1447399a] {\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n -webkit-box-flex: 1;\n flex: 1 1 auto;\n}\n.tek-iterable-component-render .error--text[data-v-1447399a],\n.tek-iterable-component-render .no--data[data-v-1447399a] {\n text-align: center;\n width: 100%;\n font-size: 14px;\n}\n.tek-iterable-component-render .no--data[data-v-1447399a] {\n color: rgba(0, 0, 0, 0.38);\n}\n.tek-iterable-component-render .tek-iterable-toolbar[data-v-1447399a] {\n display: flex;\n justify-content: space-between;\n margin-bottom: 16px;\n align-items: center;\n width: 100%;\n}\n.tek-iterable-component-render .tek-iterable-footer[data-v-1447399a] {\n padding: 5px 0;\n display: flex;\n width: 100%;\n}", map: undefined, media: undefined });
5443
5460
 
5444
5461
  };
5445
5462
  /* scoped */
5446
- const __vue_scope_id__$4 = "data-v-42c57cb2";
5463
+ const __vue_scope_id__$4 = "data-v-1447399a";
5447
5464
  /* module identifier */
5448
5465
  const __vue_module_identifier__$4 = undefined;
5449
5466
  /* functional template */
@@ -5747,6 +5764,18 @@
5747
5764
  vuePropertyDecorator.Prop({ type: String, default: '' }),
5748
5765
  __metadata("design:type", String)
5749
5766
  ], TekProductCard.prototype, "width", void 0);
5767
+ __decorate([
5768
+ vuePropertyDecorator.Prop({ type: [Number, String], default: 'auto' }),
5769
+ __metadata("design:type", Object)
5770
+ ], TekProductCard.prototype, "height", void 0);
5771
+ __decorate([
5772
+ vuePropertyDecorator.Prop({ type: [Number, String], default: 'none' }),
5773
+ __metadata("design:type", Object)
5774
+ ], TekProductCard.prototype, "maxHeight", void 0);
5775
+ __decorate([
5776
+ vuePropertyDecorator.Prop({ type: [Number, String], default: 'none' }),
5777
+ __metadata("design:type", Object)
5778
+ ], TekProductCard.prototype, "minHeight", void 0);
5750
5779
  TekProductCard = __decorate([
5751
5780
  vuePropertyDecorator.Component
5752
5781
  ], TekProductCard);
@@ -5775,7 +5804,12 @@
5775
5804
  { "theme--light": !_vm.$vuetify.theme.dark || _vm.instance.light },
5776
5805
  _vm.instance.cssClass,
5777
5806
  ],
5778
- style: { width: _vm.instance.width },
5807
+ style: Object.assign({}, _vm.instance.cssStyle, {
5808
+ width: _vm.instance.width,
5809
+ height: _vm.$formatSize(_vm.instance.height),
5810
+ minHeight: _vm.$formatSize(_vm.instance.minHeight),
5811
+ maxHeight: _vm.$formatSize(_vm.instance.maxHeight),
5812
+ }),
5779
5813
  attrs: { id: _vm.instance.name },
5780
5814
  on: {
5781
5815
  click: function ($event) {
@@ -5891,7 +5925,7 @@
5891
5925
  /* style */
5892
5926
  const __vue_inject_styles__$1 = function (inject) {
5893
5927
  if (!inject) return
5894
- inject("data-v-67ead2c4_0", { source: ".tek-product-card * {\n text-decoration: none;\n}\n.tek-product-card .v-card {\n padding: 0%;\n}\n.tek-product-card .v-card .tek-image-content {\n text-align: center;\n}\n.tek-product-card .v-card .tek-product-card-image-container {\n position: relative;\n}\n.tek-product-card .v-card .tek-product-card-info {\n display: flex;\n flex-direction: column;\n padding: 5px 10px 10px 10px;\n color: var(--zd-font-color);\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 16px;\n line-height: 19px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-supplier {\n font-size: var(--zd-font-body2-size);\n line-height: 14px;\n color: #c4c4c4;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-top: 10px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer .tek-product-card-brand {\n font-size: var(--zd-font-body2-size);\n line-height: 14px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer .tek-product-card-price {\n font-weight: var(--zd-font-body4-weight);\n font-size: var(--zd-font-body4-size);\n line-height: 16px;\n}\n.tek-product-card--link .v-card {\n cursor: pointer;\n}", map: undefined, media: undefined });
5928
+ inject("data-v-3dd89d23_0", { source: ".tek-product-card * {\n text-decoration: none;\n}\n.tek-product-card .v-card {\n padding: 0%;\n}\n.tek-product-card .v-card .tek-image-content {\n text-align: center;\n}\n.tek-product-card .v-card .tek-product-card-image-container {\n position: relative;\n}\n.tek-product-card .v-card .tek-product-card-info {\n display: flex;\n flex-direction: column;\n padding: 5px 10px 10px 10px;\n color: var(--zd-font-color);\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 16px;\n line-height: 19px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-supplier {\n font-size: var(--zd-font-body2-size);\n line-height: 14px;\n color: #c4c4c4;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-top: 10px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer .tek-product-card-brand {\n font-size: var(--zd-font-body2-size);\n line-height: 14px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer .tek-product-card-price {\n font-weight: var(--zd-font-body4-weight);\n font-size: var(--zd-font-body4-size);\n line-height: 16px;\n}\n.tek-product-card--link .v-card {\n cursor: pointer;\n}", map: undefined, media: undefined });
5895
5929
 
5896
5930
  };
5897
5931
  /* scoped */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/teknisa-components-vuetify",
3
- "version": "1.42.0",
3
+ "version": "1.43.0",
4
4
  "description": "Teknisa Components based on Vuetify",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -39,5 +39,5 @@
39
39
  "vue": "^2.6.12",
40
40
  "vuetify": "^2.4.0"
41
41
  },
42
- "gitHead": "ae7f292e78e052ab64f9d03afb7a5470d1f2e097"
42
+ "gitHead": "dff21e134017e20c4de440406daf73031653df60"
43
43
  }
@@ -12,6 +12,9 @@ export default class TekIterableComponentRender extends ZdIterable {
12
12
  errorSlot: IComponentRender[];
13
13
  noDataSlot: IComponentRender[];
14
14
  noResultSlot: IComponentRender[];
15
+ height: number | string;
16
+ maxHeight: number | string;
17
+ minHeight: number | string;
15
18
  instance: IterableComponentRender;
16
19
  instanceType: typeof IterableComponentRender;
17
20
  }
@@ -14,6 +14,9 @@ export default class TekProductCard extends ZdComponentRender {
14
14
  productBrand?: string;
15
15
  productPrice?: string | number;
16
16
  width: string;
17
+ height: number | string;
18
+ maxHeight: number | string;
19
+ minHeight: number | string;
17
20
  instance: ProductCard;
18
21
  instanceType: typeof ProductCard;
19
22
  disableTooltip: boolean;