@fluentui/web-components 2.1.3 → 2.2.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/CHANGELOG.json +16 -1
- package/CHANGELOG.md +11 -2
- package/dist/dts/component-definitions.d.ts +2 -1
- package/dist/dts/custom-elements.d.ts +4 -2
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/listbox/index.d.ts +3 -6
- package/dist/dts/listbox/listbox.stories.d.ts +1 -1
- package/dist/dts/search/index.d.ts +38 -0
- package/dist/dts/search/search.stories.d.ts +75 -0
- package/dist/dts/search/search.styles.d.ts +4 -0
- package/dist/dts/search/search.template.d.ts +6 -0
- package/dist/esm/component-definitions.js +2 -0
- package/dist/esm/custom-elements.js +3 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/listbox/index.js +3 -6
- package/dist/esm/search/index.js +52 -0
- package/dist/esm/search/search.stories.js +83 -0
- package/dist/esm/search/search.styles.js +108 -0
- package/dist/esm/search/search.template.js +82 -0
- package/dist/esm/search/search.vscode.definition.json +145 -0
- package/dist/fluent-web-components.api.json +270 -5
- package/dist/web-components.d.ts +51 -2
- package/dist/web-components.js +701 -240
- package/dist/web-components.min.js +142 -132
- package/docs/api-report.md +34 -9
- package/package.json +2 -2
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { html, ref, slotted } from '@microsoft/fast-element';
|
|
2
|
+
import { endSlotTemplate, startSlotTemplate, whitespaceFilter, } from '@microsoft/fast-foundation';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export const searchTemplate = (context, definition) => html `
|
|
7
|
+
<template
|
|
8
|
+
class="
|
|
9
|
+
${x => (x.readOnly ? 'readonly' : '')}
|
|
10
|
+
"
|
|
11
|
+
>
|
|
12
|
+
<label
|
|
13
|
+
part="label"
|
|
14
|
+
for="control"
|
|
15
|
+
class="${x => (x.defaultSlottedNodes && x.defaultSlottedNodes.length ? 'label' : 'label label__hidden')}"
|
|
16
|
+
>
|
|
17
|
+
<slot ${slotted({ property: 'defaultSlottedNodes', filter: whitespaceFilter })}></slot>
|
|
18
|
+
</label>
|
|
19
|
+
<div class="root" part="root" ${ref('root')}>
|
|
20
|
+
${startSlotTemplate(context, definition)}
|
|
21
|
+
<div class="input-wrapper" part="input-wrapper">
|
|
22
|
+
<input
|
|
23
|
+
class="control"
|
|
24
|
+
part="control"
|
|
25
|
+
id="control"
|
|
26
|
+
@input="${x => x.handleTextInput()}"
|
|
27
|
+
@change="${x => x.handleChange()}"
|
|
28
|
+
?autofocus="${x => x.autofocus}"
|
|
29
|
+
?disabled="${x => x.disabled}"
|
|
30
|
+
list="${x => x.list}"
|
|
31
|
+
maxlength="${x => x.maxlength}"
|
|
32
|
+
minlength="${x => x.minlength}"
|
|
33
|
+
pattern="${x => x.pattern}"
|
|
34
|
+
placeholder="${x => x.placeholder}"
|
|
35
|
+
?readonly="${x => x.readOnly}"
|
|
36
|
+
?required="${x => x.required}"
|
|
37
|
+
size="${x => x.size}"
|
|
38
|
+
?spellcheck="${x => x.spellcheck}"
|
|
39
|
+
:value="${x => x.value}"
|
|
40
|
+
type="search"
|
|
41
|
+
aria-atomic="${x => x.ariaAtomic}"
|
|
42
|
+
aria-busy="${x => x.ariaBusy}"
|
|
43
|
+
aria-controls="${x => x.ariaControls}"
|
|
44
|
+
aria-current="${x => x.ariaCurrent}"
|
|
45
|
+
aria-describedby="${x => x.ariaDescribedby}"
|
|
46
|
+
aria-details="${x => x.ariaDetails}"
|
|
47
|
+
aria-disabled="${x => x.ariaDisabled}"
|
|
48
|
+
aria-errormessage="${x => x.ariaErrormessage}"
|
|
49
|
+
aria-flowto="${x => x.ariaFlowto}"
|
|
50
|
+
aria-haspopup="${x => x.ariaHaspopup}"
|
|
51
|
+
aria-hidden="${x => x.ariaHidden}"
|
|
52
|
+
aria-invalid="${x => x.ariaInvalid}"
|
|
53
|
+
aria-keyshortcuts="${x => x.ariaKeyshortcuts}"
|
|
54
|
+
aria-label="${x => x.ariaLabel}"
|
|
55
|
+
aria-labelledby="${x => x.ariaLabelledby}"
|
|
56
|
+
aria-live="${x => x.ariaLive}"
|
|
57
|
+
aria-owns="${x => x.ariaOwns}"
|
|
58
|
+
aria-relevant="${x => x.ariaRelevant}"
|
|
59
|
+
aria-roledescription="${x => x.ariaRoledescription}"
|
|
60
|
+
${ref('control')}
|
|
61
|
+
/>
|
|
62
|
+
<slot name="clear-button">
|
|
63
|
+
<button
|
|
64
|
+
class="clear-button ${x => (x.value ? '' : 'clear-button__hidden')}"
|
|
65
|
+
part="clear-button"
|
|
66
|
+
tabindex="-1"
|
|
67
|
+
@click=${x => x.handleClearInput()}
|
|
68
|
+
>
|
|
69
|
+
<slot name="clear-glyph">
|
|
70
|
+
<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">
|
|
71
|
+
<path
|
|
72
|
+
d="m2.09 2.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L6 5.29l3.15-3.14a.5.5 0 1 1 .7.7L6.71 6l3.14 3.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L6 6.71 2.85 9.85a.5.5 0 0 1-.7-.7L5.29 6 2.15 2.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"
|
|
73
|
+
/>
|
|
74
|
+
</svg>
|
|
75
|
+
</slot>
|
|
76
|
+
</button>
|
|
77
|
+
</slot>
|
|
78
|
+
</div>
|
|
79
|
+
${endSlotTemplate(context, definition)}
|
|
80
|
+
</div>
|
|
81
|
+
</template>
|
|
82
|
+
`;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1.1,
|
|
3
|
+
"tags": [
|
|
4
|
+
{
|
|
5
|
+
"name": "fluent-search",
|
|
6
|
+
"title": "Search",
|
|
7
|
+
"description": "The Fluent UI search element",
|
|
8
|
+
"attributes": [
|
|
9
|
+
{
|
|
10
|
+
"name": "value",
|
|
11
|
+
"title": "Value",
|
|
12
|
+
"description": "The HTML value attribute of the search",
|
|
13
|
+
"required": false,
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "appearance",
|
|
18
|
+
"title": "Appearance",
|
|
19
|
+
"description": "The field's visual treatment",
|
|
20
|
+
"default": "outline",
|
|
21
|
+
"values": [{ "name": "outline" }, { "name": "filled" }],
|
|
22
|
+
"type": "string",
|
|
23
|
+
"required": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "autofocus",
|
|
27
|
+
"title": "Autofocus",
|
|
28
|
+
"description": "Determines if the element should receive document focus on page load",
|
|
29
|
+
"required": false,
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"default": false
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "placeholder",
|
|
35
|
+
"title": "Placeholder",
|
|
36
|
+
"description": "Sets the placeholder value of the element, generally used to provide a hint to the user",
|
|
37
|
+
"required": false,
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "list",
|
|
42
|
+
"title": "List ID",
|
|
43
|
+
"description": "Allows associating a datalist to the component",
|
|
44
|
+
"required": false,
|
|
45
|
+
"type": "string",
|
|
46
|
+
"default": ""
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "maxlength",
|
|
50
|
+
"title": "Maximum length",
|
|
51
|
+
"description": "The maximum number of characters a user can enter",
|
|
52
|
+
"required": false,
|
|
53
|
+
"type": "number"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "minlength",
|
|
57
|
+
"title": "Minimum length",
|
|
58
|
+
"description": "The minimum number of characters a user can enter",
|
|
59
|
+
"required": false,
|
|
60
|
+
"type": "number"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "pattern",
|
|
64
|
+
"title": "Validation pattern",
|
|
65
|
+
"description": "A regular expression that the value must match to pass validation",
|
|
66
|
+
"required": false,
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "size",
|
|
71
|
+
"title": "Size",
|
|
72
|
+
"description": "Sets the width of the element to a specified number of characters",
|
|
73
|
+
"required": false,
|
|
74
|
+
"type": "number"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "spellcheck",
|
|
78
|
+
"title": "Spellcheck",
|
|
79
|
+
"description": "Controls whether or not to enable spell checking for the input field, or if the default spell checking configuration should be used",
|
|
80
|
+
"required": false,
|
|
81
|
+
"type": "boolean"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "name",
|
|
85
|
+
"title": "Name",
|
|
86
|
+
"description": "This element's value will be surfaced during form submission under the provided name",
|
|
87
|
+
"type": "string",
|
|
88
|
+
"default": "",
|
|
89
|
+
"required": false
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "required",
|
|
93
|
+
"title": "Required",
|
|
94
|
+
"description": "Require the field to be completed prior to form submission",
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"default": false,
|
|
97
|
+
"required": false
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "disabled",
|
|
101
|
+
"title": "Disabled",
|
|
102
|
+
"description": "Sets the disabled state of the field",
|
|
103
|
+
"type": "boolean",
|
|
104
|
+
"default": false,
|
|
105
|
+
"required": false
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "readonly",
|
|
109
|
+
"title": "Readonly",
|
|
110
|
+
"description": "When true, the control will be immutable by user interaction",
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"default": false,
|
|
113
|
+
"required": false
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"slots": [
|
|
117
|
+
{
|
|
118
|
+
"name": "",
|
|
119
|
+
"title": "Default slot",
|
|
120
|
+
"description": "The content of the field represents its visual label"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "start",
|
|
124
|
+
"title": "Start slot",
|
|
125
|
+
"description": "Contents of the start slot are positioned before the input area"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "end",
|
|
129
|
+
"title": "End slot",
|
|
130
|
+
"description": "Contents of the end slot are positioned after the input area"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "clear-button",
|
|
134
|
+
"title": "Clear button slot",
|
|
135
|
+
"description": "Contents of the clear button slot are positioned after the content and is what clears the value when a value is set"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "clear-glyph",
|
|
139
|
+
"title": "Clear glyph slot",
|
|
140
|
+
"description": "Contents of the clear button"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
@@ -2227,12 +2227,12 @@
|
|
|
2227
2227
|
},
|
|
2228
2228
|
{
|
|
2229
2229
|
"kind": "Content",
|
|
2230
|
-
"text": ", typeof import(\"
|
|
2230
|
+
"text": ", typeof import(\"./listbox/index\")."
|
|
2231
2231
|
},
|
|
2232
2232
|
{
|
|
2233
2233
|
"kind": "Reference",
|
|
2234
2234
|
"text": "Listbox",
|
|
2235
|
-
"canonicalReference": "@
|
|
2235
|
+
"canonicalReference": "@fluentui/web-components!Listbox:class"
|
|
2236
2236
|
},
|
|
2237
2237
|
{
|
|
2238
2238
|
"kind": "Content",
|
|
@@ -2641,7 +2641,61 @@
|
|
|
2641
2641
|
},
|
|
2642
2642
|
{
|
|
2643
2643
|
"kind": "Content",
|
|
2644
|
-
"text": ">;\n
|
|
2644
|
+
"text": ">;\n fluentSearch: (overrideDefinition?: import(\"@microsoft/fast-foundation\")."
|
|
2645
|
+
},
|
|
2646
|
+
{
|
|
2647
|
+
"kind": "Reference",
|
|
2648
|
+
"text": "OverrideFoundationElementDefinition",
|
|
2649
|
+
"canonicalReference": "@microsoft/fast-foundation!OverrideFoundationElementDefinition:type"
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
"kind": "Content",
|
|
2653
|
+
"text": "<import(\"@microsoft/fast-foundation\")."
|
|
2654
|
+
},
|
|
2655
|
+
{
|
|
2656
|
+
"kind": "Reference",
|
|
2657
|
+
"text": "SearchOptions",
|
|
2658
|
+
"canonicalReference": "@microsoft/fast-foundation!SearchOptions:type"
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
"kind": "Content",
|
|
2662
|
+
"text": "> | undefined) => import(\"@microsoft/fast-foundation\")."
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
"kind": "Reference",
|
|
2666
|
+
"text": "FoundationElementRegistry",
|
|
2667
|
+
"canonicalReference": "@microsoft/fast-foundation!FoundationElementRegistry:class"
|
|
2668
|
+
},
|
|
2669
|
+
{
|
|
2670
|
+
"kind": "Content",
|
|
2671
|
+
"text": "<import(\"@microsoft/fast-foundation\")."
|
|
2672
|
+
},
|
|
2673
|
+
{
|
|
2674
|
+
"kind": "Reference",
|
|
2675
|
+
"text": "SearchOptions",
|
|
2676
|
+
"canonicalReference": "@microsoft/fast-foundation!SearchOptions:type"
|
|
2677
|
+
},
|
|
2678
|
+
{
|
|
2679
|
+
"kind": "Content",
|
|
2680
|
+
"text": ", import(\"@microsoft/fast-element\")."
|
|
2681
|
+
},
|
|
2682
|
+
{
|
|
2683
|
+
"kind": "Reference",
|
|
2684
|
+
"text": "Constructable",
|
|
2685
|
+
"canonicalReference": "@microsoft/fast-element!Constructable:type"
|
|
2686
|
+
},
|
|
2687
|
+
{
|
|
2688
|
+
"kind": "Content",
|
|
2689
|
+
"text": "<import(\"@microsoft/fast-foundation\")."
|
|
2690
|
+
},
|
|
2691
|
+
{
|
|
2692
|
+
"kind": "Reference",
|
|
2693
|
+
"text": "FoundationElement",
|
|
2694
|
+
"canonicalReference": "@microsoft/fast-foundation!FoundationElement:class"
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
"kind": "Content",
|
|
2698
|
+
"text": ">>;\n fluentSelect: (overrideDefinition?: import(\"@microsoft/fast-foundation\")."
|
|
2645
2699
|
},
|
|
2646
2700
|
{
|
|
2647
2701
|
"kind": "Reference",
|
|
@@ -3323,7 +3377,7 @@
|
|
|
3323
3377
|
"name": "allComponents",
|
|
3324
3378
|
"variableTypeTokenRange": {
|
|
3325
3379
|
"startIndex": 1,
|
|
3326
|
-
"endIndex":
|
|
3380
|
+
"endIndex": 482
|
|
3327
3381
|
}
|
|
3328
3382
|
},
|
|
3329
3383
|
{
|
|
@@ -8515,7 +8569,7 @@
|
|
|
8515
8569
|
{
|
|
8516
8570
|
"kind": "Reference",
|
|
8517
8571
|
"text": "Listbox",
|
|
8518
|
-
"canonicalReference": "@
|
|
8572
|
+
"canonicalReference": "@fluentui/web-components!Listbox:class"
|
|
8519
8573
|
},
|
|
8520
8574
|
{
|
|
8521
8575
|
"kind": "Content",
|
|
@@ -9102,6 +9156,81 @@
|
|
|
9102
9156
|
"endIndex": 12
|
|
9103
9157
|
}
|
|
9104
9158
|
},
|
|
9159
|
+
{
|
|
9160
|
+
"kind": "Variable",
|
|
9161
|
+
"canonicalReference": "@fluentui/web-components!fluentSearch:var",
|
|
9162
|
+
"docComment": "/**\n * The Fluent Search Custom Element. Implements {@link @microsoft/fast-foundation#Search}, {@link @microsoft/fast-foundation#searchTemplate}\n *\n * @remarks\n *\n * HTML Element: \\<fluent-search\\>\n *\n * {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus | delegatesFocus}\n *\n * @public\n */\n",
|
|
9163
|
+
"excerptTokens": [
|
|
9164
|
+
{
|
|
9165
|
+
"kind": "Content",
|
|
9166
|
+
"text": "fluentSearch: "
|
|
9167
|
+
},
|
|
9168
|
+
{
|
|
9169
|
+
"kind": "Content",
|
|
9170
|
+
"text": "(overrideDefinition?: import(\"@microsoft/fast-foundation\")."
|
|
9171
|
+
},
|
|
9172
|
+
{
|
|
9173
|
+
"kind": "Reference",
|
|
9174
|
+
"text": "OverrideFoundationElementDefinition",
|
|
9175
|
+
"canonicalReference": "@microsoft/fast-foundation!OverrideFoundationElementDefinition:type"
|
|
9176
|
+
},
|
|
9177
|
+
{
|
|
9178
|
+
"kind": "Content",
|
|
9179
|
+
"text": "<"
|
|
9180
|
+
},
|
|
9181
|
+
{
|
|
9182
|
+
"kind": "Reference",
|
|
9183
|
+
"text": "SearchOptions",
|
|
9184
|
+
"canonicalReference": "@microsoft/fast-foundation!SearchOptions:type"
|
|
9185
|
+
},
|
|
9186
|
+
{
|
|
9187
|
+
"kind": "Content",
|
|
9188
|
+
"text": "> | undefined) => import(\"@microsoft/fast-foundation\")."
|
|
9189
|
+
},
|
|
9190
|
+
{
|
|
9191
|
+
"kind": "Reference",
|
|
9192
|
+
"text": "FoundationElementRegistry",
|
|
9193
|
+
"canonicalReference": "@microsoft/fast-foundation!FoundationElementRegistry:class"
|
|
9194
|
+
},
|
|
9195
|
+
{
|
|
9196
|
+
"kind": "Content",
|
|
9197
|
+
"text": "<"
|
|
9198
|
+
},
|
|
9199
|
+
{
|
|
9200
|
+
"kind": "Reference",
|
|
9201
|
+
"text": "SearchOptions",
|
|
9202
|
+
"canonicalReference": "@microsoft/fast-foundation!SearchOptions:type"
|
|
9203
|
+
},
|
|
9204
|
+
{
|
|
9205
|
+
"kind": "Content",
|
|
9206
|
+
"text": ", import(\"@microsoft/fast-element\")."
|
|
9207
|
+
},
|
|
9208
|
+
{
|
|
9209
|
+
"kind": "Reference",
|
|
9210
|
+
"text": "Constructable",
|
|
9211
|
+
"canonicalReference": "@microsoft/fast-element!Constructable:type"
|
|
9212
|
+
},
|
|
9213
|
+
{
|
|
9214
|
+
"kind": "Content",
|
|
9215
|
+
"text": "<import(\"@microsoft/fast-foundation\")."
|
|
9216
|
+
},
|
|
9217
|
+
{
|
|
9218
|
+
"kind": "Reference",
|
|
9219
|
+
"text": "FoundationElement",
|
|
9220
|
+
"canonicalReference": "@microsoft/fast-foundation!FoundationElement:class"
|
|
9221
|
+
},
|
|
9222
|
+
{
|
|
9223
|
+
"kind": "Content",
|
|
9224
|
+
"text": ">>"
|
|
9225
|
+
}
|
|
9226
|
+
],
|
|
9227
|
+
"releaseTag": "Public",
|
|
9228
|
+
"name": "fluentSearch",
|
|
9229
|
+
"variableTypeTokenRange": {
|
|
9230
|
+
"startIndex": 1,
|
|
9231
|
+
"endIndex": 14
|
|
9232
|
+
}
|
|
9233
|
+
},
|
|
9105
9234
|
{
|
|
9106
9235
|
"kind": "Variable",
|
|
9107
9236
|
"canonicalReference": "@fluentui/web-components!fluentSelect:var",
|
|
@@ -10954,6 +11083,34 @@
|
|
|
10954
11083
|
"endIndex": 4
|
|
10955
11084
|
}
|
|
10956
11085
|
},
|
|
11086
|
+
{
|
|
11087
|
+
"kind": "Class",
|
|
11088
|
+
"canonicalReference": "@fluentui/web-components!Listbox:class",
|
|
11089
|
+
"docComment": "",
|
|
11090
|
+
"excerptTokens": [
|
|
11091
|
+
{
|
|
11092
|
+
"kind": "Content",
|
|
11093
|
+
"text": "export declare class Listbox extends "
|
|
11094
|
+
},
|
|
11095
|
+
{
|
|
11096
|
+
"kind": "Reference",
|
|
11097
|
+
"text": "FoundationListboxElement",
|
|
11098
|
+
"canonicalReference": "@microsoft/fast-foundation!Listbox:class"
|
|
11099
|
+
},
|
|
11100
|
+
{
|
|
11101
|
+
"kind": "Content",
|
|
11102
|
+
"text": " "
|
|
11103
|
+
}
|
|
11104
|
+
],
|
|
11105
|
+
"releaseTag": "Public",
|
|
11106
|
+
"name": "Listbox",
|
|
11107
|
+
"members": [],
|
|
11108
|
+
"extendsTokenRange": {
|
|
11109
|
+
"startIndex": 1,
|
|
11110
|
+
"endIndex": 3
|
|
11111
|
+
},
|
|
11112
|
+
"implementsTokenRanges": []
|
|
11113
|
+
},
|
|
10957
11114
|
{
|
|
10958
11115
|
"kind": "Variable",
|
|
10959
11116
|
"canonicalReference": "@fluentui/web-components!listboxStyles:var",
|
|
@@ -17615,6 +17772,114 @@
|
|
|
17615
17772
|
],
|
|
17616
17773
|
"extendsTokenRanges": []
|
|
17617
17774
|
},
|
|
17775
|
+
{
|
|
17776
|
+
"kind": "TypeAlias",
|
|
17777
|
+
"canonicalReference": "@fluentui/web-components!SearchAppearance:type",
|
|
17778
|
+
"docComment": "/**\n * Search appearances\n *\n * @public\n */\n",
|
|
17779
|
+
"excerptTokens": [
|
|
17780
|
+
{
|
|
17781
|
+
"kind": "Content",
|
|
17782
|
+
"text": "export declare type SearchAppearance = "
|
|
17783
|
+
},
|
|
17784
|
+
{
|
|
17785
|
+
"kind": "Content",
|
|
17786
|
+
"text": "'filled' | 'outline'"
|
|
17787
|
+
},
|
|
17788
|
+
{
|
|
17789
|
+
"kind": "Content",
|
|
17790
|
+
"text": ";"
|
|
17791
|
+
}
|
|
17792
|
+
],
|
|
17793
|
+
"releaseTag": "Public",
|
|
17794
|
+
"name": "SearchAppearance",
|
|
17795
|
+
"typeTokenRange": {
|
|
17796
|
+
"startIndex": 1,
|
|
17797
|
+
"endIndex": 2
|
|
17798
|
+
}
|
|
17799
|
+
},
|
|
17800
|
+
{
|
|
17801
|
+
"kind": "Variable",
|
|
17802
|
+
"canonicalReference": "@fluentui/web-components!searchStyles:var",
|
|
17803
|
+
"docComment": "/**\n * Styles for Search\n *\n * @public\n */\n",
|
|
17804
|
+
"excerptTokens": [
|
|
17805
|
+
{
|
|
17806
|
+
"kind": "Content",
|
|
17807
|
+
"text": "searchStyles: "
|
|
17808
|
+
},
|
|
17809
|
+
{
|
|
17810
|
+
"kind": "Content",
|
|
17811
|
+
"text": "(context: any, definition: any) => import(\"@microsoft/fast-element\")."
|
|
17812
|
+
},
|
|
17813
|
+
{
|
|
17814
|
+
"kind": "Reference",
|
|
17815
|
+
"text": "ElementStyles",
|
|
17816
|
+
"canonicalReference": "@microsoft/fast-element!ElementStyles:class"
|
|
17817
|
+
}
|
|
17818
|
+
],
|
|
17819
|
+
"releaseTag": "Public",
|
|
17820
|
+
"name": "searchStyles",
|
|
17821
|
+
"variableTypeTokenRange": {
|
|
17822
|
+
"startIndex": 1,
|
|
17823
|
+
"endIndex": 3
|
|
17824
|
+
}
|
|
17825
|
+
},
|
|
17826
|
+
{
|
|
17827
|
+
"kind": "Variable",
|
|
17828
|
+
"canonicalReference": "@fluentui/web-components!searchTemplate:var",
|
|
17829
|
+
"docComment": "/**\n * @public\n */\n",
|
|
17830
|
+
"excerptTokens": [
|
|
17831
|
+
{
|
|
17832
|
+
"kind": "Content",
|
|
17833
|
+
"text": "searchTemplate: "
|
|
17834
|
+
},
|
|
17835
|
+
{
|
|
17836
|
+
"kind": "Content",
|
|
17837
|
+
"text": "(context: "
|
|
17838
|
+
},
|
|
17839
|
+
{
|
|
17840
|
+
"kind": "Reference",
|
|
17841
|
+
"text": "ElementDefinitionContext",
|
|
17842
|
+
"canonicalReference": "@microsoft/fast-foundation!ElementDefinitionContext:interface"
|
|
17843
|
+
},
|
|
17844
|
+
{
|
|
17845
|
+
"kind": "Content",
|
|
17846
|
+
"text": ", definition: "
|
|
17847
|
+
},
|
|
17848
|
+
{
|
|
17849
|
+
"kind": "Reference",
|
|
17850
|
+
"text": "SearchOptions",
|
|
17851
|
+
"canonicalReference": "@microsoft/fast-foundation!SearchOptions:type"
|
|
17852
|
+
},
|
|
17853
|
+
{
|
|
17854
|
+
"kind": "Content",
|
|
17855
|
+
"text": ") => "
|
|
17856
|
+
},
|
|
17857
|
+
{
|
|
17858
|
+
"kind": "Reference",
|
|
17859
|
+
"text": "ViewTemplate",
|
|
17860
|
+
"canonicalReference": "@microsoft/fast-element!ViewTemplate:class"
|
|
17861
|
+
},
|
|
17862
|
+
{
|
|
17863
|
+
"kind": "Content",
|
|
17864
|
+
"text": "<"
|
|
17865
|
+
},
|
|
17866
|
+
{
|
|
17867
|
+
"kind": "Reference",
|
|
17868
|
+
"text": "Search",
|
|
17869
|
+
"canonicalReference": "@microsoft/fast-foundation!Search:class"
|
|
17870
|
+
},
|
|
17871
|
+
{
|
|
17872
|
+
"kind": "Content",
|
|
17873
|
+
"text": ">"
|
|
17874
|
+
}
|
|
17875
|
+
],
|
|
17876
|
+
"releaseTag": "Public",
|
|
17877
|
+
"name": "searchTemplate",
|
|
17878
|
+
"variableTypeTokenRange": {
|
|
17879
|
+
"startIndex": 1,
|
|
17880
|
+
"endIndex": 10
|
|
17881
|
+
}
|
|
17882
|
+
},
|
|
17618
17883
|
{
|
|
17619
17884
|
"kind": "TypeAlias",
|
|
17620
17885
|
"canonicalReference": "@fluentui/web-components!SelectAppearance:type",
|
package/dist/web-components.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ import { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
|
37
37
|
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
38
38
|
import { HorizontalScroll as HorizontalScroll_2 } from '@microsoft/fast-foundation';
|
|
39
39
|
import { HorizontalScrollOptions } from '@microsoft/fast-foundation';
|
|
40
|
-
import { Listbox } from '@microsoft/fast-foundation';
|
|
40
|
+
import { Listbox as Listbox_2 } from '@microsoft/fast-foundation';
|
|
41
41
|
import { ListboxOption } from '@microsoft/fast-foundation';
|
|
42
42
|
import { Menu as Menu_2 } from '@microsoft/fast-foundation';
|
|
43
43
|
import { MenuItem } from '@microsoft/fast-foundation';
|
|
@@ -50,6 +50,8 @@ import { ProgressRingOptions } from '@microsoft/fast-foundation';
|
|
|
50
50
|
import { Radio } from '@microsoft/fast-foundation';
|
|
51
51
|
import { RadioGroup } from '@microsoft/fast-foundation';
|
|
52
52
|
import { RadioOptions } from '@microsoft/fast-foundation';
|
|
53
|
+
import { Search as Search_2 } from '@microsoft/fast-foundation';
|
|
54
|
+
import { SearchOptions } from '@microsoft/fast-foundation';
|
|
53
55
|
import { Select as Select_2 } from '@microsoft/fast-foundation';
|
|
54
56
|
import { SelectOptions } from '@microsoft/fast-foundation';
|
|
55
57
|
import { Skeleton } from '@microsoft/fast-foundation';
|
|
@@ -214,6 +216,7 @@ export declare const allComponents: {
|
|
|
214
216
|
fluentProgressRing: (overrideDefinition?: OverrideFoundationElementDefinition<ProgressRingOptions> | undefined) => FoundationElementRegistry<ProgressRingOptions, Constructable<FoundationElement>>;
|
|
215
217
|
fluentRadio: (overrideDefinition?: OverrideFoundationElementDefinition<RadioOptions> | undefined) => FoundationElementRegistry<RadioOptions, Constructable<FoundationElement>>;
|
|
216
218
|
fluentRadioGroup: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, RadioGroup>;
|
|
219
|
+
fluentSearch: (overrideDefinition?: OverrideFoundationElementDefinition<SearchOptions> | undefined) => FoundationElementRegistry<SearchOptions, Constructable<FoundationElement>>;
|
|
217
220
|
fluentSelect: (overrideDefinition?: OverrideFoundationElementDefinition<SelectOptions> | undefined) => FoundationElementRegistry<SelectOptions, Constructable<FoundationElement>>;
|
|
218
221
|
fluentSkeleton: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, Skeleton>;
|
|
219
222
|
fluentSlider: (overrideDefinition?: OverrideFoundationElementDefinition<SliderOptions> | undefined) => FoundationElementRegistry<SliderOptions, Constructable<FoundationElement>>;
|
|
@@ -1543,6 +1546,19 @@ export declare const fluentRadio: (overrideDefinition?: OverrideFoundationElemen
|
|
|
1543
1546
|
*/
|
|
1544
1547
|
export declare const fluentRadioGroup: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, typeof RadioGroup>;
|
|
1545
1548
|
|
|
1549
|
+
/**
|
|
1550
|
+
* The Fluent Search Custom Element. Implements {@link @microsoft/fast-foundation#Search},
|
|
1551
|
+
* {@link @microsoft/fast-foundation#searchTemplate}
|
|
1552
|
+
*
|
|
1553
|
+
*
|
|
1554
|
+
* @public
|
|
1555
|
+
* @remarks
|
|
1556
|
+
* HTML Element: \<fluent-search\>
|
|
1557
|
+
*
|
|
1558
|
+
* {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus | delegatesFocus}
|
|
1559
|
+
*/
|
|
1560
|
+
export declare const fluentSearch: (overrideDefinition?: OverrideFoundationElementDefinition<SearchOptions> | undefined) => FoundationElementRegistry<SearchOptions, Constructable<FoundationElement>>;
|
|
1561
|
+
|
|
1546
1562
|
/**
|
|
1547
1563
|
* The Fluent select Custom Element. Implements, {@link @microsoft/fast-foundation#Select}
|
|
1548
1564
|
* {@link @microsoft/fast-foundation#selectTemplate}
|
|
@@ -1854,7 +1870,8 @@ export declare const layerCornerRadius: CSSDesignToken<number>;
|
|
|
1854
1870
|
*/
|
|
1855
1871
|
export declare const LightweightButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector?: string, nonInteractivitySelector?: string) => ElementStyles;
|
|
1856
1872
|
|
|
1857
|
-
export
|
|
1873
|
+
export declare class Listbox extends Listbox_2 {
|
|
1874
|
+
}
|
|
1858
1875
|
|
|
1859
1876
|
/**
|
|
1860
1877
|
* Styles for Listbox
|
|
@@ -2550,6 +2567,38 @@ declare interface RelativeLuminance {
|
|
|
2550
2567
|
readonly relativeLuminance: number;
|
|
2551
2568
|
}
|
|
2552
2569
|
|
|
2570
|
+
/**
|
|
2571
|
+
* The Fluent search class
|
|
2572
|
+
* @internal
|
|
2573
|
+
*/
|
|
2574
|
+
export declare class Search extends Search_2 {
|
|
2575
|
+
/**
|
|
2576
|
+
* The appearance of the element.
|
|
2577
|
+
*
|
|
2578
|
+
* @public
|
|
2579
|
+
* @remarks
|
|
2580
|
+
* HTML Attribute: appearance
|
|
2581
|
+
*/
|
|
2582
|
+
appearance: SearchAppearance;
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* Search appearances
|
|
2587
|
+
* @public
|
|
2588
|
+
*/
|
|
2589
|
+
export declare type SearchAppearance = 'filled' | 'outline';
|
|
2590
|
+
|
|
2591
|
+
/**
|
|
2592
|
+
* Styles for Search
|
|
2593
|
+
* @public
|
|
2594
|
+
*/
|
|
2595
|
+
export declare const searchStyles: (context: any, definition: any) => ElementStyles;
|
|
2596
|
+
|
|
2597
|
+
/**
|
|
2598
|
+
* @public
|
|
2599
|
+
*/
|
|
2600
|
+
export declare const searchTemplate: (context: ElementDefinitionContext, definition: SearchOptions) => ViewTemplate<Search_2>;
|
|
2601
|
+
|
|
2553
2602
|
/**
|
|
2554
2603
|
* The Fluent select class
|
|
2555
2604
|
* @internal
|