@yomotech/view-toolkit 0.0.1 → 0.0.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/ng-package.json +7 -0
- package/package.json +36 -22
- package/src/lib/app-version.ts +2 -0
- package/src/lib/containers/card/card.component.css +0 -0
- package/src/lib/containers/card/card.component.html +449 -0
- package/src/lib/containers/card/card.component.ts +471 -0
- package/src/lib/containers/form/form.component.css +0 -0
- package/src/lib/containers/form/form.component.html +1 -0
- package/src/lib/containers/form/form.component.ts +12 -0
- package/src/lib/containers/grid/grid.component.css +0 -0
- package/src/lib/containers/grid/grid.component.html +1 -0
- package/src/lib/containers/grid/grid.component.ts +12 -0
- package/src/lib/containers/pagination/pagination.component.css +0 -0
- package/src/lib/containers/pagination/pagination.component.html +1 -0
- package/src/lib/containers/pagination/pagination.component.ts +12 -0
- package/src/lib/services/app-version-reset.service.ts +59 -0
- package/src/lib/services/config.service.ts +128 -0
- package/src/lib/services/couchdb.ts +224 -0
- package/src/lib/services/mobile-keycloak.service.ts +116 -0
- package/src/lib/services/network-log.service.ts +27 -0
- package/src/lib/services/notification.service.ts +26 -0
- package/src/lib/services/pouchdb.service.ts +183 -0
- package/src/lib/services/request.service.ts +125 -0
- package/src/lib/services/utility.service.ts +593 -0
- package/src/lib/view-toolkit.module.ts +25 -0
- package/src/lib/view-toolkit.spec.ts +23 -0
- package/src/lib/view-toolkit.ts +15 -0
- package/src/public-api.ts +22 -0
- package/tsconfig.lib.json +17 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +15 -0
- package/fesm2022/abdulahad-view-toolkit.mjs +0 -94
- package/fesm2022/abdulahad-view-toolkit.mjs.map +0 -1
- package/fesm2022/abdulahad061-view-toolkit.mjs +0 -94
- package/fesm2022/abdulahad061-view-toolkit.mjs.map +0 -1
- package/fesm2022/yomotech-view-toolkit.mjs +0 -95
- package/fesm2022/yomotech-view-toolkit.mjs.map +0 -1
- package/types/abdulahad-view-toolkit.d.ts +0 -33
- package/types/abdulahad061-view-toolkit.d.ts +0 -33
- package/types/yomotech-view-toolkit.d.ts +0 -30
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// lib/view-toolkit.module.ts
|
|
2
|
+
|
|
3
|
+
import { CommonModule } from "@angular/common";
|
|
4
|
+
import { GridComponent } from "./containers/grid/grid.component";
|
|
5
|
+
import { NgModule } from '@angular/core';
|
|
6
|
+
import { CardComponent } from "./containers/card/card.component";
|
|
7
|
+
import { FormComponent } from "./containers/form/form.component";
|
|
8
|
+
import { PaginationComponent } from "./containers/pagination/pagination.component";
|
|
9
|
+
|
|
10
|
+
@NgModule({
|
|
11
|
+
imports: [
|
|
12
|
+
CommonModule,
|
|
13
|
+
CardComponent,
|
|
14
|
+
FormComponent,
|
|
15
|
+
GridComponent,
|
|
16
|
+
PaginationComponent
|
|
17
|
+
],
|
|
18
|
+
exports: [
|
|
19
|
+
CardComponent,
|
|
20
|
+
FormComponent,
|
|
21
|
+
GridComponent,
|
|
22
|
+
PaginationComponent
|
|
23
|
+
]
|
|
24
|
+
})
|
|
25
|
+
export class ViewToolkitModule { }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ViewToolkit } from './view-toolkit';
|
|
4
|
+
|
|
5
|
+
describe('ViewToolkit', () => {
|
|
6
|
+
let component: ViewToolkit;
|
|
7
|
+
let fixture: ComponentFixture<ViewToolkit>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [ViewToolkit]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(ViewToolkit);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
await fixture.whenStable();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of view-toolkit
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export * from './lib/view-toolkit.module';
|
|
6
|
+
|
|
7
|
+
// container
|
|
8
|
+
export * from './lib/containers/card/card.component';
|
|
9
|
+
export * from './lib/containers/form/form.component';
|
|
10
|
+
export * from './lib/containers/grid/grid.component';
|
|
11
|
+
export * from './lib/containers/pagination/pagination.component';
|
|
12
|
+
|
|
13
|
+
// services
|
|
14
|
+
export * from './lib/services/app-version-reset.service';
|
|
15
|
+
export * from './lib/services/config.service';
|
|
16
|
+
export * from './lib/services/couchdb';
|
|
17
|
+
export * from './lib/services/mobile-keycloak.service';
|
|
18
|
+
export * from './lib/services/network-log.service';
|
|
19
|
+
export * from './lib/services/notification.service';
|
|
20
|
+
export * from './lib/services/pouchdb.service';
|
|
21
|
+
export * from './lib/services/request.service';
|
|
22
|
+
export * from './lib/services/utility.service';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
+
{
|
|
4
|
+
"extends": "../../tsconfig.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"outDir": "../../out-tsc/lib",
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"types": []
|
|
10
|
+
},
|
|
11
|
+
"include": [
|
|
12
|
+
"src/**/*.ts"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"**/*.spec.ts"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
+
{
|
|
4
|
+
"extends": "./tsconfig.lib.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"declarationMap": false
|
|
7
|
+
},
|
|
8
|
+
"angularCompilerOptions": {
|
|
9
|
+
"compilationMode": "partial"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
+
{
|
|
4
|
+
"extends": "../../tsconfig.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"outDir": "../../out-tsc/spec",
|
|
7
|
+
"types": [
|
|
8
|
+
"vitest/globals"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"include": [
|
|
12
|
+
"src/**/*.d.ts",
|
|
13
|
+
"src/**/*.spec.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { Component, Input, NgModule } from '@angular/core';
|
|
4
|
-
|
|
5
|
-
class GridComponent {
|
|
6
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: GridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.2", type: GridComponent, isStandalone: true, selector: "vt-grid", ngImport: i0, template: "<p>grid works!</p>\r\n", styles: [""] });
|
|
8
|
-
}
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: GridComponent, decorators: [{
|
|
10
|
-
type: Component,
|
|
11
|
-
args: [{ selector: 'vt-grid', imports: [], standalone: true, template: "<p>grid works!</p>\r\n" }]
|
|
12
|
-
}] });
|
|
13
|
-
|
|
14
|
-
class CardComponent {
|
|
15
|
-
_cards = [];
|
|
16
|
-
set cards(value) {
|
|
17
|
-
console.log('value: ', value);
|
|
18
|
-
this._cards = Array.isArray(value) ? value : [];
|
|
19
|
-
}
|
|
20
|
-
get cards() {
|
|
21
|
-
console.log('this._cards: ', this._cards);
|
|
22
|
-
return this._cards;
|
|
23
|
-
}
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: CardComponent, isStandalone: true, selector: "vt-card", inputs: { cards: "cards" }, ngImport: i0, template: "<p>card works!</p>\r\n@for (card of cards; track $index) {\r\n <div>{{ card?.title }}</div>\r\n }", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|
|
26
|
-
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: CardComponent, decorators: [{
|
|
28
|
-
type: Component,
|
|
29
|
-
args: [{ selector: 'vt-card', imports: [CommonModule], standalone: true, template: "<p>card works!</p>\r\n@for (card of cards; track $index) {\r\n <div>{{ card?.title }}</div>\r\n }" }]
|
|
30
|
-
}], propDecorators: { cards: [{
|
|
31
|
-
type: Input
|
|
32
|
-
}] } });
|
|
33
|
-
|
|
34
|
-
class FormComponent {
|
|
35
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.2", type: FormComponent, isStandalone: true, selector: "vt-form", ngImport: i0, template: "<p>form works!</p>\r\n", styles: [""] });
|
|
37
|
-
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: FormComponent, decorators: [{
|
|
39
|
-
type: Component,
|
|
40
|
-
args: [{ selector: 'vt-form', imports: [], standalone: true, template: "<p>form works!</p>\r\n" }]
|
|
41
|
-
}] });
|
|
42
|
-
|
|
43
|
-
class PaginationComponent {
|
|
44
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.2", type: PaginationComponent, isStandalone: true, selector: "vt-pagination", ngImport: i0, template: "<p>pagination works!</p>\r\n", styles: [""] });
|
|
46
|
-
}
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
48
|
-
type: Component,
|
|
49
|
-
args: [{ selector: 'vt-pagination', imports: [], standalone: true, template: "<p>pagination works!</p>\r\n" }]
|
|
50
|
-
}] });
|
|
51
|
-
|
|
52
|
-
// lib/view-toolkit.module.ts
|
|
53
|
-
class ViewToolkitModule {
|
|
54
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ViewToolkitModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
55
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.2", ngImport: i0, type: ViewToolkitModule, imports: [CommonModule,
|
|
56
|
-
CardComponent,
|
|
57
|
-
FormComponent,
|
|
58
|
-
GridComponent,
|
|
59
|
-
PaginationComponent], exports: [CardComponent,
|
|
60
|
-
FormComponent,
|
|
61
|
-
GridComponent,
|
|
62
|
-
PaginationComponent] });
|
|
63
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ViewToolkitModule, imports: [CommonModule,
|
|
64
|
-
CardComponent] });
|
|
65
|
-
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ViewToolkitModule, decorators: [{
|
|
67
|
-
type: NgModule,
|
|
68
|
-
args: [{
|
|
69
|
-
imports: [
|
|
70
|
-
CommonModule,
|
|
71
|
-
CardComponent,
|
|
72
|
-
FormComponent,
|
|
73
|
-
GridComponent,
|
|
74
|
-
PaginationComponent
|
|
75
|
-
],
|
|
76
|
-
exports: [
|
|
77
|
-
CardComponent,
|
|
78
|
-
FormComponent,
|
|
79
|
-
GridComponent,
|
|
80
|
-
PaginationComponent
|
|
81
|
-
]
|
|
82
|
-
}]
|
|
83
|
-
}] });
|
|
84
|
-
|
|
85
|
-
/*
|
|
86
|
-
* Public API Surface of view-toolkit
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Generated bundle index. Do not edit.
|
|
91
|
-
*/
|
|
92
|
-
|
|
93
|
-
export { CardComponent, FormComponent, GridComponent, PaginationComponent, ViewToolkitModule };
|
|
94
|
-
//# sourceMappingURL=abdulahad-view-toolkit.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abdulahad-view-toolkit.mjs","sources":["../../../projects/view-toolkit/src/lib/containers/grid/grid.component.ts","../../../projects/view-toolkit/src/lib/containers/grid/grid.component.html","../../../projects/view-toolkit/src/lib/containers/card/card.component.ts","../../../projects/view-toolkit/src/lib/containers/card/card.component.html","../../../projects/view-toolkit/src/lib/containers/form/form.component.ts","../../../projects/view-toolkit/src/lib/containers/form/form.component.html","../../../projects/view-toolkit/src/lib/containers/pagination/pagination.component.ts","../../../projects/view-toolkit/src/lib/containers/pagination/pagination.component.html","../../../projects/view-toolkit/src/lib/view-toolkit.module.ts","../../../projects/view-toolkit/src/public-api.ts","../../../projects/view-toolkit/src/abdulahad-view-toolkit.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'vt-grid',\r\n imports: [],\r\n standalone: true,\r\n templateUrl: './grid.component.html',\r\n styleUrl: './grid.component.css',\r\n})\r\nexport class GridComponent {\r\n\r\n}\r\n","<p>grid works!</p>\r\n","import { CommonModule } from '@angular/common';\r\nimport { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'vt-card',\r\n imports: [CommonModule],\r\n standalone: true,\r\n templateUrl: './card.component.html',\r\n styleUrl: './card.component.css',\r\n})\r\nexport class CardComponent {\r\n private _cards: any[] = [];\r\n\r\n @Input()\r\n set cards(value: any[] | null | undefined) {\r\n console.log('value: ', value);\r\n this._cards = Array.isArray(value) ? value : [];\r\n }\r\n\r\n get cards(): any[] {\r\n console.log('this._cards: ', this._cards);\r\n return this._cards;\r\n }\r\n}\r\n","<p>card works!</p>\r\n@for (card of cards; track $index) {\r\n <div>{{ card?.title }}</div>\r\n }","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'vt-form',\r\n imports: [],\r\n standalone: true,\r\n templateUrl: './form.component.html',\r\n styleUrl: './form.component.css',\r\n})\r\nexport class FormComponent {\r\n\r\n}\r\n","<p>form works!</p>\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'vt-pagination',\r\n imports: [],\r\n standalone: true,\r\n templateUrl: './pagination.component.html',\r\n styleUrl: './pagination.component.css',\r\n})\r\nexport class PaginationComponent {\r\n\r\n}\r\n","<p>pagination works!</p>\r\n","// lib/view-toolkit.module.ts\r\n\r\nimport { CommonModule } from \"@angular/common\";\r\nimport { GridComponent } from \"./containers/grid/grid.component\";\r\nimport { NgModule } from '@angular/core';\r\nimport { CardComponent } from \"./containers/card/card.component\";\r\nimport { FormComponent } from \"./containers/form/form.component\";\r\nimport { PaginationComponent } from \"./containers/pagination/pagination.component\";\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n CardComponent,\r\n FormComponent,\r\n GridComponent,\r\n PaginationComponent\r\n ],\r\n exports: [\r\n CardComponent,\r\n FormComponent,\r\n GridComponent,\r\n PaginationComponent\r\n ]\r\n})\r\nexport class ViewToolkitModule { }","/*\r\n * Public API Surface of view-toolkit\r\n */\r\n\r\nexport * from './lib/view-toolkit.module';\r\n\r\nexport * from './lib/containers/card/card.component';\r\nexport * from './lib/containers/form/form.component';\r\nexport * from './lib/containers/grid/grid.component';\r\nexport * from './lib/containers/pagination/pagination.component';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MASa,aAAa,CAAA;uGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,mECT1B,wBACA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FDQa,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;+BACE,SAAS,EAAA,OAAA,EACV,EAAE,EAAA,UAAA,EACC,IAAI,EAAA,QAAA,EAAA,wBAAA,EAAA;;;MEKL,aAAa,CAAA;IAChB,MAAM,GAAU,EAAE;IAE1B,IACI,KAAK,CAAC,KAA+B,EAAA;AACvC,QAAA,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC;AAC7B,QAAA,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,EAAE;IACjD;AAEA,IAAA,IAAI,KAAK,GAAA;QACP,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,MAAM;IACpB;u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|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { Component, Input, NgModule } from '@angular/core';
|
|
4
|
-
|
|
5
|
-
class GridComponent {
|
|
6
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: GridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.2", type: GridComponent, isStandalone: true, selector: "vt-grid", ngImport: i0, template: "<p>grid works!</p>\r\n", styles: [""] });
|
|
8
|
-
}
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: GridComponent, decorators: [{
|
|
10
|
-
type: Component,
|
|
11
|
-
args: [{ selector: 'vt-grid', imports: [], standalone: true, template: "<p>grid works!</p>\r\n" }]
|
|
12
|
-
}] });
|
|
13
|
-
|
|
14
|
-
class CardComponent {
|
|
15
|
-
_cards = [];
|
|
16
|
-
set cards(value) {
|
|
17
|
-
console.log('value: ', value);
|
|
18
|
-
this._cards = Array.isArray(value) ? value : [];
|
|
19
|
-
}
|
|
20
|
-
get cards() {
|
|
21
|
-
console.log('this._cards: ', this._cards);
|
|
22
|
-
return this._cards;
|
|
23
|
-
}
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: CardComponent, isStandalone: true, selector: "vt-card", inputs: { cards: "cards" }, ngImport: i0, template: "<p>card works!</p>\r\n@for (card of cards; track $index) {\r\n <div>{{ card?.title }}</div>\r\n }", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|
|
26
|
-
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: CardComponent, decorators: [{
|
|
28
|
-
type: Component,
|
|
29
|
-
args: [{ selector: 'vt-card', imports: [CommonModule], standalone: true, template: "<p>card works!</p>\r\n@for (card of cards; track $index) {\r\n <div>{{ card?.title }}</div>\r\n }" }]
|
|
30
|
-
}], propDecorators: { cards: [{
|
|
31
|
-
type: Input
|
|
32
|
-
}] } });
|
|
33
|
-
|
|
34
|
-
class FormComponent {
|
|
35
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.2", type: FormComponent, isStandalone: true, selector: "vt-form", ngImport: i0, template: "<p>form works!</p>\r\n", styles: [""] });
|
|
37
|
-
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: FormComponent, decorators: [{
|
|
39
|
-
type: Component,
|
|
40
|
-
args: [{ selector: 'vt-form', imports: [], standalone: true, template: "<p>form works!</p>\r\n" }]
|
|
41
|
-
}] });
|
|
42
|
-
|
|
43
|
-
class PaginationComponent {
|
|
44
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.2", type: PaginationComponent, isStandalone: true, selector: "vt-pagination", ngImport: i0, template: "<p>pagination works!</p>\r\n", styles: [""] });
|
|
46
|
-
}
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
48
|
-
type: Component,
|
|
49
|
-
args: [{ selector: 'vt-pagination', imports: [], standalone: true, template: "<p>pagination works!</p>\r\n" }]
|
|
50
|
-
}] });
|
|
51
|
-
|
|
52
|
-
// lib/view-toolkit.module.ts
|
|
53
|
-
class ViewToolkitModule {
|
|
54
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ViewToolkitModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
55
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.2", ngImport: i0, type: ViewToolkitModule, imports: [CommonModule,
|
|
56
|
-
CardComponent,
|
|
57
|
-
FormComponent,
|
|
58
|
-
GridComponent,
|
|
59
|
-
PaginationComponent], exports: [CardComponent,
|
|
60
|
-
FormComponent,
|
|
61
|
-
GridComponent,
|
|
62
|
-
PaginationComponent] });
|
|
63
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ViewToolkitModule, imports: [CommonModule,
|
|
64
|
-
CardComponent] });
|
|
65
|
-
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ViewToolkitModule, decorators: [{
|
|
67
|
-
type: NgModule,
|
|
68
|
-
args: [{
|
|
69
|
-
imports: [
|
|
70
|
-
CommonModule,
|
|
71
|
-
CardComponent,
|
|
72
|
-
FormComponent,
|
|
73
|
-
GridComponent,
|
|
74
|
-
PaginationComponent
|
|
75
|
-
],
|
|
76
|
-
exports: [
|
|
77
|
-
CardComponent,
|
|
78
|
-
FormComponent,
|
|
79
|
-
GridComponent,
|
|
80
|
-
PaginationComponent
|
|
81
|
-
]
|
|
82
|
-
}]
|
|
83
|
-
}] });
|
|
84
|
-
|
|
85
|
-
/*
|
|
86
|
-
* Public API Surface of view-toolkit
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Generated bundle index. Do not edit.
|
|
91
|
-
*/
|
|
92
|
-
|
|
93
|
-
export { CardComponent, FormComponent, GridComponent, PaginationComponent, ViewToolkitModule };
|
|
94
|
-
//# sourceMappingURL=abdulahad061-view-toolkit.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abdulahad061-view-toolkit.mjs","sources":["../../../projects/view-toolkit/src/lib/containers/grid/grid.component.ts","../../../projects/view-toolkit/src/lib/containers/grid/grid.component.html","../../../projects/view-toolkit/src/lib/containers/card/card.component.ts","../../../projects/view-toolkit/src/lib/containers/card/card.component.html","../../../projects/view-toolkit/src/lib/containers/form/form.component.ts","../../../projects/view-toolkit/src/lib/containers/form/form.component.html","../../../projects/view-toolkit/src/lib/containers/pagination/pagination.component.ts","../../../projects/view-toolkit/src/lib/containers/pagination/pagination.component.html","../../../projects/view-toolkit/src/lib/view-toolkit.module.ts","../../../projects/view-toolkit/src/public-api.ts","../../../projects/view-toolkit/src/abdulahad061-view-toolkit.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'vt-grid',\r\n imports: [],\r\n standalone: true,\r\n templateUrl: './grid.component.html',\r\n styleUrl: './grid.component.css',\r\n})\r\nexport class GridComponent {\r\n\r\n}\r\n","<p>grid works!</p>\r\n","import { CommonModule } from '@angular/common';\r\nimport { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'vt-card',\r\n imports: [CommonModule],\r\n standalone: true,\r\n templateUrl: './card.component.html',\r\n styleUrl: './card.component.css',\r\n})\r\nexport class CardComponent {\r\n private _cards: any[] = [];\r\n\r\n @Input()\r\n set cards(value: any[] | null | undefined) {\r\n console.log('value: ', value);\r\n this._cards = Array.isArray(value) ? value : [];\r\n }\r\n\r\n get cards(): any[] {\r\n console.log('this._cards: ', this._cards);\r\n return this._cards;\r\n }\r\n}\r\n","<p>card works!</p>\r\n@for (card of cards; track $index) {\r\n <div>{{ card?.title }}</div>\r\n }","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'vt-form',\r\n imports: [],\r\n standalone: true,\r\n templateUrl: './form.component.html',\r\n styleUrl: './form.component.css',\r\n})\r\nexport class FormComponent {\r\n\r\n}\r\n","<p>form works!</p>\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'vt-pagination',\r\n imports: [],\r\n standalone: true,\r\n templateUrl: './pagination.component.html',\r\n styleUrl: './pagination.component.css',\r\n})\r\nexport class PaginationComponent {\r\n\r\n}\r\n","<p>pagination works!</p>\r\n","// lib/view-toolkit.module.ts\r\n\r\nimport { CommonModule } from \"@angular/common\";\r\nimport { GridComponent } from \"./containers/grid/grid.component\";\r\nimport { NgModule } from '@angular/core';\r\nimport { CardComponent } from \"./containers/card/card.component\";\r\nimport { FormComponent } from \"./containers/form/form.component\";\r\nimport { PaginationComponent } from \"./containers/pagination/pagination.component\";\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n CardComponent,\r\n FormComponent,\r\n GridComponent,\r\n PaginationComponent\r\n ],\r\n exports: [\r\n CardComponent,\r\n FormComponent,\r\n GridComponent,\r\n PaginationComponent\r\n ]\r\n})\r\nexport class ViewToolkitModule { }","/*\r\n * Public API Surface of view-toolkit\r\n */\r\n\r\nexport * from './lib/view-toolkit.module';\r\n\r\nexport * from './lib/containers/card/card.component';\r\nexport * from './lib/containers/form/form.component';\r\nexport * from './lib/containers/grid/grid.component';\r\nexport * from './lib/containers/pagination/pagination.component';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MASa,aAAa,CAAA;uGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,mECT1B,wBACA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FDQa,aAAa,EAAA,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AA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAbtB,YAAY;YACZ,aAAa,CAAA,EAAA,CAAA;;2FAYR,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAf7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,aAAa;wBACb,aAAa;wBACb,aAAa;wBACb;AACH,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,aAAa;wBACb,aAAa;wBACb,aAAa;wBACb;AACH;AACJ,iBAAA;;;ACvBD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { Component, NgModule } from '@angular/core';
|
|
4
|
-
import { FormsModule } from '@angular/forms';
|
|
5
|
-
|
|
6
|
-
class GridComponent {
|
|
7
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: GridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.2", type: GridComponent, isStandalone: true, selector: "vt-grid", ngImport: i0, template: "<p>grid works!</p>\r\n", styles: [""] });
|
|
9
|
-
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: GridComponent, decorators: [{
|
|
11
|
-
type: Component,
|
|
12
|
-
args: [{ selector: 'vt-grid', imports: [], standalone: true, template: "<p>grid works!</p>\r\n" }]
|
|
13
|
-
}] });
|
|
14
|
-
|
|
15
|
-
// import { RequestService } from '../../services/request.service';
|
|
16
|
-
class CardComponent {
|
|
17
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.2", type: CardComponent, isStandalone: true, selector: "vt-card", ngImport: i0, template: "<h1>hello word</h1>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }] });
|
|
19
|
-
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: CardComponent, decorators: [{
|
|
21
|
-
type: Component,
|
|
22
|
-
args: [{ selector: 'vt-card', imports: [
|
|
23
|
-
CommonModule,
|
|
24
|
-
FormsModule,
|
|
25
|
-
// NzIconModule,
|
|
26
|
-
// DatePickerModule,
|
|
27
|
-
// NzButtonModule,
|
|
28
|
-
// NzDatePickerModule,
|
|
29
|
-
// NzModalModule,
|
|
30
|
-
// // StringComponent,
|
|
31
|
-
// PaginationComponent
|
|
32
|
-
], standalone: true, template: "<h1>hello word</h1>" }]
|
|
33
|
-
}] });
|
|
34
|
-
|
|
35
|
-
class FormComponent {
|
|
36
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.2", type: FormComponent, isStandalone: true, selector: "vt-form", ngImport: i0, template: "<p>form works!</p>\r\n", styles: [""] });
|
|
38
|
-
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: FormComponent, decorators: [{
|
|
40
|
-
type: Component,
|
|
41
|
-
args: [{ selector: 'vt-form', imports: [], standalone: true, template: "<p>form works!</p>\r\n" }]
|
|
42
|
-
}] });
|
|
43
|
-
|
|
44
|
-
class PaginationComponent {
|
|
45
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.2", type: PaginationComponent, isStandalone: true, selector: "vt-pagination", ngImport: i0, template: "<p>pagination works!</p>\r\n", styles: [""] });
|
|
47
|
-
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
49
|
-
type: Component,
|
|
50
|
-
args: [{ selector: 'vt-pagination', imports: [], standalone: true, template: "<p>pagination works!</p>\r\n" }]
|
|
51
|
-
}] });
|
|
52
|
-
|
|
53
|
-
// lib/view-toolkit.module.ts
|
|
54
|
-
class ViewToolkitModule {
|
|
55
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ViewToolkitModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
56
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.2", ngImport: i0, type: ViewToolkitModule, imports: [CommonModule,
|
|
57
|
-
CardComponent,
|
|
58
|
-
FormComponent,
|
|
59
|
-
GridComponent,
|
|
60
|
-
PaginationComponent], exports: [CardComponent,
|
|
61
|
-
FormComponent,
|
|
62
|
-
GridComponent,
|
|
63
|
-
PaginationComponent] });
|
|
64
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ViewToolkitModule, imports: [CommonModule,
|
|
65
|
-
CardComponent] });
|
|
66
|
-
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ViewToolkitModule, decorators: [{
|
|
68
|
-
type: NgModule,
|
|
69
|
-
args: [{
|
|
70
|
-
imports: [
|
|
71
|
-
CommonModule,
|
|
72
|
-
CardComponent,
|
|
73
|
-
FormComponent,
|
|
74
|
-
GridComponent,
|
|
75
|
-
PaginationComponent
|
|
76
|
-
],
|
|
77
|
-
exports: [
|
|
78
|
-
CardComponent,
|
|
79
|
-
FormComponent,
|
|
80
|
-
GridComponent,
|
|
81
|
-
PaginationComponent
|
|
82
|
-
]
|
|
83
|
-
}]
|
|
84
|
-
}] });
|
|
85
|
-
|
|
86
|
-
/*
|
|
87
|
-
* Public API Surface of view-toolkit
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Generated bundle index. Do not edit.
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
export { CardComponent, FormComponent, GridComponent, PaginationComponent, ViewToolkitModule };
|
|
95
|
-
//# sourceMappingURL=yomotech-view-toolkit.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yomotech-view-toolkit.mjs","sources":["../../../projects/view-toolkit/src/lib/containers/grid/grid.component.ts","../../../projects/view-toolkit/src/lib/containers/grid/grid.component.html","../../../projects/view-toolkit/src/lib/containers/card/card.component.ts","../../../projects/view-toolkit/src/lib/containers/card/card.component.html","../../../projects/view-toolkit/src/lib/containers/form/form.component.ts","../../../projects/view-toolkit/src/lib/containers/form/form.component.html","../../../projects/view-toolkit/src/lib/containers/pagination/pagination.component.ts","../../../projects/view-toolkit/src/lib/containers/pagination/pagination.component.html","../../../projects/view-toolkit/src/lib/view-toolkit.module.ts","../../../projects/view-toolkit/src/public-api.ts","../../../projects/view-toolkit/src/yomotech-view-toolkit.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'vt-grid',\r\n imports: [],\r\n standalone: true,\r\n templateUrl: './grid.component.html',\r\n styleUrl: './grid.component.css',\r\n})\r\nexport class GridComponent {\r\n\r\n}\r\n","<p>grid works!</p>\r\n","import { CommonModule } from '@angular/common';\r\nimport { ChangeDetectorRef, Component, EventEmitter, Input, NgZone, Output } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n// import { UtilityService } from '../../services/utility.service';\r\nimport { HttpClient } from '@angular/common/http';\r\n// import { RequestService } from '../../services/request.service';\r\n\r\n@Component({\r\n selector: 'vt-card',\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n // NzIconModule,\r\n // DatePickerModule,\r\n // NzButtonModule,\r\n // NzDatePickerModule,\r\n // NzModalModule,\r\n // // StringComponent,\r\n // PaginationComponent\r\n ],\r\n standalone: true,\r\n templateUrl: './card.component.html',\r\n styleUrl: './card.component.css',\r\n})\r\nexport class CardComponent {\r\n // @Input() itemInfo: any = {};\r\n // @Input() currentPage: number = 0;\r\n // @Input() pageSize: number = 5;\r\n // @Input() selectedLanguageInfo: any = {};\r\n // @Input() pages: number[] = [];\r\n // @Output() cardButtonClick: EventEmitter<any> = new EventEmitter();\r\n // @Output() cardHeaderButtonClick: EventEmitter<any> = new EventEmitter();\r\n // @Output() linkDetails: EventEmitter<any> = new EventEmitter();\r\n // @Output() imageDetails: EventEmitter<any> = new EventEmitter();\r\n // @Output() onPageSizeChange: EventEmitter<any> = new EventEmitter();\r\n // @Output() onPageChange: EventEmitter<any> = new EventEmitter();\r\n // cardPerRow: string = \"col-12 md:col-6 lg:col-\";\r\n // isLoading: boolean = false;\r\n // layoutSchemaCopy: any = {};\r\n // headerSchemaCopy: any = {};\r\n // footerSchemaCopy: any = {};\r\n\r\n\r\n // constructor(\r\n // private utilityService: UtilityService,\r\n // private platform: Platform,\r\n // private http: HttpClient,\r\n // private cdr: ChangeDetectorRef,\r\n // private zone: NgZone,\r\n // private modalService: NzModalService,\r\n // private oauthService: OAuthService,\r\n // private requestService: RequestService) {\r\n // }\r\n\r\n // ngOnInit() {\r\n // if ((this.platform.ANDROID || this.platform.IOS) && !this.platform?.isBrowser) {\r\n // this.cardPerRow = \"col-\";\r\n // } else {\r\n // this.cardPerRow = \"col-12 md:col-6 lg:col-\";\r\n // }\r\n // }\r\n\r\n // ngOnChanges(changes: SimpleChanges): void {\r\n // if (changes['itemInfo']) {\r\n // if (this.itemInfo.layoutSchema) {\r\n // this.layoutSchemaCopy = JSON.parse(JSON.stringify(this.itemInfo.layoutSchema));\r\n // }\r\n // if (this.itemInfo.header) {\r\n // this.headerSchemaCopy = JSON.parse(JSON.stringify(this.itemInfo.header));\r\n // }\r\n // if (this.itemInfo.footer) {\r\n // this.footerSchemaCopy = JSON.parse(JSON.stringify(this.itemInfo.footer));\r\n // }\r\n // }\r\n // if ((changes['selectedLanguageInfo'] || this.selectedLanguageInfo) && this.selectedLanguageInfo.selectedLanguage) {\r\n // this.itemInfo.footer = this.updatebuttonLanguage(this.footerSchemaCopy, this.selectedLanguageInfo.selectedLanguage)\r\n // this.itemInfo.header = this.updatebuttonLanguage(this.headerSchemaCopy, this.selectedLanguageInfo.selectedLanguage)\r\n // this.itemInfo.layoutSchema = this.updateLayoutLanguage(this.layoutSchemaCopy, this.selectedLanguageInfo.selectedLanguage)\r\n // }\r\n // }\r\n\r\n // private safeUpdate(fn: () => void) {\r\n // if (NgZone.isInAngularZone()) {\r\n // fn();\r\n // this.cdr.markForCheck();\r\n // } else {\r\n // this.zone.run(() => {\r\n // fn();\r\n // this.cdr.markForCheck();\r\n // });\r\n // }\r\n // }\r\n\r\n // forceNumericKeyboard(event: any) {\r\n // const input = event?.target as HTMLInputElement;\r\n // if (input && input.tagName === 'INPUT') {\r\n // input.setAttribute('inputmode', 'numeric'); // Android\r\n // input.setAttribute('pattern', '[0-9:]*'); // iOS\r\n // input.setAttribute('type', 'tel'); // strongest signal\r\n // }\r\n // }\r\n\r\n // onDateTyping(event: any) {\r\n // const input = event.target as HTMLInputElement;\r\n // if (!input) return;\r\n // let digits = input.value.replace(/\\D/g, '');\r\n // digits = digits.substring(0, 8);\r\n // let formatted = '';\r\n // if (digits.length <= 4) {\r\n // formatted = digits;\r\n // } else if (digits.length <= 6) {\r\n // formatted = `${digits.slice(0, 4)}-${digits.slice(4)}`;\r\n // } else {\r\n // formatted = `${digits.slice(0, 4)}-${digits.slice(4, 6)}-${digits.slice(6)}`;\r\n // }\r\n // input.value = formatted;\r\n // }\r\n\r\n // updatebuttonLanguage<T>(\r\n // schema: T,\r\n // translations: Record<string, string>\r\n // ): T {\r\n // const cloned = JSON.parse(JSON.stringify(schema));\r\n\r\n // const walk = (obj: any) => {\r\n // if (!obj || typeof obj !== 'object') return;\r\n\r\n // // ✅ Replace direct caption (e.g. button.caption)\r\n // if (typeof obj.caption === 'string') {\r\n // const original = obj.caption;\r\n // obj.caption = translations[original] ?? original;\r\n // }\r\n\r\n // // ✅ Replace modalTitle if present\r\n // if (typeof obj.modalTitle === 'string') {\r\n // const original = obj.modalTitle;\r\n // obj.modalTitle = translations[original] ?? original;\r\n // }\r\n\r\n // // 🔁 Recurse\r\n // Object.keys(obj).forEach((key) => {\r\n // const value = obj[key];\r\n // if (typeof value === 'object') {\r\n // walk(value);\r\n // }\r\n // });\r\n // };\r\n\r\n // walk(cloned);\r\n // return cloned;\r\n // }\r\n\r\n\r\n // updateLayoutLanguage<T>(\r\n // schema: T,\r\n // translations: Record<string, string>\r\n // ): T {\r\n // // Deep clone to avoid mutating original schema\r\n // const cloned = JSON.parse(JSON.stringify(schema));\r\n\r\n // const walk = (obj: any) => {\r\n // if (!obj || typeof obj !== 'object') return;\r\n\r\n // // ✅ If label.caption exists → translate it\r\n // if (obj.label && typeof obj.label.caption === 'string') {\r\n // const originalCaption = obj.label.caption;\r\n // obj.label.caption =\r\n // translations[originalCaption] ?? originalCaption;\r\n // }\r\n\r\n // // 🔁 Recurse into object properties\r\n // Object.keys(obj).forEach((key) => {\r\n // const value = obj[key];\r\n // if (typeof value === 'object') {\r\n // walk(value);\r\n // }\r\n // });\r\n // };\r\n\r\n // walk(cloned);\r\n // return cloned;\r\n // }\r\n\r\n // dateChangeEvent(filter: any, value: any) {\r\n // const scope = this.getScope(filter.scope.reference);\r\n // const field = filter.scope?.reference.split('/').pop();\r\n // this.itemInfo.propertySchema[scope][field].value = value\r\n // this.applyDateFilter(this.extractFilterValues(this.itemInfo.propertySchema[scope]))\r\n // }\r\n\r\n // async applyDateFilter(filters: any) {\r\n // const from = filters.fromDateFilter ? new Date(filters.fromDateFilter) : null;\r\n // const to = filters.toDateFilter ? new Date(filters.toDateFilter) : null;\r\n // if (to && from) {\r\n // const formattedFrom = this.formatToOffsetISO(from);\r\n // const formattedTo = this.formatToOffsetISO(to);\r\n // const keycloakInfo: any = await this.utilityService.getLocalStorage('KeycloakInfo');\r\n // const logined: any = await this.utilityService.getLocalStorage('loginedUser');\r\n // this.safeUpdate(() => this.isLoading = true);\r\n // if (this.platform.ANDROID || this.platform.IOS) {\r\n // let saveOrder = await this.getSaveOrder(keycloakInfo?.token, keycloakInfo, formattedFrom, formattedTo)\r\n // this.itemInfo.data = saveOrder?.length > 0 ? saveOrder : []\r\n // this.safeUpdate(() => this.isLoading = false);\r\n // } else {\r\n // this.requestService.getSaveOrder(logined?.token, logined, formattedFrom, formattedTo).subscribe((saveOrders: any) => {\r\n // const updatedData = this.utilityService.restoreDatesFromStorage(saveOrders, this.itemInfo.propertySchema);\r\n // this.itemInfo.data = updatedData?.length > 0 ? updatedData : []\r\n // this.safeUpdate(() => this.isLoading = false);\r\n // })\r\n // }\r\n // }\r\n // }\r\n\r\n // async getSaveOrder(\r\n // token: string,\r\n // userInfo: any,\r\n // fromDate: any,\r\n // toDate: any\r\n // ) {\r\n // if (!token) {\r\n // return;\r\n // }\r\n\r\n // const company = userInfo.p5_plant\r\n // ? `${userInfo.p5_group}/${userInfo.p5_client}/${userInfo.p5_plant}`\r\n // : `${userInfo.p5_group}/${userInfo.p5_client}/`;\r\n\r\n // const url = `${userInfo.p5_backend_url}/assetsmobileservice/Zeiterfassung/requestBookedTimeRecording`;\r\n\r\n // try {\r\n // const response = await CapacitorHttp.post({\r\n // url,\r\n // params: {\r\n // resourceNo: userInfo.p5_resource_no,\r\n // workDayFrom: fromDate,\r\n // workDayTo: toDate,\r\n // company,\r\n // appVersion: '1',\r\n // },\r\n // headers: {\r\n // Authorization: `Bearer ${token}`, // ✅ REQUIRED\r\n // Accept: 'application/json',\r\n // },\r\n // // ❗ NO BODY needed for this endpoint\r\n // });\r\n\r\n // console.log('getSaveOrder response:', response.data);\r\n // return response.data;\r\n\r\n // } catch (error) {\r\n // console.error('Failed to fetch saved orders', error);\r\n // throw error;\r\n // }\r\n // }\r\n\r\n // formatToOffsetISO(date: Date): string {\r\n // if (!date) return \"\";\r\n\r\n // const pad = (n: number, len = 2) => String(n).padStart(len, \"0\");\r\n // const year = date.getFullYear();\r\n // const month = pad(date.getMonth() + 1);\r\n // const day = pad(date.getDate());\r\n // const hours = pad(date.getHours());\r\n // const minutes = pad(date.getMinutes());\r\n // const seconds = pad(date.getSeconds());\r\n // const ms = pad(date.getMilliseconds(), 4); // 4-digit milliseconds\r\n\r\n // // timezone offset\r\n // const offset = -date.getTimezoneOffset(); // in minutes\r\n // const offSign = offset >= 0 ? \"+\" : \"-\";\r\n // const offHours = pad(Math.floor(Math.abs(offset) / 60));\r\n // const offMinutes = pad(Math.abs(offset) % 60);\r\n\r\n // return `${year}-${month}-${day}T${hours}:${minutes}:${seconds}:${ms}${offSign}${offHours}:${offMinutes}`;\r\n // }\r\n\r\n // extractFilterValues(schema: Record<string, any>): Record<string, any> {\r\n // return Object.keys(schema).reduce((acc, key) => {\r\n // if (key.includes('Filter') && schema[key]?.value !== undefined) {\r\n // acc[key] = schema[key].value;\r\n // }\r\n // return acc;\r\n // }, {} as Record<string, any>);\r\n // }\r\n\r\n // invokeOnPageSizeChange(pageSize: any) {\r\n // this.onPageSizeChange.emit(pageSize);\r\n // }\r\n\r\n // invokeGoToPage(page: any) {\r\n // this.onPageChange.emit(page);\r\n // }\r\n\r\n // invokeOnCardHeader(element: any) {\r\n // this.cardHeaderButtonClick.emit(element);\r\n // }\r\n\r\n // invokeOnCardFooter(element: any) {\r\n // // this.cardHeaderButtonClick.emit(element);\r\n // this.d4_SaveAll();\r\n // }\r\n\r\n // async invokeButtonClick(layout: any, record: any, recordIndex: any) {\r\n // if (layout?.option?.action === \"delete\" && layout?.option?.storageType == \"localstorage\") {\r\n // if (layout?.option?.deleteMessage) {\r\n // this.showConfirm(layout?.option, recordIndex);\r\n // }\r\n // } else if (layout?.option?.action === \"save\" && layout?.option?.storageType === \"database\") {\r\n // const final_array = this.utilityService.convertToDailyLogs(record);\r\n // await this.saveToDb(final_array, recordIndex, layout.option.data_url)\r\n // } else {\r\n // this.cardButtonClick.emit({ layout: layout, record: record, recordIndex: recordIndex });\r\n // }\r\n // }\r\n\r\n // showConfirm(option: any, recordIndex: any) {\r\n // this.modalService.confirm({\r\n // nzTitle: this.selectedLanguageInfo && this.selectedLanguageInfo?.selectedLanguage['Confirm'] ? this.selectedLanguageInfo.selectedLanguage['Confirm'] : 'Confirm',\r\n // nzContent: this.selectedLanguageInfo && this.selectedLanguageInfo?.selectedLanguage[option.deleteMessage] ? this.selectedLanguageInfo.selectedLanguage[option.deleteMessage] : option.deleteMessage,\r\n // nzOkText: this.selectedLanguageInfo && this.selectedLanguageInfo?.selectedLanguage['Delete'] ? this.selectedLanguageInfo.selectedLanguage['Delete'] : 'Delete',\r\n // nzCancelText: this.selectedLanguageInfo && this.selectedLanguageInfo?.selectedLanguage['Cancel'] ? this.selectedLanguageInfo.selectedLanguage['Cancel'] : 'Cancel',\r\n // nzOnOk: () => this.deleteRecord(recordIndex, option.data_url)\r\n // })\r\n // }\r\n\r\n // async d4_SaveAll() {\r\n // let allOrders: any[] = [];\r\n // for (let i = 0; i < this.itemInfo.data.length; i++) {\r\n // const element = this.itemInfo.data[i];\r\n // const dailyLogs = this.utilityService.convertToDailyLogs(element);\r\n // if (Array.isArray(dailyLogs)) {\r\n // allOrders.push(...dailyLogs);\r\n // }\r\n // }\r\n // await this.saveToDb(allOrders, null, true);\r\n // }\r\n\r\n\r\n // deleteRecord(recordIndex: any, data_url: any) {\r\n // this.itemInfo.data.splice(recordIndex, 1);\r\n // this.utilityService.setLocalStorage('timeRecords', JSON.stringify(this.itemInfo.data));\r\n // }\r\n\r\n // deleteAllRecord() {\r\n // this.itemInfo.data = []\r\n // this.utilityService.setLocalStorage('timeRecords', JSON.stringify(this.itemInfo.data));\r\n // }\r\n\r\n // async saveToDb(orders: any, orderIndex?: any, data_url?: any, deleteAll: boolean = false) {\r\n // this.safeUpdate(() => this.isLoading = true);\r\n // const token = this.oauthService.getAccessToken(); // whatever you have\r\n // const logined: any = await this.utilityService.getLocalStorage('loginedUser');\r\n // const keycloakInfo: any = await this.utilityService.getLocalStorage('KeycloakInfo');\r\n // let saveobject = {\r\n // ressourceNo: logined?.p5_resource_no ? logined.p5_resource_no : keycloakInfo?.p5_resource_no,\r\n // returnTimeRecordingLine: orders\r\n // }\r\n // if (this.platform.ANDROID || this.platform.IOS) {\r\n // const res = await this.mobileSaveDb(keycloakInfo.token, keycloakInfo, saveobject, orderIndex, data_url, deleteAll);\r\n // } else {\r\n // this.webSaveDb(token, logined, saveobject, orderIndex, data_url, deleteAll);\r\n // }\r\n // }\r\n\r\n // webSaveDb(token: any, userInfo: any, order: any = {}, orderIndex?: any, dataUrl?: any, deleteAll: boolean = false) {\r\n // if (token) {\r\n // const headers = new HttpHeaders({\r\n // 'Authorization': `Bearer ${token}`,\r\n // 'Accept': 'application/json'\r\n // });\r\n // let url2: any = `${userInfo.p5_backend_url}/assetsmobileservice/Zeiterfassung/registerTimeRecording?company=${userInfo.p5_group}/${userInfo.p5_client}/${userInfo.p5_plant ? userInfo.p5_plant : \" \"}&appVersion=1&resourceNo=${userInfo.p5_resource_no}`\r\n // this.http.post(url2, order, { headers }).subscribe({\r\n // next: res => {\r\n // this.safeUpdate(() => this.isLoading = false);\r\n // if (orderIndex && orderIndex > -1) {\r\n // this.deleteRecord(orderIndex, dataUrl)\r\n // } else {\r\n // this.deleteAllRecord();\r\n // }\r\n // }\r\n // })\r\n // }\r\n // }\r\n\r\n // async mobileSaveDb(token: string, userInfo: any, order: any = {}, orderIndex: number, dataUrl: any, deleteAll: boolean = false) {\r\n // if (!token) {\r\n // console.log(\"NO-token\", token);\r\n // return;\r\n // }\r\n\r\n // const company = userInfo.p5_plant\r\n // ? `${userInfo.p5_group}/${userInfo.p5_client}/${userInfo.p5_plant}`\r\n // : `${userInfo.p5_group}/${userInfo.p5_client}/`;\r\n\r\n // const url = `${userInfo.p5_backend_url}/assetsmobileservice/Zeiterfassung/registerTimeRecording`;\r\n\r\n // try {\r\n // const response = await CapacitorHttp.post({\r\n // url,\r\n // params: {\r\n // company,\r\n // appVersion: '1',\r\n // resourceNo: userInfo.p5_resource_no,\r\n // },\r\n // headers: {\r\n // Authorization: `Bearer ${token}`,\r\n // Accept: 'application/json',\r\n // 'Content-Type': 'application/json',\r\n // },\r\n // data: order,\r\n // });\r\n // if (orderIndex != null && orderIndex > -1) {\r\n // this.deleteRecord(orderIndex, dataUrl);\r\n // } else {\r\n // this.deleteAllRecord();\r\n // }\r\n // this.safeUpdate(() => this.isLoading = false);\r\n\r\n\r\n // return response.data;\r\n\r\n // } catch (error) {\r\n // this.safeUpdate(() => this.isLoading = false);\r\n // console.error('Failed to save time recording', error);\r\n // throw error;\r\n // }\r\n // }\r\n\r\n // showLinkDetails(option: any, record: any) {\r\n // this.linkDetails.emit({ option: option, record: record })\r\n // }\r\n\r\n // showImageDetails(option: any, record: any) {\r\n // this.imageDetails.emit({ option: option, record: record })\r\n // }\r\n\r\n // getProperty(scope: any) {\r\n // const property = scope ? scope.split('/').pop() : '';\r\n // return { key: property, productSchema: this.itemInfo.propertySchema[this.getScope(scope)][property] };\r\n // }\r\n\r\n // getStyleWithoutClasses(styleObject: any) {\r\n // if (!styleObject) {\r\n // return { classes: '', style: {} };\r\n // }\r\n // const { classes, ...styleWithoutClasses } = styleObject;\r\n // return { classes: classes && classes.length > 0 ? classes[0] : '', style: styleWithoutClasses };\r\n // }\r\n\r\n // getScope(scope: any) {\r\n // let propertyScope = \"\";\r\n // let start = scope?.indexOf(\"#/\") + 2;\r\n // let end = scope?.indexOf(\"/\", start);\r\n // if (start && end) {\r\n // propertyScope = scope.substring(start, end);\r\n // }\r\n // return propertyScope;\r\n // }\r\n}\r\n","<h1>hello word</h1>","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'vt-form',\r\n imports: [],\r\n standalone: true,\r\n templateUrl: './form.component.html',\r\n styleUrl: './form.component.css',\r\n})\r\nexport class FormComponent {\r\n\r\n}\r\n","<p>form works!</p>\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'vt-pagination',\r\n imports: [],\r\n standalone: true,\r\n templateUrl: './pagination.component.html',\r\n styleUrl: './pagination.component.css',\r\n})\r\nexport class PaginationComponent {\r\n\r\n}\r\n","<p>pagination works!</p>\r\n","// lib/view-toolkit.module.ts\r\n\r\nimport { CommonModule } from \"@angular/common\";\r\nimport { GridComponent } from \"./containers/grid/grid.component\";\r\nimport { NgModule } from '@angular/core';\r\nimport { CardComponent } from \"./containers/card/card.component\";\r\nimport { FormComponent } from \"./containers/form/form.component\";\r\nimport { PaginationComponent } from \"./containers/pagination/pagination.component\";\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n CardComponent,\r\n FormComponent,\r\n GridComponent,\r\n PaginationComponent\r\n ],\r\n exports: [\r\n CardComponent,\r\n FormComponent,\r\n GridComponent,\r\n PaginationComponent\r\n ]\r\n})\r\nexport class ViewToolkitModule { }","/*\r\n * Public API Surface of view-toolkit\r\n */\r\n\r\nexport * from './lib/view-toolkit.module';\r\n\r\nexport * from './lib/containers/card/card.component';\r\nexport * from './lib/containers/form/form.component';\r\nexport * from './lib/containers/grid/grid.component';\r\nexport * from './lib/containers/pagination/pagination.component';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MASa,aAAa,CAAA;uGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IA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AAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAbtB,YAAY;YACZ,aAAa,CAAA,EAAA,CAAA;;2FAYR,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAf7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,aAAa;wBACb,aAAa;wBACb,aAAa;wBACb;AACH,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,aAAa;wBACb,aAAa;wBACb,aAAa;wBACb;AACH;AACJ,iBAAA;;;ACvBD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import * as i1 from '@angular/common';
|
|
3
|
-
|
|
4
|
-
declare class CardComponent {
|
|
5
|
-
private _cards;
|
|
6
|
-
set cards(value: any[] | null | undefined);
|
|
7
|
-
get cards(): any[];
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "vt-card", never, { "cards": { "alias": "cards"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare class FormComponent {
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "vt-form", never, {}, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare class GridComponent {
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "vt-grid", never, {}, {}, never, never, true, never>;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
declare class PaginationComponent {
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "vt-pagination", never, {}, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare class ViewToolkitModule {
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ViewToolkitModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ViewToolkitModule, never, [typeof i1.CommonModule, typeof CardComponent, typeof FormComponent, typeof GridComponent, typeof PaginationComponent], [typeof CardComponent, typeof FormComponent, typeof GridComponent, typeof PaginationComponent]>;
|
|
30
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ViewToolkitModule>;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { CardComponent, FormComponent, GridComponent, PaginationComponent, ViewToolkitModule };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import * as i1 from '@angular/common';
|
|
3
|
-
|
|
4
|
-
declare class CardComponent {
|
|
5
|
-
private _cards;
|
|
6
|
-
set cards(value: any[] | null | undefined);
|
|
7
|
-
get cards(): any[];
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "vt-card", never, { "cards": { "alias": "cards"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare class FormComponent {
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "vt-form", never, {}, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare class GridComponent {
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "vt-grid", never, {}, {}, never, never, true, never>;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
declare class PaginationComponent {
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "vt-pagination", never, {}, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare class ViewToolkitModule {
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ViewToolkitModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ViewToolkitModule, never, [typeof i1.CommonModule, typeof CardComponent, typeof FormComponent, typeof GridComponent, typeof PaginationComponent], [typeof CardComponent, typeof FormComponent, typeof GridComponent, typeof PaginationComponent]>;
|
|
30
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ViewToolkitModule>;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { CardComponent, FormComponent, GridComponent, PaginationComponent, ViewToolkitModule };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import * as i1 from '@angular/common';
|
|
3
|
-
|
|
4
|
-
declare class CardComponent {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "vt-card", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
declare class FormComponent {
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "vt-form", never, {}, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
declare class GridComponent {
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "vt-grid", never, {}, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare class PaginationComponent {
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "vt-pagination", never, {}, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare class ViewToolkitModule {
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ViewToolkitModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ViewToolkitModule, never, [typeof i1.CommonModule, typeof CardComponent, typeof FormComponent, typeof GridComponent, typeof PaginationComponent], [typeof CardComponent, typeof FormComponent, typeof GridComponent, typeof PaginationComponent]>;
|
|
27
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ViewToolkitModule>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { CardComponent, FormComponent, GridComponent, PaginationComponent, ViewToolkitModule };
|