@rebilly/revel 11.4.1 → 11.4.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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [11.4.1](https://github.com/Rebilly/rebilly/compare/revel-v11.4.0...revel-v11.4.1) (2025-10-03)
1
+ ## [11.4.2](https://github.com/Rebilly/rebilly/compare/revel-v11.4.1...revel-v11.4.2) (2025-10-06)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * **revel:** Add a check to selected options to make them more visible ([#15469](https://github.com/Rebilly/rebilly/issues/15469)) ([53b6053](https://github.com/Rebilly/rebilly/commit/53b6053d8ac2411de50c2cef76db283ac7646465))
6
+ * **recomm:** Prevent selecting arbitrary values when using search select, rename taggable to allowCustomOptions ([#14374](https://github.com/Rebilly/rebilly/issues/14374)) ([c2b575b](https://github.com/Rebilly/rebilly/commit/c2b575b52d449d4408cb702700e3fa1cd8313421))
@@ -21,8 +21,8 @@ interface State {
21
21
  async: AsyncExtension;
22
22
  isHovered: boolean;
23
23
  }
24
- type CustomlabelFn = (option: OptionItem, label: string) => boolean;
25
- type TagValidatorFn = (option: ComplexOptionItem) => boolean;
24
+ type CustomLabelFn = (option: OptionItem, label: string) => boolean;
25
+ type CustomOptionsValidatorFn = (option: ComplexOptionItem) => boolean;
26
26
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
27
27
  /**
28
28
  * Specify if no option can be selected
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
63
63
  * If the option is an object specify what property should be used as a label, by default 'label'
64
64
  */
65
65
  customLabel: {
66
- type: PropType<CustomlabelFn>;
66
+ type: PropType<CustomLabelFn>;
67
67
  default(option: OptionItem, label: string): {};
68
68
  };
69
69
  /**
@@ -279,22 +279,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
279
279
  /**
280
280
  * Specify should the user create his own options - tags
281
281
  */
282
- taggable: {
282
+ allowCustomOptions: {
283
283
  type: BooleanConstructor;
284
284
  default: boolean;
285
285
  };
286
286
  /**
287
- * Specify tag position
287
+ * Specify custom option position
288
288
  */
289
- tagPosition: {
290
- type: StringConstructor;
289
+ customOptionsPosition: {
290
+ type: PropType<"top" | "bottom">;
291
291
  default: string;
292
292
  };
293
293
  /**
294
- * Specify how the tag is validating
294
+ * Specify how custom options are validated
295
295
  */
296
- tagValidator: {
297
- type: PropType<TagValidatorFn>;
296
+ customOptionsValidator: {
297
+ type: PropType<CustomOptionsValidatorFn>;
298
298
  default: () => true;
299
299
  };
300
300
  /**
@@ -447,7 +447,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
447
447
  * If the option is an object specify what property should be used as a label, by default 'label'
448
448
  */
449
449
  customLabel: {
450
- type: PropType<CustomlabelFn>;
450
+ type: PropType<CustomLabelFn>;
451
451
  default(option: OptionItem, label: string): {};
452
452
  };
453
453
  /**
@@ -663,22 +663,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
663
663
  /**
664
664
  * Specify should the user create his own options - tags
665
665
  */
666
- taggable: {
666
+ allowCustomOptions: {
667
667
  type: BooleanConstructor;
668
668
  default: boolean;
669
669
  };
670
670
  /**
671
- * Specify tag position
671
+ * Specify custom option position
672
672
  */
673
- tagPosition: {
674
- type: StringConstructor;
673
+ customOptionsPosition: {
674
+ type: PropType<"top" | "bottom">;
675
675
  default: string;
676
676
  };
677
677
  /**
678
- * Specify how the tag is validating
678
+ * Specify how custom options are validated
679
679
  */
680
- tagValidator: {
681
- type: PropType<TagValidatorFn>;
680
+ customOptionsValidator: {
681
+ type: PropType<CustomOptionsValidatorFn>;
682
682
  default: () => true;
683
683
  };
684
684
  /**
@@ -737,7 +737,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
737
737
  blockKeys: string[];
738
738
  clearOnSelect: boolean;
739
739
  closeOnSelect: boolean;
740
- customLabel: CustomlabelFn;
740
+ customLabel: CustomLabelFn;
741
741
  hideSelected: boolean;
742
742
  internalSearch: boolean;
743
743
  limitText: Function;
@@ -755,9 +755,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
755
755
  showNoOptions: boolean;
756
756
  showNoResults: boolean;
757
757
  showPointer: boolean;
758
- taggable: boolean;
759
- tagPosition: string;
760
- tagValidator: TagValidatorFn;
758
+ allowCustomOptions: boolean;
759
+ customOptionsPosition: "bottom" | "top";
760
+ customOptionsValidator: CustomOptionsValidatorFn;
761
761
  asyncConfig: Config;
762
762
  asyncValuePropsKey: string;
763
763
  trackAsyncUpdatesByObject: boolean;