Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 18 additions & 17 deletions src/StarcounterClientFiles/bower-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ starcounter-clientfiles D:\repos\apps\StarcounterClientFiles\src\StarcounterClie
│ ├─┬ iron-resizable-behavior#2.1.1 (latest is 3.0.1)
│ │ └── polymer not installed
│ └── polymer not installed
├─┬ palindrom-client#7.2.0 (7.2.1 available)
├─┬ palindrom-client#7.2.1
│ └── Palindrom#5.1.3
├── palindrom-error-catcher#1.1.0
├── palindrom-redirect#1.0.1
Expand All @@ -26,10 +26,10 @@ starcounter-clientfiles D:\repos\apps\StarcounterClientFiles\src\StarcounterClie
├─┬ starcounter-include#5.2.0
│ └─┬ imported-template#3.4.0
│ └── juicy-html#4.0.0
├─┬ uniform.css#0.8.0 (latest is 0.9.0)
│ ├── juicy-popover#2.1.0 (2.1.1 available)
├─┬ uniform.css#0.9.0
│ ├── juicy-popover#2.1.1
│ ├── polymer not installed
│ ├─┬ vaadin-date-picker#3.3.0 (3.3.1 available)
│ ├─┬ 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)
Expand All @@ -41,14 +41,14 @@ starcounter-clientfiles D:\repos\apps\StarcounterClientFiles\src\StarcounterClie
│ │ ├── 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 (1.3.3 available)
│ │ │ ├─┬ 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
Expand All @@ -64,56 +64,57 @@ starcounter-clientfiles D:\repos\apps\StarcounterClientFiles\src\StarcounterClie
│ │ │ │ └── polymer not installed
│ │ │ └─┬ vaadin-themable-mixin#1.3.2
│ │ │ └── polymer not installed
│ │ ├─┬ vaadin-control-state-mixin#2.1.2
│ │ ├─┬ vaadin-control-state-mixin#2.1.1 (2.1.2 available)
│ │ │ └── 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 (1.3.3 available)
│ │ ├── 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 (2.3.0-alpha1 available)
│ │ ├─┬ 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 (1.3.3 available)
│ │ │ ├── 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 (5.3.0-alpha3 available)
│ ├─┬ 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 (2.2.4 available)
│ │ ├─┬ 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 (2.3.0-alpha1 available)
│ │ ├── vaadin-text-field#2.1.4
│ │ └── vaadin-themable-mixin#1.3.2
│ └── webcomponentsjs#1.2.7
└── webcomponentsjs#1.2.7 (latest is 2.2.0)
2 changes: 1 addition & 1 deletion src/StarcounterClientFiles/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
`juicy-popover` - Custom Element that expands an area when clicked on a handle
@element juicy-popover
version: 2.1.0
version: 2.1.1
-->
<template id="juicy-popover-template">
<style>
Expand Down Expand Up @@ -214,13 +214,9 @@
}

handleCollapseEventCallback(ev) {
if (ev.target.nodeName === "INPUT") {
this.ignore = true; //just a friendly feature - don't collapse the expandable if clicked on a handler which is an input
}
if (ev.type !== "mouseup") {
if (this.ignore && this.$.expandable.classList.contains("expanded")) {
this.collapse();
}
this.ignore = true;
if (ev.type !== "mouseup" && this.$.expandable.classList.contains("expanded")) {
this.collapse();
this.ignore = false;
}
}
Expand Down Expand Up @@ -261,6 +257,7 @@
}

this.addEvents();
this.addWindowEvents();
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"platform": "Windows 10",
"version": ""
}, {
"browserName": "safari",
"platform": "macOS 10.12",
"version": "11.0"
"browserName": "safari"
}]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
"starcounter-include": "Starcounter/starcounter-include#master",
"fast-json-patch": "^2.0.6"
},
"version": "7.2.0",
"_release": "7.2.0",
"version": "7.2.1",
"_release": "7.2.1",
"_resolution": {
"type": "version",
"tag": "7.2.0",
"commit": "313e1269cc76cd4f03a3fa3c525384bd98d2fbfc"
"tag": "7.2.1",
"commit": "15c3930109aef01f040022ce443770cd0eb8757f"
},
"_source": "https://github.com/Palindrom/palindrom-client.git",
"_target": "^7.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- palindrom-polymer-client version: 7.2.0 | MIT License -->
<!-- palindrom-polymer-client version: 7.2.1 | MIT License -->

<!--
`palindrom-client` element binds [Palindrom](https://github.com/Palindrom/Palindrom) with [Polymer's template binding](https://www.polymer-project.org/2.0/docs/devguide/templates.html).
Expand Down Expand Up @@ -26,10 +26,9 @@
"pingIntervalS": 60,
"path": '/',
"devToolsOpen": false,
"fatalErrorReloadAfterS": 5,
"mergedNotificationsThreshold": 100
"fatalErrorReloadAfterS": 5
}
const defaultAttribs = ['merged-notifications-threshold', 'remote-url', 'use-web-socket', 'debug', 'local-version-path', 'remote-version-path', 'ot', 'purity', 'listen-to', 'ping-interval-s', 'purity', 'fatal-error-reload-after-s', 'path'];
const defaultAttribs = ['remote-url', 'use-web-socket', 'debug', 'local-version-path', 'remote-version-path', 'ot', 'purity', 'listen-to', 'ping-interval-s', 'purity', 'fatal-error-reload-after-s', 'path'];
class PalindromClient extends HTMLElement {
constructor() {
super();
Expand All @@ -45,10 +44,6 @@
reload() {
window.location.reload();
}
attributeChangedCallback(name, oldValue, value) {
// it will only be called for merged-notifications-threshold attribute. See observedAttributes method
this.mergedNotificationsThreshold = value;
}
cancelReloading() {
clearInterval(this.reloadingInterval);
delete this.reloadingInterval;
Expand Down Expand Up @@ -228,13 +223,6 @@
});
}
notifyTemplateDomBind(tree, patchesAndResults, templateDomBind, polymerPathPrefix) {
if (patchesAndResults.patches.length > this.mergedNotificationsThreshold) {
console.warn(`palindrom-client has noticed a huge patch of ${patchesAndResults.patches.length} operations. For better performance palindrom-client will replace the whole state object instead of applying your updates individually`);
// clone to prevent flash of content
templateDomBind.set('model', JSON.parse(JSON.stringify(this.obj)));
templateDomBind.set('model', this.obj);
return;
}
let operation;
let polymerPath;
for (let operationNo = 0, len = patchesAndResults.patches.length; operationNo < len; operationNo++) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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 <marcin@nextgen.pl>",
"Tomek Wytrebowicz <tomalecpub@gmail.com>"
],
"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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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 <marcin@nextgen.pl>",
"Tomek Wytrebowicz <tomalecpub@gmail.com>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading