From bff767f5f5d6bd134cb6bf1b8f7469dc7bac6a12 Mon Sep 17 00:00:00 2001 From: Omar Alshaker Date: Thu, 15 Nov 2018 18:08:04 +0100 Subject: [PATCH 1/2] Update packages --- src/StarcounterClientFiles/bower-list.txt | 42 ++-- src/StarcounterClientFiles/bower.json | 2 +- .../sys/iron-a11y-keys-behavior/.bower.json | 4 +- .../sys/iron-resizable-behavior/.bower.json | 4 +- .../wwwroot/sys/juicy-popover/.bower.json | 8 +- .../wwwroot/sys/juicy-popover/CONTRIBUTING.md | 24 ++- .../wwwroot/sys/juicy-popover/bower.json | 2 +- .../wwwroot/sys/juicy-popover/package.json | 9 +- .../sys/juicy-popover/src/juicy-popover.html | 13 +- .../wwwroot/sys/juicy-popover/wct.conf.json | 4 +- .../wwwroot/sys/palindrom-client/.bower.json | 8 +- .../palindrom-client/palindrom-client.html | 18 +- .../wwwroot/sys/uniform.css/.bower.json | 10 +- .../uni-data-table/uni-data-table.html | 8 +- .../uni-date-picker/uni-date-picker.html | 2 +- .../uni-form-item-group.html | 2 +- .../uni-form-item/uni-form-item.html | 2 +- .../components/uni-pagination/README.md | 6 +- .../components/uni-pagination/index.html | 5 +- .../uni-pagination/uni-pagination.html | 27 ++- .../components/uni-popover/README.md | 6 + .../components/uni-popover/index.html | 58 +++++- .../components/uni-popover/uni-popover.html | 41 ++-- .../wwwroot/sys/uniform.css/dist/commando.css | 2 +- .../uniform.css/dist/commando.unminified.css | 4 + .../sys/uniform.css/dist/underwear.css | 2 +- .../uniform.css/dist/underwear.unminified.css | 12 +- .../wwwroot/sys/uniform.css/dist/uniform.css | 2 +- .../uniform.css/dist/uniform.unminified.css | 18 +- .../wwwroot/sys/uniform.css/package.json | 2 +- .../wwwroot/sys/uniform.css/uniform.css | 2 +- .../wwwroot/sys/vaadin-checkbox/.bower.json | 8 +- .../wwwroot/sys/vaadin-checkbox/package.json | 2 +- .../src/vaadin-checkbox-group.html | 2 - .../vaadin-checkbox/src/vaadin-checkbox.html | 5 +- .../vaadin-checkbox/test/accessibility.html | 4 - .../test/vaadin-checkbox-group_test.html | 4 +- .../vaadin-control-state-mixin/.bower.json | 8 +- .../sys/vaadin-control-state-mixin/README.md | 3 +- .../vaadin-control-state-mixin.html | 2 +- .../sys/vaadin-date-picker/.bower.json | 8 +- .../demo/date-picker-basic-demos.html | 32 +-- .../sys/vaadin-date-picker/package.json | 2 +- .../src/vaadin-date-picker.html | 2 +- .../src/vaadin-month-calendar.html | 2 +- .../sys/vaadin-date-picker/test/wai-aria.html | 9 + .../wwwroot/sys/vaadin-grid/.bower.json | 8 +- .../vaadin-grid/demo/grid-basic-demos.html | 2 +- .../vaadin-grid/demo/grid-columns-demos.html | 15 +- .../sys/vaadin-grid/demo/grid-data-demos.html | 4 +- .../demo/grid-filtering-demos.html | 193 +++++++++--------- .../demo/grid-row-details-demos.html | 6 +- .../sys/vaadin-grid/demo/grid-tree-demos.html | 2 +- .../wwwroot/sys/vaadin-grid/package.json | 2 +- .../vaadin-grid/src/vaadin-grid-column.html | 10 +- .../src/vaadin-grid-selection-column.html | 39 ++-- .../sys/vaadin-grid/src/vaadin-grid.html | 2 +- .../wwwroot/sys/vaadin-grid/test/column.html | 54 +++++ .../sys/vaadin-grid/test/selecting.html | 5 + .../sys/vaadin-lumo-styles/.bower.json | 47 +++-- .../wwwroot/sys/vaadin-lumo-styles/bower.json | 39 ++-- .../vaadin-lumo-styles/mixins/overlay.html | 2 +- .../vaadin-lumo-styles/test/all-imports.html | 2 +- .../sys/vaadin-lumo-styles/test/sink.html | 8 +- .../test/visual-style1.html | 2 +- .../sys/vaadin-lumo-styles/version.html | 2 +- .../wwwroot/sys/vaadin-text-field/.bower.json | 8 +- .../demo/text-field-validators-demos.html | 8 +- .../sys/vaadin-text-field/package.json | 2 +- .../src/vaadin-password-field.html | 2 +- .../src/vaadin-text-area.html | 18 +- .../src/vaadin-text-field-mixin.html | 2 +- .../src/vaadin-text-field.html | 2 +- .../sys/vaadin-text-field/test/text-area.html | 31 +++ .../vaadin-text-field/test/text-field.html | 7 + 75 files changed, 574 insertions(+), 392 deletions(-) diff --git a/src/StarcounterClientFiles/bower-list.txt b/src/StarcounterClientFiles/bower-list.txt index 9c1a122..0f12c55 100644 --- a/src/StarcounterClientFiles/bower-list.txt +++ b/src/StarcounterClientFiles/bower-list.txt @@ -14,11 +14,11 @@ starcounter-clientfiles C:\Work\Starcounter\StarcounterClientFiles\src\Starcount │ ├─┬ iron-resizable-behavior#2.1.1 (latest is 3.0.1) │ │ └── polymer not installed │ └── polymer not installed -├─┬ palindrom-client#7.2.0 +├─┬ palindrom-client#7.2.1 │ └── Palindrom#5.1.3 ├── palindrom-error-catcher#1.1.0 ├── palindrom-redirect#1.0.1 -├─┬ polymer-source#2.6.1 (latest is 3.0.5) +├─┬ polymer-source#2.6.1 (latest is 3.1.0) │ ├── shadycss#1.5.2 │ └── webcomponentsjs#1.2.7 (latest is 2.1.3) ├─┬ slot-all#0.0.3 @@ -26,11 +26,11 @@ starcounter-clientfiles C:\Work\Starcounter\StarcounterClientFiles\src\Starcount ├─┬ starcounter-include#5.2.0 │ └─┬ imported-template#3.4.0 │ └── juicy-html#4.0.0 -├─┬ uniform.css#0.8.0 -│ ├── juicy-popover#2.1.0 +├─┬ uniform.css#0.9.0 +│ ├── juicy-popover#2.1.1 │ ├── polymer not installed -│ ├─┬ vaadin-date-picker#3.3.0 -│ │ ├─┬ iron-a11y-announcer#2.1.0 (latest is 3.0.1) +│ ├─┬ vaadin-date-picker#3.3.1 +│ │ ├─┬ iron-a11y-announcer#2.1.0 (latest is 3.0.2) │ │ │ └── polymer not installed │ │ ├─┬ iron-a11y-keys-behavior#2.1.1 (latest is 3.0.1) │ │ │ └── polymer not installed @@ -41,14 +41,14 @@ starcounter-clientfiles C:\Work\Starcounter\StarcounterClientFiles\src\Starcount │ │ ├── polymer not installed │ │ ├─┬ vaadin-button#2.1.0 │ │ │ ├── polymer not installed -│ │ │ ├─┬ vaadin-control-state-mixin#2.1.1 +│ │ │ ├─┬ vaadin-control-state-mixin#2.1.2 │ │ │ │ └── polymer not installed │ │ │ ├─┬ vaadin-element-mixin#2.1.2 │ │ │ │ ├── polymer not installed │ │ │ │ ├── vaadin-development-mode-detector#2.0.0 │ │ │ │ └─┬ vaadin-usage-statistics#2.0.1 │ │ │ │ └── vaadin-development-mode-detector#2.0.0 -│ │ │ ├─┬ vaadin-lumo-styles#1.3.1 +│ │ │ ├─┬ vaadin-lumo-styles#1.3.3 │ │ │ │ ├─┬ iron-icon#2.1.0 (latest is 3.0.1) │ │ │ │ │ ├─┬ iron-flex-layout#2.0.3 (latest is 3.0.1) │ │ │ │ │ │ └── polymer not installed @@ -64,56 +64,56 @@ starcounter-clientfiles C:\Work\Starcounter\StarcounterClientFiles\src\Starcount │ │ │ │ └── polymer not installed │ │ │ └─┬ vaadin-themable-mixin#1.3.2 │ │ │ └── polymer not installed -│ │ ├─┬ vaadin-control-state-mixin#2.1.1 +│ │ ├─┬ vaadin-control-state-mixin#2.1.2 │ │ │ └── polymer not installed │ │ ├─┬ vaadin-element-mixin#2.1.2 │ │ │ ├── polymer not installed │ │ │ ├── vaadin-development-mode-detector#2.0.0 │ │ │ └─┬ vaadin-usage-statistics#2.0.1 │ │ │ └── vaadin-development-mode-detector#2.0.0 -│ │ ├── vaadin-lumo-styles#1.3.1 +│ │ ├── vaadin-lumo-styles#1.3.3 │ │ ├── vaadin-material-styles#1.2.0 │ │ ├─┬ vaadin-overlay#3.2.1 │ │ │ ├── polymer not installed -│ │ │ ├── vaadin-lumo-styles#1.3.1 +│ │ │ ├── vaadin-lumo-styles#1.3.3 │ │ │ ├── vaadin-material-styles#1.2.0 │ │ │ └── vaadin-themable-mixin#1.3.2 -│ │ ├─┬ vaadin-text-field#2.1.3 +│ │ ├─┬ vaadin-text-field#2.1.4 │ │ │ ├── polymer not installed -│ │ │ ├─┬ vaadin-control-state-mixin#2.1.1 +│ │ │ ├─┬ vaadin-control-state-mixin#2.1.2 │ │ │ │ └── polymer not installed │ │ │ ├─┬ vaadin-element-mixin#2.1.2 │ │ │ │ ├── polymer not installed │ │ │ │ ├── vaadin-development-mode-detector#2.0.0 │ │ │ │ └─┬ vaadin-usage-statistics#2.0.1 │ │ │ │ └── vaadin-development-mode-detector#2.0.0 -│ │ │ ├── vaadin-lumo-styles#1.3.1 +│ │ │ ├── vaadin-lumo-styles#1.3.3 │ │ │ ├── vaadin-material-styles#1.2.0 │ │ │ └── vaadin-themable-mixin#1.3.2 │ │ └── vaadin-themable-mixin#1.3.2 -│ ├─┬ vaadin-grid#5.2.1 -│ │ ├── iron-a11y-announcer#2.1.0 (latest is 3.0.1) +│ ├─┬ vaadin-grid#5.2.3 (5.3.0-alpha3 available) +│ │ ├── iron-a11y-announcer#2.1.0 (latest is 3.0.2) │ │ ├── iron-a11y-keys-behavior#2.1.1 (latest is 3.0.1) │ │ ├── iron-resizable-behavior#2.1.1 (latest is 3.0.1) │ │ ├─┬ iron-scroll-target-behavior#2.1.1 (latest is 3.0.1) │ │ │ └── polymer not installed │ │ ├── polymer not installed -│ │ ├─┬ vaadin-checkbox#2.2.3 +│ │ ├─┬ vaadin-checkbox#2.2.4 │ │ │ ├── polymer not installed -│ │ │ ├─┬ vaadin-control-state-mixin#2.1.1 +│ │ │ ├─┬ vaadin-control-state-mixin#2.1.2 │ │ │ │ └── polymer not installed │ │ │ ├─┬ vaadin-element-mixin#2.1.2 │ │ │ │ ├── polymer not installed │ │ │ │ ├── vaadin-development-mode-detector#2.0.0 │ │ │ │ └─┬ vaadin-usage-statistics#2.0.1 │ │ │ │ └── vaadin-development-mode-detector#2.0.0 -│ │ │ ├── vaadin-lumo-styles#1.3.1 +│ │ │ ├── vaadin-lumo-styles#1.3.3 │ │ │ ├── vaadin-material-styles#1.2.0 │ │ │ └── vaadin-themable-mixin#1.3.2 │ │ ├── vaadin-element-mixin#2.1.2 -│ │ ├── vaadin-lumo-styles#1.3.1 +│ │ ├── vaadin-lumo-styles#1.3.3 │ │ ├── vaadin-material-styles#1.2.0 -│ │ ├── vaadin-text-field#2.1.3 +│ │ ├── vaadin-text-field#2.1.4 │ │ └── vaadin-themable-mixin#1.3.2 │ └── webcomponentsjs#1.2.7 └── webcomponentsjs#1.2.7 (latest is 2.1.3) diff --git a/src/StarcounterClientFiles/bower.json b/src/StarcounterClientFiles/bower.json index 020bd9a..4e96b96 100644 --- a/src/StarcounterClientFiles/bower.json +++ b/src/StarcounterClientFiles/bower.json @@ -8,7 +8,7 @@ "starcounter-include": "^5.2.0", "polymer-source": "polymer#^2.6.1", "webcomponentsjs": "^1.2.7", - "uniform.css": "Starcounter/uniform#^0.8.0", + "uniform.css": "Starcounter/uniform#^0.9.0", "enlighted-link": "^0.1.0", "palindrom-error-catcher": "^1.0.0", "slot-all": "^0.0.3" diff --git a/src/StarcounterClientFiles/wwwroot/sys/iron-a11y-keys-behavior/.bower.json b/src/StarcounterClientFiles/wwwroot/sys/iron-a11y-keys-behavior/.bower.json index ffa1fc6..5d8f1f6 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/iron-a11y-keys-behavior/.bower.json +++ b/src/StarcounterClientFiles/wwwroot/sys/iron-a11y-keys-behavior/.bower.json @@ -59,6 +59,6 @@ "commit": "b7e78a4a8bdd857780ecd8b54852bb27dbf8f216" }, "_source": "https://github.com/PolymerElements/iron-a11y-keys-behavior.git", - "_target": "^2.0.0", - "_originalSource": "iron-a11y-keys-behavior" + "_target": "1 - 2", + "_originalSource": "PolymerElements/iron-a11y-keys-behavior" } \ No newline at end of file diff --git a/src/StarcounterClientFiles/wwwroot/sys/iron-resizable-behavior/.bower.json b/src/StarcounterClientFiles/wwwroot/sys/iron-resizable-behavior/.bower.json index 69f5694..9581700 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/iron-resizable-behavior/.bower.json +++ b/src/StarcounterClientFiles/wwwroot/sys/iron-resizable-behavior/.bower.json @@ -53,6 +53,6 @@ "commit": "719d68affd8293b026c6456e754773b31a27712f" }, "_source": "https://github.com/PolymerElements/iron-resizable-behavior.git", - "_target": "^2.0.0", - "_originalSource": "iron-resizable-behavior" + "_target": "1 - 2", + "_originalSource": "PolymerElements/iron-resizable-behavior" } \ No newline at end of file diff --git a/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/.bower.json b/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/.bower.json index 8775318..5f4a3c3 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/.bower.json +++ b/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/.bower.json @@ -1,6 +1,6 @@ { "name": "juicy-popover", - "version": "2.1.0", + "version": "2.1.1", "description": "Custom Element that expands an area when clicked on a handle", "homepage": "https://github.com/Juicy/juicy-popover", "license": "MIT", @@ -22,11 +22,11 @@ "webcomponentsjs": "^1.0.0", "web-component-tester": "^6.4.1" }, - "_release": "2.1.0", + "_release": "2.1.1", "_resolution": { "type": "version", - "tag": "2.1.0", - "commit": "289ad22eb555a8f02e024d14e94856dd3d9fb5c6" + "tag": "2.1.1", + "commit": "a0c84347aef4c51d7480e48a5b543357401fd742" }, "_source": "https://github.com/Juicy/juicy-popover.git", "_target": "^2.1.0", diff --git a/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/CONTRIBUTING.md b/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/CONTRIBUTING.md index beb83f1..6e13280 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/CONTRIBUTING.md +++ b/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/CONTRIBUTING.md @@ -33,4 +33,26 @@ In order to develop it locally we suggest to use [polyserve](https://npmjs.com/p 3. Commit your changes: `git commit -m 'Add some feature'` 4. Push to the branch: `git push origin my-new-feature` 5. Open corresponding issue if needed -6. Submit a pull request :D \ No newline at end of file +6. Submit a pull request :D + +## Unit tests + +All Juicy custom elements projects use [`web-component-tester`](https://github.com/Polymer/web-component-tester) for unit tests. +The [`polyserve`](https://github.com/PolymerLabs/polyserve) utility is helpful for [running tests in the browser](#developing-the-element). + +### Running element unit tests from CLI + +To run the element unit tests from CLI, you need to: + +0. Install `web-component-tester` globally: `npm install -g web-component-tester` +1. Clone the element repo. +2. Install the dependencies. `bower install` +3. Run the tests: `wct` (be patient - the first run might take 5 minutes to download the Selenium framework) + +#### Configuring `web-component-tester` + +By default, `web-component-tester` runs tests on all installed browsers. You can configure it +to run tests on a subset of available browsers, or to run tests remotely using Sauce Labs. + +See the [`web-component-tester` README](https://github.com/Polymer/web-component-tester) for +information on configuring the tool. diff --git a/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/bower.json b/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/bower.json index 96e8df5..cafd951 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/bower.json +++ b/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/bower.json @@ -1,6 +1,6 @@ { "name": "juicy-popover", - "version": "2.1.0", + "version": "2.1.1", "description": "Custom Element that expands an area when clicked on a handle", "homepage": "https://github.com/Juicy/juicy-popover", "license": "MIT", diff --git a/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/package.json b/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/package.json index a772993..c9320ad 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/package.json +++ b/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/package.json @@ -1,17 +1,14 @@ { "name": "juicy-popover", - "version": "2.1.0", + "version": "2.1.1", "description": "Custom Element that expands an area when clicked on a handle", "main": "src/juicy-popover.html", "dependencies": { - "grunt": "^1.0.1", + "grunt": "^1.0.3", "grunt-bump": "^0.8.0" }, "scripts": { - "test": "wct --skip-plugin sauce" - }, - "devDependencies": { - "web-component-tester": "^6.4.1" + "test": "wct --skip-plugin sauce" }, "repository": { "type": "git", diff --git a/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/src/juicy-popover.html b/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/src/juicy-popover.html index a946635..cf86915 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/src/juicy-popover.html +++ b/src/StarcounterClientFiles/wwwroot/sys/juicy-popover/src/juicy-popover.html @@ -1,7 +1,7 @@ - + + + - - - + // `params.filters` format: [{path: 'lastName', direction: 'asc'}, ...]; + params.filters.forEach(function(filter) { + url += '&filters[' + filter.path + ']=' + encodeURIComponent(filter.value); + }); + xhr.open('GET', url, true); + xhr.send(); + }; + }); + + + - - - + } + customElements.define(GridFilteringDemos.is, GridFilteringDemos); + + diff --git a/src/StarcounterClientFiles/wwwroot/sys/vaadin-grid/demo/grid-row-details-demos.html b/src/StarcounterClientFiles/wwwroot/sys/vaadin-grid/demo/grid-row-details-demos.html index 95392b6..0d1751c 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/vaadin-grid/demo/grid-row-details-demos.html +++ b/src/StarcounterClientFiles/wwwroot/sys/vaadin-grid/demo/grid-row-details-demos.html @@ -6,7 +6,7 @@ } -

