@imihai/angular-datetime-picker 21.0.0
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/.browserslistrc +9 -0
- package/.editorconfig +13 -0
- package/.eslintrc.js +208 -0
- package/.github/workflows/ci_test.yml +35 -0
- package/.prettierrc +2 -0
- package/.travis.yml +16 -0
- package/LICENSE +22 -0
- package/README.md +194 -0
- package/angular.json +221 -0
- package/e2e/protractor.conf.js +28 -0
- package/e2e/src/app.e2e-spec.ts +14 -0
- package/e2e/src/app.po.ts +11 -0
- package/e2e/tsconfig.e2e.json +13 -0
- package/package.json +77 -0
- package/projects/picker/karma.conf.js +62 -0
- package/projects/picker/ng-package.json +7 -0
- package/projects/picker/package.json +28 -0
- package/projects/picker/src/lib/date-time/adapter/date-time-adapter.class.ts +313 -0
- package/projects/picker/src/lib/date-time/adapter/date-time-format.class.ts +18 -0
- package/projects/picker/src/lib/date-time/adapter/luxon-date-time-adapter.class.ts +307 -0
- package/projects/picker/src/lib/date-time/adapter/luxon-date-time-format.class.ts +11 -0
- package/projects/picker/src/lib/date-time/adapter/luxon-date-time.module.ts +31 -0
- package/projects/picker/src/lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-adapter.class.ts +356 -0
- package/projects/picker/src/lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-format.class.ts +14 -0
- package/projects/picker/src/lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time.module.ts +26 -0
- package/projects/picker/src/lib/date-time/calendar-body.component.html +38 -0
- package/projects/picker/src/lib/date-time/calendar-body.component.scss +0 -0
- package/projects/picker/src/lib/date-time/calendar-body.component.spec.ts +120 -0
- package/projects/picker/src/lib/date-time/calendar-body.component.ts +190 -0
- package/projects/picker/src/lib/date-time/calendar-month-view.component.html +47 -0
- package/projects/picker/src/lib/date-time/calendar-month-view.component.scss +16 -0
- package/projects/picker/src/lib/date-time/calendar-month-view.component.spec.ts +394 -0
- package/projects/picker/src/lib/date-time/calendar-month-view.component.ts +705 -0
- package/projects/picker/src/lib/date-time/calendar-multi-year-view.component.html +44 -0
- package/projects/picker/src/lib/date-time/calendar-multi-year-view.component.scss +0 -0
- package/projects/picker/src/lib/date-time/calendar-multi-year-view.component.spec.ts +343 -0
- package/projects/picker/src/lib/date-time/calendar-multi-year-view.component.ts +465 -0
- package/projects/picker/src/lib/date-time/calendar-year-view.component.html +16 -0
- package/projects/picker/src/lib/date-time/calendar-year-view.component.scss +0 -0
- package/projects/picker/src/lib/date-time/calendar-year-view.component.spec.ts +381 -0
- package/projects/picker/src/lib/date-time/calendar-year-view.component.ts +549 -0
- package/projects/picker/src/lib/date-time/calendar.component.html +169 -0
- package/projects/picker/src/lib/date-time/calendar.component.scss +0 -0
- package/projects/picker/src/lib/date-time/calendar.component.spec.ts +592 -0
- package/projects/picker/src/lib/date-time/calendar.component.ts +496 -0
- package/projects/picker/src/lib/date-time/date-time-inline.component.html +1 -0
- package/projects/picker/src/lib/date-time/date-time-inline.component.scss +4 -0
- package/projects/picker/src/lib/date-time/date-time-inline.component.ts +365 -0
- package/projects/picker/src/lib/date-time/date-time-picker-animation-event.ts +4 -0
- package/projects/picker/src/lib/date-time/date-time-picker-container.component.html +126 -0
- package/projects/picker/src/lib/date-time/date-time-picker-container.component.scss +0 -0
- package/projects/picker/src/lib/date-time/date-time-picker-container.component.ts +631 -0
- package/projects/picker/src/lib/date-time/date-time-picker-input.directive.ts +851 -0
- package/projects/picker/src/lib/date-time/date-time-picker-intl.service.ts +76 -0
- package/projects/picker/src/lib/date-time/date-time-picker-trigger.directive.ts +88 -0
- package/projects/picker/src/lib/date-time/date-time-picker.component.html +0 -0
- package/projects/picker/src/lib/date-time/date-time-picker.component.scss +0 -0
- package/projects/picker/src/lib/date-time/date-time-picker.component.spec.ts +2648 -0
- package/projects/picker/src/lib/date-time/date-time-picker.component.ts +731 -0
- package/projects/picker/src/lib/date-time/date-time.class.ts +256 -0
- package/projects/picker/src/lib/date-time/date-time.module.ts +61 -0
- package/projects/picker/src/lib/date-time/numberedFixLen.pipe.ts +28 -0
- package/projects/picker/src/lib/date-time/options-provider.ts +44 -0
- package/projects/picker/src/lib/date-time/timer-box.component.html +79 -0
- package/projects/picker/src/lib/date-time/timer-box.component.scss +0 -0
- package/projects/picker/src/lib/date-time/timer-box.component.ts +175 -0
- package/projects/picker/src/lib/date-time/timer.component.html +58 -0
- package/projects/picker/src/lib/date-time/timer.component.scss +0 -0
- package/projects/picker/src/lib/date-time/timer.component.spec.ts +399 -0
- package/projects/picker/src/lib/date-time/timer.component.ts +371 -0
- package/projects/picker/src/lib/dialog/dialog-config.class.ts +220 -0
- package/projects/picker/src/lib/dialog/dialog-container.component.html +1 -0
- package/projects/picker/src/lib/dialog/dialog-container.component.scss +0 -0
- package/projects/picker/src/lib/dialog/dialog-container.component.ts +231 -0
- package/projects/picker/src/lib/dialog/dialog-ref.class.ts +178 -0
- package/projects/picker/src/lib/dialog/dialog.module.ts +25 -0
- package/projects/picker/src/lib/dialog/dialog.service.ts +353 -0
- package/projects/picker/src/lib/utils/array.utils.ts +12 -0
- package/projects/picker/src/lib/utils/constants.ts +59 -0
- package/projects/picker/src/lib/utils/date.utils.ts +97 -0
- package/projects/picker/src/lib/utils/index.ts +5 -0
- package/projects/picker/src/lib/utils/object.utils.ts +29 -0
- package/projects/picker/src/public_api.ts +56 -0
- package/projects/picker/src/sass/picker.scss +743 -0
- package/projects/picker/src/test-helpers.ts +125 -0
- package/projects/picker/src/test.ts +52 -0
- package/projects/picker/tsconfig.lib.json +18 -0
- package/projects/picker/tsconfig.lib.prod.json +7 -0
- package/projects/picker/tsconfig.spec.json +17 -0
- package/projects/picker/tslint.json +8 -0
- package/src/app/app.component.html +77 -0
- package/src/app/app.component.scss +32 -0
- package/src/app/app.component.spec.ts +16 -0
- package/src/app/app.component.ts +35 -0
- package/src/assets/.gitkeep +0 -0
- package/src/environments/environment.prod.ts +3 -0
- package/src/environments/environment.ts +16 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +14 -0
- package/src/karma.conf.js +31 -0
- package/src/main.ts +16 -0
- package/src/polyfills.ts +53 -0
- package/src/styles.scss +7 -0
- package/src/test.ts +50 -0
- package/src/tsconfig.app.json +16 -0
- package/src/tsconfig.spec.json +18 -0
- package/src/tslint.json +17 -0
- package/tsconfig.base.json +29 -0
- package/tsconfig.json +30 -0
- package/tslint.json +130 -0
package/angular.json
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"cli": {
|
|
5
|
+
"cache": {
|
|
6
|
+
"enabled": true,
|
|
7
|
+
"path": ".cache",
|
|
8
|
+
"environment": "all"
|
|
9
|
+
},
|
|
10
|
+
"analytics": false
|
|
11
|
+
},
|
|
12
|
+
"newProjectRoot": "projects",
|
|
13
|
+
"projects": {
|
|
14
|
+
"date-time-picker-app": {
|
|
15
|
+
"root": "",
|
|
16
|
+
"sourceRoot": "src",
|
|
17
|
+
"projectType": "application",
|
|
18
|
+
"prefix": "owl",
|
|
19
|
+
"schematics": {
|
|
20
|
+
"@schematics/angular:component": {
|
|
21
|
+
"style": "scss"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"architect": {
|
|
25
|
+
"build": {
|
|
26
|
+
"builder": "@angular/build:application",
|
|
27
|
+
"options": {
|
|
28
|
+
"allowedCommonJsDependencies": [
|
|
29
|
+
"moment-timezone"
|
|
30
|
+
],
|
|
31
|
+
"aot": true,
|
|
32
|
+
"outputPath": {
|
|
33
|
+
"base": "dist/date-time-picker-app"
|
|
34
|
+
},
|
|
35
|
+
"index": "src/index.html",
|
|
36
|
+
"polyfills": [
|
|
37
|
+
"src/polyfills.ts"
|
|
38
|
+
],
|
|
39
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
40
|
+
"assets": [
|
|
41
|
+
"src/favicon.ico",
|
|
42
|
+
"src/assets"
|
|
43
|
+
],
|
|
44
|
+
"styles": [
|
|
45
|
+
"src/styles.scss"
|
|
46
|
+
],
|
|
47
|
+
"scripts": [],
|
|
48
|
+
"browser": "src/main.ts"
|
|
49
|
+
},
|
|
50
|
+
"configurations": {
|
|
51
|
+
"production": {
|
|
52
|
+
"fileReplacements": [
|
|
53
|
+
{
|
|
54
|
+
"replace": "src/environments/environment.ts",
|
|
55
|
+
"with": "src/environments/environment.prod.ts"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"optimization": true,
|
|
59
|
+
"outputHashing": "all",
|
|
60
|
+
"sourceMap": false,
|
|
61
|
+
"namedChunks": false,
|
|
62
|
+
"aot": true,
|
|
63
|
+
"extractLicenses": true,
|
|
64
|
+
"budgets": [
|
|
65
|
+
{
|
|
66
|
+
"type": "initial",
|
|
67
|
+
"maximumWarning": "2mb",
|
|
68
|
+
"maximumError": "5mb"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "anyComponentStyle",
|
|
72
|
+
"maximumWarning": "6kb"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"serve": {
|
|
79
|
+
"builder": "@angular/build:dev-server",
|
|
80
|
+
"options": {
|
|
81
|
+
"buildTarget": "date-time-picker-app:build"
|
|
82
|
+
},
|
|
83
|
+
"configurations": {
|
|
84
|
+
"production": {
|
|
85
|
+
"buildTarget": "date-time-picker-app:build:production"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"extract-i18n": {
|
|
90
|
+
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
91
|
+
"options": {
|
|
92
|
+
"buildTarget": "date-time-picker-app:build"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"test": {
|
|
96
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
97
|
+
"options": {
|
|
98
|
+
"main": "src/test.ts",
|
|
99
|
+
"polyfills": "src/polyfills.ts",
|
|
100
|
+
"tsConfig": "src/tsconfig.spec.json",
|
|
101
|
+
"karmaConfig": "src/karma.conf.js",
|
|
102
|
+
"styles": [
|
|
103
|
+
"src/styles.scss"
|
|
104
|
+
],
|
|
105
|
+
"scripts": [],
|
|
106
|
+
"assets": [
|
|
107
|
+
"src/favicon.ico",
|
|
108
|
+
"src/assets"
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"lint": {
|
|
113
|
+
"builder": "@angular-devkit/build-angular:tslint",
|
|
114
|
+
"options": {
|
|
115
|
+
"tsConfig": [
|
|
116
|
+
"src/tsconfig.app.json",
|
|
117
|
+
"src/tsconfig.spec.json"
|
|
118
|
+
],
|
|
119
|
+
"exclude": [
|
|
120
|
+
"**/node_modules/**"
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"date-time-picker-app-e2e": {
|
|
127
|
+
"root": "e2e/",
|
|
128
|
+
"projectType": "application",
|
|
129
|
+
"prefix": "",
|
|
130
|
+
"architect": {
|
|
131
|
+
"e2e": {
|
|
132
|
+
"builder": "@angular-devkit/build-angular:protractor",
|
|
133
|
+
"options": {
|
|
134
|
+
"protractorConfig": "e2e/protractor.conf.js",
|
|
135
|
+
"devServerTarget": "date-time-picker-app:serve"
|
|
136
|
+
},
|
|
137
|
+
"configurations": {
|
|
138
|
+
"production": {
|
|
139
|
+
"devServerTarget": "date-time-picker-app:serve:production"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"lint": {
|
|
144
|
+
"builder": "@angular-devkit/build-angular:tslint",
|
|
145
|
+
"options": {
|
|
146
|
+
"tsConfig": "e2e/tsconfig.e2e.json",
|
|
147
|
+
"exclude": [
|
|
148
|
+
"**/node_modules/**"
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"picker": {
|
|
155
|
+
"root": "projects/picker",
|
|
156
|
+
"sourceRoot": "projects/picker/src",
|
|
157
|
+
"projectType": "library",
|
|
158
|
+
"prefix": "owl",
|
|
159
|
+
"architect": {
|
|
160
|
+
"build": {
|
|
161
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
162
|
+
"options": {
|
|
163
|
+
"tsConfig": "projects/picker/tsconfig.lib.json",
|
|
164
|
+
"project": "projects/picker/ng-package.json"
|
|
165
|
+
},
|
|
166
|
+
"configurations": {
|
|
167
|
+
"production": {
|
|
168
|
+
"tsConfig": "projects/picker/tsconfig.lib.prod.json"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"test": {
|
|
173
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
174
|
+
"options": {
|
|
175
|
+
"main": "projects/picker/src/test.ts",
|
|
176
|
+
"tsConfig": "projects/picker/tsconfig.spec.json",
|
|
177
|
+
"karmaConfig": "projects/picker/karma.conf.js"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"lint": {
|
|
181
|
+
"builder": "@angular-devkit/build-angular:tslint",
|
|
182
|
+
"options": {
|
|
183
|
+
"tsConfig": [
|
|
184
|
+
"projects/picker/tsconfig.lib.json",
|
|
185
|
+
"projects/picker/tsconfig.spec.json"
|
|
186
|
+
],
|
|
187
|
+
"exclude": [
|
|
188
|
+
"**/node_modules/**"
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"schematics": {
|
|
196
|
+
"@schematics/angular:component": {
|
|
197
|
+
"type": "component"
|
|
198
|
+
},
|
|
199
|
+
"@schematics/angular:directive": {
|
|
200
|
+
"type": "directive"
|
|
201
|
+
},
|
|
202
|
+
"@schematics/angular:service": {
|
|
203
|
+
"type": "service"
|
|
204
|
+
},
|
|
205
|
+
"@schematics/angular:guard": {
|
|
206
|
+
"typeSeparator": "."
|
|
207
|
+
},
|
|
208
|
+
"@schematics/angular:interceptor": {
|
|
209
|
+
"typeSeparator": "."
|
|
210
|
+
},
|
|
211
|
+
"@schematics/angular:module": {
|
|
212
|
+
"typeSeparator": "."
|
|
213
|
+
},
|
|
214
|
+
"@schematics/angular:pipe": {
|
|
215
|
+
"typeSeparator": "."
|
|
216
|
+
},
|
|
217
|
+
"@schematics/angular:resolver": {
|
|
218
|
+
"typeSeparator": "."
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Protractor configuration file, see link for more information
|
|
2
|
+
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
|
3
|
+
|
|
4
|
+
const { SpecReporter } = require('jasmine-spec-reporter');
|
|
5
|
+
|
|
6
|
+
exports.config = {
|
|
7
|
+
allScriptsTimeout: 11000,
|
|
8
|
+
specs: [
|
|
9
|
+
'./src/**/*.e2e-spec.ts'
|
|
10
|
+
],
|
|
11
|
+
capabilities: {
|
|
12
|
+
'browserName': 'chrome'
|
|
13
|
+
},
|
|
14
|
+
directConnect: true,
|
|
15
|
+
baseUrl: 'http://localhost:4200/',
|
|
16
|
+
framework: 'jasmine',
|
|
17
|
+
jasmineNodeOpts: {
|
|
18
|
+
showColors: true,
|
|
19
|
+
defaultTimeoutInterval: 30000,
|
|
20
|
+
print: function() {}
|
|
21
|
+
},
|
|
22
|
+
onPrepare() {
|
|
23
|
+
require('ts-node').register({
|
|
24
|
+
project: require('path').join(__dirname, './tsconfig.e2e.json')
|
|
25
|
+
});
|
|
26
|
+
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AppPage } from './app.po';
|
|
2
|
+
|
|
3
|
+
describe('workspace-project App', () => {
|
|
4
|
+
let page: AppPage;
|
|
5
|
+
|
|
6
|
+
beforeEach(() => {
|
|
7
|
+
page = new AppPage();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('should display welcome message', () => {
|
|
11
|
+
page.navigateTo();
|
|
12
|
+
expect(page.getParagraphText()).toEqual('Welcome to date-time-picker-app!');
|
|
13
|
+
});
|
|
14
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@imihai/angular-datetime-picker",
|
|
3
|
+
"version": "21.0.0",
|
|
4
|
+
"description": "Angular Date Time Picker",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"ng": "ng",
|
|
8
|
+
"start": "ng serve",
|
|
9
|
+
"build": "ng build picker",
|
|
10
|
+
"test": "ng test picker",
|
|
11
|
+
"test:ci": "ng test --watch=false --no-progress --browsers=ChromeHeadlessCI --code-coverage=true picker",
|
|
12
|
+
"lint": "ng lint",
|
|
13
|
+
"e2e": "ng e2e",
|
|
14
|
+
"build_lib_onWindows": "ng build picker --configuration production && copy \"README.md\" \"dist/picker\"",
|
|
15
|
+
"build_lib_onLinux": "ng build picker --configuration production && cp README.md dist/picker",
|
|
16
|
+
"build_css_onWindows": "mkdir \"dist/picker/assets/style\" && sass --style=compressed projects/picker/src/sass/picker.scss > dist/picker/assets/style/picker.min.css",
|
|
17
|
+
"build_css_onLinux": "mkdir -p dist/picker/assets/style && sass --style=compressed projects/picker/src/sass/picker.scss > dist/picker/assets/style/picker.min.css",
|
|
18
|
+
"npm_pack": "cd dist/picker && npm pack",
|
|
19
|
+
"package_windows": "npm run build_lib_onWindows && npm run build_css_onWindows && npm run npm_pack",
|
|
20
|
+
"package_linux": "npm run build_lib_onLinux && npm run build_css_onLinux && npm run npm_pack"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@angular/cdk": "^21.1.1",
|
|
24
|
+
"@angular/common": "^21.1.0",
|
|
25
|
+
"@angular/compiler": "^21.1.0",
|
|
26
|
+
"@angular/core": "^21.1.0",
|
|
27
|
+
"@angular/forms": "^21.1.0",
|
|
28
|
+
"@angular/platform-browser": "^21.1.0",
|
|
29
|
+
"@angular/platform-browser-dynamic": "^21.1.0",
|
|
30
|
+
"@angular/router": "^21.1.0",
|
|
31
|
+
"core-js": "^3.45.1",
|
|
32
|
+
"luxon": "^3.7.2",
|
|
33
|
+
"np": "^10.2.0",
|
|
34
|
+
"rxjs": "^7.8.2",
|
|
35
|
+
"tslib": "^2.8.1",
|
|
36
|
+
"zone.js": "^0.15.1"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@angular-devkit/build-angular": "^21.1.1",
|
|
40
|
+
"@angular-eslint/eslint-plugin": "^21.1.0",
|
|
41
|
+
"@angular-eslint/eslint-plugin-template": "^21.1.0",
|
|
42
|
+
"@angular-eslint/schematics": "^21.1.0",
|
|
43
|
+
"@angular-eslint/template-parser": "^21.1.0",
|
|
44
|
+
"@angular/cli": "^21.1.1",
|
|
45
|
+
"@types/luxon": "^3.7.1",
|
|
46
|
+
"@angular/compiler-cli": "^21.1.1",
|
|
47
|
+
"@angular/language-service": "^21.1.1",
|
|
48
|
+
"@types/jasmine": "^5.1.9",
|
|
49
|
+
"@types/jasminewd2": "^2.0.13",
|
|
50
|
+
"@types/node": "^24.5.2",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
52
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
53
|
+
"codecov": "^3.8.3",
|
|
54
|
+
"eslint": "^9.39.1",
|
|
55
|
+
"jasmine-core": "~5.1.2",
|
|
56
|
+
"jasmine-spec-reporter": "~7.0.0",
|
|
57
|
+
"karma": "~6.4.3",
|
|
58
|
+
"karma-chrome-launcher": "^3.2.0",
|
|
59
|
+
"karma-coverage": "^2.2.1",
|
|
60
|
+
"karma-jasmine": "~5.1.0",
|
|
61
|
+
"karma-jasmine-html-reporter": "^2.1.0",
|
|
62
|
+
"ng-packagr": "^21.1.0",
|
|
63
|
+
"protractor": "~7.0.0",
|
|
64
|
+
"sass": "^1.93.2",
|
|
65
|
+
"ts-node": "^10.9.2",
|
|
66
|
+
"typescript": "~5.9.2"
|
|
67
|
+
},
|
|
68
|
+
"overrides": {
|
|
69
|
+
"@lmdb/lmdb-darwin-arm64": "3.0.12"
|
|
70
|
+
},
|
|
71
|
+
"optionalDependencies": {
|
|
72
|
+
"@nx/nx-darwin-arm64": "21.5.3",
|
|
73
|
+
"@nx/nx-darwin-x64": "21.5.3",
|
|
74
|
+
"@nx/nx-linux-x64-gnu": "21.5.3",
|
|
75
|
+
"@nx/nx-win32-x64-msvc": "21.5.3"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
17
|
+
},
|
|
18
|
+
coverageIstanbulReporter: {
|
|
19
|
+
dir: require('path').join(__dirname, '../../coverage'),
|
|
20
|
+
reports: ['html', 'lcovonly', 'json'],
|
|
21
|
+
fixWebpackSourcePaths: true
|
|
22
|
+
},
|
|
23
|
+
customLaunchers: {
|
|
24
|
+
ChromeHeadlessNoSandbox: {
|
|
25
|
+
base: 'ChromeHeadless',
|
|
26
|
+
flags: [
|
|
27
|
+
'--no-sandbox',
|
|
28
|
+
'--disable-web-security',
|
|
29
|
+
'--disable-gpu',
|
|
30
|
+
'--disable-dev-shm-usage',
|
|
31
|
+
'--disable-extensions',
|
|
32
|
+
'--remote-debugging-port=9222',
|
|
33
|
+
'--headless'
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
ChromeHeadlessCI: {
|
|
37
|
+
base: 'ChromeHeadless',
|
|
38
|
+
flags: [
|
|
39
|
+
'--no-sandbox',
|
|
40
|
+
'--disable-web-security',
|
|
41
|
+
'--disable-gpu',
|
|
42
|
+
'--disable-dev-shm-usage',
|
|
43
|
+
'--disable-extensions',
|
|
44
|
+
'--disable-background-timer-throttling',
|
|
45
|
+
'--disable-backgrounding-occluded-windows',
|
|
46
|
+
'--disable-renderer-backgrounding',
|
|
47
|
+
'--remote-debugging-port=9222',
|
|
48
|
+
'--headless'
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
reporters: ['progress', 'kjhtml'],
|
|
53
|
+
port: 9876,
|
|
54
|
+
colors: true,
|
|
55
|
+
logLevel: config.LOG_INFO,
|
|
56
|
+
autoWatch: true,
|
|
57
|
+
// Use different browsers based on environment
|
|
58
|
+
browsers: process.env.CI ? ['ChromeHeadlessCI'] : ['Chrome'],
|
|
59
|
+
singleRun: process.env.CI ? true : false,
|
|
60
|
+
restartOnFileChange: false
|
|
61
|
+
});
|
|
62
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@imihai/angular-datetime-picker",
|
|
3
|
+
"version": "21.0.0",
|
|
4
|
+
"description": "Angular Date Time Picker",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/danielmoncada/date-time-picker.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/danielmoncada/date-time-picker",
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"@angular/common": "^21.0.0",
|
|
16
|
+
"@angular/core": "^21.0.0",
|
|
17
|
+
"@angular/cdk": "^21.0.0",
|
|
18
|
+
"luxon": "^3.7.2"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"tslib": "^2.6.2"
|
|
22
|
+
},
|
|
23
|
+
"exports": {
|
|
24
|
+
"./assets/style/picker.min.css": {
|
|
25
|
+
"default": "./assets/style/picker.min.css"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|