@leavittsoftware/web 4.5.0 → 4.6.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/leavitt/api-service/api2-service.d.ts +50 -47
- package/leavitt/api-service/mapi-service.d.ts +50 -47
- package/leavitt/file-explorer/add-folder-modal.d.ts +50 -47
- package/leavitt/file-explorer/file-explorer.d.ts +50 -47
- package/leavitt/file-explorer/file-modal.d.ts +50 -47
- package/leavitt/file-explorer/folder-modal.d.ts +50 -47
- package/leavitt/user-feedback/provide-feedback-dialog.d.ts +50 -47
- package/leavitt/user-feedback/report-a-problem-dialog.d.ts +50 -47
- package/leavitt/user-feedback/user-feedback.d.ts +50 -47
- package/package.json +2 -2
- package/titanium/address-input/address-input.js +6 -1
- package/titanium/address-input/address-input.js.map +1 -1
- package/titanium/address-input/google-address-input.d.ts +1 -0
- package/titanium/address-input/google-address-input.js +7 -1
- package/titanium/address-input/google-address-input.js.map +1 -1
- package/titanium/address-input/manual-address-dialog.d.ts +2 -0
- package/titanium/address-input/manual-address-dialog.js +58 -64
- package/titanium/address-input/manual-address-dialog.js.map +1 -1
- package/titanium/address-input/utils/address-to-string.js +1 -1
- package/titanium/address-input/utils/address-to-string.js.map +1 -1
- package/titanium/address-input/utils/country-abbr-to-titlecase.d.ts +5 -0
- package/titanium/address-input/utils/country-abbr-to-titlecase.js +5 -0
- package/titanium/address-input/utils/country-abbr-to-titlecase.js.map +1 -0
- package/titanium/address-input/utils/place-result-to-address.d.ts +0 -1
- package/titanium/address-input/utils/states-abbr-to-titlecase.d.ts +9 -0
- package/titanium/address-input/utils/states-abbr-to-titlecase.js +117 -0
- package/titanium/address-input/utils/states-abbr-to-titlecase.js.map +1 -0
- package/titanium/date-range-selector/date-range-selector.d.ts +1 -1
- package/titanium/date-range-selector/date-range-selector.js +16 -29
- package/titanium/date-range-selector/date-range-selector.js.map +1 -1
- package/titanium/date-range-selector/types/range-label.js +1 -1
- package/titanium/date-range-selector/types/range-label.js.map +1 -1
- package/titanium/helpers/load-while.d.ts +50 -47
- package/titanium/single-select-base/single-select-base.d.ts +50 -47
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.d.ts +50 -47
|
@@ -32,6 +32,9 @@ let GoogleAddressInput = class GoogleAddressInput extends TitaniumSingleSelectBa
|
|
|
32
32
|
#pathToSelectedText_accessor_storage = 'primaryDisplayText';
|
|
33
33
|
get pathToSelectedText() { return this.#pathToSelectedText_accessor_storage; }
|
|
34
34
|
set pathToSelectedText(value) { this.#pathToSelectedText_accessor_storage = value; }
|
|
35
|
+
#countries_accessor_storage = ['us'];
|
|
36
|
+
get countries() { return this.#countries_accessor_storage; }
|
|
37
|
+
set countries(value) { this.#countries_accessor_storage = value; }
|
|
35
38
|
#doSearchDebouncer = new Debouncer((searchTerm) => this.#doSearch(searchTerm));
|
|
36
39
|
#abortController = new AbortController();
|
|
37
40
|
#placesService;
|
|
@@ -63,7 +66,7 @@ let GoogleAddressInput = class GoogleAddressInput extends TitaniumSingleSelectBa
|
|
|
63
66
|
this.#autoCompleteService.getPlacePredictions({
|
|
64
67
|
input: searchTerm,
|
|
65
68
|
types: ['address'],
|
|
66
|
-
componentRestrictions: { country:
|
|
69
|
+
componentRestrictions: { country: this.countries },
|
|
67
70
|
}, (predictions, status) => {
|
|
68
71
|
if (status != google.maps.places.PlacesServiceStatus.OK || !predictions) {
|
|
69
72
|
console.warn(status);
|
|
@@ -213,6 +216,9 @@ __decorate([
|
|
|
213
216
|
__decorate([
|
|
214
217
|
property({ type: String })
|
|
215
218
|
], GoogleAddressInput.prototype, "pathToSelectedText", null);
|
|
219
|
+
__decorate([
|
|
220
|
+
property({ type: Array })
|
|
221
|
+
], GoogleAddressInput.prototype, "countries", null);
|
|
216
222
|
GoogleAddressInput = __decorate([
|
|
217
223
|
customElement('google-address-input')
|
|
218
224
|
], GoogleAddressInput);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-address-input.js","sourceRoot":"","sources":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,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CAsN9B"}
|
|
@@ -13,10 +13,12 @@ export declare class ManualAddressDialog extends LitElement {
|
|
|
13
13
|
accessor label: string;
|
|
14
14
|
accessor showCounty: boolean;
|
|
15
15
|
accessor showStreet2: boolean;
|
|
16
|
+
accessor countries: string[];
|
|
16
17
|
protected accessor street: string;
|
|
17
18
|
protected accessor street2: string;
|
|
18
19
|
protected accessor city: string;
|
|
19
20
|
protected accessor county: string;
|
|
21
|
+
protected accessor country: string;
|
|
20
22
|
protected accessor state: string;
|
|
21
23
|
protected accessor zip: string;
|
|
22
24
|
protected accessor allInputs: NodeListOf<MdOutlinedTextField | MdOutlinedSelect>;
|
|
@@ -8,6 +8,8 @@ import { css, html, LitElement, nothing } from 'lit';
|
|
|
8
8
|
import { property, customElement, query, queryAll, state } from 'lit/decorators.js';
|
|
9
9
|
import { allowDialogOverflow, preventDialogOverflow } from '../hacks/dialog-overflow-hacks';
|
|
10
10
|
import { reportValidityIfError } from '../hacks/report-validity-if-error';
|
|
11
|
+
import { caStates, usStates } from './utils/states-abbr-to-titlecase';
|
|
12
|
+
import { countries } from './utils/country-abbr-to-titlecase';
|
|
11
13
|
let ManualAddressDialog = class ManualAddressDialog extends LitElement {
|
|
12
14
|
#dialog_accessor_storage;
|
|
13
15
|
get dialog() { return this.#dialog_accessor_storage; }
|
|
@@ -21,6 +23,9 @@ let ManualAddressDialog = class ManualAddressDialog extends LitElement {
|
|
|
21
23
|
#showStreet2_accessor_storage;
|
|
22
24
|
get showStreet2() { return this.#showStreet2_accessor_storage; }
|
|
23
25
|
set showStreet2(value) { this.#showStreet2_accessor_storage = value; }
|
|
26
|
+
#countries_accessor_storage;
|
|
27
|
+
get countries() { return this.#countries_accessor_storage; }
|
|
28
|
+
set countries(value) { this.#countries_accessor_storage = value; }
|
|
24
29
|
#street_accessor_storage = '';
|
|
25
30
|
get street() { return this.#street_accessor_storage; }
|
|
26
31
|
set street(value) { this.#street_accessor_storage = value; }
|
|
@@ -33,6 +38,9 @@ let ManualAddressDialog = class ManualAddressDialog extends LitElement {
|
|
|
33
38
|
#county_accessor_storage = '';
|
|
34
39
|
get county() { return this.#county_accessor_storage; }
|
|
35
40
|
set county(value) { this.#county_accessor_storage = value; }
|
|
41
|
+
#country_accessor_storage = '';
|
|
42
|
+
get country() { return this.#country_accessor_storage; }
|
|
43
|
+
set country(value) { this.#country_accessor_storage = value; }
|
|
36
44
|
#state_accessor_storage = '';
|
|
37
45
|
get state() { return this.#state_accessor_storage; }
|
|
38
46
|
set state(value) { this.#state_accessor_storage = value; }
|
|
@@ -51,6 +59,7 @@ let ManualAddressDialog = class ManualAddressDialog extends LitElement {
|
|
|
51
59
|
this.state = address?.state ?? '';
|
|
52
60
|
this.zip = address?.zip ?? '';
|
|
53
61
|
this.county = address?.county ?? '';
|
|
62
|
+
this.country = address?.country ?? '';
|
|
54
63
|
this.dialog.show();
|
|
55
64
|
return new Promise((res) => {
|
|
56
65
|
this.resolve = res;
|
|
@@ -72,6 +81,7 @@ let ManualAddressDialog = class ManualAddressDialog extends LitElement {
|
|
|
72
81
|
this.state = '';
|
|
73
82
|
this.zip = '';
|
|
74
83
|
this.county = '';
|
|
84
|
+
this.country = '';
|
|
75
85
|
this.allInputs.forEach((input) => input.reset());
|
|
76
86
|
}
|
|
77
87
|
static { this.styles = [
|
|
@@ -147,80 +157,58 @@ let ManualAddressDialog = class ManualAddressDialog extends LitElement {
|
|
|
147
157
|
@request-selection=${(e) => {
|
|
148
158
|
e.stopPropagation();
|
|
149
159
|
this.state = e.target.value;
|
|
160
|
+
if (usStates.some((o) => o.abbreviation.toLowerCase() === this.state.toLowerCase())) {
|
|
161
|
+
this.country = 'US';
|
|
162
|
+
}
|
|
163
|
+
if (caStates.some((o) => o.abbreviation.toLowerCase() === this.state.toLowerCase())) {
|
|
164
|
+
this.country = 'CA';
|
|
165
|
+
}
|
|
150
166
|
}}
|
|
151
167
|
>
|
|
152
|
-
<md-icon slot="
|
|
153
|
-
<md-select-option value="AL">
|
|
154
|
-
<div slot="headline">Alabama</div>
|
|
155
|
-
</md-select-option>
|
|
168
|
+
<md-icon slot="leading-icon">location_on</md-icon>
|
|
156
169
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
<md-select-option value="GU"> <div slot="headline">Guam</div></md-select-option>
|
|
170
|
-
<md-select-option value="HI"> <div slot="headline">Hawaii</div></md-select-option>
|
|
171
|
-
<md-select-option value="ID"> <div slot="headline">Idaho</div></md-select-option>
|
|
172
|
-
<md-select-option value="IL"> <div slot="headline">Illinois</div></md-select-option>
|
|
173
|
-
<md-select-option value="IN"> <div slot="headline">Indiana</div></md-select-option>
|
|
174
|
-
<md-select-option value="IA"> <div slot="headline">Iowa</div></md-select-option>
|
|
175
|
-
<md-select-option value="KS"> <div slot="headline">Kansas</div></md-select-option>
|
|
176
|
-
<md-select-option value="KY"> <div slot="headline">Kentucky</div></md-select-option>
|
|
177
|
-
<md-select-option value="LA"> <div slot="headline">Louisiana</div></md-select-option>
|
|
178
|
-
<md-select-option value="ME"> <div slot="headline">Maine</div></md-select-option>
|
|
179
|
-
<md-select-option value="MH"> <div slot="headline">Marshall Islands</div></md-select-option>
|
|
180
|
-
<md-select-option value="MD"> <div slot="headline">Maryland</div></md-select-option>
|
|
181
|
-
<md-select-option value="MA"> <div slot="headline">Massachusetts</div></md-select-option>
|
|
182
|
-
<md-select-option value="MI"> <div slot="headline">Michigan</div></md-select-option>
|
|
183
|
-
<md-select-option value="MN"> <div slot="headline">Minnesota</div></md-select-option>
|
|
184
|
-
<md-select-option value="MS"> <div slot="headline">Mississippi</div></md-select-option>
|
|
185
|
-
<md-select-option value="MO"> <div slot="headline">Missouri</div></md-select-option>
|
|
186
|
-
<md-select-option value="MT"> <div slot="headline">Montana</div></md-select-option>
|
|
187
|
-
<md-select-option value="NE"> <div slot="headline">Nebraska</div></md-select-option>
|
|
188
|
-
<md-select-option value="NV"> <div slot="headline">Nevada</div></md-select-option>
|
|
189
|
-
<md-select-option value="NH"> <div slot="headline">New Hampshire</div></md-select-option>
|
|
190
|
-
<md-select-option value="NJ"> <div slot="headline">New Jersey</div></md-select-option>
|
|
191
|
-
<md-select-option value="NM"> <div slot="headline">New Mexico</div></md-select-option>
|
|
192
|
-
<md-select-option value="NY"> <div slot="headline">New York</div></md-select-option>
|
|
193
|
-
<md-select-option value="NC"> <div slot="headline">North Carolina</div></md-select-option>
|
|
194
|
-
<md-select-option value="ND"> <div slot="headline">North Dakota</div></md-select-option>
|
|
195
|
-
<md-select-option value="MP"> <div slot="headline">Northern Mariana Islands</div></md-select-option>
|
|
196
|
-
<md-select-option value="OH"> <div slot="headline">Ohio</div></md-select-option>
|
|
197
|
-
<md-select-option value="OK"> <div slot="headline">Oklahoma</div></md-select-option>
|
|
198
|
-
<md-select-option value="OR"> <div slot="headline">Oregon</div></md-select-option>
|
|
199
|
-
<md-select-option value="PW"> <div slot="headline">Palau</div></md-select-option>
|
|
200
|
-
<md-select-option value="PA"> <div slot="headline">Pennsylvania</div></md-select-option>
|
|
201
|
-
<md-select-option value="PR"> <div slot="headline">Puerto Rico</div></md-select-option>
|
|
202
|
-
<md-select-option value="RI"> <div slot="headline">Rhode Island</div></md-select-option>
|
|
203
|
-
<md-select-option value="SC"> <div slot="headline">South Carolina</div></md-select-option>
|
|
204
|
-
<md-select-option value="SD"> <div slot="headline">South Dakota</div></md-select-option>
|
|
205
|
-
<md-select-option value="TN"> <div slot="headline">Tennessee</div></md-select-option>
|
|
206
|
-
<md-select-option value="TX"> <div slot="headline">Texas</div></md-select-option>
|
|
207
|
-
<md-select-option value="UT"> <div slot="headline">Utah</div></md-select-option>
|
|
208
|
-
<md-select-option value="VT"> <div slot="headline">Vermont</div></md-select-option>
|
|
209
|
-
<md-select-option value="VI"> <div slot="headline">Virgin Islands</div></md-select-option>
|
|
210
|
-
<md-select-option value="VA"> <div slot="headline">Virginia</div></md-select-option>
|
|
211
|
-
<md-select-option value="WA"> <div slot="headline">Washington</div></md-select-option>
|
|
212
|
-
<md-select-option value="WV"> <div slot="headline">West Virginia</div></md-select-option>
|
|
213
|
-
<md-select-option value="WI"> <div slot="headline">Wisconsin</div></md-select-option>
|
|
214
|
-
<md-select-option value="WY"> <div slot="headline">Wyoming</div></md-select-option>
|
|
170
|
+
${this.countries.some((c) => c.toLowerCase() === 'us')
|
|
171
|
+
? usStates.map((s) => html `<md-select-option value=${s.abbreviation}>
|
|
172
|
+
<div slot="headline">${s.name}</div>
|
|
173
|
+
<div slot="supporting-text">United States</div>
|
|
174
|
+
</md-select-option>`)
|
|
175
|
+
: nothing}
|
|
176
|
+
${this.countries.some((c) => c.toLowerCase() === 'ca')
|
|
177
|
+
? caStates.map((s) => html `<md-select-option value=${s.abbreviation}>
|
|
178
|
+
<div slot="headline">${s.name}</div>
|
|
179
|
+
<div slot="supporting-text">Canada</div>
|
|
180
|
+
</md-select-option>`)
|
|
181
|
+
: nothing}
|
|
215
182
|
</md-outlined-select>
|
|
183
|
+
|
|
184
|
+
${this.countries.length > 1
|
|
185
|
+
? html `<md-outlined-select
|
|
186
|
+
@opening=${() => preventDialogOverflow(this.dialog)}
|
|
187
|
+
@closing=${() => allowDialogOverflow(this.dialog)}
|
|
188
|
+
@blur=${(e) => reportValidityIfError(e.target)}
|
|
189
|
+
label="Country"
|
|
190
|
+
required
|
|
191
|
+
.value=${this.country || ''}
|
|
192
|
+
@request-selection=${(e) => {
|
|
193
|
+
e.stopPropagation();
|
|
194
|
+
this.country = e.target.value;
|
|
195
|
+
}}
|
|
196
|
+
>
|
|
197
|
+
<md-icon slot="leading-icon">map</md-icon>
|
|
198
|
+
|
|
199
|
+
${countries
|
|
200
|
+
.filter((o) => this.countries.some((c) => c.toLowerCase() === o.abbreviation.toLowerCase()))
|
|
201
|
+
.map((s) => html `<md-select-option value=${s.abbreviation}> <div slot="headline">${s.name}</div></md-select-option>`)}
|
|
202
|
+
</md-outlined-select> `
|
|
203
|
+
: nothing}
|
|
204
|
+
|
|
216
205
|
<md-outlined-text-field
|
|
217
206
|
label="Zip"
|
|
218
|
-
pattern="^\\d{5}$|^\\d{5}-\\d{4}$"
|
|
219
207
|
required
|
|
220
208
|
.value=${this.zip || ''}
|
|
221
209
|
@blur=${(e) => reportValidityIfError(e.target)}
|
|
222
210
|
@change=${(e) => (this.zip = e.target.value)}
|
|
223
|
-
><md-icon slot="leading-icon">
|
|
211
|
+
><md-icon slot="leading-icon">universal_local</md-icon></md-outlined-text-field
|
|
224
212
|
>
|
|
225
213
|
</form>
|
|
226
214
|
|
|
@@ -260,6 +248,9 @@ __decorate([
|
|
|
260
248
|
__decorate([
|
|
261
249
|
property({ type: Boolean, attribute: 'show-street2' })
|
|
262
250
|
], ManualAddressDialog.prototype, "showStreet2", null);
|
|
251
|
+
__decorate([
|
|
252
|
+
property({ type: Array })
|
|
253
|
+
], ManualAddressDialog.prototype, "countries", null);
|
|
263
254
|
__decorate([
|
|
264
255
|
state()
|
|
265
256
|
], ManualAddressDialog.prototype, "street", null);
|
|
@@ -272,6 +263,9 @@ __decorate([
|
|
|
272
263
|
__decorate([
|
|
273
264
|
state()
|
|
274
265
|
], ManualAddressDialog.prototype, "county", null);
|
|
266
|
+
__decorate([
|
|
267
|
+
state()
|
|
268
|
+
], ManualAddressDialog.prototype, "country", null);
|
|
275
269
|
__decorate([
|
|
276
270
|
state()
|
|
277
271
|
], ManualAddressDialog.prototype, "state", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manual-address-dialog.js","sourceRoot":"","sources":["manual-address-dialog.ts"],"names":[],"mappings":";AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,oCAAoC,CAAC;AAC5C,OAAO,6BAA6B,CAAC;AACrC,OAAO,6CAA6C,CAAC;AAErD,OAAO,EAA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ToString(location) {
|
|
|
8
8
|
if (!location.country) {
|
|
9
9
|
return `${location.street}${location.street2 ? ` ${location.street2}` : ''}, ${location.city}, ${location.state}`;
|
|
10
10
|
}
|
|
11
|
-
return `${location.street}${location.street2 ? ` ${location.street2}` : ''}, ${location.city}, ${location.state}, ${location.country === 'US' ? 'USA' : location.country}`;
|
|
11
|
+
return `${location.street}${location.street2 ? ` ${location.street2}` : ''}, ${location.city}, ${location.state}, ${location.country === 'US' ? 'USA' : location.country === 'CA' ? 'Canada' : location.country}`;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=address-to-string.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-to-string.js","sourceRoot":"","sources":["address-to-string.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,eAAe,CAAC,QAAgD;IAC9E,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACrB,OAAO,GAAG,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,KAAK,EAAE,CAAC;IAC/C,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,GAAG,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,KAAK,EAAE,CAAC;IACpH,CAAC;IAED,OAAO,GAAG,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,KAAK,KAC7G,QAAQ,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"address-to-string.js","sourceRoot":"","sources":["address-to-string.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,eAAe,CAAC,QAAgD;IAC9E,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACrB,OAAO,GAAG,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,KAAK,EAAE,CAAC;IAC/C,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,GAAG,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,KAAK,EAAE,CAAC;IACpH,CAAC;IAED,OAAO,GAAG,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,KAAK,KAC7G,QAAQ,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OACtF,EAAE,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country-abbr-to-titlecase.js","sourceRoot":"","sources":["country-abbr-to-titlecase.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAkD;IACtE,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE;IAC7C,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;CACvC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="google.maps" />
|
|
2
1
|
import { AddressInputAddress } from '../types/address-input-address';
|
|
3
2
|
export declare function placeResultToAddress(place: google.maps.places.PlaceResult): Partial<AddressInputAddress> | null;
|
|
4
3
|
//# sourceMappingURL=place-result-to-address.d.ts.map
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export const usStates = [
|
|
2
|
+
{ abbreviation: 'AL', name: 'Alabama' },
|
|
3
|
+
{ abbreviation: 'AK', name: 'Alaska' },
|
|
4
|
+
{ abbreviation: 'AS', name: 'American Samoa' },
|
|
5
|
+
{ abbreviation: 'AZ', name: 'Arizona' },
|
|
6
|
+
{ abbreviation: 'AR', name: 'Arkansas' },
|
|
7
|
+
{ abbreviation: 'CA', name: 'California' },
|
|
8
|
+
{ abbreviation: 'CO', name: 'Colorado' },
|
|
9
|
+
{ abbreviation: 'CT', name: 'Connecticut' },
|
|
10
|
+
{ abbreviation: 'DE', name: 'Delaware' },
|
|
11
|
+
{ abbreviation: 'DC', name: 'District of Columbia' },
|
|
12
|
+
{ abbreviation: 'FM', name: 'Federated States of Micronesia' },
|
|
13
|
+
{ abbreviation: 'FL', name: 'Florida' },
|
|
14
|
+
{ abbreviation: 'GA', name: 'Georgia' },
|
|
15
|
+
{ abbreviation: 'GU', name: 'Guam' },
|
|
16
|
+
{ abbreviation: 'HI', name: 'Hawaii' },
|
|
17
|
+
{ abbreviation: 'ID', name: 'Idaho' },
|
|
18
|
+
{ abbreviation: 'IL', name: 'Illinois' },
|
|
19
|
+
{ abbreviation: 'IN', name: 'Indiana' },
|
|
20
|
+
{ abbreviation: 'IA', name: 'Iowa' },
|
|
21
|
+
{ abbreviation: 'KS', name: 'Kansas' },
|
|
22
|
+
{ abbreviation: 'KY', name: 'Kentucky' },
|
|
23
|
+
{ abbreviation: 'LA', name: 'Louisiana' },
|
|
24
|
+
{ abbreviation: 'ME', name: 'Maine' },
|
|
25
|
+
{ abbreviation: 'MH', name: 'Marshall Islands' },
|
|
26
|
+
{ abbreviation: 'MD', name: 'Maryland' },
|
|
27
|
+
{ abbreviation: 'MA', name: 'Massachusetts' },
|
|
28
|
+
{ abbreviation: 'MI', name: 'Michigan' },
|
|
29
|
+
{ abbreviation: 'MN', name: 'Minnesota' },
|
|
30
|
+
{ abbreviation: 'MS', name: 'Mississippi' },
|
|
31
|
+
{ abbreviation: 'MO', name: 'Missouri' },
|
|
32
|
+
{ abbreviation: 'MT', name: 'Montana' },
|
|
33
|
+
{ abbreviation: 'NE', name: 'Nebraska' },
|
|
34
|
+
{ abbreviation: 'NV', name: 'Nevada' },
|
|
35
|
+
{ abbreviation: 'NH', name: 'New Hampshire' },
|
|
36
|
+
{ abbreviation: 'NJ', name: 'New Jersey' },
|
|
37
|
+
{ abbreviation: 'NM', name: 'New Mexico' },
|
|
38
|
+
{ abbreviation: 'NY', name: 'New York' },
|
|
39
|
+
{ abbreviation: 'NC', name: 'North Carolina' },
|
|
40
|
+
{ abbreviation: 'ND', name: 'North Dakota' },
|
|
41
|
+
{ abbreviation: 'MP', name: 'Northern Mariana Islands' },
|
|
42
|
+
{ abbreviation: 'OH', name: 'Ohio' },
|
|
43
|
+
{ abbreviation: 'OK', name: 'Oklahoma' },
|
|
44
|
+
{ abbreviation: 'OR', name: 'Oregon' },
|
|
45
|
+
{ abbreviation: 'PW', name: 'Palau' },
|
|
46
|
+
{ abbreviation: 'PA', name: 'Pennsylvania' },
|
|
47
|
+
{ abbreviation: 'PR', name: 'Puerto Rico' },
|
|
48
|
+
{ abbreviation: 'RI', name: 'Rhode Island' },
|
|
49
|
+
{ abbreviation: 'SC', name: 'South Carolina' },
|
|
50
|
+
{ abbreviation: 'SD', name: 'South Dakota' },
|
|
51
|
+
{ abbreviation: 'TN', name: 'Tennessee' },
|
|
52
|
+
{ abbreviation: 'TX', name: 'Texas' },
|
|
53
|
+
{ abbreviation: 'UT', name: 'Utah' },
|
|
54
|
+
{ abbreviation: 'VT', name: 'Vermont' },
|
|
55
|
+
{ abbreviation: 'VI', name: 'Virgin Islands' },
|
|
56
|
+
{ abbreviation: 'VA', name: 'Virginia' },
|
|
57
|
+
{ abbreviation: 'WA', name: 'Washington' },
|
|
58
|
+
{ abbreviation: 'WV', name: 'West Virginia' },
|
|
59
|
+
{ abbreviation: 'WI', name: 'Wisconsin' },
|
|
60
|
+
{ abbreviation: 'WY', name: 'Wyoming' },
|
|
61
|
+
];
|
|
62
|
+
//CANADA
|
|
63
|
+
export const caStates = [
|
|
64
|
+
{
|
|
65
|
+
name: 'Alberta',
|
|
66
|
+
abbreviation: 'AB',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'British Columbia',
|
|
70
|
+
abbreviation: 'BC',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'Manitoba',
|
|
74
|
+
abbreviation: 'MB',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'New Brunswick',
|
|
78
|
+
abbreviation: 'NB',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'Newfoundland and Labrador',
|
|
82
|
+
abbreviation: 'NL',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'Northwest Territories',
|
|
86
|
+
abbreviation: 'NT',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'Nova Scotia',
|
|
90
|
+
abbreviation: 'NS',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'Nunavut',
|
|
94
|
+
abbreviation: 'NU',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: 'Ontario',
|
|
98
|
+
abbreviation: 'ON',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'Prince Edward Island',
|
|
102
|
+
abbreviation: 'PE',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'Quebec',
|
|
106
|
+
abbreviation: 'QC',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: 'Saskatchewan',
|
|
110
|
+
abbreviation: 'SK',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'Yukon Territory',
|
|
114
|
+
abbreviation: 'YT',
|
|
115
|
+
},
|
|
116
|
+
];
|
|
117
|
+
//# sourceMappingURL=states-abbr-to-titlecase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"states-abbr-to-titlecase.js","sourceRoot":"","sources":["states-abbr-to-titlecase.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAkD;IACrE,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;IACvC,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;IACtC,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE;IAC9C,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;IACvC,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE;IACxC,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE;IAC1C,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE;IACxC,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE;IAC3C,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE;IACxC,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACpD,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,gCAAgC,EAAE;IAC9D,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;IACvC,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;IACvC,EAAE,YAAY,EAAE,IA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,EAAE;IAC9C,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE;IACxC,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE;IAC1C,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE;IAC7C,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE;IACzC,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;CACxC,CAAC;AAEF,QAAQ;AACR,MAAM,CAAC,MAAM,QAAQ,GAAkD;IACrE;QACE,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,eAAe;QACrB,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,2BAA2B;QACjC,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,uBAAuB;QAC7B,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,sBAAsB;QAC5B,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,YAAY,EAAE,IAAI;KACnB;CACF,CAAC"}
|
|
@@ -47,7 +47,7 @@ export declare class TitaniumDateRangeSelector extends LitElement {
|
|
|
47
47
|
* be used.
|
|
48
48
|
*/
|
|
49
49
|
accessor supportingText: string;
|
|
50
|
-
positioning: 'absolute' | 'fixed' | 'document' | 'popover';
|
|
50
|
+
accessor positioning: 'absolute' | 'fixed' | 'document' | 'popover';
|
|
51
51
|
private accessor menu;
|
|
52
52
|
private accessor list;
|
|
53
53
|
private accessor proposedRange;
|
|
@@ -21,90 +21,77 @@ import { redispatchEvent } from '@material/web/internal/events/redispatch-event'
|
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
let TitaniumDateRangeSelector = class TitaniumDateRangeSelector extends LitElement {
|
|
24
|
-
|
|
25
|
-
super(...arguments);
|
|
26
|
-
this.#range_accessor_storage = 'custom';
|
|
27
|
-
this.#startDate_accessor_storage = '';
|
|
28
|
-
this.#endDate_accessor_storage = '';
|
|
29
|
-
this.#label_accessor_storage = '';
|
|
30
|
-
this.#type_accessor_storage = 'date';
|
|
31
|
-
this.#disabled_accessor_storage = false;
|
|
32
|
-
this.#customDateRanges_accessor_storage = null;
|
|
33
|
-
this.#supportingText_accessor_storage = '';
|
|
34
|
-
this.positioning = 'popover';
|
|
35
|
-
this.#proposedRange_accessor_storage = 'custom';
|
|
36
|
-
this.#proposedStartDate_accessor_storage = '';
|
|
37
|
-
this.#proposedEndDate_accessor_storage = '';
|
|
38
|
-
this.#focused_accessor_storage = false;
|
|
39
|
-
}
|
|
40
|
-
#range_accessor_storage;
|
|
24
|
+
#range_accessor_storage = 'custom';
|
|
41
25
|
/**
|
|
42
26
|
* The selected selected range.
|
|
43
27
|
*/
|
|
44
28
|
get range() { return this.#range_accessor_storage; }
|
|
45
29
|
set range(value) { this.#range_accessor_storage = value; }
|
|
46
|
-
#startDate_accessor_storage;
|
|
30
|
+
#startDate_accessor_storage = '';
|
|
47
31
|
/**
|
|
48
32
|
// * The selected start date.
|
|
49
33
|
// */
|
|
50
34
|
get startDate() { return this.#startDate_accessor_storage; }
|
|
51
35
|
set startDate(value) { this.#startDate_accessor_storage = value; }
|
|
52
|
-
#endDate_accessor_storage;
|
|
36
|
+
#endDate_accessor_storage = '';
|
|
53
37
|
// /**
|
|
54
38
|
// * The selected end date.
|
|
55
39
|
// */
|
|
56
40
|
get endDate() { return this.#endDate_accessor_storage; }
|
|
57
41
|
set endDate(value) { this.#endDate_accessor_storage = value; }
|
|
58
|
-
#label_accessor_storage;
|
|
42
|
+
#label_accessor_storage = '';
|
|
59
43
|
/**
|
|
60
44
|
* Sets floating label value.
|
|
61
45
|
*/
|
|
62
46
|
get label() { return this.#label_accessor_storage; }
|
|
63
47
|
set label(value) { this.#label_accessor_storage = value; }
|
|
64
|
-
#type_accessor_storage;
|
|
48
|
+
#type_accessor_storage = 'date';
|
|
65
49
|
/**
|
|
66
50
|
* Type of date inputs
|
|
67
51
|
*/
|
|
68
52
|
get type() { return this.#type_accessor_storage; }
|
|
69
53
|
set type(value) { this.#type_accessor_storage = value; }
|
|
70
|
-
#disabled_accessor_storage;
|
|
54
|
+
#disabled_accessor_storage = false;
|
|
71
55
|
/**
|
|
72
56
|
* Whether or not the input should be disabled
|
|
73
57
|
*/
|
|
74
58
|
get disabled() { return this.#disabled_accessor_storage; }
|
|
75
59
|
set disabled(value) { this.#disabled_accessor_storage = value; }
|
|
76
|
-
#customDateRanges_accessor_storage;
|
|
60
|
+
#customDateRanges_accessor_storage = null;
|
|
77
61
|
/**
|
|
78
62
|
* Override default ranges with custom options. Needs to contain, at least, 'allTime'.
|
|
79
63
|
*/
|
|
80
64
|
get customDateRanges() { return this.#customDateRanges_accessor_storage; }
|
|
81
65
|
set customDateRanges(value) { this.#customDateRanges_accessor_storage = value; }
|
|
82
|
-
#supportingText_accessor_storage;
|
|
66
|
+
#supportingText_accessor_storage = '';
|
|
83
67
|
/**
|
|
84
68
|
* Conveys additional information below the text field, such as how it should
|
|
85
69
|
* be used.
|
|
86
70
|
*/
|
|
87
71
|
get supportingText() { return this.#supportingText_accessor_storage; }
|
|
88
72
|
set supportingText(value) { this.#supportingText_accessor_storage = value; }
|
|
73
|
+
#positioning_accessor_storage = 'popover';
|
|
74
|
+
get positioning() { return this.#positioning_accessor_storage; }
|
|
75
|
+
set positioning(value) { this.#positioning_accessor_storage = value; }
|
|
89
76
|
#menu_accessor_storage;
|
|
90
77
|
get menu() { return this.#menu_accessor_storage; }
|
|
91
78
|
set menu(value) { this.#menu_accessor_storage = value; }
|
|
92
79
|
#list_accessor_storage;
|
|
93
80
|
get list() { return this.#list_accessor_storage; }
|
|
94
81
|
set list(value) { this.#list_accessor_storage = value; }
|
|
95
|
-
#proposedRange_accessor_storage;
|
|
82
|
+
#proposedRange_accessor_storage = 'custom';
|
|
96
83
|
get proposedRange() { return this.#proposedRange_accessor_storage; }
|
|
97
84
|
set proposedRange(value) { this.#proposedRange_accessor_storage = value; }
|
|
98
|
-
#proposedStartDate_accessor_storage;
|
|
85
|
+
#proposedStartDate_accessor_storage = '';
|
|
99
86
|
get proposedStartDate() { return this.#proposedStartDate_accessor_storage; }
|
|
100
87
|
set proposedStartDate(value) { this.#proposedStartDate_accessor_storage = value; }
|
|
101
|
-
#proposedEndDate_accessor_storage;
|
|
88
|
+
#proposedEndDate_accessor_storage = '';
|
|
102
89
|
get proposedEndDate() { return this.#proposedEndDate_accessor_storage; }
|
|
103
90
|
set proposedEndDate(value) { this.#proposedEndDate_accessor_storage = value; }
|
|
104
91
|
#open_accessor_storage;
|
|
105
92
|
get open() { return this.#open_accessor_storage; }
|
|
106
93
|
set open(value) { this.#open_accessor_storage = value; }
|
|
107
|
-
#focused_accessor_storage;
|
|
94
|
+
#focused_accessor_storage = false;
|
|
108
95
|
get focused() { return this.#focused_accessor_storage; }
|
|
109
96
|
set focused(value) { this.#focused_accessor_storage = value; }
|
|
110
97
|
async updated(changedProps) {
|
|
@@ -429,7 +416,7 @@ __decorate([
|
|
|
429
416
|
], TitaniumDateRangeSelector.prototype, "supportingText", null);
|
|
430
417
|
__decorate([
|
|
431
418
|
property()
|
|
432
|
-
], TitaniumDateRangeSelector.prototype, "positioning",
|
|
419
|
+
], TitaniumDateRangeSelector.prototype, "positioning", null);
|
|
433
420
|
__decorate([
|
|
434
421
|
query('md-menu')
|
|
435
422
|
], TitaniumDateRangeSelector.prototype, "menu", null);
|