@zeedhi/common 1.107.0 → 1.107.3
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.
- package/LICENSE +23 -23
- package/README.md +9 -9
- package/dist/zd-common.esm.js +5800 -5634
- package/dist/zd-common.umd.js +5799 -5633
- package/package.json +2 -2
- package/rollup.scss.config.js +14 -14
- package/tsconfig.eslint.json +8 -8
- package/types/components/zd-date/date-range.d.ts +6 -0
- package/types/components/zd-form/form.d.ts +4 -1
- package/types/components/zd-grid/grid-editable.d.ts +2 -0
- package/types/components/zd-grid/grid.d.ts +23 -1
- package/types/services/zd-json-cache/json-cache-service.d.ts +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.107.
|
|
3
|
+
"version": "1.107.3",
|
|
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": "
|
|
46
|
+
"gitHead": "acf8225d464c1dce096b18c3c4b119b4576759c9"
|
|
47
47
|
}
|
package/rollup.scss.config.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import scss from 'rollup-plugin-scss';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
input: './src/styles/index.scss',
|
|
5
|
-
output: {
|
|
6
|
-
format: 'esm',
|
|
7
|
-
},
|
|
8
|
-
plugins: [
|
|
9
|
-
scss({
|
|
10
|
-
output: 'dist/style.css',
|
|
11
|
-
outputStyle: 'compressed',
|
|
12
|
-
}),
|
|
13
|
-
],
|
|
14
|
-
};
|
|
1
|
+
import scss from 'rollup-plugin-scss';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
input: './src/styles/index.scss',
|
|
5
|
+
output: {
|
|
6
|
+
format: 'esm',
|
|
7
|
+
},
|
|
8
|
+
plugins: [
|
|
9
|
+
scss({
|
|
10
|
+
output: 'dist/style.css',
|
|
11
|
+
outputStyle: 'compressed',
|
|
12
|
+
}),
|
|
13
|
+
],
|
|
14
|
+
};
|
package/tsconfig.eslint.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
// extend your base config so you don't have to redefine your compilerOptions
|
|
3
|
-
"extends": "./tsconfig.json",
|
|
4
|
-
"include": [
|
|
5
|
-
"./src/**/*.ts",
|
|
6
|
-
"./tests/**/*.ts",
|
|
7
|
-
],
|
|
8
|
-
"exclude": ["node_modules"]
|
|
1
|
+
{
|
|
2
|
+
// extend your base config so you don't have to redefine your compilerOptions
|
|
3
|
+
"extends": "./tsconfig.json",
|
|
4
|
+
"include": [
|
|
5
|
+
"./src/**/*.ts",
|
|
6
|
+
"./tests/**/*.ts",
|
|
7
|
+
],
|
|
8
|
+
"exclude": ["node_modules"]
|
|
9
9
|
}
|
|
@@ -100,6 +100,12 @@ export declare class DateRange extends TextInput implements IDateRange {
|
|
|
100
100
|
protected getUpdatedMask(): string | undefined;
|
|
101
101
|
protected maskFormat(format: string): string;
|
|
102
102
|
setDateValue(displayValue: string): void;
|
|
103
|
+
/**
|
|
104
|
+
* Faz a validação do array de datas
|
|
105
|
+
* @param format o formato da data
|
|
106
|
+
* @param values o array de datas
|
|
107
|
+
* @returns true se todos os valores forem validados
|
|
108
|
+
* */
|
|
103
109
|
isValidDateArray(format: string, values?: string[]): boolean;
|
|
104
110
|
private splitValues;
|
|
105
111
|
isValidDate(value: string, format: string, strict?: boolean): boolean;
|
|
@@ -115,7 +115,10 @@ export declare class Form extends ComponentRender implements IForm {
|
|
|
115
115
|
name: string;
|
|
116
116
|
parent?: import("..").Component | undefined;
|
|
117
117
|
tabStop?: boolean | undefined;
|
|
118
|
-
userProperties?: IDictionary<any> | undefined;
|
|
118
|
+
userProperties?: IDictionary<any> | undefined; /**
|
|
119
|
+
* Applies the justify-content css property.
|
|
120
|
+
* Available options are start, center, end, space-between and space-around.
|
|
121
|
+
*/
|
|
119
122
|
}[];
|
|
120
123
|
/**
|
|
121
124
|
* Grid system for each child.
|
|
@@ -205,6 +205,8 @@ export declare class GridEditable extends Grid implements IGridEditable {
|
|
|
205
205
|
* @param position whether the new Row will be inserted at the beginning or end of the data array
|
|
206
206
|
*/
|
|
207
207
|
addNewRow(row: IDictionary, position?: 'end' | 'start'): Promise<void>;
|
|
208
|
+
protected saveRowReference(row: IDictionary<any>): void;
|
|
209
|
+
protected insertRowInDatasource(row: IDictionary<any>, position: 'end' | 'start'): IDictionary<any>[];
|
|
208
210
|
/**
|
|
209
211
|
* Gets the editable component name
|
|
210
212
|
* @param key Row unique key
|
|
@@ -207,7 +207,29 @@ export declare class Grid extends Iterable implements IGrid {
|
|
|
207
207
|
* @param element DOM Element
|
|
208
208
|
*/
|
|
209
209
|
selectAllClick(isSelected: boolean, event: Event, element: any): void;
|
|
210
|
-
|
|
210
|
+
/**
|
|
211
|
+
* Retorna a quantidade total de linhas selecionadas caso exista
|
|
212
|
+
*/
|
|
213
|
+
get pageText(): string;
|
|
214
|
+
/**
|
|
215
|
+
* Solicita uma confirmação se os registros nas outras páginas devem ser selecionados também.
|
|
216
|
+
* @private
|
|
217
|
+
* @returns {Promise<boolean>} Objeto Promise quando a confirmação for feita
|
|
218
|
+
* com parametro true se confirmado a seleção de todas páginas.
|
|
219
|
+
*/
|
|
220
|
+
private askToSelectAll;
|
|
221
|
+
/**
|
|
222
|
+
* Solicita uma confirmação se os registros nas outras páginas precisam ser removidos também.
|
|
223
|
+
* @private
|
|
224
|
+
* @returns {Promise<void>} Objeto Promise quando a confirmação for feita.
|
|
225
|
+
*/
|
|
226
|
+
private askToUnselectAll;
|
|
227
|
+
/**
|
|
228
|
+
* Efetua a seleção/desseleção de todas as linhas do grid
|
|
229
|
+
* @param {boolean} isSelected Indica se as linhas foram selecionadas ou não
|
|
230
|
+
* @returns {Promise<void>} Objeto Promise quando a seleção/desseleção acabar de ser realizada
|
|
231
|
+
*/
|
|
232
|
+
selectAll(isSelected: boolean, mustAsk?: boolean): Promise<void>;
|
|
211
233
|
toggleRow(row: IDictionary): void;
|
|
212
234
|
selectRow(row: IDictionary, select: boolean): void;
|
|
213
235
|
navigateLeft({ event }: IEventParam<any>): void;
|
|
@@ -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
|
-
}
|