@dereekb/dbx-form 9.18.2 → 9.18.3
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/form.module.mjs +6 -5
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.mjs +4 -3
- package/esm2020/lib/formly/form/form.form.mjs +13 -0
- package/esm2020/lib/formly/form/form.form.module.mjs +21 -0
- package/esm2020/lib/formly/form/index.mjs +4 -0
- package/esm2020/lib/formly/form/search.form.component.mjs +42 -0
- package/esm2020/lib/formly/formly.directive.mjs +2 -1
- package/esm2020/lib/formly/index.mjs +2 -1
- package/fesm2015/dereekb-dbx-form.mjs +209 -146
- package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form.mjs +232 -170
- package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
- package/lib/form.module.d.ts +2 -1
- package/lib/formly/field/selection/pickable/pickable.field.d.ts +1 -0
- package/lib/formly/form/_form.scss +31 -0
- package/lib/formly/form/form.form.d.ts +10 -0
- package/lib/formly/form/form.form.module.d.ts +11 -0
- package/lib/formly/form/index.d.ts +3 -0
- package/lib/formly/form/search.form.component.d.ts +14 -0
- package/lib/formly/formly.directive.d.ts +1 -0
- package/lib/formly/index.d.ts +1 -0
- package/lib/style/_all-core.scss +2 -0
- package/lib/style/_all-theme.scss +2 -0
- package/lib/style/_all-typography.scss +2 -0
- package/mapbox/package.json +4 -4
- package/package.json +4 -4
package/lib/form.module.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./form/form.module";
|
|
3
3
|
import * as i2 from "./formly/formly.module";
|
|
4
4
|
import * as i3 from "./formly/field/form.field.module";
|
|
5
|
+
import * as i4 from "./formly/form/form.form.module";
|
|
5
6
|
export declare class DbxFormExtensionModule {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormExtensionModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormExtensionModule, never, never, [typeof i1.DbxFormModule, typeof i2.DbxFormlyModule, typeof i3.DbxFormFormlyFieldModule]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormExtensionModule, never, never, [typeof i1.DbxFormModule, typeof i2.DbxFormlyModule, typeof i3.DbxFormFormlyFieldModule, typeof i4.DbxFormFormlyFormModule]>;
|
|
8
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormExtensionModule>;
|
|
9
10
|
}
|
|
@@ -7,6 +7,7 @@ import { PickableItemFieldItem, PickableValueFieldsFieldProps } from './pickable
|
|
|
7
7
|
export { PickableItemFieldItem };
|
|
8
8
|
export declare const filterPickableItemFieldValuesByLabelFilterFunction: SearchStringFilterFunction<PickableValueFieldDisplayValue<any>>;
|
|
9
9
|
export declare function filterPickableItemFieldValuesByLabel<T>(filterText: Maybe<string>, values: PickableValueFieldDisplayValue<T>[]): Observable<T[]>;
|
|
10
|
+
export declare const sortPickableItemsByLabelStringFunction: import("@dereekb/util").SortByStringFunction<PickableItemFieldItem<any, unknown>>;
|
|
10
11
|
export declare function sortPickableItemsByLabel<T>(chips: PickableItemFieldItem<T>[]): PickableItemFieldItem<T>[];
|
|
11
12
|
export interface PickableItemFieldConfig<T = unknown, M = unknown> extends LabeledFieldConfig, PickableValueFieldsFieldProps<T, M> {
|
|
12
13
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use '../../style/theming';
|
|
2
|
+
|
|
3
|
+
// MARK: Variables
|
|
4
|
+
|
|
5
|
+
// MARK: Mixin
|
|
6
|
+
@mixin core() {
|
|
7
|
+
.dbx-form-search-form {
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin color($theme-config) {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin typography($typography-config) {
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin theme($theme-config) {
|
|
19
|
+
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-formly-form') {
|
|
20
|
+
$color: theming.get-color-config($theme-config);
|
|
21
|
+
$typography: theming.get-typography-config($theme-config);
|
|
22
|
+
|
|
23
|
+
@if $color !=null {
|
|
24
|
+
@include color($theme-config);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@if $typography !=null {
|
|
28
|
+
@include typography($typography);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
+
export interface DbxFormSearchFormFieldsValue {
|
|
4
|
+
search: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DbxFormSearchFormFieldsConfig {
|
|
7
|
+
label?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function dbxFormSearchFormFields(config: Maybe<DbxFormSearchFormFieldsConfig>): FormlyFieldConfig[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./search.form.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../form/form.module";
|
|
5
|
+
import * as i4 from "../formly.module";
|
|
6
|
+
import * as i5 from "../field/form.field.module";
|
|
7
|
+
export declare class DbxFormFormlyFormModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyFormModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyFormModule, [typeof i1.DbxFormSearchFormComponent], [typeof i2.CommonModule, typeof i3.DbxFormModule, typeof i4.DbxFormlyModule, typeof i5.DbxFormFormlyFieldModule], [typeof i1.DbxFormSearchFormComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyFormModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { AbstractConfigAsyncFormlyFormDirective } from '../formly.directive';
|
|
5
|
+
import { DbxFormSearchFormFieldsConfig, DbxFormSearchFormFieldsValue } from './form.form';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DbxFormSearchFormComponent extends AbstractConfigAsyncFormlyFormDirective<DbxFormSearchFormFieldsValue, DbxFormSearchFormFieldsConfig> implements OnDestroy {
|
|
8
|
+
readonly search: EventEmitter<string>;
|
|
9
|
+
readonly fields$: Observable<FormlyFieldConfig[]>;
|
|
10
|
+
searchChanged(value: DbxFormSearchFormFieldsValue): void;
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSearchFormComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSearchFormComponent, "dbx-form-search-form", never, {}, { "search": "search"; }, never, never, false>;
|
|
14
|
+
}
|
|
@@ -47,6 +47,7 @@ export declare abstract class AbstractAsyncFormlyFormDirective<T> extends Abstra
|
|
|
47
47
|
}
|
|
48
48
|
export declare abstract class AbstractConfigAsyncFormlyFormDirective<T, C> extends AbstractAsyncFormlyFormDirective<T> implements OnInit, OnDestroy {
|
|
49
49
|
private readonly _config;
|
|
50
|
+
readonly currentConfig$: Observable<Maybe<C>>;
|
|
50
51
|
readonly config$: Observable<C>;
|
|
51
52
|
get config(): Maybe<C>;
|
|
52
53
|
set config(config: Maybe<C>);
|
package/lib/formly/index.d.ts
CHANGED
package/lib/style/_all-core.scss
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use '../formly/formly';
|
|
3
3
|
@use '../layout/layout';
|
|
4
4
|
@use '../formly/field/field';
|
|
5
|
+
@use '../formly/form/form' as forms;
|
|
5
6
|
@use '../extension/extension';
|
|
6
7
|
|
|
7
8
|
// Includes all theming config
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
@include form.core();
|
|
10
11
|
@include formly.core();
|
|
11
12
|
@include field.all-field-core();
|
|
13
|
+
@include forms.core();
|
|
12
14
|
@include layout.core();
|
|
13
15
|
@include extension.all-extension-core($theme-config);
|
|
14
16
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use '../formly/formly';
|
|
3
3
|
@use '../layout/layout';
|
|
4
4
|
@use '../formly/field/field';
|
|
5
|
+
@use '../formly/form/form' as forms;
|
|
5
6
|
@use '../extension/extension';
|
|
6
7
|
|
|
7
8
|
// Includes all theming config
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
@include form.theme($theme-config);
|
|
10
11
|
@include formly.theme($theme-config);
|
|
11
12
|
@include field.all-field-theme($theme-config);
|
|
13
|
+
@include forms.theme($theme-config);
|
|
12
14
|
@include layout.theme($theme-config);
|
|
13
15
|
@include extension.all-extension-theme($theme-config);
|
|
14
16
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use '../formly/formly';
|
|
3
3
|
@use '../layout/layout';
|
|
4
4
|
@use '../formly/field/field';
|
|
5
|
+
@use '../formly/form/form' as forms;
|
|
5
6
|
@use '../extension/extension';
|
|
6
7
|
|
|
7
8
|
// Includes all of the typographic styles.
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
@include form.typography($typography-config);
|
|
10
11
|
@include formly.typography($typography-config);
|
|
11
12
|
@include field.all-field-typography($typography-config);
|
|
13
|
+
@include forms.typography($typography-config);
|
|
12
14
|
@include layout.typography($typography-config);
|
|
13
15
|
@include extension.all-extension-typography($typography-config, $theme-config);
|
|
14
16
|
}
|
package/mapbox/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-form/mapbox",
|
|
3
|
-
"version": "9.18.
|
|
3
|
+
"version": "9.18.3",
|
|
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.18.
|
|
8
|
+
"@dereekb/dbx-web": "9.18.3",
|
|
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.18.
|
|
14
|
-
"@dereekb/dbx-form": "9.18.
|
|
13
|
+
"@dereekb/dbx-web/mapbox": "9.18.3",
|
|
14
|
+
"@dereekb/dbx-form": "9.18.3"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"tslib": "^2.3.0"
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-form",
|
|
3
|
-
"version": "9.18.
|
|
3
|
+
"version": "9.18.3",
|
|
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.18.
|
|
8
|
+
"@dereekb/dbx-core": "9.18.3",
|
|
9
9
|
"@angular/material": "^14.2.0",
|
|
10
|
-
"@dereekb/dbx-web": "9.18.
|
|
10
|
+
"@dereekb/dbx-web": "9.18.3",
|
|
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
|
"change-case": "^4.1.2",
|
|
15
15
|
"ngx-editor": "^15.0.0",
|
|
16
16
|
"ngx-mat-intl-tel-input": "^5.0.0",
|
|
17
|
-
"@dereekb/model": "9.18.
|
|
17
|
+
"@dereekb/model": "9.18.3"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"tslib": "^2.3.0"
|