moment-timezone-picker
Advanced tools
Comparing version 2.2.0 to 3.0.0
@@ -7,7 +7,25 @@ (function (global, factory) { | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: lib/moment-timezone-picker.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
function _interopNamespace(e) { | ||
if (e && e.__esModule) return e; | ||
var n = Object.create(null); | ||
if (e) { | ||
Object.keys(e).forEach(function (k) { | ||
if (k !== 'default') { | ||
var d = Object.getOwnPropertyDescriptor(e, k); | ||
Object.defineProperty(n, k, d.get ? d : { | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
}); | ||
} | ||
}); | ||
} | ||
n['default'] = e; | ||
return Object.freeze(n); | ||
} | ||
var i0__namespace = /*#__PURE__*/_interopNamespace(i0); | ||
var momentZone__namespace = /*#__PURE__*/_interopNamespace(momentZone); | ||
var MomentTimezonePickerService = /** @class */ (function () { | ||
@@ -18,2 +36,3 @@ function MomentTimezonePickerService() { | ||
}()); | ||
/** @nocollapse */ MomentTimezonePickerService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MomentTimezonePickerService_Factory() { return new MomentTimezonePickerService(); }, token: MomentTimezonePickerService, providedIn: "root" }); | ||
MomentTimezonePickerService.decorators = [ | ||
@@ -26,9 +45,3 @@ { type: i0.Injectable, args: [{ | ||
MomentTimezonePickerService.ctorParameters = function () { return []; }; | ||
/** @nocollapse */ MomentTimezonePickerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MomentTimezonePickerService_Factory() { return new MomentTimezonePickerService(); }, token: MomentTimezonePickerService, providedIn: "root" }); | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: lib/moment-timezone-picker.component.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var TZone = /** @class */ (function () { | ||
@@ -39,36 +52,3 @@ function TZone() { | ||
}()); | ||
if (false) { | ||
/** @type {?} */ | ||
TZone.prototype.name; | ||
/** @type {?} */ | ||
TZone.prototype.nameValue; | ||
/** @type {?} */ | ||
TZone.prototype.timeValue; | ||
/** @type {?} */ | ||
TZone.prototype.group; | ||
/** @type {?} */ | ||
TZone.prototype.abbr; | ||
} | ||
/** | ||
* @record | ||
*/ | ||
function SelectConfig() { } | ||
if (false) { | ||
/** @type {?} */ | ||
SelectConfig.prototype.appearance; | ||
/** @type {?} */ | ||
SelectConfig.prototype.appendTo; | ||
/** @type {?} */ | ||
SelectConfig.prototype.clearOnBackspace; | ||
/** @type {?} */ | ||
SelectConfig.prototype.closeOnSelect; | ||
/** @type {?} */ | ||
SelectConfig.prototype.dropdownPosition; | ||
/** @type {?} */ | ||
SelectConfig.prototype.hideSelected; | ||
} | ||
var MomentTimezonePickerComponent = /** @class */ (function () { | ||
/** | ||
* @param {?} fb | ||
*/ | ||
function MomentTimezonePickerComponent(fb) { | ||
@@ -96,12 +76,5 @@ this.fb = fb; | ||
Object.defineProperty(MomentTimezonePickerComponent.prototype, "config", { | ||
/** | ||
* @return {?} | ||
*/ | ||
get: function () { | ||
return this._config; | ||
}, | ||
/** | ||
* @param {?} conf | ||
* @return {?} | ||
*/ | ||
set: function (conf) { | ||
@@ -113,11 +86,5 @@ this._config = conf; | ||
}); | ||
/** | ||
* @return {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.ngOnInit = function () { | ||
var _this = this; | ||
this.timeZones = momentZone.tz.names().map(( /** | ||
* @param {?} zone | ||
* @return {?} | ||
*/function (zone) { return _this.formatZone(zone); })); | ||
this.timeZones = momentZone__namespace.tz.names().map(function (zone) { return _this.formatZone(zone); }); | ||
this.form = this.fb.group({ | ||
@@ -131,15 +98,7 @@ timezone: [] | ||
.pipe(operators.takeUntil(this.destroy$)) | ||
.subscribe(( /** | ||
* @return {?} | ||
*/function () { return _this.fireChanges(); })); | ||
.subscribe(function () { return _this.fireChanges(); }); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.ngAfterViewInit = function () { | ||
this.guessUserTimezone(); | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.ngOnDestroy = function () { | ||
@@ -149,17 +108,10 @@ this.destroy$.next(); | ||
}; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.guessUserTimezone = function () { | ||
var _this = this; | ||
setTimeout(( /** | ||
* @return {?} | ||
*/function () { | ||
setTimeout(function () { | ||
if (_this.getUserZone) { | ||
/** @type {?} */ | ||
var guessedZone = momentZone.tz.guess(true); | ||
var guessedZone = momentZone__namespace.tz.guess(true); | ||
_this.form.get('timezone').setValue(_this.formatZone(guessedZone)); | ||
} | ||
})); | ||
}); | ||
}; | ||
@@ -169,10 +121,6 @@ /** | ||
* @link ngOnInit | ||
* @param {?} zone | ||
* @return {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.formatZone = function (zone) { | ||
/** @type {?} */ | ||
var utc = momentZone.tz(zone).format('Z'); | ||
/** @type {?} */ | ||
var abbr = momentZone.tz(zone).zoneAbbr(); | ||
var utc = momentZone__namespace.tz(zone).format('Z'); | ||
var abbr = momentZone__namespace.tz(zone).zoneAbbr(); | ||
return { | ||
@@ -188,4 +136,2 @@ name: zone + " (" + utc + ")", | ||
* Propagate result to parent component. | ||
* @private | ||
* @return {?} | ||
*/ | ||
@@ -199,4 +145,2 @@ MomentTimezonePickerComponent.prototype.fireChanges = function () { | ||
* Clear selection. | ||
* @private | ||
* @return {?} | ||
*/ | ||
@@ -208,4 +152,2 @@ MomentTimezonePickerComponent.prototype.clearZone = function () { | ||
* Handle parent imports changes. | ||
* @param {?} changes | ||
* @return {?} | ||
*/ | ||
@@ -218,20 +160,10 @@ MomentTimezonePickerComponent.prototype.ngOnChanges = function (changes) { | ||
if (changes.disabled) { | ||
setTimeout(( /** | ||
* @return {?} | ||
*/function () { | ||
setTimeout(function () { | ||
changes.disabled.currentValue ? _this.form.get('timezone').disable() : _this.form.get('timezone').enable(); | ||
})); | ||
}); | ||
} | ||
}; | ||
/** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.registerOnChange = function (fn) { | ||
this.propagateChange = fn; | ||
}; | ||
/** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.registerOnTouched = function (fn) { | ||
@@ -241,26 +173,11 @@ }; | ||
* Handle parent model value changes. | ||
* @param {?} zone | ||
* @return {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.writeValue = function (zone) { | ||
if (zone) { | ||
/** @type {?} */ | ||
var _zone = null; | ||
if (typeof zone === 'string' && zone.length > 0) { | ||
_zone = this.timeZones.find(( /** | ||
* @param {?} z | ||
* @return {?} | ||
*/function (/** | ||
* @param {?} z | ||
* @return {?} | ||
*/ z) { return z.nameValue === zone; })); | ||
_zone = this.timeZones.find(function (z) { return z.nameValue === zone; }); | ||
} | ||
else if (typeof zone === 'object') { | ||
_zone = this.timeZones.find(( /** | ||
* @param {?} z | ||
* @return {?} | ||
*/function (/** | ||
* @param {?} z | ||
* @return {?} | ||
*/ z) { return z.nameValue === zone.nameValue; })); | ||
_zone = this.timeZones.find(function (z) { return z.nameValue === zone.nameValue; }); | ||
} | ||
@@ -284,5 +201,3 @@ if (_zone) { | ||
provide: forms.NG_VALUE_ACCESSOR, | ||
useExisting: i0.forwardRef(( /** | ||
* @return {?} | ||
*/function () { return MomentTimezonePickerComponent; })), | ||
useExisting: i0.forwardRef(function () { return MomentTimezonePickerComponent; }), | ||
multi: true | ||
@@ -293,3 +208,3 @@ } | ||
styles: [""] | ||
}] } | ||
},] } | ||
]; | ||
@@ -309,52 +224,3 @@ /** @nocollapse */ | ||
}; | ||
if (false) { | ||
/** | ||
* Setup section. | ||
* @type {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.getUserZone; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.customPlaceholderText; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.customNotFoundText; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.clearable; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.virtualScroll; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.disabled; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MomentTimezonePickerComponent.prototype._config; | ||
/** | ||
* Internals section. | ||
* @type {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.timeZones; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.form; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MomentTimezonePickerComponent.prototype.propagateChange; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MomentTimezonePickerComponent.prototype.destroy$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MomentTimezonePickerComponent.prototype.fb; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: lib/moment-timezone-picker.module.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var MomentTimezonePickerModule = /** @class */ (function () { | ||
@@ -377,12 +243,8 @@ function MomentTimezonePickerModule() { | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: public_api.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
/* | ||
* Public API Surface of moment-timezone-picker | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: moment-timezone-picker.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
@@ -389,0 +251,0 @@ |
@@ -1,6 +0,1 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: lib/moment-timezone-picker.component.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { Component, forwardRef, Input, ViewEncapsulation } from '@angular/core'; | ||
@@ -13,36 +8,3 @@ import * as momentZone from 'moment-timezone'; | ||
} | ||
if (false) { | ||
/** @type {?} */ | ||
TZone.prototype.name; | ||
/** @type {?} */ | ||
TZone.prototype.nameValue; | ||
/** @type {?} */ | ||
TZone.prototype.timeValue; | ||
/** @type {?} */ | ||
TZone.prototype.group; | ||
/** @type {?} */ | ||
TZone.prototype.abbr; | ||
} | ||
/** | ||
* @record | ||
*/ | ||
export function SelectConfig() { } | ||
if (false) { | ||
/** @type {?} */ | ||
SelectConfig.prototype.appearance; | ||
/** @type {?} */ | ||
SelectConfig.prototype.appendTo; | ||
/** @type {?} */ | ||
SelectConfig.prototype.clearOnBackspace; | ||
/** @type {?} */ | ||
SelectConfig.prototype.closeOnSelect; | ||
/** @type {?} */ | ||
SelectConfig.prototype.dropdownPosition; | ||
/** @type {?} */ | ||
SelectConfig.prototype.hideSelected; | ||
} | ||
export class MomentTimezonePickerComponent { | ||
/** | ||
* @param {?} fb | ||
*/ | ||
constructor(fb) { | ||
@@ -69,24 +31,10 @@ this.fb = fb; | ||
} | ||
/** | ||
* @param {?} conf | ||
* @return {?} | ||
*/ | ||
set config(conf) { | ||
this._config = conf; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
get config() { | ||
return this._config; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
ngOnInit() { | ||
this.timeZones = momentZone.tz.names().map((/** | ||
* @param {?} zone | ||
* @return {?} | ||
*/ | ||
(zone) => this.formatZone(zone))); | ||
this.timeZones = momentZone.tz.names().map((zone) => this.formatZone(zone)); | ||
this.form = this.fb.group({ | ||
@@ -100,16 +48,7 @@ timezone: [] | ||
.pipe(takeUntil(this.destroy$)) | ||
.subscribe((/** | ||
* @return {?} | ||
*/ | ||
() => this.fireChanges())); | ||
.subscribe(() => this.fireChanges()); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
ngAfterViewInit() { | ||
this.guessUserTimezone(); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
ngOnDestroy() { | ||
@@ -119,17 +58,9 @@ this.destroy$.next(); | ||
} | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
guessUserTimezone() { | ||
setTimeout((/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
setTimeout(() => { | ||
if (this.getUserZone) { | ||
/** @type {?} */ | ||
const guessedZone = momentZone.tz.guess(true); | ||
this.form.get('timezone').setValue(this.formatZone(guessedZone)); | ||
} | ||
})); | ||
}); | ||
} | ||
@@ -139,9 +70,5 @@ /** | ||
* @link ngOnInit | ||
* @param {?} zone | ||
* @return {?} | ||
*/ | ||
formatZone(zone) { | ||
/** @type {?} */ | ||
const utc = momentZone.tz(zone).format('Z'); | ||
/** @type {?} */ | ||
const abbr = momentZone.tz(zone).zoneAbbr(); | ||
@@ -158,4 +85,2 @@ return { | ||
* Propagate result to parent component. | ||
* @private | ||
* @return {?} | ||
*/ | ||
@@ -169,4 +94,2 @@ fireChanges() { | ||
* Clear selection. | ||
* @private | ||
* @return {?} | ||
*/ | ||
@@ -178,4 +101,2 @@ clearZone() { | ||
* Handle parent imports changes. | ||
* @param {?} changes | ||
* @return {?} | ||
*/ | ||
@@ -187,21 +108,10 @@ ngOnChanges(changes) { | ||
if (changes.disabled) { | ||
setTimeout((/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
setTimeout(() => { | ||
changes.disabled.currentValue ? this.form.get('timezone').disable() : this.form.get('timezone').enable(); | ||
})); | ||
}); | ||
} | ||
} | ||
/** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
registerOnChange(fn) { | ||
this.propagateChange = fn; | ||
} | ||
/** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
registerOnTouched(fn) { | ||
@@ -211,22 +121,11 @@ } | ||
* Handle parent model value changes. | ||
* @param {?} zone | ||
* @return {?} | ||
*/ | ||
writeValue(zone) { | ||
if (zone) { | ||
/** @type {?} */ | ||
let _zone = null; | ||
if (typeof zone === 'string' && zone.length > 0) { | ||
_zone = this.timeZones.find((/** | ||
* @param {?} z | ||
* @return {?} | ||
*/ | ||
z => z.nameValue === zone)); | ||
_zone = this.timeZones.find(z => z.nameValue === zone); | ||
} | ||
else if (typeof zone === 'object') { | ||
_zone = this.timeZones.find((/** | ||
* @param {?} z | ||
* @return {?} | ||
*/ | ||
z => z.nameValue === zone.nameValue)); | ||
_zone = this.timeZones.find(z => z.nameValue === zone.nameValue); | ||
} | ||
@@ -268,6 +167,3 @@ if (_zone) { | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
() => MomentTimezonePickerComponent)), | ||
useExisting: forwardRef(() => MomentTimezonePickerComponent), | ||
multi: true | ||
@@ -278,3 +174,3 @@ } | ||
styles: [""] | ||
}] } | ||
},] } | ||
]; | ||
@@ -294,46 +190,2 @@ /** @nocollapse */ | ||
}; | ||
if (false) { | ||
/** | ||
* Setup section. | ||
* @type {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.getUserZone; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.customPlaceholderText; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.customNotFoundText; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.clearable; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.virtualScroll; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.disabled; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MomentTimezonePickerComponent.prototype._config; | ||
/** | ||
* Internals section. | ||
* @type {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.timeZones; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.form; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MomentTimezonePickerComponent.prototype.propagateChange; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MomentTimezonePickerComponent.prototype.destroy$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MomentTimezonePickerComponent.prototype.fb; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9tZW50LXRpbWV6b25lLXBpY2tlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvdG9ueS9fU0VMRi9qcy9OUE0vbmctbW9tZW50LXRpbWV6b25lLXBpY2tlci9wcm9qZWN0cy9tb21lbnQtdGltZXpvbmUtcGlja2VyL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9tb21lbnQtdGltZXpvbmUtcGlja2VyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFFTCxTQUFTLEVBQ1QsVUFBVSxFQUNWLEtBQUssRUFLTCxpQkFBaUIsRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxLQUFLLFVBQVUsTUFBTSxpQkFBaUIsQ0FBQztBQUM5QyxPQUFPLEVBQXVCLFdBQVcsRUFBYSxpQkFBaUIsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQy9GLE9BQU8sRUFBQyxPQUFPLEVBQUMsTUFBTSxNQUFNLENBQUM7QUFDN0IsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBRXpDLE1BQU0sT0FBTyxLQUFLO0NBTWpCOzs7SUFMQyxxQkFBYTs7SUFDYiwwQkFBa0I7O0lBQ2xCLDBCQUFrQjs7SUFDbEIsc0JBQWM7O0lBQ2QscUJBQWE7Ozs7O0FBR2Ysa0NBT0M7OztJQU5DLGtDQUFvQzs7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iAgICAgICAgICAgICAgICAgW2NsZWFyYWJsZV09XCJjbGVhcmFibGVcIlxuICAgICAgICAgICAgICAgICBbdmlydHVhbFNjcm9sbF09XCJ2aXJ0dWFsU2Nyb2xsXCJcbiAgICAgICAgICAgICAgICAgW2dyb3VwQnldPVwiJ2dyb3VwJ1wiXG4gICAgICAgICAgICAgICAgIGJpbmRMYWJlbD1cIm5hbWVcIlxuICAgICAgICAgICAgICAgICBbcGxhY2Vob2xkZXJdPVwiY3VzdG9tUGxhY2Vob2xkZXJUZXh0XCJcbiAgICAgICAgICAgICAgICAgW25vdEZvdW5kVGV4dF09XCJjdXN0b21Ob3RGb3VuZFRleHRcIlxuXG4gICAgICAgICAgICAgICAgIFthcHBlYXJhbmNlXT1cImNvbmZpZy5hcHBlYXJhbmNlXCJcbiAgICAgICAgICAgICAgICAgW2FwcGVuZFRvXT1cImNvbmZpZy5hcHBlbmRUb1wiXG4gICAgICAgICAgICAgICAgIFtjbGVhck9uQmFja3NwYWNlXT1cImNvbmZpZy5jbGVhck9uQmFja3NwYWNlXCJcbiAgICAgICAgICAgICAgICAgW2Nsb3NlT25TZWxlY3RdPVwiY29uZmlnLmNsb3NlT25TZWxlY3RcIlxuICAgICAgICAgICAgICAgICBbZHJvcGRvd25Qb3NpdGlvbl09XCJjb25maWcuZHJvcGRvd25Qb3NpdGlvblwiXG4gICAgICAgICAgICAgICAgIFtoaWRlU2VsZWN0ZWRdPVwiY29uZmlnLmhpZGVTZWxlY3RlZFwiPlxuICAgICAgPC9uZy1zZWxlY3Q+XG4gICAgPC9kaXY+XG4gIGAsXG4gIHN0eWxlVXJsczogWycuL21vbWVudC10aW1lem9uZS1waWNrZXIuc2NzcyddLFxuICBwcm92aWRlcnM6IFtcbiAgICB7XG4gICAgICBwcm92aWRlOiBOR19WQUxVRV9BQ0NFU1NPUixcbiAgICAgIHVzZUV4aXN0aW5nOiBmb3J3YXJkUmVmKCgpID0+IE1vbWVudFRpbWV6b25lUGlja2VyQ29tcG9u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mNsZWFyWm9uZSgpO1xuICAgIH1cbiAgfVxuXG59XG4iXX0= |
@@ -1,6 +0,1 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: lib/moment-timezone-picker.module.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { NgModule } from '@angular/core'; | ||
@@ -23,2 +18,2 @@ import { MomentTimezonePickerComponent } from './moment-timezone-picker.component'; | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9tZW50LXRpbWV6b25lLXBpY2tlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvdG9ueS9fU0VMRi9qcy9OUE0vbmctbW9tZW50LXRpbWV6b25lLXBpY2tlci9wcm9qZWN0cy9tb21lbnQtdGltZXpvbmUtcGlja2VyL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9tb21lbnQtdGltZXpvbmUtcGlja2VyLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLDZCQUE2QixFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDbkYsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBQ3BELE9BQU8sRUFBQyxXQUFXLEVBQUUsbUJBQW1CLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQVdoRSxNQUFNLE9BQU8sMEJBQTBCOzs7WUFUdEMsUUFBUSxTQUFDO2dCQUNSLFlBQVksRUFBRSxDQUFDLDZCQUE2QixDQUFDO2dCQUM3QyxPQUFPLEVBQUU7b0JBQ1AsY0FBYztvQkFDZCxXQUFXO29CQUNYLG1CQUFtQjtpQkFDcEI7Z0JBQ0QsT0FBTyxFQUFFLENB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R1bGUgeyB9XG4iXX0= |
@@ -1,6 +0,1 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: lib/moment-timezone-picker.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
import { Injectable } from '@angular/core'; | ||
@@ -11,2 +6,3 @@ import * as i0 from "@angular/core"; | ||
} | ||
/** @nocollapse */ MomentTimezonePickerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MomentTimezonePickerService_Factory() { return new MomentTimezonePickerService(); }, token: MomentTimezonePickerService, providedIn: "root" }); | ||
MomentTimezonePickerService.decorators = [ | ||
@@ -19,3 +15,2 @@ { type: Injectable, args: [{ | ||
MomentTimezonePickerService.ctorParameters = () => []; | ||
/** @nocollapse */ MomentTimezonePickerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MomentTimezonePickerService_Factory() { return new MomentTimezonePickerService(); }, token: MomentTimezonePickerService, providedIn: "root" }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9tZW50LXRpbWV6b25lLXBpY2tlci5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Ii9ob21lL3RvbnkvX1NFTEYvanMvTlBNL25nLW1vbWVudC10aW1lem9uZS1waWNrZXIvcHJvamVjdHMvbW9tZW50LXRpbWV6b25lLXBpY2tlci9zcmMvIiwic291cmNlcyI6WyJsaWIvbW9tZW50LXRpbWV6b25lLXBpY2tlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFLM0MsTUFBTSxPQUFPLDJCQUEyQjtJQUV0QyxnQkFBZ0IsQ0FBQzs7O1lBTGxCLFVBQVUsU0FBQztnQkFDVixVQUFVLEVBQUUsTUFBTTthQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgTW9tZW50VGltZXpvbmVQaWNrZXJTZXJ2aWNlIHtcblxuICBjb25zdHJ1Y3RvcigpIHsgfVxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9tZW50LXRpbWV6b25lLXBpY2tlci5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9tZW50LXRpbWV6b25lLXBpY2tlci9zcmMvbGliL21vbWVudC10aW1lem9uZS1waWNrZXIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUszQyxNQUFNLE9BQU8sMkJBQTJCO0lBRXRDLGdCQUFnQixDQUFDOzs7O1lBTGxCLFVBQVUsU0FBQztnQkFDVixVQUFVLEVBQUUsTUFBTTthQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgTW9tZW50VGltZXpvbmVQaWNrZXJTZXJ2aWNlIHtcblxuICBjb25zdHJ1Y3RvcigpIHsgfVxufVxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: moment-timezone-picker.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export { MomentTimezonePickerService, TZone, MomentTimezonePickerComponent, MomentTimezonePickerModule } from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9tZW50LXRpbWV6b25lLXBpY2tlci5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS90b255L19TRUxGL2pzL05QTS9uZy1tb21lbnQtdGltZXpvbmUtcGlja2VyL3Byb2plY3RzL21vbWVudC10aW1lem9uZS1waWNrZXIvc3JjLyIsInNvdXJjZXMiOlsibW9tZW50LXRpbWV6b25lLXBpY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLDhHQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ== | ||
export * from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9tZW50LXRpbWV6b25lLXBpY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL21vbWVudC10aW1lem9uZS1waWNrZXIvc3JjL21vbWVudC10aW1lem9uZS1waWNrZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ== |
@@ -1,12 +0,7 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: public_api.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/* | ||
* Public API Surface of moment-timezone-picker | ||
*/ | ||
export { MomentTimezonePickerService } from './lib/moment-timezone-picker.service'; | ||
export { TZone, MomentTimezonePickerComponent } from './lib/moment-timezone-picker.component'; | ||
export { MomentTimezonePickerModule } from './lib/moment-timezone-picker.module'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS90b255L19TRUxGL2pzL05QTS9uZy1tb21lbnQtdGltZXpvbmUtcGlja2VyL3Byb2plY3RzL21vbWVudC10aW1lem9uZS1waWNrZXIvc3JjLyIsInNvdXJjZXMiOlsicHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLDRDQUFjLHNDQUFzQyxDQUFDO0FBQ3JELHFEQUFjLHdDQUF3QyxDQUFDO0FBQ3ZELDJDQUFjLHFDQUFxQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBtb21lbnQtdGltZXpvbmUtcGlja2VyXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9tZW50LXRpbWV6b25lLXBpY2tlci5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vbWVudC10aW1lem9uZS1waWNrZXIuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vbWVudC10aW1lem9uZS1waWNrZXIubW9kdWxlJztcbiJdfQ== | ||
export * from './lib/moment-timezone-picker.service'; | ||
export * from './lib/moment-timezone-picker.component'; | ||
export * from './lib/moment-timezone-picker.module'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL21vbWVudC10aW1lem9uZS1waWNrZXIvc3JjL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLHNDQUFzQyxDQUFDO0FBQ3JELGNBQWMsd0NBQXdDLENBQUM7QUFDdkQsY0FBYyxxQ0FBcUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgbW9tZW50LXRpbWV6b25lLXBpY2tlclxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL21vbWVudC10aW1lem9uZS1waWNrZXIuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb21lbnQtdGltZXpvbmUtcGlja2VyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb21lbnQtdGltZXpvbmUtcGlja2VyLm1vZHVsZSc7XG4iXX0= |
@@ -1,3 +0,4 @@ | ||
import { Injectable, ɵɵdefineInjectable, Component, forwardRef, ViewEncapsulation, Input, NgModule } from '@angular/core'; | ||
import { tz } from 'moment-timezone'; | ||
import * as i0 from '@angular/core'; | ||
import { Injectable, Component, forwardRef, ViewEncapsulation, Input, NgModule } from '@angular/core'; | ||
import * as momentZone from 'moment-timezone'; | ||
import { NG_VALUE_ACCESSOR, FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms'; | ||
@@ -8,10 +9,6 @@ import { Subject } from 'rxjs'; | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: lib/moment-timezone-picker.service.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
class MomentTimezonePickerService { | ||
constructor() { } | ||
} | ||
/** @nocollapse */ MomentTimezonePickerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MomentTimezonePickerService_Factory() { return new MomentTimezonePickerService(); }, token: MomentTimezonePickerService, providedIn: "root" }); | ||
MomentTimezonePickerService.decorators = [ | ||
@@ -24,45 +21,6 @@ { type: Injectable, args: [{ | ||
MomentTimezonePickerService.ctorParameters = () => []; | ||
/** @nocollapse */ MomentTimezonePickerService.ɵprov = ɵɵdefineInjectable({ factory: function MomentTimezonePickerService_Factory() { return new MomentTimezonePickerService(); }, token: MomentTimezonePickerService, providedIn: "root" }); | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: lib/moment-timezone-picker.component.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
class TZone { | ||
} | ||
if (false) { | ||
/** @type {?} */ | ||
TZone.prototype.name; | ||
/** @type {?} */ | ||
TZone.prototype.nameValue; | ||
/** @type {?} */ | ||
TZone.prototype.timeValue; | ||
/** @type {?} */ | ||
TZone.prototype.group; | ||
/** @type {?} */ | ||
TZone.prototype.abbr; | ||
} | ||
/** | ||
* @record | ||
*/ | ||
function SelectConfig() { } | ||
if (false) { | ||
/** @type {?} */ | ||
SelectConfig.prototype.appearance; | ||
/** @type {?} */ | ||
SelectConfig.prototype.appendTo; | ||
/** @type {?} */ | ||
SelectConfig.prototype.clearOnBackspace; | ||
/** @type {?} */ | ||
SelectConfig.prototype.closeOnSelect; | ||
/** @type {?} */ | ||
SelectConfig.prototype.dropdownPosition; | ||
/** @type {?} */ | ||
SelectConfig.prototype.hideSelected; | ||
} | ||
class MomentTimezonePickerComponent { | ||
/** | ||
* @param {?} fb | ||
*/ | ||
constructor(fb) { | ||
@@ -89,24 +47,10 @@ this.fb = fb; | ||
} | ||
/** | ||
* @param {?} conf | ||
* @return {?} | ||
*/ | ||
set config(conf) { | ||
this._config = conf; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
get config() { | ||
return this._config; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
ngOnInit() { | ||
this.timeZones = tz.names().map((/** | ||
* @param {?} zone | ||
* @return {?} | ||
*/ | ||
(zone) => this.formatZone(zone))); | ||
this.timeZones = momentZone.tz.names().map((zone) => this.formatZone(zone)); | ||
this.form = this.fb.group({ | ||
@@ -120,16 +64,7 @@ timezone: [] | ||
.pipe(takeUntil(this.destroy$)) | ||
.subscribe((/** | ||
* @return {?} | ||
*/ | ||
() => this.fireChanges())); | ||
.subscribe(() => this.fireChanges()); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
ngAfterViewInit() { | ||
this.guessUserTimezone(); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
ngOnDestroy() { | ||
@@ -139,17 +74,9 @@ this.destroy$.next(); | ||
} | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
guessUserTimezone() { | ||
setTimeout((/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
setTimeout(() => { | ||
if (this.getUserZone) { | ||
/** @type {?} */ | ||
const guessedZone = tz.guess(true); | ||
const guessedZone = momentZone.tz.guess(true); | ||
this.form.get('timezone').setValue(this.formatZone(guessedZone)); | ||
} | ||
})); | ||
}); | ||
} | ||
@@ -159,10 +86,6 @@ /** | ||
* @link ngOnInit | ||
* @param {?} zone | ||
* @return {?} | ||
*/ | ||
formatZone(zone) { | ||
/** @type {?} */ | ||
const utc = tz(zone).format('Z'); | ||
/** @type {?} */ | ||
const abbr = tz(zone).zoneAbbr(); | ||
const utc = momentZone.tz(zone).format('Z'); | ||
const abbr = momentZone.tz(zone).zoneAbbr(); | ||
return { | ||
@@ -178,4 +101,2 @@ name: `${zone} (${utc})`, | ||
* Propagate result to parent component. | ||
* @private | ||
* @return {?} | ||
*/ | ||
@@ -189,4 +110,2 @@ fireChanges() { | ||
* Clear selection. | ||
* @private | ||
* @return {?} | ||
*/ | ||
@@ -198,4 +117,2 @@ clearZone() { | ||
* Handle parent imports changes. | ||
* @param {?} changes | ||
* @return {?} | ||
*/ | ||
@@ -207,21 +124,10 @@ ngOnChanges(changes) { | ||
if (changes.disabled) { | ||
setTimeout((/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
setTimeout(() => { | ||
changes.disabled.currentValue ? this.form.get('timezone').disable() : this.form.get('timezone').enable(); | ||
})); | ||
}); | ||
} | ||
} | ||
/** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
registerOnChange(fn) { | ||
this.propagateChange = fn; | ||
} | ||
/** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
registerOnTouched(fn) { | ||
@@ -231,22 +137,11 @@ } | ||
* Handle parent model value changes. | ||
* @param {?} zone | ||
* @return {?} | ||
*/ | ||
writeValue(zone) { | ||
if (zone) { | ||
/** @type {?} */ | ||
let _zone = null; | ||
if (typeof zone === 'string' && zone.length > 0) { | ||
_zone = this.timeZones.find((/** | ||
* @param {?} z | ||
* @return {?} | ||
*/ | ||
z => z.nameValue === zone)); | ||
_zone = this.timeZones.find(z => z.nameValue === zone); | ||
} | ||
else if (typeof zone === 'object') { | ||
_zone = this.timeZones.find((/** | ||
* @param {?} z | ||
* @return {?} | ||
*/ | ||
z => z.nameValue === zone.nameValue)); | ||
_zone = this.timeZones.find(z => z.nameValue === zone.nameValue); | ||
} | ||
@@ -288,6 +183,3 @@ if (_zone) { | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: forwardRef((/** | ||
* @return {?} | ||
*/ | ||
() => MomentTimezonePickerComponent)), | ||
useExisting: forwardRef(() => MomentTimezonePickerComponent), | ||
multi: true | ||
@@ -298,3 +190,3 @@ } | ||
styles: [""] | ||
}] } | ||
},] } | ||
]; | ||
@@ -314,52 +206,3 @@ /** @nocollapse */ | ||
}; | ||
if (false) { | ||
/** | ||
* Setup section. | ||
* @type {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.getUserZone; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.customPlaceholderText; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.customNotFoundText; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.clearable; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.virtualScroll; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.disabled; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MomentTimezonePickerComponent.prototype._config; | ||
/** | ||
* Internals section. | ||
* @type {?} | ||
*/ | ||
MomentTimezonePickerComponent.prototype.timeZones; | ||
/** @type {?} */ | ||
MomentTimezonePickerComponent.prototype.form; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MomentTimezonePickerComponent.prototype.propagateChange; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MomentTimezonePickerComponent.prototype.destroy$; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MomentTimezonePickerComponent.prototype.fb; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: lib/moment-timezone-picker.module.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
class MomentTimezonePickerModule { | ||
@@ -379,12 +222,8 @@ } | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: public_api.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
/* | ||
* Public API Surface of moment-timezone-picker | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: moment-timezone-picker.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
@@ -391,0 +230,0 @@ |
@@ -0,0 +0,0 @@ import { AfterViewInit, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; |
export declare class MomentTimezonePickerModule { | ||
} |
export declare class MomentTimezonePickerService { | ||
constructor(); | ||
} |
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "moment-timezone-picker", | ||
"version": "2.2.0", | ||
"version": "3.0.0", | ||
"description": "A simple angular moment timezone picker", | ||
@@ -19,8 +19,8 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"@angular/common": "~10.2.1", | ||
"@angular/core": "~10.2.1" | ||
"@angular/common": "~11.2.14", | ||
"@angular/core": "~11.2.14" | ||
}, | ||
"dependencies": { | ||
"@ng-select/ng-select": "^5.0.8", | ||
"moment-timezone": "^0.5.31", | ||
"@ng-select/ng-select": "^6.1.0", | ||
"moment-timezone": "^0.5.33", | ||
"tslib": "^2.0.0" | ||
@@ -36,2 +36,2 @@ }, | ||
"sideEffects": false | ||
} | ||
} |
export * from './lib/moment-timezone-picker.service'; | ||
export * from './lib/moment-timezone-picker.component'; | ||
export * from './lib/moment-timezone-picker.module'; |
@@ -15,2 +15,3 @@ # MomentTimezonePicker | ||
| --- | --- | | ||
| 11 | 3.x.x | | ||
| 10 | 2.x.x | | ||
@@ -17,0 +18,0 @@ | 8 | 1.x.x | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
120
82036
18
739
+ Added@angular/common@11.2.14(transitive)
+ Added@angular/core@11.2.14(transitive)
+ Added@angular/forms@11.2.14(transitive)
+ Added@angular/platform-browser@11.2.14(transitive)
+ Added@ng-select/ng-select@6.1.0(transitive)
+ Addedzone.js@0.11.8(transitive)
- Removed@angular/common@10.2.5(transitive)
- Removed@angular/core@10.2.5(transitive)
- Removed@angular/forms@10.2.5(transitive)
- Removed@angular/platform-browser@10.2.5(transitive)
- Removed@ng-select/ng-select@5.1.0(transitive)
- Removedzone.js@0.10.3(transitive)
Updated@ng-select/ng-select@^6.1.0
Updatedmoment-timezone@^0.5.33