@igo2/common 19.0.3 → 20.0.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/action/index.d.ts +194 -3
- package/backdrop/index.d.ts +20 -3
- package/badge/index.d.ts +44 -3
- package/clickout/index.d.ts +20 -3
- package/clone/index.d.ts +18 -3
- package/collapsible/index.d.ts +43 -3
- package/color/index.d.ts +38 -3
- package/confirm-dialog/index.d.ts +39 -5
- package/context-menu/index.d.ts +50 -3
- package/custom-html/index.d.ts +30 -3
- package/dom/index.d.ts +34 -3
- package/drag-drop/index.d.ts +124 -3
- package/dynamic-component/index.d.ts +186 -3
- package/entity/index.d.ts +1532 -3
- package/environment/index.d.ts +15 -5
- package/fesm2022/igo2-common-action.mjs +28 -38
- package/fesm2022/igo2-common-action.mjs.map +1 -1
- package/fesm2022/igo2-common-backdrop.mjs +7 -7
- package/fesm2022/igo2-common-backdrop.mjs.map +1 -1
- package/fesm2022/igo2-common-badge.mjs +10 -13
- package/fesm2022/igo2-common-badge.mjs.map +1 -1
- package/fesm2022/igo2-common-clickout.mjs +10 -13
- package/fesm2022/igo2-common-clickout.mjs.map +1 -1
- package/fesm2022/igo2-common-clone.mjs +7 -7
- package/fesm2022/igo2-common-clone.mjs.map +1 -1
- package/fesm2022/igo2-common-collapsible.mjs +14 -18
- package/fesm2022/igo2-common-collapsible.mjs.map +1 -1
- package/fesm2022/igo2-common-color.mjs +9 -9
- package/fesm2022/igo2-common-color.mjs.map +1 -1
- package/fesm2022/igo2-common-confirm-dialog.mjs +19 -26
- package/fesm2022/igo2-common-confirm-dialog.mjs.map +1 -1
- package/fesm2022/igo2-common-context-menu.mjs +16 -21
- package/fesm2022/igo2-common-context-menu.mjs.map +1 -1
- package/fesm2022/igo2-common-custom-html.mjs +14 -17
- package/fesm2022/igo2-common-custom-html.mjs.map +1 -1
- package/fesm2022/igo2-common-dom.mjs +11 -14
- package/fesm2022/igo2-common-dom.mjs.map +1 -1
- package/fesm2022/igo2-common-drag-drop.mjs +15 -17
- package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
- package/fesm2022/igo2-common-dynamic-component.mjs +20 -27
- package/fesm2022/igo2-common-dynamic-component.mjs.map +1 -1
- package/fesm2022/igo2-common-entity.mjs +69 -108
- package/fesm2022/igo2-common-entity.mjs.map +1 -1
- package/fesm2022/igo2-common-flexible.mjs +13 -18
- package/fesm2022/igo2-common-flexible.mjs.map +1 -1
- package/fesm2022/igo2-common-form.mjs +77 -112
- package/fesm2022/igo2-common-form.mjs.map +1 -1
- package/fesm2022/igo2-common-home-button.mjs +7 -7
- package/fesm2022/igo2-common-home-button.mjs.map +1 -1
- package/fesm2022/igo2-common-icon.mjs +14 -21
- package/fesm2022/igo2-common-icon.mjs.map +1 -1
- package/fesm2022/igo2-common-image.mjs +53 -57
- package/fesm2022/igo2-common-image.mjs.map +1 -1
- package/fesm2022/igo2-common-interactive-tour.mjs +43 -56
- package/fesm2022/igo2-common-interactive-tour.mjs.map +1 -1
- package/fesm2022/igo2-common-json-dialog.mjs +19 -28
- package/fesm2022/igo2-common-json-dialog.mjs.map +1 -1
- package/fesm2022/igo2-common-keyvalue.mjs +7 -7
- package/fesm2022/igo2-common-keyvalue.mjs.map +1 -1
- package/fesm2022/igo2-common-list.mjs +16 -23
- package/fesm2022/igo2-common-list.mjs.map +1 -1
- package/fesm2022/igo2-common-panel.mjs +9 -9
- package/fesm2022/igo2-common-panel.mjs.map +1 -1
- package/fesm2022/igo2-common-resizable-bar.mjs +6 -6
- package/fesm2022/igo2-common-resizable-bar.mjs.map +1 -1
- package/fesm2022/igo2-common-select-value-dialog.mjs +28 -44
- package/fesm2022/igo2-common-select-value-dialog.mjs.map +1 -1
- package/fesm2022/igo2-common-sidenav.mjs +10 -16
- package/fesm2022/igo2-common-sidenav.mjs.map +1 -1
- package/fesm2022/igo2-common-spinner.mjs +15 -21
- package/fesm2022/igo2-common-spinner.mjs.map +1 -1
- package/fesm2022/igo2-common-stop-propagation.mjs +10 -10
- package/fesm2022/igo2-common-stop-propagation.mjs.map +1 -1
- package/fesm2022/igo2-common-table.mjs +9 -11
- package/fesm2022/igo2-common-table.mjs.map +1 -1
- package/fesm2022/igo2-common-tool.mjs +16 -22
- package/fesm2022/igo2-common-tool.mjs.map +1 -1
- package/fesm2022/igo2-common-widget.mjs +19 -24
- package/fesm2022/igo2-common-widget.mjs.map +1 -1
- package/fesm2022/igo2-common-workspace.mjs +20 -20
- package/fesm2022/igo2-common-workspace.mjs.map +1 -1
- package/flexible/index.d.ts +54 -3
- package/form/index.d.ts +429 -3
- package/home-button/index.d.ts +18 -3
- package/icon/index.d.ts +42 -3
- package/image/index.d.ts +35 -3
- package/index.d.ts +16 -5
- package/interactive-tour/index.d.ts +116 -5
- package/json-dialog/index.d.ts +34 -5
- package/keyvalue/index.d.ts +18 -3
- package/list/index.d.ts +102 -3
- package/package.json +10 -13
- package/panel/index.d.ts +20 -3
- package/resizable-bar/index.d.ts +37 -5
- package/select-value-dialog/index.d.ts +65 -5
- package/sidenav/index.d.ts +29 -3
- package/spinner/index.d.ts +51 -3
- package/src/style/partial/common-utils.scss +1 -1
- package/stop-propagation/index.d.ts +26 -3
- package/table/index.d.ts +105 -3
- package/tool/index.d.ts +289 -3
- package/widget/index.d.ts +105 -3
- package/workspace/index.d.ts +237 -3
- package/action/action.module.d.ts +0 -10
- package/action/actionbar/actionbar-item.component.d.ts +0 -73
- package/action/actionbar/actionbar.component.d.ts +0 -148
- package/action/actionbar/actionbar.module.d.ts +0 -10
- package/action/public_api.d.ts +0 -4
- package/action/shared/action.enums.d.ts +0 -5
- package/action/shared/action.interfaces.d.ts +0 -16
- package/action/shared/index.d.ts +0 -3
- package/action/shared/store.d.ts +0 -8
- package/action/src/action.theming.scss +0 -9
- package/action/src/actionbar/actionbar-item.theming.scss +0 -20
- package/backdrop/backdrop.component.d.ts +0 -8
- package/backdrop/backdrop.module.d.ts +0 -12
- package/backdrop/public_api.d.ts +0 -2
- package/badge/badge-icon.directive.d.ts +0 -34
- package/badge/badge-icon.module.d.ts +0 -12
- package/badge/public_api.d.ts +0 -2
- package/clickout/clickout.directive.d.ts +0 -10
- package/clickout/clickout.module.d.ts +0 -12
- package/clickout/public_api.d.ts +0 -2
- package/clone/clone.module.d.ts +0 -12
- package/clone/clone.pipe.d.ts +0 -7
- package/clone/public_api.d.ts +0 -2
- package/collapsible/collapse.directive.d.ts +0 -19
- package/collapsible/collapsible.component.d.ts +0 -13
- package/collapsible/collapsible.module.d.ts +0 -13
- package/collapsible/public_api.d.ts +0 -6
- package/color/color-picker-form-field/color-picker-form-field.component.d.ts +0 -29
- package/color/color-picker-form-field/color-picker-form-field.module.d.ts +0 -10
- package/color/color-picker-form-field/index.d.ts +0 -2
- package/color/public_api.d.ts +0 -1
- package/confirm-dialog/confirm-dialog.component.d.ts +0 -12
- package/confirm-dialog/confirm-dialog.interface.d.ts +0 -4
- package/confirm-dialog/confirm-dialog.module.d.ts +0 -12
- package/confirm-dialog/confirm-dialog.service.d.ts +0 -11
- package/confirm-dialog/public_api.d.ts +0 -4
- package/context-menu/context-menu.directive.d.ts +0 -21
- package/context-menu/context-menu.module.d.ts +0 -13
- package/context-menu/long-press.directive.d.ts +0 -19
- package/context-menu/public_api.d.ts +0 -6
- package/custom-html/custom-html.component.d.ts +0 -8
- package/custom-html/custom-html.module.d.ts +0 -13
- package/custom-html/custom-html.pipe.d.ts +0 -10
- package/custom-html/public_api.d.ts +0 -6
- package/dom/dom.interfaces.d.ts +0 -10
- package/dom/dom.module.d.ts +0 -14
- package/dom/dom.service.d.ts +0 -10
- package/dom/public_api.d.ts +0 -3
- package/drag-drop/drag-drop.directive.d.ts +0 -14
- package/drag-drop/drag-drop.module.d.ts +0 -13
- package/drag-drop/public_api.d.ts +0 -3
- package/drag-drop/tree-drag-drop/index.d.ts +0 -2
- package/drag-drop/tree-drag-drop/tree-drag-drop.directive.d.ts +0 -85
- package/drag-drop/tree-drag-drop/tree-drag-drop.interface.d.ts +0 -15
- package/dynamic-component/dynamic-component.module.d.ts +0 -10
- package/dynamic-component/dynamic-outlet/dynamic-outlet.component.d.ts +0 -66
- package/dynamic-component/dynamic-outlet/dynamic-outlet.module.d.ts +0 -10
- package/dynamic-component/public_api.d.ts +0 -4
- package/dynamic-component/shared/dynamic-component.d.ts +0 -84
- package/dynamic-component/shared/dynamic-component.interfaces.d.ts +0 -3
- package/dynamic-component/shared/dynamic-component.service.d.ts +0 -18
- package/dynamic-component/shared/index.d.ts +0 -3
- package/entity/entity-selector/entity-selector.component.d.ts +0 -93
- package/entity/entity-selector/entity-selector.module.d.ts +0 -10
- package/entity/entity-selector/index.d.ts +0 -2
- package/entity/entity-table/entity-table-row.directive.d.ts +0 -69
- package/entity/entity-table/entity-table.component.d.ts +0 -330
- package/entity/entity-table/entity-table.module.d.ts +0 -10
- package/entity/entity-table/index.d.ts +0 -2
- package/entity/entity-table-paginator/entity-table-paginator.component.d.ts +0 -50
- package/entity/entity-table-paginator/entity-table-paginator.interface.d.ts +0 -8
- package/entity/entity-table-paginator/entity-table-paginator.module.d.ts +0 -10
- package/entity/entity-table-paginator/index.d.ts +0 -3
- package/entity/entity.module.d.ts +0 -16
- package/entity/public_api.d.ts +0 -5
- package/entity/shared/entity.enums.d.ts +0 -23
- package/entity/shared/entity.interfaces.d.ts +0 -92
- package/entity/shared/entity.utils.d.ts +0 -49
- package/entity/shared/index.d.ts +0 -9
- package/entity/shared/state.d.ts +0 -108
- package/entity/shared/store.d.ts +0 -180
- package/entity/shared/strategies/filter-custom-function.d.ts +0 -51
- package/entity/shared/strategies/filter-selection.d.ts +0 -48
- package/entity/shared/strategies/index.d.ts +0 -3
- package/entity/shared/strategies/strategy.d.ts +0 -56
- package/entity/shared/transaction.d.ts +0 -171
- package/entity/shared/view.d.ts +0 -193
- package/entity/shared/watcher.d.ts +0 -72
- package/entity/src/entity-selector/entity-selector.theming.scss +0 -21
- package/entity/src/entity-table/entity-table.theming.scss +0 -21
- package/entity/src/entity.theming.scss +0 -12
- package/environment/environment.interface.d.ts +0 -13
- package/environment/public_api.d.ts +0 -1
- package/flexible/flexible.component.d.ts +0 -42
- package/flexible/flexible.module.d.ts +0 -12
- package/flexible/flexible.type.d.ts +0 -2
- package/flexible/public_api.d.ts +0 -3
- package/form/form/form.component.d.ts +0 -46
- package/form/form/form.module.d.ts +0 -10
- package/form/form/index.d.ts +0 -2
- package/form/form-dialog/form-dialog.component.d.ts +0 -19
- package/form/form-dialog/form-dialog.interface.d.ts +0 -16
- package/form/form-dialog/form-dialog.module.d.ts +0 -16
- package/form/form-dialog/form-dialog.service.d.ts +0 -11
- package/form/form-dialog/index.d.ts +0 -4
- package/form/form-field/form-field-select.component.d.ts +0 -50
- package/form/form-field/form-field-text.component.d.ts +0 -49
- package/form/form-field/form-field-textarea.component.d.ts +0 -39
- package/form/form-field/form-field.component.d.ts +0 -29
- package/form/form-field/form-field.directive.d.ts +0 -5
- package/form/form-field/form-field.module.d.ts +0 -13
- package/form/form-field/index.d.ts +0 -6
- package/form/form-group/form-group.component.d.ts +0 -44
- package/form/form-group/form-group.module.d.ts +0 -10
- package/form/form-group/index.d.ts +0 -2
- package/form/form.module.d.ts +0 -18
- package/form/public_api.d.ts +0 -6
- package/form/shared/form-field-component.d.ts +0 -1
- package/form/shared/form-field.service.d.ts +0 -16
- package/form/shared/form.interfaces.d.ts +0 -60
- package/form/shared/form.service.d.ts +0 -15
- package/form/shared/form.utils.d.ts +0 -7
- package/form/shared/index.d.ts +0 -5
- package/home-button/home-button.component.d.ts +0 -8
- package/home-button/home-button.module.d.ts +0 -10
- package/home-button/public_api.d.ts +0 -2
- package/icon/icon/icon.component.d.ts +0 -15
- package/icon/icon.provider.d.ts +0 -4
- package/icon/public_api.d.ts +0 -3
- package/icon/shared/icon.interface.d.ts +0 -4
- package/icon/shared/icon.service.d.ts +0 -12
- package/icon/shared/icons.d.ts +0 -11
- package/icon/shared/index.d.ts +0 -3
- package/image/image-error.directive.d.ts +0 -11
- package/image/image.module.d.ts +0 -13
- package/image/public_api.d.ts +0 -6
- package/image/secure-image.pipe.d.ts +0 -13
- package/interactive-tour/interactive-tour.component.d.ts +0 -33
- package/interactive-tour/interactive-tour.interface.d.ts +0 -35
- package/interactive-tour/interactive-tour.loader.d.ts +0 -18
- package/interactive-tour/interactive-tour.module.d.ts +0 -7
- package/interactive-tour/interactive-tour.service.d.ts +0 -30
- package/interactive-tour/public_api.d.ts +0 -5
- package/json-dialog/json-dialog.component.d.ts +0 -13
- package/json-dialog/json-dialog.module.d.ts +0 -12
- package/json-dialog/json-dialog.service.d.ts +0 -10
- package/json-dialog/public_api.d.ts +0 -3
- package/keyvalue/keyvalue.module.d.ts +0 -12
- package/keyvalue/keyvalue.pipe.d.ts +0 -7
- package/keyvalue/public_api.d.ts +0 -2
- package/list/list-item.directive.d.ts +0 -43
- package/list/list.component.d.ts +0 -51
- package/list/list.module.d.ts +0 -13
- package/list/public_api.d.ts +0 -6
- package/panel/panel.component.d.ts +0 -10
- package/panel/panel.module.d.ts +0 -10
- package/panel/public_api.d.ts +0 -2
- package/panel/src/panel.theming.scss +0 -20
- package/public_api.d.ts +0 -16
- package/resizable-bar/public_api.d.ts +0 -2
- package/resizable-bar/resizable-bar.component.d.ts +0 -23
- package/resizable-bar/shared/resize.directive.d.ts +0 -12
- package/select-value-dialog/public_api.d.ts +0 -5
- package/select-value-dialog/select-value-check-radio-dialog.component.d.ts +0 -25
- package/select-value-dialog/select-value-dialog.enums.d.ts +0 -4
- package/select-value-dialog/select-value-dialog.interface.d.ts +0 -16
- package/select-value-dialog/select-value-dialog.module.d.ts +0 -12
- package/select-value-dialog/select-value-dialog.service.d.ts +0 -11
- package/sidenav/public_api.d.ts +0 -2
- package/sidenav/sidenav-shim.directive.d.ts +0 -20
- package/sidenav/sidenav.module.d.ts +0 -12
- package/spinner/public_api.d.ts +0 -3
- package/spinner/spinner-activity.directive.d.ts +0 -32
- package/spinner/spinner.component.d.ts +0 -11
- package/spinner/spinner.module.d.ts +0 -14
- package/src/common.theme.scss +0 -18
- package/stop-propagation/public_api.d.ts +0 -6
- package/stop-propagation/stop-drop-propagation.directive.d.ts +0 -6
- package/stop-propagation/stop-propagation.directive.d.ts +0 -6
- package/stop-propagation/stop-propagation.module.d.ts +0 -13
- package/table/public_api.d.ts +0 -6
- package/table/table-action-color.enum.d.ts +0 -5
- package/table/table-database.d.ts +0 -10
- package/table/table-datasource.d.ts +0 -18
- package/table/table-model.interface.d.ts +0 -24
- package/table/table.component.d.ts +0 -40
- package/table/table.module.d.ts +0 -12
- package/tool/public_api.d.ts +0 -3
- package/tool/shared/index.d.ts +0 -5
- package/tool/shared/tool-component.d.ts +0 -2
- package/tool/shared/tool.interface.d.ts +0 -16
- package/tool/shared/tool.service.d.ts +0 -28
- package/tool/shared/toolbox.d.ts +0 -96
- package/tool/shared/toolbox.enums.d.ts +0 -1
- package/tool/src/tool.theming.scss +0 -5
- package/tool/src/toolbox/toolbox.theming.scss +0 -22
- package/tool/tool.module.d.ts +0 -15
- package/tool/toolbox/index.d.ts +0 -2
- package/tool/toolbox/toolbox.animation.d.ts +0 -2
- package/tool/toolbox/toolbox.component.d.ts +0 -126
- package/tool/toolbox/toolbox.module.d.ts +0 -10
- package/widget/public_api.d.ts +0 -3
- package/widget/shared/index.d.ts +0 -3
- package/widget/shared/widget.d.ts +0 -4
- package/widget/shared/widget.interfaces.d.ts +0 -12
- package/widget/shared/widget.service.d.ts +0 -10
- package/widget/widget-outlet/index.d.ts +0 -2
- package/widget/widget-outlet/widget-outlet.component.d.ts +0 -64
- package/widget/widget-outlet/widget-outlet.module.d.ts +0 -10
- package/widget/widget.module.d.ts +0 -10
- package/workspace/public_api.d.ts +0 -4
- package/workspace/shared/index.d.ts +0 -3
- package/workspace/shared/store.d.ts +0 -20
- package/workspace/shared/workspace.d.ts +0 -98
- package/workspace/shared/workspace.interfaces.d.ts +0 -9
- package/workspace/workspace-selector/index.d.ts +0 -2
- package/workspace/workspace-selector/workspace-selector.component.d.ts +0 -38
- package/workspace/workspace-selector/workspace-selector.module.d.ts +0 -10
- package/workspace/workspace-widget-outlet/index.d.ts +0 -2
- package/workspace/workspace-widget-outlet/workspace-widget-outlet.component.d.ts +0 -52
- package/workspace/workspace-widget-outlet/workspace-widget-outlet.module.d.ts +0 -10
- package/workspace/workspace.module.d.ts +0 -14
package/form/index.d.ts
CHANGED
|
@@ -1,5 +1,431 @@
|
|
|
1
|
+
import * as _igo2_common_form from '@igo2/common/form';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { OnChanges, EventEmitter, ElementRef, SimpleChanges, OnInit, ModuleWithProviders } from '@angular/core';
|
|
4
|
+
import { ValidatorFn, UntypedFormControl, UntypedFormGroup, AbstractControl } from '@angular/forms';
|
|
5
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
6
|
+
import * as i1 from '@angular/material/dialog';
|
|
7
|
+
import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
|
8
|
+
import { LanguageService } from '@igo2/core/language';
|
|
9
|
+
|
|
10
|
+
interface Form {
|
|
11
|
+
fields: FormField[];
|
|
12
|
+
groups: FormFieldGroup[];
|
|
13
|
+
control: UntypedFormGroup;
|
|
14
|
+
}
|
|
15
|
+
interface FormFieldGroupConfig {
|
|
16
|
+
name: string;
|
|
17
|
+
title?: string;
|
|
18
|
+
options?: FormFieldGroupOptions;
|
|
19
|
+
}
|
|
20
|
+
interface FormFieldGroup extends FormFieldGroupConfig {
|
|
21
|
+
fields: FormField[];
|
|
22
|
+
control: UntypedFormGroup;
|
|
23
|
+
}
|
|
24
|
+
interface FormFieldGroupOptions {
|
|
25
|
+
validator?: ValidatorFn;
|
|
26
|
+
errors?: Record<string, string>;
|
|
27
|
+
}
|
|
28
|
+
interface FormGroupsConfig {
|
|
29
|
+
name: string;
|
|
30
|
+
formFieldConfigs: FormFieldConfig[];
|
|
31
|
+
}
|
|
32
|
+
interface FormFieldConfig<T extends FormFieldInputs = FormFieldInputs> {
|
|
33
|
+
name: string;
|
|
34
|
+
title: string;
|
|
35
|
+
type?: string;
|
|
36
|
+
options?: FormFieldOptions;
|
|
37
|
+
inputs?: T;
|
|
38
|
+
subscribers?: FormFieldSubscribers;
|
|
39
|
+
}
|
|
40
|
+
type FormFieldSubscribers = Record<string, FormFieldSubscriber>;
|
|
41
|
+
type FormFieldSubscriber = (options: FormFieldSubscriberOptions) => void;
|
|
42
|
+
interface FormFieldSubscriberOptions {
|
|
43
|
+
field: FormField;
|
|
44
|
+
control: UntypedFormControl;
|
|
45
|
+
}
|
|
46
|
+
interface FormField<T extends FormFieldInputs = FormFieldInputs> extends FormFieldConfig<T> {
|
|
47
|
+
control: UntypedFormControl;
|
|
48
|
+
}
|
|
49
|
+
interface FormFieldOptions {
|
|
50
|
+
initialValue?: unknown;
|
|
51
|
+
validator?: ValidatorFn;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
visible?: boolean;
|
|
54
|
+
cols?: number;
|
|
55
|
+
errors?: Record<string, string>;
|
|
56
|
+
disableSwitch?: boolean;
|
|
57
|
+
}
|
|
58
|
+
interface FormFieldInputs {
|
|
59
|
+
}
|
|
60
|
+
interface FormFieldSelectInputs extends FormFieldInputs {
|
|
61
|
+
choices: BehaviorSubject<FormFieldSelectChoice[]> | FormFieldSelectChoice[];
|
|
62
|
+
}
|
|
63
|
+
interface FormFieldSelectChoice {
|
|
64
|
+
value: any;
|
|
65
|
+
title: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
1
68
|
/**
|
|
2
|
-
*
|
|
69
|
+
* A configurable form
|
|
3
70
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
71
|
+
declare class FormComponent implements OnChanges {
|
|
72
|
+
/**
|
|
73
|
+
* Form
|
|
74
|
+
*/
|
|
75
|
+
form: Form;
|
|
76
|
+
/**
|
|
77
|
+
* Input data
|
|
78
|
+
*/
|
|
79
|
+
formData: Record<string, any>;
|
|
80
|
+
/**
|
|
81
|
+
* Form autocomplete
|
|
82
|
+
*/
|
|
83
|
+
autocomplete: string;
|
|
84
|
+
/**
|
|
85
|
+
* Event emitted when the form is submitted
|
|
86
|
+
*/
|
|
87
|
+
submitForm: EventEmitter<Record<string, any>>;
|
|
88
|
+
buttons: ElementRef;
|
|
89
|
+
get hasButtons(): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Is the entity or the template change, recreate the form or repopulate it.
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
95
|
+
/**
|
|
96
|
+
* Transform the form data to a feature and emit an event
|
|
97
|
+
* @param event Form submit event
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
onSubmit(): void;
|
|
101
|
+
getData(): Record<string, any>;
|
|
102
|
+
private setData;
|
|
103
|
+
private updateDataWithFormField;
|
|
104
|
+
/**
|
|
105
|
+
* Clear form
|
|
106
|
+
*/
|
|
107
|
+
private clear;
|
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "igo-form", never, { "form": { "alias": "form"; "required": false; }; "formData": { "alias": "formData"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; }, { "submitForm": "submitForm"; }, never, ["*", "[formButtons]"], true, never>;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated import the FormComponent directly
|
|
114
|
+
*/
|
|
115
|
+
declare class IgoFormFormModule {
|
|
116
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormFormModule, never>;
|
|
117
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormFormModule, never, [typeof FormComponent], [typeof FormComponent]>;
|
|
118
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormFormModule>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* A configurable form, optionnally bound to an entity
|
|
123
|
+
* (for example in case of un update). Submitting that form
|
|
124
|
+
* emits an event with the form data but no other operation is performed.
|
|
125
|
+
*/
|
|
126
|
+
declare class FormGroupComponent {
|
|
127
|
+
/**
|
|
128
|
+
* Form field group
|
|
129
|
+
*/
|
|
130
|
+
group: FormFieldGroup;
|
|
131
|
+
/**
|
|
132
|
+
* Field placeholder
|
|
133
|
+
*/
|
|
134
|
+
errors: Record<string, string>;
|
|
135
|
+
/**
|
|
136
|
+
* Form group control
|
|
137
|
+
*/
|
|
138
|
+
get formControl(): UntypedFormGroup;
|
|
139
|
+
/**
|
|
140
|
+
* Return the number of columns a field should occupy.
|
|
141
|
+
* The maximum allowed is 2, even if the field config says more.
|
|
142
|
+
* @param field Field
|
|
143
|
+
* @returns Number of columns
|
|
144
|
+
* @internal
|
|
145
|
+
*/
|
|
146
|
+
getFieldColSpan(field: FormField): number;
|
|
147
|
+
/**
|
|
148
|
+
* Return the number of columns a field should occupy.
|
|
149
|
+
* The maximum allowed is 2, even if the field config says more.
|
|
150
|
+
* @param field Field
|
|
151
|
+
* @returns Number of columns
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
154
|
+
getFieldNgClass(field: FormField): Record<string, boolean>;
|
|
155
|
+
/**
|
|
156
|
+
* Get error message
|
|
157
|
+
*/
|
|
158
|
+
getErrorMessage(): string;
|
|
159
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupComponent, never>;
|
|
160
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupComponent, "igo-form-group", never, { "group": { "alias": "group"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @deprecated import the FormGroupComponent directly
|
|
165
|
+
*/
|
|
166
|
+
declare class IgoFormGroupModule {
|
|
167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormGroupModule, never>;
|
|
168
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormGroupModule, never, [typeof FormGroupComponent], [typeof FormGroupComponent]>;
|
|
169
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormGroupModule>;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* This component renders the proper form input based on
|
|
174
|
+
* the field configuration it receives.
|
|
175
|
+
*/
|
|
176
|
+
declare class FormFieldComponent {
|
|
177
|
+
private formFieldService;
|
|
178
|
+
/**
|
|
179
|
+
* Field configuration
|
|
180
|
+
*/
|
|
181
|
+
field: FormField;
|
|
182
|
+
/**
|
|
183
|
+
* Field inputs cache
|
|
184
|
+
*/
|
|
185
|
+
private fieldInputs;
|
|
186
|
+
/**
|
|
187
|
+
* Field subscribers cache
|
|
188
|
+
*/
|
|
189
|
+
private fieldSubscribers;
|
|
190
|
+
get fieldOptions(): FormFieldOptions;
|
|
191
|
+
getFieldComponent(): any;
|
|
192
|
+
getFieldInputs(): FormFieldInputs;
|
|
193
|
+
getFieldSubscribers(): FormFieldSubscribers;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
195
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "igo-form-field", never, { "field": { "alias": "field"; "required": false; }; }, {}, never, never, true, never>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* This component renders a select field
|
|
200
|
+
*/
|
|
201
|
+
declare class FormFieldSelectComponent implements OnInit {
|
|
202
|
+
readonly disabled$: BehaviorSubject<boolean>;
|
|
203
|
+
/**
|
|
204
|
+
* Select input choices
|
|
205
|
+
*/
|
|
206
|
+
set choices(value: FormFieldSelectChoice[]);
|
|
207
|
+
get choices(): FormFieldSelectChoice[];
|
|
208
|
+
readonly choices$: BehaviorSubject<FormFieldSelectChoice[]>;
|
|
209
|
+
/**
|
|
210
|
+
* If the select allow multiple selections
|
|
211
|
+
*/
|
|
212
|
+
multiple: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* The field's form control
|
|
215
|
+
*/
|
|
216
|
+
formControl: UntypedFormControl;
|
|
217
|
+
/**
|
|
218
|
+
* Field placeholder
|
|
219
|
+
*/
|
|
220
|
+
placeholder: string;
|
|
221
|
+
/**
|
|
222
|
+
* Field placeholder
|
|
223
|
+
*/
|
|
224
|
+
errors: Record<string, string>;
|
|
225
|
+
/**
|
|
226
|
+
* Wheter a disable switch should be available
|
|
227
|
+
*/
|
|
228
|
+
disableSwitch: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* Whether the field is required
|
|
231
|
+
*/
|
|
232
|
+
get required(): boolean;
|
|
233
|
+
ngOnInit(): void;
|
|
234
|
+
/**
|
|
235
|
+
* Get error message
|
|
236
|
+
*/
|
|
237
|
+
getErrorMessage(): string;
|
|
238
|
+
onDisableSwitchClick(): void;
|
|
239
|
+
private toggleDisabled;
|
|
240
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldSelectComponent, never>;
|
|
241
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldSelectComponent, "igo-form-field-select", never, { "choices": { "alias": "choices"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; }; }, {}, never, never, true, never>;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* This component renders a text field
|
|
246
|
+
*/
|
|
247
|
+
declare class FormFieldTextComponent implements OnInit {
|
|
248
|
+
private cdRef;
|
|
249
|
+
disabled$: BehaviorSubject<boolean>;
|
|
250
|
+
hide: boolean;
|
|
251
|
+
private lastTimeoutRequest;
|
|
252
|
+
/**
|
|
253
|
+
* The field's form control
|
|
254
|
+
*/
|
|
255
|
+
formControl: UntypedFormControl;
|
|
256
|
+
/**
|
|
257
|
+
* Field placeholder
|
|
258
|
+
*/
|
|
259
|
+
placeholder: string;
|
|
260
|
+
/**
|
|
261
|
+
* if the input is a password
|
|
262
|
+
*/
|
|
263
|
+
isPassword: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* Field placeholder
|
|
266
|
+
*/
|
|
267
|
+
errors: Record<string, string>;
|
|
268
|
+
/**
|
|
269
|
+
* Wheter a disable switch should be available
|
|
270
|
+
*/
|
|
271
|
+
disableSwitch: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Whether the field is required
|
|
274
|
+
*/
|
|
275
|
+
get required(): boolean;
|
|
276
|
+
ngOnInit(): void;
|
|
277
|
+
/**
|
|
278
|
+
* Get error message
|
|
279
|
+
*/
|
|
280
|
+
getErrorMessage(): string;
|
|
281
|
+
onDisableSwitchClick(): void;
|
|
282
|
+
private toggleDisabled;
|
|
283
|
+
togglePassword(): void;
|
|
284
|
+
delayedHide(delayMS?: number): void;
|
|
285
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTextComponent, never>;
|
|
286
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextComponent, "igo-form-field-text", never, { "formControl": { "alias": "formControl"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "isPassword": { "alias": "isPassword"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; }; }, {}, never, never, true, never>;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* This component renders a textarea field
|
|
291
|
+
*/
|
|
292
|
+
declare class FormFieldTextareaComponent implements OnInit {
|
|
293
|
+
disabled$: BehaviorSubject<boolean>;
|
|
294
|
+
/**
|
|
295
|
+
* The field's form control
|
|
296
|
+
*/
|
|
297
|
+
formControl: UntypedFormControl;
|
|
298
|
+
/**
|
|
299
|
+
* Field placeholder
|
|
300
|
+
*/
|
|
301
|
+
placeholder: string;
|
|
302
|
+
/**
|
|
303
|
+
* Field placeholder
|
|
304
|
+
*/
|
|
305
|
+
errors: Record<string, string>;
|
|
306
|
+
/**
|
|
307
|
+
* Wheter a disable switch should be available
|
|
308
|
+
*/
|
|
309
|
+
disableSwitch: boolean;
|
|
310
|
+
/**
|
|
311
|
+
* Whether the field is required
|
|
312
|
+
*/
|
|
313
|
+
get required(): boolean;
|
|
314
|
+
ngOnInit(): void;
|
|
315
|
+
/**
|
|
316
|
+
* Get error message
|
|
317
|
+
*/
|
|
318
|
+
getErrorMessage(): string;
|
|
319
|
+
onDisableSwitchClick(): void;
|
|
320
|
+
private toggleDisabled;
|
|
321
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTextareaComponent, never>;
|
|
322
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextareaComponent, "igo-form-field-textarea", never, { "formControl": { "alias": "formControl"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; }; }, {}, never, never, true, never>;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
declare const FORM_DIRECTIVES: readonly [typeof _igo2_common_form.FormFieldComponent, typeof _igo2_common_form.FormFieldSelectComponent, typeof _igo2_common_form.FormFieldTextComponent, typeof _igo2_common_form.FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent];
|
|
326
|
+
/**
|
|
327
|
+
* @deprecated import the components directly or FORM_DIRECTIVES for every components/directives
|
|
328
|
+
*/
|
|
329
|
+
declare class IgoFormModule {
|
|
330
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormModule, never>;
|
|
331
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormModule, never, [typeof FormFieldComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent], [typeof FormFieldComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent]>;
|
|
332
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormModule>;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
declare function formControlIsRequired(control: AbstractControl): boolean;
|
|
336
|
+
declare function getDefaultErrorMessages(): Record<string, string>;
|
|
337
|
+
declare function getControlErrorMessage(control: AbstractControl, messages: Record<string, string>): string;
|
|
338
|
+
declare function getAllFormFields(form: Form): FormField[];
|
|
339
|
+
declare function getFormFieldByName(form: Form, name: string): FormField;
|
|
340
|
+
|
|
341
|
+
declare class FormService {
|
|
342
|
+
private formBuilder;
|
|
343
|
+
form(fields: FormField[], groups: FormFieldGroup[]): Form;
|
|
344
|
+
group(config: FormFieldGroupConfig, fields: FormField[]): FormFieldGroup;
|
|
345
|
+
field(config: FormFieldConfig): FormField;
|
|
346
|
+
extendFieldConfig(config: FormFieldConfig, partial: Partial<FormFieldConfig>): FormFieldConfig;
|
|
347
|
+
private getValidators;
|
|
348
|
+
private getValidator;
|
|
349
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
|
|
350
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormService>;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Service where all available form fields are registered.
|
|
355
|
+
*/
|
|
356
|
+
declare class FormFieldService {
|
|
357
|
+
static fields: Record<string, any>;
|
|
358
|
+
static register(type: string, component: any): void;
|
|
359
|
+
/**
|
|
360
|
+
* Return field component by type
|
|
361
|
+
* @param type Field type
|
|
362
|
+
* @returns Field component
|
|
363
|
+
*/
|
|
364
|
+
getFieldByType(type: string): any;
|
|
365
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldService, never>;
|
|
366
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormFieldService>;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
declare function IgoFormFieldComponent(type: string): (cls: any) => any;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* @deprecated import the components directly or FORM_FIELD_DIRECTIVES for every components/directives
|
|
373
|
+
*/
|
|
374
|
+
declare class IgoFormFieldModule {
|
|
375
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormFieldModule, never>;
|
|
376
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormFieldModule, never, [typeof FormFieldComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent], [typeof FormFieldComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent]>;
|
|
377
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormFieldModule>;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
declare const FORM_FIELD_DIRECTIVES: readonly [typeof FormFieldComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent];
|
|
381
|
+
|
|
382
|
+
interface FormDialogFormConfig {
|
|
383
|
+
formFieldConfigs?: FormFieldConfig[];
|
|
384
|
+
formGroupsConfigs?: FormGroupsConfig[];
|
|
385
|
+
}
|
|
386
|
+
interface FormDialogData extends FormDialogOptions, FormDialogFormConfig {
|
|
387
|
+
}
|
|
388
|
+
interface FormDialogOptions extends MatDialogConfig {
|
|
389
|
+
data$?: BehaviorSubject<Record<string, any>>;
|
|
390
|
+
title?: string;
|
|
391
|
+
processButtonText?: string;
|
|
392
|
+
cancelButtonText?: string;
|
|
393
|
+
notice?: string;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
declare class FormDialogComponent {
|
|
397
|
+
languageService: LanguageService;
|
|
398
|
+
dialogRef: MatDialogRef<FormDialogComponent, any>;
|
|
399
|
+
private formService;
|
|
400
|
+
data: FormDialogData;
|
|
401
|
+
form$: BehaviorSubject<Form>;
|
|
402
|
+
data$: BehaviorSubject<Record<string, any>>;
|
|
403
|
+
constructor();
|
|
404
|
+
onSubmit(data: Record<string, any>): void;
|
|
405
|
+
cancel(): void;
|
|
406
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogComponent, never>;
|
|
407
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormDialogComponent, "igo-form-dialog", never, {}, {}, never, never, true, never>;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* @deprecated import the FlexibleComponent directly
|
|
412
|
+
*/
|
|
413
|
+
declare class IgoFormDialogModule {
|
|
414
|
+
/**
|
|
415
|
+
* @deprecated it has no effect
|
|
416
|
+
*/
|
|
417
|
+
static forRoot(): ModuleWithProviders<IgoFormDialogModule>;
|
|
418
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormDialogModule, never>;
|
|
419
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormDialogModule, never, [typeof i1.MatDialogModule, typeof FormDialogComponent], [typeof FormDialogComponent]>;
|
|
420
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormDialogModule>;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
declare class FormDialogService {
|
|
424
|
+
private dialog;
|
|
425
|
+
open(formDialogConfig?: FormDialogFormConfig, options?: FormDialogOptions): Observable<Record<string, any>>;
|
|
426
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogService, never>;
|
|
427
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormDialogService>;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export { FORM_DIRECTIVES, FORM_FIELD_DIRECTIVES, FormComponent, FormDialogComponent, FormDialogService, FormFieldComponent, FormFieldSelectComponent, FormFieldService, FormFieldTextComponent, FormFieldTextareaComponent, FormGroupComponent, FormService, IgoFormDialogModule, IgoFormFieldComponent, IgoFormFieldModule, IgoFormFormModule, IgoFormGroupModule, IgoFormModule, formControlIsRequired, getAllFormFields, getControlErrorMessage, getDefaultErrorMessages, getFormFieldByName };
|
|
431
|
+
export type { Form, FormDialogData, FormDialogFormConfig, FormDialogOptions, FormField, FormFieldConfig, FormFieldGroup, FormFieldGroupConfig, FormFieldGroupOptions, FormFieldInputs, FormFieldOptions, FormFieldSelectChoice, FormFieldSelectInputs, FormFieldSubscribers, FormGroupsConfig };
|
package/home-button/index.d.ts
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class HomeButtonComponent {
|
|
5
|
+
unselectButton: EventEmitter<any>;
|
|
6
|
+
onUnselectButtonClick(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HomeButtonComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HomeButtonComponent, "igo-home-button", never, {}, { "unselectButton": "unselectButton"; }, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
|
|
1
11
|
/**
|
|
2
|
-
*
|
|
12
|
+
* @deprecated import the HomeButtonComponent directly
|
|
3
13
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
14
|
+
declare class IgoHomeButtonModule {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoHomeButtonModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoHomeButtonModule, never, [typeof HomeButtonComponent], [typeof HomeButtonComponent]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoHomeButtonModule>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { HomeButtonComponent, IgoHomeButtonModule };
|
package/icon/index.d.ts
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
interface IconSvg {
|
|
5
|
+
name: string;
|
|
6
|
+
svg: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
/**
|
|
2
|
-
*
|
|
10
|
+
* Source: https://pictogrammers.com/library/mdi/
|
|
3
11
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
12
|
+
declare const MICROSOFT_ICON: IconSvg;
|
|
13
|
+
declare const KEYBOARD_ESC_ICON: IconSvg;
|
|
14
|
+
declare const ENGINE_ICON: IconSvg;
|
|
15
|
+
declare const SELECTION_MARKER_ICON: IconSvg;
|
|
16
|
+
declare const PRESENTATION_PLAY_ICON: IconSvg;
|
|
17
|
+
declare const CIRCLE_SMALL_ICON: IconSvg;
|
|
18
|
+
declare const VECTOR_SQUARE_ICON: IconSvg;
|
|
19
|
+
|
|
20
|
+
declare class IconService {
|
|
21
|
+
private iconRegistry;
|
|
22
|
+
private sanitizer;
|
|
23
|
+
registerSvg(icon: IconSvg): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type MaterialSymbolStyle = 'outlined' | 'rounded' | 'sharp';
|
|
29
|
+
declare function provideIcon(style?: MaterialSymbolStyle): EnvironmentProviders;
|
|
30
|
+
|
|
31
|
+
declare class IgoIconComponent {
|
|
32
|
+
private iconService;
|
|
33
|
+
color: string | null | undefined;
|
|
34
|
+
set icon(icon: string | IconSvg);
|
|
35
|
+
get icon(): string | IconSvg;
|
|
36
|
+
private _icon;
|
|
37
|
+
registerSvg(icon: IconSvg): void;
|
|
38
|
+
isSvg(icon: string | IconSvg): icon is IconSvg;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoIconComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IgoIconComponent, "igo-icon", never, { "color": { "alias": "color"; "required": false; }; "icon": { "alias": "icon"; "required": true; }; }, {}, never, never, true, never>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { CIRCLE_SMALL_ICON, ENGINE_ICON, IconService, IgoIconComponent, KEYBOARD_ESC_ICON, MICROSOFT_ICON, PRESENTATION_PLAY_ICON, SELECTION_MARKER_ICON, VECTOR_SQUARE_ICON, provideIcon };
|
|
44
|
+
export type { IconSvg };
|
package/image/index.d.ts
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { PipeTransform, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { HttpClient } from '@angular/common/http';
|
|
5
|
+
|
|
6
|
+
declare class ImageErrorDirective {
|
|
7
|
+
private el;
|
|
8
|
+
errorImageUrl: string;
|
|
9
|
+
hideError: boolean;
|
|
10
|
+
onError(event: any): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageErrorDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ImageErrorDirective, "[igoImageError]", never, { "errorImageUrl": { "alias": "errorImageUrl"; "required": false; }; "hideError": { "alias": "hideError"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class SecureImagePipe implements PipeTransform {
|
|
16
|
+
private http;
|
|
17
|
+
private configService;
|
|
18
|
+
transform(url: string): Observable<string>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SecureImagePipe, never>;
|
|
20
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SecureImagePipe, "secureImage", true>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare function fetchImageFromDepotUrl(url: string, depotUrl: string, http: HttpClient): Observable<string>;
|
|
24
|
+
|
|
1
25
|
/**
|
|
2
|
-
*
|
|
26
|
+
* @deprecated import the components/directives directly or IMAGE_DIRECTIVES for the set
|
|
3
27
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
28
|
+
declare class IgoImageModule {
|
|
29
|
+
static forRoot(): ModuleWithProviders<IgoImageModule>;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoImageModule, never>;
|
|
31
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoImageModule, never, [typeof SecureImagePipe, typeof ImageErrorDirective], [typeof SecureImagePipe, typeof ImageErrorDirective]>;
|
|
32
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoImageModule>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare const IMAGE_DIRECTIVES: readonly [typeof SecureImagePipe, typeof ImageErrorDirective];
|
|
36
|
+
|
|
37
|
+
export { IMAGE_DIRECTIVES, IgoImageModule, ImageErrorDirective, SecureImagePipe, fetchImageFromDepotUrl };
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
1
|
+
export { IgoHomeButtonModule } from '@igo2/common/home-button';
|
|
2
|
+
export { IgoImageModule } from '@igo2/common/image';
|
|
3
|
+
export { IgoInteractiveTourModule } from '@igo2/common/interactive-tour';
|
|
4
|
+
export { IgoJsonDialogModule } from '@igo2/common/json-dialog';
|
|
5
|
+
export { IgoKeyValueModule } from '@igo2/common/keyvalue';
|
|
6
|
+
export { IgoFormDialogModule, IgoFormFieldModule, IgoFormFormModule, IgoFormGroupModule, IgoFormModule } from '@igo2/common/form';
|
|
7
|
+
export { IgoListModule } from '@igo2/common/list';
|
|
8
|
+
export { IgoPanelModule } from '@igo2/common/panel';
|
|
9
|
+
export { IgoSelectValueDialogModule } from '@igo2/common/select-value-dialog';
|
|
10
|
+
export { IgoSidenavModule } from '@igo2/common/sidenav';
|
|
11
|
+
export { IgoSpinnerModule } from '@igo2/common/spinner';
|
|
12
|
+
export { IgoStopPropagationModule } from '@igo2/common/stop-propagation';
|
|
13
|
+
export { IgoTableModule } from '@igo2/common/table';
|
|
14
|
+
export { IgoToolModule, IgoToolboxModule } from '@igo2/common/tool';
|
|
15
|
+
export { IgoWidgetModule, IgoWidgetOutletModule } from '@igo2/common/widget';
|
|
16
|
+
export { IgoWorkspaceModule, IgoWorkspaceSelectorModule, IgoWorkspaceWidgetOutletModule } from '@igo2/common/workspace';
|