@digital-realty/ix-textbox 2.1.2 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +2 -41
  2. package/dist/IxTextbox.js.map +1 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/ix-textbox-styles.js.map +1 -0
  5. package/dist/ix-textbox.js.map +1 -0
  6. package/dist/react/IxTextbox.js.map +1 -0
  7. package/dist/types/index.js.map +1 -0
  8. package/package.json +14 -7
  9. package/dist/src/IxTextbox.js.map +0 -1
  10. package/dist/src/index.js.map +0 -1
  11. package/dist/src/ix-textbox-styles.js.map +0 -1
  12. package/dist/src/ix-textbox.js.map +0 -1
  13. package/dist/src/react/IxTextbox.js.map +0 -1
  14. package/dist/src/types/index.js.map +0 -1
  15. package/dist/test/ix-textbox.test.d.ts +0 -1
  16. package/dist/test/ix-textbox.test.js +0 -23
  17. package/dist/test/ix-textbox.test.js.map +0 -1
  18. package/dist/tsconfig.tsbuildinfo +0 -1
  19. package/src/IxTextbox.ts +0 -216
  20. package/src/index.ts +0 -1
  21. package/src/ix-textbox-styles.ts +0 -59
  22. package/src/ix-textbox.ts +0 -3
  23. package/src/react/IxTextbox.ts +0 -11
  24. package/src/types/index.ts +0 -29
  25. package/test/ix-textbox.test.ts +0 -32
  26. package/tsconfig.json +0 -22
  27. package/web-dev-server.config.mjs +0 -27
  28. package/web-test-runner.config.mjs +0 -43
  29. /package/dist/{src/IxTextbox.d.ts → IxTextbox.d.ts} +0 -0
  30. /package/dist/{src/IxTextbox.js → IxTextbox.js} +0 -0
  31. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
  32. /package/dist/{src/index.js → index.js} +0 -0
  33. /package/dist/{src/ix-textbox-styles.d.ts → ix-textbox-styles.d.ts} +0 -0
  34. /package/dist/{src/ix-textbox-styles.js → ix-textbox-styles.js} +0 -0
  35. /package/dist/{src/ix-textbox.d.ts → ix-textbox.d.ts} +0 -0
  36. /package/dist/{src/ix-textbox.js → ix-textbox.js} +0 -0
  37. /package/dist/{src/react → react}/IxTextbox.d.ts +0 -0
  38. /package/dist/{src/react → react}/IxTextbox.js +0 -0
  39. /package/dist/{src/types → types}/index.d.ts +0 -0
  40. /package/dist/{src/types → types}/index.js +0 -0
package/README.md CHANGED
@@ -24,45 +24,6 @@ npm i @digital-realty/ix-textbox
24
24
  </script>
