@ngneers/controls 0.0.1-pre1 → 0.0.1-pre2
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/LICENSE +21 -0
- package/fesm2022/ngneers-controls-accordion.mjs +194 -0
- package/fesm2022/ngneers-controls-accordion.mjs.map +1 -0
- package/fesm2022/ngneers-controls-api-ng.mjs +668 -0
- package/fesm2022/ngneers-controls-api-ng.mjs.map +1 -0
- package/fesm2022/ngneers-controls-api.mjs +256 -227
- package/fesm2022/ngneers-controls-api.mjs.map +1 -1
- package/fesm2022/ngneers-controls-avatar.mjs +70 -0
- package/fesm2022/ngneers-controls-avatar.mjs.map +1 -0
- package/fesm2022/ngneers-controls-base.mjs +397 -0
- package/fesm2022/ngneers-controls-base.mjs.map +1 -0
- package/fesm2022/ngneers-controls-breadcrumb.mjs +74 -0
- package/fesm2022/ngneers-controls-breadcrumb.mjs.map +1 -0
- package/fesm2022/ngneers-controls-button-group.mjs +51 -0
- package/fesm2022/ngneers-controls-button-group.mjs.map +1 -0
- package/fesm2022/ngneers-controls-button.mjs +62 -0
- package/fesm2022/ngneers-controls-button.mjs.map +1 -0
- package/fesm2022/ngneers-controls-calendar-time-C7UnIFzU.mjs +63 -0
- package/fesm2022/ngneers-controls-calendar-time-C7UnIFzU.mjs.map +1 -0
- package/fesm2022/ngneers-controls-calendar.mjs +468 -0
- package/fesm2022/ngneers-controls-calendar.mjs.map +1 -0
- package/fesm2022/ngneers-controls-checkbox.mjs +58 -0
- package/fesm2022/ngneers-controls-checkbox.mjs.map +1 -0
- package/fesm2022/ngneers-controls-chip.mjs +52 -0
- package/fesm2022/ngneers-controls-chip.mjs.map +1 -0
- package/fesm2022/ngneers-controls-defer.mjs +43 -0
- package/fesm2022/ngneers-controls-defer.mjs.map +1 -0
- package/fesm2022/ngneers-controls-dialog.mjs +329 -33
- package/fesm2022/ngneers-controls-dialog.mjs.map +1 -1
- package/fesm2022/ngneers-controls-directives.mjs +443 -0
- package/fesm2022/ngneers-controls-directives.mjs.map +1 -0
- package/fesm2022/ngneers-controls-drawer.mjs +232 -0
- package/fesm2022/ngneers-controls-drawer.mjs.map +1 -0
- package/fesm2022/ngneers-controls-edit-inplace.mjs +120 -0
- package/fesm2022/ngneers-controls-edit-inplace.mjs.map +1 -0
- package/fesm2022/ngneers-controls-filter.mjs +516 -0
- package/fesm2022/ngneers-controls-filter.mjs.map +1 -0
- package/fesm2022/ngneers-controls-i18n-de-CdTPeBiR.mjs +87 -0
- package/fesm2022/ngneers-controls-i18n-de-CdTPeBiR.mjs.map +1 -0
- package/fesm2022/ngneers-controls-i18n-en-Cfp2pOLY.mjs +87 -0
- package/fesm2022/ngneers-controls-i18n-en-Cfp2pOLY.mjs.map +1 -0
- package/fesm2022/ngneers-controls-i18n.mjs +57 -0
- package/fesm2022/ngneers-controls-i18n.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-calendar-z5xA9wTT.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-calendar-z5xA9wTT.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-check-DdAQ9k-T.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-check-DdAQ9k-T.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-chevron_down-HO-z-xOr.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-chevron_down-HO-z-xOr.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-chevron_left-CC5psi16.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-chevron_left-CC5psi16.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-chevron_right-BRxlzx4G.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-chevron_right-BRxlzx4G.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-chevron_up-cqhPO7g2.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-chevron_up-cqhPO7g2.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-ellipsis-DXIGA1sk.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-ellipsis-DXIGA1sk.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-filter-oU7E6Xgr.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-filter-oU7E6Xgr.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-filter_solid-CqIKuR4N.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-filter_solid-CqIKuR4N.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-magnifying_glass-T4Hzbkig.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-magnifying_glass-T4Hzbkig.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-minus-oGDEFO4E.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-minus-oGDEFO4E.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-sort-CRD4tafz.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-sort-CRD4tafz.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-sort_down-DiFB1P6R.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-sort_down-DiFB1P6R.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-sort_up-Bq_q3hIi.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-sort_up-Bq_q3hIi.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon-xmark-BZKZORiu.mjs +4 -0
- package/fesm2022/ngneers-controls-icon-xmark-BZKZORiu.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon.mjs +60 -18
- package/fesm2022/ngneers-controls-icon.mjs.map +1 -1
- package/fesm2022/ngneers-controls-inplace.mjs +107 -0
- package/fesm2022/ngneers-controls-inplace.mjs.map +1 -0
- package/fesm2022/ngneers-controls-input-field.mjs +141 -0
- package/fesm2022/ngneers-controls-input-field.mjs.map +1 -0
- package/fesm2022/ngneers-controls-input-mask.mjs +282 -0
- package/fesm2022/ngneers-controls-input-mask.mjs.map +1 -0
- package/fesm2022/ngneers-controls-input.mjs +69 -0
- package/fesm2022/ngneers-controls-input.mjs.map +1 -0
- package/fesm2022/ngneers-controls-item-view.mjs +441 -0
- package/fesm2022/ngneers-controls-item-view.mjs.map +1 -0
- package/fesm2022/ngneers-controls-list-box.mjs +157 -53
- package/fesm2022/ngneers-controls-list-box.mjs.map +1 -1
- package/fesm2022/ngneers-controls-menu.mjs +332 -0
- package/fesm2022/ngneers-controls-menu.mjs.map +1 -0
- package/fesm2022/ngneers-controls-message.mjs +29 -0
- package/fesm2022/ngneers-controls-message.mjs.map +1 -0
- package/fesm2022/ngneers-controls-paginator.mjs +111 -0
- package/fesm2022/ngneers-controls-paginator.mjs.map +1 -0
- package/fesm2022/ngneers-controls-popover.mjs +129 -40
- package/fesm2022/ngneers-controls-popover.mjs.map +1 -1
- package/fesm2022/ngneers-controls-progress.mjs +82 -0
- package/fesm2022/ngneers-controls-progress.mjs.map +1 -0
- package/fesm2022/ngneers-controls-scroller.mjs +155 -78
- package/fesm2022/ngneers-controls-scroller.mjs.map +1 -1
- package/fesm2022/ngneers-controls-select-button.mjs +55 -0
- package/fesm2022/ngneers-controls-select-button.mjs.map +1 -0
- package/fesm2022/ngneers-controls-select.mjs +313 -103
- package/fesm2022/ngneers-controls-select.mjs.map +1 -1
- package/fesm2022/ngneers-controls-slider.mjs +155 -0
- package/fesm2022/ngneers-controls-slider.mjs.map +1 -0
- package/fesm2022/ngneers-controls-spinner.mjs +169 -0
- package/fesm2022/ngneers-controls-spinner.mjs.map +1 -0
- package/fesm2022/ngneers-controls-splitter.mjs +717 -0
- package/fesm2022/ngneers-controls-splitter.mjs.map +1 -0
- package/fesm2022/ngneers-controls-switch.mjs +39 -0
- package/fesm2022/ngneers-controls-switch.mjs.map +1 -0
- package/fesm2022/ngneers-controls-table.mjs +379 -0
- package/fesm2022/ngneers-controls-table.mjs.map +1 -0
- package/fesm2022/ngneers-controls-tabs.mjs +287 -0
- package/fesm2022/ngneers-controls-tabs.mjs.map +1 -0
- package/fesm2022/ngneers-controls-tag.mjs +29 -0
- package/fesm2022/ngneers-controls-tag.mjs.map +1 -0
- package/fesm2022/ngneers-controls-toast.mjs +184 -0
- package/fesm2022/ngneers-controls-toast.mjs.map +1 -0
- package/fesm2022/ngneers-controls-toggle-button.mjs +65 -0
- package/fesm2022/ngneers-controls-toggle-button.mjs.map +1 -0
- package/fesm2022/ngneers-controls-tooltip.mjs +454 -0
- package/fesm2022/ngneers-controls-tooltip.mjs.map +1 -0
- package/fesm2022/ngneers-controls-utils-ng.mjs +227 -0
- package/fesm2022/ngneers-controls-utils-ng.mjs.map +1 -0
- package/fesm2022/ngneers-controls-utils.mjs +217 -60
- package/fesm2022/ngneers-controls-utils.mjs.map +1 -1
- package/fesm2022/ngneers-controls.mjs.map +1 -1
- package/package.json +167 -32
- package/types/ngneers-controls-accordion.d.ts +114 -0
- package/types/ngneers-controls-api-ng.d.ts +291 -0
- package/types/ngneers-controls-api.d.ts +99 -0
- package/types/ngneers-controls-avatar.d.ts +50 -0
- package/types/ngneers-controls-base.d.ts +166 -0
- package/types/ngneers-controls-breadcrumb.d.ts +86 -0
- package/types/ngneers-controls-button-group.d.ts +30 -0
- package/types/ngneers-controls-button.d.ts +34 -0
- package/types/ngneers-controls-calendar.d.ts +275 -0
- package/types/ngneers-controls-checkbox.d.ts +38 -0
- package/types/ngneers-controls-chip.d.ts +37 -0
- package/types/ngneers-controls-defer.d.ts +22 -0
- package/types/ngneers-controls-dialog.d.ts +218 -0
- package/types/ngneers-controls-directives.d.ts +146 -0
- package/types/ngneers-controls-drawer.d.ts +220 -0
- package/types/ngneers-controls-edit-inplace.d.ts +182 -0
- package/types/ngneers-controls-filter.d.ts +304 -0
- package/types/ngneers-controls-i18n.d.ts +108 -0
- package/types/ngneers-controls-icon.d.ts +74 -0
- package/types/ngneers-controls-inplace.d.ts +95 -0
- package/types/ngneers-controls-input-field.d.ts +159 -0
- package/types/ngneers-controls-input-mask.d.ts +83 -0
- package/types/ngneers-controls-input.d.ts +27 -0
- package/types/ngneers-controls-item-view.d.ts +211 -0
- package/types/ngneers-controls-list-box.d.ts +216 -0
- package/types/ngneers-controls-menu.d.ts +178 -0
- package/types/ngneers-controls-message.d.ts +19 -0
- package/types/ngneers-controls-paginator.d.ts +162 -0
- package/types/ngneers-controls-popover.d.ts +101 -0
- package/types/ngneers-controls-progress.d.ts +44 -0
- package/types/ngneers-controls-scroller.d.ts +137 -0
- package/types/ngneers-controls-select-button.d.ts +37 -0
- package/types/ngneers-controls-select.d.ts +314 -0
- package/types/ngneers-controls-slider.d.ts +53 -0
- package/types/ngneers-controls-spinner.d.ts +105 -0
- package/types/ngneers-controls-splitter.d.ts +391 -0
- package/types/ngneers-controls-switch.d.ts +18 -0
- package/types/ngneers-controls-table.d.ts +157 -0
- package/types/ngneers-controls-tabs.d.ts +106 -0
- package/types/ngneers-controls-tag.d.ts +19 -0
- package/types/ngneers-controls-toast.d.ts +70 -0
- package/types/ngneers-controls-toggle-button.d.ts +46 -0
- package/types/ngneers-controls-tooltip.d.ts +188 -0
- package/types/ngneers-controls-utils-ng.d.ts +57 -0
- package/types/ngneers-controls-utils.d.ts +130 -0
- package/api/index.d.ts +0 -134
- package/custom-types/index.d.ts +0 -7
- package/dialog/index.d.ts +0 -43
- package/fesm2022/ngneers-controls-custom-types.mjs +0 -4
- package/fesm2022/ngneers-controls-custom-types.mjs.map +0 -1
- package/fesm2022/ngneers-controls-form-field.mjs +0 -33
- package/fesm2022/ngneers-controls-form-field.mjs.map +0 -1
- package/fesm2022/ngneers-controls-lazy-cacher.mjs +0 -30
- package/fesm2022/ngneers-controls-lazy-cacher.mjs.map +0 -1
- package/fesm2022/ngneers-controls-text-field.mjs +0 -23
- package/fesm2022/ngneers-controls-text-field.mjs.map +0 -1
- package/form-field/index.d.ts +0 -19
- package/icon/index.d.ts +0 -30
- package/lazy-cacher/index.d.ts +0 -14
- package/list-box/index.d.ts +0 -58
- package/popover/index.d.ts +0 -41
- package/scroller/index.d.ts +0 -95
- package/select/index.d.ts +0 -86
- package/text-field/index.d.ts +0 -10
- package/utils/index.d.ts +0 -36
- /package/{index.d.ts → types/ngneers-controls.d.ts} +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
3
|
+
import * as _ngneers_controls_themes from '@ngneers/controls-themes';
|
|
4
|
+
import { ValueControlBase } from '@ngneers/controls/base';
|
|
5
|
+
import { NgnDragInfo } from '@ngneers/controls/directives';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @category control
|
|
9
|
+
*/
|
|
10
|
+
declare class NgnSlider extends ValueControlBase<'slider', number> {
|
|
11
|
+
protected readonly theme: _ngneers_controls_api_ng.ControlTemplateInfo<_ngneers_controls_themes.ControlTemplate<"slider", ["root", "horizontal", "vertical", "track", "thumb", "fill", "invalid"], readonly _ngneers_controls_themes.ControlTemplate<string, string[], readonly any[]>[]>>;
|
|
12
|
+
private readonly _track;
|
|
13
|
+
/**
|
|
14
|
+
* The minimum value of the slider.
|
|
15
|
+
*/
|
|
16
|
+
readonly min: _angular_core.InputSignal<number>;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the slider is vertical.
|
|
19
|
+
*/
|
|
20
|
+
readonly vertical: _angular_core.InputSignal<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* The maximum value of the slider.
|
|
23
|
+
*/
|
|
24
|
+
readonly max: _angular_core.InputSignal<number>;
|
|
25
|
+
/**
|
|
26
|
+
* The step increment value.
|
|
27
|
+
*/
|
|
28
|
+
readonly step: _angular_core.InputSignal<number>;
|
|
29
|
+
/**
|
|
30
|
+
* The value text representation for accessibility.
|
|
31
|
+
* If both {@link valueText} and {@link valueTextFn} are provided, {@link valueText} takes precedence.
|
|
32
|
+
*/
|
|
33
|
+
readonly valueText: _angular_core.InputSignal<string | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* A function that generates the value text representation for accessibility.
|
|
36
|
+
* If both {@link valueText} and {@link valueTextFn} are provided, {@link valueText} takes precedence.
|
|
37
|
+
*/
|
|
38
|
+
readonly valueTextFn: _angular_core.InputSignal<((value: number) => string) | undefined>;
|
|
39
|
+
protected readonly left: _angular_core.Signal<number>;
|
|
40
|
+
constructor();
|
|
41
|
+
protected readonly valueTextValue: _angular_core.Signal<string | null>;
|
|
42
|
+
protected onDragged(delta: NgnDragInfo): void;
|
|
43
|
+
private dragToPosition;
|
|
44
|
+
private clampValue;
|
|
45
|
+
protected onDragEnd(): void;
|
|
46
|
+
protected onKeyDown(event: KeyboardEvent): void;
|
|
47
|
+
protected thumbClicked(event: PointerEvent): void;
|
|
48
|
+
protected trackClicked(event: PointerEvent): void;
|
|
49
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgnSlider, never>;
|
|
50
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgnSlider, "ngn-slider", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; "valueTextFn": { "alias": "valueTextFn"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { NgnSlider };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Injector, ElementRef, Signal } from '@angular/core';
|
|
3
|
+
import { CustomColor } from '@ngneers/controls-custom-types';
|
|
4
|
+
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
5
|
+
import * as _ngneers_controls_themes from '@ngneers/controls-themes';
|
|
6
|
+
import { NgnBase } from '@ngneers/controls/base';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Creates an instance of the spinner creator.
|
|
10
|
+
*
|
|
11
|
+
* @param injector The injector to use. Defaults to the current injector.
|
|
12
|
+
* @returns The spinner creator.
|
|
13
|
+
*/
|
|
14
|
+
declare function injectSpinnerCreator(injector?: Injector): NgnSpinnerCreator;
|
|
15
|
+
/**
|
|
16
|
+
* Creates and manages a conditional spinner based on a visibility signal.
|
|
17
|
+
* @param isVisible Signal that determines whether the spinner is visible.
|
|
18
|
+
* @param options Optional configuration for the spinner.
|
|
19
|
+
*/
|
|
20
|
+
declare function createConditionalSpinner(isVisible: Signal<boolean>, options?: {
|
|
21
|
+
/**
|
|
22
|
+
* Options for the spinner instance.
|
|
23
|
+
*/
|
|
24
|
+
spinnerOptions?: SpinnerOptions;
|
|
25
|
+
/**
|
|
26
|
+
* Debounce time in milliseconds or a boolean indicating whether to debounce (default is 200ms).
|
|
27
|
+
*/
|
|
28
|
+
debounce?: number | boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The target element where the spinner will be attached.
|
|
31
|
+
* If a string is provided, it will be used as a selector to find the element.
|
|
32
|
+
* If omitted, the spinner will be attached to the host element of the current injector.
|
|
33
|
+
*/
|
|
34
|
+
element?: SpinnerTarget;
|
|
35
|
+
/**
|
|
36
|
+
* The injector to use. If omitted, the current injector will be used.
|
|
37
|
+
*/
|
|
38
|
+
injector?: Injector;
|
|
39
|
+
}): void;
|
|
40
|
+
type SpinnerRef = {
|
|
41
|
+
/**
|
|
42
|
+
* Hides the spinner.
|
|
43
|
+
*/
|
|
44
|
+
hide: () => void;
|
|
45
|
+
};
|
|
46
|
+
type SpinnerTarget = HTMLElement | ElementRef<HTMLElement> | string;
|
|
47
|
+
type SpinnerOptions = {
|
|
48
|
+
/**
|
|
49
|
+
* The color of the spinner.
|
|
50
|
+
*/
|
|
51
|
+
color?: CustomColor;
|
|
52
|
+
/**
|
|
53
|
+
* The diameter of the spinner in pixels.
|
|
54
|
+
* @default 64
|
|
55
|
+
*/
|
|
56
|
+
size?: number;
|
|
57
|
+
/**
|
|
58
|
+
* The thickness of the spinner's stroke. If not provided,
|
|
59
|
+
* a default thickness derived from the size will be used.
|
|
60
|
+
* @default undefined
|
|
61
|
+
*/
|
|
62
|
+
thickness?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the spinner should be centered within its container.
|
|
65
|
+
* @default true
|
|
66
|
+
*/
|
|
67
|
+
centered?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Set aria busy attribute on the reference element while the spinner is visible.
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
ariaBusy?: boolean;
|
|
73
|
+
};
|
|
74
|
+
declare class NgnSpinnerCreator {
|
|
75
|
+
private readonly _vcr;
|
|
76
|
+
private readonly _destroyRef;
|
|
77
|
+
private _destroyed;
|
|
78
|
+
constructor();
|
|
79
|
+
/**
|
|
80
|
+
* Shows a spinner on the specified target element.
|
|
81
|
+
* @param target The target element or selector where the spinner will be attached.
|
|
82
|
+
* If a string is provided, it will be used as a selector to find the element.
|
|
83
|
+
* If the element is not found, the spinner will be retried until it is found.
|
|
84
|
+
* @param options Optional configuration for the spinner.
|
|
85
|
+
* @returns A reference to the spinner instance.
|
|
86
|
+
*/
|
|
87
|
+
show(target: SpinnerTarget, options?: SpinnerOptions): SpinnerRef;
|
|
88
|
+
private _tryAttach;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @category control
|
|
93
|
+
*/
|
|
94
|
+
declare class NgnSpinner extends NgnBase<'spinner'> {
|
|
95
|
+
protected readonly theme: _ngneers_controls_api_ng.ControlTemplateInfo<_ngneers_controls_themes.ControlTemplate<"spinner", ["root", "circle", "svg", `color-${string}`, "centered"], readonly _ngneers_controls_themes.ControlTemplate<string, string[], readonly any[]>[]>>;
|
|
96
|
+
readonly size: _angular_core.InputSignal<number>;
|
|
97
|
+
readonly thickness: _angular_core.InputSignal<string | undefined>;
|
|
98
|
+
readonly centered: _angular_core.InputSignal<boolean | undefined>;
|
|
99
|
+
protected readonly viewBox: _angular_core.Signal<string>;
|
|
100
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgnSpinner, never>;
|
|
101
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgnSpinner, "ngn-spinner", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "thickness": { "alias": "thickness"; "required": false; "isSignal": true; }; "centered": { "alias": "centered"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export { NgnSpinner, createConditionalSpinner, injectSpinnerCreator };
|
|
105
|
+
export type { SpinnerOptions, SpinnerRef, SpinnerTarget };
|
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal, EmbeddedViewRef, OnDestroy } from '@angular/core';
|
|
3
|
+
import * as _ngneers_controls_splitter from '@ngneers/controls/splitter';
|
|
4
|
+
import * as _ngneers_signal_translate from '@ngneers/signal-translate';
|
|
5
|
+
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
6
|
+
import * as _ngneers_controls_themes from '@ngneers/controls-themes';
|
|
7
|
+
import { NgnBase } from '@ngneers/controls/base';
|
|
8
|
+
import { NgnStateStorage } from '@ngneers/controls/utils-ng';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @category control
|
|
12
|
+
*/
|
|
13
|
+
declare class NgnSplitterPanel extends NgnBase<'splitter'> {
|
|
14
|
+
protected readonly theme: _ngneers_controls_api_ng.ControlTemplateInfo<_ngneers_controls_themes.ControlTemplate<"splitter", ["root", "horizontal", "vertical", "panel", "divider", "divider-handle", "dragging", "divider-dragging"], readonly _ngneers_controls_themes.ControlTemplate<string, string[], readonly any[]>[]>>;
|
|
15
|
+
private readonly _fallbackAreaName;
|
|
16
|
+
readonly name: _angular_core.InputSignal<string | null | undefined>;
|
|
17
|
+
readonly size: _angular_core.ModelSignal<`${number}px` | `${number}fr`>;
|
|
18
|
+
readonly minSize: _angular_core.ModelSignal<`${number}px` | `${number}%`>;
|
|
19
|
+
readonly maxSize: _angular_core.ModelSignal<`${number}px` | `${number}%`>;
|
|
20
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null | undefined>;
|
|
21
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string | null | undefined>;
|
|
22
|
+
protected readonly gridArea: _angular_core.Signal<string>;
|
|
23
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgnSplitterPanel, never>;
|
|
24
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgnSplitterPanel, "ngn-splitter-panel", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "minSize": { "alias": "minSize"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; "minSize": "minSizeChange"; "maxSize": "maxSizeChange"; }, never, ["*"], true, never>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type SplitterPanelSizeUnit = 'px' | 'fr';
|
|
28
|
+
type SplitterPanelSize<U extends SplitterPanelSizeUnit = SplitterPanelSizeUnit> = `${number}${U}`;
|
|
29
|
+
type SplitterPanelSizeLimitUnit = 'px' | '%';
|
|
30
|
+
type SplitterPanelSizeLimit<U extends SplitterPanelSizeLimitUnit = SplitterPanelSizeLimitUnit> = `${number}${U}`;
|
|
31
|
+
type SplitterLayout = 'horizontal' | 'vertical';
|
|
32
|
+
type _SplitterState = {
|
|
33
|
+
layout?: SplitterLayout;
|
|
34
|
+
panelOrder?: string[] | null;
|
|
35
|
+
panelSizes?: Record<string, SplitterPanelSize> | null;
|
|
36
|
+
};
|
|
37
|
+
type SplitterStateData = keyof _SplitterState;
|
|
38
|
+
type SplitterState = _SplitterState & {
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
type ExpandedSplitterPanelSize = {
|
|
43
|
+
value: number;
|
|
44
|
+
unit: SplitterPanelSizeUnit;
|
|
45
|
+
};
|
|
46
|
+
type ExpandedSplitterPanelSizeLimit = {
|
|
47
|
+
value: number;
|
|
48
|
+
unit: SplitterPanelSizeLimitUnit;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Type interface for the {@link SplitterCalculator} interface.
|
|
53
|
+
*/
|
|
54
|
+
interface SplitterCalculatorType {
|
|
55
|
+
new (splitter: NgnSplitter): SplitterCalculator;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Represents a calculator for the {@link NgnSplitter} component, handling panel sizes, drag events, and min/max size constraints.
|
|
59
|
+
* This interface defines the methods and properties required for managing the splitter's layout and behavior.
|
|
60
|
+
*/
|
|
61
|
+
interface SplitterCalculator {
|
|
62
|
+
/**
|
|
63
|
+
* Signal that provides the ordered list of panels in the splitter.
|
|
64
|
+
*/
|
|
65
|
+
orderedPanels: Signal<readonly NgnSplitterPanel[]>;
|
|
66
|
+
/**
|
|
67
|
+
* Signal that provides the grid template sizes for the splitter (to use in `grid-template-rows` or `grid-template-columns` CSS properties).
|
|
68
|
+
*/
|
|
69
|
+
gridTemplateSizes: Signal<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Signal that provides the grid template areas for the splitter (to use in `grid-template-areas` CSS property).
|
|
72
|
+
*/
|
|
73
|
+
gridTemplateAreas: Signal<string | null>;
|
|
74
|
+
/**
|
|
75
|
+
* Signal that provides the current drag context. Returns `null` if no drag is in progress.
|
|
76
|
+
*/
|
|
77
|
+
dragContext: Signal<SplitterDragContext | null>;
|
|
78
|
+
/**
|
|
79
|
+
* Signal that provides the minimum size of the splitter, calculated based on the panels' min sizes and dividers.
|
|
80
|
+
*/
|
|
81
|
+
minSize: Signal<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Signal that provides the maximum size of the splitter, calculated based on the panels' max sizes and dividers.
|
|
84
|
+
*/
|
|
85
|
+
maxSize: Signal<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Starts a drag operation for the specified divider index.
|
|
88
|
+
* @param index The index of the divider to start dragging.
|
|
89
|
+
* @param event The pointer event that initiated the drag.
|
|
90
|
+
*/
|
|
91
|
+
startDrag(index: number, event: PointerEvent): void;
|
|
92
|
+
/**
|
|
93
|
+
* Handles the drag operation for the specified divider index.
|
|
94
|
+
* @param index The index of the divider being dragged.
|
|
95
|
+
* @param event The pointer event that is being processed during the drag.
|
|
96
|
+
*/
|
|
97
|
+
drag(index: number, event: PointerEvent): void;
|
|
98
|
+
/**
|
|
99
|
+
* Ends the drag operation for the specified divider index.
|
|
100
|
+
* @param index The index of the divider being dragged.
|
|
101
|
+
* @param event The pointer event that ended the drag.
|
|
102
|
+
* @param isCancel Whether the drag operation was cancelled. If true, the panel sizes will be reset to their original values.
|
|
103
|
+
*/
|
|
104
|
+
endDrag(index: number, event: PointerEvent, isCancel: boolean): void;
|
|
105
|
+
/**
|
|
106
|
+
* Moves the divider at the specified index by the given pixel delta.
|
|
107
|
+
* @param index The index of the divider to move.
|
|
108
|
+
* @param pxDelta The pixel delta to move the divider by. Positive values move the divider to the right (or down), negative values move it to the left (or up).
|
|
109
|
+
*/
|
|
110
|
+
moveDivider(index: number, pxDelta: number): void;
|
|
111
|
+
}
|
|
112
|
+
type SplitterFractionFactors = {
|
|
113
|
+
/**
|
|
114
|
+
* The number of fraction units per pixel.
|
|
115
|
+
* This is used to convert pixel values to fraction values.
|
|
116
|
+
*/
|
|
117
|
+
frPerPx: number;
|
|
118
|
+
/**
|
|
119
|
+
* The number of pixels per fraction unit.
|
|
120
|
+
* This is used to convert fraction values to pixel values.
|
|
121
|
+
*/
|
|
122
|
+
pxPerFr: number;
|
|
123
|
+
};
|
|
124
|
+
type SplitterDragContextPanel = {
|
|
125
|
+
/**
|
|
126
|
+
* A reference to the panel component.
|
|
127
|
+
*/
|
|
128
|
+
panel: NgnSplitterPanel;
|
|
129
|
+
/**
|
|
130
|
+
* The starting size of the panel at the beginning of the drag operation.
|
|
131
|
+
*/
|
|
132
|
+
startSize: ExpandedSplitterPanelSize;
|
|
133
|
+
/**
|
|
134
|
+
* The minimum size limit of the panel.
|
|
135
|
+
*/
|
|
136
|
+
minSize: ExpandedSplitterPanelSizeLimit;
|
|
137
|
+
/**
|
|
138
|
+
* The maximum size limit of the panel.
|
|
139
|
+
*/
|
|
140
|
+
maxSize: ExpandedSplitterPanelSizeLimit;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Represents the context of a drag operation in the splitter.
|
|
144
|
+
*/
|
|
145
|
+
type SplitterDragContext = {
|
|
146
|
+
/**
|
|
147
|
+
* The index of the divider being dragged.
|
|
148
|
+
*/
|
|
149
|
+
dividerIndex: number;
|
|
150
|
+
/**
|
|
151
|
+
* The ID of the pointer that initiated the drag operation.
|
|
152
|
+
*/
|
|
153
|
+
pointerId: number;
|
|
154
|
+
/**
|
|
155
|
+
* The starting position of the pointer when the drag operation started, in pixels.
|
|
156
|
+
*/
|
|
157
|
+
startPosition: number;
|
|
158
|
+
/**
|
|
159
|
+
* An array of panels involved in the drag operation.
|
|
160
|
+
*/
|
|
161
|
+
panels: SplitterDragContextPanel[];
|
|
162
|
+
/**
|
|
163
|
+
* The fraction factors used for calculating sizes during the drag operation.
|
|
164
|
+
*/
|
|
165
|
+
fractionFactors: SplitterFractionFactors;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Default implementation of the {@link SplitterCalculator} interface.
|
|
169
|
+
*/
|
|
170
|
+
declare class DefaultSplitterCalculator implements SplitterCalculator {
|
|
171
|
+
protected readonly panels: Signal<readonly NgnSplitterPanel[]>;
|
|
172
|
+
protected readonly dividers: Signal<readonly EmbeddedViewRef<unknown>[]>;
|
|
173
|
+
protected readonly panelOrder: Signal<readonly string[] | null | undefined>;
|
|
174
|
+
protected readonly layout: Signal<SplitterLayout>;
|
|
175
|
+
protected readonly splitterSize: Signal<number>;
|
|
176
|
+
constructor(splitter: NgnSplitter);
|
|
177
|
+
readonly orderedPanels: Signal<readonly NgnSplitterPanel[]>;
|
|
178
|
+
readonly gridTemplateSizes: Signal<string>;
|
|
179
|
+
readonly gridTemplateAreas: Signal<string | null>;
|
|
180
|
+
readonly minSize: Signal<string>;
|
|
181
|
+
readonly maxSize: Signal<string>;
|
|
182
|
+
readonly dragContext: _angular_core.WritableSignal<SplitterDragContext | null>;
|
|
183
|
+
protected readonly dividerSizes: Signal<number[]>;
|
|
184
|
+
protected readonly totalDividerSize: Signal<number>;
|
|
185
|
+
protected readonly totalPanelSizes: Signal<{
|
|
186
|
+
px: number;
|
|
187
|
+
fr: number;
|
|
188
|
+
}>;
|
|
189
|
+
startDrag(index: number, event: PointerEvent): void;
|
|
190
|
+
drag(index: number, event: PointerEvent): void;
|
|
191
|
+
endDrag(index: number, event: PointerEvent, isCancel: boolean): void;
|
|
192
|
+
moveDivider(index: number, pxDelta: number): void;
|
|
193
|
+
ensureMinMaxSizes(): void;
|
|
194
|
+
private createContextPanel;
|
|
195
|
+
private getCurrentFractionFactors;
|
|
196
|
+
private setPanelSize;
|
|
197
|
+
private isPanelSizeCalculated;
|
|
198
|
+
private applyDividerDelta;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @category control
|
|
203
|
+
*/
|
|
204
|
+
declare class NgnSplitter extends NgnBase<'splitter'> implements OnDestroy {
|
|
205
|
+
private readonly _viewContainer;
|
|
206
|
+
private readonly _config;
|
|
207
|
+
protected readonly theme: _ngneers_controls_api_ng.ControlTemplateInfo<_ngneers_controls_themes.ControlTemplate<"splitter", ["root", "horizontal", "vertical", "panel", "divider", "divider-handle", "dragging", "divider-dragging"], readonly _ngneers_controls_themes.ControlTemplate<string, string[], readonly any[]>[]>>;
|
|
208
|
+
protected readonly translations: _ngneers_signal_translate.TranslationsSignal<{
|
|
209
|
+
calendar: {
|
|
210
|
+
today: string;
|
|
211
|
+
selectYear: string;
|
|
212
|
+
weekdays: {
|
|
213
|
+
monday: string;
|
|
214
|
+
tuesday: string;
|
|
215
|
+
wednesday: string;
|
|
216
|
+
thursday: string;
|
|
217
|
+
friday: string;
|
|
218
|
+
saturday: string;
|
|
219
|
+
sunday: string;
|
|
220
|
+
};
|
|
221
|
+
weekdaysShort: {
|
|
222
|
+
monday: string;
|
|
223
|
+
tuesday: string;
|
|
224
|
+
wednesday: string;
|
|
225
|
+
thursday: string;
|
|
226
|
+
friday: string;
|
|
227
|
+
saturday: string;
|
|
228
|
+
sunday: string;
|
|
229
|
+
};
|
|
230
|
+
months: {
|
|
231
|
+
january: string;
|
|
232
|
+
february: string;
|
|
233
|
+
march: string;
|
|
234
|
+
april: string;
|
|
235
|
+
may: string;
|
|
236
|
+
june: string;
|
|
237
|
+
july: string;
|
|
238
|
+
august: string;
|
|
239
|
+
september: string;
|
|
240
|
+
october: string;
|
|
241
|
+
november: string;
|
|
242
|
+
december: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
editInplace: {
|
|
246
|
+
placeholder: string;
|
|
247
|
+
};
|
|
248
|
+
filter: {
|
|
249
|
+
noFilter: string;
|
|
250
|
+
addCondition: string;
|
|
251
|
+
removeCondition: string;
|
|
252
|
+
clear: string;
|
|
253
|
+
matchModeLabel: string;
|
|
254
|
+
match: {
|
|
255
|
+
all: string;
|
|
256
|
+
any: string;
|
|
257
|
+
};
|
|
258
|
+
selected: string;
|
|
259
|
+
conditions: string;
|
|
260
|
+
operators: {
|
|
261
|
+
isEqual: string;
|
|
262
|
+
isNotEqual: string;
|
|
263
|
+
contains: string;
|
|
264
|
+
startsWith: string;
|
|
265
|
+
endsWith: string;
|
|
266
|
+
in: string;
|
|
267
|
+
isEmpty: string;
|
|
268
|
+
isNotEmpty: string;
|
|
269
|
+
greaterThan: string;
|
|
270
|
+
greaterThanOrEqual: string;
|
|
271
|
+
lessThan: string;
|
|
272
|
+
lessThanOrEqual: string;
|
|
273
|
+
after: string;
|
|
274
|
+
onOrAfter: string;
|
|
275
|
+
before: string;
|
|
276
|
+
onOrBefore: string;
|
|
277
|
+
isTrue: string;
|
|
278
|
+
isFalse: string;
|
|
279
|
+
custom: string;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
splitter: {
|
|
283
|
+
handleLabel: string;
|
|
284
|
+
};
|
|
285
|
+
inputField: {
|
|
286
|
+
clearInput: string;
|
|
287
|
+
};
|
|
288
|
+
drawer: {
|
|
289
|
+
close: string;
|
|
290
|
+
};
|
|
291
|
+
}, "_">;
|
|
292
|
+
/**
|
|
293
|
+
* The layout of the splitter.
|
|
294
|
+
*/
|
|
295
|
+
readonly layout: _angular_core.ModelSignal<SplitterLayout>;
|
|
296
|
+
/**
|
|
297
|
+
* A array of panel names that defines the order of panels.
|
|
298
|
+
* If nullish, the order is determined by the order the panels are defined in the template.
|
|
299
|
+
*/
|
|
300
|
+
readonly panelOrder: _angular_core.ModelSignal<string[] | null | undefined>;
|
|
301
|
+
/**
|
|
302
|
+
* The storage to use for saving the splitter state.
|
|
303
|
+
* @default `session`
|
|
304
|
+
*/
|
|
305
|
+
readonly stateStorage: _angular_core.InputSignal<NgnStateStorage>;
|
|
306
|
+
/**
|
|
307
|
+
* The key to use for saving the splitter state.
|
|
308
|
+
* If nullish, the state will not be saved.
|
|
309
|
+
*/
|
|
310
|
+
readonly stateKey: _angular_core.InputSignal<string | null | undefined>;
|
|
311
|
+
/**
|
|
312
|
+
* The type of data to save in the splitter state.
|
|
313
|
+
* @default `['layout', 'panelOrder', 'panelSizes']`
|
|
314
|
+
*/
|
|
315
|
+
readonly stateData: _angular_core.InputSignal<readonly (keyof {
|
|
316
|
+
layout?: SplitterLayout;
|
|
317
|
+
panelOrder?: string[] | null;
|
|
318
|
+
panelSizes?: Record<string, _ngneers_controls_splitter.SplitterPanelSize> | null;
|
|
319
|
+
})[]>;
|
|
320
|
+
/**
|
|
321
|
+
* The type of calculator to use for the splitter.
|
|
322
|
+
* @default `DefaultSplitterCalculator`
|
|
323
|
+
*/
|
|
324
|
+
readonly calculatorType: _angular_core.InputSignal<SplitterCalculatorType>;
|
|
325
|
+
/**
|
|
326
|
+
* The step size for moving the dividers using the keyboard.
|
|
327
|
+
* This can be a pixel value (e.g., '5px') or a percentage value (e.g., '5%').
|
|
328
|
+
* If a percentage is used, it will be calculated based on the size of the splitter element.
|
|
329
|
+
* @default '5px'
|
|
330
|
+
*/
|
|
331
|
+
readonly step: _angular_core.InputSignal<`${number}px` | `${number}%`>;
|
|
332
|
+
/**
|
|
333
|
+
* Event emitted when the splitter state is being saved.
|
|
334
|
+
* This can be used to modify the state before it is saved.
|
|
335
|
+
*/
|
|
336
|
+
readonly stateSaving: _angular_core.OutputEmitterRef<SplitterState>;
|
|
337
|
+
/**
|
|
338
|
+
* Event emitted when the splitter state is loaded.
|
|
339
|
+
* This can be used to modify the state before it is applied or to perform actions based on the loaded state.
|
|
340
|
+
*/
|
|
341
|
+
readonly stateLoading: _angular_core.OutputEmitterRef<SplitterState>;
|
|
342
|
+
protected readonly dividerTemplateType: {
|
|
343
|
+
index: number;
|
|
344
|
+
};
|
|
345
|
+
private readonly _dividerTemplate;
|
|
346
|
+
/**
|
|
347
|
+
* The current dividers in the splitter.
|
|
348
|
+
*/
|
|
349
|
+
readonly dividers: _angular_core.WritableSignal<EmbeddedViewRef<{
|
|
350
|
+
index: number;
|
|
351
|
+
}>[]>;
|
|
352
|
+
/**
|
|
353
|
+
* The current panels in the splitter.
|
|
354
|
+
*/
|
|
355
|
+
readonly panels: _angular_core.Signal<readonly NgnSplitterPanel[]>;
|
|
356
|
+
/**
|
|
357
|
+
* The current size of the splitter element.
|
|
358
|
+
*/
|
|
359
|
+
readonly elementSize: _angular_core.Signal<_ngneers_controls_api_ng.Size>;
|
|
360
|
+
/**
|
|
361
|
+
* A value indicating whether the splitter is currently being dragged.
|
|
362
|
+
*/
|
|
363
|
+
readonly isDragging: _angular_core.Signal<boolean>;
|
|
364
|
+
protected readonly calculator: _angular_core.Signal<_ngneers_controls_splitter.SplitterCalculator>;
|
|
365
|
+
constructor();
|
|
366
|
+
ngOnDestroy(): void;
|
|
367
|
+
protected onHandlePointerDown(index: number, event: PointerEvent): void;
|
|
368
|
+
protected onHandlePointerMove(index: number, event: PointerEvent): void;
|
|
369
|
+
protected onHandlePointerUp(index: number, event: PointerEvent): void;
|
|
370
|
+
protected onHandlePointerCancel(index: number, event: PointerEvent): void;
|
|
371
|
+
protected onHandleKeyDown(index: number, event: KeyboardEvent): void;
|
|
372
|
+
private updateDividers;
|
|
373
|
+
private createDivider;
|
|
374
|
+
private moveDividerBefore;
|
|
375
|
+
private computeState;
|
|
376
|
+
private onStateLoad;
|
|
377
|
+
private ensureValidState;
|
|
378
|
+
private applyFromState;
|
|
379
|
+
private getStepInPx;
|
|
380
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgnSplitter, never>;
|
|
381
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgnSplitter, "ngn-splitter", never, { "layout": { "alias": "layout"; "required": true; "isSignal": true; }; "panelOrder": { "alias": "panelOrder"; "required": false; "isSignal": true; }; "stateStorage": { "alias": "stateStorage"; "required": false; "isSignal": true; }; "stateKey": { "alias": "stateKey"; "required": false; "isSignal": true; }; "stateData": { "alias": "stateData"; "required": false; "isSignal": true; }; "calculatorType": { "alias": "calculatorType"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; }, { "layout": "layoutChange"; "panelOrder": "panelOrderChange"; "stateSaving": "stateSaving"; "stateLoading": "stateLoading"; }, ["panels"], ["*"], true, never>;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
declare class NgnSplitterModule {
|
|
385
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgnSplitterModule, never>;
|
|
386
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<NgnSplitterModule, never, [typeof NgnSplitter, typeof NgnSplitterPanel], [typeof NgnSplitter, typeof NgnSplitterPanel]>;
|
|
387
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<NgnSplitterModule>;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export { DefaultSplitterCalculator, NgnSplitter, NgnSplitterModule, NgnSplitterPanel };
|
|
391
|
+
export type { SplitterCalculator, SplitterCalculatorType, SplitterDragContext, SplitterLayout, SplitterPanelSize, SplitterPanelSizeLimit, SplitterPanelSizeLimitUnit, SplitterPanelSizeUnit, SplitterState, SplitterStateData };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
2
|
+
import * as _ngneers_controls_themes from '@ngneers/controls-themes';
|
|
3
|
+
import { ValueControlBase } from '@ngneers/controls/base';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @category control
|
|
8
|
+
*/
|
|
9
|
+
declare class NgnSwitch extends ValueControlBase<'switch', boolean> {
|
|
10
|
+
protected readonly theme: _ngneers_controls_api_ng.ControlTemplateInfo<_ngneers_controls_themes.ControlTemplate<"switch", ["root", "input", "track", "track-checked", "thumb", "invalid"], readonly _ngneers_controls_themes.ControlTemplate<string, string[], readonly any[]>[]>>;
|
|
11
|
+
protected changed(event: Event): void;
|
|
12
|
+
protected onClick(event: Event): void;
|
|
13
|
+
constructor();
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgnSwitch, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgnSwitch, "ngn-switch", never, {}, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { NgnSwitch };
|