ng-hub-ui-forms 22.46.0 → 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 +10 -2
- package/fesm2022/ng-hub-ui-forms.mjs +3097 -1101
- package/fesm2022/ng-hub-ui-forms.mjs.map +1 -1
- package/package.json +7 -7
- package/types/ng-hub-ui-forms.d.ts +104 -0
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
|
},
|
|
@@ -1805,23 +1805,47 @@ declare enum HubSelectFormats {
|
|
|
1805
1805
|
Radio = "radio"
|
|
1806
1806
|
}
|
|
1807
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
|
+
*/
|
|
1808
1813
|
declare class NgSelectConfig {
|
|
1814
|
+
/** Placeholder text. */
|
|
1809
1815
|
placeholder: string;
|
|
1816
|
+
/** Set placeholder visible even when an item is selected. */
|
|
1810
1817
|
fixedPlaceholder: boolean;
|
|
1818
|
+
/** Set custom text when filter returns empty result. */
|
|
1811
1819
|
notFoundText: string;
|
|
1820
|
+
/** Set custom text when using Typeahead. */
|
|
1812
1821
|
typeToSearchText: string;
|
|
1822
|
+
/** Set custom text when using tagging. */
|
|
1813
1823
|
addTagText: string;
|
|
1824
|
+
/** Set custom text when loading items. */
|
|
1814
1825
|
loadingText: string;
|
|
1826
|
+
/** Set custom text for clear all icon title. */
|
|
1815
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. */
|
|
1816
1831
|
ariaLabelDropdown: string;
|
|
1832
|
+
/** Disable virtual scroll for the dropdown panel. */
|
|
1817
1833
|
disableVirtualScroll: boolean;
|
|
1834
|
+
/** Open dropdown using enter. */
|
|
1818
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). */
|
|
1819
1837
|
appendTo: string;
|
|
1838
|
+
/** Object property to use for selected model. By default binds to whole object. */
|
|
1820
1839
|
bindValue: string;
|
|
1840
|
+
/** Object property to use for label. */
|
|
1821
1841
|
bindLabel: string;
|
|
1842
|
+
/** Allows to select dropdown appearance. Set to `outline` or `fill` for Material form-field styles (applies only to Material theme). */
|
|
1822
1843
|
appearance: string;
|
|
1844
|
+
/** Clears search input when item is selected. */
|
|
1823
1845
|
clearSearchOnAdd: boolean;
|
|
1846
|
+
/** Deselects a selected item when it is clicked in the dropdown. */
|
|
1824
1847
|
deselectOnClick: boolean;
|
|
1848
|
+
/** Control tab navigation behavior for the clear button. */
|
|
1825
1849
|
tabFocusOnClear: boolean;
|
|
1826
1850
|
/**
|
|
1827
1851
|
* Controls which DOM event is used to detect outside clicks for closing the dropdown.
|
|
@@ -1829,6 +1853,8 @@ declare class NgSelectConfig {
|
|
|
1829
1853
|
* (useful when backdrops load on click and would otherwise close the dropdown).
|
|
1830
1854
|
*/
|
|
1831
1855
|
outsideClickEvent: 'click' | 'mousedown';
|
|
1856
|
+
/** Close the dropdown when the page or an ancestor container scrolls. */
|
|
1857
|
+
closeOnScroll: boolean;
|
|
1832
1858
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgSelectConfig, never>;
|
|
1833
1859
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NgSelectConfig>;
|
|
1834
1860
|
}
|
|
@@ -3391,74 +3417,152 @@ declare class HubSelectClearButtonDirective {
|
|
|
3391
3417
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HubSelectClearButtonDirective, "[hubSelectClearButton]", never, {}, {}, never, never, true, never>;
|
|
3392
3418
|
}
|
|
3393
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
|
+
*/
|
|
3394
3425
|
declare class NgOptionComponent implements OnInit {
|
|
3426
|
+
/** Value bound to the option. The projected element content is used as the option's label. */
|
|
3395
3427
|
readonly value: _angular_core.InputSignal<any>;
|
|
3428
|
+
/** Whether the option is disabled and cannot be selected. */
|
|
3396
3429
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3397
3430
|
readonly elementRef: ElementRef<any>;
|
|
3398
3431
|
readonly label: _angular_core.WritableSignal<string>;
|
|
3432
|
+
readonly classes: _angular_core.WritableSignal<string>;
|
|
3399
3433
|
/** True when this component's inputs are initialized (after first change detection). */
|
|
3400
3434
|
readonly isInitialized: _angular_core.WritableSignal<boolean>;
|
|
3435
|
+
/**
|
|
3436
|
+
* Creates an instance of NgOptionComponent.
|
|
3437
|
+
*
|
|
3438
|
+
* @since 3.0.0
|
|
3439
|
+
*/
|
|
3401
3440
|
constructor();
|
|
3441
|
+
/**
|
|
3442
|
+
* Initializes the instance after Angular has assigned its inputs.
|
|
3443
|
+
*
|
|
3444
|
+
* @since 21.5.2
|
|
3445
|
+
*/
|
|
3402
3446
|
ngOnInit(): void;
|
|
3403
3447
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgOptionComponent, never>;
|
|
3404
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>;
|
|
3405
3449
|
}
|
|
3406
3450
|
|
|
3451
|
+
/**
|
|
3452
|
+
* Marks a template as the custom option template for ng-select.
|
|
3453
|
+
*
|
|
3454
|
+
* @since 3.0.0
|
|
3455
|
+
*/
|
|
3407
3456
|
declare class NgOptionTemplateDirective {
|
|
3408
3457
|
readonly template: TemplateRef<any>;
|
|
3409
3458
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgOptionTemplateDirective, never>;
|
|
3410
3459
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgOptionTemplateDirective, "[ng-option-tmp]", never, {}, {}, never, never, true, never>;
|
|
3411
3460
|
}
|
|
3461
|
+
/**
|
|
3462
|
+
* Marks a template as the custom optgroup template for ng-select.
|
|
3463
|
+
*
|
|
3464
|
+
* @since 3.0.0
|
|
3465
|
+
*/
|
|
3412
3466
|
declare class NgOptgroupTemplateDirective {
|
|
3413
3467
|
readonly template: TemplateRef<any>;
|
|
3414
3468
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgOptgroupTemplateDirective, never>;
|
|
3415
3469
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgOptgroupTemplateDirective, "[ng-optgroup-tmp]", never, {}, {}, never, never, true, never>;
|
|
3416
3470
|
}
|
|
3471
|
+
/**
|
|
3472
|
+
* Marks a template as the custom label template for ng-select.
|
|
3473
|
+
*
|
|
3474
|
+
* @since 3.0.0
|
|
3475
|
+
*/
|
|
3417
3476
|
declare class NgLabelTemplateDirective {
|
|
3418
3477
|
readonly template: TemplateRef<any>;
|
|
3419
3478
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgLabelTemplateDirective, never>;
|
|
3420
3479
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgLabelTemplateDirective, "[ng-label-tmp]", never, {}, {}, never, never, true, never>;
|
|
3421
3480
|
}
|
|
3481
|
+
/**
|
|
3482
|
+
* Marks a template as the custom multi label template for ng-select.
|
|
3483
|
+
*
|
|
3484
|
+
* @since 3.0.0
|
|
3485
|
+
*/
|
|
3422
3486
|
declare class NgMultiLabelTemplateDirective {
|
|
3423
3487
|
readonly template: TemplateRef<any>;
|
|
3424
3488
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgMultiLabelTemplateDirective, never>;
|
|
3425
3489
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgMultiLabelTemplateDirective, "[ng-multi-label-tmp]", never, {}, {}, never, never, true, never>;
|
|
3426
3490
|
}
|
|
3491
|
+
/**
|
|
3492
|
+
* Marks a template as the custom header template for ng-select.
|
|
3493
|
+
*
|
|
3494
|
+
* @since 3.0.0
|
|
3495
|
+
*/
|
|
3427
3496
|
declare class NgHeaderTemplateDirective {
|
|
3428
3497
|
readonly template: TemplateRef<any>;
|
|
3429
3498
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgHeaderTemplateDirective, never>;
|
|
3430
3499
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgHeaderTemplateDirective, "[ng-header-tmp]", never, {}, {}, never, never, true, never>;
|
|
3431
3500
|
}
|
|
3501
|
+
/**
|
|
3502
|
+
* Marks a template as the custom footer template for ng-select.
|
|
3503
|
+
*
|
|
3504
|
+
* @since 3.0.0
|
|
3505
|
+
*/
|
|
3432
3506
|
declare class NgFooterTemplateDirective {
|
|
3433
3507
|
readonly template: TemplateRef<any>;
|
|
3434
3508
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgFooterTemplateDirective, never>;
|
|
3435
3509
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgFooterTemplateDirective, "[ng-footer-tmp]", never, {}, {}, never, never, true, never>;
|
|
3436
3510
|
}
|
|
3511
|
+
/**
|
|
3512
|
+
* Marks a template as the custom not found template for ng-select.
|
|
3513
|
+
*
|
|
3514
|
+
* @since 3.0.0
|
|
3515
|
+
*/
|
|
3437
3516
|
declare class NgNotFoundTemplateDirective {
|
|
3438
3517
|
readonly template: TemplateRef<any>;
|
|
3439
3518
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgNotFoundTemplateDirective, never>;
|
|
3440
3519
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgNotFoundTemplateDirective, "[ng-notfound-tmp]", never, {}, {}, never, never, true, never>;
|
|
3441
3520
|
}
|
|
3521
|
+
/**
|
|
3522
|
+
* Marks a template as the custom type to search template for ng-select.
|
|
3523
|
+
*
|
|
3524
|
+
* @since 3.0.0
|
|
3525
|
+
*/
|
|
3442
3526
|
declare class NgTypeToSearchTemplateDirective {
|
|
3443
3527
|
readonly template: TemplateRef<any>;
|
|
3444
3528
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgTypeToSearchTemplateDirective, never>;
|
|
3445
3529
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgTypeToSearchTemplateDirective, "[ng-typetosearch-tmp]", never, {}, {}, never, never, true, never>;
|
|
3446
3530
|
}
|
|
3531
|
+
/**
|
|
3532
|
+
* Marks a template as the custom loading text template for ng-select.
|
|
3533
|
+
*
|
|
3534
|
+
* @since 3.0.0
|
|
3535
|
+
*/
|
|
3447
3536
|
declare class NgLoadingTextTemplateDirective {
|
|
3448
3537
|
readonly template: TemplateRef<any>;
|
|
3449
3538
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgLoadingTextTemplateDirective, never>;
|
|
3450
3539
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgLoadingTextTemplateDirective, "[ng-loadingtext-tmp]", never, {}, {}, never, never, true, never>;
|
|
3451
3540
|
}
|
|
3541
|
+
/**
|
|
3542
|
+
* Marks a template as the custom tag template for ng-select.
|
|
3543
|
+
*
|
|
3544
|
+
* @since 3.0.0
|
|
3545
|
+
*/
|
|
3452
3546
|
declare class NgTagTemplateDirective {
|
|
3453
3547
|
readonly template: TemplateRef<any>;
|
|
3454
3548
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgTagTemplateDirective, never>;
|
|
3455
3549
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgTagTemplateDirective, "[ng-tag-tmp]", never, {}, {}, never, never, true, never>;
|
|
3456
3550
|
}
|
|
3551
|
+
/**
|
|
3552
|
+
* Marks a template as the custom loading spinner template for ng-select.
|
|
3553
|
+
*
|
|
3554
|
+
* @since 3.0.0
|
|
3555
|
+
*/
|
|
3457
3556
|
declare class NgLoadingSpinnerTemplateDirective {
|
|
3458
3557
|
readonly template: TemplateRef<any>;
|
|
3459
3558
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgLoadingSpinnerTemplateDirective, never>;
|
|
3460
3559
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgLoadingSpinnerTemplateDirective, "[ng-loadingspinner-tmp]", never, {}, {}, never, never, true, never>;
|
|
3461
3560
|
}
|
|
3561
|
+
/**
|
|
3562
|
+
* Marks a template as the custom clear button template for ng-select.
|
|
3563
|
+
*
|
|
3564
|
+
* @since 14.2.0
|
|
3565
|
+
*/
|
|
3462
3566
|
declare class NgClearButtonTemplateDirective {
|
|
3463
3567
|
readonly template: TemplateRef<any>;
|
|
3464
3568
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgClearButtonTemplateDirective, never>;
|