@zeedhi/teknisa-components-vuetify 1.108.0 → 1.109.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.
- package/LICENSE +21 -21
- package/README.md +7 -7
- package/dist/tek-components-vuetify.esm.js +4290 -6031
- package/dist/tek-components-vuetify.umd.js +4305 -6046
- package/dist/tek-style.css +7 -0
- package/jest.config.js +31 -31
- package/package.json +2 -2
- package/rollup.scss.config.js +13 -13
- package/tsconfig.eslint.json +8 -8
- package/types/components/tek-ag-grid/RenderedIcons.d.ts +6 -0
- package/types/components/tek-ag-grid/TekAgGrid.d.ts +30 -0
- package/types/components/tek-ag-grid/tek-ag-grid-components/index.d.ts +6 -0
- package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-cell-editor/TekAgGridCellEditor.d.ts +15 -0
- package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-cell-editor/interfaces.d.ts +14 -0
- package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-cell-renderer/TekAgGridCellRenderer.d.ts +11 -0
- package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-cell-renderer/interfaces.d.ts +13 -0
- package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-date/TekAgGridDate.d.ts +21 -0
- package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-date/interfaces.d.ts +14 -0
- package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-select-editor/TekAgGridSelectEditor.d.ts +13 -0
- package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-select-editor/interfaces.d.ts +10 -0
- package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-select-renderer/TekAgGridSelectRenderer.d.ts +9 -0
- package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-select-renderer/interfaces.d.ts +8 -0
- package/types/components/tek-grid/RenderedIcons.d.ts +6 -0
- package/types/components/tek-grid/tek-grid-components/index.d.ts +6 -0
- package/types/components/tek-grid/tek-grid-components/tek-grid-cell-editor/TekGridCellEditor.d.ts +15 -0
- package/types/components/tek-grid/tek-grid-components/tek-grid-cell-editor/interfaces.d.ts +14 -0
- package/types/components/tek-grid/tek-grid-components/tek-grid-cell-renderer/TekGridCellRenderer.d.ts +11 -0
- package/types/components/tek-grid/tek-grid-components/tek-grid-cell-renderer/interfaces.d.ts +13 -0
- package/types/components/tek-grid/tek-grid-components/tek-grid-date/TekGridDate.d.ts +21 -0
- package/types/components/tek-grid/tek-grid-components/tek-grid-date/interfaces.d.ts +14 -0
- package/types/components/tek-grid/tek-grid-components/tek-grid-select-editor/TekGridSelectEditor.d.ts +13 -0
- package/types/components/tek-grid/tek-grid-components/tek-grid-select-editor/interfaces.d.ts +10 -0
- package/types/components/tek-grid/tek-grid-components/tek-grid-select-renderer/TekGridSelectRenderer.d.ts +9 -0
- package/types/components/tek-grid/tek-grid-components/tek-grid-select-renderer/interfaces.d.ts +8 -0
- package/types/components/tek-login/TekLogin.d.ts +15 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
.zd-container.filter-content-container {
|
|
2
|
+
position: relative !important;
|
|
3
|
+
width: calc(100% + var(--zd-default-padding) * 2) !important;
|
|
4
|
+
max-width: none !important;
|
|
5
|
+
left: calc(var(--zd-default-padding) * -1) !important;
|
|
6
|
+
padding-left: var(--zd-default-padding) !important;
|
|
7
|
+
padding-right: var(--zd-default-padding) !important; }
|
package/jest.config.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
moduleFileExtensions: [
|
|
3
|
-
'js',
|
|
4
|
-
'jsx',
|
|
5
|
-
'json',
|
|
6
|
-
'vue',
|
|
7
|
-
'ts',
|
|
8
|
-
'tsx'
|
|
9
|
-
],
|
|
10
|
-
transform: {
|
|
11
|
-
'^.+\\.vue$': 'vue-jest',
|
|
12
|
-
'^.+\\.tsx?$': 'ts-jest'
|
|
13
|
-
},
|
|
14
|
-
transformIgnorePatterns: [
|
|
15
|
-
'/node_modules/'
|
|
16
|
-
],
|
|
17
|
-
moduleNameMapper: {
|
|
18
|
-
'^@/(.*)$': '<rootDir>/src/$1'
|
|
19
|
-
},
|
|
20
|
-
snapshotSerializers: [
|
|
21
|
-
'jest-serializer-vue'
|
|
22
|
-
],
|
|
23
|
-
testMatch: [
|
|
24
|
-
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
|
|
25
|
-
],
|
|
26
|
-
testURL: 'http://localhost/',
|
|
27
|
-
watchPlugins: [
|
|
28
|
-
'jest-watch-typeahead/filename',
|
|
29
|
-
'jest-watch-typeahead/testname'
|
|
30
|
-
]
|
|
31
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
moduleFileExtensions: [
|
|
3
|
+
'js',
|
|
4
|
+
'jsx',
|
|
5
|
+
'json',
|
|
6
|
+
'vue',
|
|
7
|
+
'ts',
|
|
8
|
+
'tsx'
|
|
9
|
+
],
|
|
10
|
+
transform: {
|
|
11
|
+
'^.+\\.vue$': 'vue-jest',
|
|
12
|
+
'^.+\\.tsx?$': 'ts-jest'
|
|
13
|
+
},
|
|
14
|
+
transformIgnorePatterns: [
|
|
15
|
+
'/node_modules/'
|
|
16
|
+
],
|
|
17
|
+
moduleNameMapper: {
|
|
18
|
+
'^@/(.*)$': '<rootDir>/src/$1'
|
|
19
|
+
},
|
|
20
|
+
snapshotSerializers: [
|
|
21
|
+
'jest-serializer-vue'
|
|
22
|
+
],
|
|
23
|
+
testMatch: [
|
|
24
|
+
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
|
|
25
|
+
],
|
|
26
|
+
testURL: 'http://localhost/',
|
|
27
|
+
watchPlugins: [
|
|
28
|
+
'jest-watch-typeahead/filename',
|
|
29
|
+
'jest-watch-typeahead/testname'
|
|
30
|
+
]
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/teknisa-components-vuetify",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.109.1",
|
|
4
4
|
"description": "Teknisa Components based on Vuetify",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"vue": "2.7.*",
|
|
45
45
|
"vuetify": "2.6.*"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "d40cf324961b699346b610c975eaedc46f1a154a"
|
|
48
48
|
}
|
package/rollup.scss.config.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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/tek-style.css',
|
|
11
|
-
}),
|
|
12
|
-
],
|
|
13
|
-
};
|
|
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/tek-style.css',
|
|
11
|
+
}),
|
|
12
|
+
],
|
|
13
|
+
};
|
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
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IDictionary } from '@zeedhi/core';
|
|
2
|
+
import { ZdIterable } from '@zeedhi/vuetify';
|
|
3
|
+
import { TekAgGrid as Grid } from '@zeedhi/teknisa-components-common';
|
|
4
|
+
/**
|
|
5
|
+
* TekAgGrid component
|
|
6
|
+
*/
|
|
7
|
+
export default class TekAgGrid extends ZdIterable {
|
|
8
|
+
cssClass: string;
|
|
9
|
+
dense: boolean;
|
|
10
|
+
frameworkComponents: IDictionary;
|
|
11
|
+
gridOptions: IDictionary;
|
|
12
|
+
height: string | number;
|
|
13
|
+
icons: IDictionary<string>;
|
|
14
|
+
instance: Grid;
|
|
15
|
+
instanceType: typeof Grid;
|
|
16
|
+
mounted(): void;
|
|
17
|
+
/**
|
|
18
|
+
* Get grid options with zeedhi predefined icons and subcomponents
|
|
19
|
+
*/
|
|
20
|
+
get options(): {
|
|
21
|
+
icons: IDictionary<any>;
|
|
22
|
+
frameworkComponents: IDictionary<any>;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Get height css value from property
|
|
26
|
+
*/
|
|
27
|
+
get heightValue(): string | number;
|
|
28
|
+
get rowHeight(): any;
|
|
29
|
+
get headerHeight(): any;
|
|
30
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import TekAgGridCellEditor from './tek-ag-grid-cell-editor/TekAgGridCellEditor.vue';
|
|
2
|
+
import TekAgGridCellRenderer from './tek-ag-grid-cell-renderer/TekAgGridCellRenderer.vue';
|
|
3
|
+
import TekAgGridDate from './tek-ag-grid-date/TekAgGridDate.vue';
|
|
4
|
+
import TekAgGridSelectEditor from './tek-ag-grid-select-editor/TekAgGridSelectEditor.vue';
|
|
5
|
+
import TekAgGridSelectRenderer from './tek-ag-grid-select-renderer/TekAgGridSelectRenderer.vue';
|
|
6
|
+
export { TekAgGridCellEditor, TekAgGridCellRenderer, TekAgGridDate, TekAgGridSelectEditor, TekAgGridSelectRenderer, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { IComponent, Input } from '@zeedhi/common';
|
|
3
|
+
import { ZdInput } from '@zeedhi/vuetify';
|
|
4
|
+
import { ITekAgGridCellEditorParams, IVueCellEditorComp } from './interfaces';
|
|
5
|
+
export default class TekAgGridCellEditor extends Vue implements IVueCellEditorComp {
|
|
6
|
+
params: ITekAgGridCellEditorParams;
|
|
7
|
+
instance?: Input;
|
|
8
|
+
inputRef?: ZdInput;
|
|
9
|
+
defaultComponent: string;
|
|
10
|
+
mounted(): void;
|
|
11
|
+
initRefs(): void;
|
|
12
|
+
getValue(): any;
|
|
13
|
+
get componentProps(): IComponent;
|
|
14
|
+
get name(): string;
|
|
15
|
+
}
|
package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-cell-editor/interfaces.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IComponent } from '@zeedhi/common';
|
|
2
|
+
import { ICellEditorComp, ICellRendererParams } from 'ag-grid-community';
|
|
3
|
+
export interface ITekAgGridCellEditorParams extends ICellRendererParams {
|
|
4
|
+
componentProps?: IComponent;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Methods not used in VueJS subcomponents
|
|
8
|
+
* https://www.ag-grid.com/documentation/vue/component-cell-editor/#methods--lifecycle-2
|
|
9
|
+
*/
|
|
10
|
+
declare type VueCellEditorComp = Omit<ICellEditorComp, 'getGui' | 'init' | 'afterGuiAttached'>;
|
|
11
|
+
export interface IVueCellEditorComp extends VueCellEditorComp {
|
|
12
|
+
params: ITekAgGridCellEditorParams;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { ITekAgGridCellRendererParams, IVueCellRendererComp } from './interfaces';
|
|
3
|
+
export default class TekAgGridCellRenderer extends Vue implements IVueCellRendererComp {
|
|
4
|
+
params: ITekAgGridCellRendererParams;
|
|
5
|
+
formatter: Function;
|
|
6
|
+
formattedValue: string;
|
|
7
|
+
defaultFormatter: string;
|
|
8
|
+
created(): void;
|
|
9
|
+
refresh(params: ITekAgGridCellRendererParams): boolean;
|
|
10
|
+
updateFormattedValue(params: ITekAgGridCellRendererParams): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ICellRendererComp, ICellRendererParams } from 'ag-grid-community';
|
|
2
|
+
export interface ITekAgGridCellRendererParams extends ICellRendererParams {
|
|
3
|
+
formatterName?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Methods not used in VueJS subcomponents
|
|
7
|
+
* https://www.ag-grid.com/documentation/vue/component-cell-renderer/#methods--lifecycle-2
|
|
8
|
+
*/
|
|
9
|
+
declare type VueCellRendererComp = Omit<ICellRendererComp, 'init' | 'getGui'>;
|
|
10
|
+
export interface IVueCellRendererComp extends VueCellRendererComp {
|
|
11
|
+
params: ITekAgGridCellRendererParams;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-date/TekAgGridDate.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { Date as ZdDateInstance, IComponent } from '@zeedhi/common';
|
|
3
|
+
import { ZdDate } from '@zeedhi/vuetify';
|
|
4
|
+
import { ITekAgGridDateParams, IVueDateComp } from './interfaces';
|
|
5
|
+
export default class TekAgGridDate extends Vue implements IVueDateComp {
|
|
6
|
+
params: ITekAgGridDateParams;
|
|
7
|
+
instance?: ZdDateInstance;
|
|
8
|
+
inputRef?: ZdDate;
|
|
9
|
+
mounted(): void;
|
|
10
|
+
initRefs(): void;
|
|
11
|
+
getDate(): Date | null;
|
|
12
|
+
setDate(date: Date | null): void;
|
|
13
|
+
get componentProps(): IComponent;
|
|
14
|
+
private eventOverwritten;
|
|
15
|
+
/**
|
|
16
|
+
* Add mousedown to prevent ag-grid filter from closing
|
|
17
|
+
* https://www.ag-grid.com/documentation/vue/component-filter/#custom-filters-containing-a-popup-element
|
|
18
|
+
*/
|
|
19
|
+
addMenuMousedown(): void;
|
|
20
|
+
private getDateMenuContent;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IComponent } from '@zeedhi/common';
|
|
2
|
+
import { IDateComp, IDateParams } from 'ag-grid-community';
|
|
3
|
+
export interface ITekAgGridDateParams extends IDateParams {
|
|
4
|
+
componentProps?: IComponent;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Methods not used in VueJS subcomponents
|
|
8
|
+
* https://www.ag-grid.com/documentation/vue/component-cell-editor/#methods--lifecycle-2
|
|
9
|
+
*/
|
|
10
|
+
declare type VueDateComp = Omit<IDateComp, 'getGui' | 'init'>;
|
|
11
|
+
export interface IVueDateComp extends VueDateComp {
|
|
12
|
+
params: ITekAgGridDateParams;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Select } from '@zeedhi/common';
|
|
2
|
+
import { ITekAgGridSelectEditorParams, IVueSelectEditorComp } from './interfaces';
|
|
3
|
+
import TekAgGridCellEditor from '../tek-ag-grid-cell-editor/TekAgGridCellEditor';
|
|
4
|
+
export default class TekAgGridSelectEditor extends TekAgGridCellEditor implements IVueSelectEditorComp {
|
|
5
|
+
params: ITekAgGridSelectEditorParams;
|
|
6
|
+
instance?: Select;
|
|
7
|
+
inputRef?: any;
|
|
8
|
+
defaultComponent: string;
|
|
9
|
+
/**
|
|
10
|
+
* When editing is finished, update grid row columns
|
|
11
|
+
*/
|
|
12
|
+
isCancelAfterEnd(): boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ITekAgGridCellEditorParams, IVueCellEditorComp } from '../tek-ag-grid-cell-editor/interfaces';
|
|
2
|
+
export interface ITekAgGridSelectEditorParams extends ITekAgGridCellEditorParams {
|
|
3
|
+
dataValueOut?: {
|
|
4
|
+
column: string;
|
|
5
|
+
columnOnGrid: string;
|
|
6
|
+
}[];
|
|
7
|
+
}
|
|
8
|
+
export interface IVueSelectEditorComp extends IVueCellEditorComp {
|
|
9
|
+
params: ITekAgGridSelectEditorParams;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import TekAgGridCellRenderer from '../tek-ag-grid-cell-renderer/TekAgGridCellRenderer';
|
|
2
|
+
import { ITekAgGridSelectRendererParams, IVueSelectRendererComp } from './interfaces';
|
|
3
|
+
export default class TekAgGridSelectRenderer extends TekAgGridCellRenderer implements IVueSelectRendererComp {
|
|
4
|
+
params: ITekAgGridSelectRendererParams;
|
|
5
|
+
formatter: Function;
|
|
6
|
+
formattedValue: string;
|
|
7
|
+
defaultFormatter: string;
|
|
8
|
+
updateFormattedValue(params: ITekAgGridSelectRendererParams): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ITekAgGridCellRendererParams, IVueCellRendererComp } from '../tek-ag-grid-cell-renderer/interfaces';
|
|
2
|
+
export interface ITekAgGridSelectRendererParams extends ITekAgGridCellRendererParams {
|
|
3
|
+
dataText: string | any[];
|
|
4
|
+
dataTextSeparator?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IVueSelectRendererComp extends IVueCellRendererComp {
|
|
7
|
+
params: ITekAgGridSelectRendererParams;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import TekGridCellEditor from './tek-grid-cell-editor/TekGridCellEditor.vue';
|
|
2
|
+
import TekGridCellRenderer from './tek-grid-cell-renderer/TekGridCellRenderer.vue';
|
|
3
|
+
import TekGridDate from './tek-grid-date/TekGridDate.vue';
|
|
4
|
+
import TekGridSelectEditor from './tek-grid-select-editor/TekGridSelectEditor.vue';
|
|
5
|
+
import TekGridSelectRenderer from './tek-grid-select-renderer/TekGridSelectRenderer.vue';
|
|
6
|
+
export { TekGridCellEditor, TekGridCellRenderer, TekGridDate, TekGridSelectEditor, TekGridSelectRenderer, };
|
package/types/components/tek-grid/tek-grid-components/tek-grid-cell-editor/TekGridCellEditor.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { IComponent, Input } from '@zeedhi/common';
|
|
3
|
+
import { ZdInput } from '@zeedhi/vuetify';
|
|
4
|
+
import { ITekGridCellEditorParams, IVueCellEditorComp } from './interfaces';
|
|
5
|
+
export default class TekGridCellEditor extends Vue implements IVueCellEditorComp {
|
|
6
|
+
params: ITekGridCellEditorParams;
|
|
7
|
+
instance?: Input;
|
|
8
|
+
inputRef?: ZdInput;
|
|
9
|
+
defaultComponent: string;
|
|
10
|
+
mounted(): void;
|
|
11
|
+
initRefs(): void;
|
|
12
|
+
getValue(): any;
|
|
13
|
+
get componentProps(): IComponent;
|
|
14
|
+
get name(): string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IComponent } from '@zeedhi/common';
|
|
2
|
+
import { ICellEditorComp, ICellRendererParams } from 'ag-grid-community';
|
|
3
|
+
export interface ITekGridCellEditorParams extends ICellRendererParams {
|
|
4
|
+
componentProps?: IComponent;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Methods not used in VueJS subcomponents
|
|
8
|
+
* https://www.ag-grid.com/documentation/vue/component-cell-editor/#methods--lifecycle-2
|
|
9
|
+
*/
|
|
10
|
+
declare type VueCellEditorComp = Omit<ICellEditorComp, 'getGui' | 'init' | 'afterGuiAttached'>;
|
|
11
|
+
export interface IVueCellEditorComp extends VueCellEditorComp {
|
|
12
|
+
params: ITekGridCellEditorParams;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { ITekGridCellRendererParams, IVueCellRendererComp } from './interfaces';
|
|
3
|
+
export default class TekGridCellRenderer extends Vue implements IVueCellRendererComp {
|
|
4
|
+
params: ITekGridCellRendererParams;
|
|
5
|
+
formatter: Function;
|
|
6
|
+
formattedValue: string;
|
|
7
|
+
defaultFormatter: string;
|
|
8
|
+
created(): void;
|
|
9
|
+
refresh(params: ITekGridCellRendererParams): boolean;
|
|
10
|
+
updateFormattedValue(params: ITekGridCellRendererParams): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ICellRendererComp, ICellRendererParams } from 'ag-grid-community';
|
|
2
|
+
export interface ITekGridCellRendererParams extends ICellRendererParams {
|
|
3
|
+
formatterName?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Methods not used in VueJS subcomponents
|
|
7
|
+
* https://www.ag-grid.com/documentation/vue/component-cell-renderer/#methods--lifecycle-2
|
|
8
|
+
*/
|
|
9
|
+
declare type VueCellRendererComp = Omit<ICellRendererComp, 'init' | 'getGui'>;
|
|
10
|
+
export interface IVueCellRendererComp extends VueCellRendererComp {
|
|
11
|
+
params: ITekGridCellRendererParams;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { Date as ZdDateInstance, IComponent } from '@zeedhi/common';
|
|
3
|
+
import { ZdDate } from '@zeedhi/vuetify';
|
|
4
|
+
import { ITekGridDateParams, IVueDateComp } from './interfaces';
|
|
5
|
+
export default class TekGridDate extends Vue implements IVueDateComp {
|
|
6
|
+
params: ITekGridDateParams;
|
|
7
|
+
instance?: ZdDateInstance;
|
|
8
|
+
inputRef?: ZdDate;
|
|
9
|
+
mounted(): void;
|
|
10
|
+
initRefs(): void;
|
|
11
|
+
getDate(): Date | null;
|
|
12
|
+
setDate(date: Date | null): void;
|
|
13
|
+
get componentProps(): IComponent;
|
|
14
|
+
private eventOverwritten;
|
|
15
|
+
/**
|
|
16
|
+
* Add mousedown to prevent ag-grid filter from closing
|
|
17
|
+
* https://www.ag-grid.com/documentation/vue/component-filter/#custom-filters-containing-a-popup-element
|
|
18
|
+
*/
|
|
19
|
+
addMenuMousedown(): void;
|
|
20
|
+
private getDateMenuContent;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IComponent } from '@zeedhi/common';
|
|
2
|
+
import { IDateComp, IDateParams } from 'ag-grid-community';
|
|
3
|
+
export interface ITekGridDateParams extends IDateParams {
|
|
4
|
+
componentProps?: IComponent;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Methods not used in VueJS subcomponents
|
|
8
|
+
* https://www.ag-grid.com/documentation/vue/component-cell-editor/#methods--lifecycle-2
|
|
9
|
+
*/
|
|
10
|
+
declare type VueDateComp = Omit<IDateComp, 'getGui' | 'init'>;
|
|
11
|
+
export interface IVueDateComp extends VueDateComp {
|
|
12
|
+
params: ITekGridDateParams;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Select } from '@zeedhi/common';
|
|
2
|
+
import { ITekGridSelectEditorParams, IVueSelectEditorComp } from './interfaces';
|
|
3
|
+
import TekGridCellEditor from '../tek-grid-cell-editor/TekGridCellEditor';
|
|
4
|
+
export default class TekGridSelectEditor extends TekGridCellEditor implements IVueSelectEditorComp {
|
|
5
|
+
params: ITekGridSelectEditorParams;
|
|
6
|
+
instance?: Select;
|
|
7
|
+
inputRef?: any;
|
|
8
|
+
defaultComponent: string;
|
|
9
|
+
/**
|
|
10
|
+
* When editing is finished, update grid row columns
|
|
11
|
+
*/
|
|
12
|
+
isCancelAfterEnd(): boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ITekGridCellEditorParams, IVueCellEditorComp } from '../tek-grid-cell-editor/interfaces';
|
|
2
|
+
export interface ITekGridSelectEditorParams extends ITekGridCellEditorParams {
|
|
3
|
+
dataValueOut?: {
|
|
4
|
+
column: string;
|
|
5
|
+
columnOnGrid: string;
|
|
6
|
+
}[];
|
|
7
|
+
}
|
|
8
|
+
export interface IVueSelectEditorComp extends IVueCellEditorComp {
|
|
9
|
+
params: ITekGridSelectEditorParams;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import TekGridCellRenderer from '../tek-grid-cell-renderer/TekGridCellRenderer';
|
|
2
|
+
import { ITekGridSelectRendererParams, IVueSelectRendererComp } from './interfaces';
|
|
3
|
+
export default class TekGridSelectRenderer extends TekGridCellRenderer implements IVueSelectRendererComp {
|
|
4
|
+
params: ITekGridSelectRendererParams;
|
|
5
|
+
formatter: Function;
|
|
6
|
+
formattedValue: string;
|
|
7
|
+
defaultFormatter: string;
|
|
8
|
+
updateFormattedValue(params: ITekGridSelectRendererParams): Promise<void>;
|
|
9
|
+
}
|
package/types/components/tek-grid/tek-grid-components/tek-grid-select-renderer/interfaces.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ITekGridCellRendererParams, IVueCellRendererComp } from '../tek-grid-cell-renderer/interfaces';
|
|
2
|
+
export interface ITekGridSelectRendererParams extends ITekGridCellRendererParams {
|
|
3
|
+
dataText: string | any[];
|
|
4
|
+
dataTextSeparator?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IVueSelectRendererComp extends IVueCellRendererComp {
|
|
7
|
+
params: ITekGridSelectRendererParams;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TekLogin as TekLoginClass } from '@zeedhi/teknisa-components-common';
|
|
2
|
+
import { IComponentRender } from '@zeedhi/common';
|
|
3
|
+
declare const ZdLogin: import("vue").VueConstructor<import("vue-property-decorator").Vue>;
|
|
4
|
+
/**
|
|
5
|
+
* TekLogin component
|
|
6
|
+
*/
|
|
7
|
+
export default class TekLogin extends ZdLogin {
|
|
8
|
+
cardWidth: string;
|
|
9
|
+
layout: string;
|
|
10
|
+
children: IComponentRender[];
|
|
11
|
+
instance: TekLoginClass;
|
|
12
|
+
instanceType: typeof TekLoginClass;
|
|
13
|
+
created(): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|