ng-hub-ui-forms 22.48.0 → 22.50.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 +2 -2
- package/fesm2022/ng-hub-ui-forms.mjs +393 -533
- package/fesm2022/ng-hub-ui-forms.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/_field.scss +6 -6
- package/styles/_group-addons.scss +11 -11
- package/styles/_tokens.scss +2 -2
- package/styles/mixins/_select-chip.scss +4 -4
- package/types/ng-hub-ui-forms.d.ts +78 -64
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-hub-ui-forms",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.50.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)",
|
package/styles/_field.scss
CHANGED
|
@@ -426,7 +426,7 @@ hub-timepicker {
|
|
|
426
426
|
.hub-field__control:focus-visible,
|
|
427
427
|
.hub-input__control:focus,
|
|
428
428
|
.hub-textarea__control:focus,
|
|
429
|
-
.hub-select__control
|
|
429
|
+
.hub-select__control-focused {
|
|
430
430
|
border-color: var(--hub-input-readonly-border-color);
|
|
431
431
|
box-shadow: none;
|
|
432
432
|
outline: none;
|
|
@@ -436,8 +436,8 @@ hub-timepicker {
|
|
|
436
436
|
// offer. The datepicker already hides its own clear when read-only; the icon it
|
|
437
437
|
// opens with is the same promise.
|
|
438
438
|
.hub-select__control {
|
|
439
|
-
.
|
|
440
|
-
.
|
|
439
|
+
.hub-select__arrow-wrapper,
|
|
440
|
+
.hub-select__clear {
|
|
441
441
|
display: none;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
@@ -498,7 +498,7 @@ hub-timepicker {
|
|
|
498
498
|
.hub-field__control:focus-visible,
|
|
499
499
|
.hub-input__control:focus,
|
|
500
500
|
.hub-textarea__control:focus,
|
|
501
|
-
.hub-select__control
|
|
501
|
+
.hub-select__control-focused {
|
|
502
502
|
border-color: transparent;
|
|
503
503
|
box-shadow: none;
|
|
504
504
|
outline: none;
|
|
@@ -511,8 +511,8 @@ hub-timepicker {
|
|
|
511
511
|
|
|
512
512
|
// Every affordance promises a choice that is not on offer here.
|
|
513
513
|
.hub-select__control {
|
|
514
|
-
.
|
|
515
|
-
.
|
|
514
|
+
.hub-select__arrow-wrapper,
|
|
515
|
+
.hub-select__clear {
|
|
516
516
|
display: none;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
|
|
102
102
|
.hub-field__control:focus,
|
|
103
103
|
.hub-#{$field}__control:focus,
|
|
104
|
-
.
|
|
105
|
-
.
|
|
104
|
+
.hub-select__control--focused .hub-select__box,
|
|
105
|
+
.hub-select__control--opened .hub-select__box {
|
|
106
106
|
box-shadow: none;
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
// padding it should never have taken, and the control inside takes the squaring.
|
|
275
275
|
//
|
|
276
276
|
// Not wrapped in `:where()`, unlike the fill below. The select's own radius arrives
|
|
277
|
-
// from `.hub-select__control
|
|
277
|
+
// from `.hub-select__control .hub-select__box` — three classes — and a
|
|
278
278
|
// zero-specificity rule would lose to it in silence.
|
|
279
279
|
> hub-input,
|
|
280
280
|
> hub-select,
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
&--prepend > hub-input .hub-field__control,
|
|
290
|
-
&--prepend > hub-select .
|
|
290
|
+
&--prepend > hub-select .hub-select__box,
|
|
291
291
|
&--prepend > hub-textarea .hub-field__control,
|
|
292
292
|
&--prepend > hub-datepicker .hub-field__control,
|
|
293
293
|
&--prepend > hub-timepicker .hub-field__control {
|
|
@@ -322,13 +322,13 @@
|
|
|
322
322
|
border-end-start-radius: var(--hub-input-border-radius);
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
&--prepend > hub-select:first-child .
|
|
325
|
+
&--prepend > hub-select:first-child .hub-select__box {
|
|
326
326
|
border-start-start-radius: var(--hub-select-border-radius);
|
|
327
327
|
border-end-start-radius: var(--hub-select-border-radius);
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
&--append > hub-input .hub-field__control,
|
|
331
|
-
&--append > hub-select .
|
|
331
|
+
&--append > hub-select .hub-select__box,
|
|
332
332
|
&--append > hub-textarea .hub-field__control,
|
|
333
333
|
&--append > hub-datepicker .hub-field__control,
|
|
334
334
|
&--append > hub-timepicker .hub-field__control {
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
border-end-end-radius: var(--hub-input-border-radius);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
&--append > hub-select:last-child .
|
|
348
|
+
&--append > hub-select:last-child .hub-select__box {
|
|
349
349
|
border-start-end-radius: var(--hub-select-border-radius);
|
|
350
350
|
border-end-end-radius: var(--hub-select-border-radius);
|
|
351
351
|
}
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
//
|
|
388
388
|
// Descendant, not child. The element that PAINTS the box is not always a child of
|
|
389
389
|
// the group: the datepicker wraps its input in a `__trigger` (it is the overlay
|
|
390
|
-
// origin) and the select paints on `.
|
|
390
|
+
// origin) and the select paints on `.hub-select__box`, two levels down. A child
|
|
391
391
|
// combinator here reproduces 22.13.1 one storey lower — the rule reads as though it
|
|
392
392
|
// covers every field while quietly matching nothing on the nested ones.
|
|
393
393
|
//
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
// The select's branch stays spelled out to the engine's own class. Reaching the element
|
|
398
398
|
// is not enough — the rule has to OUTRANK whatever else paints that corner, and the
|
|
399
399
|
// select theme claims it with three classes from a stylesheet that loads later. Trimming
|
|
400
|
-
// this branch to a bare `.
|
|
400
|
+
// this branch to a bare `.hub-select__box` shipped 22.17.0 with every select round
|
|
401
401
|
// again: the selector still matched, so a test that asks `matches()` stayed green.
|
|
402
402
|
.hub-#{$field}__group {
|
|
403
403
|
// Governed by the same token as the strip's own corners: the seam is one decision, not
|
|
@@ -406,14 +406,14 @@
|
|
|
406
406
|
// corners back too, or the flat side betrays a join that is no longer there.
|
|
407
407
|
&--has-prepend .hub-#{$field}__control,
|
|
408
408
|
&--has-prepend .hub-field__control,
|
|
409
|
-
&--has-prepend .hub-#{$field}__control.
|
|
409
|
+
&--has-prepend .hub-#{$field}__control.hub-select__control .hub-select__box {
|
|
410
410
|
border-start-start-radius: #{$attached-radius};
|
|
411
411
|
border-end-start-radius: #{$attached-radius};
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
&--has-append .hub-#{$field}__control,
|
|
415
415
|
&--has-append .hub-field__control,
|
|
416
|
-
&--has-append .hub-#{$field}__control.
|
|
416
|
+
&--has-append .hub-#{$field}__control.hub-select__control .hub-select__box {
|
|
417
417
|
border-start-end-radius: #{$attached-radius};
|
|
418
418
|
border-end-end-radius: #{$attached-radius};
|
|
419
419
|
}
|
package/styles/_tokens.scss
CHANGED
|
@@ -620,8 +620,8 @@
|
|
|
620
620
|
--hub-select-dropdown-box-shadow: var(--hub-sys-shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
|
|
621
621
|
// How far a list may grow past its control to show its options whole.
|
|
622
622
|
--hub-select-dropdown-max-width: 24rem;
|
|
623
|
-
// Dropdown panel stacking. The
|
|
624
|
-
// `.
|
|
623
|
+
// Dropdown panel stacking. The select engine hard-codes `z-index: 1050` on
|
|
624
|
+
// `.hub-select__panel` — one below HubModal (`--hub-sys-zindex-modal`, 1055) — so a
|
|
625
625
|
// select opened inside a modal was clipped underneath it. Sit a few layers above
|
|
626
626
|
// the modal instead.
|
|
627
627
|
// DEPRECATED name (non-canonical `z-index` spelling), kept one cycle as the default
|
|
@@ -81,20 +81,20 @@
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.
|
|
84
|
+
.hub-select__box {
|
|
85
85
|
cursor: pointer;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.
|
|
88
|
+
.hub-select__clear {
|
|
89
89
|
margin-inline-start: var(--hub-ref-space-2, 0.5rem);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
&:has(.
|
|
92
|
+
&:has(.hub-select__box--has-value) .hub-select__group {
|
|
93
93
|
border-color: var(--hub-select-chip-accent);
|
|
94
94
|
background: color-mix(in oklch, var(--hub-select-chip-accent) 16%, var(--hub-sys-surface-page, #fff));
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
&:has(.
|
|
97
|
+
&:has(.hub-select__box--has-value) .hub-select__value-label {
|
|
98
98
|
color: var(--hub-select-chip-accent-emphasis);
|
|
99
99
|
font-weight: 600;
|
|
100
100
|
}
|
|
@@ -1789,7 +1789,7 @@ declare class HubFormComponent extends HubGroupControl {
|
|
|
1789
1789
|
/**
|
|
1790
1790
|
* Rendering formats for `<hub-select>`.
|
|
1791
1791
|
*
|
|
1792
|
-
* - `dropdown` — the
|
|
1792
|
+
* - `dropdown` — the select engine (search, virtual scroll, tags…).
|
|
1793
1793
|
* - `buttons` — a toggle-button group (single or multiple, per `multiple`).
|
|
1794
1794
|
* - `checkbox` — a list of checkboxes (always multiple).
|
|
1795
1795
|
* - `radio` — a list of radios (always single).
|
|
@@ -1805,14 +1805,45 @@ declare enum HubSelectFormats {
|
|
|
1805
1805
|
Radio = "radio"
|
|
1806
1806
|
}
|
|
1807
1807
|
|
|
1808
|
+
/**
|
|
1809
|
+
* 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.
|
|
1810
|
+
*
|
|
1811
|
+
* @since 3.0.0
|
|
1812
|
+
*/
|
|
1813
|
+
declare class HubOptionComponent implements OnInit {
|
|
1814
|
+
/** Value bound to the option. The projected element content is used as the option's label. */
|
|
1815
|
+
readonly value: _angular_core.InputSignal<any>;
|
|
1816
|
+
/** Whether the option is disabled and cannot be selected. */
|
|
1817
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1818
|
+
readonly elementRef: ElementRef<any>;
|
|
1819
|
+
readonly label: _angular_core.WritableSignal<string>;
|
|
1820
|
+
readonly classes: _angular_core.WritableSignal<string>;
|
|
1821
|
+
/** True when this component's inputs are initialized (after first change detection). */
|
|
1822
|
+
readonly isInitialized: _angular_core.WritableSignal<boolean>;
|
|
1823
|
+
/**
|
|
1824
|
+
* Creates an instance of HubOptionComponent.
|
|
1825
|
+
*
|
|
1826
|
+
* @since 3.0.0
|
|
1827
|
+
*/
|
|
1828
|
+
constructor();
|
|
1829
|
+
/**
|
|
1830
|
+
* Initializes the instance after Angular has assigned its inputs.
|
|
1831
|
+
*
|
|
1832
|
+
* @since 21.5.2
|
|
1833
|
+
*/
|
|
1834
|
+
ngOnInit(): void;
|
|
1835
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HubOptionComponent, never>;
|
|
1836
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HubOptionComponent, "hub-option, ng-option", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1808
1839
|
/**
|
|
1809
1840
|
* Configuration provider for the NgSelect component. You can inject this service and provide application wide configuration.
|
|
1810
1841
|
*
|
|
1811
1842
|
* @since 3.0.0
|
|
1812
1843
|
*/
|
|
1813
|
-
declare class
|
|
1844
|
+
declare class HubSelectConfig {
|
|
1814
1845
|
/** Placeholder text. */
|
|
1815
|
-
placeholder
|
|
1846
|
+
placeholder?: string;
|
|
1816
1847
|
/** Set placeholder visible even when an item is selected. */
|
|
1817
1848
|
fixedPlaceholder: boolean;
|
|
1818
1849
|
/** Set custom text when filter returns empty result. */
|
|
@@ -1834,17 +1865,17 @@ declare class NgSelectConfig {
|
|
|
1834
1865
|
/** Open dropdown using enter. */
|
|
1835
1866
|
openOnEnter: boolean;
|
|
1836
1867
|
/** 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). */
|
|
1837
|
-
appendTo
|
|
1868
|
+
appendTo?: string;
|
|
1838
1869
|
/** Object property to use for selected model. By default binds to whole object. */
|
|
1839
|
-
bindValue
|
|
1870
|
+
bindValue?: string;
|
|
1840
1871
|
/** Object property to use for label. */
|
|
1841
|
-
bindLabel
|
|
1842
|
-
/**
|
|
1872
|
+
bindLabel?: string;
|
|
1873
|
+
/** @deprecated Has no effect: the Material appearances were removed along with the unused themes. */
|
|
1843
1874
|
appearance: string;
|
|
1844
1875
|
/** Clears search input when item is selected. */
|
|
1845
|
-
clearSearchOnAdd
|
|
1876
|
+
clearSearchOnAdd?: boolean;
|
|
1846
1877
|
/** Deselects a selected item when it is clicked in the dropdown. */
|
|
1847
|
-
deselectOnClick
|
|
1878
|
+
deselectOnClick?: boolean;
|
|
1848
1879
|
/** Control tab navigation behavior for the clear button. */
|
|
1849
1880
|
tabFocusOnClear: boolean;
|
|
1850
1881
|
/**
|
|
@@ -1855,18 +1886,33 @@ declare class NgSelectConfig {
|
|
|
1855
1886
|
outsideClickEvent: 'click' | 'mousedown';
|
|
1856
1887
|
/** Close the dropdown when the page or an ancestor container scrolls. */
|
|
1857
1888
|
closeOnScroll: boolean;
|
|
1858
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1859
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
1889
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HubSelectConfig, never>;
|
|
1890
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<HubSelectConfig>;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
/** Custom templates the engine can render, each receiving the same context as its `ng-*-tmp` directive. */
|
|
1894
|
+
interface HubSelectEngineTemplates {
|
|
1895
|
+
option?: TemplateRef<any> | null;
|
|
1896
|
+
optgroup?: TemplateRef<any> | null;
|
|
1897
|
+
label?: TemplateRef<any> | null;
|
|
1898
|
+
multiLabel?: TemplateRef<any> | null;
|
|
1899
|
+
header?: TemplateRef<any> | null;
|
|
1900
|
+
footer?: TemplateRef<any> | null;
|
|
1901
|
+
notFound?: TemplateRef<any> | null;
|
|
1902
|
+
typeToSearch?: TemplateRef<any> | null;
|
|
1903
|
+
loadingText?: TemplateRef<any> | null;
|
|
1904
|
+
tag?: TemplateRef<any> | null;
|
|
1905
|
+
loadingSpinner?: TemplateRef<any> | null;
|
|
1906
|
+
clearButton?: TemplateRef<any> | null;
|
|
1860
1907
|
}
|
|
1861
1908
|
|
|
1862
1909
|
/**
|
|
1863
|
-
* Accessible select / multiselect / autocomplete built on the
|
|
1910
|
+
* Accessible select / multiselect / autocomplete built on the select engine, with the
|
|
1864
1911
|
* `ng-hub-ui-forms` conventions on top: CVA binding, automatic error display (via
|
|
1865
1912
|
* {@link HubFieldControl}), label, helper text and `--hub-select-*` token theming.
|
|
1866
1913
|
*
|
|
1867
|
-
* The
|
|
1868
|
-
* (`ViewEncapsulation.None`) using hub tokens
|
|
1869
|
-
* source stays untouched so the upstream sync remains automatic.
|
|
1914
|
+
* The engine's DOM is themed in place from this component's stylesheet
|
|
1915
|
+
* (`ViewEncapsulation.None`) using hub tokens, with no external `::ng-deep` overrides.
|
|
1870
1916
|
*
|
|
1871
1917
|
* @example
|
|
1872
1918
|
* ```html
|
|
@@ -1876,11 +1922,10 @@ declare class NgSelectConfig {
|
|
|
1876
1922
|
declare class HubSelectComponent extends HubFieldControl {
|
|
1877
1923
|
#private;
|
|
1878
1924
|
/**
|
|
1879
|
-
* The app's global select configuration, read here rather than left to the engine
|
|
1880
|
-
*
|
|
1881
|
-
* one sync away from disappearing. See {@link placeholder}.
|
|
1925
|
+
* The app's global select configuration, read here rather than left to the engine, so a
|
|
1926
|
+
* fallback does not depend on the engine's template. See {@link placeholder}.
|
|
1882
1927
|
*/
|
|
1883
|
-
protected readonly
|
|
1928
|
+
protected readonly _selectConfig: HubSelectConfig;
|
|
1884
1929
|
/**
|
|
1885
1930
|
* The engine behind the field, kept only so the list can be worked from outside.
|
|
1886
1931
|
*
|
|
@@ -1945,6 +1990,8 @@ declare class HubSelectComponent extends HubFieldControl {
|
|
|
1945
1990
|
private readonly _hubClearButtonTpl;
|
|
1946
1991
|
private readonly _ngClearButtonTpl;
|
|
1947
1992
|
protected readonly _clearButtonTpl: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
1993
|
+
/** Every customization template found in this field's content, keyed the way the engine expects. */
|
|
1994
|
+
protected readonly _templates: _angular_core.Signal<HubSelectEngineTemplates>;
|
|
1948
1995
|
/** Deprecated select-only slot, superseded by `[hubAppend]`. */
|
|
1949
1996
|
protected readonly _legacySuffixTpl: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
1950
1997
|
/** Projected inline-start content (`[hubPrepend]`). */
|
|
@@ -2024,7 +2071,7 @@ declare class HubSelectComponent extends HubFieldControl {
|
|
|
2024
2071
|
*/
|
|
2025
2072
|
readonly labelType: _angular_core.InputSignal<HubLabelType>;
|
|
2026
2073
|
/**
|
|
2027
|
-
* Placeholder text. Left undefined so the engine falls back to the app's `
|
|
2074
|
+
* Placeholder text. Left undefined so the engine falls back to the app's `HubSelectConfig`,
|
|
2028
2075
|
* which carries no placeholder of its own unless the app sets one. See {@link notFoundText}.
|
|
2029
2076
|
*/
|
|
2030
2077
|
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
@@ -2044,7 +2091,7 @@ declare class HubSelectComponent extends HubFieldControl {
|
|
|
2044
2091
|
readonly clearSearchOnAdd: _angular_core.InputSignal<boolean | undefined>;
|
|
2045
2092
|
/**
|
|
2046
2093
|
* Keep the placeholder visible even when a value is selected. Defaults to `false` (the
|
|
2047
|
-
* placeholder hides on selection) —
|
|
2094
|
+
* placeholder hides on selection) — the engine defaults this to `true`, which is not the
|
|
2048
2095
|
* conventional behavior.
|
|
2049
2096
|
*/
|
|
2050
2097
|
readonly fixedPlaceholder: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -2072,7 +2119,7 @@ declare class HubSelectComponent extends HubFieldControl {
|
|
|
2072
2119
|
readonly initialSearchTerm: _angular_core.InputSignal<string | null>;
|
|
2073
2120
|
/**
|
|
2074
2121
|
* Text shown when no items match. Left undefined so the engine falls back to the app's
|
|
2075
|
-
* `
|
|
2122
|
+
* `HubSelectConfig`, which is where a translated build sets it once for every select.
|
|
2076
2123
|
*/
|
|
2077
2124
|
readonly notFoundText: _angular_core.InputSignal<string | undefined>;
|
|
2078
2125
|
/**
|
|
@@ -2090,7 +2137,7 @@ declare class HubSelectComponent extends HubFieldControl {
|
|
|
2090
2137
|
readonly addTag: _angular_core.InputSignal<boolean | ((term: string) => any | Promise<any>)>;
|
|
2091
2138
|
/**
|
|
2092
2139
|
* Label of the "add item" row shown while typing when `addTag` is enabled. Left undefined
|
|
2093
|
-
* so the engine falls back to the app's `
|
|
2140
|
+
* so the engine falls back to the app's `HubSelectConfig`. See {@link notFoundText}.
|
|
2094
2141
|
*/
|
|
2095
2142
|
readonly addTagText: _angular_core.InputSignal<string | undefined>;
|
|
2096
2143
|
/** Minimum search-term length before filtering (or `typeahead`) kicks in. */
|
|
@@ -2100,19 +2147,19 @@ declare class HubSelectComponent extends HubFieldControl {
|
|
|
2100
2147
|
* (dropdown format). When provided, the control stops filtering client-side
|
|
2101
2148
|
* and pushes each term here; feed the results back through `items`.
|
|
2102
2149
|
*
|
|
2103
|
-
* Note: the
|
|
2150
|
+
* Note: the engine also pushes `null` through the Subject when it clears the
|
|
2104
2151
|
* search box (e.g. right after a selection) — filter it out if you only
|
|
2105
2152
|
* expect strings.
|
|
2106
2153
|
*/
|
|
2107
2154
|
readonly typeahead: _angular_core.InputSignal<Subject<string> | undefined>;
|
|
2108
2155
|
/**
|
|
2109
2156
|
* Custom equality between an item and the bound value (e.g. objects compared
|
|
2110
|
-
* by id). When omitted, the
|
|
2157
|
+
* by id). When omitted, the engine's built-in comparison applies.
|
|
2111
2158
|
*/
|
|
2112
2159
|
readonly compareWith: _angular_core.InputSignal<((a: any, b: any) => boolean) | undefined>;
|
|
2113
2160
|
/** Extra CSS classes applied to the host element. */
|
|
2114
2161
|
readonly classlist: _angular_core.InputSignal<string>;
|
|
2115
|
-
/** ARIA attributes forwarded to the
|
|
2162
|
+
/** ARIA attributes forwarded to the engine's combobox search input. */
|
|
2116
2163
|
protected readonly a11yInputAttrs: _angular_core.Signal<Record<string, string>>;
|
|
2117
2164
|
/** Emits whenever the value changes. Carries the bound value, the one the form holds. */
|
|
2118
2165
|
readonly valueChange: _angular_core.OutputEmitterRef<any>;
|
|
@@ -3263,13 +3310,11 @@ declare class HubFileDropOverlayComponent {
|
|
|
3263
3310
|
/**
|
|
3264
3311
|
* Hub-named slots for the parts of a `<hub-select>` a consumer can re-draw.
|
|
3265
3312
|
*
|
|
3266
|
-
*
|
|
3267
|
-
* directives
|
|
3313
|
+
* The select engine this component is built on (see `PATCHES.md`) declares its own slot
|
|
3314
|
+
* directives as attribute selectors in the `ng-*` namespace: `ng-option-tmp`, `ng-label-tmp` and
|
|
3268
3315
|
* ten more. Those were re-exported, so the public surface of `ng-hub-ui-forms` invited consumers to
|
|
3269
|
-
* write markup named after
|
|
3270
|
-
*
|
|
3271
|
-
* owns: same slots, same template contexts, hub names, and nothing in `vendor/` changed — so the
|
|
3272
|
-
* automated sync stays as low-conflict as it was.
|
|
3316
|
+
* write markup named after the engine's origin rather than after this library. The directives in
|
|
3317
|
+
* this file are the surface the library owns: same slots, same template contexts, hub names.
|
|
3273
3318
|
*
|
|
3274
3319
|
* Each is a plain marker over an `<ng-template>`; `hub-select` queries it and forwards the template
|
|
3275
3320
|
* into the engine with the context documented on each directive.
|
|
@@ -3417,37 +3462,6 @@ declare class HubSelectClearButtonDirective {
|
|
|
3417
3462
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HubSelectClearButtonDirective, "[hubSelectClearButton]", never, {}, {}, never, never, true, never>;
|
|
3418
3463
|
}
|
|
3419
3464
|
|
|
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
|
-
*/
|
|
3425
|
-
declare class NgOptionComponent implements OnInit {
|
|
3426
|
-
/** Value bound to the option. The projected element content is used as the option's label. */
|
|
3427
|
-
readonly value: _angular_core.InputSignal<any>;
|
|
3428
|
-
/** Whether the option is disabled and cannot be selected. */
|
|
3429
|
-
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3430
|
-
readonly elementRef: ElementRef<any>;
|
|
3431
|
-
readonly label: _angular_core.WritableSignal<string>;
|
|
3432
|
-
readonly classes: _angular_core.WritableSignal<string>;
|
|
3433
|
-
/** True when this component's inputs are initialized (after first change detection). */
|
|
3434
|
-
readonly isInitialized: _angular_core.WritableSignal<boolean>;
|
|
3435
|
-
/**
|
|
3436
|
-
* Creates an instance of NgOptionComponent.
|
|
3437
|
-
*
|
|
3438
|
-
* @since 3.0.0
|
|
3439
|
-
*/
|
|
3440
|
-
constructor();
|
|
3441
|
-
/**
|
|
3442
|
-
* Initializes the instance after Angular has assigned its inputs.
|
|
3443
|
-
*
|
|
3444
|
-
* @since 21.5.2
|
|
3445
|
-
*/
|
|
3446
|
-
ngOnInit(): void;
|
|
3447
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgOptionComponent, never>;
|
|
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>;
|
|
3449
|
-
}
|
|
3450
|
-
|
|
3451
3465
|
/**
|
|
3452
3466
|
* Marks a template as the custom option template for ng-select.
|
|
3453
3467
|
*
|
|
@@ -4355,5 +4369,5 @@ interface HubFormControlAdapter {
|
|
|
4355
4369
|
*/
|
|
4356
4370
|
declare const hubFormControlAdapter: HubFormControlAdapter;
|
|
4357
4371
|
|
|
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 };
|
|
4372
|
+
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, HubOptionComponent, HubOtpInputComponent, HubPrependDirective, HubSafeUrlPipe, HubScrollToErrorDirective, HubSegmentedComponent, HubSegmentedOptionDirective, HubSelectClearButtonDirective, HubSelectComponent, HubSelectConfig, 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, HubOptionComponent as NgOptionComponent, NgOptionTemplateDirective, HubSelectConfig as 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 };
|
|
4359
4373
|
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 };
|