@spectrum-web-components/search 0.11.7-devmode2.0 → 0.12.1
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 +7 -7
- package/sp-search.dev.js +1 -0
- package/sp-search.dev.js.map +1 -1
- package/sp-search.js +1 -2
- package/sp-search.js.map +2 -2
- package/src/Search.dev.js +18 -11
- package/src/Search.dev.js.map +1 -1
- package/src/Search.js +6 -92
- package/src/Search.js.map +2 -2
- package/src/index.dev.js +1 -0
- package/src/index.dev.js.map +1 -1
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/search.css.dev.js +1 -0
- package/src/search.css.dev.js.map +1 -1
- package/src/search.css.js +2 -4
- package/src/search.css.js.map +2 -2
- package/src/spectrum-search.css.dev.js +1 -0
- package/src/spectrum-search.css.dev.js.map +1 -1
- package/src/spectrum-search.css.js +2 -4
- package/src/spectrum-search.css.js.map +2 -2
- package/stories/search.stories.js +1 -0
- package/stories/search.stories.js.map +1 -1
- package/test/benchmark/test-basic.js +1 -0
- package/test/benchmark/test-basic.js.map +1 -1
- package/test/search.test-vrt.js +1 -0
- package/test/search.test-vrt.js.map +1 -1
- package/test/search.test.js +41 -20
- package/test/search.test.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/search",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"lit-html"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@spectrum-web-components/base": "^0.
|
|
61
|
-
"@spectrum-web-components/button": "^0.
|
|
62
|
-
"@spectrum-web-components/icon": "^0.
|
|
63
|
-
"@spectrum-web-components/icons-workflow": "^0.
|
|
64
|
-
"@spectrum-web-components/textfield": "^0.
|
|
60
|
+
"@spectrum-web-components/base": "^0.7.0",
|
|
61
|
+
"@spectrum-web-components/button": "^0.19.1",
|
|
62
|
+
"@spectrum-web-components/icon": "^0.12.0",
|
|
63
|
+
"@spectrum-web-components/icons-workflow": "^0.9.0",
|
|
64
|
+
"@spectrum-web-components/textfield": "^0.13.1",
|
|
65
65
|
"tslib": "^2.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"./sp-*.js",
|
|
74
74
|
"./**/*.dev.js"
|
|
75
75
|
],
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "1cfea66c39440232b9982509573801b8e3a9f692"
|
|
77
77
|
}
|
package/sp-search.dev.js
CHANGED
package/sp-search.dev.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sp-search.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Search } from './src/Search.dev.js'\n\ncustomElements.define('sp-search', Search);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-search': Search;\n }\n}\n"],
|
|
5
|
-
"mappings": "AAWA;
|
|
5
|
+
"mappings": ";AAWA,SAAS,cAAc;AAEvB,eAAe,OAAO,aAAa,MAAM;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/sp-search.js
CHANGED
package/sp-search.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sp-search.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Search } from './src/Search.js';\n\ncustomElements.define('sp-search', Search);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-search': Search;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "aAWA,OAAS,UAAAA,MAAc,kBAEvB,eAAe,OAAO,YAAaA,CAAM",
|
|
6
|
+
"names": ["Search"]
|
|
7
7
|
}
|
package/src/Search.dev.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -33,10 +34,12 @@ export class Search extends Textfield {
|
|
|
33
34
|
return [...super.styles, searchStyles];
|
|
34
35
|
}
|
|
35
36
|
handleSubmit(event) {
|
|
36
|
-
const applyDefault = this.dispatchEvent(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
const applyDefault = this.dispatchEvent(
|
|
38
|
+
new Event("submit", {
|
|
39
|
+
cancelable: true,
|
|
40
|
+
bubbles: true
|
|
41
|
+
})
|
|
42
|
+
);
|
|
40
43
|
if (!applyDefault) {
|
|
41
44
|
event.preventDefault();
|
|
42
45
|
}
|
|
@@ -51,13 +54,17 @@ export class Search extends Textfield {
|
|
|
51
54
|
async reset() {
|
|
52
55
|
this.value = "";
|
|
53
56
|
await this.updateComplete;
|
|
54
|
-
this.focusElement.dispatchEvent(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
this.focusElement.dispatchEvent(
|
|
58
|
+
new InputEvent("input", {
|
|
59
|
+
bubbles: true,
|
|
60
|
+
composed: true
|
|
61
|
+
})
|
|
62
|
+
);
|
|
63
|
+
this.focusElement.dispatchEvent(
|
|
64
|
+
new InputEvent("change", {
|
|
65
|
+
bubbles: true
|
|
66
|
+
})
|
|
67
|
+
);
|
|
61
68
|
}
|
|
62
69
|
renderField() {
|
|
63
70
|
return html`
|
package/src/Search.dev.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["Search.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n PropertyValues,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport { Textfield } from '@spectrum-web-components/textfield';\nimport '@spectrum-web-components/button/sp-clear-button.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-magnify.js';\n\nimport searchStyles from './search.css.js';\n\nconst stopPropagation = (event: Event): void => event.stopPropagation();\n\n/**\n * @element sp-search\n * @slot help-text - default or non-negative help text to associate to your form element\n * @slot negative-help-text - negative help text to associate to your form element when `invalid`\n *\n * @fires submit - The search form has been submitted.\n */\nexport class Search extends Textfield {\n public static override get styles(): CSSResultArray {\n return [...super.styles, searchStyles];\n }\n\n @property()\n public action = '';\n\n @property()\n public override label = 'Search';\n\n @property()\n public method?: 'GET' | 'POST' | 'dialog';\n\n @property()\n public override placeholder = 'Search';\n\n @query('#form')\n public form!: HTMLFormElement;\n\n private handleSubmit(event: Event): void {\n const applyDefault = this.dispatchEvent(\n new Event('submit', {\n cancelable: true,\n bubbles: true,\n })\n );\n if (!applyDefault) {\n event.preventDefault();\n }\n }\n\n private handleKeydown(event: KeyboardEvent): void {\n const { code } = event;\n if (!this.value || code !== 'Escape') {\n return;\n }\n this.reset();\n }\n\n public async reset(): Promise<void> {\n this.value = '';\n await this.updateComplete;\n this.focusElement.dispatchEvent(\n new InputEvent('input', {\n bubbles: true,\n composed: true,\n })\n );\n // The native `change` event on an `input` element is not composed,\n // so this synthetic replication of a `change` event must not be\n // either as the `Textfield` baseclass should only need to handle\n // the native variant of this interaction.\n this.focusElement.dispatchEvent(\n new InputEvent('change', {\n bubbles: true,\n })\n );\n }\n\n protected override renderField(): TemplateResult {\n return html`\n <form\n action=${this.action}\n id=\"form\"\n method=${ifDefined(this.method)}\n @submit=${this.handleSubmit}\n @reset=${this.reset}\n @keydown=${this.handleKeydown}\n >\n <sp-icon-magnify\n class=\"icon magnifier icon-workflow\"\n ></sp-icon-magnify>\n ${super.renderField()}\n ${this.value\n ? html`\n <sp-clear-button\n id=\"button\"\n label=\"Reset\"\n tabindex=\"-1\"\n type=\"reset\"\n @keydown=${stopPropagation}\n ></sp-clear-button>\n `\n : html``}\n </form>\n `;\n }\n\n public override firstUpdated(changedProperties: PropertyValues): void {\n super.firstUpdated(changedProperties);\n this.inputElement.setAttribute('type', 'search');\n }\n\n public override willUpdate(): void {\n this.multiline = false;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,OAGG;AACP;AAAA,EACI;AAAA,EACA;AAAA,OACG;AACP,SAAS,iBAAiB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AA;AAAA;AAAA,EAGlB;AAAA,EAEgB,aAAa,mBAAyC;AAClE,UAAM,aAAa,iBAAiB;AACpC,SAAK,aAAa,aAAa,QAAQ,QAAQ;AAAA,EACnD;AAAA,EAEgB,aAAmB;AAC/B,SAAK,YAAY;AAAA,EACrB;AACJ;AA3FW;AAAA,EADN,SAAS;AAAA,GALD,OAMF;AAGS;AAAA,EADf,SAAS;AAAA,GARD,OASO;AAGT;AAAA,EADN,SAAS;AAAA,GAXD,OAYF;AAGS;AAAA,EADf,SAAS;AAAA,GAdD,OAeO;AAGT;AAAA,EADN,MAAM,OAAO;AAAA,GAjBL,OAkBF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/Search.js
CHANGED
|
@@ -1,70 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
-
if (decorator = decorators[i])
|
|
7
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
-
if (kind && result)
|
|
9
|
-
__defProp(target, key, result);
|
|
10
|
-
return result;
|
|
11
|
-
};
|
|
12
|
-
import {
|
|
13
|
-
html
|
|
14
|
-
} from "@spectrum-web-components/base";
|
|
15
|
-
import {
|
|
16
|
-
property,
|
|
17
|
-
query
|
|
18
|
-
} from "@spectrum-web-components/base/src/decorators.js";
|
|
19
|
-
import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
|
|
20
|
-
import { Textfield } from "@spectrum-web-components/textfield";
|
|
21
|
-
import "@spectrum-web-components/button/sp-clear-button.js";
|
|
22
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-magnify.js";
|
|
23
|
-
import searchStyles from "./search.css.js";
|
|
24
|
-
const stopPropagation = (event) => event.stopPropagation();
|
|
25
|
-
export class Search extends Textfield {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments);
|
|
28
|
-
this.action = "";
|
|
29
|
-
this.label = "Search";
|
|
30
|
-
this.placeholder = "Search";
|
|
31
|
-
}
|
|
32
|
-
static get styles() {
|
|
33
|
-
return [...super.styles, searchStyles];
|
|
34
|
-
}
|
|
35
|
-
handleSubmit(event) {
|
|
36
|
-
const applyDefault = this.dispatchEvent(new Event("submit", {
|
|
37
|
-
cancelable: true,
|
|
38
|
-
bubbles: true
|
|
39
|
-
}));
|
|
40
|
-
if (!applyDefault) {
|
|
41
|
-
event.preventDefault();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
handleKeydown(event) {
|
|
45
|
-
const { code } = event;
|
|
46
|
-
if (!this.value || code !== "Escape") {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
this.reset();
|
|
50
|
-
}
|
|
51
|
-
async reset() {
|
|
52
|
-
this.value = "";
|
|
53
|
-
await this.updateComplete;
|
|
54
|
-
this.focusElement.dispatchEvent(new InputEvent("input", {
|
|
55
|
-
bubbles: true,
|
|
56
|
-
composed: true
|
|
57
|
-
}));
|
|
58
|
-
this.focusElement.dispatchEvent(new InputEvent("change", {
|
|
59
|
-
bubbles: true
|
|
60
|
-
}));
|
|
61
|
-
}
|
|
62
|
-
renderField() {
|
|
63
|
-
return html`
|
|
1
|
+
"use strict";var u=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var r=(o,s,e,t)=>{for(var i=t>1?void 0:t?d(s,e):s,n=o.length-1,p;n>=0;n--)(p=o[n])&&(i=(t?p(s,e,i):p(i))||i);return t&&i&&u(s,e,i),i};import{html as a}from"@spectrum-web-components/base";import{property as l,query as m}from"@spectrum-web-components/base/src/decorators.js";import{ifDefined as c}from"@spectrum-web-components/base/src/directives.js";import{Textfield as b}from"@spectrum-web-components/textfield";import"@spectrum-web-components/button/sp-clear-button.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-magnify.js";import h from"./search.css.js";const f=o=>o.stopPropagation();export class Search extends b{constructor(){super(...arguments);this.action="";this.label="Search";this.placeholder="Search"}static get styles(){return[...super.styles,h]}handleSubmit(e){this.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))||e.preventDefault()}handleKeydown(e){const{code:t}=e;!this.value||t!=="Escape"||this.reset()}async reset(){this.value="",await this.updateComplete,this.focusElement.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.focusElement.dispatchEvent(new InputEvent("change",{bubbles:!0}))}renderField(){return a`
|
|
64
2
|
<form
|
|
65
3
|
action=${this.action}
|
|
66
4
|
id="form"
|
|
67
|
-
method=${
|
|
5
|
+
method=${c(this.method)}
|
|
68
6
|
@submit=${this.handleSubmit}
|
|
69
7
|
@reset=${this.reset}
|
|
70
8
|
@keydown=${this.handleKeydown}
|
|
@@ -73,39 +11,15 @@ export class Search extends Textfield {
|
|
|
73
11
|
class="icon magnifier icon-workflow"
|
|
74
12
|
></sp-icon-magnify>
|
|
75
13
|
${super.renderField()}
|
|
76
|
-
${this.value
|
|
14
|
+
${this.value?a`
|
|
77
15
|
<sp-clear-button
|
|
78
16
|
id="button"
|
|
79
17
|
label="Reset"
|
|
80
18
|
tabindex="-1"
|
|
81
19
|
type="reset"
|
|
82
|
-
@keydown=${
|
|
20
|
+
@keydown=${f}
|
|
83
21
|
></sp-clear-button>
|
|
84
|
-
|
|
22
|
+
`:a``}
|
|
85
23
|
</form>
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
firstUpdated(changedProperties) {
|
|
89
|
-
super.firstUpdated(changedProperties);
|
|
90
|
-
this.inputElement.setAttribute("type", "search");
|
|
91
|
-
}
|
|
92
|
-
willUpdate() {
|
|
93
|
-
this.multiline = false;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
__decorateClass([
|
|
97
|
-
property()
|
|
98
|
-
], Search.prototype, "action", 2);
|
|
99
|
-
__decorateClass([
|
|
100
|
-
property()
|
|
101
|
-
], Search.prototype, "label", 2);
|
|
102
|
-
__decorateClass([
|
|
103
|
-
property()
|
|
104
|
-
], Search.prototype, "method", 2);
|
|
105
|
-
__decorateClass([
|
|
106
|
-
property()
|
|
107
|
-
], Search.prototype, "placeholder", 2);
|
|
108
|
-
__decorateClass([
|
|
109
|
-
query("#form")
|
|
110
|
-
], Search.prototype, "form", 2);
|
|
24
|
+
`}firstUpdated(e){super.firstUpdated(e),this.inputElement.setAttribute("type","search")}willUpdate(){this.multiline=!1}}r([l()],Search.prototype,"action",2),r([l()],Search.prototype,"label",2),r([l()],Search.prototype,"method",2),r([l()],Search.prototype,"placeholder",2),r([m("#form")],Search.prototype,"form",2);
|
|
111
25
|
//# sourceMappingURL=Search.js.map
|
package/src/Search.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["Search.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n PropertyValues,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport { Textfield } from '@spectrum-web-components/textfield';\nimport '@spectrum-web-components/button/sp-clear-button.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-magnify.js';\n\nimport searchStyles from './search.css.js';\n\nconst stopPropagation = (event: Event): void => event.stopPropagation();\n\n/**\n * @element sp-search\n * @slot help-text - default or non-negative help text to associate to your form element\n * @slot negative-help-text - negative help text to associate to your form element when `invalid`\n *\n * @fires submit - The search form has been submitted.\n */\nexport class Search extends Textfield {\n public static override get styles(): CSSResultArray {\n return [...super.styles, searchStyles];\n }\n\n @property()\n public action = '';\n\n @property()\n public override label = 'Search';\n\n @property()\n public method?: 'GET' | 'POST' | 'dialog';\n\n @property()\n public override placeholder = 'Search';\n\n @query('#form')\n public form!: HTMLFormElement;\n\n private handleSubmit(event: Event): void {\n const applyDefault = this.dispatchEvent(\n new Event('submit', {\n cancelable: true,\n bubbles: true,\n })\n );\n if (!applyDefault) {\n event.preventDefault();\n }\n }\n\n private handleKeydown(event: KeyboardEvent): void {\n const { code } = event;\n if (!this.value || code !== 'Escape') {\n return;\n }\n this.reset();\n }\n\n public async reset(): Promise<void> {\n this.value = '';\n await this.updateComplete;\n this.focusElement.dispatchEvent(\n new InputEvent('input', {\n bubbles: true,\n composed: true,\n })\n );\n // The native `change` event on an `input` element is not composed,\n // so this synthetic replication of a `change` event must not be\n // either as the `Textfield` baseclass should only need to handle\n // the native variant of this interaction.\n this.focusElement.dispatchEvent(\n new InputEvent('change', {\n bubbles: true,\n })\n );\n }\n\n protected override renderField(): TemplateResult {\n return html`\n <form\n action=${this.action}\n id=\"form\"\n method=${ifDefined(this.method)}\n @submit=${this.handleSubmit}\n @reset=${this.reset}\n @keydown=${this.handleKeydown}\n >\n <sp-icon-magnify\n class=\"icon magnifier icon-workflow\"\n ></sp-icon-magnify>\n ${super.renderField()}\n ${this.value\n ? html`\n <sp-clear-button\n id=\"button\"\n label=\"Reset\"\n tabindex=\"-1\"\n type=\"reset\"\n @keydown=${stopPropagation}\n ></sp-clear-button>\n `\n : html``}\n </form>\n `;\n }\n\n public override firstUpdated(changedProperties: PropertyValues): void {\n super.firstUpdated(changedProperties);\n this.inputElement.setAttribute('type', 'search');\n }\n\n public override willUpdate(): void {\n this.multiline = false;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings":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,YAAmB,CAC/B,KAAK,UAAY,EACrB,CACJ,CA3FWC,EAAA,CADNT,EAAS,GALD,OAMF,sBAGSS,EAAA,CADfT,EAAS,GARD,OASO,qBAGTS,EAAA,CADNT,EAAS,GAXD,OAYF,sBAGSS,EAAA,CADfT,EAAS,GAdD,OAeO,2BAGTS,EAAA,CADNR,EAAM,OAAO,GAjBL,OAkBF",
|
|
6
|
+
"names": ["html", "property", "query", "ifDefined", "Textfield", "searchStyles", "stopPropagation", "event", "code", "changedProperties", "__decorateClass"]
|
|
7
7
|
}
|
package/src/index.dev.js
CHANGED
package/src/index.dev.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nexport * from './Search.dev.js'\n"],
|
|
5
|
-
"mappings": "AAWA;",
|
|
5
|
+
"mappings": ";AAWA,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
"use strict";export*from"./Search.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nexport * from './Search.js';\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": "aAWA,WAAc",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/search.css.dev.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["search.css.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-search-quiet-button-offset:calc(var(\n--spectrum-actionbutton-m-texticon-min-width,\nvar(--spectrum-global-dimension-size-400)\n)/2 - var(--spectrum-alias-ui-icon-cross-size-100)/2)}#textfield{display:inline-block;position:relative}:host([dir=ltr]) #button{right:0}:host([dir=rtl]) #button{left:0}#button{position:absolute;top:0}.input{-webkit-appearance:none;border-radius:var(\n--spectrum-alias-search-border-radius,var(--spectrum-global-dimension-size-50)\n);outline-offset:-2px}.input::-webkit-search-cancel-button,.input::-webkit-search-decoration{-webkit-appearance:none}#textfield:after{border-radius:var(\n--spectrum-alias-search-border-radius,var(--spectrum-global-dimension-size-50)\n)}:host([dir=ltr]:not([quiet])) #textfield .icon{left:var(\n--spectrum-alias-search-padding-left-m\n)}:host([dir=rtl]:not([quiet])) #textfield .icon{right:var(\n--spectrum-alias-search-padding-left-m\n)}:host([dir=ltr]:not([quiet])) #textfield .input{padding-left:calc(var(--spectrum-alias-search-padding-left-m) + var(\n--spectrum-alias-workflow-icon-size-m,\nvar(--spectrum-global-dimension-size-225)\n) + var(\n--spectrum-textfield-m-texticon-icon-gap,\nvar(--spectrum-global-dimension-size-100)\n) - var(\n--spectrum-textfield-m-texticon-border-size,\nvar(--spectrum-alias-input-border-size)\n))}:host([dir=rtl]:not([quiet])) #textfield .input{padding-right:calc(var(--spectrum-alias-search-padding-left-m) + var(\n--spectrum-alias-workflow-icon-size-m,\nvar(--spectrum-global-dimension-size-225)\n) + var(\n--spectrum-textfield-m-texticon-icon-gap,\nvar(--spectrum-global-dimension-size-100)\n) - var(\n--spectrum-textfield-m-texticon-border-size,\nvar(--spectrum-alias-input-border-size)\n))}:host([quiet]) #button{transform:translateX(var(--spectrum-search-quiet-button-offset))}:host([quiet]) .input{border-radius:var(\n--spectrum-alias-search-border-radius-quiet,0\n)}:host([quiet]) #textfield:after{border-radius:var(\n--spectrum-alias-search-border-radius-quiet,0\n)}.icon{color:var(\n--spectrum-textfield-m-texticon-icon-color,var(--spectrum-alias-component-icon-color-default)\n)}.input:hover~.icon{color:var(\n--spectrum-search-m-icon-color-hover,var(--spectrum-alias-component-icon-color-hover)\n)}.input:active~.icon{color:var(\n--spectrum-search-m-icon-color-down,var(--spectrum-alias-component-icon-color-down)\n)}.input.focus-visible~.icon{color:var(\n--spectrum-search-m-icon-color-key-focus,var(--spectrum-alias-component-icon-color-key-focus)\n)}.input:focus-visible~.icon{color:var(\n--spectrum-search-m-icon-color-key-focus,var(--spectrum-alias-component-icon-color-key-focus)\n)}.input:disabled~.icon{color:var(\n--spectrum-textfield-m-texticon-text-color-disabled,var(--spectrum-alias-component-text-color-disabled)\n)}input::-webkit-search-cancel-button{display:none}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "AAWA;
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgDf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/search.css.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
const styles = css`
|
|
1
|
+
"use strict";import{css as e}from"@spectrum-web-components/base";const t=e`
|
|
3
2
|
:host{--spectrum-search-quiet-button-offset:calc(var(
|
|
4
3
|
--spectrum-actionbutton-m-texticon-min-width,
|
|
5
4
|
var(--spectrum-global-dimension-size-400)
|
|
@@ -46,6 +45,5 @@ var(--spectrum-alias-input-border-size)
|
|
|
46
45
|
)}.input:disabled~.icon{color:var(
|
|
47
46
|
--spectrum-textfield-m-texticon-text-color-disabled,var(--spectrum-alias-component-text-color-disabled)
|
|
48
47
|
)}input::-webkit-search-cancel-button{display:none}
|
|
49
|
-
`;
|
|
50
|
-
export default styles;
|
|
48
|
+
`;export default t;
|
|
51
49
|
//# sourceMappingURL=search.css.js.map
|
package/src/search.css.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["search.css.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-search-quiet-button-offset:calc(var(\n--spectrum-actionbutton-m-texticon-min-width,\nvar(--spectrum-global-dimension-size-400)\n)/2 - var(--spectrum-alias-ui-icon-cross-size-100)/2)}#textfield{display:inline-block;position:relative}:host([dir=ltr]) #button{right:0}:host([dir=rtl]) #button{left:0}#button{position:absolute;top:0}.input{-webkit-appearance:none;border-radius:var(\n--spectrum-alias-search-border-radius,var(--spectrum-global-dimension-size-50)\n);outline-offset:-2px}.input::-webkit-search-cancel-button,.input::-webkit-search-decoration{-webkit-appearance:none}#textfield:after{border-radius:var(\n--spectrum-alias-search-border-radius,var(--spectrum-global-dimension-size-50)\n)}:host([dir=ltr]:not([quiet])) #textfield .icon{left:var(\n--spectrum-alias-search-padding-left-m\n)}:host([dir=rtl]:not([quiet])) #textfield .icon{right:var(\n--spectrum-alias-search-padding-left-m\n)}:host([dir=ltr]:not([quiet])) #textfield .input{padding-left:calc(var(--spectrum-alias-search-padding-left-m) + var(\n--spectrum-alias-workflow-icon-size-m,\nvar(--spectrum-global-dimension-size-225)\n) + var(\n--spectrum-textfield-m-texticon-icon-gap,\nvar(--spectrum-global-dimension-size-100)\n) - var(\n--spectrum-textfield-m-texticon-border-size,\nvar(--spectrum-alias-input-border-size)\n))}:host([dir=rtl]:not([quiet])) #textfield .input{padding-right:calc(var(--spectrum-alias-search-padding-left-m) + var(\n--spectrum-alias-workflow-icon-size-m,\nvar(--spectrum-global-dimension-size-225)\n) + var(\n--spectrum-textfield-m-texticon-icon-gap,\nvar(--spectrum-global-dimension-size-100)\n) - var(\n--spectrum-textfield-m-texticon-border-size,\nvar(--spectrum-alias-input-border-size)\n))}:host([quiet]) #button{transform:translateX(var(--spectrum-search-quiet-button-offset))}:host([quiet]) .input{border-radius:var(\n--spectrum-alias-search-border-radius-quiet,0\n)}:host([quiet]) #textfield:after{border-radius:var(\n--spectrum-alias-search-border-radius-quiet,0\n)}.icon{color:var(\n--spectrum-textfield-m-texticon-icon-color,var(--spectrum-alias-component-icon-color-default)\n)}.input:hover~.icon{color:var(\n--spectrum-search-m-icon-color-hover,var(--spectrum-alias-component-icon-color-hover)\n)}.input:active~.icon{color:var(\n--spectrum-search-m-icon-color-down,var(--spectrum-alias-component-icon-color-down)\n)}.input.focus-visible~.icon{color:var(\n--spectrum-search-m-icon-color-key-focus,var(--spectrum-alias-component-icon-color-key-focus)\n)}.input:focus-visible~.icon{color:var(\n--spectrum-search-m-icon-color-key-focus,var(--spectrum-alias-component-icon-color-key-focus)\n)}.input:disabled~.icon{color:var(\n--spectrum-textfield-m-texticon-text-color-disabled,var(--spectrum-alias-component-text-color-disabled)\n)}input::-webkit-search-cancel-button{display:none}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgDf,eAAeC",
|
|
6
|
+
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-search.css.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-search-quiet-button-offset:calc(var(\n--spectrum-actionbutton-m-texticon-min-width,\nvar(--spectrum-global-dimension-size-400)\n)/2 - var(--spectrum-alias-ui-icon-cross-size-100)/2)}#textfield{display:inline-block;position:relative}:host([dir=ltr]) #button{right:0}:host([dir=rtl]) #button{left:0}#button{position:absolute;top:0}.input{-webkit-appearance:none;border-radius:var(\n--spectrum-alias-search-border-radius,var(--spectrum-global-dimension-size-50)\n);outline-offset:-2px}.input::-webkit-search-cancel-button,.input::-webkit-search-decoration{-webkit-appearance:none}#textfield:after{border-radius:var(\n--spectrum-alias-search-border-radius,var(--spectrum-global-dimension-size-50)\n)}:host([dir=ltr]:not([quiet])) #textfield .icon{left:var(\n--spectrum-alias-search-padding-left-m\n)}:host([dir=rtl]:not([quiet])) #textfield .icon{right:var(\n--spectrum-alias-search-padding-left-m\n)}:host([dir=ltr]:not([quiet])) #textfield .input{padding-left:calc(var(--spectrum-alias-search-padding-left-m) + var(\n--spectrum-alias-workflow-icon-size-m,\nvar(--spectrum-global-dimension-size-225)\n) + var(\n--spectrum-textfield-m-texticon-icon-gap,\nvar(--spectrum-global-dimension-size-100)\n) - var(\n--spectrum-textfield-m-texticon-border-size,\nvar(--spectrum-alias-input-border-size)\n))}:host([dir=rtl]:not([quiet])) #textfield .input{padding-right:calc(var(--spectrum-alias-search-padding-left-m) + var(\n--spectrum-alias-workflow-icon-size-m,\nvar(--spectrum-global-dimension-size-225)\n) + var(\n--spectrum-textfield-m-texticon-icon-gap,\nvar(--spectrum-global-dimension-size-100)\n) - var(\n--spectrum-textfield-m-texticon-border-size,\nvar(--spectrum-alias-input-border-size)\n))}:host([quiet]) #button{transform:translateX(var(--spectrum-search-quiet-button-offset))}:host([quiet]) .input{border-radius:var(\n--spectrum-alias-search-border-radius-quiet,0\n)}:host([quiet]) #textfield:after{border-radius:var(\n--spectrum-alias-search-border-radius-quiet,0\n)}.icon{color:var(\n--spectrum-textfield-m-texticon-icon-color,var(--spectrum-alias-component-icon-color-default)\n)}.input:hover~.icon{color:var(\n--spectrum-search-m-icon-color-hover,var(--spectrum-alias-component-icon-color-hover)\n)}.input:active~.icon{color:var(\n--spectrum-search-m-icon-color-down,var(--spectrum-alias-component-icon-color-down)\n)}.input.focus-visible~.icon{color:var(\n--spectrum-search-m-icon-color-key-focus,var(--spectrum-alias-component-icon-color-key-focus)\n)}.input:focus-visible~.icon{color:var(\n--spectrum-search-m-icon-color-key-focus,var(--spectrum-alias-component-icon-color-key-focus)\n)}.input:disabled~.icon{color:var(\n--spectrum-textfield-m-texticon-text-color-disabled,var(--spectrum-alias-component-text-color-disabled)\n)}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "AAWA;
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgDf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
const styles = css`
|
|
1
|
+
"use strict";import{css as e}from"@spectrum-web-components/base";const t=e`
|
|
3
2
|
:host{--spectrum-search-quiet-button-offset:calc(var(
|
|
4
3
|
--spectrum-actionbutton-m-texticon-min-width,
|
|
5
4
|
var(--spectrum-global-dimension-size-400)
|
|
@@ -46,6 +45,5 @@ var(--spectrum-alias-input-border-size)
|
|
|
46
45
|
)}.input:disabled~.icon{color:var(
|
|
47
46
|
--spectrum-textfield-m-texticon-text-color-disabled,var(--spectrum-alias-component-text-color-disabled)
|
|
48
47
|
)}
|
|
49
|
-
`;
|
|
50
|
-
export default styles;
|
|
48
|
+
`;export default t;
|
|
51
49
|
//# sourceMappingURL=spectrum-search.css.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-search.css.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-search-quiet-button-offset:calc(var(\n--spectrum-actionbutton-m-texticon-min-width,\nvar(--spectrum-global-dimension-size-400)\n)/2 - var(--spectrum-alias-ui-icon-cross-size-100)/2)}#textfield{display:inline-block;position:relative}:host([dir=ltr]) #button{right:0}:host([dir=rtl]) #button{left:0}#button{position:absolute;top:0}.input{-webkit-appearance:none;border-radius:var(\n--spectrum-alias-search-border-radius,var(--spectrum-global-dimension-size-50)\n);outline-offset:-2px}.input::-webkit-search-cancel-button,.input::-webkit-search-decoration{-webkit-appearance:none}#textfield:after{border-radius:var(\n--spectrum-alias-search-border-radius,var(--spectrum-global-dimension-size-50)\n)}:host([dir=ltr]:not([quiet])) #textfield .icon{left:var(\n--spectrum-alias-search-padding-left-m\n)}:host([dir=rtl]:not([quiet])) #textfield .icon{right:var(\n--spectrum-alias-search-padding-left-m\n)}:host([dir=ltr]:not([quiet])) #textfield .input{padding-left:calc(var(--spectrum-alias-search-padding-left-m) + var(\n--spectrum-alias-workflow-icon-size-m,\nvar(--spectrum-global-dimension-size-225)\n) + var(\n--spectrum-textfield-m-texticon-icon-gap,\nvar(--spectrum-global-dimension-size-100)\n) - var(\n--spectrum-textfield-m-texticon-border-size,\nvar(--spectrum-alias-input-border-size)\n))}:host([dir=rtl]:not([quiet])) #textfield .input{padding-right:calc(var(--spectrum-alias-search-padding-left-m) + var(\n--spectrum-alias-workflow-icon-size-m,\nvar(--spectrum-global-dimension-size-225)\n) + var(\n--spectrum-textfield-m-texticon-icon-gap,\nvar(--spectrum-global-dimension-size-100)\n) - var(\n--spectrum-textfield-m-texticon-border-size,\nvar(--spectrum-alias-input-border-size)\n))}:host([quiet]) #button{transform:translateX(var(--spectrum-search-quiet-button-offset))}:host([quiet]) .input{border-radius:var(\n--spectrum-alias-search-border-radius-quiet,0\n)}:host([quiet]) #textfield:after{border-radius:var(\n--spectrum-alias-search-border-radius-quiet,0\n)}.icon{color:var(\n--spectrum-textfield-m-texticon-icon-color,var(--spectrum-alias-component-icon-color-default)\n)}.input:hover~.icon{color:var(\n--spectrum-search-m-icon-color-hover,var(--spectrum-alias-component-icon-color-hover)\n)}.input:active~.icon{color:var(\n--spectrum-search-m-icon-color-down,var(--spectrum-alias-component-icon-color-down)\n)}.input.focus-visible~.icon{color:var(\n--spectrum-search-m-icon-color-key-focus,var(--spectrum-alias-component-icon-color-key-focus)\n)}.input:focus-visible~.icon{color:var(\n--spectrum-search-m-icon-color-key-focus,var(--spectrum-alias-component-icon-color-key-focus)\n)}.input:disabled~.icon{color:var(\n--spectrum-textfield-m-texticon-text-color-disabled,var(--spectrum-alias-component-text-color-disabled)\n)}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgDf,eAAeC",
|
|
6
|
+
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["search.stories.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2018 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport '@spectrum-web-components/search/sp-search.js';\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nexport default {\n component: 'sp-search',\n title: 'Search',\n};\n\nexport const Default = (): TemplateResult => html`\n <sp-search></sp-search>\n <sp-search disabled></sp-search>\n`;\n\nexport const autofocus = (): TemplateResult => html`\n <sp-search autofocus></sp-search>\n`;\n\nexport const Quiet = (): TemplateResult => html`\n <sp-search quiet></sp-search>\n <sp-search quiet disabled></sp-search>\n`;\n"],
|
|
5
|
-
"mappings": "AAWA;
|
|
5
|
+
"mappings": ";AAWA,OAAO;AACP,SAAS,YAA4B;AAErC,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,UAAU,MAAsB;AAAA;AAAA;AAAA;AAKtC,aAAM,YAAY,MAAsB;AAAA;AAAA;AAIxC,aAAM,QAAQ,MAAsB;AAAA;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["test-basic.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport '@spectrum-web-components/search/sp-search.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-search\n placeholder=\"Search millions of images\"\n label=\"Search for an image\"\n @submit=${(event: Event) => {\n event.preventDefault();\n }}\n ></sp-search>\n`);\n"],
|
|
5
|
-
"mappings": "AAYA;
|
|
5
|
+
"mappings": ";AAYA,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA;AAAA;AAAA,kBAIL,CAAC,UAAiB;AACxB,QAAM,eAAe;AACzB;AAAA;AAAA,CAEP;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/test/search.test-vrt.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["search.test-vrt.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/search.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('SearchStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA;
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,iBAAiB,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/test/search.test.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
import "@spectrum-web-components/search/sp-search.js";
|
|
2
3
|
import { elementUpdated, expect, html, litFixture } from "@open-wc/testing";
|
|
3
4
|
import { escapeEvent, spaceEvent } from "../../../test/testing-helpers.js";
|
|
@@ -5,20 +6,28 @@ import "@spectrum-web-components/shared/src/focus-visible.js";
|
|
|
5
6
|
import { spy } from "sinon";
|
|
6
7
|
import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
|
|
7
8
|
describe("Search", () => {
|
|
8
|
-
testForLitDevWarnings(
|
|
9
|
+
testForLitDevWarnings(
|
|
10
|
+
async () => await litFixture(
|
|
11
|
+
html`
|
|
9
12
|
<sp-search></sp-search>
|
|
10
|
-
`
|
|
13
|
+
`
|
|
14
|
+
)
|
|
15
|
+
);
|
|
11
16
|
it("loads accessibly", async () => {
|
|
12
|
-
const el = await litFixture(
|
|
17
|
+
const el = await litFixture(
|
|
18
|
+
html`
|
|
13
19
|
<sp-search></sp-search>
|
|
14
|
-
`
|
|
20
|
+
`
|
|
21
|
+
);
|
|
15
22
|
await elementUpdated(el);
|
|
16
23
|
await expect(el).to.be.accessible();
|
|
17
24
|
});
|
|
18
25
|
it("can be cleared", async () => {
|
|
19
|
-
const el = await litFixture(
|
|
26
|
+
const el = await litFixture(
|
|
27
|
+
html`
|
|
20
28
|
<sp-search value="Test"></sp-search>
|
|
21
|
-
`
|
|
29
|
+
`
|
|
30
|
+
);
|
|
22
31
|
await elementUpdated(el);
|
|
23
32
|
expect(el.value).to.equal("Test");
|
|
24
33
|
const root = el.shadowRoot ? el.shadowRoot : el;
|
|
@@ -28,9 +37,11 @@ describe("Search", () => {
|
|
|
28
37
|
expect(el.value).to.equal("");
|
|
29
38
|
});
|
|
30
39
|
it("captures keyboard events to the clear button", async () => {
|
|
31
|
-
const el = await litFixture(
|
|
40
|
+
const el = await litFixture(
|
|
41
|
+
html`
|
|
32
42
|
<sp-search value="Test"></sp-search>
|
|
33
|
-
`
|
|
43
|
+
`
|
|
44
|
+
);
|
|
34
45
|
await elementUpdated(el);
|
|
35
46
|
expect(el.value).to.equal("Test");
|
|
36
47
|
const root = el.shadowRoot ? el.shadowRoot : el;
|
|
@@ -50,13 +61,15 @@ describe("Search", () => {
|
|
|
50
61
|
const target = event.target;
|
|
51
62
|
changeSpy(target.value);
|
|
52
63
|
};
|
|
53
|
-
const el = await litFixture(
|
|
64
|
+
const el = await litFixture(
|
|
65
|
+
html`
|
|
54
66
|
<sp-search
|
|
55
67
|
value="Test"
|
|
56
68
|
@change=${handleChange}
|
|
57
69
|
@input=${handleInput}
|
|
58
70
|
></sp-search>
|
|
59
|
-
`
|
|
71
|
+
`
|
|
72
|
+
);
|
|
60
73
|
await elementUpdated(el);
|
|
61
74
|
expect(el.value).to.equal("Test");
|
|
62
75
|
const root = el.shadowRoot ? el.shadowRoot : el;
|
|
@@ -82,13 +95,15 @@ describe("Search", () => {
|
|
|
82
95
|
const target = event.target;
|
|
83
96
|
changeSpy(target.value);
|
|
84
97
|
};
|
|
85
|
-
const el = await litFixture(
|
|
98
|
+
const el = await litFixture(
|
|
99
|
+
html`
|
|
86
100
|
<sp-search
|
|
87
101
|
value="Test"
|
|
88
102
|
@change=${handleChange}
|
|
89
103
|
@input=${handleInput}
|
|
90
104
|
></sp-search>
|
|
91
|
-
`
|
|
105
|
+
`
|
|
106
|
+
);
|
|
92
107
|
await elementUpdated(el);
|
|
93
108
|
expect(el.value).to.equal("Test");
|
|
94
109
|
el.focusElement.dispatchEvent(spaceEvent());
|
|
@@ -105,9 +120,11 @@ describe("Search", () => {
|
|
|
105
120
|
expect(changeSpy.calledWith(""), "was blank").to.be.true;
|
|
106
121
|
});
|
|
107
122
|
it("cannot be multiline", async () => {
|
|
108
|
-
const el = await litFixture(
|
|
123
|
+
const el = await litFixture(
|
|
124
|
+
html`
|
|
109
125
|
<sp-search multiline></sp-search>
|
|
110
|
-
`
|
|
126
|
+
`
|
|
127
|
+
);
|
|
111
128
|
await elementUpdated(el);
|
|
112
129
|
expect(el.multiline).to.be.false;
|
|
113
130
|
el.multiline = true;
|
|
@@ -116,9 +133,11 @@ describe("Search", () => {
|
|
|
116
133
|
});
|
|
117
134
|
it("accepts `placeholder` and `label` properties", async () => {
|
|
118
135
|
const testString = "Search for images";
|
|
119
|
-
const el = await litFixture(
|
|
136
|
+
const el = await litFixture(
|
|
137
|
+
html`
|
|
120
138
|
<sp-search></sp-search>
|
|
121
|
-
`
|
|
139
|
+
`
|
|
140
|
+
);
|
|
122
141
|
await elementUpdated(el);
|
|
123
142
|
el.placeholder = testString;
|
|
124
143
|
el.label = testString;
|
|
@@ -127,13 +146,15 @@ describe("Search", () => {
|
|
|
127
146
|
expect(el.focusElement.getAttribute("aria-label")).to.equal(testString);
|
|
128
147
|
});
|
|
129
148
|
it("can have default prevented", async () => {
|
|
130
|
-
const el = await litFixture(
|
|
149
|
+
const el = await litFixture(
|
|
150
|
+
html`
|
|
131
151
|
<sp-search
|
|
132
152
|
@submit=${(event) => {
|
|
133
|
-
|
|
134
|
-
|
|
153
|
+
event.preventDefault();
|
|
154
|
+
}}
|
|
135
155
|
></sp-search>
|
|
136
|
-
`
|
|
156
|
+
`
|
|
157
|
+
);
|
|
137
158
|
await elementUpdated(el);
|
|
138
159
|
const searchForm = el.shadowRoot ? el.shadowRoot.querySelector("form") : el.querySelector("form");
|
|
139
160
|
const submitEvent = new Event("submit", {
|
package/test/search.test.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["search.test.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport '@spectrum-web-components/search/sp-search.js';\nimport { Search } from '@spectrum-web-components/search';\nimport { elementUpdated, expect, html, litFixture } from '@open-wc/testing';\nimport { escapeEvent, spaceEvent } from '../../../test/testing-helpers.js';\nimport '@spectrum-web-components/shared/src/focus-visible.js';\nimport { spy } from 'sinon';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('Search', () => {\n testForLitDevWarnings(\n async () =>\n await litFixture<Search>(\n html`\n <sp-search></sp-search>\n `\n )\n );\n it('loads accessibly', async () => {\n const el = await litFixture<Search>(\n html`\n <sp-search></sp-search>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('can be cleared', async () => {\n const el = await litFixture<Search>(\n html`\n <sp-search value=\"Test\"></sp-search>\n `\n );\n\n await elementUpdated(el);\n expect(el.value).to.equal('Test');\n\n const root = el.shadowRoot ? el.shadowRoot : el;\n const clearButton = root.querySelector('#button') as HTMLButtonElement;\n clearButton.click();\n\n await elementUpdated(el);\n\n expect(el.value).to.equal('');\n });\n it('captures keyboard events to the clear button', async () => {\n const el = await litFixture<Search>(\n html`\n <sp-search value=\"Test\"></sp-search>\n `\n );\n\n await elementUpdated(el);\n expect(el.value).to.equal('Test');\n\n const root = el.shadowRoot ? el.shadowRoot : el;\n const clearButton = root.querySelector('#button') as HTMLButtonElement;\n clearButton.dispatchEvent(escapeEvent());\n\n await elementUpdated(el);\n\n expect(el.value).to.equal('Test');\n });\n it('dispatches events when using the \"clear\" button', async () => {\n const inputSpy = spy();\n const changeSpy = spy();\n const handleInput = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n inputSpy(target.value);\n };\n const handleChange = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n changeSpy(target.value);\n };\n const el = await litFixture<Search>(\n html`\n <sp-search\n value=\"Test\"\n @change=${handleChange}\n @input=${handleInput}\n ></sp-search>\n `\n );\n\n await elementUpdated(el);\n expect(el.value).to.equal('Test');\n\n const root = el.shadowRoot ? el.shadowRoot : el;\n const clearButton = root.querySelector('#button') as HTMLButtonElement;\n inputSpy.resetHistory();\n changeSpy.resetHistory();\n clearButton.click();\n\n await elementUpdated(el);\n\n expect(el.value).to.equal('');\n expect(inputSpy.calledOnce, 'one input').to.be.true;\n expect(inputSpy.calledWith(''), 'was blank').to.be.true;\n expect(changeSpy.calledOnce, 'one change').to.be.true;\n expect(changeSpy.calledWith(''), 'was blank').to.be.true;\n });\n it('can be cleared via \"Escape\"', async () => {\n const inputSpy = spy();\n const changeSpy = spy();\n const handleInput = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n inputSpy(target.value);\n };\n const handleChange = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n changeSpy(target.value);\n };\n const el = await litFixture<Search>(\n html`\n <sp-search\n value=\"Test\"\n @change=${handleChange}\n @input=${handleInput}\n ></sp-search>\n `\n );\n\n await elementUpdated(el);\n expect(el.value).to.equal('Test');\n el.focusElement.dispatchEvent(spaceEvent());\n\n await elementUpdated(el);\n expect(el.value).to.equal('Test');\n\n inputSpy.resetHistory();\n changeSpy.resetHistory();\n el.focusElement.dispatchEvent(escapeEvent());\n\n await elementUpdated(el);\n\n expect(el.value).to.equal('');\n expect(inputSpy.calledOnce, 'one input').to.be.true;\n expect(inputSpy.calledWith(''), 'was blank').to.be.true;\n expect(changeSpy.calledOnce, 'one change').to.be.true;\n expect(changeSpy.calledWith(''), 'was blank').to.be.true;\n });\n it('cannot be multiline', async () => {\n const el = await litFixture<Search>(\n html`\n <sp-search multiline></sp-search>\n `\n );\n\n await elementUpdated(el);\n\n expect(el.multiline).to.be.false;\n\n el.multiline = true;\n\n await elementUpdated(el);\n\n expect(el.multiline).to.be.false;\n });\n it('accepts `placeholder` and `label` properties', async () => {\n const testString = 'Search for images';\n const el = await litFixture<Search>(\n html`\n <sp-search></sp-search>\n `\n );\n\n await elementUpdated(el);\n el.placeholder = testString;\n el.label = testString;\n\n await elementUpdated(el);\n\n expect(el.focusElement.placeholder).to.equal(testString);\n expect(el.focusElement.getAttribute('aria-label')).to.equal(testString);\n });\n it('can have default prevented', async () => {\n const el = await litFixture<Search>(\n html`\n <sp-search\n @submit=${(event: Event) => {\n event.preventDefault();\n }}\n ></sp-search>\n `\n );\n\n await elementUpdated(el);\n const searchForm = (\n el.shadowRoot\n ? el.shadowRoot.querySelector('form')\n : el.querySelector('form')\n ) as HTMLFormElement;\n\n const submitEvent = new Event('submit', {\n cancelable: true,\n bubbles: false,\n composed: false,\n });\n searchForm.dispatchEvent(submitEvent);\n\n expect(submitEvent.defaultPrevented).to.be.true;\n });\n});\n"],
|
|
5
|
-
"mappings": "AAWA;
|
|
5
|
+
"mappings": ";AAWA,OAAO;AAEP,SAAS,gBAAgB,QAAQ,MAAM,kBAAkB;AACzD,SAAS,aAAa,kBAAkB;AACxC,OAAO;AACP,SAAS,WAAW;AACpB,SAAS,6BAA6B;AAEtC,SAAS,UAAU,MAAM;AACrB;AAAA,IACI,YACI,MAAM;AAAA,MACF;AAAA;AAAA;AAAA,IAGJ;AAAA,EACR;AACA,KAAG,oBAAoB,YAAY;AAC/B,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,kBAAkB,YAAY;AAC7B,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AACv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