novo-elements 7.9.0 → 7.10.0-next.2
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/src/elements/form/ControlTemplates.mjs +351 -8
- package/esm2020/src/elements/form/FieldInteractionApi.mjs +16 -1
- package/esm2020/src/elements/form/Form.module.mjs +5 -1
- package/esm2020/src/elements/form/NovoFormControl.mjs +1 -1
- package/esm2020/src/elements/form/controls/BaseControl.mjs +10 -1
- package/esm2020/src/elements/popover/PopOver.mjs +12 -5
- package/esm2020/src/elements/popover/PopOver.module.mjs +9 -3
- package/esm2020/src/elements/popover/PopOverContent.mjs +10 -5
- package/fesm2015/novo-elements.mjs +783 -398
- package/fesm2015/novo-elements.mjs.map +1 -1
- package/fesm2020/novo-elements.mjs +783 -398
- package/fesm2020/novo-elements.mjs.map +1 -1
- package/package.json +1 -1
- package/src/elements/form/FieldInteractionApi.d.ts +11 -0
- package/src/elements/form/Form.module.d.ts +13 -12
- package/src/elements/form/NovoFormControl.d.ts +10 -0
- package/src/elements/form/controls/BaseControl.d.ts +9 -0
- package/src/elements/popover/PopOver.d.ts +2 -1
- package/src/elements/popover/PopOver.module.d.ts +2 -1
- package/src/elements/popover/PopOverContent.d.ts +2 -1
package/package.json
CHANGED
|
@@ -103,6 +103,17 @@ export declare class FieldInteractionApi {
|
|
|
103
103
|
displayTip(key: string, tip: string, icon?: string, allowDismiss?: boolean, sanitize?: boolean, otherForm?: NovoFormGroup): void;
|
|
104
104
|
clearTip(key: string, otherForm?: NovoFormGroup): void;
|
|
105
105
|
setTooltip(key: string, tooltip: string, otherForm?: NovoFormGroup): void;
|
|
106
|
+
setPopOver(key: string, popover: {
|
|
107
|
+
title?: string;
|
|
108
|
+
content?: string;
|
|
109
|
+
htmlContent?: string;
|
|
110
|
+
placement?: 'left' | 'right' | 'top' | 'bottom';
|
|
111
|
+
onHover?: boolean;
|
|
112
|
+
always?: boolean;
|
|
113
|
+
disabled?: boolean;
|
|
114
|
+
animation?: boolean;
|
|
115
|
+
dismissTimeout?: number;
|
|
116
|
+
}, otherForm?: NovoFormGroup): void;
|
|
106
117
|
confirmChanges(key: string, message?: string): Promise<boolean>;
|
|
107
118
|
promptUser(key: string, changes: string[]): Promise<boolean>;
|
|
108
119
|
setProperty(key: string, prop: string, value: any, otherForm?: NovoFormGroup): void;
|
|
@@ -21,19 +21,20 @@ import * as i19 from "./extras/FormExtras.module";
|
|
|
21
21
|
import * as i20 from "../quick-note/QuickNote.module";
|
|
22
22
|
import * as i21 from "../header/Header.module";
|
|
23
23
|
import * as i22 from "../tooltip/Tooltip.module";
|
|
24
|
-
import * as i23 from "../
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "
|
|
27
|
-
import * as i26 from "
|
|
28
|
-
import * as i27 from "../
|
|
29
|
-
import * as i28 from "../
|
|
30
|
-
import * as i29 from "../
|
|
31
|
-
import * as i30 from "../
|
|
32
|
-
import * as i31 from "../
|
|
33
|
-
import * as i32 from "../
|
|
34
|
-
import * as i33 from "../
|
|
24
|
+
import * as i23 from "../popover/PopOver.module";
|
|
25
|
+
import * as i24 from "../dragula/Dragula.module";
|
|
26
|
+
import * as i25 from "angular-imask";
|
|
27
|
+
import * as i26 from "angular2-text-mask";
|
|
28
|
+
import * as i27 from "../tip-well/TipWell.module";
|
|
29
|
+
import * as i28 from "../modal/modal.module";
|
|
30
|
+
import * as i29 from "../button/Button.module";
|
|
31
|
+
import * as i30 from "../ace-editor/AceEditor.module";
|
|
32
|
+
import * as i31 from "../common/common.module";
|
|
33
|
+
import * as i32 from "../checkbox/Checkbox.module";
|
|
34
|
+
import * as i33 from "../icon/Icon.module";
|
|
35
|
+
import * as i34 from "../switch/Switch.module";
|
|
35
36
|
export declare class NovoFormModule {
|
|
36
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoFormModule, never>;
|
|
37
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NovoFormModule, [typeof i1.NovoAutoSize, typeof i1.NovoControlElement, typeof i2.NovoDynamicFormElement, typeof i3.NovoFormElement, typeof i2.NovoFieldsetElement, typeof i2.NovoFieldsetHeaderElement, typeof i4.ControlConfirmModal, typeof i4.ControlPromptModal, typeof i5.NovoControlGroup, typeof i6.NovoControlTemplates], [typeof i7.CommonModule, typeof i8.OverlayModule, typeof i9.ReactiveFormsModule, typeof i10.NovoRadioModule, typeof i11.NovoTilesModule, typeof i12.NovoSelectModule, typeof i13.NovoPickerModule, typeof i14.NovoChipsModule, typeof i15.NovoDatePickerModule, typeof i16.NovoTimePickerModule, typeof i17.NovoDateTimePickerModule, typeof i18.NovoNovoCKEditorModule, typeof i19.NovoFormExtrasModule, typeof i20.NovoQuickNoteModule, typeof i17.NovoDateTimePickerModule, typeof i21.NovoHeaderModule, typeof i22.NovoTooltipModule, typeof i23.
|
|
38
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NovoFormModule, [typeof i1.NovoAutoSize, typeof i1.NovoControlElement, typeof i2.NovoDynamicFormElement, typeof i3.NovoFormElement, typeof i2.NovoFieldsetElement, typeof i2.NovoFieldsetHeaderElement, typeof i4.ControlConfirmModal, typeof i4.ControlPromptModal, typeof i5.NovoControlGroup, typeof i6.NovoControlTemplates], [typeof i7.CommonModule, typeof i8.OverlayModule, typeof i9.ReactiveFormsModule, typeof i10.NovoRadioModule, typeof i11.NovoTilesModule, typeof i12.NovoSelectModule, typeof i13.NovoPickerModule, typeof i14.NovoChipsModule, typeof i15.NovoDatePickerModule, typeof i16.NovoTimePickerModule, typeof i17.NovoDateTimePickerModule, typeof i18.NovoNovoCKEditorModule, typeof i19.NovoFormExtrasModule, typeof i20.NovoQuickNoteModule, typeof i17.NovoDateTimePickerModule, typeof i21.NovoHeaderModule, typeof i22.NovoTooltipModule, typeof i23.NovoPopOverModule, typeof i24.NovoDragulaModule, typeof i25.IMaskDirectiveModule, typeof i26.TextMaskModule, typeof i27.NovoTipWellModule, typeof i28.NovoModalModule, typeof i29.NovoButtonModule, typeof i30.NovoAceEditorModule, typeof i31.NovoCommonModule, typeof i32.NovoCheckboxModule, typeof i33.NovoIconModule, typeof i10.NovoRadioModule, typeof i34.NovoSwitchModule], [typeof i1.NovoAutoSize, typeof i2.NovoDynamicFormElement, typeof i1.NovoControlElement, typeof i3.NovoFormElement, typeof i2.NovoFieldsetHeaderElement, typeof i5.NovoControlGroup, typeof i6.NovoControlTemplates]>;
|
|
38
39
|
static ɵinj: i0.ɵɵInjectorDeclaration<NovoFormModule>;
|
|
39
40
|
}
|
|
@@ -15,6 +15,16 @@ export declare class NovoFormControl extends FormControl {
|
|
|
15
15
|
tooltipPosition: string;
|
|
16
16
|
tooltipSize?: string;
|
|
17
17
|
tooltipPreline?: boolean;
|
|
18
|
+
tooltipIsHTML?: boolean;
|
|
19
|
+
popoverContent?: string;
|
|
20
|
+
popoverHtmlContent?: string;
|
|
21
|
+
popoverTitle?: string;
|
|
22
|
+
popoverPlacement?: 'left' | 'right' | 'top' | 'bottom';
|
|
23
|
+
popoverOnHover?: boolean;
|
|
24
|
+
popoverAlways?: boolean;
|
|
25
|
+
popoverDisabled?: boolean;
|
|
26
|
+
popoverAnimation?: boolean;
|
|
27
|
+
popoverDismissTimeout?: number;
|
|
18
28
|
removeTooltipArrow?: boolean;
|
|
19
29
|
tooltipAutoPosition?: boolean;
|
|
20
30
|
initialValue: any;
|
|
@@ -55,6 +55,15 @@ declare class ControlConfig {
|
|
|
55
55
|
optionsType: string;
|
|
56
56
|
parentScrollSelector: string;
|
|
57
57
|
placeholder: string;
|
|
58
|
+
popoverAlways?: boolean;
|
|
59
|
+
popoverAnimation?: boolean;
|
|
60
|
+
popoverContent?: string;
|
|
61
|
+
popoverDisabled?: boolean;
|
|
62
|
+
popoverDismissTimeout?: number;
|
|
63
|
+
popoverHtmlContent?: string;
|
|
64
|
+
popoverOnHover?: boolean;
|
|
65
|
+
popoverPlacement?: 'left' | 'right' | 'top' | 'bottom';
|
|
66
|
+
popoverTitle?: string;
|
|
58
67
|
readOnly: boolean;
|
|
59
68
|
removeTooltipArrow?: boolean;
|
|
60
69
|
required: boolean;
|
|
@@ -9,6 +9,7 @@ export declare class PopOverDirective implements OnChanges {
|
|
|
9
9
|
protected visible: boolean;
|
|
10
10
|
constructor(viewContainerRef: ViewContainerRef, resolver: ComponentFactoryResolver);
|
|
11
11
|
content: string | PopOverContent;
|
|
12
|
+
popoverHtmlContent: string;
|
|
12
13
|
popoverDisabled: boolean;
|
|
13
14
|
popoverAlways: boolean;
|
|
14
15
|
popoverAnimation: boolean;
|
|
@@ -29,5 +30,5 @@ export declare class PopOverDirective implements OnChanges {
|
|
|
29
30
|
hide(): void;
|
|
30
31
|
getElement(): any;
|
|
31
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<PopOverDirective, never>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PopOverDirective, "[popover]", never, { "content": "popover"; "popoverDisabled": "popoverDisabled"; "popoverAlways": "popoverAlways"; "popoverAnimation": "popoverAnimation"; "popoverPlacement": "popoverPlacement"; "popoverTitle": "popoverTitle"; "popoverOnHover": "popoverOnHover"; "popoverDismissTimeout": "popoverDismissTimeout"; }, { "onShown": "onShown"; "onHidden": "onHidden"; }, never>;
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PopOverDirective, "[popover]", never, { "content": "popover"; "popoverHtmlContent": "popoverHtmlContent"; "popoverDisabled": "popoverDisabled"; "popoverAlways": "popoverAlways"; "popoverAnimation": "popoverAnimation"; "popoverPlacement": "popoverPlacement"; "popoverTitle": "popoverTitle"; "popoverOnHover": "popoverOnHover"; "popoverDismissTimeout": "popoverDismissTimeout"; }, { "onShown": "onShown"; "onHidden": "onHidden"; }, never>;
|
|
33
34
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./PopOverContent";
|
|
3
3
|
import * as i2 from "./PopOver";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
4
5
|
export declare class NovoPopOverModule {
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoPopOverModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NovoPopOverModule, [typeof i1.PopOverContent, typeof i2.PopOverDirective],
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NovoPopOverModule, [typeof i1.PopOverContent, typeof i2.PopOverDirective], [typeof i3.CommonModule], [typeof i1.PopOverContent, typeof i2.PopOverDirective]>;
|
|
7
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<NovoPopOverModule>;
|
|
8
9
|
}
|
|
@@ -5,6 +5,7 @@ export declare class PopOverContent implements AfterViewInit {
|
|
|
5
5
|
protected element: ElementRef;
|
|
6
6
|
protected cdr: ChangeDetectorRef;
|
|
7
7
|
content: string;
|
|
8
|
+
htmlContent: string;
|
|
8
9
|
placement: string;
|
|
9
10
|
title: string;
|
|
10
11
|
animation: boolean;
|
|
@@ -44,5 +45,5 @@ export declare class PopOverContent implements AfterViewInit {
|
|
|
44
45
|
protected parentOffsetEl(nativeEl: HTMLElement): any;
|
|
45
46
|
protected getEffectivePlacement(desiredPlacement: string, hostElement: HTMLElement, targetElement: HTMLElement): string;
|
|
46
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<PopOverContent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PopOverContent, "popover-content", never, { "content": "content"; "placement": "placement"; "title": "title"; "animation": "animation"; }, {}, never, ["*"]>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopOverContent, "popover-content", never, { "content": "content"; "htmlContent": "htmlContent"; "placement": "placement"; "title": "title"; "animation": "animation"; }, {}, never, ["*"]>;
|
|
48
49
|
}
|