ng-hub-ui-forms 22.45.1 → 22.47.0
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/README.md +24 -2
- package/fesm2022/ng-hub-ui-forms.mjs +3125 -1110
- package/fesm2022/ng-hub-ui-forms.mjs.map +1 -1
- package/package.json +7 -7
- package/styles/_field.scss +69 -0
- package/styles/_tokens.scss +3 -0
- package/types/ng-hub-ui-forms.d.ts +151 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-hub-ui-forms",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.47.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Accessible, signal-based form fields for Angular (input, textarea, slider, segmented, select, datepicker, file input with drag & drop and upload progress) with automatic error display for controls, FormGroups and FormArrays. Reactive Forms today, Signal Forms ready. Part of the ng-hub-ui family.",
|
|
6
6
|
"author": "Carlos Morcillo Fernández <carlos.morcillo@me.com> (https://www.carlosmorcillo.com)",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"angular-library",
|
|
33
33
|
"ng-hub-ui",
|
|
34
34
|
"typescript",
|
|
35
|
-
"signals"
|
|
36
|
-
"angular21"
|
|
35
|
+
"signals"
|
|
37
36
|
],
|
|
38
37
|
"peerDependencies": {
|
|
39
|
-
"@angular/
|
|
40
|
-
"@angular/
|
|
41
|
-
"@angular/
|
|
42
|
-
"@angular/
|
|
38
|
+
"@angular/cdk": ">=22.0.0",
|
|
39
|
+
"@angular/common": ">=22.0.0",
|
|
40
|
+
"@angular/core": ">=22.0.0",
|
|
41
|
+
"@angular/forms": ">=22.0.0",
|
|
42
|
+
"@angular/platform-browser": ">=22.0.0",
|
|
43
43
|
"ng-hub-ui-ds": ">=22.14.1",
|
|
44
44
|
"ng-hub-ui-utils": ">=22.21.0"
|
|
45
45
|
},
|
package/styles/_field.scss
CHANGED
|
@@ -289,6 +289,74 @@ hub-timepicker {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
+
/**
|
|
293
|
+
* Feedback motion, picked with `provideHubForms({ feedbackAnimation })`.
|
|
294
|
+
*
|
|
295
|
+
* Angular adds `--<preset>-enter` while a message appears and `--<preset>-leave` while it goes,
|
|
296
|
+
* and waits for the animation before removing the element. `collapse` animates the row height
|
|
297
|
+
* through `grid-template-rows` (0fr to 1fr), the one way to reach the message's natural height
|
|
298
|
+
* without measuring it, so the fields below slide down instead of jumping.
|
|
299
|
+
*/
|
|
300
|
+
@keyframes hub-field-feedback-collapse {
|
|
301
|
+
from {
|
|
302
|
+
grid-template-rows: 0fr;
|
|
303
|
+
margin-top: 0;
|
|
304
|
+
opacity: 0;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
to {
|
|
308
|
+
grid-template-rows: 1fr;
|
|
309
|
+
margin-top: var(--hub-form-feedback-margin-top);
|
|
310
|
+
opacity: 1;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@keyframes hub-field-feedback-fade {
|
|
315
|
+
from {
|
|
316
|
+
opacity: 0;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
@keyframes hub-field-feedback-slide {
|
|
321
|
+
from {
|
|
322
|
+
opacity: 0;
|
|
323
|
+
transform: translateY(calc(-1 * var(--hub-form-feedback-slide-distance)));
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
@each $preset in collapse, fade, slide {
|
|
328
|
+
.hub-field__feedback--#{$preset}-enter,
|
|
329
|
+
.hub-field__feedback--#{$preset}-leave {
|
|
330
|
+
animation: hub-field-feedback-#{$preset}
|
|
331
|
+
var(--hub-form-feedback-motion-duration)
|
|
332
|
+
var(--hub-form-feedback-motion-easing)
|
|
333
|
+
both;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.hub-field__feedback--#{$preset}-leave {
|
|
337
|
+
animation-direction: reverse;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.hub-field__feedback--collapse-enter,
|
|
342
|
+
.hub-field__feedback--collapse-leave {
|
|
343
|
+
display: grid;
|
|
344
|
+
|
|
345
|
+
> * {
|
|
346
|
+
min-height: 0;
|
|
347
|
+
overflow: hidden;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
@media (prefers-reduced-motion: reduce) {
|
|
352
|
+
@each $preset in collapse, fade, slide {
|
|
353
|
+
.hub-field__feedback--#{$preset}-enter,
|
|
354
|
+
.hub-field__feedback--#{$preset}-leave {
|
|
355
|
+
animation: none;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
292
360
|
/**
|
|
293
361
|
* Feedback as a tooltip, asked for by a container through `HUB_FIELD_FEEDBACK` (the paginable
|
|
294
362
|
* table does it under `flushFields`).
|
|
@@ -305,6 +373,7 @@ hub-timepicker {
|
|
|
305
373
|
|
|
306
374
|
.hub-field__feedback {
|
|
307
375
|
position: absolute;
|
|
376
|
+
animation: none;
|
|
308
377
|
width: 1px;
|
|
309
378
|
height: 1px;
|
|
310
379
|
padding: 0;
|
package/styles/_tokens.scss
CHANGED
|
@@ -45,6 +45,9 @@
|
|
|
45
45
|
--hub-form-feedback-color: var(--hub-form-invalid-color);
|
|
46
46
|
--hub-form-feedback-font-size: var(--hub-ref-font-size-sm, 0.875rem);
|
|
47
47
|
--hub-form-feedback-margin-top: var(--hub-ref-space-1, 0.25rem);
|
|
48
|
+
--hub-form-feedback-motion-duration: var(--hub-sys-transition-duration-base, 260ms);
|
|
49
|
+
--hub-form-feedback-motion-easing: cubic-bezier(0.2, 0, 0, 1);
|
|
50
|
+
--hub-form-feedback-slide-distance: var(--hub-ref-space-1, 0.25rem);
|
|
48
51
|
|
|
49
52
|
--hub-form-text-color: var(--hub-sys-text-muted, #6a737b);
|
|
50
53
|
--hub-form-text-font-size: var(--hub-ref-font-size-sm, 0.875rem);
|
|
@@ -135,6 +135,11 @@ declare abstract class HubFieldControl extends HubFormControl implements Control
|
|
|
135
135
|
protected _errorTemplates: {
|
|
136
136
|
[key: string]: TemplateRef<any> | undefined;
|
|
137
137
|
};
|
|
138
|
+
/** Classes that animate the messages under the field in and out, from the global config. */
|
|
139
|
+
protected readonly feedbackMotion: {
|
|
140
|
+
enter: string;
|
|
141
|
+
leave: string;
|
|
142
|
+
};
|
|
138
143
|
/** Stable unique id linking the label and the control. */
|
|
139
144
|
readonly id: string;
|
|
140
145
|
/** Query for a projected `hubFormText` helper template. */
|
|
@@ -254,6 +259,11 @@ declare abstract class HubGroupControl implements AfterContentInit, OnDestroy {
|
|
|
254
259
|
protected _errorTemplates: {
|
|
255
260
|
[key: string]: TemplateRef<any> | undefined;
|
|
256
261
|
};
|
|
262
|
+
/** Classes that animate the group's error message in and out, from the global config. */
|
|
263
|
+
protected readonly feedbackMotion: {
|
|
264
|
+
enter: string;
|
|
265
|
+
leave: string;
|
|
266
|
+
};
|
|
257
267
|
/**
|
|
258
268
|
* The currently bound group control. A `computed` (not an `effect`-fed signal) so it resolves
|
|
259
269
|
* synchronously on first render — otherwise a `<form [formGroup]>` would briefly bind `null` and
|
|
@@ -281,19 +291,6 @@ declare abstract class HubGroupControl implements AfterContentInit, OnDestroy {
|
|
|
281
291
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HubGroupControl, never, never, { "group": { "alias": "group"; "required": false; "isSignal": true; }; "groupName": { "alias": "groupName"; "required": false; "isSignal": true; }; "errorTrigger": { "alias": "errorTrigger"; "required": false; "isSignal": true; }; "invalidFeedbackTemplateFn": { "alias": "invalidFeedbackTemplateFn"; "required": false; "isSignal": true; }; }, {}, ["errorTpts"], never, true, never>;
|
|
282
292
|
}
|
|
283
293
|
|
|
284
|
-
/**
|
|
285
|
-
* Default, human-readable messages for the most common Angular validation errors.
|
|
286
|
-
*
|
|
287
|
-
* Consumers can override this per field (via the `invalidFeedbackTemplateFn` input) or globally
|
|
288
|
-
* (via {@link provideHubForms}). The function receives the error `key` and its `value` (the payload
|
|
289
|
-
* Angular stores for that error) and returns the message string (HTML allowed).
|
|
290
|
-
*
|
|
291
|
-
* @param key - The validation error key (e.g. `required`, `min`, `minlength`, `equal`).
|
|
292
|
-
* @param value - The error payload as stored on the control's `errors` object.
|
|
293
|
-
* @returns A localized-by-default English message describing the error.
|
|
294
|
-
*/
|
|
295
|
-
declare function defaultInvalidFeedback(key: string, value: any): string;
|
|
296
|
-
|
|
297
294
|
/**
|
|
298
295
|
* Selection mode for `<hub-datepicker>`: how many points are picked, and how they relate.
|
|
299
296
|
*
|
|
@@ -666,6 +663,21 @@ declare const defaultHubColorConfig: HubColorConfig;
|
|
|
666
663
|
/** Built-in (English) password labels. */
|
|
667
664
|
declare const defaultHubPasswordLabels: HubPasswordLabels;
|
|
668
665
|
|
|
666
|
+
/** Built-in motions for validation messages; `none` shows and hides them at once. */
|
|
667
|
+
type HubFeedbackAnimationPreset = 'collapse' | 'fade' | 'slide' | 'none';
|
|
668
|
+
/**
|
|
669
|
+
* Your own motion for validation messages: CSS classes Angular adds while the message
|
|
670
|
+
* enters and while it leaves. Their rules must be global (not encapsulated in a component),
|
|
671
|
+
* because the class lands on the field's feedback element.
|
|
672
|
+
*/
|
|
673
|
+
interface HubFeedbackAnimationClasses {
|
|
674
|
+
/** Classes added while the message appears (an `animation` or a `transition` on them). */
|
|
675
|
+
enter: string;
|
|
676
|
+
/** Classes added while the message goes; without them it is removed at once. */
|
|
677
|
+
leave?: string;
|
|
678
|
+
}
|
|
679
|
+
/** How validation messages appear and go: a built-in preset or your own classes. */
|
|
680
|
+
type HubFeedbackAnimation = HubFeedbackAnimationPreset | HubFeedbackAnimationClasses;
|
|
669
681
|
/**
|
|
670
682
|
* Global configuration contract for `ng-hub-ui-forms`.
|
|
671
683
|
*/
|
|
@@ -684,6 +696,14 @@ interface HubFormsConfig {
|
|
|
684
696
|
* (only invalid is automatic); a per-field `showValid` input overrides this.
|
|
685
697
|
*/
|
|
686
698
|
showValid: boolean;
|
|
699
|
+
/**
|
|
700
|
+
* How the validation messages under a field appear and go. `collapse` (the default) opens
|
|
701
|
+
* the space the message needs while it fades in, so the fields below slide instead of
|
|
702
|
+
* jumping; `fade` and `slide` keep the jump and only soften the text; `none` turns motion
|
|
703
|
+
* off. Pass {@link HubFeedbackAnimationClasses} for your own. Every built-in preset stops
|
|
704
|
+
* under `prefers-reduced-motion`.
|
|
705
|
+
*/
|
|
706
|
+
feedbackAnimation: HubFeedbackAnimation;
|
|
687
707
|
/** Global datepicker defaults (locale labels, formats, first day of week…). */
|
|
688
708
|
datepicker: HubDatepickerConfig;
|
|
689
709
|
/** Global file-input labels (button text, accessible names, size and rejection formatting). */
|
|
@@ -731,6 +751,19 @@ type DeepPartial<T> = {
|
|
|
731
751
|
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
732
752
|
};
|
|
733
753
|
|
|
754
|
+
/**
|
|
755
|
+
* Default, human-readable messages for the most common Angular validation errors.
|
|
756
|
+
*
|
|
757
|
+
* Consumers can override this per field (via the `invalidFeedbackTemplateFn` input) or globally
|
|
758
|
+
* (via {@link provideHubForms}). The function receives the error `key` and its `value` (the payload
|
|
759
|
+
* Angular stores for that error) and returns the message string (HTML allowed).
|
|
760
|
+
*
|
|
761
|
+
* @param key - The validation error key (e.g. `required`, `min`, `minlength`, `equal`).
|
|
762
|
+
* @param value - The error payload as stored on the control's `errors` object.
|
|
763
|
+
* @returns A localized-by-default English message describing the error.
|
|
764
|
+
*/
|
|
765
|
+
declare function defaultInvalidFeedback(key: string, value: any): string;
|
|
766
|
+
|
|
734
767
|
/**
|
|
735
768
|
* An event emitted while a single file is being uploaded.
|
|
736
769
|
*
|
|
@@ -1772,23 +1805,47 @@ declare enum HubSelectFormats {
|
|
|
1772
1805
|
Radio = "radio"
|
|
1773
1806
|
}
|
|
1774
1807
|
|
|
1808
|
+
/**
|
|
1809
|
+
* Configuration provider for the NgSelect component. You can inject this service and provide application wide configuration.
|
|
1810
|
+
*
|
|
1811
|
+
* @since 3.0.0
|
|
1812
|
+
*/
|
|
1775
1813
|
declare class NgSelectConfig {
|
|
1814
|
+
/** Placeholder text. */
|
|
1776
1815
|
placeholder: string;
|
|
1816
|
+
/** Set placeholder visible even when an item is selected. */
|
|
1777
1817
|
fixedPlaceholder: boolean;
|
|
1818
|
+
/** Set custom text when filter returns empty result. */
|
|
1778
1819
|
notFoundText: string;
|
|
1820
|
+
/** Set custom text when using Typeahead. */
|
|
1779
1821
|
typeToSearchText: string;
|
|
1822
|
+
/** Set custom text when using tagging. */
|
|
1780
1823
|
addTagText: string;
|
|
1824
|
+
/** Set custom text when loading items. */
|
|
1781
1825
|
loadingText: string;
|
|
1826
|
+
/** Set custom text for clear all icon title. */
|
|
1782
1827
|
clearAllText: string;
|
|
1828
|
+
/** Set custom text prefixed to the option label in the aria-label of the remove icon on selected values (multiple mode). */
|
|
1829
|
+
removeText: string;
|
|
1830
|
+
/** Set custom aria-label for the dropdown options list. */
|
|
1783
1831
|
ariaLabelDropdown: string;
|
|
1832
|
+
/** Disable virtual scroll for the dropdown panel. */
|
|
1784
1833
|
disableVirtualScroll: boolean;
|
|
1834
|
+
/** Open dropdown using enter. */
|
|
1785
1835
|
openOnEnter: boolean;
|
|
1836
|
+
/** Append the dropdown overlay of every select to any element using a css selector. Painting and positioning are unaffected; the target determines DOM containment (ancestor-scoped styles, focus enclosure). */
|
|
1786
1837
|
appendTo: string;
|
|
1838
|
+
/** Object property to use for selected model. By default binds to whole object. */
|
|
1787
1839
|
bindValue: string;
|
|
1840
|
+
/** Object property to use for label. */
|
|
1788
1841
|
bindLabel: string;
|
|
1842
|
+
/** Allows to select dropdown appearance. Set to `outline` or `fill` for Material form-field styles (applies only to Material theme). */
|
|
1789
1843
|
appearance: string;
|
|
1844
|
+
/** Clears search input when item is selected. */
|
|
1790
1845
|
clearSearchOnAdd: boolean;
|
|
1846
|
+
/** Deselects a selected item when it is clicked in the dropdown. */
|
|
1791
1847
|
deselectOnClick: boolean;
|
|
1848
|
+
/** Control tab navigation behavior for the clear button. */
|
|
1792
1849
|
tabFocusOnClear: boolean;
|
|
1793
1850
|
/**
|
|
1794
1851
|
* Controls which DOM event is used to detect outside clicks for closing the dropdown.
|
|
@@ -1796,6 +1853,8 @@ declare class NgSelectConfig {
|
|
|
1796
1853
|
* (useful when backdrops load on click and would otherwise close the dropdown).
|
|
1797
1854
|
*/
|
|
1798
1855
|
outsideClickEvent: 'click' | 'mousedown';
|
|
1856
|
+
/** Close the dropdown when the page or an ancestor container scrolls. */
|
|
1857
|
+
closeOnScroll: boolean;
|
|
1799
1858
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgSelectConfig, never>;
|
|
1800
1859
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NgSelectConfig>;
|
|
1801
1860
|
}
|
|
@@ -3358,74 +3417,152 @@ declare class HubSelectClearButtonDirective {
|
|
|
3358
3417
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HubSelectClearButtonDirective, "[hubSelectClearButton]", never, {}, {}, never, never, true, never>;
|
|
3359
3418
|
}
|
|
3360
3419
|
|
|
3420
|
+
/**
|
|
3421
|
+
* Declares an option for ng-select declared via HTML. Use the value input to bind the option's value and the element content as its label.
|
|
3422
|
+
*
|
|
3423
|
+
* @since 3.0.0
|
|
3424
|
+
*/
|
|
3361
3425
|
declare class NgOptionComponent implements OnInit {
|
|
3426
|
+
/** Value bound to the option. The projected element content is used as the option's label. */
|
|
3362
3427
|
readonly value: _angular_core.InputSignal<any>;
|
|
3428
|
+
/** Whether the option is disabled and cannot be selected. */
|
|
3363
3429
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3364
3430
|
readonly elementRef: ElementRef<any>;
|
|
3365
3431
|
readonly label: _angular_core.WritableSignal<string>;
|
|
3432
|
+
readonly classes: _angular_core.WritableSignal<string>;
|
|
3366
3433
|
/** True when this component's inputs are initialized (after first change detection). */
|
|
3367
3434
|
readonly isInitialized: _angular_core.WritableSignal<boolean>;
|
|
3435
|
+
/**
|
|
3436
|
+
* Creates an instance of NgOptionComponent.
|
|
3437
|
+
*
|
|
3438
|
+
* @since 3.0.0
|
|
3439
|
+
*/
|
|
3368
3440
|
constructor();
|
|
3441
|
+
/**
|
|
3442
|
+
* Initializes the instance after Angular has assigned its inputs.
|
|
3443
|
+
*
|
|
3444
|
+
* @since 21.5.2
|
|
3445
|
+
*/
|
|
3369
3446
|
ngOnInit(): void;
|
|
3370
3447
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgOptionComponent, never>;
|
|
3371
3448
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgOptionComponent, "ng-option", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
3372
3449
|
}
|
|
3373
3450
|
|
|
3451
|
+
/**
|
|
3452
|
+
* Marks a template as the custom option template for ng-select.
|
|
3453
|
+
*
|
|
3454
|
+
* @since 3.0.0
|
|
3455
|
+
*/
|
|
3374
3456
|
declare class NgOptionTemplateDirective {
|
|
3375
3457
|
readonly template: TemplateRef<any>;
|
|
3376
3458
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgOptionTemplateDirective, never>;
|
|
3377
3459
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgOptionTemplateDirective, "[ng-option-tmp]", never, {}, {}, never, never, true, never>;
|
|
3378
3460
|
}
|
|
3461
|
+
/**
|
|
3462
|
+
* Marks a template as the custom optgroup template for ng-select.
|
|
3463
|
+
*
|
|
3464
|
+
* @since 3.0.0
|
|
3465
|
+
*/
|
|
3379
3466
|
declare class NgOptgroupTemplateDirective {
|
|
3380
3467
|
readonly template: TemplateRef<any>;
|
|
3381
3468
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgOptgroupTemplateDirective, never>;
|
|
3382
3469
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgOptgroupTemplateDirective, "[ng-optgroup-tmp]", never, {}, {}, never, never, true, never>;
|
|
3383
3470
|
}
|
|
3471
|
+
/**
|
|
3472
|
+
* Marks a template as the custom label template for ng-select.
|
|
3473
|
+
*
|
|
3474
|
+
* @since 3.0.0
|
|
3475
|
+
*/
|
|
3384
3476
|
declare class NgLabelTemplateDirective {
|
|
3385
3477
|
readonly template: TemplateRef<any>;
|
|
3386
3478
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgLabelTemplateDirective, never>;
|
|
3387
3479
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgLabelTemplateDirective, "[ng-label-tmp]", never, {}, {}, never, never, true, never>;
|
|
3388
3480
|
}
|
|
3481
|
+
/**
|
|
3482
|
+
* Marks a template as the custom multi label template for ng-select.
|
|
3483
|
+
*
|
|
3484
|
+
* @since 3.0.0
|
|
3485
|
+
*/
|
|
3389
3486
|
declare class NgMultiLabelTemplateDirective {
|
|
3390
3487
|
readonly template: TemplateRef<any>;
|
|
3391
3488
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgMultiLabelTemplateDirective, never>;
|
|
3392
3489
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgMultiLabelTemplateDirective, "[ng-multi-label-tmp]", never, {}, {}, never, never, true, never>;
|
|
3393
3490
|
}
|
|
3491
|
+
/**
|
|
3492
|
+
* Marks a template as the custom header template for ng-select.
|
|
3493
|
+
*
|
|
3494
|
+
* @since 3.0.0
|
|
3495
|
+
*/
|
|
3394
3496
|
declare class NgHeaderTemplateDirective {
|
|
3395
3497
|
readonly template: TemplateRef<any>;
|
|
3396
3498
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgHeaderTemplateDirective, never>;
|
|
3397
3499
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgHeaderTemplateDirective, "[ng-header-tmp]", never, {}, {}, never, never, true, never>;
|
|
3398
3500
|
}
|
|
3501
|
+
/**
|
|
3502
|
+
* Marks a template as the custom footer template for ng-select.
|
|
3503
|
+
*
|
|
3504
|
+
* @since 3.0.0
|
|
3505
|
+
*/
|
|
3399
3506
|
declare class NgFooterTemplateDirective {
|
|
3400
3507
|
readonly template: TemplateRef<any>;
|
|
3401
3508
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgFooterTemplateDirective, never>;
|
|
3402
3509
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgFooterTemplateDirective, "[ng-footer-tmp]", never, {}, {}, never, never, true, never>;
|
|
3403
3510
|
}
|
|
3511
|
+
/**
|
|
3512
|
+
* Marks a template as the custom not found template for ng-select.
|
|
3513
|
+
*
|
|
3514
|
+
* @since 3.0.0
|
|
3515
|
+
*/
|
|
3404
3516
|
declare class NgNotFoundTemplateDirective {
|
|
3405
3517
|
readonly template: TemplateRef<any>;
|
|
3406
3518
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgNotFoundTemplateDirective, never>;
|
|
3407
3519
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgNotFoundTemplateDirective, "[ng-notfound-tmp]", never, {}, {}, never, never, true, never>;
|
|
3408
3520
|
}
|
|
3521
|
+
/**
|
|
3522
|
+
* Marks a template as the custom type to search template for ng-select.
|
|
3523
|
+
*
|
|
3524
|
+
* @since 3.0.0
|
|
3525
|
+
*/
|
|
3409
3526
|
declare class NgTypeToSearchTemplateDirective {
|
|
3410
3527
|
readonly template: TemplateRef<any>;
|
|
3411
3528
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgTypeToSearchTemplateDirective, never>;
|
|
3412
3529
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgTypeToSearchTemplateDirective, "[ng-typetosearch-tmp]", never, {}, {}, never, never, true, never>;
|
|
3413
3530
|
}
|
|
3531
|
+
/**
|
|
3532
|
+
* Marks a template as the custom loading text template for ng-select.
|
|
3533
|
+
*
|
|
3534
|
+
* @since 3.0.0
|
|
3535
|
+
*/
|
|
3414
3536
|
declare class NgLoadingTextTemplateDirective {
|
|
3415
3537
|
readonly template: TemplateRef<any>;
|
|
3416
3538
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgLoadingTextTemplateDirective, never>;
|
|
3417
3539
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgLoadingTextTemplateDirective, "[ng-loadingtext-tmp]", never, {}, {}, never, never, true, never>;
|
|
3418
3540
|
}
|
|
3541
|
+
/**
|
|
3542
|
+
* Marks a template as the custom tag template for ng-select.
|
|
3543
|
+
*
|
|
3544
|
+
* @since 3.0.0
|
|
3545
|
+
*/
|
|
3419
3546
|
declare class NgTagTemplateDirective {
|
|
3420
3547
|
readonly template: TemplateRef<any>;
|
|
3421
3548
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgTagTemplateDirective, never>;
|
|
3422
3549
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgTagTemplateDirective, "[ng-tag-tmp]", never, {}, {}, never, never, true, never>;
|
|
3423
3550
|
}
|
|
3551
|
+
/**
|
|
3552
|
+
* Marks a template as the custom loading spinner template for ng-select.
|
|
3553
|
+
*
|
|
3554
|
+
* @since 3.0.0
|
|
3555
|
+
*/
|
|
3424
3556
|
declare class NgLoadingSpinnerTemplateDirective {
|
|
3425
3557
|
readonly template: TemplateRef<any>;
|
|
3426
3558
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgLoadingSpinnerTemplateDirective, never>;
|
|
3427
3559
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgLoadingSpinnerTemplateDirective, "[ng-loadingspinner-tmp]", never, {}, {}, never, never, true, never>;
|
|
3428
3560
|
}
|
|
3561
|
+
/**
|
|
3562
|
+
* Marks a template as the custom clear button template for ng-select.
|
|
3563
|
+
*
|
|
3564
|
+
* @since 14.2.0
|
|
3565
|
+
*/
|
|
3429
3566
|
declare class NgClearButtonTemplateDirective {
|
|
3430
3567
|
readonly template: TemplateRef<any>;
|
|
3431
3568
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgClearButtonTemplateDirective, never>;
|
|
@@ -4219,4 +4356,4 @@ interface HubFormControlAdapter {
|
|
|
4219
4356
|
declare const hubFormControlAdapter: HubFormControlAdapter;
|
|
4220
4357
|
|
|
4221
4358
|
export { FormTextTypes, HUB_COLOR_PALETTES, HUB_FILE_UPLOADER, HUB_FORMS_CONFIG, HubAppendDirective, HubAutoresizeDirective, HubDatepickerComponent, HubFieldControl, HubFieldsetComponent, HubFileDropDirective, HubFileDropOverlayComponent, HubFileDropzoneNoticeDirective, HubFileIconDirective, HubFileInputComponent, HubFilePreviewDirective, HubFormComponent, HubFormControl, HubFormTextDirective, HubGroupControl, HubInputComponent, HubInputFormats, HubInputPrefixDirective, HubInputSuffixDirective, HubInvertColorPipe, HubJoinButLastPipe, HubLabelTypes, HubLegendComponent, HubLegendDirective, HubMapPipe, HubOtpInputComponent, HubPrependDirective, HubSafeUrlPipe, HubScrollToErrorDirective, HubSegmentedComponent, HubSegmentedOptionDirective, HubSelectClearButtonDirective, HubSelectComponent, HubSelectFooterDirective, HubSelectFormats, HubSelectHeaderDirective, HubSelectLabelDirective, HubSelectLoadingSpinnerDirective, HubSelectLoadingTextDirective, HubSelectMultiLabelDirective, HubSelectNotFoundDirective, HubSelectOptgroupDirective, HubSelectOptionDirective, HubSelectSuffixDirective, HubSelectTagDirective, HubSelectTypeToSearchDirective, HubSliderComponent, HubSnakeUpperPipe, HubTextareaComponent, HubTimepickerComponent, HubUcfirstPipe, HubValidationErrorDirective, NgClearButtonTemplateDirective, NgFooterTemplateDirective, NgHeaderTemplateDirective, NgLabelTemplateDirective, NgLoadingSpinnerTemplateDirective, NgLoadingTextTemplateDirective, NgMultiLabelTemplateDirective, NgNotFoundTemplateDirective, NgOptgroupTemplateDirective, NgOptionComponent, NgOptionTemplateDirective, NgSelectConfig, NgTagTemplateDirective, NgTypeToSearchTemplateDirective, applyMask, areEqual, camelToSnakeUpper, controlHasMinOrMaxValidator, defaultHubColorConfig, defaultHubDatepickerConfig, defaultHubDatepickerLabels, defaultHubFileInputLabels, defaultHubFormsConfig, defaultHubPasswordLabels, defaultInvalidFeedback, fileKey, fileKind, formatFileSize, get, getActiveElement, getMinOrMaxValueFromValidator, hubAcceptedFiles, hubAreEqual, hubFormControlAdapter, hubMaxFileSize, hubMaxFiles, hubMaxTotalSize, hubMinFileSize, hubMinFiles, isDefined, isMaskActive, isString, joinButLast, matchesAccept, provideHubFileUploader, provideHubForms, runInZone, scorePasswordStrength, toFileArray, uuid };
|
|
4222
|
-
export type { FormTextType, HubColorConfig, HubColorPaletteName, HubColorSwatch, HubColorSwatchInput, HubCurrentFile, HubDateRange, HubDateValue, HubDatepickerConfig, HubDatepickerGranularity, HubDatepickerLabels, HubDatepickerMode, HubDatepickerValueFormat, HubFileConstraints, HubFileDropScope, HubFileIconContext, HubFileInputAppearance, HubFileInputLabels, HubFileItem, HubFileKind, HubFilePreview, HubFilePreviewContext, HubFileRejection, HubFileRejectionReason, HubFileStatus, HubFileUploadEvent, HubFileUploader, HubFileValue, HubFormControlAdapter, HubFormControlConfig, HubFormControlHandle, HubFormControlOption, HubFormsConfig, HubGroupErrorTrigger, HubInputFormat, HubLabelType, HubMaskResult, HubOtpMode, HubPasswordLabels, HubPasswordStrengthScore, HubSegmentedOption, HubSegmentedOptionContext, HubSegmentedSize, HubSelectFormat, HubSliderValue };
|
|
4359
|
+
export type { FormTextType, HubColorConfig, HubColorPaletteName, HubColorSwatch, HubColorSwatchInput, HubCurrentFile, HubDateRange, HubDateValue, HubDatepickerConfig, HubDatepickerGranularity, HubDatepickerLabels, HubDatepickerMode, HubDatepickerValueFormat, HubFeedbackAnimation, HubFeedbackAnimationClasses, HubFeedbackAnimationPreset, HubFileConstraints, HubFileDropScope, HubFileIconContext, HubFileInputAppearance, HubFileInputLabels, HubFileItem, HubFileKind, HubFilePreview, HubFilePreviewContext, HubFileRejection, HubFileRejectionReason, HubFileStatus, HubFileUploadEvent, HubFileUploader, HubFileValue, HubFormControlAdapter, HubFormControlConfig, HubFormControlHandle, HubFormControlOption, HubFormsConfig, HubGroupErrorTrigger, HubInputFormat, HubLabelType, HubMaskResult, HubOtpMode, HubPasswordLabels, HubPasswordStrengthScore, HubSegmentedOption, HubSegmentedOptionContext, HubSegmentedSize, HubSelectFormat, HubSliderValue };
|