@dereekb/dbx-form 9.24.15 → 9.24.17

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.
@@ -13,6 +13,33 @@ export interface NumberFieldConfig extends LabeledFieldConfig, DescriptionFieldC
13
13
  }
14
14
  export declare function numberFieldTransformParser(config: Partial<FieldConfigParsersRef> & Partial<TransformNumberFunctionConfigRef>): FormlyValueParser<any, any>[] | undefined;
15
15
  export declare function numberField(config: NumberFieldConfig): FormlyFieldConfig;
16
+ export interface NumberSliderFieldConfig extends NumberFieldConfig {
17
+ /**
18
+ * Max value. Required for the slider.
19
+ */
20
+ max: number;
21
+ /**
22
+ * Whether or not to show the thumb label while sliding. Defaults to true.
23
+ */
24
+ thumbLabel?: boolean;
25
+ /**
26
+ * Whether or not to invert the selection line.
27
+ */
28
+ invertSelectionColoring?: boolean;
29
+ /**
30
+ * Tick interval. If not provided defaults to the step value, if provided. If false, the ticks are disabled.
31
+ *
32
+ * The tick interval is the number of "steps" to show between ticks.
33
+ *
34
+ * For example, a tick interval of 5 show a tick every 5 steps. If steps are 10, it will show a tick at every number divisible by 50 (5 * 10).
35
+ */
36
+ tickInterval?: false | number;
37
+ /**
38
+ * Custom display with function for the thumbLabel.
39
+ */
40
+ displayWith?: (value: number) => string;
41
+ }
42
+ export declare function numberSliderField(config: NumberSliderFieldConfig): FormlyFieldConfig;
16
43
  export declare type DollarAmountFieldConfig = Omit<NumberFieldConfig, 'roundToStep' | 'precision'>;
17
44
  export declare function dollarAmountField(config: DollarAmountFieldConfig): FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
18
45
  [additionalProperties: string]: any;
@@ -1,8 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "@ngx-formly/material";
3
- import * as i2 from "../../wrapper/form.wrapper.module";
3
+ import * as i2 from "@ngx-formly/material/slider";
4
+ import * as i3 from "../../wrapper/form.wrapper.module";
4
5
  export declare class DbxFormFormlyNumberFieldModule {
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyNumberFieldModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyNumberFieldModule, never, [typeof i1.FormlyMaterialModule], [typeof i2.DbxFormFormlyWrapperModule]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyNumberFieldModule, never, [typeof i1.FormlyMaterialModule, typeof i2.FormlyMatSliderModule], [typeof i3.DbxFormFormlyWrapperModule]>;
7
8
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyNumberFieldModule>;
8
9
  }
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-form/mapbox",
3
- "version": "9.24.15",
3
+ "version": "9.24.17",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.1.0",
6
6
  "@angular/core": "^14.1.0",
7
7
  "@angular/forms": "^14.2.0",
8
- "@dereekb/dbx-web": "9.24.15",
8
+ "@dereekb/dbx-web": "9.24.17",
9
9
  "@ngx-formly/core": "^6.0.0",
10
10
  "@ngx-formly/material": "^6.0.0",
11
11
  "@ng-web-apis/geolocation": "^2.0.0",
12
12
  "mapbox-gl": "^2.9.2",
13
- "@dereekb/dbx-web/mapbox": "9.24.15",
14
- "@dereekb/dbx-form": "9.24.15"
13
+ "@dereekb/dbx-web/mapbox": "9.24.17",
14
+ "@dereekb/dbx-form": "9.24.17"
15
15
  },
16
16
  "dependencies": {
17
17
  "tslib": "^2.3.0"
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-form",
3
- "version": "9.24.15",
3
+ "version": "9.24.17",
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.24.15",
8
+ "@dereekb/dbx-core": "9.24.17",
9
9
  "@angular/material": "^14.2.0",
10
- "@dereekb/dbx-web": "9.24.15",
10
+ "@dereekb/dbx-web": "9.24.17",
11
11
  "@angular/forms": "^14.2.0",
12
12
  "@ngx-formly/core": "^6.0.0",
13
13
  "@ngx-formly/material": "^6.0.0",
14
14
  "ngx-editor": "^15.0.0",
15
15
  "ngx-mat-intl-tel-input": "^5.0.0",
16
- "@dereekb/model": "9.24.15"
16
+ "@dereekb/model": "9.24.17"
17
17
  },
18
18
  "dependencies": {
19
19
  "tslib": "^2.3.0"