25
25
  ```
26
26
 
27
- ## Linting and formatting
27
+ ## Demo and Documentation
28
28
 
29
- To scan the project for linting and formatting errors, run
30
-
31
- ```bash
32
- npm run lint
33
- ```
34
-
35
- To automatically fix linting and formatting errors, run
36
-
37
- ```bash
38
- npm run format
39
- ```
40
-
41
- ## Testing with Web Test Runner
42
-
43
- To execute a single test run:
44
-
45
- ```bash
46
- npm run test
47
- ```
48
-
49
- To run the tests in interactive watch mode run:
50
-
51
- ```bash
52
- npm run test:watch
53
- ```
54
-
55
-
56
- ## Tooling configs
57
-
58
- For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
59
-
60
- If you customize the configuration a lot, you can consider moving them to individual files.
61
-
62
- ## Local Demo with `web-dev-server`
63
-
64
- ```bash
65
- npm start
66
- ```
67
-
68
- To run a local development server that serves the basic demo located in `demo/index.html`
29
+ Full documentation and demo are available at [DLR Component Gallery](https://inxn-p1-uicomponentgallery.azurewebsites.net/?path=/story/inxn-ix-textbox--default).
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IxTextbox.js","sourceRoot":"","sources":["../src/IxTextbox.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,8CAA8C,CAAC;AACtD,OAAO,gDAAgD,CAAC;AAOxD,MAAM,OAAO,SAAU,SAAQ,UAAU;IAAzC;;QAC+B,aAAQ,GAAG,IAAI,CAAC;QAG7C,SAAI,GAA6C,MA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;AAQO;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAgB;AAO/B;IAAX,QAAQ,EAAE;sCAAU;AAQO;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAgB;AAQ/B;IAAX,QAAQ,EAAE;0CAAc;AAEI;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAAkB;AAQF;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CAAkB;AAErC;IAAvB,KAAK,CAAC,eAAe,CAAC;8CAAgC","sourcesContent":["import { html, LitElement } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport '@material/web/textfield/filled-text-field.js';\nimport '@material/web/textfield/outlined-text-field.js';\nimport {\n TextFieldType,\n UnsupportedTextFieldType,\n TextChangeEvent,\n} from './types/index.js';\n\nexport class IxTextbox extends LitElement {\n @property({ type: Boolean }) outlined = true;\n\n @property({ reflect: true })\n type: TextFieldType | UnsupportedTextFieldType = 'text';\n\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * Gets or sets whether or not the text field is in a visually invalid state.\n *\n * Calling `reportValidity()` will automatically update `error`.\n */\n @property({ type: Boolean, reflect: true }) error = false;\n\n /**\n * The error message that replaces supporting text when `error` is true. If\n * `errorText` is an empty string, then the supporting text will continue to\n * show.\n *\n * Calling `reportValidity()` will automatically update `errorText` to the\n * native `validationMessage`.\n */\n @property({ attribute: 'error-text' }) errorText = '';\n\n @property() label = '';\n\n @property({ type: Boolean, reflect: true }) required = false;\n\n /**\n * The current value of the text field. It is always a string.\n */\n @property() value = '';\n\n /**\n * An optional prefix to display before the input value.\n */\n @property({ attribute: 'prefix-text' }) prefixText = '';\n\n /**\n * An optional suffix to display after the input value.\n */\n @property({ attribute: 'suffix-text' }) suffixText = '';\n\n /**\n * Whether or not the text field has a leading icon. Used for SSR.\n */\n @property({ type: Boolean, attribute: 'has-leading-icon' })\n hasLeadingIcon = false;\n\n /**\n * Whether or not the text field has a trailing icon. Used for SSR.\n */\n @property({ type: Boolean, attribute: 'has-trailing-icon' })\n hasTrailingIcon = false;\n\n /**\n * Conveys additional information below the text field, such as how it should\n * be used.\n */\n @property({ attribute: 'supporting-text' }) supportingText = '';\n\n /**\n * Override the input text CSS `direction`. Useful for RTL languages that use\n * LTR notation for fractions.\n */\n @property({ attribute: 'text-direction' }) textDirection = '';\n\n /**\n * The number of rows to display for a `type=\"textarea\"` text field.\n * Defaults to 2.\n */\n @property({ type: Number }) rows = 2;\n\n // <input> properties\n /**\n * Defines the greatest value in the range of permitted values.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max\n */\n @property() max = '';\n\n /**\n * The maximum number of characters a user can enter into the text field. Set\n * to -1 for none.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength\n */\n @property({ type: Number }) maxLength = -1;\n\n /**\n * Defines the most negative value in the range of permitted values.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min\n */\n @property() min = '';\n\n /**\n * The minimum number of characters a user can enter into the text field. Set\n * to -1 for none.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength\n */\n @property({ type: Number }) minLength = -1;\n\n /**\n * A regular expression that the text field's value must match to pass\n * constraint validation.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern\n */\n @property() pattern = '';\n\n @property({ reflect: true }) placeholder = '';\n\n /**\n * Indicates whether or not a user should be able to edit the text field's\n * value.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly\n */\n @property({ type: Boolean, reflect: true }) readOnly = false;\n\n @query('#md-textfield') mdTextfield!: HTMLInputElement;\n\n handleChange(e: Event) {\n const inputElement = e.target as HTMLInputElement;\n const textChangeEvent = new CustomEvent('textChange', {\n detail: {\n value: inputElement.value,\n },\n composed: true,\n } as TextChangeEvent);\n\n this.dispatchEvent(textChangeEvent);\n }\n\n getValidityStatus() {\n return this.mdTextfield?.reportValidity();\n }\n\n render() {\n let comp;\n if (this.outlined) {\n comp = html`\n <md-outlined-text-field\n id=\"md-textfield\"\n ?disabled=\"${this.disabled}\"\n ?required=\"${this.required}\"\n ?error=\"${this.error}\"\n error-text=\"${this.errorText}\"\n label=\"${this.label}\"\n value=\"${this.value}\"\n placeholder=\"${this.placeholder}\"\n ?readOnly=\"${this.readOnly}\"\n text-direction=\"${this.textDirection}\"\n rows=\"${this.rows}\"\n max=\"${this.max}\"\n maxLength=\"${this.maxLength}\"\n min=\"${this.min}\"\n minLength=\"${this.minLength}\"\n pattern=\"${this.pattern}\"\n prefix-text=\"${this.prefixText}\"\n suffix-text=\"${this.suffixText}\"\n supporting-text=\"${this.supportingText}\"\n type=\"${this.type}\"\n @input=\"${this.handleChange}\"\n >\n </md-outlined-text-field>\n `;\n } else {\n comp = html`\n <md-filled-text-field\n id=\"md-textfield\"\n ?disabled=\"${this.disabled}\"\n ?required=\"${this.required}\"\n ?error=\"${this.error}\"\n error-text=\"${this.errorText}\"\n label=\"${this.label}\"\n value=\"${this.value}\"\n placeholder=\"${this.placeholder}\"\n ?readOnly=\"${this.readOnly}\"\n text-direction=\"${this.textDirection}\"\n rows=\"${this.rows}\"\n max=\"${this.max}\"\n maxLength=\"${this.maxLength}\"\n min=\"${this.min}\"\n minLength=\"${this.minLength}\"\n pattern=\"${this.pattern}\"\n prefix-text=\"${this.prefixText}\"\n suffix-text=\"${this.suffixText}\"\n supporting-text=\"${this.supportingText}\"\n type=\"${this.type}\"\n @input=\"${this.handleChange}\"\n >\n </md-filled-text-field>\n `;\n }\n return html` ${comp} `;\n }\n}\ndeclare global {\n interface HTMLElementTagNameMap {\n 'ix-textbox': IxTextbox;\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC","sourcesContent":["export { IxTextbox } from './IxTextbox.js';\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ix-textbox-styles.js","sourceRoot":"","sources":["../src/ix-textbox-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDjC,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const IxTextboxStyles = css`\n :host {\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n input {\n display: block;\n width: 100%;\n padding: 0.5em;\n font-size: 1rem;\n line-height: 1.25rem;\n border: 1px solid lightgrey;\n background-repeat: no-repeat;\n background-position: calc(100% - 0.5em) 50%;\n border-radius: 3px;\n box-sizing: border-box;\n }\n\n input:focus {\n outline: none;\n box-shadow: 0 0 2px 1px rgba(0, 153, 204, 0.39),\n 0 0 4px 3px rgba(0, 153, 204, 0.18), 0 0 8px 4px rgba(0, 153, 204, 0.1);\n }\n\n input:required.-is-valid {\n border-color: #99ca3c;\n background-image: url(\"data:image/svg+xml,%3Csvg width='19px' height='13px' viewBox='0 0 19 13' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3Cpolygon fill='%2399CA3C' points='6.70967742 13 0 6.29032258 2.09677419 4.19354839 6.70967742 8.80645161 16.3548387 0 18.4516129 2.09677419'%3E%3C/polygon%3E %3C/svg%3E\");\n padding-right: 2em;\n }\n\n input:required.-is-invalid {\n border-color: #e3097c;\n background-image: url(\"data:image/svg+xml,%3Csvg width='15px' height='15px' viewBox='0 0 15 15' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3Cpolygon id='Path' fill='%23E3097C' points='12.759145 0.0312229203 14.8804653 2.15254326 9.57716447 7.45584412 14.8804653 12.759145 12.759145 14.8804653 7.45584412 9.57716447 2.15254326 14.8804653 0.0312229203 12.759145 5.33452378 7.45584412 0.0312229203 2.15254326 2.15254326 0.0312229203 7.45584412 5.33452378'%3E%3C/polygon%3E %3C/svg%3E\");\n padding-right: 2em;\n }\n\n input[type='search'] {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Cpath id='Path_46' data-name='Path 46' d='M17.835-27.347l5.506,5.506a2.249,2.249,0,0,1,0,3.182,2.249,2.249,0,0,1-3.182,0h0l-5.506-5.506a10.6,10.6,0,0,0,3.182-3.182ZM9-42a9,9,0,0,1,9,9,9,9,0,0,1-9,9,9,9,0,0,1-9-9A9,9,0,0,1,9-42Zm0,2.25A6.757,6.757,0,0,0,2.25-33,6.757,6.757,0,0,0,9-26.25,6.757,6.757,0,0,0,15.75-33,6.758,6.758,0,0,0,9-39.75Zm0,1.5v1.5A3.754,3.754,0,0,0,5.25-33H3.75A5.256,5.256,0,0,1,9-38.25Z' transform='translate(0 42)' fill='%23d8d8d8' clip-rule='evenodd'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='icon_search' data-name='icon search' clip-path='url(%23clip-path)'%3E%3Cpath id='Path_45' data-name='Path 45' d='M-1-43H24.363v25.363H-1Z' transform='translate(0.429 42.429)' fill='%23d8d8d8'/%3E%3C/g%3E%3C/svg%3E%0A\");\n background-position: 0.5em 50%;\n padding-left: 2.25rem;\n }\n\n input:disabled {\n border-width: 0 0 1px;\n color: #595959;\n border-color: lightgrey;\n }\n\n input:not([type='search']):disabled {\n background-image: none;\n padding-left: 0;\n }\n`;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ix-textbox.js","sourceRoot":"","sources":["../src/ix-textbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC","sourcesContent":["import { IxTextbox } from './IxTextbox.js';\n\nwindow.customElements.define('ix-textbox', IxTextbox);\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IxTextbox.js","sourceRoot":"","sources":["../../src/react/IxTextbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC;IACvC,OAAO,EAAE,YAAY;IACrB,YAAY,EAAE,OAAO;IACrB,KAAK,EAAE,KAAK;CACb,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport { IxTextbox as LitComp } from '../IxTextbox.js';\n\nwindow.customElements.define('ix-textbox', LitComp);\n\nexport const IxTextbox = createComponent({\n tagName: 'ix-textbox',\n elementClass: LitComp,\n react: React,\n});\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Input types that are compatible with the text field.\n */\nexport type TextFieldType =\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'url'\n | 'textarea';\n\n/**\n * Input types that are not fully supported for the text field.\n */\nexport type UnsupportedTextFieldType =\n | 'color'\n | 'date'\n | 'datetime-local'\n | 'file'\n | 'month'\n | 'time'\n | 'week';\n\n/**\n * The event that is fired when the text field's value changes.\n */\nexport type TextChangeEvent = CustomEvent<{ value: string }>;\n"]}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@digital-realty/ix-textbox",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Webcomponent ix-textbox following open-wc recommendations",
5
5
  "license": "MIT",
6
6
  "author": "Digital Realty",
7
7
  "type": "module",
8
- "main": "dist/src/index.js",
9
- "module": "dist/src/index.js",
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.js",
10
10
  "exports": {
11
- ".": "./dist/src/index.js",
12
- "./ix-textbox.js": "./dist/src/ix-textbox.js",
13
- "./IxTextbox": "./dist/src/react/IxTextbox.js"
11
+ ".": "./dist/index.js",
12
+ "./ix-textbox.js": "./dist/ix-textbox.js",
13
+ "./IxTextbox": "./dist/react/IxTextbox.js"
14
14
  },
15
15
  "publishConfig": {
16
16
  "access": "public"
@@ -91,5 +91,12 @@
91
91
  "prettier --write"
92
92
  ]
93
93
  },
94
- "gitHead": "1e8e36ae0147d1fb0037ba85c727e3a30daebbc9"
94
+ "files": [
95
+ "/dist",
96
+ "!/dist/test",
97
+ "package.json",
98
+ "README.md",
99
+ "LICENSE"
100
+ ],
101
+ "gitHead": "f487170ac27de967505c921dabf983d2a122e625"
95
102
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"IxTextbox.js","sourceRoot":"","sources":["../../src/IxTextbox.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,8CAA8C,CAAC;AACtD,OAAO,gDAAgD,CAAC;AAOxD,MAAM,OAAO,SAAU,SAAQ,UAAU;IAAzC;;QAC+B,aAAQ,GAAG,IAAI,CAAC;QAG7C,SAAI,GAA6C,MAAM,CAAC;QAEZ,aAAQ,GAAG,KAAK,CAAC;QAE7D;;;;WAIG;QACyC,UAAK,GAAG,KAAK,CAAC;QAE1D;;;;;;;WAOG;QACoC,cA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,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAgB;AAQ/B;IAAX,QAAQ,EAAE;0CAAc;AAEI;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAAkB;AAQF;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CAAkB;AAErC;IAAvB,KAAK,CAAC,eAAe,CAAC;8CAAgC","sourcesContent":["import { html, LitElement } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport '@material/web/textfield/filled-text-field.js';\nimport '@material/web/textfield/outlined-text-field.js';\nimport {\n TextFieldType,\n UnsupportedTextFieldType,\n TextChangeEvent,\n} from './types/index.js';\n\nexport class IxTextbox extends LitElement {\n @property({ type: Boolean }) outlined = true;\n\n @property({ reflect: true })\n type: TextFieldType | UnsupportedTextFieldType = 'text';\n\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * Gets or sets whether or not the text field is in a visually invalid state.\n *\n * Calling `reportValidity()` will automatically update `error`.\n */\n @property({ type: Boolean, reflect: true }) error = false;\n\n /**\n * The error message that replaces supporting text when `error` is true. If\n * `errorText` is an empty string, then the supporting text will continue to\n * show.\n *\n * Calling `reportValidity()` will automatically update `errorText` to the\n * native `validationMessage`.\n */\n @property({ attribute: 'error-text' }) errorText = '';\n\n @property() label = '';\n\n @property({ type: Boolean, reflect: true }) required = false;\n\n /**\n * The current value of the text field. It is always a string.\n */\n @property() value = '';\n\n /**\n * An optional prefix to display before the input value.\n */\n @property({ attribute: 'prefix-text' }) prefixText = '';\n\n /**\n * An optional suffix to display after the input value.\n */\n @property({ attribute: 'suffix-text' }) suffixText = '';\n\n /**\n * Whether or not the text field has a leading icon. Used for SSR.\n */\n @property({ type: Boolean, attribute: 'has-leading-icon' })\n hasLeadingIcon = false;\n\n /**\n * Whether or not the text field has a trailing icon. Used for SSR.\n */\n @property({ type: Boolean, attribute: 'has-trailing-icon' })\n hasTrailingIcon = false;\n\n /**\n * Conveys additional information below the text field, such as how it should\n * be used.\n */\n @property({ attribute: 'supporting-text' }) supportingText = '';\n\n /**\n * Override the input text CSS `direction`. Useful for RTL languages that use\n * LTR notation for fractions.\n */\n @property({ attribute: 'text-direction' }) textDirection = '';\n\n /**\n * The number of rows to display for a `type=\"textarea\"` text field.\n * Defaults to 2.\n */\n @property({ type: Number }) rows = 2;\n\n // <input> properties\n /**\n * Defines the greatest value in the range of permitted values.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max\n */\n @property() max = '';\n\n /**\n * The maximum number of characters a user can enter into the text field. Set\n * to -1 for none.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength\n */\n @property({ type: Number }) maxLength = -1;\n\n /**\n * Defines the most negative value in the range of permitted values.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min\n */\n @property() min = '';\n\n /**\n * The minimum number of characters a user can enter into the text field. Set\n * to -1 for none.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength\n */\n @property({ type: Number }) minLength = -1;\n\n /**\n * A regular expression that the text field's value must match to pass\n * constraint validation.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern\n */\n @property() pattern = '';\n\n @property({ reflect: true }) placeholder = '';\n\n /**\n * Indicates whether or not a user should be able to edit the text field's\n * value.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly\n */\n @property({ type: Boolean, reflect: true }) readOnly = false;\n\n @query('#md-textfield') mdTextfield!: HTMLInputElement;\n\n handleChange(e: Event) {\n const inputElement = e.target as HTMLInputElement;\n const textChangeEvent = new CustomEvent('textChange', {\n detail: {\n value: inputElement.value,\n },\n composed: true,\n } as TextChangeEvent);\n\n this.dispatchEvent(textChangeEvent);\n }\n\n getValidityStatus() {\n return this.mdTextfield?.reportValidity();\n }\n\n render() {\n let comp;\n if (this.outlined) {\n comp = html`\n <md-outlined-text-field\n id=\"md-textfield\"\n ?disabled=\"${this.disabled}\"\n ?required=\"${this.required}\"\n ?error=\"${this.error}\"\n error-text=\"${this.errorText}\"\n label=\"${this.label}\"\n value=\"${this.value}\"\n placeholder=\"${this.placeholder}\"\n ?readOnly=\"${this.readOnly}\"\n text-direction=\"${this.textDirection}\"\n rows=\"${this.rows}\"\n max=\"${this.max}\"\n maxLength=\"${this.maxLength}\"\n min=\"${this.min}\"\n minLength=\"${this.minLength}\"\n pattern=\"${this.pattern}\"\n prefix-text=\"${this.prefixText}\"\n suffix-text=\"${this.suffixText}\"\n supporting-text=\"${this.supportingText}\"\n type=\"${this.type}\"\n @input=\"${this.handleChange}\"\n >\n </md-outlined-text-field>\n `;\n } else {\n comp = html`\n <md-filled-text-field\n id=\"md-textfield\"\n ?disabled=\"${this.disabled}\"\n ?required=\"${this.required}\"\n ?error=\"${this.error}\"\n error-text=\"${this.errorText}\"\n label=\"${this.label}\"\n value=\"${this.value}\"\n placeholder=\"${this.placeholder}\"\n ?readOnly=\"${this.readOnly}\"\n text-direction=\"${this.textDirection}\"\n rows=\"${this.rows}\"\n max=\"${this.max}\"\n maxLength=\"${this.maxLength}\"\n min=\"${this.min}\"\n minLength=\"${this.minLength}\"\n pattern=\"${this.pattern}\"\n prefix-text=\"${this.prefixText}\"\n suffix-text=\"${this.suffixText}\"\n supporting-text=\"${this.supportingText}\"\n type=\"${this.type}\"\n @input=\"${this.handleChange}\"\n >\n </md-filled-text-field>\n `;\n }\n return html` ${comp} `;\n }\n}\ndeclare global {\n interface HTMLElementTagNameMap {\n 'ix-textbox': IxTextbox;\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC","sourcesContent":["export { IxTextbox } from './IxTextbox.js';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ix-textbox-styles.js","sourceRoot":"","sources":["../../src/ix-textbox-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDjC,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const IxTextboxStyles = css`\n :host {\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n input {\n display: block;\n width: 100%;\n padding: 0.5em;\n font-size: 1rem;\n line-height: 1.25rem;\n border: 1px solid lightgrey;\n background-repeat: no-repeat;\n background-position: calc(100% - 0.5em) 50%;\n border-radius: 3px;\n box-sizing: border-box;\n }\n\n input:focus {\n outline: none;\n box-shadow: 0 0 2px 1px rgba(0, 153, 204, 0.39),\n 0 0 4px 3px rgba(0, 153, 204, 0.18), 0 0 8px 4px rgba(0, 153, 204, 0.1);\n }\n\n input:required.-is-valid {\n border-color: #99ca3c;\n background-image: url(\"data:image/svg+xml,%3Csvg width='19px' height='13px' viewBox='0 0 19 13' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3Cpolygon fill='%2399CA3C' points='6.70967742 13 0 6.29032258 2.09677419 4.19354839 6.70967742 8.80645161 16.3548387 0 18.4516129 2.09677419'%3E%3C/polygon%3E %3C/svg%3E\");\n padding-right: 2em;\n }\n\n input:required.-is-invalid {\n border-color: #e3097c;\n background-image: url(\"data:image/svg+xml,%3Csvg width='15px' height='15px' viewBox='0 0 15 15' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3Cpolygon id='Path' fill='%23E3097C' points='12.759145 0.0312229203 14.8804653 2.15254326 9.57716447 7.45584412 14.8804653 12.759145 12.759145 14.8804653 7.45584412 9.57716447 2.15254326 14.8804653 0.0312229203 12.759145 5.33452378 7.45584412 0.0312229203 2.15254326 2.15254326 0.0312229203 7.45584412 5.33452378'%3E%3C/polygon%3E %3C/svg%3E\");\n padding-right: 2em;\n }\n\n input[type='search'] {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Cpath id='Path_46' data-name='Path 46' d='M17.835-27.347l5.506,5.506a2.249,2.249,0,0,1,0,3.182,2.249,2.249,0,0,1-3.182,0h0l-5.506-5.506a10.6,10.6,0,0,0,3.182-3.182ZM9-42a9,9,0,0,1,9,9,9,9,0,0,1-9,9,9,9,0,0,1-9-9A9,9,0,0,1,9-42Zm0,2.25A6.757,6.757,0,0,0,2.25-33,6.757,6.757,0,0,0,9-26.25,6.757,6.757,0,0,0,15.75-33,6.758,6.758,0,0,0,9-39.75Zm0,1.5v1.5A3.754,3.754,0,0,0,5.25-33H3.75A5.256,5.256,0,0,1,9-38.25Z' transform='translate(0 42)' fill='%23d8d8d8' clip-rule='evenodd'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='icon_search' data-name='icon search' clip-path='url(%23clip-path)'%3E%3Cpath id='Path_45' data-name='Path 45' d='M-1-43H24.363v25.363H-1Z' transform='translate(0.429 42.429)' fill='%23d8d8d8'/%3E%3C/g%3E%3C/svg%3E%0A\");\n background-position: 0.5em 50%;\n padding-left: 2.25rem;\n }\n\n input:disabled {\n border-width: 0 0 1px;\n color: #595959;\n border-color: lightgrey;\n }\n\n input:not([type='search']):disabled {\n background-image: none;\n padding-left: 0;\n }\n`;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ix-textbox.js","sourceRoot":"","sources":["../../src/ix-textbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC","sourcesContent":["import { IxTextbox } from './IxTextbox.js';\n\nwindow.customElements.define('ix-textbox', IxTextbox);\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IxTextbox.js","sourceRoot":"","sources":["../../../src/react/IxTextbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC;IACvC,OAAO,EAAE,YAAY;IACrB,YAAY,EAAE,OAAO;IACrB,KAAK,EAAE,KAAK;CACb,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport { IxTextbox as LitComp } from '../IxTextbox.js';\n\nwindow.customElements.define('ix-textbox', LitComp);\n\nexport const IxTextbox = createComponent({\n tagName: 'ix-textbox',\n elementClass: LitComp,\n react: React,\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Input types that are compatible with the text field.\n */\nexport type TextFieldType =\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'url'\n | 'textarea';\n\n/**\n * Input types that are not fully supported for the text field.\n */\nexport type UnsupportedTextFieldType =\n | 'color'\n | 'date'\n | 'datetime-local'\n | 'file'\n | 'month'\n | 'time'\n | 'week';\n\n/**\n * The event that is fired when the text field's value changes.\n */\nexport type TextChangeEvent = CustomEvent<{ value: string }>;\n"]}
@@ -1 +0,0 @@
1
- import '../src/ix-textbox.js';
@@ -1,23 +0,0 @@
1
- import { html } from 'lit';
2
- import { fixture, expect } from '@open-wc/testing';
3
- import '../src/ix-textbox.js';
4
- describe('IxTextbox', () => {
5
- it('should show the outlined text field by default', async () => {
6
- var _a, _b;
7
- const el = await fixture(html `<ix-textbox></ix-textbox>`);
8
- console.log(el.innerHTML);
9
- const outlinedTextField = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('md-outlined-text-field');
10
- const filledTextField = (_b = el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('md-filled-text-field');
11
- expect(outlinedTextField).to.not.be.null;
12
- expect(filledTextField).to.be.null;
13
- });
14
- it('should show the filled text field when outlined is false', async () => {
15
- var _a, _b;
16
- const el = await fixture(html `<ix-textbox .outlined=${false}></ix-textbox>`);
17
- const outlinedTextField = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('md-outlined-text-field');
18
- const filledTextField = (_b = el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('md-filled-text-field');
19
- expect(outlinedTextField).to.be.null;
20
- expect(filledTextField).to.not.be.null;
21
- });
22
- });
23
- //# sourceMappingURL=ix-textbox.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ix-textbox.test.js","sourceRoot":"","sources":["../../test/ix-textbox.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,sBAAsB,CAAC;AAE9B,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,gDAAgD,EAAE,KAAK,IAAI,EAAE;;QAC9D,MAAM,EAAE,GAAG,MAAM,OAAO,CAAY,IAAI,CAAA,2BAA2B,CAAC,CAAC;QACrE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;QAC1B,MAAM,iBAAiB,GAAG,MAAA,EAAE,CAAC,UAAU,0CAAE,aAAa,CACpD,wBAAwB,CACzB,CAAC;QACF,MAAM,eAAe,GAAG,MAAA,EAAE,CAAC,UAAU,0CAAE,aAAa,CAClD,sBAAsB,CACvB,CAAC;QACF,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC;QACzC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACrC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,0DAA0D,EAAE,KAAK,IAAI,EAAE;;QACxE,MAAM,EAAE,GAAG,MAAM,OAAO,CACtB,IAAI,CAAA,yBAAyB,KAAK,gBAAgB,CACnD,CAAC;QACF,MAAM,iBAAiB,GAAG,MAAA,EAAE,CAAC,UAAU,0CAAE,aAAa,CACpD,wBAAwB,CACzB,CAAC;QACF,MAAM,eAAe,GAAG,MAAA,EAAE,CAAC,UAAU,0CAAE,aAAa,CAClD,sBAAsB,CACvB,CAAC;QACF,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACrC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { html } from 'lit';\nimport { fixture, expect } from '@open-wc/testing';\nimport { IxTextbox } from '../src/IxTextbox.js';\nimport '../src/ix-textbox.js';\n\ndescribe('IxTextbox', () => {\n it('should show the outlined text field by default', async () => {\n const el = await fixture<IxTextbox>(html`<ix-textbox></ix-textbox>`);\n console.log(el.innerHTML);\n const outlinedTextField = el.shadowRoot?.querySelector(\n 'md-outlined-text-field'\n );\n const filledTextField = el.shadowRoot?.querySelector(\n 'md-filled-text-field'\n );\n expect(outlinedTextField).to.not.be.null;\n expect(filledTextField).to.be.null;\n });\n it('should show the filled text field when outlined is false', async () => {\n const el = await fixture<IxTextbox>(\n html`<ix-textbox .outlined=${false}></ix-textbox>`\n );\n const outlinedTextField = el.shadowRoot?.querySelector(\n 'md-outlined-text-field'\n );\n const filledTextField = el.shadowRoot?.querySelector(\n 'md-filled-text-field'\n );\n expect(outlinedTextField).to.be.null;\n expect(filledTextField).to.not.be.null;\n });\n});\n"]}
@@ -1 +0,0 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/@lit/reactive-element/css-tag.d.ts","../../../node_modules/@lit/reactive-element/reactive-controller.d.ts","../../../node_modules/@lit/reactive-element/reactive-element.d.ts","../../../node_modules/@types/trusted-types/lib/index.d.ts","../../../node_modules/@types/trusted-types/index.d.ts","../../../node_modules/lit-html/directive.d.ts","../../../node_modules/lit-html/lit-html.d.ts","../../../node_modules/lit-element/lit-element.d.ts","../../../node_modules/lit-html/is-server.d.ts","../../../node_modules/lit/index.d.ts","../../../node_modules/@lit/reactive-element/decorators/base.d.ts","../../../node_modules/@lit/reactive-element/decorators/custom-element.d.ts","../../../node_modules/@lit/reactive-element/decorators/property.d.ts","../../../node_modules/@lit/reactive-element/decorators/state.d.ts","../../../node_modules/@lit/reactive-element/decorators/event-options.d.ts","../../../node_modules/@lit/reactive-element/decorators/query.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-all.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-async.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts","../../../node_modules/lit/decorators.d.ts","../../../node_modules/@material/web/field/internal/field.d.ts","../../../node_modules/@material/web/field/internal/filled-field.d.ts","../../../node_modules/@material/web/field/filled-field.d.ts","../../../node_modules/lit-html/static.d.ts","../../../node_modules/lit/static-html.d.ts","../../../node_modules/@material/web/textfield/internal/text-field.d.ts","../../../node_modules/@material/web/textfield/internal/filled-text-field.d.ts","../../../node_modules/@material/web/textfield/filled-text-field.d.ts","../../../node_modules/@material/web/field/internal/outlined-field.d.ts","../../../node_modules/@material/web/field/outlined-field.d.ts","../../../node_modules/@material/web/textfield/internal/outlined-text-field.d.ts","../../../node_modules/@material/web/textfield/outlined-text-field.d.ts","../src/types/index.ts","../src/ixtextbox.ts","../src/index.ts","../src/ix-textbox-styles.ts","../src/ix-textbox.ts","../../../node_modules/@types/react/ts5.0/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/scheduler/tracing.d.ts","../../../node_modules/@types/react/ts5.0/index.d.ts","../../../node_modules/@lit-labs/react/create-component.d.ts","../../../node_modules/@lit-labs/react/index.d.ts","../src/react/ixtextbox.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@open-wc/semantic-dom-diff/get-diffable-html.d.ts","../../../node_modules/@open-wc/semantic-dom-diff/chai-dom-diff-plugin.d.ts","../../../node_modules/@open-wc/semantic-dom-diff/chai-dom-diff.d.ts","../../../node_modules/@open-wc/semantic-dom-diff/index.d.ts","../../../node_modules/chai-a11y-axe/chai-a11y-axe-plugin.d.ts","../../../node_modules/chai-a11y-axe/src/accessible.d.ts","../../../node_modules/chai-a11y-axe/index.d.ts","../../../node_modules/@types/chai-dom/index.d.ts","../../../node_modules/@types/sinonjs__fake-timers/index.d.ts","../../../node_modules/@types/sinon/index.d.ts","../../../node_modules/@types/sinon-chai/index.d.ts","../../../node_modules/@open-wc/testing/register-chai-plugins.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/elementupdated.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/renderable.d.ts","../../../node_modules/@open-wc/dedupe-mixin/index.d.ts","../../../node_modules/@open-wc/scoped-elements/types/src/types.d.ts","../../../node_modules/@open-wc/scoped-elements/types/src/scopedelementsmixin.d.ts","../../../node_modules/@open-wc/scoped-elements/types/index.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/fixture-no-side-effect.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/fixture.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/fixturewrapper.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/helpers.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/scopedelementswrapper.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/litfixture.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/stringfixture.d.ts","../../../node_modules/@open-wc/testing-helpers/types/index.d.ts","../../../node_modules/@open-wc/testing/index.d.ts","../test/ix-textbox.test.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/accepts/index.d.ts","../../../node_modules/@types/babel__code-frame/index.d.ts","../../../node_modules/@types/connect/index.d.ts","../../../node_modules/@types/body-parser/index.d.ts","../../../node_modules/@types/qs/index.d.ts","../../../node_modules/@types/co-body/index.d.ts","../../../node_modules/@types/command-line-args/index.d.ts","../../../node_modules/@types/content-disposition/index.d.ts","../../../node_modules/@types/convert-source-map/index.d.ts","../../../node_modules/@types/mime/index.d.ts","../../../node_modules/@types/send/index.d.ts","../../../node_modules/@types/range-parser/index.d.ts","../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../node_modules/@types/http-errors/index.d.ts","../../../node_modules/@types/serve-static/index.d.ts","../../../node_modules/@types/express/index.d.ts","../../../node_modules/@types/keygrip/index.d.ts","../../../node_modules/@types/cookies/index.d.ts","../../../node_modules/@types/debounce/index.d.ts","../../../node_modules/@types/estree/index.d.ts","../../../node_modules/@types/unist/index.d.ts","../../../node_modules/@types/hast/index.d.ts","../../../node_modules/@types/http-assert/index.d.ts","../../../node_modules/@types/intl-tel-input/index.d.ts","../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../node_modules/@types/istanbul-reports/index.d.ts","../../../node_modules/@types/jquery/jquerystatic.d.ts","../../../node_modules/@types/jquery/jquery.d.ts","../../../node_modules/@types/jquery/misc.d.ts","../../../node_modules/@types/jquery/legacy.d.ts","../../../node_modules/@types/sizzle/index.d.ts","../../../node_modules/@types/jquery/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/json5/index.d.ts","../../../node_modules/@types/koa-compose/index.d.ts","../../../node_modules/@types/koa/index.d.ts","../../../node_modules/@types/lodash/common/common.d.ts","../../../node_modules/@types/lodash/common/array.d.ts","../../../node_modules/@types/lodash/common/collection.d.ts","../../../node_modules/@types/lodash/common/date.d.ts","../../../node_modules/@types/lodash/common/function.d.ts","../../../node_modules/@types/lodash/common/lang.d.ts","../../../node_modules/@types/lodash/common/math.d.ts","../../../node_modules/@types/lodash/common/number.d.ts","../../../node_modules/@types/lodash/common/object.d.ts","../../../node_modules/@types/lodash/common/seq.d.ts","../../../node_modules/@types/lodash/common/string.d.ts","../../../node_modules/@types/lodash/common/util.d.ts","../../../node_modules/@types/lodash/index.d.ts","../../../node_modules/@types/mdast/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/minimist/index.d.ts","../../../node_modules/@types/mocha/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/parse-json/index.d.ts","../../../node_modules/@types/parse5/lib/tree-adapters/default.d.ts","../../../node_modules/@types/parse5/index.d.ts","../../../node_modules/@types/prismjs/index.d.ts","../../../node_modules/@types/resolve/index.d.ts","../../../node_modules/@types/scheduler/index.d.ts","../../../node_modules/@types/semver/classes/semver.d.ts","../../../node_modules/@types/semver/functions/parse.d.ts","../../../node_modules/@types/semver/functions/valid.d.ts","../../../node_modules/@types/semver/functions/clean.d.ts","../../../node_modules/@types/semver/functions/inc.d.ts","../../../node_modules/@types/semver/functions/diff.d.ts","../../../node_modules/@types/semver/functions/major.d.ts","../../../node_modules/@types/semver/functions/minor.d.ts","../../../node_modules/@types/semver/functions/patch.d.ts","../../../node_modules/@types/semver/functions/prerelease.d.ts","../../../node_modules/@types/semver/functions/compare.d.ts","../../../node_modules/@types/semver/functions/rcompare.d.ts","../../../node_modules/@types/semver/functions/compare-loose.d.ts","../../../node_modules/@types/semver/functions/compare-build.d.ts","../../../node_modules/@types/semver/functions/sort.d.ts","../../../node_modules/@types/semver/functions/rsort.d.ts","../../../node_modules/@types/semver/functions/gt.d.ts","../../../node_modules/@types/semver/functions/lt.d.ts","../../../node_modules/@types/semver/functions/eq.d.ts","../../../node_modules/@types/semver/functions/neq.d.ts","../../../node_modules/@types/semver/functions/gte.d.ts","../../../node_modules/@types/semver/functions/lte.d.ts","../../../node_modules/@types/semver/functions/cmp.d.ts","../../../node_modules/@types/semver/functions/coerce.d.ts","../../../node_modules/@types/semver/classes/comparator.d.ts","../../../node_modules/@types/semver/classes/range.d.ts","../../../node_modules/@types/semver/functions/satisfies.d.ts","../../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../../node_modules/@types/semver/ranges/min-version.d.ts","../../../node_modules/@types/semver/ranges/valid.d.ts","../../../node_modules/@types/semver/ranges/outside.d.ts","../../../node_modules/@types/semver/ranges/gtr.d.ts","../../../node_modules/@types/semver/ranges/ltr.d.ts","../../../node_modules/@types/semver/ranges/intersects.d.ts","../../../node_modules/@types/semver/ranges/simplify.d.ts","../../../node_modules/@types/semver/ranges/subset.d.ts","../../../node_modules/@types/semver/internals/identifiers.d.ts","../../../node_modules/@types/semver/index.d.ts","../../../node_modules/@types/ws/index.d.ts","../../../node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"7a1971efcba559ea9002ada4c4e3c925004fb67a755300d53b5edf9399354900","52dd370c807255c61765347fc90a9bee3c522b8744dc222714e2bf6b5be3a823","1e5743b25a63fd34ffbae89adcbf248ee17db6ed08d90079ffa93803c3e80d2a","ccf8ea81b0ac699c220b874b804ad02b8aabc5b494e1c3bda0d255ec8d08694d","15fe687c59d62741b4494d5e623d497d55eb38966ecf5bea7f36e48fc3fbe15e",{"version":"17f2b4d00e42e0cc1dfc3be692a6da5a14a6cb73b87259e6d20ff02bcd6d573f","affectsGlobalScope":true},"c567d37119d6f56381af48eb7516030ccf35a36f9aca045e238d9c207a7c536c","b448dfbb5a6c4505f6b6beab587cf41f180ad62bcb506b44e3f2c09d20ba63a9","eba7cf33380cc3a3cf614faf67300e14d0bdff9ea6c5cd6f4b040b1756a48ab1","5e7e090243bf203382a5cb04eabbdc38d78f6d5922f16f543e4da8fa007d5ff9","cd823094ded7c8ac4f94ab6dc387dab699293eb8323d9f948304efc07e4ae7b2","d45c02bf8b85203f35de2971eafb8f8092090d150c7805a189b3e197f53b12b6","ac388c7c7a262213a3700451bc921e382a93fb27c0252c34ccf03540b4ce044b","097a7e3badfd1c4b35f72aa0f722f5714a4f6a84e53fca5a79dcfebbfc5e718d","fb0107c83e2e0e75b77dacd0c3c6c3ab6844e98dce2a8f858c6f0a57c12136a6","ea410c8280b0ec480acb195c7dd36c1f054403f5fccee0beca85717777cf8562","628bceb593b3a5b3d73ff44a808a347ec07d6ee397104a1d88b0f9a20d8b4599","57e25505a5de058216a8f4416ca850788bfc3a412c8e90109b2ef91f75fdd615","2ba453918c1fcf1cbb2836f731534f356d5fe65ed9628811f686e8de3920ed0e","4bcb813ea56182beaaab1e8274524eb9f1449b0d8e79efc4a0399de09e43f816","cc689acd4eff461c808e01225be6a16d1787e44d451310be5dd556dd7ab08457","f0380f581cb015778c0fe51e95b5b7f6dae237280654558469b2486c1572268a","6b0222edacdd7af4489b85b9d1e0a634f13cfe56f38869847ee1407ac0a8ded6","2bc7a6e5ab7c03acb2d0d031b2a5243db929e2d46262e816091b4299b4dafc91",{"version":"a65289073f07a26a7a95ba0cc52936e764f4cb420c94fde665423108946e3764","affectsGlobalScope":true},"359f23bc7fccaec08632ee5c33eb333a5b207fc8ae17c881c7b69919aced4d58","e028c51ab6625561dc58225d834913d6aebcc5be85f3188b745410c7603479e4","f23edf4a14b6bc81ed0b22d9f0b871d479d2e5f5923d0956e4f1b8035f97c1e7","f3a56636fdb6355ad484371b7787faa5b33ef370cc1bf634239409f489844445",{"version":"4df97d1d20a674f44dbfcd06a9e1eb1cd2d85e98ebcfa3c5c071b963cdfcf561","affectsGlobalScope":true},"21e8c0358c7cfb62b870b44aeafab7ac1cb7c36f2264ae8e19f923298b872e8a",{"version":"db48ad93c775f0e2c15cf1a7676dfbe7e3af178f9f9a1bae51edf20fcebb3dd1","affectsGlobalScope":true},"32055f96b66a66d6d0343c44fbe2962ec55a1cbe348e3c9af15ac6d17ab98a6a",{"version":"73ebe8f324a383c26f72b10bd85ede8ee04411a5362e447a2ed5eabfff061faf","affectsGlobalScope":true},{"version":"983c701e85d9a55ab736aeef71086d0a81f511fb0582da08755a02d0069e020c","signature":"177b5df97ffe48a5b6681ef67a63bd166fffa57dbcc80b4780300f58c3bad3c3"},{"version":"36c3c89b0ca5fc1872ca3982ff815d37e56ff43f1af82494a2b1b25684a0c379","signature":"0c2e4743b8e0d7af0b77a440a7fe3580bbc0da04249a6bc7aa99b7043d214a84","affectsGlobalScope":true},"4336601019ee20e4899e565b43f5823a3e53debacebe4a4149c40fa62b62f469",{"version":"068504183db17bdaac7cbff78180a4d97be3fc34395b6bed30f21ace5d4b9489","signature":"956c9f7723b11f864c6d34c303046e68b96bd9d62956583d94b1fede7c94c303"},{"version":"ea89134ff849c5e036c8d751479fe910b7ec2b79dd614da86b5564339a876685","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"0bd5e7096c7bc02bf70b2cc017fc45ef489cb19bd2f32a71af39ff5787f1b56a","affectsGlobalScope":true},"4c68749a564a6facdf675416d75789ee5a557afda8960e0803cf6711fa569288","60ecad5852d4d83edae430e597405132d278a79c10499e9363aecbe1ddc0eade","5f8f00356f6a82e21493b2d57b2178f11b00cf8960df00bd37bdcae24c9333ca",{"version":"a694c85180021f7681f98dbde94b648b4e1483ad6fad4afc1d217619613f833a","affectsGlobalScope":true},"346cc70aa5304faf122846a7854b32a000d02851a69fad84862307e5bcfec93a","17a3826f371a5253a1dd7bce7a4751e005ca8702fc2dbdc8084be25e1efb38ce",{"version":"8b13c834af5a492c1464fc9afc9dcd43c3daed0a506300e4245c4940e0284e99","signature":"a34964a3b3b6feb1ba9d80c98909a0255c8dc7f4f5ef201264e50ce4dd6d8a70"},{"version":"1fb008c1a29f86a8a0e9a674b7235f23c6d2a86c9658772941fb626a60aac53b","affectsGlobalScope":true},"8a659f7d82d932649a78f89643c5b436953424a219d705d49b8b3d9ccd6e35ff",{"version":"2d412861573a672bd90fdcb1e48740593324565f3b3aaf6808c0e3e2f0d54ae8","affectsGlobalScope":true},{"version":"cd711db43a952f15464b571ac11b7a440332cd52342bc92c4bf908c70688f57f","affectsGlobalScope":true},"9d8709c916778cb34830708ed47b78e9a46d1fb2eb73a682b14eee990bed4aa6",{"version":"507e2131e89b515ce40c05c0c2fef6cc575ba8947703f92e8cdf36078747a9ff","affectsGlobalScope":true},"999a90d30a3183dcee987d0a5a7c586aba5bacbf6ce087ba8635124082ccfeea","8a5878edd52f4a720560b4c6e6247e9ddc3df6118ad9cf2f9927903b03d5f440",{"version":"31214658e22c23eb58ff8383346bf6c8d135b3eab0748f3226aa7b6f30d2021f","affectsGlobalScope":true},"cc75216f6b332971954ef74bf3d14c3881c461e82987050d5f62af3e5966e845","ee1fb501d38eaafa8099e00bd1fc7014ccc99bee616c660f605ae3559324793d",{"version":"4b93bb181cf4f25ccbf2ec1f559912c81678433a9784ce84163b5c9e1548998f","affectsGlobalScope":true},"65b91a3725399231d3469529b5e27b85bf2aa98013e607f308e5fe260b47eeff","a11181f6d68200e83ccb1fb48b262a7132a3257e0a230f41c9dc4c351964297a","51bce1535d9cb87390d75581866d79de7b2e2cb525a89fba84411c8bb5be52d2","88cda4269c54f0803834fd62b2fac61af8bff7a085693f7ca9df85c1f19dee8a",{"version":"d40075d9f1c08b4a8d8e468076f5258900e99895e7259c40f3923b7044bbed6c","affectsGlobalScope":true},"754006450e5de2b7dac5993194326e3a65c1474673f7304c20810f5eda18ca05","fdf0aa1a72ff0188a9013926201a391116ef6701cd439b89850786abdf755fb8","0b5817d9435c019648f2a2326eaf1086efb72e8e90e28eb53a58b2f31f61e161","abf9ea97b78a7b239186cf5b7ed59c4a593abac3c408c8c95fc5e604cfdfdb43","ae91c9161caf0af81c89e780a045fc5ea8382407e516342e409c5db9161d3b32","d30c69f9eb16583b0a406358224c312b865514a6a7c787a57f16ef08e49b1886","5e02756608c1ac8ddf96878c3af3d4db7ed4e272aef24837e255859ee0a4fb71","4a662115c4c7186cc027ef4a8163e48c7f1c57f05247f08d5acb2344fae2ca53","d598157512ae6e0d3aa6bb0dd261ae34845831dccf7bc7739695ee2589eb76f5","905fbc07f65451b05cb5594d162674eb3ef8f2bf5f13552a1702215664aae3e7","50f63746fc2a779d1f9c5657fd78e292045dc98b540e026799e039ea629f2943",{"version":"949a44a868869e737b155caed0c29f88cef3069c3961fff35bc0264f5f64711c","signature":"5d9f12352e11b3e7dba9922e82ea404b3d77ef5e26b7763381584b7921edc305"},"09df3b4f1c937f02e7fee2836d4c4d7a63e66db70fd4d4e97126f4542cc21d9d","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419",{"version":"32465ea19404cb188e84cf08c6b1f6b12d739140436402cdbc184a3fd20a7d81","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"62486c25ff70799e9faac5c6108820969617daeb6e65644c212d03cdb5902a3c","affectsGlobalScope":true},"546ab07e19116d935ad982e76a223275b53bff7771dab94f433b7ab04652936e","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"aefb5a4a209f756b580eb53ea771cca8aad411603926f307a5e5b8ec6b16dcf6","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","f5a8b7ec4b798c88679194a8ebc25dcb6f5368e6e5811fcda9fe12b0d445b8db","b86e1a45b29437f3a99bad4147cb9fe2357617e8008c0484568e5bb5138d6e13","b5b719a47968cd61a6f83f437236bb6fe22a39223b6620da81ef89f5d7a78fb7","42c431e7965b641106b5e25ab3283aa4865ca7bb9909610a2abfa6226e4348be","0b7e732af0a9599be28c091d6bd1cb22c856ec0d415d4749c087c3881ca07a56","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"8d6138a264ddc6f94f16e99d4e117a2d6eb31b217891cf091b6437a2f114d561","affectsGlobalScope":true},"3b4c85eea12187de9929a76792b98406e8778ce575caca8c574f06da82622c54","f788131a39c81e0c9b9e463645dd7132b5bc1beb609b0e31e5c1ceaea378b4df","0c236069ce7bded4f6774946e928e4b3601894d294054af47a553f7abcafe2c1","21894466693f64957b9bd4c80fa3ec7fdfd4efa9d1861e070aca23f10220c9b2","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","ad8848c289c0b633452e58179f46edccd14b5a0fe90ebce411f79ff040b803e0",{"version":"5d4ef3f46c7f9d62f7c964f9f9ccdd293be99fb3dcc66c983f2aea7430e3c7c6","affectsGlobalScope":true},"91f8b5abcdff8f9ecb9656b9852878718416fb7700b2c4fad8331e5b97c080bb","59d8f064f86a4a2be03b33c0efcc9e7a268ad27b22f82dce16899f3364f70ba8","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"f49fb15c4aa06b65b0dce4db4584bfd8a9f74644baef1511b404dc95be34af00","affectsGlobalScope":true},{"version":"d48009cbe8a30a504031cc82e1286f78fed33b7a42abf7602c23b5547b382563","affectsGlobalScope":true},"7aaeb5e62f90e1b2be0fc4844df78cdb1be15c22b427bc6c39d57308785b8f10","3ba30205a029ebc0c91d7b1ab4da73f6277d730ca1fc6692d5a9144c6772c76b","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","458b216959c231df388a5de9dcbcafd4b4ca563bc3784d706d0455467d7d4942","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","f8c87b19eae111f8720b0345ab301af8d81add39621b63614dfc2d15fd6f140a","831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12",{"version":"24ba151e213906027e2b1f5223d33575a3612b0234a0e2b56119520bbe0e594b","affectsGlobalScope":true},{"version":"cbf046714f3a3ba2544957e1973ac94aa819fa8aa668846fa8de47eb1c41b0b2","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","eae74e3d50820f37c72c0679fed959cd1e63c98f6a146a55b8c4361582fa6a52","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"aed89e3c18f4c659ee8153a76560dffda23e2d801e1e60d7a67abd84bc555f8d","affectsGlobalScope":true},{"version":"0ed13c80faeb2b7160bffb4926ff299c468e67a37a645b3ae0917ba0db633c1b","affectsGlobalScope":true},"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","2f940651c2f30e6b29f8743fae3f40b7b1c03615184f837132b56ea75edad08b","5749c327c3f789f658072f8340786966c8b05ea124a56c1d8d60e04649495a4d",{"version":"c9d62b2a51b2ff166314d8be84f6881a7fcbccd37612442cf1c70d27d5352f50","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"d3f4c342fb62f348f25f54b473b0ab7371828cbf637134194fa9cdf04856f87b","6738101ae8e56cd3879ab3f99630ada7d78097fc9fd334df7e766216778ca219","ef437dd282a112d1172b50ac7fd86713d475a496da7aeb31119f529f1313c8d5","82819f9ecc249a6a3e284003540d02ea1b1f56f410c23231797b9e1e4b9622df","81a109b6bb6adf5ed70f2c7e6d907b8c3adcf7b47b5ee09701c5f97370fd29b7","c7da551241b7be719b7bd654ab12a5098c3206fbb189076dd2d8871011a6ab5a","f78253406029c78c96d8923b15e89a5900836e47a2b98bee6c83dc142421d395","5ae76b5a59f2f787e9eb2d4f1a066ceb4505a52bf8fe77ac321d791ef2e72000","64fcc79ee3c237816b9cef0a9289b00bf3da5b17040cd970ac04ba03c4ac1595","49f1d42ac650932fe64a9b623c27ea6e681335ea2e7cda52a5358f4248701001","f6218314af6f492ce5461bdadac5b829f5b4b31a3d1da3d04e77ed0afe0829fb","7167d932a7e2e991084421bb22af20024ada5a046d948c742de0f89996de5d0b","e2d3bfa79f0fad3ad67dfb0685c50dbe19b364a440160a2d40d0e3f44c75938c",{"version":"1c598f8d911f0bc39f04910c8c93f2f76fbb65f892ee5ecc38a2b58bb95af752","affectsGlobalScope":true},"4eadf1158f1ae8f7b0deea0f96b391359042cf74d1eb3ce1dacdb69de96e590d","f0120fc76274f614e7b8f5420a74abce69eee25b81e2084479fa426f33ccd46a","003f07cf566395059625b39785398f18652c8952e19790e7d6eeb22a9cbe0440","432dc46f22f9790797d98ccf09f7dc4a897bb5e874921217b951fb808947446b","28ed61ddc42936537ad29ade1404d533b4b28967460e29811409e5a40d9fc3b3","a36023d4a654c11e071b99cde8203d55d9feaf4940c766b9c960b8e0eb4f4c1f","42fe73978ddb3a82329bf41a116e921deb266551e4f0ad9e9c7bdc581c24f085","0670eede14b39fd186fe7e224db70510158af5279528d12292df9b980867c1d0","4274d4169679f93587cb887aa43570c2b5a840db17022093aa232ac2a9ca9beb","e98185f4249720ace1921d59c1ff4612fa5c633a183fc9bf28e2e7b8e3c7fd51",{"version":"481dc63ed954bc59b9169888ef7f009578f0aa395ff56059c173cba33c7ee065","affectsGlobalScope":true},"8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","c79bd2f3e5c05e7ad80dc82ce8d339cac23ac1f5e6cfab96c860bb70d5162873","e3328cedfe4d7fac23ba75d00bf5169269800ab949d0837cd88c4211a52c3762",{"version":"0e2d2d0ccf42bdd96e597727fad4d30bceabe0d161280824eb60d0d7c8929312","affectsGlobalScope":true},{"version":"6f8d2fca4cba47ab1b4ab6238c69d4b91d0e0a232109e4d26b2f9eda946e873c","affectsGlobalScope":true},{"version":"1ba37271a244a1b872be0134c1b86e2bd446093c312d2f76e405b1c989e2fe97","affectsGlobalScope":true},{"version":"381236c13b79159876be4802d48edfc72dea4e8662e58d189676de9d54ad725f","affectsGlobalScope":true},"592c25a8a783ccd3666c22292dab7125aacee947b9fd0e79204a609284ba80e7","2b1af4170f6dfa90f43d2fe3d6c36f95b7fa121aa434a2acefb763d7be460a53","dd89872dd0647dfd63665f3d525c06d114310a2f7a5a9277e5982a152b31be2b","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","fa849c825ac37d70ca78097a1cd06bb5ac281651f765fff8e491cfb0709de57b","c39e1ee964fa0bb318ee2db72c430b3aede3b50dbde414b03b4e43915f80c292","32ab25b7b28b24a138d879ca371b18c8fdfdd564ad5107e1333c5aa5d5fea494","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","da2b6356b84a40111aaecb18304ea4e4fcb43d70efb1c13ca7d7a906445ee0d3","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","6f294731b495c65ecf46a5694f0082954b961cf05463bea823f8014098eaffa0","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","dcd91d3b697cb650b95db5471189b99815af5db2a1cd28760f91e0b12ede8ed5","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","b03afe4bec768ae333582915146f48b161e567a81b5ebc31c4d78af089770ac9","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9","30abc554c7ad13063a02ddd06757929b34357aea1f6fcf4ca39114cb0fc19384","2f768f764e91667b3018488352dfcb4b6ef2d14b3e472bbeca7c0b3eae8d7d15","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","0eacae49e20c8004e5022b3abc41cee708925a7bb0a52bafa2e416eca424d39d",{"version":"5f186a758a616c107c70e8918db4630d063bd782f22e6e0b17573b125765b40b","affectsGlobalScope":true},"58b3082802116f10782ecaa577a473499def44650204beb38a8541d4d98b757b","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","fc37aca06f6b8b296c42412a2e75ab53d30cd1fa8a340a3bb328a723fd678377","5f2c582b9ef260cb9559a64221b38606378c1fabe17694592cdfe5975a6d7efa","5cd2c1aad6f55e97990dfb8883885be47f885b78a8576f492389ff85e484d698","8a19491eba2108d5c333c249699f40aff05ad312c04a17504573b27d91f0aede","4964ba28dd6c9d086735062e8f4c63f23dd14e20b9b6d2acdc5774760d47b132","cc0700b1b97e18a3d5d9184470502d8762ec85158819d662730c3a8c5d702584","9871b7ee672bc16c78833bdab3052615834b08375cb144e4d2cba74473f4a589","c863198dae89420f3c552b5a03da6ed6d0acfa3807a64772b895db624b0de707","8b03a5e327d7db67112ebbc93b4f744133eda2c1743dbb0a990c61a8007823ef","86c73f2ee1752bac8eeeece234fd05dfcf0637a4fbd8032e4f5f43102faa8eec","42fad1f540271e35ca37cecda12c4ce2eef27f0f5cf0f8dd761d723c744d3159","ff3743a5de32bee10906aff63d1de726f6a7fd6ee2da4b8229054dfa69de2c34","83acd370f7f84f203e71ebba33ba61b7f1291ca027d7f9a662c6307d74e4ac22","1445cec898f90bdd18b2949b9590b3c012f5b7e1804e6e329fb0fe053946d5ec","0e5318ec2275d8da858b541920d9306650ae6ac8012f0e872fe66eb50321a669","cf530297c3fb3a92ec9591dd4fa229d58b5981e45fe6702a0bd2bea53a5e59be","c1f6f7d08d42148ddfe164d36d7aba91f467dbcb3caa715966ff95f55048b3a4","f4e9bf9103191ef3b3612d3ec0044ca4044ca5be27711fe648ada06fad4bcc85","0c1ee27b8f6a00097c2d6d91a21ee4d096ab52c1e28350f6362542b55380059a","7677d5b0db9e020d3017720f853ba18f415219fb3a9597343b1b1012cfd699f7","bc1c6bc119c1784b1a2be6d9c47addec0d83ef0d52c8fbe1f14a51b4dfffc675","52cf2ce99c2a23de70225e252e9822a22b4e0adb82643ab0b710858810e00bf1","770625067bb27a20b9826255a8d47b6b5b0a2d3dfcbd21f89904c731f671ba77","d1ed6765f4d7906a05968fb5cd6d1db8afa14dbe512a4884e8ea5c0f5e142c80","799c0f1b07c092626cf1efd71d459997635911bb5f7fc1196efe449bba87e965","2a184e4462b9914a30b1b5c41cf80c6d3428f17b20d3afb711fff3f0644001fd","9eabde32a3aa5d80de34af2c2206cdc3ee094c6504a8d0c2d6d20c7c179503cc","397c8051b6cfcb48aa22656f0faca2553c5f56187262135162ee79d2b2f6c966","a8ead142e0c87dcd5dc130eba1f8eeed506b08952d905c47621dc2f583b1bff9","a02f10ea5f73130efca046429254a4e3c06b5475baecc8f7b99a0014731be8b3","f77ff4cd234d3fd18ddd5aeadb6f94374511931976d41f4b9f594cb71f7ce6f3","4c9a0564bb317349de6a24eb4efea8bb79898fa72ad63a1809165f5bd42970dd","4f18b4e6081e5e980ef53ddf57b9c959d36cffe1eb153865f512a01aeffb5e1e","7f17d4846a88eca5fe71c4474ef687ee89c4acf9b5372ab9b2ee68644b7e0fe0","b444a410d34fb5e98aa5ee2b381362044f4884652e8bc8a11c8fe14bbd85518e","c35808c1f5e16d2c571aa65067e3cb95afeff843b259ecfa2fc107a9519b5392","14d5dc055143e941c8743c6a21fa459f961cbc3deedf1bfe47b11587ca4b3ef5","a3ad4e1fc542751005267d50a6298e6765928c0c3a8dce1572f2ba6ca518661c","f237e7c97a3a89f4591afd49ecb3bd8d14f51a1c4adc8fcae3430febedff5eb6","3ffdfbec93b7aed71082af62b8c3e0cc71261cc68d796665faa1e91604fbae8f","662201f943ed45b1ad600d03a90dffe20841e725203ced8b708c91fcd7f9379a","c9ef74c64ed051ea5b958621e7fb853fe3b56e8787c1587aefc6ea988b3c7e79","2462ccfac5f3375794b861abaa81da380f1bbd9401de59ffa43119a0b644253d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","58e0cee50add50d4b6d47a935e26aeb0080d98c9cf729f8af389511cdfa10526","bc81aff061c53a7140270555f4b22da4ecfe8601e8027cf5aa175fbdc7927c31","5fdc3a2b97a9b1987cea799a36c6a4ea2f34fb60e52734361451cb5445f11a94"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"noImplicitAny":false,"outDir":"./","rootDir":"..","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[86,165],[87,165],[165],[46,165],[54,165],[46,54,165],[46,54,62,165],[44,45,165],[53,66,165],[53,165],[50,65,165],[53,73,165],[53,67,68,70,71,165],[67,68,70,165],[68,70,74,165],[50,53,69,165],[53,68,70,74,75,165],[107,165],[46,105,106,165],[46,105,165],[90,91,165],[92,165],[91,93,165],[68,103,110,111,112,114,115,165],[104,108,165],[109,165],[105,165],[104,109,113,165],[104,165],[90,102,116,165],[94,97,98,101,165],[138,165,172],[138,165,172,175],[90,165],[138,165,172,177],[138,165,172,175,188,189],[135,138,165,172,177,183,184],[165,176,177,185,187],[165,193],[165,197],[165,198],[165,200,201,202,203,204],[165,209],[135,138,139,143,149,164,165,172,173,180,186,189,190,195,208],[165,210,212,213,214,215,216,217,218,219,220,221,222],[165,210,211,213,214,215,216,217,218,219,220,221,222],[165,211,212,213,214,215,216,217,218,219,220,221,222],[165,210,211,212,214,215,216,217,218,219,220,221,222],[165,210,211,212,213,215,216,217,218,219,220,221,222],[165,210,211,212,213,214,216,217,218,219,220,221,222],[165,210,211,212,213,214,215,217,218,219,220,221,222],[165,210,211,212,213,214,215,216,218,219,220,221,222],[165,210,211,212,213,214,215,216,217,219,220,221,222],[165,210,211,212,213,214,215,216,217,218,220,221,222],[165,210,211,212,213,214,215,216,217,218,219,221,222],[165,210,211,212,213,214,215,216,217,218,219,220,222],[165,210,211,212,213,214,215,216,217,218,219,220,221],[119,165],[122,165],[123,128,156,165],[124,135,136,143,153,164,165],[124,125,135,143,165],[126,165],[127,128,136,144,165],[128,153,161,165],[129,131,135,143,165],[130,165],[131,132,165],[135,165],[133,135,165],[122,135,165],[135,136,137,153,164,165],[135,136,137,150,153,156,165],[165,169],[131,135,138,143,153,164,165],[135,136,138,139,143,153,161,164,165],[138,140,153,161,164,165],[119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[135,141,165],[142,164,165,169],[131,135,143,153,165],[144,165],[145,165],[122,146,165],[147,163,165,169],[148,165],[149,165],[135,150,151,165],[150,152,165,167],[123,135,153,154,155,156,165],[123,153,155,165],[153,154,165],[156,165],[157,165],[122,153,165],[135,159,160,165],[159,160,165],[128,143,153,161,165],[162,165],[143,163,165],[123,138,149,164,165],[128,165],[153,165,166],[142,165,167],[165,168],[123,128,135,137,146,153,164,165,167,169],[153,165,170],[165,229],[165,230],[82,83,84,85,165],[165,172],[165,234,273],[165,234,258,273],[165,273],[165,234],[165,234,259,273],[165,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272],[165,259,273],[136,153,165,172,182],[138,165,172,182,186],[90,100,165],[99,165],[47,165],[135,138,140,143,153,161,164,165,170,172],[135,153,165,172],[96,165],[95,165],[46,50,165],[50,165],[48,49,165],[55,56,57,58,59,60,61,62,63,165],[46,50,51,52,165],[68,165],[43,78,165],[43,53,165],[43,53,64,72,76,77,165],[43,78,86,88,165],[43,165],[43,53,78,81,117,165],[53],[50,53,72,76,77],[78,88],[81]],"referencedMap":[[87,1],[88,2],[44,3],[54,4],[55,5],[58,6],[56,6],[60,6],[63,7],[62,3],[61,6],[59,6],[57,5],[45,3],[46,8],[67,9],[65,10],[66,11],[73,11],[74,12],[72,13],[71,14],[75,15],[70,16],[76,17],[105,3],[108,18],[107,19],[106,20],[92,21],[93,22],[91,3],[94,23],[116,24],[103,3],[109,25],[110,26],[111,3],[112,27],[114,28],[104,10],[113,29],[115,26],[117,30],[102,31],[173,32],[174,3],[176,33],[98,34],[90,3],[178,35],[179,3],[175,32],[180,3],[181,3],[190,36],[191,3],[192,3],[185,37],[188,38],[194,39],[195,3],[186,3],[196,3],[197,3],[198,40],[199,41],[205,42],[201,3],[200,3],[203,3],[202,3],[206,3],[207,3],[189,3],[208,43],[209,44],[211,45],[212,46],[210,47],[213,48],[214,49],[215,50],[216,51],[217,52],[218,53],[219,54],[220,55],[221,56],[222,57],[223,39],[182,3],[224,3],[225,3],[226,3],[119,58],[120,58],[122,59],[123,60],[124,61],[125,62],[126,63],[127,64],[128,65],[129,66],[130,67],[131,68],[132,68],[134,69],[133,70],[135,71],[136,72],[137,73],[121,74],[171,3],[138,75],[139,76],[140,77],[172,78],[141,79],[142,80],[143,81],[144,82],[145,83],[146,84],[147,85],[148,86],[149,87],[150,88],[151,88],[152,89],[153,90],[155,91],[154,92],[156,93],[157,94],[158,95],[159,96],[160,97],[161,98],[162,99],[163,100],[164,101],[165,102],[166,103],[167,104],[168,105],[169,106],[170,107],[227,3],[228,3],[230,108],[229,109],[231,3],[84,3],[177,3],[184,3],[82,3],[86,110],[232,111],[233,3],[85,3],[258,112],[259,113],[234,114],[237,114],[256,112],[257,112],[247,112],[246,115],[244,112],[239,112],[252,112],[250,112],[254,112],[238,112],[251,112],[255,112],[240,112],[241,112],[253,112],[235,112],[242,112],[243,112],[245,112],[249,112],[260,116],[248,112],[236,112],[273,117],[272,3],[267,116],[269,118],[268,116],[261,116],[262,116],[264,116],[266,116],[270,118],[271,118],[263,118],[265,118],[183,119],[187,120],[101,121],[100,122],[99,3],[204,3],[48,123],[47,3],[193,3],[274,124],[275,125],[95,34],[97,126],[96,127],[83,3],[51,128],[49,129],[52,3],[50,130],[68,129],[64,131],[53,132],[69,133],[43,3],[8,3],[10,3],[9,3],[2,3],[11,3],[12,3],[13,3],[14,3],[15,3],[16,3],[17,3],[18,3],[3,3],[4,3],[22,3],[19,3],[20,3],[21,3],[23,3],[24,3],[25,3],[5,3],[26,3],[27,3],[28,3],[29,3],[6,3],[33,3],[30,3],[31,3],[32,3],[34,3],[7,3],[35,3],[40,3],[41,3],[36,3],[37,3],[38,3],[39,3],[1,3],[42,3],[79,134],[80,135],[81,134],[78,136],[89,137],[77,138],[118,139]],"exportedModulesMap":[[87,1],[88,2],[44,3],[54,4],[55,5],[58,6],[56,6],[60,6],[63,7],[62,3],[61,6],[59,6],[57,5],[45,3],[46,8],[67,9],[65,10],[66,11],[73,11],[74,12],[72,13],[71,14],[75,15],[70,16],[76,17],[105,3],[108,18],[107,19],[106,20],[92,21],[93,22],[91,3],[94,23],[116,24],[103,3],[109,25],[110,26],[111,3],[112,27],[114,28],[104,10],[113,29],[115,26],[117,30],[102,31],[173,32],[174,3],[176,33],[98,34],[90,3],[178,35],[179,3],[175,32],[180,3],[181,3],[190,36],[191,3],[192,3],[185,37],[188,38],[194,39],[195,3],[186,3],[196,3],[197,3],[198,40],[199,41],[205,42],[201,3],[200,3],[203,3],[202,3],[206,3],[207,3],[189,3],[208,43],[209,44],[211,45],[212,46],[210,47],[213,48],[214,49],[215,50],[216,51],[217,52],[218,53],[219,54],[220,55],[221,56],[222,57],[223,39],[182,3],[224,3],[225,3],[226,3],[119,58],[120,58],[122,59],[123,60],[124,61],[125,62],[126,63],[127,64],[128,65],[129,66],[130,67],[131,68],[132,68],[134,69],[133,70],[135,71],[136,72],[137,73],[121,74],[171,3],[138,75],[139,76],[140,77],[172,78],[141,79],[142,80],[143,81],[144,82],[145,83],[146,84],[147,85],[148,86],[149,87],[150,88],[151,88],[152,89],[153,90],[155,91],[154,92],[156,93],[157,94],[158,95],[159,96],[160,97],[161,98],[162,99],[163,100],[164,101],[165,102],[166,103],[167,104],[168,105],[169,106],[170,107],[227,3],[228,3],[230,108],[229,109],[231,3],[84,3],[177,3],[184,3],[82,3],[86,110],[232,111],[233,3],[85,3],[258,112],[259,113],[234,114],[237,114],[256,112],[257,112],[247,112],[246,115],[244,112],[239,112],[252,112],[250,112],[254,112],[238,112],[251,112],[255,112],[240,112],[241,112],[253,112],[235,112],[242,112],[243,112],[245,112],[249,112],[260,116],[248,112],[236,112],[273,117],[272,3],[267,116],[269,118],[268,116],[261,116],[262,116],[264,116],[266,116],[270,118],[271,118],[263,118],[265,118],[183,119],[187,120],[101,121],[100,122],[99,3],[204,3],[48,123],[47,3],[193,3],[274,124],[275,125],[95,34],[97,126],[96,127],[83,3],[51,128],[49,129],[52,3],[50,130],[68,129],[64,131],[53,132],[69,133],[43,3],[8,3],[10,3],[9,3],[2,3],[11,3],[12,3],[13,3],[14,3],[15,3],[16,3],[17,3],[18,3],[3,3],[4,3],[22,3],[19,3],[20,3],[21,3],[23,3],[24,3],[25,3],[5,3],[26,3],[27,3],[28,3],[29,3],[6,3],[33,3],[30,3],[31,3],[32,3],[34,3],[7,3],[35,3],[40,3],[41,3],[36,3],[37,3],[38,3],[39,3],[1,3],[42,3],[79,134],[80,140],[78,141],[89,142],[118,143]],"semanticDiagnosticsPerFile":[87,88,44,54,55,58,56,60,63,62,61,59,57,45,46,67,65,66,73,74,72,71,75,70,76,105,108,107,106,92,93,91,94,116,103,109,110,111,112,114,104,113,115,117,102,173,174,176,98,90,178,179,175,180,181,190,191,192,185,188,194,195,186,196,197,198,199,205,201,200,203,202,206,207,189,208,209,211,212,210,213,214,215,216,217,218,219,220,221,222,223,182,224,225,226,119,120,122,123,124,125,126,127,128,129,130,131,132,134,133,135,136,137,121,171,138,139,140,172,141,142,143,144,145,146,147,148,149,150,151,152,153,155,154,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,227,228,230,229,231,84,177,184,82,86,232,233,85,258,259,234,237,256,257,247,246,244,239,252,250,254,238,251,255,240,241,253,235,242,243,245,249,260,248,236,273,272,267,269,268,261,262,264,266,270,271,263,265,183,187,101,100,99,204,48,47,193,274,275,95,97,96,83,51,49,52,50,68,64,53,69,43,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,79,80,81,78,89,77,118]},"version":"4.9.5"}
package/src/IxTextbox.ts DELETED
@@ -1,216 +0,0 @@
1
- import { html, LitElement } from 'lit';
2
- import { property, query } from 'lit/decorators.js';
3
- import '@material/web/textfield/filled-text-field.js';
4
- import '@material/web/textfield/outlined-text-field.js';
5
- import {
6
- TextFieldType,
7
- UnsupportedTextFieldType,
8
- TextChangeEvent,
9
- } from './types/index.js';
10
-
11
- export class IxTextbox extends LitElement {
12
- @property({ type: Boolean }) outlined = true;
13
-
14
- @property({ reflect: true })
15
- type: TextFieldType | UnsupportedTextFieldType = 'text';
16
-
17
- @property({ type: Boolean, reflect: true }) disabled = false;
18
-
19
- /**
20
- * Gets or sets whether or not the text field is in a visually invalid state.
21
- *
22
- * Calling `reportValidity()` will automatically update `error`.
23
- */
24
- @property({ type: Boolean, reflect: true }) error = false;
25
-
26
- /**
27
- * The error message that replaces supporting text when `error` is true. If
28
- * `errorText` is an empty string, then the supporting text will continue to
29
- * show.
30
- *
31
- * Calling `reportValidity()` will automatically update `errorText` to the
32
- * native `validationMessage`.
33
- */
34
- @property({ attribute: 'error-text' }) errorText = '';
35
-
36
- @property() label = '';
37
-
38
- @property({ type: Boolean, reflect: true }) required = false;
39
-
40
- /**
41
- * The current value of the text field. It is always a string.
42
- */
43
- @property() value = '';
44
-
45
- /**
46
- * An optional prefix to display before the input value.
47
- */
48
- @property({ attribute: 'prefix-text' }) prefixText = '';
49
-
50
- /**
51
- * An optional suffix to display after the input value.
52
- */
53
- @property({ attribute: 'suffix-text' }) suffixText = '';
54
-
55
- /**
56
- * Whether or not the text field has a leading icon. Used for SSR.
57
- */
58
- @property({ type: Boolean, attribute: 'has-leading-icon' })
59
- hasLeadingIcon = false;
60
-
61
- /**
62
- * Whether or not the text field has a trailing icon. Used for SSR.
63
- */
64
- @property({ type: Boolean, attribute: 'has-trailing-icon' })
65
- hasTrailingIcon = false;
66
-
67
- /**
68
- * Conveys additional information below the text field, such as how it should
69
- * be used.
70
- */
71
- @property({ attribute: 'supporting-text' }) supportingText = '';
72
-
73
- /**
74
- * Override the input text CSS `direction`. Useful for RTL languages that use
75
- * LTR notation for fractions.
76
- */
77
- @property({ attribute: 'text-direction' }) textDirection = '';
78
-
79
- /**
80
- * The number of rows to display for a `type="textarea"` text field.
81
- * Defaults to 2.
82
- */
83
- @property({ type: Number }) rows = 2;
84
-
85
- // <input> properties
86
- /**
87
- * Defines the greatest value in the range of permitted values.
88
- *
89
- * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max
90
- */
91
- @property() max = '';
92
-
93
- /**
94
- * The maximum number of characters a user can enter into the text field. Set
95
- * to -1 for none.
96
- *
97
- * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
98
- */
99
- @property({ type: Number }) maxLength = -1;
100
-
101
- /**
102
- * Defines the most negative value in the range of permitted values.
103
- *
104
- * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min
105
- */
106
- @property() min = '';
107
-
108
- /**
109
- * The minimum number of characters a user can enter into the text field. Set
110
- * to -1 for none.
111
- *
112
- * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength
113
- */
114
- @property({ type: Number }) minLength = -1;
115
-
116
- /**
117
- * A regular expression that the text field's value must match to pass
118
- * constraint validation.
119
- *
120
- * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern
121
- */
122
- @property() pattern = '';
123
-
124
- @property({ reflect: true }) placeholder = '';
125
-
126
- /**
127
- * Indicates whether or not a user should be able to edit the text field's
128
- * value.
129
- *
130
- * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly
131
- */
132
- @property({ type: Boolean, reflect: true }) readOnly = false;
133
-
134
- @query('#md-textfield') mdTextfield!: HTMLInputElement;
135
-
136
- handleChange(e: Event) {
137
- const inputElement = e.target as HTMLInputElement;
138
- const textChangeEvent = new CustomEvent('textChange', {
139
- detail: {
140
- value: inputElement.value,
141
- },
142
- composed: true,
143
- } as TextChangeEvent);
144
-
145
- this.dispatchEvent(textChangeEvent);
146
- }
147
-
148
- getValidityStatus() {
149
- return this.mdTextfield?.reportValidity();
150
- }
151
-
152
- render() {
153
- let comp;
154
- if (this.outlined) {
155
- comp = html`
156
- <md-outlined-text-field
157
- id="md-textfield"
158
- ?disabled="${this.disabled}"
159
- ?required="${this.required}"
160
- ?error="${this.error}"
161
- error-text="${this.errorText}"
162
- label="${this.label}"
163
- value="${this.value}"
164
- placeholder="${this.placeholder}"
165
- ?readOnly="${this.readOnly}"
166
- text-direction="${this.textDirection}"
167
- rows="${this.rows}"
168
- max="${this.max}"
169
- maxLength="${this.maxLength}"
170
- min="${this.min}"
171
- minLength="${this.minLength}"
172
- pattern="${this.pattern}"
173
- prefix-text="${this.prefixText}"
174
- suffix-text="${this.suffixText}"
175
- supporting-text="${this.supportingText}"
176
- type="${this.type}"
177
- @input="${this.handleChange}"
178
- >
179
- </md-outlined-text-field>
180
- `;
181
- } else {
182
- comp = html`
183
- <md-filled-text-field
184
- id="md-textfield"
185
- ?disabled="${this.disabled}"
186
- ?required="${this.required}"
187
- ?error="${this.error}"
188
- error-text="${this.errorText}"
189
- label="${this.label}"
190
- value="${this.value}"
191
- placeholder="${this.placeholder}"
192
- ?readOnly="${this.readOnly}"
193
- text-direction="${this.textDirection}"
194
- rows="${this.rows}"
195
- max="${this.max}"
196
- maxLength="${this.maxLength}"
197
- min="${this.min}"
198
- minLength="${this.minLength}"
199
- pattern="${this.pattern}"
200
- prefix-text="${this.prefixText}"
201
- suffix-text="${this.suffixText}"
202
- supporting-text="${this.supportingText}"
203
- type="${this.type}"
204
- @input="${this.handleChange}"
205
- >
206
- </md-filled-text-field>
207
- `;
208
- }
209
- return html` ${comp} `;
210
- }
211
- }
212
- declare global {
213
- interface HTMLElementTagNameMap {
214
- 'ix-textbox': IxTextbox;
215
- }
216
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export { IxTextbox } from './IxTextbox.js';
@@ -1,59 +0,0 @@
1
- import { css } from 'lit';
2
-
3
- export const IxTextboxStyles = css`
4
- :host {
5
- display: block;
6
- }
7
-
8
- :host([hidden]) {
9
- display: none;
10
- }
11
-
12
- input {
13
- display: block;
14
- width: 100%;
15
- padding: 0.5em;
16
- font-size: 1rem;
17
- line-height: 1.25rem;
18
- border: 1px solid lightgrey;
19
- background-repeat: no-repeat;
20
- background-position: calc(100% - 0.5em) 50%;
21
- border-radius: 3px;
22
- box-sizing: border-box;
23
- }
24
-
25
- input:focus {
26
- outline: none;
27
- box-shadow: 0 0 2px 1px rgba(0, 153, 204, 0.39),
28
- 0 0 4px 3px rgba(0, 153, 204, 0.18), 0 0 8px 4px rgba(0, 153, 204, 0.1);
29
- }
30
-
31
- input:required.-is-valid {
32
- border-color: #99ca3c;
33
- background-image: url("data:image/svg+xml,%3Csvg width='19px' height='13px' viewBox='0 0 19 13' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3Cpolygon fill='%2399CA3C' points='6.70967742 13 0 6.29032258 2.09677419 4.19354839 6.70967742 8.80645161 16.3548387 0 18.4516129 2.09677419'%3E%3C/polygon%3E %3C/svg%3E");
34
- padding-right: 2em;
35
- }
36
-
37
- input:required.-is-invalid {
38
- border-color: #e3097c;
39
- background-image: url("data:image/svg+xml,%3Csvg width='15px' height='15px' viewBox='0 0 15 15' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3Cpolygon id='Path' fill='%23E3097C' points='12.759145 0.0312229203 14.8804653 2.15254326 9.57716447 7.45584412 14.8804653 12.759145 12.759145 14.8804653 7.45584412 9.57716447 2.15254326 14.8804653 0.0312229203 12.759145 5.33452378 7.45584412 0.0312229203 2.15254326 2.15254326 0.0312229203 7.45584412 5.33452378'%3E%3C/polygon%3E %3C/svg%3E");
40
- padding-right: 2em;
41
- }
42
-
43
- input[type='search'] {
44
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Cpath id='Path_46' data-name='Path 46' d='M17.835-27.347l5.506,5.506a2.249,2.249,0,0,1,0,3.182,2.249,2.249,0,0,1-3.182,0h0l-5.506-5.506a10.6,10.6,0,0,0,3.182-3.182ZM9-42a9,9,0,0,1,9,9,9,9,0,0,1-9,9,9,9,0,0,1-9-9A9,9,0,0,1,9-42Zm0,2.25A6.757,6.757,0,0,0,2.25-33,6.757,6.757,0,0,0,9-26.25,6.757,6.757,0,0,0,15.75-33,6.758,6.758,0,0,0,9-39.75Zm0,1.5v1.5A3.754,3.754,0,0,0,5.25-33H3.75A5.256,5.256,0,0,1,9-38.25Z' transform='translate(0 42)' fill='%23d8d8d8' clip-rule='evenodd'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='icon_search' data-name='icon search' clip-path='url(%23clip-path)'%3E%3Cpath id='Path_45' data-name='Path 45' d='M-1-43H24.363v25.363H-1Z' transform='translate(0.429 42.429)' fill='%23d8d8d8'/%3E%3C/g%3E%3C/svg%3E%0A");
45
- background-position: 0.5em 50%;
46
- padding-left: 2.25rem;
47
- }
48
-
49
- input:disabled {
50
- border-width: 0 0 1px;
51
- color: #595959;
52
- border-color: lightgrey;
53
- }
54
-
55
- input:not([type='search']):disabled {
56
- background-image: none;
57
- padding-left: 0;
58
- }
59
- `;
package/src/ix-textbox.ts DELETED
@@ -1,3 +0,0 @@
1
- import { IxTextbox } from './IxTextbox.js';
2
-
3
- window.customElements.define('ix-textbox', IxTextbox);
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { createComponent } from '@lit-labs/react';
3
- import { IxTextbox as LitComp } from '../IxTextbox.js';
4
-
5
- window.customElements.define('ix-textbox', LitComp);
6
-
7
- export const IxTextbox = createComponent({
8
- tagName: 'ix-textbox',
9
- elementClass: LitComp,
10
- react: React,
11
- });
@@ -1,29 +0,0 @@
1
- /**
2
- * Input types that are compatible with the text field.
3
- */
4
- export type TextFieldType =
5
- | 'email'
6
- | 'number'
7
- | 'password'
8
- | 'search'
9
- | 'tel'
10
- | 'text'
11
- | 'url'
12
- | 'textarea';
13
-
14
- /**
15
- * Input types that are not fully supported for the text field.
16
- */
17
- export type UnsupportedTextFieldType =
18
- | 'color'
19
- | 'date'
20
- | 'datetime-local'
21
- | 'file'
22
- | 'month'
23
- | 'time'
24
- | 'week';
25
-
26
- /**
27
- * The event that is fired when the text field's value changes.
28
- */
29
- export type TextChangeEvent = CustomEvent<{ value: string }>;
@@ -1,32 +0,0 @@
1
- import { html } from 'lit';
2
- import { fixture, expect } from '@open-wc/testing';
3
- import { IxTextbox } from '../src/IxTextbox.js';
4
- import '../src/ix-textbox.js';
5
-
6
- describe('IxTextbox', () => {
7
- it('should show the outlined text field by default', async () => {
8
- const el = await fixture<IxTextbox>(html`<ix-textbox></ix-textbox>`);
9
- console.log(el.innerHTML);
10
- const outlinedTextField = el.shadowRoot?.querySelector(
11
- 'md-outlined-text-field'
12
- );
13
- const filledTextField = el.shadowRoot?.querySelector(
14
- 'md-filled-text-field'
15
- );
16
- expect(outlinedTextField).to.not.be.null;
17
- expect(filledTextField).to.be.null;
18
- });
19
- it('should show the filled text field when outlined is false', async () => {
20
- const el = await fixture<IxTextbox>(
21
- html`<ix-textbox .outlined=${false}></ix-textbox>`
22
- );
23
- const outlinedTextField = el.shadowRoot?.querySelector(
24
- 'md-outlined-text-field'
25
- );
26
- const filledTextField = el.shadowRoot?.querySelector(
27
- 'md-filled-text-field'
28
- );
29
- expect(outlinedTextField).to.be.null;
30
- expect(filledTextField).to.not.be.null;
31
- });
32
- });
package/tsconfig.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2018",
4
- "module": "esnext",
5
- "moduleResolution": "node",
6
- "noEmitOnError": true,
7
- "lib": ["es2017", "dom"],
8
- "strict": true,
9
- "esModuleInterop": false,
10
- "allowSyntheticDefaultImports": true,
11
- "experimentalDecorators": true,
12
- "importHelpers": true,
13
- "outDir": "dist",
14
- "sourceMap": true,
15
- "inlineSources": true,
16
- "rootDir": "./",
17
- "declaration": true,
18
- "incremental": true,
19
- "noImplicitAny": false
20
- },
21
- "include": ["**/*.ts"]
22
- }
@@ -1,27 +0,0 @@
1
- // import { hmrPlugin, presets } from '@open-wc/dev-server-hmr';
2
-
3
- /** Use Hot Module replacement by adding --hmr to the start command */
4
- const hmr = process.argv.includes('--hmr');
5
-
6
- export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
7
- open: '/demo/',
8
- /** Use regular watch mode if HMR is not enabled. */
9
- watch: !hmr,
10
- /** Resolve bare module imports */
11
- nodeResolve: {
12
- exportConditions: ['browser', 'development'],
13
- },
14
-
15
- /** Compile JS for older browsers. Requires @web/dev-server-esbuild plugin */
16
- // esbuildTarget: 'auto'
17
-
18
- /** Set appIndex to enable SPA routing */
19
- // appIndex: 'demo/index.html',
20
-
21
- plugins: [
22
- /** Use Hot Module Replacement by uncommenting. Requires @open-wc/dev-server-hmr plugin */
23
- // hmr && hmrPlugin({ exclude: ['**/*/node_modules/**/*'], presets: [presets.litElement] }),
24
- ],
25
-
26
- // See documentation for all available options
27
- });
@@ -1,43 +0,0 @@
1
- // import { playwrightLauncher } from '@web/test-runner-playwright';
2
-
3
- const filteredLogs = ['Running in dev mode', 'lit-html is in dev mode'];
4
-
5
- export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
6
- /** Test files to run */
7
- files: 'dist/test/**/*.test.js',
8
-
9
- /** Resolve bare module imports */
10
- nodeResolve: {
11
- exportConditions: ['browser', 'development'],
12
- },
13
-
14
- port: 8019,
15
-
16
- /** Filter out lit dev mode logs */
17
- filterBrowserLogs(log) {
18
- for (const arg of log.args) {
19
- if (typeof arg === 'string' && filteredLogs.some(l => arg.includes(l))) {
20
- return false;
21
- }
22
- }
23
- return true;
24
- },
25
-
26
- /** Compile JS for older browsers. Requires @web/dev-server-esbuild plugin */
27
- // esbuildTarget: 'auto',
28
-
29
- /** Amount of browsers to run concurrently */
30
- // concurrentBrowsers: 2,
31
-
32
- /** Amount of test files per browser to test concurrently */
33
- // concurrency: 1,
34
-
35
- /** Browsers to run tests on */
36
- // browsers: [
37
- // playwrightLauncher({ product: 'chromium' }),
38
- // playwrightLauncher({ product: 'firefox' }),
39
- // playwrightLauncher({ product: 'webkit' }),
40
- // ],
41
-
42
- // See documentation for all available options
43
- });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes