ngx-mat-tui-calendar 0.0.5 → 0.0.9
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/README.md +130 -0
- package/bundles/ngx-mat-tui-calendar.umd.js +98 -0
- package/bundles/ngx-mat-tui-calendar.umd.js.map +1 -0
- package/esm2015/lib/ngx-mat-tui-calendar.component.js +26 -0
- package/esm2015/lib/ngx-mat-tui-calendar.module.js +24 -0
- package/esm2015/lib/ngx-mat-tui-calendar.service.js +14 -0
- package/esm2015/ngx-mat-tui-calendar.js +5 -0
- package/esm2015/public-api.js +7 -0
- package/fesm2015/ngx-mat-tui-calendar.js +70 -0
- package/fesm2015/ngx-mat-tui-calendar.js.map +1 -0
- package/lib/ngx-mat-tui-calendar.component.d.ts +8 -0
- package/lib/ngx-mat-tui-calendar.module.d.ts +7 -0
- package/lib/ngx-mat-tui-calendar.service.d.ts +6 -0
- package/ngx-mat-tui-calendar.d.ts +5 -0
- package/package.json +15 -3
- package/{src/public-api.ts → public-api.d.ts} +3 -7
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -7
- package/src/lib/ngx-mat-tui-calendar.component.spec.ts +0 -25
- package/src/lib/ngx-mat-tui-calendar.component.ts +0 -20
- package/src/lib/ngx-mat-tui-calendar.module.ts +0 -17
- package/src/lib/ngx-mat-tui-calendar.service.spec.ts +0 -16
- package/src/lib/ngx-mat-tui-calendar.service.ts +0 -9
- package/src/test.ts +0 -28
- package/tsconfig.lib.json +0 -20
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
package/README.md
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
|
2
|
+

