novo-elements 7.3.0 → 7.4.0-next.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/elements/button/styles/button-dialogue.scss +3 -0
- package/elements/button/styles/button-icon.scss +3 -0
- package/elements/button/styles/button.scss +4 -2
- package/elements/chips/ChipList.scss +12 -0
- package/elements/chips/Chips.scss +1 -1
- package/elements/common/typography/text.mixins.scss +7 -2
- package/elements/expansion/_expansion-theme.scss +2 -2
- package/elements/expansion/expansion-panel-header.scss +11 -8
- package/elements/expansion/expansion-panel.scss +1 -1
- package/elements/field/field.scss +10 -1
- package/elements/icon/Icon.scss +16 -0
- package/elements/query-builder/condition-builder/condition-builder.component.scss +66 -0
- package/elements/query-builder/condition-group/condition-group.component.scss +12 -0
- package/elements/query-builder/criteria-builder/criteria-builder.component.scss +9 -0
- package/elements/search/SearchBox.scss +24 -2
- package/elements/select/Select.scss +1 -1
- package/elements/select-search/select-search.component.scss +13 -68
- package/esm2020/src/elements/breadcrumbs/breadcrumb-item/BreadcrumbItem.mjs +2 -2
- package/esm2020/src/elements/button/Button.mjs +2 -2
- package/esm2020/src/elements/card/Card.mjs +1 -1
- package/esm2020/src/elements/chips/Chip.mjs +2 -2
- package/esm2020/src/elements/chips/ChipList.mjs +8 -4
- package/esm2020/src/elements/chips/Chips.mjs +1 -1
- package/esm2020/src/elements/color-picker/color-input.component.mjs +1 -1
- package/esm2020/src/elements/common/common.module.mjs +13 -3
- package/esm2020/src/elements/common/directives/switch-cases.directive.mjs +43 -0
- package/esm2020/src/elements/common/directives/visible.directive.mjs +34 -0
- package/esm2020/src/elements/common/index.mjs +3 -1
- package/esm2020/src/elements/common/option/optgroup.component.mjs +2 -2
- package/esm2020/src/elements/common/option/option.component.mjs +2 -2
- package/esm2020/src/elements/common/overlay/Overlay.mjs +19 -9
- package/esm2020/src/elements/common/typography/base/base-text.component.mjs +29 -2
- package/esm2020/src/elements/common/typography/caption/caption.component.mjs +2 -2
- package/esm2020/src/elements/common/typography/label/label.component.mjs +2 -2
- package/esm2020/src/elements/common/typography/link/link.component.mjs +2 -2
- package/esm2020/src/elements/common/typography/text/text.component.mjs +2 -2
- package/esm2020/src/elements/common/typography/title/title.component.mjs +2 -2
- package/esm2020/src/elements/data-table/cell-headers/data-table-header-cell.component.mjs +1 -1
- package/esm2020/src/elements/data-table/data-table-clear-button.component.mjs +26 -12
- package/esm2020/src/elements/data-table/data-table.component.mjs +17 -21
- package/esm2020/src/elements/data-table/data-table.source.mjs +2 -2
- package/esm2020/src/elements/data-table/interfaces.mjs +1 -1
- package/esm2020/src/elements/data-table/services/remote-data-table.service.mjs +1 -1
- package/esm2020/src/elements/data-table/services/static-data-table.service.mjs +2 -2
- package/esm2020/src/elements/data-table/sort-filter/sort-button.component.mjs +2 -2
- package/esm2020/src/elements/data-table/state/data-table-state.service.mjs +32 -3
- package/esm2020/src/elements/date-picker/DatePicker.mjs +18 -6
- package/esm2020/src/elements/date-picker/DatePickerInput.mjs +1 -1
- package/esm2020/src/elements/date-picker/DateRangeInput.mjs +1 -1
- package/esm2020/src/elements/date-picker/MultiDateInput.mjs +1 -1
- package/esm2020/src/elements/date-picker/date-picker.types.mjs +1 -1
- package/esm2020/src/elements/dropdown/Dropdown.mjs +1 -1
- package/esm2020/src/elements/expansion/expansion-animations.mjs +2 -2
- package/esm2020/src/elements/expansion/expansion-panel-header.mjs +3 -3
- package/esm2020/src/elements/expansion/expansion-panel.mjs +3 -3
- package/esm2020/src/elements/field/autocomplete/autocomplete.component.mjs +2 -5
- package/esm2020/src/elements/field/field.mjs +14 -4
- package/esm2020/src/elements/field/field.module.mjs +6 -1
- package/esm2020/src/elements/field/formats/base-format.mjs +7 -1
- package/esm2020/src/elements/field/formats/date-format.mjs +9 -18
- package/esm2020/src/elements/field/formats/date-range-format.mjs +142 -0
- package/esm2020/src/elements/field/formats/time-format.mjs +7 -10
- package/esm2020/src/elements/field/hint/hint.mjs +2 -2
- package/esm2020/src/elements/field/index.mjs +2 -1
- package/esm2020/src/elements/field/toggle/picker-toggle.component.mjs +29 -8
- package/esm2020/src/elements/form/DynamicForm.mjs +1 -1
- package/esm2020/src/elements/header/Header.mjs +7 -5
- package/esm2020/src/elements/icon/Icon.mjs +10 -4
- package/esm2020/src/elements/index.mjs +2 -1
- package/esm2020/src/elements/list/List.mjs +1 -1
- package/esm2020/src/elements/menu/menu-content.component.mjs +2 -2
- package/esm2020/src/elements/modal/modal-container.component.mjs +9 -4
- package/esm2020/src/elements/non-ideal-state/NonIdealState.mjs +6 -2
- package/esm2020/src/elements/picker/Picker.mjs +1 -1
- package/esm2020/src/elements/picker/Picker.module.mjs +5 -4
- package/esm2020/src/elements/picker/extras/base-picker-results/BasePickerResults.mjs +2 -2
- package/esm2020/src/elements/picker/extras/entity-picker-results/EntityPickerResults.mjs +34 -31
- package/esm2020/src/elements/picker/extras/picker-results/PickerResults.mjs +5 -4
- package/esm2020/src/elements/picker/extras/skills-picker-results/SkillsSpecialtyPickerResults.mjs +7 -6
- package/esm2020/src/elements/query-builder/condition-builder/condition-builder.component.mjs +195 -0
- package/esm2020/src/elements/query-builder/condition-definitions/abstract-condition.definition.mjs +51 -0
- package/esm2020/src/elements/query-builder/condition-definitions/address-condition.definition.mjs +55 -0
- package/esm2020/src/elements/query-builder/condition-definitions/boolean-condition.definition.mjs +59 -0
- package/esm2020/src/elements/query-builder/condition-definitions/date-condition.definition.mjs +119 -0
- package/esm2020/src/elements/query-builder/condition-definitions/id-condition.definition.mjs +54 -0
- package/esm2020/src/elements/query-builder/condition-definitions/number-condition.definition.mjs +57 -0
- package/esm2020/src/elements/query-builder/condition-definitions/picker-condition.definition.mjs +66 -0
- package/esm2020/src/elements/query-builder/condition-definitions/string-condition.definition.mjs +127 -0
- package/esm2020/src/elements/query-builder/condition-group/condition-group.component.mjs +97 -0
- package/esm2020/src/elements/query-builder/criteria-builder/criteria-builder.component.mjs +158 -0
- package/esm2020/src/elements/query-builder/index.mjs +15 -0
- package/esm2020/src/elements/query-builder/query-builder.directives.mjs +101 -0
- package/esm2020/src/elements/query-builder/query-builder.module.mjs +172 -0
- package/esm2020/src/elements/query-builder/query-builder.service.mjs +87 -0
- package/esm2020/src/elements/query-builder/query-builder.tokens.mjs +5 -0
- package/esm2020/src/elements/query-builder/query-builder.types.mjs +7 -0
- package/esm2020/src/elements/quick-note/QuickNote.module.mjs +5 -4
- package/esm2020/src/elements/quick-note/extras/quick-note-results/QuickNoteResults.mjs +5 -4
- package/esm2020/src/elements/search/SearchBox.mjs +36 -8
- package/esm2020/src/elements/select/Select.mjs +10 -6
- package/esm2020/src/elements/select/Select.module.mjs +5 -1
- package/esm2020/src/elements/select-search/select-search.component.mjs +22 -20
- package/esm2020/src/elements/select-search/select-search.module.mjs +6 -2
- package/esm2020/src/elements/simple-table/table.mjs +2 -2
- package/esm2020/src/elements/stepper/step-header.component.mjs +1 -1
- package/esm2020/src/elements/stepper/step-status.component.mjs +1 -1
- package/esm2020/src/elements/switch/Switch.mjs +1 -1
- package/esm2020/src/elements/table/Table.mjs +1 -1
- package/esm2020/src/elements/time-picker/TimePickerInput.mjs +1 -1
- package/esm2020/src/elements/tip-well/TipWell.mjs +9 -5
- package/esm2020/src/elements/tooltip/Tooltip.directive.mjs +5 -2
- package/esm2020/src/elements/value/Value.mjs +1 -1
- package/esm2020/src/novo-elements.module.mjs +7 -3
- package/esm2020/src/pipes/Pipes.module.mjs +5 -4
- package/esm2020/src/pipes/highlight/Highlight.mjs +22 -0
- package/esm2020/src/pipes/highlight/index.mjs +2 -0
- package/esm2020/src/pipes/index.mjs +2 -1
- package/esm2020/src/services/novo-label-service.mjs +25 -1
- package/fesm2015/novo-elements.mjs +1928 -264
- package/fesm2015/novo-elements.mjs.map +1 -1
- package/fesm2020/novo-elements.mjs +1918 -264
- package/fesm2020/novo-elements.mjs.map +1 -1
- package/novo-elements.scss +4 -0
- package/package.json +1 -1
- package/src/elements/common/common.module.d.ts +5 -3
- package/src/elements/common/directives/switch-cases.directive.d.ts +16 -0
- package/src/elements/common/directives/visible.directive.d.ts +10 -0
- package/src/elements/common/index.d.ts +2 -0
- package/src/elements/common/overlay/Overlay.d.ts +3 -1
- package/src/elements/common/typography/base/base-text.component.d.ts +4 -1
- package/src/elements/data-table/data-table-clear-button.component.d.ts +3 -1
- package/src/elements/data-table/interfaces.d.ts +15 -1
- package/src/elements/data-table/services/remote-data-table.service.d.ts +4 -1
- package/src/elements/data-table/services/static-data-table.service.d.ts +4 -1
- package/src/elements/data-table/state/data-table-state.service.d.ts +5 -0
- package/src/elements/date-picker/DatePicker.d.ts +1 -0
- package/src/elements/date-picker/date-picker.types.d.ts +5 -1
- package/src/elements/field/field.d.ts +1 -0
- package/src/elements/field/field.module.d.ts +10 -9
- package/src/elements/field/formats/base-format.d.ts +5 -0
- package/src/elements/field/formats/date-format.d.ts +3 -7
- package/src/elements/field/formats/date-range-format.d.ts +35 -0
- package/src/elements/field/formats/time-format.d.ts +2 -2
- package/src/elements/field/index.d.ts +1 -0
- package/src/elements/field/toggle/picker-toggle.component.d.ts +7 -3
- package/src/elements/header/Header.d.ts +2 -1
- package/src/elements/icon/Icon.d.ts +2 -1
- package/src/elements/index.d.ts +1 -0
- package/src/elements/modal/modal-container.component.d.ts +2 -0
- package/src/elements/non-ideal-state/NonIdealState.d.ts +1 -1
- package/src/elements/picker/Picker.module.d.ts +8 -7
- package/src/elements/picker/extras/base-picker-results/BasePickerResults.d.ts +1 -1
- package/src/elements/picker/extras/entity-picker-results/EntityPickerResults.d.ts +1 -1
- package/src/elements/query-builder/condition-builder/condition-builder.component.d.ts +69 -0
- package/src/elements/query-builder/condition-definitions/abstract-condition.definition.d.ts +21 -0
- package/src/elements/query-builder/condition-definitions/address-condition.definition.d.ts +10 -0
- package/src/elements/query-builder/condition-definitions/boolean-condition.definition.d.ts +10 -0
- package/src/elements/query-builder/condition-definitions/date-condition.definition.d.ts +17 -0
- package/src/elements/query-builder/condition-definitions/id-condition.definition.d.ts +10 -0
- package/src/elements/query-builder/condition-definitions/number-condition.definition.d.ts +11 -0
- package/src/elements/query-builder/condition-definitions/picker-condition.definition.d.ts +10 -0
- package/src/elements/query-builder/condition-definitions/string-condition.definition.d.ts +19 -0
- package/src/elements/query-builder/condition-group/condition-group.component.d.ts +30 -0
- package/src/elements/query-builder/criteria-builder/criteria-builder.component.d.ts +38 -0
- package/src/elements/query-builder/index.d.ts +14 -0
- package/src/elements/query-builder/query-builder.directives.d.ts +66 -0
- package/src/elements/query-builder/query-builder.module.d.ts +39 -0
- package/src/elements/query-builder/query-builder.service.d.ts +51 -0
- package/src/elements/query-builder/query-builder.tokens.d.ts +4 -0
- package/src/elements/query-builder/query-builder.types.d.ts +42 -0
- package/src/elements/quick-note/QuickNote.module.d.ts +2 -1
- package/src/elements/search/SearchBox.d.ts +6 -1
- package/src/elements/select/Select.d.ts +3 -0
- package/src/elements/select/Select.module.d.ts +3 -2
- package/src/elements/select-search/select-search.module.d.ts +2 -1
- package/src/elements/tip-well/TipWell.d.ts +1 -1
- package/src/elements/tooltip/Tooltip.directive.d.ts +2 -2
- package/src/novo-elements.module.d.ts +2 -1
- package/src/pipes/Pipes.module.d.ts +7 -6
- package/src/pipes/highlight/Highlight.d.ts +9 -0
- package/src/pipes/highlight/index.d.ts +1 -0
- package/src/pipes/index.d.ts +1 -0
- package/src/services/novo-label-service.d.ts +24 -0
- package/styles/themes/light-test.scss +107 -0
package/novo-elements.scss
CHANGED
|
@@ -107,6 +107,10 @@
|
|
|
107
107
|
color: var(--text-disabled, $color-slate);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
.novo-visibility-hidden {
|
|
111
|
+
visibility: hidden !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
110
114
|
@include theme-colors() using ($name, $color, $contrast, $tint, $shade, $pale) {
|
|
111
115
|
$excluded: (bright, muted);
|
|
112
116
|
|
package/package.json
CHANGED
|
@@ -13,10 +13,12 @@ import * as i11 from "./directives/accent.directive";
|
|
|
13
13
|
import * as i12 from "./directives/fill.directive";
|
|
14
14
|
import * as i13 from "./directives/flex.directive";
|
|
15
15
|
import * as i14 from "./directives/theme.directive";
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "./
|
|
16
|
+
import * as i15 from "./directives/switch-cases.directive";
|
|
17
|
+
import * as i16 from "./directives/visible.directive";
|
|
18
|
+
import * as i17 from "@angular/common";
|
|
19
|
+
import * as i18 from "./option/index";
|
|
18
20
|
export declare class NovoCommonModule {
|
|
19
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoCommonModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NovoCommonModule, [typeof i1.NovoTemplate, typeof i2.NovoText, typeof i3.NovoTitle, typeof i4.NovoCaption, typeof i5.NovoLabel, typeof i6.NovoLink, typeof i7.MarginDirective, typeof i7.PaddingDirective, typeof i8.BackgroundColorDirective, typeof i9.TextColorDirective, typeof i10.BorderDirective, typeof i7.GapDirective, typeof i11.AccentColorDirective, typeof i12.FillColorDirective, typeof i13.FlexDirective, typeof i14.ThemeColorDirective], [typeof
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NovoCommonModule, [typeof i1.NovoTemplate, typeof i2.NovoText, typeof i3.NovoTitle, typeof i4.NovoCaption, typeof i5.NovoLabel, typeof i6.NovoLink, typeof i7.MarginDirective, typeof i7.PaddingDirective, typeof i8.BackgroundColorDirective, typeof i9.TextColorDirective, typeof i10.BorderDirective, typeof i7.GapDirective, typeof i11.AccentColorDirective, typeof i12.FillColorDirective, typeof i13.FlexDirective, typeof i14.ThemeColorDirective, typeof i15.SwitchCasesDirective, typeof i16.VisibleDirective], [typeof i17.CommonModule, typeof i18.NovoOptionModule], [typeof i1.NovoTemplate, typeof i2.NovoText, typeof i3.NovoTitle, typeof i4.NovoCaption, typeof i5.NovoLabel, typeof i6.NovoLink, typeof i7.MarginDirective, typeof i7.PaddingDirective, typeof i8.BackgroundColorDirective, typeof i9.TextColorDirective, typeof i10.BorderDirective, typeof i7.GapDirective, typeof i11.AccentColorDirective, typeof i12.FillColorDirective, typeof i13.FlexDirective, typeof i14.ThemeColorDirective, typeof i15.SwitchCasesDirective, typeof i16.VisibleDirective]>;
|
|
21
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<NovoCommonModule>;
|
|
22
24
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NgSwitch } from '@angular/common';
|
|
2
|
+
import { DoCheck, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SwitchCasesDirective implements OnInit, DoCheck {
|
|
5
|
+
private viewContainer;
|
|
6
|
+
private templateRef;
|
|
7
|
+
private ngSwitch;
|
|
8
|
+
private _created;
|
|
9
|
+
novoSwitchCases: any[];
|
|
10
|
+
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
ngDoCheck(): void;
|
|
13
|
+
enforceState(created: boolean): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchCasesDirective, [null, null, { host: true; }]>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SwitchCasesDirective, "[novoSwitchCases]", never, { "novoSwitchCases": "novoSwitchCases"; }, {}, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class VisibleDirective {
|
|
4
|
+
private el;
|
|
5
|
+
visible: boolean;
|
|
6
|
+
get hb_visibility(): "" | "novo-visibility-hidden";
|
|
7
|
+
constructor(el: ElementRef);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisibleDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<VisibleDirective, "[visible]", never, { "visible": "visible"; }, {}, never>;
|
|
10
|
+
}
|
|
@@ -6,7 +6,9 @@ export * from './directives/color.directive';
|
|
|
6
6
|
export * from './directives/fill.directive';
|
|
7
7
|
export * from './directives/flex.directive';
|
|
8
8
|
export * from './directives/space.directive';
|
|
9
|
+
export * from './directives/switch-cases.directive';
|
|
9
10
|
export * from './directives/theme.directive';
|
|
11
|
+
export * from './directives/visible.directive';
|
|
10
12
|
export * from './error/error-options';
|
|
11
13
|
export * from './mixins';
|
|
12
14
|
export * from './novo-template';
|
|
@@ -17,6 +17,7 @@ export declare class NovoOverlayTemplateComponent implements OnDestroy {
|
|
|
17
17
|
width: number;
|
|
18
18
|
height: number;
|
|
19
19
|
closeOnSelect: boolean;
|
|
20
|
+
hasBackdrop: boolean;
|
|
20
21
|
select: EventEmitter<any>;
|
|
21
22
|
opening: EventEmitter<any>;
|
|
22
23
|
closing: EventEmitter<any>;
|
|
@@ -55,7 +56,8 @@ export declare class NovoOverlayTemplateComponent implements OnDestroy {
|
|
|
55
56
|
protected getScrollStrategy(): ScrollStrategy;
|
|
56
57
|
protected checkSizes(): void;
|
|
57
58
|
protected getConnectedElement(): ElementRef;
|
|
59
|
+
protected elementIsInNestedOverlay(el: any): boolean;
|
|
58
60
|
protected getHostWidth(): number;
|
|
59
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoOverlayTemplateComponent, [null, null, null, null, { optional: true; }]>;
|
|
60
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NovoOverlayTemplateComponent, "novo-overlay-template", never, { "position": "position"; "scrollStrategy": "scrollStrategy"; "width": "width"; "height": "height"; "closeOnSelect": "closeOnSelect"; "parent": "parent"; }, { "select": "select"; "opening": "opening"; "closing": "closing"; }, never, ["*"]>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NovoOverlayTemplateComponent, "novo-overlay-template", never, { "position": "position"; "scrollStrategy": "scrollStrategy"; "width": "width"; "height": "height"; "closeOnSelect": "closeOnSelect"; "hasBackdrop": "hasBackdrop"; "parent": "parent"; }, { "select": "select"; "opening": "opening"; "closing": "closing"; }, never, ["*"]>;
|
|
61
63
|
}
|
|
@@ -13,7 +13,10 @@ export declare class NovoBaseTextElement {
|
|
|
13
13
|
error: boolean;
|
|
14
14
|
marginBefore: boolean;
|
|
15
15
|
marginAfter: boolean;
|
|
16
|
+
capitialize: boolean;
|
|
17
|
+
uppercase: boolean;
|
|
16
18
|
nowrap: boolean;
|
|
19
|
+
ellipsis: boolean;
|
|
17
20
|
smaller: boolean;
|
|
18
21
|
larger: boolean;
|
|
19
22
|
thin: boolean;
|
|
@@ -26,5 +29,5 @@ export declare class NovoBaseTextElement {
|
|
|
26
29
|
constructor(element: ElementRef);
|
|
27
30
|
get nativeElement(): any;
|
|
28
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoBaseTextElement, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NovoBaseTextElement, never, never, { "size": "size"; "weight": "weight"; "lineLength": "lineLength"; "color": "color"; "disabled": "disabled"; "muted": "muted"; "error": "error"; "marginBefore": "marginBefore"; "marginAfter": "marginAfter"; "nowrap": "nowrap"; "smaller": "smaller"; "larger": "larger"; "thin": "thin"; "lighter": "lighter"; "light": "light"; "medium": "medium"; "bold": "bold"; "bolder": "bolder"; "extrabold": "extrabold"; }, {}, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NovoBaseTextElement, never, never, { "size": "size"; "weight": "weight"; "lineLength": "lineLength"; "color": "color"; "disabled": "disabled"; "muted": "muted"; "error": "error"; "marginBefore": "marginBefore"; "marginAfter": "marginAfter"; "capitialize": "capitialize"; "uppercase": "uppercase"; "nowrap": "nowrap"; "ellipsis": "ellipsis"; "smaller": "smaller"; "larger": "larger"; "thin": "thin"; "lighter": "lighter"; "light": "light"; "medium": "medium"; "bold": "bold"; "bolder": "bolder"; "extrabold": "extrabold"; }, {}, never>;
|
|
30
33
|
}
|
|
@@ -9,12 +9,14 @@ export declare class NovoDataTableClearButton<T> {
|
|
|
9
9
|
selectedClear: EventEmitter<boolean>;
|
|
10
10
|
sortClear: EventEmitter<boolean>;
|
|
11
11
|
filterClear: EventEmitter<boolean>;
|
|
12
|
+
queryClear: EventEmitter<boolean>;
|
|
12
13
|
allClear: EventEmitter<boolean>;
|
|
13
14
|
constructor(state: DataTableState<T>, ref: ChangeDetectorRef, labels: NovoLabelService);
|
|
14
15
|
clearSort(): void;
|
|
15
16
|
clearFilter(): void;
|
|
17
|
+
clearSearch(): void;
|
|
16
18
|
clearSelected(): void;
|
|
17
19
|
clearAll(): void;
|
|
18
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoDataTableClearButton<any>, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NovoDataTableClearButton<any>, "novo-data-table-clear-button", never, {}, { "selectedClear": "selectedClear"; "sortClear": "sortClear"; "filterClear": "filterClear"; "allClear": "allClear"; }, never, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NovoDataTableClearButton<any>, "novo-data-table-clear-button", never, {}, { "selectedClear": "selectedClear"; "sortClear": "sortClear"; "filterClear": "filterClear"; "queryClear": "queryClear"; "allClear": "allClear"; }, never, never>;
|
|
20
22
|
}
|
|
@@ -3,9 +3,14 @@ export interface IDataTablePreferences {
|
|
|
3
3
|
name: string;
|
|
4
4
|
sort?: IDataTableSort;
|
|
5
5
|
filter?: IDataTableFilter | IDataTableFilter[];
|
|
6
|
+
where?: {
|
|
7
|
+
query: string;
|
|
8
|
+
form: any;
|
|
9
|
+
};
|
|
6
10
|
globalSearch?: any;
|
|
7
11
|
pageSize?: number;
|
|
8
12
|
displayedColumns?: string[];
|
|
13
|
+
savedSearchName?: string;
|
|
9
14
|
}
|
|
10
15
|
export interface IDataTableColumn<T> {
|
|
11
16
|
id: string;
|
|
@@ -93,6 +98,12 @@ export interface IDataTableChangeEvent {
|
|
|
93
98
|
page?: number;
|
|
94
99
|
pageSize?: number;
|
|
95
100
|
globalSearch?: string;
|
|
101
|
+
outsideFilter?: IDataTableFilter | IDataTableFilter[];
|
|
102
|
+
where?: {
|
|
103
|
+
query: string;
|
|
104
|
+
form: any;
|
|
105
|
+
};
|
|
106
|
+
savedSearchName?: string;
|
|
96
107
|
}
|
|
97
108
|
export interface IDataTableSelectionChangeEvent {
|
|
98
109
|
selected: any[];
|
|
@@ -122,7 +133,10 @@ export interface IDataTableService<T> {
|
|
|
122
133
|
id: string;
|
|
123
134
|
value: string;
|
|
124
135
|
transform?: Function;
|
|
125
|
-
} | IDataTableFilter | IDataTableFilter[], page: number, pageSize: number, globalSearch?: string, outsideFilter?: any
|
|
136
|
+
} | IDataTableFilter | IDataTableFilter[], page: number, pageSize: number, globalSearch?: string, outsideFilter?: any, where?: {
|
|
137
|
+
query: string;
|
|
138
|
+
form: any;
|
|
139
|
+
}): Observable<{
|
|
126
140
|
results: T[];
|
|
127
141
|
total: number;
|
|
128
142
|
}>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { IDataTableFilter, IDataTableService, IDataTableSort } from '../interfaces';
|
|
3
3
|
export declare abstract class RemoteDataTableService<T> implements IDataTableService<T> {
|
|
4
|
-
abstract getTableResults(sort: IDataTableSort, filter: IDataTableFilter | IDataTableFilter[], page: number, pageSize: number, globalSearch?: string, outsideFilter?: any
|
|
4
|
+
abstract getTableResults(sort: IDataTableSort, filter: IDataTableFilter | IDataTableFilter[], page: number, pageSize: number, globalSearch?: string, outsideFilter?: any, where?: {
|
|
5
|
+
query: string;
|
|
6
|
+
form: any;
|
|
7
|
+
}): Observable<{
|
|
5
8
|
results: T[];
|
|
6
9
|
total: number;
|
|
7
10
|
}>;
|
|
@@ -4,7 +4,10 @@ export declare class StaticDataTableService<T> implements IDataTableService<T> {
|
|
|
4
4
|
private currentData;
|
|
5
5
|
originalData: T[];
|
|
6
6
|
constructor(currentData?: T[]);
|
|
7
|
-
getTableResults(sort: IDataTableSort, filter: IDataTableFilter | IDataTableFilter[], page: number, pageSize: number, globalSearch?: string, outsideFilter?: any
|
|
7
|
+
getTableResults(sort: IDataTableSort, filter: IDataTableFilter | IDataTableFilter[], page: number, pageSize: number, globalSearch?: string, outsideFilter?: any, where?: {
|
|
8
|
+
query: string;
|
|
9
|
+
form: any;
|
|
10
|
+
}): Observable<{
|
|
8
11
|
results: T[];
|
|
9
12
|
total: number;
|
|
10
13
|
}>;
|
|
@@ -12,6 +12,10 @@ export declare class DataTableState<T> {
|
|
|
12
12
|
dataLoaded: Subject<unknown>;
|
|
13
13
|
sort: IDataTableSort;
|
|
14
14
|
filter: IDataTableFilter | IDataTableFilter[];
|
|
15
|
+
where: {
|
|
16
|
+
query: string;
|
|
17
|
+
form: any;
|
|
18
|
+
};
|
|
15
19
|
page: number;
|
|
16
20
|
pageSize: number;
|
|
17
21
|
globalSearch: string;
|
|
@@ -28,6 +32,7 @@ export declare class DataTableState<T> {
|
|
|
28
32
|
reset(fireUpdate?: boolean, persistUserFilters?: any): void;
|
|
29
33
|
clearSort(fireUpdate?: boolean): void;
|
|
30
34
|
clearFilter(fireUpdate?: boolean): void;
|
|
35
|
+
clearQuery(fireUpdate?: boolean): void;
|
|
31
36
|
clearSelected(fireUpdate?: boolean): void;
|
|
32
37
|
onSelectionChange(): void;
|
|
33
38
|
onExpandChange(targetId?: number): void;
|
|
@@ -100,6 +100,7 @@ export declare class NovoDatePickerElement implements ControlValueAccessor, OnIn
|
|
|
100
100
|
toggleRangeSelect(range: rangeSelectModes): void;
|
|
101
101
|
modelToSelection(model: modelTypes): void;
|
|
102
102
|
writeValue(model: modelTypes): void;
|
|
103
|
+
setRangeSelection(): void;
|
|
103
104
|
registerOnChange(fn: Function): void;
|
|
104
105
|
registerOnTouched(fn: Function): void;
|
|
105
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoDatePickerElement, never>;
|
|
@@ -15,7 +15,11 @@ export interface RangeModel {
|
|
|
15
15
|
startDate: Date;
|
|
16
16
|
endDate: Date;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export interface DataTableRangeModel {
|
|
19
|
+
min: Date;
|
|
20
|
+
max: Date;
|
|
21
|
+
}
|
|
22
|
+
export declare type modelTypes = Date | Date[] | RangeModel | DataTableRangeModel;
|
|
19
23
|
export interface Day {
|
|
20
24
|
date: Date;
|
|
21
25
|
isCurrentMonth?: boolean;
|
|
@@ -41,6 +41,7 @@ export declare class NovoFieldElement implements AfterContentInit, OnDestroy {
|
|
|
41
41
|
ngOnDestroy(): void;
|
|
42
42
|
/** Throws an error if the form field's control is missing. */
|
|
43
43
|
protected _validateControlChild(): void;
|
|
44
|
+
_handleContainerClick(evt: MouseEvent): void;
|
|
44
45
|
_isUnderlinedInput(): boolean;
|
|
45
46
|
/** Determines whether to display hints or errors. */
|
|
46
47
|
_getDisplayedMessages(): 'error' | 'hint';
|
|
@@ -6,16 +6,17 @@ import * as i4 from "./input";
|
|
|
6
6
|
import * as i5 from "./fieldset";
|
|
7
7
|
import * as i6 from "./formats/time-format";
|
|
8
8
|
import * as i7 from "./formats/date-format";
|
|
9
|
-
import * as i8 from "./
|
|
10
|
-
import * as i9 from "./picker.
|
|
11
|
-
import * as i10 from "./
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "../
|
|
15
|
-
import * as i14 from "../common/
|
|
16
|
-
import * as i15 from "../common/
|
|
9
|
+
import * as i8 from "./formats/date-range-format";
|
|
10
|
+
import * as i9 from "./toggle/picker-toggle.component";
|
|
11
|
+
import * as i10 from "./picker.directive";
|
|
12
|
+
import * as i11 from "./autocomplete/autocomplete.component";
|
|
13
|
+
import * as i12 from "@angular/common";
|
|
14
|
+
import * as i13 from "../button/Button.module";
|
|
15
|
+
import * as i14 from "../common/overlay/Overlay.module";
|
|
16
|
+
import * as i15 from "../common/option/index";
|
|
17
|
+
import * as i16 from "../common/common.module";
|
|
17
18
|
export declare class NovoFieldModule {
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoFieldModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NovoFieldModule, [typeof i1.NovoFieldElement, typeof i2.NovoHintElement, typeof i3.NovoErrorElement, typeof i4.NovoInput, typeof i1.NovoFieldPrefixDirective, typeof i1.NovoFieldSuffixDirective, typeof i5.NovoFieldsElement, typeof i6.NovoTimeFormatDirective, typeof i7.NovoDateFormatDirective, typeof i8.
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NovoFieldModule, [typeof i1.NovoFieldElement, typeof i2.NovoHintElement, typeof i3.NovoErrorElement, typeof i4.NovoInput, typeof i1.NovoFieldPrefixDirective, typeof i1.NovoFieldSuffixDirective, typeof i5.NovoFieldsElement, typeof i6.NovoTimeFormatDirective, typeof i7.NovoDateFormatDirective, typeof i8.NovoDateRangeFormatDirective, typeof i9.NovoPickerToggleElement, typeof i10.NovoPickerDirective, typeof i11.NovoAutocompleteElement], [typeof i12.CommonModule, typeof i13.NovoButtonModule, typeof i14.NovoOverlayModule, typeof i15.NovoOptionModule, typeof i16.NovoCommonModule], [typeof i1.NovoFieldElement, typeof i2.NovoHintElement, typeof i3.NovoErrorElement, typeof i4.NovoInput, typeof i1.NovoFieldPrefixDirective, typeof i1.NovoFieldSuffixDirective, typeof i5.NovoFieldsElement, typeof i6.NovoTimeFormatDirective, typeof i7.NovoDateFormatDirective, typeof i8.NovoDateRangeFormatDirective, typeof i9.NovoPickerToggleElement, typeof i10.NovoPickerDirective, typeof i11.NovoAutocompleteElement]>;
|
|
20
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<NovoFieldModule>;
|
|
21
22
|
}
|
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
|
|
2
2
|
import { IMaskDirective, IMaskFactory } from 'angular-imask';
|
|
3
3
|
import { NovoLabelService } from '../../../services/novo-label-service';
|
|
4
|
+
import { DATE_FORMATS } from './base-format';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare const DATEFORMAT_VALUE_ACCESSOR: {
|
|
6
7
|
provide: import("@angular/core").InjectionToken<readonly import("@angular/forms").ControlValueAccessor[]>;
|
|
7
8
|
useExisting: import("@angular/core").Type<any>;
|
|
8
9
|
multi: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare enum DATE_FORMATS {
|
|
11
|
-
DATE = "date",
|
|
12
|
-
ISO8601 = "iso8601",
|
|
13
|
-
STRING = "string"
|
|
14
|
-
}
|
|
15
11
|
export declare class NovoDateFormatDirective extends IMaskDirective<any> {
|
|
16
12
|
private _element;
|
|
17
13
|
private labels;
|
|
18
14
|
valueChange: EventEmitter<any>;
|
|
19
15
|
dateFormat: DATE_FORMATS;
|
|
20
|
-
constructor(_element: ElementRef, _renderer: Renderer2, _factory: IMaskFactory,
|
|
16
|
+
constructor(_element: ElementRef, _renderer: Renderer2, _factory: IMaskFactory, _compositionMode: boolean, labels: NovoLabelService);
|
|
21
17
|
normalize(value: string): string;
|
|
22
18
|
formatAsIso(date: Date): string;
|
|
23
19
|
formatValue(value: any): string;
|
|
24
20
|
writeValue(value: any): void;
|
|
25
21
|
registerOnChange(fn: (_: any) => void): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NovoDateFormatDirective, [null, null, null, { optional: true; },
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NovoDateFormatDirective, [null, null, null, { optional: true; }, null]>;
|
|
27
23
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NovoDateFormatDirective, "input[dateFormat]", never, { "dateFormat": "dateFormat"; }, {}, never>;
|
|
28
24
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
|
|
2
|
+
import { IMaskDirective, IMaskFactory } from 'angular-imask';
|
|
3
|
+
import { NovoLabelService } from '../../../services/novo-label-service';
|
|
4
|
+
import { DATE_FORMATS } from './base-format';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const DATERANGEFORMAT_VALUE_ACCESSOR: {
|
|
7
|
+
provide: import("@angular/core").InjectionToken<readonly import("@angular/forms").ControlValueAccessor[]>;
|
|
8
|
+
useExisting: import("@angular/core").Type<any>;
|
|
9
|
+
multi: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare type DateRange = {
|
|
12
|
+
startDate: Date;
|
|
13
|
+
endDate: Date;
|
|
14
|
+
};
|
|
15
|
+
export declare class NovoDateRangeFormatDirective extends IMaskDirective<any> {
|
|
16
|
+
private _element;
|
|
17
|
+
private labels;
|
|
18
|
+
valueChange: EventEmitter<any>;
|
|
19
|
+
dateRangeFormat: DATE_FORMATS;
|
|
20
|
+
constructor(_element: ElementRef, _renderer: Renderer2, _factory: IMaskFactory, _compositionMode: boolean, labels: NovoLabelService);
|
|
21
|
+
normalize(value: string | Date): string;
|
|
22
|
+
formatAsIso(value: DateRange): string;
|
|
23
|
+
formatValue(value: DateRange): string;
|
|
24
|
+
formatDate(source: Date | string): string;
|
|
25
|
+
writeValue(value: any): void;
|
|
26
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
27
|
+
extractDatesFromInput(value: any): {
|
|
28
|
+
startDate: Date;
|
|
29
|
+
endDate: Date;
|
|
30
|
+
};
|
|
31
|
+
validate(dateStr: string): boolean;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NovoDateRangeFormatDirective, [null, null, null, { optional: true; }, null]>;
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NovoDateRangeFormatDirective, "input[dateRangeFormat]", never, { "dateRangeFormat": "dateRangeFormat"; }, {}, never>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -20,7 +20,7 @@ export declare class NovoTimeFormatDirective extends IMaskDirective<any> impleme
|
|
|
20
20
|
valueChange: EventEmitter<any>;
|
|
21
21
|
military: boolean;
|
|
22
22
|
timeFormat: TIME_FORMATS;
|
|
23
|
-
constructor(_element: ElementRef, _renderer: Renderer2, _factory: IMaskFactory,
|
|
23
|
+
constructor(_element: ElementRef, _renderer: Renderer2, _factory: IMaskFactory, _compositionMode: boolean, labels: NovoLabelService, cdr: ChangeDetectorRef);
|
|
24
24
|
ngOnChanges(changes: SimpleChanges): void;
|
|
25
25
|
initFormatOptions(): void;
|
|
26
26
|
_checkInput(event: InputEvent): void;
|
|
@@ -34,6 +34,6 @@ export declare class NovoTimeFormatDirective extends IMaskDirective<any> impleme
|
|
|
34
34
|
writeValue(value: any): void;
|
|
35
35
|
registerOnChange(fn: (date: any) => void): void;
|
|
36
36
|
hourOneFormatRequired(hourInput: string): boolean;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NovoTimeFormatDirective, [null, null, null, { optional: true; },
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NovoTimeFormatDirective, [null, null, null, { optional: true; }, null, null]>;
|
|
38
38
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NovoTimeFormatDirective, "input[timeFormat]", never, { "military": "military"; "timeFormat": "timeFormat"; }, {}, never>;
|
|
39
39
|
}
|
|
@@ -6,6 +6,7 @@ export * from './field.module';
|
|
|
6
6
|
export * from './fieldset';
|
|
7
7
|
export * from './formats/base-format';
|
|
8
8
|
export * from './formats/date-format';
|
|
9
|
+
export * from './formats/date-range-format';
|
|
9
10
|
export * from './formats/time-format';
|
|
10
11
|
export * from './hint';
|
|
11
12
|
export * from './input';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
1
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
3
2
|
import { NovoButtonElement } from '../../button';
|
|
4
3
|
import { NovoOverlayTemplateComponent } from '../../common/overlay';
|
|
@@ -9,6 +8,7 @@ export declare class NovoPickerToggleElement<T = any> implements AfterContentIni
|
|
|
9
8
|
private cdr;
|
|
10
9
|
private _formField;
|
|
11
10
|
private _stateChanges;
|
|
11
|
+
private _onDestroy;
|
|
12
12
|
/** Datepicker instance that the button will toggle. */
|
|
13
13
|
picker: T;
|
|
14
14
|
icon: string;
|
|
@@ -16,6 +16,10 @@ export declare class NovoPickerToggleElement<T = any> implements AfterContentIni
|
|
|
16
16
|
tabIndex: number | null;
|
|
17
17
|
/** Screenreader label for the button. */
|
|
18
18
|
ariaLabel: string;
|
|
19
|
+
/** Determines whether the overlay is triggered on input focus or solely button click. */
|
|
20
|
+
triggerOnFocus: boolean;
|
|
21
|
+
/** An id to select the correct overlay.*/
|
|
22
|
+
overlayId: string;
|
|
19
23
|
/** Whether the toggle button is disabled. */
|
|
20
24
|
get disabled(): boolean;
|
|
21
25
|
set disabled(value: boolean);
|
|
@@ -30,13 +34,13 @@ export declare class NovoPickerToggleElement<T = any> implements AfterContentIni
|
|
|
30
34
|
ngOnDestroy(): void;
|
|
31
35
|
ngAfterContentInit(): void;
|
|
32
36
|
ngAfterViewInit(): void;
|
|
37
|
+
checkPanel(): void;
|
|
33
38
|
togglePanel(event?: Event): void;
|
|
34
39
|
/** BEGIN: Convenient Panel Methods. */
|
|
35
40
|
openPanel(event?: Event): void;
|
|
36
41
|
closePanel(event?: Event): void;
|
|
37
42
|
get panelOpen(): boolean;
|
|
38
43
|
private _watchStateChanges;
|
|
39
|
-
static ngAcceptInputType_disabled: BooleanInput;
|
|
40
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoPickerToggleElement<any>, [null, null, { attribute: "tabindex"; }, { optional: true; }]>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NovoPickerToggleElement<any>, "novo-picker-toggle", ["novoPickerToggle"], { "picker": "for"; "icon": "icon"; "tabIndex": "tabIndex"; "ariaLabel": "aria-label"; "disabled": "disabled"; }, {}, never, ["*"]>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NovoPickerToggleElement<any>, "novo-picker-toggle", ["novoPickerToggle"], { "picker": "for"; "icon": "icon"; "tabIndex": "tabIndex"; "ariaLabel": "aria-label"; "triggerOnFocus": "triggerOnFocus"; "overlayId": "overlayId"; "disabled": "disabled"; }, {}, never, ["*"]>;
|
|
42
46
|
}
|
|
@@ -9,10 +9,11 @@ export declare class NovoUtilsComponent {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class NovoUtilActionComponent {
|
|
11
11
|
icon: string;
|
|
12
|
+
size: string;
|
|
12
13
|
inverse: boolean;
|
|
13
14
|
disabled: boolean;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoUtilActionComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NovoUtilActionComponent, "util-action, novo-action", never, { "icon": "icon"; "inverse": "inverse"; "disabled": "disabled"; }, {}, never, ["*"]>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NovoUtilActionComponent, "util-action, novo-action", never, { "icon": "icon"; "size": "size"; "inverse": "inverse"; "disabled": "disabled"; }, {}, never, ["*"]>;
|
|
16
17
|
}
|
|
17
18
|
export declare class NovoHeaderComponent {
|
|
18
19
|
role: string;
|
|
@@ -6,6 +6,7 @@ export declare class NovoIconComponent implements AfterViewInit {
|
|
|
6
6
|
private cdr;
|
|
7
7
|
raised: boolean;
|
|
8
8
|
theme: string;
|
|
9
|
+
shape: string;
|
|
9
10
|
color: string;
|
|
10
11
|
role: string;
|
|
11
12
|
ariaLabel: string;
|
|
@@ -22,5 +23,5 @@ export declare class NovoIconComponent implements AfterViewInit {
|
|
|
22
23
|
ngAfterViewInit(): void;
|
|
23
24
|
projectContentChanged(record: MutationRecord): void;
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoIconComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NovoIconComponent, "novo-icon", never, { "raised": "raised"; "theme": "theme"; "color": "color"; "size": "size"; "smaller": "smaller"; "larger": "larger"; "alt": "alt"; "name": "name"; }, {}, never, ["*"]>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NovoIconComponent, "novo-icon", never, { "raised": "raised"; "theme": "theme"; "shape": "shape"; "color": "color"; "size": "size"; "smaller": "smaller"; "larger": "larger"; "alt": "alt"; "name": "name"; }, {}, never, ["*"]>;
|
|
26
27
|
}
|
package/src/elements/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare class NovoModalContainerComponent {
|
|
|
9
9
|
animationStateChanged: EventEmitter<AnimationEvent>;
|
|
10
10
|
animationState: 'void' | 'enter' | 'leave';
|
|
11
11
|
component: Portal<any>;
|
|
12
|
+
initTimestamp: number;
|
|
13
|
+
id: string;
|
|
12
14
|
constructor(injector: Injector, modalRef: NovoModalRef);
|
|
13
15
|
onAnimationStart(event: AnimationEvent): void;
|
|
14
16
|
onAnimationDone(event: AnimationEvent): void;
|
|
@@ -6,5 +6,5 @@ export declare class NonIdealStateElement {
|
|
|
6
6
|
title: string;
|
|
7
7
|
description: string;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NonIdealStateElement, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NonIdealStateElement, "novo-non-ideal-state", never, { "theme": "theme"; "icon": "icon"; "title": "title"; "description": "description"; }, {}, never, ["novo-icon,novo-loading,novo-avatar", "novo-title", "*"]>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NonIdealStateElement, "novo-non-ideal-state", never, { "theme": "theme"; "icon": "icon"; "title": "title"; "description": "description"; }, {}, never, ["novo-icon", "novo-icon,novo-loading,novo-avatar", "novo-title", "novo-text", "*"]>;
|
|
10
10
|
}
|
|
@@ -9,14 +9,15 @@ import * as i7 from "./extras/distributionlist-picker-results/DistributionListPi
|
|
|
9
9
|
import * as i8 from "./extras/workers-comp-codes-picker-results/WorkersCompCodesPickerResults";
|
|
10
10
|
import * as i9 from "./extras/skills-picker-results/SkillsSpecialtyPickerResults";
|
|
11
11
|
import * as i10 from "@angular/common";
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "../
|
|
15
|
-
import * as i14 from "../
|
|
16
|
-
import * as i15 from "../
|
|
17
|
-
import * as i16 from "../
|
|
12
|
+
import * as i11 from "../../pipes/Pipes.module";
|
|
13
|
+
import * as i12 from "@angular/forms";
|
|
14
|
+
import * as i13 from "../common/common.module";
|
|
15
|
+
import * as i14 from "../loading/Loading.module";
|
|
16
|
+
import * as i15 from "../list/List.module";
|
|
17
|
+
import * as i16 from "../common/overlay/Overlay.module";
|
|
18
|
+
import * as i17 from "../switch/Switch.module";
|
|
18
19
|
export declare class NovoPickerModule {
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<NovoPickerModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NovoPickerModule, [typeof i1.NovoPickerElement, typeof i2.PickerResults, typeof i3.EntityPickerResult, typeof i3.EntityPickerResults, typeof i4.ChecklistPickerResults, typeof i5.GroupedMultiPickerResults, typeof i6.MixedMultiPickerResults, typeof i7.DistributionListPickerResults, typeof i8.WorkersCompCodesPickerResults, typeof i9.SkillsSpecialtyPickerResults], [typeof i10.CommonModule, typeof i11.
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NovoPickerModule, [typeof i1.NovoPickerElement, typeof i2.PickerResults, typeof i3.EntityPickerResult, typeof i3.EntityPickerResults, typeof i4.ChecklistPickerResults, typeof i5.GroupedMultiPickerResults, typeof i6.MixedMultiPickerResults, typeof i7.DistributionListPickerResults, typeof i8.WorkersCompCodesPickerResults, typeof i9.SkillsSpecialtyPickerResults], [typeof i10.CommonModule, typeof i11.NovoPipesModule, typeof i12.FormsModule, typeof i13.NovoCommonModule, typeof i14.NovoLoadingModule, typeof i15.NovoListModule, typeof i16.NovoOverlayModule, typeof i17.NovoSwitchModule], [typeof i1.NovoPickerElement, typeof i2.PickerResults, typeof i3.EntityPickerResult, typeof i3.EntityPickerResults, typeof i4.ChecklistPickerResults, typeof i5.GroupedMultiPickerResults, typeof i6.MixedMultiPickerResults, typeof i7.DistributionListPickerResults, typeof i8.WorkersCompCodesPickerResults, typeof i9.SkillsSpecialtyPickerResults]>;
|
|
21
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<NovoPickerModule>;
|
|
22
23
|
}
|
|
@@ -87,7 +87,7 @@ export declare class BasePickerResults {
|
|
|
87
87
|
*/
|
|
88
88
|
escapeRegexp(queryToEscape: any): any;
|
|
89
89
|
/**
|
|
90
|
-
* @
|
|
90
|
+
* @deprecated use highlight pipe
|
|
91
91
|
*/
|
|
92
92
|
highlight(match: any, query: any): any;
|
|
93
93
|
preselected(match: any): boolean;
|
|
@@ -14,7 +14,7 @@ export declare class EntityPickerResult {
|
|
|
14
14
|
*/
|
|
15
15
|
escapeRegexp(queryToEscape: any): any;
|
|
16
16
|
/**
|
|
17
|
-
* @
|
|
17
|
+
* @deprecated use highlight pipe
|
|
18
18
|
*/
|
|
19
19
|
highlight(match: any, query: any): any;
|
|
20
20
|
getIconForResult(result?: any): string;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlContainer, FormControl } from '@angular/forms';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { QueryBuilderService } from '../query-builder.service';
|
|
5
|
+
import { BaseFieldDef, FieldConfig, QueryFilterOutlet } from '../query-builder.types';
|
|
6
|
+
import { NovoLabelService } from '../../../services';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Provides a handle for the table to grab the view container's ng-container to insert data rows.
|
|
10
|
+
* @docs-private
|
|
11
|
+
*/
|
|
12
|
+
export declare class ConditionInputOutlet implements QueryFilterOutlet {
|
|
13
|
+
viewContainer: ViewContainerRef;
|
|
14
|
+
elementRef: ElementRef;
|
|
15
|
+
constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConditionInputOutlet, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConditionInputOutlet, "[conditionInputOutlet]", never, {}, {}, never>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Provides a handle for the table to grab the view container's ng-container to insert data rows.
|
|
21
|
+
* @docs-private
|
|
22
|
+
*/
|
|
23
|
+
export declare class ConditionOperatorOutlet implements QueryFilterOutlet {
|
|
24
|
+
viewContainer: ViewContainerRef;
|
|
25
|
+
elementRef: ElementRef;
|
|
26
|
+
constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConditionOperatorOutlet, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConditionOperatorOutlet, "[conditionOperatorOutlet]", never, {}, {}, never>;
|
|
29
|
+
}
|
|
30
|
+
export declare class ConditionBuilderComponent implements OnInit, AfterContentInit, AfterViewInit, OnDestroy {
|
|
31
|
+
labels: NovoLabelService;
|
|
32
|
+
private cdr;
|
|
33
|
+
private qbs;
|
|
34
|
+
private controlContainer;
|
|
35
|
+
_operatorOutlet: ConditionOperatorOutlet;
|
|
36
|
+
_inputOutlet: ConditionInputOutlet;
|
|
37
|
+
label: any;
|
|
38
|
+
isFirst: boolean;
|
|
39
|
+
andIndex: number;
|
|
40
|
+
groupIndex: number;
|
|
41
|
+
parentForm: AbstractControl;
|
|
42
|
+
fieldConfig: FieldConfig<BaseFieldDef>;
|
|
43
|
+
searches: Subscription;
|
|
44
|
+
results$: Promise<any[]>;
|
|
45
|
+
searchTerm: FormControl;
|
|
46
|
+
fieldDisplayWith: any;
|
|
47
|
+
private _lastContext;
|
|
48
|
+
/** Subject that emits when the component has been destroyed. */
|
|
49
|
+
private readonly _onDestroy;
|
|
50
|
+
constructor(labels: NovoLabelService, cdr: ChangeDetectorRef, qbs: QueryBuilderService, controlContainer: ControlContainer);
|
|
51
|
+
ngOnInit(): void;
|
|
52
|
+
ngAfterContentInit(): void;
|
|
53
|
+
ngAfterViewInit(): void;
|
|
54
|
+
ngOnDestroy(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Updates the Conditions "Field" Options to Change base on new Scope
|
|
57
|
+
* @param fieldConfig
|
|
58
|
+
*/
|
|
59
|
+
changeFieldOptions(fieldConfig: FieldConfig<BaseFieldDef>): void;
|
|
60
|
+
getField(): BaseFieldDef;
|
|
61
|
+
getDefaultField(): string;
|
|
62
|
+
onFieldSelect(): void;
|
|
63
|
+
private findDefinitionForField;
|
|
64
|
+
private createFieldTemplates;
|
|
65
|
+
private createFieldOperators;
|
|
66
|
+
private createFieldInput;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConditionBuilderComponent, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConditionBuilderComponent, "novo-condition-builder", never, { "label": "label"; "isFirst": "isFirst"; "andIndex": "andIndex"; "groupIndex": "groupIndex"; }, {}, never, ["*"]>;
|
|
69
|
+
}
|