@dereekb/dbx-form 9.15.0 → 9.15.1
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/esm2020/lib/formly/field/value/text/text.additional.field.mjs +34 -24
- package/esm2020/lib/formly/field/value/text/text.address.field.mjs +55 -46
- package/fesm2015/dereekb-dbx-form.mjs +77 -81
- package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form.mjs +87 -68
- package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
- package/lib/formly/field/value/text/text.additional.field.d.ts +16 -6
- package/lib/formly/field/value/text/text.address.field.d.ts +33 -5
- package/mapbox/package.json +4 -4
- package/package.json +3 -3
|
@@ -4,8 +4,9 @@ import { LabeledFieldConfig, DescriptionFieldConfig } from '../../field';
|
|
|
4
4
|
export declare const PHONE_LABEL_MAX_LENGTH = 100;
|
|
5
5
|
export declare const ADDRESS_COUNTRY_MAX_LENGTH = 80;
|
|
6
6
|
export declare const ADDRESS_CITY_MAX_LENGTH = 80;
|
|
7
|
-
export declare const ADDRESS_STATE_MAX_LENGTH =
|
|
8
|
-
export declare const
|
|
7
|
+
export declare const ADDRESS_STATE_MAX_LENGTH = 30;
|
|
8
|
+
export declare const ADDRESS_STATE_CODE_MAX_LENGTH = 2;
|
|
9
|
+
export declare const ADDRESS_ZIP_MAX_LENGTH = 11;
|
|
9
10
|
export declare const LABEL_STRING_MAX_LENGTH = 100;
|
|
10
11
|
export declare const SEARCH_STRING_MAX_LENGTH = 100;
|
|
11
12
|
export declare function nameField({ key, label, placeholder, required, minLength, maxLength, attributes }?: Partial<TextFieldConfig>): FormlyFieldConfig;
|
|
@@ -13,10 +14,19 @@ export interface EmailFieldConfig extends Partial<LabeledFieldConfig>, Descripti
|
|
|
13
14
|
rows?: number;
|
|
14
15
|
}
|
|
15
16
|
export declare function emailField(config?: EmailFieldConfig): FormlyFieldConfig;
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
export declare function
|
|
19
|
-
export
|
|
17
|
+
export interface CityFieldConfig extends Partial<TextFieldConfig> {
|
|
18
|
+
}
|
|
19
|
+
export declare function cityField(config?: CityFieldConfig): FormlyFieldConfig;
|
|
20
|
+
export interface StateFieldConfig extends Partial<TextFieldConfig> {
|
|
21
|
+
asCode?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function stateField(config?: StateFieldConfig): FormlyFieldConfig;
|
|
24
|
+
export interface CountryFieldConfig extends Partial<TextFieldConfig> {
|
|
25
|
+
}
|
|
26
|
+
export declare function countryField(config?: CountryFieldConfig): FormlyFieldConfig;
|
|
27
|
+
export interface ZipCodeFieldConfig extends Partial<TextFieldConfig> {
|
|
28
|
+
}
|
|
29
|
+
export declare function zipCodeField(config?: ZipCodeFieldConfig): FormlyFieldConfig;
|
|
20
30
|
export declare const DEFAULT_LAT_LNG_TEXT_FIELD_PLACEHOLDER = "12.345,-67.8910";
|
|
21
31
|
export declare const DEFAULT_LAT_LNG_TEXT_FIELD_PATTERN_MESSAGE = "Invalid/unknown coordinates";
|
|
22
32
|
export declare function latLngTextField({ key }?: Partial<TextFieldConfig>): FormlyFieldConfig;
|
|
@@ -1,10 +1,38 @@
|
|
|
1
1
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
+
import { TextFieldConfig } from './text.field';
|
|
3
|
+
import { CityFieldConfig, CountryFieldConfig, StateFieldConfig, ZipCodeFieldConfig } from './text.additional.field';
|
|
2
4
|
import { FieldConfig } from '../../field';
|
|
5
|
+
import { DbxFormSectionConfig } from '../../wrapper/section.wrapper.component';
|
|
3
6
|
export declare const ADDRESS_LINE_MAX_LENGTH = 100;
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
export interface AddressFormlyFieldsConfig {
|
|
8
|
+
line1Field?: CityFieldConfig;
|
|
9
|
+
line2Field?: CityFieldConfig;
|
|
10
|
+
cityField?: CityFieldConfig;
|
|
11
|
+
stateField?: StateFieldConfig;
|
|
12
|
+
zipCodeField?: ZipCodeFieldConfig;
|
|
13
|
+
countryField?: CountryFieldConfig;
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not to include the second address line.
|
|
16
|
+
*
|
|
17
|
+
* True by default.
|
|
18
|
+
*/
|
|
19
|
+
includeLine2?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Whether or not to include the country.
|
|
22
|
+
*
|
|
23
|
+
* True by default.
|
|
24
|
+
*/
|
|
25
|
+
includeCountry?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface AddressLineFieldConfig extends Partial<TextFieldConfig> {
|
|
28
|
+
line?: 0 | 1 | 2;
|
|
29
|
+
}
|
|
30
|
+
export declare function addressLineField(config?: AddressLineFieldConfig): FormlyFieldConfig;
|
|
31
|
+
export declare function addressFormlyFields(config?: AddressFormlyFieldsConfig): FormlyFieldConfig[];
|
|
32
|
+
export interface AddressFieldConfig extends FieldConfig, DbxFormSectionConfig, AddressFormlyFieldsConfig {
|
|
33
|
+
}
|
|
34
|
+
export declare function addressField(config?: Partial<AddressFieldConfig>): FormlyFieldConfig;
|
|
35
|
+
export interface AddressListFieldConfig extends FieldConfig, AddressFormlyFieldsConfig {
|
|
8
36
|
maxAddresses?: number;
|
|
9
37
|
}
|
|
10
|
-
export declare function addressListField(
|
|
38
|
+
export declare function addressListField(config?: Partial<AddressListFieldConfig>): FormlyFieldConfig;
|
package/mapbox/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-form/mapbox",
|
|
3
|
-
"version": "9.15.
|
|
3
|
+
"version": "9.15.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.1.0",
|
|
6
6
|
"@angular/core": "^14.1.0",
|
|
7
7
|
"@angular/forms": "^14.0.0",
|
|
8
|
-
"@dereekb/dbx-web": "9.15.
|
|
8
|
+
"@dereekb/dbx-web": "9.15.1",
|
|
9
9
|
"@ngx-formly/core": "6.0.0-rc.2",
|
|
10
10
|
"@ngx-formly/material": "6.0.0-rc.2",
|
|
11
11
|
"@ng-web-apis/geolocation": "^2.0.0",
|
|
12
12
|
"mapbox-gl": "^2.9.2",
|
|
13
|
-
"@dereekb/dbx-web/mapbox": "9.15.
|
|
14
|
-
"@dereekb/dbx-form": "9.15.
|
|
13
|
+
"@dereekb/dbx-web/mapbox": "9.15.1",
|
|
14
|
+
"@dereekb/dbx-form": "9.15.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"tslib": "^2.3.0"
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-form",
|
|
3
|
-
"version": "9.15.
|
|
3
|
+
"version": "9.15.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.0.0",
|
|
6
6
|
"@angular/core": "^14.0.0",
|
|
7
7
|
"lodash.clonedeep": "^4.5.0",
|
|
8
|
-
"@dereekb/dbx-core": "9.15.
|
|
8
|
+
"@dereekb/dbx-core": "9.15.1",
|
|
9
9
|
"@angular/material": "^14.0.0",
|
|
10
|
-
"@dereekb/dbx-web": "9.15.
|
|
10
|
+
"@dereekb/dbx-web": "9.15.1",
|
|
11
11
|
"@angular/forms": "^14.0.0",
|
|
12
12
|
"@ngx-formly/core": "6.0.0-rc.2",
|
|
13
13
|
"@ngx-formly/material": "6.0.0-rc.2",
|