Row Details

+

Row Details

Set a rowDetailsRenderer to enable row details feature. Adding items to grid.detailsOpenedItems array or invoking openItemDetails(item) @@ -138,10 +138,6 @@

Row Details with Polymer Template

- - - - @@ -110,7 +112,9 @@

Asynchronous Custom Validator

} } - customElements.define(ChemicalElement.is, ChemicalElement); + if (!customElements.get(ChemicalElement.is)) { + customElements.define(ChemicalElement.is, ChemicalElement); + } }); diff --git a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/package.json b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/package.json index 78faa59..6800db9 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/package.json +++ b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/package.json @@ -1,6 +1,6 @@ { "name": "@vaadin/vaadin-text-field", - "version": "2.1.3", + "version": "2.1.4", "description": "vaadin-text-field", "main": "vaadin-text-field.html", "repository": "vaadin/vaadin-text-field", diff --git a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-password-field.html b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-password-field.html index dc5e495..aa34b3d 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-password-field.html +++ b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-password-field.html @@ -80,7 +80,7 @@ } static get version() { - return '2.1.3'; + return '2.1.4'; } static get properties() { diff --git a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-text-area.html b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-text-area.html index ae1d1f9..45ee0b5 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-text-area.html +++ b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-text-area.html @@ -141,7 +141,7 @@ } static get version() { - return '2.1.3'; + return '2.1.4'; } static get observers() { @@ -186,7 +186,23 @@ input.style.removeProperty('max-width'); inputField.style.removeProperty('display'); inputField.scrollTop = scrollTop; + + if (this.__previousInputHeight && this.__previousInputHeight !== inputHeight) { + this.dispatchEvent( + new CustomEvent('iron-resize', { + bubbles: true + }) + ); + } + + this.__previousInputHeight = inputHeight; } + + /** + * Fired when the text-area height changes. + * + * @event iron-resize + */ } customElements.define(TextAreaElement.is, TextAreaElement); diff --git a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-text-field-mixin.html b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-text-field-mixin.html index 601ab30..3d90c22 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-text-field-mixin.html +++ b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-text-field-mixin.html @@ -236,7 +236,7 @@ } get focusElement() { - return this.root.querySelector('[part=value]'); + return this.root && this.root.querySelector('[part=value]'); } _onInput(e) { diff --git a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-text-field.html b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-text-field.html index 18b3572..72e56a0 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-text-field.html +++ b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/src/vaadin-text-field.html @@ -127,7 +127,7 @@ } static get version() { - return '2.1.3'; + return '2.1.4'; } static get properties() { diff --git a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/test/text-area.html b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/test/text-area.html index 422267c..38fc419 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/test/text-area.html +++ b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/test/text-area.html @@ -291,5 +291,36 @@ )); }); }); + + describe('resize', () => { + let textArea, spy; + + beforeEach(() => { + textArea = fixture('default'); + spy = sinon.spy(); + textArea.addEventListener('iron-resize', spy); + }); + + it('should not dispatch `iron-resize` event on init', () => { + expect(spy.callCount).to.equal(0); + }); + + it('should dispatch `iron-resize` event on height change', () => { + textArea.value = ` + there + should + be + a + lot + of + rows`; + expect(spy.callCount).to.equal(1); + }); + + it('should not dispatch `iron-resize` event on value change if height did not change', () => { + textArea.value = 'just 1 row'; + expect(spy.callCount).to.equal(0); + }); + }); diff --git a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/test/text-field.html b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/test/text-field.html index c9d821d..0918428 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/test/text-field.html +++ b/src/StarcounterClientFiles/wwwroot/sys/vaadin-text-field/test/text-field.html @@ -226,5 +226,12 @@ }); }); }); + + describe('methods', function() { + it('should not throw an error when using focus() to a newly created element', () => { + // No expect needed as an error is thrown when focusing undefined element + document.createElement('vaadin-text-field').focus(); + }); + }); From 4935ff563dd9464a46fe3073b0ecd78281b123bf Mon Sep 17 00:00:00 2001 From: Omar Alshaker Date: Wed, 21 Nov 2018 13:56:46 +0100 Subject: [PATCH 2/2] Update palindrom-redirect to 1.0.2 --- .../sys/palindrom-redirect/.bower.json | 16 ++++-- .../wwwroot/sys/palindrom-redirect/bower.json | 13 +++-- .../sys/palindrom-redirect/package.json | 2 +- .../palindrom-redirect.html | 4 +- .../sys/palindrom-redirect/test/index.html | 21 -------- .../palindrom-redirect/test/spec-history.html | 49 ------------------- .../test/spec-redirect.html | 48 ------------------ .../palindrom-redirect/test/spec-shadow.html | 46 ----------------- .../sys/palindrom-redirect/wct.conf.json | 20 -------- 9 files changed, 24 insertions(+), 195 deletions(-) delete mode 100644 src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/index.html delete mode 100644 src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/spec-history.html delete mode 100644 src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/spec-redirect.html delete mode 100644 src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/spec-shadow.html delete mode 100644 src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/wct.conf.json diff --git a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/.bower.json b/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/.bower.json index dbbb776..44caf8c 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/.bower.json +++ b/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/.bower.json @@ -1,6 +1,6 @@ { "name": "palindrom-redirect", - "version": "1.0.1", + "version": "1.0.2", "description": "Custom Element that redirects to a new URL when an attribute is changed. It's also being listened by Palindrom.", "license": "MIT", "main": "palindrom-redirect.html", @@ -12,19 +12,25 @@ "node_modules", "bower_components", "preview.png", - "Gruntfile.js" + "Gruntfile.js", + "test", + "wct.conf.json" ], "dependencies": {}, + "devDependencies": { + "web-component-tester": "^6.0.0", + "webcomponentsjs": "1.*.*" + }, "authors": [ "Marcin Warpechowski ", "Tomek Wytrebowicz " ], "homepage": "https://github.com/Palindrom/palindrom-redirect", - "_release": "1.0.1", + "_release": "1.0.2", "_resolution": { "type": "version", - "tag": "1.0.1", - "commit": "9f3ebc3a3c52e08fbf77ff13c2d5ef66d70b2572" + "tag": "1.0.2", + "commit": "451d6864280f2a8dbcfa37b7efcaf42e3bc6fdd3" }, "_source": "https://github.com/Palindrom/palindrom-redirect.git", "_target": "~1.0.0", diff --git a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/bower.json b/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/bower.json index bfc5298..a229c69 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/bower.json +++ b/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/bower.json @@ -1,6 +1,6 @@ { "name": "palindrom-redirect", - "version": "1.0.1", + "version": "1.0.2", "description": "Custom Element that redirects to a new URL when an attribute is changed. It's also being listened by Palindrom.", "license": "MIT", "main": "palindrom-redirect.html", @@ -12,9 +12,16 @@ "node_modules", "bower_components", "preview.png", - "Gruntfile.js" + "Gruntfile.js", + "test", + "wct.conf.json" ], - "dependencies": {}, + "dependencies": { + }, + "devDependencies": { + "web-component-tester": "^6.0.0", + "webcomponentsjs": "1.*.*" + }, "authors": [ "Marcin Warpechowski ", "Tomek Wytrebowicz " diff --git a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/package.json b/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/package.json index 2c1ac6f..8fd2549 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/package.json +++ b/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/package.json @@ -2,7 +2,7 @@ "private": true, "name": "puppet-redirect", "description": "Custom Element that redirects to a new URL when an attribute is changed. It's also being listened by PuppetJS.", - "version": "1.0.1", + "version": "1.0.2", "main": "puppet-redirect.html", "scripts": { "test": "wct", diff --git a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/palindrom-redirect.html b/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/palindrom-redirect.html index 92ad076..1cbfd53 100644 --- a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/palindrom-redirect.html +++ b/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/palindrom-redirect.html @@ -1,5 +1,5 @@ - - palindrom-redirect tests - - - - - diff --git a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/spec-history.html b/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/spec-history.html deleted file mode 100644 index 42d4655..0000000 --- a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/spec-history.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/spec-redirect.html b/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/spec-redirect.html deleted file mode 100644 index a933bdd..0000000 --- a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/spec-redirect.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/spec-shadow.html b/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/spec-shadow.html deleted file mode 100644 index a321bde..0000000 --- a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/test/spec-shadow.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/wct.conf.json b/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/wct.conf.json deleted file mode 100644 index 7190a4f..0000000 --- a/src/StarcounterClientFiles/wwwroot/sys/palindrom-redirect/wct.conf.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "plugins": { - "local": { - "browsers": ["chrome", "firefox"] - }, - "sauce": { - "browsers": [ - { - "browserName": "microsoftedge", - "platform": "Windows 10" - }, - { - "browserName": "safari", - "platform": "macOS 10.13", - "version": "latest" - } - ] - } - } -}