@lrnwebcomponents/simple-search
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -36,6 +36,8 @@ const gulp = require("gulp"); | ||
} | ||
let props = "{}"; | ||
props = fs.readFileSync( | ||
let rawprops = "{}"; | ||
rawprops = fs.readFileSync( | ||
path.join("./", packageJson.wcfactory.files.properties) | ||
); | ||
let props = `${rawprops}`; | ||
props = props.replace(/\"type\": \"(\w+)\"/g, '"type": $1'); | ||
let cssResult = "<style>"; | ||
@@ -42,0 +44,0 @@ if ( |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Automated conversion of simple-search", | ||
@@ -45,4 +45,4 @@ "repository": { | ||
"devDependencies": { | ||
"@lrnwebcomponents/deduping-fix": "^2.0.9", | ||
"@lrnwebcomponents/storybook-utilities": "^2.1.0", | ||
"@lrnwebcomponents/deduping-fix": "^2.1.1", | ||
"@lrnwebcomponents/storybook-utilities": "^2.1.1", | ||
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page", | ||
@@ -54,3 +54,3 @@ "@polymer/iron-demo-helpers": "^3.1.0", | ||
"gulp-sourcemaps": "2.6.4", | ||
"lodash": "4.17.11", | ||
"lodash": "4.17.13", | ||
"polymer-cli": "1.9.9", | ||
@@ -67,3 +67,3 @@ "wct-browser-legacy": "1.0.2" | ||
], | ||
"gitHead": "38a0c3ad00e8447837037bde2dc1172273a3a311" | ||
"gitHead": "377805ee041d6205232182b01f8e05a177ef3bf7" | ||
} |
@@ -1,2 +0,2 @@ | ||
define(["exports","./node_modules/@polymer/polymer/polymer-element.js","./node_modules/@polymer/iron-icons/iron-icons.js","./node_modules/@polymer/paper-input/paper-input.js","./node_modules/@polymer/paper-tooltip/paper-tooltip.js","./lib/simple-search-content.js"],function(_exports,_polymerElement,_ironIcons,_paperInput,_paperTooltip,_simpleSearchContent){"use strict";Object.defineProperty(_exports,"__esModule",{value:!0});_exports.SimpleSearch=void 0;function _templateObject_3de96d1081c111e98634773a15450429(){var data=babelHelpers.taggedTemplateLiteral(["\n <style>\n :host {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n width: 100%;\n }\n :host #input {\n flex-grow: 2;\n margin-right: 4px;\n --paper-input-container-input-color: var(\n --simple-search-input-text-color,\n #000\n );\n --paper-input-container-shared-input-style_-_color: var(\n --simple-search-input-text-color,\n #000\n );\n --paper-input-container-focus-color: var(\n --simple-search-input-line-color,\n #000\n );\n --paper-input-container-color: var(\n --simple-search-input-placeholder-color,\n #222\n );\n color: var(--simple-search-input-placeholder-color, #222);\n @apply --simple-search-container;\n }\n :host #xofy {\n margin: 8px;\n }\n :host button {\n margin: 8px 0 8px;\n color: var(--simple-search-button-color, #111);\n background-color: var(--simple-search-button-bg-color, #eee);\n border-color: var(--simple-search-button-border-color, #ccc);\n @apply --simple-search-button;\n }\n :host button:not([disabled]):focus,\n :host button:not([disabled]):hover {\n cursor: pointer;\n color: var(--simple-search-button-hover-color, #000);\n background-color: var(--simple-search-button-hover-bg-color, #fff);\n border-color: var(--simple-search-button-hover-border-color, #ddd);\n @apply --simple-search-button-hover;\n }\n :host button[disabled] {\n cursor: not-allowed;\n color: var(--simple-search-button-disabled-color, #999);\n background-color: var(--simple-search-button-disabled-bg-color, #eee);\n border-color: var(--simple-search-button-disabled-border-color, #ccc);\n @apply --simple-search-button-disabled;\n }\n :host button:not([controls]) {\n display: none;\n }\n :host [shrink-hide] {\n display: none;\n }\n </style>\n <paper-input\n id=\"input\"\n always-float-label$=\"[[alwaysFloatLabel]]\"\n label=\"[[searchInputLabel]]\"\n no-label-float$=\"[[noLabelFloat]]\"\n on-change=\"_handleChange\"\n >\n <iron-icon icon=\"[[searchInputIcon]]\" slot=\"prefix\"></iron-icon>\n </paper-input>\n <div id=\"xofy\" shrink-hide$=\"[[noSearch]]\"></div>\n <div shrink-hide$=\"[[noResults]]\">\n <button\n id=\"prev\"\n aria-label=\"[[prevButtonLabel]]\"\n aria-role=\"button\"\n controls$=\"[[controls]]\"\n disabled$=\"[[prevButtonDisabled]]\"\n on-click=\"_navigateResults\"\n tabindex=\"0\"\n >\n <iron-icon icon=\"[[prevButtonIcon]]\"></iron-icon>\n </button>\n <paper-tooltip for=\"prev\">[[prevButtonLabel]]</paper-tooltip>\n <button\n id=\"next\"\n aria-label=\"[[nextButtonLabel]]\"\n aria-role=\"button\"\n controls$=\"[[controls]]\"\n disabled$=\"[[nextButtonDisabled]]\"\n on-click=\"_navigateResults\"\n tabindex=\"0\"\n >\n <iron-icon icon$=\"[[nextButtonIcon]]\"></iron-icon>\n </button>\n <paper-tooltip for=\"next\">[[nextButtonLabel]]</paper-tooltip>\n </div>\n "],["\n <style>\n :host {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n width: 100%;\n }\n :host #input {\n flex-grow: 2;\n margin-right: 4px;\n --paper-input-container-input-color: var(\n --simple-search-input-text-color,\n #000\n );\n --paper-input-container-shared-input-style_-_color: var(\n --simple-search-input-text-color,\n #000\n );\n --paper-input-container-focus-color: var(\n --simple-search-input-line-color,\n #000\n );\n --paper-input-container-color: var(\n --simple-search-input-placeholder-color,\n #222\n );\n color: var(--simple-search-input-placeholder-color, #222);\n @apply --simple-search-container;\n }\n :host #xofy {\n margin: 8px;\n }\n :host button {\n margin: 8px 0 8px;\n color: var(--simple-search-button-color, #111);\n background-color: var(--simple-search-button-bg-color, #eee);\n border-color: var(--simple-search-button-border-color, #ccc);\n @apply --simple-search-button;\n }\n :host button:not([disabled]):focus,\n :host button:not([disabled]):hover {\n cursor: pointer;\n color: var(--simple-search-button-hover-color, #000);\n background-color: var(--simple-search-button-hover-bg-color, #fff);\n border-color: var(--simple-search-button-hover-border-color, #ddd);\n @apply --simple-search-button-hover;\n }\n :host button[disabled] {\n cursor: not-allowed;\n color: var(--simple-search-button-disabled-color, #999);\n background-color: var(--simple-search-button-disabled-bg-color, #eee);\n border-color: var(--simple-search-button-disabled-border-color, #ccc);\n @apply --simple-search-button-disabled;\n }\n :host button:not([controls]) {\n display: none;\n }\n :host [shrink-hide] {\n display: none;\n }\n </style>\n <paper-input\n id=\"input\"\n always-float-label\\$=\"[[alwaysFloatLabel]]\"\n label=\"[[searchInputLabel]]\"\n no-label-float\\$=\"[[noLabelFloat]]\"\n on-change=\"_handleChange\"\n >\n <iron-icon icon=\"[[searchInputIcon]]\" slot=\"prefix\"></iron-icon>\n </paper-input>\n <div id=\"xofy\" shrink-hide\\$=\"[[noSearch]]\"></div>\n <div shrink-hide\\$=\"[[noResults]]\">\n <button\n id=\"prev\"\n aria-label=\"[[prevButtonLabel]]\"\n aria-role=\"button\"\n controls\\$=\"[[controls]]\"\n disabled\\$=\"[[prevButtonDisabled]]\"\n on-click=\"_navigateResults\"\n tabindex=\"0\"\n >\n <iron-icon icon=\"[[prevButtonIcon]]\"></iron-icon>\n </button>\n <paper-tooltip for=\"prev\">[[prevButtonLabel]]</paper-tooltip>\n <button\n id=\"next\"\n aria-label=\"[[nextButtonLabel]]\"\n aria-role=\"button\"\n controls\\$=\"[[controls]]\"\n disabled\\$=\"[[nextButtonDisabled]]\"\n on-click=\"_navigateResults\"\n tabindex=\"0\"\n >\n <iron-icon icon\\$=\"[[nextButtonIcon]]\"></iron-icon>\n </button>\n <paper-tooltip for=\"next\">[[nextButtonLabel]]</paper-tooltip>\n </div>\n "]);_templateObject_3de96d1081c111e98634773a15450429=function _templateObject_3de96d1081c111e98634773a15450429(){return data};return data}/** | ||
define(["exports","./node_modules/@polymer/polymer/polymer-element.js","./node_modules/@polymer/iron-icons/iron-icons.js","./node_modules/@polymer/paper-input/paper-input.js","./node_modules/@polymer/paper-tooltip/paper-tooltip.js","./lib/simple-search-content.js"],function(_exports,_polymerElement,_ironIcons,_paperInput,_paperTooltip,_simpleSearchContent){"use strict";Object.defineProperty(_exports,"__esModule",{value:!0});_exports.SimpleSearch=void 0;function _templateObject_1f55dd40ab1311e98f21f59a66087928(){var data=babelHelpers.taggedTemplateLiteral(["\n <style>\n :host {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n width: 100%;\n }\n :host #input {\n flex-grow: 2;\n margin-right: 4px;\n --paper-input-container-input-color: var(\n --simple-search-input-text-color,\n #000\n );\n --paper-input-container-shared-input-style_-_color: var(\n --simple-search-input-text-color,\n #000\n );\n --paper-input-container-focus-color: var(\n --simple-search-input-line-color,\n #000\n );\n --paper-input-container-color: var(\n --simple-search-input-placeholder-color,\n #222\n );\n color: var(--simple-search-input-placeholder-color, #222);\n @apply --simple-search-container;\n }\n :host #xofy {\n margin: 8px;\n }\n :host button {\n margin: 8px 0 8px;\n color: var(--simple-search-button-color, #111);\n background-color: var(--simple-search-button-bg-color, #eee);\n border-color: var(--simple-search-button-border-color, #ccc);\n @apply --simple-search-button;\n }\n :host button:not([disabled]):focus,\n :host button:not([disabled]):hover {\n cursor: pointer;\n color: var(--simple-search-button-hover-color, #000);\n background-color: var(--simple-search-button-hover-bg-color, #fff);\n border-color: var(--simple-search-button-hover-border-color, #ddd);\n @apply --simple-search-button-hover;\n }\n :host button[disabled] {\n cursor: not-allowed;\n color: var(--simple-search-button-disabled-color, #999);\n background-color: var(--simple-search-button-disabled-bg-color, #eee);\n border-color: var(--simple-search-button-disabled-border-color, #ccc);\n @apply --simple-search-button-disabled;\n }\n :host button:not([controls]) {\n display: none;\n }\n :host [shrink-hide] {\n display: none;\n }\n </style>\n <paper-input\n id=\"input\"\n always-float-label$=\"[[alwaysFloatLabel]]\"\n label=\"[[searchInputLabel]]\"\n no-label-float$=\"[[noLabelFloat]]\"\n on-change=\"_handleChange\"\n >\n <iron-icon icon=\"[[searchInputIcon]]\" slot=\"prefix\"></iron-icon>\n </paper-input>\n <div id=\"xofy\" shrink-hide$=\"[[noSearch]]\"></div>\n <div shrink-hide$=\"[[noResults]]\">\n <button\n id=\"prev\"\n aria-label=\"[[prevButtonLabel]]\"\n aria-role=\"button\"\n controls$=\"[[controls]]\"\n disabled$=\"[[prevButtonDisabled]]\"\n on-click=\"_navigateResults\"\n tabindex=\"0\"\n >\n <iron-icon icon=\"[[prevButtonIcon]]\"></iron-icon>\n </button>\n <paper-tooltip for=\"prev\">[[prevButtonLabel]]</paper-tooltip>\n <button\n id=\"next\"\n aria-label=\"[[nextButtonLabel]]\"\n aria-role=\"button\"\n controls$=\"[[controls]]\"\n disabled$=\"[[nextButtonDisabled]]\"\n on-click=\"_navigateResults\"\n tabindex=\"0\"\n >\n <iron-icon icon$=\"[[nextButtonIcon]]\"></iron-icon>\n </button>\n <paper-tooltip for=\"next\">[[nextButtonLabel]]</paper-tooltip>\n </div>\n "],["\n <style>\n :host {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n width: 100%;\n }\n :host #input {\n flex-grow: 2;\n margin-right: 4px;\n --paper-input-container-input-color: var(\n --simple-search-input-text-color,\n #000\n );\n --paper-input-container-shared-input-style_-_color: var(\n --simple-search-input-text-color,\n #000\n );\n --paper-input-container-focus-color: var(\n --simple-search-input-line-color,\n #000\n );\n --paper-input-container-color: var(\n --simple-search-input-placeholder-color,\n #222\n );\n color: var(--simple-search-input-placeholder-color, #222);\n @apply --simple-search-container;\n }\n :host #xofy {\n margin: 8px;\n }\n :host button {\n margin: 8px 0 8px;\n color: var(--simple-search-button-color, #111);\n background-color: var(--simple-search-button-bg-color, #eee);\n border-color: var(--simple-search-button-border-color, #ccc);\n @apply --simple-search-button;\n }\n :host button:not([disabled]):focus,\n :host button:not([disabled]):hover {\n cursor: pointer;\n color: var(--simple-search-button-hover-color, #000);\n background-color: var(--simple-search-button-hover-bg-color, #fff);\n border-color: var(--simple-search-button-hover-border-color, #ddd);\n @apply --simple-search-button-hover;\n }\n :host button[disabled] {\n cursor: not-allowed;\n color: var(--simple-search-button-disabled-color, #999);\n background-color: var(--simple-search-button-disabled-bg-color, #eee);\n border-color: var(--simple-search-button-disabled-border-color, #ccc);\n @apply --simple-search-button-disabled;\n }\n :host button:not([controls]) {\n display: none;\n }\n :host [shrink-hide] {\n display: none;\n }\n </style>\n <paper-input\n id=\"input\"\n always-float-label\\$=\"[[alwaysFloatLabel]]\"\n label=\"[[searchInputLabel]]\"\n no-label-float\\$=\"[[noLabelFloat]]\"\n on-change=\"_handleChange\"\n >\n <iron-icon icon=\"[[searchInputIcon]]\" slot=\"prefix\"></iron-icon>\n </paper-input>\n <div id=\"xofy\" shrink-hide\\$=\"[[noSearch]]\"></div>\n <div shrink-hide\\$=\"[[noResults]]\">\n <button\n id=\"prev\"\n aria-label=\"[[prevButtonLabel]]\"\n aria-role=\"button\"\n controls\\$=\"[[controls]]\"\n disabled\\$=\"[[prevButtonDisabled]]\"\n on-click=\"_navigateResults\"\n tabindex=\"0\"\n >\n <iron-icon icon=\"[[prevButtonIcon]]\"></iron-icon>\n </button>\n <paper-tooltip for=\"prev\">[[prevButtonLabel]]</paper-tooltip>\n <button\n id=\"next\"\n aria-label=\"[[nextButtonLabel]]\"\n aria-role=\"button\"\n controls\\$=\"[[controls]]\"\n disabled\\$=\"[[nextButtonDisabled]]\"\n on-click=\"_navigateResults\"\n tabindex=\"0\"\n >\n <iron-icon icon\\$=\"[[nextButtonIcon]]\"></iron-icon>\n </button>\n <paper-tooltip for=\"next\">[[nextButtonLabel]]</paper-tooltip>\n </div>\n "]);_templateObject_1f55dd40ab1311e98f21f59a66087928=function _templateObject_1f55dd40ab1311e98f21f59a66087928(){return data};return data}/** | ||
* `simple-search` | ||
@@ -194,2 +194,2 @@ * `A button used in simple-search` | ||
*/target:{type:Object,value:null}}}// render function | ||
},{key:"template",get:function get(){return(0,_polymerElement.html)(_templateObject_3de96d1081c111e98634773a15450429())}}]);return SimpleSearch}(_polymerElement.PolymerElement);_exports.SimpleSearch=SimpleSearch;customElements.define(SimpleSearch.is,SimpleSearch)}); | ||
},{key:"template",get:function get(){return(0,_polymerElement.html)(_templateObject_1f55dd40ab1311e98f21f59a66087928())}}]);return SimpleSearch}(_polymerElement.PolymerElement);_exports.SimpleSearch=SimpleSearch;customElements.define(SimpleSearch.is,SimpleSearch)}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
444531
10872