|
3
|
+
|
4
|
+
[](https://www.repostatus.org/#wip)
|
5
|
+
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
7
|
+
[](https://github.com/ron2015schmitt/ngx-mat-tui-calendar/stargazers)
|
8
|
+

|
9
|
+

|
10
|
+
|
11
|
+

|
12
|
+

|
13
|
+
|
14
|
+
# ngx-mat-tui-calendar
|
15
|
+
|
16
|
+
 `Work In Progress`
|
17
|
+
This project is an Angular, Material Design wrapper for the [Toast UI Calendar](https://github.com/nhn/tui.calendar).
|
18
|
+
* Material Design theming
|
19
|
+
* Material Design buttons and dialog
|
20
|
+
* Responsive to mobile devices
|
21
|
+
* Dark mode in progress...
|
22
|
+
|
23
|
+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.3.
|
24
|
+
|
25
|
+
Using Angular 12 which requires node ^v14.15 (npm ^v6.14)
|
26
|
+
|
27
|
+
# UI
|
28
|
+
## Month View
|
29
|
+
|
30
|
+
<img src="https://user-images.githubusercontent.com/11559541/141834376-3f815d1e-7e2b-4f2e-8540-f45303292cfb.png" width="70%" height="70%">
|
31
|
+
|
32
|
+
## Week View
|
33
|
+
<img src="https://user-images.githubusercontent.com/11559541/141834444-89f511c0-8ada-4269-8490-c2864f481bc7.png" width="70%" height="70%">
|
34
|
+
|
35
|
+
## Day View
|
36
|
+
<img src="https://user-images.githubusercontent.com/11559541/141834457-ec741af5-df67-4029-8830-c5b4fd356fff.png" width="70%" height="70%">
|
37
|
+
|
38
|
+
## Event Editing Dialog
|
39
|
+
<img src="https://user-images.githubusercontent.com/11559541/141834468-3b3a81be-c4f5-4d76-8f29-88c193e1adba.JPG" width="70%" height="70%">
|
40
|
+
|
41
|
+
# Usage
|
42
|
+
## Getting started
|
43
|
+
|
44
|
+
Install via npm:
|
45
|
+
```bash
|
46
|
+
npm i --save ngx-mat-tui-calendar
|
47
|
+
```
|
48
|
+
Next import the module into your app's ```app.module.ts```:
|
49
|
+
```typescript
|
50
|
+
import {NgxMatTuiCalendarModule} from 'ngx-mat-tui-calendar';
|
51
|
+
|
52
|
+
@NgModule({
|
53
|
+
imports: [NgxMatTuiCalendarModule]
|
54
|
+
})
|
55
|
+
|
56
|
+
```
|
57
|
+
|
58
|
+
Insert the following HTML into one of your app's template files
|
59
|
+
```angular2html
|
60
|
+
<mat-tui-calendar></mat-tui-calendar>
|
61
|
+
```
|
62
|
+
|
63
|
+
## Demo Project
|
64
|
+
|
65
|
+
## Stackblitz
|
66
|
+
|
67
|
+
# Documentation
|
68
|
+
|
69
|
+
## MatTuiCalendar
|
70
|
+
|
71
|
+
Directive responsible for managing the timepicker popup and setting value to input
|
72
|
+
|
73
|
+
Selector: `mat-tui-calendar`
|
74
|
+
|
75
|
+
```typescript
|
76
|
+
<mat-tui-calendar #tuiCalendar
|
77
|
+
(userCreatedSchedule)="onUserCreatedSchedule($event)"
|
78
|
+
(userUpdatedSchedule)="onUserUpdatedSchedule($event)"
|
79
|
+
(userDeletedSchedule)="onUserDeletedSchedule($event)"
|
80
|
+
[options]="options"
|
81
|
+
>
|
82
|
+
```
|
83
|
+
|
84
|
+
### Properties
|
85
|
+
|
86
|
+
| Name | Description |
|
87
|
+
|------|-------------|
|
88
|
+
| @Input()
|
89
|
+
ngxMatTimepicker: NgxMatTimepickerComponent | The timepicker that this input is associated with. |
|
90
|
+
| @Input()
|
91
|
+
color: ThemePalette | The material palette to use. |
|
92
|
+
| @Input()
|
93
|
+
disabled: boolean | Weather the timepicker popup should be disabled. |
|
94
|
+
| @Input()
|
95
|
+
value: string | Set a default value and time for a timepicker. The format of the time is in 12 hours notation `11:00 PM` or in 24 hours notation `23:00`. A Date string won't work. |
|
96
|
+
| @Input()
|
97
|
+
format: number | `12` or `24` . 12h/24h view for hour selection clock . `12` (AM/PM) format by default. |
|
98
|
+
| @Input()
|
99
|
+
min: string or DateTime | Set min time for timepicker (`11:15 pm` ) |
|
100
|
+
| @Input()
|
101
|
+
max: string or DateTime | Set max time for timepicker (`11:15 pm` ) |
|
102
|
+
| @Input()
|
103
|
+
disableClick: boolean | Set `true` to disable opening timepicker by clicking on the input |
|
104
|
+
|
105
|
+
|
106
|
+
# Development
|
107
|
+
|
108
|
+
## Development server
|
109
|
+
|
110
|
+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
|
111
|
+
|
112
|
+
## Code scaffolding
|
113
|
+
|
114
|
+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
|
115
|
+
|
116
|
+
## Build
|
117
|
+
|
118
|
+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
|
119
|
+
|
120
|
+
## Running unit tests
|
121
|
+
|
122
|
+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
123
|
+
|
124
|
+
## Running end-to-end tests
|
125
|
+
|
126
|
+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
|
127
|
+
|
128
|
+
## Further help
|
129
|
+
|
130
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
@@ -0,0 +1,98 @@
|
|
1
|
+
(function (global, factory) {
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('ngx-mat-tui-calendar', ['exports', '@angular/core'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["ngx-mat-tui-calendar"] = {}, global.ng.core));
|
5
|
+
})(this, (function (exports, i0) { 'use strict';
|
6
|
+
|
7
|
+
function _interopNamespace(e) {
|
8
|
+
if (e && e.__esModule) return e;
|
9
|
+
var n = Object.create(null);
|
10
|
+
if (e) {
|
11
|
+
Object.keys(e).forEach(function (k) {
|
12
|
+
if (k !== 'default') {
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
15
|
+
enumerable: true,
|
16
|
+
get: function () { return e[k]; }
|
17
|
+
});
|
18
|
+
}
|
19
|
+
});
|
20
|
+
}
|
21
|
+
n["default"] = e;
|
22
|
+
return Object.freeze(n);
|
23
|
+
}
|
24
|
+
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
26
|
+
|
27
|
+
var NgxMatTuiCalendarService = /** @class */ (function () {
|
28
|
+
function NgxMatTuiCalendarService() {
|
29
|
+
}
|
30
|
+
return NgxMatTuiCalendarService;
|
31
|
+
}());
|
32
|
+
NgxMatTuiCalendarService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
33
|
+
NgxMatTuiCalendarService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarService, providedIn: 'root' });
|
34
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarService, decorators: [{
|
35
|
+
type: i0.Injectable,
|
36
|
+
args: [{
|
37
|
+
providedIn: 'root'
|
38
|
+
}]
|
39
|
+
}], ctorParameters: function () { return []; } });
|
40
|
+
|
41
|
+
var NgxMatTuiCalendarComponent = /** @class */ (function () {
|
42
|
+
function NgxMatTuiCalendarComponent() {
|
43
|
+
}
|
44
|
+
NgxMatTuiCalendarComponent.prototype.ngOnInit = function () {
|
45
|
+
};
|
46
|
+
return NgxMatTuiCalendarComponent;
|
47
|
+
}());
|
48
|
+
NgxMatTuiCalendarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
49
|
+
NgxMatTuiCalendarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: NgxMatTuiCalendarComponent, selector: "ngx-mat-tui-calendar", ngImport: i0__namespace, template: "\n <p>\n ngx-mat-tui-calendar works!\n </p>\n ", isInline: true });
|
50
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarComponent, decorators: [{
|
51
|
+
type: i0.Component,
|
52
|
+
args: [{
|
53
|
+
selector: 'ngx-mat-tui-calendar',
|
54
|
+
template: "\n <p>\n ngx-mat-tui-calendar works!\n </p>\n ",
|
55
|
+
styles: []
|
56
|
+
}]
|
57
|
+
}], ctorParameters: function () { return []; } });
|
58
|
+
|
59
|
+
var NgxMatTuiCalendarModule = /** @class */ (function () {
|
60
|
+
function NgxMatTuiCalendarModule() {
|
61
|
+
}
|
62
|
+
return NgxMatTuiCalendarModule;
|
63
|
+
}());
|
64
|
+
NgxMatTuiCalendarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
65
|
+
NgxMatTuiCalendarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarModule, declarations: [NgxMatTuiCalendarComponent], exports: [NgxMatTuiCalendarComponent] });
|
66
|
+
NgxMatTuiCalendarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarModule, imports: [[]] });
|
67
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarModule, decorators: [{
|
68
|
+
type: i0.NgModule,
|
69
|
+
args: [{
|
70
|
+
declarations: [
|
71
|
+
NgxMatTuiCalendarComponent,
|
72
|
+
],
|
73
|
+
imports: [],
|
74
|
+
exports: [
|
75
|
+
NgxMatTuiCalendarComponent,
|
76
|
+
],
|
77
|
+
entryComponents: [
|
78
|
+
NgxMatTuiCalendarComponent,
|
79
|
+
],
|
80
|
+
}]
|
81
|
+
}] });
|
82
|
+
|
83
|
+
/*
|
84
|
+
* Public API Surface of ngx-mat-tui-calendar
|
85
|
+
*/
|
86
|
+
|
87
|
+
/**
|
88
|
+
* Generated bundle index. Do not edit.
|
89
|
+
*/
|
90
|
+
|
91
|
+
exports.NgxMatTuiCalendarComponent = NgxMatTuiCalendarComponent;
|
92
|
+
exports.NgxMatTuiCalendarModule = NgxMatTuiCalendarModule;
|
93
|
+
exports.NgxMatTuiCalendarService = NgxMatTuiCalendarService;
|
94
|
+
|
95
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
96
|
+
|
97
|
+
}));
|
98
|
+
//# sourceMappingURL=ngx-mat-tui-calendar.umd.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-mat-tui-calendar.umd.js","sources":["../../../projects/ngx-mat-tui-calendar/src/lib/ngx-mat-tui-calendar.service.ts","../../../projects/ngx-mat-tui-calendar/src/lib/ngx-mat-tui-calendar.component.ts","../../../projects/ngx-mat-tui-calendar/src/lib/ngx-mat-tui-calendar.module.ts","../../../projects/ngx-mat-tui-calendar/src/public-api.ts","../../../projects/ngx-mat-tui-calendar/src/ngx-mat-tui-calendar.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class NgxMatTuiCalendarService {\n\n constructor() { }\n}\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'ngx-mat-tui-calendar',\n template: `\n <p>\n ngx-mat-tui-calendar works!\n </p>\n `,\n styles: [\n ]\n})\nexport class NgxMatTuiCalendarComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { NgxMatTuiCalendarComponent } from './ngx-mat-tui-calendar.component';\n\n@NgModule({\n declarations: [\n NgxMatTuiCalendarComponent,\n ],\n imports: [\n ],\n exports: [\n NgxMatTuiCalendarComponent,\n ],\n entryComponents: [\n NgxMatTuiCalendarComponent,\n ],\n})\nexport class NgxMatTuiCalendarModule { }\n","/*\n * Public API Surface of ngx-mat-tui-calendar\n */\n\nexport * from './lib/ngx-mat-tui-calendar.service';\nexport * from './lib/ngx-mat-tui-calendar.component';\nexport * from './lib/ngx-mat-tui-calendar.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["Injectable","Component","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;QAOE;SAAiB;;;gJAFN,wBAAwB;oJAAxB,wBAAwB,cAFvB,MAAM;sHAEP,wBAAwB;sBAHpCA,aAAU;uBAAC;wBACV,UAAU,EAAE,MAAM;qBACnB;;;;QCUC;SAAiB;QAEjB,6CAAQ,GAAR;SACC;;;kJALU,0BAA0B;2HAA1B,0BAA0B,uEAR3B,4DAIT;sHAIU,0BAA0B;sBAVtCC,YAAS;uBAAC;wBACT,QAAQ,EAAE,sBAAsB;wBAChC,QAAQ,EAAE,4DAIT;wBACD,MAAM,EAAE,EACP;qBACF;;;;QCKD;;;;+IAAa,uBAAuB;gJAAvB,uBAAuB,iBAXhC,0BAA0B,aAK1B,0BAA0B;gJAMjB,uBAAuB,YATzB,EACR;sHAQU,uBAAuB;sBAbnCC,WAAQ;uBAAC;wBACR,YAAY,EAAE;4BACZ,0BAA0B;yBAC3B;wBACD,OAAO,EAAE,EACR;wBACD,OAAO,EAAE;4BACP,0BAA0B;yBAC3B;wBACD,eAAe,EAAE;4BACf,0BAA0B;yBAC3B;qBACF;;;ICfD;;;;ICAA;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { Component } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class NgxMatTuiCalendarComponent {
|
4
|
+
constructor() { }
|
5
|
+
ngOnInit() {
|
6
|
+
}
|
7
|
+
}
|
8
|
+
NgxMatTuiCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
9
|
+
NgxMatTuiCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: NgxMatTuiCalendarComponent, selector: "ngx-mat-tui-calendar", ngImport: i0, template: `
|
10
|
+
<p>
|
11
|
+
ngx-mat-tui-calendar works!
|
12
|
+
</p>
|
13
|
+
`, isInline: true });
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarComponent, decorators: [{
|
15
|
+
type: Component,
|
16
|
+
args: [{
|
17
|
+
selector: 'ngx-mat-tui-calendar',
|
18
|
+
template: `
|
19
|
+
<p>
|
20
|
+
ngx-mat-tui-calendar works!
|
21
|
+
</p>
|
22
|
+
`,
|
23
|
+
styles: []
|
24
|
+
}]
|
25
|
+
}], ctorParameters: function () { return []; } });
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW1hdC10dWktY2FsZW5kYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LW1hdC10dWktY2FsZW5kYXIvc3JjL2xpYi9uZ3gtbWF0LXR1aS1jYWxlbmRhci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQzs7QUFZbEQsTUFBTSxPQUFPLDBCQUEwQjtJQUVyQyxnQkFBZ0IsQ0FBQztJQUVqQixRQUFRO0lBQ1IsQ0FBQzs7d0hBTFUsMEJBQTBCOzRHQUExQiwwQkFBMEIsNERBUjNCOzs7O0dBSVQ7NEZBSVUsMEJBQTBCO2tCQVZ0QyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxzQkFBc0I7b0JBQ2hDLFFBQVEsRUFBRTs7OztHQUlUO29CQUNELE1BQU0sRUFBRSxFQUNQO2lCQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBPbkluaXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnbmd4LW1hdC10dWktY2FsZW5kYXInLFxuICB0ZW1wbGF0ZTogYFxuICAgIDxwPlxuICAgICAgbmd4LW1hdC10dWktY2FsZW5kYXIgd29ya3MhXG4gICAgPC9wPlxuICBgLFxuICBzdHlsZXM6IFtcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBOZ3hNYXRUdWlDYWxlbmRhckNvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cblxuICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgfVxuXG59XG4iXX0=
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { NgxMatTuiCalendarComponent } from './ngx-mat-tui-calendar.component';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export class NgxMatTuiCalendarModule {
|
5
|
+
}
|
6
|
+
NgxMatTuiCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
7
|
+
NgxMatTuiCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, declarations: [NgxMatTuiCalendarComponent], exports: [NgxMatTuiCalendarComponent] });
|
8
|
+
NgxMatTuiCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, imports: [[]] });
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, decorators: [{
|
10
|
+
type: NgModule,
|
11
|
+
args: [{
|
12
|
+
declarations: [
|
13
|
+
NgxMatTuiCalendarComponent,
|
14
|
+
],
|
15
|
+
imports: [],
|
16
|
+
exports: [
|
17
|
+
NgxMatTuiCalendarComponent,
|
18
|
+
],
|
19
|
+
entryComponents: [
|
20
|
+
NgxMatTuiCalendarComponent,
|
21
|
+
],
|
22
|
+
}]
|
23
|
+
}] });
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW1hdC10dWktY2FsZW5kYXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LW1hdC10dWktY2FsZW5kYXIvc3JjL2xpYi9uZ3gtbWF0LXR1aS1jYWxlbmRhci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQzs7QUFlOUUsTUFBTSxPQUFPLHVCQUF1Qjs7cUhBQXZCLHVCQUF1QjtzSEFBdkIsdUJBQXVCLGlCQVhoQywwQkFBMEIsYUFLMUIsMEJBQTBCO3NIQU1qQix1QkFBdUIsWUFUekIsRUFDUjs0RkFRVSx1QkFBdUI7a0JBYm5DLFFBQVE7bUJBQUM7b0JBQ1IsWUFBWSxFQUFFO3dCQUNaLDBCQUEwQjtxQkFDM0I7b0JBQ0QsT0FBTyxFQUFFLEVBQ1I7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLDBCQUEwQjtxQkFDM0I7b0JBQ0QsZUFBZSxFQUFFO3dCQUNmLDBCQUEwQjtxQkFDM0I7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgTmd4TWF0VHVpQ2FsZW5kYXJDb21wb25lbnQgfSBmcm9tICcuL25neC1tYXQtdHVpLWNhbGVuZGFyLmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1xuICAgIE5neE1hdFR1aUNhbGVuZGFyQ29tcG9uZW50LFxuICBdLFxuICBpbXBvcnRzOiBbXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBOZ3hNYXRUdWlDYWxlbmRhckNvbXBvbmVudCxcbiAgXSxcbiAgZW50cnlDb21wb25lbnRzOiBbXG4gICAgTmd4TWF0VHVpQ2FsZW5kYXJDb21wb25lbnQsXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIE5neE1hdFR1aUNhbGVuZGFyTW9kdWxlIHsgfVxuIl19
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Injectable } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class NgxMatTuiCalendarService {
|
4
|
+
constructor() { }
|
5
|
+
}
|
6
|
+
NgxMatTuiCalendarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
7
|
+
NgxMatTuiCalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarService, providedIn: 'root' });
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarService, decorators: [{
|
9
|
+
type: Injectable,
|
10
|
+
args: [{
|
11
|
+
providedIn: 'root'
|
12
|
+
}]
|
13
|
+
}], ctorParameters: function () { return []; } });
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW1hdC10dWktY2FsZW5kYXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1tYXQtdHVpLWNhbGVuZGFyL3NyYy9saWIvbmd4LW1hdC10dWktY2FsZW5kYXIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUszQyxNQUFNLE9BQU8sd0JBQXdCO0lBRW5DLGdCQUFnQixDQUFDOztzSEFGTix3QkFBd0I7MEhBQXhCLHdCQUF3QixjQUZ2QixNQUFNOzRGQUVQLHdCQUF3QjtrQkFIcEMsVUFBVTttQkFBQztvQkFDVixVQUFVLEVBQUUsTUFBTTtpQkFDbkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnXG59KVxuZXhwb3J0IGNsYXNzIE5neE1hdFR1aUNhbGVuZGFyU2VydmljZSB7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cbn1cbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public-api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW1hdC10dWktY2FsZW5kYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9uZ3gtbWF0LXR1aS1jYWxlbmRhci9zcmMvbmd4LW1hdC10dWktY2FsZW5kYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
* Public API Surface of ngx-mat-tui-calendar
|
3
|
+
*/
|
4
|
+
export * from './lib/ngx-mat-tui-calendar.service';
|
5
|
+
export * from './lib/ngx-mat-tui-calendar.component';
|
6
|
+
export * from './lib/ngx-mat-tui-calendar.module';
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1tYXQtdHVpLWNhbGVuZGFyL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxvQ0FBb0MsQ0FBQztBQUNuRCxjQUFjLHNDQUFzQyxDQUFDO0FBQ3JELGNBQWMsbUNBQW1DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG5neC1tYXQtdHVpLWNhbGVuZGFyXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LW1hdC10dWktY2FsZW5kYXIuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtbWF0LXR1aS1jYWxlbmRhci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LW1hdC10dWktY2FsZW5kYXIubW9kdWxlJztcbiJdfQ==
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Injectable, Component, NgModule } from '@angular/core';
|
3
|
+
|
4
|
+
class NgxMatTuiCalendarService {
|
5
|
+
constructor() { }
|
6
|
+
}
|
7
|
+
NgxMatTuiCalendarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
8
|
+
NgxMatTuiCalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarService, providedIn: 'root' });
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarService, decorators: [{
|
10
|
+
type: Injectable,
|
11
|
+
args: [{
|
12
|
+
providedIn: 'root'
|
13
|
+
}]
|
14
|
+
}], ctorParameters: function () { return []; } });
|
15
|
+
|
16
|
+
class NgxMatTuiCalendarComponent {
|
17
|
+
constructor() { }
|
18
|
+
ngOnInit() {
|
19
|
+
}
|
20
|
+
}
|
21
|
+
NgxMatTuiCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
22
|
+
NgxMatTuiCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: NgxMatTuiCalendarComponent, selector: "ngx-mat-tui-calendar", ngImport: i0, template: `
|
23
|
+
<p>
|
24
|
+
ngx-mat-tui-calendar works!
|
25
|
+
</p>
|
26
|
+
`, isInline: true });
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarComponent, decorators: [{
|
28
|
+
type: Component,
|
29
|
+
args: [{
|
30
|
+
selector: 'ngx-mat-tui-calendar',
|
31
|
+
template: `
|
32
|
+
<p>
|
33
|
+
ngx-mat-tui-calendar works!
|
34
|
+
</p>
|
35
|
+
`,
|
36
|
+
styles: []
|
37
|
+
}]
|
38
|
+
}], ctorParameters: function () { return []; } });
|
39
|
+
|
40
|
+
class NgxMatTuiCalendarModule {
|
41
|
+
}
|
42
|
+
NgxMatTuiCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
43
|
+
NgxMatTuiCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, declarations: [NgxMatTuiCalendarComponent], exports: [NgxMatTuiCalendarComponent] });
|
44
|
+
NgxMatTuiCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, imports: [[]] });
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, decorators: [{
|
46
|
+
type: NgModule,
|
47
|
+
args: [{
|
48
|
+
declarations: [
|
49
|
+
NgxMatTuiCalendarComponent,
|
50
|
+
],
|
51
|
+
imports: [],
|
52
|
+
exports: [
|
53
|
+
NgxMatTuiCalendarComponent,
|
54
|
+
],
|
55
|
+
entryComponents: [
|
56
|
+
NgxMatTuiCalendarComponent,
|
57
|
+
],
|
58
|
+
}]
|
59
|
+
}] });
|
60
|
+
|
61
|
+
/*
|
62
|
+
* Public API Surface of ngx-mat-tui-calendar
|
63
|
+
*/
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Generated bundle index. Do not edit.
|
67
|
+
*/
|
68
|
+
|
69
|
+
export { NgxMatTuiCalendarComponent, NgxMatTuiCalendarModule, NgxMatTuiCalendarService };
|
70
|
+
//# sourceMappingURL=ngx-mat-tui-calendar.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-mat-tui-calendar.js","sources":["../../../projects/ngx-mat-tui-calendar/src/lib/ngx-mat-tui-calendar.service.ts","../../../projects/ngx-mat-tui-calendar/src/lib/ngx-mat-tui-calendar.component.ts","../../../projects/ngx-mat-tui-calendar/src/lib/ngx-mat-tui-calendar.module.ts","../../../projects/ngx-mat-tui-calendar/src/public-api.ts","../../../projects/ngx-mat-tui-calendar/src/ngx-mat-tui-calendar.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class NgxMatTuiCalendarService {\n\n constructor() { }\n}\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'ngx-mat-tui-calendar',\n template: `\n <p>\n ngx-mat-tui-calendar works!\n </p>\n `,\n styles: [\n ]\n})\nexport class NgxMatTuiCalendarComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { NgxMatTuiCalendarComponent } from './ngx-mat-tui-calendar.component';\n\n@NgModule({\n declarations: [\n NgxMatTuiCalendarComponent,\n ],\n imports: [\n ],\n exports: [\n NgxMatTuiCalendarComponent,\n ],\n entryComponents: [\n NgxMatTuiCalendarComponent,\n ],\n})\nexport class NgxMatTuiCalendarModule { }\n","/*\n * Public API Surface of ngx-mat-tui-calendar\n */\n\nexport * from './lib/ngx-mat-tui-calendar.service';\nexport * from './lib/ngx-mat-tui-calendar.component';\nexport * from './lib/ngx-mat-tui-calendar.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,wBAAwB;IAEnC,iBAAiB;;sHAFN,wBAAwB;0HAAxB,wBAAwB,cAFvB,MAAM;4FAEP,wBAAwB;kBAHpC,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;MCQY,0BAA0B;IAErC,iBAAiB;IAEjB,QAAQ;KACP;;wHALU,0BAA0B;4GAA1B,0BAA0B,4DAR3B;;;;GAIT;4FAIU,0BAA0B;kBAVtC,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,QAAQ,EAAE;;;;GAIT;oBACD,MAAM,EAAE,EACP;iBACF;;;MCKY,uBAAuB;;qHAAvB,uBAAuB;sHAAvB,uBAAuB,iBAXhC,0BAA0B,aAK1B,0BAA0B;sHAMjB,uBAAuB,YATzB,EACR;4FAQU,uBAAuB;kBAbnC,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,0BAA0B;qBAC3B;oBACD,OAAO,EAAE,EACR;oBACD,OAAO,EAAE;wBACP,0BAA0B;qBAC3B;oBACD,eAAe,EAAE;wBACf,0BAA0B;qBAC3B;iBACF;;;ACfD;;;;ACAA;;;;;;"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class NgxMatTuiCalendarComponent implements OnInit {
|
4
|
+
constructor();
|
5
|
+
ngOnInit(): void;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatTuiCalendarComponent, never>;
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatTuiCalendarComponent, "ngx-mat-tui-calendar", never, {}, {}, never, never>;
|
8
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./ngx-mat-tui-calendar.component";
|
3
|
+
export declare class NgxMatTuiCalendarModule {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatTuiCalendarModule, never>;
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMatTuiCalendarModule, [typeof i1.NgxMatTuiCalendarComponent], never, [typeof i1.NgxMatTuiCalendarComponent]>;
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgxMatTuiCalendarModule>;
|
7
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-mat-tui-calendar",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.9",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+https://github.com/ron2015schmitt/ngx-mat-tui-calendar.git"
|
@@ -20,5 +20,17 @@
|
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
22
|
"tslib": "^2.3.0"
|
23
|
-
}
|
24
|
-
|
23
|
+
},
|
24
|
+
"browser": {
|
25
|
+
"fs": false,
|
26
|
+
"path": false,
|
27
|
+
"os": false
|
28
|
+
},
|
29
|
+
"main": "bundles/ngx-mat-tui-calendar.umd.js",
|
30
|
+
"module": "fesm2015/ngx-mat-tui-calendar.js",
|
31
|
+
"es2015": "fesm2015/ngx-mat-tui-calendar.js",
|
32
|
+
"esm2015": "esm2015/ngx-mat-tui-calendar.js",
|
33
|
+
"fesm2015": "fesm2015/ngx-mat-tui-calendar.js",
|
34
|
+
"typings": "ngx-mat-tui-calendar.d.ts",
|
35
|
+
"sideEffects": false
|
36
|
+
}
|
@@ -1,7 +1,3 @@
|
|
1
|
-
|
2
|
-
*
|
3
|
-
|
4
|
-
|
5
|
-
export * from './lib/ngx-mat-tui-calendar.service';
|
6
|
-
export * from './lib/ngx-mat-tui-calendar.component';
|
7
|
-
export * from './lib/ngx-mat-tui-calendar.module';
|
1
|
+
export * from './lib/ngx-mat-tui-calendar.service';
|
2
|
+
export * from './lib/ngx-mat-tui-calendar.component';
|
3
|
+
export * from './lib/ngx-mat-tui-calendar.module';
|
package/karma.conf.js
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
// Karma configuration file, see link for more information
|
2
|
-
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
3
|
-
|
4
|
-
module.exports = function (config) {
|
5
|
-
config.set({
|
6
|
-
basePath: '',
|
7
|
-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
8
|
-
plugins: [
|
9
|
-
require('karma-jasmine'),
|
10
|
-
require('karma-chrome-launcher'),
|
11
|
-
require('karma-jasmine-html-reporter'),
|
12
|
-
require('karma-coverage'),
|
13
|
-
require('@angular-devkit/build-angular/plugins/karma')
|
14
|
-
],
|
15
|
-
client: {
|
16
|
-
jasmine: {
|
17
|
-
// you can add configuration options for Jasmine here
|
18
|
-
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
19
|
-
// for example, you can disable the random execution with `random: false`
|
20
|
-
// or set a specific seed with `seed: 4321`
|
21
|
-
},
|
22
|
-
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
23
|
-
},
|
24
|
-
jasmineHtmlReporter: {
|
25
|
-
suppressAll: true // removes the duplicated traces
|
26
|
-
},
|
27
|
-
coverageReporter: {
|
28
|
-
dir: require('path').join(__dirname, '../../coverage/ngx-mat-tui-calendar'),
|
29
|
-
subdir: '.',
|
30
|
-
reporters: [
|
31
|
-
{ type: 'html' },
|
32
|
-
{ type: 'text-summary' }
|
33
|
-
]
|
34
|
-
},
|
35
|
-
reporters: ['progress', 'kjhtml'],
|
36
|
-
port: 9876,
|
37
|
-
colors: true,
|
38
|
-
logLevel: config.LOG_INFO,
|
39
|
-
autoWatch: true,
|
40
|
-
browsers: ['Chrome'],
|
41
|
-
singleRun: false,
|
42
|
-
restartOnFileChange: true
|
43
|
-
});
|
44
|
-
};
|
package/ng-package.json
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
2
|
-
|
3
|
-
import { MatTuiCalendarComponent } from './ngx-mat-tui-calendar.component';
|
4
|
-
|
5
|
-
describe('MatTuiCalendarComponent', () => {
|
6
|
-
let component: MatTuiCalendarComponent;
|
7
|
-
let fixture: ComponentFixture<MatTuiCalendarComponent>;
|
8
|
-
|
9
|
-
beforeEach(async () => {
|
10
|
-
await TestBed.configureTestingModule({
|
11
|
-
declarations: [ MatTuiCalendarComponent ]
|
12
|
-
})
|
13
|
-
.compileComponents();
|
14
|
-
});
|
15
|
-
|
16
|
-
beforeEach(() => {
|
17
|
-
fixture = TestBed.createComponent(MatTuiCalendarComponent);
|
18
|
-
component = fixture.componentInstance;
|
19
|
-
fixture.detectChanges();
|
20
|
-
});
|
21
|
-
|
22
|
-
it('should create', () => {
|
23
|
-
expect(component).toBeTruthy();
|
24
|
-
});
|
25
|
-
});
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { Component, OnInit } from '@angular/core';
|
2
|
-
|
3
|
-
@Component({
|
4
|
-
selector: 'mat-tui-calendar',
|
5
|
-
template: `
|
6
|
-
<p>
|
7
|
-
mat-tui-calendar works!
|
8
|
-
</p>
|
9
|
-
`,
|
10
|
-
styles: [
|
11
|
-
]
|
12
|
-
})
|
13
|
-
export class MatTuiCalendarComponent implements OnInit {
|
14
|
-
|
15
|
-
constructor() { }
|
16
|
-
|
17
|
-
ngOnInit(): void {
|
18
|
-
}
|
19
|
-
|
20
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { MatTuiCalendarComponent } from './ngx-mat-tui-calendar.component';
|
3
|
-
|
4
|
-
@NgModule({
|
5
|
-
declarations: [
|
6
|
-
MatTuiCalendarComponent,
|
7
|
-
],
|
8
|
-
imports: [
|
9
|
-
],
|
10
|
-
exports: [
|
11
|
-
MatTuiCalendarComponent,
|
12
|
-
],
|
13
|
-
entryComponents: [
|
14
|
-
MatTuiCalendarComponent,
|
15
|
-
],
|
16
|
-
})
|
17
|
-
export class NgxMatTuiCalendarModule { }
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
2
|
-
|
3
|
-
import { NgxMatTuiCalendarService } from './ngx-mat-tui-calendar.service';
|
4
|
-
|
5
|
-
describe('NgxMatTuiCalendarService', () => {
|
6
|
-
let service: NgxMatTuiCalendarService;
|
7
|
-
|
8
|
-
beforeEach(() => {
|
9
|
-
TestBed.configureTestingModule({});
|
10
|
-
service = TestBed.inject(NgxMatTuiCalendarService);
|
11
|
-
});
|
12
|
-
|
13
|
-
it('should be created', () => {
|
14
|
-
expect(service).toBeTruthy();
|
15
|
-
});
|
16
|
-
});
|
package/src/test.ts
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
2
|
-
|
3
|
-
import 'zone.js';
|
4
|
-
import 'zone.js/testing';
|
5
|
-
import { getTestBed } from '@angular/core/testing';
|
6
|
-
import {
|
7
|
-
BrowserDynamicTestingModule,
|
8
|
-
platformBrowserDynamicTesting
|
9
|
-
} from '@angular/platform-browser-dynamic/testing';
|
10
|
-
|
11
|
-
declare const require: {
|
12
|
-
context(path: string, deep?: boolean, filter?: RegExp): {
|
13
|
-
keys(): string[];
|
14
|
-
<T>(id: string): T;
|
15
|
-
};
|
16
|
-
};
|
17
|
-
|
18
|
-
// First, initialize the Angular testing environment.
|
19
|
-
getTestBed().initTestEnvironment(
|
20
|
-
BrowserDynamicTestingModule,
|
21
|
-
platformBrowserDynamicTesting(),
|
22
|
-
{ teardown: { destroyAfterEach: true }},
|
23
|
-
);
|
24
|
-
|
25
|
-
// Then we find all the tests.
|
26
|
-
const context = require.context('./', true, /\.spec\.ts$/);
|
27
|
-
// And load the modules.
|
28
|
-
context.keys().map(context);
|
package/tsconfig.lib.json
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
2
|
-
{
|
3
|
-
"extends": "../../tsconfig.json",
|
4
|
-
"compilerOptions": {
|
5
|
-
"outDir": "../../out-tsc/lib",
|
6
|
-
"target": "es2015",
|
7
|
-
"declaration": true,
|
8
|
-
"declarationMap": true,
|
9
|
-
"inlineSources": true,
|
10
|
-
"types": [],
|
11
|
-
"lib": [
|
12
|
-
"dom",
|
13
|
-
"es2018"
|
14
|
-
]
|
15
|
-
},
|
16
|
-
"exclude": [
|
17
|
-
"src/test.ts",
|
18
|
-
"**/*.spec.ts"
|
19
|
-
]
|
20
|
-
}
|
package/tsconfig.lib.prod.json
DELETED
package/tsconfig.spec.json
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
2
|
-
{
|
3
|
-
"extends": "../../tsconfig.json",
|
4
|
-
"compilerOptions": {
|
5
|
-
"outDir": "../../out-tsc/spec",
|
6
|
-
"types": [
|
7
|
-
"jasmine"
|
8
|
-
]
|
9
|
-
},
|
10
|
-
"files": [
|
11
|
-
"src/test.ts"
|
12
|
-
],
|
13
|
-
"include": [
|
14
|
-
"**/*.spec.ts",
|
15
|
-
"**/*.d.ts"
|
16
|
-
]
|
17
|
-
}
|