@flywheel-io/vision 21.5.1 → 21.5.2

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.5.2",
4
4
  "description": "Flywheel UI elements provided as Angular components and native web components",
5
5
  "author": "Flywheel",
6
6
  "license": "MIT",
@@ -3192,6 +3192,33 @@ declare class FwTypeaheadComponent implements ControlValueAccessor {
3192
3192
  * @default "No results found"
3193
3193
  */
3194
3194
  emptyText: _angular_core.InputSignal<string>;
3195
+ /**
3196
+ * Text to display in place of the options list once no more options can be selected or added, i.e. when
3197
+ * `allowNew` is false and either every option is in `optionsNotAllowed` or every option is already selected.
3198
+ * @default "No options available"
3199
+ */
3200
+ exhaustedText: _angular_core.InputSignal<string>;
3201
+ /**
3202
+ * Values that cannot be selected or added, whether they come from `options` or are typed as a new value.
3203
+ * Matching is case-insensitive.
3204
+ * @default []
3205
+ */
3206
+ optionsNotAllowed: _angular_core.InputSignal<string[]>;
3207
+ /**
3208
+ * Called with a new (not-yet-existing) value before it's added, to allow rejecting it. Has no effect on
3209
+ * values that already exist in `options`.
3210
+ */
3211
+ onValidateNewOption: _angular_core.InputSignal<(newValue: string) => boolean>;
3212
+ /**
3213
+ * Label shown next to a new value that can be added
3214
+ * @default "New"
3215
+ */
3216
+ optionNewLabel: _angular_core.InputSignal<string>;
3217
+ /**
3218
+ * Label shown next to an option or new value that's disallowed via `optionsNotAllowed` or `onValidateNewOption`
3219
+ * @default "Not Allowed"
3220
+ */
3221
+ optionNotAllowedLabel: _angular_core.InputSignal<string>;
3195
3222
  setDisabledState(isDisabled: boolean): void;
3196
3223
  writeValue(incomingValue: string[]): void;
3197
3224
  onChange: (_: string[]) => void;
@@ -3228,6 +3255,24 @@ declare class FwTypeaheadComponent implements ControlValueAccessor {
3228
3255
  filteredOptions: _angular_core.Signal<string[]>;
3229
3256
  closeChip(chipValue: string): void;
3230
3257
  displayNewOption: _angular_core.Signal<boolean>;
3258
+ isOptionNotAllowed: (optionValue: string) => boolean;
3259
+ /**
3260
+ * Whether the currently typed searchValue is allowed to be added as a new value, per `onValidateNewOption`
3261
+ * and `optionsNotAllowed`. Only meaningful while `displayNewOption()` is true.
3262
+ */
3263
+ newOptionAllowed: _angular_core.Signal<boolean>;
3264
+ /**
3265
+ * Whether the new-option row should be shown. It's hidden while other matching options are still displayed,
3266
+ * to avoid distracting from those, and only surfaced once nothing else matches.
3267
+ */
3268
+ showNewOption: _angular_core.Signal<boolean>;
3269
+ private allOptionsNotAllowed;
3270
+ private allOptionsSelected;
3271
+ /**
3272
+ * True once no more options can be selected or typed in: `allowNew` is false and either every remaining
3273
+ * option is in `optionsNotAllowed`, or every provided option has already been selected.
3274
+ */
3275
+ isExhausted: _angular_core.Signal<boolean>;
3231
3276
  addValue: (newValue: string) => void;
3232
3277
  handleOptionClick: (optionValue: string) => void;
3233
3278
  resetFocusOnOptionsChange: _angular_core.EffectRef;
@@ -3246,7 +3291,7 @@ declare class FwTypeaheadComponent implements ControlValueAccessor {
3246
3291
  setFocusByValue(value: string): void;
3247
3292
  private moveFocused;
3248
3293
  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>;
3294
+ 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
3295
  }
3251
3296
 
3252
3297
  /**