@fluentui/web-components 3.0.0-beta.20 → 3.0.0-beta.21

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.
Files changed (82) hide show
  1. package/CHANGELOG.md +11 -2
  2. package/dist/dts/text-input/index.d.ts +5 -4
  3. package/dist/dts/text-input/text-input.d.ts +284 -67
  4. package/dist/dts/text-input/text-input.definition.d.ts +2 -3
  5. package/dist/dts/text-input/text-input.options.d.ts +19 -29
  6. package/dist/dts/text-input/text-input.styles.d.ts +5 -2
  7. package/dist/dts/text-input/text-input.template.d.ts +9 -3
  8. package/dist/esm/accordion/accordion.js +1 -6
  9. package/dist/esm/accordion/accordion.js.map +1 -1
  10. package/dist/esm/accordion-item/accordion-item.js +1 -6
  11. package/dist/esm/accordion-item/accordion-item.js.map +1 -1
  12. package/dist/esm/anchor-button/anchor-button.js +1 -6
  13. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  14. package/dist/esm/avatar/avatar.js +1 -6
  15. package/dist/esm/avatar/avatar.js.map +1 -1
  16. package/dist/esm/badge/badge.js +1 -6
  17. package/dist/esm/badge/badge.js.map +1 -1
  18. package/dist/esm/button/button.js +1 -6
  19. package/dist/esm/button/button.js.map +1 -1
  20. package/dist/esm/checkbox/checkbox.js +1 -6
  21. package/dist/esm/checkbox/checkbox.js.map +1 -1
  22. package/dist/esm/counter-badge/counter-badge.js +1 -6
  23. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  24. package/dist/esm/dialog/dialog.js +1 -6
  25. package/dist/esm/dialog/dialog.js.map +1 -1
  26. package/dist/esm/divider/divider.js +1 -6
  27. package/dist/esm/divider/divider.js.map +1 -1
  28. package/dist/esm/image/image.js +1 -6
  29. package/dist/esm/image/image.js.map +1 -1
  30. package/dist/esm/label/label.js +1 -6
  31. package/dist/esm/label/label.js.map +1 -1
  32. package/dist/esm/menu/menu.js +1 -6
  33. package/dist/esm/menu/menu.js.map +1 -1
  34. package/dist/esm/menu-item/menu-item.js +1 -6
  35. package/dist/esm/menu-item/menu-item.js.map +1 -1
  36. package/dist/esm/menu-list/menu-list.js +1 -6
  37. package/dist/esm/menu-list/menu-list.js.map +1 -1
  38. package/dist/esm/patterns/aria-globals.js +1 -6
  39. package/dist/esm/patterns/aria-globals.js.map +1 -1
  40. package/dist/esm/progress-bar/base-progress.js +1 -6
  41. package/dist/esm/progress-bar/base-progress.js.map +1 -1
  42. package/dist/esm/progress-bar/progress-bar.js +1 -6
  43. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  44. package/dist/esm/radio/radio.js +1 -6
  45. package/dist/esm/radio/radio.js.map +1 -1
  46. package/dist/esm/radio-group/radio-group.js +1 -6
  47. package/dist/esm/radio-group/radio-group.js.map +1 -1
  48. package/dist/esm/slider/slider.js +1 -6
  49. package/dist/esm/slider/slider.js.map +1 -1
  50. package/dist/esm/spinner/spinner.js +1 -6
  51. package/dist/esm/spinner/spinner.js.map +1 -1
  52. package/dist/esm/switch/switch.js +1 -6
  53. package/dist/esm/switch/switch.js.map +1 -1
  54. package/dist/esm/tab/tab.js +1 -6
  55. package/dist/esm/tab/tab.js.map +1 -1
  56. package/dist/esm/tabs/tabs.js +1 -6
  57. package/dist/esm/tabs/tabs.js.map +1 -1
  58. package/dist/esm/text/text.js +1 -6
  59. package/dist/esm/text/text.js.map +1 -1
  60. package/dist/esm/text-input/index.js +3 -3
  61. package/dist/esm/text-input/index.js.map +1 -1
  62. package/dist/esm/text-input/text-input.definition.js +2 -3
  63. package/dist/esm/text-input/text-input.definition.js.map +1 -1
  64. package/dist/esm/text-input/text-input.js +271 -102
  65. package/dist/esm/text-input/text-input.js.map +1 -1
  66. package/dist/esm/text-input/text-input.options.js +25 -18
  67. package/dist/esm/text-input/text-input.options.js.map +1 -1
  68. package/dist/esm/text-input/text-input.styles.js +8 -3
  69. package/dist/esm/text-input/text-input.styles.js.map +1 -1
  70. package/dist/esm/text-input/text-input.template.js +16 -32
  71. package/dist/esm/text-input/text-input.template.js.map +1 -1
  72. package/dist/esm/toggle-button/toggle-button.js +1 -6
  73. package/dist/esm/toggle-button/toggle-button.js.map +1 -1
  74. package/dist/fluent-web-components.api.json +346 -217
  75. package/dist/web-components.d.ts +299 -114
  76. package/dist/web-components.js +251 -110
  77. package/dist/web-components.min.js +162 -162
  78. package/docs/api-report.md +52 -37
  79. package/package.json +2 -2
  80. package/dist/dts/text-input/text-field.form-associated.d.ts +0 -14
  81. package/dist/esm/text-input/text-field.form-associated.js +0 -14
  82. package/dist/esm/text-input/text-field.form-associated.js.map +0 -1
