@jenkinsci/jenkins-io-components 1.40.1 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/jio-components.cjs.js +1 -1
- package/build/jio-components.d.ts +1 -0
- package/build/jio-components.esm.js +1 -1
- package/build/jio-read-time.cjs.js +2 -0
- package/build/jio-read-time.cjs.js.map +1 -0
- package/build/jio-read-time.d.ts +12 -0
- package/build/jio-read-time.esm.js +2 -0
- package/build/jio-read-time.esm.js.map +1 -0
- package/custom-elements.json +81 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./jio-locale.cjs.js","./jio-report-infra-issue.cjs.js","./jio-report-a-problem.cjs.js","./jio-improve-this-page.cjs.js","./jio-changelog-weather-icon.cjs.js","./jio-changelog-ratings.cjs.js","./jio-weather-icon.cjs.js","./jio-socialmedia-buttons.cjs.js","./jio-datetime-box.cjs.js","./jio-navbar.cjs.js","./jio-navbar-link.cjs.js","./jio-footer.cjs.js","./jio-searchbox.cjs.js","./lit-localize-92178a16.cjs.js","./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js","./shared-styles.cjs.js","./index-1698649c.cjs.js","./localized-decorator-3cb5e3e2.cjs.js","./global-0bfaef7b.cjs.js","./jio-cdf-logo.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_jioLocaleCjsJs){},function(_jioReportInfraIssueCjsJs){},function(_jioReportAProblemCjsJs){},function(_jioImproveThisPageCjsJs){},function(_jioChangelogWeatherIconCjsJs){},function(_jioChangelogRatingsCjsJs){},function(_jioWeatherIconCjsJs){},function(_jioSocialmediaButtonsCjsJs){},function(_jioDatetimeBoxCjsJs){},function(_jioNavbarCjsJs){},function(_jioNavbarLinkCjsJs){},function(_jioFooterCjsJs){},function(_jioSearchboxCjsJs){},function(_litLocalize001CjsJs){},function(_queryAssignedElements002CjsJs){},function(_litElement003CjsJs){},function(_property004CjsJs){},function(_sharedStylesCjsJs){},function(_index005CjsJs){},function(_localizedDecorator006CjsJs){},function(_global007CjsJs){},function(_jioCdfLogoCjsJs){}],execute:function(){}};});
|
|
1
|
+
System.register(["./jio-locale.cjs.js","./jio-report-infra-issue.cjs.js","./jio-report-a-problem.cjs.js","./jio-improve-this-page.cjs.js","./jio-changelog-weather-icon.cjs.js","./jio-changelog-ratings.cjs.js","./jio-weather-icon.cjs.js","./jio-socialmedia-buttons.cjs.js","./jio-datetime-box.cjs.js","./jio-navbar.cjs.js","./jio-navbar-link.cjs.js","./jio-footer.cjs.js","./jio-searchbox.cjs.js","./jio-read-time.cjs.js","./lit-localize-92178a16.cjs.js","./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js","./shared-styles.cjs.js","./index-1698649c.cjs.js","./localized-decorator-3cb5e3e2.cjs.js","./global-0bfaef7b.cjs.js","./jio-cdf-logo.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_jioLocaleCjsJs){},function(_jioReportInfraIssueCjsJs){},function(_jioReportAProblemCjsJs){},function(_jioImproveThisPageCjsJs){},function(_jioChangelogWeatherIconCjsJs){},function(_jioChangelogRatingsCjsJs){},function(_jioWeatherIconCjsJs){},function(_jioSocialmediaButtonsCjsJs){},function(_jioDatetimeBoxCjsJs){},function(_jioNavbarCjsJs){},function(_jioNavbarLinkCjsJs){},function(_jioFooterCjsJs){},function(_jioSearchboxCjsJs){},function(_jioReadTimeCjsJs){},function(_litLocalize001CjsJs){},function(_queryAssignedElements002CjsJs){},function(_litElement003CjsJs){},function(_property004CjsJs){},function(_sharedStylesCjsJs){},function(_index005CjsJs){},function(_localizedDecorator006CjsJs){},function(_global007CjsJs){},function(_jioCdfLogoCjsJs){}],execute:function(){}};});
|
|
2
2
|
//# sourceMappingURL=jio-components.cjs.js.map
|
|
@@ -11,4 +11,5 @@ export { Navbar } from './jio-navbar';
|
|
|
11
11
|
export { NavbarLink } from './jio-navbar-link';
|
|
12
12
|
export { Footer } from './jio-footer';
|
|
13
13
|
export { Searchbox } from './jio-searchbox';
|
|
14
|
+
export { ReadTimeEstimation } from './jio-read-time';
|
|
14
15
|
//# sourceMappingURL=jio-components.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./jio-locale.esm.js";import"./jio-report-infra-issue.esm.js";import"./jio-report-a-problem.esm.js";import"./jio-improve-this-page.esm.js";import"./jio-changelog-weather-icon.esm.js";import"./jio-changelog-ratings.esm.js";import"./jio-weather-icon.esm.js";import"./jio-socialmedia-buttons.esm.js";import"./jio-datetime-box.esm.js";import"./jio-navbar.esm.js";import"./jio-navbar-link.esm.js";import"./jio-footer.esm.js";import"./jio-searchbox.esm.js";import"./lit-localize-a395d291.esm.js";import"./query-assigned-elements-f06332ea.esm.js";import"./lit-element-1adb71ee.esm.js";import"./property-6d5dc9b4.esm.js";import"./shared-styles.esm.js";import"./index-02ecfee8.esm.js";import"./localized-decorator-ec94f142.esm.js";import"./global-d62b227f.esm.js";import"./jio-cdf-logo.esm.js";
|
|
1
|
+
import"./jio-locale.esm.js";import"./jio-report-infra-issue.esm.js";import"./jio-report-a-problem.esm.js";import"./jio-improve-this-page.esm.js";import"./jio-changelog-weather-icon.esm.js";import"./jio-changelog-ratings.esm.js";import"./jio-weather-icon.esm.js";import"./jio-socialmedia-buttons.esm.js";import"./jio-datetime-box.esm.js";import"./jio-navbar.esm.js";import"./jio-navbar-link.esm.js";import"./jio-footer.esm.js";import"./jio-searchbox.esm.js";import"./jio-read-time.esm.js";import"./lit-localize-a395d291.esm.js";import"./query-assigned-elements-f06332ea.esm.js";import"./lit-element-1adb71ee.esm.js";import"./property-6d5dc9b4.esm.js";import"./shared-styles.esm.js";import"./index-02ecfee8.esm.js";import"./localized-decorator-ec94f142.esm.js";import"./global-d62b227f.esm.js";import"./jio-cdf-logo.esm.js";
|
|
2
2
|
//# sourceMappingURL=jio-components.esm.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js"],function(_export,_context){"use strict";var t,e,r,n,o,_templateObject,s;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_queryAssignedElements002CjsJs){t=_queryAssignedElements002CjsJs._;e=_queryAssignedElements002CjsJs.e;},function(_litElement003CjsJs){r=_litElement003CjsJs.s;n=_litElement003CjsJs.x;},function(_property004CjsJs){o=_property004CjsJs.e;}],execute:function(){s=/*#__PURE__*/function(_r){_inherits(s,_r);var _super=_createSuper(s);function s(){var _this;_classCallCheck(this,s);_this=_super.apply(this,arguments),_this.content=null,_this.wordsPerMinute=200;return _this;}_createClass(s,[{key:"render",value:function render(){var t=function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:200;var r;if(!(t&&t instanceof HTMLElement))return"";var n=(null===(r=t.textContent)||void 0===r?void 0:r.replace(/\s+/g," ").trim())||"";if(!n)return"";var o=n.split(" ").length;return Math.max(1,Math.ceil(o/e)).toString()+" min read";}(this.content,this.wordsPerMinute);return n(_templateObject||(_templateObject=_taggedTemplateLiteral(["",""])),t);}}]);return s;}(r);t([o({type:Object})],s.prototype,"content",void 0),t([o({type:Number})],s.prototype,"wordsPerMinute",void 0),s=t([e("jio-read-time-estimation")],s);}};});
|
|
2
|
+
//# sourceMappingURL=jio-read-time.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jio-read-time.cjs.js","sources":["../src/jio-read-time.ts"],"sourcesContent":[null],"names":["contentElement","wordsPerMinute","arguments","length","undefined","_a","HTMLElement","text","replace","trim"],"mappings":"83HA8BE,CAAA,SAAqBA,EAAA,IAAAC,CAAAA,CAAA,CAAAC,SAAA,CAAAC,MAAA,IAAAD,SAAA,MAAAE,SAAA,CAAAF,SAAA,IAAA,GAAA,CAEZ,GAAMG,CAAAA,CAAAA,CAQhB,GAAAL,EAAAA,CAAAA,EAAAA,YAAAM,CAAAA,WACO,CAAA,CAAA,MAAO,MAEeC,CAAAA,CAAqB,CAAA,CAAA,IAAA,IAArBF,EAAAL,oBAAqB,EAAAK,GAAAA,CAAAA,CAAAA,IAAA,EAAAA,CAAAA,CAAAA,CAAAG,QAAA,MAAA,CAAA,GAAA,CAAA,CAAAC,IAAA,EAAA,GAAA,EAAA,CAChD,GAAAF,CAAAA,CAAAA,CACF,MAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class ReadTimeEstimation extends LitElement {
|
|
3
|
+
content: HTMLElement | null;
|
|
4
|
+
wordsPerMinute: number;
|
|
5
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'jio-read-time-estimation': ReadTimeEstimation;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=jio-read-time.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as t,e}from"./query-assigned-elements-f06332ea.esm.js";import{s as r,x as n}from"./lit-element-1adb71ee.esm.js";import{e as o}from"./property-6d5dc9b4.esm.js";let s=class extends r{constructor(){super(...arguments),this.content=null,this.wordsPerMinute=200}render(){const t=function(t,e=200){var r;if(!(t&&t instanceof HTMLElement))return"";const n=(null===(r=t.textContent)||void 0===r?void 0:r.replace(/\s+/g," ").trim())||"";if(!n)return"";const o=n.split(" ").length;return Math.max(1,Math.ceil(o/e)).toString()+" min read"}(this.content,this.wordsPerMinute);return n`${t}`}};t([o({type:Object})],s.prototype,"content",void 0),t([o({type:Number})],s.prototype,"wordsPerMinute",void 0),s=t([e("jio-read-time-estimation")],s);
|
|
2
|
+
//# sourceMappingURL=jio-read-time.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jio-read-time.esm.js","sources":["../src/jio-read-time.ts"],"sourcesContent":[null],"names":["contentElement","wordsPerMinute","_a","HTMLElement","text","replace","trim"],"mappings":"2RA8BE,SAAqBA,EAAAC,EAAA,KAEZ,IAAMC,EAQhB,KAAAF,GAAAA,aAAAG,aACO,MAAO,SAEeC,GAAqB,QAArBF,EAAAF,qBAAqB,IAAAE,OAAA,EAAAA,EAAAG,QAAA,OAAA,KAAAC,SAAA,GAChD,IAAAF,EACF,MAAA"}
|
package/custom-elements.json
CHANGED
|
@@ -388,6 +388,14 @@
|
|
|
388
388
|
"name": "Searchbox",
|
|
389
389
|
"module": "./jio-searchbox"
|
|
390
390
|
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"kind": "js",
|
|
394
|
+
"name": "ReadTimeEstimation",
|
|
395
|
+
"declaration": {
|
|
396
|
+
"name": "ReadTimeEstimation",
|
|
397
|
+
"module": "./jio-read-time"
|
|
398
|
+
}
|
|
391
399
|
}
|
|
392
400
|
]
|
|
393
401
|
},
|
|
@@ -1276,6 +1284,79 @@
|
|
|
1276
1284
|
}
|
|
1277
1285
|
]
|
|
1278
1286
|
},
|
|
1287
|
+
{
|
|
1288
|
+
"kind": "javascript-module",
|
|
1289
|
+
"path": "src/jio-read-time.ts",
|
|
1290
|
+
"declarations": [
|
|
1291
|
+
{
|
|
1292
|
+
"kind": "class",
|
|
1293
|
+
"description": "",
|
|
1294
|
+
"name": "ReadTimeEstimation",
|
|
1295
|
+
"members": [
|
|
1296
|
+
{
|
|
1297
|
+
"kind": "field",
|
|
1298
|
+
"name": "content",
|
|
1299
|
+
"type": {
|
|
1300
|
+
"text": "HTMLElement | null"
|
|
1301
|
+
},
|
|
1302
|
+
"default": "null",
|
|
1303
|
+
"attribute": "content"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"kind": "field",
|
|
1307
|
+
"name": "wordsPerMinute",
|
|
1308
|
+
"type": {
|
|
1309
|
+
"text": "number"
|
|
1310
|
+
},
|
|
1311
|
+
"default": "200",
|
|
1312
|
+
"attribute": "wordsPerMinute"
|
|
1313
|
+
}
|
|
1314
|
+
],
|
|
1315
|
+
"attributes": [
|
|
1316
|
+
{
|
|
1317
|
+
"name": "content",
|
|
1318
|
+
"type": {
|
|
1319
|
+
"text": "HTMLElement | null"
|
|
1320
|
+
},
|
|
1321
|
+
"default": "null",
|
|
1322
|
+
"fieldName": "content"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"name": "wordsPerMinute",
|
|
1326
|
+
"type": {
|
|
1327
|
+
"text": "number"
|
|
1328
|
+
},
|
|
1329
|
+
"default": "200",
|
|
1330
|
+
"fieldName": "wordsPerMinute"
|
|
1331
|
+
}
|
|
1332
|
+
],
|
|
1333
|
+
"superclass": {
|
|
1334
|
+
"name": "LitElement",
|
|
1335
|
+
"package": "lit"
|
|
1336
|
+
},
|
|
1337
|
+
"tagName": "jio-read-time-estimation",
|
|
1338
|
+
"customElement": true
|
|
1339
|
+
}
|
|
1340
|
+
],
|
|
1341
|
+
"exports": [
|
|
1342
|
+
{
|
|
1343
|
+
"kind": "js",
|
|
1344
|
+
"name": "ReadTimeEstimation",
|
|
1345
|
+
"declaration": {
|
|
1346
|
+
"name": "ReadTimeEstimation",
|
|
1347
|
+
"module": "src/jio-read-time.ts"
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"kind": "custom-element-definition",
|
|
1352
|
+
"name": "jio-read-time-estimation",
|
|
1353
|
+
"declaration": {
|
|
1354
|
+
"name": "ReadTimeEstimation",
|
|
1355
|
+
"module": "src/jio-read-time.ts"
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
]
|
|
1359
|
+
},
|
|
1279
1360
|
{
|
|
1280
1361
|
"kind": "javascript-module",
|
|
1281
1362
|
"path": "src/jio-report-a-problem.ts",
|