@spectrum-web-components/search 0.12.0 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/sp-search.dev.js +1 -0
- package/sp-search.dev.js.map +1 -1
- package/sp-search.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/spectrum-search.css.js.map +2 -2
- package/stories/search.stories.js +12 -3
- package/stories/search.stories.js.map +1 -1
- package/test/benchmark/test-basic.js +8 -2
- package/test/benchmark/test-basic.js.map +1 -1
- package/test/search.test-vrt.js +4 -1
- package/test/search.test-vrt.js.map +1 -1
- package/test/search.test.js +154 -15
- 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.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@spectrum-web-components/base": "^0.7.0",
|
|
61
|
-
"@spectrum-web-components/button": "^0.19.
|
|
61
|
+
"@spectrum-web-components/button": "^0.19.2",
|
|
62
62
|
"@spectrum-web-components/icon": "^0.12.0",
|
|
63
63
|
"@spectrum-web-components/icons-workflow": "^0.9.0",
|
|
64
|
-
"@spectrum-web-components/textfield": "^0.13.
|
|
64
|
+
"@spectrum-web-components/textfield": "^0.13.2",
|
|
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": "60b2d3b7d9020d72f9ae930568670321a1918e6f"
|
|
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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Search as e}from"./src/Search.js";customElements.define("sp-search",e);
|
|
1
|
+
"use strict";import{Search as e}from"./src/Search.js";customElements.define("sp-search",e);
|
|
2
2
|
//# sourceMappingURL=sp-search.js.map
|
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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AA;AAAA,yCAMmB;AAAA;AAAA,0BAGnB;AAAA;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,4 +1,4 @@
|
|
|
1
|
-
var u=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var r=(o,e,
|
|
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`
|
|
2
2
|
<form
|
|
3
3
|
action=${this.action}
|
|
4
4
|
id="form"
|
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": "qNAYA,OAEI,QAAAA,MAGG,gCACP,OACI,YAAAC,EACA,SAAAC,MACG,kDACP,OAAS,aAAAC,MAAiB,kDAE1B,OAAS,aAAAC,MAAiB,qCAC1B,MAAO,qDACP,MAAO,mEAEP,OAAOC,MAAkB,kBAEzB,MAAMC,EAAmBC,GAAuBA,EAAM,gBAAgB,EAS/D,aAAM,eAAeH,CAAU,CAA/B,kCAMH,KAAO,OAAS,GAGhB,KAAgB,MAAQ,SAMxB,KAAgB,YAAc,SAd9B,WAA2B,QAAyB,CAChD,MAAO,CAAC,GAAG,MAAM,OAAQC,CAAY,CACzC,CAiBQ,aAAaE,EAAoB,CAChB,KAAK,cACtB,IAAI,MAAM,SAAU,CAChB,WAAY,GACZ,QAAS,EACb,CAAC,CACL,GAEIA,EAAM,eAAe,CAE7B,CAEQ,cAAcA,EAA4B,CAC9C,KAAM,CAAE,KAAAC,CAAK,EAAID,EACb,CAAC,KAAK,OAASC,IAAS,UAG5B,KAAK,MAAM,CACf,CAEA,MAAa,OAAuB,CAChC,KAAK,MAAQ,GACb,MAAM,KAAK,eACX,KAAK,aAAa,cACd,IAAI,WAAW,QAAS,CACpB,QAAS,GACT,SAAU,EACd,CAAC,CACL,EAKA,KAAK,aAAa,cACd,IAAI,WAAW,SAAU,CACrB,QAAS,EACb,CAAC,CACL,CACJ,CAEmB,aAA8B,CAC7C,OAAOR;AAAA;AAAA,yBAEU,KAAK;AAAA;AAAA,yBAELG,EAAU,KAAK,MAAM;AAAA,0BACpB,KAAK;AAAA,yBACN,KAAK;AAAA,2BACH,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,kBAKd,MAAM,YAAY;AAAA,kBAClB,KAAK,MACDH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yCAMmBM;AAAA;AAAA,wBAGnBN;AAAA;AAAA,SAGlB,CAEgB,aAAaS,EAAyC,CAClE,MAAM,aAAaA,CAAiB,EACpC,KAAK,aAAa,aAAa,OAAQ,QAAQ,CACnD,CAEgB,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*from"./Search.js";
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import{css as e}from"@spectrum-web-components/base";const t=e`
|
|
1
|
+
"use strict";import{css as e}from"@spectrum-web-components/base";const t=e`
|
|
2
2
|
:host{--spectrum-search-quiet-button-offset:calc(var(
|
|
3
3
|
--spectrum-actionbutton-m-texticon-min-width,
|
|
4
4
|
var(--spectrum-global-dimension-size-400)
|
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,4 +1,4 @@
|
|
|
1
|
-
import{css as e}from"@spectrum-web-components/base";const t=e`
|
|
1
|
+
"use strict";import{css as e}from"@spectrum-web-components/base";const t=e`
|
|
2
2
|
:host{--spectrum-search-quiet-button-offset:calc(var(
|
|
3
3
|
--spectrum-actionbutton-m-texticon-min-width,
|
|
4
4
|
var(--spectrum-global-dimension-size-400)
|
|
@@ -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
|
}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import "@spectrum-web-components/search/sp-search.js";
|
|
3
|
+
import { html } from "@spectrum-web-components/base";
|
|
4
|
+
export default {
|
|
5
|
+
component: "sp-search",
|
|
6
|
+
title: "Search"
|
|
7
|
+
};
|
|
8
|
+
export const Default = () => html`
|
|
2
9
|
<sp-search></sp-search>
|
|
3
10
|
<sp-search disabled></sp-search>
|
|
4
|
-
|
|
11
|
+
`;
|
|
12
|
+
export const autofocus = () => html`
|
|
5
13
|
<sp-search autofocus></sp-search>
|
|
6
|
-
|
|
14
|
+
`;
|
|
15
|
+
export const Quiet = () => html`
|
|
7
16
|
<sp-search quiet></sp-search>
|
|
8
17
|
<sp-search quiet disabled></sp-search>
|
|
9
18
|
`;
|
|
@@ -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
|
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import "@spectrum-web-components/search/sp-search.js";
|
|
3
|
+
import { html } from "lit";
|
|
4
|
+
import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
|
|
5
|
+
measureFixtureCreation(html`
|
|
2
6
|
<sp-search
|
|
3
7
|
placeholder="Search millions of images"
|
|
4
8
|
label="Search for an image"
|
|
5
|
-
@submit=${
|
|
9
|
+
@submit=${(event) => {
|
|
10
|
+
event.preventDefault();
|
|
11
|
+
}}
|
|
6
12
|
></sp-search>
|
|
7
13
|
`);
|
|
8
14
|
//# sourceMappingURL=test-basic.js.map
|
|
@@ -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
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/search.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("SearchStories", stories);
|
|
2
5
|
//# sourceMappingURL=search.test-vrt.js.map
|
|
@@ -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,30 +1,169 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import "@spectrum-web-components/search/sp-search.js";
|
|
3
|
+
import { elementUpdated, expect, html, litFixture } from "@open-wc/testing";
|
|
4
|
+
import { escapeEvent, spaceEvent } from "../../../test/testing-helpers.js";
|
|
5
|
+
import "@spectrum-web-components/shared/src/focus-visible.js";
|
|
6
|
+
import { spy } from "sinon";
|
|
7
|
+
import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
|
|
8
|
+
describe("Search", () => {
|
|
9
|
+
testForLitDevWarnings(
|
|
10
|
+
async () => await litFixture(
|
|
11
|
+
html`
|
|
2
12
|
<sp-search></sp-search>
|
|
3
|
-
`
|
|
13
|
+
`
|
|
14
|
+
)
|
|
15
|
+
);
|
|
16
|
+
it("loads accessibly", async () => {
|
|
17
|
+
const el = await litFixture(
|
|
18
|
+
html`
|
|
4
19
|
<sp-search></sp-search>
|
|
5
|
-
`
|
|
20
|
+
`
|
|
21
|
+
);
|
|
22
|
+
await elementUpdated(el);
|
|
23
|
+
await expect(el).to.be.accessible();
|
|
24
|
+
});
|
|
25
|
+
it("can be cleared", async () => {
|
|
26
|
+
const el = await litFixture(
|
|
27
|
+
html`
|
|
6
28
|
<sp-search value="Test"></sp-search>
|
|
7
|
-
`
|
|
29
|
+
`
|
|
30
|
+
);
|
|
31
|
+
await elementUpdated(el);
|
|
32
|
+
expect(el.value).to.equal("Test");
|
|
33
|
+
const root = el.shadowRoot ? el.shadowRoot : el;
|
|
34
|
+
const clearButton = root.querySelector("#button");
|
|
35
|
+
clearButton.click();
|
|
36
|
+
await elementUpdated(el);
|
|
37
|
+
expect(el.value).to.equal("");
|
|
38
|
+
});
|
|
39
|
+
it("captures keyboard events to the clear button", async () => {
|
|
40
|
+
const el = await litFixture(
|
|
41
|
+
html`
|
|
8
42
|
<sp-search value="Test"></sp-search>
|
|
9
|
-
`
|
|
43
|
+
`
|
|
44
|
+
);
|
|
45
|
+
await elementUpdated(el);
|
|
46
|
+
expect(el.value).to.equal("Test");
|
|
47
|
+
const root = el.shadowRoot ? el.shadowRoot : el;
|
|
48
|
+
const clearButton = root.querySelector("#button");
|
|
49
|
+
clearButton.dispatchEvent(escapeEvent());
|
|
50
|
+
await elementUpdated(el);
|
|
51
|
+
expect(el.value).to.equal("Test");
|
|
52
|
+
});
|
|
53
|
+
it('dispatches events when using the "clear" button', async () => {
|
|
54
|
+
const inputSpy = spy();
|
|
55
|
+
const changeSpy = spy();
|
|
56
|
+
const handleInput = (event) => {
|
|
57
|
+
const target = event.target;
|
|
58
|
+
inputSpy(target.value);
|
|
59
|
+
};
|
|
60
|
+
const handleChange = (event) => {
|
|
61
|
+
const target = event.target;
|
|
62
|
+
changeSpy(target.value);
|
|
63
|
+
};
|
|
64
|
+
const el = await litFixture(
|
|
65
|
+
html`
|
|
10
66
|
<sp-search
|
|
11
67
|
value="Test"
|
|
12
|
-
@change=${
|
|
13
|
-
@input=${
|
|
68
|
+
@change=${handleChange}
|
|
69
|
+
@input=${handleInput}
|
|
14
70
|
></sp-search>
|
|
15
|
-
`
|
|
71
|
+
`
|
|
72
|
+
);
|
|
73
|
+
await elementUpdated(el);
|
|
74
|
+
expect(el.value).to.equal("Test");
|
|
75
|
+
const root = el.shadowRoot ? el.shadowRoot : el;
|
|
76
|
+
const clearButton = root.querySelector("#button");
|
|
77
|
+
inputSpy.resetHistory();
|
|
78
|
+
changeSpy.resetHistory();
|
|
79
|
+
clearButton.click();
|
|
80
|
+
await elementUpdated(el);
|
|
81
|
+
expect(el.value).to.equal("");
|
|
82
|
+
expect(inputSpy.calledOnce, "one input").to.be.true;
|
|
83
|
+
expect(inputSpy.calledWith(""), "was blank").to.be.true;
|
|
84
|
+
expect(changeSpy.calledOnce, "one change").to.be.true;
|
|
85
|
+
expect(changeSpy.calledWith(""), "was blank").to.be.true;
|
|
86
|
+
});
|
|
87
|
+
it('can be cleared via "Escape"', async () => {
|
|
88
|
+
const inputSpy = spy();
|
|
89
|
+
const changeSpy = spy();
|
|
90
|
+
const handleInput = (event) => {
|
|
91
|
+
const target = event.target;
|
|
92
|
+
inputSpy(target.value);
|
|
93
|
+
};
|
|
94
|
+
const handleChange = (event) => {
|
|
95
|
+
const target = event.target;
|
|
96
|
+
changeSpy(target.value);
|
|
97
|
+
};
|
|
98
|
+
const el = await litFixture(
|
|
99
|
+
html`
|
|
16
100
|
<sp-search
|
|
17
101
|
value="Test"
|
|
18
|
-
@change=${
|
|
19
|
-
@input=${
|
|
102
|
+
@change=${handleChange}
|
|
103
|
+
@input=${handleInput}
|
|
20
104
|
></sp-search>
|
|
21
|
-
`
|
|
105
|
+
`
|
|
106
|
+
);
|
|
107
|
+
await elementUpdated(el);
|
|
108
|
+
expect(el.value).to.equal("Test");
|
|
109
|
+
el.focusElement.dispatchEvent(spaceEvent());
|
|
110
|
+
await elementUpdated(el);
|
|
111
|
+
expect(el.value).to.equal("Test");
|
|
112
|
+
inputSpy.resetHistory();
|
|
113
|
+
changeSpy.resetHistory();
|
|
114
|
+
el.focusElement.dispatchEvent(escapeEvent());
|
|
115
|
+
await elementUpdated(el);
|
|
116
|
+
expect(el.value).to.equal("");
|
|
117
|
+
expect(inputSpy.calledOnce, "one input").to.be.true;
|
|
118
|
+
expect(inputSpy.calledWith(""), "was blank").to.be.true;
|
|
119
|
+
expect(changeSpy.calledOnce, "one change").to.be.true;
|
|
120
|
+
expect(changeSpy.calledWith(""), "was blank").to.be.true;
|
|
121
|
+
});
|
|
122
|
+
it("cannot be multiline", async () => {
|
|
123
|
+
const el = await litFixture(
|
|
124
|
+
html`
|
|
22
125
|
<sp-search multiline></sp-search>
|
|
23
|
-
`
|
|
126
|
+
`
|
|
127
|
+
);
|
|
128
|
+
await elementUpdated(el);
|
|
129
|
+
expect(el.multiline).to.be.false;
|
|
130
|
+
el.multiline = true;
|
|
131
|
+
await elementUpdated(el);
|
|
132
|
+
expect(el.multiline).to.be.false;
|
|
133
|
+
});
|
|
134
|
+
it("accepts `placeholder` and `label` properties", async () => {
|
|
135
|
+
const testString = "Search for images";
|
|
136
|
+
const el = await litFixture(
|
|
137
|
+
html`
|
|
24
138
|
<sp-search></sp-search>
|
|
25
|
-
`
|
|
139
|
+
`
|
|
140
|
+
);
|
|
141
|
+
await elementUpdated(el);
|
|
142
|
+
el.placeholder = testString;
|
|
143
|
+
el.label = testString;
|
|
144
|
+
await elementUpdated(el);
|
|
145
|
+
expect(el.focusElement.placeholder).to.equal(testString);
|
|
146
|
+
expect(el.focusElement.getAttribute("aria-label")).to.equal(testString);
|
|
147
|
+
});
|
|
148
|
+
it("can have default prevented", async () => {
|
|
149
|
+
const el = await litFixture(
|
|
150
|
+
html`
|
|
26
151
|
<sp-search
|
|
27
|
-
@submit=${
|
|
152
|
+
@submit=${(event) => {
|
|
153
|
+
event.preventDefault();
|
|
154
|
+
}}
|
|
28
155
|
></sp-search>
|
|
29
|
-
`
|
|
156
|
+
`
|
|
157
|
+
);
|
|
158
|
+
await elementUpdated(el);
|
|
159
|
+
const searchForm = el.shadowRoot ? el.shadowRoot.querySelector("form") : el.querySelector("form");
|
|
160
|
+
const submitEvent = new Event("submit", {
|
|
161
|
+
cancelable: true,
|
|
162
|
+
bubbles: false,
|
|
163
|
+
composed: false
|
|
164
|
+
});
|
|
165
|
+
searchForm.dispatchEvent(submitEvent);
|
|
166
|
+
expect(submitEvent.defaultPrevented).to.be.true;
|
|
167
|
+
});
|
|
168
|
+
});
|
|
30
169
|
//# sourceMappingURL=search.test.js.map
|
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;AAA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