ng-hub-ui-forms 22.47.2 → 22.49.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-hub-ui-forms",
3
- "version": "22.47.2",
3
+ "version": "22.49.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)",
@@ -35,13 +35,12 @@
35
35
  "signals"
36
36
  ],
37
37
  "peerDependencies": {
38
- "@angular/cdk": ">=22.0.0",
39
38
  "@angular/common": ">=22.0.0",
40
39
  "@angular/core": ">=22.0.0",
41
40
  "@angular/forms": ">=22.0.0",
42
41
  "@angular/platform-browser": ">=22.0.0",
43
42
  "ng-hub-ui-ds": ">=22.14.1",
44
- "ng-hub-ui-utils": ">=22.21.0"
43
+ "ng-hub-ui-utils": ">=22.23.0"
45
44
  },
46
45
  "peerDependenciesMeta": {
47
46
  "ng-hub-ui-ds": {
@@ -620,7 +620,7 @@
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 vendored ng-select hard-codes `z-index: 1050` on
623
+ // Dropdown panel stacking. The select engine hard-codes `z-index: 1050` on
624
624
  // `.ng-dropdown-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.
@@ -1789,7 +1789,7 @@ declare class HubFormComponent extends HubGroupControl {
1789
1789
  /**
1790
1790
  * Rendering formats for `<hub-select>`.
1791
1791
  *
1792
- * - `dropdown` — the ng-select engine (search, virtual scroll, tags…).
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).
@@ -1810,9 +1810,9 @@ declare enum HubSelectFormats {
1810
1810
  *
1811
1811
  * @since 3.0.0
1812
1812
  */
1813
- declare class NgSelectConfig {
1813
+ declare class HubSelectConfig {
1814
1814
  /** Placeholder text. */
1815
- placeholder: string;
1815
+ placeholder?: string;
1816
1816
  /** Set placeholder visible even when an item is selected. */
1817
1817
  fixedPlaceholder: boolean;
1818
1818
  /** Set custom text when filter returns empty result. */
@@ -1834,17 +1834,17 @@ declare class NgSelectConfig {
1834
1834
  /** Open dropdown using enter. */
1835
1835
  openOnEnter: boolean;
1836
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). */
1837
- appendTo: string;
1837
+ appendTo?: string;
1838
1838
  /** Object property to use for selected model. By default binds to whole object. */
1839
- bindValue: string;
1839
+ bindValue?: string;
1840
1840
  /** Object property to use for label. */
1841
- bindLabel: string;
1841
+ bindLabel?: string;
1842
1842
  /** Allows to select dropdown appearance. Set to `outline` or `fill` for Material form-field styles (applies only to Material theme). */
1843
1843
  appearance: string;
1844
1844
  /** Clears search input when item is selected. */
1845
- clearSearchOnAdd: boolean;
1845
+ clearSearchOnAdd?: boolean;
1846
1846
  /** Deselects a selected item when it is clicked in the dropdown. */
1847
- deselectOnClick: boolean;
1847
+ deselectOnClick?: boolean;
1848
1848
  /** Control tab navigation behavior for the clear button. */
1849
1849
  tabFocusOnClear: boolean;
1850
1850
  /**
@@ -1855,18 +1855,17 @@ declare class NgSelectConfig {
1855
1855
  outsideClickEvent: 'click' | 'mousedown';
1856
1856
  /** Close the dropdown when the page or an ancestor container scrolls. */
1857
1857
  closeOnScroll: boolean;
1858
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgSelectConfig, never>;
1859
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<NgSelectConfig>;
1858
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HubSelectConfig, never>;
1859
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<HubSelectConfig>;
1860
1860
  }
1861
1861
 
1862
1862
  /**
1863
- * Accessible select / multiselect / autocomplete built on the vendored ng-select engine, with the
1863
+ * Accessible select / multiselect / autocomplete built on the select engine, with the
1864
1864
  * `ng-hub-ui-forms` conventions on top: CVA binding, automatic error display (via
1865
1865
  * {@link HubFieldControl}), label, helper text and `--hub-select-*` token theming.
1866
1866
  *
1867
- * The underlying ng-select DOM is themed in place from this component's stylesheet
1868
- * (`ViewEncapsulation.None`) using hub tokens — no external `::ng-deep` overrides, and the vendored
1869
- * source stays untouched so the upstream sync remains automatic.
1867
+ * The engine's DOM is themed in place from this component's stylesheet
1868
+ * (`ViewEncapsulation.None`) using hub tokens, with no external `::ng-deep` overrides.
1870
1869
  *
1871
1870
  * @example
1872
1871
  * ```html
@@ -1876,11 +1875,10 @@ declare class NgSelectConfig {
1876
1875
  declare class HubSelectComponent extends HubFieldControl {
1877
1876
  #private;
1878
1877
  /**
1879
- * The app's global select configuration, read here rather than left to the engine: the
1880
- * vendored source is re-synced from upstream, so a fallback that lives in its template is
1881
- * one sync away from disappearing. See {@link placeholder}.
1878
+ * The app's global select configuration, read here rather than left to the engine, so a
1879
+ * fallback does not depend on the engine's template. See {@link placeholder}.
1882
1880
  */
1883
- protected readonly _ngSelectConfig: NgSelectConfig;
1881
+ protected readonly _selectConfig: HubSelectConfig;
1884
1882
  /**
1885
1883
  * The engine behind the field, kept only so the list can be worked from outside.
1886
1884
  *
@@ -2024,7 +2022,7 @@ declare class HubSelectComponent extends HubFieldControl {
2024
2022
  */
2025
2023
  readonly labelType: _angular_core.InputSignal<HubLabelType>;
2026
2024
  /**
2027
- * Placeholder text. Left undefined so the engine falls back to the app's `NgSelectConfig`,
2025
+ * Placeholder text. Left undefined so the engine falls back to the app's `HubSelectConfig`,
2028
2026
  * which carries no placeholder of its own unless the app sets one. See {@link notFoundText}.
2029
2027
  */
2030
2028
  readonly placeholder: _angular_core.InputSignal<string | undefined>;
@@ -2044,7 +2042,7 @@ declare class HubSelectComponent extends HubFieldControl {
2044
2042
  readonly clearSearchOnAdd: _angular_core.InputSignal<boolean | undefined>;
2045
2043
  /**
2046
2044
  * Keep the placeholder visible even when a value is selected. Defaults to `false` (the
2047
- * placeholder hides on selection) — ng-select v23 defaults this to `true`, which is not the
2045
+ * placeholder hides on selection) — the engine defaults this to `true`, which is not the
2048
2046
  * conventional behavior.
2049
2047
  */
2050
2048
  readonly fixedPlaceholder: _angular_core.InputSignalWithTransform<boolean, unknown>;
@@ -2072,7 +2070,7 @@ declare class HubSelectComponent extends HubFieldControl {
2072
2070
  readonly initialSearchTerm: _angular_core.InputSignal<string | null>;
2073
2071
  /**
2074
2072
  * Text shown when no items match. Left undefined so the engine falls back to the app's
2075
- * `NgSelectConfig`, which is where a translated build sets it once for every select.
2073
+ * `HubSelectConfig`, which is where a translated build sets it once for every select.
2076
2074
  */
2077
2075
  readonly notFoundText: _angular_core.InputSignal<string | undefined>;
2078
2076
  /**
@@ -2090,7 +2088,7 @@ declare class HubSelectComponent extends HubFieldControl {
2090
2088
  readonly addTag: _angular_core.InputSignal<boolean | ((term: string) => any | Promise<any>)>;
2091
2089
  /**
2092
2090
  * 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 `NgSelectConfig`. See {@link notFoundText}.
2091
+ * so the engine falls back to the app's `HubSelectConfig`. See {@link notFoundText}.
2094
2092
  */
2095
2093
  readonly addTagText: _angular_core.InputSignal<string | undefined>;
2096
2094
  /** Minimum search-term length before filtering (or `typeahead`) kicks in. */
@@ -2100,19 +2098,19 @@ declare class HubSelectComponent extends HubFieldControl {
2100
2098
  * (dropdown format). When provided, the control stops filtering client-side
2101
2099
  * and pushes each term here; feed the results back through `items`.
2102
2100
  *
2103
- * Note: the vendor also pushes `null` through the Subject when it clears the
2101
+ * Note: the engine also pushes `null` through the Subject when it clears the
2104
2102
  * search box (e.g. right after a selection) — filter it out if you only
2105
2103
  * expect strings.
2106
2104
  */
2107
2105
  readonly typeahead: _angular_core.InputSignal<Subject<string> | undefined>;
2108
2106
  /**
2109
2107
  * Custom equality between an item and the bound value (e.g. objects compared
2110
- * by id). When omitted, the vendor's built-in comparison applies.
2108
+ * by id). When omitted, the engine's built-in comparison applies.
2111
2109
  */
2112
2110
  readonly compareWith: _angular_core.InputSignal<((a: any, b: any) => boolean) | undefined>;
2113
2111
  /** Extra CSS classes applied to the host element. */
2114
2112
  readonly classlist: _angular_core.InputSignal<string>;
2115
- /** ARIA attributes forwarded to the vendor's combobox search input. */
2113
+ /** ARIA attributes forwarded to the engine's combobox search input. */
2116
2114
  protected readonly a11yInputAttrs: _angular_core.Signal<Record<string, string>>;
2117
2115
  /** Emits whenever the value changes. Carries the bound value, the one the form holds. */
2118
2116
  readonly valueChange: _angular_core.OutputEmitterRef<any>;
@@ -3263,13 +3261,11 @@ declare class HubFileDropOverlayComponent {
3263
3261
  /**
3264
3262
  * Hub-named slots for the parts of a `<hub-select>` a consumer can re-draw.
3265
3263
  *
3266
- * `hub-select` is built on a vendored copy of ng-select (see `PATCHES.md`), whose own slot
3267
- * directives are attribute selectors in the `ng-*` namespace: `ng-option-tmp`, `ng-label-tmp` and
3264
+ * The select engine this component is built on (see `PATCHES.md`) declares its own slot
3265
+ * directives as attribute selectors in the `ng-*` namespace: `ng-option-tmp`, `ng-label-tmp` and
3268
3266
  * ten more. Those were re-exported, so the public surface of `ng-hub-ui-forms` invited consumers to
3269
- * write markup named after an internal dependency that is re-synced from upstream on a schedule and
3270
- * that no promise here covers. The directives in this file are the surface the library actually
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.
3267
+ * write markup named after the engine's origin rather than after this library. The directives in
3268
+ * this file are the surface the library owns: same slots, same template contexts, hub names.
3273
3269
  *
3274
3270
  * Each is a plain marker over an `<ng-template>`; `hub-select` queries it and forwards the template
3275
3271
  * into the engine with the context documented on each directive.
@@ -3422,7 +3418,7 @@ declare class HubSelectClearButtonDirective {
3422
3418
  *
3423
3419
  * @since 3.0.0
3424
3420
  */
3425
- declare class NgOptionComponent implements OnInit {
3421
+ declare class HubOptionComponent implements OnInit {
3426
3422
  /** Value bound to the option. The projected element content is used as the option's label. */
3427
3423
  readonly value: _angular_core.InputSignal<any>;
3428
3424
  /** Whether the option is disabled and cannot be selected. */
@@ -3433,7 +3429,7 @@ declare class NgOptionComponent implements OnInit {
3433
3429
  /** True when this component's inputs are initialized (after first change detection). */
3434
3430
  readonly isInitialized: _angular_core.WritableSignal<boolean>;
3435
3431
  /**
3436
- * Creates an instance of NgOptionComponent.
3432
+ * Creates an instance of HubOptionComponent.
3437
3433
  *
3438
3434
  * @since 3.0.0
3439
3435
  */
@@ -3444,8 +3440,8 @@ declare class NgOptionComponent implements OnInit {
3444
3440
  * @since 21.5.2
3445
3441
  */
3446
3442
  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>;
3443
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HubOptionComponent, never>;
3444
+ 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>;
3449
3445
  }
3450
3446
 
3451
3447
  /**
@@ -4355,5 +4351,5 @@ interface HubFormControlAdapter {
4355
4351
  */
4356
4352
  declare const hubFormControlAdapter: HubFormControlAdapter;
4357
4353
 
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 };
4354
+ 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
4355
  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 };