@@ -4,6 +4,8 @@
4
4
 
5
5
  ```ts
6
6
 
7
+ /// <reference types="web" />
8
+
7
9
  import type { Constructable } from '@microsoft/fast-element';
8
10
  import { CSSDirective } from '@microsoft/fast-element';
9
11
  import { Direction } from '@microsoft/fast-web-utilities';
@@ -2942,61 +2944,74 @@ export const TextFont: {
2942
2944
  // @public
2943
2945
  export type TextFont = ValuesOf<typeof TextFont>;
2944
2946
 
2945
- // Warning: (ae-forgotten-export) The symbol "FormAssociatedTextField" needs to be exported by the entry point index.d.ts
2947
+ // Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "TextInput" because one of its declarations is marked as @internal
2946
2948
  //
2947
- // @public (undocumented)
2948
- export class TextInput extends FormAssociatedTextField {
2949
+ // @public
2950
+ export class TextInput extends FASTElement {
2949
2951
  appearance?: TextInputAppearance;
2952
+ autocomplete?: string;
2950
2953
  autofocus: boolean;
2954
+ // @internal
2955
+ changeHandler(e: InputEvent): void;
2951
2956
  // (undocumented)
2952
- protected autofocusChanged(): void;
2953
- // @internal (undocumented)
2954
2957
  connectedCallback(): void;
2955
2958
  // @internal
2956
2959
  control: HTMLInputElement;
2960
+ // @internal
2961
+ controlLabel: HTMLLabelElement;
2957
2962
  controlSize?: TextInputControlSize;
2958
- // @internal (undocumented)
2963
+ // @internal
2959
2964
  defaultSlottedNodes: Node[];
2960
2965
  // @internal
2961
- handleChange(): void;
2966
+ defaultSlottedNodesChanged(prev: Node[] | undefined, next: Node[] | undefined): void;
2967
+ dirname?: string;
2968
+ disabled?: boolean;
2969
+ // (undocumented)
2970
+ disconnectedCallback(): void;
2962
2971
  // @internal
2963
- handleTextInput(): void;
2972
+ protected elementInternals: ElementInternals;
2973
+ get form(): HTMLFormElement | null;
2974
+ static readonly formAssociated = true;
2975
+ formAttribute?: string;
2976
+ // @internal
2977
+ formResetCallback(): void;
2978
+ initialValue: string;
2979
+ // @internal
2980
+ initialValueChanged(): void;
2981
+ // @internal
2982
+ inputHandler(e: InputEvent): boolean | void;
2983
+ // @internal
2984
+ keypressHandler(e: KeyboardEvent): boolean | void;
2964
2985
  list: string;
2965
- // (undocumented)
2966
- protected listChanged(): void;
2967
2986
  maxlength: number;
2968
- // (undocumented)
2969
- protected maxlengthChanged(): void;
2970
2987
  minlength: number;
2971
- // (undocumented)
2972
- protected minlengthChanged(): void;
2988
+ multiple: boolean;
2989
+ name: string;
2973
2990
  pattern: string;
2974
- // (undocumented)
2975
- protected patternChanged(): void;
2976
2991
  placeholder: string;
2977
- // (undocumented)
2978
- protected placeholderChanged(): void;
2979
- readOnly: boolean;
2980
- // (undocumented)
2981
- protected readOnlyChanged(): void;
2992
+ readonly?: boolean;
2993
+ // @internal
2994
+ readonlyChanged(): void;
2995
+ required: boolean;
2996
+ // @internal
2997
+ requiredChanged(previous: boolean, next: boolean): void;
2982
2998
  select(): void;
2999
+ // @internal
3000
+ setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
3001
+ // @internal
3002
+ setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
2983
3003
  size: number;
2984
- // (undocumented)
2985
- protected sizeChanged(): void;
2986
3004
  spellcheck: boolean;
2987
- // (undocumented)
2988
- protected spellcheckChanged(): void;
2989
3005
  type: TextInputType;
2990
- // Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The package "@fluentui/web-components" does not have an export "FormAssociated"
2991
- //
2992
- // (undocumented)
2993
- validate(): void;
3006
+ get validationMessage(): string;
3007
+ get validity(): ValidityState;
3008
+ get value(): string;
3009
+ set value(value: string);
3010
+ get willValidate(): boolean;
2994
3011
  }
2995
3012
 
2996
- // Warning: (ae-forgotten-export) The symbol "DelegatesARIATextbox" needs to be exported by the entry point index.d.ts
2997
- //
2998
- // @public (undocumented)
2999
- export interface TextInput extends StartEnd, DelegatesARIATextbox {
3013
+ // @internal (undocumented)
3014
+ export interface TextInput extends StartEnd {
3000
3015
  }
3001
3016
 
3002
3017
  // @public
@@ -3007,7 +3022,7 @@ export const TextInputAppearance: {
3007
3022
  readonly filledDarker: "filled-darker";
3008
3023
  };
3009
3024
 
3010
- // @public
3025
+ // @public (undocumented)
3011
3026
  export type TextInputAppearance = ValuesOf<typeof TextInputAppearance>;
3012
3027
 
3013
3028
  // @public
@@ -3017,13 +3032,13 @@ export const TextInputControlSize: {
3017
3032
  readonly large: "large";
3018
3033
  };
3019
3034
 
3020
- // @public
3035
+ // @public (undocumented)
3021
3036
  export type TextInputControlSize = ValuesOf<typeof TextInputControlSize>;
3022
3037
 
3023
3038
  // @public
3024
3039
  export const TextInputDefinition: FASTElementDefinition<typeof TextInput>;
3025
3040
 
3026
- // @public (undocumented)
3041
+ // @public
3027
3042
  export type TextInputOptions = StartEndOptions<TextInput>;
3028
3043
 
3029
3044
  // @public
@@ -3043,7 +3058,7 @@ export const TextInputType: {
3043
3058
  readonly url: "url";
3044
3059
  };
3045
3060
 
3046
- // @public
3061
+ // @public (undocumented)
3047
3062
  export type TextInputType = ValuesOf<typeof TextInputType>;
3048
3063
 
3049
3064
  // @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fluentui/web-components",
3
3
  "description": "A library of Fluent Web Components",
4
- "version": "3.0.0-beta.20",
4
+ "version": "3.0.0-beta.21",
5
5
  "author": {
6
6
  "name": "Microsoft",
7
7
  "url": "https://discord.gg/FcSNfg4"
@@ -176,7 +176,7 @@
176
176
  "./dist/esm/toggle-button/define.js"
177
177
  ],
178
178
  "scripts": {
179
- "type-check": "echo 'TODO'",
179
+ "type-check": "node ./scripts/type-check",
180
180
  "benchmark": "yarn clean && yarn compile:benchmark && yarn compile && node ./scripts/run-benchmarks",
181
181
  "compile": "node ./scripts/compile",
182
182
  "compile:benchmark": "rollup -c rollup.bench.js",
@@ -1,14 +0,0 @@
1
- import { FASTElement } from '@microsoft/fast-element';
2
- import { FormAssociated } from '../form-associated/form-associated.js';
3
- declare class _TextField extends FASTElement {
4
- }
5
- interface _TextField extends FormAssociated {
6
- }
7
- declare const FormAssociatedTextField_base: typeof _TextField;
8
- /**
9
- * @beta
10
- */
11
- export declare class FormAssociatedTextField extends FormAssociatedTextField_base {
12
- proxy: HTMLInputElement;
13
- }
14
- export {};
@@ -1,14 +0,0 @@
1
- import { FASTElement } from '@microsoft/fast-element';
2
- import { FormAssociated } from '../form-associated/form-associated.js';
3
- class _TextField extends FASTElement {
4
- }
5
- /**
6
- * @beta
7
- */
8
- export class FormAssociatedTextField extends FormAssociated(_TextField) {
9
- constructor() {
10
- super(...arguments);
11
- this.proxy = document.createElement('input');
12
- }
13
- }
14
- //# sourceMappingURL=text-field.form-associated.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"text-field.form-associated.js","sourceRoot":"","sources":["../../../src/text-input/text-field.form-associated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEvE,MAAM,UAAW,SAAQ,WAAW;CAAG;AAIvC;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,cAAc,CAAC,UAAU,CAAC;IAAvE;;QACE,UAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;CAAA"}