@zeedhi/common 1.119.0 → 1.120.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.
@@ -4454,7 +4454,7 @@ class DateRange extends TextInput {
4454
4454
  * Character that will separate the two dates
4455
4455
  */
4456
4456
  get splitter() {
4457
- return I18n.translate(this.internalSplitter);
4457
+ return ` ${I18n.translate(this.internalSplitter).trim()} `;
4458
4458
  }
4459
4459
  set splitter(splitter) {
4460
4460
  this.internalSplitter = splitter;
@@ -10951,9 +10951,9 @@ class Search extends TextInput {
10951
10951
  throw new Error(`Could not find the iterable component associated with ${this.name}`);
10952
10952
  }
10953
10953
  }
10954
- setSearch(search) {
10954
+ setSearch() {
10955
10955
  return __awaiter(this, void 0, void 0, function* () {
10956
- yield this.iterableComponent.setSearch(search.component.internalValue);
10956
+ yield this.iterableComponent.setSearch(this.internalValue);
10957
10957
  });
10958
10958
  }
10959
10959
  }
@@ -12721,9 +12721,6 @@ class SelectMultiple extends Select {
12721
12721
  return this.checkboxAllValue;
12722
12722
  }
12723
12723
  set checkboxAll(value) {
12724
- if (this.showCheckboxAll) {
12725
- this.disabled = value;
12726
- }
12727
12724
  this.checkboxAllValue = value;
12728
12725
  }
12729
12726
  /**
@@ -14973,6 +14970,10 @@ class Tooltip extends ComponentRender {
14973
14970
  * Nudge the content to the top
14974
14971
  */
14975
14972
  this.top = false;
14973
+ /**
14974
+ * Render the label as HTML
14975
+ */
14976
+ this.html = false;
14976
14977
  this.bottom = this.getInitValue('bottom', props.bottom, this.bottom);
14977
14978
  this.color = this.getInitValue('color', props.color, this.color);
14978
14979
  this.disabled = this.getInitValue('disabled', props.disabled, this.disabled);
@@ -14986,6 +14987,7 @@ class Tooltip extends ComponentRender {
14986
14987
  this.openOnHover = this.getInitValue('openOnHover', props.openOnHover, this.openOnHover);
14987
14988
  this.right = this.getInitValue('right', props.right, this.right);
14988
14989
  this.top = this.getInitValue('top', props.top, this.top);
14990
+ this.html = this.getInitValue('html', props.html, this.html);
14989
14991
  this.createAccessors();
14990
14992
  }
14991
14993
  }
@@ -4461,7 +4461,7 @@
4461
4461
  * Character that will separate the two dates
4462
4462
  */
4463
4463
  get splitter() {
4464
- return core.I18n.translate(this.internalSplitter);
4464
+ return ` ${core.I18n.translate(this.internalSplitter).trim()} `;
4465
4465
  }
4466
4466
  set splitter(splitter) {
4467
4467
  this.internalSplitter = splitter;
@@ -10958,9 +10958,9 @@
10958
10958
  throw new Error(`Could not find the iterable component associated with ${this.name}`);
10959
10959
  }
10960
10960
  }
10961
- setSearch(search) {
10961
+ setSearch() {
10962
10962
  return __awaiter(this, void 0, void 0, function* () {
10963
- yield this.iterableComponent.setSearch(search.component.internalValue);
10963
+ yield this.iterableComponent.setSearch(this.internalValue);
10964
10964
  });
10965
10965
  }
10966
10966
  }
@@ -12728,9 +12728,6 @@
12728
12728
  return this.checkboxAllValue;
12729
12729
  }
12730
12730
  set checkboxAll(value) {
12731
- if (this.showCheckboxAll) {
12732
- this.disabled = value;
12733
- }
12734
12731
  this.checkboxAllValue = value;
12735
12732
  }
12736
12733
  /**
@@ -14980,6 +14977,10 @@
14980
14977
  * Nudge the content to the top
14981
14978
  */
14982
14979
  this.top = false;
14980
+ /**
14981
+ * Render the label as HTML
14982
+ */
14983
+ this.html = false;
14983
14984
  this.bottom = this.getInitValue('bottom', props.bottom, this.bottom);
14984
14985
  this.color = this.getInitValue('color', props.color, this.color);
14985
14986
  this.disabled = this.getInitValue('disabled', props.disabled, this.disabled);
@@ -14993,6 +14994,7 @@
14993
14994
  this.openOnHover = this.getInitValue('openOnHover', props.openOnHover, this.openOnHover);
14994
14995
  this.right = this.getInitValue('right', props.right, this.right);
14995
14996
  this.top = this.getInitValue('top', props.top, this.top);
14997
+ this.html = this.getInitValue('html', props.html, this.html);
14996
14998
  this.createAccessors();
14997
14999
  }
14998
15000
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.119.0",
3
+ "version": "1.120.1",
4
4
  "description": "Zeedhi Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -43,5 +43,5 @@
43
43
  "lodash.times": "4.3.*",
44
44
  "mockdate": "3.0.*"
45
45
  },
46
- "gitHead": "25e72dbee9651173cb330c33a910be791302efc4"
46
+ "gitHead": "074ff9c24d814d9917ed388a8505ce351a098a9b"
47
47
  }
@@ -24,6 +24,6 @@ export declare class Search extends TextInput implements ISearch {
24
24
  */
25
25
  constructor(props: ISearch);
26
26
  setIterableComponent(name?: string): void;
27
- protected setSearch(search: any): Promise<void>;
28
- debounceSetSearch: (search: string) => void;
27
+ protected setSearch(): Promise<void>;
28
+ debounceSetSearch: () => void;
29
29
  }
@@ -16,4 +16,5 @@ export interface ITooltip extends IComponentRender {
16
16
  openOnHover?: boolean;
17
17
  right?: boolean;
18
18
  top?: boolean;
19
+ html?: boolean;
19
20
  }
@@ -53,6 +53,10 @@ export declare class Tooltip extends ComponentRender implements ITooltip {
53
53
  * Nudge the content to the top
54
54
  */
55
55
  top: boolean;
56
+ /**
57
+ * Render the label as HTML
58
+ */
59
+ html: boolean;
56
60
  /**
57
61
  * Create a new Tooltip
58
62
  * @param props Tooltip definition
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from '@zeedhi/core';
2
+ declare const uniqueBy: (a: IDictionary[], key: string) => IDictionary<any>[];
3
+ export { uniqueBy };
package/LICENSE DELETED
@@ -1,24 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 Zeedhi
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
23
- This repository includes one file originally copied from https://github.com/vuetifyjs/vuetify/
24
- under /blob/v1.5.16/packages/vuetify/src/util/, mask.ts.
@@ -1,12 +0,0 @@
1
- export interface IJSONObject {
2
- path: string;
3
- }
4
- export declare class JsonCacheService {
5
- /**
6
- * jsons collection
7
- */
8
- static jsonCollection: IJSONObject[];
9
- static saveJSONCache(jsonCollection: IJSONObject[]): Promise<void>;
10
- static getJSONCache(path: string): any;
11
- static clearJSONCache(jsonCollection: IJSONObject[]): void;
12
- }