moment-timezone-picker
Advanced tools
Comparing version 5.0.2 to 5.1.0
@@ -30,2 +30,3 @@ import { AfterViewInit, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; | ||
disabled: boolean; | ||
valueTransformFN?: (obj: TZone | null) => any; | ||
set config(conf: SelectConfig); | ||
@@ -70,3 +71,3 @@ private _config; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<MomentTimezonePickerComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<MomentTimezonePickerComponent, "ng-moment-timezone-picker", never, { "getUserZone": "getUserZone"; "customPlaceholderText": "customPlaceholderText"; "customNotFoundText": "customNotFoundText"; "clearable": "clearable"; "virtualScroll": "virtualScroll"; "disabled": "disabled"; "config": "config"; }, {}, never, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<MomentTimezonePickerComponent, "ng-moment-timezone-picker", never, { "getUserZone": "getUserZone"; "customPlaceholderText": "customPlaceholderText"; "customNotFoundText": "customNotFoundText"; "clearable": "clearable"; "virtualScroll": "virtualScroll"; "disabled": "disabled"; "valueTransformFN": "valueTransformFN"; "config": "config"; }, {}, never, never>; | ||
} |
{ | ||
"name": "moment-timezone-picker", | ||
"version": "5.0.2", | ||
"version": "5.1.0", | ||
"description": "A simple angular moment timezone picker", | ||
@@ -24,3 +24,3 @@ "license": "MIT", | ||
"@ng-select/ng-select": "^8.3.0", | ||
"moment-timezone": "^0.5.37", | ||
"moment-timezone": "^0.5.34", | ||
"tslib": "^2.3.0" | ||
@@ -27,0 +27,0 @@ }, |
@@ -83,20 +83,21 @@ # MomentTimezonePicker | ||
#### Inputs | ||
| Input | Type | Default | Required | Description | | ||
| ------------- | ------------- | ------------- | ------------- | ------------- | | ||
|[customPlaceholderText] | `string` | `Choose...` | no | Allows you to localize the placeholder text. | | ||
|[customNotFoundText] | `string` | `No zone found` | no | Allows you to localize not found text | | ||
|[getUserZone] | `boolean` | `false` | no | Allows you to guess user timezone. If `true` also emits value on init. | | ||
|[clearable] | `boolean` | `false` | no | Sets that if select can be clearable. | | ||
|[virtualScroll] | `boolean` | `true` | no | Sets select to use virtual scroll. | | ||
|[disabled] | `boolean` | `false` | no | Disables the ng-select component | | ||
|[config] | `object` | [Object object] | no | See interface `SelectConfig` | | ||
| Input | Type | Default | Required | Description | | ||
|-------------------------|------------|-------------------|----------|------------------------------------------------------------------------| | ||
| [customPlaceholderText] | `string` | `Choose...` | no | Allows you to localize the placeholder text. | | ||
| [customNotFoundText] | `string` | `No zone found` | no | Allows you to localize not found text | | ||
| [getUserZone] | `boolean` | `false` | no | Allows you to guess user timezone. If `true` also emits value on init. | | ||
| [clearable] | `boolean` | `false` | no | Sets that if select can be clearable. | | ||
| [virtualScroll] | `boolean` | `true` | no | Sets select to use virtual scroll. | | ||
| [disabled] | `boolean` | `false` | no | Disables the ng-select component | | ||
| [config] | `object` | `[Object object]` | no | See interface `SelectConfig` | | ||
| [valueTransformFN] | `function` | `undefined` | no | See `valueTransformFN Type` | | ||
#### Object: TZone | ||
| Field | Type | Example | | ||
|-------|------|---------| | ||
| abbr | `string` | `GMT` | | ||
| group | `string` | `Europe` | | ||
| nameValue | `string` | `Europe/London` | | ||
| timeValue | `string` | `+00:00` | | ||
| name | `string` | `Europe/London (+00:00)` | | ||
| Field | Type | Example | | ||
|-----------|----------|--------------------------| | ||
| abbr | `string` | `GMT` | | ||
| group | `string` | `Europe` | | ||
| nameValue | `string` | `Europe/London` | | ||
| timeValue | `string` | `+00:00` | | ||
| name | `string` | `Europe/London (+00:00)` | | ||
@@ -118,6 +119,11 @@ #### Object: SelectConfig | ||
!!!NOTE: only some properties will be configurable | ||
> ❗NOTE: only some properties will be configurable | ||
#### valueTransformFN Type | ||
```typescript | ||
valueTransformFN: (obj: TZone | null) => any; | ||
``` | ||
> ❗Please note that for backward support we need to pass `nameValue`, because this field is the most specific to find timezone. | ||
### Contributor | ||
- [Roman Yanush](https://github.com/Romko775/) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
98881
871
128
Updatedmoment-timezone@^0.5.34