@zeedhi/vuetify 1.97.4 → 1.98.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.
@@ -52333,6 +52333,14 @@ __decorate([
52333
52333
  PropWatch({ type: String, default: 'SEARCH' }),
52334
52334
  __metadata("design:type", String)
52335
52335
  ], ZdSelect.prototype, "searchParam", void 0);
52336
+ __decorate([
52337
+ PropWatch({ type: [String, Array], default: () => ([]) }),
52338
+ __metadata("design:type", Object)
52339
+ ], ZdSelect.prototype, "dataValueOut", void 0);
52340
+ __decorate([
52341
+ PropWatch({ type: String, default: '' }),
52342
+ __metadata("design:type", String)
52343
+ ], ZdSelect.prototype, "dataValueOutFormName", void 0);
52336
52344
  __decorate([
52337
52345
  Watch('instance.datasource.data.length'),
52338
52346
  __metadata("design:type", Function),
@@ -57005,9 +57013,12 @@ let ZdSelectMultiple = class ZdSelectMultiple extends __vue_component__$K {
57005
57013
  }
57006
57014
  return this.selectFormatterFn(item, formatterProps);
57007
57015
  }
57016
+ get disabledLength() {
57017
+ return this.formattedData.filter((item) => item.disabled).length;
57018
+ }
57008
57019
  get allSelected() {
57009
57020
  const dataLength = this.formattedValue.length - this.instance.insertedValues.length;
57010
- return dataLength && dataLength === this.instance.datasource.total;
57021
+ return dataLength && dataLength === this.instance.datasource.total - this.disabledLength;
57011
57022
  }
57012
57023
  get limitValue() {
57013
57024
  return this.componentRef.isFocused ? this.instance.limit || Infinity : 1;
@@ -57720,6 +57731,14 @@ __decorate([
57720
57731
  Prop({ type: [Number, String], default: undefined }),
57721
57732
  __metadata("design:type", Object)
57722
57733
  ], ZdSelectTree.prototype, "menuMaxWidth", void 0);
57734
+ __decorate([
57735
+ PropWatch({ type: [String, Array], default: () => ([]) }),
57736
+ __metadata("design:type", Object)
57737
+ ], ZdSelectTree.prototype, "dataValueOut", void 0);
57738
+ __decorate([
57739
+ PropWatch({ type: String, default: '' }),
57740
+ __metadata("design:type", String)
57741
+ ], ZdSelectTree.prototype, "dataValueOutFormName", void 0);
57723
57742
  __decorate([
57724
57743
  Watch('instance.datasource.data.length'),
57725
57744
  __metadata("design:type", Function),
@@ -52332,6 +52332,14 @@ If you're seeing "$attrs is readonly", it's caused by this`);
52332
52332
  PropWatch({ type: String, default: 'SEARCH' }),
52333
52333
  __metadata("design:type", String)
52334
52334
  ], ZdSelect.prototype, "searchParam", void 0);
52335
+ __decorate([
52336
+ PropWatch({ type: [String, Array], default: () => ([]) }),
52337
+ __metadata("design:type", Object)
52338
+ ], ZdSelect.prototype, "dataValueOut", void 0);
52339
+ __decorate([
52340
+ PropWatch({ type: String, default: '' }),
52341
+ __metadata("design:type", String)
52342
+ ], ZdSelect.prototype, "dataValueOutFormName", void 0);
52335
52343
  __decorate([
52336
52344
  vuePropertyDecorator.Watch('instance.datasource.data.length'),
52337
52345
  __metadata("design:type", Function),
@@ -57004,9 +57012,12 @@ If you're seeing "$attrs is readonly", it's caused by this`);
57004
57012
  }
57005
57013
  return this.selectFormatterFn(item, formatterProps);
57006
57014
  }
57015
+ get disabledLength() {
57016
+ return this.formattedData.filter((item) => item.disabled).length;
57017
+ }
57007
57018
  get allSelected() {
57008
57019
  const dataLength = this.formattedValue.length - this.instance.insertedValues.length;
57009
- return dataLength && dataLength === this.instance.datasource.total;
57020
+ return dataLength && dataLength === this.instance.datasource.total - this.disabledLength;
57010
57021
  }
57011
57022
  get limitValue() {
57012
57023
  return this.componentRef.isFocused ? this.instance.limit || Infinity : 1;
@@ -57719,6 +57730,14 @@ If you're seeing "$attrs is readonly", it's caused by this`);
57719
57730
  vuePropertyDecorator.Prop({ type: [Number, String], default: undefined }),
57720
57731
  __metadata("design:type", Object)
57721
57732
  ], ZdSelectTree.prototype, "menuMaxWidth", void 0);
57733
+ __decorate([
57734
+ PropWatch({ type: [String, Array], default: () => ([]) }),
57735
+ __metadata("design:type", Object)
57736
+ ], ZdSelectTree.prototype, "dataValueOut", void 0);
57737
+ __decorate([
57738
+ PropWatch({ type: String, default: '' }),
57739
+ __metadata("design:type", String)
57740
+ ], ZdSelectTree.prototype, "dataValueOutFormName", void 0);
57722
57741
  __decorate([
57723
57742
  vuePropertyDecorator.Watch('instance.datasource.data.length'),
57724
57743
  __metadata("design:type", Function),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/vuetify",
3
- "version": "1.97.4",
3
+ "version": "1.98.0",
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": "310c7b5a1c7c949c2e5c8ca2c151fb226cf3ef1a"
54
+ "gitHead": "7a23d36059ee1bd8321baa99b16d4e726296d072"
55
55
  }
@@ -1,4 +1,4 @@
1
- import { Select, IComponentRender } from '@zeedhi/common';
1
+ import { Select, IComponentRender, ISelectDataValueOutItem } from '@zeedhi/common';
2
2
  import { IDatasource, IDictionary } from '@zeedhi/core';
3
3
  import ZdTextInput from '../zd-text-input/ZdTextInput.vue';
4
4
  /**
@@ -25,6 +25,8 @@ export default class ZdSelect extends ZdTextInput {
25
25
  manualMode: boolean;
26
26
  attach: boolean;
27
27
  searchParam: string;
28
+ dataValueOut: string | ISelectDataValueOutItem[];
29
+ dataValueOutFormName: string;
28
30
  instance: Select;
29
31
  instanceType: typeof Select;
30
32
  private inputWidth;
@@ -58,6 +58,7 @@ export default class ZdSelectMultiple extends ZdSelect {
58
58
  set formattedValue(value: IDictionary<any>[]);
59
59
  selectFormatterFn: Function;
60
60
  formattedDataDiscreteText(item: IDictionary<any>): any;
61
+ get disabledLength(): any;
61
62
  get allSelected(): boolean | 0;
62
63
  get limitValue(): number;
63
64
  isChipVisible(index: number): boolean;
@@ -1,4 +1,4 @@
1
- import { SelectTree, ISelectTreeNode } from '@zeedhi/common';
1
+ import { SelectTree, ISelectTreeNode, ISelectDataValueOutItem } from '@zeedhi/common';
2
2
  import { IDictionary, IDatasource } from '@zeedhi/core';
3
3
  import ZdTextInput from '../zd-text-input/ZdTextInput';
4
4
  export default class ZdSelectTree extends ZdTextInput {
@@ -26,6 +26,8 @@ export default class ZdSelectTree extends ZdTextInput {
26
26
  fetchOnDemand: boolean | string;
27
27
  fieldHasChild: string;
28
28
  menuMaxWidth: number | string;
29
+ dataValueOut: string | ISelectDataValueOutItem[];
30
+ dataValueOutFormName: string;
29
31
  instance: SelectTree;
30
32
  instanceType: typeof SelectTree;
31
33
  dataChange(): void;