@ngneers/controls 0.0.1-pre6 → 0.0.1-pre7
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/fesm2022/ngneers-controls-accordion.mjs +10 -10
- package/fesm2022/ngneers-controls-accordion.mjs.map +1 -1
- package/fesm2022/ngneers-controls-api-ng.mjs +12 -9
- package/fesm2022/ngneers-controls-api-ng.mjs.map +1 -1
- package/fesm2022/ngneers-controls-avatar.mjs +6 -6
- package/fesm2022/ngneers-controls-avatar.mjs.map +1 -1
- package/fesm2022/ngneers-controls-base.mjs +9 -9
- package/fesm2022/ngneers-controls-base.mjs.map +1 -1
- package/fesm2022/ngneers-controls-breadcrumb.mjs +7 -7
- package/fesm2022/ngneers-controls-breadcrumb.mjs.map +1 -1
- package/fesm2022/ngneers-controls-button-group.mjs +3 -3
- package/fesm2022/ngneers-controls-button-group.mjs.map +1 -1
- package/fesm2022/ngneers-controls-button.mjs +6 -6
- package/fesm2022/ngneers-controls-button.mjs.map +1 -1
- package/fesm2022/{ngneers-controls-calendar-time-Bzlv9Vkn.mjs → ngneers-controls-calendar-time-CKAqRgOP.mjs} +4 -4
- package/fesm2022/{ngneers-controls-calendar-time-Bzlv9Vkn.mjs.map → ngneers-controls-calendar-time-CKAqRgOP.mjs.map} +1 -1
- package/fesm2022/ngneers-controls-calendar.mjs +11 -11
- package/fesm2022/ngneers-controls-calendar.mjs.map +1 -1
- package/fesm2022/ngneers-controls-checkbox.mjs +4 -4
- package/fesm2022/ngneers-controls-checkbox.mjs.map +1 -1
- package/fesm2022/ngneers-controls-chip.mjs +4 -4
- package/fesm2022/ngneers-controls-chip.mjs.map +1 -1
- package/fesm2022/ngneers-controls-default-icons.mjs +61 -0
- package/fesm2022/ngneers-controls-default-icons.mjs.map +1 -0
- package/fesm2022/ngneers-controls-defer.mjs +3 -3
- package/fesm2022/ngneers-controls-defer.mjs.map +1 -1
- package/fesm2022/ngneers-controls-dialog.mjs +10 -10
- package/fesm2022/ngneers-controls-dialog.mjs.map +1 -1
- package/fesm2022/ngneers-controls-directives.mjs +21 -21
- package/fesm2022/ngneers-controls-directives.mjs.map +1 -1
- package/fesm2022/ngneers-controls-drawer.mjs +7 -7
- package/fesm2022/ngneers-controls-drawer.mjs.map +1 -1
- package/fesm2022/ngneers-controls-edit-inplace.mjs +7 -7
- package/fesm2022/ngneers-controls-edit-inplace.mjs.map +1 -1
- package/fesm2022/ngneers-controls-filter.mjs +4 -4
- package/fesm2022/ngneers-controls-filter.mjs.map +1 -1
- package/fesm2022/ngneers-controls-i18n.mjs +3 -3
- package/fesm2022/ngneers-controls-i18n.mjs.map +1 -1
- package/fesm2022/ngneers-controls-icon.mjs +108 -44
- package/fesm2022/ngneers-controls-icon.mjs.map +1 -1
- package/fesm2022/ngneers-controls-inplace.mjs +6 -6
- package/fesm2022/ngneers-controls-inplace.mjs.map +1 -1
- package/fesm2022/ngneers-controls-input-field.mjs +5 -5
- package/fesm2022/ngneers-controls-input-field.mjs.map +1 -1
- package/fesm2022/ngneers-controls-input-mask.mjs +3 -3
- package/fesm2022/ngneers-controls-input-mask.mjs.map +1 -1
- package/fesm2022/ngneers-controls-input.mjs +3 -3
- package/fesm2022/ngneers-controls-input.mjs.map +1 -1
- package/fesm2022/ngneers-controls-item-view.mjs +6 -6
- package/fesm2022/ngneers-controls-item-view.mjs.map +1 -1
- package/fesm2022/ngneers-controls-list-box.mjs +6 -6
- package/fesm2022/ngneers-controls-list-box.mjs.map +1 -1
- package/fesm2022/ngneers-controls-menu.mjs +10 -10
- package/fesm2022/ngneers-controls-menu.mjs.map +1 -1
- package/fesm2022/ngneers-controls-message.mjs +3 -3
- package/fesm2022/ngneers-controls-message.mjs.map +1 -1
- package/fesm2022/ngneers-controls-paginator.mjs +4 -4
- package/fesm2022/ngneers-controls-paginator.mjs.map +1 -1
- package/fesm2022/ngneers-controls-popover.mjs +11 -6
- package/fesm2022/ngneers-controls-popover.mjs.map +1 -1
- package/fesm2022/ngneers-controls-progress.mjs +3 -3
- package/fesm2022/ngneers-controls-progress.mjs.map +1 -1
- package/fesm2022/ngneers-controls-scroll-shadow.mjs +54 -0
- package/fesm2022/ngneers-controls-scroll-shadow.mjs.map +1 -0
- package/fesm2022/ngneers-controls-scroller.mjs +9 -9
- package/fesm2022/ngneers-controls-scroller.mjs.map +1 -1
- package/fesm2022/ngneers-controls-select-button.mjs +4 -4
- package/fesm2022/ngneers-controls-select-button.mjs.map +1 -1
- package/fesm2022/ngneers-controls-select.mjs +8 -7
- package/fesm2022/ngneers-controls-select.mjs.map +1 -1
- package/fesm2022/ngneers-controls-slider.mjs +3 -3
- package/fesm2022/ngneers-controls-slider.mjs.map +1 -1
- package/fesm2022/ngneers-controls-spinner.mjs +3 -3
- package/fesm2022/ngneers-controls-spinner.mjs.map +1 -1
- package/fesm2022/ngneers-controls-splitter.mjs +10 -10
- package/fesm2022/ngneers-controls-splitter.mjs.map +1 -1
- package/fesm2022/ngneers-controls-switch.mjs +3 -3
- package/fesm2022/ngneers-controls-switch.mjs.map +1 -1
- package/fesm2022/ngneers-controls-table.mjs +227 -293
- package/fesm2022/ngneers-controls-table.mjs.map +1 -1
- package/fesm2022/ngneers-controls-tabs.mjs +10 -10
- package/fesm2022/ngneers-controls-tabs.mjs.map +1 -1
- package/fesm2022/ngneers-controls-tag.mjs +3 -3
- package/fesm2022/ngneers-controls-tag.mjs.map +1 -1
- package/fesm2022/ngneers-controls-toast.mjs +10 -10
- package/fesm2022/ngneers-controls-toast.mjs.map +1 -1
- package/fesm2022/ngneers-controls-toggle-button.mjs +4 -4
- package/fesm2022/ngneers-controls-toggle-button.mjs.map +1 -1
- package/fesm2022/ngneers-controls-tooltip.mjs +44 -8
- package/fesm2022/ngneers-controls-tooltip.mjs.map +1 -1
- package/fesm2022/ngneers-controls-utils-ng.mjs +3 -3
- package/fesm2022/ngneers-controls-utils-ng.mjs.map +1 -1
- package/fesm2022/ngneers-controls-utils.mjs +1 -1
- package/fesm2022/ngneers-controls-utils.mjs.map +1 -1
- package/package.json +29 -11
- package/types/ngneers-controls-accordion.d.ts +6 -4
- package/types/ngneers-controls-api-ng.d.ts +5 -0
- package/types/ngneers-controls-api.d.ts +2 -2
- package/types/ngneers-controls-breadcrumb.d.ts +5 -3
- package/types/ngneers-controls-checkbox.d.ts +5 -3
- package/types/ngneers-controls-chip.d.ts +3 -1
- package/types/ngneers-controls-default-icons.d.ts +5 -0
- package/types/ngneers-controls-drawer.d.ts +3 -1
- package/types/ngneers-controls-filter.d.ts +1 -1
- package/types/ngneers-controls-icon.d.ts +23 -40
- package/types/ngneers-controls-input-field.d.ts +3 -1
- package/types/ngneers-controls-item-view.d.ts +4 -2
- package/types/ngneers-controls-menu.d.ts +3 -1
- package/types/ngneers-controls-message.d.ts +3 -1
- package/types/ngneers-controls-popover.d.ts +1 -0
- package/types/ngneers-controls-scroll-shadow.d.ts +16 -0
- package/types/ngneers-controls-select.d.ts +5 -10
- package/types/ngneers-controls-table.d.ts +29 -41
- package/types/ngneers-controls-tabs.d.ts +4 -2
- package/types/ngneers-controls-tag.d.ts +3 -1
- package/types/ngneers-controls-toast.d.ts +4 -2
- package/types/ngneers-controls-toggle-button.d.ts +5 -3
- package/types/ngneers-controls-tooltip.d.ts +7 -1
- package/fesm2022/ngneers-controls-icon-calendar-z5xA9wTT.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-calendar-z5xA9wTT.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-check-DdAQ9k-T.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-check-DdAQ9k-T.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-chevron_down-HO-z-xOr.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-chevron_down-HO-z-xOr.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-chevron_left-CC5psi16.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-chevron_left-CC5psi16.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-chevron_right-BRxlzx4G.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-chevron_right-BRxlzx4G.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-chevron_up-cqhPO7g2.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-chevron_up-cqhPO7g2.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-ellipsis-DXIGA1sk.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-ellipsis-DXIGA1sk.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-filter-oU7E6Xgr.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-filter-oU7E6Xgr.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-filter_solid-CqIKuR4N.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-filter_solid-CqIKuR4N.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-magnifying_glass-T4Hzbkig.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-magnifying_glass-T4Hzbkig.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-minus-oGDEFO4E.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-minus-oGDEFO4E.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-sort-CRD4tafz.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-sort-CRD4tafz.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-sort_down-DiFB1P6R.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-sort_down-DiFB1P6R.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-sort_up-Bq_q3hIi.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-sort_up-Bq_q3hIi.mjs.map +0 -1
- package/fesm2022/ngneers-controls-icon-xmark-BZKZORiu.mjs +0 -4
- package/fesm2022/ngneers-controls-icon-xmark-BZKZORiu.mjs.map +0 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _ngneers_controls_custom_types from '@ngneers/controls-custom-types';
|
|
2
|
+
import * as _iconify_types from '@iconify/types';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { TemplateRef, ElementRef } from '@angular/core';
|
|
3
5
|
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
@@ -14,8 +16,8 @@ declare class NgnAccordion extends NgnBase<'accordion'> {
|
|
|
14
16
|
/**
|
|
15
17
|
* Whether multiple panels can be expanded at once.
|
|
16
18
|
*/
|
|
17
|
-
readonly iconExpanded: _angular_core.InputSignal<
|
|
18
|
-
readonly iconCollapsed: _angular_core.InputSignal<
|
|
19
|
+
readonly iconExpanded: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
20
|
+
readonly iconCollapsed: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
19
21
|
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
22
|
readonly expandedPanels: _angular_core.ModelSignal<string[]>;
|
|
21
23
|
togglePanel(panelId: string): void;
|
|
@@ -93,8 +95,8 @@ declare class NgnAccordionPanel extends AccordionTemplates {
|
|
|
93
95
|
* @default false
|
|
94
96
|
*/
|
|
95
97
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
96
|
-
protected readonly iconExpanded: _angular_core.Signal<
|
|
97
|
-
protected readonly iconCollapsed: _angular_core.Signal<
|
|
98
|
+
protected readonly iconExpanded: _angular_core.Signal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry>;
|
|
99
|
+
protected readonly iconCollapsed: _angular_core.Signal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry>;
|
|
98
100
|
protected readonly _contentViewChild: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
99
101
|
protected readonly expanded: _angular_core.Signal<boolean>;
|
|
100
102
|
protected readonly headerId: _angular_core.Signal<string>;
|
|
@@ -54,6 +54,11 @@ type TooltipOptions = {
|
|
|
54
54
|
* @default true
|
|
55
55
|
*/
|
|
56
56
|
readonly hideOnClick: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether to automatically manage ARIA attributes for the tooltip.
|
|
59
|
+
* @default 'description'
|
|
60
|
+
*/
|
|
61
|
+
readonly autoAriaMode: 'label' | 'description' | 'none';
|
|
57
62
|
};
|
|
58
63
|
|
|
59
64
|
declare const NGN_CONFIG: InjectionToken<NgnConfig>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AllKeysOfUnion } from '@ngneers/controls/utils';
|
|
2
2
|
import { IconType, CustomKind, CustomColor } from '@ngneers/controls-custom-types';
|
|
3
|
-
import {
|
|
3
|
+
import { NgnIconKey } from '@ngneers/controls/icon';
|
|
4
4
|
|
|
5
5
|
type NgnFilterDataType = 'string' | 'number' | 'date' | 'dateTime' | 'boolean' | 'custom' | 'list';
|
|
6
6
|
type NgnFilterMatchMode = 'all' | 'any';
|
|
@@ -59,7 +59,7 @@ type NgnActionButtonConfig<T = unknown> = {
|
|
|
59
59
|
value: T;
|
|
60
60
|
action?: (event: PointerEvent) => void;
|
|
61
61
|
icon?: IconType;
|
|
62
|
-
defaultIcon?:
|
|
62
|
+
defaultIcon?: NgnIconKey;
|
|
63
63
|
kind?: CustomKind<'button'>;
|
|
64
64
|
color?: CustomColor;
|
|
65
65
|
disabled?: boolean;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as _ngneers_controls_custom_types from '@ngneers/controls-custom-types';
|
|
2
|
+
import { IconType } from '@ngneers/controls-custom-types';
|
|
3
|
+
import * as _iconify_types from '@iconify/types';
|
|
1
4
|
import * as _angular_core from '@angular/core';
|
|
2
5
|
import { TemplateRef } from '@angular/core';
|
|
3
6
|
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
@@ -5,7 +8,6 @@ import * as _ngneers_controls_themes from '@ngneers/controls-themes';
|
|
|
5
8
|
import { maybeCallback } from '@ngneers/controls/utils';
|
|
6
9
|
import { NgnBase } from '@ngneers/controls/base';
|
|
7
10
|
import { NgnActionItemFlat, NgnActionItem } from '@ngneers/controls/api';
|
|
8
|
-
import { IconType } from '@ngneers/controls-custom-types';
|
|
9
11
|
|
|
10
12
|
type BreadcrumbItem = NgnActionItemFlat<NgnActionItem>;
|
|
11
13
|
type ItemTemplateType = {
|
|
@@ -75,8 +77,8 @@ declare abstract class BreadcrumbTemplates extends NgnBase<'breadcrumb'> {
|
|
|
75
77
|
declare class NgnBreadcrumb extends BreadcrumbTemplates {
|
|
76
78
|
protected readonly theme: _ngneers_controls_api_ng.ControlTemplateInfo<_ngneers_controls_themes.ControlTemplate<"breadcrumb", ["root", "item", "item-clickable", "separator", "overflow"], readonly [_ngneers_controls_themes.ControlTemplate<"item-view", ["root", "item", "item-overflowing", "more-items", "more-items-hidden", "more-items-default", "hidden-separator"], readonly _ngneers_controls_themes.ControlTemplate<string, string[], readonly any[]>[]>, _ngneers_controls_themes.ControlTemplate<"menu", ["root", "submenu", "popover", "item", "item-opened", "icon-children", "separator"], readonly [_ngneers_controls_themes.ControlTemplate<"popover", ["root", "content", "content-closing"], readonly _ngneers_controls_themes.ControlTemplate<string, string[], readonly any[]>[]>]>]>>;
|
|
77
79
|
readonly items: _angular_core.InputSignal<BreadcrumbItem[]>;
|
|
78
|
-
readonly iconItemSeparator: _angular_core.InputSignal<
|
|
79
|
-
readonly iconOverflow: _angular_core.InputSignal<
|
|
80
|
+
readonly iconItemSeparator: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
81
|
+
readonly iconOverflow: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
80
82
|
protected readonly maybeCallback: typeof maybeCallback;
|
|
81
83
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgnBreadcrumb, never>;
|
|
82
84
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgnBreadcrumb, "ngn-breadcrumb", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "iconItemSeparator": { "alias": "iconItemSeparator"; "required": false; "isSignal": true; }; "iconOverflow": { "alias": "iconOverflow"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _ngneers_controls_custom_types from '@ngneers/controls-custom-types';
|
|
3
|
+
import * as _iconify_types from '@iconify/types';
|
|
2
4
|
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
3
5
|
import * as _ngneers_controls_themes from '@ngneers/controls-themes';
|
|
4
6
|
import { ValueControlBase } from '@ngneers/controls/base';
|
|
@@ -13,15 +15,15 @@ declare class NgnCheckbox<Indeterminate extends boolean> extends ValueControlBas
|
|
|
13
15
|
/**
|
|
14
16
|
* Set a custom icon for the checked state.
|
|
15
17
|
*/
|
|
16
|
-
readonly iconChecked: _angular_core.InputSignal<
|
|
18
|
+
readonly iconChecked: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
17
19
|
/**
|
|
18
20
|
* Set a custom icon for the unchecked state.
|
|
19
21
|
*/
|
|
20
|
-
readonly iconUnchecked: _angular_core.InputSignal<
|
|
22
|
+
readonly iconUnchecked: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
21
23
|
/**
|
|
22
24
|
* Set a custom icon for the indeterminate state.
|
|
23
25
|
*/
|
|
24
|
-
readonly iconIndeterminate: _angular_core.InputSignal<
|
|
26
|
+
readonly iconIndeterminate: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
25
27
|
/**
|
|
26
28
|
* Set whether to allow the indeterminate state.
|
|
27
29
|
* If `true`, this will change the {@link value} type to `boolean | null`.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _ngneers_controls_custom_types from '@ngneers/controls-custom-types';
|
|
2
|
+
import * as _iconify_types from '@iconify/types';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
3
5
|
import * as _ngneers_controls_themes from '@ngneers/controls-themes';
|
|
@@ -21,7 +23,7 @@ declare class NgnChip extends NgnBase<'chip'> {
|
|
|
21
23
|
/**
|
|
22
24
|
* Set a custom icon for the close button.
|
|
23
25
|
*/
|
|
24
|
-
readonly iconClose: _angular_core.InputSignal<
|
|
26
|
+
readonly iconClose: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
25
27
|
/**
|
|
26
28
|
* Emitted when the chip is closed (removed).
|
|
27
29
|
*/
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _ngneers_controls_custom_types from '@ngneers/controls-custom-types';
|
|
2
|
+
import * as _iconify_types from '@iconify/types';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { TemplateRef } from '@angular/core';
|
|
3
5
|
import * as _ngneers_signal_translate from '@ngneers/signal-translate';
|
|
@@ -184,7 +186,7 @@ declare class NgnDrawer extends DrawerTemplates implements Openable {
|
|
|
184
186
|
/**
|
|
185
187
|
* The icon to use for the close button in the default header template
|
|
186
188
|
*/
|
|
187
|
-
readonly iconClose: _angular_core.InputSignal<
|
|
189
|
+
readonly iconClose: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
188
190
|
/**
|
|
189
191
|
* Lazy load the drawer content
|
|
190
192
|
* @default false
|
|
@@ -305,7 +305,7 @@ declare class NgnFilter<T = unknown> extends ValueControlBase<'filter', NgnFilte
|
|
|
305
305
|
protected readonly autoListOptions: _angular_core.Signal<readonly NgnItem[]>;
|
|
306
306
|
protected readonly resolvedListOptions: _angular_core.Signal<readonly NgnItem[]>;
|
|
307
307
|
protected readonly matchModeOptions: readonly NgnItem[];
|
|
308
|
-
protected readonly inputType: _angular_core.Signal<"
|
|
308
|
+
protected readonly inputType: _angular_core.Signal<"number" | "date" | "text" | "datetime-local">;
|
|
309
309
|
protected readonly isDateType: _angular_core.Signal<boolean>;
|
|
310
310
|
protected readonly isShowTime: _angular_core.Signal<boolean>;
|
|
311
311
|
/** Parse a rawValue string to a Date for the calendar component. */
|
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
3
|
-
import { IconType } from '@ngneers/controls-custom-types';
|
|
2
|
+
import { OnDestroy, TemplateRef, InjectionToken, Provider } from '@angular/core';
|
|
3
|
+
import { IconType, NgnIconEntry } from '@ngneers/controls-custom-types';
|
|
4
|
+
export { NgnIconEntry } from '@ngneers/controls-custom-types';
|
|
4
5
|
import * as _ngneers_controls_icon from '@ngneers/controls/icon';
|
|
5
|
-
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
6
6
|
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
7
7
|
import * as _ngneers_controls_themes from '@ngneers/controls-themes';
|
|
8
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
8
9
|
import { NgnBase } from '@ngneers/controls/base';
|
|
9
|
-
|
|
10
|
-
declare const DEFAULT_ICONS: {
|
|
11
|
-
calendar: () => Promise<string>;
|
|
12
|
-
check: () => Promise<string>;
|
|
13
|
-
chevron_down: () => Promise<string>;
|
|
14
|
-
chevron_left: () => Promise<string>;
|
|
15
|
-
chevron_right: () => Promise<string>;
|
|
16
|
-
chevron_up: () => Promise<string>;
|
|
17
|
-
ellipsis: () => Promise<string>;
|
|
18
|
-
filter: () => Promise<string>;
|
|
19
|
-
filter_solid: () => Promise<string>;
|
|
20
|
-
magnifying_glass: () => Promise<string>;
|
|
21
|
-
minus: () => Promise<string>;
|
|
22
|
-
sort: () => Promise<string>;
|
|
23
|
-
sort_down: () => Promise<string>;
|
|
24
|
-
sort_up: () => Promise<string>;
|
|
25
|
-
xmark: () => Promise<string>;
|
|
26
|
-
};
|
|
10
|
+
import { IconifyIcon } from '@iconify/types';
|
|
27
11
|
|
|
28
12
|
type IconTemplateContext = {
|
|
29
13
|
$implicit: {
|
|
30
14
|
icon: IconType;
|
|
31
15
|
};
|
|
32
16
|
};
|
|
33
|
-
type DefaultIcon = keyof typeof DEFAULT_ICONS;
|
|
34
17
|
|
|
35
18
|
type IconTemplateType = TemplateRef<IconTemplateContext>;
|
|
36
19
|
declare class GlobalIconTemplate implements OnDestroy {
|
|
@@ -42,6 +25,14 @@ declare class GlobalIconTemplate implements OnDestroy {
|
|
|
42
25
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GlobalIconTemplate>;
|
|
43
26
|
}
|
|
44
27
|
|
|
28
|
+
declare const NGN_ICON_KEYS: readonly ["accordion-collapse", "accordion-expand", "breadcrumb-separator", "breadcrumb-overflow", "calendar-trigger", "calendar-previous-month", "calendar-next-month", "checkbox-checked", "checkbox-indeterminate", "chip-remove", "dialog-close", "drawer-close", "dropdown-toggle", "edit-confirm", "filter-active", "filter-inactive", "filter-remove", "input-clear", "menu-submenu", "paginator-previous", "paginator-next", "search", "sort-neutral", "sort-ascending", "sort-descending", "table-group-toggle", "tabs-scroll-left", "tabs-scroll-right", "toast-close"];
|
|
29
|
+
type NgnIconKey = (typeof NGN_ICON_KEYS)[number];
|
|
30
|
+
type NgnIconRegistry = Record<NgnIconKey, IconifyIcon | NgnIconEntry>;
|
|
31
|
+
type NgnCustomIconRegistry = Record<NgnIconKey, IconType>;
|
|
32
|
+
declare const NGN_ICON_REGISTRY: InjectionToken<NgnIconRegistry | NgnCustomIconRegistry>;
|
|
33
|
+
declare const NGN_CUSTOM_ICONS: InjectionToken<boolean>;
|
|
34
|
+
declare function provideNgnCustomIcons(registry: NgnCustomIconRegistry): Provider[];
|
|
35
|
+
|
|
45
36
|
/**
|
|
46
37
|
* @category control
|
|
47
38
|
*/
|
|
@@ -49,26 +40,18 @@ declare class NgnIcon extends NgnBase<'icon'> {
|
|
|
49
40
|
protected readonly theme: _ngneers_controls_api_ng.ControlTemplateInfo<_ngneers_controls_themes.ControlTemplate<"icon", ["root", "default"], readonly _ngneers_controls_themes.ControlTemplate<string, string[], readonly any[]>[]>>;
|
|
50
41
|
private readonly _globalIconTemplate;
|
|
51
42
|
private readonly _sanitizer;
|
|
52
|
-
readonly
|
|
53
|
-
readonly
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
};
|
|
61
|
-
protected readonly defaultIconSvg: {
|
|
62
|
-
(): _angular_platform_browser.SafeHtml | null;
|
|
63
|
-
isRunning: _angular_core.Signal<boolean>;
|
|
64
|
-
firstRunCompleted: _angular_core.Signal<boolean>;
|
|
65
|
-
};
|
|
66
|
-
private readonly _defaultIconTemplate;
|
|
67
|
-
protected readonly usedIconTemplate: _angular_core.Signal<_ngneers_controls_icon.IconTemplateType>;
|
|
43
|
+
private readonly _registry;
|
|
44
|
+
private readonly _isCustom;
|
|
45
|
+
readonly defaultIcon: _angular_core.InputSignal<"accordion-collapse" | "accordion-expand" | "breadcrumb-separator" | "breadcrumb-overflow" | "calendar-trigger" | "calendar-previous-month" | "calendar-next-month" | "checkbox-checked" | "checkbox-indeterminate" | "chip-remove" | "dialog-close" | "drawer-close" | "dropdown-toggle" | "edit-confirm" | "filter-active" | "filter-inactive" | "filter-remove" | "input-clear" | "menu-submenu" | "paginator-previous" | "paginator-next" | "search" | "sort-neutral" | "sort-ascending" | "sort-descending" | "table-group-toggle" | "tabs-scroll-left" | "tabs-scroll-right" | "toast-close" | undefined>;
|
|
46
|
+
readonly icon: _angular_core.InputSignal<IconifyIcon | NgnIconEntry | undefined>;
|
|
47
|
+
protected readonly iconSvg: _angular_core.Signal<SafeHtml | null>;
|
|
48
|
+
protected readonly defaultIconSvg: _angular_core.Signal<SafeHtml | null>;
|
|
49
|
+
protected readonly customDefaultIcon: _angular_core.Signal<IconifyIcon | NgnIconEntry | null>;
|
|
50
|
+
protected readonly iconTemplate: _angular_core.Signal<_ngneers_controls_icon.IconTemplateType>;
|
|
68
51
|
constructor();
|
|
69
52
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgnIcon, never>;
|
|
70
53
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgnIcon, "ngn-icon", never, { "defaultIcon": { "alias": "defaultIcon"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
71
54
|
}
|
|
72
55
|
|
|
73
|
-
export { GlobalIconTemplate, NgnIcon };
|
|
74
|
-
export type {
|
|
56
|
+
export { GlobalIconTemplate, NGN_CUSTOM_ICONS, NGN_ICON_KEYS, NGN_ICON_REGISTRY, NgnIcon, provideNgnCustomIcons };
|
|
57
|
+
export type { IconTemplateContext, IconTemplateType, NgnCustomIconRegistry, NgnIconKey, NgnIconRegistry };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _ngneers_controls_custom_types from '@ngneers/controls-custom-types';
|
|
2
|
+
import * as _iconify_types from '@iconify/types';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { InjectionToken } from '@angular/core';
|
|
3
5
|
import * as _ngneers_signal_translate from '@ngneers/signal-translate';
|
|
@@ -128,7 +130,7 @@ declare class NgnInputField extends NgnBase<'inputField'> {
|
|
|
128
130
|
/**
|
|
129
131
|
* Custom icon for the clear button. Use with `showClearButton`.
|
|
130
132
|
*/
|
|
131
|
-
readonly iconClearButton: _angular_core.InputSignal<
|
|
133
|
+
readonly iconClearButton: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
132
134
|
/**
|
|
133
135
|
* Tabindex for the input field itself.
|
|
134
136
|
* When another focusable (input) element is present inside the input field, this should be set to -1.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import * as _ngneers_controls_custom_types from '@ngneers/controls-custom-types';
|
|
2
|
+
import { IconType } from '@ngneers/controls-custom-types';
|
|
3
|
+
import * as _iconify_types from '@iconify/types';
|
|
1
4
|
import * as _angular_core from '@angular/core';
|
|
2
5
|
import { TemplateRef, AfterViewInit } from '@angular/core';
|
|
3
6
|
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
4
7
|
import * as _ngneers_controls_themes from '@ngneers/controls-themes';
|
|
5
8
|
import { NgnBase } from '@ngneers/controls/base';
|
|
6
|
-
import { IconType } from '@ngneers/controls-custom-types';
|
|
7
9
|
|
|
8
10
|
type OverflowStrategy = 'start' | 'end' | 'center' | 'aroundIndex';
|
|
9
11
|
|
|
@@ -158,7 +160,7 @@ declare class NgnItemView<T extends object, IdField extends keyof T> extends Ite
|
|
|
158
160
|
/**
|
|
159
161
|
* A separator icon to be displayed between items.
|
|
160
162
|
*/
|
|
161
|
-
readonly iconItemSeparator: _angular_core.InputSignal<
|
|
163
|
+
readonly iconItemSeparator: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
162
164
|
/**
|
|
163
165
|
* Strategy to use when there are more items than can be displayed in the available space.
|
|
164
166
|
* The value determines where the items should start to overflow.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
3
3
|
import { NgnActionItem } from '@ngneers/controls/api';
|
|
4
|
+
import * as _ngneers_controls_custom_types from '@ngneers/controls-custom-types';
|
|
5
|
+
import * as _iconify_types from '@iconify/types';
|
|
4
6
|
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
5
7
|
import { Openable, Anchor } from '@ngneers/controls/api/ng';
|
|
6
8
|
import * as _ngneers_controls_themes from '@ngneers/controls-themes';
|
|
@@ -111,7 +113,7 @@ declare class NgnMenu extends MenuTemplates implements Openable {
|
|
|
111
113
|
/**
|
|
112
114
|
* Icon type for children indicator (submenu indicator). If not set, a default icon will be used.
|
|
113
115
|
*/
|
|
114
|
-
readonly iconSubmenuIndicator: _angular_core.InputSignal<
|
|
116
|
+
readonly iconSubmenuIndicator: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
115
117
|
/**
|
|
116
118
|
* Whether this menu is a submenu. Used internally.
|
|
117
119
|
* @internal
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
+
import * as _ngneers_controls_custom_types from '@ngneers/controls-custom-types';
|
|
3
|
+
import * as _iconify_types from '@iconify/types';
|
|
2
4
|
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
3
5
|
import * as _ngneers_controls_themes from '@ngneers/controls-themes';
|
|
4
6
|
import { NgnBase } from '@ngneers/controls/base';
|
|
@@ -11,7 +13,7 @@ declare class NgnMessage extends NgnBase<'message'> {
|
|
|
11
13
|
/**
|
|
12
14
|
* Set an icon to display before the text.
|
|
13
15
|
*/
|
|
14
|
-
readonly icon: i0.InputSignal<
|
|
16
|
+
readonly icon: i0.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgnMessage, never>;
|
|
16
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgnMessage, "ngn-message", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
17
19
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
|
|
5
|
+
declare class NgnScrollShadow {
|
|
6
|
+
protected readonly theme: _ngneers_controls_api_ng.ControlTemplateInfo<_ngneers_controls_themes.ControlTemplate<"scrollShadow", ["root", "scrolled-start", "scrolled-end", "scrolled-top", "scrolled-bottom"], readonly _ngneers_controls_themes.ControlTemplate<string, string[], readonly any[]>[]>>;
|
|
7
|
+
private readonly _el;
|
|
8
|
+
private readonly _injector;
|
|
9
|
+
readonly ngnScrollShadow: _angular_core.InputSignal<"horizontal" | "vertical" | "both">;
|
|
10
|
+
readonly scrollShadowTarget: _angular_core.InputSignal<HTMLElement | undefined>;
|
|
11
|
+
constructor();
|
|
12
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgnScrollShadow, never>;
|
|
13
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgnScrollShadow, "[ngnScrollShadow]", never, { "ngnScrollShadow": { "alias": "ngnScrollShadow"; "required": false; "isSignal": true; }; "scrollShadowTarget": { "alias": "scrollShadowTarget"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { NgnScrollShadow };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _ngneers_controls_custom_types from '@ngneers/controls-custom-types';
|
|
2
|
+
import * as _iconify_types from '@iconify/types';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { TemplateRef, Signal } from '@angular/core';
|
|
3
5
|
import * as _ngneers_signal_translate from '@ngneers/signal-translate';
|
|
@@ -202,14 +204,7 @@ declare class NgnSelect<V, Editable extends boolean = false, Multiple extends bo
|
|
|
202
204
|
* Options for the popover.
|
|
203
205
|
*/
|
|
204
206
|
readonly popoverOptions: _angular_core.InputSignal<PopoverOptions>;
|
|
205
|
-
protected readonly appliedPopoverOptions: Signal<
|
|
206
|
-
sizeConstraints: {
|
|
207
|
-
width: number;
|
|
208
|
-
maxWidth: number;
|
|
209
|
-
minHeight: string;
|
|
210
|
-
maxHeight: string;
|
|
211
|
-
};
|
|
212
|
-
} & PopoverOptions>;
|
|
207
|
+
protected readonly appliedPopoverOptions: Signal<PopoverOptions>;
|
|
213
208
|
/**
|
|
214
209
|
* The available options to choose from. They can either be
|
|
215
210
|
* * A list of {@link NgnItem} objects
|
|
@@ -229,11 +224,11 @@ declare class NgnSelect<V, Editable extends boolean = false, Multiple extends bo
|
|
|
229
224
|
/**
|
|
230
225
|
* The icon to display in the filter input.
|
|
231
226
|
*/
|
|
232
|
-
readonly filterIcon: _angular_core.InputSignal<
|
|
227
|
+
readonly filterIcon: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
233
228
|
/**
|
|
234
229
|
* The icon to display in the dropdown.
|
|
235
230
|
*/
|
|
236
|
-
readonly dropdownIcon: _angular_core.InputSignal<
|
|
231
|
+
readonly dropdownIcon: _angular_core.InputSignal<_iconify_types.IconifyIcon | _ngneers_controls_custom_types.NgnIconEntry | undefined>;
|
|
237
232
|
/**
|
|
238
233
|
* Whether the select is virtualized.
|
|
239
234
|
* @default `false`
|