Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

moment-timezone-picker

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moment-timezone-picker - npm Package Compare versions

Comparing version 5.0.2 to 5.1.0

3

lib/moment-timezone-picker.component.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc