@flywheel-io/vision 21.5.1 → 21.6.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": "@flywheel-io/vision",
3
- "version": "21.5.1",
3
+ "version": "21.6.0",
4
4
  "description": "Flywheel UI elements provided as Angular components and native web components",
5
5
  "author": "Flywheel",
6
6
  "license": "MIT",
@@ -907,6 +907,35 @@ declare class FwContainedInputModule {
907
907
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<FwContainedInputModule>;
908
908
  }
909
909
 
910
+ /**
911
+ * A boxed, single-select card combining `FwContainedInput`'s contained-card layout with a radio control.
912
+ * Renders as a child of `fw-radio-group`, the same way `fw-radio-button` does.
913
+ * @see [Vision storybook](https://cdn.flywheel.io/docs/vision/master/?path=/docs/form-controls-contained-radio--docs)
914
+ */
915
+ declare class FwContainedRadioComponent {
916
+ readonly value: _angular_core.InputSignal<string>;
917
+ readonly title: _angular_core.InputSignal<string>;
918
+ readonly description: _angular_core.InputSignal<string>;
919
+ readonly inputPosition: _angular_core.InputSignal<"start" | "end">;
920
+ readonly clamped: _angular_core.InputSignal<boolean>;
921
+ readonly margin: _angular_core.InputSignal<boolean>;
922
+ /**
923
+ * Set by the owning `fw-radio-group`, matching the underlying native `name` attribute so browser radio
924
+ * semantics (exclusivity, arrow-key navigation) work across sibling `fw-radio-button`/`fw-contained-radio` items
925
+ */
926
+ readonly group: _angular_core.ModelSignal<string>;
927
+ readonly checked: _angular_core.ModelSignal<boolean>;
928
+ readonly disabled: _angular_core.ModelSignal<boolean>;
929
+ readonly color: _angular_core.ModelSignal<"primary" | "secondary" | "default" | "slate">;
930
+ readonly size: _angular_core.ModelSignal<"medium" | "compact">;
931
+ readonly change: _angular_core.OutputEmitterRef<string>;
932
+ readonly inputId: _angular_core.Signal<string>;
933
+ readonly hostClass: _angular_core.Signal<string>;
934
+ handleChange(event: Event): void;
935
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FwContainedRadioComponent, never>;
936
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FwContainedRadioComponent, "fw-contained-radio", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "inputPosition": { "alias": "inputPosition"; "required": false; "isSignal": true; }; "clamped": { "alias": "clamped"; "required": false; "isSignal": true; }; "margin": { "alias": "margin"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "group": "groupChange"; "checked": "checkedChange"; "disabled": "disabledChange"; "color": "colorChange"; "size": "sizeChange"; "change": "change"; }, never, ["fw-tag"], true, never>;
937
+ }
938
+
910
939
  /**
911
940
  * Form control component for date, time, or datetime-local input with optional icon and Angular forms integration
912
941
  * @see [Vision storybook](https://cdn.flywheel.io/docs/vision/master/?path=/docs/form-controls-date-input--docs)
@@ -1870,8 +1899,11 @@ declare class FwRadioGroupComponent implements ControlValueAccessor {
1870
1899
  private sanitizer;
1871
1900
  private dr;
1872
1901
  protected radioButtons: _angular_core.Signal<readonly FwRadioComponent[]>;
1902
+ protected containedRadioButtons: _angular_core.Signal<readonly FwContainedRadioComponent[]>;
1903
+ protected allRadios: _angular_core.Signal<(FwRadioComponent | FwContainedRadioComponent)[]>;
1873
1904
  private _value;
1874
1905
  private radioSubs;
1906
+ private containedRadioSubs;
1875
1907
  get style(): SafeStyle;
1876
1908
  constructor();
1877
1909
  onTouch: () => void;
@@ -1882,7 +1914,7 @@ declare class FwRadioGroupComponent implements ControlValueAccessor {
1882
1914
  setDisabledState(isDisabled: boolean): void;
1883
1915
  handleChange(value: string): void;
1884
1916
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FwRadioGroupComponent, never>;
1885
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FwRadioGroupComponent, "fw-radio-group", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "change": "change"; }, ["radioButtons"], ["fw-radio-button"], true, never>;
1917
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FwRadioGroupComponent, "fw-radio-group", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "change": "change"; }, ["radioButtons", "containedRadioButtons"], ["fw-radio-button, fw-contained-radio"], true, never>;
1886
1918
  }
1887
1919
 
1888
1920
  /**
@@ -3192,6 +3224,33 @@ declare class FwTypeaheadComponent implements ControlValueAccessor {
3192
3224
  * @default "No results found"
3193
3225
  */
3194
3226
  emptyText: _angular_core.InputSignal<string>;
3227
+ /**
3228
+ * Text to display in place of the options list once no more options can be selected or added, i.e. when
3229
+ * `allowNew` is false and either every option is in `optionsNotAllowed` or every option is already selected.
3230
+ * @default "No options available"
3231
+ */
3232
+ exhaustedText: _angular_core.InputSignal<string>;
3233
+ /**
3234
+ * Values that cannot be selected or added, whether they come from `options` or are typed as a new value.
3235
+ * Matching is case-insensitive.
3236
+ * @default []
3237
+ */
3238
+ optionsNotAllowed: _angular_core.InputSignal<string[]>;
3239
+ /**
3240
+ * Called with a new (not-yet-existing) value before it's added, to allow rejecting it. Has no effect on
3241
+ * values that already exist in `options`.
3242
+ */
3243
+ onValidateNewOption: _angular_core.InputSignal<(newValue: string) => boolean>;
3244
+ /**
3245
+ * Label shown next to a new value that can be added
3246
+ * @default "New"
3247
+ */
3248
+ optionNewLabel: _angular_core.InputSignal<string>;
3249
+ /**
3250
+ * Label shown next to an option or new value that's disallowed via `optionsNotAllowed` or `onValidateNewOption`
3251
+ * @default "Not Allowed"
3252
+ */
3253
+ optionNotAllowedLabel: _angular_core.InputSignal<string>;
3195
3254
  setDisabledState(isDisabled: boolean): void;
3196
3255
  writeValue(incomingValue: string[]): void;
3197
3256
  onChange: (_: string[]) => void;
@@ -3228,6 +3287,24 @@ declare class FwTypeaheadComponent implements ControlValueAccessor {
3228
3287
  filteredOptions: _angular_core.Signal<string[]>;
3229
3288
  closeChip(chipValue: string): void;
3230
3289
  displayNewOption: _angular_core.Signal<boolean>;
3290
+ isOptionNotAllowed: (optionValue: string) => boolean;
3291
+ /**
3292
+ * Whether the currently typed searchValue is allowed to be added as a new value, per `onValidateNewOption`
3293
+ * and `optionsNotAllowed`. Only meaningful while `displayNewOption()` is true.
3294
+ */
3295
+ newOptionAllowed: _angular_core.Signal<boolean>;
3296
+ /**
3297
+ * Whether the new-option row should be shown. It's hidden while other matching options are still displayed,
3298
+ * to avoid distracting from those, and only surfaced once nothing else matches.
3299
+ */
3300
+ showNewOption: _angular_core.Signal<boolean>;
3301
+ private allOptionsNotAllowed;
3302
+ private allOptionsSelected;
3303
+ /**
3304
+ * True once no more options can be selected or typed in: `allowNew` is false and either every remaining
3305
+ * option is in `optionsNotAllowed`, or every provided option has already been selected.
3306
+ */
3307
+ isExhausted: _angular_core.Signal<boolean>;
3231
3308
  addValue: (newValue: string) => void;
3232
3309
  handleOptionClick: (optionValue: string) => void;
3233
3310
  resetFocusOnOptionsChange: _angular_core.EffectRef;
@@ -3246,7 +3323,7 @@ declare class FwTypeaheadComponent implements ControlValueAccessor {
3246
3323
  setFocusByValue(value: string): void;
3247
3324
  private moveFocused;
3248
3325
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FwTypeaheadComponent, never>;
3249
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FwTypeaheadComponent, "fw-typeahead", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "optionsInput": { "alias": "options"; "required": false; "isSignal": true; }; "maxOptionsHeight": { "alias": "maxOptionsHeight"; "required": false; "isSignal": true; }; "minOptionsHeight": { "alias": "minOptionsHeight"; "required": false; "isSignal": true; }; "optionsWidth": { "alias": "optionsWidth"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "selectType": { "alias": "selectType"; "required": false; "isSignal": true; }; "searchValue": { "alias": "searchValue"; "required": false; "isSignal": true; }; "allowNew": { "alias": "allowNew"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, { "loading": "loadingChange"; "disabled": "disabledChange"; "value": "valueChange"; "searchValue": "searchValueChange"; }, never, never, true, never>;
3326
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FwTypeaheadComponent, "fw-typeahead", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "exhaustedText": { "alias": "exhaustedText"; "required": false; "isSignal": true; }; "optionsNotAllowed": { "alias": "optionsNotAllowed"; "required": false; "isSignal": true; }; "onValidateNewOption": { "alias": "onValidateNewOption"; "required": false; "isSignal": true; }; "optionNewLabel": { "alias": "optionNewLabel"; "required": false; "isSignal": true; }; "optionNotAllowedLabel": { "alias": "optionNotAllowedLabel"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "optionsInput": { "alias": "options"; "required": false; "isSignal": true; }; "maxOptionsHeight": { "alias": "maxOptionsHeight"; "required": false; "isSignal": true; }; "minOptionsHeight": { "alias": "minOptionsHeight"; "required": false; "isSignal": true; }; "optionsWidth": { "alias": "optionsWidth"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "selectType": { "alias": "selectType"; "required": false; "isSignal": true; }; "searchValue": { "alias": "searchValue"; "required": false; "isSignal": true; }; "allowNew": { "alias": "allowNew"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, { "loading": "loadingChange"; "disabled": "disabledChange"; "value": "valueChange"; "searchValue": "searchValueChange"; }, never, never, true, never>;
3250
3327
  }
3251
3328
 
3252
3329
  /**
@@ -3276,5 +3353,5 @@ declare class FwWrappedInputModule {
3276
3353
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<FwWrappedInputModule>;
3277
3354
  }
3278
3355
 
3279
- export { DEFAULT_PRESET_COLORS, DEFAULT_RGBA, DialogWidth, FieldType, FwAlertComponent, FwAlertModule, FwAppIconComponent, FwAppIconModule, FwAvatarComponent, FwAvatarListComponent, FwAvatarModule, FwBackButtonComponent, FwBadgeComponent, FwBadgeModule, FwBreadcrumbsComponent, FwBreadcrumbsModule, FwButtonComponent, FwButtonDangerDirective, FwButtonDirective, FwButtonGroupComponent, FwButtonGroupModule, FwButtonModule, FwButtonPrimaryDirective, FwButtonSecondaryDirective, FwButtonSuccessDirective, FwButtonToggleComponent, FwButtonToggleItemComponent, FwButtonToggleModule, FwCardAttributeComponent, FwCardAuthorComponent, FwCardComponent, FwCardContentComponent, FwCardFooterComponent, FwCardHeaderComponent, FwCardModule, FwCell, FwCellDef, FwCheckboxComponent, FwCheckboxGroupComponent, FwCheckboxModule, FwChipComponent, FwChipModule, FwColorPickerComponent, FwColumnDef, FwContainedInputComponent, FwContainedInputModule, FwCrumbComponent, FwDateInputComponent, FwDateInputModule, FwDialogActionsComponent, FwDialogComponent, FwDialogConfirmComponent, FwDialogContentComponent, FwDialogHeaderComponent, FwDialogService, FwDialogSimpleComponent, FwDialogsModule, FwFooterCell, FwFooterCellDef, FwFooterRow, FwFooterRowDef, FwFormHeadingComponent, FwFormHeadingModule, FwFormRendererComponent, FwGridComponent, FwGridItemComponent, FwHeaderCell, FwHeaderCellDef, FwHeaderRow, FwHeaderRowDef, FwIconButtonComponent, FwIconButtonModule, FwIconComponent, FwIconModule, FwLayoutContextComponent, FwLayoutGroupComponent, FwLayoutPanelComponent, FwLayoutSidebarComponent, FwLayoutToolbarComponent, FwLayoutsModule, FwMenuCloseTriggersDirective, FwMenuComponent, FwMenuContainerComponent, FwMenuHeaderComponent, FwMenuItemComponent, FwMenuItemGroupComponent, FwMenuModule, FwMenuSeparatorComponent, FwMenuSubItemComponent, FwMultiSelectMenuComponent, FwNavbarComponent, FwNavbarHeaderComponent, FwNavbarItemComponent, FwNavbarModule, FwNavbarSubItemComponent, FwNoDataRow, FwNumberInputComponent, FwNumberInputModule, FwPaginatorAdvancedComponent, FwPaginatorComponent, FwPaginatorModule, FwPhoneInputComponent, FwPhoneInputModule, FwPopoverComponent, FwPopoverModule, FwPopoverPanelComponent, FwProgressBarComponent, FwProgressModule, FwProgressSpinnerComponent, FwRadioComponent, FwRadioGroupComponent, FwRadioModule, FwRow, FwRowDef, FwSectionHeadingComponent, FwSectionHeadingModule, FwSelectMenuComponent, FwSelectMenuModule, FwSnackbarComponent, FwSnackbarContainerComponent, FwSnackbarModule, FwSnackbarService, FwStepComponent, FwStepDecoratorComponent, FwStepperComponent, FwStepperModule, FwSubsectionHeadingComponent, FwSwitchComponent, FwSwitchModule, FwTabComponent, FwTabPanelComponent, FwTableComponent, FwTableDenseComponent, FwTableModule, FwTabsComponent, FwTabsModule, FwTagComponent, FwTagModule, FwTextAreaInputComponent, FwTextAreaInputModule, FwTextComponent, FwTextInputComponent, FwTextInputModule, FwTimeZoneSelectComponent, FwTooltipComponent, FwTooltipDirective, FwTooltipModule, FwTooltipPanelComponent, FwTypeaheadComponent, FwValidators, FwWrappedInputComponent, FwWrappedInputModule, LayoutWidth, MAX_PRESET_COLORS, MenuManagerService, MenuRegisterDirective, MinimalTranslationService, NoopValueAccessorDirective, TranslationService, allIcons, clamp, genMessageId, hexToRgba, hslaToHsva, hsvaToHsla, hsvaToRgba, notBeforeDate, notFutureDate, rgbaToHex, rgbaToHex8, rgbaToHsva };
3356
+ export { DEFAULT_PRESET_COLORS, DEFAULT_RGBA, DialogWidth, FieldType, FwAlertComponent, FwAlertModule, FwAppIconComponent, FwAppIconModule, FwAvatarComponent, FwAvatarListComponent, FwAvatarModule, FwBackButtonComponent, FwBadgeComponent, FwBadgeModule, FwBreadcrumbsComponent, FwBreadcrumbsModule, FwButtonComponent, FwButtonDangerDirective, FwButtonDirective, FwButtonGroupComponent, FwButtonGroupModule, FwButtonModule, FwButtonPrimaryDirective, FwButtonSecondaryDirective, FwButtonSuccessDirective, FwButtonToggleComponent, FwButtonToggleItemComponent, FwButtonToggleModule, FwCardAttributeComponent, FwCardAuthorComponent, FwCardComponent, FwCardContentComponent, FwCardFooterComponent, FwCardHeaderComponent, FwCardModule, FwCell, FwCellDef, FwCheckboxComponent, FwCheckboxGroupComponent, FwCheckboxModule, FwChipComponent, FwChipModule, FwColorPickerComponent, FwColumnDef, FwContainedInputComponent, FwContainedInputModule, FwContainedRadioComponent, FwCrumbComponent, FwDateInputComponent, FwDateInputModule, FwDialogActionsComponent, FwDialogComponent, FwDialogConfirmComponent, FwDialogContentComponent, FwDialogHeaderComponent, FwDialogService, FwDialogSimpleComponent, FwDialogsModule, FwFooterCell, FwFooterCellDef, FwFooterRow, FwFooterRowDef, FwFormHeadingComponent, FwFormHeadingModule, FwFormRendererComponent, FwGridComponent, FwGridItemComponent, FwHeaderCell, FwHeaderCellDef, FwHeaderRow, FwHeaderRowDef, FwIconButtonComponent, FwIconButtonModule, FwIconComponent, FwIconModule, FwLayoutContextComponent, FwLayoutGroupComponent, FwLayoutPanelComponent, FwLayoutSidebarComponent, FwLayoutToolbarComponent, FwLayoutsModule, FwMenuCloseTriggersDirective, FwMenuComponent, FwMenuContainerComponent, FwMenuHeaderComponent, FwMenuItemComponent, FwMenuItemGroupComponent, FwMenuModule, FwMenuSeparatorComponent, FwMenuSubItemComponent, FwMultiSelectMenuComponent, FwNavbarComponent, FwNavbarHeaderComponent, FwNavbarItemComponent, FwNavbarModule, FwNavbarSubItemComponent, FwNoDataRow, FwNumberInputComponent, FwNumberInputModule, FwPaginatorAdvancedComponent, FwPaginatorComponent, FwPaginatorModule, FwPhoneInputComponent, FwPhoneInputModule, FwPopoverComponent, FwPopoverModule, FwPopoverPanelComponent, FwProgressBarComponent, FwProgressModule, FwProgressSpinnerComponent, FwRadioComponent, FwRadioGroupComponent, FwRadioModule, FwRow, FwRowDef, FwSectionHeadingComponent, FwSectionHeadingModule, FwSelectMenuComponent, FwSelectMenuModule, FwSnackbarComponent, FwSnackbarContainerComponent, FwSnackbarModule, FwSnackbarService, FwStepComponent, FwStepDecoratorComponent, FwStepperComponent, FwStepperModule, FwSubsectionHeadingComponent, FwSwitchComponent, FwSwitchModule, FwTabComponent, FwTabPanelComponent, FwTableComponent, FwTableDenseComponent, FwTableModule, FwTabsComponent, FwTabsModule, FwTagComponent, FwTagModule, FwTextAreaInputComponent, FwTextAreaInputModule, FwTextComponent, FwTextInputComponent, FwTextInputModule, FwTimeZoneSelectComponent, FwTooltipComponent, FwTooltipDirective, FwTooltipModule, FwTooltipPanelComponent, FwTypeaheadComponent, FwValidators, FwWrappedInputComponent, FwWrappedInputModule, LayoutWidth, MAX_PRESET_COLORS, MenuManagerService, MenuRegisterDirective, MinimalTranslationService, NoopValueAccessorDirective, TranslationService, allIcons, clamp, genMessageId, hexToRgba, hslaToHsva, hsvaToHsla, hsvaToRgba, notBeforeDate, notFutureDate, rgbaToHex, rgbaToHex8, rgbaToHsva };
3280
3357
  export type { CustomField, CustomForm, CustomSection, DelayLength$3 as DelayLength, FwButtonColorOption, FwDialogConfig, FwDialogRef, FwPaginatorEvent, FwSnackbarMessage, HslaColor, HsvaColor, IconSize, IconType, LogicRule, MenuFilterFn, PaginationPage, PopoverPosition, RgbaColor, SimplePosition };