@dereekb/dbx-form 5.0.0 → 5.0.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/_index.scss +4 -5
- package/esm2020/lib/form/action/form.action.directive.mjs +20 -21
- package/esm2020/lib/form/action/form.action.module.mjs +6 -17
- package/esm2020/lib/form/action/transition/form.action.transition.module.mjs +5 -13
- package/esm2020/lib/form/action/transition/form.action.transition.safety.directive.mjs +2 -2
- package/esm2020/lib/form/form.mjs +2 -5
- package/esm2020/lib/form/form.module.mjs +4 -12
- package/esm2020/lib/form/io/form.changes.directive.mjs +4 -2
- package/esm2020/lib/form/io/form.input.directive.mjs +3 -6
- package/esm2020/lib/form/io/form.io.module.mjs +6 -22
- package/esm2020/lib/form/io/form.loading.directive.mjs +1 -1
- package/esm2020/lib/form.module.mjs +4 -12
- package/esm2020/lib/formly/config/index.mjs +1 -1
- package/esm2020/lib/formly/field/checklist/checklist.field.mjs +2 -5
- package/esm2020/lib/formly/field/checklist/checklist.item.field.component.mjs +9 -5
- package/esm2020/lib/formly/field/checklist/checklist.item.field.content.default.component.mjs +1 -1
- package/esm2020/lib/formly/field/checklist/checklist.item.field.mjs +1 -1
- package/esm2020/lib/formly/field/checklist/checklist.item.field.module.mjs +6 -18
- package/esm2020/lib/formly/field/checklist/checklist.item.mjs +1 -1
- package/esm2020/lib/formly/field/component/component.field.component.mjs +1 -1
- package/esm2020/lib/formly/field/component/component.field.mjs +1 -1
- package/esm2020/lib/formly/field/component/component.field.module.mjs +5 -13
- package/esm2020/lib/formly/field/field.mjs +4 -2
- package/esm2020/lib/formly/field/form.field.module.mjs +5 -26
- package/esm2020/lib/formly/field/selection/pickable/index.mjs +1 -1
- package/esm2020/lib/formly/field/selection/pickable/pickable.chip.field.component.mjs +5 -5
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.directive.mjs +39 -39
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.mjs +3 -3
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.module.mjs +5 -15
- package/esm2020/lib/formly/field/selection/pickable/pickable.list.field.component.mjs +16 -11
- package/esm2020/lib/formly/field/selection/pickable/pickable.mjs +1 -1
- package/esm2020/lib/formly/field/selection/searchable/searchable.chip.field.component.mjs +3 -3
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.mjs +15 -13
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.directive.mjs +19 -21
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.mjs +5 -3
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.module.mjs +7 -19
- package/esm2020/lib/formly/field/selection/searchable/searchable.mjs +1 -1
- package/esm2020/lib/formly/field/selection/searchable/searchable.text.field.component.mjs +6 -6
- package/esm2020/lib/formly/field/selection/searchable/text.chip.field.mjs +5 -5
- package/esm2020/lib/formly/field/selection/selection.mjs +1 -1
- package/esm2020/lib/formly/field/selection/selection.module.mjs +5 -14
- package/esm2020/lib/formly/field/texteditor/texteditor.field.component.mjs +4 -2
- package/esm2020/lib/formly/field/texteditor/texteditor.field.mjs +1 -1
- package/esm2020/lib/formly/field/texteditor/texteditor.field.module.mjs +4 -10
- package/esm2020/lib/formly/field/value/array/array.field.component.mjs +30 -24
- package/esm2020/lib/formly/field/value/array/array.field.mjs +3 -3
- package/esm2020/lib/formly/field/value/array/array.field.module.mjs +4 -10
- package/esm2020/lib/formly/field/value/boolean/boolean.field.mjs +1 -1
- package/esm2020/lib/formly/field/value/boolean/boolean.field.module.mjs +1 -1
- package/esm2020/lib/formly/field/value/date/date.field.module.mjs +5 -13
- package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +18 -27
- package/esm2020/lib/formly/field/value/date/datetime.field.mjs +3 -3
- package/esm2020/lib/formly/field/value/enum/enum.field.mjs +2 -2
- package/esm2020/lib/formly/field/value/enum/enum.field.module.mjs +1 -1
- package/esm2020/lib/formly/field/value/enum/enum.mjs +1 -1
- package/esm2020/lib/formly/field/value/hidden.field.mjs +1 -1
- package/esm2020/lib/formly/field/value/phone/phone.field.component.mjs +3 -3
- package/esm2020/lib/formly/field/value/phone/phone.field.mjs +1 -2
- package/esm2020/lib/formly/field/value/phone/phone.field.module.mjs +4 -10
- package/esm2020/lib/formly/field/value/text/text.additional.field.mjs +2 -2
- package/esm2020/lib/formly/field/value/text/text.address.field.mjs +11 -6
- package/esm2020/lib/formly/field/value/text/text.field.mjs +2 -2
- package/esm2020/lib/formly/field/value/text/text.field.module.mjs +4 -10
- package/esm2020/lib/formly/field/value/value.module.mjs +5 -26
- package/esm2020/lib/formly/field/wrapper/autotouch.wrapper.component.mjs +7 -3
- package/esm2020/lib/formly/field/wrapper/expandable.wrapper.component.mjs +15 -15
- package/esm2020/lib/formly/field/wrapper/expandable.wrapper.delegate.mjs +1 -1
- package/esm2020/lib/formly/field/wrapper/flex.wrapper.component.mjs +1 -1
- package/esm2020/lib/formly/field/wrapper/form.wrapper.module.mjs +3 -21
- package/esm2020/lib/formly/field/wrapper/info.wrapper.component.mjs +3 -5
- package/esm2020/lib/formly/field/wrapper/section.wrapper.component.mjs +1 -1
- package/esm2020/lib/formly/field/wrapper/style.wrapper.component.mjs +1 -1
- package/esm2020/lib/formly/field/wrapper/subsection.wrapper.component.mjs +7 -7
- package/esm2020/lib/formly/field/wrapper/toggle.wrapper.component.mjs +16 -16
- package/esm2020/lib/formly/field/wrapper/working.wrapper.component.mjs +1 -1
- package/esm2020/lib/formly/field/wrapper/wrapper.mjs +6 -4
- package/esm2020/lib/formly/formly.context.directive.mjs +1 -1
- package/esm2020/lib/formly/formly.context.mjs +7 -5
- package/esm2020/lib/formly/formly.directive.mjs +1 -1
- package/esm2020/lib/formly/formly.form.component.mjs +4 -4
- package/esm2020/lib/formly/formly.module.mjs +5 -25
- package/esm2020/lib/formly/template/available.mjs +6 -4
- package/esm2020/lib/formly/template/login.mjs +8 -10
- package/esm2020/lib/layout/form.layout.module.mjs +5 -13
- package/esm2020/lib/layout/form.spacer.component.mjs +7 -3
- package/esm2020/lib/validator/available.mjs +1 -1
- package/esm2020/lib/validator/field.mjs +3 -3
- package/esm2020/lib/validator/number.mjs +1 -1
- package/fesm2015/dereekb-dbx-form.mjs +347 -551
- package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form.mjs +347 -551
- package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
- package/lib/form/_form.scss +6 -4
- package/lib/formly/_formly.scss +6 -4
- package/lib/formly/field/checklist/_checklist.scss +6 -10
- package/lib/formly/field/checklist/checklist.item.d.ts +5 -5
- package/lib/formly/field/component/_component.scss +6 -4
- package/lib/formly/field/component/component.field.d.ts +1 -1
- package/lib/formly/field/selection/pickable/_pickable.scss +4 -3
- package/lib/formly/field/selection/pickable/pickable.chip.field.component.d.ts +1 -1
- package/lib/formly/field/selection/pickable/pickable.d.ts +3 -3
- package/lib/formly/field/selection/pickable/pickable.field.directive.d.ts +11 -11
- package/lib/formly/field/selection/pickable/pickable.list.field.component.d.ts +5 -5
- package/lib/formly/field/selection/searchable/_searchable.scss +4 -6
- package/lib/formly/field/selection/searchable/text.chip.field.d.ts +3 -3
- package/lib/formly/field/selection/selection.d.ts +3 -3
- package/lib/formly/field/texteditor/_texteditor.scss +3 -8
- package/lib/formly/field/value/array/_array.scss +2 -6
- package/lib/formly/field/value/array/array.field.d.ts +1 -1
- package/lib/formly/field/value/boolean/_boolean.scss +6 -4
- package/lib/formly/field/value/date/_date.scss +7 -9
- package/lib/formly/field/value/enum/_enum.scss +6 -4
- package/lib/formly/field/value/phone/_phone.scss +2 -4
- package/lib/formly/field/value/text/_text.scss +6 -4
- package/lib/formly/field/value/text/text.additional.field.d.ts +3 -3
- package/lib/formly/field/wrapper/_wrapper.scss +4 -4
- package/lib/formly/template/login.d.ts +1 -1
- package/lib/layout/_layout.scss +6 -4
- package/lib/style/_config.scss +8 -6
- package/lib/style/_core.scss +1 -1
- package/lib/style/_mixin.scss +1 -1
- package/lib/style/_theming.scss +2 -12
- package/lib/style/_variables.scss +1 -1
- package/lib/validator/available.d.ts +1 -1
- package/lib/validator/field.d.ts +2 -2
- package/package.json +3 -3
package/lib/form/_form.scss
CHANGED
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// MARK: Mixin
|
|
7
|
-
@mixin core() {
|
|
6
|
+
@mixin core() {
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
@mixin color($theme-config) {
|
|
9
|
+
@mixin color($theme-config) {
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
@mixin typography($typography-config) {
|
|
12
|
+
@mixin typography($typography-config) {
|
|
13
|
+
}
|
|
12
14
|
|
|
13
15
|
@mixin theme($theme-config) {
|
|
14
16
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-form') {
|
package/lib/formly/_formly.scss
CHANGED
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// MARK: Mixin
|
|
7
|
-
@mixin core() {
|
|
6
|
+
@mixin core() {
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
@mixin color($theme-config) {
|
|
9
|
+
@mixin color($theme-config) {
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
@mixin typography($typography-config) {
|
|
12
|
+
@mixin typography($typography-config) {
|
|
13
|
+
}
|
|
12
14
|
|
|
13
15
|
@mixin theme($theme-config) {
|
|
14
16
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-formly') {
|
|
@@ -5,7 +5,6 @@ $dbx-checklist-item-spacing: 8px;
|
|
|
5
5
|
|
|
6
6
|
// MARK: Mixin
|
|
7
7
|
@mixin core() {
|
|
8
|
-
|
|
9
8
|
.dbx-checklist-item {
|
|
10
9
|
@include theming.elevation(1);
|
|
11
10
|
margin-bottom: 8px;
|
|
@@ -36,28 +35,25 @@ $dbx-checklist-item-spacing: 8px;
|
|
|
36
35
|
padding-left: $dbx-checklist-item-spacing;
|
|
37
36
|
border-left: 1px solid black;
|
|
38
37
|
}
|
|
39
|
-
|
|
40
38
|
}
|
|
41
|
-
|
|
42
39
|
}
|
|
43
40
|
|
|
44
|
-
@mixin color($theme-config) {
|
|
41
|
+
@mixin color($theme-config) {
|
|
42
|
+
}
|
|
45
43
|
|
|
46
44
|
@mixin typography($typography-config) {
|
|
47
|
-
|
|
48
45
|
.dbx-default-checklist-item-field {
|
|
49
|
-
|
|
50
46
|
.item-label {
|
|
51
47
|
font-size: 1.35em;
|
|
52
48
|
line-height: 1.35em;
|
|
53
49
|
}
|
|
54
50
|
|
|
55
|
-
.item-sublabel {
|
|
56
|
-
|
|
57
|
-
.item-description {}
|
|
51
|
+
.item-sublabel {
|
|
52
|
+
}
|
|
58
53
|
|
|
54
|
+
.item-description {
|
|
55
|
+
}
|
|
59
56
|
}
|
|
60
|
-
|
|
61
57
|
}
|
|
62
58
|
|
|
63
59
|
@mixin theme($theme-config) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ClickableAnchor } from
|
|
2
|
-
import { Maybe } from
|
|
3
|
-
import { Observable } from
|
|
1
|
+
import { ClickableAnchor } from '@dereekb/dbx-core';
|
|
2
|
+
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
4
|
export interface ChecklistItemDisplayContent<T = unknown> {
|
|
5
5
|
/**
|
|
6
6
|
* Label to display.
|
|
@@ -11,8 +11,8 @@ export interface ChecklistItemDisplayContent<T = unknown> {
|
|
|
11
11
|
*/
|
|
12
12
|
sublabel?: Maybe<string>;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
* Hint/description to display.
|
|
15
|
+
*/
|
|
16
16
|
description?: Maybe<string>;
|
|
17
17
|
/**
|
|
18
18
|
* Whether or not to display the ripple. Is true by default if the anchor is present.
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// MARK: Mixin
|
|
7
|
-
@mixin core() {
|
|
6
|
+
@mixin core() {
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
@mixin color($theme-config) {
|
|
9
|
+
@mixin color($theme-config) {
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
@mixin typography($typography-config) {
|
|
12
|
+
@mixin typography($typography-config) {
|
|
13
|
+
}
|
|
12
14
|
|
|
13
15
|
@mixin theme($theme-config) {
|
|
14
16
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-component') {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DbxFormComponentFieldConfig, DbxFormComponentFormlyFieldConfig } from
|
|
1
|
+
import { DbxFormComponentFieldConfig, DbxFormComponentFormlyFieldConfig } from './component.field.component';
|
|
2
2
|
export declare type ComponentFieldConfig<T = unknown> = DbxFormComponentFieldConfig<T>;
|
|
3
3
|
export declare function componentField<T = unknown>(config: ComponentFieldConfig<T>): DbxFormComponentFormlyFieldConfig<T>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// MARK: Mixin
|
|
7
6
|
@mixin core() {
|
|
8
7
|
.dbx-pickable-item-field-filter {
|
|
@@ -15,9 +14,11 @@
|
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
16
|
|
|
18
|
-
@mixin color($theme-config) {
|
|
17
|
+
@mixin color($theme-config) {
|
|
18
|
+
}
|
|
19
19
|
|
|
20
|
-
@mixin typography($typography-config) {
|
|
20
|
+
@mixin typography($typography-config) {
|
|
21
|
+
}
|
|
21
22
|
|
|
22
23
|
@mixin theme($theme-config) {
|
|
23
24
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-selection-pickable') {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractDbxPickableItemFieldDirective, PickableItemFieldItem } from
|
|
1
|
+
import { AbstractDbxPickableItemFieldDirective, PickableItemFieldItem } from './pickable.field.directive';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Used for picking pre-set values using chips as the presentation.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Maybe, PrimativeKey } from
|
|
2
|
-
import { Observable } from
|
|
3
|
-
import { SelectionDisplayValue, SelectionValue, SelectionValueHashFn } from
|
|
1
|
+
import { Maybe, PrimativeKey } from '@dereekb/util';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { SelectionDisplayValue, SelectionValue, SelectionValueHashFn } from '../selection';
|
|
4
4
|
export declare type PickableValueFieldValue<T, M = unknown> = SelectionValue<T, M>;
|
|
5
5
|
export declare type PickableValueFieldDisplayValue<T, M = unknown> = SelectionDisplayValue<T, M>;
|
|
6
6
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { DbxInjectionComponentConfig } from
|
|
2
|
-
import { LoadingState, ListLoadingStateContextInstance } from
|
|
3
|
-
import { PrimativeKey, Maybe, ArrayOrValue } from
|
|
4
|
-
import { OnDestroy, OnInit } from
|
|
5
|
-
import { FormControl, AbstractControl } from
|
|
6
|
-
import { MatInput } from
|
|
7
|
-
import { FieldTypeConfig, FormlyFieldConfig } from
|
|
8
|
-
import { FieldType } from
|
|
9
|
-
import { Observable } from
|
|
10
|
-
import { PickableValueFieldDisplayFn, PickableValueFieldDisplayValue, PickableValueFieldFilterFn, PickableValueFieldHashFn, PickableValueFieldLoadValuesFn, PickableValueFieldValue } from
|
|
11
|
-
import { DbxValueListItem } from
|
|
1
|
+
import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
2
|
+
import { LoadingState, ListLoadingStateContextInstance } from '@dereekb/rxjs';
|
|
3
|
+
import { PrimativeKey, Maybe, ArrayOrValue } from '@dereekb/util';
|
|
4
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
5
|
+
import { FormControl, AbstractControl } from '@angular/forms';
|
|
6
|
+
import { MatInput } from '@angular/material/input';
|
|
7
|
+
import { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
8
|
+
import { FieldType } from '@ngx-formly/material';
|
|
9
|
+
import { Observable } from 'rxjs';
|
|
10
|
+
import { PickableValueFieldDisplayFn, PickableValueFieldDisplayValue, PickableValueFieldFilterFn, PickableValueFieldHashFn, PickableValueFieldLoadValuesFn, PickableValueFieldValue } from './pickable';
|
|
11
|
+
import { DbxValueListItem } from '@dereekb/dbx-web';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
/**
|
|
14
14
|
* Wraps the selected state with the items.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DbxInjectionComponentConfig } from
|
|
2
|
-
import { AbstractDbxSelectionListWrapperDirective, AbstractDbxSelectionListViewDirective, AbstractDbxValueListViewItemComponent, DbxListSelectionMode } from
|
|
3
|
-
import { Maybe } from
|
|
4
|
-
import { PickableValueFieldDisplayValue } from
|
|
5
|
-
import { AbstractDbxPickableItemFieldDirective, PickableItemFieldItem } from
|
|
1
|
+
import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
2
|
+
import { AbstractDbxSelectionListWrapperDirective, AbstractDbxSelectionListViewDirective, AbstractDbxValueListViewItemComponent, DbxListSelectionMode } from '@dereekb/dbx-web';
|
|
3
|
+
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { PickableValueFieldDisplayValue } from './pickable';
|
|
5
|
+
import { AbstractDbxPickableItemFieldDirective, PickableItemFieldItem } from './pickable.field.directive';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Used for picking pre-set values using a selection list as the presentation.
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// MARK: Mixin
|
|
7
6
|
@mixin core() {
|
|
8
|
-
|
|
9
7
|
.dbx-searchable-text-field-value {
|
|
10
8
|
width: 100%;
|
|
11
9
|
}
|
|
@@ -20,7 +18,6 @@
|
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
.dbx-searchable-text-field-has-value.dbx-searchable-text-field-show-value {
|
|
23
|
-
|
|
24
21
|
.dbx-searchable-text-field-value {
|
|
25
22
|
margin-bottom: -6px;
|
|
26
23
|
}
|
|
@@ -36,12 +33,13 @@
|
|
|
36
33
|
opacity: unset;
|
|
37
34
|
height: unset;
|
|
38
35
|
}
|
|
39
|
-
|
|
40
36
|
}
|
|
41
37
|
|
|
42
|
-
@mixin color($theme-config) {
|
|
38
|
+
@mixin color($theme-config) {
|
|
39
|
+
}
|
|
43
40
|
|
|
44
|
-
@mixin typography($typography-config) {
|
|
41
|
+
@mixin typography($typography-config) {
|
|
42
|
+
}
|
|
45
43
|
|
|
46
44
|
@mixin theme($theme-config) {
|
|
47
45
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-selection-searchable') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormlyFieldConfig } from
|
|
2
|
-
import { LabeledFieldConfig } from
|
|
3
|
-
import { StringValueFieldsFieldConfig, StringValueFieldsFormlyFieldConfig } from
|
|
1
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
+
import { LabeledFieldConfig } from '../../field';
|
|
3
|
+
import { StringValueFieldsFieldConfig, StringValueFieldsFormlyFieldConfig } from './searchable.field.directive';
|
|
4
4
|
export interface ChipTextFieldConfig extends LabeledFieldConfig, StringValueFieldsFieldConfig {
|
|
5
5
|
}
|
|
6
6
|
export interface ChipTextFieldFormlyConfig extends StringValueFieldsFormlyFieldConfig, FormlyFieldConfig {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PrimativeKey, Maybe } from
|
|
1
|
+
import { PrimativeKey, Maybe } from '@dereekb/util';
|
|
2
2
|
export interface SelectionValue<T, M = unknown> {
|
|
3
3
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
* Value associated with this field.
|
|
5
|
+
*/
|
|
6
6
|
value: T;
|
|
7
7
|
/**
|
|
8
8
|
* Optional metadata on the field.
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
// MARK: Variables
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
// MARK: Mixin
|
|
10
9
|
@mixin core() {
|
|
11
|
-
|
|
12
10
|
.dbx-texteditor-field-compact {
|
|
13
11
|
.dbx-texteditor-field-input {
|
|
14
12
|
min-height: 120px;
|
|
@@ -21,7 +19,6 @@
|
|
|
21
19
|
max-height: 400px;
|
|
22
20
|
overflow: auto;
|
|
23
21
|
}
|
|
24
|
-
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
@mixin color($theme-config) {
|
|
@@ -35,7 +32,6 @@
|
|
|
35
32
|
$text-color: theming.get-color-from-palette($foreground, 'text');
|
|
36
33
|
|
|
37
34
|
.dbx-texteditor-field {
|
|
38
|
-
|
|
39
35
|
.NgxEditor {
|
|
40
36
|
background: transparent;
|
|
41
37
|
color: $text-color;
|
|
@@ -62,7 +58,7 @@
|
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
.NgxEditor__Popup,
|
|
65
|
-
.NgxEditor__Dropdown.NgxEditor__Dropdown--Selected,
|
|
61
|
+
.NgxEditor__Dropdown.NgxEditor__Dropdown--Selected,
|
|
66
62
|
.NgxEditor__Dropdown.NgxEditor__Dropdown--Open,
|
|
67
63
|
.NgxEditor__Dropdown .NgxEditor__Dropdown--DropdownMenu,
|
|
68
64
|
.NgxEditor__Popup--FormGroup input {
|
|
@@ -73,12 +69,11 @@
|
|
|
73
69
|
.NgxEditor__Dropdown.NgxEditor__Dropdown--Selected .NgxEditor__Dropdown--Text {
|
|
74
70
|
color: $text-color;
|
|
75
71
|
}
|
|
76
|
-
|
|
77
72
|
}
|
|
78
|
-
|
|
79
73
|
}
|
|
80
74
|
|
|
81
|
-
@mixin typography($typography-config) {
|
|
75
|
+
@mixin typography($typography-config) {
|
|
76
|
+
}
|
|
82
77
|
|
|
83
78
|
@mixin theme($theme-config) {
|
|
84
79
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-texteditor') {
|
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
// MARK: Variables
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
// MARK: Mixin
|
|
9
8
|
@mixin core() {
|
|
10
|
-
|
|
11
9
|
.example-custom-placeholder {
|
|
12
10
|
background: #ccc;
|
|
13
11
|
border: dotted 3px #999;
|
|
@@ -17,7 +15,6 @@
|
|
|
17
15
|
|
|
18
16
|
.dbx-form-repeat-array {
|
|
19
17
|
.dbx-form-repeat-array-field {
|
|
20
|
-
|
|
21
18
|
@include theming.elevation(1);
|
|
22
19
|
|
|
23
20
|
h4 {
|
|
@@ -39,7 +36,6 @@
|
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
|
-
|
|
43
39
|
}
|
|
44
40
|
|
|
45
41
|
@mixin color($theme-config) {
|
|
@@ -52,10 +48,10 @@
|
|
|
52
48
|
background: $form-repeat-array-field-bg;
|
|
53
49
|
border: 4px solid $form-repeat-array-field-bg;
|
|
54
50
|
}
|
|
55
|
-
|
|
56
51
|
}
|
|
57
52
|
|
|
58
|
-
@mixin typography($typography-config) {
|
|
53
|
+
@mixin typography($typography-config) {
|
|
54
|
+
}
|
|
59
55
|
|
|
60
56
|
@mixin theme($theme-config) {
|
|
61
57
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-value-array') {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
-
import { FieldConfig } from
|
|
2
|
+
import { FieldConfig } from '../../field';
|
|
3
3
|
import { DbxFormRepeatArrayConfig } from './array.field.component';
|
|
4
4
|
export interface RepeatArrayFieldConfig extends DbxFormRepeatArrayConfig, FieldConfig {
|
|
5
5
|
label?: string;
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// MARK: Mixin
|
|
7
|
-
@mixin core() {
|
|
6
|
+
@mixin core() {
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
@mixin color($theme-config) {
|
|
9
|
+
@mixin color($theme-config) {
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
@mixin typography($typography-config) {
|
|
12
|
+
@mixin typography($typography-config) {
|
|
13
|
+
}
|
|
12
14
|
|
|
13
15
|
@mixin theme($theme-config) {
|
|
14
16
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-value-boolean') {
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// MARK: Mixin
|
|
7
6
|
@mixin core() {
|
|
8
|
-
|
|
9
7
|
.dbx-datetime-parent-form-field {
|
|
10
|
-
>formly-wrapper-mat-form-field {
|
|
11
|
-
>mat-form-field.mat-form-field {
|
|
12
|
-
|
|
8
|
+
> formly-wrapper-mat-form-field {
|
|
9
|
+
> mat-form-field.mat-form-field {
|
|
10
|
+
> .mat-form-field-wrapper > .mat-form-field-underline {
|
|
13
11
|
display: none;
|
|
14
12
|
}
|
|
15
13
|
}
|
|
@@ -23,7 +21,6 @@
|
|
|
23
21
|
$dbx-datetime-button-width: 40px;
|
|
24
22
|
|
|
25
23
|
.dbx-datetime-row {
|
|
26
|
-
|
|
27
24
|
.dbx-datetime-row-field {
|
|
28
25
|
width: calc(100% - #{$dbx-datetime-button-width});
|
|
29
26
|
}
|
|
@@ -56,12 +53,13 @@
|
|
|
56
53
|
.dbx-datetime-hint-row {
|
|
57
54
|
// margin-left: 12px;
|
|
58
55
|
}
|
|
59
|
-
|
|
60
56
|
}
|
|
61
57
|
|
|
62
|
-
@mixin color($theme-config) {
|
|
58
|
+
@mixin color($theme-config) {
|
|
59
|
+
}
|
|
63
60
|
|
|
64
|
-
@mixin typography($typography-config) {
|
|
61
|
+
@mixin typography($typography-config) {
|
|
62
|
+
}
|
|
65
63
|
|
|
66
64
|
@mixin theme($theme-config) {
|
|
67
65
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-value-date') {
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// MARK: Mixin
|
|
7
|
-
@mixin core() {
|
|
6
|
+
@mixin core() {
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
@mixin color($theme-config) {
|
|
9
|
+
@mixin color($theme-config) {
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
@mixin typography($typography-config) {
|
|
12
|
+
@mixin typography($typography-config) {
|
|
13
|
+
}
|
|
12
14
|
|
|
13
15
|
@mixin theme($theme-config) {
|
|
14
16
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-value-enum') {
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
// MARK: Variables
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
// MARK: Mixin
|
|
10
9
|
@mixin core() {
|
|
11
|
-
|
|
12
10
|
.dbx-form-phone-field,
|
|
13
11
|
.mat-form-field {
|
|
14
12
|
width: 100%;
|
|
@@ -26,7 +24,6 @@
|
|
|
26
24
|
.dbx-form-phone-field .ngx-mat-tel-input-container input:not(.country-search) {
|
|
27
25
|
padding: 0 6px 0 110px;
|
|
28
26
|
}
|
|
29
|
-
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
@mixin color($theme-config) {
|
|
@@ -41,7 +38,8 @@
|
|
|
41
38
|
}
|
|
42
39
|
}
|
|
43
40
|
|
|
44
|
-
@mixin typography($typography-config) {
|
|
41
|
+
@mixin typography($typography-config) {
|
|
42
|
+
}
|
|
45
43
|
|
|
46
44
|
@mixin theme($theme-config) {
|
|
47
45
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-value-phone') {
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// MARK: Mixin
|
|
7
|
-
@mixin core() {
|
|
6
|
+
@mixin core() {
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
@mixin color($theme-config) {
|
|
9
|
+
@mixin color($theme-config) {
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
@mixin typography($typography-config) {
|
|
12
|
+
@mixin typography($typography-config) {
|
|
13
|
+
}
|
|
12
14
|
|
|
13
15
|
@mixin theme($theme-config) {
|
|
14
16
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-value-text') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormlyFieldConfig } from
|
|
2
|
-
import { TextFieldConfig } from
|
|
3
|
-
import { LabeledFieldConfig, DescriptionFieldConfig } from
|
|
1
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
+
import { TextFieldConfig } from './text.field';
|
|
3
|
+
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;
|
|
@@ -6,7 +6,6 @@ $form-flex-section-group-item-padding: $form-flex-section-group-padding * 2;
|
|
|
6
6
|
|
|
7
7
|
// MARK: Mixin
|
|
8
8
|
@mixin core() {
|
|
9
|
-
|
|
10
9
|
.dbx-form-expand-wrapper-button {
|
|
11
10
|
text-decoration: underline;
|
|
12
11
|
margin-right: 8px;
|
|
@@ -16,12 +15,13 @@ $form-flex-section-group-item-padding: $form-flex-section-group-padding * 2;
|
|
|
16
15
|
.dbx-form-toggle-wrapper-toggle {
|
|
17
16
|
margin-bottom: 6px;
|
|
18
17
|
}
|
|
19
|
-
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
@mixin color($theme-config) {
|
|
20
|
+
@mixin color($theme-config) {
|
|
21
|
+
}
|
|
23
22
|
|
|
24
|
-
@mixin typography($typography-config) {
|
|
23
|
+
@mixin typography($typography-config) {
|
|
24
|
+
}
|
|
25
25
|
|
|
26
26
|
@mixin theme($theme-config) {
|
|
27
27
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-wrapper') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TextFieldConfig } from '../field/value/text/text.field';
|
|
2
2
|
import { EmailFieldConfig } from '../field/value/text/text.additional.field';
|
|
3
|
-
import { FormlyFieldConfig } from
|
|
3
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
4
4
|
import { Maybe } from '@dereekb/util';
|
|
5
5
|
/**
|
|
6
6
|
* Convenience interface for the password parameters configuration for a TextPasswordField.
|
package/lib/layout/_layout.scss
CHANGED
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// MARK: Mixin
|
|
7
|
-
@mixin core() {
|
|
6
|
+
@mixin core() {
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
@mixin color($theme-config) {
|
|
9
|
+
@mixin color($theme-config) {
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
@mixin typography($typography-config) {
|
|
12
|
+
@mixin typography($typography-config) {
|
|
13
|
+
}
|
|
12
14
|
|
|
13
15
|
@mixin theme($theme-config) {
|
|
14
16
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-layout') {
|
package/lib/style/_config.scss
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use 'sass:map';
|
|
2
2
|
@use './variables';
|
|
3
3
|
|
|
4
4
|
// theme
|
|
5
5
|
@function define-dbx-form-theme-config($theme-config, $input-dbx-form-theme-config: null) {
|
|
6
|
-
|
|
7
6
|
@if ($input-dbx-form-theme-config == null) {
|
|
8
7
|
$input-dbx-form-theme-config: ();
|
|
9
8
|
}
|
|
10
|
-
|
|
9
|
+
|
|
11
10
|
$dbx-form-theme-config: ();
|
|
12
11
|
|
|
13
|
-
@return map.merge(
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
@return map.merge(
|
|
13
|
+
$theme-config,
|
|
14
|
+
(
|
|
15
|
+
'dbx-form': $dbx-form-theme-config
|
|
16
|
+
)
|
|
17
|
+
);
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
@function get-dbx-form-theme-config($theme-config) {
|
package/lib/style/_core.scss
CHANGED
package/lib/style/_mixin.scss
CHANGED
package/lib/style/_theming.scss
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
@forward '@angular/material'show define-light-theme,
|
|
2
|
-
define-dark-theme,
|
|
3
|
-
define-palette,
|
|
4
|
-
get-contrast-color-from-palette,
|
|
5
|
-
get-color-from-palette,
|
|
6
|
-
get-color-config,
|
|
7
|
-
get-typography-config,
|
|
8
|
-
get-density-config,
|
|
9
|
-
elevation;
|
|
1
|
+
@forward '@angular/material' show define-light-theme, define-dark-theme, define-palette, get-contrast-color-from-palette, get-color-from-palette, get-color-config, get-typography-config, get-density-config, elevation;
|
|
10
2
|
|
|
11
|
-
@forward 'node_modules/@angular/material/core/theming/theming'
|
|
12
|
-
show private-check-duplicate-theme-styles,
|
|
13
|
-
$theme-ignore-duplication-warnings;
|
|
3
|
+
@forward 'node_modules/@angular/material/core/theming/theming' show private-check-duplicate-theme-styles, $theme-ignore-duplication-warnings;
|
|
14
4
|
|
|
15
5
|
@forward 'node_modules/@angular/material/core/typography/typography-utils';
|
|
16
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use 'sass:map';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { AsyncValidatorFn } from
|
|
2
|
+
import { AsyncValidatorFn } from '@angular/forms';
|
|
3
3
|
export declare const FIELD_VALUE_IS_AVAILABLE_VALIDATION_KEY = "fieldValueIsAvailable";
|
|
4
4
|
export declare const FIELD_VALUE_IS_AVAILABLE_ERROR_VALIDATION_KEY = "fieldValueIsAvailableError";
|
|
5
5
|
export declare type FieldValueIsAvailableValidatorFunction<T> = (value: T) => Observable<boolean>;
|
package/lib/validator/field.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ValidatorFn } from
|
|
2
|
-
import { KeyValueTupleFilter, IsEqualFunction } from
|
|
1
|
+
import { ValidatorFn } from '@angular/forms';
|
|
2
|
+
import { KeyValueTupleFilter, IsEqualFunction } from '@dereekb/util';
|
|
3
3
|
export declare const FIELD_VALUES_ARE_EQUAL_VALIDATION_KEY = "fieldValuesAreEqual";
|
|
4
4
|
export interface FieldValuesAreEqualValidatorConfig<T extends object = object> {
|
|
5
5
|
/**
|